Repository: peng-zhihui/Dummy-Robot Branch: main Commit: 84453f1391c4 Files: 700 Total size: 111.6 MB Directory structure: gitextract_8a7fcmos/ ├── .gitmodules ├── 1.Hardware/ │ ├── .gitattributes │ ├── Controller/ │ │ ├── .gitignore │ │ ├── Controller.PcbDoc │ │ ├── Controller.PrjPCB │ │ ├── Controller.PrjPCBStructure │ │ └── Main.SchDoc │ ├── Dangle/ │ │ ├── .gitignore │ │ ├── Dangle.PcbDoc │ │ ├── Dangle.PrjPCB │ │ ├── Dangle.PrjPCBStructure │ │ └── Main.SchDoc │ ├── HandModule/ │ │ ├── .gitignore │ │ ├── HandModule.PcbDoc │ │ ├── HandModule.PrjPCB │ │ ├── HandModule.PrjPCBStructure │ │ └── Main.SchDoc │ ├── LedRing/ │ │ ├── .gitignore │ │ ├── LedRing.PcbDoc │ │ ├── LedRing.PrjPCB │ │ ├── LedRing.PrjPCBStructure │ │ └── Main.SchDoc │ ├── MotorDriver-20/ │ │ ├── .gitignore │ │ ├── Drive.SchDoc │ │ ├── Interface.SchDoc │ │ ├── MCU.SchDoc │ │ ├── Motor-20.PcbDoc │ │ ├── Motor-20.PrjPCB │ │ ├── Motor-20.PrjPCBStructure │ │ ├── Port.SchDoc │ │ └── Power.SchDoc │ ├── MotorDriver-42/ │ │ ├── .gitignore │ │ ├── Drive.SchDoc │ │ ├── Gerber/ │ │ │ ├── Motor-42-macro.APR_LIB │ │ │ ├── Motor-42.DRR │ │ │ ├── Motor-42.EXTREP │ │ │ ├── Motor-42.G1 │ │ │ ├── Motor-42.G2 │ │ │ ├── Motor-42.GBL │ │ │ ├── Motor-42.GBO │ │ │ ├── Motor-42.GBP │ │ │ ├── Motor-42.GBS │ │ │ ├── Motor-42.GD1 │ │ │ ├── Motor-42.GG1 │ │ │ ├── Motor-42.GKO │ │ │ ├── Motor-42.GM1 │ │ │ ├── Motor-42.GM10 │ │ │ ├── Motor-42.GM12 │ │ │ ├── Motor-42.GM13 │ │ │ ├── Motor-42.GM14 │ │ │ ├── Motor-42.GM15 │ │ │ ├── Motor-42.GPB │ │ │ ├── Motor-42.GPT │ │ │ ├── Motor-42.GTL │ │ │ ├── Motor-42.GTO │ │ │ ├── Motor-42.GTP │ │ │ ├── Motor-42.GTS │ │ │ ├── Motor-42.LDP │ │ │ ├── Motor-42.REP │ │ │ ├── Motor-42.RUL │ │ │ ├── Motor-42.TXT │ │ │ ├── Motor-42.apr │ │ │ └── Status Report.Txt │ │ ├── Interface.SchDoc │ │ ├── MCU.SchDoc │ │ ├── Motor-42.PcbDoc │ │ ├── Motor-42.PrjPCB │ │ ├── Motor-42.PrjPCBStructure │ │ ├── Port.SchDoc │ │ └── Power.SchDoc │ ├── MotorDriver-57-unused/ │ │ ├── .gitignore │ │ ├── Drive.SchDoc │ │ ├── Gerber/ │ │ │ ├── Motor-57-macro.APR_LIB │ │ │ ├── Motor-57.DRR │ │ │ ├── Motor-57.EXTREP │ │ │ ├── Motor-57.G1 │ │ │ ├── Motor-57.G2 │ │ │ ├── Motor-57.GBL │ │ │ ├── Motor-57.GBO │ │ │ ├── Motor-57.GBP │ │ │ ├── Motor-57.GBS │ │ │ ├── Motor-57.GD1 │ │ │ ├── Motor-57.GG1 │ │ │ ├── Motor-57.GKO │ │ │ ├── Motor-57.GM1 │ │ │ ├── Motor-57.GM10 │ │ │ ├── Motor-57.GM12 │ │ │ ├── Motor-57.GM13 │ │ │ ├── Motor-57.GM14 │ │ │ ├── Motor-57.GM15 │ │ │ ├── Motor-57.GPB │ │ │ ├── Motor-57.GPT │ │ │ ├── Motor-57.GTL │ │ │ ├── Motor-57.GTO │ │ │ ├── Motor-57.GTP │ │ │ ├── Motor-57.GTS │ │ │ ├── Motor-57.LDP │ │ │ ├── Motor-57.REP │ │ │ ├── Motor-57.RUL │ │ │ ├── Motor-57.TXT │ │ │ ├── Motor-57.apr │ │ │ └── Status Report.Txt │ │ ├── Interface.SchDoc │ │ ├── MCU.SchDoc │ │ ├── Motor-57.PcbDoc │ │ ├── Motor-57.PrjPCB │ │ ├── Motor-57.PrjPCBStructure │ │ ├── Port.SchDoc │ │ └── Power.SchDoc │ └── REF/ │ ├── .gitignore │ ├── REF-Base/ │ │ ├── .gitignore │ │ ├── Main.SchDoc │ │ ├── REF-Base.PcbDoc │ │ ├── REF-Base.PrjPCB │ │ └── REF-Base.PrjPCBStructure │ ├── REF-Unit/ │ │ ├── Main.SchDoc │ │ ├── REF-Unit.PcbDoc │ │ ├── REF-Unit.PrjPCB │ │ └── REF-Unit.PrjPCBStructure │ ├── REF.MbaDoc │ ├── REF.MbsDoc │ ├── REF.PrjMbd │ └── REF.PrjMbdStructure ├── 2.Firmware/ │ ├── Core-STM32F4-fw/ │ │ ├── .cproject │ │ ├── .gitignore │ │ ├── .idea/ │ │ │ ├── .gitignore │ │ │ ├── REF-STM32F4.iml │ │ │ ├── codeStyles/ │ │ │ │ └── codeStyleConfig.xml │ │ │ ├── deployment.xml │ │ │ ├── encodings.xml │ │ │ ├── inspectionProfiles/ │ │ │ │ └── Project_Default.xml │ │ │ ├── libraries/ │ │ │ │ ├── ROS.xml │ │ │ │ └── workspace.xml │ │ │ ├── misc.xml │ │ │ ├── modules.xml │ │ │ ├── ros.xml │ │ │ ├── serialmonitor_settings.xml │ │ │ └── vcs.xml │ │ ├── .mxproject │ │ ├── .project │ │ ├── 3rdParty/ │ │ │ ├── fibre/ │ │ │ │ └── cpp/ │ │ │ │ ├── include/ │ │ │ │ │ └── fibre/ │ │ │ │ │ ├── cpp_utils.hpp │ │ │ │ │ ├── crc.hpp │ │ │ │ │ ├── decoders.hpp │ │ │ │ │ ├── encoders.hpp │ │ │ │ │ └── protocol.hpp │ │ │ │ ├── package.lua │ │ │ │ └── protocol.cpp │ │ │ └── u8g2/ │ │ │ ├── cpp/ │ │ │ │ ├── Print.cpp │ │ │ │ ├── Print.h │ │ │ │ ├── Printable.h │ │ │ │ ├── U8g2lib.hpp │ │ │ │ ├── U8x8lib.cpp │ │ │ │ ├── U8x8lib.h │ │ │ │ ├── WString.cpp │ │ │ │ ├── WString.h │ │ │ │ ├── pgmspace.h │ │ │ │ ├── stdlib_noniso.c │ │ │ │ └── stdlib_noniso.h │ │ │ ├── u8g2.h │ │ │ ├── u8g2_bitmap.c │ │ │ ├── u8g2_box.c │ │ │ ├── u8g2_buffer.c │ │ │ ├── u8g2_circle.c │ │ │ ├── u8g2_cleardisplay.c │ │ │ ├── u8g2_d_memory.c │ │ │ ├── u8g2_d_setup.c │ │ │ ├── u8g2_font.c │ │ │ ├── u8g2_fonts.c │ │ │ ├── u8g2_hvline.c │ │ │ ├── u8g2_input_value.c │ │ │ ├── u8g2_intersection.c │ │ │ ├── u8g2_kerning.c │ │ │ ├── u8g2_line.c │ │ │ ├── u8g2_ll_hvline.c │ │ │ ├── u8g2_message.c │ │ │ ├── u8g2_polygon.c │ │ │ ├── u8g2_selection_list.c │ │ │ ├── u8g2_setup.c │ │ │ ├── u8g2_stm32f4.c │ │ │ ├── u8log.c │ │ │ ├── u8log_u8g2.c │ │ │ ├── u8log_u8x8.c │ │ │ ├── u8x8.h │ │ │ ├── u8x8_8x8.c │ │ │ ├── u8x8_byte.c │ │ │ ├── u8x8_cad.c │ │ │ ├── u8x8_capture.c │ │ │ ├── u8x8_d_a2printer.c │ │ │ ├── u8x8_d_il3820_296x128.c │ │ │ ├── u8x8_d_ist3020.c │ │ │ ├── u8x8_d_ist7920.c │ │ │ ├── u8x8_d_ks0108.c │ │ │ ├── u8x8_d_lc7981.c │ │ │ ├── u8x8_d_ld7032_60x32.c │ │ │ ├── u8x8_d_ls013b7dh03.c │ │ │ ├── u8x8_d_max7219.c │ │ │ ├── u8x8_d_pcd8544_84x48.c │ │ │ ├── u8x8_d_pcf8812.c │ │ │ ├── u8x8_d_pcf8814_hx1230.c │ │ │ ├── u8x8_d_s1d15721.c │ │ │ ├── u8x8_d_s1d15e06.c │ │ │ ├── u8x8_d_sbn1661.c │ │ │ ├── u8x8_d_sed1330.c │ │ │ ├── u8x8_d_sh1106_64x32.c │ │ │ ├── u8x8_d_sh1106_72x40.c │ │ │ ├── u8x8_d_sh1107.c │ │ │ ├── u8x8_d_sh1108.c │ │ │ ├── u8x8_d_sh1122.c │ │ │ ├── u8x8_d_ssd1305.c │ │ │ ├── u8x8_d_ssd1306_128x32.c │ │ │ ├── u8x8_d_ssd1306_128x64_noname.c │ │ │ ├── u8x8_d_ssd1306_128x80_noname.c │ │ │ ├── u8x8_d_ssd1306_2040x16.c │ │ │ ├── u8x8_d_ssd1306_48x64.c │ │ │ ├── u8x8_d_ssd1306_64x32.c │ │ │ ├── u8x8_d_ssd1306_64x48.c │ │ │ ├── u8x8_d_ssd1306_72x40.c │ │ │ ├── u8x8_d_ssd1306_96x16.c │ │ │ ├── u8x8_d_ssd1309.c │ │ │ ├── u8x8_d_ssd1316.c │ │ │ ├── u8x8_d_ssd1317.c │ │ │ ├── u8x8_d_ssd1318.c │ │ │ ├── u8x8_d_ssd1320.c │ │ │ ├── u8x8_d_ssd1322.c │ │ │ ├── u8x8_d_ssd1325.c │ │ │ ├── u8x8_d_ssd1326.c │ │ │ ├── u8x8_d_ssd1327.c │ │ │ ├── u8x8_d_ssd1329.c │ │ │ ├── u8x8_d_ssd1606_172x72.c │ │ │ ├── u8x8_d_ssd1607_200x200.c │ │ │ ├── u8x8_d_st7511.c │ │ │ ├── u8x8_d_st75256.c │ │ │ ├── u8x8_d_st7528.c │ │ │ ├── u8x8_d_st75320.c │ │ │ ├── u8x8_d_st7565.c │ │ │ ├── u8x8_d_st7567.c │ │ │ ├── u8x8_d_st7571.c │ │ │ ├── u8x8_d_st7586s_erc240160.c │ │ │ ├── u8x8_d_st7586s_s028hn118a.c │ │ │ ├── u8x8_d_st7586s_ymc240160.c │ │ │ ├── u8x8_d_st7588.c │ │ │ ├── u8x8_d_st7920.c │ │ │ ├── u8x8_d_stdio.c │ │ │ ├── u8x8_d_t6963.c │ │ │ ├── u8x8_d_uc1601.c │ │ │ ├── u8x8_d_uc1604.c │ │ │ ├── u8x8_d_uc1608.c │ │ │ ├── u8x8_d_uc1610.c │ │ │ ├── u8x8_d_uc1611.c │ │ │ ├── u8x8_d_uc1617.c │ │ │ ├── u8x8_d_uc1638.c │ │ │ ├── u8x8_d_uc1701_dogs102.c │ │ │ ├── u8x8_d_uc1701_mini12864.c │ │ │ ├── u8x8_debounce.c │ │ │ ├── u8x8_display.c │ │ │ ├── u8x8_fonts.c │ │ │ ├── u8x8_gpio.c │ │ │ ├── u8x8_input_value.c │ │ │ ├── u8x8_message.c │ │ │ ├── u8x8_selection_list.c │ │ │ ├── u8x8_setup.c │ │ │ ├── u8x8_string.c │ │ │ ├── u8x8_u16toa.c │ │ │ └── u8x8_u8toa.c │ │ ├── Bsp/ │ │ │ ├── communication/ │ │ │ │ ├── ascii_processor.cpp │ │ │ │ ├── ascii_processor.hpp │ │ │ │ ├── communication.cpp │ │ │ │ ├── communication.hpp │ │ │ │ ├── interface_can.cpp │ │ │ │ ├── interface_can.hpp │ │ │ │ ├── interface_uart.cpp │ │ │ │ ├── interface_uart.hpp │ │ │ │ ├── interface_usb.cpp │ │ │ │ └── interface_usb.hpp │ │ │ ├── gpio/ │ │ │ │ ├── analog.cpp │ │ │ │ ├── analog.hpp │ │ │ │ ├── encoder.cpp │ │ │ │ ├── encoder.hpp │ │ │ │ ├── pwm.cpp │ │ │ │ └── pwm.hpp │ │ │ ├── imu/ │ │ │ │ ├── MPU6050.cpp │ │ │ │ ├── MPU6050.hpp │ │ │ │ ├── MPU6050_6Axis_MotionApps20.h │ │ │ │ ├── MPU6050_9Axis_MotionApps41.h │ │ │ │ ├── filters/ │ │ │ │ │ ├── biquad_filter.c │ │ │ │ │ ├── biquad_filter.h │ │ │ │ │ ├── filter_math.c │ │ │ │ │ └── filter_math.h │ │ │ │ ├── helper_3dmath.h │ │ │ │ ├── i2c_dev.cpp │ │ │ │ └── i2c_dev.hpp │ │ │ ├── memory/ │ │ │ │ ├── eeprom_interface.h │ │ │ │ ├── emulated_eeprom.cpp │ │ │ │ └── emulated_eeprom.h │ │ │ └── utils/ │ │ │ ├── arm_math/ │ │ │ │ ├── arm_common_tables.h │ │ │ │ ├── arm_const_structs.h │ │ │ │ └── arm_math.h │ │ │ ├── software_i2c/ │ │ │ │ ├── soft_i2c.c │ │ │ │ └── soft_i2c.h │ │ │ ├── time_utils.c │ │ │ ├── time_utils.h │ │ │ ├── timer.cpp │ │ │ └── timer.hpp │ │ ├── CMakeLists.txt │ │ ├── CMakeLists_template.txt │ │ ├── Core/ │ │ │ ├── Inc/ │ │ │ │ ├── FreeRTOSConfig.h │ │ │ │ ├── adc.h │ │ │ │ ├── can.h │ │ │ │ ├── dma.h │ │ │ │ ├── gpio.h │ │ │ │ ├── i2c.h │ │ │ │ ├── main.h │ │ │ │ ├── spi.h │ │ │ │ ├── stm32f4xx_hal_conf.h │ │ │ │ ├── stm32f4xx_it.h │ │ │ │ ├── tim.h │ │ │ │ └── usart.h │ │ │ └── Src/ │ │ │ ├── adc.c │ │ │ ├── can.c │ │ │ ├── dma.c │ │ │ ├── freertos.c │ │ │ ├── gpio.c │ │ │ ├── i2c.c │ │ │ ├── main.c │ │ │ ├── spi.c │ │ │ ├── stm32f4xx_hal_msp.c │ │ │ ├── stm32f4xx_hal_timebase_tim.c │ │ │ ├── stm32f4xx_it.c │ │ │ ├── syscalls.c │ │ │ ├── system_stm32f4xx.c │ │ │ ├── tim.c │ │ │ └── usart.c │ │ ├── Drivers/ │ │ │ ├── CMSIS/ │ │ │ │ ├── Device/ │ │ │ │ │ └── ST/ │ │ │ │ │ └── STM32F4xx/ │ │ │ │ │ └── Include/ │ │ │ │ │ ├── stm32f405xx.h │ │ │ │ │ ├── stm32f4xx.h │ │ │ │ │ └── system_stm32f4xx.h │ │ │ │ ├── Include/ │ │ │ │ │ ├── cmsis_armcc.h │ │ │ │ │ ├── cmsis_armclang.h │ │ │ │ │ ├── cmsis_compiler.h │ │ │ │ │ ├── cmsis_gcc.h │ │ │ │ │ ├── cmsis_iccarm.h │ │ │ │ │ ├── cmsis_version.h │ │ │ │ │ ├── core_armv8mbl.h │ │ │ │ │ ├── core_armv8mml.h │ │ │ │ │ ├── core_cm0.h │ │ │ │ │ ├── core_cm0plus.h │ │ │ │ │ ├── core_cm1.h │ │ │ │ │ ├── core_cm23.h │ │ │ │ │ ├── core_cm3.h │ │ │ │ │ ├── core_cm33.h │ │ │ │ │ ├── core_cm4.h │ │ │ │ │ ├── core_cm7.h │ │ │ │ │ ├── core_sc000.h │ │ │ │ │ ├── core_sc300.h │ │ │ │ │ ├── mpu_armv7.h │ │ │ │ │ ├── mpu_armv8.h │ │ │ │ │ └── tz_context.h │ │ │ │ └── Lib/ │ │ │ │ └── libarm_cortexM4lf_math.a │ │ │ └── STM32F4xx_HAL_Driver/ │ │ │ ├── Inc/ │ │ │ │ ├── Legacy/ │ │ │ │ │ └── stm32_hal_legacy.h │ │ │ │ ├── stm32f4xx_hal.h │ │ │ │ ├── stm32f4xx_hal_adc.h │ │ │ │ ├── stm32f4xx_hal_adc_ex.h │ │ │ │ ├── stm32f4xx_hal_can.h │ │ │ │ ├── stm32f4xx_hal_cortex.h │ │ │ │ ├── stm32f4xx_hal_def.h │ │ │ │ ├── stm32f4xx_hal_dma.h │ │ │ │ ├── stm32f4xx_hal_dma_ex.h │ │ │ │ ├── stm32f4xx_hal_exti.h │ │ │ │ ├── stm32f4xx_hal_flash.h │ │ │ │ ├── stm32f4xx_hal_flash_ex.h │ │ │ │ ├── stm32f4xx_hal_flash_ramfunc.h │ │ │ │ ├── stm32f4xx_hal_gpio.h │ │ │ │ ├── stm32f4xx_hal_gpio_ex.h │ │ │ │ ├── stm32f4xx_hal_i2c.h │ │ │ │ ├── stm32f4xx_hal_i2c_ex.h │ │ │ │ ├── stm32f4xx_hal_pcd.h │ │ │ │ ├── stm32f4xx_hal_pcd_ex.h │ │ │ │ ├── stm32f4xx_hal_pwr.h │ │ │ │ ├── stm32f4xx_hal_pwr_ex.h │ │ │ │ ├── stm32f4xx_hal_rcc.h │ │ │ │ ├── stm32f4xx_hal_rcc_ex.h │ │ │ │ ├── stm32f4xx_hal_spi.h │ │ │ │ ├── stm32f4xx_hal_tim.h │ │ │ │ ├── stm32f4xx_hal_tim_ex.h │ │ │ │ ├── stm32f4xx_hal_uart.h │ │ │ │ ├── stm32f4xx_ll_adc.h │ │ │ │ └── stm32f4xx_ll_usb.h │ │ │ └── Src/ │ │ │ ├── stm32f4xx_hal.c │ │ │ ├── stm32f4xx_hal_adc.c │ │ │ ├── stm32f4xx_hal_adc_ex.c │ │ │ ├── stm32f4xx_hal_can.c │ │ │ ├── stm32f4xx_hal_cortex.c │ │ │ ├── stm32f4xx_hal_dma.c │ │ │ ├── stm32f4xx_hal_dma_ex.c │ │ │ ├── stm32f4xx_hal_exti.c │ │ │ ├── stm32f4xx_hal_flash.c │ │ │ ├── stm32f4xx_hal_flash_ex.c │ │ │ ├── stm32f4xx_hal_flash_ramfunc.c │ │ │ ├── stm32f4xx_hal_gpio.c │ │ │ ├── stm32f4xx_hal_i2c.c │ │ │ ├── stm32f4xx_hal_i2c_ex.c │ │ │ ├── stm32f4xx_hal_pcd.c │ │ │ ├── stm32f4xx_hal_pcd_ex.c │ │ │ ├── stm32f4xx_hal_pwr.c │ │ │ ├── stm32f4xx_hal_pwr_ex.c │ │ │ ├── stm32f4xx_hal_rcc.c │ │ │ ├── stm32f4xx_hal_rcc_ex.c │ │ │ ├── stm32f4xx_hal_spi.c │ │ │ ├── stm32f4xx_hal_tim.c │ │ │ ├── stm32f4xx_hal_tim_ex.c │ │ │ ├── stm32f4xx_hal_uart.c │ │ │ ├── stm32f4xx_ll_adc.c │ │ │ └── stm32f4xx_ll_usb.c │ │ ├── Middlewares/ │ │ │ ├── ST/ │ │ │ │ └── STM32_USB_Device_Library/ │ │ │ │ ├── Class/ │ │ │ │ │ └── CDC/ │ │ │ │ │ ├── Inc/ │ │ │ │ │ │ └── usbd_cdc.h │ │ │ │ │ └── Src/ │ │ │ │ │ └── usbd_cdc.c │ │ │ │ └── Core/ │ │ │ │ ├── Inc/ │ │ │ │ │ ├── usbd_core.h │ │ │ │ │ ├── usbd_ctlreq.h │ │ │ │ │ ├── usbd_def.h │ │ │ │ │ └── usbd_ioreq.h │ │ │ │ └── Src/ │ │ │ │ ├── usbd_core.c │ │ │ │ ├── usbd_ctlreq.c │ │ │ │ └── usbd_ioreq.c │ │ │ └── Third_Party/ │ │ │ └── FreeRTOS/ │ │ │ └── Source/ │ │ │ ├── CMSIS_RTOS_V2/ │ │ │ │ ├── cmsis_os.h │ │ │ │ ├── cmsis_os2.c │ │ │ │ ├── cmsis_os2.h │ │ │ │ ├── freertos_mpool.h │ │ │ │ └── freertos_os2.h │ │ │ ├── croutine.c │ │ │ ├── event_groups.c │ │ │ ├── include/ │ │ │ │ ├── FreeRTOS.h │ │ │ │ ├── StackMacros.h │ │ │ │ ├── atomic.h │ │ │ │ ├── croutine.h │ │ │ │ ├── deprecated_definitions.h │ │ │ │ ├── event_groups.h │ │ │ │ ├── list.h │ │ │ │ ├── message_buffer.h │ │ │ │ ├── mpu_prototypes.h │ │ │ │ ├── mpu_wrappers.h │ │ │ │ ├── portable.h │ │ │ │ ├── projdefs.h │ │ │ │ ├── queue.h │ │ │ │ ├── semphr.h │ │ │ │ ├── stack_macros.h │ │ │ │ ├── stream_buffer.h │ │ │ │ ├── task.h │ │ │ │ └── timers.h │ │ │ ├── list.c │ │ │ ├── portable/ │ │ │ │ ├── GCC/ │ │ │ │ │ └── ARM_CM4F/ │ │ │ │ │ ├── port.c │ │ │ │ │ └── portmacro.h │ │ │ │ └── MemMang/ │ │ │ │ └── heap_4.c │ │ │ ├── queue.c │ │ │ ├── stream_buffer.c │ │ │ ├── tasks.c │ │ │ └── timers.c │ │ ├── REF-STM32F4-fw.ioc │ │ ├── Robot/ │ │ │ ├── actuators/ │ │ │ │ ├── ctrl_step/ │ │ │ │ │ ├── ctrl_step.cpp │ │ │ │ │ └── ctrl_step.hpp │ │ │ │ └── mintasca/ │ │ │ │ ├── sca.cpp │ │ │ │ ├── sca.hpp │ │ │ │ ├── sca_api.c │ │ │ │ ├── sca_api.h │ │ │ │ ├── sca_protocol.c │ │ │ │ └── sca_protocol.h │ │ │ ├── algorithms/ │ │ │ │ └── kinematic/ │ │ │ │ ├── 6dof_kinematic.cpp │ │ │ │ └── 6dof_kinematic.h │ │ │ └── instances/ │ │ │ ├── dummy_robot.cpp │ │ │ └── dummy_robot.h │ │ ├── STM32F405RGTx_FLASH.ld │ │ ├── USB_DEVICE/ │ │ │ ├── App/ │ │ │ │ ├── usb_device.c │ │ │ │ ├── usb_device.h │ │ │ │ ├── usbd_cdc_if.c │ │ │ │ ├── usbd_cdc_if.h │ │ │ │ ├── usbd_desc.c │ │ │ │ └── usbd_desc.h │ │ │ └── Target/ │ │ │ ├── usbd_conf.c │ │ │ └── usbd_conf.h │ │ ├── UserApp/ │ │ │ ├── common_inc.h │ │ │ ├── freertos_inc.h │ │ │ ├── main.cpp │ │ │ └── protocols/ │ │ │ ├── ascii_protocol.cpp │ │ │ ├── can_protocol.cpp │ │ │ └── cmd_protocol.cpp │ │ ├── startup/ │ │ │ └── startup_stm32f405xx.s │ │ └── stlink.cfg │ ├── Ctrl-Step-Driver-STM32F1-fw/ │ │ ├── .cproject │ │ ├── .gitignore │ │ ├── .idea/ │ │ │ ├── .gitignore │ │ │ ├── .name │ │ │ ├── Ctrl-Step-fw.iml │ │ │ ├── codeStyles/ │ │ │ │ └── codeStyleConfig.xml │ │ │ ├── copyright/ │ │ │ │ ├── ctrl_step.xml │ │ │ │ └── profiles_settings.xml │ │ │ ├── deployment.xml │ │ │ ├── encodings.xml │ │ │ ├── inspectionProfiles/ │ │ │ │ └── Project_Default.xml │ │ │ ├── misc.xml │ │ │ ├── modules.xml │ │ │ ├── serialmonitor_settings.xml │ │ │ └── vcs.xml │ │ ├── .mxproject │ │ ├── .project │ │ ├── CMakeLists.txt │ │ ├── CMakeLists_template.txt │ │ ├── Core/ │ │ │ ├── Inc/ │ │ │ │ ├── adc.h │ │ │ │ ├── can.h │ │ │ │ ├── dma.h │ │ │ │ ├── gpio.h │ │ │ │ ├── main.h │ │ │ │ ├── spi.h │ │ │ │ ├── stm32f1xx_hal_conf.h │ │ │ │ ├── stm32f1xx_it.h │ │ │ │ ├── tim.h │ │ │ │ └── usart.h │ │ │ └── Src/ │ │ │ ├── adc.c │ │ │ ├── can.c │ │ │ ├── dma.c │ │ │ ├── gpio.c │ │ │ ├── main.c │ │ │ ├── spi.c │ │ │ ├── stm32f1xx_hal_msp.c │ │ │ ├── stm32f1xx_it.c │ │ │ ├── syscalls.c │ │ │ ├── system_stm32f1xx.c │ │ │ ├── tim.c │ │ │ └── usart.c │ │ ├── Ctrl/ │ │ │ ├── Driver/ │ │ │ │ ├── driver_base.h │ │ │ │ ├── sin_map.h │ │ │ │ ├── tb67h450_base.cpp │ │ │ │ └── tb67h450_base.h │ │ │ ├── Motor/ │ │ │ │ ├── motion_planner.cpp │ │ │ │ ├── motion_planner.h │ │ │ │ ├── motor.cpp │ │ │ │ └── motor.h │ │ │ ├── Sensor/ │ │ │ │ └── Encoder/ │ │ │ │ ├── encoder_base.h │ │ │ │ ├── encoder_calibrator_base.cpp │ │ │ │ ├── encoder_calibrator_base.h │ │ │ │ ├── mt6816_base.cpp │ │ │ │ └── mt6816_base.h │ │ │ └── Signal/ │ │ │ ├── button_base.cpp │ │ │ ├── button_base.h │ │ │ ├── led_base.cpp │ │ │ └── led_base.h │ │ ├── Ctrl-Step-fw.xml │ │ ├── Drivers/ │ │ │ ├── CMSIS/ │ │ │ │ ├── Device/ │ │ │ │ │ └── ST/ │ │ │ │ │ └── STM32F1xx/ │ │ │ │ │ └── Include/ │ │ │ │ │ ├── stm32f103xb.h │ │ │ │ │ ├── stm32f1xx.h │ │ │ │ │ └── system_stm32f1xx.h │ │ │ │ └── Include/ │ │ │ │ ├── cmsis_armcc.h │ │ │ │ ├── cmsis_armclang.h │ │ │ │ ├── cmsis_compiler.h │ │ │ │ ├── cmsis_gcc.h │ │ │ │ ├── cmsis_iccarm.h │ │ │ │ ├── cmsis_version.h │ │ │ │ ├── core_armv8mbl.h │ │ │ │ ├── core_armv8mml.h │ │ │ │ ├── core_cm0.h │ │ │ │ ├── core_cm0plus.h │ │ │ │ ├── core_cm1.h │ │ │ │ ├── core_cm23.h │ │ │ │ ├── core_cm3.h │ │ │ │ ├── core_cm33.h │ │ │ │ ├── core_cm4.h │ │ │ │ ├── core_cm7.h │ │ │ │ ├── core_sc000.h │ │ │ │ ├── core_sc300.h │ │ │ │ ├── mpu_armv7.h │ │ │ │ ├── mpu_armv8.h │ │ │ │ └── tz_context.h │ │ │ └── STM32F1xx_HAL_Driver/ │ │ │ ├── Inc/ │ │ │ │ ├── Legacy/ │ │ │ │ │ └── stm32_hal_legacy.h │ │ │ │ ├── stm32f1xx_hal.h │ │ │ │ ├── stm32f1xx_hal_adc.h │ │ │ │ ├── stm32f1xx_hal_adc_ex.h │ │ │ │ ├── stm32f1xx_hal_can.h │ │ │ │ ├── stm32f1xx_hal_cortex.h │ │ │ │ ├── stm32f1xx_hal_def.h │ │ │ │ ├── stm32f1xx_hal_dma.h │ │ │ │ ├── stm32f1xx_hal_dma_ex.h │ │ │ │ ├── stm32f1xx_hal_exti.h │ │ │ │ ├── stm32f1xx_hal_flash.h │ │ │ │ ├── stm32f1xx_hal_flash_ex.h │ │ │ │ ├── stm32f1xx_hal_gpio.h │ │ │ │ ├── stm32f1xx_hal_gpio_ex.h │ │ │ │ ├── stm32f1xx_hal_pwr.h │ │ │ │ ├── stm32f1xx_hal_rcc.h │ │ │ │ ├── stm32f1xx_hal_rcc_ex.h │ │ │ │ ├── stm32f1xx_hal_spi.h │ │ │ │ ├── stm32f1xx_hal_tim.h │ │ │ │ ├── stm32f1xx_hal_tim_ex.h │ │ │ │ └── stm32f1xx_hal_uart.h │ │ │ └── Src/ │ │ │ ├── stm32f1xx_hal.c │ │ │ ├── stm32f1xx_hal_adc.c │ │ │ ├── stm32f1xx_hal_adc_ex.c │ │ │ ├── stm32f1xx_hal_can.c │ │ │ ├── stm32f1xx_hal_cortex.c │ │ │ ├── stm32f1xx_hal_dma.c │ │ │ ├── stm32f1xx_hal_exti.c │ │ │ ├── stm32f1xx_hal_flash.c │ │ │ ├── stm32f1xx_hal_flash_ex.c │ │ │ ├── stm32f1xx_hal_gpio.c │ │ │ ├── stm32f1xx_hal_gpio_ex.c │ │ │ ├── stm32f1xx_hal_pwr.c │ │ │ ├── stm32f1xx_hal_rcc.c │ │ │ ├── stm32f1xx_hal_rcc_ex.c │ │ │ ├── stm32f1xx_hal_spi.c │ │ │ ├── stm32f1xx_hal_tim.c │ │ │ ├── stm32f1xx_hal_tim_ex.c │ │ │ └── stm32f1xx_hal_uart.c │ │ ├── Port/ │ │ │ ├── Platform/ │ │ │ │ ├── Memory/ │ │ │ │ │ ├── eeprom_interface.h │ │ │ │ │ ├── emulated_eeprom.cpp │ │ │ │ │ ├── emulated_eeprom.h │ │ │ │ │ ├── stockpile_config.h │ │ │ │ │ ├── stockpile_f103cb.c │ │ │ │ │ └── stockpile_f103cb.h │ │ │ │ ├── Utils/ │ │ │ │ │ ├── st_hardware.c │ │ │ │ │ └── st_hardware.h │ │ │ │ ├── retarget.c │ │ │ │ └── retarget.h │ │ │ ├── button_stm32.cpp │ │ │ ├── button_stm32.h │ │ │ ├── encoder_calibrator_stm32.cpp │ │ │ ├── encoder_calibrator_stm32.h │ │ │ ├── led_stm32.cpp │ │ │ ├── led_stm32.h │ │ │ ├── mt6816_stm32.cpp │ │ │ ├── mt6816_stm32.h │ │ │ ├── tb67h450_stm32.cpp │ │ │ └── tb67h450_stm32.h │ │ ├── README.md │ │ ├── STM32F103CBTx_FLASH.ld │ │ ├── UserApp/ │ │ │ ├── common_inc.h │ │ │ ├── configurations.h │ │ │ ├── main.cpp │ │ │ └── protocols/ │ │ │ ├── interface_can.cpp │ │ │ └── interface_uart.cpp │ │ ├── startup/ │ │ │ └── startup_stm32f103xb.s │ │ └── stlink.cfg │ └── _Released HEX/ │ └── Ctrl-Step-Driver-STM32F1-fw.hex ├── 3.Software/ │ ├── CLI-Tool/ │ │ ├── .gitignore │ │ ├── .idea/ │ │ │ ├── .gitignore │ │ │ ├── cmd_tool.iml │ │ │ ├── deployment.xml │ │ │ ├── encodings.xml │ │ │ ├── inspectionProfiles/ │ │ │ │ ├── Project_Default.xml │ │ │ │ └── profiles_settings.xml │ │ │ ├── libraries/ │ │ │ │ ├── ROS.xml │ │ │ │ └── workspace.xml │ │ │ ├── misc.xml │ │ │ ├── modules.xml │ │ │ ├── ros.xml │ │ │ └── vcs.xml │ │ ├── _addition/ │ │ │ └── ref_demo.py │ │ ├── fibre/ │ │ │ ├── __init__.py │ │ │ ├── discovery.py │ │ │ ├── protocol.py │ │ │ ├── remote_object.py │ │ │ ├── serial_transport.py │ │ │ ├── shell.py │ │ │ ├── tcp_transport.py │ │ │ ├── udp_transport.py │ │ │ ├── usbbulk_transport.py │ │ │ └── utils.py │ │ ├── ref_tool/ │ │ │ ├── __init__.py │ │ │ ├── code_generator.py │ │ │ ├── configuration.py │ │ │ ├── shell.py │ │ │ ├── utils.py │ │ │ └── version.py │ │ ├── run.bat │ │ └── run_shell.py │ └── DummyStudio/ │ ├── DummyStudio_Data/ │ │ ├── Resources/ │ │ │ ├── unity default resources │ │ │ └── unity_builtin_extra │ │ ├── StreamingAssets/ │ │ │ └── serial_config.txt │ │ ├── app.info │ │ ├── boot.config │ │ ├── globalgamemanagers │ │ ├── globalgamemanagers.assets │ │ ├── level0 │ │ ├── resources.assets │ │ ├── resources.assets.resS │ │ ├── sharedassets0.assets │ │ └── sharedassets0.assets.resS │ └── MonoBleedingEdge/ │ └── etc/ │ └── mono/ │ ├── 2.0/ │ │ ├── Browsers/ │ │ │ └── Compat.browser │ │ ├── DefaultWsdlHelpGenerator.aspx │ │ ├── machine.config │ │ └── web.config │ ├── 4.0/ │ │ ├── Browsers/ │ │ │ └── Compat.browser │ │ ├── DefaultWsdlHelpGenerator.aspx │ │ ├── machine.config │ │ └── web.config │ ├── 4.5/ │ │ ├── Browsers/ │ │ │ └── Compat.browser │ │ ├── DefaultWsdlHelpGenerator.aspx │ │ ├── machine.config │ │ └── web.config │ ├── browscap.ini │ ├── config │ └── mconfig/ │ └── config.xml ├── 4.Model/ │ ├── Case v17.step │ ├── Dummy v164.step │ ├── Motor42-上盖.step │ └── Motor42-下盖.step └── README.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitmodules ================================================ [submodule "0.SubModules/Peak"] path = 0.SubModules/Peak url = git@github.com:peng-zhihui/Peak.git ================================================ FILE: 1.Hardware/.gitattributes ================================================ # author: GitHub@TitanRGB # This document allows GitHub to correctly identify Altium Designer, KiCAD, Gerber and Eagle documents and add them to GitHub Repository's language statistics. # 这个文档可以使GitHub正确的识别Altium Designer、KiCAD、Gerber以及Eagle的文档,并将它们加入到GitHub Repository的语言统计中。 # https://gist.github.com/TitanRGB/61c37bf71159cc9a511558ec7c218339 *.OutJob linguist-detectable=true *.PcbDoc linguist-detectable=true *.PrjPCB linguist-detectable=true *.SchDoc linguist-detectable=true *.outjob linguist-detectable=true *.pcbdoc linguist-detectable=true *.prjpcb linguist-detectable=true *.schdoc linguist-detectable=true *.PCB linguist-detectable=true *.sch linguist-detectable=true *.lib linguist-detectable=true *.epf linguist-detectable=true *.brd linguist-detectable=true *.pro linguist-detectable=true *.gbr linguist-detectable=true *.cmp linguist-detectable=true *.gbl linguist-detectable=true *.gbo linguist-detectable=true *.gbp linguist-detectable=true *.gbs linguist-detectable=true *.gko linguist-detectable=true *.gml linguist-detectable=true *.gpb linguist-detectable=true *.gpt linguist-detectable=true *.gtl linguist-detectable=true *.gto linguist-detectable=true *.gtp linguist-detectable=true *.gts linguist-detectable=true *.ncl linguist-detectable=true *.sol linguist-detectable=true *.GBR linguist-detectable=true *.CMP linguist-detectable=true *.GBL linguist-detectable=true *.GBO linguist-detectable=true *.GBP linguist-detectable=true *.GBS linguist-detectable=true *.GKO linguist-detectable=true *.GML linguist-detectable=true *.GBP linguist-detectable=true *.GPT linguist-detectable=true *.GTL linguist-detectable=true *.GTO linguist-detectable=true *.GTP linguist-detectable=true *.GTS linguist-detectable=true *.NCL linguist-detectable=true *.SOL linguist-detectable=true *.kicad_pcb linguist-detectable=true *.pro linguist-detectable=true *.obj linguist-detectable=true *.stl linguist-detectable=true *.md linguist-detectable=true *.dxf linguist-detectable=true *.dwg linguist-detectable=true ================================================ FILE: 1.Hardware/Controller/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/Controller/Controller.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=2 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=0 AppendSheetNumberToLocalNets=1 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=1 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=QVBBULDQ [Document2] DocumentPath=Controller.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=SPYPGENJ [GeneratedDocument1] DocumentPath=Project Outputs for Controller\Design Rule Check - Controller.html DItemRevisionGUID= [SearchPath1] Path=E:\OneDrive\[软件配置备份]\Altium Designer\1.元件库\*.* IncludeSubFolders=1 [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\OpenMotion-dev\1.Hardware\Controller\Controller.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908292~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16908304~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\OpenMotion-dev\1.Hardware\Controller\Controller.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Export Comments OutputName7=Export Comments OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=BOM_ReportCompare OutputName8=BOM Compare OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/Controller/Controller.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/Dangle/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/Dangle/Dangle.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=2 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=0 AppendSheetNumberToLocalNets=1 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=1 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=QVBBULDQ [Document2] DocumentPath=Dangle.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=SPYPGENJ [GeneratedDocument1] DocumentPath=Project Outputs for Dangle\Design Rule Check - Dangle.html DItemRevisionGUID= [SearchPath1] Path=E:\OneDrive\[软件配置备份]\Altium Designer\1.元件库\*.* IncludeSubFolders=1 [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\OpenMotion-dev\1.Hardware\Controller\Controller.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908292~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16908304~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\OpenMotion-dev\1.Hardware\Controller\Controller.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Export Comments OutputName7=Export Comments OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=BOM_ReportCompare OutputName8=BOM Compare OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/Dangle/Dangle.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/HandModule/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/HandModule/HandModule.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=2 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=0 AppendSheetNumberToLocalNets=1 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=1 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=QVBBULDQ [Document2] DocumentPath=HandModule.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=SPYPGENJ [SearchPath1] Path=E:\OneDrive\[软件配置备份]\Altium Designer\1.元件库\*.* IncludeSubFolders=1 [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\Dummy-Robot-dev\1.Hardware\HandModule\HandModule.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908292~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16908304~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\Dummy-Robot-dev\1.Hardware\HandModule\HandModule.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Export Comments OutputName7=Export Comments OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=BOM_ReportCompare OutputName8=BOM Compare OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/HandModule/HandModule.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/LedRing/.gitignore ================================================ History Project Logs for* Project Outputs* __Previews ================================================ FILE: 1.Hardware/LedRing/LedRing.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=0 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=1 AppendSheetNumberToLocalNets=0 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=0 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=OTRBEYFQ [Document2] DocumentPath=LedRing.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=OBQETHQV [GeneratedDocument1] DocumentPath=Project Outputs for LedRing\Design Rule Check - LedRing.html DItemRevisionGUID= [GeneratedDocument2] DocumentPath=Project Outputs for LedRing\LedRing.DRR DItemRevisionGUID= [GeneratedDocument3] DocumentPath=Project Outputs for LedRing\LedRing.EXTREP DItemRevisionGUID= [GeneratedDocument4] DocumentPath=Project Outputs for LedRing\LedRing.GBL DItemRevisionGUID= [GeneratedDocument5] DocumentPath=Project Outputs for LedRing\LedRing.GBO DItemRevisionGUID= [GeneratedDocument6] DocumentPath=Project Outputs for LedRing\LedRing.GBP DItemRevisionGUID= [GeneratedDocument7] DocumentPath=Project Outputs for LedRing\LedRing.GBS DItemRevisionGUID= [GeneratedDocument8] DocumentPath=Project Outputs for LedRing\LedRing.GD1 DItemRevisionGUID= [GeneratedDocument9] DocumentPath=Project Outputs for LedRing\LedRing.GG1 DItemRevisionGUID= [GeneratedDocument10] DocumentPath=Project Outputs for LedRing\LedRing.GKO DItemRevisionGUID= [GeneratedDocument11] DocumentPath=Project Outputs for LedRing\LedRing.GM1 DItemRevisionGUID= [GeneratedDocument12] DocumentPath=Project Outputs for LedRing\LedRing.GM10 DItemRevisionGUID= [GeneratedDocument13] DocumentPath=Project Outputs for LedRing\LedRing.GM12 DItemRevisionGUID= [GeneratedDocument14] DocumentPath=Project Outputs for LedRing\LedRing.GM13 DItemRevisionGUID= [GeneratedDocument15] DocumentPath=Project Outputs for LedRing\LedRing.GM14 DItemRevisionGUID= [GeneratedDocument16] DocumentPath=Project Outputs for LedRing\LedRing.GM15 DItemRevisionGUID= [GeneratedDocument17] DocumentPath=Project Outputs for LedRing\LedRing.GPB DItemRevisionGUID= [GeneratedDocument18] DocumentPath=Project Outputs for LedRing\LedRing.GPT DItemRevisionGUID= [GeneratedDocument19] DocumentPath=Project Outputs for LedRing\LedRing.GTL DItemRevisionGUID= [GeneratedDocument20] DocumentPath=Project Outputs for LedRing\LedRing.GTO DItemRevisionGUID= [GeneratedDocument21] DocumentPath=Project Outputs for LedRing\LedRing.GTP DItemRevisionGUID= [GeneratedDocument22] DocumentPath=Project Outputs for LedRing\LedRing.GTS DItemRevisionGUID= [GeneratedDocument23] DocumentPath=Project Outputs for LedRing\LedRing.LDP DItemRevisionGUID= [GeneratedDocument24] DocumentPath=Project Outputs for LedRing\LedRing.REP DItemRevisionGUID= [GeneratedDocument25] DocumentPath=Project Outputs for LedRing\LedRing.RUL DItemRevisionGUID= [GeneratedDocument26] DocumentPath=Project Outputs for LedRing\LedRing.TXT DItemRevisionGUID= [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\Dummy-Robot-dev\1.Hardware\LedRing\LedRing.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\Dummy-Robot-dev\1.Hardware\LedRing\LedRing.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=BOM_ReportCompare OutputName7=BOM Compare OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Export Comments OutputName8=Export Comments OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/LedRing/LedRing.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber= ================================================ FILE: 1.Hardware/MotorDriver-20/.gitignore ================================================ History Project Logs for littleVisual-ESP32 __Previews ================================================ FILE: 1.Hardware/MotorDriver-20/Motor-20.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=0 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=1 AppendSheetNumberToLocalNets=0 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=0 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Drive.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=OTRBEYFQ [Document2] DocumentPath=MCU.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=MMRIIHEF [Document3] DocumentPath=Port.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=2 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=ZMLSMFEG [Document4] DocumentPath=Power.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=3 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RMXANKZL [Document5] DocumentPath=Interface.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=4 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=DXHCOWHD [Document6] DocumentPath=Motor-20.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RPGXAMXA [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Mask OutputName1=Solder/Paste Mask Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Drill OutputName2=Drill Drawing/Guides OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=CompositeDrill OutputName3=Composite Drill Drawing OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=IPC2581 OutputName4=IPC-2581 Files OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Gerber X2 OutputName5=Gerber X2 Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Board Stack Report OutputName7=Report Board Stack OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Plane OutputName8=Power-Plane Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=ODB OutputName9=ODB++ Files OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 OutputType10=NC Drill OutputName10=NC Drill Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 Configuration10_Name1=ForceUpdateSettings Configuration10_Item1=False Configuration10_Name2=OutputConfigurationParameter1 Configuration10_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\Ctrl-Step-Drive\1.Hardware\Unibody\Motor-20\Motor-20.PcbDoc OutputType11=Test Points OutputName11=Test Point Report OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16777218~1,16777219~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\Ctrl-Step-Drive\1.Hardware\Unibody\Motor-20\Motor-20.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=BOM_ReportCompare OutputName7=BOM Compare OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Export Comments OutputName8=Export Comments OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/MotorDriver-20/Motor-20.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Drive.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Interface.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=MCU.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Port.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Power.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/MotorDriver-42/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42-macro.APR_LIB ================================================ G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % G04:AMPARAMS|DCode=17|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % G04:AMPARAMS|DCode=18|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.03937,0.03937,0,0,270.0* 21,1,0.01968,0.05906,0,0,270.0* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* % G04:AMPARAMS|DCode=19|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % G04:AMPARAMS|DCode=31|XSize=65mil|YSize=120mil|CornerRadius=16.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD31* 21,1,0.06500,0.08750,0,0,180.0* 21,1,0.03250,0.12000,0,0,180.0* 1,1,0.03250,-0.01625,0.04375* 1,1,0.03250,0.01625,0.04375* 1,1,0.03250,0.01625,-0.04375* 1,1,0.03250,-0.01625,-0.04375* % G04:AMPARAMS|DCode=36|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD36* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % G04:AMPARAMS|DCode=37|XSize=29.62mil|YSize=45.37mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD37* 21,1,0.02962,0.02756,0,0,180.0* 21,1,0.01181,0.04537,0,0,180.0* 1,1,0.01781,-0.00591,0.01378* 1,1,0.01781,0.00591,0.01378* 1,1,0.01781,0.00591,-0.01378* 1,1,0.01781,-0.00591,-0.01378* % G04:AMPARAMS|DCode=38|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD38* 21,1,0.04537,0.03937,0,0,270.0* 21,1,0.01968,0.06506,0,0,270.0* 1,1,0.02568,-0.01968,-0.00984* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* % G04:AMPARAMS|DCode=39|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD39* 21,1,0.02175,0.05118,0,0,90.0* 21,1,0.00787,0.06506,0,0,90.0* 1,1,0.01387,0.02559,0.00394* 1,1,0.01387,0.02559,-0.00394* 1,1,0.01387,-0.02559,-0.00394* 1,1,0.01387,-0.02559,0.00394* % G04:AMPARAMS|DCode=40|XSize=46mil|YSize=66mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD40* 21,1,0.04600,0.04000,0,0,180.0* 21,1,0.02000,0.06600,0,0,180.0* 1,1,0.02600,-0.01000,0.02000* 1,1,0.02600,0.01000,0.02000* 1,1,0.02600,0.01000,-0.02000* 1,1,0.02600,-0.01000,-0.02000* % G04:AMPARAMS|DCode=41|XSize=22mil|YSize=22mil|CornerRadius=11mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD41* 21,1,0.02200,0.00000,0,0,270.0* 21,1,0.00000,0.02200,0,0,270.0* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* % G04:AMPARAMS|DCode=42|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD42* 21,1,0.04537,0.03937,0,0,0.0* 21,1,0.01968,0.06506,0,0,0.0* 1,1,0.02568,0.00984,-0.01968* 1,1,0.02568,-0.00984,-0.01968* 1,1,0.02568,-0.00984,0.01968* 1,1,0.02568,0.00984,0.01968* % G04:AMPARAMS|DCode=43|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD43* 21,1,0.02175,0.05118,0,0,180.0* 21,1,0.00787,0.06506,0,0,180.0* 1,1,0.01387,-0.00394,0.02559* 1,1,0.01387,0.00394,0.02559* 1,1,0.01387,0.00394,-0.02559* 1,1,0.01387,-0.00394,-0.02559* % G04:AMPARAMS|DCode=45|XSize=46mil|YSize=80mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD45* 21,1,0.04600,0.05400,0,0,90.0* 21,1,0.02000,0.08000,0,0,90.0* 1,1,0.02600,0.02700,0.01000* 1,1,0.02600,0.02700,-0.01000* 1,1,0.02600,-0.02700,-0.01000* 1,1,0.02600,-0.02700,0.01000* % G04:AMPARAMS|DCode=46|XSize=65.06mil|YSize=45.37mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD46* 21,1,0.06506,0.01968,0,0,180.0* 21,1,0.03937,0.04537,0,0,180.0* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* % G04:AMPARAMS|DCode=47|XSize=61mil|YSize=71mil|CornerRadius=16.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD47* 21,1,0.06100,0.03750,0,0,90.0* 21,1,0.02750,0.07100,0,0,90.0* 1,1,0.03350,0.01875,0.01375* 1,1,0.03350,0.01875,-0.01375* 1,1,0.03350,-0.01875,-0.01375* 1,1,0.03350,-0.01875,0.01375* % G04:AMPARAMS|DCode=48|XSize=25.68mil|YSize=29.62mil|CornerRadius=7.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD48* 21,1,0.02568,0.01378,0,0,90.0* 21,1,0.00984,0.02962,0,0,90.0* 1,1,0.01584,0.00689,0.00492* 1,1,0.01584,0.00689,-0.00492* 1,1,0.01584,-0.00689,-0.00492* 1,1,0.01584,-0.00689,0.00492* % G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % G04:AMPARAMS|DCode=74|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD74* 21,1,0.02600,0.01000,0,0,270.0* 21,1,0.01000,0.02600,0,0,270.0* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* 1,1,0.01600,0.00500,-0.00500* % G04:AMPARAMS|DCode=75|XSize=96.55mil|YSize=96.55mil|CornerRadius=25.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD75* 21,1,0.09655,0.04528,0,0,0.0* 21,1,0.04528,0.09655,0,0,0.0* 1,1,0.05128,0.02264,-0.02264* 1,1,0.05128,-0.02264,-0.02264* 1,1,0.05128,-0.02264,0.02264* 1,1,0.05128,0.02264,0.02264* % G04:AMPARAMS|DCode=76|XSize=206mil|YSize=86mil|CornerRadius=23mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD76* 21,1,0.20600,0.04000,0,0,270.0* 21,1,0.16000,0.08600,0,0,270.0* 1,1,0.04600,-0.02000,-0.08000* 1,1,0.04600,-0.02000,0.08000* 1,1,0.04600,0.02000,0.08000* 1,1,0.04600,0.02000,-0.08000* % G04:AMPARAMS|DCode=77|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD77* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % G04:AMPARAMS|DCode=78|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD78* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % G04:AMPARAMS|DCode=79|XSize=29.62mil|YSize=41mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD79* 21,1,0.02962,0.02319,0,0,0.0* 21,1,0.01181,0.04100,0,0,0.0* 1,1,0.01781,0.00591,-0.01159* 1,1,0.01781,-0.00591,-0.01159* 1,1,0.01781,-0.00591,0.01159* 1,1,0.01781,0.00591,0.01159* % G04:AMPARAMS|DCode=80|XSize=33.56mil|YSize=57.18mil|CornerRadius=9.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD80* 21,1,0.03356,0.03740,0,0,0.0* 21,1,0.01378,0.05718,0,0,0.0* 1,1,0.01978,0.00689,-0.01870* 1,1,0.01978,-0.00689,-0.01870* 1,1,0.01978,-0.00689,0.01870* 1,1,0.01978,0.00689,0.01870* % ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.DRR ================================================ ---------------------------------------------------------------------------------------------------------------------------------- NCDrill File Report For: Motor-42.PcbDoc ܶ 01-18 19:21:45 ---------------------------------------------------------------------------------------------------------------------------------- Layer Pair : Top1 to Bottom4 ASCII RoundHoles File : Motor-42.TXT Tool Hole Size Hole Tolerance Hole Type Hole Count Plated Tool Travel ---------------------------------------------------------------------------------------------------------------------------------- T1 10mil (0.254mm) Round 146 PTH 12.15inch (308.67mm) T2 16mil (0.4mm) Round 139 PTH 7.73inch (196.44mm) T3 122mil (3.1mm) Round 4 PTH 3.66inch (93.00mm) ---------------------------------------------------------------------------------------------------------------------------------- Totals 289 Total Processing Time (hh:mm:ss) : 00:00:01 ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.EXTREP ================================================ ------------------------------------------------------------------------------------------ Gerber File Extension Report For: Motor-42.GBR ܶ 01-18 19:21:37 ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ Layer Extension Layer Description ------------------------------------------------------------------------------------------ .GTO Top Overlay .GTP Top Paste .GTS Top Solder .GTL Top1 .G1 Signal2 .G2 Gnd3 .GBL Bottom4 .GBS Bottom Solder .GBP Bottom Paste .GBO Bottom Overlay .GM1 Mechanical 1 .GM10 Mechanical 10 .GM12 Mechanical 12 .GM13 Mechanical 13 .GM14 Mechanical 14 .GM15 Mechanical 15 .GKO Keep-Out Layer .GPT Top Pad Master .GPB Bottom Pad Master .GD1 Drill Drawing .GG1 Drill Guide ------------------------------------------------------------------------------------------ ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.G1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=2* G04 Layer_Color=14461039* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% %ADD50C,0.02000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% %ADD57C,0.07000*% %ADD58C,0.00700*% G36* X-61046Y80185D02* X60550D01* X60553Y80185D01* X61046Y80185D01* X61531Y80148D01* X62751Y80052D01* X64413Y79653D01* X65992Y78999D01* X67205Y78256D01* X67605Y77962D01* X67605Y77962D01* X67605Y77962D01* X70086Y76006D01* X73162Y73162D01* X76006Y70086D01* X77962Y67605D01* X77962Y67605D01* X77962Y67605D01* X78256Y67204D01* X78999Y65992D01* X79653Y64413D01* X80052Y62751D01* X80148Y61531D01* X80185Y61046D01* X80255Y60695D01* X80317Y60601D01* X80396Y60483D01* Y-60483D01* X80255Y-60695D01* X80185Y-61046D01* X80148Y-61531D01* X80052Y-62751D01* X79653Y-64413D01* X78999Y-65992D01* X78256Y-67205D01* X77962Y-67605D01* X77962Y-67605D01* X77962Y-67605D01* X76006Y-70086D01* X73162Y-73162D01* X70086Y-76006D01* X67605Y-77962D01* X67605Y-77962D01* X67605Y-77962D01* X67204Y-78256D01* X65992Y-78999D01* X64413Y-79653D01* X62751Y-80052D01* X61554Y-80146D01* X61258Y-80087D01* X-60835D01* X-61186Y-80157D01* X-61210Y-80173D01* X-62751Y-80052D01* X-64413Y-79653D01* X-65992Y-78999D01* X-67204Y-78256D01* X-67605Y-77962D01* X-67605Y-77962D01* X-67605Y-77962D01* X-70086Y-76006D01* X-73162Y-73162D01* X-76006Y-70086D01* X-77962Y-67605D01* X-77962Y-67605D01* X-77962Y-67605D01* X-78256Y-67204D01* X-78999Y-65992D01* X-79653Y-64413D01* X-80052Y-62751D01* X-80153Y-61465D01* X-80043Y-61300D01* X-79973Y-60949D01* Y-54406D01* X-79615Y-54277D01* X-79473Y-54265D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78473D01* X-78396Y-54833D01* X-78289Y-54834D01* X-78201Y-54839D01* X-78123Y-54848D01* X-78055Y-54860D01* X-77997Y-54874D01* X-77949Y-54890D01* X-77913Y-54905D01* X-75849Y-56969D01* Y-65800D01* X-75659Y-66259D01* X-68159Y-73759D01* X-67700Y-73949D01* X-54900D01* X-54441Y-73759D01* X-49241Y-68559D01* X-49051Y-68100D01* Y-23300D01* X-49241Y-22841D01* X-49595Y-22487D01* X-49610Y-22451D01* X-49626Y-22403D01* X-49640Y-22345D01* X-49651Y-22283D01* X-49666Y-22105D01* X-49667Y-22004D01* X-49700Y-21927D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* X-51259D01* X-51736Y-20898D01* X-52102Y-21264D01* X-52300Y-21741D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-51073D01* X-50996Y-23333D01* X-50889Y-23334D01* X-50801Y-23339D01* X-50723Y-23348D01* X-50655Y-23360D01* X-50597Y-23374D01* X-50549Y-23390D01* X-50513Y-23405D01* X-50349Y-23569D01* Y-30205D01* X-50529Y-30332D01* X-50849Y-30462D01* X-51241Y-30300D01* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31527D01* X-52833Y-31604D01* X-52834Y-31711D01* X-52839Y-31799D01* X-52848Y-31877D01* X-52860Y-31945D01* X-52874Y-32003D01* X-52890Y-32051D01* X-52905Y-32087D01* X-53959Y-33141D01* X-54149Y-33600D01* Y-36831D01* X-57490Y-40172D01* X-57764Y-39898D01* X-58241Y-39700D01* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57354Y-41630D01* X-56941Y-41459D01* X-53041Y-37559D01* X-52851Y-37100D01* Y-33869D01* X-51987Y-33005D01* X-51951Y-32990D01* X-51903Y-32974D01* X-51845Y-32960D01* X-51783Y-32949D01* X-51605Y-32934D01* X-51504Y-32933D01* X-51427Y-32900D01* X-51241D01* X-50849Y-32738D01* X-50529Y-32868D01* X-50349Y-32995D01* Y-67831D01* X-55169Y-72651D01* X-67431D01* X-74551Y-65531D01* Y-56700D01* X-74695Y-56350D01* X-74272Y-56067D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-52073D01* X-72167Y-51996D01* X-72166Y-51889D01* X-72161Y-51801D01* X-72152Y-51723D01* X-72140Y-51655D01* X-72126Y-51597D01* X-72110Y-51549D01* X-72095Y-51513D01* X-63831Y-43249D01* X-63438D01* X-63402Y-43264D01* X-63357Y-43287D01* X-63306Y-43317D01* X-63254Y-43354D01* X-63118Y-43469D01* X-63045Y-43540D01* X-62968Y-43571D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* X-62359D01* X-62836Y-41498D01* X-62968Y-41629D01* X-63045Y-41660D01* X-63122Y-41735D01* X-63188Y-41794D01* X-63249Y-41843D01* X-63306Y-41883D01* X-63357Y-41913D01* X-63402Y-41936D01* X-63438Y-41951D01* X-64100D01* X-64559Y-42141D01* X-72906Y-50488D01* X-73186Y-50512D01* X-73231Y-50468D01* X-73324Y-49943D01* X-70907Y-47526D01* X-70717Y-47066D01* Y-46957D01* X-70714Y-46948D01* X-70705Y-46929D01* X-70695Y-46911D01* X-70682Y-46894D01* X-70666Y-46876D01* X-70645Y-46857D01* X-70603Y-46826D01* X-70586Y-46797D01* X-70555Y-46785D01* X-70539Y-46744D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72194Y-46744D01* X-72177Y-46785D01* X-72406Y-47180D01* X-72435Y-47216D01* X-75959Y-50741D01* X-76149Y-51200D01* Y-53000D01* X-75959Y-53459D01* X-74906Y-54513D01* X-74890Y-54549D01* X-74874Y-54597D01* X-74860Y-54655D01* X-74849Y-54717D01* X-74834Y-54895D01* X-74833Y-54996D01* X-74800Y-55073D01* Y-55259D01* X-74647Y-55627D01* X-75071Y-55910D01* X-76995Y-53987D01* X-77010Y-53951D01* X-77026Y-53903D01* X-77040Y-53845D01* X-77051Y-53783D01* X-77066Y-53605D01* X-77067Y-53504D01* X-77100Y-53427D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* X-78659D01* X-79136Y-52398D01* X-79473Y-52735D01* X-79615Y-52723D01* X-79973Y-52594D01* Y61144D01* X-80043Y61495D01* X-80139Y61639D01* X-80052Y62751D01* X-79653Y64413D01* X-78999Y65992D01* X-78256Y67205D01* X-77962Y67605D01* X-77961Y67605D01* X-77962Y67605D01* X-76006Y70086D01* X-73162Y73162D01* X-70086Y76006D01* X-67605Y77962D01* X-67605Y77962D01* X-67605Y77962D01* X-67204Y78256D01* X-65992Y78999D01* X-64413Y79653D01* X-62751Y80052D01* X-61051Y80186D01* X-61046Y80185D01* D02* G37* G36* X-50099Y-22126D02* X-50081Y-22339D01* X-50064Y-22434D01* X-50042Y-22523D01* X-50015Y-22605D01* X-49983Y-22679D01* X-49946Y-22747D01* X-49904Y-22807D01* X-49856Y-22861D01* X-50139Y-23144D01* X-50193Y-23096D01* X-50253Y-23054D01* X-50321Y-23017D01* X-50395Y-22985D01* X-50477Y-22958D01* X-50566Y-22936D01* X-50661Y-22919D01* X-50764Y-22908D01* X-50874Y-22901D01* X-50991Y-22900D01* X-50100Y-22009D01* X-50099Y-22126D01* D02* G37* G36* X-51509Y-32500D02* X-51626Y-32501D01* X-51838Y-32519D01* X-51934Y-32536D01* X-52023Y-32558D01* X-52105Y-32585D01* X-52179Y-32617D01* X-52247Y-32654D01* X-52307Y-32696D01* X-52361Y-32744D01* X-52644Y-32461D01* X-52596Y-32407D01* X-52554Y-32347D01* X-52517Y-32279D01* X-52485Y-32205D01* X-52458Y-32123D01* X-52436Y-32034D01* X-52419Y-31938D01* X-52408Y-31836D01* X-52401Y-31726D01* X-52400Y-31609D01* X-51509Y-32500D01* D02* G37* G36* X-57627Y-40773D02* X-57619Y-40779D01* X-57606Y-40784D01* X-57590Y-40788D01* X-57569Y-40792D01* X-57543Y-40795D01* X-57480Y-40799D01* X-57400Y-40800D01* Y-41200D01* X-57442Y-41200D01* X-57569Y-41208D01* X-57590Y-41212D01* X-57606Y-41216D01* X-57619Y-41221D01* X-57627Y-41227D01* X-57631Y-41233D01* Y-40767D01* X-57627Y-40773D01* D02* G37* G36* X-62743Y-43230D02* X-62826Y-43148D01* X-62989Y-43011D01* X-63069Y-42955D01* X-63147Y-42908D01* X-63224Y-42869D01* X-63299Y-42839D01* X-63374Y-42817D01* X-63446Y-42804D01* X-63517Y-42800D01* Y-42400D01* X-63446Y-42396D01* X-63374Y-42383D01* X-63299Y-42361D01* X-63224Y-42331D01* X-63147Y-42292D01* X-63069Y-42245D01* X-62989Y-42189D01* X-62909Y-42125D01* X-62826Y-42052D01* X-62743Y-41970D01* Y-43230D01* D02* G37* G36* X-70919Y-46522D02* X-70971Y-46568D01* X-71017Y-46618D01* X-71057Y-46672D01* X-71090Y-46729D01* X-71118Y-46789D01* X-71139Y-46853D01* X-71154Y-46921D01* X-71163Y-46992D01* X-71166Y-47066D01* X-71566D01* X-71569Y-46992D01* X-71579Y-46921D01* X-71594Y-46853D01* X-71615Y-46789D01* X-71643Y-46729D01* X-71676Y-46672D01* X-71716Y-46618D01* X-71762Y-46568D01* X-71813Y-46522D01* X-71871Y-46479D01* X-70862D01* X-70919Y-46522D01* D02* G37* G36* X-72356Y-51139D02* X-72404Y-51193D01* X-72446Y-51253D01* X-72483Y-51321D01* X-72515Y-51395D01* X-72542Y-51477D01* X-72564Y-51566D01* X-72581Y-51661D01* X-72592Y-51764D01* X-72599Y-51874D01* X-72600Y-51991D01* X-73491Y-51100D01* X-73374Y-51099D01* X-73162Y-51081D01* X-73066Y-51064D01* X-72977Y-51042D01* X-72895Y-51015D01* X-72821Y-50983D01* X-72753Y-50946D01* X-72693Y-50904D01* X-72639Y-50856D01* X-72356Y-51139D01* D02* G37* G36* X-77499Y-53626D02* X-77481Y-53838D01* X-77464Y-53934D01* X-77442Y-54023D01* X-77415Y-54105D01* X-77383Y-54179D01* X-77346Y-54247D01* X-77304Y-54307D01* X-77256Y-54361D01* X-77539Y-54644D01* X-77593Y-54596D01* X-77653Y-54554D01* X-77721Y-54517D01* X-77795Y-54485D01* X-77877Y-54458D01* X-77966Y-54436D01* X-78061Y-54419D01* X-78164Y-54408D01* X-78274Y-54401D01* X-78391Y-54400D01* X-77500Y-53509D01* X-77499Y-53626D01* D02* G37* G36* X-74307Y-53904D02* X-74247Y-53946D01* X-74179Y-53983D01* X-74105Y-54015D01* X-74023Y-54042D01* X-73934Y-54064D01* X-73839Y-54081D01* X-73736Y-54092D01* X-73626Y-54099D01* X-73509Y-54100D01* X-74400Y-54991D01* X-74401Y-54874D01* X-74419Y-54662D01* X-74436Y-54566D01* X-74458Y-54477D01* X-74485Y-54395D01* X-74517Y-54321D01* X-74554Y-54253D01* X-74596Y-54193D01* X-74644Y-54139D01* X-74361Y-53856D01* X-74307Y-53904D01* D02* G37* %LPC*% G36* X4814Y56681D02* X4185D01* X3604Y56440D01* X3317Y56153D01* X3000Y56048D01* X2683Y56153D01* X2396Y56440D01* X1815Y56681D01* X1185D01* X604Y56440D01* X160Y55996D01* X-81Y55414D01* Y54786D01* X160Y54204D01* X447Y53917D01* X552Y53600D01* X447Y53283D01* X160Y52996D01* X-81Y52415D01* Y51785D01* X160Y51204D01* X604Y50760D01* X1185Y50519D01* X1815D01* X2396Y50760D01* X2683Y51047D01* X3000Y51152D01* X3317Y51047D01* X3604Y50760D01* X4185Y50519D01* X4814D01* X5396Y50760D01* X5840Y51204D01* X6081Y51785D01* Y52415D01* X5840Y52996D01* X5553Y53283D01* X5448Y53600D01* X5553Y53917D01* X5840Y54204D01* X6081Y54786D01* Y55414D01* X5840Y55996D01* X5396Y56440D01* X4814Y56681D01* D02* G37* G36* X-19185D02* X-19815D01* X-20396Y56440D01* X-20683Y56153D01* X-21000Y56048D01* X-21317Y56153D01* X-21604Y56440D01* X-22185Y56681D01* X-22815D01* X-23396Y56440D01* X-23840Y55996D01* X-24081Y55414D01* Y54786D01* X-23840Y54204D01* X-23553Y53917D01* X-23448Y53600D01* X-23553Y53283D01* X-23840Y52996D01* X-24081Y52415D01* Y51785D01* X-23840Y51204D01* X-23396Y50760D01* X-22815Y50519D01* X-22185D01* X-21604Y50760D01* X-21317Y51047D01* X-21000Y51152D01* X-20683Y51047D01* X-20396Y50760D01* X-19815Y50519D01* X-19185D01* X-18604Y50760D01* X-18160Y51204D01* X-17919Y51785D01* Y52415D01* X-18160Y52996D01* X-18447Y53283D01* X-18552Y53600D01* X-18447Y53917D01* X-18160Y54204D01* X-17919Y54786D01* Y55414D01* X-18160Y55996D01* X-18604Y56440D01* X-19185Y56681D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X19614Y46281D02* X18985D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17960Y43804D01* X18247Y43517D01* X18352Y43200D01* X18247Y42883D01* X17960Y42596D01* X17719Y42015D01* Y41385D01* X17960Y40804D01* X18247Y40517D01* X18352Y40200D01* X18247Y39883D01* X17960Y39596D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18404Y37360D01* X18985Y37119D01* X19614D01* X20196Y37360D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20640Y39596D01* X20353Y39883D01* X20248Y40200D01* X20353Y40517D01* X20640Y40804D01* X20881Y41385D01* Y42015D01* X20640Y42596D01* X20353Y42883D01* X20248Y43200D01* X20353Y43517D01* X20640Y43804D01* X20881Y44385D01* Y45015D01* X20640Y45596D01* X20196Y46040D01* X19614Y46281D01* D02* G37* G36* X-19185Y45581D02* X-19815D01* X-20396Y45340D01* X-20840Y44896D01* X-21081Y44315D01* Y43685D01* X-20840Y43104D01* X-20553Y42817D01* X-20448Y42500D01* X-20553Y42183D01* X-20840Y41896D01* X-21081Y41315D01* Y40685D01* X-20840Y40104D01* X-20553Y39817D01* X-20448Y39500D01* X-20553Y39183D01* X-20840Y38896D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18160Y38896D01* X-18447Y39183D01* X-18552Y39500D01* X-18447Y39817D01* X-18160Y40104D01* X-17919Y40685D01* Y41315D01* X-18160Y41896D01* X-18447Y42183D01* X-18552Y42500D01* X-18447Y42817D01* X-18160Y43104D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* D02* G37* G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28243D01* X28305Y52683D01* X28373Y52692D01* X28418Y52694D01* X28458Y52692D01* X28494Y52686D01* X28527Y52678D01* X28558Y52666D01* X28589Y52651D01* X28621Y52631D01* X28655Y52605D01* X28703Y52561D01* X28730Y52551D01* X28745Y52527D01* X28770Y52521D01* X36386Y44904D01* Y23939D01* X35886Y23732D01* X30749Y28869D01* Y31900D01* X30559Y32359D01* X27359Y35559D01* X26900Y35749D01* X18769D01* X17059Y37459D01* X16600Y37649D01* X5793D01* X5585Y38149D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5640Y39996D01* X5353Y40283D01* X5248Y40600D01* X5353Y40917D01* X5640Y41204D01* X5881Y41785D01* Y42415D01* X5640Y42996D01* X5353Y43283D01* X5248Y43600D01* X5353Y43917D01* X5640Y44204D01* X5881Y44785D01* Y45415D01* X5640Y45996D01* X5196Y46440D01* X4614Y46681D01* X3985D01* X3404Y46440D01* X2960Y45996D01* X2719Y45415D01* Y44785D01* X2960Y44204D01* X3247Y43917D01* X3352Y43600D01* X3247Y43283D01* X2960Y42996D01* X2719Y42415D01* Y41785D01* X2960Y41204D01* X3247Y40917D01* X3352Y40600D01* X3247Y40283D01* X2960Y39996D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3015Y38149D01* X2807Y37649D01* X1338D01* X1302Y37664D01* X1257Y37687D01* X1206Y37718D01* X1154Y37754D01* X1018Y37869D01* X945Y37940D01* X868Y37971D01* X736Y38102D01* X259Y38300D01* X117D01* X-91Y38800D01* X505Y39395D01* X659Y39627D01* X714Y39900D01* Y42053D01* X733Y42094D01* X735Y42160D01* X741Y42206D01* X750Y42250D01* X763Y42292D01* X779Y42334D01* X799Y42375D01* X824Y42417D01* X855Y42460D01* X891Y42504D01* X943Y42558D01* X972Y42634D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-972Y42634D01* X-943Y42558D01* X-891Y42504D01* X-855Y42460D01* X-824Y42417D01* X-799Y42375D01* X-779Y42334D01* X-763Y42292D01* X-750Y42250D01* X-741Y42206D01* X-735Y42160D01* X-733Y42094D01* X-714Y42053D01* Y40196D01* X-2119Y38790D01* X-2619Y38998D01* Y39415D01* X-2860Y39996D01* X-3147Y40283D01* X-3252Y40600D01* X-3147Y40917D01* X-2860Y41204D01* X-2619Y41785D01* Y42415D01* X-2860Y42996D01* X-3147Y43283D01* X-3252Y43600D01* X-3147Y43917D01* X-2860Y44204D01* X-2619Y44785D01* Y45415D01* X-2860Y45996D01* X-3304Y46440D01* X-3886Y46681D01* X-4515D01* X-5096Y46440D01* X-5540Y45996D01* X-5781Y45415D01* Y44785D01* X-5540Y44204D01* X-5253Y43917D01* X-5148Y43600D01* X-5253Y43283D01* X-5540Y42996D01* X-5781Y42415D01* Y41785D01* X-5540Y41204D01* X-5253Y40917D01* X-5148Y40600D01* X-5253Y40283D01* X-5540Y39996D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-4098D01* X-3890Y37019D01* X-6796Y34114D01* X-14700D01* X-14973Y34059D01* X-15205Y33905D01* X-21596Y27514D01* X-35700D01* X-35973Y27459D01* X-36205Y27305D01* X-54096Y9414D01* X-61600D01* X-61873Y9359D01* X-62105Y9205D01* X-65205Y6105D01* X-65359Y5873D01* X-65414Y5600D01* Y-304D01* X-66082Y-972D01* X-66124Y-988D01* X-66172Y-1033D01* X-66209Y-1061D01* X-66246Y-1086D01* X-66285Y-1107D01* X-66326Y-1125D01* X-66370Y-1139D01* X-66417Y-1151D01* X-66469Y-1160D01* X-66526Y-1166D01* X-66601Y-1167D01* X-66675Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67406Y-1467D01* X-67941Y-1550D01* X-68047Y-1455D01* X-70282Y780D01* Y5420D01* X-61551Y14151D01* X-61352Y14449D01* X-61282Y14800D01* Y22820D01* X-58120Y25982D01* X-57930D01* X-57894Y25967D01* X-57801Y25966D01* X-57727Y25963D01* X-57594Y25950D01* X-57554Y25943D01* X-57523Y25936D01* X-57507Y25931D01* X-57493Y25922D01* X-57486Y25921D01* X-57481Y25919D01* X-57472Y25919D01* X-57455Y25917D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* X-56859D01* X-57336Y28002D01* X-57455Y27883D01* X-57472Y27881D01* X-57481Y27880D01* X-57486Y27879D01* X-57493Y27878D01* X-57507Y27869D01* X-57523Y27864D01* X-57554Y27857D01* X-57590Y27851D01* X-57808Y27834D01* X-57894Y27833D01* X-57930Y27818D01* X-58500D01* X-58597Y27798D01* X-58843Y28259D01* X-56751Y30351D01* X-56552Y30649D01* X-56482Y31000D01* Y33800D01* X-56552Y34151D01* X-56751Y34449D01* X-58411Y36109D01* X-58425Y36145D01* X-58491Y36212D01* X-58540Y36266D01* X-58625Y36369D01* X-58649Y36402D01* X-58665Y36429D01* X-58673Y36444D01* X-58677Y36460D01* X-58682Y36466D01* X-58683Y36470D01* X-58690Y36477D01* X-58700Y36490D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-60090D01* X-60077Y35090D01* X-60070Y35083D01* X-60066Y35082D01* X-60060Y35077D01* X-60044Y35073D01* X-60029Y35065D01* X-60002Y35049D01* X-59973Y35028D01* X-59806Y34885D01* X-59745Y34825D01* X-59709Y34811D01* X-58884Y33986D01* X-59164Y33602D01* X-59641Y33800D01* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32590D01* X-61210Y32577D01* X-61217Y32570D01* X-61218Y32566D01* X-61223Y32560D01* X-61227Y32544D01* X-61235Y32529D01* X-61251Y32502D01* X-61272Y32473D01* X-61415Y32306D01* X-61475Y32245D01* X-61489Y32209D01* X-65649Y28049D01* X-65848Y27751D01* X-65918Y27400D01* Y16340D01* X-75349Y6909D01* X-75548Y6611D01* X-75618Y6260D01* Y-5700D01* X-75548Y-6051D01* X-75349Y-6349D01* X-69449Y-12249D01* X-69151Y-12448D01* X-68800Y-12518D01* X-66360D01* X-61429Y-17449D01* X-61131Y-17648D01* X-60780Y-17718D01* X-57032D01* X-56825Y-18218D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56886Y-19752D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55857D01* X-55780Y-20349D01* X-55674Y-20350D01* X-55585Y-20355D01* X-55507Y-20364D01* X-55439Y-20376D01* X-55381Y-20390D01* X-55333Y-20406D01* X-55297Y-20421D01* X-54149Y-21569D01* Y-28731D01* X-55859Y-30441D01* X-56049Y-30900D01* Y-35131D01* X-56513Y-35594D01* X-56549Y-35610D01* X-56597Y-35626D01* X-56655Y-35640D01* X-56717Y-35651D01* X-56895Y-35666D01* X-56996Y-35667D01* X-57073Y-35700D01* X-57259D01* X-57736Y-35898D01* X-58102Y-36264D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-37073D01* X-55667Y-36996D01* X-55666Y-36889D01* X-55661Y-36801D01* X-55652Y-36723D01* X-55640Y-36655D01* X-55626Y-36597D01* X-55610Y-36549D01* X-55594Y-36513D01* X-54941Y-35859D01* X-54751Y-35400D01* Y-31169D01* X-53041Y-29459D01* X-52851Y-29000D01* Y-21300D01* X-53041Y-20841D01* X-54184Y-19698D01* X-54173Y-19532D01* X-53974Y-19399D01* X-53657Y-19310D01* X-53451Y-19448D01* X-53100Y-19518D01* X-49580D01* X-45918Y-23180D01* Y-29100D01* X-45848Y-29451D01* X-45649Y-29749D01* X-42136Y-33261D01* X-42122Y-33297D01* X-42057Y-33364D01* X-42007Y-33419D01* X-41922Y-33522D01* X-41899Y-33555D01* X-41882Y-33582D01* X-41874Y-33597D01* X-41870Y-33612D01* X-41866Y-33619D01* X-41864Y-33623D01* X-41857Y-33630D01* X-41847Y-33643D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40637D01* X-40624Y-34863D01* X-40617Y-34869D01* X-40613Y-34871D01* X-40607Y-34876D01* X-40592Y-34879D01* X-40576Y-34887D01* X-40549Y-34904D01* X-40520Y-34925D01* X-40354Y-35067D01* X-40292Y-35127D01* X-40256Y-35142D01* X-38649Y-36749D01* X-38351Y-36948D01* X-38000Y-37018D01* X-35500D01* X-35403Y-36998D01* X-35157Y-37459D01* X-35269Y-37572D01* X-35468Y-37869D01* X-35538Y-38221D01* Y-39870D01* X-35554Y-39906D01* X-35555Y-39999D01* X-35558Y-40073D01* X-35571Y-40206D01* X-35577Y-40246D01* X-35585Y-40277D01* X-35590Y-40293D01* X-35598Y-40307D01* X-35599Y-40314D01* X-35601Y-40319D01* X-35601Y-40328D01* X-35603Y-40345D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33637Y-40345D01* X-33640Y-40328D01* X-33640Y-40319D01* X-33642Y-40314D01* X-33643Y-40307D01* X-33651Y-40293D01* X-33656Y-40277D01* X-33664Y-40246D01* X-33670Y-40210D01* X-33687Y-39992D01* X-33688Y-39906D01* X-33703Y-39870D01* Y-38601D01* X-30620Y-35518D01* X-21660D01* X-21309Y-35448D01* X-21012Y-35249D01* X-13451Y-27689D01* X-13252Y-27391D01* X-13182Y-27040D01* Y-16480D01* X-10420Y-13718D01* X10200D01* X10551Y-13648D01* X10849Y-13449D01* X13349Y-10949D01* X13548Y-10651D01* X13618Y-10300D01* Y5600D01* X13548Y5951D01* X13349Y6249D01* X12389Y7209D01* X12375Y7245D01* X12309Y7312D01* X12260Y7366D01* X12175Y7469D01* X12151Y7502D01* X12135Y7529D01* X12127Y7544D01* X12123Y7560D01* X12118Y7566D01* X12117Y7570D01* X12110Y7577D01* X12100Y7590D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X10710D01* X10723Y6190D01* X10730Y6183D01* X10734Y6182D01* X10740Y6177D01* X10756Y6173D01* X10771Y6165D01* X10798Y6149D01* X10827Y6128D01* X10994Y5985D01* X11055Y5925D01* X11091Y5911D01* X11782Y5220D01* Y-9920D01* X9820Y-11882D01* X-10800D01* X-11151Y-11952D01* X-11449Y-12151D01* X-11720Y-12423D01* X-12182Y-12231D01* Y-9580D01* X-11691Y-9089D01* X-11655Y-9075D01* X-11588Y-9009D01* X-11534Y-8960D01* X-11431Y-8875D01* X-11398Y-8851D01* X-11371Y-8835D01* X-11356Y-8827D01* X-11340Y-8823D01* X-11334Y-8818D01* X-11330Y-8817D01* X-11323Y-8810D01* X-11310Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7410D01* X-12710Y-7423D01* X-12717Y-7430D01* X-12718Y-7434D01* X-12723Y-7440D01* X-12727Y-7456D01* X-12735Y-7471D01* X-12751Y-7498D01* X-12772Y-7527D01* X-12915Y-7694D01* X-12975Y-7755D01* X-13095Y-7763D01* X-13582Y-7336D01* Y-2656D01* X-13567Y-2623D01* X-13561Y-2442D01* X-13543Y-2283D01* X-13514Y-2132D01* X-13474Y-1986D01* X-13423Y-1846D01* X-13360Y-1711D01* X-13286Y-1579D01* X-13199Y-1452D01* X-13099Y-1328D01* X-12976Y-1195D01* X-12963Y-1161D01* X-10891Y911D01* X-10855Y925D01* X-10788Y991D01* X-10734Y1040D01* X-10631Y1125D01* X-10598Y1149D01* X-10571Y1166D01* X-10556Y1173D01* X-10540Y1177D01* X-10534Y1182D01* X-10530Y1183D01* X-10523Y1190D01* X-10510Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2590D01* X-11910Y2577D01* X-11917Y2570D01* X-11918Y2566D01* X-11923Y2560D01* X-11927Y2544D01* X-11935Y2529D01* X-11951Y2502D01* X-11972Y2473D01* X-12115Y2306D01* X-12175Y2245D01* X-12189Y2209D01* X-14261Y137D01* X-14295Y124D01* X-14427Y1D01* X-14552Y-99D01* X-14680Y-186D01* X-14811Y-260D01* X-14946Y-323D01* X-15086Y-374D01* X-15232Y-414D01* X-15383Y-443D01* X-15542Y-461D01* X-15723Y-467D01* X-15756Y-482D01* X-24557D01* X-24764Y18D01* X-13731Y11051D01* X10131D01* X27894Y-6713D01* X27910Y-6749D01* X27926Y-6797D01* X27940Y-6855D01* X27951Y-6917D01* X27966Y-7095D01* X27967Y-7196D01* X28000Y-7273D01* Y-7459D01* X28198Y-7936D01* X28312Y-8051D01* X28105Y-8551D01* X25569D01* X17206Y-187D01* X17190Y-151D01* X17174Y-103D01* X17160Y-45D01* X17149Y17D01* X17134Y195D01* X17133Y296D01* X17100Y373D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X15727D01* X15804Y-1033D01* X15911Y-1034D01* X15999Y-1039D01* X16077Y-1048D01* X16145Y-1060D01* X16203Y-1074D01* X16251Y-1090D01* X16287Y-1106D01* X24841Y-9659D01* X25300Y-9849D01* X34600D01* X35059Y-9659D01* X35886Y-8832D01* X36386Y-9039D01* Y-55490D01* X29090Y-62786D01* X7296D01* X6605Y-62095D01* X6373Y-61941D01* X6100Y-61886D01* X3466D01* X3437Y-61870D01* X3420Y-61875D01* X3404Y-61867D01* X3339Y-61865D01* X3295Y-61859D01* X3257Y-61850D01* X3221Y-61839D01* X3187Y-61824D01* X3154Y-61805D01* X3121Y-61782D01* X3088Y-61754D01* X3053Y-61719D01* X3008Y-61666D01* X2935Y-61628D01* X2705Y-61398D01* X2227Y-61200D01* X1710D01* X1232Y-61398D01* X866Y-61764D01* X668Y-62241D01* Y-62759D01* X866Y-63236D01* X916Y-63286D01* X709Y-63786D01* X-1000D01* X-1273Y-63841D01* X-1458Y-63964D01* X-1526Y-63990D01* X-1579Y-64039D01* X-1620Y-64072D01* X-1659Y-64099D01* X-1697Y-64121D01* X-1733Y-64138D01* X-1770Y-64151D01* X-1806Y-64160D01* X-1843Y-64166D01* X-1883Y-64169D01* X-1944Y-64169D01* X-1947Y-64170D01* X-1950Y-64168D01* X-2026Y-64200D01* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65526D01* X-668Y-65450D01* X-450Y-65326D01* X-239Y-65214D01* X3101D01* X3182Y-65700D01* X2233Y-66093D01* X1419Y-66719D01* X-1929Y-70066D01* X-12189D01* X-12523Y-69566D01* X-12419Y-69314D01* Y-68686D01* X-12660Y-68104D01* X-13066Y-67698D01* Y-67302D01* X-12660Y-66896D01* X-12419Y-66315D01* Y-65685D01* X-12660Y-65104D01* X-13104Y-64660D01* X-13381Y-64545D01* X-13593Y-64033D01* X-14219Y-63218D01* X-15033Y-62593D01* X-15982Y-62200D01* X-17000Y-62066D01* X-18018Y-62200D01* X-18967Y-62593D01* X-19782Y-63218D01* X-20407Y-64033D01* X-20619Y-64545D01* X-20896Y-64660D01* X-21340Y-65104D01* X-21581Y-65685D01* Y-66315D01* X-21340Y-66896D01* X-20934Y-67302D01* Y-67698D01* X-21340Y-68104D01* X-21581Y-68686D01* Y-69314D01* X-21340Y-69896D01* X-20934Y-70302D01* Y-70698D01* X-21340Y-71104D01* X-21581Y-71685D01* Y-72315D01* X-21340Y-72896D01* X-20934Y-73302D01* Y-74000D01* X-20800Y-75018D01* X-20407Y-75967D01* X-19782Y-76781D01* X-18967Y-77407D01* X-18018Y-77800D01* X-17000Y-77934D01* X-300D01* X718Y-77800D01* X1667Y-77407D01* X2482Y-76781D01* X5829Y-73434D01* X38468D01* X38660Y-73896D01* X39104Y-74340D01* X39381Y-74455D01* X39593Y-74967D01* X40218Y-75782D01* X41033Y-76407D01* X41982Y-76800D01* X43000Y-76934D01* X44018Y-76800D01* X44967Y-76407D01* X45781Y-75782D01* X46407Y-74967D01* X46619Y-74455D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72819D01* X48281Y-72281D01* X48907Y-71467D01* X49300Y-70518D01* X49434Y-69500D01* X49300Y-68482D01* X48907Y-67533D01* X48281Y-66719D01* X47467Y-66093D01* X47232Y-65996D01* X46896Y-65660D01* X46619Y-65545D01* X46407Y-65033D01* X45781Y-64218D01* X44967Y-63593D01* X44018Y-63200D01* X43000Y-63066D01* X41982Y-63200D01* X41033Y-63593D01* X40218Y-64218D01* X39593Y-65033D01* X39381Y-65545D01* X39329Y-65566D01* X30364D01* X30212Y-65066D01* X30305Y-65005D01* X38605Y-56705D01* X38759Y-56473D01* X38814Y-56200D01* Y47700D01* X38759Y47973D01* X38605Y48205D01* X33628Y53182D01* X33612Y53224D01* X33567Y53272D01* X33539Y53309D01* X33514Y53346D01* X33493Y53385D01* X33475Y53426D01* X33461Y53470D01* X33448Y53517D01* X33440Y53569D01* X33435Y53626D01* X33433Y53701D01* X33400Y53775D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30959Y53057D01* X30535Y52774D01* X29681Y53628D01* X29665Y53671D01* X29620Y53720D01* X29588Y53759D01* X29558Y53802D01* X29531Y53847D01* X29506Y53895D01* X29484Y53947D01* X29463Y54002D01* X29446Y54063D01* X29431Y54127D01* X29417Y54207D01* X29400Y54234D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72029Y2632D01* X72060Y2555D01* X72135Y2478D01* X72193Y2412D01* X72243Y2351D01* X72282Y2294D01* X72313Y2243D01* X72336Y2198D01* X72351Y2162D01* Y-431D01* X69431Y-3351D01* X51338D01* X51302Y-3336D01* X51257Y-3313D01* X51206Y-3283D01* X51154Y-3246D01* X51018Y-3131D01* X50945Y-3060D01* X50868Y-3029D01* X50736Y-2898D01* X50259Y-2700D01* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X50868Y-4971D01* X50945Y-4940D01* X51022Y-4865D01* X51088Y-4806D01* X51149Y-4757D01* X51206Y-4718D01* X51257Y-4687D01* X51302Y-4664D01* X51338Y-4649D01* X69700D01* X70159Y-4459D01* X73459Y-1159D01* X73649Y-700D01* Y2162D01* X73664Y2198D01* X73687Y2243D01* X73717Y2294D01* X73754Y2346D01* X73869Y2482D01* X73940Y2555D01* X73971Y2632D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4627D01* X71667Y-4704D01* X71666Y-4811D01* X71661Y-4899D01* X71652Y-4977D01* X71640Y-5045D01* X71626Y-5103D01* X71610Y-5151D01* X71595Y-5187D01* X70231Y-6551D01* X51338D01* X51302Y-6536D01* X51257Y-6513D01* X51206Y-6482D01* X51154Y-6446D01* X51018Y-6331D01* X50945Y-6260D01* X50868Y-6229D01* X50736Y-6098D01* X50259Y-5900D01* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X50868Y-8171D01* X50945Y-8140D01* X51022Y-8065D01* X51088Y-8006D01* X51149Y-7957D01* X51206Y-7918D01* X51257Y-7887D01* X51302Y-7864D01* X51338Y-7849D01* X70500D01* X70959Y-7659D01* X72513Y-6106D01* X72549Y-6090D01* X72597Y-6074D01* X72655Y-6060D01* X72717Y-6049D01* X72895Y-6034D01* X72996Y-6033D01* X73073Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X18259Y-15000D02* X17741D01* X17264Y-15198D01* X16900Y-15562D01* X16536Y-15198D01* X16059Y-15000D01* X15541D01* X15064Y-15198D01* X14698Y-15564D01* X14500Y-16041D01* Y-16559D01* X14698Y-17036D01* X15064Y-17402D01* X15541Y-17600D01* X16059D01* X16536Y-17402D01* X16900Y-17039D01* X17264Y-17402D01* X17741Y-17600D01* X18259D01* X18415Y-17535D01* X18600Y-17659D01* X18798Y-18136D01* X19164Y-18502D01* X19641Y-18700D01* X20159D01* X20636Y-18502D01* X21002Y-18136D01* X21200Y-17659D01* Y-17141D01* X21002Y-16664D01* X20636Y-16298D01* X20159Y-16100D01* X19641D01* X19485Y-16165D01* X19300Y-16041D01* X19102Y-15564D01* X18736Y-15198D01* X18259Y-15000D01* D02* G37* G36* X22712Y-20200D02* X22195D01* X21717Y-20398D01* X21351Y-20764D01* X21251Y-21006D01* X20694Y-21153D01* X20691Y-21152D01* X20536Y-20998D01* X20059Y-20800D01* X19541D01* X19064Y-20998D01* X18698Y-21364D01* X18500Y-21841D01* Y-22359D01* X18698Y-22836D01* X19064Y-23202D01* X19541Y-23400D01* X20059D01* X20536Y-23202D01* X20902Y-22836D01* X21002Y-22594D01* X21560Y-22447D01* X21563Y-22448D01* X21717Y-22602D01* X22195Y-22800D01* X22712D01* X23190Y-22602D01* X23556Y-22236D01* X23753Y-21759D01* Y-21241D01* X23556Y-20764D01* X23190Y-20398D01* X22712Y-20200D01* D02* G37* G36* X28500Y-14973D02* X27954Y-15081D01* X27491Y-15391D01* X27181Y-15854D01* X27073Y-16400D01* Y-21200D01* Y-24309D01* X25509Y-25873D01* X4200D01* X4200Y-25873D01* X3654Y-25981D01* X3191Y-26291D01* X-769Y-30250D01* X-1079Y-30714D01* X-1187Y-31260D01* X-1187Y-31260D01* Y-33540D01* Y-38640D01* X-1079Y-39186D01* X-769Y-39650D01* X-306Y-39959D01* X240Y-40068D01* X786Y-39959D01* X996Y-39819D01* X1036Y-39802D01* X1067Y-39771D01* X1249Y-39650D01* X1371Y-39467D01* X1402Y-39436D01* X1419Y-39396D01* X1559Y-39186D01* X1668Y-38640D01* Y-33540D01* Y-31851D01* X4791Y-28727D01* X26100D01* X26100Y-28727D01* X26646Y-28619D01* X27109Y-28309D01* X29509Y-25909D01* X29509Y-25909D01* X29819Y-25446D01* X29927Y-24900D01* Y-21200D01* Y-16400D01* X29819Y-15854D01* X29509Y-15391D01* X29046Y-15081D01* X28500Y-14973D01* D02* G37* G36* X-11241Y-30600D02* X-11759D01* X-12236Y-30798D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-11759Y-33200D01* X-11241D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-11241Y-30600D01* D02* G37* G36* X-39441Y-40300D02* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41859D01* X-40802Y-42336D01* X-40436Y-42702D01* X-39959Y-42900D01* X-39441D01* X-39291Y-42838D01* X-38908Y-43220D01* X-39000Y-43441D01* Y-43959D01* X-38802Y-44436D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37441D01* X-36964Y-44802D01* X-36598Y-44436D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47759D01* X1398Y-48236D01* X1764Y-48602D01* X2241Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* G36* X29759Y-51000D02* X29241D01* X28764Y-51198D01* X28398Y-51564D01* X27863Y-51726D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28402Y-53636D01* X28937Y-53474D01* X29241Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44010D01* X-12110Y-44023D01* X-12117Y-44030D01* X-12118Y-44034D01* X-12123Y-44040D01* X-12127Y-44056D01* X-12135Y-44071D01* X-12151Y-44098D01* X-12172Y-44127D01* X-12313Y-44292D01* X-12366Y-44340D01* X-12469Y-44425D01* X-12502Y-44449D01* X-12529Y-44465D01* X-12544Y-44473D01* X-12560Y-44477D01* X-12566Y-44482D01* X-12570Y-44483D01* X-12577Y-44490D01* X-12590Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45890D01* X-11190Y-45877D01* X-11183Y-45870D01* X-11182Y-45866D01* X-11177Y-45860D01* X-11173Y-45844D01* X-11165Y-45829D01* X-11149Y-45802D01* X-11134Y-45781D01* X-11042Y-45704D01* X-10545Y-45675D01* X-10509Y-45689D01* X-8849Y-47349D01* X-8551Y-47548D01* X-8200Y-47618D01* X-3180D01* X951Y-51749D01* X1249Y-51948D01* X1600Y-52018D01* X7170D01* X7206Y-52033D01* X7299Y-52034D01* X7373Y-52037D01* X7506Y-52050D01* X7546Y-52057D01* X7577Y-52064D01* X7593Y-52069D01* X7607Y-52078D01* X7614Y-52079D01* X7619Y-52081D01* X7628Y-52081D01* X7644Y-52083D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* X8241D01* X7764Y-49998D01* X7644Y-50117D01* X7628Y-50119D01* X7619Y-50120D01* X7614Y-50121D01* X7607Y-50122D01* X7593Y-50130D01* X7577Y-50136D01* X7546Y-50143D01* X7510Y-50149D01* X7292Y-50166D01* X7206Y-50167D01* X7170Y-50182D01* X1980D01* X-2151Y-46051D01* X-2449Y-45852D01* X-2800Y-45782D01* X-7820D01* X-9211Y-44391D01* X-9225Y-44355D01* X-9290Y-44288D01* X-9340Y-44234D01* X-9425Y-44131D01* X-9449Y-44098D01* X-9465Y-44071D01* X-9473Y-44056D01* X-9477Y-44040D01* X-9482Y-44034D01* X-9483Y-44030D01* X-9490Y-44023D01* X-9500Y-44010D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X24259Y-56200D02* X23741D01* X23264Y-56398D01* X22898Y-56764D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57241D01* X25102Y-56764D01* X24736Y-56398D01* X24259Y-56200D01* D02* G37* %LPD*% G36* X29006Y54041D02* X29027Y53952D01* X29052Y53868D01* X29081Y53787D01* X29115Y53709D01* X29153Y53635D01* X29195Y53565D01* X29242Y53498D01* X29293Y53435D01* X29349Y53376D01* X28996Y52880D01* X28933Y52937D01* X28868Y52987D01* X28800Y53030D01* X28729Y53064D01* X28656Y53092D01* X28580Y53111D01* X28502Y53123D01* X28420Y53127D01* X28337Y53124D01* X28250Y53113D01* X28990Y54132D01* X29006Y54041D01* D02* G37* G36* X33002Y53600D02* X33010Y53513D01* X33024Y53429D01* X33045Y53347D01* X33071Y53270D01* X33104Y53195D01* X33142Y53124D01* X33187Y53056D01* X33237Y52992D01* X33294Y52930D01* X32870Y52506D01* X32808Y52563D01* X32744Y52613D01* X32676Y52658D01* X32605Y52696D01* X32530Y52729D01* X32452Y52755D01* X32372Y52776D01* X32287Y52790D01* X32200Y52798D01* X32109Y52800D01* X33000Y53691D01* X33002Y53600D01* D02* G37* G36* X567Y42792D02* X511Y42724D01* X462Y42654D01* X419Y42583D01* X383Y42509D01* X353Y42434D01* X330Y42356D01* X313Y42276D01* X303Y42195D01* X300Y42112D01* X-300D01* X-303Y42195D01* X-313Y42276D01* X-330Y42356D01* X-353Y42434D01* X-383Y42509D01* X-419Y42583D01* X-462Y42654D01* X-511Y42724D01* X-567Y42792D01* X-630Y42857D01* X630D01* X567Y42792D01* D02* G37* G36* X726Y37548D02* X890Y37411D01* X969Y37355D01* X1047Y37308D01* X1124Y37269D01* X1199Y37239D01* X1273Y37217D01* X1346Y37204D01* X1417Y37200D01* Y36800D01* X1346Y36796D01* X1273Y36783D01* X1199Y36761D01* X1124Y36731D01* X1047Y36693D01* X969Y36645D01* X890Y36589D01* X809Y36525D01* X726Y36452D01* X643Y36370D01* Y37630D01* X726Y37548D01* D02* G37* G36* X-59097Y36353D02* X-59086Y36311D01* X-59068Y36265D01* X-59043Y36216D01* X-59010Y36163D01* X-58970Y36106D01* X-58867Y35982D01* X-58805Y35914D01* X-58736Y35843D01* X-59443Y35135D01* X-59514Y35205D01* X-59706Y35370D01* X-59763Y35410D01* X-59816Y35443D01* X-59865Y35468D01* X-59911Y35486D01* X-59953Y35497D01* X-59991Y35500D01* X-59100Y36391D01* X-59097Y36353D01* D02* G37* G36* X-59909Y31600D02* X-59947Y31597D01* X-59989Y31586D01* X-60035Y31568D01* X-60084Y31543D01* X-60137Y31510D01* X-60194Y31470D01* X-60318Y31367D01* X-60386Y31305D01* X-60457Y31236D01* X-61164Y31943D01* X-61095Y32014D01* X-60930Y32206D01* X-60890Y32263D01* X-60857Y32316D01* X-60832Y32365D01* X-60814Y32411D01* X-60803Y32453D01* X-60800Y32491D01* X-59909Y31600D01* D02* G37* G36* X14491Y30100D02* X14413Y30098D01* X14337Y30089D01* X14262Y30073D01* X14189Y30051D01* X14117Y30023D01* X14047Y29988D01* X13978Y29947D01* X13910Y29899D01* X13844Y29845D01* X13779Y29784D01* X13284Y30279D01* X13345Y30344D01* X13399Y30410D01* X13447Y30478D01* X13488Y30547D01* X13523Y30617D01* X13551Y30689D01* X13573Y30762D01* X13589Y30837D01* X13598Y30913D01* X13600Y30991D01* X14491Y30100D01* D02* G37* G36* X9491D02* X9413Y30098D01* X9337Y30089D01* X9262Y30073D01* X9189Y30051D01* X9117Y30023D01* X9047Y29988D01* X8978Y29947D01* X8910Y29899D01* X8844Y29845D01* X8779Y29784D01* X8284Y30279D01* X8345Y30344D01* X8399Y30410D01* X8447Y30478D01* X8488Y30547D01* X8523Y30617D01* X8551Y30689D01* X8573Y30762D01* X8589Y30837D01* X8598Y30913D01* X8600Y30991D01* X9491Y30100D01* D02* G37* G36* X-9509D02* X-9587Y30098D01* X-9663Y30089D01* X-9738Y30073D01* X-9811Y30051D01* X-9883Y30023D01* X-9953Y29988D01* X-10022Y29947D01* X-10090Y29899D01* X-10156Y29845D01* X-10221Y29784D01* X-10716Y30279D01* X-10655Y30344D01* X-10601Y30410D01* X-10553Y30478D01* X-10512Y30547D01* X-10477Y30617D01* X-10449Y30689D01* X-10427Y30762D01* X-10411Y30837D01* X-10402Y30913D01* X-10400Y30991D01* X-9509Y30100D01* D02* G37* G36* X-14509D02* X-14587Y30098D01* X-14663Y30089D01* X-14738Y30073D01* X-14811Y30051D01* X-14883Y30023D01* X-14953Y29988D01* X-15022Y29947D01* X-15090Y29899D01* X-15156Y29845D01* X-15221Y29784D01* X-15716Y30279D01* X-15655Y30344D01* X-15601Y30410D01* X-15553Y30478D01* X-15512Y30547D01* X-15477Y30617D01* X-15449Y30689D01* X-15427Y30762D01* X-15411Y30837D01* X-15402Y30913D01* X-15400Y30991D01* X-14509Y30100D01* D02* G37* G36* X-57243Y26270D02* X-57272Y26295D01* X-57309Y26317D01* X-57354Y26336D01* X-57407Y26353D01* X-57468Y26368D01* X-57536Y26379D01* X-57697Y26395D01* X-57789Y26399D01* X-57888Y26400D01* Y27400D01* X-57789Y27401D01* X-57536Y27421D01* X-57468Y27433D01* X-57407Y27447D01* X-57354Y27464D01* X-57309Y27483D01* X-57272Y27505D01* X-57243Y27530D01* Y26270D01* D02* G37* G36* X11703Y7453D02* X11714Y7411D01* X11732Y7365D01* X11757Y7316D01* X11790Y7263D01* X11830Y7206D01* X11933Y7082D01* X11995Y7014D01* X12065Y6943D01* X11357Y6236D01* X11286Y6305D01* X11094Y6470D01* X11037Y6510D01* X10984Y6543D01* X10935Y6568D01* X10889Y6586D01* X10847Y6597D01* X10809Y6600D01* X11700Y7491D01* X11703Y7453D01* D02* G37* G36* X-53974Y6091D02* X-53965Y6006D01* X-53951Y5925D01* X-53931Y5847D01* X-53905Y5774D01* X-53873Y5704D01* X-53836Y5637D01* X-53793Y5575D01* X-53744Y5516D01* X-53689Y5461D01* X-54949Y5424D01* X-54897Y5482D01* X-54851Y5544D01* X-54810Y5609D01* X-54775Y5677D01* X-54745Y5749D01* X-54720Y5824D01* X-54701Y5902D01* X-54688Y5984D01* X-54680Y6069D01* X-54677Y6157D01* X-53977Y6180D01* X-53974Y6091D01* D02* G37* G36* X-49877Y6072D02* X-49875Y5985D01* X-49857Y5817D01* X-49842Y5737D01* X-49822Y5659D01* X-49798Y5584D01* X-49770Y5512D01* X-49737Y5442D01* X-49700Y5374D01* X-49658Y5310D01* X-50894Y5552D01* X-50834Y5596D01* X-50780Y5646D01* X-50732Y5700D01* X-50691Y5759D01* X-50656Y5824D01* X-50628Y5894D01* X-50605Y5968D01* X-50590Y6048D01* X-50580Y6133D01* X-50577Y6222D01* X-49877Y6072D01* D02* G37* G36* X-10609Y1600D02* X-10647Y1597D01* X-10689Y1586D01* X-10735Y1568D01* X-10784Y1543D01* X-10837Y1510D01* X-10894Y1470D01* X-11018Y1367D01* X-11086Y1305D01* X-11157Y1235D01* X-11864Y1943D01* X-11795Y2014D01* X-11630Y2206D01* X-11590Y2263D01* X-11557Y2316D01* X-11532Y2365D01* X-11514Y2411D01* X-11503Y2453D01* X-11500Y2491D01* X-10609Y1600D01* D02* G37* G36* X-55284Y1421D02* X-55345Y1356D01* X-55399Y1290D01* X-55447Y1222D01* X-55488Y1153D01* X-55523Y1083D01* X-55551Y1011D01* X-55573Y938D01* X-55589Y863D01* X-55598Y787D01* X-55600Y709D01* X-56491Y1600D01* X-56413Y1602D01* X-56337Y1611D01* X-56262Y1627D01* X-56189Y1649D01* X-56117Y1677D01* X-56047Y1712D01* X-55978Y1753D01* X-55910Y1801D01* X-55844Y1855D01* X-55779Y1916D01* X-55284Y1421D01* D02* G37* G36* X-51143Y1379D02* X-51203Y1314D01* X-51257Y1248D01* X-51305Y1181D01* X-51346Y1112D01* X-51381Y1041D01* X-51410Y969D01* X-51432Y896D01* X-51447Y821D01* X-51456Y745D01* X-51458Y667D01* X-52349Y1558D01* X-52271Y1561D01* X-52195Y1570D01* X-52121Y1585D01* X-52047Y1607D01* X-51975Y1635D01* X-51905Y1670D01* X-51836Y1711D01* X-51768Y1759D01* X-51702Y1813D01* X-51638Y1874D01* X-51143Y1379D01* D02* G37* G36* X16701Y174D02* X16719Y-39D01* X16736Y-134D01* X16758Y-223D01* X16785Y-305D01* X16817Y-379D01* X16854Y-447D01* X16896Y-507D01* X16944Y-561D01* X16661Y-844D01* X16607Y-796D01* X16547Y-754D01* X16479Y-717D01* X16405Y-685D01* X16323Y-658D01* X16234Y-636D01* X16139Y-619D01* X16036Y-608D01* X15926Y-601D01* X15809Y-600D01* X16700Y291D01* X16701Y174D01* D02* G37* G36* X-65406Y-1730D02* X-65463Y-1792D01* X-65513Y-1856D01* X-65558Y-1924D01* X-65596Y-1995D01* X-65629Y-2070D01* X-65655Y-2148D01* X-65675Y-2228D01* X-65690Y-2313D01* X-65698Y-2400D01* X-65700Y-2491D01* X-66591Y-1600D01* X-66500Y-1598D01* X-66413Y-1590D01* X-66329Y-1575D01* X-66247Y-1555D01* X-66170Y-1529D01* X-66095Y-1496D01* X-66024Y-1458D01* X-65956Y-1413D01* X-65892Y-1363D01* X-65830Y-1306D01* X-65406Y-1730D01* D02* G37* G36* X-13293Y-900D02* X-13427Y-1044D01* X-13547Y-1195D01* X-13654Y-1351D01* X-13745Y-1513D01* X-13823Y-1680D01* X-13887Y-1854D01* X-13936Y-2034D01* X-13972Y-2219D01* X-13993Y-2410D01* X-14000Y-2607D01* X-15000Y-2900D01* X-15010Y-2710D01* X-15040Y-2540D01* X-15090Y-2390D01* X-15160Y-2260D01* X-15250Y-2150D01* X-15360Y-2060D01* X-15490Y-1990D01* X-15640Y-1940D01* X-15810Y-1910D01* X-16000Y-1900D01* X-15707Y-900D01* X-15510Y-893D01* X-15319Y-872D01* X-15134Y-836D01* X-14954Y-787D01* X-14780Y-723D01* X-14613Y-645D01* X-14451Y-554D01* X-14295Y-447D01* X-14144Y-327D01* X-14000Y-193D01* X-13293Y-900D01* D02* G37* G36* X28493Y-3004D02* X28553Y-3046D01* X28621Y-3083D01* X28695Y-3115D01* X28777Y-3142D01* X28866Y-3164D01* X28962Y-3181D01* X29064Y-3192D01* X29174Y-3199D01* X29291Y-3200D01* X28400Y-4091D01* X28399Y-3974D01* X28381Y-3761D01* X28364Y-3666D01* X28342Y-3577D01* X28315Y-3495D01* X28283Y-3421D01* X28246Y-3353D01* X28204Y-3293D01* X28156Y-3239D01* X28439Y-2956D01* X28493Y-3004D01* D02* G37* G36* X-17695Y-4872D02* X-17717Y-4909D01* X-17736Y-4954D01* X-17753Y-5007D01* X-17767Y-5068D01* X-17779Y-5136D01* X-17795Y-5297D01* X-17799Y-5389D01* X-17800Y-5488D01* X-18800D01* X-18801Y-5389D01* X-18821Y-5136D01* X-18833Y-5068D01* X-18847Y-5007D01* X-18864Y-4954D01* X-18883Y-4909D01* X-18905Y-4872D01* X-18930Y-4843D01* X-17670D01* X-17695Y-4872D01* D02* G37* G36* X28493Y-6104D02* X28553Y-6146D01* X28621Y-6183D01* X28695Y-6215D01* X28777Y-6242D01* X28866Y-6264D01* X28962Y-6281D01* X29064Y-6292D01* X29174Y-6299D01* X29291Y-6300D01* X28400Y-7191D01* X28399Y-7074D01* X28381Y-6861D01* X28364Y-6766D01* X28342Y-6677D01* X28315Y-6595D01* X28283Y-6521D01* X28246Y-6453D01* X28204Y-6393D01* X28156Y-6339D01* X28439Y-6056D01* X28493Y-6104D01* D02* G37* G36* X-34156Y-7539D02* X-34204Y-7593D01* X-34246Y-7653D01* X-34283Y-7721D01* X-34315Y-7795D01* X-34342Y-7877D01* X-34364Y-7966D01* X-34381Y-8061D01* X-34392Y-8164D01* X-34399Y-8274D01* X-34400Y-8391D01* X-35291Y-7500D01* X-35174Y-7499D01* X-34962Y-7481D01* X-34866Y-7464D01* X-34777Y-7442D01* X-34695Y-7415D01* X-34621Y-7383D01* X-34553Y-7346D01* X-34493Y-7304D01* X-34439Y-7256D01* X-34156Y-7539D01* D02* G37* G36* X-1300Y36884D02* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X868Y36029D01* X945Y36060D01* X1022Y36135D01* X1088Y36193D01* X1149Y36243D01* X1206Y36283D01* X1257Y36313D01* X1302Y36336D01* X1338Y36351D01* X16331D01* X18041Y34641D01* X18500Y34451D01* X26631D01* X29451Y31631D01* Y28600D01* X29641Y28141D01* X35151Y22631D01* Y-7731D01* X34331Y-8551D01* X30495D01* X30288Y-8051D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* X29440Y-5569D01* X29559Y-5400D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* X29373D01* X29296Y-2767D01* X29189Y-2766D01* X29101Y-2761D01* X29023Y-2752D01* X28955Y-2740D01* X28897Y-2726D01* X28849Y-2710D01* X28813Y-2695D01* X13159Y12959D01* X12700Y13149D01* X-14400D01* X-14859Y12959D01* X-34813Y-6995D01* X-34849Y-7010D01* X-34897Y-7026D01* X-34955Y-7040D01* X-35017Y-7051D01* X-35195Y-7066D01* X-35296Y-7067D01* X-35373Y-7100D01* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36522Y-8846D01* X-36946Y-9129D01* X-40924Y-5151D01* X-41222Y-4952D01* X-41573Y-4882D01* X-66220D01* X-66802Y-4300D01* X-66595Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2575D01* X-65267Y-2501D01* X-65265Y-2426D01* X-65260Y-2369D01* X-65251Y-2317D01* X-65240Y-2270D01* X-65225Y-2226D01* X-65207Y-2185D01* X-65186Y-2146D01* X-65161Y-2109D01* X-65133Y-2073D01* X-65088Y-2024D01* X-65072Y-1982D01* X-64195Y-1105D01* X-64041Y-873D01* X-63986Y-600D01* Y5304D01* X-61304Y7986D01* X-54748D01* X-54557Y7524D01* X-54868Y7214D01* X-55033Y6966D01* X-55091Y6673D01* Y6211D01* X-55110Y6171D01* X-55112Y6096D01* X-55117Y6040D01* X-55126Y5989D01* X-55137Y5942D01* X-55151Y5900D01* X-55167Y5860D01* X-55186Y5824D01* X-55208Y5789D01* X-55233Y5756D01* X-55273Y5711D01* X-55297Y5642D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55079Y3740D01* X-55061Y3436D01* X-55086Y3177D01* X-55141Y3141D01* X-55141Y3141D01* X-56035Y2247D01* X-56076Y2231D01* X-56130Y2180D01* X-56173Y2145D01* X-56214Y2116D01* X-56254Y2092D01* X-56293Y2073D01* X-56330Y2058D01* X-56368Y2047D01* X-56406Y2039D01* X-56445Y2035D01* X-56505Y2033D01* X-56577Y2000D01* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57236Y-402D01* X-56759Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y623D01* X-55167Y695D01* X-55165Y754D01* X-55161Y794D01* X-55153Y832D01* X-55142Y870D01* X-55127Y907D01* X-55108Y946D01* X-55084Y986D01* X-55055Y1027D01* X-55020Y1070D01* X-54969Y1124D01* X-54953Y1165D01* X-54283Y1835D01* X-53727D01* X-53584Y1600D01* X-53485Y1335D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y581D01* X-51025Y654D01* X-51024Y713D01* X-51019Y752D01* X-51011Y790D01* X-51000Y828D01* X-50985Y866D01* X-50966Y904D01* X-50942Y944D01* X-50913Y986D01* X-50878Y1028D01* X-50827Y1082D01* X-50811Y1124D01* X-50400Y1535D01* X-49500D01* X-49207Y1594D01* X-48959Y1759D01* X-47659Y3059D01* X-47493Y3307D01* X-47435Y3600D01* X-47435Y3600D01* Y7816D01* X-33566Y21685D01* X5950D01* X6243Y21744D01* X6491Y21909D01* X14035Y29453D01* X14076Y29469D01* X14130Y29520D01* X14173Y29555D01* X14214Y29584D01* X14254Y29608D01* X14293Y29627D01* X14330Y29642D01* X14368Y29653D01* X14406Y29661D01* X14445Y29665D01* X14505Y29667D01* X14577Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y31077D01* X13167Y31005D01* X13165Y30945D01* X13161Y30906D01* X13153Y30868D01* X13142Y30830D01* X13127Y30793D01* X13108Y30754D01* X13084Y30714D01* X13055Y30673D01* X13020Y30630D01* X12969Y30576D01* X12953Y30535D01* X5633Y23215D01* X3449D01* X3258Y23677D01* X9035Y29453D01* X9076Y29469D01* X9130Y29520D01* X9173Y29555D01* X9214Y29584D01* X9254Y29608D01* X9293Y29627D01* X9330Y29642D01* X9368Y29653D01* X9406Y29661D01* X9445Y29665D01* X9505Y29667D01* X9577Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y31077D01* X8167Y31005D01* X8165Y30945D01* X8161Y30906D01* X8153Y30868D01* X8142Y30830D01* X8127Y30793D01* X8108Y30754D01* X8084Y30714D01* X8055Y30673D01* X8020Y30630D01* X7969Y30576D01* X7953Y30535D01* X1733Y24315D01* X-14451D01* X-14642Y24777D01* X-9965Y29453D01* X-9924Y29469D01* X-9870Y29520D01* X-9827Y29555D01* X-9786Y29584D01* X-9746Y29608D01* X-9707Y29627D01* X-9670Y29642D01* X-9632Y29653D01* X-9594Y29661D01* X-9555Y29665D01* X-9495Y29667D01* X-9423Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-8967Y32186D01* X-8867Y32686D01* X-6500D01* X-6227Y32741D01* X-5995Y32895D01* X-1800Y37091D01* X-1300Y36884D01* D02* G37* G36* X-11409Y-8400D02* X-11447Y-8403D01* X-11489Y-8414D01* X-11535Y-8432D01* X-11584Y-8457D01* X-11637Y-8490D01* X-11694Y-8530D01* X-11818Y-8633D01* X-11886Y-8695D01* X-11957Y-8765D01* X-12664Y-8057D01* X-12595Y-7986D01* X-12430Y-7794D01* X-12390Y-7737D01* X-12357Y-7684D01* X-12332Y-7635D01* X-12314Y-7589D01* X-12303Y-7547D01* X-12300Y-7509D01* X-11409Y-8400D01* D02* G37* G36* X-31596Y-10954D02* X-31583Y-11027D01* X-31561Y-11101D01* X-31531Y-11176D01* X-31492Y-11253D01* X-31445Y-11331D01* X-31389Y-11411D01* X-31325Y-11491D01* X-31252Y-11574D01* X-31170Y-11657D01* X-32430D01* X-32348Y-11574D01* X-32211Y-11411D01* X-32155Y-11331D01* X-32107Y-11253D01* X-32069Y-11176D01* X-32039Y-11101D01* X-32017Y-11027D01* X-32004Y-10954D01* X-32000Y-10882D01* X-31600D01* X-31596Y-10954D01* D02* G37* G36* X-71849Y-249D02* X-69518Y-2580D01* Y-3800D01* X-69448Y-4151D01* X-69249Y-4449D01* X-67249Y-6449D01* X-66951Y-6648D01* X-66600Y-6718D01* X-41953D01* X-33322Y-15349D01* X-33024Y-15548D01* X-32673Y-15618D01* X-30900D01* X-30549Y-15548D01* X-30251Y-15349D01* X-27551Y-12649D01* X-27352Y-12351D01* X-27282Y-12000D01* Y-5180D01* X-24420Y-2318D01* X-16054D01* X-16023Y-2332D01* X-15859Y-2341D01* X-15747Y-2361D01* X-15662Y-2389D01* X-15602Y-2421D01* X-15558Y-2458D01* X-15521Y-2502D01* X-15489Y-2562D01* X-15461Y-2647D01* X-15441Y-2759D01* X-15432Y-2923D01* X-15418Y-2954D01* Y-12060D01* X-16920Y-13563D01* X-17382Y-13371D01* Y-5530D01* X-17367Y-5494D01* X-17366Y-5401D01* X-17363Y-5327D01* X-17350Y-5194D01* X-17343Y-5154D01* X-17336Y-5123D01* X-17331Y-5107D01* X-17323Y-5093D01* X-17321Y-5086D01* X-17320Y-5081D01* X-17319Y-5072D01* X-17317Y-5055D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19283Y-5055D01* X-19281Y-5072D01* X-19281Y-5081D01* X-19279Y-5086D01* X-19277Y-5093D01* X-19270Y-5107D01* X-19264Y-5123D01* X-19257Y-5154D01* X-19251Y-5190D01* X-19234Y-5408D01* X-19233Y-5494D01* X-19218Y-5530D01* Y-24920D01* X-23780Y-29482D01* X-37200D01* X-37551Y-29552D01* X-37849Y-29751D01* X-38309Y-30211D01* X-38345Y-30225D01* X-38412Y-30290D01* X-38466Y-30340D01* X-38569Y-30425D01* X-38602Y-30449D01* X-38629Y-30465D01* X-38644Y-30473D01* X-38660Y-30477D01* X-38666Y-30482D01* X-38670Y-30483D01* X-38677Y-30490D01* X-38690Y-30500D01* X-38859D01* X-39336Y-30698D01* X-39370Y-30732D01* X-42682Y-27420D01* Y-22100D01* X-42752Y-21749D01* X-42951Y-21451D01* X-47851Y-16551D01* X-48149Y-16352D01* X-48500Y-16282D01* X-51099D01* X-51141Y-15800D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14241D01* X-50298Y-13764D01* X-50664Y-13398D01* X-51141Y-13200D01* X-51659D01* X-52136Y-13398D01* X-52502Y-13764D01* X-52700Y-14241D01* Y-14759D01* X-52674Y-14821D01* X-53098Y-15104D01* X-53451Y-14751D01* X-53749Y-14552D01* X-54100Y-14482D01* X-55137D01* X-55344Y-13982D01* X-55198Y-13836D01* X-55000Y-13359D01* Y-12841D01* X-55198Y-12364D01* X-55564Y-11998D01* X-56041Y-11800D01* X-56559D01* X-57036Y-11998D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57256Y-13982D01* X-57463Y-14482D01* X-59820D01* X-64951Y-9351D01* X-65249Y-9152D01* X-65600Y-9082D01* X-68040D01* X-72382Y-4740D01* Y-350D01* X-71882Y-199D01* X-71849Y-249D01* D02* G37* G36* X-54883Y-19142D02* X-54865Y-19354D01* X-54848Y-19450D01* X-54826Y-19539D01* X-54799Y-19621D01* X-54767Y-19695D01* X-54730Y-19763D01* X-54688Y-19823D01* X-54641Y-19877D01* X-54923Y-20159D01* X-54977Y-20112D01* X-55037Y-20070D01* X-55105Y-20033D01* X-55180Y-20001D01* X-55261Y-19974D01* X-55350Y-19952D01* X-55446Y-19935D01* X-55549Y-19924D01* X-55658Y-19917D01* X-55775Y-19916D01* X-54884Y-19025D01* X-54883Y-19142D01* D02* G37* G36* X-37336Y-31243D02* X-37405Y-31314D01* X-37570Y-31506D01* X-37610Y-31563D01* X-37643Y-31616D01* X-37668Y-31665D01* X-37686Y-31711D01* X-37697Y-31753D01* X-37700Y-31791D01* X-38591Y-30900D01* X-38553Y-30897D01* X-38511Y-30886D01* X-38465Y-30868D01* X-38416Y-30843D01* X-38363Y-30810D01* X-38306Y-30770D01* X-38182Y-30667D01* X-38114Y-30605D01* X-38043Y-30536D01* X-37336Y-31243D01* D02* G37* G36* X-35318Y-33019D02* X-35389Y-33091D01* X-35601Y-33332D01* X-35637Y-33381D01* X-35666Y-33425D01* X-35687Y-33464D01* X-35702Y-33498D01* X-35709Y-33528D01* X-36454Y-32512D01* X-36413Y-32514D01* X-36369Y-32509D01* X-36321Y-32496D01* X-36270Y-32474D01* X-36215Y-32445D01* X-36157Y-32408D01* X-36096Y-32362D01* X-36031Y-32309D01* X-35892Y-32179D01* X-35318Y-33019D01* D02* G37* G36* X-41033Y-32358D02* X-40841Y-32522D01* X-40784Y-32563D01* X-40731Y-32595D01* X-40682Y-32621D01* X-40637Y-32639D01* X-40595Y-32649D01* X-40556Y-32653D01* X-41447Y-33544D01* X-41451Y-33505D01* X-41461Y-33463D01* X-41479Y-33418D01* X-41505Y-33369D01* X-41537Y-33316D01* X-41578Y-33259D01* X-41680Y-33134D01* X-41742Y-33067D01* X-41812Y-32995D01* X-41105Y-32288D01* X-41033Y-32358D01* D02* G37* G36* X-39644Y-33600D02* X-39633Y-33642D01* X-39615Y-33687D01* X-39590Y-33737D01* X-39557Y-33790D01* X-39517Y-33847D01* X-39415Y-33971D01* X-39352Y-34039D01* X-39283Y-34110D01* X-39990Y-34817D01* X-40061Y-34748D01* X-40253Y-34583D01* X-40310Y-34543D01* X-40363Y-34510D01* X-40413Y-34485D01* X-40458Y-34467D01* X-40500Y-34456D01* X-40538Y-34453D01* X-39647Y-33562D01* X-39644Y-33600D01* D02* G37* G36* X-55856Y-36139D02* X-55904Y-36193D01* X-55946Y-36253D01* X-55983Y-36321D01* X-56015Y-36395D01* X-56042Y-36477D01* X-56064Y-36566D01* X-56081Y-36661D01* X-56092Y-36764D01* X-56099Y-36874D01* X-56100Y-36991D01* X-56991Y-36100D01* X-56874Y-36099D01* X-56661Y-36081D01* X-56566Y-36064D01* X-56477Y-36042D01* X-56395Y-36015D01* X-56321Y-35983D01* X-56253Y-35946D01* X-56193Y-35904D01* X-56139Y-35856D01* X-55856Y-36139D01* D02* G37* G36* X-34119Y-40011D02* X-34100Y-40264D01* X-34088Y-40332D01* X-34074Y-40393D01* X-34057Y-40446D01* X-34037Y-40491D01* X-34015Y-40528D01* X-33990Y-40557D01* X-35250D01* X-35226Y-40528D01* X-35204Y-40491D01* X-35184Y-40446D01* X-35167Y-40393D01* X-35153Y-40332D01* X-35141Y-40264D01* X-35126Y-40103D01* X-35122Y-40011D01* X-35120Y-39912D01* X-34121D01* X-34119Y-40011D01* D02* G37* G36* X2734Y-62013D02* X2794Y-62073D01* X2858Y-62126D01* X2924Y-62172D01* X2993Y-62211D01* X3066Y-62243D01* X3141Y-62268D01* X3220Y-62286D01* X3301Y-62296D01* X3386Y-62300D01* X3315Y-62900D01* X3233Y-62903D01* X3152Y-62912D01* X3071Y-62927D01* X2992Y-62948D01* X2914Y-62974D01* X2837Y-63007D01* X2761Y-63046D01* X2685Y-63090D01* X2611Y-63141D01* X2537Y-63197D01* X2677Y-61945D01* X2734Y-62013D01* D02* G37* G36* X-806Y-64730D02* X-866Y-64795D01* X-919Y-64861D01* X-966Y-64929D01* X-1006Y-64998D01* X-1039Y-65069D01* X-1065Y-65142D01* X-1084Y-65216D01* X-1097Y-65293D01* X-1103Y-65370D01* X-1101Y-65450D01* X-1950Y-64601D01* X-1870Y-64603D01* X-1792Y-64597D01* X-1716Y-64584D01* X-1642Y-64565D01* X-1569Y-64539D01* X-1498Y-64506D01* X-1429Y-64466D01* X-1361Y-64420D01* X-1295Y-64366D01* X-1230Y-64306D01* X-806Y-64730D01* D02* G37* %LPC*% G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X-42441Y-9300D02* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43436Y-11702D01* X-42959Y-11900D01* X-42441D01* X-41964Y-11702D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* D02* G37* G36* X-51641Y-9800D02* X-52159D01* X-52636Y-9998D01* X-53002Y-10364D01* X-53200Y-10841D01* Y-11359D01* X-53002Y-11836D01* X-52636Y-12202D01* X-52159Y-12400D01* X-51641D01* X-51164Y-12202D01* X-50798Y-11836D01* X-50600Y-11359D01* Y-10841D01* X-50798Y-10364D01* X-51164Y-9998D01* X-51641Y-9800D01* D02* G37* G36* X-22241Y-18000D02* X-22759D01* X-23236Y-18198D01* X-23602Y-18564D01* X-23800Y-19041D01* Y-19559D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* D02* G37* %LPD*% G36* X73548Y2774D02* X73411Y2610D01* X73355Y2531D01* X73308Y2453D01* X73269Y2376D01* X73239Y2301D01* X73217Y2227D01* X73204Y2154D01* X73200Y2083D01* X72800D01* X72796Y2154D01* X72783Y2227D01* X72761Y2301D01* X72731Y2376D01* X72693Y2453D01* X72645Y2531D01* X72589Y2610D01* X72525Y2691D01* X72452Y2774D01* X72370Y2857D01* X73630D01* X73548Y2774D01* D02* G37* G36* X50726Y-3452D02* X50889Y-3589D01* X50969Y-3645D01* X51047Y-3692D01* X51124Y-3731D01* X51199Y-3761D01* X51274Y-3783D01* X51346Y-3796D01* X51417Y-3800D01* Y-4200D01* X51346Y-4204D01* X51274Y-4217D01* X51199Y-4239D01* X51124Y-4269D01* X51047Y-4307D01* X50969Y-4355D01* X50889Y-4411D01* X50809Y-4475D01* X50726Y-4548D01* X50643Y-4630D01* Y-3370D01* X50726Y-3452D01* D02* G37* G36* X72991Y-5600D02* X72874Y-5601D01* X72662Y-5619D01* X72566Y-5636D01* X72477Y-5658D01* X72395Y-5685D01* X72321Y-5717D01* X72253Y-5754D01* X72193Y-5796D01* X72139Y-5844D01* X71856Y-5561D01* X71904Y-5507D01* X71946Y-5447D01* X71983Y-5379D01* X72015Y-5305D01* X72042Y-5223D01* X72064Y-5134D01* X72081Y-5039D01* X72092Y-4936D01* X72099Y-4826D01* X72100Y-4709D01* X72991Y-5600D01* D02* G37* G36* X50726Y-6652D02* X50889Y-6789D01* X50969Y-6845D01* X51047Y-6893D01* X51124Y-6931D01* X51199Y-6961D01* X51274Y-6983D01* X51346Y-6996D01* X51417Y-7000D01* Y-7400D01* X51346Y-7404D01* X51274Y-7417D01* X51199Y-7439D01* X51124Y-7469D01* X51047Y-7508D01* X50969Y-7555D01* X50889Y-7611D01* X50809Y-7675D01* X50726Y-7748D01* X50643Y-7830D01* Y-6570D01* X50726Y-6652D01* D02* G37* G36* X-9897Y-44147D02* X-9886Y-44189D01* X-9868Y-44235D01* X-9843Y-44284D01* X-9810Y-44337D01* X-9770Y-44394D01* X-9667Y-44518D01* X-9605Y-44586D01* X-9535Y-44657D01* X-10243Y-45364D01* X-10314Y-45295D01* X-10506Y-45130D01* X-10563Y-45090D01* X-10616Y-45057D01* X-10665Y-45032D01* X-10711Y-45014D01* X-10753Y-45003D01* X-10791Y-45000D01* X-9900Y-44109D01* X-9897Y-44147D01* D02* G37* G36* X-10809Y-45000D02* X-10847Y-45003D01* X-10889Y-45014D01* X-10935Y-45032D01* X-10984Y-45057D01* X-11037Y-45090D01* X-11094Y-45130D01* X-11218Y-45233D01* X-11286Y-45295D01* X-11296Y-45304D01* X-11305Y-45314D01* X-11470Y-45506D01* X-11510Y-45563D01* X-11543Y-45616D01* X-11568Y-45665D01* X-11586Y-45711D01* X-11597Y-45753D01* X-11600Y-45791D01* X-12491Y-44900D01* X-12453Y-44897D01* X-12411Y-44886D01* X-12365Y-44868D01* X-12316Y-44843D01* X-12263Y-44810D01* X-12206Y-44770D01* X-12082Y-44667D01* X-12014Y-44605D01* X-12004Y-44596D01* X-11995Y-44586D01* X-11830Y-44394D01* X-11790Y-44337D01* X-11757Y-44284D01* X-11732Y-44235D01* X-11714Y-44189D01* X-11703Y-44147D01* X-11700Y-44109D01* X-10809Y-45000D01* D02* G37* G36* X7857Y-51730D02* X7828Y-51705D01* X7791Y-51683D01* X7746Y-51664D01* X7693Y-51647D01* X7632Y-51632D01* X7564Y-51621D01* X7403Y-51605D01* X7311Y-51601D01* X7212Y-51600D01* Y-50600D01* X7311Y-50599D01* X7564Y-50579D01* X7632Y-50568D01* X7693Y-50553D01* X7746Y-50536D01* X7791Y-50517D01* X7828Y-50495D01* X7857Y-50470D01* Y-51730D01* D02* G37* D10* X-43600Y-27800D02* Y-22100D01* X-52300Y-17200D02* X-48500D01* X-43600Y-22100D01* X-71200Y400D02* X-68600Y-2200D01* X-71200Y400D02* Y5800D01* X-62200Y14800D01* X-65000Y15960D02* Y27400D01* X-74700Y-5700D02* Y6260D01* X-73300Y-5120D02* Y5680D01* X-74700Y6260D02* X-65000Y15960D01* X-62200Y14800D02* Y23200D01* X-73300Y5680D02* X-63600Y15380D01* Y24800D01* X-65980Y-11600D02* X-60780Y-16800D01* X-74700Y-5700D02* X-68800Y-11600D01* X-65980D01* X-58500Y26900D02* X-56600D01* X-62200Y23200D02* X-58500Y26900D01* X-63600Y24800D02* X-57400Y31000D01* X-65000Y27400D02* X-59900Y32500D01* X-68600Y-3800D02* Y-2200D01* Y-3800D02* X-66600Y-5800D01* X-41573D01* X-32673Y-14700D01* X-30900D01* X-28200Y-12000D01* Y-4800D01* X-24800Y-1400D01* X-14500D01* X-57400Y31000D02* Y33800D01* X-60000Y36400D02* X-57400Y33800D01* X-60780Y-16800D02* X-54900D01* X-73300Y-5120D02* X-68420Y-10000D01* X-65600D01* X-60200Y-15400D02* X-54100D01* X-65600Y-10000D02* X-60200Y-15400D01* X-53100Y-18600D02* X-49200D01* X-54900Y-16800D02* X-53100Y-18600D01* X-54100Y-15400D02* X-52300Y-17200D01* X-49200Y-18600D02* X-45000Y-22800D01* Y-29100D02* X-40547Y-33553D01* X-43600Y-27800D02* X-39600Y-31800D01* X-45000Y-29100D02* Y-22800D01* X-39600Y-31800D02* X-38600D01* X-2800Y-46700D02* X1600Y-51100D01* X-8200Y-46700D02* X-2800D01* X1600Y-51100D02* X8500D01* X10200Y-12800D02* X12700Y-10300D01* X-10800Y-12800D02* X10200D01* X12700Y-10300D02* Y5600D01* X10800Y7500D02* X12700Y5600D01* X-13100Y-13120D02* Y-9200D01* X-11400Y-7500D01* X-16900Y-14840D02* X-14500Y-12440D01* Y-1400D01* X-10600Y2500D01* X-15500Y-15520D02* X-13100Y-13120D01* X-22820Y-31800D02* X-16900Y-25880D01* Y-14840D01* X-21660Y-34600D02* X-14100Y-27040D01* Y-16100D02* X-10800Y-12800D01* X-14100Y-27040D02* Y-16100D01* X-15500Y-26460D02* Y-15520D01* X-22240Y-33200D02* X-15500Y-26460D01* X-23400Y-30400D02* X-18300Y-25300D01* Y-4200D01* X-34806Y-31800D02* X-22820D01* X-32600Y-33200D02* X-22240D01* X-31000Y-34600D02* X-21660D01* X-37200Y-30400D02* X-23400D01* X-10800Y-44100D02* X-8200Y-46700D01* X-12500Y-45800D02* X-10800Y-44100D01* X-34620Y-38221D02* X-31000Y-34600D01* X-34620Y-41200D02* Y-38221D01* X-38000Y-36100D02* X-35500D01* X-32600Y-33200D01* X-38600Y-31800D02* X-37200Y-30400D01* X-36600Y-33400D02* X-36406D01* X-34806Y-31800D01* X-40547Y-33553D02* X-38000Y-36100D01* D11* X50000Y-4000D02* X69700D01* X73000Y-700D02* Y3500D01* X69700Y-4000D02* X73000Y-700D01* X70500Y-7200D02* X73000Y-4700D01* X50000Y-7200D02* X70500D01* X-75200Y-65800D02* Y-56700D01* X-78400Y-53500D02* X-75200Y-56700D01* X-75500Y-53000D02* Y-51200D01* X-71366Y-47066D01* X-75500Y-53000D02* X-73500Y-55000D01* X-71366Y-47066D02* Y-45734D01* X-73500Y-52000D02* X-64100Y-42600D01* X-62100D01* X15800Y300D02* X25300Y-9200D01* X34600D01* X35800Y-8000D01* Y22900D01* X30100Y28600D02* X35800Y22900D01* X30100Y28600D02* Y31900D01* X26900Y35100D02* X30100Y31900D01* X18500Y35100D02* X26900D01* X16600Y37000D02* X18500Y35100D01* X0Y37000D02* X16600D01* X-75200Y-65800D02* X-67700Y-73300D01* X-54900D01* X-49700Y-68100D01* Y-23300D01* X-51000Y-22000D02* X-49700Y-23300D01* X-58500Y-41000D02* X-57400D01* X-53500Y-37100D01* X-57000Y-37000D02* X-55400Y-35400D01* Y-30900D01* X-53500Y-29000D02* Y-21300D01* X-55400Y-30900D02* X-53500Y-29000D01* X-55784Y-19016D02* X-53500Y-21300D01* X-35300Y-8400D02* X-14400Y12500D01* X-31800Y-6100D02* X-14000Y11700D01* X10400D01* X29300Y-7200D01* X-14400Y12500D02* X12700D01* X29300Y-4100D01* X-31800Y-12300D02* Y-6100D01* X-53500Y-37100D02* Y-33600D01* X-51500Y-31600D01* D14* X-66600Y-2500D02* X-64700Y-600D01* Y5600D02* X-61600Y8700D01* X-64700Y-600D02* Y5600D01* X28100Y54000D02* X28300D01* X37100Y45200D01* X-2000Y-65500D02* X-1000Y-64500D01* X29800D01* X6100Y-62600D02* X7000Y-63500D01* X2069Y-62600D02* X6100D01* X7000Y-63500D02* X29386D01* X-35700Y26800D02* X-21300D01* X-53800Y8700D02* X-35700Y26800D01* X-21300D02* X-14700Y33400D01* X-61600Y8700D02* X-53800D01* X-14700Y33400D02* X-6500D01* X0Y39900D01* Y43500D01* X37100Y-55786D02* Y45200D01* X38100Y-56200D02* Y47700D01* X29800Y-64500D02* X38100Y-56200D01* X29386Y-63500D02* X37100Y-55786D01* X32100Y53700D02* X38100Y47700D01* D50* X240Y-38640D02* Y-33540D01* X28500Y-18700D02* Y-16400D01* Y-21200D02* Y-18700D01* Y-24900D02* Y-21200D01* X26100Y-27300D02* X28500Y-24900D01* X4200Y-27300D02* X26100D01* X240Y-31260D02* X4200Y-27300D01* X240Y-33540D02* Y-31260D01* D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-51500Y-31600D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* D56* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* D57* Y-74000D02* X-300D01* X-17000Y-69000D02* Y-66000D01* Y-74000D02* Y-72000D01* Y-69000D01* X4200Y-69500D02* X43000D01* X-300Y-74000D02* X4200Y-69500D01* X43000D02* Y-67000D01* Y-73000D02* Y-70000D01* Y-69500D01* X45500D01* D58* X-19750Y25750D02* X-14500Y31000D01* X-48200Y8133D02* X-33883Y22450D01* X5950D02* X14500Y31000D01* X-50227Y7662D02* X-34339Y23550D01* X2050D01* X-34794Y24650D02* X-15850D01* X-54327Y6673D02* X-35250Y25750D01* X-52400Y7044D02* X-34794Y24650D01* X-35250Y25750D02* X-19750D01* X-33883Y22450D02* X5950D01* X2050Y23550D02* X9500Y31000D01* X-15850Y24650D02* X-9500Y31000D01* X-50227Y4973D02* Y7662D01* X-52400Y3600D02* Y7044D01* X-50400Y4800D02* X-50227Y4973D01* X-54327Y4827D02* Y6673D01* X-48200Y3600D02* Y8133D01* X-49500Y2300D02* X-48200Y3600D01* X-53400Y2600D02* X-52400Y3600D01* X-54327Y4827D02* X-54300Y4800D01* X-52358Y658D02* X-50717Y2300D01* X-49500D01* X-54600Y2600D02* X-53400D01* X-56500Y700D02* X-54600Y2600D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.G2 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=3* G04 Layer_Color=14067636* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% G36* X-61046Y80185D02* X60550D01* X60553Y80185D01* X61046Y80185D01* X61531Y80148D01* X62751Y80052D01* X64413Y79653D01* X65992Y78999D01* X67205Y78256D01* X67605Y77962D01* X67605Y77962D01* X67605Y77962D01* X70086Y76006D01* X73162Y73162D01* X76006Y70086D01* X77962Y67605D01* X77962Y67605D01* X77962Y67605D01* X78256Y67204D01* X78999Y65992D01* X79653Y64413D01* X80052Y62751D01* X80148Y61531D01* X80185Y61046D01* X80255Y60695D01* X80317Y60601D01* X80396Y60483D01* Y-60483D01* X80255Y-60695D01* X80185Y-61046D01* X80148Y-61531D01* X80052Y-62751D01* X79653Y-64413D01* X78999Y-65992D01* X78256Y-67205D01* X77962Y-67605D01* X77962Y-67605D01* X77962Y-67605D01* X76006Y-70086D01* X73162Y-73162D01* X70086Y-76006D01* X67605Y-77962D01* X67605Y-77962D01* X67605Y-77962D01* X67204Y-78256D01* X65992Y-78999D01* X64413Y-79653D01* X62751Y-80052D01* X61554Y-80146D01* X61258Y-80087D01* X-60835D01* X-61186Y-80157D01* X-61210Y-80173D01* X-62751Y-80052D01* X-64413Y-79653D01* X-65992Y-78999D01* X-67204Y-78256D01* X-67605Y-77962D01* X-67605Y-77962D01* X-67605Y-77962D01* X-70086Y-76006D01* X-73162Y-73162D01* X-76006Y-70086D01* X-77962Y-67605D01* X-77962Y-67605D01* X-77962Y-67605D01* X-78256Y-67204D01* X-78999Y-65992D01* X-79653Y-64413D01* X-80052Y-62751D01* X-80153Y-61465D01* X-80043Y-61300D01* X-79973Y-60949D01* Y-54406D01* X-79615Y-54277D01* X-79473Y-54265D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78141D01* X-77664Y-54602D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* X-78659D01* X-79136Y-52398D01* X-79473Y-52735D01* X-79615Y-52723D01* X-79973Y-52594D01* Y61144D01* X-80043Y61495D01* X-80139Y61639D01* X-80052Y62751D01* X-79653Y64413D01* X-78999Y65992D01* X-78256Y67205D01* X-77962Y67605D01* X-77961Y67605D01* X-77962Y67605D01* X-76006Y70086D01* X-73162Y73162D01* X-70086Y76006D01* X-67605Y77962D01* X-67605Y77962D01* X-67605Y77962D01* X-67204Y78256D01* X-65992Y78999D01* X-64413Y79653D01* X-62751Y80052D01* X-61051Y80186D01* X-61046Y80185D01* D02* G37* %LPC*% G36* X4814Y56681D02* X4185D01* X3604Y56440D01* X3317Y56153D01* X3000Y56048D01* X2683Y56153D01* X2396Y56440D01* X1815Y56681D01* X1185D01* X604Y56440D01* X160Y55996D01* X-81Y55414D01* Y54786D01* X160Y54204D01* X447Y53917D01* X552Y53600D01* X447Y53283D01* X160Y52996D01* X-81Y52415D01* Y51785D01* X160Y51204D01* X604Y50760D01* X1185Y50519D01* X1815D01* X2396Y50760D01* X2683Y51047D01* X3000Y51152D01* X3317Y51047D01* X3604Y50760D01* X4185Y50519D01* X4814D01* X5396Y50760D01* X5840Y51204D01* X6081Y51785D01* Y52415D01* X5840Y52996D01* X5553Y53283D01* X5448Y53600D01* X5553Y53917D01* X5840Y54204D01* X6081Y54786D01* Y55414D01* X5840Y55996D01* X5396Y56440D01* X4814Y56681D01* D02* G37* G36* X-19185D02* X-19815D01* X-20396Y56440D01* X-20683Y56153D01* X-21000Y56048D01* X-21317Y56153D01* X-21604Y56440D01* X-22185Y56681D01* X-22815D01* X-23396Y56440D01* X-23840Y55996D01* X-24081Y55414D01* Y54786D01* X-23840Y54204D01* X-23553Y53917D01* X-23448Y53600D01* X-23553Y53283D01* X-23840Y52996D01* X-24081Y52415D01* Y51785D01* X-23840Y51204D01* X-23396Y50760D01* X-22815Y50519D01* X-22185D01* X-21604Y50760D01* X-21317Y51047D01* X-21000Y51152D01* X-20683Y51047D01* X-20396Y50760D01* X-19815Y50519D01* X-19185D01* X-18604Y50760D01* X-18160Y51204D01* X-17919Y51785D01* Y52415D01* X-18160Y52996D01* X-18447Y53283D01* X-18552Y53600D01* X-18447Y53917D01* X-18160Y54204D01* X-17919Y54786D01* Y55414D01* X-18160Y55996D01* X-18604Y56440D01* X-19185Y56681D01* D02* G37* G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X32359Y55000D02* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* D02* G37* G36* X259Y44800D02* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-736Y42398D01* X-259Y42200D01* X259D01* X736Y42398D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X4614Y46681D02* X3985D01* X3404Y46440D01* X2960Y45996D01* X2719Y45415D01* Y44785D01* X2960Y44204D01* X3247Y43917D01* X3352Y43600D01* X3247Y43283D01* X2960Y42996D01* X2719Y42415D01* Y41785D01* X2960Y41204D01* X3247Y40917D01* X3352Y40600D01* X3247Y40283D01* X2960Y39996D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3404Y37760D01* X3985Y37519D01* X4614D01* X5196Y37760D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5640Y39996D01* X5353Y40283D01* X5248Y40600D01* X5353Y40917D01* X5640Y41204D01* X5881Y41785D01* Y42415D01* X5640Y42996D01* X5353Y43283D01* X5248Y43600D01* X5353Y43917D01* X5640Y44204D01* X5881Y44785D01* Y45415D01* X5640Y45996D01* X5196Y46440D01* X4614Y46681D01* D02* G37* G36* X-3886D02* X-4515D01* X-5096Y46440D01* X-5540Y45996D01* X-5781Y45415D01* Y44785D01* X-5540Y44204D01* X-5253Y43917D01* X-5148Y43600D01* X-5253Y43283D01* X-5540Y42996D01* X-5781Y42415D01* Y41785D01* X-5540Y41204D01* X-5253Y40917D01* X-5148Y40600D01* X-5253Y40283D01* X-5540Y39996D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-3886D01* X-3304Y37760D01* X-2860Y38204D01* X-2619Y38785D01* Y39415D01* X-2860Y39996D01* X-3147Y40283D01* X-3252Y40600D01* X-3147Y40917D01* X-2860Y41204D01* X-2619Y41785D01* Y42415D01* X-2860Y42996D01* X-3147Y43283D01* X-3252Y43600D01* X-3147Y43917D01* X-2860Y44204D01* X-2619Y44785D01* Y45415D01* X-2860Y45996D01* X-3304Y46440D01* X-3886Y46681D01* D02* G37* G36* X19614Y46281D02* X18985D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17960Y43804D01* X18247Y43517D01* X18352Y43200D01* X18247Y42883D01* X17960Y42596D01* X17719Y42015D01* Y41385D01* X17960Y40804D01* X18247Y40517D01* X18352Y40200D01* X18247Y39883D01* X17960Y39596D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18404Y37360D01* X18985Y37119D01* X19614D01* X20196Y37360D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20640Y39596D01* X20353Y39883D01* X20248Y40200D01* X20353Y40517D01* X20640Y40804D01* X20881Y41385D01* Y42015D01* X20640Y42596D01* X20353Y42883D01* X20248Y43200D01* X20353Y43517D01* X20640Y43804D01* X20881Y44385D01* Y45015D01* X20640Y45596D01* X20196Y46040D01* X19614Y46281D01* D02* G37* G36* X-19185Y45581D02* X-19815D01* X-20396Y45340D01* X-20840Y44896D01* X-21081Y44315D01* Y43685D01* X-20840Y43104D01* X-20553Y42817D01* X-20448Y42500D01* X-20553Y42183D01* X-20840Y41896D01* X-21081Y41315D01* Y40685D01* X-20840Y40104D01* X-20553Y39817D01* X-20448Y39500D01* X-20553Y39183D01* X-20840Y38896D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18160Y38896D01* X-18447Y39183D01* X-18552Y39500D01* X-18447Y39817D01* X-18160Y40104D01* X-17919Y40685D01* Y41315D01* X-18160Y41896D01* X-18447Y42183D01* X-18552Y42500D01* X-18447Y42817D01* X-18160Y43104D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* D02* G37* G36* X259Y38300D02* X-259D01* X-736Y38102D01* X-1102Y37736D01* X-1300Y37259D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37259D01* X1102Y37736D01* X736Y38102D01* X259Y38300D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32241D01* X-61002Y31764D01* X-60636Y31398D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X14759Y32300D02* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y30741D01* X13398Y30264D01* X13764Y29898D01* X14241Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* D02* G37* G36* X9759D02* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y30741D01* X8398Y30264D01* X8764Y29898D01* X9241Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* D02* G37* G36* X-9241D02* X-9759D01* X-10236Y32102D01* X-10602Y31736D01* X-10800Y31259D01* Y30741D01* X-10602Y30264D01* X-10236Y29898D01* X-9759Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-9241Y32300D01* D02* G37* G36* X-14241D02* X-14759D01* X-15236Y32102D01* X-15602Y31736D01* X-15800Y31259D01* Y30741D01* X-15602Y30264D01* X-15236Y29898D01* X-14759Y29700D01* X-14241D01* X-13764Y29898D01* X-13398Y30264D01* X-13200Y30741D01* Y31259D01* X-13398Y31736D01* X-13764Y32102D01* X-14241Y32300D01* D02* G37* G36* X-56341Y28200D02* X-56859D01* X-57336Y28002D01* X-57702Y27636D01* X-57900Y27159D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* D02* G37* G36* X11059Y8800D02* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X11059D01* X11536Y6398D01* X11902Y6764D01* X12100Y7241D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* D02* G37* G36* X-50141Y6100D02* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51136Y3698D01* X-50659Y3500D01* X-50141D01* X-49664Y3698D01* X-49298Y4064D01* X-49100Y4541D01* Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* D02* G37* G36* X-54041D02* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55036Y3698D01* X-54559Y3500D01* X-54041D01* X-53564Y3698D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* D02* G37* G36* X9000Y10000D02* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2241D01* X-11702Y1764D01* X-11336Y1398D01* X-10859Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X-56241Y2000D02* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57236Y-402D01* X-56759Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y959D01* X-55398Y1436D01* X-55764Y1802D01* X-56241Y2000D01* D02* G37* G36* X-52100Y1958D02* X-52617D01* X-53095Y1760D01* X-53460Y1395D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y917D01* X-51256Y1395D01* X-51622Y1760D01* X-52100Y1958D01* D02* G37* G36* X16059Y1600D02* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X16059D01* X16536Y-802D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* D02* G37* G36* X-66341Y-1200D02* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2241D01* X-65498Y-1764D01* X-65864Y-1398D01* X-66341Y-1200D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X29559Y-2800D02* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* D02* G37* G36* X-18041Y-2900D02* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4959D01* X71898Y-5436D01* X72264Y-5802D01* X72741Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X29559D02* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* D02* G37* G36* X-11141Y-6200D02* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7759D01* X-12502Y-8236D01* X-12136Y-8602D01* X-11659Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* D02* G37* G36* X-35041Y-7100D02* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36402Y-9136D01* X-36036Y-9502D01* X-35559Y-9700D01* X-35041D01* X-34564Y-9502D01* X-34198Y-9136D01* X-34000Y-8659D01* Y-8141D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* D02* G37* G36* X-42441Y-9300D02* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43436Y-11702D01* X-42959Y-11900D01* X-42441D01* X-41964Y-11702D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* D02* G37* G36* X-51641Y-9800D02* X-52159D01* X-52636Y-9998D01* X-53002Y-10364D01* X-53200Y-10841D01* Y-11359D01* X-53002Y-11836D01* X-52636Y-12202D01* X-52159Y-12400D01* X-51641D01* X-51164Y-12202D01* X-50798Y-11836D01* X-50600Y-11359D01* Y-10841D01* X-50798Y-10364D01* X-51164Y-9998D01* X-51641Y-9800D01* D02* G37* G36* X-31541Y-11000D02* X-32059D01* X-32536Y-11198D01* X-32902Y-11564D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30500Y-12559D01* Y-12041D01* X-30698Y-11564D01* X-31064Y-11198D01* X-31541Y-11000D01* D02* G37* G36* X-56041Y-11800D02* X-56559D01* X-57036Y-11998D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57036Y-14202D01* X-56559Y-14400D01* X-56041D01* X-55564Y-14202D01* X-55198Y-13836D01* X-55000Y-13359D01* Y-12841D01* X-55198Y-12364D01* X-55564Y-11998D01* X-56041Y-11800D01* D02* G37* G36* X18259Y-15000D02* X17741D01* X17264Y-15198D01* X16900Y-15562D01* X16536Y-15198D01* X16059Y-15000D01* X15541D01* X15064Y-15198D01* X14698Y-15564D01* X14500Y-16041D01* Y-16559D01* X14698Y-17036D01* X15064Y-17402D01* X15541Y-17600D01* X16059D01* X16536Y-17402D01* X16900Y-17039D01* X17264Y-17402D01* X17741Y-17600D01* X18259D01* X18415Y-17535D01* X18600Y-17659D01* X18798Y-18136D01* X19164Y-18502D01* X19641Y-18700D01* X20159D01* X20636Y-18502D01* X21002Y-18136D01* X21200Y-17659D01* Y-17141D01* X21002Y-16664D01* X20636Y-16298D01* X20159Y-16100D01* X19641D01* X19485Y-16165D01* X19300Y-16041D01* X19102Y-15564D01* X18736Y-15198D01* X18259Y-15000D01* D02* G37* G36* X-51141Y-13200D02* X-51659D01* X-52136Y-13398D01* X-52502Y-13764D01* X-52700Y-14241D01* Y-14759D01* X-52502Y-15236D01* X-52136Y-15602D01* X-51659Y-15800D01* X-51141D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14241D01* X-50298Y-13764D01* X-50664Y-13398D01* X-51141Y-13200D01* D02* G37* G36* X-55526Y-17716D02* X-56043D01* X-56521Y-17914D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56886Y-19752D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55526D01* X-55048Y-20118D01* X-54682Y-19752D01* X-54484Y-19274D01* Y-18757D01* X-54682Y-18279D01* X-55048Y-17914D01* X-55526Y-17716D01* D02* G37* G36* X-22241Y-18000D02* X-22759D01* X-23236Y-18198D01* X-23602Y-18564D01* X-23800Y-19041D01* Y-19559D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* D02* G37* G36* X22712Y-20200D02* X22195D01* X21717Y-20398D01* X21351Y-20764D01* X21251Y-21006D01* X20694Y-21153D01* X20691Y-21152D01* X20536Y-20998D01* X20059Y-20800D01* X19541D01* X19064Y-20998D01* X18698Y-21364D01* X18500Y-21841D01* Y-22359D01* X18698Y-22836D01* X19064Y-23202D01* X19541Y-23400D01* X20059D01* X20536Y-23202D01* X20902Y-22836D01* X21002Y-22594D01* X21560Y-22447D01* X21563Y-22448D01* X21717Y-22602D01* X22195Y-22800D01* X22712D01* X23190Y-22602D01* X23556Y-22236D01* X23753Y-21759D01* Y-21241D01* X23556Y-20764D01* X23190Y-20398D01* X22712Y-20200D01* D02* G37* G36* X28759Y-15100D02* X28241D01* X27764Y-15298D01* X27398Y-15664D01* X27200Y-16141D01* Y-16659D01* X27398Y-17136D01* X27485Y-17223D01* X27728Y-17550D01* X27485Y-17877D01* X27398Y-17964D01* X27200Y-18441D01* Y-18959D01* X27398Y-19436D01* X27590Y-19629D01* X27709Y-19950D01* X27590Y-20271D01* X27398Y-20464D01* X27200Y-20941D01* Y-21459D01* X27398Y-21936D01* X27764Y-22302D01* X28241Y-22500D01* X28759D01* X29236Y-22302D01* X29602Y-21936D01* X29800Y-21459D01* Y-20941D01* X29602Y-20464D01* X29410Y-20271D01* X29291Y-19950D01* X29410Y-19629D01* X29602Y-19436D01* X29800Y-18959D01* Y-18441D01* X29602Y-17964D01* X29515Y-17877D01* X29272Y-17550D01* X29515Y-17223D01* X29602Y-17136D01* X29800Y-16659D01* Y-16141D01* X29602Y-15664D01* X29236Y-15298D01* X28759Y-15100D01* D02* G37* G36* X-50741Y-20700D02* X-51259D01* X-51736Y-20898D01* X-52102Y-21264D01* X-52300Y-21741D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49700Y-22259D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* D02* G37* G36* X-51241Y-30300D02* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50398Y-32336D01* X-50200Y-31859D01* Y-31341D01* X-50398Y-30864D01* X-50764Y-30498D01* X-51241Y-30300D01* D02* G37* G36* X-11241Y-30600D02* X-11759D01* X-12236Y-30798D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-11759Y-33200D01* X-11241D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-11241Y-30600D01* D02* G37* G36* X-38341Y-30500D02* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41847Y-33294D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40289D01* X-39811Y-34655D01* X-39445Y-34289D01* X-39247Y-33811D01* Y-33480D01* X-38913Y-33153D01* X-38787Y-33100D01* X-38362D01* X-38339Y-33102D01* X-37900Y-33458D01* Y-33659D01* X-37702Y-34136D01* X-37336Y-34502D01* X-36859Y-34700D01* X-36341D01* X-35864Y-34502D01* X-35498Y-34136D01* X-35300Y-33659D01* Y-33141D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* D02* G37* G36* X-56741Y-35700D02* X-57259D01* X-57736Y-35898D01* X-58102Y-36264D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-36741D01* X-55898Y-36264D01* X-56264Y-35898D01* X-56741Y-35700D01* D02* G37* G36* X499Y-32240D02* X-18D01* X-496Y-32438D01* X-862Y-32804D01* X-1060Y-33282D01* Y-33799D01* X-862Y-34277D01* X-539Y-34599D01* X-501Y-34784D01* X-514Y-35176D01* X-802Y-35464D01* X-1000Y-35941D01* Y-36459D01* X-802Y-36936D01* X-610Y-37129D01* X-491Y-37450D01* X-610Y-37771D01* X-802Y-37964D01* X-1000Y-38441D01* Y-38959D01* X-802Y-39436D01* X-436Y-39802D01* X41Y-40000D01* X559D01* X1036Y-39802D01* X1402Y-39436D01* X1600Y-38959D01* Y-38441D01* X1402Y-37964D01* X1210Y-37771D01* X1091Y-37450D01* X1210Y-37129D01* X1402Y-36936D01* X1600Y-36459D01* Y-35941D01* X1402Y-35464D01* X1079Y-35141D01* X1041Y-34956D01* X1055Y-34564D01* X1342Y-34277D01* X1540Y-33799D01* Y-33282D01* X1342Y-32804D01* X977Y-32438D01* X499Y-32240D01* D02* G37* G36* X-58241Y-39700D02* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* D02* G37* G36* X-34362Y-39900D02* X-34879D01* X-35357Y-40098D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33884Y-40098D01* X-34362Y-39900D01* D02* G37* G36* X-61841Y-41300D02* X-62359D01* X-62836Y-41498D01* X-63202Y-41864D01* X-63400Y-42341D01* Y-42859D01* X-63202Y-43336D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* D02* G37* G36* X-39441Y-40300D02* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41859D01* X-40802Y-42336D01* X-40436Y-42702D01* X-39959Y-42900D01* X-39441D01* X-39291Y-42838D01* X-38908Y-43220D01* X-39000Y-43441D01* Y-43959D01* X-38802Y-44436D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37441D01* X-36964Y-44802D01* X-36598Y-44436D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* D02* G37* G36* X-71108Y-44434D02* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44038D01* X-12208Y-44392D01* X-12562Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45862D01* X-11092Y-45508D01* X-10738Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47759D01* X1398Y-48236D01* X1764Y-48602D01* X2241Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* G36* X29759Y-51000D02* X29241D01* X28764Y-51198D01* X28398Y-51564D01* X27863Y-51726D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28402Y-53636D01* X28937Y-53474D01* X29241Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74800Y-51741D01* Y-52259D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74602Y-54264D01* X-74800Y-54741D01* Y-55259D01* X-74602Y-55736D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* G36* X24259Y-56200D02* X23741D01* X23264Y-56398D01* X22898Y-56764D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57241D01* X25102Y-56764D01* X24736Y-56398D01* X24259Y-56200D01* D02* G37* G36* X2227Y-61200D02* X1710D01* X1232Y-61398D01* X866Y-61764D01* X668Y-62241D01* Y-62759D01* X866Y-63236D01* X1232Y-63602D01* X1710Y-63800D01* X2227D01* X2705Y-63602D01* X3071Y-63236D01* X3269Y-62759D01* Y-62241D01* X3071Y-61764D01* X2705Y-61398D01* X2227Y-61200D01* D02* G37* G36* X-13686Y-64419D02* X-14314D01* X-14896Y-64660D01* X-15183Y-64947D01* X-15500Y-65052D01* X-15817Y-64947D01* X-16104Y-64660D01* X-16686Y-64419D01* X-17314D01* X-17896Y-64660D01* X-18183Y-64947D01* X-18500Y-65052D01* X-18817Y-64947D01* X-19104Y-64660D01* X-19685Y-64419D01* X-20314D01* X-20896Y-64660D01* X-21340Y-65104D01* X-21581Y-65685D01* Y-66315D01* X-21340Y-66896D01* X-21053Y-67183D01* X-20948Y-67500D01* X-21053Y-67817D01* X-21340Y-68104D01* X-21581Y-68686D01* Y-69314D01* X-21340Y-69896D01* X-21053Y-70183D01* X-20948Y-70500D01* X-21053Y-70817D01* X-21340Y-71104D01* X-21581Y-71685D01* Y-72315D01* X-21340Y-72896D01* X-20896Y-73340D01* X-20314Y-73581D01* X-19685D01* X-19104Y-73340D01* X-18817Y-73053D01* X-18500Y-72948D01* X-18183Y-73053D01* X-17896Y-73340D01* X-17314Y-73581D01* X-16686D01* X-16104Y-73340D01* X-15817Y-73053D01* X-15500Y-72948D01* X-15183Y-73053D01* X-14896Y-73340D01* X-14314Y-73581D01* X-13686D01* X-13104Y-73340D01* X-12660Y-72896D01* X-12419Y-72315D01* Y-71685D01* X-12660Y-71104D01* X-12947Y-70817D01* X-13052Y-70500D01* X-12947Y-70183D01* X-12660Y-69896D01* X-12419Y-69314D01* Y-68686D01* X-12660Y-68104D01* X-12947Y-67817D01* X-13052Y-67500D01* X-12947Y-67183D01* X-12660Y-66896D01* X-12419Y-66315D01* Y-65685D01* X-12660Y-65104D01* X-13104Y-64660D01* X-13686Y-64419D01* D02* G37* G36* X46314Y-65419D02* X45685D01* X45104Y-65660D01* X44817Y-65947D01* X44500Y-66052D01* X44183Y-65947D01* X43896Y-65660D01* X43314Y-65419D01* X42685D01* X42104Y-65660D01* X41817Y-65947D01* X41500Y-66052D01* X41183Y-65947D01* X40896Y-65660D01* X40314Y-65419D01* X39685D01* X39104Y-65660D01* X38660Y-66104D01* X38419Y-66685D01* Y-67314D01* X38660Y-67896D01* X38947Y-68183D01* X39052Y-68500D01* X38947Y-68817D01* X38660Y-69104D01* X38419Y-69686D01* Y-70315D01* X38660Y-70896D01* X38947Y-71183D01* X39052Y-71500D01* X38947Y-71817D01* X38660Y-72104D01* X38419Y-72685D01* Y-73314D01* X38660Y-73896D01* X39104Y-74340D01* X39685Y-74581D01* X40314D01* X40896Y-74340D01* X41183Y-74053D01* X41500Y-73948D01* X41817Y-74053D01* X42104Y-74340D01* X42685Y-74581D01* X43314D01* X43896Y-74340D01* X44183Y-74053D01* X44500Y-73948D01* X44817Y-74053D01* X45104Y-74340D01* X45685Y-74581D01* X46314D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72685D01* X47340Y-72104D01* X47053Y-71817D01* X46948Y-71500D01* X47053Y-71183D01* X47340Y-70896D01* X47581Y-70315D01* Y-69686D01* X47340Y-69104D01* X47053Y-68817D01* X46948Y-68500D01* X47053Y-68183D01* X47340Y-67896D01* X47581Y-67314D01* Y-66685D01* X47340Y-66104D01* X46896Y-65660D01* X46314Y-65419D01* D02* G37* G36* X-1741Y-64200D02* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-898Y-64764D01* X-1264Y-64398D01* X-1741Y-64200D01* D02* G37* %LPD*% D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-28000Y-63000D02* D03* X-70800Y-3100D02* D03* X-67500Y100D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* D56* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GBL ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=4* G04 Layer_Color=6736896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% %ADD50C,0.02000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% %ADD57C,0.07000*% %ADD58C,0.00700*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% %ADD71C,0.02500*% %ADD72C,0.04500*% G36* X-61046Y80185D02* X-21882D01* X-21761Y79685D01* X-22261Y78936D01* X-22447Y78000D01* Y62000D01* X-22261Y61064D01* X-21730Y60270D01* X-20936Y59739D01* X-20756Y59703D01* X-20752Y59698D01* X-20663Y59683D01* X-20586Y59635D01* X-20310Y59592D01* X-20059Y59539D01* X-19821Y59475D01* X-19598Y59401D01* X-19388Y59315D01* X-19191Y59220D01* X-19007Y59114D01* X-18836Y58997D01* X-18677Y58871D01* X-18516Y58723D01* X-18495Y58714D01* X-17173Y57393D01* Y53433D01* X-17082Y52741D01* X-16815Y52097D01* X-16390Y51543D01* X-15979Y51227D01* X-16148Y50727D01* X-17000D01* X-17000Y50727D01* X-17546Y50619D01* X-18009Y50309D01* X-18769Y49550D01* X-22213D01* X-22225Y49555D01* X-22327Y49558D01* X-22401Y49564D01* X-22459Y49574D01* X-22498Y49584D01* X-22510Y49589D01* X-22566Y49672D01* X-22591Y49732D01* X-22612Y49741D01* X-22798Y50019D01* X-22784Y50090D01* X-22637Y50519D01* X-22185D01* X-21604Y50760D01* X-21546Y50818D01* X-21023D01* X-21022Y50817D01* X-20646Y50809D01* X-20481Y50796D01* X-20432Y50789D01* X-20424Y50788D01* X-20396Y50760D01* X-20268Y50707D01* X-20040Y50554D01* X-19500Y50447D01* X-18960Y50554D01* X-18732Y50707D01* X-18604Y50760D01* X-18507Y50857D01* X-18502Y50860D01* X-18499Y50865D01* X-18160Y51204D01* X-17919Y51785D01* Y51991D01* X-17818Y52500D01* X-17946Y53144D01* X-18089Y53358D01* Y54376D01* X-17919Y54786D01* Y54991D01* X-17818Y55500D01* X-17946Y56144D01* X-18310Y56690D01* X-18856Y57054D01* X-19500Y57182D01* X-21052D01* X-21083Y57183D01* X-21084Y57182D01* X-22500D01* X-23144Y57054D01* X-23690Y56690D01* X-24054Y56144D01* X-24182Y55500D01* Y52500D01* X-24081Y51991D01* Y51785D01* X-23840Y51204D01* X-23528Y50892D01* X-23770Y50434D01* X-23774Y50431D01* X-28228D01* X-28751Y50327D01* X-29195Y50030D01* X-29491Y49587D01* X-29595Y49063D01* Y47181D01* X-29491Y46658D01* X-29195Y46215D01* X-28751Y45918D01* X-28228Y45814D01* X-27566D01* X-27564Y45813D01* X-27310Y45812D01* X-26860Y45784D01* X-26677Y45759D01* X-26513Y45726D01* X-26371Y45686D01* X-26252Y45643D01* X-26157Y45596D01* X-26085Y45549D01* X-26006Y45482D01* X-25997Y45479D01* X-23509Y42991D01* X-23509Y42991D01* X-23046Y42681D01* X-22500Y42573D01* X-22500Y42573D01* X-20927D01* Y41686D01* X-21081Y41315D01* Y40685D01* X-20927Y40314D01* Y38686D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18073Y38686D01* Y40314D01* X-17919Y40685D01* Y41315D01* X-18073Y41686D01* Y43314D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* X-19815D01* X-20186Y45427D01* X-21909D01* X-22523Y46042D01* X-22552Y46244D01* X-22493Y46360D01* X-22312Y46582D01* X-22194Y46695D01* X-18178D01* X-18178Y46695D01* X-17631Y46804D01* X-17168Y47113D01* X-16409Y47873D01* X-11300D01* X-11300Y47873D01* X-10754Y47981D01* X-10291Y48291D01* X-9150Y49431D01* X-5627Y45909D01* Y45785D01* X-5781Y45415D01* Y44785D01* X-5627Y44414D01* Y42786D01* X-5781Y42415D01* Y41785D01* X-5627Y41414D01* Y39786D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-3886D01* X-3304Y37760D01* X-2860Y38204D01* X-2619Y38785D01* Y39415D01* X-2773Y39786D01* Y41414D01* X-2619Y41785D01* Y42415D01* X-2773Y42786D01* Y44414D01* X-2619Y44785D01* Y45415D01* X-2773Y45785D01* Y46500D01* X-2773Y46500D01* X-2881Y47046D01* X-3191Y47509D01* X-3191Y47509D01* X-7761Y52079D01* X-7765Y52091D01* X-7899Y52238D01* X-7998Y52370D01* X-8073Y52495D01* Y53433D01* X-8089Y53514D01* Y55008D01* X-8196Y55548D01* X-8502Y56006D01* X-8960Y56312D01* X-9500Y56419D01* X-10040Y56312D01* X-10498Y56006D01* X-10804Y55548D01* X-10911Y55008D01* Y53514D01* X-10927Y53433D01* Y51800D01* X-10927Y51800D01* X-10927Y51800D01* Y51691D01* X-11891Y50727D01* X-12852D01* X-13021Y51227D01* X-12610Y51543D01* X-12185Y52097D01* X-11918Y52741D01* X-11827Y53433D01* Y58500D01* X-11918Y59192D01* X-12185Y59836D01* X-12610Y60390D01* X-12856Y60636D01* X-12865Y60659D01* X-13337Y61152D01* X-13538Y61388D01* X-13600Y61470D01* X-13638Y61528D01* X-13644Y61541D01* X-13553Y62000D01* Y78000D01* X-13739Y78936D01* X-14239Y79685D01* X-14118Y80185D01* X-9882D01* X-9761Y79685D01* X-10261Y78936D01* X-10447Y78000D01* Y62000D01* X-10261Y61064D01* X-9730Y60270D01* X-9326Y60000D01* X-9309Y59957D01* X-9240Y59929D01* X-9190Y59873D01* X-9070Y59816D01* X-8988Y59763D01* X-8919Y59705D01* X-8861Y59641D01* X-8811Y59569D01* X-8768Y59486D01* X-8733Y59389D01* X-8706Y59276D01* X-8689Y59147D01* X-8683Y58982D01* X-8666Y58946D01* X-8582Y58308D01* X-8315Y57664D01* X-7890Y57110D01* X-7173Y56393D01* Y53433D01* X-7082Y52741D01* X-6815Y52097D01* X-6390Y51543D01* X-5836Y51118D01* X-5607Y51023D01* X-5498Y50860D01* X-5040Y50554D01* X-4500Y50447D01* X-3960Y50554D01* X-3502Y50860D01* X-3393Y51023D01* X-3164Y51118D01* X-2610Y51543D01* X-2185Y52097D01* X-1918Y52741D01* X-1827Y53433D01* Y57500D01* X-1918Y58192D01* X-2185Y58836D01* X-2610Y59390D01* X-2627Y59407D01* X-2688Y59562D01* X-2689Y59680D01* X-2577Y60064D01* X-2270Y60270D01* X-1739Y61064D01* X-1553Y62000D01* Y78000D01* X-1739Y78936D01* X-2239Y79685D01* X-2118Y80185D01* X2118D01* X2239Y79685D01* X1739Y78936D01* X1553Y78000D01* Y62000D01* X1739Y61064D01* X2270Y60270D01* X3064Y59739D01* X3244Y59703D01* X3248Y59698D01* X3339Y59682D01* X3418Y59635D01* X3801Y59578D01* X4490Y59437D01* X4783Y59356D01* X5052Y59266D01* X5293Y59170D01* X5505Y59067D01* X5688Y58959D01* X5843Y58848D01* X5990Y58717D01* X6010Y58710D01* X6827Y57893D01* Y53433D01* X6918Y52741D01* X7185Y52097D01* X7610Y51543D01* X8164Y51118D01* X8206Y51012D01* X7908Y50527D01* X6900D01* X6900Y50527D01* X6354Y50419D01* X5891Y50109D01* X5891Y50109D01* X3291Y47509D01* X2981Y47046D01* X2873Y46500D01* X2873Y46500D01* Y45785D01* X2719Y45415D01* Y44785D01* X2873Y44414D01* Y42786D01* X2719Y42415D01* Y41785D01* X2873Y41414D01* Y39786D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3404Y37760D01* X3985Y37519D01* X4614D01* X5196Y37760D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5727Y39786D01* Y41414D01* X5881Y41785D01* Y42415D01* X5727Y42786D01* Y44414D01* X5881Y44785D01* Y45415D01* X5727Y45785D01* Y45909D01* X7491Y47673D01* X12300D01* X12300Y47673D01* X12846Y47781D01* X13309Y48091D01* X14750Y49531D01* X17168Y47113D01* X17168Y47113D01* X17631Y46804D01* X18178Y46695D01* X18678D01* X18778Y46195D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17873Y44014D01* Y42386D01* X17719Y42015D01* Y41385D01* X17873Y41015D01* Y39386D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18146Y37618D01* X17939Y37118D01* X16880D01* X16649Y37349D01* X16351Y37548D01* X16000Y37618D01* X6800D01* X6449Y37548D01* X6151Y37349D01* X4467Y35665D01* X4431Y35650D01* X4327Y35548D01* X4285Y35510D01* X3960Y35446D01* X3502Y35140D01* X3196Y34682D01* X3089Y34142D01* Y30992D01* X3196Y30452D01* X3502Y29994D01* X3960Y29688D01* X4500Y29581D01* X5040Y29688D01* X5498Y29994D01* X5804Y30452D01* X5911Y30992D01* Y34142D01* X5854Y34431D01* X5871Y34451D01* X5902Y34483D01* X5917Y34519D01* X5931Y34533D01* X5957Y34551D01* X5958Y34561D01* X7180Y35782D01* X8564D01* X8715Y35282D01* X8502Y35140D01* X8196Y34682D01* X8089Y34142D01* Y30992D01* X8196Y30452D01* X8502Y29994D01* X8960Y29688D01* X9500Y29581D01* X10040Y29688D01* X10498Y29994D01* X10804Y30452D01* X10911Y30992D01* Y34142D01* X10804Y34682D01* X10498Y35140D01* X10284Y35282D01* X10436Y35782D01* X13564D01* X13715Y35282D01* X13502Y35140D01* X13196Y34682D01* X13089Y34142D01* Y30992D01* X13196Y30452D01* X13502Y29994D01* X13960Y29688D01* X14500Y29581D01* X15040Y29688D01* X15498Y29994D01* X15804Y30452D01* X15911Y30992D01* Y34142D01* X15804Y34682D01* X15622Y34954D01* X15746Y35471D01* X15791Y35532D01* X15835Y35546D01* X15882Y35530D01* X16149Y35352D01* X16500Y35282D01* X20520D01* X22082Y33720D01* Y28345D01* X22067Y28312D01* X22067Y28293D01* X22063Y28291D01* X22003Y28266D01* X21995Y28245D01* X21851Y28149D01* X21755Y28005D01* X21734Y27997D01* X21266Y27997D01* X21245Y28005D01* X21149Y28149D01* X20851Y28348D01* X20500Y28418D01* X19500D01* X19149Y28348D01* X18851Y28149D01* X18652Y27851D01* X18582Y27500D01* Y26500D01* X18652Y26149D01* X18851Y25851D01* X19149Y25652D01* X19500Y25582D01* X20500D01* X20851Y25652D01* X21149Y25851D01* X21245Y25995D01* X21266Y26003D01* X21734Y26003D01* X21755Y25995D01* X21851Y25851D01* X22149Y25652D01* X22500Y25582D01* X23500D01* X23851Y25652D01* X24149Y25851D01* X24348Y26149D01* X24418Y26500D01* Y27500D01* X24348Y27851D01* X24149Y28149D01* X24005Y28245D01* X23997Y28266D01* X23937Y28291D01* X23933Y28293D01* X23933Y28312D01* X23918Y28345D01* Y34100D01* X23848Y34451D01* X23649Y34749D01* X21549Y36849D01* X21251Y37048D01* X20900Y37118D01* X20661D01* X20454Y37618D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20727Y39386D01* Y41015D01* X20881Y41385D01* Y42015D01* X20727Y42386D01* Y43273D01* X21400D01* X21400Y43273D01* X21946Y43381D01* X22409Y43691D01* X24208Y45489D01* X24220Y45494D01* X24426Y45687D01* X24585Y45814D01* X25778D01* X25779Y45814D01* X25781Y45814D01* X28228D01* X28751Y45918D01* X29195Y46215D01* X29491Y46658D01* X29595Y47181D01* Y49063D01* X29491Y49587D01* X29195Y50030D01* X28751Y50327D01* X28228Y50431D01* X23772D01* X23249Y50327D01* X22805Y50030D01* X22612Y49741D01* X22591Y49732D01* X22566Y49672D01* X22510Y49589D01* X22498Y49584D01* X22459Y49574D01* X22401Y49564D01* X22327Y49558D01* X22225Y49555D01* X22213Y49550D01* X18769D01* X16239Y52079D01* X16235Y52091D01* X16101Y52238D01* X16002Y52370D01* X15927Y52495D01* Y53433D01* X15911Y53514D01* Y55008D01* X15804Y55548D01* X15498Y56006D01* X15040Y56312D01* X14500Y56419D01* X13960Y56312D01* X13502Y56006D01* X13196Y55548D01* X13089Y55008D01* Y53514D01* X13073Y53433D01* Y51891D01* X11709Y50527D01* X11091D01* X10795Y51012D01* X10836Y51118D01* X11390Y51543D01* X11815Y52097D01* X12082Y52741D01* X12173Y53433D01* Y59000D01* X12082Y59692D01* X11815Y60336D01* X11390Y60890D01* X11234Y61046D01* X11223Y61071D01* X10893Y61390D01* X10887Y61393D01* X10881Y61400D01* X10878Y61404D01* X10858Y61422D01* X10419Y61861D01* X10447Y62000D01* Y78000D01* X10261Y78936D01* X9761Y79685D01* X9882Y80185D01* X14118D01* X14239Y79685D01* X13739Y78936D01* X13553Y78000D01* Y62000D01* X13739Y61064D01* X14270Y60270D01* X15064Y59739D01* X15329Y59686D01* X15410Y59636D01* X15729Y59583D01* X15993Y59517D01* X16215Y59438D01* X16395Y59349D01* X16535Y59254D01* X16640Y59154D01* X16716Y59049D01* X16770Y58935D01* X16804Y58802D01* X16818Y58611D01* X16827Y58594D01* Y53433D01* X16918Y52741D01* X17185Y52097D01* X17610Y51543D01* X18164Y51118D01* X18393Y51023D01* X18502Y50860D01* X18960Y50554D01* X19500Y50447D01* X20040Y50554D01* X20498Y50860D01* X20607Y51023D01* X20836Y51118D01* X21390Y51543D01* X21815Y52097D01* X22082Y52741D01* X22173Y53433D01* Y58621D01* X22183Y58645D01* X22181Y58649D01* X22183Y58652D01* X22173Y59240D01* Y60500D01* X22125Y60861D01* X22261Y61064D01* X22447Y62000D01* Y78000D01* X22261Y78936D01* X21761Y79685D01* X21882Y80185D01* X60550D01* X60553Y80185D01* X61046Y80185D01* X61531Y80148D01* X62751Y80052D01* X64413Y79653D01* X65992Y78999D01* X67205Y78256D01* X67605Y77962D01* X67605Y77962D01* X67605Y77962D01* X70086Y76006D01* X73162Y73162D01* X76006Y70086D01* X77962Y67605D01* X77962Y67605D01* X77962Y67605D01* X78256Y67204D01* X78999Y65992D01* X79653Y64413D01* X80052Y62751D01* X80148Y61531D01* X80185Y61046D01* X80255Y60695D01* X80317Y60601D01* X80396Y60483D01* Y-60483D01* X80255Y-60695D01* X80185Y-61046D01* X80148Y-61531D01* X80052Y-62751D01* X79653Y-64413D01* X78999Y-65992D01* X78256Y-67205D01* X77962Y-67605D01* X77962Y-67605D01* X77962Y-67605D01* X76006Y-70086D01* X73162Y-73162D01* X70086Y-76006D01* X67605Y-77962D01* X67605Y-77962D01* X67605Y-77962D01* X67204Y-78256D01* X65992Y-78999D01* X64413Y-79653D01* X62751Y-80052D01* X61554Y-80146D01* X61258Y-80087D01* X-60835D01* X-61186Y-80157D01* X-61210Y-80173D01* X-62751Y-80052D01* X-64413Y-79653D01* X-65992Y-78999D01* X-67204Y-78256D01* X-67605Y-77962D01* X-67605Y-77962D01* X-67605Y-77962D01* X-70086Y-76006D01* X-73162Y-73162D01* X-76006Y-70086D01* X-77962Y-67605D01* X-77962Y-67605D01* X-77962Y-67605D01* X-78256Y-67204D01* X-78999Y-65992D01* X-79653Y-64413D01* X-80052Y-62751D01* X-80153Y-61465D01* X-80043Y-61300D01* X-79973Y-60949D01* Y-54406D01* X-79615Y-54277D01* X-79473Y-54265D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78141D01* X-77664Y-54602D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* X-78659D01* X-79136Y-52398D01* X-79473Y-52735D01* X-79615Y-52723D01* X-79973Y-52594D01* Y61144D01* X-80043Y61495D01* X-80139Y61639D01* X-80052Y62751D01* X-79653Y64413D01* X-78999Y65992D01* X-78256Y67205D01* X-77962Y67605D01* X-77961Y67605D01* X-77962Y67605D01* X-76006Y70086D01* X-73162Y73162D01* X-70086Y76006D01* X-67605Y77962D01* X-67605Y77962D01* X-67605Y77962D01* X-67204Y78256D01* X-65992Y78999D01* X-64413Y79653D01* X-62751Y80052D01* X-61051Y80186D01* X-61046Y80185D01* D02* G37* G36* X10058Y61495D02* X10132Y61455D01* X10222Y61394D01* X10329Y61311D01* X10592Y61079D01* X10922Y60760D01* X6278Y59040D01* X6114Y59186D01* X5925Y59323D01* X5709Y59449D01* X5468Y59566D01* X5202Y59673D01* X4909Y59770D01* X4591Y59858D01* X3877Y60005D01* X3481Y60063D01* X9937Y61481D01* X9961Y61507D01* X10001Y61512D01* X10058Y61495D01* D02* G37* G36* X-14067Y61440D02* X-14050Y61383D01* X-14013Y61310D01* X-13955Y61222D01* X-13876Y61117D01* X-13658Y60861D01* X-13178Y60360D01* X-18222Y59040D01* X-18395Y59200D01* X-18580Y59347D01* X-18777Y59481D01* X-18988Y59602D01* X-19211Y59711D01* X-19447Y59807D01* X-19696Y59890D01* X-19958Y59961D01* X-20232Y60018D01* X-20519Y60063D01* X-14063Y61481D01* X-14067Y61440D01* D02* G37* G36* X-3140Y60195D02* X-3268Y60113D01* X-3381Y60019D01* X-3479Y59912D01* X-3562Y59792D01* X-3630Y59659D01* X-3682Y59513D01* X-3720Y59355D01* X-3743Y59184D01* X-3750Y59000D01* X-8250D01* X-8258Y59184D01* X-8280Y59355D01* X-8318Y59513D01* X-8370Y59659D01* X-8438Y59792D01* X-8521Y59912D01* X-8619Y60019D01* X-8732Y60113D01* X-8860Y60195D01* X-9003Y60264D01* X-2997D01* X-3140Y60195D01* D02* G37* G36* X21537Y60586D02* X21587Y60515D01* X21630Y60395D01* X21667Y60225D01* X21697Y60007D01* X21737Y59424D01* X21750Y58645D01* X17250D01* X17232Y58872D01* X17179Y59081D01* X17091Y59270D01* X16967Y59441D01* X16808Y59592D01* X16613Y59724D01* X16383Y59838D01* X16118Y59932D01* X15817Y60007D01* X15481Y60063D01* X21418Y60582D01* X21481Y60609D01* X21537Y60586D01* D02* G37* G36* X-20638Y56742D02* X-19953Y56676D01* X-19722Y56618D01* X-19564Y56543D01* X-19480Y56453D01* X-19469Y56345D01* X-19532Y56221D01* X-19669Y56081D01* X-19879Y55924D01* X-20372Y53522D01* X-20201Y51157D01* X-20220Y51175D01* X-20253Y51191D01* X-20300Y51205D01* X-20361Y51217D01* X-20435Y51227D01* X-20625Y51242D01* X-21013Y51250D01* X-21241Y53750D01* X-21080Y53763D01* X-20985Y53788D01* X-20983Y54222D01* X-21050Y54238D01* X-21241Y54250D01* X-21091Y56750D01* X-20638Y56742D01* D02* G37* G36* X15418Y53432D02* X15380Y53232D01* X15365Y53036D01* X15373Y52846D01* X15405Y52659D01* X15461Y52478D01* X15539Y52301D01* X15641Y52129D01* X15767Y51961D01* X15916Y51799D01* X14883Y50003D01* X14738Y50152D01* X14519Y50410D01* X14445Y50517D01* X14395Y50611D01* X14369Y50690D01* X14366Y50756D01* X14387Y50807D01* X14432Y50844D01* X14500Y50867D01* X15479Y53637D01* X15418Y53432D01* D02* G37* G36* X-8582D02* X-8620Y53232D01* X-8635Y53036D01* X-8627Y52846D01* X-8595Y52659D01* X-8539Y52478D01* X-8461Y52301D01* X-8359Y52129D01* X-8233Y51961D01* X-8084Y51799D01* X-9117Y50003D01* X-9262Y50152D01* X-9481Y50410D01* X-9555Y50517D01* X-9605Y50611D01* X-9631Y50690D01* X-9634Y50756D01* X-9613Y50807D01* X-9568Y50844D01* X-9500Y50867D01* X-8521Y53637D01* X-8582Y53432D01* D02* G37* G36* X-22880Y49368D02* X-22851Y49317D01* X-22812Y49271D01* X-22762Y49232D01* X-22702Y49198D01* X-22630Y49171D01* X-22548Y49150D01* X-22455Y49134D01* X-22351Y49125D01* X-22237Y49122D01* Y47122D01* X-22351Y47119D01* X-22455Y47110D01* X-22548Y47095D01* X-22630Y47074D01* X-22702Y47047D01* X-22762Y47013D01* X-22812Y46974D01* X-22851Y46928D01* X-22880Y46876D01* X-22897Y46819D01* Y49426D01* X-22880Y49368D01* D02* G37* G36* X22897Y48898D02* X25763Y46246D01* X25613Y46363D01* X25456Y46444D01* X25291Y46490D01* X25119Y46500D01* X24939Y46474D01* X24751Y46413D01* X24556Y46315D01* X24353Y46183D01* X24142Y46014D01* X23924Y45810D01* X22401Y47115D01* X22401Y47115D01* X22351Y47119D01* X22237Y47122D01* Y49122D01* X22351Y49125D01* X22455Y49134D01* X22548Y49150D01* X22630Y49171D01* X22702Y49198D01* X22762Y49232D01* X22812Y49271D01* X22851Y49317D01* X22880Y49368D01* X22897Y49426D01* Y48898D01* D02* G37* G36* X-23403Y46303D02* X-23389Y46292D01* X-23366Y46272D01* X-22975Y45889D01* X-25724Y45810D01* X-25825Y45896D01* X-25944Y45973D01* X-26081Y46041D01* X-26237Y46099D01* X-26412Y46147D01* X-26605Y46186D01* X-26817Y46215D01* X-27295Y46245D01* X-27563Y46246D01* X-23410Y46306D01* X-23403Y46303D01* D02* G37* G36* X5593Y34786D02* X5553Y34745D01* X5463Y34642D01* X5443Y34613D01* X5427Y34589D01* X5417Y34567D01* X5412Y34549D01* X5411Y34533D01* X5416Y34521D01* X4500Y35133D01* X4506Y35134D01* X4516Y35140D01* X4530Y35150D01* X4548Y35164D01* X4624Y35233D01* X4734Y35341D01* X5593Y34786D01* D02* G37* G36* X23502Y28240D02* X23508Y28188D01* X23517Y28141D01* X23530Y28100D01* X23548Y28063D01* X23569Y28032D01* X23593Y28006D01* X23622Y27985D01* X23654Y27970D01* X23690Y27960D01* X22310D01* X22346Y27970D01* X22378Y27985D01* X22407Y28006D01* X22432Y28032D01* X22452Y28063D01* X22469Y28100D01* X22483Y28141D01* X22492Y28188D01* X22498Y28240D01* X22500Y28298D01* X23500D01* X23502Y28240D01* D02* G37* G36* X22040Y26310D02* X22030Y26346D01* X22015Y26378D01* X21994Y26407D01* X21968Y26432D01* X21937Y26452D01* X21901Y26469D01* X21859Y26483D01* X21812Y26492D01* X21760Y26498D01* X21702Y26500D01* Y27500D01* X21760Y27502D01* X21812Y27508D01* X21859Y27517D01* X21901Y27531D01* X21937Y27548D01* X21968Y27569D01* X21994Y27593D01* X22015Y27622D01* X22030Y27654D01* X22040Y27690D01* Y26310D01* D02* G37* G36* X20970Y27654D02* X20985Y27622D01* X21006Y27593D01* X21032Y27569D01* X21063Y27548D01* X21100Y27531D01* X21141Y27517D01* X21188Y27508D01* X21240Y27502D01* X21298Y27500D01* Y26500D01* X21240Y26498D01* X21188Y26492D01* X21141Y26483D01* X21100Y26469D01* X21063Y26452D01* X21032Y26432D01* X21006Y26407D01* X20985Y26378D01* X20970Y26346D01* X20960Y26310D01* Y27690D01* X20970Y27654D01* D02* G37* %LPC*% G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X32359Y55000D02* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* D02* G37* G36* X2780Y56783D02* X2779Y56782D01* X1500D01* X856Y56654D01* X310Y56290D01* X-54Y55744D01* X-182Y55100D01* Y52100D01* X-54Y51456D01* X310Y50910D01* X856Y50546D01* X1500Y50418D01* X2757D01* X2759Y50417D01* X2760Y50418D01* X2770D01* X2771Y50417D01* X2787Y50418D01* X4500D01* X5144Y50546D01* X5690Y50910D01* X6054Y51456D01* X6182Y52100D01* X6054Y52744D01* X5911Y52958D01* Y54242D01* X6054Y54456D01* X6182Y55100D01* X6054Y55744D01* X5690Y56290D01* X5144Y56654D01* X4500Y56782D01* X2834D01* X2782Y56783D01* X2781Y56783D01* X2780Y56783D01* D02* G37* G36* X500Y46418D02* X-500D01* X-851Y46348D01* X-1149Y46149D01* X-1348Y45851D01* X-1418Y45500D01* Y44500D01* X-1348Y44149D01* X-1218Y43955D01* X-1300Y43759D01* Y43241D01* X-1218Y43045D01* X-1348Y42851D01* X-1418Y42500D01* Y41500D01* X-1348Y41149D01* X-1149Y40851D01* X-851Y40652D01* X-500Y40582D01* X500D01* X851Y40652D01* X1149Y40851D01* X1348Y41149D01* X1418Y41500D01* Y42500D01* X1348Y42851D01* X1218Y43045D01* X1300Y43241D01* Y43759D01* X1218Y43955D01* X1348Y44149D01* X1418Y44500D01* Y45500D01* X1348Y45851D01* X1149Y46149D01* X851Y46348D01* X500Y46418D01* D02* G37* G36* Y39418D02* X-500D01* X-851Y39348D01* X-1149Y39149D01* X-1348Y38851D01* X-1418Y38500D01* Y37500D01* X-1348Y37149D01* X-1300Y37077D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37077D01* X1348Y37149D01* X1418Y37500D01* Y38500D01* X1348Y38851D01* X1149Y39149D01* X851Y39348D01* X500Y39418D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32241D01* X-61002Y31764D01* X-60636Y31398D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X-7800Y37518D02* X-16400D01* X-16751Y37448D01* X-17049Y37249D01* X-18537Y35760D01* X-18916Y35439D01* X-18956Y35443D01* X-18960Y35446D01* X-19500Y35553D01* X-20040Y35446D01* X-20498Y35140D01* X-20804Y34682D01* X-20911Y34142D01* Y30992D01* X-20804Y30452D01* X-20498Y29994D01* X-20040Y29688D01* X-19500Y29581D01* X-18960Y29688D01* X-18502Y29994D01* X-18196Y30452D01* X-18089Y30992D01* Y33561D01* X-18068Y33596D01* X-18034Y33642D01* X-17977Y33705D01* X-17965Y33738D01* X-16053Y35649D01* X-15679Y35605D01* X-15548Y35269D01* X-15508Y35124D01* X-15804Y34682D01* X-15911Y34142D01* Y30992D01* X-15804Y30452D01* X-15498Y29994D01* X-15040Y29688D01* X-14500Y29581D01* X-13960Y29688D01* X-13502Y29994D01* X-13196Y30452D01* X-13089Y30992D01* Y34142D01* X-13196Y34682D01* X-13502Y35140D01* X-13566Y35182D01* X-13414Y35682D01* X-10586D01* X-10434Y35182D01* X-10498Y35140D01* X-10804Y34682D01* X-10911Y34142D01* Y30992D01* X-10804Y30452D01* X-10498Y29994D01* X-10040Y29688D01* X-9500Y29581D01* X-8960Y29688D01* X-8502Y29994D01* X-8418Y30120D01* X-7918Y29969D01* Y29380D01* X-8759Y28538D01* X-8794Y28526D01* X-8894Y28431D01* X-8911Y28418D01* X-9414D01* X-9417Y28418D01* X-9419Y28418D01* X-9500D01* X-9851Y28348D01* X-10149Y28149D01* X-10348Y27851D01* X-10418Y27500D01* Y26500D01* X-10348Y26149D01* X-10149Y25851D01* X-9851Y25652D01* X-9500Y25582D01* X-8500D01* X-8149Y25652D01* X-7851Y25851D01* X-7755Y25995D01* X-7753Y25996D01* X-7593Y26003D01* X-7266Y26003D01* X-7245Y25995D01* X-7149Y25851D01* X-6851Y25652D01* X-6500Y25582D01* X-5500D01* X-5149Y25652D01* X-4851Y25851D01* X-4652Y26149D01* X-4582Y26500D01* Y27500D01* X-4652Y27851D01* X-4851Y28149D01* X-5149Y28348D01* X-5500Y28418D01* X-5751D01* X-6099Y28918D01* X-6082Y29000D01* Y35800D01* X-6152Y36151D01* X-6351Y36449D01* X-7151Y37249D01* X-7449Y37448D01* X-7800Y37518D01* D02* G37* G36* X16500Y28418D02* X15500D01* X15149Y28348D01* X14851Y28149D01* X14755Y28005D01* X14734Y27997D01* X14266Y27997D01* X14245Y28005D01* X14149Y28149D01* X13851Y28348D01* X13500Y28418D01* X12500D01* X12149Y28348D01* X11851Y28149D01* X11652Y27851D01* X11582Y27500D01* Y26500D01* X11652Y26149D01* X11851Y25851D01* X11869Y25667D01* X11120Y24918D01* X7780D01* X7328Y25370D01* X7149Y25851D01* X7348Y26149D01* X7418Y26500D01* Y27500D01* X7348Y27851D01* X7149Y28149D01* X6851Y28348D01* X6500Y28418D01* X5500D01* X5149Y28348D01* X4851Y28149D01* X4652Y27851D01* X4582Y27500D01* Y26500D01* X4652Y26149D01* X4851Y25851D01* X4995Y25755D01* X5003Y25734D01* X5063Y25709D01* X5067Y25707D01* X5067Y25688D01* X5082Y25655D01* Y25400D01* X5152Y25049D01* X5351Y24751D01* X6751Y23351D01* X7049Y23152D01* X7400Y23082D01* X11500D01* X11851Y23152D01* X12149Y23351D01* X13649Y24851D01* X13848Y25149D01* X13918Y25500D01* Y25655D01* X13933Y25688D01* X13933Y25707D01* X13937Y25709D01* X13997Y25734D01* X14005Y25755D01* X14149Y25851D01* X14245Y25995D01* X14266Y26003D01* X14734Y26003D01* X14755Y25995D01* X14851Y25851D01* X15149Y25652D01* X15500Y25582D01* X16500D01* X16851Y25652D01* X17149Y25851D01* X17348Y26149D01* X17418Y26500D01* Y27500D01* X17348Y27851D01* X17149Y28149D01* X16851Y28348D01* X16500Y28418D01* D02* G37* G36* X-56341Y28200D02* X-56859D01* X-57336Y28002D01* X-57702Y27636D01* X-57900Y27159D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* D02* G37* G36* X-12500Y28418D02* X-13500D01* X-13851Y28348D01* X-14149Y28149D01* X-14348Y27851D01* X-14418Y27500D01* Y26500D01* X-14348Y26149D01* X-14149Y25851D01* X-14177Y25354D01* X-14206Y25292D01* X-14207Y25291D01* X-14580Y24918D01* X-18320D01* X-18738Y25335D01* X-18851Y25851D01* X-18652Y26149D01* X-18582Y26500D01* Y27500D01* X-18652Y27851D01* X-18851Y28149D01* X-19149Y28348D01* X-19500Y28418D01* X-20500D01* X-20851Y28348D01* X-21149Y28149D01* X-21245Y28005D01* X-21266Y27997D01* X-21734Y27997D01* X-21755Y28005D01* X-21851Y28149D01* X-22149Y28348D01* X-22500Y28418D01* X-23500D01* X-23851Y28348D01* X-24149Y28149D01* X-24348Y27851D01* X-24418Y27500D01* Y26500D01* X-24348Y26149D01* X-24149Y25851D01* X-23851Y25652D01* X-23500Y25582D01* X-22500D01* X-22149Y25652D01* X-21851Y25851D01* X-21755Y25995D01* X-21734Y26003D01* X-21273Y26003D01* X-21205Y25935D01* X-21149Y25851D01* X-21065Y25795D01* X-20918Y25648D01* Y25300D01* X-20848Y24949D01* X-20649Y24651D01* X-19349Y23351D01* X-19051Y23152D01* X-18700Y23082D01* X-14200D01* X-13849Y23152D01* X-13551Y23351D01* X-12351Y24551D01* X-12152Y24849D01* X-12082Y25200D01* Y25655D01* X-12067Y25688D01* X-12067Y25707D01* X-12063Y25709D01* X-12003Y25734D01* X-11995Y25755D01* X-11851Y25851D01* X-11652Y26149D01* X-11582Y26500D01* Y27500D01* X-11652Y27851D01* X-11851Y28149D01* X-12149Y28348D01* X-12500Y28418D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-59034Y39327D01* X-58958Y39357D01* X-58904Y39409D01* X-58860Y39445D01* X-58817Y39476D01* X-58775Y39501D01* X-58734Y39521D01* X-58692Y39538D01* X-58650Y39550D01* X-58606Y39559D01* X-58560Y39565D01* X-58494Y39567D01* X-58453Y39586D01* X-54796D01* X-48614Y33404D01* Y5092D01* X-49100Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51365Y3926D01* X-51335Y3850D01* X-51294Y3808D01* X-51270Y3778D01* X-51249Y3746D01* X-51230Y3712D01* X-51214Y3676D01* X-51200Y3636D01* X-51189Y3591D01* X-51180Y3542D01* X-51175Y3487D01* X-51173Y3413D01* X-51154Y3373D01* Y2000D01* X-51622Y1760D01* X-52100Y1958D01* X-52617D01* X-53035Y1785D01* X-53300Y1884D01* X-53535Y2027D01* Y3377D01* X-53517Y3417D01* X-53515Y3491D01* X-53509Y3546D01* X-53501Y3596D01* X-53490Y3642D01* X-53476Y3683D01* X-53460Y3720D01* X-53441Y3754D01* X-53420Y3787D01* X-53395Y3818D01* X-53354Y3861D01* X-53326Y3935D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55274Y3935D01* X-55246Y3861D01* X-55205Y3818D01* X-55181Y3787D01* X-55159Y3754D01* X-55141Y3720D01* X-55124Y3683D01* X-55111Y3642D01* X-55099Y3596D01* X-55090Y3546D01* X-55085Y3491D01* X-55083Y3417D01* X-55065Y3377D01* Y1810D01* X-55565Y1603D01* X-55764Y1802D01* X-56241Y2000D01* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57474Y-165D01* X-57446Y-239D01* X-57405Y-282D01* X-57380Y-313D01* X-57359Y-346D01* X-57341Y-380D01* X-57324Y-417D01* X-57310Y-458D01* X-57299Y-504D01* X-57291Y-554D01* X-57285Y-609D01* X-57283Y-683D01* X-57265Y-723D01* Y-7283D01* X-58073Y-8091D01* X-58112Y-8106D01* X-58153Y-8143D01* X-58167Y-8154D01* X-62100D01* X-62490Y-8231D01* X-62551Y-8272D01* X-63051Y-8004D01* Y-4300D01* X-63241Y-3841D01* X-64073Y-3008D01* X-64069Y-3000D01* X-64082Y-2969D01* Y-2000D01* X-64152Y-1649D01* X-64351Y-1351D01* X-64649Y-1152D01* X-65000Y-1082D01* X-66000D01* X-66351Y-1152D01* X-66423Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66423D01* X-66351Y-3848D01* X-66000Y-3918D01* X-65031D01* X-65000Y-3931D01* X-64991Y-3927D01* X-64349Y-4569D01* Y-10200D01* X-64159Y-10659D01* X-63218Y-11601D01* X-62911Y-11728D01* X-62855Y-11811D01* X-62821Y-11924D01* Y-12389D01* X-63042Y-12720D01* X-63120Y-13110D01* X-63080Y-13308D01* X-63318Y-13791D01* X-63395Y-13872D01* X-63594Y-13909D01* X-63978Y-13524D01* X-63992Y-13489D01* X-64059Y-13419D01* X-64082Y-13391D01* Y-12500D01* X-64152Y-12149D01* X-64351Y-11851D01* X-64649Y-11652D01* X-65000Y-11582D01* X-66000D01* X-66351Y-11652D01* X-66649Y-11851D01* X-66848Y-12149D01* X-66918Y-12500D01* Y-13500D01* X-66848Y-13851D01* X-66649Y-14149D01* X-66351Y-14348D01* X-66200Y-14378D01* X-66194Y-14385D01* X-66150Y-14388D01* X-66070Y-14404D01* X-66010Y-14430D01* X-65925Y-14432D01* X-65857Y-14437D01* X-65798Y-14445D01* X-65747Y-14454D01* X-65705Y-14465D01* X-65671Y-14477D01* X-65645Y-14489D01* X-65626Y-14499D01* X-65613Y-14509D01* X-65586Y-14533D01* X-65554Y-14544D01* X-64370Y-15728D01* X-64072Y-15927D01* X-63721Y-15996D01* X-62527D01* X-62490Y-16021D01* X-62100Y-16098D01* X-57900D01* X-57510Y-16021D01* X-57473Y-15996D01* X-55059D01* X-53418Y-17638D01* Y-20697D01* X-53431Y-20741D01* X-53418Y-20766D01* Y-28220D01* X-54976Y-29778D01* X-55174Y-30076D01* X-55244Y-30427D01* Y-33577D01* X-55501Y-33739D01* X-55744Y-33807D01* X-55976Y-33652D01* X-56327Y-33582D01* X-60494D01* X-60769Y-33179D01* X-60785Y-33103D01* X-60716Y-32840D01* X-59852Y-31977D01* X-59822Y-31967D01* X-59795Y-31943D01* X-59782Y-31935D01* X-59756Y-31922D01* X-59715Y-31907D01* X-59659Y-31891D01* X-59590Y-31877D01* X-59512Y-31865D01* X-59300Y-31849D01* X-59178Y-31847D01* X-59176Y-31846D01* X-57900D01* X-57510Y-31769D01* X-57179Y-31548D01* X-56958Y-31217D01* X-56880Y-30827D01* X-56958Y-30437D01* X-57179Y-30106D01* Y-29579D01* X-56958Y-29248D01* X-56880Y-28858D01* X-56958Y-28468D01* X-57179Y-28137D01* Y-27611D01* X-56958Y-27280D01* X-56880Y-26890D01* X-56958Y-26500D01* X-57179Y-26169D01* Y-25642D01* X-56958Y-25311D01* X-56880Y-24921D01* X-56958Y-24531D01* X-57179Y-24200D01* Y-23674D01* X-56958Y-23343D01* X-56880Y-22953D01* X-56958Y-22563D01* X-57179Y-22232D01* Y-21705D01* X-56958Y-21374D01* X-56880Y-20984D01* X-56958Y-20594D01* X-56989Y-20549D01* X-56764Y-20007D01* X-56679Y-19976D01* X-56652Y-19986D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55526D01* X-55048Y-20118D01* X-54682Y-19752D01* X-54484Y-19274D01* Y-18757D01* X-54682Y-18279D01* X-55048Y-17914D01* X-55526Y-17716D01* X-56043D01* X-56521Y-17914D01* X-56652Y-18045D01* X-56730Y-18076D01* X-56789Y-18109D01* X-57179Y-18295D01* X-57510Y-18074D01* X-57900Y-17996D01* X-62100D01* X-62490Y-18074D01* X-62821Y-18295D01* X-63042Y-18626D01* X-63080Y-18815D01* X-63592Y-19011D01* X-64106Y-18496D01* X-64119Y-18462D01* X-64209Y-18366D01* X-64227Y-18343D01* Y-17811D01* X-64227Y-17811D01* X-64227Y-17811D01* Y-17718D01* X-64300Y-17351D01* X-64508Y-17040D01* X-64820Y-16832D01* X-65187Y-16759D01* X-69813D01* X-70180Y-16832D01* X-70492Y-17040D01* X-70700Y-17351D01* X-70773Y-17718D01* Y-18801D01* X-70700Y-19168D01* X-70492Y-19480D01* X-70180Y-19688D01* X-69813Y-19761D01* X-65987D01* X-65985Y-19762D01* X-65983Y-19761D01* X-65946D01* X-65946Y-19761D01* X-65946Y-19761D01* X-65467D01* X-65455Y-19770D01* X-65351Y-19868D01* X-65331Y-19876D01* X-65320Y-19895D01* X-65297Y-19901D01* X-63565Y-21633D01* X-63381Y-21756D01* X-63310Y-22189D01* X-63327Y-22330D01* X-65140Y-24142D01* X-65176Y-24156D01* X-65209Y-24189D01* X-65265Y-24237D01* X-65267Y-24239D01* X-69813D01* X-70180Y-24312D01* X-70492Y-24520D01* X-70700Y-24832D01* X-70773Y-25199D01* Y-26281D01* X-70755Y-26373D01* X-70721Y-26669D01* X-71065Y-27002D01* X-71159Y-27041D01* X-73059Y-28941D01* X-73249Y-29400D01* Y-44500D01* X-73059Y-44959D01* X-72772Y-45246D01* X-72756Y-45283D01* X-72741Y-45330D01* X-72726Y-45388D01* X-72716Y-45451D01* X-72701Y-45629D01* X-72699Y-45730D01* X-72666Y-45807D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* X-71293D01* X-71370Y-44401D01* X-71477Y-44399D01* X-71565Y-44394D01* X-71643Y-44385D01* X-71712Y-44374D01* X-71770Y-44359D01* X-71818Y-44344D01* X-71854Y-44328D01* X-71951Y-44231D01* Y-33621D01* X-71489Y-33430D01* X-71259Y-33659D01* X-70800Y-33849D01* X-68585D01* X-68149Y-34285D01* Y-40800D01* X-67959Y-41259D01* X-66159Y-43059D01* X-65700Y-43249D01* X-63438D01* X-63402Y-43264D01* X-63357Y-43287D01* X-63306Y-43317D01* X-63254Y-43354D01* X-63118Y-43469D01* X-63045Y-43540D01* X-62968Y-43571D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60938Y-42009D01* X-60600Y-41608D01* X-60500Y-41649D01* X-59838D01* X-59802Y-41664D01* X-59757Y-41687D01* X-59706Y-41717D01* X-59654Y-41754D01* X-59518Y-41869D01* X-59445Y-41940D01* X-59368Y-41971D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* X-58759D01* X-59236Y-39898D01* X-59368Y-40029D01* X-59445Y-40060D01* X-59522Y-40135D01* X-59588Y-40194D01* X-59649Y-40243D01* X-59706Y-40282D01* X-59757Y-40313D01* X-59802Y-40336D01* X-59838Y-40351D01* X-60231D01* X-60541Y-40041D01* X-61000Y-39851D01* X-63631D01* X-64149Y-39333D01* X-64082Y-39000D01* Y-38000D01* X-64152Y-37649D01* X-64177Y-37611D01* X-64110Y-37435D01* X-63885Y-37149D01* X-59769D01* X-59459Y-37459D01* X-59000Y-37649D01* X-58338D01* X-58302Y-37664D01* X-58257Y-37687D01* X-58206Y-37718D01* X-58154Y-37754D01* X-58018Y-37869D01* X-57945Y-37940D01* X-57868Y-37971D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55846Y-37612D01* X-55346Y-37711D01* Y-38600D01* X-55269Y-38990D01* X-55048Y-39321D01* X-54717Y-39542D01* X-54327Y-39620D01* X-53937Y-39542D01* X-53606Y-39321D01* X-53385Y-38990D01* X-53307Y-38600D01* Y-34400D01* X-53385Y-34010D01* X-53409Y-33973D01* Y-30807D01* X-51851Y-29249D01* X-51652Y-28951D01* X-51582Y-28600D01* Y-23516D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49849Y-22619D01* X-49349Y-22719D01* Y-29031D01* X-49159Y-29491D01* X-48299Y-30351D01* X-48506Y-30851D01* X-50196D01* X-50240Y-30834D01* X-50294Y-30811D01* X-50354Y-30779D01* X-50418Y-30741D01* X-50577Y-30630D01* X-50664Y-30562D01* X-50713Y-30548D01* X-50764Y-30498D01* X-51241Y-30300D01* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50531Y-32469D01* X-50457Y-32430D01* X-50394Y-32353D01* X-50340Y-32295D01* X-50290Y-32248D01* X-50244Y-32210D01* X-50202Y-32181D01* X-50166Y-32161D01* X-50140Y-32149D01* X-48269D01* X-47324Y-33095D01* X-47433Y-33389D01* X-47939Y-33520D01* X-48031Y-33458D01* X-48421Y-33380D01* X-48812Y-33458D01* X-49142Y-33679D01* X-49669D01* X-50000Y-33458D01* X-50390Y-33380D01* X-50780Y-33458D01* X-51111Y-33679D01* X-51332Y-34010D01* X-51409Y-34400D01* Y-38600D01* X-51332Y-38990D01* X-51307Y-39027D01* Y-40755D01* X-51237Y-41106D01* X-51039Y-41403D01* X-43293Y-49149D01* X-42996Y-49348D01* X-42644Y-49418D01* X-24980D01* X-23618Y-50780D01* Y-54100D01* X-23548Y-54451D01* X-23349Y-54749D01* X-20981Y-57117D01* X-20977Y-57132D01* X-20945Y-57153D01* X-20944Y-57154D01* X-20929Y-57191D01* X-20892Y-57228D01* X-20870Y-57251D01* X-20919Y-57500D01* X-20812Y-58040D01* X-20506Y-58498D01* X-20048Y-58804D01* X-19508Y-58911D01* X-16358D01* X-15818Y-58804D01* X-15360Y-58498D01* X-15054Y-58040D01* X-14947Y-57500D01* X-15054Y-56960D01* X-15360Y-56502D01* X-15818Y-56196D01* X-16358Y-56089D01* X-19374D01* X-19376Y-56087D01* X-19425Y-56051D01* X-19491Y-55990D01* X-19524Y-55978D01* X-21782Y-53720D01* Y-50400D01* X-21852Y-50049D01* X-22051Y-49751D01* X-23712Y-48090D01* X-23549Y-47548D01* X-23251Y-47349D01* X-19879Y-43977D01* X-19863Y-43974D01* X-19849Y-43951D01* X-19824Y-43943D01* X-19800Y-43921D01* X-19795Y-43918D01* X-19790Y-43915D01* X-19781Y-43911D01* X-19767Y-43908D01* X-19747Y-43905D01* X-19720Y-43903D01* X-19685Y-43904D01* X-19642Y-43908D01* X-19579Y-43918D01* X-19543Y-43910D01* X-19508Y-43924D01* X-19477Y-43911D01* X-16358D01* X-15818Y-43804D01* X-15360Y-43498D01* X-15054Y-43040D01* X-14947Y-42500D01* X-15054Y-41960D01* X-15360Y-41502D01* X-15818Y-41196D01* X-16358Y-41089D01* X-19508D01* X-20048Y-41196D01* X-20506Y-41502D01* X-20812Y-41960D01* X-20890Y-42353D01* X-20893Y-42357D01* X-20895Y-42359D01* X-20899Y-42367D01* X-20899Y-42368D01* X-20902Y-42371D01* X-20974Y-42454D01* X-21006Y-42486D01* X-21020Y-42522D01* X-24280Y-45782D01* X-32197D01* X-32297Y-45282D01* X-32241Y-45259D01* X-29341Y-42359D01* X-29151Y-41900D01* Y-33500D01* X-29341Y-33041D01* X-30408Y-31974D01* X-30366Y-31632D01* X-29865Y-31482D01* X-29821Y-31548D01* X-29490Y-31769D01* X-29100Y-31846D01* X-28016D01* X-28014Y-31847D01* X-27936Y-31850D01* X-27918Y-31852D01* Y-33000D01* X-27848Y-33351D01* X-27649Y-33649D01* X-27038Y-34259D01* X-27025Y-34294D01* X-26931Y-34394D01* X-26918Y-34411D01* Y-34914D01* X-26919Y-34917D01* X-26918Y-34919D01* Y-35000D01* X-26848Y-35351D01* X-26649Y-35649D01* X-26351Y-35848D01* X-26000Y-35918D01* X-25000D01* X-24649Y-35848D01* X-24351Y-35649D01* X-24255Y-35505D01* X-24234Y-35497D01* X-24209Y-35437D01* X-24207Y-35433D01* X-24188Y-35433D01* X-24155Y-35418D01* X-12354D01* X-12323Y-35432D01* X-12159Y-35441D01* X-12047Y-35461D01* X-11962Y-35489D01* X-11902Y-35522D01* X-11858Y-35558D01* X-11822Y-35602D01* X-11789Y-35662D01* X-11761Y-35747D01* X-11741Y-35859D01* X-11732Y-36023D01* X-11718Y-36054D01* Y-42770D01* X-11733Y-42806D01* X-11734Y-42899D01* X-11737Y-42973D01* X-11750Y-43106D01* X-11757Y-43146D01* X-11764Y-43177D01* X-11769Y-43193D01* X-11778Y-43207D01* X-11779Y-43214D01* X-11780Y-43219D01* X-11781Y-43228D01* X-11783Y-43244D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44010D01* X-12110Y-44023D01* X-12117Y-44030D01* X-12118Y-44034D01* X-12123Y-44040D01* X-12127Y-44056D01* X-12135Y-44071D01* X-12151Y-44098D01* X-12172Y-44127D01* X-12313Y-44292D01* X-12366Y-44340D01* X-12469Y-44425D01* X-12502Y-44449D01* X-12529Y-44465D01* X-12544Y-44473D01* X-12560Y-44477D01* X-12566Y-44482D01* X-12570Y-44483D01* X-12577Y-44490D01* X-12590Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-45710D01* X-13810Y-45723D01* X-13817Y-45730D01* X-13818Y-45734D01* X-13823Y-45740D01* X-13827Y-45756D01* X-13835Y-45771D01* X-13851Y-45798D01* X-13872Y-45827D01* X-14015Y-45994D01* X-14075Y-46055D01* X-14089Y-46091D01* X-14580Y-46582D01* X-15175D01* X-15208Y-46567D01* X-15250Y-46566D01* X-15271Y-46564D01* X-15286Y-46561D01* X-15295Y-46558D01* X-15298Y-46557D01* X-15310Y-46540D01* X-15339Y-46523D01* X-15351Y-46493D01* X-15411Y-46468D01* X-15818Y-46196D01* X-16358Y-46089D01* X-19508D01* X-20048Y-46196D01* X-20506Y-46502D01* X-20812Y-46960D01* X-20919Y-47500D01* X-20812Y-48040D01* X-20506Y-48498D01* X-20048Y-48804D01* X-19508Y-48911D01* X-16358D01* X-15818Y-48804D01* X-15411Y-48532D01* X-15351Y-48507D01* X-15339Y-48477D01* X-15310Y-48460D01* X-15298Y-48443D01* X-15295Y-48442D01* X-15286Y-48439D01* X-15271Y-48436D01* X-15250Y-48434D01* X-15208Y-48433D01* X-15175Y-48418D01* X-14200D01* X-13849Y-48348D01* X-13551Y-48149D01* X-12791Y-47389D01* X-12755Y-47375D01* X-12688Y-47309D01* X-12634Y-47260D01* X-12531Y-47175D01* X-12498Y-47151D01* X-12471Y-47135D01* X-12456Y-47127D01* X-12440Y-47123D01* X-12434Y-47118D01* X-12430Y-47117D01* X-12423Y-47110D01* X-12410Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45890D01* X-11190Y-45877D01* X-11183Y-45870D01* X-11182Y-45866D01* X-11177Y-45860D01* X-11173Y-45844D01* X-11165Y-45829D01* X-11149Y-45802D01* X-11128Y-45773D01* X-10987Y-45608D01* X-10934Y-45560D01* X-10831Y-45475D01* X-10798Y-45451D01* X-10771Y-45435D01* X-10756Y-45427D01* X-10740Y-45423D01* X-10734Y-45418D01* X-10730Y-45417D01* X-10723Y-45410D01* X-10710Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-9817Y-43244D01* X-9819Y-43228D01* X-9820Y-43219D01* X-9821Y-43214D01* X-9822Y-43207D01* X-9831Y-43193D01* X-9836Y-43177D01* X-9843Y-43146D01* X-9849Y-43110D01* X-9866Y-42892D01* X-9867Y-42806D01* X-9882Y-42770D01* Y-35756D01* X-9867Y-35723D01* X-9861Y-35542D01* X-9843Y-35383D01* X-9814Y-35232D01* X-9774Y-35086D01* X-9723Y-34946D01* X-9660Y-34811D01* X-9586Y-34679D01* X-9499Y-34552D01* X-9399Y-34427D01* X-9276Y-34295D01* X-9125Y-34276D01* X-8960Y-34372D01* X-8668Y-34691D01* Y-34710D01* X-8673Y-34723D01* X-8674Y-35026D01* X-8677Y-35230D01* X-8764Y-35360D01* X-8841Y-35746D01* Y-38065D01* X-8764Y-38451D01* X-8545Y-38779D01* X-8217Y-38998D01* X-7831Y-39075D01* X-6650D01* X-6263Y-38998D01* X-5935Y-38779D01* X-5717Y-38451D01* X-5640Y-38065D01* Y-35746D01* X-5717Y-35360D01* X-5801Y-35234D01* X-5802Y-35121D01* X-4309Y-33627D01* X-1691D01* X-1127Y-34191D01* Y-34648D01* X-1132Y-34657D01* X-1129Y-34666D01* X-1133Y-34675D01* X-1139Y-34974D01* X-1148Y-35103D01* X-1152Y-35138D01* X-1156Y-35155D01* X-1161Y-35174D01* X-1160Y-35175D01* X-1283Y-35360D01* X-1360Y-35746D01* Y-38065D01* X-1283Y-38451D01* X-1127Y-38685D01* Y-38700D01* X-1019Y-39246D01* X-709Y-39709D01* X-246Y-40019D01* X300Y-40127D01* X846Y-40019D01* X1309Y-39709D01* X1619Y-39246D01* X1727Y-38700D01* Y-38506D01* X1764Y-38451D01* X1841Y-38065D01* Y-35746D01* X2102Y-35427D01* X9000D01* X9049Y-35418D01* X9500D01* X9851Y-35348D01* X10149Y-35149D01* X10348Y-34851D01* X10418Y-34500D01* Y-34049D01* X10427Y-34000D01* Y-30000D01* X10418Y-29951D01* Y-29500D01* X10348Y-29149D01* X10149Y-28851D01* X9851Y-28652D01* X9500Y-28582D01* X9049D01* X9000Y-28573D01* X3780D01* X3780Y-28573D01* X3234Y-28681D01* X2771Y-28991D01* X989Y-30773D01* X-1100D01* X-1100Y-30773D01* X-1100Y-30773D01* X-2385D01* X-2510Y-30574D01* X-2575Y-30273D01* X-100Y-27798D01* X-67Y-27786D01* X2Y-27722D01* X54Y-27683D01* X68Y-27675D01* X831D01* X1217Y-27598D01* X1545Y-27379D01* X1764Y-27051D01* X1841Y-26665D01* Y-24346D01* X1764Y-23960D01* X1545Y-23632D01* X1217Y-23413D01* X831Y-23336D01* X89D01* X-102Y-23145D01* X-117Y-23127D01* X-123Y-23124D01* X-134Y-23113D01* X-137Y-23104D01* X-208Y-23031D01* X-221Y-23025D01* X-573Y-22674D01* Y-17500D01* X-582Y-17451D01* Y-17000D01* X-652Y-16649D01* X-851Y-16351D01* X-898Y-15866D01* X-870Y-15768D01* X-20Y-14918D01* X3620D01* X4562Y-15859D01* X4544Y-16286D01* X4506Y-16679D01* X4493Y-16757D01* X4351Y-16851D01* X4152Y-17149D01* X4082Y-17500D01* Y-17951D01* X4073Y-18000D01* X4082Y-18049D01* Y-18500D01* X4152Y-18851D01* X4351Y-19149D01* X4649Y-19348D01* X5000Y-19418D01* X5451D01* X5500Y-19427D01* X9000D01* X9049Y-19418D01* X9500D01* X9851Y-19348D01* X10149Y-19149D01* X10348Y-18851D01* X10418Y-18500D01* Y-18049D01* X10427Y-18000D01* X10418Y-17951D01* Y-17500D01* X10348Y-17149D01* X10149Y-16851D01* X10019Y-16765D01* X9935Y-15491D01* X9933Y-15132D01* X9918Y-15095D01* Y-12179D01* X11082Y-11015D01* X11281Y-10717D01* X11351Y-10366D01* Y-8917D01* X11369Y-8915D01* X11447Y-8912D01* X11449Y-8911D01* X12008D01* X12548Y-8804D01* X12955Y-8532D01* X13015Y-8507D01* X13027Y-8477D01* X13056Y-8460D01* X13069Y-8443D01* X13071Y-8442D01* X13080Y-8439D01* X13095Y-8437D01* X13116Y-8434D01* X13158Y-8433D01* X13191Y-8418D01* X14300D01* X14651Y-8348D01* X14949Y-8149D01* X16449Y-6649D01* X16648Y-6351D01* X16718Y-6000D01* Y-1030D01* X16733Y-994D01* X16734Y-901D01* X16737Y-827D01* X16750Y-694D01* X16757Y-654D01* X16764Y-623D01* X16770Y-607D01* X16778Y-593D01* X16779Y-586D01* X16781Y-581D01* X16781Y-572D01* X16783Y-556D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* X15890D01* X15877Y1610D01* X15870Y1617D01* X15866Y1618D01* X15860Y1623D01* X15844Y1627D01* X15829Y1635D01* X15802Y1651D01* X15773Y1672D01* X15606Y1815D01* X15545Y1875D01* X15509Y1889D01* X14249Y3149D01* X13951Y3348D01* X13600Y3418D01* X13191D01* X13158Y3433D01* X13116Y3434D01* X13095Y3436D01* X13080Y3439D01* X13071Y3442D01* X13069Y3443D01* X13056Y3460D01* X13027Y3477D01* X13015Y3507D01* X12955Y3532D01* X12548Y3804D01* X12008Y3911D01* X9000D01* Y6089D01* X12008D01* X12548Y6196D01* X13006Y6502D01* X13312Y6960D01* X13419Y7500D01* X13312Y8040D01* X13006Y8498D01* X12548Y8804D01* X12008Y8911D01* X9000D01* Y10000D01* X-9000D01* Y3911D01* X-12008D01* X-12548Y3804D01* X-13006Y3498D01* X-13312Y3040D01* X-13419Y2500D01* X-13312Y1960D01* X-13006Y1502D01* X-12548Y1196D01* X-12008Y1089D01* X-9000D01* Y-1089D01* X-12008D01* X-12548Y-1196D01* X-12955Y-1468D01* X-13015Y-1493D01* X-13027Y-1523D01* X-13056Y-1540D01* X-13069Y-1557D01* X-13071Y-1558D01* X-13080Y-1561D01* X-13095Y-1564D01* X-13116Y-1566D01* X-13158Y-1567D01* X-13191Y-1582D01* X-16600D01* X-16951Y-1652D01* X-17249Y-1851D01* X-18009Y-2611D01* X-18045Y-2625D01* X-18112Y-2691D01* X-18166Y-2740D01* X-18269Y-2825D01* X-18302Y-2849D01* X-18329Y-2865D01* X-18344Y-2873D01* X-18360Y-2877D01* X-18366Y-2882D01* X-18370Y-2883D01* X-18377Y-2890D01* X-18390Y-2900D01* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-4290D01* X-16990Y-4277D01* X-16983Y-4270D01* X-16982Y-4266D01* X-16977Y-4260D01* X-16973Y-4244D01* X-16965Y-4229D01* X-16949Y-4202D01* X-16928Y-4173D01* X-16785Y-4006D01* X-16725Y-3945D01* X-16711Y-3909D01* X-16220Y-3418D01* X-13191D01* X-13158Y-3433D01* X-13116Y-3434D01* X-13095Y-3436D01* X-13080Y-3439D01* X-13071Y-3442D01* X-13069Y-3443D01* X-13056Y-3460D01* X-13027Y-3477D01* X-13015Y-3507D01* X-12955Y-3532D01* X-12548Y-3804D01* X-12008Y-3911D01* X-9000D01* Y-6089D01* X-12008D01* X-12548Y-6196D01* X-13006Y-6502D01* X-13312Y-6960D01* X-13419Y-7500D01* X-13312Y-8040D01* X-13006Y-8498D01* X-12548Y-8804D01* X-12008Y-8911D01* X-9000D01* Y-10000D01* X8553D01* X8794Y-10000D01* X9003Y-10499D01* X8351Y-11150D01* X8152Y-11448D01* X8082Y-11799D01* Y-15095D01* X8067Y-15132D01* X8065Y-15498D01* X8034Y-16388D01* X8017Y-16573D01* X6488D01* X6435Y-15780D01* X6433Y-15496D01* X6403Y-15425D01* X6348Y-15149D01* X6149Y-14851D01* X4649Y-13351D01* X4351Y-13152D01* X4000Y-13082D01* X-400D01* X-751Y-13152D01* X-1049Y-13351D01* X-2649Y-14951D01* X-2848Y-15249D01* X-2902Y-15522D01* X-2933Y-15593D01* X-2936Y-15756D01* X-2957Y-16050D01* X-2974Y-16169D01* X-2986Y-16230D01* X-2997Y-16234D01* X-3005Y-16255D01* X-3149Y-16351D01* X-3235Y-16481D01* X-4509Y-16565D01* X-4868Y-16567D01* X-4905Y-16582D01* X-15120D01* X-19682Y-12020D01* Y-7300D01* X-19752Y-6949D01* X-19951Y-6651D01* X-23751Y-2851D01* X-24049Y-2652D01* X-24400Y-2582D01* X-31648D01* X-31650Y-2564D01* X-31653Y-2486D01* X-31654Y-2484D01* Y-1400D01* X-31731Y-1010D01* X-31952Y-679D01* X-32283Y-458D01* X-32673Y-380D01* X-33063Y-458D01* X-33394Y-679D01* X-33615Y-1010D01* X-33693Y-1400D01* Y-5600D01* X-33615Y-5990D01* X-33591Y-6027D01* Y-7823D01* X-34091Y-7922D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8651D01* X-38731D01* X-39898Y-7484D01* Y-6369D01* X-39878Y-6356D01* X-39812Y-6325D01* X-39798Y-6321D01* X-39300D01* X-38969Y-6542D01* X-38579Y-6620D01* X-38188Y-6542D01* X-37858Y-6321D01* X-37331D01* X-37000Y-6542D01* X-36610Y-6620D01* X-36220Y-6542D01* X-35889Y-6321D01* X-35668Y-5990D01* X-35591Y-5600D01* Y-1400D01* X-35668Y-1010D01* X-35693Y-973D01* Y8810D01* X-24220Y20282D01* X-900D01* X-549Y20352D01* X-251Y20551D01* X2649Y23451D01* X2848Y23749D01* X2918Y24100D01* Y25655D01* X2933Y25688D01* X2933Y25707D01* X2937Y25709D01* X2997Y25734D01* X3005Y25755D01* X3149Y25851D01* X3348Y26149D01* X3418Y26500D01* Y27500D01* X3348Y27851D01* X3149Y28149D01* X2851Y28348D01* X2500Y28418D01* X1500D01* X1149Y28348D01* X851Y28149D01* X652Y27851D01* X582Y27500D01* Y26500D01* X652Y26149D01* X851Y25851D01* X995Y25755D01* X1003Y25734D01* X1063Y25709D01* X1067Y25707D01* X1067Y25688D01* X1082Y25655D01* Y24480D01* X-1280Y22118D01* X-24600D01* X-24951Y22048D01* X-25249Y21849D01* X-25582Y21515D01* X-26082Y21723D01* Y25655D01* X-26067Y25688D01* X-26067Y25707D01* X-26063Y25709D01* X-26003Y25734D01* X-25995Y25755D01* X-25851Y25851D01* X-25652Y26149D01* X-25582Y26500D01* Y27500D01* X-25652Y27851D01* X-25851Y28149D01* X-26149Y28348D01* X-26500Y28418D01* X-27500D01* X-27851Y28348D01* X-28149Y28149D01* X-28348Y27851D01* X-28418Y27500D01* Y26500D01* X-28348Y26149D01* X-28149Y25851D01* X-28005Y25755D01* X-27997Y25734D01* X-27937Y25709D01* X-27933Y25707D01* X-27933Y25688D01* X-27918Y25655D01* Y21580D01* X-39228Y10270D01* X-39426Y9972D01* X-39496Y9621D01* Y-341D01* X-39996Y-565D01* X-40157Y-458D01* X-40547Y-380D01* X-40937Y-458D01* X-41268Y-679D01* X-41795D01* X-42125Y-458D01* X-42516Y-380D01* X-42906Y-458D01* X-43237Y-679D01* X-43763D01* X-44094Y-458D01* X-44484Y-380D01* X-44874Y-458D01* X-45205Y-679D01* X-45284Y-687D01* X-45739Y-342D01* Y53D01* X-45793Y326D01* X-45948Y557D01* X-47186Y1796D01* Y33700D01* X-47241Y33973D01* X-47395Y34205D01* X-53995Y40805D01* X-54227Y40959D01* X-54500Y41014D01* X-58453D01* X-58494Y41033D01* X-58560Y41035D01* X-58606Y41041D01* X-58650Y41050D01* X-58692Y41063D01* X-58734Y41079D01* X-58775Y41099D01* X-58817Y41124D01* X-58860Y41155D01* X-58904Y41191D01* X-58958Y41243D01* X-59034Y41273D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X49031Y-3131D01* X48957Y-3170D01* X48894Y-3247D01* X48840Y-3305D01* X48790Y-3352D01* X48744Y-3390D01* X48702Y-3419D01* X48666Y-3439D01* X48640Y-3451D01* X30638D01* X30602Y-3436D01* X30557Y-3413D01* X30506Y-3382D01* X30454Y-3346D01* X30318Y-3231D01* X30245Y-3160D01* X30168Y-3129D01* X30036Y-2998D01* X29559Y-2800D01* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30168Y-5071D01* X30245Y-5040D01* X30322Y-4965D01* X30388Y-4907D01* X30449Y-4857D01* X30506Y-4817D01* X30557Y-4787D01* X30602Y-4764D01* X30638Y-4749D01* X48696D01* X48741Y-4766D01* X48794Y-4789D01* X48855Y-4821D01* X48918Y-4859D01* X49077Y-4970D01* X49163Y-5038D01* X49213Y-5052D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4959D01* X71898Y-5436D01* X72264Y-5802D01* X72741Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X49132Y-6229D01* X49055Y-6260D01* X48978Y-6335D01* X48912Y-6393D01* X48851Y-6443D01* X48794Y-6482D01* X48743Y-6513D01* X48698Y-6536D01* X48662Y-6551D01* X30638D01* X30602Y-6536D01* X30557Y-6513D01* X30506Y-6482D01* X30454Y-6446D01* X30318Y-6331D01* X30245Y-6260D01* X30168Y-6229D01* X30036Y-6098D01* X29559Y-5900D01* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30168Y-8171D01* X30245Y-8140D01* X30322Y-8065D01* X30388Y-8006D01* X30449Y-7957D01* X30506Y-7918D01* X30557Y-7887D01* X30602Y-7864D01* X30638Y-7849D01* X48662D01* X48698Y-7864D01* X48743Y-7887D01* X48794Y-7918D01* X48846Y-7954D01* X48982Y-8069D01* X49055Y-8140D01* X49132Y-8171D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X18800Y-14873D02* X18800Y-14873D01* X15800D01* X15800Y-14873D01* X15254Y-14981D01* X14791Y-15291D01* X14481Y-15754D01* X14373Y-16300D01* X14481Y-16846D01* X14791Y-17309D01* X15073Y-17591D01* Y-20180D01* X15067Y-20192D01* X15066Y-20296D01* X15053Y-20470D01* X15045Y-20527D01* X15035Y-20574D01* X15026Y-20604D01* X15025Y-20608D01* X15017Y-20611D01* X14992Y-20671D01* X14909Y-20796D01* X14351D01* X14234Y-20620D01* X13874Y-20380D01* X13514Y-20308D01* X13446Y-19972D01* X13444Y-19962D01* X13437Y-19911D01* X13433Y-19795D01* X13433Y-19793D01* X13437Y-19791D01* X13497Y-19766D01* X13505Y-19745D01* X13649Y-19649D01* X13848Y-19351D01* X13918Y-19000D01* Y-18000D01* X13848Y-17649D01* X13649Y-17351D01* X13351Y-17152D01* X13000Y-17082D01* X12000D01* X11649Y-17152D01* X11351Y-17351D01* X11152Y-17649D01* X11082Y-18000D01* Y-19000D01* X11152Y-19351D01* X11351Y-19649D01* X11495Y-19745D01* X11503Y-19766D01* X11563Y-19791D01* X11567Y-19793D01* X11567Y-19812D01* X11582Y-19845D01* Y-20382D01* X11567Y-20415D01* X11567Y-20433D01* X11552Y-20442D01* X11495Y-20467D01* X11488Y-20485D01* X11286Y-20620D01* X11045Y-20981D01* X10961Y-21406D01* Y-25146D01* X11045Y-25571D01* X11286Y-25931D01* X11646Y-26171D01* X12071Y-26256D01* X13449D01* X13874Y-26171D01* X14234Y-25931D01* X14351Y-25756D01* X14909D01* X15026Y-25931D01* X15386Y-26171D01* X15811Y-26256D01* X17189D01* X17614Y-26171D01* X17974Y-25931D01* X18091Y-25756D01* X18649D01* X18732Y-25880D01* X18757Y-25940D01* X18765Y-25943D01* X18767Y-25947D01* X18775Y-25977D01* X18785Y-26024D01* X18793Y-26081D01* X18806Y-26255D01* X18807Y-26359D01* X18813Y-26371D01* Y-26740D01* X18813Y-26740D01* X18921Y-27286D01* X19231Y-27749D01* X20725Y-29244D01* X20518Y-29744D01* X19551D01* X19126Y-29829D01* X18766Y-30069D01* X18525Y-30429D01* X18441Y-30854D01* Y-34595D01* X18525Y-35019D01* X18766Y-35380D01* X19126Y-35620D01* X19551Y-35705D01* X20929D01* X21354Y-35620D01* X21714Y-35380D01* X21890Y-35116D01* X21909Y-35099D01* X22007Y-35049D01* X22209Y-35011D01* X22468Y-35003D01* X22525Y-35065D01* X22593Y-35146D01* X22605Y-35162D01* X22607Y-35165D01* X22608Y-35166D01* X22619Y-35183D01* X22652Y-35351D01* X22851Y-35649D01* X23149Y-35848D01* X23500Y-35918D01* X23951D01* X24000Y-35927D01* X26000D01* X26000Y-35927D01* X26546Y-35819D01* X27009Y-35509D01* X28009Y-34509D01* X28009Y-34509D01* X28319Y-34046D01* X28427Y-33500D01* Y-29000D01* X28427Y-29000D01* X28319Y-28454D01* X28009Y-27991D01* X28009Y-27991D01* X25735Y-25716D01* X25730Y-25703D01* X25653Y-25626D01* X25475Y-25436D01* X25407Y-25354D01* X25395Y-25338D01* X25393Y-25335D01* X25392Y-25334D01* X25381Y-25317D01* X25348Y-25149D01* X25149Y-24851D01* X24851Y-24652D01* X24500Y-24582D01* X24049D01* X24000Y-24573D01* X23951Y-24582D01* X23500D01* X23149Y-24652D01* X22851Y-24851D01* X22652Y-25149D01* X22582Y-25500D01* Y-25951D01* X22573Y-26000D01* X22576Y-26016D01* X22529Y-26082D01* X22082Y-26352D01* X21997Y-26319D01* X21907Y-26160D01* X21798Y-25805D01* X21955Y-25571D01* X22039Y-25146D01* Y-23991D01* X22040Y-23989D01* X22039Y-23960D01* Y-23751D01* X22043Y-23687D01* X22059Y-23588D01* X22080Y-23519D01* X22100Y-23479D01* X22113Y-23460D01* X22122Y-23453D01* X22135Y-23447D01* X22165Y-23438D01* X22253Y-23432D01* X22262Y-23427D01* X24000D01* X24049Y-23418D01* X24500D01* X24851Y-23348D01* X25149Y-23149D01* X25348Y-22851D01* X25418Y-22500D01* Y-22049D01* X25427Y-22000D01* X25418Y-21951D01* Y-21500D01* X25348Y-21149D01* X25149Y-20851D01* X24851Y-20652D01* X24500Y-20582D01* X24049D01* X24000Y-20573D01* X23365D01* X23190Y-20398D01* X22712Y-20200D01* X22195D01* X21717Y-20398D01* X21585Y-20530D01* X21580Y-20529D01* X21578Y-20530D01* X21354Y-20380D01* X20994Y-20308D01* X20929Y-20100D01* X20930Y-19795D01* X21149Y-19649D01* X21348Y-19351D01* X21418Y-19000D01* Y-18000D01* X21373Y-17775D01* X21427Y-17500D01* X21319Y-16954D01* X21009Y-16491D01* X20909Y-16391D01* X20909Y-16391D01* X19809Y-15291D01* X19346Y-14981D01* X18800Y-14873D01* D02* G37* G36* X28500Y-14973D02* X27954Y-15081D01* X27491Y-15391D01* X27181Y-15854D01* X27073Y-16400D01* Y-21200D01* X27181Y-21746D01* X27491Y-22209D01* X27954Y-22519D01* X28500Y-22627D01* X29046Y-22519D01* X29509Y-22209D01* X29819Y-21746D01* X29927Y-21200D01* Y-16400D01* X29819Y-15854D01* X29509Y-15391D01* X29046Y-15081D01* X28500Y-14973D01* D02* G37* G36* X13449Y-29744D02* X12071D01* X11646Y-29829D01* X11286Y-30069D01* X11045Y-30429D01* X10961Y-30854D01* Y-34595D01* X11045Y-35019D01* X11286Y-35380D01* X11492Y-35517D01* X11501Y-35538D01* X11560Y-35563D01* X11646Y-35620D01* X11669Y-35625D01* X11710Y-35654D01* X11782Y-35671D01* X11828Y-35685D01* X11842Y-35690D01* Y-36584D01* X11833Y-36588D01* X11785Y-36602D01* X11713Y-36618D01* X11672Y-36648D01* X11649Y-36652D01* X11589Y-36692D01* X11525Y-36713D01* X11510Y-36745D01* X11351Y-36851D01* X11255Y-36995D01* X11234Y-37003D01* X11209Y-37063D01* X11207Y-37067D01* X11188Y-37067D01* X11155Y-37082D01* X10345D01* X10312Y-37067D01* X10293Y-37067D01* X10291Y-37063D01* X10266Y-37003D01* X10245Y-36995D01* X10149Y-36851D01* X9851Y-36652D01* X9500Y-36582D01* X8500D01* X8149Y-36652D01* X7851Y-36851D01* X7755Y-36995D01* X7734Y-37003D01* X7709Y-37063D01* X7707Y-37067D01* X7688Y-37067D01* X7655Y-37082D01* X6845D01* X6812Y-37067D01* X6793Y-37067D01* X6791Y-37063D01* X6766Y-37003D01* X6745Y-36995D01* X6649Y-36851D01* X6351Y-36652D01* X6000Y-36582D01* X5000D01* X4649Y-36652D01* X4351Y-36851D01* X4152Y-37149D01* X4082Y-37500D01* Y-38500D01* X4152Y-38851D01* X4351Y-39149D01* X4649Y-39348D01* X5000Y-39418D01* X6000D01* X6351Y-39348D01* X6649Y-39149D01* X6745Y-39005D01* X6766Y-38997D01* X6791Y-38937D01* X6793Y-38933D01* X6812Y-38933D01* X6845Y-38918D01* X7655D01* X7688Y-38933D01* X7707Y-38933D01* X7709Y-38937D01* X7734Y-38997D01* X7755Y-39005D01* X7851Y-39149D01* X8149Y-39348D01* X8500Y-39418D01* X9500D01* X9851Y-39348D01* X10149Y-39149D01* X10245Y-39005D01* X10266Y-38997D01* X10291Y-38937D01* X10293Y-38933D01* X10312Y-38933D01* X10345Y-38918D01* X11155D01* X11188Y-38933D01* X11207Y-38933D01* X11209Y-38937D01* X11234Y-38997D01* X11255Y-39005D01* X11351Y-39149D01* X11649Y-39348D01* X12000Y-39418D01* X13000D01* X13351Y-39348D01* X13649Y-39149D01* X13848Y-38851D01* X13918Y-38500D01* Y-37500D01* X13848Y-37149D01* X13708Y-36939D01* X13708Y-36937D01* X13705Y-36928D01* Y-36925D01* X13702Y-36917D01* X13701Y-36911D01* X13699Y-36898D01* X13693Y-36825D01* X13693Y-36780D01* X13678Y-36744D01* Y-35690D01* X13691Y-35685D01* X13738Y-35671D01* X13810Y-35654D01* X13851Y-35625D01* X13874Y-35620D01* X13959Y-35563D01* X14019Y-35538D01* X14028Y-35517D01* X14234Y-35380D01* X14475Y-35019D01* X14559Y-34595D01* Y-30854D01* X14475Y-30429D01* X14234Y-30069D01* X13874Y-29829D01* X13449Y-29744D01* D02* G37* G36* X4508Y-41089D02* X1358D01* X818Y-41196D01* X360Y-41502D01* X54Y-41960D01* X-53Y-42500D01* X54Y-43040D01* X360Y-43498D01* X818Y-43804D01* X1358Y-43911D01* X4508D01* X5048Y-43804D01* X5506Y-43498D01* X5812Y-43040D01* X5919Y-42500D01* X5812Y-41960D01* X5506Y-41502D01* X5048Y-41196D01* X4508Y-41089D01* D02* G37* G36* Y-46089D02* X1358D01* X818Y-46196D01* X360Y-46502D01* X54Y-46960D01* X-53Y-47500D01* X54Y-48040D01* X360Y-48498D01* X818Y-48804D01* X1358Y-48911D01* X4508D01* X5048Y-48804D01* X5506Y-48498D01* X5812Y-48040D01* X5919Y-47500D01* X5812Y-46960D01* X5506Y-46502D01* X5048Y-46196D01* X4508Y-46089D01* D02* G37* G36* X24500Y-36582D02* X23500D01* X23149Y-36652D01* X22851Y-36851D01* X22652Y-37149D01* X22582Y-37500D01* Y-38500D01* X22652Y-38851D01* X22851Y-39149D01* X23149Y-39348D01* X23500Y-39418D01* X24500D01* X24851Y-39348D01* X25149Y-39149D01* X25245Y-39005D01* X25266Y-38997D01* X25291Y-38937D01* X25293Y-38933D01* X25312Y-38933D01* X25345Y-38918D01* X26420D01* X28582Y-41080D01* Y-50970D01* X28567Y-51006D01* X28566Y-51099D01* X28563Y-51173D01* X28550Y-51306D01* X28543Y-51346D01* X28536Y-51377D01* X28530Y-51393D01* X28522Y-51407D01* X28521Y-51414D01* X28519Y-51419D01* X28519Y-51428D01* X28517Y-51445D01* X28454Y-51508D01* X28036Y-51798D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28065Y-53973D01* X28069Y-53973D01* X28072Y-53973D01* X28078Y-53972D01* X28092Y-53966D01* X28096Y-53964D01* X28118Y-53959D01* X28143Y-53955D01* X28428Y-53934D01* X28515Y-53933D01* X28551Y-53918D01* X28800D01* X29151Y-53848D01* X29449Y-53649D01* X29498Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30483Y-51445D01* X30481Y-51428D01* X30481Y-51419D01* X30479Y-51414D01* X30478Y-51407D01* X30470Y-51393D01* X30464Y-51377D01* X30457Y-51346D01* X30451Y-51310D01* X30434Y-51092D01* X30433Y-51006D01* X30418Y-50970D01* Y-40700D01* X30348Y-40349D01* X30149Y-40051D01* X27449Y-37351D01* X27151Y-37152D01* X26800Y-37082D01* X25345D01* X25312Y-37067D01* X25293Y-37067D01* X25291Y-37063D01* X25266Y-37003D01* X25245Y-36995D01* X25149Y-36851D01* X24851Y-36652D01* X24500Y-36582D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X4508Y-51089D02* X1358D01* X818Y-51196D01* X360Y-51502D01* X54Y-51960D01* X-53Y-52500D01* X28Y-52910D01* X18Y-52964D01* X21Y-52969D01* X-3280Y-56271D01* X-3435Y-56502D01* X-3489Y-56776D01* Y-59915D01* X-3435Y-60188D01* X-3280Y-60420D01* X-695Y-63005D01* X-464Y-63159D01* X-191Y-63214D01* X522D01* X563Y-63233D01* X629Y-63235D01* X675Y-63241D01* X718Y-63250D01* X761Y-63262D01* X802Y-63279D01* X844Y-63299D01* X886Y-63324D01* X929Y-63355D01* X972Y-63391D01* X1027Y-63443D01* X1103Y-63472D01* X1232Y-63602D01* X1710Y-63800D01* X2227D01* X2705Y-63602D01* X2834Y-63472D01* X2910Y-63443D01* X2965Y-63391D01* X3008Y-63355D01* X3051Y-63324D01* X3093Y-63299D01* X3135Y-63279D01* X3176Y-63262D01* X3218Y-63250D01* X3262Y-63241D01* X3308Y-63235D01* X3374Y-63233D01* X3415Y-63214D01* X4500D01* X4773Y-63159D01* X5005Y-63005D01* X10796Y-57214D01* X18625D01* X18652Y-57351D01* X18851Y-57649D01* X19149Y-57848D01* X19500Y-57918D01* X20500D01* X20851Y-57848D01* X21149Y-57649D01* X21348Y-57351D01* X21418Y-57000D01* Y-56000D01* X21348Y-55649D01* X21149Y-55351D01* X20851Y-55152D01* X20500Y-55082D01* X19500D01* X19149Y-55152D01* X18851Y-55351D01* X18652Y-55649D01* X18625Y-55786D01* X10500D01* X10227Y-55841D01* X9995Y-55995D01* X4204Y-61786D01* X3415D01* X3374Y-61767D01* X3308Y-61765D01* X3262Y-61759D01* X3218Y-61750D01* X3176Y-61738D01* X3135Y-61721D01* X3093Y-61701D01* X3051Y-61676D01* X3008Y-61645D01* X2965Y-61609D01* X2910Y-61557D01* X2834Y-61528D01* X2705Y-61398D01* X2227Y-61200D01* X1710D01* X1232Y-61398D01* X1103Y-61528D01* X1027Y-61557D01* X972Y-61609D01* X929Y-61645D01* X886Y-61676D01* X844Y-61701D01* X802Y-61721D01* X761Y-61738D01* X718Y-61750D01* X675Y-61759D01* X629Y-61765D01* X563Y-61767D01* X522Y-61786D01* X105D01* X-2062Y-59619D01* Y-57071D01* X1106Y-53903D01* X1113Y-53900D01* X1126Y-53900D01* X1143Y-53900D01* X1230Y-53908D01* X1283Y-53918D01* X1334Y-53907D01* X1358Y-53911D01* X1420D01* X1443Y-53916D01* X1450Y-53911D01* X4508D01* X5048Y-53804D01* X5506Y-53498D01* X5812Y-53040D01* X5919Y-52500D01* X5812Y-51960D01* X5506Y-51502D01* X5048Y-51196D01* X4508Y-51089D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74800Y-51741D01* Y-52259D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74602Y-54264D01* X-74800Y-54741D01* Y-55259D01* X-74602Y-55736D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* G36* X24500Y-55082D02* X23500D01* X23149Y-55152D01* X22851Y-55351D01* X22652Y-55649D01* X22582Y-56000D01* Y-57000D01* X22652Y-57351D01* X22700Y-57423D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57423D01* X25348Y-57351D01* X25418Y-57000D01* Y-56000D01* X25348Y-55649D01* X25149Y-55351D01* X24851Y-55152D01* X24500Y-55082D01* D02* G37* G36* X4508Y-56089D02* X1358D01* X818Y-56196D01* X360Y-56502D01* X54Y-56960D01* X-53Y-57500D01* X54Y-58040D01* X360Y-58498D01* X818Y-58804D01* X1358Y-58911D01* X4508D01* X5048Y-58804D01* X5506Y-58498D01* X5812Y-58040D01* X5919Y-57500D01* X5812Y-56960D01* X5506Y-56502D01* X5048Y-56196D01* X4508Y-56089D01* D02* G37* G36* X-1741Y-64200D02* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-898Y-64764D01* X-1264Y-64398D01* X-1741Y-64200D01* D02* G37* G36* X43000Y-63066D02* X41982Y-63200D01* X41033Y-63593D01* X40218Y-64218D01* X39593Y-65033D01* X39381Y-65545D01* X39329Y-65566D01* X4200D01* X3182Y-65700D01* X2233Y-66093D01* X1419Y-66719D01* X-1929Y-70066D01* X-10371D01* X-11986Y-68451D01* Y-65581D01* X-12113Y-65275D01* X-13694Y-63694D01* X-14000Y-63567D01* X-20500D01* X-20806Y-63694D01* X-22306Y-65194D01* X-22433Y-65500D01* Y-72236D01* X-22306Y-72542D01* X-20924Y-73925D01* X-20934Y-74000D01* X-20800Y-75018D01* X-20407Y-75967D01* X-19782Y-76781D01* X-18967Y-77407D01* X-18018Y-77800D01* X-17000Y-77934D01* X-300D01* X718Y-77800D01* X1667Y-77407D01* X2482Y-76781D01* X5829Y-73434D01* X38468D01* X38660Y-73896D01* X39104Y-74340D01* X39381Y-74455D01* X39593Y-74967D01* X40218Y-75782D01* X41033Y-76407D01* X41982Y-76800D01* X43000Y-76934D01* X44018Y-76800D01* X44967Y-76407D01* X45781Y-75782D01* X46407Y-74967D01* X46619Y-74455D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72819D01* X48281Y-72281D01* X48907Y-71467D01* X49300Y-70518D01* X49434Y-69500D01* X49300Y-68482D01* X48907Y-67533D01* X48281Y-66719D01* X47467Y-66093D01* X47232Y-65996D01* X46896Y-65660D01* X46619Y-65545D01* X46407Y-65033D01* X45781Y-64218D01* X44967Y-63593D01* X44018Y-63200D01* X43000Y-63066D01* D02* G37* %LPD*% G36* X3147Y56346D02* X3943Y56282D01* X4104Y56243D01* X4212Y56196D01* X4268Y56141D01* X4271Y56077D01* X4222Y56005D01* X4121Y55924D01* X3632Y53219D01* X3799Y51157D01* X3826Y51099D01* X3823Y51047D01* X3792Y51001D01* X3731Y50961D01* X3642Y50927D01* X3523Y50899D01* X3376Y50878D01* X3199Y50862D01* X2759Y50850D01* Y52092D01* X2649Y52192D01* X2094Y52738D01* X2765Y54750D01* X2777Y56350D01* X3147Y56346D01* D02* G37* G36* X501Y44689D02* X521Y44436D01* X532Y44368D01* X547Y44307D01* X564Y44254D01* X583Y44209D01* X605Y44172D01* X630Y44143D01* X-630D01* X-605Y44172D01* X-583Y44209D01* X-564Y44254D01* X-547Y44307D01* X-532Y44368D01* X-521Y44436D01* X-505Y44597D01* X-501Y44689D01* X-500Y44788D01* X500D01* X501Y44689D01* D02* G37* G36* X654Y44030D02* X622Y44015D01* X593Y43994D01* X569Y43968D01* X548Y43937D01* X531Y43900D01* X517Y43859D01* X508Y43812D01* X502Y43760D01* X500Y43702D01* X-500D01* X-502Y43760D01* X-508Y43812D01* X-517Y43859D01* X-531Y43900D01* X-548Y43937D01* X-569Y43968D01* X-593Y43994D01* X-622Y44015D01* X-654Y44030D01* X-690Y44040D01* X690D01* X654Y44030D01* D02* G37* G36* X502Y43240D02* X508Y43188D01* X517Y43141D01* X531Y43099D01* X548Y43063D01* X569Y43032D01* X593Y43006D01* X622Y42985D01* X654Y42970D01* X690Y42960D01* X-690D01* X-654Y42970D01* X-622Y42985D01* X-593Y43006D01* X-569Y43032D01* X-548Y43063D01* X-531Y43099D01* X-517Y43141D01* X-508Y43188D01* X-502Y43240D01* X-500Y43298D01* X500D01* X502Y43240D01* D02* G37* G36* X605Y42828D02* X583Y42791D01* X564Y42746D01* X547Y42693D01* X532Y42632D01* X521Y42564D01* X505Y42403D01* X501Y42311D01* X500Y42212D01* X-500D01* X-501Y42311D01* X-521Y42564D01* X-532Y42632D01* X-547Y42693D01* X-564Y42746D01* X-583Y42791D01* X-605Y42828D01* X-630Y42857D01* X630D01* X605Y42828D01* D02* G37* G36* X-18297Y33996D02* X-18368Y33918D01* X-18429Y33836D01* X-18479Y33752D01* X-18518Y33664D01* X-18545Y33574D01* X-18562Y33480D01* X-18568Y33384D01* X-18564Y33285D01* X-18548Y33182D01* X-18521Y33077D01* X-19121Y35058D01* X-19065Y35024D01* X-19011Y34998D01* X-18958Y34980D01* X-18906Y34971D01* X-18856Y34969D01* X-18807Y34975D01* X-18760Y34990D01* X-18714Y35012D01* X-18669Y35043D01* X-18626Y35081D01* X-18297Y33996D01* D02* G37* G36* X-7793Y27506D02* X-7760Y27502D01* X-7702Y27500D01* Y26500D01* X-7760Y26498D01* X-7812Y26492D01* X-7859Y26483D01* X-7901Y26469D01* X-7937Y26452D01* X-7968Y26432D01* X-7994Y26407D01* X-8015Y26378D01* X-8030Y26346D01* X-8040Y26310D01* Y26609D01* X-9417Y27986D01* X-9345Y27925D01* X-9269Y27883D01* X-9188Y27860D01* X-9103Y27855D01* X-9013Y27868D01* X-8919Y27899D01* X-8820Y27949D01* X-8717Y28018D01* X-8609Y28105D01* X-8497Y28210D01* X-7793Y27506D01* D02* G37* G36* X-6960Y26310D02* X-6970Y26346D01* X-6985Y26378D01* X-7006Y26407D01* X-7032Y26432D01* X-7063Y26452D01* X-7100Y26469D01* X-7141Y26483D01* X-7188Y26492D01* X-7240Y26498D01* X-7298Y26500D01* Y27500D01* X-7240Y27502D01* X-7188Y27508D01* X-7141Y27517D01* X-7100Y27531D01* X-7063Y27548D01* X-7032Y27569D01* X-7006Y27593D01* X-6985Y27622D01* X-6970Y27654D01* X-6960Y27690D01* Y26310D01* D02* G37* %LPC*% G36* X-8040Y27195D02* X-8051Y27180D01* X-8101Y27081D01* X-8132Y26987D01* X-8145Y26897D01* X-8140Y26812D01* X-8117Y26731D01* X-8075Y26655D01* X-8040Y26614D01* Y27195D01* D02* G37* %LPD*% G36* X15040Y26310D02* X15030Y26346D01* X15015Y26378D01* X14994Y26407D01* X14968Y26432D01* X14937Y26452D01* X14900Y26469D01* X14859Y26483D01* X14812Y26492D01* X14760Y26498D01* X14702Y26500D01* Y27500D01* X14760Y27502D01* X14812Y27508D01* X14859Y27517D01* X14900Y27531D01* X14937Y27548D01* X14968Y27569D01* X14994Y27593D01* X15015Y27622D01* X15030Y27654D01* X15040Y27690D01* Y26310D01* D02* G37* G36* X13970Y27654D02* X13985Y27622D01* X14006Y27593D01* X14032Y27569D01* X14063Y27548D01* X14099Y27531D01* X14141Y27517D01* X14188Y27508D01* X14240Y27502D01* X14298Y27500D01* Y26500D01* X14240Y26498D01* X14188Y26492D01* X14141Y26483D01* X14099Y26469D01* X14063Y26452D01* X14032Y26432D01* X14006Y26407D01* X13985Y26378D01* X13970Y26346D01* X13960Y26310D01* Y27690D01* X13970Y27654D01* D02* G37* G36* X13654Y26030D02* X13622Y26015D01* X13593Y25994D01* X13568Y25968D01* X13548Y25937D01* X13531Y25901D01* X13517Y25859D01* X13508Y25812D01* X13502Y25760D01* X13500Y25702D01* X12500D01* X12498Y25760D01* X12492Y25812D01* X12483Y25859D01* X12470Y25901D01* X12452Y25937D01* X12431Y25968D01* X12407Y25994D01* X12378Y26015D01* X12346Y26030D01* X12310Y26040D01* X13690D01* X13654Y26030D01* D02* G37* G36* X6654D02* X6622Y26015D01* X6593Y25994D01* X6569Y25968D01* X6548Y25937D01* X6531Y25901D01* X6517Y25859D01* X6508Y25812D01* X6502Y25760D01* X6500Y25702D01* X5500D01* X5498Y25760D01* X5492Y25812D01* X5483Y25859D01* X5469Y25901D01* X5452Y25937D01* X5432Y25968D01* X5407Y25994D01* X5378Y26015D01* X5346Y26030D01* X5310Y26040D01* X6690D01* X6654Y26030D01* D02* G37* G36* X-20960Y26310D02* X-20970Y26346D01* X-20985Y26378D01* X-21006Y26407D01* X-21032Y26432D01* X-21063Y26452D01* X-21100Y26469D01* X-21141Y26483D01* X-21188Y26492D01* X-21240Y26498D01* X-21298Y26500D01* Y27500D01* X-21240Y27502D01* X-21188Y27508D01* X-21141Y27517D01* X-21100Y27531D01* X-21063Y27548D01* X-21032Y27569D01* X-21006Y27593D01* X-20985Y27622D01* X-20970Y27654D01* X-20960Y27690D01* Y26310D01* D02* G37* G36* X-22030Y27654D02* X-22015Y27622D01* X-21994Y27593D01* X-21968Y27569D01* X-21937Y27548D01* X-21901Y27531D01* X-21859Y27517D01* X-21812Y27508D01* X-21760Y27502D01* X-21702Y27500D01* Y26500D01* X-21760Y26498D01* X-21812Y26492D01* X-21859Y26483D01* X-21901Y26469D01* X-21937Y26452D01* X-21968Y26432D01* X-21994Y26407D01* X-22015Y26378D01* X-22030Y26346D01* X-22040Y26310D01* Y27690D01* X-22030Y27654D01* D02* G37* G36* X-12346Y26030D02* X-12378Y26015D01* X-12407Y25994D01* X-12431Y25968D01* X-12452Y25937D01* X-12470Y25901D01* X-12483Y25859D01* X-12492Y25812D01* X-12498Y25760D01* X-12500Y25702D01* X-13500D01* X-13502Y25760D01* X-13508Y25812D01* X-13517Y25859D01* X-13531Y25901D01* X-13548Y25937D01* X-13568Y25968D01* X-13593Y25994D01* X-13622Y26015D01* X-13654Y26030D01* X-13690Y26040D01* X-12310D01* X-12346Y26030D01* D02* G37* G36* X-19346D02* X-19378Y26015D01* X-19407Y25994D01* X-19432Y25968D01* X-19452Y25937D01* X-19469Y25901D01* X-19483Y25859D01* X-19492Y25812D01* X-19498Y25760D01* X-19500Y25702D01* X-20500D01* X-20502Y25760D01* X-20508Y25812D01* X-20517Y25859D01* X-20530Y25901D01* X-20548Y25937D01* X-20569Y25968D01* X-20593Y25994D01* X-20622Y26015D01* X-20654Y26030D01* X-20690Y26040D01* X-19310D01* X-19346Y26030D01* D02* G37* G36* X-59192Y40867D02* X-59124Y40811D01* X-59054Y40762D01* X-58983Y40719D01* X-58909Y40683D01* X-58833Y40653D01* X-58756Y40630D01* X-58676Y40613D01* X-58595Y40603D01* X-58512Y40600D01* Y40000D01* X-58595Y39997D01* X-58676Y39987D01* X-58756Y39970D01* X-58833Y39947D01* X-58909Y39917D01* X-58983Y39881D01* X-59054Y39838D01* X-59124Y39789D01* X-59192Y39733D01* X-59257Y39670D01* Y40930D01* X-59192Y40867D01* D02* G37* G36* X2654Y26030D02* X2622Y26015D01* X2593Y25994D01* X2569Y25968D01* X2548Y25937D01* X2530Y25901D01* X2517Y25859D01* X2508Y25812D01* X2502Y25760D01* X2500Y25702D01* X1500D01* X1498Y25760D01* X1492Y25812D01* X1483Y25859D01* X1469Y25901D01* X1452Y25937D01* X1431Y25968D01* X1407Y25994D01* X1378Y26015D01* X1346Y26030D01* X1310Y26040D01* X2690D01* X2654Y26030D01* D02* G37* G36* X-26346D02* X-26378Y26015D01* X-26407Y25994D01* X-26432Y25968D01* X-26452Y25937D01* X-26469Y25901D01* X-26483Y25859D01* X-26492Y25812D01* X-26498Y25760D01* X-26500Y25702D01* X-27500D01* X-27502Y25760D01* X-27508Y25812D01* X-27517Y25859D01* X-27531Y25901D01* X-27548Y25937D01* X-27569Y25968D01* X-27593Y25994D01* X-27622Y26015D01* X-27654Y26030D01* X-27690Y26040D01* X-26310D01* X-26346Y26030D01* D02* G37* G36* X-53723Y4101D02* X-53771Y4040D01* X-53813Y3977D01* X-53849Y3909D01* X-53880Y3838D01* X-53905Y3764D01* X-53925Y3686D01* X-53939Y3604D01* X-53947Y3520D01* X-53950Y3431D01* X-54650D01* X-54653Y3520D01* X-54661Y3604D01* X-54675Y3686D01* X-54695Y3764D01* X-54720Y3838D01* X-54751Y3909D01* X-54787Y3977D01* X-54829Y4040D01* X-54877Y4101D01* X-54930Y4157D01* X-53670D01* X-53723Y4101D01* D02* G37* G36* X-49815Y4107D02* X-49862Y4046D01* X-49904Y3982D01* X-49940Y3915D01* X-49970Y3843D01* X-49995Y3769D01* X-50015Y3691D01* X-50029Y3609D01* X-50037Y3524D01* X-50040Y3435D01* X-50740Y3427D01* X-50743Y3515D01* X-50751Y3600D01* X-50765Y3682D01* X-50785Y3760D01* X-50810Y3834D01* X-50842Y3904D01* X-50878Y3971D01* X-50921Y4034D01* X-50969Y4094D01* X-51023Y4150D01* X-49763Y4165D01* X-49815Y4107D01* D02* G37* G36* X12737Y3163D02* X12769Y3129D01* X12804Y3098D01* X12843Y3072D01* X12885Y3050D01* X12930Y3032D01* X12978Y3018D01* X13030Y3008D01* X13085Y3002D01* X13143Y3000D01* Y2000D01* X13085Y1998D01* X13030Y1992D01* X12978Y1982D01* X12930Y1968D01* X12885Y1950D01* X12843Y1928D01* X12804Y1901D01* X12769Y1871D01* X12737Y1837D01* X12709Y1799D01* Y3201D01* X12737Y3163D01* D02* G37* G36* X15314Y1495D02* X15506Y1330D01* X15563Y1290D01* X15616Y1257D01* X15665Y1232D01* X15711Y1214D01* X15753Y1203D01* X15791Y1200D01* X14900Y309D01* X14897Y347D01* X14886Y389D01* X14868Y435D01* X14843Y484D01* X14810Y537D01* X14770Y594D01* X14667Y718D01* X14605Y786D01* X14536Y857D01* X15243Y1564D01* X15314Y1495D01* D02* G37* G36* X-55923Y1D02* X-55971Y-60D01* X-56013Y-123D01* X-56049Y-191D01* X-56080Y-262D01* X-56105Y-336D01* X-56125Y-414D01* X-56139Y-495D01* X-56147Y-581D01* X-56150Y-669D01* X-56850D01* X-56853Y-581D01* X-56861Y-495D01* X-56875Y-414D01* X-56895Y-336D01* X-56920Y-262D01* X-56951Y-191D01* X-56987Y-123D01* X-57029Y-60D01* X-57077Y1D01* X-57130Y57D01* X-55870D01* X-55923Y1D01* D02* G37* G36* X-51781Y-41D02* X-51829Y-101D01* X-51871Y-165D01* X-51907Y-233D01* X-51938Y-303D01* X-51963Y-378D01* X-51983Y-456D01* X-51997Y-537D01* X-52005Y-622D01* X-52008Y-711D01* X-52708D01* X-52711Y-622D01* X-52719Y-537D01* X-52733Y-456D01* X-52753Y-378D01* X-52778Y-303D01* X-52809Y-233D01* X-52845Y-165D01* X-52887Y-101D01* X-52935Y-41D01* X-52988Y16D01* X-51728D01* X-51781Y-41D01* D02* G37* G36* X-46152Y-748D02* X-46148Y-781D01* X-46142Y-812D01* X-46133Y-842D01* X-46122Y-869D01* X-46108Y-894D01* X-46092Y-918D01* X-46073Y-939D01* X-46052Y-958D01* X-46029Y-976D01* X-46877D01* X-46853Y-958D01* X-46832Y-939D01* X-46813Y-918D01* X-46797Y-894D01* X-46784Y-869D01* X-46773Y-842D01* X-46764Y-812D01* X-46758Y-781D01* X-46754Y-748D01* X-46753Y-713D01* X-46153D01* X-46152Y-748D01* D02* G37* G36* X-50039Y-757D02* X-50033Y-828D01* X-50028Y-859D01* X-50021Y-886D01* X-50013Y-911D01* X-50003Y-932D01* X-49992Y-950D01* X-49980Y-965D01* X-49966Y-976D01* X-50814D01* X-50800Y-965D01* X-50787Y-950D01* X-50776Y-932D01* X-50766Y-911D01* X-50758Y-886D01* X-50752Y-859D01* X-50746Y-828D01* X-50743Y-794D01* X-50740Y-717D01* X-50040D01* X-50039Y-757D01* D02* G37* G36* X-52008D02* X-52002Y-828D01* X-51996Y-859D01* X-51990Y-886D01* X-51982Y-911D01* X-51972Y-932D01* X-51961Y-950D01* X-51948Y-965D01* X-51934Y-976D01* X-52782D01* X-52768Y-965D01* X-52755Y-950D01* X-52744Y-932D01* X-52735Y-911D01* X-52727Y-886D01* X-52720Y-859D01* X-52715Y-828D01* X-52711Y-794D01* X-52708Y-717D01* X-52008D01* X-52008Y-757D01* D02* G37* G36* X-53950Y-735D02* X-53949Y-775D01* X-53942Y-874D01* X-53938Y-900D01* X-53933Y-922D01* X-53927Y-941D01* X-53920Y-956D01* X-53912Y-968D01* X-53903Y-976D01* X-54751D01* X-54732Y-961D01* X-54714Y-943D01* X-54699Y-923D01* X-54686Y-899D01* X-54675Y-873D01* X-54666Y-844D01* X-54659Y-812D01* X-54654Y-777D01* X-54651Y-739D01* X-54650Y-699D01* X-53950Y-735D01* D02* G37* G36* X16405Y-372D02* X16383Y-409D01* X16364Y-454D01* X16347Y-507D01* X16332Y-568D01* X16321Y-636D01* X16305Y-797D01* X16301Y-889D01* X16300Y-988D01* X15300D01* X15299Y-889D01* X15279Y-636D01* X15268Y-568D01* X15253Y-507D01* X15236Y-454D01* X15217Y-409D01* X15195Y-372D01* X15170Y-343D01* X16430D01* X16405Y-372D01* D02* G37* G36* X-12709Y-3201D02* X-12737Y-3163D01* X-12769Y-3129D01* X-12804Y-3098D01* X-12843Y-3072D01* X-12885Y-3050D01* X-12930Y-3032D01* X-12978Y-3018D01* X-13030Y-3008D01* X-13085Y-3002D01* X-13143Y-3000D01* Y-2000D01* X-13085Y-1998D01* X-13030Y-1992D01* X-12978Y-1982D01* X-12930Y-1968D01* X-12885Y-1950D01* X-12843Y-1928D01* X-12804Y-1901D01* X-12769Y-1871D01* X-12737Y-1837D01* X-12709Y-1799D01* Y-3201D01* D02* G37* G36* X-64508Y-3035D02* X-64512Y-3068D01* X-64513Y-3099D01* X-64512Y-3128D01* X-64508Y-3156D01* X-64502Y-3181D01* X-64493Y-3205D01* X-64482Y-3226D01* X-64469Y-3246D01* X-64453Y-3264D01* X-64736Y-3547D01* X-64754Y-3531D01* X-64774Y-3518D01* X-64795Y-3507D01* X-64819Y-3498D01* X-64845Y-3492D01* X-64872Y-3488D01* X-64901Y-3487D01* X-64932Y-3488D01* X-64965Y-3492D01* X-65000Y-3498D01* X-64502Y-3000D01* X-64508Y-3035D01* D02* G37* G36* X-17036Y-3643D02* X-17105Y-3714D01* X-17270Y-3906D01* X-17310Y-3963D01* X-17343Y-4016D01* X-17368Y-4065D01* X-17386Y-4111D01* X-17397Y-4153D01* X-17400Y-4191D01* X-18291Y-3300D01* X-18253Y-3297D01* X-18211Y-3286D01* X-18165Y-3268D01* X-18116Y-3243D01* X-18063Y-3210D01* X-18006Y-3170D01* X-17882Y-3067D01* X-17814Y-3005D01* X-17743Y-2936D01* X-17036Y-3643D01* D02* G37* G36* X-32083Y-2595D02* X-32073Y-2680D01* X-32058Y-2755D01* X-32036Y-2820D01* X-32008Y-2875D01* X-31973Y-2920D01* X-31933Y-2955D01* X-31886Y-2980D01* X-31833Y-2995D01* X-31774Y-3000D01* Y-4000D01* X-31833Y-4005D01* X-31886Y-4020D01* X-31933Y-4045D01* X-31973Y-4080D01* X-32008Y-4125D01* X-32036Y-4180D01* X-32058Y-4245D01* X-32073Y-4320D01* X-32083Y-4405D01* X-32086Y-4500D01* Y-2500D01* X-32083Y-2595D01* D02* G37* G36* X-40191Y-6032D02* X-40224Y-6040D01* X-40253Y-6052D01* X-40278Y-6070D01* X-40299Y-6092D01* X-40316Y-6120D01* X-40330Y-6152D01* X-40339Y-6190D01* X-40345Y-6232D01* X-40347Y-6280D01* X-40747D01* X-40749Y-6232D01* X-40755Y-6190D01* X-40765Y-6152D01* X-40778Y-6120D01* X-40796Y-6092D01* X-40817Y-6070D01* X-40842Y-6052D01* X-40871Y-6040D01* X-40904Y-6032D01* X-40941Y-6030D01* X-40154D01* X-40191Y-6032D01* D02* G37* G36* X12737Y-6837D02* X12769Y-6871D01* X12804Y-6901D01* X12843Y-6928D01* X12885Y-6950D01* X12930Y-6968D01* X12978Y-6982D01* X13030Y-6992D01* X13085Y-6998D01* X13143Y-7000D01* Y-8000D01* X13085Y-8002D01* X13030Y-8008D01* X12978Y-8018D01* X12930Y-8032D01* X12885Y-8050D01* X12843Y-8072D01* X12804Y-8099D01* X12769Y-8129D01* X12737Y-8163D01* X12709Y-8201D01* Y-6799D01* X12737Y-6837D01* D02* G37* G36* X-57199Y-8794D02* X-57346Y-8944D01* X-58464Y-8586D01* X-58391Y-8605D01* X-58321Y-8617D01* X-58252Y-8620D01* X-58185Y-8616D01* X-58120Y-8604D01* X-58056Y-8584D01* X-57995Y-8556D01* X-57935Y-8521D01* X-57877Y-8477D01* X-57820Y-8425D01* X-57199Y-8794D01* D02* G37* G36* X11338Y-8482D02* X11253Y-8492D01* X11178Y-8507D01* X11113Y-8529D01* X11058Y-8557D01* X11013Y-8592D01* X10978Y-8632D01* X10953Y-8679D01* X10938Y-8732D01* X10933Y-8791D01* X9933D01* X9928Y-8732D01* X9913Y-8679D01* X9888Y-8632D01* X9853Y-8592D01* X9808Y-8557D01* X9753Y-8529D01* X9688Y-8507D01* X9613Y-8492D01* X9528Y-8482D01* X9433Y-8479D01* X11433D01* X11338Y-8482D01* D02* G37* G36* X-35550Y-9265D02* X-35601Y-9253D01* X-35653Y-9248D01* X-35704Y-9249D01* X-35755Y-9257D01* X-35806Y-9272D01* X-35857Y-9293D01* X-35907Y-9320D01* X-35958Y-9354D01* X-36008Y-9394D01* X-36059Y-9441D01* X-36341Y-9159D01* X-36294Y-9108D01* X-36254Y-9058D01* X-36220Y-9007D01* X-36193Y-8957D01* X-36172Y-8906D01* X-36157Y-8855D01* X-36149Y-8804D01* X-36148Y-8753D01* X-36153Y-8701D01* X-36165Y-8650D01* X-35550Y-9265D01* D02* G37* G36* X-29530Y-9567D02* X-29532Y-9530D01* X-29540Y-9497D01* X-29552Y-9468D01* X-29570Y-9443D01* X-29592Y-9422D01* X-29620Y-9404D01* X-29652Y-9391D01* X-29690Y-9381D01* X-29732Y-9375D01* X-29780Y-9373D01* Y-8973D01* X-29732Y-8971D01* X-29690Y-8965D01* X-29652Y-8956D01* X-29620Y-8942D01* X-29592Y-8925D01* X-29570Y-8904D01* X-29552Y-8879D01* X-29540Y-8850D01* X-29532Y-8817D01* X-29530Y-8780D01* Y-9567D01* D02* G37* G36* X-43343Y-11230D02* X-43372Y-11205D01* X-43409Y-11183D01* X-43454Y-11164D01* X-43507Y-11147D01* X-43568Y-11133D01* X-43636Y-11121D01* X-43797Y-11105D01* X-43889Y-11101D01* X-43988Y-11100D01* Y-10100D01* X-43889Y-10099D01* X-43636Y-10079D01* X-43568Y-10068D01* X-43507Y-10053D01* X-43454Y-10036D01* X-43409Y-10017D01* X-43372Y-9995D01* X-43343Y-9970D01* Y-11230D01* D02* G37* G36* X-31596Y-10954D02* X-31583Y-11027D01* X-31561Y-11101D01* X-31531Y-11176D01* X-31492Y-11253D01* X-31445Y-11331D01* X-31389Y-11411D01* X-31325Y-11491D01* X-31252Y-11574D01* X-31170Y-11657D01* X-32430D01* X-32348Y-11574D01* X-32211Y-11411D01* X-32155Y-11331D01* X-32107Y-11253D01* X-32069Y-11176D01* X-32039Y-11101D01* X-32017Y-11027D01* X-32004Y-10954D01* X-32000Y-10882D01* X-31600D01* X-31596Y-10954D01* D02* G37* G36* X-50999Y-11226D02* X-50981Y-11439D01* X-50964Y-11534D01* X-50942Y-11623D01* X-50915Y-11705D01* X-50883Y-11779D01* X-50846Y-11847D01* X-50804Y-11907D01* X-50756Y-11961D01* X-51039Y-12244D01* X-51093Y-12196D01* X-51153Y-12154D01* X-51221Y-12117D01* X-51295Y-12085D01* X-51377Y-12058D01* X-51466Y-12036D01* X-51561Y-12019D01* X-51664Y-12008D01* X-51774Y-12001D01* X-51891Y-12000D01* X-51000Y-11109D01* X-50999Y-11226D01* D02* G37* G36* X-56936Y-13737D02* X-56965Y-13713D01* X-57002Y-13692D01* X-57047Y-13672D01* X-57100Y-13656D01* X-57161Y-13642D01* X-57229Y-13631D01* X-57390Y-13615D01* X-57482Y-13611D01* X-57581Y-13610D01* X-57595Y-12610D01* X-57495Y-12609D01* X-57243Y-12589D01* X-57175Y-12577D01* X-57114Y-12562D01* X-57061Y-12545D01* X-57016Y-12525D01* X-56979Y-12503D01* X-56950Y-12477D01* X-56936Y-13737D01* D02* G37* G36* X-64503Y-13517D02* X-64499Y-13536D01* X-64491Y-13558D01* X-64478Y-13582D01* X-64461Y-13610D01* X-64439Y-13640D01* X-64381Y-13708D01* X-64305Y-13788D01* X-65297Y-14210D01* X-65343Y-14169D01* X-65393Y-14133D01* X-65450Y-14101D01* X-65512Y-14074D01* X-65579Y-14051D01* X-65652Y-14031D01* X-65731Y-14017D01* X-65815Y-14006D01* X-65905Y-14000D01* X-66000Y-13998D01* X-64502Y-13500D01* X-64503Y-13517D01* D02* G37* G36* X-50852Y-15226D02* X-50989Y-15390D01* X-51045Y-15469D01* X-51092Y-15547D01* X-51131Y-15624D01* X-51161Y-15699D01* X-51183Y-15773D01* X-51196Y-15846D01* X-51200Y-15917D01* X-51600D01* X-51604Y-15846D01* X-51617Y-15773D01* X-51639Y-15699D01* X-51669Y-15624D01* X-51708Y-15547D01* X-51755Y-15469D01* X-51811Y-15390D01* X-51875Y-15309D01* X-51948Y-15226D01* X-52030Y-15143D01* X-50770D01* X-50852Y-15226D01* D02* G37* G36* X-1497Y-15776D02* X-1473Y-16097D01* X-1453Y-16242D01* X-1426Y-16376D01* X-1393Y-16501D01* X-1392Y-16505D01* X-1378Y-16515D01* X-1346Y-16530D01* X-1310Y-16540D01* X-1380D01* X-1355Y-16615D01* X-1311Y-16718D01* X-1260Y-16812D01* X-1204Y-16895D01* X-2707D01* Y-18208D01* X-2766Y-18168D01* X-2860Y-18133D01* X-2960Y-18109D01* Y-18190D01* X-2970Y-18154D01* X-2985Y-18122D01* X-3001Y-18100D01* X-3152Y-18075D01* X-3584Y-18033D01* X-4493Y-18002D01* X-4866Y-18000D01* Y-17000D01* X-4493Y-16998D01* X-3001Y-16899D01* X-2985Y-16878D01* X-2970Y-16846D01* X-2960Y-16810D01* Y-16891D01* X-2860Y-16867D01* X-2766Y-16832D01* X-2743Y-16817D01* X-2740Y-16812D01* X-2689Y-16718D01* X-2645Y-16615D01* X-2620Y-16540D01* X-2690D01* X-2654Y-16530D01* X-2622Y-16515D01* X-2608Y-16505D01* X-2607Y-16501D01* X-2574Y-16376D01* X-2547Y-16242D01* X-2527Y-16097D01* X-2503Y-15776D01* X-2500Y-15600D01* X-1500D01* X-1497Y-15776D01* D02* G37* G36* X9502Y-15507D02* X9601Y-16999D01* X9622Y-17015D01* X9654Y-17030D01* X9690Y-17040D01* X9609D01* X9633Y-17141D01* X9668Y-17234D01* X9708Y-17293D01* X8292D01* X8332Y-17234D01* X8367Y-17141D01* X8391Y-17040D01* X8310D01* X8346Y-17030D01* X8378Y-17015D01* X8400Y-16998D01* X8425Y-16848D01* X8467Y-16416D01* X8498Y-15507D01* X8500Y-15134D01* X9500D01* X9502Y-15507D01* D02* G37* G36* X6003Y-15797D02* X6065Y-16736D01* X6094Y-16908D01* X6117Y-17011D01* X6122Y-17015D01* X6154Y-17030D01* X6190Y-17040D01* X6124D01* X6127Y-17056D01* X6166Y-17179D01* X6211Y-17277D01* X6260Y-17350D01* X4740D01* X4789Y-17277D01* X4834Y-17179D01* X4873Y-17056D01* X4876Y-17040D01* X4810D01* X4846Y-17030D01* X4878Y-17015D01* X4883Y-17011D01* X4906Y-16908D01* X4935Y-16736D01* X4977Y-16316D01* X4997Y-15797D01* X5000Y-15500D01* X6000D01* X6003Y-15797D01* D02* G37* G36* X-57468Y-18659D02* X-57460Y-18692D01* X-57448Y-18721D01* X-57430Y-18746D01* X-57408Y-18767D01* X-57380Y-18785D01* X-57348Y-18798D01* X-57310Y-18808D01* X-57268Y-18814D01* X-57220Y-18816D01* Y-19216D01* X-57268Y-19218D01* X-57310Y-19223D01* X-57348Y-19233D01* X-57380Y-19247D01* X-57408Y-19264D01* X-57430Y-19285D01* X-57448Y-19310D01* X-57460Y-19340D01* X-57468Y-19372D01* X-57470Y-19409D01* Y-18622D01* X-57468Y-18659D01* D02* G37* G36* X-64716Y-17914D02* X-64754Y-17993D01* X-64776Y-18076D01* X-64780Y-18163D01* X-64766Y-18253D01* X-64735Y-18347D01* X-64686Y-18444D01* X-64620Y-18545D01* X-64536Y-18650D01* X-64435Y-18758D01* X-65054Y-19553D01* X-65170Y-19444D01* X-65281Y-19354D01* X-65386Y-19284D01* X-65486Y-19232D01* X-65581Y-19200D01* X-65670Y-19187D01* X-65754Y-19194D01* X-65832Y-19220D01* X-65906Y-19265D01* X-65973Y-19329D01* X-64659Y-17839D01* X-64716Y-17914D01* D02* G37* G36* X-56427Y-19646D02* X-56511Y-19564D01* X-56674Y-19426D01* X-56753Y-19371D01* X-56831Y-19323D01* X-56908Y-19285D01* X-56984Y-19254D01* X-57058Y-19233D01* X-57130Y-19220D01* X-57202Y-19216D01* Y-18816D01* X-57130Y-18812D01* X-57058Y-18799D01* X-56984Y-18777D01* X-56908Y-18747D01* X-56831Y-18708D01* X-56753Y-18661D01* X-56674Y-18605D01* X-56593Y-18541D01* X-56511Y-18467D01* X-56427Y-18386D01* Y-19646D01* D02* G37* G36* X-21828Y-18695D02* X-21791Y-18717D01* X-21746Y-18736D01* X-21693Y-18753D01* X-21632Y-18767D01* X-21564Y-18779D01* X-21403Y-18795D01* X-21311Y-18799D01* X-21212Y-18800D01* Y-19800D01* X-21311Y-19801D01* X-21564Y-19821D01* X-21632Y-19832D01* X-21693Y-19847D01* X-21746Y-19864D01* X-21791Y-19883D01* X-21828Y-19905D01* X-21857Y-19930D01* Y-18670D01* X-21828Y-18695D01* D02* G37* G36* X-17391Y-19895D02* X-17283Y-19982D01* X-17180Y-20051D01* X-17081Y-20101D01* X-16987Y-20132D01* X-16897Y-20145D01* X-16812Y-20140D01* X-16731Y-20117D01* X-16655Y-20075D01* X-16583Y-20014D01* X-17986Y-21417D01* X-17925Y-21345D01* X-17883Y-21269D01* X-17860Y-21188D01* X-17855Y-21103D01* X-17868Y-21013D01* X-17899Y-20919D01* X-17949Y-20820D01* X-18018Y-20717D01* X-18105Y-20609D01* X-18210Y-20497D01* X-17503Y-19790D01* X-17391Y-19895D01* D02* G37* G36* X-16346Y-21970D02* X-16378Y-21985D01* X-16407Y-22006D01* X-16432Y-22032D01* X-16452Y-22063D01* X-16469Y-22099D01* X-16483Y-22141D01* X-16492Y-22188D01* X-16498Y-22240D01* X-16500Y-22298D01* X-17500D01* X-17502Y-22240D01* X-17508Y-22188D01* X-17517Y-22141D01* X-17530Y-22099D01* X-17548Y-22063D01* X-17569Y-22032D01* X-17593Y-22006D01* X-17622Y-21985D01* X-17654Y-21970D01* X-17690Y-21960D01* X-16310D01* X-16346Y-21970D01* D02* G37* G36* X-51993Y-19690D02* X-51972Y-19881D01* X-51936Y-20066D01* X-51887Y-20246D01* X-51823Y-20420D01* X-51745Y-20587D01* X-51653Y-20749D01* X-51547Y-20905D01* X-51490Y-20978D01* X-51447Y-21009D01* X-51389Y-21046D01* X-51335Y-21076D01* X-51283Y-21097D01* X-51236Y-21110D01* X-51191Y-21115D01* X-51150Y-21113D01* X-51329Y-21359D01* X-51553Y-22354D01* X-51638Y-22279D01* X-51714Y-22233D01* X-51781Y-22216D01* X-51839Y-22228D01* X-51888Y-22269D01* X-51929Y-22339D01* X-51960Y-22437D01* X-51982Y-22565D01* X-51995Y-22722D01* X-52000Y-22907D01* X-53000Y-20700D01* X-52000Y-19493D01* X-51993Y-19690D01* D02* G37* G36* X-16498Y-23260D02* X-16492Y-23312D01* X-16483Y-23359D01* X-16469Y-23401D01* X-16452Y-23437D01* X-16432Y-23468D01* X-16407Y-23494D01* X-16378Y-23515D01* X-16346Y-23530D01* X-16310Y-23540D01* X-17690D01* X-17654Y-23530D01* X-17622Y-23515D01* X-17593Y-23494D01* X-17569Y-23468D01* X-17548Y-23437D01* X-17530Y-23401D01* X-17517Y-23359D01* X-17508Y-23312D01* X-17502Y-23260D01* X-17500Y-23202D01* X-16500D01* X-16498Y-23260D01* D02* G37* G36* X-64435Y-25442D02* X-64476Y-25489D01* X-64512Y-25544D01* X-64543Y-25607D01* X-64571Y-25678D01* X-64594Y-25758D01* X-64613Y-25846D01* X-64628Y-25943D01* X-64645Y-26160D01* X-64647Y-26281D01* X-65187Y-24659D01* X-65166Y-24661D01* X-65142Y-24658D01* X-65117Y-24650D01* X-65089Y-24638D01* X-65058Y-24621D01* X-65026Y-24600D01* X-64991Y-24573D01* X-64915Y-24507D01* X-64874Y-24467D01* X-64435Y-25442D01* D02* G37* G36* X-16346Y-25470D02* X-16378Y-25485D01* X-16407Y-25506D01* X-16432Y-25532D01* X-16452Y-25563D01* X-16469Y-25600D01* X-16483Y-25641D01* X-16492Y-25688D01* X-16498Y-25740D01* X-16500Y-25798D01* X-17500D01* X-17502Y-25740D01* X-17508Y-25688D01* X-17517Y-25641D01* X-17530Y-25600D01* X-17548Y-25563D01* X-17569Y-25532D01* X-17593Y-25506D01* X-17622Y-25485D01* X-17654Y-25470D01* X-17690Y-25460D01* X-16310D01* X-16346Y-25470D01* D02* G37* G36* X-449Y-23405D02* X-344Y-23530D01* X-309Y-23583D01* X-286Y-23629D01* X-275Y-23668D01* X-276Y-23700D01* X-289Y-23726D01* X-314Y-23744D01* X-350Y-23756D01* X-940Y-26665D01* X-945Y-26485D01* X-978Y-26155D01* X-1008Y-26005D01* X-1046Y-25865D01* X-1093Y-25735D01* X-1148Y-25615D01* X-1212Y-25505D01* X-1284Y-25405D01* X-1364Y-25315D01* X-519Y-23332D01* X-449Y-23405D01* D02* G37* G36* X-16498Y-26760D02* X-16492Y-26812D01* X-16483Y-26859D01* X-16469Y-26901D01* X-16452Y-26937D01* X-16432Y-26968D01* X-16407Y-26994D01* X-16378Y-27015D01* X-16346Y-27030D01* X-16310Y-27040D01* X-17690D01* X-17654Y-27030D01* X-17622Y-27015D01* X-17593Y-26994D01* X-17569Y-26968D01* X-17548Y-26937D01* X-17530Y-26901D01* X-17517Y-26859D01* X-17508Y-26812D01* X-17502Y-26760D01* X-17500Y-26702D01* X-16500D01* X-16498Y-26760D01* D02* G37* G36* X-940Y-26665D02* X559Y-27243D01* X460Y-27210D01* X362Y-27190D01* X266Y-27182D01* X171Y-27186D01* X79Y-27202D01* X-12Y-27231D01* X-102Y-27272D01* X-189Y-27324D01* X-276Y-27390D01* X-360Y-27467D01* X-1152Y-26845D01* X-1113Y-26806D01* X-950Y-26664D01* X-943Y-26662D01* X-940Y-26665D01* D02* G37* G36* X-62530Y-27283D02* X-62532Y-27246D01* X-62540Y-27213D01* X-62552Y-27185D01* X-62570Y-27159D01* X-62592Y-27138D01* X-62620Y-27121D01* X-62652Y-27107D01* X-62690Y-27097D01* X-62732Y-27092D01* X-62780Y-27090D01* Y-26690D01* X-62732Y-26688D01* X-62690Y-26682D01* X-62652Y-26672D01* X-62620Y-26659D01* X-62592Y-26641D01* X-62570Y-26620D01* X-62552Y-26595D01* X-62540Y-26566D01* X-62532Y-26533D01* X-62530Y-26496D01* Y-27283D01* D02* G37* G36* X-29530Y-27283D02* X-29532Y-27246D01* X-29540Y-27213D01* X-29552Y-27185D01* X-29570Y-27159D01* X-29592Y-27138D01* X-29620Y-27121D01* X-29652Y-27107D01* X-29690Y-27097D01* X-29732Y-27092D01* X-29780Y-27090D01* Y-26690D01* X-29732Y-26688D01* X-29690Y-26682D01* X-29652Y-26672D01* X-29620Y-26659D01* X-29592Y-26641D01* X-29570Y-26620D01* X-29552Y-26595D01* X-29540Y-26566D01* X-29532Y-26533D01* X-29530Y-26496D01* Y-27283D01* D02* G37* G36* X-12075Y-27655D02* X-12117Y-27731D01* X-12140Y-27812D01* X-12145Y-27897D01* X-12132Y-27987D01* X-12101Y-28081D01* X-12051Y-28180D01* X-11982Y-28283D01* X-11895Y-28390D01* X-11790Y-28503D01* X-12497Y-29210D01* X-12609Y-29105D01* X-12717Y-29018D01* X-12820Y-28949D01* X-12919Y-28899D01* X-13013Y-28868D01* X-13103Y-28855D01* X-13188Y-28860D01* X-13269Y-28883D01* X-13345Y-28925D01* X-13417Y-28986D01* X-12014Y-27583D01* X-12075Y-27655D01* D02* G37* G36* X-62530Y-29252D02* X-62532Y-29215D01* X-62540Y-29182D01* X-62552Y-29153D01* X-62570Y-29128D01* X-62592Y-29107D01* X-62620Y-29089D01* X-62652Y-29076D01* X-62690Y-29066D01* X-62732Y-29060D01* X-62780Y-29058D01* Y-28658D01* X-62732Y-28656D01* X-62690Y-28651D01* X-62652Y-28641D01* X-62620Y-28627D01* X-62592Y-28610D01* X-62570Y-28589D01* X-62552Y-28563D01* X-62540Y-28534D01* X-62532Y-28502D01* X-62530Y-28465D01* Y-29252D01* D02* G37* G36* X-21518Y-7680D02* Y-12400D01* X-21448Y-12751D01* X-21249Y-13049D01* X-16149Y-18149D01* X-15851Y-18348D01* X-15500Y-18418D01* X-4905D01* X-4868Y-18433D01* X-4502Y-18435D01* X-3612Y-18465D01* X-3427Y-18483D01* Y-23265D01* X-3427Y-23265D01* X-3319Y-23812D01* X-3009Y-24275D01* X-1691Y-25594D01* X-1687Y-25604D01* X-1622Y-25677D01* X-1576Y-25741D01* X-1533Y-25814D01* X-1494Y-25899D01* X-1460Y-25995D01* X-1430Y-26104D01* X-1407Y-26219D01* X-1382Y-26466D01* X-1398Y-26481D01* X-1405Y-26493D01* X-1418Y-26499D01* X-1457Y-26538D01* X-1468Y-26564D01* X-1493Y-26578D01* X-1500Y-26602D01* X-3680Y-28782D01* X-6000D01* X-6351Y-28852D01* X-6649Y-29051D01* X-9700Y-32102D01* X-10200Y-31895D01* Y-31641D01* X-10398Y-31164D01* X-10517Y-31045D01* X-10519Y-31028D01* X-10520Y-31019D01* X-10521Y-31014D01* X-10522Y-31007D01* X-10531Y-30993D01* X-10536Y-30977D01* X-10543Y-30946D01* X-10549Y-30910D01* X-10566Y-30692D01* X-10567Y-30606D01* X-10582Y-30570D01* Y-29500D01* X-10652Y-29149D01* X-10851Y-28851D01* X-11462Y-28241D01* X-11474Y-28206D01* X-11569Y-28106D01* X-11582Y-28089D01* Y-27586D01* X-11581Y-27583D01* X-11582Y-27581D01* Y-27500D01* X-11652Y-27149D01* X-11851Y-26851D01* X-12149Y-26652D01* X-12500Y-26582D01* X-13500D01* X-13851Y-26652D01* X-14149Y-26851D01* X-14348Y-27149D01* X-14418Y-27500D01* Y-28500D01* X-14348Y-28851D01* X-14149Y-29149D01* X-13851Y-29348D01* X-13500Y-29418D01* X-13419D01* X-13417Y-29419D01* X-13415Y-29418D01* X-12911D01* X-12894Y-29431D01* X-12794Y-29526D01* X-12759Y-29538D01* X-12418Y-29880D01* Y-30570D01* X-12433Y-30606D01* X-12434Y-30699D01* X-12437Y-30773D01* X-12450Y-30906D01* X-12457Y-30946D01* X-12464Y-30977D01* X-12470Y-30993D01* X-12477Y-31007D01* X-12479Y-31014D01* X-12481Y-31019D01* X-12481Y-31028D01* X-12483Y-31045D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-12386Y-33481D01* X-12468Y-33582D01* X-24155D01* X-24188Y-33567D01* X-24207Y-33567D01* X-24209Y-33563D01* X-24234Y-33503D01* X-24255Y-33495D01* X-24351Y-33351D01* X-24649Y-33152D01* X-25000Y-33082D01* X-25081D01* X-25083Y-33081D01* X-25085Y-33082D01* X-25589D01* X-25606Y-33069D01* X-25706Y-32974D01* X-25741Y-32962D01* X-26082Y-32620D01* Y-31852D01* X-26064Y-31850D01* X-25986Y-31847D01* X-25984Y-31846D01* X-24900D01* X-24510Y-31769D01* X-24179Y-31548D01* X-23958Y-31217D01* X-23880Y-30827D01* X-23958Y-30437D01* X-24179Y-30106D01* X-24510Y-29885D01* X-24900Y-29807D01* X-29100D01* X-29490Y-29885D01* X-29821Y-30106D01* X-29951Y-30300D01* X-30451Y-30148D01* Y-28369D01* X-29744Y-27662D01* X-29490Y-27832D01* X-29100Y-27909D01* X-24900D01* X-24510Y-27832D01* X-24179Y-27611D01* X-23958Y-27280D01* X-23880Y-26890D01* X-23958Y-26500D01* X-24179Y-26169D01* Y-25642D01* X-23958Y-25311D01* X-23880Y-24921D01* X-23958Y-24531D01* X-24179Y-24200D01* Y-23674D01* X-23958Y-23343D01* X-23880Y-22953D01* X-23958Y-22563D01* X-24179Y-22232D01* Y-21705D01* X-23958Y-21374D01* X-23880Y-20984D01* X-23958Y-20594D01* X-23848Y-20088D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21644Y-20283D01* X-21628Y-20281D01* X-21619Y-20280D01* X-21614Y-20279D01* X-21607Y-20278D01* X-21593Y-20269D01* X-21577Y-20264D01* X-21546Y-20257D01* X-21510Y-20251D01* X-21292Y-20234D01* X-21206Y-20233D01* X-21170Y-20218D01* X-19080D01* X-18538Y-20759D01* X-18526Y-20794D01* X-18431Y-20894D01* X-18418Y-20911D01* Y-21415D01* X-18418Y-21417D01* X-18418Y-21419D01* Y-21500D01* X-18348Y-21851D01* X-18149Y-22149D01* X-18005Y-22245D01* X-17997Y-22266D01* X-17937Y-22291D01* X-17933Y-22293D01* X-17933Y-22312D01* X-17918Y-22345D01* Y-23155D01* X-17933Y-23188D01* X-17933Y-23207D01* X-17937Y-23209D01* X-17997Y-23234D01* X-18005Y-23255D01* X-18149Y-23351D01* X-18348Y-23649D01* X-18418Y-24000D01* Y-25000D01* X-18348Y-25351D01* X-18149Y-25649D01* X-18005Y-25745D01* X-17997Y-25766D01* X-17937Y-25791D01* X-17933Y-25793D01* X-17933Y-25812D01* X-17918Y-25845D01* Y-26655D01* X-17933Y-26688D01* X-17933Y-26707D01* X-17937Y-26709D01* X-17997Y-26734D01* X-18005Y-26755D01* X-18149Y-26851D01* X-18348Y-27149D01* X-18418Y-27500D01* Y-28500D01* X-18348Y-28851D01* X-18149Y-29149D01* X-17851Y-29348D01* X-17500Y-29418D01* X-16500D01* X-16149Y-29348D01* X-15851Y-29149D01* X-15652Y-28851D01* X-15582Y-28500D01* Y-27500D01* X-15652Y-27149D01* X-15851Y-26851D01* X-15995Y-26755D01* X-16003Y-26734D01* X-16063Y-26709D01* X-16067Y-26707D01* X-16067Y-26688D01* X-16082Y-26655D01* Y-25845D01* X-16067Y-25812D01* X-16067Y-25793D01* X-16063Y-25791D01* X-16003Y-25766D01* X-15995Y-25745D01* X-15851Y-25649D01* X-15652Y-25351D01* X-15582Y-25000D01* Y-24000D01* X-15652Y-23649D01* X-15851Y-23351D01* X-15995Y-23255D01* X-16003Y-23234D01* X-16063Y-23209D01* X-16067Y-23207D01* X-16067Y-23188D01* X-16082Y-23155D01* Y-22345D01* X-16067Y-22312D01* X-16067Y-22293D01* X-16063Y-22291D01* X-16003Y-22266D01* X-15995Y-22245D01* X-15851Y-22149D01* X-15652Y-21851D01* X-15582Y-21500D01* Y-20500D01* X-15652Y-20149D01* X-15851Y-19851D01* X-16149Y-19652D01* X-16500Y-19582D01* X-16581D01* X-16583Y-19581D01* X-16586Y-19582D01* X-17089D01* X-17106Y-19569D01* X-17206Y-19475D01* X-17241Y-19462D01* X-18051Y-18651D01* X-18349Y-18452D01* X-18700Y-18382D01* X-21170D01* X-21206Y-18367D01* X-21299Y-18366D01* X-21373Y-18363D01* X-21506Y-18350D01* X-21546Y-18343D01* X-21577Y-18336D01* X-21593Y-18330D01* X-21607Y-18323D01* X-21614Y-18321D01* X-21619Y-18319D01* X-21628Y-18319D01* X-21644Y-18317D01* X-21764Y-18198D01* X-22241Y-18000D01* X-22759D01* X-23236Y-18198D01* X-23507Y-18469D01* X-23533Y-18478D01* X-23942Y-18471D01* X-24088Y-18431D01* X-24179Y-18295D01* Y-17768D01* X-23958Y-17437D01* X-23880Y-17047D01* X-23958Y-16657D01* X-24179Y-16326D01* Y-15800D01* X-23958Y-15469D01* X-23880Y-15079D01* X-23958Y-14689D01* X-24179Y-14358D01* Y-13831D01* X-23958Y-13500D01* X-23880Y-13110D01* X-23958Y-12720D01* X-24179Y-12389D01* Y-11863D01* X-23958Y-11532D01* X-23880Y-11142D01* X-23958Y-10752D01* X-24179Y-10421D01* Y-9894D01* X-23958Y-9563D01* X-23880Y-9173D01* X-23958Y-8783D01* X-24179Y-8452D01* X-24510Y-8231D01* X-24900Y-8154D01* X-29100D01* X-29490Y-8231D01* X-29821Y-8452D01* X-29835Y-8473D01* X-29836Y-8474D01* X-29837Y-8477D01* X-29869Y-8524D01* X-30173D01* X-30632Y-8714D01* X-31256Y-9337D01* X-31756Y-9130D01* Y-6027D01* X-31731Y-5990D01* X-31654Y-5600D01* Y-4516D01* X-31653Y-4514D01* X-31650Y-4436D01* X-31648Y-4418D01* X-24780D01* X-21518Y-7680D01* D02* G37* G36* X-68290Y-30997D02* X-68396Y-31109D01* X-68482Y-31217D01* X-68551Y-31320D01* X-68601Y-31419D01* X-68632Y-31513D01* X-68645Y-31603D01* X-68640Y-31688D01* X-68617Y-31769D01* X-68575Y-31845D01* X-68514Y-31917D01* X-69917Y-30514D01* X-69845Y-30575D01* X-69769Y-30617D01* X-69688Y-30640D01* X-69603Y-30645D01* X-69513Y-30632D01* X-69419Y-30601D01* X-69320Y-30551D01* X-69217Y-30482D01* X-69109Y-30395D01* X-68997Y-30290D01* X-68290Y-30997D01* D02* G37* G36* X-10999Y-30711D02* X-10979Y-30964D01* X-10967Y-31032D01* X-10953Y-31093D01* X-10936Y-31146D01* X-10917Y-31191D01* X-10895Y-31228D01* X-10870Y-31257D01* X-12130D01* X-12105Y-31228D01* X-12083Y-31191D01* X-12064Y-31146D01* X-12047Y-31093D01* X-12032Y-31032D01* X-12021Y-30964D01* X-12005Y-30803D01* X-12001Y-30711D01* X-12000Y-30612D01* X-11000D01* X-10999Y-30711D01* D02* G37* G36* X-59320Y-31416D02* X-59560Y-31435D01* X-59666Y-31450D01* X-59763Y-31470D01* X-59850Y-31495D01* X-59928Y-31524D01* X-59996Y-31558D01* X-60055Y-31596D01* X-60105Y-31638D01* X-61519D01* X-61483Y-31596D01* X-61467Y-31558D01* X-61469Y-31524D01* X-61490Y-31495D01* X-61530Y-31470D01* X-61589Y-31450D01* X-61667Y-31435D01* X-61764Y-31423D01* X-61879Y-31416D01* X-62014Y-31414D01* X-59185D01* X-59320Y-31416D01* D02* G37* G36* X-26095Y-31417D02* X-26180Y-31427D01* X-26255Y-31442D01* X-26320Y-31464D01* X-26375Y-31492D01* X-26420Y-31527D01* X-26455Y-31567D01* X-26480Y-31614D01* X-26495Y-31667D01* X-26500Y-31726D01* X-27500D01* X-27505Y-31667D01* X-27520Y-31614D01* X-27545Y-31567D01* X-27580Y-31527D01* X-27625Y-31492D01* X-27680Y-31464D01* X-27745Y-31442D01* X-27820Y-31427D01* X-27905Y-31417D01* X-28000Y-31414D01* X-26000D01* X-26095Y-31417D01* D02* G37* G36* X-50835Y-30978D02* X-50653Y-31105D01* X-50566Y-31157D01* X-50482Y-31201D01* X-50402Y-31236D01* X-50325Y-31264D01* X-50251Y-31284D01* X-50179Y-31296D01* X-50112Y-31300D01* X-50066Y-31700D01* X-50139Y-31705D01* X-50213Y-31718D01* X-50286Y-31741D01* X-50359Y-31773D01* X-50432Y-31814D01* X-50504Y-31864D01* X-50577Y-31923D01* X-50648Y-31991D01* X-50720Y-32068D01* X-50791Y-32155D01* X-50931Y-30902D01* X-50835Y-30978D01* D02* G37* G36* X-65138Y-32487D02* X-65172Y-32491D01* X-65202Y-32497D01* X-65228Y-32507D01* X-65250Y-32519D01* X-65268Y-32533D01* X-65282Y-32550D01* X-65292Y-32570D01* X-65298Y-32592D01* X-65300Y-32618D01* X-65700D01* X-65702Y-32592D01* X-65708Y-32570D01* X-65718Y-32550D01* X-65732Y-32533D01* X-65750Y-32519D01* X-65772Y-32507D01* X-65798Y-32497D01* X-65828Y-32491D01* X-65862Y-32487D01* X-65900Y-32486D01* X-65100D01* X-65138Y-32487D01* D02* G37* G36* X-37979Y-32457D02* X-38000Y-32494D01* X-38018Y-32539D01* X-38034Y-32592D01* X-38048Y-32653D01* X-38059Y-32721D01* X-38074Y-32882D01* X-38079Y-33074D01* X-39079Y-33102D01* X-39080Y-33002D01* X-39101Y-32750D01* X-39113Y-32682D01* X-39128Y-32622D01* X-39145Y-32569D01* X-39166Y-32524D01* X-39189Y-32487D01* X-39215Y-32457D01* X-37955Y-32428D01* X-37979Y-32457D01* D02* G37* G36* X-61498Y-33260D02* X-61492Y-33312D01* X-61483Y-33359D01* X-61470Y-33400D01* X-61452Y-33437D01* X-61431Y-33468D01* X-61407Y-33494D01* X-61378Y-33515D01* X-61346Y-33530D01* X-61310Y-33540D01* X-62690D01* X-62654Y-33530D01* X-62622Y-33515D01* X-62593Y-33494D01* X-62569Y-33468D01* X-62548Y-33437D01* X-62530Y-33400D01* X-62517Y-33359D01* X-62508Y-33312D01* X-62502Y-33260D01* X-62500Y-33202D01* X-61500D01* X-61498Y-33260D01* D02* G37* G36* X-44282Y-33768D02* X-44276Y-33810D01* X-44267Y-33848D01* X-44253Y-33880D01* X-44236Y-33908D01* X-44215Y-33930D01* X-44190Y-33948D01* X-44161Y-33960D01* X-44128Y-33968D01* X-44091Y-33970D01* X-44878D01* X-44841Y-33968D01* X-44808Y-33960D01* X-44779Y-33948D01* X-44754Y-33930D01* X-44733Y-33908D01* X-44715Y-33880D01* X-44702Y-33848D01* X-44692Y-33810D01* X-44686Y-33768D01* X-44684Y-33720D01* X-44284D01* X-44282Y-33768D01* D02* G37* G36* X-46251D02* X-46245Y-33810D01* X-46235Y-33848D01* X-46222Y-33880D01* X-46204Y-33908D01* X-46183Y-33930D01* X-46158Y-33948D01* X-46129Y-33960D01* X-46096Y-33968D01* X-46059Y-33970D01* X-46846D01* X-46809Y-33968D01* X-46777Y-33960D01* X-46747Y-33948D01* X-46722Y-33930D01* X-46701Y-33908D01* X-46684Y-33880D01* X-46670Y-33848D01* X-46661Y-33810D01* X-46655Y-33768D01* X-46653Y-33720D01* X-46253D01* X-46251Y-33768D01* D02* G37* G36* X-65298Y-33907D02* X-65292Y-33930D01* X-65282Y-33950D01* X-65268Y-33967D01* X-65250Y-33981D01* X-65228Y-33993D01* X-65202Y-34003D01* X-65172Y-34009D01* X-65138Y-34013D01* X-65100Y-34014D01* X-65900D01* X-65862Y-34013D01* X-65828Y-34009D01* X-65798Y-34003D01* X-65772Y-33993D01* X-65750Y-33981D01* X-65732Y-33967D01* X-65718Y-33950D01* X-65708Y-33930D01* X-65702Y-33907D01* X-65700Y-33882D01* X-65300D01* X-65298Y-33907D01* D02* G37* G36* X-42516Y-33801D02* X-43030Y-34133D01* X-42999Y-34110D01* X-42974Y-34087D01* X-42956Y-34064D01* X-42944Y-34039D01* X-42939Y-34014D01* X-42939Y-33988D01* X-42946Y-33962D01* X-42959Y-33935D01* X-42979Y-33907D01* X-43005Y-33878D01* X-42601Y-33716D01* X-42516Y-33801D01* D02* G37* G36* X-35977Y-34050D02* X-36003Y-34079D01* X-36025Y-34116D01* X-36045Y-34161D01* X-36062Y-34214D01* X-36077Y-34275D01* X-36089Y-34343D01* X-36105Y-34504D01* X-36109Y-34595D01* X-36110Y-34695D01* X-37110Y-34681D01* X-37111Y-34582D01* X-37131Y-34329D01* X-37142Y-34261D01* X-37156Y-34200D01* X-37172Y-34147D01* X-37192Y-34102D01* X-37213Y-34065D01* X-37237Y-34036D01* X-35977Y-34050D01* D02* G37* G36* X-39942Y-34225D02* X-39964Y-34262D01* X-39984Y-34307D01* X-40001Y-34360D01* X-40015Y-34421D01* X-40027Y-34489D01* X-40042Y-34649D01* X-40046Y-34741D01* X-40047Y-34841D01* X-41047D01* X-41049Y-34741D01* X-41068Y-34489D01* X-41080Y-34421D01* X-41094Y-34360D01* X-41111Y-34307D01* X-41131Y-34262D01* X-41153Y-34225D01* X-41177Y-34196D01* X-39917D01* X-39942Y-34225D01* D02* G37* G36* X-25890Y-33395D02* X-25783Y-33482D01* X-25680Y-33551D01* X-25581Y-33601D01* X-25487Y-33632D01* X-25397Y-33645D01* X-25312Y-33640D01* X-25231Y-33617D01* X-25155Y-33575D01* X-25083Y-33514D01* X-26486Y-34917D01* X-26425Y-34845D01* X-26383Y-34769D01* X-26360Y-34688D01* X-26355Y-34603D01* X-26368Y-34513D01* X-26399Y-34419D01* X-26449Y-34320D01* X-26518Y-34217D01* X-26605Y-34110D01* X-26710Y-33997D01* X-26003Y-33290D01* X-25890Y-33395D01* D02* G37* G36* X-54914Y-37315D02* X-54917Y-37180D01* X-54935Y-36940D01* X-54950Y-36834D01* X-54970Y-36737D01* X-54995Y-36650D01* X-55024Y-36572D01* X-55058Y-36504D01* X-55096Y-36445D01* X-55138Y-36395D01* Y-34981D01* X-55096Y-35017D01* X-55058Y-35033D01* X-55024Y-35031D01* X-54995Y-35010D01* X-54970Y-34970D01* X-54950Y-34911D01* X-54935Y-34833D01* X-54923Y-34736D01* X-54917Y-34621D01* X-54914Y-34486D01* Y-37315D01* D02* G37* G36* X-24530Y-33846D02* X-24515Y-33878D01* X-24494Y-33907D01* X-24468Y-33931D01* X-24437Y-33952D01* X-24400Y-33970D01* X-24359Y-33983D01* X-24312Y-33992D01* X-24260Y-33998D01* X-24202Y-34000D01* Y-35000D01* X-24260Y-35002D01* X-24312Y-35008D01* X-24359Y-35017D01* X-24400Y-35030D01* X-24437Y-35048D01* X-24468Y-35069D01* X-24494Y-35093D01* X-24515Y-35122D01* X-24530Y-35154D01* X-24540Y-35190D01* Y-33810D01* X-24530Y-33846D01* D02* G37* G36* X-61030D02* X-61015Y-33878D01* X-60994Y-33907D01* X-60968Y-33931D01* X-60937Y-33952D01* X-60900Y-33970D01* X-60859Y-33983D01* X-60812Y-33992D01* X-60760Y-33998D01* X-60702Y-34000D01* Y-35000D01* X-60760Y-35002D01* X-60812Y-35008D01* X-60859Y-35017D01* X-60900Y-35030D01* X-60937Y-35048D01* X-60968Y-35069D01* X-60994Y-35093D01* X-61015Y-35122D01* X-61030Y-35154D01* X-61040Y-35190D01* Y-33810D01* X-61030Y-33846D01* D02* G37* G36* X-6233Y-35329D02* X-8248D01* X-8246Y-35322D01* X-8245Y-35303D01* X-8241Y-35030D01* X-8240Y-34724D01* X-6240D01* X-6233Y-35329D01* D02* G37* G36* X1300Y-34807D02* X1299Y-34912D01* X1274Y-35297D01* X1267Y-35319D01* X1258Y-35330D01* X1248Y-35329D01* X-768D01* X-755Y-35314D01* X-743Y-35289D01* X-733Y-35252D01* X-724Y-35204D01* X-717Y-35145D01* X-706Y-34994D01* X-700Y-34684D01* X1300Y-34807D01* D02* G37* G36* X-9593Y-34000D02* X-9727Y-34144D01* X-9848Y-34295D01* X-9954Y-34451D01* X-10045Y-34613D01* X-10123Y-34780D01* X-10187Y-34954D01* X-10236Y-35133D01* X-10272Y-35319D01* X-10293Y-35510D01* X-10300Y-35707D01* X-11300Y-36000D01* X-11310Y-35810D01* X-11340Y-35640D01* X-11390Y-35490D01* X-11460Y-35360D01* X-11550Y-35250D01* X-11660Y-35160D01* X-11790Y-35090D01* X-11940Y-35040D01* X-12110Y-35010D01* X-12300Y-35000D01* X-12007Y-34000D01* X-11810Y-33993D01* X-11619Y-33972D01* X-11434Y-33936D01* X-11254Y-33887D01* X-11080Y-33823D01* X-10913Y-33745D01* X-10751Y-33654D01* X-10595Y-33547D01* X-10444Y-33427D01* X-10300Y-33293D01* X-9593Y-34000D01* D02* G37* G36* X-64508Y-35535D02* X-64512Y-35568D01* X-64513Y-35599D01* X-64512Y-35628D01* X-64508Y-35656D01* X-64502Y-35681D01* X-64493Y-35705D01* X-64482Y-35726D01* X-64469Y-35746D01* X-64453Y-35764D01* X-64736Y-36047D01* X-64754Y-36031D01* X-64774Y-36018D01* X-64795Y-36007D01* X-64819Y-35998D01* X-64845Y-35992D01* X-64872Y-35988D01* X-64901Y-35987D01* X-64932Y-35988D01* X-64965Y-35992D01* X-65000Y-35998D01* X-64502Y-35500D01* X-64508Y-35535D01* D02* G37* G36* X-57643Y-37630D02* X-57726Y-37548D01* X-57889Y-37411D01* X-57969Y-37355D01* X-58047Y-37308D01* X-58124Y-37269D01* X-58199Y-37239D01* X-58274Y-37217D01* X-58346Y-37204D01* X-58417Y-37200D01* Y-36800D01* X-58346Y-36796D01* X-58274Y-36783D01* X-58199Y-36761D01* X-58124Y-36731D01* X-58047Y-36693D01* X-57969Y-36645D01* X-57889Y-36589D01* X-57809Y-36525D01* X-57726Y-36452D01* X-57643Y-36370D01* Y-37630D01* D02* G37* G36* X-32317Y-39032D02* X-32350Y-39040D01* X-32379Y-39052D01* X-32404Y-39070D01* X-32425Y-39092D01* X-32442Y-39120D01* X-32456Y-39152D01* X-32465Y-39190D01* X-32471Y-39232D01* X-32473Y-39280D01* X-32873D01* X-32875Y-39232D01* X-32881Y-39190D01* X-32891Y-39152D01* X-32904Y-39120D01* X-32922Y-39092D01* X-32943Y-39070D01* X-32968Y-39052D01* X-32997Y-39040D01* X-33030Y-39032D01* X-33067Y-39030D01* X-32280D01* X-32317Y-39032D01* D02* G37* G36* X-64661Y-39362D02* X-64670Y-39372D01* X-64676Y-39383D01* X-64679Y-39395D01* X-64680Y-39408D01* X-64677Y-39422D01* X-64670Y-39436D01* X-64661Y-39451D01* X-64649Y-39467D01* X-64634Y-39484D01* X-65100Y-39582D01* X-65128Y-39557D01* X-65158Y-39535D01* X-65190Y-39517D01* X-65224Y-39502D01* X-65260Y-39491D01* X-65298Y-39483D01* X-65337Y-39478D01* X-65379Y-39477D01* X-65422Y-39480D01* X-65468Y-39486D01* X-64648Y-39352D01* X-64661Y-39362D01* D02* G37* G36* X-34140Y-39998D02* X-34120Y-40249D01* X-34108Y-40318D01* X-34093Y-40378D01* X-34075Y-40431D01* X-34055Y-40476D01* X-34032Y-40513D01* X-34006Y-40543D01* X-35265Y-40572D01* X-35242Y-40543D01* X-35221Y-40506D01* X-35202Y-40461D01* X-35186Y-40408D01* X-35173Y-40347D01* X-35162Y-40279D01* X-35147Y-40118D01* X-35142Y-39926D01* X-34142Y-39898D01* X-34140Y-39998D01* D02* G37* G36* X-59143Y-41630D02* X-59226Y-41548D01* X-59390Y-41411D01* X-59469Y-41355D01* X-59547Y-41308D01* X-59624Y-41269D01* X-59699Y-41239D01* X-59773Y-41217D01* X-59846Y-41204D01* X-59917Y-41200D01* Y-40800D01* X-59846Y-40796D01* X-59773Y-40783D01* X-59699Y-40761D01* X-59624Y-40731D01* X-59547Y-40692D01* X-59469Y-40645D01* X-59390Y-40589D01* X-59309Y-40525D01* X-59226Y-40452D01* X-59143Y-40370D01* Y-41630D01* D02* G37* G36* X-38974Y-41052D02* X-38811Y-41189D01* X-38731Y-41245D01* X-38653Y-41293D01* X-38576Y-41331D01* X-38501Y-41361D01* X-38427Y-41383D01* X-38354Y-41396D01* X-38282Y-41400D01* Y-41800D01* X-38354Y-41804D01* X-38427Y-41817D01* X-38501Y-41839D01* X-38576Y-41869D01* X-38653Y-41908D01* X-38731Y-41955D01* X-38811Y-42011D01* X-38891Y-42075D01* X-38974Y-42148D01* X-39057Y-42230D01* Y-40970D01* X-38974Y-41052D01* D02* G37* G36* X-46849Y-13849D02* X-46551Y-14048D01* X-46200Y-14118D01* X-36300D01* X-35949Y-14048D01* X-35651Y-13849D01* X-33498Y-11696D01* X-33074Y-11979D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30538Y-12650D01* X-30057Y-12796D01* X-30120Y-13110D01* X-30042Y-13500D01* X-29821Y-13831D01* Y-14358D01* X-30042Y-14689D01* X-30120Y-15079D01* X-30042Y-15469D01* X-29821Y-15800D01* Y-16326D01* X-30042Y-16657D01* X-30120Y-17047D01* X-30042Y-17437D01* X-29821Y-17768D01* Y-18295D01* X-30042Y-18626D01* X-30120Y-19016D01* X-30042Y-19406D01* X-29821Y-19737D01* Y-20263D01* X-30042Y-20594D01* X-30120Y-20984D01* X-30042Y-21374D01* X-29821Y-21705D01* Y-22232D01* X-30042Y-22563D01* X-30120Y-22953D01* X-30042Y-23343D01* X-29821Y-23674D01* Y-24200D01* X-30042Y-24531D01* X-30120Y-24921D01* X-30042Y-25311D01* X-29821Y-25642D01* Y-25760D01* X-29890Y-26240D01* X-30349Y-26431D01* X-31559Y-27641D01* X-31749Y-28100D01* Y-32200D01* X-31559Y-32659D01* X-30449Y-33769D01* Y-41631D01* X-31829Y-43011D01* X-32214Y-42733D01* X-32024Y-42273D01* Y-39369D01* X-31977Y-39337D01* X-31974Y-39336D01* X-31973Y-39335D01* X-31952Y-39321D01* X-31731Y-38990D01* X-31654Y-38600D01* Y-34400D01* X-31731Y-34010D01* X-31952Y-33679D01* X-32283Y-33458D01* X-32673Y-33380D01* X-33064Y-33458D01* X-33394Y-33679D01* X-33921D01* X-34252Y-33458D01* X-34642Y-33380D01* X-34800Y-33412D01* X-35252Y-33167D01* X-35334Y-33059D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41766Y-33097D01* X-41893Y-33224D01* X-42432Y-33249D01* X-47251Y-28431D01* Y-15100D01* X-47441Y-14641D01* X-50494Y-11587D01* X-50510Y-11551D01* X-50526Y-11503D01* X-50540Y-11445D01* X-50551Y-11383D01* X-50566Y-11205D01* X-50567Y-11104D01* X-50600Y-11027D01* Y-10841D01* X-50626Y-10779D01* X-50202Y-10496D01* X-46849Y-13849D01* D02* G37* G36* X-62743Y-43230D02* X-62826Y-43148D01* X-62989Y-43011D01* X-63069Y-42955D01* X-63147Y-42908D01* X-63224Y-42869D01* X-63299Y-42839D01* X-63374Y-42817D01* X-63446Y-42804D01* X-63517Y-42800D01* Y-42400D01* X-63446Y-42396D01* X-63374Y-42383D01* X-63299Y-42361D01* X-63224Y-42331D01* X-63147Y-42292D01* X-63069Y-42245D01* X-62989Y-42189D01* X-62909Y-42125D01* X-62826Y-42052D01* X-62743Y-41970D01* Y-43230D01* D02* G37* G36* X-10299Y-42911D02* X-10279Y-43164D01* X-10267Y-43232D01* X-10253Y-43293D01* X-10236Y-43346D01* X-10217Y-43391D01* X-10195Y-43428D01* X-10170Y-43457D01* X-11430D01* X-11405Y-43428D01* X-11383Y-43391D01* X-11364Y-43346D01* X-11347Y-43293D01* X-11332Y-43232D01* X-11321Y-43164D01* X-11305Y-43003D01* X-11301Y-42911D01* X-11300Y-42812D01* X-10300D01* X-10299Y-42911D01* D02* G37* G36* X-19508Y-43491D02* X-19585Y-43478D01* X-19659Y-43471D01* X-19729Y-43470D01* X-19795Y-43474D01* X-19858Y-43484D01* X-19916Y-43499D01* X-19971Y-43521D01* X-20022Y-43548D01* X-20069Y-43581D01* X-20112Y-43619D01* X-20696Y-42789D01* X-20656Y-42748D01* X-20563Y-42641D01* X-20541Y-42611D01* X-20523Y-42583D01* X-20511Y-42558D01* X-20502Y-42536D01* X-20498Y-42517D01* X-20499Y-42500D01* X-19508Y-43491D01* D02* G37* G36* X-36799Y-43826D02* X-36781Y-44039D01* X-36764Y-44134D01* X-36742Y-44223D01* X-36715Y-44305D01* X-36683Y-44379D01* X-36646Y-44447D01* X-36604Y-44507D01* X-36556Y-44561D01* X-36839Y-44844D01* X-36893Y-44796D01* X-36953Y-44754D01* X-37021Y-44717D01* X-37095Y-44685D01* X-37177Y-44658D01* X-37266Y-44636D01* X-37361Y-44619D01* X-37464Y-44608D01* X-37574Y-44601D01* X-37691Y-44600D01* X-36800Y-43709D01* X-36799Y-43826D01* D02* G37* G36* X-72174Y-44637D02* X-72113Y-44680D01* X-72046Y-44717D01* X-71971Y-44749D01* X-71889Y-44776D01* X-71801Y-44798D01* X-71705Y-44814D01* X-71602Y-44826D01* X-71492Y-44832D01* X-71375Y-44834D01* X-72266Y-45725D01* X-72268Y-45608D01* X-72286Y-45395D01* X-72303Y-45299D01* X-72324Y-45211D01* X-72351Y-45129D01* X-72383Y-45054D01* X-72420Y-44987D01* X-72463Y-44926D01* X-72510Y-44873D01* X-72227Y-44590D01* X-72174Y-44637D01* D02* G37* G36* X-10809Y-45000D02* X-10847Y-45003D01* X-10889Y-45014D01* X-10935Y-45032D01* X-10984Y-45057D01* X-11037Y-45090D01* X-11094Y-45130D01* X-11218Y-45233D01* X-11286Y-45295D01* X-11296Y-45304D01* X-11305Y-45314D01* X-11470Y-45506D01* X-11510Y-45563D01* X-11543Y-45616D01* X-11568Y-45665D01* X-11586Y-45711D01* X-11597Y-45753D01* X-11600Y-45791D01* X-12491Y-44900D01* X-12453Y-44897D01* X-12411Y-44886D01* X-12365Y-44868D01* X-12316Y-44843D01* X-12263Y-44810D01* X-12206Y-44770D01* X-12082Y-44667D01* X-12014Y-44605D01* X-12004Y-44596D01* X-11995Y-44586D01* X-11830Y-44394D01* X-11790Y-44337D01* X-11757Y-44284D01* X-11732Y-44235D01* X-11714Y-44189D01* X-11703Y-44147D01* X-11700Y-44109D01* X-10809Y-45000D01* D02* G37* G36* X-12509Y-46700D02* X-12547Y-46703D01* X-12589Y-46714D01* X-12635Y-46732D01* X-12684Y-46757D01* X-12737Y-46790D01* X-12794Y-46830D01* X-12918Y-46933D01* X-12986Y-46995D01* X-13057Y-47065D01* X-13765Y-46357D01* X-13695Y-46286D01* X-13530Y-46094D01* X-13490Y-46037D01* X-13457Y-45984D01* X-13432Y-45935D01* X-13414Y-45889D01* X-13403Y-45847D01* X-13400Y-45809D01* X-12509Y-46700D01* D02* G37* G36* X-15629Y-46837D02* X-15597Y-46871D01* X-15562Y-46902D01* X-15523Y-46928D01* X-15482Y-46950D01* X-15437Y-46968D01* X-15388Y-46982D01* X-15336Y-46992D01* X-15281Y-46998D01* X-15223Y-47000D01* Y-48000D01* X-15281Y-48002D01* X-15336Y-48008D01* X-15388Y-48018D01* X-15437Y-48032D01* X-15482Y-48050D01* X-15523Y-48072D01* X-15562Y-48098D01* X-15597Y-48129D01* X-15629Y-48163D01* X-15657Y-48201D01* Y-46799D01* X-15629Y-46837D01* D02* G37* G36* X-19702Y-56384D02* X-19617Y-56447D01* X-19532Y-56499D01* X-19444Y-56538D01* X-19354Y-56565D01* X-19263Y-56580D01* X-19169Y-56583D01* X-19074Y-56574D01* X-18976Y-56554D01* X-18877Y-56521D01* X-20424Y-57121D01* X-20423Y-57114D01* X-20427Y-57104D01* X-20435Y-57090D01* X-20448Y-57072D01* X-20488Y-57025D01* X-20581Y-56927D01* X-20621Y-56886D01* X-19784Y-56309D01* X-19702Y-56384D01* D02* G37* %LPC*% G36* X-9000Y-19582D02* X-10000D01* X-10351Y-19652D01* X-10649Y-19851D01* X-10848Y-20149D01* X-10918Y-20500D01* Y-21500D01* X-10848Y-21851D01* X-10649Y-22149D01* X-10505Y-22245D01* X-10497Y-22266D01* X-10437Y-22291D01* X-10433Y-22293D01* X-10433Y-22312D01* X-10418Y-22345D01* Y-23246D01* X-10348Y-23597D01* X-10149Y-23895D01* X-8999Y-25044D01* X-8998Y-25053D01* X-8973Y-25070D01* X-8966Y-25077D01* X-8955Y-25109D01* X-8909Y-25161D01* X-8884Y-25196D01* X-8863Y-25232D01* X-8846Y-25273D01* X-8841Y-25291D01* Y-26665D01* X-8764Y-27051D01* X-8545Y-27379D01* X-8217Y-27598D01* X-7831Y-27675D01* X-6650D01* X-6263Y-27598D01* X-5935Y-27379D01* X-5717Y-27051D01* X-5640Y-26665D01* Y-24346D01* X-5717Y-23960D01* X-5935Y-23632D01* X-6263Y-23413D01* X-6650Y-23336D01* X-7831D01* X-8046Y-23379D01* X-8049Y-23376D01* X-8078Y-23349D01* X-8113Y-23335D01* X-8582Y-22866D01* Y-22345D01* X-8567Y-22312D01* X-8567Y-22293D01* X-8563Y-22291D01* X-8503Y-22266D01* X-8495Y-22245D01* X-8351Y-22149D01* X-8152Y-21851D01* X-8082Y-21500D01* Y-20500D01* X-8152Y-20149D01* X-8351Y-19851D01* X-8649Y-19652D01* X-9000Y-19582D01* D02* G37* %LPD*% G36* X-8846Y-21970D02* X-8878Y-21985D01* X-8907Y-22006D01* X-8931Y-22032D01* X-8952Y-22063D01* X-8969Y-22099D01* X-8983Y-22141D01* X-8992Y-22188D01* X-8998Y-22240D01* X-9000Y-22298D01* X-10000D01* X-10002Y-22240D01* X-10008Y-22188D01* X-10017Y-22141D01* X-10030Y-22099D01* X-10048Y-22063D01* X-10069Y-22032D01* X-10093Y-22006D01* X-10122Y-21985D01* X-10154Y-21970D01* X-10190Y-21960D01* X-8810D01* X-8846Y-21970D01* D02* G37* G36* X-8336Y-23701D02* X-8259Y-23763D01* X-8224Y-23786D01* X-8191Y-23802D01* X-8160Y-23814D01* X-8131Y-23819D01* X-8104Y-23819D01* X-8079Y-23813D01* X-8056Y-23801D01* X-8409Y-25739D01* X-8392Y-25624D01* X-8383Y-25514D01* X-8384Y-25409D01* X-8393Y-25310D01* X-8411Y-25215D01* X-8438Y-25126D01* X-8473Y-25042D01* X-8518Y-24963D01* X-8571Y-24889D01* X-8633Y-24820D01* X-8377Y-23662D01* X-8336Y-23701D01* D02* G37* G36* X49431Y-4698D02* X49335Y-4622D01* X49153Y-4495D01* X49066Y-4443D01* X48983Y-4399D01* X48902Y-4364D01* X48825Y-4336D01* X48751Y-4316D01* X48680Y-4304D01* X48612Y-4300D01* X48566Y-3900D01* X48639Y-3895D01* X48713Y-3882D01* X48786Y-3859D01* X48859Y-3827D01* X48932Y-3786D01* X49004Y-3736D01* X49077Y-3677D01* X49148Y-3609D01* X49220Y-3532D01* X49291Y-3445D01* X49431Y-4698D01* D02* G37* G36* X30026Y-3552D02* X30189Y-3689D01* X30269Y-3745D01* X30347Y-3793D01* X30424Y-3831D01* X30499Y-3861D01* X30573Y-3883D01* X30646Y-3896D01* X30718Y-3900D01* Y-4300D01* X30646Y-4304D01* X30573Y-4317D01* X30499Y-4339D01* X30424Y-4369D01* X30347Y-4408D01* X30269Y-4455D01* X30189Y-4511D01* X30109Y-4575D01* X30026Y-4648D01* X29943Y-4730D01* Y-3470D01* X30026Y-3552D01* D02* G37* G36* X49357Y-7830D02* X49274Y-7748D01* X49110Y-7611D01* X49031Y-7555D01* X48953Y-7508D01* X48876Y-7469D01* X48801Y-7439D01* X48726Y-7417D01* X48654Y-7404D01* X48583Y-7400D01* Y-7000D01* X48654Y-6996D01* X48726Y-6983D01* X48801Y-6961D01* X48876Y-6931D01* X48953Y-6893D01* X49031Y-6845D01* X49110Y-6789D01* X49191Y-6725D01* X49274Y-6652D01* X49357Y-6570D01* Y-7830D01* D02* G37* G36* X30026Y-6652D02* X30189Y-6789D01* X30269Y-6845D01* X30347Y-6893D01* X30424Y-6931D01* X30499Y-6961D01* X30573Y-6983D01* X30646Y-6996D01* X30718Y-7000D01* Y-7400D01* X30646Y-7404D01* X30573Y-7417D01* X30499Y-7439D01* X30424Y-7469D01* X30347Y-7508D01* X30269Y-7555D01* X30189Y-7611D01* X30109Y-7675D01* X30026Y-7748D01* X29943Y-7830D01* Y-6570D01* X30026Y-6652D01* D02* G37* G36* X17266Y-17832D02* X17359Y-17867D01* X17460Y-17891D01* Y-17810D01* X17470Y-17846D01* X17485Y-17878D01* X17502Y-17900D01* X17652Y-17925D01* X18084Y-17967D01* X18815Y-17992D01* X18859Y-17983D01* X18901Y-17969D01* X18937Y-17952D01* X18968Y-17932D01* X18994Y-17907D01* X19015Y-17878D01* X19030Y-17846D01* X19040Y-17810D01* Y-17998D01* X19366Y-18000D01* Y-19000D01* X19040Y-19002D01* Y-19190D01* X19030Y-19154D01* X19015Y-19122D01* X18994Y-19093D01* X18968Y-19069D01* X18937Y-19048D01* X18901Y-19030D01* X18859Y-19017D01* X18836Y-19013D01* X17501Y-19101D01* X17485Y-19122D01* X17470Y-19154D01* X17460Y-19190D01* Y-19109D01* X17405Y-19122D01* X17359Y-19133D01* X17266Y-19168D01* X17207Y-19208D01* Y-17792D01* X17266Y-17832D01* D02* G37* G36* X13154Y-19470D02* X13122Y-19485D01* X13093Y-19506D01* X13069Y-19532D01* X13048Y-19563D01* X13031Y-19600D01* X13017Y-19641D01* X13008Y-19688D01* X13002Y-19740D01* X13000Y-19798D01* X12000D01* X11998Y-19740D01* X11992Y-19688D01* X11983Y-19641D01* X11970Y-19600D01* X11952Y-19563D01* X11931Y-19532D01* X11907Y-19506D01* X11878Y-19485D01* X11846Y-19470D01* X11810Y-19460D01* X13190D01* X13154Y-19470D01* D02* G37* G36* X13005Y-20478D02* X13020Y-20534D01* X13045Y-20583D01* X13080Y-20626D01* X13124Y-20661D01* X13179Y-20690D01* X13244Y-20712D01* X13318Y-20727D01* X13403Y-20736D01* X13498Y-20737D01* X11807Y-20768D01* X11844Y-20757D01* X11876Y-20742D01* X11905Y-20721D01* X11930Y-20695D01* X11952Y-20664D01* X11969Y-20628D01* X11983Y-20586D01* X11992Y-20539D01* X11998Y-20487D01* X12000Y-20429D01* X13000Y-20415D01* X13005Y-20478D01* D02* G37* G36* X17502Y-20314D02* X17516Y-20516D01* X17528Y-20602D01* X17544Y-20679D01* X17564Y-20746D01* X17587Y-20803D01* X17613Y-20851D01* X17643Y-20889D01* X17677Y-20917D01* X15323D01* X15357Y-20889D01* X15387Y-20851D01* X15413Y-20803D01* X15436Y-20746D01* X15456Y-20679D01* X15472Y-20602D01* X15484Y-20516D01* X15498Y-20314D01* X15500Y-20199D01* X17500D01* X17502Y-20314D01* D02* G37* G36* X21435Y-20933D02* X21467Y-20947D01* X21513Y-20959D01* X21572Y-20970D01* X21645Y-20979D01* X21833Y-20993D01* X22219Y-21000D01* Y-23000D01* X22092Y-23010D01* X21979Y-23040D01* X21881Y-23090D01* X21798Y-23160D01* X21730Y-23250D01* X21676Y-23360D01* X21636Y-23490D01* X21612Y-23640D01* X21602Y-23810D01* X21607Y-24000D01* X21417Y-20917D01* X21435Y-20933D01* D02* G37* G36* X21384Y-25662D02* X21353Y-25700D01* X21327Y-25748D01* X21304Y-25805D01* X21284Y-25872D01* X21269Y-25949D01* X21256Y-26035D01* X21242Y-26237D01* X21240Y-26352D01* X19240D01* X19238Y-26237D01* X19224Y-26035D01* X19212Y-25949D01* X19196Y-25872D01* X19176Y-25805D01* X19153Y-25748D01* X19127Y-25700D01* X19097Y-25662D01* X19063Y-25634D01* X21417D01* X21384Y-25662D01* D02* G37* G36* X25002Y-25520D02* X25014Y-25547D01* X25036Y-25581D01* X25065Y-25621D01* X25150Y-25723D01* X25341Y-25926D01* X25422Y-26008D01* X24008Y-27422D01* X23926Y-27341D01* X23581Y-27036D01* X23547Y-27014D01* X23520Y-27002D01* X23500Y-26998D01* X24998Y-25500D01* X25002Y-25520D01* D02* G37* G36* X24074Y-29159D02* X24419Y-29464D01* X24453Y-29485D01* X24480Y-29498D01* X24500Y-29502D01* X23002Y-31000D01* X22998Y-30980D01* X22986Y-30953D01* X22964Y-30919D01* X22935Y-30879D01* X22850Y-30777D01* X22659Y-30574D01* X22578Y-30492D01* X23992Y-29078D01* X24074Y-29159D01* D02* G37* G36* X21588Y-30916D02* X21607Y-31086D01* X21639Y-31236D01* X21684Y-31365D01* X21741Y-31475D01* X21811Y-31565D01* X21894Y-31635D01* X21990Y-31684D01* X22098Y-31714D01* X22219Y-31724D01* Y-33724D01* X22098Y-33734D01* X21990Y-33764D01* X21894Y-33814D01* X21811Y-33884D01* X21741Y-33974D01* X21684Y-34084D01* X21639Y-34213D01* X21607Y-34363D01* X21588Y-34532D01* X21582Y-34722D01* Y-30727D01* X21588Y-30916D01* D02* G37* G36* X24074Y-33159D02* X24419Y-33464D01* X24453Y-33485D01* X24480Y-33498D01* X24500Y-33502D01* X23002Y-35000D01* X22998Y-34980D01* X22986Y-34953D01* X22964Y-34919D01* X22935Y-34879D01* X22850Y-34777D01* X22659Y-34574D01* X22578Y-34492D01* X23992Y-33078D01* X24074Y-33159D01* D02* G37* G36* X13627Y-35252D02* X13550Y-35275D01* X13482Y-35302D01* X13423Y-35332D01* X13373Y-35365D01* X13332Y-35402D01* X13301Y-35443D01* X13278Y-35487D01* X13264Y-35534D01* X13260Y-35585D01* X12260D01* X12255Y-35534D01* X12242Y-35487D01* X12219Y-35443D01* X12187Y-35402D01* X12147Y-35365D01* X12097Y-35332D01* X12038Y-35302D01* X11970Y-35275D01* X11893Y-35252D01* X11807Y-35232D01* X13713D01* X13627Y-35252D01* D02* G37* G36* X13260Y-36787D02* X13261Y-36844D01* X13268Y-36945D01* X13275Y-36988D01* X13283Y-37027D01* X13293Y-37061D01* X13305Y-37090D01* X13319Y-37114D01* X13334Y-37133D01* X13352Y-37148D01* X11810Y-37040D01* X11895Y-37021D01* X11972Y-36998D01* X12039Y-36972D01* X12098Y-36943D01* X12147Y-36911D01* X12188Y-36876D01* X12219Y-36837D01* X12242Y-36795D01* X12255Y-36751D01* X12260Y-36702D01* X13260Y-36787D01* D02* G37* G36* X11540Y-38690D02* X11530Y-38654D01* X11515Y-38622D01* X11494Y-38593D01* X11468Y-38568D01* X11437Y-38548D01* X11400Y-38530D01* X11359Y-38517D01* X11312Y-38508D01* X11260Y-38502D01* X11202Y-38500D01* Y-37500D01* X11260Y-37498D01* X11312Y-37492D01* X11359Y-37483D01* X11400Y-37470D01* X11437Y-37452D01* X11468Y-37431D01* X11494Y-37407D01* X11515Y-37378D01* X11530Y-37346D01* X11540Y-37310D01* Y-38690D01* D02* G37* G36* X9970Y-37346D02* X9985Y-37378D01* X10006Y-37407D01* X10032Y-37431D01* X10063Y-37452D01* X10099Y-37470D01* X10141Y-37483D01* X10188Y-37492D01* X10240Y-37498D01* X10298Y-37500D01* Y-38500D01* X10240Y-38502D01* X10188Y-38508D01* X10141Y-38517D01* X10099Y-38530D01* X10063Y-38548D01* X10032Y-38568D01* X10006Y-38593D01* X9985Y-38622D01* X9970Y-38654D01* X9960Y-38690D01* Y-37310D01* X9970Y-37346D01* D02* G37* G36* X8040Y-38690D02* X8030Y-38654D01* X8015Y-38622D01* X7994Y-38593D01* X7968Y-38568D01* X7937Y-38548D01* X7901Y-38530D01* X7859Y-38517D01* X7812Y-38508D01* X7760Y-38502D01* X7702Y-38500D01* Y-37500D01* X7760Y-37498D01* X7812Y-37492D01* X7859Y-37483D01* X7901Y-37470D01* X7937Y-37452D01* X7968Y-37431D01* X7994Y-37407D01* X8015Y-37378D01* X8030Y-37346D01* X8040Y-37310D01* Y-38690D01* D02* G37* G36* X6470Y-37346D02* X6485Y-37378D01* X6506Y-37407D01* X6532Y-37431D01* X6563Y-37452D01* X6600Y-37470D01* X6641Y-37483D01* X6688Y-37492D01* X6740Y-37498D01* X6798Y-37500D01* Y-38500D01* X6740Y-38502D01* X6688Y-38508D01* X6641Y-38517D01* X6600Y-38530D01* X6563Y-38548D01* X6532Y-38568D01* X6506Y-38593D01* X6485Y-38622D01* X6470Y-38654D01* X6460Y-38690D01* Y-37310D01* X6470Y-37346D01* D02* G37* G36* X24970D02* X24985Y-37378D01* X25006Y-37407D01* X25032Y-37431D01* X25063Y-37452D01* X25100Y-37470D01* X25141Y-37483D01* X25188Y-37492D01* X25240Y-37498D01* X25298Y-37500D01* Y-38500D01* X25240Y-38502D01* X25188Y-38508D01* X25141Y-38517D01* X25100Y-38530D01* X25063Y-38548D01* X25032Y-38568D01* X25006Y-38593D01* X24985Y-38622D01* X24970Y-38654D01* X24960Y-38690D01* Y-37310D01* X24970Y-37346D01* D02* G37* G36* X30001Y-51111D02* X30021Y-51364D01* X30033Y-51432D01* X30047Y-51493D01* X30064Y-51546D01* X30083Y-51591D01* X30105Y-51628D01* X30130Y-51657D01* X28870D01* X28895Y-51628D01* X28917Y-51591D01* X28936Y-51546D01* X28953Y-51493D01* X28967Y-51432D01* X28979Y-51364D01* X28995Y-51203D01* X28999Y-51111D01* X29000Y-51012D01* X30000D01* X30001Y-51111D01* D02* G37* G36* X28037Y-52375D02* X28073Y-52401D01* X28117Y-52424D01* X28169Y-52444D01* X28229Y-52461D01* X28296Y-52475D01* X28372Y-52486D01* X28547Y-52499D01* X28646Y-52500D01* X28511Y-53500D01* X28410Y-53501D01* X28089Y-53524D01* X28029Y-53535D01* X27977Y-53548D01* X27933Y-53562D01* X27897Y-53579D01* X27869Y-53597D01* X28009Y-52345D01* X28037Y-52375D01* D02* G37* G36* X1358Y-53491D02* X1290Y-53479D01* X1166Y-53467D01* X1111Y-53466D01* X1060Y-53470D01* X1015Y-53478D01* X973Y-53489D01* X936Y-53505D01* X904Y-53525D01* X876Y-53548D01* X417Y-53159D01* X440Y-53133D01* X459Y-53107D01* X473Y-53080D01* X482Y-53053D01* X487Y-53025D01* X487Y-52997D01* X483Y-52968D01* X474Y-52939D01* X460Y-52910D01* X442Y-52879D01* X1358Y-53491D01* D02* G37* G36* X19034Y-57098D02* X19032Y-57041D01* X19026Y-56990D01* X19015Y-56946D01* X19000Y-56907D01* X18981Y-56874D01* X18958Y-56848D01* X18930Y-56827D01* X18899Y-56812D01* X18863Y-56803D01* X18822Y-56800D01* Y-56200D01* X18863Y-56197D01* X18899Y-56188D01* X18930Y-56173D01* X18958Y-56152D01* X18981Y-56126D01* X19000Y-56093D01* X19015Y-56054D01* X19026Y-56010D01* X19032Y-55959D01* X19034Y-55902D01* Y-57098D01* D02* G37* G36* X2677Y-61933D02* X2745Y-61989D01* X2814Y-62038D01* X2886Y-62081D01* X2959Y-62117D01* X3035Y-62147D01* X3112Y-62170D01* X3192Y-62187D01* X3274Y-62197D01* X3357Y-62200D01* Y-62800D01* X3274Y-62803D01* X3192Y-62813D01* X3112Y-62830D01* X3035Y-62853D01* X2959Y-62883D01* X2886Y-62919D01* X2814Y-62962D01* X2745Y-63011D01* X2677Y-63067D01* X2611Y-63130D01* Y-61870D01* X2677Y-61933D01* D02* G37* G36* X1326Y-63130D02* X1260Y-63067D01* X1192Y-63011D01* X1123Y-62962D01* X1051Y-62919D01* X978Y-62883D01* X902Y-62853D01* X824Y-62830D01* X745Y-62813D01* X663Y-62803D01* X580Y-62800D01* Y-62200D01* X663Y-62197D01* X745Y-62187D01* X824Y-62170D01* X902Y-62147D01* X978Y-62117D01* X1051Y-62081D01* X1123Y-62038D01* X1192Y-61989D01* X1260Y-61933D01* X1326Y-61870D01* Y-63130D01* D02* G37* G36* X-12419Y-65581D02* Y-72655D01* X-13764Y-74000D01* X-20236D01* X-22000Y-72236D01* Y-65500D01* X-20500Y-64000D01* X-14000D01* X-12419Y-65581D01* D02* G37* %LPC*% G36* X22897Y48887D02* Y47721D01* X22929Y47769D01* X23029Y47968D01* X23092Y48157D01* X23117Y48336D01* X23103Y48505D01* X23053Y48664D01* X22964Y48814D01* X22897Y48887D01* D02* G37* %LPD*% D10* X-50600Y-8800D02* X-46200Y-13200D01* X-36300D02* X-32673Y-9573D01* X-46200Y-13200D02* X-36300D01* X-54800Y-11000D02* Y-9700D01* X-53900Y-8800D02* X-50600D01* X-54800Y-9700D02* X-53900Y-8800D01* X-54800Y-11000D02* X-54000Y-11800D01* X-6000Y-29700D02* X-3300D01* X240Y-26160D01* X-10800Y-34500D02* X-6000Y-29700D01* X-44600Y-10600D02* X-42700D01* X-48421Y-6779D02* X-44600Y-10600D01* X-48421Y-6779D02* Y-3500D01* X27200Y-53000D02* X28800D01* X-64200Y-29400D02* X-62773Y-30827D01* X-67400Y-29400D02* X-64200D01* X-69500Y-31500D02* X-67400Y-29400D01* X-62773Y-30827D02* X-60000D01* X0Y43500D02* Y45000D01* Y42000D02* Y43500D01* X-52500Y-20700D02* X-51200Y-22000D01* X-51000D01* X-52500Y-20700D02* Y-17257D01* Y-28600D02* Y-20700D01* X-54679Y-15079D02* X-52500Y-17257D01* X-54327Y-30427D02* X-52500Y-28600D01* X-19500Y33500D02* X-16400Y36600D01* X-7800D01* X-19500Y32567D02* Y33500D01* X10433Y7500D02* X10800D01* X-11400Y-7500D02* X-10433D01* X-18300Y-4200D02* X-16600Y-2500D01* X-10433D01* X-10600Y2500D02* X-10433D01* X10433Y-7500D02* X14300D01* X15800Y-6000D01* Y300D01* X13600Y2500D02* X15800Y300D01* X10433Y2500D02* X13600D01* X-42465Y-46700D02* X-23900D01* X-19700Y-42500D02* X-17933D01* X-23900Y-46700D02* X-19700Y-42500D01* X-22700Y-54100D02* Y-50400D01* Y-54100D02* X-19300Y-57500D01* X-24600Y-48500D02* X-22700Y-50400D01* X-42644Y-48500D02* X-24600D01* X-19300Y-57500D02* X-17933D01* X-50390Y-40755D02* Y-36500D01* X-48421Y-40743D02* X-42465Y-46700D01* X-50390Y-40755D02* X-42644Y-48500D01* X-48421Y-40743D02* Y-36500D01* X-13000Y-28000D02* X-11500Y-29500D01* Y-31900D02* Y-29500D01* X-12500Y-45800D02* X-10800Y-44100D01* X-14200Y-47500D02* X-12500Y-45800D01* X-17933Y-47500D02* X-14200D01* X-10800Y-44100D02* Y-34500D01* X29500Y-52300D02* Y-40700D01* X26800Y-38000D02* X29500Y-40700D01* X24000Y-38000D02* X26800D01* X-25500Y-34500D02* X-10800D01* X-63721Y-15079D02* X-60000D01* X-65500Y-13300D02* X-63721Y-15079D01* X-65500Y-13300D02* Y-13000D01* X-54327Y-36500D02* Y-30427D01* X-60000Y-15079D02* X-54679D01* X-54000Y-14400D01* Y-11800D01* X-32673Y-9573D02* Y-3500D01* X-27000Y-33000D02* Y-30827D01* Y-33000D02* X-25500Y-34500D01* X240Y-26160D02* Y-25506D01* X-32673Y-3500D02* X-24400D01* X-20600Y-7300D01* Y-12400D02* Y-7300D01* Y-12400D02* X-15500Y-17500D01* X-2000D01* X16500Y-18500D02* X20000D01* X27200Y-53000D02* X27300Y-52900D01* X-60000Y-13110D02* X-56310D01* X-56300Y-13100D01* X-18700Y-19300D02* X-17000Y-21000D01* X-22500Y-19300D02* X-18700D01* X-17000Y-24500D02* Y-21000D01* Y-28000D02* Y-24500D01* X-36610Y-36500D02* Y-33410D01* X-34642Y-41179D02* Y-36500D01* X-38579D02* Y-31821D01* X-38600Y-31800D02* X-38579Y-31821D01* X-40547Y-36500D02* Y-33553D01* X-24600Y21200D02* X-900D01* X2000Y24100D01* X-36610Y9190D02* X-24600Y21200D01* X-36610Y-3500D02* Y9190D01* X2000Y24100D02* Y27000D01* X-38579Y-3500D02* Y9621D01* X-27000Y21200D01* Y27000D01* X-7800Y36600D02* X-7000Y35800D01* Y29000D02* Y35800D01* X-9000Y27000D02* X-7000Y29000D01* X23000Y27000D02* Y34100D01* X20900Y36200D02* X23000Y34100D01* X16500Y36200D02* X20900D01* X16000Y36700D02* X16500Y36200D01* X6800Y36700D02* X16000D01* X4500Y34400D02* X6800Y36700D01* X4500Y32567D02* Y34400D01* X20000Y27000D02* X23000D01* X13000D02* X16000D01* X13000Y25500D02* Y27000D01* X11500Y24000D02* X13000Y25500D01* X7400Y24000D02* X11500D01* X6000Y25400D02* X7400Y24000D01* X6000Y25400D02* Y27000D01* X-9000D02* X-6000D01* X-13000Y25200D02* Y27000D01* X-14200Y24000D02* X-13000Y25200D01* X-18700Y24000D02* X-14200D01* X-20000Y25300D02* X-18700Y24000D01* X-20000Y25300D02* Y27000D01* X-23000D02* X-20000D01* X-67500Y-18260D02* X-65640D01* X-62916Y-20984D01* X-60000D01* X-67500Y-25740D02* X-65440D01* X-62653Y-22953D01* X-60000D01* X-56327Y-34500D02* X-54327Y-36500D01* X-62000Y-34500D02* X-56327D01* X-62000Y-32827D02* X-60000Y-30827D01* X-62000Y-34500D02* Y-32827D01* X28800Y-53000D02* X29500Y-52300D01* X12500Y-23016D02* X12760Y-23276D01* X12500Y-23016D02* Y-18500D01* X-9500Y-23246D02* X-7240Y-25506D01* X-9500Y-23246D02* Y-21000D01* X-2000Y-17500D02* Y-15600D01* X-400Y-14000D01* X4000D01* X5500Y-15500D01* Y-18000D02* Y-15500D01* X9000Y-11799D02* X10433Y-10366D01* X9000Y-18000D02* Y-11799D01* X10433Y-10366D02* Y-7500D01* X9000Y-38000D02* X12500D01* X5500D02* X9000D01* X12760Y-37740D02* Y-32724D01* X12500Y-38000D02* X12760Y-37740D01* D11* X29300Y-7200D02* X50000D01* X29300Y-4100D02* X49900D01* X-72600Y-44500D02* Y-29400D01* Y-44500D02* X-71366Y-45734D01* X-71700Y-32300D02* Y-29700D01* Y-32300D02* X-70800Y-33200D01* X-68316D01* X-71700Y-29700D02* X-70300Y-28300D01* X-72600Y-29400D02* X-70700Y-27500D01* X-70300Y-28300D02* X-63600D01* X-70700Y-27500D02* X-63800D01* X-63042Y-28858D02* X-60000D01* X-63600Y-28300D02* X-63042Y-28858D01* X-63800Y-27500D02* X-63190Y-26890D01* X-60000D01* X-65500Y-2500D02* X-63700Y-4300D01* Y-10200D02* Y-4300D01* Y-10200D02* X-62758Y-11142D01* X-60000D01* X-48700Y-29031D02* Y-19000D01* X-51400Y-16300D02* Y-14500D01* Y-16300D02* X-48700Y-19000D01* X-47900Y-28700D02* X-42516Y-34084D01* X-51900Y-11100D02* X-47900Y-15100D01* X-48700Y-29031D02* X-44484Y-33247D01* X-47900Y-28700D02* Y-15100D01* X-67500Y-40800D02* X-65700Y-42600D01* X-62100D01* X-67500Y-40800D02* Y-34016D01* X-68316Y-33200D02* X-67500Y-34016D01* X-61000Y-40500D02* X-60500Y-41000D01* X-63900Y-40500D02* X-61000D01* X-60500Y-41000D02* X-58726D01* X-58500D01* X-65500Y-38900D02* X-63900Y-40500D01* X-64000Y-36500D02* X-59500D01* X-59000Y-37000D01* X-57250D01* X-57000D01* X-65500Y-35000D02* X-64000Y-36500D01* X-31800Y-12300D02* Y-10800D01* X-30173Y-9173D01* X-27000D01* X-65500Y-38900D02* Y-38500D01* X-42516Y-36500D02* Y-34084D01* X-44484Y-36500D02* Y-33247D01* X-36200Y-9300D02* X-35300Y-8400D01* X-39000Y-9300D02* X-36200D01* X-40547Y-7753D02* X-39000Y-9300D01* X-40547Y-7753D02* Y-3500D01* X-51500Y-31600D02* X-51400Y-31500D01* X-48000D01* X-46453Y-33047D01* Y-36500D02* Y-33047D01* X-37100Y-41600D02* X-35500Y-43200D01* X-33600D01* X-32673Y-42273D01* X-32700Y-44800D02* X-29800Y-41900D01* X-36600Y-44800D02* X-32700D01* X-37700Y-43700D02* X-36600Y-44800D01* X-39700Y-41600D02* X-37100D01* X-32673Y-42273D02* Y-36500D01* X-29800Y-41900D02* Y-33500D01* X-31100Y-32200D02* X-29800Y-33500D01* X-31100Y-32200D02* Y-28100D01* X-29890Y-26890D01* X-27000D01* X-60000Y-19016D02* X-55784D01* X-65500Y-35000D02* Y-31500D01* D14* X-59900Y40300D02* X-54500D01* X-47900Y33700D01* Y1500D02* Y33700D01* Y1500D02* X-46453Y53D01* Y-3500D02* Y53D01* X10500Y-56500D02* X20000D01* X4500Y-62500D02* X10500Y-56500D01* X1969Y-62500D02* X4500D01* X-2776Y-56776D02* X1500Y-52500D01* X-2776Y-59915D02* Y-56776D01* X1500Y-52500D02* X2933D01* X-191Y-62500D02* X1969D01* X-2776Y-59915D02* X-191Y-62500D01* X2500Y-47500D02* X2933D01* X-36610Y-33410D02* X-36600Y-33400D01* X-34642Y-41179D02* X-34620Y-41200D01* D16* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D50* X1580Y-32200D02* X3780Y-30000D01* X240Y-33540D02* X1580Y-32200D01* X-1100D02* X1580D01* X-7240Y-36906D02* Y-34540D01* X-4900Y-32200D01* X-1100D01* X240Y-33540D01* X3780Y-30000D02* X5500D01* X300Y-36200D02* Y-33600D01* Y-38700D02* Y-36200D01* Y-33600D02* X700Y-34000D01* X5500D01* Y-30000D02* X9000D01* Y-34000D02* Y-30000D01* X5500Y-34000D02* X9000D01* X5500D02* Y-30000D01* X28500Y-18700D02* Y-16400D01* Y-21200D02* Y-18700D01* X-4200Y45100D02* Y46500D01* Y42100D02* Y45100D01* Y39100D02* Y42100D01* X-19500Y41000D02* Y44000D01* Y38000D02* Y41000D01* X19300Y41700D02* Y44500D01* Y38700D02* Y41700D01* X4300Y42100D02* Y45100D01* Y46500D01* X24822Y48122D02* X26000D01* X19300Y44700D02* X21400D01* X24822Y48122D01* X-26000Y47500D02* Y48122D01* X-22500Y44000D02* X-19500D01* X-26000Y47500D02* X-22500Y44000D01* X18178Y48122D02* X24822D01* X4300Y39100D02* Y42100D01* X-9500Y51800D02* X-4200Y46500D01* X21516Y-22000D02* X24000D01* X20240Y-23276D02* X21516Y-22000D01* X16900Y-17400D02* X19900D01* X16500Y-17000D02* X16900Y-17400D01* X16500Y-23276D02* Y-18500D01* Y-17000D01* X15800Y-16300D02* X16500Y-17000D01* X18000Y-16300D02* X18800D01* X15800D02* X18000D01* X19900Y-17400D02* X20000Y-17500D01* X18800Y-16300D02* X19900Y-17400D01* X-2000Y-21000D02* Y-17500D01* Y-23265D02* Y-21000D01* Y-23265D02* X240Y-25506D01* X5500Y-18000D02* X9000D01* X24000Y-34500D02* X26000D01* X27000Y-33500D01* Y-29000D01* X24000Y-26000D02* X27000Y-29000D01* X22224Y-32724D02* X24000Y-34500D01* X20240Y-32724D02* X22224D01* X20240Y-26740D02* X24000Y-30500D01* X20240Y-26740D02* Y-23276D01* X14500Y51800D02* Y53433D01* Y51300D02* Y51800D01* X4300Y46500D02* X6900Y49100D01* X12300D01* X14500Y51300D01* X-26000Y48122D02* X-18178D01* X-9500Y51800D02* Y53433D01* Y51100D02* Y51800D01* X-18178Y48122D02* X-17000Y49300D01* X-11300D01* X-9500Y51100D01* X14500Y51800D02* X18178Y48122D01* D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-59900Y40300D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X-42700Y-10600D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X2500Y-47500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-60500Y3000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X-51400Y-14500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X19800Y-22100D02* D03* X22454Y-21500D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-11500Y-31900D02* D03* X-51500Y-31600D02* D03* X-51900Y-11100D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X18000Y-16300D02* D03* X15800D02* D03* X19900Y-17400D02* D03* X-39700Y-41600D02* D03* X-37700Y-43700D02* D03* X24000Y-57500D02* D03* X27300Y-52900D02* D03* X-56300Y-13100D02* D03* X-22500Y-19300D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* X29500Y-52300D02* D03* D56* X4500Y52100D02* D03* Y55100D02* D03* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X-19500Y41000D02* D03* Y38000D02* D03* Y44000D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X19300Y44700D02* D03* Y41700D02* D03* Y38700D02* D03* X4300Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X-4200Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X1500Y52100D02* D03* Y55100D02* D03* X-22500Y52100D02* D03* X-19500D02* D03* X-22500Y55100D02* D03* X-19500D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* D57* Y-69000D02* X-14000Y-72000D01* X-17000Y-74000D02* X-12000D01* X-300D01* X-14000Y-72000D02* X-12000Y-74000D01* X4200Y-69500D02* X43000D01* X45500D01* X43000D02* Y-67000D01* Y-70000D02* Y-69500D01* Y-73000D02* Y-70000D01* X-300Y-74000D02* X4200Y-69500D01* D58* X-60000Y-9173D02* X-58073D01* X-56500Y-7600D02* Y700D01* X-58073Y-9173D02* X-56500Y-7600D01* X-50390Y-3500D02* Y4790D01* X-50400Y4800D02* X-50390Y4790D01* X-54327Y-3500D02* X-54300Y-3473D01* Y4800D01* X-52358Y-3500D02* Y658D01* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* D71* X-22500Y55500D02* X-19500Y52500D01* X-22500Y55500D02* X-19500D01* X-22500Y52500D02* X-19500D01* X1500Y55100D02* X4500Y52100D01* X1500D02* X4500D01* X1500Y55100D02* X4500D01* X-22500D02* Y55500D01* Y52500D02* Y55100D01* X1500Y52100D02* Y55100D01* D72* X-14500Y53433D02* Y58500D01* X-18000Y62000D02* Y70000D01* Y62000D02* X-14500Y58500D01* X9500Y53433D02* Y59000D01* X6000Y62500D02* X9500Y59000D01* X6000Y62500D02* Y70000D01* X19500Y53433D02* Y60500D01* X18000Y62000D02* Y70000D01* Y62000D02* X19500Y60500D01* X-6000Y59000D02* Y70000D01* Y59000D02* X-4500Y57500D01* Y53433D02* Y57500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GBO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD12C,0.00100*% %ADD13C,0.00787*% %ADD14C,0.00600*% %ADD84C,0.00984*% G36* X950Y46350D02* X600Y46350D01* Y47650D01* X950Y47650D01* Y46350D01* D02* G37* G36* X-600D02* X-950D01* Y47650D01* X-600D01* Y46350D01* D02* G37* G36* X950Y39350D02* X600Y39350D01* Y40650D01* X950Y40650D01* Y39350D01* D02* G37* G36* X-600D02* X-950D01* Y40650D01* X-600D01* Y39350D01* D02* G37* G36* X18650Y27600D02* X17350D01* X17350Y27950D01* X18650D01* X18650Y27600D01* D02* G37* G36* X4650D02* X3350D01* X3350Y27950D01* X4650D01* X4650Y27600D01* D02* G37* G36* X-10350D02* X-11650D01* X-11650Y27950D01* X-10350D01* X-10350Y27600D01* D02* G37* G36* X-24350D02* X-25650D01* X-25650Y27950D01* X-24350D01* X-24350Y27600D01* D02* G37* G36* X25650Y26100D02* X25300D01* Y27900D01* X25650D01* Y26100D01* D02* G37* G36* X24700D02* X24350D01* Y27900D01* X24700D01* Y26100D01* D02* G37* G36* X11650D02* X11300D01* Y27900D01* X11650D01* Y26100D01* D02* G37* G36* X10700D02* X10350D01* Y27900D01* X10700D01* Y26100D01* D02* G37* G36* X-3350D02* X-3700D01* Y27900D01* X-3350D01* Y26100D01* D02* G37* G36* X-4300D02* X-4650D01* Y27900D01* X-4300D01* Y26100D01* D02* G37* G36* X-17350D02* X-17700D01* Y27900D01* X-17350D01* Y26100D01* D02* G37* G36* X-18300D02* X-18650D01* Y27900D01* X-18300D01* Y26100D01* D02* G37* G36* X18650Y26050D02* X17350D01* Y26400D01* X18650D01* Y26050D01* D02* G37* G36* X4650D02* X3350D01* Y26400D01* X4650D01* Y26050D01* D02* G37* G36* X-10350D02* X-11650D01* Y26400D01* X-10350D01* Y26050D01* D02* G37* G36* X-24350D02* X-25650D01* Y26400D01* X-24350D01* Y26050D01* D02* G37* G36* X-66850Y-3400D02* X-67200D01* Y-1600D01* X-66850D01* Y-3400D01* D02* G37* G36* X-67800D02* X-68150D01* Y-1600D01* X-67800D01* Y-3400D01* D02* G37* G36* X-66850Y-13900D02* X-67200D01* Y-12100D01* X-66850D01* Y-13900D01* D02* G37* G36* X-67800D02* X-68150D01* Y-12100D01* X-67800D01* Y-13900D01* D02* G37* G36* X15150Y-17900D02* X13850D01* Y-17550D01* X15150D01* Y-17900D01* D02* G37* G36* X650Y-18400D02* X300D01* Y-16600D01* X650D01* Y-18400D01* D02* G37* G36* X-300D02* X-650D01* Y-16600D01* X-300D01* Y-18400D01* D02* G37* G36* X22650Y-19400D02* X22300D01* Y-17600D01* X22650D01* Y-19400D01* D02* G37* G36* X21700D02* X21350D01* Y-17600D01* X21700D01* Y-19400D01* D02* G37* G36* X15150Y-19450D02* X13850D01* X13850Y-19100D01* X15150D01* X15150Y-19450D01* D02* G37* G36* X9900Y-19700D02* X8100D01* Y-19350D01* X9900D01* Y-19700D01* D02* G37* G36* X6400D02* X4600D01* Y-19350D01* X6400D01* Y-19700D01* D02* G37* G36* X9900Y-20650D02* X8100D01* Y-20300D01* X9900D01* Y-20650D01* D02* G37* G36* X6400D02* X4600D01* Y-20300D01* X6400D01* Y-20650D01* D02* G37* G36* X650Y-21900D02* X300D01* Y-20100D01* X650D01* Y-21900D01* D02* G37* G36* X-300D02* X-650D01* Y-20100D01* X-300D01* Y-21900D01* D02* G37* G36* X-6850D02* X-7200D01* Y-20100D01* X-6850D01* Y-21900D01* D02* G37* G36* X-7800D02* X-8150D01* Y-20100D01* X-7800D01* Y-21900D01* D02* G37* G36* X-14350D02* X-14700D01* Y-20100D01* X-14350D01* Y-21900D01* D02* G37* G36* X-15300D02* X-15650D01* Y-20100D01* X-15300D01* Y-21900D01* D02* G37* G36* X24900Y-23700D02* X23100D01* Y-23350D01* X24900D01* Y-23700D01* D02* G37* G36* X-14350Y-23900D02* X-15650D01* X-15650Y-23550D01* X-14350D01* X-14350Y-23900D01* D02* G37* G36* X24900Y-24650D02* X23100D01* Y-24300D01* X24900D01* Y-24650D01* D02* G37* G36* X-14350Y-25450D02* X-15650D01* Y-25100D01* X-14350D01* Y-25450D01* D02* G37* G36* Y-27400D02* X-15650D01* Y-27050D01* X-14350D01* Y-27400D01* D02* G37* G36* X9900Y-27700D02* X8100D01* Y-27350D01* X9900D01* Y-27700D01* D02* G37* G36* X6400D02* X4600D01* Y-27350D01* X6400D01* Y-27700D01* D02* G37* G36* X9900Y-28650D02* X8100D01* Y-28300D01* X9900D01* Y-28650D01* D02* G37* G36* X6400D02* X4600D01* Y-28300D01* X6400D01* Y-28650D01* D02* G37* G36* X-14350Y-28950D02* X-15650D01* X-15650Y-28600D01* X-14350D01* X-14350Y-28950D01* D02* G37* G36* X-66850Y-30900D02* X-68150D01* Y-30550D01* X-66850D01* Y-30900D01* D02* G37* G36* X-50000Y-31500D02* X-55000D01* Y-26500D01* X-50000Y-31500D01* D02* G37* G36* X24900Y-32200D02* X23100D01* Y-31850D01* X24900D01* Y-32200D01* D02* G37* G36* X-66850Y-32450D02* X-68150D01* X-68150Y-32100D01* X-66850D01* X-66850Y-32450D01* D02* G37* G36* X24900Y-33150D02* X23100D01* Y-32800D01* X24900D01* Y-33150D01* D02* G37* G36* X6400Y-35700D02* X4600D01* Y-35350D01* X6400D01* Y-35700D01* D02* G37* G36* X-66850Y-35900D02* X-67200D01* Y-34100D01* X-66850D01* Y-35900D01* D02* G37* G36* X-67800D02* X-68150D01* Y-34100D01* X-67800D01* Y-35900D01* D02* G37* G36* X-24600Y-36200D02* X-26400D01* Y-35850D01* X-24600D01* Y-36200D01* D02* G37* G36* X-61100D02* X-62900D01* Y-35850D01* X-61100D01* Y-36200D01* D02* G37* G36* X9950Y-36650D02* X9600D01* Y-35350D01* X9950D01* Y-36650D01* D02* G37* G36* X8400Y-35350D02* Y-36650D01* X8050Y-36650D01* Y-35350D01* X8400Y-35350D01* D02* G37* G36* X6400Y-36650D02* X4600D01* Y-36300D01* X6400D01* Y-36650D01* D02* G37* G36* X-24600Y-37150D02* X-26400D01* Y-36800D01* X-24600D01* Y-37150D01* D02* G37* G36* X-61100D02* X-62900D01* Y-36800D01* X-61100D01* Y-37150D01* D02* G37* G36* X15150Y-37400D02* X13850D01* Y-37050D01* X15150D01* Y-37400D01* D02* G37* G36* X-66850Y-37900D02* X-68150D01* Y-37550D01* X-66850D01* Y-37900D01* D02* G37* G36* X22650Y-38900D02* X22300D01* Y-37100D01* X22650D01* Y-38900D01* D02* G37* G36* X21700D02* X21350D01* Y-37100D01* X21700D01* Y-38900D01* D02* G37* G36* X15150Y-38950D02* X13850D01* X13850Y-38600D01* X15150D01* X15150Y-38950D01* D02* G37* G36* X-66850Y-39450D02* X-68150D01* X-68150Y-39100D01* X-66850D01* X-66850Y-39450D01* D02* G37* G36* X22650Y-55900D02* X21350D01* X21350Y-55550D01* X22650D01* X22650Y-55900D01* D02* G37* G36* X22650Y-57450D02* X21350D01* Y-57100D01* X22650D01* Y-57450D01* D02* G37* G36* X-32000Y23000D02* X-40586D01* Y58500D01* X-32000D01* Y23000D01* D02* G37* G36* X41673Y68923D02* X38854D01* Y69655D01* X41673D01* Y68923D01* D02* G37* G36* X46239Y67184D02* X45351D01* X45033Y68264D01* X43530D01* X43212Y67184D01* X42295D01* X43745Y71816D01* X44788D01* X46239Y67184D01* D02* G37* G36* X-17859Y-37368D02* X-18194D01* Y-36601D01* X-18695D01* Y-37368D01* X-19030D01* Y-35634D01* X-18695D01* Y-36321D01* X-18194D01* Y-35634D01* X-17859D01* Y-37368D01* D02* G37* G36* X-19775Y-36709D02* Y-37368D01* X-20111D01* Y-36706D01* X-20676Y-35634D01* X-20335D01* X-19947Y-36432D01* X-19565Y-35634D01* X-19210D01* X-19775Y-36709D01* D02* G37* G36* X-14920Y-36717D02* X-15975D01* Y-36443D01* X-14920D01* Y-36717D01* D02* G37* G36* X-13363Y-37368D02* X-13665D01* Y-36579D01* X-13662Y-36474D01* X-13659Y-36366D01* X-13654Y-36258D01* X-13648Y-36205D01* X-13645Y-36155D01* X-13643Y-36111D01* X-13637Y-36066D01* X-13634Y-36031D01* X-13632Y-35997D01* X-13629Y-35969D01* Y-35950D01* X-13626Y-35939D01* Y-35934D01* X-14122Y-37368D01* X-14535D01* Y-35634D01* X-14233D01* Y-36424D01* Y-36496D01* X-14235Y-36562D01* Y-36621D01* X-14238Y-36673D01* X-14241Y-36715D01* Y-36731D01* Y-36745D01* X-14244Y-36759D01* Y-36767D01* Y-36770D01* Y-36773D01* X-14249Y-36828D01* X-14252Y-36881D01* X-14258Y-36931D01* X-14263Y-36975D01* X-14266Y-37014D01* X-14269Y-37044D01* Y-37055D01* X-14272Y-37064D01* Y-37067D01* Y-37069D01* X-13776Y-35634D01* X-13363D01* Y-37368D01* D02* G37* G36* X-11017Y-35607D02* X-10942Y-35618D01* X-10875Y-35634D01* X-10817Y-35654D01* X-10792Y-35665D01* X-10768Y-35676D01* X-10748Y-35684D01* X-10731Y-35693D01* X-10718Y-35698D01* X-10709Y-35704D01* X-10704Y-35709D01* X-10701D01* X-10637Y-35754D01* X-10582Y-35801D01* X-10535Y-35853D01* X-10496Y-35903D01* X-10463Y-35947D01* X-10452Y-35967D01* X-10441Y-35983D01* X-10432Y-35997D01* X-10427Y-36008D01* X-10421Y-36014D01* Y-36017D01* X-10388Y-36094D01* X-10363Y-36177D01* X-10344Y-36258D01* X-10333Y-36332D01* X-10327Y-36368D01* X-10324Y-36399D01* X-10322Y-36427D01* Y-36452D01* X-10319Y-36471D01* Y-36485D01* Y-36496D01* Y-36499D01* X-10324Y-36601D01* X-10335Y-36695D01* X-10341Y-36740D01* X-10349Y-36778D01* X-10360Y-36817D01* X-10369Y-36850D01* X-10377Y-36881D01* X-10388Y-36909D01* X-10396Y-36933D01* X-10402Y-36953D01* X-10410Y-36967D01* X-10413Y-36981D01* X-10418Y-36986D01* Y-36989D01* X-10460Y-37061D01* X-10504Y-37122D01* X-10549Y-37174D01* X-10596Y-37219D01* X-10634Y-37252D01* X-10665Y-37277D01* X-10679Y-37285D01* X-10687Y-37291D01* X-10693Y-37296D01* X-10695D01* X-10765Y-37330D01* X-10834Y-37354D01* X-10900Y-37374D01* X-10964Y-37385D01* X-10992Y-37391D01* X-11017Y-37393D01* X-11039Y-37396D01* X-11058D01* X-11075Y-37399D01* X-11097D01* X-11158Y-37396D01* X-11216Y-37391D01* X-11272Y-37380D01* X-11324Y-37366D01* X-11374Y-37349D01* X-11418Y-37330D01* X-11463Y-37310D01* X-11499Y-37288D01* X-11535Y-37269D01* X-11565Y-37249D01* X-11590Y-37230D01* X-11612Y-37213D01* X-11629Y-37199D01* X-11640Y-37188D01* X-11648Y-37183D01* X-11651Y-37180D01* X-11493Y-36978D01* X-11457Y-37003D01* X-11421Y-37028D01* X-11391Y-37044D01* X-11363Y-37061D01* X-11338Y-37072D01* X-11321Y-37083D01* X-11310Y-37086D01* X-11308Y-37089D01* X-11274Y-37100D01* X-11241Y-37108D01* X-11208Y-37116D01* X-11177Y-37119D01* X-11150Y-37122D01* X-11128Y-37125D01* X-11108D01* X-11072Y-37122D01* X-11036Y-37119D01* X-10975Y-37102D01* X-10920Y-37078D01* X-10873Y-37050D01* X-10837Y-37022D01* X-10809Y-36997D01* X-10792Y-36981D01* X-10790Y-36978D01* X-10787Y-36975D01* X-10765Y-36945D01* X-10748Y-36911D01* X-10718Y-36836D01* X-10695Y-36759D01* X-10682Y-36681D01* X-10676Y-36643D01* X-10671Y-36609D01* X-10668Y-36579D01* Y-36551D01* X-10665Y-36529D01* Y-36513D01* Y-36501D01* Y-36499D01* X-10668Y-36438D01* X-10671Y-36382D01* X-10676Y-36332D01* X-10684Y-36285D01* X-10693Y-36241D01* X-10704Y-36202D01* X-10715Y-36166D01* X-10726Y-36136D01* X-10737Y-36108D01* X-10748Y-36083D01* X-10759Y-36064D01* X-10768Y-36047D01* X-10776Y-36036D01* X-10781Y-36028D01* X-10787Y-36022D01* Y-36019D01* X-10812Y-35992D01* X-10837Y-35969D01* X-10862Y-35950D01* X-10889Y-35934D01* X-10942Y-35906D01* X-10992Y-35889D01* X-11039Y-35878D01* X-11056Y-35875D01* X-11072Y-35873D01* X-11086Y-35870D01* X-11139D01* X-11175Y-35875D01* X-11238Y-35889D01* X-11299Y-35909D01* X-11352Y-35931D01* X-11396Y-35956D01* X-11413Y-35967D01* X-11429Y-35975D01* X-11441Y-35983D01* X-11449Y-35989D01* X-11454Y-35992D01* X-11457Y-35994D01* X-11626Y-35792D01* X-11582Y-35756D01* X-11537Y-35726D01* X-11499Y-35698D01* X-11460Y-35679D01* X-11429Y-35665D01* X-11407Y-35654D01* X-11391Y-35648D01* X-11388Y-35645D01* X-11385D01* X-11338Y-35632D01* X-11288Y-35620D01* X-11238Y-35612D01* X-11194Y-35607D01* X-11155Y-35604D01* X-11122Y-35601D01* X-11094D01* X-11017Y-35607D01* D02* G37* G36* X-11712Y-37368D02* X-12044D01* X-12163Y-36964D01* X-12726D01* X-12845Y-37368D01* X-13188D01* X-12645Y-35634D01* X-12255D01* X-11712Y-37368D01* D02* G37* G36* X-16421D02* X-16753D01* Y-36767D01* X-16933D01* X-16992Y-36764D01* X-17044Y-36762D01* X-17097Y-36753D01* X-17144Y-36745D01* X-17188Y-36734D01* X-17230Y-36723D01* X-17266Y-36709D01* X-17299Y-36695D01* X-17330Y-36684D01* X-17357Y-36670D01* X-17379Y-36659D01* X-17399Y-36648D01* X-17413Y-36640D01* X-17424Y-36632D01* X-17429Y-36629D01* X-17432Y-36626D01* X-17465Y-36598D01* X-17493Y-36568D01* X-17518Y-36532D01* X-17540Y-36499D01* X-17557Y-36463D01* X-17573Y-36427D01* X-17595Y-36355D01* X-17601Y-36321D01* X-17607Y-36291D01* X-17612Y-36260D01* X-17615Y-36235D01* X-17618Y-36216D01* Y-36202D01* Y-36191D01* Y-36188D01* X-17615Y-36138D01* X-17609Y-36091D01* X-17601Y-36047D01* X-17590Y-36008D01* X-17573Y-35972D01* X-17560Y-35936D01* X-17543Y-35906D01* X-17526Y-35878D01* X-17507Y-35856D01* X-17490Y-35834D01* X-17476Y-35817D01* X-17462Y-35801D01* X-17449Y-35789D01* X-17440Y-35781D01* X-17435Y-35778D01* X-17432Y-35776D01* X-17396Y-35751D01* X-17357Y-35729D01* X-17316Y-35709D01* X-17274Y-35693D01* X-17188Y-35668D01* X-17105Y-35651D01* X-17066Y-35645D01* X-17030Y-35643D01* X-16997Y-35640D01* X-16970Y-35637D01* X-16947Y-35634D01* X-16421D01* Y-37368D01* D02* G37* G36* X19000Y-71500D02* X-19000D01* Y-64500D01* X19000D01* Y-71500D01* D02* G37* G36* X-26087Y2500D02* X-68913D01* Y9500D01* X-26087D01* Y2500D01* D02* G37* G36* X37375Y63700D02* X24625D01* Y75200D01* X37375D01* Y63700D01* D02* G37* G36* X-16051Y-73157D02* X-16010Y-73164D01* X-15977Y-73175D01* X-15951Y-73190D01* X-15925Y-73205D01* X-15910Y-73216D01* X-15899Y-73223D01* X-15895Y-73227D01* X-15869Y-73257D01* X-15851Y-73286D01* X-15840Y-73320D01* X-15832Y-73346D01* X-15825Y-73371D01* X-15821Y-73394D01* Y-73408D01* Y-73412D01* X-15825Y-73453D01* X-15832Y-73490D01* X-15843Y-73523D01* X-15858Y-73549D01* X-15873Y-73571D01* X-15884Y-73586D01* X-15891Y-73597D01* X-15895Y-73601D01* X-15925Y-73627D01* X-15958Y-73645D01* X-15991Y-73656D01* X-16021Y-73664D01* X-16051Y-73671D01* X-16073Y-73675D01* X-16091D01* X-16132Y-73671D01* X-16173Y-73664D01* X-16206Y-73653D01* X-16236Y-73638D01* X-16258Y-73623D01* X-16273Y-73612D01* X-16284Y-73605D01* X-16287Y-73601D01* X-16313Y-73571D01* X-16332Y-73538D01* X-16347Y-73508D01* X-16354Y-73479D01* X-16361Y-73453D01* X-16365Y-73431D01* Y-73416D01* Y-73412D01* X-16361Y-73375D01* X-16354Y-73338D01* X-16339Y-73308D01* X-16328Y-73283D01* X-16313Y-73260D01* X-16298Y-73246D01* X-16291Y-73234D01* X-16287Y-73231D01* X-16258Y-73205D01* X-16225Y-73186D01* X-16191Y-73172D01* X-16162Y-73164D01* X-16136Y-73157D01* X-16114Y-73153D01* X-16091D01* X-16051Y-73157D01* D02* G37* G36* X2705Y-75784D02* X2257D01* Y-74759D01* X1587D01* Y-75784D01* X1140D01* Y-73468D01* X1587D01* Y-74385D01* X2257D01* Y-73468D01* X2705D01* Y-75784D01* D02* G37* G36* X-13853Y-75784D02* X-14330D01* X-15055Y-73468D01* X-14611D01* X-14097Y-75358D01* X-13590Y-73468D01* X-13128D01* X-13853Y-75784D01* D02* G37* G36* X6708Y-75784D02* X6305D01* Y-74729D01* X6308Y-74589D01* X6312Y-74444D01* X6320Y-74300D01* X6327Y-74230D01* X6331Y-74163D01* X6334Y-74104D01* X6342Y-74045D01* X6346Y-73997D01* X6349Y-73952D01* X6353Y-73915D01* Y-73889D01* X6357Y-73875D01* Y-73867D01* X5694Y-75784D01* X5143D01* Y-73468D01* X5546D01* Y-74522D01* Y-74618D01* X5543Y-74707D01* Y-74785D01* X5539Y-74855D01* X5535Y-74911D01* Y-74933D01* Y-74951D01* X5531Y-74970D01* Y-74981D01* Y-74985D01* Y-74988D01* X5524Y-75062D01* X5520Y-75133D01* X5513Y-75199D01* X5506Y-75258D01* X5502Y-75310D01* X5498Y-75351D01* Y-75366D01* X5494Y-75377D01* Y-75380D01* Y-75384D01* X6157Y-73468D01* X6708D01* Y-75784D01* D02* G37* G36* X-5302D02* X-5705D01* Y-74729D01* X-5702Y-74589D01* X-5698Y-74444D01* X-5691Y-74300D01* X-5683Y-74230D01* X-5680Y-74163D01* X-5676Y-74104D01* X-5668Y-74045D01* X-5665Y-73997D01* X-5661Y-73952D01* X-5657Y-73915D01* Y-73889D01* X-5654Y-73875D01* Y-73867D01* X-6316Y-75784D01* X-6867D01* Y-73468D01* X-6464D01* Y-74522D01* Y-74618D01* X-6468Y-74707D01* Y-74785D01* X-6471Y-74855D01* X-6475Y-74911D01* Y-74933D01* Y-74951D01* X-6479Y-74970D01* Y-74981D01* Y-74985D01* Y-74988D01* X-6486Y-75062D01* X-6490Y-75133D01* X-6497Y-75199D01* X-6505Y-75258D01* X-6508Y-75310D01* X-6512Y-75351D01* Y-75366D01* X-6516Y-75377D01* Y-75380D01* Y-75384D01* X-5853Y-73468D01* X-5302D01* Y-75784D01* D02* G37* G36* X9842Y-73431D02* X9942Y-73445D01* X10031Y-73468D01* X10108Y-73493D01* X10142Y-73508D01* X10175Y-73523D01* X10201Y-73534D01* X10223Y-73545D01* X10242Y-73553D01* X10253Y-73560D01* X10260Y-73567D01* X10264D01* X10349Y-73627D01* X10423Y-73690D01* X10486Y-73760D01* X10538Y-73826D01* X10582Y-73886D01* X10597Y-73912D01* X10612Y-73934D01* X10623Y-73952D01* X10630Y-73967D01* X10638Y-73975D01* Y-73978D01* X10682Y-74082D01* X10715Y-74193D01* X10741Y-74300D01* X10756Y-74400D01* X10763Y-74448D01* X10767Y-74489D01* X10771Y-74526D01* Y-74559D01* X10774Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X10767Y-74759D01* X10752Y-74885D01* X10745Y-74944D01* X10734Y-74996D01* X10719Y-75047D01* X10708Y-75092D01* X10697Y-75133D01* X10682Y-75170D01* X10671Y-75203D01* X10663Y-75229D01* X10652Y-75247D01* X10649Y-75266D01* X10641Y-75273D01* Y-75277D01* X10586Y-75373D01* X10526Y-75454D01* X10467Y-75525D01* X10404Y-75584D01* X10353Y-75628D01* X10312Y-75662D01* X10293Y-75673D01* X10282Y-75680D01* X10275Y-75688D01* X10271D01* X10179Y-75732D01* X10086Y-75765D01* X9997Y-75791D01* X9912Y-75806D01* X9875Y-75813D01* X9842Y-75817D01* X9812Y-75821D01* X9787D01* X9764Y-75824D01* X9735D01* X9653Y-75821D01* X9576Y-75813D01* X9502Y-75799D01* X9431Y-75780D01* X9365Y-75758D01* X9306Y-75732D01* X9246Y-75706D01* X9198Y-75677D01* X9150Y-75651D01* X9109Y-75625D01* X9076Y-75599D01* X9047Y-75577D01* X9024Y-75558D01* X9009Y-75543D01* X8998Y-75536D01* X8995Y-75532D01* X9206Y-75262D01* X9254Y-75295D01* X9302Y-75329D01* X9342Y-75351D01* X9380Y-75373D01* X9413Y-75388D01* X9435Y-75403D01* X9450Y-75406D01* X9454Y-75410D01* X9498Y-75425D01* X9542Y-75436D01* X9587Y-75447D01* X9627Y-75451D01* X9664Y-75454D01* X9694Y-75458D01* X9720D01* X9768Y-75454D01* X9816Y-75451D01* X9898Y-75429D01* X9972Y-75395D01* X10034Y-75358D01* X10082Y-75321D01* X10120Y-75288D01* X10142Y-75266D01* X10145Y-75262D01* X10149Y-75258D01* X10179Y-75218D01* X10201Y-75173D01* X10242Y-75073D01* X10271Y-74970D01* X10290Y-74866D01* X10297Y-74814D01* X10305Y-74770D01* X10308Y-74729D01* Y-74692D01* X10312Y-74663D01* Y-74641D01* Y-74626D01* Y-74622D01* X10308Y-74541D01* X10305Y-74467D01* X10297Y-74400D01* X10286Y-74337D01* X10275Y-74278D01* X10260Y-74226D01* X10245Y-74178D01* X10231Y-74137D01* X10216Y-74100D01* X10201Y-74067D01* X10186Y-74041D01* X10175Y-74019D01* X10164Y-74004D01* X10157Y-73993D01* X10149Y-73986D01* Y-73982D01* X10116Y-73945D01* X10082Y-73915D01* X10049Y-73889D01* X10012Y-73867D01* X9942Y-73830D01* X9875Y-73808D01* X9812Y-73793D01* X9790Y-73790D01* X9768Y-73786D01* X9749Y-73782D01* X9679D01* X9631Y-73790D01* X9546Y-73808D01* X9465Y-73834D01* X9394Y-73864D01* X9335Y-73897D01* X9313Y-73912D01* X9291Y-73923D01* X9276Y-73934D01* X9265Y-73941D01* X9257Y-73945D01* X9254Y-73949D01* X9028Y-73678D01* X9087Y-73630D01* X9146Y-73590D01* X9198Y-73553D01* X9250Y-73527D01* X9291Y-73508D01* X9320Y-73493D01* X9342Y-73486D01* X9346Y-73482D01* X9350D01* X9413Y-73464D01* X9479Y-73449D01* X9546Y-73438D01* X9605Y-73431D01* X9657Y-73427D01* X9701Y-73423D01* X9738D01* X9842Y-73431D01* D02* G37* G36* X-2168D02* X-2068Y-73445D01* X-1980Y-73468D01* X-1902Y-73493D01* X-1869Y-73508D01* X-1835Y-73523D01* X-1809Y-73534D01* X-1787Y-73545D01* X-1769Y-73553D01* X-1757Y-73560D01* X-1750Y-73567D01* X-1746D01* X-1661Y-73627D01* X-1587Y-73690D01* X-1524Y-73760D01* X-1473Y-73826D01* X-1428Y-73886D01* X-1413Y-73912D01* X-1399Y-73934D01* X-1388Y-73952D01* X-1380Y-73967D01* X-1373Y-73975D01* Y-73978D01* X-1328Y-74082D01* X-1295Y-74193D01* X-1269Y-74300D01* X-1254Y-74400D01* X-1247Y-74448D01* X-1243Y-74489D01* X-1240Y-74526D01* Y-74559D01* X-1236Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X-1243Y-74759D01* X-1258Y-74885D01* X-1265Y-74944D01* X-1276Y-74996D01* X-1291Y-75047D01* X-1302Y-75092D01* X-1314Y-75133D01* X-1328Y-75170D01* X-1339Y-75203D01* X-1347Y-75229D01* X-1358Y-75247D01* X-1362Y-75266D01* X-1369Y-75273D01* Y-75277D01* X-1424Y-75373D01* X-1484Y-75454D01* X-1543Y-75525D01* X-1606Y-75584D01* X-1658Y-75628D01* X-1698Y-75662D01* X-1717Y-75673D01* X-1728Y-75680D01* X-1735Y-75688D01* X-1739D01* X-1832Y-75732D01* X-1924Y-75765D01* X-2013Y-75791D01* X-2098Y-75806D01* X-2135Y-75813D01* X-2168Y-75817D01* X-2198Y-75821D01* X-2224D01* X-2246Y-75824D01* X-2276D01* X-2357Y-75821D01* X-2435Y-75813D01* X-2509Y-75799D01* X-2579Y-75780D01* X-2646Y-75758D01* X-2705Y-75732D01* X-2764Y-75706D01* X-2812Y-75677D01* X-2860Y-75651D01* X-2901Y-75625D01* X-2934Y-75599D01* X-2964Y-75577D01* X-2986Y-75558D01* X-3001Y-75543D01* X-3012Y-75536D01* X-3015Y-75532D01* X-2805Y-75262D01* X-2757Y-75295D01* X-2708Y-75329D01* X-2668Y-75351D01* X-2631Y-75373D01* X-2597Y-75388D01* X-2575Y-75403D01* X-2560Y-75406D01* X-2557Y-75410D01* X-2512Y-75425D01* X-2468Y-75436D01* X-2424Y-75447D01* X-2383Y-75451D01* X-2346Y-75454D01* X-2316Y-75458D01* X-2290D01* X-2242Y-75454D01* X-2194Y-75451D01* X-2113Y-75429D01* X-2039Y-75395D01* X-1976Y-75358D01* X-1928Y-75321D01* X-1891Y-75288D01* X-1869Y-75266D01* X-1865Y-75262D01* X-1861Y-75258D01* X-1832Y-75218D01* X-1809Y-75173D01* X-1769Y-75073D01* X-1739Y-74970D01* X-1720Y-74866D01* X-1713Y-74814D01* X-1706Y-74770D01* X-1702Y-74729D01* Y-74692D01* X-1698Y-74663D01* Y-74641D01* Y-74626D01* Y-74622D01* X-1702Y-74541D01* X-1706Y-74467D01* X-1713Y-74400D01* X-1724Y-74337D01* X-1735Y-74278D01* X-1750Y-74226D01* X-1765Y-74178D01* X-1780Y-74137D01* X-1795Y-74100D01* X-1809Y-74067D01* X-1824Y-74041D01* X-1835Y-74019D01* X-1846Y-74004D01* X-1854Y-73993D01* X-1861Y-73986D01* Y-73982D01* X-1894Y-73945D01* X-1928Y-73915D01* X-1961Y-73889D01* X-1998Y-73867D01* X-2068Y-73830D01* X-2135Y-73808D01* X-2198Y-73793D01* X-2220Y-73790D01* X-2242Y-73786D01* X-2261Y-73782D01* X-2331D01* X-2379Y-73790D01* X-2464Y-73808D01* X-2546Y-73834D01* X-2616Y-73864D01* X-2675Y-73897D01* X-2697Y-73912D01* X-2719Y-73923D01* X-2734Y-73934D01* X-2745Y-73941D01* X-2753Y-73945D01* X-2757Y-73949D01* X-2982Y-73678D01* X-2923Y-73630D01* X-2864Y-73590D01* X-2812Y-73553D01* X-2760Y-73527D01* X-2719Y-73508D01* X-2690Y-73493D01* X-2668Y-73486D01* X-2664Y-73482D01* X-2660D01* X-2597Y-73464D01* X-2531Y-73449D01* X-2464Y-73438D01* X-2405Y-73431D01* X-2353Y-73427D01* X-2309Y-73423D01* X-2272D01* X-2168Y-73431D01* D02* G37* G36* X17915D02* X18012Y-73445D01* X18097Y-73468D01* X18174Y-73493D01* X18208Y-73508D01* X18237Y-73519D01* X18263Y-73531D01* X18285Y-73542D01* X18304Y-73549D01* X18315Y-73556D01* X18322Y-73564D01* X18326D01* X18407Y-73619D01* X18482Y-73686D01* X18544Y-73752D01* X18600Y-73819D01* X18641Y-73878D01* X18655Y-73904D01* X18670Y-73926D01* X18681Y-73945D01* X18689Y-73960D01* X18696Y-73967D01* Y-73971D01* X18741Y-74074D01* X18774Y-74185D01* X18796Y-74296D01* X18811Y-74396D01* X18818Y-74444D01* X18822Y-74489D01* X18826Y-74526D01* Y-74559D01* X18829Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X18826Y-74729D01* X18818Y-74829D01* X18807Y-74922D01* X18789Y-75011D01* X18770Y-75092D01* X18752Y-75162D01* X18729Y-75229D01* X18703Y-75292D01* X18681Y-75344D01* X18659Y-75388D01* X18641Y-75429D01* X18618Y-75462D01* X18604Y-75484D01* X18593Y-75503D01* X18585Y-75514D01* X18581Y-75517D01* X18533Y-75573D01* X18478Y-75617D01* X18422Y-75658D01* X18367Y-75695D01* X18308Y-75725D01* X18248Y-75750D01* X18189Y-75769D01* X18134Y-75788D01* X18082Y-75799D01* X18034Y-75810D01* X17989Y-75813D01* X17952Y-75821D01* X17923D01* X17897Y-75824D01* X17878D01* X17793Y-75821D01* X17716Y-75817D01* X17645Y-75810D01* X17586Y-75799D01* X17534Y-75788D01* X17497Y-75780D01* X17482Y-75776D01* X17471D01* X17468Y-75773D01* X17464D01* X17394Y-75750D01* X17327Y-75725D01* X17264Y-75695D01* X17205Y-75669D01* X17157Y-75647D01* X17120Y-75628D01* X17105Y-75621D01* X17094Y-75614D01* X17090Y-75610D01* X17087D01* Y-74467D01* X17945D01* X17901Y-74818D01* X17523D01* Y-75392D01* X17579Y-75418D01* X17634Y-75440D01* X17690Y-75454D01* X17741Y-75462D01* X17790Y-75469D01* X17827Y-75473D01* X17860D01* X17904Y-75469D01* X17949Y-75466D01* X18026Y-75443D01* X18093Y-75410D01* X18145Y-75373D01* X18189Y-75340D01* X18219Y-75306D01* X18234Y-75284D01* X18241Y-75281D01* Y-75277D01* X18263Y-75236D01* X18282Y-75192D01* X18300Y-75144D01* X18315Y-75092D01* X18337Y-74985D01* X18352Y-74877D01* X18356Y-74826D01* X18359Y-74777D01* X18363Y-74733D01* Y-74696D01* X18367Y-74666D01* Y-74641D01* Y-74626D01* Y-74622D01* X18363Y-74541D01* X18359Y-74467D01* X18352Y-74400D01* X18341Y-74337D01* X18330Y-74278D01* X18315Y-74226D01* X18300Y-74178D01* X18285Y-74137D01* X18271Y-74100D01* X18259Y-74067D01* X18245Y-74041D01* X18234Y-74019D01* X18223Y-74004D01* X18215Y-73993D01* X18208Y-73986D01* Y-73982D01* X18178Y-73945D01* X18145Y-73915D01* X18112Y-73889D01* X18078Y-73867D01* X18008Y-73830D01* X17945Y-73808D01* X17886Y-73793D01* X17864Y-73790D01* X17841Y-73786D01* X17823Y-73782D01* X17756D01* X17716Y-73790D01* X17675Y-73797D01* X17645Y-73804D01* X17616Y-73812D01* X17597Y-73819D01* X17582Y-73823D01* X17579Y-73826D01* X17538Y-73845D01* X17501Y-73867D01* X17460Y-73889D01* X17427Y-73912D01* X17397Y-73934D01* X17375Y-73952D01* X17357Y-73963D01* X17353Y-73967D01* X17109Y-73716D01* X17168Y-73660D01* X17223Y-73612D01* X17279Y-73575D01* X17327Y-73542D01* X17368Y-73519D01* X17397Y-73501D01* X17420Y-73493D01* X17423Y-73490D01* X17427D01* X17490Y-73468D01* X17553Y-73453D01* X17619Y-73438D01* X17679Y-73431D01* X17730Y-73427D01* X17775Y-73423D01* X17812D01* X17915Y-73431D01* D02* G37* G36* X15784Y-73956D02* X15843Y-73963D01* X15899Y-73975D01* X15947Y-73989D01* X15988Y-74004D01* X16017Y-74015D01* X16036Y-74023D01* X16043Y-74026D01* X16095Y-74056D01* X16139Y-74089D01* X16176Y-74119D01* X16206Y-74148D01* X16228Y-74178D01* X16247Y-74200D01* X16254Y-74215D01* X16258Y-74219D01* X16276Y-73997D01* X16657D01* Y-75784D01* X16225D01* Y-74526D01* X16169Y-74459D01* X16143Y-74433D01* X16117Y-74407D01* X16095Y-74389D01* X16077Y-74374D01* X16065Y-74367D01* X16062Y-74363D01* X16025Y-74341D01* X15988Y-74326D01* X15951Y-74311D01* X15921Y-74304D01* X15895Y-74300D01* X15873Y-74296D01* X15821D01* X15795Y-74300D01* X15769Y-74308D01* X15751Y-74311D01* X15736Y-74319D01* X15725Y-74326D01* X15721Y-74330D01* X15718D01* X15703Y-74344D01* X15688Y-74363D01* X15669Y-74400D01* X15666Y-74418D01* X15662Y-74430D01* X15658Y-74441D01* Y-74444D01* X15651Y-74478D01* X15647Y-74515D01* X15644Y-74589D01* X15640Y-74626D01* Y-74652D01* Y-74670D01* Y-74677D01* Y-75784D01* X15207D01* Y-74496D01* X15214Y-74407D01* X15229Y-74326D01* X15248Y-74256D01* X15274Y-74200D01* X15300Y-74156D01* X15318Y-74123D01* X15333Y-74104D01* X15340Y-74097D01* X15392Y-74049D01* X15455Y-74011D01* X15518Y-73986D01* X15581Y-73971D01* X15636Y-73960D01* X15658Y-73956D01* X15681D01* X15695Y-73952D01* X15721D01* X15784Y-73956D01* D02* G37* G36* X8913Y-75784D02* X8469D01* X8310Y-75244D01* X7559D01* X7400Y-75784D01* X6941D01* X7666Y-73468D01* X8188D01* X8913Y-75784D01* D02* G37* G36* X-3097D02* X-3541D01* X-3700Y-75244D01* X-4451D01* X-4610Y-75784D01* X-5069D01* X-4344Y-73468D01* X-3822D01* X-3097Y-75784D01* D02* G37* G36* X-9465Y-75784D02* X-10874D01* X-10922Y-75406D01* X-9909D01* Y-73468D01* X-9465D01* Y-75784D01* D02* G37* G36* X-15448Y-74330D02* X-15947D01* Y-75454D01* X-15433D01* Y-75784D01* X-16850D01* Y-75454D01* X-16376D01* Y-73997D01* X-15448D01* Y-74330D01* D02* G37* G36* X-18245Y-73956D02* X-18185Y-73963D01* X-18130Y-73975D01* X-18082Y-73989D01* X-18041Y-74004D01* X-18012Y-74015D01* X-17993Y-74023D01* X-17986Y-74026D01* X-17934Y-74056D01* X-17889Y-74089D01* X-17853Y-74119D01* X-17823Y-74148D01* X-17801Y-74178D01* X-17782Y-74200D01* X-17775Y-74215D01* X-17771Y-74219D01* X-17753Y-73997D01* X-17371D01* Y-75784D01* X-17804D01* Y-74526D01* X-17860Y-74459D01* X-17886Y-74433D01* X-17912Y-74407D01* X-17934Y-74389D01* X-17952Y-74374D01* X-17964Y-74367D01* X-17967Y-74363D01* X-18004Y-74341D01* X-18041Y-74326D01* X-18078Y-74311D01* X-18108Y-74304D01* X-18134Y-74300D01* X-18156Y-74296D01* X-18208D01* X-18234Y-74300D01* X-18259Y-74308D01* X-18278Y-74311D01* X-18293Y-74319D01* X-18304Y-74326D01* X-18308Y-74330D01* X-18311D01* X-18326Y-74344D01* X-18341Y-74363D01* X-18359Y-74400D01* X-18363Y-74418D01* X-18367Y-74430D01* X-18371Y-74441D01* Y-74444D01* X-18378Y-74478D01* X-18382Y-74515D01* X-18385Y-74589D01* X-18389Y-74626D01* Y-74652D01* Y-74670D01* Y-74677D01* Y-75784D01* X-18822D01* Y-74496D01* X-18814Y-74407D01* X-18800Y-74326D01* X-18781Y-74256D01* X-18755Y-74200D01* X-18729Y-74156D01* X-18711Y-74123D01* X-18696Y-74104D01* X-18689Y-74097D01* X-18637Y-74049D01* X-18574Y-74011D01* X-18511Y-73986D01* X-18448Y-73971D01* X-18393Y-73960D01* X-18371Y-73956D01* X-18348D01* X-18334Y-73952D01* X-18308D01* X-18245Y-73956D01* D02* G37* G36* X13642Y-74137D02* X13668Y-74104D01* X13694Y-74074D01* X13723Y-74052D01* X13757Y-74030D01* X13823Y-73997D01* X13890Y-73975D01* X13949Y-73963D01* X13975Y-73956D01* X14001D01* X14019Y-73952D01* X14045D01* X14123Y-73956D01* X14197Y-73971D01* X14260Y-73989D01* X14319Y-74011D01* X14363Y-74037D01* X14397Y-74056D01* X14419Y-74071D01* X14423Y-74074D01* X14426D01* X14482Y-74123D01* X14534Y-74178D01* X14578Y-74234D01* X14611Y-74285D01* X14637Y-74333D01* X14659Y-74374D01* X14667Y-74385D01* X14671Y-74396D01* X14674Y-74404D01* Y-74407D01* X14704Y-74489D01* X14722Y-74570D01* X14737Y-74652D01* X14748Y-74726D01* X14756Y-74792D01* Y-74818D01* X14759Y-74844D01* Y-74862D01* Y-74877D01* Y-74885D01* Y-74888D01* X14756Y-74966D01* X14752Y-75044D01* X14744Y-75110D01* X14733Y-75177D01* X14719Y-75240D01* X14704Y-75295D01* X14689Y-75347D01* X14674Y-75392D01* X14659Y-75436D01* X14645Y-75469D01* X14630Y-75503D01* X14615Y-75529D01* X14604Y-75547D01* X14596Y-75562D01* X14589Y-75569D01* Y-75573D01* X14556Y-75617D01* X14519Y-75654D01* X14478Y-75688D01* X14437Y-75717D01* X14393Y-75743D01* X14352Y-75762D01* X14267Y-75791D01* X14193Y-75810D01* X14160Y-75817D01* X14130Y-75821D01* X14108Y-75824D01* X14075D01* X14019Y-75821D01* X13964Y-75813D01* X13916Y-75802D01* X13875Y-75791D01* X13838Y-75780D01* X13812Y-75769D01* X13797Y-75762D01* X13790Y-75758D01* X13746Y-75732D01* X13705Y-75702D01* X13675Y-75669D01* X13653Y-75639D01* X13634Y-75614D01* X13623Y-75591D01* X13620Y-75577D01* X13616Y-75573D01* X13598Y-75784D01* X13209D01* Y-73308D01* X13642Y-73260D01* Y-74137D01* D02* G37* G36* X4773Y-76380D02* X3075D01* Y-76017D01* X4773D01* Y-76380D01* D02* G37* G36* X-7237D02* X-8935Y-76380D01* Y-76017D01* X-7237Y-76017D01* Y-76380D01* D02* G37* G36* X-74151Y-16041D02* X-74562D01* Y-14456D01* X-74151D01* Y-16041D01* D02* G37* G36* X-74941Y-16856D02* X-75282Y-17393D01* X-73564D01* Y-16773D01* X-73173D01* Y-18379D01* X-73564D01* Y-17875D01* X-75777D01* Y-17459D01* X-75274Y-16657D01* X-74941Y-16856D01* D02* G37* G36* X-75161Y-19107D02* X-75216Y-19157D01* X-75257Y-19202D01* X-75295Y-19244D01* X-75324Y-19282D01* X-75345Y-19311D01* X-75357Y-19331D01* X-75365Y-19348D01* X-75369Y-19352D01* X-75390Y-19394D01* X-75403Y-19440D01* X-75415Y-19485D01* X-75419Y-19527D01* X-75424Y-19564D01* X-75428Y-19593D01* Y-19618D01* X-75424Y-19681D01* X-75411Y-19735D01* X-75394Y-19781D01* X-75378Y-19822D01* X-75361Y-19851D01* X-75345Y-19876D01* X-75332Y-19889D01* X-75328Y-19893D01* X-75286Y-19926D01* X-75245Y-19951D01* X-75199Y-19968D01* X-75153Y-19980D01* X-75116Y-19989D01* X-75082Y-19993D01* X-75062D01* X-75053D01* X-74987Y-19989D01* X-74920Y-19976D01* X-74858Y-19964D01* X-74804Y-19947D01* X-74758Y-19926D01* X-74721Y-19914D01* X-74700Y-19901D01* X-74695Y-19897D01* X-74691D01* X-74625Y-19855D01* X-74550Y-19810D01* X-74479Y-19756D01* X-74409Y-19702D01* X-74350Y-19652D01* X-74300Y-19610D01* X-74284Y-19593D01* X-74271Y-19581D01* X-74263Y-19577D01* X-74259Y-19573D01* X-74209Y-19527D01* X-74155Y-19477D01* X-74038Y-19361D01* X-73918Y-19244D01* X-73801Y-19128D01* X-73747Y-19069D01* X-73697Y-19019D01* X-73651Y-18974D01* X-73614Y-18932D01* X-73581Y-18899D01* X-73556Y-18874D01* X-73539Y-18857D01* X-73535Y-18853D01* X-73173D01* Y-20496D01* X-73572Y-20546D01* Y-19398D01* X-73631Y-19473D01* X-73689Y-19544D01* X-73743Y-19610D01* X-73797Y-19672D01* X-73847Y-19731D01* X-73897Y-19785D01* X-73943Y-19831D01* X-73980Y-19876D01* X-74017Y-19914D01* X-74051Y-19947D01* X-74080Y-19976D01* X-74105Y-20001D01* X-74126Y-20018D01* X-74138Y-20030D01* X-74146Y-20039D01* X-74151Y-20043D01* X-74246Y-20126D01* X-74338Y-20192D01* X-74417Y-20251D01* X-74488Y-20301D01* X-74546Y-20334D01* X-74591Y-20359D01* X-74608Y-20367D01* X-74621Y-20376D01* X-74625Y-20380D01* X-74629D01* X-74712Y-20417D01* X-74791Y-20442D01* X-74866Y-20463D01* X-74937Y-20475D01* X-74995Y-20484D01* X-75037Y-20488D01* X-75057D01* X-75070D01* X-75074D01* X-75078D01* X-75153Y-20484D01* X-75224Y-20471D01* X-75290Y-20455D01* X-75345Y-20438D01* X-75390Y-20421D01* X-75428Y-20405D01* X-75449Y-20392D01* X-75457Y-20388D01* X-75519Y-20346D01* X-75569Y-20301D01* X-75619Y-20251D01* X-75656Y-20205D01* X-75686Y-20163D01* X-75711Y-20130D01* X-75723Y-20105D01* X-75727Y-20101D01* Y-20097D01* X-75761Y-20022D01* X-75785Y-19947D01* X-75802Y-19872D01* X-75815Y-19801D01* X-75823Y-19739D01* X-75827Y-19689D01* Y-19647D01* X-75823Y-19548D01* X-75810Y-19456D01* X-75794Y-19373D01* X-75777Y-19302D01* X-75756Y-19244D01* X-75740Y-19202D01* X-75731Y-19186D01* X-75727Y-19173D01* X-75723Y-19169D01* Y-19165D01* X-75681Y-19090D01* X-75631Y-19024D01* X-75577Y-18961D01* X-75523Y-18907D01* X-75473Y-18861D01* X-75436Y-18828D01* X-75419Y-18815D01* X-75407Y-18807D01* X-75403Y-18799D01* X-75399D01* X-75161Y-19107D01* D02* G37* G36* X-73173Y-21407D02* X-74438Y-21461D01* X-74492D01* X-74550Y-21465D01* X-74608D01* X-74666D01* X-74716D01* X-74754D01* X-74770D01* X-74783D01* X-74787D01* X-74791D01* X-74862D01* X-74924D01* X-74983D01* X-75037Y-21461D01* X-75087D01* X-75132D01* X-75170Y-21457D01* X-75207D01* X-75236D01* X-75261Y-21453D01* X-75282D01* X-75303D01* X-75324Y-21449D01* X-75332D01* X-73618Y-21782D01* Y-22214D01* X-75332Y-22522D01* X-75278Y-22518D01* X-75211Y-22514D01* X-75141D01* X-75070Y-22510D01* X-75007D01* X-74978D01* X-74958D01* X-74937D01* X-74920D01* X-74912D01* X-74908D01* X-74825D01* X-74741Y-22514D01* X-74662D01* X-74591Y-22518D01* X-74529D01* X-74483Y-22522D01* X-74467D01* X-74454D01* X-74446D01* X-74442D01* X-73173Y-22580D01* Y-23046D01* X-75777Y-22901D01* Y-22322D01* X-74084Y-22006D01* X-75777Y-21673D01* Y-21095D01* X-73173Y-20954D01* Y-21407D01* D02* G37* G36* Y-23874D02* X-74325D01* Y-24627D01* X-73173D01* Y-25130D01* X-75777D01* Y-24627D01* X-74746D01* Y-23874D01* X-75777D01* Y-23371D01* X-73173D01* Y-23874D01* D02* G37* G36* Y-27252D02* X-73572Y-27302D01* Y-26262D01* X-74833Y-27289D01* X-75182D01* Y-25775D01* X-74779D01* Y-26728D01* X-73518Y-25696D01* X-73173D01* Y-27252D01* D02* G37* G36* X-74151Y-29544D02* X-74562D01* Y-27959D01* X-74151D01* Y-29544D01* D02* G37* G36* X-31083Y68973D02* X-33902D01* Y69705D01* X-31083D01* Y68973D01* D02* G37* G36* X-26991Y67234D02* X-28374D01* X-28656Y67249D01* X-28789Y67263D01* X-28907Y67286D01* X-29026Y67308D01* X-29129Y67330D01* X-29233Y67360D01* X-29322Y67389D01* X-29403Y67419D01* X-29470Y67448D01* X-29536Y67471D01* X-29581Y67493D01* X-29625Y67515D01* X-29655Y67530D01* X-29669Y67545D01* X-29677D01* X-29773Y67611D01* X-29847Y67678D01* X-29921Y67759D01* X-29980Y67841D01* X-30032Y67929D01* X-30076Y68018D01* X-30106Y68107D01* X-30136Y68188D01* X-30173Y68344D01* X-30187Y68418D01* X-30195Y68477D01* X-30202Y68529D01* Y68566D01* Y68588D01* Y68595D01* X-30187Y68780D01* X-30150Y68943D01* X-30106Y69084D01* X-30047Y69195D01* X-29988Y69284D01* X-29943Y69343D01* X-29906Y69380D01* X-29891Y69395D01* X-29773Y69483D01* X-29647Y69557D01* X-29529Y69609D01* X-29410Y69646D01* X-29314Y69668D01* X-29233Y69683D01* X-29203Y69691D01* X-29166D01* X-29285Y69705D01* X-29396Y69742D01* X-29499Y69787D01* X-29581Y69839D01* X-29655Y69890D01* X-29706Y69927D01* X-29736Y69957D01* X-29751Y69972D01* X-29832Y70083D01* X-29899Y70194D01* X-29943Y70312D01* X-29973Y70416D01* X-29988Y70512D01* X-30002Y70593D01* Y70623D01* Y70645D01* Y70653D01* Y70660D01* X-29995Y70778D01* X-29980Y70882D01* X-29958Y70986D01* X-29928Y71074D01* X-29891Y71163D01* X-29847Y71237D01* X-29803Y71304D01* X-29758Y71363D01* X-29714Y71415D01* X-29669Y71459D01* X-29588Y71533D01* X-29558Y71555D01* X-29536Y71570D01* X-29521Y71585D01* X-29514D01* X-29322Y71681D01* X-29114Y71748D01* X-28915Y71800D01* X-28722Y71829D01* X-28633Y71844D01* X-28552Y71851D01* X-28478Y71859D01* X-28419D01* X-28367Y71866D01* X-26991D01* Y67234D01* D02* G37* G36* X-35625Y63750D02* X-48375D01* Y75250D01* X-35625D01* Y63750D01* D02* G37* G36* X13250Y20500D02* Y13500D01* X-13250D01* Y20500D01* X13250D01* D02* G37* %LPC*% G36* X-33703Y52375D02* X-38335D01* Y51177D01* X-38328Y51110D01* X-38320Y51021D01* X-38306Y50925D01* X-38291Y50814D01* X-38276Y50696D01* X-38217Y50437D01* X-38173Y50303D01* X-38128Y50170D01* X-38069Y50037D01* X-38002Y49904D01* X-37928Y49778D01* X-37839Y49660D01* X-37832Y49652D01* X-37817Y49630D01* X-37788Y49600D01* X-37743Y49563D01* X-37684Y49512D01* X-37617Y49460D01* X-37529Y49408D01* X-37433Y49349D01* X-37321Y49290D01* X-37188Y49238D01* X-37040Y49179D01* X-36878Y49134D01* X-36700Y49097D01* X-36500Y49068D01* X-36285Y49045D01* X-36049Y49038D01* X-38335D01* D01* X-33703D01* Y52375D01* D02* G37* G36* Y48217D02* X-34347D01* Y47713D01* X-36626D01* Y48217D01* X-37277D01* Y47033D01* X-36485Y46929D01* X-36493D01* X-36500Y46922D01* X-36522Y46914D01* X-36552Y46907D01* X-36626Y46877D01* X-36722Y46833D01* X-36826Y46774D01* X-36929Y46700D01* X-37033Y46611D01* X-37129Y46507D01* X-37137Y46492D01* X-37166Y46448D01* X-37203Y46381D01* X-37247Y46293D01* X-37284Y46182D01* X-37321Y46056D01* X-37351Y45908D01* X-37358Y45745D01* Y45693D01* X-37351Y45641D01* X-37344Y45567D01* X-37336Y45479D01* X-37314Y45375D01* X-37292Y45264D01* X-37255Y45153D01* X-37358D01* D01* X-33703D01* Y48217D01* D02* G37* G36* Y44124D02* X-34361D01* Y43096D01* X-36611D01* Y44095D01* X-37277D01* Y42237D01* X-34361D01* Y41290D01* X-38964D01* X-33703D01* Y44124D01* D02* G37* G36* X-38446Y43347D02* X-38454D01* X-38483D01* X-38528Y43340D01* X-38579Y43325D01* X-38631Y43310D01* X-38698Y43288D01* X-38757Y43251D01* X-38816Y43199D01* X-38824Y43192D01* X-38838Y43170D01* X-38861Y43140D01* X-38890Y43088D01* X-38920Y43037D01* X-38942Y42970D01* X-38957Y42889D01* X-38964Y42807D01* Y42763D01* X-38957Y42718D01* X-38942Y42667D01* X-38927Y42607D01* X-38898Y42541D01* X-38861Y42474D01* X-38809Y42415D01* X-38802Y42408D01* X-38779Y42393D01* X-38750Y42363D01* X-38705Y42334D01* X-38653Y42311D01* X-38594Y42282D01* X-38520Y42267D01* X-38446Y42260D01* X-38439D01* X-38409D01* X-38365Y42267D01* X-38313Y42282D01* X-38254Y42297D01* X-38195Y42326D01* X-38128Y42363D01* X-38069Y42415D01* X-38061Y42422D01* X-38047Y42445D01* X-38025Y42474D01* X-37995Y42519D01* X-37965Y42578D01* X-37943Y42644D01* X-37928Y42726D01* X-37921Y42807D01* Y42844D01* X-37928Y42889D01* X-37943Y42948D01* X-37958Y43007D01* X-37980Y43074D01* X-38017Y43140D01* X-38069Y43199D01* X-38076Y43207D01* X-38098Y43222D01* X-38128Y43244D01* X-38173Y43273D01* X-38224Y43303D01* X-38291Y43325D01* X-38365Y43340D01* X-38446Y43347D01* D02* G37* G36* X-33703Y40513D02* D01* Y39270D01* X-37277Y40513D01* Y37087D01* X-33703Y38330D01* Y37087D01* Y40513D01* D02* G37* G36* X-35494Y36391D02* X-35583D01* X-35627Y36384D01* X-35686D01* X-35812Y36369D01* X-35960Y36347D01* X-36115Y36310D01* X-36285Y36266D01* X-36448Y36199D01* X-36456D01* X-36470Y36192D01* X-36493Y36177D01* X-36522Y36162D01* X-36596Y36118D01* X-36693Y36051D01* X-36803Y35970D01* X-36915Y35873D01* X-37025Y35762D01* X-37122Y35629D01* Y35622D01* X-37129Y35614D01* X-37144Y35592D01* X-37159Y35563D01* X-37196Y35481D01* X-37247Y35378D01* X-37292Y35252D01* X-37329Y35096D01* X-37358Y34934D01* X-37366Y34749D01* Y34682D01* X-37358Y34630D01* X-37351Y34571D01* X-37344Y34497D01* X-37329Y34423D01* X-37307Y34334D01* X-37247Y34157D01* X-37211Y34060D01* X-37166Y33964D01* X-37107Y33875D01* X-37040Y33787D01* X-36966Y33698D01* X-36885Y33616D01* X-36878Y33609D01* X-36863Y33602D01* X-36833Y33579D01* X-36796Y33550D01* X-36752Y33520D01* X-36693Y33483D01* X-36619Y33446D01* X-36544Y33402D01* X-36456Y33365D01* X-36352Y33328D01* X-36248Y33291D01* X-36130Y33261D01* X-36004Y33232D01* X-35871Y33209D01* X-35730Y33202D01* X-35583Y33195D01* X-37366D01* X-33621D01* Y34741D01* X-33629Y34793D01* X-33636Y34867D01* X-33651Y34941D01* X-33666Y35030D01* X-33688Y35126D01* X-33710Y35230D01* X-33747Y35333D01* X-33784Y35437D01* X-33836Y35548D01* X-33895Y35651D01* X-33962Y35755D01* X-34043Y35851D01* X-34132Y35940D01* X-34139Y35947D01* X-34154Y35962D01* X-34184Y35984D01* X-34228Y36007D01* X-34280Y36044D01* X-34339Y36081D01* X-34413Y36125D01* X-34495Y36162D01* X-34584Y36206D01* X-34687Y36251D01* X-34798Y36288D01* X-34924Y36317D01* X-35050Y36347D01* X-35190Y36369D01* X-35338Y36384D01* X-35494Y36391D01* D02* G37* G36* X-33703Y32203D02* X-34347D01* Y31700D01* X-36626D01* Y32203D01* X-37277D01* Y31019D01* X-36485Y30915D01* X-36493D01* X-36500Y30908D01* X-36522Y30901D01* X-36552Y30893D01* X-36626Y30864D01* X-36722Y30819D01* X-36826Y30760D01* X-36929Y30686D01* X-37033Y30597D01* X-37129Y30494D01* X-37137Y30479D01* X-37166Y30434D01* X-37203Y30368D01* X-37247Y30279D01* X-37284Y30168D01* X-37321Y30042D01* X-37351Y29894D01* X-37358Y29731D01* Y29680D01* X-37351Y29628D01* X-37344Y29554D01* X-37336Y29465D01* X-37314Y29361D01* X-37292Y29250D01* X-37255Y29139D01* X-37358D01* D01* X-33703D01* Y32203D01* D02* G37* %LPD*% G36* X-34398Y51073D02* X-34413Y51021D01* X-34428Y50947D01* X-34450Y50858D01* X-34487Y50762D01* X-34539Y50659D01* X-34606Y50548D01* X-34694Y50437D01* X-34798Y50333D01* X-34931Y50237D01* X-35094Y50148D01* X-35183Y50111D01* X-35287Y50074D01* X-35390Y50044D01* X-35501Y50022D01* X-35627Y50000D01* X-35760Y49985D01* X-35901Y49970D01* X-36049D01* X-36056D01* X-36093D01* X-36138D01* X-36197Y49978D01* X-36278D01* X-36360Y49985D01* X-36456Y50000D01* X-36552Y50007D01* X-36766Y50044D01* X-36966Y50104D01* X-37062Y50141D01* X-37151Y50185D01* X-37233Y50229D01* X-37299Y50289D01* X-37307D01* X-37314Y50303D01* X-37351Y50348D01* X-37403Y50414D01* X-37462Y50511D01* X-37521Y50636D01* X-37573Y50777D01* X-37610Y50947D01* X-37625Y51036D01* Y51480D01* X-34398D01* Y51073D01* D02* G37* G36* X-33703Y49038D02* X-35989D01* X-35923Y49045D01* X-35834D01* X-35730Y49060D01* X-35605Y49068D01* X-35471Y49090D01* X-35324Y49112D01* X-35175Y49149D01* X-35020Y49186D01* X-34872Y49238D01* X-34717Y49297D01* X-34576Y49371D01* X-34443Y49452D01* X-34317Y49549D01* X-34214Y49660D01* X-34206Y49667D01* X-34191Y49689D01* X-34169Y49719D01* X-34132Y49771D01* X-34095Y49830D01* X-34051Y49904D01* X-34006Y49985D01* X-33962Y50081D01* X-33910Y50192D01* X-33866Y50303D01* X-33821Y50437D01* X-33784Y50570D01* X-33747Y50718D01* X-33725Y50873D01* X-33710Y51036D01* X-33703Y51206D01* Y49038D01* D02* G37* G36* X-34347Y46152D02* X-33703D01* Y45153D01* X-37255D01* X-35879Y45286D01* Y45930D01* X-36582D01* Y45945D01* X-36574Y45974D01* X-36567Y46026D01* X-36544Y46093D01* X-36515Y46174D01* X-36463Y46263D01* X-36397Y46352D01* X-36308Y46448D01* X-36293Y46455D01* X-36256Y46492D01* X-36197Y46537D01* X-36115Y46589D01* X-36012Y46655D01* X-35879Y46722D01* X-35730Y46788D01* X-35560Y46848D01* X-34347D01* Y46152D01* D02* G37* G36* X-34443Y38789D02* X-37277Y37960D01* Y39603D01* X-34443Y38789D01* D02* G37* G36* X-35812Y34038D02* X-35819D01* X-35827D01* X-35849D01* X-35879Y34046D01* X-35952Y34053D01* X-36049Y34068D01* X-36145Y34090D01* X-36256Y34127D01* X-36360Y34179D01* X-36456Y34238D01* X-36463Y34245D01* X-36493Y34268D01* X-36530Y34312D01* X-36582Y34371D01* X-36626Y34438D01* X-36663Y34527D01* X-36693Y34630D01* X-36700Y34749D01* Y34800D01* X-36685Y34860D01* X-36670Y34934D01* X-36641Y35015D01* X-36604Y35104D01* X-36544Y35193D01* X-36463Y35274D01* X-36456Y35281D01* X-36419Y35304D01* X-36367Y35341D01* X-36293Y35378D01* X-36197Y35422D01* X-36086Y35459D01* X-35960Y35489D01* X-35812Y35511D01* Y34038D01* D02* G37* G36* X-35153Y35496D02* X-35124D01* X-35050Y35481D01* X-34953Y35459D01* X-34850Y35422D01* X-34739Y35378D01* X-34635Y35318D01* X-34539Y35237D01* X-34532Y35222D01* X-34502Y35193D01* X-34465Y35141D01* X-34428Y35067D01* X-34384Y34978D01* X-34347Y34874D01* X-34317Y34763D01* X-34310Y34630D01* Y34593D01* X-34317Y34541D01* Y34482D01* X-34324Y34416D01* X-34339Y34342D01* X-34376Y34186D01* X-34384Y34179D01* X-34391Y34149D01* X-34406Y34105D01* X-34435Y34046D01* X-34465Y33979D01* X-34510Y33898D01* X-34554Y33801D01* X-34613Y33705D01* X-34088Y33343D01* X-34080Y33357D01* X-34051Y33387D01* X-34006Y33446D01* X-33955Y33520D01* X-33895Y33609D01* X-33836Y33720D01* X-33777Y33831D01* X-33733Y33957D01* X-33725Y33972D01* X-33718Y34016D01* X-33696Y34083D01* X-33681Y34171D01* X-33658Y34275D01* X-33636Y34393D01* X-33629Y34527D01* X-33621Y34660D01* Y33195D01* X-35457D01* X-35397Y33202D01* X-35331Y33209D01* X-35190Y33224D01* Y35503D01* X-35183D01* X-35175D01* X-35153Y35496D01* D02* G37* G36* X-34347Y30138D02* X-33703D01* Y29139D01* X-37255D01* X-35879Y29273D01* Y29916D01* X-36582D01* Y29931D01* X-36574Y29961D01* X-36567Y30013D01* X-36544Y30079D01* X-36515Y30161D01* X-36463Y30249D01* X-36397Y30338D01* X-36308Y30434D01* X-36293Y30442D01* X-36256Y30479D01* X-36197Y30523D01* X-36115Y30575D01* X-36012Y30642D01* X-35879Y30708D01* X-35730Y30775D01* X-35560Y30834D01* X-34347D01* Y30138D01* D02* G37* %LPC*% G36* X44278Y71098D02* X43701Y68982D01* X44862D01* X44278Y71098D01* D02* G37* G36* X-12446Y-35903D02* X-12662Y-36695D01* X-12227D01* X-12446Y-35903D01* D02* G37* G36* X-16753Y-35895D02* X-16933D01* X-16994Y-35897D01* X-17044Y-35909D01* X-17091Y-35922D01* X-17130Y-35942D01* X-17161Y-35964D01* X-17188Y-35989D01* X-17210Y-36014D01* X-17230Y-36042D01* X-17244Y-36069D01* X-17255Y-36094D01* X-17260Y-36119D01* X-17266Y-36141D01* X-17269Y-36161D01* X-17271Y-36174D01* Y-36186D01* Y-36188D01* X-17269Y-36249D01* X-17258Y-36299D01* X-17244Y-36344D01* X-17227Y-36377D01* X-17210Y-36402D01* X-17197Y-36421D01* X-17186Y-36432D01* X-17183Y-36435D01* X-17147Y-36460D01* X-17108Y-36476D01* X-17066Y-36490D01* X-17028Y-36499D01* X-16992Y-36504D01* X-16964Y-36507D01* X-16753D01* Y-35895D01* D02* G37* G36* X-6227Y-65599D02* X-9787Y-65599D01* X-8373Y-65599D01* X-8462Y-65606D01* X-8565Y-65614D01* X-8684Y-65628D01* X-8817Y-65650D01* X-8950Y-65680D01* X-9076Y-65717D01* X-9083D01* X-9091Y-65724D01* X-9135Y-65739D01* X-9194Y-65769D01* X-9276Y-65806D01* X-9380Y-65858D01* X-9483Y-65932D01* X-9601Y-66013D01* X-9720Y-66109D01* X-9268Y-66650D01* X-9261Y-66642D01* X-9246Y-66635D01* X-9224Y-66620D01* X-9194Y-66598D01* X-9150Y-66575D01* X-9106Y-66546D01* X-8987Y-66479D01* X-8847Y-66420D01* X-8684Y-66368D01* X-8514Y-66331D01* X-8417Y-66316D01* X-8277D01* X-8240Y-66324D01* X-8196Y-66331D01* X-8151Y-66339D01* X-8025Y-66368D01* X-7892Y-66413D01* X-7751Y-66487D01* X-7677Y-66531D01* X-7611Y-66583D01* X-7544Y-66642D01* X-7478Y-66716D01* Y-66724D01* X-7463Y-66738D01* X-7448Y-66760D01* X-7426Y-66790D01* X-7404Y-66834D01* X-7374Y-66886D01* X-7344Y-66953D01* X-7315Y-67027D01* X-7285Y-67108D01* X-7256Y-67204D01* X-7226Y-67308D01* X-7204Y-67427D01* X-7182Y-67552D01* X-7167Y-67686D01* X-7159Y-67834D01* X-7152Y-67996D01* Y-68004D01* Y-68033D01* Y-68078D01* X-7159Y-68137D01* Y-68211D01* X-7167Y-68292D01* X-7182Y-68381D01* X-7197Y-68485D01* X-7233Y-68692D01* X-7293Y-68899D01* X-7374Y-69099D01* X-7418Y-69188D01* X-7478Y-69269D01* X-7485Y-69276D01* X-7492Y-69284D01* X-7537Y-69328D01* X-7611Y-69395D01* X-7707Y-69469D01* X-7833Y-69543D01* X-7981Y-69609D01* X-8144Y-69654D01* X-8240Y-69661D01* X-8336Y-69669D01* X-8388D01* X-8447Y-69661D01* X-8521Y-69654D01* X-8602Y-69647D01* X-8691Y-69624D01* X-8780Y-69602D01* X-8869Y-69573D01* X-8876Y-69565D01* X-8906Y-69558D01* X-8950Y-69528D01* X-9017Y-69498D01* X-9091Y-69454D01* X-9172Y-69410D01* X-9268Y-69343D01* X-9365Y-69276D01* X-9787Y-69817D01* X-9779Y-69824D01* X-9757Y-69839D01* X-9727Y-69868D01* X-9683Y-69906D01* X-9624Y-69950D01* X-9557Y-70002D01* X-9476Y-70053D01* X-9380Y-70105D01* X-9283Y-70165D01* X-9165Y-70216D01* X-9047Y-70268D01* X-8913Y-70312D01* X-8773Y-70350D01* X-8625Y-70379D01* X-8469Y-70394D01* X-8307Y-70401D01* X-6227D01* X-8247D01* X-8203Y-70394D01* X-8151D01* X-8092Y-70386D01* X-8025Y-70379D01* X-7951Y-70364D01* X-7781Y-70335D01* X-7604Y-70283D01* X-7418Y-70216D01* X-7233Y-70127D01* X-7226D01* X-7211Y-70113D01* X-7189Y-70098D01* X-7152Y-70076D01* X-7071Y-70009D01* X-6967Y-69920D01* X-6841Y-69802D01* X-6723Y-69661D01* X-6605Y-69498D01* X-6493Y-69306D01* Y-69299D01* X-6479Y-69284D01* X-6471Y-69247D01* X-6449Y-69210D01* X-6434Y-69158D01* X-6412Y-69091D01* X-6382Y-69017D01* X-6360Y-68936D01* X-6338Y-68847D01* X-6308Y-68744D01* X-6286Y-68640D01* X-6272Y-68522D01* X-6242Y-68270D01* X-6227Y-67996D01* Y-67922D01* X-6235Y-67870D01* Y-67804D01* X-6242Y-67730D01* X-6249Y-67649D01* X-6264Y-67552D01* X-6294Y-67352D01* X-6346Y-67138D01* X-6412Y-66916D01* X-6501Y-66709D01* Y-66701D01* X-6516Y-66686D01* X-6531Y-66657D01* X-6553Y-66620D01* X-6582Y-66575D01* X-6612Y-66524D01* X-6701Y-66405D01* X-6804Y-66272D01* X-6930Y-66132D01* X-7078Y-66006D01* X-7248Y-65887D01* X-7256D01* X-7271Y-65873D01* X-7293Y-65858D01* X-7330Y-65843D01* X-7374Y-65821D01* X-7426Y-65798D01* X-7492Y-65769D01* X-7559Y-65739D01* X-7715Y-65688D01* X-7892Y-65643D01* X-8092Y-65614D01* X-8299Y-65599D01* X-6227D01* D01* D02* G37* G36* X17505Y-65688D02* X14308D01* X16099D01* X16039Y-65695D01* X15966Y-65702D01* X15877Y-65710D01* X15780Y-65717D01* X15677Y-65732D01* X15455Y-65776D01* X15225Y-65843D01* X15114Y-65887D01* X15003Y-65939D01* X14900Y-65998D01* X14804Y-66065D01* X14796Y-66072D01* X14782Y-66080D01* X14759Y-66102D01* X14722Y-66132D01* X14685Y-66176D01* X14648Y-66220D01* X14604Y-66280D01* X14552Y-66339D01* X14508Y-66413D01* X14463Y-66494D01* X14426Y-66590D01* X14382Y-66686D01* X14352Y-66790D01* X14330Y-66909D01* X14315Y-67034D01* X14308Y-67168D01* Y-67242D01* X14315Y-67293D01* X14323Y-67360D01* X14337Y-67441D01* X14352Y-67523D01* X14367Y-67611D01* X14426Y-67804D01* X14471Y-67900D01* X14515Y-67996D01* X14574Y-68085D01* X14641Y-68181D01* X14715Y-68263D01* X14804Y-68337D01* X14811Y-68344D01* X14826Y-68352D01* X14855Y-68374D01* X14893Y-68396D01* X14944Y-68426D01* X15003Y-68455D01* X15078Y-68492D01* X15159Y-68522D01* X15248Y-68559D01* X15344Y-68596D01* X15455Y-68625D01* X15573Y-68655D01* X15699Y-68677D01* X15840Y-68699D01* X15980Y-68707D01* X16136Y-68714D01* X16617D01* Y-70320D01* X14308D01* X17505D01* Y-65688D01* D02* G37* G36* X14049Y-66746D02* X10149D01* X10726Y-70320D01* X11755D01* X12088Y-67870D01* X12450Y-70320D01* X13457D01* X14049Y-66746D01* D02* G37* G36* X7034Y-66664D02* X6982D01* X6930Y-66672D01* X6856Y-66679D01* X6767Y-66686D01* X6664Y-66709D01* X6553Y-66731D01* X6442Y-66768D01* X6575Y-68144D01* X7219D01* Y-67441D01* X7233D01* X7263Y-67449D01* X7315Y-67456D01* X7382Y-67478D01* X7463Y-67508D01* X7552Y-67560D01* X7641Y-67626D01* X7737Y-67715D01* X7744Y-67730D01* X7781Y-67767D01* X7825Y-67826D01* X7877Y-67908D01* X7944Y-68011D01* X8010Y-68144D01* X8077Y-68292D01* X8136Y-68463D01* Y-69676D01* X7441D01* Y-70320D01* X9505D01* Y-68181D01* Y-69676D01* X9002D01* Y-67397D01* X9505D01* Y-66746D01* X8321D01* X8218Y-67537D01* Y-67530D01* X8210Y-67523D01* X8203Y-67501D01* X8196Y-67471D01* X8166Y-67397D01* X8122Y-67301D01* X8062Y-67197D01* X7988Y-67093D01* X7899Y-66990D01* X7796Y-66894D01* X7781Y-66886D01* X7737Y-66857D01* X7670Y-66820D01* X7581Y-66775D01* X7470Y-66738D01* X7344Y-66701D01* X7197Y-66672D01* X7034Y-66664D01* D02* G37* G36* X6442D02* D01* Y-70320D01* Y-66664D01* D01* D02* G37* G36* X-9949Y-65688D02* X-12443D01* X-13893Y-70320D01* X-12976D01* X-12658Y-69239D01* X-11156D01* X-10837Y-70320D01* X-12239D01* X-9949D01* X-11400Y-65688D01* X-9949D01* D02* G37* G36* X-14360D02* X-17490D01* Y-70320D01* X-16387D01* X-15063Y-66487D01* Y-66501D01* X-15070Y-66531D01* Y-66583D01* X-15078Y-66657D01* X-15085Y-66746D01* X-15092Y-66842D01* X-15107Y-66960D01* X-15114Y-67079D01* X-15122Y-67212D01* X-15137Y-67352D01* X-15152Y-67641D01* X-15159Y-67930D01* X-15166Y-68211D01* Y-70320D01* X-14360D01* Y-65688D01* D02* G37* G36* X226Y-65606D02* X-1772D01* X166D01* X93Y-65614D01* X11Y-65621D01* X-93Y-65636D01* X-203Y-65658D01* X-314Y-65688D01* X-426Y-65724D01* X-440Y-65732D01* X-477Y-65747D01* X-529Y-65776D01* X-603Y-65821D01* X-692Y-65880D01* X-788Y-65961D01* X-892Y-66050D01* X-995Y-66168D01* X-514Y-66598D01* X-507Y-66590D01* X-477Y-66568D01* X-440Y-66531D01* X-396Y-66494D01* X-277Y-66405D01* X-218Y-66361D01* X-159Y-66331D01* X-152Y-66324D01* X-129Y-66316D01* X-100Y-66302D01* X-63Y-66287D01* X-11Y-66272D01* X48Y-66265D01* X115Y-66250D01* X233D01* X277Y-66257D01* X337Y-66265D01* X403Y-66287D01* X470Y-66309D01* X537Y-66346D01* X596Y-66398D01* X603Y-66405D01* X618Y-66420D01* X640Y-66457D01* X662Y-66501D01* X685Y-66561D01* X707Y-66627D01* X722Y-66709D01* X729Y-66798D01* Y-66812D01* Y-66842D01* X722Y-66886D01* X707Y-66953D01* X685Y-67019D01* X648Y-67093D01* X603Y-67168D01* X544Y-67242D01* X537Y-67249D01* X507Y-67271D01* X470Y-67301D01* X411Y-67330D01* X344Y-67360D01* X263Y-67390D01* X166Y-67412D01* X63Y-67419D01* X-1772D01* Y-70401D01* Y-68070D01* X-1254D01* Y-69780D01* X-1247Y-69787D01* X-1232Y-69809D01* X-1195Y-69839D01* X-1151Y-69876D01* X-1099Y-69920D01* X-1032Y-69980D01* X-951Y-70031D01* X-862Y-70091D01* X-758Y-70150D01* X-648Y-70201D01* X-522Y-70253D01* X-396Y-70305D01* X-248Y-70342D01* X-100Y-70372D01* X63Y-70394D01* X233Y-70401D01* X1802D01* X314D01* X359Y-70394D01* X411D01* X529Y-70379D01* X670Y-70357D01* X810Y-70320D01* X958Y-70275D01* X1099Y-70209D01* X1106D01* X1114Y-70201D01* X1158Y-70172D01* X1217Y-70127D01* X1299Y-70068D01* X1388Y-69994D01* X1476Y-69906D01* X1558Y-69809D01* X1632Y-69691D01* Y-69683D01* X1639Y-69676D01* X1661Y-69632D01* X1684Y-69565D01* X1713Y-69476D01* X1750Y-69373D01* X1772Y-69247D01* X1795Y-69114D01* X1802Y-68973D01* Y-68884D01* Y-68921D01* X1795Y-68884D01* Y-68840D01* X1787Y-68788D01* X1765Y-68670D01* X1735Y-68529D01* X1691Y-68388D01* X1624Y-68248D01* X1536Y-68115D01* Y-68107D01* X1521Y-68100D01* X1484Y-68063D01* X1424Y-68004D01* X1343Y-67937D01* X1232Y-67863D01* X1106Y-67789D01* X958Y-67730D01* X908Y-67714D01* X921Y-67708D01* X1003Y-67671D01* X1099Y-67626D01* X1195Y-67567D01* X1291Y-67486D01* X1373Y-67397D01* X1380Y-67382D01* X1402Y-67345D01* X1439Y-67293D01* X1469Y-67212D01* X1506Y-67116D01* X1543Y-67005D01* X1565Y-66879D01* X1572Y-66746D01* Y-66738D01* Y-66731D01* Y-66694D01* X1565Y-66635D01* X1550Y-66553D01* X1536Y-66465D01* X1506Y-66368D01* X1462Y-66272D01* X1410Y-66176D01* X1402Y-66161D01* X1380Y-66132D01* X1343Y-66087D01* X1284Y-66028D01* X1217Y-65961D01* X1136Y-65895D01* X1040Y-65821D01* X936Y-65762D01* X921Y-65754D01* X884Y-65739D01* X818Y-65710D01* X729Y-65680D01* X625Y-65658D01* X507Y-65628D01* X374Y-65614D01* X226Y-65606D01* D02* G37* %LPD*% G36* X16617Y-68019D02* X16054D01* X15980Y-68011D01* X15884Y-67996D01* X15780Y-67974D01* X15669Y-67937D01* X15566Y-67893D01* X15470Y-67826D01* X15462Y-67819D01* X15433Y-67789D01* X15396Y-67737D01* X15351Y-67671D01* X15307Y-67582D01* X15270Y-67463D01* X15240Y-67330D01* X15233Y-67168D01* Y-67160D01* Y-67131D01* X15240Y-67093D01* X15248Y-67042D01* X15262Y-66983D01* X15277Y-66916D01* X15307Y-66849D01* X15344Y-66775D01* X15396Y-66701D01* X15455Y-66635D01* X15529Y-66568D01* X15610Y-66509D01* X15714Y-66457D01* X15840Y-66420D01* X15973Y-66391D01* X16136Y-66383D01* X16617D01* Y-68019D01* D02* G37* G36* X12902Y-69735D02* X12488Y-67182D01* X11644D01* X11266Y-69735D01* X10956Y-66746D01* X13220D01* X12902Y-69735D01* D02* G37* G36* X-11326Y-68522D02* X-12488D01* X-11910Y-66405D01* X-11326Y-68522D01* D02* G37* G36* X-16787Y-69521D02* Y-69513D01* Y-69506D01* X-16780Y-69484D01* Y-69454D01* X-16772Y-69373D01* X-16765Y-69269D01* X-16750Y-69151D01* X-16735Y-69017D01* X-16728Y-68877D01* X-16713Y-68729D01* Y-68721D01* Y-68714D01* Y-68692D01* X-16705Y-68655D01* Y-68618D01* Y-68573D01* X-16698Y-68463D01* X-16691Y-68322D01* Y-68167D01* X-16683Y-67989D01* Y-67796D01* Y-65688D01* X-15462D01* X-16787Y-69521D01* D02* G37* G36* X240Y-68078D02* X300Y-68085D01* X374Y-68100D01* X448Y-68122D01* X522Y-68152D01* X596Y-68196D01* X603Y-68204D01* X625Y-68218D01* X655Y-68248D01* X699Y-68285D01* X744Y-68329D01* X788Y-68388D01* X833Y-68448D01* X869Y-68522D01* Y-68529D01* X884Y-68551D01* X899Y-68596D01* X914Y-68647D01* X929Y-68707D01* X943Y-68781D01* X951Y-68855D01* X958Y-68936D01* Y-68944D01* Y-68951D01* Y-68995D01* X951Y-69055D01* X936Y-69136D01* X914Y-69225D01* X877Y-69321D01* X833Y-69417D01* X766Y-69506D01* X758Y-69513D01* X729Y-69543D01* X685Y-69573D01* X625Y-69617D01* X544Y-69654D01* X448Y-69691D01* X337Y-69721D01* X203Y-69728D01* X166D01* X129Y-69721D01* X78D01* X18Y-69713D01* X-48Y-69698D01* X-181Y-69661D01* X-189D01* X-211Y-69647D01* X-240Y-69632D01* X-285Y-69609D01* X-366Y-69558D01* X-411Y-69521D01* X-448Y-69484D01* Y-68070D01* X189D01* X240Y-68078D01* D02* G37* %LPC*% G36* X-43486Y8401D02* X-43560D01* X-43648Y8394D01* X-43752Y8379D01* X-43878Y8364D01* X-44011Y8335D01* X-44144Y8290D01* X-44277Y8239D01* X-44285D01* X-44292Y8231D01* X-44337Y8209D01* X-44396Y8172D01* X-44477Y8128D01* X-44559Y8061D01* X-44647Y7987D01* X-44736Y7898D01* X-44810Y7802D01* X-44818Y7787D01* X-44840Y7757D01* X-44869Y7698D01* X-44906Y7624D01* X-44936Y7536D01* X-44965Y7432D01* X-44988Y7321D01* X-44995Y7203D01* Y7195D01* Y7180D01* Y7158D01* X-44988Y7129D01* X-44980Y7047D01* X-44965Y6951D01* X-44929Y6832D01* X-44884Y6707D01* X-44818Y6588D01* X-44729Y6470D01* X-44714Y6455D01* X-44684Y6425D01* X-44625Y6374D01* X-44551Y6322D01* X-44455Y6263D01* X-44351Y6211D01* X-44233Y6174D01* X-44100Y6159D01* X-44144D01* X-44174Y6152D01* X-44248Y6144D01* X-44351Y6115D01* X-44462Y6078D01* X-44581Y6026D01* X-44706Y5952D01* X-44825Y5848D01* X-44840Y5833D01* X-44877Y5796D01* X-44921Y5730D01* X-44980Y5634D01* X-45039Y5515D01* X-45084Y5375D01* X-45121Y5212D01* X-45136Y5027D01* Y3599D01* X-43367D01* X-43323Y3606D01* X-43278D01* X-43160Y3621D01* X-43027Y3636D01* X-42886Y3665D01* X-42738Y3710D01* X-42583Y3762D01* X-42575D01* X-42568Y3769D01* X-42546Y3776D01* X-42516Y3791D01* X-42442Y3836D01* X-42353Y3887D01* X-42250Y3961D01* X-42131Y4050D01* X-42020Y4161D01* X-41909Y4287D01* D01* X-42435Y4746D01* X-42442Y4738D01* X-42472Y4709D01* X-42516Y4664D01* X-42575Y4612D01* X-42642Y4553D01* X-42716Y4494D01* X-42797Y4442D01* X-42886Y4398D01* X-42901Y4391D01* X-42930Y4383D01* X-42975Y4368D01* X-43042Y4346D01* X-43115Y4324D01* X-43204Y4309D01* X-43301Y4302D01* X-43397Y4294D01* X-43463D01* X-43537Y4302D01* X-43626Y4316D01* X-43722Y4346D01* X-43826Y4376D01* X-43929Y4428D01* X-44018Y4494D01* X-44026Y4501D01* X-44055Y4531D01* X-44092Y4575D01* X-44137Y4642D01* X-44174Y4724D01* X-44211Y4820D01* X-44240Y4931D01* X-44248Y5057D01* Y5064D01* Y5086D01* X-44240Y5123D01* X-44233Y5167D01* X-44225Y5227D01* X-44203Y5286D01* X-44181Y5353D01* X-44144Y5419D01* X-44107Y5486D01* X-44048Y5552D01* X-43989Y5612D01* X-43907Y5671D01* X-43819Y5715D01* X-43707Y5752D01* X-43582Y5774D01* X-43441Y5782D01* X-42990D01* X-43079Y6440D01* X-43463D01* X-43523Y6448D01* X-43597Y6463D01* X-43678Y6477D01* X-43767Y6507D01* X-43848Y6551D01* X-43929Y6603D01* X-43937Y6611D01* X-43959Y6633D01* X-43996Y6677D01* X-44033Y6729D01* X-44070Y6796D01* X-44107Y6884D01* X-44129Y6981D01* X-44137Y7091D01* Y7106D01* Y7136D01* X-44129Y7195D01* X-44115Y7254D01* X-44085Y7328D01* X-44055Y7402D01* X-44003Y7476D01* X-43937Y7543D01* X-43929Y7550D01* X-43900Y7565D01* X-43863Y7595D01* X-43804Y7624D01* X-43730Y7654D01* X-43641Y7683D01* X-43537Y7698D01* X-43426Y7706D01* X-43382D01* X-43330Y7698D01* X-43271Y7691D01* X-43197Y7683D01* X-43115Y7669D01* X-43034Y7639D01* X-42953Y7609D01* X-42945Y7602D01* X-42916Y7595D01* X-42871Y7572D01* X-42819Y7536D01* X-42746Y7498D01* X-42671Y7447D01* X-42583Y7380D01* X-42487Y7306D01* X-42042Y7787D01* X-42050Y7795D01* X-42072Y7817D01* X-42102Y7846D01* X-42153Y7883D01* X-42205Y7928D01* X-42279Y7980D01* X-42361Y8039D01* X-42450Y8098D01* X-42553Y8150D01* X-42664Y8209D01* X-42783Y8261D01* X-42908Y8305D01* X-43042Y8342D01* X-43182Y8372D01* X-43330Y8394D01* X-43486Y8401D01* D02* G37* G36* X-63503Y8401D02* X-63577D01* X-63665Y8394D01* X-63769Y8379D01* X-63895Y8364D01* X-64028Y8335D01* X-64161Y8290D01* X-64294Y8239D01* X-64302D01* X-64309Y8231D01* X-64354Y8209D01* X-64413Y8172D01* X-64494Y8128D01* X-64575Y8061D01* X-64664Y7987D01* X-64753Y7898D01* X-64827Y7802D01* X-64834Y7787D01* X-64857Y7757D01* X-64886Y7698D01* X-64923Y7624D01* X-64953Y7536D01* X-64982Y7432D01* X-65005Y7321D01* X-65012Y7203D01* Y7195D01* Y7180D01* Y7158D01* X-65005Y7129D01* X-64997Y7047D01* X-64982Y6951D01* X-64946Y6832D01* X-64901Y6707D01* X-64834Y6588D01* X-64746Y6470D01* X-64731Y6455D01* X-64701Y6425D01* X-64642Y6374D01* X-64568Y6322D01* X-64472Y6263D01* X-64368Y6211D01* X-64250Y6174D01* X-64117Y6159D01* X-64161D01* X-64191Y6152D01* X-64265Y6144D01* X-64368Y6115D01* X-64479Y6078D01* X-64598Y6026D01* X-64723Y5952D01* X-64842Y5848D01* X-64857Y5833D01* X-64894Y5796D01* X-64938Y5730D01* X-64997Y5634D01* X-65057Y5515D01* X-65101Y5375D01* X-65138Y5212D01* X-65153Y5027D01* Y3599D01* X-61926D01* D01* X-63384D01* X-63340Y3606D01* X-63295D01* X-63177Y3621D01* X-63044Y3636D01* X-62903Y3665D01* X-62755Y3710D01* X-62600Y3762D01* X-62592D01* X-62585Y3769D01* X-62563Y3776D01* X-62533Y3791D01* X-62459Y3836D01* X-62370Y3887D01* X-62267Y3961D01* X-62148Y4050D01* X-62037Y4161D01* X-61926Y4287D01* D01* X-62452Y4746D01* X-62459Y4738D01* X-62489Y4709D01* X-62533Y4664D01* X-62592Y4612D01* X-62659Y4553D01* X-62733Y4494D01* X-62814Y4442D01* X-62903Y4398D01* X-62918Y4391D01* X-62947Y4383D01* X-62992Y4368D01* X-63059Y4346D01* X-63133Y4324D01* X-63221Y4309D01* X-63318Y4302D01* X-63414Y4294D01* X-63480D01* X-63554Y4302D01* X-63643Y4316D01* X-63739Y4346D01* X-63843Y4376D01* X-63946Y4428D01* X-64035Y4494D01* X-64043Y4501D01* X-64072Y4531D01* X-64109Y4575D01* X-64154Y4642D01* X-64191Y4724D01* X-64228Y4820D01* X-64257Y4931D01* X-64265Y5057D01* Y5064D01* Y5086D01* X-64257Y5123D01* X-64250Y5167D01* X-64243Y5227D01* X-64220Y5286D01* X-64198Y5353D01* X-64161Y5419D01* X-64124Y5486D01* X-64065Y5552D01* X-64006Y5612D01* X-63924Y5671D01* X-63836Y5715D01* X-63724Y5752D01* X-63599Y5774D01* X-63458Y5782D01* X-63007D01* X-63095Y6440D01* X-63480D01* X-63539Y6448D01* X-63613Y6463D01* X-63695Y6477D01* X-63784Y6507D01* X-63865Y6551D01* X-63946Y6603D01* X-63954Y6611D01* X-63976Y6633D01* X-64013Y6677D01* X-64050Y6729D01* X-64087Y6796D01* X-64124Y6884D01* X-64146Y6981D01* X-64154Y7091D01* Y7106D01* Y7136D01* X-64146Y7195D01* X-64131Y7254D01* X-64102Y7328D01* X-64072Y7402D01* X-64021Y7476D01* X-63954Y7543D01* X-63946Y7550D01* X-63917Y7565D01* X-63880Y7595D01* X-63821Y7624D01* X-63747Y7654D01* X-63658Y7683D01* X-63554Y7698D01* X-63443Y7706D01* X-63399D01* X-63347Y7698D01* X-63288Y7691D01* X-63214Y7683D01* X-63133Y7669D01* X-63051Y7639D01* X-62970Y7609D01* X-62962Y7602D01* X-62933Y7595D01* X-62888Y7572D01* X-62836Y7536D01* X-62762Y7498D01* X-62688Y7447D01* X-62600Y7380D01* X-62503Y7306D01* X-62059Y7787D01* X-62067Y7795D01* X-62089Y7817D01* X-62119Y7846D01* X-62170Y7883D01* X-62222Y7928D01* X-62296Y7980D01* X-62378Y8039D01* X-62467Y8098D01* X-62570Y8150D01* X-62681Y8209D01* X-62800Y8261D01* X-62925Y8305D01* X-63059Y8342D01* X-63199Y8372D01* X-63347Y8394D01* X-63503Y8401D01* D02* G37* G36* X-55621Y8313D02* X-56362D01* Y4376D01* X-57257D01* Y3680D01* X-54193Y3680D01* X-54400D01* Y4376D01* X-55503Y4376D01* Y7432D01* X-54549Y6825D01* X-54193Y7417D01* X-55621Y8313D01* D02* G37* G36* X-59692Y8401D02* X-59728D01* X-59765Y8394D01* X-59825D01* X-59891Y8379D01* X-59965Y8372D01* X-60047Y8349D01* X-60136Y8320D01* X-60232Y8290D01* X-60335Y8246D01* X-60431Y8194D01* X-60535Y8135D01* X-60631Y8061D01* X-60720Y7980D01* X-60809Y7883D01* X-60890Y7772D01* X-60898Y7765D01* X-60905Y7743D01* X-60927Y7706D01* X-60957Y7654D01* X-60987Y7595D01* X-61016Y7513D01* X-61053Y7424D01* X-61098Y7321D01* X-61134Y7203D01* X-61172Y7069D01* X-61201Y6921D01* X-61231Y6766D01* X-61260Y6596D01* X-61282Y6411D01* X-61290Y6211D01* X-61297Y6004D01* D01* Y5893D01* X-61290Y5811D01* X-61282Y5715D01* X-61275Y5612D01* X-61260Y5486D01* X-61246Y5353D01* X-61201Y5064D01* X-61127Y4768D01* X-61083Y4627D01* X-61023Y4487D01* X-60964Y4354D01* X-60890Y4228D01* X-60883Y4220D01* X-60868Y4198D01* X-60846Y4169D01* X-60816Y4132D01* X-60772Y4080D01* X-60720Y4028D01* X-60661Y3969D01* X-60587Y3917D01* X-60505Y3858D01* X-60417Y3799D01* X-60321Y3747D01* X-60210Y3695D01* X-60098Y3658D01* X-59973Y3628D01* X-59832Y3606D01* X-59692Y3599D01* X-61297D01* Y5893D01* Y3599D01* D01* X-58093D01* Y4109D01* Y3599D01* X-59654D01* X-59618Y3606D01* X-59566D01* X-59499Y3621D01* X-59425Y3636D01* X-59336Y3650D01* X-59247Y3680D01* X-59151Y3710D01* X-59055Y3754D01* X-58959Y3806D01* X-58855Y3865D01* X-58759Y3939D01* X-58670Y4021D01* X-58582Y4117D01* X-58500Y4228D01* X-58493Y4235D01* X-58485Y4257D01* X-58463Y4294D01* X-58434Y4346D01* X-58404Y4405D01* X-58374Y4487D01* X-58337Y4583D01* X-58300Y4687D01* X-58256Y4805D01* X-58219Y4938D01* X-58189Y5086D01* X-58160Y5241D01* X-58130Y5412D01* X-58108Y5597D01* X-58100Y5796D01* X-58093Y6004D01* Y4109D01* Y6004D01* Y6115D01* X-58100Y6196D01* X-58108Y6292D01* X-58115Y6403D01* X-58130Y6522D01* X-58145Y6655D01* X-58189Y6936D01* X-58263Y7232D01* X-58315Y7380D01* X-58367Y7521D01* X-58426Y7654D01* X-58500Y7772D01* X-58508Y7780D01* X-58522Y7802D01* X-58544Y7831D01* X-58574Y7869D01* X-58618Y7920D01* X-58670Y7972D01* X-58729Y8031D01* X-58803Y8090D01* X-58885Y8142D01* X-58974Y8202D01* X-59070Y8253D01* X-59174Y8305D01* X-59292Y8342D01* X-59418Y8372D01* X-59551Y8394D01* X-59692Y8401D01* D02* G37* G36* X-38069Y8313D02* X-39097D01* X-39689Y5301D01* X-40252Y8313D01* X-41280D01* X-41539Y3680D01* D01* X-37817D01* X-38069Y8313D01* D02* G37* G36* X-47504Y8401D02* X-49102D01* X-47578D01* X-47666Y8394D01* X-47778Y8379D01* X-47903Y8357D01* X-48037Y8327D01* X-48170Y8283D01* X-48303Y8224D01* X-48310D01* X-48318Y8216D01* X-48362Y8194D01* X-48421Y8150D01* X-48495Y8098D01* X-48577Y8031D01* X-48665Y7942D01* X-48747Y7854D01* X-48821Y7743D01* X-48828Y7728D01* X-48851Y7691D01* X-48880Y7624D01* X-48910Y7543D01* X-48939Y7447D01* X-48969Y7328D01* X-48991Y7203D01* X-48998Y7069D01* Y7062D01* Y7055D01* Y7032D01* Y6995D01* X-48991Y6921D01* X-48976Y6818D01* X-48954Y6692D01* X-48917Y6559D01* X-48873Y6418D01* X-48806Y6270D01* Y6263D01* X-48799Y6255D01* X-48784Y6233D01* X-48769Y6204D01* X-48725Y6122D01* X-48665Y6019D01* X-48577Y5893D01* X-48473Y5752D01* X-48355Y5589D01* X-48207Y5419D01* X-48199Y5412D01* X-48184Y5397D01* X-48162Y5375D01* X-48133Y5338D01* X-48088Y5293D01* X-48037Y5241D01* X-47977Y5182D01* X-47911Y5116D01* X-47829Y5049D01* X-47748Y4968D01* X-47652Y4879D01* X-47548Y4790D01* X-47437Y4694D01* X-47319Y4598D01* X-47193Y4494D01* X-47060Y4391D01* X-49102D01* X-49013Y3680D01* X-45994D01* Y4294D01* Y3680D01* X-46090D01* Y4324D01* X-46098Y4331D01* X-46127Y4361D01* X-46172Y4405D01* X-46231Y4465D01* X-46305Y4531D01* X-46386Y4612D01* X-46475Y4701D01* X-46579Y4797D01* X-46786Y5005D01* X-46993Y5219D01* X-47200Y5426D01* X-47289Y5523D01* X-47370Y5612D01* X-47378Y5619D01* X-47385Y5634D01* X-47407Y5656D01* X-47437Y5686D01* X-47511Y5774D01* X-47600Y5878D01* X-47696Y6004D01* X-47792Y6129D01* X-47874Y6263D01* X-47948Y6381D01* Y6389D01* X-47955Y6396D01* X-47977Y6433D01* X-48000Y6499D01* X-48037Y6581D01* X-48066Y6677D01* X-48088Y6788D01* X-48110Y6906D01* X-48118Y7025D01* Y7040D01* Y7077D01* X-48110Y7136D01* X-48096Y7203D01* X-48074Y7284D01* X-48044Y7365D01* X-48000Y7439D01* X-47940Y7513D01* X-47933Y7521D01* X-47911Y7543D01* X-47866Y7572D01* X-47815Y7602D01* X-47741Y7632D01* X-47659Y7661D01* X-47563Y7683D01* X-47452Y7691D01* X-47407D01* X-47356Y7683D01* X-47289Y7676D01* X-47215Y7669D01* X-47134Y7647D01* X-47052Y7624D01* X-46978Y7587D01* X-46971Y7580D01* X-46941Y7565D01* X-46904Y7543D01* X-46852Y7506D01* X-46786Y7454D01* X-46712Y7388D01* X-46630Y7314D01* X-46542Y7217D01* X-45994Y7639D01* Y4294D01* Y7639D01* Y7647D01* X-46009Y7654D01* X-46024Y7676D01* X-46046Y7706D01* X-46105Y7772D01* X-46187Y7861D01* X-46283Y7957D01* X-46394Y8054D01* X-46512Y8142D01* X-46645Y8216D01* X-46653D01* X-46660Y8224D01* X-46682Y8231D01* X-46712Y8246D01* X-46786Y8275D01* X-46889Y8313D01* X-47015Y8342D01* X-47163Y8372D01* X-47326Y8394D01* X-47504Y8401D01* D02* G37* G36* X-33865Y8313D02* X-37492D01* X-37403Y7572D01* X-36115D01* Y3680D01* X-33865D01* X-35220D01* Y7572D01* X-33865D01* Y8313D01* D02* G37* G36* X-50493D02* X-53394D01* X-53305Y7609D01* X-51381D01* Y6300D01* X-53083D01* Y5597D01* X-51381D01* Y3680D01* X-50493D01* Y8313D01* D02* G37* G36* X-51633Y3680D02* X-53394D01* D01* X-51633D01* D02* G37* G36* X-29847Y8401D02* X-33362D01* X-31719D01* X-31764Y8394D01* X-31830D01* X-31912Y8387D01* X-32008Y8372D01* X-32112Y8349D01* X-32223Y8327D01* X-32348Y8298D01* X-32474Y8253D01* X-32607Y8209D01* X-32733Y8150D01* X-32866Y8083D01* X-33000Y8002D01* X-33125Y7905D01* X-33251Y7802D01* X-32792Y7284D01* X-32785Y7291D01* X-32770Y7299D01* X-32741Y7321D01* X-32704Y7343D01* X-32659Y7380D01* X-32607Y7410D01* X-32541Y7447D01* X-32474Y7484D01* X-32311Y7558D01* X-32134Y7624D01* X-31934Y7669D01* X-31830Y7676D01* X-31719Y7683D01* X-31660D01* X-31601Y7676D01* X-31527Y7669D01* X-31438Y7647D01* X-31342Y7624D01* X-31253Y7587D01* X-31172Y7543D01* X-31165Y7536D01* X-31142Y7521D01* X-31105Y7491D01* X-31076Y7447D01* X-31039Y7395D01* X-31002Y7328D01* X-30979Y7254D01* X-30972Y7165D01* Y7158D01* Y7143D01* X-30979Y7114D01* Y7077D01* X-31009Y6988D01* X-31024Y6944D01* X-31054Y6899D01* X-31061Y6892D01* X-31068Y6877D01* X-31091Y6862D01* X-31128Y6832D01* X-31165Y6803D01* X-31216Y6766D01* X-31283Y6729D01* X-31357Y6692D01* X-31364Y6684D01* X-31394Y6677D01* X-31446Y6655D01* X-31512Y6625D01* X-31601Y6596D01* X-31712Y6559D01* X-31838Y6514D01* X-31978Y6470D01* X-31986D01* X-32008Y6463D01* X-32045Y6448D01* X-32089Y6433D01* X-32141Y6411D01* X-32208Y6389D01* X-32356Y6329D01* X-32519Y6255D01* X-32689Y6166D01* X-32852Y6063D01* X-33000Y5945D01* X-33007D01* X-33015Y5930D01* X-33059Y5885D01* X-33118Y5811D01* X-33185Y5708D01* X-33251Y5582D01* X-33303Y5419D01* X-33347Y5234D01* X-33355Y5130D01* X-33362Y5020D01* Y3599D01* Y4945D01* X-33355Y4864D01* X-33333Y4768D01* X-33310Y4650D01* X-33274Y4524D01* X-33222Y4391D01* X-33148Y4265D01* X-33140Y4250D01* X-33111Y4213D01* X-33059Y4154D01* X-32992Y4087D01* X-32904Y4006D01* X-32792Y3924D01* X-32667Y3843D01* X-32526Y3769D01* X-32519D01* X-32511Y3762D01* X-32482Y3754D01* X-32452Y3739D01* X-32415Y3732D01* X-32371Y3717D01* X-32252Y3687D01* X-32112Y3650D01* X-31949Y3628D01* X-31771Y3606D01* X-31571Y3599D01* X-29847D01* X-31527D01* X-31468Y3606D01* X-31394D01* X-31305Y3621D01* X-31201Y3636D01* X-31083Y3650D01* X-30957Y3680D01* X-30817Y3717D01* X-30676Y3762D01* X-30536Y3813D01* X-30395Y3872D01* X-30247Y3946D01* X-30106Y4035D01* X-29973Y4139D01* X-29847Y4250D01* X-30328Y4790D01* X-30336Y4783D01* X-30351Y4768D01* X-30380Y4746D01* X-30424Y4716D01* X-30476Y4679D01* X-30536Y4635D01* X-30610Y4598D01* X-30683Y4553D01* X-30772Y4501D01* X-30869Y4465D01* X-31083Y4383D01* X-31194Y4354D01* X-31320Y4331D01* X-31438Y4316D01* X-31571Y4309D01* X-31638D01* X-31705Y4316D01* X-31793Y4331D01* X-31890Y4354D01* X-31993Y4383D01* X-32097Y4420D01* X-32193Y4479D01* X-32201Y4487D01* X-32230Y4509D01* X-32267Y4553D01* X-32319Y4605D01* X-32363Y4679D01* X-32400Y4761D01* X-32430Y4864D01* X-32437Y4975D01* Y4983D01* Y5005D01* Y5042D01* X-32430Y5086D01* X-32408Y5182D01* X-32363Y5279D01* Y5286D01* X-32348Y5301D01* X-32334Y5323D01* X-32304Y5353D01* X-32274Y5390D01* X-32230Y5426D01* X-32178Y5471D01* X-32112Y5508D01* X-32104Y5515D01* X-32075Y5523D01* X-32038Y5545D01* X-31971Y5574D01* X-31897Y5604D01* X-31801Y5641D01* X-31690Y5678D01* X-31564Y5715D01* X-31557D01* X-31534Y5723D01* X-31490Y5737D01* X-31438Y5759D01* X-31379Y5782D01* X-31305Y5804D01* X-31224Y5833D01* X-31135Y5870D01* X-30950Y5952D01* X-30765Y6041D01* X-30587Y6152D01* X-30506Y6204D01* X-30432Y6263D01* X-30424Y6270D01* X-30417Y6278D01* X-30373Y6322D01* X-30314Y6396D01* X-30247Y6492D01* X-30180Y6618D01* X-30121Y6766D01* X-30077Y6929D01* X-30069Y7025D01* X-30062Y7121D01* Y7129D01* Y7136D01* Y7158D01* Y7188D01* X-30077Y7254D01* X-30092Y7343D01* X-30114Y7447D01* X-30151Y7565D01* X-30202Y7676D01* X-30269Y7787D01* X-30277Y7802D01* X-30306Y7839D01* X-30358Y7891D01* X-30424Y7957D01* X-30506Y8031D01* X-30602Y8105D01* X-30720Y8172D01* X-30846Y8239D01* X-30854D01* X-30861Y8246D01* X-30883Y8253D01* X-30913Y8261D01* X-30987Y8290D01* X-31091Y8320D01* X-31209Y8349D01* X-31350Y8379D01* X-31505Y8394D01* X-31675Y8401D01* X-29847D01* D02* G37* %LPD*% G36* X-45128Y4886D02* X-45106Y4783D01* X-45084Y4672D01* X-45047Y4546D01* X-44995Y4420D01* X-44921Y4294D01* X-44914Y4279D01* X-44884Y4242D01* X-44832Y4183D01* X-44766Y4109D01* X-44684Y4028D01* X-44581Y3939D01* X-44462Y3858D01* X-44322Y3784D01* X-44314D01* X-44307Y3776D01* X-44285Y3769D01* X-44255Y3754D01* X-44218Y3739D01* X-44174Y3725D01* X-44070Y3695D01* X-43937Y3658D01* X-43789Y3628D01* X-43619Y3606D01* X-43441Y3599D01* X-45136D01* Y4960D01* X-45128Y4886D01* D02* G37* G36* X-65145Y4886D02* X-65123Y4783D01* X-65101Y4672D01* X-65064Y4546D01* X-65012Y4420D01* X-64938Y4294D01* X-64931Y4279D01* X-64901Y4242D01* X-64849Y4183D01* X-64783Y4109D01* X-64701Y4028D01* X-64598Y3939D01* X-64479Y3858D01* X-64339Y3784D01* X-64331D01* X-64324Y3776D01* X-64302Y3769D01* X-64272Y3754D01* X-64235Y3739D01* X-64191Y3725D01* X-64087Y3695D01* X-63954Y3658D01* X-63806Y3628D01* X-63636Y3606D01* X-63458Y3599D01* X-65153D01* Y4960D01* X-65145Y4886D01* D02* G37* G36* X-59632Y7706D02* X-59566Y7691D01* X-59492Y7661D01* X-59403Y7617D01* X-59314Y7543D01* X-59270Y7498D01* X-59225Y7447D01* X-59181Y7388D01* X-59144Y7314D01* Y7306D01* X-59136Y7299D01* X-59129Y7269D01* X-59114Y7239D01* X-59100Y7195D01* X-59085Y7143D01* X-59062Y7077D01* X-59048Y7003D01* X-59033Y6921D01* X-59011Y6825D01* X-58996Y6714D01* X-58981Y6596D01* X-58966Y6463D01* X-58959Y6322D01* X-58951Y6166D01* Y6004D01* Y5996D01* Y5974D01* Y5937D01* Y5893D01* Y5833D01* Y5767D01* X-58959Y5619D01* Y5449D01* X-58974Y5279D01* X-58981Y5123D01* X-58988Y5049D01* X-58996Y4983D01* X-60180Y7513D01* X-60172Y7521D01* X-60150Y7543D01* X-60113Y7580D01* X-60062Y7617D01* X-59995Y7647D01* X-59913Y7683D01* X-59810Y7706D01* X-59692Y7713D01* X-59677D01* X-59632Y7706D01* D02* G37* G36* X-59247Y4435D02* X-59255Y4428D01* X-59277Y4413D01* X-59307Y4383D01* X-59359Y4354D01* X-59418Y4324D01* X-59492Y4294D01* X-59588Y4279D01* X-59692Y4272D01* X-59706D01* X-59751Y4279D01* X-59817Y4294D01* X-59899Y4324D01* X-59987Y4368D01* X-60076Y4442D01* X-60121Y4487D01* X-60165Y4538D01* X-60202Y4605D01* X-60239Y4672D01* Y4679D01* X-60246Y4694D01* X-60254Y4716D01* X-60269Y4746D01* X-60283Y4790D01* X-60298Y4849D01* X-60321Y4916D01* X-60335Y4990D01* X-60350Y5071D01* X-60372Y5175D01* X-60387Y5279D01* X-60402Y5404D01* X-60417Y5537D01* X-60424Y5678D01* X-60431Y5833D01* Y6004D01* Y6011D01* Y6033D01* Y6063D01* Y6107D01* Y6159D01* Y6211D01* Y6352D01* X-60424Y6499D01* X-60417Y6647D01* X-60409Y6796D01* X-60402Y6921D01* X-59247Y4435D01* D02* G37* G36* X-38698Y7506D02* X-38705Y7469D01* Y7432D01* Y7395D01* X-38712Y7350D01* Y7299D01* Y7232D01* X-38720Y7165D01* Y7084D01* Y6995D01* X-38727Y6899D01* Y6796D01* Y6684D01* Y6559D01* Y6551D01* Y6544D01* Y6522D01* Y6492D01* Y6425D01* Y6337D01* Y6233D01* Y6129D01* X-38720Y6026D01* Y5930D01* X-38624Y3680D01* X-40710D01* X-40607Y5937D01* Y5945D01* Y5959D01* Y5982D01* Y6011D01* X-40600Y6092D01* Y6204D01* X-40592Y6329D01* Y6470D01* X-40585Y6618D01* Y6766D01* Y6773D01* Y6788D01* Y6818D01* Y6855D01* Y6892D01* Y6944D01* Y7055D01* X-40592Y7180D01* Y7306D01* X-40600Y7424D01* X-40607Y7521D01* X-40059Y4472D01* X-39290D01* X-38698Y7521D01* Y7506D01* D02* G37* %LPC*% G36* X29250Y70900D02* X28473D01* Y69583D01* X27171D01* Y70900D01* D01* D01* Y67556D01* Y68873D01* X28473D01* Y67556D01* X27171D01* X30538D01* D01* X29250D01* Y68873D01* X30538D01* Y69583D01* X29250D01* Y70900D01* D02* G37* G36* X34830Y71766D02* X32336D01* X30885Y67134D01* X31803D01* X32121Y68214D01* X33623D01* X33942Y67134D01* X34830D01* X33379Y71766D01* X34830D01* D02* G37* %LPD*% G36* X33453Y68932D02* X32291D01* X32868Y71048D01* X33453Y68932D01* D02* G37* %LPC*% G36* X7933Y-73826D02* X7644Y-74885D01* X8225D01* X7933Y-73826D01* D02* G37* G36* X-4077D02* X-4366Y-74885D01* X-3785D01* X-4077Y-73826D01* D02* G37* G36* X13956Y-74296D02* X13916D01* X13882Y-74304D01* X13819Y-74322D01* X13768Y-74352D01* X13723Y-74382D01* X13690Y-74411D01* X13664Y-74441D01* X13646Y-74459D01* X13642Y-74463D01* Y-74467D01* Y-75262D01* X13668Y-75303D01* X13697Y-75336D01* X13723Y-75366D01* X13753Y-75392D01* X13782Y-75414D01* X13808Y-75432D01* X13864Y-75458D01* X13908Y-75477D01* X13945Y-75484D01* X13960Y-75488D01* X13979D01* X14034Y-75480D01* X14086Y-75462D01* X14130Y-75432D01* X14167Y-75395D01* X14197Y-75347D01* X14223Y-75299D01* X14245Y-75244D01* X14264Y-75188D01* X14278Y-75133D01* X14286Y-75077D01* X14293Y-75029D01* X14300Y-74981D01* Y-74944D01* X14304Y-74914D01* Y-74896D01* Y-74888D01* Y-74833D01* X14300Y-74781D01* X14297Y-74733D01* X14289Y-74689D01* X14282Y-74648D01* X14275Y-74611D01* X14256Y-74548D01* X14241Y-74500D01* X14227Y-74467D01* X14215Y-74448D01* X14212Y-74441D01* X14175Y-74393D01* X14130Y-74356D01* X14090Y-74330D01* X14045Y-74315D01* X14008Y-74304D01* X13979Y-74300D01* X13956Y-74296D01* D02* G37* G36* X-27879Y71171D02* X-28360D01* X-28493Y71163D01* X-28604Y71148D01* X-28700Y71126D01* X-28781Y71104D01* X-28841Y71082D01* X-28878Y71060D01* X-28907Y71045D01* X-28915Y71037D01* X-28974Y70978D01* X-29018Y70912D01* X-29055Y70838D01* X-29077Y70771D01* X-29092Y70704D01* X-29100Y70653D01* Y70616D01* Y70601D01* X-29092Y70490D01* X-29070Y70394D01* X-29048Y70312D01* X-29018Y70246D01* X-28981Y70201D01* X-28959Y70164D01* X-28937Y70142D01* X-28929Y70135D01* X-28855Y70090D01* X-28774Y70053D01* X-28685Y70031D01* X-28604Y70009D01* X-28522Y70001D01* X-28463Y69994D01* X-27879D01* Y71171D01* D02* G37* G36* Y69298D02* X-28456D01* X-28596Y69291D01* X-28715Y69276D01* X-28818Y69247D01* X-28907Y69224D01* X-28974Y69195D01* X-29026Y69165D01* X-29055Y69150D01* X-29063Y69143D01* X-29137Y69076D01* X-29188Y68995D01* X-29225Y68899D01* X-29248Y68810D01* X-29270Y68729D01* X-29277Y68662D01* Y68610D01* Y68603D01* Y68595D01* X-29270Y68484D01* X-29240Y68381D01* X-29196Y68292D01* X-29144Y68218D01* X-29077Y68159D01* X-29011Y68107D01* X-28929Y68063D01* X-28855Y68026D01* X-28774Y67996D01* X-28693Y67981D01* X-28626Y67966D01* X-28559Y67952D01* X-28508D01* X-28463Y67944D01* X-27879D01* Y69298D01* D02* G37* G36* X-43506Y70950D02* X-44283D01* Y69633D01* X-45585D01* Y70950D01* Y67606D01* Y68923D01* X-44283D01* Y67606D01* X-45585D01* X-42218D01* X-43506D01* Y68923D01* X-42218D01* Y69633D01* X-43506D01* Y70950D01* D02* G37* G36* X-38400Y71816D02* X-39776D01* X-39828Y71809D01* X-39887D01* X-39961Y71801D01* X-40043Y71794D01* X-40132Y71779D01* X-40324Y71750D01* X-40524Y71698D01* X-40731Y71631D01* X-40923Y71535D01* X-40931D01* X-40946Y71520D01* X-40968Y71505D01* X-40997Y71483D01* X-41079Y71409D01* X-41123Y71365D01* X-41168Y71313D01* X-41212Y71254D01* X-41256Y71187D01* X-41301Y71113D01* X-41338Y71024D01* X-41367Y70936D01* X-41390Y70832D01* X-41404Y70728D01* X-41412Y70610D01* Y70603D01* Y70595D01* Y70573D01* Y70543D01* X-41397Y70462D01* X-41382Y70366D01* X-41352Y70262D01* X-41308Y70144D01* X-41241Y70033D01* X-41160Y69922D01* X-41145Y69907D01* X-41116Y69877D01* X-41064Y69840D01* X-40990Y69789D01* X-40909Y69737D01* X-40805Y69692D01* X-40694Y69655D01* X-40576Y69641D01* X-40613D01* X-40642Y69633D01* X-40723Y69618D01* X-40820Y69596D01* X-40938Y69559D01* X-41056Y69507D01* X-41182Y69433D01* X-41301Y69345D01* X-41315Y69330D01* X-41352Y69293D01* X-41397Y69234D01* X-41456Y69145D01* X-41515Y69034D01* X-41560Y68893D01* X-41597Y68730D01* X-41611Y68545D01* Y71816D01* Y67184D01* D01* Y68479D01* X-41604Y68427D01* X-41597Y68368D01* X-41582Y68294D01* X-41545Y68138D01* X-41515Y68057D01* X-41486Y67968D01* X-41441Y67879D01* X-41390Y67791D01* X-41330Y67709D01* X-41256Y67628D01* X-41182Y67561D01* X-41086Y67495D01* X-41079D01* X-41064Y67480D01* X-41034Y67465D01* X-40990Y67443D01* X-40946Y67421D01* X-40879Y67398D01* X-40812Y67369D01* X-40731Y67339D01* X-40642Y67310D01* X-40538Y67280D01* X-40435Y67258D01* X-40317Y67236D01* X-40198Y67213D01* X-40065Y67199D01* X-39784Y67184D01* X-38400D01* Y71816D01* D02* G37* %LPD*% G36* X-39288Y69944D02* X-39873D01* X-39932Y69951D01* X-40013Y69959D01* X-40095Y69981D01* X-40183Y70003D01* X-40265Y70040D01* X-40339Y70085D01* X-40346Y70092D01* X-40368Y70114D01* X-40391Y70151D01* X-40428Y70196D01* X-40457Y70262D01* X-40479Y70344D01* X-40501Y70440D01* X-40509Y70551D01* Y70566D01* Y70603D01* X-40501Y70654D01* X-40487Y70721D01* X-40464Y70788D01* X-40428Y70862D01* X-40383Y70928D01* X-40324Y70987D01* X-40317Y70995D01* X-40287Y71010D01* X-40250Y71032D01* X-40191Y71054D01* X-40109Y71076D01* X-40013Y71098D01* X-39902Y71113D01* X-39769Y71121D01* X-39288D01* Y69944D01* D02* G37* G36* Y67894D02* X-39873D01* X-39917Y67902D01* X-39969D01* X-40035Y67916D01* X-40102Y67931D01* X-40183Y67946D01* X-40265Y67976D01* X-40339Y68013D01* X-40420Y68057D01* X-40487Y68109D01* X-40553Y68168D01* X-40605Y68242D01* X-40650Y68331D01* X-40679Y68434D01* X-40687Y68545D01* Y68553D01* Y68560D01* Y68612D01* X-40679Y68679D01* X-40657Y68760D01* X-40635Y68849D01* X-40598Y68945D01* X-40546Y69026D01* X-40472Y69093D01* X-40464Y69100D01* X-40435Y69115D01* X-40383Y69145D01* X-40317Y69174D01* X-40228Y69197D01* X-40124Y69226D01* X-40006Y69241D01* X-39865Y69248D01* X-39288D01* Y67894D01* D02* G37* %LPC*% G36* X-6061Y19312D02* X-7696D01* X-6801D01* Y15376D01* X-7696D01* Y14680D01* X-4840D01* Y15376D01* X-5942D01* Y18432D01* X-4988Y17825D01* X-4632Y18417D01* X-6061Y19312D01* D02* G37* G36* X1709Y19401D02* X1554D01* X1517Y19394D01* X1465D01* X1413Y19387D01* X1280Y19364D01* X1132Y19327D01* X962Y19268D01* X792Y19187D01* X703Y19142D01* X614Y19083D01* X940Y18528D01* X947D01* X955Y18535D01* X999Y18558D01* X1066Y18587D01* X1154Y18624D01* X1258Y18661D01* X1369Y18691D01* X1487Y18713D01* X1606Y18721D01* X1643D01* X1672Y18713D01* X1754Y18698D01* X1850Y18669D01* X1961Y18624D01* X2072Y18550D01* X2131Y18506D01* X2190Y18447D01* X2242Y18387D01* X2294Y18314D01* Y18306D01* X2301Y18291D01* X2316Y18269D01* X2331Y18239D01* X2353Y18203D01* X2375Y18151D01* X2398Y18091D01* X2427Y18032D01* X2449Y17958D01* X2479Y17877D01* X2523Y17699D01* X2553Y17485D01* X2575Y17255D01* X2568Y17263D01* X2560Y17278D01* X2546Y17300D01* X2516Y17337D01* X2486Y17374D01* X2442Y17418D01* X2390Y17462D01* X2338Y17514D01* X2272Y17559D01* X2205Y17603D01* X2124Y17648D01* X2035Y17684D01* X1939Y17721D01* X1835Y17744D01* X1724Y17759D01* X1606Y17766D01* X1539D01* X1473Y17759D01* X1376Y17744D01* X1273Y17721D01* X1162Y17692D01* X1043Y17655D01* X925Y17596D01* X910Y17588D01* X873Y17566D01* X821Y17522D01* X747Y17470D01* X673Y17396D01* X592Y17307D01* X518Y17203D01* X444Y17078D01* Y17070D01* X437Y17063D01* X414Y17018D01* X385Y16944D01* X355Y16848D01* X326Y16730D01* X296Y16589D01* X274Y16434D01* X266Y16264D01* Y14599D01* Y16182D01* X274Y16138D01* Y16086D01* X289Y15975D01* X318Y15834D01* X355Y15687D01* X407Y15539D01* X474Y15391D01* Y15383D01* X481Y15376D01* X511Y15324D01* X555Y15257D01* X614Y15176D01* X696Y15080D01* X792Y14976D01* X903Y14887D01* X1029Y14798D01* X1036D01* X1043Y14791D01* X1066Y14784D01* X1088Y14769D01* X1162Y14732D01* X1258Y14702D01* X1376Y14665D01* X1510Y14628D01* X1665Y14606D01* X1828Y14599D01* X1865D01* D01* X3456D01* X1865D01* X1909Y14606D01* X1968D01* X2035Y14621D01* X2116Y14628D01* X2205Y14650D01* X2301Y14673D01* X2398Y14702D01* X2501Y14747D01* X2605Y14791D01* X2708Y14850D01* X2805Y14917D01* X2901Y14998D01* X2982Y15094D01* X3064Y15198D01* X3071Y15205D01* X3078Y15228D01* X3101Y15265D01* X3123Y15309D01* X3152Y15368D01* X3189Y15442D01* X3226Y15531D01* X3256Y15635D01* X3293Y15746D01* X3330Y15864D01* X3367Y16005D01* X3397Y16145D01* X3419Y16308D01* X3441Y16471D01* X3448Y16648D01* X3456Y16841D01* Y16967D01* X3448Y17033D01* X3441Y17115D01* Y17196D01* X3426Y17292D01* X3404Y17500D01* X3367Y17729D01* X3315Y17958D01* X3241Y18180D01* Y18188D01* X3234Y18203D01* X3219Y18239D01* X3204Y18277D01* X3182Y18321D01* X3152Y18380D01* X3078Y18506D01* X2990Y18654D01* X2879Y18802D01* X2753Y18943D01* X2605Y19076D01* X2597Y19083D01* X2583Y19091D01* X2560Y19105D01* X2531Y19128D01* X2486Y19150D01* X2442Y19179D01* X2383Y19209D01* X2324Y19239D01* X2176Y19298D01* X2005Y19350D01* X1813Y19387D01* X1709Y19401D01* D02* G37* G36* X-10301D02* X-10456D01* X-10493Y19394D01* X-10545D01* X-10597Y19387D01* X-10730Y19364D01* X-10878Y19327D01* X-11048Y19268D01* X-11218Y19187D01* X-11307Y19142D01* X-11396Y19083D01* X-11070Y18528D01* X-11063D01* X-11056Y18535D01* X-11011Y18558D01* X-10945Y18587D01* X-10856Y18624D01* X-10752Y18661D01* X-10641Y18691D01* X-10523Y18713D01* X-10404Y18721D01* X-10367D01* X-10338Y18713D01* X-10256Y18698D01* X-10160Y18669D01* X-10049Y18624D01* X-9938Y18550D01* X-9879Y18506D01* X-9820Y18447D01* X-9768Y18387D01* X-9716Y18314D01* Y18306D01* X-9709Y18291D01* X-9694Y18269D01* X-9679Y18239D01* X-9657Y18203D01* X-9635Y18151D01* X-9613Y18091D01* X-9583Y18032D01* X-9561Y17958D01* X-9531Y17877D01* X-9487Y17699D01* X-9457Y17485D01* X-9435Y17255D01* X-9442Y17263D01* X-9450Y17278D01* X-9465Y17300D01* X-9494Y17337D01* X-9524Y17374D01* X-9568Y17418D01* X-9620Y17462D01* X-9672Y17514D01* X-9738Y17559D01* X-9805Y17603D01* X-9886Y17648D01* X-9975Y17684D01* X-10071Y17721D01* X-10175Y17744D01* X-10286Y17759D01* X-10404Y17766D01* X-10471D01* X-10538Y17759D01* X-10634Y17744D01* X-10737Y17721D01* X-10848Y17692D01* X-10967Y17655D01* X-11085Y17596D01* X-11100Y17588D01* X-11137Y17566D01* X-11189Y17522D01* X-11263Y17470D01* X-11337Y17396D01* X-11418Y17307D01* X-11492Y17203D01* X-11566Y17078D01* Y17070D01* X-11574Y17063D01* X-11596Y17018D01* X-11625Y16944D01* X-11655Y16848D01* X-11685Y16730D01* X-11714Y16589D01* X-11736Y16434D01* X-11744Y16264D01* Y16271D01* Y14599D01* Y16182D01* X-11736Y16138D01* Y16086D01* X-11722Y15975D01* X-11692Y15834D01* X-11655Y15687D01* X-11603Y15539D01* X-11537Y15391D01* Y15383D01* X-11529Y15376D01* X-11500Y15324D01* X-11455Y15257D01* X-11396Y15176D01* X-11315Y15080D01* X-11218Y14976D01* X-11107Y14887D01* X-10982Y14798D01* X-10974D01* X-10967Y14791D01* X-10945Y14784D01* X-10922Y14769D01* X-10848Y14732D01* X-10752Y14702D01* X-10634Y14665D01* X-10501Y14628D01* X-10345Y14606D01* X-10182Y14599D01* X-8554D01* D01* X-10145D01* X-10101Y14606D01* X-10042D01* X-9975Y14621D01* X-9894Y14628D01* X-9805Y14650D01* X-9709Y14673D01* X-9613Y14702D01* X-9509Y14747D01* X-9405Y14791D01* X-9302Y14850D01* X-9206Y14917D01* X-9109Y14998D01* X-9028Y15094D01* X-8947Y15198D01* X-8939Y15205D01* X-8932Y15228D01* X-8910Y15265D01* X-8887Y15309D01* X-8858Y15368D01* X-8821Y15442D01* X-8784Y15531D01* X-8754Y15635D01* X-8717Y15746D01* X-8680Y15864D01* X-8643Y16005D01* X-8614Y16145D01* X-8591Y16308D01* X-8569Y16471D01* X-8562Y16648D01* X-8554Y16841D01* Y16967D01* X-8562Y17033D01* X-8569Y17115D01* Y17196D01* X-8584Y17292D01* X-8606Y17500D01* X-8643Y17729D01* X-8695Y17958D01* X-8769Y18180D01* Y18188D01* X-8776Y18203D01* X-8791Y18239D01* X-8806Y18277D01* X-8828Y18321D01* X-8858Y18380D01* X-8932Y18506D01* X-9021Y18654D01* X-9132Y18802D01* X-9257Y18943D01* X-9405Y19076D01* X-9413Y19083D01* X-9428Y19091D01* X-9450Y19105D01* X-9479Y19128D01* X-9524Y19150D01* X-9568Y19179D01* X-9627Y19209D01* X-9687Y19239D01* X-9835Y19298D01* X-10005Y19350D01* X-10197Y19387D01* X-10301Y19401D01* D02* G37* G36* X11492Y19312D02* X10464D01* X9872Y16301D01* X9309Y19312D01* X8281D01* X8022Y14680D01* D01* X11744D01* D01* X11492Y19312D01* D02* G37* G36* X-474Y19401D02* X-2190D01* X-2264Y19394D01* X-2368Y19387D01* X-2479Y19364D01* X-2605Y19342D01* X-2731Y19305D01* X-2856Y19261D01* X-2864D01* X-2871Y19253D01* X-2908Y19231D01* X-2975Y19202D01* X-3049Y19157D01* X-3130Y19098D01* X-3219Y19024D01* X-3308Y18935D01* X-3389Y18839D01* X-3397Y18824D01* X-3419Y18787D01* X-3456Y18735D01* X-3493Y18654D01* X-3530Y18558D01* X-3567Y18447D01* X-3589Y18321D01* X-3596Y18180D01* Y18166D01* Y18121D01* X-3589Y18062D01* X-3574Y17980D01* X-3552Y17884D01* X-3515Y17788D01* X-3471Y17684D01* X-3404Y17588D01* X-3397Y17581D01* X-3367Y17544D01* X-3323Y17500D01* X-3263Y17440D01* X-3189Y17374D01* X-3093Y17307D01* X-2982Y17241D01* X-2856Y17174D01* X-2864D01* X-2879Y17166D01* X-2901Y17159D01* X-2930Y17144D01* X-3004Y17107D01* X-3101Y17055D01* X-3212Y16989D01* X-3323Y16907D01* X-3434Y16804D01* X-3530Y16693D01* X-3537Y16678D01* X-3567Y16634D01* X-3611Y16567D01* X-3656Y16486D01* X-3700Y16375D01* X-3744Y16249D01* X-3774Y16108D01* X-3781Y15960D01* Y15968D01* Y14599D01* Y15894D01* X-3774Y15820D01* X-3759Y15731D01* X-3730Y15620D01* X-3693Y15502D01* X-3641Y15376D01* X-3574Y15257D01* X-3567Y15243D01* X-3537Y15205D01* X-3493Y15146D01* X-3426Y15080D01* X-3345Y14998D01* X-3249Y14917D01* X-3130Y14843D01* X-2997Y14769D01* X-2990D01* X-2982Y14762D01* X-2960Y14754D01* X-2930Y14739D01* X-2849Y14717D01* X-2745Y14687D01* X-2620Y14650D01* X-2464Y14628D01* X-2301Y14606D01* X-2116Y14599D01* X-2028D01* X-1983Y14606D01* X-1931D01* X-1813Y14621D01* X-1672Y14643D01* X-1524Y14673D01* X-1376Y14710D01* X-1228Y14769D01* X-1221D01* X-1214Y14776D01* X-1169Y14798D01* X-1103Y14843D01* X-1021Y14895D01* X-932Y14961D01* X-836Y15050D01* X-747Y15139D01* X-666Y15250D01* X-659Y15265D01* X-636Y15302D01* X-607Y15368D01* X-570Y15450D01* X-533Y15553D01* X-503Y15672D01* X-481Y15798D01* X-474Y15938D01* Y15975D01* X-481Y16012D01* X-488Y16071D01* X-503Y16138D01* X-518Y16212D01* X-548Y16293D01* X-585Y16389D01* X-629Y16478D01* X-688Y16575D01* X-755Y16671D01* X-844Y16767D01* X-940Y16863D01* X-1058Y16952D01* X-1191Y17026D01* X-1347Y17100D01* X-1339D01* X-1332Y17107D01* X-1288Y17130D01* X-1228Y17159D01* X-1154Y17203D01* X-1066Y17255D01* X-984Y17322D01* X-903Y17403D01* X-829Y17492D01* X-821Y17507D01* X-799Y17537D01* X-777Y17596D01* X-747Y17670D01* X-710Y17759D01* X-688Y17877D01* X-666Y18003D01* X-659Y18143D01* Y18151D01* Y18158D01* Y18180D01* Y18210D01* X-673Y18284D01* X-688Y18380D01* X-710Y18484D01* X-747Y18602D01* X-799Y18713D01* X-866Y18824D01* X-873Y18839D01* X-903Y18868D01* X-947Y18920D01* X-1014Y18987D01* X-1088Y19053D01* X-1184Y19128D01* X-1295Y19194D01* X-1413Y19253D01* X-1421D01* X-1428Y19261D01* X-1473Y19275D01* X-1539Y19298D01* X-1628Y19327D01* X-1739Y19357D01* X-1857Y19379D01* X-1991Y19394D01* X-2124Y19401D01* X-474D01* D02* G37* G36* X7689Y19312D02* X4063D01* X4151Y18573D01* X5439D01* Y14680D01* X7689D01* X6334D01* Y18573D01* X7689D01* Y19312D01* D02* G37* %LPD*% G36* X1850Y17093D02* X1909Y17085D01* X1976Y17070D01* X2050Y17041D01* X2131Y17011D01* X2213Y16967D01* X2220Y16959D01* X2250Y16944D01* X2287Y16915D01* X2338Y16878D01* X2390Y16826D01* X2449Y16767D01* X2509Y16700D01* X2568Y16626D01* Y16619D01* Y16597D01* Y16560D01* X2560Y16508D01* Y16449D01* X2553Y16382D01* X2538Y16234D01* X2516Y16064D01* X2486Y15886D01* X2442Y15731D01* X2412Y15657D01* X2383Y15590D01* X2375Y15575D01* X2346Y15539D01* X2309Y15487D01* X2242Y15435D01* X2168Y15376D01* X2072Y15324D01* X1954Y15287D01* X1887Y15280D01* X1820Y15272D01* X1806D01* X1769Y15280D01* X1709Y15287D01* X1635Y15302D01* X1554Y15331D01* X1465Y15376D01* X1384Y15442D01* X1317Y15524D01* X1310Y15539D01* X1288Y15568D01* X1258Y15627D01* X1228Y15709D01* X1199Y15812D01* X1169Y15931D01* X1147Y16071D01* X1140Y16234D01* Y16241D01* Y16271D01* X1147Y16316D01* Y16367D01* X1162Y16434D01* X1169Y16508D01* X1214Y16671D01* X1251Y16745D01* X1288Y16826D01* X1339Y16900D01* X1399Y16967D01* X1473Y17018D01* X1554Y17063D01* X1650Y17093D01* X1761Y17100D01* X1798D01* X1850Y17093D01* D02* G37* G36* X-10160D02* X-10101Y17085D01* X-10034Y17070D01* X-9960Y17041D01* X-9879Y17011D01* X-9798Y16967D01* X-9790Y16959D01* X-9761Y16944D01* X-9724Y16915D01* X-9672Y16878D01* X-9620Y16826D01* X-9561Y16767D01* X-9502Y16700D01* X-9442Y16626D01* Y16619D01* Y16597D01* Y16560D01* X-9450Y16508D01* Y16449D01* X-9457Y16382D01* X-9472Y16234D01* X-9494Y16064D01* X-9524Y15886D01* X-9568Y15731D01* X-9598Y15657D01* X-9627Y15590D01* X-9635Y15575D01* X-9664Y15539D01* X-9701Y15487D01* X-9768Y15435D01* X-9842Y15376D01* X-9938Y15324D01* X-10057Y15287D01* X-10123Y15280D01* X-10190Y15272D01* X-10205D01* X-10242Y15280D01* X-10301Y15287D01* X-10375Y15302D01* X-10456Y15331D01* X-10545Y15376D01* X-10626Y15442D01* X-10693Y15524D01* X-10700Y15539D01* X-10723Y15568D01* X-10752Y15627D01* X-10782Y15709D01* X-10811Y15812D01* X-10841Y15931D01* X-10863Y16071D01* X-10871Y16234D01* Y16241D01* Y16271D01* X-10863Y16316D01* Y16367D01* X-10848Y16434D01* X-10841Y16508D01* X-10797Y16671D01* X-10760Y16745D01* X-10723Y16826D01* X-10671Y16900D01* X-10612Y16967D01* X-10538Y17018D01* X-10456Y17063D01* X-10360Y17093D01* X-10249Y17100D01* X-10212D01* X-10160Y17093D01* D02* G37* G36* X10863Y18506D02* X10856Y18469D01* Y18432D01* Y18395D01* X10848Y18350D01* Y18299D01* Y18232D01* X10841Y18166D01* Y18084D01* Y17995D01* X10834Y17899D01* Y17796D01* Y17684D01* Y17559D01* Y17551D01* Y17544D01* Y17522D01* Y17492D01* Y17425D01* Y17337D01* Y17233D01* Y17130D01* X10841Y17026D01* Y16930D01* X10937Y14680D01* X8850D01* X8954Y16937D01* Y16944D01* Y16959D01* Y16982D01* Y17011D01* X8961Y17093D01* Y17203D01* X8969Y17329D01* Y17470D01* X8976Y17618D01* Y17766D01* Y17773D01* Y17788D01* Y17818D01* Y17855D01* Y17892D01* Y17943D01* Y18055D01* X8969Y18180D01* Y18306D01* X8961Y18425D01* X8954Y18521D01* X9502Y15472D01* X10271D01* X10863Y18521D01* Y18506D01* D02* G37* G36* X-2020Y18735D02* X-1954Y18721D01* X-1880Y18706D01* X-1798Y18676D01* X-1724Y18632D01* X-1658Y18580D01* X-1650Y18573D01* X-1635Y18550D01* X-1606Y18513D01* X-1576Y18469D01* X-1547Y18402D01* X-1517Y18328D01* X-1502Y18239D01* X-1495Y18136D01* Y18128D01* Y18106D01* X-1502Y18069D01* X-1510Y18018D01* X-1532Y17914D01* X-1554Y17862D01* X-1584Y17810D01* X-1591Y17803D01* X-1598Y17788D01* X-1621Y17766D01* X-1650Y17736D01* X-1687Y17707D01* X-1724Y17670D01* X-1835Y17603D01* X-1843D01* X-1865Y17588D01* X-1902Y17573D01* X-1954Y17551D01* X-2020Y17522D01* X-2094Y17492D01* X-2183Y17462D01* X-2279Y17425D01* X-2294Y17433D01* X-2324Y17455D01* X-2368Y17485D01* X-2420Y17522D01* X-2479Y17566D01* X-2538Y17618D01* X-2597Y17677D01* X-2642Y17736D01* X-2649Y17744D01* X-2664Y17766D01* X-2679Y17803D01* X-2701Y17855D01* X-2723Y17914D01* X-2745Y17980D01* X-2753Y18055D01* X-2760Y18143D01* Y18158D01* Y18188D01* X-2753Y18239D01* X-2738Y18299D01* X-2723Y18373D01* X-2694Y18447D01* X-2649Y18513D01* X-2597Y18580D01* X-2590Y18587D01* X-2568Y18602D01* X-2531Y18632D01* X-2479Y18661D01* X-2412Y18691D01* X-2331Y18721D01* X-2235Y18735D01* X-2124Y18743D01* X-2072D01* X-2020Y18735D01* D02* G37* G36* X-1865Y16819D02* X-1835Y16804D01* X-1806Y16782D01* X-1717Y16715D01* X-1621Y16619D01* X-1524Y16500D01* X-1436Y16353D01* X-1406Y16264D01* X-1376Y16175D01* X-1362Y16071D01* X-1354Y15968D01* Y15953D01* Y15916D01* X-1362Y15849D01* X-1376Y15775D01* X-1399Y15694D01* X-1436Y15612D01* X-1480Y15524D01* X-1547Y15450D01* X-1554Y15442D01* X-1584Y15420D01* X-1628Y15391D01* X-1695Y15361D01* X-1776Y15331D01* X-1872Y15302D01* X-1991Y15280D01* X-2124Y15272D01* X-2183D01* X-2250Y15280D01* X-2331Y15294D01* X-2427Y15316D01* X-2523Y15353D01* X-2612Y15398D01* X-2694Y15457D01* X-2701Y15464D01* X-2723Y15494D01* X-2760Y15531D01* X-2797Y15590D01* X-2827Y15664D01* X-2864Y15746D01* X-2886Y15842D01* X-2893Y15953D01* Y15960D01* Y15990D01* X-2886Y16034D01* X-2879Y16093D01* X-2864Y16153D01* X-2849Y16212D01* X-2819Y16278D01* X-2782Y16338D01* X-2775Y16345D01* X-2760Y16367D01* X-2738Y16389D01* X-2701Y16427D01* X-2657Y16471D01* X-2605Y16508D01* X-2538Y16552D01* X-2464Y16589D01* X-2457Y16597D01* X-2427Y16612D01* X-2383Y16626D01* X-2316Y16656D01* X-2235Y16693D01* X-2139Y16737D01* X-2020Y16782D01* X-1887Y16834D01* X-1880D01* X-1865Y16819D01* D02* G37* D12* X-67200Y-1600D02* X-66850D01* X-67200Y-3400D02* X-66850D01* X-67200D02* Y-1600D01* X-66850Y-3400D02* Y-1600D01* X-68150Y-3400D02* Y-1600D01* X-67800Y-3400D02* Y-1600D01* X-68150D02* X-67800D01* X-68150Y-3400D02* X-67800D01* X-950Y39350D02* Y40650D01* Y39350D02* X-600D01* Y40650D01* X-950D02* X-600D01* X600Y39350D02* X950Y39350D01* X600Y39350D02* Y40650D01* X950Y40650D01* Y39350D02* Y40650D01* X-950Y46350D02* Y47650D01* Y46350D02* X-600D01* Y47650D01* X-950D02* X-600D01* X600Y46350D02* X950Y46350D01* X600Y46350D02* Y47650D01* X950Y47650D01* Y46350D02* Y47650D01* X-15650Y-28950D02* X-14350D01* X-14350Y-28600D02* X-14350Y-28950D01* X-15650Y-28600D02* X-14350D01* X-15650Y-28950D02* X-15650Y-28600D01* X-14350Y-27400D02* Y-27050D01* X-15650Y-27400D02* X-14350D01* X-15650D02* Y-27050D01* X-14350D01* X-26400Y-36200D02* Y-35850D01* X-24600Y-36200D02* Y-35850D01* X-26400Y-36200D02* X-24600D01* X-26400Y-35850D02* X-24600D01* X-26400Y-37150D02* X-24600D01* X-26400Y-36800D02* X-24600D01* X-26400Y-37150D02* Y-36800D01* X-24600Y-37150D02* Y-36800D01* X-67200Y-12100D02* X-66850D01* X-67200Y-13900D02* X-66850D01* X-67200D02* Y-12100D01* X-66850Y-13900D02* Y-12100D01* X-68150Y-13900D02* Y-12100D01* X-67800Y-13900D02* Y-12100D01* X-68150D02* X-67800D01* X-68150Y-13900D02* X-67800D01* X-62900Y-36200D02* Y-35850D01* X-61100Y-36200D02* Y-35850D01* X-62900Y-36200D02* X-61100D01* X-62900Y-35850D02* X-61100D01* X-62900Y-37150D02* X-61100D01* X-62900Y-36800D02* X-61100D01* X-62900Y-37150D02* Y-36800D01* X-61100Y-37150D02* Y-36800D01* X-11650Y27950D02* X-10350D01* X-11650D02* X-11650Y27600D01* X-10350D01* X-10350Y27950D01* X-11650Y26050D02* Y26400D01* X-10350D01* Y26050D02* Y26400D01* X-11650Y26050D02* X-10350D01* X-25650Y27950D02* X-24350D01* X-25650D02* X-25650Y27600D01* X-24350D01* X-24350Y27950D01* X-25650Y26050D02* Y26400D01* X-24350D01* Y26050D02* Y26400D01* X-25650Y26050D02* X-24350D01* X17350Y27950D02* X18650D01* X17350D02* X17350Y27600D01* X18650D01* X18650Y27950D01* X17350Y26050D02* Y26400D01* X18650D01* Y26050D02* Y26400D01* X17350Y26050D02* X18650D01* X3350Y27950D02* X4650D01* X3350D02* X3350Y27600D01* X4650D01* X4650Y27950D01* X3350Y26050D02* Y26400D01* X4650D01* Y26050D02* Y26400D01* X3350Y26050D02* X4650D01* X-4650Y26100D02* X-4300D01* X-4650Y27900D02* X-4300D01* Y26100D02* Y27900D01* X-4650Y26100D02* Y27900D01* X-3350Y26100D02* Y27900D01* X-3700Y26100D02* Y27900D01* Y26100D02* X-3350D01* X-3700Y27900D02* X-3350D01* X-18650Y26100D02* X-18300D01* X-18650Y27900D02* X-18300D01* Y26100D02* Y27900D01* X-18650Y26100D02* Y27900D01* X-17350Y26100D02* Y27900D01* X-17700Y26100D02* Y27900D01* Y26100D02* X-17350D01* X-17700Y27900D02* X-17350D01* X24350Y26100D02* X24700D01* X24350Y27900D02* X24700D01* Y26100D02* Y27900D01* X24350Y26100D02* Y27900D01* X25650Y26100D02* Y27900D01* X25300Y26100D02* Y27900D01* Y26100D02* X25650D01* X25300Y27900D02* X25650D01* X11300D02* X11650D01* X11300Y26100D02* X11650D01* X11300D02* Y27900D01* X11650Y26100D02* Y27900D01* X10350Y26100D02* Y27900D01* X10700Y26100D02* Y27900D01* X10350D02* X10700D01* X10350Y26100D02* X10700D01* X-15650Y-23550D02* X-14350D01* X-15650D02* X-15650Y-23900D01* X-14350D01* X-14350Y-23550D01* X-15650Y-25450D02* Y-25100D01* X-14350D01* Y-25450D02* Y-25100D01* X-15650Y-25450D02* X-14350D01* X-68150Y-32450D02* X-66850D01* X-66850Y-32100D02* X-66850Y-32450D01* X-68150Y-32100D02* X-66850D01* X-68150Y-32450D02* X-68150Y-32100D01* X-66850Y-30900D02* Y-30550D01* X-68150Y-30900D02* X-66850D01* X-68150D02* Y-30550D01* X-66850D01* X4600Y-19700D02* Y-19350D01* X6400Y-19700D02* Y-19350D01* X4600Y-19700D02* X6400D01* X4600Y-19350D02* X6400D01* X4600Y-20650D02* X6400D01* X4600Y-20300D02* X6400D01* X4600Y-20650D02* Y-20300D01* X6400Y-20650D02* Y-20300D01* X8100Y-19700D02* Y-19350D01* X9900Y-19700D02* Y-19350D01* X8100Y-19700D02* X9900D01* X8100Y-19350D02* X9900D01* X8100Y-20650D02* X9900D01* X8100Y-20300D02* X9900D01* X8100Y-20650D02* Y-20300D01* X9900Y-20650D02* Y-20300D01* X-15650Y-21900D02* X-15300D01* X-15650Y-20100D02* X-15300D01* Y-21900D02* Y-20100D01* X-15650Y-21900D02* Y-20100D01* X-14350Y-21900D02* Y-20100D01* X-14700Y-21900D02* Y-20100D01* Y-21900D02* X-14350D01* X-14700Y-20100D02* X-14350D01* X-68150Y-39450D02* X-66850D01* X-66850Y-39100D02* X-66850Y-39450D01* X-68150Y-39100D02* X-66850D01* X-68150Y-39450D02* X-68150Y-39100D01* X-66850Y-37900D02* Y-37550D01* X-68150Y-37900D02* X-66850D01* X-68150D02* Y-37550D01* X-66850D01* X22300Y-37100D02* X22650D01* X22300Y-38900D02* X22650D01* X22300D02* Y-37100D01* X22650Y-38900D02* Y-37100D01* X21350Y-38900D02* Y-37100D01* X21700Y-38900D02* Y-37100D01* X21350D02* X21700D01* X21350Y-38900D02* X21700D01* X21350Y-55550D02* X22650D01* X21350D02* X21350Y-55900D01* X22650D01* X22650Y-55550D01* X21350Y-57450D02* Y-57100D01* X22650D01* Y-57450D02* Y-57100D01* X21350Y-57450D02* X22650D01* X-67200Y-34100D02* X-66850D01* X-67200Y-35900D02* X-66850D01* X-67200D02* Y-34100D01* X-66850Y-35900D02* Y-34100D01* X-68150Y-35900D02* Y-34100D01* X-67800Y-35900D02* Y-34100D01* X-68150D02* X-67800D01* X-68150Y-35900D02* X-67800D01* X-650Y-18400D02* X-300D01* X-650Y-16600D02* X-300D01* Y-18400D02* Y-16600D01* X-650Y-18400D02* Y-16600D01* X650Y-18400D02* Y-16600D01* X300Y-18400D02* Y-16600D01* Y-18400D02* X650D01* X300Y-16600D02* X650D01* X-650Y-21900D02* X-300D01* X-650Y-20100D02* X-300D01* Y-21900D02* Y-20100D01* X-650Y-21900D02* Y-20100D01* X650Y-21900D02* Y-20100D01* X300Y-21900D02* Y-20100D01* Y-21900D02* X650D01* X300Y-20100D02* X650D01* X-8150Y-21900D02* X-7800D01* X-8150Y-20100D02* X-7800D01* Y-21900D02* Y-20100D01* X-8150Y-21900D02* Y-20100D01* X-6850Y-21900D02* Y-20100D01* X-7200Y-21900D02* Y-20100D01* Y-21900D02* X-6850D01* X-7200Y-20100D02* X-6850D01* X6400Y-28650D02* Y-28300D01* X4600Y-28650D02* Y-28300D01* X6400D01* X4600Y-28650D02* X6400D01* X4600Y-27350D02* X6400D01* X4600Y-27700D02* X6400D01* Y-27350D01* X4600Y-27700D02* Y-27350D01* X9900Y-28650D02* Y-28300D01* X8100Y-28650D02* Y-28300D01* X9900D01* X8100Y-28650D02* X9900D01* X8100Y-27350D02* X9900D01* X8100Y-27700D02* X9900D01* Y-27350D01* X8100Y-27700D02* Y-27350D01* X24900Y-24650D02* Y-24300D01* X23100Y-24650D02* Y-24300D01* X24900D01* X23100Y-24650D02* X24900D01* X23100Y-23350D02* X24900D01* X23100Y-23700D02* X24900D01* Y-23350D01* X23100Y-23700D02* Y-23350D01* X24900Y-33150D02* Y-32800D01* X23100Y-33150D02* Y-32800D01* X24900D01* X23100Y-33150D02* X24900D01* X23100Y-31850D02* X24900D01* X23100Y-32200D02* X24900D01* Y-31850D01* X23100Y-32200D02* Y-31850D01* X21350Y-19400D02* X21700D01* X21350Y-17600D02* X21700D01* Y-19400D02* Y-17600D01* X21350Y-19400D02* Y-17600D01* X22650Y-19400D02* Y-17600D01* X22300Y-19400D02* Y-17600D01* Y-19400D02* X22650D01* X22300Y-17600D02* X22650D01* X13850Y-19450D02* X15150D01* X15150Y-19100D02* X15150Y-19450D01* X13850Y-19100D02* X15150D01* X13850Y-19450D02* X13850Y-19100D01* X15150Y-17900D02* Y-17550D01* X13850Y-17900D02* X15150D01* X13850D02* Y-17550D01* X15150D01* X8050Y-36650D02* Y-35350D01* Y-36650D02* X8400Y-36650D01* Y-35350D01* X8050Y-35350D02* X8400Y-35350D01* X9600Y-36650D02* X9950D01* X9600D02* Y-35350D01* X9950D01* Y-36650D02* Y-35350D01* X6400Y-36650D02* Y-36300D01* X4600Y-36650D02* Y-36300D01* X6400D01* X4600Y-36650D02* X6400D01* X4600Y-35350D02* X6400D01* X4600Y-35700D02* X6400D01* Y-35350D01* X4600Y-35700D02* Y-35350D01* X13850Y-38950D02* X15150D01* X15150Y-38600D02* X15150Y-38950D01* X13850Y-38600D02* X15150D01* X13850Y-38950D02* X13850Y-38600D01* X15150Y-37400D02* Y-37050D01* X13850Y-37400D02* X15150D01* X13850D02* Y-37050D01* X15150D01* D13* X-29346Y40941D02* Y45059D01* X-22654Y40941D02* Y45059D01* X-71087Y-15795D02* X-70791Y-15500D01* X-64394D02* X-64000Y-15894D01* X-64500Y-28500D02* X-64000Y-28000D01* X-71000D02* X-70500Y-28500D01* X-64000Y-28000D02* Y-27803D01* X-70791Y-15500D02* X-64394D01* X-70500Y-28500D02* X-64500D01* X-64000Y-16091D02* Y-15894D01* X29346Y40941D02* Y45059D01* X22654Y40941D02* Y45059D01* X-9602Y-27457D02* X-6256D01* X-9602Y-31787D02* Y-27457D01* X-744D02* X2602D01* Y-31787D02* Y-27457D01* X-12224Y-59842D02* Y-40157D01* X-2776Y-59842D02* Y-40157D01* X-12224Y-59842D02* X-2776D01* X-12224Y-40157D02* X-2776D01* X4724Y-9843D02* Y9843D01* X-4724Y-9843D02* Y9843D01* X4724D01* X-4724Y-9843D02* X4724D01* D14* X-55000Y-31500D02* Y-8500D01* X-32000Y-8500D02* X-32000Y-31500D01* X-55000D02* X-32000D01* X-55000Y-8500D02* X-32000Y-8500D01* D84* X-465Y32567D02* G03* X-465Y32567I-492J0D01* G01* X24276Y-32724D02* G03* X24276Y-32724I-492J0D01* G01* X-17441Y-61043D02* G03* X-17441Y-61043I-492J0D01* G01* X23535Y32567D02* G03* X23535Y32567I-492J0D01* G01* X10925Y11043D02* G03* X10925Y11043I-492J0D01* G01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GBP ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=128* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% D16* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GBS ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Negative* G04* G01* G75* G04:AMPARAMS|DCode=36|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD36* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % %ADD36ROUNDEDRECTD36*% %ADD49C,0.20600*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% %ADD73O,0.02568X0.05718*% G04:AMPARAMS|DCode=74|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD74* 21,1,0.02600,0.01000,0,0,270.0* 21,1,0.01000,0.02600,0,0,270.0* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* 1,1,0.01600,0.00500,-0.00500* % %ADD74ROUNDEDRECTD74*% G04:AMPARAMS|DCode=75|XSize=96.55mil|YSize=96.55mil|CornerRadius=25.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD75* 21,1,0.09655,0.04528,0,0,0.0* 21,1,0.04528,0.09655,0,0,0.0* 1,1,0.05128,0.02264,-0.02264* 1,1,0.05128,-0.02264,-0.02264* 1,1,0.05128,-0.02264,0.02264* 1,1,0.05128,0.02264,0.02264* % %ADD75ROUNDEDRECTD75*% G04:AMPARAMS|DCode=76|XSize=206mil|YSize=86mil|CornerRadius=23mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD76* 21,1,0.20600,0.04000,0,0,270.0* 21,1,0.16000,0.08600,0,0,270.0* 1,1,0.04600,-0.02000,-0.08000* 1,1,0.04600,-0.02000,0.08000* 1,1,0.04600,0.02000,0.08000* 1,1,0.04600,0.02000,-0.08000* % %ADD76ROUNDEDRECTD76*% G04:AMPARAMS|DCode=77|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD77* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % %ADD77ROUNDEDRECTD77*% G04:AMPARAMS|DCode=78|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD78* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % %ADD78ROUNDEDRECTD78*% G04:AMPARAMS|DCode=79|XSize=29.62mil|YSize=41mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD79* 21,1,0.02962,0.02319,0,0,0.0* 21,1,0.01181,0.04100,0,0,0.0* 1,1,0.01781,0.00591,-0.01159* 1,1,0.01781,-0.00591,-0.01159* 1,1,0.01781,-0.00591,0.01159* 1,1,0.01781,0.00591,0.01159* % %ADD79ROUNDEDRECTD79*% G04:AMPARAMS|DCode=80|XSize=33.56mil|YSize=57.18mil|CornerRadius=9.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD80* 21,1,0.03356,0.03740,0,0,0.0* 21,1,0.01378,0.05718,0,0,0.0* 1,1,0.01978,0.00689,-0.01870* 1,1,0.01978,-0.00689,-0.01870* 1,1,0.01978,-0.00689,0.01870* 1,1,0.01978,0.00689,0.01870* % %ADD80ROUNDEDRECTD80*% %ADD81O,0.05718X0.02568*% %ADD82O,0.01800X0.06000*% %ADD83O,0.06000X0.01800*% G36* X60300Y36696D02* X57858Y36178D01* Y34911D01* X57849Y34790D01* Y34596D01* X57840Y34513D01* Y34374D01* X57830Y34319D01* Y34235D01* X57821Y34189D01* Y34170D01* X57793Y33976D01* X57756Y33810D01* X57719Y33662D01* X57682Y33542D01* X57655Y33449D01* X57627Y33375D01* X57617Y33338D01* X57608Y33320D01* X57543Y33199D01* X57479Y33097D01* X57414Y32996D01* X57340Y32912D01* X57284Y32838D01* X57238Y32783D01* X57201Y32746D01* X57192Y32737D01* X57081Y32635D01* X56961Y32542D01* X56840Y32469D01* X56720Y32404D01* X56618Y32348D01* X56535Y32311D01* X56480Y32283D01* X56471Y32274D01* X56461D01* X56286Y32210D01* X56119Y32163D01* X55953Y32126D01* X55814Y32108D01* X55684Y32089D01* X55592Y32080D01* X55555D01* X55527D01* X55518D01* X55509D01* X55323Y32089D01* X55148Y32117D01* X55000Y32154D01* X54861Y32200D01* X54759Y32247D01* X54676Y32283D01* X54630Y32311D01* X54611Y32320D01* X54482Y32413D01* X54361Y32524D01* X54269Y32635D01* X54195Y32737D01* X54140Y32829D01* X54093Y32903D01* X54075Y32950D01* X54066Y32959D01* Y32968D01* X54010Y33125D01* X53973Y33310D01* X53936Y33486D01* X53917Y33662D01* X53908Y33819D01* Y33884D01* X53899Y33948D01* Y36659D01* X60300Y38000D01* Y36696D01* D02* G37* G36* Y27029D02* X59227Y26798D01* Y30526D01* X57488Y30147D01* Y26807D01* X56415Y26586D01* Y29906D01* X54972Y29592D01* Y26160D01* X53899Y25938D01* Y30683D01* X60300Y32024D01* Y27029D01* D02* G37* G36* Y24819D02* X55999Y23912D01* X60300Y22173D01* Y20962D01* X53899Y19620D01* Y20832D01* X58182Y21738D01* X53899Y23478D01* Y24689D01* X60300Y26030D01* Y24819D01* D02* G37* G36* X58006Y19176D02* X58246Y19149D01* X58469Y19102D01* X58681Y19047D01* X58866Y18982D01* X59042Y18917D01* X59199Y18834D01* X59347Y18751D01* X59468Y18677D01* X59579Y18594D01* X59671Y18529D01* X59745Y18455D01* X59810Y18408D01* X59847Y18362D01* X59874Y18335D01* X59884Y18325D01* X59976Y18196D01* X60059Y18066D01* X60133Y17918D01* X60189Y17770D01* X60245Y17622D01* X60291Y17465D01* X60356Y17178D01* X60374Y17040D01* X60392Y16910D01* X60402Y16799D01* X60411Y16697D01* X60420Y16614D01* Y16503D01* X60411Y16216D01* X60383Y15948D01* X60346Y15689D01* X60309Y15467D01* X60291Y15365D01* X60272Y15273D01* X60254Y15199D01* X60235Y15134D01* X60217Y15078D01* X60207Y15042D01* X60198Y15014D01* Y15004D01* X60106Y14736D01* X60013Y14496D01* X59921Y14283D01* X59838Y14098D01* X59791Y14024D01* X59754Y13959D01* X59727Y13894D01* X59699Y13848D01* X59671Y13811D01* X59662Y13774D01* X59643Y13765D01* Y13756D01* X56877Y13182D01* Y16040D01* X57951Y16262D01* Y14625D01* X58912Y14829D01* X58968Y14958D01* X59023Y15088D01* X59079Y15217D01* X59116Y15337D01* X59153Y15439D01* X59181Y15522D01* X59190Y15578D01* X59199Y15587D01* Y15597D01* X59236Y15763D01* X59264Y15920D01* X59292Y16068D01* X59301Y16198D01* X59310Y16309D01* X59320Y16392D01* Y16466D01* X59301Y16716D01* X59264Y16938D01* X59199Y17123D01* X59125Y17271D01* X59061Y17391D01* X58996Y17483D01* X58959Y17530D01* X58940Y17548D01* X58866Y17613D01* X58774Y17669D01* X58589Y17761D01* X58385Y17817D01* X58191Y17863D01* X58015Y17890D01* X57941Y17900D01* X57867D01* X57812Y17909D01* X57775D01* X57747D01* X57738D01* X57433Y17900D01* X57155Y17863D01* X56896Y17817D01* X56776Y17789D01* X56674Y17761D01* X56572Y17733D01* X56480Y17706D01* X56406Y17678D01* X56341Y17659D01* X56286Y17641D01* X56248Y17622D01* X56230Y17613D01* X56221D01* X55971Y17493D01* X55758Y17354D01* X55582Y17215D01* X55435Y17086D01* X55323Y16965D01* X55250Y16864D01* X55222Y16827D01* X55203Y16799D01* X55185Y16790D01* Y16781D01* X55074Y16577D01* X54991Y16374D01* X54926Y16179D01* X54889Y15994D01* X54861Y15846D01* X54852Y15781D01* Y15717D01* X54843Y15680D01* Y15615D01* X54852Y15421D01* X54889Y15245D01* X54926Y15088D01* X54981Y14958D01* X55028Y14847D01* X55074Y14773D01* X55111Y14727D01* X55120Y14708D01* X55231Y14579D01* X55361Y14477D01* X55499Y14385D01* X55629Y14311D01* X55749Y14255D01* X55841Y14209D01* X55879Y14200D01* X55906Y14190D01* X55925Y14181D01* X55934D01* X55795Y12951D01* X55620Y12997D01* X55453Y13053D01* X55296Y13117D01* X55148Y13182D01* X55009Y13256D01* X54889Y13330D01* X54778Y13404D01* X54676Y13478D01* X54593Y13552D01* X54510Y13626D01* X54445Y13682D01* X54389Y13737D01* X54352Y13783D01* X54325Y13821D01* X54306Y13839D01* X54297Y13848D01* X54204Y13978D01* X54121Y14117D01* X54056Y14255D01* X54001Y14403D01* X53908Y14699D01* X53843Y14986D01* X53825Y15115D01* X53807Y15236D01* X53797Y15347D01* X53788Y15439D01* X53779Y15513D01* Y15624D01* X53788Y15828D01* X53807Y16022D01* X53834Y16216D01* X53871Y16392D01* X53908Y16568D01* X53964Y16725D01* X54010Y16873D01* X54066Y17003D01* X54121Y17132D01* X54167Y17234D01* X54223Y17335D01* X54260Y17410D01* X54297Y17474D01* X54325Y17521D01* X54343Y17548D01* X54352Y17558D01* X54463Y17706D01* X54584Y17844D01* X54843Y18094D01* X54981Y18214D01* X55111Y18316D01* X55240Y18408D01* X55370Y18492D01* X55490Y18566D01* X55601Y18631D01* X55694Y18686D01* X55786Y18732D01* X55851Y18769D01* X55906Y18797D01* X55943Y18806D01* X55953Y18815D01* X56276Y18936D01* X56600Y19028D01* X56905Y19093D01* X57044Y19121D01* X57174Y19139D01* X57303Y19158D01* X57414Y19167D01* X57507Y19176D01* X57599D01* X57664Y19185D01* X57710D01* X57747D01* X57756D01* X58006Y19176D01* D02* G37* G36* X60300Y7826D02* X59227Y7604D01* Y9381D01* X59236Y9612D01* Y10417D01* X59246Y10527D01* Y10759D01* X59255Y10860D01* Y10953D01* X54907Y7235D01* X53899Y7040D01* Y11656D01* X54972Y11878D01* Y8890D01* X59292Y12581D01* X60300Y12794D01* Y7826D01* D02* G37* G36* Y5866D02* X57442Y5264D01* Y2776D01* X60300Y3368D01* Y2064D01* X53899Y713D01* Y2027D01* X56369Y2545D01* Y5033D01* X53899Y4515D01* Y5829D01* X60300Y7170D01* Y5866D01* D02* G37* G36* Y-526D02* X53899Y-1877D01* Y-563D01* X60300Y778D01* Y-526D01* D02* G37* G36* Y-3079D02* X57442Y-3681D01* Y-6169D01* X60300Y-5577D01* Y-6881D01* X53899Y-8231D01* Y-6918D01* X56369Y-6400D01* Y-3912D01* X53899Y-4430D01* Y-3116D01* X60300Y-1775D01* Y-3079D01* D02* G37* G36* X58617Y-8676D02* X58764Y-8694D01* X58912Y-8722D01* X59042Y-8759D01* X59171Y-8805D01* X59282Y-8861D01* X59394Y-8916D01* X59486Y-8971D01* X59579Y-9027D01* X59653Y-9082D01* X59717Y-9138D01* X59773Y-9184D01* X59819Y-9221D01* X59847Y-9249D01* X59865Y-9268D01* X59874Y-9277D01* X59967Y-9397D01* X60050Y-9536D01* X60124Y-9674D01* X60189Y-9813D01* X60245Y-9961D01* X60291Y-10119D01* X60356Y-10405D01* X60374Y-10535D01* X60392Y-10664D01* X60402Y-10775D01* X60411Y-10868D01* X60420Y-10951D01* Y-11062D01* X60402Y-11404D01* X60383Y-11571D01* X60365Y-11719D01* X60337Y-11857D01* X60309Y-11987D01* X60281Y-12107D01* X60245Y-12218D01* X60207Y-12320D01* X60180Y-12403D01* X60152Y-12477D01* X60124Y-12542D01* X60097Y-12588D01* X60087Y-12625D01* X60069Y-12644D01* Y-12653D01* X59930Y-12875D01* X59773Y-13069D01* X59625Y-13236D01* X59477Y-13365D01* X59347Y-13476D01* X59246Y-13550D01* X59209Y-13569D01* X59181Y-13587D01* X59162Y-13606D01* X59153D01* X59042Y-13661D01* X58922Y-13717D01* X58663Y-13828D01* X58385Y-13920D01* X58126Y-13994D01* X58006Y-14031D01* X57895Y-14059D01* X57793Y-14087D01* X57701Y-14115D01* X57627Y-14133D01* X57571Y-14142D01* X57534Y-14152D01* X57525D01* X53899Y-14919D01* Y-13606D01* X57405Y-12866D01* X57562Y-12829D01* X57701Y-12801D01* X57830Y-12764D01* X57951Y-12727D01* X58061Y-12699D01* X58163Y-12672D01* X58246Y-12634D01* X58330Y-12616D01* X58394Y-12588D01* X58459Y-12561D01* X58505Y-12542D01* X58543Y-12524D01* X58598Y-12505D01* X58617Y-12496D01* X58737Y-12422D01* X58848Y-12338D01* X58940Y-12246D01* X59014Y-12163D01* X59070Y-12089D01* X59107Y-12024D01* X59135Y-11987D01* X59144Y-11969D01* X59199Y-11839D01* X59246Y-11691D01* X59273Y-11552D01* X59301Y-11423D01* X59310Y-11303D01* X59320Y-11201D01* Y-11118D01* X59310Y-10914D01* X59282Y-10738D01* X59246Y-10590D01* X59209Y-10461D01* X59171Y-10368D01* X59135Y-10294D01* X59107Y-10257D01* X59097Y-10239D01* X59005Y-10137D01* X58912Y-10072D01* X58811Y-10017D01* X58718Y-9980D01* X58635Y-9961D01* X58570Y-9952D01* X58533Y-9943D01* X58515D01* X58404Y-9961D01* X58311Y-9971D01* X58256Y-9980D01* X58246D01* X58237D01* X57386Y-10174D01* X53899Y-10932D01* Y-9628D01* X57275Y-8870D01* X57395Y-8842D01* X57497Y-8823D01* X57590Y-8805D01* X57673Y-8787D01* X57747Y-8768D01* X57812Y-8759D01* X57923Y-8740D01* X57987Y-8722D01* X58043D01* X58061Y-8713D01* X58071D01* X58219Y-8694D01* X58284Y-8685D01* X58348Y-8676D01* X58394D01* X58432Y-8666D01* X58450D01* X58459D01* X58617Y-8676D01* D02* G37* G36* X60300Y-15927D02* X53899Y-17278D01* Y-15965D01* X60300Y-14623D01* Y-15927D01* D02* G37* G36* Y-18443D02* X59088Y-18684D01* Y-17445D01* X60300Y-17204D01* Y-18443D01* D02* G37* G36* Y-20710D02* X59338Y-21588D01* X59199Y-21709D01* X59070Y-21829D01* X58959Y-21931D01* X58848Y-22014D01* X58755Y-22097D01* X58672Y-22171D01* X58598Y-22227D01* X58533Y-22282D01* X58432Y-22366D01* X58358Y-22421D01* X58320Y-22449D01* X58311Y-22458D01* X58376Y-22486D01* X58450Y-22513D01* X58607Y-22588D01* X58783Y-22671D01* X58959Y-22754D01* X59116Y-22837D01* X59181Y-22874D01* X59246Y-22902D01* X59292Y-22930D01* X59329Y-22948D01* X59356Y-22967D01* X59366D01* X60300Y-23457D01* Y-24946D01* X57266Y-23365D01* X53913Y-26285D01* X57802Y-28045D01* X60300Y-27527D01* Y-28831D01* X57932Y-29331D01* X53899Y-32272D01* Y-30737D01* X55194Y-29840D01* X56045Y-29229D01* X56267Y-29081D01* X56369Y-29016D01* X56461Y-28961D01* X56535Y-28924D01* X56591Y-28887D01* X56628Y-28868D01* X56637Y-28859D01* X56517Y-28813D01* X56369Y-28757D01* X56212Y-28692D01* X56063Y-28628D01* X55925Y-28572D01* X55860Y-28545D01* X55805Y-28526D01* X55768Y-28508D01* X55730Y-28489D01* X55712Y-28480D01* X55703D01* X53899Y-27684D01* Y-26297D01* Y-24622D01* X55009Y-23623D01* X55166Y-23485D01* X55342Y-23337D01* X55518Y-23189D01* X55675Y-23041D01* X55823Y-22920D01* X55888Y-22865D01* X55943Y-22828D01* X55980Y-22791D01* X56017Y-22763D01* X56036Y-22745D01* X56045Y-22736D01* X55999Y-22717D01* X55962Y-22698D01* X55943Y-22689D01* X55934Y-22680D01* X55795Y-22606D01* X55666Y-22550D01* X55555Y-22495D01* X55462Y-22449D01* X55379Y-22402D01* X55314Y-22375D01* X55250Y-22338D01* X55203Y-22319D01* X55166Y-22301D01* X55138Y-22282D01* X55092Y-22264D01* X55074Y-22254D01* X53899Y-21625D01* Y-20247D01* X57072Y-21838D01* X60300Y-19008D01* Y-20710D01* D02* G37* G36* Y-36407D02* X59227Y-36629D01* Y-34853D01* X59236Y-34622D01* Y-33817D01* X59246Y-33706D01* Y-33475D01* X59255Y-33373D01* Y-33281D01* X54907Y-36999D01* X53899Y-37193D01* Y-32577D01* X54972Y-32355D01* Y-35343D01* X59292Y-31653D01* X60300Y-31440D01* Y-36407D01* D02* G37* %LPC*% G36* X56785Y35956D02* X54953Y35567D01* Y34402D01* X54963Y34309D01* Y34226D01* X54972Y34078D01* X54991Y33976D01* X55000Y33893D01* X55018Y33838D01* X55028Y33810D01* Y33801D01* X55092Y33680D01* X55157Y33588D01* X55212Y33532D01* X55231Y33514D01* X55240D01* X55296Y33477D01* X55361Y33449D01* X55481Y33412D01* X55536D01* X55582Y33403D01* X55610D01* X55620D01* X55749Y33412D01* X55860Y33430D01* X55971Y33468D01* X56063Y33505D01* X56138Y33542D01* X56202Y33579D01* X56239Y33597D01* X56248Y33606D01* X56341Y33689D01* X56424Y33782D01* X56498Y33874D01* X56554Y33958D01* X56600Y34041D01* X56628Y34106D01* X56646Y34143D01* X56656Y34161D01* X56674Y34235D01* X56702Y34319D01* X56711Y34420D01* X56730Y34522D01* X56757Y34753D01* X56766Y34984D01* X56776Y35197D01* X56785Y35299D01* Y35956D01* D02* G37* %LPD*% D36* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D49* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D73* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D74* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D75* X-12000Y43000D02* D03* X12000D02* D03* D76* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D77* X-67500Y-18260D02* D03* D78* X-67500Y-22000D02* D03* Y-25740D02* D03* D79* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D80* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D81* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D82* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D83* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GD1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=2752767* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% %ADD87C,0.00267*% D86* X-61824Y-61824D02* Y-60224D01* X-60224D01* Y-61824D01* X-61824D01* X60224D02* Y-60224D01* X61824D01* Y-61824D01* X60224D01* Y60224D02* Y61824D01* X61824D01* Y60224D01* X60224D01* X-61824D02* Y61824D01* X-60224D01* Y60224D01* X-61824D01* X4500Y51300D02* X3700Y52900D01* X5300D01* X4500Y51300D01* Y54300D02* X3700Y55900D01* X5300D01* X4500Y54300D01* X32000Y15200D02* X31200Y16800D01* X32800D01* X32000Y15200D01* X29000D02* X28200Y16800D01* X29800D01* X29000Y15200D01* X26000D02* X25200Y16800D01* X26800D01* X26000Y15200D01* X23000D02* X22200Y16800D01* X23800D01* X23000Y15200D01* X20000D02* X19200Y16800D01* X20800D01* X20000Y15200D01* X17000D02* X16200Y16800D01* X17800D01* X17000Y15200D01* X14000D02* X13200Y16800D01* X14800D01* X14000Y15200D01* X11000D02* X10200Y16800D01* X11800D01* X11000Y15200D01* X8000D02* X7200Y16800D01* X8800D01* X8000Y15200D01* X5000D02* X4200Y16800D01* X5800D01* X5000Y15200D01* X2000D02* X1200Y16800D01* X2800D01* X2000Y15200D01* X-1000D02* X-1800Y16800D01* X-200D01* X-1000Y15200D01* X-4000D02* X-4800Y16800D01* X-3200D01* X-4000Y15200D01* X-7000D02* X-7800Y16800D01* X-6200D01* X-7000Y15200D01* X-10000D02* X-10800Y16800D01* X-9200D01* X-10000Y15200D01* X-13000D02* X-13800Y16800D01* X-12200D01* X-13000Y15200D01* X-16000D02* X-16800Y16800D01* X-15200D01* X-16000Y15200D01* X-19000D02* X-19800Y16800D01* X-18200D01* X-19000Y15200D01* X73000Y-15800D02* X72200Y-14200D01* X73800D01* X73000Y-15800D01* X76000D02* X75200Y-14200D01* X76800D01* X76000Y-15800D01* X70000D02* X69200Y-14200D01* X70800D01* X70000Y-15800D01* Y-12800D02* X69200Y-11200D01* X70800D01* X70000Y-12800D01* X73000D02* X72200Y-11200D01* X73800D01* X73000Y-12800D01* X76000D02* X75200Y-11200D01* X76800D01* X76000Y-12800D01* X73000Y-18800D02* X72200Y-17200D01* X73800D01* X73000Y-18800D01* X76000D02* X75200Y-17200D01* X76800D01* X76000Y-18800D01* X70000D02* X69200Y-17200D01* X70800D01* X70000Y-18800D01* X73000Y14200D02* X72200Y15800D01* X73800D01* X73000Y14200D01* Y11200D02* X72200Y12800D01* X73800D01* X73000Y11200D01* Y17200D02* X72200Y18800D01* X73800D01* X73000Y17200D01* X76000D02* X75200Y18800D01* X76800D01* X76000Y17200D01* Y14200D02* X75200Y15800D01* X76800D01* X76000Y14200D01* Y11200D02* X75200Y12800D01* X76800D01* X76000Y11200D01* X70000Y14200D02* X69200Y15800D01* X70800D01* X70000Y14200D01* Y11200D02* X69200Y12800D01* X70800D01* X70000Y11200D01* Y17200D02* X69200Y18800D01* X70800D01* X70000Y17200D01* X-30500Y62200D02* X-31300Y63800D01* X-29700D01* X-30500Y62200D01* Y59200D02* X-31300Y60800D01* X-29700D01* X-30500Y59200D01* Y65200D02* X-31300Y66800D01* X-29700D01* X-30500Y65200D01* X-27500D02* X-28300Y66800D01* X-26700D01* X-27500Y65200D01* Y62200D02* X-28300Y63800D01* X-26700D01* X-27500Y62200D01* Y59200D02* X-28300Y60800D01* X-26700D01* X-27500Y59200D01* X-33500Y62200D02* X-34300Y63800D01* X-32700D01* X-33500Y62200D01* Y59200D02* X-34300Y60800D01* X-32700D01* X-33500Y59200D01* Y65200D02* X-34300Y66800D01* X-32700D01* X-33500Y65200D01* X-39500Y62200D02* X-40300Y63800D01* X-38700D01* X-39500Y62200D01* Y59200D02* X-40300Y60800D01* X-38700D01* X-39500Y59200D01* Y65200D02* X-40300Y66800D01* X-38700D01* X-39500Y65200D01* X-36500D02* X-37300Y66800D01* X-35700D01* X-36500Y65200D01* Y62200D02* X-37300Y63800D01* X-35700D01* X-36500Y62200D01* Y59200D02* X-37300Y60800D01* X-35700D01* X-36500Y59200D01* X-42500Y62200D02* X-43300Y63800D01* X-41700D01* X-42500Y62200D01* Y59200D02* X-43300Y60800D01* X-41700D01* X-42500Y59200D01* Y65200D02* X-43300Y66800D01* X-41700D01* X-42500Y65200D01* X-39592Y-22300D02* X-40392Y-20700D01* X-38792D01* X-39592Y-22300D01* X-36546D02* X-37346Y-20700D01* X-35746D01* X-36546Y-22300D01* X-33500D02* X-34300Y-20700D01* X-32700D01* X-33500Y-22300D01* Y-25300D02* X-34300Y-23700D01* X-32700D01* X-33500Y-25300D01* X-36546D02* X-37346Y-23700D01* X-35746D01* X-36546Y-25300D01* X-39592Y-25366D02* X-40392Y-23766D01* X-38792D01* X-39592Y-25366D01* Y-28300D02* X-40392Y-26700D01* X-38792D01* X-39592Y-28300D01* X-36546D02* X-37346Y-26700D01* X-35746D01* X-36546Y-28300D01* X-33500D02* X-34300Y-26700D01* X-32700D01* X-33500Y-28300D01* X-19500Y40200D02* X-20300Y41800D01* X-18700D01* X-19500Y40200D01* Y37200D02* X-20300Y38800D01* X-18700D01* X-19500Y37200D01* Y43200D02* X-20300Y44800D01* X-18700D01* X-19500Y43200D01* X33100Y43600D02* X32300Y45200D01* X33900D01* X33100Y43600D01* Y40600D02* X32300Y42200D01* X33900D01* X33100Y40600D01* Y37600D02* X32300Y39200D01* X33900D01* X33100Y37600D01* Y34600D02* X32300Y36200D01* X33900D01* X33100Y34600D01* Y31600D02* X32300Y33200D01* X33900D01* X33100Y31600D01* Y28600D02* X32300Y30200D01* X33900D01* X33100Y28600D01* X-34200Y51200D02* X-35000Y52800D01* X-33400D01* X-34200Y51200D01* Y48200D02* X-35000Y49800D01* X-33400D01* X-34200Y48200D01* Y45200D02* X-35000Y46800D01* X-33400D01* X-34200Y45200D01* Y42200D02* X-35000Y43800D01* X-33400D01* X-34200Y42200D01* Y39200D02* X-35000Y40800D01* X-33400D01* X-34200Y39200D01* Y36200D02* X-35000Y37800D01* X-33400D01* X-34200Y36200D01* X19300Y43900D02* X18500Y45500D01* X20100D01* X19300Y43900D01* Y40900D02* X18500Y42500D01* X20100D01* X19300Y40900D01* Y37900D02* X18500Y39500D01* X20100D01* X19300Y37900D01* X4300Y44300D02* X3500Y45900D01* X5100D01* X4300Y44300D01* Y41300D02* X3500Y42900D01* X5100D01* X4300Y41300D01* Y38300D02* X3500Y39900D01* X5100D01* X4300Y38300D01* X-4200Y44300D02* X-5000Y45900D01* X-3400D01* X-4200Y44300D01* Y41300D02* X-5000Y42900D01* X-3400D01* X-4200Y41300D01* Y38300D02* X-5000Y39900D01* X-3400D01* X-4200Y38300D01* X12000Y42200D02* X11200Y43800D01* X12800D01* X12000Y42200D01* X9000D02* X8200Y43800D01* X9800D01* X9000Y42200D01* X15000D02* X14200Y43800D01* X15800D01* X15000Y42200D01* Y39200D02* X14200Y40800D01* X15800D01* X15000Y39200D01* X12000D02* X11200Y40800D01* X12800D01* X12000Y39200D01* X9000D02* X8200Y40800D01* X9800D01* X9000Y39200D01* X12000Y45200D02* X11200Y46800D01* X12800D01* X12000Y45200D01* X9000D02* X8200Y46800D01* X9800D01* X9000Y45200D01* X15000D02* X14200Y46800D01* X15800D01* X15000Y45200D01* X-9000D02* X-9800Y46800D01* X-8200D01* X-9000Y45200D01* X-15000D02* X-15800Y46800D01* X-14200D01* X-15000Y45200D01* X-12000D02* X-12800Y46800D01* X-11200D01* X-12000Y45200D01* X-15000Y39200D02* X-15800Y40800D01* X-14200D01* X-15000Y39200D01* X-12000D02* X-12800Y40800D01* X-11200D01* X-12000Y39200D01* X-9000D02* X-9800Y40800D01* X-8200D01* X-9000Y39200D01* Y42200D02* X-9800Y43800D01* X-8200D01* X-9000Y42200D01* X-15000D02* X-15800Y43800D01* X-14200D01* X-15000Y42200D01* X-12000D02* X-12800Y43800D01* X-11200D01* X-12000Y42200D01* X1500Y51300D02* X700Y52900D01* X2300D01* X1500Y51300D01* Y54300D02* X700Y55900D01* X2300D01* X1500Y54300D01* X-22500Y51300D02* X-23300Y52900D01* X-21700D01* X-22500Y51300D01* X-19500D02* X-20300Y52900D01* X-18700D01* X-19500Y51300D01* X-22500Y54300D02* X-23300Y55900D01* X-21700D01* X-22500Y54300D01* X-19500D02* X-20300Y55900D01* X-18700D01* X-19500Y54300D01* X43000Y-67800D02* X42200Y-66200D01* X43800D01* X43000Y-67800D01* X40000D02* X39200Y-66200D01* X40800D01* X40000Y-67800D01* X46000D02* X45200Y-66200D01* X46800D01* X46000Y-67800D01* X43000Y-70800D02* X42200Y-69200D01* X43800D01* X43000Y-70800D01* X40000D02* X39200Y-69200D01* X40800D01* X40000Y-70800D01* X46000D02* X45200Y-69200D01* X46800D01* X46000Y-70800D01* X43000Y-73800D02* X42200Y-72200D01* X43800D01* X43000Y-73800D01* X40000D02* X39200Y-72200D01* X40800D01* X40000Y-73800D01* X46000D02* X45200Y-72200D01* X46800D01* X46000Y-73800D01* X34000Y-79300D02* X33200Y-77700D01* X34800D01* X34000Y-79300D01* X31000D02* X30200Y-77700D01* X31800D01* X31000Y-79300D01* X37000D02* X36200Y-77700D01* X37800D01* X37000Y-79300D01* X25000D02* X24200Y-77700D01* X25800D01* X25000Y-79300D01* X22000D02* X21200Y-77700D01* X22800D01* X22000Y-79300D01* X28000D02* X27200Y-77700D01* X28800D01* X28000Y-79300D01* X19000Y-76300D02* X18200Y-74700D01* X19800D01* X19000Y-76300D01* Y-79300D02* X18200Y-77700D01* X19800D01* X19000Y-79300D01* X-14000Y-72800D02* X-14800Y-71200D01* X-13200D01* X-14000Y-72800D01* X-20000D02* X-20800Y-71200D01* X-19200D01* X-20000Y-72800D01* X-17000D02* X-17800Y-71200D01* X-16200D01* X-17000Y-72800D01* X-14000Y-69800D02* X-14800Y-68200D01* X-13200D01* X-14000Y-69800D01* X-20000D02* X-20800Y-68200D01* X-19200D01* X-20000Y-69800D01* X-17000D02* X-17800Y-68200D01* X-16200D01* X-17000Y-69800D01* X-14000Y-66800D02* X-14800Y-65200D01* X-13200D01* X-14000Y-66800D01* X-20000D02* X-20800Y-65200D01* X-19200D01* X-20000Y-66800D01* X-17000D02* X-17800Y-65200D01* X-16200D01* X-17000Y-66800D01* D87* X9300Y-24100D02* G03* X9300Y-24100I-800J0D01* G01* X6300D02* G03* X6300Y-24100I-800J0D01* G01* X-43500Y26900D02* G03* X-43500Y26900I-800J0D01* G01* X-43300Y31200D02* G03* X-43300Y31200I-800J0D01* G01* X-52900Y30300D02* G03* X-52900Y30300I-800J0D01* G01* X-53000Y23500D02* G03* X-53000Y23500I-800J0D01* G01* X-56200D02* G03* X-56200Y23500I-800J0D01* G01* X-55500Y12500D02* G03* X-55500Y12500I-800J0D01* G01* X-58200Y17500D02* G03* X-58200Y17500I-800J0D01* G01* X-55800Y26900D02* G03* X-55800Y26900I-800J0D01* G01* X-59100Y40300D02* G03* X-59100Y40300I-800J0D01* G01* X-59200Y36400D02* G03* X-59200Y36400I-800J0D01* G01* X-59100Y32500D02* G03* X-59100Y32500I-800J0D01* G01* X-41900Y-10600D02* G03* X-41900Y-10600I-800J0D01* G01* X73800Y-4700D02* G03* X73800Y-4700I-800J0D01* G01* Y3500D02* G03* X73800Y3500I-800J0D01* G01* X50800Y-7200D02* G03* X50800Y-7200I-800J0D01* G01* Y-4000D02* G03* X50800Y-4000I-800J0D01* G01* X28900Y54000D02* G03* X28900Y54000I-800J0D01* G01* X-1200Y-65500D02* G03* X-1200Y-65500I-800J0D01* G01* X3300Y-47500D02* G03* X3300Y-47500I-800J0D01* G01* X2768Y-62500D02* G03* X2768Y-62500I-800J0D01* G01* X-27200Y-63000D02* G03* X-27200Y-63000I-800J0D01* G01* X-72700Y-55000D02* G03* X-72700Y-55000I-800J0D01* G01* Y-52000D02* G03* X-72700Y-52000I-800J0D01* G01* X-70566Y-45734D02* G03* X-70566Y-45734I-800J0D01* G01* X-70000Y-3100D02* G03* X-70000Y-3100I-800J0D01* G01* X-65800Y-2500D02* G03* X-65800Y-2500I-800J0D01* G01* X800Y43500D02* G03* X800Y43500I-800J0D01* G01* X16600Y300D02* G03* X16600Y300I-800J0D01* G01* X800Y37000D02* G03* X800Y37000I-800J0D01* G01* X-50200Y-22000D02* G03* X-50200Y-22000I-800J0D01* G01* X-66700Y100D02* G03* X-66700Y100I-800J0D01* G01* X-61300Y-42600D02* G03* X-61300Y-42600I-800J0D01* G01* X-77600Y-53500D02* G03* X-77600Y-53500I-800J0D01* G01* X-76200Y13000D02* G03* X-76200Y13000I-800J0D01* G01* Y24000D02* G03* X-76200Y24000I-800J0D01* G01* Y30000D02* G03* X-76200Y30000I-800J0D01* G01* Y36000D02* G03* X-76200Y36000I-800J0D01* G01* Y-21000D02* G03* X-76200Y-21000I-800J0D01* G01* Y-37500D02* G03* X-76200Y-37500I-800J0D01* G01* Y-34000D02* G03* X-76200Y-34000I-800J0D01* G01* Y-30500D02* G03* X-76200Y-30500I-800J0D01* G01* X-56700Y5000D02* G03* X-56700Y5000I-800J0D01* G01* X-59700Y3000D02* G03* X-59700Y3000I-800J0D01* G01* X-40200Y2500D02* G03* X-40200Y2500I-800J0D01* G01* X-44200Y5000D02* G03* X-44200Y5000I-800J0D01* G01* X-40200D02* G03* X-40200Y5000I-800J0D01* G01* X-32700Y5500D02* G03* X-32700Y5500I-800J0D01* G01* Y2000D02* G03* X-32700Y2000I-800J0D01* G01* X-33700Y-59000D02* G03* X-33700Y-59000I-800J0D01* G01* X-36700D02* G03* X-36700Y-59000I-800J0D01* G01* X27800Y-49500D02* G03* X27800Y-49500I-800J0D01* G01* X33300Y-37500D02* G03* X33300Y-37500I-800J0D01* G01* Y-34500D02* G03* X33300Y-34500I-800J0D01* G01* Y-31500D02* G03* X33300Y-31500I-800J0D01* G01* Y-28500D02* G03* X33300Y-28500I-800J0D01* G01* Y-25500D02* G03* X33300Y-25500I-800J0D01* G01* Y-22500D02* G03* X33300Y-22500I-800J0D01* G01* Y-19500D02* G03* X33300Y-19500I-800J0D01* G01* Y-16500D02* G03* X33300Y-16500I-800J0D01* G01* X16300Y-13000D02* G03* X16300Y-13000I-800J0D01* G01* X18800D02* G03* X18800Y-13000I-800J0D01* G01* X21300D02* G03* X21300Y-13000I-800J0D01* G01* X23800D02* G03* X23800Y-13000I-800J0D01* G01* X26300D02* G03* X26300Y-13000I-800J0D01* G01* Y-15500D02* G03* X26300Y-15500I-800J0D01* G01* X23800D02* G03* X23800Y-15500I-800J0D01* G01* X-12700Y5500D02* G03* X-12700Y5500I-800J0D01* G01* Y9500D02* G03* X-12700Y9500I-800J0D01* G01* X-10200D02* G03* X-10200Y9500I-800J0D01* G01* Y5500D02* G03* X-10200Y5500I-800J0D01* G01* X-55700Y-42500D02* G03* X-55700Y-42500I-800J0D01* G01* X-57700Y-41000D02* G03* X-57700Y-41000I-800J0D01* G01* X-56200Y-37000D02* G03* X-56200Y-37000I-800J0D01* G01* X-2700Y-38000D02* G03* X-2700Y-38000I-800J0D01* G01* Y-35000D02* G03* X-2700Y-35000I-800J0D01* G01* X-4200Y-23000D02* G03* X-4200Y-23000I-800J0D01* G01* Y-20000D02* G03* X-4200Y-20000I-800J0D01* G01* X9300Y-21000D02* G03* X9300Y-21000I-800J0D01* G01* X6300D02* G03* X6300Y-21000I-800J0D01* G01* X17800Y-35000D02* G03* X17800Y-35000I-800J0D01* G01* Y-32500D02* G03* X17800Y-32500I-800J0D01* G01* X-1200Y-41500D02* G03* X-1200Y-41500I-800J0D01* G01* X-4200D02* G03* X-4200Y-41500I-800J0D01* G01* X-27700Y-43000D02* G03* X-27700Y-43000I-800J0D01* G01* X-26200Y-40500D02* G03* X-26200Y-40500I-800J0D01* G01* Y-38000D02* G03* X-26200Y-38000I-800J0D01* G01* X-22700D02* G03* X-22700Y-38000I-800J0D01* G01* X-65700Y-15500D02* G03* X-65700Y-15500I-800J0D01* G01* X-65200Y-22000D02* G03* X-65200Y-22000I-800J0D01* G01* X-54700Y-28000D02* G03* X-54700Y-28000I-800J0D01* G01* Y-25500D02* G03* X-54700Y-25500I-800J0D01* G01* Y-23000D02* G03* X-54700Y-23000I-800J0D01* G01* X-37200Y-17000D02* G03* X-37200Y-17000I-800J0D01* G01* X-39700D02* G03* X-39700Y-17000I-800J0D01* G01* X-34200Y-16500D02* G03* X-34200Y-16500I-800J0D01* G01* X-53500Y-41000D02* G03* X-53500Y-41000I-800J0D01* G01* X-51300Y-42400D02* G03* X-51300Y-42400I-800J0D01* G01* X11600Y7500D02* G03* X11600Y7500I-800J0D01* G01* X-10600Y-7500D02* G03* X-10600Y-7500I-800J0D01* G01* X-17500Y-4200D02* G03* X-17500Y-4200I-800J0D01* G01* X-31000Y-12300D02* G03* X-31000Y-12300I-800J0D01* G01* X-9800Y2500D02* G03* X-9800Y2500I-800J0D01* G01* X-50600Y-14500D02* G03* X-50600Y-14500I-800J0D01* G01* X32900Y53700D02* G03* X32900Y53700I-800J0D01* G01* X30100Y-4100D02* G03* X30100Y-4100I-800J0D01* G01* Y-7200D02* G03* X30100Y-7200I-800J0D01* G01* X-34500Y-8400D02* G03* X-34500Y-8400I-800J0D01* G01* X20600Y-22100D02* G03* X20600Y-22100I-800J0D01* G01* X23254Y-21500D02* G03* X23254Y-21500I-800J0D01* G01* X9300Y-51100D02* G03* X9300Y-51100I-800J0D01* G01* X-11700Y-45800D02* G03* X-11700Y-45800I-800J0D01* G01* X-10000Y-44100D02* G03* X-10000Y-44100I-800J0D01* G01* X-10700Y-31900D02* G03* X-10700Y-31900I-800J0D01* G01* X-50700Y-31600D02* G03* X-50700Y-31600I-800J0D01* G01* X-51100Y-11100D02* G03* X-51100Y-11100I-800J0D01* G01* X29300Y-21200D02* G03* X29300Y-21200I-800J0D01* G01* Y-18700D02* G03* X29300Y-18700I-800J0D01* G01* Y-16400D02* G03* X29300Y-16400I-800J0D01* G01* X1100Y-38700D02* G03* X1100Y-38700I-800J0D01* G01* Y-36200D02* G03* X1100Y-36200I-800J0D01* G01* X1040Y-33540D02* G03* X1040Y-33540I-800J0D01* G01* X18800Y-16300D02* G03* X18800Y-16300I-800J0D01* G01* X16600D02* G03* X16600Y-16300I-800J0D01* G01* X20700Y-17400D02* G03* X20700Y-17400I-800J0D01* G01* X-38900Y-41600D02* G03* X-38900Y-41600I-800J0D01* G01* X-36900Y-43700D02* G03* X-36900Y-43700I-800J0D01* G01* X24800Y-57500D02* G03* X24800Y-57500I-800J0D01* G01* X28100Y-52900D02* G03* X28100Y-52900I-800J0D01* G01* X-55500Y-13100D02* G03* X-55500Y-13100I-800J0D01* G01* X-21700Y-19300D02* G03* X-21700Y-19300I-800J0D01* G01* X-39747Y-33553D02* G03* X-39747Y-33553I-800J0D01* G01* X-35800Y-33400D02* G03* X-35800Y-33400I-800J0D01* G01* X-33821Y-41200D02* G03* X-33821Y-41200I-800J0D01* G01* X-37800Y-31800D02* G03* X-37800Y-31800I-800J0D01* G01* X-49600Y4800D02* G03* X-49600Y4800I-800J0D01* G01* X-53500D02* G03* X-53500Y4800I-800J0D01* G01* X-51558Y658D02* G03* X-51558Y658I-800J0D01* G01* X-55700Y700D02* G03* X-55700Y700I-800J0D01* G01* X15300Y31000D02* G03* X15300Y31000I-800J0D01* G01* X10300D02* G03* X10300Y31000I-800J0D01* G01* X-8700D02* G03* X-8700Y31000I-800J0D01* G01* X-13700D02* G03* X-13700Y31000I-800J0D01* G01* X-54984Y-19016D02* G03* X-54984Y-19016I-800J0D01* G01* X30300Y-52300D02* G03* X30300Y-52300I-800J0D01* G01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GG1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=128* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% D86* X-67126Y-61024D02* X-54921D01* X-61024Y-67126D02* Y-54921D01* X54921Y-61024D02* X67126D01* X61024Y-67126D02* Y-54921D01* X54921Y61024D02* X67126D01* X61024Y54921D02* Y67126D01* X-67126Y61024D02* X-54921D01* X-61024Y54921D02* Y67126D01* X8000Y-24100D02* X9000D01* X8500Y-24600D02* Y-23600D01* X5000Y-24100D02* X6000D01* X5500Y-24600D02* Y-23600D01* X-44800Y26900D02* X-43800D01* X-44300Y26400D02* Y27400D01* X-44600Y31200D02* X-43600D01* X-44100Y30700D02* Y31700D01* X-54200Y30300D02* X-53200D01* X-53700Y29800D02* Y30800D01* X-54300Y23500D02* X-53300D01* X-53800Y23000D02* Y24000D01* X-57500Y23500D02* X-56500D01* X-57000Y23000D02* Y24000D01* X-56800Y12500D02* X-55800D01* X-56300Y12000D02* Y13000D01* X-59500Y17500D02* X-58500D01* X-59000Y17000D02* Y18000D01* X-57100Y26900D02* X-56100D01* X-56600Y26400D02* Y27400D01* X-60400Y40300D02* X-59400D01* X-59900Y39800D02* Y40800D01* X-60500Y36400D02* X-59500D01* X-60000Y35900D02* Y36900D01* X-60400Y32500D02* X-59400D01* X-59900Y32000D02* Y33000D01* X-43200Y-10600D02* X-42200D01* X-42700Y-11100D02* Y-10100D01* X72500Y-4700D02* X73500D01* X73000Y-5200D02* Y-4200D01* X72500Y3500D02* X73500D01* X73000Y3000D02* Y4000D01* X49500Y-7200D02* X50500D01* X50000Y-7700D02* Y-6700D01* X49500Y-4000D02* X50500D01* X50000Y-4500D02* Y-3500D01* X27600Y54000D02* X28600D01* X28100Y53500D02* Y54500D01* X3713Y52100D02* X5287D01* X4500Y51313D02* Y52887D01* X3713Y55100D02* X5287D01* X4500Y54313D02* Y55887D01* X-2500Y-65500D02* X-1500D01* X-2000Y-66000D02* Y-65000D01* X2000Y-47500D02* X3000D01* X2500Y-48000D02* Y-47000D01* X1469Y-62500D02* X2468D01* X1969Y-63000D02* Y-62000D01* X-28500Y-63000D02* X-27500D01* X-28000Y-63500D02* Y-62500D01* X-74000Y-55000D02* X-73000D01* X-73500Y-55500D02* Y-54500D01* X-74000Y-52000D02* X-73000D01* X-73500Y-52500D02* Y-51500D01* X-71866Y-45734D02* X-70866D01* X-71366Y-46234D02* Y-45234D01* X-71300Y-3100D02* X-70300D01* X-70800Y-3600D02* Y-2600D01* X-67100Y-2500D02* X-66100D01* X-66600Y-3000D02* Y-2000D01* X-500Y43500D02* X500D01* X0Y43000D02* Y44000D01* X15300Y300D02* X16300D01* X15800Y-200D02* Y800D01* X-500Y37000D02* X500D01* X0Y36500D02* Y37500D01* X-51500Y-22000D02* X-50500D01* X-51000Y-22500D02* Y-21500D01* X-68000Y100D02* X-67000D01* X-67500Y-400D02* Y600D01* X-62600Y-42600D02* X-61600D01* X-62100Y-43100D02* Y-42100D01* X-78900Y-53500D02* X-77900D01* X-78400Y-54000D02* Y-53000D01* X31213Y16000D02* X32787D01* X32000Y15213D02* Y16787D01* X28213Y16000D02* X29787D01* X29000Y15213D02* Y16787D01* X25213Y16000D02* X26787D01* X26000Y15213D02* Y16787D01* X22213Y16000D02* X23787D01* X23000Y15213D02* Y16787D01* X19213Y16000D02* X20787D01* X20000Y15213D02* Y16787D01* X16213Y16000D02* X17787D01* X17000Y15213D02* Y16787D01* X13213Y16000D02* X14787D01* X14000Y15213D02* Y16787D01* X10213Y16000D02* X11787D01* X11000Y15213D02* Y16787D01* X7213Y16000D02* X8787D01* X8000Y15213D02* Y16787D01* X4213Y16000D02* X5787D01* X5000Y15213D02* Y16787D01* X1213Y16000D02* X2787D01* X2000Y15213D02* Y16787D01* X-1787Y16000D02* X-213D01* X-1000Y15213D02* Y16787D01* X-4787Y16000D02* X-3213D01* X-4000Y15213D02* Y16787D01* X-7787Y16000D02* X-6213D01* X-7000Y15213D02* Y16787D01* X-10787Y16000D02* X-9213D01* X-10000Y15213D02* Y16787D01* X-13787Y16000D02* X-12213D01* X-13000Y15213D02* Y16787D01* X-16787Y16000D02* X-15213D01* X-16000Y15213D02* Y16787D01* X-19787Y16000D02* X-18213D01* X-19000Y15213D02* Y16787D01* X72213Y-15000D02* X73787D01* X73000Y-15787D02* Y-14213D01* X75213Y-15000D02* X76787D01* X76000Y-15787D02* Y-14213D01* X69213Y-15000D02* X70787D01* X70000Y-15787D02* Y-14213D01* X69213Y-12000D02* X70787D01* X70000Y-12787D02* Y-11213D01* X72213Y-12000D02* X73787D01* X73000Y-12787D02* Y-11213D01* X75213Y-12000D02* X76787D01* X76000Y-12787D02* Y-11213D01* X72213Y-18000D02* X73787D01* X73000Y-18787D02* Y-17213D01* X75213Y-18000D02* X76787D01* X76000Y-18787D02* Y-17213D01* X69213Y-18000D02* X70787D01* X70000Y-18787D02* Y-17213D01* X72213Y15000D02* X73787D01* X73000Y14213D02* Y15787D01* X72213Y12000D02* X73787D01* X73000Y11213D02* Y12787D01* X72213Y18000D02* X73787D01* X73000Y17213D02* Y18787D01* X75213Y18000D02* X76787D01* X76000Y17213D02* Y18787D01* X75213Y15000D02* X76787D01* X76000Y14213D02* Y15787D01* X75213Y12000D02* X76787D01* X76000Y11213D02* Y12787D01* X69213Y15000D02* X70787D01* X70000Y14213D02* Y15787D01* X69213Y12000D02* X70787D01* X70000Y11213D02* Y12787D01* X69213Y18000D02* X70787D01* X70000Y17213D02* Y18787D01* X-31287Y63000D02* X-29713D01* X-30500Y62213D02* Y63787D01* X-31287Y60000D02* X-29713D01* X-30500Y59213D02* Y60787D01* X-31287Y66000D02* X-29713D01* X-30500Y65213D02* Y66787D01* X-28287Y66000D02* X-26713D01* X-27500Y65213D02* Y66787D01* X-28287Y63000D02* X-26713D01* X-27500Y62213D02* Y63787D01* X-28287Y60000D02* X-26713D01* X-27500Y59213D02* Y60787D01* X-34287Y63000D02* X-32713D01* X-33500Y62213D02* Y63787D01* X-34287Y60000D02* X-32713D01* X-33500Y59213D02* Y60787D01* X-34287Y66000D02* X-32713D01* X-33500Y65213D02* Y66787D01* X-40287Y63000D02* X-38713D01* X-39500Y62213D02* Y63787D01* X-40287Y60000D02* X-38713D01* X-39500Y59213D02* Y60787D01* X-40287Y66000D02* X-38713D01* X-39500Y65213D02* Y66787D01* X-37287Y66000D02* X-35713D01* X-36500Y65213D02* Y66787D01* X-37287Y63000D02* X-35713D01* X-36500Y62213D02* Y63787D01* X-37287Y60000D02* X-35713D01* X-36500Y59213D02* Y60787D01* X-43287Y63000D02* X-41713D01* X-42500Y62213D02* Y63787D01* X-43287Y60000D02* X-41713D01* X-42500Y59213D02* Y60787D01* X-43287Y66000D02* X-41713D01* X-42500Y65213D02* Y66787D01* X-77500Y13000D02* X-76500D01* X-77000Y12500D02* Y13500D01* X-77500Y24000D02* X-76500D01* X-77000Y23500D02* Y24500D01* X-77500Y30000D02* X-76500D01* X-77000Y29500D02* Y30500D01* X-77500Y36000D02* X-76500D01* X-77000Y35500D02* Y36500D01* X-77500Y-21000D02* X-76500D01* X-77000Y-21500D02* Y-20500D01* X-77500Y-37500D02* X-76500D01* X-77000Y-38000D02* Y-37000D01* X-77500Y-34000D02* X-76500D01* X-77000Y-34500D02* Y-33500D01* X-77500Y-30500D02* X-76500D01* X-77000Y-31000D02* Y-30000D01* X-58000Y5000D02* X-57000D01* X-57500Y4500D02* Y5500D01* X-61000Y3000D02* X-60000D01* X-60500Y2500D02* Y3500D01* X-41500Y2500D02* X-40500D01* X-41000Y2000D02* Y3000D01* X-45500Y5000D02* X-44500D01* X-45000Y4500D02* Y5500D01* X-41500Y5000D02* X-40500D01* X-41000Y4500D02* Y5500D01* X-34000D02* X-33000D01* X-33500Y5000D02* Y6000D01* X-34000Y2000D02* X-33000D01* X-33500Y1500D02* Y2500D01* X-35000Y-59000D02* X-34000D01* X-34500Y-59500D02* Y-58500D01* X-38000Y-59000D02* X-37000D01* X-37500Y-59500D02* Y-58500D01* X26500Y-49500D02* X27500D01* X27000Y-50000D02* Y-49000D01* X32000Y-37500D02* X33000D01* X32500Y-38000D02* Y-37000D01* X32000Y-34500D02* X33000D01* X32500Y-35000D02* Y-34000D01* X32000Y-31500D02* X33000D01* X32500Y-32000D02* Y-31000D01* X32000Y-28500D02* X33000D01* X32500Y-29000D02* Y-28000D01* X32000Y-25500D02* X33000D01* X32500Y-26000D02* Y-25000D01* X32000Y-22500D02* X33000D01* X32500Y-23000D02* Y-22000D01* X32000Y-19500D02* X33000D01* X32500Y-20000D02* Y-19000D01* X32000Y-16500D02* X33000D01* X32500Y-17000D02* Y-16000D01* X15000Y-13000D02* X16000D01* X15500Y-13500D02* Y-12500D01* X17500Y-13000D02* X18500D01* X18000Y-13500D02* Y-12500D01* X20000Y-13000D02* X21000D01* X20500Y-13500D02* Y-12500D01* X22500Y-13000D02* X23500D01* X23000Y-13500D02* Y-12500D01* X25000Y-13000D02* X26000D01* X25500Y-13500D02* Y-12500D01* X25000Y-15500D02* X26000D01* X25500Y-16000D02* Y-15000D01* X22500Y-15500D02* X23500D01* X23000Y-16000D02* Y-15000D01* X-14000Y5500D02* X-13000D01* X-13500Y5000D02* Y6000D01* X-14000Y9500D02* X-13000D01* X-13500Y9000D02* Y10000D01* X-11500Y9500D02* X-10500D01* X-11000Y9000D02* Y10000D01* X-11500Y5500D02* X-10500D01* X-11000Y5000D02* Y6000D01* X-57000Y-42500D02* X-56000D01* X-56500Y-43000D02* Y-42000D01* X-59000Y-41000D02* X-58000D01* X-58500Y-41500D02* Y-40500D01* X-57500Y-37000D02* X-56500D01* X-57000Y-37500D02* Y-36500D01* X-4000Y-38000D02* X-3000D01* X-3500Y-38500D02* Y-37500D01* X-4000Y-35000D02* X-3000D01* X-3500Y-35500D02* Y-34500D01* X-5500Y-23000D02* X-4500D01* X-5000Y-23500D02* Y-22500D01* X-5500Y-20000D02* X-4500D01* X-5000Y-20500D02* Y-19500D01* X8000Y-21000D02* X9000D01* X8500Y-21500D02* Y-20500D01* X5000Y-21000D02* X6000D01* X5500Y-21500D02* Y-20500D01* X16500Y-35000D02* X17500D01* X17000Y-35500D02* Y-34500D01* X16500Y-32500D02* X17500D01* X17000Y-33000D02* Y-32000D01* X-2500Y-41500D02* X-1500D01* X-2000Y-42000D02* Y-41000D01* X-5500Y-41500D02* X-4500D01* X-5000Y-42000D02* Y-41000D01* X-29000Y-43000D02* X-28000D01* X-28500Y-43500D02* Y-42500D01* X-27500Y-40500D02* X-26500D01* X-27000Y-41000D02* Y-40000D01* X-27500Y-38000D02* X-26500D01* X-27000Y-38500D02* Y-37500D01* X-24000Y-38000D02* X-23000D01* X-23500Y-38500D02* Y-37500D01* X-67000Y-15500D02* X-66000D01* X-66500Y-16000D02* Y-15000D01* Y-22000D02* X-65500D01* X-66000Y-22500D02* Y-21500D01* X-56000Y-28000D02* X-55000D01* X-55500Y-28500D02* Y-27500D01* X-56000Y-25500D02* X-55000D01* X-55500Y-26000D02* Y-25000D01* X-56000Y-23000D02* X-55000D01* X-55500Y-23500D02* Y-22500D01* X-38500Y-17000D02* X-37500D01* X-38000Y-17500D02* Y-16500D01* X-41000Y-17000D02* X-40000D01* X-40500Y-17500D02* Y-16500D01* X-35500D02* X-34500D01* X-35000Y-17000D02* Y-16000D01* X-40380Y-21500D02* X-38805D01* X-39592Y-22287D02* Y-20713D01* X-37334Y-21500D02* X-35759D01* X-36546Y-22287D02* Y-20713D01* X-34287Y-21500D02* X-32713D01* X-33500Y-22287D02* Y-20713D01* X-34287Y-24500D02* X-32713D01* X-33500Y-25287D02* Y-23713D01* X-37334Y-24500D02* X-35759D01* X-36546Y-25287D02* Y-23713D01* X-40380Y-24566D02* X-38805D01* X-39592Y-25354D02* Y-23779D01* X-40380Y-27500D02* X-38805D01* X-39592Y-28287D02* Y-26713D01* X-37334Y-27500D02* X-35759D01* X-36546Y-28287D02* Y-26713D01* X-34287Y-27500D02* X-32713D01* X-33500Y-28287D02* Y-26713D01* X-54800Y-41000D02* X-53800D01* X-54300Y-41500D02* Y-40500D01* X-52600Y-42400D02* X-51600D01* X-52100Y-42900D02* Y-41900D01* X-20287Y41000D02* X-18713D01* X-19500Y40213D02* Y41787D01* X-20287Y38000D02* X-18713D01* X-19500Y37213D02* Y38787D01* X-20287Y44000D02* X-18713D01* X-19500Y43213D02* Y44787D01* X10300Y7500D02* X11300D01* X10800Y7000D02* Y8000D01* X-11900Y-7500D02* X-10900D01* X-11400Y-8000D02* Y-7000D01* X-18800Y-4200D02* X-17800D01* X-18300Y-4700D02* Y-3700D01* X-32300Y-12300D02* X-31300D01* X-31800Y-12800D02* Y-11800D01* X-11100Y2500D02* X-10100D01* X-10600Y2000D02* Y3000D01* X-51900Y-14500D02* X-50900D01* X-51400Y-15000D02* Y-14000D01* X32313Y44400D02* X33887D01* X33100Y43613D02* Y45187D01* X32313Y41400D02* X33887D01* X33100Y40613D02* Y42187D01* X32313Y38400D02* X33887D01* X33100Y37613D02* Y39187D01* X32313Y35400D02* X33887D01* X33100Y34613D02* Y36187D01* X32313Y32400D02* X33887D01* X33100Y31613D02* Y33187D01* X32313Y29400D02* X33887D01* X33100Y28613D02* Y30187D01* X-34987Y52000D02* X-33413D01* X-34200Y51213D02* Y52787D01* X-34987Y49000D02* X-33413D01* X-34200Y48213D02* Y49787D01* X-34987Y46000D02* X-33413D01* X-34200Y45213D02* Y46787D01* X-34987Y43000D02* X-33413D01* X-34200Y42213D02* Y43787D01* X-34987Y40000D02* X-33413D01* X-34200Y39213D02* Y40787D01* X-34987Y37000D02* X-33413D01* X-34200Y36213D02* Y37787D01* X18513Y44700D02* X20087D01* X19300Y43913D02* Y45487D01* X18513Y41700D02* X20087D01* X19300Y40913D02* Y42487D01* X18513Y38700D02* X20087D01* X19300Y37913D02* Y39487D01* X3513Y45100D02* X5087D01* X4300Y44313D02* Y45887D01* X3513Y42100D02* X5087D01* X4300Y41313D02* Y42887D01* X3513Y39100D02* X5087D01* X4300Y38313D02* Y39887D01* X-4987Y45100D02* X-3413D01* X-4200Y44313D02* Y45887D01* X-4987Y42100D02* X-3413D01* X-4200Y41313D02* Y42887D01* X-4987Y39100D02* X-3413D01* X-4200Y38313D02* Y39887D01* X11213Y43000D02* X12787D01* X12000Y42213D02* Y43787D01* X8213Y43000D02* X9787D01* X9000Y42213D02* Y43787D01* X14213Y43000D02* X15787D01* X15000Y42213D02* Y43787D01* X14213Y40000D02* X15787D01* X15000Y39213D02* Y40787D01* X11213Y40000D02* X12787D01* X12000Y39213D02* Y40787D01* X8213Y40000D02* X9787D01* X9000Y39213D02* Y40787D01* X11213Y46000D02* X12787D01* X12000Y45213D02* Y46787D01* X8213Y46000D02* X9787D01* X9000Y45213D02* Y46787D01* X14213Y46000D02* X15787D01* X15000Y45213D02* Y46787D01* X-9787Y46000D02* X-8213D01* X-9000Y45213D02* Y46787D01* X-15787Y46000D02* X-14213D01* X-15000Y45213D02* Y46787D01* X-12787Y46000D02* X-11213D01* X-12000Y45213D02* Y46787D01* X-15787Y40000D02* X-14213D01* X-15000Y39213D02* Y40787D01* X-12787Y40000D02* X-11213D01* X-12000Y39213D02* Y40787D01* X-9787Y40000D02* X-8213D01* X-9000Y39213D02* Y40787D01* X-9787Y43000D02* X-8213D01* X-9000Y42213D02* Y43787D01* X-15787Y43000D02* X-14213D01* X-15000Y42213D02* Y43787D01* X-12787Y43000D02* X-11213D01* X-12000Y42213D02* Y43787D01* X713Y52100D02* X2287D01* X1500Y51313D02* Y52887D01* X713Y55100D02* X2287D01* X1500Y54313D02* Y55887D01* X-23287Y52100D02* X-21713D01* X-22500Y51313D02* Y52887D01* X-20287Y52100D02* X-18713D01* X-19500Y51313D02* Y52887D01* X-23287Y55100D02* X-21713D01* X-22500Y54313D02* Y55887D01* X-20287Y55100D02* X-18713D01* X-19500Y54313D02* Y55887D01* X31600Y53700D02* X32600D01* X32100Y53200D02* Y54200D01* X28800Y-4100D02* X29800D01* X29300Y-4600D02* Y-3600D01* X28800Y-7200D02* X29800D01* X29300Y-7700D02* Y-6700D01* X-35800Y-8400D02* X-34800D01* X-35300Y-8900D02* Y-7900D01* X19300Y-22100D02* X20300D01* X19800Y-22600D02* Y-21600D01* X21953Y-21500D02* X22953D01* X22454Y-22000D02* Y-21000D01* X8000Y-51100D02* X9000D01* X8500Y-51600D02* Y-50600D01* X-13000Y-45800D02* X-12000D01* X-12500Y-46300D02* Y-45300D01* X-11300Y-44100D02* X-10300D01* X-10800Y-44600D02* Y-43600D01* X-12000Y-31900D02* X-11000D01* X-11500Y-32400D02* Y-31400D01* X-52000Y-31600D02* X-51000D01* X-51500Y-32100D02* Y-31100D01* X-52400Y-11100D02* X-51400D01* X-51900Y-11600D02* Y-10600D01* X28000Y-21200D02* X29000D01* X28500Y-21700D02* Y-20700D01* X28000Y-18700D02* X29000D01* X28500Y-19200D02* Y-18200D01* X28000Y-16400D02* X29000D01* X28500Y-16900D02* Y-15900D01* X-200Y-38700D02* X800D01* X300Y-39200D02* Y-38200D01* X-200Y-36200D02* X800D01* X300Y-36700D02* Y-35700D01* X-260Y-33540D02* X740D01* X240Y-34040D02* Y-33040D01* X17500Y-16300D02* X18500D01* X18000Y-16800D02* Y-15800D01* X15300Y-16300D02* X16300D01* X15800Y-16800D02* Y-15800D01* X19400Y-17400D02* X20400D01* X19900Y-17900D02* Y-16900D01* X42213Y-67000D02* X43787D01* X43000Y-67787D02* Y-66213D01* X39213Y-67000D02* X40787D01* X40000Y-67787D02* Y-66213D01* X45213Y-67000D02* X46787D01* X46000Y-67787D02* Y-66213D01* X42213Y-70000D02* X43787D01* X43000Y-70787D02* Y-69213D01* X39213Y-70000D02* X40787D01* X40000Y-70787D02* Y-69213D01* X45213Y-70000D02* X46787D01* X46000Y-70787D02* Y-69213D01* X42213Y-73000D02* X43787D01* X43000Y-73787D02* Y-72213D01* X39213Y-73000D02* X40787D01* X40000Y-73787D02* Y-72213D01* X45213Y-73000D02* X46787D01* X46000Y-73787D02* Y-72213D01* X33213Y-78500D02* X34787D01* X34000Y-79287D02* Y-77713D01* X30213Y-78500D02* X31787D01* X31000Y-79287D02* Y-77713D01* X36213Y-78500D02* X37787D01* X37000Y-79287D02* Y-77713D01* X24213Y-78500D02* X25787D01* X25000Y-79287D02* Y-77713D01* X21213Y-78500D02* X22787D01* X22000Y-79287D02* Y-77713D01* X27213Y-78500D02* X28787D01* X28000Y-79287D02* Y-77713D01* X18213Y-75500D02* X19787D01* X19000Y-76287D02* Y-74713D01* X18213Y-78500D02* X19787D01* X19000Y-79287D02* Y-77713D01* X-14787Y-72000D02* X-13213D01* X-14000Y-72787D02* Y-71213D01* X-20787Y-72000D02* X-19213D01* X-20000Y-72787D02* Y-71213D01* X-17787Y-72000D02* X-16213D01* X-17000Y-72787D02* Y-71213D01* X-14787Y-69000D02* X-13213D01* X-14000Y-69787D02* Y-68213D01* X-20787Y-69000D02* X-19213D01* X-20000Y-69787D02* Y-68213D01* X-17787Y-69000D02* X-16213D01* X-17000Y-69787D02* Y-68213D01* X-14787Y-66000D02* X-13213D01* X-14000Y-66787D02* Y-65213D01* X-20787Y-66000D02* X-19213D01* X-20000Y-66787D02* Y-65213D01* X-17787Y-66000D02* X-16213D01* X-17000Y-66787D02* Y-65213D01* X-40200Y-41600D02* X-39200D01* X-39700Y-42100D02* Y-41100D01* X-38200Y-43700D02* X-37200D01* X-37700Y-44200D02* Y-43200D01* X23500Y-57500D02* X24500D01* X24000Y-58000D02* Y-57000D01* X26800Y-52900D02* X27800D01* X27300Y-53400D02* Y-52400D01* X-56800Y-13100D02* X-55800D01* X-56300Y-13600D02* Y-12600D01* X-23000Y-19300D02* X-22000D01* X-22500Y-19800D02* Y-18800D01* X-41047Y-33553D02* X-40047D01* X-40547Y-34053D02* Y-33053D01* X-37100Y-33400D02* X-36100D01* X-36600Y-33900D02* Y-32900D01* X-35120Y-41200D02* X-34121D01* X-34620Y-41700D02* Y-40700D01* X-39100Y-31800D02* X-38100D01* X-38600Y-32300D02* Y-31300D01* X-50900Y4800D02* X-49900D01* X-50400Y4300D02* Y5300D01* X-54800Y4800D02* X-53800D01* X-54300Y4300D02* Y5300D01* X-52858Y658D02* X-51858D01* X-52358Y158D02* Y1158D01* X-57000Y700D02* X-56000D01* X-56500Y200D02* Y1200D01* X14000Y31000D02* X15000D01* X14500Y30500D02* Y31500D01* X9000Y31000D02* X10000D01* X9500Y30500D02* Y31500D01* X-10000Y31000D02* X-9000D01* X-9500Y30500D02* Y31500D01* X-15000Y31000D02* X-14000D01* X-14500Y30500D02* Y31500D01* X-56284Y-19016D02* X-55284D01* X-55784Y-19516D02* Y-18516D01* X29000Y-52300D02* X30000D01* X29500Y-52800D02* Y-51800D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GKO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% D10* X-68172Y78711D02* G03* X-78711Y68172I32739J-43278D01* G01* X68172Y-78711D02* G03* X78711Y-68172I-32739J43278D01* G01* X-61046Y81102D02* G03* X-68172Y78711I0J-11811D01* G01* X61046Y-81102D02* G03* X68172Y-78711I0J11811D01* G01* X68172Y78711D02* G03* X61046Y81102I-7126J-9419D01* G01* X-68172Y-78711D02* G03* X-61046Y-81102I7126J9419D01* G01* X-78711Y-68172D02* G03* X-68172Y-78711I43278J32739D01* G01* X78711Y68172D02* G03* X68172Y78711I-43278J-32739D01* G01* X-81102Y-61046D02* G03* X-78711Y-68172I11811J0D01* G01* X81102Y61046D02* G03* X78711Y68172I-11811J0D01* G01* X-78711Y68172D02* G03* X-81102Y61046I9419J-7126D01* G01* X78711Y-68172D02* G03* X81102Y-61046I-9419J7126D01* G01* X-80891Y-60949D02* Y61144D01* X-60835Y-81005D02* X61258D01* X81314Y-60949D02* Y61144D01* X-61046Y81102D02* X61046D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% D10* X-80891Y-60949D02* G03* X-78499Y-68075I11811J0D01* G01* X-78499Y-68074D02* G03* X-67960Y-78613I43278J32739D01* G01* X-67960Y-78613D02* G03* X-60835Y-81005I7126J9419D01* G01* X61258Y-81005D02* G03* X68384Y-78613I0J11811D01* G01* X68384Y-78613D02* G03* X78922Y-68075I-32739J43278D01* G01* X78922Y-68075D02* G03* X81314Y-60949I-9419J7126D01* G01* X81314Y61144D02* G03* X78922Y68270I-11811J0D01* G01* X78922Y68270D02* G03* X68384Y78808I-43278J-32739D01* G01* X68384Y78808D02* G03* X61258Y81200I-7126J-9419D01* G01* X-60835Y81200D02* G03* X-67960Y78808I0J-11811D01* G01* X-67960Y78808D02* G03* X-78499Y68270I32739J-43278D01* G01* X-78499Y68270D02* G03* X-80891Y61144I9419J-7126D01* G01* X-60835Y81200D02* X61258D01* X81314Y-60949D02* Y61144D01* X-60835Y-81005D02* X61258D01* X-80891Y-60949D02* Y61144D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM10 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% D13* X-29740Y50398D02* X-22260D01* Y35602D02* Y50398D01* X-29740Y35602D02* X-22260D01* X-29740D02* Y50398D01* X22260Y35602D02* Y50398D01* Y35602D02* X29740D01* Y50398D01* X22260D02* X29740D01* X-39291Y-17850D02* X-10709D01* Y-34150D02* Y-17850D01* X-39291Y-34150D02* X-10709D01* X-39291D02* Y-17850D01* X19988Y-25437D02* Y-17563D01* Y-25437D02* X31012D01* Y-17563D01* X19988D02* X31012D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM12 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% D13* X-29051Y49102D02* X-22949D01* Y36898D02* Y49102D01* X-29051Y36898D02* X-22949D01* X-29051D02* Y49102D01* X22949Y36898D02* Y49102D01* Y36898D02* X29051D01* Y49102D01* X22949D02* X29051D01* X-34350Y-18244D02* X-15650D01* Y-33756D02* Y-18244D01* X-34350Y-33756D02* X-15650D01* X-34350D02* Y-18244D01* X21169Y-25043D02* Y-17957D01* Y-25043D02* X29831D01* Y-17957D01* X21169D02* X29831D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM13 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD85C,0.00394*% %ADD86C,0.00200*% D85* X-9862Y-56299D02* G03* X-9862Y-56299I-1969J0D01* G01* X-51768Y-30236D02* G03* X-51768Y-30236I-1969J0D01* G01* X6299Y6299D02* G03* X6299Y6299I-1969J0D01* G01* X-50402Y17657D02* X-38198D01* X-50402Y24743D02* X-38198D01* X-50402Y17657D02* Y24743D01* X-38198Y17657D02* Y24743D01* X-21843Y35126D02* X-2158D01* X-21843Y50874D02* X-2158D01* Y35126D02* Y50874D01* X-21843Y35126D02* Y50874D01* X-9602Y-34543D02* Y-27457D01* X2602Y-34543D02* Y-27457D01* X-9602D02* X2602D01* X-9602Y-34543D02* X2602D01* X10398Y-31543D02* Y-24457D01* X22602D01* X10398Y-31543D02* X22602D01* Y-24457D01* X-15374Y-59842D02* Y-40157D01* X374Y-59842D02* Y-40157D01* X-15374Y-59842D02* X374D01* X-15374Y-40157D02* X374D01* X2158Y35126D02* Y50874D01* X21843Y35126D02* Y50874D01* X2158D02* X21843D01* X2158Y35126D02* X21843D01* X-57279Y-33779D02* Y-6221D01* X-29721Y-33779D02* Y-6221D01* X-57279Y-33779D02* X-29721D01* X-57279Y-6221D02* X-29721D01* X7874Y-9843D02* Y9843D01* X-7874Y-9843D02* Y9843D01* X7874D01* X-7874Y-9843D02* X7874D01* D86* X-54000Y17100D02* Y18300D01* X-54600Y17700D02* X-53400D01* X-54984Y15732D02* Y19669D01* X-53016Y15732D02* Y19669D01* X-54984Y15732D02* X-53016D01* X-54984Y19669D02* X-53016D01* X-68100Y-2500D02* X-66900D01* X-67500Y-3100D02* Y-1900D01* X-69468Y-1516D02* X-65531D01* X-69468Y-3484D02* X-65531D01* Y-3484D02* Y-1516D01* X-69468Y-3484D02* Y-1516D01* X-0Y39400D02* Y40600D01* X-600Y40000D02* X600D01* X984Y38032D02* Y41969D01* X-984Y38032D02* Y41969D01* X-984Y38032D02* X984D01* X-984Y41969D02* X984D01* X-0Y46400D02* Y47600D01* X-600Y47000D02* X600D01* X984Y45031D02* Y48968D01* X-984Y45031D02* Y48968D01* X-984Y45031D02* X984D01* X-984Y48968D02* X984D01* X-13032Y-28984D02* Y-27016D01* X-16969Y-28984D02* Y-27016D01* Y-27016D02* X-13032D01* X-16969Y-28984D02* X-13032D01* X-15000Y-28600D02* Y-27400D01* X-15600Y-28000D02* X-14400D01* X-25500Y-37100D02* Y-35900D01* X-26100Y-36500D02* X-24900D01* X-26484Y-38469D02* Y-34532D01* X-24516Y-38469D02* Y-34532D01* X-26484D02* X-24516D01* X-26484Y-38469D02* X-24516D01* X-68100Y-13000D02* X-66900D01* X-67500Y-13600D02* Y-12400D01* X-69468Y-12016D02* X-65531D01* X-69468Y-13984D02* X-65531D01* Y-13984D02* Y-12016D01* X-69468Y-13984D02* Y-12016D01* X-62000Y-37100D02* Y-35900D01* X-62600Y-36500D02* X-61400D01* X-62984Y-38469D02* Y-34532D01* X-61016Y-38469D02* Y-34532D01* X-62984D02* X-61016D01* X-62984Y-38469D02* X-61016D01* X-12968Y26016D02* Y27984D01* X-9031Y26016D02* Y27984D01* X-12968Y26016D02* X-9031D01* X-12968Y27984D02* X-9031D01* X-11000Y26400D02* Y27600D01* X-11600Y27000D02* X-10400D01* X-26969Y26016D02* Y27984D01* X-23031Y26016D02* Y27984D01* X-26969Y26016D02* X-23031D01* X-26969Y27984D02* X-23031D01* X-25000Y26400D02* Y27600D01* X-25600Y27000D02* X-24400D01* X16032Y26016D02* Y27984D01* X19969Y26016D02* Y27984D01* X16032Y26016D02* X19969D01* X16032Y27984D02* X19969D01* X18000Y26400D02* Y27600D01* X17400Y27000D02* X18600D01* X2032Y26016D02* Y27984D01* X5968Y26016D02* Y27984D01* X2032Y26016D02* X5968D01* X2032Y27984D02* X5968D01* X4000Y26400D02* Y27600D01* X3400Y27000D02* X4600D01* X-4600Y27000D02* X-3400D01* X-4000Y26400D02* Y27600D01* X-5968Y26016D02* X-2032D01* X-5968Y27984D02* X-2032D01* X-5968Y26016D02* Y27984D01* X-2032Y26016D02* Y27984D01* X-18600Y27000D02* X-17400D01* X-18000Y26400D02* Y27600D01* X-19969Y26016D02* X-16032D01* X-19969Y27984D02* X-16032D01* X-19969Y26016D02* Y27984D01* X-16032Y26016D02* Y27984D01* X24400Y27000D02* X25600D01* X25000Y26400D02* Y27600D01* X23031Y26016D02* X26969D01* X23031Y27984D02* X26969D01* X23031Y26016D02* Y27984D01* X26969Y26016D02* Y27984D01* X10400Y27000D02* X11600D01* X11000Y26400D02* Y27600D01* X9031Y27984D02* X12968D01* X9031Y26016D02* X12968D01* Y26016D02* Y27984D01* X9031Y26016D02* Y27984D01* X67094Y-22874D02* X78905D01* X67094D02* Y-7126D01* X78905Y-22873D02* Y-7125D01* X67094D02* X78905D01* X67094Y22874D02* X78905D01* Y7126D02* Y22874D01* X67095Y7125D02* Y22873D01* Y7125D02* X78906D01* X-16969Y-25484D02* Y-23516D01* X-13032Y-25484D02* Y-23516D01* X-16969Y-25484D02* X-13032D01* X-16969Y-23516D02* X-13032D01* X-15000Y-25100D02* Y-23900D01* X-15600Y-24500D02* X-14400D01* X-65531Y-32484D02* Y-30516D01* X-69468Y-32484D02* Y-30516D01* Y-30516D02* X-65531D01* X-69468Y-32484D02* X-65531D01* X-67500Y-32100D02* Y-30900D01* X-68100Y-31500D02* X-66900D01* X5500Y-20600D02* Y-19400D01* X4900Y-20000D02* X6100D01* X4516Y-21969D02* Y-18032D01* X6484Y-21969D02* Y-18032D01* X4516D02* X6484D01* X4516Y-21969D02* X6484D01* X9000Y-20600D02* Y-19400D01* X8400Y-20000D02* X9600D01* X8016Y-21969D02* Y-18032D01* X9984Y-21969D02* Y-18032D01* X8016D02* X9984D01* X8016Y-21969D02* X9984D01* X-15600Y-21000D02* X-14400D01* X-15000Y-21600D02* Y-20400D01* X-16969Y-21984D02* X-13032D01* X-16969Y-20016D02* X-13032D01* X-16969Y-21984D02* Y-20016D01* X-13032Y-21984D02* Y-20016D01* X-65531Y-39484D02* Y-37516D01* X-69468Y-39484D02* Y-37516D01* Y-37516D02* X-65531D01* X-69468Y-39484D02* X-65531D01* X-67500Y-39100D02* Y-37900D01* X-68100Y-38500D02* X-66900D01* X21400Y-38000D02* X22600D01* X22000Y-38600D02* Y-37400D01* X20031Y-37016D02* X23968D01* X20031Y-38984D02* X23968D01* Y-38984D02* Y-37016D01* X20031Y-38984D02* Y-37016D01* Y-57484D02* Y-55516D01* X23968Y-57484D02* Y-55516D01* X20031Y-57484D02* X23968D01* X20031Y-55516D02* X23968D01* X22000Y-57100D02* Y-55900D01* X21400Y-56500D02* X22600D01* X-68100Y-35000D02* X-66900D01* X-67500Y-35600D02* Y-34400D01* X-69468Y-34016D02* X-65531D01* X-69468Y-35984D02* X-65531D01* Y-35984D02* Y-34016D01* X-69468Y-35984D02* Y-34016D01* X-600Y-17500D02* X600D01* X0Y-18100D02* Y-16900D01* X-1969Y-18484D02* X1969D01* X-1969Y-16516D02* X1969D01* X-1969Y-18484D02* Y-16516D01* X1969Y-18484D02* Y-16516D01* X-600Y-21000D02* X600D01* X0Y-21600D02* Y-20400D01* X-1969Y-21984D02* X1969D01* X-1969Y-20016D02* X1969D01* X-1969Y-21984D02* Y-20016D01* X1969Y-21984D02* Y-20016D01* X-8100Y-21000D02* X-6900D01* X-7500Y-21600D02* Y-20400D01* X-9469Y-21984D02* X-5531D01* X-9469Y-20016D02* X-5531D01* X-9469Y-21984D02* Y-20016D01* X-5531Y-21984D02* Y-20016D01* X5500Y-28600D02* Y-27400D01* X4900Y-28000D02* X6100D01* X6484Y-29969D02* Y-26032D01* X4516Y-29969D02* Y-26032D01* X4516Y-29969D02* X6484D01* X4516Y-26032D02* X6484D01* X9000Y-28600D02* Y-27400D01* X8400Y-28000D02* X9600D01* X9984Y-29969D02* Y-26032D01* X8016Y-29969D02* Y-26032D01* X8016Y-29969D02* X9984D01* X8016Y-26032D02* X9984D01* X24000Y-24600D02* Y-23400D01* X23400Y-24000D02* X24600D01* X24984Y-25969D02* Y-22031D01* X23016Y-25969D02* Y-22031D01* X23016Y-25969D02* X24984D01* X23016Y-22031D02* X24984D01* X24000Y-33100D02* Y-31900D01* X23400Y-32500D02* X24600D01* X24984Y-34468D02* Y-30531D01* X23016Y-34468D02* Y-30531D01* X23016Y-34468D02* X24984D01* X23016Y-30531D02* X24984D01* X21400Y-18500D02* X22600D01* X22000Y-19100D02* Y-17900D01* X20031Y-19484D02* X23968D01* X20031Y-17516D02* X23968D01* X20031Y-19484D02* Y-17516D01* X23968Y-19484D02* Y-17516D01* X16468Y-19484D02* Y-17516D01* X12531Y-19484D02* Y-17516D01* Y-17516D02* X16468D01* X12531Y-19484D02* X16468D01* X14500Y-19100D02* Y-17900D01* X13900Y-18500D02* X15100D01* X8016Y-37969D02* X9984D01* X8016Y-34032D02* X9984D01* X9984Y-37969D02* Y-34032D01* X8016Y-37969D02* Y-34032D01* X8400Y-36000D02* X9600D01* X9000Y-36600D02* Y-35400D01* X5500Y-36600D02* Y-35400D01* X4900Y-36000D02* X6100D01* X6484Y-37969D02* Y-34032D01* X4516Y-37969D02* Y-34032D01* X4516Y-37969D02* X6484D01* X4516Y-34032D02* X6484D01* X16468Y-38984D02* Y-37016D01* X12531Y-38984D02* Y-37016D01* Y-37016D02* X16468D01* X12531Y-38984D02* X16468D01* X14500Y-38600D02* Y-37400D01* X13900Y-38000D02* X15100D01* X-29961Y-60437D02* X-25039D01* X-29961Y-52563D02* X-25039D01* X-29961Y-60437D02* Y-52563D01* X-25039Y-60437D02* Y-52563D01* X-27500Y-57500D02* Y-55500D01* X-28500Y-56500D02* X-26500D01* X-18999Y-46001D02* X-16999D01* X-17999Y-47001D02* Y-45001D01* X-23314Y-55844D02* Y-36159D01* Y-55844D02* X-12684D01* X-23314Y-36159D02* X-12684D01* Y-55844D02* Y-36159D01* X-43500Y-21000D02* Y-19000D01* X-44500Y-20000D02* X-42500D01* X-36461Y-60437D02* X-31539D01* X-36461Y-52563D02* X-31539D01* X-36461Y-60437D02* Y-52563D01* X-31539Y-60437D02* Y-52563D01* X-34000Y-57500D02* Y-55500D01* X-35000Y-56500D02* X-33000D01* X-36461Y-38063D02* X-31539D01* X-36461Y-45937D02* X-31539D01* Y-38063D01* X-36461Y-45937D02* Y-38063D01* X-34000Y-43000D02* Y-41000D01* X-35000Y-42000D02* X-33000D01* X-29961Y-38063D02* X-25039D01* X-29961Y-45937D02* X-25039D01* Y-38063D01* X-29961Y-45937D02* Y-38063D01* X-27500Y-43000D02* Y-41000D01* X-28500Y-42000D02* X-26500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM14 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% G36* X-15200Y-45342D02* X-16106D01* Y-43955D01* X-19594D01* X-18937Y-45166D01* X-19770Y-45499D01* X-20676Y-43769D01* Y-42909D01* X-16106D01* Y-41716D01* X-15200D01* Y-45342D01* D02* G37* G36* X-17762Y-46202D02* X-17605Y-46211D01* X-17429Y-46230D01* X-17235Y-46258D01* X-17031Y-46295D01* X-16837Y-46350D01* X-16828D01* X-16819Y-46360D01* X-16791Y-46369D01* X-16754Y-46378D01* X-16652Y-46415D01* X-16532Y-46470D01* X-16393Y-46535D01* X-16245Y-46619D01* X-16097Y-46720D01* X-15949Y-46841D01* X-15931Y-46859D01* X-15894Y-46896D01* X-15829Y-46970D01* X-15746Y-47072D01* X-15653Y-47192D01* X-15561Y-47340D01* X-15477Y-47506D01* X-15394Y-47692D01* Y-47701D01* X-15385Y-47710D01* X-15376Y-47747D01* X-15367Y-47784D01* X-15348Y-47830D01* X-15329Y-47886D01* X-15311Y-47960D01* X-15302Y-48034D01* X-15265Y-48219D01* X-15228Y-48422D01* X-15209Y-48663D01* X-15200Y-48922D01* Y-50300D01* X-20639D01* Y-48533D01* X-20630Y-48469D01* X-20620Y-48320D01* X-20602Y-48154D01* X-20574Y-47969D01* X-20537Y-47784D01* X-20482Y-47608D01* Y-47599D01* X-20472Y-47590D01* X-20454Y-47525D01* X-20417Y-47442D01* X-20361Y-47331D01* X-20297Y-47210D01* X-20213Y-47081D01* X-20112Y-46942D01* X-20001Y-46822D01* X-19982Y-46804D01* X-19945Y-46766D01* X-19871Y-46711D01* X-19779Y-46646D01* X-19658Y-46572D01* X-19520Y-46489D01* X-19353Y-46415D01* X-19177Y-46350D01* X-19168D01* X-19159Y-46341D01* X-19131Y-46332D01* X-19085Y-46323D01* X-19039Y-46313D01* X-18983Y-46304D01* X-18845Y-46267D01* X-18669Y-46239D01* X-18465Y-46221D01* X-18234Y-46202D01* X-17984Y-46193D01* X-17975D01* X-17956D01* X-17920D01* X-17883D01* X-17827D01* X-17762Y-46202D01* D02* G37* %LPC*% G36* X-17744Y-47294D02* X-17920D01* X-17929D01* X-17938D01* X-17993D01* X-18077D01* X-18179Y-47303D01* X-18299Y-47312D01* X-18428Y-47322D01* X-18697Y-47368D01* X-18715D01* X-18752Y-47377D01* X-18817Y-47396D01* X-18900Y-47423D01* X-18993Y-47460D01* X-19094Y-47497D01* X-19196Y-47553D01* X-19288Y-47608D01* X-19298Y-47618D01* X-19326Y-47636D01* X-19372Y-47673D01* X-19427Y-47728D01* X-19483Y-47793D01* X-19538Y-47867D01* X-19603Y-47960D01* X-19649Y-48061D01* X-19658Y-48071D01* X-19668Y-48108D01* X-19686Y-48173D01* X-19714Y-48256D01* X-19742Y-48348D01* X-19760Y-48469D01* X-19770Y-48607D01* X-19779Y-48755D01* Y-49273D01* X-16060D01* Y-48755D01* X-16070Y-48709D01* Y-48644D01* X-16088Y-48570D01* X-16116Y-48404D01* X-16171Y-48219D01* X-16245Y-48034D01* X-16356Y-47849D01* X-16430Y-47765D01* X-16504Y-47692D01* X-16513Y-47682D01* X-16523Y-47673D01* X-16551Y-47655D01* X-16588Y-47627D01* X-16643Y-47599D01* X-16699Y-47562D01* X-16772Y-47525D01* X-16856Y-47488D01* X-16948Y-47451D01* X-17050Y-47423D01* X-17161Y-47386D01* X-17290Y-47359D01* X-17429Y-47331D01* X-17586Y-47312D01* X-17744Y-47294D01* D02* G37* %LPD*% D86* X-52300Y14200D02* Y21200D01* X-55700Y14200D02* X-52300D01* X-55700Y21200D02* X-52300D01* X-55700Y14200D02* Y21200D01* X-71000Y-800D02* X-64000D01* X-71000Y-4200D02* Y-800D01* X-64000Y-4200D02* Y-800D01* X-71000Y-4200D02* X-64000D01* X-1700Y36500D02* Y43500D01* Y36500D02* X1700D01* X-1700Y43500D02* X1700D01* Y36500D02* Y43500D01* X-1700D02* Y50500D01* Y43500D02* X1700D01* X-1700Y50500D02* X1700D01* Y43500D02* Y50500D01* X-18500Y-29700D02* X-11500D01* Y-26300D01* X-18500Y-29700D02* Y-26300D01* X-11500D01* X-27200Y-40000D02* Y-33000D01* Y-40000D02* X-23800D01* X-27200Y-33000D02* X-23800D01* Y-40000D02* Y-33000D01* X-71000Y-11300D02* X-64000D01* X-71000Y-14700D02* Y-11300D01* X-64000Y-14700D02* Y-11300D01* X-71000Y-14700D02* X-64000D01* X-63700Y-40000D02* Y-33000D01* Y-40000D02* X-60300D01* X-63700Y-33000D02* X-60300D01* Y-40000D02* Y-33000D01* X-14500Y28700D02* X-7500D01* X-14500Y25300D02* Y28700D01* X-7500Y25300D02* Y28700D01* X-14500Y25300D02* X-7500D01* X-28500Y28700D02* X-21500D01* X-28500Y25300D02* Y28700D01* X-21500Y25300D02* Y28700D01* X-28500Y25300D02* X-21500D01* X14500Y28700D02* X21500D01* X14500Y25300D02* Y28700D01* X21500Y25300D02* Y28700D01* X14500Y25300D02* X21500D01* X500Y28700D02* X7500D01* X500Y25300D02* Y28700D01* X7500Y25300D02* Y28700D01* X500Y25300D02* X7500D01* X-7500D02* X-500D01* Y28700D01* X-7500Y25300D02* Y28700D01* X-500D01* X-21500Y25300D02* X-14500D01* Y28700D01* X-21500Y25300D02* Y28700D01* X-14500D01* X21500Y25300D02* X28500D01* Y28700D01* X21500Y25300D02* Y28700D01* X28500D01* X7500D02* X14500D01* X7500Y25300D02* Y28700D01* X14500Y25300D02* Y28700D01* X7500Y25300D02* X14500D01* X66500Y-25500D02* Y-4500D01* X79500D01* X66500Y-25500D02* X79500D01* Y-4500D01* Y4500D02* Y25500D01* X66500Y4500D02* X79500D01* X66500Y25500D02* X79500D01* X66500Y4500D02* Y25500D01* X-18500Y-22800D02* X-11500D01* X-18500Y-26200D02* Y-22800D01* X-11500Y-26200D02* Y-22800D01* X-18500Y-26200D02* X-11500D01* X-71000Y-33200D02* X-64000D01* Y-29800D01* X-71000Y-33200D02* Y-29800D01* X-64000D01* X3800Y-23500D02* Y-16500D01* Y-23500D02* X7200D01* X3800Y-16500D02* X7200D01* Y-23500D02* Y-16500D01* X7300Y-23500D02* Y-16500D01* Y-23500D02* X10700D01* X7300Y-16500D02* X10700D01* Y-23500D02* Y-16500D01* X-18500Y-22700D02* X-11500D01* Y-19300D01* X-18500Y-22700D02* Y-19300D01* X-11500D01* X-71000Y-40200D02* X-64000D01* Y-36800D01* X-71000Y-40200D02* Y-36800D01* X-64000D01* X18500Y-36300D02* X25500D01* X18500Y-39700D02* Y-36300D01* X25500Y-39700D02* Y-36300D01* X18500Y-39700D02* X25500D01* X18500Y-54800D02* X25500D01* X18500Y-58200D02* Y-54800D01* X25500Y-58200D02* Y-54800D01* X18500Y-58200D02* X25500D01* X-71000Y-33300D02* X-64000D01* X-71000Y-36700D02* Y-33300D01* X-64000Y-36700D02* Y-33300D01* X-71000Y-36700D02* X-64000D01* X-3500Y-19200D02* X3500D01* Y-15800D01* X-3500Y-19200D02* Y-15800D01* X3500D01* X-3500Y-22700D02* X3500D01* Y-19300D01* X-3500Y-22700D02* Y-19300D01* X3500D01* X-11000Y-22700D02* X-4000D01* Y-19300D01* X-11000Y-22700D02* Y-19300D01* X-4000D01* X7200Y-31500D02* Y-24500D01* X3800D02* X7200D01* X3800Y-31500D02* X7200D01* X3800D02* Y-24500D01* X10700Y-31500D02* Y-24500D01* X7300D02* X10700D01* X7300Y-31500D02* X10700D01* X7300D02* Y-24500D01* X25700Y-27500D02* Y-20500D01* X22300D02* X25700D01* X22300Y-27500D02* X25700D01* X22300D02* Y-20500D01* X25700Y-36000D02* Y-29000D01* X22300D02* X25700D01* X22300Y-36000D02* X25700D01* X22300D02* Y-29000D01* X18500Y-20200D02* X25500D01* Y-16800D01* X18500Y-20200D02* Y-16800D01* X25500D01* X11000Y-20200D02* X18000D01* Y-16800D01* X11000Y-20200D02* Y-16800D01* X18000D01* X7300Y-39500D02* Y-32500D01* Y-39500D02* X10700D01* X7300Y-32500D02* X10700D01* Y-39500D02* Y-32500D01* X7200Y-39500D02* Y-32500D01* X3800D02* X7200D01* X3800Y-39500D02* X7200D01* X3800D02* Y-32500D01* X11000Y-39700D02* X18000D01* Y-36300D01* X11000Y-39700D02* Y-36300D01* X18000D01* X-30500Y-62000D02* Y-51000D01* X-24500D01* X-30500Y-62000D02* X-24500D01* Y-51000D01* X-12000Y-57000D02* Y-35000D01* X-24000Y-57000D02* X-12000D01* X-24000Y-35000D02* X-12000D01* X-24000Y-57000D02* Y-35000D01* Y-39500D02* Y-500D01* X-63000D02* X-24000D01* X-63000Y-39500D02* X-63000Y-500D01* X-63000Y-39500D02* X-24000Y-39500D01* X-37000Y-62000D02* Y-51000D01* X-31000D01* X-37000Y-62000D02* X-31000D01* Y-51000D01* Y-47500D02* Y-36500D01* X-37000Y-47500D02* X-31000D01* X-37000Y-36500D02* X-31000D01* X-37000Y-47500D02* Y-36500D01* X-24500Y-47500D02* Y-36500D01* X-30500Y-47500D02* X-24500D01* X-30500Y-36500D02* X-24500D01* X-30500Y-47500D02* Y-36500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GM15 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32768* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% %ADD85C,0.00394*% D13* X-29740Y50398D02* X-22260D01* Y35602D02* Y50398D01* X-29740Y35602D02* X-22260D01* X-29740D02* Y50398D01* X22260Y35602D02* Y50398D01* Y35602D02* X29740D01* Y50398D01* X22260D02* X29740D01* X-39291Y-17850D02* X-10709D01* Y-34150D02* Y-17850D01* X-39291Y-34150D02* X-10709D01* X-39291D02* Y-17850D01* X19988Y-25437D02* Y-17563D01* Y-25437D02* X31012D01* Y-17563D01* X19988D02* X31012D01* D85* X-51387Y13200D02* X-37213D01* X-51387Y29200D02* X-37213D01* X-51387Y13200D02* Y29200D01* X-37213Y13200D02* Y29200D01* X-44300Y19231D02* Y23168D01* X-46268Y21200D02* X-42331D01* X-27968Y43000D02* X-24032D01* X-26000Y41032D02* Y44969D01* X-23024Y26465D02* X500D01* X-23024Y59535D02* X500D01* Y26465D02* Y59535D01* X-23024Y26465D02* Y59535D01* X-12000Y41032D02* Y44969D01* X-13969Y43000D02* X-10031D01* X27200Y-55700D02* X30800D01* X27200Y-62300D02* Y-55700D01* X30800Y-62300D02* Y-55700D01* X27200Y-62300D02* X30800D01* X26000Y41032D02* Y44969D01* X24032Y43000D02* X27968D01* X-5469Y-31000D02* X-1531D01* X-3500Y-32969D02* Y-29032D01* X-10587Y-40000D02* Y-22000D01* X3587Y-40000D02* Y-22000D01* X-10587D02* X3587D01* X-10587Y-40000D02* X3587D01* X14532Y-28000D02* X18469D01* X16500Y-29969D02* Y-26032D01* X8429Y-37252D02* Y-18748D01* X24571Y-37252D02* Y-18748D01* X8429D02* X24571D01* X8429Y-37252D02* X24571D01* X-26969Y-26000D02* X-23031D01* X-25000Y-27968D02* Y-24032D01* X-24035Y-62500D02* Y-38976D01* X9035Y-62500D02* Y-38976D01* X-24035Y-62500D02* X9035D01* X-24035Y-38976D02* X9035D01* X-9469Y-50000D02* X-5531D01* X-7500Y-51968D02* Y-48031D01* X10031Y43000D02* X13969D01* X12000Y41032D02* Y44969D01* X976Y26465D02* Y59535D01* X24500Y26465D02* Y59535D01* X976D02* X24500D01* X976Y26465D02* X24500D01* X16535Y-11024D02* Y12500D01* X-16535Y-11024D02* Y12500D01* X16535D01* X-16535Y-11024D02* X16535D01* X-1969Y0D02* X1969D01* X0Y-1969D02* Y1969D01* X25500Y-23469D02* Y-19532D01* X23531Y-21500D02* X27468D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GPB ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% %ADD54C,0.20000*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% D16* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GPT ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.03937,0.03937,0,0,270.0* 21,1,0.01968,0.05906,0,0,270.0* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% %ADD54C,0.20000*% D16* X-54000Y19700D02* D03* Y15700D02* D03* D17* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D18* X-77000Y45063D02* D03* Y16000D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D19* X-62500Y24626D02* D03* Y32500D02* D03* Y28563D02* D03* Y36437D02* D03* Y40374D02* D03* Y20689D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GTL ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=1* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.03937,0.03937,0,0,270.0* 21,1,0.01968,0.05906,0,0,270.0* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% %ADD50C,0.02000*% %ADD51C,0.08000*% %ADD52C,0.04000*% %ADD53C,0.03000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% G36* X-61046Y80185D02* X4011D01* X4134Y80000D01* Y79309D01* X4073Y79000D01* Y75000D01* X4134Y74691D01* Y59933D01* X4135Y59931D01* X3882Y59521D01* X3523Y59523D01* X3171Y59941D01* Y65059D01* X3110Y65369D01* X2934Y65631D01* X2672Y65807D01* X2362Y65868D01* X1575D01* X1265Y65807D01* X1003Y65631D01* X827Y65369D01* X766Y65059D01* Y59941D01* X827Y59631D01* X1003Y59369D01* X1265Y59193D01* X1495Y59148D01* X1556Y59119D01* X1570Y59119D01* X1745Y58914D01* X1681Y58672D01* X1448Y58414D01* X524D01* X-805Y59742D01* X-766Y59941D01* Y65059D01* X-827Y65369D01* X-1003Y65631D01* X-1265Y65807D01* X-1575Y65868D01* X-2362D01* X-2672Y65807D01* X-2934Y65631D01* X-3110Y65369D01* X-3171Y65059D01* Y59941D01* X-3110Y59631D01* X-2934Y59369D01* X-2672Y59193D01* X-2442Y59148D01* X-2381Y59119D01* X-2279Y59115D01* X-2254Y59112D01* X-2231Y59108D01* X-2215Y59104D01* X-2209Y59102D01* X-2207Y59100D01* X-2203Y59099D01* X-2195Y59093D01* X-2190Y59092D01* X-2187Y59091D01* X-2187D01* X-2179Y59077D01* X-2151Y59070D01* X-277Y57195D01* X-45Y57041D01* X-32Y57038D01* X-81Y56538D01* X-18840D01* X-19185Y56681D01* X-19815D01* X-20160Y56538D01* X-21840D01* X-22185Y56681D01* X-22815D01* X-23235Y56507D01* X-24149Y56387D01* X-25219Y55943D01* X-26138Y55238D01* X-30138Y51238D01* X-30843Y50319D01* X-31287Y49249D01* X-31438Y48100D01* Y-5400D01* X-31287Y-6549D01* X-30843Y-7619D01* X-30138Y-8538D01* X-19792Y-18884D01* Y-22591D01* X-19860Y-22692D01* X-20056Y-23677D01* Y-28323D01* X-19860Y-29308D01* X-19792Y-29409D01* Y-34815D01* X-19875D01* X-20568Y-34953D01* X-21155Y-35345D01* X-21547Y-35932D01* X-21685Y-36625D01* Y-38908D01* X-27381Y-44605D01* X-29469D01* X-30009Y-44712D01* X-30084Y-44762D01* X-31417D01* X-31492Y-44712D01* X-32032Y-44605D01* X-35969D01* X-36149Y-44640D01* X-36500Y-44201D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41527D01* X-41033Y-41604D01* X-41034Y-41711D01* X-41039Y-41799D01* X-41048Y-41877D01* X-41060Y-41945D01* X-41074Y-42003D01* X-41090Y-42051D01* X-41105Y-42087D01* X-41169Y-42151D01* X-46931D01* X-55541Y-33541D01* X-56000Y-33351D01* X-59183D01* X-59193Y-33297D01* X-59369Y-33034D01* X-59631Y-32859D01* X-59941Y-32797D01* X-65059D01* X-65369Y-32859D01* X-65631Y-33034D01* X-65807Y-33297D01* X-65868Y-33606D01* Y-34394D01* X-65807Y-34703D01* X-65631Y-34966D01* X-65369Y-35141D01* X-65059Y-35203D01* X-60028D01* X-59882Y-35412D01* X-59804Y-35686D01* X-60849Y-36731D01* X-60883Y-36733D01* X-60919Y-36733D01* X-60921Y-36734D01* X-65059D01* X-65369Y-36796D01* X-65631Y-36971D01* X-65807Y-37234D01* X-65868Y-37543D01* Y-38331D01* X-65807Y-38640D01* X-65631Y-38903D01* X-65369Y-39078D01* X-65059Y-39140D01* X-59941D01* X-59631Y-39078D01* X-59369Y-38903D01* X-59193Y-38640D01* X-59132Y-38331D01* Y-37543D01* X-59193Y-37234D01* X-59322Y-37041D01* X-58713Y-36431D01* X-58289Y-36714D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-37057D01* X-55200Y-36850D01* X-47891Y-44159D01* X-47431Y-44349D01* X-39038D01* X-39002Y-44364D01* X-38957Y-44387D01* X-38906Y-44418D01* X-38854Y-44454D01* X-38718Y-44569D01* X-38645Y-44640D01* X-38568Y-44671D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37556D01* X-37332Y-45284D01* X-37263Y-45462D01* X-37273Y-45476D01* X-37380Y-46016D01* Y-47985D01* X-37273Y-48525D01* X-37002Y-48929D01* X-37038Y-49200D01* X-36991Y-49555D01* X-37272Y-49975D01* X-37380Y-50515D01* Y-52484D01* X-37272Y-53024D01* X-36966Y-53482D01* X-36508Y-53788D01* X-35968Y-53895D01* X-32031D01* X-31491Y-53788D01* X-31267Y-53638D01* X-30233D01* X-30008Y-53788D01* X-29468Y-53895D01* X-25531D01* X-24991Y-53788D01* X-24533Y-53482D01* X-24531Y-53478D01* X-23481Y-53043D01* X-22640Y-52398D01* X-22390Y-52520D01* X-22223Y-52698D01* X-22287Y-52851D01* X-22438Y-54000D01* Y-68000D01* X-22433Y-68038D01* Y-72236D01* X-22306Y-72542D01* X-21202Y-73647D01* X-20896Y-73773D01* X-16978D01* Y-77000D01* X-16927Y-77258D01* Y-78969D01* X-16820Y-79509D01* X-16767Y-79587D01* X-17034Y-80087D01* X-60835D01* X-61186Y-80157D01* X-61210Y-80173D01* X-62751Y-80052D01* X-64413Y-79653D01* X-65992Y-78999D01* X-67204Y-78256D01* X-67605Y-77962D01* X-67605Y-77962D01* X-67605Y-77962D01* X-70086Y-76006D01* X-73162Y-73162D01* X-76006Y-70086D01* X-77962Y-67605D01* X-77962Y-67605D01* X-77962Y-67605D01* X-78256Y-67204D01* X-78999Y-65992D01* X-79653Y-64413D01* X-80052Y-62751D01* X-80153Y-61465D01* X-80043Y-61300D01* X-79973Y-60949D01* Y-54834D01* X-79963Y-54814D01* X-79473Y-54557D01* X-79399Y-54608D01* X-79337Y-54704D01* X-79334Y-54713D01* X-79333Y-54794D01* X-79318Y-54830D01* Y-55000D01* X-79248Y-55351D01* X-79049Y-55649D01* X-78751Y-55848D01* X-78400Y-55918D01* X-78049Y-55848D01* X-77751Y-55649D01* X-77552Y-55351D01* X-77482Y-55000D01* Y-54830D01* X-77467Y-54794D01* X-77466Y-54701D01* X-77463Y-54627D01* X-77450Y-54494D01* X-77443Y-54454D01* X-77436Y-54423D01* X-77430Y-54407D01* X-77422Y-54393D01* X-77421Y-54386D01* X-77420Y-54381D01* X-77419Y-54372D01* X-77417Y-54356D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77417Y-52644D01* X-77419Y-52628D01* X-77420Y-52619D01* X-77421Y-52614D01* X-77422Y-52607D01* X-77430Y-52593D01* X-77436Y-52577D01* X-77443Y-52546D01* X-77449Y-52510D01* X-77466Y-52292D01* X-77467Y-52206D01* X-77482Y-52170D01* Y-52000D01* X-77552Y-51649D01* X-77751Y-51351D01* X-78049Y-51152D01* X-78400Y-51082D01* X-78751Y-51152D01* X-79049Y-51351D01* X-79248Y-51649D01* X-79318Y-52000D01* Y-52170D01* X-79333Y-52206D01* X-79334Y-52287D01* X-79344Y-52314D01* X-79416Y-52422D01* X-79420Y-52426D01* X-79473Y-52460D01* X-79957Y-52196D01* X-79973Y-52166D01* Y61144D01* X-80043Y61495D01* X-80139Y61639D01* X-80052Y62751D01* X-79653Y64413D01* X-78999Y65992D01* X-78256Y67205D01* X-77962Y67605D01* X-77961Y67605D01* X-77962Y67605D01* X-76006Y70086D01* X-73162Y73162D01* X-70086Y76006D01* X-67605Y77962D01* X-67605Y77962D01* X-67605Y77962D01* X-67204Y78256D01* X-65992Y78999D01* X-64413Y79653D01* X-62751Y80052D01* X-61051Y80186D01* X-61046Y80185D01* D02* G37* G36* X25000Y71500D02* Y61500D01* X23000Y59500D01* X5000D01* X4567Y59933D01* Y80000D01* X16500Y80000D01* X25000Y71500D01* D02* G37* G36* X2637Y59663D02* X2640Y59659D01* X2645Y59651D01* X2653Y59642D01* X2692Y59598D01* X2757Y59533D01* X2016Y59425D01* X1989Y59449D01* X1958Y59470D01* X1923Y59489D01* X1885Y59506D01* X1842Y59520D01* X1796Y59531D01* X1747Y59540D01* X1693Y59547D01* X1575Y59552D01* X2637Y59666D01* X2637Y59663D01* D02* G37* G36* X-1300D02* X-1297Y59659D01* X-1292Y59651D01* X-1285Y59642D01* X-1245Y59598D01* X-1181Y59533D01* X-1921Y59425D01* X-1948Y59449D01* X-1979Y59470D01* X-2014Y59489D01* X-2052Y59506D01* X-2095Y59520D01* X-2141Y59531D01* X-2190Y59540D01* X-2244Y59547D01* X-2362Y59552D01* X-1300Y59666D01* X-1300Y59663D01* D02* G37* G36* X27395Y55134D02* X27461Y55080D01* X27529Y55034D01* X27598Y54994D01* X27669Y54961D01* X27742Y54935D01* X27816Y54916D01* X27893Y54903D01* X27970Y54897D01* X28050Y54899D01* X27201Y54050D01* X27202Y54130D01* X27197Y54207D01* X27184Y54284D01* X27165Y54358D01* X27139Y54431D01* X27106Y54502D01* X27066Y54571D01* X27020Y54639D01* X26966Y54705D01* X26906Y54770D01* X27330Y55194D01* X27395Y55134D01* D02* G37* G36* X31392Y54837D02* X31456Y54787D01* X31524Y54742D01* X31595Y54704D01* X31670Y54671D01* X31747Y54645D01* X31828Y54624D01* X31913Y54610D01* X32000Y54602D01* X32091Y54600D01* X31200Y53709D01* X31198Y53800D01* X31190Y53887D01* X31176Y53971D01* X31155Y54053D01* X31129Y54130D01* X31096Y54205D01* X31058Y54276D01* X31013Y54344D01* X30963Y54408D01* X30906Y54470D01* X31330Y54894D01* X31392Y54837D01* D02* G37* G36* X-9647Y-21707D02* X-9887Y-21978D01* X-10112Y-22296D01* X-10323Y-22662D01* X-10519Y-23076D01* X-10701Y-23538D01* X-10869Y-24047D01* X-11160Y-25208D01* X-11284Y-25861D01* X-11394Y-26561D01* X-15915Y-22039D01* X-15215Y-21930D01* X-13401Y-21514D01* X-12892Y-21347D01* X-12431Y-21165D01* X-12017Y-20968D01* X-11651Y-20758D01* X-11332Y-20533D01* X-11061Y-20293D01* X-9647Y-21707D01* D02* G37* G36* X-59563Y-33640D02* X-59560Y-33674D01* X-59553Y-33703D01* X-59544Y-33729D01* X-59531Y-33751D01* X-59517Y-33768D01* X-59500Y-33782D01* X-59480Y-33792D01* X-59457Y-33798D01* X-59432Y-33800D01* Y-34200D01* X-59457Y-34202D01* X-59480Y-34208D01* X-59500Y-34218D01* X-59517Y-34232D01* X-59531Y-34249D01* X-59544Y-34271D01* X-59553Y-34297D01* X-59560Y-34326D01* X-59563Y-34360D01* X-59565Y-34398D01* Y-33602D01* X-59563Y-33640D01* D02* G37* G36* X-60005Y-37091D02* X-60017Y-37111D01* X-60020Y-37129D01* X-60015Y-37144D01* X-60002Y-37157D01* X-59980Y-37169D01* X-59951Y-37178D01* X-59914Y-37184D01* X-59869Y-37189D01* X-59816Y-37191D01* X-60920Y-37166D01* X-60869Y-37166D01* X-60776Y-37160D01* X-60734Y-37154D01* X-60695Y-37145D01* X-60660Y-37134D01* X-60628Y-37121D01* X-60600Y-37106D01* X-60574Y-37089D01* X-60552Y-37069D01* X-59986D01* X-60005Y-37091D01* D02* G37* G36* X-39709Y-42500D02* X-39826Y-42501D01* X-40038Y-42519D01* X-40134Y-42536D01* X-40223Y-42558D01* X-40305Y-42585D01* X-40379Y-42617D01* X-40447Y-42654D01* X-40507Y-42696D01* X-40561Y-42744D01* X-40844Y-42461D01* X-40796Y-42407D01* X-40754Y-42347D01* X-40717Y-42279D01* X-40685Y-42205D01* X-40658Y-42123D01* X-40636Y-42034D01* X-40619Y-41938D01* X-40608Y-41836D01* X-40601Y-41726D01* X-40600Y-41609D01* X-39709Y-42500D01* D02* G37* G36* X-38343Y-44330D02* X-38426Y-44248D01* X-38590Y-44111D01* X-38669Y-44055D01* X-38747Y-44008D01* X-38824Y-43969D01* X-38899Y-43939D01* X-38974Y-43917D01* X-39046Y-43904D01* X-39118Y-43900D01* Y-43500D01* X-39046Y-43496D01* X-38974Y-43483D01* X-38899Y-43461D01* X-38824Y-43431D01* X-38747Y-43393D01* X-38669Y-43345D01* X-38590Y-43289D01* X-38509Y-43225D01* X-38426Y-43152D01* X-38343Y-43070D01* Y-44330D01* D02* G37* G36* X-77899Y-52311D02* X-77879Y-52564D01* X-77868Y-52632D01* X-77853Y-52693D01* X-77836Y-52746D01* X-77817Y-52791D01* X-77795Y-52828D01* X-77770Y-52857D01* X-79030D01* X-79005Y-52828D01* X-78983Y-52791D01* X-78964Y-52746D01* X-78947Y-52693D01* X-78932Y-52632D01* X-78921Y-52564D01* X-78905Y-52403D01* X-78901Y-52311D01* X-78900Y-52212D01* X-77900D01* X-77899Y-52311D01* D02* G37* G36* X-77795Y-54172D02* X-77817Y-54209D01* X-77836Y-54254D01* X-77853Y-54307D01* X-77868Y-54368D01* X-77879Y-54436D01* X-77895Y-54597D01* X-77899Y-54689D01* X-77900Y-54788D01* X-78900D01* X-78901Y-54689D01* X-78921Y-54436D01* X-78932Y-54368D01* X-78947Y-54307D01* X-78964Y-54254D01* X-78983Y-54209D01* X-79005Y-54172D01* X-79030Y-54143D01* X-77770D01* X-77795Y-54172D01* D02* G37* G36* X-4500Y-59500D02* Y-65000D01* Y-75500D01* X-6000Y-77000D01* X-15000Y-77000D01* Y-73340D01* X-20896D01* X-22000Y-72236D01* Y-69500D01* Y-64000D01* X-15000D01* Y-58500D01* X-5500D01* X-4500Y-59500D01* D02* G37* G36* X61046Y80185D02* Y80185D01* X61531Y80148D01* X62751Y80052D01* X64413Y79653D01* X65992Y78999D01* X67205Y78256D01* X67605Y77962D01* X67605Y77962D01* X67605Y77962D01* X70086Y76006D01* X73162Y73162D01* X76006Y70086D01* X77962Y67605D01* X77962Y67605D01* X77962Y67605D01* X78256Y67204D01* X78999Y65992D01* X79653Y64413D01* X80052Y62751D01* X80148Y61531D01* X80185Y61046D01* X80255Y60695D01* X80317Y60601D01* X80396Y60483D01* Y-60483D01* X80255Y-60695D01* X80185Y-61046D01* X80148Y-61531D01* X80052Y-62751D01* X79653Y-64413D01* X78999Y-65992D01* X78256Y-67205D01* X77962Y-67605D01* X77962Y-67605D01* X77962Y-67605D01* X76006Y-70086D01* X73162Y-73162D01* X70086Y-76006D01* X67605Y-77962D01* X67605Y-77962D01* X67605Y-77962D01* X67204Y-78256D01* X65992Y-78999D01* X64413Y-79653D01* X62751Y-80052D01* X61554Y-80146D01* X61258Y-80087D01* X-3941D01* X-4209Y-79587D01* X-4181Y-79546D01* X-4073Y-79000D01* Y-75513D01* X-4067Y-75500D01* Y-65000D01* Y-59500D01* X-4194Y-59194D01* X-5194Y-58194D01* X-5500Y-58067D01* X-13562D01* Y-54000D01* X-13713Y-52851D01* X-14157Y-51781D01* X-14862Y-50862D01* X-15781Y-50157D01* X-16851Y-49713D01* X-18000Y-49562D01* X-19149Y-49713D01* X-19287Y-49771D01* X-19571Y-49347D01* X-12216Y-41993D01* X-11511Y-41073D01* X-11068Y-40003D01* X-10916Y-38854D01* Y-33065D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-10916Y-30735D01* Y-29409D01* X-10849Y-29308D01* X-10653Y-28323D01* Y-24966D01* X-10452Y-24167D01* X-10294Y-23685D01* X-10122Y-23248D01* X-9939Y-22863D01* X-9747Y-22530D01* X-9675Y-22427D01* X-8234D01* X-8105Y-22402D01* X-7545D01* X-7197Y-22332D01* X-6902Y-22135D01* X-6705Y-21840D01* X-6635Y-21492D01* Y-20508D01* X-6705Y-20160D01* X-6902Y-19865D01* X-7197Y-19668D01* X-7545Y-19598D01* X-8105D01* X-8234Y-19573D01* X-10354D01* X-10354Y-19573D01* X-10416Y-19585D01* X-10916Y-19175D01* Y-17046D01* X-11068Y-15897D01* X-11511Y-14827D01* X-12216Y-13907D01* X-22562Y-3562D01* Y46262D01* X-21162Y47662D01* X4500D01* X5649Y47813D01* X6719Y48257D01* X7638Y48962D01* X8343Y49881D01* X8787Y50951D01* X8938Y52100D01* X8787Y53249D01* X8399Y54184D01* X8795Y54495D01* X9027Y54341D01* X9300Y54286D01* X26339D01* X26549Y54174D01* X26768Y54050D01* X26800Y53974D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29265Y54583D01* X29426Y55035D01* X29505Y55141D01* X29626Y55165D01* X30572Y54218D01* X30588Y54176D01* X30633Y54128D01* X30661Y54091D01* X30686Y54054D01* X30707Y54015D01* X30725Y53974D01* X30740Y53930D01* X30751Y53883D01* X30760Y53831D01* X30765Y53774D01* X30767Y53699D01* X30800Y53625D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* X32175D01* X32101Y55033D01* X32026Y55035D01* X31969Y55040D01* X31917Y55049D01* X31870Y55060D01* X31826Y55075D01* X31785Y55093D01* X31746Y55114D01* X31709Y55139D01* X31672Y55167D01* X31624Y55212D01* X31582Y55228D01* X30146Y56663D01* X29915Y56818D01* X29641Y56872D01* X10037D01* X8304Y58605D01* X8496Y59067D01* X23000D01* X23306Y59194D01* X23474Y59362D01* X30162D01* X38562Y50962D01* Y-66340D01* X38419Y-66685D01* Y-67314D01* X38562Y-67660D01* Y-69340D01* X38419Y-69686D01* Y-70315D01* X38562Y-70660D01* Y-72340D01* X38419Y-72685D01* Y-73314D01* X38660Y-73896D01* X38683Y-73919D01* X38713Y-74149D01* X39157Y-75219D01* X39862Y-76138D01* X40781Y-76843D01* X41851Y-77287D01* X43000Y-77438D01* X44149Y-77287D01* X45219Y-76843D01* X46138Y-76138D01* X46843Y-75219D01* X47287Y-74149D01* X47317Y-73919D01* X47340Y-73896D01* X47581Y-73314D01* Y-72685D01* X47438Y-72340D01* Y-70660D01* X47581Y-70315D01* Y-69686D01* X47438Y-69340D01* Y-67660D01* X47581Y-67314D01* Y-66685D01* X47438Y-66340D01* Y52800D01* X47438Y52800D01* X47287Y53949D01* X46843Y55019D01* X46138Y55938D01* X35138Y66938D01* X34219Y67643D01* X33149Y68087D01* X32000Y68238D01* X25433D01* Y71500D01* X25306Y71806D01* X17390Y79723D01* X17581Y80185D01* X60553D01* X61046Y80185D01* D02* G37* %LPC*% G36* X-59641Y41600D02* X-60159D01* X-60214Y41577D01* X-65059D01* X-65369Y41515D01* X-65631Y41340D01* X-65807Y41077D01* X-65868Y40768D01* Y39980D01* X-65807Y39671D01* X-65631Y39408D01* X-65369Y39233D01* X-65059Y39171D01* X-60572D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60404Y37640D01* X-65059D01* X-65369Y37578D01* X-65631Y37403D01* X-65807Y37140D01* X-65868Y36831D01* Y36043D01* X-65807Y35734D01* X-65631Y35471D01* X-65369Y35296D01* X-65059Y35234D01* X-60582D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60393Y33703D01* X-65059D01* X-65369Y33641D01* X-65631Y33466D01* X-65807Y33203D01* X-65868Y32894D01* Y32106D01* X-65807Y31797D01* X-65631Y31534D01* X-65369Y31359D01* X-65059Y31297D01* X-60393D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X-59941Y29766D02* X-65059D01* X-65369Y29704D01* X-65631Y29529D01* X-65807Y29266D01* X-65868Y28957D01* Y28169D01* X-65807Y27860D01* X-65631Y27597D01* X-65369Y27422D01* X-65059Y27360D01* X-59941D01* X-59631Y27422D01* X-59369Y27597D01* X-59348Y27628D01* X-59315Y27630D01* X-59270Y27630D01* X-59233Y27645D01* X-58643D01* X-58189Y27191D01* X-58175Y27155D01* X-58109Y27088D01* X-58060Y27034D01* X-57975Y26931D01* X-57951Y26898D01* X-57935Y26871D01* X-57927Y26856D01* X-57923Y26840D01* X-57918Y26834D01* X-57917Y26830D01* X-57910Y26823D01* X-57900Y26810D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* X-56510D01* X-56523Y28210D01* X-56530Y28217D01* X-56534Y28218D01* X-56540Y28223D01* X-56556Y28227D01* X-56571Y28235D01* X-56598Y28251D01* X-56627Y28272D01* X-56794Y28415D01* X-56855Y28475D01* X-56891Y28489D01* X-57614Y29212D01* X-57912Y29411D01* X-58263Y29481D01* X-59231D01* X-59266Y29496D01* X-59347Y29497D01* X-59369Y29529D01* X-59631Y29704D01* X-59941Y29766D01* D02* G37* G36* Y21892D02* X-65059D01* X-65369Y21830D01* X-65631Y21655D01* X-65807Y21392D01* X-65868Y21083D01* Y20295D01* X-65807Y19986D01* X-65631Y19723D01* X-65369Y19548D01* X-65059Y19486D01* X-63516D01* X-63514Y19485D01* X-63436Y19483D01* X-63418Y19481D01* Y12980D01* X-75349Y1049D01* X-75548Y751D01* X-75618Y400D01* Y-5300D01* X-75548Y-5651D01* X-75349Y-5949D01* X-70418Y-10880D01* Y-17100D01* X-70348Y-17451D01* X-70149Y-17749D01* X-68049Y-19849D01* X-67751Y-20048D01* X-67400Y-20118D01* X-62380D01* X-60849Y-21649D01* X-60551Y-21848D01* X-60200Y-21918D01* X-52413D01* X-52364Y-21975D01* X-52338Y-22009D01* X-52321Y-22035D01* X-52317Y-22041D01* X-52316Y-22042D01* X-52315Y-22044D01* X-52314Y-22046D01* X-52305Y-22065D01* X-52300Y-22070D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49700Y-22259D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* X-50699Y-20218D01* X-23830D01* X-23794Y-20233D01* X-23701Y-20234D01* X-23627Y-20237D01* X-23494Y-20250D01* X-23454Y-20257D01* X-23423Y-20264D01* X-23407Y-20269D01* X-23393Y-20278D01* X-23386Y-20279D01* X-23381Y-20280D01* X-23372Y-20281D01* X-23356Y-20283D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* X-22759D01* X-23236Y-18198D01* X-23356Y-18317D01* X-23372Y-18319D01* X-23381Y-18319D01* X-23386Y-18321D01* X-23393Y-18323D01* X-23407Y-18330D01* X-23423Y-18336D01* X-23454Y-18343D01* X-23490Y-18349D01* X-23708Y-18366D01* X-23794Y-18367D01* X-23830Y-18382D01* X-45566D01* X-45651Y-17882D01* X-45451Y-17749D01* X-42051Y-14349D01* X-41852Y-14051D01* X-41782Y-13700D01* Y-11930D01* X-41767Y-11894D01* X-41766Y-11801D01* X-41763Y-11727D01* X-41750Y-11594D01* X-41743Y-11554D01* X-41736Y-11523D01* X-41730Y-11507D01* X-41722Y-11493D01* X-41721Y-11486D01* X-41719Y-11481D01* X-41719Y-11472D01* X-41717Y-11456D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43683Y-11456D01* X-43681Y-11472D01* X-43681Y-11481D01* X-43679Y-11486D01* X-43678Y-11493D01* X-43670Y-11507D01* X-43664Y-11523D01* X-43657Y-11554D01* X-43651Y-11590D01* X-43634Y-11808D01* X-43633Y-11894D01* X-43618Y-11930D01* Y-13320D01* X-46480Y-16182D01* X-50758D01* X-50857Y-15682D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14573D01* X-50067Y-14496D01* X-50066Y-14389D01* X-50061Y-14301D01* X-50052Y-14223D01* X-50040Y-14155D01* X-50026Y-14097D01* X-50010Y-14049D01* X-49995Y-14013D01* X-49241Y-13259D01* X-49051Y-12800D01* Y-9100D01* X-49241Y-8641D01* X-56798Y-1084D01* X-56574Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y959D01* X-55398Y1436D01* X-55764Y1802D01* X-56241Y2000D01* X-56759D01* X-57236Y1802D01* X-57523Y1516D01* X-57850Y1480D01* X-58107Y1525D01* X-59095Y2513D01* X-59110Y2549D01* X-59126Y2597D01* X-59140Y2655D01* X-59151Y2717D01* X-59166Y2895D01* X-59167Y2996D01* X-59200Y3073D01* Y3161D01* X-59193Y3171D01* X-59132Y3480D01* Y4268D01* X-59193Y4577D01* X-59369Y4840D01* X-59631Y5015D01* X-59941Y5077D01* X-65059D01* X-65369Y5015D01* X-65631Y4840D01* X-65807Y4577D01* X-65868Y4268D01* Y3480D01* X-65807Y3171D01* X-65631Y2908D01* X-65369Y2733D01* X-65059Y2671D01* X-61771D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60573D01* X-60496Y1667D01* X-60473Y1640D01* X-60637Y1214D01* X-60660Y1191D01* X-60737Y1144D01* X-60750Y1140D01* X-65059D01* X-65369Y1078D01* X-65631Y903D01* X-65807Y640D01* X-65868Y331D01* Y-457D01* X-65807Y-766D01* X-65719Y-898D01* X-65702Y-924D01* X-65987Y-1347D01* X-66013Y-1336D01* X-66341Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2241D01* X-65498Y-1764D01* X-65610Y-1651D01* X-65614Y-1647D01* X-65377Y-1230D01* X-65345Y-1209D01* X-65297Y-1219D01* X-65059Y-1266D01* X-59941D01* X-59867Y-1251D01* X-52549Y-8569D01* Y-9762D01* X-52564Y-9798D01* X-52587Y-9843D01* X-52618Y-9894D01* X-52654Y-9946D01* X-52769Y-10082D01* X-52840Y-10155D01* X-52871Y-10232D01* X-53002Y-10364D01* X-53200Y-10841D01* X-53700Y-11002D01* X-54651Y-10051D01* X-54949Y-9852D01* X-55300Y-9782D01* X-58000D01* X-58351Y-9852D01* X-58649Y-10051D01* X-59451Y-10853D01* X-59631Y-10733D01* X-59941Y-10671D01* X-65059D01* X-65369Y-10733D01* X-65631Y-10908D01* X-65807Y-11171D01* X-65868Y-11480D01* Y-12268D01* X-65807Y-12577D01* X-65631Y-12840D01* X-65369Y-13015D01* X-65059Y-13077D01* X-59941D01* X-59631Y-13015D01* X-59369Y-12840D01* X-59348Y-12809D01* X-59315Y-12807D01* X-59270Y-12807D01* X-59233Y-12792D01* X-59174D01* X-58823Y-12722D01* X-58525Y-12523D01* X-57794Y-11792D01* X-57576Y-11830D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57283Y-13956D01* X-57281Y-13972D01* X-57280Y-13981D01* X-57279Y-13986D01* X-57278Y-13993D01* X-57270Y-14007D01* X-57264Y-14023D01* X-57257Y-14054D01* X-57251Y-14089D01* X-57234Y-14308D01* X-57233Y-14394D01* X-57218Y-14430D01* Y-14800D01* X-57148Y-15151D01* X-56949Y-15449D01* X-55009Y-17389D01* X-55292Y-17812D01* X-55526Y-17716D01* X-56043D01* X-56521Y-17914D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56957Y-19582D01* X-57209Y-20082D01* X-59820D01* X-61351Y-18551D01* X-61649Y-18352D01* X-62000Y-18282D01* X-67020D01* X-68582Y-16720D01* Y-10500D01* X-68652Y-10149D01* X-68851Y-9851D01* X-69386Y-9317D01* X-69194Y-8855D01* X-65769D01* X-65734Y-8870D01* X-65653Y-8871D01* X-65631Y-8903D01* X-65369Y-9078D01* X-65059Y-9140D01* X-59941D01* X-59631Y-9078D01* X-59369Y-8903D01* X-59193Y-8640D01* X-59132Y-8331D01* Y-7543D01* X-59193Y-7234D01* X-59369Y-6971D01* X-59631Y-6796D01* X-59941Y-6734D01* X-65059D01* X-65369Y-6796D01* X-65631Y-6971D01* X-65652Y-7002D01* X-65685Y-7004D01* X-65730Y-7004D01* X-65767Y-7019D01* X-69583D01* X-72382Y-4220D01* Y-1080D01* X-56520Y14782D01* X-55345D01* X-55312Y14767D01* X-55293Y14767D01* X-55291Y14763D01* X-55266Y14703D01* X-55245Y14695D01* X-55149Y14551D01* X-54851Y14352D01* X-54500Y14282D01* X-53500D01* X-53149Y14352D01* X-52851Y14551D01* X-52755Y14695D01* X-52734Y14703D01* X-52709Y14763D01* X-52707Y14767D01* X-52688Y14767D01* X-52655Y14782D01* X-49614D01* X-49600Y14712D01* X-49598Y14677D01* X-49590Y14660D01* X-49564Y14530D01* X-49345Y14202D01* X-49017Y13984D01* X-48631Y13907D01* X-47450D01* X-47063Y13984D01* X-46736Y14202D01* X-46516Y14530D01* X-46491Y14660D01* X-46482Y14677D01* X-46480Y14712D01* X-46466Y14782D01* X-42134D01* X-42120Y14712D01* X-42118Y14677D01* X-42109Y14660D01* X-42083Y14530D01* X-41865Y14202D01* X-41537Y13984D01* X-41150Y13907D01* X-39969D01* X-39583Y13984D01* X-39255Y14202D01* X-39036Y14530D01* X-38959Y14917D01* Y17672D01* X-39036Y18059D01* X-39255Y18387D01* X-39583Y18606D01* X-39969Y18682D01* X-41150D01* X-41537Y18606D01* X-41865Y18387D01* X-42083Y18059D01* X-42160Y17672D01* Y16707D01* X-42161Y16705D01* X-42162Y16628D01* X-42163Y16618D01* X-46437D01* X-46438Y16628D01* X-46439Y16705D01* X-46440Y16707D01* Y17672D01* X-46516Y18059D01* X-46736Y18387D01* X-47063Y18606D01* X-47450Y18682D01* X-48631D01* X-49017Y18606D01* X-49345Y18387D01* X-49564Y18059D01* X-49641Y17672D01* Y16707D01* X-49641Y16705D01* X-49643Y16628D01* X-49643Y16618D01* X-52655D01* X-52688Y16633D01* X-52707Y16633D01* X-52709Y16637D01* X-52734Y16697D01* X-52755Y16705D01* X-52851Y16849D01* X-53149Y17048D01* X-53500Y17118D01* X-54500D01* X-54851Y17048D01* X-55149Y16849D01* X-55245Y16705D01* X-55266Y16697D01* X-55291Y16637D01* X-55293Y16633D01* X-55312Y16633D01* X-55345Y16618D01* X-56900D01* X-57251Y16548D01* X-57549Y16349D01* X-61082Y12815D01* X-61582Y13023D01* Y19481D01* X-61564Y19483D01* X-61486Y19485D01* X-61484Y19486D01* X-59941D01* X-59631Y19548D01* X-59369Y19723D01* X-59348Y19754D01* X-59315Y19756D01* X-59270Y19756D01* X-59233Y19771D01* X-55418D01* Y19200D01* X-55348Y18849D01* X-55149Y18551D01* X-54851Y18352D01* X-54500Y18282D01* X-53500D01* X-53149Y18352D01* X-52851Y18551D01* X-52652Y18849D01* X-52582Y19200D01* Y20200D01* X-52652Y20551D01* X-52851Y20849D01* X-53149Y21048D01* X-53500Y21118D01* X-54120D01* X-54340Y21338D01* X-54638Y21537D01* X-54989Y21607D01* X-59231D01* X-59266Y21622D01* X-59347Y21623D01* X-59369Y21655D01* X-59631Y21830D01* X-59941Y21892D01* D02* G37* G36* X-50141Y6100D02* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51136Y3698D01* X-50659Y3500D01* X-50141D01* X-49664Y3698D01* X-49298Y4064D01* X-49100Y4541D01* Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* D02* G37* G36* X-54041D02* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55036Y3698D01* X-54559Y3500D01* X-54041D01* X-53564Y3698D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* D02* G37* G36* X-52100Y1958D02* X-52617D01* X-53095Y1760D01* X-53460Y1395D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y917D01* X-51256Y1395D01* X-51622Y1760D01* X-52100Y1958D01* D02* G37* G36* X-35041Y-7100D02* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36402Y-9136D01* X-36036Y-9502D01* X-35559Y-9700D01* X-35041D01* X-34564Y-9502D01* X-34198Y-9136D01* X-34000Y-8659D01* Y-8141D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* D02* G37* G36* X-31541Y-11000D02* X-32059D01* X-32536Y-11198D01* X-32902Y-11564D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30500Y-12559D01* Y-12041D01* X-30698Y-11564D01* X-31064Y-11198D01* X-31541Y-11000D01* D02* G37* G36* X-51241Y-30300D02* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50398Y-32336D01* X-50200Y-31859D01* Y-31341D01* X-50398Y-30864D01* X-50764Y-30498D01* X-51241Y-30300D01* D02* G37* G36* X-38341Y-30500D02* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41847Y-33294D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40289D01* X-39811Y-34655D01* X-39445Y-34289D01* X-39247Y-33811D01* Y-33480D01* X-38913Y-33153D01* X-38787Y-33100D01* X-38362D01* X-38339Y-33102D01* X-37900Y-33458D01* Y-33659D01* X-37702Y-34136D01* X-37336Y-34502D01* X-36859Y-34700D01* X-36341D01* X-35864Y-34502D01* X-35498Y-34136D01* X-35300Y-33659D01* Y-33141D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* D02* G37* G36* X-58241Y-39700D02* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* D02* G37* G36* X-34362Y-39900D02* X-34879D01* X-35357Y-40098D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33884Y-40098D01* X-34362Y-39900D01* D02* G37* G36* X-61841Y-41300D02* X-62359D01* X-62836Y-41498D01* X-63202Y-41864D01* X-63400Y-42341D01* Y-42859D01* X-63202Y-43336D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* D02* G37* G36* X-71108Y-44434D02* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74667Y-51420D01* X-74959Y-51541D01* X-75149Y-52000D01* X-74959Y-52459D01* X-74667Y-52580D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74419Y-54080D01* X-74492Y-54110D01* X-74496Y-54121D01* X-74506Y-54126D01* X-74563Y-54189D01* X-74609Y-54233D01* X-74652Y-54270D01* X-74694Y-54299D01* X-74732Y-54322D01* X-74767Y-54339D01* X-74799Y-54351D01* X-74900D01* X-75359Y-54541D01* X-75549Y-55000D01* X-75359Y-55459D01* X-74900Y-55649D01* X-74799D01* X-74767Y-55661D01* X-74732Y-55678D01* X-74694Y-55701D01* X-74652Y-55730D01* X-74609Y-55767D01* X-74563Y-55811D01* X-74506Y-55874D01* X-74496Y-55879D01* X-74492Y-55889D01* X-74419Y-55919D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* %LPD*% G36* X-59577Y29098D02* X-59566Y29090D01* X-59550Y29084D01* X-59528Y29078D01* X-59500Y29074D01* X-59466Y29070D01* X-59381Y29065D01* X-59273Y29063D01* Y28063D01* X-59330Y28063D01* X-59500Y28052D01* X-59528Y28048D01* X-59550Y28042D01* X-59566Y28036D01* X-59577Y28029D01* X-59581Y28020D01* Y29106D01* X-59577Y29098D01* D02* G37* G36* X-57086Y28095D02* X-56894Y27930D01* X-56837Y27890D01* X-56784Y27857D01* X-56735Y27832D01* X-56689Y27814D01* X-56647Y27803D01* X-56609Y27800D01* X-57500Y26909D01* X-57503Y26947D01* X-57514Y26989D01* X-57532Y27035D01* X-57557Y27084D01* X-57590Y27137D01* X-57630Y27194D01* X-57733Y27318D01* X-57795Y27386D01* X-57864Y27457D01* X-57157Y28164D01* X-57086Y28095D01* D02* G37* G36* X-59577Y21224D02* X-59566Y21216D01* X-59550Y21210D01* X-59528Y21204D01* X-59500Y21200D01* X-59466Y21196D01* X-59381Y21191D01* X-59273Y21189D01* Y20189D01* X-59330Y20188D01* X-59500Y20178D01* X-59528Y20174D01* X-59550Y20168D01* X-59566Y20162D01* X-59577Y20154D01* X-59581Y20146D01* Y21232D01* X-59577Y21224D01* D02* G37* G36* X-61595Y19915D02* X-61680Y19906D01* X-61755Y19890D01* X-61820Y19868D01* X-61875Y19840D01* X-61920Y19806D01* X-61955Y19765D01* X-61980Y19718D01* X-61995Y19665D01* X-62000Y19606D01* X-63000D01* X-63005Y19665D01* X-63020Y19718D01* X-63045Y19765D01* X-63080Y19806D01* X-63125Y19840D01* X-63180Y19868D01* X-63245Y19890D01* X-63320Y19906D01* X-63405Y19915D01* X-63500Y19918D01* X-61500D01* X-61595Y19915D01* D02* G37* G36* X-53030Y16354D02* X-53015Y16322D01* X-52994Y16293D01* X-52968Y16269D01* X-52937Y16248D01* X-52900Y16230D01* X-52859Y16217D01* X-52812Y16208D01* X-52760Y16202D01* X-52702Y16200D01* Y15200D01* X-52760Y15198D01* X-52812Y15192D01* X-52859Y15183D01* X-52900Y15169D01* X-52937Y15152D01* X-52968Y15132D01* X-52994Y15107D01* X-53015Y15078D01* X-53030Y15046D01* X-53040Y15010D01* Y16390D01* X-53030Y16354D01* D02* G37* G36* X-54960Y15010D02* X-54970Y15046D01* X-54985Y15078D01* X-55006Y15107D01* X-55032Y15132D01* X-55063Y15152D01* X-55099Y15169D01* X-55141Y15183D01* X-55188Y15192D01* X-55240Y15198D01* X-55298Y15200D01* Y16200D01* X-55240Y16202D01* X-55188Y16208D01* X-55141Y16217D01* X-55099Y16230D01* X-55063Y16248D01* X-55032Y16269D01* X-55006Y16293D01* X-54985Y16322D01* X-54970Y16354D01* X-54960Y16390D01* Y15010D01* D02* G37* G36* X-41685Y14702D02* X-41691Y14797D01* X-41703Y14882D01* X-41722Y14956D01* X-41747Y15021D01* X-41780Y15076D01* X-41818Y15120D01* X-41864Y15155D01* X-41916Y15180D01* X-41975Y15195D01* X-42040Y15200D01* Y16200D01* X-41979Y16205D01* X-41925Y16220D01* X-41877Y16245D01* X-41835Y16280D01* X-41801Y16325D01* X-41773Y16380D01* X-41752Y16445D01* X-41737Y16520D01* X-41730Y16605D01* X-41728Y16700D01* X-41685Y14702D01* D02* G37* G36* X-46870Y16605D02* X-46863Y16520D01* X-46848Y16445D01* X-46827Y16380D01* X-46799Y16325D01* X-46765Y16280D01* X-46723Y16245D01* X-46676Y16220D01* X-46621Y16205D01* X-46560Y16200D01* Y15200D01* X-46625Y15195D01* X-46684Y15180D01* X-46736Y15155D01* X-46782Y15120D01* X-46821Y15076D01* X-46853Y15021D01* X-46878Y14956D01* X-46897Y14882D01* X-46909Y14797D01* X-46915Y14702D01* X-46872Y16700D01* X-46870Y16605D01* D02* G37* G36* X-49166Y14702D02* X-49171Y14797D01* X-49183Y14882D01* X-49202Y14956D01* X-49228Y15021D01* X-49260Y15076D01* X-49299Y15120D01* X-49344Y15155D01* X-49396Y15180D01* X-49455Y15195D01* X-49521Y15200D01* Y16200D01* X-49459Y16205D01* X-49405Y16220D01* X-49357Y16245D01* X-49316Y16280D01* X-49281Y16325D01* X-49253Y16380D01* X-49232Y16445D01* X-49218Y16520D01* X-49210Y16605D01* X-49209Y16700D01* X-49166Y14702D01* D02* G37* G36* X-59599Y2874D02* X-59581Y2661D01* X-59564Y2566D01* X-59542Y2477D01* X-59515Y2395D01* X-59483Y2321D01* X-59446Y2253D01* X-59404Y2193D01* X-59356Y2139D01* X-59639Y1856D01* X-59693Y1904D01* X-59753Y1946D01* X-59821Y1983D01* X-59895Y2015D01* X-59977Y2042D01* X-60066Y2064D01* X-60162Y2081D01* X-60264Y2092D01* X-60374Y2099D01* X-60491Y2100D01* X-59600Y2991D01* X-59599Y2874D01* D02* G37* G36* X-59574Y-123D02* X-59580Y-163D01* X-59582Y-202D01* X-59579Y-240D01* X-59572Y-278D01* X-59560Y-314D01* X-59543Y-350D01* X-59522Y-384D01* X-59497Y-418D01* X-59467Y-450D01* X-59632Y-851D01* X-59649Y-835D01* X-59666Y-822D01* X-59682Y-812D01* X-59698Y-805D01* X-59714Y-800D01* X-59730Y-798D01* X-59746Y-798D01* X-59762Y-802D01* X-59777Y-807D01* X-59792Y-816D01* X-59564Y-82D01* X-59574Y-123D01* D02* G37* G36* X-65419Y-8480D02* X-65423Y-8472D01* X-65434Y-8464D01* X-65450Y-8458D01* X-65472Y-8452D01* X-65500Y-8448D01* X-65534Y-8444D01* X-65619Y-8439D01* X-65727Y-8437D01* Y-7437D01* X-65670Y-7437D01* X-65500Y-7426D01* X-65472Y-7422D01* X-65450Y-7416D01* X-65434Y-7410D01* X-65423Y-7402D01* X-65419Y-7394D01* Y-8480D01* D02* G37* G36* X-51696Y-9754D02* X-51683Y-9827D01* X-51661Y-9901D01* X-51631Y-9976D01* X-51592Y-10053D01* X-51545Y-10131D01* X-51489Y-10210D01* X-51425Y-10291D01* X-51352Y-10374D01* X-51270Y-10457D01* X-52530D01* X-52448Y-10374D01* X-52311Y-10210D01* X-52255Y-10131D01* X-52207Y-10053D01* X-52169Y-9976D01* X-52139Y-9901D01* X-52117Y-9827D01* X-52104Y-9754D01* X-52100Y-9683D01* X-51700D01* X-51696Y-9754D01* D02* G37* G36* X-42095Y-11272D02* X-42117Y-11309D01* X-42136Y-11354D01* X-42153Y-11407D01* X-42167Y-11468D01* X-42179Y-11536D01* X-42195Y-11697D01* X-42199Y-11789D01* X-42200Y-11888D01* X-43200D01* X-43201Y-11789D01* X-43221Y-11536D01* X-43233Y-11468D01* X-43247Y-11407D01* X-43264Y-11354D01* X-43283Y-11309D01* X-43305Y-11272D01* X-43330Y-11243D01* X-42070D01* X-42095Y-11272D01* D02* G37* G36* X-59577Y-11339D02* X-59566Y-11347D01* X-59550Y-11353D01* X-59528Y-11359D01* X-59500Y-11363D01* X-59466Y-11367D01* X-59381Y-11372D01* X-59273Y-11374D01* Y-12374D01* X-59330Y-12375D01* X-59500Y-12385D01* X-59528Y-12389D01* X-59550Y-12395D01* X-59566Y-12401D01* X-59577Y-12409D01* X-59581Y-12417D01* Y-11331D01* X-59577Y-11339D01* D02* G37* G36* X-55695Y-13772D02* X-55717Y-13809D01* X-55736Y-13854D01* X-55753Y-13907D01* X-55768Y-13968D01* X-55779Y-14036D01* X-55795Y-14197D01* X-55799Y-14289D01* X-55800Y-14388D01* X-56800D01* X-56801Y-14289D01* X-56821Y-14036D01* X-56832Y-13968D01* X-56847Y-13907D01* X-56864Y-13854D01* X-56883Y-13809D01* X-56905Y-13772D01* X-56930Y-13743D01* X-55670D01* X-55695Y-13772D01* D02* G37* G36* X-50256Y-13639D02* X-50304Y-13693D01* X-50346Y-13753D01* X-50383Y-13821D01* X-50415Y-13895D01* X-50442Y-13977D01* X-50464Y-14066D01* X-50481Y-14161D01* X-50492Y-14264D01* X-50499Y-14374D01* X-50500Y-14491D01* X-51391Y-13600D01* X-51274Y-13599D01* X-51061Y-13581D01* X-50966Y-13564D01* X-50877Y-13542D01* X-50795Y-13515D01* X-50721Y-13483D01* X-50653Y-13446D01* X-50593Y-13404D01* X-50539Y-13356D01* X-50256Y-13639D01* D02* G37* G36* X-23143Y-19930D02* X-23172Y-19905D01* X-23209Y-19883D01* X-23254Y-19864D01* X-23307Y-19847D01* X-23368Y-19832D01* X-23436Y-19821D01* X-23597Y-19805D01* X-23689Y-19801D01* X-23788Y-19800D01* Y-18800D01* X-23689Y-18799D01* X-23436Y-18779D01* X-23368Y-18767D01* X-23307Y-18753D01* X-23254Y-18736D01* X-23209Y-18717D01* X-23172Y-18695D01* X-23143Y-18670D01* Y-19930D01* D02* G37* G36* X-51485Y-20806D02* X-51244Y-21014D01* X-51196Y-21046D01* X-51152Y-21072D01* X-51113Y-21089D01* X-51079Y-21099D01* X-51050Y-21101D01* X-51899Y-21950D01* X-51901Y-21921D01* X-51911Y-21887D01* X-51928Y-21848D01* X-51954Y-21804D01* X-51986Y-21756D01* X-52027Y-21703D01* X-52130Y-21582D01* X-52264Y-21443D01* X-51557Y-20735D01* X-51485Y-20806D01* D02* G37* G36* X-74185Y-55583D02* X-74251Y-55510D01* X-74318Y-55445D01* X-74387Y-55388D01* X-74456Y-55338D01* X-74527Y-55296D01* X-74599Y-55261D01* X-74673Y-55234D01* X-74747Y-55215D01* X-74823Y-55204D01* X-74900Y-55200D01* Y-54800D01* X-74823Y-54796D01* X-74747Y-54785D01* X-74673Y-54765D01* X-74599Y-54739D01* X-74527Y-54704D01* X-74456Y-54662D01* X-74387Y-54612D01* X-74318Y-54555D01* X-74251Y-54489D01* X-74185Y-54417D01* Y-55583D01* D02* G37* %LPC*% G36* X259Y44800D02* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-736Y42398D01* X-259Y42200D01* X259D01* X736Y42398D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* D02* G37* G36* X-4200Y47037D02* X-4941Y46890D01* X-5570Y46470D01* X-5990Y45841D01* X-6137Y45100D01* Y42100D01* Y38102D01* X-6802Y37437D01* X-17464D01* X-17563Y37536D01* Y41000D01* Y44000D01* X-17710Y44741D01* X-18130Y45370D01* X-18759Y45790D01* X-19500Y45937D01* X-20241Y45790D01* X-20870Y45370D01* X-21290Y44741D01* X-21437Y44000D01* Y41000D01* Y36733D01* X-21290Y35992D01* X-20870Y35364D01* X-19636Y34130D01* X-19008Y33710D01* X-18267Y33563D01* X-6000D01* X-5259Y33710D01* X-4630Y34130D01* X-2830Y35930D01* X-2410Y36559D01* X-2263Y37300D01* Y42100D01* Y45100D01* X-2410Y45841D01* X-2830Y46470D01* X-3459Y46890D01* X-4200Y47037D01* D02* G37* G36* X259Y38300D02* X-259D01* X-736Y38102D01* X-1102Y37736D01* X-1300Y37259D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37259D01* X1102Y37736D01* X736Y38102D01* X259Y38300D01* D02* G37* G36* X4300Y47037D02* X3559Y46890D01* X2930Y46470D01* X2510Y45841D01* X2363Y45100D01* Y42100D01* Y37700D01* X2510Y36959D01* X2930Y36330D01* X5630Y33630D01* X6259Y33210D01* X7000Y33063D01* X16867D01* X17608Y33210D01* X18236Y33630D01* X20670Y36064D01* X21090Y36692D01* X21237Y37433D01* Y41700D01* Y44700D01* X21090Y45441D01* X20670Y46070D01* X20041Y46490D01* X19300Y46637D01* X18559Y46490D01* X17930Y46070D01* X17510Y45441D01* X17363Y44700D01* Y41700D01* Y38236D01* X16064Y36937D01* X7802D01* X6237Y38502D01* Y42100D01* Y45100D01* X6090Y45841D01* X5670Y46470D01* X5041Y46890D01* X4300Y47037D01* D02* G37* G36* X14759Y32300D02* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y30741D01* X13398Y30264D01* X13764Y29898D01* X14241Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* D02* G37* G36* X9759D02* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y30741D01* X8398Y30264D01* X8764Y29898D01* X9241Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* D02* G37* G36* X-9241D02* X-9759D01* X-10236Y32102D01* X-10602Y31736D01* X-10800Y31259D01* Y30741D01* X-10602Y30264D01* X-10236Y29898D01* X-9759Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-9241Y32300D01* D02* G37* G36* X-14241D02* X-14759D01* X-15236Y32102D01* X-15602Y31736D01* X-15800Y31259D01* Y30741D01* X-15602Y30264D01* X-15236Y29898D01* X-14759Y29700D01* X-14241D01* X-13764Y29898D01* X-13398Y30264D01* X-13200Y30741D01* Y31259D01* X-13398Y31736D01* X-13764Y32102D01* X-14241Y32300D01* D02* G37* G36* X11059Y8800D02* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X11059D01* X11536Y6398D01* X11902Y6764D01* X12100Y7241D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* D02* G37* G36* X9000Y10000D02* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2241D01* X-11702Y1764D01* X-11336Y1398D01* X-10859Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* D02* G37* G36* X75700Y9627D02* X70300D01* X69754Y9519D01* X69291Y9209D01* X68981Y8746D01* X68873Y8200D01* Y6200D01* X68981Y5654D01* X69291Y5191D01* X69754Y4881D01* X70300Y4773D01* X71694D01* X71770Y4705D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X74230Y4705D01* X74306Y4773D01* X75700D01* X76246Y4881D01* X76709Y5191D01* X77019Y5654D01* X77127Y6200D01* Y8200D01* X77019Y8746D01* X76709Y9209D01* X76246Y9519D01* X75700Y9627D01* D02* G37* G36* X16059Y1600D02* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X16059D01* X16536Y-802D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X29559Y-2800D02* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* D02* G37* G36* X-18041Y-2900D02* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X29559D02* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* D02* G37* G36* X-11141Y-6200D02* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7759D01* X-12502Y-8236D01* X-12136Y-8602D01* X-11659Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4773D01* X70300D01* X69754Y-4881D01* X69291Y-5191D01* X68981Y-5654D01* X68873Y-6200D01* Y-8200D01* X68981Y-8746D01* X69291Y-9209D01* X69754Y-9519D01* X70300Y-9627D01* X75700D01* X76246Y-9519D01* X76709Y-9209D01* X77019Y-8746D01* X77127Y-8200D01* Y-6200D01* X77019Y-5654D01* X76709Y-5191D01* X76246Y-4881D01* X75700Y-4773D01* X74300D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X28500Y-13073D02* X27954Y-13182D01* X27491Y-13491D01* X27181Y-13954D01* X27073Y-14501D01* Y-19050D01* X26956Y-19225D01* X26876Y-19625D01* Y-23375D01* X26956Y-23775D01* X27182Y-24114D01* X27521Y-24340D01* X27922Y-24420D01* X29171D01* X29571Y-24340D01* X29910Y-24114D01* X30137Y-23775D01* X30217Y-23375D01* Y-19625D01* X30137Y-19225D01* X29927Y-18911D01* Y-14501D01* X29819Y-13954D01* X29509Y-13491D01* X29046Y-13182D01* X28500Y-13073D01* D02* G37* G36* X18800Y-14873D02* X18800Y-14873D01* X4200D01* X3654Y-14981D01* X3191Y-15291D01* X3191Y-15291D01* X1225Y-17257D01* X915Y-17720D01* X806Y-18266D01* X807Y-18266D01* Y-19521D01* X801Y-19534D01* X798Y-19834D01* X789Y-20019D01* X788Y-20035D01* X704Y-20160D01* X635Y-20508D01* Y-21492D01* X704Y-21840D01* X902Y-22135D01* X1197Y-22332D01* X1545Y-22402D01* X2105D01* X2234Y-22427D01* X2363Y-22402D01* X2923D01* X3271Y-22332D01* X3566Y-22135D01* X3763Y-21840D01* X3833Y-21492D01* Y-20508D01* X3763Y-20160D01* X3690Y-20051D01* X3667Y-19640D01* X3667Y-19537D01* X3661Y-19524D01* Y-18857D01* X4791Y-17727D01* X18209D01* X18891Y-18409D01* X19354Y-18719D01* X19900Y-18827D01* X20406Y-18727D01* X20465Y-18729D01* X20938Y-18991D01* X20947Y-19072D01* X20929Y-19121D01* X20948Y-19077D01* Y-19077D01* X20923Y-19134D01* X20923Y-19135D01* X20896Y-19176D01* X20863Y-19225D01* X20859Y-19244D01* X20831Y-19283D01* X20807Y-19379D01* X20786Y-19441D01* X20764Y-19485D01* X20745Y-19513D01* X20730Y-19531D01* X20716Y-19542D01* X20702Y-19550D01* X20681Y-19557D01* X20649Y-19564D01* X20577Y-19568D01* X20568Y-19573D01* X16734D01* X16605Y-19598D01* X16045D01* X15697Y-19668D01* X15402Y-19865D01* X15204Y-20160D01* X15135Y-20508D01* Y-21492D01* X15204Y-21840D01* X15402Y-22135D01* X15697Y-22332D01* X16045Y-22402D01* X16605D01* X16734Y-22427D01* X18438D01* X18481Y-22646D01* X18791Y-23109D01* X19254Y-23419D01* X19800Y-23527D01* X20572D01* X20582Y-23532D01* X20663Y-23536D01* X20708Y-23544D01* X20738Y-23553D01* X20756Y-23561D01* X20768Y-23569D01* X20777Y-23577D01* X20787Y-23590D01* X20799Y-23613D01* X20813Y-23648D01* X20831Y-23721D01* X20860Y-23759D01* X20863Y-23775D01* X20923Y-23865D01* X20948Y-23923D01* X20967Y-23931D01* X21090Y-24114D01* X21429Y-24340D01* X21828Y-24420D01* X23078D01* X23479Y-24340D01* X23818Y-24114D01* X24044Y-23775D01* X24124Y-23375D01* Y-19625D01* X24044Y-19225D01* X23818Y-18886D01* X23479Y-18659D01* X23078Y-18580D01* X21828D01* X21510Y-18643D01* X21429Y-18659D01* X21380Y-18662D01* X21336Y-18657D01* X21062Y-18185D01* X21066Y-18175D01* X21219Y-17946D01* X21327Y-17400D01* X21219Y-16854D01* X20909Y-16391D01* X19809Y-15291D01* X19346Y-14981D01* X18800Y-14873D01* D02* G37* G36* X240Y-32113D02* X-306Y-32221D01* X-769Y-32531D01* X-1079Y-32994D01* X-1187Y-33540D01* Y-38640D01* X-1079Y-39186D01* X-769Y-39650D01* X-306Y-39959D01* X240Y-40068D01* X786Y-39959D01* X996Y-39819D01* X1036Y-39802D01* X1067Y-39771D01* X1249Y-39650D01* X1371Y-39467D01* X1402Y-39436D01* X1419Y-39396D01* X1559Y-39186D01* X1668Y-38640D01* Y-33540D01* X1559Y-32994D01* X1249Y-32531D01* X786Y-32221D01* X240Y-32113D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44038D01* X-12208Y-44392D01* X-12562Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45862D01* X-11092Y-45508D01* X-10738Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X71000Y-27099D02* X61200D01* Y-49000D01* X71000D01* Y-27099D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7517Y-51955D01* X7519Y-51972D01* X7519Y-51981D01* X7521Y-51986D01* X7523Y-51993D01* X7530Y-52007D01* X7536Y-52023D01* X7543Y-52054D01* X7549Y-52090D01* X7566Y-52308D01* X7567Y-52394D01* X7582Y-52430D01* Y-53500D01* X7652Y-53851D01* X7851Y-54149D01* X9751Y-56049D01* X10049Y-56248D01* X10400Y-56318D01* X15935D01* X15951Y-56327D01* X15980Y-56321D01* X16007Y-56333D01* X16051Y-56334D01* X16076Y-56336D01* X16094Y-56339D01* X16103Y-56342D01* X16104Y-56342D01* X16111Y-56347D01* X16115Y-56348D01* X16126Y-56374D01* X16214Y-56411D01* X16320Y-56517D01* X16761Y-56700D01* X17239D01* X17680Y-56517D01* X17786Y-56411D01* X17874Y-56374D01* X17885Y-56348D01* X17889Y-56347D01* X17896Y-56342D01* X17897Y-56342D01* X17906Y-56339D01* X17923Y-56336D01* X17949Y-56334D01* X17993Y-56333D01* X18020Y-56321D01* X18049Y-56327D01* X18065Y-56318D01* X22637D01* X22783Y-56567D01* X22875Y-56818D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25107Y-58224D01* X25128Y-58209D01* X25179Y-58132D01* X25221Y-58077D01* X25261Y-58032D01* X25297Y-57998D01* X25328Y-57973D01* X25355Y-57956D01* X25370Y-57949D01* X27616D01* Y-58684D01* X30384D01* Y-55916D01* X27616D01* Y-56651D01* X25448D01* X25308Y-56189D01* X25313Y-56142D01* X25314Y-56139D01* X25449Y-56049D01* X27009Y-54489D01* X27045Y-54475D01* X27112Y-54409D01* X27166Y-54360D01* X27269Y-54275D01* X27302Y-54251D01* X27329Y-54235D01* X27344Y-54227D01* X27360Y-54223D01* X27366Y-54218D01* X27370Y-54217D01* X27377Y-54210D01* X27390Y-54200D01* X27559D01* X28036Y-54002D01* X28177Y-53861D01* X28188Y-53858D01* X28200Y-53855D01* X28221Y-53851D01* X28502Y-53834D01* X28592Y-53833D01* X28628Y-53818D01* X28700D01* X29051Y-53748D01* X29272Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* X29241D01* X28764Y-51198D01* X28454Y-51508D01* X28362Y-51572D01* X27800Y-51700D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-52810D01* X25990Y-52823D01* X25983Y-52830D01* X25982Y-52834D01* X25977Y-52840D01* X25973Y-52856D01* X25965Y-52871D01* X25949Y-52898D01* X25928Y-52927D01* X25785Y-53094D01* X25725Y-53155D01* X25711Y-53191D01* X24420Y-54482D01* X17855D01* X17818Y-54467D01* X17766Y-54467D01* X17759Y-54470D01* X17751Y-54468D01* X17653Y-54472D01* X17239Y-54300D01* X16761D01* X16342Y-54474D01* X16260Y-54468D01* X16247Y-54473D01* X16234Y-54467D01* X16182Y-54467D01* X16145Y-54482D01* X10780D01* X9418Y-53120D01* Y-52430D01* X9433Y-52394D01* X9434Y-52301D01* X9437Y-52227D01* X9450Y-52094D01* X9457Y-52054D01* X9464Y-52023D01* X9470Y-52007D01* X9477Y-51993D01* X9479Y-51986D01* X9481Y-51981D01* X9481Y-51972D01* X9483Y-51955D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47425D01* X1167Y-47499D01* X1166Y-47574D01* X1160Y-47631D01* X1151Y-47683D01* X1139Y-47730D01* X1125Y-47774D01* X1107Y-47815D01* X1086Y-47854D01* X1061Y-47891D01* X1033Y-47927D01* X988Y-47976D01* X972Y-48018D01* X-505Y-49495D01* X-659Y-49727D01* X-714Y-50000D01* Y-57219D01* X-733Y-57260D01* X-736Y-57362D01* X-745Y-57444D01* X-760Y-57522D01* X-781Y-57595D01* X-806Y-57666D01* X-838Y-57734D01* X-876Y-57801D01* X-920Y-57866D01* X-972Y-57930D01* X-1041Y-58005D01* X-1057Y-58048D01* X-2067Y-59058D01* X-2084Y-59061D01* X-2099Y-59082D01* X-2103Y-59083D01* X-2107Y-59085D01* X-2113Y-59086D01* X-2124Y-59093D01* X-2129Y-59095D01* X-2146Y-59100D01* X-2172Y-59105D01* X-2203Y-59110D01* X-2308Y-59118D01* X-2370Y-59119D01* X-2430Y-59145D01* X-2672Y-59193D01* X-2934Y-59369D01* X-3110Y-59631D01* X-3171Y-59941D01* Y-64931D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-769Y-65075D01* X-766Y-65059D01* Y-59941D01* X-793Y-59802D01* X-48Y-59057D01* X-5Y-59041D01* X70Y-58972D01* X134Y-58920D01* X199Y-58876D01* X266Y-58838D01* X334Y-58806D01* X405Y-58780D01* X478Y-58760D01* X556Y-58745D01* X638Y-58736D01* X740Y-58733D01* X929Y-58816D01* X1046Y-59339D01* X1003Y-59369D01* X827Y-59631D01* X766Y-59941D01* Y-62007D01* X668Y-62241D01* Y-62759D01* X766Y-62993D01* Y-65059D01* X827Y-65369D01* X1003Y-65631D01* X1265Y-65807D01* X1575Y-65868D01* X2362D01* X2672Y-65807D01* X2934Y-65631D01* X3110Y-65369D01* X3171Y-65059D01* Y-62993D01* X3269Y-62759D01* Y-62241D01* X3171Y-62007D01* Y-59941D01* X3110Y-59631D01* X2934Y-59369D01* X2702Y-59214D01* X2697Y-59177D01* X2961Y-58714D01* X20204D01* X22695Y-61205D01* X22927Y-61359D01* X23200Y-61414D01* X27616D01* Y-62084D01* X30384D01* Y-59316D01* X27616D01* Y-59986D01* X23496D01* X21005Y-57495D01* X20773Y-57341D01* X20500Y-57286D01* X1081D01* X882Y-57118D01* X714Y-56919D01* Y-50296D01* X1982Y-49028D01* X2024Y-49012D01* X2073Y-48967D01* X2109Y-48939D01* X2146Y-48914D01* X2185Y-48893D01* X2226Y-48875D01* X2270Y-48860D01* X2317Y-48849D01* X2369Y-48840D01* X2426Y-48835D01* X2501Y-48833D01* X2575Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* %LPD*% G36* X73362Y5203D02* X73328Y5199D01* X73298Y5193D01* X73272Y5184D01* X73250Y5172D01* X73232Y5157D01* X73218Y5140D01* X73208Y5120D01* X73202Y5098D01* X73200Y5073D01* X72800D01* X72798Y5098D01* X72792Y5120D01* X72782Y5140D01* X72768Y5157D01* X72750Y5172D01* X72728Y5184D01* X72702Y5193D01* X72672Y5199D01* X72638Y5203D01* X72600Y5205D01* X73400D01* X73362Y5203D01* D02* G37* G36* X73204Y4846D02* X73217Y4773D01* X73239Y4699D01* X73269Y4624D01* X73308Y4547D01* X73355Y4469D01* X73411Y4389D01* X73475Y4309D01* X73548Y4226D01* X73630Y4143D01* X72370D01* X72452Y4226D01* X72589Y4389D01* X72645Y4469D01* X72693Y4547D01* X72731Y4624D01* X72761Y4699D01* X72783Y4773D01* X72796Y4846D01* X72800Y4918D01* X73200D01* X73204Y4846D01* D02* G37* G36* X73202Y-5098D02* X73208Y-5120D01* X73218Y-5140D01* X73232Y-5157D01* X73250Y-5172D01* X73272Y-5184D01* X73298Y-5193D01* X73328Y-5199D01* X73362Y-5203D01* X73400Y-5205D01* X72600D01* X72638Y-5203D01* X72672Y-5199D01* X72702Y-5193D01* X72728Y-5184D01* X72750Y-5172D01* X72768Y-5157D01* X72782Y-5140D01* X72792Y-5120D01* X72798Y-5098D01* X72800Y-5073D01* X73200D01* X73202Y-5098D01* D02* G37* G36* X73548Y-5426D02* X73411Y-5590D01* X73355Y-5669D01* X73308Y-5747D01* X73269Y-5824D01* X73239Y-5899D01* X73217Y-5973D01* X73204Y-6046D01* X73200Y-6117D01* X72800D01* X72796Y-6046D01* X72783Y-5973D01* X72761Y-5899D01* X72731Y-5824D01* X72693Y-5747D01* X72645Y-5669D01* X72589Y-5590D01* X72525Y-5509D01* X72452Y-5426D01* X72370Y-5343D01* X73630D01* X73548Y-5426D01* D02* G37* G36* X3234Y-19652D02* X3262Y-20151D01* X3269Y-20162D01* X1199D01* X1205Y-20151D01* X1211Y-20129D01* X1217Y-20096D01* X1221Y-20051D01* X1231Y-19846D01* X1234Y-19538D01* X3234D01* X3234Y-19652D01* D02* G37* G36* X21230Y-21530D02* X21251Y-23614D01* X21226Y-23516D01* X21192Y-23429D01* X21150Y-23352D01* X21098Y-23285D01* X21038Y-23228D01* X20969Y-23182D01* X20891Y-23146D01* X20804Y-23121D01* X20708Y-23105D01* X20604Y-23100D01* Y-22000D01* Y-21100D01* Y-20000D01* X20705Y-19994D01* X20798Y-19975D01* X20883Y-19945D01* X20959Y-19902D01* X21028Y-19847D01* X21089Y-19779D01* X21141Y-19699D01* X21186Y-19607D01* X21223Y-19502D01* X21251Y-19386D01* X21230Y-21530D01* D02* G37* G36* X69313Y-28517D02* X69323Y-28536D01* X69341Y-28563D01* X69359Y-28600D01* X69378Y-28656D01* X69406Y-28721D01* X69433Y-28785D01* X69452Y-28869D01* X69507Y-29054D01* X69554Y-29276D01* X69591Y-29516D01* X69600Y-29784D01* Y-29858D01* X69591Y-29914D01* Y-29979D01* X69572Y-30053D01* X69545Y-30219D01* X69489Y-30413D01* X69415Y-30608D01* X69304Y-30783D01* X69230Y-30876D01* X69156Y-30950D01* X69147D01* X69138Y-30968D01* X69110Y-30987D01* X69073Y-31005D01* X69026Y-31033D01* X68971Y-31070D01* X68906Y-31107D01* X68832Y-31135D01* X68749Y-31172D01* X68656Y-31209D01* X68444Y-31274D01* X68194Y-31311D01* X67907Y-31329D01* X64189D01* Y-32633D01* X63292D01* Y-30016D01* X68074D01* X68083D01* X68092D01* X68148Y-30006D01* X68231Y-29988D01* X68314Y-29942D01* X68407Y-29877D01* X68453Y-29831D01* X68490Y-29775D01* X68518Y-29710D01* X68546Y-29636D01* X68555Y-29553D01* X68564Y-29451D01* Y-29396D01* X68555Y-29340D01* X68546Y-29257D01* X68536Y-29165D01* X68508Y-29054D01* X68481Y-28943D01* X68435Y-28822D01* X69313Y-28508D01* Y-28517D01* D02* G37* G36* X66890Y-33457D02* Y-34289D01* X66085D01* Y-34308D01* X66094Y-34354D01* X66122Y-34419D01* X66150Y-34502D01* X66205Y-34604D01* X66270Y-34715D01* X66363Y-34826D01* X66474Y-34937D01* X66492Y-34946D01* X66529Y-34983D01* X66603Y-35038D01* X66705Y-35103D01* X66825Y-35168D01* X66973Y-35242D01* X67130Y-35316D01* X67315Y-35381D01* X68582D01* Y-34502D01* X69461D01* Y-37277D01* X68582D01* Y-36694D01* X65918D01* Y-37277D01* X65049D01* Y-35686D01* X66039Y-35455D01* X66030D01* X66011Y-35445D01* X65983Y-35427D01* X65946Y-35408D01* X65845Y-35362D01* X65715Y-35288D01* X65576Y-35205D01* X65438Y-35103D01* X65308Y-34983D01* X65188Y-34853D01* X65179Y-34835D01* X65141Y-34789D01* X65095Y-34705D01* X65049Y-34604D01* X64994Y-34465D01* X64956Y-34317D01* X64920Y-34141D01* X64910Y-33947D01* Y-33882D01* X64920Y-33799D01* X64929Y-33706D01* X64947Y-33595D01* X64966Y-33466D01* X65003Y-33346D01* X65049Y-33216D01* X66890Y-33457D01* D02* G37* G36* X69212Y-38341D02* X69230Y-38359D01* X69248Y-38396D01* X69276Y-38442D01* X69304Y-38498D01* X69332Y-38572D01* X69369Y-38655D01* X69406Y-38748D01* X69443Y-38849D01* X69480Y-38960D01* X69535Y-39210D01* X69582Y-39488D01* X69600Y-39784D01* Y-39867D01* X69591Y-39922D01* Y-39996D01* X69582Y-40080D01* X69545Y-40265D01* X69498Y-40468D01* X69424Y-40681D01* X69313Y-40884D01* X69248Y-40977D01* X69174Y-41060D01* X69165D01* X69156Y-41079D01* X69128Y-41097D01* X69091Y-41125D01* X69054Y-41162D01* X68999Y-41199D01* X68934Y-41236D01* X68860Y-41273D01* X68684Y-41347D01* X68481Y-41421D01* X68240Y-41467D01* X68102Y-41476D01* X67963Y-41486D01* X65956D01* Y-42411D01* X65049D01* Y-41486D01* X64087D01* X63930Y-40172D01* X65049D01* Y-38748D01* X65956Y-38886D01* Y-40172D01* X67963D01* X67981D01* X68018D01* X68074Y-40163D01* X68138Y-40154D01* X68222Y-40135D01* X68296Y-40107D01* X68370Y-40070D01* X68425Y-40024D01* X68435Y-40015D01* X68444Y-39996D01* X68471Y-39959D01* X68490Y-39904D01* X68518Y-39839D01* X68546Y-39756D01* X68555Y-39663D01* X68564Y-39543D01* Y-39469D01* X68555Y-39395D01* X68536Y-39293D01* X68518Y-39173D01* X68481Y-39044D01* X68435Y-38905D01* X68370Y-38766D01* X69212Y-38331D01* Y-38341D01* D02* G37* G36* X68832Y-42993D02* X68860Y-43021D01* X68897Y-43058D01* X68943Y-43123D01* X68999Y-43197D01* X69073Y-43289D01* X69138Y-43391D01* X69212Y-43511D01* X69286Y-43650D01* X69350Y-43798D01* X69415Y-43955D01* X69480Y-44131D01* X69526Y-44307D01* X69563Y-44501D01* X69591Y-44714D01* X69600Y-44927D01* Y-45001D01* X69591Y-45056D01* Y-45130D01* X69582Y-45213D01* X69572Y-45297D01* X69554Y-45398D01* X69517Y-45620D01* X69452Y-45852D01* X69369Y-46092D01* X69258Y-46323D01* Y-46333D01* X69239Y-46351D01* X69221Y-46379D01* X69193Y-46425D01* X69110Y-46527D01* X68999Y-46666D01* X68851Y-46814D01* X68675Y-46971D01* X68462Y-47128D01* X68222Y-47267D01* X68212D01* X68194Y-47285D01* X68148Y-47295D01* X68102Y-47322D01* X68037Y-47350D01* X67953Y-47378D01* X67861Y-47406D01* X67759Y-47433D01* X67639Y-47470D01* X67519Y-47498D01* X67380Y-47526D01* X67232Y-47554D01* X66918Y-47591D01* X66566Y-47609D01* X66557D01* X66520D01* X66474D01* X66409Y-47600D01* X66325D01* X66233Y-47591D01* X66131Y-47581D01* X66011Y-47563D01* X65761Y-47526D01* X65493Y-47461D01* X65215Y-47378D01* X64947Y-47258D01* X64938D01* X64920Y-47239D01* X64882Y-47221D01* X64836Y-47193D01* X64781Y-47156D01* X64716Y-47110D01* X64559Y-47008D01* X64392Y-46869D01* X64217Y-46703D01* X64059Y-46508D01* X63911Y-46296D01* Y-46286D01* X63893Y-46268D01* X63874Y-46231D01* X63856Y-46185D01* X63828Y-46129D01* X63800Y-46055D01* X63763Y-45981D01* X63726Y-45889D01* X63661Y-45685D01* X63606Y-45445D01* X63569Y-45186D01* X63551Y-44908D01* Y-44751D01* X63560Y-44695D01* X63569Y-44557D01* X63587Y-44390D01* X63615Y-44224D01* X63652Y-44048D01* X63708Y-43881D01* Y-43872D01* X63717Y-43863D01* X63736Y-43807D01* X63772Y-43724D01* X63828Y-43613D01* X63893Y-43493D01* X63976Y-43354D01* X64069Y-43206D01* X64179Y-43058D01* X64984Y-43724D01* X64975Y-43733D01* X64966Y-43752D01* X64947Y-43780D01* X64920Y-43817D01* X64882Y-43863D01* X64846Y-43928D01* X64771Y-44066D01* X64697Y-44242D01* X64623Y-44436D01* X64577Y-44649D01* X64559Y-44760D01* Y-44936D01* X64568Y-44982D01* X64587Y-45084D01* X64623Y-45223D01* X64679Y-45371D01* X64771Y-45528D01* X64827Y-45611D01* X64892Y-45685D01* X64966Y-45759D01* X65058Y-45833D01* X65067D01* X65086Y-45852D01* X65114Y-45870D01* X65151Y-45889D01* X65206Y-45916D01* X65271Y-45944D01* X65345Y-45981D01* X65438Y-46009D01* X65530Y-46046D01* X65641Y-46083D01* X65771Y-46111D01* X65909Y-46138D01* X66048Y-46157D01* X66215Y-46175D01* X66381Y-46194D01* X66566D01* X66575D01* X66612D01* X66659D01* X66733Y-46185D01* X66816D01* X66908Y-46175D01* X67019Y-46166D01* X67130Y-46148D01* X67371Y-46101D01* X67620Y-46046D01* X67861Y-45953D01* X67963Y-45898D01* X68064Y-45833D01* X68074D01* X68083Y-45815D01* X68138Y-45768D01* X68212Y-45685D01* X68305Y-45574D01* X68397Y-45435D01* X68471Y-45269D01* X68527Y-45075D01* X68536Y-44964D01* X68546Y-44853D01* Y-44788D01* X68536Y-44714D01* X68527Y-44631D01* X68518Y-44529D01* X68490Y-44418D01* X68462Y-44307D01* X68416Y-44196D01* X68407Y-44187D01* X68388Y-44150D01* X68361Y-44094D01* X68323Y-44020D01* X68268Y-43928D01* X68203Y-43826D01* X68120Y-43715D01* X68037Y-43604D01* X68823Y-42984D01* X68832Y-42993D01* D02* G37* G36* X9105Y-51772D02* X9083Y-51809D01* X9064Y-51854D01* X9047Y-51907D01* X9032Y-51968D01* X9021Y-52036D01* X9005Y-52197D01* X9001Y-52289D01* X9000Y-52388D01* X8000D01* X7999Y-52289D01* X7979Y-52036D01* X7967Y-51968D01* X7953Y-51907D01* X7936Y-51854D01* X7917Y-51809D01* X7895Y-51772D01* X7870Y-51743D01* X9130D01* X9105Y-51772D01* D02* G37* G36* X28004Y-52333D02* X28032Y-52347D01* X28069Y-52359D01* X28116Y-52370D01* X28172Y-52379D01* X28311Y-52393D01* X28486Y-52399D01* X28588Y-52400D01* Y-53400D01* X28486Y-53401D01* X28172Y-53421D01* X28116Y-53430D01* X28069Y-53441D01* X28032Y-53453D01* X28004Y-53468D01* X27985Y-53483D01* Y-52317D01* X28004Y-52333D01* D02* G37* G36* X27291Y-53800D02* X27253Y-53803D01* X27211Y-53814D01* X27165Y-53832D01* X27116Y-53857D01* X27063Y-53890D01* X27006Y-53930D01* X26882Y-54033D01* X26814Y-54095D01* X26743Y-54164D01* X26035Y-53457D01* X26105Y-53386D01* X26270Y-53194D01* X26310Y-53137D01* X26343Y-53084D01* X26368Y-53035D01* X26386Y-52989D01* X26397Y-52947D01* X26400Y-52909D01* X27291Y-53800D01* D02* G37* G36* X17980Y-55900D02* X17922Y-55902D01* X17868Y-55907D01* X17817Y-55915D01* X17771Y-55927D01* X17727Y-55942D01* X17688Y-55961D01* X17652Y-55982D01* X17621Y-56008D01* X17593Y-56036D01* X17568Y-56068D01* Y-54932D01* X17567Y-54926D01* X17571Y-54920D01* X17582Y-54916D01* X17598Y-54912D01* X17620Y-54908D01* X17649Y-54905D01* X17769Y-54900D01* X17820Y-54900D01* X17980Y-55900D01* D02* G37* G36* X16231Y-54900D02* X16402Y-54912D01* X16418Y-54916D01* X16429Y-54920D01* X16433Y-54926D01* X16432Y-54932D01* Y-56068D01* X16408Y-56036D01* X16379Y-56008D01* X16348Y-55982D01* X16312Y-55961D01* X16273Y-55942D01* X16229Y-55927D01* X16183Y-55915D01* X16132Y-55907D01* X16078Y-55902D01* X16020Y-55900D01* X16180Y-54900D01* X16231Y-54900D01* D02* G37* G36* X28028Y-57700D02* X28027Y-57662D01* X28023Y-57628D01* X28017Y-57598D01* X28009Y-57572D01* X27998Y-57550D01* X27985Y-57532D01* X27969Y-57518D01* X27951Y-57508D01* X27931Y-57502D01* X27908Y-57500D01* Y-57100D01* X27931Y-57098D01* X27951Y-57092D01* X27969Y-57082D01* X27985Y-57068D01* X27998Y-57050D01* X28009Y-57028D01* X28017Y-57002D01* X28023Y-56972D01* X28027Y-56938D01* X28028Y-56900D01* Y-57700D01* D02* G37* G36* X24595Y-56811D02* X24891Y-56972D01* X24979Y-57011D01* X25141Y-57068D01* X25214Y-57086D01* X25283Y-57096D01* X25346Y-57100D01* X25440Y-57500D01* X25364Y-57505D01* X25290Y-57519D01* X25218Y-57542D01* X25148Y-57575D01* X25080Y-57618D01* X25014Y-57670D01* X24949Y-57731D01* X24886Y-57802D01* X24826Y-57882D01* X24767Y-57971D01* X24487Y-56743D01* X24595Y-56811D01* D02* G37* G36* X2491Y-48400D02* X2400Y-48402D01* X2313Y-48410D01* X2228Y-48425D01* X2148Y-48445D01* X2070Y-48471D01* X1995Y-48504D01* X1924Y-48542D01* X1856Y-48587D01* X1792Y-48637D01* X1730Y-48694D01* X1306Y-48270D01* X1363Y-48208D01* X1413Y-48144D01* X1458Y-48076D01* X1496Y-48005D01* X1529Y-47930D01* X1555Y-47853D01* X1575Y-47771D01* X1590Y-47687D01* X1598Y-47600D01* X1600Y-47509D01* X2491Y-48400D01* D02* G37* G36* X306Y-57214D02* X324Y-57316D01* X354Y-57406D01* X396Y-57484D01* X450Y-57550D01* X516Y-57604D01* X594Y-57646D01* X684Y-57676D01* X786Y-57694D01* X900Y-57700D01* X724Y-58300D01* X606Y-58304D01* X491Y-58317D01* X380Y-58338D01* X272Y-58368D01* X168Y-58406D01* X68Y-58453D01* X-30Y-58508D01* X-123Y-58571D01* X-213Y-58644D01* X-300Y-58724D01* X-724Y-58300D01* X-644Y-58213D01* X-571Y-58123D01* X-508Y-58030D01* X-453Y-57933D01* X-406Y-57832D01* X-368Y-57728D01* X-338Y-57620D01* X-317Y-57509D01* X-304Y-57394D01* X-300Y-57276D01* X300Y-57100D01* X306Y-57214D01* D02* G37* G36* X-1149Y-59573D02* X-1173Y-59598D01* X-1192Y-59623D01* X-1209Y-59646D01* X-1221Y-59669D01* X-1229Y-59692D01* X-1234Y-59713D01* X-1235Y-59734D01* X-1232Y-59754D01* X-1226Y-59773D01* X-1215Y-59792D01* X-2362Y-59552D01* X-2288Y-59550D01* X-2154Y-59540D01* X-2095Y-59531D01* X-2041Y-59520D01* X-1992Y-59506D01* X-1948Y-59489D01* X-1910Y-59470D01* X-1877Y-59449D01* X-1849Y-59425D01* X-1149Y-59573D01* D02* G37* G36* X28028Y-61300D02* X28026Y-61243D01* X28021Y-61192D01* X28012Y-61147D01* X27999Y-61108D01* X27983Y-61075D01* X27963Y-61048D01* X27940Y-61027D01* X27913Y-61012D01* X27882Y-61003D01* X27848Y-61000D01* Y-60400D01* X27882Y-60397D01* X27913Y-60388D01* X27940Y-60373D01* X27963Y-60352D01* X27983Y-60325D01* X27999Y-60292D01* X28012Y-60253D01* X28021Y-60208D01* X28026Y-60157D01* X28028Y-60100D01* Y-61300D01* D02* G37* D10* X-69500Y-17100D02* Y-10500D01* X-74700Y-5300D02* X-69500Y-10500D01* X-74700Y-5300D02* Y400D01* X-58263Y28563D02* X-56600Y26900D01* X-62500Y28563D02* X-58263D01* X-52000Y-21000D02* X-51000Y-22000D01* X-60200Y-21000D02* X-52000D01* X-62000Y-19200D02* X-60200Y-21000D01* X-67400Y-19200D02* X-62000D01* X-69500Y-17100D02* X-67400Y-19200D01* X-73300Y-700D02* X-56900Y15700D01* X-54000D02* X-41154D01* X-73300Y-4600D02* Y-700D01* Y-4600D02* X-69963Y-7937D01* X-62500D01* X-74700Y400D02* X-62500Y12600D01* X-56900Y15700D02* X-54000D01* X-62500Y12600D02* Y20689D01* X-42700Y-13700D02* Y-10600D01* X-46100Y-17100D02* X-42700Y-13700D01* X-51900Y-17100D02* X-46100D01* X-53900Y-15100D02* X-51900Y-17100D01* X-53900Y-15100D02* Y-12100D01* X-55300Y-10700D02* X-53900Y-12100D01* X-58000Y-10700D02* X-55300D01* X-59174Y-11874D02* X-58000Y-10700D01* X-62500Y-11874D02* X-59174D01* X-56300Y-14800D02* Y-13100D01* X-51800Y-19300D02* X-22500D01* X-56300Y-14800D02* X-51800Y-19300D01* X-54989Y20689D02* X-54000Y19700D01* X-62500Y20689D02* X-54989D01* X28700Y-52900D02* X29500Y-52100D01* X10400Y-55400D02* X24800D01* X8500Y-53500D02* Y-51100D01* X-78400Y-53500D02* Y-52000D01* Y-55000D02* Y-53500D01* X27300Y-52900D02* X28700D01* X24800Y-55400D02* X27300Y-52900D01* X8500Y-53500D02* X10400Y-55400D01* D11* X-62500Y-63D02* X-60137D01* X-51900Y-8300D01* Y-11100D02* Y-8300D01* X-51400Y-14500D02* X-49700Y-12800D01* Y-9100D01* X-58500Y-300D02* X-49700Y-9100D01* X-58500Y-300D02* Y1000D01* X-60500Y3000D02* X-58500Y1000D01* X-74900Y-55000D02* X-73500D01* X-74500Y-52000D02* X-73500D01* X-56000Y-34000D02* X-47200Y-42800D01* X-40900D02* X-39700Y-41600D01* X-47200Y-42800D02* X-40900D01* X-58100Y-34900D02* X-56231D01* X-47431Y-43700D01* X-63000Y-34000D02* X-56000D01* X-47431Y-43700D02* X-37700D01* X-61137Y-37937D02* X-58100Y-34900D01* X73000Y-7200D02* Y-4700D01* Y3500D02* Y7200D01* X-63000Y-37937D02* X-61137D01* X24000Y-57500D02* X24200Y-57300D01* X29000D01* D14* X6600Y57700D02* X9300Y55000D01* X27100D01* X28100Y54000D01* X228Y57700D02* X6600D01* X3165Y58700D02* X7200D01* X9741Y56159D02* X29641D01* X7200Y58700D02* X9741Y56159D01* X1969Y59897D02* X3165Y58700D01* X-1969Y59897D02* Y62500D01* Y59897D02* X228Y57700D01* X1969Y59897D02* Y62500D01* X29641Y56159D02* X32100Y53700D01* X23200Y-60700D02* X29000D01* X20500Y-58000D02* X23200Y-60700D01* X0Y-58000D02* X20500D01* X0Y-50000D02* X2500Y-47500D01* X0Y-58000D02* Y-50000D01* X-1969Y-59969D02* X0Y-58000D01* X-1969Y-62500D02* Y-59969D01* D16* X-54000Y19700D02* D03* Y15700D02* D03* D17* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D18* X-77000Y45063D02* D03* Y16000D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D19* X-62500Y24626D02* D03* Y32500D02* D03* Y28563D02* D03* Y36437D02* D03* Y40374D02* D03* Y20689D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D50* X240Y-38640D02* Y-33540D01* X28500Y-16400D02* Y-14501D01* Y-21200D02* Y-18700D01* Y-16400D01* X16734Y-21000D02* X21953D01* X21854Y-22100D02* X22454Y-21500D01* X19800Y-22100D02* X21854D01* X21953Y-21000D02* X22454Y-21500D01* X18000Y-16300D02* X18800D01* X15800D02* X18000D01* X4200D02* X15800D01* X18800D02* X19900Y-17400D01* X2234Y-18266D02* X4200Y-16300D01* X2234Y-21000D02* Y-18266D01* X-15354Y-26000D02* X-10354Y-21000D01* X-8234D01* D51* X-18000Y-68000D02* Y-54000D01* Y-68000D02* X-17000Y-69000D01* X-22500Y52100D02* X-19500D01* X-23000D02* X-22500D01* X-19500D02* X1500D01* X-27000Y48100D02* X-23000Y52100D01* X1500D02* X4500D01* X-27000Y-5400D02* Y48100D01* X-15354Y-38854D02* Y-26000D01* X-25700Y-49200D02* X-15354Y-38854D01* X-32600Y-49200D02* X-25700D01* X32000Y63800D02* X43000Y52800D01* X22200Y63800D02* X32000D01* X43000Y-67000D02* Y52800D01* X-15354Y-26000D02* Y-17046D01* X-27000Y-5400D02* X-15354Y-17046D01* X43000Y-70000D02* Y-67000D01* Y-73000D02* Y-70000D01* D52* X-17000Y-69000D02* X-14532Y-71469D01* Y-77000D02* Y-71469D01* D53* X-4200Y42100D02* Y45100D01* Y39100D02* Y42100D01* Y37300D02* Y39100D01* X-19500Y41000D02* Y44000D01* Y38000D02* Y41000D01* Y36733D02* Y38000D01* X-6000Y35500D02* X-4200Y37300D01* X-18267Y35500D02* X-6000D01* X-19500Y36733D02* X-18267Y35500D01* X16867Y35000D02* X19300Y37433D01* Y38700D01* X7000Y35000D02* X16867D01* X4300Y37700D02* X7000Y35000D01* X19300Y41700D02* Y44700D01* Y38700D02* Y41700D01* X4300Y42100D02* Y45100D01* Y39100D02* Y42100D01* Y37700D02* Y39100D01* D54* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-59900Y40300D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X-42700Y-10600D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X2500Y-47500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-60500Y3000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X-51400Y-14500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X19800Y-22100D02* D03* X22454Y-21500D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-11500Y-31900D02* D03* X-51500Y-31600D02* D03* X-51900Y-11100D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X18000Y-16300D02* D03* X15800D02* D03* X19900Y-17400D02* D03* X-39700Y-41600D02* D03* X-37700Y-43700D02* D03* X24000Y-57500D02* D03* X27300Y-52900D02* D03* X-56300Y-13100D02* D03* X-22500Y-19300D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* X29500Y-52300D02* D03* D56* X4500Y52100D02* D03* Y55100D02* D03* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X-19500Y41000D02* D03* Y38000D02* D03* Y44000D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X19300Y44700D02* D03* Y41700D02* D03* Y38700D02* D03* X4300Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X-4200Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X1500Y52100D02* D03* Y55100D02* D03* X-22500Y52100D02* D03* X-19500D02* D03* X-22500Y55100D02* D03* X-19500D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GTO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=65535* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD12C,0.00100*% %ADD13C,0.00787*% %ADD14C,0.00600*% %ADD15C,0.00500*% G36* X-53050Y17050D02* X-53400D01* Y18350D01* X-53050D01* Y17050D01* D02* G37* G36* X-54600Y18350D02* Y17050D01* X-54950Y17050D01* Y18350D01* X-54600Y18350D01* D02* G37* G36* X11100Y-20650D02* X12500D01* Y-21350D01* X11100D01* Y-22550D01* X10500D01* Y-19450D01* X11100D01* Y-20650D01* D02* G37* G36* X-3400D02* X-2000D01* Y-21350D01* X-3400D01* Y-22550D01* X-4000D01* Y-19450D01* X-3400D01* Y-20650D01* D02* G37* G36* X-12500Y-41000D02* X-14000D01* Y-38000D01* X-12500D01* Y-41000D01* D02* G37* G36* X-22000D02* X-23500D01* Y-38000D01* X-22000D01* Y-41000D01* D02* G37* G36* X-25100Y-41300D02* X-29900D01* Y-40800D01* X-25100D01* Y-41300D01* D02* G37* G36* X-31600D02* X-36400D01* Y-40800D01* X-31600D01* Y-41300D01* D02* G37* G36* X-25100Y-43200D02* X-29900D01* Y-42700D01* X-25100D01* Y-43200D01* D02* G37* G36* X-31600D02* X-36400D01* Y-42700D01* X-31600D01* Y-43200D01* D02* G37* G36* X-25100Y-55800D02* X-29900D01* Y-55300D01* X-25100D01* Y-55800D01* D02* G37* G36* X-31600D02* X-36400D01* Y-55300D01* X-31600D01* Y-55800D01* D02* G37* G36* X-25100Y-57700D02* X-29900D01* Y-57200D01* X-25100D01* Y-57700D01* D02* G37* G36* X-31600D02* X-36400D01* Y-57200D01* X-31600D01* Y-57700D01* D02* G37* G36* X-46734Y-23396D02* X-46697Y-23400D01* X-46652Y-23403D01* X-46608Y-23411D01* X-46556Y-23418D01* X-46445Y-23444D01* X-46390Y-23463D01* X-46330Y-23481D01* X-46275Y-23507D01* X-46220Y-23537D01* X-46164Y-23570D01* X-46116Y-23607D01* X-46112Y-23611D01* X-46105Y-23618D01* X-46094Y-23629D01* X-46075Y-23648D01* X-46057Y-23670D01* X-46038Y-23696D01* X-46012Y-23725D01* X-45990Y-23762D01* X-45968Y-23803D01* X-45946Y-23847D01* X-45924Y-23896D01* X-45905Y-23951D01* X-45886Y-24006D01* X-45875Y-24069D01* X-45868Y-24136D01* X-45864Y-24206D01* Y-24243D01* X-45868Y-24269D01* X-45872Y-24303D01* X-45879Y-24340D01* X-45886Y-24384D01* X-45894Y-24428D01* X-45924Y-24524D01* X-45946Y-24573D01* X-45968Y-24624D01* X-45998Y-24672D01* X-46031Y-24721D01* X-46068Y-24769D01* X-46112Y-24809D01* X-46116Y-24813D01* X-46123Y-24817D01* X-46138Y-24828D01* X-46157Y-24843D01* X-46183Y-24858D01* X-46216Y-24876D01* X-46249Y-24894D01* X-46290Y-24913D01* X-46338Y-24935D01* X-46390Y-24954D01* X-46445Y-24972D01* X-46508Y-24987D01* X-46575Y-25002D01* X-46645Y-25013D01* X-46719Y-25017D01* X-46800Y-25020D01* X-46804D01* X-46819D01* X-46841D01* X-46871Y-25017D01* X-46908Y-25013D01* X-46948Y-25009D01* X-46993Y-25002D01* X-47045Y-24994D01* X-47152Y-24969D01* X-47207Y-24950D01* X-47263Y-24928D01* X-47322Y-24906D01* X-47374Y-24876D01* X-47429Y-24843D01* X-47477Y-24806D01* X-47481Y-24802D01* X-47489Y-24795D01* X-47500Y-24783D01* X-47518Y-24765D01* X-47537Y-24743D01* X-47559Y-24717D01* X-47585Y-24684D01* X-47607Y-24647D01* X-47633Y-24606D01* X-47655Y-24562D01* X-47677Y-24513D01* X-47696Y-24458D01* X-47714Y-24402D01* X-47725Y-24340D01* X-47733Y-24273D01* X-47736Y-24203D01* Y-24166D01* X-47733Y-24140D01* X-47729Y-24106D01* X-47722Y-24069D01* X-47714Y-24025D01* X-47703Y-23981D01* X-47692Y-23936D01* X-47674Y-23884D01* X-47655Y-23836D01* X-47629Y-23785D01* X-47600Y-23736D01* X-47566Y-23688D01* X-47526Y-23644D01* X-47481Y-23603D01* X-47477Y-23599D01* X-47470Y-23596D01* X-47455Y-23585D01* X-47437Y-23570D01* X-47411Y-23555D01* X-47378Y-23537D01* X-47344Y-23518D01* X-47304Y-23496D01* X-47256Y-23477D01* X-47204Y-23459D01* X-47148Y-23440D01* X-47089Y-23426D01* X-47026Y-23411D01* X-46956Y-23400D01* X-46882Y-23396D01* X-46804Y-23392D01* X-46800D01* X-46786D01* X-46763D01* X-46734Y-23396D01* D02* G37* G36* X-48236Y-25938D02* X-48210Y-25945D01* X-48180Y-25953D01* X-48151Y-25967D01* X-48118Y-25986D01* X-48088Y-26012D01* X-48084Y-26016D01* X-48077Y-26027D01* X-48066Y-26041D01* X-48051Y-26064D01* X-48036Y-26093D01* X-48025Y-26127D01* X-48018Y-26167D01* X-48014Y-26208D01* Y-26226D01* X-48018Y-26249D01* X-48025Y-26278D01* X-48033Y-26308D01* X-48044Y-26341D01* X-48062Y-26375D01* X-48088Y-26404D01* X-48092Y-26408D01* X-48103Y-26415D01* X-48118Y-26426D01* X-48140Y-26441D01* X-48166Y-26456D01* X-48199Y-26467D01* X-48236Y-26474D01* X-48277Y-26478D01* X-48280D01* X-48295D01* X-48317Y-26474D01* X-48343Y-26467D01* X-48369Y-26460D01* X-48403Y-26449D01* X-48432Y-26430D01* X-48462Y-26404D01* X-48465Y-26400D01* X-48473Y-26389D01* X-48484Y-26375D01* X-48499Y-26349D01* X-48513Y-26323D01* X-48525Y-26289D01* X-48532Y-26249D01* X-48536Y-26208D01* Y-26186D01* X-48532Y-26164D01* X-48525Y-26138D01* X-48517Y-26108D01* X-48502Y-26075D01* X-48484Y-26041D01* X-48458Y-26012D01* X-48454Y-26008D01* X-48443Y-26001D01* X-48428Y-25986D01* X-48406Y-25971D01* X-48380Y-25960D01* X-48351Y-25945D01* X-48314Y-25938D01* X-48277Y-25934D01* X-48273D01* X-48258D01* X-48236Y-25938D01* D02* G37* G36* X-45905Y-26867D02* X-46234D01* Y-26352D01* X-47359D01* Y-26852D01* X-47692D01* Y-25923D01* X-46234D01* Y-25449D01* X-45905D01* Y-26867D01* D02* G37* G36* X-47015Y-27325D02* X-46971D01* X-46919Y-27333D01* X-46856Y-27336D01* X-46789Y-27348D01* X-46715Y-27359D01* X-46641Y-27377D01* X-46564Y-27396D01* X-46490Y-27422D01* X-46412Y-27451D01* X-46342Y-27488D01* X-46275Y-27529D01* X-46212Y-27577D01* X-46160Y-27632D01* X-46157Y-27636D01* X-46149Y-27647D01* X-46138Y-27662D01* X-46120Y-27688D01* X-46101Y-27718D01* X-46079Y-27755D01* X-46057Y-27795D01* X-46035Y-27843D01* X-46009Y-27899D01* X-45986Y-27954D01* X-45964Y-28021D01* X-45946Y-28088D01* X-45927Y-28162D01* X-45916Y-28239D01* X-45909Y-28321D01* X-45905Y-28406D01* Y-28990D01* X-48221D01* Y-28391D01* X-48217Y-28358D01* X-48214Y-28313D01* X-48206Y-28265D01* X-48199Y-28210D01* X-48192Y-28150D01* X-48162Y-28021D01* X-48140Y-27954D01* X-48118Y-27888D01* X-48088Y-27821D01* X-48055Y-27755D01* X-48018Y-27692D01* X-47973Y-27632D01* X-47970Y-27629D01* X-47962Y-27618D01* X-47947Y-27603D01* X-47925Y-27584D01* X-47896Y-27558D01* X-47862Y-27533D01* X-47818Y-27507D01* X-47770Y-27477D01* X-47714Y-27448D01* X-47648Y-27422D01* X-47574Y-27392D01* X-47492Y-27370D01* X-47403Y-27351D01* X-47304Y-27336D01* X-47196Y-27325D01* X-47078Y-27322D01* X-47071D01* X-47048D01* X-47015Y-27325D01* D02* G37* G36* X-45905Y-31773D02* X-46829Y-32491D01* X-45905D01* Y-32923D01* X-48380D01* X-48428Y-32491D01* X-46928D01* X-47692Y-31821D01* Y-31347D01* X-46889Y-32043D01* X-45905Y-31277D01* Y-31773D01* D02* G37* G36* X-45975Y-33490D02* X-45972Y-33493D01* X-45964Y-33508D01* X-45957Y-33523D01* X-45949Y-33541D01* X-45942Y-33564D01* X-45920Y-33623D01* X-45901Y-33693D01* X-45883Y-33775D01* X-45868Y-33863D01* X-45864Y-33963D01* Y-33989D01* X-45868Y-34008D01* Y-34030D01* X-45872Y-34056D01* X-45883Y-34119D01* X-45901Y-34185D01* X-45927Y-34255D01* X-45964Y-34326D01* X-46016Y-34389D01* X-46023Y-34396D01* X-46046Y-34415D01* X-46079Y-34437D01* X-46127Y-34466D01* X-46186Y-34496D01* X-46260Y-34518D01* X-46342Y-34537D01* X-46438Y-34544D01* X-48055D01* Y-35062D01* X-48384D01* Y-34111D01* X-46408D01* X-46404D01* X-46401D01* X-46379Y-34108D01* X-46349Y-34100D01* X-46312Y-34082D01* X-46275Y-34056D01* X-46260Y-34037D01* X-46245Y-34015D01* X-46234Y-33989D01* X-46223Y-33956D01* X-46220Y-33922D01* X-46216Y-33882D01* Y-33860D01* X-46220Y-33834D01* X-46223Y-33800D01* X-46231Y-33756D01* X-46242Y-33708D01* X-46257Y-33652D01* X-46279Y-33590D01* X-45975Y-33486D01* Y-33490D01* D02* G37* G36* X-46153Y-35284D02* X-46145Y-35295D01* X-46131Y-35310D01* X-46112Y-35332D01* X-46090Y-35362D01* X-46064Y-35395D01* X-46038Y-35436D01* X-46012Y-35484D01* X-45983Y-35532D01* X-45957Y-35591D01* X-45931Y-35650D01* X-45909Y-35717D01* X-45890Y-35787D01* X-45875Y-35861D01* X-45868Y-35939D01* X-45864Y-36020D01* Y-36050D01* X-45868Y-36072D01* Y-36098D01* X-45872Y-36128D01* X-45875Y-36161D01* X-45883Y-36198D01* X-45898Y-36283D01* X-45924Y-36372D01* X-45957Y-36464D01* X-46001Y-36557D01* Y-36561D01* X-46009Y-36568D01* X-46016Y-36579D01* X-46027Y-36598D01* X-46060Y-36638D01* X-46105Y-36690D01* X-46164Y-36753D01* X-46234Y-36812D01* X-46316Y-36871D01* X-46412Y-36927D01* X-46416D01* X-46423Y-36934D01* X-46442Y-36938D01* X-46460Y-36949D01* X-46486Y-36957D01* X-46519Y-36968D01* X-46556Y-36982D01* X-46597Y-36994D01* X-46641Y-37005D01* X-46693Y-37019D01* X-46745Y-37031D01* X-46804Y-37038D01* X-46930Y-37053D01* X-47067Y-37060D01* X-47071D01* X-47085D01* X-47104D01* X-47130Y-37056D01* X-47163D01* X-47200Y-37053D01* X-47241Y-37049D01* X-47289Y-37042D01* X-47389Y-37027D01* X-47496Y-37001D01* X-47607Y-36968D01* X-47711Y-36923D01* X-47714D01* X-47722Y-36916D01* X-47736Y-36908D01* X-47755Y-36897D01* X-47777Y-36882D01* X-47803Y-36868D01* X-47862Y-36823D01* X-47929Y-36772D01* X-47999Y-36709D01* X-48062Y-36635D01* X-48121Y-36549D01* Y-36546D01* X-48129Y-36538D01* X-48136Y-36527D01* X-48144Y-36509D01* X-48155Y-36487D01* X-48166Y-36461D01* X-48180Y-36427D01* X-48195Y-36394D01* X-48221Y-36316D01* X-48243Y-36228D01* X-48258Y-36128D01* X-48266Y-36024D01* Y-35987D01* X-48262Y-35943D01* X-48258Y-35891D01* X-48251Y-35832D01* X-48240Y-35765D01* X-48225Y-35699D01* X-48206Y-35636D01* Y-35632D01* X-48203Y-35628D01* X-48195Y-35606D01* X-48180Y-35576D01* X-48162Y-35536D01* X-48136Y-35484D01* X-48099Y-35432D01* X-48058Y-35373D01* X-48010Y-35314D01* X-47740Y-35539D01* X-47744Y-35543D01* X-47748Y-35550D01* X-47755Y-35562D01* X-47766Y-35576D01* X-47777Y-35599D01* X-47792Y-35621D01* X-47825Y-35680D01* X-47855Y-35750D01* X-47881Y-35832D01* X-47899Y-35917D01* X-47907Y-35965D01* Y-36035D01* X-47903Y-36054D01* X-47899Y-36076D01* X-47896Y-36098D01* X-47881Y-36161D01* X-47859Y-36228D01* X-47822Y-36298D01* X-47799Y-36335D01* X-47774Y-36368D01* X-47744Y-36402D01* X-47707Y-36435D01* X-47703D01* X-47696Y-36442D01* X-47685Y-36450D01* X-47670Y-36461D01* X-47648Y-36472D01* X-47622Y-36487D01* X-47589Y-36501D01* X-47552Y-36516D01* X-47511Y-36531D01* X-47463Y-36546D01* X-47411Y-36561D01* X-47352Y-36572D01* X-47289Y-36583D01* X-47222Y-36590D01* X-47148Y-36594D01* X-47067Y-36598D01* X-47063D01* X-47048D01* X-47026D01* X-46997Y-36594D01* X-46959D01* X-46919Y-36590D01* X-46874Y-36583D01* X-46823Y-36575D01* X-46719Y-36557D01* X-46615Y-36527D01* X-46516Y-36487D01* X-46471Y-36464D01* X-46430Y-36435D01* X-46427Y-36431D01* X-46423Y-36427D01* X-46401Y-36405D01* X-46367Y-36368D01* X-46330Y-36320D01* X-46294Y-36257D01* X-46260Y-36183D01* X-46238Y-36102D01* X-46234Y-36054D01* X-46231Y-36006D01* Y-35980D01* X-46234Y-35950D01* X-46238Y-35913D01* X-46242Y-35872D01* X-46253Y-35828D01* X-46264Y-35784D01* X-46279Y-35739D01* X-46282Y-35735D01* X-46286Y-35721D01* X-46301Y-35699D01* X-46316Y-35665D01* X-46338Y-35628D01* X-46360Y-35587D01* X-46393Y-35539D01* X-46427Y-35491D01* X-46157Y-35280D01* X-46153Y-35284D01* D02* G37* G36* X-45905Y-39883D02* X-46116Y-39902D01* X-46112Y-39905D01* X-46097Y-39909D01* X-46075Y-39920D01* X-46049Y-39939D01* X-46020Y-39961D01* X-45986Y-39990D01* X-45957Y-40031D01* X-45931Y-40076D01* X-45927Y-40083D01* X-45920Y-40098D01* X-45909Y-40124D01* X-45898Y-40161D01* X-45886Y-40201D01* X-45875Y-40249D01* X-45868Y-40305D01* X-45864Y-40361D01* Y-40394D01* X-45868Y-40416D01* X-45872Y-40446D01* X-45879Y-40479D01* X-45898Y-40553D01* X-45927Y-40638D01* X-45946Y-40679D01* X-45972Y-40723D01* X-46001Y-40764D01* X-46035Y-40804D01* X-46071Y-40841D01* X-46116Y-40875D01* X-46120D01* X-46127Y-40882D01* X-46142Y-40890D01* X-46160Y-40901D01* X-46186Y-40916D01* X-46220Y-40930D01* X-46253Y-40945D01* X-46297Y-40960D01* X-46342Y-40975D01* X-46393Y-40990D01* X-46449Y-41004D01* X-46512Y-41019D01* X-46578Y-41030D01* X-46645Y-41038D01* X-46723Y-41041D01* X-46800Y-41045D01* X-46804D01* X-46812D01* X-46826D01* X-46845D01* X-46871Y-41041D01* X-46897D01* X-46963Y-41034D01* X-47037Y-41023D01* X-47119Y-41008D01* X-47200Y-40990D01* X-47281Y-40960D01* X-47285D01* X-47293Y-40956D01* X-47304Y-40953D01* X-47315Y-40945D01* X-47355Y-40923D01* X-47403Y-40897D01* X-47455Y-40864D01* X-47511Y-40819D01* X-47566Y-40767D01* X-47614Y-40712D01* Y-40708D01* X-47618Y-40705D01* X-47633Y-40682D01* X-47651Y-40649D01* X-47677Y-40605D01* X-47699Y-40545D01* X-47718Y-40483D01* X-47733Y-40409D01* X-47736Y-40331D01* Y-40305D01* X-47733Y-40286D01* Y-40261D01* X-47725Y-40235D01* X-47714Y-40176D01* X-47692Y-40109D01* X-47659Y-40042D01* X-47637Y-40009D01* X-47614Y-39979D01* X-47585Y-39954D01* X-47552Y-39928D01* X-48428D01* X-48380Y-39495D01* X-45905D01* Y-39883D01* D02* G37* G36* Y-41926D02* X-47011D01* X-47019D01* X-47037D01* X-47063D01* X-47100Y-41929D01* X-47174Y-41933D01* X-47211Y-41937D01* X-47244Y-41944D01* X-47248D01* X-47259Y-41948D01* X-47270Y-41952D01* X-47289Y-41955D01* X-47326Y-41974D01* X-47344Y-41989D01* X-47359Y-42003D01* Y-42007D01* X-47363Y-42011D01* X-47370Y-42022D01* X-47378Y-42037D01* X-47381Y-42055D01* X-47389Y-42081D01* X-47392Y-42107D01* Y-42159D01* X-47389Y-42181D01* X-47385Y-42207D01* X-47378Y-42236D01* X-47363Y-42273D01* X-47348Y-42310D01* X-47326Y-42347D01* X-47322Y-42351D01* X-47315Y-42362D01* X-47300Y-42381D01* X-47281Y-42403D01* X-47256Y-42429D01* X-47230Y-42455D01* X-47163Y-42510D01* X-45905D01* Y-42943D01* X-47692D01* Y-42562D01* X-47470Y-42544D01* X-47474Y-42540D01* X-47489Y-42532D01* X-47511Y-42514D01* X-47540Y-42492D01* X-47570Y-42462D01* X-47600Y-42425D01* X-47633Y-42381D01* X-47662Y-42329D01* X-47666Y-42322D01* X-47674Y-42303D01* X-47685Y-42273D01* X-47699Y-42233D01* X-47714Y-42185D01* X-47725Y-42129D01* X-47733Y-42070D01* X-47736Y-42007D01* Y-41981D01* X-47733Y-41966D01* Y-41944D01* X-47729Y-41922D01* X-47718Y-41866D01* X-47703Y-41804D01* X-47677Y-41741D01* X-47640Y-41678D01* X-47592Y-41626D01* X-47585Y-41618D01* X-47566Y-41604D01* X-47533Y-41585D01* X-47489Y-41559D01* X-47433Y-41533D01* X-47363Y-41515D01* X-47281Y-41500D01* X-47193Y-41493D01* X-45905D01* Y-41926D01* D02* G37* G36* X-46079Y-43376D02* X-46075Y-43380D01* X-46068Y-43391D01* X-46060Y-43406D01* X-46042Y-43443D01* X-46020Y-43491D01* X-45994Y-43550D01* X-45964Y-43613D01* X-45938Y-43679D01* X-45916Y-43750D01* Y-43753D01* X-45912Y-43757D01* Y-43768D01* X-45909Y-43783D01* X-45901Y-43820D01* X-45890Y-43872D01* X-45879Y-43931D01* X-45872Y-44001D01* X-45868Y-44079D01* X-45864Y-44164D01* Y-44183D01* X-45868Y-44208D01* Y-44238D01* X-45875Y-44275D01* X-45879Y-44319D01* X-45890Y-44368D01* X-45901Y-44419D01* X-45920Y-44475D01* X-45938Y-44534D01* X-45964Y-44593D01* X-45994Y-44653D01* X-46031Y-44708D01* X-46071Y-44763D01* X-46116Y-44819D01* X-46171Y-44867D01* X-46175Y-44871D01* X-46186Y-44878D01* X-46205Y-44889D01* X-46227Y-44904D01* X-46260Y-44926D01* X-46301Y-44945D01* X-46345Y-44967D01* X-46397Y-44989D01* X-46460Y-45015D01* X-46527Y-45037D01* X-46597Y-45056D01* X-46678Y-45074D01* X-46767Y-45093D01* X-46860Y-45104D01* X-46959Y-45111D01* X-47067Y-45115D01* X-47071D01* X-47085D01* X-47104D01* X-47130Y-45111D01* X-47163D01* X-47200Y-45108D01* X-47244Y-45104D01* X-47293Y-45096D01* X-47392Y-45082D01* X-47503Y-45059D01* X-47614Y-45026D01* X-47718Y-44982D01* X-47722D01* X-47729Y-44974D01* X-47744Y-44967D01* X-47762Y-44956D01* X-47785Y-44941D01* X-47811Y-44926D01* X-47870Y-44886D01* X-47936Y-44830D01* X-48003Y-44767D01* X-48070Y-44693D01* X-48125Y-44612D01* Y-44608D01* X-48132Y-44601D01* X-48140Y-44590D01* X-48147Y-44571D01* X-48158Y-44549D01* X-48169Y-44523D01* X-48180Y-44493D01* X-48195Y-44460D01* X-48221Y-44382D01* X-48243Y-44297D01* X-48258Y-44201D01* X-48266Y-44098D01* Y-44061D01* X-48262Y-44016D01* X-48258Y-43964D01* X-48251Y-43905D01* X-48236Y-43839D01* X-48221Y-43776D01* X-48199Y-43713D01* Y-43709D01* X-48195Y-43705D01* X-48188Y-43683D01* X-48169Y-43654D01* X-48147Y-43613D01* X-48114Y-43565D01* X-48077Y-43509D01* X-48029Y-43454D01* X-47973Y-43395D01* X-47722Y-43639D01* X-47725Y-43642D01* X-47736Y-43661D01* X-47755Y-43683D01* X-47777Y-43713D01* X-47799Y-43746D01* X-47822Y-43787D01* X-47844Y-43824D01* X-47862Y-43864D01* X-47866Y-43868D01* X-47870Y-43883D01* X-47877Y-43901D01* X-47885Y-43931D01* X-47892Y-43961D01* X-47899Y-44001D01* X-47907Y-44042D01* Y-44109D01* X-47903Y-44127D01* X-47899Y-44149D01* X-47896Y-44172D01* X-47881Y-44231D01* X-47859Y-44294D01* X-47822Y-44364D01* X-47799Y-44397D01* X-47774Y-44431D01* X-47744Y-44464D01* X-47707Y-44493D01* X-47703D01* X-47696Y-44501D01* X-47685Y-44508D01* X-47670Y-44519D01* X-47648Y-44530D01* X-47622Y-44545D01* X-47589Y-44556D01* X-47552Y-44571D01* X-47511Y-44586D01* X-47463Y-44601D01* X-47411Y-44616D01* X-47352Y-44627D01* X-47289Y-44638D01* X-47222Y-44645D01* X-47148Y-44649D01* X-47067Y-44653D01* X-47063D01* X-47048D01* X-47022D01* X-46993Y-44649D01* X-46956D01* X-46911Y-44645D01* X-46863Y-44641D01* X-46812Y-44638D01* X-46704Y-44623D01* X-46597Y-44601D01* X-46545Y-44586D01* X-46497Y-44567D01* X-46453Y-44549D01* X-46412Y-44527D01* X-46408D01* X-46404Y-44519D01* X-46382Y-44504D01* X-46349Y-44475D01* X-46316Y-44431D01* X-46279Y-44379D01* X-46245Y-44312D01* X-46223Y-44234D01* X-46220Y-44190D01* X-46216Y-44146D01* Y-44112D01* X-46220Y-44075D01* X-46227Y-44027D01* X-46234Y-43975D01* X-46249Y-43920D01* X-46271Y-43864D01* X-46297Y-43809D01* X-46871D01* Y-44186D01* X-47222Y-44231D01* Y-43372D01* X-46079D01* Y-43376D01* D02* G37* G36* X22852Y15587D02* X22897D01* X23001Y15574D01* X23131Y15554D01* X23273Y15528D01* X23435Y15496D01* X23597Y15444D01* X23422Y14822D01* X23416D01* X23409Y14829D01* X23370Y14842D01* X23312Y14854D01* X23241Y14880D01* X23163Y14900D01* X23072Y14913D01* X22988Y14926D01* X22910Y14932D01* X22885D01* X22859Y14926D01* X22826Y14919D01* X22794Y14906D01* X22755Y14887D01* X22723Y14861D01* X22690Y14829D01* X22684Y14816D01* X22671Y14796D01* X22658Y14764D01* X22645Y14725D01* X22625Y14667D01* X22606Y14589D01* X22586Y14498D01* X22535Y14278D01* X23170D01* X23034Y13636D01* X22405D01* X21854Y11025D01* X20986D01* X21530Y13636D01* X21038D01* X21158Y14205D01* X20843Y13533D01* X20837D01* X20824Y13539D01* X20798Y13546D01* X20766Y13558D01* X20681Y13571D01* X20584Y13578D01* X20545D01* X20500Y13571D01* X20442Y13558D01* X20370Y13533D01* X20292Y13507D01* X20208Y13461D01* X20118Y13403D01* X20105Y13397D01* X20079Y13371D01* X20040Y13332D01* X19988Y13286D01* X19930Y13221D01* X19865Y13144D01* X19806Y13053D01* X19755Y12949D01* X19748Y12936D01* X19742Y12917D01* X19735Y12898D01* X19722Y12865D01* X19709Y12826D01* X19690Y12781D01* X19677Y12729D01* X19658Y12671D01* X19632Y12606D01* X19612Y12528D01* X19593Y12444D01* X19567Y12360D01* X19541Y12263D01* X19521Y12152D01* X19496Y12042D01* X19282Y11025D01* X18413D01* X19094Y14278D01* X19910D01* X19781Y13649D01* X19787Y13656D01* X19800Y13682D01* X19826Y13714D01* X19858Y13759D01* X19904Y13811D01* X19956Y13870D01* X20014Y13934D01* X20079Y13999D01* X20228Y14129D01* X20305Y14187D01* X20396Y14239D01* X20480Y14284D01* X20578Y14317D01* X20675Y14343D01* X20772Y14349D01* X20804D01* X20843Y14343D01* X20895Y14336D01* X20954Y14323D01* X21025Y14310D01* X21102Y14284D01* X21169Y14256D01* X21174Y14278D01* X21666D01* X21731Y14608D01* Y14615D01* X21738Y14628D01* Y14647D01* X21744Y14673D01* X21764Y14744D01* X21783Y14829D01* X21809Y14926D01* X21835Y15017D01* X21867Y15101D01* X21893Y15166D01* X21900Y15172D01* X21913Y15198D01* X21938Y15230D01* X21971Y15276D01* X22016Y15328D01* X22068Y15379D01* X22133Y15431D01* X22204Y15477D01* X22217Y15483D01* X22243Y15496D01* X22288Y15516D01* X22347Y15535D01* X22424Y15554D01* X22522Y15574D01* X22625Y15587D01* X22742Y15593D01* X22813D01* X22852Y15587D01* D02* G37* G36* X1300Y14718D02* X425D01* X593Y15509D01* X1462D01* X1300Y14718D01* D02* G37* G36* X40977Y14343D02* X41054Y14336D01* X41145Y14323D01* X41249Y14291D01* X41352Y14252D01* X41456Y14194D01* X41553Y14116D01* X41566Y14103D01* X41592Y14077D01* X41625Y14025D01* X41670Y13954D01* X41715Y13863D01* X41748Y13759D01* X41774Y13643D01* X41787Y13507D01* Y13500D01* Y13474D01* X41780Y13429D01* X41767Y13358D01* X41754Y13273D01* X41735Y13157D01* X41722Y13092D01* X41709Y13021D01* X41690Y12943D01* X41670Y12859D01* X41275Y11025D01* X40406D01* X40802Y12865D01* Y12872D01* X40808Y12885D01* Y12904D01* X40815Y12930D01* X40828Y13001D01* X40847Y13079D01* X40860Y13163D01* X40873Y13248D01* X40886Y13312D01* X40892Y13338D01* Y13358D01* Y13364D01* Y13384D01* X40886Y13416D01* X40879Y13455D01* X40867Y13494D01* X40847Y13539D01* X40821Y13584D01* X40789Y13623D01* X40782Y13630D01* X40769Y13636D01* X40750Y13656D01* X40718Y13675D01* X40679Y13688D01* X40633Y13708D01* X40575Y13714D01* X40510Y13721D01* X40478D01* X40439Y13714D01* X40380Y13701D01* X40316Y13682D01* X40244Y13649D01* X40167Y13610D01* X40076Y13558D01* X40063Y13552D01* X40037Y13526D01* X39992Y13494D01* X39940Y13442D01* X39882Y13384D01* X39817Y13312D01* X39758Y13228D01* X39700Y13131D01* X39694Y13124D01* X39681Y13092D01* X39661Y13040D01* X39648Y13001D01* X39635Y12962D01* X39622Y12911D01* X39603Y12859D01* X39584Y12794D01* X39564Y12723D01* X39545Y12645D01* X39519Y12554D01* X39499Y12457D01* X39473Y12353D01* X39195Y11025D01* X38326D01* X39007Y14278D01* X39836D01* X39752Y13850D01* X39758D01* X39765Y13863D01* X39804Y13895D01* X39869Y13941D01* X39946Y13999D01* X40037Y14058D01* X40134Y14122D01* X40238Y14181D01* X40342Y14232D01* X40355Y14239D01* X40387Y14252D01* X40445Y14271D01* X40517Y14291D01* X40601Y14310D01* X40698Y14330D01* X40802Y14343D01* X40912Y14349D01* X40951D01* X40977Y14343D01* D02* G37* G36* X-1279Y11025D02* X-2193D01* X-1778Y13027D01* X-3522D01* X-3943Y11025D01* X-4856D01* X-3917Y15509D01* X-2997D01* X-3359Y13779D01* X-1616D01* X-1254Y15509D01* X-333D01* X-1279Y11025D01* D02* G37* G36* X33777Y14336D02* X33862Y14323D01* X33959Y14297D01* X34062Y14258D01* X34160Y14207D01* X34244Y14135D01* X34250Y14129D01* X34276Y14096D01* X34315Y14051D01* X34354Y13986D01* X34393Y13908D01* X34432Y13818D01* X34458Y13708D01* X34464Y13584D01* Y13578D01* Y13552D01* X34458Y13507D01* X34451Y13448D01* X34445Y13371D01* X34425Y13267D01* X34406Y13144D01* X34374Y13001D01* X33946Y11025D01* X33078D01* X33499Y13001D01* Y13008D01* X33505Y13021D01* Y13034D01* X33512Y13060D01* X33525Y13124D01* X33538Y13196D01* X33551Y13267D01* X33564Y13338D01* X33577Y13390D01* Y13409D01* Y13422D01* Y13429D01* Y13448D01* X33570Y13468D01* X33564Y13500D01* X33544Y13571D01* X33518Y13604D01* X33492Y13636D01* X33486Y13643D01* X33479Y13649D01* X33460Y13662D01* X33434Y13682D01* X33402Y13695D01* X33356Y13708D01* X33311Y13714D01* X33253Y13721D01* X33220D01* X33194Y13714D01* X33129Y13701D01* X33052Y13675D01* X32961Y13636D01* X32857Y13571D01* X32805Y13533D01* X32754Y13487D01* X32708Y13435D01* X32656Y13371D01* X32650Y13358D01* X32637Y13345D01* X32624Y13325D01* X32611Y13293D01* X32592Y13260D01* X32566Y13215D01* X32546Y13170D01* X32520Y13111D01* X32494Y13047D01* X32468Y12975D01* X32443Y12898D01* X32410Y12813D01* X32384Y12716D01* X32358Y12612D01* X32332Y12496D01* X32021Y11025D01* X31153D01* X31561Y12982D01* Y12988D01* X31568Y12995D01* X31574Y13040D01* X31587Y13098D01* X31600Y13163D01* X31613Y13241D01* X31620Y13312D01* X31633Y13377D01* Y13422D01* Y13429D01* Y13442D01* X31626Y13468D01* X31620Y13500D01* X31594Y13565D01* X31574Y13604D01* X31542Y13636D01* X31535Y13643D01* X31529Y13649D01* X31509Y13662D01* X31484Y13682D01* X31445Y13695D01* X31406Y13708D01* X31360Y13714D01* X31302Y13721D01* X31276D01* X31250Y13714D01* X31211Y13708D01* X31166Y13701D01* X31114Y13682D01* X31062Y13662D01* X31004Y13630D01* X30997Y13623D01* X30978Y13617D01* X30946Y13597D01* X30913Y13571D01* X30868Y13539D01* X30823Y13494D01* X30777Y13448D01* X30732Y13397D01* X30725Y13390D01* X30712Y13371D01* X30693Y13338D01* X30667Y13293D01* X30635Y13241D01* X30602Y13170D01* X30570Y13098D01* X30537Y13014D01* Y13008D01* X30531Y12988D01* X30518Y12956D01* X30505Y12911D01* X30492Y12846D01* X30466Y12755D01* X30440Y12651D01* X30427Y12586D01* X30408Y12515D01* X30097Y11025D01* X29228D01* X29909Y14278D01* X30732D01* X30654Y13882D01* X30661Y13889D01* X30674Y13902D01* X30699Y13928D01* X30738Y13954D01* X30784Y13993D01* X30836Y14032D01* X30894Y14070D01* X30965Y14116D01* X31121Y14200D01* X31289Y14278D01* X31386Y14304D01* X31477Y14330D01* X31581Y14343D01* X31678Y14349D01* X31736D01* X31808Y14343D01* X31885Y14330D01* X31976Y14310D01* X32073Y14284D01* X32164Y14245D01* X32242Y14194D01* X32248Y14187D01* X32274Y14168D01* X32306Y14129D01* X32352Y14083D01* X32391Y14025D01* X32436Y13947D01* X32475Y13870D01* X32501Y13772D01* X32507Y13785D01* X32533Y13811D01* X32572Y13857D01* X32624Y13915D01* X32695Y13980D01* X32773Y14044D01* X32870Y14116D01* X32980Y14181D01* X32987D01* X32993Y14187D01* X33013Y14194D01* X33039Y14207D01* X33097Y14232D01* X33181Y14265D01* X33278Y14297D01* X33395Y14323D01* X33512Y14343D01* X33641Y14349D01* X33706D01* X33777Y14336D01* D02* G37* G36* X29196Y14343D02* X29248Y14336D01* X29306Y14323D01* X29377Y14310D01* X29455Y14284D01* X29533Y14252D01* X29196Y13533D01* X29190D01* X29177Y13539D01* X29151Y13546D01* X29118Y13558D01* X29034Y13571D01* X28937Y13578D01* X28898D01* X28853Y13571D01* X28794Y13558D01* X28723Y13533D01* X28645Y13507D01* X28561Y13461D01* X28470Y13403D01* X28457Y13397D01* X28431Y13371D01* X28392Y13332D01* X28341Y13286D01* X28282Y13222D01* X28218Y13144D01* X28159Y13053D01* X28107Y12949D01* X28101Y12936D01* X28094Y12917D01* X28088Y12898D01* X28075Y12865D01* X28062Y12826D01* X28043Y12781D01* X28030Y12729D01* X28010Y12671D01* X27984Y12606D01* X27965Y12528D01* X27945Y12444D01* X27920Y12360D01* X27894Y12263D01* X27874Y12152D01* X27848Y12042D01* X27634Y11025D01* X26766D01* X27446Y14278D01* X28263D01* X28133Y13649D01* X28140Y13656D01* X28153Y13682D01* X28179Y13714D01* X28211Y13759D01* X28256Y13811D01* X28308Y13870D01* X28367Y13934D01* X28431Y13999D01* X28580Y14129D01* X28658Y14187D01* X28749Y14239D01* X28833Y14284D01* X28930Y14317D01* X29028Y14343D01* X29125Y14349D01* X29157D01* X29196Y14343D01* D02* G37* G36* X44217D02* X44262D01* X44320Y14336D01* X44450Y14310D01* X44599Y14278D01* X44748Y14220D01* X44904Y14148D01* X44975Y14096D01* X45040Y14044D01* X45046Y14038D01* X45053Y14032D01* X45072Y14012D01* X45092Y13993D01* X45150Y13921D01* X45215Y13831D01* X45286Y13714D01* X45351Y13578D01* X45396Y13422D01* X45415Y13338D01* X45428Y13248D01* X44592Y13163D01* Y13176D01* X44586Y13209D01* X44573Y13254D01* X44560Y13319D01* X44534Y13384D01* X44508Y13448D01* X44469Y13513D01* X44424Y13565D01* X44418Y13571D01* X44398Y13584D01* X44372Y13610D01* X44327Y13636D01* X44275Y13656D01* X44217Y13682D01* X44145Y13695D01* X44068Y13701D01* X44022D01* X43977Y13688D01* X43912Y13675D01* X43841Y13656D01* X43763Y13617D01* X43679Y13571D01* X43595Y13507D01* X43588Y13500D01* X43556Y13474D01* X43517Y13429D01* X43472Y13364D01* X43413Y13286D01* X43361Y13189D01* X43303Y13072D01* X43258Y12936D01* Y12930D01* X43251Y12917D01* X43245Y12898D01* X43238Y12872D01* X43219Y12800D01* X43199Y12710D01* X43180Y12599D01* X43160Y12476D01* X43148Y12353D01* X43141Y12224D01* Y12211D01* Y12178D01* X43148Y12126D01* X43160Y12062D01* X43173Y11990D01* X43199Y11919D01* X43232Y11848D01* X43277Y11783D01* X43284Y11777D01* X43303Y11757D01* X43335Y11731D01* X43374Y11705D01* X43426Y11679D01* X43491Y11653D01* X43556Y11634D01* X43633Y11627D01* X43672D01* X43711Y11634D01* X43763Y11647D01* X43821Y11666D01* X43893Y11692D01* X43964Y11725D01* X44035Y11777D01* X44042Y11783D01* X44068Y11809D01* X44107Y11841D01* X44152Y11893D01* X44197Y11958D01* X44249Y12036D01* X44301Y12126D01* X44346Y12237D01* X45202Y12094D01* Y12088D01* X45189Y12068D01* X45182Y12042D01* X45163Y12003D01* X45137Y11952D01* X45111Y11900D01* X45046Y11777D01* X44955Y11634D01* X44845Y11491D01* X44722Y11355D01* X44573Y11232D01* X44567D01* X44554Y11219D01* X44534Y11206D01* X44502Y11187D01* X44463Y11167D01* X44411Y11141D01* X44359Y11116D01* X44301Y11090D01* X44158Y11031D01* X43996Y10986D01* X43815Y10954D01* X43718Y10947D01* X43614Y10941D01* X43556D01* X43510Y10947D01* X43459Y10954D01* X43400Y10960D01* X43329Y10973D01* X43258Y10986D01* X43102Y11031D01* X43018Y11064D01* X42934Y11096D01* X42856Y11141D01* X42778Y11187D01* X42700Y11245D01* X42629Y11310D01* X42623Y11316D01* X42616Y11329D01* X42597Y11349D01* X42571Y11381D01* X42545Y11414D01* X42512Y11459D01* X42480Y11517D01* X42448Y11576D01* X42415Y11647D01* X42383Y11718D01* X42350Y11802D01* X42325Y11893D01* X42299Y11990D01* X42279Y12100D01* X42273Y12211D01* X42266Y12327D01* Y12334D01* Y12353D01* Y12379D01* X42273Y12418D01* Y12463D01* X42279Y12522D01* X42286Y12580D01* X42292Y12651D01* X42318Y12807D01* X42357Y12975D01* X42415Y13150D01* X42487Y13332D01* Y13338D01* X42500Y13351D01* X42512Y13377D01* X42525Y13409D01* X42551Y13448D01* X42577Y13494D01* X42655Y13604D01* X42746Y13721D01* X42856Y13844D01* X42992Y13967D01* X43148Y14077D01* X43154Y14083D01* X43167Y14090D01* X43193Y14103D01* X43225Y14122D01* X43271Y14142D01* X43316Y14161D01* X43374Y14187D01* X43439Y14213D01* X43582Y14265D01* X43744Y14304D01* X43925Y14336D01* X44120Y14349D01* X44178D01* X44217Y14343D01* D02* G37* G36* X36784D02* X36836D01* X36894Y14336D01* X37030Y14317D01* X37186Y14291D01* X37335Y14245D01* X37484Y14181D01* X37549Y14142D01* X37607Y14096D01* X37614D01* X37620Y14083D01* X37652Y14051D01* X37704Y13999D01* X37763Y13921D01* X37814Y13831D01* X37866Y13727D01* X37899Y13610D01* X37912Y13546D01* Y13474D01* Y13468D01* Y13448D01* Y13422D01* X37905Y13384D01* Y13338D01* X37899Y13286D01* X37879Y13163D01* Y13157D01* X37873Y13124D01* X37866Y13105D01* Y13072D01* X37853Y13040D01* X37847Y12995D01* X37834Y12943D01* X37821Y12878D01* X37808Y12807D01* X37795Y12729D01* X37776Y12638D01* X37750Y12535D01* X37724Y12418D01* X37698Y12295D01* Y12288D01* X37691Y12269D01* X37685Y12243D01* X37678Y12204D01* X37672Y12152D01* X37659Y12100D01* X37639Y11977D01* X37614Y11841D01* X37594Y11712D01* X37581Y11589D01* X37575Y11530D01* Y11485D01* Y11478D01* Y11446D01* X37581Y11407D01* Y11349D01* X37594Y11284D01* X37607Y11206D01* X37620Y11116D01* X37646Y11025D01* X36797D01* Y11031D01* X36791Y11057D01* X36778Y11090D01* X36765Y11135D01* X36758Y11193D01* X36745Y11252D01* X36732Y11388D01* X36726Y11381D01* X36700Y11355D01* X36654Y11316D01* X36603Y11265D01* X36538Y11213D01* X36460Y11161D01* X36376Y11103D01* X36285Y11057D01* X36272Y11051D01* X36240Y11038D01* X36194Y11018D01* X36130Y10999D01* X36052Y10979D01* X35968Y10960D01* X35877Y10947D01* X35780Y10941D01* X35741D01* X35715Y10947D01* X35637Y10954D01* X35546Y10973D01* X35443Y11005D01* X35326Y11051D01* X35216Y11116D01* X35112Y11200D01* X35099Y11213D01* X35073Y11245D01* X35028Y11304D01* X34983Y11388D01* X34937Y11485D01* X34892Y11602D01* X34866Y11738D01* X34853Y11887D01* Y11893D01* Y11906D01* Y11932D01* X34860Y11964D01* Y12003D01* X34866Y12049D01* X34892Y12152D01* X34924Y12275D01* X34976Y12399D01* X35048Y12522D01* X35086Y12580D01* X35138Y12632D01* X35145Y12638D01* X35151Y12645D01* X35171Y12658D01* X35197Y12677D01* X35229Y12697D01* X35268Y12723D01* X35320Y12749D01* X35378Y12781D01* X35443Y12807D01* X35520Y12839D01* X35605Y12865D01* X35702Y12891D01* X35806Y12917D01* X35916Y12936D01* X36039Y12956D01* X36175Y12969D01* X36201D01* X36233Y12975D01* X36279D01* X36324Y12982D01* X36382Y12988D01* X36512Y13008D01* X36654Y13021D01* X36791Y13047D01* X36855Y13060D01* X36914Y13072D01* X36966Y13085D01* X37011Y13098D01* Y13105D01* X37017Y13131D01* X37030Y13163D01* X37043Y13202D01* X37063Y13299D01* X37069Y13345D01* Y13390D01* Y13397D01* Y13416D01* X37063Y13435D01* X37056Y13468D01* X37043Y13507D01* X37017Y13546D01* X36992Y13584D01* X36953Y13623D01* X36946Y13630D01* X36933Y13636D01* X36907Y13656D01* X36868Y13675D01* X36816Y13688D01* X36765Y13708D01* X36693Y13714D01* X36616Y13721D01* X36577D01* X36531Y13714D01* X36480Y13708D01* X36421Y13695D01* X36356Y13682D01* X36298Y13656D01* X36240Y13623D01* X36233Y13617D01* X36220Y13604D01* X36194Y13584D01* X36169Y13552D01* X36136Y13513D01* X36104Y13468D01* X36078Y13416D01* X36058Y13358D01* X35203Y13429D01* Y13435D01* X35210Y13448D01* X35216Y13468D01* X35229Y13500D01* X35268Y13578D01* X35320Y13675D01* X35391Y13779D01* X35475Y13895D01* X35585Y14006D01* X35708Y14103D01* X35715D01* X35728Y14116D01* X35747Y14129D01* X35773Y14142D01* X35812Y14161D01* X35857Y14181D01* X35909Y14200D01* X35968Y14226D01* X36032Y14252D01* X36110Y14271D01* X36188Y14291D01* X36272Y14310D01* X36467Y14336D01* X36680Y14349D01* X36739D01* X36784Y14343D01* D02* G37* G36* X13683Y15503D02* X13728D01* X13838Y15496D01* X13962Y15483D01* X14085Y15457D01* X14214Y15431D01* X14324Y15392D01* X14331D01* X14337Y15386D01* X14370Y15373D01* X14422Y15340D01* X14486Y15302D01* X14558Y15250D01* X14636Y15185D01* X14713Y15101D01* X14778Y15010D01* X14785Y14997D01* X14804Y14965D01* X14830Y14906D01* X14862Y14835D01* X14895Y14738D01* X14921Y14634D01* X14940Y14511D01* X14946Y14381D01* Y14375D01* Y14368D01* Y14349D01* Y14323D01* X14940Y14258D01* X14927Y14168D01* X14914Y14070D01* X14888Y13954D01* X14856Y13837D01* X14810Y13714D01* Y13708D01* X14804Y13701D01* X14785Y13662D01* X14759Y13604D01* X14720Y13533D01* X14674Y13448D01* X14623Y13364D01* X14558Y13280D01* X14486Y13202D01* X14480Y13196D01* X14454Y13170D01* X14415Y13137D01* X14363Y13098D01* X14305Y13047D01* X14234Y13001D01* X14162Y12956D01* X14078Y12911D01* X14065Y12904D01* X14039Y12898D01* X13987Y12878D01* X13923Y12859D01* X13838Y12833D01* X13735Y12807D01* X13618Y12781D01* X13482Y12762D01* X13469D01* X13437Y12755D01* X13378D01* X13340Y12749D01* X13242D01* X13184Y12742D01* X13048D01* X12964Y12736D01* X12076D01* X11713Y11025D01* X10799D01* X11739Y15509D01* X13638D01* X13683Y15503D01* D02* G37* G36* X6717Y13908D02* X6723D01* X6730Y13921D01* X6769Y13947D01* X6827Y13986D01* X6898Y14038D01* X6983Y14096D01* X7080Y14148D01* X7177Y14200D01* X7274Y14245D01* X7287Y14252D01* X7320Y14265D01* X7371Y14278D01* X7443Y14297D01* X7527Y14317D01* X7618Y14336D01* X7721Y14343D01* X7831Y14349D01* X7870D01* X7896Y14343D01* X7968Y14336D01* X8058Y14323D01* X8162Y14291D01* X8266Y14252D01* X8369Y14194D01* X8460Y14116D01* X8473Y14103D01* X8499Y14077D01* X8531Y14025D01* X8577Y13960D01* X8622Y13870D01* X8654Y13772D01* X8680Y13656D01* X8693Y13526D01* Y13520D01* Y13487D01* X8687Y13442D01* X8680Y13377D01* X8667Y13293D01* X8648Y13189D01* X8629Y13059D01* X8596Y12917D01* X8188Y11025D01* X7320D01* X7734Y12956D01* Y12962D01* Y12969D01* X7747Y13008D01* X7754Y13059D01* X7767Y13124D01* X7780Y13189D01* X7793Y13254D01* X7799Y13312D01* X7806Y13358D01* Y13364D01* Y13384D01* X7799Y13416D01* X7793Y13448D01* X7780Y13494D01* X7760Y13533D01* X7734Y13578D01* X7702Y13617D01* X7695Y13623D01* X7682Y13636D01* X7663Y13649D01* X7631Y13669D01* X7592Y13688D01* X7540Y13708D01* X7488Y13714D01* X7423Y13721D01* X7384D01* X7339Y13714D01* X7287Y13701D01* X7216Y13682D01* X7145Y13656D01* X7067Y13617D01* X6989Y13565D01* X6976Y13558D01* X6944Y13526D01* X6898Y13487D01* X6840Y13429D01* X6775Y13358D01* X6704Y13273D01* X6639Y13176D01* X6581Y13072D01* X6574Y13066D01* X6568Y13040D01* X6548Y12988D01* X6542Y12956D01* X6529Y12917D01* X6516Y12872D01* X6497Y12813D01* X6484Y12755D01* X6464Y12684D01* X6445Y12599D01* X6425Y12515D01* X6406Y12418D01* X6380Y12308D01* X6108Y11025D01* X5240D01* X6179Y15509D01* X7047D01* X6717Y13908D01* D02* G37* G36* X522Y11025D02* X-346D01* X334Y14278D01* X1209D01* X522Y11025D01* D02* G37* G36* X47645Y14343D02* X47696Y14336D01* X47755Y14330D01* X47820Y14317D01* X47891Y14304D01* X48046Y14258D01* X48124Y14232D01* X48202Y14194D01* X48280Y14148D01* X48357Y14103D01* X48429Y14044D01* X48500Y13980D01* X48506Y13973D01* X48513Y13960D01* X48532Y13941D01* X48558Y13915D01* X48584Y13876D01* X48610Y13831D01* X48643Y13772D01* X48681Y13714D01* X48714Y13643D01* X48746Y13565D01* X48772Y13481D01* X48798Y13384D01* X48824Y13286D01* X48843Y13176D01* X48850Y13066D01* X48856Y12943D01* Y12936D01* Y12930D01* Y12891D01* Y12826D01* X48850Y12755D01* X48843Y12664D01* X48830Y12567D01* X48792Y12373D01* X46588D01* Y12366D01* Y12340D01* X46582Y12314D01* Y12288D01* Y12282D01* Y12275D01* Y12237D01* X46595Y12178D01* X46608Y12100D01* X46627Y12016D01* X46660Y11932D01* X46705Y11841D01* X46763Y11764D01* X46770Y11757D01* X46796Y11731D01* X46835Y11705D01* X46893Y11666D01* X46958Y11634D01* X47036Y11602D01* X47126Y11576D01* X47223Y11569D01* X47269D01* X47295Y11576D01* X47334Y11582D01* X47379Y11595D01* X47476Y11627D01* X47528Y11647D01* X47586Y11679D01* X47645Y11718D01* X47696Y11764D01* X47755Y11815D01* X47813Y11874D01* X47865Y11945D01* X47910Y12023D01* X48694Y11893D01* Y11887D01* X48681Y11874D01* X48668Y11848D01* X48649Y11815D01* X48630Y11777D01* X48597Y11731D01* X48532Y11621D01* X48442Y11504D01* X48331Y11388D01* X48208Y11271D01* X48072Y11174D01* X48066D01* X48053Y11161D01* X48033Y11154D01* X48008Y11135D01* X47969Y11122D01* X47930Y11103D01* X47820Y11057D01* X47696Y11012D01* X47547Y10979D01* X47392Y10954D01* X47217Y10941D01* X47152D01* X47107Y10947D01* X47048Y10954D01* X46984Y10960D01* X46912Y10973D01* X46835Y10992D01* X46666Y11044D01* X46575Y11077D01* X46485Y11116D01* X46400Y11161D01* X46310Y11219D01* X46226Y11284D01* X46148Y11355D01* X46141Y11362D01* X46128Y11375D01* X46109Y11401D01* X46083Y11433D01* X46051Y11472D01* X46018Y11524D01* X45979Y11582D01* X45947Y11647D01* X45908Y11725D01* X45869Y11802D01* X45837Y11893D01* X45804Y11990D01* X45778Y12094D01* X45759Y12211D01* X45746Y12327D01* X45739Y12450D01* Y12457D01* Y12483D01* Y12515D01* X45746Y12561D01* X45752Y12619D01* X45759Y12690D01* X45772Y12768D01* X45785Y12852D01* X45830Y13034D01* X45863Y13131D01* X45895Y13235D01* X45940Y13338D01* X45986Y13442D01* X46044Y13546D01* X46109Y13643D01* X46115Y13649D01* X46135Y13675D01* X46161Y13708D01* X46200Y13753D01* X46258Y13805D01* X46316Y13870D01* X46394Y13928D01* X46478Y13999D01* X46575Y14064D01* X46686Y14129D01* X46802Y14187D01* X46932Y14239D01* X47068Y14284D01* X47217Y14317D01* X47379Y14343D01* X47547Y14349D01* X47606D01* X47645Y14343D01* D02* G37* G36* X25081D02* X25146Y14336D01* X25211Y14330D01* X25289Y14317D01* X25373Y14297D01* X25554Y14252D01* X25645Y14220D01* X25742Y14181D01* X25833Y14135D01* X25924Y14077D01* X26008Y14019D01* X26086Y13947D01* X26092Y13941D01* X26105Y13928D01* X26125Y13908D01* X26150Y13876D01* X26183Y13837D01* X26215Y13785D01* X26254Y13734D01* X26293Y13669D01* X26325Y13591D01* X26364Y13513D01* X26397Y13422D01* X26429Y13332D01* X26455Y13228D01* X26474Y13118D01* X26487Y13001D01* X26494Y12878D01* Y12872D01* Y12846D01* Y12800D01* X26487Y12749D01* X26481Y12677D01* X26468Y12599D01* X26449Y12509D01* X26429Y12412D01* X26403Y12308D01* X26371Y12198D01* X26332Y12081D01* X26280Y11971D01* X26222Y11854D01* X26157Y11738D01* X26079Y11621D01* X25988Y11511D01* X25982Y11504D01* X25962Y11485D01* X25937Y11459D01* X25898Y11420D01* X25846Y11381D01* X25781Y11329D01* X25710Y11278D01* X25632Y11226D01* X25535Y11174D01* X25438Y11122D01* X25328Y11070D01* X25204Y11031D01* X25075Y10992D01* X24939Y10966D01* X24790Y10947D01* X24634Y10941D01* X24556D01* X24518Y10947D01* X24472Y10954D01* X24362Y10966D01* X24232Y10986D01* X24096Y11018D01* X23954Y11064D01* X23818Y11122D01* X23811D01* X23805Y11129D01* X23785Y11141D01* X23759Y11154D01* X23695Y11200D01* X23617Y11258D01* X23532Y11329D01* X23442Y11420D01* X23358Y11524D01* X23286Y11640D01* Y11647D01* X23280Y11653D01* X23273Y11673D01* X23260Y11699D01* X23234Y11770D01* X23202Y11861D01* X23170Y11964D01* X23144Y12088D01* X23124Y12224D01* X23118Y12366D01* Y12379D01* Y12405D01* X23124Y12450D01* Y12515D01* X23131Y12593D01* X23144Y12677D01* X23163Y12781D01* X23183Y12885D01* X23209Y12995D01* X23241Y13111D01* X23280Y13235D01* X23332Y13351D01* X23390Y13474D01* X23455Y13591D01* X23532Y13701D01* X23623Y13805D01* X23630Y13811D01* X23649Y13831D01* X23675Y13857D01* X23714Y13889D01* X23766Y13934D01* X23831Y13980D01* X23902Y14025D01* X23986Y14077D01* X24077Y14129D01* X24174Y14174D01* X24284Y14226D01* X24407Y14265D01* X24530Y14297D01* X24667Y14323D01* X24816Y14343D01* X24965Y14349D01* X25036D01* X25081Y14343D01* D02* G37* G36* X16994Y14343D02* X17046Y14336D01* X17104Y14330D01* X17169Y14317D01* X17240Y14304D01* X17396Y14258D01* X17474Y14232D01* X17551Y14194D01* X17629Y14148D01* X17707Y14103D01* X17778Y14044D01* X17850Y13980D01* X17856Y13973D01* X17863Y13960D01* X17882Y13941D01* X17908Y13915D01* X17934Y13876D01* X17960Y13831D01* X17992Y13772D01* X18031Y13714D01* X18063Y13643D01* X18096Y13565D01* X18122Y13481D01* X18148Y13384D01* X18174Y13286D01* X18193Y13176D01* X18200Y13066D01* X18206Y12943D01* Y12936D01* Y12930D01* Y12891D01* Y12826D01* X18200Y12755D01* X18193Y12664D01* X18180Y12567D01* X18141Y12373D01* X15938D01* Y12366D01* Y12340D01* X15932Y12314D01* Y12288D01* Y12282D01* Y12275D01* Y12237D01* X15944Y12178D01* X15957Y12100D01* X15977Y12016D01* X16009Y11932D01* X16055Y11841D01* X16113Y11763D01* X16119Y11757D01* X16145Y11731D01* X16184Y11705D01* X16242Y11666D01* X16307Y11634D01* X16385Y11602D01* X16476Y11576D01* X16573Y11569D01* X16618D01* X16644Y11576D01* X16683Y11582D01* X16728Y11595D01* X16826Y11627D01* X16878Y11647D01* X16936Y11679D01* X16994Y11718D01* X17046Y11763D01* X17104Y11815D01* X17163Y11874D01* X17214Y11945D01* X17260Y12023D01* X18044Y11893D01* Y11887D01* X18031Y11874D01* X18018Y11848D01* X17999Y11815D01* X17979Y11777D01* X17947Y11731D01* X17882Y11621D01* X17791Y11504D01* X17681Y11388D01* X17558Y11271D01* X17422Y11174D01* X17415D01* X17402Y11161D01* X17383Y11154D01* X17357Y11135D01* X17318Y11122D01* X17279Y11103D01* X17169Y11057D01* X17046Y11012D01* X16897Y10979D01* X16741Y10954D01* X16567Y10941D01* X16502D01* X16456Y10947D01* X16398Y10954D01* X16333Y10960D01* X16262Y10973D01* X16184Y10992D01* X16016Y11044D01* X15925Y11077D01* X15834Y11116D01* X15750Y11161D01* X15659Y11219D01* X15575Y11284D01* X15497Y11355D01* X15491Y11362D01* X15478Y11375D01* X15458Y11401D01* X15432Y11433D01* X15400Y11472D01* X15368Y11524D01* X15329Y11582D01* X15296Y11647D01* X15258Y11725D01* X15219Y11802D01* X15186Y11893D01* X15154Y11990D01* X15128Y12094D01* X15109Y12211D01* X15096Y12327D01* X15089Y12450D01* Y12457D01* Y12483D01* Y12515D01* X15096Y12561D01* X15102Y12619D01* X15109Y12690D01* X15122Y12768D01* X15134Y12852D01* X15180Y13034D01* X15212Y13131D01* X15245Y13235D01* X15290Y13338D01* X15335Y13442D01* X15394Y13546D01* X15458Y13643D01* X15465Y13649D01* X15484Y13675D01* X15510Y13708D01* X15549Y13753D01* X15608Y13805D01* X15666Y13870D01* X15744Y13928D01* X15828Y13999D01* X15925Y14064D01* X16035Y14129D01* X16152Y14187D01* X16281Y14239D01* X16418Y14284D01* X16567Y14317D01* X16728Y14343D01* X16897Y14349D01* X16955D01* X16994Y14343D01* D02* G37* G36* X3198D02* X3276Y14330D01* X3367Y14304D01* X3470Y14278D01* X3568Y14232D01* X3671Y14174D01* X3684Y14168D01* X3717Y14142D01* X3768Y14103D01* X3827Y14051D01* X3892Y13986D01* X3963Y13902D01* X4034Y13811D01* X4092Y13701D01* X4209Y14278D01* X5026D01* X4514Y11556D01* Y11550D01* X4507Y11530D01* X4501Y11498D01* X4488Y11452D01* X4475Y11401D01* X4462Y11336D01* X4430Y11200D01* X4391Y11051D01* X4352Y10895D01* X4313Y10753D01* X4293Y10694D01* X4274Y10636D01* X4267Y10623D01* X4254Y10591D01* X4235Y10539D01* X4209Y10474D01* X4177Y10409D01* X4138Y10332D01* X4099Y10260D01* X4054Y10195D01* X4047Y10189D01* X4034Y10170D01* X4002Y10137D01* X3969Y10098D01* X3924Y10053D01* X3866Y10007D01* X3807Y9962D01* X3736Y9917D01* X3730Y9910D01* X3704Y9897D01* X3665Y9878D01* X3613Y9858D01* X3542Y9826D01* X3470Y9800D01* X3380Y9774D01* X3289Y9755D01* X3276D01* X3244Y9748D01* X3192Y9742D01* X3121Y9729D01* X3036Y9722D01* X2939Y9709D01* X2835Y9703D01* X2660D01* X2615Y9709D01* X2557D01* X2492Y9716D01* X2414Y9722D01* X2336Y9735D01* X2168Y9761D01* X2000Y9807D01* X1831Y9865D01* X1760Y9904D01* X1688Y9943D01* X1682D01* X1675Y9956D01* X1637Y9988D01* X1578Y10046D01* X1514Y10131D01* X1481Y10182D01* X1449Y10234D01* X1423Y10299D01* X1390Y10370D01* X1371Y10448D01* X1352Y10532D01* X1345Y10630D01* X1338Y10727D01* Y10740D01* Y10766D01* Y10804D01* X1345Y10850D01* X2278Y10720D01* Y10714D01* Y10694D01* Y10668D01* X2285Y10643D01* X2298Y10571D01* X2310Y10539D01* X2324Y10506D01* X2330Y10493D01* X2356Y10468D01* X2401Y10422D01* X2466Y10383D01* X2472D01* X2486Y10377D01* X2511Y10370D01* X2537Y10357D01* X2583Y10351D01* X2628Y10338D01* X2680Y10332D01* X2796D01* X2848Y10338D01* X2913Y10344D01* X2991Y10357D01* X3069Y10383D01* X3146Y10409D01* X3218Y10448D01* X3224Y10455D01* X3244Y10468D01* X3263Y10487D01* X3295Y10513D01* X3334Y10552D01* X3367Y10597D01* X3406Y10655D01* X3438Y10720D01* Y10727D01* X3444Y10746D01* X3458Y10779D01* X3477Y10830D01* X3490Y10902D01* X3516Y10992D01* X3542Y11103D01* X3568Y11239D01* X3600Y11388D01* X3594Y11381D01* X3581Y11375D01* X3555Y11355D01* X3516Y11329D01* X3470Y11304D01* X3425Y11271D01* X3360Y11232D01* X3295Y11200D01* X3146Y11129D01* X2984Y11070D01* X2894Y11044D01* X2803Y11031D01* X2712Y11018D01* X2615Y11012D01* X2570D01* X2537Y11018D01* X2492Y11025D01* X2447Y11031D01* X2336Y11051D01* X2213Y11090D01* X2084Y11154D01* X2019Y11187D01* X1954Y11232D01* X1889Y11284D01* X1831Y11342D01* Y11349D01* X1818Y11355D01* X1805Y11375D01* X1786Y11407D01* X1760Y11440D01* X1734Y11485D01* X1708Y11537D01* X1682Y11595D01* X1650Y11660D01* X1624Y11731D01* X1598Y11809D01* X1572Y11900D01* X1552Y11997D01* X1539Y12100D01* X1533Y12211D01* X1526Y12327D01* Y12334D01* Y12353D01* Y12386D01* X1533Y12425D01* Y12476D01* X1539Y12535D01* X1546Y12599D01* X1552Y12677D01* X1578Y12839D01* X1617Y13014D01* X1663Y13196D01* X1734Y13377D01* Y13384D01* X1747Y13397D01* X1753Y13422D01* X1773Y13455D01* X1792Y13494D01* X1818Y13539D01* X1883Y13649D01* X1967Y13766D01* X2071Y13889D01* X2187Y13999D01* X2317Y14103D01* X2324D01* X2336Y14116D01* X2356Y14129D01* X2382Y14142D01* X2414Y14161D01* X2460Y14181D01* X2557Y14226D01* X2667Y14271D01* X2796Y14310D01* X2939Y14336D01* X3082Y14349D01* X3133D01* X3198Y14343D01* D02* G37* G36* X38761Y7931D02* X37886D01* X38054Y8722D01* X38923D01* X38761Y7931D01* D02* G37* G36* X-2251Y8800D02* X-2187Y8793D01* X-2109Y8787D01* X-2025Y8774D01* X-1934Y8761D01* X-1733Y8715D01* X-1629Y8683D01* X-1532Y8651D01* X-1428Y8605D01* X-1331Y8553D01* X-1240Y8495D01* X-1156Y8430D01* X-1150Y8424D01* X-1137Y8411D01* X-1117Y8391D01* X-1085Y8365D01* X-1053Y8327D01* X-1014Y8281D01* X-975Y8229D01* X-936Y8171D01* X-891Y8100D01* X-845Y8028D01* X-806Y7944D01* X-768Y7860D01* X-735Y7763D01* X-709Y7666D01* X-690Y7555D01* X-677Y7445D01* X-1558Y7406D01* Y7413D01* Y7419D01* X-1564Y7458D01* X-1584Y7517D01* X-1603Y7588D01* X-1636Y7666D01* X-1675Y7750D01* X-1726Y7828D01* X-1798Y7899D01* X-1804Y7905D01* X-1837Y7925D01* X-1882Y7957D01* X-1947Y7990D01* X-2025Y8016D01* X-2128Y8048D01* X-2251Y8067D01* X-2387Y8074D01* X-2452D01* X-2517Y8067D01* X-2601Y8054D01* X-2686Y8041D01* X-2776Y8016D01* X-2860Y7983D01* X-2932Y7938D01* X-2938Y7931D01* X-2958Y7912D01* X-2984Y7886D01* X-3010Y7847D01* X-3042Y7795D01* X-3068Y7737D01* X-3087Y7666D01* X-3094Y7594D01* Y7588D01* Y7562D01* X-3087Y7530D01* X-3074Y7484D01* X-3055Y7432D01* X-3029Y7380D01* X-2997Y7329D01* X-2945Y7277D01* X-2938Y7270D01* X-2912Y7251D01* X-2874Y7225D01* X-2809Y7186D01* X-2763Y7160D01* X-2718Y7134D01* X-2666Y7102D01* X-2601Y7069D01* X-2537Y7037D01* X-2459Y6998D01* X-2375Y6959D01* X-2284Y6920D01* X-2277Y6914D01* X-2251Y6907D01* X-2213Y6888D01* X-2161Y6869D01* X-2096Y6836D01* X-2025Y6804D01* X-1869Y6726D01* X-1701Y6642D01* X-1539Y6551D01* X-1461Y6506D01* X-1396Y6460D01* X-1338Y6415D01* X-1292Y6376D01* X-1286Y6370D01* X-1279Y6363D01* X-1260Y6344D01* X-1240Y6324D01* X-1189Y6253D01* X-1130Y6162D01* X-1072Y6052D01* X-1027Y5916D01* X-988Y5760D01* X-981Y5683D01* X-975Y5592D01* Y5585D01* Y5566D01* Y5534D01* X-981Y5495D01* X-988Y5443D01* X-1001Y5378D01* X-1014Y5313D01* X-1033Y5242D01* X-1059Y5164D01* X-1091Y5080D01* X-1130Y4996D01* X-1176Y4912D01* X-1228Y4827D01* X-1292Y4737D01* X-1364Y4659D01* X-1448Y4575D01* X-1454Y4568D01* X-1467Y4555D01* X-1500Y4536D01* X-1532Y4510D01* X-1584Y4477D01* X-1642Y4439D01* X-1707Y4406D01* X-1791Y4367D01* X-1876Y4322D01* X-1973Y4290D01* X-2083Y4251D01* X-2200Y4218D01* X-2323Y4192D01* X-2459Y4173D01* X-2601Y4160D01* X-2757Y4153D01* X-2854D01* X-2906Y4160D01* X-2964Y4166D01* X-3029D01* X-3100Y4179D01* X-3256Y4199D01* X-3424Y4231D01* X-3599Y4277D01* X-3761Y4341D01* X-3768D01* X-3781Y4348D01* X-3800Y4361D01* X-3833Y4380D01* X-3904Y4419D01* X-3994Y4484D01* X-4092Y4555D01* X-4189Y4652D01* X-4280Y4756D01* X-4357Y4879D01* Y4886D01* X-4364Y4892D01* X-4370Y4912D01* X-4383Y4944D01* X-4396Y4976D01* X-4409Y5015D01* X-4442Y5113D01* X-4474Y5229D01* X-4500Y5365D01* X-4513Y5514D01* X-4519Y5676D01* X-3638Y5728D01* Y5722D01* Y5709D01* Y5689D01* X-3632Y5663D01* X-3625Y5585D01* X-3612Y5501D01* X-3599Y5404D01* X-3573Y5307D01* X-3541Y5223D01* X-3496Y5158D01* X-3483Y5145D01* X-3457Y5119D01* X-3405Y5087D01* X-3327Y5041D01* X-3282Y5022D01* X-3223Y4996D01* X-3165Y4976D01* X-3094Y4963D01* X-3022Y4944D01* X-2938Y4938D01* X-2848Y4925D01* X-2679D01* X-2640Y4931D01* X-2595D01* X-2498Y4944D01* X-2394Y4963D01* X-2284Y4996D01* X-2180Y5035D01* X-2096Y5087D01* X-2089Y5093D01* X-2063Y5113D01* X-2031Y5151D01* X-1992Y5197D01* X-1953Y5255D01* X-1921Y5320D01* X-1895Y5391D01* X-1888Y5475D01* Y5482D01* Y5508D01* X-1895Y5547D01* X-1908Y5592D01* X-1927Y5644D01* X-1960Y5702D01* X-1999Y5760D01* X-2057Y5812D01* X-2063Y5819D01* X-2083Y5832D01* X-2122Y5858D01* X-2180Y5890D01* X-2219Y5916D01* X-2264Y5942D01* X-2316Y5968D01* X-2375Y5994D01* X-2446Y6026D01* X-2517Y6065D01* X-2608Y6104D01* X-2699Y6143D01* X-2705D01* X-2724Y6156D01* X-2750Y6162D01* X-2783Y6182D01* X-2828Y6201D01* X-2880Y6221D01* X-2990Y6272D01* X-3113Y6337D01* X-3243Y6396D01* X-3359Y6460D01* X-3418Y6493D01* X-3463Y6519D01* X-3476Y6525D01* X-3502Y6545D01* X-3547Y6583D01* X-3599Y6629D01* X-3658Y6681D01* X-3722Y6752D01* X-3781Y6830D01* X-3839Y6914D01* X-3845Y6927D01* X-3858Y6959D01* X-3884Y7011D01* X-3904Y7076D01* X-3930Y7160D01* X-3956Y7257D01* X-3969Y7367D01* X-3975Y7484D01* Y7491D01* Y7510D01* Y7542D01* X-3969Y7581D01* X-3962Y7627D01* X-3956Y7685D01* X-3943Y7750D01* X-3923Y7815D01* X-3878Y7964D01* X-3839Y8041D01* X-3800Y8126D01* X-3755Y8203D01* X-3703Y8281D01* X-3638Y8359D01* X-3567Y8430D01* X-3560Y8437D01* X-3547Y8450D01* X-3522Y8463D01* X-3489Y8489D01* X-3450Y8514D01* X-3398Y8547D01* X-3334Y8586D01* X-3262Y8618D01* X-3184Y8651D01* X-3100Y8689D01* X-3003Y8722D01* X-2893Y8748D01* X-2776Y8774D01* X-2653Y8793D01* X-2524Y8800D01* X-2381Y8806D01* X-2303D01* X-2251Y8800D01* D02* G37* G36* X7579Y7555D02* X7624Y7549D01* X7676Y7542D01* X7793Y7517D01* X7922Y7478D01* X8058Y7413D01* X8123Y7374D01* X8194Y7322D01* X8259Y7270D01* X8318Y7205D01* X8324Y7199D01* X8330Y7193D01* X8350Y7167D01* X8369Y7141D01* X8389Y7102D01* X8421Y7057D01* X8447Y7005D01* X8479Y6946D01* X8505Y6875D01* X8538Y6797D01* X8564Y6707D01* X8583Y6616D01* X8609Y6512D01* X8622Y6402D01* X8629Y6285D01* X8635Y6156D01* Y6143D01* Y6117D01* X8629Y6072D01* Y6007D01* X8616Y5935D01* X8609Y5845D01* X8590Y5748D01* X8570Y5637D01* X8538Y5527D01* X8505Y5404D01* X8460Y5281D01* X8408Y5158D01* X8343Y5028D01* X8272Y4905D01* X8188Y4782D01* X8091Y4665D01* X8084Y4659D01* X8071Y4646D01* X8045Y4620D01* X8006Y4588D01* X7968Y4549D01* X7909Y4503D01* X7851Y4458D01* X7780Y4413D01* X7702Y4361D01* X7624Y4315D01* X7533Y4270D01* X7436Y4231D01* X7333Y4199D01* X7222Y4173D01* X7112Y4160D01* X6996Y4153D01* X6970D01* X6931Y4160D01* X6892D01* X6834Y4166D01* X6775Y4179D01* X6704Y4199D01* X6633Y4218D01* X6548Y4244D01* X6471Y4283D01* X6386Y4322D01* X6309Y4374D01* X6224Y4432D01* X6147Y4503D01* X6075Y4581D01* X6011Y4672D01* X5667Y3000D01* X4799D01* X5732Y7491D01* X6555D01* X6490Y7147D01* X6503Y7160D01* X6536Y7186D01* X6587Y7225D01* X6652Y7270D01* X6730Y7322D01* X6814Y7374D01* X6898Y7426D01* X6989Y7465D01* X7002Y7471D01* X7028Y7478D01* X7080Y7497D01* X7138Y7517D01* X7216Y7530D01* X7300Y7549D01* X7397Y7555D01* X7495Y7562D01* X7546D01* X7579Y7555D01* D02* G37* G36* X48208Y7555D02* X48260Y7549D01* X48318Y7536D01* X48390Y7523D01* X48468Y7497D01* X48545Y7465D01* X48208Y6745D01* X48202D01* X48189Y6752D01* X48163Y6758D01* X48131Y6771D01* X48046Y6784D01* X47949Y6791D01* X47910D01* X47865Y6784D01* X47807Y6771D01* X47735Y6745D01* X47658Y6719D01* X47573Y6674D01* X47483Y6616D01* X47470Y6609D01* X47444Y6583D01* X47405Y6545D01* X47353Y6499D01* X47295Y6434D01* X47230Y6357D01* X47172Y6266D01* X47120Y6162D01* X47113Y6149D01* X47107Y6130D01* X47100Y6110D01* X47087Y6078D01* X47074Y6039D01* X47055Y5994D01* X47042Y5942D01* X47023Y5884D01* X46997Y5819D01* X46977Y5741D01* X46958Y5657D01* X46932Y5573D01* X46906Y5475D01* X46886Y5365D01* X46861Y5255D01* X46647Y4238D01* X45778D01* X46459Y7491D01* X47275D01* X47146Y6862D01* X47152Y6869D01* X47165Y6894D01* X47191Y6927D01* X47223Y6972D01* X47269Y7024D01* X47321Y7082D01* X47379Y7147D01* X47444Y7212D01* X47593Y7342D01* X47671Y7400D01* X47761Y7452D01* X47846Y7497D01* X47943Y7530D01* X48040Y7555D01* X48137Y7562D01* X48169D01* X48208Y7555D01* D02* G37* G36* X37056D02* X37108Y7549D01* X37166Y7536D01* X37238Y7523D01* X37315Y7497D01* X37393Y7465D01* X37056Y6745D01* X37050D01* X37037Y6752D01* X37011Y6758D01* X36979Y6771D01* X36894Y6784D01* X36797Y6791D01* X36758D01* X36713Y6784D01* X36654Y6771D01* X36583Y6745D01* X36505Y6719D01* X36421Y6674D01* X36331Y6616D01* X36318Y6609D01* X36292Y6583D01* X36253Y6545D01* X36201Y6499D01* X36143Y6434D01* X36078Y6357D01* X36020Y6266D01* X35968Y6162D01* X35961Y6149D01* X35955Y6130D01* X35948Y6110D01* X35935Y6078D01* X35922Y6039D01* X35903Y5994D01* X35890Y5942D01* X35870Y5884D01* X35844Y5819D01* X35825Y5741D01* X35806Y5657D01* X35780Y5573D01* X35754Y5475D01* X35734Y5365D01* X35708Y5255D01* X35495Y4238D01* X34626D01* X35307Y7491D01* X36123D01* X35994Y6862D01* X36000Y6869D01* X36013Y6894D01* X36039Y6927D01* X36071Y6972D01* X36117Y7024D01* X36169Y7082D01* X36227Y7147D01* X36292Y7212D01* X36441Y7342D01* X36518Y7400D01* X36609Y7452D01* X36693Y7497D01* X36791Y7530D01* X36888Y7555D01* X36985Y7562D01* X37017D01* X37056Y7555D01* D02* G37* G36* X28354D02* X28405Y7549D01* X28464Y7536D01* X28535Y7523D01* X28613Y7497D01* X28691Y7465D01* X28354Y6745D01* X28347D01* X28334Y6752D01* X28308Y6758D01* X28276Y6771D01* X28192Y6784D01* X28094Y6791D01* X28056D01* X28010Y6784D01* X27952Y6771D01* X27881Y6745D01* X27803Y6719D01* X27719Y6674D01* X27628Y6616D01* X27615Y6609D01* X27589Y6583D01* X27550Y6545D01* X27498Y6499D01* X27440Y6434D01* X27375Y6357D01* X27317Y6266D01* X27265Y6162D01* X27259Y6149D01* X27252Y6130D01* X27246Y6110D01* X27233Y6078D01* X27220Y6039D01* X27200Y5994D01* X27187Y5942D01* X27168Y5884D01* X27142Y5819D01* X27122Y5741D01* X27103Y5657D01* X27077Y5573D01* X27051Y5475D01* X27032Y5365D01* X27006Y5255D01* X26792Y4238D01* X25924D01* X26604Y7491D01* X27420D01* X27291Y6862D01* X27297Y6869D01* X27310Y6894D01* X27336Y6927D01* X27369Y6972D01* X27414Y7024D01* X27466Y7082D01* X27524Y7147D01* X27589Y7212D01* X27738Y7342D01* X27816Y7400D01* X27907Y7452D01* X27991Y7497D01* X28088Y7530D01* X28185Y7555D01* X28282Y7562D01* X28315D01* X28354Y7555D01* D02* G37* G36* X15309Y4238D02* X14473D01* X15251Y7957D01* X13586Y4238D01* X12711D01* X12542Y7983D01* X11836Y4238D01* X11000D01* X11933Y8722D01* X13249D01* X13391Y5637D01* X14797Y8722D01* X16126D01* X15309Y4238D01* D02* G37* G36* X10624Y5430D02* X8920D01* X9089Y6279D01* X10793D01* X10624Y5430D01* D02* G37* G36* X40478Y4238D02* X39726D01* X39078Y7491D01* X39940D01* X40160Y6065D01* Y6059D01* X40167Y6039D01* Y6013D01* X40173Y5974D01* X40180Y5929D01* X40193Y5871D01* X40212Y5754D01* X40231Y5624D01* X40251Y5501D01* X40264Y5391D01* X40270Y5346D01* X40277Y5307D01* X40283Y5320D01* X40296Y5339D01* X40316Y5372D01* X40342Y5424D01* X40380Y5488D01* X40426Y5579D01* X40458Y5637D01* X40491Y5696D01* Y5702D01* X40497Y5709D01* X40523Y5748D01* X40556Y5806D01* X40594Y5877D01* X40633Y5948D01* X40672Y6013D01* X40705Y6072D01* X40724Y6110D01* X41534Y7491D01* X42480D01* X40478Y4238D01* D02* G37* G36* X37983D02* X37115D01* X37795Y7491D01* X38670D01* X37983Y4238D01* D02* G37* G36* X32695Y8715D02* X32805D01* X32896Y8709D01* X32928D01* X32961Y8702D01* X32974D01* X33006Y8696D01* X33058Y8689D01* X33129Y8676D01* X33207Y8664D01* X33291Y8644D01* X33460Y8586D01* X33473Y8579D01* X33499Y8573D01* X33538Y8553D01* X33596Y8528D01* X33654Y8489D01* X33726Y8450D01* X33790Y8404D01* X33862Y8346D01* X33868Y8339D01* X33894Y8320D01* X33926Y8288D01* X33972Y8242D01* X34017Y8190D01* X34069Y8126D01* X34121Y8054D01* X34173Y7977D01* X34179Y7970D01* X34192Y7938D01* X34218Y7892D01* X34244Y7834D01* X34276Y7763D01* X34315Y7679D01* X34348Y7581D01* X34374Y7478D01* X34380Y7465D01* X34387Y7426D01* X34400Y7367D01* X34412Y7296D01* X34425Y7205D01* X34432Y7095D01* X34445Y6985D01* Y6862D01* Y6856D01* Y6830D01* Y6791D01* X34438Y6739D01* Y6674D01* X34432Y6603D01* X34419Y6519D01* X34412Y6428D01* X34393Y6331D01* X34380Y6227D01* X34328Y6013D01* X34257Y5793D01* X34218Y5683D01* X34166Y5573D01* Y5566D01* X34153Y5547D01* X34140Y5521D01* X34114Y5482D01* X34088Y5430D01* X34056Y5378D01* X33972Y5249D01* X33875Y5106D01* X33751Y4957D01* X33615Y4814D01* X33466Y4678D01* X33460D01* X33453Y4665D01* X33434Y4652D01* X33408Y4640D01* X33376Y4614D01* X33337Y4594D01* X33240Y4536D01* X33123Y4478D01* X32980Y4413D01* X32818Y4354D01* X32637Y4302D01* X32624D01* X32605Y4296D01* X32585Y4290D01* X32553D01* X32514Y4283D01* X32468Y4277D01* X32417Y4270D01* X32358Y4264D01* X32293Y4257D01* X32222Y4251D01* X32138D01* X32054Y4244D01* X31956Y4238D01* X30168D01* X31108Y8722D01* X32585D01* X32695Y8715D01* D02* G37* G36* X44359Y7555D02* X44411Y7549D01* X44469Y7542D01* X44534Y7530D01* X44605Y7517D01* X44761Y7471D01* X44839Y7445D01* X44916Y7406D01* X44994Y7361D01* X45072Y7316D01* X45143Y7257D01* X45215Y7193D01* X45221Y7186D01* X45228Y7173D01* X45247Y7154D01* X45273Y7128D01* X45299Y7089D01* X45325Y7044D01* X45357Y6985D01* X45396Y6927D01* X45428Y6856D01* X45461Y6778D01* X45487Y6694D01* X45513Y6596D01* X45539Y6499D01* X45558Y6389D01* X45564Y6279D01* X45571Y6156D01* Y6149D01* Y6143D01* Y6104D01* Y6039D01* X45564Y5968D01* X45558Y5877D01* X45545Y5780D01* X45506Y5585D01* X43303D01* Y5579D01* Y5553D01* X43297Y5527D01* Y5501D01* Y5495D01* Y5488D01* Y5449D01* X43310Y5391D01* X43322Y5313D01* X43342Y5229D01* X43374Y5145D01* X43420Y5054D01* X43478Y4976D01* X43484Y4970D01* X43510Y4944D01* X43549Y4918D01* X43608Y4879D01* X43672Y4847D01* X43750Y4814D01* X43841Y4789D01* X43938Y4782D01* X43983D01* X44009Y4789D01* X44048Y4795D01* X44094Y4808D01* X44191Y4840D01* X44243Y4860D01* X44301Y4892D01* X44359Y4931D01* X44411Y4976D01* X44469Y5028D01* X44528Y5087D01* X44580Y5158D01* X44625Y5236D01* X45409Y5106D01* Y5099D01* X45396Y5087D01* X45383Y5061D01* X45364Y5028D01* X45344Y4989D01* X45312Y4944D01* X45247Y4834D01* X45156Y4717D01* X45046Y4601D01* X44923Y4484D01* X44787Y4387D01* X44780D01* X44767Y4374D01* X44748Y4367D01* X44722Y4348D01* X44683Y4335D01* X44644Y4315D01* X44534Y4270D01* X44411Y4225D01* X44262Y4192D01* X44107Y4166D01* X43932Y4154D01* X43867D01* X43821Y4160D01* X43763Y4166D01* X43698Y4173D01* X43627Y4186D01* X43549Y4205D01* X43381Y4257D01* X43290Y4290D01* X43199Y4328D01* X43115Y4374D01* X43024Y4432D01* X42940Y4497D01* X42862Y4568D01* X42856Y4575D01* X42843Y4588D01* X42823Y4614D01* X42798Y4646D01* X42765Y4685D01* X42733Y4737D01* X42694Y4795D01* X42661Y4860D01* X42623Y4938D01* X42584Y5015D01* X42551Y5106D01* X42519Y5203D01* X42493Y5307D01* X42474Y5424D01* X42461Y5540D01* X42454Y5663D01* Y5670D01* Y5696D01* Y5728D01* X42461Y5773D01* X42467Y5832D01* X42474Y5903D01* X42487Y5981D01* X42500Y6065D01* X42545Y6247D01* X42577Y6344D01* X42610Y6447D01* X42655Y6551D01* X42700Y6655D01* X42759Y6758D01* X42823Y6856D01* X42830Y6862D01* X42849Y6888D01* X42875Y6920D01* X42914Y6966D01* X42972Y7018D01* X43031Y7082D01* X43109Y7141D01* X43193Y7212D01* X43290Y7277D01* X43400Y7342D01* X43517Y7400D01* X43646Y7452D01* X43782Y7497D01* X43932Y7530D01* X44094Y7555D01* X44262Y7562D01* X44320D01* X44359Y7555D01* D02* G37* G36* X24239D02* X24304Y7549D01* X24368Y7542D01* X24446Y7530D01* X24530Y7510D01* X24712Y7465D01* X24803Y7432D01* X24900Y7393D01* X24991Y7348D01* X25081Y7290D01* X25166Y7231D01* X25243Y7160D01* X25250Y7154D01* X25263Y7141D01* X25282Y7121D01* X25308Y7089D01* X25340Y7050D01* X25373Y6998D01* X25412Y6946D01* X25451Y6882D01* X25483Y6804D01* X25522Y6726D01* X25554Y6635D01* X25587Y6545D01* X25613Y6441D01* X25632Y6331D01* X25645Y6214D01* X25651Y6091D01* Y6084D01* Y6059D01* Y6013D01* X25645Y5961D01* X25638Y5890D01* X25626Y5812D01* X25606Y5722D01* X25587Y5624D01* X25561Y5521D01* X25528Y5411D01* X25490Y5294D01* X25438Y5184D01* X25379Y5067D01* X25315Y4950D01* X25237Y4834D01* X25146Y4724D01* X25140Y4717D01* X25120Y4698D01* X25094Y4672D01* X25055Y4633D01* X25003Y4594D01* X24939Y4542D01* X24867Y4490D01* X24790Y4439D01* X24692Y4387D01* X24595Y4335D01* X24485Y4283D01* X24362Y4244D01* X24232Y4205D01* X24096Y4179D01* X23947Y4160D01* X23792Y4154D01* X23714D01* X23675Y4160D01* X23630Y4166D01* X23520Y4179D01* X23390Y4199D01* X23254Y4231D01* X23111Y4277D01* X22975Y4335D01* X22969D01* X22962Y4341D01* X22943Y4354D01* X22917Y4367D01* X22852Y4413D01* X22774Y4471D01* X22690Y4542D01* X22599Y4633D01* X22515Y4737D01* X22444Y4853D01* Y4860D01* X22437Y4866D01* X22431Y4886D01* X22418Y4912D01* X22392Y4983D01* X22360Y5074D01* X22327Y5177D01* X22301Y5300D01* X22282Y5437D01* X22275Y5579D01* Y5592D01* Y5618D01* X22282Y5663D01* Y5728D01* X22288Y5806D01* X22301Y5890D01* X22321Y5994D01* X22340Y6097D01* X22366Y6208D01* X22399Y6324D01* X22437Y6447D01* X22489Y6564D01* X22548Y6687D01* X22612Y6804D01* X22690Y6914D01* X22781Y7018D01* X22787Y7024D01* X22807Y7044D01* X22833Y7069D01* X22872Y7102D01* X22923Y7147D01* X22988Y7193D01* X23059Y7238D01* X23144Y7290D01* X23234Y7342D01* X23332Y7387D01* X23442Y7439D01* X23565Y7478D01* X23688Y7510D01* X23824Y7536D01* X23973Y7555D01* X24122Y7562D01* X24193D01* X24239Y7555D01* D02* G37* G36* X21718Y7491D02* X22256D01* X22120Y6836D01* X21582D01* X21297Y5462D01* Y5456D01* Y5449D01* X21290Y5430D01* X21284Y5404D01* X21271Y5346D01* X21258Y5274D01* X21245Y5197D01* X21232Y5132D01* X21226Y5074D01* X21219Y5054D01* Y5041D01* Y5035D01* Y5028D01* X21226Y4983D01* X21245Y4938D01* X21278Y4886D01* X21284D01* X21290Y4879D01* X21310Y4866D01* X21329Y4860D01* X21362Y4847D01* X21407Y4834D01* X21459Y4827D01* X21550D01* X21576Y4834D01* X21614D01* X21666Y4840D01* X21731Y4847D01* X21809Y4853D01* X21673Y4205D01* X21660D01* X21634Y4199D01* X21588Y4192D01* X21530Y4179D01* X21459Y4173D01* X21381Y4160D01* X21206Y4154D01* X21128D01* X21090Y4160D01* X21051D01* X20947Y4173D01* X20837Y4199D01* X20720Y4225D01* X20617Y4270D01* X20526Y4328D01* X20519Y4335D01* X20493Y4361D01* X20461Y4406D01* X20422Y4458D01* X20383Y4529D01* X20351Y4620D01* X20325Y4717D01* X20318Y4834D01* Y4840D01* Y4866D01* X20325Y4912D01* X20331Y4976D01* X20338Y5022D01* X20344Y5067D01* X20357Y5125D01* X20370Y5190D01* X20383Y5262D01* X20396Y5339D01* X20416Y5430D01* X20435Y5527D01* X20714Y6836D01* X20280Y6836D01* X20416Y7491D01* X20843Y7491D01* X20947Y8009D01* X21945Y8612D01* X21718Y7491D01* D02* G37* G36* X18323Y7555D02* X18387Y7549D01* X18452Y7542D01* X18530Y7530D01* X18614Y7510D01* X18796Y7465D01* X18886Y7432D01* X18984Y7393D01* X19074Y7348D01* X19165Y7290D01* X19249Y7231D01* X19327Y7160D01* X19333Y7154D01* X19346Y7141D01* X19366Y7121D01* X19392Y7089D01* X19424Y7050D01* X19457Y6998D01* X19496Y6946D01* X19534Y6882D01* X19567Y6804D01* X19606Y6726D01* X19638Y6635D01* X19670Y6545D01* X19696Y6441D01* X19716Y6331D01* X19729Y6214D01* X19735Y6091D01* Y6084D01* Y6059D01* Y6013D01* X19729Y5961D01* X19722Y5890D01* X19709Y5812D01* X19690Y5722D01* X19670Y5624D01* X19645Y5521D01* X19612Y5411D01* X19573Y5294D01* X19521Y5184D01* X19463Y5067D01* X19398Y4950D01* X19320Y4834D01* X19230Y4724D01* X19223Y4717D01* X19204Y4698D01* X19178Y4672D01* X19139Y4633D01* X19087Y4594D01* X19022Y4542D01* X18951Y4490D01* X18873Y4439D01* X18776Y4387D01* X18679Y4335D01* X18569Y4283D01* X18446Y4244D01* X18316Y4205D01* X18180Y4179D01* X18031Y4160D01* X17876Y4153D01* X17798D01* X17759Y4160D01* X17714Y4166D01* X17603Y4179D01* X17474Y4199D01* X17338Y4231D01* X17195Y4277D01* X17059Y4335D01* X17052D01* X17046Y4341D01* X17027Y4354D01* X17001Y4367D01* X16936Y4413D01* X16858Y4471D01* X16774Y4542D01* X16683Y4633D01* X16599Y4737D01* X16528Y4853D01* Y4860D01* X16521Y4866D01* X16515Y4886D01* X16502Y4912D01* X16476Y4983D01* X16443Y5074D01* X16411Y5177D01* X16385Y5300D01* X16366Y5437D01* X16359Y5579D01* Y5592D01* Y5618D01* X16366Y5663D01* Y5728D01* X16372Y5806D01* X16385Y5890D01* X16405Y5994D01* X16424Y6097D01* X16450Y6208D01* X16482Y6324D01* X16521Y6447D01* X16573Y6564D01* X16631Y6687D01* X16696Y6804D01* X16774Y6914D01* X16865Y7018D01* X16871Y7024D01* X16891Y7044D01* X16916Y7069D01* X16955Y7102D01* X17007Y7147D01* X17072Y7193D01* X17143Y7238D01* X17228Y7290D01* X17318Y7342D01* X17415Y7387D01* X17526Y7439D01* X17649Y7478D01* X17772Y7510D01* X17908Y7536D01* X18057Y7555D01* X18206Y7562D01* X18277D01* X18323Y7555D01* D02* G37* G36* X3619D02* X3671Y7549D01* X3730Y7542D01* X3794Y7530D01* X3866Y7517D01* X4021Y7471D01* X4099Y7445D01* X4177Y7406D01* X4254Y7361D01* X4332Y7316D01* X4404Y7257D01* X4475Y7193D01* X4481Y7186D01* X4488Y7173D01* X4507Y7154D01* X4533Y7128D01* X4559Y7089D01* X4585Y7044D01* X4617Y6985D01* X4656Y6927D01* X4689Y6856D01* X4721Y6778D01* X4747Y6694D01* X4773Y6596D01* X4799Y6499D01* X4818Y6389D01* X4825Y6279D01* X4831Y6156D01* Y6149D01* Y6143D01* Y6104D01* Y6039D01* X4825Y5968D01* X4818Y5877D01* X4805Y5780D01* X4766Y5585D01* X2563D01* Y5579D01* Y5553D01* X2557Y5527D01* Y5501D01* Y5495D01* Y5488D01* Y5449D01* X2570Y5391D01* X2583Y5313D01* X2602Y5229D01* X2634Y5145D01* X2680Y5054D01* X2738Y4976D01* X2745Y4970D01* X2771Y4944D01* X2809Y4918D01* X2868Y4879D01* X2933Y4847D01* X3010Y4814D01* X3101Y4789D01* X3198Y4782D01* X3244D01* X3270Y4789D01* X3308Y4795D01* X3354Y4808D01* X3451Y4840D01* X3503Y4860D01* X3561Y4892D01* X3619Y4931D01* X3671Y4976D01* X3730Y5028D01* X3788Y5087D01* X3840Y5158D01* X3885Y5236D01* X4669Y5106D01* Y5099D01* X4656Y5087D01* X4643Y5061D01* X4624Y5028D01* X4604Y4989D01* X4572Y4944D01* X4507Y4834D01* X4417Y4717D01* X4306Y4601D01* X4183Y4484D01* X4047Y4387D01* X4041D01* X4028Y4374D01* X4008Y4367D01* X3982Y4348D01* X3943Y4335D01* X3905Y4315D01* X3794Y4270D01* X3671Y4225D01* X3522Y4192D01* X3367Y4166D01* X3192Y4153D01* X3127D01* X3082Y4160D01* X3023Y4166D01* X2959Y4173D01* X2887Y4186D01* X2809Y4205D01* X2641Y4257D01* X2550Y4290D01* X2460Y4328D01* X2375Y4374D01* X2285Y4432D01* X2200Y4497D01* X2123Y4568D01* X2116Y4575D01* X2103Y4588D01* X2084Y4614D01* X2058Y4646D01* X2025Y4685D01* X1993Y4737D01* X1954Y4795D01* X1922Y4860D01* X1883Y4938D01* X1844Y5015D01* X1812Y5106D01* X1779Y5203D01* X1753Y5307D01* X1734Y5424D01* X1721Y5540D01* X1714Y5663D01* Y5670D01* Y5696D01* Y5728D01* X1721Y5773D01* X1727Y5832D01* X1734Y5903D01* X1747Y5981D01* X1760Y6065D01* X1805Y6247D01* X1837Y6344D01* X1870Y6447D01* X1915Y6551D01* X1961Y6655D01* X2019Y6758D01* X2084Y6856D01* X2090Y6862D01* X2110Y6888D01* X2136Y6920D01* X2174Y6966D01* X2233Y7018D01* X2291Y7082D01* X2369Y7141D01* X2453Y7212D01* X2550Y7277D01* X2660Y7342D01* X2777Y7400D01* X2907Y7452D01* X3043Y7497D01* X3192Y7530D01* X3354Y7555D01* X3522Y7562D01* X3581D01* X3619Y7555D01* D02* G37* G36* X1177Y7491D02* X1714D01* X1578Y6836D01* X1040D01* X755Y5462D01* Y5456D01* Y5449D01* X749Y5430D01* X742Y5404D01* X729Y5346D01* X716Y5274D01* X703Y5197D01* X691Y5132D01* X684Y5074D01* X678Y5054D01* Y5041D01* Y5035D01* Y5028D01* X684Y4983D01* X703Y4938D01* X736Y4886D01* X742D01* X749Y4879D01* X768Y4866D01* X788Y4860D01* X820Y4847D01* X865Y4834D01* X917Y4827D01* X1008D01* X1034Y4834D01* X1073D01* X1125Y4840D01* X1190Y4847D01* X1267Y4853D01* X1131Y4205D01* X1118D01* X1092Y4199D01* X1047Y4192D01* X989Y4179D01* X917Y4173D01* X840Y4160D01* X665Y4153D01* X587D01* X548Y4160D01* X509D01* X405Y4173D01* X295Y4199D01* X179Y4225D01* X75Y4270D01* X-16Y4328D01* X-22Y4335D01* X-48Y4361D01* X-81Y4406D01* X-120Y4458D01* X-158Y4529D01* X-191Y4620D01* X-217Y4717D01* X-223Y4834D01* Y4840D01* Y4866D01* X-217Y4912D01* X-210Y4976D01* X-204Y5022D01* X-197Y5067D01* X-184Y5125D01* X-171Y5190D01* X-158Y5262D01* X-145Y5339D01* X-126Y5430D01* X-106Y5527D01* X172Y6836D01* X-262D01* X-126Y7491D01* X302D01* X405Y8009D01* X1403Y8612D01* X1177Y7491D01* D02* G37* G36* X29569Y-5913D02* D01* Y-10800D01* X8631D01* Y-5913D01* D01* Y-773D01* X29569D01* Y-5913D01* D02* G37* G36* X-45859Y11865D02* X-46562Y11458D01* X-45859Y11055D01* Y10596D01* X-46799Y11218D01* X-47646Y10666D01* Y11140D01* X-47039Y11473D01* X-47646Y11806D01* Y12261D01* X-46813Y11724D01* X-45859Y12342D01* Y11865D01* D02* G37* G36* Y9941D02* X-46784Y9371D01* Y9179D01* X-45859D01* Y8735D01* X-48175D01* Y9434D01* X-48171Y9453D01* Y9478D01* X-48164Y9538D01* X-48153Y9604D01* X-48138Y9682D01* X-48119Y9763D01* X-48090Y9852D01* X-48053Y9937D01* X-48008Y10019D01* X-47953Y10096D01* X-47886Y10163D01* X-47809Y10222D01* X-47764Y10248D01* X-47716Y10267D01* X-47664Y10285D01* X-47613Y10296D01* X-47553Y10304D01* X-47490Y10307D01* X-47487D01* X-47479D01* X-47468D01* X-47450Y10304D01* X-47427D01* X-47402Y10300D01* X-47346Y10289D01* X-47280Y10270D01* X-47213Y10244D01* X-47143Y10207D01* X-47076Y10159D01* X-47069Y10152D01* X-47050Y10133D01* X-47021Y10100D01* X-46987Y10059D01* X-46950Y10004D01* X-46913Y9941D01* X-46880Y9871D01* X-46850Y9793D01* X-45859Y10433D01* Y9941D01* D02* G37* G36* Y5860D02* X-46562Y5453D01* X-45859Y5050D01* Y4591D01* X-46799Y5212D01* X-47646Y4661D01* Y5135D01* X-47039Y5468D01* X-47646Y5801D01* Y6256D01* X-46813Y5719D01* X-45859Y6337D01* Y5860D01* D02* G37* G36* X-47805Y4328D02* Y3684D01* X-45859D01* Y3237D01* X-47805D01* Y2560D01* X-48175D01* Y4372D01* X-47805Y4328D01* D02* G37* G36* X-45859Y-204D02* X-46070Y-223D01* X-46066Y-227D01* X-46051Y-230D01* X-46029Y-241D01* X-46003Y-260D01* X-45973Y-282D01* X-45940Y-312D01* X-45911Y-352D01* X-45885Y-397D01* X-45881Y-404D01* X-45873Y-419D01* X-45862Y-445D01* X-45851Y-482D01* X-45840Y-523D01* X-45829Y-571D01* X-45822Y-626D01* X-45818Y-682D01* Y-715D01* X-45822Y-737D01* X-45825Y-767D01* X-45833Y-800D01* X-45851Y-874D01* X-45881Y-959D01* X-45899Y-1000D01* X-45925Y-1044D01* X-45955Y-1085D01* X-45988Y-1126D01* X-46025Y-1163D01* X-46070Y-1196D01* X-46073D01* X-46081Y-1203D01* X-46095Y-1211D01* X-46114Y-1222D01* X-46140Y-1237D01* X-46173Y-1252D01* X-46207Y-1266D01* X-46251Y-1281D01* X-46295Y-1296D01* X-46347Y-1311D01* X-46403Y-1326D01* X-46466Y-1340D01* X-46532Y-1351D01* X-46599Y-1359D01* X-46676Y-1362D01* X-46754Y-1366D01* X-46758D01* X-46765D01* X-46780D01* X-46799D01* X-46824Y-1362D01* X-46850D01* X-46917Y-1355D01* X-46991Y-1344D01* X-47072Y-1329D01* X-47154Y-1311D01* X-47235Y-1281D01* X-47239D01* X-47246Y-1277D01* X-47257Y-1274D01* X-47268Y-1266D01* X-47309Y-1244D01* X-47357Y-1218D01* X-47409Y-1185D01* X-47464Y-1141D01* X-47520Y-1089D01* X-47568Y-1033D01* Y-1029D01* X-47572Y-1026D01* X-47587Y-1004D01* X-47605Y-970D01* X-47631Y-926D01* X-47653Y-867D01* X-47672Y-804D01* X-47686Y-730D01* X-47690Y-652D01* Y-626D01* X-47686Y-608D01* Y-582D01* X-47679Y-556D01* X-47668Y-497D01* X-47646Y-430D01* X-47613Y-363D01* X-47590Y-330D01* X-47568Y-301D01* X-47539Y-275D01* X-47505Y-249D01* X-48382D01* X-48334Y184D01* X-45859D01* Y-204D01* D02* G37* G36* Y-2247D02* X-46965D01* X-46972D01* X-46991D01* X-47017D01* X-47054Y-2251D01* X-47128Y-2254D01* X-47165Y-2258D01* X-47198Y-2265D01* X-47202D01* X-47213Y-2269D01* X-47224Y-2273D01* X-47243Y-2276D01* X-47280Y-2295D01* X-47298Y-2310D01* X-47313Y-2324D01* Y-2328D01* X-47317Y-2332D01* X-47324Y-2343D01* X-47331Y-2358D01* X-47335Y-2376D01* X-47342Y-2402D01* X-47346Y-2428D01* Y-2480D01* X-47342Y-2502D01* X-47339Y-2528D01* X-47331Y-2558D01* X-47317Y-2595D01* X-47302Y-2632D01* X-47280Y-2669D01* X-47276Y-2672D01* X-47268Y-2683D01* X-47254Y-2702D01* X-47235Y-2724D01* X-47209Y-2750D01* X-47183Y-2776D01* X-47117Y-2831D01* X-45859D01* Y-3264D01* X-47646D01* Y-2883D01* X-47424Y-2865D01* X-47427Y-2861D01* X-47442Y-2854D01* X-47464Y-2835D01* X-47494Y-2813D01* X-47524Y-2783D01* X-47553Y-2746D01* X-47587Y-2702D01* X-47616Y-2650D01* X-47620Y-2643D01* X-47627Y-2624D01* X-47638Y-2595D01* X-47653Y-2554D01* X-47668Y-2506D01* X-47679Y-2450D01* X-47686Y-2391D01* X-47690Y-2328D01* Y-2302D01* X-47686Y-2287D01* Y-2265D01* X-47683Y-2243D01* X-47672Y-2188D01* X-47657Y-2125D01* X-47631Y-2062D01* X-47594Y-1999D01* X-47546Y-1947D01* X-47539Y-1940D01* X-47520Y-1925D01* X-47487Y-1906D01* X-47442Y-1881D01* X-47387Y-1855D01* X-47317Y-1836D01* X-47235Y-1821D01* X-47146Y-1814D01* X-45859D01* Y-2247D01* D02* G37* G36* X-46033Y-3697D02* X-46029Y-3701D01* X-46022Y-3712D01* X-46014Y-3727D01* X-45996Y-3764D01* X-45973Y-3812D01* X-45948Y-3871D01* X-45918Y-3934D01* X-45892Y-4001D01* X-45870Y-4071D01* Y-4075D01* X-45866Y-4078D01* Y-4089D01* X-45862Y-4104D01* X-45855Y-4141D01* X-45844Y-4193D01* X-45833Y-4252D01* X-45825Y-4323D01* X-45822Y-4400D01* X-45818Y-4485D01* Y-4504D01* X-45822Y-4530D01* Y-4559D01* X-45829Y-4596D01* X-45833Y-4641D01* X-45844Y-4689D01* X-45855Y-4741D01* X-45873Y-4796D01* X-45892Y-4855D01* X-45918Y-4914D01* X-45948Y-4974D01* X-45985Y-5029D01* X-46025Y-5085D01* X-46070Y-5140D01* X-46125Y-5188D01* X-46129Y-5192D01* X-46140Y-5199D01* X-46158Y-5210D01* X-46181Y-5225D01* X-46214Y-5248D01* X-46255Y-5266D01* X-46299Y-5288D01* X-46351Y-5310D01* X-46414Y-5336D01* X-46480Y-5359D01* X-46551Y-5377D01* X-46632Y-5395D01* X-46721Y-5414D01* X-46813Y-5425D01* X-46913Y-5432D01* X-47021Y-5436D01* X-47024D01* X-47039D01* X-47058D01* X-47083Y-5432D01* X-47117D01* X-47154Y-5429D01* X-47198Y-5425D01* X-47246Y-5418D01* X-47346Y-5403D01* X-47457Y-5381D01* X-47568Y-5347D01* X-47672Y-5303D01* X-47675D01* X-47683Y-5296D01* X-47698Y-5288D01* X-47716Y-5277D01* X-47738Y-5262D01* X-47764Y-5248D01* X-47823Y-5207D01* X-47890Y-5151D01* X-47957Y-5088D01* X-48023Y-5014D01* X-48079Y-4933D01* Y-4929D01* X-48086Y-4922D01* X-48094Y-4911D01* X-48101Y-4892D01* X-48112Y-4870D01* X-48123Y-4844D01* X-48134Y-4815D01* X-48149Y-4781D01* X-48175Y-4704D01* X-48197Y-4619D01* X-48212Y-4522D01* X-48219Y-4419D01* Y-4382D01* X-48216Y-4337D01* X-48212Y-4285D01* X-48204Y-4226D01* X-48190Y-4160D01* X-48175Y-4097D01* X-48153Y-4034D01* Y-4030D01* X-48149Y-4027D01* X-48142Y-4004D01* X-48123Y-3975D01* X-48101Y-3934D01* X-48068Y-3886D01* X-48031Y-3830D01* X-47982Y-3775D01* X-47927Y-3716D01* X-47675Y-3960D01* X-47679Y-3964D01* X-47690Y-3982D01* X-47709Y-4004D01* X-47731Y-4034D01* X-47753Y-4067D01* X-47775Y-4108D01* X-47798Y-4145D01* X-47816Y-4186D01* X-47820Y-4189D01* X-47823Y-4204D01* X-47831Y-4223D01* X-47838Y-4252D01* X-47846Y-4282D01* X-47853Y-4323D01* X-47860Y-4363D01* Y-4430D01* X-47857Y-4448D01* X-47853Y-4470D01* X-47849Y-4493D01* X-47835Y-4552D01* X-47812Y-4615D01* X-47775Y-4685D01* X-47753Y-4718D01* X-47727Y-4752D01* X-47698Y-4785D01* X-47661Y-4815D01* X-47657D01* X-47649Y-4822D01* X-47638Y-4829D01* X-47624Y-4840D01* X-47601Y-4852D01* X-47576Y-4866D01* X-47542Y-4877D01* X-47505Y-4892D01* X-47464Y-4907D01* X-47416Y-4922D01* X-47365Y-4937D01* X-47305Y-4948D01* X-47243Y-4959D01* X-47176Y-4966D01* X-47102Y-4970D01* X-47021Y-4974D01* X-47017D01* X-47002D01* X-46976D01* X-46946Y-4970D01* X-46909D01* X-46865Y-4966D01* X-46817Y-4963D01* X-46765Y-4959D01* X-46658Y-4944D01* X-46551Y-4922D01* X-46499Y-4907D01* X-46451Y-4889D01* X-46406Y-4870D01* X-46366Y-4848D01* X-46362D01* X-46358Y-4840D01* X-46336Y-4826D01* X-46303Y-4796D01* X-46269Y-4752D01* X-46232Y-4700D01* X-46199Y-4633D01* X-46177Y-4556D01* X-46173Y-4511D01* X-46169Y-4467D01* Y-4434D01* X-46173Y-4397D01* X-46181Y-4348D01* X-46188Y-4297D01* X-46203Y-4241D01* X-46225Y-4186D01* X-46251Y-4130D01* X-46824D01* Y-4507D01* X-47176Y-4552D01* Y-3694D01* X-46033D01* Y-3697D01* D02* G37* G36* X-46558Y-7793D02* X-46532D01* X-46477Y-7804D01* X-46410Y-7815D01* X-46340Y-7834D01* X-46266Y-7860D01* X-46195Y-7897D01* X-46192D01* X-46188Y-7900D01* X-46166Y-7915D01* X-46132Y-7941D01* X-46092Y-7971D01* X-46047Y-8015D01* X-45999Y-8067D01* X-45955Y-8126D01* X-45914Y-8193D01* Y-8196D01* X-45911Y-8200D01* X-45907Y-8211D01* X-45899Y-8226D01* X-45885Y-8267D01* X-45866Y-8319D01* X-45848Y-8381D01* X-45833Y-8459D01* X-45822Y-8540D01* X-45818Y-8633D01* Y-8652D01* X-45822Y-8674D01* Y-8703D01* X-45829Y-8740D01* X-45836Y-8785D01* X-45844Y-8833D01* X-45859Y-8885D01* X-45877Y-8940D01* X-45896Y-8999D01* X-45922Y-9059D01* X-45955Y-9118D01* X-45992Y-9181D01* X-46033Y-9240D01* X-46084Y-9299D01* X-46140Y-9354D01* X-46380Y-9103D01* X-46377Y-9099D01* X-46373Y-9092D01* X-46362Y-9081D01* X-46347Y-9066D01* X-46332Y-9047D01* X-46314Y-9025D01* X-46273Y-8970D01* X-46232Y-8899D01* X-46199Y-8822D01* X-46184Y-8781D01* X-46177Y-8737D01* X-46169Y-8692D01* X-46166Y-8648D01* Y-8640D01* X-46169Y-8614D01* X-46173Y-8581D01* X-46181Y-8537D01* X-46195Y-8489D01* X-46214Y-8441D01* X-46244Y-8393D01* X-46281Y-8348D01* X-46288Y-8344D01* X-46303Y-8330D01* X-46329Y-8311D01* X-46366Y-8293D01* X-46414Y-8270D01* X-46473Y-8256D01* X-46540Y-8241D01* X-46617Y-8237D01* X-46621D01* X-46628D01* X-46639D01* X-46654D01* X-46691Y-8241D01* X-46739Y-8248D01* X-46791Y-8259D01* X-46843Y-8278D01* X-46891Y-8300D01* X-46932Y-8330D01* X-46935Y-8333D01* X-46946Y-8344D01* X-46965Y-8367D01* X-46984Y-8393D01* X-46998Y-8429D01* X-47017Y-8470D01* X-47028Y-8518D01* X-47032Y-8574D01* Y-8600D01* X-47028Y-8618D01* X-47024Y-8663D01* X-47013Y-8718D01* Y-8722D01* X-47009Y-8729D01* X-47006Y-8744D01* X-46998Y-8766D01* X-46991Y-8788D01* X-46980Y-8818D01* X-46954Y-8885D01* Y-9195D01* X-48175D01* Y-7867D01* X-47838Y-7919D01* Y-8781D01* X-47276D01* X-47280Y-8774D01* X-47291Y-8759D01* X-47302Y-8729D01* X-47320Y-8688D01* X-47335Y-8640D01* X-47346Y-8585D01* X-47357Y-8518D01* X-47361Y-8444D01* Y-8411D01* X-47357Y-8378D01* X-47350Y-8330D01* X-47339Y-8278D01* X-47320Y-8222D01* X-47298Y-8163D01* X-47268Y-8108D01* X-47265Y-8100D01* X-47254Y-8082D01* X-47231Y-8056D01* X-47202Y-8022D01* X-47165Y-7986D01* X-47120Y-7945D01* X-47069Y-7908D01* X-47009Y-7875D01* X-47002Y-7871D01* X-46980Y-7860D01* X-46946Y-7849D01* X-46898Y-7830D01* X-46839Y-7815D01* X-46773Y-7804D01* X-46699Y-7793D01* X-46617Y-7789D01* X-46613D01* X-46606D01* X-46595D01* X-46576D01* X-46558Y-7793D01* D02* G37* G36* X-45859Y-10309D02* Y-10786D01* X-48175Y-11512D01* Y-11049D01* X-46284Y-10542D01* X-48175Y-10028D01* Y-9584D01* X-45859Y-10309D01* D02* G37* G36* Y-11885D02* Y-13347D01* X-46181D01* X-46184Y-13343D01* X-46199Y-13328D01* X-46221Y-13306D01* X-46251Y-13276D01* X-46284Y-13239D01* X-46325Y-13199D01* X-46369Y-13154D01* X-46417Y-13103D01* X-46521Y-12999D01* X-46628Y-12895D01* X-46732Y-12792D01* X-46780Y-12747D01* X-46824Y-12707D01* X-46828Y-12703D01* X-46836Y-12699D01* X-46847Y-12688D01* X-46861Y-12673D01* X-46906Y-12636D01* X-46958Y-12592D01* X-47021Y-12544D01* X-47083Y-12496D01* X-47150Y-12455D01* X-47209Y-12418D01* X-47213D01* X-47217Y-12414D01* X-47235Y-12403D01* X-47268Y-12392D01* X-47309Y-12374D01* X-47357Y-12359D01* X-47413Y-12348D01* X-47472Y-12337D01* X-47531Y-12333D01* X-47539D01* X-47557D01* X-47587Y-12337D01* X-47620Y-12344D01* X-47661Y-12355D01* X-47701Y-12370D01* X-47738Y-12392D01* X-47775Y-12422D01* X-47779Y-12426D01* X-47790Y-12437D01* X-47805Y-12459D01* X-47820Y-12485D01* X-47835Y-12522D01* X-47849Y-12562D01* X-47860Y-12610D01* X-47864Y-12666D01* Y-12688D01* X-47860Y-12714D01* X-47857Y-12747D01* X-47853Y-12784D01* X-47842Y-12825D01* X-47831Y-12866D01* X-47812Y-12903D01* X-47809Y-12907D01* X-47801Y-12921D01* X-47790Y-12940D01* X-47772Y-12966D01* X-47746Y-12999D01* X-47712Y-13036D01* X-47675Y-13077D01* X-47627Y-13121D01* X-47838Y-13395D01* X-47842D01* X-47846Y-13387D01* X-47857Y-13380D01* X-47872Y-13369D01* X-47905Y-13339D01* X-47949Y-13299D01* X-47997Y-13251D01* X-48045Y-13195D01* X-48090Y-13136D01* X-48127Y-13069D01* Y-13066D01* X-48131Y-13062D01* X-48134Y-13051D01* X-48142Y-13036D01* X-48156Y-12999D01* X-48175Y-12947D01* X-48190Y-12884D01* X-48204Y-12810D01* X-48216Y-12729D01* X-48219Y-12640D01* Y-12603D01* X-48216Y-12559D01* X-48208Y-12503D01* X-48197Y-12440D01* X-48182Y-12374D01* X-48160Y-12307D01* X-48131Y-12241D01* Y-12237D01* X-48127Y-12233D01* X-48116Y-12211D01* X-48094Y-12181D01* X-48068Y-12144D01* X-48034Y-12104D01* X-47990Y-12059D01* X-47945Y-12019D01* X-47890Y-11981D01* X-47883Y-11978D01* X-47864Y-11967D01* X-47831Y-11952D01* X-47790Y-11937D01* X-47742Y-11922D01* X-47683Y-11908D01* X-47620Y-11896D01* X-47553Y-11893D01* X-47550D01* X-47546D01* X-47535D01* X-47516D01* X-47479Y-11896D01* X-47427Y-11904D01* X-47365Y-11915D01* X-47298Y-11933D01* X-47228Y-11956D01* X-47154Y-11989D01* X-47150D01* X-47146Y-11993D01* X-47135Y-12000D01* X-47120Y-12007D01* X-47080Y-12030D01* X-47028Y-12059D01* X-46965Y-12104D01* X-46895Y-12155D01* X-46813Y-12215D01* X-46728Y-12289D01* X-46725Y-12292D01* X-46717Y-12300D01* X-46706Y-12311D01* X-46687Y-12326D01* X-46665Y-12348D01* X-46639Y-12374D01* X-46610Y-12403D01* X-46576Y-12437D01* X-46543Y-12477D01* X-46503Y-12518D01* X-46458Y-12566D01* X-46414Y-12618D01* X-46366Y-12673D01* X-46317Y-12733D01* X-46266Y-12796D01* X-46214Y-12862D01* Y-11841D01* X-45859Y-11885D01* D02* G37* G36* X-46107Y-15622D02* X-46099Y-15633D01* X-46084Y-15648D01* X-46066Y-15670D01* X-46044Y-15700D01* X-46018Y-15733D01* X-45992Y-15774D01* X-45966Y-15822D01* X-45936Y-15870D01* X-45911Y-15929D01* X-45885Y-15989D01* X-45862Y-16055D01* X-45844Y-16126D01* X-45829Y-16199D01* X-45822Y-16277D01* X-45818Y-16359D01* Y-16388D01* X-45822Y-16410D01* Y-16436D01* X-45825Y-16466D01* X-45829Y-16499D01* X-45836Y-16536D01* X-45851Y-16621D01* X-45877Y-16710D01* X-45911Y-16803D01* X-45955Y-16895D01* Y-16899D01* X-45962Y-16906D01* X-45970Y-16917D01* X-45981Y-16936D01* X-46014Y-16976D01* X-46058Y-17028D01* X-46118Y-17091D01* X-46188Y-17150D01* X-46269Y-17210D01* X-46366Y-17265D01* X-46369D01* X-46377Y-17273D01* X-46395Y-17276D01* X-46414Y-17287D01* X-46440Y-17295D01* X-46473Y-17306D01* X-46510Y-17321D01* X-46551Y-17332D01* X-46595Y-17343D01* X-46647Y-17358D01* X-46699Y-17369D01* X-46758Y-17376D01* X-46884Y-17391D01* X-47021Y-17398D01* X-47024D01* X-47039D01* X-47058D01* X-47083Y-17395D01* X-47117D01* X-47154Y-17391D01* X-47194Y-17387D01* X-47243Y-17380D01* X-47342Y-17365D01* X-47450Y-17339D01* X-47561Y-17306D01* X-47664Y-17261D01* X-47668D01* X-47675Y-17254D01* X-47690Y-17247D01* X-47709Y-17235D01* X-47731Y-17221D01* X-47757Y-17206D01* X-47816Y-17162D01* X-47883Y-17110D01* X-47953Y-17047D01* X-48016Y-16973D01* X-48075Y-16888D01* Y-16884D01* X-48082Y-16877D01* X-48090Y-16865D01* X-48097Y-16847D01* X-48108Y-16825D01* X-48119Y-16799D01* X-48134Y-16766D01* X-48149Y-16732D01* X-48175Y-16655D01* X-48197Y-16566D01* X-48212Y-16466D01* X-48219Y-16362D01* Y-16325D01* X-48216Y-16281D01* X-48212Y-16229D01* X-48204Y-16170D01* X-48193Y-16103D01* X-48179Y-16037D01* X-48160Y-15974D01* Y-15970D01* X-48156Y-15966D01* X-48149Y-15944D01* X-48134Y-15915D01* X-48116Y-15874D01* X-48090Y-15822D01* X-48053Y-15770D01* X-48012Y-15711D01* X-47964Y-15652D01* X-47694Y-15878D01* X-47698Y-15881D01* X-47701Y-15889D01* X-47709Y-15900D01* X-47720Y-15915D01* X-47731Y-15937D01* X-47746Y-15959D01* X-47779Y-16018D01* X-47809Y-16089D01* X-47835Y-16170D01* X-47853Y-16255D01* X-47860Y-16303D01* Y-16373D01* X-47857Y-16392D01* X-47853Y-16414D01* X-47849Y-16436D01* X-47835Y-16499D01* X-47812Y-16566D01* X-47775Y-16636D01* X-47753Y-16673D01* X-47727Y-16706D01* X-47698Y-16740D01* X-47661Y-16773D01* X-47657D01* X-47649Y-16780D01* X-47638Y-16788D01* X-47624Y-16799D01* X-47601Y-16810D01* X-47576Y-16825D01* X-47542Y-16840D01* X-47505Y-16854D01* X-47464Y-16869D01* X-47416Y-16884D01* X-47365Y-16899D01* X-47305Y-16910D01* X-47243Y-16921D01* X-47176Y-16928D01* X-47102Y-16932D01* X-47021Y-16936D01* X-47017D01* X-47002D01* X-46980D01* X-46950Y-16932D01* X-46913D01* X-46872Y-16928D01* X-46828Y-16921D01* X-46776Y-16914D01* X-46673Y-16895D01* X-46569Y-16865D01* X-46469Y-16825D01* X-46425Y-16803D01* X-46384Y-16773D01* X-46380Y-16769D01* X-46377Y-16766D01* X-46354Y-16743D01* X-46321Y-16706D01* X-46284Y-16658D01* X-46247Y-16595D01* X-46214Y-16521D01* X-46192Y-16440D01* X-46188Y-16392D01* X-46184Y-16344D01* Y-16318D01* X-46188Y-16288D01* X-46192Y-16251D01* X-46195Y-16211D01* X-46207Y-16166D01* X-46218Y-16122D01* X-46232Y-16077D01* X-46236Y-16074D01* X-46240Y-16059D01* X-46255Y-16037D01* X-46269Y-16003D01* X-46292Y-15966D01* X-46314Y-15926D01* X-46347Y-15878D01* X-46380Y-15830D01* X-46110Y-15619D01* X-46107Y-15622D01* D02* G37* G36* X-46969Y-17672D02* X-46924D01* X-46872Y-17680D01* X-46810Y-17683D01* X-46743Y-17694D01* X-46669Y-17705D01* X-46595Y-17724D01* X-46517Y-17742D01* X-46443Y-17768D01* X-46366Y-17798D01* X-46295Y-17835D01* X-46229Y-17876D01* X-46166Y-17924D01* X-46114Y-17979D01* X-46110Y-17983D01* X-46103Y-17994D01* X-46092Y-18009D01* X-46073Y-18035D01* X-46055Y-18064D01* X-46033Y-18101D01* X-46010Y-18142D01* X-45988Y-18190D01* X-45962Y-18246D01* X-45940Y-18301D01* X-45918Y-18368D01* X-45899Y-18434D01* X-45881Y-18508D01* X-45870Y-18586D01* X-45862Y-18667D01* X-45859Y-18753D01* Y-19337D01* X-48175D01* Y-18738D01* X-48171Y-18704D01* X-48167Y-18660D01* X-48160Y-18612D01* X-48153Y-18556D01* X-48145Y-18497D01* X-48116Y-18368D01* X-48094Y-18301D01* X-48071Y-18235D01* X-48042Y-18168D01* X-48008Y-18101D01* X-47971Y-18038D01* X-47927Y-17979D01* X-47923Y-17976D01* X-47916Y-17964D01* X-47901Y-17950D01* X-47879Y-17931D01* X-47849Y-17905D01* X-47816Y-17879D01* X-47772Y-17853D01* X-47723Y-17824D01* X-47668Y-17794D01* X-47601Y-17768D01* X-47527Y-17739D01* X-47446Y-17717D01* X-47357Y-17698D01* X-47257Y-17683D01* X-47150Y-17672D01* X-47032Y-17668D01* X-47024D01* X-47002D01* X-46969Y-17672D01* D02* G37* G36* X-45859Y-20029D02* X-46399Y-20188D01* Y-20939D01* X-45859Y-21098D01* Y-21542D01* X-48175Y-20817D01* Y-20295D01* X-45859Y-19570D01* Y-20029D01* D02* G37* G36* X16236Y57410D02* X16262Y57402D01* X16291Y57395D01* X16325Y57380D01* X16358Y57361D01* X16387Y57336D01* X16391Y57332D01* X16398Y57321D01* X16413Y57306D01* X16428Y57284D01* X16439Y57258D01* X16454Y57228D01* X16461Y57191D01* X16465Y57154D01* Y57151D01* Y57136D01* X16461Y57113D01* X16454Y57088D01* X16447Y57058D01* X16432Y57028D01* X16413Y56995D01* X16387Y56966D01* X16384Y56962D01* X16373Y56954D01* X16358Y56943D01* X16336Y56928D01* X16306Y56914D01* X16273Y56903D01* X16232Y56895D01* X16191Y56892D01* X16173D01* X16151Y56895D01* X16121Y56903D01* X16091Y56910D01* X16058Y56921D01* X16025Y56940D01* X15995Y56966D01* X15992Y56969D01* X15984Y56980D01* X15973Y56995D01* X15958Y57017D01* X15943Y57043D01* X15932Y57077D01* X15925Y57113D01* X15921Y57154D01* Y57158D01* Y57173D01* X15925Y57195D01* X15932Y57221D01* X15940Y57247D01* X15951Y57280D01* X15969Y57310D01* X15995Y57339D01* X15999Y57343D01* X16010Y57350D01* X16025Y57361D01* X16051Y57376D01* X16077Y57391D01* X16110Y57402D01* X16151Y57410D01* X16191Y57413D01* X16214D01* X16236Y57410D01* D02* G37* G36* X2453Y57139D02* X2505Y57136D01* X2564Y57128D01* X2631Y57117D01* X2697Y57102D01* X2760Y57084D01* X2764D01* X2768Y57080D01* X2790Y57073D01* X2819Y57058D01* X2860Y57039D01* X2912Y57014D01* X2964Y56977D01* X3023Y56936D01* X3082Y56888D01* X2857Y56618D01* X2853Y56621D01* X2845Y56625D01* X2834Y56633D01* X2819Y56644D01* X2797Y56655D01* X2775Y56669D01* X2716Y56703D01* X2646Y56732D01* X2564Y56758D01* X2479Y56777D01* X2431Y56784D01* X2361D01* X2342Y56780D01* X2320Y56777D01* X2298Y56773D01* X2235Y56758D01* X2168Y56736D01* X2098Y56699D01* X2061Y56677D01* X2028Y56651D01* X1994Y56621D01* X1961Y56584D01* Y56581D01* X1954Y56573D01* X1946Y56562D01* X1935Y56547D01* X1924Y56525D01* X1909Y56499D01* X1894Y56466D01* X1880Y56429D01* X1865Y56388D01* X1850Y56340D01* X1835Y56288D01* X1824Y56229D01* X1813Y56166D01* X1806Y56100D01* X1802Y56026D01* X1798Y55944D01* Y55941D01* Y55926D01* Y55904D01* X1802Y55874D01* Y55837D01* X1806Y55796D01* X1813Y55752D01* X1821Y55700D01* X1839Y55597D01* X1869Y55493D01* X1909Y55393D01* X1932Y55349D01* X1961Y55308D01* X1965Y55304D01* X1969Y55300D01* X1991Y55278D01* X2028Y55245D01* X2076Y55208D01* X2139Y55171D01* X2213Y55138D01* X2294Y55115D01* X2342Y55112D01* X2390Y55108D01* X2416D01* X2446Y55112D01* X2483Y55115D01* X2523Y55119D01* X2568Y55130D01* X2612Y55141D01* X2657Y55156D01* X2660Y55160D01* X2675Y55164D01* X2697Y55178D01* X2731Y55193D01* X2768Y55215D01* X2808Y55238D01* X2857Y55271D01* X2905Y55304D01* X3115Y55034D01* X3112Y55030D01* X3101Y55023D01* X3086Y55008D01* X3064Y54990D01* X3034Y54967D01* X3001Y54942D01* X2960Y54916D01* X2912Y54890D01* X2864Y54860D01* X2805Y54834D01* X2746Y54808D01* X2679Y54786D01* X2609Y54768D01* X2535Y54753D01* X2457Y54746D01* X2376Y54742D01* X2346D01* X2324Y54746D01* X2298D01* X2268Y54749D01* X2235Y54753D01* X2198Y54760D01* X2113Y54775D01* X2024Y54801D01* X1932Y54834D01* X1839Y54879D01* X1835D01* X1828Y54886D01* X1817Y54893D01* X1798Y54905D01* X1758Y54938D01* X1706Y54982D01* X1643Y55041D01* X1584Y55112D01* X1524Y55193D01* X1469Y55289D01* Y55293D01* X1462Y55300D01* X1458Y55319D01* X1447Y55338D01* X1439Y55363D01* X1428Y55397D01* X1414Y55434D01* X1402Y55474D01* X1391Y55519D01* X1376Y55571D01* X1365Y55622D01* X1358Y55682D01* X1343Y55807D01* X1336Y55944D01* Y55948D01* Y55963D01* Y55981D01* X1340Y56007D01* Y56041D01* X1343Y56077D01* X1347Y56118D01* X1354Y56166D01* X1369Y56266D01* X1395Y56374D01* X1428Y56485D01* X1473Y56588D01* Y56592D01* X1480Y56599D01* X1488Y56614D01* X1499Y56633D01* X1513Y56655D01* X1528Y56681D01* X1573Y56740D01* X1624Y56806D01* X1687Y56877D01* X1761Y56940D01* X1846Y56999D01* X1850D01* X1857Y57006D01* X1869Y57014D01* X1887Y57021D01* X1909Y57032D01* X1935Y57043D01* X1969Y57058D01* X2002Y57073D01* X2080Y57099D01* X2168Y57121D01* X2268Y57136D01* X2372Y57143D01* X2409D01* X2453Y57139D01* D02* G37* G36* X-9557D02* X-9505Y57136D01* X-9446Y57128D01* X-9379Y57117D01* X-9313Y57102D01* X-9250Y57084D01* X-9246D01* X-9243Y57080D01* X-9220Y57073D01* X-9191Y57058D01* X-9150Y57039D01* X-9098Y57014D01* X-9046Y56977D01* X-8987Y56936D01* X-8928Y56888D01* X-9154Y56618D01* X-9157Y56621D01* X-9165Y56625D01* X-9176Y56633D01* X-9191Y56644D01* X-9213Y56655D01* X-9235Y56669D01* X-9294Y56703D01* X-9365Y56732D01* X-9446Y56758D01* X-9531Y56777D01* X-9579Y56784D01* X-9650D01* X-9668Y56780D01* X-9690Y56777D01* X-9712Y56773D01* X-9775Y56758D01* X-9842Y56736D01* X-9912Y56699D01* X-9949Y56677D01* X-9983Y56651D01* X-10016Y56621D01* X-10049Y56584D01* Y56581D01* X-10057Y56573D01* X-10064Y56562D01* X-10075Y56547D01* X-10086Y56525D01* X-10101Y56499D01* X-10116Y56466D01* X-10131Y56429D01* X-10145Y56388D01* X-10160Y56340D01* X-10175Y56288D01* X-10186Y56229D01* X-10197Y56166D01* X-10204Y56100D01* X-10208Y56026D01* X-10212Y55944D01* Y55941D01* Y55926D01* Y55904D01* X-10208Y55874D01* Y55837D01* X-10204Y55796D01* X-10197Y55752D01* X-10190Y55700D01* X-10171Y55597D01* X-10142Y55493D01* X-10101Y55393D01* X-10079Y55349D01* X-10049Y55308D01* X-10045Y55304D01* X-10042Y55300D01* X-10019Y55278D01* X-9983Y55245D01* X-9934Y55208D01* X-9871Y55171D01* X-9798Y55138D01* X-9716Y55115D01* X-9668Y55112D01* X-9620Y55108D01* X-9594D01* X-9564Y55112D01* X-9527Y55115D01* X-9487Y55119D01* X-9442Y55130D01* X-9398Y55141D01* X-9353Y55156D01* X-9350Y55160D01* X-9335Y55164D01* X-9313Y55178D01* X-9279Y55193D01* X-9243Y55215D01* X-9202Y55238D01* X-9154Y55271D01* X-9106Y55304D01* X-8895Y55034D01* X-8898Y55030D01* X-8909Y55023D01* X-8924Y55008D01* X-8946Y54990D01* X-8976Y54967D01* X-9009Y54942D01* X-9050Y54916D01* X-9098Y54890D01* X-9146Y54860D01* X-9206Y54834D01* X-9265Y54808D01* X-9331Y54786D01* X-9402Y54768D01* X-9476Y54753D01* X-9553Y54746D01* X-9635Y54742D01* X-9664D01* X-9686Y54746D01* X-9712D01* X-9742Y54749D01* X-9775Y54753D01* X-9812Y54760D01* X-9897Y54775D01* X-9986Y54801D01* X-10079Y54834D01* X-10171Y54879D01* X-10175D01* X-10182Y54886D01* X-10193Y54893D01* X-10212Y54905D01* X-10253Y54938D01* X-10304Y54982D01* X-10367Y55041D01* X-10426Y55112D01* X-10486Y55193D01* X-10541Y55289D01* Y55293D01* X-10549Y55300D01* X-10552Y55319D01* X-10563Y55338D01* X-10571Y55363D01* X-10582Y55397D01* X-10597Y55434D01* X-10608Y55474D01* X-10619Y55519D01* X-10634Y55571D01* X-10645Y55622D01* X-10652Y55682D01* X-10667Y55807D01* X-10674Y55944D01* Y55948D01* Y55963D01* Y55981D01* X-10671Y56007D01* Y56041D01* X-10667Y56077D01* X-10663Y56118D01* X-10656Y56166D01* X-10641Y56266D01* X-10615Y56374D01* X-10582Y56485D01* X-10537Y56588D01* Y56592D01* X-10530Y56599D01* X-10523Y56614D01* X-10512Y56633D01* X-10497Y56655D01* X-10482Y56681D01* X-10438Y56740D01* X-10386Y56806D01* X-10323Y56877D01* X-10249Y56940D01* X-10164Y56999D01* X-10160D01* X-10153Y57006D01* X-10142Y57014D01* X-10123Y57021D01* X-10101Y57032D01* X-10075Y57043D01* X-10042Y57058D01* X-10008Y57073D01* X-9931Y57099D01* X-9842Y57121D01* X-9742Y57136D01* X-9638Y57143D01* X-9601D01* X-9557Y57139D01* D02* G37* G36* X-17630D02* X-17579Y57136D01* X-17519Y57128D01* X-17453Y57113D01* X-17390Y57099D01* X-17327Y57077D01* X-17323D01* X-17320Y57073D01* X-17297Y57065D01* X-17268Y57047D01* X-17227Y57025D01* X-17179Y56991D01* X-17123Y56954D01* X-17068Y56906D01* X-17009Y56851D01* X-17253Y56599D01* X-17257Y56603D01* X-17275Y56614D01* X-17297Y56633D01* X-17327Y56655D01* X-17360Y56677D01* X-17401Y56699D01* X-17438Y56721D01* X-17479Y56740D01* X-17482Y56744D01* X-17497Y56747D01* X-17516Y56755D01* X-17545Y56762D01* X-17575Y56769D01* X-17616Y56777D01* X-17656Y56784D01* X-17723D01* X-17741Y56780D01* X-17764Y56777D01* X-17786Y56773D01* X-17845Y56758D01* X-17908Y56736D01* X-17978Y56699D01* X-18011Y56677D01* X-18045Y56651D01* X-18078Y56621D01* X-18108Y56584D01* Y56581D01* X-18115Y56573D01* X-18123Y56562D01* X-18134Y56547D01* X-18145Y56525D01* X-18159Y56499D01* X-18171Y56466D01* X-18185Y56429D01* X-18200Y56388D01* X-18215Y56340D01* X-18230Y56288D01* X-18241Y56229D01* X-18252Y56166D01* X-18259Y56100D01* X-18263Y56026D01* X-18267Y55944D01* Y55941D01* Y55926D01* Y55900D01* X-18263Y55870D01* Y55833D01* X-18259Y55789D01* X-18256Y55741D01* X-18252Y55689D01* X-18237Y55582D01* X-18215Y55474D01* X-18200Y55423D01* X-18182Y55374D01* X-18163Y55330D01* X-18141Y55289D01* Y55286D01* X-18134Y55282D01* X-18119Y55260D01* X-18089Y55226D01* X-18045Y55193D01* X-17993Y55156D01* X-17926Y55123D01* X-17849Y55101D01* X-17804Y55097D01* X-17760Y55093D01* X-17727D01* X-17690Y55097D01* X-17641Y55104D01* X-17590Y55112D01* X-17534Y55127D01* X-17479Y55149D01* X-17423Y55175D01* Y55748D01* X-17801D01* X-17845Y56100D01* X-16987D01* Y54956D01* X-16990D01* X-16994Y54953D01* X-17005Y54945D01* X-17020Y54938D01* X-17057Y54919D01* X-17105Y54897D01* X-17164Y54871D01* X-17227Y54842D01* X-17294Y54816D01* X-17364Y54794D01* X-17368D01* X-17371Y54790D01* X-17382D01* X-17397Y54786D01* X-17434Y54779D01* X-17486Y54768D01* X-17545Y54757D01* X-17616Y54749D01* X-17693Y54746D01* X-17778Y54742D01* X-17797D01* X-17823Y54746D01* X-17852D01* X-17889Y54753D01* X-17934Y54757D01* X-17982Y54768D01* X-18034Y54779D01* X-18089Y54797D01* X-18148Y54816D01* X-18208Y54842D01* X-18267Y54871D01* X-18322Y54908D01* X-18378Y54949D01* X-18433Y54993D01* X-18481Y55049D01* X-18485Y55053D01* X-18493Y55064D01* X-18504Y55082D01* X-18518Y55104D01* X-18541Y55138D01* X-18559Y55178D01* X-18581Y55223D01* X-18604Y55275D01* X-18629Y55338D01* X-18652Y55404D01* X-18670Y55474D01* X-18689Y55556D01* X-18707Y55645D01* X-18718Y55737D01* X-18726Y55837D01* X-18729Y55944D01* Y55948D01* Y55963D01* Y55981D01* X-18726Y56007D01* Y56041D01* X-18722Y56077D01* X-18718Y56122D01* X-18711Y56170D01* X-18696Y56270D01* X-18674Y56381D01* X-18641Y56492D01* X-18596Y56595D01* Y56599D01* X-18589Y56607D01* X-18581Y56621D01* X-18570Y56640D01* X-18555Y56662D01* X-18541Y56688D01* X-18500Y56747D01* X-18444Y56814D01* X-18382Y56880D01* X-18307Y56947D01* X-18226Y57003D01* X-18222D01* X-18215Y57010D01* X-18204Y57017D01* X-18185Y57025D01* X-18163Y57036D01* X-18137Y57047D01* X-18108Y57058D01* X-18074Y57073D01* X-17997Y57099D01* X-17912Y57121D01* X-17815Y57136D01* X-17712Y57143D01* X-17675D01* X-17630Y57139D01* D02* G37* G36* X-13109Y57258D02* Y54782D01* X-13498D01* X-13516Y54993D01* X-13520Y54990D01* X-13523Y54975D01* X-13534Y54953D01* X-13553Y54927D01* X-13575Y54897D01* X-13605Y54864D01* X-13645Y54834D01* X-13690Y54808D01* X-13697Y54805D01* X-13712Y54797D01* X-13738Y54786D01* X-13775Y54775D01* X-13816Y54764D01* X-13864Y54753D01* X-13919Y54746D01* X-13975Y54742D01* X-14008D01* X-14030Y54746D01* X-14060Y54749D01* X-14093Y54757D01* X-14167Y54775D01* X-14252Y54805D01* X-14293Y54823D01* X-14337Y54849D01* X-14378Y54879D01* X-14419Y54912D01* X-14456Y54949D01* X-14489Y54993D01* Y54997D01* X-14496Y55005D01* X-14504Y55019D01* X-14515Y55038D01* X-14530Y55064D01* X-14545Y55097D01* X-14559Y55130D01* X-14574Y55175D01* X-14589Y55219D01* X-14604Y55271D01* X-14619Y55326D01* X-14633Y55389D01* X-14645Y55456D01* X-14652Y55523D01* X-14656Y55600D01* X-14659Y55678D01* Y55682D01* Y55689D01* Y55704D01* Y55722D01* X-14656Y55748D01* Y55774D01* X-14648Y55841D01* X-14637Y55915D01* X-14622Y55996D01* X-14604Y56077D01* X-14574Y56159D01* Y56163D01* X-14570Y56170D01* X-14567Y56181D01* X-14559Y56192D01* X-14537Y56233D01* X-14511Y56281D01* X-14478Y56333D01* X-14434Y56388D01* X-14382Y56444D01* X-14326Y56492D01* X-14323D01* X-14319Y56496D01* X-14297Y56510D01* X-14263Y56529D01* X-14219Y56555D01* X-14160Y56577D01* X-14097Y56595D01* X-14023Y56610D01* X-13945Y56614D01* X-13919D01* X-13901Y56610D01* X-13875D01* X-13849Y56603D01* X-13790Y56592D01* X-13723Y56570D01* X-13657Y56536D01* X-13623Y56514D01* X-13594Y56492D01* X-13568Y56462D01* X-13542Y56429D01* Y57306D01* X-13109Y57258D01* D02* G37* G36* X18448Y56610D02* X18471D01* X18493Y56607D01* X18548Y56595D01* X18611Y56581D01* X18674Y56555D01* X18737Y56518D01* X18789Y56470D01* X18796Y56462D01* X18811Y56444D01* X18829Y56410D01* X18855Y56366D01* X18881Y56311D01* X18900Y56240D01* X18914Y56159D01* X18922Y56070D01* Y54782D01* X18489D01* Y55889D01* Y55896D01* Y55915D01* Y55941D01* X18485Y55978D01* X18482Y56052D01* X18478Y56089D01* X18471Y56122D01* Y56126D01* X18467Y56137D01* X18463Y56148D01* X18459Y56166D01* X18441Y56203D01* X18426Y56222D01* X18411Y56237D01* X18408D01* X18404Y56240D01* X18393Y56248D01* X18378Y56255D01* X18360Y56259D01* X18334Y56266D01* X18308Y56270D01* X18256D01* X18234Y56266D01* X18208Y56262D01* X18178Y56255D01* X18141Y56240D01* X18104Y56226D01* X18067Y56203D01* X18064Y56200D01* X18052Y56192D01* X18034Y56177D01* X18012Y56159D01* X17986Y56133D01* X17960Y56107D01* X17904Y56041D01* Y54782D01* X17471D01* Y56570D01* X17853D01* X17871Y56348D01* X17875Y56351D01* X17882Y56366D01* X17901Y56388D01* X17923Y56418D01* X17953Y56447D01* X17989Y56477D01* X18034Y56510D01* X18086Y56540D01* X18093Y56544D01* X18112Y56551D01* X18141Y56562D01* X18182Y56577D01* X18230Y56592D01* X18285Y56603D01* X18345Y56610D01* X18408Y56614D01* X18433D01* X18448Y56610D01* D02* G37* G36* X-15581Y56610D02* X-15558D01* X-15536Y56607D01* X-15481Y56595D01* X-15418Y56581D01* X-15355Y56555D01* X-15292Y56518D01* X-15240Y56470D01* X-15233Y56462D01* X-15218Y56444D01* X-15200Y56410D01* X-15174Y56366D01* X-15148Y56311D01* X-15129Y56240D01* X-15114Y56159D01* X-15107Y56070D01* Y54782D01* X-15540D01* Y55889D01* Y55896D01* Y55915D01* Y55941D01* X-15544Y55978D01* X-15547Y56052D01* X-15551Y56089D01* X-15558Y56122D01* Y56126D01* X-15562Y56137D01* X-15566Y56148D01* X-15570Y56166D01* X-15588Y56203D01* X-15603Y56222D01* X-15618Y56237D01* X-15621D01* X-15625Y56240D01* X-15636Y56248D01* X-15651Y56255D01* X-15669Y56259D01* X-15695Y56266D01* X-15721Y56270D01* X-15773D01* X-15795Y56266D01* X-15821Y56262D01* X-15851Y56255D01* X-15888Y56240D01* X-15925Y56226D01* X-15962Y56203D01* X-15965Y56200D01* X-15977Y56192D01* X-15995Y56177D01* X-16017Y56159D01* X-16043Y56133D01* X-16069Y56107D01* X-16125Y56041D01* Y54782D01* X-16557D01* Y56570D01* X-16176D01* X-16158Y56348D01* X-16154Y56351D01* X-16147Y56366D01* X-16128Y56388D01* X-16106Y56418D01* X-16076Y56447D01* X-16039Y56477D01* X-15995Y56510D01* X-15943Y56540D01* X-15936Y56544D01* X-15917Y56551D01* X-15888Y56562D01* X-15847Y56577D01* X-15799Y56592D01* X-15743Y56603D01* X-15684Y56610D01* X-15621Y56614D01* X-15595D01* X-15581Y56610D01* D02* G37* G36* X-1040Y54782D02* X-1487D01* Y55807D01* X-2157D01* Y54782D01* X-2605D01* Y57099D01* X-2157D01* Y56181D01* X-1487D01* Y57099D01* X-1040D01* Y54782D01* D02* G37* G36* X14430Y54782D02* X13953D01* X13228Y57099D01* X13690D01* X14197Y55208D01* X14711Y57099D01* X15155D01* X14430Y54782D01* D02* G37* G36* X6967Y54782D02* X6416D01* X5754Y56699D01* Y56692D01* X5757Y56677D01* Y56651D01* X5761Y56614D01* X5765Y56570D01* X5768Y56521D01* X5776Y56462D01* X5779Y56403D01* X5783Y56336D01* X5791Y56266D01* X5798Y56122D01* X5802Y55978D01* X5805Y55837D01* Y54782D01* X5402D01* Y57099D01* X5953D01* X6616Y55182D01* Y55186D01* Y55190D01* X6612Y55201D01* Y55215D01* X6608Y55256D01* X6605Y55308D01* X6597Y55367D01* X6590Y55434D01* X6586Y55504D01* X6579Y55578D01* Y55582D01* Y55585D01* Y55597D01* X6575Y55615D01* Y55633D01* Y55656D01* X6571Y55711D01* X6568Y55782D01* Y55859D01* X6564Y55948D01* Y56044D01* Y57099D01* X6967D01* Y54782D01* D02* G37* G36* X-5043D02* X-5594D01* X-6257Y56699D01* Y56692D01* X-6253Y56677D01* Y56651D01* X-6249Y56614D01* X-6245Y56570D01* X-6242Y56521D01* X-6234Y56462D01* X-6231Y56403D01* X-6227Y56336D01* X-6220Y56266D01* X-6212Y56122D01* X-6208Y55978D01* X-6205Y55837D01* Y54782D01* X-6608D01* Y57099D01* X-6057D01* X-5395Y55182D01* Y55186D01* Y55190D01* X-5398Y55201D01* Y55215D01* X-5402Y55256D01* X-5406Y55308D01* X-5413Y55367D01* X-5420Y55434D01* X-5424Y55504D01* X-5432Y55578D01* Y55582D01* Y55585D01* Y55597D01* X-5435Y55615D01* Y55633D01* Y55656D01* X-5439Y55711D01* X-5443Y55782D01* Y55859D01* X-5446Y55948D01* Y56044D01* Y57099D01* X-5043D01* Y54782D01* D02* G37* G36* X16476Y55112D02* X16950D01* Y54782D01* X15533D01* Y55112D01* X16047D01* Y56237D01* X15548D01* Y56570D01* X16476D01* Y55112D01* D02* G37* G36* X10009Y55160D02* X11022D01* X10974Y54782D01* X9565D01* Y57099D01* X10009D01* Y55160D01* D02* G37* G36* X5169Y54782D02* X4710D01* X4551Y55323D01* X3800D01* X3641Y54782D01* X3197D01* X3922Y57099D01* X4444D01* X5169Y54782D01* D02* G37* G36* X-6841D02* X-7300D01* X-7459Y55323D01* X-8210D01* X-8369Y54782D01* X-8813D01* X-8088Y57099D01* X-7566D01* X-6841Y54782D01* D02* G37* G36* X9036Y54187D02* X7337Y54187D01* Y54549D01* X9036Y54549D01* Y54187D01* D02* G37* G36* X-2975Y54187D02* X-4673D01* Y54549D01* X-2975D01* Y54187D01* D02* G37* G36* X-49400Y-45000D02* X-58000D01* Y-23500D01* X-49400D01* Y-45000D01* D02* G37* G36* X64737Y-15636D02* X58263D01* Y-1364D01* X64737D01* Y-15636D01* D02* G37* G36* X-16895Y29757D02* X-17280D01* Y30160D01* X-19796D01* Y29757D01* X-20177D01* Y30626D01* X-16895D01* Y29757D01* D02* G37* G36* X-17616Y27958D02* X-20177D01* Y28451D01* X-17616D01* Y27958D01* D02* G37* G36* X-18479Y27574D02* X-18442Y27570D01* X-18401Y27562D01* X-18353Y27555D01* X-18305Y27544D01* X-18249Y27529D01* X-18194Y27511D01* X-18135Y27488D01* X-18075Y27463D01* X-18016Y27429D01* X-17961Y27392D01* X-17905Y27352D01* X-17850Y27303D01* X-17846Y27300D01* X-17839Y27292D01* X-17824Y27278D01* X-17805Y27255D01* X-17787Y27229D01* X-17764Y27196D01* X-17739Y27159D01* X-17713Y27119D01* X-17687Y27070D01* X-17661Y27019D01* X-17639Y26963D01* X-17620Y26900D01* X-17602Y26837D01* X-17587Y26767D01* X-17580Y26697D01* X-17576Y26619D01* Y26593D01* X-17580Y26575D01* Y26552D01* X-17583Y26526D01* X-17591Y26464D01* X-17605Y26386D01* X-17624Y26305D01* X-17653Y26219D01* X-17691Y26131D01* Y26127D01* X-17694Y26120D01* X-17702Y26108D01* X-17713Y26094D01* X-17739Y26053D01* X-17776Y26001D01* X-17824Y25946D01* X-17883Y25886D01* X-17950Y25831D01* X-18027Y25779D01* X-18031D01* X-18038Y25775D01* X-18049Y25768D01* X-18068Y25761D01* X-18090Y25753D01* X-18116Y25742D01* X-18146Y25731D01* X-18179Y25720D01* X-18216Y25709D01* X-18257Y25698D01* X-18349Y25679D01* X-18456Y25664D01* X-18571Y25661D01* X-18575D01* X-18582D01* X-18597D01* X-18612Y25664D01* X-18634D01* X-18660Y25668D01* X-18723Y25675D01* X-18793Y25690D01* X-18871Y25712D01* X-18956Y25738D01* X-19041Y25779D01* X-19045D01* X-19052Y25787D01* X-19063Y25790D01* X-19078Y25801D01* X-19119Y25831D01* X-19171Y25868D01* X-19226Y25916D01* X-19285Y25975D01* X-19341Y26042D01* X-19392Y26120D01* Y26123D01* X-19396Y26131D01* X-19404Y26142D01* X-19411Y26160D01* X-19422Y26179D01* X-19430Y26205D01* X-19441Y26234D01* X-19455Y26264D01* X-19478Y26338D01* X-19496Y26423D01* X-19511Y26515D01* X-19515Y26615D01* Y26656D01* X-19511Y26686D01* X-19507Y26723D01* X-19500Y26763D01* X-19492Y26811D01* X-19481Y26860D01* X-19466Y26915D01* X-19448Y26970D01* X-19426Y27026D01* X-19400Y27085D01* X-19367Y27144D01* X-19330Y27200D01* X-19289Y27255D01* X-19241Y27307D01* X-19237Y27311D01* X-19230Y27318D01* X-19211Y27333D01* X-19193Y27348D01* X-19163Y27370D01* X-19133Y27392D01* X-19093Y27418D01* X-19052Y27444D01* X-19004Y27466D01* X-18952Y27492D01* X-18893Y27514D01* X-18834Y27537D01* X-18767Y27551D01* X-18701Y27566D01* X-18627Y27574D01* X-18549Y27577D01* X-18545D01* X-18530D01* X-18508D01* X-18479Y27574D01* D02* G37* G36* X-18993Y25405D02* X-18997Y25402D01* X-19004Y25383D01* X-19019Y25361D01* X-19034Y25331D01* X-19048Y25294D01* X-19063Y25257D01* X-19071Y25217D01* X-19074Y25176D01* Y25161D01* X-19071Y25139D01* X-19067Y25117D01* X-19060Y25091D01* X-19048Y25061D01* X-19034Y25032D01* X-19015Y25002D01* X-19011Y24998D01* X-19004Y24991D01* X-18989Y24976D01* X-18967Y24961D01* X-18941Y24943D01* X-18904Y24924D01* X-18860Y24906D01* X-18808Y24891D01* X-18801D01* X-18789Y24887D01* X-18778Y24884D01* X-18760D01* X-18738Y24880D01* X-18708Y24876D01* X-18675Y24873D01* X-18638Y24869D01* X-18590Y24865D01* X-18541Y24861D01* X-18482D01* X-18419Y24858D01* X-18349Y24854D01* X-18271D01* X-18186D01* X-17616D01* Y24362D01* X-19474D01* Y24817D01* X-19211D01* X-19215Y24821D01* X-19237Y24836D01* X-19270Y24858D01* X-19311Y24887D01* X-19352Y24917D01* X-19392Y24954D01* X-19430Y24987D01* X-19455Y25024D01* X-19459Y25028D01* X-19466Y25039D01* X-19474Y25061D01* X-19485Y25087D01* X-19496Y25117D01* X-19507Y25154D01* X-19511Y25191D01* X-19515Y25235D01* Y25265D01* X-19511Y25298D01* X-19503Y25339D01* X-19492Y25391D01* X-19474Y25446D01* X-19452Y25502D01* X-19418Y25561D01* X-18993Y25405D01* D02* G37* G36* X-17646Y24081D02* X-17642Y24077D01* X-17635Y24055D01* X-17624Y24018D01* X-17613Y23970D01* X-17598Y23914D01* X-17587Y23848D01* X-17580Y23774D01* X-17576Y23696D01* Y23674D01* X-17580Y23648D01* X-17583Y23615D01* X-17587Y23578D01* X-17594Y23537D01* X-17605Y23496D01* X-17620Y23456D01* X-17624Y23452D01* X-17628Y23437D01* X-17639Y23418D01* X-17650Y23396D01* X-17687Y23345D01* X-17709Y23319D01* X-17735Y23296D01* X-17739Y23293D01* X-17750Y23289D01* X-17764Y23282D01* X-17787Y23270D01* X-17813Y23259D01* X-17846Y23248D01* X-17883Y23237D01* X-17924Y23230D01* X-17927D01* X-17942Y23226D01* X-17964D01* X-18001Y23222D01* X-18049Y23219D01* X-18109D01* X-18142Y23215D01* X-18183D01* X-18223D01* X-18271D01* X-19082D01* Y22989D01* X-19474D01* Y23215D01* X-19844D01* X-20132Y23707D01* X-19474D01* Y24044D01* X-19082D01* Y23707D01* X-18331D01* X-18327D01* X-18319D01* X-18308D01* X-18294D01* X-18257D01* X-18212D01* X-18168Y23711D01* X-18123D01* X-18090D01* X-18075Y23715D01* X-18068D01* X-18060Y23718D01* X-18046Y23726D01* X-18027Y23737D01* X-18005Y23759D01* X-18001Y23766D01* X-17994Y23781D01* X-17987Y23807D01* X-17983Y23840D01* Y23855D01* X-17987Y23870D01* X-17990Y23892D01* X-17994Y23922D01* X-18001Y23955D01* X-18012Y23996D01* X-18027Y24040D01* X-17646Y24084D01* Y24081D01* D02* G37* G36* X-17616Y22201D02* X-18560D01* X-18564D01* X-18575D01* X-18590D01* X-18608D01* X-18634D01* X-18660D01* X-18723Y22197D01* X-18786Y22194D01* X-18852Y22186D01* X-18908Y22179D01* X-18930Y22175D01* X-18948Y22168D01* X-18952D01* X-18963Y22161D01* X-18978Y22153D01* X-19000Y22142D01* X-19045Y22109D01* X-19067Y22090D01* X-19085Y22064D01* X-19089Y22061D01* X-19093Y22053D01* X-19100Y22038D01* X-19111Y22016D01* X-19122Y21990D01* X-19130Y21964D01* X-19133Y21931D01* X-19137Y21894D01* Y21872D01* X-19133Y21850D01* X-19130Y21820D01* X-19119Y21783D01* X-19108Y21746D01* X-19089Y21705D01* X-19067Y21665D01* X-19063Y21661D01* X-19056Y21650D01* X-19037Y21631D01* X-19019Y21609D01* X-18989Y21587D01* X-18960Y21565D01* X-18919Y21543D01* X-18878Y21528D01* X-18875D01* X-18856Y21520D01* X-18826Y21517D01* X-18782Y21509D01* X-18756Y21506D01* X-18723Y21502D01* X-18689Y21498D01* X-18649D01* X-18608Y21495D01* X-18560Y21491D01* X-18508D01* X-18453D01* X-17616D01* Y20999D01* X-19474D01* Y21454D01* X-19200D01* X-19204Y21457D01* X-19215Y21465D01* X-19230Y21480D01* X-19248Y21498D01* X-19274Y21520D01* X-19300Y21550D01* X-19330Y21583D01* X-19359Y21620D01* X-19385Y21661D01* X-19415Y21709D01* X-19441Y21757D01* X-19466Y21813D01* X-19485Y21872D01* X-19500Y21931D01* X-19511Y21998D01* X-19515Y22064D01* Y22090D01* X-19511Y22124D01* X-19507Y22164D01* X-19500Y22209D01* X-19489Y22257D01* X-19474Y22309D01* X-19455Y22360D01* X-19452Y22368D01* X-19444Y22382D01* X-19433Y22408D01* X-19415Y22438D01* X-19392Y22471D01* X-19367Y22505D01* X-19337Y22538D01* X-19304Y22568D01* X-19300Y22571D01* X-19289Y22579D01* X-19270Y22590D01* X-19244Y22604D01* X-19215Y22623D01* X-19178Y22638D01* X-19141Y22653D01* X-19096Y22664D01* X-19093D01* X-19074Y22667D01* X-19048Y22675D01* X-19011Y22679D01* X-18967Y22686D01* X-18908Y22690D01* X-18845Y22693D01* X-18767D01* X-17616D01* Y22201D01* D02* G37* G36* X-18479Y20618D02* X-18442Y20614D01* X-18401Y20606D01* X-18353Y20599D01* X-18305Y20588D01* X-18249Y20573D01* X-18194Y20555D01* X-18135Y20533D01* X-18075Y20507D01* X-18016Y20473D01* X-17961Y20436D01* X-17905Y20396D01* X-17850Y20347D01* X-17846Y20344D01* X-17839Y20336D01* X-17824Y20322D01* X-17805Y20299D01* X-17787Y20274D01* X-17764Y20240D01* X-17739Y20203D01* X-17713Y20163D01* X-17687Y20114D01* X-17661Y20063D01* X-17639Y20007D01* X-17620Y19944D01* X-17602Y19881D01* X-17587Y19811D01* X-17580Y19741D01* X-17576Y19663D01* Y19637D01* X-17580Y19619D01* Y19596D01* X-17583Y19570D01* X-17591Y19508D01* X-17605Y19430D01* X-17624Y19349D01* X-17653Y19263D01* X-17691Y19175D01* Y19171D01* X-17694Y19163D01* X-17702Y19152D01* X-17713Y19138D01* X-17739Y19097D01* X-17776Y19045D01* X-17824Y18990D01* X-17883Y18930D01* X-17950Y18875D01* X-18027Y18823D01* X-18031D01* X-18038Y18819D01* X-18049Y18812D01* X-18068Y18805D01* X-18090Y18797D01* X-18116Y18786D01* X-18146Y18775D01* X-18179Y18764D01* X-18216Y18753D01* X-18257Y18742D01* X-18349Y18723D01* X-18456Y18708D01* X-18571Y18705D01* X-18575D01* X-18582D01* X-18597D01* X-18612Y18708D01* X-18634D01* X-18660Y18712D01* X-18723Y18720D01* X-18793Y18734D01* X-18871Y18756D01* X-18956Y18782D01* X-19041Y18823D01* X-19045D01* X-19052Y18831D01* X-19063Y18834D01* X-19078Y18845D01* X-19119Y18875D01* X-19171Y18912D01* X-19226Y18960D01* X-19285Y19019D01* X-19341Y19086D01* X-19392Y19163D01* Y19167D01* X-19396Y19175D01* X-19404Y19186D01* X-19411Y19204D01* X-19422Y19223D01* X-19430Y19249D01* X-19441Y19278D01* X-19455Y19308D01* X-19478Y19382D01* X-19496Y19467D01* X-19511Y19559D01* X-19515Y19659D01* Y19700D01* X-19511Y19730D01* X-19507Y19767D01* X-19500Y19807D01* X-19492Y19855D01* X-19481Y19904D01* X-19466Y19959D01* X-19448Y20015D01* X-19426Y20070D01* X-19400Y20129D01* X-19367Y20188D01* X-19330Y20244D01* X-19289Y20299D01* X-19241Y20351D01* X-19237Y20355D01* X-19230Y20362D01* X-19211Y20377D01* X-19193Y20392D01* X-19163Y20414D01* X-19133Y20436D01* X-19093Y20462D01* X-19052Y20488D01* X-19004Y20510D01* X-18952Y20536D01* X-18893Y20558D01* X-18834Y20581D01* X-18767Y20595D01* X-18701Y20610D01* X-18627Y20618D01* X-18549Y20621D01* X-18545D01* X-18530D01* X-18508D01* X-18479Y20618D01* D02* G37* G36* X-18382Y18372D02* X-18360Y18364D01* X-18331Y18353D01* X-18297Y18338D01* X-18257Y18324D01* X-18212Y18305D01* X-18164Y18283D01* X-18064Y18231D01* X-17961Y18165D01* X-17861Y18083D01* X-17816Y18039D01* X-17776Y17991D01* X-17772Y17987D01* X-17768Y17979D01* X-17757Y17965D01* X-17742Y17943D01* X-17728Y17917D01* X-17713Y17883D01* X-17694Y17846D01* X-17676Y17806D01* X-17653Y17758D01* X-17635Y17706D01* X-17620Y17650D01* X-17605Y17591D01* X-17591Y17528D01* X-17580Y17458D01* X-17576Y17388D01* X-17572Y17310D01* Y17288D01* X-17576Y17262D01* X-17580Y17225D01* X-17583Y17184D01* X-17591Y17132D01* X-17602Y17077D01* X-17616Y17014D01* X-17635Y16951D01* X-17657Y16884D01* X-17687Y16814D01* X-17720Y16744D01* X-17757Y16673D01* X-17805Y16603D01* X-17857Y16536D01* X-17920Y16474D01* X-17924Y16470D01* X-17935Y16459D01* X-17957Y16444D01* X-17983Y16422D01* X-18020Y16400D01* X-18060Y16370D01* X-18112Y16340D01* X-18171Y16311D01* X-18234Y16281D01* X-18305Y16252D01* X-18386Y16222D01* X-18471Y16200D01* X-18560Y16178D01* X-18660Y16163D01* X-18764Y16152D01* X-18875Y16148D01* X-18878D01* X-18882D01* X-18904D01* X-18937Y16152D01* X-18982D01* X-19034Y16159D01* X-19096Y16166D01* X-19163Y16174D01* X-19241Y16189D01* X-19319Y16207D01* X-19400Y16229D01* X-19481Y16255D01* X-19566Y16289D01* X-19648Y16326D01* X-19726Y16370D01* X-19800Y16418D01* X-19870Y16477D01* X-19873Y16481D01* X-19885Y16492D01* X-19903Y16511D01* X-19925Y16536D01* X-19951Y16570D01* X-19981Y16611D01* X-20014Y16655D01* X-20047Y16710D01* X-20081Y16770D01* X-20114Y16833D01* X-20144Y16906D01* X-20169Y16981D01* X-20192Y17066D01* X-20210Y17151D01* X-20221Y17247D01* X-20225Y17343D01* Y17388D01* X-20221Y17421D01* X-20218Y17461D01* X-20210Y17506D01* X-20203Y17558D01* X-20192Y17613D01* X-20177Y17672D01* X-20158Y17735D01* X-20136Y17798D01* X-20107Y17865D01* X-20077Y17928D01* X-20040Y17987D01* X-19996Y18050D01* X-19948Y18105D01* Y18109D01* X-19940Y18113D01* X-19929Y18124D01* X-19918Y18135D01* X-19899Y18150D01* X-19877Y18165D01* X-19825Y18205D01* X-19759Y18246D01* X-19677Y18290D01* X-19585Y18331D01* X-19478Y18368D01* X-19355Y17857D01* X-19359D01* X-19363Y17854D01* X-19374D01* X-19389Y17846D01* X-19422Y17835D01* X-19466Y17817D01* X-19518Y17791D01* X-19570Y17758D01* X-19622Y17713D01* X-19666Y17665D01* X-19670Y17658D01* X-19685Y17639D01* X-19703Y17609D01* X-19726Y17569D01* X-19748Y17517D01* X-19766Y17458D01* X-19781Y17391D01* X-19785Y17317D01* Y17291D01* X-19781Y17269D01* X-19777Y17247D01* X-19774Y17217D01* X-19759Y17154D01* X-19733Y17080D01* X-19696Y17003D01* X-19674Y16962D01* X-19648Y16925D01* X-19614Y16888D01* X-19578Y16855D01* X-19574D01* X-19566Y16847D01* X-19555Y16840D01* X-19537Y16829D01* X-19515Y16814D01* X-19489Y16799D01* X-19455Y16784D01* X-19418Y16770D01* X-19374Y16751D01* X-19326Y16736D01* X-19270Y16722D01* X-19211Y16707D01* X-19145Y16696D01* X-19074Y16688D01* X-18997Y16684D01* X-18912Y16681D01* X-18908D01* X-18889D01* X-18863D01* X-18834Y16684D01* X-18793D01* X-18745Y16692D01* X-18697Y16696D01* X-18641Y16703D01* X-18527Y16725D01* X-18412Y16755D01* X-18357Y16773D01* X-18305Y16799D01* X-18257Y16825D01* X-18216Y16855D01* X-18212Y16858D01* X-18209Y16862D01* X-18197Y16873D01* X-18183Y16888D01* X-18153Y16925D01* X-18116Y16977D01* X-18075Y17040D01* X-18046Y17117D01* X-18020Y17206D01* X-18016Y17254D01* X-18012Y17306D01* Y17325D01* X-18016Y17339D01* X-18020Y17380D01* X-18027Y17428D01* X-18046Y17480D01* X-18068Y17539D01* X-18098Y17598D01* X-18142Y17658D01* X-18149Y17665D01* X-18168Y17684D01* X-18197Y17709D01* X-18242Y17739D01* X-18301Y17776D01* X-18371Y17809D01* X-18456Y17843D01* X-18556Y17872D01* X-18401Y18375D01* X-18397D01* X-18382Y18372D01* D02* G37* G36* X-17616Y14302D02* X-17887D01* X-17879Y14298D01* X-17861Y14283D01* X-17831Y14257D01* X-17798Y14224D01* X-17761Y14187D01* X-17720Y14139D01* X-17683Y14087D01* X-17650Y14032D01* X-17646Y14024D01* X-17639Y14006D01* X-17628Y13972D01* X-17613Y13935D01* X-17598Y13887D01* X-17587Y13832D01* X-17580Y13776D01* X-17576Y13717D01* Y13688D01* X-17580Y13665D01* X-17583Y13636D01* X-17591Y13606D01* X-17598Y13569D01* X-17609Y13528D01* X-17620Y13488D01* X-17639Y13443D01* X-17657Y13399D01* X-17683Y13351D01* X-17713Y13306D01* X-17746Y13258D01* X-17787Y13214D01* X-17831Y13170D01* X-17835Y13166D01* X-17842Y13158D01* X-17857Y13147D01* X-17879Y13136D01* X-17905Y13118D01* X-17938Y13099D01* X-17975Y13077D01* X-18020Y13058D01* X-18068Y13036D01* X-18120Y13014D01* X-18179Y12996D01* X-18242Y12981D01* X-18312Y12966D01* X-18386Y12955D01* X-18464Y12947D01* X-18549Y12944D01* X-18553D01* X-18571D01* X-18593D01* X-18627Y12947D01* X-18667Y12951D01* X-18712Y12955D01* X-18764Y12962D01* X-18815Y12970D01* X-18934Y12996D01* X-18993Y13014D01* X-19052Y13036D01* X-19111Y13062D01* X-19167Y13092D01* X-19219Y13125D01* X-19267Y13162D01* X-19270Y13166D01* X-19278Y13173D01* X-19289Y13184D01* X-19307Y13203D01* X-19326Y13225D01* X-19344Y13251D01* X-19367Y13281D01* X-19392Y13318D01* X-19415Y13354D01* X-19437Y13399D01* X-19478Y13491D01* X-19492Y13547D01* X-19503Y13602D01* X-19511Y13662D01* X-19515Y13724D01* Y13754D01* X-19511Y13776D01* X-19507Y13802D01* X-19500Y13836D01* X-19492Y13869D01* X-19481Y13909D01* X-19470Y13950D01* X-19452Y13995D01* X-19430Y14039D01* X-19407Y14083D01* X-19374Y14131D01* X-19341Y14176D01* X-19300Y14220D01* X-19256Y14265D01* X-20177D01* Y14757D01* X-17616D01* Y14302D01* D02* G37* G36* X-18401Y11423D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y11427D01* X-18327Y11430D01* X-18275Y11438D01* X-18223Y11453D01* X-18164Y11475D01* X-18109Y11501D01* X-18060Y11538D01* X-18057Y11541D01* X-18042Y11560D01* X-18023Y11582D01* X-18001Y11615D01* X-17979Y11656D01* X-17961Y11708D01* X-17946Y11763D01* X-17942Y11823D01* Y11841D01* X-17946Y11863D01* X-17950Y11889D01* X-17957Y11919D01* X-17968Y11952D01* X-17983Y11986D01* X-18005Y12015D01* X-18009Y12019D01* X-18016Y12030D01* X-18031Y12045D01* X-18053Y12060D01* X-18083Y12082D01* X-18116Y12100D01* X-18160Y12119D01* X-18209Y12137D01* X-18127Y12626D01* X-18123D01* X-18116Y12622D01* X-18101Y12615D01* X-18083Y12607D01* X-18060Y12596D01* X-18035Y12585D01* X-17975Y12552D01* X-17909Y12511D01* X-17839Y12459D01* X-17776Y12396D01* X-17716Y12326D01* Y12322D01* X-17709Y12319D01* X-17705Y12304D01* X-17694Y12289D01* X-17683Y12270D01* X-17672Y12245D01* X-17661Y12219D01* X-17646Y12185D01* X-17620Y12111D01* X-17598Y12026D01* X-17583Y11926D01* X-17576Y11819D01* Y11797D01* X-17580Y11775D01* Y11741D01* X-17587Y11701D01* X-17594Y11653D01* X-17602Y11601D01* X-17616Y11549D01* X-17631Y11490D01* X-17653Y11430D01* X-17679Y11371D01* X-17709Y11312D01* X-17746Y11253D01* X-17787Y11197D01* X-17835Y11149D01* X-17890Y11101D01* X-17894Y11097D01* X-17901Y11094D01* X-17916Y11086D01* X-17935Y11072D01* X-17961Y11061D01* X-17990Y11046D01* X-18023Y11027D01* X-18064Y11012D01* X-18109Y10994D01* X-18157Y10979D01* X-18209Y10961D01* X-18268Y10949D01* X-18327Y10938D01* X-18390Y10927D01* X-18460Y10924D01* X-18530Y10920D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y10924D01* X-18645Y10927D01* X-18689Y10931D01* X-18738Y10938D01* X-18793Y10949D01* X-18908Y10979D01* X-18967Y10998D01* X-19030Y11020D01* X-19089Y11049D01* X-19145Y11083D01* X-19200Y11120D01* X-19252Y11160D01* X-19256Y11164D01* X-19263Y11171D01* X-19278Y11186D01* X-19293Y11205D01* X-19311Y11227D01* X-19333Y11257D01* X-19359Y11290D01* X-19385Y11327D01* X-19407Y11368D01* X-19433Y11416D01* X-19455Y11464D01* X-19474Y11519D01* X-19489Y11575D01* X-19503Y11638D01* X-19511Y11701D01* X-19515Y11767D01* Y11808D01* X-19511Y11838D01* X-19507Y11871D01* X-19500Y11912D01* X-19492Y11956D01* X-19481Y12004D01* X-19466Y12056D01* X-19448Y12108D01* X-19426Y12163D01* X-19396Y12219D01* X-19367Y12270D01* X-19330Y12322D01* X-19285Y12374D01* X-19237Y12418D01* X-19233Y12422D01* X-19226Y12430D01* X-19207Y12441D01* X-19185Y12455D01* X-19156Y12474D01* X-19122Y12492D01* X-19078Y12515D01* X-19030Y12537D01* X-18974Y12559D01* X-18912Y12581D01* X-18845Y12600D01* X-18767Y12618D01* X-18686Y12633D01* X-18597Y12644D01* X-18505Y12652D01* X-18401D01* Y11423D01* D02* G37* G36* X-17646Y10761D02* X-17642Y10757D01* X-17635Y10735D01* X-17624Y10698D01* X-17613Y10650D01* X-17598Y10594D01* X-17587Y10528D01* X-17580Y10454D01* X-17576Y10376D01* Y10354D01* X-17580Y10328D01* X-17583Y10295D01* X-17587Y10258D01* X-17594Y10217D01* X-17605Y10176D01* X-17620Y10136D01* X-17624Y10132D01* X-17628Y10117D01* X-17639Y10098D01* X-17650Y10076D01* X-17687Y10024D01* X-17709Y9999D01* X-17735Y9976D01* X-17739Y9973D01* X-17750Y9969D01* X-17764Y9962D01* X-17787Y9950D01* X-17813Y9939D01* X-17846Y9928D01* X-17883Y9917D01* X-17924Y9910D01* X-17927D01* X-17942Y9906D01* X-17964D01* X-18001Y9902D01* X-18049Y9899D01* X-18109D01* X-18142Y9895D01* X-18183D01* X-18223D01* X-18271D01* X-19082D01* Y9669D01* X-19474D01* Y9895D01* X-19844D01* X-20132Y10387D01* X-19474D01* Y10724D01* X-19082D01* Y10387D01* X-18331D01* X-18327D01* X-18319D01* X-18308D01* X-18294D01* X-18257D01* X-18212D01* X-18168Y10391D01* X-18123D01* X-18090D01* X-18075Y10395D01* X-18068D01* X-18060Y10398D01* X-18046Y10406D01* X-18027Y10417D01* X-18005Y10439D01* X-18001Y10446D01* X-17994Y10461D01* X-17987Y10487D01* X-17983Y10520D01* Y10535D01* X-17987Y10550D01* X-17990Y10572D01* X-17994Y10602D01* X-18001Y10635D01* X-18012Y10676D01* X-18027Y10720D01* X-17646Y10764D01* Y10761D01* D02* G37* G36* X-17616Y8881D02* X-18560D01* X-18564D01* X-18575D01* X-18590D01* X-18608D01* X-18634D01* X-18660D01* X-18723Y8878D01* X-18786Y8874D01* X-18852Y8866D01* X-18908Y8859D01* X-18930Y8855D01* X-18948Y8848D01* X-18952D01* X-18963Y8840D01* X-18978Y8833D01* X-19000Y8822D01* X-19045Y8789D01* X-19067Y8770D01* X-19085Y8744D01* X-19089Y8741D01* X-19093Y8733D01* X-19100Y8718D01* X-19111Y8696D01* X-19122Y8670D01* X-19130Y8644D01* X-19133Y8611D01* X-19137Y8574D01* Y8552D01* X-19133Y8530D01* X-19130Y8500D01* X-19119Y8463D01* X-19108Y8426D01* X-19089Y8385D01* X-19067Y8345D01* X-19063Y8341D01* X-19056Y8330D01* X-19037Y8311D01* X-19019Y8289D01* X-18989Y8267D01* X-18960Y8245D01* X-18919Y8223D01* X-18878Y8208D01* X-18875D01* X-18856Y8200D01* X-18826Y8197D01* X-18782Y8189D01* X-18756Y8186D01* X-18723Y8182D01* X-18689Y8178D01* X-18649D01* X-18608Y8174D01* X-18560Y8171D01* X-18508D01* X-18453D01* X-17616D01* Y7679D01* X-19474D01* Y8134D01* X-19200D01* X-19204Y8138D01* X-19215Y8145D01* X-19230Y8160D01* X-19248Y8178D01* X-19274Y8200D01* X-19300Y8230D01* X-19330Y8263D01* X-19359Y8300D01* X-19385Y8341D01* X-19415Y8389D01* X-19441Y8437D01* X-19466Y8493D01* X-19485Y8552D01* X-19500Y8611D01* X-19511Y8678D01* X-19515Y8744D01* Y8770D01* X-19511Y8804D01* X-19507Y8844D01* X-19500Y8889D01* X-19489Y8937D01* X-19474Y8988D01* X-19455Y9040D01* X-19452Y9048D01* X-19444Y9063D01* X-19433Y9088D01* X-19415Y9118D01* X-19392Y9151D01* X-19367Y9185D01* X-19337Y9218D01* X-19304Y9247D01* X-19300Y9251D01* X-19289Y9259D01* X-19270Y9270D01* X-19244Y9285D01* X-19215Y9303D01* X-19178Y9318D01* X-19141Y9333D01* X-19096Y9344D01* X-19093D01* X-19074Y9347D01* X-19048Y9355D01* X-19011Y9358D01* X-18967Y9366D01* X-18908Y9370D01* X-18845Y9373D01* X-18767D01* X-17616D01* Y8881D01* D02* G37* G36* X-18401Y6054D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y6058D01* X-18327Y6062D01* X-18275Y6069D01* X-18223Y6084D01* X-18164Y6106D01* X-18109Y6132D01* X-18060Y6169D01* X-18057Y6173D01* X-18042Y6191D01* X-18023Y6213D01* X-18001Y6247D01* X-17979Y6288D01* X-17961Y6339D01* X-17946Y6395D01* X-17942Y6454D01* Y6472D01* X-17946Y6495D01* X-17950Y6521D01* X-17957Y6550D01* X-17968Y6583D01* X-17983Y6617D01* X-18005Y6646D01* X-18009Y6650D01* X-18016Y6661D01* X-18031Y6676D01* X-18053Y6691D01* X-18083Y6713D01* X-18116Y6731D01* X-18160Y6750D01* X-18209Y6769D01* X-18127Y7257D01* X-18123D01* X-18116Y7253D01* X-18101Y7246D01* X-18083Y7238D01* X-18060Y7227D01* X-18035Y7216D01* X-17975Y7183D01* X-17909Y7142D01* X-17839Y7090D01* X-17776Y7028D01* X-17716Y6957D01* Y6954D01* X-17709Y6950D01* X-17705Y6935D01* X-17694Y6920D01* X-17683Y6902D01* X-17672Y6876D01* X-17661Y6850D01* X-17646Y6817D01* X-17620Y6743D01* X-17598Y6657D01* X-17583Y6558D01* X-17576Y6450D01* Y6428D01* X-17580Y6406D01* Y6373D01* X-17587Y6332D01* X-17594Y6284D01* X-17602Y6232D01* X-17616Y6180D01* X-17631Y6121D01* X-17653Y6062D01* X-17679Y6003D01* X-17709Y5943D01* X-17746Y5884D01* X-17787Y5829D01* X-17835Y5781D01* X-17890Y5733D01* X-17894Y5729D01* X-17901Y5725D01* X-17916Y5718D01* X-17935Y5703D01* X-17961Y5692D01* X-17990Y5677D01* X-18023Y5658D01* X-18064Y5644D01* X-18109Y5625D01* X-18157Y5610D01* X-18209Y5592D01* X-18268Y5581D01* X-18327Y5570D01* X-18390Y5559D01* X-18460Y5555D01* X-18530Y5551D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y5555D01* X-18645Y5559D01* X-18689Y5562D01* X-18738Y5570D01* X-18793Y5581D01* X-18908Y5610D01* X-18967Y5629D01* X-19030Y5651D01* X-19089Y5681D01* X-19145Y5714D01* X-19200Y5751D01* X-19252Y5792D01* X-19256Y5795D01* X-19263Y5803D01* X-19278Y5818D01* X-19293Y5836D01* X-19311Y5858D01* X-19333Y5888D01* X-19359Y5921D01* X-19385Y5958D01* X-19407Y5999D01* X-19433Y6047D01* X-19455Y6095D01* X-19474Y6151D01* X-19489Y6206D01* X-19503Y6269D01* X-19511Y6332D01* X-19515Y6398D01* Y6439D01* X-19511Y6469D01* X-19507Y6502D01* X-19500Y6543D01* X-19492Y6587D01* X-19481Y6635D01* X-19466Y6687D01* X-19448Y6739D01* X-19426Y6794D01* X-19396Y6850D01* X-19367Y6902D01* X-19330Y6954D01* X-19285Y7005D01* X-19237Y7050D01* X-19233Y7053D01* X-19226Y7061D01* X-19207Y7072D01* X-19185Y7087D01* X-19156Y7105D01* X-19122Y7124D01* X-19078Y7146D01* X-19030Y7168D01* X-18974Y7190D01* X-18912Y7213D01* X-18845Y7231D01* X-18767Y7249D01* X-18686Y7264D01* X-18597Y7275D01* X-18505Y7283D01* X-18401D01* Y6054D01* D02* G37* G36* X-17616Y4696D02* X-19474D01* Y5189D01* X-17616D01* Y4696D01* D02* G37* G36* X-19722D02* X-20177D01* Y5189D01* X-19722D01* Y4696D01* D02* G37* G36* X-18993Y4330D02* X-18997Y4326D01* X-19004Y4308D01* X-19019Y4286D01* X-19034Y4256D01* X-19048Y4219D01* X-19063Y4182D01* X-19071Y4141D01* X-19074Y4101D01* Y4086D01* X-19071Y4064D01* X-19067Y4042D01* X-19060Y4016D01* X-19048Y3986D01* X-19034Y3957D01* X-19015Y3927D01* X-19011Y3923D01* X-19004Y3916D01* X-18989Y3901D01* X-18967Y3886D01* X-18941Y3868D01* X-18904Y3849D01* X-18860Y3831D01* X-18808Y3816D01* X-18801D01* X-18789Y3812D01* X-18778Y3808D01* X-18760D01* X-18738Y3805D01* X-18708Y3801D01* X-18675Y3797D01* X-18638Y3794D01* X-18590Y3790D01* X-18541Y3786D01* X-18482D01* X-18419Y3783D01* X-18349Y3779D01* X-18271D01* X-18186D01* X-17616D01* Y3287D01* X-19474D01* Y3742D01* X-19211D01* X-19215Y3746D01* X-19237Y3760D01* X-19270Y3783D01* X-19311Y3812D01* X-19352Y3842D01* X-19392Y3879D01* X-19430Y3912D01* X-19455Y3949D01* X-19459Y3953D01* X-19466Y3964D01* X-19474Y3986D01* X-19485Y4012D01* X-19496Y4042D01* X-19507Y4079D01* X-19511Y4116D01* X-19515Y4160D01* Y4190D01* X-19511Y4223D01* X-19503Y4264D01* X-19492Y4315D01* X-19474Y4371D01* X-19452Y4426D01* X-19418Y4486D01* X-18993Y4330D01* D02* G37* G36* X-18834Y2902D02* X-18789D01* X-18738Y2895D01* X-18678Y2887D01* X-18608Y2876D01* X-18538Y2865D01* X-18460Y2847D01* X-18379Y2824D01* X-18297Y2795D01* X-18216Y2761D01* X-18138Y2724D01* X-18060Y2676D01* X-17987Y2624D01* X-17916Y2565D01* X-17912Y2562D01* X-17901Y2551D01* X-17883Y2532D01* X-17861Y2502D01* X-17835Y2469D01* X-17805Y2428D01* X-17776Y2380D01* X-17742Y2328D01* X-17709Y2266D01* X-17679Y2199D01* X-17650Y2125D01* X-17624Y2044D01* X-17602Y1959D01* X-17583Y1866D01* X-17572Y1770D01* X-17568Y1666D01* Y1640D01* X-17572Y1611D01* X-17576Y1574D01* X-17580Y1526D01* X-17587Y1470D01* X-17598Y1407D01* X-17613Y1341D01* X-17631Y1267D01* X-17653Y1196D01* X-17683Y1119D01* X-17716Y1045D01* X-17753Y967D01* X-17801Y897D01* X-17853Y826D01* X-17916Y760D01* X-17920Y756D01* X-17931Y745D01* X-17953Y730D01* X-17979Y708D01* X-18016Y682D01* X-18060Y652D01* X-18109Y623D01* X-18168Y593D01* X-18231Y560D01* X-18305Y530D01* X-18382Y501D01* X-18467Y475D01* X-18560Y453D01* X-18660Y438D01* X-18767Y427D01* X-18878Y423D01* X-18882D01* X-18897D01* X-18915D01* X-18945Y427D01* X-18978D01* X-19015Y430D01* X-19060Y434D01* X-19108Y438D01* X-19211Y453D01* X-19322Y471D01* X-19433Y501D01* X-19537Y538D01* X-19541D01* X-19544Y541D01* X-19555Y549D01* X-19570Y552D01* X-19607Y575D01* X-19655Y601D01* X-19711Y634D01* X-19766Y675D01* X-19829Y723D01* X-19888Y775D01* X-19892Y778D01* X-19896Y782D01* X-19914Y800D01* X-19944Y834D01* X-19977Y874D01* X-20014Y922D01* X-20055Y978D01* X-20092Y1041D01* X-20121Y1108D01* Y1111D01* X-20125Y1119D01* X-20132Y1133D01* X-20136Y1152D01* X-20147Y1174D01* X-20155Y1200D01* X-20162Y1233D01* X-20173Y1267D01* X-20192Y1348D01* X-20210Y1441D01* X-20221Y1548D01* X-20225Y1659D01* Y1685D01* X-20221Y1714D01* Y1751D01* X-20214Y1799D01* X-20207Y1855D01* X-20195Y1918D01* X-20181Y1984D01* X-20162Y2055D01* X-20140Y2129D01* X-20110Y2203D01* X-20077Y2280D01* X-20036Y2354D01* X-19988Y2428D01* X-19933Y2499D01* X-19870Y2565D01* X-19866Y2569D01* X-19855Y2580D01* X-19833Y2599D01* X-19807Y2617D01* X-19770Y2643D01* X-19726Y2673D01* X-19674Y2702D01* X-19614Y2736D01* X-19552Y2769D01* X-19478Y2798D01* X-19396Y2828D01* X-19311Y2854D01* X-19215Y2876D01* X-19115Y2891D01* X-19008Y2902D01* X-18893Y2906D01* X-18886D01* X-18867D01* X-18834Y2902D01* D02* G37* G36* X-18301Y-724D02* X-18793D01* Y242D01* X-18301D01* Y-724D01* D02* G37* G36* X-17616Y-1605D02* X-17887D01* X-17879Y-1608D01* X-17861Y-1623D01* X-17831Y-1649D01* X-17798Y-1682D01* X-17761Y-1719D01* X-17720Y-1767D01* X-17683Y-1819D01* X-17650Y-1875D01* X-17646Y-1882D01* X-17639Y-1901D01* X-17628Y-1934D01* X-17613Y-1971D01* X-17598Y-2019D01* X-17587Y-2074D01* X-17580Y-2130D01* X-17576Y-2189D01* Y-2219D01* X-17580Y-2241D01* X-17583Y-2271D01* X-17591Y-2300D01* X-17598Y-2337D01* X-17609Y-2378D01* X-17620Y-2419D01* X-17639Y-2463D01* X-17657Y-2507D01* X-17683Y-2555D01* X-17713Y-2600D01* X-17746Y-2648D01* X-17787Y-2692D01* X-17831Y-2737D01* X-17835Y-2740D01* X-17842Y-2748D01* X-17857Y-2759D01* X-17879Y-2770D01* X-17905Y-2789D01* X-17938Y-2807D01* X-17975Y-2829D01* X-18020Y-2848D01* X-18068Y-2870D01* X-18120Y-2892D01* X-18179Y-2911D01* X-18242Y-2926D01* X-18312Y-2940D01* X-18386Y-2951D01* X-18464Y-2959D01* X-18549Y-2963D01* X-18553D01* X-18571D01* X-18593D01* X-18627Y-2959D01* X-18667Y-2955D01* X-18712Y-2951D01* X-18764Y-2944D01* X-18815Y-2937D01* X-18934Y-2911D01* X-18993Y-2892D01* X-19052Y-2870D01* X-19111Y-2844D01* X-19167Y-2815D01* X-19219Y-2781D01* X-19267Y-2744D01* X-19270Y-2740D01* X-19278Y-2733D01* X-19289Y-2722D01* X-19307Y-2703D01* X-19326Y-2681D01* X-19344Y-2655D01* X-19367Y-2626D01* X-19392Y-2589D01* X-19415Y-2552D01* X-19437Y-2507D01* X-19478Y-2415D01* X-19492Y-2359D01* X-19503Y-2304D01* X-19511Y-2245D01* X-19515Y-2182D01* Y-2152D01* X-19511Y-2130D01* X-19507Y-2104D01* X-19500Y-2071D01* X-19492Y-2038D01* X-19481Y-1997D01* X-19470Y-1956D01* X-19452Y-1912D01* X-19430Y-1867D01* X-19407Y-1823D01* X-19374Y-1775D01* X-19341Y-1730D01* X-19300Y-1686D01* X-19256Y-1642D01* X-20177D01* Y-1149D01* X-17616D01* Y-1605D01* D02* G37* G36* Y-3850D02* X-20177D01* Y-3358D01* X-17616D01* Y-3850D01* D02* G37* G36* X-18401Y-5478D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y-5475D01* X-18327Y-5471D01* X-18275Y-5464D01* X-18223Y-5449D01* X-18164Y-5427D01* X-18109Y-5401D01* X-18060Y-5364D01* X-18057Y-5360D01* X-18042Y-5342D01* X-18023Y-5319D01* X-18001Y-5286D01* X-17979Y-5245D01* X-17961Y-5194D01* X-17946Y-5138D01* X-17942Y-5079D01* Y-5060D01* X-17946Y-5038D01* X-17950Y-5012D01* X-17957Y-4983D01* X-17968Y-4949D01* X-17983Y-4916D01* X-18005Y-4887D01* X-18009Y-4883D01* X-18016Y-4872D01* X-18031Y-4857D01* X-18053Y-4842D01* X-18083Y-4820D01* X-18116Y-4801D01* X-18160Y-4783D01* X-18209Y-4764D01* X-18127Y-4276D01* X-18123D01* X-18116Y-4280D01* X-18101Y-4287D01* X-18083Y-4295D01* X-18060Y-4306D01* X-18035Y-4317D01* X-17975Y-4350D01* X-17909Y-4391D01* X-17839Y-4442D01* X-17776Y-4505D01* X-17716Y-4576D01* Y-4579D01* X-17709Y-4583D01* X-17705Y-4598D01* X-17694Y-4613D01* X-17683Y-4631D01* X-17672Y-4657D01* X-17661Y-4683D01* X-17646Y-4716D01* X-17620Y-4790D01* X-17598Y-4875D01* X-17583Y-4975D01* X-17576Y-5083D01* Y-5105D01* X-17580Y-5127D01* Y-5160D01* X-17587Y-5201D01* X-17594Y-5249D01* X-17602Y-5301D01* X-17616Y-5353D01* X-17631Y-5412D01* X-17653Y-5471D01* X-17679Y-5530D01* X-17709Y-5590D01* X-17746Y-5649D01* X-17787Y-5704D01* X-17835Y-5752D01* X-17890Y-5800D01* X-17894Y-5804D01* X-17901Y-5808D01* X-17916Y-5815D01* X-17935Y-5830D01* X-17961Y-5841D01* X-17990Y-5856D01* X-18023Y-5874D01* X-18064Y-5889D01* X-18109Y-5908D01* X-18157Y-5923D01* X-18209Y-5941D01* X-18268Y-5952D01* X-18327Y-5963D01* X-18390Y-5974D01* X-18460Y-5978D01* X-18530Y-5982D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y-5978D01* X-18645Y-5974D01* X-18689Y-5971D01* X-18738Y-5963D01* X-18793Y-5952D01* X-18908Y-5923D01* X-18967Y-5904D01* X-19030Y-5882D01* X-19089Y-5852D01* X-19145Y-5819D01* X-19200Y-5782D01* X-19252Y-5741D01* X-19256Y-5737D01* X-19263Y-5730D01* X-19278Y-5715D01* X-19293Y-5697D01* X-19311Y-5675D01* X-19333Y-5645D01* X-19359Y-5612D01* X-19385Y-5575D01* X-19407Y-5534D01* X-19433Y-5486D01* X-19455Y-5438D01* X-19474Y-5382D01* X-19489Y-5327D01* X-19503Y-5264D01* X-19511Y-5201D01* X-19515Y-5134D01* Y-5094D01* X-19511Y-5064D01* X-19507Y-5031D01* X-19500Y-4990D01* X-19492Y-4946D01* X-19481Y-4898D01* X-19466Y-4846D01* X-19448Y-4794D01* X-19426Y-4738D01* X-19396Y-4683D01* X-19367Y-4631D01* X-19330Y-4579D01* X-19285Y-4528D01* X-19237Y-4483D01* X-19233Y-4479D01* X-19226Y-4472D01* X-19207Y-4461D01* X-19185Y-4446D01* X-19156Y-4428D01* X-19122Y-4409D01* X-19078Y-4387D01* X-19030Y-4365D01* X-18974Y-4343D01* X-18912Y-4320D01* X-18845Y-4302D01* X-18767Y-4283D01* X-18686Y-4269D01* X-18597Y-4258D01* X-18505Y-4250D01* X-18401D01* Y-5478D01* D02* G37* G36* X-17616Y-6836D02* X-19474D01* Y-6344D01* X-17616D01* Y-6836D01* D02* G37* G36* X-19722D02* X-20177D01* Y-6344D01* X-19722D01* Y-6836D01* D02* G37* G36* X-19744Y-8498D02* X-19137D01* Y-7428D01* X-18704D01* Y-8498D01* X-17616D01* Y-9016D01* X-20177D01* Y-7258D01* X-19744D01* Y-8498D01* D02* G37* G36* X-16895Y-11206D02* X-20177D01* Y-10337D01* X-19792D01* Y-10740D01* X-17280D01* Y-10337D01* X-16895D01* Y-11206D01* D02* G37* G36* X33802Y-15779D02* X33265D01* X32450Y-13175D01* X32970D01* X33540Y-15301D01* X34118Y-13175D01* X34617D01* X33802Y-15779D01* D02* G37* G36* X31988Y-13554D02* X31019D01* Y-14186D01* X31027Y-14182D01* X31044Y-14169D01* X31077Y-14157D01* X31123Y-14136D01* X31177Y-14119D01* X31240Y-14107D01* X31314Y-14094D01* X31398Y-14090D01* X31435D01* X31473Y-14094D01* X31527Y-14103D01* X31585Y-14115D01* X31647Y-14136D01* X31714Y-14161D01* X31776Y-14194D01* X31784Y-14198D01* X31805Y-14211D01* X31834Y-14236D01* X31872Y-14269D01* X31913Y-14311D01* X31959Y-14361D01* X32001Y-14419D01* X32038Y-14485D01* X32042Y-14494D01* X32055Y-14519D01* X32067Y-14556D01* X32088Y-14610D01* X32105Y-14677D01* X32117Y-14752D01* X32130Y-14835D01* X32134Y-14926D01* Y-14931D01* Y-14939D01* Y-14951D01* Y-14972D01* X32130Y-14993D01* Y-15022D01* X32117Y-15085D01* X32105Y-15159D01* X32084Y-15238D01* X32055Y-15322D01* X32013Y-15401D01* Y-15405D01* X32009Y-15409D01* X31993Y-15434D01* X31963Y-15471D01* X31930Y-15517D01* X31880Y-15567D01* X31822Y-15621D01* X31755Y-15671D01* X31681Y-15717D01* X31676D01* X31672Y-15721D01* X31660Y-15725D01* X31643Y-15733D01* X31597Y-15750D01* X31539Y-15771D01* X31468Y-15792D01* X31381Y-15808D01* X31289Y-15821D01* X31185Y-15825D01* X31165D01* X31140Y-15821D01* X31106D01* X31065Y-15812D01* X31015Y-15804D01* X30961Y-15796D01* X30903Y-15779D01* X30840Y-15758D01* X30774Y-15738D01* X30707Y-15709D01* X30641Y-15671D01* X30570Y-15629D01* X30503Y-15584D01* X30437Y-15525D01* X30374Y-15463D01* X30657Y-15193D01* X30661Y-15197D01* X30670Y-15201D01* X30682Y-15213D01* X30699Y-15230D01* X30720Y-15247D01* X30744Y-15268D01* X30807Y-15313D01* X30886Y-15359D01* X30973Y-15396D01* X31019Y-15413D01* X31069Y-15421D01* X31119Y-15430D01* X31169Y-15434D01* X31177D01* X31206Y-15430D01* X31244Y-15426D01* X31294Y-15417D01* X31348Y-15401D01* X31402Y-15380D01* X31456Y-15347D01* X31506Y-15305D01* X31510Y-15297D01* X31527Y-15280D01* X31547Y-15251D01* X31568Y-15209D01* X31593Y-15155D01* X31610Y-15089D01* X31626Y-15014D01* X31631Y-14926D01* Y-14922D01* Y-14914D01* Y-14901D01* Y-14885D01* X31626Y-14843D01* X31618Y-14789D01* X31606Y-14731D01* X31585Y-14673D01* X31560Y-14619D01* X31527Y-14573D01* X31522Y-14569D01* X31510Y-14556D01* X31485Y-14535D01* X31456Y-14515D01* X31414Y-14498D01* X31368Y-14477D01* X31314Y-14465D01* X31252Y-14460D01* X31223D01* X31202Y-14465D01* X31152Y-14469D01* X31090Y-14481D01* X31086D01* X31077Y-14485D01* X31061Y-14490D01* X31036Y-14498D01* X31011Y-14506D01* X30977Y-14519D01* X30903Y-14548D01* X30553D01* Y-13175D01* X32047D01* X31988Y-13554D01* D02* G37* G36* X-49400Y12400D02* Y-21700D01* X-58000D01* Y12400D01* X-49400D01* D02* G37* G36* X44368Y-4608D02* X43384D01* Y-3698D01* X44368D01* Y-4608D01* D02* G37* G36* Y-8819D02* X43384D01* Y-5104D01* X44368D01* Y-8819D01* D02* G37* G36* X37701Y-6932D02* X38337D01* Y-7790D01* X37701D01* Y-8819D01* X36754D01* Y-7790D01* X34652D01* Y-6939D01* X36872Y-3676D01* X37701D01* Y-6932D01* D02* G37* G36* X33350Y-8819D02* X32365D01* Y-5111D01* X32358Y-5119D01* X32343Y-5133D01* X32314Y-5156D01* X32269Y-5193D01* X32217Y-5237D01* X32158Y-5281D01* X32084Y-5333D01* X32003Y-5392D01* X31914Y-5452D01* X31818Y-5511D01* X31714Y-5577D01* X31603Y-5637D01* X31366Y-5748D01* X31100Y-5851D01* Y-4963D01* X31107D01* X31115Y-4956D01* X31137Y-4948D01* X31167Y-4941D01* X31241Y-4904D01* X31344Y-4860D01* X31470Y-4800D01* X31611Y-4719D01* X31766Y-4615D01* X31929Y-4497D01* X31936Y-4490D01* X31951Y-4482D01* X31973Y-4460D01* X32003Y-4430D01* X32084Y-4356D01* X32173Y-4260D01* X32277Y-4142D01* X32380Y-3994D01* X32476Y-3838D01* X32550Y-3668D01* X33350D01* Y-8819D01* D02* G37* G36* X46411Y-5104D02* X47084D01* Y-5888D01* X46411D01* Y-7390D01* Y-7398D01* Y-7413D01* Y-7435D01* Y-7464D01* Y-7538D01* Y-7627D01* X46418Y-7716D01* Y-7805D01* Y-7871D01* X46425Y-7901D01* Y-7916D01* X46433Y-7931D01* X46448Y-7960D01* X46470Y-7997D01* X46514Y-8042D01* X46529Y-8049D01* X46559Y-8064D01* X46610Y-8079D01* X46677Y-8086D01* X46707D01* X46736Y-8079D01* X46781Y-8071D01* X46840Y-8064D01* X46906Y-8049D01* X46988Y-8027D01* X47077Y-7997D01* X47165Y-8759D01* X47158D01* X47151Y-8767D01* X47106Y-8782D01* X47032Y-8804D01* X46936Y-8826D01* X46825Y-8856D01* X46692Y-8878D01* X46544Y-8893D01* X46388Y-8900D01* X46344D01* X46292Y-8893D01* X46226Y-8885D01* X46152Y-8878D01* X46070Y-8863D01* X45989Y-8841D01* X45907Y-8811D01* X45900Y-8804D01* X45870Y-8796D01* X45833Y-8774D01* X45789Y-8752D01* X45685Y-8678D01* X45634Y-8634D01* X45589Y-8582D01* X45582Y-8574D01* X45574Y-8552D01* X45560Y-8523D01* X45537Y-8478D01* X45515Y-8426D01* X45493Y-8360D01* X45471Y-8286D01* X45456Y-8204D01* Y-8197D01* X45449Y-8167D01* Y-8123D01* X45441Y-8049D01* X45434Y-7953D01* Y-7834D01* X45426Y-7768D01* Y-7686D01* Y-7605D01* Y-7509D01* Y-5888D01* X44975D01* Y-5104D01* X45426D01* Y-4364D01* X46411Y-3787D01* Y-5104D01* D02* G37* G36* X39958Y-5540D02* X39965Y-5533D01* X39980Y-5518D01* X40002Y-5496D01* X40039Y-5459D01* X40084Y-5422D01* X40135Y-5378D01* X40195Y-5326D01* X40261Y-5281D01* X40417Y-5185D01* X40602Y-5104D01* X40698Y-5067D01* X40809Y-5045D01* X40920Y-5030D01* X41031Y-5022D01* X41097D01* X41142Y-5030D01* X41201Y-5037D01* X41268Y-5052D01* X41342Y-5067D01* X41430Y-5082D01* X41608Y-5141D01* X41697Y-5185D01* X41793Y-5230D01* X41889Y-5289D01* X41978Y-5355D01* X42067Y-5429D01* X42156Y-5518D01* X42163Y-5526D01* X42178Y-5540D01* X42200Y-5570D01* X42230Y-5607D01* X42259Y-5659D01* X42296Y-5718D01* X42341Y-5792D01* X42385Y-5873D01* X42422Y-5970D01* X42466Y-6073D01* X42503Y-6192D01* X42540Y-6317D01* X42563Y-6451D01* X42585Y-6599D01* X42600Y-6754D01* X42607Y-6924D01* Y-6932D01* Y-6969D01* Y-7013D01* X42600Y-7080D01* X42592Y-7161D01* X42585Y-7250D01* X42570Y-7353D01* X42548Y-7464D01* X42496Y-7701D01* X42459Y-7820D01* X42415Y-7945D01* X42363Y-8064D01* X42296Y-8182D01* X42230Y-8286D01* X42148Y-8389D01* X42141Y-8397D01* X42126Y-8412D01* X42104Y-8434D01* X42067Y-8471D01* X42022Y-8508D01* X41971Y-8552D01* X41911Y-8597D01* X41845Y-8641D01* X41763Y-8693D01* X41682Y-8737D01* X41490Y-8819D01* X41386Y-8856D01* X41282Y-8878D01* X41164Y-8893D01* X41046Y-8900D01* X40994D01* X40927Y-8893D01* X40846Y-8878D01* X40750Y-8863D01* X40646Y-8833D01* X40535Y-8796D01* X40417Y-8745D01* X40402Y-8737D01* X40365Y-8715D01* X40306Y-8678D01* X40232Y-8626D01* X40150Y-8560D01* X40061Y-8486D01* X39973Y-8389D01* X39884Y-8278D01* Y-8819D01* X38974D01* Y-3698D01* X39958D01* Y-5540D01* D02* G37* G36* X22358Y-56854D02* X21821D01* X21006Y-54250D01* X21526D01* X22096Y-56376D01* X22674Y-54250D01* X23173D01* X22358Y-56854D01* D02* G37* G36* X24321Y-54204D02* X24379Y-54213D01* X24450Y-54221D01* X24525Y-54238D01* X24600Y-54263D01* X24675Y-54292D01* X24679D01* X24683Y-54296D01* X24708Y-54308D01* X24741Y-54329D01* X24787Y-54354D01* X24833Y-54391D01* X24883Y-54433D01* X24933Y-54483D01* X24974Y-54537D01* X24979Y-54545D01* X24991Y-54562D01* X25008Y-54595D01* X25028Y-54637D01* X25045Y-54687D01* X25062Y-54745D01* X25074Y-54807D01* X25078Y-54874D01* Y-54878D01* Y-54887D01* Y-54899D01* X25074Y-54916D01* X25070Y-54961D01* X25062Y-55015D01* X25041Y-55082D01* X25016Y-55153D01* X24979Y-55219D01* X24929Y-55286D01* X24920Y-55294D01* X24904Y-55311D01* X24870Y-55340D01* X24829Y-55369D01* X24775Y-55402D01* X24716Y-55431D01* X24650Y-55452D01* X24575Y-55461D01* X24600D01* X24617Y-55465D01* X24658Y-55469D01* X24716Y-55485D01* X24779Y-55506D01* X24845Y-55535D01* X24916Y-55577D01* X24983Y-55635D01* X24991Y-55644D01* X25012Y-55664D01* X25037Y-55702D01* X25070Y-55756D01* X25103Y-55822D01* X25128Y-55901D01* X25149Y-55993D01* X25157Y-56097D01* Y-56101D01* Y-56105D01* Y-56118D01* Y-56134D01* X25153Y-56176D01* X25141Y-56234D01* X25128Y-56297D01* X25107Y-56367D01* X25078Y-56438D01* X25037Y-56509D01* X25033Y-56517D01* X25016Y-56538D01* X24987Y-56571D01* X24949Y-56613D01* X24904Y-56659D01* X24845Y-56709D01* X24779Y-56754D01* X24700Y-56796D01* X24696D01* X24691Y-56800D01* X24679Y-56804D01* X24662Y-56813D01* X24642Y-56821D01* X24617Y-56829D01* X24558Y-56846D01* X24484Y-56867D01* X24400Y-56883D01* X24305Y-56896D01* X24205Y-56900D01* X24163D01* X24138Y-56896D01* X24113D01* X24047Y-56887D01* X23972Y-56879D01* X23893Y-56862D01* X23810Y-56837D01* X23722Y-56808D01* X23718D01* X23714Y-56804D01* X23701Y-56800D01* X23685Y-56792D01* X23643Y-56767D01* X23593Y-56738D01* X23535Y-56696D01* X23469Y-56646D01* X23406Y-56584D01* X23344Y-56513D01* X23639Y-56255D01* X23643Y-56259D01* X23660Y-56276D01* X23685Y-56301D01* X23718Y-56330D01* X23755Y-56363D01* X23797Y-56397D01* X23843Y-56426D01* X23893Y-56451D01* X23901Y-56455D01* X23918Y-56459D01* X23943Y-56467D01* X23980Y-56480D01* X24022Y-56492D01* X24072Y-56501D01* X24126Y-56505D01* X24180Y-56509D01* X24217D01* X24259Y-56505D01* X24309Y-56496D01* X24363Y-56480D01* X24421Y-56463D01* X24479Y-56434D01* X24529Y-56397D01* X24533Y-56392D01* X24550Y-56376D01* X24571Y-56351D01* X24596Y-56313D01* X24617Y-56268D01* X24637Y-56213D01* X24654Y-56151D01* X24658Y-56080D01* Y-56076D01* Y-56064D01* X24654Y-56043D01* X24650Y-56018D01* X24646Y-55985D01* X24633Y-55951D01* X24621Y-55914D01* X24600Y-55877D01* X24579Y-55839D01* X24546Y-55802D01* X24513Y-55768D01* X24467Y-55735D01* X24417Y-55710D01* X24355Y-55689D01* X24284Y-55677D01* X24205Y-55673D01* X23951D01* X24001Y-55303D01* X24217D01* X24251Y-55298D01* X24292Y-55290D01* X24338Y-55282D01* X24388Y-55265D01* X24434Y-55240D01* X24479Y-55211D01* X24484Y-55207D01* X24496Y-55194D01* X24517Y-55169D01* X24538Y-55140D01* X24558Y-55103D01* X24579Y-55053D01* X24592Y-54999D01* X24596Y-54936D01* Y-54928D01* Y-54911D01* X24592Y-54878D01* X24583Y-54845D01* X24567Y-54803D01* X24550Y-54762D01* X24521Y-54720D01* X24484Y-54683D01* X24479Y-54678D01* X24463Y-54670D01* X24442Y-54654D01* X24409Y-54637D01* X24367Y-54620D01* X24317Y-54604D01* X24259Y-54595D01* X24196Y-54591D01* X24171D01* X24142Y-54595D01* X24109Y-54599D01* X24068Y-54604D01* X24022Y-54612D01* X23976Y-54629D01* X23930Y-54645D01* X23926Y-54649D01* X23909Y-54654D01* X23885Y-54666D01* X23855Y-54687D01* X23814Y-54708D01* X23772Y-54737D01* X23722Y-54774D01* X23668Y-54816D01* X23419Y-54545D01* X23423Y-54541D01* X23435Y-54529D01* X23452Y-54512D01* X23481Y-54491D01* X23510Y-54466D01* X23552Y-54437D01* X23597Y-54404D01* X23647Y-54371D01* X23706Y-54342D01* X23768Y-54308D01* X23835Y-54279D01* X23905Y-54254D01* X23980Y-54233D01* X24059Y-54217D01* X24142Y-54204D01* X24230Y-54200D01* X24271D01* X24321Y-54204D01* D02* G37* G36* X19820D02* X19878Y-54213D01* X19949Y-54221D01* X20024Y-54238D01* X20099Y-54263D01* X20174Y-54292D01* X20178D01* X20182Y-54296D01* X20207Y-54308D01* X20240Y-54329D01* X20286Y-54354D01* X20332Y-54391D01* X20382Y-54433D01* X20432Y-54483D01* X20473Y-54537D01* X20477Y-54545D01* X20490Y-54562D01* X20507Y-54595D01* X20527Y-54637D01* X20544Y-54687D01* X20561Y-54745D01* X20573Y-54807D01* X20577Y-54874D01* Y-54878D01* Y-54887D01* Y-54899D01* X20573Y-54916D01* X20569Y-54961D01* X20561Y-55015D01* X20540Y-55082D01* X20515Y-55153D01* X20477Y-55219D01* X20427Y-55286D01* X20419Y-55294D01* X20403Y-55311D01* X20369Y-55340D01* X20328Y-55369D01* X20274Y-55402D01* X20215Y-55431D01* X20149Y-55452D01* X20074Y-55461D01* X20099D01* X20116Y-55465D01* X20157Y-55469D01* X20215Y-55485D01* X20278Y-55506D01* X20344Y-55535D01* X20415Y-55577D01* X20482Y-55635D01* X20490Y-55644D01* X20511Y-55664D01* X20536Y-55702D01* X20569Y-55756D01* X20602Y-55822D01* X20627Y-55901D01* X20648Y-55993D01* X20656Y-56097D01* Y-56101D01* Y-56105D01* Y-56118D01* Y-56134D01* X20652Y-56176D01* X20640Y-56234D01* X20627Y-56297D01* X20606Y-56367D01* X20577Y-56438D01* X20536Y-56509D01* X20531Y-56517D01* X20515Y-56538D01* X20486Y-56571D01* X20448Y-56613D01* X20403Y-56659D01* X20344Y-56709D01* X20278Y-56754D01* X20199Y-56796D01* X20195D01* X20190Y-56800D01* X20178Y-56804D01* X20161Y-56813D01* X20141Y-56821D01* X20116Y-56829D01* X20057Y-56846D01* X19982Y-56867D01* X19899Y-56883D01* X19804Y-56896D01* X19704Y-56900D01* X19662D01* X19637Y-56896D01* X19612D01* X19546Y-56887D01* X19471Y-56879D01* X19392Y-56862D01* X19308Y-56837D01* X19221Y-56808D01* X19217D01* X19213Y-56804D01* X19200Y-56800D01* X19184Y-56792D01* X19142Y-56767D01* X19092Y-56738D01* X19034Y-56696D01* X18967Y-56646D01* X18905Y-56584D01* X18843Y-56513D01* X19138Y-56255D01* X19142Y-56259D01* X19159Y-56276D01* X19184Y-56301D01* X19217Y-56330D01* X19254Y-56363D01* X19296Y-56397D01* X19342Y-56426D01* X19392Y-56451D01* X19400Y-56455D01* X19417Y-56459D01* X19442Y-56467D01* X19479Y-56480D01* X19521Y-56492D01* X19571Y-56501D01* X19625Y-56505D01* X19679Y-56509D01* X19716D01* X19758Y-56505D01* X19808Y-56496D01* X19862Y-56480D01* X19920Y-56463D01* X19978Y-56434D01* X20028Y-56397D01* X20032Y-56392D01* X20049Y-56376D01* X20070Y-56351D01* X20095Y-56313D01* X20116Y-56268D01* X20136Y-56213D01* X20153Y-56151D01* X20157Y-56080D01* Y-56076D01* Y-56064D01* X20153Y-56043D01* X20149Y-56018D01* X20145Y-55985D01* X20132Y-55951D01* X20120Y-55914D01* X20099Y-55877D01* X20078Y-55839D01* X20045Y-55802D01* X20011Y-55768D01* X19966Y-55735D01* X19916Y-55710D01* X19853Y-55689D01* X19783Y-55677D01* X19704Y-55673D01* X19450D01* X19500Y-55303D01* X19716D01* X19749Y-55298D01* X19791Y-55290D01* X19837Y-55282D01* X19887Y-55265D01* X19932Y-55240D01* X19978Y-55211D01* X19982Y-55207D01* X19995Y-55194D01* X20016Y-55169D01* X20037Y-55140D01* X20057Y-55103D01* X20078Y-55053D01* X20091Y-54999D01* X20095Y-54936D01* Y-54928D01* Y-54911D01* X20091Y-54878D01* X20082Y-54845D01* X20066Y-54803D01* X20049Y-54762D01* X20020Y-54720D01* X19982Y-54683D01* X19978Y-54678D01* X19962Y-54670D01* X19941Y-54654D01* X19907Y-54637D01* X19866Y-54620D01* X19816Y-54604D01* X19758Y-54595D01* X19695Y-54591D01* X19670D01* X19641Y-54595D01* X19608Y-54599D01* X19566Y-54604D01* X19521Y-54612D01* X19475Y-54629D01* X19429Y-54645D01* X19425Y-54649D01* X19408Y-54654D01* X19383Y-54666D01* X19354Y-54687D01* X19313Y-54708D01* X19271Y-54737D01* X19221Y-54774D01* X19167Y-54816D01* X18917Y-54545D01* X18922Y-54541D01* X18934Y-54529D01* X18951Y-54512D01* X18980Y-54491D01* X19009Y-54466D01* X19051Y-54437D01* X19096Y-54404D01* X19146Y-54371D01* X19205Y-54342D01* X19267Y-54308D01* X19333Y-54279D01* X19404Y-54254D01* X19479Y-54233D01* X19558Y-54217D01* X19641Y-54204D01* X19729Y-54200D01* X19770D01* X19820Y-54204D01* D02* G37* G36* X-52465Y23250D02* X-58000D01* Y45541D01* X-52465D01* Y23250D01* D02* G37* G36* X37554Y-31698D02* X37604Y-31703D01* X37665Y-31714D01* X37726Y-31725D01* X37792Y-31737D01* X37937Y-31781D01* X38009Y-31814D01* X38081Y-31848D01* X38148Y-31892D01* X38220Y-31942D01* X38281Y-31997D01* X38336Y-32064D01* X38342Y-32070D01* X38347Y-32081D01* X38364Y-32103D01* X38381Y-32131D01* X38403Y-32169D01* X38425Y-32214D01* X38453Y-32269D01* X38475Y-32330D01* X38503Y-32397D01* X38530Y-32469D01* X38553Y-32552D01* X38575Y-32641D01* X38592Y-32736D01* X38608Y-32841D01* X38614Y-32947D01* X38619Y-33063D01* Y-33424D01* X39824D01* Y-34090D01* X36349D01* Y-33035D01* X36355Y-32991D01* X36360Y-32935D01* X36366Y-32869D01* X36371Y-32797D01* X36383Y-32719D01* X36416Y-32552D01* X36466Y-32380D01* X36499Y-32297D01* X36538Y-32214D01* X36582Y-32136D01* X36632Y-32064D01* X36638Y-32059D01* X36643Y-32047D01* X36660Y-32031D01* X36682Y-32003D01* X36716Y-31975D01* X36749Y-31947D01* X36793Y-31914D01* X36838Y-31875D01* X36893Y-31842D01* X36954Y-31809D01* X37026Y-31781D01* X37099Y-31748D01* X37176Y-31725D01* X37265Y-31709D01* X37359Y-31698D01* X37459Y-31692D01* X37465D01* X37487D01* X37515D01* X37554Y-31698D01* D02* G37* G36* X39824Y-37009D02* X36349D01* Y-34872D01* X36877Y-34944D01* Y-36338D01* X37803D01* Y-35116D01* X38320D01* Y-36338D01* X39302D01* Y-34845D01* X39824D01* Y-37009D01* D02* G37* G36* X40717Y-40317D02* X40173D01* Y-37769D01* X40717D01* Y-40317D01* D02* G37* G36* X39824Y-41699D02* X36949Y-42692D01* X36960D01* X36982Y-42687D01* X37021D01* X37076Y-42681D01* X37143Y-42676D01* X37215Y-42670D01* X37304Y-42659D01* X37393Y-42653D01* X37493Y-42648D01* X37598Y-42637D01* X37815Y-42626D01* X38031Y-42620D01* X38242Y-42615D01* X39824D01* Y-43220D01* X36349D01* Y-42393D01* X39224Y-41399D01* X39219D01* X39213D01* X39197Y-41405D01* X39174D01* X39113Y-41410D01* X39035Y-41416D01* X38947Y-41427D01* X38847Y-41438D01* X38741Y-41443D01* X38630Y-41455D01* X38625D01* X38619D01* X38603D01* X38575Y-41460D01* X38547D01* X38514D01* X38431Y-41466D01* X38325Y-41471D01* X38209D01* X38075Y-41477D01* X37931D01* X36349D01* Y-40872D01* X39824D01* Y-41699D01* D02* G37* G36* Y-44257D02* X39013Y-44496D01* Y-45623D01* X39824Y-45861D01* Y-46527D01* X36349Y-45439D01* Y-44657D01* X39824Y-43569D01* Y-44257D01* D02* G37* G36* X39452Y-46655D02* X39463Y-46672D01* X39485Y-46694D01* X39513Y-46727D01* X39546Y-46771D01* X39585Y-46821D01* X39624Y-46883D01* X39663Y-46955D01* X39707Y-47027D01* X39746Y-47116D01* X39785Y-47204D01* X39818Y-47304D01* X39846Y-47410D01* X39868Y-47521D01* X39879Y-47637D01* X39885Y-47759D01* Y-47804D01* X39879Y-47837D01* Y-47876D01* X39874Y-47920D01* X39868Y-47970D01* X39857Y-48026D01* X39835Y-48153D01* X39796Y-48287D01* X39746Y-48425D01* X39679Y-48564D01* Y-48570D01* X39668Y-48581D01* X39657Y-48597D01* X39641Y-48625D01* X39590Y-48686D01* X39524Y-48764D01* X39435Y-48858D01* X39330Y-48947D01* X39208Y-49036D01* X39063Y-49119D01* X39058D01* X39047Y-49130D01* X39019Y-49136D01* X38991Y-49152D01* X38952Y-49164D01* X38902Y-49180D01* X38847Y-49202D01* X38786Y-49219D01* X38719Y-49236D01* X38642Y-49258D01* X38564Y-49275D01* X38475Y-49286D01* X38286Y-49308D01* X38081Y-49319D01* X38075D01* X38053D01* X38025D01* X37987Y-49313D01* X37937D01* X37881Y-49308D01* X37820Y-49302D01* X37748Y-49291D01* X37598Y-49269D01* X37437Y-49230D01* X37271Y-49180D01* X37115Y-49114D01* X37110D01* X37099Y-49103D01* X37076Y-49091D01* X37049Y-49075D01* X37015Y-49053D01* X36977Y-49030D01* X36888Y-48964D01* X36788Y-48886D01* X36682Y-48792D01* X36588Y-48681D01* X36499Y-48553D01* Y-48548D01* X36488Y-48536D01* X36477Y-48520D01* X36466Y-48492D01* X36449Y-48459D01* X36433Y-48420D01* X36410Y-48370D01* X36388Y-48320D01* X36349Y-48203D01* X36316Y-48070D01* X36294Y-47920D01* X36283Y-47765D01* Y-47710D01* X36288Y-47643D01* X36294Y-47565D01* X36305Y-47476D01* X36322Y-47376D01* X36344Y-47277D01* X36371Y-47182D01* Y-47177D01* X36377Y-47171D01* X36388Y-47138D01* X36410Y-47093D01* X36438Y-47032D01* X36477Y-46955D01* X36533Y-46877D01* X36593Y-46788D01* X36666Y-46699D01* X37071Y-47038D01* X37065Y-47043D01* X37060Y-47055D01* X37049Y-47071D01* X37032Y-47093D01* X37015Y-47127D01* X36993Y-47160D01* X36943Y-47249D01* X36899Y-47354D01* X36860Y-47476D01* X36832Y-47604D01* X36821Y-47676D01* Y-47782D01* X36827Y-47809D01* X36832Y-47843D01* X36838Y-47876D01* X36860Y-47970D01* X36893Y-48070D01* X36949Y-48176D01* X36982Y-48231D01* X37021Y-48281D01* X37065Y-48331D01* X37121Y-48381D01* X37126D01* X37137Y-48392D01* X37154Y-48403D01* X37176Y-48420D01* X37210Y-48436D01* X37248Y-48459D01* X37298Y-48481D01* X37354Y-48503D01* X37415Y-48525D01* X37487Y-48548D01* X37565Y-48570D01* X37654Y-48586D01* X37748Y-48603D01* X37848Y-48614D01* X37959Y-48620D01* X38081Y-48625D01* X38087D01* X38109D01* X38142D01* X38186Y-48620D01* X38242D01* X38303Y-48614D01* X38370Y-48603D01* X38447Y-48592D01* X38603Y-48564D01* X38758Y-48520D01* X38908Y-48459D01* X38974Y-48425D01* X39035Y-48381D01* X39041Y-48375D01* X39047Y-48370D01* X39080Y-48337D01* X39130Y-48281D01* X39185Y-48209D01* X39241Y-48115D01* X39291Y-48004D01* X39324Y-47881D01* X39330Y-47809D01* X39335Y-47737D01* Y-47698D01* X39330Y-47654D01* X39324Y-47598D01* X39319Y-47537D01* X39302Y-47471D01* X39285Y-47404D01* X39263Y-47338D01* X39257Y-47332D01* X39252Y-47310D01* X39230Y-47277D01* X39208Y-47227D01* X39174Y-47171D01* X39141Y-47110D01* X39091Y-47038D01* X39041Y-46966D01* X39446Y-46649D01* X39452Y-46655D01* D02* G37* G36* X-10200Y13100D02* X-15448D01* Y27532D01* X-10200D01* Y13100D01* D02* G37* G36* X64771Y15636D02* Y1364D01* X58230D01* Y15636D01* X64771D01* D02* G37* G36* X-23810Y31625D02* X-27992D01* Y32733D01* X-23810D01* Y31625D01* D02* G37* G36* X-28550D02* X-29575D01* Y32733D01* X-28550D01* Y31625D01* D02* G37* G36* X-23810Y29468D02* X-24435D01* X-24418Y29460D01* X-24377Y29426D01* X-24318Y29376D01* X-24243Y29301D01* X-24152Y29218D01* X-24069Y29110D01* X-23977Y28993D01* X-23902Y28860D01* X-23893Y28843D01* X-23877Y28793D01* X-23844Y28718D01* X-23810Y28618D01* X-23777Y28502D01* X-23744Y28368D01* X-23727Y28227D01* X-23719Y28077D01* Y28002D01* X-23727Y27927D01* X-23744Y27827D01* X-23760Y27702D01* X-23794Y27577D01* X-23844Y27444D01* X-23902Y27319D01* X-23910Y27302D01* X-23935Y27269D01* X-23977Y27202D01* X-24035Y27136D01* X-24110Y27052D01* X-24193Y26977D01* X-24302Y26902D01* X-24418Y26836D01* X-24435Y26827D01* X-24477Y26811D01* X-24552Y26786D01* X-24660Y26761D01* X-24793Y26736D01* X-24951Y26711D01* X-25135Y26694D01* X-25343Y26686D01* X-27992D01* Y27794D01* X-26068D01* X-26059D01* X-26026D01* X-25984D01* X-25926D01* X-25859D01* X-25784D01* X-25609Y27802D01* X-25418Y27810D01* X-25243Y27819D01* X-25168Y27827D01* X-25093Y27835D01* X-25035Y27843D01* X-24993Y27852D01* X-24985D01* X-24960Y27860D01* X-24926Y27877D01* X-24877Y27902D01* X-24826Y27927D01* X-24777Y27968D01* X-24726Y28010D01* X-24677Y28069D01* X-24668Y28077D01* X-24660Y28102D01* X-24643Y28135D01* X-24627Y28185D01* X-24602Y28243D01* X-24585Y28318D01* X-24577Y28393D01* X-24568Y28485D01* Y28535D01* X-24577Y28585D01* X-24585Y28652D01* X-24602Y28735D01* X-24635Y28818D01* X-24668Y28910D01* X-24718Y28993D01* X-24726Y29001D01* X-24743Y29026D01* X-24777Y29068D01* X-24826Y29118D01* X-24885Y29168D01* X-24943Y29218D01* X-25018Y29268D01* X-25101Y29301D01* X-25110D01* X-25151Y29318D01* X-25185D01* X-25226Y29326D01* X-25268Y29335D01* X-25326Y29343D01* X-25401Y29351D01* X-25476Y29360D01* X-25568Y29368D01* X-25676D01* X-25793Y29376D01* X-25926Y29385D01* X-26068D01* X-26226D01* X-27992D01* Y30492D01* X-23810D01* Y29468D01* D02* G37* G36* Y24478D02* X-26009D01* X-26018D01* X-26034D01* X-26068D01* X-26118D01* X-26168D01* X-26226D01* X-26359Y24470D01* X-26501Y24462D01* X-26642Y24453D01* X-26759Y24437D01* X-26801Y24420D01* X-26842Y24412D01* X-26851D01* X-26876Y24395D01* X-26901Y24378D01* X-26942Y24362D01* X-27034Y24287D01* X-27084Y24245D01* X-27126Y24187D01* X-27134Y24178D01* X-27142Y24162D01* X-27159Y24120D01* X-27184Y24078D01* X-27200Y24020D01* X-27217Y23953D01* X-27226Y23870D01* X-27234Y23787D01* Y23737D01* X-27226Y23687D01* X-27217Y23620D01* X-27200Y23545D01* X-27176Y23462D01* X-27142Y23379D01* X-27092Y23295D01* X-27084Y23287D01* X-27067Y23262D01* X-27034Y23220D01* X-26992Y23179D01* X-26934Y23120D01* X-26867Y23070D01* X-26784Y23020D01* X-26692Y22979D01* X-26684D01* X-26642Y22962D01* X-26584Y22945D01* X-26493Y22929D01* X-26384Y22912D01* X-26243Y22896D01* X-26084Y22887D01* X-25901Y22879D01* X-23810D01* Y21771D01* X-29575D01* Y22879D01* X-27442D01* X-27450Y22887D01* X-27467Y22904D01* X-27500Y22937D01* X-27542Y22971D01* X-27592Y23029D01* X-27642Y23087D01* X-27700Y23162D01* X-27767Y23237D01* X-27825Y23329D01* X-27884Y23429D01* X-27984Y23645D01* X-28025Y23762D01* X-28058Y23887D01* X-28075Y24020D01* X-28084Y24153D01* Y24220D01* X-28075Y24295D01* X-28067Y24387D01* X-28050Y24495D01* X-28017Y24603D01* X-27984Y24728D01* X-27934Y24845D01* X-27925Y24861D01* X-27909Y24895D01* X-27875Y24953D01* X-27834Y25020D01* X-27784Y25095D01* X-27725Y25170D01* X-27650Y25245D01* X-27575Y25311D01* X-27567Y25320D01* X-27534Y25336D01* X-27492Y25361D01* X-27434Y25394D01* X-27359Y25436D01* X-27275Y25469D01* X-27184Y25503D01* X-27084Y25528D01* X-27076D01* X-27034Y25536D01* X-26967Y25545D01* X-26884Y25561D01* X-26767Y25569D01* X-26626Y25578D01* X-26459Y25586D01* X-26259D01* X-23810D01* Y24478D01* D02* G37* G36* Y19538D02* X-27992D01* Y20646D01* X-23810D01* Y19538D01* D02* G37* G36* X-28550D02* X-29575D01* Y20646D01* X-28550D01* Y19538D01* D02* G37* G36* X-23810Y17314D02* X-26009D01* X-26018D01* X-26034D01* X-26068D01* X-26118D01* X-26168D01* X-26226D01* X-26359Y17306D01* X-26501Y17298D01* X-26642Y17289D01* X-26759Y17273D01* X-26801Y17256D01* X-26842Y17248D01* X-26851D01* X-26876Y17231D01* X-26901Y17214D01* X-26942Y17198D01* X-27034Y17123D01* X-27084Y17081D01* X-27126Y17023D01* X-27134Y17015D01* X-27142Y16998D01* X-27159Y16956D01* X-27184Y16915D01* X-27200Y16856D01* X-27217Y16790D01* X-27226Y16706D01* X-27234Y16623D01* Y16573D01* X-27226Y16523D01* X-27217Y16456D01* X-27200Y16382D01* X-27176Y16298D01* X-27142Y16215D01* X-27092Y16132D01* X-27084Y16123D01* X-27067Y16098D01* X-27034Y16057D01* X-26992Y16015D01* X-26934Y15957D01* X-26867Y15907D01* X-26784Y15857D01* X-26692Y15815D01* X-26684D01* X-26642Y15798D01* X-26584Y15782D01* X-26493Y15765D01* X-26384Y15748D01* X-26243Y15732D01* X-26084Y15723D01* X-25901Y15715D01* X-23810D01* Y14607D01* X-29575D01* Y15715D01* X-27442D01* X-27450Y15723D01* X-27467Y15740D01* X-27500Y15773D01* X-27542Y15807D01* X-27592Y15865D01* X-27642Y15923D01* X-27700Y15998D01* X-27767Y16073D01* X-27825Y16165D01* X-27884Y16265D01* X-27984Y16481D01* X-28025Y16598D01* X-28058Y16723D01* X-28075Y16856D01* X-28084Y16990D01* Y17056D01* X-28075Y17131D01* X-28067Y17223D01* X-28050Y17331D01* X-28017Y17439D01* X-27984Y17564D01* X-27934Y17681D01* X-27925Y17698D01* X-27909Y17731D01* X-27875Y17789D01* X-27834Y17856D01* X-27784Y17931D01* X-27725Y18006D01* X-27650Y18081D01* X-27575Y18147D01* X-27567Y18156D01* X-27534Y18172D01* X-27492Y18197D01* X-27434Y18231D01* X-27359Y18272D01* X-27275Y18306D01* X-27184Y18339D01* X-27084Y18364D01* X-27076D01* X-27034Y18372D01* X-26967Y18381D01* X-26884Y18397D01* X-26767Y18406D01* X-26626Y18414D01* X-26459Y18422D01* X-26259D01* X-23810D01* Y17314D01* D02* G37* G36* Y10142D02* X-24685D01* X-26476Y11700D01* X-26484Y11708D01* X-26493Y11717D01* X-26551Y11767D01* X-26626Y11833D01* X-26717Y11917D01* X-26817Y12008D01* X-26926Y12108D01* X-27017Y12191D01* X-27101Y12275D01* Y12241D01* X-27092Y12191D01* Y12066D01* X-27084Y11975D01* Y11767D01* X-27076Y10292D01* X-27992D01* Y13749D01* X-27209D01* X-25368Y12150D01* X-24760Y11592D01* Y11633D01* X-24768Y11667D01* Y11742D01* X-24777Y11833D01* Y11933D01* X-24785Y12025D01* Y13874D01* X-23810D01* Y10142D01* D02* G37* G36* X-23985Y9484D02* X-23827Y9476D01* X-23644Y9459D01* X-23460Y9443D01* X-23285Y9409D01* X-23211Y9393D01* X-23135Y9368D01* X-23119Y9359D01* X-23077Y9343D01* X-23011Y9318D01* X-22927Y9276D01* X-22836Y9226D01* X-22736Y9168D01* X-22644Y9101D01* X-22561Y9018D01* X-22552Y9009D01* X-22527Y8976D01* X-22486Y8926D01* X-22444Y8868D01* X-22394Y8784D01* X-22336Y8685D01* X-22286Y8568D01* X-22236Y8435D01* X-22228Y8418D01* X-22219Y8368D01* X-22194Y8293D01* X-22177Y8185D01* X-22153Y8043D01* X-22128Y7885D01* X-22119Y7702D01* X-22111Y7502D01* Y7402D01* X-22119Y7327D01* Y7243D01* X-22128Y7143D01* X-22144Y7035D01* X-22161Y6919D01* X-22203Y6669D01* X-22269Y6419D01* X-22311Y6302D01* X-22361Y6185D01* X-22411Y6086D01* X-22477Y5994D01* X-22486Y5986D01* X-22494Y5977D01* X-22544Y5927D01* X-22619Y5852D01* X-22727Y5777D01* X-22861Y5694D01* X-23019Y5619D01* X-23202Y5569D01* X-23302Y5561D01* X-23402Y5553D01* X-23410D01* X-23444D01* X-23485D01* X-23535Y5561D01* X-23385Y6827D01* X-23377D01* X-23352Y6835D01* X-23310Y6844D01* X-23269Y6852D01* X-23169Y6894D01* X-23119Y6927D01* X-23086Y6969D01* X-23077Y6977D01* X-23069Y7002D01* X-23044Y7035D01* X-23027Y7094D01* X-23002Y7160D01* X-22977Y7243D01* X-22969Y7343D01* X-22961Y7460D01* Y7535D01* X-22969Y7610D01* X-22977Y7702D01* X-22994Y7810D01* X-23019Y7918D01* X-23052Y8018D01* X-23094Y8110D01* X-23102Y8118D01* X-23110Y8135D01* X-23127Y8160D01* X-23160Y8193D01* X-23202Y8226D01* X-23252Y8260D01* X-23310Y8293D01* X-23377Y8326D01* X-23385D01* X-23402Y8335D01* X-23435Y8343D01* X-23494Y8360D01* X-23560Y8368D01* X-23644Y8376D01* X-23752Y8385D01* X-23877D01* X-24485D01* X-24477Y8376D01* X-24460Y8360D01* X-24427Y8335D01* X-24377Y8293D01* X-24327Y8251D01* X-24268Y8193D01* X-24210Y8118D01* X-24152Y8043D01* X-24085Y7960D01* X-24027Y7860D01* X-23919Y7652D01* X-23877Y7535D01* X-23844Y7410D01* X-23819Y7277D01* X-23810Y7135D01* Y7102D01* X-23819Y7052D01* Y6994D01* X-23835Y6927D01* X-23852Y6844D01* X-23868Y6752D01* X-23902Y6652D01* X-23935Y6552D01* X-23985Y6444D01* X-24044Y6327D01* X-24110Y6219D01* X-24193Y6111D01* X-24285Y6002D01* X-24393Y5902D01* X-24518Y5802D01* X-24527D01* X-24543Y5786D01* X-24577Y5769D01* X-24618Y5744D01* X-24677Y5711D01* X-24743Y5677D01* X-24818Y5644D01* X-24910Y5611D01* X-25001Y5578D01* X-25110Y5544D01* X-25226Y5511D01* X-25351Y5477D01* X-25618Y5436D01* X-25768Y5427D01* X-25918Y5419D01* X-25926D01* X-25968D01* X-26018D01* X-26093Y5427D01* X-26176Y5436D01* X-26276Y5444D01* X-26392Y5461D01* X-26509Y5486D01* X-26776Y5544D01* X-26909Y5586D01* X-27042Y5627D01* X-27167Y5686D01* X-27301Y5752D01* X-27417Y5827D01* X-27525Y5919D01* X-27534Y5927D01* X-27550Y5944D01* X-27575Y5969D01* X-27617Y6011D01* X-27659Y6061D01* X-27700Y6119D01* X-27750Y6185D01* X-27809Y6269D01* X-27859Y6352D01* X-27909Y6452D01* X-28000Y6660D01* X-28034Y6785D01* X-28058Y6910D01* X-28075Y7044D01* X-28084Y7177D01* Y7210D01* X-28075Y7252D01* Y7310D01* X-28058Y7368D01* X-28050Y7452D01* X-28025Y7535D01* X-28000Y7627D01* X-27959Y7727D01* X-27917Y7827D01* X-27859Y7935D01* X-27792Y8043D01* X-27717Y8151D01* X-27617Y8260D01* X-27517Y8360D01* X-27392Y8460D01* X-27992D01* Y9493D01* X-24235D01* X-24227D01* X-24202D01* X-24168D01* X-24118D01* X-24052D01* X-23985Y9484D01* D02* G37* G36* X-23810Y3437D02* X-25934D01* X-25943D01* X-25968D01* X-26001D01* X-26043D01* X-26101D01* X-26159D01* X-26301Y3428D01* X-26443Y3420D01* X-26592Y3403D01* X-26717Y3387D01* X-26767Y3378D01* X-26809Y3362D01* X-26817D01* X-26842Y3345D01* X-26876Y3328D01* X-26926Y3303D01* X-27026Y3228D01* X-27076Y3187D01* X-27117Y3128D01* X-27126Y3120D01* X-27134Y3104D01* X-27151Y3070D01* X-27176Y3020D01* X-27200Y2962D01* X-27217Y2904D01* X-27226Y2829D01* X-27234Y2745D01* Y2695D01* X-27226Y2645D01* X-27217Y2579D01* X-27192Y2495D01* X-27167Y2412D01* X-27126Y2320D01* X-27076Y2229D01* X-27067Y2221D01* X-27051Y2196D01* X-27009Y2154D01* X-26967Y2104D01* X-26901Y2054D01* X-26834Y2004D01* X-26742Y1954D01* X-26651Y1921D01* X-26642D01* X-26601Y1904D01* X-26534Y1896D01* X-26434Y1879D01* X-26376Y1871D01* X-26301Y1862D01* X-26226Y1854D01* X-26134D01* X-26043Y1846D01* X-25934Y1837D01* X-25818D01* X-25693D01* X-23810D01* Y729D01* X-27992D01* Y1754D01* X-27376D01* X-27384Y1762D01* X-27409Y1779D01* X-27442Y1812D01* X-27484Y1854D01* X-27542Y1904D01* X-27600Y1971D01* X-27667Y2046D01* X-27734Y2129D01* X-27792Y2221D01* X-27859Y2329D01* X-27917Y2437D01* X-27975Y2562D01* X-28017Y2695D01* X-28050Y2829D01* X-28075Y2978D01* X-28084Y3128D01* Y3187D01* X-28075Y3262D01* X-28067Y3353D01* X-28050Y3453D01* X-28025Y3562D01* X-27992Y3678D01* X-27950Y3795D01* X-27942Y3811D01* X-27925Y3845D01* X-27900Y3903D01* X-27859Y3970D01* X-27809Y4045D01* X-27750Y4120D01* X-27684Y4195D01* X-27609Y4261D01* X-27600Y4270D01* X-27575Y4286D01* X-27534Y4311D01* X-27475Y4345D01* X-27409Y4386D01* X-27325Y4420D01* X-27242Y4453D01* X-27142Y4478D01* X-27134D01* X-27092Y4486D01* X-27034Y4503D01* X-26951Y4511D01* X-26851Y4528D01* X-26717Y4536D01* X-26576Y4544D01* X-26401D01* X-23810D01* Y3437D01* D02* G37* G36* X-25576Y-2928D02* X-25568D01* X-25551D01* X-25526D01* X-25493Y-2919D01* X-25410Y-2911D01* X-25293Y-2894D01* X-25176Y-2861D01* X-25043Y-2811D01* X-24918Y-2753D01* X-24810Y-2669D01* X-24802Y-2661D01* X-24768Y-2619D01* X-24726Y-2569D01* X-24677Y-2494D01* X-24627Y-2403D01* X-24585Y-2286D01* X-24552Y-2161D01* X-24543Y-2028D01* Y-1986D01* X-24552Y-1936D01* X-24560Y-1878D01* X-24577Y-1811D01* X-24602Y-1736D01* X-24635Y-1661D01* X-24685Y-1595D01* X-24693Y-1586D01* X-24710Y-1561D01* X-24743Y-1528D01* X-24793Y-1495D01* X-24860Y-1445D01* X-24935Y-1403D01* X-25035Y-1361D01* X-25143Y-1320D01* X-24960Y-220D01* X-24951D01* X-24935Y-228D01* X-24902Y-245D01* X-24860Y-262D01* X-24810Y-287D01* X-24751Y-312D01* X-24618Y-387D01* X-24468Y-478D01* X-24310Y-595D01* X-24168Y-737D01* X-24035Y-895D01* Y-903D01* X-24018Y-912D01* X-24010Y-945D01* X-23985Y-978D01* X-23960Y-1020D01* X-23935Y-1078D01* X-23910Y-1137D01* X-23877Y-1211D01* X-23819Y-1378D01* X-23769Y-1570D01* X-23735Y-1795D01* X-23719Y-2036D01* Y-2086D01* X-23727Y-2136D01* Y-2211D01* X-23744Y-2303D01* X-23760Y-2411D01* X-23777Y-2528D01* X-23810Y-2644D01* X-23844Y-2778D01* X-23893Y-2911D01* X-23952Y-3044D01* X-24018Y-3177D01* X-24102Y-3311D01* X-24193Y-3436D01* X-24302Y-3544D01* X-24427Y-3652D01* X-24435Y-3661D01* X-24452Y-3669D01* X-24485Y-3686D01* X-24527Y-3719D01* X-24585Y-3744D01* X-24652Y-3777D01* X-24726Y-3819D01* X-24818Y-3852D01* X-24918Y-3894D01* X-25026Y-3927D01* X-25143Y-3969D01* X-25276Y-3994D01* X-25410Y-4019D01* X-25551Y-4044D01* X-25710Y-4052D01* X-25868Y-4060D01* X-25876D01* X-25909D01* X-25968D01* X-26043Y-4052D01* X-26126Y-4044D01* X-26226Y-4035D01* X-26334Y-4019D01* X-26459Y-3994D01* X-26717Y-3927D01* X-26851Y-3885D01* X-26992Y-3835D01* X-27126Y-3769D01* X-27250Y-3694D01* X-27376Y-3610D01* X-27492Y-3519D01* X-27500Y-3511D01* X-27517Y-3494D01* X-27550Y-3461D01* X-27584Y-3419D01* X-27625Y-3369D01* X-27675Y-3302D01* X-27734Y-3227D01* X-27792Y-3144D01* X-27842Y-3052D01* X-27900Y-2944D01* X-27950Y-2836D01* X-27992Y-2711D01* X-28025Y-2586D01* X-28058Y-2444D01* X-28075Y-2303D01* X-28084Y-2153D01* Y-2061D01* X-28075Y-1994D01* X-28067Y-1919D01* X-28050Y-1828D01* X-28034Y-1728D01* X-28009Y-1620D01* X-27975Y-1503D01* X-27934Y-1386D01* X-27884Y-1261D01* X-27817Y-1137D01* X-27750Y-1020D01* X-27667Y-903D01* X-27567Y-787D01* X-27459Y-687D01* X-27450Y-678D01* X-27434Y-662D01* X-27392Y-637D01* X-27342Y-603D01* X-27275Y-562D01* X-27200Y-520D01* X-27101Y-470D01* X-26992Y-420D01* X-26867Y-370D01* X-26726Y-320D01* X-26576Y-279D01* X-26401Y-237D01* X-26218Y-204D01* X-26018Y-179D01* X-25809Y-162D01* X-25576D01* Y-2928D01* D02* G37* G36* X-27667Y-4693D02* X-27609D01* X-27492Y-4710D01* X-27351Y-4735D01* X-27192Y-4768D01* X-27042Y-4818D01* X-26901Y-4885D01* X-26884Y-4893D01* X-26842Y-4918D01* X-26776Y-4960D01* X-26692Y-5018D01* X-26609Y-5085D01* X-26509Y-5177D01* X-26417Y-5268D01* X-26334Y-5376D01* X-26326Y-5393D01* X-26301Y-5426D01* X-26268Y-5485D01* X-26226Y-5560D01* X-26176Y-5651D01* X-26134Y-5751D01* X-26093Y-5860D01* X-26059Y-5976D01* Y-5993D01* X-26051Y-6018D01* Y-6051D01* X-26043Y-6093D01* X-26034Y-6151D01* X-26026Y-6210D01* Y-6284D01* X-26018Y-6359D01* X-26009Y-6451D01* X-26001Y-6551D01* X-25993Y-6659D01* Y-6776D01* X-25984Y-6901D01* Y-7934D01* X-23810D01* Y-9100D01* X-29575D01* Y-6976D01* X-29566Y-6884D01* Y-6668D01* X-29550Y-6434D01* X-29533Y-6201D01* X-29525Y-6101D01* X-29516Y-6001D01* X-29500Y-5918D01* X-29483Y-5851D01* Y-5843D01* X-29475Y-5826D01* X-29466Y-5801D01* X-29458Y-5768D01* X-29416Y-5676D01* X-29366Y-5560D01* X-29291Y-5435D01* X-29191Y-5293D01* X-29067Y-5160D01* X-28916Y-5027D01* X-28908D01* X-28900Y-5010D01* X-28875Y-4993D01* X-28842Y-4977D01* X-28792Y-4943D01* X-28742Y-4918D01* X-28683Y-4885D01* X-28617Y-4852D01* X-28450Y-4793D01* X-28267Y-4735D01* X-28042Y-4702D01* X-27800Y-4685D01* X-27792D01* X-27775D01* X-27750D01* X-27709D01* X-27667Y-4693D01* D02* G37* G36* X-33383Y6301D02* X-33302Y6296D01* X-33205Y6286D01* X-33103Y6276D01* X-32991Y6266D01* X-32874Y6245D01* X-32752Y6220D01* X-32635Y6194D01* X-32518Y6159D01* X-32401Y6123D01* X-32294Y6072D01* X-32192Y6021D01* X-32105Y5960D01* X-32100Y5955D01* X-32090Y5945D01* X-32070Y5930D01* X-32050Y5909D01* X-32024Y5879D01* X-31993Y5843D01* X-31958Y5797D01* X-31927Y5751D01* X-31892Y5695D01* X-31856Y5640D01* X-31826Y5573D01* X-31800Y5502D01* X-31780Y5426D01* X-31759Y5339D01* X-31749Y5253D01* X-31744Y5161D01* Y5141D01* X-31749Y5110D01* Y5074D01* X-31754Y5034D01* X-31764Y4983D01* X-31775Y4927D01* X-31795Y4866D01* X-31815Y4800D01* X-31841Y4733D01* X-31871Y4662D01* X-31912Y4596D01* X-31953Y4525D01* X-32009Y4459D01* X-32065Y4392D01* X-32136Y4331D01* X-32141Y4326D01* X-32156Y4316D01* X-32182Y4301D01* X-32212Y4285D01* X-32258Y4260D01* X-32314Y4235D01* X-32385Y4204D01* X-32462Y4179D01* X-32553Y4148D01* X-32655Y4118D01* X-32772Y4092D01* X-32899Y4072D01* X-33042Y4051D01* X-33200Y4036D01* X-33368Y4026D01* X-33551Y4021D01* X-33556D01* X-33561D01* X-33577D01* X-33597D01* X-33648D01* X-33714Y4026D01* X-33795Y4031D01* X-33892Y4041D01* X-33994Y4051D01* X-34106Y4062D01* X-34223Y4082D01* X-34340Y4102D01* X-34462Y4133D01* X-34579Y4163D01* X-34691Y4204D01* X-34798Y4250D01* X-34900Y4301D01* X-34986Y4362D01* X-34991Y4367D01* X-35002Y4377D01* X-35022Y4392D01* X-35042Y4418D01* X-35073Y4443D01* X-35103Y4479D01* X-35134Y4525D01* X-35170Y4571D01* X-35205Y4627D01* X-35236Y4682D01* X-35266Y4749D01* X-35297Y4820D01* X-35317Y4896D01* X-35338Y4983D01* X-35348Y5069D01* X-35353Y5161D01* Y5212D01* X-35348Y5248D01* X-35343Y5288D01* X-35333Y5339D01* X-35322Y5390D01* X-35307Y5451D01* X-35287Y5517D01* X-35261Y5578D01* X-35236Y5645D01* X-35200Y5711D01* X-35154Y5777D01* X-35109Y5843D01* X-35053Y5904D01* X-34986Y5960D01* X-34981Y5965D01* X-34966Y5975D01* X-34941Y5991D01* X-34905Y6016D01* X-34854Y6042D01* X-34793Y6072D01* X-34727Y6103D01* X-34640Y6133D01* X-34549Y6164D01* X-34442Y6199D01* X-34325Y6225D01* X-34192Y6250D01* X-34050Y6276D01* X-33897Y6291D01* X-33729Y6301D01* X-33546Y6306D01* X-33541D01* X-33536D01* X-33520D01* X-33500D01* X-33449D01* X-33383Y6301D01* D02* G37* G36* X-31810Y2794D02* X-32487D01* Y3471D01* X-31810D01* Y2794D01* D02* G37* G36* Y962D02* X-34360D01* X-34355Y957D01* X-34345Y946D01* X-34330Y926D01* X-34304Y896D01* X-34274Y860D01* X-34243Y819D01* X-34208Y768D01* X-34167Y712D01* X-34126Y651D01* X-34086Y585D01* X-34040Y514D01* X-33999Y438D01* X-33923Y275D01* X-33851Y91D01* X-34462D01* Y96D01* X-34467Y102D01* X-34472Y117D01* X-34477Y137D01* X-34503Y188D01* X-34533Y259D01* X-34574Y346D01* X-34630Y443D01* X-34701Y550D01* X-34783Y661D01* X-34788Y667D01* X-34793Y677D01* X-34808Y692D01* X-34829Y712D01* X-34879Y768D01* X-34946Y829D01* X-35027Y901D01* X-35129Y972D01* X-35236Y1038D01* X-35353Y1089D01* Y1639D01* X-31810D01* Y962D01* D02* G37* G36* X-33704Y-1817D02* X-33709Y-1822D01* X-33719Y-1848D01* X-33739Y-1878D01* X-33760Y-1919D01* X-33780Y-1970D01* X-33800Y-2021D01* X-33811Y-2077D01* X-33816Y-2133D01* Y-2153D01* X-33811Y-2184D01* X-33806Y-2214D01* X-33795Y-2250D01* X-33780Y-2291D01* X-33760Y-2331D01* X-33734Y-2372D01* X-33729Y-2377D01* X-33719Y-2387D01* X-33699Y-2408D01* X-33668Y-2428D01* X-33632Y-2454D01* X-33582Y-2479D01* X-33520Y-2505D01* X-33449Y-2525D01* X-33439D01* X-33424Y-2530D01* X-33408Y-2535D01* X-33383D01* X-33353Y-2540D01* X-33312Y-2545D01* X-33266Y-2550D01* X-33215Y-2555D01* X-33149Y-2561D01* X-33083Y-2566D01* X-33001D01* X-32915Y-2571D01* X-32818Y-2576D01* X-32711D01* X-32594D01* X-31810D01* Y-3253D01* X-34365D01* Y-2627D01* X-34004D01* X-34009Y-2622D01* X-34040Y-2601D01* X-34086Y-2571D01* X-34141Y-2530D01* X-34197Y-2489D01* X-34253Y-2438D01* X-34304Y-2393D01* X-34340Y-2342D01* X-34345Y-2337D01* X-34355Y-2321D01* X-34365Y-2291D01* X-34381Y-2255D01* X-34396Y-2214D01* X-34411Y-2163D01* X-34416Y-2113D01* X-34421Y-2052D01* Y-2011D01* X-34416Y-1965D01* X-34406Y-1909D01* X-34391Y-1838D01* X-34365Y-1761D01* X-34335Y-1685D01* X-34289Y-1604D01* X-33704Y-1817D01* D02* G37* G36* X-32889Y-5467D02* X-32884D01* X-32874D01* X-32859D01* X-32838Y-5462D01* X-32787Y-5457D01* X-32716Y-5447D01* X-32645Y-5426D01* X-32563Y-5396D01* X-32487Y-5360D01* X-32421Y-5309D01* X-32416Y-5304D01* X-32396Y-5279D01* X-32370Y-5248D01* X-32340Y-5202D01* X-32309Y-5146D01* X-32284Y-5075D01* X-32263Y-4999D01* X-32258Y-4917D01* Y-4892D01* X-32263Y-4861D01* X-32268Y-4826D01* X-32278Y-4785D01* X-32294Y-4739D01* X-32314Y-4693D01* X-32345Y-4653D01* X-32350Y-4647D01* X-32360Y-4632D01* X-32380Y-4612D01* X-32411Y-4591D01* X-32452Y-4561D01* X-32497Y-4535D01* X-32559Y-4510D01* X-32625Y-4485D01* X-32513Y-3813D01* X-32508D01* X-32497Y-3818D01* X-32477Y-3828D01* X-32452Y-3838D01* X-32421Y-3853D01* X-32385Y-3869D01* X-32304Y-3915D01* X-32212Y-3971D01* X-32116Y-4042D01* X-32029Y-4128D01* X-31948Y-4225D01* Y-4230D01* X-31938Y-4235D01* X-31932Y-4256D01* X-31917Y-4276D01* X-31902Y-4301D01* X-31887Y-4337D01* X-31871Y-4373D01* X-31851Y-4418D01* X-31815Y-4520D01* X-31785Y-4637D01* X-31764Y-4775D01* X-31754Y-4922D01* Y-4953D01* X-31759Y-4983D01* Y-5029D01* X-31769Y-5085D01* X-31780Y-5151D01* X-31790Y-5223D01* X-31810Y-5294D01* X-31831Y-5375D01* X-31861Y-5457D01* X-31897Y-5538D01* X-31938Y-5620D01* X-31988Y-5701D01* X-32044Y-5777D01* X-32111Y-5844D01* X-32187Y-5910D01* X-32192Y-5915D01* X-32202Y-5920D01* X-32223Y-5930D01* X-32248Y-5951D01* X-32284Y-5966D01* X-32324Y-5986D01* X-32370Y-6011D01* X-32426Y-6032D01* X-32487Y-6057D01* X-32553Y-6078D01* X-32625Y-6103D01* X-32706Y-6118D01* X-32787Y-6134D01* X-32874Y-6149D01* X-32971Y-6154D01* X-33068Y-6159D01* X-33073D01* X-33093D01* X-33128D01* X-33174Y-6154D01* X-33225Y-6149D01* X-33286Y-6144D01* X-33353Y-6134D01* X-33429Y-6118D01* X-33587Y-6078D01* X-33668Y-6052D01* X-33755Y-6022D01* X-33836Y-5981D01* X-33912Y-5935D01* X-33989Y-5884D01* X-34060Y-5828D01* X-34065Y-5823D01* X-34075Y-5813D01* X-34096Y-5793D01* X-34116Y-5767D01* X-34141Y-5737D01* X-34172Y-5696D01* X-34208Y-5650D01* X-34243Y-5599D01* X-34274Y-5543D01* X-34309Y-5477D01* X-34340Y-5411D01* X-34365Y-5335D01* X-34386Y-5258D01* X-34406Y-5172D01* X-34416Y-5085D01* X-34421Y-4993D01* Y-4938D01* X-34416Y-4897D01* X-34411Y-4851D01* X-34401Y-4795D01* X-34391Y-4734D01* X-34376Y-4668D01* X-34355Y-4597D01* X-34330Y-4525D01* X-34299Y-4449D01* X-34258Y-4373D01* X-34218Y-4301D01* X-34167Y-4230D01* X-34106Y-4159D01* X-34040Y-4098D01* X-34035Y-4093D01* X-34024Y-4082D01* X-33999Y-4067D01* X-33968Y-4047D01* X-33928Y-4021D01* X-33882Y-3996D01* X-33821Y-3965D01* X-33755Y-3935D01* X-33678Y-3904D01* X-33592Y-3874D01* X-33500Y-3848D01* X-33393Y-3823D01* X-33281Y-3802D01* X-33159Y-3787D01* X-33032Y-3777D01* X-32889D01* Y-5467D01* D02* G37* G36* X-31810Y-7569D02* Y-8338D01* X-35333Y-9600D01* Y-8831D01* X-32726Y-7936D01* X-35333Y-7075D01* Y-6317D01* X-31810Y-7569D01* D02* G37* G36* X-11200Y10799D02* X-12521D01* X-12526D01* X-12535D01* X-12554D01* X-12577D01* X-12637Y10794D01* X-12706Y10789D01* X-12780Y10785D01* X-12854Y10771D01* X-12919Y10757D01* X-12942Y10743D01* X-12965Y10734D01* X-12969Y10729D01* X-12988Y10716D01* X-13006Y10697D01* X-13034Y10669D01* X-13057Y10632D01* X-13080Y10586D01* X-13094Y10531D01* X-13099Y10471D01* Y10447D01* X-13094Y10424D01* X-13090Y10392D01* X-13080Y10355D01* X-13067Y10313D01* X-13048Y10267D01* X-13020Y10226D01* X-13016Y10221D01* X-13006Y10207D01* X-12988Y10189D01* X-12960Y10166D01* X-12928Y10138D01* X-12891Y10110D01* X-12845Y10087D01* X-12789Y10064D01* X-12780D01* X-12762Y10055D01* X-12725Y10050D01* X-12674Y10041D01* X-12605Y10032D01* X-12521Y10027D01* X-12424Y10018D01* X-12309D01* X-11200D01* Y9403D01* X-12466D01* X-12471D01* X-12480D01* X-12498D01* X-12521D01* X-12577D01* X-12646Y9399D01* X-12720Y9394D01* X-12789Y9390D01* X-12854Y9380D01* X-12882Y9371D01* X-12900Y9366D01* X-12905D01* X-12919Y9362D01* X-12937Y9353D01* X-12956Y9343D01* X-13006Y9311D01* X-13029Y9288D01* X-13048Y9265D01* X-13053Y9260D01* X-13057Y9251D01* X-13067Y9237D01* X-13076Y9219D01* X-13085Y9191D01* X-13090Y9159D01* X-13099Y9122D01* Y9057D01* X-13094Y9029D01* X-13090Y8997D01* X-13080Y8955D01* X-13067Y8914D01* X-13048Y8872D01* X-13020Y8826D01* X-13016Y8821D01* X-13006Y8807D01* X-12988Y8789D01* X-12965Y8766D01* X-12933Y8738D01* X-12896Y8710D01* X-12849Y8687D01* X-12799Y8664D01* X-12794D01* X-12771Y8655D01* X-12734Y8650D01* X-12688Y8641D01* X-12618Y8632D01* X-12540Y8627D01* X-12438Y8618D01* X-12323D01* X-11200D01* Y8004D01* X-13519D01* Y8567D01* X-13201D01* X-13205Y8572D01* X-13214Y8581D01* X-13233Y8600D01* X-13261Y8623D01* X-13288Y8650D01* X-13316Y8683D01* X-13353Y8724D01* X-13385Y8771D01* X-13418Y8821D01* X-13455Y8877D01* X-13515Y8997D01* X-13538Y9066D01* X-13556Y9135D01* X-13565Y9209D01* X-13570Y9288D01* Y9325D01* X-13565Y9366D01* X-13561Y9417D01* X-13547Y9477D01* X-13533Y9542D01* X-13510Y9607D01* X-13478Y9671D01* X-13473Y9681D01* X-13459Y9699D01* X-13441Y9731D01* X-13408Y9768D01* X-13367Y9810D01* X-13321Y9856D01* X-13261Y9902D01* X-13196Y9944D01* X-13205Y9953D01* X-13228Y9972D01* X-13261Y9999D01* X-13302Y10041D01* X-13348Y10092D01* X-13395Y10147D01* X-13441Y10207D01* X-13478Y10272D01* X-13482Y10281D01* X-13491Y10304D01* X-13505Y10341D01* X-13524Y10387D01* X-13542Y10443D01* X-13556Y10508D01* X-13565Y10577D01* X-13570Y10651D01* Y10692D01* X-13565Y10739D01* X-13556Y10799D01* X-13542Y10868D01* X-13524Y10937D01* X-13501Y11011D01* X-13464Y11080D01* X-13459Y11090D01* X-13445Y11108D01* X-13422Y11141D01* X-13390Y11182D01* X-13344Y11224D01* X-13293Y11270D01* X-13233Y11311D01* X-13159Y11348D01* X-13154Y11353D01* X-13131Y11358D01* X-13094Y11367D01* X-13043Y11381D01* X-12979Y11395D01* X-12896Y11404D01* X-12794Y11408D01* X-12678Y11413D01* X-11200D01* Y10799D01* D02* G37* G36* Y6812D02* X-12420D01* X-12424D01* X-12433D01* X-12452D01* X-12480D01* X-12507D01* X-12540D01* X-12614Y6807D01* X-12692Y6802D01* X-12771Y6798D01* X-12835Y6788D01* X-12859Y6779D01* X-12882Y6775D01* X-12886D01* X-12900Y6765D01* X-12914Y6756D01* X-12937Y6747D01* X-12988Y6705D01* X-13016Y6682D01* X-13039Y6650D01* X-13043Y6645D01* X-13048Y6636D01* X-13057Y6613D01* X-13071Y6590D01* X-13080Y6558D01* X-13090Y6521D01* X-13094Y6474D01* X-13099Y6428D01* Y6400D01* X-13094Y6373D01* X-13090Y6336D01* X-13080Y6294D01* X-13067Y6248D01* X-13048Y6202D01* X-13020Y6155D01* X-13016Y6151D01* X-13006Y6137D01* X-12988Y6114D01* X-12965Y6091D01* X-12933Y6058D01* X-12896Y6031D01* X-12849Y6003D01* X-12799Y5980D01* X-12794D01* X-12771Y5971D01* X-12739Y5962D01* X-12688Y5952D01* X-12628Y5943D01* X-12549Y5934D01* X-12461Y5929D01* X-12360Y5925D01* X-11200D01* Y5310D01* X-14397D01* Y5925D01* X-13214D01* X-13219Y5929D01* X-13228Y5938D01* X-13247Y5957D01* X-13270Y5975D01* X-13297Y6008D01* X-13325Y6040D01* X-13358Y6082D01* X-13395Y6123D01* X-13427Y6174D01* X-13459Y6230D01* X-13515Y6350D01* X-13538Y6414D01* X-13556Y6484D01* X-13565Y6558D01* X-13570Y6631D01* Y6668D01* X-13565Y6710D01* X-13561Y6761D01* X-13552Y6821D01* X-13533Y6881D01* X-13515Y6950D01* X-13487Y7015D01* X-13482Y7024D01* X-13473Y7043D01* X-13455Y7075D01* X-13431Y7112D01* X-13404Y7153D01* X-13371Y7195D01* X-13330Y7237D01* X-13288Y7274D01* X-13284Y7278D01* X-13265Y7287D01* X-13242Y7301D01* X-13210Y7320D01* X-13168Y7343D01* X-13122Y7361D01* X-13071Y7380D01* X-13016Y7394D01* X-13011D01* X-12988Y7398D01* X-12951Y7403D01* X-12905Y7412D01* X-12840Y7417D01* X-12762Y7421D01* X-12669Y7426D01* X-12558D01* X-11200D01* Y6812D01* D02* G37* G36* X-11237Y4941D02* X-11232Y4936D01* X-11223Y4908D01* X-11209Y4862D01* X-11195Y4802D01* X-11177Y4733D01* X-11163Y4649D01* X-11154Y4557D01* X-11149Y4460D01* Y4432D01* X-11154Y4400D01* X-11158Y4358D01* X-11163Y4312D01* X-11172Y4261D01* X-11186Y4211D01* X-11205Y4160D01* X-11209Y4155D01* X-11214Y4137D01* X-11228Y4113D01* X-11242Y4086D01* X-11288Y4021D01* X-11315Y3989D01* X-11348Y3961D01* X-11353Y3956D01* X-11366Y3952D01* X-11385Y3943D01* X-11412Y3929D01* X-11445Y3915D01* X-11486Y3901D01* X-11533Y3887D01* X-11584Y3878D01* X-11588D01* X-11607Y3873D01* X-11634D01* X-11681Y3869D01* X-11740Y3864D01* X-11814D01* X-11856Y3859D01* X-11907D01* X-11958D01* X-12018D01* X-13029D01* Y3578D01* X-13519D01* Y3859D01* X-13981D01* X-14342Y4474D01* X-13519D01* Y4894D01* X-13029D01* Y4474D01* X-12092D01* X-12087D01* X-12078D01* X-12064D01* X-12045D01* X-11999D01* X-11944D01* X-11888Y4479D01* X-11833D01* X-11791D01* X-11773Y4483D01* X-11764D01* X-11754Y4488D01* X-11736Y4497D01* X-11713Y4511D01* X-11685Y4538D01* X-11681Y4548D01* X-11671Y4566D01* X-11662Y4599D01* X-11657Y4640D01* Y4659D01* X-11662Y4677D01* X-11667Y4705D01* X-11671Y4742D01* X-11681Y4783D01* X-11694Y4834D01* X-11713Y4890D01* X-11237Y4945D01* Y4941D01* D02* G37* G36* X-11200Y2584D02* X-13519D01* Y3199D01* X-11200D01* Y2584D01* D02* G37* G36* X-13829D02* X-14397D01* Y3199D01* X-13829D01* Y2584D01* D02* G37* G36* X-12919Y2127D02* X-12923Y2122D01* X-12933Y2099D01* X-12951Y2072D01* X-12969Y2035D01* X-12988Y1988D01* X-13006Y1942D01* X-13016Y1891D01* X-13020Y1840D01* Y1822D01* X-13016Y1794D01* X-13011Y1767D01* X-13002Y1734D01* X-12988Y1697D01* X-12969Y1660D01* X-12946Y1623D01* X-12942Y1619D01* X-12933Y1609D01* X-12914Y1591D01* X-12886Y1572D01* X-12854Y1549D01* X-12808Y1526D01* X-12752Y1503D01* X-12688Y1485D01* X-12678D01* X-12664Y1480D01* X-12651Y1476D01* X-12628D01* X-12600Y1471D01* X-12563Y1466D01* X-12521Y1462D01* X-12475Y1457D01* X-12415Y1452D01* X-12355Y1448D01* X-12281D01* X-12202Y1443D01* X-12115Y1438D01* X-12018D01* X-11912D01* X-11200D01* Y824D01* X-13519D01* Y1392D01* X-13191D01* X-13196Y1397D01* X-13224Y1415D01* X-13265Y1443D01* X-13316Y1480D01* X-13367Y1517D01* X-13418Y1563D01* X-13464Y1605D01* X-13496Y1651D01* X-13501Y1656D01* X-13510Y1670D01* X-13519Y1697D01* X-13533Y1730D01* X-13547Y1767D01* X-13561Y1813D01* X-13565Y1859D01* X-13570Y1914D01* Y1951D01* X-13565Y1993D01* X-13556Y2044D01* X-13542Y2108D01* X-13519Y2178D01* X-13491Y2247D01* X-13450Y2321D01* X-12919Y2127D01* D02* G37* G36* X-12276Y367D02* X-12230Y362D01* X-12179Y353D01* X-12119Y344D01* X-12059Y330D01* X-11990Y311D01* X-11921Y288D01* X-11847Y260D01* X-11773Y228D01* X-11699Y186D01* X-11630Y140D01* X-11560Y90D01* X-11491Y29D01* X-11486Y25D01* X-11477Y16D01* X-11459Y-3D01* X-11436Y-31D01* X-11412Y-63D01* X-11385Y-105D01* X-11353Y-151D01* X-11320Y-202D01* X-11288Y-262D01* X-11255Y-326D01* X-11228Y-396D01* X-11205Y-474D01* X-11181Y-553D01* X-11163Y-641D01* X-11154Y-728D01* X-11149Y-825D01* Y-858D01* X-11154Y-881D01* Y-908D01* X-11158Y-941D01* X-11168Y-1019D01* X-11186Y-1116D01* X-11209Y-1218D01* X-11246Y-1324D01* X-11292Y-1435D01* Y-1440D01* X-11297Y-1449D01* X-11306Y-1463D01* X-11320Y-1481D01* X-11353Y-1532D01* X-11399Y-1597D01* X-11459Y-1666D01* X-11533Y-1740D01* X-11616Y-1809D01* X-11713Y-1874D01* X-11717D01* X-11727Y-1879D01* X-11740Y-1888D01* X-11764Y-1897D01* X-11791Y-1906D01* X-11824Y-1920D01* X-11861Y-1934D01* X-11902Y-1948D01* X-11948Y-1962D01* X-11999Y-1976D01* X-12115Y-1999D01* X-12249Y-2017D01* X-12392Y-2022D01* X-12397D01* X-12406D01* X-12424D01* X-12443Y-2017D01* X-12471D01* X-12503Y-2013D01* X-12581Y-2003D01* X-12669Y-1985D01* X-12766Y-1957D01* X-12872Y-1925D01* X-12979Y-1874D01* X-12983D01* X-12993Y-1865D01* X-13006Y-1860D01* X-13025Y-1846D01* X-13076Y-1809D01* X-13140Y-1763D01* X-13210Y-1703D01* X-13284Y-1629D01* X-13353Y-1546D01* X-13418Y-1449D01* Y-1444D01* X-13422Y-1435D01* X-13431Y-1421D01* X-13441Y-1398D01* X-13455Y-1375D01* X-13464Y-1343D01* X-13478Y-1306D01* X-13496Y-1269D01* X-13524Y-1176D01* X-13547Y-1070D01* X-13565Y-955D01* X-13570Y-830D01* Y-779D01* X-13565Y-742D01* X-13561Y-696D01* X-13552Y-645D01* X-13542Y-585D01* X-13529Y-525D01* X-13510Y-456D01* X-13487Y-386D01* X-13459Y-317D01* X-13427Y-243D01* X-13385Y-169D01* X-13339Y-100D01* X-13288Y-31D01* X-13228Y34D01* X-13224Y39D01* X-13214Y48D01* X-13191Y66D01* X-13168Y85D01* X-13131Y113D01* X-13094Y140D01* X-13043Y173D01* X-12993Y205D01* X-12933Y233D01* X-12868Y265D01* X-12794Y293D01* X-12720Y320D01* X-12637Y339D01* X-12554Y357D01* X-12461Y367D01* X-12364Y371D01* X-12360D01* X-12341D01* X-12313D01* X-12276Y367D01* D02* G37* G36* X-11297Y-2493D02* X-11209Y-2498D01* X-11108Y-2507D01* X-11006Y-2516D01* X-10909Y-2535D01* X-10867Y-2544D01* X-10826Y-2558D01* X-10817Y-2562D01* X-10793Y-2572D01* X-10757Y-2585D01* X-10710Y-2609D01* X-10660Y-2636D01* X-10604Y-2669D01* X-10553Y-2706D01* X-10507Y-2752D01* X-10502Y-2756D01* X-10488Y-2775D01* X-10465Y-2803D01* X-10442Y-2835D01* X-10415Y-2881D01* X-10382Y-2937D01* X-10355Y-3001D01* X-10327Y-3075D01* X-10322Y-3084D01* X-10318Y-3112D01* X-10304Y-3154D01* X-10294Y-3214D01* X-10281Y-3292D01* X-10267Y-3380D01* X-10262Y-3482D01* X-10257Y-3593D01* Y-3648D01* X-10262Y-3690D01* Y-3736D01* X-10267Y-3791D01* X-10276Y-3851D01* X-10285Y-3916D01* X-10308Y-4055D01* X-10345Y-4193D01* X-10368Y-4258D01* X-10396Y-4323D01* X-10424Y-4378D01* X-10461Y-4429D01* X-10465Y-4434D01* X-10470Y-4438D01* X-10498Y-4466D01* X-10539Y-4507D01* X-10599Y-4549D01* X-10673Y-4595D01* X-10761Y-4637D01* X-10863Y-4665D01* X-10918Y-4669D01* X-10974Y-4674D01* X-10978D01* X-10997D01* X-11020D01* X-11048Y-4669D01* X-10964Y-3967D01* X-10960D01* X-10946Y-3962D01* X-10923Y-3958D01* X-10900Y-3953D01* X-10844Y-3930D01* X-10817Y-3911D01* X-10798Y-3888D01* X-10793Y-3884D01* X-10789Y-3870D01* X-10775Y-3851D01* X-10766Y-3819D01* X-10752Y-3782D01* X-10738Y-3736D01* X-10733Y-3680D01* X-10729Y-3616D01* Y-3574D01* X-10733Y-3533D01* X-10738Y-3482D01* X-10747Y-3422D01* X-10761Y-3362D01* X-10780Y-3306D01* X-10803Y-3255D01* X-10807Y-3251D01* X-10812Y-3241D01* X-10821Y-3228D01* X-10840Y-3209D01* X-10863Y-3191D01* X-10891Y-3172D01* X-10923Y-3154D01* X-10960Y-3135D01* X-10964D01* X-10974Y-3131D01* X-10992Y-3126D01* X-11024Y-3117D01* X-11061Y-3112D01* X-11108Y-3108D01* X-11168Y-3103D01* X-11237D01* X-11574D01* X-11570Y-3108D01* X-11560Y-3117D01* X-11542Y-3131D01* X-11514Y-3154D01* X-11486Y-3177D01* X-11454Y-3209D01* X-11422Y-3251D01* X-11389Y-3292D01* X-11353Y-3339D01* X-11320Y-3394D01* X-11260Y-3509D01* X-11237Y-3574D01* X-11219Y-3644D01* X-11205Y-3717D01* X-11200Y-3796D01* Y-3814D01* X-11205Y-3842D01* Y-3875D01* X-11214Y-3911D01* X-11223Y-3958D01* X-11232Y-4008D01* X-11251Y-4064D01* X-11269Y-4119D01* X-11297Y-4179D01* X-11329Y-4244D01* X-11366Y-4304D01* X-11412Y-4364D01* X-11463Y-4424D01* X-11523Y-4480D01* X-11593Y-4535D01* X-11597D01* X-11607Y-4544D01* X-11625Y-4554D01* X-11648Y-4567D01* X-11681Y-4586D01* X-11717Y-4604D01* X-11759Y-4623D01* X-11810Y-4641D01* X-11861Y-4660D01* X-11921Y-4678D01* X-11985Y-4697D01* X-12055Y-4715D01* X-12202Y-4738D01* X-12286Y-4743D01* X-12369Y-4748D01* X-12374D01* X-12397D01* X-12424D01* X-12466Y-4743D01* X-12512Y-4738D01* X-12567Y-4734D01* X-12632Y-4725D01* X-12697Y-4711D01* X-12845Y-4678D01* X-12919Y-4655D01* X-12993Y-4632D01* X-13062Y-4600D01* X-13136Y-4563D01* X-13201Y-4521D01* X-13261Y-4470D01* X-13265Y-4466D01* X-13274Y-4457D01* X-13288Y-4443D01* X-13311Y-4420D01* X-13334Y-4392D01* X-13358Y-4360D01* X-13385Y-4323D01* X-13418Y-4276D01* X-13445Y-4230D01* X-13473Y-4175D01* X-13524Y-4059D01* X-13542Y-3990D01* X-13556Y-3921D01* X-13565Y-3847D01* X-13570Y-3773D01* Y-3754D01* X-13565Y-3731D01* Y-3699D01* X-13556Y-3667D01* X-13552Y-3620D01* X-13538Y-3574D01* X-13524Y-3523D01* X-13501Y-3468D01* X-13478Y-3413D01* X-13445Y-3352D01* X-13408Y-3292D01* X-13367Y-3232D01* X-13311Y-3172D01* X-13256Y-3117D01* X-13187Y-3061D01* X-13519D01* Y-2489D01* X-11436D01* X-11431D01* X-11417D01* X-11399D01* X-11371D01* X-11334D01* X-11297Y-2493D01* D02* G37* G36* X-11200Y-5856D02* X-14397D01* Y-5242D01* X-11200D01* Y-5856D01* D02* G37* G36* Y-6891D02* X-11925Y-7169D01* Y-8453D01* X-11200Y-8716D01* Y-9400D01* X-14397Y-8162D01* Y-7478D01* X-11200Y-6194D01* Y-6891D01* D02* G37* G36* X-31773Y32476D02* X-31769D01* X-31755Y32471D01* X-31736Y32462D01* X-31713Y32453D01* X-31681Y32439D01* X-31644Y32425D01* X-31565Y32393D01* X-31478Y32360D01* X-31390Y32323D01* X-31311Y32286D01* X-31279Y32268D01* X-31247Y32254D01* X-31237Y32250D01* X-31214Y32236D01* X-31182Y32212D01* X-31140Y32185D01* X-31094Y32148D01* X-31048Y32106D01* X-31002Y32065D01* X-30965Y32014D01* X-30960Y32009D01* X-30951Y31991D01* X-30937Y31963D01* X-30919Y31921D01* X-30900Y31875D01* X-30886Y31820D01* X-30877Y31760D01* X-30872Y31690D01* Y31672D01* X-30877Y31649D01* Y31617D01* X-30886Y31580D01* X-30896Y31538D01* X-30905Y31492D01* X-30923Y31441D01* X-31288Y31399D01* Y31404D01* X-31284Y31422D01* X-31279Y31446D01* X-31270Y31473D01* X-31256Y31547D01* X-31251Y31621D01* Y31644D01* X-31256Y31667D01* Y31695D01* X-31270Y31764D01* X-31284Y31797D01* X-31297Y31829D01* Y31834D01* X-31307Y31843D01* X-31316Y31857D01* X-31330Y31875D01* X-31367Y31917D01* X-31418Y31954D01* X-31422D01* X-31431Y31963D01* X-31450Y31972D01* X-31478Y31982D01* X-31515Y32000D01* X-31570Y32019D01* X-31635Y32046D01* X-31713Y32074D01* X-31718D01* X-31736Y32083D01* X-31769Y32092D01* X-31810Y32111D01* X-34130Y31233D01* Y31649D01* X-32785Y32134D01* X-32780D01* X-32776Y32139D01* X-32762Y32143D01* X-32739Y32148D01* X-32716Y32157D01* X-32688Y32166D01* X-32623Y32189D01* X-32545Y32217D01* X-32452Y32245D01* X-32355Y32273D01* X-32249Y32300D01* X-32254D01* X-32263Y32305D01* X-32277Y32309D01* X-32295Y32314D01* X-32318Y32319D01* X-32346Y32328D01* X-32415Y32346D01* X-32494Y32370D01* X-32586Y32402D01* X-32679Y32430D01* X-32776Y32467D01* X-34130Y32966D01* Y33358D01* X-31773Y32476D01* D02* G37* G36* X-32905Y30970D02* X-32854Y30965D01* X-32799Y30961D01* X-32734Y30951D01* X-32665Y30937D01* X-32517Y30900D01* X-32438Y30877D01* X-32365Y30850D01* X-32286Y30817D01* X-32217Y30776D01* X-32147Y30729D01* X-32083Y30679D01* X-32078Y30674D01* X-32069Y30665D01* X-32055Y30651D01* X-32032Y30628D01* X-32009Y30595D01* X-31981Y30563D01* X-31953Y30526D01* X-31921Y30480D01* X-31893Y30429D01* X-31861Y30378D01* X-31810Y30254D01* X-31787Y30189D01* X-31773Y30120D01* X-31764Y30046D01* X-31759Y29972D01* Y29953D01* X-31764Y29930D01* Y29902D01* X-31769Y29870D01* X-31778Y29829D01* X-31801Y29736D01* X-31819Y29685D01* X-31843Y29635D01* X-31870Y29579D01* X-31903Y29528D01* X-31944Y29473D01* X-31990Y29422D01* X-32041Y29376D01* X-32101Y29330D01* X-31810D01* Y28965D01* X-35007D01* Y29357D01* X-33866D01* X-33871Y29362D01* X-33880Y29367D01* X-33894Y29381D01* X-33917Y29404D01* X-33940Y29427D01* X-33968Y29454D01* X-33996Y29491D01* X-34023Y29528D01* X-34083Y29621D01* X-34130Y29727D01* X-34153Y29787D01* X-34166Y29852D01* X-34176Y29921D01* X-34180Y29990D01* Y30027D01* X-34176Y30069D01* X-34171Y30120D01* X-34157Y30180D01* X-34143Y30249D01* X-34120Y30323D01* X-34093Y30392D01* X-34088Y30402D01* X-34079Y30425D01* X-34056Y30461D01* X-34028Y30503D01* X-33996Y30554D01* X-33954Y30605D01* X-33903Y30660D01* X-33848Y30706D01* X-33843Y30711D01* X-33820Y30725D01* X-33788Y30748D01* X-33746Y30776D01* X-33691Y30808D01* X-33626Y30840D01* X-33552Y30873D01* X-33473Y30900D01* X-33469D01* X-33464Y30905D01* X-33450Y30910D01* X-33437Y30914D01* X-33390Y30924D01* X-33330Y30937D01* X-33261Y30951D01* X-33182Y30965D01* X-33095Y30970D01* X-33002Y30974D01* X-32998D01* X-32974D01* X-32947D01* X-32905Y30970D01* D02* G37* G36* X-31810Y26742D02* X-32101D01* X-32097Y26738D01* X-32087Y26733D01* X-32069Y26719D01* X-32046Y26701D01* X-32023Y26678D01* X-31995Y26650D01* X-31963Y26618D01* X-31930Y26576D01* X-31898Y26535D01* X-31866Y26488D01* X-31838Y26433D01* X-31815Y26373D01* X-31792Y26313D01* X-31773Y26243D01* X-31764Y26170D01* X-31759Y26091D01* Y26063D01* X-31764Y26045D01* X-31769Y25989D01* X-31778Y25925D01* X-31796Y25846D01* X-31824Y25758D01* X-31861Y25671D01* X-31912Y25583D01* Y25578D01* X-31921Y25574D01* X-31940Y25546D01* X-31977Y25504D01* X-32023Y25453D01* X-32083Y25393D01* X-32157Y25333D01* X-32240Y25273D01* X-32337Y25223D01* X-32342D01* X-32351Y25218D01* X-32365Y25213D01* X-32383Y25204D01* X-32411Y25195D01* X-32443Y25181D01* X-32476Y25172D01* X-32517Y25162D01* X-32610Y25139D01* X-32716Y25116D01* X-32836Y25102D01* X-32965Y25098D01* X-32970D01* X-32979D01* X-32998D01* X-33025D01* X-33053Y25102D01* X-33090D01* X-33173Y25112D01* X-33270Y25125D01* X-33376Y25148D01* X-33487Y25176D01* X-33593Y25213D01* X-33598D01* X-33607Y25218D01* X-33621Y25227D01* X-33640Y25236D01* X-33691Y25264D01* X-33755Y25301D01* X-33825Y25347D01* X-33894Y25407D01* X-33968Y25477D01* X-34028Y25560D01* Y25564D01* X-34032Y25569D01* X-34042Y25583D01* X-34051Y25601D01* X-34074Y25648D01* X-34106Y25712D01* X-34134Y25786D01* X-34157Y25874D01* X-34176Y25971D01* X-34180Y26072D01* Y26109D01* X-34176Y26147D01* X-34171Y26197D01* X-34157Y26257D01* X-34143Y26322D01* X-34120Y26387D01* X-34088Y26447D01* X-34083Y26456D01* X-34074Y26474D01* X-34051Y26502D01* X-34028Y26539D01* X-33996Y26585D01* X-33954Y26627D01* X-33912Y26673D01* X-33862Y26715D01* X-35007D01* Y27107D01* X-31810D01* Y26742D01* D02* G37* G36* X-32868Y24760D02* Y23028D01* X-32864D01* X-32850D01* X-32831Y23033D01* X-32803D01* X-32771Y23037D01* X-32734Y23046D01* X-32651Y23060D01* X-32559Y23088D01* X-32457Y23125D01* X-32365Y23176D01* X-32282Y23241D01* Y23245D01* X-32272Y23250D01* X-32249Y23277D01* X-32217Y23319D01* X-32184Y23374D01* X-32147Y23448D01* X-32115Y23531D01* X-32092Y23624D01* X-32087Y23675D01* X-32083Y23730D01* Y23767D01* X-32087Y23809D01* X-32097Y23860D01* X-32111Y23915D01* X-32129Y23980D01* X-32157Y24040D01* X-32194Y24100D01* X-32198Y24104D01* X-32217Y24127D01* X-32245Y24155D01* X-32282Y24188D01* X-32332Y24225D01* X-32397Y24266D01* X-32471Y24308D01* X-32559Y24345D01* X-32508Y24751D01* X-32503D01* X-32494Y24747D01* X-32476Y24742D01* X-32448Y24733D01* X-32420Y24719D01* X-32383Y24705D01* X-32305Y24668D01* X-32217Y24622D01* X-32124Y24557D01* X-32037Y24483D01* X-31953Y24391D01* Y24386D01* X-31944Y24377D01* X-31935Y24363D01* X-31921Y24345D01* X-31907Y24317D01* X-31893Y24289D01* X-31875Y24252D01* X-31856Y24211D01* X-31838Y24164D01* X-31819Y24118D01* X-31792Y24003D01* X-31769Y23873D01* X-31759Y23730D01* Y23679D01* X-31764Y23647D01* X-31769Y23606D01* X-31778Y23555D01* X-31787Y23499D01* X-31796Y23439D01* X-31833Y23310D01* X-31861Y23241D01* X-31889Y23176D01* X-31926Y23107D01* X-31967Y23042D01* X-32013Y22982D01* X-32069Y22922D01* X-32074Y22917D01* X-32083Y22908D01* X-32101Y22894D01* X-32129Y22875D01* X-32161Y22852D01* X-32198Y22829D01* X-32245Y22802D01* X-32295Y22774D01* X-32355Y22746D01* X-32420Y22718D01* X-32494Y22695D01* X-32572Y22672D01* X-32656Y22654D01* X-32748Y22640D01* X-32845Y22631D01* X-32947Y22626D01* X-32951D01* X-32974D01* X-33002D01* X-33044Y22631D01* X-33095Y22635D01* X-33150Y22640D01* X-33215Y22649D01* X-33279Y22663D01* X-33427Y22700D01* X-33501Y22723D01* X-33580Y22751D01* X-33654Y22788D01* X-33723Y22829D01* X-33792Y22875D01* X-33857Y22926D01* X-33862Y22931D01* X-33871Y22940D01* X-33885Y22959D01* X-33908Y22982D01* X-33931Y23009D01* X-33959Y23046D01* X-33991Y23088D01* X-34019Y23139D01* X-34051Y23190D01* X-34079Y23250D01* X-34106Y23314D01* X-34130Y23384D01* X-34153Y23458D01* X-34166Y23536D01* X-34176Y23619D01* X-34180Y23707D01* Y23753D01* X-34176Y23786D01* X-34171Y23823D01* X-34162Y23869D01* X-34153Y23920D01* X-34139Y23980D01* X-34125Y24035D01* X-34102Y24100D01* X-34079Y24160D01* X-34046Y24225D01* X-34009Y24289D01* X-33968Y24354D01* X-33917Y24414D01* X-33862Y24469D01* X-33857Y24474D01* X-33848Y24483D01* X-33829Y24497D01* X-33801Y24516D01* X-33769Y24539D01* X-33732Y24562D01* X-33686Y24589D01* X-33630Y24617D01* X-33570Y24645D01* X-33506Y24673D01* X-33432Y24696D01* X-33353Y24719D01* X-33266Y24737D01* X-33173Y24751D01* X-33076Y24760D01* X-32970Y24765D01* X-32965D01* X-32947D01* X-32914D01* X-32868Y24760D01* D02* G37* G36* X-31810Y21762D02* X-33215D01* X-33219D01* X-33224D01* X-33256D01* X-33298D01* X-33349Y21757D01* X-33409Y21753D01* X-33469Y21744D01* X-33524Y21730D01* X-33575Y21716D01* X-33580D01* X-33593Y21707D01* X-33617Y21693D01* X-33644Y21679D01* X-33672Y21656D01* X-33704Y21628D01* X-33737Y21591D01* X-33764Y21550D01* X-33769Y21545D01* X-33778Y21531D01* X-33788Y21503D01* X-33801Y21471D01* X-33815Y21434D01* X-33829Y21388D01* X-33834Y21332D01* X-33838Y21277D01* Y21254D01* X-33834Y21235D01* X-33829Y21189D01* X-33820Y21129D01* X-33797Y21065D01* X-33769Y20990D01* X-33732Y20917D01* X-33677Y20847D01* X-33667Y20838D01* X-33644Y20820D01* X-33626Y20806D01* X-33603Y20792D01* X-33575Y20773D01* X-33543Y20760D01* X-33506Y20741D01* X-33460Y20723D01* X-33409Y20709D01* X-33353Y20695D01* X-33293Y20686D01* X-33229Y20676D01* X-33150Y20667D01* X-33072D01* X-31810D01* Y20274D01* X-34130D01* Y20626D01* X-33797D01* X-33801Y20630D01* X-33815Y20639D01* X-33834Y20653D01* X-33857Y20672D01* X-33885Y20699D01* X-33917Y20732D01* X-33954Y20769D01* X-33991Y20815D01* X-34023Y20861D01* X-34060Y20917D01* X-34093Y20977D01* X-34120Y21041D01* X-34143Y21115D01* X-34162Y21189D01* X-34176Y21272D01* X-34180Y21360D01* Y21397D01* X-34176Y21434D01* X-34171Y21485D01* X-34162Y21545D01* X-34148Y21610D01* X-34130Y21679D01* X-34102Y21744D01* X-34097Y21753D01* X-34088Y21771D01* X-34074Y21804D01* X-34051Y21841D01* X-34023Y21887D01* X-33986Y21928D01* X-33949Y21970D01* X-33903Y22007D01* X-33898Y22012D01* X-33880Y22021D01* X-33857Y22035D01* X-33825Y22058D01* X-33778Y22076D01* X-33732Y22095D01* X-33677Y22118D01* X-33617Y22132D01* X-33612D01* X-33593Y22136D01* X-33566Y22141D01* X-33529Y22145D01* X-33473D01* X-33409Y22150D01* X-33330Y22155D01* X-33233D01* X-31810D01* Y21762D01* D02* G37* G36* X-31995Y19674D02* X-31944D01* X-31889Y19669D01* X-31829Y19665D01* X-31704Y19651D01* X-31575Y19632D01* X-31515Y19618D01* X-31459Y19604D01* X-31408Y19586D01* X-31362Y19568D01* X-31357D01* X-31353Y19563D01* X-31325Y19545D01* X-31284Y19521D01* X-31233Y19484D01* X-31177Y19434D01* X-31117Y19374D01* X-31057Y19300D01* X-31006Y19217D01* Y19212D01* X-31002Y19207D01* X-30992Y19193D01* X-30988Y19175D01* X-30974Y19152D01* X-30965Y19124D01* X-30942Y19055D01* X-30914Y18972D01* X-30896Y18870D01* X-30877Y18755D01* X-30872Y18630D01* Y18588D01* X-30877Y18560D01* Y18523D01* X-30882Y18486D01* X-30886Y18440D01* X-30896Y18390D01* X-30919Y18283D01* X-30951Y18172D01* X-30997Y18061D01* X-31062Y17960D01* X-31066Y17955D01* X-31071Y17951D01* X-31099Y17918D01* X-31140Y17881D01* X-31200Y17835D01* X-31279Y17789D01* X-31376Y17747D01* X-31431Y17733D01* X-31491Y17724D01* X-31552Y17715D01* X-31621D01* X-31570Y18098D01* X-31561D01* X-31542Y18103D01* X-31510Y18112D01* X-31468Y18122D01* X-31427Y18140D01* X-31385Y18163D01* X-31344Y18191D01* X-31311Y18228D01* X-31307Y18237D01* X-31293Y18256D01* X-31274Y18288D01* X-31256Y18334D01* X-31233Y18390D01* X-31214Y18459D01* X-31200Y18542D01* X-31196Y18630D01* Y18676D01* X-31200Y18722D01* X-31210Y18787D01* X-31223Y18851D01* X-31242Y18921D01* X-31270Y18990D01* X-31307Y19050D01* X-31311Y19055D01* X-31325Y19073D01* X-31353Y19101D01* X-31385Y19133D01* X-31431Y19166D01* X-31482Y19198D01* X-31542Y19230D01* X-31612Y19253D01* X-31616D01* X-31635Y19258D01* X-31672Y19263D01* X-31718Y19267D01* X-31750Y19272D01* X-31787D01* X-31829Y19276D01* X-31875D01* X-31926D01* X-31986Y19281D01* X-32046D01* X-32115D01* X-32111Y19276D01* X-32101Y19267D01* X-32087Y19253D01* X-32069Y19235D01* X-32046Y19212D01* X-32018Y19180D01* X-31990Y19142D01* X-31963Y19106D01* X-31907Y19009D01* X-31856Y18902D01* X-31838Y18842D01* X-31824Y18778D01* X-31815Y18708D01* X-31810Y18639D01* Y18616D01* X-31815Y18593D01* Y18560D01* X-31819Y18519D01* X-31829Y18473D01* X-31838Y18422D01* X-31852Y18366D01* X-31870Y18306D01* X-31893Y18246D01* X-31921Y18186D01* X-31953Y18122D01* X-31995Y18061D01* X-32041Y18001D01* X-32092Y17946D01* X-32152Y17895D01* X-32157Y17890D01* X-32166Y17886D01* X-32189Y17872D01* X-32212Y17854D01* X-32249Y17835D01* X-32286Y17812D01* X-32332Y17789D01* X-32388Y17766D01* X-32443Y17743D01* X-32508Y17720D01* X-32572Y17696D01* X-32646Y17678D01* X-32803Y17646D01* X-32891Y17641D01* X-32979Y17636D01* X-32984D01* X-32993D01* X-33011D01* X-33035D01* X-33067Y17641D01* X-33099D01* X-33182Y17650D01* X-33275Y17664D01* X-33376Y17687D01* X-33483Y17715D01* X-33589Y17756D01* X-33593D01* X-33603Y17761D01* X-33617Y17770D01* X-33635Y17780D01* X-33686Y17807D01* X-33751Y17844D01* X-33820Y17895D01* X-33889Y17955D01* X-33963Y18024D01* X-34023Y18103D01* Y18108D01* X-34028Y18112D01* X-34037Y18126D01* X-34046Y18145D01* X-34074Y18191D01* X-34102Y18256D01* X-34130Y18334D01* X-34157Y18426D01* X-34176Y18528D01* X-34180Y18639D01* Y18680D01* X-34176Y18708D01* X-34171Y18741D01* X-34162Y18782D01* X-34153Y18828D01* X-34139Y18879D01* X-34120Y18930D01* X-34097Y18985D01* X-34069Y19041D01* X-34037Y19101D01* X-34000Y19156D01* X-33954Y19212D01* X-33903Y19267D01* X-33843Y19318D01* X-34130D01* Y19679D01* X-32124D01* X-32120D01* X-32101D01* X-32074D01* X-32037D01* X-31995Y19674D01* D02* G37* G36* X-31810Y16796D02* X-34130D01* Y17188D01* X-31810D01* Y16796D01* D02* G37* G36* X-34559D02* X-35007D01* Y17188D01* X-34559D01* Y16796D01* D02* G37* G36* X-32420Y16324D02* X-32369Y16315D01* X-32314Y16301D01* X-32254Y16278D01* X-32184Y16250D01* X-32120Y16214D01* X-32111Y16209D01* X-32092Y16190D01* X-32060Y16167D01* X-32023Y16130D01* X-31981Y16080D01* X-31935Y16024D01* X-31893Y15959D01* X-31852Y15881D01* Y15876D01* X-31847Y15872D01* X-31838Y15844D01* X-31824Y15798D01* X-31806Y15738D01* X-31787Y15664D01* X-31773Y15581D01* X-31764Y15493D01* X-31759Y15391D01* Y15349D01* X-31764Y15317D01* Y15280D01* X-31769Y15234D01* X-31773Y15188D01* X-31782Y15137D01* X-31806Y15026D01* X-31838Y14911D01* X-31884Y14800D01* X-31912Y14749D01* X-31944Y14703D01* X-31949Y14698D01* X-31953Y14694D01* X-31981Y14666D01* X-32023Y14624D01* X-32087Y14578D01* X-32166Y14527D01* X-32258Y14476D01* X-32374Y14435D01* X-32503Y14402D01* X-32563Y14791D01* X-32559D01* X-32554D01* X-32526Y14800D01* X-32480Y14809D01* X-32429Y14828D01* X-32374Y14851D01* X-32314Y14878D01* X-32254Y14920D01* X-32203Y14971D01* X-32198Y14980D01* X-32184Y14998D01* X-32166Y15035D01* X-32143Y15082D01* X-32120Y15142D01* X-32101Y15211D01* X-32087Y15294D01* X-32083Y15391D01* Y15437D01* X-32087Y15484D01* X-32097Y15544D01* X-32111Y15608D01* X-32129Y15677D01* X-32152Y15738D01* X-32189Y15793D01* X-32194Y15798D01* X-32208Y15816D01* X-32231Y15835D01* X-32263Y15862D01* X-32300Y15885D01* X-32346Y15909D01* X-32392Y15922D01* X-32448Y15927D01* X-32452D01* X-32471D01* X-32494Y15922D01* X-32526Y15913D01* X-32559Y15899D01* X-32591Y15876D01* X-32628Y15848D01* X-32656Y15807D01* X-32660Y15802D01* X-32665Y15788D01* X-32679Y15765D01* X-32693Y15728D01* X-32711Y15673D01* X-32725Y15641D01* X-32734Y15604D01* X-32748Y15562D01* X-32762Y15516D01* X-32776Y15465D01* X-32790Y15405D01* Y15400D01* X-32794Y15386D01* X-32799Y15363D01* X-32808Y15336D01* X-32817Y15299D01* X-32831Y15257D01* X-32854Y15169D01* X-32887Y15068D01* X-32914Y14971D01* X-32947Y14878D01* X-32965Y14837D01* X-32979Y14804D01* X-32984Y14795D01* X-32993Y14777D01* X-33011Y14749D01* X-33035Y14712D01* X-33067Y14670D01* X-33104Y14629D01* X-33145Y14587D01* X-33196Y14550D01* X-33201Y14546D01* X-33219Y14536D01* X-33252Y14523D01* X-33289Y14509D01* X-33335Y14495D01* X-33390Y14481D01* X-33446Y14472D01* X-33510Y14467D01* X-33520D01* X-33538D01* X-33566Y14472D01* X-33607Y14476D01* X-33649Y14486D01* X-33700Y14495D01* X-33746Y14513D01* X-33797Y14536D01* X-33801Y14541D01* X-33820Y14550D01* X-33843Y14564D01* X-33875Y14587D01* X-33908Y14615D01* X-33949Y14647D01* X-33986Y14684D01* X-34019Y14730D01* X-34023Y14735D01* X-34028Y14749D01* X-34042Y14767D01* X-34056Y14795D01* X-34074Y14832D01* X-34093Y14874D01* X-34111Y14924D01* X-34130Y14980D01* X-34134Y14989D01* X-34139Y15008D01* X-34148Y15040D01* X-34157Y15082D01* X-34166Y15132D01* X-34171Y15188D01* X-34180Y15252D01* Y15363D01* X-34176Y15414D01* X-34171Y15484D01* X-34162Y15557D01* X-34143Y15636D01* X-34125Y15719D01* X-34097Y15798D01* Y15802D01* X-34093Y15807D01* X-34083Y15830D01* X-34065Y15867D01* X-34042Y15913D01* X-34009Y15964D01* X-33972Y16015D01* X-33931Y16061D01* X-33885Y16103D01* X-33880Y16107D01* X-33862Y16116D01* X-33829Y16135D01* X-33792Y16158D01* X-33737Y16181D01* X-33677Y16204D01* X-33607Y16223D01* X-33529Y16241D01* X-33478Y15858D01* X-33487D01* X-33506Y15853D01* X-33538Y15844D01* X-33580Y15830D01* X-33621Y15807D01* X-33667Y15779D01* X-33714Y15747D01* X-33755Y15701D01* X-33760Y15696D01* X-33769Y15677D01* X-33788Y15650D01* X-33806Y15608D01* X-33825Y15562D01* X-33843Y15502D01* X-33852Y15428D01* X-33857Y15349D01* Y15303D01* X-33852Y15257D01* X-33848Y15197D01* X-33834Y15137D01* X-33820Y15072D01* X-33797Y15012D01* X-33764Y14961D01* X-33760Y14957D01* X-33751Y14943D01* X-33732Y14924D01* X-33704Y14906D01* X-33677Y14883D01* X-33640Y14864D01* X-33598Y14851D01* X-33557Y14846D01* X-33552D01* X-33543D01* X-33529Y14851D01* X-33510D01* X-33464Y14864D01* X-33418Y14892D01* X-33413Y14897D01* X-33409Y14901D01* X-33395Y14911D01* X-33381Y14929D01* X-33367Y14948D01* X-33349Y14975D01* X-33335Y15008D01* X-33316Y15045D01* Y15049D01* X-33312Y15058D01* X-33307Y15077D01* X-33293Y15109D01* X-33279Y15156D01* X-33266Y15215D01* X-33252Y15252D01* X-33242Y15294D01* X-33229Y15340D01* X-33215Y15391D01* Y15396D01* X-33210Y15410D01* X-33206Y15433D01* X-33196Y15460D01* X-33187Y15493D01* X-33178Y15534D01* X-33150Y15622D01* X-33122Y15719D01* X-33090Y15816D01* X-33058Y15904D01* X-33044Y15941D01* X-33030Y15973D01* X-33025Y15982D01* X-33016Y16001D01* X-33002Y16029D01* X-32979Y16070D01* X-32951Y16112D01* X-32914Y16153D01* X-32873Y16195D01* X-32827Y16232D01* X-32822Y16237D01* X-32803Y16246D01* X-32776Y16264D01* X-32734Y16283D01* X-32683Y16297D01* X-32628Y16315D01* X-32563Y16324D01* X-32489Y16329D01* X-32480D01* X-32457D01* X-32420Y16324D01* D02* G37* G36* X-32868Y14074D02* Y12342D01* X-32864D01* X-32850D01* X-32831Y12347D01* X-32803D01* X-32771Y12351D01* X-32734Y12360D01* X-32651Y12374D01* X-32559Y12402D01* X-32457Y12439D01* X-32365Y12490D01* X-32282Y12554D01* Y12559D01* X-32272Y12564D01* X-32249Y12591D01* X-32217Y12633D01* X-32184Y12688D01* X-32147Y12762D01* X-32115Y12845D01* X-32092Y12938D01* X-32087Y12989D01* X-32083Y13044D01* Y13081D01* X-32087Y13123D01* X-32097Y13173D01* X-32111Y13229D01* X-32129Y13294D01* X-32157Y13354D01* X-32194Y13414D01* X-32198Y13418D01* X-32217Y13442D01* X-32245Y13469D01* X-32282Y13501D01* X-32332Y13539D01* X-32397Y13580D01* X-32471Y13622D01* X-32559Y13659D01* X-32508Y14065D01* X-32503D01* X-32494Y14061D01* X-32476Y14056D01* X-32448Y14047D01* X-32420Y14033D01* X-32383Y14019D01* X-32305Y13982D01* X-32217Y13936D01* X-32124Y13871D01* X-32037Y13797D01* X-31953Y13705D01* Y13700D01* X-31944Y13691D01* X-31935Y13677D01* X-31921Y13659D01* X-31907Y13631D01* X-31893Y13603D01* X-31875Y13566D01* X-31856Y13525D01* X-31838Y13478D01* X-31819Y13432D01* X-31792Y13317D01* X-31769Y13187D01* X-31759Y13044D01* Y12993D01* X-31764Y12961D01* X-31769Y12919D01* X-31778Y12869D01* X-31787Y12813D01* X-31796Y12753D01* X-31833Y12624D01* X-31861Y12554D01* X-31889Y12490D01* X-31926Y12420D01* X-31967Y12356D01* X-32013Y12296D01* X-32069Y12236D01* X-32074Y12231D01* X-32083Y12222D01* X-32101Y12208D01* X-32129Y12189D01* X-32161Y12166D01* X-32198Y12143D01* X-32245Y12116D01* X-32295Y12088D01* X-32355Y12060D01* X-32420Y12032D01* X-32494Y12009D01* X-32572Y11986D01* X-32656Y11968D01* X-32748Y11954D01* X-32845Y11945D01* X-32947Y11940D01* X-32951D01* X-32974D01* X-33002D01* X-33044Y11945D01* X-33095Y11949D01* X-33150Y11954D01* X-33215Y11963D01* X-33279Y11977D01* X-33427Y12014D01* X-33501Y12037D01* X-33580Y12065D01* X-33654Y12102D01* X-33723Y12143D01* X-33792Y12189D01* X-33857Y12240D01* X-33862Y12245D01* X-33871Y12254D01* X-33885Y12273D01* X-33908Y12296D01* X-33931Y12323D01* X-33959Y12360D01* X-33991Y12402D01* X-34019Y12453D01* X-34051Y12504D01* X-34079Y12564D01* X-34106Y12628D01* X-34130Y12698D01* X-34153Y12772D01* X-34166Y12850D01* X-34176Y12933D01* X-34180Y13021D01* Y13067D01* X-34176Y13100D01* X-34171Y13137D01* X-34162Y13183D01* X-34153Y13234D01* X-34139Y13294D01* X-34125Y13349D01* X-34102Y13414D01* X-34079Y13474D01* X-34046Y13539D01* X-34009Y13603D01* X-33968Y13668D01* X-33917Y13728D01* X-33862Y13783D01* X-33857Y13788D01* X-33848Y13797D01* X-33829Y13811D01* X-33801Y13829D01* X-33769Y13853D01* X-33732Y13876D01* X-33686Y13904D01* X-33630Y13931D01* X-33570Y13959D01* X-33506Y13987D01* X-33432Y14010D01* X-33353Y14033D01* X-33266Y14051D01* X-33173Y14065D01* X-33076Y14074D01* X-32970Y14079D01* X-32965D01* X-32947D01* X-32914D01* X-32868Y14074D01* D02* G37* G36* X-33330Y11538D02* X-33293D01* X-33206Y11533D01* X-33104Y11519D01* X-32998Y11506D01* X-32887Y11483D01* X-32776Y11455D01* X-32771D01* X-32762Y11450D01* X-32748Y11446D01* X-32730Y11441D01* X-32679Y11423D01* X-32614Y11395D01* X-32540Y11367D01* X-32466Y11330D01* X-32388Y11284D01* X-32314Y11238D01* X-32305Y11233D01* X-32282Y11215D01* X-32249Y11187D01* X-32208Y11150D01* X-32161Y11108D01* X-32115Y11057D01* X-32064Y11007D01* X-32023Y10947D01* X-32018Y10937D01* X-32004Y10919D01* X-31986Y10887D01* X-31963Y10840D01* X-31935Y10785D01* X-31912Y10720D01* X-31884Y10646D01* X-31861Y10563D01* Y10554D01* X-31856Y10540D01* X-31852Y10526D01* X-31847Y10480D01* X-31838Y10415D01* X-31829Y10341D01* X-31819Y10254D01* X-31815Y10157D01* X-31810Y10050D01* Y8900D01* X-35007D01* Y10129D01* X-35003Y10212D01* X-34998Y10305D01* X-34989Y10397D01* X-34975Y10489D01* X-34961Y10568D01* Y10572D01* X-34956Y10582D01* Y10595D01* X-34947Y10614D01* X-34933Y10665D01* X-34910Y10729D01* X-34878Y10803D01* X-34836Y10882D01* X-34790Y10960D01* X-34730Y11034D01* X-34725Y11039D01* X-34721Y11044D01* X-34707Y11057D01* X-34693Y11076D01* X-34647Y11122D01* X-34582Y11178D01* X-34504Y11238D01* X-34411Y11302D01* X-34305Y11362D01* X-34185Y11413D01* X-34180D01* X-34171Y11418D01* X-34153Y11427D01* X-34125Y11432D01* X-34093Y11446D01* X-34056Y11455D01* X-34014Y11464D01* X-33963Y11478D01* X-33912Y11492D01* X-33852Y11501D01* X-33723Y11524D01* X-33580Y11538D01* X-33423Y11543D01* X-33418D01* X-33409D01* X-33386D01* X-33362D01* X-33330Y11538D01* D02* G37* %LPC*% G36* X-46749Y-23844D02* X-46804D01* X-46808D01* X-46819D01* X-46834D01* X-46852D01* X-46878Y-23847D01* X-46908D01* X-46974Y-23855D01* X-47045Y-23866D01* X-47119Y-23884D01* X-47189Y-23907D01* X-47218Y-23921D01* X-47248Y-23936D01* X-47256Y-23940D01* X-47270Y-23951D01* X-47293Y-23973D01* X-47318Y-24003D01* X-47344Y-24040D01* X-47366Y-24084D01* X-47381Y-24140D01* X-47389Y-24203D01* Y-24210D01* X-47385Y-24232D01* X-47381Y-24265D01* X-47370Y-24306D01* X-47355Y-24351D01* X-47330Y-24395D01* X-47296Y-24439D01* X-47248Y-24476D01* X-47241Y-24480D01* X-47222Y-24491D01* X-47189Y-24506D01* X-47141Y-24521D01* X-47078Y-24536D01* X-47041Y-24543D01* X-47000Y-24550D01* X-46956Y-24558D01* X-46908Y-24562D01* X-46856Y-24565D01* X-46800D01* X-46797D01* X-46786D01* X-46771D01* X-46749D01* X-46723Y-24562D01* X-46693D01* X-46626Y-24554D01* X-46553Y-24543D01* X-46475Y-24528D01* X-46404Y-24506D01* X-46375Y-24491D01* X-46345Y-24476D01* X-46338Y-24473D01* X-46323Y-24458D01* X-46301Y-24439D01* X-46275Y-24406D01* X-46249Y-24369D01* X-46227Y-24325D01* X-46212Y-24269D01* X-46205Y-24206D01* Y-24199D01* X-46208Y-24177D01* X-46212Y-24143D01* X-46223Y-24103D01* X-46238Y-24062D01* X-46264Y-24014D01* X-46297Y-23973D01* X-46345Y-23936D01* X-46353Y-23933D01* X-46371Y-23921D01* X-46408Y-23907D01* X-46456Y-23888D01* X-46486Y-23881D01* X-46519Y-23873D01* X-46560Y-23866D01* X-46601Y-23858D01* X-46645Y-23851D01* X-46693Y-23847D01* X-46749Y-23844D01* D02* G37* G36* X-47004Y-27788D02* X-47078D01* X-47082D01* X-47100D01* X-47122D01* X-47152Y-27792D01* X-47193D01* X-47233Y-27795D01* X-47281Y-27803D01* X-47330Y-27806D01* X-47437Y-27825D01* X-47537Y-27854D01* X-47585Y-27873D01* X-47629Y-27895D01* X-47670Y-27917D01* X-47703Y-27947D01* X-47707D01* X-47711Y-27954D01* X-47729Y-27977D01* X-47755Y-28010D01* X-47785Y-28058D01* X-47814Y-28121D01* X-47840Y-28191D01* X-47859Y-28276D01* X-47866Y-28321D01* Y-28543D01* X-46253D01* Y-28339D01* X-46260Y-28313D01* X-46268Y-28276D01* X-46279Y-28232D01* X-46297Y-28184D01* X-46323Y-28132D01* X-46356Y-28076D01* X-46401Y-28021D01* X-46453Y-27969D01* X-46519Y-27921D01* X-46601Y-27877D01* X-46645Y-27858D01* X-46697Y-27840D01* X-46749Y-27825D01* X-46804Y-27814D01* X-46867Y-27803D01* X-46934Y-27795D01* X-47004Y-27788D01* D02* G37* G36* X-46829Y-32491D02* X-46928D01* X-46882Y-32531D01* X-46829Y-32491D01* D02* G37* G36* X-46427Y-39928D02* X-47222D01* X-47226D01* X-47230Y-39931D01* X-47248Y-39950D01* X-47278Y-39976D01* X-47307Y-40009D01* X-47337Y-40053D01* X-47366Y-40105D01* X-47385Y-40168D01* X-47392Y-40201D01* Y-40242D01* X-47389Y-40264D01* X-47385Y-40294D01* X-47374Y-40331D01* X-47359Y-40375D01* X-47333Y-40416D01* X-47296Y-40460D01* X-47248Y-40497D01* X-47241Y-40501D01* X-47222Y-40512D01* X-47189Y-40527D01* X-47141Y-40542D01* X-47078Y-40560D01* X-47041Y-40568D01* X-47000Y-40575D01* X-46956Y-40582D01* X-46908Y-40586D01* X-46856Y-40590D01* X-46800D01* X-46793D01* X-46775D01* X-46745Y-40586D01* X-46708D01* X-46660Y-40579D01* X-46612Y-40571D01* X-46556Y-40564D01* X-46501Y-40549D01* X-46445Y-40531D01* X-46390Y-40508D01* X-46342Y-40483D01* X-46294Y-40453D01* X-46257Y-40416D01* X-46227Y-40372D01* X-46208Y-40320D01* X-46201Y-40264D01* Y-40246D01* X-46205Y-40231D01* X-46212Y-40194D01* X-46231Y-40150D01* X-46257Y-40094D01* X-46275Y-40068D01* X-46297Y-40039D01* X-46323Y-40009D01* X-46353Y-39983D01* X-46386Y-39954D01* X-46427Y-39928D01* D02* G37* G36* X36894Y12541D02* X36888D01* X36881Y12535D01* X36862D01* X36836Y12528D01* X36771Y12509D01* X36680Y12496D01* X36674D01* X36654Y12489D01* X36616D01* X36577Y12483D01* X36518Y12476D01* X36460Y12463D01* X36324Y12438D01* X36182Y12405D01* X36039Y12366D01* X35974Y12340D01* X35916Y12314D01* X35864Y12288D01* X35819Y12263D01* X35812Y12256D01* X35799Y12243D01* X35773Y12217D01* X35747Y12185D01* X35721Y12139D01* X35695Y12088D01* X35682Y12029D01* X35676Y11964D01* Y11958D01* Y11938D01* X35682Y11913D01* X35689Y11874D01* X35702Y11835D01* X35721Y11789D01* X35747Y11744D01* X35786Y11705D01* X35793Y11699D01* X35806Y11692D01* X35832Y11673D01* X35864Y11653D01* X35903Y11634D01* X35955Y11621D01* X36013Y11608D01* X36078Y11602D01* X36110D01* X36149Y11608D01* X36194Y11614D01* X36253Y11621D01* X36318Y11640D01* X36382Y11660D01* X36447Y11692D01* X36454Y11699D01* X36480Y11712D01* X36512Y11731D01* X36551Y11764D01* X36590Y11796D01* X36635Y11841D01* X36680Y11887D01* X36713Y11945D01* X36719Y11952D01* X36726Y11977D01* X36745Y12010D01* X36765Y12062D01* X36791Y12126D01* X36816Y12211D01* X36842Y12308D01* X36868Y12418D01* X36894Y12541D01* D02* G37* G36* X13320Y14770D02* X12504D01* X12231Y13487D01* X12691D01* X12763Y13494D01* X12912Y13500D01* X13074Y13507D01* X13236Y13526D01* X13307Y13539D01* X13378Y13546D01* X13437Y13565D01* X13488Y13578D01* X13501Y13584D01* X13527Y13597D01* X13573Y13617D01* X13631Y13649D01* X13689Y13688D01* X13754Y13740D01* X13819Y13798D01* X13877Y13863D01* X13884Y13870D01* X13897Y13895D01* X13923Y13941D01* X13949Y13993D01* X13974Y14058D01* X14000Y14135D01* X14013Y14213D01* X14020Y14304D01* Y14310D01* Y14330D01* X14013Y14362D01* Y14401D01* X13987Y14485D01* X13968Y14530D01* X13942Y14569D01* Y14576D01* X13929Y14589D01* X13890Y14628D01* X13826Y14673D01* X13741Y14718D01* X13735D01* X13715Y14725D01* X13676Y14738D01* X13618Y14744D01* X13547Y14757D01* X13443Y14764D01* X13385D01* X13320Y14770D01* D02* G37* G36* X47457Y13721D02* X47411D01* X47359Y13708D01* X47295Y13695D01* X47217Y13669D01* X47133Y13636D01* X47048Y13584D01* X46964Y13513D01* X46958Y13507D01* X46932Y13474D01* X46893Y13429D01* X46848Y13358D01* X46802Y13273D01* X46750Y13170D01* X46705Y13053D01* X46673Y12911D01* X48053D01* Y12917D01* Y12943D01* Y12969D01* Y12995D01* Y13001D01* Y13008D01* Y13027D01* Y13053D01* X48046Y13118D01* X48033Y13202D01* X48014Y13286D01* X47982Y13377D01* X47943Y13461D01* X47891Y13539D01* X47884Y13546D01* X47858Y13565D01* X47826Y13597D01* X47774Y13630D01* X47716Y13662D01* X47638Y13695D01* X47554Y13714D01* X47457Y13721D01* D02* G37* G36* X24965Y13688D02* X24919D01* X24861Y13682D01* X24796Y13669D01* X24718Y13643D01* X24634Y13610D01* X24543Y13565D01* X24459Y13507D01* X24453Y13500D01* X24420Y13474D01* X24381Y13435D01* X24336Y13377D01* X24278Y13306D01* X24219Y13215D01* X24168Y13111D01* X24116Y12995D01* Y12988D01* X24109Y12982D01* X24103Y12962D01* X24096Y12936D01* X24077Y12872D01* X24057Y12794D01* X24038Y12697D01* X24018Y12593D01* X24006Y12483D01* X23999Y12379D01* Y12373D01* Y12366D01* Y12347D01* Y12321D01* X24012Y12256D01* X24025Y12178D01* X24044Y12088D01* X24077Y11997D01* X24122Y11906D01* X24187Y11822D01* X24193Y11815D01* X24219Y11789D01* X24265Y11757D01* X24317Y11725D01* X24388Y11686D01* X24466Y11653D01* X24556Y11627D01* X24660Y11621D01* X24692D01* X24718Y11627D01* X24790Y11640D01* X24874Y11660D01* X24971Y11699D01* X25068Y11751D01* X25172Y11828D01* X25224Y11874D01* X25269Y11926D01* X25276Y11932D01* X25282Y11945D01* X25302Y11971D01* X25321Y12003D01* X25353Y12049D01* X25379Y12100D01* X25412Y12159D01* X25444Y12224D01* X25477Y12301D01* X25509Y12379D01* X25541Y12470D01* X25567Y12561D01* X25606Y12768D01* X25613Y12878D01* X25619Y12995D01* Y13001D01* Y13008D01* Y13047D01* X25613Y13105D01* X25593Y13176D01* X25574Y13254D01* X25541Y13338D01* X25496Y13416D01* X25431Y13494D01* X25425Y13500D01* X25399Y13526D01* X25360Y13558D01* X25308Y13591D01* X25237Y13630D01* X25159Y13656D01* X25068Y13682D01* X24965Y13688D01* D02* G37* G36* X16806Y13721D02* X16761D01* X16709Y13708D01* X16644Y13695D01* X16567Y13669D01* X16482Y13636D01* X16398Y13584D01* X16314Y13513D01* X16307Y13507D01* X16281Y13474D01* X16242Y13429D01* X16197Y13358D01* X16152Y13273D01* X16100Y13170D01* X16055Y13053D01* X16022Y12911D01* X17402D01* Y12917D01* Y12943D01* Y12969D01* Y12995D01* Y13001D01* Y13008D01* Y13027D01* Y13053D01* X17396Y13118D01* X17383Y13202D01* X17364Y13286D01* X17331Y13377D01* X17292Y13461D01* X17240Y13539D01* X17234Y13546D01* X17208Y13565D01* X17176Y13597D01* X17124Y13630D01* X17065Y13662D01* X16988Y13695D01* X16904Y13714D01* X16806Y13721D01* D02* G37* G36* X3237D02* X3198D01* X3153Y13714D01* X3095Y13695D01* X3023Y13675D01* X2952Y13643D01* X2874Y13597D01* X2796Y13533D01* X2790Y13526D01* X2764Y13500D01* X2732Y13455D01* X2686Y13390D01* X2634Y13312D01* X2583Y13209D01* X2531Y13092D01* X2479Y12956D01* X2472Y12943D01* X2466Y12904D01* X2447Y12852D01* X2434Y12774D01* X2414Y12697D01* X2395Y12606D01* X2388Y12509D01* X2382Y12418D01* Y12411D01* Y12405D01* Y12386D01* Y12360D01* X2388Y12288D01* X2401Y12211D01* X2421Y12120D01* X2453Y12023D01* X2492Y11932D01* X2544Y11854D01* X2550Y11848D01* X2576Y11828D01* X2609Y11796D01* X2660Y11763D01* X2719Y11725D01* X2790Y11699D01* X2874Y11673D01* X2965Y11666D01* X3004D01* X3049Y11673D01* X3108Y11686D01* X3179Y11705D01* X3257Y11738D01* X3334Y11777D01* X3419Y11835D01* X3432Y11841D01* X3458Y11867D01* X3496Y11906D01* X3542Y11964D01* X3600Y12029D01* X3652Y12113D01* X3710Y12217D01* X3756Y12327D01* Y12334D01* X3762Y12340D01* X3768Y12360D01* X3775Y12386D01* X3794Y12444D01* X3814Y12528D01* X3833Y12619D01* X3853Y12729D01* X3866Y12839D01* X3872Y12949D01* Y12956D01* Y12962D01* Y12982D01* Y13008D01* X3859Y13072D01* X3846Y13150D01* X3827Y13241D01* X3788Y13332D01* X3743Y13422D01* X3678Y13507D01* X3671Y13513D01* X3645Y13539D01* X3607Y13571D01* X3555Y13617D01* X3490Y13656D01* X3412Y13688D01* X3328Y13714D01* X3237Y13721D01* D02* G37* G36* X7151Y6933D02* X7106D01* X7060Y6927D01* X6996Y6914D01* X6924Y6888D01* X6847Y6856D01* X6769Y6810D01* X6684Y6752D01* X6678Y6745D01* X6652Y6719D01* X6613Y6674D01* X6568Y6616D01* X6516Y6545D01* X6458Y6454D01* X6406Y6350D01* X6361Y6227D01* Y6221D01* X6354Y6214D01* X6348Y6195D01* X6341Y6169D01* X6322Y6104D01* X6302Y6026D01* X6283Y5929D01* X6263Y5825D01* X6250Y5728D01* X6244Y5624D01* Y5618D01* Y5605D01* Y5585D01* Y5560D01* X6257Y5488D01* X6270Y5404D01* X6289Y5307D01* X6322Y5203D01* X6367Y5113D01* X6432Y5022D01* X6438Y5015D01* X6464Y4989D01* X6503Y4957D01* X6561Y4918D01* X6626Y4879D01* X6697Y4847D01* X6788Y4821D01* X6879Y4814D01* X6918D01* X6957Y4821D01* X7015Y4834D01* X7080Y4853D01* X7151Y4879D01* X7222Y4918D01* X7300Y4970D01* X7307Y4976D01* X7333Y5002D01* X7371Y5041D01* X7423Y5093D01* X7475Y5164D01* X7533Y5255D01* X7592Y5365D01* X7644Y5495D01* Y5501D01* X7650Y5514D01* X7656Y5534D01* X7663Y5560D01* X7689Y5631D01* X7715Y5722D01* X7734Y5825D01* X7760Y5935D01* X7773Y6059D01* X7780Y6175D01* Y6182D01* Y6188D01* Y6208D01* Y6233D01* X7773Y6298D01* X7760Y6383D01* X7734Y6473D01* X7702Y6564D01* X7656Y6655D01* X7598Y6733D01* X7592Y6739D01* X7566Y6765D01* X7527Y6797D01* X7475Y6836D01* X7410Y6869D01* X7339Y6901D01* X7248Y6927D01* X7151Y6933D01* D02* G37* G36* X32553Y7983D02* X31872D01* X31237Y4957D01* X31827D01* X31879Y4964D01* X31989D01* X32112Y4970D01* X32229Y4983D01* X32345Y4996D01* X32397Y5002D01* X32443Y5015D01* X32456Y5022D01* X32481Y5028D01* X32527Y5048D01* X32585Y5067D01* X32650Y5099D01* X32721Y5138D01* X32792Y5190D01* X32864Y5249D01* X32870D01* X32877Y5262D01* X32909Y5294D01* X32961Y5352D01* X33026Y5424D01* X33103Y5521D01* X33181Y5637D01* X33259Y5767D01* X33330Y5909D01* Y5916D01* X33337Y5929D01* X33350Y5955D01* X33363Y5981D01* X33376Y6026D01* X33389Y6072D01* X33408Y6123D01* X33428Y6188D01* X33440Y6253D01* X33460Y6331D01* X33492Y6499D01* X33512Y6687D01* X33518Y6888D01* Y6894D01* Y6908D01* Y6933D01* Y6966D01* X33512Y7005D01* Y7050D01* X33499Y7160D01* X33479Y7277D01* X33453Y7393D01* X33415Y7510D01* X33363Y7607D01* X33356Y7620D01* X33337Y7646D01* X33304Y7685D01* X33259Y7737D01* X33201Y7789D01* X33136Y7841D01* X33058Y7886D01* X32974Y7925D01* X32967D01* X32941Y7931D01* X32903Y7944D01* X32844Y7957D01* X32767Y7964D01* X32669Y7977D01* X32553Y7983D01* D02* G37* G36* X44171Y6933D02* X44126D01* X44074Y6920D01* X44009Y6908D01* X43932Y6882D01* X43847Y6849D01* X43763Y6797D01* X43679Y6726D01* X43672Y6719D01* X43646Y6687D01* X43608Y6642D01* X43562Y6571D01* X43517Y6486D01* X43465Y6383D01* X43420Y6266D01* X43387Y6123D01* X44767D01* Y6130D01* Y6156D01* Y6182D01* Y6208D01* Y6214D01* Y6221D01* Y6240D01* Y6266D01* X44761Y6331D01* X44748Y6415D01* X44729Y6499D01* X44696Y6590D01* X44657Y6674D01* X44605Y6752D01* X44599Y6758D01* X44573Y6778D01* X44541Y6810D01* X44489Y6843D01* X44431Y6875D01* X44353Y6908D01* X44269Y6927D01* X44171Y6933D01* D02* G37* G36* X24122Y6901D02* X24077D01* X24018Y6894D01* X23954Y6882D01* X23876Y6856D01* X23792Y6823D01* X23701Y6778D01* X23617Y6719D01* X23610Y6713D01* X23578Y6687D01* X23539Y6648D01* X23494Y6590D01* X23435Y6519D01* X23377Y6428D01* X23325Y6324D01* X23273Y6208D01* Y6201D01* X23267Y6195D01* X23260Y6175D01* X23254Y6149D01* X23234Y6084D01* X23215Y6007D01* X23196Y5909D01* X23176Y5806D01* X23163Y5696D01* X23157Y5592D01* Y5585D01* Y5579D01* Y5560D01* Y5534D01* X23170Y5469D01* X23183Y5391D01* X23202Y5300D01* X23234Y5210D01* X23280Y5119D01* X23345Y5035D01* X23351Y5028D01* X23377Y5002D01* X23422Y4970D01* X23474Y4938D01* X23546Y4899D01* X23623Y4866D01* X23714Y4840D01* X23818Y4834D01* X23850D01* X23876Y4840D01* X23947Y4853D01* X24032Y4873D01* X24129Y4912D01* X24226Y4964D01* X24330Y5041D01* X24381Y5087D01* X24427Y5138D01* X24433Y5145D01* X24440Y5158D01* X24459Y5184D01* X24479Y5216D01* X24511Y5262D01* X24537Y5313D01* X24569Y5372D01* X24602Y5437D01* X24634Y5514D01* X24667Y5592D01* X24699Y5683D01* X24725Y5773D01* X24764Y5981D01* X24770Y6091D01* X24777Y6208D01* Y6214D01* Y6221D01* Y6259D01* X24770Y6318D01* X24751Y6389D01* X24731Y6467D01* X24699Y6551D01* X24654Y6629D01* X24589Y6707D01* X24582Y6713D01* X24556Y6739D01* X24518Y6771D01* X24466Y6804D01* X24394Y6843D01* X24317Y6869D01* X24226Y6894D01* X24122Y6901D01* D02* G37* G36* X18206Y6901D02* X18161D01* X18102Y6894D01* X18037Y6882D01* X17960Y6856D01* X17876Y6823D01* X17785Y6778D01* X17700Y6719D01* X17694Y6713D01* X17662Y6687D01* X17623Y6648D01* X17577Y6590D01* X17519Y6519D01* X17461Y6428D01* X17409Y6324D01* X17357Y6208D01* Y6201D01* X17351Y6195D01* X17344Y6175D01* X17338Y6149D01* X17318Y6084D01* X17299Y6007D01* X17279Y5909D01* X17260Y5806D01* X17247Y5696D01* X17240Y5592D01* Y5585D01* Y5579D01* Y5560D01* Y5534D01* X17253Y5469D01* X17266Y5391D01* X17286Y5300D01* X17318Y5210D01* X17364Y5119D01* X17428Y5035D01* X17435Y5028D01* X17461Y5002D01* X17506Y4970D01* X17558Y4938D01* X17629Y4899D01* X17707Y4866D01* X17798Y4840D01* X17901Y4834D01* X17934D01* X17960Y4840D01* X18031Y4853D01* X18115Y4873D01* X18212Y4912D01* X18310Y4963D01* X18413Y5041D01* X18465Y5087D01* X18510Y5138D01* X18517Y5145D01* X18523Y5158D01* X18543Y5184D01* X18562Y5216D01* X18595Y5262D01* X18621Y5313D01* X18653Y5372D01* X18686Y5437D01* X18718Y5514D01* X18750Y5592D01* X18783Y5683D01* X18809Y5773D01* X18847Y5981D01* X18854Y6091D01* X18860Y6208D01* Y6214D01* Y6221D01* Y6259D01* X18854Y6318D01* X18835Y6389D01* X18815Y6467D01* X18783Y6551D01* X18737Y6629D01* X18673Y6707D01* X18666Y6713D01* X18640Y6739D01* X18601Y6771D01* X18549Y6804D01* X18478Y6843D01* X18400Y6869D01* X18310Y6894D01* X18206Y6901D01* D02* G37* G36* X3432Y6933D02* X3386D01* X3334Y6920D01* X3270Y6907D01* X3192Y6882D01* X3108Y6849D01* X3023Y6797D01* X2939Y6726D01* X2933Y6719D01* X2907Y6687D01* X2868Y6642D01* X2822Y6571D01* X2777Y6486D01* X2725Y6383D01* X2680Y6266D01* X2647Y6123D01* X4028D01* Y6130D01* Y6156D01* Y6182D01* Y6208D01* Y6214D01* Y6221D01* Y6240D01* Y6266D01* X4021Y6331D01* X4008Y6415D01* X3989Y6499D01* X3956Y6590D01* X3918Y6674D01* X3866Y6752D01* X3859Y6758D01* X3833Y6778D01* X3801Y6810D01* X3749Y6843D01* X3691Y6875D01* X3613Y6907D01* X3529Y6927D01* X3432Y6933D01* D02* G37* G36* X25889Y-1773D02* X25275D01* Y-2341D01* X25889D01* Y-2600D01* Y-1773D01* D02* G37* G36* X20682Y-2600D02* X18566D01* D01* X19897D01* X19814Y-2605D01* X19731Y-2619D01* X19657Y-2637D01* X19583Y-2660D01* X19513Y-2693D01* X19453Y-2725D01* X19393Y-2762D01* X19342Y-2794D01* X19296Y-2831D01* X19255Y-2868D01* X19218Y-2901D01* X19190Y-2933D01* X19167Y-2956D01* X19149Y-2974D01* X19139Y-2988D01* X19135Y-2993D01* Y-2651D01* X18566D01* Y-4970D01* X19181D01* Y-3926D01* Y-3857D01* Y-3792D01* X19185Y-3732D01* X19190Y-3681D01* Y-3630D01* X19195Y-3589D01* X19199Y-3547D01* X19204Y-3515D01* X19213Y-3460D01* X19218Y-3422D01* X19227Y-3399D01* Y-3395D01* X19245Y-3344D01* X19273Y-3293D01* X19301Y-3256D01* X19329Y-3219D01* X19356Y-3196D01* X19379Y-3173D01* X19393Y-3164D01* X19398Y-3159D01* X19449Y-3131D01* X19500Y-3108D01* X19546Y-3094D01* X19592Y-3081D01* X19629Y-3076D01* X19657Y-3071D01* X19684D01* X19731Y-3076D01* X19772Y-3081D01* X19805Y-3090D01* X19837Y-3104D01* X19865Y-3118D01* X19883Y-3127D01* X19892Y-3131D01* X19897Y-3136D01* X19929Y-3159D01* X19952Y-3187D01* X19994Y-3242D01* X20008Y-3270D01* X20017Y-3289D01* X20026Y-3302D01* Y-3307D01* X20036Y-3330D01* X20040Y-3358D01* X20049Y-3427D01* X20059Y-3510D01* X20063Y-3589D01* X20068Y-3667D01* Y-3700D01* Y-3732D01* Y-3755D01* Y-3774D01* Y-3788D01* Y-3792D01* Y-4970D01* X20682D01* Y-3436D01* X20678Y-3358D01* X20673Y-3284D01* X20664Y-3229D01* X20659Y-3182D01* X20650Y-3150D01* X20645Y-3127D01* Y-3122D01* X20631Y-3067D01* X20613Y-3021D01* X20595Y-2974D01* X20572Y-2937D01* X20553Y-2905D01* X20539Y-2882D01* X20530Y-2868D01* X20525Y-2864D01* X20488Y-2822D01* X20447Y-2785D01* X20405Y-2753D01* X20364Y-2725D01* X20327Y-2702D01* X20294Y-2688D01* X20276Y-2679D01* X20267Y-2674D01* X20202Y-2651D01* X20137Y-2633D01* X20077Y-2619D01* X20022Y-2609D01* X19971Y-2605D01* X19929Y-2600D01* X20682D01* D01* D02* G37* G36* X12708Y-1773D02* X11117D01* X11738D01* X11170Y-3959D01* X10597Y-1773D01* X9631D01* Y-4970D01* X10227D01* Y-2457D01* X10856Y-4970D01* X11479D01* X12108Y-2457D01* X12112Y-4970D01* X12708D01* Y-1773D01* D02* G37* G36* X28569Y-2600D02* X26383D01* D01* X27501D01* X27409Y-2605D01* X27321Y-2614D01* X27233Y-2628D01* X27160Y-2651D01* X27086Y-2674D01* X27016Y-2702D01* X26956Y-2730D01* X26901Y-2762D01* X26850Y-2790D01* X26809Y-2822D01* X26772Y-2850D01* X26739Y-2873D01* X26716Y-2896D01* X26698Y-2910D01* X26688Y-2919D01* X26684Y-2924D01* X26633Y-2988D01* X26587Y-3053D01* X26545Y-3122D01* X26508Y-3196D01* X26480Y-3270D01* X26457Y-3344D01* X26420Y-3487D01* X26406Y-3557D01* X26397Y-3617D01* X26393Y-3672D01* X26388Y-3723D01* X26383Y-3760D01* Y-3815D01* X26388Y-3917D01* X26397Y-4019D01* X26411Y-4106D01* X26430Y-4194D01* X26453Y-4273D01* X26480Y-4346D01* X26504Y-4411D01* X26536Y-4471D01* X26564Y-4527D01* X26587Y-4573D01* X26614Y-4610D01* X26638Y-4642D01* X26656Y-4670D01* X26670Y-4688D01* X26679Y-4698D01* X26684Y-4702D01* X26744Y-4758D01* X26804Y-4809D01* X26869Y-4850D01* X26938Y-4887D01* X27003Y-4919D01* X27072Y-4942D01* X27136Y-4966D01* X27201Y-4980D01* X27261Y-4993D01* X27317Y-5003D01* X27367Y-5012D01* X27409Y-5016D01* X27441Y-5021D01* X27492D01* X27575Y-5016D01* X27649Y-5012D01* X27723Y-5003D01* X27793Y-4989D01* X27857Y-4975D01* X27913Y-4956D01* X27968Y-4938D01* X28014Y-4915D01* X28060Y-4896D01* X28097Y-4878D01* X28130Y-4859D01* X28157Y-4845D01* X28176Y-4832D01* X28190Y-4822D01* X28199Y-4813D01* X28204D01* X28250Y-4772D01* X28296Y-4725D01* X28375Y-4624D01* X28439Y-4522D01* X28486Y-4420D01* X28523Y-4328D01* X28536Y-4287D01* X28550Y-4254D01* X28559Y-4226D01* X28564Y-4203D01* X28569Y-4189D01* Y-4975D01* Y-4185D01* X27968Y-4083D01* X27950Y-4166D01* X27922Y-4240D01* X27899Y-4300D01* X27871Y-4346D01* X27843Y-4383D01* X27825Y-4407D01* X27811Y-4420D01* X27806Y-4425D01* X27760Y-4457D01* X27714Y-4481D01* X27668Y-4499D01* X27622Y-4508D01* X27580Y-4518D01* X27548Y-4522D01* X27520D01* X27437Y-4513D01* X27363Y-4494D01* X27303Y-4471D01* X27247Y-4439D01* X27206Y-4407D01* X27178Y-4383D01* X27155Y-4365D01* X27150Y-4356D01* X27127Y-4319D01* X27104Y-4282D01* X27072Y-4194D01* X27044Y-4097D01* X27030Y-4000D01* X27021Y-3908D01* X27016Y-3871D01* Y-3838D01* X27012Y-3811D01* Y-3788D01* Y-3774D01* Y-3769D01* Y-3704D01* X27016Y-3640D01* X27026Y-3584D01* X27035Y-3529D01* X27044Y-3483D01* X27053Y-3441D01* X27081Y-3367D01* X27104Y-3312D01* X27127Y-3275D01* X27141Y-3252D01* X27146Y-3242D01* X27201Y-3187D01* X27261Y-3150D01* X27321Y-3122D01* X27377Y-3099D01* X27432Y-3090D01* X27474Y-3085D01* X27501Y-3081D01* X27511D01* X27571Y-3085D01* X27626Y-3094D01* X27672Y-3108D01* X27714Y-3127D01* X27746Y-3145D01* X27769Y-3159D01* X27783Y-3168D01* X27788Y-3173D01* X27825Y-3210D01* X27857Y-3252D01* X27880Y-3298D01* X27903Y-3339D01* X27917Y-3381D01* X27926Y-3413D01* X27931Y-3432D01* Y-3441D01* X28536Y-3330D01* X28490Y-3201D01* X28435Y-3090D01* X28375Y-2998D01* X28315Y-2919D01* X28259Y-2859D01* X28218Y-2817D01* X28199Y-2803D01* X28185Y-2794D01* X28181Y-2785D01* X28176D01* X28074Y-2725D01* X27964Y-2679D01* X27853Y-2646D01* X27746Y-2623D01* X27696Y-2614D01* X27649Y-2609D01* X27608Y-2605D01* X27571D01* X27543Y-2600D01* X28569D01* Y-4176D01* Y-2600D01* D02* G37* G36* X23288D02* X22184D01* X22101Y-2605D01* X22022Y-2614D01* X21944Y-2633D01* X21874Y-2651D01* X21805Y-2674D01* X21745Y-2702D01* X21685Y-2734D01* X21634Y-2762D01* X21588Y-2794D01* X21546Y-2827D01* X21509Y-2854D01* X21482Y-2877D01* X21459Y-2896D01* X21440Y-2914D01* X21431Y-2924D01* X21426Y-2928D01* X21375Y-2993D01* X21329Y-3062D01* X21288Y-3131D01* X21251Y-3205D01* X21223Y-3284D01* X21200Y-3358D01* X21163Y-3501D01* X21149Y-3570D01* X21140Y-3630D01* X21135Y-3686D01* X21131Y-3732D01* X21126Y-3774D01* Y-3829D01* X21131Y-3917D01* X21135Y-4005D01* X21149Y-4083D01* X21163Y-4157D01* X21177Y-4231D01* X21200Y-4296D01* X21218Y-4356D01* X21241Y-4411D01* X21260Y-4462D01* X21283Y-4504D01* X21301Y-4541D01* X21315Y-4573D01* X21334Y-4596D01* X21343Y-4614D01* X21348Y-4624D01* X21352Y-4628D01* X21412Y-4698D01* X21472Y-4758D01* X21542Y-4809D01* X21616Y-4855D01* X21689Y-4892D01* X21763Y-4924D01* X21837Y-4952D01* X21911Y-4970D01* X21976Y-4989D01* X22041Y-4998D01* X22101Y-5007D01* X22151Y-5016D01* X22193D01* X22221Y-5021D01* X23288D01* Y-4836D01* Y-5021D01* X22249D01* X22382Y-5012D01* X22507Y-4993D01* X22614Y-4966D01* X22706Y-4933D01* X22748Y-4915D01* X22780Y-4901D01* X22812Y-4887D01* X22835Y-4873D01* X22854Y-4859D01* X22872Y-4855D01* X22877Y-4845D01* X22882D01* X22969Y-4772D01* X23048Y-4693D01* X23112Y-4605D01* X23163Y-4522D01* X23205Y-4448D01* X23219Y-4416D01* X23233Y-4388D01* X23242Y-4365D01* X23251Y-4346D01* X23256Y-4337D01* Y-4333D01* X22646Y-4231D01* X22623Y-4291D01* X22600Y-4346D01* X22577Y-4388D01* X22549Y-4425D01* X22530Y-4453D01* X22512Y-4471D01* X22498Y-4481D01* X22493Y-4485D01* X22456Y-4513D01* X22415Y-4531D01* X22373Y-4545D01* X22336Y-4554D01* X22304Y-4559D01* X22276Y-4564D01* X22253D01* X22179Y-4559D01* X22110Y-4541D01* X22045Y-4518D01* X21994Y-4490D01* X21953Y-4462D01* X21925Y-4439D01* X21902Y-4420D01* X21897Y-4416D01* X21851Y-4356D01* X21819Y-4287D01* X21791Y-4213D01* X21773Y-4148D01* X21763Y-4083D01* X21759Y-4037D01* X21754Y-4019D01* Y-4005D01* Y-3995D01* Y-3991D01* X23288D01* Y-4836D01* Y-3991D01* Y-3861D01* X23279Y-3746D01* X23265Y-3635D01* X23246Y-3533D01* X23223Y-3436D01* X23200Y-3353D01* X23173Y-3275D01* X23145Y-3205D01* X23117Y-3145D01* X23089Y-3090D01* X23066Y-3048D01* X23043Y-3011D01* X23025Y-2984D01* X23011Y-2960D01* X23002Y-2951D01* X22997Y-2947D01* X22941Y-2887D01* X22877Y-2831D01* X22812Y-2785D01* X22748Y-2748D01* X22678Y-2711D01* X22609Y-2683D01* X22544Y-2660D01* X22479Y-2642D01* X22420Y-2628D01* X22364Y-2619D01* X22313Y-2609D01* X22272Y-2605D01* X22235Y-2600D01* X23288D01* D02* G37* G36* X25889Y-2646D02* Y-2651D01* X25275D01* Y-4970D01* X25889D01* Y-2646D01* D02* G37* G36* X15369Y-2600D02* X13193D01* D01* X14177D01* X14104Y-2609D01* X14030Y-2614D01* X13965Y-2628D01* X13900Y-2637D01* X13845Y-2651D01* X13794Y-2670D01* X13748Y-2683D01* X13711Y-2697D01* X13674Y-2716D01* X13646Y-2730D01* X13618Y-2739D01* X13600Y-2753D01* X13586Y-2757D01* X13581Y-2767D01* X13577D01* X13498Y-2836D01* X13434Y-2914D01* X13378Y-2998D01* X13332Y-3076D01* X13300Y-3150D01* X13286Y-3182D01* X13276Y-3210D01* X13267Y-3233D01* X13263Y-3252D01* X13258Y-3261D01* Y-3266D01* X13808Y-3367D01* X13831Y-3312D01* X13854Y-3266D01* X13877Y-3224D01* X13905Y-3192D01* X13923Y-3168D01* X13942Y-3155D01* X13951Y-3145D01* X13956Y-3141D01* X13993Y-3118D01* X14034Y-3099D01* X14080Y-3090D01* X14122Y-3081D01* X14159Y-3076D01* X14187Y-3071D01* X14214D01* X14298Y-3076D01* X14367Y-3085D01* X14422Y-3094D01* X14469Y-3108D01* X14501Y-3127D01* X14524Y-3136D01* X14538Y-3145D01* X14542Y-3150D01* X14575Y-3182D01* X14598Y-3219D01* X14612Y-3261D01* X14626Y-3302D01* X14630Y-3344D01* X14635Y-3376D01* Y-3395D01* Y-3404D01* Y-3464D01* X14602Y-3478D01* X14561Y-3492D01* X14473Y-3520D01* X14371Y-3543D01* X14274Y-3566D01* X14182Y-3589D01* X14140Y-3598D01* X14104Y-3603D01* X14076Y-3607D01* X14053Y-3612D01* X14039Y-3617D01* X14034D01* X13923Y-3640D01* X13822Y-3663D01* X13738Y-3686D01* X13669Y-3709D01* X13614Y-3732D01* X13577Y-3746D01* X13554Y-3755D01* X13544Y-3760D01* X13484Y-3792D01* X13434Y-3829D01* X13387Y-3871D01* X13355Y-3908D01* X13323Y-3940D01* X13304Y-3968D01* X13290Y-3986D01* X13286Y-3995D01* X13253Y-4056D01* X13230Y-4116D01* X13216Y-4171D01* X13207Y-4226D01* X13198Y-4273D01* X13193Y-4310D01* Y-4342D01* X13198Y-4397D01* X13203Y-4448D01* X13226Y-4545D01* X13258Y-4628D01* X13295Y-4698D01* X13332Y-4753D01* X13364Y-4795D01* X13387Y-4822D01* X13397Y-4827D01* Y-4832D01* X13480Y-4896D01* X13572Y-4942D01* X13665Y-4975D01* X13757Y-4998D01* X13836Y-5012D01* X13872Y-5016D01* X13900D01* X13928Y-5021D01* X13960D01* X14034Y-5016D01* X14108Y-5007D01* X14173Y-4998D01* X14228Y-4984D01* X14274Y-4970D01* X14311Y-4956D01* X14334Y-4952D01* X14344Y-4947D01* X14408Y-4915D01* X14473Y-4882D01* X14528Y-4841D01* X14579Y-4804D01* X14621Y-4772D01* X14653Y-4744D01* X14672Y-4725D01* X14681Y-4721D01* X14686Y-4739D01* X14695Y-4762D01* X14699Y-4781D01* X14704Y-4786D01* Y-4790D01* X14718Y-4832D01* X14727Y-4869D01* X14736Y-4901D01* X14746Y-4924D01* X14755Y-4942D01* X14760Y-4961D01* X14764Y-4966D01* Y-4970D01* X15369D01* X15342Y-4910D01* X15318Y-4855D01* X15300Y-4804D01* X15282Y-4758D01* X15272Y-4721D01* X15263Y-4688D01* X15258Y-4670D01* Y-4665D01* X15249Y-4605D01* X15245Y-4531D01* X15235Y-4457D01* Y-4383D01* X15231Y-4319D01* Y-4263D01* Y-4240D01* Y-4226D01* Y-4217D01* Y-4213D01* X15240Y-3497D01* Y-3422D01* X15235Y-3358D01* X15231Y-3298D01* X15226Y-3242D01* X15222Y-3192D01* X15212Y-3145D01* X15208Y-3104D01* X15198Y-3071D01* X15189Y-3039D01* X15184Y-3016D01* X15171Y-2974D01* X15161Y-2956D01* X15157Y-2947D01* X15120Y-2896D01* X15078Y-2845D01* X15032Y-2803D01* X14981Y-2767D01* X14940Y-2739D01* X14903Y-2720D01* X14880Y-2706D01* X14875Y-2702D01* X14870D01* X14829Y-2683D01* X14787Y-2670D01* X14690Y-2642D01* X14589Y-2623D01* X14492Y-2614D01* X14399Y-2605D01* X14362D01* X14330Y-2600D01* X15369D01* D01* D02* G37* G36* X24905Y-1829D02* X23538D01* X24434D01* X23819Y-2189D01* Y-2651D01* X23538D01* Y-3141D01* X23819D01* Y-4152D01* Y-4213D01* Y-4263D01* Y-4314D01* X23824Y-4356D01* Y-4430D01* X23829Y-4490D01* X23833Y-4536D01* Y-4564D01* X23838Y-4582D01* Y-4587D01* X23847Y-4638D01* X23861Y-4684D01* X23875Y-4725D01* X23889Y-4758D01* X23902Y-4786D01* X23912Y-4804D01* X23916Y-4818D01* X23921Y-4822D01* X23949Y-4855D01* X23981Y-4882D01* X24046Y-4929D01* X24073Y-4942D01* X24096Y-4956D01* X24115Y-4961D01* X24120Y-4966D01* X24170Y-4984D01* X24221Y-4998D01* X24272Y-5007D01* X24318Y-5012D01* X24360Y-5016D01* X24392Y-5021D01* X24420D01* X24517Y-5016D01* X24609Y-5007D01* X24692Y-4993D01* X24762Y-4975D01* X24822Y-4961D01* X24868Y-4947D01* X24896Y-4938D01* X24900Y-4933D01* X24905D01* X24850Y-4457D01* X24794Y-4476D01* X24743Y-4490D01* X24702Y-4499D01* X24665Y-4504D01* X24637Y-4508D01* X24619Y-4513D01* X24600D01* X24558Y-4508D01* X24526Y-4499D01* X24508Y-4490D01* X24498Y-4485D01* X24471Y-4457D01* X24457Y-4434D01* X24448Y-4416D01* X24443Y-4407D01* Y-4397D01* X24438Y-4379D01* Y-4337D01* Y-4282D01* X24434Y-4226D01* Y-4171D01* Y-4125D01* Y-4106D01* Y-4092D01* Y-4083D01* Y-4079D01* Y-3141D01* X24854D01* Y-2651D01* X24434D01* Y-1829D01* X24905D01* D01* D02* G37* G36* X23538Y-3141D02* D01* Y-5021D01* Y-3141D01* D02* G37* G36* X17966Y-2600D02* X15707D01* X16681D01* X16608Y-2605D01* X16534Y-2614D01* X16464Y-2628D01* X16395Y-2646D01* X16280Y-2697D01* X16224Y-2725D01* X16178Y-2753D01* X16132Y-2785D01* X16095Y-2813D01* X16062Y-2836D01* X16035Y-2859D01* X16012Y-2882D01* X15998Y-2896D01* X15988Y-2905D01* X15984Y-2910D01* X15933Y-2970D01* X15891Y-3035D01* X15854Y-3108D01* X15822Y-3178D01* X15799Y-3252D01* X15776Y-3325D01* X15744Y-3473D01* X15730Y-3538D01* X15721Y-3603D01* X15716Y-3658D01* X15711Y-3704D01* X15707Y-3746D01* Y-3801D01* X15711Y-3885D01* X15716Y-3968D01* X15739Y-4116D01* X15757Y-4185D01* X15776Y-4250D01* X15794Y-4310D01* X15813Y-4360D01* X15831Y-4411D01* X15850Y-4453D01* X15868Y-4490D01* X15887Y-4522D01* X15901Y-4545D01* X15910Y-4564D01* X15919Y-4573D01* Y-4578D01* X15975Y-4647D01* X16030Y-4707D01* X16090Y-4758D01* X16150Y-4804D01* X16210Y-4841D01* X16275Y-4873D01* X16335Y-4901D01* X16390Y-4919D01* X16446Y-4938D01* X16497Y-4947D01* X16543Y-4956D01* X16580Y-4966D01* X16612D01* X16640Y-4970D01* X16658D01* X16737Y-4966D01* X16811Y-4952D01* X16880Y-4933D01* X16945Y-4910D01* X17060Y-4850D01* X17116Y-4818D01* X17162Y-4781D01* X17203Y-4749D01* X17245Y-4716D01* X17277Y-4684D01* X17300Y-4656D01* X17324Y-4628D01* X17337Y-4610D01* X17347Y-4601D01* X17351Y-4596D01* Y-4933D01* Y-5003D01* X17347Y-5063D01* X17342Y-5109D01* X17337Y-5146D01* X17328Y-5178D01* X17324Y-5197D01* X17319Y-5206D01* Y-5210D01* X17300Y-5247D01* X17282Y-5280D01* X17264Y-5308D01* X17245Y-5331D01* X17227Y-5349D01* X17213Y-5358D01* X17203Y-5363D01* X17199Y-5368D01* X17148Y-5391D01* X17093Y-5409D01* X17033Y-5423D01* X16973Y-5432D01* X16922Y-5437D01* X16880Y-5441D01* X16838D01* X16774Y-5437D01* X16718Y-5432D01* X16672Y-5418D01* X16635Y-5404D01* X16603Y-5395D01* X16584Y-5381D01* X16571Y-5377D01* X16566Y-5372D01* X16543Y-5354D01* X16524Y-5326D01* X16501Y-5271D01* X16497Y-5247D01* X16492Y-5224D01* X16487Y-5210D01* Y-5206D01* X15785Y-5123D01* X15780Y-5150D01* Y-5173D01* Y-5192D01* Y-5197D01* X15785Y-5252D01* X15790Y-5308D01* X15818Y-5409D01* X15859Y-5497D01* X15905Y-5571D01* X15947Y-5631D01* X15988Y-5672D01* X16016Y-5700D01* X16021Y-5705D01* X16025Y-5709D01* X16076Y-5746D01* X16132Y-5774D01* X16196Y-5802D01* X16261Y-5825D01* X16400Y-5862D01* X16538Y-5885D01* X16603Y-5894D01* X16663Y-5903D01* X16718Y-5908D01* X16765D01* X16806Y-5913D01* X15707D01* X17966D01* X16862D01* X16973Y-5908D01* X17074Y-5903D01* X17162Y-5890D01* X17241Y-5876D01* X17300Y-5866D01* X17342Y-5853D01* X17370Y-5848D01* X17379Y-5843D01* X17453Y-5816D01* X17518Y-5788D01* X17573Y-5756D01* X17619Y-5728D01* X17652Y-5705D01* X17679Y-5682D01* X17698Y-5668D01* X17702Y-5663D01* X17749Y-5617D01* X17786Y-5566D01* X17818Y-5511D01* X17846Y-5460D01* X17869Y-5414D01* X17883Y-5377D01* X17892Y-5354D01* X17897Y-5345D01* X17910Y-5303D01* X17920Y-5261D01* X17938Y-5164D01* X17947Y-5063D01* X17956Y-4961D01* X17961Y-4873D01* X17966Y-4836D01* Y-2651D01* D01* X17393D01* Y-2984D01* X17337Y-2914D01* X17282Y-2859D01* X17222Y-2803D01* X17162Y-2762D01* X17102Y-2725D01* X17042Y-2693D01* X16986Y-2670D01* X16931Y-2646D01* X16880Y-2633D01* X16834Y-2619D01* X16788Y-2614D01* X16755Y-2605D01* X16723D01* X16700Y-2600D01* X17966D01* D02* G37* G36* X23344Y-6552D02* X21080D01* D01* X22729D01* Y-7702D01* X22674Y-7647D01* X22618Y-7596D01* X22563Y-7555D01* X22503Y-7513D01* X22447Y-7485D01* X22392Y-7458D01* X22336Y-7435D01* X22286Y-7421D01* X22235Y-7407D01* X22193Y-7398D01* X22151Y-7388D01* X22119Y-7384D01* X22092Y-7379D01* X22054D01* X21976Y-7384D01* X21902Y-7393D01* X21833Y-7407D01* X21763Y-7425D01* X21648Y-7476D01* X21592Y-7504D01* X21546Y-7532D01* X21500Y-7564D01* X21463Y-7592D01* X21431Y-7615D01* X21403Y-7638D01* X21380Y-7661D01* X21366Y-7675D01* X21357Y-7684D01* X21352Y-7689D01* X21306Y-7749D01* X21264Y-7813D01* X21227Y-7883D01* X21195Y-7957D01* X21167Y-8031D01* X21144Y-8105D01* X21112Y-8252D01* X21103Y-8317D01* X21093Y-8382D01* X21089Y-8437D01* X21084Y-8488D01* X21080Y-8529D01* Y-8511D01* Y-8585D01* X21084Y-8691D01* X21093Y-8788D01* X21107Y-8881D01* X21126Y-8968D01* X21144Y-9047D01* X21167Y-9121D01* X21195Y-9185D01* X21223Y-9246D01* X21246Y-9301D01* X21274Y-9347D01* X21297Y-9389D01* X21320Y-9421D01* X21334Y-9449D01* X21348Y-9467D01* X21357Y-9477D01* X21362Y-9481D01* X21417Y-9537D01* X21472Y-9588D01* X21532Y-9629D01* X21588Y-9666D01* X21648Y-9698D01* X21703Y-9721D01* X21759Y-9745D01* X21810Y-9758D01* X21860Y-9772D01* X21907Y-9781D01* X21944Y-9791D01* X21981Y-9795D01* X22008Y-9800D01* X22045D01* X22119Y-9795D01* X22188Y-9786D01* X22258Y-9772D01* X22318Y-9754D01* X22364Y-9735D01* X22406Y-9721D01* X22429Y-9712D01* X22438Y-9708D01* X22507Y-9666D01* X22572Y-9620D01* X22632Y-9569D01* X22678Y-9523D01* X22720Y-9481D01* X22752Y-9444D01* X22771Y-9421D01* X22775Y-9412D01* Y-9749D01* X23344D01* Y-9777D01* Y-6552D01* D02* G37* G36* X27903Y-7379D02* X26406D01* D01* X27497D01* X27441Y-7384D01* X27395Y-7388D01* X27349Y-7402D01* X27312Y-7416D01* X27280Y-7430D01* X27252Y-7439D01* X27238Y-7448D01* X27233Y-7453D01* X27187Y-7485D01* X27146Y-7532D01* X27099Y-7582D01* X27063Y-7633D01* X27026Y-7684D01* X26998Y-7726D01* X26979Y-7753D01* X26975Y-7758D01* Y-7430D01* X26406D01* Y-9749D01* X27021D01* Y-9038D01* Y-8931D01* Y-8834D01* X27026Y-8747D01* X27030Y-8668D01* Y-8594D01* X27035Y-8534D01* X27040Y-8474D01* X27044Y-8428D01* X27049Y-8386D01* X27053Y-8349D01* X27058Y-8322D01* Y-8298D01* X27063Y-8285D01* X27067Y-8271D01* Y-8262D01* X27086Y-8197D01* X27109Y-8141D01* X27132Y-8095D01* X27155Y-8063D01* X27174Y-8035D01* X27192Y-8017D01* X27201Y-8007D01* X27206Y-8003D01* X27243Y-7980D01* X27280Y-7961D01* X27317Y-7947D01* X27349Y-7938D01* X27377Y-7933D01* X27404Y-7929D01* X27423D01* X27474Y-7933D01* X27525Y-7943D01* X27571Y-7961D01* X27617Y-7980D01* X27654Y-7998D01* X27682Y-8017D01* X27705Y-8026D01* X27709Y-8031D01* X27903Y-7499D01* X27830Y-7458D01* X27760Y-7430D01* X27691Y-7407D01* X27626Y-7393D01* X27575Y-7384D01* X27534Y-7379D01* X27903D01* D01* D02* G37* G36* X15379D02* X13263D01* X14593D01* X14510Y-7384D01* X14427Y-7398D01* X14353Y-7416D01* X14279Y-7439D01* X14210Y-7472D01* X14150Y-7504D01* X14090Y-7541D01* X14039Y-7573D01* X13993Y-7610D01* X13951Y-7647D01* X13914Y-7679D01* X13886Y-7712D01* X13863Y-7735D01* X13845Y-7753D01* X13836Y-7767D01* X13831Y-7772D01* Y-7430D01* X13263D01* Y-9749D01* X13877D01* Y-8705D01* Y-8636D01* Y-8571D01* X13882Y-8511D01* X13886Y-8460D01* Y-8409D01* X13891Y-8368D01* X13896Y-8326D01* X13900Y-8294D01* X13909Y-8238D01* X13914Y-8202D01* X13923Y-8178D01* Y-8174D01* X13942Y-8123D01* X13970Y-8072D01* X13997Y-8035D01* X14025Y-7998D01* X14053Y-7975D01* X14076Y-7952D01* X14090Y-7943D01* X14094Y-7938D01* X14145Y-7910D01* X14196Y-7887D01* X14242Y-7874D01* X14288Y-7860D01* X14325Y-7855D01* X14353Y-7850D01* X14381D01* X14427Y-7855D01* X14469Y-7860D01* X14501Y-7869D01* X14533Y-7883D01* X14561Y-7897D01* X14579Y-7906D01* X14589Y-7910D01* X14593Y-7915D01* X14626Y-7938D01* X14649Y-7966D01* X14690Y-8021D01* X14704Y-8049D01* X14713Y-8067D01* X14723Y-8081D01* Y-8086D01* X14732Y-8109D01* X14736Y-8137D01* X14746Y-8206D01* X14755Y-8289D01* X14760Y-8368D01* X14764Y-8446D01* Y-8479D01* Y-8511D01* Y-8534D01* Y-8553D01* Y-8567D01* Y-8571D01* Y-9749D01* X15379D01* Y-8215D01* X15374Y-8137D01* X15369Y-8063D01* X15360Y-8007D01* X15356Y-7961D01* X15346Y-7929D01* X15342Y-7906D01* Y-7901D01* X15328Y-7846D01* X15309Y-7800D01* X15291Y-7753D01* X15268Y-7716D01* X15249Y-7684D01* X15235Y-7661D01* X15226Y-7647D01* X15222Y-7643D01* X15184Y-7601D01* X15143Y-7564D01* X15101Y-7532D01* X15060Y-7504D01* X15023Y-7481D01* X14990Y-7467D01* X14972Y-7458D01* X14963Y-7453D01* X14898Y-7430D01* X14833Y-7412D01* X14773Y-7398D01* X14718Y-7388D01* X14667Y-7384D01* X14626Y-7379D01* X15379D01* D01* D02* G37* G36* X20738D02* Y-8585D01* X20733Y-8488D01* X20724Y-8395D01* X20705Y-8312D01* X20687Y-8229D01* X20659Y-8155D01* X20631Y-8081D01* X20599Y-8017D01* X20572Y-7957D01* X20539Y-7906D01* X20507Y-7855D01* X20479Y-7818D01* X20451Y-7781D01* X20433Y-7758D01* X20414Y-7735D01* X20405Y-7726D01* X20401Y-7721D01* X20336Y-7661D01* X20267Y-7610D01* X20197Y-7564D01* X20123Y-7522D01* X20049Y-7490D01* X19980Y-7462D01* X19911Y-7439D01* X19841Y-7421D01* X19782Y-7407D01* X19721Y-7398D01* X19671Y-7388D01* X19624Y-7384D01* X19587Y-7379D01* X20738D01* X18345D01* X19537D01* X19412Y-7384D01* X19296Y-7402D01* X19190Y-7425D01* X19098Y-7453D01* X19061Y-7472D01* X19024Y-7485D01* X18991Y-7495D01* X18968Y-7508D01* X18945Y-7518D01* X18931Y-7527D01* X18922Y-7532D01* X18917D01* X18821Y-7596D01* X18737Y-7666D01* X18663Y-7739D01* X18603Y-7809D01* X18557Y-7874D01* X18520Y-7924D01* X18506Y-7943D01* X18502Y-7957D01* X18493Y-7966D01* Y-7970D01* X18442Y-8077D01* X18409Y-8183D01* X18382Y-8280D01* X18363Y-8368D01* X18354Y-8446D01* X18349Y-8479D01* Y-8506D01* X18345Y-8525D01* D01* Y-9800D01* Y-8557D01* X18349Y-8700D01* X18368Y-8834D01* X18391Y-8950D01* X18405Y-9001D01* X18418Y-9047D01* X18432Y-9088D01* X18446Y-9126D01* X18460Y-9158D01* X18469Y-9185D01* X18479Y-9209D01* X18488Y-9223D01* X18493Y-9232D01* Y-9236D01* X18557Y-9333D01* X18626Y-9416D01* X18700Y-9490D01* X18770Y-9550D01* X18834Y-9597D01* X18885Y-9629D01* X18904Y-9643D01* X18917Y-9652D01* X18927Y-9657D01* X18931D01* X19042Y-9703D01* X19149Y-9740D01* X19250Y-9763D01* X19347Y-9781D01* X19426Y-9791D01* X19458Y-9795D01* X19486D01* X19509Y-9800D01* X18345D01* X19541D01* X19638Y-9795D01* X19726Y-9786D01* X19814Y-9768D01* X19892Y-9745D01* X19971Y-9721D01* X20040Y-9694D01* X20105Y-9661D01* X20165Y-9629D01* X20216Y-9597D01* X20262Y-9564D01* X20303Y-9537D01* X20336Y-9514D01* X20364Y-9490D01* X20382Y-9472D01* X20391Y-9463D01* X20396Y-9458D01* X20456Y-9389D01* X20507Y-9319D01* X20553Y-9250D01* X20595Y-9176D01* X20627Y-9102D01* X20655Y-9029D01* X20678Y-8959D01* X20696Y-8890D01* X20710Y-8830D01* X20719Y-8770D01* X20729Y-8719D01* X20733Y-8673D01* X20738Y-8636D01* Y-9490D01* Y-7379D01* D02* G37* G36* X25931D02* X24826D01* X24743Y-7384D01* X24665Y-7393D01* X24586Y-7412D01* X24517Y-7430D01* X24448Y-7453D01* X24388Y-7481D01* X24328Y-7513D01* X24277Y-7541D01* X24230Y-7573D01* X24189Y-7605D01* X24152Y-7633D01* X24124Y-7656D01* X24101Y-7675D01* X24083Y-7693D01* X24073Y-7702D01* X24069Y-7707D01* X24018Y-7772D01* X23972Y-7841D01* X23930Y-7910D01* X23893Y-7984D01* X23866Y-8063D01* X23842Y-8137D01* X23806Y-8280D01* X23792Y-8349D01* X23782Y-8409D01* X23778Y-8465D01* X23773Y-8511D01* X23768Y-8553D01* Y-8608D01* X23773Y-8696D01* X23778Y-8784D01* X23792Y-8862D01* X23806Y-8936D01* X23819Y-9010D01* X23842Y-9075D01* X23861Y-9135D01* X23884Y-9190D01* X23902Y-9241D01* X23926Y-9283D01* X23944Y-9319D01* X23958Y-9352D01* X23976Y-9375D01* X23986Y-9393D01* X23990Y-9403D01* X23995Y-9407D01* X24055Y-9477D01* X24115Y-9537D01* X24184Y-9588D01* X24258Y-9634D01* X24332Y-9671D01* X24406Y-9703D01* X24480Y-9731D01* X24554Y-9749D01* X24619Y-9768D01* X24683Y-9777D01* X24743Y-9786D01* X24794Y-9795D01* X24836D01* X24863Y-9800D01* X25931D01* Y-9121D01* Y-9800D01* X24891D01* X25025Y-9791D01* X25150Y-9772D01* X25256Y-9745D01* X25349Y-9712D01* X25390Y-9694D01* X25422Y-9680D01* X25455Y-9666D01* X25478Y-9652D01* X25496Y-9638D01* X25515Y-9634D01* X25519Y-9624D01* X25524D01* X25612Y-9550D01* X25690Y-9472D01* X25755Y-9384D01* X25806Y-9301D01* X25848Y-9227D01* X25861Y-9195D01* X25875Y-9167D01* X25885Y-9144D01* X25894Y-9126D01* X25898Y-9116D01* Y-9112D01* X25289Y-9010D01* X25265Y-9070D01* X25242Y-9126D01* X25219Y-9167D01* X25192Y-9204D01* X25173Y-9232D01* X25155Y-9250D01* X25141Y-9260D01* X25136Y-9264D01* X25099Y-9292D01* X25058Y-9310D01* X25016Y-9324D01* X24979Y-9333D01* X24947Y-9338D01* X24919Y-9343D01* X24896D01* X24822Y-9338D01* X24753Y-9319D01* X24688Y-9296D01* X24637Y-9269D01* X24596Y-9241D01* X24568Y-9218D01* X24545Y-9199D01* X24540Y-9195D01* X24494Y-9135D01* X24462Y-9065D01* X24434Y-8991D01* X24415Y-8927D01* X24406Y-8862D01* X24401Y-8816D01* X24397Y-8798D01* Y-8784D01* Y-8774D01* Y-8770D01* X25931D01* Y-9121D01* Y-8770D01* Y-8640D01* X25921Y-8525D01* X25908Y-8414D01* X25889Y-8312D01* X25866Y-8215D01* X25843Y-8132D01* X25815Y-8054D01* X25787Y-7984D01* X25760Y-7924D01* X25732Y-7869D01* X25709Y-7827D01* X25686Y-7790D01* X25667Y-7763D01* X25653Y-7739D01* X25644Y-7730D01* X25640Y-7726D01* X25584Y-7666D01* X25519Y-7610D01* X25455Y-7564D01* X25390Y-7527D01* X25321Y-7490D01* X25251Y-7462D01* X25187Y-7439D01* X25122Y-7421D01* X25062Y-7407D01* X25007Y-7398D01* X24956Y-7388D01* X24914Y-7384D01* X24877Y-7379D01* X25931D01* D02* G37* G36* X12727Y-6552D02* X10297D01* Y-9749D01* X12727D01* Y-6552D01* D02* G37* G36* X18049Y-7379D02* X15864D01* D01* X16982D01* X16889Y-7384D01* X16802Y-7393D01* X16714Y-7407D01* X16640Y-7430D01* X16566Y-7453D01* X16497Y-7481D01* X16437Y-7508D01* X16381Y-7541D01* X16330Y-7569D01* X16289Y-7601D01* X16252Y-7629D01* X16219Y-7652D01* X16196Y-7675D01* X16178Y-7689D01* X16169Y-7698D01* X16164Y-7702D01* X16113Y-7767D01* X16067Y-7832D01* X16025Y-7901D01* X15988Y-7975D01* X15961Y-8049D01* X15938Y-8123D01* X15901Y-8266D01* X15887Y-8336D01* X15878Y-8395D01* X15873Y-8451D01* X15868Y-8502D01* X15864Y-8539D01* Y-8594D01* X15868Y-8696D01* X15878Y-8798D01* X15891Y-8885D01* X15910Y-8973D01* X15933Y-9052D01* X15961Y-9126D01* X15984Y-9190D01* X16016Y-9250D01* X16044Y-9306D01* X16067Y-9352D01* X16095Y-9389D01* X16118Y-9421D01* X16136Y-9449D01* X16150Y-9467D01* X16159Y-9477D01* X16164Y-9481D01* X16224Y-9537D01* X16284Y-9588D01* X16349Y-9629D01* X16418Y-9666D01* X16483Y-9698D01* X16552Y-9721D01* X16617Y-9745D01* X16681Y-9758D01* X16741Y-9772D01* X16797Y-9781D01* X16848Y-9791D01* X16889Y-9795D01* X16922Y-9800D01* X16973D01* X17056Y-9795D01* X17130Y-9791D01* X17203Y-9781D01* X17273Y-9768D01* X17337Y-9754D01* X17393Y-9735D01* X17448Y-9717D01* X17495Y-9694D01* X17541Y-9675D01* X17578Y-9657D01* X17610Y-9638D01* X17638Y-9624D01* X17656Y-9611D01* X17670Y-9601D01* X17679Y-9592D01* X17684D01* X17730Y-9550D01* X17776Y-9504D01* X17855Y-9403D01* X17920Y-9301D01* X17966Y-9199D01* X18003Y-9107D01* X18017Y-9065D01* X18031Y-9033D01* X18040Y-9005D01* X18044Y-8982D01* X18049Y-8968D01* Y-9758D01* Y-7379D01* D02* G37* %LPD*% G36* X22290Y-3076D02* X22350Y-3094D01* X22406Y-3118D01* X22452Y-3141D01* X22489Y-3168D01* X22516Y-3192D01* X22535Y-3210D01* X22540Y-3215D01* X22581Y-3270D01* X22618Y-3335D01* X22641Y-3404D01* X22660Y-3469D01* X22669Y-3524D01* X22674Y-3575D01* X22678Y-3593D01* Y-3603D01* Y-3612D01* Y-3617D01* X21763D01* X21768Y-3529D01* X21782Y-3450D01* X21800Y-3381D01* X21828Y-3325D01* X21851Y-3279D01* X21874Y-3247D01* X21888Y-3224D01* X21893Y-3219D01* X21944Y-3168D01* X21999Y-3131D01* X22054Y-3108D01* X22105Y-3090D01* X22151Y-3081D01* X22188Y-3071D01* X22221D01* X22290Y-3076D01* D02* G37* G36* X14635Y-3986D02* Y-4060D01* X14630Y-4125D01* X14626Y-4176D01* X14621Y-4217D01* X14616Y-4245D01* X14612Y-4268D01* X14607Y-4277D01* Y-4282D01* X14593Y-4323D01* X14570Y-4365D01* X14547Y-4397D01* X14524Y-4430D01* X14501Y-4453D01* X14482Y-4471D01* X14469Y-4481D01* X14464Y-4485D01* X14408Y-4522D01* X14348Y-4545D01* X14298Y-4564D01* X14247Y-4578D01* X14205Y-4587D01* X14173Y-4591D01* X14145D01* X14094Y-4587D01* X14043Y-4578D01* X14002Y-4564D01* X13970Y-4545D01* X13937Y-4527D01* X13919Y-4513D01* X13905Y-4504D01* X13900Y-4499D01* X13868Y-4462D01* X13845Y-4425D01* X13831Y-4388D01* X13822Y-4351D01* X13812Y-4323D01* X13808Y-4300D01* Y-4282D01* Y-4277D01* X13812Y-4231D01* X13826Y-4189D01* X13845Y-4152D01* X13868Y-4120D01* X13886Y-4097D01* X13905Y-4079D01* X13919Y-4069D01* X13923Y-4065D01* X13960Y-4046D01* X14006Y-4023D01* X14062Y-4005D01* X14117Y-3991D01* X14173Y-3977D01* X14214Y-3968D01* X14233Y-3963D01* X14247Y-3959D01* X14256D01* X14348Y-3940D01* X14422Y-3921D01* X14492Y-3903D01* X14542Y-3889D01* X14584Y-3875D01* X14612Y-3871D01* X14630Y-3861D01* X14635D01* Y-3986D01* D02* G37* G36* X16922Y-3081D02* X16991Y-3099D01* X17056Y-3127D01* X17111Y-3159D01* X17153Y-3192D01* X17185Y-3219D01* X17208Y-3238D01* X17213Y-3247D01* X17264Y-3321D01* X17300Y-3404D01* X17324Y-3492D01* X17342Y-3580D01* X17351Y-3658D01* X17356Y-3695D01* X17361Y-3723D01* Y-3751D01* Y-3769D01* Y-3778D01* Y-3783D01* X17356Y-3903D01* X17337Y-4009D01* X17310Y-4097D01* X17282Y-4171D01* X17254Y-4226D01* X17227Y-4268D01* X17208Y-4291D01* X17203Y-4300D01* X17143Y-4360D01* X17079Y-4402D01* X17019Y-4434D01* X16959Y-4453D01* X16903Y-4467D01* X16862Y-4471D01* X16834Y-4476D01* X16825D01* X16751Y-4467D01* X16681Y-4448D01* X16621Y-4420D01* X16571Y-4388D01* X16529Y-4360D01* X16501Y-4333D01* X16478Y-4314D01* X16474Y-4305D01* X16427Y-4231D01* X16395Y-4148D01* X16367Y-4060D01* X16353Y-3972D01* X16344Y-3894D01* X16340Y-3857D01* Y-3829D01* X16335Y-3806D01* Y-3783D01* Y-3774D01* Y-3769D01* X16340Y-3644D01* X16358Y-3538D01* X16381Y-3450D01* X16404Y-3376D01* X16432Y-3321D01* X16450Y-3279D01* X16469Y-3256D01* X16474Y-3247D01* X16529Y-3187D01* X16589Y-3145D01* X16654Y-3113D01* X16709Y-3094D01* X16760Y-3081D01* X16802Y-3076D01* X16829Y-3071D01* X16838D01* X16922Y-3081D01* D02* G37* G36* X22295Y-7860D02* X22369Y-7878D01* X22429Y-7906D01* X22484Y-7938D01* X22526Y-7970D01* X22554Y-7998D01* X22577Y-8017D01* X22581Y-8026D01* X22609Y-8063D01* X22632Y-8100D01* X22669Y-8192D01* X22692Y-8285D01* X22711Y-8382D01* X22720Y-8465D01* X22724Y-8506D01* X22729Y-8539D01* Y-8567D01* Y-8585D01* Y-8599D01* Y-8603D01* X22724Y-8728D01* X22706Y-8839D01* X22683Y-8931D01* X22655Y-9005D01* X22627Y-9065D01* X22604Y-9107D01* X22586Y-9130D01* X22581Y-9139D01* X22521Y-9199D01* X22461Y-9241D01* X22401Y-9273D01* X22346Y-9292D01* X22295Y-9306D01* X22258Y-9310D01* X22230Y-9315D01* X22221D01* X22175Y-9310D01* X22128Y-9306D01* X22045Y-9278D01* X21976Y-9241D01* X21916Y-9195D01* X21870Y-9153D01* X21837Y-9116D01* X21819Y-9088D01* X21810Y-9084D01* Y-9079D01* X21791Y-9047D01* X21777Y-9010D01* X21750Y-8927D01* X21731Y-8834D01* X21722Y-8747D01* X21713Y-8668D01* Y-8636D01* X21708Y-8603D01* Y-8580D01* Y-8557D01* Y-8548D01* Y-8543D01* X21713Y-8423D01* X21731Y-8317D01* X21754Y-8229D01* X21782Y-8155D01* X21805Y-8100D01* X21828Y-8058D01* X21847Y-8035D01* X21851Y-8026D01* X21911Y-7966D01* X21971Y-7924D01* X22031Y-7892D01* X22092Y-7874D01* X22138Y-7860D01* X22179Y-7855D01* X22207Y-7850D01* X22216D01* X22295Y-7860D01* D02* G37* G36* X19629Y-7887D02* X19707Y-7906D01* X19772Y-7938D01* X19832Y-7970D01* X19879Y-8003D01* X19915Y-8035D01* X19934Y-8054D01* X19943Y-8063D01* X19999Y-8137D01* X20040Y-8225D01* X20068Y-8312D01* X20091Y-8395D01* X20100Y-8469D01* X20105Y-8506D01* Y-8534D01* X20109Y-8557D01* Y-8576D01* Y-8585D01* Y-8590D01* X20100Y-8710D01* X20082Y-8821D01* X20059Y-8908D01* X20026Y-8987D01* X19994Y-9042D01* X19971Y-9088D01* X19952Y-9112D01* X19943Y-9121D01* X19879Y-9181D01* X19814Y-9227D01* X19745Y-9255D01* X19680Y-9278D01* X19624Y-9292D01* X19583Y-9296D01* X19564Y-9301D01* X19541D01* X19453Y-9292D01* X19375Y-9273D01* X19306Y-9246D01* X19250Y-9209D01* X19199Y-9176D01* X19162Y-9149D01* X19144Y-9130D01* X19135Y-9121D01* X19079Y-9047D01* X19042Y-8959D01* X19015Y-8871D01* X18991Y-8784D01* X18982Y-8710D01* X18978Y-8677D01* Y-8645D01* X18973Y-8622D01* Y-8603D01* Y-8594D01* Y-8590D01* X18982Y-8469D01* X19001Y-8363D01* X19024Y-8271D01* X19056Y-8197D01* X19084Y-8141D01* X19112Y-8095D01* X19130Y-8072D01* X19135Y-8063D01* X19199Y-8003D01* X19269Y-7957D01* X19338Y-7924D01* X19403Y-7901D01* X19458Y-7887D01* X19500Y-7883D01* X19518Y-7878D01* X19541D01* X19629Y-7887D01* D02* G37* G36* X24933Y-7855D02* X24993Y-7874D01* X25048Y-7897D01* X25095Y-7920D01* X25131Y-7947D01* X25159Y-7970D01* X25178Y-7989D01* X25182Y-7994D01* X25224Y-8049D01* X25261Y-8114D01* X25284Y-8183D01* X25302Y-8248D01* X25312Y-8303D01* X25316Y-8354D01* X25321Y-8372D01* Y-8382D01* Y-8391D01* Y-8395D01* X24406D01* X24411Y-8308D01* X24424Y-8229D01* X24443Y-8160D01* X24471Y-8105D01* X24494Y-8058D01* X24517Y-8026D01* X24531Y-8003D01* X24535Y-7998D01* X24586Y-7947D01* X24642Y-7910D01* X24697Y-7887D01* X24748Y-7869D01* X24794Y-7860D01* X24831Y-7850D01* X24863D01* X24933Y-7855D01* D02* G37* G36* X12727Y-9209D02* X10943D01* Y-8340D01* X12547D01* Y-7800D01* X10943D01* Y-7093D01* X12667D01* Y-6552D01* X12727D01* Y-9209D01* D02* G37* G36* X18049Y-8964D02* X17448Y-8862D01* X17430Y-8945D01* X17402Y-9019D01* X17379Y-9079D01* X17351Y-9126D01* X17324Y-9162D01* X17305Y-9185D01* X17291Y-9199D01* X17287Y-9204D01* X17241Y-9236D01* X17194Y-9260D01* X17148Y-9278D01* X17102Y-9287D01* X17060Y-9296D01* X17028Y-9301D01* X17000D01* X16917Y-9292D01* X16843Y-9273D01* X16783Y-9250D01* X16728Y-9218D01* X16686Y-9185D01* X16658Y-9162D01* X16635Y-9144D01* X16631Y-9135D01* X16608Y-9098D01* X16584Y-9061D01* X16552Y-8973D01* X16524Y-8876D01* X16511Y-8779D01* X16501Y-8687D01* X16497Y-8650D01* Y-8617D01* X16492Y-8590D01* Y-8567D01* Y-8553D01* Y-8548D01* Y-8483D01* X16497Y-8419D01* X16506Y-8363D01* X16515Y-8308D01* X16524Y-8262D01* X16534Y-8220D01* X16561Y-8146D01* X16584Y-8091D01* X16608Y-8054D01* X16621Y-8031D01* X16626Y-8021D01* X16681Y-7966D01* X16741Y-7929D01* X16802Y-7901D01* X16857Y-7878D01* X16912Y-7869D01* X16954Y-7864D01* X16982Y-7860D01* X16991D01* X17051Y-7864D01* X17107Y-7874D01* X17153Y-7887D01* X17194Y-7906D01* X17227Y-7924D01* X17250Y-7938D01* X17264Y-7947D01* X17268Y-7952D01* X17305Y-7989D01* X17337Y-8031D01* X17361Y-8077D01* X17384Y-8118D01* X17398Y-8160D01* X17407Y-8192D01* X17411Y-8211D01* Y-8220D01* X18017Y-8109D01* X17970Y-7980D01* X17915Y-7869D01* X17855Y-7776D01* X17795Y-7698D01* X17739Y-7638D01* X17698Y-7596D01* X17679Y-7582D01* X17665Y-7573D01* X17661Y-7564D01* X17656D01* X17555Y-7504D01* X17444Y-7458D01* X17333Y-7425D01* X17227Y-7402D01* X17176Y-7393D01* X17130Y-7388D01* X17088Y-7384D01* X17051D01* X17023Y-7379D01* X18049D01* Y-8964D01* D02* G37* %LPC*% G36* X-47490Y9845D02* X-47494D01* X-47498D01* X-47520D01* X-47553Y9841D01* X-47590Y9834D01* X-47635Y9819D01* X-47675Y9800D01* X-47716Y9775D01* X-47749Y9741D01* X-47753Y9737D01* X-47760Y9723D01* X-47775Y9697D01* X-47790Y9663D01* X-47805Y9619D01* X-47820Y9564D01* X-47827Y9493D01* X-47831Y9416D01* Y9179D01* X-47124D01* Y9460D01* X-47128Y9497D01* X-47135Y9545D01* X-47146Y9593D01* X-47161Y9645D01* X-47180Y9693D01* X-47209Y9737D01* X-47213Y9741D01* X-47228Y9756D01* X-47246Y9771D01* X-47280Y9793D01* X-47317Y9811D01* X-47365Y9830D01* X-47424Y9841D01* X-47490Y9845D01* D02* G37* G36* X-46380Y-249D02* X-47176D01* X-47180D01* X-47183Y-252D01* X-47202Y-271D01* X-47231Y-297D01* X-47261Y-330D01* X-47291Y-375D01* X-47320Y-426D01* X-47339Y-489D01* X-47346Y-523D01* Y-563D01* X-47342Y-586D01* X-47339Y-615D01* X-47328Y-652D01* X-47313Y-697D01* X-47287Y-737D01* X-47250Y-782D01* X-47202Y-819D01* X-47194Y-822D01* X-47176Y-833D01* X-47143Y-848D01* X-47095Y-863D01* X-47032Y-881D01* X-46995Y-889D01* X-46954Y-896D01* X-46909Y-904D01* X-46861Y-907D01* X-46810Y-911D01* X-46754D01* X-46747D01* X-46728D01* X-46699Y-907D01* X-46662D01* X-46613Y-900D01* X-46565Y-893D01* X-46510Y-885D01* X-46454Y-870D01* X-46399Y-852D01* X-46343Y-830D01* X-46295Y-804D01* X-46247Y-774D01* X-46210Y-737D01* X-46181Y-693D01* X-46162Y-641D01* X-46155Y-586D01* Y-567D01* X-46158Y-552D01* X-46166Y-515D01* X-46184Y-471D01* X-46210Y-415D01* X-46229Y-389D01* X-46251Y-360D01* X-46277Y-330D01* X-46306Y-304D01* X-46340Y-275D01* X-46380Y-249D01* D02* G37* G36* X-46958Y-18135D02* X-47032D01* X-47035D01* X-47054D01* X-47076D01* X-47106Y-18138D01* X-47146D01* X-47187Y-18142D01* X-47235Y-18149D01* X-47283Y-18153D01* X-47390Y-18172D01* X-47490Y-18201D01* X-47539Y-18220D01* X-47583Y-18242D01* X-47624Y-18264D01* X-47657Y-18294D01* X-47661D01* X-47664Y-18301D01* X-47683Y-18323D01* X-47709Y-18357D01* X-47738Y-18405D01* X-47768Y-18468D01* X-47794Y-18538D01* X-47812Y-18623D01* X-47820Y-18667D01* Y-18889D01* X-46207D01* Y-18686D01* X-46214Y-18660D01* X-46221Y-18623D01* X-46232Y-18579D01* X-46251Y-18530D01* X-46277Y-18479D01* X-46310Y-18423D01* X-46354Y-18368D01* X-46406Y-18316D01* X-46473Y-18268D01* X-46554Y-18223D01* X-46599Y-18205D01* X-46650Y-18186D01* X-46702Y-18172D01* X-46758Y-18160D01* X-46821Y-18149D01* X-46887Y-18142D01* X-46958Y-18135D01* D02* G37* G36* X-46758Y-20273D02* X-47816Y-20562D01* X-46758Y-20854D01* Y-20273D01* D02* G37* G36* X-13816Y56270D02* X-13856D01* X-13879Y56266D01* X-13908Y56262D01* X-13945Y56251D01* X-13990Y56237D01* X-14030Y56211D01* X-14075Y56174D01* X-14112Y56126D01* X-14115Y56118D01* X-14127Y56100D01* X-14141Y56066D01* X-14156Y56018D01* X-14175Y55955D01* X-14182Y55918D01* X-14189Y55878D01* X-14197Y55833D01* X-14200Y55785D01* X-14204Y55733D01* Y55678D01* Y55670D01* Y55652D01* X-14200Y55622D01* Y55585D01* X-14193Y55537D01* X-14186Y55489D01* X-14178Y55434D01* X-14164Y55378D01* X-14145Y55323D01* X-14123Y55267D01* X-14097Y55219D01* X-14067Y55171D01* X-14030Y55134D01* X-13986Y55104D01* X-13934Y55086D01* X-13879Y55079D01* X-13860D01* X-13845Y55082D01* X-13808Y55090D01* X-13764Y55108D01* X-13708Y55134D01* X-13682Y55152D01* X-13653Y55175D01* X-13623Y55201D01* X-13597Y55230D01* X-13568Y55264D01* X-13542Y55304D01* Y56100D01* Y56103D01* X-13546Y56107D01* X-13564Y56126D01* X-13590Y56155D01* X-13623Y56185D01* X-13668Y56214D01* X-13720Y56244D01* X-13782Y56262D01* X-13816Y56270D01* D02* G37* G36* X4177Y56740D02* X3885Y55682D01* X4466D01* X4177Y56740D01* D02* G37* G36* X-7833D02* X-8125Y55682D01* X-7544D01* X-7833Y56740D01* D02* G37* G36* X-50474Y-28578D02* X-55898D01* D01* X-55180D01* X-55898Y-28792D01* X-55831Y-28955D01* X-55772Y-29103D01* X-55720Y-29229D01* X-55683Y-29340D01* X-55654Y-29436D01* X-55631Y-29503D01* X-55624Y-29547D01* X-55617Y-29555D01* Y-29562D01* X-55587Y-29695D01* X-55572Y-29843D01* X-55557Y-29999D01* X-55550Y-30147D01* X-55543Y-30280D01* Y-30494D01* X-55535Y-30628D01* X-55520Y-30761D01* X-55491Y-30887D01* X-55461Y-30990D01* X-55432Y-31079D01* X-55402Y-31153D01* X-55387Y-31197D01* X-55380Y-31205D01* Y-31212D01* X-55313Y-31331D01* X-55239Y-31442D01* X-55165Y-31530D01* X-55091Y-31604D01* X-55032Y-31664D01* X-54973Y-31708D01* X-54943Y-31738D01* X-54928Y-31745D01* X-54817Y-31812D01* X-54706Y-31856D01* X-54588Y-31893D01* X-54484Y-31915D01* X-54396Y-31930D01* X-54329Y-31937D01* X-54299D01* X-54277D01* X-54270D01* X-54262D01* X-54129Y-31930D01* X-54011Y-31915D01* X-53907Y-31893D01* X-53818Y-31863D01* X-53744Y-31834D01* X-53693Y-31812D01* X-53663Y-31797D01* X-53648Y-31789D01* X-53559Y-31723D01* X-53485Y-31656D01* X-53426Y-31582D01* X-53374Y-31508D01* X-53337Y-31442D01* X-53308Y-31390D01* X-53293Y-31360D01* X-53286Y-31345D01* X-53256Y-31405D01* X-53219Y-31456D01* X-53182Y-31508D01* X-53138Y-31545D01* X-53101Y-31575D01* X-53071Y-31597D01* X-53049Y-31612D01* X-53041Y-31619D01* X-52975Y-31656D01* X-52908Y-31678D01* X-52849Y-31701D01* X-52790Y-31708D01* X-52745Y-31715D01* X-52701Y-31723D01* X-52679D01* X-52671D01* X-52560Y-31708D01* X-52457Y-31678D01* X-52368Y-31641D01* X-52287Y-31590D01* X-52227Y-31545D01* X-52183Y-31501D01* X-52153Y-31471D01* X-52146Y-31464D01* X-52079Y-31360D01* X-52028Y-31234D01* X-51991Y-31116D01* X-51968Y-30990D01* X-51954Y-30887D01* X-51939Y-30798D01* Y-30124D01* X-51931Y-30021D01* X-51924Y-29932D01* X-51909Y-29858D01* X-51894Y-29791D01* X-51872Y-29747D01* X-51857Y-29710D01* X-51850Y-29688D01* X-51843Y-29680D01* X-51806Y-29629D01* X-51761Y-29592D01* X-51717Y-29562D01* X-51672Y-29547D01* X-51635Y-29532D01* X-51606Y-29525D01* X-51584D01* X-51576D01* X-51502Y-29532D01* X-51436Y-29555D01* X-51376Y-29592D01* X-51332Y-29629D01* X-51295Y-29666D01* X-51273Y-29703D01* X-51258Y-29725D01* X-51251Y-29732D01* X-51214Y-29821D01* X-51184Y-29925D01* X-51162Y-30043D01* X-51147Y-30161D01* X-51140Y-30265D01* X-51132Y-30354D01* Y-30561D01* X-51140Y-30665D01* X-51147Y-30761D01* X-51162Y-30827D01* X-51169Y-30887D01* X-51177Y-30931D01* X-51184Y-30953D01* Y-30961D01* X-51206Y-31020D01* X-51228Y-31072D01* X-51251Y-31109D01* X-51280Y-31146D01* X-51302Y-31168D01* X-51317Y-31183D01* X-51325Y-31197D01* X-51332D01* X-51376Y-31220D01* X-51428Y-31234D01* X-51539Y-31249D01* X-51591Y-31257D01* X-51635D01* X-51665D01* X-51672D01* Y-32048D01* D01* X-51510Y-32041D01* X-51376Y-32026D01* X-51251Y-32004D01* X-51154Y-31974D01* X-51080Y-31945D01* X-51021Y-31923D01* X-50992Y-31908D01* X-50977Y-31900D01* X-50888Y-31834D01* X-50814Y-31752D01* X-50747Y-31671D01* X-50696Y-31590D01* X-50651Y-31516D01* X-50622Y-31456D01* X-50607Y-31412D01* X-50599Y-31405D01* Y-31397D01* X-50555Y-31257D01* X-50525Y-31101D01* X-50503Y-30938D01* X-50488Y-30783D01* X-50481Y-30650D01* Y-30591D01* X-50474Y-30539D01* Y-30287D01* X-50488Y-30139D01* X-50503Y-30006D01* X-50518Y-29880D01* X-50548Y-29762D01* X-50570Y-29651D01* X-50599Y-29555D01* X-50629Y-29466D01* X-50651Y-29384D01* X-50681Y-29318D01* X-50710Y-29259D01* X-50733Y-29214D01* X-50747Y-29177D01* X-50762Y-29148D01* X-50777Y-29133D01* Y-29125D01* X-50836Y-29044D01* X-50895Y-28970D01* X-50962Y-28903D01* X-51036Y-28852D01* X-51103Y-28807D01* X-51177Y-28770D01* X-51310Y-28711D01* X-51436Y-28674D01* X-51487Y-28667D01* X-51532Y-28659D01* X-51569Y-28652D01* X-51598D01* X-51613D01* X-51621D01* X-51724Y-28659D01* X-51820Y-28681D01* X-51909Y-28704D01* X-51991Y-28733D01* X-52050Y-28770D01* X-52102Y-28792D01* X-52131Y-28815D01* X-52139Y-28822D01* X-52220Y-28889D01* X-52294Y-28970D01* X-52361Y-29044D01* X-52412Y-29125D01* X-52449Y-29192D01* X-52479Y-29244D01* X-52494Y-29281D01* X-52501Y-29296D01* X-52546Y-29414D01* X-52575Y-29532D01* X-52605Y-29643D01* X-52620Y-29747D01* X-52627Y-29843D01* X-52634Y-29910D01* Y-30642D01* X-52642Y-30702D01* X-52664Y-30790D01* X-52701Y-30850D01* X-52738Y-30894D01* X-52768Y-30916D01* X-52805Y-30931D01* X-52827Y-30938D01* X-52834D01* X-52886Y-30931D01* X-52930Y-30924D01* X-52960Y-30916D01* X-52967Y-30909D01* X-53004Y-30887D01* X-53034Y-30864D01* X-53049Y-30850D01* X-53056Y-30842D01* X-53034Y-30783D01* X-53019Y-30709D01* X-53004Y-30554D01* X-52997Y-30487D01* Y-30383D01* X-53004Y-30228D01* X-53019Y-30087D01* X-53049Y-29962D01* X-53078Y-29851D01* X-53101Y-29762D01* X-53130Y-29695D01* X-53145Y-29651D01* X-53152Y-29636D01* X-53219Y-29518D01* X-53293Y-29421D01* X-53360Y-29333D01* X-53434Y-29259D01* X-53493Y-29207D01* X-53545Y-29162D01* X-53574Y-29140D01* X-53589Y-29133D01* X-53700Y-29074D01* X-53811Y-29029D01* X-53915Y-29000D01* X-54018Y-28977D01* X-54107Y-28963D01* X-54174Y-28955D01* X-54218D01* X-54225D01* X-54233D01* X-54351Y-28963D01* X-54455Y-28985D01* X-54544Y-29007D01* X-54625Y-29037D01* X-54692Y-29074D01* X-54743Y-29096D01* X-54773Y-29118D01* X-54780Y-29125D01* X-54854Y-29192D01* X-54921Y-29266D01* X-54965Y-29340D01* X-55002Y-29414D01* X-55025Y-29473D01* X-55039Y-29532D01* X-55047Y-29562D01* Y-29577D01* X-55054Y-29384D01* Y-29296D01* X-55062Y-29222D01* Y-29155D01* X-55069Y-29111D01* Y-29066D01* X-55099Y-28889D01* X-55113Y-28807D01* X-55136Y-28733D01* X-55150Y-28667D01* X-55165Y-28622D01* X-55180Y-28585D01* Y-28578D01* X-50474D01* D01* D02* G37* G36* X-51798Y-32714D02* X-56926D01* X-53833D01* X-53989Y-32729D01* X-54122Y-32744D01* X-54255Y-32766D01* X-54381Y-32788D01* X-54492Y-32818D01* X-54588Y-32848D01* X-54684Y-32877D01* X-54766Y-32914D01* X-54840Y-32944D01* X-54899Y-32973D01* X-54951Y-32996D01* X-54988Y-33018D01* X-55017Y-33033D01* X-55032Y-33040D01* X-55039Y-33047D01* X-55128Y-33114D01* X-55202Y-33188D01* X-55276Y-33262D01* X-55328Y-33343D01* X-55380Y-33425D01* X-55417Y-33514D01* X-55483Y-33676D01* X-55513Y-33832D01* X-55528Y-33898D01* X-55535Y-33958D01* X-55543Y-34002D01* Y-34069D01* X-55535Y-34180D01* X-55520Y-34283D01* X-55498Y-34379D01* X-55476Y-34461D01* X-55446Y-34527D01* X-55424Y-34587D01* X-55409Y-34616D01* X-55402Y-34631D01* X-55350Y-34720D01* X-55291Y-34786D01* X-55232Y-34846D01* X-55173Y-34890D01* X-55121Y-34920D01* X-55084Y-34934D01* X-55054Y-34949D01* X-56926D01* X-56830Y-35815D01* X-51880D01* Y-35045D01* X-52213Y-35016D01* X-52139Y-34964D01* X-52079Y-34912D01* X-52020Y-34846D01* X-51976Y-34779D01* X-51902Y-34638D01* X-51850Y-34498D01* X-51820Y-34365D01* X-51813Y-34305D01* X-51806Y-34254D01* X-51798Y-34217D01* Y-32714D01* D02* G37* G36* X-51880Y-36599D02* X-56512D01* X-54225D01* X-54462Y-36607D01* X-54677Y-36629D01* X-54877Y-36659D01* X-55054Y-36696D01* X-55217Y-36740D01* X-55365Y-36799D01* X-55498Y-36851D01* X-55609Y-36910D01* X-55705Y-36969D01* X-55794Y-37021D01* X-55861Y-37073D01* X-55920Y-37125D01* X-55964Y-37162D01* X-55994Y-37191D01* X-56009Y-37214D01* X-56016Y-37221D01* X-56105Y-37339D01* X-56179Y-37465D01* X-56246Y-37598D01* X-56305Y-37732D01* X-56349Y-37865D01* X-56394Y-37998D01* X-56453Y-38257D01* X-56468Y-38375D01* X-56482Y-38486D01* X-56497Y-38583D01* X-56505Y-38671D01* X-56512Y-38738D01* Y-39937D01* X-51880D01* Y-38768D01* X-51887Y-38597D01* X-51902Y-38435D01* X-51924Y-38279D01* X-51961Y-38131D01* X-51998Y-37998D01* X-52042Y-37865D01* X-52087Y-37754D01* X-52139Y-37643D01* X-52183Y-37547D01* X-52227Y-37465D01* X-52272Y-37391D01* X-52309Y-37332D01* X-52346Y-37280D01* X-52368Y-37251D01* X-52383Y-37228D01* X-52390Y-37221D01* X-52494Y-37110D01* X-52620Y-37014D01* X-52753Y-36932D01* X-52893Y-36858D01* X-53049Y-36799D01* X-53197Y-36747D01* X-53352Y-36710D01* X-53500Y-36673D01* X-53648Y-36651D01* X-53781Y-36629D01* X-53907Y-36622D01* X-54011Y-36607D01* X-54100D01* X-54166Y-36599D01* X-51880D01* D01* D02* G37* %LPD*% G36* X-54159Y-29828D02* X-54055Y-29843D01* X-53974Y-29873D01* X-53900Y-29895D01* X-53848Y-29925D01* X-53804Y-29954D01* X-53781Y-29969D01* X-53774Y-29976D01* X-53715Y-30036D01* X-53678Y-30110D01* X-53648Y-30184D01* X-53626Y-30250D01* X-53611Y-30317D01* X-53604Y-30369D01* Y-30420D01* X-53611Y-30531D01* X-53633Y-30628D01* X-53656Y-30709D01* X-53693Y-30776D01* X-53722Y-30827D01* X-53744Y-30864D01* X-53767Y-30887D01* X-53774Y-30894D01* X-53848Y-30946D01* X-53922Y-30990D01* X-54003Y-31020D01* X-54085Y-31035D01* X-54151Y-31049D01* X-54211Y-31057D01* X-54248D01* X-54262D01* X-54373Y-31049D01* X-54462Y-31035D01* X-54544Y-31005D01* X-54610Y-30975D01* X-54669Y-30953D01* X-54706Y-30924D01* X-54729Y-30909D01* X-54736Y-30901D01* X-54795Y-30835D01* X-54832Y-30761D01* X-54862Y-30679D01* X-54884Y-30605D01* X-54899Y-30531D01* X-54906Y-30480D01* Y-30428D01* X-54899Y-30324D01* X-54877Y-30228D01* X-54847Y-30147D01* X-54810Y-30080D01* X-54758Y-30021D01* X-54706Y-29969D01* X-54647Y-29932D01* X-54595Y-29895D01* X-54477Y-29851D01* X-54373Y-29828D01* X-54336D01* X-54307Y-29821D01* X-54285D01* X-54277D01* X-54159Y-29828D01* D02* G37* G36* X-51798Y-34157D02* X-51806Y-34032D01* X-51820Y-33913D01* X-51843Y-33810D01* X-51880Y-33706D01* X-51917Y-33610D01* X-51961Y-33521D01* X-52013Y-33447D01* X-52057Y-33373D01* X-52109Y-33306D01* X-52153Y-33255D01* X-52198Y-33210D01* X-52235Y-33166D01* X-52272Y-33136D01* X-52294Y-33114D01* X-52309Y-33107D01* X-52316Y-33099D01* X-52420Y-33033D01* X-52523Y-32973D01* X-52634Y-32922D01* X-52753Y-32877D01* X-52975Y-32811D01* X-53197Y-32759D01* X-53293Y-32744D01* X-53389Y-32737D01* X-53471Y-32729D01* X-53537Y-32722D01* X-53596Y-32714D01* X-51798D01* Y-34157D01* D02* G37* G36* X-53456Y-33632D02* X-53352Y-33639D01* X-53263Y-33654D01* X-53182Y-33669D01* X-53108Y-33684D01* X-53041Y-33699D01* X-52982Y-33713D01* X-52886Y-33750D01* X-52812Y-33780D01* X-52775Y-33802D01* X-52760Y-33810D01* X-52664Y-33884D01* X-52590Y-33972D01* X-52546Y-34054D01* X-52509Y-34143D01* X-52486Y-34217D01* X-52479Y-34276D01* X-52472Y-34320D01* Y-34335D01* X-52479Y-34402D01* X-52486Y-34468D01* X-52531Y-34594D01* X-52583Y-34698D01* X-52649Y-34786D01* X-52716Y-34853D01* X-52775Y-34905D01* X-52812Y-34942D01* X-52819Y-34949D01* X-52827D01* X-54410D01* X-54477Y-34905D01* X-54544Y-34853D01* X-54595Y-34801D01* X-54640Y-34757D01* X-54677Y-34712D01* X-54706Y-34683D01* X-54721Y-34661D01* X-54729Y-34653D01* X-54773Y-34587D01* X-54803Y-34513D01* X-54825Y-34453D01* X-54840Y-34394D01* X-54847Y-34342D01* X-54854Y-34305D01* Y-34268D01* X-54840Y-34157D01* X-54810Y-34061D01* X-54766Y-33980D01* X-54714Y-33913D01* X-54662Y-33861D01* X-54618Y-33824D01* X-54588Y-33802D01* X-54573Y-33795D01* X-54521Y-33765D01* X-54455Y-33736D01* X-54314Y-33699D01* X-54166Y-33669D01* X-54018Y-33647D01* X-53885Y-33632D01* X-53826D01* X-53774Y-33625D01* X-53730D01* X-53700D01* X-53678D01* X-53670D01* X-53559D01* X-53456Y-33632D01* D02* G37* G36* X-53937Y-37547D02* X-53804Y-37561D01* X-53678Y-37584D01* X-53567Y-37606D01* X-53463Y-37635D01* X-53360Y-37672D01* X-53271Y-37709D01* X-53108Y-37798D01* X-52975Y-37894D01* X-52871Y-37998D01* X-52782Y-38109D01* X-52716Y-38220D01* X-52664Y-38324D01* X-52627Y-38420D01* X-52605Y-38509D01* X-52590Y-38583D01* X-52575Y-38634D01* Y-39041D01* X-55802D01* Y-38597D01* X-55787Y-38509D01* X-55750Y-38338D01* X-55698Y-38198D01* X-55639Y-38072D01* X-55580Y-37976D01* X-55528Y-37909D01* X-55491Y-37865D01* X-55483Y-37850D01* X-55476D01* X-55409Y-37791D01* X-55328Y-37746D01* X-55239Y-37702D01* X-55143Y-37665D01* X-54943Y-37606D01* X-54729Y-37569D01* X-54632Y-37561D01* X-54536Y-37547D01* X-54455Y-37539D01* X-54373D01* X-54314Y-37532D01* X-54270D01* X-54233D01* X-54225D01* X-54077D01* X-53937Y-37547D01* D02* G37* %LPC*% G36* X63237Y-2870D02* X62715D01* Y-3541D01* X59763D01* Y-2870D01* Y-4096D01* X60434Y-5167D01* X60878Y-4901D01* X60423Y-4185D01* X62715D01* Y-5012D01* X63237D01* Y-5167D01* X59763D01* D01* X63237D01* Y-2870D01* D02* G37* G36* X59763Y-5578D02* D01* Y-8514D01* X63237D01* X59763D01* X61916Y-7382D01* X63237D01* Y-6710D01* X61911D01* X59763Y-5578D01* D02* G37* G36* X63237Y-8852D02* X62715D01* Y-10345D01* X61733D01* Y-9124D01* X61217D01* Y-10345D01* X60290D01* Y-8952D01* X59763Y-8880D01* Y-8852D01* Y-11017D01* X63237D01* Y-8852D01* D02* G37* G36* Y-11555D02* D01* X61350Y-12832D01* X59763Y-11650D01* Y-12354D01* X61278Y-13470D01* X61500D01* X63237Y-12316D01* Y-13470D01* X61500D01* X61383Y-13548D01* X61278Y-13470D01* X59763D01* Y-14142D01* X63237D01* Y-11555D01* D02* G37* %LPD*% G36* X61361Y-7038D02* X59763Y-7803D01* Y-6261D01* X61361Y-7038D01* D02* G37* %LPC*% G36* X-18545Y27074D02* X-18549D01* X-18556D01* X-18571D01* X-18590Y27070D01* X-18612D01* X-18641Y27067D01* X-18701Y27059D01* X-18767Y27041D01* X-18837Y27019D01* X-18908Y26985D01* X-18967Y26941D01* X-18974Y26934D01* X-18989Y26919D01* X-19015Y26889D01* X-19041Y26852D01* X-19067Y26804D01* X-19093Y26752D01* X-19108Y26689D01* X-19115Y26619D01* Y26601D01* X-19111Y26586D01* X-19108Y26552D01* X-19096Y26508D01* X-19078Y26456D01* X-19052Y26401D01* X-19015Y26345D01* X-18967Y26293D01* X-18960Y26290D01* X-18941Y26275D01* X-18904Y26253D01* X-18860Y26230D01* X-18801Y26205D01* X-18726Y26186D01* X-18641Y26171D01* X-18545Y26164D01* X-18541D01* X-18534D01* X-18519D01* X-18501Y26168D01* X-18475D01* X-18449Y26171D01* X-18390Y26179D01* X-18319Y26197D01* X-18249Y26219D01* X-18179Y26249D01* X-18120Y26293D01* X-18112Y26301D01* X-18098Y26316D01* X-18075Y26345D01* X-18049Y26386D01* X-18020Y26430D01* X-17998Y26486D01* X-17983Y26549D01* X-17975Y26619D01* Y26638D01* X-17979Y26652D01* X-17983Y26686D01* X-17994Y26730D01* X-18012Y26782D01* X-18035Y26837D01* X-18072Y26889D01* X-18120Y26941D01* X-18127Y26948D01* X-18146Y26963D01* X-18183Y26982D01* X-18227Y27007D01* X-18290Y27033D01* X-18360Y27052D01* X-18449Y27067D01* X-18545Y27074D01* D02* G37* G36* Y20118D02* X-18549D01* X-18556D01* X-18571D01* X-18590Y20114D01* X-18612D01* X-18641Y20111D01* X-18701Y20103D01* X-18767Y20085D01* X-18837Y20063D01* X-18908Y20029D01* X-18967Y19985D01* X-18974Y19977D01* X-18989Y19963D01* X-19015Y19933D01* X-19041Y19896D01* X-19067Y19848D01* X-19093Y19796D01* X-19108Y19733D01* X-19115Y19663D01* Y19645D01* X-19111Y19630D01* X-19108Y19596D01* X-19096Y19552D01* X-19078Y19500D01* X-19052Y19445D01* X-19015Y19389D01* X-18967Y19337D01* X-18960Y19334D01* X-18941Y19319D01* X-18904Y19297D01* X-18860Y19275D01* X-18801Y19249D01* X-18726Y19230D01* X-18641Y19215D01* X-18545Y19208D01* X-18541D01* X-18534D01* X-18519D01* X-18501Y19212D01* X-18475D01* X-18449Y19215D01* X-18390Y19223D01* X-18319Y19241D01* X-18249Y19263D01* X-18179Y19293D01* X-18120Y19337D01* X-18112Y19345D01* X-18098Y19360D01* X-18075Y19389D01* X-18049Y19430D01* X-18020Y19474D01* X-17998Y19530D01* X-17983Y19593D01* X-17975Y19663D01* Y19681D01* X-17979Y19696D01* X-17983Y19730D01* X-17994Y19774D01* X-18012Y19826D01* X-18035Y19881D01* X-18072Y19933D01* X-18120Y19985D01* X-18127Y19992D01* X-18146Y20007D01* X-18183Y20026D01* X-18227Y20052D01* X-18290Y20077D01* X-18360Y20096D01* X-18449Y20111D01* X-18545Y20118D01* D02* G37* G36* X-18534Y14265D02* X-18538D01* X-18549D01* X-18564D01* X-18586D01* X-18612Y14261D01* X-18645Y14257D01* X-18712Y14250D01* X-18789Y14235D01* X-18863Y14217D01* X-18937Y14187D01* X-18967Y14168D01* X-18997Y14146D01* X-19004Y14143D01* X-19019Y14124D01* X-19041Y14102D01* X-19067Y14069D01* X-19093Y14024D01* X-19115Y13976D01* X-19130Y13917D01* X-19137Y13854D01* Y13847D01* X-19133Y13824D01* X-19130Y13791D01* X-19119Y13754D01* X-19104Y13706D01* X-19078Y13658D01* X-19045Y13610D01* X-18997Y13562D01* X-18989Y13558D01* X-18971Y13543D01* X-18937Y13525D01* X-18893Y13506D01* X-18834Y13484D01* X-18764Y13465D01* X-18678Y13451D01* X-18582Y13447D01* X-18578D01* X-18571D01* X-18553D01* X-18534D01* X-18508Y13451D01* X-18482D01* X-18419Y13458D01* X-18349Y13465D01* X-18275Y13480D01* X-18209Y13502D01* X-18179Y13514D01* X-18153Y13528D01* X-18149D01* X-18146Y13536D01* X-18123Y13551D01* X-18094Y13577D01* X-18060Y13613D01* X-18023Y13662D01* X-17994Y13717D01* X-17972Y13784D01* X-17968Y13821D01* X-17964Y13858D01* Y13865D01* X-17968Y13887D01* X-17972Y13917D01* X-17983Y13958D01* X-17998Y14002D01* X-18023Y14050D01* X-18057Y14098D01* X-18105Y14146D01* X-18112Y14150D01* X-18131Y14165D01* X-18164Y14183D01* X-18212Y14206D01* X-18271Y14228D01* X-18345Y14246D01* X-18434Y14261D01* X-18534Y14265D01* D02* G37* G36* X-18701Y12163D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y12159D01* X-18775Y12156D01* X-18819Y12148D01* X-18871Y12133D01* X-18926Y12115D01* X-18978Y12085D01* X-19023Y12052D01* X-19026Y12048D01* X-19041Y12034D01* X-19060Y12011D01* X-19082Y11982D01* X-19100Y11945D01* X-19119Y11900D01* X-19133Y11852D01* X-19137Y11797D01* Y11771D01* X-19130Y11741D01* X-19122Y11704D01* X-19108Y11664D01* X-19089Y11619D01* X-19060Y11575D01* X-19019Y11534D01* X-19015Y11530D01* X-18997Y11519D01* X-18971Y11501D01* X-18934Y11482D01* X-18889Y11460D01* X-18834Y11445D01* X-18771Y11434D01* X-18701Y11430D01* Y12163D01* D02* G37* G36* Y6794D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y6791D01* X-18775Y6787D01* X-18819Y6780D01* X-18871Y6765D01* X-18926Y6746D01* X-18978Y6717D01* X-19023Y6683D01* X-19026Y6680D01* X-19041Y6665D01* X-19060Y6643D01* X-19082Y6613D01* X-19100Y6576D01* X-19119Y6532D01* X-19133Y6484D01* X-19137Y6428D01* Y6402D01* X-19130Y6373D01* X-19122Y6336D01* X-19108Y6295D01* X-19089Y6250D01* X-19060Y6206D01* X-19019Y6165D01* X-19015Y6162D01* X-18997Y6151D01* X-18971Y6132D01* X-18934Y6114D01* X-18889Y6091D01* X-18834Y6077D01* X-18771Y6066D01* X-18701Y6062D01* Y6794D01* D02* G37* G36* X-18904Y2373D02* X-18908D01* X-18923D01* X-18945D01* X-18978Y2369D01* X-19015Y2365D01* X-19056Y2362D01* X-19104Y2358D01* X-19152Y2347D01* X-19259Y2325D01* X-19370Y2292D01* X-19426Y2269D01* X-19474Y2243D01* X-19522Y2210D01* X-19566Y2177D01* X-19570Y2173D01* X-19578Y2169D01* X-19585Y2158D01* X-19600Y2144D01* X-19618Y2121D01* X-19637Y2099D01* X-19655Y2073D01* X-19677Y2040D01* X-19696Y2007D01* X-19714Y1966D01* X-19751Y1881D01* X-19766Y1833D01* X-19774Y1781D01* X-19781Y1725D01* X-19785Y1666D01* Y1637D01* X-19781Y1614D01* X-19777Y1585D01* X-19774Y1555D01* X-19759Y1481D01* X-19729Y1400D01* X-19714Y1355D01* X-19692Y1311D01* X-19666Y1270D01* X-19637Y1226D01* X-19603Y1185D01* X-19563Y1148D01* X-19559Y1144D01* X-19552Y1141D01* X-19541Y1130D01* X-19522Y1119D01* X-19496Y1104D01* X-19470Y1089D01* X-19437Y1070D01* X-19396Y1052D01* X-19352Y1034D01* X-19304Y1015D01* X-19248Y1000D01* X-19189Y985D01* X-19122Y974D01* X-19052Y963D01* X-18978Y960D01* X-18897Y956D01* X-18893D01* X-18878D01* X-18856D01* X-18826Y960D01* X-18789Y963D01* X-18745Y967D01* X-18701Y974D01* X-18649Y982D01* X-18541Y1004D01* X-18434Y1041D01* X-18379Y1063D01* X-18327Y1089D01* X-18279Y1122D01* X-18234Y1156D01* X-18231Y1159D01* X-18223Y1167D01* X-18212Y1178D01* X-18201Y1193D01* X-18183Y1211D01* X-18164Y1237D01* X-18142Y1263D01* X-18123Y1296D01* X-18079Y1366D01* X-18046Y1455D01* X-18031Y1503D01* X-18020Y1555D01* X-18012Y1611D01* X-18009Y1666D01* Y1696D01* X-18012Y1718D01* X-18016Y1744D01* X-18020Y1774D01* X-18038Y1844D01* X-18064Y1925D01* X-18083Y1966D01* X-18101Y2010D01* X-18127Y2051D01* X-18157Y2095D01* X-18190Y2136D01* X-18231Y2173D01* X-18234Y2177D01* X-18242Y2180D01* X-18253Y2192D01* X-18271Y2203D01* X-18297Y2221D01* X-18327Y2236D01* X-18360Y2255D01* X-18401Y2273D01* X-18445Y2292D01* X-18493Y2310D01* X-18549Y2328D01* X-18612Y2343D01* X-18675Y2354D01* X-18745Y2365D01* X-18823Y2369D01* X-18904Y2373D01* D02* G37* G36* X-18534Y-1642D02* X-18538D01* X-18549D01* X-18564D01* X-18586D01* X-18612Y-1645D01* X-18645Y-1649D01* X-18712Y-1656D01* X-18789Y-1671D01* X-18863Y-1690D01* X-18937Y-1719D01* X-18967Y-1738D01* X-18997Y-1760D01* X-19004Y-1764D01* X-19019Y-1782D01* X-19041Y-1804D01* X-19067Y-1838D01* X-19093Y-1882D01* X-19115Y-1930D01* X-19130Y-1989D01* X-19137Y-2052D01* Y-2060D01* X-19133Y-2082D01* X-19130Y-2115D01* X-19119Y-2152D01* X-19104Y-2200D01* X-19078Y-2248D01* X-19045Y-2296D01* X-18997Y-2345D01* X-18989Y-2348D01* X-18971Y-2363D01* X-18937Y-2382D01* X-18893Y-2400D01* X-18834Y-2422D01* X-18764Y-2441D01* X-18678Y-2456D01* X-18582Y-2459D01* X-18578D01* X-18571D01* X-18553D01* X-18534D01* X-18508Y-2456D01* X-18482D01* X-18419Y-2448D01* X-18349Y-2441D01* X-18275Y-2426D01* X-18209Y-2404D01* X-18179Y-2393D01* X-18153Y-2378D01* X-18149D01* X-18146Y-2371D01* X-18123Y-2356D01* X-18094Y-2330D01* X-18060Y-2293D01* X-18023Y-2245D01* X-17994Y-2189D01* X-17972Y-2123D01* X-17968Y-2086D01* X-17964Y-2049D01* Y-2041D01* X-17968Y-2019D01* X-17972Y-1989D01* X-17983Y-1949D01* X-17998Y-1904D01* X-18023Y-1856D01* X-18057Y-1808D01* X-18105Y-1760D01* X-18112Y-1756D01* X-18131Y-1742D01* X-18164Y-1723D01* X-18212Y-1701D01* X-18271Y-1679D01* X-18345Y-1660D01* X-18434Y-1645D01* X-18534Y-1642D01* D02* G37* G36* X-18701Y-4738D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y-4742D01* X-18775Y-4746D01* X-18819Y-4753D01* X-18871Y-4768D01* X-18926Y-4787D01* X-18978Y-4816D01* X-19023Y-4849D01* X-19026Y-4853D01* X-19041Y-4868D01* X-19060Y-4890D01* X-19082Y-4920D01* X-19100Y-4957D01* X-19119Y-5001D01* X-19133Y-5049D01* X-19137Y-5105D01* Y-5131D01* X-19130Y-5160D01* X-19122Y-5197D01* X-19108Y-5238D01* X-19089Y-5282D01* X-19060Y-5327D01* X-19019Y-5367D01* X-19015Y-5371D01* X-18997Y-5382D01* X-18971Y-5401D01* X-18934Y-5419D01* X-18889Y-5441D01* X-18834Y-5456D01* X-18771Y-5467D01* X-18701Y-5471D01* Y-4738D01* D02* G37* G36* X-51380Y11223D02* X-55043D01* Y10476D01* X-55036Y10379D01* X-55021Y10298D01* X-55006Y10217D01* X-54984Y10150D01* X-54954Y10091D01* X-54940Y10054D01* X-54925Y10024D01* X-54917Y10017D01* X-54873Y9950D01* X-54821Y9891D01* X-54769Y9847D01* X-54725Y9810D01* X-54681Y9780D01* X-54643Y9758D01* X-54621Y9750D01* X-54614Y9743D01* X-54688Y9721D01* X-54755Y9684D01* X-54814Y9647D01* X-54865Y9602D01* X-54902Y9551D01* X-54940Y9499D01* X-54991Y9395D01* X-55021Y9292D01* X-55036Y9210D01* X-55043Y9173D01* Y7723D01* Y9129D01* X-55036Y9033D01* X-55021Y8951D01* X-55006Y8877D01* X-54984Y8811D01* X-54954Y8759D01* X-54940Y8714D01* X-54925Y8692D01* X-54917Y8685D01* X-54865Y8618D01* X-54814Y8566D01* X-54755Y8522D01* X-54703Y8492D01* X-54658Y8463D01* X-54621Y8448D01* X-54592Y8433D01* X-54584D01* X-54954Y8396D01* Y7723D01* X-51380D01* Y8685D01* Y8507D01* X-54052D01* X-54148Y8581D01* X-54222Y8663D01* X-54273Y8737D01* X-54311Y8803D01* X-54333Y8862D01* X-54340Y8907D01* X-54347Y8944D01* Y8981D01* X-54333Y9010D01* X-54303Y9047D01* X-54273Y9070D01* X-54266Y9077D01* X-54259D01* X-54222Y9092D01* X-54170Y9099D01* X-54052Y9107D01* X-53992Y9114D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y10017D01* Y9839D01* X-54052D01* X-54148Y9913D01* X-54222Y9995D01* X-54273Y10069D01* X-54311Y10135D01* X-54333Y10194D01* X-54340Y10239D01* X-54347Y10276D01* Y10313D01* X-54333Y10342D01* X-54303Y10379D01* X-54273Y10402D01* X-54266Y10409D01* X-54259D01* X-54222Y10424D01* X-54170Y10431D01* X-54052Y10439D01* X-53992Y10446D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y11223D01* D02* G37* G36* Y7220D02* X-54111D01* X-54199Y7212D01* X-54362Y7190D01* X-54503Y7153D01* X-54614Y7123D01* X-54695Y7086D01* X-54755Y7049D01* X-54791Y7027D01* X-54799Y7020D01* X-54880Y6938D01* X-54940Y6850D01* X-54984Y6761D01* X-55014Y6672D01* X-55028Y6591D01* X-55043Y6531D01* Y7220D01* Y6472D01* X-55036Y6376D01* X-55021Y6295D01* X-55006Y6213D01* X-54984Y6147D01* X-54954Y6087D01* X-54940Y6050D01* X-54925Y6021D01* X-54917Y6013D01* X-54873Y5947D01* X-54821Y5888D01* X-54769Y5843D01* X-54725Y5806D01* X-54681Y5777D01* X-54643Y5754D01* X-54621Y5747D01* X-54614Y5740D01* X-54688Y5717D01* X-54755Y5680D01* X-54814Y5643D01* X-54865Y5599D01* X-54902Y5547D01* X-54940Y5495D01* X-54991Y5392D01* X-55021Y5288D01* X-55036Y5207D01* X-55043Y5170D01* Y3719D01* Y5125D01* X-55036Y5029D01* X-55021Y4948D01* X-55006Y4874D01* X-54984Y4807D01* X-54954Y4755D01* X-54940Y4711D01* X-54925Y4689D01* X-54917Y4681D01* X-54865Y4615D01* X-54814Y4563D01* X-54755Y4519D01* X-54703Y4489D01* X-54658Y4459D01* X-54621Y4445D01* X-54592Y4430D01* X-54584D01* X-54954Y4393D01* Y3719D01* X-55043D01* X-51380D01* Y4681D01* Y4504D01* X-54052D01* X-54148Y4578D01* X-54222Y4659D01* X-54273Y4733D01* X-54311Y4800D01* X-54333Y4859D01* X-54340Y4903D01* X-54347Y4940D01* Y4977D01* X-54333Y5007D01* X-54303Y5044D01* X-54273Y5066D01* X-54266Y5074D01* X-54259D01* X-54222Y5088D01* X-54170Y5096D01* X-54052Y5103D01* X-53992Y5111D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y6013D01* Y5836D01* X-54052D01* X-54148Y5910D01* X-54222Y5991D01* X-54273Y6065D01* X-54311Y6132D01* X-54333Y6191D01* X-54340Y6235D01* X-54347Y6272D01* Y6309D01* X-54333Y6339D01* X-54303Y6376D01* X-54273Y6398D01* X-54266Y6406D01* X-54259D01* X-54222Y6420D01* X-54170Y6428D01* X-54052Y6435D01* X-53992Y6443D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y7220D01* D02* G37* G36* X-51299Y3090D02* X-55043D01* X-53178D01* X-53334Y3083D01* X-53482Y3076D01* X-53622Y3053D01* X-53748Y3024D01* X-53866Y2994D01* X-53978Y2957D01* X-54081Y2920D01* X-54177Y2883D01* X-54259Y2839D01* X-54325Y2802D01* X-54392Y2765D01* X-54444Y2735D01* X-54481Y2706D01* X-54510Y2683D01* X-54525Y2676D01* X-54532Y2669D01* X-54621Y2587D01* X-54703Y2498D01* X-54769Y2402D01* X-54829Y2306D01* X-54880Y2202D01* X-54917Y2106D01* X-54954Y2003D01* X-54976Y1914D01* X-54999Y1825D01* X-55014Y1736D01* X-55028Y1662D01* X-55036Y1596D01* X-55043Y1544D01* Y-166D01* Y1470D01* X-55036Y1329D01* X-55021Y1196D01* X-54999Y1070D01* X-54962Y959D01* X-54925Y848D01* X-54880Y752D01* X-54836Y663D01* X-54784Y582D01* X-54740Y508D01* X-54688Y441D01* X-54643Y389D01* X-54606Y345D01* X-54570Y308D01* X-54547Y286D01* X-54532Y271D01* X-54525Y264D01* X-54429Y190D01* X-54318Y123D01* X-54214Y64D01* X-54096Y19D01* X-53985Y-25D01* X-53874Y-62D01* X-53659Y-114D01* X-53556Y-129D01* X-53467Y-143D01* X-53386Y-151D01* X-53312Y-158D01* X-53252Y-166D01* X-55043D01* X-51299D01* X-53171D01* X-53008Y-158D01* X-52860Y-151D01* X-52719Y-129D01* X-52586Y-99D01* X-52460Y-69D01* X-52350Y-32D01* X-52246Y5D01* X-52150Y49D01* X-52068Y86D01* X-52002Y123D01* X-51935Y160D01* X-51883Y190D01* X-51846Y219D01* X-51817Y241D01* X-51802Y249D01* X-51794Y256D01* X-51706Y338D01* X-51632Y434D01* X-51565Y530D01* X-51506Y626D01* X-51461Y730D01* X-51417Y826D01* X-51358Y1018D01* X-51343Y1107D01* X-51328Y1196D01* X-51314Y1270D01* X-51306Y1337D01* X-51299Y1388D01* Y1462D01* X-51306Y1603D01* X-51321Y1736D01* X-51343Y1862D01* X-51380Y1973D01* X-51417Y2084D01* X-51461Y2180D01* X-51506Y2269D01* X-51550Y2350D01* X-51595Y2424D01* X-51647Y2484D01* X-51683Y2535D01* X-51720Y2580D01* X-51758Y2617D01* X-51780Y2639D01* X-51794Y2654D01* X-51802Y2661D01* X-51898Y2735D01* X-52009Y2802D01* X-52120Y2861D01* X-52231Y2913D01* X-52350Y2950D01* X-52460Y2987D01* X-52683Y3039D01* X-52786Y3053D01* X-52875Y3068D01* X-52964Y3076D01* X-53038Y3083D01* X-53097Y3090D01* X-51299D01* D02* G37* G36* X-51883Y-669D02* X-52424Y-1091D01* X-52357Y-1187D01* X-52290Y-1283D01* X-52246Y-1364D01* X-52201Y-1438D01* X-52172Y-1505D01* X-52142Y-1549D01* X-52135Y-1579D01* X-52127Y-1586D01* X-52098Y-1675D01* X-52076Y-1764D01* X-52053Y-1853D01* X-52046Y-1934D01* X-52039Y-2008D01* X-52031Y-2067D01* Y-2119D01* X-52039Y-2215D01* X-52046Y-2312D01* X-52091Y-2474D01* X-52157Y-2622D01* X-52231Y-2748D01* X-52305Y-2844D01* X-52372Y-2918D01* X-52416Y-2963D01* X-52424Y-2970D01* X-52431Y-2978D01* X-52512Y-3037D01* X-52601Y-3081D01* X-52801Y-3163D01* X-53008Y-3222D01* X-53215Y-3259D01* X-53319Y-3274D01* X-53408Y-3288D01* X-53489Y-3296D01* X-53563D01* X-53622Y-3303D01* X-53667D01* X-53696D01* X-53704D01* X-53866Y-3296D01* X-54014Y-3288D01* X-54148Y-3274D01* X-54273Y-3251D01* X-54392Y-3229D01* X-54496Y-3200D01* X-54592Y-3170D01* X-54673Y-3140D01* X-54747Y-3111D01* X-54814Y-3081D01* X-54865Y-3052D01* X-54910Y-3029D01* X-54940Y-3007D01* X-54962Y-2992D01* X-54976Y-2978D01* X-54984D01* X-55058Y-2911D01* X-55117Y-2844D01* X-55169Y-2778D01* X-55213Y-2704D01* X-55287Y-2563D01* X-55332Y-2430D01* X-55361Y-2304D01* X-55369Y-2260D01* X-55376Y-2215D01* X-55383Y-2178D01* Y-2038D01* X-55369Y-1942D01* X-55332Y-1771D01* X-55280Y-1609D01* X-55221Y-1468D01* X-55154Y-1350D01* X-55124Y-1305D01* X-55102Y-1261D01* X-55080Y-1231D01* X-55065Y-1209D01* X-55058Y-1194D01* X-55050Y-1187D01* X-55591Y-735D01* X-55687Y-854D01* X-55768Y-972D01* X-55842Y-1076D01* X-55894Y-1179D01* X-55931Y-1261D01* X-55961Y-1320D01* X-55976Y-1364D01* X-55983Y-1372D01* Y-1379D01* X-56020Y-1505D01* X-56050Y-1638D01* X-56072Y-1771D01* X-56086Y-1890D01* X-56094Y-1993D01* X-56101Y-2082D01* Y-2156D01* X-56086Y-2363D01* X-56057Y-2563D01* X-56012Y-2741D01* X-55961Y-2896D01* X-55931Y-2963D01* X-55901Y-3029D01* X-55879Y-3081D01* X-55857Y-3126D01* X-55842Y-3163D01* X-55827Y-3185D01* X-55813Y-3200D01* Y-3207D01* X-55694Y-3377D01* X-55568Y-3525D01* X-55428Y-3651D01* X-55295Y-3755D01* X-55176Y-3843D01* X-55124Y-3873D01* X-55080Y-3903D01* X-55043Y-3925D01* X-55014Y-3940D01* X-54999Y-3954D01* X-54991D01* X-54784Y-4043D01* X-54562Y-4110D01* X-54347Y-4162D01* X-54148Y-4191D01* X-54052Y-4206D01* X-53970Y-4213D01* X-53896Y-4221D01* X-53829D01* X-53778Y-4228D01* X-56101D01* D01* X-51299D01* Y-1942D01* Y-2149D01* X-51306Y-1986D01* X-51321Y-1831D01* X-51350Y-1683D01* X-51388Y-1542D01* X-51432Y-1409D01* X-51484Y-1290D01* X-51535Y-1172D01* X-51595Y-1076D01* X-51647Y-980D01* X-51698Y-898D01* X-51750Y-832D01* X-51794Y-772D01* X-51832Y-728D01* X-51861Y-698D01* X-51876Y-676D01* X-51883Y-669D01* D02* G37* G36* Y-8676D02* X-52424Y-9097D01* X-52357Y-9194D01* X-52290Y-9290D01* X-52246Y-9371D01* X-52201Y-9445D01* X-52172Y-9512D01* X-52142Y-9556D01* X-52135Y-9586D01* X-52127Y-9593D01* X-52098Y-9682D01* X-52076Y-9771D01* X-52053Y-9860D01* X-52046Y-9941D01* X-52039Y-10015D01* X-52031Y-10074D01* Y-10126D01* X-52039Y-10222D01* X-52046Y-10318D01* X-52091Y-10481D01* X-52157Y-10629D01* X-52231Y-10755D01* X-52305Y-10851D01* X-52372Y-10925D01* X-52416Y-10970D01* X-52424Y-10977D01* X-52431Y-10984D01* X-52512Y-11044D01* X-52601Y-11088D01* X-52801Y-11169D01* X-53008Y-11229D01* X-53215Y-11266D01* X-53319Y-11280D01* X-53408Y-11295D01* X-53489Y-11303D01* X-53563D01* X-53622Y-11310D01* X-53667D01* X-53696D01* X-53704D01* X-53866Y-11303D01* X-54014Y-11295D01* X-54148Y-11280D01* X-54273Y-11258D01* X-54392Y-11236D01* X-54496Y-11206D01* X-54592Y-11177D01* X-54673Y-11147D01* X-54747Y-11118D01* X-54814Y-11088D01* X-54865Y-11058D01* X-54910Y-11036D01* X-54940Y-11014D01* X-54962Y-10999D01* X-54976Y-10984D01* X-54984D01* X-55058Y-10918D01* X-55117Y-10851D01* X-55169Y-10785D01* X-55213Y-10711D01* X-55287Y-10570D01* X-55332Y-10437D01* X-55361Y-10311D01* X-55369Y-10267D01* X-55376Y-10222D01* X-55383Y-10185D01* Y-10045D01* X-55369Y-9948D01* X-55332Y-9778D01* X-55280Y-9615D01* X-55221Y-9475D01* X-55154Y-9356D01* X-55124Y-9312D01* X-55102Y-9268D01* X-55080Y-9238D01* X-55065Y-9216D01* X-55058Y-9201D01* X-55050Y-9194D01* X-55591Y-8742D01* X-55687Y-8861D01* X-55768Y-8979D01* X-55842Y-9083D01* X-55894Y-9186D01* X-55931Y-9268D01* X-55961Y-9327D01* X-55976Y-9371D01* X-55983Y-9379D01* Y-9386D01* X-56020Y-9512D01* X-56050Y-9645D01* X-56072Y-9778D01* X-56086Y-9897D01* X-56094Y-10000D01* X-56101Y-10089D01* Y-10163D01* X-56086Y-10370D01* X-56057Y-10570D01* X-56012Y-10748D01* X-55961Y-10903D01* X-55931Y-10970D01* X-55901Y-11036D01* X-55879Y-11088D01* X-55857Y-11132D01* X-55842Y-11169D01* X-55827Y-11192D01* X-55813Y-11206D01* Y-11214D01* X-55694Y-11384D01* X-55568Y-11532D01* X-55428Y-11658D01* X-55295Y-11761D01* X-55176Y-11850D01* X-55124Y-11880D01* X-55080Y-11909D01* X-55043Y-11932D01* X-55014Y-11946D01* X-54999Y-11961D01* X-54991D01* X-54784Y-12050D01* X-54562Y-12117D01* X-54347Y-12168D01* X-54148Y-12198D01* X-54052Y-12213D01* X-53970Y-12220D01* X-53896Y-12228D01* X-53829D01* X-53778Y-12235D01* X-56101D01* D01* X-51299D01* Y-9948D01* Y-10156D01* X-51306Y-9993D01* X-51321Y-9837D01* X-51350Y-9689D01* X-51388Y-9549D01* X-51432Y-9416D01* X-51484Y-9297D01* X-51535Y-9179D01* X-51595Y-9083D01* X-51647Y-8986D01* X-51698Y-8905D01* X-51750Y-8838D01* X-51794Y-8779D01* X-51832Y-8735D01* X-51861Y-8705D01* X-51876Y-8683D01* X-51883Y-8676D01* D02* G37* G36* X-53667Y-12775D02* X-53726D01* X-53963Y-12783D01* X-54177Y-12805D01* X-54377Y-12834D01* X-54555Y-12871D01* X-54717Y-12916D01* X-54865Y-12975D01* X-54999Y-13027D01* X-55110Y-13086D01* X-55206Y-13145D01* X-55295Y-13197D01* X-55361Y-13249D01* X-55421Y-13301D01* X-55465Y-13338D01* X-55494Y-13367D01* X-55509Y-13389D01* X-55517Y-13397D01* X-55606Y-13515D01* X-55680Y-13641D01* X-55746Y-13774D01* X-55805Y-13907D01* X-55850Y-14041D01* X-55894Y-14174D01* X-55953Y-14433D01* X-55968Y-14551D01* X-55983Y-14662D01* X-55998Y-14758D01* X-56005Y-14847D01* X-56012Y-14914D01* Y-16113D01* X-51380D01* Y-14847D01* Y-14943D01* X-51388Y-14773D01* X-51402Y-14610D01* X-51424Y-14455D01* X-51461Y-14307D01* X-51499Y-14174D01* X-51543Y-14041D01* X-51587Y-13930D01* X-51639Y-13819D01* X-51683Y-13722D01* X-51728Y-13641D01* X-51772Y-13567D01* X-51809Y-13508D01* X-51846Y-13456D01* X-51868Y-13426D01* X-51883Y-13404D01* X-51891Y-13397D01* X-51994Y-13286D01* X-52120Y-13190D01* X-52253Y-13108D01* X-52394Y-13034D01* X-52549Y-12975D01* X-52697Y-12923D01* X-52853Y-12886D01* X-53001Y-12849D01* X-53149Y-12827D01* X-53282Y-12805D01* X-53408Y-12797D01* X-53511Y-12783D01* X-53600D01* X-53667Y-12775D01* D02* G37* G36* X-51380Y-16579D02* D01* X-56012Y-18029D01* Y-20523D01* X-51380D01* Y-19635D01* X-52460Y-19317D01* Y-17815D01* X-51380Y-17496D01* Y-16579D01* D02* G37* %LPD*% G36* X-54199Y11216D02* X-54362Y11193D01* X-54503Y11156D01* X-54614Y11127D01* X-54695Y11090D01* X-54755Y11053D01* X-54791Y11031D01* X-54799Y11023D01* X-54880Y10942D01* X-54940Y10853D01* X-54984Y10764D01* X-55014Y10675D01* X-55028Y10594D01* X-55043Y10535D01* Y11223D01* X-54111D01* X-54199Y11216D01* D02* G37* G36* X-52956Y2180D02* X-52860Y2173D01* X-52771Y2158D01* X-52690Y2143D01* X-52609Y2128D01* X-52542Y2114D01* X-52483Y2099D01* X-52386Y2062D01* X-52312Y2032D01* X-52276Y2010D01* X-52261Y2003D01* X-52165Y1929D01* X-52098Y1847D01* X-52046Y1751D01* X-52017Y1670D01* X-51994Y1588D01* X-51987Y1522D01* X-51980Y1477D01* Y1462D01* X-51994Y1337D01* X-52024Y1226D01* X-52068Y1137D01* X-52120Y1063D01* X-52172Y996D01* X-52216Y959D01* X-52246Y930D01* X-52261Y922D01* X-52320Y893D01* X-52379Y863D01* X-52520Y819D01* X-52675Y789D01* X-52823Y767D01* X-52956Y752D01* X-53016D01* X-53067Y745D01* X-53112D01* X-53141D01* X-53163D01* X-53171D01* X-53282D01* X-53386Y752D01* X-53482Y759D01* X-53570Y774D01* X-53652Y789D01* X-53726Y804D01* X-53852Y833D01* X-53948Y863D01* X-54014Y893D01* X-54052Y915D01* X-54066Y922D01* X-54163Y996D01* X-54229Y1085D01* X-54281Y1174D01* X-54311Y1263D01* X-54333Y1344D01* X-54340Y1411D01* X-54347Y1455D01* Y1470D01* X-54333Y1596D01* X-54303Y1707D01* X-54259Y1795D01* X-54207Y1869D01* X-54155Y1929D01* X-54111Y1973D01* X-54081Y1995D01* X-54066Y2003D01* X-54007Y2032D01* X-53948Y2062D01* X-53807Y2106D01* X-53659Y2143D01* X-53519Y2165D01* X-53386Y2180D01* X-53326D01* X-53275Y2188D01* X-53237D01* X-53208D01* X-53186D01* X-53178D01* X-53067D01* X-52956Y2180D01* D02* G37* G36* X-51299Y-4228D02* X-53704D01* X-53430Y-4213D01* X-53178Y-4184D01* X-53060Y-4169D01* X-52956Y-4147D01* X-52853Y-4117D01* X-52764Y-4095D01* X-52683Y-4073D01* X-52609Y-4043D01* X-52542Y-4021D01* X-52490Y-4006D01* X-52453Y-3984D01* X-52416Y-3977D01* X-52401Y-3962D01* X-52394D01* X-52201Y-3851D01* X-52039Y-3732D01* X-51898Y-3614D01* X-51780Y-3488D01* X-51691Y-3385D01* X-51624Y-3303D01* X-51602Y-3266D01* X-51587Y-3244D01* X-51573Y-3229D01* Y-3222D01* X-51484Y-3037D01* X-51417Y-2852D01* X-51365Y-2674D01* X-51336Y-2504D01* X-51321Y-2430D01* X-51314Y-2363D01* X-51306Y-2304D01* Y-2252D01* X-51299Y-2208D01* Y-4228D01* D02* G37* G36* Y-12235D02* X-53704D01* X-53430Y-12220D01* X-53178Y-12191D01* X-53060Y-12176D01* X-52956Y-12154D01* X-52853Y-12124D01* X-52764Y-12102D01* X-52683Y-12080D01* X-52609Y-12050D01* X-52542Y-12028D01* X-52490Y-12013D01* X-52453Y-11991D01* X-52416Y-11983D01* X-52401Y-11969D01* X-52394D01* X-52201Y-11858D01* X-52039Y-11739D01* X-51898Y-11621D01* X-51780Y-11495D01* X-51691Y-11391D01* X-51624Y-11310D01* X-51602Y-11273D01* X-51587Y-11251D01* X-51573Y-11236D01* Y-11229D01* X-51484Y-11044D01* X-51417Y-10859D01* X-51365Y-10681D01* X-51336Y-10511D01* X-51321Y-10437D01* X-51314Y-10370D01* X-51306Y-10311D01* Y-10259D01* X-51299Y-10215D01* Y-12235D01* D02* G37* G36* X-53437Y-13722D02* X-53304Y-13737D01* X-53178Y-13759D01* X-53067Y-13782D01* X-52964Y-13811D01* X-52860Y-13848D01* X-52771Y-13885D01* X-52609Y-13974D01* X-52475Y-14070D01* X-52372Y-14174D01* X-52283Y-14285D01* X-52216Y-14396D01* X-52165Y-14499D01* X-52127Y-14596D01* X-52105Y-14684D01* X-52091Y-14758D01* X-52076Y-14810D01* Y-15217D01* X-55302D01* Y-14773D01* X-55287Y-14684D01* X-55250Y-14514D01* X-55199Y-14374D01* X-55139Y-14248D01* X-55080Y-14152D01* X-55028Y-14085D01* X-54991Y-14041D01* X-54984Y-14026D01* X-54976D01* X-54910Y-13967D01* X-54829Y-13922D01* X-54740Y-13878D01* X-54643Y-13841D01* X-54444Y-13782D01* X-54229Y-13745D01* X-54133Y-13737D01* X-54037Y-13722D01* X-53955Y-13715D01* X-53874D01* X-53815Y-13708D01* X-53770D01* X-53733D01* X-53726D01* X-53578D01* X-53437Y-13722D01* D02* G37* G36* X-53178Y-19147D02* X-55295Y-18562D01* X-53178Y-17985D01* Y-19147D01* D02* G37* G36* X-51380Y-20523D02* X-56012D01* Y-19073D01* X-51380Y-20523D01* D02* G37* %LPC*% G36* X36754Y-5170D02* X35562Y-6932D01* X36754D01* Y-5170D01* D02* G37* G36* X40772Y-5777D02* X40757D01* X40713Y-5785D01* X40646Y-5792D01* X40565Y-5814D01* X40468Y-5844D01* X40365Y-5896D01* X40269Y-5962D01* X40172Y-6051D01* X40165Y-6066D01* X40135Y-6103D01* X40098Y-6169D01* X40061Y-6258D01* X40017Y-6377D01* X39980Y-6517D01* X39950Y-6687D01* X39943Y-6887D01* Y-6895D01* Y-6909D01* Y-6939D01* Y-6983D01* X39950Y-7028D01* Y-7087D01* X39965Y-7213D01* X39987Y-7346D01* X40017Y-7487D01* X40061Y-7620D01* X40121Y-7738D01* Y-7746D01* X40135Y-7753D01* X40165Y-7797D01* X40224Y-7857D01* X40306Y-7931D01* X40402Y-8005D01* X40520Y-8064D01* X40653Y-8108D01* X40727Y-8116D01* X40809Y-8123D01* X40824D01* X40861Y-8116D01* X40927Y-8108D01* X41001Y-8086D01* X41090Y-8056D01* X41179Y-8005D01* X41275Y-7938D01* X41364Y-7849D01* X41371Y-7834D01* X41401Y-7797D01* X41438Y-7731D01* X41482Y-7635D01* X41527Y-7516D01* X41564Y-7368D01* X41578Y-7279D01* X41593Y-7183D01* X41601Y-7087D01* Y-6976D01* Y-6969D01* Y-6946D01* Y-6917D01* Y-6872D01* X41593Y-6821D01* X41586Y-6761D01* X41571Y-6621D01* X41541Y-6473D01* X41504Y-6317D01* X41445Y-6177D01* X41408Y-6118D01* X41364Y-6058D01* X41356Y-6044D01* X41319Y-6014D01* X41275Y-5970D01* X41201Y-5918D01* X41120Y-5866D01* X41016Y-5822D01* X40905Y-5792D01* X40772Y-5777D01* D02* G37* G36* X-53526Y44535D02* X-54958Y43608D01* X-56206Y44413D01* Y44535D01* Y43731D01* X-55296Y43231D01* X-56206Y42731D01* Y41916D01* X-53526D01* Y42604D01* X-54580Y43209D01* X-53526Y43819D01* Y44535D01* D02* G37* G36* Y41311D02* X-56206D01* Y39141D01* X-53465D01* X-54286D01* X-54147Y39152D01* X-54025Y39174D01* X-53920Y39202D01* X-53831Y39241D01* X-53764Y39279D01* X-53714Y39307D01* X-53687Y39329D01* X-53676Y39340D01* X-53603Y39424D01* X-53553Y39518D01* X-53515Y39618D01* X-53492Y39712D01* X-53476Y39801D01* X-53470Y39834D01* Y39868D01* X-53465Y39895D01* Y39934D01* X-53470Y40029D01* X-53481Y40112D01* X-53498Y40195D01* X-53520Y40267D01* X-53537Y40328D01* X-53553Y40373D01* X-53565Y40400D01* X-53570Y40412D01* X-53614Y40489D01* X-53659Y40556D01* X-53709Y40611D01* X-53753Y40650D01* X-53798Y40678D01* X-53831Y40700D01* X-53853Y40706D01* X-53859Y40711D01* X-53526Y40739D01* Y41311D01* D02* G37* G36* Y38702D02* X-57000Y37614D01* Y38702D01* Y35744D01* X-53526D01* Y36410D01* X-54336Y36649D01* Y37775D01* X-53526Y38014D01* Y38702D01* D02* G37* G36* X-54830Y35278D02* X-55379D01* Y33163D01* X-54830D01* Y35278D01* D02* G37* G36* X-53820Y32370D02* X-54231Y32081D01* X-54153Y31953D01* X-54097Y31831D01* X-54058Y31720D01* X-54031Y31626D01* X-54014Y31543D01* X-54009Y31482D01* X-54003Y31460D01* Y31432D01* X-54014Y31326D01* X-54036Y31232D01* X-54064Y31149D01* X-54103Y31082D01* X-54142Y31032D01* X-54169Y30993D01* X-54192Y30966D01* X-54203Y30960D01* X-54242Y30932D01* X-54286Y30904D01* X-54391Y30860D01* X-54497Y30832D01* X-54602Y30810D01* X-54702Y30799D01* X-54741Y30793D01* X-54780D01* X-54808Y30788D01* X-54830D01* X-54847D01* X-54852D01* X-54935D01* X-55013Y30793D01* X-55152Y30816D01* X-55263Y30843D01* X-55357Y30877D01* X-55429Y30904D01* X-55485Y30932D01* X-55513Y30954D01* X-55524Y30960D01* X-55596Y31032D01* X-55651Y31104D01* X-55690Y31187D01* X-55712Y31260D01* X-55729Y31326D01* X-55735Y31382D01* X-55740Y31404D01* Y31432D01* X-55729Y31548D01* X-55707Y31659D01* X-55674Y31770D01* X-55635Y31870D01* X-55590Y31953D01* X-55574Y31987D01* X-55557Y32020D01* X-55546Y32042D01* X-55535Y32059D01* X-55524Y32070D01* Y32076D01* X-55923Y32370D01* D01* X-55984Y32292D01* X-56040Y32209D01* X-56084Y32131D01* X-56123Y32048D01* X-56162Y31970D01* X-56190Y31887D01* X-56229Y31743D01* X-56245Y31676D01* X-56256Y31615D01* X-56262Y31559D01* X-56267Y31509D01* X-56273Y31471D01* Y32370D01* X-55923D01* X-56273D01* Y30105D01* D01* Y31421D01* X-56267Y31276D01* X-56245Y31138D01* X-56212Y31021D01* X-56179Y30916D01* X-56145Y30832D01* X-56129Y30799D01* X-56112Y30771D01* X-56101Y30744D01* X-56090Y30727D01* X-56084Y30721D01* Y30716D01* X-56012Y30610D01* X-55929Y30516D01* X-55846Y30438D01* X-55762Y30377D01* X-55690Y30327D01* X-55635Y30288D01* X-55612Y30277D01* X-55596Y30266D01* X-55585Y30261D01* X-55579D01* X-55457Y30211D01* X-55330Y30172D01* X-55207Y30144D01* X-55096Y30128D01* X-54997Y30116D01* X-54958Y30111D01* X-54919Y30105D01* X-53465D01* X-54852D01* X-54736Y30111D01* X-54625Y30122D01* X-54525Y30139D01* X-54430Y30161D01* X-54336Y30183D01* X-54253Y30216D01* X-54181Y30244D01* X-54109Y30277D01* X-54047Y30311D01* X-53997Y30338D01* X-53948Y30372D01* X-53909Y30394D01* X-53881Y30416D01* X-53859Y30433D01* X-53848Y30444D01* X-53842Y30449D01* X-53776Y30516D01* X-53720Y30594D01* X-53670Y30666D01* X-53626Y30749D01* X-53587Y30827D01* X-53559Y30910D01* X-53515Y31065D01* X-53498Y31138D01* X-53487Y31204D01* X-53476Y31260D01* X-53470Y31315D01* X-53465Y31354D01* Y31415D01* X-53470Y31509D01* X-53476Y31604D01* X-53492Y31693D01* X-53509Y31770D01* X-53520Y31831D01* X-53537Y31881D01* X-53542Y31915D01* X-53548Y31926D01* X-53587Y32015D01* X-53626Y32103D01* X-53676Y32175D01* X-53720Y32242D01* X-53759Y32298D01* X-53792Y32336D01* X-53814Y32359D01* X-53820Y32370D01* D02* G37* G36* X-53526Y29306D02* X-55457D01* X-55590Y29295D01* X-55712Y29273D01* X-55818Y29245D01* X-55901Y29206D01* X-55968Y29167D01* X-56018Y29140D01* X-56045Y29117D01* X-56056Y29106D01* X-56129Y29029D01* X-56184Y28934D01* X-56223Y28840D01* X-56245Y28745D01* X-56262Y28662D01* X-56267Y28629D01* Y28596D01* X-56273Y28574D01* Y29306D01* D01* Y27130D01* Y28535D01* X-56267Y28440D01* X-56256Y28352D01* X-56240Y28268D01* X-56217Y28196D01* X-56195Y28135D01* X-56179Y28091D01* X-56168Y28063D01* X-56162Y28052D01* X-56118Y27974D01* X-56068Y27907D01* X-56023Y27852D01* X-55979Y27808D01* X-55934Y27774D01* X-55901Y27746D01* X-55879Y27735D01* X-55873Y27730D01* X-56206Y27702D01* Y27130D01* X-56273D01* X-53526D01* Y27780D01* X-55413D01* X-55513Y27863D01* X-55551Y27902D01* X-55590Y27941D01* X-55618Y27974D01* X-55640Y28002D01* X-55651Y28019D01* X-55657Y28024D01* X-55690Y28080D01* X-55712Y28135D01* X-55735Y28190D01* X-55746Y28235D01* X-55751Y28274D01* X-55757Y28307D01* Y28385D01* X-55751Y28424D01* X-55740Y28462D01* X-55735Y28490D01* X-55724Y28512D01* X-55712Y28529D01* X-55707Y28535D01* Y28540D01* X-55685Y28562D01* X-55657Y28585D01* X-55601Y28612D01* X-55574Y28618D01* X-55557Y28623D01* X-55540Y28629D01* X-55535D01* X-55485Y28640D01* X-55429Y28646D01* X-55318Y28651D01* X-55263Y28657D01* X-55224D01* X-55196D01* X-55185D01* X-53526D01* Y29306D01* D02* G37* G36* Y26409D02* X-54047D01* Y24916D01* X-55030D01* Y26137D01* X-55546D01* Y24916D01* X-56473D01* Y26309D01* X-57000Y26381D01* Y26409D01* Y24245D01* X-53526D01* Y26409D01* D02* G37* %LPD*% G36* Y41916D02* X-56206D01* Y42021D01* X-54935Y42848D01* X-53526Y41916D01* D02* G37* G36* X-54253Y40628D02* X-54208Y40584D01* X-54164Y40545D01* X-54131Y40506D01* X-54103Y40473D01* X-54081Y40445D01* X-54070Y40423D01* X-54064Y40417D01* X-54031Y40362D01* X-54009Y40306D01* X-53992Y40251D01* X-53981Y40206D01* X-53975Y40167D01* X-53970Y40134D01* Y40106D01* X-53975Y40051D01* X-53981Y40001D01* X-53997Y39962D01* X-54014Y39929D01* X-54025Y39901D01* X-54042Y39884D01* X-54047Y39873D01* X-54053Y39868D01* X-54092Y39840D01* X-54136Y39823D01* X-54236Y39801D01* X-54281Y39796D01* X-54319Y39790D01* X-54342D01* X-54353D01* X-56206D01* Y40661D01* X-54303D01* X-54253Y40628D01* D02* G37* G36* X-54874Y36776D02* X-56462Y37215D01* X-54874Y37648D01* Y36776D01* D02* G37* G36* X-53526Y35744D02* X-57000D01* Y36832D01* X-53526Y35744D01* D02* G37* %LPC*% G36* X37459Y-32386D02* X37454D01* X37432D01* X37404Y-32392D01* X37365Y-32397D01* X37321Y-32408D01* X37271Y-32419D01* X37221Y-32441D01* X37165Y-32469D01* X37110Y-32508D01* X37060Y-32552D01* X37010Y-32608D01* X36965Y-32669D01* X36926Y-32747D01* X36899Y-32841D01* X36877Y-32941D01* X36871Y-33063D01* Y-33424D01* X38098D01* Y-33002D01* X38092Y-32947D01* X38081Y-32874D01* X38064Y-32797D01* X38037Y-32713D01* X38003Y-32636D01* X37953Y-32563D01* X37948Y-32558D01* X37925Y-32536D01* X37887Y-32508D01* X37837Y-32475D01* X37770Y-32441D01* X37681Y-32414D01* X37581Y-32392D01* X37459Y-32386D01* D02* G37* G36* X38475Y-44624D02* X36888Y-45057D01* X38475Y-45495D01* Y-44624D01* D02* G37* G36* X-12230Y26532D02* X-13621D01* X-12360D01* X-12475Y26523D01* X-12586Y26509D01* X-12688Y26491D01* X-12785Y26468D01* X-12868Y26445D01* X-12946Y26417D01* X-13016Y26389D01* X-13076Y26362D01* X-13131Y26334D01* X-13173Y26311D01* X-13210Y26287D01* X-13237Y26269D01* X-13261Y26255D01* X-13270Y26246D01* X-13274Y26241D01* X-13334Y26186D01* X-13390Y26121D01* X-13436Y26057D01* X-13473Y25992D01* X-13510Y25923D01* X-13538Y25853D01* X-13561Y25789D01* X-13579Y25724D01* X-13593Y25664D01* X-13602Y25608D01* X-13612Y25558D01* X-13616Y25516D01* X-13621Y25479D01* D01* Y25428D01* X-13616Y25345D01* X-13607Y25267D01* X-13589Y25188D01* X-13570Y25119D01* X-13547Y25049D01* X-13519Y24989D01* X-13487Y24929D01* X-13459Y24879D01* X-13427Y24832D01* X-13395Y24791D01* X-13367Y24754D01* X-13344Y24726D01* X-13325Y24703D01* X-13307Y24684D01* X-13297Y24675D01* X-13293Y24671D01* X-13228Y24620D01* X-13159Y24574D01* X-13090Y24532D01* X-13016Y24495D01* X-12937Y24467D01* X-12863Y24444D01* X-12720Y24407D01* X-12651Y24393D01* X-12591Y24384D01* X-12535Y24379D01* X-12489Y24375D01* X-12447Y24370D01* X-11200D01* Y25493D01* X-11209Y25627D01* X-11228Y25752D01* X-11255Y25858D01* X-11288Y25950D01* X-11306Y25992D01* X-11320Y26024D01* X-11334Y26057D01* X-11348Y26080D01* X-11362Y26098D01* X-11366Y26117D01* X-11376Y26121D01* Y26126D01* X-11450Y26214D01* X-11528Y26292D01* X-11616Y26357D01* X-11699Y26408D01* X-11773Y26449D01* X-11805Y26463D01* X-11833Y26477D01* X-11856Y26486D01* X-11874Y26495D01* X-11884Y26500D01* X-11888D01* X-11990Y25890D01* X-11930Y25867D01* X-11874Y25844D01* X-11833Y25821D01* X-11796Y25793D01* X-11768Y25775D01* X-11750Y25756D01* X-11740Y25742D01* X-11736Y25738D01* X-11708Y25701D01* X-11690Y25659D01* X-11676Y25618D01* X-11667Y25581D01* X-11662Y25548D01* X-11657Y25521D01* Y25497D01* X-11662Y25424D01* X-11681Y25354D01* X-11704Y25290D01* X-11731Y25239D01* X-11759Y25197D01* X-11782Y25170D01* X-11801Y25146D01* X-11805Y25142D01* X-11865Y25096D01* X-11935Y25063D01* X-12009Y25036D01* X-12073Y25017D01* X-12138Y25008D01* X-12184Y25003D01* X-12202Y24999D01* X-12216D01* X-12226D01* X-12230D01* Y26532D01* D02* G37* G36* X-11251Y23945D02* X-14448D01* Y23331D01* X-13297D01* X-13353Y23275D01* X-13404Y23220D01* X-13445Y23164D01* X-13487Y23104D01* X-13515Y23049D01* X-13542Y22994D01* X-13565Y22938D01* X-13579Y22887D01* X-13593Y22836D01* X-13602Y22795D01* X-13612Y22753D01* X-13616Y22721D01* X-13621Y22693D01* Y22656D01* X-13616Y22578D01* X-13607Y22504D01* X-13593Y22434D01* X-13575Y22365D01* X-13524Y22250D01* X-13496Y22194D01* X-13468Y22148D01* X-13436Y22102D01* X-13408Y22065D01* X-13385Y22032D01* X-13362Y22005D01* X-13339Y21982D01* X-13325Y21968D01* X-13316Y21959D01* X-13311Y21954D01* X-13251Y21908D01* X-13187Y21866D01* X-13117Y21829D01* X-13043Y21797D01* X-12969Y21769D01* X-12896Y21746D01* X-12748Y21714D01* X-12683Y21704D01* X-12618Y21695D01* X-12563Y21691D01* X-12512Y21686D01* X-12471Y21681D01* X-14448D01* D01* X-11200D01* X-12415D01* X-12309Y21686D01* X-12212Y21695D01* X-12119Y21709D01* X-12032Y21728D01* X-11953Y21746D01* X-11879Y21769D01* X-11814Y21797D01* X-11754Y21825D01* X-11699Y21848D01* X-11653Y21876D01* X-11611Y21899D01* X-11579Y21922D01* X-11551Y21936D01* X-11533Y21949D01* X-11523Y21959D01* X-11519Y21963D01* X-11463Y22019D01* X-11412Y22074D01* X-11371Y22134D01* X-11334Y22190D01* X-11302Y22250D01* X-11278Y22305D01* X-11255Y22361D01* X-11242Y22411D01* X-11228Y22462D01* X-11219Y22508D01* X-11209Y22545D01* X-11205Y22582D01* X-11200Y22610D01* Y22647D01* X-11205Y22721D01* X-11214Y22790D01* X-11228Y22860D01* X-11246Y22920D01* X-11265Y22966D01* X-11278Y23007D01* X-11288Y23030D01* X-11292Y23040D01* X-11334Y23109D01* X-11380Y23174D01* X-11431Y23234D01* X-11477Y23280D01* X-11519Y23322D01* X-11556Y23354D01* X-11579Y23372D01* X-11588Y23377D01* X-11251D01* Y23945D01* D02* G37* G36* Y21187D02* X-13570D01* Y20573D01* X-13880D01* Y21187D01* X-14448D01* Y20573D01* X-11251D01* Y21187D01* D02* G37* G36* X-11944Y20037D02* X-13621D01* Y17875D01* Y18840D01* X-13612Y18757D01* X-13602Y18678D01* X-13589Y18605D01* X-13575Y18540D01* X-13556Y18480D01* X-13538Y18424D01* X-13519Y18373D01* X-13496Y18332D01* X-13478Y18295D01* X-13459Y18263D01* X-13445Y18239D01* X-13431Y18216D01* X-13422Y18203D01* X-13418Y18198D01* X-13413Y18193D01* X-13376Y18152D01* X-13334Y18115D01* X-13293Y18082D01* X-13247Y18059D01* X-13163Y18013D01* X-13085Y17985D01* X-13016Y17971D01* X-12983Y17967D01* X-12960Y17962D01* X-12937Y17958D01* X-12923D01* X-12914D01* X-12909D01* X-12849Y17962D01* X-12794Y17971D01* X-12739Y17981D01* X-12688Y17999D01* X-12600Y18045D01* X-12526Y18096D01* X-12466Y18143D01* X-12424Y18189D01* X-12406Y18207D01* X-12397Y18216D01* X-12392Y18226D01* X-12387Y18230D01* X-12364Y18272D01* X-12336Y18327D01* X-12309Y18392D01* X-12286Y18461D01* X-12258Y18535D01* X-12235Y18614D01* X-12189Y18775D01* X-12166Y18854D01* X-12147Y18928D01* X-12129Y18993D01* X-12115Y19053D01* X-12105Y19104D01* X-12096Y19140D01* X-12087Y19163D01* Y19173D01* X-12073Y19228D01* X-12059Y19270D01* X-12045Y19307D01* X-12036Y19334D01* X-12022Y19353D01* X-12018Y19367D01* X-12009Y19376D01* X-11971Y19404D01* X-11935Y19418D01* X-11907Y19422D01* X-11898D01* X-11893D01* X-11856Y19418D01* X-11824Y19408D01* X-11796Y19395D01* X-11773Y19381D01* X-11754Y19367D01* X-11740Y19353D01* X-11731Y19344D01* X-11727Y19339D01* X-11699Y19288D01* X-11681Y19233D01* X-11662Y19173D01* X-11653Y19117D01* X-11648Y19067D01* X-11643Y19020D01* Y18983D01* X-11648Y18905D01* X-11657Y18840D01* X-11671Y18780D01* X-11690Y18734D01* X-11704Y18697D01* X-11717Y18669D01* X-11727Y18651D01* X-11731Y18646D01* X-11768Y18605D01* X-11814Y18572D01* X-11856Y18544D01* X-11902Y18521D01* X-11944Y18507D01* X-11976Y18498D01* X-11995Y18489D01* X-12004D01* X-11912Y17875D01* X-11796Y17916D01* X-11690Y17967D01* X-11602Y18022D01* X-11528Y18082D01* X-11468Y18138D01* X-11426Y18189D01* X-11408Y18203D01* X-11399Y18216D01* X-11394Y18226D01* X-11389Y18230D01* X-11357Y18286D01* X-11325Y18341D01* X-11278Y18466D01* X-11246Y18591D01* X-11223Y18711D01* X-11214Y18766D01* X-11209Y18817D01* X-11205Y18863D01* Y18905D01* X-11200Y18937D01* Y18983D01* X-11205Y19076D01* X-11209Y19163D01* X-11223Y19247D01* X-11237Y19325D01* X-11251Y19395D01* X-11274Y19459D01* X-11292Y19519D01* X-11315Y19570D01* X-11334Y19616D01* X-11357Y19658D01* X-11376Y19690D01* X-11389Y19718D01* X-11408Y19741D01* X-11417Y19755D01* X-11422Y19764D01* X-11426Y19769D01* X-11473Y19815D01* X-11519Y19857D01* X-11565Y19894D01* X-11611Y19926D01* X-11657Y19949D01* X-11704Y19972D01* X-11787Y20004D01* X-11865Y20023D01* X-11898Y20027D01* X-11921Y20032D01* X-11944Y20037D01* D02* G37* G36* X-11251Y17468D02* X-13621D01* X-12785D01* X-12863Y17463D01* X-12937Y17459D01* X-12992Y17449D01* X-13039Y17445D01* X-13071Y17436D01* X-13094Y17431D01* X-13099D01* X-13154Y17417D01* X-13201Y17399D01* X-13247Y17380D01* X-13284Y17357D01* X-13316Y17339D01* X-13339Y17325D01* X-13353Y17315D01* X-13358Y17311D01* X-13399Y17274D01* X-13436Y17232D01* X-13468Y17191D01* X-13496Y17149D01* X-13519Y17112D01* X-13533Y17080D01* X-13542Y17061D01* X-13547Y17052D01* X-13570Y16987D01* X-13589Y16923D01* X-13602Y16863D01* X-13612Y16807D01* X-13616Y16757D01* X-13621Y16715D01* Y16683D01* X-13616Y16599D01* X-13602Y16516D01* X-13584Y16442D01* X-13561Y16368D01* X-13529Y16299D01* X-13496Y16239D01* X-13459Y16179D01* X-13427Y16128D01* X-13390Y16082D01* X-13353Y16040D01* X-13321Y16003D01* X-13288Y15976D01* X-13265Y15953D01* X-13247Y15934D01* X-13233Y15925D01* X-13228Y15920D01* X-13570D01* Y15352D01* X-11251D01* Y15971D01* Y15967D01* X-12295D01* X-12364D01* X-12429D01* X-12489Y15971D01* X-12540Y15976D01* X-12591D01* X-12632Y15980D01* X-12674Y15985D01* X-12706Y15990D01* X-12762Y15999D01* X-12799Y16003D01* X-12822Y16013D01* X-12826D01* X-12877Y16031D01* X-12928Y16059D01* X-12965Y16087D01* X-13002Y16114D01* X-13025Y16142D01* X-13048Y16165D01* X-13057Y16179D01* X-13062Y16184D01* X-13090Y16234D01* X-13113Y16285D01* X-13126Y16331D01* X-13140Y16378D01* X-13145Y16415D01* X-13150Y16442D01* Y16470D01* X-13145Y16516D01* X-13140Y16558D01* X-13131Y16590D01* X-13117Y16623D01* X-13103Y16650D01* X-13094Y16669D01* X-13090Y16678D01* X-13085Y16683D01* X-13062Y16715D01* X-13034Y16738D01* X-12979Y16780D01* X-12951Y16793D01* X-12933Y16803D01* X-12919Y16812D01* X-12914D01* X-12891Y16821D01* X-12863Y16826D01* X-12794Y16835D01* X-12711Y16844D01* X-12632Y16849D01* X-12554Y16853D01* X-12521D01* X-12489D01* X-12466D01* X-12447D01* X-12433D01* X-12429D01* X-11251D01* Y16590D01* Y17468D01* D02* G37* G36* Y14747D02* X-14448D01* Y14100D01* X-11251D01* Y14747D01* D02* G37* %LPD*% G36* X-12605Y25008D02* X-12692Y25012D01* X-12771Y25026D01* X-12840Y25045D01* X-12896Y25073D01* X-12942Y25096D01* X-12974Y25119D01* X-12997Y25133D01* X-13002Y25137D01* X-13053Y25188D01* X-13090Y25243D01* X-13113Y25299D01* X-13131Y25350D01* X-13140Y25396D01* X-13150Y25433D01* Y25465D01* X-13145Y25534D01* X-13126Y25595D01* X-13103Y25650D01* X-13080Y25696D01* X-13053Y25733D01* X-13029Y25761D01* X-13011Y25779D01* X-13006Y25784D01* X-12951Y25826D01* X-12886Y25863D01* X-12817Y25886D01* X-12752Y25904D01* X-12697Y25913D01* X-12646Y25918D01* X-12628Y25923D01* X-12618D01* X-12609D01* X-12605D01* Y25008D01* D02* G37* G36* X-11200Y24370D02* X-12392D01* X-12304Y24375D01* X-12216Y24379D01* X-12138Y24393D01* X-12064Y24407D01* X-11990Y24421D01* X-11925Y24444D01* X-11865Y24463D01* X-11810Y24486D01* X-11759Y24504D01* X-11717Y24527D01* X-11681Y24546D01* X-11648Y24560D01* X-11625Y24578D01* X-11607Y24587D01* X-11597Y24592D01* X-11593Y24597D01* X-11523Y24657D01* X-11463Y24717D01* X-11412Y24786D01* X-11366Y24860D01* X-11329Y24934D01* X-11297Y25008D01* X-11269Y25082D01* X-11251Y25156D01* X-11232Y25220D01* X-11223Y25285D01* X-11214Y25345D01* X-11205Y25396D01* Y25438D01* X-11200Y25465D01* Y24370D01* D02* G37* G36* X-12272Y23326D02* X-12161Y23308D01* X-12069Y23284D01* X-11995Y23257D01* X-11935Y23229D01* X-11893Y23206D01* X-11870Y23188D01* X-11861Y23183D01* X-11801Y23123D01* X-11759Y23063D01* X-11727Y23003D01* X-11708Y22947D01* X-11694Y22896D01* X-11690Y22860D01* X-11685Y22832D01* Y22823D01* X-11690Y22776D01* X-11694Y22730D01* X-11722Y22647D01* X-11759Y22578D01* X-11805Y22518D01* X-11847Y22471D01* X-11884Y22439D01* X-11912Y22421D01* X-11916Y22411D01* X-11921D01* X-11953Y22393D01* X-11990Y22379D01* X-12073Y22351D01* X-12166Y22333D01* X-12253Y22324D01* X-12332Y22314D01* X-12364D01* X-12397Y22310D01* X-12420D01* X-12443D01* X-12452D01* X-12457D01* X-12577Y22314D01* X-12683Y22333D01* X-12771Y22356D01* X-12845Y22384D01* X-12900Y22407D01* X-12942Y22430D01* X-12965Y22448D01* X-12974Y22453D01* X-13034Y22513D01* X-13076Y22573D01* X-13108Y22633D01* X-13126Y22693D01* X-13140Y22739D01* X-13145Y22781D01* X-13150Y22809D01* Y22818D01* X-13140Y22896D01* X-13122Y22970D01* X-13094Y23030D01* X-13062Y23086D01* X-13029Y23128D01* X-13002Y23155D01* X-12983Y23178D01* X-12974Y23183D01* X-12937Y23211D01* X-12900Y23234D01* X-12808Y23271D01* X-12715Y23294D01* X-12618Y23312D01* X-12535Y23322D01* X-12494Y23326D01* X-12461Y23331D01* X-12433D01* X-12415D01* X-12401D01* X-12397D01* X-12272Y23326D01* D02* G37* G36* X-12078Y20027D02* X-12170Y20004D01* X-12249Y19977D01* X-12313Y19940D01* X-12364Y19903D01* X-12401Y19875D01* X-12420Y19852D01* X-12429Y19843D01* X-12457Y19801D01* X-12489Y19760D01* X-12512Y19709D01* X-12540Y19653D01* X-12586Y19542D01* X-12628Y19427D01* X-12660Y19325D01* X-12669Y19279D01* X-12683Y19237D01* X-12692Y19205D01* X-12697Y19182D01* X-12701Y19163D01* Y19159D01* X-12725Y19071D01* X-12743Y18993D01* X-12762Y18923D01* X-12780Y18863D01* X-12794Y18808D01* X-12808Y18762D01* X-12822Y18725D01* X-12831Y18688D01* X-12845Y18660D01* X-12854Y18637D01* X-12859Y18618D01* X-12868Y18609D01* X-12872Y18591D01* X-12877Y18586D01* X-12896Y18567D01* X-12914Y18554D01* X-12951Y18535D01* X-12979Y18526D01* X-12983D01* X-12988D01* X-13016Y18531D01* X-13039Y18535D01* X-13080Y18563D01* X-13103Y18586D01* X-13113Y18591D01* Y18595D01* X-13136Y18642D01* X-13154Y18692D01* X-13163Y18748D01* X-13173Y18808D01* X-13177Y18859D01* X-13182Y18900D01* Y18942D01* X-13177Y19011D01* X-13173Y19071D01* X-13159Y19122D01* X-13145Y19163D01* X-13131Y19196D01* X-13122Y19219D01* X-13113Y19233D01* X-13108Y19237D01* X-13080Y19274D01* X-13048Y19302D01* X-13016Y19330D01* X-12979Y19348D01* X-12951Y19362D01* X-12928Y19371D01* X-12909Y19381D01* X-12905D01* X-13011Y19958D01* X-13117Y19921D01* X-13210Y19870D01* X-13288Y19820D01* X-13348Y19764D01* X-13399Y19718D01* X-13436Y19676D01* X-13455Y19649D01* X-13464Y19644D01* Y19639D01* X-13491Y19593D01* X-13515Y19542D01* X-13556Y19432D01* X-13584Y19316D01* X-13602Y19200D01* X-13607Y19145D01* X-13612Y19094D01* X-13616Y19048D01* X-13621Y19011D01* Y20037D01* X-11976D01* X-12078Y20027D01* D02* G37* %LPC*% G36* X63270Y14075D02* Y14008D01* X62738Y14075D01* D01* Y12543D01* X62660Y12643D01* X62582Y12737D01* X62510Y12826D01* X62438Y12910D01* X62371Y12987D01* X62305Y13059D01* X62244Y13120D01* X62194Y13181D01* X62144Y13231D01* X62099Y13276D01* X62061Y13315D01* X62027Y13348D01* X61999Y13370D01* X61983Y13387D01* X61972Y13398D01* X61966Y13403D01* X61839Y13514D01* X61716Y13603D01* X61611Y13681D01* X61517Y13747D01* X61439Y13792D01* X61378Y13825D01* X61356Y13836D01* X61339Y13847D01* X61334Y13853D01* X61328D01* X61217Y13903D01* X61111Y13936D01* X61012Y13964D01* X60917Y13981D01* X60839Y13992D01* X60784Y13997D01* X60756D01* X60740D01* X60734D01* X60729D01* X60629Y13992D01* X60534Y13975D01* X60445Y13953D01* X60373Y13931D01* X60312Y13908D01* X60262Y13886D01* X60235Y13870D01* X60224Y13864D01* X60140Y13809D01* X60074Y13747D01* X60007Y13681D01* X59957Y13620D01* X59918Y13564D01* X59885Y13520D01* X59868Y13487D01* X59863Y13481D01* Y13476D01* X59818Y13376D01* X59785Y13276D01* X59763Y13176D01* X59746Y13081D01* X59735Y12998D01* X59729Y12932D01* Y11744D01* D01* Y12876D01* X59735Y12743D01* X59752Y12621D01* X59774Y12510D01* X59796Y12415D01* X59824Y12338D01* X59846Y12282D01* X59857Y12260D01* X59863Y12244D01* X59868Y12238D01* Y12232D01* X59924Y12133D01* X59990Y12044D01* X60062Y11960D01* X60135Y11888D01* X60201Y11827D01* X60251Y11783D01* X60273Y11766D01* X60290Y11755D01* X60296Y11744D01* X63270D01* X60301D01* X60618Y12155D01* X60545Y12221D01* X60490Y12282D01* X60440Y12338D01* X60401Y12388D01* X60373Y12427D01* X60357Y12454D01* X60346Y12477D01* X60340Y12482D01* X60312Y12538D01* X60296Y12599D01* X60279Y12660D01* X60273Y12715D01* X60268Y12765D01* X60262Y12804D01* Y12837D01* X60268Y12921D01* X60285Y12993D01* X60307Y13054D01* X60329Y13109D01* X60351Y13148D01* X60373Y13181D01* X60390Y13198D01* X60396Y13204D01* X60451Y13248D01* X60507Y13281D01* X60568Y13304D01* X60629Y13320D01* X60679Y13331D01* X60723Y13337D01* X60751D01* X60762D01* X60851Y13331D01* X60939Y13315D01* X61023Y13298D01* X61095Y13276D01* X61156Y13248D01* X61206Y13231D01* X61234Y13215D01* X61239Y13209D01* X61245D01* X61334Y13154D01* X61433Y13093D01* X61528Y13021D01* X61622Y12948D01* X61700Y12882D01* X61766Y12826D01* X61789Y12804D01* X61805Y12787D01* X61816Y12782D01* X61822Y12776D01* X61888Y12715D01* X61961Y12649D01* X62116Y12493D01* X62277Y12338D01* X62432Y12182D01* X62505Y12105D01* X62571Y12038D01* X62632Y11977D01* X62682Y11922D01* X62726Y11877D01* X62760Y11844D01* X62782Y11822D01* X62788Y11816D01* X63270D01* Y14075D01* D02* G37* G36* X59796Y11478D02* D01* Y8542D01* X63270D01* X59796D01* X61949Y9674D01* X63270D01* Y10345D01* X61944D01* X59796Y11478D01* D02* G37* G36* X63270Y8203D02* X62749D01* Y6710D01* X61766D01* Y7931D01* X61250D01* Y6710D01* X60323D01* Y8103D01* X59796Y8175D01* Y8203D01* Y6039D01* X63270D01* Y8203D01* D02* G37* G36* Y5500D02* X61383Y4224D01* X59796Y5406D01* Y5500D01* Y4701D01* X61311Y3585D01* X61534D01* X63270Y4740D01* Y3585D01* X61534D01* X61417Y3508D01* X61311Y3585D01* X59796D01* Y2914D01* X63270D01* Y5500D01* D02* G37* %LPD*% G36* X61395Y10018D02* X59796Y9252D01* Y10795D01* X61395Y10018D01* D02* G37* %LPC*% G36* X-25951Y8401D02* X-25959D01* X-25976D01* X-26009D01* X-26059D01* X-26109Y8393D01* X-26176Y8385D01* X-26318Y8368D01* X-26476Y8335D01* X-26634Y8293D01* X-26784Y8226D01* X-26917Y8135D01* X-26934Y8126D01* X-26967Y8085D01* X-27017Y8027D01* X-27076Y7952D01* X-27134Y7852D01* X-27184Y7735D01* X-27217Y7610D01* X-27234Y7460D01* Y7443D01* X-27226Y7393D01* X-27217Y7318D01* X-27192Y7227D01* X-27159Y7127D01* X-27101Y7010D01* X-27026Y6902D01* X-26917Y6802D01* X-26901Y6794D01* X-26859Y6760D01* X-26784Y6727D01* X-26684Y6677D01* X-26551Y6635D01* X-26392Y6594D01* X-26201Y6560D01* X-25976Y6552D01* X-25968D01* X-25951D01* X-25909D01* X-25868Y6560D01* X-25818D01* X-25751Y6569D01* X-25609Y6585D01* X-25451Y6610D01* X-25293Y6660D01* X-25143Y6719D01* X-25010Y6802D01* X-24993Y6810D01* X-24960Y6852D01* X-24910Y6902D01* X-24860Y6977D01* X-24802Y7068D01* X-24751Y7177D01* X-24718Y7302D01* X-24701Y7435D01* Y7452D01* X-24710Y7502D01* X-24718Y7577D01* X-24743Y7677D01* X-24777Y7785D01* X-24835Y7893D01* X-24910Y8010D01* X-25018Y8118D01* X-25035Y8126D01* X-25076Y8160D01* X-25151Y8210D01* X-25251Y8260D01* X-25385Y8310D01* X-25543Y8360D01* X-25734Y8393D01* X-25951Y8401D01* D02* G37* G36* X-26251Y-1261D02* X-26259D01* X-26276D01* X-26293D01* X-26326Y-1270D01* X-26417Y-1278D01* X-26518Y-1295D01* X-26634Y-1328D01* X-26759Y-1370D01* X-26876Y-1436D01* X-26976Y-1511D01* X-26984Y-1520D01* X-27017Y-1553D01* X-27059Y-1603D01* X-27109Y-1670D01* X-27151Y-1753D01* X-27192Y-1853D01* X-27226Y-1961D01* X-27234Y-2086D01* Y-2145D01* X-27217Y-2211D01* X-27200Y-2294D01* X-27167Y-2386D01* X-27126Y-2486D01* X-27059Y-2586D01* X-26967Y-2678D01* X-26959Y-2686D01* X-26917Y-2711D01* X-26859Y-2753D01* X-26776Y-2794D01* X-26676Y-2844D01* X-26551Y-2877D01* X-26409Y-2902D01* X-26251Y-2911D01* Y-1261D01* D02* G37* G36* X-27775Y-5885D02* X-27792D01* X-27825D01* X-27884Y-5893D01* X-27959Y-5910D01* X-28042Y-5935D01* X-28133Y-5968D01* X-28217Y-6010D01* X-28300Y-6076D01* X-28308Y-6084D01* X-28333Y-6109D01* X-28367Y-6151D01* X-28408Y-6201D01* X-28458Y-6268D01* X-28500Y-6351D01* X-28533Y-6443D01* X-28558Y-6543D01* Y-6551D01* X-28567Y-6584D01* X-28575Y-6643D01* X-28583Y-6726D01* Y-6834D01* X-28592Y-6909D01* Y-6984D01* X-28600Y-7068D01* Y-7934D01* X-26959D01* Y-7134D01* X-26967Y-7076D01* Y-6926D01* X-26976Y-6776D01* X-26992Y-6626D01* X-27017Y-6493D01* X-27026Y-6434D01* X-27042Y-6384D01* X-27051Y-6376D01* X-27059Y-6343D01* X-27084Y-6301D01* X-27109Y-6251D01* X-27151Y-6193D01* X-27200Y-6134D01* X-27259Y-6068D01* X-27325Y-6018D01* X-27334Y-6010D01* X-27359Y-5993D01* X-27400Y-5976D01* X-27459Y-5951D01* X-27525Y-5926D01* X-27600Y-5901D01* X-27684Y-5893D01* X-27775Y-5885D01* D02* G37* G36* X-33434Y5594D02* X-33546D01* X-33551D01* X-33571D01* X-33607D01* X-33648D01* X-33699D01* X-33755Y5589D01* X-33821D01* X-33887Y5584D01* X-34029Y5578D01* X-34167Y5568D01* X-34233Y5558D01* X-34299Y5548D01* X-34355Y5538D01* X-34401Y5528D01* X-34406D01* X-34411Y5522D01* X-34437Y5517D01* X-34477Y5502D01* X-34528Y5487D01* X-34579Y5461D01* X-34630Y5436D01* X-34676Y5405D01* X-34712Y5375D01* X-34717Y5370D01* X-34727Y5359D01* X-34737Y5339D01* X-34752Y5314D01* X-34767Y5283D01* X-34783Y5248D01* X-34788Y5207D01* X-34793Y5161D01* Y5141D01* X-34788Y5115D01* X-34783Y5090D01* X-34773Y5054D01* X-34757Y5018D01* X-34737Y4978D01* X-34712Y4942D01* X-34706Y4937D01* X-34696Y4927D01* X-34676Y4912D01* X-34650Y4891D01* X-34610Y4866D01* X-34564Y4845D01* X-34503Y4820D01* X-34432Y4800D01* X-34427D01* X-34421Y4795D01* X-34401D01* X-34381Y4789D01* X-34350Y4784D01* X-34315Y4779D01* X-34274Y4774D01* X-34223Y4769D01* X-34162Y4759D01* X-34101Y4754D01* X-34024Y4749D01* X-33948Y4744D01* X-33856Y4738D01* X-33765D01* X-33658Y4733D01* X-33546D01* X-33541D01* X-33520D01* X-33485D01* X-33444D01* X-33393D01* X-33337Y4738D01* X-33271D01* X-33205Y4744D01* X-33062Y4749D01* X-32920Y4759D01* X-32854Y4764D01* X-32793Y4774D01* X-32737Y4784D01* X-32686Y4795D01* X-32675Y4800D01* X-32650Y4805D01* X-32609Y4820D01* X-32563Y4835D01* X-32513Y4861D01* X-32462Y4886D01* X-32416Y4917D01* X-32380Y4947D01* X-32375Y4952D01* X-32370Y4963D01* X-32355Y4983D01* X-32345Y5008D01* X-32329Y5039D01* X-32314Y5074D01* X-32309Y5115D01* X-32304Y5161D01* Y5181D01* X-32309Y5207D01* X-32314Y5232D01* X-32324Y5268D01* X-32335Y5303D01* X-32355Y5339D01* X-32380Y5375D01* X-32385Y5380D01* X-32396Y5390D01* X-32416Y5410D01* X-32447Y5431D01* X-32482Y5451D01* X-32533Y5477D01* X-32589Y5502D01* X-32660Y5522D01* X-32665D01* X-32670Y5528D01* X-32691D01* X-32711Y5533D01* X-32742Y5538D01* X-32777Y5543D01* X-32818Y5553D01* X-32869Y5558D01* X-32925Y5563D01* X-32991Y5573D01* X-33062Y5578D01* X-33144Y5584D01* X-33230Y5589D01* X-33327D01* X-33434Y5594D01* D02* G37* G36* X-33302Y-4449D02* X-33307D01* X-33317D01* X-33327D01* X-33347Y-4454D01* X-33403Y-4459D01* X-33465Y-4469D01* X-33536Y-4490D01* X-33612Y-4515D01* X-33683Y-4556D01* X-33744Y-4602D01* X-33749Y-4607D01* X-33770Y-4627D01* X-33795Y-4658D01* X-33826Y-4698D01* X-33851Y-4749D01* X-33877Y-4810D01* X-33897Y-4876D01* X-33902Y-4953D01* Y-4989D01* X-33892Y-5029D01* X-33882Y-5080D01* X-33862Y-5136D01* X-33836Y-5197D01* X-33795Y-5258D01* X-33739Y-5314D01* X-33734Y-5319D01* X-33709Y-5335D01* X-33673Y-5360D01* X-33622Y-5385D01* X-33561Y-5416D01* X-33485Y-5436D01* X-33398Y-5452D01* X-33302Y-5457D01* Y-4449D01* D02* G37* G36* X-12360Y-257D02* X-12364D01* X-12374D01* X-12392D01* X-12415Y-262D01* X-12443D01* X-12480Y-266D01* X-12554Y-276D01* X-12637Y-299D01* X-12725Y-326D01* X-12812Y-368D01* X-12886Y-423D01* X-12896Y-433D01* X-12914Y-451D01* X-12946Y-488D01* X-12979Y-534D01* X-13011Y-594D01* X-13043Y-659D01* X-13062Y-738D01* X-13071Y-825D01* Y-848D01* X-13067Y-867D01* X-13062Y-908D01* X-13048Y-964D01* X-13025Y-1029D01* X-12993Y-1098D01* X-12946Y-1167D01* X-12886Y-1232D01* X-12877Y-1237D01* X-12854Y-1255D01* X-12808Y-1283D01* X-12752Y-1310D01* X-12678Y-1343D01* X-12586Y-1366D01* X-12480Y-1384D01* X-12360Y-1393D01* X-12355D01* X-12346D01* X-12327D01* X-12304Y-1389D01* X-12272D01* X-12240Y-1384D01* X-12166Y-1375D01* X-12078Y-1352D01* X-11990Y-1324D01* X-11902Y-1287D01* X-11828Y-1232D01* X-11819Y-1223D01* X-11801Y-1204D01* X-11773Y-1167D01* X-11740Y-1116D01* X-11704Y-1061D01* X-11676Y-992D01* X-11657Y-913D01* X-11648Y-825D01* Y-802D01* X-11653Y-784D01* X-11657Y-742D01* X-11671Y-687D01* X-11694Y-622D01* X-11722Y-553D01* X-11768Y-488D01* X-11828Y-423D01* X-11838Y-414D01* X-11861Y-396D01* X-11907Y-372D01* X-11962Y-340D01* X-12041Y-308D01* X-12129Y-285D01* X-12240Y-266D01* X-12360Y-257D01* D02* G37* G36* X-12387Y-3094D02* X-12392D01* X-12401D01* X-12420D01* X-12447D01* X-12475Y-3098D01* X-12512Y-3103D01* X-12591Y-3112D01* X-12678Y-3131D01* X-12766Y-3154D01* X-12849Y-3191D01* X-12923Y-3241D01* X-12933Y-3246D01* X-12951Y-3269D01* X-12979Y-3302D01* X-13011Y-3343D01* X-13043Y-3399D01* X-13071Y-3463D01* X-13090Y-3533D01* X-13099Y-3616D01* Y-3625D01* X-13094Y-3653D01* X-13090Y-3694D01* X-13076Y-3745D01* X-13057Y-3801D01* X-13025Y-3865D01* X-12983Y-3925D01* X-12923Y-3981D01* X-12914Y-3985D01* X-12891Y-4004D01* X-12849Y-4022D01* X-12794Y-4050D01* X-12720Y-4073D01* X-12632Y-4096D01* X-12526Y-4115D01* X-12401Y-4119D01* X-12397D01* X-12387D01* X-12364D01* X-12341Y-4115D01* X-12313D01* X-12276Y-4110D01* X-12198Y-4101D01* X-12110Y-4087D01* X-12022Y-4059D01* X-11939Y-4027D01* X-11865Y-3981D01* X-11856Y-3976D01* X-11838Y-3953D01* X-11810Y-3925D01* X-11782Y-3884D01* X-11750Y-3833D01* X-11722Y-3773D01* X-11704Y-3703D01* X-11694Y-3630D01* Y-3620D01* X-11699Y-3593D01* X-11704Y-3551D01* X-11717Y-3496D01* X-11736Y-3436D01* X-11768Y-3376D01* X-11810Y-3311D01* X-11870Y-3251D01* X-11879Y-3246D01* X-11902Y-3228D01* X-11944Y-3200D01* X-11999Y-3172D01* X-12073Y-3145D01* X-12161Y-3117D01* X-12267Y-3098D01* X-12387Y-3094D01* D02* G37* G36* X-12466Y-7376D02* X-13653Y-7825D01* X-12466Y-8259D01* Y-7376D01* D02* G37* G36* X-32891Y30572D02* X-32970D01* X-32974D01* X-32988D01* X-33011D01* X-33044Y30568D01* X-33081D01* X-33127Y30563D01* X-33224Y30549D01* X-33330Y30531D01* X-33446Y30498D01* X-33547Y30452D01* X-33598Y30425D01* X-33640Y30392D01* X-33644D01* X-33649Y30383D01* X-33672Y30360D01* X-33709Y30323D01* X-33751Y30272D01* X-33788Y30207D01* X-33825Y30134D01* X-33848Y30046D01* X-33857Y30000D01* Y29930D01* X-33852Y29912D01* X-33843Y29861D01* X-33829Y29801D01* X-33801Y29732D01* X-33760Y29658D01* X-33737Y29621D01* X-33704Y29584D01* X-33672Y29547D01* X-33630Y29510D01* X-33626D01* X-33621Y29501D01* X-33607Y29491D01* X-33589Y29482D01* X-33566Y29468D01* X-33538Y29450D01* X-33506Y29436D01* X-33469Y29417D01* X-33423Y29399D01* X-33376Y29385D01* X-33321Y29367D01* X-33266Y29353D01* X-33201Y29344D01* X-33132Y29334D01* X-33062Y29325D01* X-32984D01* X-32979D01* X-32965D01* X-32942D01* X-32914D01* X-32882Y29330D01* X-32840D01* X-32753Y29339D01* X-32656Y29353D01* X-32554Y29371D01* X-32462Y29399D01* X-32420Y29417D01* X-32383Y29436D01* X-32379D01* X-32369Y29445D01* X-32355Y29454D01* X-32337Y29468D01* X-32286Y29510D01* X-32235Y29570D01* X-32180Y29639D01* X-32129Y29727D01* X-32111Y29773D01* X-32097Y29829D01* X-32087Y29879D01* X-32083Y29939D01* Y29963D01* X-32087Y29981D01* X-32097Y30032D01* X-32111Y30092D01* X-32138Y30161D01* X-32175Y30235D01* X-32231Y30309D01* X-32268Y30346D01* X-32305Y30383D01* X-32309D01* X-32314Y30392D01* X-32328Y30402D01* X-32346Y30411D01* X-32369Y30429D01* X-32397Y30443D01* X-32434Y30461D01* X-32471Y30480D01* X-32517Y30494D01* X-32563Y30512D01* X-32619Y30531D01* X-32679Y30545D01* X-32743Y30554D01* X-32813Y30563D01* X-32891Y30572D01* D02* G37* G36* X-32854Y26752D02* X-32933D01* X-32937D01* X-32956D01* X-32979D01* X-33011Y26747D01* X-33048D01* X-33095Y26742D01* X-33145Y26738D01* X-33201Y26729D01* X-33312Y26706D01* X-33427Y26673D01* X-33538Y26627D01* X-33584Y26599D01* X-33630Y26567D01* X-33635D01* X-33640Y26558D01* X-33667Y26535D01* X-33704Y26493D01* X-33746Y26442D01* X-33788Y26377D01* X-33820Y26299D01* X-33848Y26211D01* X-33852Y26165D01* X-33857Y26114D01* Y26091D01* X-33852Y26072D01* X-33848Y26022D01* X-33829Y25962D01* X-33806Y25892D01* X-33764Y25818D01* X-33714Y25745D01* X-33677Y25708D01* X-33640Y25675D01* X-33635D01* X-33630Y25666D01* X-33617Y25661D01* X-33598Y25648D01* X-33575Y25634D01* X-33547Y25620D01* X-33515Y25606D01* X-33478Y25587D01* X-33432Y25569D01* X-33381Y25555D01* X-33326Y25541D01* X-33266Y25527D01* X-33201Y25518D01* X-33127Y25509D01* X-33048Y25500D01* X-32965D01* X-32961D01* X-32947D01* X-32924D01* X-32891Y25504D01* X-32854D01* X-32813Y25509D01* X-32716Y25523D01* X-32610Y25546D01* X-32499Y25578D01* X-32392Y25624D01* X-32346Y25652D01* X-32300Y25684D01* Y25689D01* X-32291Y25694D01* X-32268Y25717D01* X-32231Y25758D01* X-32194Y25809D01* X-32152Y25874D01* X-32115Y25952D01* X-32092Y26036D01* X-32087Y26082D01* X-32083Y26128D01* Y26151D01* X-32087Y26170D01* X-32092Y26220D01* X-32111Y26280D01* X-32134Y26350D01* X-32171Y26424D01* X-32221Y26498D01* X-32254Y26535D01* X-32291Y26567D01* X-32295D01* X-32300Y26576D01* X-32314Y26585D01* X-32332Y26595D01* X-32355Y26608D01* X-32379Y26627D01* X-32415Y26641D01* X-32452Y26659D01* X-32494Y26678D01* X-32540Y26692D01* X-32596Y26710D01* X-32651Y26724D01* X-32716Y26733D01* X-32780Y26742D01* X-32854Y26752D01* D02* G37* G36* X-33192Y24349D02* X-33196D01* X-33206D01* X-33219Y24345D01* X-33238D01* X-33293Y24335D01* X-33353Y24322D01* X-33427Y24298D01* X-33496Y24275D01* X-33566Y24238D01* X-33626Y24197D01* X-33630D01* X-33635Y24188D01* X-33663Y24164D01* X-33700Y24123D01* X-33741Y24068D01* X-33783Y23998D01* X-33820Y23915D01* X-33848Y23818D01* X-33852Y23767D01* X-33857Y23712D01* Y23684D01* X-33852Y23665D01* X-33848Y23615D01* X-33834Y23555D01* X-33811Y23481D01* X-33778Y23402D01* X-33732Y23328D01* X-33672Y23254D01* X-33663Y23245D01* X-33640Y23227D01* X-33598Y23194D01* X-33543Y23162D01* X-33478Y23125D01* X-33395Y23093D01* X-33298Y23065D01* X-33192Y23051D01* Y24349D01* D02* G37* G36* X-32914Y19313D02* X-32993D01* X-32998D01* X-33011D01* X-33035D01* X-33062Y19309D01* X-33099D01* X-33141Y19304D01* X-33233Y19290D01* X-33339Y19267D01* X-33446Y19235D01* X-33552Y19189D01* X-33598Y19156D01* X-33640Y19124D01* X-33644D01* X-33649Y19115D01* X-33672Y19092D01* X-33709Y19050D01* X-33751Y18995D01* X-33788Y18930D01* X-33825Y18851D01* X-33848Y18764D01* X-33857Y18718D01* Y18644D01* X-33852Y18625D01* X-33848Y18574D01* X-33829Y18514D01* X-33806Y18440D01* X-33764Y18366D01* X-33714Y18293D01* X-33677Y18256D01* X-33640Y18218D01* X-33635D01* X-33630Y18209D01* X-33617Y18200D01* X-33598Y18191D01* X-33580Y18177D01* X-33552Y18163D01* X-33520Y18145D01* X-33483Y18131D01* X-33441Y18112D01* X-33390Y18094D01* X-33339Y18080D01* X-33284Y18066D01* X-33219Y18057D01* X-33155Y18048D01* X-33085Y18038D01* X-33007D01* X-33002D01* X-32988D01* X-32965D01* X-32933Y18043D01* X-32896D01* X-32850Y18048D01* X-32753Y18061D01* X-32642Y18085D01* X-32536Y18112D01* X-32429Y18158D01* X-32383Y18186D01* X-32342Y18218D01* X-32332Y18228D01* X-32309Y18251D01* X-32277Y18288D01* X-32240Y18343D01* X-32198Y18408D01* X-32166Y18486D01* X-32143Y18574D01* X-32138Y18620D01* X-32134Y18671D01* Y18699D01* X-32138Y18718D01* X-32143Y18768D01* X-32161Y18833D01* X-32184Y18902D01* X-32221Y18981D01* X-32272Y19055D01* X-32305Y19092D01* X-32342Y19129D01* X-32346D01* X-32351Y19138D01* X-32365Y19147D01* X-32383Y19156D01* X-32402Y19170D01* X-32429Y19189D01* X-32462Y19203D01* X-32503Y19221D01* X-32545Y19240D01* X-32591Y19253D01* X-32646Y19272D01* X-32706Y19286D01* X-32767Y19295D01* X-32836Y19304D01* X-32914Y19313D01* D02* G37* G36* X-33192Y13663D02* X-33196D01* X-33206D01* X-33219Y13659D01* X-33238D01* X-33293Y13649D01* X-33353Y13635D01* X-33427Y13612D01* X-33496Y13589D01* X-33566Y13552D01* X-33626Y13511D01* X-33630D01* X-33635Y13501D01* X-33663Y13478D01* X-33700Y13437D01* X-33741Y13381D01* X-33783Y13312D01* X-33820Y13229D01* X-33848Y13132D01* X-33852Y13081D01* X-33857Y13026D01* Y12998D01* X-33852Y12979D01* X-33848Y12929D01* X-33834Y12869D01* X-33811Y12795D01* X-33778Y12716D01* X-33732Y12642D01* X-33672Y12568D01* X-33663Y12559D01* X-33640Y12541D01* X-33598Y12508D01* X-33543Y12476D01* X-33478Y12439D01* X-33395Y12407D01* X-33298Y12379D01* X-33192Y12365D01* Y13663D01* D02* G37* G36* X-33432Y11108D02* X-33437D01* X-33455D01* X-33478D01* X-33515Y11104D01* X-33557D01* X-33603Y11099D01* X-33658Y11095D01* X-33714Y11090D01* X-33838Y11067D01* X-33968Y11039D01* X-34088Y10998D01* X-34148Y10970D01* X-34199Y10942D01* X-34203D01* X-34213Y10933D01* X-34227Y10924D01* X-34245Y10914D01* X-34291Y10877D01* X-34347Y10831D01* X-34407Y10771D01* X-34467Y10702D01* X-34517Y10623D01* X-34559Y10540D01* X-34564Y10531D01* X-34568Y10508D01* X-34582Y10466D01* X-34596Y10406D01* X-34605Y10332D01* X-34619Y10240D01* X-34624Y10184D01* Y10124D01* X-34628Y10064D01* Y9325D01* X-32189D01* Y10083D01* X-32194Y10115D01* X-32198Y10184D01* X-32203Y10263D01* X-32212Y10346D01* X-32226Y10429D01* X-32245Y10498D01* X-32249Y10508D01* X-32254Y10531D01* X-32268Y10563D01* X-32286Y10605D01* X-32314Y10651D01* X-32342Y10697D01* X-32374Y10743D01* X-32411Y10790D01* X-32420Y10794D01* X-32438Y10813D01* X-32471Y10840D01* X-32517Y10873D01* X-32577Y10910D01* X-32646Y10951D01* X-32725Y10988D01* X-32813Y11021D01* X-32817D01* X-32827Y11025D01* X-32840Y11030D01* X-32859Y11034D01* X-32882Y11039D01* X-32914Y11048D01* X-32947Y11057D01* X-32984Y11067D01* X-33076Y11081D01* X-33182Y11095D01* X-33303Y11104D01* X-33432Y11108D01* D02* G37* %LPD*% D10* X34000Y-58100D02* G03* X37832Y-52114I-2000J5500D01* G01* X900Y-1500D02* G03* X6886Y-5332I5500J2000D01* G01* D11* X27700Y-55700D02* G03* X27200Y-56200I0J-500D01* G01* Y-61800D02* G03* X27700Y-62300I500J0D01* G01* X30300D02* G03* X30800Y-61800I0J500D01* G01* Y-56200D02* G03* X30300Y-55700I-500J0D01* G01* X27200Y-61800D02* Y-56200D01* X30800Y-61800D02* Y-56200D01* D12* X-53050Y17050D02* Y18350D01* X-53400Y17050D02* X-53050D01* X-53400D02* Y18350D01* X-53050D01* X-54950Y17050D02* X-54600Y17050D01* Y18350D01* X-54950Y18350D02* X-54600Y18350D01* X-54950Y17050D02* Y18350D01* X-25100Y-57700D02* Y-57200D01* X-29900Y-57700D02* Y-57200D01* X-25100D01* X-29900Y-57700D02* X-25100D01* X-29900Y-55300D02* X-25100D01* X-29900Y-55800D02* X-25100D01* X-29900D02* Y-55300D01* X-25100Y-55800D02* Y-55300D01* X-31600Y-57700D02* Y-57200D01* X-36400Y-57700D02* Y-57200D01* X-31600D01* X-36400Y-57700D02* X-31600D01* X-36400Y-55300D02* X-31600D01* X-36400Y-55800D02* X-31600D01* X-36400D02* Y-55300D01* X-31600Y-55800D02* Y-55300D01* X-36400Y-41300D02* Y-40800D01* X-31600Y-41300D02* Y-40800D01* X-36400Y-41300D02* X-31600D01* X-36400Y-40800D02* X-31600D01* X-36400Y-43200D02* X-31600D01* X-36400Y-42700D02* X-31600D01* Y-43200D02* Y-42700D01* X-36400Y-43200D02* Y-42700D01* X-29900Y-41300D02* Y-40800D01* X-25100Y-41300D02* Y-40800D01* X-29900Y-41300D02* X-25100D01* X-29900Y-40800D02* X-25100D01* X-29900Y-43200D02* X-25100D01* X-29900Y-42700D02* X-25100D01* Y-43200D02* Y-42700D01* X-29900Y-43200D02* Y-42700D01* D13* X-50402Y20413D02* Y24743D01* X-47056D01* X-38198Y20413D02* Y24743D01* X-41544D02* X-38198D01* X-34350Y-18244D02* X-15650D01* Y-33756D02* Y-31925D01* Y-20075D02* Y-18244D01* X-34350Y-33756D02* X-15650D01* X-34350D02* Y-31925D01* Y-20075D02* Y-18244D01* X21169Y-18055D02* Y-17957D01* Y-25043D02* Y-24945D01* Y-25043D02* X29831D01* Y-18055D02* Y-17957D01* Y-25043D02* Y-24945D01* X21169Y-17957D02* X29831D01* D14* X-12500Y-54000D02* Y-38000D01* X-14000D02* X-12500D01* X-14000Y-41000D02* X-12500D01* X-14000D02* Y-38000D01* Y-54000D02* X-12500D01* X-23500D02* X-22000D01* Y-41000D02* Y-38000D01* X-23500Y-54000D02* Y-38000D01* X-22000D01* X-23500Y-41000D02* X-22000D01* D15* X-10000Y-18500D02* X4000D01* Y-23500D02* Y-18500D01* X-10000Y-23500D02* X4000D01* X-10000D02* Y-18500D01* X0Y-23500D02* Y-18500D01* X4500D02* X18500D01* Y-23500D02* Y-18500D01* X4500Y-23500D02* X18500D01* X4500D02* Y-18500D01* X14500Y-23500D02* Y-18500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GTP ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8421504* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.03937,0.03937,0,0,270.0* 21,1,0.01968,0.05906,0,0,270.0* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% D16* X-54000Y19700D02* D03* Y15700D02* D03* D17* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D18* X-77000Y45063D02* D03* Y16000D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D19* X-62500Y24626D02* D03* Y32500D02* D03* Y28563D02* D03* Y36437D02* D03* Y40374D02* D03* Y20689D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.GTS ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,B24A499B-10B0-4348-9313-877DE5855C24* G04* G04* G04 #@! TF.FilePolarity,Negative* G04* G01* G75* G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% G04:AMPARAMS|DCode=31|XSize=65mil|YSize=120mil|CornerRadius=16.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD31* 21,1,0.06500,0.08750,0,0,180.0* 21,1,0.03250,0.12000,0,0,180.0* 1,1,0.03250,-0.01625,0.04375* 1,1,0.03250,0.01625,0.04375* 1,1,0.03250,0.01625,-0.04375* 1,1,0.03250,-0.01625,-0.04375* % %ADD31ROUNDEDRECTD31*% %ADD32R,0.06500X0.06000*% %ADD33R,0.07700X0.02500*% %ADD34R,0.08900X0.21100*% %ADD35R,0.10000X0.10000*% G04:AMPARAMS|DCode=36|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD36* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % %ADD36ROUNDEDRECTD36*% G04:AMPARAMS|DCode=37|XSize=29.62mil|YSize=45.37mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD37* 21,1,0.02962,0.02756,0,0,180.0* 21,1,0.01181,0.04537,0,0,180.0* 1,1,0.01781,-0.00591,0.01378* 1,1,0.01781,0.00591,0.01378* 1,1,0.01781,0.00591,-0.01378* 1,1,0.01781,-0.00591,-0.01378* % %ADD37ROUNDEDRECTD37*% G04:AMPARAMS|DCode=38|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD38* 21,1,0.04537,0.03937,0,0,270.0* 21,1,0.01968,0.06506,0,0,270.0* 1,1,0.02568,-0.01968,-0.00984* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* % %ADD38ROUNDEDRECTD38*% G04:AMPARAMS|DCode=39|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD39* 21,1,0.02175,0.05118,0,0,90.0* 21,1,0.00787,0.06506,0,0,90.0* 1,1,0.01387,0.02559,0.00394* 1,1,0.01387,0.02559,-0.00394* 1,1,0.01387,-0.02559,-0.00394* 1,1,0.01387,-0.02559,0.00394* % %ADD39ROUNDEDRECTD39*% G04:AMPARAMS|DCode=40|XSize=46mil|YSize=66mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD40* 21,1,0.04600,0.04000,0,0,180.0* 21,1,0.02000,0.06600,0,0,180.0* 1,1,0.02600,-0.01000,0.02000* 1,1,0.02600,0.01000,0.02000* 1,1,0.02600,0.01000,-0.02000* 1,1,0.02600,-0.01000,-0.02000* % %ADD40ROUNDEDRECTD40*% G04:AMPARAMS|DCode=41|XSize=22mil|YSize=22mil|CornerRadius=11mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD41* 21,1,0.02200,0.00000,0,0,270.0* 21,1,0.00000,0.02200,0,0,270.0* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* % %ADD41ROUNDEDRECTD41*% G04:AMPARAMS|DCode=42|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD42* 21,1,0.04537,0.03937,0,0,0.0* 21,1,0.01968,0.06506,0,0,0.0* 1,1,0.02568,0.00984,-0.01968* 1,1,0.02568,-0.00984,-0.01968* 1,1,0.02568,-0.00984,0.01968* 1,1,0.02568,0.00984,0.01968* % %ADD42ROUNDEDRECTD42*% G04:AMPARAMS|DCode=43|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD43* 21,1,0.02175,0.05118,0,0,180.0* 21,1,0.00787,0.06506,0,0,180.0* 1,1,0.01387,-0.00394,0.02559* 1,1,0.01387,0.00394,0.02559* 1,1,0.01387,0.00394,-0.02559* 1,1,0.01387,-0.00394,-0.02559* % %ADD43ROUNDEDRECTD43*% %ADD44R,0.02568X0.02568*% G04:AMPARAMS|DCode=45|XSize=46mil|YSize=80mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD45* 21,1,0.04600,0.05400,0,0,90.0* 21,1,0.02000,0.08000,0,0,90.0* 1,1,0.02600,0.02700,0.01000* 1,1,0.02600,0.02700,-0.01000* 1,1,0.02600,-0.02700,-0.01000* 1,1,0.02600,-0.02700,0.01000* % %ADD45ROUNDEDRECTD45*% G04:AMPARAMS|DCode=46|XSize=65.06mil|YSize=45.37mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD46* 21,1,0.06506,0.01968,0,0,180.0* 21,1,0.03937,0.04537,0,0,180.0* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* % %ADD46ROUNDEDRECTD46*% G04:AMPARAMS|DCode=47|XSize=61mil|YSize=71mil|CornerRadius=16.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD47* 21,1,0.06100,0.03750,0,0,90.0* 21,1,0.02750,0.07100,0,0,90.0* 1,1,0.03350,0.01875,0.01375* 1,1,0.03350,0.01875,-0.01375* 1,1,0.03350,-0.01875,-0.01375* 1,1,0.03350,-0.01875,0.01375* % %ADD47ROUNDEDRECTD47*% G04:AMPARAMS|DCode=48|XSize=25.68mil|YSize=29.62mil|CornerRadius=7.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD48* 21,1,0.02568,0.01378,0,0,90.0* 21,1,0.00984,0.02962,0,0,90.0* 1,1,0.01584,0.00689,0.00492* 1,1,0.01584,0.00689,-0.00492* 1,1,0.01584,-0.00689,-0.00492* 1,1,0.01584,-0.00689,0.00492* % %ADD48ROUNDEDRECTD48*% %ADD49C,0.20600*% G36* X65500Y16983D02* X49854D01* Y48156D01* X65500D01* Y16983D01* D02* G37* G36* X72378Y44332D02* X70267Y43110D01* X72378Y41899D01* Y40521D01* X69556Y42388D01* X67012Y40732D01* Y42154D01* X68834Y43154D01* X67012Y44154D01* Y45520D01* X69511Y43910D01* X72378Y45765D01* Y44332D01* D02* G37* G36* X72500Y39232D02* Y39221D01* X72489Y39188D01* Y39143D01* X72478Y39077D01* X72456Y39010D01* X72433Y38921D01* X72378Y38732D01* X72289Y38532D01* X72167Y38332D01* X72089Y38255D01* X72000Y38177D01* X71911Y38110D01* X71800Y38066D01* X71811Y38055D01* X71856Y38032D01* X71911Y37977D01* X71989Y37910D01* X72078Y37821D01* X72156Y37710D01* X72245Y37577D01* X72322Y37421D01* X72333Y37399D01* X72344Y37343D01* X72378Y37255D01* X72411Y37132D01* X72444Y36988D01* X72467Y36821D01* X72489Y36644D01* X72500Y36455D01* Y36377D01* X72489Y36321D01* Y36244D01* X72478Y36166D01* X72444Y35977D01* X72389Y35766D01* X72311Y35544D01* X72200Y35333D01* X72044Y35133D01* X72033D01* X72022Y35110D01* X71956Y35055D01* X71856Y34977D01* X71711Y34888D01* X71533Y34799D01* X71322Y34722D01* X71078Y34666D01* X70945Y34655D01* X70800Y34644D01* X70789D01* X70767D01* X70722D01* X70656Y34655D01* X70589Y34666D01* X70500Y34677D01* X70311Y34733D01* X70100Y34811D01* X69989Y34866D01* X69878Y34933D01* X69778Y35010D01* X69667Y35099D01* X69567Y35199D01* X69478Y35322D01* X69467Y35333D01* X69456Y35355D01* X69434Y35388D01* X69400Y35444D01* X69367Y35522D01* X69334Y35599D01* X69289Y35699D01* X69245Y35810D01* X69200Y35944D01* X69156Y36077D01* X69123Y36233D01* X69089Y36399D01* X69056Y36588D01* X69034Y36777D01* X69011Y36988D01* Y37843D01* X68767D01* X68745D01* X68700D01* X68623Y37832D01* X68523Y37810D01* X68423Y37777D01* X68312Y37732D01* X68223Y37666D01* X68134Y37577D01* X68123Y37566D01* X68100Y37532D01* X68067Y37466D01* X68034Y37388D01* X68001Y37277D01* X67967Y37144D01* X67945Y36988D01* X67934Y36799D01* Y36699D01* X67945Y36621D01* Y36533D01* X67956Y36421D01* X67978Y36310D01* X68001Y36177D01* Y36166D01* X68012Y36110D01* X68023Y36044D01* X68045Y35944D01* X68078Y35822D01* X68111Y35677D01* X68145Y35522D01* X68189Y35355D01* X67267Y35044D01* Y35055D01* X67245Y35088D01* X67234Y35144D01* X67200Y35221D01* X67178Y35310D01* X67145Y35410D01* X67112Y35533D01* X67067Y35666D01* X67001Y35955D01* X66934Y36277D01* X66889Y36621D01* X66878Y36966D01* Y37066D01* X66889Y37144D01* Y37232D01* X66901Y37332D01* X66934Y37566D01* X66989Y37832D01* X67078Y38099D01* X67200Y38355D01* X67267Y38466D01* X67356Y38577D01* Y38588D01* X67378Y38599D01* X67445Y38666D01* X67556Y38754D01* X67700Y38855D01* X67889Y38954D01* X68123Y39043D01* X68389Y39110D01* X68545Y39121D01* X68700Y39132D01* X71022D01* X71034D01* X71067D01* X71111D01* X71167Y39143D01* X71300Y39166D01* X71356Y39177D01* X71411Y39199D01* X71433Y39210D01* X71456Y39232D01* X71478Y39266D01* X71511Y39310D01* X71544Y39366D01* X71578Y39432D01* X71611Y39521D01* X72500Y39232D01* D02* G37* G36* X72378Y32588D02* X68589D01* X68567D01* X68523D01* X68456D01* X68367Y32577D01* X68189Y32566D01* X68111Y32555D01* X68056Y32533D01* X68045D01* X68034Y32522D01* X67989Y32489D01* X67945Y32433D01* X67923Y32388D01* Y32333D01* X67934Y32277D01* X67945Y32211D01* X67978Y32122D01* X68034Y32022D01* X68111Y31911D01* X68223Y31789D01* X68367Y31677D01* X72378D01* Y30589D01* X68589D01* X68567D01* X68523D01* X68456D01* X68367Y30578D01* X68189Y30566D01* X68111Y30555D01* X68056Y30533D01* X68045D01* X68034Y30522D01* X67989Y30489D01* X67945Y30433D01* X67923Y30389D01* Y30333D01* X67934Y30278D01* X67945Y30211D01* X67978Y30122D01* X68034Y30022D01* X68111Y29911D01* X68223Y29789D01* X68367Y29678D01* X72378D01* Y28500D01* X67012D01* Y29511D01* X67567Y29566D01* X67556D01* X67512Y29589D01* X67456Y29611D01* X67389Y29655D01* X67312Y29700D01* X67223Y29766D01* X67145Y29844D01* X67067Y29944D01* X67056Y29955D01* X67034Y29989D01* X67012Y30055D01* X66967Y30133D01* X66934Y30233D01* X66912Y30344D01* X66889Y30466D01* X66878Y30611D01* Y30678D01* X66889Y30733D01* X66912Y30855D01* X66956Y31011D01* X67034Y31166D01* X67089Y31244D01* X67145Y31322D01* X67223Y31389D01* X67312Y31444D01* X67412Y31500D01* X67523Y31533D01* X67512Y31544D01* X67478Y31555D01* X67423Y31589D01* X67356Y31633D01* X67289Y31688D01* X67212Y31755D01* X67134Y31844D01* X67067Y31944D01* X67056Y31955D01* X67034Y32000D01* X67012Y32055D01* X66967Y32144D01* X66934Y32244D01* X66912Y32366D01* X66889Y32489D01* X66878Y32633D01* Y32722D01* X66901Y32811D01* X66923Y32933D01* X66967Y33066D01* X67034Y33200D01* X67123Y33333D01* X67245Y33455D01* X67256Y33466D01* X67312Y33500D01* X67400Y33555D01* X67523Y33611D01* X67689Y33655D01* X67901Y33711D01* X68145Y33744D01* X68278Y33755D01* X68434D01* X72378D01* Y32588D01* D02* G37* G36* X28336Y75590D02* X31649D01* Y73350D01* X28336D01* Y70000D01* X26041D01* Y73350D01* X22727D01* Y75590D01* X26041D01* Y78959D01* X28336D01* Y75590D01* D02* G37* G36* X74828Y-30331D02* X74902D01* X74983Y-30346D01* X75072Y-30353D01* X75175Y-30368D01* X75390Y-30413D01* X75619Y-30479D01* X75730Y-30516D01* X75841Y-30568D01* X75945Y-30620D01* X76049Y-30686D01* X76056Y-30694D01* X76071Y-30701D01* X76093Y-30723D01* X76130Y-30753D01* X76167Y-30790D01* X76211Y-30834D01* X76256Y-30886D01* X76308Y-30945D01* X76352Y-31019D01* X76404Y-31093D01* X76448Y-31182D01* X76485Y-31271D01* X76522Y-31375D01* X76544Y-31486D01* X76559Y-31597D01* X76567Y-31722D01* Y-31774D01* X76559Y-31811D01* X76552Y-31863D01* X76544Y-31915D01* X76522Y-32033D01* X76478Y-32166D01* X76411Y-32300D01* X76367Y-32366D01* X76315Y-32425D01* X76263Y-32477D01* X76197Y-32529D01* X77802D01* X77891Y-33395D01* X72911D01* Y-32633D01* X73348Y-32603D01* X73340Y-32596D01* X73311Y-32581D01* X73266Y-32559D01* X73214Y-32514D01* X73148Y-32462D01* X73089Y-32403D01* X73029Y-32322D01* X72970Y-32226D01* X72963Y-32211D01* X72948Y-32181D01* X72926Y-32122D01* X72896Y-32048D01* X72867Y-31959D01* X72844Y-31863D01* X72830Y-31752D01* X72822Y-31641D01* Y-31582D01* X72837Y-31523D01* X72852Y-31434D01* X72881Y-31338D01* X72918Y-31227D01* X72978Y-31108D01* X73052Y-30982D01* X73155Y-30857D01* X73274Y-30738D01* X73348Y-30686D01* X73429Y-30627D01* X73518Y-30575D01* X73607Y-30531D01* X73710Y-30487D01* X73821Y-30442D01* X73940Y-30413D01* X74073Y-30383D01* X74213Y-30353D01* X74361Y-30339D01* X74517Y-30324D01* X74687D01* X74694D01* X74724D01* X74768D01* X74828Y-30331D01* D02* G37* G36* X74791Y-34357D02* X74857Y-34364D01* X74998Y-34379D01* Y-36658D01* X75005D01* X75013D01* X75035Y-36651D01* X75064D01* X75138Y-36636D01* X75235Y-36614D01* X75338Y-36577D01* X75449Y-36532D01* X75553Y-36473D01* X75649Y-36392D01* X75656Y-36377D01* X75686Y-36347D01* X75723Y-36296D01* X75760Y-36222D01* X75804Y-36133D01* X75841Y-36029D01* X75871Y-35918D01* X75878Y-35785D01* Y-35748D01* X75871Y-35696D01* Y-35637D01* X75864Y-35570D01* X75849Y-35496D01* X75812Y-35341D01* X75804Y-35334D01* X75797Y-35304D01* X75782Y-35260D01* X75753Y-35200D01* X75723Y-35134D01* X75679Y-35052D01* X75634Y-34956D01* X75575Y-34860D01* X76100Y-34497D01* X76108Y-34512D01* X76137Y-34542D01* X76182Y-34601D01* X76234Y-34675D01* X76293Y-34764D01* X76352Y-34875D01* X76411Y-34986D01* X76456Y-35112D01* X76463Y-35126D01* X76470Y-35171D01* X76493Y-35237D01* X76507Y-35326D01* X76530Y-35430D01* X76552Y-35548D01* X76559Y-35681D01* X76567Y-35815D01* Y-35896D01* X76559Y-35948D01* X76552Y-36022D01* X76537Y-36096D01* X76522Y-36185D01* X76500Y-36281D01* X76478Y-36384D01* X76441Y-36488D01* X76404Y-36592D01* X76352Y-36703D01* X76293Y-36806D01* X76226Y-36910D01* X76145Y-37006D01* X76056Y-37095D01* X76049Y-37102D01* X76034Y-37117D01* X76004Y-37139D01* X75960Y-37161D01* X75908Y-37198D01* X75849Y-37235D01* X75775Y-37280D01* X75693Y-37317D01* X75605Y-37361D01* X75501Y-37406D01* X75390Y-37443D01* X75264Y-37472D01* X75138Y-37502D01* X74998Y-37524D01* X74850Y-37539D01* X74694Y-37546D01* X74687D01* X74672D01* X74643D01* X74606D01* X74561Y-37539D01* X74502D01* X74376Y-37524D01* X74228Y-37502D01* X74073Y-37465D01* X73903Y-37420D01* X73740Y-37354D01* X73732D01* X73718Y-37346D01* X73695Y-37332D01* X73666Y-37317D01* X73592Y-37272D01* X73496Y-37206D01* X73385Y-37124D01* X73274Y-37028D01* X73163Y-36917D01* X73066Y-36784D01* Y-36777D01* X73059Y-36769D01* X73044Y-36747D01* X73029Y-36717D01* X72992Y-36636D01* X72941Y-36532D01* X72896Y-36407D01* X72859Y-36251D01* X72830Y-36088D01* X72822Y-35903D01* Y-35837D01* X72830Y-35785D01* X72837Y-35726D01* X72844Y-35652D01* X72859Y-35578D01* X72881Y-35489D01* X72941Y-35311D01* X72978Y-35215D01* X73022Y-35119D01* X73081Y-35030D01* X73148Y-34941D01* X73222Y-34853D01* X73303Y-34771D01* X73311Y-34764D01* X73325Y-34756D01* X73355Y-34734D01* X73392Y-34705D01* X73436Y-34675D01* X73496Y-34638D01* X73570Y-34601D01* X73644Y-34557D01* X73732Y-34520D01* X73836Y-34483D01* X73940Y-34446D01* X74058Y-34416D01* X74184Y-34386D01* X74317Y-34364D01* X74458Y-34357D01* X74606Y-34349D01* X74613D01* X74643D01* X74680D01* X74731D01* X74791Y-34357D01* D02* G37* G36* X76271Y-38397D02* X76293Y-38427D01* X76315Y-38479D01* X76352Y-38538D01* X76389Y-38612D01* X76426Y-38701D01* X76463Y-38789D01* X76493Y-38893D01* Y-38908D01* X76507Y-38937D01* X76515Y-38989D01* X76530Y-39063D01* X76544Y-39145D01* X76552Y-39241D01* X76567Y-39344D01* Y-39515D01* X76559Y-39559D01* Y-39611D01* X76552Y-39670D01* X76530Y-39811D01* X76485Y-39966D01* X76433Y-40121D01* X76352Y-40277D01* X76308Y-40351D01* X76248Y-40417D01* X76241D01* X76234Y-40432D01* X76189Y-40469D01* X76115Y-40521D01* X76019Y-40580D01* X75893Y-40647D01* X75745Y-40699D01* X75575Y-40736D01* X75479Y-40743D01* X75375Y-40750D01* X73577D01* Y-41520D01* X72911D01* Y-40750D01* X72149D01* X72053Y-39892D01* X72911D01* Y-38723D01* X73577Y-38812D01* Y-39892D01* X75368D01* X75383D01* X75412D01* X75457Y-39885D01* X75508Y-39877D01* X75575Y-39862D01* X75634Y-39840D01* X75693Y-39811D01* X75745Y-39766D01* X75753Y-39759D01* X75760Y-39744D01* X75782Y-39714D01* X75804Y-39670D01* X75827Y-39611D01* X75841Y-39537D01* X75856Y-39455D01* X75864Y-39352D01* Y-39293D01* X75856Y-39233D01* X75841Y-39145D01* X75819Y-39048D01* X75790Y-38930D01* X75745Y-38812D01* X75686Y-38686D01* X76263Y-38390D01* X76271Y-38397D01* D02* G37* G36* X75301Y-42275D02* X75397Y-42297D01* X75516Y-42319D01* X75642Y-42356D01* X75775Y-42408D01* X75901Y-42482D01* X75915Y-42489D01* X75952Y-42519D01* X76012Y-42571D01* X76078Y-42637D01* X76160Y-42726D01* X76241Y-42837D01* X76322Y-42963D01* X76396Y-43104D01* Y-43111D01* X76404Y-43118D01* X76411Y-43148D01* X76426Y-43178D01* X76433Y-43215D01* X76448Y-43259D01* X76478Y-43377D01* X76515Y-43518D01* X76537Y-43681D01* X76559Y-43858D01* X76567Y-44058D01* Y-44103D01* X76559Y-44162D01* Y-44236D01* X76544Y-44325D01* X76530Y-44428D01* X76515Y-44547D01* X76485Y-44672D01* X76448Y-44813D01* X76404Y-44954D01* X76352Y-45094D01* X76293Y-45235D01* X76219Y-45383D01* X76130Y-45523D01* X76026Y-45657D01* X75915Y-45782D01* X75375Y-45301D01* X75383Y-45294D01* X75397Y-45279D01* X75420Y-45250D01* X75449Y-45205D01* X75486Y-45153D01* X75531Y-45094D01* X75568Y-45020D01* X75612Y-44946D01* X75664Y-44857D01* X75701Y-44761D01* X75782Y-44547D01* X75812Y-44436D01* X75834Y-44310D01* X75849Y-44191D01* X75856Y-44058D01* Y-43992D01* X75849Y-43925D01* X75834Y-43836D01* X75812Y-43740D01* X75782Y-43636D01* X75745Y-43533D01* X75686Y-43437D01* X75679Y-43429D01* X75656Y-43400D01* X75612Y-43363D01* X75560Y-43311D01* X75486Y-43266D01* X75405Y-43229D01* X75301Y-43200D01* X75190Y-43192D01* X75183D01* X75161D01* X75124D01* X75079Y-43200D01* X74983Y-43222D01* X74887Y-43266D01* X74879D01* X74865Y-43281D01* X74842Y-43296D01* X74813Y-43326D01* X74776Y-43355D01* X74739Y-43400D01* X74694Y-43451D01* X74657Y-43518D01* X74650Y-43525D01* X74643Y-43555D01* X74620Y-43592D01* X74591Y-43659D01* X74561Y-43733D01* X74524Y-43829D01* X74487Y-43940D01* X74450Y-44066D01* Y-44073D01* X74443Y-44095D01* X74428Y-44140D01* X74406Y-44191D01* X74384Y-44251D01* X74361Y-44325D01* X74332Y-44406D01* X74295Y-44495D01* X74213Y-44680D01* X74125Y-44865D01* X74014Y-45042D01* X73962Y-45124D01* X73903Y-45198D01* X73895Y-45205D01* X73888Y-45213D01* X73843Y-45257D01* X73769Y-45316D01* X73673Y-45383D01* X73547Y-45449D01* X73399Y-45509D01* X73237Y-45553D01* X73140Y-45560D01* X73044Y-45568D01* X73037D01* X73029D01* X73007D01* X72978D01* X72911Y-45553D01* X72822Y-45538D01* X72719Y-45516D01* X72600Y-45479D01* X72489Y-45427D01* X72378Y-45361D01* X72363Y-45353D01* X72326Y-45324D01* X72275Y-45272D01* X72208Y-45205D01* X72134Y-45124D01* X72060Y-45028D01* X71993Y-44909D01* X71927Y-44783D01* Y-44776D01* X71919Y-44769D01* X71912Y-44746D01* X71905Y-44717D01* X71875Y-44643D01* X71845Y-44539D01* X71816Y-44421D01* X71786Y-44280D01* X71771Y-44125D01* X71764Y-43955D01* Y-43910D01* X71771Y-43866D01* Y-43799D01* X71779Y-43718D01* X71794Y-43622D01* X71816Y-43518D01* X71838Y-43407D01* X71868Y-43281D01* X71912Y-43155D01* X71956Y-43022D01* X72016Y-42896D01* X72082Y-42763D01* X72164Y-42630D01* X72260Y-42504D01* X72363Y-42378D01* X72881Y-42837D01* X72874Y-42845D01* X72867Y-42859D01* X72844Y-42889D01* X72822Y-42926D01* X72785Y-42970D01* X72756Y-43022D01* X72719Y-43089D01* X72682Y-43155D01* X72608Y-43318D01* X72541Y-43496D01* X72497Y-43696D01* X72489Y-43799D01* X72482Y-43910D01* Y-43969D01* X72489Y-44029D01* X72497Y-44103D01* X72519Y-44191D01* X72541Y-44288D01* X72578Y-44376D01* X72622Y-44458D01* X72630Y-44465D01* X72645Y-44487D01* X72674Y-44524D01* X72719Y-44554D01* X72770Y-44591D01* X72837Y-44628D01* X72911Y-44650D01* X73000Y-44658D01* X73007D01* X73022D01* X73052Y-44650D01* X73089D01* X73177Y-44621D01* X73222Y-44606D01* X73266Y-44576D01* X73274Y-44569D01* X73288Y-44561D01* X73303Y-44539D01* X73333Y-44502D01* X73362Y-44465D01* X73399Y-44413D01* X73436Y-44347D01* X73473Y-44273D01* X73481Y-44265D01* X73488Y-44236D01* X73510Y-44184D01* X73540Y-44117D01* X73570Y-44029D01* X73607Y-43918D01* X73651Y-43792D01* X73695Y-43651D01* Y-43644D01* X73703Y-43622D01* X73718Y-43585D01* X73732Y-43540D01* X73755Y-43488D01* X73777Y-43422D01* X73836Y-43274D01* X73910Y-43111D01* X73999Y-42941D01* X74102Y-42778D01* X74221Y-42630D01* Y-42623D01* X74236Y-42615D01* X74280Y-42571D01* X74354Y-42512D01* X74458Y-42445D01* X74583Y-42378D01* X74746Y-42327D01* X74931Y-42282D01* X75035Y-42275D01* X75146Y-42267D01* X75153D01* X75168D01* X75190D01* X75220D01* X75301Y-42275D01* D02* G37* G36* X77390Y45422D02* X77429D01* X77512Y45405D01* X77612Y45389D01* X77717Y45361D01* X77828Y45322D01* X77934Y45267D01* X77939D01* X77945Y45261D01* X77978Y45239D01* X78028Y45200D01* X78089Y45156D01* X78156Y45089D01* X78228Y45011D01* X78295Y44923D01* X78356Y44823D01* Y44817D01* X78361Y44811D01* X78367Y44795D01* X78378Y44773D01* X78400Y44712D01* X78428Y44634D01* X78456Y44540D01* X78478Y44423D01* X78494Y44301D01* X78500Y44162D01* Y44134D01* X78494Y44101D01* Y44057D01* X78483Y44001D01* X78472Y43935D01* X78461Y43863D01* X78439Y43785D01* X78411Y43701D01* X78383Y43613D01* X78345Y43524D01* X78295Y43435D01* X78239Y43341D01* X78178Y43252D01* X78100Y43163D01* X78017Y43080D01* X77656Y43457D01* X77662Y43463D01* X77667Y43474D01* X77684Y43491D01* X77706Y43513D01* X77728Y43541D01* X77756Y43574D01* X77817Y43657D01* X77878Y43762D01* X77928Y43879D01* X77951Y43940D01* X77961Y44007D01* X77973Y44073D01* X77978Y44140D01* Y44151D01* X77973Y44190D01* X77967Y44240D01* X77956Y44306D01* X77934Y44379D01* X77906Y44451D01* X77862Y44523D01* X77806Y44589D01* X77795Y44595D01* X77773Y44617D01* X77734Y44645D01* X77679Y44673D01* X77606Y44706D01* X77518Y44728D01* X77418Y44750D01* X77301Y44756D01* X77296D01* X77284D01* X77268D01* X77246D01* X77190Y44750D01* X77118Y44739D01* X77040Y44723D01* X76963Y44695D01* X76890Y44662D01* X76829Y44617D01* X76824Y44612D01* X76807Y44595D01* X76779Y44562D01* X76752Y44523D01* X76729Y44467D01* X76702Y44406D01* X76685Y44334D01* X76679Y44251D01* Y44212D01* X76685Y44184D01* X76691Y44118D01* X76707Y44034D01* Y44029D01* X76713Y44018D01* X76718Y43996D01* X76729Y43962D01* X76740Y43929D01* X76757Y43885D01* X76796Y43785D01* Y43319D01* X74964D01* Y45311D01* X75470Y45233D01* Y43940D01* X76313D01* X76308Y43951D01* X76291Y43973D01* X76274Y44018D01* X76247Y44079D01* X76224Y44151D01* X76208Y44234D01* X76191Y44334D01* X76186Y44445D01* Y44495D01* X76191Y44545D01* X76202Y44617D01* X76219Y44695D01* X76247Y44778D01* X76280Y44867D01* X76324Y44950D01* X76330Y44961D01* X76346Y44989D01* X76380Y45028D01* X76424Y45078D01* X76480Y45133D01* X76546Y45195D01* X76624Y45250D01* X76713Y45300D01* X76724Y45305D01* X76757Y45322D01* X76807Y45339D01* X76879Y45366D01* X76968Y45389D01* X77068Y45405D01* X77179Y45422D01* X77301Y45428D01* X77307D01* X77318D01* X77334D01* X77362D01* X77390Y45422D01* D02* G37* G36* X78056Y41803D02* X78106Y41792D01* X78167Y41770D01* X78228Y41748D01* X78289Y41709D01* X78350Y41659D01* X78356Y41654D01* X78372Y41631D01* X78400Y41598D01* X78422Y41559D01* X78450Y41504D01* X78478Y41437D01* X78494Y41365D01* X78500Y41287D01* Y41248D01* X78494Y41210D01* X78483Y41160D01* X78461Y41099D01* X78439Y41037D01* X78400Y40976D01* X78350Y40915D01* X78345Y40910D01* X78322Y40893D01* X78289Y40865D01* X78245Y40843D01* X78195Y40815D01* X78128Y40788D01* X78056Y40771D01* X77978Y40766D01* X77967D01* X77945D01* X77906Y40771D01* X77856Y40782D01* X77795Y40804D01* X77740Y40827D01* X77679Y40865D01* X77617Y40915D01* X77612Y40921D01* X77595Y40943D01* X77567Y40976D01* X77540Y41021D01* X77518Y41071D01* X77490Y41137D01* X77473Y41210D01* X77468Y41287D01* Y41326D01* X77473Y41365D01* X77484Y41415D01* X77506Y41476D01* X77529Y41537D01* X77567Y41598D01* X77617Y41659D01* X77623Y41665D01* X77645Y41681D01* X77679Y41709D01* X77717Y41737D01* X77773Y41759D01* X77834Y41787D01* X77900Y41803D01* X77978Y41809D01* X77989D01* X78017D01* X78056Y41803D01* D02* G37* G36* X78439Y37319D02* X77917D01* Y38146D01* X75625D01* X76080Y37430D01* X75636Y37164D01* X74964Y38235D01* Y38790D01* X77917D01* Y39461D01* X78439D01* Y37319D01* D02* G37* G36* Y35637D02* Y34933D01* X75758Y34000D01* Y34683D01* X77884Y35293D01* X75758Y35915D01* Y36570D01* X78439Y35637D01* D02* G37* G36* X-26041Y-73350D02* X-22727D01* Y-75590D01* X-26041D01* Y-78959D01* X-28336D01* Y-75590D01* X-31649D01* Y-73350D01* X-28336D01* Y-70000D01* X-26041D01* Y-73350D01* D02* G37* %LPC*% G36* X63000Y45656D02* Y42391D01* X52571Y45656D01* D01* Y36976D01* X63000Y40242D01* Y36976D01* X52571D01* X63000D01* Y45656D01* D02* G37* G36* Y35960D02* Y34744D01* X60668D01* Y35960D01* X59102D01* Y34744D01* X56403D01* Y33045D01* X59102Y32878D01* Y30679D01* X52971Y33244D01* X52354Y31629D01* X59351Y28646D01* X52354D01* Y31629D01* Y28646D01* X63000D01* D01* X60668D01* Y32861D01* X63000D01* Y35960D01* D02* G37* G36* Y26480D02* Y26281D01* X61401Y26480D01* D01* Y21882D01* X61167Y22182D01* X60934Y22466D01* X60718Y22732D01* X60501Y22982D01* X60301Y23215D01* X60101Y23432D01* X59918Y23615D01* X59768Y23798D01* X59618Y23948D01* X59485Y24081D01* X59368Y24198D01* X59268Y24298D01* X59185Y24365D01* X59135Y24415D01* X59102Y24448D01* X59085Y24465D01* X58702Y24798D01* X58335Y25064D01* X58019Y25298D01* X57735Y25498D01* X57502Y25631D01* X57319Y25731D01* X57252Y25764D01* X57202Y25798D01* X57186Y25814D01* X57169D01* X56836Y25964D01* X56519Y26064D01* X56219Y26147D01* X55936Y26197D01* X55703Y26231D01* X55536Y26247D01* X55453D01* X55403D01* X55386D01* X55370D01* X55070Y26231D01* X54787Y26181D01* X54520Y26114D01* X54303Y26047D01* X54120Y25981D01* X53970Y25914D01* X53887Y25864D01* X53854Y25847D01* X53604Y25681D01* X53404Y25498D01* X53204Y25298D01* X53054Y25114D01* X52937Y24948D01* X52837Y24814D01* X52787Y24715D01* X52771Y24698D01* Y24681D01* X52637Y24381D01* X52538Y24081D01* X52471Y23782D01* X52421Y23498D01* X52388Y23248D01* X52371Y23049D01* Y22882D01* X52388Y22482D01* X52438Y22116D01* X52504Y21782D01* X52571Y21499D01* X52654Y21266D01* X52721Y21099D01* X52754Y21033D01* X52771Y20983D01* X52787Y20966D01* Y20949D01* X52954Y20650D01* X53154Y20383D01* X53370Y20133D01* X53587Y19917D01* X53787Y19733D01* X53937Y19600D01* X54004Y19550D01* X54054Y19517D01* X54070Y19483D01* X52371D01* X63000D01* Y26480D01* D02* G37* %LPD*% G36* X61084Y41341D02* X52571Y39059D01* Y43657D01* X61084Y41341D01* D02* G37* G36* X55736Y24248D02* X56003Y24198D01* X56253Y24148D01* X56469Y24081D01* X56652Y23998D01* X56802Y23948D01* X56886Y23898D01* X56902Y23882D01* X56919D01* X57186Y23715D01* X57486Y23532D01* X57769Y23315D01* X58052Y23099D01* X58285Y22899D01* X58485Y22732D01* X58552Y22665D01* X58602Y22615D01* X58635Y22599D01* X58652Y22582D01* X58852Y22399D01* X59068Y22199D01* X59535Y21732D01* X60018Y21266D01* X60484Y20799D01* X60701Y20566D01* X60901Y20366D01* X61084Y20183D01* X61234Y20016D01* X61367Y19883D01* X61467Y19783D01* X61534Y19717D01* X61551Y19700D01* X63000D01* Y19483D01* X54087D01* X55036Y20716D01* X54820Y20916D01* X54653Y21099D01* X54503Y21266D01* X54387Y21416D01* X54303Y21532D01* X54254Y21616D01* X54220Y21682D01* X54203Y21699D01* X54120Y21866D01* X54070Y22049D01* X54020Y22232D01* X54004Y22399D01* X53987Y22549D01* X53970Y22665D01* Y22765D01* X53987Y23015D01* X54037Y23232D01* X54104Y23415D01* X54170Y23582D01* X54237Y23698D01* X54303Y23798D01* X54353Y23848D01* X54370Y23865D01* X54537Y23998D01* X54703Y24098D01* X54887Y24165D01* X55070Y24215D01* X55220Y24248D01* X55353Y24265D01* X55436D01* X55470D01* X55736Y24248D01* D02* G37* %LPC*% G36* X70911Y37843D02* X69889D01* Y37221D01* X69900Y37088D01* X69923Y36944D01* X69945Y36766D01* X69989Y36599D01* X70045Y36444D01* X70122Y36310D01* X70134Y36299D01* X70167Y36266D01* X70211Y36210D01* X70289Y36155D01* X70378Y36099D01* X70489Y36044D01* X70622Y36010D01* X70767Y35999D01* X70778D01* X70833D01* X70900Y36010D01* X70978Y36021D01* X71067Y36044D01* X71167Y36077D01* X71256Y36121D01* X71333Y36188D01* X71345Y36199D01* X71367Y36221D01* X71389Y36277D01* X71422Y36332D01* X71467Y36421D01* X71489Y36521D01* X71511Y36644D01* X71522Y36777D01* Y36832D01* X71511Y36888D01* X71500Y36966D01* X71478Y37066D01* X71456Y37166D01* X71411Y37266D01* X71356Y37377D01* X71345Y37388D01* X71322Y37421D01* X71289Y37477D01* X71233Y37543D01* X71178Y37621D01* X71100Y37699D01* X71011Y37777D01* X70911Y37843D01* D02* G37* G36* X74805Y-31227D02* X74694D01* X74687D01* X74665D01* X74635D01* X74591D01* X74539Y-31234D01* X74480D01* X74339Y-31249D01* X74191Y-31264D01* X74043Y-31293D01* X73903Y-31330D01* X73836Y-31352D01* X73784Y-31382D01* X73769Y-31389D01* X73740Y-31412D01* X73695Y-31449D01* X73644Y-31500D01* X73599Y-31560D01* X73555Y-31641D01* X73525Y-31737D01* X73510Y-31841D01* Y-31878D01* X73518Y-31915D01* X73525Y-31967D01* X73540Y-32026D01* X73562Y-32092D01* X73592Y-32159D01* X73636Y-32226D01* X73644Y-32233D01* X73658Y-32255D01* X73688Y-32285D01* X73725Y-32329D01* X73769Y-32381D01* X73821Y-32425D01* X73888Y-32477D01* X73954Y-32529D01* X75538D01* X75553Y-32522D01* X75590Y-32485D01* X75649Y-32440D01* X75708Y-32366D01* X75767Y-32285D01* X75827Y-32174D01* X75864Y-32055D01* X75871Y-31989D01* X75878Y-31915D01* Y-31900D01* X75871Y-31856D01* X75864Y-31796D01* X75841Y-31722D01* X75812Y-31641D01* X75760Y-31552D01* X75693Y-31478D01* X75605Y-31404D01* X75590Y-31397D01* X75553Y-31375D01* X75479Y-31345D01* X75383Y-31315D01* X75323Y-31301D01* X75257Y-31286D01* X75183Y-31271D01* X75101Y-31256D01* X75013Y-31241D01* X74916Y-31234D01* X74805Y-31227D01* D02* G37* G36* X74376Y-35193D02* X74369D01* X74361D01* X74339D01* X74310Y-35200D01* X74236Y-35208D01* X74139Y-35223D01* X74043Y-35245D01* X73932Y-35282D01* X73829Y-35334D01* X73732Y-35393D01* X73725Y-35400D01* X73695Y-35422D01* X73658Y-35467D01* X73607Y-35526D01* X73562Y-35593D01* X73525Y-35681D01* X73496Y-35785D01* X73488Y-35903D01* Y-35955D01* X73503Y-36014D01* X73518Y-36088D01* X73547Y-36170D01* X73584Y-36259D01* X73644Y-36347D01* X73725Y-36429D01* X73732Y-36436D01* X73769Y-36458D01* X73821Y-36495D01* X73895Y-36532D01* X73991Y-36577D01* X74102Y-36614D01* X74228Y-36643D01* X74376Y-36666D01* Y-35193D01* D02* G37* %LPD*% D28* X-34646Y-26000D02* D03* X-15354D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D31* X14000Y-65000D02* D03* X-14000D02* D03* X14000Y65000D02* D03* X-14000D02* D03* D32* X-9250Y-62500D02* D03* X9250D02* D03* Y62500D02* D03* X-9250D02* D03* D33* X26350Y-74250D02* D03* X-26350Y74250D02* D03* D34* X66141Y-38033D02* D03* D35* X12000Y43000D02* D03* X-12000D02* D03* D36* X-54000Y19700D02* D03* Y15700D02* D03* D37* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D38* X-77000Y45063D02* D03* Y16000D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D39* X-62500Y24626D02* D03* Y32500D02* D03* Y28563D02* D03* Y36437D02* D03* Y40374D02* D03* Y20689D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D40* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D41* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D42* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D43* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D44* X29000Y-57300D02* D03* Y-60700D02* D03* D45* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D46* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D47* X-18000Y-38000D02* D03* Y-54000D02* D03* D48* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D49* X-61024Y-61024D02* D03* X61024D02* D03* Y61024D02* D03* X-61024D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.LDP ================================================ Layer Pairs Export File for PCB: I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-42\Motor-42.PcbDoc LayersSetName=Top_Bot_Thru_Holes|DrillFile=motor-42.txt|DrillLayers=gtl,g1,g2,gbl ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.REP ================================================ ************************************************************* FileName = Motor-42.GBR AutoAperture = True ************************************************************* Generating : Mechanical 15 File : Motor-42.GM15 Adding Layer : Mechanical 15 Used DCodes : D13 D85 ************************************************************* ************************************************************* Generating : Mechanical 14 File : Motor-42.GM14 Adding Layer : Mechanical 14 Used DCodes : D86 ************************************************************* ************************************************************* Generating : Mechanical 13 File : Motor-42.GM13 Adding Layer : Mechanical 13 Used DCodes : D85 D86 ************************************************************* ************************************************************* Generating : Mechanical 12 File : Motor-42.GM12 Adding Layer : Mechanical 12 Used DCodes : D13 ************************************************************* ************************************************************* Generating : Mechanical 10 File : Motor-42.GM10 Adding Layer : Mechanical 10 Used DCodes : D13 ************************************************************* ************************************************************* Generating : Mechanical 1 File : Motor-42.GM1 Adding Layer : Mechanical 1 Used DCodes : D10 ************************************************************* ************************************************************* Generating : Keep-Out Layer File : Motor-42.GKO Adding Layer : Keep-Out Layer Used DCodes : D10 ************************************************************* ************************************************************* Generating : Bottom Overlay File : Motor-42.GBO Adding Layer : Bottom Overlay Used DCodes : D12 D13 D14 D84 ************************************************************* ************************************************************* Generating : Bottom Paste File : Motor-42.GBP Adding Layer : Bottom Paste Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D16 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 ************************************************************* ************************************************************* Generating : Bottom Solder File : Motor-42.GBS Adding Layer : Bottom Solder Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D36 D49 D61 D73 D74 D75 D76 D77 D78 D79 D80 D81 D82 D83 ************************************************************* ************************************************************* Generating : Top Solder File : Motor-42.GTS Adding Layer : Top Solder Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D28 D30 D31 D32 D33 D34 D35 D36 D37 D38 D39 D40 D41 D42 D43 D44 D45 D46 D47 D48 D49 ************************************************************* ************************************************************* Generating : Top Paste File : Motor-42.GTP Adding Layer : Top Paste Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 ************************************************************* ************************************************************* Generating : Top Overlay File : Motor-42.GTO Adding Layer : Top Overlay Used DCodes : D10 D11 D12 D13 D14 D15 ************************************************************* ************************************************************* Generating : Top Pad Master File : Motor-42.GPT Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D54 ************************************************************* ************************************************************* Generating : Bottom Pad Master File : Motor-42.GPB Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D16 D54 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 ************************************************************* ************************************************************* Generating : Bottom4 File : Motor-42.GBL Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D16 D50 D54 D55 D56 D57 D58 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 D71 D72 ************************************************************* ************************************************************* Generating : Gnd3 File : Motor-42.G2 Adding Layer : Gnd3 Adding Layer : Multi-Layer Used DCodes : D54 D55 D56 ************************************************************* ************************************************************* Generating : Signal2 File : Motor-42.G1 Adding Layer : Signal2 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D50 D54 D55 D56 D57 D58 ************************************************************* ************************************************************* Generating : Top1 File : Motor-42.GTL Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D50 D51 D52 D53 D54 D55 D56 ************************************************************* ************************************************************* Generating : Drill Drawing File : Motor-42.GD1 Adding Drill Pair : Top1-Bottom4 Adding Layer : Drill Drawing Used DCodes : D86 D87 ************************************************************* ************************************************************* Generating : Drill Guide File : Motor-42.GG1 Adding Drill Pair : Top1-Bottom4 Adding Layer : Drill Guide Used DCodes : D86 ************************************************************* ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.RUL ================================================ DRC Rules Export File for PCB: I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-42\Motor-42.PcbDoc RuleKind=Width|RuleName=VCC|Scope=Board|Minimum=4.00 RuleKind=Width|RuleName=GND|Scope=Board|Minimum=4.00 RuleKind=SolderMaskExpansion|RuleName=SolderMaskExpansion|Scope=Board|Minimum=3.00 RuleKind=Width|RuleName=Width|Scope=Board|Minimum=4.00 RuleKind=Clearance|RuleName=Clearance|Scope=Board|Minimum=4.00 RuleKind=ShortCircuit|RuleName=ShortCircuit|Scope=Board|Allowed=0 ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.TXT ================================================ M48 ;Layer_Color=9474304 ;FILE_FORMAT=2:5 INCH,TZ ;TYPE=PLATED T1F00S00C0.01000 T2F00S00C0.01575 T3F00S00C0.12205 % T01 X-78400Y-53500 X-73500Y-55000 Y-52000 X-71366Y-45734 X-77000Y-37500 Y-34000 Y-30500 Y-21000 X-70800Y-3100 X-77000Y13000 Y24000 Y30000 Y36000 X-60000Y36400 X-59900Y40300 Y32500 X-53700Y30300 X-56600Y26900 X-57000Y23500 X-53800 X-59000Y17500 X-56300Y12500 X-57500Y5000 X-54300Y4800 X-50400 X-45000Y5000 X-41000 Y2500 X-33500Y2000 Y5500 X-35300Y-8400 X-31800Y-12300 X-35000Y-16500 X-38000Y-17000 X-40500 X-42700Y-10600 X-51900Y-11100 X-51400Y-14500 X-56300Y-13100 X-55784Y-19016 X-55500Y-23000 Y-25500 Y-28000 X-51500Y-31600 X-51000Y-22000 X-66000 X-66500Y-15500 X-66600Y-2500 X-67500Y100 X-60500Y3000 X-56500Y700 X-52358Y658 X-44300Y26900 X-44100Y31200 X-14500Y31000 X-9500 X0Y37000 Y43500 X9500Y31000 X14500 X10800Y7500 X15800Y300 X15500Y-13000 X18000 X20500 X23000 X25500 Y-15500 X23000 X19900Y-17400 X18000Y-16300 X15800 X19800Y-22100 X22454Y-21500 X28500Y-21200 Y-18700 Y-16400 X32500Y-16500 Y-19500 Y-22500 Y-25500 Y-28500 Y-31500 Y-34500 Y-37500 X27000Y-49500 X27300Y-52900 X29500Y-52300 X24000Y-57500 X8500Y-51100 X2500Y-47500 X-2000Y-41500 X-5000 X-3500Y-38000 Y-35000 X300Y-36200 Y-38700 X240Y-33540 X-11500Y-31900 X-10800Y-44100 X-12500Y-45800 X-28500Y-43000 X-27000Y-40500 Y-38000 X-23500 X-34620Y-41200 X-39700Y-41600 X-37700Y-43700 X-36600Y-33400 X-38600Y-31800 X-40547Y-33553 X-57000Y-37000 X-58500Y-41000 X-56500Y-42500 X-54300Y-41000 X-52100Y-42400 X-62100Y-42600 X-37500Y-59000 X-34500 X-28000Y-63000 X-2000Y-65500 X1969Y-62500 X5500Y-24100 X8500 Y-21000 X5500 X-5000Y-20000 Y-23000 X-22500Y-19300 X-18300Y-4200 X-11400Y-7500 X-10600Y2500 X-11000Y5500 X-13500 Y9500 X-11000 X29300Y-4100 Y-7200 X50000 Y-4000 X73000Y-4700 Y3500 X32100Y53700 X28100Y54000 X17000Y-32500 Y-35000 T02 X-20000Y-72000 X-17000 X-14000 Y-69000 X-17000 X-20000 Y-66000 X-17000 X-14000 X19000Y-75500 Y-78500 X22000 X25000 X28000 X31000 X34000 X37000 X40000Y-73000 Y-70000 Y-67000 X43000 X46000 Y-70000 X43000 Y-73000 X46000 X70000Y-18000 Y-15000 X73000 X76000 Y-12000 X73000 X70000 X73000Y-18000 X76000 Y12000 X73000 Y15000 Y18000 X76000 Y15000 X70000 Y12000 Y18000 X32000Y16000 X29000 X26000 X23000 X20000 X17000 X14000 X11000 X8000 X5000 X2000 X-1000 X-4000 X-7000 X-10000 X-13000 X-16000 X-19000 X-19500Y38000 Y41000 Y44000 X-15000Y43000 Y46000 X-12000 X-9000 Y43000 Y40000 X-12000 X-15000 X-12000Y43000 X-4200Y42100 Y45100 Y39100 X4300 Y42100 Y45100 X9000Y46000 Y43000 X12000 X15000 Y40000 X12000 X9000 X12000Y46000 X15000 X19300Y44700 Y41700 Y38700 X33100Y38400 Y41400 Y44400 Y35400 Y32400 Y29400 X4500Y52100 Y55100 X1500 Y52100 X-19500 X-22500 Y55100 X-19500 X-27500Y60000 X-30500 Y63000 Y66000 X-27500 Y63000 X-33500 Y60000 X-36500 X-39500 Y63000 Y66000 X-36500 X-33500 X-36500Y63000 X-42500 Y60000 Y66000 X-34200Y52000 Y49000 Y46000 Y43000 Y40000 Y37000 X-33500Y-21500 Y-24500 Y-27500 X-36546 Y-24500 Y-21500 X-39592 Y-24566 Y-27500 T03 X-61024Y-61024 X61024 Y61024 X-61024 M30 ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Motor-42.apr ================================================ D10 ROUNDED 10.000 10.000 0.000 LINE 0.000 D11 ROUNDED 4.000 4.000 0.000 LINE 0.000 D12 ROUNDED 1.000 1.000 0.000 LINE 0.000 D13 ROUNDED 7.874 7.874 0.000 LINE 0.000 D14 ROUNDED 6.000 6.000 0.000 LINE 0.000 D15 ROUNDED 5.000 5.000 0.000 LINE 0.000 D24 RECTANGULAR 19.685 19.685 0.000 FLASH 270.000 D32 RECTANGULAR 65.000 60.000 0.000 FLASH 0.000 D33 RECTANGULAR 77.000 25.000 0.000 FLASH 0.000 D34 RECTANGULAR 89.000 211.000 0.000 FLASH 0.000 D35 RECTANGULAR 100.000 100.000 0.000 FLASH 0.000 D44 RECTANGULAR 25.685 25.685 0.000 FLASH 270.000 D49 ROUNDED 206.000 206.000 0.000 FLASH 0.000 D50 ROUNDED 20.000 20.000 0.000 LINE 0.000 D51 ROUNDED 80.000 80.000 0.000 LINE 0.000 D52 ROUNDED 40.000 40.000 0.000 LINE 0.000 D53 ROUNDED 30.000 30.000 0.000 LINE 0.000 D54 ROUNDED 200.000 200.000 0.000 FLASH 0.000 D55 ROUNDED 18.000 18.000 0.000 FLASH 0.000 D56 ROUNDED 23.622 23.622 0.000 FLASH 0.000 D57 ROUNDED 70.000 70.000 0.000 LINE 0.000 D58 ROUNDED 7.000 7.000 0.000 LINE 0.000 D59 ROUNDED 19.685 51.181 0.000 FLASH 0.000 D68 ROUNDED 19.685 51.181 0.000 FLASH 270.000 D69 ROUNDED 12.000 54.000 0.000 FLASH 0.000 D70 ROUNDED 12.000 54.000 0.000 FLASH 270.000 D71 ROUNDED 25.000 25.000 0.000 LINE 0.000 D72 ROUNDED 45.000 45.000 0.000 LINE 0.000 D73 ROUNDED 25.685 57.181 0.000 FLASH 0.000 D81 ROUNDED 25.685 57.181 0.000 FLASH 270.000 D82 ROUNDED 18.000 60.000 0.000 FLASH 0.000 D83 ROUNDED 18.000 60.000 0.000 FLASH 270.000 D84 ROUNDED 9.842 9.842 0.000 LINE 0.000 D85 ROUNDED 3.937 3.937 0.000 LINE 0.000 D86 ROUNDED 2.000 2.000 0.000 LINE 0.000 D87 ROUNDED 2.667 2.667 0.000 LINE 0.000 ================================================ FILE: 1.Hardware/MotorDriver-42/Gerber/Status Report.Txt ================================================ Output: NC Drill Files Type : NC Drill From : Project [Motor-42.PrjPCB] Generated File[Motor-42.TXT] Generated File[Motor-42.LDP] Generated File[Motor-42.DRR] Files Generated : 3 Documents Printed : 0 Finished Output Generation At 19:21:46 On ܶ 01-18 ================================================ FILE: 1.Hardware/MotorDriver-42/Motor-42.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=0 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=1 AppendSheetNumberToLocalNets=0 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=0 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 CrossRefSheetStyle=1 CrossRefLocationStyle=1 CrossRefPorts=3 CrossRefCrossSheets=1 CrossRefSheetEntries=0 CrossRefFollowFromMainSettings=1 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Drive.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=OTRBEYFQ [Document2] DocumentPath=MCU.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=MMRIIHEF [Document3] DocumentPath=Port.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=2 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=ZMLSMFEG [Document4] DocumentPath=Power.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=3 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RMXANKZL [Document5] DocumentPath=Interface.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=4 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=DXHCOWHD [Document6] DocumentPath=Motor-42.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RPGXAMXA [GeneratedDocument1] DocumentPath=Project Outputs for Motor-42\Design Rule Check - Motor-42.html DItemRevisionGUID= [GeneratedDocument2] DocumentPath=Project Outputs for Motor-42\Motor-42.DRR DItemRevisionGUID= [GeneratedDocument3] DocumentPath=Project Outputs for Motor-42\Motor-42.EXTREP DItemRevisionGUID= [GeneratedDocument4] DocumentPath=Project Outputs for Motor-42\Motor-42.G1 DItemRevisionGUID= [GeneratedDocument5] DocumentPath=Project Outputs for Motor-42\Motor-42.G2 DItemRevisionGUID= [GeneratedDocument6] DocumentPath=Project Outputs for Motor-42\Motor-42.GBL DItemRevisionGUID= [GeneratedDocument7] DocumentPath=Project Outputs for Motor-42\Motor-42.GBO DItemRevisionGUID= [GeneratedDocument8] DocumentPath=Project Outputs for Motor-42\Motor-42.GBP DItemRevisionGUID= [GeneratedDocument9] DocumentPath=Project Outputs for Motor-42\Motor-42.GBS DItemRevisionGUID= [GeneratedDocument10] DocumentPath=Project Outputs for Motor-42\Motor-42.GD1 DItemRevisionGUID= [GeneratedDocument11] DocumentPath=Project Outputs for Motor-42\Motor-42.GG1 DItemRevisionGUID= [GeneratedDocument12] DocumentPath=Project Outputs for Motor-42\Motor-42.GKO DItemRevisionGUID= [GeneratedDocument13] DocumentPath=Project Outputs for Motor-42\Motor-42.GM1 DItemRevisionGUID= [GeneratedDocument14] DocumentPath=Project Outputs for Motor-42\Motor-42.GM10 DItemRevisionGUID= [GeneratedDocument15] DocumentPath=Project Outputs for Motor-42\Motor-42.GM12 DItemRevisionGUID= [GeneratedDocument16] DocumentPath=Project Outputs for Motor-42\Motor-42.GM13 DItemRevisionGUID= [GeneratedDocument17] DocumentPath=Project Outputs for Motor-42\Motor-42.GM14 DItemRevisionGUID= [GeneratedDocument18] DocumentPath=Project Outputs for Motor-42\Motor-42.GM15 DItemRevisionGUID= [GeneratedDocument19] DocumentPath=Project Outputs for Motor-42\Motor-42.GPB DItemRevisionGUID= [GeneratedDocument20] DocumentPath=Project Outputs for Motor-42\Motor-42.GPT DItemRevisionGUID= [GeneratedDocument21] DocumentPath=Project Outputs for Motor-42\Motor-42.GTL DItemRevisionGUID= [GeneratedDocument22] DocumentPath=Project Outputs for Motor-42\Motor-42.GTO DItemRevisionGUID= [GeneratedDocument23] DocumentPath=Project Outputs for Motor-42\Motor-42.GTP DItemRevisionGUID= [GeneratedDocument24] DocumentPath=Project Outputs for Motor-42\Motor-42.GTS DItemRevisionGUID= [GeneratedDocument25] DocumentPath=Project Outputs for Motor-42\Motor-42.LDP DItemRevisionGUID= [GeneratedDocument26] DocumentPath=Project Outputs for Motor-42\Motor-42.REP DItemRevisionGUID= [GeneratedDocument27] DocumentPath=Project Outputs for Motor-42\Motor-42.RUL DItemRevisionGUID= [GeneratedDocument28] DocumentPath=Project Outputs for Motor-42\Motor-42.TXT DItemRevisionGUID= [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Mask OutputName1=Solder/Paste Mask Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Drill OutputName2=Drill Drawing/Guides OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=CompositeDrill OutputName3=Composite Drill Drawing OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=IPC2581 OutputName4=IPC-2581 Files OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Gerber X2 OutputName5=Gerber X2 Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Board Stack Report OutputName7=Report Board Stack OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Plane OutputName8=Power-Plane Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=ODB OutputName9=ODB++ Files OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 OutputType10=NC Drill OutputName10=NC Drill Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 Configuration10_Name1=ForceUpdateSettings Configuration10_Item1=False Configuration10_Name2=OutputConfigurationParameter1 Configuration10_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|GenerateSeparateViaTypeFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-42\Motor-42.PcbDoc OutputType11=Test Points OutputName11=Test Point Report OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GenerateReports=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16777218~1,16777219~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-42\Motor-42.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=BOM_ReportCompare OutputName7=BOM Compare OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Export Comments OutputName8=Export Comments OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/MotorDriver-42/Motor-42.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Drive.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Interface.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=MCU.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Port.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Power.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57-macro.APR_LIB ================================================ G04:AMPARAMS|DCode=16|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % G04:AMPARAMS|DCode=17|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.03937,0.03937,0,0,90.0* 21,1,0.01968,0.05906,0,0,90.0* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* % G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % G04:AMPARAMS|DCode=19|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % G04:AMPARAMS|DCode=31|XSize=65mil|YSize=120mil|CornerRadius=16.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD31* 21,1,0.06500,0.08750,0,0,180.0* 21,1,0.03250,0.12000,0,0,180.0* 1,1,0.03250,-0.01625,0.04375* 1,1,0.03250,0.01625,0.04375* 1,1,0.03250,0.01625,-0.04375* 1,1,0.03250,-0.01625,-0.04375* % G04:AMPARAMS|DCode=36|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD36* 21,1,0.02175,0.05118,0,0,90.0* 21,1,0.00787,0.06506,0,0,90.0* 1,1,0.01387,0.02559,0.00394* 1,1,0.01387,0.02559,-0.00394* 1,1,0.01387,-0.02559,-0.00394* 1,1,0.01387,-0.02559,0.00394* % G04:AMPARAMS|DCode=37|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD37* 21,1,0.04537,0.03937,0,0,90.0* 21,1,0.01968,0.06506,0,0,90.0* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* 1,1,0.02568,-0.01968,0.00984* % G04:AMPARAMS|DCode=38|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD38* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % G04:AMPARAMS|DCode=39|XSize=29.62mil|YSize=45.37mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD39* 21,1,0.02962,0.02756,0,0,180.0* 21,1,0.01181,0.04537,0,0,180.0* 1,1,0.01781,-0.00591,0.01378* 1,1,0.01781,0.00591,0.01378* 1,1,0.01781,0.00591,-0.01378* 1,1,0.01781,-0.00591,-0.01378* % G04:AMPARAMS|DCode=40|XSize=46mil|YSize=66mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD40* 21,1,0.04600,0.04000,0,0,180.0* 21,1,0.02000,0.06600,0,0,180.0* 1,1,0.02600,-0.01000,0.02000* 1,1,0.02600,0.01000,0.02000* 1,1,0.02600,0.01000,-0.02000* 1,1,0.02600,-0.01000,-0.02000* % G04:AMPARAMS|DCode=41|XSize=22mil|YSize=22mil|CornerRadius=11mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD41* 21,1,0.02200,0.00000,0,0,270.0* 21,1,0.00000,0.02200,0,0,270.0* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* % G04:AMPARAMS|DCode=42|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD42* 21,1,0.04537,0.03937,0,0,0.0* 21,1,0.01968,0.06506,0,0,0.0* 1,1,0.02568,0.00984,-0.01968* 1,1,0.02568,-0.00984,-0.01968* 1,1,0.02568,-0.00984,0.01968* 1,1,0.02568,0.00984,0.01968* % G04:AMPARAMS|DCode=43|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD43* 21,1,0.02175,0.05118,0,0,180.0* 21,1,0.00787,0.06506,0,0,180.0* 1,1,0.01387,-0.00394,0.02559* 1,1,0.01387,0.00394,0.02559* 1,1,0.01387,0.00394,-0.02559* 1,1,0.01387,-0.00394,-0.02559* % G04:AMPARAMS|DCode=45|XSize=46mil|YSize=80mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD45* 21,1,0.04600,0.05400,0,0,90.0* 21,1,0.02000,0.08000,0,0,90.0* 1,1,0.02600,0.02700,0.01000* 1,1,0.02600,0.02700,-0.01000* 1,1,0.02600,-0.02700,-0.01000* 1,1,0.02600,-0.02700,0.01000* % G04:AMPARAMS|DCode=46|XSize=65.06mil|YSize=45.37mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD46* 21,1,0.06506,0.01968,0,0,180.0* 21,1,0.03937,0.04537,0,0,180.0* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* % G04:AMPARAMS|DCode=47|XSize=61mil|YSize=71mil|CornerRadius=16.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD47* 21,1,0.06100,0.03750,0,0,90.0* 21,1,0.02750,0.07100,0,0,90.0* 1,1,0.03350,0.01875,0.01375* 1,1,0.03350,0.01875,-0.01375* 1,1,0.03350,-0.01875,-0.01375* 1,1,0.03350,-0.01875,0.01375* % G04:AMPARAMS|DCode=48|XSize=25.68mil|YSize=29.62mil|CornerRadius=7.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD48* 21,1,0.02568,0.01378,0,0,90.0* 21,1,0.00984,0.02962,0,0,90.0* 1,1,0.01584,0.00689,0.00492* 1,1,0.01584,0.00689,-0.00492* 1,1,0.01584,-0.00689,-0.00492* 1,1,0.01584,-0.00689,0.00492* % G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % G04:AMPARAMS|DCode=74|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD74* 21,1,0.02600,0.01000,0,0,270.0* 21,1,0.01000,0.02600,0,0,270.0* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* 1,1,0.01600,0.00500,-0.00500* % G04:AMPARAMS|DCode=75|XSize=96.55mil|YSize=96.55mil|CornerRadius=25.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD75* 21,1,0.09655,0.04528,0,0,0.0* 21,1,0.04528,0.09655,0,0,0.0* 1,1,0.05128,0.02264,-0.02264* 1,1,0.05128,-0.02264,-0.02264* 1,1,0.05128,-0.02264,0.02264* 1,1,0.05128,0.02264,0.02264* % G04:AMPARAMS|DCode=76|XSize=206mil|YSize=86mil|CornerRadius=23mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD76* 21,1,0.20600,0.04000,0,0,270.0* 21,1,0.16000,0.08600,0,0,270.0* 1,1,0.04600,-0.02000,-0.08000* 1,1,0.04600,-0.02000,0.08000* 1,1,0.04600,0.02000,0.08000* 1,1,0.04600,0.02000,-0.08000* % G04:AMPARAMS|DCode=77|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD77* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % G04:AMPARAMS|DCode=78|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD78* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % G04:AMPARAMS|DCode=79|XSize=29.62mil|YSize=41mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD79* 21,1,0.02962,0.02319,0,0,0.0* 21,1,0.01181,0.04100,0,0,0.0* 1,1,0.01781,0.00591,-0.01159* 1,1,0.01781,-0.00591,-0.01159* 1,1,0.01781,-0.00591,0.01159* 1,1,0.01781,0.00591,0.01159* % G04:AMPARAMS|DCode=80|XSize=33.56mil|YSize=57.18mil|CornerRadius=9.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD80* 21,1,0.03356,0.03740,0,0,0.0* 21,1,0.01378,0.05718,0,0,0.0* 1,1,0.01978,0.00689,-0.01870* 1,1,0.01978,-0.00689,-0.01870* 1,1,0.01978,-0.00689,0.01870* 1,1,0.01978,0.00689,0.01870* % ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.DRR ================================================ ---------------------------------------------------------------------------------------------------------------------------------- NCDrill File Report For: Motor-57.PcbDoc ܶ 01-18 19:39:57 ---------------------------------------------------------------------------------------------------------------------------------- Layer Pair : Top1 to Bottom4 ASCII RoundHoles File : Motor-57.TXT Tool Hole Size Hole Tolerance Hole Type Hole Count Plated Tool Travel ---------------------------------------------------------------------------------------------------------------------------------- T1 10mil (0.254mm) Round 146 PTH 12.15inch (308.67mm) T2 16mil (0.4mm) Round 139 PTH 7.73inch (196.44mm) T3 122mil (3.1mm) Round 4 PTH 4.08inch (103.55mm) ---------------------------------------------------------------------------------------------------------------------------------- Totals 289 Total Processing Time (hh:mm:ss) : 00:00:00 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.EXTREP ================================================ ------------------------------------------------------------------------------------------ Gerber File Extension Report For: Motor-57.GBR ܶ 01-18 19:39:48 ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ Layer Extension Layer Description ------------------------------------------------------------------------------------------ .GTO Top Overlay .GTP Top Paste .GTS Top Solder .GTL Top1 .G1 Signal2 .G2 Gnd3 .GBL Bottom4 .GBS Bottom Solder .GBP Bottom Paste .GBO Bottom Overlay .GM1 Mechanical 1 .GM10 Mechanical 10 .GM12 Mechanical 12 .GM13 Mechanical 13 .GM14 Mechanical 14 .GM15 Mechanical 15 .GKO Keep-Out Layer .GPT Top Pad Master .GPB Bottom Pad Master .GD1 Drill Drawing .GG1 Drill Guide ------------------------------------------------------------------------------------------ ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.G1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=2* G04 Layer_Color=14461039* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% %ADD50C,0.02000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% %ADD57C,0.07000*% %ADD58C,0.00700*% G36* X65948Y109336D02* X66997Y107625D01* X67765Y105771D01* X68233Y103819D01* X68378Y101985D01* X68378Y101985D01* X68378D01* X68382Y101980D01* Y92863D01* X68362D01* X68516Y90120D01* X68976Y87411D01* X69736Y84771D01* X70788Y82232D01* X72117Y79827D01* X73707Y77587D01* X75538Y75538D01* X77587Y73707D01* X79827Y72117D01* X82232Y70788D01* X84771Y69736D01* X87411Y68976D01* X90120Y68516D01* X92863Y68362D01* Y68382D01* X101980D01* X101985Y68378D01* X101985Y68378D01* X101985Y68378D01* X103819Y68233D01* X105771Y67765D01* X107625Y66997D01* X109336Y65948D01* X110106Y65290D01* Y-65290D01* X109336Y-65948D01* X107625Y-66997D01* X105771Y-67765D01* X103819Y-68233D01* X101985Y-68378D01* X101985Y-68378D01* Y-68378D01* X101980Y-68382D01* X92863D01* Y-68362D01* X90120Y-68516D01* X87411Y-68976D01* X84771Y-69736D01* X82232Y-70788D01* X79827Y-72117D01* X77587Y-73707D01* X75538Y-75538D01* X73707Y-77587D01* X72117Y-79827D01* X70788Y-82232D01* X69736Y-84771D01* X68976Y-87411D01* X68516Y-90120D01* X68362Y-92863D01* X68382D01* Y-101980D01* X68378Y-101985D01* X68378Y-101985D01* X68378Y-101985D01* X68233Y-103819D01* X67765Y-105771D01* X66997Y-107625D01* X65948Y-109336D01* X65290Y-110106D01* X-65290D01* X-65948Y-109336D01* X-66997Y-107625D01* X-67765Y-105771D01* X-68233Y-103819D01* X-68378Y-101985D01* X-68378Y-101985D01* X-68378D01* X-68382Y-101980D01* Y-92863D01* X-68362D01* X-68516Y-90120D01* X-68976Y-87411D01* X-69736Y-84771D01* X-70788Y-82232D01* X-72117Y-79827D01* X-73707Y-77587D01* X-75538Y-75538D01* X-77587Y-73707D01* X-79827Y-72117D01* X-82232Y-70788D01* X-84771Y-69736D01* X-87411Y-68976D01* X-90120Y-68516D01* X-92863Y-68362D01* Y-68382D01* X-101980D01* X-101985Y-68378D01* X-101985Y-68378D01* X-101985Y-68378D01* X-103819Y-68233D01* X-105771Y-67765D01* X-107625Y-66997D01* X-109336Y-65948D01* X-110106Y-65290D01* Y65290D01* X-109336Y65948D01* X-107625Y66997D01* X-105771Y67765D01* X-103819Y68233D01* X-101985Y68378D01* X-101985Y68378D01* Y68378D01* X-101980Y68382D01* X-92863D01* Y68362D01* X-90120Y68516D01* X-87411Y68976D01* X-84771Y69736D01* X-82232Y70788D01* X-79827Y72117D01* X-77587Y73707D01* X-75538Y75538D01* X-73707Y77587D01* X-72117Y79827D01* X-70788Y82232D01* X-69736Y84771D01* X-68976Y87411D01* X-68516Y90120D01* X-68362Y92863D01* X-68382D01* Y101980D01* X-68378Y101985D01* X-68378Y101985D01* X-68378Y101985D01* X-68233Y103819D01* X-67765Y105771D01* X-66997Y107625D01* X-65948Y109336D01* X-65290Y110106D01* X65290D01* X65948Y109336D01* D02* G37* %LPC*% G36* X4814Y56681D02* X4185D01* X3604Y56440D01* X3317Y56153D01* X3000Y56048D01* X2683Y56153D01* X2396Y56440D01* X1815Y56681D01* X1185D01* X604Y56440D01* X160Y55996D01* X-81Y55414D01* Y54786D01* X160Y54204D01* X447Y53917D01* X552Y53600D01* X447Y53283D01* X160Y52996D01* X-81Y52415D01* Y51785D01* X160Y51204D01* X604Y50760D01* X1185Y50519D01* X1815D01* X2396Y50760D01* X2683Y51047D01* X3000Y51152D01* X3317Y51047D01* X3604Y50760D01* X4185Y50519D01* X4814D01* X5396Y50760D01* X5840Y51204D01* X6081Y51785D01* Y52415D01* X5840Y52996D01* X5553Y53283D01* X5448Y53600D01* X5553Y53917D01* X5840Y54204D01* X6081Y54786D01* Y55414D01* X5840Y55996D01* X5396Y56440D01* X4814Y56681D01* D02* G37* G36* X-19185D02* X-19815D01* X-20396Y56440D01* X-20683Y56153D01* X-21000Y56048D01* X-21317Y56153D01* X-21604Y56440D01* X-22185Y56681D01* X-22815D01* X-23396Y56440D01* X-23840Y55996D01* X-24081Y55414D01* Y54786D01* X-23840Y54204D01* X-23553Y53917D01* X-23448Y53600D01* X-23553Y53283D01* X-23840Y52996D01* X-24081Y52415D01* Y51785D01* X-23840Y51204D01* X-23396Y50760D01* X-22815Y50519D01* X-22185D01* X-21604Y50760D01* X-21317Y51047D01* X-21000Y51152D01* X-20683Y51047D01* X-20396Y50760D01* X-19815Y50519D01* X-19185D01* X-18604Y50760D01* X-18160Y51204D01* X-17919Y51785D01* Y52415D01* X-18160Y52996D01* X-18447Y53283D01* X-18552Y53600D01* X-18447Y53917D01* X-18160Y54204D01* X-17919Y54786D01* Y55414D01* X-18160Y55996D01* X-18604Y56440D01* X-19185Y56681D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X19614Y46281D02* X18985D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17960Y43804D01* X18247Y43517D01* X18352Y43200D01* X18247Y42883D01* X17960Y42596D01* X17719Y42015D01* Y41385D01* X17960Y40804D01* X18247Y40517D01* X18352Y40200D01* X18247Y39883D01* X17960Y39596D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18404Y37360D01* X18985Y37119D01* X19614D01* X20196Y37360D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20640Y39596D01* X20353Y39883D01* X20248Y40200D01* X20353Y40517D01* X20640Y40804D01* X20881Y41385D01* Y42015D01* X20640Y42596D01* X20353Y42883D01* X20248Y43200D01* X20353Y43517D01* X20640Y43804D01* X20881Y44385D01* Y45015D01* X20640Y45596D01* X20196Y46040D01* X19614Y46281D01* D02* G37* G36* X-19185Y45581D02* X-19815D01* X-20396Y45340D01* X-20840Y44896D01* X-21081Y44315D01* Y43685D01* X-20840Y43104D01* X-20553Y42817D01* X-20448Y42500D01* X-20553Y42183D01* X-20840Y41896D01* X-21081Y41315D01* Y40685D01* X-20840Y40104D01* X-20553Y39817D01* X-20448Y39500D01* X-20553Y39183D01* X-20840Y38896D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18160Y38896D01* X-18447Y39183D01* X-18552Y39500D01* X-18447Y39817D01* X-18160Y40104D01* X-17919Y40685D01* Y41315D01* X-18160Y41896D01* X-18447Y42183D01* X-18552Y42500D01* X-18447Y42817D01* X-18160Y43104D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* D02* G37* G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28243D01* X28305Y52683D01* X28373Y52692D01* X28418Y52694D01* X28458Y52692D01* X28494Y52686D01* X28527Y52678D01* X28558Y52666D01* X28589Y52651D01* X28621Y52631D01* X28655Y52605D01* X28703Y52561D01* X28730Y52551D01* X28745Y52527D01* X28770Y52521D01* X36386Y44904D01* Y23939D01* X35886Y23732D01* X30749Y28869D01* Y31900D01* X30559Y32359D01* X27359Y35559D01* X26900Y35749D01* X18769D01* X17059Y37459D01* X16600Y37649D01* X5793D01* X5585Y38149D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5640Y39996D01* X5353Y40283D01* X5248Y40600D01* X5353Y40917D01* X5640Y41204D01* X5881Y41785D01* Y42415D01* X5640Y42996D01* X5353Y43283D01* X5248Y43600D01* X5353Y43917D01* X5640Y44204D01* X5881Y44785D01* Y45415D01* X5640Y45996D01* X5196Y46440D01* X4614Y46681D01* X3985D01* X3404Y46440D01* X2960Y45996D01* X2719Y45415D01* Y44785D01* X2960Y44204D01* X3247Y43917D01* X3352Y43600D01* X3247Y43283D01* X2960Y42996D01* X2719Y42415D01* Y41785D01* X2960Y41204D01* X3247Y40917D01* X3352Y40600D01* X3247Y40283D01* X2960Y39996D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3015Y38149D01* X2807Y37649D01* X1338D01* X1302Y37664D01* X1257Y37687D01* X1206Y37718D01* X1154Y37754D01* X1018Y37869D01* X945Y37940D01* X868Y37971D01* X736Y38102D01* X259Y38300D01* X117D01* X-91Y38800D01* X505Y39395D01* X659Y39627D01* X714Y39900D01* Y42053D01* X733Y42094D01* X735Y42160D01* X741Y42206D01* X750Y42250D01* X763Y42292D01* X779Y42334D01* X799Y42375D01* X824Y42417D01* X855Y42460D01* X891Y42504D01* X943Y42558D01* X972Y42634D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-972Y42634D01* X-943Y42558D01* X-891Y42504D01* X-855Y42460D01* X-824Y42417D01* X-799Y42375D01* X-779Y42334D01* X-763Y42292D01* X-750Y42250D01* X-741Y42206D01* X-735Y42160D01* X-733Y42094D01* X-714Y42053D01* Y40196D01* X-2119Y38790D01* X-2619Y38998D01* Y39415D01* X-2860Y39996D01* X-3147Y40283D01* X-3252Y40600D01* X-3147Y40917D01* X-2860Y41204D01* X-2619Y41785D01* Y42415D01* X-2860Y42996D01* X-3147Y43283D01* X-3252Y43600D01* X-3147Y43917D01* X-2860Y44204D01* X-2619Y44785D01* Y45415D01* X-2860Y45996D01* X-3304Y46440D01* X-3886Y46681D01* X-4515D01* X-5096Y46440D01* X-5540Y45996D01* X-5781Y45415D01* Y44785D01* X-5540Y44204D01* X-5253Y43917D01* X-5148Y43600D01* X-5253Y43283D01* X-5540Y42996D01* X-5781Y42415D01* Y41785D01* X-5540Y41204D01* X-5253Y40917D01* X-5148Y40600D01* X-5253Y40283D01* X-5540Y39996D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-4098D01* X-3890Y37019D01* X-6796Y34114D01* X-14700D01* X-14973Y34059D01* X-15205Y33905D01* X-21596Y27514D01* X-35700D01* X-35973Y27459D01* X-36205Y27305D01* X-54096Y9414D01* X-61600D01* X-61873Y9359D01* X-62105Y9205D01* X-65205Y6105D01* X-65359Y5873D01* X-65414Y5600D01* Y-304D01* X-66082Y-972D01* X-66124Y-988D01* X-66172Y-1033D01* X-66209Y-1061D01* X-66246Y-1086D01* X-66285Y-1107D01* X-66326Y-1125D01* X-66370Y-1139D01* X-66417Y-1151D01* X-66469Y-1160D01* X-66526Y-1166D01* X-66601Y-1167D01* X-66675Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67406Y-1467D01* X-67941Y-1550D01* X-68047Y-1455D01* X-70282Y780D01* Y5420D01* X-61551Y14151D01* X-61352Y14449D01* X-61282Y14800D01* Y22820D01* X-58120Y25982D01* X-57930D01* X-57894Y25967D01* X-57801Y25966D01* X-57727Y25963D01* X-57594Y25950D01* X-57554Y25943D01* X-57523Y25936D01* X-57507Y25931D01* X-57493Y25922D01* X-57486Y25921D01* X-57481Y25919D01* X-57472Y25919D01* X-57455Y25917D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* X-56859D01* X-57336Y28002D01* X-57455Y27883D01* X-57472Y27881D01* X-57481Y27880D01* X-57486Y27879D01* X-57493Y27878D01* X-57507Y27869D01* X-57523Y27864D01* X-57554Y27857D01* X-57590Y27851D01* X-57808Y27834D01* X-57894Y27833D01* X-57930Y27818D01* X-58500D01* X-58597Y27798D01* X-58843Y28259D01* X-56751Y30351D01* X-56552Y30649D01* X-56482Y31000D01* Y33800D01* X-56552Y34151D01* X-56751Y34449D01* X-58411Y36109D01* X-58425Y36145D01* X-58491Y36212D01* X-58540Y36266D01* X-58625Y36369D01* X-58649Y36402D01* X-58665Y36429D01* X-58673Y36444D01* X-58677Y36460D01* X-58682Y36466D01* X-58683Y36470D01* X-58690Y36477D01* X-58700Y36490D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-60090D01* X-60077Y35090D01* X-60070Y35083D01* X-60066Y35082D01* X-60060Y35077D01* X-60044Y35073D01* X-60029Y35065D01* X-60002Y35049D01* X-59973Y35028D01* X-59806Y34885D01* X-59745Y34825D01* X-59709Y34811D01* X-58884Y33986D01* X-59164Y33602D01* X-59641Y33800D01* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32590D01* X-61210Y32577D01* X-61217Y32570D01* X-61218Y32566D01* X-61223Y32560D01* X-61227Y32544D01* X-61235Y32529D01* X-61251Y32502D01* X-61272Y32473D01* X-61415Y32306D01* X-61475Y32245D01* X-61489Y32209D01* X-65649Y28049D01* X-65848Y27751D01* X-65918Y27400D01* Y16340D01* X-75349Y6909D01* X-75548Y6611D01* X-75618Y6260D01* Y-5700D01* X-75548Y-6051D01* X-75349Y-6349D01* X-69449Y-12249D01* X-69151Y-12448D01* X-68800Y-12518D01* X-66360D01* X-61429Y-17449D01* X-61131Y-17648D01* X-60780Y-17718D01* X-57032D01* X-56825Y-18218D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56886Y-19752D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55857D01* X-55780Y-20349D01* X-55674Y-20350D01* X-55585Y-20355D01* X-55507Y-20364D01* X-55439Y-20376D01* X-55381Y-20390D01* X-55333Y-20406D01* X-55297Y-20421D01* X-54149Y-21569D01* Y-28731D01* X-55859Y-30441D01* X-56049Y-30900D01* Y-35131D01* X-56513Y-35594D01* X-56549Y-35610D01* X-56597Y-35626D01* X-56655Y-35640D01* X-56717Y-35651D01* X-56895Y-35666D01* X-56996Y-35667D01* X-57073Y-35700D01* X-57259D01* X-57736Y-35898D01* X-58102Y-36264D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-37073D01* X-55667Y-36996D01* X-55666Y-36889D01* X-55661Y-36801D01* X-55652Y-36723D01* X-55640Y-36655D01* X-55626Y-36597D01* X-55610Y-36549D01* X-55594Y-36513D01* X-54941Y-35859D01* X-54751Y-35400D01* Y-31169D01* X-53041Y-29459D01* X-52851Y-29000D01* Y-21300D01* X-53041Y-20841D01* X-54184Y-19698D01* X-54173Y-19532D01* X-53974Y-19399D01* X-53657Y-19310D01* X-53451Y-19448D01* X-53100Y-19518D01* X-49580D01* X-45918Y-23180D01* Y-29100D01* X-45848Y-29451D01* X-45649Y-29749D01* X-42136Y-33261D01* X-42122Y-33297D01* X-42057Y-33364D01* X-42007Y-33419D01* X-41922Y-33522D01* X-41899Y-33555D01* X-41882Y-33582D01* X-41874Y-33597D01* X-41870Y-33612D01* X-41866Y-33619D01* X-41864Y-33623D01* X-41857Y-33630D01* X-41847Y-33643D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40637D01* X-40624Y-34863D01* X-40617Y-34869D01* X-40613Y-34871D01* X-40607Y-34876D01* X-40592Y-34879D01* X-40576Y-34887D01* X-40549Y-34904D01* X-40520Y-34925D01* X-40354Y-35067D01* X-40292Y-35127D01* X-40256Y-35142D01* X-38649Y-36749D01* X-38351Y-36948D01* X-38000Y-37018D01* X-35500D01* X-35403Y-36998D01* X-35157Y-37459D01* X-35269Y-37572D01* X-35468Y-37869D01* X-35538Y-38221D01* Y-39870D01* X-35554Y-39906D01* X-35555Y-39999D01* X-35558Y-40073D01* X-35571Y-40206D01* X-35577Y-40246D01* X-35585Y-40277D01* X-35590Y-40293D01* X-35598Y-40307D01* X-35599Y-40314D01* X-35601Y-40319D01* X-35601Y-40328D01* X-35603Y-40345D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33637Y-40345D01* X-33640Y-40328D01* X-33640Y-40319D01* X-33642Y-40314D01* X-33643Y-40307D01* X-33651Y-40293D01* X-33656Y-40277D01* X-33664Y-40246D01* X-33670Y-40210D01* X-33687Y-39992D01* X-33688Y-39906D01* X-33703Y-39870D01* Y-38601D01* X-30620Y-35518D01* X-21660D01* X-21309Y-35448D01* X-21012Y-35249D01* X-13451Y-27689D01* X-13252Y-27391D01* X-13182Y-27040D01* Y-16480D01* X-10420Y-13718D01* X10200D01* X10551Y-13648D01* X10849Y-13449D01* X13349Y-10949D01* X13548Y-10651D01* X13618Y-10300D01* Y5600D01* X13548Y5951D01* X13349Y6249D01* X12389Y7209D01* X12375Y7245D01* X12309Y7312D01* X12260Y7366D01* X12175Y7469D01* X12151Y7502D01* X12135Y7529D01* X12127Y7544D01* X12123Y7560D01* X12118Y7566D01* X12117Y7570D01* X12110Y7577D01* X12100Y7590D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X10710D01* X10723Y6190D01* X10730Y6183D01* X10734Y6182D01* X10740Y6177D01* X10756Y6173D01* X10771Y6165D01* X10798Y6149D01* X10827Y6128D01* X10994Y5985D01* X11055Y5925D01* X11091Y5911D01* X11782Y5220D01* Y-9920D01* X9820Y-11882D01* X-10800D01* X-11151Y-11952D01* X-11449Y-12151D01* X-11720Y-12423D01* X-12182Y-12231D01* Y-9580D01* X-11691Y-9089D01* X-11655Y-9075D01* X-11588Y-9009D01* X-11534Y-8960D01* X-11431Y-8875D01* X-11398Y-8851D01* X-11371Y-8835D01* X-11356Y-8827D01* X-11340Y-8823D01* X-11334Y-8818D01* X-11330Y-8817D01* X-11323Y-8810D01* X-11310Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7410D01* X-12710Y-7423D01* X-12717Y-7430D01* X-12718Y-7434D01* X-12723Y-7440D01* X-12727Y-7456D01* X-12735Y-7471D01* X-12751Y-7498D01* X-12772Y-7527D01* X-12915Y-7694D01* X-12975Y-7755D01* X-13095Y-7763D01* X-13582Y-7336D01* Y-2656D01* X-13567Y-2623D01* X-13561Y-2442D01* X-13543Y-2283D01* X-13514Y-2132D01* X-13474Y-1986D01* X-13423Y-1846D01* X-13360Y-1711D01* X-13286Y-1579D01* X-13199Y-1452D01* X-13099Y-1328D01* X-12976Y-1195D01* X-12963Y-1161D01* X-10891Y911D01* X-10855Y925D01* X-10788Y991D01* X-10734Y1040D01* X-10631Y1125D01* X-10598Y1149D01* X-10571Y1166D01* X-10556Y1173D01* X-10540Y1177D01* X-10534Y1182D01* X-10530Y1183D01* X-10523Y1190D01* X-10510Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2590D01* X-11910Y2577D01* X-11917Y2570D01* X-11918Y2566D01* X-11923Y2560D01* X-11927Y2544D01* X-11935Y2529D01* X-11951Y2502D01* X-11972Y2473D01* X-12115Y2306D01* X-12175Y2245D01* X-12189Y2209D01* X-14261Y137D01* X-14295Y124D01* X-14427Y1D01* X-14552Y-99D01* X-14680Y-186D01* X-14811Y-260D01* X-14946Y-323D01* X-15086Y-374D01* X-15232Y-414D01* X-15383Y-443D01* X-15542Y-461D01* X-15723Y-467D01* X-15756Y-482D01* X-24557D01* X-24764Y18D01* X-13731Y11051D01* X10131D01* X27894Y-6713D01* X27910Y-6749D01* X27926Y-6797D01* X27940Y-6855D01* X27951Y-6917D01* X27966Y-7095D01* X27967Y-7196D01* X28000Y-7273D01* Y-7459D01* X28198Y-7936D01* X28312Y-8051D01* X28105Y-8551D01* X25569D01* X17206Y-187D01* X17190Y-151D01* X17174Y-103D01* X17160Y-45D01* X17149Y17D01* X17134Y195D01* X17133Y296D01* X17100Y373D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X15727D01* X15804Y-1033D01* X15911Y-1034D01* X15999Y-1039D01* X16077Y-1048D01* X16145Y-1060D01* X16203Y-1074D01* X16251Y-1090D01* X16287Y-1106D01* X24841Y-9659D01* X25300Y-9849D01* X34600D01* X35059Y-9659D01* X35886Y-8832D01* X36386Y-9039D01* Y-55490D01* X29090Y-62786D01* X7296D01* X6605Y-62095D01* X6373Y-61941D01* X6100Y-61886D01* X3466D01* X3437Y-61870D01* X3420Y-61875D01* X3404Y-61867D01* X3339Y-61865D01* X3295Y-61859D01* X3257Y-61850D01* X3221Y-61839D01* X3187Y-61824D01* X3154Y-61805D01* X3121Y-61782D01* X3088Y-61754D01* X3053Y-61719D01* X3008Y-61666D01* X2935Y-61628D01* X2705Y-61398D01* X2227Y-61200D01* X1710D01* X1232Y-61398D01* X866Y-61764D01* X668Y-62241D01* Y-62759D01* X866Y-63236D01* X916Y-63286D01* X709Y-63786D01* X-1000D01* X-1273Y-63841D01* X-1458Y-63964D01* X-1526Y-63990D01* X-1579Y-64039D01* X-1620Y-64072D01* X-1659Y-64099D01* X-1697Y-64121D01* X-1733Y-64138D01* X-1770Y-64151D01* X-1806Y-64160D01* X-1843Y-64166D01* X-1883Y-64169D01* X-1944Y-64169D01* X-1947Y-64170D01* X-1950Y-64168D01* X-2026Y-64200D01* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65526D01* X-668Y-65450D01* X-450Y-65326D01* X-239Y-65214D01* X3101D01* X3182Y-65700D01* X2233Y-66093D01* X1419Y-66719D01* X-1929Y-70066D01* X-12189D01* X-12523Y-69566D01* X-12419Y-69314D01* Y-68686D01* X-12660Y-68104D01* X-13066Y-67698D01* Y-67302D01* X-12660Y-66896D01* X-12419Y-66315D01* Y-65685D01* X-12660Y-65104D01* X-13104Y-64660D01* X-13381Y-64545D01* X-13593Y-64033D01* X-14219Y-63218D01* X-15033Y-62593D01* X-15982Y-62200D01* X-17000Y-62066D01* X-18018Y-62200D01* X-18967Y-62593D01* X-19782Y-63218D01* X-20407Y-64033D01* X-20619Y-64545D01* X-20896Y-64660D01* X-21340Y-65104D01* X-21581Y-65685D01* Y-66315D01* X-21340Y-66896D01* X-20934Y-67302D01* Y-67698D01* X-21340Y-68104D01* X-21581Y-68686D01* Y-69314D01* X-21340Y-69896D01* X-20934Y-70302D01* Y-70698D01* X-21340Y-71104D01* X-21581Y-71685D01* Y-72315D01* X-21340Y-72896D01* X-20934Y-73302D01* Y-74000D01* X-20800Y-75018D01* X-20407Y-75967D01* X-19782Y-76781D01* X-18967Y-77407D01* X-18018Y-77800D01* X-17000Y-77934D01* X-300D01* X718Y-77800D01* X1667Y-77407D01* X2482Y-76781D01* X5829Y-73434D01* X38468D01* X38660Y-73896D01* X39104Y-74340D01* X39381Y-74455D01* X39593Y-74967D01* X40218Y-75782D01* X41033Y-76407D01* X41982Y-76800D01* X43000Y-76934D01* X44018Y-76800D01* X44967Y-76407D01* X45781Y-75782D01* X46407Y-74967D01* X46619Y-74455D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72819D01* X48281Y-72281D01* X48907Y-71467D01* X49300Y-70518D01* X49434Y-69500D01* X49300Y-68482D01* X48907Y-67533D01* X48281Y-66719D01* X47467Y-66093D01* X47232Y-65996D01* X46896Y-65660D01* X46619Y-65545D01* X46407Y-65033D01* X45781Y-64218D01* X44967Y-63593D01* X44018Y-63200D01* X43000Y-63066D01* X41982Y-63200D01* X41033Y-63593D01* X40218Y-64218D01* X39593Y-65033D01* X39381Y-65545D01* X39329Y-65566D01* X30364D01* X30212Y-65066D01* X30305Y-65005D01* X38605Y-56705D01* X38759Y-56473D01* X38814Y-56200D01* Y47700D01* X38759Y47973D01* X38605Y48205D01* X33628Y53182D01* X33612Y53224D01* X33567Y53272D01* X33539Y53309D01* X33514Y53346D01* X33493Y53385D01* X33475Y53426D01* X33461Y53470D01* X33448Y53517D01* X33440Y53569D01* X33435Y53626D01* X33433Y53701D01* X33400Y53775D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30959Y53057D01* X30535Y52774D01* X29681Y53628D01* X29665Y53671D01* X29620Y53720D01* X29588Y53759D01* X29558Y53802D01* X29531Y53847D01* X29506Y53895D01* X29484Y53947D01* X29463Y54002D01* X29446Y54063D01* X29431Y54127D01* X29417Y54207D01* X29400Y54234D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72029Y2632D01* X72060Y2555D01* X72135Y2478D01* X72193Y2412D01* X72243Y2351D01* X72282Y2294D01* X72313Y2243D01* X72336Y2198D01* X72351Y2162D01* Y-431D01* X69431Y-3351D01* X51338D01* X51302Y-3336D01* X51257Y-3313D01* X51206Y-3283D01* X51154Y-3246D01* X51018Y-3131D01* X50945Y-3060D01* X50868Y-3029D01* X50736Y-2898D01* X50259Y-2700D01* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X50868Y-4971D01* X50945Y-4940D01* X51022Y-4865D01* X51088Y-4806D01* X51149Y-4757D01* X51206Y-4718D01* X51257Y-4687D01* X51302Y-4664D01* X51338Y-4649D01* X69700D01* X70159Y-4459D01* X73459Y-1159D01* X73649Y-700D01* Y2162D01* X73664Y2198D01* X73687Y2243D01* X73717Y2294D01* X73754Y2346D01* X73869Y2482D01* X73940Y2555D01* X73971Y2632D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4627D01* X71667Y-4704D01* X71666Y-4811D01* X71661Y-4899D01* X71652Y-4977D01* X71640Y-5045D01* X71626Y-5103D01* X71610Y-5151D01* X71595Y-5187D01* X70231Y-6551D01* X51338D01* X51302Y-6536D01* X51257Y-6513D01* X51206Y-6482D01* X51154Y-6446D01* X51018Y-6331D01* X50945Y-6260D01* X50868Y-6229D01* X50736Y-6098D01* X50259Y-5900D01* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X50868Y-8171D01* X50945Y-8140D01* X51022Y-8065D01* X51088Y-8006D01* X51149Y-7957D01* X51206Y-7918D01* X51257Y-7887D01* X51302Y-7864D01* X51338Y-7849D01* X70500D01* X70959Y-7659D01* X72513Y-6106D01* X72549Y-6090D01* X72597Y-6074D01* X72655Y-6060D01* X72717Y-6049D01* X72895Y-6034D01* X72996Y-6033D01* X73073Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X18259Y-15000D02* X17741D01* X17264Y-15198D01* X16900Y-15562D01* X16536Y-15198D01* X16059Y-15000D01* X15541D01* X15064Y-15198D01* X14698Y-15564D01* X14500Y-16041D01* Y-16559D01* X14698Y-17036D01* X15064Y-17402D01* X15541Y-17600D01* X16059D01* X16536Y-17402D01* X16900Y-17039D01* X17264Y-17402D01* X17741Y-17600D01* X18259D01* X18415Y-17535D01* X18600Y-17659D01* X18798Y-18136D01* X19164Y-18502D01* X19641Y-18700D01* X20159D01* X20636Y-18502D01* X21002Y-18136D01* X21200Y-17659D01* Y-17141D01* X21002Y-16664D01* X20636Y-16298D01* X20159Y-16100D01* X19641D01* X19485Y-16165D01* X19300Y-16041D01* X19102Y-15564D01* X18736Y-15198D01* X18259Y-15000D01* D02* G37* G36* X22712Y-20200D02* X22195D01* X21717Y-20398D01* X21351Y-20764D01* X21251Y-21006D01* X20694Y-21153D01* X20691Y-21152D01* X20536Y-20998D01* X20059Y-20800D01* X19541D01* X19064Y-20998D01* X18698Y-21364D01* X18500Y-21841D01* Y-22359D01* X18698Y-22836D01* X19064Y-23202D01* X19541Y-23400D01* X20059D01* X20536Y-23202D01* X20902Y-22836D01* X21002Y-22594D01* X21560Y-22447D01* X21563Y-22448D01* X21717Y-22602D01* X22195Y-22800D01* X22712D01* X23190Y-22602D01* X23556Y-22236D01* X23753Y-21759D01* Y-21241D01* X23556Y-20764D01* X23190Y-20398D01* X22712Y-20200D01* D02* G37* G36* X28500Y-14973D02* X27954Y-15081D01* X27491Y-15391D01* X27181Y-15854D01* X27073Y-16400D01* Y-21200D01* Y-24309D01* X25509Y-25873D01* X4200D01* X4200Y-25873D01* X3654Y-25981D01* X3191Y-26291D01* X-769Y-30250D01* X-1079Y-30714D01* X-1187Y-31260D01* X-1187Y-31260D01* Y-33540D01* Y-38640D01* X-1079Y-39186D01* X-769Y-39650D01* X-306Y-39959D01* X240Y-40068D01* X786Y-39959D01* X996Y-39819D01* X1036Y-39802D01* X1067Y-39771D01* X1249Y-39650D01* X1371Y-39467D01* X1402Y-39436D01* X1419Y-39396D01* X1559Y-39186D01* X1668Y-38640D01* Y-33540D01* Y-31851D01* X4791Y-28727D01* X26100D01* X26100Y-28727D01* X26646Y-28619D01* X27109Y-28309D01* X29509Y-25909D01* X29509Y-25909D01* X29819Y-25446D01* X29927Y-24900D01* Y-21200D01* Y-16400D01* X29819Y-15854D01* X29509Y-15391D01* X29046Y-15081D01* X28500Y-14973D01* D02* G37* G36* X-50741Y-20700D02* X-51259D01* X-51736Y-20898D01* X-52102Y-21264D01* X-52300Y-21741D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-51073D01* X-50996Y-23333D01* X-50889Y-23334D01* X-50801Y-23339D01* X-50723Y-23348D01* X-50655Y-23360D01* X-50597Y-23374D01* X-50549Y-23390D01* X-50513Y-23405D01* X-50349Y-23569D01* Y-30205D01* X-50529Y-30332D01* X-50849Y-30462D01* X-51241Y-30300D01* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31527D01* X-52833Y-31604D01* X-52834Y-31711D01* X-52839Y-31799D01* X-52848Y-31877D01* X-52860Y-31945D01* X-52874Y-32003D01* X-52890Y-32051D01* X-52905Y-32087D01* X-53959Y-33141D01* X-54149Y-33600D01* Y-36831D01* X-57490Y-40172D01* X-57764Y-39898D01* X-58241Y-39700D01* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57354Y-41630D01* X-56941Y-41459D01* X-53041Y-37559D01* X-52851Y-37100D01* Y-33869D01* X-51987Y-33005D01* X-51951Y-32990D01* X-51903Y-32974D01* X-51845Y-32960D01* X-51783Y-32949D01* X-51605Y-32934D01* X-51504Y-32933D01* X-51427Y-32900D01* X-51241D01* X-50849Y-32738D01* X-50529Y-32868D01* X-50349Y-32995D01* Y-67831D01* X-55169Y-72651D01* X-67431D01* X-74551Y-65531D01* Y-56700D01* X-74695Y-56350D01* X-74272Y-56067D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-52073D01* X-72167Y-51996D01* X-72166Y-51889D01* X-72161Y-51801D01* X-72152Y-51723D01* X-72140Y-51655D01* X-72126Y-51597D01* X-72110Y-51549D01* X-72095Y-51513D01* X-63831Y-43249D01* X-63438D01* X-63402Y-43264D01* X-63357Y-43287D01* X-63306Y-43317D01* X-63254Y-43354D01* X-63118Y-43469D01* X-63045Y-43540D01* X-62968Y-43571D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* X-62359D01* X-62836Y-41498D01* X-62968Y-41629D01* X-63045Y-41660D01* X-63122Y-41735D01* X-63188Y-41794D01* X-63249Y-41843D01* X-63306Y-41883D01* X-63357Y-41913D01* X-63402Y-41936D01* X-63438Y-41951D01* X-64100D01* X-64559Y-42141D01* X-72906Y-50488D01* X-73186Y-50512D01* X-73231Y-50468D01* X-73324Y-49943D01* X-70907Y-47526D01* X-70717Y-47066D01* Y-46957D01* X-70714Y-46948D01* X-70705Y-46929D01* X-70695Y-46911D01* X-70682Y-46894D01* X-70666Y-46876D01* X-70645Y-46857D01* X-70603Y-46826D01* X-70586Y-46797D01* X-70555Y-46785D01* X-70539Y-46744D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72194Y-46744D01* X-72177Y-46785D01* X-72406Y-47180D01* X-72435Y-47216D01* X-75959Y-50741D01* X-76149Y-51200D01* Y-53000D01* X-75959Y-53459D01* X-74906Y-54513D01* X-74890Y-54549D01* X-74874Y-54597D01* X-74860Y-54655D01* X-74849Y-54717D01* X-74834Y-54895D01* X-74833Y-54996D01* X-74800Y-55073D01* Y-55259D01* X-74647Y-55627D01* X-75071Y-55910D01* X-76995Y-53987D01* X-77010Y-53951D01* X-77026Y-53903D01* X-77040Y-53845D01* X-77051Y-53783D01* X-77066Y-53605D01* X-77067Y-53504D01* X-77100Y-53427D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* X-78659D01* X-79136Y-52398D01* X-79502Y-52764D01* X-79700Y-53241D01* Y-53759D01* X-79502Y-54236D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78473D01* X-78396Y-54833D01* X-78289Y-54834D01* X-78201Y-54839D01* X-78123Y-54848D01* X-78055Y-54860D01* X-77997Y-54874D01* X-77949Y-54890D01* X-77913Y-54905D01* X-75849Y-56969D01* Y-65800D01* X-75659Y-66259D01* X-68159Y-73759D01* X-67700Y-73949D01* X-54900D01* X-54441Y-73759D01* X-49241Y-68559D01* X-49051Y-68100D01* Y-23300D01* X-49241Y-22841D01* X-49595Y-22487D01* X-49610Y-22451D01* X-49626Y-22403D01* X-49640Y-22345D01* X-49651Y-22283D01* X-49666Y-22105D01* X-49667Y-22004D01* X-49700Y-21927D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* D02* G37* G36* X-11241Y-30600D02* X-11759D01* X-12236Y-30798D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-11759Y-33200D01* X-11241D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-11241Y-30600D01* D02* G37* G36* X-39441Y-40300D02* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41859D01* X-40802Y-42336D01* X-40436Y-42702D01* X-39959Y-42900D01* X-39441D01* X-39291Y-42838D01* X-38908Y-43220D01* X-39000Y-43441D01* Y-43959D01* X-38802Y-44436D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37441D01* X-36964Y-44802D01* X-36598Y-44436D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47759D01* X1398Y-48236D01* X1764Y-48602D01* X2241Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* G36* X29759Y-51000D02* X29241D01* X28764Y-51198D01* X28398Y-51564D01* X27863Y-51726D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28402Y-53636D01* X28937Y-53474D01* X29241Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44010D01* X-12110Y-44023D01* X-12117Y-44030D01* X-12118Y-44034D01* X-12123Y-44040D01* X-12127Y-44056D01* X-12135Y-44071D01* X-12151Y-44098D01* X-12172Y-44127D01* X-12313Y-44292D01* X-12366Y-44340D01* X-12469Y-44425D01* X-12502Y-44449D01* X-12529Y-44465D01* X-12544Y-44473D01* X-12560Y-44477D01* X-12566Y-44482D01* X-12570Y-44483D01* X-12577Y-44490D01* X-12590Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45890D01* X-11190Y-45877D01* X-11183Y-45870D01* X-11182Y-45866D01* X-11177Y-45860D01* X-11173Y-45844D01* X-11165Y-45829D01* X-11149Y-45802D01* X-11134Y-45781D01* X-11042Y-45704D01* X-10545Y-45675D01* X-10509Y-45689D01* X-8849Y-47349D01* X-8551Y-47548D01* X-8200Y-47618D01* X-3180D01* X951Y-51749D01* X1249Y-51948D01* X1600Y-52018D01* X7170D01* X7206Y-52033D01* X7299Y-52034D01* X7373Y-52037D01* X7506Y-52050D01* X7546Y-52057D01* X7577Y-52064D01* X7593Y-52069D01* X7607Y-52078D01* X7614Y-52079D01* X7619Y-52081D01* X7628Y-52081D01* X7644Y-52083D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* X8241D01* X7764Y-49998D01* X7644Y-50117D01* X7628Y-50119D01* X7619Y-50120D01* X7614Y-50121D01* X7607Y-50122D01* X7593Y-50130D01* X7577Y-50136D01* X7546Y-50143D01* X7510Y-50149D01* X7292Y-50166D01* X7206Y-50167D01* X7170Y-50182D01* X1980D01* X-2151Y-46051D01* X-2449Y-45852D01* X-2800Y-45782D01* X-7820D01* X-9211Y-44391D01* X-9225Y-44355D01* X-9290Y-44288D01* X-9340Y-44234D01* X-9425Y-44131D01* X-9449Y-44098D01* X-9465Y-44071D01* X-9473Y-44056D01* X-9477Y-44040D01* X-9482Y-44034D01* X-9483Y-44030D01* X-9490Y-44023D01* X-9500Y-44010D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X24259Y-56200D02* X23741D01* X23264Y-56398D01* X22898Y-56764D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57241D01* X25102Y-56764D01* X24736Y-56398D01* X24259Y-56200D01* D02* G37* %LPD*% G36* X29006Y54041D02* X29027Y53952D01* X29052Y53868D01* X29081Y53787D01* X29115Y53709D01* X29153Y53635D01* X29195Y53565D01* X29242Y53498D01* X29293Y53435D01* X29349Y53376D01* X28996Y52880D01* X28933Y52937D01* X28868Y52987D01* X28800Y53030D01* X28729Y53064D01* X28656Y53092D01* X28580Y53111D01* X28502Y53123D01* X28420Y53127D01* X28337Y53124D01* X28250Y53113D01* X28990Y54132D01* X29006Y54041D01* D02* G37* G36* X33002Y53600D02* X33010Y53513D01* X33024Y53429D01* X33045Y53347D01* X33071Y53270D01* X33104Y53195D01* X33142Y53124D01* X33187Y53056D01* X33237Y52992D01* X33294Y52930D01* X32870Y52506D01* X32808Y52563D01* X32744Y52613D01* X32676Y52658D01* X32605Y52696D01* X32530Y52729D01* X32452Y52755D01* X32372Y52776D01* X32287Y52790D01* X32200Y52798D01* X32109Y52800D01* X33000Y53691D01* X33002Y53600D01* D02* G37* G36* X567Y42792D02* X511Y42724D01* X462Y42654D01* X419Y42583D01* X383Y42509D01* X353Y42434D01* X330Y42356D01* X313Y42276D01* X303Y42195D01* X300Y42112D01* X-300D01* X-303Y42195D01* X-313Y42276D01* X-330Y42356D01* X-353Y42434D01* X-383Y42509D01* X-419Y42583D01* X-462Y42654D01* X-511Y42724D01* X-567Y42792D01* X-630Y42857D01* X630D01* X567Y42792D01* D02* G37* G36* X726Y37548D02* X890Y37411D01* X969Y37355D01* X1047Y37308D01* X1124Y37269D01* X1199Y37239D01* X1273Y37217D01* X1346Y37204D01* X1417Y37200D01* Y36800D01* X1346Y36796D01* X1273Y36783D01* X1199Y36761D01* X1124Y36731D01* X1047Y36693D01* X969Y36645D01* X890Y36589D01* X809Y36525D01* X726Y36452D01* X643Y36370D01* Y37630D01* X726Y37548D01* D02* G37* G36* X-59097Y36353D02* X-59086Y36311D01* X-59068Y36265D01* X-59043Y36216D01* X-59010Y36163D01* X-58970Y36106D01* X-58867Y35982D01* X-58805Y35914D01* X-58736Y35843D01* X-59443Y35135D01* X-59514Y35205D01* X-59706Y35370D01* X-59763Y35410D01* X-59816Y35443D01* X-59865Y35468D01* X-59911Y35486D01* X-59953Y35497D01* X-59991Y35500D01* X-59100Y36391D01* X-59097Y36353D01* D02* G37* G36* X-59909Y31600D02* X-59947Y31597D01* X-59989Y31586D01* X-60035Y31568D01* X-60084Y31543D01* X-60137Y31510D01* X-60194Y31470D01* X-60318Y31367D01* X-60386Y31305D01* X-60457Y31236D01* X-61164Y31943D01* X-61095Y32014D01* X-60930Y32206D01* X-60890Y32263D01* X-60857Y32316D01* X-60832Y32365D01* X-60814Y32411D01* X-60803Y32453D01* X-60800Y32491D01* X-59909Y31600D01* D02* G37* G36* X14491Y30100D02* X14413Y30098D01* X14337Y30089D01* X14262Y30073D01* X14189Y30051D01* X14117Y30023D01* X14047Y29988D01* X13978Y29947D01* X13910Y29899D01* X13844Y29845D01* X13779Y29784D01* X13284Y30279D01* X13345Y30344D01* X13399Y30410D01* X13447Y30478D01* X13488Y30547D01* X13523Y30617D01* X13551Y30689D01* X13573Y30762D01* X13589Y30837D01* X13598Y30913D01* X13600Y30991D01* X14491Y30100D01* D02* G37* G36* X9491D02* X9413Y30098D01* X9337Y30089D01* X9262Y30073D01* X9189Y30051D01* X9117Y30023D01* X9047Y29988D01* X8978Y29947D01* X8910Y29899D01* X8844Y29845D01* X8779Y29784D01* X8284Y30279D01* X8345Y30344D01* X8399Y30410D01* X8447Y30478D01* X8488Y30547D01* X8523Y30617D01* X8551Y30689D01* X8573Y30762D01* X8589Y30837D01* X8598Y30913D01* X8600Y30991D01* X9491Y30100D01* D02* G37* G36* X-9509D02* X-9587Y30098D01* X-9663Y30089D01* X-9738Y30073D01* X-9811Y30051D01* X-9883Y30023D01* X-9953Y29988D01* X-10022Y29947D01* X-10090Y29899D01* X-10156Y29845D01* X-10221Y29784D01* X-10716Y30279D01* X-10655Y30344D01* X-10601Y30410D01* X-10553Y30478D01* X-10512Y30547D01* X-10477Y30617D01* X-10449Y30689D01* X-10427Y30762D01* X-10411Y30837D01* X-10402Y30913D01* X-10400Y30991D01* X-9509Y30100D01* D02* G37* G36* X-14509D02* X-14587Y30098D01* X-14663Y30089D01* X-14738Y30073D01* X-14811Y30051D01* X-14883Y30023D01* X-14953Y29988D01* X-15022Y29947D01* X-15090Y29899D01* X-15156Y29845D01* X-15221Y29784D01* X-15716Y30279D01* X-15655Y30344D01* X-15601Y30410D01* X-15553Y30478D01* X-15512Y30547D01* X-15477Y30617D01* X-15449Y30689D01* X-15427Y30762D01* X-15411Y30837D01* X-15402Y30913D01* X-15400Y30991D01* X-14509Y30100D01* D02* G37* G36* X-57243Y26270D02* X-57272Y26295D01* X-57309Y26317D01* X-57354Y26336D01* X-57407Y26353D01* X-57468Y26368D01* X-57536Y26379D01* X-57697Y26395D01* X-57789Y26399D01* X-57888Y26400D01* Y27400D01* X-57789Y27401D01* X-57536Y27421D01* X-57468Y27433D01* X-57407Y27447D01* X-57354Y27464D01* X-57309Y27483D01* X-57272Y27505D01* X-57243Y27530D01* Y26270D01* D02* G37* G36* X11703Y7453D02* X11714Y7411D01* X11732Y7365D01* X11757Y7316D01* X11790Y7263D01* X11830Y7206D01* X11933Y7082D01* X11995Y7014D01* X12065Y6943D01* X11357Y6236D01* X11286Y6305D01* X11094Y6470D01* X11037Y6510D01* X10984Y6543D01* X10935Y6568D01* X10889Y6586D01* X10847Y6597D01* X10809Y6600D01* X11700Y7491D01* X11703Y7453D01* D02* G37* G36* X-53974Y6091D02* X-53965Y6006D01* X-53951Y5925D01* X-53931Y5847D01* X-53905Y5774D01* X-53873Y5704D01* X-53836Y5637D01* X-53793Y5575D01* X-53744Y5516D01* X-53689Y5461D01* X-54949Y5424D01* X-54897Y5482D01* X-54851Y5544D01* X-54810Y5609D01* X-54775Y5677D01* X-54745Y5749D01* X-54720Y5824D01* X-54701Y5902D01* X-54688Y5984D01* X-54680Y6069D01* X-54677Y6157D01* X-53977Y6180D01* X-53974Y6091D01* D02* G37* G36* X-49877Y6072D02* X-49875Y5985D01* X-49857Y5817D01* X-49842Y5737D01* X-49822Y5659D01* X-49798Y5584D01* X-49770Y5512D01* X-49737Y5442D01* X-49700Y5374D01* X-49658Y5310D01* X-50894Y5552D01* X-50834Y5596D01* X-50780Y5646D01* X-50732Y5700D01* X-50691Y5759D01* X-50656Y5824D01* X-50628Y5894D01* X-50605Y5968D01* X-50590Y6048D01* X-50580Y6133D01* X-50577Y6222D01* X-49877Y6072D01* D02* G37* G36* X-10609Y1600D02* X-10647Y1597D01* X-10689Y1586D01* X-10735Y1568D01* X-10784Y1543D01* X-10837Y1510D01* X-10894Y1470D01* X-11018Y1367D01* X-11086Y1305D01* X-11157Y1235D01* X-11864Y1943D01* X-11795Y2014D01* X-11630Y2206D01* X-11590Y2263D01* X-11557Y2316D01* X-11532Y2365D01* X-11514Y2411D01* X-11503Y2453D01* X-11500Y2491D01* X-10609Y1600D01* D02* G37* G36* X-55284Y1421D02* X-55345Y1356D01* X-55399Y1290D01* X-55447Y1222D01* X-55488Y1153D01* X-55523Y1083D01* X-55551Y1011D01* X-55573Y938D01* X-55589Y863D01* X-55598Y787D01* X-55600Y709D01* X-56491Y1600D01* X-56413Y1602D01* X-56337Y1611D01* X-56262Y1627D01* X-56189Y1649D01* X-56117Y1677D01* X-56047Y1712D01* X-55978Y1753D01* X-55910Y1801D01* X-55844Y1855D01* X-55779Y1916D01* X-55284Y1421D01* D02* G37* G36* X-51143Y1379D02* X-51203Y1314D01* X-51257Y1248D01* X-51305Y1181D01* X-51346Y1112D01* X-51381Y1041D01* X-51410Y969D01* X-51432Y896D01* X-51447Y821D01* X-51456Y745D01* X-51458Y667D01* X-52349Y1558D01* X-52271Y1561D01* X-52195Y1570D01* X-52121Y1585D01* X-52047Y1607D01* X-51975Y1635D01* X-51905Y1670D01* X-51836Y1711D01* X-51768Y1759D01* X-51702Y1813D01* X-51638Y1874D01* X-51143Y1379D01* D02* G37* G36* X16701Y174D02* X16719Y-39D01* X16736Y-134D01* X16758Y-223D01* X16785Y-305D01* X16817Y-379D01* X16854Y-447D01* X16896Y-507D01* X16944Y-561D01* X16661Y-844D01* X16607Y-796D01* X16547Y-754D01* X16479Y-717D01* X16405Y-685D01* X16323Y-658D01* X16234Y-636D01* X16139Y-619D01* X16036Y-608D01* X15926Y-601D01* X15809Y-600D01* X16700Y291D01* X16701Y174D01* D02* G37* G36* X-65406Y-1730D02* X-65463Y-1792D01* X-65513Y-1856D01* X-65558Y-1924D01* X-65596Y-1995D01* X-65629Y-2070D01* X-65655Y-2148D01* X-65675Y-2228D01* X-65690Y-2313D01* X-65698Y-2400D01* X-65700Y-2491D01* X-66591Y-1600D01* X-66500Y-1598D01* X-66413Y-1590D01* X-66329Y-1575D01* X-66247Y-1555D01* X-66170Y-1529D01* X-66095Y-1496D01* X-66024Y-1458D01* X-65956Y-1413D01* X-65892Y-1363D01* X-65830Y-1306D01* X-65406Y-1730D01* D02* G37* G36* X-13293Y-900D02* X-13427Y-1044D01* X-13547Y-1195D01* X-13654Y-1351D01* X-13745Y-1513D01* X-13823Y-1680D01* X-13887Y-1854D01* X-13936Y-2034D01* X-13972Y-2219D01* X-13993Y-2410D01* X-14000Y-2607D01* X-15000Y-2900D01* X-15010Y-2710D01* X-15040Y-2540D01* X-15090Y-2390D01* X-15160Y-2260D01* X-15250Y-2150D01* X-15360Y-2060D01* X-15490Y-1990D01* X-15640Y-1940D01* X-15810Y-1910D01* X-16000Y-1900D01* X-15707Y-900D01* X-15510Y-893D01* X-15319Y-872D01* X-15134Y-836D01* X-14954Y-787D01* X-14780Y-723D01* X-14613Y-645D01* X-14451Y-554D01* X-14295Y-447D01* X-14144Y-327D01* X-14000Y-193D01* X-13293Y-900D01* D02* G37* G36* X28493Y-3004D02* X28553Y-3046D01* X28621Y-3083D01* X28695Y-3115D01* X28777Y-3142D01* X28866Y-3164D01* X28962Y-3181D01* X29064Y-3192D01* X29174Y-3199D01* X29291Y-3200D01* X28400Y-4091D01* X28399Y-3974D01* X28381Y-3761D01* X28364Y-3666D01* X28342Y-3577D01* X28315Y-3495D01* X28283Y-3421D01* X28246Y-3353D01* X28204Y-3293D01* X28156Y-3239D01* X28439Y-2956D01* X28493Y-3004D01* D02* G37* G36* X-17695Y-4872D02* X-17717Y-4909D01* X-17736Y-4954D01* X-17753Y-5007D01* X-17767Y-5068D01* X-17779Y-5136D01* X-17795Y-5297D01* X-17799Y-5389D01* X-17800Y-5488D01* X-18800D01* X-18801Y-5389D01* X-18821Y-5136D01* X-18833Y-5068D01* X-18847Y-5007D01* X-18864Y-4954D01* X-18883Y-4909D01* X-18905Y-4872D01* X-18930Y-4843D01* X-17670D01* X-17695Y-4872D01* D02* G37* G36* X28493Y-6104D02* X28553Y-6146D01* X28621Y-6183D01* X28695Y-6215D01* X28777Y-6242D01* X28866Y-6264D01* X28962Y-6281D01* X29064Y-6292D01* X29174Y-6299D01* X29291Y-6300D01* X28400Y-7191D01* X28399Y-7074D01* X28381Y-6861D01* X28364Y-6766D01* X28342Y-6677D01* X28315Y-6595D01* X28283Y-6521D01* X28246Y-6453D01* X28204Y-6393D01* X28156Y-6339D01* X28439Y-6056D01* X28493Y-6104D01* D02* G37* G36* X-34156Y-7539D02* X-34204Y-7593D01* X-34246Y-7653D01* X-34283Y-7721D01* X-34315Y-7795D01* X-34342Y-7877D01* X-34364Y-7966D01* X-34381Y-8061D01* X-34392Y-8164D01* X-34399Y-8274D01* X-34400Y-8391D01* X-35291Y-7500D01* X-35174Y-7499D01* X-34962Y-7481D01* X-34866Y-7464D01* X-34777Y-7442D01* X-34695Y-7415D01* X-34621Y-7383D01* X-34553Y-7346D01* X-34493Y-7304D01* X-34439Y-7256D01* X-34156Y-7539D01* D02* G37* G36* X-1300Y36884D02* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X868Y36029D01* X945Y36060D01* X1022Y36135D01* X1088Y36193D01* X1149Y36243D01* X1206Y36283D01* X1257Y36313D01* X1302Y36336D01* X1338Y36351D01* X16331D01* X18041Y34641D01* X18500Y34451D01* X26631D01* X29451Y31631D01* Y28600D01* X29641Y28141D01* X35151Y22631D01* Y-7731D01* X34331Y-8551D01* X30495D01* X30288Y-8051D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* X29440Y-5569D01* X29559Y-5400D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* X29373D01* X29296Y-2767D01* X29189Y-2766D01* X29101Y-2761D01* X29023Y-2752D01* X28955Y-2740D01* X28897Y-2726D01* X28849Y-2710D01* X28813Y-2695D01* X13159Y12959D01* X12700Y13149D01* X-14400D01* X-14859Y12959D01* X-34813Y-6995D01* X-34849Y-7010D01* X-34897Y-7026D01* X-34955Y-7040D01* X-35017Y-7051D01* X-35195Y-7066D01* X-35296Y-7067D01* X-35373Y-7100D01* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36522Y-8846D01* X-36946Y-9129D01* X-40924Y-5151D01* X-41222Y-4952D01* X-41573Y-4882D01* X-66220D01* X-66802Y-4300D01* X-66595Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2575D01* X-65267Y-2501D01* X-65265Y-2426D01* X-65260Y-2369D01* X-65251Y-2317D01* X-65240Y-2270D01* X-65225Y-2226D01* X-65207Y-2185D01* X-65186Y-2146D01* X-65161Y-2109D01* X-65133Y-2073D01* X-65088Y-2024D01* X-65072Y-1982D01* X-64195Y-1105D01* X-64041Y-873D01* X-63986Y-600D01* Y5304D01* X-61304Y7986D01* X-54748D01* X-54557Y7524D01* X-54868Y7214D01* X-55033Y6966D01* X-55091Y6673D01* Y6211D01* X-55110Y6171D01* X-55112Y6096D01* X-55117Y6040D01* X-55126Y5989D01* X-55137Y5942D01* X-55151Y5900D01* X-55167Y5860D01* X-55186Y5824D01* X-55208Y5789D01* X-55233Y5756D01* X-55273Y5711D01* X-55297Y5642D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55079Y3740D01* X-55061Y3436D01* X-55086Y3177D01* X-55141Y3141D01* X-55141Y3141D01* X-56035Y2247D01* X-56076Y2231D01* X-56130Y2180D01* X-56173Y2145D01* X-56214Y2116D01* X-56254Y2092D01* X-56293Y2073D01* X-56330Y2058D01* X-56368Y2047D01* X-56406Y2039D01* X-56445Y2035D01* X-56505Y2033D01* X-56577Y2000D01* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57236Y-402D01* X-56759Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y623D01* X-55167Y695D01* X-55165Y754D01* X-55161Y794D01* X-55153Y832D01* X-55142Y870D01* X-55127Y907D01* X-55108Y946D01* X-55084Y986D01* X-55055Y1027D01* X-55020Y1070D01* X-54969Y1124D01* X-54953Y1165D01* X-54283Y1835D01* X-53727D01* X-53584Y1600D01* X-53485Y1335D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y581D01* X-51025Y654D01* X-51024Y713D01* X-51019Y752D01* X-51011Y790D01* X-51000Y828D01* X-50985Y866D01* X-50966Y904D01* X-50942Y944D01* X-50913Y986D01* X-50878Y1028D01* X-50827Y1082D01* X-50811Y1124D01* X-50400Y1535D01* X-49500D01* X-49207Y1594D01* X-48959Y1759D01* X-47659Y3059D01* X-47493Y3307D01* X-47435Y3600D01* X-47435Y3600D01* Y7816D01* X-33566Y21685D01* X5950D01* X6243Y21744D01* X6491Y21909D01* X14035Y29453D01* X14076Y29469D01* X14130Y29520D01* X14173Y29555D01* X14214Y29584D01* X14254Y29608D01* X14293Y29627D01* X14330Y29642D01* X14368Y29653D01* X14406Y29661D01* X14445Y29665D01* X14505Y29667D01* X14577Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y31077D01* X13167Y31005D01* X13165Y30945D01* X13161Y30906D01* X13153Y30868D01* X13142Y30830D01* X13127Y30793D01* X13108Y30754D01* X13084Y30714D01* X13055Y30673D01* X13020Y30630D01* X12969Y30576D01* X12953Y30535D01* X5633Y23215D01* X3449D01* X3258Y23677D01* X9035Y29453D01* X9076Y29469D01* X9130Y29520D01* X9173Y29555D01* X9214Y29584D01* X9254Y29608D01* X9293Y29627D01* X9330Y29642D01* X9368Y29653D01* X9406Y29661D01* X9445Y29665D01* X9505Y29667D01* X9577Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y31077D01* X8167Y31005D01* X8165Y30945D01* X8161Y30906D01* X8153Y30868D01* X8142Y30830D01* X8127Y30793D01* X8108Y30754D01* X8084Y30714D01* X8055Y30673D01* X8020Y30630D01* X7969Y30576D01* X7953Y30535D01* X1733Y24315D01* X-14451D01* X-14642Y24777D01* X-9965Y29453D01* X-9924Y29469D01* X-9870Y29520D01* X-9827Y29555D01* X-9786Y29584D01* X-9746Y29608D01* X-9707Y29627D01* X-9670Y29642D01* X-9632Y29653D01* X-9594Y29661D01* X-9555Y29665D01* X-9495Y29667D01* X-9423Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-8967Y32186D01* X-8867Y32686D01* X-6500D01* X-6227Y32741D01* X-5995Y32895D01* X-1800Y37091D01* X-1300Y36884D01* D02* G37* G36* X-11409Y-8400D02* X-11447Y-8403D01* X-11489Y-8414D01* X-11535Y-8432D01* X-11584Y-8457D01* X-11637Y-8490D01* X-11694Y-8530D01* X-11818Y-8633D01* X-11886Y-8695D01* X-11957Y-8765D01* X-12664Y-8057D01* X-12595Y-7986D01* X-12430Y-7794D01* X-12390Y-7737D01* X-12357Y-7684D01* X-12332Y-7635D01* X-12314Y-7589D01* X-12303Y-7547D01* X-12300Y-7509D01* X-11409Y-8400D01* D02* G37* G36* X-31596Y-10954D02* X-31583Y-11027D01* X-31561Y-11101D01* X-31531Y-11176D01* X-31492Y-11253D01* X-31445Y-11331D01* X-31389Y-11411D01* X-31325Y-11491D01* X-31252Y-11574D01* X-31170Y-11657D01* X-32430D01* X-32348Y-11574D01* X-32211Y-11411D01* X-32155Y-11331D01* X-32107Y-11253D01* X-32069Y-11176D01* X-32039Y-11101D01* X-32017Y-11027D01* X-32004Y-10954D01* X-32000Y-10882D01* X-31600D01* X-31596Y-10954D01* D02* G37* G36* X-71849Y-249D02* X-69518Y-2580D01* Y-3800D01* X-69448Y-4151D01* X-69249Y-4449D01* X-67249Y-6449D01* X-66951Y-6648D01* X-66600Y-6718D01* X-41953D01* X-33322Y-15349D01* X-33024Y-15548D01* X-32673Y-15618D01* X-30900D01* X-30549Y-15548D01* X-30251Y-15349D01* X-27551Y-12649D01* X-27352Y-12351D01* X-27282Y-12000D01* Y-5180D01* X-24420Y-2318D01* X-16054D01* X-16023Y-2332D01* X-15859Y-2341D01* X-15747Y-2361D01* X-15662Y-2389D01* X-15602Y-2421D01* X-15558Y-2458D01* X-15521Y-2502D01* X-15489Y-2562D01* X-15461Y-2647D01* X-15441Y-2759D01* X-15432Y-2923D01* X-15418Y-2954D01* Y-12060D01* X-16920Y-13563D01* X-17382Y-13371D01* Y-5530D01* X-17367Y-5494D01* X-17366Y-5401D01* X-17363Y-5327D01* X-17350Y-5194D01* X-17343Y-5154D01* X-17336Y-5123D01* X-17331Y-5107D01* X-17323Y-5093D01* X-17321Y-5086D01* X-17320Y-5081D01* X-17319Y-5072D01* X-17317Y-5055D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19283Y-5055D01* X-19281Y-5072D01* X-19281Y-5081D01* X-19279Y-5086D01* X-19277Y-5093D01* X-19270Y-5107D01* X-19264Y-5123D01* X-19257Y-5154D01* X-19251Y-5190D01* X-19234Y-5408D01* X-19233Y-5494D01* X-19218Y-5530D01* Y-24920D01* X-23780Y-29482D01* X-37200D01* X-37551Y-29552D01* X-37849Y-29751D01* X-38309Y-30211D01* X-38345Y-30225D01* X-38412Y-30290D01* X-38466Y-30340D01* X-38569Y-30425D01* X-38602Y-30449D01* X-38629Y-30465D01* X-38644Y-30473D01* X-38660Y-30477D01* X-38666Y-30482D01* X-38670Y-30483D01* X-38677Y-30490D01* X-38690Y-30500D01* X-38859D01* X-39336Y-30698D01* X-39370Y-30732D01* X-42682Y-27420D01* Y-22100D01* X-42752Y-21749D01* X-42951Y-21451D01* X-47851Y-16551D01* X-48149Y-16352D01* X-48500Y-16282D01* X-51099D01* X-51141Y-15800D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14241D01* X-50298Y-13764D01* X-50664Y-13398D01* X-51141Y-13200D01* X-51659D01* X-52136Y-13398D01* X-52502Y-13764D01* X-52700Y-14241D01* Y-14759D01* X-52674Y-14821D01* X-53098Y-15104D01* X-53451Y-14751D01* X-53749Y-14552D01* X-54100Y-14482D01* X-55137D01* X-55344Y-13982D01* X-55198Y-13836D01* X-55000Y-13359D01* Y-12841D01* X-55198Y-12364D01* X-55564Y-11998D01* X-56041Y-11800D01* X-56559D01* X-57036Y-11998D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57256Y-13982D01* X-57463Y-14482D01* X-59820D01* X-64951Y-9351D01* X-65249Y-9152D01* X-65600Y-9082D01* X-68040D01* X-72382Y-4740D01* Y-350D01* X-71882Y-199D01* X-71849Y-249D01* D02* G37* G36* X-54883Y-19142D02* X-54865Y-19354D01* X-54848Y-19450D01* X-54826Y-19539D01* X-54799Y-19621D01* X-54767Y-19695D01* X-54730Y-19763D01* X-54688Y-19823D01* X-54641Y-19877D01* X-54923Y-20159D01* X-54977Y-20112D01* X-55037Y-20070D01* X-55105Y-20033D01* X-55180Y-20001D01* X-55261Y-19974D01* X-55350Y-19952D01* X-55446Y-19935D01* X-55549Y-19924D01* X-55658Y-19917D01* X-55775Y-19916D01* X-54884Y-19025D01* X-54883Y-19142D01* D02* G37* G36* X-37336Y-31243D02* X-37405Y-31314D01* X-37570Y-31506D01* X-37610Y-31563D01* X-37643Y-31616D01* X-37668Y-31665D01* X-37686Y-31711D01* X-37697Y-31753D01* X-37700Y-31791D01* X-38591Y-30900D01* X-38553Y-30897D01* X-38511Y-30886D01* X-38465Y-30868D01* X-38416Y-30843D01* X-38363Y-30810D01* X-38306Y-30770D01* X-38182Y-30667D01* X-38114Y-30605D01* X-38043Y-30536D01* X-37336Y-31243D01* D02* G37* G36* X-35318Y-33019D02* X-35389Y-33091D01* X-35601Y-33332D01* X-35637Y-33381D01* X-35666Y-33425D01* X-35687Y-33464D01* X-35702Y-33498D01* X-35709Y-33528D01* X-36454Y-32512D01* X-36413Y-32514D01* X-36369Y-32509D01* X-36321Y-32496D01* X-36270Y-32474D01* X-36215Y-32445D01* X-36157Y-32408D01* X-36096Y-32362D01* X-36031Y-32309D01* X-35892Y-32179D01* X-35318Y-33019D01* D02* G37* G36* X-41033Y-32358D02* X-40841Y-32522D01* X-40784Y-32563D01* X-40731Y-32595D01* X-40682Y-32621D01* X-40637Y-32639D01* X-40595Y-32649D01* X-40556Y-32653D01* X-41447Y-33544D01* X-41451Y-33505D01* X-41461Y-33463D01* X-41479Y-33418D01* X-41505Y-33369D01* X-41537Y-33316D01* X-41578Y-33259D01* X-41680Y-33134D01* X-41742Y-33067D01* X-41812Y-32995D01* X-41105Y-32288D01* X-41033Y-32358D01* D02* G37* G36* X-39644Y-33600D02* X-39633Y-33642D01* X-39615Y-33687D01* X-39590Y-33737D01* X-39557Y-33790D01* X-39517Y-33847D01* X-39415Y-33971D01* X-39352Y-34039D01* X-39283Y-34110D01* X-39990Y-34817D01* X-40061Y-34748D01* X-40253Y-34583D01* X-40310Y-34543D01* X-40363Y-34510D01* X-40413Y-34485D01* X-40458Y-34467D01* X-40500Y-34456D01* X-40538Y-34453D01* X-39647Y-33562D01* X-39644Y-33600D01* D02* G37* G36* X-55856Y-36139D02* X-55904Y-36193D01* X-55946Y-36253D01* X-55983Y-36321D01* X-56015Y-36395D01* X-56042Y-36477D01* X-56064Y-36566D01* X-56081Y-36661D01* X-56092Y-36764D01* X-56099Y-36874D01* X-56100Y-36991D01* X-56991Y-36100D01* X-56874Y-36099D01* X-56661Y-36081D01* X-56566Y-36064D01* X-56477Y-36042D01* X-56395Y-36015D01* X-56321Y-35983D01* X-56253Y-35946D01* X-56193Y-35904D01* X-56139Y-35856D01* X-55856Y-36139D01* D02* G37* G36* X-34119Y-40011D02* X-34100Y-40264D01* X-34088Y-40332D01* X-34074Y-40393D01* X-34057Y-40446D01* X-34037Y-40491D01* X-34015Y-40528D01* X-33990Y-40557D01* X-35250D01* X-35226Y-40528D01* X-35204Y-40491D01* X-35184Y-40446D01* X-35167Y-40393D01* X-35153Y-40332D01* X-35141Y-40264D01* X-35126Y-40103D01* X-35122Y-40011D01* X-35120Y-39912D01* X-34121D01* X-34119Y-40011D01* D02* G37* G36* X2734Y-62013D02* X2794Y-62073D01* X2858Y-62126D01* X2924Y-62172D01* X2993Y-62211D01* X3066Y-62243D01* X3141Y-62268D01* X3220Y-62286D01* X3301Y-62296D01* X3386Y-62300D01* X3315Y-62900D01* X3233Y-62903D01* X3152Y-62912D01* X3071Y-62927D01* X2992Y-62948D01* X2914Y-62974D01* X2837Y-63007D01* X2761Y-63046D01* X2685Y-63090D01* X2611Y-63141D01* X2537Y-63197D01* X2677Y-61945D01* X2734Y-62013D01* D02* G37* G36* X-806Y-64730D02* X-866Y-64795D01* X-919Y-64861D01* X-966Y-64929D01* X-1006Y-64998D01* X-1039Y-65069D01* X-1065Y-65142D01* X-1084Y-65216D01* X-1097Y-65293D01* X-1103Y-65370D01* X-1101Y-65450D01* X-1950Y-64601D01* X-1870Y-64603D01* X-1792Y-64597D01* X-1716Y-64584D01* X-1642Y-64565D01* X-1569Y-64539D01* X-1498Y-64506D01* X-1429Y-64466D01* X-1361Y-64420D01* X-1295Y-64366D01* X-1230Y-64306D01* X-806Y-64730D01* D02* G37* %LPC*% G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X-42441Y-9300D02* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43436Y-11702D01* X-42959Y-11900D01* X-42441D01* X-41964Y-11702D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* D02* G37* G36* X-51641Y-9800D02* X-52159D01* X-52636Y-9998D01* X-53002Y-10364D01* X-53200Y-10841D01* Y-11359D01* X-53002Y-11836D01* X-52636Y-12202D01* X-52159Y-12400D01* X-51641D01* X-51164Y-12202D01* X-50798Y-11836D01* X-50600Y-11359D01* Y-10841D01* X-50798Y-10364D01* X-51164Y-9998D01* X-51641Y-9800D01* D02* G37* G36* X-22241Y-18000D02* X-22759D01* X-23236Y-18198D01* X-23602Y-18564D01* X-23800Y-19041D01* Y-19559D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* D02* G37* %LPD*% G36* X73548Y2774D02* X73411Y2610D01* X73355Y2531D01* X73308Y2453D01* X73269Y2376D01* X73239Y2301D01* X73217Y2227D01* X73204Y2154D01* X73200Y2083D01* X72800D01* X72796Y2154D01* X72783Y2227D01* X72761Y2301D01* X72731Y2376D01* X72693Y2453D01* X72645Y2531D01* X72589Y2610D01* X72525Y2691D01* X72452Y2774D01* X72370Y2857D01* X73630D01* X73548Y2774D01* D02* G37* G36* X50726Y-3452D02* X50889Y-3589D01* X50969Y-3645D01* X51047Y-3692D01* X51124Y-3731D01* X51199Y-3761D01* X51274Y-3783D01* X51346Y-3796D01* X51417Y-3800D01* Y-4200D01* X51346Y-4204D01* X51274Y-4217D01* X51199Y-4239D01* X51124Y-4269D01* X51047Y-4307D01* X50969Y-4355D01* X50889Y-4411D01* X50809Y-4475D01* X50726Y-4548D01* X50643Y-4630D01* Y-3370D01* X50726Y-3452D01* D02* G37* G36* X72991Y-5600D02* X72874Y-5601D01* X72662Y-5619D01* X72566Y-5636D01* X72477Y-5658D01* X72395Y-5685D01* X72321Y-5717D01* X72253Y-5754D01* X72193Y-5796D01* X72139Y-5844D01* X71856Y-5561D01* X71904Y-5507D01* X71946Y-5447D01* X71983Y-5379D01* X72015Y-5305D01* X72042Y-5223D01* X72064Y-5134D01* X72081Y-5039D01* X72092Y-4936D01* X72099Y-4826D01* X72100Y-4709D01* X72991Y-5600D01* D02* G37* G36* X50726Y-6652D02* X50889Y-6789D01* X50969Y-6845D01* X51047Y-6893D01* X51124Y-6931D01* X51199Y-6961D01* X51274Y-6983D01* X51346Y-6996D01* X51417Y-7000D01* Y-7400D01* X51346Y-7404D01* X51274Y-7417D01* X51199Y-7439D01* X51124Y-7469D01* X51047Y-7508D01* X50969Y-7555D01* X50889Y-7611D01* X50809Y-7675D01* X50726Y-7748D01* X50643Y-7830D01* Y-6570D01* X50726Y-6652D01* D02* G37* G36* X-50099Y-22126D02* X-50081Y-22339D01* X-50064Y-22434D01* X-50042Y-22523D01* X-50015Y-22605D01* X-49983Y-22679D01* X-49946Y-22747D01* X-49904Y-22807D01* X-49856Y-22861D01* X-50139Y-23144D01* X-50193Y-23096D01* X-50253Y-23054D01* X-50321Y-23017D01* X-50395Y-22985D01* X-50477Y-22958D01* X-50566Y-22936D01* X-50661Y-22919D01* X-50764Y-22908D01* X-50874Y-22901D01* X-50991Y-22900D01* X-50100Y-22009D01* X-50099Y-22126D01* D02* G37* G36* X-51509Y-32500D02* X-51626Y-32501D01* X-51838Y-32519D01* X-51934Y-32536D01* X-52023Y-32558D01* X-52105Y-32585D01* X-52179Y-32617D01* X-52247Y-32654D01* X-52307Y-32696D01* X-52361Y-32744D01* X-52644Y-32461D01* X-52596Y-32407D01* X-52554Y-32347D01* X-52517Y-32279D01* X-52485Y-32205D01* X-52458Y-32123D01* X-52436Y-32034D01* X-52419Y-31938D01* X-52408Y-31836D01* X-52401Y-31726D01* X-52400Y-31609D01* X-51509Y-32500D01* D02* G37* G36* X-57627Y-40773D02* X-57619Y-40779D01* X-57606Y-40784D01* X-57590Y-40788D01* X-57569Y-40792D01* X-57543Y-40795D01* X-57480Y-40799D01* X-57400Y-40800D01* Y-41200D01* X-57442Y-41200D01* X-57569Y-41208D01* X-57590Y-41212D01* X-57606Y-41216D01* X-57619Y-41221D01* X-57627Y-41227D01* X-57631Y-41233D01* Y-40767D01* X-57627Y-40773D01* D02* G37* G36* X-62743Y-43230D02* X-62826Y-43148D01* X-62989Y-43011D01* X-63069Y-42955D01* X-63147Y-42908D01* X-63224Y-42869D01* X-63299Y-42839D01* X-63374Y-42817D01* X-63446Y-42804D01* X-63517Y-42800D01* Y-42400D01* X-63446Y-42396D01* X-63374Y-42383D01* X-63299Y-42361D01* X-63224Y-42331D01* X-63147Y-42292D01* X-63069Y-42245D01* X-62989Y-42189D01* X-62909Y-42125D01* X-62826Y-42052D01* X-62743Y-41970D01* Y-43230D01* D02* G37* G36* X-70919Y-46522D02* X-70971Y-46568D01* X-71017Y-46618D01* X-71057Y-46672D01* X-71090Y-46729D01* X-71118Y-46789D01* X-71139Y-46853D01* X-71154Y-46921D01* X-71163Y-46992D01* X-71166Y-47066D01* X-71566D01* X-71569Y-46992D01* X-71579Y-46921D01* X-71594Y-46853D01* X-71615Y-46789D01* X-71643Y-46729D01* X-71676Y-46672D01* X-71716Y-46618D01* X-71762Y-46568D01* X-71813Y-46522D01* X-71871Y-46479D01* X-70862D01* X-70919Y-46522D01* D02* G37* G36* X-72356Y-51139D02* X-72404Y-51193D01* X-72446Y-51253D01* X-72483Y-51321D01* X-72515Y-51395D01* X-72542Y-51477D01* X-72564Y-51566D01* X-72581Y-51661D01* X-72592Y-51764D01* X-72599Y-51874D01* X-72600Y-51991D01* X-73491Y-51100D01* X-73374Y-51099D01* X-73162Y-51081D01* X-73066Y-51064D01* X-72977Y-51042D01* X-72895Y-51015D01* X-72821Y-50983D01* X-72753Y-50946D01* X-72693Y-50904D01* X-72639Y-50856D01* X-72356Y-51139D01* D02* G37* G36* X-77499Y-53626D02* X-77481Y-53838D01* X-77464Y-53934D01* X-77442Y-54023D01* X-77415Y-54105D01* X-77383Y-54179D01* X-77346Y-54247D01* X-77304Y-54307D01* X-77256Y-54361D01* X-77539Y-54644D01* X-77593Y-54596D01* X-77653Y-54554D01* X-77721Y-54517D01* X-77795Y-54485D01* X-77877Y-54458D01* X-77966Y-54436D01* X-78061Y-54419D01* X-78164Y-54408D01* X-78274Y-54401D01* X-78391Y-54400D01* X-77500Y-53509D01* X-77499Y-53626D01* D02* G37* G36* X-74307Y-53904D02* X-74247Y-53946D01* X-74179Y-53983D01* X-74105Y-54015D01* X-74023Y-54042D01* X-73934Y-54064D01* X-73839Y-54081D01* X-73736Y-54092D01* X-73626Y-54099D01* X-73509Y-54100D01* X-74400Y-54991D01* X-74401Y-54874D01* X-74419Y-54662D01* X-74436Y-54566D01* X-74458Y-54477D01* X-74485Y-54395D01* X-74517Y-54321D01* X-74554Y-54253D01* X-74596Y-54193D01* X-74644Y-54139D01* X-74361Y-53856D01* X-74307Y-53904D01* D02* G37* G36* X-9897Y-44147D02* X-9886Y-44189D01* X-9868Y-44235D01* X-9843Y-44284D01* X-9810Y-44337D01* X-9770Y-44394D01* X-9667Y-44518D01* X-9605Y-44586D01* X-9535Y-44657D01* X-10243Y-45364D01* X-10314Y-45295D01* X-10506Y-45130D01* X-10563Y-45090D01* X-10616Y-45057D01* X-10665Y-45032D01* X-10711Y-45014D01* X-10753Y-45003D01* X-10791Y-45000D01* X-9900Y-44109D01* X-9897Y-44147D01* D02* G37* G36* X-10809Y-45000D02* X-10847Y-45003D01* X-10889Y-45014D01* X-10935Y-45032D01* X-10984Y-45057D01* X-11037Y-45090D01* X-11094Y-45130D01* X-11218Y-45233D01* X-11286Y-45295D01* X-11296Y-45304D01* X-11305Y-45314D01* X-11470Y-45506D01* X-11510Y-45563D01* X-11543Y-45616D01* X-11568Y-45665D01* X-11586Y-45711D01* X-11597Y-45753D01* X-11600Y-45791D01* X-12491Y-44900D01* X-12453Y-44897D01* X-12411Y-44886D01* X-12365Y-44868D01* X-12316Y-44843D01* X-12263Y-44810D01* X-12206Y-44770D01* X-12082Y-44667D01* X-12014Y-44605D01* X-12004Y-44596D01* X-11995Y-44586D01* X-11830Y-44394D01* X-11790Y-44337D01* X-11757Y-44284D01* X-11732Y-44235D01* X-11714Y-44189D01* X-11703Y-44147D01* X-11700Y-44109D01* X-10809Y-45000D01* D02* G37* G36* X7857Y-51730D02* X7828Y-51705D01* X7791Y-51683D01* X7746Y-51664D01* X7693Y-51647D01* X7632Y-51632D01* X7564Y-51621D01* X7403Y-51605D01* X7311Y-51601D01* X7212Y-51600D01* Y-50600D01* X7311Y-50599D01* X7564Y-50579D01* X7632Y-50568D01* X7693Y-50553D01* X7746Y-50536D01* X7791Y-50517D01* X7828Y-50495D01* X7857Y-50470D01* Y-51730D01* D02* G37* D10* X-43600Y-27800D02* Y-22100D01* X-52300Y-17200D02* X-48500D01* X-43600Y-22100D01* X-71200Y400D02* X-68600Y-2200D01* X-71200Y400D02* Y5800D01* X-62200Y14800D01* X-65000Y15960D02* Y27400D01* X-74700Y-5700D02* Y6260D01* X-73300Y-5120D02* Y5680D01* X-74700Y6260D02* X-65000Y15960D01* X-62200Y14800D02* Y23200D01* X-73300Y5680D02* X-63600Y15380D01* Y24800D01* X-65980Y-11600D02* X-60780Y-16800D01* X-74700Y-5700D02* X-68800Y-11600D01* X-65980D01* X-58500Y26900D02* X-56600D01* X-62200Y23200D02* X-58500Y26900D01* X-63600Y24800D02* X-57400Y31000D01* X-65000Y27400D02* X-59900Y32500D01* X-68600Y-3800D02* Y-2200D01* Y-3800D02* X-66600Y-5800D01* X-41573D01* X-32673Y-14700D01* X-30900D01* X-28200Y-12000D01* Y-4800D01* X-24800Y-1400D01* X-14500D01* X-57400Y31000D02* Y33800D01* X-60000Y36400D02* X-57400Y33800D01* X-60780Y-16800D02* X-54900D01* X-73300Y-5120D02* X-68420Y-10000D01* X-65600D01* X-60200Y-15400D02* X-54100D01* X-65600Y-10000D02* X-60200Y-15400D01* X-53100Y-18600D02* X-49200D01* X-54900Y-16800D02* X-53100Y-18600D01* X-54100Y-15400D02* X-52300Y-17200D01* X-49200Y-18600D02* X-45000Y-22800D01* Y-29100D02* X-40547Y-33553D01* X-43600Y-27800D02* X-39600Y-31800D01* X-45000Y-29100D02* Y-22800D01* X-39600Y-31800D02* X-38600D01* X-2800Y-46700D02* X1600Y-51100D01* X-8200Y-46700D02* X-2800D01* X1600Y-51100D02* X8500D01* X10200Y-12800D02* X12700Y-10300D01* X-10800Y-12800D02* X10200D01* X12700Y-10300D02* Y5600D01* X10800Y7500D02* X12700Y5600D01* X-13100Y-13120D02* Y-9200D01* X-11400Y-7500D01* X-16900Y-14840D02* X-14500Y-12440D01* Y-1400D01* X-10600Y2500D01* X-15500Y-15520D02* X-13100Y-13120D01* X-22820Y-31800D02* X-16900Y-25880D01* Y-14840D01* X-21660Y-34600D02* X-14100Y-27040D01* Y-16100D02* X-10800Y-12800D01* X-14100Y-27040D02* Y-16100D01* X-15500Y-26460D02* Y-15520D01* X-22240Y-33200D02* X-15500Y-26460D01* X-23400Y-30400D02* X-18300Y-25300D01* Y-4200D01* X-34806Y-31800D02* X-22820D01* X-32600Y-33200D02* X-22240D01* X-31000Y-34600D02* X-21660D01* X-37200Y-30400D02* X-23400D01* X-10800Y-44100D02* X-8200Y-46700D01* X-12500Y-45800D02* X-10800Y-44100D01* X-34620Y-38221D02* X-31000Y-34600D01* X-34620Y-41200D02* Y-38221D01* X-38000Y-36100D02* X-35500D01* X-32600Y-33200D01* X-38600Y-31800D02* X-37200Y-30400D01* X-36600Y-33400D02* X-36406D01* X-34806Y-31800D01* X-40547Y-33553D02* X-38000Y-36100D01* D11* X50000Y-4000D02* X69700D01* X73000Y-700D02* Y3500D01* X69700Y-4000D02* X73000Y-700D01* X70500Y-7200D02* X73000Y-4700D01* X50000Y-7200D02* X70500D01* X-75200Y-65800D02* Y-56700D01* X-78400Y-53500D02* X-75200Y-56700D01* X-75500Y-53000D02* Y-51200D01* X-71366Y-47066D01* X-75500Y-53000D02* X-73500Y-55000D01* X-71366Y-47066D02* Y-45734D01* X-73500Y-52000D02* X-64100Y-42600D01* X-62100D01* X15800Y300D02* X25300Y-9200D01* X34600D01* X35800Y-8000D01* Y22900D01* X30100Y28600D02* X35800Y22900D01* X30100Y28600D02* Y31900D01* X26900Y35100D02* X30100Y31900D01* X18500Y35100D02* X26900D01* X16600Y37000D02* X18500Y35100D01* X0Y37000D02* X16600D01* X-75200Y-65800D02* X-67700Y-73300D01* X-54900D01* X-49700Y-68100D01* Y-23300D01* X-51000Y-22000D02* X-49700Y-23300D01* X-58500Y-41000D02* X-57400D01* X-53500Y-37100D01* X-57000Y-37000D02* X-55400Y-35400D01* Y-30900D01* X-53500Y-29000D02* Y-21300D01* X-55400Y-30900D02* X-53500Y-29000D01* X-55784Y-19016D02* X-53500Y-21300D01* X-35300Y-8400D02* X-14400Y12500D01* X-31800Y-6100D02* X-14000Y11700D01* X10400D01* X29300Y-7200D01* X-14400Y12500D02* X12700D01* X29300Y-4100D01* X-31800Y-12300D02* Y-6100D01* X-53500Y-37100D02* Y-33600D01* X-51500Y-31600D01* D14* X-66600Y-2500D02* X-64700Y-600D01* Y5600D02* X-61600Y8700D01* X-64700Y-600D02* Y5600D01* X28100Y54000D02* X28300D01* X37100Y45200D01* X-2000Y-65500D02* X-1000Y-64500D01* X29800D01* X6100Y-62600D02* X7000Y-63500D01* X2069Y-62600D02* X6100D01* X7000Y-63500D02* X29386D01* X-35700Y26800D02* X-21300D01* X-53800Y8700D02* X-35700Y26800D01* X-21300D02* X-14700Y33400D01* X-61600Y8700D02* X-53800D01* X-14700Y33400D02* X-6500D01* X0Y39900D01* Y43500D01* X37100Y-55786D02* Y45200D01* X38100Y-56200D02* Y47700D01* X29800Y-64500D02* X38100Y-56200D01* X29386Y-63500D02* X37100Y-55786D01* X32100Y53700D02* X38100Y47700D01* D50* X240Y-38640D02* Y-33540D01* X28500Y-18700D02* Y-16400D01* Y-21200D02* Y-18700D01* Y-24900D02* Y-21200D01* X26100Y-27300D02* X28500Y-24900D01* X4200Y-27300D02* X26100D01* X240Y-31260D02* X4200Y-27300D01* X240Y-33540D02* Y-31260D01* D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-51500Y-31600D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* D56* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* D57* Y-74000D02* X-300D01* X-17000Y-69000D02* Y-66000D01* Y-74000D02* Y-72000D01* Y-69000D01* X4200Y-69500D02* X43000D01* X-300Y-74000D02* X4200Y-69500D01* X43000D02* Y-67000D01* Y-73000D02* Y-70000D01* Y-69500D01* X45500D01* D58* X-19750Y25750D02* X-14500Y31000D01* X-48200Y8133D02* X-33883Y22450D01* X5950D02* X14500Y31000D01* X-50227Y7662D02* X-34339Y23550D01* X2050D01* X-34794Y24650D02* X-15850D01* X-54327Y6673D02* X-35250Y25750D01* X-52400Y7044D02* X-34794Y24650D01* X-35250Y25750D02* X-19750D01* X-33883Y22450D02* X5950D01* X2050Y23550D02* X9500Y31000D01* X-15850Y24650D02* X-9500Y31000D01* X-50227Y4973D02* Y7662D01* X-52400Y3600D02* Y7044D01* X-50400Y4800D02* X-50227Y4973D01* X-54327Y4827D02* Y6673D01* X-48200Y3600D02* Y8133D01* X-49500Y2300D02* X-48200Y3600D01* X-53400Y2600D02* X-52400Y3600D01* X-54327Y4827D02* X-54300Y4800D01* X-52358Y658D02* X-50717Y2300D01* X-49500D01* X-54600Y2600D02* X-53400D01* X-56500Y700D02* X-54600Y2600D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.G2 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=3* G04 Layer_Color=14067636* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% G36* X65948Y109336D02* X66997Y107625D01* X67765Y105771D01* X68233Y103819D01* X68378Y101985D01* X68378Y101985D01* X68378D01* X68382Y101980D01* Y92863D01* X68362D01* X68516Y90120D01* X68976Y87411D01* X69736Y84771D01* X70788Y82232D01* X72117Y79827D01* X73707Y77587D01* X75538Y75538D01* X77587Y73707D01* X79827Y72117D01* X82232Y70788D01* X84771Y69736D01* X87411Y68976D01* X90120Y68516D01* X92863Y68362D01* Y68382D01* X101980D01* X101985Y68378D01* X101985Y68378D01* X101985Y68378D01* X103819Y68233D01* X105771Y67765D01* X107625Y66997D01* X109336Y65948D01* X110106Y65290D01* Y-65290D01* X109336Y-65948D01* X107625Y-66997D01* X105771Y-67765D01* X103819Y-68233D01* X101985Y-68378D01* X101985Y-68378D01* Y-68378D01* X101980Y-68382D01* X92863D01* Y-68362D01* X90120Y-68516D01* X87411Y-68976D01* X84771Y-69736D01* X82232Y-70788D01* X79827Y-72117D01* X77587Y-73707D01* X75538Y-75538D01* X73707Y-77587D01* X72117Y-79827D01* X70788Y-82232D01* X69736Y-84771D01* X68976Y-87411D01* X68516Y-90120D01* X68362Y-92863D01* X68382D01* Y-101980D01* X68378Y-101985D01* X68378Y-101985D01* X68378Y-101985D01* X68233Y-103819D01* X67765Y-105771D01* X66997Y-107625D01* X65948Y-109336D01* X65290Y-110106D01* X-65290D01* X-65948Y-109336D01* X-66997Y-107625D01* X-67765Y-105771D01* X-68233Y-103819D01* X-68378Y-101985D01* X-68378Y-101985D01* X-68378D01* X-68382Y-101980D01* Y-92863D01* X-68362D01* X-68516Y-90120D01* X-68976Y-87411D01* X-69736Y-84771D01* X-70788Y-82232D01* X-72117Y-79827D01* X-73707Y-77587D01* X-75538Y-75538D01* X-77587Y-73707D01* X-79827Y-72117D01* X-82232Y-70788D01* X-84771Y-69736D01* X-87411Y-68976D01* X-90120Y-68516D01* X-92863Y-68362D01* Y-68382D01* X-101980D01* X-101985Y-68378D01* X-101985Y-68378D01* X-101985Y-68378D01* X-103819Y-68233D01* X-105771Y-67765D01* X-107625Y-66997D01* X-109336Y-65948D01* X-110106Y-65290D01* Y65290D01* X-109336Y65948D01* X-107625Y66997D01* X-105771Y67765D01* X-103819Y68233D01* X-101985Y68378D01* X-101985Y68378D01* Y68378D01* X-101980Y68382D01* X-92863D01* Y68362D01* X-90120Y68516D01* X-87411Y68976D01* X-84771Y69736D01* X-82232Y70788D01* X-79827Y72117D01* X-77587Y73707D01* X-75538Y75538D01* X-73707Y77587D01* X-72117Y79827D01* X-70788Y82232D01* X-69736Y84771D01* X-68976Y87411D01* X-68516Y90120D01* X-68362Y92863D01* X-68382D01* Y101980D01* X-68378Y101985D01* X-68378Y101985D01* X-68378Y101985D01* X-68233Y103819D01* X-67765Y105771D01* X-66997Y107625D01* X-65948Y109336D01* X-65290Y110106D01* X65290D01* X65948Y109336D01* D02* G37* %LPC*% G36* X4814Y56681D02* X4185D01* X3604Y56440D01* X3317Y56153D01* X3000Y56048D01* X2683Y56153D01* X2396Y56440D01* X1815Y56681D01* X1185D01* X604Y56440D01* X160Y55996D01* X-81Y55414D01* Y54786D01* X160Y54204D01* X447Y53917D01* X552Y53600D01* X447Y53283D01* X160Y52996D01* X-81Y52415D01* Y51785D01* X160Y51204D01* X604Y50760D01* X1185Y50519D01* X1815D01* X2396Y50760D01* X2683Y51047D01* X3000Y51152D01* X3317Y51047D01* X3604Y50760D01* X4185Y50519D01* X4814D01* X5396Y50760D01* X5840Y51204D01* X6081Y51785D01* Y52415D01* X5840Y52996D01* X5553Y53283D01* X5448Y53600D01* X5553Y53917D01* X5840Y54204D01* X6081Y54786D01* Y55414D01* X5840Y55996D01* X5396Y56440D01* X4814Y56681D01* D02* G37* G36* X-19185D02* X-19815D01* X-20396Y56440D01* X-20683Y56153D01* X-21000Y56048D01* X-21317Y56153D01* X-21604Y56440D01* X-22185Y56681D01* X-22815D01* X-23396Y56440D01* X-23840Y55996D01* X-24081Y55414D01* Y54786D01* X-23840Y54204D01* X-23553Y53917D01* X-23448Y53600D01* X-23553Y53283D01* X-23840Y52996D01* X-24081Y52415D01* Y51785D01* X-23840Y51204D01* X-23396Y50760D01* X-22815Y50519D01* X-22185D01* X-21604Y50760D01* X-21317Y51047D01* X-21000Y51152D01* X-20683Y51047D01* X-20396Y50760D01* X-19815Y50519D01* X-19185D01* X-18604Y50760D01* X-18160Y51204D01* X-17919Y51785D01* Y52415D01* X-18160Y52996D01* X-18447Y53283D01* X-18552Y53600D01* X-18447Y53917D01* X-18160Y54204D01* X-17919Y54786D01* Y55414D01* X-18160Y55996D01* X-18604Y56440D01* X-19185Y56681D01* D02* G37* G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X32359Y55000D02* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* D02* G37* G36* X259Y44800D02* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-736Y42398D01* X-259Y42200D01* X259D01* X736Y42398D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X4614Y46681D02* X3985D01* X3404Y46440D01* X2960Y45996D01* X2719Y45415D01* Y44785D01* X2960Y44204D01* X3247Y43917D01* X3352Y43600D01* X3247Y43283D01* X2960Y42996D01* X2719Y42415D01* Y41785D01* X2960Y41204D01* X3247Y40917D01* X3352Y40600D01* X3247Y40283D01* X2960Y39996D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3404Y37760D01* X3985Y37519D01* X4614D01* X5196Y37760D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5640Y39996D01* X5353Y40283D01* X5248Y40600D01* X5353Y40917D01* X5640Y41204D01* X5881Y41785D01* Y42415D01* X5640Y42996D01* X5353Y43283D01* X5248Y43600D01* X5353Y43917D01* X5640Y44204D01* X5881Y44785D01* Y45415D01* X5640Y45996D01* X5196Y46440D01* X4614Y46681D01* D02* G37* G36* X-3886D02* X-4515D01* X-5096Y46440D01* X-5540Y45996D01* X-5781Y45415D01* Y44785D01* X-5540Y44204D01* X-5253Y43917D01* X-5148Y43600D01* X-5253Y43283D01* X-5540Y42996D01* X-5781Y42415D01* Y41785D01* X-5540Y41204D01* X-5253Y40917D01* X-5148Y40600D01* X-5253Y40283D01* X-5540Y39996D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-3886D01* X-3304Y37760D01* X-2860Y38204D01* X-2619Y38785D01* Y39415D01* X-2860Y39996D01* X-3147Y40283D01* X-3252Y40600D01* X-3147Y40917D01* X-2860Y41204D01* X-2619Y41785D01* Y42415D01* X-2860Y42996D01* X-3147Y43283D01* X-3252Y43600D01* X-3147Y43917D01* X-2860Y44204D01* X-2619Y44785D01* Y45415D01* X-2860Y45996D01* X-3304Y46440D01* X-3886Y46681D01* D02* G37* G36* X19614Y46281D02* X18985D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17960Y43804D01* X18247Y43517D01* X18352Y43200D01* X18247Y42883D01* X17960Y42596D01* X17719Y42015D01* Y41385D01* X17960Y40804D01* X18247Y40517D01* X18352Y40200D01* X18247Y39883D01* X17960Y39596D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18404Y37360D01* X18985Y37119D01* X19614D01* X20196Y37360D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20640Y39596D01* X20353Y39883D01* X20248Y40200D01* X20353Y40517D01* X20640Y40804D01* X20881Y41385D01* Y42015D01* X20640Y42596D01* X20353Y42883D01* X20248Y43200D01* X20353Y43517D01* X20640Y43804D01* X20881Y44385D01* Y45015D01* X20640Y45596D01* X20196Y46040D01* X19614Y46281D01* D02* G37* G36* X-19185Y45581D02* X-19815D01* X-20396Y45340D01* X-20840Y44896D01* X-21081Y44315D01* Y43685D01* X-20840Y43104D01* X-20553Y42817D01* X-20448Y42500D01* X-20553Y42183D01* X-20840Y41896D01* X-21081Y41315D01* Y40685D01* X-20840Y40104D01* X-20553Y39817D01* X-20448Y39500D01* X-20553Y39183D01* X-20840Y38896D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18160Y38896D01* X-18447Y39183D01* X-18552Y39500D01* X-18447Y39817D01* X-18160Y40104D01* X-17919Y40685D01* Y41315D01* X-18160Y41896D01* X-18447Y42183D01* X-18552Y42500D01* X-18447Y42817D01* X-18160Y43104D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* D02* G37* G36* X259Y38300D02* X-259D01* X-736Y38102D01* X-1102Y37736D01* X-1300Y37259D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37259D01* X1102Y37736D01* X736Y38102D01* X259Y38300D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32241D01* X-61002Y31764D01* X-60636Y31398D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X14759Y32300D02* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y30741D01* X13398Y30264D01* X13764Y29898D01* X14241Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* D02* G37* G36* X9759D02* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y30741D01* X8398Y30264D01* X8764Y29898D01* X9241Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* D02* G37* G36* X-9241D02* X-9759D01* X-10236Y32102D01* X-10602Y31736D01* X-10800Y31259D01* Y30741D01* X-10602Y30264D01* X-10236Y29898D01* X-9759Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-9241Y32300D01* D02* G37* G36* X-14241D02* X-14759D01* X-15236Y32102D01* X-15602Y31736D01* X-15800Y31259D01* Y30741D01* X-15602Y30264D01* X-15236Y29898D01* X-14759Y29700D01* X-14241D01* X-13764Y29898D01* X-13398Y30264D01* X-13200Y30741D01* Y31259D01* X-13398Y31736D01* X-13764Y32102D01* X-14241Y32300D01* D02* G37* G36* X-56341Y28200D02* X-56859D01* X-57336Y28002D01* X-57702Y27636D01* X-57900Y27159D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* D02* G37* G36* X11059Y8800D02* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X11059D01* X11536Y6398D01* X11902Y6764D01* X12100Y7241D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* D02* G37* G36* X-50141Y6100D02* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51136Y3698D01* X-50659Y3500D01* X-50141D01* X-49664Y3698D01* X-49298Y4064D01* X-49100Y4541D01* Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* D02* G37* G36* X-54041D02* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55036Y3698D01* X-54559Y3500D01* X-54041D01* X-53564Y3698D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* D02* G37* G36* X9000Y10000D02* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2241D01* X-11702Y1764D01* X-11336Y1398D01* X-10859Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X-56241Y2000D02* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57236Y-402D01* X-56759Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y959D01* X-55398Y1436D01* X-55764Y1802D01* X-56241Y2000D01* D02* G37* G36* X-52100Y1958D02* X-52617D01* X-53095Y1760D01* X-53460Y1395D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y917D01* X-51256Y1395D01* X-51622Y1760D01* X-52100Y1958D01* D02* G37* G36* X16059Y1600D02* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X16059D01* X16536Y-802D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* D02* G37* G36* X-66341Y-1200D02* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2241D01* X-65498Y-1764D01* X-65864Y-1398D01* X-66341Y-1200D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X29559Y-2800D02* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* D02* G37* G36* X-18041Y-2900D02* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4959D01* X71898Y-5436D01* X72264Y-5802D01* X72741Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X29559D02* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* D02* G37* G36* X-11141Y-6200D02* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7759D01* X-12502Y-8236D01* X-12136Y-8602D01* X-11659Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* D02* G37* G36* X-35041Y-7100D02* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36402Y-9136D01* X-36036Y-9502D01* X-35559Y-9700D01* X-35041D01* X-34564Y-9502D01* X-34198Y-9136D01* X-34000Y-8659D01* Y-8141D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* D02* G37* G36* X-42441Y-9300D02* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43436Y-11702D01* X-42959Y-11900D01* X-42441D01* X-41964Y-11702D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* D02* G37* G36* X-51641Y-9800D02* X-52159D01* X-52636Y-9998D01* X-53002Y-10364D01* X-53200Y-10841D01* Y-11359D01* X-53002Y-11836D01* X-52636Y-12202D01* X-52159Y-12400D01* X-51641D01* X-51164Y-12202D01* X-50798Y-11836D01* X-50600Y-11359D01* Y-10841D01* X-50798Y-10364D01* X-51164Y-9998D01* X-51641Y-9800D01* D02* G37* G36* X-31541Y-11000D02* X-32059D01* X-32536Y-11198D01* X-32902Y-11564D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30500Y-12559D01* Y-12041D01* X-30698Y-11564D01* X-31064Y-11198D01* X-31541Y-11000D01* D02* G37* G36* X-56041Y-11800D02* X-56559D01* X-57036Y-11998D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57036Y-14202D01* X-56559Y-14400D01* X-56041D01* X-55564Y-14202D01* X-55198Y-13836D01* X-55000Y-13359D01* Y-12841D01* X-55198Y-12364D01* X-55564Y-11998D01* X-56041Y-11800D01* D02* G37* G36* X18259Y-15000D02* X17741D01* X17264Y-15198D01* X16900Y-15562D01* X16536Y-15198D01* X16059Y-15000D01* X15541D01* X15064Y-15198D01* X14698Y-15564D01* X14500Y-16041D01* Y-16559D01* X14698Y-17036D01* X15064Y-17402D01* X15541Y-17600D01* X16059D01* X16536Y-17402D01* X16900Y-17039D01* X17264Y-17402D01* X17741Y-17600D01* X18259D01* X18415Y-17535D01* X18600Y-17659D01* X18798Y-18136D01* X19164Y-18502D01* X19641Y-18700D01* X20159D01* X20636Y-18502D01* X21002Y-18136D01* X21200Y-17659D01* Y-17141D01* X21002Y-16664D01* X20636Y-16298D01* X20159Y-16100D01* X19641D01* X19485Y-16165D01* X19300Y-16041D01* X19102Y-15564D01* X18736Y-15198D01* X18259Y-15000D01* D02* G37* G36* X-51141Y-13200D02* X-51659D01* X-52136Y-13398D01* X-52502Y-13764D01* X-52700Y-14241D01* Y-14759D01* X-52502Y-15236D01* X-52136Y-15602D01* X-51659Y-15800D01* X-51141D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14241D01* X-50298Y-13764D01* X-50664Y-13398D01* X-51141Y-13200D01* D02* G37* G36* X-55526Y-17716D02* X-56043D01* X-56521Y-17914D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56886Y-19752D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55526D01* X-55048Y-20118D01* X-54682Y-19752D01* X-54484Y-19274D01* Y-18757D01* X-54682Y-18279D01* X-55048Y-17914D01* X-55526Y-17716D01* D02* G37* G36* X-22241Y-18000D02* X-22759D01* X-23236Y-18198D01* X-23602Y-18564D01* X-23800Y-19041D01* Y-19559D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* D02* G37* G36* X22712Y-20200D02* X22195D01* X21717Y-20398D01* X21351Y-20764D01* X21251Y-21006D01* X20694Y-21153D01* X20691Y-21152D01* X20536Y-20998D01* X20059Y-20800D01* X19541D01* X19064Y-20998D01* X18698Y-21364D01* X18500Y-21841D01* Y-22359D01* X18698Y-22836D01* X19064Y-23202D01* X19541Y-23400D01* X20059D01* X20536Y-23202D01* X20902Y-22836D01* X21002Y-22594D01* X21560Y-22447D01* X21563Y-22448D01* X21717Y-22602D01* X22195Y-22800D01* X22712D01* X23190Y-22602D01* X23556Y-22236D01* X23753Y-21759D01* Y-21241D01* X23556Y-20764D01* X23190Y-20398D01* X22712Y-20200D01* D02* G37* G36* X28759Y-15100D02* X28241D01* X27764Y-15298D01* X27398Y-15664D01* X27200Y-16141D01* Y-16659D01* X27398Y-17136D01* X27485Y-17223D01* X27728Y-17550D01* X27485Y-17877D01* X27398Y-17964D01* X27200Y-18441D01* Y-18959D01* X27398Y-19436D01* X27590Y-19629D01* X27709Y-19950D01* X27590Y-20271D01* X27398Y-20464D01* X27200Y-20941D01* Y-21459D01* X27398Y-21936D01* X27764Y-22302D01* X28241Y-22500D01* X28759D01* X29236Y-22302D01* X29602Y-21936D01* X29800Y-21459D01* Y-20941D01* X29602Y-20464D01* X29410Y-20271D01* X29291Y-19950D01* X29410Y-19629D01* X29602Y-19436D01* X29800Y-18959D01* Y-18441D01* X29602Y-17964D01* X29515Y-17877D01* X29272Y-17550D01* X29515Y-17223D01* X29602Y-17136D01* X29800Y-16659D01* Y-16141D01* X29602Y-15664D01* X29236Y-15298D01* X28759Y-15100D01* D02* G37* G36* X-50741Y-20700D02* X-51259D01* X-51736Y-20898D01* X-52102Y-21264D01* X-52300Y-21741D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49700Y-22259D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* D02* G37* G36* X-51241Y-30300D02* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50398Y-32336D01* X-50200Y-31859D01* Y-31341D01* X-50398Y-30864D01* X-50764Y-30498D01* X-51241Y-30300D01* D02* G37* G36* X-11241Y-30600D02* X-11759D01* X-12236Y-30798D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-11759Y-33200D01* X-11241D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-11241Y-30600D01* D02* G37* G36* X-38341Y-30500D02* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41847Y-33294D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40289D01* X-39811Y-34655D01* X-39445Y-34289D01* X-39247Y-33811D01* Y-33480D01* X-38913Y-33153D01* X-38787Y-33100D01* X-38362D01* X-38339Y-33102D01* X-37900Y-33458D01* Y-33659D01* X-37702Y-34136D01* X-37336Y-34502D01* X-36859Y-34700D01* X-36341D01* X-35864Y-34502D01* X-35498Y-34136D01* X-35300Y-33659D01* Y-33141D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* D02* G37* G36* X-56741Y-35700D02* X-57259D01* X-57736Y-35898D01* X-58102Y-36264D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-36741D01* X-55898Y-36264D01* X-56264Y-35898D01* X-56741Y-35700D01* D02* G37* G36* X499Y-32240D02* X-18D01* X-496Y-32438D01* X-862Y-32804D01* X-1060Y-33282D01* Y-33799D01* X-862Y-34277D01* X-539Y-34599D01* X-501Y-34784D01* X-514Y-35176D01* X-802Y-35464D01* X-1000Y-35941D01* Y-36459D01* X-802Y-36936D01* X-610Y-37129D01* X-491Y-37450D01* X-610Y-37771D01* X-802Y-37964D01* X-1000Y-38441D01* Y-38959D01* X-802Y-39436D01* X-436Y-39802D01* X41Y-40000D01* X559D01* X1036Y-39802D01* X1402Y-39436D01* X1600Y-38959D01* Y-38441D01* X1402Y-37964D01* X1210Y-37771D01* X1091Y-37450D01* X1210Y-37129D01* X1402Y-36936D01* X1600Y-36459D01* Y-35941D01* X1402Y-35464D01* X1079Y-35141D01* X1041Y-34956D01* X1055Y-34564D01* X1342Y-34277D01* X1540Y-33799D01* Y-33282D01* X1342Y-32804D01* X977Y-32438D01* X499Y-32240D01* D02* G37* G36* X-58241Y-39700D02* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* D02* G37* G36* X-34362Y-39900D02* X-34879D01* X-35357Y-40098D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33884Y-40098D01* X-34362Y-39900D01* D02* G37* G36* X-61841Y-41300D02* X-62359D01* X-62836Y-41498D01* X-63202Y-41864D01* X-63400Y-42341D01* Y-42859D01* X-63202Y-43336D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* D02* G37* G36* X-39441Y-40300D02* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41859D01* X-40802Y-42336D01* X-40436Y-42702D01* X-39959Y-42900D01* X-39441D01* X-39291Y-42838D01* X-38908Y-43220D01* X-39000Y-43441D01* Y-43959D01* X-38802Y-44436D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37441D01* X-36964Y-44802D01* X-36598Y-44436D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* D02* G37* G36* X-71108Y-44434D02* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44038D01* X-12208Y-44392D01* X-12562Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45862D01* X-11092Y-45508D01* X-10738Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47759D01* X1398Y-48236D01* X1764Y-48602D01* X2241Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* G36* X29759Y-51000D02* X29241D01* X28764Y-51198D01* X28398Y-51564D01* X27863Y-51726D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28402Y-53636D01* X28937Y-53474D01* X29241Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X-78141Y-52200D02* X-78659D01* X-79136Y-52398D01* X-79502Y-52764D01* X-79700Y-53241D01* Y-53759D01* X-79502Y-54236D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78141D01* X-77664Y-54602D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74800Y-51741D01* Y-52259D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74602Y-54264D01* X-74800Y-54741D01* Y-55259D01* X-74602Y-55736D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* G36* X24259Y-56200D02* X23741D01* X23264Y-56398D01* X22898Y-56764D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57241D01* X25102Y-56764D01* X24736Y-56398D01* X24259Y-56200D01* D02* G37* G36* X2227Y-61200D02* X1710D01* X1232Y-61398D01* X866Y-61764D01* X668Y-62241D01* Y-62759D01* X866Y-63236D01* X1232Y-63602D01* X1710Y-63800D01* X2227D01* X2705Y-63602D01* X3071Y-63236D01* X3269Y-62759D01* Y-62241D01* X3071Y-61764D01* X2705Y-61398D01* X2227Y-61200D01* D02* G37* G36* X-13686Y-64419D02* X-14314D01* X-14896Y-64660D01* X-15183Y-64947D01* X-15500Y-65052D01* X-15817Y-64947D01* X-16104Y-64660D01* X-16686Y-64419D01* X-17314D01* X-17896Y-64660D01* X-18183Y-64947D01* X-18500Y-65052D01* X-18817Y-64947D01* X-19104Y-64660D01* X-19685Y-64419D01* X-20314D01* X-20896Y-64660D01* X-21340Y-65104D01* X-21581Y-65685D01* Y-66315D01* X-21340Y-66896D01* X-21053Y-67183D01* X-20948Y-67500D01* X-21053Y-67817D01* X-21340Y-68104D01* X-21581Y-68686D01* Y-69314D01* X-21340Y-69896D01* X-21053Y-70183D01* X-20948Y-70500D01* X-21053Y-70817D01* X-21340Y-71104D01* X-21581Y-71685D01* Y-72315D01* X-21340Y-72896D01* X-20896Y-73340D01* X-20314Y-73581D01* X-19685D01* X-19104Y-73340D01* X-18817Y-73053D01* X-18500Y-72948D01* X-18183Y-73053D01* X-17896Y-73340D01* X-17314Y-73581D01* X-16686D01* X-16104Y-73340D01* X-15817Y-73053D01* X-15500Y-72948D01* X-15183Y-73053D01* X-14896Y-73340D01* X-14314Y-73581D01* X-13686D01* X-13104Y-73340D01* X-12660Y-72896D01* X-12419Y-72315D01* Y-71685D01* X-12660Y-71104D01* X-12947Y-70817D01* X-13052Y-70500D01* X-12947Y-70183D01* X-12660Y-69896D01* X-12419Y-69314D01* Y-68686D01* X-12660Y-68104D01* X-12947Y-67817D01* X-13052Y-67500D01* X-12947Y-67183D01* X-12660Y-66896D01* X-12419Y-66315D01* Y-65685D01* X-12660Y-65104D01* X-13104Y-64660D01* X-13686Y-64419D01* D02* G37* G36* X46314Y-65419D02* X45685D01* X45104Y-65660D01* X44817Y-65947D01* X44500Y-66052D01* X44183Y-65947D01* X43896Y-65660D01* X43314Y-65419D01* X42685D01* X42104Y-65660D01* X41817Y-65947D01* X41500Y-66052D01* X41183Y-65947D01* X40896Y-65660D01* X40314Y-65419D01* X39685D01* X39104Y-65660D01* X38660Y-66104D01* X38419Y-66685D01* Y-67314D01* X38660Y-67896D01* X38947Y-68183D01* X39052Y-68500D01* X38947Y-68817D01* X38660Y-69104D01* X38419Y-69686D01* Y-70315D01* X38660Y-70896D01* X38947Y-71183D01* X39052Y-71500D01* X38947Y-71817D01* X38660Y-72104D01* X38419Y-72685D01* Y-73314D01* X38660Y-73896D01* X39104Y-74340D01* X39685Y-74581D01* X40314D01* X40896Y-74340D01* X41183Y-74053D01* X41500Y-73948D01* X41817Y-74053D01* X42104Y-74340D01* X42685Y-74581D01* X43314D01* X43896Y-74340D01* X44183Y-74053D01* X44500Y-73948D01* X44817Y-74053D01* X45104Y-74340D01* X45685Y-74581D01* X46314D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72685D01* X47340Y-72104D01* X47053Y-71817D01* X46948Y-71500D01* X47053Y-71183D01* X47340Y-70896D01* X47581Y-70315D01* Y-69686D01* X47340Y-69104D01* X47053Y-68817D01* X46948Y-68500D01* X47053Y-68183D01* X47340Y-67896D01* X47581Y-67314D01* Y-66685D01* X47340Y-66104D01* X46896Y-65660D01* X46314Y-65419D01* D02* G37* G36* X-1741Y-64200D02* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-898Y-64764D01* X-1264Y-64398D01* X-1741Y-64200D01* D02* G37* %LPD*% D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-28000Y-63000D02* D03* X-70800Y-3100D02* D03* X-67500Y100D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* D56* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GBL ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=4* G04 Layer_Color=6736896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% %ADD50C,0.02000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% %ADD57C,0.07000*% %ADD58C,0.00700*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% %ADD71C,0.02500*% %ADD72C,0.04500*% G36* X65948Y109336D02* X66997Y107625D01* X67765Y105771D01* X68233Y103819D01* X68378Y101985D01* X68378Y101985D01* X68378D01* X68382Y101980D01* Y92863D01* X68362D01* X68516Y90120D01* X68976Y87411D01* X69736Y84771D01* X70788Y82232D01* X72117Y79827D01* X73707Y77587D01* X75538Y75538D01* X77587Y73707D01* X79827Y72117D01* X82232Y70788D01* X84771Y69736D01* X87411Y68976D01* X90120Y68516D01* X92863Y68362D01* Y68382D01* X101980D01* X101985Y68378D01* X101985Y68378D01* X101985Y68378D01* X103819Y68233D01* X105771Y67765D01* X107625Y66997D01* X109336Y65948D01* X110106Y65290D01* Y-65290D01* X109336Y-65948D01* X107625Y-66997D01* X105771Y-67765D01* X103819Y-68233D01* X101985Y-68378D01* X101985Y-68378D01* Y-68378D01* X101980Y-68382D01* X92863D01* Y-68362D01* X90120Y-68516D01* X87411Y-68976D01* X84771Y-69736D01* X82232Y-70788D01* X79827Y-72117D01* X77587Y-73707D01* X75538Y-75538D01* X73707Y-77587D01* X72117Y-79827D01* X70788Y-82232D01* X69736Y-84771D01* X68976Y-87411D01* X68516Y-90120D01* X68362Y-92863D01* X68382D01* Y-101980D01* X68378Y-101985D01* X68378Y-101985D01* X68378Y-101985D01* X68233Y-103819D01* X67765Y-105771D01* X66997Y-107625D01* X65948Y-109336D01* X65290Y-110106D01* X-65290D01* X-65948Y-109336D01* X-66997Y-107625D01* X-67765Y-105771D01* X-68233Y-103819D01* X-68378Y-101985D01* X-68378Y-101985D01* X-68378D01* X-68382Y-101980D01* Y-92863D01* X-68362D01* X-68516Y-90120D01* X-68976Y-87411D01* X-69736Y-84771D01* X-70788Y-82232D01* X-72117Y-79827D01* X-73707Y-77587D01* X-75538Y-75538D01* X-77587Y-73707D01* X-79827Y-72117D01* X-82232Y-70788D01* X-84771Y-69736D01* X-87411Y-68976D01* X-90120Y-68516D01* X-92863Y-68362D01* Y-68382D01* X-101980D01* X-101985Y-68378D01* X-101985Y-68378D01* X-101985Y-68378D01* X-103819Y-68233D01* X-105771Y-67765D01* X-107625Y-66997D01* X-109336Y-65948D01* X-110106Y-65290D01* Y65290D01* X-109336Y65948D01* X-107625Y66997D01* X-105771Y67765D01* X-103819Y68233D01* X-101985Y68378D01* X-101985Y68378D01* Y68378D01* X-101980Y68382D01* X-92863D01* Y68362D01* X-90120Y68516D01* X-87411Y68976D01* X-84771Y69736D01* X-82232Y70788D01* X-79827Y72117D01* X-77587Y73707D01* X-75538Y75538D01* X-73707Y77587D01* X-72117Y79827D01* X-70788Y82232D01* X-69736Y84771D01* X-68976Y87411D01* X-68516Y90120D01* X-68362Y92863D01* X-68382D01* Y101980D01* X-68378Y101985D01* X-68378Y101985D01* X-68378Y101985D01* X-68233Y103819D01* X-67765Y105771D01* X-66997Y107625D01* X-65948Y109336D01* X-65290Y110106D01* X65290D01* X65948Y109336D01* D02* G37* %LPC*% G36* X28359Y55300D02* X27841D01* X27364Y55102D01* X26998Y54736D01* X26800Y54259D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29202Y54736D01* X28836Y55102D01* X28359Y55300D01* D02* G37* G36* X32359Y55000D02* X31841D01* X31364Y54802D01* X30998Y54436D01* X30800Y53959D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* D02* G37* G36* X8000Y80447D02* X4000D01* X3064Y80261D01* X2270Y79730D01* X1739Y78936D01* X1553Y78000D01* Y62000D01* X1739Y61064D01* X2270Y60270D01* X3064Y59739D01* X3244Y59703D01* X3248Y59698D01* X3339Y59682D01* X3418Y59635D01* X3801Y59578D01* X4490Y59437D01* X4783Y59356D01* X5052Y59266D01* X5293Y59170D01* X5505Y59067D01* X5688Y58959D01* X5843Y58848D01* X5990Y58717D01* X6010Y58710D01* X6827Y57893D01* Y53433D01* X6918Y52741D01* X7185Y52097D01* X7610Y51543D01* X8164Y51118D01* X8206Y51012D01* X7908Y50527D01* X6900D01* X6900Y50527D01* X6354Y50419D01* X5891Y50109D01* X5891Y50109D01* X3291Y47509D01* X2981Y47046D01* X2873Y46500D01* X2873Y46500D01* Y45785D01* X2719Y45415D01* Y44785D01* X2873Y44414D01* Y42786D01* X2719Y42415D01* Y41785D01* X2873Y41414D01* Y39786D01* X2719Y39415D01* Y38785D01* X2960Y38204D01* X3404Y37760D01* X3985Y37519D01* X4614D01* X5196Y37760D01* X5640Y38204D01* X5881Y38785D01* Y39415D01* X5727Y39786D01* Y41414D01* X5881Y41785D01* Y42415D01* X5727Y42786D01* Y44414D01* X5881Y44785D01* Y45415D01* X5727Y45785D01* Y45909D01* X7491Y47673D01* X12300D01* X12300Y47673D01* X12846Y47781D01* X13309Y48091D01* X14750Y49531D01* X17168Y47113D01* X17168Y47113D01* X17631Y46804D01* X18178Y46695D01* X18678D01* X18778Y46195D01* X18404Y46040D01* X17960Y45596D01* X17719Y45015D01* Y44385D01* X17873Y44014D01* Y42386D01* X17719Y42015D01* Y41385D01* X17873Y41015D01* Y39386D01* X17719Y39015D01* Y38385D01* X17960Y37804D01* X18146Y37618D01* X17939Y37118D01* X16880D01* X16649Y37349D01* X16351Y37548D01* X16000Y37618D01* X6800D01* X6449Y37548D01* X6151Y37349D01* X4467Y35665D01* X4431Y35650D01* X4327Y35548D01* X4285Y35510D01* X3960Y35446D01* X3502Y35140D01* X3196Y34682D01* X3089Y34142D01* Y30992D01* X3196Y30452D01* X3502Y29994D01* X3960Y29688D01* X4500Y29581D01* X5040Y29688D01* X5498Y29994D01* X5804Y30452D01* X5911Y30992D01* Y34142D01* X5854Y34431D01* X5871Y34451D01* X5902Y34483D01* X5917Y34519D01* X5931Y34533D01* X5957Y34551D01* X5958Y34561D01* X7180Y35782D01* X8564D01* X8715Y35282D01* X8502Y35140D01* X8196Y34682D01* X8089Y34142D01* Y30992D01* X8196Y30452D01* X8502Y29994D01* X8960Y29688D01* X9500Y29581D01* X10040Y29688D01* X10498Y29994D01* X10804Y30452D01* X10911Y30992D01* Y34142D01* X10804Y34682D01* X10498Y35140D01* X10284Y35282D01* X10436Y35782D01* X13564D01* X13715Y35282D01* X13502Y35140D01* X13196Y34682D01* X13089Y34142D01* Y30992D01* X13196Y30452D01* X13502Y29994D01* X13960Y29688D01* X14500Y29581D01* X15040Y29688D01* X15498Y29994D01* X15804Y30452D01* X15911Y30992D01* Y34142D01* X15804Y34682D01* X15622Y34954D01* X15746Y35471D01* X15791Y35532D01* X15835Y35546D01* X15882Y35530D01* X16149Y35352D01* X16500Y35282D01* X20520D01* X22082Y33720D01* Y28345D01* X22067Y28312D01* X22067Y28293D01* X22063Y28291D01* X22003Y28266D01* X21995Y28245D01* X21851Y28149D01* X21755Y28005D01* X21753Y28004D01* X21593Y27997D01* X21266Y27997D01* X21245Y28005D01* X21149Y28149D01* X20851Y28348D01* X20500Y28418D01* X19500D01* X19149Y28348D01* X18851Y28149D01* X18652Y27851D01* X18582Y27500D01* Y26500D01* X18652Y26149D01* X18851Y25851D01* X19149Y25652D01* X19500Y25582D01* X20500D01* X20851Y25652D01* X21149Y25851D01* X21245Y25995D01* X21266Y26003D01* X21734Y26003D01* X21755Y25995D01* X21851Y25851D01* X22149Y25652D01* X22500Y25582D01* X23500D01* X23851Y25652D01* X24149Y25851D01* X24348Y26149D01* X24418Y26500D01* Y27500D01* X24348Y27851D01* X24149Y28149D01* X24005Y28245D01* X23997Y28266D01* X23937Y28291D01* X23933Y28293D01* X23933Y28312D01* X23918Y28345D01* Y34100D01* X23848Y34451D01* X23649Y34749D01* X21549Y36849D01* X21251Y37048D01* X20900Y37118D01* X20661D01* X20454Y37618D01* X20640Y37804D01* X20881Y38385D01* Y39015D01* X20727Y39386D01* Y41015D01* X20881Y41385D01* Y42015D01* X20727Y42386D01* Y43273D01* X21400D01* X21400Y43273D01* X21946Y43381D01* X22409Y43691D01* X24208Y45489D01* X24220Y45494D01* X24426Y45687D01* X24585Y45814D01* X25778D01* X25779Y45814D01* X25781Y45814D01* X28228D01* X28751Y45918D01* X29195Y46215D01* X29491Y46658D01* X29595Y47181D01* Y49063D01* X29491Y49587D01* X29195Y50030D01* X28751Y50327D01* X28228Y50431D01* X23772D01* X23249Y50327D01* X22805Y50030D01* X22612Y49741D01* X22591Y49732D01* X22566Y49672D01* X22510Y49589D01* X22498Y49584D01* X22459Y49574D01* X22401Y49564D01* X22327Y49558D01* X22225Y49555D01* X22213Y49550D01* X18769D01* X16239Y52079D01* X16235Y52091D01* X16101Y52238D01* X16002Y52370D01* X15927Y52495D01* Y53433D01* X15911Y53514D01* Y55008D01* X15804Y55548D01* X15498Y56006D01* X15040Y56312D01* X14500Y56419D01* X13960Y56312D01* X13502Y56006D01* X13196Y55548D01* X13089Y55008D01* Y53514D01* X13073Y53433D01* Y51891D01* X11709Y50527D01* X11091D01* X10795Y51012D01* X10836Y51118D01* X11390Y51543D01* X11815Y52097D01* X12082Y52741D01* X12173Y53433D01* Y59000D01* X12082Y59692D01* X11815Y60336D01* X11390Y60890D01* X11234Y61046D01* X11223Y61071D01* X10893Y61390D01* X10887Y61393D01* X10881Y61400D01* X10878Y61404D01* X10858Y61422D01* X10419Y61861D01* X10447Y62000D01* Y78000D01* X10261Y78936D01* X9730Y79730D01* X8936Y80261D01* X8000Y80447D01* D02* G37* G36* X20000D02* X16000D01* X15064Y80261D01* X14270Y79730D01* X13739Y78936D01* X13553Y78000D01* Y62000D01* X13739Y61064D01* X14270Y60270D01* X15064Y59739D01* X15329Y59686D01* X15410Y59636D01* X15729Y59583D01* X15993Y59517D01* X16215Y59438D01* X16395Y59349D01* X16535Y59254D01* X16640Y59154D01* X16716Y59049D01* X16770Y58935D01* X16804Y58802D01* X16818Y58611D01* X16827Y58594D01* Y53433D01* X16918Y52741D01* X17185Y52097D01* X17610Y51543D01* X18164Y51118D01* X18393Y51023D01* X18502Y50860D01* X18960Y50554D01* X19500Y50447D01* X20040Y50554D01* X20498Y50860D01* X20607Y51023D01* X20836Y51118D01* X21390Y51543D01* X21815Y52097D01* X22082Y52741D01* X22173Y53433D01* Y58621D01* X22183Y58645D01* X22181Y58649D01* X22183Y58652D01* X22173Y59240D01* Y60500D01* X22125Y60861D01* X22261Y61064D01* X22447Y62000D01* Y78000D01* X22261Y78936D01* X21730Y79730D01* X20936Y80261D01* X20000Y80447D01* D02* G37* G36* X-4000D02* X-8000D01* X-8936Y80261D01* X-9730Y79730D01* X-10261Y78936D01* X-10447Y78000D01* Y62000D01* X-10261Y61064D01* X-9730Y60270D01* X-9326Y60000D01* X-9309Y59957D01* X-9240Y59929D01* X-9190Y59873D01* X-9070Y59816D01* X-8988Y59763D01* X-8919Y59705D01* X-8861Y59641D01* X-8811Y59569D01* X-8768Y59486D01* X-8733Y59389D01* X-8706Y59276D01* X-8689Y59147D01* X-8683Y58982D01* X-8666Y58946D01* X-8582Y58308D01* X-8315Y57664D01* X-7890Y57110D01* X-7173Y56393D01* Y53433D01* X-7082Y52741D01* X-6815Y52097D01* X-6390Y51543D01* X-5836Y51118D01* X-5607Y51023D01* X-5498Y50860D01* X-5040Y50554D01* X-4500Y50447D01* X-3960Y50554D01* X-3502Y50860D01* X-3393Y51023D01* X-3164Y51118D01* X-2610Y51543D01* X-2185Y52097D01* X-1918Y52741D01* X-1827Y53433D01* Y57500D01* X-1918Y58192D01* X-2185Y58836D01* X-2610Y59390D01* X-2627Y59407D01* X-2688Y59562D01* X-2689Y59680D01* X-2577Y60064D01* X-2270Y60270D01* X-1739Y61064D01* X-1553Y62000D01* Y78000D01* X-1739Y78936D01* X-2270Y79730D01* X-3064Y80261D01* X-4000Y80447D01* D02* G37* G36* X-16000D02* X-20000D01* X-20936Y80261D01* X-21730Y79730D01* X-22261Y78936D01* X-22447Y78000D01* Y62000D01* X-22261Y61064D01* X-21730Y60270D01* X-20936Y59739D01* X-20756Y59703D01* X-20752Y59698D01* X-20663Y59683D01* X-20586Y59635D01* X-20310Y59592D01* X-20059Y59539D01* X-19821Y59475D01* X-19598Y59401D01* X-19388Y59315D01* X-19191Y59220D01* X-19007Y59114D01* X-18836Y58997D01* X-18677Y58871D01* X-18516Y58723D01* X-18495Y58714D01* X-17173Y57393D01* Y53433D01* X-17082Y52741D01* X-16815Y52097D01* X-16390Y51543D01* X-15979Y51227D01* X-16148Y50727D01* X-17000D01* X-17000Y50727D01* X-17546Y50619D01* X-18009Y50309D01* X-18769Y49550D01* X-22213D01* X-22225Y49555D01* X-22327Y49558D01* X-22401Y49564D01* X-22459Y49574D01* X-22498Y49584D01* X-22510Y49589D01* X-22566Y49672D01* X-22591Y49732D01* X-22612Y49741D01* X-22798Y50019D01* X-22784Y50090D01* X-22637Y50519D01* X-22185D01* X-21604Y50760D01* X-21546Y50818D01* X-21023D01* X-21022Y50817D01* X-20646Y50809D01* X-20481Y50796D01* X-20432Y50789D01* X-20424Y50788D01* X-20396Y50760D01* X-20268Y50707D01* X-20040Y50554D01* X-19500Y50447D01* X-18960Y50554D01* X-18732Y50707D01* X-18604Y50760D01* X-18507Y50857D01* X-18502Y50860D01* X-18499Y50865D01* X-18160Y51204D01* X-17919Y51785D01* Y51991D01* X-17818Y52500D01* X-17946Y53144D01* X-18089Y53358D01* Y54376D01* X-17919Y54786D01* Y54991D01* X-17818Y55500D01* X-17946Y56144D01* X-18310Y56690D01* X-18856Y57054D01* X-19500Y57182D01* X-21052D01* X-21083Y57183D01* X-21084Y57182D01* X-22500D01* X-23144Y57054D01* X-23690Y56690D01* X-24054Y56144D01* X-24182Y55500D01* Y52500D01* X-24081Y51991D01* Y51785D01* X-23840Y51204D01* X-23528Y50892D01* X-23770Y50434D01* X-23774Y50431D01* X-28228D01* X-28751Y50327D01* X-29195Y50030D01* X-29491Y49587D01* X-29595Y49063D01* Y47181D01* X-29491Y46658D01* X-29195Y46215D01* X-28751Y45918D01* X-28228Y45814D01* X-27566D01* X-27564Y45813D01* X-27310Y45812D01* X-26860Y45784D01* X-26677Y45759D01* X-26513Y45726D01* X-26371Y45686D01* X-26252Y45643D01* X-26157Y45596D01* X-26085Y45549D01* X-26006Y45482D01* X-25997Y45479D01* X-23509Y42991D01* X-23509Y42991D01* X-23046Y42681D01* X-22500Y42573D01* X-22500Y42573D01* X-20927D01* Y41686D01* X-21081Y41315D01* Y40685D01* X-20927Y40314D01* Y38686D01* X-21081Y38315D01* Y37685D01* X-20840Y37104D01* X-20396Y36660D01* X-19815Y36419D01* X-19185D01* X-18604Y36660D01* X-18160Y37104D01* X-17919Y37685D01* Y38315D01* X-18073Y38686D01* Y40314D01* X-17919Y40685D01* Y41315D01* X-18073Y41686D01* Y43314D01* X-17919Y43685D01* Y44315D01* X-18160Y44896D01* X-18604Y45340D01* X-19185Y45581D01* X-19815D01* X-20186Y45427D01* X-21909D01* X-22523Y46042D01* X-22552Y46244D01* X-22493Y46360D01* X-22312Y46582D01* X-22194Y46695D01* X-18178D01* X-18178Y46695D01* X-17631Y46804D01* X-17168Y47113D01* X-16409Y47873D01* X-11300D01* X-11300Y47873D01* X-10754Y47981D01* X-10291Y48291D01* X-9150Y49431D01* X-5627Y45909D01* Y45785D01* X-5781Y45415D01* Y44785D01* X-5627Y44414D01* Y42786D01* X-5781Y42415D01* Y41785D01* X-5627Y41414D01* Y39786D01* X-5781Y39415D01* Y38785D01* X-5540Y38204D01* X-5096Y37760D01* X-4515Y37519D01* X-3886D01* X-3304Y37760D01* X-2860Y38204D01* X-2619Y38785D01* Y39415D01* X-2773Y39786D01* Y41414D01* X-2619Y41785D01* Y42415D01* X-2773Y42786D01* Y44414D01* X-2619Y44785D01* Y45415D01* X-2773Y45785D01* Y46500D01* X-2773Y46500D01* X-2881Y47046D01* X-3191Y47509D01* X-3191Y47509D01* X-7761Y52079D01* X-7765Y52091D01* X-7899Y52238D01* X-7998Y52370D01* X-8073Y52495D01* Y53433D01* X-8089Y53514D01* Y55008D01* X-8196Y55548D01* X-8502Y56006D01* X-8960Y56312D01* X-9500Y56419D01* X-10040Y56312D01* X-10498Y56006D01* X-10804Y55548D01* X-10911Y55008D01* Y53514D01* X-10927Y53433D01* Y51800D01* X-10927Y51800D01* X-10927Y51800D01* Y51691D01* X-11891Y50727D01* X-12852D01* X-13021Y51227D01* X-12610Y51543D01* X-12185Y52097D01* X-11918Y52741D01* X-11827Y53433D01* Y58500D01* X-11918Y59192D01* X-12185Y59836D01* X-12610Y60390D01* X-12856Y60636D01* X-12865Y60659D01* X-13337Y61152D01* X-13538Y61388D01* X-13600Y61470D01* X-13638Y61528D01* X-13644Y61541D01* X-13553Y62000D01* Y78000D01* X-13739Y78936D01* X-14270Y79730D01* X-15064Y80261D01* X-16000Y80447D01* D02* G37* G36* X2780Y56783D02* X2779Y56782D01* X1500D01* X856Y56654D01* X310Y56290D01* X-54Y55744D01* X-182Y55100D01* Y52100D01* X-54Y51456D01* X310Y50910D01* X856Y50546D01* X1500Y50418D01* X2757D01* X2759Y50417D01* X2760Y50418D01* X2770D01* X2771Y50417D01* X2787Y50418D01* X4500D01* X5144Y50546D01* X5690Y50910D01* X6054Y51456D01* X6182Y52100D01* X6054Y52744D01* X5911Y52958D01* Y54242D01* X6054Y54456D01* X6182Y55100D01* X6054Y55744D01* X5690Y56290D01* X5144Y56654D01* X4500Y56782D01* X2834D01* X2782Y56783D01* X2781Y56783D01* X2780Y56783D01* D02* G37* G36* X500Y46418D02* X-500D01* X-851Y46348D01* X-1149Y46149D01* X-1348Y45851D01* X-1418Y45500D01* Y44500D01* X-1348Y44149D01* X-1218Y43955D01* X-1300Y43759D01* Y43241D01* X-1218Y43045D01* X-1348Y42851D01* X-1418Y42500D01* Y41500D01* X-1348Y41149D01* X-1149Y40851D01* X-851Y40652D01* X-500Y40582D01* X500D01* X851Y40652D01* X1149Y40851D01* X1348Y41149D01* X1418Y41500D01* Y42500D01* X1348Y42851D01* X1218Y43045D01* X1300Y43241D01* Y43759D01* X1218Y43955D01* X1348Y44149D01* X1418Y44500D01* Y45500D01* X1348Y45851D01* X1149Y46149D01* X851Y46348D01* X500Y46418D01* D02* G37* G36* Y39418D02* X-500D01* X-851Y39348D01* X-1149Y39149D01* X-1348Y38851D01* X-1418Y38500D01* Y37500D01* X-1348Y37149D01* X-1300Y37077D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37077D01* X1348Y37149D01* X1418Y37500D01* Y38500D01* X1348Y38851D01* X1149Y39149D01* X851Y39348D01* X500Y39418D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60736Y37502D01* X-61102Y37136D01* X-61300Y36659D01* Y36141D01* X-61102Y35664D01* X-60736Y35298D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60636Y33602D01* X-61002Y33236D01* X-61200Y32759D01* Y32241D01* X-61002Y31764D01* X-60636Y31398D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X-7800Y37518D02* X-16400D01* X-16751Y37448D01* X-17049Y37249D01* X-18537Y35760D01* X-18916Y35439D01* X-18956Y35443D01* X-18960Y35446D01* X-19500Y35553D01* X-20040Y35446D01* X-20498Y35140D01* X-20804Y34682D01* X-20911Y34142D01* Y30992D01* X-20804Y30452D01* X-20498Y29994D01* X-20040Y29688D01* X-19500Y29581D01* X-18960Y29688D01* X-18502Y29994D01* X-18196Y30452D01* X-18089Y30992D01* Y33561D01* X-18068Y33596D01* X-18034Y33642D01* X-17977Y33705D01* X-17965Y33738D01* X-16053Y35649D01* X-15679Y35605D01* X-15548Y35269D01* X-15508Y35124D01* X-15804Y34682D01* X-15911Y34142D01* Y30992D01* X-15804Y30452D01* X-15498Y29994D01* X-15040Y29688D01* X-14500Y29581D01* X-13960Y29688D01* X-13502Y29994D01* X-13196Y30452D01* X-13089Y30992D01* Y34142D01* X-13196Y34682D01* X-13502Y35140D01* X-13566Y35182D01* X-13414Y35682D01* X-10586D01* X-10434Y35182D01* X-10498Y35140D01* X-10804Y34682D01* X-10911Y34142D01* Y30992D01* X-10804Y30452D01* X-10498Y29994D01* X-10040Y29688D01* X-9500Y29581D01* X-8960Y29688D01* X-8502Y29994D01* X-8418Y30120D01* X-7918Y29969D01* Y29380D01* X-8759Y28538D01* X-8794Y28526D01* X-8894Y28431D01* X-8911Y28418D01* X-9414D01* X-9417Y28418D01* X-9419Y28418D01* X-9500D01* X-9851Y28348D01* X-10149Y28149D01* X-10348Y27851D01* X-10418Y27500D01* Y26500D01* X-10348Y26149D01* X-10149Y25851D01* X-9851Y25652D01* X-9500Y25582D01* X-8500D01* X-8149Y25652D01* X-7851Y25851D01* X-7755Y25995D01* X-7734Y26003D01* X-7266Y26003D01* X-7245Y25995D01* X-7149Y25851D01* X-6851Y25652D01* X-6500Y25582D01* X-5500D01* X-5149Y25652D01* X-4851Y25851D01* X-4652Y26149D01* X-4582Y26500D01* Y27500D01* X-4652Y27851D01* X-4851Y28149D01* X-5149Y28348D01* X-5500Y28418D01* X-5727D01* X-5766Y28439D01* X-6099Y28918D01* X-6082Y29000D01* Y35800D01* X-6152Y36151D01* X-6351Y36449D01* X-7151Y37249D01* X-7449Y37448D01* X-7800Y37518D01* D02* G37* G36* X16500Y28418D02* X15500D01* X15149Y28348D01* X14851Y28149D01* X14755Y28005D01* X14734Y27997D01* X14266Y27997D01* X14245Y28005D01* X14149Y28149D01* X13851Y28348D01* X13500Y28418D01* X12500D01* X12149Y28348D01* X11851Y28149D01* X11652Y27851D01* X11582Y27500D01* Y26500D01* X11652Y26149D01* X11851Y25851D01* X11869Y25667D01* X11120Y24918D01* X7780D01* X7328Y25370D01* X7149Y25851D01* X7348Y26149D01* X7418Y26500D01* Y27500D01* X7348Y27851D01* X7149Y28149D01* X6851Y28348D01* X6500Y28418D01* X5500D01* X5149Y28348D01* X4851Y28149D01* X4652Y27851D01* X4582Y27500D01* Y26500D01* X4652Y26149D01* X4851Y25851D01* X4995Y25755D01* X5003Y25734D01* X5063Y25709D01* X5067Y25707D01* X5067Y25688D01* X5082Y25655D01* Y25400D01* X5152Y25049D01* X5351Y24751D01* X6751Y23351D01* X7049Y23152D01* X7400Y23082D01* X11500D01* X11851Y23152D01* X12149Y23351D01* X13649Y24851D01* X13848Y25149D01* X13918Y25500D01* Y25655D01* X13933Y25688D01* X13933Y25707D01* X13937Y25709D01* X13997Y25734D01* X14005Y25755D01* X14149Y25851D01* X14245Y25995D01* X14266Y26003D01* X14734Y26003D01* X14755Y25995D01* X14851Y25851D01* X15149Y25652D01* X15500Y25582D01* X16500D01* X16851Y25652D01* X17149Y25851D01* X17348Y26149D01* X17418Y26500D01* Y27500D01* X17348Y27851D01* X17149Y28149D01* X16851Y28348D01* X16500Y28418D01* D02* G37* G36* X-56341Y28200D02* X-56859D01* X-57336Y28002D01* X-57702Y27636D01* X-57900Y27159D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* D02* G37* G36* X-12500Y28418D02* X-13500D01* X-13851Y28348D01* X-14149Y28149D01* X-14348Y27851D01* X-14418Y27500D01* Y26500D01* X-14348Y26149D01* X-14149Y25851D01* X-14177Y25354D01* X-14206Y25292D01* X-14207Y25291D01* X-14580Y24918D01* X-18320D01* X-18738Y25335D01* X-18851Y25851D01* X-18652Y26149D01* X-18582Y26500D01* Y27500D01* X-18652Y27851D01* X-18851Y28149D01* X-19149Y28348D01* X-19500Y28418D01* X-20500D01* X-20851Y28348D01* X-21149Y28149D01* X-21245Y28005D01* X-21266Y27997D01* X-21734Y27997D01* X-21755Y28005D01* X-21851Y28149D01* X-22149Y28348D01* X-22500Y28418D01* X-23500D01* X-23851Y28348D01* X-24149Y28149D01* X-24348Y27851D01* X-24418Y27500D01* Y26500D01* X-24348Y26149D01* X-24149Y25851D01* X-23851Y25652D01* X-23500Y25582D01* X-22500D01* X-22149Y25652D01* X-21851Y25851D01* X-21755Y25995D01* X-21753Y25996D01* X-21593Y26003D01* X-21273Y26003D01* X-21205Y25935D01* X-21149Y25851D01* X-21065Y25795D01* X-20918Y25648D01* Y25300D01* X-20848Y24949D01* X-20649Y24651D01* X-19349Y23351D01* X-19051Y23152D01* X-18700Y23082D01* X-14200D01* X-13849Y23152D01* X-13551Y23351D01* X-12351Y24551D01* X-12152Y24849D01* X-12082Y25200D01* Y25655D01* X-12067Y25688D01* X-12067Y25707D01* X-12063Y25709D01* X-12003Y25734D01* X-11995Y25755D01* X-11851Y25851D01* X-11652Y26149D01* X-11582Y26500D01* Y27500D01* X-11652Y27851D01* X-11851Y28149D01* X-12149Y28348D01* X-12500Y28418D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60636Y41402D01* X-61002Y41036D01* X-61200Y40559D01* Y40041D01* X-61002Y39564D01* X-60636Y39198D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-59034Y39327D01* X-58958Y39357D01* X-58904Y39409D01* X-58860Y39445D01* X-58817Y39476D01* X-58775Y39501D01* X-58734Y39521D01* X-58692Y39538D01* X-58650Y39550D01* X-58606Y39559D01* X-58560Y39565D01* X-58494Y39567D01* X-58453Y39586D01* X-54796D01* X-48614Y33404D01* Y5092D01* X-49100Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51365Y3926D01* X-51335Y3850D01* X-51294Y3808D01* X-51270Y3778D01* X-51249Y3746D01* X-51230Y3712D01* X-51214Y3676D01* X-51200Y3636D01* X-51189Y3591D01* X-51180Y3542D01* X-51175Y3487D01* X-51173Y3413D01* X-51154Y3373D01* Y2000D01* X-51622Y1760D01* X-52100Y1958D01* X-52617D01* X-53035Y1785D01* X-53300Y1884D01* X-53535Y2027D01* Y3377D01* X-53517Y3417D01* X-53515Y3491D01* X-53509Y3546D01* X-53501Y3596D01* X-53490Y3642D01* X-53476Y3683D01* X-53460Y3720D01* X-53441Y3754D01* X-53420Y3787D01* X-53395Y3818D01* X-53354Y3861D01* X-53326Y3935D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55274Y3935D01* X-55246Y3861D01* X-55205Y3818D01* X-55181Y3787D01* X-55159Y3754D01* X-55141Y3720D01* X-55124Y3683D01* X-55111Y3642D01* X-55099Y3596D01* X-55090Y3546D01* X-55085Y3491D01* X-55083Y3417D01* X-55065Y3377D01* Y1810D01* X-55565Y1603D01* X-55764Y1802D01* X-56241Y2000D01* X-56759D01* X-57236Y1802D01* X-57602Y1436D01* X-57800Y959D01* Y441D01* X-57602Y-36D01* X-57474Y-165D01* X-57446Y-239D01* X-57405Y-282D01* X-57380Y-313D01* X-57359Y-346D01* X-57341Y-380D01* X-57324Y-417D01* X-57310Y-458D01* X-57299Y-504D01* X-57291Y-554D01* X-57285Y-609D01* X-57283Y-683D01* X-57265Y-723D01* Y-7283D01* X-58073Y-8091D01* X-58112Y-8106D01* X-58153Y-8143D01* X-58167Y-8154D01* X-62100D01* X-62490Y-8231D01* X-62551Y-8272D01* X-63051Y-8004D01* Y-4300D01* X-63241Y-3841D01* X-64073Y-3008D01* X-64069Y-3000D01* X-64082Y-2969D01* Y-2000D01* X-64152Y-1649D01* X-64351Y-1351D01* X-64649Y-1152D01* X-65000Y-1082D01* X-66000D01* X-66351Y-1152D01* X-66423Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66423D01* X-66351Y-3848D01* X-66000Y-3918D01* X-65031D01* X-65000Y-3931D01* X-64991Y-3927D01* X-64349Y-4569D01* Y-10200D01* X-64159Y-10659D01* X-63218Y-11601D01* X-62911Y-11728D01* X-62855Y-11811D01* X-62821Y-11924D01* Y-12389D01* X-63042Y-12720D01* X-63120Y-13110D01* X-63080Y-13308D01* X-63318Y-13791D01* X-63395Y-13872D01* X-63594Y-13909D01* X-63978Y-13524D01* X-63992Y-13489D01* X-64059Y-13419D01* X-64082Y-13391D01* Y-12500D01* X-64152Y-12149D01* X-64351Y-11851D01* X-64649Y-11652D01* X-65000Y-11582D01* X-66000D01* X-66351Y-11652D01* X-66649Y-11851D01* X-66848Y-12149D01* X-66918Y-12500D01* Y-13500D01* X-66848Y-13851D01* X-66649Y-14149D01* X-66351Y-14348D01* X-66200Y-14378D01* X-66194Y-14385D01* X-66150Y-14388D01* X-66070Y-14404D01* X-66010Y-14430D01* X-65925Y-14432D01* X-65857Y-14437D01* X-65798Y-14445D01* X-65747Y-14454D01* X-65705Y-14465D01* X-65671Y-14477D01* X-65645Y-14489D01* X-65626Y-14499D01* X-65613Y-14509D01* X-65586Y-14533D01* X-65554Y-14544D01* X-64370Y-15728D01* X-64072Y-15927D01* X-63721Y-15996D01* X-62527D01* X-62490Y-16021D01* X-62100Y-16098D01* X-57900D01* X-57510Y-16021D01* X-57473Y-15996D01* X-55059D01* X-53418Y-17638D01* Y-20697D01* X-53431Y-20741D01* X-53418Y-20766D01* Y-28220D01* X-54976Y-29778D01* X-55174Y-30076D01* X-55244Y-30427D01* Y-33577D01* X-55501Y-33739D01* X-55744Y-33807D01* X-55976Y-33652D01* X-56327Y-33582D01* X-60494D01* X-60769Y-33179D01* X-60785Y-33103D01* X-60716Y-32840D01* X-59852Y-31977D01* X-59822Y-31967D01* X-59795Y-31943D01* X-59782Y-31935D01* X-59756Y-31922D01* X-59715Y-31907D01* X-59659Y-31891D01* X-59590Y-31877D01* X-59512Y-31865D01* X-59300Y-31849D01* X-59178Y-31847D01* X-59176Y-31846D01* X-57900D01* X-57510Y-31769D01* X-57179Y-31548D01* X-56958Y-31217D01* X-56880Y-30827D01* X-56958Y-30437D01* X-57179Y-30106D01* Y-29579D01* X-56958Y-29248D01* X-56880Y-28858D01* X-56958Y-28468D01* X-57179Y-28137D01* Y-27611D01* X-56958Y-27280D01* X-56880Y-26890D01* X-56958Y-26500D01* X-57179Y-26169D01* Y-25642D01* X-56958Y-25311D01* X-56880Y-24921D01* X-56958Y-24531D01* X-57179Y-24200D01* Y-23674D01* X-56958Y-23343D01* X-56880Y-22953D01* X-56958Y-22563D01* X-57179Y-22232D01* Y-21705D01* X-56958Y-21374D01* X-56880Y-20984D01* X-56958Y-20594D01* X-56989Y-20549D01* X-56764Y-20007D01* X-56679Y-19976D01* X-56652Y-19986D01* X-56521Y-20118D01* X-56043Y-20316D01* X-55526D01* X-55048Y-20118D01* X-54682Y-19752D01* X-54484Y-19274D01* Y-18757D01* X-54682Y-18279D01* X-55048Y-17914D01* X-55526Y-17716D01* X-56043D01* X-56521Y-17914D01* X-56652Y-18045D01* X-56730Y-18076D01* X-56789Y-18109D01* X-57179Y-18295D01* X-57510Y-18074D01* X-57900Y-17996D01* X-62100D01* X-62490Y-18074D01* X-62821Y-18295D01* X-63042Y-18626D01* X-63080Y-18815D01* X-63592Y-19011D01* X-64106Y-18496D01* X-64119Y-18462D01* X-64209Y-18366D01* X-64227Y-18343D01* Y-17811D01* X-64227Y-17811D01* X-64227Y-17811D01* Y-17718D01* X-64300Y-17351D01* X-64508Y-17040D01* X-64820Y-16832D01* X-65187Y-16759D01* X-69813D01* X-70180Y-16832D01* X-70492Y-17040D01* X-70700Y-17351D01* X-70773Y-17718D01* Y-18801D01* X-70700Y-19168D01* X-70492Y-19480D01* X-70180Y-19688D01* X-69813Y-19761D01* X-65987D01* X-65985Y-19762D01* X-65983Y-19761D01* X-65946D01* X-65946Y-19761D01* X-65946Y-19761D01* X-65467D01* X-65455Y-19770D01* X-65351Y-19868D01* X-65331Y-19876D01* X-65320Y-19895D01* X-65297Y-19901D01* X-63565Y-21633D01* X-63381Y-21756D01* X-63310Y-22189D01* X-63327Y-22330D01* X-65140Y-24142D01* X-65176Y-24156D01* X-65209Y-24189D01* X-65265Y-24237D01* X-65267Y-24239D01* X-69813D01* X-70180Y-24312D01* X-70492Y-24520D01* X-70700Y-24832D01* X-70773Y-25199D01* Y-26281D01* X-70755Y-26373D01* X-70721Y-26669D01* X-71065Y-27002D01* X-71159Y-27041D01* X-73059Y-28941D01* X-73249Y-29400D01* Y-44500D01* X-73059Y-44959D01* X-72772Y-45246D01* X-72756Y-45283D01* X-72741Y-45330D01* X-72726Y-45388D01* X-72716Y-45451D01* X-72701Y-45629D01* X-72699Y-45730D01* X-72666Y-45807D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* X-71293D01* X-71370Y-44401D01* X-71477Y-44399D01* X-71565Y-44394D01* X-71643Y-44385D01* X-71712Y-44374D01* X-71770Y-44359D01* X-71818Y-44344D01* X-71854Y-44328D01* X-71951Y-44231D01* Y-33621D01* X-71489Y-33430D01* X-71259Y-33659D01* X-70800Y-33849D01* X-68585D01* X-68149Y-34285D01* Y-40800D01* X-67959Y-41259D01* X-66159Y-43059D01* X-65700Y-43249D01* X-63438D01* X-63402Y-43264D01* X-63357Y-43287D01* X-63306Y-43317D01* X-63254Y-43354D01* X-63118Y-43469D01* X-63045Y-43540D01* X-62968Y-43571D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60938Y-42009D01* X-60600Y-41608D01* X-60500Y-41649D01* X-59838D01* X-59802Y-41664D01* X-59757Y-41687D01* X-59706Y-41717D01* X-59654Y-41754D01* X-59518Y-41869D01* X-59445Y-41940D01* X-59368Y-41971D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* X-58759D01* X-59236Y-39898D01* X-59368Y-40029D01* X-59445Y-40060D01* X-59522Y-40135D01* X-59588Y-40194D01* X-59649Y-40243D01* X-59706Y-40282D01* X-59757Y-40313D01* X-59802Y-40336D01* X-59838Y-40351D01* X-60231D01* X-60541Y-40041D01* X-61000Y-39851D01* X-63631D01* X-64149Y-39333D01* X-64082Y-39000D01* Y-38000D01* X-64152Y-37649D01* X-64177Y-37611D01* X-64110Y-37435D01* X-63885Y-37149D01* X-59769D01* X-59459Y-37459D01* X-59000Y-37649D01* X-58338D01* X-58302Y-37664D01* X-58257Y-37687D01* X-58206Y-37718D01* X-58154Y-37754D01* X-58018Y-37869D01* X-57945Y-37940D01* X-57868Y-37971D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55846Y-37612D01* X-55346Y-37711D01* Y-38600D01* X-55269Y-38990D01* X-55048Y-39321D01* X-54717Y-39542D01* X-54327Y-39620D01* X-53937Y-39542D01* X-53606Y-39321D01* X-53385Y-38990D01* X-53307Y-38600D01* Y-34400D01* X-53385Y-34010D01* X-53409Y-33973D01* Y-30807D01* X-51851Y-29249D01* X-51652Y-28951D01* X-51582Y-28600D01* Y-23516D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49849Y-22619D01* X-49349Y-22719D01* Y-29031D01* X-49159Y-29491D01* X-48299Y-30351D01* X-48506Y-30851D01* X-50196D01* X-50240Y-30834D01* X-50294Y-30811D01* X-50354Y-30779D01* X-50418Y-30741D01* X-50577Y-30630D01* X-50664Y-30562D01* X-50713Y-30548D01* X-50764Y-30498D01* X-51241Y-30300D01* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50531Y-32469D01* X-50457Y-32430D01* X-50394Y-32353D01* X-50340Y-32295D01* X-50290Y-32248D01* X-50244Y-32210D01* X-50202Y-32181D01* X-50166Y-32161D01* X-50140Y-32149D01* X-48269D01* X-47324Y-33095D01* X-47433Y-33389D01* X-47939Y-33520D01* X-48031Y-33458D01* X-48421Y-33380D01* X-48812Y-33458D01* X-49142Y-33679D01* X-49669D01* X-50000Y-33458D01* X-50390Y-33380D01* X-50780Y-33458D01* X-51111Y-33679D01* X-51332Y-34010D01* X-51409Y-34400D01* Y-38600D01* X-51332Y-38990D01* X-51307Y-39027D01* Y-40755D01* X-51237Y-41106D01* X-51039Y-41403D01* X-43293Y-49149D01* X-42996Y-49348D01* X-42644Y-49418D01* X-24980D01* X-23618Y-50780D01* Y-54100D01* X-23548Y-54451D01* X-23349Y-54749D01* X-20981Y-57117D01* X-20977Y-57132D01* X-20945Y-57153D01* X-20944Y-57154D01* X-20929Y-57191D01* X-20892Y-57228D01* X-20870Y-57251D01* X-20919Y-57500D01* X-20812Y-58040D01* X-20506Y-58498D01* X-20048Y-58804D01* X-19508Y-58911D01* X-16358D01* X-15818Y-58804D01* X-15360Y-58498D01* X-15054Y-58040D01* X-14947Y-57500D01* X-15054Y-56960D01* X-15360Y-56502D01* X-15818Y-56196D01* X-16358Y-56089D01* X-19374D01* X-19376Y-56087D01* X-19425Y-56051D01* X-19491Y-55990D01* X-19524Y-55978D01* X-21782Y-53720D01* Y-50400D01* X-21852Y-50049D01* X-22051Y-49751D01* X-23712Y-48090D01* X-23549Y-47548D01* X-23251Y-47349D01* X-19879Y-43977D01* X-19863Y-43974D01* X-19849Y-43951D01* X-19824Y-43943D01* X-19800Y-43921D01* X-19795Y-43918D01* X-19790Y-43915D01* X-19781Y-43911D01* X-19767Y-43908D01* X-19747Y-43905D01* X-19720Y-43903D01* X-19685Y-43904D01* X-19642Y-43908D01* X-19579Y-43918D01* X-19543Y-43910D01* X-19508Y-43924D01* X-19477Y-43911D01* X-16358D01* X-15818Y-43804D01* X-15360Y-43498D01* X-15054Y-43040D01* X-14947Y-42500D01* X-15054Y-41960D01* X-15360Y-41502D01* X-15818Y-41196D01* X-16358Y-41089D01* X-19508D01* X-20048Y-41196D01* X-20506Y-41502D01* X-20812Y-41960D01* X-20890Y-42353D01* X-20893Y-42357D01* X-20895Y-42359D01* X-20899Y-42367D01* X-20899Y-42368D01* X-20902Y-42371D01* X-20974Y-42454D01* X-21006Y-42486D01* X-21020Y-42522D01* X-24280Y-45782D01* X-32197D01* X-32297Y-45282D01* X-32241Y-45259D01* X-29341Y-42359D01* X-29151Y-41900D01* Y-33500D01* X-29341Y-33041D01* X-30408Y-31974D01* X-30366Y-31632D01* X-29865Y-31482D01* X-29821Y-31548D01* X-29490Y-31769D01* X-29100Y-31846D01* X-28016D01* X-28014Y-31847D01* X-27936Y-31850D01* X-27918Y-31852D01* Y-33000D01* X-27848Y-33351D01* X-27649Y-33649D01* X-27038Y-34259D01* X-27025Y-34294D01* X-26931Y-34394D01* X-26918Y-34411D01* Y-34914D01* X-26919Y-34917D01* X-26918Y-34919D01* Y-35000D01* X-26848Y-35351D01* X-26649Y-35649D01* X-26351Y-35848D01* X-26000Y-35918D01* X-25000D01* X-24649Y-35848D01* X-24351Y-35649D01* X-24255Y-35505D01* X-24234Y-35497D01* X-24209Y-35437D01* X-24207Y-35433D01* X-24188Y-35433D01* X-24155Y-35418D01* X-12354D01* X-12323Y-35432D01* X-12159Y-35441D01* X-12047Y-35461D01* X-11962Y-35489D01* X-11902Y-35522D01* X-11858Y-35558D01* X-11822Y-35602D01* X-11789Y-35662D01* X-11761Y-35747D01* X-11741Y-35859D01* X-11732Y-36023D01* X-11718Y-36054D01* Y-42770D01* X-11733Y-42806D01* X-11734Y-42899D01* X-11737Y-42973D01* X-11750Y-43106D01* X-11757Y-43146D01* X-11764Y-43177D01* X-11769Y-43193D01* X-11778Y-43207D01* X-11779Y-43214D01* X-11780Y-43219D01* X-11781Y-43228D01* X-11783Y-43244D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44010D01* X-12110Y-44023D01* X-12117Y-44030D01* X-12118Y-44034D01* X-12123Y-44040D01* X-12127Y-44056D01* X-12135Y-44071D01* X-12151Y-44098D01* X-12172Y-44127D01* X-12313Y-44292D01* X-12366Y-44340D01* X-12469Y-44425D01* X-12502Y-44449D01* X-12529Y-44465D01* X-12544Y-44473D01* X-12560Y-44477D01* X-12566Y-44482D01* X-12570Y-44483D01* X-12577Y-44490D01* X-12590Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-45710D01* X-13810Y-45723D01* X-13817Y-45730D01* X-13818Y-45734D01* X-13823Y-45740D01* X-13827Y-45756D01* X-13835Y-45771D01* X-13851Y-45798D01* X-13872Y-45827D01* X-14015Y-45994D01* X-14075Y-46055D01* X-14089Y-46091D01* X-14580Y-46582D01* X-15175D01* X-15208Y-46567D01* X-15250Y-46566D01* X-15271Y-46564D01* X-15286Y-46561D01* X-15295Y-46558D01* X-15298Y-46557D01* X-15310Y-46540D01* X-15339Y-46523D01* X-15351Y-46493D01* X-15411Y-46468D01* X-15818Y-46196D01* X-16358Y-46089D01* X-19508D01* X-20048Y-46196D01* X-20506Y-46502D01* X-20812Y-46960D01* X-20919Y-47500D01* X-20812Y-48040D01* X-20506Y-48498D01* X-20048Y-48804D01* X-19508Y-48911D01* X-16358D01* X-15818Y-48804D01* X-15411Y-48532D01* X-15351Y-48507D01* X-15339Y-48477D01* X-15310Y-48460D01* X-15298Y-48443D01* X-15295Y-48442D01* X-15286Y-48439D01* X-15271Y-48436D01* X-15250Y-48434D01* X-15208Y-48433D01* X-15175Y-48418D01* X-14200D01* X-13849Y-48348D01* X-13551Y-48149D01* X-12791Y-47389D01* X-12755Y-47375D01* X-12688Y-47309D01* X-12634Y-47260D01* X-12531Y-47175D01* X-12498Y-47151D01* X-12471Y-47135D01* X-12456Y-47127D01* X-12440Y-47123D01* X-12434Y-47118D01* X-12430Y-47117D01* X-12423Y-47110D01* X-12410Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45890D01* X-11190Y-45877D01* X-11183Y-45870D01* X-11182Y-45866D01* X-11177Y-45860D01* X-11173Y-45844D01* X-11165Y-45829D01* X-11149Y-45802D01* X-11128Y-45773D01* X-10987Y-45608D01* X-10934Y-45560D01* X-10831Y-45475D01* X-10798Y-45451D01* X-10771Y-45435D01* X-10756Y-45427D01* X-10740Y-45423D01* X-10734Y-45418D01* X-10730Y-45417D01* X-10723Y-45410D01* X-10710Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-9817Y-43244D01* X-9819Y-43228D01* X-9820Y-43219D01* X-9821Y-43214D01* X-9822Y-43207D01* X-9831Y-43193D01* X-9836Y-43177D01* X-9843Y-43146D01* X-9849Y-43110D01* X-9866Y-42892D01* X-9867Y-42806D01* X-9882Y-42770D01* Y-35756D01* X-9867Y-35723D01* X-9861Y-35542D01* X-9843Y-35383D01* X-9814Y-35232D01* X-9774Y-35086D01* X-9723Y-34946D01* X-9660Y-34811D01* X-9586Y-34679D01* X-9499Y-34552D01* X-9399Y-34427D01* X-9276Y-34295D01* X-9125Y-34276D01* X-8960Y-34372D01* X-8668Y-34691D01* Y-34710D01* X-8673Y-34723D01* X-8674Y-35026D01* X-8677Y-35230D01* X-8764Y-35360D01* X-8841Y-35746D01* Y-38065D01* X-8764Y-38451D01* X-8545Y-38779D01* X-8217Y-38998D01* X-7831Y-39075D01* X-6650D01* X-6263Y-38998D01* X-5935Y-38779D01* X-5717Y-38451D01* X-5640Y-38065D01* Y-35746D01* X-5717Y-35360D01* X-5801Y-35234D01* X-5802Y-35121D01* X-4309Y-33627D01* X-1691D01* X-1127Y-34191D01* Y-34648D01* X-1132Y-34657D01* X-1129Y-34666D01* X-1133Y-34675D01* X-1139Y-34974D01* X-1148Y-35103D01* X-1152Y-35138D01* X-1156Y-35155D01* X-1161Y-35174D01* X-1160Y-35175D01* X-1283Y-35360D01* X-1360Y-35746D01* Y-38065D01* X-1283Y-38451D01* X-1127Y-38685D01* Y-38700D01* X-1019Y-39246D01* X-709Y-39709D01* X-246Y-40019D01* X300Y-40127D01* X846Y-40019D01* X1309Y-39709D01* X1619Y-39246D01* X1727Y-38700D01* Y-38506D01* X1764Y-38451D01* X1841Y-38065D01* Y-35746D01* X2102Y-35427D01* X9000D01* X9049Y-35418D01* X9500D01* X9851Y-35348D01* X10149Y-35149D01* X10348Y-34851D01* X10418Y-34500D01* Y-34049D01* X10427Y-34000D01* Y-30000D01* X10418Y-29951D01* Y-29500D01* X10348Y-29149D01* X10149Y-28851D01* X9851Y-28652D01* X9500Y-28582D01* X9049D01* X9000Y-28573D01* X3780D01* X3780Y-28573D01* X3234Y-28681D01* X2771Y-28991D01* X989Y-30773D01* X-1100D01* X-1100Y-30773D01* X-1100Y-30773D01* X-2385D01* X-2510Y-30574D01* X-2575Y-30273D01* X-100Y-27798D01* X-67Y-27786D01* X2Y-27722D01* X54Y-27683D01* X68Y-27675D01* X831D01* X1217Y-27598D01* X1545Y-27379D01* X1764Y-27051D01* X1841Y-26665D01* Y-24346D01* X1764Y-23960D01* X1545Y-23632D01* X1217Y-23413D01* X831Y-23336D01* X89D01* X-102Y-23145D01* X-117Y-23127D01* X-123Y-23124D01* X-134Y-23113D01* X-137Y-23104D01* X-208Y-23031D01* X-221Y-23025D01* X-573Y-22674D01* Y-17500D01* X-582Y-17451D01* Y-17000D01* X-652Y-16649D01* X-851Y-16351D01* X-898Y-15866D01* X-870Y-15768D01* X-20Y-14918D01* X3620D01* X4562Y-15859D01* X4544Y-16286D01* X4506Y-16679D01* X4493Y-16757D01* X4351Y-16851D01* X4152Y-17149D01* X4082Y-17500D01* Y-17951D01* X4073Y-18000D01* X4082Y-18049D01* Y-18500D01* X4152Y-18851D01* X4351Y-19149D01* X4649Y-19348D01* X5000Y-19418D01* X5451D01* X5500Y-19427D01* X9000D01* X9049Y-19418D01* X9500D01* X9851Y-19348D01* X10149Y-19149D01* X10348Y-18851D01* X10418Y-18500D01* Y-18049D01* X10427Y-18000D01* X10418Y-17951D01* Y-17500D01* X10348Y-17149D01* X10149Y-16851D01* X10019Y-16765D01* X9935Y-15491D01* X9933Y-15132D01* X9918Y-15095D01* Y-12179D01* X11082Y-11015D01* X11281Y-10717D01* X11351Y-10366D01* Y-8917D01* X11369Y-8915D01* X11447Y-8912D01* X11449Y-8911D01* X12008D01* X12548Y-8804D01* X12955Y-8532D01* X13015Y-8507D01* X13027Y-8477D01* X13056Y-8460D01* X13069Y-8443D01* X13071Y-8442D01* X13080Y-8439D01* X13095Y-8437D01* X13116Y-8434D01* X13158Y-8433D01* X13191Y-8418D01* X14300D01* X14651Y-8348D01* X14949Y-8149D01* X16449Y-6649D01* X16648Y-6351D01* X16718Y-6000D01* Y-1030D01* X16733Y-994D01* X16734Y-901D01* X16737Y-827D01* X16750Y-694D01* X16757Y-654D01* X16764Y-623D01* X16770Y-607D01* X16778Y-593D01* X16779Y-586D01* X16781Y-581D01* X16781Y-572D01* X16783Y-556D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* X15890D01* X15877Y1610D01* X15870Y1617D01* X15866Y1618D01* X15860Y1623D01* X15844Y1627D01* X15829Y1635D01* X15802Y1651D01* X15773Y1672D01* X15606Y1815D01* X15545Y1875D01* X15509Y1889D01* X14249Y3149D01* X13951Y3348D01* X13600Y3418D01* X13191D01* X13158Y3433D01* X13116Y3434D01* X13095Y3436D01* X13080Y3439D01* X13071Y3442D01* X13069Y3443D01* X13056Y3460D01* X13027Y3477D01* X13015Y3507D01* X12955Y3532D01* X12548Y3804D01* X12008Y3911D01* X9000D01* Y6089D01* X12008D01* X12548Y6196D01* X13006Y6502D01* X13312Y6960D01* X13419Y7500D01* X13312Y8040D01* X13006Y8498D01* X12548Y8804D01* X12008Y8911D01* X9000D01* Y10000D01* X-9000D01* Y3911D01* X-12008D01* X-12548Y3804D01* X-13006Y3498D01* X-13312Y3040D01* X-13419Y2500D01* X-13312Y1960D01* X-13006Y1502D01* X-12548Y1196D01* X-12008Y1089D01* X-9000D01* Y-1089D01* X-12008D01* X-12548Y-1196D01* X-12955Y-1468D01* X-13015Y-1493D01* X-13027Y-1523D01* X-13056Y-1540D01* X-13069Y-1557D01* X-13071Y-1558D01* X-13080Y-1561D01* X-13095Y-1564D01* X-13116Y-1566D01* X-13158Y-1567D01* X-13191Y-1582D01* X-16600D01* X-16951Y-1652D01* X-17249Y-1851D01* X-18009Y-2611D01* X-18045Y-2625D01* X-18112Y-2691D01* X-18166Y-2740D01* X-18269Y-2825D01* X-18302Y-2849D01* X-18329Y-2865D01* X-18344Y-2873D01* X-18360Y-2877D01* X-18366Y-2882D01* X-18370Y-2883D01* X-18377Y-2890D01* X-18390Y-2900D01* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-4290D01* X-16990Y-4277D01* X-16983Y-4270D01* X-16982Y-4266D01* X-16977Y-4260D01* X-16973Y-4244D01* X-16965Y-4229D01* X-16949Y-4202D01* X-16928Y-4173D01* X-16785Y-4006D01* X-16725Y-3945D01* X-16711Y-3909D01* X-16220Y-3418D01* X-13191D01* X-13158Y-3433D01* X-13116Y-3434D01* X-13095Y-3436D01* X-13080Y-3439D01* X-13071Y-3442D01* X-13069Y-3443D01* X-13056Y-3460D01* X-13027Y-3477D01* X-13015Y-3507D01* X-12955Y-3532D01* X-12548Y-3804D01* X-12008Y-3911D01* X-9000D01* Y-6089D01* X-12008D01* X-12548Y-6196D01* X-13006Y-6502D01* X-13312Y-6960D01* X-13419Y-7500D01* X-13312Y-8040D01* X-13006Y-8498D01* X-12548Y-8804D01* X-12008Y-8911D01* X-9000D01* Y-10000D01* X8553D01* X8794Y-10000D01* X9003Y-10499D01* X8351Y-11150D01* X8152Y-11448D01* X8082Y-11799D01* Y-15095D01* X8067Y-15132D01* X8065Y-15498D01* X8034Y-16388D01* X8017Y-16573D01* X6488D01* X6435Y-15780D01* X6433Y-15496D01* X6403Y-15425D01* X6348Y-15149D01* X6149Y-14851D01* X4649Y-13351D01* X4351Y-13152D01* X4000Y-13082D01* X-400D01* X-751Y-13152D01* X-1049Y-13351D01* X-2649Y-14951D01* X-2848Y-15249D01* X-2902Y-15522D01* X-2933Y-15593D01* X-2936Y-15756D01* X-2957Y-16050D01* X-2974Y-16169D01* X-2986Y-16230D01* X-2997Y-16234D01* X-3005Y-16255D01* X-3149Y-16351D01* X-3235Y-16481D01* X-4509Y-16565D01* X-4868Y-16567D01* X-4905Y-16582D01* X-15120D01* X-19682Y-12020D01* Y-7300D01* X-19752Y-6949D01* X-19951Y-6651D01* X-23751Y-2851D01* X-24049Y-2652D01* X-24400Y-2582D01* X-31648D01* X-31650Y-2564D01* X-31653Y-2486D01* X-31654Y-2484D01* Y-1400D01* X-31731Y-1010D01* X-31952Y-679D01* X-32283Y-458D01* X-32673Y-380D01* X-33063Y-458D01* X-33394Y-679D01* X-33615Y-1010D01* X-33693Y-1400D01* Y-5600D01* X-33615Y-5990D01* X-33591Y-6027D01* Y-7823D01* X-34091Y-7922D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8651D01* X-38731D01* X-39898Y-7484D01* Y-6369D01* X-39851Y-6337D01* X-39848Y-6336D01* X-39813Y-6325D01* X-39798Y-6321D01* X-39300D01* X-38969Y-6542D01* X-38579Y-6620D01* X-38188Y-6542D01* X-37858Y-6321D01* X-37331D01* X-37000Y-6542D01* X-36610Y-6620D01* X-36220Y-6542D01* X-35889Y-6321D01* X-35668Y-5990D01* X-35591Y-5600D01* Y-1400D01* X-35668Y-1010D01* X-35693Y-973D01* Y8810D01* X-24220Y20282D01* X-900D01* X-549Y20352D01* X-251Y20551D01* X2649Y23451D01* X2848Y23749D01* X2918Y24100D01* Y25655D01* X2933Y25688D01* X2933Y25707D01* X2937Y25709D01* X2997Y25734D01* X3005Y25755D01* X3149Y25851D01* X3348Y26149D01* X3418Y26500D01* Y27500D01* X3348Y27851D01* X3149Y28149D01* X2851Y28348D01* X2500Y28418D01* X1500D01* X1149Y28348D01* X851Y28149D01* X652Y27851D01* X582Y27500D01* Y26500D01* X652Y26149D01* X851Y25851D01* X995Y25755D01* X1003Y25734D01* X1063Y25709D01* X1067Y25707D01* X1067Y25688D01* X1082Y25655D01* Y24480D01* X-1280Y22118D01* X-24600D01* X-24951Y22048D01* X-25249Y21849D01* X-25582Y21515D01* X-26082Y21723D01* Y25655D01* X-26067Y25688D01* X-26067Y25707D01* X-26063Y25709D01* X-26003Y25734D01* X-25995Y25755D01* X-25851Y25851D01* X-25652Y26149D01* X-25582Y26500D01* Y27500D01* X-25652Y27851D01* X-25851Y28149D01* X-26149Y28348D01* X-26500Y28418D01* X-27500D01* X-27851Y28348D01* X-28149Y28149D01* X-28348Y27851D01* X-28418Y27500D01* Y26500D01* X-28348Y26149D01* X-28149Y25851D01* X-28005Y25755D01* X-27997Y25734D01* X-27937Y25709D01* X-27933Y25707D01* X-27933Y25688D01* X-27918Y25655D01* Y21580D01* X-39228Y10270D01* X-39426Y9972D01* X-39496Y9621D01* Y-341D01* X-39996Y-565D01* X-40157Y-458D01* X-40547Y-380D01* X-40937Y-458D01* X-41268Y-679D01* X-41795D01* X-42125Y-458D01* X-42516Y-380D01* X-42906Y-458D01* X-43237Y-679D01* X-43763D01* X-44094Y-458D01* X-44484Y-380D01* X-44874Y-458D01* X-45205Y-679D01* X-45284Y-687D01* X-45739Y-342D01* Y53D01* X-45793Y326D01* X-45948Y557D01* X-47186Y1796D01* Y33700D01* X-47241Y33973D01* X-47395Y34205D01* X-53995Y40805D01* X-54227Y40959D01* X-54500Y41014D01* X-58453D01* X-58494Y41033D01* X-58560Y41035D01* X-58606Y41041D01* X-58650Y41050D01* X-58692Y41063D01* X-58734Y41079D01* X-58775Y41099D01* X-58817Y41124D01* X-58860Y41155D01* X-58904Y41191D01* X-58958Y41243D01* X-59034Y41273D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X73259Y4800D02* X72741D01* X72264Y4602D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X73736Y4602D01* X73259Y4800D01* D02* G37* G36* X-60241Y4300D02* X-60759D01* X-61236Y4102D01* X-61602Y3736D01* X-61800Y3259D01* Y2741D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60241D01* X-59764Y1898D01* X-59398Y2264D01* X-59200Y2741D01* Y3259D01* X-59398Y3736D01* X-59764Y4102D01* X-60241Y4300D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X49031Y-3131D01* X48957Y-3170D01* X48894Y-3247D01* X48840Y-3305D01* X48790Y-3352D01* X48744Y-3390D01* X48702Y-3419D01* X48666Y-3439D01* X48640Y-3451D01* X30638D01* X30602Y-3436D01* X30557Y-3413D01* X30506Y-3382D01* X30454Y-3346D01* X30318Y-3231D01* X30245Y-3160D01* X30168Y-3129D01* X30036Y-2998D01* X29559Y-2800D01* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30168Y-5071D01* X30245Y-5040D01* X30322Y-4965D01* X30388Y-4907D01* X30449Y-4857D01* X30506Y-4817D01* X30557Y-4787D01* X30602Y-4764D01* X30638Y-4749D01* X48696D01* X48741Y-4766D01* X48794Y-4789D01* X48855Y-4821D01* X48918Y-4859D01* X49077Y-4970D01* X49163Y-5038D01* X49213Y-5052D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4959D01* X71898Y-5436D01* X72264Y-5802D01* X72741Y-6000D01* X73259D01* X73736Y-5802D01* X74102Y-5436D01* X74300Y-4959D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X49132Y-6229D01* X49055Y-6260D01* X48978Y-6335D01* X48912Y-6393D01* X48851Y-6443D01* X48794Y-6482D01* X48743Y-6513D01* X48698Y-6536D01* X48662Y-6551D01* X30638D01* X30602Y-6536D01* X30557Y-6513D01* X30506Y-6482D01* X30454Y-6446D01* X30318Y-6331D01* X30245Y-6260D01* X30168Y-6229D01* X30036Y-6098D01* X29559Y-5900D01* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30168Y-8171D01* X30245Y-8140D01* X30322Y-8065D01* X30388Y-8006D01* X30449Y-7957D01* X30506Y-7918D01* X30557Y-7887D01* X30602Y-7864D01* X30638Y-7849D01* X48662D01* X48698Y-7864D01* X48743Y-7887D01* X48794Y-7918D01* X48846Y-7954D01* X48982Y-8069D01* X49055Y-8140D01* X49132Y-8171D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X18800Y-14873D02* X18800Y-14873D01* X15800D01* X15800Y-14873D01* X15254Y-14981D01* X14791Y-15291D01* X14481Y-15754D01* X14373Y-16300D01* X14481Y-16846D01* X14791Y-17309D01* X15073Y-17591D01* Y-20180D01* X15067Y-20192D01* X15066Y-20296D01* X15053Y-20470D01* X15045Y-20527D01* X15035Y-20574D01* X15026Y-20604D01* X15025Y-20608D01* X15017Y-20611D01* X14992Y-20671D01* X14909Y-20796D01* X14351D01* X14234Y-20620D01* X13874Y-20380D01* X13514Y-20308D01* X13446Y-19972D01* X13444Y-19962D01* X13437Y-19911D01* X13433Y-19795D01* X13433Y-19793D01* X13437Y-19791D01* X13497Y-19766D01* X13505Y-19745D01* X13649Y-19649D01* X13848Y-19351D01* X13918Y-19000D01* Y-18000D01* X13848Y-17649D01* X13649Y-17351D01* X13351Y-17152D01* X13000Y-17082D01* X12000D01* X11649Y-17152D01* X11351Y-17351D01* X11152Y-17649D01* X11082Y-18000D01* Y-19000D01* X11152Y-19351D01* X11351Y-19649D01* X11495Y-19745D01* X11503Y-19766D01* X11563Y-19791D01* X11567Y-19793D01* X11567Y-19812D01* X11582Y-19845D01* Y-20382D01* X11567Y-20415D01* X11567Y-20433D01* X11552Y-20442D01* X11495Y-20467D01* X11488Y-20485D01* X11286Y-20620D01* X11045Y-20981D01* X10961Y-21406D01* Y-25146D01* X11045Y-25571D01* X11286Y-25931D01* X11646Y-26171D01* X12071Y-26256D01* X13449D01* X13874Y-26171D01* X14234Y-25931D01* X14351Y-25756D01* X14909D01* X15026Y-25931D01* X15386Y-26171D01* X15811Y-26256D01* X17189D01* X17614Y-26171D01* X17974Y-25931D01* X18091Y-25756D01* X18649D01* X18732Y-25880D01* X18757Y-25940D01* X18765Y-25943D01* X18767Y-25947D01* X18775Y-25977D01* X18785Y-26024D01* X18793Y-26081D01* X18806Y-26255D01* X18807Y-26359D01* X18813Y-26371D01* Y-26740D01* X18813Y-26740D01* X18921Y-27286D01* X19231Y-27749D01* X20725Y-29244D01* X20518Y-29744D01* X19551D01* X19126Y-29829D01* X18766Y-30069D01* X18525Y-30429D01* X18441Y-30854D01* Y-34595D01* X18525Y-35019D01* X18766Y-35380D01* X19126Y-35620D01* X19551Y-35705D01* X20929D01* X21354Y-35620D01* X21714Y-35380D01* X21890Y-35116D01* X21909Y-35099D01* X22007Y-35049D01* X22209Y-35011D01* X22468Y-35003D01* X22525Y-35065D01* X22593Y-35146D01* X22605Y-35162D01* X22607Y-35165D01* X22608Y-35166D01* X22619Y-35183D01* X22652Y-35351D01* X22851Y-35649D01* X23149Y-35848D01* X23500Y-35918D01* X23951D01* X24000Y-35927D01* X26000D01* X26000Y-35927D01* X26546Y-35819D01* X27009Y-35509D01* X28009Y-34509D01* X28009Y-34509D01* X28319Y-34046D01* X28427Y-33500D01* Y-29000D01* X28427Y-29000D01* X28319Y-28454D01* X28009Y-27991D01* X28009Y-27991D01* X25735Y-25716D01* X25730Y-25703D01* X25653Y-25626D01* X25475Y-25436D01* X25407Y-25354D01* X25395Y-25338D01* X25393Y-25335D01* X25392Y-25334D01* X25381Y-25317D01* X25348Y-25149D01* X25149Y-24851D01* X24851Y-24652D01* X24500Y-24582D01* X24049D01* X24000Y-24573D01* X23951Y-24582D01* X23500D01* X23149Y-24652D01* X22851Y-24851D01* X22652Y-25149D01* X22582Y-25500D01* Y-25951D01* X22573Y-26000D01* X22576Y-26016D01* X22529Y-26082D01* X22082Y-26352D01* X21997Y-26319D01* X21907Y-26160D01* X21798Y-25805D01* X21955Y-25571D01* X22039Y-25146D01* Y-23991D01* X22040Y-23989D01* X22039Y-23960D01* Y-23751D01* X22043Y-23687D01* X22059Y-23588D01* X22080Y-23519D01* X22100Y-23479D01* X22113Y-23460D01* X22122Y-23453D01* X22135Y-23447D01* X22165Y-23438D01* X22253Y-23432D01* X22262Y-23427D01* X24000D01* X24049Y-23418D01* X24500D01* X24851Y-23348D01* X25149Y-23149D01* X25348Y-22851D01* X25418Y-22500D01* Y-22049D01* X25427Y-22000D01* X25418Y-21951D01* Y-21500D01* X25348Y-21149D01* X25149Y-20851D01* X24851Y-20652D01* X24500Y-20582D01* X24049D01* X24000Y-20573D01* X23365D01* X23190Y-20398D01* X22712Y-20200D01* X22195D01* X21717Y-20398D01* X21585Y-20530D01* X21580Y-20529D01* X21578Y-20530D01* X21354Y-20380D01* X20994Y-20308D01* X20929Y-20100D01* X20930Y-19795D01* X21149Y-19649D01* X21348Y-19351D01* X21418Y-19000D01* Y-18000D01* X21373Y-17775D01* X21427Y-17500D01* X21319Y-16954D01* X21009Y-16491D01* X20909Y-16391D01* X20909Y-16391D01* X19809Y-15291D01* X19346Y-14981D01* X18800Y-14873D01* D02* G37* G36* X28500Y-14973D02* X27954Y-15081D01* X27491Y-15391D01* X27181Y-15854D01* X27073Y-16400D01* Y-21200D01* X27181Y-21746D01* X27491Y-22209D01* X27954Y-22519D01* X28500Y-22627D01* X29046Y-22519D01* X29509Y-22209D01* X29819Y-21746D01* X29927Y-21200D01* Y-16400D01* X29819Y-15854D01* X29509Y-15391D01* X29046Y-15081D01* X28500Y-14973D01* D02* G37* G36* X13449Y-29744D02* X12071D01* X11646Y-29829D01* X11286Y-30069D01* X11045Y-30429D01* X10961Y-30854D01* Y-34595D01* X11045Y-35019D01* X11286Y-35380D01* X11492Y-35517D01* X11501Y-35538D01* X11560Y-35563D01* X11646Y-35620D01* X11669Y-35625D01* X11710Y-35654D01* X11782Y-35671D01* X11828Y-35685D01* X11842Y-35690D01* Y-36584D01* X11833Y-36588D01* X11785Y-36602D01* X11713Y-36618D01* X11672Y-36648D01* X11649Y-36652D01* X11589Y-36692D01* X11525Y-36713D01* X11510Y-36745D01* X11351Y-36851D01* X11255Y-36995D01* X11234Y-37003D01* X11209Y-37063D01* X11207Y-37067D01* X11188Y-37067D01* X11155Y-37082D01* X10345D01* X10312Y-37067D01* X10293Y-37067D01* X10291Y-37063D01* X10266Y-37003D01* X10245Y-36995D01* X10149Y-36851D01* X9851Y-36652D01* X9500Y-36582D01* X8500D01* X8149Y-36652D01* X7851Y-36851D01* X7755Y-36995D01* X7734Y-37003D01* X7709Y-37063D01* X7707Y-37067D01* X7688Y-37067D01* X7655Y-37082D01* X6845D01* X6812Y-37067D01* X6793Y-37067D01* X6791Y-37063D01* X6766Y-37003D01* X6745Y-36995D01* X6649Y-36851D01* X6351Y-36652D01* X6000Y-36582D01* X5000D01* X4649Y-36652D01* X4351Y-36851D01* X4152Y-37149D01* X4082Y-37500D01* Y-38500D01* X4152Y-38851D01* X4351Y-39149D01* X4649Y-39348D01* X5000Y-39418D01* X6000D01* X6351Y-39348D01* X6649Y-39149D01* X6745Y-39005D01* X6766Y-38997D01* X6791Y-38937D01* X6793Y-38933D01* X6812Y-38933D01* X6845Y-38918D01* X7655D01* X7688Y-38933D01* X7707Y-38933D01* X7709Y-38937D01* X7734Y-38997D01* X7755Y-39005D01* X7851Y-39149D01* X8149Y-39348D01* X8500Y-39418D01* X9500D01* X9851Y-39348D01* X10149Y-39149D01* X10245Y-39005D01* X10266Y-38997D01* X10291Y-38937D01* X10293Y-38933D01* X10312Y-38933D01* X10345Y-38918D01* X11155D01* X11188Y-38933D01* X11207Y-38933D01* X11209Y-38937D01* X11234Y-38997D01* X11255Y-39005D01* X11351Y-39149D01* X11649Y-39348D01* X12000Y-39418D01* X13000D01* X13351Y-39348D01* X13649Y-39149D01* X13848Y-38851D01* X13918Y-38500D01* Y-37500D01* X13848Y-37149D01* X13708Y-36939D01* X13708Y-36937D01* X13705Y-36928D01* Y-36925D01* X13702Y-36917D01* X13701Y-36911D01* X13699Y-36898D01* X13693Y-36825D01* X13693Y-36780D01* X13678Y-36744D01* Y-35690D01* X13691Y-35685D01* X13738Y-35671D01* X13810Y-35654D01* X13851Y-35625D01* X13874Y-35620D01* X13959Y-35563D01* X14019Y-35538D01* X14028Y-35517D01* X14234Y-35380D01* X14475Y-35019D01* X14559Y-34595D01* Y-30854D01* X14475Y-30429D01* X14234Y-30069D01* X13874Y-29829D01* X13449Y-29744D01* D02* G37* G36* X4508Y-41089D02* X1358D01* X818Y-41196D01* X360Y-41502D01* X54Y-41960D01* X-53Y-42500D01* X54Y-43040D01* X360Y-43498D01* X818Y-43804D01* X1358Y-43911D01* X4508D01* X5048Y-43804D01* X5506Y-43498D01* X5812Y-43040D01* X5919Y-42500D01* X5812Y-41960D01* X5506Y-41502D01* X5048Y-41196D01* X4508Y-41089D01* D02* G37* G36* Y-46089D02* X1358D01* X818Y-46196D01* X360Y-46502D01* X54Y-46960D01* X-53Y-47500D01* X54Y-48040D01* X360Y-48498D01* X818Y-48804D01* X1358Y-48911D01* X4508D01* X5048Y-48804D01* X5506Y-48498D01* X5812Y-48040D01* X5919Y-47500D01* X5812Y-46960D01* X5506Y-46502D01* X5048Y-46196D01* X4508Y-46089D01* D02* G37* G36* X24500Y-36582D02* X23500D01* X23149Y-36652D01* X22851Y-36851D01* X22652Y-37149D01* X22582Y-37500D01* Y-38500D01* X22652Y-38851D01* X22851Y-39149D01* X23149Y-39348D01* X23500Y-39418D01* X24500D01* X24851Y-39348D01* X25149Y-39149D01* X25245Y-39005D01* X25266Y-38997D01* X25291Y-38937D01* X25293Y-38933D01* X25312Y-38933D01* X25345Y-38918D01* X26420D01* X28582Y-41080D01* Y-50970D01* X28567Y-51006D01* X28566Y-51099D01* X28563Y-51173D01* X28550Y-51306D01* X28543Y-51346D01* X28536Y-51377D01* X28530Y-51393D01* X28522Y-51407D01* X28521Y-51414D01* X28519Y-51419D01* X28519Y-51428D01* X28517Y-51445D01* X28454Y-51508D01* X28036Y-51798D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-53159D01* X26198Y-53636D01* X26564Y-54002D01* X27041Y-54200D01* X27559D01* X28036Y-54002D01* X28065Y-53973D01* X28069Y-53973D01* X28072Y-53973D01* X28078Y-53972D01* X28092Y-53966D01* X28096Y-53964D01* X28118Y-53959D01* X28143Y-53955D01* X28428Y-53934D01* X28515Y-53933D01* X28551Y-53918D01* X28800D01* X29151Y-53848D01* X29449Y-53649D01* X29498Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30483Y-51445D01* X30481Y-51428D01* X30481Y-51419D01* X30479Y-51414D01* X30478Y-51407D01* X30470Y-51393D01* X30464Y-51377D01* X30457Y-51346D01* X30451Y-51310D01* X30434Y-51092D01* X30433Y-51006D01* X30418Y-50970D01* Y-40700D01* X30348Y-40349D01* X30149Y-40051D01* X27449Y-37351D01* X27151Y-37152D01* X26800Y-37082D01* X25345D01* X25312Y-37067D01* X25293Y-37067D01* X25291Y-37063D01* X25266Y-37003D01* X25245Y-36995D01* X25149Y-36851D01* X24851Y-36652D01* X24500Y-36582D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7764Y-52202D01* X8241Y-52400D01* X8759D01* X9236Y-52202D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X4508Y-51089D02* X1358D01* X818Y-51196D01* X360Y-51502D01* X54Y-51960D01* X-53Y-52500D01* X28Y-52910D01* X18Y-52964D01* X21Y-52969D01* X-3280Y-56271D01* X-3435Y-56502D01* X-3489Y-56776D01* Y-59915D01* X-3435Y-60188D01* X-3280Y-60420D01* X-695Y-63005D01* X-464Y-63159D01* X-191Y-63214D01* X522D01* X563Y-63233D01* X629Y-63235D01* X675Y-63241D01* X718Y-63250D01* X761Y-63262D01* X802Y-63279D01* X844Y-63299D01* X886Y-63324D01* X929Y-63355D01* X972Y-63391D01* X1027Y-63443D01* X1103Y-63472D01* X1232Y-63602D01* X1710Y-63800D01* X2227D01* X2705Y-63602D01* X2834Y-63472D01* X2910Y-63443D01* X2965Y-63391D01* X3008Y-63355D01* X3051Y-63324D01* X3093Y-63299D01* X3135Y-63279D01* X3176Y-63262D01* X3218Y-63250D01* X3262Y-63241D01* X3308Y-63235D01* X3374Y-63233D01* X3415Y-63214D01* X4500D01* X4773Y-63159D01* X5005Y-63005D01* X10796Y-57214D01* X18625D01* X18652Y-57351D01* X18851Y-57649D01* X19149Y-57848D01* X19500Y-57918D01* X20500D01* X20851Y-57848D01* X21149Y-57649D01* X21348Y-57351D01* X21418Y-57000D01* Y-56000D01* X21348Y-55649D01* X21149Y-55351D01* X20851Y-55152D01* X20500Y-55082D01* X19500D01* X19149Y-55152D01* X18851Y-55351D01* X18652Y-55649D01* X18625Y-55786D01* X10500D01* X10227Y-55841D01* X9995Y-55995D01* X4204Y-61786D01* X3415D01* X3374Y-61767D01* X3308Y-61765D01* X3262Y-61759D01* X3218Y-61750D01* X3176Y-61738D01* X3135Y-61721D01* X3093Y-61701D01* X3051Y-61676D01* X3008Y-61645D01* X2965Y-61609D01* X2910Y-61557D01* X2834Y-61528D01* X2705Y-61398D01* X2227Y-61200D01* X1710D01* X1232Y-61398D01* X1103Y-61528D01* X1027Y-61557D01* X972Y-61609D01* X929Y-61645D01* X886Y-61676D01* X844Y-61701D01* X802Y-61721D01* X761Y-61738D01* X718Y-61750D01* X675Y-61759D01* X629Y-61765D01* X563Y-61767D01* X522Y-61786D01* X105D01* X-2062Y-59619D01* Y-57071D01* X1106Y-53903D01* X1113Y-53900D01* X1126Y-53900D01* X1143Y-53900D01* X1230Y-53908D01* X1283Y-53918D01* X1334Y-53907D01* X1358Y-53911D01* X1420D01* X1443Y-53916D01* X1450Y-53911D01* X4508D01* X5048Y-53804D01* X5506Y-53498D01* X5812Y-53040D01* X5919Y-52500D01* X5812Y-51960D01* X5506Y-51502D01* X5048Y-51196D01* X4508Y-51089D01* D02* G37* G36* X-78141Y-52200D02* X-78659D01* X-79136Y-52398D01* X-79502Y-52764D01* X-79700Y-53241D01* Y-53759D01* X-79502Y-54236D01* X-79136Y-54602D01* X-78659Y-54800D01* X-78141D01* X-77664Y-54602D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77664Y-52398D01* X-78141Y-52200D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74800Y-51741D01* Y-52259D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74602Y-54264D01* X-74800Y-54741D01* Y-55259D01* X-74602Y-55736D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* G36* X24500Y-55082D02* X23500D01* X23149Y-55152D01* X22851Y-55351D01* X22652Y-55649D01* X22582Y-56000D01* Y-57000D01* X22652Y-57351D01* X22700Y-57423D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25300Y-57759D01* Y-57423D01* X25348Y-57351D01* X25418Y-57000D01* Y-56000D01* X25348Y-55649D01* X25149Y-55351D01* X24851Y-55152D01* X24500Y-55082D01* D02* G37* G36* X4508Y-56089D02* X1358D01* X818Y-56196D01* X360Y-56502D01* X54Y-56960D01* X-53Y-57500D01* X54Y-58040D01* X360Y-58498D01* X818Y-58804D01* X1358Y-58911D01* X4508D01* X5048Y-58804D01* X5506Y-58498D01* X5812Y-58040D01* X5919Y-57500D01* X5812Y-56960D01* X5506Y-56502D01* X5048Y-56196D01* X4508Y-56089D01* D02* G37* G36* X-1741Y-64200D02* X-2259D01* X-2736Y-64398D01* X-3102Y-64764D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-898Y-64764D01* X-1264Y-64398D01* X-1741Y-64200D01* D02* G37* G36* X43000Y-63066D02* X41982Y-63200D01* X41033Y-63593D01* X40218Y-64218D01* X39593Y-65033D01* X39381Y-65545D01* X39329Y-65566D01* X4200D01* X3182Y-65700D01* X2233Y-66093D01* X1419Y-66719D01* X-1929Y-70066D01* X-10371D01* X-11986Y-68451D01* Y-65581D01* X-12113Y-65275D01* X-13694Y-63694D01* X-14000Y-63567D01* X-20500D01* X-20806Y-63694D01* X-22306Y-65194D01* X-22433Y-65500D01* Y-72236D01* X-22306Y-72542D01* X-20924Y-73925D01* X-20934Y-74000D01* X-20800Y-75018D01* X-20407Y-75967D01* X-19782Y-76781D01* X-18967Y-77407D01* X-18018Y-77800D01* X-17000Y-77934D01* X-300D01* X718Y-77800D01* X1667Y-77407D01* X2482Y-76781D01* X5829Y-73434D01* X38468D01* X38660Y-73896D01* X39104Y-74340D01* X39381Y-74455D01* X39593Y-74967D01* X40218Y-75782D01* X41033Y-76407D01* X41982Y-76800D01* X43000Y-76934D01* X44018Y-76800D01* X44967Y-76407D01* X45781Y-75782D01* X46407Y-74967D01* X46619Y-74455D01* X46896Y-74340D01* X47340Y-73896D01* X47581Y-73314D01* Y-72819D01* X48281Y-72281D01* X48907Y-71467D01* X49300Y-70518D01* X49434Y-69500D01* X49300Y-68482D01* X48907Y-67533D01* X48281Y-66719D01* X47467Y-66093D01* X47232Y-65996D01* X46896Y-65660D01* X46619Y-65545D01* X46407Y-65033D01* X45781Y-64218D01* X44967Y-63593D01* X44018Y-63200D01* X43000Y-63066D01* D02* G37* %LPD*% G36* X10058Y61495D02* X10132Y61455D01* X10222Y61394D01* X10329Y61311D01* X10592Y61079D01* X10922Y60760D01* X6278Y59040D01* X6114Y59186D01* X5925Y59323D01* X5709Y59449D01* X5468Y59566D01* X5202Y59673D01* X4909Y59770D01* X4591Y59858D01* X3877Y60005D01* X3481Y60063D01* X9937Y61481D01* X9961Y61507D01* X10001Y61512D01* X10058Y61495D01* D02* G37* G36* X15418Y53432D02* X15380Y53232D01* X15365Y53036D01* X15373Y52846D01* X15405Y52659D01* X15461Y52478D01* X15539Y52301D01* X15641Y52129D01* X15767Y51961D01* X15916Y51799D01* X14883Y50003D01* X14738Y50152D01* X14519Y50410D01* X14445Y50517D01* X14395Y50611D01* X14369Y50690D01* X14366Y50756D01* X14387Y50807D01* X14432Y50844D01* X14500Y50867D01* X15479Y53637D01* X15418Y53432D01* D02* G37* G36* X22897Y48898D02* X25763Y46246D01* X25613Y46363D01* X25456Y46444D01* X25291Y46490D01* X25119Y46500D01* X24939Y46474D01* X24751Y46413D01* X24556Y46315D01* X24353Y46183D01* X24142Y46014D01* X23924Y45810D01* X22401Y47115D01* X22401Y47115D01* X22351Y47119D01* X22237Y47122D01* Y49122D01* X22351Y49125D01* X22455Y49134D01* X22548Y49150D01* X22630Y49171D01* X22702Y49198D01* X22762Y49232D01* X22812Y49271D01* X22851Y49317D01* X22880Y49368D01* X22897Y49426D01* Y48898D01* D02* G37* G36* X5593Y34786D02* X5553Y34745D01* X5463Y34642D01* X5443Y34613D01* X5427Y34589D01* X5417Y34567D01* X5412Y34549D01* X5411Y34533D01* X5416Y34521D01* X4500Y35133D01* X4506Y35134D01* X4516Y35140D01* X4530Y35150D01* X4548Y35164D01* X4624Y35233D01* X4734Y35341D01* X5593Y34786D01* D02* G37* G36* X23502Y28240D02* X23508Y28188D01* X23517Y28141D01* X23530Y28100D01* X23548Y28063D01* X23569Y28032D01* X23593Y28006D01* X23622Y27985D01* X23654Y27970D01* X23690Y27960D01* X22310D01* X22346Y27970D01* X22378Y27985D01* X22407Y28006D01* X22432Y28032D01* X22452Y28063D01* X22469Y28100D01* X22483Y28141D01* X22492Y28188D01* X22498Y28240D01* X22500Y28298D01* X23500D01* X23502Y28240D01* D02* G37* G36* X22040Y26310D02* X22030Y26346D01* X22015Y26378D01* X21994Y26407D01* X21968Y26432D01* X21937Y26452D01* X21901Y26469D01* X21859Y26483D01* X21812Y26492D01* X21760Y26498D01* X21702Y26500D01* Y27500D01* X21760Y27502D01* X21812Y27508D01* X21859Y27517D01* X21901Y27531D01* X21937Y27548D01* X21968Y27569D01* X21994Y27593D01* X22015Y27622D01* X22030Y27654D01* X22040Y27690D01* Y26310D01* D02* G37* G36* X20970Y27654D02* X20985Y27622D01* X21006Y27593D01* X21032Y27569D01* X21063Y27548D01* X21100Y27531D01* X21141Y27517D01* X21188Y27508D01* X21240Y27502D01* X21298Y27500D01* Y26500D01* X21240Y26498D01* X21188Y26492D01* X21141Y26483D01* X21100Y26469D01* X21063Y26452D01* X21032Y26432D01* X21006Y26407D01* X20985Y26378D01* X20970Y26346D01* X20960Y26310D01* Y27690D01* X20970Y27654D01* D02* G37* %LPC*% G36* X22897Y48887D02* Y47721D01* X22929Y47769D01* X23029Y47968D01* X23092Y48157D01* X23117Y48336D01* X23103Y48505D01* X23053Y48664D01* X22964Y48814D01* X22897Y48887D01* D02* G37* %LPD*% G36* X21537Y60586D02* X21587Y60515D01* X21630Y60395D01* X21667Y60225D01* X21697Y60007D01* X21737Y59424D01* X21750Y58645D01* X17250D01* X17232Y58872D01* X17179Y59081D01* X17091Y59270D01* X16967Y59441D01* X16808Y59592D01* X16613Y59724D01* X16383Y59838D01* X16118Y59932D01* X15817Y60007D01* X15481Y60063D01* X21418Y60582D01* X21481Y60609D01* X21537Y60586D01* D02* G37* G36* X-3140Y60195D02* X-3268Y60113D01* X-3381Y60019D01* X-3479Y59912D01* X-3562Y59792D01* X-3630Y59659D01* X-3682Y59513D01* X-3720Y59355D01* X-3743Y59184D01* X-3750Y59000D01* X-8250D01* X-8258Y59184D01* X-8280Y59355D01* X-8318Y59513D01* X-8370Y59659D01* X-8438Y59792D01* X-8521Y59912D01* X-8619Y60019D01* X-8732Y60113D01* X-8860Y60195D01* X-9003Y60264D01* X-2997D01* X-3140Y60195D01* D02* G37* G36* X-14067Y61440D02* X-14050Y61383D01* X-14013Y61310D01* X-13955Y61222D01* X-13876Y61117D01* X-13658Y60861D01* X-13178Y60360D01* X-18222Y59040D01* X-18395Y59200D01* X-18580Y59347D01* X-18777Y59481D01* X-18988Y59602D01* X-19211Y59711D01* X-19447Y59807D01* X-19696Y59890D01* X-19958Y59961D01* X-20232Y60018D01* X-20519Y60063D01* X-14063Y61481D01* X-14067Y61440D01* D02* G37* G36* X-20638Y56742D02* X-19953Y56676D01* X-19722Y56618D01* X-19564Y56543D01* X-19480Y56453D01* X-19469Y56345D01* X-19532Y56221D01* X-19669Y56081D01* X-19879Y55924D01* X-20372Y53522D01* X-20201Y51157D01* X-20220Y51175D01* X-20253Y51191D01* X-20300Y51205D01* X-20361Y51217D01* X-20435Y51227D01* X-20625Y51242D01* X-21013Y51250D01* X-21241Y53750D01* X-21080Y53763D01* X-20985Y53788D01* X-20983Y54222D01* X-21050Y54238D01* X-21241Y54250D01* X-21091Y56750D01* X-20638Y56742D01* D02* G37* G36* X-8582Y53432D02* X-8620Y53232D01* X-8635Y53036D01* X-8627Y52846D01* X-8595Y52659D01* X-8539Y52478D01* X-8461Y52301D01* X-8359Y52129D01* X-8233Y51961D01* X-8084Y51799D01* X-9117Y50003D01* X-9262Y50152D01* X-9481Y50410D01* X-9555Y50517D01* X-9605Y50611D01* X-9631Y50690D01* X-9634Y50756D01* X-9613Y50807D01* X-9568Y50844D01* X-9500Y50867D01* X-8521Y53637D01* X-8582Y53432D01* D02* G37* G36* X-22880Y49368D02* X-22851Y49317D01* X-22812Y49271D01* X-22762Y49232D01* X-22702Y49198D01* X-22630Y49171D01* X-22548Y49150D01* X-22455Y49134D01* X-22351Y49125D01* X-22237Y49122D01* Y47122D01* X-22351Y47119D01* X-22455Y47110D01* X-22548Y47095D01* X-22630Y47074D01* X-22702Y47047D01* X-22762Y47013D01* X-22812Y46974D01* X-22851Y46928D01* X-22880Y46876D01* X-22897Y46819D01* Y49426D01* X-22880Y49368D01* D02* G37* G36* X-23403Y46303D02* X-23389Y46292D01* X-23366Y46272D01* X-22975Y45889D01* X-25724Y45810D01* X-25825Y45896D01* X-25944Y45973D01* X-26081Y46041D01* X-26237Y46099D01* X-26412Y46147D01* X-26605Y46186D01* X-26817Y46215D01* X-27295Y46245D01* X-27563Y46246D01* X-23410Y46306D01* X-23403Y46303D01* D02* G37* G36* X3147Y56346D02* X3943Y56282D01* X4104Y56243D01* X4212Y56196D01* X4268Y56141D01* X4271Y56077D01* X4222Y56005D01* X4121Y55924D01* X3632Y53219D01* X3799Y51157D01* X3826Y51099D01* X3823Y51047D01* X3792Y51001D01* X3731Y50961D01* X3642Y50927D01* X3523Y50899D01* X3376Y50878D01* X3199Y50862D01* X2759Y50850D01* Y52092D01* X2649Y52192D01* X2094Y52738D01* X2765Y54750D01* X2777Y56350D01* X3147Y56346D01* D02* G37* G36* X501Y44689D02* X521Y44436D01* X532Y44368D01* X547Y44307D01* X564Y44254D01* X583Y44209D01* X605Y44172D01* X630Y44143D01* X-630D01* X-605Y44172D01* X-583Y44209D01* X-564Y44254D01* X-547Y44307D01* X-532Y44368D01* X-521Y44436D01* X-505Y44597D01* X-501Y44689D01* X-500Y44788D01* X500D01* X501Y44689D01* D02* G37* G36* X654Y44030D02* X622Y44015D01* X593Y43994D01* X569Y43968D01* X548Y43937D01* X531Y43900D01* X517Y43859D01* X508Y43812D01* X502Y43760D01* X500Y43702D01* X-500D01* X-502Y43760D01* X-508Y43812D01* X-517Y43859D01* X-531Y43900D01* X-548Y43937D01* X-569Y43968D01* X-593Y43994D01* X-622Y44015D01* X-654Y44030D01* X-690Y44040D01* X690D01* X654Y44030D01* D02* G37* G36* X502Y43240D02* X508Y43188D01* X517Y43141D01* X531Y43099D01* X548Y43063D01* X569Y43032D01* X593Y43006D01* X622Y42985D01* X654Y42970D01* X690Y42960D01* X-690D01* X-654Y42970D01* X-622Y42985D01* X-593Y43006D01* X-569Y43032D01* X-548Y43063D01* X-531Y43099D01* X-517Y43141D01* X-508Y43188D01* X-502Y43240D01* X-500Y43298D01* X500D01* X502Y43240D01* D02* G37* G36* X605Y42828D02* X583Y42791D01* X564Y42746D01* X547Y42693D01* X532Y42632D01* X521Y42564D01* X505Y42403D01* X501Y42311D01* X500Y42212D01* X-500D01* X-501Y42311D01* X-521Y42564D01* X-532Y42632D01* X-547Y42693D01* X-564Y42746D01* X-583Y42791D01* X-605Y42828D01* X-630Y42857D01* X630D01* X605Y42828D01* D02* G37* G36* X-18297Y33996D02* X-18368Y33918D01* X-18429Y33836D01* X-18479Y33752D01* X-18518Y33664D01* X-18545Y33574D01* X-18562Y33480D01* X-18568Y33384D01* X-18564Y33285D01* X-18548Y33182D01* X-18521Y33077D01* X-19121Y35058D01* X-19065Y35024D01* X-19011Y34998D01* X-18958Y34980D01* X-18906Y34971D01* X-18856Y34969D01* X-18807Y34975D01* X-18760Y34990D01* X-18714Y35012D01* X-18669Y35043D01* X-18626Y35081D01* X-18297Y33996D01* D02* G37* G36* X-7793Y27506D02* X-7760Y27502D01* X-7702Y27500D01* Y26500D01* X-7760Y26498D01* X-7812Y26492D01* X-7859Y26483D01* X-7901Y26469D01* X-7937Y26452D01* X-7968Y26432D01* X-7994Y26407D01* X-8015Y26378D01* X-8030Y26346D01* X-8040Y26310D01* Y26609D01* X-9417Y27986D01* X-9345Y27925D01* X-9269Y27883D01* X-9188Y27860D01* X-9103Y27855D01* X-9013Y27868D01* X-8919Y27899D01* X-8820Y27949D01* X-8717Y28018D01* X-8609Y28105D01* X-8497Y28210D01* X-7793Y27506D01* D02* G37* G36* X-6960Y26310D02* X-6970Y26346D01* X-6985Y26378D01* X-7006Y26407D01* X-7032Y26432D01* X-7063Y26452D01* X-7100Y26469D01* X-7141Y26483D01* X-7188Y26492D01* X-7240Y26498D01* X-7298Y26500D01* Y27500D01* X-7240Y27502D01* X-7188Y27508D01* X-7141Y27517D01* X-7100Y27531D01* X-7063Y27548D01* X-7032Y27569D01* X-7006Y27593D01* X-6985Y27622D01* X-6970Y27654D01* X-6960Y27690D01* Y26310D01* D02* G37* %LPC*% G36* X-8040Y27195D02* X-8051Y27180D01* X-8101Y27081D01* X-8132Y26987D01* X-8145Y26897D01* X-8140Y26812D01* X-8117Y26731D01* X-8075Y26655D01* X-8040Y26614D01* Y27195D01* D02* G37* %LPD*% G36* X15040Y26310D02* X15030Y26346D01* X15015Y26378D01* X14994Y26407D01* X14968Y26432D01* X14937Y26452D01* X14900Y26469D01* X14859Y26483D01* X14812Y26492D01* X14760Y26498D01* X14702Y26500D01* Y27500D01* X14760Y27502D01* X14812Y27508D01* X14859Y27517D01* X14900Y27531D01* X14937Y27548D01* X14968Y27569D01* X14994Y27593D01* X15015Y27622D01* X15030Y27654D01* X15040Y27690D01* Y26310D01* D02* G37* G36* X13970Y27654D02* X13985Y27622D01* X14006Y27593D01* X14032Y27569D01* X14063Y27548D01* X14099Y27531D01* X14141Y27517D01* X14188Y27508D01* X14240Y27502D01* X14298Y27500D01* Y26500D01* X14240Y26498D01* X14188Y26492D01* X14141Y26483D01* X14099Y26469D01* X14063Y26452D01* X14032Y26432D01* X14006Y26407D01* X13985Y26378D01* X13970Y26346D01* X13960Y26310D01* Y27690D01* X13970Y27654D01* D02* G37* G36* X13654Y26030D02* X13622Y26015D01* X13593Y25994D01* X13568Y25968D01* X13548Y25937D01* X13531Y25901D01* X13517Y25859D01* X13508Y25812D01* X13502Y25760D01* X13500Y25702D01* X12500D01* X12498Y25760D01* X12492Y25812D01* X12483Y25859D01* X12470Y25901D01* X12452Y25937D01* X12431Y25968D01* X12407Y25994D01* X12378Y26015D01* X12346Y26030D01* X12310Y26040D01* X13690D01* X13654Y26030D01* D02* G37* G36* X6654D02* X6622Y26015D01* X6593Y25994D01* X6569Y25968D01* X6548Y25937D01* X6531Y25901D01* X6517Y25859D01* X6508Y25812D01* X6502Y25760D01* X6500Y25702D01* X5500D01* X5498Y25760D01* X5492Y25812D01* X5483Y25859D01* X5469Y25901D01* X5452Y25937D01* X5432Y25968D01* X5407Y25994D01* X5378Y26015D01* X5346Y26030D01* X5310Y26040D01* X6690D01* X6654Y26030D01* D02* G37* G36* X-20960Y26310D02* X-20970Y26346D01* X-20985Y26378D01* X-21006Y26407D01* X-21032Y26432D01* X-21063Y26452D01* X-21100Y26469D01* X-21141Y26483D01* X-21188Y26492D01* X-21240Y26498D01* X-21298Y26500D01* Y27500D01* X-21240Y27502D01* X-21188Y27508D01* X-21141Y27517D01* X-21100Y27531D01* X-21063Y27548D01* X-21032Y27569D01* X-21006Y27593D01* X-20985Y27622D01* X-20970Y27654D01* X-20960Y27690D01* Y26310D01* D02* G37* G36* X-22030Y27654D02* X-22015Y27622D01* X-21994Y27593D01* X-21968Y27569D01* X-21937Y27548D01* X-21901Y27531D01* X-21859Y27517D01* X-21812Y27508D01* X-21760Y27502D01* X-21702Y27500D01* Y26500D01* X-21760Y26498D01* X-21812Y26492D01* X-21859Y26483D01* X-21901Y26469D01* X-21937Y26452D01* X-21968Y26432D01* X-21994Y26407D01* X-22015Y26378D01* X-22030Y26346D01* X-22040Y26310D01* Y27690D01* X-22030Y27654D01* D02* G37* G36* X-12346Y26030D02* X-12378Y26015D01* X-12407Y25994D01* X-12431Y25968D01* X-12452Y25937D01* X-12470Y25901D01* X-12483Y25859D01* X-12492Y25812D01* X-12498Y25760D01* X-12500Y25702D01* X-13500D01* X-13502Y25760D01* X-13508Y25812D01* X-13517Y25859D01* X-13531Y25901D01* X-13548Y25937D01* X-13568Y25968D01* X-13593Y25994D01* X-13622Y26015D01* X-13654Y26030D01* X-13690Y26040D01* X-12310D01* X-12346Y26030D01* D02* G37* G36* X-19346D02* X-19378Y26015D01* X-19407Y25994D01* X-19432Y25968D01* X-19452Y25937D01* X-19469Y25901D01* X-19483Y25859D01* X-19492Y25812D01* X-19498Y25760D01* X-19500Y25702D01* X-20500D01* X-20502Y25760D01* X-20508Y25812D01* X-20517Y25859D01* X-20530Y25901D01* X-20548Y25937D01* X-20569Y25968D01* X-20593Y25994D01* X-20622Y26015D01* X-20654Y26030D01* X-20690Y26040D01* X-19310D01* X-19346Y26030D01* D02* G37* G36* X-59192Y40867D02* X-59124Y40811D01* X-59054Y40762D01* X-58983Y40719D01* X-58909Y40683D01* X-58833Y40653D01* X-58756Y40630D01* X-58676Y40613D01* X-58595Y40603D01* X-58512Y40600D01* Y40000D01* X-58595Y39997D01* X-58676Y39987D01* X-58756Y39970D01* X-58833Y39947D01* X-58909Y39917D01* X-58983Y39881D01* X-59054Y39838D01* X-59124Y39789D01* X-59192Y39733D01* X-59257Y39670D01* Y40930D01* X-59192Y40867D01* D02* G37* G36* X2654Y26030D02* X2622Y26015D01* X2593Y25994D01* X2569Y25968D01* X2548Y25937D01* X2530Y25901D01* X2517Y25859D01* X2508Y25812D01* X2502Y25760D01* X2500Y25702D01* X1500D01* X1498Y25760D01* X1492Y25812D01* X1483Y25859D01* X1469Y25901D01* X1452Y25937D01* X1431Y25968D01* X1407Y25994D01* X1378Y26015D01* X1346Y26030D01* X1310Y26040D01* X2690D01* X2654Y26030D01* D02* G37* G36* X-26346D02* X-26378Y26015D01* X-26407Y25994D01* X-26432Y25968D01* X-26452Y25937D01* X-26469Y25901D01* X-26483Y25859D01* X-26492Y25812D01* X-26498Y25760D01* X-26500Y25702D01* X-27500D01* X-27502Y25760D01* X-27508Y25812D01* X-27517Y25859D01* X-27531Y25901D01* X-27548Y25937D01* X-27569Y25968D01* X-27593Y25994D01* X-27622Y26015D01* X-27654Y26030D01* X-27690Y26040D01* X-26310D01* X-26346Y26030D01* D02* G37* G36* X-53723Y4101D02* X-53771Y4040D01* X-53813Y3977D01* X-53849Y3909D01* X-53880Y3838D01* X-53905Y3764D01* X-53925Y3686D01* X-53939Y3604D01* X-53947Y3520D01* X-53950Y3431D01* X-54650D01* X-54653Y3520D01* X-54661Y3604D01* X-54675Y3686D01* X-54695Y3764D01* X-54720Y3838D01* X-54751Y3909D01* X-54787Y3977D01* X-54829Y4040D01* X-54877Y4101D01* X-54930Y4157D01* X-53670D01* X-53723Y4101D01* D02* G37* G36* X-49815Y4107D02* X-49862Y4046D01* X-49904Y3982D01* X-49940Y3915D01* X-49970Y3843D01* X-49995Y3769D01* X-50015Y3691D01* X-50029Y3609D01* X-50037Y3524D01* X-50040Y3435D01* X-50740Y3427D01* X-50743Y3515D01* X-50751Y3600D01* X-50765Y3682D01* X-50785Y3760D01* X-50810Y3834D01* X-50842Y3904D01* X-50878Y3971D01* X-50921Y4034D01* X-50969Y4094D01* X-51023Y4150D01* X-49763Y4165D01* X-49815Y4107D01* D02* G37* G36* X12737Y3163D02* X12769Y3129D01* X12804Y3098D01* X12843Y3072D01* X12885Y3050D01* X12930Y3032D01* X12978Y3018D01* X13030Y3008D01* X13085Y3002D01* X13143Y3000D01* Y2000D01* X13085Y1998D01* X13030Y1992D01* X12978Y1982D01* X12930Y1968D01* X12885Y1950D01* X12843Y1928D01* X12804Y1901D01* X12769Y1871D01* X12737Y1837D01* X12709Y1799D01* Y3201D01* X12737Y3163D01* D02* G37* G36* X15314Y1495D02* X15506Y1330D01* X15563Y1290D01* X15616Y1257D01* X15665Y1232D01* X15711Y1214D01* X15753Y1203D01* X15791Y1200D01* X14900Y309D01* X14897Y347D01* X14886Y389D01* X14868Y435D01* X14843Y484D01* X14810Y537D01* X14770Y594D01* X14667Y718D01* X14605Y786D01* X14536Y857D01* X15243Y1564D01* X15314Y1495D01* D02* G37* G36* X-55923Y1D02* X-55971Y-60D01* X-56013Y-123D01* X-56049Y-191D01* X-56080Y-262D01* X-56105Y-336D01* X-56125Y-414D01* X-56139Y-495D01* X-56147Y-581D01* X-56150Y-669D01* X-56850D01* X-56853Y-581D01* X-56861Y-495D01* X-56875Y-414D01* X-56895Y-336D01* X-56920Y-262D01* X-56951Y-191D01* X-56987Y-123D01* X-57029Y-60D01* X-57077Y1D01* X-57130Y57D01* X-55870D01* X-55923Y1D01* D02* G37* G36* X-51781Y-41D02* X-51829Y-101D01* X-51871Y-165D01* X-51907Y-233D01* X-51938Y-303D01* X-51963Y-378D01* X-51983Y-456D01* X-51997Y-537D01* X-52005Y-622D01* X-52008Y-711D01* X-52708D01* X-52711Y-622D01* X-52719Y-537D01* X-52733Y-456D01* X-52753Y-378D01* X-52778Y-303D01* X-52809Y-233D01* X-52845Y-165D01* X-52887Y-101D01* X-52935Y-41D01* X-52988Y16D01* X-51728D01* X-51781Y-41D01* D02* G37* G36* X-46152Y-748D02* X-46148Y-781D01* X-46142Y-812D01* X-46133Y-842D01* X-46122Y-869D01* X-46108Y-894D01* X-46092Y-918D01* X-46073Y-939D01* X-46052Y-958D01* X-46029Y-976D01* X-46877D01* X-46853Y-958D01* X-46832Y-939D01* X-46813Y-918D01* X-46797Y-894D01* X-46784Y-869D01* X-46773Y-842D01* X-46764Y-812D01* X-46758Y-781D01* X-46754Y-748D01* X-46753Y-713D01* X-46153D01* X-46152Y-748D01* D02* G37* G36* X-50039Y-757D02* X-50033Y-828D01* X-50028Y-859D01* X-50021Y-886D01* X-50013Y-911D01* X-50003Y-932D01* X-49992Y-950D01* X-49980Y-965D01* X-49966Y-976D01* X-50814D01* X-50800Y-965D01* X-50787Y-950D01* X-50776Y-932D01* X-50766Y-911D01* X-50758Y-886D01* X-50752Y-859D01* X-50746Y-828D01* X-50743Y-794D01* X-50740Y-717D01* X-50040D01* X-50039Y-757D01* D02* G37* G36* X-52008D02* X-52002Y-828D01* X-51996Y-859D01* X-51990Y-886D01* X-51982Y-911D01* X-51972Y-932D01* X-51961Y-950D01* X-51948Y-965D01* X-51934Y-976D01* X-52782D01* X-52768Y-965D01* X-52755Y-950D01* X-52744Y-932D01* X-52735Y-911D01* X-52727Y-886D01* X-52720Y-859D01* X-52715Y-828D01* X-52711Y-794D01* X-52708Y-717D01* X-52008D01* X-52008Y-757D01* D02* G37* G36* X-53950Y-735D02* X-53949Y-775D01* X-53942Y-874D01* X-53938Y-900D01* X-53933Y-922D01* X-53927Y-941D01* X-53920Y-956D01* X-53912Y-968D01* X-53903Y-976D01* X-54751D01* X-54732Y-961D01* X-54714Y-943D01* X-54699Y-923D01* X-54686Y-899D01* X-54675Y-873D01* X-54666Y-844D01* X-54659Y-812D01* X-54654Y-777D01* X-54651Y-739D01* X-54650Y-699D01* X-53950Y-735D01* D02* G37* G36* X16405Y-372D02* X16383Y-409D01* X16364Y-454D01* X16347Y-507D01* X16332Y-568D01* X16321Y-636D01* X16305Y-797D01* X16301Y-889D01* X16300Y-988D01* X15300D01* X15299Y-889D01* X15279Y-636D01* X15268Y-568D01* X15253Y-507D01* X15236Y-454D01* X15217Y-409D01* X15195Y-372D01* X15170Y-343D01* X16430D01* X16405Y-372D01* D02* G37* G36* X-12709Y-3201D02* X-12737Y-3163D01* X-12769Y-3129D01* X-12804Y-3098D01* X-12843Y-3072D01* X-12885Y-3050D01* X-12930Y-3032D01* X-12978Y-3018D01* X-13030Y-3008D01* X-13085Y-3002D01* X-13143Y-3000D01* Y-2000D01* X-13085Y-1998D01* X-13030Y-1992D01* X-12978Y-1982D01* X-12930Y-1968D01* X-12885Y-1950D01* X-12843Y-1928D01* X-12804Y-1901D01* X-12769Y-1871D01* X-12737Y-1837D01* X-12709Y-1799D01* Y-3201D01* D02* G37* G36* X-64508Y-3035D02* X-64512Y-3068D01* X-64513Y-3099D01* X-64512Y-3128D01* X-64508Y-3156D01* X-64502Y-3181D01* X-64493Y-3205D01* X-64482Y-3226D01* X-64469Y-3246D01* X-64453Y-3264D01* X-64736Y-3547D01* X-64754Y-3531D01* X-64774Y-3518D01* X-64795Y-3507D01* X-64819Y-3498D01* X-64845Y-3492D01* X-64872Y-3488D01* X-64901Y-3487D01* X-64932Y-3488D01* X-64965Y-3492D01* X-65000Y-3498D01* X-64502Y-3000D01* X-64508Y-3035D01* D02* G37* G36* X-17036Y-3643D02* X-17105Y-3714D01* X-17270Y-3906D01* X-17310Y-3963D01* X-17343Y-4016D01* X-17368Y-4065D01* X-17386Y-4111D01* X-17397Y-4153D01* X-17400Y-4191D01* X-18291Y-3300D01* X-18253Y-3297D01* X-18211Y-3286D01* X-18165Y-3268D01* X-18116Y-3243D01* X-18063Y-3210D01* X-18006Y-3170D01* X-17882Y-3067D01* X-17814Y-3005D01* X-17743Y-2936D01* X-17036Y-3643D01* D02* G37* G36* X-32083Y-2595D02* X-32073Y-2680D01* X-32058Y-2755D01* X-32036Y-2820D01* X-32008Y-2875D01* X-31973Y-2920D01* X-31933Y-2955D01* X-31886Y-2980D01* X-31833Y-2995D01* X-31774Y-3000D01* Y-4000D01* X-31833Y-4005D01* X-31886Y-4020D01* X-31933Y-4045D01* X-31973Y-4080D01* X-32008Y-4125D01* X-32036Y-4180D01* X-32058Y-4245D01* X-32073Y-4320D01* X-32083Y-4405D01* X-32086Y-4500D01* Y-2500D01* X-32083Y-2595D01* D02* G37* G36* X-40191Y-6032D02* X-40224Y-6040D01* X-40253Y-6052D01* X-40278Y-6070D01* X-40299Y-6092D01* X-40316Y-6120D01* X-40330Y-6152D01* X-40339Y-6190D01* X-40345Y-6232D01* X-40347Y-6280D01* X-40747D01* X-40749Y-6232D01* X-40755Y-6190D01* X-40765Y-6152D01* X-40778Y-6120D01* X-40796Y-6092D01* X-40817Y-6070D01* X-40842Y-6052D01* X-40871Y-6040D01* X-40904Y-6032D01* X-40941Y-6030D01* X-40154D01* X-40191Y-6032D01* D02* G37* G36* X12737Y-6837D02* X12769Y-6871D01* X12804Y-6901D01* X12843Y-6928D01* X12885Y-6950D01* X12930Y-6968D01* X12978Y-6982D01* X13030Y-6992D01* X13085Y-6998D01* X13143Y-7000D01* Y-8000D01* X13085Y-8002D01* X13030Y-8008D01* X12978Y-8018D01* X12930Y-8032D01* X12885Y-8050D01* X12843Y-8072D01* X12804Y-8099D01* X12769Y-8129D01* X12737Y-8163D01* X12709Y-8201D01* Y-6799D01* X12737Y-6837D01* D02* G37* G36* X-57199Y-8794D02* X-57346Y-8944D01* X-58464Y-8586D01* X-58391Y-8605D01* X-58321Y-8617D01* X-58252Y-8620D01* X-58185Y-8616D01* X-58120Y-8604D01* X-58056Y-8584D01* X-57995Y-8556D01* X-57935Y-8521D01* X-57877Y-8477D01* X-57820Y-8425D01* X-57199Y-8794D01* D02* G37* G36* X11338Y-8482D02* X11253Y-8492D01* X11178Y-8507D01* X11113Y-8529D01* X11058Y-8557D01* X11013Y-8592D01* X10978Y-8632D01* X10953Y-8679D01* X10938Y-8732D01* X10933Y-8791D01* X9933D01* X9928Y-8732D01* X9913Y-8679D01* X9888Y-8632D01* X9853Y-8592D01* X9808Y-8557D01* X9753Y-8529D01* X9688Y-8507D01* X9613Y-8492D01* X9528Y-8482D01* X9433Y-8479D01* X11433D01* X11338Y-8482D01* D02* G37* G36* X-35550Y-9265D02* X-35601Y-9253D01* X-35653Y-9248D01* X-35704Y-9249D01* X-35755Y-9257D01* X-35806Y-9272D01* X-35857Y-9293D01* X-35907Y-9320D01* X-35958Y-9354D01* X-36008Y-9394D01* X-36059Y-9441D01* X-36341Y-9159D01* X-36294Y-9108D01* X-36254Y-9058D01* X-36220Y-9007D01* X-36193Y-8957D01* X-36172Y-8906D01* X-36157Y-8855D01* X-36149Y-8804D01* X-36148Y-8753D01* X-36153Y-8701D01* X-36165Y-8650D01* X-35550Y-9265D01* D02* G37* G36* X-29530Y-9567D02* X-29532Y-9530D01* X-29540Y-9497D01* X-29552Y-9468D01* X-29570Y-9443D01* X-29592Y-9422D01* X-29620Y-9404D01* X-29652Y-9391D01* X-29690Y-9381D01* X-29732Y-9375D01* X-29780Y-9373D01* Y-8973D01* X-29732Y-8971D01* X-29690Y-8965D01* X-29652Y-8956D01* X-29620Y-8942D01* X-29592Y-8925D01* X-29570Y-8904D01* X-29552Y-8879D01* X-29540Y-8850D01* X-29532Y-8817D01* X-29530Y-8780D01* Y-9567D01* D02* G37* G36* X-43343Y-11230D02* X-43372Y-11205D01* X-43409Y-11183D01* X-43454Y-11164D01* X-43507Y-11147D01* X-43568Y-11133D01* X-43636Y-11121D01* X-43797Y-11105D01* X-43889Y-11101D01* X-43988Y-11100D01* Y-10100D01* X-43889Y-10099D01* X-43636Y-10079D01* X-43568Y-10068D01* X-43507Y-10053D01* X-43454Y-10036D01* X-43409Y-10017D01* X-43372Y-9995D01* X-43343Y-9970D01* Y-11230D01* D02* G37* G36* X-31596Y-10954D02* X-31583Y-11027D01* X-31561Y-11101D01* X-31531Y-11176D01* X-31492Y-11253D01* X-31445Y-11331D01* X-31389Y-11411D01* X-31325Y-11491D01* X-31252Y-11574D01* X-31170Y-11657D01* X-32430D01* X-32348Y-11574D01* X-32211Y-11411D01* X-32155Y-11331D01* X-32107Y-11253D01* X-32069Y-11176D01* X-32039Y-11101D01* X-32017Y-11027D01* X-32004Y-10954D01* X-32000Y-10882D01* X-31600D01* X-31596Y-10954D01* D02* G37* G36* X-50999Y-11226D02* X-50981Y-11439D01* X-50964Y-11534D01* X-50942Y-11623D01* X-50915Y-11705D01* X-50883Y-11779D01* X-50846Y-11847D01* X-50804Y-11907D01* X-50756Y-11961D01* X-51039Y-12244D01* X-51093Y-12196D01* X-51153Y-12154D01* X-51221Y-12117D01* X-51295Y-12085D01* X-51377Y-12058D01* X-51466Y-12036D01* X-51561Y-12019D01* X-51664Y-12008D01* X-51774Y-12001D01* X-51891Y-12000D01* X-51000Y-11109D01* X-50999Y-11226D01* D02* G37* G36* X-56936Y-13737D02* X-56965Y-13713D01* X-57002Y-13692D01* X-57047Y-13672D01* X-57100Y-13656D01* X-57161Y-13642D01* X-57229Y-13631D01* X-57390Y-13615D01* X-57482Y-13611D01* X-57581Y-13610D01* X-57595Y-12610D01* X-57495Y-12609D01* X-57243Y-12589D01* X-57175Y-12577D01* X-57114Y-12562D01* X-57061Y-12545D01* X-57016Y-12525D01* X-56979Y-12503D01* X-56950Y-12477D01* X-56936Y-13737D01* D02* G37* G36* X-64503Y-13517D02* X-64499Y-13536D01* X-64491Y-13558D01* X-64478Y-13582D01* X-64461Y-13610D01* X-64439Y-13640D01* X-64381Y-13708D01* X-64305Y-13788D01* X-65297Y-14210D01* X-65343Y-14169D01* X-65393Y-14133D01* X-65450Y-14101D01* X-65512Y-14074D01* X-65579Y-14051D01* X-65652Y-14031D01* X-65731Y-14017D01* X-65815Y-14006D01* X-65905Y-14000D01* X-66000Y-13998D01* X-64502Y-13500D01* X-64503Y-13517D01* D02* G37* G36* X-50852Y-15226D02* X-50989Y-15390D01* X-51045Y-15469D01* X-51092Y-15547D01* X-51131Y-15624D01* X-51161Y-15699D01* X-51183Y-15773D01* X-51196Y-15846D01* X-51200Y-15917D01* X-51600D01* X-51604Y-15846D01* X-51617Y-15773D01* X-51639Y-15699D01* X-51669Y-15624D01* X-51708Y-15547D01* X-51755Y-15469D01* X-51811Y-15390D01* X-51875Y-15309D01* X-51948Y-15226D01* X-52030Y-15143D01* X-50770D01* X-50852Y-15226D01* D02* G37* G36* X-1497Y-15776D02* X-1473Y-16097D01* X-1453Y-16242D01* X-1426Y-16376D01* X-1393Y-16501D01* X-1392Y-16505D01* X-1378Y-16515D01* X-1346Y-16530D01* X-1310Y-16540D01* X-1380D01* X-1355Y-16615D01* X-1311Y-16718D01* X-1260Y-16812D01* X-1204Y-16895D01* X-2707D01* Y-18208D01* X-2766Y-18168D01* X-2860Y-18133D01* X-2960Y-18109D01* Y-18190D01* X-2970Y-18154D01* X-2985Y-18122D01* X-3001Y-18100D01* X-3152Y-18075D01* X-3584Y-18033D01* X-4493Y-18002D01* X-4866Y-18000D01* Y-17000D01* X-4493Y-16998D01* X-3001Y-16899D01* X-2985Y-16878D01* X-2970Y-16846D01* X-2960Y-16810D01* Y-16891D01* X-2860Y-16867D01* X-2766Y-16832D01* X-2743Y-16817D01* X-2740Y-16812D01* X-2689Y-16718D01* X-2645Y-16615D01* X-2620Y-16540D01* X-2690D01* X-2654Y-16530D01* X-2622Y-16515D01* X-2608Y-16505D01* X-2607Y-16501D01* X-2574Y-16376D01* X-2547Y-16242D01* X-2527Y-16097D01* X-2503Y-15776D01* X-2500Y-15600D01* X-1500D01* X-1497Y-15776D01* D02* G37* G36* X9502Y-15507D02* X9601Y-16999D01* X9622Y-17015D01* X9654Y-17030D01* X9690Y-17040D01* X9609D01* X9633Y-17141D01* X9668Y-17234D01* X9708Y-17293D01* X8292D01* X8332Y-17234D01* X8367Y-17141D01* X8391Y-17040D01* X8310D01* X8346Y-17030D01* X8378Y-17015D01* X8400Y-16998D01* X8425Y-16848D01* X8467Y-16416D01* X8498Y-15507D01* X8500Y-15134D01* X9500D01* X9502Y-15507D01* D02* G37* G36* X6003Y-15797D02* X6065Y-16736D01* X6094Y-16908D01* X6117Y-17011D01* X6122Y-17015D01* X6154Y-17030D01* X6190Y-17040D01* X6124D01* X6127Y-17056D01* X6166Y-17179D01* X6211Y-17277D01* X6260Y-17350D01* X4740D01* X4789Y-17277D01* X4834Y-17179D01* X4873Y-17056D01* X4876Y-17040D01* X4810D01* X4846Y-17030D01* X4878Y-17015D01* X4883Y-17011D01* X4906Y-16908D01* X4935Y-16736D01* X4977Y-16316D01* X4997Y-15797D01* X5000Y-15500D01* X6000D01* X6003Y-15797D01* D02* G37* G36* X-57468Y-18659D02* X-57460Y-18692D01* X-57448Y-18721D01* X-57430Y-18746D01* X-57408Y-18767D01* X-57380Y-18785D01* X-57348Y-18798D01* X-57310Y-18808D01* X-57268Y-18814D01* X-57220Y-18816D01* Y-19216D01* X-57268Y-19218D01* X-57310Y-19223D01* X-57348Y-19233D01* X-57380Y-19247D01* X-57408Y-19264D01* X-57430Y-19285D01* X-57448Y-19310D01* X-57460Y-19340D01* X-57468Y-19372D01* X-57470Y-19409D01* Y-18622D01* X-57468Y-18659D01* D02* G37* G36* X-64716Y-17914D02* X-64754Y-17993D01* X-64776Y-18076D01* X-64780Y-18163D01* X-64766Y-18253D01* X-64735Y-18347D01* X-64686Y-18444D01* X-64620Y-18545D01* X-64536Y-18650D01* X-64435Y-18758D01* X-65054Y-19553D01* X-65170Y-19444D01* X-65281Y-19354D01* X-65386Y-19284D01* X-65486Y-19232D01* X-65581Y-19200D01* X-65670Y-19187D01* X-65754Y-19194D01* X-65832Y-19220D01* X-65906Y-19265D01* X-65973Y-19329D01* X-64659Y-17839D01* X-64716Y-17914D01* D02* G37* G36* X-56427Y-19646D02* X-56511Y-19564D01* X-56674Y-19426D01* X-56753Y-19371D01* X-56831Y-19323D01* X-56908Y-19285D01* X-56984Y-19254D01* X-57058Y-19233D01* X-57130Y-19220D01* X-57202Y-19216D01* Y-18816D01* X-57130Y-18812D01* X-57058Y-18799D01* X-56984Y-18777D01* X-56908Y-18747D01* X-56831Y-18708D01* X-56753Y-18661D01* X-56674Y-18605D01* X-56593Y-18541D01* X-56511Y-18467D01* X-56427Y-18386D01* Y-19646D01* D02* G37* G36* X-21828Y-18695D02* X-21791Y-18717D01* X-21746Y-18736D01* X-21693Y-18753D01* X-21632Y-18767D01* X-21564Y-18779D01* X-21403Y-18795D01* X-21311Y-18799D01* X-21212Y-18800D01* Y-19800D01* X-21311Y-19801D01* X-21564Y-19821D01* X-21632Y-19832D01* X-21693Y-19847D01* X-21746Y-19864D01* X-21791Y-19883D01* X-21828Y-19905D01* X-21857Y-19930D01* Y-18670D01* X-21828Y-18695D01* D02* G37* G36* X-17391Y-19895D02* X-17283Y-19982D01* X-17180Y-20051D01* X-17081Y-20101D01* X-16987Y-20132D01* X-16897Y-20145D01* X-16812Y-20140D01* X-16731Y-20117D01* X-16655Y-20075D01* X-16583Y-20014D01* X-17986Y-21417D01* X-17925Y-21345D01* X-17883Y-21269D01* X-17860Y-21188D01* X-17855Y-21103D01* X-17868Y-21013D01* X-17899Y-20919D01* X-17949Y-20820D01* X-18018Y-20717D01* X-18105Y-20609D01* X-18210Y-20497D01* X-17503Y-19790D01* X-17391Y-19895D01* D02* G37* G36* X-16346Y-21970D02* X-16378Y-21985D01* X-16407Y-22006D01* X-16432Y-22032D01* X-16452Y-22063D01* X-16469Y-22099D01* X-16483Y-22141D01* X-16492Y-22188D01* X-16498Y-22240D01* X-16500Y-22298D01* X-17500D01* X-17502Y-22240D01* X-17508Y-22188D01* X-17517Y-22141D01* X-17530Y-22099D01* X-17548Y-22063D01* X-17569Y-22032D01* X-17593Y-22006D01* X-17622Y-21985D01* X-17654Y-21970D01* X-17690Y-21960D01* X-16310D01* X-16346Y-21970D01* D02* G37* G36* X-51993Y-19690D02* X-51972Y-19881D01* X-51936Y-20066D01* X-51887Y-20246D01* X-51823Y-20420D01* X-51745Y-20587D01* X-51653Y-20749D01* X-51547Y-20905D01* X-51490Y-20978D01* X-51447Y-21009D01* X-51389Y-21046D01* X-51335Y-21076D01* X-51283Y-21097D01* X-51236Y-21110D01* X-51191Y-21115D01* X-51150Y-21113D01* X-51329Y-21359D01* X-51553Y-22354D01* X-51638Y-22279D01* X-51714Y-22233D01* X-51781Y-22216D01* X-51839Y-22228D01* X-51888Y-22269D01* X-51929Y-22339D01* X-51960Y-22437D01* X-51982Y-22565D01* X-51995Y-22722D01* X-52000Y-22907D01* X-53000Y-20700D01* X-52000Y-19493D01* X-51993Y-19690D01* D02* G37* G36* X-16498Y-23260D02* X-16492Y-23312D01* X-16483Y-23359D01* X-16469Y-23401D01* X-16452Y-23437D01* X-16432Y-23468D01* X-16407Y-23494D01* X-16378Y-23515D01* X-16346Y-23530D01* X-16310Y-23540D01* X-17690D01* X-17654Y-23530D01* X-17622Y-23515D01* X-17593Y-23494D01* X-17569Y-23468D01* X-17548Y-23437D01* X-17530Y-23401D01* X-17517Y-23359D01* X-17508Y-23312D01* X-17502Y-23260D01* X-17500Y-23202D01* X-16500D01* X-16498Y-23260D01* D02* G37* G36* X-64435Y-25442D02* X-64476Y-25489D01* X-64512Y-25544D01* X-64543Y-25607D01* X-64571Y-25678D01* X-64594Y-25758D01* X-64613Y-25846D01* X-64628Y-25943D01* X-64645Y-26160D01* X-64647Y-26281D01* X-65187Y-24659D01* X-65166Y-24661D01* X-65142Y-24658D01* X-65117Y-24650D01* X-65089Y-24638D01* X-65058Y-24621D01* X-65026Y-24600D01* X-64991Y-24573D01* X-64915Y-24507D01* X-64874Y-24467D01* X-64435Y-25442D01* D02* G37* G36* X-16346Y-25470D02* X-16378Y-25485D01* X-16407Y-25506D01* X-16432Y-25532D01* X-16452Y-25563D01* X-16469Y-25600D01* X-16483Y-25641D01* X-16492Y-25688D01* X-16498Y-25740D01* X-16500Y-25798D01* X-17500D01* X-17502Y-25740D01* X-17508Y-25688D01* X-17517Y-25641D01* X-17530Y-25600D01* X-17548Y-25563D01* X-17569Y-25532D01* X-17593Y-25506D01* X-17622Y-25485D01* X-17654Y-25470D01* X-17690Y-25460D01* X-16310D01* X-16346Y-25470D01* D02* G37* G36* X-449Y-23405D02* X-344Y-23530D01* X-309Y-23583D01* X-286Y-23629D01* X-275Y-23668D01* X-276Y-23700D01* X-289Y-23726D01* X-314Y-23744D01* X-350Y-23756D01* X-940Y-26665D01* X-945Y-26485D01* X-978Y-26155D01* X-1008Y-26005D01* X-1046Y-25865D01* X-1093Y-25735D01* X-1148Y-25615D01* X-1212Y-25505D01* X-1284Y-25405D01* X-1364Y-25315D01* X-519Y-23332D01* X-449Y-23405D01* D02* G37* G36* X-16498Y-26760D02* X-16492Y-26812D01* X-16483Y-26859D01* X-16469Y-26901D01* X-16452Y-26937D01* X-16432Y-26968D01* X-16407Y-26994D01* X-16378Y-27015D01* X-16346Y-27030D01* X-16310Y-27040D01* X-17690D01* X-17654Y-27030D01* X-17622Y-27015D01* X-17593Y-26994D01* X-17569Y-26968D01* X-17548Y-26937D01* X-17530Y-26901D01* X-17517Y-26859D01* X-17508Y-26812D01* X-17502Y-26760D01* X-17500Y-26702D01* X-16500D01* X-16498Y-26760D01* D02* G37* G36* X-940Y-26665D02* X559Y-27243D01* X460Y-27210D01* X362Y-27190D01* X266Y-27182D01* X171Y-27186D01* X79Y-27202D01* X-12Y-27231D01* X-102Y-27272D01* X-189Y-27324D01* X-276Y-27390D01* X-360Y-27467D01* X-1152Y-26845D01* X-1113Y-26806D01* X-950Y-26664D01* X-943Y-26662D01* X-940Y-26665D01* D02* G37* G36* X-62530Y-27283D02* X-62532Y-27246D01* X-62540Y-27213D01* X-62552Y-27185D01* X-62570Y-27159D01* X-62592Y-27138D01* X-62620Y-27121D01* X-62652Y-27107D01* X-62690Y-27097D01* X-62732Y-27092D01* X-62780Y-27090D01* Y-26690D01* X-62732Y-26688D01* X-62690Y-26682D01* X-62652Y-26672D01* X-62620Y-26659D01* X-62592Y-26641D01* X-62570Y-26620D01* X-62552Y-26595D01* X-62540Y-26566D01* X-62532Y-26533D01* X-62530Y-26496D01* Y-27283D01* D02* G37* G36* X-29530Y-27283D02* X-29532Y-27246D01* X-29540Y-27213D01* X-29552Y-27185D01* X-29570Y-27159D01* X-29592Y-27138D01* X-29620Y-27121D01* X-29652Y-27107D01* X-29690Y-27097D01* X-29732Y-27092D01* X-29780Y-27090D01* Y-26690D01* X-29732Y-26688D01* X-29690Y-26682D01* X-29652Y-26672D01* X-29620Y-26659D01* X-29592Y-26641D01* X-29570Y-26620D01* X-29552Y-26595D01* X-29540Y-26566D01* X-29532Y-26533D01* X-29530Y-26496D01* Y-27283D01* D02* G37* G36* X-12075Y-27655D02* X-12117Y-27731D01* X-12140Y-27812D01* X-12145Y-27897D01* X-12132Y-27987D01* X-12101Y-28081D01* X-12051Y-28180D01* X-11982Y-28283D01* X-11895Y-28390D01* X-11790Y-28503D01* X-12497Y-29210D01* X-12609Y-29105D01* X-12717Y-29018D01* X-12820Y-28949D01* X-12919Y-28899D01* X-13013Y-28868D01* X-13103Y-28855D01* X-13188Y-28860D01* X-13269Y-28883D01* X-13345Y-28925D01* X-13417Y-28986D01* X-12014Y-27583D01* X-12075Y-27655D01* D02* G37* G36* X-62530Y-29252D02* X-62532Y-29215D01* X-62540Y-29182D01* X-62552Y-29153D01* X-62570Y-29128D01* X-62592Y-29107D01* X-62620Y-29089D01* X-62652Y-29076D01* X-62690Y-29066D01* X-62732Y-29060D01* X-62780Y-29058D01* Y-28658D01* X-62732Y-28656D01* X-62690Y-28651D01* X-62652Y-28641D01* X-62620Y-28627D01* X-62592Y-28610D01* X-62570Y-28589D01* X-62552Y-28563D01* X-62540Y-28534D01* X-62532Y-28502D01* X-62530Y-28465D01* Y-29252D01* D02* G37* G36* X-21518Y-7680D02* Y-12400D01* X-21448Y-12751D01* X-21249Y-13049D01* X-16149Y-18149D01* X-15851Y-18348D01* X-15500Y-18418D01* X-4905D01* X-4868Y-18433D01* X-4502Y-18435D01* X-3612Y-18465D01* X-3427Y-18483D01* Y-23265D01* X-3427Y-23265D01* X-3319Y-23812D01* X-3009Y-24275D01* X-1691Y-25594D01* X-1687Y-25604D01* X-1622Y-25677D01* X-1576Y-25741D01* X-1533Y-25814D01* X-1494Y-25899D01* X-1460Y-25995D01* X-1430Y-26104D01* X-1407Y-26219D01* X-1382Y-26466D01* X-1398Y-26481D01* X-1405Y-26493D01* X-1418Y-26499D01* X-1457Y-26538D01* X-1468Y-26564D01* X-1493Y-26578D01* X-1500Y-26602D01* X-3680Y-28782D01* X-6000D01* X-6351Y-28852D01* X-6649Y-29051D01* X-9700Y-32102D01* X-10200Y-31895D01* Y-31641D01* X-10398Y-31164D01* X-10517Y-31045D01* X-10519Y-31028D01* X-10520Y-31019D01* X-10521Y-31014D01* X-10522Y-31007D01* X-10531Y-30993D01* X-10536Y-30977D01* X-10543Y-30946D01* X-10549Y-30910D01* X-10566Y-30692D01* X-10567Y-30606D01* X-10582Y-30570D01* Y-29500D01* X-10652Y-29149D01* X-10851Y-28851D01* X-11462Y-28241D01* X-11474Y-28206D01* X-11569Y-28106D01* X-11582Y-28089D01* Y-27586D01* X-11581Y-27583D01* X-11582Y-27581D01* Y-27500D01* X-11652Y-27149D01* X-11851Y-26851D01* X-12149Y-26652D01* X-12500Y-26582D01* X-13500D01* X-13851Y-26652D01* X-14149Y-26851D01* X-14348Y-27149D01* X-14418Y-27500D01* Y-28500D01* X-14348Y-28851D01* X-14149Y-29149D01* X-13851Y-29348D01* X-13500Y-29418D01* X-13419D01* X-13417Y-29419D01* X-13415Y-29418D01* X-12911D01* X-12894Y-29431D01* X-12794Y-29526D01* X-12759Y-29538D01* X-12418Y-29880D01* Y-30570D01* X-12433Y-30606D01* X-12434Y-30699D01* X-12437Y-30773D01* X-12450Y-30906D01* X-12457Y-30946D01* X-12464Y-30977D01* X-12470Y-30993D01* X-12477Y-31007D01* X-12479Y-31014D01* X-12481Y-31019D01* X-12481Y-31028D01* X-12483Y-31045D01* X-12602Y-31164D01* X-12800Y-31641D01* Y-32159D01* X-12602Y-32636D01* X-12236Y-33002D01* X-12386Y-33481D01* X-12468Y-33582D01* X-24155D01* X-24188Y-33567D01* X-24207Y-33567D01* X-24209Y-33563D01* X-24234Y-33503D01* X-24255Y-33495D01* X-24351Y-33351D01* X-24649Y-33152D01* X-25000Y-33082D01* X-25081D01* X-25083Y-33081D01* X-25085Y-33082D01* X-25589D01* X-25606Y-33069D01* X-25706Y-32974D01* X-25741Y-32962D01* X-26082Y-32620D01* Y-31852D01* X-26064Y-31850D01* X-25986Y-31847D01* X-25984Y-31846D01* X-24900D01* X-24510Y-31769D01* X-24179Y-31548D01* X-23958Y-31217D01* X-23880Y-30827D01* X-23958Y-30437D01* X-24179Y-30106D01* X-24510Y-29885D01* X-24900Y-29807D01* X-29100D01* X-29490Y-29885D01* X-29821Y-30106D01* X-29951Y-30300D01* X-30451Y-30148D01* Y-28369D01* X-29744Y-27662D01* X-29490Y-27832D01* X-29100Y-27909D01* X-24900D01* X-24510Y-27832D01* X-24179Y-27611D01* X-23958Y-27280D01* X-23880Y-26890D01* X-23958Y-26500D01* X-24179Y-26169D01* Y-25642D01* X-23958Y-25311D01* X-23880Y-24921D01* X-23958Y-24531D01* X-24179Y-24200D01* Y-23674D01* X-23958Y-23343D01* X-23880Y-22953D01* X-23958Y-22563D01* X-24179Y-22232D01* Y-21705D01* X-23958Y-21374D01* X-23880Y-20984D01* X-23958Y-20594D01* X-23848Y-20088D01* X-23602Y-20036D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21644Y-20283D01* X-21628Y-20281D01* X-21619Y-20280D01* X-21614Y-20279D01* X-21607Y-20278D01* X-21593Y-20269D01* X-21577Y-20264D01* X-21546Y-20257D01* X-21510Y-20251D01* X-21292Y-20234D01* X-21206Y-20233D01* X-21170Y-20218D01* X-19080D01* X-18538Y-20759D01* X-18526Y-20794D01* X-18431Y-20894D01* X-18418Y-20911D01* Y-21415D01* X-18418Y-21417D01* X-18418Y-21419D01* Y-21500D01* X-18348Y-21851D01* X-18149Y-22149D01* X-18005Y-22245D01* X-17997Y-22266D01* X-17937Y-22291D01* X-17933Y-22293D01* X-17933Y-22312D01* X-17918Y-22345D01* Y-23155D01* X-17933Y-23188D01* X-17933Y-23207D01* X-17937Y-23209D01* X-17997Y-23234D01* X-18005Y-23255D01* X-18149Y-23351D01* X-18348Y-23649D01* X-18418Y-24000D01* Y-25000D01* X-18348Y-25351D01* X-18149Y-25649D01* X-18005Y-25745D01* X-17997Y-25766D01* X-17937Y-25791D01* X-17933Y-25793D01* X-17933Y-25812D01* X-17918Y-25845D01* Y-26655D01* X-17933Y-26688D01* X-17933Y-26707D01* X-17937Y-26709D01* X-17997Y-26734D01* X-18005Y-26755D01* X-18149Y-26851D01* X-18348Y-27149D01* X-18418Y-27500D01* Y-28500D01* X-18348Y-28851D01* X-18149Y-29149D01* X-17851Y-29348D01* X-17500Y-29418D01* X-16500D01* X-16149Y-29348D01* X-15851Y-29149D01* X-15652Y-28851D01* X-15582Y-28500D01* Y-27500D01* X-15652Y-27149D01* X-15851Y-26851D01* X-15995Y-26755D01* X-16003Y-26734D01* X-16063Y-26709D01* X-16067Y-26707D01* X-16067Y-26688D01* X-16082Y-26655D01* Y-25845D01* X-16067Y-25812D01* X-16067Y-25793D01* X-16063Y-25791D01* X-16003Y-25766D01* X-15995Y-25745D01* X-15851Y-25649D01* X-15652Y-25351D01* X-15582Y-25000D01* Y-24000D01* X-15652Y-23649D01* X-15851Y-23351D01* X-15995Y-23255D01* X-16003Y-23234D01* X-16063Y-23209D01* X-16067Y-23207D01* X-16067Y-23188D01* X-16082Y-23155D01* Y-22345D01* X-16067Y-22312D01* X-16067Y-22293D01* X-16063Y-22291D01* X-16003Y-22266D01* X-15995Y-22245D01* X-15851Y-22149D01* X-15652Y-21851D01* X-15582Y-21500D01* Y-20500D01* X-15652Y-20149D01* X-15851Y-19851D01* X-16149Y-19652D01* X-16500Y-19582D01* X-16581D01* X-16583Y-19581D01* X-16586Y-19582D01* X-17089D01* X-17106Y-19569D01* X-17206Y-19475D01* X-17241Y-19462D01* X-18051Y-18651D01* X-18349Y-18452D01* X-18700Y-18382D01* X-21170D01* X-21206Y-18367D01* X-21299Y-18366D01* X-21373Y-18363D01* X-21506Y-18350D01* X-21546Y-18343D01* X-21577Y-18336D01* X-21593Y-18330D01* X-21607Y-18323D01* X-21614Y-18321D01* X-21619Y-18319D01* X-21628Y-18319D01* X-21644Y-18317D01* X-21764Y-18198D01* X-22241Y-18000D01* X-22759D01* X-23236Y-18198D01* X-23507Y-18469D01* X-23533Y-18478D01* X-23942Y-18471D01* X-24088Y-18431D01* X-24179Y-18295D01* Y-17768D01* X-23958Y-17437D01* X-23880Y-17047D01* X-23958Y-16657D01* X-24179Y-16326D01* Y-15800D01* X-23958Y-15469D01* X-23880Y-15079D01* X-23958Y-14689D01* X-24179Y-14358D01* Y-13831D01* X-23958Y-13500D01* X-23880Y-13110D01* X-23958Y-12720D01* X-24179Y-12389D01* Y-11863D01* X-23958Y-11532D01* X-23880Y-11142D01* X-23958Y-10752D01* X-24179Y-10421D01* Y-9894D01* X-23958Y-9563D01* X-23880Y-9173D01* X-23958Y-8783D01* X-24179Y-8452D01* X-24510Y-8231D01* X-24900Y-8154D01* X-29100D01* X-29490Y-8231D01* X-29821Y-8452D01* X-29835Y-8473D01* X-29836Y-8474D01* X-29837Y-8477D01* X-29869Y-8524D01* X-30173D01* X-30632Y-8714D01* X-31256Y-9337D01* X-31756Y-9130D01* Y-6027D01* X-31731Y-5990D01* X-31654Y-5600D01* Y-4516D01* X-31653Y-4514D01* X-31650Y-4436D01* X-31648Y-4418D01* X-24780D01* X-21518Y-7680D01* D02* G37* G36* X-68290Y-30997D02* X-68396Y-31109D01* X-68482Y-31217D01* X-68551Y-31320D01* X-68601Y-31419D01* X-68632Y-31513D01* X-68645Y-31603D01* X-68640Y-31688D01* X-68617Y-31769D01* X-68575Y-31845D01* X-68514Y-31917D01* X-69917Y-30514D01* X-69845Y-30575D01* X-69769Y-30617D01* X-69688Y-30640D01* X-69603Y-30645D01* X-69513Y-30632D01* X-69419Y-30601D01* X-69320Y-30551D01* X-69217Y-30482D01* X-69109Y-30395D01* X-68997Y-30290D01* X-68290Y-30997D01* D02* G37* G36* X-10999Y-30711D02* X-10979Y-30964D01* X-10967Y-31032D01* X-10953Y-31093D01* X-10936Y-31146D01* X-10917Y-31191D01* X-10895Y-31228D01* X-10870Y-31257D01* X-12130D01* X-12105Y-31228D01* X-12083Y-31191D01* X-12064Y-31146D01* X-12047Y-31093D01* X-12032Y-31032D01* X-12021Y-30964D01* X-12005Y-30803D01* X-12001Y-30711D01* X-12000Y-30612D01* X-11000D01* X-10999Y-30711D01* D02* G37* G36* X-59320Y-31416D02* X-59560Y-31435D01* X-59666Y-31450D01* X-59763Y-31470D01* X-59850Y-31495D01* X-59928Y-31524D01* X-59996Y-31558D01* X-60055Y-31596D01* X-60105Y-31638D01* X-61519D01* X-61483Y-31596D01* X-61467Y-31558D01* X-61469Y-31524D01* X-61490Y-31495D01* X-61530Y-31470D01* X-61589Y-31450D01* X-61667Y-31435D01* X-61764Y-31423D01* X-61879Y-31416D01* X-62014Y-31414D01* X-59185D01* X-59320Y-31416D01* D02* G37* G36* X-26095Y-31417D02* X-26180Y-31427D01* X-26255Y-31442D01* X-26320Y-31464D01* X-26375Y-31492D01* X-26420Y-31527D01* X-26455Y-31567D01* X-26480Y-31614D01* X-26495Y-31667D01* X-26500Y-31726D01* X-27500D01* X-27505Y-31667D01* X-27520Y-31614D01* X-27545Y-31567D01* X-27580Y-31527D01* X-27625Y-31492D01* X-27680Y-31464D01* X-27745Y-31442D01* X-27820Y-31427D01* X-27905Y-31417D01* X-28000Y-31414D01* X-26000D01* X-26095Y-31417D01* D02* G37* G36* X-50835Y-30978D02* X-50653Y-31105D01* X-50566Y-31157D01* X-50482Y-31201D01* X-50402Y-31236D01* X-50325Y-31264D01* X-50251Y-31284D01* X-50179Y-31296D01* X-50112Y-31300D01* X-50066Y-31700D01* X-50139Y-31705D01* X-50213Y-31718D01* X-50286Y-31741D01* X-50359Y-31773D01* X-50432Y-31814D01* X-50504Y-31864D01* X-50577Y-31923D01* X-50648Y-31991D01* X-50720Y-32068D01* X-50791Y-32155D01* X-50931Y-30902D01* X-50835Y-30978D01* D02* G37* G36* X-65138Y-32487D02* X-65172Y-32491D01* X-65202Y-32497D01* X-65228Y-32507D01* X-65250Y-32519D01* X-65268Y-32533D01* X-65282Y-32550D01* X-65292Y-32570D01* X-65298Y-32592D01* X-65300Y-32618D01* X-65700D01* X-65702Y-32592D01* X-65708Y-32570D01* X-65718Y-32550D01* X-65732Y-32533D01* X-65750Y-32519D01* X-65772Y-32507D01* X-65798Y-32497D01* X-65828Y-32491D01* X-65862Y-32487D01* X-65900Y-32486D01* X-65100D01* X-65138Y-32487D01* D02* G37* G36* X-37979Y-32457D02* X-38000Y-32494D01* X-38018Y-32539D01* X-38034Y-32592D01* X-38048Y-32653D01* X-38059Y-32721D01* X-38074Y-32882D01* X-38079Y-33074D01* X-39079Y-33102D01* X-39080Y-33002D01* X-39101Y-32750D01* X-39113Y-32682D01* X-39128Y-32622D01* X-39145Y-32569D01* X-39166Y-32524D01* X-39189Y-32487D01* X-39215Y-32457D01* X-37955Y-32428D01* X-37979Y-32457D01* D02* G37* G36* X-61498Y-33260D02* X-61492Y-33312D01* X-61483Y-33359D01* X-61470Y-33400D01* X-61452Y-33437D01* X-61431Y-33468D01* X-61407Y-33494D01* X-61378Y-33515D01* X-61346Y-33530D01* X-61310Y-33540D01* X-62690D01* X-62654Y-33530D01* X-62622Y-33515D01* X-62593Y-33494D01* X-62569Y-33468D01* X-62548Y-33437D01* X-62530Y-33400D01* X-62517Y-33359D01* X-62508Y-33312D01* X-62502Y-33260D01* X-62500Y-33202D01* X-61500D01* X-61498Y-33260D01* D02* G37* G36* X-44282Y-33768D02* X-44276Y-33810D01* X-44267Y-33848D01* X-44253Y-33880D01* X-44236Y-33908D01* X-44215Y-33930D01* X-44190Y-33948D01* X-44161Y-33960D01* X-44128Y-33968D01* X-44091Y-33970D01* X-44878D01* X-44841Y-33968D01* X-44808Y-33960D01* X-44779Y-33948D01* X-44754Y-33930D01* X-44733Y-33908D01* X-44715Y-33880D01* X-44702Y-33848D01* X-44692Y-33810D01* X-44686Y-33768D01* X-44684Y-33720D01* X-44284D01* X-44282Y-33768D01* D02* G37* G36* X-46251D02* X-46245Y-33810D01* X-46235Y-33848D01* X-46222Y-33880D01* X-46204Y-33908D01* X-46183Y-33930D01* X-46158Y-33948D01* X-46129Y-33960D01* X-46096Y-33968D01* X-46059Y-33970D01* X-46846D01* X-46809Y-33968D01* X-46777Y-33960D01* X-46747Y-33948D01* X-46722Y-33930D01* X-46701Y-33908D01* X-46684Y-33880D01* X-46670Y-33848D01* X-46661Y-33810D01* X-46655Y-33768D01* X-46653Y-33720D01* X-46253D01* X-46251Y-33768D01* D02* G37* G36* X-65298Y-33907D02* X-65292Y-33930D01* X-65282Y-33950D01* X-65268Y-33967D01* X-65250Y-33981D01* X-65228Y-33993D01* X-65202Y-34003D01* X-65172Y-34009D01* X-65138Y-34013D01* X-65100Y-34014D01* X-65900D01* X-65862Y-34013D01* X-65828Y-34009D01* X-65798Y-34003D01* X-65772Y-33993D01* X-65750Y-33981D01* X-65732Y-33967D01* X-65718Y-33950D01* X-65708Y-33930D01* X-65702Y-33907D01* X-65700Y-33882D01* X-65300D01* X-65298Y-33907D01* D02* G37* G36* X-42516Y-33801D02* X-43030Y-34133D01* X-42999Y-34110D01* X-42974Y-34087D01* X-42956Y-34064D01* X-42944Y-34039D01* X-42939Y-34014D01* X-42939Y-33988D01* X-42946Y-33962D01* X-42959Y-33935D01* X-42979Y-33907D01* X-43005Y-33878D01* X-42601Y-33716D01* X-42516Y-33801D01* D02* G37* G36* X-35977Y-34050D02* X-36003Y-34079D01* X-36025Y-34116D01* X-36045Y-34161D01* X-36062Y-34214D01* X-36077Y-34275D01* X-36089Y-34343D01* X-36105Y-34504D01* X-36109Y-34595D01* X-36110Y-34695D01* X-37110Y-34681D01* X-37111Y-34582D01* X-37131Y-34329D01* X-37142Y-34261D01* X-37156Y-34200D01* X-37172Y-34147D01* X-37192Y-34102D01* X-37213Y-34065D01* X-37237Y-34036D01* X-35977Y-34050D01* D02* G37* G36* X-39942Y-34225D02* X-39964Y-34262D01* X-39984Y-34307D01* X-40001Y-34360D01* X-40015Y-34421D01* X-40027Y-34489D01* X-40042Y-34649D01* X-40046Y-34741D01* X-40047Y-34841D01* X-41047D01* X-41049Y-34741D01* X-41068Y-34489D01* X-41080Y-34421D01* X-41094Y-34360D01* X-41111Y-34307D01* X-41131Y-34262D01* X-41153Y-34225D01* X-41177Y-34196D01* X-39917D01* X-39942Y-34225D01* D02* G37* G36* X-25890Y-33395D02* X-25783Y-33482D01* X-25680Y-33551D01* X-25581Y-33601D01* X-25487Y-33632D01* X-25397Y-33645D01* X-25312Y-33640D01* X-25231Y-33617D01* X-25155Y-33575D01* X-25083Y-33514D01* X-26486Y-34917D01* X-26425Y-34845D01* X-26383Y-34769D01* X-26360Y-34688D01* X-26355Y-34603D01* X-26368Y-34513D01* X-26399Y-34419D01* X-26449Y-34320D01* X-26518Y-34217D01* X-26605Y-34110D01* X-26710Y-33997D01* X-26003Y-33290D01* X-25890Y-33395D01* D02* G37* G36* X-54914Y-37315D02* X-54917Y-37180D01* X-54935Y-36940D01* X-54950Y-36834D01* X-54970Y-36737D01* X-54995Y-36650D01* X-55024Y-36572D01* X-55058Y-36504D01* X-55096Y-36445D01* X-55138Y-36395D01* Y-34981D01* X-55096Y-35017D01* X-55058Y-35033D01* X-55024Y-35031D01* X-54995Y-35010D01* X-54970Y-34970D01* X-54950Y-34911D01* X-54935Y-34833D01* X-54923Y-34736D01* X-54917Y-34621D01* X-54914Y-34486D01* Y-37315D01* D02* G37* G36* X-24530Y-33846D02* X-24515Y-33878D01* X-24494Y-33907D01* X-24468Y-33931D01* X-24437Y-33952D01* X-24400Y-33970D01* X-24359Y-33983D01* X-24312Y-33992D01* X-24260Y-33998D01* X-24202Y-34000D01* Y-35000D01* X-24260Y-35002D01* X-24312Y-35008D01* X-24359Y-35017D01* X-24400Y-35030D01* X-24437Y-35048D01* X-24468Y-35069D01* X-24494Y-35093D01* X-24515Y-35122D01* X-24530Y-35154D01* X-24540Y-35190D01* Y-33810D01* X-24530Y-33846D01* D02* G37* G36* X-61030D02* X-61015Y-33878D01* X-60994Y-33907D01* X-60968Y-33931D01* X-60937Y-33952D01* X-60900Y-33970D01* X-60859Y-33983D01* X-60812Y-33992D01* X-60760Y-33998D01* X-60702Y-34000D01* Y-35000D01* X-60760Y-35002D01* X-60812Y-35008D01* X-60859Y-35017D01* X-60900Y-35030D01* X-60937Y-35048D01* X-60968Y-35069D01* X-60994Y-35093D01* X-61015Y-35122D01* X-61030Y-35154D01* X-61040Y-35190D01* Y-33810D01* X-61030Y-33846D01* D02* G37* G36* X-6233Y-35329D02* X-8248D01* X-8246Y-35322D01* X-8245Y-35303D01* X-8241Y-35030D01* X-8240Y-34724D01* X-6240D01* X-6233Y-35329D01* D02* G37* G36* X1300Y-34807D02* X1299Y-34912D01* X1274Y-35297D01* X1267Y-35319D01* X1258Y-35330D01* X1248Y-35329D01* X-768D01* X-755Y-35314D01* X-743Y-35289D01* X-733Y-35252D01* X-724Y-35204D01* X-717Y-35145D01* X-706Y-34994D01* X-700Y-34684D01* X1300Y-34807D01* D02* G37* G36* X-9593Y-34000D02* X-9727Y-34144D01* X-9848Y-34295D01* X-9954Y-34451D01* X-10045Y-34613D01* X-10123Y-34780D01* X-10187Y-34954D01* X-10236Y-35133D01* X-10272Y-35319D01* X-10293Y-35510D01* X-10300Y-35707D01* X-11300Y-36000D01* X-11310Y-35810D01* X-11340Y-35640D01* X-11390Y-35490D01* X-11460Y-35360D01* X-11550Y-35250D01* X-11660Y-35160D01* X-11790Y-35090D01* X-11940Y-35040D01* X-12110Y-35010D01* X-12300Y-35000D01* X-12007Y-34000D01* X-11810Y-33993D01* X-11619Y-33972D01* X-11434Y-33936D01* X-11254Y-33887D01* X-11080Y-33823D01* X-10913Y-33745D01* X-10751Y-33654D01* X-10595Y-33547D01* X-10444Y-33427D01* X-10300Y-33293D01* X-9593Y-34000D01* D02* G37* G36* X-64508Y-35535D02* X-64512Y-35568D01* X-64513Y-35599D01* X-64512Y-35628D01* X-64508Y-35656D01* X-64502Y-35681D01* X-64493Y-35705D01* X-64482Y-35726D01* X-64469Y-35746D01* X-64453Y-35764D01* X-64736Y-36047D01* X-64754Y-36031D01* X-64774Y-36018D01* X-64795Y-36007D01* X-64819Y-35998D01* X-64845Y-35992D01* X-64872Y-35988D01* X-64901Y-35987D01* X-64932Y-35988D01* X-64965Y-35992D01* X-65000Y-35998D01* X-64502Y-35500D01* X-64508Y-35535D01* D02* G37* G36* X-57643Y-37630D02* X-57726Y-37548D01* X-57889Y-37411D01* X-57969Y-37355D01* X-58047Y-37308D01* X-58124Y-37269D01* X-58199Y-37239D01* X-58274Y-37217D01* X-58346Y-37204D01* X-58417Y-37200D01* Y-36800D01* X-58346Y-36796D01* X-58274Y-36783D01* X-58199Y-36761D01* X-58124Y-36731D01* X-58047Y-36693D01* X-57969Y-36645D01* X-57889Y-36589D01* X-57809Y-36525D01* X-57726Y-36452D01* X-57643Y-36370D01* Y-37630D01* D02* G37* G36* X-32317Y-39032D02* X-32350Y-39040D01* X-32379Y-39052D01* X-32404Y-39070D01* X-32425Y-39092D01* X-32442Y-39120D01* X-32456Y-39152D01* X-32465Y-39190D01* X-32471Y-39232D01* X-32473Y-39280D01* X-32873D01* X-32875Y-39232D01* X-32881Y-39190D01* X-32891Y-39152D01* X-32904Y-39120D01* X-32922Y-39092D01* X-32943Y-39070D01* X-32968Y-39052D01* X-32997Y-39040D01* X-33030Y-39032D01* X-33067Y-39030D01* X-32280D01* X-32317Y-39032D01* D02* G37* G36* X-64661Y-39362D02* X-64670Y-39372D01* X-64676Y-39383D01* X-64679Y-39395D01* X-64680Y-39408D01* X-64677Y-39422D01* X-64670Y-39436D01* X-64661Y-39451D01* X-64649Y-39467D01* X-64634Y-39484D01* X-65100Y-39582D01* X-65128Y-39557D01* X-65158Y-39535D01* X-65190Y-39517D01* X-65224Y-39502D01* X-65260Y-39491D01* X-65298Y-39483D01* X-65337Y-39478D01* X-65379Y-39477D01* X-65422Y-39480D01* X-65468Y-39486D01* X-64648Y-39352D01* X-64661Y-39362D01* D02* G37* G36* X-34140Y-39998D02* X-34120Y-40249D01* X-34108Y-40318D01* X-34093Y-40378D01* X-34075Y-40431D01* X-34055Y-40476D01* X-34032Y-40513D01* X-34006Y-40543D01* X-35265Y-40572D01* X-35242Y-40543D01* X-35221Y-40506D01* X-35202Y-40461D01* X-35186Y-40408D01* X-35173Y-40347D01* X-35162Y-40279D01* X-35147Y-40118D01* X-35142Y-39926D01* X-34142Y-39898D01* X-34140Y-39998D01* D02* G37* G36* X-59143Y-41630D02* X-59226Y-41548D01* X-59390Y-41411D01* X-59469Y-41355D01* X-59547Y-41308D01* X-59624Y-41269D01* X-59699Y-41239D01* X-59773Y-41217D01* X-59846Y-41204D01* X-59917Y-41200D01* Y-40800D01* X-59846Y-40796D01* X-59773Y-40783D01* X-59699Y-40761D01* X-59624Y-40731D01* X-59547Y-40692D01* X-59469Y-40645D01* X-59390Y-40589D01* X-59309Y-40525D01* X-59226Y-40452D01* X-59143Y-40370D01* Y-41630D01* D02* G37* G36* X-38974Y-41052D02* X-38811Y-41189D01* X-38731Y-41245D01* X-38653Y-41293D01* X-38576Y-41331D01* X-38501Y-41361D01* X-38427Y-41383D01* X-38354Y-41396D01* X-38282Y-41400D01* Y-41800D01* X-38354Y-41804D01* X-38427Y-41817D01* X-38501Y-41839D01* X-38576Y-41869D01* X-38653Y-41908D01* X-38731Y-41955D01* X-38811Y-42011D01* X-38891Y-42075D01* X-38974Y-42148D01* X-39057Y-42230D01* Y-40970D01* X-38974Y-41052D01* D02* G37* G36* X-46849Y-13849D02* X-46551Y-14048D01* X-46200Y-14118D01* X-36300D01* X-35949Y-14048D01* X-35651Y-13849D01* X-33498Y-11696D01* X-33074Y-11979D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30538Y-12650D01* X-30057Y-12796D01* X-30120Y-13110D01* X-30042Y-13500D01* X-29821Y-13831D01* Y-14358D01* X-30042Y-14689D01* X-30120Y-15079D01* X-30042Y-15469D01* X-29821Y-15800D01* Y-16326D01* X-30042Y-16657D01* X-30120Y-17047D01* X-30042Y-17437D01* X-29821Y-17768D01* Y-18295D01* X-30042Y-18626D01* X-30120Y-19016D01* X-30042Y-19406D01* X-29821Y-19737D01* Y-20263D01* X-30042Y-20594D01* X-30120Y-20984D01* X-30042Y-21374D01* X-29821Y-21705D01* Y-22232D01* X-30042Y-22563D01* X-30120Y-22953D01* X-30042Y-23343D01* X-29821Y-23674D01* Y-24200D01* X-30042Y-24531D01* X-30120Y-24921D01* X-30042Y-25311D01* X-29821Y-25642D01* Y-25760D01* X-29890Y-26240D01* X-30349Y-26431D01* X-31559Y-27641D01* X-31749Y-28100D01* Y-32200D01* X-31559Y-32659D01* X-30449Y-33769D01* Y-41631D01* X-31829Y-43011D01* X-32214Y-42733D01* X-32024Y-42273D01* Y-39369D01* X-31977Y-39337D01* X-31974Y-39336D01* X-31973Y-39335D01* X-31952Y-39321D01* X-31731Y-38990D01* X-31654Y-38600D01* Y-34400D01* X-31731Y-34010D01* X-31952Y-33679D01* X-32283Y-33458D01* X-32673Y-33380D01* X-33064Y-33458D01* X-33394Y-33679D01* X-33921D01* X-34252Y-33458D01* X-34642Y-33380D01* X-34800Y-33412D01* X-35252Y-33167D01* X-35334Y-33059D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41766Y-33097D01* X-41893Y-33224D01* X-42432Y-33249D01* X-47251Y-28431D01* Y-15100D01* X-47441Y-14641D01* X-50494Y-11587D01* X-50510Y-11551D01* X-50526Y-11503D01* X-50540Y-11445D01* X-50551Y-11383D01* X-50566Y-11205D01* X-50567Y-11104D01* X-50600Y-11027D01* Y-10841D01* X-50626Y-10779D01* X-50202Y-10496D01* X-46849Y-13849D01* D02* G37* G36* X-62743Y-43230D02* X-62826Y-43148D01* X-62989Y-43011D01* X-63069Y-42955D01* X-63147Y-42908D01* X-63224Y-42869D01* X-63299Y-42839D01* X-63374Y-42817D01* X-63446Y-42804D01* X-63517Y-42800D01* Y-42400D01* X-63446Y-42396D01* X-63374Y-42383D01* X-63299Y-42361D01* X-63224Y-42331D01* X-63147Y-42292D01* X-63069Y-42245D01* X-62989Y-42189D01* X-62909Y-42125D01* X-62826Y-42052D01* X-62743Y-41970D01* Y-43230D01* D02* G37* G36* X-10299Y-42911D02* X-10279Y-43164D01* X-10267Y-43232D01* X-10253Y-43293D01* X-10236Y-43346D01* X-10217Y-43391D01* X-10195Y-43428D01* X-10170Y-43457D01* X-11430D01* X-11405Y-43428D01* X-11383Y-43391D01* X-11364Y-43346D01* X-11347Y-43293D01* X-11332Y-43232D01* X-11321Y-43164D01* X-11305Y-43003D01* X-11301Y-42911D01* X-11300Y-42812D01* X-10300D01* X-10299Y-42911D01* D02* G37* G36* X-19508Y-43491D02* X-19585Y-43478D01* X-19659Y-43471D01* X-19729Y-43470D01* X-19795Y-43474D01* X-19858Y-43484D01* X-19916Y-43499D01* X-19971Y-43521D01* X-20022Y-43548D01* X-20069Y-43581D01* X-20112Y-43619D01* X-20696Y-42789D01* X-20656Y-42748D01* X-20563Y-42641D01* X-20541Y-42611D01* X-20523Y-42583D01* X-20511Y-42558D01* X-20502Y-42536D01* X-20498Y-42517D01* X-20499Y-42500D01* X-19508Y-43491D01* D02* G37* G36* X-36799Y-43826D02* X-36781Y-44039D01* X-36764Y-44134D01* X-36742Y-44223D01* X-36715Y-44305D01* X-36683Y-44379D01* X-36646Y-44447D01* X-36604Y-44507D01* X-36556Y-44561D01* X-36839Y-44844D01* X-36893Y-44796D01* X-36953Y-44754D01* X-37021Y-44717D01* X-37095Y-44685D01* X-37177Y-44658D01* X-37266Y-44636D01* X-37361Y-44619D01* X-37464Y-44608D01* X-37574Y-44601D01* X-37691Y-44600D01* X-36800Y-43709D01* X-36799Y-43826D01* D02* G37* G36* X-72174Y-44637D02* X-72113Y-44680D01* X-72046Y-44717D01* X-71971Y-44749D01* X-71889Y-44776D01* X-71801Y-44798D01* X-71705Y-44814D01* X-71602Y-44826D01* X-71492Y-44832D01* X-71375Y-44834D01* X-72266Y-45725D01* X-72268Y-45608D01* X-72286Y-45395D01* X-72303Y-45299D01* X-72324Y-45211D01* X-72351Y-45129D01* X-72383Y-45054D01* X-72420Y-44987D01* X-72463Y-44926D01* X-72510Y-44873D01* X-72227Y-44590D01* X-72174Y-44637D01* D02* G37* G36* X-10809Y-45000D02* X-10847Y-45003D01* X-10889Y-45014D01* X-10935Y-45032D01* X-10984Y-45057D01* X-11037Y-45090D01* X-11094Y-45130D01* X-11218Y-45233D01* X-11286Y-45295D01* X-11296Y-45304D01* X-11305Y-45314D01* X-11470Y-45506D01* X-11510Y-45563D01* X-11543Y-45616D01* X-11568Y-45665D01* X-11586Y-45711D01* X-11597Y-45753D01* X-11600Y-45791D01* X-12491Y-44900D01* X-12453Y-44897D01* X-12411Y-44886D01* X-12365Y-44868D01* X-12316Y-44843D01* X-12263Y-44810D01* X-12206Y-44770D01* X-12082Y-44667D01* X-12014Y-44605D01* X-12004Y-44596D01* X-11995Y-44586D01* X-11830Y-44394D01* X-11790Y-44337D01* X-11757Y-44284D01* X-11732Y-44235D01* X-11714Y-44189D01* X-11703Y-44147D01* X-11700Y-44109D01* X-10809Y-45000D01* D02* G37* G36* X-12509Y-46700D02* X-12547Y-46703D01* X-12589Y-46714D01* X-12635Y-46732D01* X-12684Y-46757D01* X-12737Y-46790D01* X-12794Y-46830D01* X-12918Y-46933D01* X-12986Y-46995D01* X-13057Y-47065D01* X-13765Y-46357D01* X-13695Y-46286D01* X-13530Y-46094D01* X-13490Y-46037D01* X-13457Y-45984D01* X-13432Y-45935D01* X-13414Y-45889D01* X-13403Y-45847D01* X-13400Y-45809D01* X-12509Y-46700D01* D02* G37* G36* X-15629Y-46837D02* X-15597Y-46871D01* X-15562Y-46902D01* X-15523Y-46928D01* X-15482Y-46950D01* X-15437Y-46968D01* X-15388Y-46982D01* X-15336Y-46992D01* X-15281Y-46998D01* X-15223Y-47000D01* Y-48000D01* X-15281Y-48002D01* X-15336Y-48008D01* X-15388Y-48018D01* X-15437Y-48032D01* X-15482Y-48050D01* X-15523Y-48072D01* X-15562Y-48098D01* X-15597Y-48129D01* X-15629Y-48163D01* X-15657Y-48201D01* Y-46799D01* X-15629Y-46837D01* D02* G37* G36* X-19702Y-56384D02* X-19617Y-56447D01* X-19532Y-56499D01* X-19444Y-56538D01* X-19354Y-56565D01* X-19263Y-56580D01* X-19169Y-56583D01* X-19074Y-56574D01* X-18976Y-56554D01* X-18877Y-56521D01* X-20424Y-57121D01* X-20423Y-57114D01* X-20427Y-57104D01* X-20435Y-57090D01* X-20448Y-57072D01* X-20488Y-57025D01* X-20581Y-56927D01* X-20621Y-56886D01* X-19784Y-56309D01* X-19702Y-56384D01* D02* G37* %LPC*% G36* X-9000Y-19582D02* X-10000D01* X-10351Y-19652D01* X-10649Y-19851D01* X-10848Y-20149D01* X-10918Y-20500D01* Y-21500D01* X-10848Y-21851D01* X-10649Y-22149D01* X-10505Y-22245D01* X-10497Y-22266D01* X-10437Y-22291D01* X-10433Y-22293D01* X-10433Y-22312D01* X-10418Y-22345D01* Y-23246D01* X-10348Y-23597D01* X-10149Y-23895D01* X-8999Y-25044D01* X-8998Y-25053D01* X-8973Y-25070D01* X-8966Y-25077D01* X-8955Y-25109D01* X-8909Y-25161D01* X-8884Y-25196D01* X-8863Y-25232D01* X-8846Y-25273D01* X-8841Y-25291D01* Y-26665D01* X-8764Y-27051D01* X-8545Y-27379D01* X-8217Y-27598D01* X-7831Y-27675D01* X-6650D01* X-6263Y-27598D01* X-5935Y-27379D01* X-5717Y-27051D01* X-5640Y-26665D01* Y-24346D01* X-5717Y-23960D01* X-5935Y-23632D01* X-6263Y-23413D01* X-6650Y-23336D01* X-7831D01* X-8046Y-23379D01* X-8049Y-23376D01* X-8078Y-23349D01* X-8113Y-23335D01* X-8582Y-22866D01* Y-22345D01* X-8567Y-22312D01* X-8567Y-22293D01* X-8563Y-22291D01* X-8503Y-22266D01* X-8495Y-22245D01* X-8351Y-22149D01* X-8152Y-21851D01* X-8082Y-21500D01* Y-20500D01* X-8152Y-20149D01* X-8351Y-19851D01* X-8649Y-19652D01* X-9000Y-19582D01* D02* G37* %LPD*% G36* X-8846Y-21970D02* X-8878Y-21985D01* X-8907Y-22006D01* X-8931Y-22032D01* X-8952Y-22063D01* X-8969Y-22099D01* X-8983Y-22141D01* X-8992Y-22188D01* X-8998Y-22240D01* X-9000Y-22298D01* X-10000D01* X-10002Y-22240D01* X-10008Y-22188D01* X-10017Y-22141D01* X-10030Y-22099D01* X-10048Y-22063D01* X-10069Y-22032D01* X-10093Y-22006D01* X-10122Y-21985D01* X-10154Y-21970D01* X-10190Y-21960D01* X-8810D01* X-8846Y-21970D01* D02* G37* G36* X-8336Y-23701D02* X-8259Y-23763D01* X-8224Y-23786D01* X-8191Y-23802D01* X-8160Y-23814D01* X-8131Y-23819D01* X-8104Y-23819D01* X-8079Y-23813D01* X-8056Y-23801D01* X-8409Y-25739D01* X-8392Y-25624D01* X-8383Y-25514D01* X-8384Y-25409D01* X-8393Y-25310D01* X-8411Y-25215D01* X-8438Y-25126D01* X-8473Y-25042D01* X-8518Y-24963D01* X-8571Y-24889D01* X-8633Y-24820D01* X-8377Y-23662D01* X-8336Y-23701D01* D02* G37* G36* X49431Y-4698D02* X49335Y-4622D01* X49153Y-4495D01* X49066Y-4443D01* X48983Y-4399D01* X48902Y-4364D01* X48825Y-4336D01* X48751Y-4316D01* X48680Y-4304D01* X48612Y-4300D01* X48566Y-3900D01* X48639Y-3895D01* X48713Y-3882D01* X48786Y-3859D01* X48859Y-3827D01* X48932Y-3786D01* X49004Y-3736D01* X49077Y-3677D01* X49148Y-3609D01* X49220Y-3532D01* X49291Y-3445D01* X49431Y-4698D01* D02* G37* G36* X30026Y-3552D02* X30189Y-3689D01* X30269Y-3745D01* X30347Y-3793D01* X30424Y-3831D01* X30499Y-3861D01* X30573Y-3883D01* X30646Y-3896D01* X30718Y-3900D01* Y-4300D01* X30646Y-4304D01* X30573Y-4317D01* X30499Y-4339D01* X30424Y-4369D01* X30347Y-4408D01* X30269Y-4455D01* X30189Y-4511D01* X30109Y-4575D01* X30026Y-4648D01* X29943Y-4730D01* Y-3470D01* X30026Y-3552D01* D02* G37* G36* X49357Y-7830D02* X49274Y-7748D01* X49110Y-7611D01* X49031Y-7555D01* X48953Y-7508D01* X48876Y-7469D01* X48801Y-7439D01* X48726Y-7417D01* X48654Y-7404D01* X48583Y-7400D01* Y-7000D01* X48654Y-6996D01* X48726Y-6983D01* X48801Y-6961D01* X48876Y-6931D01* X48953Y-6893D01* X49031Y-6845D01* X49110Y-6789D01* X49191Y-6725D01* X49274Y-6652D01* X49357Y-6570D01* Y-7830D01* D02* G37* G36* X30026Y-6652D02* X30189Y-6789D01* X30269Y-6845D01* X30347Y-6893D01* X30424Y-6931D01* X30499Y-6961D01* X30573Y-6983D01* X30646Y-6996D01* X30718Y-7000D01* Y-7400D01* X30646Y-7404D01* X30573Y-7417D01* X30499Y-7439D01* X30424Y-7469D01* X30347Y-7508D01* X30269Y-7555D01* X30189Y-7611D01* X30109Y-7675D01* X30026Y-7748D01* X29943Y-7830D01* Y-6570D01* X30026Y-6652D01* D02* G37* G36* X17266Y-17832D02* X17359Y-17867D01* X17460Y-17891D01* Y-17810D01* X17470Y-17846D01* X17485Y-17878D01* X17502Y-17900D01* X17652Y-17925D01* X18084Y-17967D01* X18815Y-17992D01* X18859Y-17983D01* X18901Y-17969D01* X18937Y-17952D01* X18968Y-17932D01* X18994Y-17907D01* X19015Y-17878D01* X19030Y-17846D01* X19040Y-17810D01* Y-17998D01* X19366Y-18000D01* Y-19000D01* X19040Y-19002D01* Y-19190D01* X19030Y-19154D01* X19015Y-19122D01* X18994Y-19093D01* X18968Y-19069D01* X18937Y-19048D01* X18901Y-19030D01* X18859Y-19017D01* X18836Y-19013D01* X17501Y-19101D01* X17485Y-19122D01* X17470Y-19154D01* X17460Y-19190D01* Y-19109D01* X17405Y-19122D01* X17359Y-19133D01* X17266Y-19168D01* X17207Y-19208D01* Y-17792D01* X17266Y-17832D01* D02* G37* G36* X13154Y-19470D02* X13122Y-19485D01* X13093Y-19506D01* X13069Y-19532D01* X13048Y-19563D01* X13031Y-19600D01* X13017Y-19641D01* X13008Y-19688D01* X13002Y-19740D01* X13000Y-19798D01* X12000D01* X11998Y-19740D01* X11992Y-19688D01* X11983Y-19641D01* X11970Y-19600D01* X11952Y-19563D01* X11931Y-19532D01* X11907Y-19506D01* X11878Y-19485D01* X11846Y-19470D01* X11810Y-19460D01* X13190D01* X13154Y-19470D01* D02* G37* G36* X13005Y-20478D02* X13020Y-20534D01* X13045Y-20583D01* X13080Y-20626D01* X13124Y-20661D01* X13179Y-20690D01* X13244Y-20712D01* X13318Y-20727D01* X13403Y-20736D01* X13498Y-20737D01* X11807Y-20768D01* X11844Y-20757D01* X11876Y-20742D01* X11905Y-20721D01* X11930Y-20695D01* X11952Y-20664D01* X11969Y-20628D01* X11983Y-20586D01* X11992Y-20539D01* X11998Y-20487D01* X12000Y-20429D01* X13000Y-20415D01* X13005Y-20478D01* D02* G37* G36* X17502Y-20314D02* X17516Y-20516D01* X17528Y-20602D01* X17544Y-20679D01* X17564Y-20746D01* X17587Y-20803D01* X17613Y-20851D01* X17643Y-20889D01* X17677Y-20917D01* X15323D01* X15357Y-20889D01* X15387Y-20851D01* X15413Y-20803D01* X15436Y-20746D01* X15456Y-20679D01* X15472Y-20602D01* X15484Y-20516D01* X15498Y-20314D01* X15500Y-20199D01* X17500D01* X17502Y-20314D01* D02* G37* G36* X21435Y-20933D02* X21467Y-20947D01* X21513Y-20959D01* X21572Y-20970D01* X21645Y-20979D01* X21833Y-20993D01* X22219Y-21000D01* Y-23000D01* X22092Y-23010D01* X21979Y-23040D01* X21881Y-23090D01* X21798Y-23160D01* X21730Y-23250D01* X21676Y-23360D01* X21636Y-23490D01* X21612Y-23640D01* X21602Y-23810D01* X21607Y-24000D01* X21417Y-20917D01* X21435Y-20933D01* D02* G37* G36* X21384Y-25662D02* X21353Y-25700D01* X21327Y-25748D01* X21304Y-25805D01* X21284Y-25872D01* X21269Y-25949D01* X21256Y-26035D01* X21242Y-26237D01* X21240Y-26352D01* X19240D01* X19238Y-26237D01* X19224Y-26035D01* X19212Y-25949D01* X19196Y-25872D01* X19176Y-25805D01* X19153Y-25748D01* X19127Y-25700D01* X19097Y-25662D01* X19063Y-25634D01* X21417D01* X21384Y-25662D01* D02* G37* G36* X25002Y-25520D02* X25014Y-25547D01* X25036Y-25581D01* X25065Y-25621D01* X25150Y-25723D01* X25341Y-25926D01* X25422Y-26008D01* X24008Y-27422D01* X23926Y-27341D01* X23581Y-27036D01* X23547Y-27014D01* X23520Y-27002D01* X23500Y-26998D01* X24998Y-25500D01* X25002Y-25520D01* D02* G37* G36* X24074Y-29159D02* X24419Y-29464D01* X24453Y-29485D01* X24480Y-29498D01* X24500Y-29502D01* X23002Y-31000D01* X22998Y-30980D01* X22986Y-30953D01* X22964Y-30919D01* X22935Y-30879D01* X22850Y-30777D01* X22659Y-30574D01* X22578Y-30492D01* X23992Y-29078D01* X24074Y-29159D01* D02* G37* G36* X21588Y-30916D02* X21607Y-31086D01* X21639Y-31236D01* X21684Y-31365D01* X21741Y-31475D01* X21811Y-31565D01* X21894Y-31635D01* X21990Y-31684D01* X22098Y-31714D01* X22219Y-31724D01* Y-33724D01* X22098Y-33734D01* X21990Y-33764D01* X21894Y-33814D01* X21811Y-33884D01* X21741Y-33974D01* X21684Y-34084D01* X21639Y-34213D01* X21607Y-34363D01* X21588Y-34532D01* X21582Y-34722D01* Y-30727D01* X21588Y-30916D01* D02* G37* G36* X24074Y-33159D02* X24419Y-33464D01* X24453Y-33485D01* X24480Y-33498D01* X24500Y-33502D01* X23002Y-35000D01* X22998Y-34980D01* X22986Y-34953D01* X22964Y-34919D01* X22935Y-34879D01* X22850Y-34777D01* X22659Y-34574D01* X22578Y-34492D01* X23992Y-33078D01* X24074Y-33159D01* D02* G37* G36* X13627Y-35252D02* X13550Y-35275D01* X13482Y-35302D01* X13423Y-35332D01* X13373Y-35365D01* X13332Y-35402D01* X13301Y-35443D01* X13278Y-35487D01* X13264Y-35534D01* X13260Y-35585D01* X12260D01* X12255Y-35534D01* X12242Y-35487D01* X12219Y-35443D01* X12187Y-35402D01* X12147Y-35365D01* X12097Y-35332D01* X12038Y-35302D01* X11970Y-35275D01* X11893Y-35252D01* X11807Y-35232D01* X13713D01* X13627Y-35252D01* D02* G37* G36* X13260Y-36787D02* X13261Y-36844D01* X13268Y-36945D01* X13275Y-36988D01* X13283Y-37027D01* X13293Y-37061D01* X13305Y-37090D01* X13319Y-37114D01* X13334Y-37133D01* X13352Y-37148D01* X11810Y-37040D01* X11895Y-37021D01* X11972Y-36998D01* X12039Y-36972D01* X12098Y-36943D01* X12147Y-36911D01* X12188Y-36876D01* X12219Y-36837D01* X12242Y-36795D01* X12255Y-36751D01* X12260Y-36702D01* X13260Y-36787D01* D02* G37* G36* X11540Y-38690D02* X11530Y-38654D01* X11515Y-38622D01* X11494Y-38593D01* X11468Y-38568D01* X11437Y-38548D01* X11400Y-38530D01* X11359Y-38517D01* X11312Y-38508D01* X11260Y-38502D01* X11202Y-38500D01* Y-37500D01* X11260Y-37498D01* X11312Y-37492D01* X11359Y-37483D01* X11400Y-37470D01* X11437Y-37452D01* X11468Y-37431D01* X11494Y-37407D01* X11515Y-37378D01* X11530Y-37346D01* X11540Y-37310D01* Y-38690D01* D02* G37* G36* X9970Y-37346D02* X9985Y-37378D01* X10006Y-37407D01* X10032Y-37431D01* X10063Y-37452D01* X10099Y-37470D01* X10141Y-37483D01* X10188Y-37492D01* X10240Y-37498D01* X10298Y-37500D01* Y-38500D01* X10240Y-38502D01* X10188Y-38508D01* X10141Y-38517D01* X10099Y-38530D01* X10063Y-38548D01* X10032Y-38568D01* X10006Y-38593D01* X9985Y-38622D01* X9970Y-38654D01* X9960Y-38690D01* Y-37310D01* X9970Y-37346D01* D02* G37* G36* X8040Y-38690D02* X8030Y-38654D01* X8015Y-38622D01* X7994Y-38593D01* X7968Y-38568D01* X7937Y-38548D01* X7901Y-38530D01* X7859Y-38517D01* X7812Y-38508D01* X7760Y-38502D01* X7702Y-38500D01* Y-37500D01* X7760Y-37498D01* X7812Y-37492D01* X7859Y-37483D01* X7901Y-37470D01* X7937Y-37452D01* X7968Y-37431D01* X7994Y-37407D01* X8015Y-37378D01* X8030Y-37346D01* X8040Y-37310D01* Y-38690D01* D02* G37* G36* X6470Y-37346D02* X6485Y-37378D01* X6506Y-37407D01* X6532Y-37431D01* X6563Y-37452D01* X6600Y-37470D01* X6641Y-37483D01* X6688Y-37492D01* X6740Y-37498D01* X6798Y-37500D01* Y-38500D01* X6740Y-38502D01* X6688Y-38508D01* X6641Y-38517D01* X6600Y-38530D01* X6563Y-38548D01* X6532Y-38568D01* X6506Y-38593D01* X6485Y-38622D01* X6470Y-38654D01* X6460Y-38690D01* Y-37310D01* X6470Y-37346D01* D02* G37* G36* X24970D02* X24985Y-37378D01* X25006Y-37407D01* X25032Y-37431D01* X25063Y-37452D01* X25100Y-37470D01* X25141Y-37483D01* X25188Y-37492D01* X25240Y-37498D01* X25298Y-37500D01* Y-38500D01* X25240Y-38502D01* X25188Y-38508D01* X25141Y-38517D01* X25100Y-38530D01* X25063Y-38548D01* X25032Y-38568D01* X25006Y-38593D01* X24985Y-38622D01* X24970Y-38654D01* X24960Y-38690D01* Y-37310D01* X24970Y-37346D01* D02* G37* G36* X30001Y-51111D02* X30021Y-51364D01* X30033Y-51432D01* X30047Y-51493D01* X30064Y-51546D01* X30083Y-51591D01* X30105Y-51628D01* X30130Y-51657D01* X28870D01* X28895Y-51628D01* X28917Y-51591D01* X28936Y-51546D01* X28953Y-51493D01* X28967Y-51432D01* X28979Y-51364D01* X28995Y-51203D01* X28999Y-51111D01* X29000Y-51012D01* X30000D01* X30001Y-51111D01* D02* G37* G36* X28037Y-52375D02* X28073Y-52401D01* X28117Y-52424D01* X28169Y-52444D01* X28229Y-52461D01* X28296Y-52475D01* X28372Y-52486D01* X28547Y-52499D01* X28646Y-52500D01* X28511Y-53500D01* X28410Y-53501D01* X28089Y-53524D01* X28029Y-53535D01* X27977Y-53548D01* X27933Y-53562D01* X27897Y-53579D01* X27869Y-53597D01* X28009Y-52345D01* X28037Y-52375D01* D02* G37* G36* X1358Y-53491D02* X1290Y-53479D01* X1166Y-53467D01* X1111Y-53466D01* X1060Y-53470D01* X1015Y-53478D01* X973Y-53489D01* X936Y-53505D01* X904Y-53525D01* X876Y-53548D01* X417Y-53159D01* X440Y-53133D01* X459Y-53107D01* X473Y-53080D01* X482Y-53053D01* X487Y-53025D01* X487Y-52997D01* X483Y-52968D01* X474Y-52939D01* X460Y-52910D01* X442Y-52879D01* X1358Y-53491D01* D02* G37* G36* X19034Y-57098D02* X19032Y-57041D01* X19026Y-56990D01* X19015Y-56946D01* X19000Y-56907D01* X18981Y-56874D01* X18958Y-56848D01* X18930Y-56827D01* X18899Y-56812D01* X18863Y-56803D01* X18822Y-56800D01* Y-56200D01* X18863Y-56197D01* X18899Y-56188D01* X18930Y-56173D01* X18958Y-56152D01* X18981Y-56126D01* X19000Y-56093D01* X19015Y-56054D01* X19026Y-56010D01* X19032Y-55959D01* X19034Y-55902D01* Y-57098D01* D02* G37* G36* X2677Y-61933D02* X2745Y-61989D01* X2814Y-62038D01* X2886Y-62081D01* X2959Y-62117D01* X3035Y-62147D01* X3112Y-62170D01* X3192Y-62187D01* X3274Y-62197D01* X3357Y-62200D01* Y-62800D01* X3274Y-62803D01* X3192Y-62813D01* X3112Y-62830D01* X3035Y-62853D01* X2959Y-62883D01* X2886Y-62919D01* X2814Y-62962D01* X2745Y-63011D01* X2677Y-63067D01* X2611Y-63130D01* Y-61870D01* X2677Y-61933D01* D02* G37* G36* X1326Y-63130D02* X1260Y-63067D01* X1192Y-63011D01* X1123Y-62962D01* X1051Y-62919D01* X978Y-62883D01* X902Y-62853D01* X824Y-62830D01* X745Y-62813D01* X663Y-62803D01* X580Y-62800D01* Y-62200D01* X663Y-62197D01* X745Y-62187D01* X824Y-62170D01* X902Y-62147D01* X978Y-62117D01* X1051Y-62081D01* X1123Y-62038D01* X1192Y-61989D01* X1260Y-61933D01* X1326Y-61870D01* Y-63130D01* D02* G37* G36* X-12419Y-65581D02* Y-72655D01* X-13764Y-74000D01* X-20236D01* X-22000Y-72236D01* Y-65500D01* X-20500Y-64000D01* X-14000D01* X-12419Y-65581D01* D02* G37* D10* X-50600Y-8800D02* X-46200Y-13200D01* X-36300D02* X-32673Y-9573D01* X-46200Y-13200D02* X-36300D01* X-54800Y-11000D02* Y-9700D01* X-53900Y-8800D02* X-50600D01* X-54800Y-9700D02* X-53900Y-8800D01* X-54800Y-11000D02* X-54000Y-11800D01* X-6000Y-29700D02* X-3300D01* X240Y-26160D01* X-10800Y-34500D02* X-6000Y-29700D01* X-44600Y-10600D02* X-42700D01* X-48421Y-6779D02* X-44600Y-10600D01* X-48421Y-6779D02* Y-3500D01* X27200Y-53000D02* X28800D01* X-64200Y-29400D02* X-62773Y-30827D01* X-67400Y-29400D02* X-64200D01* X-69500Y-31500D02* X-67400Y-29400D01* X-62773Y-30827D02* X-60000D01* X0Y43500D02* Y45000D01* Y42000D02* Y43500D01* X-52500Y-20700D02* X-51200Y-22000D01* X-51000D01* X-52500Y-20700D02* Y-17257D01* Y-28600D02* Y-20700D01* X-54679Y-15079D02* X-52500Y-17257D01* X-54327Y-30427D02* X-52500Y-28600D01* X-19500Y33500D02* X-16400Y36600D01* X-7800D01* X-19500Y32567D02* Y33500D01* X10433Y7500D02* X10800D01* X-11400Y-7500D02* X-10433D01* X-18300Y-4200D02* X-16600Y-2500D01* X-10433D01* X-10600Y2500D02* X-10433D01* X10433Y-7500D02* X14300D01* X15800Y-6000D01* Y300D01* X13600Y2500D02* X15800Y300D01* X10433Y2500D02* X13600D01* X-42465Y-46700D02* X-23900D01* X-19700Y-42500D02* X-17933D01* X-23900Y-46700D02* X-19700Y-42500D01* X-22700Y-54100D02* Y-50400D01* Y-54100D02* X-19300Y-57500D01* X-24600Y-48500D02* X-22700Y-50400D01* X-42644Y-48500D02* X-24600D01* X-19300Y-57500D02* X-17933D01* X-50390Y-40755D02* Y-36500D01* X-48421Y-40743D02* X-42465Y-46700D01* X-50390Y-40755D02* X-42644Y-48500D01* X-48421Y-40743D02* Y-36500D01* X-13000Y-28000D02* X-11500Y-29500D01* Y-31900D02* Y-29500D01* X-12500Y-45800D02* X-10800Y-44100D01* X-14200Y-47500D02* X-12500Y-45800D01* X-17933Y-47500D02* X-14200D01* X-10800Y-44100D02* Y-34500D01* X29500Y-52300D02* Y-40700D01* X26800Y-38000D02* X29500Y-40700D01* X24000Y-38000D02* X26800D01* X-25500Y-34500D02* X-10800D01* X-63721Y-15079D02* X-60000D01* X-65500Y-13300D02* X-63721Y-15079D01* X-65500Y-13300D02* Y-13000D01* X-54327Y-36500D02* Y-30427D01* X-60000Y-15079D02* X-54679D01* X-54000Y-14400D01* Y-11800D01* X-32673Y-9573D02* Y-3500D01* X-27000Y-33000D02* Y-30827D01* Y-33000D02* X-25500Y-34500D01* X240Y-26160D02* Y-25506D01* X-32673Y-3500D02* X-24400D01* X-20600Y-7300D01* Y-12400D02* Y-7300D01* Y-12400D02* X-15500Y-17500D01* X-2000D01* X16500Y-18500D02* X20000D01* X27200Y-53000D02* X27300Y-52900D01* X-60000Y-13110D02* X-56310D01* X-56300Y-13100D01* X-18700Y-19300D02* X-17000Y-21000D01* X-22500Y-19300D02* X-18700D01* X-17000Y-24500D02* Y-21000D01* Y-28000D02* Y-24500D01* X-36610Y-36500D02* Y-33410D01* X-34642Y-41179D02* Y-36500D01* X-38579D02* Y-31821D01* X-38600Y-31800D02* X-38579Y-31821D01* X-40547Y-36500D02* Y-33553D01* X-24600Y21200D02* X-900D01* X2000Y24100D01* X-36610Y9190D02* X-24600Y21200D01* X-36610Y-3500D02* Y9190D01* X2000Y24100D02* Y27000D01* X-38579Y-3500D02* Y9621D01* X-27000Y21200D01* Y27000D01* X-7800Y36600D02* X-7000Y35800D01* Y29000D02* Y35800D01* X-9000Y27000D02* X-7000Y29000D01* X23000Y27000D02* Y34100D01* X20900Y36200D02* X23000Y34100D01* X16500Y36200D02* X20900D01* X16000Y36700D02* X16500Y36200D01* X6800Y36700D02* X16000D01* X4500Y34400D02* X6800Y36700D01* X4500Y32567D02* Y34400D01* X20000Y27000D02* X23000D01* X13000D02* X16000D01* X13000Y25500D02* Y27000D01* X11500Y24000D02* X13000Y25500D01* X7400Y24000D02* X11500D01* X6000Y25400D02* X7400Y24000D01* X6000Y25400D02* Y27000D01* X-9000D02* X-6000D01* X-13000Y25200D02* Y27000D01* X-14200Y24000D02* X-13000Y25200D01* X-18700Y24000D02* X-14200D01* X-20000Y25300D02* X-18700Y24000D01* X-20000Y25300D02* Y27000D01* X-23000D02* X-20000D01* X-67500Y-18260D02* X-65640D01* X-62916Y-20984D01* X-60000D01* X-67500Y-25740D02* X-65440D01* X-62653Y-22953D01* X-60000D01* X-56327Y-34500D02* X-54327Y-36500D01* X-62000Y-34500D02* X-56327D01* X-62000Y-32827D02* X-60000Y-30827D01* X-62000Y-34500D02* Y-32827D01* X28800Y-53000D02* X29500Y-52300D01* X12500Y-23016D02* X12760Y-23276D01* X12500Y-23016D02* Y-18500D01* X-9500Y-23246D02* X-7240Y-25506D01* X-9500Y-23246D02* Y-21000D01* X-2000Y-17500D02* Y-15600D01* X-400Y-14000D01* X4000D01* X5500Y-15500D01* Y-18000D02* Y-15500D01* X9000Y-11799D02* X10433Y-10366D01* X9000Y-18000D02* Y-11799D01* X10433Y-10366D02* Y-7500D01* X9000Y-38000D02* X12500D01* X5500D02* X9000D01* X12760Y-37740D02* Y-32724D01* X12500Y-38000D02* X12760Y-37740D01* D11* X29300Y-7200D02* X50000D01* X29300Y-4100D02* X49900D01* X-72600Y-44500D02* Y-29400D01* Y-44500D02* X-71366Y-45734D01* X-71700Y-32300D02* Y-29700D01* Y-32300D02* X-70800Y-33200D01* X-68316D01* X-71700Y-29700D02* X-70300Y-28300D01* X-72600Y-29400D02* X-70700Y-27500D01* X-70300Y-28300D02* X-63600D01* X-70700Y-27500D02* X-63800D01* X-63042Y-28858D02* X-60000D01* X-63600Y-28300D02* X-63042Y-28858D01* X-63800Y-27500D02* X-63190Y-26890D01* X-60000D01* X-65500Y-2500D02* X-63700Y-4300D01* Y-10200D02* Y-4300D01* Y-10200D02* X-62758Y-11142D01* X-60000D01* X-48700Y-29031D02* Y-19000D01* X-51400Y-16300D02* Y-14500D01* Y-16300D02* X-48700Y-19000D01* X-47900Y-28700D02* X-42516Y-34084D01* X-51900Y-11100D02* X-47900Y-15100D01* X-48700Y-29031D02* X-44484Y-33247D01* X-47900Y-28700D02* Y-15100D01* X-67500Y-40800D02* X-65700Y-42600D01* X-62100D01* X-67500Y-40800D02* Y-34016D01* X-68316Y-33200D02* X-67500Y-34016D01* X-61000Y-40500D02* X-60500Y-41000D01* X-63900Y-40500D02* X-61000D01* X-60500Y-41000D02* X-58726D01* X-58500D01* X-65500Y-38900D02* X-63900Y-40500D01* X-64000Y-36500D02* X-59500D01* X-59000Y-37000D01* X-57250D01* X-57000D01* X-65500Y-35000D02* X-64000Y-36500D01* X-31800Y-12300D02* Y-10800D01* X-30173Y-9173D01* X-27000D01* X-65500Y-38900D02* Y-38500D01* X-42516Y-36500D02* Y-34084D01* X-44484Y-36500D02* Y-33247D01* X-36200Y-9300D02* X-35300Y-8400D01* X-39000Y-9300D02* X-36200D01* X-40547Y-7753D02* X-39000Y-9300D01* X-40547Y-7753D02* Y-3500D01* X-51500Y-31600D02* X-51400Y-31500D01* X-48000D01* X-46453Y-33047D01* Y-36500D02* Y-33047D01* X-37100Y-41600D02* X-35500Y-43200D01* X-33600D01* X-32673Y-42273D01* X-32700Y-44800D02* X-29800Y-41900D01* X-36600Y-44800D02* X-32700D01* X-37700Y-43700D02* X-36600Y-44800D01* X-39700Y-41600D02* X-37100D01* X-32673Y-42273D02* Y-36500D01* X-29800Y-41900D02* Y-33500D01* X-31100Y-32200D02* X-29800Y-33500D01* X-31100Y-32200D02* Y-28100D01* X-29890Y-26890D01* X-27000D01* X-60000Y-19016D02* X-55784D01* X-65500Y-35000D02* Y-31500D01* D14* X-59900Y40300D02* X-54500D01* X-47900Y33700D01* Y1500D02* Y33700D01* Y1500D02* X-46453Y53D01* Y-3500D02* Y53D01* X10500Y-56500D02* X20000D01* X4500Y-62500D02* X10500Y-56500D01* X1969Y-62500D02* X4500D01* X-2776Y-56776D02* X1500Y-52500D01* X-2776Y-59915D02* Y-56776D01* X1500Y-52500D02* X2933D01* X-191Y-62500D02* X1969D01* X-2776Y-59915D02* X-191Y-62500D01* X2500Y-47500D02* X2933D01* X-36610Y-33410D02* X-36600Y-33400D01* X-34642Y-41179D02* X-34620Y-41200D01* D18* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D50* X1580Y-32200D02* X3780Y-30000D01* X240Y-33540D02* X1580Y-32200D01* X-1100D02* X1580D01* X-7240Y-36906D02* Y-34540D01* X-4900Y-32200D01* X-1100D01* X240Y-33540D01* X3780Y-30000D02* X5500D01* X300Y-36200D02* Y-33600D01* Y-38700D02* Y-36200D01* Y-33600D02* X700Y-34000D01* X5500D01* Y-30000D02* X9000D01* Y-34000D02* Y-30000D01* X5500Y-34000D02* X9000D01* X5500D02* Y-30000D01* X28500Y-18700D02* Y-16400D01* Y-21200D02* Y-18700D01* X-4200Y45100D02* Y46500D01* Y42100D02* Y45100D01* Y39100D02* Y42100D01* X-19500Y41000D02* Y44000D01* Y38000D02* Y41000D01* X19300Y41700D02* Y44500D01* Y38700D02* Y41700D01* X4300Y42100D02* Y45100D01* Y46500D01* X24822Y48122D02* X26000D01* X19300Y44700D02* X21400D01* X24822Y48122D01* X-26000Y47500D02* Y48122D01* X-22500Y44000D02* X-19500D01* X-26000Y47500D02* X-22500Y44000D01* X18178Y48122D02* X24822D01* X4300Y39100D02* Y42100D01* X-9500Y51800D02* X-4200Y46500D01* X21516Y-22000D02* X24000D01* X20240Y-23276D02* X21516Y-22000D01* X16900Y-17400D02* X19900D01* X16500Y-17000D02* X16900Y-17400D01* X16500Y-23276D02* Y-18500D01* Y-17000D01* X15800Y-16300D02* X16500Y-17000D01* X18000Y-16300D02* X18800D01* X15800D02* X18000D01* X19900Y-17400D02* X20000Y-17500D01* X18800Y-16300D02* X19900Y-17400D01* X-2000Y-21000D02* Y-17500D01* Y-23265D02* Y-21000D01* Y-23265D02* X240Y-25506D01* X5500Y-18000D02* X9000D01* X24000Y-34500D02* X26000D01* X27000Y-33500D01* Y-29000D01* X24000Y-26000D02* X27000Y-29000D01* X22224Y-32724D02* X24000Y-34500D01* X20240Y-32724D02* X22224D01* X20240Y-26740D02* X24000Y-30500D01* X20240Y-26740D02* Y-23276D01* X14500Y51800D02* Y53433D01* Y51300D02* Y51800D01* X4300Y46500D02* X6900Y49100D01* X12300D01* X14500Y51300D01* X-26000Y48122D02* X-18178D01* X-9500Y51800D02* Y53433D01* Y51100D02* Y51800D01* X-18178Y48122D02* X-17000Y49300D01* X-11300D01* X-9500Y51100D01* X14500Y51800D02* X18178Y48122D01* D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-59900Y40300D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X-42700Y-10600D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X2500Y-47500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-60500Y3000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X-51400Y-14500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X19800Y-22100D02* D03* X22454Y-21500D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-11500Y-31900D02* D03* X-51500Y-31600D02* D03* X-51900Y-11100D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X18000Y-16300D02* D03* X15800D02* D03* X19900Y-17400D02* D03* X-39700Y-41600D02* D03* X-37700Y-43700D02* D03* X24000Y-57500D02* D03* X27300Y-52900D02* D03* X-56300Y-13100D02* D03* X-22500Y-19300D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* X29500Y-52300D02* D03* D56* X4500Y52100D02* D03* Y55100D02* D03* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X-19500Y41000D02* D03* Y38000D02* D03* Y44000D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X19300Y44700D02* D03* Y41700D02* D03* Y38700D02* D03* X4300Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X-4200Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X1500Y52100D02* D03* Y55100D02* D03* X-22500Y52100D02* D03* X-19500D02* D03* X-22500Y55100D02* D03* X-19500D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* D57* Y-69000D02* X-14000Y-72000D01* X-17000Y-74000D02* X-12000D01* X-300D01* X-14000Y-72000D02* X-12000Y-74000D01* X4200Y-69500D02* X43000D01* X45500D01* X43000D02* Y-67000D01* Y-70000D02* Y-69500D01* Y-73000D02* Y-70000D01* X-300Y-74000D02* X4200Y-69500D01* D58* X-60000Y-9173D02* X-58073D01* X-56500Y-7600D02* Y700D01* X-58073Y-9173D02* X-56500Y-7600D01* X-50390Y-3500D02* Y4790D01* X-50400Y4800D02* X-50390Y4790D01* X-54327Y-3500D02* X-54300Y-3473D01* Y4800D01* X-52358Y-3500D02* Y658D01* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* D71* X-22500Y55500D02* X-19500Y52500D01* X-22500Y55500D02* X-19500D01* X-22500Y52500D02* X-19500D01* X1500Y55100D02* X4500Y52100D01* X1500D02* X4500D01* X1500Y55100D02* X4500D01* X-22500D02* Y55500D01* Y52500D02* Y55100D01* X1500Y52100D02* Y55100D01* D72* X-14500Y53433D02* Y58500D01* X-18000Y62000D02* Y70000D01* Y62000D02* X-14500Y58500D01* X9500Y53433D02* Y59000D01* X6000Y62500D02* X9500Y59000D01* X6000Y62500D02* Y70000D01* X19500Y53433D02* Y60500D01* X18000Y62000D02* Y70000D01* Y62000D02* X19500Y60500D01* X-6000Y59000D02* Y70000D01* Y59000D02* X-4500Y57500D01* Y53433D02* Y57500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GBO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD12C,0.00100*% %ADD13C,0.00787*% %ADD14C,0.00600*% %ADD84C,0.00984*% G36* X950Y46350D02* X600Y46350D01* Y47650D01* X950Y47650D01* Y46350D01* D02* G37* G36* X-600D02* X-950D01* Y47650D01* X-600D01* Y46350D01* D02* G37* G36* X950Y39350D02* X600Y39350D01* Y40650D01* X950Y40650D01* Y39350D01* D02* G37* G36* X-600D02* X-950D01* Y40650D01* X-600D01* Y39350D01* D02* G37* G36* X18650Y27600D02* X17350D01* X17350Y27950D01* X18650D01* X18650Y27600D01* D02* G37* G36* X4650D02* X3350D01* X3350Y27950D01* X4650D01* X4650Y27600D01* D02* G37* G36* X-10350D02* X-11650D01* X-11650Y27950D01* X-10350D01* X-10350Y27600D01* D02* G37* G36* X-24350D02* X-25650D01* X-25650Y27950D01* X-24350D01* X-24350Y27600D01* D02* G37* G36* X25650Y26100D02* X25300D01* Y27900D01* X25650D01* Y26100D01* D02* G37* G36* X24700D02* X24350D01* Y27900D01* X24700D01* Y26100D01* D02* G37* G36* X11650D02* X11300D01* Y27900D01* X11650D01* Y26100D01* D02* G37* G36* X10700D02* X10350D01* Y27900D01* X10700D01* Y26100D01* D02* G37* G36* X-3350D02* X-3700D01* Y27900D01* X-3350D01* Y26100D01* D02* G37* G36* X-4300D02* X-4650D01* Y27900D01* X-4300D01* Y26100D01* D02* G37* G36* X-17350D02* X-17700D01* Y27900D01* X-17350D01* Y26100D01* D02* G37* G36* X-18300D02* X-18650D01* Y27900D01* X-18300D01* Y26100D01* D02* G37* G36* X18650Y26050D02* X17350D01* Y26400D01* X18650D01* Y26050D01* D02* G37* G36* X4650D02* X3350D01* Y26400D01* X4650D01* Y26050D01* D02* G37* G36* X-10350D02* X-11650D01* Y26400D01* X-10350D01* Y26050D01* D02* G37* G36* X-24350D02* X-25650D01* Y26400D01* X-24350D01* Y26050D01* D02* G37* G36* X-66850Y-3400D02* X-67200D01* Y-1600D01* X-66850D01* Y-3400D01* D02* G37* G36* X-67800D02* X-68150D01* Y-1600D01* X-67800D01* Y-3400D01* D02* G37* G36* X-66850Y-13900D02* X-67200D01* Y-12100D01* X-66850D01* Y-13900D01* D02* G37* G36* X-67800D02* X-68150D01* Y-12100D01* X-67800D01* Y-13900D01* D02* G37* G36* X15150Y-17900D02* X13850D01* Y-17550D01* X15150D01* Y-17900D01* D02* G37* G36* X650Y-18400D02* X300D01* Y-16600D01* X650D01* Y-18400D01* D02* G37* G36* X-300D02* X-650D01* Y-16600D01* X-300D01* Y-18400D01* D02* G37* G36* X22650Y-19400D02* X22300D01* Y-17600D01* X22650D01* Y-19400D01* D02* G37* G36* X21700D02* X21350D01* Y-17600D01* X21700D01* Y-19400D01* D02* G37* G36* X15150Y-19450D02* X13850D01* X13850Y-19100D01* X15150D01* X15150Y-19450D01* D02* G37* G36* X9900Y-19700D02* X8100D01* Y-19350D01* X9900D01* Y-19700D01* D02* G37* G36* X6400D02* X4600D01* Y-19350D01* X6400D01* Y-19700D01* D02* G37* G36* X9900Y-20650D02* X8100D01* Y-20300D01* X9900D01* Y-20650D01* D02* G37* G36* X6400D02* X4600D01* Y-20300D01* X6400D01* Y-20650D01* D02* G37* G36* X650Y-21900D02* X300D01* Y-20100D01* X650D01* Y-21900D01* D02* G37* G36* X-300D02* X-650D01* Y-20100D01* X-300D01* Y-21900D01* D02* G37* G36* X-6850D02* X-7200D01* Y-20100D01* X-6850D01* Y-21900D01* D02* G37* G36* X-7800D02* X-8150D01* Y-20100D01* X-7800D01* Y-21900D01* D02* G37* G36* X-14350D02* X-14700D01* Y-20100D01* X-14350D01* Y-21900D01* D02* G37* G36* X-15300D02* X-15650D01* Y-20100D01* X-15300D01* Y-21900D01* D02* G37* G36* X24900Y-23700D02* X23100D01* Y-23350D01* X24900D01* Y-23700D01* D02* G37* G36* X-14350Y-23900D02* X-15650D01* X-15650Y-23550D01* X-14350D01* X-14350Y-23900D01* D02* G37* G36* X24900Y-24650D02* X23100D01* Y-24300D01* X24900D01* Y-24650D01* D02* G37* G36* X-14350Y-25450D02* X-15650D01* Y-25100D01* X-14350D01* Y-25450D01* D02* G37* G36* Y-27400D02* X-15650D01* Y-27050D01* X-14350D01* Y-27400D01* D02* G37* G36* X9900Y-27700D02* X8100D01* Y-27350D01* X9900D01* Y-27700D01* D02* G37* G36* X6400D02* X4600D01* Y-27350D01* X6400D01* Y-27700D01* D02* G37* G36* X9900Y-28650D02* X8100D01* Y-28300D01* X9900D01* Y-28650D01* D02* G37* G36* X6400D02* X4600D01* Y-28300D01* X6400D01* Y-28650D01* D02* G37* G36* X-14350Y-28950D02* X-15650D01* X-15650Y-28600D01* X-14350D01* X-14350Y-28950D01* D02* G37* G36* X-66850Y-30900D02* X-68150D01* Y-30550D01* X-66850D01* Y-30900D01* D02* G37* G36* X-50000Y-31500D02* X-55000D01* Y-26500D01* X-50000Y-31500D01* D02* G37* G36* X24900Y-32200D02* X23100D01* Y-31850D01* X24900D01* Y-32200D01* D02* G37* G36* X-66850Y-32450D02* X-68150D01* X-68150Y-32100D01* X-66850D01* X-66850Y-32450D01* D02* G37* G36* X24900Y-33150D02* X23100D01* Y-32800D01* X24900D01* Y-33150D01* D02* G37* G36* X6400Y-35700D02* X4600D01* Y-35350D01* X6400D01* Y-35700D01* D02* G37* G36* X-66850Y-35900D02* X-67200D01* Y-34100D01* X-66850D01* Y-35900D01* D02* G37* G36* X-67800D02* X-68150D01* Y-34100D01* X-67800D01* Y-35900D01* D02* G37* G36* X-24600Y-36200D02* X-26400D01* Y-35850D01* X-24600D01* Y-36200D01* D02* G37* G36* X-61100D02* X-62900D01* Y-35850D01* X-61100D01* Y-36200D01* D02* G37* G36* X9950Y-36650D02* X9600D01* Y-35350D01* X9950D01* Y-36650D01* D02* G37* G36* X8400Y-35350D02* Y-36650D01* X8050Y-36650D01* Y-35350D01* X8400Y-35350D01* D02* G37* G36* X6400Y-36650D02* X4600D01* Y-36300D01* X6400D01* Y-36650D01* D02* G37* G36* X-24600Y-37150D02* X-26400D01* Y-36800D01* X-24600D01* Y-37150D01* D02* G37* G36* X-61100D02* X-62900D01* Y-36800D01* X-61100D01* Y-37150D01* D02* G37* G36* X15150Y-37400D02* X13850D01* Y-37050D01* X15150D01* Y-37400D01* D02* G37* G36* X-66850Y-37900D02* X-68150D01* Y-37550D01* X-66850D01* Y-37900D01* D02* G37* G36* X22650Y-38900D02* X22300D01* Y-37100D01* X22650D01* Y-38900D01* D02* G37* G36* X21700D02* X21350D01* Y-37100D01* X21700D01* Y-38900D01* D02* G37* G36* X15150Y-38950D02* X13850D01* X13850Y-38600D01* X15150D01* X15150Y-38950D01* D02* G37* G36* X-66850Y-39450D02* X-68150D01* X-68150Y-39100D01* X-66850D01* X-66850Y-39450D01* D02* G37* G36* X22650Y-55900D02* X21350D01* X21350Y-55550D01* X22650D01* X22650Y-55900D01* D02* G37* G36* X22650Y-57450D02* X21350D01* Y-57100D01* X22650D01* Y-57450D01* D02* G37* G36* X-32000Y23000D02* X-40586D01* Y58500D01* X-32000D01* Y23000D01* D02* G37* G36* X41673Y68923D02* X38854D01* Y69655D01* X41673D01* Y68923D01* D02* G37* G36* X46239Y67184D02* X45351D01* X45033Y68264D01* X43530D01* X43212Y67184D01* X42295D01* X43745Y71816D01* X44788D01* X46239Y67184D01* D02* G37* G36* X-17859Y-37368D02* X-18194D01* Y-36601D01* X-18695D01* Y-37368D01* X-19030D01* Y-35634D01* X-18695D01* Y-36321D01* X-18194D01* Y-35634D01* X-17859D01* Y-37368D01* D02* G37* G36* X-19775Y-36709D02* Y-37368D01* X-20111D01* Y-36706D01* X-20676Y-35634D01* X-20335D01* X-19947Y-36432D01* X-19565Y-35634D01* X-19210D01* X-19775Y-36709D01* D02* G37* G36* X-14920Y-36717D02* X-15975D01* Y-36443D01* X-14920D01* Y-36717D01* D02* G37* G36* X-13363Y-37368D02* X-13665D01* Y-36579D01* X-13662Y-36474D01* X-13659Y-36366D01* X-13654Y-36258D01* X-13648Y-36205D01* X-13645Y-36155D01* X-13643Y-36111D01* X-13637Y-36066D01* X-13634Y-36031D01* X-13632Y-35997D01* X-13629Y-35969D01* Y-35950D01* X-13626Y-35939D01* Y-35934D01* X-14122Y-37368D01* X-14535D01* Y-35634D01* X-14233D01* Y-36424D01* Y-36496D01* X-14235Y-36562D01* Y-36621D01* X-14238Y-36673D01* X-14241Y-36715D01* Y-36731D01* Y-36745D01* X-14244Y-36759D01* Y-36767D01* Y-36770D01* Y-36773D01* X-14249Y-36828D01* X-14252Y-36881D01* X-14258Y-36931D01* X-14263Y-36975D01* X-14266Y-37014D01* X-14269Y-37044D01* Y-37055D01* X-14272Y-37064D01* Y-37067D01* Y-37069D01* X-13776Y-35634D01* X-13363D01* Y-37368D01* D02* G37* G36* X-11017Y-35607D02* X-10942Y-35618D01* X-10875Y-35634D01* X-10817Y-35654D01* X-10792Y-35665D01* X-10768Y-35676D01* X-10748Y-35684D01* X-10731Y-35693D01* X-10718Y-35698D01* X-10709Y-35704D01* X-10704Y-35709D01* X-10701D01* X-10637Y-35754D01* X-10582Y-35801D01* X-10535Y-35853D01* X-10496Y-35903D01* X-10463Y-35947D01* X-10452Y-35967D01* X-10441Y-35983D01* X-10432Y-35997D01* X-10427Y-36008D01* X-10421Y-36014D01* Y-36017D01* X-10388Y-36094D01* X-10363Y-36177D01* X-10344Y-36258D01* X-10333Y-36332D01* X-10327Y-36368D01* X-10324Y-36399D01* X-10322Y-36427D01* Y-36452D01* X-10319Y-36471D01* Y-36485D01* Y-36496D01* Y-36499D01* X-10324Y-36601D01* X-10335Y-36695D01* X-10341Y-36740D01* X-10349Y-36778D01* X-10360Y-36817D01* X-10369Y-36850D01* X-10377Y-36881D01* X-10388Y-36909D01* X-10396Y-36933D01* X-10402Y-36953D01* X-10410Y-36967D01* X-10413Y-36981D01* X-10418Y-36986D01* Y-36989D01* X-10460Y-37061D01* X-10504Y-37122D01* X-10549Y-37174D01* X-10596Y-37219D01* X-10634Y-37252D01* X-10665Y-37277D01* X-10679Y-37285D01* X-10687Y-37291D01* X-10693Y-37296D01* X-10695D01* X-10765Y-37330D01* X-10834Y-37354D01* X-10900Y-37374D01* X-10964Y-37385D01* X-10992Y-37391D01* X-11017Y-37393D01* X-11039Y-37396D01* X-11058D01* X-11075Y-37399D01* X-11097D01* X-11158Y-37396D01* X-11216Y-37391D01* X-11272Y-37380D01* X-11324Y-37366D01* X-11374Y-37349D01* X-11418Y-37330D01* X-11463Y-37310D01* X-11499Y-37288D01* X-11535Y-37269D01* X-11565Y-37249D01* X-11590Y-37230D01* X-11612Y-37213D01* X-11629Y-37199D01* X-11640Y-37188D01* X-11648Y-37183D01* X-11651Y-37180D01* X-11493Y-36978D01* X-11457Y-37003D01* X-11421Y-37028D01* X-11391Y-37044D01* X-11363Y-37061D01* X-11338Y-37072D01* X-11321Y-37083D01* X-11310Y-37086D01* X-11308Y-37089D01* X-11274Y-37100D01* X-11241Y-37108D01* X-11208Y-37116D01* X-11177Y-37119D01* X-11150Y-37122D01* X-11128Y-37125D01* X-11108D01* X-11072Y-37122D01* X-11036Y-37119D01* X-10975Y-37102D01* X-10920Y-37078D01* X-10873Y-37050D01* X-10837Y-37022D01* X-10809Y-36997D01* X-10792Y-36981D01* X-10790Y-36978D01* X-10787Y-36975D01* X-10765Y-36945D01* X-10748Y-36911D01* X-10718Y-36836D01* X-10695Y-36759D01* X-10682Y-36681D01* X-10676Y-36643D01* X-10671Y-36609D01* X-10668Y-36579D01* Y-36551D01* X-10665Y-36529D01* Y-36513D01* Y-36501D01* Y-36499D01* X-10668Y-36438D01* X-10671Y-36382D01* X-10676Y-36332D01* X-10684Y-36285D01* X-10693Y-36241D01* X-10704Y-36202D01* X-10715Y-36166D01* X-10726Y-36136D01* X-10737Y-36108D01* X-10748Y-36083D01* X-10759Y-36064D01* X-10768Y-36047D01* X-10776Y-36036D01* X-10781Y-36028D01* X-10787Y-36022D01* Y-36019D01* X-10812Y-35992D01* X-10837Y-35969D01* X-10862Y-35950D01* X-10889Y-35934D01* X-10942Y-35906D01* X-10992Y-35889D01* X-11039Y-35878D01* X-11056Y-35875D01* X-11072Y-35873D01* X-11086Y-35870D01* X-11139D01* X-11175Y-35875D01* X-11238Y-35889D01* X-11299Y-35909D01* X-11352Y-35931D01* X-11396Y-35956D01* X-11413Y-35967D01* X-11429Y-35975D01* X-11441Y-35983D01* X-11449Y-35989D01* X-11454Y-35992D01* X-11457Y-35994D01* X-11626Y-35792D01* X-11582Y-35756D01* X-11537Y-35726D01* X-11499Y-35698D01* X-11460Y-35679D01* X-11429Y-35665D01* X-11407Y-35654D01* X-11391Y-35648D01* X-11388Y-35645D01* X-11385D01* X-11338Y-35632D01* X-11288Y-35620D01* X-11238Y-35612D01* X-11194Y-35607D01* X-11155Y-35604D01* X-11122Y-35601D01* X-11094D01* X-11017Y-35607D01* D02* G37* G36* X-11712Y-37368D02* X-12044D01* X-12163Y-36964D01* X-12726D01* X-12845Y-37368D01* X-13188D01* X-12645Y-35634D01* X-12255D01* X-11712Y-37368D01* D02* G37* G36* X-16421D02* X-16753D01* Y-36767D01* X-16933D01* X-16992Y-36764D01* X-17044Y-36762D01* X-17097Y-36753D01* X-17144Y-36745D01* X-17188Y-36734D01* X-17230Y-36723D01* X-17266Y-36709D01* X-17299Y-36695D01* X-17330Y-36684D01* X-17357Y-36670D01* X-17379Y-36659D01* X-17399Y-36648D01* X-17413Y-36640D01* X-17424Y-36632D01* X-17429Y-36629D01* X-17432Y-36626D01* X-17465Y-36598D01* X-17493Y-36568D01* X-17518Y-36532D01* X-17540Y-36499D01* X-17557Y-36463D01* X-17573Y-36427D01* X-17595Y-36355D01* X-17601Y-36321D01* X-17607Y-36291D01* X-17612Y-36260D01* X-17615Y-36235D01* X-17618Y-36216D01* Y-36202D01* Y-36191D01* Y-36188D01* X-17615Y-36138D01* X-17609Y-36091D01* X-17601Y-36047D01* X-17590Y-36008D01* X-17573Y-35972D01* X-17560Y-35936D01* X-17543Y-35906D01* X-17526Y-35878D01* X-17507Y-35856D01* X-17490Y-35834D01* X-17476Y-35817D01* X-17462Y-35801D01* X-17449Y-35789D01* X-17440Y-35781D01* X-17435Y-35778D01* X-17432Y-35776D01* X-17396Y-35751D01* X-17357Y-35729D01* X-17316Y-35709D01* X-17274Y-35693D01* X-17188Y-35668D01* X-17105Y-35651D01* X-17066Y-35645D01* X-17030Y-35643D01* X-16997Y-35640D01* X-16970Y-35637D01* X-16947Y-35634D01* X-16421D01* Y-37368D01* D02* G37* G36* X19000Y-71500D02* X-19000D01* Y-64500D01* X19000D01* Y-71500D01* D02* G37* G36* X-26087Y2500D02* X-68913D01* Y9500D01* X-26087D01* Y2500D01* D02* G37* G36* X37375Y63700D02* X24625D01* Y75200D01* X37375D01* Y63700D01* D02* G37* G36* X-16051Y-73157D02* X-16010Y-73164D01* X-15977Y-73175D01* X-15951Y-73190D01* X-15925Y-73205D01* X-15910Y-73216D01* X-15899Y-73223D01* X-15895Y-73227D01* X-15869Y-73257D01* X-15851Y-73286D01* X-15840Y-73320D01* X-15832Y-73346D01* X-15825Y-73371D01* X-15821Y-73394D01* Y-73408D01* Y-73412D01* X-15825Y-73453D01* X-15832Y-73490D01* X-15843Y-73523D01* X-15858Y-73549D01* X-15873Y-73571D01* X-15884Y-73586D01* X-15891Y-73597D01* X-15895Y-73601D01* X-15925Y-73627D01* X-15958Y-73645D01* X-15991Y-73656D01* X-16021Y-73664D01* X-16051Y-73671D01* X-16073Y-73675D01* X-16091D01* X-16132Y-73671D01* X-16173Y-73664D01* X-16206Y-73653D01* X-16236Y-73638D01* X-16258Y-73623D01* X-16273Y-73612D01* X-16284Y-73605D01* X-16287Y-73601D01* X-16313Y-73571D01* X-16332Y-73538D01* X-16347Y-73508D01* X-16354Y-73479D01* X-16361Y-73453D01* X-16365Y-73431D01* Y-73416D01* Y-73412D01* X-16361Y-73375D01* X-16354Y-73338D01* X-16339Y-73308D01* X-16328Y-73283D01* X-16313Y-73260D01* X-16298Y-73246D01* X-16291Y-73234D01* X-16287Y-73231D01* X-16258Y-73205D01* X-16225Y-73186D01* X-16191Y-73172D01* X-16162Y-73164D01* X-16136Y-73157D01* X-16114Y-73153D01* X-16091D01* X-16051Y-73157D01* D02* G37* G36* X2705Y-75784D02* X2257D01* Y-74759D01* X1587D01* Y-75784D01* X1140D01* Y-73468D01* X1587D01* Y-74385D01* X2257D01* Y-73468D01* X2705D01* Y-75784D01* D02* G37* G36* X-13853Y-75784D02* X-14330D01* X-15055Y-73468D01* X-14611D01* X-14097Y-75358D01* X-13590Y-73468D01* X-13128D01* X-13853Y-75784D01* D02* G37* G36* X6708Y-75784D02* X6305D01* Y-74729D01* X6308Y-74589D01* X6312Y-74444D01* X6320Y-74300D01* X6327Y-74230D01* X6331Y-74163D01* X6334Y-74104D01* X6342Y-74045D01* X6346Y-73997D01* X6349Y-73952D01* X6353Y-73915D01* Y-73889D01* X6357Y-73875D01* Y-73867D01* X5694Y-75784D01* X5143D01* Y-73468D01* X5546D01* Y-74522D01* Y-74618D01* X5543Y-74707D01* Y-74785D01* X5539Y-74855D01* X5535Y-74911D01* Y-74933D01* Y-74951D01* X5531Y-74970D01* Y-74981D01* Y-74985D01* Y-74988D01* X5524Y-75062D01* X5520Y-75133D01* X5513Y-75199D01* X5506Y-75258D01* X5502Y-75310D01* X5498Y-75351D01* Y-75366D01* X5494Y-75377D01* Y-75380D01* Y-75384D01* X6157Y-73468D01* X6708D01* Y-75784D01* D02* G37* G36* X-5302D02* X-5705D01* Y-74729D01* X-5702Y-74589D01* X-5698Y-74444D01* X-5691Y-74300D01* X-5683Y-74230D01* X-5680Y-74163D01* X-5676Y-74104D01* X-5668Y-74045D01* X-5665Y-73997D01* X-5661Y-73952D01* X-5657Y-73915D01* Y-73889D01* X-5654Y-73875D01* Y-73867D01* X-6316Y-75784D01* X-6867D01* Y-73468D01* X-6464D01* Y-74522D01* Y-74618D01* X-6468Y-74707D01* Y-74785D01* X-6471Y-74855D01* X-6475Y-74911D01* Y-74933D01* Y-74951D01* X-6479Y-74970D01* Y-74981D01* Y-74985D01* Y-74988D01* X-6486Y-75062D01* X-6490Y-75133D01* X-6497Y-75199D01* X-6505Y-75258D01* X-6508Y-75310D01* X-6512Y-75351D01* Y-75366D01* X-6516Y-75377D01* Y-75380D01* Y-75384D01* X-5853Y-73468D01* X-5302D01* Y-75784D01* D02* G37* G36* X9842Y-73431D02* X9942Y-73445D01* X10031Y-73468D01* X10108Y-73493D01* X10142Y-73508D01* X10175Y-73523D01* X10201Y-73534D01* X10223Y-73545D01* X10242Y-73553D01* X10253Y-73560D01* X10260Y-73567D01* X10264D01* X10349Y-73627D01* X10423Y-73690D01* X10486Y-73760D01* X10538Y-73826D01* X10582Y-73886D01* X10597Y-73912D01* X10612Y-73934D01* X10623Y-73952D01* X10630Y-73967D01* X10638Y-73975D01* Y-73978D01* X10682Y-74082D01* X10715Y-74193D01* X10741Y-74300D01* X10756Y-74400D01* X10763Y-74448D01* X10767Y-74489D01* X10771Y-74526D01* Y-74559D01* X10774Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X10767Y-74759D01* X10752Y-74885D01* X10745Y-74944D01* X10734Y-74996D01* X10719Y-75047D01* X10708Y-75092D01* X10697Y-75133D01* X10682Y-75170D01* X10671Y-75203D01* X10663Y-75229D01* X10652Y-75247D01* X10649Y-75266D01* X10641Y-75273D01* Y-75277D01* X10586Y-75373D01* X10526Y-75454D01* X10467Y-75525D01* X10404Y-75584D01* X10353Y-75628D01* X10312Y-75662D01* X10293Y-75673D01* X10282Y-75680D01* X10275Y-75688D01* X10271D01* X10179Y-75732D01* X10086Y-75765D01* X9997Y-75791D01* X9912Y-75806D01* X9875Y-75813D01* X9842Y-75817D01* X9812Y-75821D01* X9787D01* X9764Y-75824D01* X9735D01* X9653Y-75821D01* X9576Y-75813D01* X9502Y-75799D01* X9431Y-75780D01* X9365Y-75758D01* X9306Y-75732D01* X9246Y-75706D01* X9198Y-75677D01* X9150Y-75651D01* X9109Y-75625D01* X9076Y-75599D01* X9047Y-75577D01* X9024Y-75558D01* X9009Y-75543D01* X8998Y-75536D01* X8995Y-75532D01* X9206Y-75262D01* X9254Y-75295D01* X9302Y-75329D01* X9342Y-75351D01* X9380Y-75373D01* X9413Y-75388D01* X9435Y-75403D01* X9450Y-75406D01* X9454Y-75410D01* X9498Y-75425D01* X9542Y-75436D01* X9587Y-75447D01* X9627Y-75451D01* X9664Y-75454D01* X9694Y-75458D01* X9720D01* X9768Y-75454D01* X9816Y-75451D01* X9898Y-75429D01* X9972Y-75395D01* X10034Y-75358D01* X10082Y-75321D01* X10120Y-75288D01* X10142Y-75266D01* X10145Y-75262D01* X10149Y-75258D01* X10179Y-75218D01* X10201Y-75173D01* X10242Y-75073D01* X10271Y-74970D01* X10290Y-74866D01* X10297Y-74814D01* X10305Y-74770D01* X10308Y-74729D01* Y-74692D01* X10312Y-74663D01* Y-74641D01* Y-74626D01* Y-74622D01* X10308Y-74541D01* X10305Y-74467D01* X10297Y-74400D01* X10286Y-74337D01* X10275Y-74278D01* X10260Y-74226D01* X10245Y-74178D01* X10231Y-74137D01* X10216Y-74100D01* X10201Y-74067D01* X10186Y-74041D01* X10175Y-74019D01* X10164Y-74004D01* X10157Y-73993D01* X10149Y-73986D01* Y-73982D01* X10116Y-73945D01* X10082Y-73915D01* X10049Y-73889D01* X10012Y-73867D01* X9942Y-73830D01* X9875Y-73808D01* X9812Y-73793D01* X9790Y-73790D01* X9768Y-73786D01* X9749Y-73782D01* X9679D01* X9631Y-73790D01* X9546Y-73808D01* X9465Y-73834D01* X9394Y-73864D01* X9335Y-73897D01* X9313Y-73912D01* X9291Y-73923D01* X9276Y-73934D01* X9265Y-73941D01* X9257Y-73945D01* X9254Y-73949D01* X9028Y-73678D01* X9087Y-73630D01* X9146Y-73590D01* X9198Y-73553D01* X9250Y-73527D01* X9291Y-73508D01* X9320Y-73493D01* X9342Y-73486D01* X9346Y-73482D01* X9350D01* X9413Y-73464D01* X9479Y-73449D01* X9546Y-73438D01* X9605Y-73431D01* X9657Y-73427D01* X9701Y-73423D01* X9738D01* X9842Y-73431D01* D02* G37* G36* X-2168D02* X-2068Y-73445D01* X-1980Y-73468D01* X-1902Y-73493D01* X-1869Y-73508D01* X-1835Y-73523D01* X-1809Y-73534D01* X-1787Y-73545D01* X-1769Y-73553D01* X-1757Y-73560D01* X-1750Y-73567D01* X-1746D01* X-1661Y-73627D01* X-1587Y-73690D01* X-1524Y-73760D01* X-1473Y-73826D01* X-1428Y-73886D01* X-1413Y-73912D01* X-1399Y-73934D01* X-1388Y-73952D01* X-1380Y-73967D01* X-1373Y-73975D01* Y-73978D01* X-1328Y-74082D01* X-1295Y-74193D01* X-1269Y-74300D01* X-1254Y-74400D01* X-1247Y-74448D01* X-1243Y-74489D01* X-1240Y-74526D01* Y-74559D01* X-1236Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X-1243Y-74759D01* X-1258Y-74885D01* X-1265Y-74944D01* X-1276Y-74996D01* X-1291Y-75047D01* X-1302Y-75092D01* X-1314Y-75133D01* X-1328Y-75170D01* X-1339Y-75203D01* X-1347Y-75229D01* X-1358Y-75247D01* X-1362Y-75266D01* X-1369Y-75273D01* Y-75277D01* X-1424Y-75373D01* X-1484Y-75454D01* X-1543Y-75525D01* X-1606Y-75584D01* X-1658Y-75628D01* X-1698Y-75662D01* X-1717Y-75673D01* X-1728Y-75680D01* X-1735Y-75688D01* X-1739D01* X-1832Y-75732D01* X-1924Y-75765D01* X-2013Y-75791D01* X-2098Y-75806D01* X-2135Y-75813D01* X-2168Y-75817D01* X-2198Y-75821D01* X-2224D01* X-2246Y-75824D01* X-2276D01* X-2357Y-75821D01* X-2435Y-75813D01* X-2509Y-75799D01* X-2579Y-75780D01* X-2646Y-75758D01* X-2705Y-75732D01* X-2764Y-75706D01* X-2812Y-75677D01* X-2860Y-75651D01* X-2901Y-75625D01* X-2934Y-75599D01* X-2964Y-75577D01* X-2986Y-75558D01* X-3001Y-75543D01* X-3012Y-75536D01* X-3015Y-75532D01* X-2805Y-75262D01* X-2757Y-75295D01* X-2708Y-75329D01* X-2668Y-75351D01* X-2631Y-75373D01* X-2597Y-75388D01* X-2575Y-75403D01* X-2560Y-75406D01* X-2557Y-75410D01* X-2512Y-75425D01* X-2468Y-75436D01* X-2424Y-75447D01* X-2383Y-75451D01* X-2346Y-75454D01* X-2316Y-75458D01* X-2290D01* X-2242Y-75454D01* X-2194Y-75451D01* X-2113Y-75429D01* X-2039Y-75395D01* X-1976Y-75358D01* X-1928Y-75321D01* X-1891Y-75288D01* X-1869Y-75266D01* X-1865Y-75262D01* X-1861Y-75258D01* X-1832Y-75218D01* X-1809Y-75173D01* X-1769Y-75073D01* X-1739Y-74970D01* X-1720Y-74866D01* X-1713Y-74814D01* X-1706Y-74770D01* X-1702Y-74729D01* Y-74692D01* X-1698Y-74663D01* Y-74641D01* Y-74626D01* Y-74622D01* X-1702Y-74541D01* X-1706Y-74467D01* X-1713Y-74400D01* X-1724Y-74337D01* X-1735Y-74278D01* X-1750Y-74226D01* X-1765Y-74178D01* X-1780Y-74137D01* X-1795Y-74100D01* X-1809Y-74067D01* X-1824Y-74041D01* X-1835Y-74019D01* X-1846Y-74004D01* X-1854Y-73993D01* X-1861Y-73986D01* Y-73982D01* X-1894Y-73945D01* X-1928Y-73915D01* X-1961Y-73889D01* X-1998Y-73867D01* X-2068Y-73830D01* X-2135Y-73808D01* X-2198Y-73793D01* X-2220Y-73790D01* X-2242Y-73786D01* X-2261Y-73782D01* X-2331D01* X-2379Y-73790D01* X-2464Y-73808D01* X-2546Y-73834D01* X-2616Y-73864D01* X-2675Y-73897D01* X-2697Y-73912D01* X-2719Y-73923D01* X-2734Y-73934D01* X-2745Y-73941D01* X-2753Y-73945D01* X-2757Y-73949D01* X-2982Y-73678D01* X-2923Y-73630D01* X-2864Y-73590D01* X-2812Y-73553D01* X-2760Y-73527D01* X-2719Y-73508D01* X-2690Y-73493D01* X-2668Y-73486D01* X-2664Y-73482D01* X-2660D01* X-2597Y-73464D01* X-2531Y-73449D01* X-2464Y-73438D01* X-2405Y-73431D01* X-2353Y-73427D01* X-2309Y-73423D01* X-2272D01* X-2168Y-73431D01* D02* G37* G36* X17915D02* X18012Y-73445D01* X18097Y-73468D01* X18174Y-73493D01* X18208Y-73508D01* X18237Y-73519D01* X18263Y-73531D01* X18285Y-73542D01* X18304Y-73549D01* X18315Y-73556D01* X18322Y-73564D01* X18326D01* X18407Y-73619D01* X18482Y-73686D01* X18544Y-73752D01* X18600Y-73819D01* X18641Y-73878D01* X18655Y-73904D01* X18670Y-73926D01* X18681Y-73945D01* X18689Y-73960D01* X18696Y-73967D01* Y-73971D01* X18741Y-74074D01* X18774Y-74185D01* X18796Y-74296D01* X18811Y-74396D01* X18818Y-74444D01* X18822Y-74489D01* X18826Y-74526D01* Y-74559D01* X18829Y-74585D01* Y-74603D01* Y-74618D01* Y-74622D01* X18826Y-74729D01* X18818Y-74829D01* X18807Y-74922D01* X18789Y-75011D01* X18770Y-75092D01* X18752Y-75162D01* X18729Y-75229D01* X18703Y-75292D01* X18681Y-75344D01* X18659Y-75388D01* X18641Y-75429D01* X18618Y-75462D01* X18604Y-75484D01* X18593Y-75503D01* X18585Y-75514D01* X18581Y-75517D01* X18533Y-75573D01* X18478Y-75617D01* X18422Y-75658D01* X18367Y-75695D01* X18308Y-75725D01* X18248Y-75750D01* X18189Y-75769D01* X18134Y-75788D01* X18082Y-75799D01* X18034Y-75810D01* X17989Y-75813D01* X17952Y-75821D01* X17923D01* X17897Y-75824D01* X17878D01* X17793Y-75821D01* X17716Y-75817D01* X17645Y-75810D01* X17586Y-75799D01* X17534Y-75788D01* X17497Y-75780D01* X17482Y-75776D01* X17471D01* X17468Y-75773D01* X17464D01* X17394Y-75750D01* X17327Y-75725D01* X17264Y-75695D01* X17205Y-75669D01* X17157Y-75647D01* X17120Y-75628D01* X17105Y-75621D01* X17094Y-75614D01* X17090Y-75610D01* X17087D01* Y-74467D01* X17945D01* X17901Y-74818D01* X17523D01* Y-75392D01* X17579Y-75418D01* X17634Y-75440D01* X17690Y-75454D01* X17741Y-75462D01* X17790Y-75469D01* X17827Y-75473D01* X17860D01* X17904Y-75469D01* X17949Y-75466D01* X18026Y-75443D01* X18093Y-75410D01* X18145Y-75373D01* X18189Y-75340D01* X18219Y-75306D01* X18234Y-75284D01* X18241Y-75281D01* Y-75277D01* X18263Y-75236D01* X18282Y-75192D01* X18300Y-75144D01* X18315Y-75092D01* X18337Y-74985D01* X18352Y-74877D01* X18356Y-74826D01* X18359Y-74777D01* X18363Y-74733D01* Y-74696D01* X18367Y-74666D01* Y-74641D01* Y-74626D01* Y-74622D01* X18363Y-74541D01* X18359Y-74467D01* X18352Y-74400D01* X18341Y-74337D01* X18330Y-74278D01* X18315Y-74226D01* X18300Y-74178D01* X18285Y-74137D01* X18271Y-74100D01* X18259Y-74067D01* X18245Y-74041D01* X18234Y-74019D01* X18223Y-74004D01* X18215Y-73993D01* X18208Y-73986D01* Y-73982D01* X18178Y-73945D01* X18145Y-73915D01* X18112Y-73889D01* X18078Y-73867D01* X18008Y-73830D01* X17945Y-73808D01* X17886Y-73793D01* X17864Y-73790D01* X17841Y-73786D01* X17823Y-73782D01* X17756D01* X17716Y-73790D01* X17675Y-73797D01* X17645Y-73804D01* X17616Y-73812D01* X17597Y-73819D01* X17582Y-73823D01* X17579Y-73826D01* X17538Y-73845D01* X17501Y-73867D01* X17460Y-73889D01* X17427Y-73912D01* X17397Y-73934D01* X17375Y-73952D01* X17357Y-73963D01* X17353Y-73967D01* X17109Y-73716D01* X17168Y-73660D01* X17223Y-73612D01* X17279Y-73575D01* X17327Y-73542D01* X17368Y-73519D01* X17397Y-73501D01* X17420Y-73493D01* X17423Y-73490D01* X17427D01* X17490Y-73468D01* X17553Y-73453D01* X17619Y-73438D01* X17679Y-73431D01* X17730Y-73427D01* X17775Y-73423D01* X17812D01* X17915Y-73431D01* D02* G37* G36* X15784Y-73956D02* X15843Y-73963D01* X15899Y-73975D01* X15947Y-73989D01* X15988Y-74004D01* X16017Y-74015D01* X16036Y-74023D01* X16043Y-74026D01* X16095Y-74056D01* X16139Y-74089D01* X16176Y-74119D01* X16206Y-74148D01* X16228Y-74178D01* X16247Y-74200D01* X16254Y-74215D01* X16258Y-74219D01* X16276Y-73997D01* X16657D01* Y-75784D01* X16225D01* Y-74526D01* X16169Y-74459D01* X16143Y-74433D01* X16117Y-74407D01* X16095Y-74389D01* X16077Y-74374D01* X16065Y-74367D01* X16062Y-74363D01* X16025Y-74341D01* X15988Y-74326D01* X15951Y-74311D01* X15921Y-74304D01* X15895Y-74300D01* X15873Y-74296D01* X15821D01* X15795Y-74300D01* X15769Y-74308D01* X15751Y-74311D01* X15736Y-74319D01* X15725Y-74326D01* X15721Y-74330D01* X15718D01* X15703Y-74344D01* X15688Y-74363D01* X15669Y-74400D01* X15666Y-74418D01* X15662Y-74430D01* X15658Y-74441D01* Y-74444D01* X15651Y-74478D01* X15647Y-74515D01* X15644Y-74589D01* X15640Y-74626D01* Y-74652D01* Y-74670D01* Y-74677D01* Y-75784D01* X15207D01* Y-74496D01* X15214Y-74407D01* X15229Y-74326D01* X15248Y-74256D01* X15274Y-74200D01* X15300Y-74156D01* X15318Y-74123D01* X15333Y-74104D01* X15340Y-74097D01* X15392Y-74049D01* X15455Y-74011D01* X15518Y-73986D01* X15581Y-73971D01* X15636Y-73960D01* X15658Y-73956D01* X15681D01* X15695Y-73952D01* X15721D01* X15784Y-73956D01* D02* G37* G36* X8913Y-75784D02* X8469D01* X8310Y-75244D01* X7559D01* X7400Y-75784D01* X6941D01* X7666Y-73468D01* X8188D01* X8913Y-75784D01* D02* G37* G36* X-3097D02* X-3541D01* X-3700Y-75244D01* X-4451D01* X-4610Y-75784D01* X-5069D01* X-4344Y-73468D01* X-3822D01* X-3097Y-75784D01* D02* G37* G36* X-9465Y-75784D02* X-10874D01* X-10922Y-75406D01* X-9909D01* Y-73468D01* X-9465D01* Y-75784D01* D02* G37* G36* X-15448Y-74330D02* X-15947D01* Y-75454D01* X-15433D01* Y-75784D01* X-16850D01* Y-75454D01* X-16376D01* Y-73997D01* X-15448D01* Y-74330D01* D02* G37* G36* X-18245Y-73956D02* X-18185Y-73963D01* X-18130Y-73975D01* X-18082Y-73989D01* X-18041Y-74004D01* X-18012Y-74015D01* X-17993Y-74023D01* X-17986Y-74026D01* X-17934Y-74056D01* X-17889Y-74089D01* X-17853Y-74119D01* X-17823Y-74148D01* X-17801Y-74178D01* X-17782Y-74200D01* X-17775Y-74215D01* X-17771Y-74219D01* X-17753Y-73997D01* X-17371D01* Y-75784D01* X-17804D01* Y-74526D01* X-17860Y-74459D01* X-17886Y-74433D01* X-17912Y-74407D01* X-17934Y-74389D01* X-17952Y-74374D01* X-17964Y-74367D01* X-17967Y-74363D01* X-18004Y-74341D01* X-18041Y-74326D01* X-18078Y-74311D01* X-18108Y-74304D01* X-18134Y-74300D01* X-18156Y-74296D01* X-18208D01* X-18234Y-74300D01* X-18259Y-74308D01* X-18278Y-74311D01* X-18293Y-74319D01* X-18304Y-74326D01* X-18308Y-74330D01* X-18311D01* X-18326Y-74344D01* X-18341Y-74363D01* X-18359Y-74400D01* X-18363Y-74418D01* X-18367Y-74430D01* X-18371Y-74441D01* Y-74444D01* X-18378Y-74478D01* X-18382Y-74515D01* X-18385Y-74589D01* X-18389Y-74626D01* Y-74652D01* Y-74670D01* Y-74677D01* Y-75784D01* X-18822D01* Y-74496D01* X-18814Y-74407D01* X-18800Y-74326D01* X-18781Y-74256D01* X-18755Y-74200D01* X-18729Y-74156D01* X-18711Y-74123D01* X-18696Y-74104D01* X-18689Y-74097D01* X-18637Y-74049D01* X-18574Y-74011D01* X-18511Y-73986D01* X-18448Y-73971D01* X-18393Y-73960D01* X-18371Y-73956D01* X-18348D01* X-18334Y-73952D01* X-18308D01* X-18245Y-73956D01* D02* G37* G36* X13642Y-74137D02* X13668Y-74104D01* X13694Y-74074D01* X13723Y-74052D01* X13757Y-74030D01* X13823Y-73997D01* X13890Y-73975D01* X13949Y-73963D01* X13975Y-73956D01* X14001D01* X14019Y-73952D01* X14045D01* X14123Y-73956D01* X14197Y-73971D01* X14260Y-73989D01* X14319Y-74011D01* X14363Y-74037D01* X14397Y-74056D01* X14419Y-74071D01* X14423Y-74074D01* X14426D01* X14482Y-74123D01* X14534Y-74178D01* X14578Y-74234D01* X14611Y-74285D01* X14637Y-74333D01* X14659Y-74374D01* X14667Y-74385D01* X14671Y-74396D01* X14674Y-74404D01* Y-74407D01* X14704Y-74489D01* X14722Y-74570D01* X14737Y-74652D01* X14748Y-74726D01* X14756Y-74792D01* Y-74818D01* X14759Y-74844D01* Y-74862D01* Y-74877D01* Y-74885D01* Y-74888D01* X14756Y-74966D01* X14752Y-75044D01* X14744Y-75110D01* X14733Y-75177D01* X14719Y-75240D01* X14704Y-75295D01* X14689Y-75347D01* X14674Y-75392D01* X14659Y-75436D01* X14645Y-75469D01* X14630Y-75503D01* X14615Y-75529D01* X14604Y-75547D01* X14596Y-75562D01* X14589Y-75569D01* Y-75573D01* X14556Y-75617D01* X14519Y-75654D01* X14478Y-75688D01* X14437Y-75717D01* X14393Y-75743D01* X14352Y-75762D01* X14267Y-75791D01* X14193Y-75810D01* X14160Y-75817D01* X14130Y-75821D01* X14108Y-75824D01* X14075D01* X14019Y-75821D01* X13964Y-75813D01* X13916Y-75802D01* X13875Y-75791D01* X13838Y-75780D01* X13812Y-75769D01* X13797Y-75762D01* X13790Y-75758D01* X13746Y-75732D01* X13705Y-75702D01* X13675Y-75669D01* X13653Y-75639D01* X13634Y-75614D01* X13623Y-75591D01* X13620Y-75577D01* X13616Y-75573D01* X13598Y-75784D01* X13209D01* Y-73308D01* X13642Y-73260D01* Y-74137D01* D02* G37* G36* X4773Y-76380D02* X3075D01* Y-76017D01* X4773D01* Y-76380D01* D02* G37* G36* X-7237D02* X-8935Y-76380D01* Y-76017D01* X-7237Y-76017D01* Y-76380D01* D02* G37* G36* X-74151Y-16041D02* X-74562D01* Y-14456D01* X-74151D01* Y-16041D01* D02* G37* G36* X-74941Y-16856D02* X-75282Y-17393D01* X-73564D01* Y-16773D01* X-73173D01* Y-18379D01* X-73564D01* Y-17875D01* X-75777D01* Y-17459D01* X-75274Y-16657D01* X-74941Y-16856D01* D02* G37* G36* X-75161Y-19107D02* X-75216Y-19157D01* X-75257Y-19202D01* X-75295Y-19244D01* X-75324Y-19282D01* X-75345Y-19311D01* X-75357Y-19331D01* X-75365Y-19348D01* X-75369Y-19352D01* X-75390Y-19394D01* X-75403Y-19440D01* X-75415Y-19485D01* X-75419Y-19527D01* X-75424Y-19564D01* X-75428Y-19593D01* Y-19618D01* X-75424Y-19681D01* X-75411Y-19735D01* X-75394Y-19781D01* X-75378Y-19822D01* X-75361Y-19851D01* X-75345Y-19876D01* X-75332Y-19889D01* X-75328Y-19893D01* X-75286Y-19926D01* X-75245Y-19951D01* X-75199Y-19968D01* X-75153Y-19980D01* X-75116Y-19989D01* X-75082Y-19993D01* X-75062D01* X-75053D01* X-74987Y-19989D01* X-74920Y-19976D01* X-74858Y-19964D01* X-74804Y-19947D01* X-74758Y-19926D01* X-74721Y-19914D01* X-74700Y-19901D01* X-74695Y-19897D01* X-74691D01* X-74625Y-19855D01* X-74550Y-19810D01* X-74479Y-19756D01* X-74409Y-19702D01* X-74350Y-19652D01* X-74300Y-19610D01* X-74284Y-19593D01* X-74271Y-19581D01* X-74263Y-19577D01* X-74259Y-19573D01* X-74209Y-19527D01* X-74155Y-19477D01* X-74038Y-19361D01* X-73918Y-19244D01* X-73801Y-19128D01* X-73747Y-19069D01* X-73697Y-19019D01* X-73651Y-18974D01* X-73614Y-18932D01* X-73581Y-18899D01* X-73556Y-18874D01* X-73539Y-18857D01* X-73535Y-18853D01* X-73173D01* Y-20496D01* X-73572Y-20546D01* Y-19398D01* X-73631Y-19473D01* X-73689Y-19544D01* X-73743Y-19610D01* X-73797Y-19672D01* X-73847Y-19731D01* X-73897Y-19785D01* X-73943Y-19831D01* X-73980Y-19876D01* X-74017Y-19914D01* X-74051Y-19947D01* X-74080Y-19976D01* X-74105Y-20001D01* X-74126Y-20018D01* X-74138Y-20030D01* X-74146Y-20039D01* X-74151Y-20043D01* X-74246Y-20126D01* X-74338Y-20192D01* X-74417Y-20251D01* X-74488Y-20301D01* X-74546Y-20334D01* X-74591Y-20359D01* X-74608Y-20367D01* X-74621Y-20376D01* X-74625Y-20380D01* X-74629D01* X-74712Y-20417D01* X-74791Y-20442D01* X-74866Y-20463D01* X-74937Y-20475D01* X-74995Y-20484D01* X-75037Y-20488D01* X-75057D01* X-75070D01* X-75074D01* X-75078D01* X-75153Y-20484D01* X-75224Y-20471D01* X-75290Y-20455D01* X-75345Y-20438D01* X-75390Y-20421D01* X-75428Y-20405D01* X-75449Y-20392D01* X-75457Y-20388D01* X-75519Y-20346D01* X-75569Y-20301D01* X-75619Y-20251D01* X-75656Y-20205D01* X-75686Y-20163D01* X-75711Y-20130D01* X-75723Y-20105D01* X-75727Y-20101D01* Y-20097D01* X-75761Y-20022D01* X-75785Y-19947D01* X-75802Y-19872D01* X-75815Y-19801D01* X-75823Y-19739D01* X-75827Y-19689D01* Y-19647D01* X-75823Y-19548D01* X-75810Y-19456D01* X-75794Y-19373D01* X-75777Y-19302D01* X-75756Y-19244D01* X-75740Y-19202D01* X-75731Y-19186D01* X-75727Y-19173D01* X-75723Y-19169D01* Y-19165D01* X-75681Y-19090D01* X-75631Y-19024D01* X-75577Y-18961D01* X-75523Y-18907D01* X-75473Y-18861D01* X-75436Y-18828D01* X-75419Y-18815D01* X-75407Y-18807D01* X-75403Y-18799D01* X-75399D01* X-75161Y-19107D01* D02* G37* G36* X-73173Y-21407D02* X-74438Y-21461D01* X-74492D01* X-74550Y-21465D01* X-74608D01* X-74666D01* X-74716D01* X-74754D01* X-74770D01* X-74783D01* X-74787D01* X-74791D01* X-74862D01* X-74924D01* X-74983D01* X-75037Y-21461D01* X-75087D01* X-75132D01* X-75170Y-21457D01* X-75207D01* X-75236D01* X-75261Y-21453D01* X-75282D01* X-75303D01* X-75324Y-21449D01* X-75332D01* X-73618Y-21782D01* Y-22214D01* X-75332Y-22522D01* X-75278Y-22518D01* X-75211Y-22514D01* X-75141D01* X-75070Y-22510D01* X-75007D01* X-74978D01* X-74958D01* X-74937D01* X-74920D01* X-74912D01* X-74908D01* X-74825D01* X-74741Y-22514D01* X-74662D01* X-74591Y-22518D01* X-74529D01* X-74483Y-22522D01* X-74467D01* X-74454D01* X-74446D01* X-74442D01* X-73173Y-22580D01* Y-23046D01* X-75777Y-22901D01* Y-22322D01* X-74084Y-22006D01* X-75777Y-21673D01* Y-21095D01* X-73173Y-20954D01* Y-21407D01* D02* G37* G36* Y-23874D02* X-74325D01* Y-24627D01* X-73173D01* Y-25130D01* X-75777D01* Y-24627D01* X-74746D01* Y-23874D01* X-75777D01* Y-23371D01* X-73173D01* Y-23874D01* D02* G37* G36* Y-27252D02* X-73572Y-27302D01* Y-26262D01* X-74833Y-27289D01* X-75182D01* Y-25775D01* X-74779D01* Y-26728D01* X-73518Y-25696D01* X-73173D01* Y-27252D01* D02* G37* G36* X-74151Y-29544D02* X-74562D01* Y-27959D01* X-74151D01* Y-29544D01* D02* G37* G36* X-31083Y68973D02* X-33902D01* Y69705D01* X-31083D01* Y68973D01* D02* G37* G36* X-26991Y67234D02* X-28374D01* X-28656Y67249D01* X-28789Y67263D01* X-28907Y67286D01* X-29026Y67308D01* X-29129Y67330D01* X-29233Y67360D01* X-29322Y67389D01* X-29403Y67419D01* X-29470Y67448D01* X-29536Y67471D01* X-29581Y67493D01* X-29625Y67515D01* X-29655Y67530D01* X-29669Y67545D01* X-29677D01* X-29773Y67611D01* X-29847Y67678D01* X-29921Y67759D01* X-29980Y67841D01* X-30032Y67929D01* X-30076Y68018D01* X-30106Y68107D01* X-30136Y68188D01* X-30173Y68344D01* X-30187Y68418D01* X-30195Y68477D01* X-30202Y68529D01* Y68566D01* Y68588D01* Y68595D01* X-30187Y68780D01* X-30150Y68943D01* X-30106Y69084D01* X-30047Y69195D01* X-29988Y69284D01* X-29943Y69343D01* X-29906Y69380D01* X-29891Y69395D01* X-29773Y69483D01* X-29647Y69557D01* X-29529Y69609D01* X-29410Y69646D01* X-29314Y69668D01* X-29233Y69683D01* X-29203Y69691D01* X-29166D01* X-29285Y69705D01* X-29396Y69742D01* X-29499Y69787D01* X-29581Y69839D01* X-29655Y69890D01* X-29706Y69927D01* X-29736Y69957D01* X-29751Y69972D01* X-29832Y70083D01* X-29899Y70194D01* X-29943Y70312D01* X-29973Y70416D01* X-29988Y70512D01* X-30002Y70593D01* Y70623D01* Y70645D01* Y70653D01* Y70660D01* X-29995Y70778D01* X-29980Y70882D01* X-29958Y70986D01* X-29928Y71074D01* X-29891Y71163D01* X-29847Y71237D01* X-29803Y71304D01* X-29758Y71363D01* X-29714Y71415D01* X-29669Y71459D01* X-29588Y71533D01* X-29558Y71555D01* X-29536Y71570D01* X-29521Y71585D01* X-29514D01* X-29322Y71681D01* X-29114Y71748D01* X-28915Y71800D01* X-28722Y71829D01* X-28633Y71844D01* X-28552Y71851D01* X-28478Y71859D01* X-28419D01* X-28367Y71866D01* X-26991D01* Y67234D01* D02* G37* G36* X-35625Y63750D02* X-48375D01* Y75250D01* X-35625D01* Y63750D01* D02* G37* G36* X13250Y20500D02* Y13500D01* X-13250D01* Y20500D01* X13250D01* D02* G37* %LPC*% G36* X-33703Y52375D02* X-38335D01* Y51177D01* X-38328Y51110D01* X-38320Y51021D01* X-38306Y50925D01* X-38291Y50814D01* X-38276Y50696D01* X-38217Y50437D01* X-38173Y50303D01* X-38128Y50170D01* X-38069Y50037D01* X-38002Y49904D01* X-37928Y49778D01* X-37839Y49660D01* X-37832Y49652D01* X-37817Y49630D01* X-37788Y49600D01* X-37743Y49563D01* X-37684Y49512D01* X-37617Y49460D01* X-37529Y49408D01* X-37433Y49349D01* X-37321Y49290D01* X-37188Y49238D01* X-37040Y49179D01* X-36878Y49134D01* X-36700Y49097D01* X-36500Y49068D01* X-36285Y49045D01* X-36049Y49038D01* X-38335D01* D01* X-33703D01* Y52375D01* D02* G37* G36* Y48217D02* X-34347D01* Y47713D01* X-36626D01* Y48217D01* X-37277D01* Y47033D01* X-36485Y46929D01* X-36493D01* X-36500Y46922D01* X-36522Y46914D01* X-36552Y46907D01* X-36626Y46877D01* X-36722Y46833D01* X-36826Y46774D01* X-36929Y46700D01* X-37033Y46611D01* X-37129Y46507D01* X-37137Y46492D01* X-37166Y46448D01* X-37203Y46381D01* X-37247Y46293D01* X-37284Y46182D01* X-37321Y46056D01* X-37351Y45908D01* X-37358Y45745D01* Y45693D01* X-37351Y45641D01* X-37344Y45567D01* X-37336Y45479D01* X-37314Y45375D01* X-37292Y45264D01* X-37255Y45153D01* X-37358D01* D01* X-33703D01* Y48217D01* D02* G37* G36* Y44124D02* X-34361D01* Y43096D01* X-36611D01* Y44095D01* X-37277D01* Y42237D01* X-34361D01* Y41290D01* X-38964D01* X-33703D01* Y44124D01* D02* G37* G36* X-38446Y43347D02* X-38454D01* X-38483D01* X-38528Y43340D01* X-38579Y43325D01* X-38631Y43310D01* X-38698Y43288D01* X-38757Y43251D01* X-38816Y43199D01* X-38824Y43192D01* X-38838Y43170D01* X-38861Y43140D01* X-38890Y43088D01* X-38920Y43037D01* X-38942Y42970D01* X-38957Y42889D01* X-38964Y42807D01* Y42763D01* X-38957Y42718D01* X-38942Y42667D01* X-38927Y42607D01* X-38898Y42541D01* X-38861Y42474D01* X-38809Y42415D01* X-38802Y42408D01* X-38779Y42393D01* X-38750Y42363D01* X-38705Y42334D01* X-38653Y42311D01* X-38594Y42282D01* X-38520Y42267D01* X-38446Y42260D01* X-38439D01* X-38409D01* X-38365Y42267D01* X-38313Y42282D01* X-38254Y42297D01* X-38195Y42326D01* X-38128Y42363D01* X-38069Y42415D01* X-38061Y42422D01* X-38047Y42445D01* X-38025Y42474D01* X-37995Y42519D01* X-37965Y42578D01* X-37943Y42644D01* X-37928Y42726D01* X-37921Y42807D01* Y42844D01* X-37928Y42889D01* X-37943Y42948D01* X-37958Y43007D01* X-37980Y43074D01* X-38017Y43140D01* X-38069Y43199D01* X-38076Y43207D01* X-38098Y43222D01* X-38128Y43244D01* X-38173Y43273D01* X-38224Y43303D01* X-38291Y43325D01* X-38365Y43340D01* X-38446Y43347D01* D02* G37* G36* X-33703Y40513D02* D01* Y39270D01* X-37277Y40513D01* Y37087D01* X-33703Y38330D01* Y37087D01* Y40513D01* D02* G37* G36* X-35494Y36391D02* X-35583D01* X-35627Y36384D01* X-35686D01* X-35812Y36369D01* X-35960Y36347D01* X-36115Y36310D01* X-36285Y36266D01* X-36448Y36199D01* X-36456D01* X-36470Y36192D01* X-36493Y36177D01* X-36522Y36162D01* X-36596Y36118D01* X-36693Y36051D01* X-36803Y35970D01* X-36915Y35873D01* X-37025Y35762D01* X-37122Y35629D01* Y35622D01* X-37129Y35614D01* X-37144Y35592D01* X-37159Y35563D01* X-37196Y35481D01* X-37247Y35378D01* X-37292Y35252D01* X-37329Y35096D01* X-37358Y34934D01* X-37366Y34749D01* Y34682D01* X-37358Y34630D01* X-37351Y34571D01* X-37344Y34497D01* X-37329Y34423D01* X-37307Y34334D01* X-37247Y34157D01* X-37211Y34060D01* X-37166Y33964D01* X-37107Y33875D01* X-37040Y33787D01* X-36966Y33698D01* X-36885Y33616D01* X-36878Y33609D01* X-36863Y33602D01* X-36833Y33579D01* X-36796Y33550D01* X-36752Y33520D01* X-36693Y33483D01* X-36619Y33446D01* X-36544Y33402D01* X-36456Y33365D01* X-36352Y33328D01* X-36248Y33291D01* X-36130Y33261D01* X-36004Y33232D01* X-35871Y33209D01* X-35730Y33202D01* X-35583Y33195D01* X-37366D01* X-33621D01* Y34741D01* X-33629Y34793D01* X-33636Y34867D01* X-33651Y34941D01* X-33666Y35030D01* X-33688Y35126D01* X-33710Y35230D01* X-33747Y35333D01* X-33784Y35437D01* X-33836Y35548D01* X-33895Y35651D01* X-33962Y35755D01* X-34043Y35851D01* X-34132Y35940D01* X-34139Y35947D01* X-34154Y35962D01* X-34184Y35984D01* X-34228Y36007D01* X-34280Y36044D01* X-34339Y36081D01* X-34413Y36125D01* X-34495Y36162D01* X-34584Y36206D01* X-34687Y36251D01* X-34798Y36288D01* X-34924Y36317D01* X-35050Y36347D01* X-35190Y36369D01* X-35338Y36384D01* X-35494Y36391D01* D02* G37* G36* X-33703Y32203D02* X-34347D01* Y31700D01* X-36626D01* Y32203D01* X-37277D01* Y31019D01* X-36485Y30915D01* X-36493D01* X-36500Y30908D01* X-36522Y30901D01* X-36552Y30893D01* X-36626Y30864D01* X-36722Y30819D01* X-36826Y30760D01* X-36929Y30686D01* X-37033Y30597D01* X-37129Y30494D01* X-37137Y30479D01* X-37166Y30434D01* X-37203Y30368D01* X-37247Y30279D01* X-37284Y30168D01* X-37321Y30042D01* X-37351Y29894D01* X-37358Y29731D01* Y29680D01* X-37351Y29628D01* X-37344Y29554D01* X-37336Y29465D01* X-37314Y29361D01* X-37292Y29250D01* X-37255Y29139D01* X-37358D01* D01* X-33703D01* Y32203D01* D02* G37* %LPD*% G36* X-34398Y51073D02* X-34413Y51021D01* X-34428Y50947D01* X-34450Y50858D01* X-34487Y50762D01* X-34539Y50659D01* X-34606Y50548D01* X-34694Y50437D01* X-34798Y50333D01* X-34931Y50237D01* X-35094Y50148D01* X-35183Y50111D01* X-35287Y50074D01* X-35390Y50044D01* X-35501Y50022D01* X-35627Y50000D01* X-35760Y49985D01* X-35901Y49970D01* X-36049D01* X-36056D01* X-36093D01* X-36138D01* X-36197Y49978D01* X-36278D01* X-36360Y49985D01* X-36456Y50000D01* X-36552Y50007D01* X-36766Y50044D01* X-36966Y50104D01* X-37062Y50141D01* X-37151Y50185D01* X-37233Y50229D01* X-37299Y50289D01* X-37307D01* X-37314Y50303D01* X-37351Y50348D01* X-37403Y50414D01* X-37462Y50511D01* X-37521Y50636D01* X-37573Y50777D01* X-37610Y50947D01* X-37625Y51036D01* Y51480D01* X-34398D01* Y51073D01* D02* G37* G36* X-33703Y49038D02* X-35989D01* X-35923Y49045D01* X-35834D01* X-35730Y49060D01* X-35605Y49068D01* X-35471Y49090D01* X-35324Y49112D01* X-35175Y49149D01* X-35020Y49186D01* X-34872Y49238D01* X-34717Y49297D01* X-34576Y49371D01* X-34443Y49452D01* X-34317Y49549D01* X-34214Y49660D01* X-34206Y49667D01* X-34191Y49689D01* X-34169Y49719D01* X-34132Y49771D01* X-34095Y49830D01* X-34051Y49904D01* X-34006Y49985D01* X-33962Y50081D01* X-33910Y50192D01* X-33866Y50303D01* X-33821Y50437D01* X-33784Y50570D01* X-33747Y50718D01* X-33725Y50873D01* X-33710Y51036D01* X-33703Y51206D01* Y49038D01* D02* G37* G36* X-34347Y46152D02* X-33703D01* Y45153D01* X-37255D01* X-35879Y45286D01* Y45930D01* X-36582D01* Y45945D01* X-36574Y45974D01* X-36567Y46026D01* X-36544Y46093D01* X-36515Y46174D01* X-36463Y46263D01* X-36397Y46352D01* X-36308Y46448D01* X-36293Y46455D01* X-36256Y46492D01* X-36197Y46537D01* X-36115Y46589D01* X-36012Y46655D01* X-35879Y46722D01* X-35730Y46788D01* X-35560Y46848D01* X-34347D01* Y46152D01* D02* G37* G36* X-34443Y38789D02* X-37277Y37960D01* Y39603D01* X-34443Y38789D01* D02* G37* G36* X-35812Y34038D02* X-35819D01* X-35827D01* X-35849D01* X-35879Y34046D01* X-35952Y34053D01* X-36049Y34068D01* X-36145Y34090D01* X-36256Y34127D01* X-36360Y34179D01* X-36456Y34238D01* X-36463Y34245D01* X-36493Y34268D01* X-36530Y34312D01* X-36582Y34371D01* X-36626Y34438D01* X-36663Y34527D01* X-36693Y34630D01* X-36700Y34749D01* Y34800D01* X-36685Y34860D01* X-36670Y34934D01* X-36641Y35015D01* X-36604Y35104D01* X-36544Y35193D01* X-36463Y35274D01* X-36456Y35281D01* X-36419Y35304D01* X-36367Y35341D01* X-36293Y35378D01* X-36197Y35422D01* X-36086Y35459D01* X-35960Y35489D01* X-35812Y35511D01* Y34038D01* D02* G37* G36* X-35153Y35496D02* X-35124D01* X-35050Y35481D01* X-34953Y35459D01* X-34850Y35422D01* X-34739Y35378D01* X-34635Y35318D01* X-34539Y35237D01* X-34532Y35222D01* X-34502Y35193D01* X-34465Y35141D01* X-34428Y35067D01* X-34384Y34978D01* X-34347Y34874D01* X-34317Y34763D01* X-34310Y34630D01* Y34593D01* X-34317Y34541D01* Y34482D01* X-34324Y34416D01* X-34339Y34342D01* X-34376Y34186D01* X-34384Y34179D01* X-34391Y34149D01* X-34406Y34105D01* X-34435Y34046D01* X-34465Y33979D01* X-34510Y33898D01* X-34554Y33801D01* X-34613Y33705D01* X-34088Y33343D01* X-34080Y33357D01* X-34051Y33387D01* X-34006Y33446D01* X-33955Y33520D01* X-33895Y33609D01* X-33836Y33720D01* X-33777Y33831D01* X-33733Y33957D01* X-33725Y33972D01* X-33718Y34016D01* X-33696Y34083D01* X-33681Y34171D01* X-33658Y34275D01* X-33636Y34393D01* X-33629Y34527D01* X-33621Y34660D01* Y33195D01* X-35457D01* X-35397Y33202D01* X-35331Y33209D01* X-35190Y33224D01* Y35503D01* X-35183D01* X-35175D01* X-35153Y35496D01* D02* G37* G36* X-34347Y30138D02* X-33703D01* Y29139D01* X-37255D01* X-35879Y29273D01* Y29916D01* X-36582D01* Y29931D01* X-36574Y29961D01* X-36567Y30013D01* X-36544Y30079D01* X-36515Y30161D01* X-36463Y30249D01* X-36397Y30338D01* X-36308Y30434D01* X-36293Y30442D01* X-36256Y30479D01* X-36197Y30523D01* X-36115Y30575D01* X-36012Y30642D01* X-35879Y30708D01* X-35730Y30775D01* X-35560Y30834D01* X-34347D01* Y30138D01* D02* G37* %LPC*% G36* X44278Y71098D02* X43701Y68982D01* X44862D01* X44278Y71098D01* D02* G37* G36* X-12446Y-35903D02* X-12662Y-36695D01* X-12227D01* X-12446Y-35903D01* D02* G37* G36* X-16753Y-35895D02* X-16933D01* X-16994Y-35897D01* X-17044Y-35909D01* X-17091Y-35922D01* X-17130Y-35942D01* X-17161Y-35964D01* X-17188Y-35989D01* X-17210Y-36014D01* X-17230Y-36042D01* X-17244Y-36069D01* X-17255Y-36094D01* X-17260Y-36119D01* X-17266Y-36141D01* X-17269Y-36161D01* X-17271Y-36174D01* Y-36186D01* Y-36188D01* X-17269Y-36249D01* X-17258Y-36299D01* X-17244Y-36344D01* X-17227Y-36377D01* X-17210Y-36402D01* X-17197Y-36421D01* X-17186Y-36432D01* X-17183Y-36435D01* X-17147Y-36460D01* X-17108Y-36476D01* X-17066Y-36490D01* X-17028Y-36499D01* X-16992Y-36504D01* X-16964Y-36507D01* X-16753D01* Y-35895D01* D02* G37* G36* X-6227Y-65599D02* X-9787Y-65599D01* X-8373Y-65599D01* X-8462Y-65606D01* X-8565Y-65614D01* X-8684Y-65628D01* X-8817Y-65650D01* X-8950Y-65680D01* X-9076Y-65717D01* X-9083D01* X-9091Y-65724D01* X-9135Y-65739D01* X-9194Y-65769D01* X-9276Y-65806D01* X-9380Y-65858D01* X-9483Y-65932D01* X-9601Y-66013D01* X-9720Y-66109D01* X-9268Y-66650D01* X-9261Y-66642D01* X-9246Y-66635D01* X-9224Y-66620D01* X-9194Y-66598D01* X-9150Y-66575D01* X-9106Y-66546D01* X-8987Y-66479D01* X-8847Y-66420D01* X-8684Y-66368D01* X-8514Y-66331D01* X-8417Y-66316D01* X-8277D01* X-8240Y-66324D01* X-8196Y-66331D01* X-8151Y-66339D01* X-8025Y-66368D01* X-7892Y-66413D01* X-7751Y-66487D01* X-7677Y-66531D01* X-7611Y-66583D01* X-7544Y-66642D01* X-7478Y-66716D01* Y-66724D01* X-7463Y-66738D01* X-7448Y-66760D01* X-7426Y-66790D01* X-7404Y-66834D01* X-7374Y-66886D01* X-7344Y-66953D01* X-7315Y-67027D01* X-7285Y-67108D01* X-7256Y-67204D01* X-7226Y-67308D01* X-7204Y-67427D01* X-7182Y-67552D01* X-7167Y-67686D01* X-7159Y-67834D01* X-7152Y-67996D01* Y-68004D01* Y-68033D01* Y-68078D01* X-7159Y-68137D01* Y-68211D01* X-7167Y-68292D01* X-7182Y-68381D01* X-7197Y-68485D01* X-7233Y-68692D01* X-7293Y-68899D01* X-7374Y-69099D01* X-7418Y-69188D01* X-7478Y-69269D01* X-7485Y-69276D01* X-7492Y-69284D01* X-7537Y-69328D01* X-7611Y-69395D01* X-7707Y-69469D01* X-7833Y-69543D01* X-7981Y-69609D01* X-8144Y-69654D01* X-8240Y-69661D01* X-8336Y-69669D01* X-8388D01* X-8447Y-69661D01* X-8521Y-69654D01* X-8602Y-69647D01* X-8691Y-69624D01* X-8780Y-69602D01* X-8869Y-69573D01* X-8876Y-69565D01* X-8906Y-69558D01* X-8950Y-69528D01* X-9017Y-69498D01* X-9091Y-69454D01* X-9172Y-69410D01* X-9268Y-69343D01* X-9365Y-69276D01* X-9787Y-69817D01* X-9779Y-69824D01* X-9757Y-69839D01* X-9727Y-69868D01* X-9683Y-69906D01* X-9624Y-69950D01* X-9557Y-70002D01* X-9476Y-70053D01* X-9380Y-70105D01* X-9283Y-70165D01* X-9165Y-70216D01* X-9047Y-70268D01* X-8913Y-70312D01* X-8773Y-70350D01* X-8625Y-70379D01* X-8469Y-70394D01* X-8307Y-70401D01* X-6227D01* X-8247D01* X-8203Y-70394D01* X-8151D01* X-8092Y-70386D01* X-8025Y-70379D01* X-7951Y-70364D01* X-7781Y-70335D01* X-7604Y-70283D01* X-7418Y-70216D01* X-7233Y-70127D01* X-7226D01* X-7211Y-70113D01* X-7189Y-70098D01* X-7152Y-70076D01* X-7071Y-70009D01* X-6967Y-69920D01* X-6841Y-69802D01* X-6723Y-69661D01* X-6605Y-69498D01* X-6493Y-69306D01* Y-69299D01* X-6479Y-69284D01* X-6471Y-69247D01* X-6449Y-69210D01* X-6434Y-69158D01* X-6412Y-69091D01* X-6382Y-69017D01* X-6360Y-68936D01* X-6338Y-68847D01* X-6308Y-68744D01* X-6286Y-68640D01* X-6272Y-68522D01* X-6242Y-68270D01* X-6227Y-67996D01* Y-67922D01* X-6235Y-67870D01* Y-67804D01* X-6242Y-67730D01* X-6249Y-67649D01* X-6264Y-67552D01* X-6294Y-67352D01* X-6346Y-67138D01* X-6412Y-66916D01* X-6501Y-66709D01* Y-66701D01* X-6516Y-66686D01* X-6531Y-66657D01* X-6553Y-66620D01* X-6582Y-66575D01* X-6612Y-66524D01* X-6701Y-66405D01* X-6804Y-66272D01* X-6930Y-66132D01* X-7078Y-66006D01* X-7248Y-65887D01* X-7256D01* X-7271Y-65873D01* X-7293Y-65858D01* X-7330Y-65843D01* X-7374Y-65821D01* X-7426Y-65798D01* X-7492Y-65769D01* X-7559Y-65739D01* X-7715Y-65688D01* X-7892Y-65643D01* X-8092Y-65614D01* X-8299Y-65599D01* X-6227D01* D01* D02* G37* G36* X17505Y-65688D02* X14308D01* X16099D01* X16039Y-65695D01* X15966Y-65702D01* X15877Y-65710D01* X15780Y-65717D01* X15677Y-65732D01* X15455Y-65776D01* X15225Y-65843D01* X15114Y-65887D01* X15003Y-65939D01* X14900Y-65998D01* X14804Y-66065D01* X14796Y-66072D01* X14782Y-66080D01* X14759Y-66102D01* X14722Y-66132D01* X14685Y-66176D01* X14648Y-66220D01* X14604Y-66280D01* X14552Y-66339D01* X14508Y-66413D01* X14463Y-66494D01* X14426Y-66590D01* X14382Y-66686D01* X14352Y-66790D01* X14330Y-66909D01* X14315Y-67034D01* X14308Y-67168D01* Y-67242D01* X14315Y-67293D01* X14323Y-67360D01* X14337Y-67441D01* X14352Y-67523D01* X14367Y-67611D01* X14426Y-67804D01* X14471Y-67900D01* X14515Y-67996D01* X14574Y-68085D01* X14641Y-68181D01* X14715Y-68263D01* X14804Y-68337D01* X14811Y-68344D01* X14826Y-68352D01* X14855Y-68374D01* X14893Y-68396D01* X14944Y-68426D01* X15003Y-68455D01* X15078Y-68492D01* X15159Y-68522D01* X15248Y-68559D01* X15344Y-68596D01* X15455Y-68625D01* X15573Y-68655D01* X15699Y-68677D01* X15840Y-68699D01* X15980Y-68707D01* X16136Y-68714D01* X16617D01* Y-70320D01* X14308D01* X17505D01* Y-65688D01* D02* G37* G36* X14049Y-66746D02* X10149D01* X10726Y-70320D01* X11755D01* X12088Y-67870D01* X12450Y-70320D01* X13457D01* X14049Y-66746D01* D02* G37* G36* X7034Y-66664D02* X6982D01* X6930Y-66672D01* X6856Y-66679D01* X6767Y-66686D01* X6664Y-66709D01* X6553Y-66731D01* X6442Y-66768D01* X6575Y-68144D01* X7219D01* Y-67441D01* X7233D01* X7263Y-67449D01* X7315Y-67456D01* X7382Y-67478D01* X7463Y-67508D01* X7552Y-67560D01* X7641Y-67626D01* X7737Y-67715D01* X7744Y-67730D01* X7781Y-67767D01* X7825Y-67826D01* X7877Y-67908D01* X7944Y-68011D01* X8010Y-68144D01* X8077Y-68292D01* X8136Y-68463D01* Y-69676D01* X7441D01* Y-70320D01* X9505D01* Y-68181D01* Y-69676D01* X9002D01* Y-67397D01* X9505D01* Y-66746D01* X8321D01* X8218Y-67537D01* Y-67530D01* X8210Y-67523D01* X8203Y-67501D01* X8196Y-67471D01* X8166Y-67397D01* X8122Y-67301D01* X8062Y-67197D01* X7988Y-67093D01* X7899Y-66990D01* X7796Y-66894D01* X7781Y-66886D01* X7737Y-66857D01* X7670Y-66820D01* X7581Y-66775D01* X7470Y-66738D01* X7344Y-66701D01* X7197Y-66672D01* X7034Y-66664D01* D02* G37* G36* X6442D02* D01* Y-70320D01* Y-66664D01* D01* D02* G37* G36* X-9949Y-65688D02* X-12443D01* X-13893Y-70320D01* X-12976D01* X-12658Y-69239D01* X-11156D01* X-10837Y-70320D01* X-12239D01* X-9949D01* X-11400Y-65688D01* X-9949D01* D02* G37* G36* X-14360D02* X-17490D01* Y-70320D01* X-16387D01* X-15063Y-66487D01* Y-66501D01* X-15070Y-66531D01* Y-66583D01* X-15078Y-66657D01* X-15085Y-66746D01* X-15092Y-66842D01* X-15107Y-66960D01* X-15114Y-67079D01* X-15122Y-67212D01* X-15137Y-67352D01* X-15152Y-67641D01* X-15159Y-67930D01* X-15166Y-68211D01* Y-70320D01* X-14360D01* Y-65688D01* D02* G37* G36* X226Y-65606D02* X-1772D01* X166D01* X93Y-65614D01* X11Y-65621D01* X-93Y-65636D01* X-203Y-65658D01* X-314Y-65688D01* X-426Y-65724D01* X-440Y-65732D01* X-477Y-65747D01* X-529Y-65776D01* X-603Y-65821D01* X-692Y-65880D01* X-788Y-65961D01* X-892Y-66050D01* X-995Y-66168D01* X-514Y-66598D01* X-507Y-66590D01* X-477Y-66568D01* X-440Y-66531D01* X-396Y-66494D01* X-277Y-66405D01* X-218Y-66361D01* X-159Y-66331D01* X-152Y-66324D01* X-129Y-66316D01* X-100Y-66302D01* X-63Y-66287D01* X-11Y-66272D01* X48Y-66265D01* X115Y-66250D01* X233D01* X277Y-66257D01* X337Y-66265D01* X403Y-66287D01* X470Y-66309D01* X537Y-66346D01* X596Y-66398D01* X603Y-66405D01* X618Y-66420D01* X640Y-66457D01* X662Y-66501D01* X685Y-66561D01* X707Y-66627D01* X722Y-66709D01* X729Y-66798D01* Y-66812D01* Y-66842D01* X722Y-66886D01* X707Y-66953D01* X685Y-67019D01* X648Y-67093D01* X603Y-67168D01* X544Y-67242D01* X537Y-67249D01* X507Y-67271D01* X470Y-67301D01* X411Y-67330D01* X344Y-67360D01* X263Y-67390D01* X166Y-67412D01* X63Y-67419D01* X-1772D01* Y-70401D01* Y-68070D01* X-1254D01* Y-69780D01* X-1247Y-69787D01* X-1232Y-69809D01* X-1195Y-69839D01* X-1151Y-69876D01* X-1099Y-69920D01* X-1032Y-69980D01* X-951Y-70031D01* X-862Y-70091D01* X-758Y-70150D01* X-648Y-70201D01* X-522Y-70253D01* X-396Y-70305D01* X-248Y-70342D01* X-100Y-70372D01* X63Y-70394D01* X233Y-70401D01* X1802D01* X314D01* X359Y-70394D01* X411D01* X529Y-70379D01* X670Y-70357D01* X810Y-70320D01* X958Y-70275D01* X1099Y-70209D01* X1106D01* X1114Y-70201D01* X1158Y-70172D01* X1217Y-70127D01* X1299Y-70068D01* X1388Y-69994D01* X1476Y-69906D01* X1558Y-69809D01* X1632Y-69691D01* Y-69683D01* X1639Y-69676D01* X1661Y-69632D01* X1684Y-69565D01* X1713Y-69476D01* X1750Y-69373D01* X1772Y-69247D01* X1795Y-69114D01* X1802Y-68973D01* Y-68884D01* Y-68921D01* X1795Y-68884D01* Y-68840D01* X1787Y-68788D01* X1765Y-68670D01* X1735Y-68529D01* X1691Y-68388D01* X1624Y-68248D01* X1536Y-68115D01* Y-68107D01* X1521Y-68100D01* X1484Y-68063D01* X1424Y-68004D01* X1343Y-67937D01* X1232Y-67863D01* X1106Y-67789D01* X958Y-67730D01* X908Y-67714D01* X921Y-67708D01* X1003Y-67671D01* X1099Y-67626D01* X1195Y-67567D01* X1291Y-67486D01* X1373Y-67397D01* X1380Y-67382D01* X1402Y-67345D01* X1439Y-67293D01* X1469Y-67212D01* X1506Y-67116D01* X1543Y-67005D01* X1565Y-66879D01* X1572Y-66746D01* Y-66738D01* Y-66731D01* Y-66694D01* X1565Y-66635D01* X1550Y-66553D01* X1536Y-66465D01* X1506Y-66368D01* X1462Y-66272D01* X1410Y-66176D01* X1402Y-66161D01* X1380Y-66132D01* X1343Y-66087D01* X1284Y-66028D01* X1217Y-65961D01* X1136Y-65895D01* X1040Y-65821D01* X936Y-65762D01* X921Y-65754D01* X884Y-65739D01* X818Y-65710D01* X729Y-65680D01* X625Y-65658D01* X507Y-65628D01* X374Y-65614D01* X226Y-65606D01* D02* G37* %LPD*% G36* X16617Y-68019D02* X16054D01* X15980Y-68011D01* X15884Y-67996D01* X15780Y-67974D01* X15669Y-67937D01* X15566Y-67893D01* X15470Y-67826D01* X15462Y-67819D01* X15433Y-67789D01* X15396Y-67737D01* X15351Y-67671D01* X15307Y-67582D01* X15270Y-67463D01* X15240Y-67330D01* X15233Y-67168D01* Y-67160D01* Y-67131D01* X15240Y-67093D01* X15248Y-67042D01* X15262Y-66983D01* X15277Y-66916D01* X15307Y-66849D01* X15344Y-66775D01* X15396Y-66701D01* X15455Y-66635D01* X15529Y-66568D01* X15610Y-66509D01* X15714Y-66457D01* X15840Y-66420D01* X15973Y-66391D01* X16136Y-66383D01* X16617D01* Y-68019D01* D02* G37* G36* X12902Y-69735D02* X12488Y-67182D01* X11644D01* X11266Y-69735D01* X10956Y-66746D01* X13220D01* X12902Y-69735D01* D02* G37* G36* X-11326Y-68522D02* X-12488D01* X-11910Y-66405D01* X-11326Y-68522D01* D02* G37* G36* X-16787Y-69521D02* Y-69513D01* Y-69506D01* X-16780Y-69484D01* Y-69454D01* X-16772Y-69373D01* X-16765Y-69269D01* X-16750Y-69151D01* X-16735Y-69017D01* X-16728Y-68877D01* X-16713Y-68729D01* Y-68721D01* Y-68714D01* Y-68692D01* X-16705Y-68655D01* Y-68618D01* Y-68573D01* X-16698Y-68463D01* X-16691Y-68322D01* Y-68167D01* X-16683Y-67989D01* Y-67796D01* Y-65688D01* X-15462D01* X-16787Y-69521D01* D02* G37* G36* X240Y-68078D02* X300Y-68085D01* X374Y-68100D01* X448Y-68122D01* X522Y-68152D01* X596Y-68196D01* X603Y-68204D01* X625Y-68218D01* X655Y-68248D01* X699Y-68285D01* X744Y-68329D01* X788Y-68388D01* X833Y-68448D01* X869Y-68522D01* Y-68529D01* X884Y-68551D01* X899Y-68596D01* X914Y-68647D01* X929Y-68707D01* X943Y-68781D01* X951Y-68855D01* X958Y-68936D01* Y-68944D01* Y-68951D01* Y-68995D01* X951Y-69055D01* X936Y-69136D01* X914Y-69225D01* X877Y-69321D01* X833Y-69417D01* X766Y-69506D01* X758Y-69513D01* X729Y-69543D01* X685Y-69573D01* X625Y-69617D01* X544Y-69654D01* X448Y-69691D01* X337Y-69721D01* X203Y-69728D01* X166D01* X129Y-69721D01* X78D01* X18Y-69713D01* X-48Y-69698D01* X-181Y-69661D01* X-189D01* X-211Y-69647D01* X-240Y-69632D01* X-285Y-69609D01* X-366Y-69558D01* X-411Y-69521D01* X-448Y-69484D01* Y-68070D01* X189D01* X240Y-68078D01* D02* G37* %LPC*% G36* X-43486Y8401D02* X-43560D01* X-43648Y8394D01* X-43752Y8379D01* X-43878Y8364D01* X-44011Y8335D01* X-44144Y8290D01* X-44277Y8239D01* X-44285D01* X-44292Y8231D01* X-44337Y8209D01* X-44396Y8172D01* X-44477Y8128D01* X-44559Y8061D01* X-44647Y7987D01* X-44736Y7898D01* X-44810Y7802D01* X-44818Y7787D01* X-44840Y7757D01* X-44869Y7698D01* X-44906Y7624D01* X-44936Y7536D01* X-44965Y7432D01* X-44988Y7321D01* X-44995Y7203D01* Y7195D01* Y7180D01* Y7158D01* X-44988Y7129D01* X-44980Y7047D01* X-44965Y6951D01* X-44929Y6832D01* X-44884Y6707D01* X-44818Y6588D01* X-44729Y6470D01* X-44714Y6455D01* X-44684Y6425D01* X-44625Y6374D01* X-44551Y6322D01* X-44455Y6263D01* X-44351Y6211D01* X-44233Y6174D01* X-44100Y6159D01* X-44144D01* X-44174Y6152D01* X-44248Y6144D01* X-44351Y6115D01* X-44462Y6078D01* X-44581Y6026D01* X-44706Y5952D01* X-44825Y5848D01* X-44840Y5833D01* X-44877Y5796D01* X-44921Y5730D01* X-44980Y5634D01* X-45039Y5515D01* X-45084Y5375D01* X-45121Y5212D01* X-45136Y5027D01* Y3599D01* X-43367D01* X-43323Y3606D01* X-43278D01* X-43160Y3621D01* X-43027Y3636D01* X-42886Y3665D01* X-42738Y3710D01* X-42583Y3762D01* X-42575D01* X-42568Y3769D01* X-42546Y3776D01* X-42516Y3791D01* X-42442Y3836D01* X-42353Y3887D01* X-42250Y3961D01* X-42131Y4050D01* X-42020Y4161D01* X-41909Y4287D01* D01* X-42435Y4746D01* X-42442Y4738D01* X-42472Y4709D01* X-42516Y4664D01* X-42575Y4612D01* X-42642Y4553D01* X-42716Y4494D01* X-42797Y4442D01* X-42886Y4398D01* X-42901Y4391D01* X-42930Y4383D01* X-42975Y4368D01* X-43042Y4346D01* X-43115Y4324D01* X-43204Y4309D01* X-43301Y4302D01* X-43397Y4294D01* X-43463D01* X-43537Y4302D01* X-43626Y4316D01* X-43722Y4346D01* X-43826Y4376D01* X-43929Y4428D01* X-44018Y4494D01* X-44026Y4501D01* X-44055Y4531D01* X-44092Y4575D01* X-44137Y4642D01* X-44174Y4724D01* X-44211Y4820D01* X-44240Y4931D01* X-44248Y5057D01* Y5064D01* Y5086D01* X-44240Y5123D01* X-44233Y5167D01* X-44225Y5227D01* X-44203Y5286D01* X-44181Y5353D01* X-44144Y5419D01* X-44107Y5486D01* X-44048Y5552D01* X-43989Y5612D01* X-43907Y5671D01* X-43819Y5715D01* X-43707Y5752D01* X-43582Y5774D01* X-43441Y5782D01* X-42990D01* X-43079Y6440D01* X-43463D01* X-43523Y6448D01* X-43597Y6463D01* X-43678Y6477D01* X-43767Y6507D01* X-43848Y6551D01* X-43929Y6603D01* X-43937Y6611D01* X-43959Y6633D01* X-43996Y6677D01* X-44033Y6729D01* X-44070Y6796D01* X-44107Y6884D01* X-44129Y6981D01* X-44137Y7091D01* Y7106D01* Y7136D01* X-44129Y7195D01* X-44115Y7254D01* X-44085Y7328D01* X-44055Y7402D01* X-44003Y7476D01* X-43937Y7543D01* X-43929Y7550D01* X-43900Y7565D01* X-43863Y7595D01* X-43804Y7624D01* X-43730Y7654D01* X-43641Y7683D01* X-43537Y7698D01* X-43426Y7706D01* X-43382D01* X-43330Y7698D01* X-43271Y7691D01* X-43197Y7683D01* X-43115Y7669D01* X-43034Y7639D01* X-42953Y7609D01* X-42945Y7602D01* X-42916Y7595D01* X-42871Y7572D01* X-42819Y7536D01* X-42746Y7498D01* X-42671Y7447D01* X-42583Y7380D01* X-42487Y7306D01* X-42042Y7787D01* X-42050Y7795D01* X-42072Y7817D01* X-42102Y7846D01* X-42153Y7883D01* X-42205Y7928D01* X-42279Y7980D01* X-42361Y8039D01* X-42450Y8098D01* X-42553Y8150D01* X-42664Y8209D01* X-42783Y8261D01* X-42908Y8305D01* X-43042Y8342D01* X-43182Y8372D01* X-43330Y8394D01* X-43486Y8401D01* D02* G37* G36* X-63503Y8401D02* X-63577D01* X-63665Y8394D01* X-63769Y8379D01* X-63895Y8364D01* X-64028Y8335D01* X-64161Y8290D01* X-64294Y8239D01* X-64302D01* X-64309Y8231D01* X-64354Y8209D01* X-64413Y8172D01* X-64494Y8128D01* X-64575Y8061D01* X-64664Y7987D01* X-64753Y7898D01* X-64827Y7802D01* X-64834Y7787D01* X-64857Y7757D01* X-64886Y7698D01* X-64923Y7624D01* X-64953Y7536D01* X-64982Y7432D01* X-65005Y7321D01* X-65012Y7203D01* Y7195D01* Y7180D01* Y7158D01* X-65005Y7129D01* X-64997Y7047D01* X-64982Y6951D01* X-64946Y6832D01* X-64901Y6707D01* X-64834Y6588D01* X-64746Y6470D01* X-64731Y6455D01* X-64701Y6425D01* X-64642Y6374D01* X-64568Y6322D01* X-64472Y6263D01* X-64368Y6211D01* X-64250Y6174D01* X-64117Y6159D01* X-64161D01* X-64191Y6152D01* X-64265Y6144D01* X-64368Y6115D01* X-64479Y6078D01* X-64598Y6026D01* X-64723Y5952D01* X-64842Y5848D01* X-64857Y5833D01* X-64894Y5796D01* X-64938Y5730D01* X-64997Y5634D01* X-65057Y5515D01* X-65101Y5375D01* X-65138Y5212D01* X-65153Y5027D01* Y3599D01* X-61926D01* D01* X-63384D01* X-63340Y3606D01* X-63295D01* X-63177Y3621D01* X-63044Y3636D01* X-62903Y3665D01* X-62755Y3710D01* X-62600Y3762D01* X-62592D01* X-62585Y3769D01* X-62563Y3776D01* X-62533Y3791D01* X-62459Y3836D01* X-62370Y3887D01* X-62267Y3961D01* X-62148Y4050D01* X-62037Y4161D01* X-61926Y4287D01* D01* X-62452Y4746D01* X-62459Y4738D01* X-62489Y4709D01* X-62533Y4664D01* X-62592Y4612D01* X-62659Y4553D01* X-62733Y4494D01* X-62814Y4442D01* X-62903Y4398D01* X-62918Y4391D01* X-62947Y4383D01* X-62992Y4368D01* X-63059Y4346D01* X-63133Y4324D01* X-63221Y4309D01* X-63318Y4302D01* X-63414Y4294D01* X-63480D01* X-63554Y4302D01* X-63643Y4316D01* X-63739Y4346D01* X-63843Y4376D01* X-63946Y4428D01* X-64035Y4494D01* X-64043Y4501D01* X-64072Y4531D01* X-64109Y4575D01* X-64154Y4642D01* X-64191Y4724D01* X-64228Y4820D01* X-64257Y4931D01* X-64265Y5057D01* Y5064D01* Y5086D01* X-64257Y5123D01* X-64250Y5167D01* X-64243Y5227D01* X-64220Y5286D01* X-64198Y5353D01* X-64161Y5419D01* X-64124Y5486D01* X-64065Y5552D01* X-64006Y5612D01* X-63924Y5671D01* X-63836Y5715D01* X-63724Y5752D01* X-63599Y5774D01* X-63458Y5782D01* X-63007D01* X-63095Y6440D01* X-63480D01* X-63539Y6448D01* X-63613Y6463D01* X-63695Y6477D01* X-63784Y6507D01* X-63865Y6551D01* X-63946Y6603D01* X-63954Y6611D01* X-63976Y6633D01* X-64013Y6677D01* X-64050Y6729D01* X-64087Y6796D01* X-64124Y6884D01* X-64146Y6981D01* X-64154Y7091D01* Y7106D01* Y7136D01* X-64146Y7195D01* X-64131Y7254D01* X-64102Y7328D01* X-64072Y7402D01* X-64021Y7476D01* X-63954Y7543D01* X-63946Y7550D01* X-63917Y7565D01* X-63880Y7595D01* X-63821Y7624D01* X-63747Y7654D01* X-63658Y7683D01* X-63554Y7698D01* X-63443Y7706D01* X-63399D01* X-63347Y7698D01* X-63288Y7691D01* X-63214Y7683D01* X-63133Y7669D01* X-63051Y7639D01* X-62970Y7609D01* X-62962Y7602D01* X-62933Y7595D01* X-62888Y7572D01* X-62836Y7536D01* X-62762Y7498D01* X-62688Y7447D01* X-62600Y7380D01* X-62503Y7306D01* X-62059Y7787D01* X-62067Y7795D01* X-62089Y7817D01* X-62119Y7846D01* X-62170Y7883D01* X-62222Y7928D01* X-62296Y7980D01* X-62378Y8039D01* X-62467Y8098D01* X-62570Y8150D01* X-62681Y8209D01* X-62800Y8261D01* X-62925Y8305D01* X-63059Y8342D01* X-63199Y8372D01* X-63347Y8394D01* X-63503Y8401D01* D02* G37* G36* X-55621Y8313D02* X-56362D01* Y4376D01* X-57257D01* Y3680D01* X-54193Y3680D01* X-54400D01* Y4376D01* X-55503Y4376D01* Y7432D01* X-54549Y6825D01* X-54193Y7417D01* X-55621Y8313D01* D02* G37* G36* X-59692Y8401D02* X-59728D01* X-59765Y8394D01* X-59825D01* X-59891Y8379D01* X-59965Y8372D01* X-60047Y8349D01* X-60136Y8320D01* X-60232Y8290D01* X-60335Y8246D01* X-60431Y8194D01* X-60535Y8135D01* X-60631Y8061D01* X-60720Y7980D01* X-60809Y7883D01* X-60890Y7772D01* X-60898Y7765D01* X-60905Y7743D01* X-60927Y7706D01* X-60957Y7654D01* X-60987Y7595D01* X-61016Y7513D01* X-61053Y7424D01* X-61098Y7321D01* X-61134Y7203D01* X-61172Y7069D01* X-61201Y6921D01* X-61231Y6766D01* X-61260Y6596D01* X-61282Y6411D01* X-61290Y6211D01* X-61297Y6004D01* D01* Y5893D01* X-61290Y5811D01* X-61282Y5715D01* X-61275Y5612D01* X-61260Y5486D01* X-61246Y5353D01* X-61201Y5064D01* X-61127Y4768D01* X-61083Y4627D01* X-61023Y4487D01* X-60964Y4354D01* X-60890Y4228D01* X-60883Y4220D01* X-60868Y4198D01* X-60846Y4169D01* X-60816Y4132D01* X-60772Y4080D01* X-60720Y4028D01* X-60661Y3969D01* X-60587Y3917D01* X-60505Y3858D01* X-60417Y3799D01* X-60321Y3747D01* X-60210Y3695D01* X-60098Y3658D01* X-59973Y3628D01* X-59832Y3606D01* X-59692Y3599D01* X-61297D01* Y5893D01* Y3599D01* D01* X-58093D01* Y4109D01* Y3599D01* X-59654D01* X-59618Y3606D01* X-59566D01* X-59499Y3621D01* X-59425Y3636D01* X-59336Y3650D01* X-59247Y3680D01* X-59151Y3710D01* X-59055Y3754D01* X-58959Y3806D01* X-58855Y3865D01* X-58759Y3939D01* X-58670Y4021D01* X-58582Y4117D01* X-58500Y4228D01* X-58493Y4235D01* X-58485Y4257D01* X-58463Y4294D01* X-58434Y4346D01* X-58404Y4405D01* X-58374Y4487D01* X-58337Y4583D01* X-58300Y4687D01* X-58256Y4805D01* X-58219Y4938D01* X-58189Y5086D01* X-58160Y5241D01* X-58130Y5412D01* X-58108Y5597D01* X-58100Y5796D01* X-58093Y6004D01* Y4109D01* Y6004D01* Y6115D01* X-58100Y6196D01* X-58108Y6292D01* X-58115Y6403D01* X-58130Y6522D01* X-58145Y6655D01* X-58189Y6936D01* X-58263Y7232D01* X-58315Y7380D01* X-58367Y7521D01* X-58426Y7654D01* X-58500Y7772D01* X-58508Y7780D01* X-58522Y7802D01* X-58544Y7831D01* X-58574Y7869D01* X-58618Y7920D01* X-58670Y7972D01* X-58729Y8031D01* X-58803Y8090D01* X-58885Y8142D01* X-58974Y8202D01* X-59070Y8253D01* X-59174Y8305D01* X-59292Y8342D01* X-59418Y8372D01* X-59551Y8394D01* X-59692Y8401D01* D02* G37* G36* X-38069Y8313D02* X-39097D01* X-39689Y5301D01* X-40252Y8313D01* X-41280D01* X-41539Y3680D01* D01* X-37817D01* X-38069Y8313D01* D02* G37* G36* X-47504Y8401D02* X-49102D01* X-47578D01* X-47666Y8394D01* X-47778Y8379D01* X-47903Y8357D01* X-48037Y8327D01* X-48170Y8283D01* X-48303Y8224D01* X-48310D01* X-48318Y8216D01* X-48362Y8194D01* X-48421Y8150D01* X-48495Y8098D01* X-48577Y8031D01* X-48665Y7942D01* X-48747Y7854D01* X-48821Y7743D01* X-48828Y7728D01* X-48851Y7691D01* X-48880Y7624D01* X-48910Y7543D01* X-48939Y7447D01* X-48969Y7328D01* X-48991Y7203D01* X-48998Y7069D01* Y7062D01* Y7055D01* Y7032D01* Y6995D01* X-48991Y6921D01* X-48976Y6818D01* X-48954Y6692D01* X-48917Y6559D01* X-48873Y6418D01* X-48806Y6270D01* Y6263D01* X-48799Y6255D01* X-48784Y6233D01* X-48769Y6204D01* X-48725Y6122D01* X-48665Y6019D01* X-48577Y5893D01* X-48473Y5752D01* X-48355Y5589D01* X-48207Y5419D01* X-48199Y5412D01* X-48184Y5397D01* X-48162Y5375D01* X-48133Y5338D01* X-48088Y5293D01* X-48037Y5241D01* X-47977Y5182D01* X-47911Y5116D01* X-47829Y5049D01* X-47748Y4968D01* X-47652Y4879D01* X-47548Y4790D01* X-47437Y4694D01* X-47319Y4598D01* X-47193Y4494D01* X-47060Y4391D01* X-49102D01* X-49013Y3680D01* X-45994D01* Y4294D01* Y3680D01* X-46090D01* Y4324D01* X-46098Y4331D01* X-46127Y4361D01* X-46172Y4405D01* X-46231Y4465D01* X-46305Y4531D01* X-46386Y4612D01* X-46475Y4701D01* X-46579Y4797D01* X-46786Y5005D01* X-46993Y5219D01* X-47200Y5426D01* X-47289Y5523D01* X-47370Y5612D01* X-47378Y5619D01* X-47385Y5634D01* X-47407Y5656D01* X-47437Y5686D01* X-47511Y5774D01* X-47600Y5878D01* X-47696Y6004D01* X-47792Y6129D01* X-47874Y6263D01* X-47948Y6381D01* Y6389D01* X-47955Y6396D01* X-47977Y6433D01* X-48000Y6499D01* X-48037Y6581D01* X-48066Y6677D01* X-48088Y6788D01* X-48110Y6906D01* X-48118Y7025D01* Y7040D01* Y7077D01* X-48110Y7136D01* X-48096Y7203D01* X-48074Y7284D01* X-48044Y7365D01* X-48000Y7439D01* X-47940Y7513D01* X-47933Y7521D01* X-47911Y7543D01* X-47866Y7572D01* X-47815Y7602D01* X-47741Y7632D01* X-47659Y7661D01* X-47563Y7683D01* X-47452Y7691D01* X-47407D01* X-47356Y7683D01* X-47289Y7676D01* X-47215Y7669D01* X-47134Y7647D01* X-47052Y7624D01* X-46978Y7587D01* X-46971Y7580D01* X-46941Y7565D01* X-46904Y7543D01* X-46852Y7506D01* X-46786Y7454D01* X-46712Y7388D01* X-46630Y7314D01* X-46542Y7217D01* X-45994Y7639D01* Y4294D01* Y7639D01* Y7647D01* X-46009Y7654D01* X-46024Y7676D01* X-46046Y7706D01* X-46105Y7772D01* X-46187Y7861D01* X-46283Y7957D01* X-46394Y8054D01* X-46512Y8142D01* X-46645Y8216D01* X-46653D01* X-46660Y8224D01* X-46682Y8231D01* X-46712Y8246D01* X-46786Y8275D01* X-46889Y8313D01* X-47015Y8342D01* X-47163Y8372D01* X-47326Y8394D01* X-47504Y8401D01* D02* G37* G36* X-33865Y8313D02* X-37492D01* X-37403Y7572D01* X-36115D01* Y3680D01* X-33865D01* X-35220D01* Y7572D01* X-33865D01* Y8313D01* D02* G37* G36* X-50493D02* X-53394D01* X-53305Y7609D01* X-51381D01* Y6300D01* X-53083D01* Y5597D01* X-51381D01* Y3680D01* X-50493D01* Y8313D01* D02* G37* G36* X-51633Y3680D02* X-53394D01* D01* X-51633D01* D02* G37* G36* X-29847Y8401D02* X-33362D01* X-31719D01* X-31764Y8394D01* X-31830D01* X-31912Y8387D01* X-32008Y8372D01* X-32112Y8349D01* X-32223Y8327D01* X-32348Y8298D01* X-32474Y8253D01* X-32607Y8209D01* X-32733Y8150D01* X-32866Y8083D01* X-33000Y8002D01* X-33125Y7905D01* X-33251Y7802D01* X-32792Y7284D01* X-32785Y7291D01* X-32770Y7299D01* X-32741Y7321D01* X-32704Y7343D01* X-32659Y7380D01* X-32607Y7410D01* X-32541Y7447D01* X-32474Y7484D01* X-32311Y7558D01* X-32134Y7624D01* X-31934Y7669D01* X-31830Y7676D01* X-31719Y7683D01* X-31660D01* X-31601Y7676D01* X-31527Y7669D01* X-31438Y7647D01* X-31342Y7624D01* X-31253Y7587D01* X-31172Y7543D01* X-31165Y7536D01* X-31142Y7521D01* X-31105Y7491D01* X-31076Y7447D01* X-31039Y7395D01* X-31002Y7328D01* X-30979Y7254D01* X-30972Y7165D01* Y7158D01* Y7143D01* X-30979Y7114D01* Y7077D01* X-31009Y6988D01* X-31024Y6944D01* X-31054Y6899D01* X-31061Y6892D01* X-31068Y6877D01* X-31091Y6862D01* X-31128Y6832D01* X-31165Y6803D01* X-31216Y6766D01* X-31283Y6729D01* X-31357Y6692D01* X-31364Y6684D01* X-31394Y6677D01* X-31446Y6655D01* X-31512Y6625D01* X-31601Y6596D01* X-31712Y6559D01* X-31838Y6514D01* X-31978Y6470D01* X-31986D01* X-32008Y6463D01* X-32045Y6448D01* X-32089Y6433D01* X-32141Y6411D01* X-32208Y6389D01* X-32356Y6329D01* X-32519Y6255D01* X-32689Y6166D01* X-32852Y6063D01* X-33000Y5945D01* X-33007D01* X-33015Y5930D01* X-33059Y5885D01* X-33118Y5811D01* X-33185Y5708D01* X-33251Y5582D01* X-33303Y5419D01* X-33347Y5234D01* X-33355Y5130D01* X-33362Y5020D01* Y3599D01* Y4945D01* X-33355Y4864D01* X-33333Y4768D01* X-33310Y4650D01* X-33274Y4524D01* X-33222Y4391D01* X-33148Y4265D01* X-33140Y4250D01* X-33111Y4213D01* X-33059Y4154D01* X-32992Y4087D01* X-32904Y4006D01* X-32792Y3924D01* X-32667Y3843D01* X-32526Y3769D01* X-32519D01* X-32511Y3762D01* X-32482Y3754D01* X-32452Y3739D01* X-32415Y3732D01* X-32371Y3717D01* X-32252Y3687D01* X-32112Y3650D01* X-31949Y3628D01* X-31771Y3606D01* X-31571Y3599D01* X-29847D01* X-31527D01* X-31468Y3606D01* X-31394D01* X-31305Y3621D01* X-31201Y3636D01* X-31083Y3650D01* X-30957Y3680D01* X-30817Y3717D01* X-30676Y3762D01* X-30536Y3813D01* X-30395Y3872D01* X-30247Y3946D01* X-30106Y4035D01* X-29973Y4139D01* X-29847Y4250D01* X-30328Y4790D01* X-30336Y4783D01* X-30351Y4768D01* X-30380Y4746D01* X-30424Y4716D01* X-30476Y4679D01* X-30536Y4635D01* X-30610Y4598D01* X-30683Y4553D01* X-30772Y4501D01* X-30869Y4465D01* X-31083Y4383D01* X-31194Y4354D01* X-31320Y4331D01* X-31438Y4316D01* X-31571Y4309D01* X-31638D01* X-31705Y4316D01* X-31793Y4331D01* X-31890Y4354D01* X-31993Y4383D01* X-32097Y4420D01* X-32193Y4479D01* X-32201Y4487D01* X-32230Y4509D01* X-32267Y4553D01* X-32319Y4605D01* X-32363Y4679D01* X-32400Y4761D01* X-32430Y4864D01* X-32437Y4975D01* Y4983D01* Y5005D01* Y5042D01* X-32430Y5086D01* X-32408Y5182D01* X-32363Y5279D01* Y5286D01* X-32348Y5301D01* X-32334Y5323D01* X-32304Y5353D01* X-32274Y5390D01* X-32230Y5426D01* X-32178Y5471D01* X-32112Y5508D01* X-32104Y5515D01* X-32075Y5523D01* X-32038Y5545D01* X-31971Y5574D01* X-31897Y5604D01* X-31801Y5641D01* X-31690Y5678D01* X-31564Y5715D01* X-31557D01* X-31534Y5723D01* X-31490Y5737D01* X-31438Y5759D01* X-31379Y5782D01* X-31305Y5804D01* X-31224Y5833D01* X-31135Y5870D01* X-30950Y5952D01* X-30765Y6041D01* X-30587Y6152D01* X-30506Y6204D01* X-30432Y6263D01* X-30424Y6270D01* X-30417Y6278D01* X-30373Y6322D01* X-30314Y6396D01* X-30247Y6492D01* X-30180Y6618D01* X-30121Y6766D01* X-30077Y6929D01* X-30069Y7025D01* X-30062Y7121D01* Y7129D01* Y7136D01* Y7158D01* Y7188D01* X-30077Y7254D01* X-30092Y7343D01* X-30114Y7447D01* X-30151Y7565D01* X-30202Y7676D01* X-30269Y7787D01* X-30277Y7802D01* X-30306Y7839D01* X-30358Y7891D01* X-30424Y7957D01* X-30506Y8031D01* X-30602Y8105D01* X-30720Y8172D01* X-30846Y8239D01* X-30854D01* X-30861Y8246D01* X-30883Y8253D01* X-30913Y8261D01* X-30987Y8290D01* X-31091Y8320D01* X-31209Y8349D01* X-31350Y8379D01* X-31505Y8394D01* X-31675Y8401D01* X-29847D01* D02* G37* %LPD*% G36* X-45128Y4886D02* X-45106Y4783D01* X-45084Y4672D01* X-45047Y4546D01* X-44995Y4420D01* X-44921Y4294D01* X-44914Y4279D01* X-44884Y4242D01* X-44832Y4183D01* X-44766Y4109D01* X-44684Y4028D01* X-44581Y3939D01* X-44462Y3858D01* X-44322Y3784D01* X-44314D01* X-44307Y3776D01* X-44285Y3769D01* X-44255Y3754D01* X-44218Y3739D01* X-44174Y3725D01* X-44070Y3695D01* X-43937Y3658D01* X-43789Y3628D01* X-43619Y3606D01* X-43441Y3599D01* X-45136D01* Y4960D01* X-45128Y4886D01* D02* G37* G36* X-65145Y4886D02* X-65123Y4783D01* X-65101Y4672D01* X-65064Y4546D01* X-65012Y4420D01* X-64938Y4294D01* X-64931Y4279D01* X-64901Y4242D01* X-64849Y4183D01* X-64783Y4109D01* X-64701Y4028D01* X-64598Y3939D01* X-64479Y3858D01* X-64339Y3784D01* X-64331D01* X-64324Y3776D01* X-64302Y3769D01* X-64272Y3754D01* X-64235Y3739D01* X-64191Y3725D01* X-64087Y3695D01* X-63954Y3658D01* X-63806Y3628D01* X-63636Y3606D01* X-63458Y3599D01* X-65153D01* Y4960D01* X-65145Y4886D01* D02* G37* G36* X-59632Y7706D02* X-59566Y7691D01* X-59492Y7661D01* X-59403Y7617D01* X-59314Y7543D01* X-59270Y7498D01* X-59225Y7447D01* X-59181Y7388D01* X-59144Y7314D01* Y7306D01* X-59136Y7299D01* X-59129Y7269D01* X-59114Y7239D01* X-59100Y7195D01* X-59085Y7143D01* X-59062Y7077D01* X-59048Y7003D01* X-59033Y6921D01* X-59011Y6825D01* X-58996Y6714D01* X-58981Y6596D01* X-58966Y6463D01* X-58959Y6322D01* X-58951Y6166D01* Y6004D01* Y5996D01* Y5974D01* Y5937D01* Y5893D01* Y5833D01* Y5767D01* X-58959Y5619D01* Y5449D01* X-58974Y5279D01* X-58981Y5123D01* X-58988Y5049D01* X-58996Y4983D01* X-60180Y7513D01* X-60172Y7521D01* X-60150Y7543D01* X-60113Y7580D01* X-60062Y7617D01* X-59995Y7647D01* X-59913Y7683D01* X-59810Y7706D01* X-59692Y7713D01* X-59677D01* X-59632Y7706D01* D02* G37* G36* X-59247Y4435D02* X-59255Y4428D01* X-59277Y4413D01* X-59307Y4383D01* X-59359Y4354D01* X-59418Y4324D01* X-59492Y4294D01* X-59588Y4279D01* X-59692Y4272D01* X-59706D01* X-59751Y4279D01* X-59817Y4294D01* X-59899Y4324D01* X-59987Y4368D01* X-60076Y4442D01* X-60121Y4487D01* X-60165Y4538D01* X-60202Y4605D01* X-60239Y4672D01* Y4679D01* X-60246Y4694D01* X-60254Y4716D01* X-60269Y4746D01* X-60283Y4790D01* X-60298Y4849D01* X-60321Y4916D01* X-60335Y4990D01* X-60350Y5071D01* X-60372Y5175D01* X-60387Y5279D01* X-60402Y5404D01* X-60417Y5537D01* X-60424Y5678D01* X-60431Y5833D01* Y6004D01* Y6011D01* Y6033D01* Y6063D01* Y6107D01* Y6159D01* Y6211D01* Y6352D01* X-60424Y6499D01* X-60417Y6647D01* X-60409Y6796D01* X-60402Y6921D01* X-59247Y4435D01* D02* G37* G36* X-38698Y7506D02* X-38705Y7469D01* Y7432D01* Y7395D01* X-38712Y7350D01* Y7299D01* Y7232D01* X-38720Y7165D01* Y7084D01* Y6995D01* X-38727Y6899D01* Y6796D01* Y6684D01* Y6559D01* Y6551D01* Y6544D01* Y6522D01* Y6492D01* Y6425D01* Y6337D01* Y6233D01* Y6129D01* X-38720Y6026D01* Y5930D01* X-38624Y3680D01* X-40710D01* X-40607Y5937D01* Y5945D01* Y5959D01* Y5982D01* Y6011D01* X-40600Y6092D01* Y6204D01* X-40592Y6329D01* Y6470D01* X-40585Y6618D01* Y6766D01* Y6773D01* Y6788D01* Y6818D01* Y6855D01* Y6892D01* Y6944D01* Y7055D01* X-40592Y7180D01* Y7306D01* X-40600Y7424D01* X-40607Y7521D01* X-40059Y4472D01* X-39290D01* X-38698Y7521D01* Y7506D01* D02* G37* %LPC*% G36* X29250Y70900D02* X28473D01* Y69583D01* X27171D01* Y70900D01* D01* D01* Y67556D01* Y68873D01* X28473D01* Y67556D01* X27171D01* X30538D01* D01* X29250D01* Y68873D01* X30538D01* Y69583D01* X29250D01* Y70900D01* D02* G37* G36* X34830Y71766D02* X32336D01* X30885Y67134D01* X31803D01* X32121Y68214D01* X33623D01* X33942Y67134D01* X34830D01* X33379Y71766D01* X34830D01* D02* G37* %LPD*% G36* X33453Y68932D02* X32291D01* X32868Y71048D01* X33453Y68932D01* D02* G37* %LPC*% G36* X7933Y-73826D02* X7644Y-74885D01* X8225D01* X7933Y-73826D01* D02* G37* G36* X-4077D02* X-4366Y-74885D01* X-3785D01* X-4077Y-73826D01* D02* G37* G36* X13956Y-74296D02* X13916D01* X13882Y-74304D01* X13819Y-74322D01* X13768Y-74352D01* X13723Y-74382D01* X13690Y-74411D01* X13664Y-74441D01* X13646Y-74459D01* X13642Y-74463D01* Y-74467D01* Y-75262D01* X13668Y-75303D01* X13697Y-75336D01* X13723Y-75366D01* X13753Y-75392D01* X13782Y-75414D01* X13808Y-75432D01* X13864Y-75458D01* X13908Y-75477D01* X13945Y-75484D01* X13960Y-75488D01* X13979D01* X14034Y-75480D01* X14086Y-75462D01* X14130Y-75432D01* X14167Y-75395D01* X14197Y-75347D01* X14223Y-75299D01* X14245Y-75244D01* X14264Y-75188D01* X14278Y-75133D01* X14286Y-75077D01* X14293Y-75029D01* X14300Y-74981D01* Y-74944D01* X14304Y-74914D01* Y-74896D01* Y-74888D01* Y-74833D01* X14300Y-74781D01* X14297Y-74733D01* X14289Y-74689D01* X14282Y-74648D01* X14275Y-74611D01* X14256Y-74548D01* X14241Y-74500D01* X14227Y-74467D01* X14215Y-74448D01* X14212Y-74441D01* X14175Y-74393D01* X14130Y-74356D01* X14090Y-74330D01* X14045Y-74315D01* X14008Y-74304D01* X13979Y-74300D01* X13956Y-74296D01* D02* G37* G36* X-27879Y71171D02* X-28360D01* X-28493Y71163D01* X-28604Y71148D01* X-28700Y71126D01* X-28781Y71104D01* X-28841Y71082D01* X-28878Y71060D01* X-28907Y71045D01* X-28915Y71037D01* X-28974Y70978D01* X-29018Y70912D01* X-29055Y70838D01* X-29077Y70771D01* X-29092Y70704D01* X-29100Y70653D01* Y70616D01* Y70601D01* X-29092Y70490D01* X-29070Y70394D01* X-29048Y70312D01* X-29018Y70246D01* X-28981Y70201D01* X-28959Y70164D01* X-28937Y70142D01* X-28929Y70135D01* X-28855Y70090D01* X-28774Y70053D01* X-28685Y70031D01* X-28604Y70009D01* X-28522Y70001D01* X-28463Y69994D01* X-27879D01* Y71171D01* D02* G37* G36* Y69298D02* X-28456D01* X-28596Y69291D01* X-28715Y69276D01* X-28818Y69247D01* X-28907Y69224D01* X-28974Y69195D01* X-29026Y69165D01* X-29055Y69150D01* X-29063Y69143D01* X-29137Y69076D01* X-29188Y68995D01* X-29225Y68899D01* X-29248Y68810D01* X-29270Y68729D01* X-29277Y68662D01* Y68610D01* Y68603D01* Y68595D01* X-29270Y68484D01* X-29240Y68381D01* X-29196Y68292D01* X-29144Y68218D01* X-29077Y68159D01* X-29011Y68107D01* X-28929Y68063D01* X-28855Y68026D01* X-28774Y67996D01* X-28693Y67981D01* X-28626Y67966D01* X-28559Y67952D01* X-28508D01* X-28463Y67944D01* X-27879D01* Y69298D01* D02* G37* G36* X-43506Y70950D02* X-44283D01* Y69633D01* X-45585D01* Y70950D01* Y67606D01* Y68923D01* X-44283D01* Y67606D01* X-45585D01* X-42218D01* X-43506D01* Y68923D01* X-42218D01* Y69633D01* X-43506D01* Y70950D01* D02* G37* G36* X-38400Y71816D02* X-39776D01* X-39828Y71809D01* X-39887D01* X-39961Y71801D01* X-40043Y71794D01* X-40132Y71779D01* X-40324Y71750D01* X-40524Y71698D01* X-40731Y71631D01* X-40923Y71535D01* X-40931D01* X-40946Y71520D01* X-40968Y71505D01* X-40997Y71483D01* X-41079Y71409D01* X-41123Y71365D01* X-41168Y71313D01* X-41212Y71254D01* X-41256Y71187D01* X-41301Y71113D01* X-41338Y71024D01* X-41367Y70936D01* X-41390Y70832D01* X-41404Y70728D01* X-41412Y70610D01* Y70603D01* Y70595D01* Y70573D01* Y70543D01* X-41397Y70462D01* X-41382Y70366D01* X-41352Y70262D01* X-41308Y70144D01* X-41241Y70033D01* X-41160Y69922D01* X-41145Y69907D01* X-41116Y69877D01* X-41064Y69840D01* X-40990Y69789D01* X-40909Y69737D01* X-40805Y69692D01* X-40694Y69655D01* X-40576Y69641D01* X-40613D01* X-40642Y69633D01* X-40723Y69618D01* X-40820Y69596D01* X-40938Y69559D01* X-41056Y69507D01* X-41182Y69433D01* X-41301Y69345D01* X-41315Y69330D01* X-41352Y69293D01* X-41397Y69234D01* X-41456Y69145D01* X-41515Y69034D01* X-41560Y68893D01* X-41597Y68730D01* X-41611Y68545D01* Y71816D01* Y67184D01* D01* Y68479D01* X-41604Y68427D01* X-41597Y68368D01* X-41582Y68294D01* X-41545Y68138D01* X-41515Y68057D01* X-41486Y67968D01* X-41441Y67879D01* X-41390Y67791D01* X-41330Y67709D01* X-41256Y67628D01* X-41182Y67561D01* X-41086Y67495D01* X-41079D01* X-41064Y67480D01* X-41034Y67465D01* X-40990Y67443D01* X-40946Y67421D01* X-40879Y67398D01* X-40812Y67369D01* X-40731Y67339D01* X-40642Y67310D01* X-40538Y67280D01* X-40435Y67258D01* X-40317Y67236D01* X-40198Y67213D01* X-40065Y67199D01* X-39784Y67184D01* X-38400D01* Y71816D01* D02* G37* %LPD*% G36* X-39288Y69944D02* X-39873D01* X-39932Y69951D01* X-40013Y69959D01* X-40095Y69981D01* X-40183Y70003D01* X-40265Y70040D01* X-40339Y70085D01* X-40346Y70092D01* X-40368Y70114D01* X-40391Y70151D01* X-40428Y70196D01* X-40457Y70262D01* X-40479Y70344D01* X-40501Y70440D01* X-40509Y70551D01* Y70566D01* Y70603D01* X-40501Y70654D01* X-40487Y70721D01* X-40464Y70788D01* X-40428Y70862D01* X-40383Y70928D01* X-40324Y70987D01* X-40317Y70995D01* X-40287Y71010D01* X-40250Y71032D01* X-40191Y71054D01* X-40109Y71076D01* X-40013Y71098D01* X-39902Y71113D01* X-39769Y71121D01* X-39288D01* Y69944D01* D02* G37* G36* Y67894D02* X-39873D01* X-39917Y67902D01* X-39969D01* X-40035Y67916D01* X-40102Y67931D01* X-40183Y67946D01* X-40265Y67976D01* X-40339Y68013D01* X-40420Y68057D01* X-40487Y68109D01* X-40553Y68168D01* X-40605Y68242D01* X-40650Y68331D01* X-40679Y68434D01* X-40687Y68545D01* Y68553D01* Y68560D01* Y68612D01* X-40679Y68679D01* X-40657Y68760D01* X-40635Y68849D01* X-40598Y68945D01* X-40546Y69026D01* X-40472Y69093D01* X-40464Y69100D01* X-40435Y69115D01* X-40383Y69145D01* X-40317Y69174D01* X-40228Y69197D01* X-40124Y69226D01* X-40006Y69241D01* X-39865Y69248D01* X-39288D01* Y67894D01* D02* G37* %LPC*% G36* X-6061Y19312D02* X-7696D01* X-6801D01* Y15376D01* X-7696D01* Y14680D01* X-4840D01* Y15376D01* X-5942D01* Y18432D01* X-4988Y17825D01* X-4632Y18417D01* X-6061Y19312D01* D02* G37* G36* X1709Y19401D02* X1554D01* X1517Y19394D01* X1465D01* X1413Y19387D01* X1280Y19364D01* X1132Y19327D01* X962Y19268D01* X792Y19187D01* X703Y19142D01* X614Y19083D01* X940Y18528D01* X947D01* X955Y18535D01* X999Y18558D01* X1066Y18587D01* X1154Y18624D01* X1258Y18661D01* X1369Y18691D01* X1487Y18713D01* X1606Y18721D01* X1643D01* X1672Y18713D01* X1754Y18698D01* X1850Y18669D01* X1961Y18624D01* X2072Y18550D01* X2131Y18506D01* X2190Y18447D01* X2242Y18387D01* X2294Y18314D01* Y18306D01* X2301Y18291D01* X2316Y18269D01* X2331Y18239D01* X2353Y18203D01* X2375Y18151D01* X2398Y18091D01* X2427Y18032D01* X2449Y17958D01* X2479Y17877D01* X2523Y17699D01* X2553Y17485D01* X2575Y17255D01* X2568Y17263D01* X2560Y17278D01* X2546Y17300D01* X2516Y17337D01* X2486Y17374D01* X2442Y17418D01* X2390Y17462D01* X2338Y17514D01* X2272Y17559D01* X2205Y17603D01* X2124Y17648D01* X2035Y17684D01* X1939Y17721D01* X1835Y17744D01* X1724Y17759D01* X1606Y17766D01* X1539D01* X1473Y17759D01* X1376Y17744D01* X1273Y17721D01* X1162Y17692D01* X1043Y17655D01* X925Y17596D01* X910Y17588D01* X873Y17566D01* X821Y17522D01* X747Y17470D01* X673Y17396D01* X592Y17307D01* X518Y17203D01* X444Y17078D01* Y17070D01* X437Y17063D01* X414Y17018D01* X385Y16944D01* X355Y16848D01* X326Y16730D01* X296Y16589D01* X274Y16434D01* X266Y16264D01* Y14599D01* Y16182D01* X274Y16138D01* Y16086D01* X289Y15975D01* X318Y15834D01* X355Y15687D01* X407Y15539D01* X474Y15391D01* Y15383D01* X481Y15376D01* X511Y15324D01* X555Y15257D01* X614Y15176D01* X696Y15080D01* X792Y14976D01* X903Y14887D01* X1029Y14798D01* X1036D01* X1043Y14791D01* X1066Y14784D01* X1088Y14769D01* X1162Y14732D01* X1258Y14702D01* X1376Y14665D01* X1510Y14628D01* X1665Y14606D01* X1828Y14599D01* X1865D01* D01* X3456D01* X1865D01* X1909Y14606D01* X1968D01* X2035Y14621D01* X2116Y14628D01* X2205Y14650D01* X2301Y14673D01* X2398Y14702D01* X2501Y14747D01* X2605Y14791D01* X2708Y14850D01* X2805Y14917D01* X2901Y14998D01* X2982Y15094D01* X3064Y15198D01* X3071Y15205D01* X3078Y15228D01* X3101Y15265D01* X3123Y15309D01* X3152Y15368D01* X3189Y15442D01* X3226Y15531D01* X3256Y15635D01* X3293Y15746D01* X3330Y15864D01* X3367Y16005D01* X3397Y16145D01* X3419Y16308D01* X3441Y16471D01* X3448Y16648D01* X3456Y16841D01* Y16967D01* X3448Y17033D01* X3441Y17115D01* Y17196D01* X3426Y17292D01* X3404Y17500D01* X3367Y17729D01* X3315Y17958D01* X3241Y18180D01* Y18188D01* X3234Y18203D01* X3219Y18239D01* X3204Y18277D01* X3182Y18321D01* X3152Y18380D01* X3078Y18506D01* X2990Y18654D01* X2879Y18802D01* X2753Y18943D01* X2605Y19076D01* X2597Y19083D01* X2583Y19091D01* X2560Y19105D01* X2531Y19128D01* X2486Y19150D01* X2442Y19179D01* X2383Y19209D01* X2324Y19239D01* X2176Y19298D01* X2005Y19350D01* X1813Y19387D01* X1709Y19401D01* D02* G37* G36* X-10301D02* X-10456D01* X-10493Y19394D01* X-10545D01* X-10597Y19387D01* X-10730Y19364D01* X-10878Y19327D01* X-11048Y19268D01* X-11218Y19187D01* X-11307Y19142D01* X-11396Y19083D01* X-11070Y18528D01* X-11063D01* X-11056Y18535D01* X-11011Y18558D01* X-10945Y18587D01* X-10856Y18624D01* X-10752Y18661D01* X-10641Y18691D01* X-10523Y18713D01* X-10404Y18721D01* X-10367D01* X-10338Y18713D01* X-10256Y18698D01* X-10160Y18669D01* X-10049Y18624D01* X-9938Y18550D01* X-9879Y18506D01* X-9820Y18447D01* X-9768Y18387D01* X-9716Y18314D01* Y18306D01* X-9709Y18291D01* X-9694Y18269D01* X-9679Y18239D01* X-9657Y18203D01* X-9635Y18151D01* X-9613Y18091D01* X-9583Y18032D01* X-9561Y17958D01* X-9531Y17877D01* X-9487Y17699D01* X-9457Y17485D01* X-9435Y17255D01* X-9442Y17263D01* X-9450Y17278D01* X-9465Y17300D01* X-9494Y17337D01* X-9524Y17374D01* X-9568Y17418D01* X-9620Y17462D01* X-9672Y17514D01* X-9738Y17559D01* X-9805Y17603D01* X-9886Y17648D01* X-9975Y17684D01* X-10071Y17721D01* X-10175Y17744D01* X-10286Y17759D01* X-10404Y17766D01* X-10471D01* X-10538Y17759D01* X-10634Y17744D01* X-10737Y17721D01* X-10848Y17692D01* X-10967Y17655D01* X-11085Y17596D01* X-11100Y17588D01* X-11137Y17566D01* X-11189Y17522D01* X-11263Y17470D01* X-11337Y17396D01* X-11418Y17307D01* X-11492Y17203D01* X-11566Y17078D01* Y17070D01* X-11574Y17063D01* X-11596Y17018D01* X-11625Y16944D01* X-11655Y16848D01* X-11685Y16730D01* X-11714Y16589D01* X-11736Y16434D01* X-11744Y16264D01* Y16271D01* Y14599D01* Y16182D01* X-11736Y16138D01* Y16086D01* X-11722Y15975D01* X-11692Y15834D01* X-11655Y15687D01* X-11603Y15539D01* X-11537Y15391D01* Y15383D01* X-11529Y15376D01* X-11500Y15324D01* X-11455Y15257D01* X-11396Y15176D01* X-11315Y15080D01* X-11218Y14976D01* X-11107Y14887D01* X-10982Y14798D01* X-10974D01* X-10967Y14791D01* X-10945Y14784D01* X-10922Y14769D01* X-10848Y14732D01* X-10752Y14702D01* X-10634Y14665D01* X-10501Y14628D01* X-10345Y14606D01* X-10182Y14599D01* X-8554D01* D01* X-10145D01* X-10101Y14606D01* X-10042D01* X-9975Y14621D01* X-9894Y14628D01* X-9805Y14650D01* X-9709Y14673D01* X-9613Y14702D01* X-9509Y14747D01* X-9405Y14791D01* X-9302Y14850D01* X-9206Y14917D01* X-9109Y14998D01* X-9028Y15094D01* X-8947Y15198D01* X-8939Y15205D01* X-8932Y15228D01* X-8910Y15265D01* X-8887Y15309D01* X-8858Y15368D01* X-8821Y15442D01* X-8784Y15531D01* X-8754Y15635D01* X-8717Y15746D01* X-8680Y15864D01* X-8643Y16005D01* X-8614Y16145D01* X-8591Y16308D01* X-8569Y16471D01* X-8562Y16648D01* X-8554Y16841D01* Y16967D01* X-8562Y17033D01* X-8569Y17115D01* Y17196D01* X-8584Y17292D01* X-8606Y17500D01* X-8643Y17729D01* X-8695Y17958D01* X-8769Y18180D01* Y18188D01* X-8776Y18203D01* X-8791Y18239D01* X-8806Y18277D01* X-8828Y18321D01* X-8858Y18380D01* X-8932Y18506D01* X-9021Y18654D01* X-9132Y18802D01* X-9257Y18943D01* X-9405Y19076D01* X-9413Y19083D01* X-9428Y19091D01* X-9450Y19105D01* X-9479Y19128D01* X-9524Y19150D01* X-9568Y19179D01* X-9627Y19209D01* X-9687Y19239D01* X-9835Y19298D01* X-10005Y19350D01* X-10197Y19387D01* X-10301Y19401D01* D02* G37* G36* X11492Y19312D02* X10464D01* X9872Y16301D01* X9309Y19312D01* X8281D01* X8022Y14680D01* D01* X11744D01* D01* X11492Y19312D01* D02* G37* G36* X-474Y19401D02* X-2190D01* X-2264Y19394D01* X-2368Y19387D01* X-2479Y19364D01* X-2605Y19342D01* X-2731Y19305D01* X-2856Y19261D01* X-2864D01* X-2871Y19253D01* X-2908Y19231D01* X-2975Y19202D01* X-3049Y19157D01* X-3130Y19098D01* X-3219Y19024D01* X-3308Y18935D01* X-3389Y18839D01* X-3397Y18824D01* X-3419Y18787D01* X-3456Y18735D01* X-3493Y18654D01* X-3530Y18558D01* X-3567Y18447D01* X-3589Y18321D01* X-3596Y18180D01* Y18166D01* Y18121D01* X-3589Y18062D01* X-3574Y17980D01* X-3552Y17884D01* X-3515Y17788D01* X-3471Y17684D01* X-3404Y17588D01* X-3397Y17581D01* X-3367Y17544D01* X-3323Y17500D01* X-3263Y17440D01* X-3189Y17374D01* X-3093Y17307D01* X-2982Y17241D01* X-2856Y17174D01* X-2864D01* X-2879Y17166D01* X-2901Y17159D01* X-2930Y17144D01* X-3004Y17107D01* X-3101Y17055D01* X-3212Y16989D01* X-3323Y16907D01* X-3434Y16804D01* X-3530Y16693D01* X-3537Y16678D01* X-3567Y16634D01* X-3611Y16567D01* X-3656Y16486D01* X-3700Y16375D01* X-3744Y16249D01* X-3774Y16108D01* X-3781Y15960D01* Y15968D01* Y14599D01* Y15894D01* X-3774Y15820D01* X-3759Y15731D01* X-3730Y15620D01* X-3693Y15502D01* X-3641Y15376D01* X-3574Y15257D01* X-3567Y15243D01* X-3537Y15205D01* X-3493Y15146D01* X-3426Y15080D01* X-3345Y14998D01* X-3249Y14917D01* X-3130Y14843D01* X-2997Y14769D01* X-2990D01* X-2982Y14762D01* X-2960Y14754D01* X-2930Y14739D01* X-2849Y14717D01* X-2745Y14687D01* X-2620Y14650D01* X-2464Y14628D01* X-2301Y14606D01* X-2116Y14599D01* X-2028D01* X-1983Y14606D01* X-1931D01* X-1813Y14621D01* X-1672Y14643D01* X-1524Y14673D01* X-1376Y14710D01* X-1228Y14769D01* X-1221D01* X-1214Y14776D01* X-1169Y14798D01* X-1103Y14843D01* X-1021Y14895D01* X-932Y14961D01* X-836Y15050D01* X-747Y15139D01* X-666Y15250D01* X-659Y15265D01* X-636Y15302D01* X-607Y15368D01* X-570Y15450D01* X-533Y15553D01* X-503Y15672D01* X-481Y15798D01* X-474Y15938D01* Y15975D01* X-481Y16012D01* X-488Y16071D01* X-503Y16138D01* X-518Y16212D01* X-548Y16293D01* X-585Y16389D01* X-629Y16478D01* X-688Y16575D01* X-755Y16671D01* X-844Y16767D01* X-940Y16863D01* X-1058Y16952D01* X-1191Y17026D01* X-1347Y17100D01* X-1339D01* X-1332Y17107D01* X-1288Y17130D01* X-1228Y17159D01* X-1154Y17203D01* X-1066Y17255D01* X-984Y17322D01* X-903Y17403D01* X-829Y17492D01* X-821Y17507D01* X-799Y17537D01* X-777Y17596D01* X-747Y17670D01* X-710Y17759D01* X-688Y17877D01* X-666Y18003D01* X-659Y18143D01* Y18151D01* Y18158D01* Y18180D01* Y18210D01* X-673Y18284D01* X-688Y18380D01* X-710Y18484D01* X-747Y18602D01* X-799Y18713D01* X-866Y18824D01* X-873Y18839D01* X-903Y18868D01* X-947Y18920D01* X-1014Y18987D01* X-1088Y19053D01* X-1184Y19128D01* X-1295Y19194D01* X-1413Y19253D01* X-1421D01* X-1428Y19261D01* X-1473Y19275D01* X-1539Y19298D01* X-1628Y19327D01* X-1739Y19357D01* X-1857Y19379D01* X-1991Y19394D01* X-2124Y19401D01* X-474D01* D02* G37* G36* X7689Y19312D02* X4063D01* X4151Y18573D01* X5439D01* Y14680D01* X7689D01* X6334D01* Y18573D01* X7689D01* Y19312D01* D02* G37* %LPD*% G36* X1850Y17093D02* X1909Y17085D01* X1976Y17070D01* X2050Y17041D01* X2131Y17011D01* X2213Y16967D01* X2220Y16959D01* X2250Y16944D01* X2287Y16915D01* X2338Y16878D01* X2390Y16826D01* X2449Y16767D01* X2509Y16700D01* X2568Y16626D01* Y16619D01* Y16597D01* Y16560D01* X2560Y16508D01* Y16449D01* X2553Y16382D01* X2538Y16234D01* X2516Y16064D01* X2486Y15886D01* X2442Y15731D01* X2412Y15657D01* X2383Y15590D01* X2375Y15575D01* X2346Y15539D01* X2309Y15487D01* X2242Y15435D01* X2168Y15376D01* X2072Y15324D01* X1954Y15287D01* X1887Y15280D01* X1820Y15272D01* X1806D01* X1769Y15280D01* X1709Y15287D01* X1635Y15302D01* X1554Y15331D01* X1465Y15376D01* X1384Y15442D01* X1317Y15524D01* X1310Y15539D01* X1288Y15568D01* X1258Y15627D01* X1228Y15709D01* X1199Y15812D01* X1169Y15931D01* X1147Y16071D01* X1140Y16234D01* Y16241D01* Y16271D01* X1147Y16316D01* Y16367D01* X1162Y16434D01* X1169Y16508D01* X1214Y16671D01* X1251Y16745D01* X1288Y16826D01* X1339Y16900D01* X1399Y16967D01* X1473Y17018D01* X1554Y17063D01* X1650Y17093D01* X1761Y17100D01* X1798D01* X1850Y17093D01* D02* G37* G36* X-10160D02* X-10101Y17085D01* X-10034Y17070D01* X-9960Y17041D01* X-9879Y17011D01* X-9798Y16967D01* X-9790Y16959D01* X-9761Y16944D01* X-9724Y16915D01* X-9672Y16878D01* X-9620Y16826D01* X-9561Y16767D01* X-9502Y16700D01* X-9442Y16626D01* Y16619D01* Y16597D01* Y16560D01* X-9450Y16508D01* Y16449D01* X-9457Y16382D01* X-9472Y16234D01* X-9494Y16064D01* X-9524Y15886D01* X-9568Y15731D01* X-9598Y15657D01* X-9627Y15590D01* X-9635Y15575D01* X-9664Y15539D01* X-9701Y15487D01* X-9768Y15435D01* X-9842Y15376D01* X-9938Y15324D01* X-10057Y15287D01* X-10123Y15280D01* X-10190Y15272D01* X-10205D01* X-10242Y15280D01* X-10301Y15287D01* X-10375Y15302D01* X-10456Y15331D01* X-10545Y15376D01* X-10626Y15442D01* X-10693Y15524D01* X-10700Y15539D01* X-10723Y15568D01* X-10752Y15627D01* X-10782Y15709D01* X-10811Y15812D01* X-10841Y15931D01* X-10863Y16071D01* X-10871Y16234D01* Y16241D01* Y16271D01* X-10863Y16316D01* Y16367D01* X-10848Y16434D01* X-10841Y16508D01* X-10797Y16671D01* X-10760Y16745D01* X-10723Y16826D01* X-10671Y16900D01* X-10612Y16967D01* X-10538Y17018D01* X-10456Y17063D01* X-10360Y17093D01* X-10249Y17100D01* X-10212D01* X-10160Y17093D01* D02* G37* G36* X10863Y18506D02* X10856Y18469D01* Y18432D01* Y18395D01* X10848Y18350D01* Y18299D01* Y18232D01* X10841Y18166D01* Y18084D01* Y17995D01* X10834Y17899D01* Y17796D01* Y17684D01* Y17559D01* Y17551D01* Y17544D01* Y17522D01* Y17492D01* Y17425D01* Y17337D01* Y17233D01* Y17130D01* X10841Y17026D01* Y16930D01* X10937Y14680D01* X8850D01* X8954Y16937D01* Y16944D01* Y16959D01* Y16982D01* Y17011D01* X8961Y17093D01* Y17203D01* X8969Y17329D01* Y17470D01* X8976Y17618D01* Y17766D01* Y17773D01* Y17788D01* Y17818D01* Y17855D01* Y17892D01* Y17943D01* Y18055D01* X8969Y18180D01* Y18306D01* X8961Y18425D01* X8954Y18521D01* X9502Y15472D01* X10271D01* X10863Y18521D01* Y18506D01* D02* G37* G36* X-2020Y18735D02* X-1954Y18721D01* X-1880Y18706D01* X-1798Y18676D01* X-1724Y18632D01* X-1658Y18580D01* X-1650Y18573D01* X-1635Y18550D01* X-1606Y18513D01* X-1576Y18469D01* X-1547Y18402D01* X-1517Y18328D01* X-1502Y18239D01* X-1495Y18136D01* Y18128D01* Y18106D01* X-1502Y18069D01* X-1510Y18018D01* X-1532Y17914D01* X-1554Y17862D01* X-1584Y17810D01* X-1591Y17803D01* X-1598Y17788D01* X-1621Y17766D01* X-1650Y17736D01* X-1687Y17707D01* X-1724Y17670D01* X-1835Y17603D01* X-1843D01* X-1865Y17588D01* X-1902Y17573D01* X-1954Y17551D01* X-2020Y17522D01* X-2094Y17492D01* X-2183Y17462D01* X-2279Y17425D01* X-2294Y17433D01* X-2324Y17455D01* X-2368Y17485D01* X-2420Y17522D01* X-2479Y17566D01* X-2538Y17618D01* X-2597Y17677D01* X-2642Y17736D01* X-2649Y17744D01* X-2664Y17766D01* X-2679Y17803D01* X-2701Y17855D01* X-2723Y17914D01* X-2745Y17980D01* X-2753Y18055D01* X-2760Y18143D01* Y18158D01* Y18188D01* X-2753Y18239D01* X-2738Y18299D01* X-2723Y18373D01* X-2694Y18447D01* X-2649Y18513D01* X-2597Y18580D01* X-2590Y18587D01* X-2568Y18602D01* X-2531Y18632D01* X-2479Y18661D01* X-2412Y18691D01* X-2331Y18721D01* X-2235Y18735D01* X-2124Y18743D01* X-2072D01* X-2020Y18735D01* D02* G37* G36* X-1865Y16819D02* X-1835Y16804D01* X-1806Y16782D01* X-1717Y16715D01* X-1621Y16619D01* X-1524Y16500D01* X-1436Y16353D01* X-1406Y16264D01* X-1376Y16175D01* X-1362Y16071D01* X-1354Y15968D01* Y15953D01* Y15916D01* X-1362Y15849D01* X-1376Y15775D01* X-1399Y15694D01* X-1436Y15612D01* X-1480Y15524D01* X-1547Y15450D01* X-1554Y15442D01* X-1584Y15420D01* X-1628Y15391D01* X-1695Y15361D01* X-1776Y15331D01* X-1872Y15302D01* X-1991Y15280D01* X-2124Y15272D01* X-2183D01* X-2250Y15280D01* X-2331Y15294D01* X-2427Y15316D01* X-2523Y15353D01* X-2612Y15398D01* X-2694Y15457D01* X-2701Y15464D01* X-2723Y15494D01* X-2760Y15531D01* X-2797Y15590D01* X-2827Y15664D01* X-2864Y15746D01* X-2886Y15842D01* X-2893Y15953D01* Y15960D01* Y15990D01* X-2886Y16034D01* X-2879Y16093D01* X-2864Y16153D01* X-2849Y16212D01* X-2819Y16278D01* X-2782Y16338D01* X-2775Y16345D01* X-2760Y16367D01* X-2738Y16389D01* X-2701Y16427D01* X-2657Y16471D01* X-2605Y16508D01* X-2538Y16552D01* X-2464Y16589D01* X-2457Y16597D01* X-2427Y16612D01* X-2383Y16626D01* X-2316Y16656D01* X-2235Y16693D01* X-2139Y16737D01* X-2020Y16782D01* X-1887Y16834D01* X-1880D01* X-1865Y16819D01* D02* G37* D12* X-67200Y-1600D02* X-66850D01* X-67200Y-3400D02* X-66850D01* X-67200D02* Y-1600D01* X-66850Y-3400D02* Y-1600D01* X-68150Y-3400D02* Y-1600D01* X-67800Y-3400D02* Y-1600D01* X-68150D02* X-67800D01* X-68150Y-3400D02* X-67800D01* X-950Y39350D02* Y40650D01* Y39350D02* X-600D01* Y40650D01* X-950D02* X-600D01* X600Y39350D02* X950Y39350D01* X600Y39350D02* Y40650D01* X950Y40650D01* Y39350D02* Y40650D01* X-950Y46350D02* Y47650D01* Y46350D02* X-600D01* Y47650D01* X-950D02* X-600D01* X600Y46350D02* X950Y46350D01* X600Y46350D02* Y47650D01* X950Y47650D01* Y46350D02* Y47650D01* X-15650Y-28950D02* X-14350D01* X-14350Y-28600D02* X-14350Y-28950D01* X-15650Y-28600D02* X-14350D01* X-15650Y-28950D02* X-15650Y-28600D01* X-14350Y-27400D02* Y-27050D01* X-15650Y-27400D02* X-14350D01* X-15650D02* Y-27050D01* X-14350D01* X-26400Y-36200D02* Y-35850D01* X-24600Y-36200D02* Y-35850D01* X-26400Y-36200D02* X-24600D01* X-26400Y-35850D02* X-24600D01* X-26400Y-37150D02* X-24600D01* X-26400Y-36800D02* X-24600D01* X-26400Y-37150D02* Y-36800D01* X-24600Y-37150D02* Y-36800D01* X-67200Y-12100D02* X-66850D01* X-67200Y-13900D02* X-66850D01* X-67200D02* Y-12100D01* X-66850Y-13900D02* Y-12100D01* X-68150Y-13900D02* Y-12100D01* X-67800Y-13900D02* Y-12100D01* X-68150D02* X-67800D01* X-68150Y-13900D02* X-67800D01* X-62900Y-36200D02* Y-35850D01* X-61100Y-36200D02* Y-35850D01* X-62900Y-36200D02* X-61100D01* X-62900Y-35850D02* X-61100D01* X-62900Y-37150D02* X-61100D01* X-62900Y-36800D02* X-61100D01* X-62900Y-37150D02* Y-36800D01* X-61100Y-37150D02* Y-36800D01* X-11650Y27950D02* X-10350D01* X-11650D02* X-11650Y27600D01* X-10350D01* X-10350Y27950D01* X-11650Y26050D02* Y26400D01* X-10350D01* Y26050D02* Y26400D01* X-11650Y26050D02* X-10350D01* X-25650Y27950D02* X-24350D01* X-25650D02* X-25650Y27600D01* X-24350D01* X-24350Y27950D01* X-25650Y26050D02* Y26400D01* X-24350D01* Y26050D02* Y26400D01* X-25650Y26050D02* X-24350D01* X17350Y27950D02* X18650D01* X17350D02* X17350Y27600D01* X18650D01* X18650Y27950D01* X17350Y26050D02* Y26400D01* X18650D01* Y26050D02* Y26400D01* X17350Y26050D02* X18650D01* X3350Y27950D02* X4650D01* X3350D02* X3350Y27600D01* X4650D01* X4650Y27950D01* X3350Y26050D02* Y26400D01* X4650D01* Y26050D02* Y26400D01* X3350Y26050D02* X4650D01* X-4650Y26100D02* X-4300D01* X-4650Y27900D02* X-4300D01* Y26100D02* Y27900D01* X-4650Y26100D02* Y27900D01* X-3350Y26100D02* Y27900D01* X-3700Y26100D02* Y27900D01* Y26100D02* X-3350D01* X-3700Y27900D02* X-3350D01* X-18650Y26100D02* X-18300D01* X-18650Y27900D02* X-18300D01* Y26100D02* Y27900D01* X-18650Y26100D02* Y27900D01* X-17350Y26100D02* Y27900D01* X-17700Y26100D02* Y27900D01* Y26100D02* X-17350D01* X-17700Y27900D02* X-17350D01* X24350Y26100D02* X24700D01* X24350Y27900D02* X24700D01* Y26100D02* Y27900D01* X24350Y26100D02* Y27900D01* X25650Y26100D02* Y27900D01* X25300Y26100D02* Y27900D01* Y26100D02* X25650D01* X25300Y27900D02* X25650D01* X11300D02* X11650D01* X11300Y26100D02* X11650D01* X11300D02* Y27900D01* X11650Y26100D02* Y27900D01* X10350Y26100D02* Y27900D01* X10700Y26100D02* Y27900D01* X10350D02* X10700D01* X10350Y26100D02* X10700D01* X-15650Y-23550D02* X-14350D01* X-15650D02* X-15650Y-23900D01* X-14350D01* X-14350Y-23550D01* X-15650Y-25450D02* Y-25100D01* X-14350D01* Y-25450D02* Y-25100D01* X-15650Y-25450D02* X-14350D01* X-68150Y-32450D02* X-66850D01* X-66850Y-32100D02* X-66850Y-32450D01* X-68150Y-32100D02* X-66850D01* X-68150Y-32450D02* X-68150Y-32100D01* X-66850Y-30900D02* Y-30550D01* X-68150Y-30900D02* X-66850D01* X-68150D02* Y-30550D01* X-66850D01* X4600Y-19700D02* Y-19350D01* X6400Y-19700D02* Y-19350D01* X4600Y-19700D02* X6400D01* X4600Y-19350D02* X6400D01* X4600Y-20650D02* X6400D01* X4600Y-20300D02* X6400D01* X4600Y-20650D02* Y-20300D01* X6400Y-20650D02* Y-20300D01* X8100Y-19700D02* Y-19350D01* X9900Y-19700D02* Y-19350D01* X8100Y-19700D02* X9900D01* X8100Y-19350D02* X9900D01* X8100Y-20650D02* X9900D01* X8100Y-20300D02* X9900D01* X8100Y-20650D02* Y-20300D01* X9900Y-20650D02* Y-20300D01* X-15650Y-21900D02* X-15300D01* X-15650Y-20100D02* X-15300D01* Y-21900D02* Y-20100D01* X-15650Y-21900D02* Y-20100D01* X-14350Y-21900D02* Y-20100D01* X-14700Y-21900D02* Y-20100D01* Y-21900D02* X-14350D01* X-14700Y-20100D02* X-14350D01* X-68150Y-39450D02* X-66850D01* X-66850Y-39100D02* X-66850Y-39450D01* X-68150Y-39100D02* X-66850D01* X-68150Y-39450D02* X-68150Y-39100D01* X-66850Y-37900D02* Y-37550D01* X-68150Y-37900D02* X-66850D01* X-68150D02* Y-37550D01* X-66850D01* X22300Y-37100D02* X22650D01* X22300Y-38900D02* X22650D01* X22300D02* Y-37100D01* X22650Y-38900D02* Y-37100D01* X21350Y-38900D02* Y-37100D01* X21700Y-38900D02* Y-37100D01* X21350D02* X21700D01* X21350Y-38900D02* X21700D01* X21350Y-55550D02* X22650D01* X21350D02* X21350Y-55900D01* X22650D01* X22650Y-55550D01* X21350Y-57450D02* Y-57100D01* X22650D01* Y-57450D02* Y-57100D01* X21350Y-57450D02* X22650D01* X-67200Y-34100D02* X-66850D01* X-67200Y-35900D02* X-66850D01* X-67200D02* Y-34100D01* X-66850Y-35900D02* Y-34100D01* X-68150Y-35900D02* Y-34100D01* X-67800Y-35900D02* Y-34100D01* X-68150D02* X-67800D01* X-68150Y-35900D02* X-67800D01* X-650Y-18400D02* X-300D01* X-650Y-16600D02* X-300D01* Y-18400D02* Y-16600D01* X-650Y-18400D02* Y-16600D01* X650Y-18400D02* Y-16600D01* X300Y-18400D02* Y-16600D01* Y-18400D02* X650D01* X300Y-16600D02* X650D01* X-650Y-21900D02* X-300D01* X-650Y-20100D02* X-300D01* Y-21900D02* Y-20100D01* X-650Y-21900D02* Y-20100D01* X650Y-21900D02* Y-20100D01* X300Y-21900D02* Y-20100D01* Y-21900D02* X650D01* X300Y-20100D02* X650D01* X-8150Y-21900D02* X-7800D01* X-8150Y-20100D02* X-7800D01* Y-21900D02* Y-20100D01* X-8150Y-21900D02* Y-20100D01* X-6850Y-21900D02* Y-20100D01* X-7200Y-21900D02* Y-20100D01* Y-21900D02* X-6850D01* X-7200Y-20100D02* X-6850D01* X6400Y-28650D02* Y-28300D01* X4600Y-28650D02* Y-28300D01* X6400D01* X4600Y-28650D02* X6400D01* X4600Y-27350D02* X6400D01* X4600Y-27700D02* X6400D01* Y-27350D01* X4600Y-27700D02* Y-27350D01* X9900Y-28650D02* Y-28300D01* X8100Y-28650D02* Y-28300D01* X9900D01* X8100Y-28650D02* X9900D01* X8100Y-27350D02* X9900D01* X8100Y-27700D02* X9900D01* Y-27350D01* X8100Y-27700D02* Y-27350D01* X24900Y-24650D02* Y-24300D01* X23100Y-24650D02* Y-24300D01* X24900D01* X23100Y-24650D02* X24900D01* X23100Y-23350D02* X24900D01* X23100Y-23700D02* X24900D01* Y-23350D01* X23100Y-23700D02* Y-23350D01* X24900Y-33150D02* Y-32800D01* X23100Y-33150D02* Y-32800D01* X24900D01* X23100Y-33150D02* X24900D01* X23100Y-31850D02* X24900D01* X23100Y-32200D02* X24900D01* Y-31850D01* X23100Y-32200D02* Y-31850D01* X21350Y-19400D02* X21700D01* X21350Y-17600D02* X21700D01* Y-19400D02* Y-17600D01* X21350Y-19400D02* Y-17600D01* X22650Y-19400D02* Y-17600D01* X22300Y-19400D02* Y-17600D01* Y-19400D02* X22650D01* X22300Y-17600D02* X22650D01* X13850Y-19450D02* X15150D01* X15150Y-19100D02* X15150Y-19450D01* X13850Y-19100D02* X15150D01* X13850Y-19450D02* X13850Y-19100D01* X15150Y-17900D02* Y-17550D01* X13850Y-17900D02* X15150D01* X13850D02* Y-17550D01* X15150D01* X8050Y-36650D02* Y-35350D01* Y-36650D02* X8400Y-36650D01* Y-35350D01* X8050Y-35350D02* X8400Y-35350D01* X9600Y-36650D02* X9950D01* X9600D02* Y-35350D01* X9950D01* Y-36650D02* Y-35350D01* X6400Y-36650D02* Y-36300D01* X4600Y-36650D02* Y-36300D01* X6400D01* X4600Y-36650D02* X6400D01* X4600Y-35350D02* X6400D01* X4600Y-35700D02* X6400D01* Y-35350D01* X4600Y-35700D02* Y-35350D01* X13850Y-38950D02* X15150D01* X15150Y-38600D02* X15150Y-38950D01* X13850Y-38600D02* X15150D01* X13850Y-38950D02* X13850Y-38600D01* X15150Y-37400D02* Y-37050D01* X13850Y-37400D02* X15150D01* X13850D02* Y-37050D01* X15150D01* D13* X-29346Y40941D02* Y45059D01* X-22654Y40941D02* Y45059D01* X-71087Y-15795D02* X-70791Y-15500D01* X-64394D02* X-64000Y-15894D01* X-64500Y-28500D02* X-64000Y-28000D01* X-71000D02* X-70500Y-28500D01* X-64000Y-28000D02* Y-27803D01* X-70791Y-15500D02* X-64394D01* X-70500Y-28500D02* X-64500D01* X-64000Y-16091D02* Y-15894D01* X29346Y40941D02* Y45059D01* X22654Y40941D02* Y45059D01* X-9602Y-27457D02* X-6256D01* X-9602Y-31787D02* Y-27457D01* X-744D02* X2602D01* Y-31787D02* Y-27457D01* X-12224Y-59842D02* Y-40157D01* X-2776Y-59842D02* Y-40157D01* X-12224Y-59842D02* X-2776D01* X-12224Y-40157D02* X-2776D01* X4724Y-9843D02* Y9843D01* X-4724Y-9843D02* Y9843D01* X4724D01* X-4724Y-9843D02* X4724D01* D14* X-55000Y-31500D02* Y-8500D01* X-32000Y-8500D02* X-32000Y-31500D01* X-55000D02* X-32000D01* X-55000Y-8500D02* X-32000Y-8500D01* D84* X-465Y32567D02* G03* X-465Y32567I-492J0D01* G01* X24276Y-32724D02* G03* X24276Y-32724I-492J0D01* G01* X-17441Y-61043D02* G03* X-17441Y-61043I-492J0D01* G01* X23535Y32567D02* G03* X23535Y32567I-492J0D01* G01* X10925Y11043D02* G03* X10925Y11043I-492J0D01* G01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GBP ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=128* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% D18* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GBS ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Negative* G04* G01* G75* G04:AMPARAMS|DCode=38|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD38* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % %ADD38ROUNDEDRECTD38*% %ADD49C,0.20600*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% %ADD73O,0.02568X0.05718*% G04:AMPARAMS|DCode=74|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD74* 21,1,0.02600,0.01000,0,0,270.0* 21,1,0.01000,0.02600,0,0,270.0* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* 1,1,0.01600,0.00500,-0.00500* % %ADD74ROUNDEDRECTD74*% G04:AMPARAMS|DCode=75|XSize=96.55mil|YSize=96.55mil|CornerRadius=25.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD75* 21,1,0.09655,0.04528,0,0,0.0* 21,1,0.04528,0.09655,0,0,0.0* 1,1,0.05128,0.02264,-0.02264* 1,1,0.05128,-0.02264,-0.02264* 1,1,0.05128,-0.02264,0.02264* 1,1,0.05128,0.02264,0.02264* % %ADD75ROUNDEDRECTD75*% G04:AMPARAMS|DCode=76|XSize=206mil|YSize=86mil|CornerRadius=23mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD76* 21,1,0.20600,0.04000,0,0,270.0* 21,1,0.16000,0.08600,0,0,270.0* 1,1,0.04600,-0.02000,-0.08000* 1,1,0.04600,-0.02000,0.08000* 1,1,0.04600,0.02000,0.08000* 1,1,0.04600,0.02000,-0.08000* % %ADD76ROUNDEDRECTD76*% G04:AMPARAMS|DCode=77|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD77* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % %ADD77ROUNDEDRECTD77*% G04:AMPARAMS|DCode=78|XSize=27.65mil|YSize=63.09mil|CornerRadius=8.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD78* 21,1,0.02765,0.04626,0,0,270.0* 21,1,0.01083,0.06309,0,0,270.0* 1,1,0.01683,-0.02313,-0.00541* 1,1,0.01683,-0.02313,0.00541* 1,1,0.01683,0.02313,0.00541* 1,1,0.01683,0.02313,-0.00541* % %ADD78ROUNDEDRECTD78*% G04:AMPARAMS|DCode=79|XSize=29.62mil|YSize=41mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD79* 21,1,0.02962,0.02319,0,0,0.0* 21,1,0.01181,0.04100,0,0,0.0* 1,1,0.01781,0.00591,-0.01159* 1,1,0.01781,-0.00591,-0.01159* 1,1,0.01781,-0.00591,0.01159* 1,1,0.01781,0.00591,0.01159* % %ADD79ROUNDEDRECTD79*% G04:AMPARAMS|DCode=80|XSize=33.56mil|YSize=57.18mil|CornerRadius=9.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD80* 21,1,0.03356,0.03740,0,0,0.0* 21,1,0.01378,0.05718,0,0,0.0* 1,1,0.01978,0.00689,-0.01870* 1,1,0.01978,-0.00689,-0.01870* 1,1,0.01978,-0.00689,0.01870* 1,1,0.01978,0.00689,0.01870* % %ADD80ROUNDEDRECTD80*% %ADD81O,0.05718X0.02568*% %ADD82O,0.01800X0.06000*% %ADD83O,0.06000X0.01800*% G36* X60300Y36696D02* X57858Y36178D01* Y34911D01* X57849Y34790D01* Y34596D01* X57840Y34513D01* Y34374D01* X57830Y34319D01* Y34235D01* X57821Y34189D01* Y34170D01* X57793Y33976D01* X57756Y33810D01* X57719Y33662D01* X57682Y33542D01* X57655Y33449D01* X57627Y33375D01* X57617Y33338D01* X57608Y33320D01* X57543Y33199D01* X57479Y33097D01* X57414Y32996D01* X57340Y32912D01* X57284Y32838D01* X57238Y32783D01* X57201Y32746D01* X57192Y32737D01* X57081Y32635D01* X56961Y32542D01* X56840Y32469D01* X56720Y32404D01* X56618Y32348D01* X56535Y32311D01* X56480Y32283D01* X56471Y32274D01* X56461D01* X56286Y32210D01* X56119Y32163D01* X55953Y32126D01* X55814Y32108D01* X55684Y32089D01* X55592Y32080D01* X55555D01* X55527D01* X55518D01* X55509D01* X55323Y32089D01* X55148Y32117D01* X55000Y32154D01* X54861Y32200D01* X54759Y32247D01* X54676Y32283D01* X54630Y32311D01* X54611Y32320D01* X54482Y32413D01* X54361Y32524D01* X54269Y32635D01* X54195Y32737D01* X54140Y32829D01* X54093Y32903D01* X54075Y32950D01* X54066Y32959D01* Y32968D01* X54010Y33125D01* X53973Y33310D01* X53936Y33486D01* X53917Y33662D01* X53908Y33819D01* Y33884D01* X53899Y33948D01* Y36659D01* X60300Y38000D01* Y36696D01* D02* G37* G36* Y27029D02* X59227Y26798D01* Y30526D01* X57488Y30147D01* Y26807D01* X56415Y26586D01* Y29906D01* X54972Y29592D01* Y26160D01* X53899Y25938D01* Y30683D01* X60300Y32024D01* Y27029D01* D02* G37* G36* Y24819D02* X55999Y23912D01* X60300Y22173D01* Y20962D01* X53899Y19620D01* Y20832D01* X58182Y21738D01* X53899Y23478D01* Y24689D01* X60300Y26030D01* Y24819D01* D02* G37* G36* X58006Y19176D02* X58246Y19149D01* X58469Y19102D01* X58681Y19047D01* X58866Y18982D01* X59042Y18917D01* X59199Y18834D01* X59347Y18751D01* X59468Y18677D01* X59579Y18594D01* X59671Y18529D01* X59745Y18455D01* X59810Y18408D01* X59847Y18362D01* X59874Y18335D01* X59884Y18325D01* X59976Y18196D01* X60059Y18066D01* X60133Y17918D01* X60189Y17770D01* X60245Y17622D01* X60291Y17465D01* X60356Y17178D01* X60374Y17040D01* X60392Y16910D01* X60402Y16799D01* X60411Y16697D01* X60420Y16614D01* Y16503D01* X60411Y16216D01* X60383Y15948D01* X60346Y15689D01* X60309Y15467D01* X60291Y15365D01* X60272Y15273D01* X60254Y15199D01* X60235Y15134D01* X60217Y15078D01* X60207Y15042D01* X60198Y15014D01* Y15004D01* X60106Y14736D01* X60013Y14496D01* X59921Y14283D01* X59838Y14098D01* X59791Y14024D01* X59754Y13959D01* X59727Y13894D01* X59699Y13848D01* X59671Y13811D01* X59662Y13774D01* X59643Y13765D01* Y13756D01* X56877Y13182D01* Y16040D01* X57951Y16262D01* Y14625D01* X58912Y14829D01* X58968Y14958D01* X59023Y15088D01* X59079Y15217D01* X59116Y15337D01* X59153Y15439D01* X59181Y15522D01* X59190Y15578D01* X59199Y15587D01* Y15597D01* X59236Y15763D01* X59264Y15920D01* X59292Y16068D01* X59301Y16198D01* X59310Y16309D01* X59320Y16392D01* Y16466D01* X59301Y16716D01* X59264Y16938D01* X59199Y17123D01* X59125Y17271D01* X59061Y17391D01* X58996Y17483D01* X58959Y17530D01* X58940Y17548D01* X58866Y17613D01* X58774Y17669D01* X58589Y17761D01* X58385Y17817D01* X58191Y17863D01* X58015Y17890D01* X57941Y17900D01* X57867D01* X57812Y17909D01* X57775D01* X57747D01* X57738D01* X57433Y17900D01* X57155Y17863D01* X56896Y17817D01* X56776Y17789D01* X56674Y17761D01* X56572Y17733D01* X56480Y17706D01* X56406Y17678D01* X56341Y17659D01* X56286Y17641D01* X56248Y17622D01* X56230Y17613D01* X56221D01* X55971Y17493D01* X55758Y17354D01* X55582Y17215D01* X55435Y17086D01* X55323Y16965D01* X55250Y16864D01* X55222Y16827D01* X55203Y16799D01* X55185Y16790D01* Y16781D01* X55074Y16577D01* X54991Y16374D01* X54926Y16179D01* X54889Y15994D01* X54861Y15846D01* X54852Y15781D01* Y15717D01* X54843Y15680D01* Y15615D01* X54852Y15421D01* X54889Y15245D01* X54926Y15088D01* X54981Y14958D01* X55028Y14847D01* X55074Y14773D01* X55111Y14727D01* X55120Y14708D01* X55231Y14579D01* X55361Y14477D01* X55499Y14385D01* X55629Y14311D01* X55749Y14255D01* X55841Y14209D01* X55879Y14200D01* X55906Y14190D01* X55925Y14181D01* X55934D01* X55795Y12951D01* X55620Y12997D01* X55453Y13053D01* X55296Y13117D01* X55148Y13182D01* X55009Y13256D01* X54889Y13330D01* X54778Y13404D01* X54676Y13478D01* X54593Y13552D01* X54510Y13626D01* X54445Y13682D01* X54389Y13737D01* X54352Y13783D01* X54325Y13821D01* X54306Y13839D01* X54297Y13848D01* X54204Y13978D01* X54121Y14117D01* X54056Y14255D01* X54001Y14403D01* X53908Y14699D01* X53843Y14986D01* X53825Y15115D01* X53807Y15236D01* X53797Y15347D01* X53788Y15439D01* X53779Y15513D01* Y15624D01* X53788Y15828D01* X53807Y16022D01* X53834Y16216D01* X53871Y16392D01* X53908Y16568D01* X53964Y16725D01* X54010Y16873D01* X54066Y17003D01* X54121Y17132D01* X54167Y17234D01* X54223Y17335D01* X54260Y17410D01* X54297Y17474D01* X54325Y17521D01* X54343Y17548D01* X54352Y17558D01* X54463Y17706D01* X54584Y17844D01* X54843Y18094D01* X54981Y18214D01* X55111Y18316D01* X55240Y18408D01* X55370Y18492D01* X55490Y18566D01* X55601Y18631D01* X55694Y18686D01* X55786Y18732D01* X55851Y18769D01* X55906Y18797D01* X55943Y18806D01* X55953Y18815D01* X56276Y18936D01* X56600Y19028D01* X56905Y19093D01* X57044Y19121D01* X57174Y19139D01* X57303Y19158D01* X57414Y19167D01* X57507Y19176D01* X57599D01* X57664Y19185D01* X57710D01* X57747D01* X57756D01* X58006Y19176D01* D02* G37* G36* X60300Y7826D02* X59227Y7604D01* Y9381D01* X59236Y9612D01* Y10417D01* X59246Y10527D01* Y10759D01* X59255Y10860D01* Y10953D01* X54907Y7235D01* X53899Y7040D01* Y11656D01* X54972Y11878D01* Y8890D01* X59292Y12581D01* X60300Y12794D01* Y7826D01* D02* G37* G36* Y5866D02* X57442Y5264D01* Y2776D01* X60300Y3368D01* Y2064D01* X53899Y713D01* Y2027D01* X56369Y2545D01* Y5033D01* X53899Y4515D01* Y5829D01* X60300Y7170D01* Y5866D01* D02* G37* G36* Y-526D02* X53899Y-1877D01* Y-563D01* X60300Y778D01* Y-526D01* D02* G37* G36* Y-3079D02* X57442Y-3681D01* Y-6169D01* X60300Y-5577D01* Y-6881D01* X53899Y-8231D01* Y-6918D01* X56369Y-6400D01* Y-3912D01* X53899Y-4430D01* Y-3116D01* X60300Y-1775D01* Y-3079D01* D02* G37* G36* X58617Y-8676D02* X58764Y-8694D01* X58912Y-8722D01* X59042Y-8759D01* X59171Y-8805D01* X59282Y-8861D01* X59394Y-8916D01* X59486Y-8971D01* X59579Y-9027D01* X59653Y-9082D01* X59717Y-9138D01* X59773Y-9184D01* X59819Y-9221D01* X59847Y-9249D01* X59865Y-9268D01* X59874Y-9277D01* X59967Y-9397D01* X60050Y-9536D01* X60124Y-9674D01* X60189Y-9813D01* X60245Y-9961D01* X60291Y-10119D01* X60356Y-10405D01* X60374Y-10535D01* X60392Y-10664D01* X60402Y-10775D01* X60411Y-10868D01* X60420Y-10951D01* Y-11062D01* X60402Y-11404D01* X60383Y-11571D01* X60365Y-11719D01* X60337Y-11857D01* X60309Y-11987D01* X60281Y-12107D01* X60245Y-12218D01* X60207Y-12320D01* X60180Y-12403D01* X60152Y-12477D01* X60124Y-12542D01* X60097Y-12588D01* X60087Y-12625D01* X60069Y-12644D01* Y-12653D01* X59930Y-12875D01* X59773Y-13069D01* X59625Y-13236D01* X59477Y-13365D01* X59347Y-13476D01* X59246Y-13550D01* X59209Y-13569D01* X59181Y-13587D01* X59162Y-13606D01* X59153D01* X59042Y-13661D01* X58922Y-13717D01* X58663Y-13828D01* X58385Y-13920D01* X58126Y-13994D01* X58006Y-14031D01* X57895Y-14059D01* X57793Y-14087D01* X57701Y-14115D01* X57627Y-14133D01* X57571Y-14142D01* X57534Y-14152D01* X57525D01* X53899Y-14919D01* Y-13606D01* X57405Y-12866D01* X57562Y-12829D01* X57701Y-12801D01* X57830Y-12764D01* X57951Y-12727D01* X58061Y-12699D01* X58163Y-12672D01* X58246Y-12634D01* X58330Y-12616D01* X58394Y-12588D01* X58459Y-12561D01* X58505Y-12542D01* X58543Y-12524D01* X58598Y-12505D01* X58617Y-12496D01* X58737Y-12422D01* X58848Y-12338D01* X58940Y-12246D01* X59014Y-12163D01* X59070Y-12089D01* X59107Y-12024D01* X59135Y-11987D01* X59144Y-11969D01* X59199Y-11839D01* X59246Y-11691D01* X59273Y-11552D01* X59301Y-11423D01* X59310Y-11303D01* X59320Y-11201D01* Y-11118D01* X59310Y-10914D01* X59282Y-10738D01* X59246Y-10590D01* X59209Y-10461D01* X59171Y-10368D01* X59135Y-10294D01* X59107Y-10257D01* X59097Y-10239D01* X59005Y-10137D01* X58912Y-10072D01* X58811Y-10017D01* X58718Y-9980D01* X58635Y-9961D01* X58570Y-9952D01* X58533Y-9943D01* X58515D01* X58404Y-9961D01* X58311Y-9971D01* X58256Y-9980D01* X58246D01* X58237D01* X57386Y-10174D01* X53899Y-10932D01* Y-9628D01* X57275Y-8870D01* X57395Y-8842D01* X57497Y-8823D01* X57590Y-8805D01* X57673Y-8787D01* X57747Y-8768D01* X57812Y-8759D01* X57923Y-8740D01* X57987Y-8722D01* X58043D01* X58061Y-8713D01* X58071D01* X58219Y-8694D01* X58284Y-8685D01* X58348Y-8676D01* X58394D01* X58432Y-8666D01* X58450D01* X58459D01* X58617Y-8676D01* D02* G37* G36* X60300Y-15927D02* X53899Y-17278D01* Y-15965D01* X60300Y-14623D01* Y-15927D01* D02* G37* G36* Y-18443D02* X59088Y-18684D01* Y-17445D01* X60300Y-17204D01* Y-18443D01* D02* G37* G36* Y-20710D02* X59338Y-21588D01* X59199Y-21709D01* X59070Y-21829D01* X58959Y-21931D01* X58848Y-22014D01* X58755Y-22097D01* X58672Y-22171D01* X58598Y-22227D01* X58533Y-22282D01* X58432Y-22366D01* X58358Y-22421D01* X58320Y-22449D01* X58311Y-22458D01* X58376Y-22486D01* X58450Y-22513D01* X58607Y-22588D01* X58783Y-22671D01* X58959Y-22754D01* X59116Y-22837D01* X59181Y-22874D01* X59246Y-22902D01* X59292Y-22930D01* X59329Y-22948D01* X59356Y-22967D01* X59366D01* X60300Y-23457D01* Y-24946D01* X57266Y-23365D01* X53913Y-26285D01* X57802Y-28045D01* X60300Y-27527D01* Y-28831D01* X57932Y-29331D01* X53899Y-32272D01* Y-30737D01* X55194Y-29840D01* X56045Y-29229D01* X56267Y-29081D01* X56369Y-29016D01* X56461Y-28961D01* X56535Y-28924D01* X56591Y-28887D01* X56628Y-28868D01* X56637Y-28859D01* X56517Y-28813D01* X56369Y-28757D01* X56212Y-28692D01* X56063Y-28628D01* X55925Y-28572D01* X55860Y-28545D01* X55805Y-28526D01* X55768Y-28508D01* X55730Y-28489D01* X55712Y-28480D01* X55703D01* X53899Y-27684D01* Y-26297D01* Y-24622D01* X55009Y-23623D01* X55166Y-23485D01* X55342Y-23337D01* X55518Y-23189D01* X55675Y-23041D01* X55823Y-22920D01* X55888Y-22865D01* X55943Y-22828D01* X55980Y-22791D01* X56017Y-22763D01* X56036Y-22745D01* X56045Y-22736D01* X55999Y-22717D01* X55962Y-22698D01* X55943Y-22689D01* X55934Y-22680D01* X55795Y-22606D01* X55666Y-22550D01* X55555Y-22495D01* X55462Y-22449D01* X55379Y-22402D01* X55314Y-22375D01* X55250Y-22338D01* X55203Y-22319D01* X55166Y-22301D01* X55138Y-22282D01* X55092Y-22264D01* X55074Y-22254D01* X53899Y-21625D01* Y-20247D01* X57072Y-21838D01* X60300Y-19008D01* Y-20710D01* D02* G37* G36* Y-36407D02* X59227Y-36629D01* Y-34853D01* X59236Y-34622D01* Y-33817D01* X59246Y-33706D01* Y-33475D01* X59255Y-33373D01* Y-33281D01* X54907Y-36999D01* X53899Y-37193D01* Y-32577D01* X54972Y-32355D01* Y-35343D01* X59292Y-31653D01* X60300Y-31440D01* Y-36407D01* D02* G37* %LPC*% G36* X56785Y35956D02* X54953Y35567D01* Y34402D01* X54963Y34309D01* Y34226D01* X54972Y34078D01* X54991Y33976D01* X55000Y33893D01* X55018Y33838D01* X55028Y33810D01* Y33801D01* X55092Y33680D01* X55157Y33588D01* X55212Y33532D01* X55231Y33514D01* X55240D01* X55296Y33477D01* X55361Y33449D01* X55481Y33412D01* X55536D01* X55582Y33403D01* X55610D01* X55620D01* X55749Y33412D01* X55860Y33430D01* X55971Y33468D01* X56063Y33505D01* X56138Y33542D01* X56202Y33579D01* X56239Y33597D01* X56248Y33606D01* X56341Y33689D01* X56424Y33782D01* X56498Y33874D01* X56554Y33958D01* X56600Y34041D01* X56628Y34106D01* X56646Y34143D01* X56656Y34161D01* X56674Y34235D01* X56702Y34319D01* X56711Y34420D01* X56730Y34522D01* X56757Y34753D01* X56766Y34984D01* X56776Y35197D01* X56785Y35299D01* Y35956D01* D02* G37* %LPD*% D38* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D49* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D73* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D74* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D75* X-12000Y43000D02* D03* X12000D02* D03* D76* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D77* X-67500Y-18260D02* D03* D78* X-67500Y-22000D02* D03* Y-25740D02* D03* D79* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D80* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D81* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D82* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D83* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GD1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=2752767* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% %ADD87C,0.00267*% D86* X-99087Y-53576D02* Y-51976D01* X-97487D01* Y-53576D01* X-99087D01* X97487D02* Y-51976D01* X99087D01* Y-53576D01* X97487D01* Y51976D02* Y53576D01* X99087D01* Y51976D01* X97487D01* X-99087D02* Y53576D01* X-97487D01* Y51976D01* X-99087D01* X4500Y51300D02* X3700Y52900D01* X5300D01* X4500Y51300D01* Y54300D02* X3700Y55900D01* X5300D01* X4500Y54300D01* X32000Y15200D02* X31200Y16800D01* X32800D01* X32000Y15200D01* X29000D02* X28200Y16800D01* X29800D01* X29000Y15200D01* X26000D02* X25200Y16800D01* X26800D01* X26000Y15200D01* X23000D02* X22200Y16800D01* X23800D01* X23000Y15200D01* X20000D02* X19200Y16800D01* X20800D01* X20000Y15200D01* X17000D02* X16200Y16800D01* X17800D01* X17000Y15200D01* X14000D02* X13200Y16800D01* X14800D01* X14000Y15200D01* X11000D02* X10200Y16800D01* X11800D01* X11000Y15200D01* X8000D02* X7200Y16800D01* X8800D01* X8000Y15200D01* X5000D02* X4200Y16800D01* X5800D01* X5000Y15200D01* X2000D02* X1200Y16800D01* X2800D01* X2000Y15200D01* X-1000D02* X-1800Y16800D01* X-200D01* X-1000Y15200D01* X-4000D02* X-4800Y16800D01* X-3200D01* X-4000Y15200D01* X-7000D02* X-7800Y16800D01* X-6200D01* X-7000Y15200D01* X-10000D02* X-10800Y16800D01* X-9200D01* X-10000Y15200D01* X-13000D02* X-13800Y16800D01* X-12200D01* X-13000Y15200D01* X-16000D02* X-16800Y16800D01* X-15200D01* X-16000Y15200D01* X-19000D02* X-19800Y16800D01* X-18200D01* X-19000Y15200D01* X73000Y-15800D02* X72200Y-14200D01* X73800D01* X73000Y-15800D01* X76000D02* X75200Y-14200D01* X76800D01* X76000Y-15800D01* X70000D02* X69200Y-14200D01* X70800D01* X70000Y-15800D01* Y-12800D02* X69200Y-11200D01* X70800D01* X70000Y-12800D01* X73000D02* X72200Y-11200D01* X73800D01* X73000Y-12800D01* X76000D02* X75200Y-11200D01* X76800D01* X76000Y-12800D01* X73000Y-18800D02* X72200Y-17200D01* X73800D01* X73000Y-18800D01* X76000D02* X75200Y-17200D01* X76800D01* X76000Y-18800D01* X70000D02* X69200Y-17200D01* X70800D01* X70000Y-18800D01* X73000Y14200D02* X72200Y15800D01* X73800D01* X73000Y14200D01* Y11200D02* X72200Y12800D01* X73800D01* X73000Y11200D01* Y17200D02* X72200Y18800D01* X73800D01* X73000Y17200D01* X76000D02* X75200Y18800D01* X76800D01* X76000Y17200D01* Y14200D02* X75200Y15800D01* X76800D01* X76000Y14200D01* Y11200D02* X75200Y12800D01* X76800D01* X76000Y11200D01* X70000Y14200D02* X69200Y15800D01* X70800D01* X70000Y14200D01* Y11200D02* X69200Y12800D01* X70800D01* X70000Y11200D01* Y17200D02* X69200Y18800D01* X70800D01* X70000Y17200D01* X-30500Y62200D02* X-31300Y63800D01* X-29700D01* X-30500Y62200D01* Y59200D02* X-31300Y60800D01* X-29700D01* X-30500Y59200D01* Y65200D02* X-31300Y66800D01* X-29700D01* X-30500Y65200D01* X-27500D02* X-28300Y66800D01* X-26700D01* X-27500Y65200D01* Y62200D02* X-28300Y63800D01* X-26700D01* X-27500Y62200D01* Y59200D02* X-28300Y60800D01* X-26700D01* X-27500Y59200D01* X-33500Y62200D02* X-34300Y63800D01* X-32700D01* X-33500Y62200D01* Y59200D02* X-34300Y60800D01* X-32700D01* X-33500Y59200D01* Y65200D02* X-34300Y66800D01* X-32700D01* X-33500Y65200D01* X-39500Y62200D02* X-40300Y63800D01* X-38700D01* X-39500Y62200D01* Y59200D02* X-40300Y60800D01* X-38700D01* X-39500Y59200D01* Y65200D02* X-40300Y66800D01* X-38700D01* X-39500Y65200D01* X-36500D02* X-37300Y66800D01* X-35700D01* X-36500Y65200D01* Y62200D02* X-37300Y63800D01* X-35700D01* X-36500Y62200D01* Y59200D02* X-37300Y60800D01* X-35700D01* X-36500Y59200D01* X-42500Y62200D02* X-43300Y63800D01* X-41700D01* X-42500Y62200D01* Y59200D02* X-43300Y60800D01* X-41700D01* X-42500Y59200D01* Y65200D02* X-43300Y66800D01* X-41700D01* X-42500Y65200D01* X-39592Y-22300D02* X-40392Y-20700D01* X-38792D01* X-39592Y-22300D01* X-36546D02* X-37346Y-20700D01* X-35746D01* X-36546Y-22300D01* X-33500D02* X-34300Y-20700D01* X-32700D01* X-33500Y-22300D01* Y-25300D02* X-34300Y-23700D01* X-32700D01* X-33500Y-25300D01* X-36546D02* X-37346Y-23700D01* X-35746D01* X-36546Y-25300D01* X-39592Y-25366D02* X-40392Y-23766D01* X-38792D01* X-39592Y-25366D01* Y-28300D02* X-40392Y-26700D01* X-38792D01* X-39592Y-28300D01* X-36546D02* X-37346Y-26700D01* X-35746D01* X-36546Y-28300D01* X-33500D02* X-34300Y-26700D01* X-32700D01* X-33500Y-28300D01* X-19500Y40200D02* X-20300Y41800D01* X-18700D01* X-19500Y40200D01* Y37200D02* X-20300Y38800D01* X-18700D01* X-19500Y37200D01* Y43200D02* X-20300Y44800D01* X-18700D01* X-19500Y43200D01* X33100Y43600D02* X32300Y45200D01* X33900D01* X33100Y43600D01* Y40600D02* X32300Y42200D01* X33900D01* X33100Y40600D01* Y37600D02* X32300Y39200D01* X33900D01* X33100Y37600D01* Y34600D02* X32300Y36200D01* X33900D01* X33100Y34600D01* Y31600D02* X32300Y33200D01* X33900D01* X33100Y31600D01* Y28600D02* X32300Y30200D01* X33900D01* X33100Y28600D01* X-34200Y51200D02* X-35000Y52800D01* X-33400D01* X-34200Y51200D01* Y48200D02* X-35000Y49800D01* X-33400D01* X-34200Y48200D01* Y45200D02* X-35000Y46800D01* X-33400D01* X-34200Y45200D01* Y42200D02* X-35000Y43800D01* X-33400D01* X-34200Y42200D01* Y39200D02* X-35000Y40800D01* X-33400D01* X-34200Y39200D01* Y36200D02* X-35000Y37800D01* X-33400D01* X-34200Y36200D01* X19300Y43900D02* X18500Y45500D01* X20100D01* X19300Y43900D01* Y40900D02* X18500Y42500D01* X20100D01* X19300Y40900D01* Y37900D02* X18500Y39500D01* X20100D01* X19300Y37900D01* X4300Y44300D02* X3500Y45900D01* X5100D01* X4300Y44300D01* Y41300D02* X3500Y42900D01* X5100D01* X4300Y41300D01* Y38300D02* X3500Y39900D01* X5100D01* X4300Y38300D01* X-4200Y44300D02* X-5000Y45900D01* X-3400D01* X-4200Y44300D01* Y41300D02* X-5000Y42900D01* X-3400D01* X-4200Y41300D01* Y38300D02* X-5000Y39900D01* X-3400D01* X-4200Y38300D01* X12000Y42200D02* X11200Y43800D01* X12800D01* X12000Y42200D01* X9000D02* X8200Y43800D01* X9800D01* X9000Y42200D01* X15000D02* X14200Y43800D01* X15800D01* X15000Y42200D01* Y39200D02* X14200Y40800D01* X15800D01* X15000Y39200D01* X12000D02* X11200Y40800D01* X12800D01* X12000Y39200D01* X9000D02* X8200Y40800D01* X9800D01* X9000Y39200D01* X12000Y45200D02* X11200Y46800D01* X12800D01* X12000Y45200D01* X9000D02* X8200Y46800D01* X9800D01* X9000Y45200D01* X15000D02* X14200Y46800D01* X15800D01* X15000Y45200D01* X-9000D02* X-9800Y46800D01* X-8200D01* X-9000Y45200D01* X-15000D02* X-15800Y46800D01* X-14200D01* X-15000Y45200D01* X-12000D02* X-12800Y46800D01* X-11200D01* X-12000Y45200D01* X-15000Y39200D02* X-15800Y40800D01* X-14200D01* X-15000Y39200D01* X-12000D02* X-12800Y40800D01* X-11200D01* X-12000Y39200D01* X-9000D02* X-9800Y40800D01* X-8200D01* X-9000Y39200D01* Y42200D02* X-9800Y43800D01* X-8200D01* X-9000Y42200D01* X-15000D02* X-15800Y43800D01* X-14200D01* X-15000Y42200D01* X-12000D02* X-12800Y43800D01* X-11200D01* X-12000Y42200D01* X1500Y51300D02* X700Y52900D01* X2300D01* X1500Y51300D01* Y54300D02* X700Y55900D01* X2300D01* X1500Y54300D01* X-22500Y51300D02* X-23300Y52900D01* X-21700D01* X-22500Y51300D01* X-19500D02* X-20300Y52900D01* X-18700D01* X-19500Y51300D01* X-22500Y54300D02* X-23300Y55900D01* X-21700D01* X-22500Y54300D01* X-19500D02* X-20300Y55900D01* X-18700D01* X-19500Y54300D01* X43000Y-67800D02* X42200Y-66200D01* X43800D01* X43000Y-67800D01* X40000D02* X39200Y-66200D01* X40800D01* X40000Y-67800D01* X46000D02* X45200Y-66200D01* X46800D01* X46000Y-67800D01* X43000Y-70800D02* X42200Y-69200D01* X43800D01* X43000Y-70800D01* X40000D02* X39200Y-69200D01* X40800D01* X40000Y-70800D01* X46000D02* X45200Y-69200D01* X46800D01* X46000Y-70800D01* X43000Y-73800D02* X42200Y-72200D01* X43800D01* X43000Y-73800D01* X40000D02* X39200Y-72200D01* X40800D01* X40000Y-73800D01* X46000D02* X45200Y-72200D01* X46800D01* X46000Y-73800D01* X34000Y-79300D02* X33200Y-77700D01* X34800D01* X34000Y-79300D01* X31000D02* X30200Y-77700D01* X31800D01* X31000Y-79300D01* X37000D02* X36200Y-77700D01* X37800D01* X37000Y-79300D01* X25000D02* X24200Y-77700D01* X25800D01* X25000Y-79300D01* X22000D02* X21200Y-77700D01* X22800D01* X22000Y-79300D01* X28000D02* X27200Y-77700D01* X28800D01* X28000Y-79300D01* X19000Y-76300D02* X18200Y-74700D01* X19800D01* X19000Y-76300D01* Y-79300D02* X18200Y-77700D01* X19800D01* X19000Y-79300D01* X-14000Y-72800D02* X-14800Y-71200D01* X-13200D01* X-14000Y-72800D01* X-20000D02* X-20800Y-71200D01* X-19200D01* X-20000Y-72800D01* X-17000D02* X-17800Y-71200D01* X-16200D01* X-17000Y-72800D01* X-14000Y-69800D02* X-14800Y-68200D01* X-13200D01* X-14000Y-69800D01* X-20000D02* X-20800Y-68200D01* X-19200D01* X-20000Y-69800D01* X-17000D02* X-17800Y-68200D01* X-16200D01* X-17000Y-69800D01* X-14000Y-66800D02* X-14800Y-65200D01* X-13200D01* X-14000Y-66800D01* X-20000D02* X-20800Y-65200D01* X-19200D01* X-20000Y-66800D01* X-17000D02* X-17800Y-65200D01* X-16200D01* X-17000Y-66800D01* D87* X9300Y-24100D02* G03* X9300Y-24100I-800J0D01* G01* X6300D02* G03* X6300Y-24100I-800J0D01* G01* X-43500Y26900D02* G03* X-43500Y26900I-800J0D01* G01* X-43300Y31200D02* G03* X-43300Y31200I-800J0D01* G01* X-52900Y30300D02* G03* X-52900Y30300I-800J0D01* G01* X-53000Y23500D02* G03* X-53000Y23500I-800J0D01* G01* X-56200D02* G03* X-56200Y23500I-800J0D01* G01* X-55500Y12500D02* G03* X-55500Y12500I-800J0D01* G01* X-58200Y17500D02* G03* X-58200Y17500I-800J0D01* G01* X-55800Y26900D02* G03* X-55800Y26900I-800J0D01* G01* X-59100Y40300D02* G03* X-59100Y40300I-800J0D01* G01* X-59200Y36400D02* G03* X-59200Y36400I-800J0D01* G01* X-59100Y32500D02* G03* X-59100Y32500I-800J0D01* G01* X-41900Y-10600D02* G03* X-41900Y-10600I-800J0D01* G01* X73800Y-4700D02* G03* X73800Y-4700I-800J0D01* G01* Y3500D02* G03* X73800Y3500I-800J0D01* G01* X50800Y-7200D02* G03* X50800Y-7200I-800J0D01* G01* Y-4000D02* G03* X50800Y-4000I-800J0D01* G01* X28900Y54000D02* G03* X28900Y54000I-800J0D01* G01* X-1200Y-65500D02* G03* X-1200Y-65500I-800J0D01* G01* X3300Y-47500D02* G03* X3300Y-47500I-800J0D01* G01* X2768Y-62500D02* G03* X2768Y-62500I-800J0D01* G01* X-27200Y-63000D02* G03* X-27200Y-63000I-800J0D01* G01* X-72700Y-55000D02* G03* X-72700Y-55000I-800J0D01* G01* Y-52000D02* G03* X-72700Y-52000I-800J0D01* G01* X-70566Y-45734D02* G03* X-70566Y-45734I-800J0D01* G01* X-70000Y-3100D02* G03* X-70000Y-3100I-800J0D01* G01* X-65800Y-2500D02* G03* X-65800Y-2500I-800J0D01* G01* X800Y43500D02* G03* X800Y43500I-800J0D01* G01* X16600Y300D02* G03* X16600Y300I-800J0D01* G01* X800Y37000D02* G03* X800Y37000I-800J0D01* G01* X-50200Y-22000D02* G03* X-50200Y-22000I-800J0D01* G01* X-66700Y100D02* G03* X-66700Y100I-800J0D01* G01* X-61300Y-42600D02* G03* X-61300Y-42600I-800J0D01* G01* X-77600Y-53500D02* G03* X-77600Y-53500I-800J0D01* G01* X-76200Y13000D02* G03* X-76200Y13000I-800J0D01* G01* Y24000D02* G03* X-76200Y24000I-800J0D01* G01* Y30000D02* G03* X-76200Y30000I-800J0D01* G01* Y36000D02* G03* X-76200Y36000I-800J0D01* G01* Y-21000D02* G03* X-76200Y-21000I-800J0D01* G01* Y-37500D02* G03* X-76200Y-37500I-800J0D01* G01* Y-34000D02* G03* X-76200Y-34000I-800J0D01* G01* Y-30500D02* G03* X-76200Y-30500I-800J0D01* G01* X-56700Y5000D02* G03* X-56700Y5000I-800J0D01* G01* X-59700Y3000D02* G03* X-59700Y3000I-800J0D01* G01* X-40200Y2500D02* G03* X-40200Y2500I-800J0D01* G01* X-44200Y5000D02* G03* X-44200Y5000I-800J0D01* G01* X-40200D02* G03* X-40200Y5000I-800J0D01* G01* X-32700Y5500D02* G03* X-32700Y5500I-800J0D01* G01* Y2000D02* G03* X-32700Y2000I-800J0D01* G01* X-33700Y-59000D02* G03* X-33700Y-59000I-800J0D01* G01* X-36700D02* G03* X-36700Y-59000I-800J0D01* G01* X27800Y-49500D02* G03* X27800Y-49500I-800J0D01* G01* X33300Y-37500D02* G03* X33300Y-37500I-800J0D01* G01* Y-34500D02* G03* X33300Y-34500I-800J0D01* G01* Y-31500D02* G03* X33300Y-31500I-800J0D01* G01* Y-28500D02* G03* X33300Y-28500I-800J0D01* G01* Y-25500D02* G03* X33300Y-25500I-800J0D01* G01* Y-22500D02* G03* X33300Y-22500I-800J0D01* G01* Y-19500D02* G03* X33300Y-19500I-800J0D01* G01* Y-16500D02* G03* X33300Y-16500I-800J0D01* G01* X16300Y-13000D02* G03* X16300Y-13000I-800J0D01* G01* X18800D02* G03* X18800Y-13000I-800J0D01* G01* X21300D02* G03* X21300Y-13000I-800J0D01* G01* X23800D02* G03* X23800Y-13000I-800J0D01* G01* X26300D02* G03* X26300Y-13000I-800J0D01* G01* Y-15500D02* G03* X26300Y-15500I-800J0D01* G01* X23800D02* G03* X23800Y-15500I-800J0D01* G01* X-12700Y5500D02* G03* X-12700Y5500I-800J0D01* G01* Y9500D02* G03* X-12700Y9500I-800J0D01* G01* X-10200D02* G03* X-10200Y9500I-800J0D01* G01* Y5500D02* G03* X-10200Y5500I-800J0D01* G01* X-55700Y-42500D02* G03* X-55700Y-42500I-800J0D01* G01* X-57700Y-41000D02* G03* X-57700Y-41000I-800J0D01* G01* X-56200Y-37000D02* G03* X-56200Y-37000I-800J0D01* G01* X-2700Y-38000D02* G03* X-2700Y-38000I-800J0D01* G01* Y-35000D02* G03* X-2700Y-35000I-800J0D01* G01* X-4200Y-23000D02* G03* X-4200Y-23000I-800J0D01* G01* Y-20000D02* G03* X-4200Y-20000I-800J0D01* G01* X9300Y-21000D02* G03* X9300Y-21000I-800J0D01* G01* X6300D02* G03* X6300Y-21000I-800J0D01* G01* X17800Y-35000D02* G03* X17800Y-35000I-800J0D01* G01* Y-32500D02* G03* X17800Y-32500I-800J0D01* G01* X-1200Y-41500D02* G03* X-1200Y-41500I-800J0D01* G01* X-4200D02* G03* X-4200Y-41500I-800J0D01* G01* X-27700Y-43000D02* G03* X-27700Y-43000I-800J0D01* G01* X-26200Y-40500D02* G03* X-26200Y-40500I-800J0D01* G01* Y-38000D02* G03* X-26200Y-38000I-800J0D01* G01* X-22700D02* G03* X-22700Y-38000I-800J0D01* G01* X-65700Y-15500D02* G03* X-65700Y-15500I-800J0D01* G01* X-65200Y-22000D02* G03* X-65200Y-22000I-800J0D01* G01* X-54700Y-28000D02* G03* X-54700Y-28000I-800J0D01* G01* Y-25500D02* G03* X-54700Y-25500I-800J0D01* G01* Y-23000D02* G03* X-54700Y-23000I-800J0D01* G01* X-37200Y-17000D02* G03* X-37200Y-17000I-800J0D01* G01* X-39700D02* G03* X-39700Y-17000I-800J0D01* G01* X-34200Y-16500D02* G03* X-34200Y-16500I-800J0D01* G01* X-53500Y-41000D02* G03* X-53500Y-41000I-800J0D01* G01* X-51300Y-42400D02* G03* X-51300Y-42400I-800J0D01* G01* X11600Y7500D02* G03* X11600Y7500I-800J0D01* G01* X-10600Y-7500D02* G03* X-10600Y-7500I-800J0D01* G01* X-17500Y-4200D02* G03* X-17500Y-4200I-800J0D01* G01* X-31000Y-12300D02* G03* X-31000Y-12300I-800J0D01* G01* X-9800Y2500D02* G03* X-9800Y2500I-800J0D01* G01* X-50600Y-14500D02* G03* X-50600Y-14500I-800J0D01* G01* X32900Y53700D02* G03* X32900Y53700I-800J0D01* G01* X30100Y-4100D02* G03* X30100Y-4100I-800J0D01* G01* Y-7200D02* G03* X30100Y-7200I-800J0D01* G01* X-34500Y-8400D02* G03* X-34500Y-8400I-800J0D01* G01* X20600Y-22100D02* G03* X20600Y-22100I-800J0D01* G01* X23254Y-21500D02* G03* X23254Y-21500I-800J0D01* G01* X9300Y-51100D02* G03* X9300Y-51100I-800J0D01* G01* X-11700Y-45800D02* G03* X-11700Y-45800I-800J0D01* G01* X-10000Y-44100D02* G03* X-10000Y-44100I-800J0D01* G01* X-10700Y-31900D02* G03* X-10700Y-31900I-800J0D01* G01* X-50700Y-31600D02* G03* X-50700Y-31600I-800J0D01* G01* X-51100Y-11100D02* G03* X-51100Y-11100I-800J0D01* G01* X29300Y-21200D02* G03* X29300Y-21200I-800J0D01* G01* Y-18700D02* G03* X29300Y-18700I-800J0D01* G01* Y-16400D02* G03* X29300Y-16400I-800J0D01* G01* X1100Y-38700D02* G03* X1100Y-38700I-800J0D01* G01* Y-36200D02* G03* X1100Y-36200I-800J0D01* G01* X1040Y-33540D02* G03* X1040Y-33540I-800J0D01* G01* X18800Y-16300D02* G03* X18800Y-16300I-800J0D01* G01* X16600D02* G03* X16600Y-16300I-800J0D01* G01* X20700Y-17400D02* G03* X20700Y-17400I-800J0D01* G01* X-38900Y-41600D02* G03* X-38900Y-41600I-800J0D01* G01* X-36900Y-43700D02* G03* X-36900Y-43700I-800J0D01* G01* X24800Y-57500D02* G03* X24800Y-57500I-800J0D01* G01* X28100Y-52900D02* G03* X28100Y-52900I-800J0D01* G01* X-55500Y-13100D02* G03* X-55500Y-13100I-800J0D01* G01* X-21700Y-19300D02* G03* X-21700Y-19300I-800J0D01* G01* X-39747Y-33553D02* G03* X-39747Y-33553I-800J0D01* G01* X-35800Y-33400D02* G03* X-35800Y-33400I-800J0D01* G01* X-33821Y-41200D02* G03* X-33821Y-41200I-800J0D01* G01* X-37800Y-31800D02* G03* X-37800Y-31800I-800J0D01* G01* X-49600Y4800D02* G03* X-49600Y4800I-800J0D01* G01* X-53500D02* G03* X-53500Y4800I-800J0D01* G01* X-51558Y658D02* G03* X-51558Y658I-800J0D01* G01* X-55700Y700D02* G03* X-55700Y700I-800J0D01* G01* X15300Y31000D02* G03* X15300Y31000I-800J0D01* G01* X10300D02* G03* X10300Y31000I-800J0D01* G01* X-8700D02* G03* X-8700Y31000I-800J0D01* G01* X-13700D02* G03* X-13700Y31000I-800J0D01* G01* X-54984Y-19016D02* G03* X-54984Y-19016I-800J0D01* G01* X30300Y-52300D02* G03* X30300Y-52300I-800J0D01* G01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GG1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=128* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% D86* X-104390Y-52776D02* X-92185D01* X-98287Y-58878D02* Y-46673D01* X92185Y-52776D02* X104390D01* X98287Y-58878D02* Y-46673D01* X92185Y52776D02* X104390D01* X98287Y46673D02* Y58878D01* X-104390Y52776D02* X-92185D01* X-98287Y46673D02* Y58878D01* X8000Y-24100D02* X9000D01* X8500Y-24600D02* Y-23600D01* X5000Y-24100D02* X6000D01* X5500Y-24600D02* Y-23600D01* X-44800Y26900D02* X-43800D01* X-44300Y26400D02* Y27400D01* X-44600Y31200D02* X-43600D01* X-44100Y30700D02* Y31700D01* X-54200Y30300D02* X-53200D01* X-53700Y29800D02* Y30800D01* X-54300Y23500D02* X-53300D01* X-53800Y23000D02* Y24000D01* X-57500Y23500D02* X-56500D01* X-57000Y23000D02* Y24000D01* X-56800Y12500D02* X-55800D01* X-56300Y12000D02* Y13000D01* X-59500Y17500D02* X-58500D01* X-59000Y17000D02* Y18000D01* X-57100Y26900D02* X-56100D01* X-56600Y26400D02* Y27400D01* X-60400Y40300D02* X-59400D01* X-59900Y39800D02* Y40800D01* X-60500Y36400D02* X-59500D01* X-60000Y35900D02* Y36900D01* X-60400Y32500D02* X-59400D01* X-59900Y32000D02* Y33000D01* X-43200Y-10600D02* X-42200D01* X-42700Y-11100D02* Y-10100D01* X72500Y-4700D02* X73500D01* X73000Y-5200D02* Y-4200D01* X72500Y3500D02* X73500D01* X73000Y3000D02* Y4000D01* X49500Y-7200D02* X50500D01* X50000Y-7700D02* Y-6700D01* X49500Y-4000D02* X50500D01* X50000Y-4500D02* Y-3500D01* X27600Y54000D02* X28600D01* X28100Y53500D02* Y54500D01* X3713Y52100D02* X5287D01* X4500Y51313D02* Y52887D01* X3713Y55100D02* X5287D01* X4500Y54313D02* Y55887D01* X-2500Y-65500D02* X-1500D01* X-2000Y-66000D02* Y-65000D01* X2000Y-47500D02* X3000D01* X2500Y-48000D02* Y-47000D01* X1469Y-62500D02* X2468D01* X1969Y-63000D02* Y-62000D01* X-28500Y-63000D02* X-27500D01* X-28000Y-63500D02* Y-62500D01* X-74000Y-55000D02* X-73000D01* X-73500Y-55500D02* Y-54500D01* X-74000Y-52000D02* X-73000D01* X-73500Y-52500D02* Y-51500D01* X-71866Y-45734D02* X-70866D01* X-71366Y-46234D02* Y-45234D01* X-71300Y-3100D02* X-70300D01* X-70800Y-3600D02* Y-2600D01* X-67100Y-2500D02* X-66100D01* X-66600Y-3000D02* Y-2000D01* X-500Y43500D02* X500D01* X0Y43000D02* Y44000D01* X15300Y300D02* X16300D01* X15800Y-200D02* Y800D01* X-500Y37000D02* X500D01* X0Y36500D02* Y37500D01* X-51500Y-22000D02* X-50500D01* X-51000Y-22500D02* Y-21500D01* X-68000Y100D02* X-67000D01* X-67500Y-400D02* Y600D01* X-62600Y-42600D02* X-61600D01* X-62100Y-43100D02* Y-42100D01* X-78900Y-53500D02* X-77900D01* X-78400Y-54000D02* Y-53000D01* X31213Y16000D02* X32787D01* X32000Y15213D02* Y16787D01* X28213Y16000D02* X29787D01* X29000Y15213D02* Y16787D01* X25213Y16000D02* X26787D01* X26000Y15213D02* Y16787D01* X22213Y16000D02* X23787D01* X23000Y15213D02* Y16787D01* X19213Y16000D02* X20787D01* X20000Y15213D02* Y16787D01* X16213Y16000D02* X17787D01* X17000Y15213D02* Y16787D01* X13213Y16000D02* X14787D01* X14000Y15213D02* Y16787D01* X10213Y16000D02* X11787D01* X11000Y15213D02* Y16787D01* X7213Y16000D02* X8787D01* X8000Y15213D02* Y16787D01* X4213Y16000D02* X5787D01* X5000Y15213D02* Y16787D01* X1213Y16000D02* X2787D01* X2000Y15213D02* Y16787D01* X-1787Y16000D02* X-213D01* X-1000Y15213D02* Y16787D01* X-4787Y16000D02* X-3213D01* X-4000Y15213D02* Y16787D01* X-7787Y16000D02* X-6213D01* X-7000Y15213D02* Y16787D01* X-10787Y16000D02* X-9213D01* X-10000Y15213D02* Y16787D01* X-13787Y16000D02* X-12213D01* X-13000Y15213D02* Y16787D01* X-16787Y16000D02* X-15213D01* X-16000Y15213D02* Y16787D01* X-19787Y16000D02* X-18213D01* X-19000Y15213D02* Y16787D01* X72213Y-15000D02* X73787D01* X73000Y-15787D02* Y-14213D01* X75213Y-15000D02* X76787D01* X76000Y-15787D02* Y-14213D01* X69213Y-15000D02* X70787D01* X70000Y-15787D02* Y-14213D01* X69213Y-12000D02* X70787D01* X70000Y-12787D02* Y-11213D01* X72213Y-12000D02* X73787D01* X73000Y-12787D02* Y-11213D01* X75213Y-12000D02* X76787D01* X76000Y-12787D02* Y-11213D01* X72213Y-18000D02* X73787D01* X73000Y-18787D02* Y-17213D01* X75213Y-18000D02* X76787D01* X76000Y-18787D02* Y-17213D01* X69213Y-18000D02* X70787D01* X70000Y-18787D02* Y-17213D01* X72213Y15000D02* X73787D01* X73000Y14213D02* Y15787D01* X72213Y12000D02* X73787D01* X73000Y11213D02* Y12787D01* X72213Y18000D02* X73787D01* X73000Y17213D02* Y18787D01* X75213Y18000D02* X76787D01* X76000Y17213D02* Y18787D01* X75213Y15000D02* X76787D01* X76000Y14213D02* Y15787D01* X75213Y12000D02* X76787D01* X76000Y11213D02* Y12787D01* X69213Y15000D02* X70787D01* X70000Y14213D02* Y15787D01* X69213Y12000D02* X70787D01* X70000Y11213D02* Y12787D01* X69213Y18000D02* X70787D01* X70000Y17213D02* Y18787D01* X-31287Y63000D02* X-29713D01* X-30500Y62213D02* Y63787D01* X-31287Y60000D02* X-29713D01* X-30500Y59213D02* Y60787D01* X-31287Y66000D02* X-29713D01* X-30500Y65213D02* Y66787D01* X-28287Y66000D02* X-26713D01* X-27500Y65213D02* Y66787D01* X-28287Y63000D02* X-26713D01* X-27500Y62213D02* Y63787D01* X-28287Y60000D02* X-26713D01* X-27500Y59213D02* Y60787D01* X-34287Y63000D02* X-32713D01* X-33500Y62213D02* Y63787D01* X-34287Y60000D02* X-32713D01* X-33500Y59213D02* Y60787D01* X-34287Y66000D02* X-32713D01* X-33500Y65213D02* Y66787D01* X-40287Y63000D02* X-38713D01* X-39500Y62213D02* Y63787D01* X-40287Y60000D02* X-38713D01* X-39500Y59213D02* Y60787D01* X-40287Y66000D02* X-38713D01* X-39500Y65213D02* Y66787D01* X-37287Y66000D02* X-35713D01* X-36500Y65213D02* Y66787D01* X-37287Y63000D02* X-35713D01* X-36500Y62213D02* Y63787D01* X-37287Y60000D02* X-35713D01* X-36500Y59213D02* Y60787D01* X-43287Y63000D02* X-41713D01* X-42500Y62213D02* Y63787D01* X-43287Y60000D02* X-41713D01* X-42500Y59213D02* Y60787D01* X-43287Y66000D02* X-41713D01* X-42500Y65213D02* Y66787D01* X-77500Y13000D02* X-76500D01* X-77000Y12500D02* Y13500D01* X-77500Y24000D02* X-76500D01* X-77000Y23500D02* Y24500D01* X-77500Y30000D02* X-76500D01* X-77000Y29500D02* Y30500D01* X-77500Y36000D02* X-76500D01* X-77000Y35500D02* Y36500D01* X-77500Y-21000D02* X-76500D01* X-77000Y-21500D02* Y-20500D01* X-77500Y-37500D02* X-76500D01* X-77000Y-38000D02* Y-37000D01* X-77500Y-34000D02* X-76500D01* X-77000Y-34500D02* Y-33500D01* X-77500Y-30500D02* X-76500D01* X-77000Y-31000D02* Y-30000D01* X-58000Y5000D02* X-57000D01* X-57500Y4500D02* Y5500D01* X-61000Y3000D02* X-60000D01* X-60500Y2500D02* Y3500D01* X-41500Y2500D02* X-40500D01* X-41000Y2000D02* Y3000D01* X-45500Y5000D02* X-44500D01* X-45000Y4500D02* Y5500D01* X-41500Y5000D02* X-40500D01* X-41000Y4500D02* Y5500D01* X-34000D02* X-33000D01* X-33500Y5000D02* Y6000D01* X-34000Y2000D02* X-33000D01* X-33500Y1500D02* Y2500D01* X-35000Y-59000D02* X-34000D01* X-34500Y-59500D02* Y-58500D01* X-38000Y-59000D02* X-37000D01* X-37500Y-59500D02* Y-58500D01* X26500Y-49500D02* X27500D01* X27000Y-50000D02* Y-49000D01* X32000Y-37500D02* X33000D01* X32500Y-38000D02* Y-37000D01* X32000Y-34500D02* X33000D01* X32500Y-35000D02* Y-34000D01* X32000Y-31500D02* X33000D01* X32500Y-32000D02* Y-31000D01* X32000Y-28500D02* X33000D01* X32500Y-29000D02* Y-28000D01* X32000Y-25500D02* X33000D01* X32500Y-26000D02* Y-25000D01* X32000Y-22500D02* X33000D01* X32500Y-23000D02* Y-22000D01* X32000Y-19500D02* X33000D01* X32500Y-20000D02* Y-19000D01* X32000Y-16500D02* X33000D01* X32500Y-17000D02* Y-16000D01* X15000Y-13000D02* X16000D01* X15500Y-13500D02* Y-12500D01* X17500Y-13000D02* X18500D01* X18000Y-13500D02* Y-12500D01* X20000Y-13000D02* X21000D01* X20500Y-13500D02* Y-12500D01* X22500Y-13000D02* X23500D01* X23000Y-13500D02* Y-12500D01* X25000Y-13000D02* X26000D01* X25500Y-13500D02* Y-12500D01* X25000Y-15500D02* X26000D01* X25500Y-16000D02* Y-15000D01* X22500Y-15500D02* X23500D01* X23000Y-16000D02* Y-15000D01* X-14000Y5500D02* X-13000D01* X-13500Y5000D02* Y6000D01* X-14000Y9500D02* X-13000D01* X-13500Y9000D02* Y10000D01* X-11500Y9500D02* X-10500D01* X-11000Y9000D02* Y10000D01* X-11500Y5500D02* X-10500D01* X-11000Y5000D02* Y6000D01* X-57000Y-42500D02* X-56000D01* X-56500Y-43000D02* Y-42000D01* X-59000Y-41000D02* X-58000D01* X-58500Y-41500D02* Y-40500D01* X-57500Y-37000D02* X-56500D01* X-57000Y-37500D02* Y-36500D01* X-4000Y-38000D02* X-3000D01* X-3500Y-38500D02* Y-37500D01* X-4000Y-35000D02* X-3000D01* X-3500Y-35500D02* Y-34500D01* X-5500Y-23000D02* X-4500D01* X-5000Y-23500D02* Y-22500D01* X-5500Y-20000D02* X-4500D01* X-5000Y-20500D02* Y-19500D01* X8000Y-21000D02* X9000D01* X8500Y-21500D02* Y-20500D01* X5000Y-21000D02* X6000D01* X5500Y-21500D02* Y-20500D01* X16500Y-35000D02* X17500D01* X17000Y-35500D02* Y-34500D01* X16500Y-32500D02* X17500D01* X17000Y-33000D02* Y-32000D01* X-2500Y-41500D02* X-1500D01* X-2000Y-42000D02* Y-41000D01* X-5500Y-41500D02* X-4500D01* X-5000Y-42000D02* Y-41000D01* X-29000Y-43000D02* X-28000D01* X-28500Y-43500D02* Y-42500D01* X-27500Y-40500D02* X-26500D01* X-27000Y-41000D02* Y-40000D01* X-27500Y-38000D02* X-26500D01* X-27000Y-38500D02* Y-37500D01* X-24000Y-38000D02* X-23000D01* X-23500Y-38500D02* Y-37500D01* X-67000Y-15500D02* X-66000D01* X-66500Y-16000D02* Y-15000D01* Y-22000D02* X-65500D01* X-66000Y-22500D02* Y-21500D01* X-56000Y-28000D02* X-55000D01* X-55500Y-28500D02* Y-27500D01* X-56000Y-25500D02* X-55000D01* X-55500Y-26000D02* Y-25000D01* X-56000Y-23000D02* X-55000D01* X-55500Y-23500D02* Y-22500D01* X-38500Y-17000D02* X-37500D01* X-38000Y-17500D02* Y-16500D01* X-41000Y-17000D02* X-40000D01* X-40500Y-17500D02* Y-16500D01* X-35500D02* X-34500D01* X-35000Y-17000D02* Y-16000D01* X-40380Y-21500D02* X-38805D01* X-39592Y-22287D02* Y-20713D01* X-37334Y-21500D02* X-35759D01* X-36546Y-22287D02* Y-20713D01* X-34287Y-21500D02* X-32713D01* X-33500Y-22287D02* Y-20713D01* X-34287Y-24500D02* X-32713D01* X-33500Y-25287D02* Y-23713D01* X-37334Y-24500D02* X-35759D01* X-36546Y-25287D02* Y-23713D01* X-40380Y-24566D02* X-38805D01* X-39592Y-25354D02* Y-23779D01* X-40380Y-27500D02* X-38805D01* X-39592Y-28287D02* Y-26713D01* X-37334Y-27500D02* X-35759D01* X-36546Y-28287D02* Y-26713D01* X-34287Y-27500D02* X-32713D01* X-33500Y-28287D02* Y-26713D01* X-54800Y-41000D02* X-53800D01* X-54300Y-41500D02* Y-40500D01* X-52600Y-42400D02* X-51600D01* X-52100Y-42900D02* Y-41900D01* X-20287Y41000D02* X-18713D01* X-19500Y40213D02* Y41787D01* X-20287Y38000D02* X-18713D01* X-19500Y37213D02* Y38787D01* X-20287Y44000D02* X-18713D01* X-19500Y43213D02* Y44787D01* X10300Y7500D02* X11300D01* X10800Y7000D02* Y8000D01* X-11900Y-7500D02* X-10900D01* X-11400Y-8000D02* Y-7000D01* X-18800Y-4200D02* X-17800D01* X-18300Y-4700D02* Y-3700D01* X-32300Y-12300D02* X-31300D01* X-31800Y-12800D02* Y-11800D01* X-11100Y2500D02* X-10100D01* X-10600Y2000D02* Y3000D01* X-51900Y-14500D02* X-50900D01* X-51400Y-15000D02* Y-14000D01* X32313Y44400D02* X33887D01* X33100Y43613D02* Y45187D01* X32313Y41400D02* X33887D01* X33100Y40613D02* Y42187D01* X32313Y38400D02* X33887D01* X33100Y37613D02* Y39187D01* X32313Y35400D02* X33887D01* X33100Y34613D02* Y36187D01* X32313Y32400D02* X33887D01* X33100Y31613D02* Y33187D01* X32313Y29400D02* X33887D01* X33100Y28613D02* Y30187D01* X-34987Y52000D02* X-33413D01* X-34200Y51213D02* Y52787D01* X-34987Y49000D02* X-33413D01* X-34200Y48213D02* Y49787D01* X-34987Y46000D02* X-33413D01* X-34200Y45213D02* Y46787D01* X-34987Y43000D02* X-33413D01* X-34200Y42213D02* Y43787D01* X-34987Y40000D02* X-33413D01* X-34200Y39213D02* Y40787D01* X-34987Y37000D02* X-33413D01* X-34200Y36213D02* Y37787D01* X18513Y44700D02* X20087D01* X19300Y43913D02* Y45487D01* X18513Y41700D02* X20087D01* X19300Y40913D02* Y42487D01* X18513Y38700D02* X20087D01* X19300Y37913D02* Y39487D01* X3513Y45100D02* X5087D01* X4300Y44313D02* Y45887D01* X3513Y42100D02* X5087D01* X4300Y41313D02* Y42887D01* X3513Y39100D02* X5087D01* X4300Y38313D02* Y39887D01* X-4987Y45100D02* X-3413D01* X-4200Y44313D02* Y45887D01* X-4987Y42100D02* X-3413D01* X-4200Y41313D02* Y42887D01* X-4987Y39100D02* X-3413D01* X-4200Y38313D02* Y39887D01* X11213Y43000D02* X12787D01* X12000Y42213D02* Y43787D01* X8213Y43000D02* X9787D01* X9000Y42213D02* Y43787D01* X14213Y43000D02* X15787D01* X15000Y42213D02* Y43787D01* X14213Y40000D02* X15787D01* X15000Y39213D02* Y40787D01* X11213Y40000D02* X12787D01* X12000Y39213D02* Y40787D01* X8213Y40000D02* X9787D01* X9000Y39213D02* Y40787D01* X11213Y46000D02* X12787D01* X12000Y45213D02* Y46787D01* X8213Y46000D02* X9787D01* X9000Y45213D02* Y46787D01* X14213Y46000D02* X15787D01* X15000Y45213D02* Y46787D01* X-9787Y46000D02* X-8213D01* X-9000Y45213D02* Y46787D01* X-15787Y46000D02* X-14213D01* X-15000Y45213D02* Y46787D01* X-12787Y46000D02* X-11213D01* X-12000Y45213D02* Y46787D01* X-15787Y40000D02* X-14213D01* X-15000Y39213D02* Y40787D01* X-12787Y40000D02* X-11213D01* X-12000Y39213D02* Y40787D01* X-9787Y40000D02* X-8213D01* X-9000Y39213D02* Y40787D01* X-9787Y43000D02* X-8213D01* X-9000Y42213D02* Y43787D01* X-15787Y43000D02* X-14213D01* X-15000Y42213D02* Y43787D01* X-12787Y43000D02* X-11213D01* X-12000Y42213D02* Y43787D01* X713Y52100D02* X2287D01* X1500Y51313D02* Y52887D01* X713Y55100D02* X2287D01* X1500Y54313D02* Y55887D01* X-23287Y52100D02* X-21713D01* X-22500Y51313D02* Y52887D01* X-20287Y52100D02* X-18713D01* X-19500Y51313D02* Y52887D01* X-23287Y55100D02* X-21713D01* X-22500Y54313D02* Y55887D01* X-20287Y55100D02* X-18713D01* X-19500Y54313D02* Y55887D01* X31600Y53700D02* X32600D01* X32100Y53200D02* Y54200D01* X28800Y-4100D02* X29800D01* X29300Y-4600D02* Y-3600D01* X28800Y-7200D02* X29800D01* X29300Y-7700D02* Y-6700D01* X-35800Y-8400D02* X-34800D01* X-35300Y-8900D02* Y-7900D01* X19300Y-22100D02* X20300D01* X19800Y-22600D02* Y-21600D01* X21953Y-21500D02* X22953D01* X22454Y-22000D02* Y-21000D01* X8000Y-51100D02* X9000D01* X8500Y-51600D02* Y-50600D01* X-13000Y-45800D02* X-12000D01* X-12500Y-46300D02* Y-45300D01* X-11300Y-44100D02* X-10300D01* X-10800Y-44600D02* Y-43600D01* X-12000Y-31900D02* X-11000D01* X-11500Y-32400D02* Y-31400D01* X-52000Y-31600D02* X-51000D01* X-51500Y-32100D02* Y-31100D01* X-52400Y-11100D02* X-51400D01* X-51900Y-11600D02* Y-10600D01* X28000Y-21200D02* X29000D01* X28500Y-21700D02* Y-20700D01* X28000Y-18700D02* X29000D01* X28500Y-19200D02* Y-18200D01* X28000Y-16400D02* X29000D01* X28500Y-16900D02* Y-15900D01* X-200Y-38700D02* X800D01* X300Y-39200D02* Y-38200D01* X-200Y-36200D02* X800D01* X300Y-36700D02* Y-35700D01* X-260Y-33540D02* X740D01* X240Y-34040D02* Y-33040D01* X17500Y-16300D02* X18500D01* X18000Y-16800D02* Y-15800D01* X15300Y-16300D02* X16300D01* X15800Y-16800D02* Y-15800D01* X19400Y-17400D02* X20400D01* X19900Y-17900D02* Y-16900D01* X42213Y-67000D02* X43787D01* X43000Y-67787D02* Y-66213D01* X39213Y-67000D02* X40787D01* X40000Y-67787D02* Y-66213D01* X45213Y-67000D02* X46787D01* X46000Y-67787D02* Y-66213D01* X42213Y-70000D02* X43787D01* X43000Y-70787D02* Y-69213D01* X39213Y-70000D02* X40787D01* X40000Y-70787D02* Y-69213D01* X45213Y-70000D02* X46787D01* X46000Y-70787D02* Y-69213D01* X42213Y-73000D02* X43787D01* X43000Y-73787D02* Y-72213D01* X39213Y-73000D02* X40787D01* X40000Y-73787D02* Y-72213D01* X45213Y-73000D02* X46787D01* X46000Y-73787D02* Y-72213D01* X33213Y-78500D02* X34787D01* X34000Y-79287D02* Y-77713D01* X30213Y-78500D02* X31787D01* X31000Y-79287D02* Y-77713D01* X36213Y-78500D02* X37787D01* X37000Y-79287D02* Y-77713D01* X24213Y-78500D02* X25787D01* X25000Y-79287D02* Y-77713D01* X21213Y-78500D02* X22787D01* X22000Y-79287D02* Y-77713D01* X27213Y-78500D02* X28787D01* X28000Y-79287D02* Y-77713D01* X18213Y-75500D02* X19787D01* X19000Y-76287D02* Y-74713D01* X18213Y-78500D02* X19787D01* X19000Y-79287D02* Y-77713D01* X-14787Y-72000D02* X-13213D01* X-14000Y-72787D02* Y-71213D01* X-20787Y-72000D02* X-19213D01* X-20000Y-72787D02* Y-71213D01* X-17787Y-72000D02* X-16213D01* X-17000Y-72787D02* Y-71213D01* X-14787Y-69000D02* X-13213D01* X-14000Y-69787D02* Y-68213D01* X-20787Y-69000D02* X-19213D01* X-20000Y-69787D02* Y-68213D01* X-17787Y-69000D02* X-16213D01* X-17000Y-69787D02* Y-68213D01* X-14787Y-66000D02* X-13213D01* X-14000Y-66787D02* Y-65213D01* X-20787Y-66000D02* X-19213D01* X-20000Y-66787D02* Y-65213D01* X-17787Y-66000D02* X-16213D01* X-17000Y-66787D02* Y-65213D01* X-40200Y-41600D02* X-39200D01* X-39700Y-42100D02* Y-41100D01* X-38200Y-43700D02* X-37200D01* X-37700Y-44200D02* Y-43200D01* X23500Y-57500D02* X24500D01* X24000Y-58000D02* Y-57000D01* X26800Y-52900D02* X27800D01* X27300Y-53400D02* Y-52400D01* X-56800Y-13100D02* X-55800D01* X-56300Y-13600D02* Y-12600D01* X-23000Y-19300D02* X-22000D01* X-22500Y-19800D02* Y-18800D01* X-41047Y-33553D02* X-40047D01* X-40547Y-34053D02* Y-33053D01* X-37100Y-33400D02* X-36100D01* X-36600Y-33900D02* Y-32900D01* X-35120Y-41200D02* X-34121D01* X-34620Y-41700D02* Y-40700D01* X-39100Y-31800D02* X-38100D01* X-38600Y-32300D02* Y-31300D01* X-50900Y4800D02* X-49900D01* X-50400Y4300D02* Y5300D01* X-54800Y4800D02* X-53800D01* X-54300Y4300D02* Y5300D01* X-52858Y658D02* X-51858D01* X-52358Y158D02* Y1158D01* X-57000Y700D02* X-56000D01* X-56500Y200D02* Y1200D01* X14000Y31000D02* X15000D01* X14500Y30500D02* Y31500D01* X9000Y31000D02* X10000D01* X9500Y30500D02* Y31500D01* X-10000Y31000D02* X-9000D01* X-9500Y30500D02* Y31500D01* X-15000Y31000D02* X-14000D01* X-14500Y30500D02* Y31500D01* X-56284Y-19016D02* X-55284D01* X-55784Y-19516D02* Y-18516D01* X29000Y-52300D02* X30000D01* X29500Y-52800D02* Y-51800D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GKO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% D10* X69300Y101997D02* G03* X65748Y111024I-13700J-179D01* G01* X-69300Y-101997D02* G03* X-65748Y-111024I13700J179D01* G01* Y111024D02* G03* X-69300Y101997I10148J-9205D01* G01* X69300Y92863D02* G03* X92863Y69300I23563J0D01* G01* X65748Y-111024D02* G03* X69300Y-101997I-10148J9205D01* G01* X-92863Y69300D02* G03* X-69300Y92863I0J23563D01* G01* X92863Y-69300D02* G03* X69300Y-92863I0J-23563D01* G01* X-101997Y69300D02* G03* X-111024Y65748I179J-13700D01* G01* X101997Y-69300D02* G03* X111024Y-65748I-179J13700D01* G01* Y65748D02* G03* X101997Y69300I-9205J-10148D01* G01* X-111024Y-65748D02* G03* X-101997Y-69300I9205J10148D01* G01* X-69300Y-92863D02* G03* X-92863Y-69300I-23563J0D01* G01* X69300Y92863D02* Y101997D01* X111024Y-65748D02* Y65748D01* X-69300Y-101997D02* Y-92863D01* X-65748Y111024D02* X65748D01* X-65748Y-111024D02* X65748D01* X-69300Y92863D02* Y101997D01* X92863Y69300D02* X101997D01* X69300Y-101997D02* Y-92863D01* X-101997Y69300D02* X-92863D01* X-111024Y-65748D02* Y65748D01* X-101997Y-69300D02* X-92863D01* X92863D02* X101997D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM1 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% D10* X69300Y92863D02* G03* X92863Y69300I23563J0D01* G01* X69300Y101997D02* G03* X65748Y111024I-13700J-179D01* G01* X-65748D02* G03* X-69300Y101997I10148J-9205D01* G01* X-92863Y69300D02* G03* X-69300Y92863I0J23563D01* G01* X-101997Y69300D02* G03* X-111024Y65748I179J-13700D01* G01* Y-65748D02* G03* X-101997Y-69300I9205J10148D01* G01* X-69300Y-92863D02* G03* X-92863Y-69300I-23563J0D01* G01* X-69300Y-101997D02* G03* X-65748Y-111024I13700J179D01* G01* X65748D02* G03* X69300Y-101997I-10148J9205D01* G01* X92863Y-69300D02* G03* X69300Y-92863I0J-23563D01* G01* X101997Y-69300D02* G03* X111024Y-65748I-179J13700D01* G01* Y65748D02* G03* X101997Y69300I-9205J-10148D01* G01* X69300Y92863D02* Y101997D01* X-65748Y111024D02* X65748D01* X-69300Y92863D02* Y101997D01* X-101997Y69300D02* X-92863D01* X-111024Y-65748D02* Y65748D01* X-101997Y-69300D02* X-92863D01* X-69300Y-101997D02* Y-92863D01* X-65748Y-111024D02* X65748D01* X69300Y-101997D02* Y-92863D01* X92863Y-69300D02* X101997D01* X111024Y-65748D02* Y65748D01* X92863Y69300D02* X101997D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM10 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% D13* X-29740Y50398D02* X-22260D01* Y35602D02* Y50398D01* X-29740Y35602D02* X-22260D01* X-29740D02* Y50398D01* X22260Y35602D02* Y50398D01* Y35602D02* X29740D01* Y50398D01* X22260D02* X29740D01* X-39291Y-17850D02* X-10709D01* Y-34150D02* Y-17850D01* X-39291Y-34150D02* X-10709D01* X-39291D02* Y-17850D01* X19988Y-25437D02* Y-17563D01* Y-25437D02* X31012D01* Y-17563D01* X19988D02* X31012D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM12 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32896* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% D13* X-29051Y49102D02* X-22949D01* Y36898D02* Y49102D01* X-29051Y36898D02* X-22949D01* X-29051D02* Y49102D01* X22949Y36898D02* Y49102D01* Y36898D02* X29051D01* Y49102D01* X22949D02* X29051D01* X-34350Y-18244D02* X-15650D01* Y-33756D02* Y-18244D01* X-34350Y-33756D02* X-15650D01* X-34350D02* Y-18244D01* X21169Y-25043D02* Y-17957D01* Y-25043D02* X29831D01* Y-17957D01* X21169D02* X29831D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM13 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=16711935* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD85C,0.00394*% %ADD86C,0.00200*% D85* X-9862Y-56299D02* G03* X-9862Y-56299I-1969J0D01* G01* X-51768Y-30236D02* G03* X-51768Y-30236I-1969J0D01* G01* X6299Y6299D02* G03* X6299Y6299I-1969J0D01* G01* X-50402Y17657D02* X-38198D01* X-50402Y24743D02* X-38198D01* X-50402Y17657D02* Y24743D01* X-38198Y17657D02* Y24743D01* X-21843Y35126D02* X-2158D01* X-21843Y50874D02* X-2158D01* Y35126D02* Y50874D01* X-21843Y35126D02* Y50874D01* X-9602Y-34543D02* Y-27457D01* X2602Y-34543D02* Y-27457D01* X-9602D02* X2602D01* X-9602Y-34543D02* X2602D01* X10398Y-31543D02* Y-24457D01* X22602D01* X10398Y-31543D02* X22602D01* Y-24457D01* X-15374Y-59842D02* Y-40157D01* X374Y-59842D02* Y-40157D01* X-15374Y-59842D02* X374D01* X-15374Y-40157D02* X374D01* X2158Y35126D02* Y50874D01* X21843Y35126D02* Y50874D01* X2158D02* X21843D01* X2158Y35126D02* X21843D01* X-57279Y-33779D02* Y-6221D01* X-29721Y-33779D02* Y-6221D01* X-57279Y-33779D02* X-29721D01* X-57279Y-6221D02* X-29721D01* X7874Y-9843D02* Y9843D01* X-7874Y-9843D02* Y9843D01* X7874D01* X-7874Y-9843D02* X7874D01* D86* X-54000Y17100D02* Y18300D01* X-54600Y17700D02* X-53400D01* X-54984Y15732D02* Y19669D01* X-53016Y15732D02* Y19669D01* X-54984Y15732D02* X-53016D01* X-54984Y19669D02* X-53016D01* X-68100Y-2500D02* X-66900D01* X-67500Y-3100D02* Y-1900D01* X-69468Y-1516D02* X-65531D01* X-69468Y-3484D02* X-65531D01* Y-3484D02* Y-1516D01* X-69468Y-3484D02* Y-1516D01* X-0Y39400D02* Y40600D01* X-600Y40000D02* X600D01* X984Y38032D02* Y41969D01* X-984Y38032D02* Y41969D01* X-984Y38032D02* X984D01* X-984Y41969D02* X984D01* X-0Y46400D02* Y47600D01* X-600Y47000D02* X600D01* X984Y45031D02* Y48968D01* X-984Y45031D02* Y48968D01* X-984Y45031D02* X984D01* X-984Y48968D02* X984D01* X-13032Y-28984D02* Y-27016D01* X-16969Y-28984D02* Y-27016D01* Y-27016D02* X-13032D01* X-16969Y-28984D02* X-13032D01* X-15000Y-28600D02* Y-27400D01* X-15600Y-28000D02* X-14400D01* X-25500Y-37100D02* Y-35900D01* X-26100Y-36500D02* X-24900D01* X-26484Y-38469D02* Y-34532D01* X-24516Y-38469D02* Y-34532D01* X-26484D02* X-24516D01* X-26484Y-38469D02* X-24516D01* X-68100Y-13000D02* X-66900D01* X-67500Y-13600D02* Y-12400D01* X-69468Y-12016D02* X-65531D01* X-69468Y-13984D02* X-65531D01* Y-13984D02* Y-12016D01* X-69468Y-13984D02* Y-12016D01* X-62000Y-37100D02* Y-35900D01* X-62600Y-36500D02* X-61400D01* X-62984Y-38469D02* Y-34532D01* X-61016Y-38469D02* Y-34532D01* X-62984D02* X-61016D01* X-62984Y-38469D02* X-61016D01* X-12968Y26016D02* Y27984D01* X-9031Y26016D02* Y27984D01* X-12968Y26016D02* X-9031D01* X-12968Y27984D02* X-9031D01* X-11000Y26400D02* Y27600D01* X-11600Y27000D02* X-10400D01* X-26969Y26016D02* Y27984D01* X-23031Y26016D02* Y27984D01* X-26969Y26016D02* X-23031D01* X-26969Y27984D02* X-23031D01* X-25000Y26400D02* Y27600D01* X-25600Y27000D02* X-24400D01* X16032Y26016D02* Y27984D01* X19969Y26016D02* Y27984D01* X16032Y26016D02* X19969D01* X16032Y27984D02* X19969D01* X18000Y26400D02* Y27600D01* X17400Y27000D02* X18600D01* X2032Y26016D02* Y27984D01* X5968Y26016D02* Y27984D01* X2032Y26016D02* X5968D01* X2032Y27984D02* X5968D01* X4000Y26400D02* Y27600D01* X3400Y27000D02* X4600D01* X-4600Y27000D02* X-3400D01* X-4000Y26400D02* Y27600D01* X-5968Y26016D02* X-2032D01* X-5968Y27984D02* X-2032D01* X-5968Y26016D02* Y27984D01* X-2032Y26016D02* Y27984D01* X-18600Y27000D02* X-17400D01* X-18000Y26400D02* Y27600D01* X-19969Y26016D02* X-16032D01* X-19969Y27984D02* X-16032D01* X-19969Y26016D02* Y27984D01* X-16032Y26016D02* Y27984D01* X24400Y27000D02* X25600D01* X25000Y26400D02* Y27600D01* X23031Y26016D02* X26969D01* X23031Y27984D02* X26969D01* X23031Y26016D02* Y27984D01* X26969Y26016D02* Y27984D01* X10400Y27000D02* X11600D01* X11000Y26400D02* Y27600D01* X9031Y27984D02* X12968D01* X9031Y26016D02* X12968D01* Y26016D02* Y27984D01* X9031Y26016D02* Y27984D01* X67094Y-22874D02* X78905D01* X67094D02* Y-7126D01* X78905Y-22873D02* Y-7125D01* X67094D02* X78905D01* X67094Y22874D02* X78905D01* Y7126D02* Y22874D01* X67095Y7125D02* Y22873D01* Y7125D02* X78906D01* X-16969Y-25484D02* Y-23516D01* X-13032Y-25484D02* Y-23516D01* X-16969Y-25484D02* X-13032D01* X-16969Y-23516D02* X-13032D01* X-15000Y-25100D02* Y-23900D01* X-15600Y-24500D02* X-14400D01* X-65531Y-32484D02* Y-30516D01* X-69468Y-32484D02* Y-30516D01* Y-30516D02* X-65531D01* X-69468Y-32484D02* X-65531D01* X-67500Y-32100D02* Y-30900D01* X-68100Y-31500D02* X-66900D01* X5500Y-20600D02* Y-19400D01* X4900Y-20000D02* X6100D01* X4516Y-21969D02* Y-18032D01* X6484Y-21969D02* Y-18032D01* X4516D02* X6484D01* X4516Y-21969D02* X6484D01* X9000Y-20600D02* Y-19400D01* X8400Y-20000D02* X9600D01* X8016Y-21969D02* Y-18032D01* X9984Y-21969D02* Y-18032D01* X8016D02* X9984D01* X8016Y-21969D02* X9984D01* X-15600Y-21000D02* X-14400D01* X-15000Y-21600D02* Y-20400D01* X-16969Y-21984D02* X-13032D01* X-16969Y-20016D02* X-13032D01* X-16969Y-21984D02* Y-20016D01* X-13032Y-21984D02* Y-20016D01* X-65531Y-39484D02* Y-37516D01* X-69468Y-39484D02* Y-37516D01* Y-37516D02* X-65531D01* X-69468Y-39484D02* X-65531D01* X-67500Y-39100D02* Y-37900D01* X-68100Y-38500D02* X-66900D01* X21400Y-38000D02* X22600D01* X22000Y-38600D02* Y-37400D01* X20031Y-37016D02* X23968D01* X20031Y-38984D02* X23968D01* Y-38984D02* Y-37016D01* X20031Y-38984D02* Y-37016D01* Y-57484D02* Y-55516D01* X23968Y-57484D02* Y-55516D01* X20031Y-57484D02* X23968D01* X20031Y-55516D02* X23968D01* X22000Y-57100D02* Y-55900D01* X21400Y-56500D02* X22600D01* X-68100Y-35000D02* X-66900D01* X-67500Y-35600D02* Y-34400D01* X-69468Y-34016D02* X-65531D01* X-69468Y-35984D02* X-65531D01* Y-35984D02* Y-34016D01* X-69468Y-35984D02* Y-34016D01* X-600Y-17500D02* X600D01* X0Y-18100D02* Y-16900D01* X-1969Y-18484D02* X1969D01* X-1969Y-16516D02* X1969D01* X-1969Y-18484D02* Y-16516D01* X1969Y-18484D02* Y-16516D01* X-600Y-21000D02* X600D01* X0Y-21600D02* Y-20400D01* X-1969Y-21984D02* X1969D01* X-1969Y-20016D02* X1969D01* X-1969Y-21984D02* Y-20016D01* X1969Y-21984D02* Y-20016D01* X-8100Y-21000D02* X-6900D01* X-7500Y-21600D02* Y-20400D01* X-9469Y-21984D02* X-5531D01* X-9469Y-20016D02* X-5531D01* X-9469Y-21984D02* Y-20016D01* X-5531Y-21984D02* Y-20016D01* X5500Y-28600D02* Y-27400D01* X4900Y-28000D02* X6100D01* X6484Y-29969D02* Y-26032D01* X4516Y-29969D02* Y-26032D01* X4516Y-29969D02* X6484D01* X4516Y-26032D02* X6484D01* X9000Y-28600D02* Y-27400D01* X8400Y-28000D02* X9600D01* X9984Y-29969D02* Y-26032D01* X8016Y-29969D02* Y-26032D01* X8016Y-29969D02* X9984D01* X8016Y-26032D02* X9984D01* X24000Y-24600D02* Y-23400D01* X23400Y-24000D02* X24600D01* X24984Y-25969D02* Y-22031D01* X23016Y-25969D02* Y-22031D01* X23016Y-25969D02* X24984D01* X23016Y-22031D02* X24984D01* X24000Y-33100D02* Y-31900D01* X23400Y-32500D02* X24600D01* X24984Y-34468D02* Y-30531D01* X23016Y-34468D02* Y-30531D01* X23016Y-34468D02* X24984D01* X23016Y-30531D02* X24984D01* X21400Y-18500D02* X22600D01* X22000Y-19100D02* Y-17900D01* X20031Y-19484D02* X23968D01* X20031Y-17516D02* X23968D01* X20031Y-19484D02* Y-17516D01* X23968Y-19484D02* Y-17516D01* X16468Y-19484D02* Y-17516D01* X12531Y-19484D02* Y-17516D01* Y-17516D02* X16468D01* X12531Y-19484D02* X16468D01* X14500Y-19100D02* Y-17900D01* X13900Y-18500D02* X15100D01* X8016Y-37969D02* X9984D01* X8016Y-34032D02* X9984D01* X9984Y-37969D02* Y-34032D01* X8016Y-37969D02* Y-34032D01* X8400Y-36000D02* X9600D01* X9000Y-36600D02* Y-35400D01* X5500Y-36600D02* Y-35400D01* X4900Y-36000D02* X6100D01* X6484Y-37969D02* Y-34032D01* X4516Y-37969D02* Y-34032D01* X4516Y-37969D02* X6484D01* X4516Y-34032D02* X6484D01* X16468Y-38984D02* Y-37016D01* X12531Y-38984D02* Y-37016D01* Y-37016D02* X16468D01* X12531Y-38984D02* X16468D01* X14500Y-38600D02* Y-37400D01* X13900Y-38000D02* X15100D01* X-29961Y-60437D02* X-25039D01* X-29961Y-52563D02* X-25039D01* X-29961Y-60437D02* Y-52563D01* X-25039Y-60437D02* Y-52563D01* X-27500Y-57500D02* Y-55500D01* X-28500Y-56500D02* X-26500D01* X-18999Y-46001D02* X-16999D01* X-17999Y-47001D02* Y-45001D01* X-23314Y-55844D02* Y-36159D01* Y-55844D02* X-12684D01* X-23314Y-36159D02* X-12684D01* Y-55844D02* Y-36159D01* X-43500Y-21000D02* Y-19000D01* X-44500Y-20000D02* X-42500D01* X-36461Y-60437D02* X-31539D01* X-36461Y-52563D02* X-31539D01* X-36461Y-60437D02* Y-52563D01* X-31539Y-60437D02* Y-52563D01* X-34000Y-57500D02* Y-55500D01* X-35000Y-56500D02* X-33000D01* X-36461Y-38063D02* X-31539D01* X-36461Y-45937D02* X-31539D01* Y-38063D01* X-36461Y-45937D02* Y-38063D01* X-34000Y-43000D02* Y-41000D01* X-35000Y-42000D02* X-33000D01* X-29961Y-38063D02* X-25039D01* X-29961Y-45937D02* X-25039D01* Y-38063D01* X-29961Y-45937D02* Y-38063D01* X-27500Y-43000D02* Y-41000D01* X-28500Y-42000D02* X-26500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM14 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD86C,0.00200*% G36* X-15200Y-45342D02* X-16106D01* Y-43955D01* X-19594D01* X-18937Y-45166D01* X-19770Y-45499D01* X-20676Y-43769D01* Y-42909D01* X-16106D01* Y-41716D01* X-15200D01* Y-45342D01* D02* G37* G36* X-17762Y-46202D02* X-17605Y-46211D01* X-17429Y-46230D01* X-17235Y-46258D01* X-17031Y-46295D01* X-16837Y-46350D01* X-16828D01* X-16819Y-46360D01* X-16791Y-46369D01* X-16754Y-46378D01* X-16652Y-46415D01* X-16532Y-46470D01* X-16393Y-46535D01* X-16245Y-46619D01* X-16097Y-46720D01* X-15949Y-46841D01* X-15931Y-46859D01* X-15894Y-46896D01* X-15829Y-46970D01* X-15746Y-47072D01* X-15653Y-47192D01* X-15561Y-47340D01* X-15477Y-47506D01* X-15394Y-47692D01* Y-47701D01* X-15385Y-47710D01* X-15376Y-47747D01* X-15367Y-47784D01* X-15348Y-47830D01* X-15329Y-47886D01* X-15311Y-47960D01* X-15302Y-48034D01* X-15265Y-48219D01* X-15228Y-48422D01* X-15209Y-48663D01* X-15200Y-48922D01* Y-50300D01* X-20639D01* Y-48533D01* X-20630Y-48469D01* X-20620Y-48320D01* X-20602Y-48154D01* X-20574Y-47969D01* X-20537Y-47784D01* X-20482Y-47608D01* Y-47599D01* X-20472Y-47590D01* X-20454Y-47525D01* X-20417Y-47442D01* X-20361Y-47331D01* X-20297Y-47210D01* X-20213Y-47081D01* X-20112Y-46942D01* X-20001Y-46822D01* X-19982Y-46804D01* X-19945Y-46766D01* X-19871Y-46711D01* X-19779Y-46646D01* X-19658Y-46572D01* X-19520Y-46489D01* X-19353Y-46415D01* X-19177Y-46350D01* X-19168D01* X-19159Y-46341D01* X-19131Y-46332D01* X-19085Y-46323D01* X-19039Y-46313D01* X-18983Y-46304D01* X-18845Y-46267D01* X-18669Y-46239D01* X-18465Y-46221D01* X-18234Y-46202D01* X-17984Y-46193D01* X-17975D01* X-17956D01* X-17920D01* X-17883D01* X-17827D01* X-17762Y-46202D01* D02* G37* %LPC*% G36* X-17744Y-47294D02* X-17920D01* X-17929D01* X-17938D01* X-17993D01* X-18077D01* X-18179Y-47303D01* X-18299Y-47312D01* X-18428Y-47322D01* X-18697Y-47368D01* X-18715D01* X-18752Y-47377D01* X-18817Y-47396D01* X-18900Y-47423D01* X-18993Y-47460D01* X-19094Y-47497D01* X-19196Y-47553D01* X-19288Y-47608D01* X-19298Y-47618D01* X-19326Y-47636D01* X-19372Y-47673D01* X-19427Y-47728D01* X-19483Y-47793D01* X-19538Y-47867D01* X-19603Y-47960D01* X-19649Y-48061D01* X-19658Y-48071D01* X-19668Y-48108D01* X-19686Y-48173D01* X-19714Y-48256D01* X-19742Y-48348D01* X-19760Y-48469D01* X-19770Y-48607D01* X-19779Y-48755D01* Y-49273D01* X-16060D01* Y-48755D01* X-16070Y-48709D01* Y-48644D01* X-16088Y-48570D01* X-16116Y-48404D01* X-16171Y-48219D01* X-16245Y-48034D01* X-16356Y-47849D01* X-16430Y-47765D01* X-16504Y-47692D01* X-16513Y-47682D01* X-16523Y-47673D01* X-16551Y-47655D01* X-16588Y-47627D01* X-16643Y-47599D01* X-16699Y-47562D01* X-16772Y-47525D01* X-16856Y-47488D01* X-16948Y-47451D01* X-17050Y-47423D01* X-17161Y-47386D01* X-17290Y-47359D01* X-17429Y-47331D01* X-17586Y-47312D01* X-17744Y-47294D01* D02* G37* %LPD*% D86* X-52300Y14200D02* Y21200D01* X-55700Y14200D02* X-52300D01* X-55700Y21200D02* X-52300D01* X-55700Y14200D02* Y21200D01* X-71000Y-800D02* X-64000D01* X-71000Y-4200D02* Y-800D01* X-64000Y-4200D02* Y-800D01* X-71000Y-4200D02* X-64000D01* X-1700Y36500D02* Y43500D01* Y36500D02* X1700D01* X-1700Y43500D02* X1700D01* Y36500D02* Y43500D01* X-1700D02* Y50500D01* Y43500D02* X1700D01* X-1700Y50500D02* X1700D01* Y43500D02* Y50500D01* X-18500Y-29700D02* X-11500D01* Y-26300D01* X-18500Y-29700D02* Y-26300D01* X-11500D01* X-27200Y-40000D02* Y-33000D01* Y-40000D02* X-23800D01* X-27200Y-33000D02* X-23800D01* Y-40000D02* Y-33000D01* X-71000Y-11300D02* X-64000D01* X-71000Y-14700D02* Y-11300D01* X-64000Y-14700D02* Y-11300D01* X-71000Y-14700D02* X-64000D01* X-63700Y-40000D02* Y-33000D01* Y-40000D02* X-60300D01* X-63700Y-33000D02* X-60300D01* Y-40000D02* Y-33000D01* X-14500Y28700D02* X-7500D01* X-14500Y25300D02* Y28700D01* X-7500Y25300D02* Y28700D01* X-14500Y25300D02* X-7500D01* X-28500Y28700D02* X-21500D01* X-28500Y25300D02* Y28700D01* X-21500Y25300D02* Y28700D01* X-28500Y25300D02* X-21500D01* X14500Y28700D02* X21500D01* X14500Y25300D02* Y28700D01* X21500Y25300D02* Y28700D01* X14500Y25300D02* X21500D01* X500Y28700D02* X7500D01* X500Y25300D02* Y28700D01* X7500Y25300D02* Y28700D01* X500Y25300D02* X7500D01* X-7500D02* X-500D01* Y28700D01* X-7500Y25300D02* Y28700D01* X-500D01* X-21500Y25300D02* X-14500D01* Y28700D01* X-21500Y25300D02* Y28700D01* X-14500D01* X21500Y25300D02* X28500D01* Y28700D01* X21500Y25300D02* Y28700D01* X28500D01* X7500D02* X14500D01* X7500Y25300D02* Y28700D01* X14500Y25300D02* Y28700D01* X7500Y25300D02* X14500D01* X66500Y-25500D02* Y-4500D01* X79500D01* X66500Y-25500D02* X79500D01* Y-4500D01* Y4500D02* Y25500D01* X66500Y4500D02* X79500D01* X66500Y25500D02* X79500D01* X66500Y4500D02* Y25500D01* X-18500Y-22800D02* X-11500D01* X-18500Y-26200D02* Y-22800D01* X-11500Y-26200D02* Y-22800D01* X-18500Y-26200D02* X-11500D01* X-71000Y-33200D02* X-64000D01* Y-29800D01* X-71000Y-33200D02* Y-29800D01* X-64000D01* X3800Y-23500D02* Y-16500D01* Y-23500D02* X7200D01* X3800Y-16500D02* X7200D01* Y-23500D02* Y-16500D01* X7300Y-23500D02* Y-16500D01* Y-23500D02* X10700D01* X7300Y-16500D02* X10700D01* Y-23500D02* Y-16500D01* X-18500Y-22700D02* X-11500D01* Y-19300D01* X-18500Y-22700D02* Y-19300D01* X-11500D01* X-71000Y-40200D02* X-64000D01* Y-36800D01* X-71000Y-40200D02* Y-36800D01* X-64000D01* X18500Y-36300D02* X25500D01* X18500Y-39700D02* Y-36300D01* X25500Y-39700D02* Y-36300D01* X18500Y-39700D02* X25500D01* X18500Y-54800D02* X25500D01* X18500Y-58200D02* Y-54800D01* X25500Y-58200D02* Y-54800D01* X18500Y-58200D02* X25500D01* X-71000Y-33300D02* X-64000D01* X-71000Y-36700D02* Y-33300D01* X-64000Y-36700D02* Y-33300D01* X-71000Y-36700D02* X-64000D01* X-3500Y-19200D02* X3500D01* Y-15800D01* X-3500Y-19200D02* Y-15800D01* X3500D01* X-3500Y-22700D02* X3500D01* Y-19300D01* X-3500Y-22700D02* Y-19300D01* X3500D01* X-11000Y-22700D02* X-4000D01* Y-19300D01* X-11000Y-22700D02* Y-19300D01* X-4000D01* X7200Y-31500D02* Y-24500D01* X3800D02* X7200D01* X3800Y-31500D02* X7200D01* X3800D02* Y-24500D01* X10700Y-31500D02* Y-24500D01* X7300D02* X10700D01* X7300Y-31500D02* X10700D01* X7300D02* Y-24500D01* X25700Y-27500D02* Y-20500D01* X22300D02* X25700D01* X22300Y-27500D02* X25700D01* X22300D02* Y-20500D01* X25700Y-36000D02* Y-29000D01* X22300D02* X25700D01* X22300Y-36000D02* X25700D01* X22300D02* Y-29000D01* X18500Y-20200D02* X25500D01* Y-16800D01* X18500Y-20200D02* Y-16800D01* X25500D01* X11000Y-20200D02* X18000D01* Y-16800D01* X11000Y-20200D02* Y-16800D01* X18000D01* X7300Y-39500D02* Y-32500D01* Y-39500D02* X10700D01* X7300Y-32500D02* X10700D01* Y-39500D02* Y-32500D01* X7200Y-39500D02* Y-32500D01* X3800D02* X7200D01* X3800Y-39500D02* X7200D01* X3800D02* Y-32500D01* X11000Y-39700D02* X18000D01* Y-36300D01* X11000Y-39700D02* Y-36300D01* X18000D01* X-30500Y-62000D02* Y-51000D01* X-24500D01* X-30500Y-62000D02* X-24500D01* Y-51000D01* X-12000Y-57000D02* Y-35000D01* X-24000Y-57000D02* X-12000D01* X-24000Y-35000D02* X-12000D01* X-24000Y-57000D02* Y-35000D01* Y-39500D02* Y-500D01* X-63000D02* X-24000D01* X-63000Y-39500D02* X-63000Y-500D01* X-63000Y-39500D02* X-24000Y-39500D01* X-37000Y-62000D02* Y-51000D01* X-31000D01* X-37000Y-62000D02* X-31000D01* Y-51000D01* Y-47500D02* Y-36500D01* X-37000Y-47500D02* X-31000D01* X-37000Y-36500D02* X-31000D01* X-37000Y-47500D02* Y-36500D01* X-24500Y-47500D02* Y-36500D01* X-30500Y-47500D02* X-24500D01* X-30500Y-36500D02* X-24500D01* X-30500Y-47500D02* Y-36500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GM15 ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=32768* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD13C,0.00787*% %ADD85C,0.00394*% D13* X-29740Y50398D02* X-22260D01* Y35602D02* Y50398D01* X-29740Y35602D02* X-22260D01* X-29740D02* Y50398D01* X22260Y35602D02* Y50398D01* Y35602D02* X29740D01* Y50398D01* X22260D02* X29740D01* X-39291Y-17850D02* X-10709D01* Y-34150D02* Y-17850D01* X-39291Y-34150D02* X-10709D01* X-39291D02* Y-17850D01* X19988Y-25437D02* Y-17563D01* Y-25437D02* X31012D01* Y-17563D01* X19988D02* X31012D01* D85* X-51387Y13200D02* X-37213D01* X-51387Y29200D02* X-37213D01* X-51387Y13200D02* Y29200D01* X-37213Y13200D02* Y29200D01* X-44300Y19231D02* Y23168D01* X-46268Y21200D02* X-42331D01* X-27968Y43000D02* X-24032D01* X-26000Y41032D02* Y44969D01* X-23024Y26465D02* X500D01* X-23024Y59535D02* X500D01* Y26465D02* Y59535D01* X-23024Y26465D02* Y59535D01* X-12000Y41032D02* Y44969D01* X-13969Y43000D02* X-10031D01* X27200Y-55700D02* X30800D01* X27200Y-62300D02* Y-55700D01* X30800Y-62300D02* Y-55700D01* X27200Y-62300D02* X30800D01* X26000Y41032D02* Y44969D01* X24032Y43000D02* X27968D01* X-5469Y-31000D02* X-1531D01* X-3500Y-32969D02* Y-29032D01* X-10587Y-40000D02* Y-22000D01* X3587Y-40000D02* Y-22000D01* X-10587D02* X3587D01* X-10587Y-40000D02* X3587D01* X14532Y-28000D02* X18469D01* X16500Y-29969D02* Y-26032D01* X8429Y-37252D02* Y-18748D01* X24571Y-37252D02* Y-18748D01* X8429D02* X24571D01* X8429Y-37252D02* X24571D01* X-26969Y-26000D02* X-23031D01* X-25000Y-27968D02* Y-24032D01* X-24035Y-62500D02* Y-38976D01* X9035Y-62500D02* Y-38976D01* X-24035Y-62500D02* X9035D01* X-24035Y-38976D02* X9035D01* X-9469Y-50000D02* X-5531D01* X-7500Y-51968D02* Y-48031D01* X10031Y43000D02* X13969D01* X12000Y41032D02* Y44969D01* X976Y26465D02* Y59535D01* X24500Y26465D02* Y59535D01* X976D02* X24500D01* X976Y26465D02* X24500D01* X16535Y-11024D02* Y12500D01* X-16535Y-11024D02* Y12500D01* X16535D01* X-16535Y-11024D02* X16535D01* X-1969Y0D02* X1969D01* X0Y-1969D02* Y1969D01* X25500Y-23469D02* Y-19532D01* X23531Y-21500D02* X27468D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GPB ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% %ADD54C,0.20000*% %ADD59O,0.01968X0.05118*% G04:AMPARAMS|DCode=60|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD60* 21,1,0.02000,0.01000,0,0,270.0* 21,1,0.01000,0.02000,0,0,270.0* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* 1,1,0.01000,0.00500,-0.00500* % %ADD60ROUNDEDRECTD60*% G04:AMPARAMS|DCode=61|XSize=37.64mil|YSize=63.38mil|CornerRadius=9.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD61* 21,1,0.03764,0.04456,0,0,270.0* 21,1,0.01882,0.06338,0,0,270.0* 1,1,0.01882,-0.02228,-0.00941* 1,1,0.01882,-0.02228,0.00941* 1,1,0.01882,0.02228,0.00941* 1,1,0.01882,0.02228,-0.00941* % %ADD61ROUNDEDRECTD61*% G04:AMPARAMS|DCode=62|XSize=90.55mil|YSize=90.55mil|CornerRadius=22.64mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD62* 21,1,0.09055,0.04528,0,0,0.0* 21,1,0.04528,0.09055,0,0,0.0* 1,1,0.04528,0.02264,-0.02264* 1,1,0.04528,-0.02264,-0.02264* 1,1,0.04528,-0.02264,0.02264* 1,1,0.04528,0.02264,0.02264* % %ADD62ROUNDEDRECTD62*% G04:AMPARAMS|DCode=63|XSize=200mil|YSize=80mil|CornerRadius=20mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD63* 21,1,0.20000,0.04000,0,0,270.0* 21,1,0.16000,0.08000,0,0,270.0* 1,1,0.04000,-0.02000,-0.08000* 1,1,0.04000,-0.02000,0.08000* 1,1,0.04000,0.02000,0.08000* 1,1,0.04000,0.02000,-0.08000* % %ADD63ROUNDEDRECTD63*% G04:AMPARAMS|DCode=64|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD64* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD64ROUNDEDRECTD64*% G04:AMPARAMS|DCode=65|XSize=21.65mil|YSize=57.09mil|CornerRadius=5.41mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD65* 21,1,0.02165,0.04626,0,0,270.0* 21,1,0.01083,0.05709,0,0,270.0* 1,1,0.01083,-0.02313,-0.00541* 1,1,0.01083,-0.02313,0.00541* 1,1,0.01083,0.02313,0.00541* 1,1,0.01083,0.02313,-0.00541* % %ADD65ROUNDEDRECTD65*% G04:AMPARAMS|DCode=66|XSize=23.62mil|YSize=35mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD66* 21,1,0.02362,0.02319,0,0,0.0* 21,1,0.01181,0.03500,0,0,0.0* 1,1,0.01181,0.00591,-0.01159* 1,1,0.01181,-0.00591,-0.01159* 1,1,0.01181,-0.00591,0.01159* 1,1,0.01181,0.00591,0.01159* % %ADD66ROUNDEDRECTD66*% G04:AMPARAMS|DCode=67|XSize=27.56mil|YSize=51.18mil|CornerRadius=6.89mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD67* 21,1,0.02756,0.03740,0,0,0.0* 21,1,0.01378,0.05118,0,0,0.0* 1,1,0.01378,0.00689,-0.01870* 1,1,0.01378,-0.00689,-0.01870* 1,1,0.01378,-0.00689,0.01870* 1,1,0.01378,0.00689,0.01870* % %ADD67ROUNDEDRECTD67*% %ADD68O,0.05118X0.01968*% %ADD69O,0.01200X0.05400*% %ADD70O,0.05400X0.01200*% D18* X0Y42000D02* D03* Y38000D02* D03* Y49000D02* D03* Y45000D02* D03* X-25500Y-38500D02* D03* Y-34500D02* D03* X-62000Y-38500D02* D03* Y-34500D02* D03* X5500Y-22000D02* D03* Y-18000D02* D03* X9000Y-22000D02* D03* Y-18000D02* D03* X5500Y-26000D02* D03* Y-30000D02* D03* X9000Y-26000D02* D03* Y-30000D02* D03* X24000Y-22000D02* D03* Y-26000D02* D03* Y-30500D02* D03* Y-34500D02* D03* X9000Y-34000D02* D03* Y-38000D02* D03* X5500Y-34000D02* D03* Y-38000D02* D03* D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D59* X4500Y53433D02* D03* X-4500Y32567D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X-4500Y53433D02* D03* X-9500D02* D03* X-14500D02* D03* X-19500D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* X4500Y32567D02* D03* X9500D02* D03* X14500D02* D03* X19500D02* D03* D60* X-69500Y-2500D02* D03* X-65500D02* D03* X-17000Y-28000D02* D03* X-13000D02* D03* X-69500Y-13000D02* D03* X-65500D02* D03* X-9000Y27000D02* D03* X-13000D02* D03* X-23000D02* D03* X-27000D02* D03* X20000D02* D03* X16000D02* D03* X6000D02* D03* X2000D02* D03* X-2000D02* D03* X-6000D02* D03* X-16000D02* D03* X-20000D02* D03* X27000D02* D03* X23000D02* D03* X9000D02* D03* X13000D02* D03* X-13000Y-24500D02* D03* X-17000D02* D03* X-69500Y-31500D02* D03* X-65500D02* D03* X-13000Y-21000D02* D03* X-17000D02* D03* X-69500Y-38500D02* D03* X-65500D02* D03* X20000Y-38000D02* D03* X24000D02* D03* Y-56500D02* D03* X20000D02* D03* X-69500Y-35000D02* D03* X-65500D02* D03* X2000Y-17500D02* D03* X-2000D02* D03* X2000Y-21000D02* D03* X-2000D02* D03* X-5500D02* D03* X-9500D02* D03* X24000Y-18500D02* D03* X20000D02* D03* X12500D02* D03* X16500D02* D03* X12500Y-38000D02* D03* X16500D02* D03* D61* X-26000Y37878D02* D03* Y48122D02* D03* X26000D02* D03* Y37878D02* D03* D62* X-12000Y43000D02* D03* X12000D02* D03* D63* X-18000Y70000D02* D03* X-6000D02* D03* X18000D02* D03* X6000D02* D03* D64* X-67500Y-18260D02* D03* D65* X-67500Y-22000D02* D03* Y-25740D02* D03* D66* X-7240Y-36906D02* D03* X-3500D02* D03* X240D02* D03* Y-25506D02* D03* X-7240D02* D03* D67* X20240Y-23276D02* D03* X16500D02* D03* X12760D02* D03* Y-32724D02* D03* X16500D02* D03* X20240D02* D03* D68* X-17933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X2933Y-57500D02* D03* Y-52500D02* D03* Y-47500D02* D03* Y-42500D02* D03* X10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* X-10433Y7500D02* D03* Y2500D02* D03* Y-2500D02* D03* Y-7500D02* D03* D69* X-36610Y-3500D02* D03* X-34642D02* D03* X-32673D02* D03* X-38579D02* D03* X-40547D02* D03* X-48421D02* D03* X-46453D02* D03* X-42516D02* D03* X-44484D02* D03* X-50390D02* D03* X-52358D02* D03* X-54327D02* D03* X-32673Y-36500D02* D03* X-34642D02* D03* X-36610D02* D03* X-42516D02* D03* X-44484D02* D03* X-40547D02* D03* X-38579D02* D03* X-46453D02* D03* X-48421D02* D03* X-54327D02* D03* X-52358D02* D03* X-50390D02* D03* D70* X-27000Y-20984D02* D03* Y-9173D02* D03* Y-11142D02* D03* Y-13110D02* D03* Y-19016D02* D03* Y-17047D02* D03* Y-15079D02* D03* Y-22953D02* D03* Y-24921D02* D03* X-27000Y-30827D02* D03* X-27000Y-28858D02* D03* Y-26890D02* D03* X-60000Y-26890D02* D03* Y-28858D02* D03* Y-30827D02* D03* Y-24921D02* D03* Y-22953D02* D03* Y-15079D02* D03* Y-17047D02* D03* Y-20984D02* D03* Y-19016D02* D03* Y-13110D02* D03* Y-11142D02* D03* Y-9173D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GPT ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.03937,0.03937,0,0,90.0* 21,1,0.01968,0.05906,0,0,90.0* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% %ADD54C,0.20000*% D16* X-62500Y20689D02* D03* Y40374D02* D03* Y36437D02* D03* Y28563D02* D03* Y32500D02* D03* Y24626D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D17* X-77000Y16000D02* D03* Y45063D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D18* X-54000Y19700D02* D03* Y15700D02* D03* D19* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GTL ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Physical_Order=1* G04 Layer_Color=255* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD14C,0.00600*% G04:AMPARAMS|DCode=16|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.03937,0.03937,0,0,90.0* 21,1,0.01968,0.05906,0,0,90.0* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% %ADD50C,0.02000*% %ADD51C,0.08000*% %ADD52C,0.04000*% %ADD53C,0.03000*% %ADD54C,0.20000*% %ADD55C,0.01800*% %ADD56C,0.02362*% G36* X65948Y109336D02* X66997Y107625D01* X67765Y105771D01* X68233Y103819D01* X68378Y101985D01* X68378Y101985D01* X68378D01* X68382Y101980D01* Y92863D01* X68362D01* X68516Y90120D01* X68976Y87411D01* X69736Y84771D01* X70788Y82232D01* X72117Y79827D01* X73707Y77587D01* X75538Y75538D01* X77587Y73707D01* X79827Y72117D01* X82232Y70788D01* X84771Y69736D01* X87411Y68976D01* X90120Y68516D01* X92863Y68362D01* Y68382D01* X101980D01* X101985Y68378D01* X101985Y68378D01* X101985Y68378D01* X103819Y68233D01* X105771Y67765D01* X107625Y66997D01* X109336Y65948D01* X110106Y65290D01* Y-65290D01* X109336Y-65948D01* X107625Y-66997D01* X105771Y-67765D01* X103819Y-68233D01* X101985Y-68378D01* X101985Y-68378D01* Y-68378D01* X101980Y-68382D01* X92863D01* Y-68362D01* X90120Y-68516D01* X87411Y-68976D01* X84771Y-69736D01* X82232Y-70788D01* X79827Y-72117D01* X77587Y-73707D01* X75538Y-75538D01* X73707Y-77587D01* X72117Y-79827D01* X70788Y-82232D01* X69736Y-84771D01* X68976Y-87411D01* X68516Y-90120D01* X68362Y-92863D01* X68382D01* Y-101980D01* X68378Y-101985D01* X68378Y-101985D01* X68378Y-101985D01* X68233Y-103819D01* X67765Y-105771D01* X66997Y-107625D01* X65948Y-109336D01* X65290Y-110106D01* X-65290D01* X-65948Y-109336D01* X-66997Y-107625D01* X-67765Y-105771D01* X-68233Y-103819D01* X-68378Y-101985D01* X-68378Y-101985D01* X-68378D01* X-68382Y-101980D01* Y-92863D01* X-68362D01* X-68516Y-90120D01* X-68976Y-87411D01* X-69736Y-84771D01* X-70788Y-82232D01* X-72117Y-79827D01* X-73707Y-77587D01* X-75538Y-75538D01* X-77587Y-73707D01* X-79827Y-72117D01* X-82232Y-70788D01* X-84771Y-69736D01* X-87411Y-68976D01* X-90120Y-68516D01* X-92863Y-68362D01* Y-68382D01* X-101980D01* X-101985Y-68378D01* X-101985Y-68378D01* X-101985Y-68378D01* X-103819Y-68233D01* X-105771Y-67765D01* X-107625Y-66997D01* X-109336Y-65948D01* X-110106Y-65290D01* Y65290D01* X-109336Y65948D01* X-107625Y66997D01* X-105771Y67765D01* X-103819Y68233D01* X-101985Y68378D01* X-101985Y68378D01* Y68378D01* X-101980Y68382D01* X-92863D01* Y68362D01* X-90120Y68516D01* X-87411Y68976D01* X-84771Y69736D01* X-82232Y70788D01* X-79827Y72117D01* X-77587Y73707D01* X-75538Y75538D01* X-73707Y77587D01* X-72117Y79827D01* X-70788Y82232D01* X-69736Y84771D01* X-68976Y87411D01* X-68516Y90120D01* X-68362Y92863D01* X-68382D01* Y101980D01* X-68378Y101985D01* X-68378Y101985D01* X-68378Y101985D01* X-68233Y103819D01* X-67765Y105771D01* X-66997Y107625D01* X-65948Y109336D01* X-65290Y110106D01* X65290D01* X65948Y109336D01* D02* G37* %LPC*% G36* X16500Y80433D02* X4567Y80433D01* X4261Y80306D01* X4134Y80000D01* Y79309D01* X4073Y79000D01* Y75000D01* X4134Y74691D01* Y59933D01* X4135Y59931D01* X3882Y59521D01* X3523Y59523D01* X3171Y59941D01* Y65059D01* X3110Y65369D01* X2934Y65631D01* X2672Y65807D01* X2362Y65868D01* X1575D01* X1265Y65807D01* X1003Y65631D01* X827Y65369D01* X766Y65059D01* Y59941D01* X827Y59631D01* X1003Y59369D01* X1265Y59193D01* X1495Y59148D01* X1556Y59119D01* X1570Y59119D01* X1745Y58914D01* X1681Y58672D01* X1448Y58414D01* X524D01* X-805Y59742D01* X-766Y59941D01* Y65059D01* X-827Y65369D01* X-1003Y65631D01* X-1265Y65807D01* X-1575Y65868D01* X-2362D01* X-2672Y65807D01* X-2934Y65631D01* X-3110Y65369D01* X-3171Y65059D01* Y59941D01* X-3110Y59631D01* X-2934Y59369D01* X-2672Y59193D01* X-2442Y59148D01* X-2381Y59119D01* X-2279Y59115D01* X-2254Y59112D01* X-2231Y59108D01* X-2215Y59104D01* X-2209Y59102D01* X-2207Y59100D01* X-2203Y59099D01* X-2195Y59093D01* X-2190Y59092D01* X-2187Y59091D01* X-2187D01* X-2179Y59077D01* X-2151Y59070D01* X-277Y57195D01* X-45Y57041D01* X-32Y57038D01* X-81Y56538D01* X-18840D01* X-19185Y56681D01* X-19815D01* X-20160Y56538D01* X-21840D01* X-22185Y56681D01* X-22815D01* X-23235Y56507D01* X-24149Y56387D01* X-25219Y55943D01* X-26138Y55238D01* X-30138Y51238D01* X-30843Y50319D01* X-31287Y49249D01* X-31438Y48100D01* Y-5400D01* X-31287Y-6549D01* X-30843Y-7619D01* X-30138Y-8538D01* X-19792Y-18884D01* Y-22591D01* X-19860Y-22692D01* X-20056Y-23677D01* Y-28323D01* X-19860Y-29308D01* X-19792Y-29409D01* Y-34815D01* X-19875D01* X-20568Y-34953D01* X-21155Y-35345D01* X-21547Y-35932D01* X-21685Y-36625D01* Y-38908D01* X-27381Y-44605D01* X-29469D01* X-30009Y-44712D01* X-30084Y-44762D01* X-31417D01* X-31492Y-44712D01* X-32032Y-44605D01* X-35969D01* X-36149Y-44640D01* X-36500Y-44201D01* X-36400Y-43959D01* Y-43441D01* X-36598Y-42964D01* X-36964Y-42598D01* X-37441Y-42400D01* X-37959D01* X-38109Y-42462D01* X-38491Y-42080D01* X-38400Y-41859D01* Y-41341D01* X-38598Y-40864D01* X-38964Y-40498D01* X-39441Y-40300D01* X-39959D01* X-40436Y-40498D01* X-40802Y-40864D01* X-41000Y-41341D01* Y-41527D01* X-41033Y-41604D01* X-41034Y-41711D01* X-41039Y-41799D01* X-41048Y-41877D01* X-41060Y-41945D01* X-41074Y-42003D01* X-41090Y-42051D01* X-41105Y-42087D01* X-41169Y-42151D01* X-46931D01* X-55541Y-33541D01* X-56000Y-33351D01* X-59183D01* X-59193Y-33297D01* X-59369Y-33034D01* X-59631Y-32859D01* X-59941Y-32797D01* X-65059D01* X-65369Y-32859D01* X-65631Y-33034D01* X-65807Y-33297D01* X-65868Y-33606D01* Y-34394D01* X-65807Y-34703D01* X-65631Y-34966D01* X-65369Y-35141D01* X-65059Y-35203D01* X-60028D01* X-59882Y-35412D01* X-59804Y-35686D01* X-60849Y-36731D01* X-60883Y-36733D01* X-60919Y-36733D01* X-60921Y-36734D01* X-65059D01* X-65369Y-36796D01* X-65631Y-36971D01* X-65807Y-37234D01* X-65868Y-37543D01* Y-38331D01* X-65807Y-38640D01* X-65631Y-38903D01* X-65369Y-39078D01* X-65059Y-39140D01* X-59941D01* X-59631Y-39078D01* X-59369Y-38903D01* X-59193Y-38640D01* X-59132Y-38331D01* Y-37543D01* X-59193Y-37234D01* X-59322Y-37041D01* X-58713Y-36431D01* X-58289Y-36714D01* X-58300Y-36741D01* Y-37259D01* X-58102Y-37736D01* X-57736Y-38102D01* X-57259Y-38300D01* X-56741D01* X-56264Y-38102D01* X-55898Y-37736D01* X-55700Y-37259D01* Y-37057D01* X-55200Y-36850D01* X-47891Y-44159D01* X-47431Y-44349D01* X-39038D01* X-39002Y-44364D01* X-38957Y-44387D01* X-38906Y-44418D01* X-38854Y-44454D01* X-38718Y-44569D01* X-38645Y-44640D01* X-38568Y-44671D01* X-38436Y-44802D01* X-37959Y-45000D01* X-37556D01* X-37332Y-45284D01* X-37263Y-45462D01* X-37273Y-45476D01* X-37380Y-46016D01* Y-47985D01* X-37273Y-48525D01* X-37002Y-48929D01* X-37038Y-49200D01* X-36991Y-49555D01* X-37272Y-49975D01* X-37380Y-50515D01* Y-52484D01* X-37272Y-53024D01* X-36966Y-53482D01* X-36508Y-53788D01* X-35968Y-53895D01* X-32031D01* X-31491Y-53788D01* X-31267Y-53638D01* X-30233D01* X-30008Y-53788D01* X-29468Y-53895D01* X-25531D01* X-24991Y-53788D01* X-24533Y-53482D01* X-24531Y-53478D01* X-23481Y-53043D01* X-22640Y-52398D01* X-22390Y-52520D01* X-22223Y-52698D01* X-22287Y-52851D01* X-22438Y-54000D01* Y-68000D01* X-22433Y-68038D01* Y-72236D01* X-22306Y-72542D01* X-21202Y-73647D01* X-20896Y-73773D01* X-16978D01* Y-77000D01* X-16927Y-77258D01* Y-78969D01* X-16820Y-79509D01* X-16514Y-79966D01* X-16056Y-80272D01* X-15516Y-80380D01* X-13547D01* X-13007Y-80272D01* X-12549Y-79966D01* X-12243Y-79509D01* X-12136Y-78969D01* Y-77433D01* X-8927Y-77433D01* Y-79000D01* X-8819Y-79546D01* X-8509Y-80009D01* X-8046Y-80319D01* X-7500Y-80427D01* X-5500D01* X-4954Y-80319D01* X-4491Y-80009D01* X-4181Y-79546D01* X-4073Y-79000D01* Y-75513D01* X-4067Y-75500D01* Y-65000D01* Y-59500D01* X-4194Y-59194D01* X-5194Y-58194D01* X-5500Y-58067D01* X-13562D01* Y-54000D01* X-13713Y-52851D01* X-14157Y-51781D01* X-14862Y-50862D01* X-15781Y-50157D01* X-16851Y-49713D01* X-18000Y-49562D01* X-19149Y-49713D01* X-19287Y-49771D01* X-19571Y-49347D01* X-12216Y-41993D01* X-11511Y-41073D01* X-11068Y-40003D01* X-10916Y-38854D01* Y-33065D01* X-10764Y-33002D01* X-10398Y-32636D01* X-10200Y-32159D01* Y-31641D01* X-10398Y-31164D01* X-10764Y-30798D01* X-10916Y-30735D01* Y-29409D01* X-10849Y-29308D01* X-10653Y-28323D01* Y-24966D01* X-10452Y-24167D01* X-10294Y-23685D01* X-10122Y-23248D01* X-9939Y-22863D01* X-9747Y-22530D01* X-9675Y-22427D01* X-8234D01* X-8105Y-22402D01* X-7545D01* X-7197Y-22332D01* X-6902Y-22135D01* X-6705Y-21840D01* X-6635Y-21492D01* Y-20508D01* X-6705Y-20160D01* X-6902Y-19865D01* X-7197Y-19668D01* X-7545Y-19598D01* X-8105D01* X-8234Y-19573D01* X-10354D01* X-10354Y-19573D01* X-10416Y-19585D01* X-10916Y-19175D01* Y-17046D01* X-11068Y-15897D01* X-11511Y-14827D01* X-12216Y-13907D01* X-22562Y-3562D01* Y46262D01* X-21162Y47662D01* X4500D01* X5649Y47813D01* X6719Y48257D01* X7638Y48962D01* X8343Y49881D01* X8787Y50951D01* X8938Y52100D01* X8787Y53249D01* X8399Y54184D01* X8795Y54495D01* X9027Y54341D01* X9300Y54286D01* X26339D01* X26549Y54174D01* X26768Y54050D01* X26800Y53974D01* Y53741D01* X26998Y53264D01* X27364Y52898D01* X27841Y52700D01* X28359D01* X28836Y52898D01* X29202Y53264D01* X29400Y53741D01* Y54259D01* X29265Y54583D01* X29426Y55035D01* X29505Y55141D01* X29626Y55165D01* X30572Y54218D01* X30588Y54176D01* X30633Y54128D01* X30661Y54091D01* X30686Y54054D01* X30707Y54015D01* X30725Y53974D01* X30740Y53930D01* X30751Y53883D01* X30760Y53831D01* X30765Y53774D01* X30767Y53699D01* X30800Y53625D01* Y53441D01* X30998Y52964D01* X31364Y52598D01* X31841Y52400D01* X32359D01* X32836Y52598D01* X33202Y52964D01* X33400Y53441D01* Y53959D01* X33202Y54436D01* X32836Y54802D01* X32359Y55000D01* X32175D01* X32101Y55033D01* X32026Y55035D01* X31969Y55040D01* X31917Y55049D01* X31870Y55060D01* X31826Y55075D01* X31785Y55093D01* X31746Y55114D01* X31709Y55139D01* X31672Y55167D01* X31624Y55212D01* X31582Y55228D01* X30146Y56663D01* X29915Y56818D01* X29641Y56872D01* X10037D01* X8304Y58605D01* X8496Y59067D01* X23000D01* X23306Y59194D01* X23474Y59362D01* X30162D01* X38562Y50962D01* Y-66340D01* X38419Y-66685D01* Y-67314D01* X38562Y-67660D01* Y-69340D01* X38419Y-69686D01* Y-70315D01* X38562Y-70660D01* Y-72340D01* X38419Y-72685D01* Y-73314D01* X38660Y-73896D01* X38683Y-73919D01* X38713Y-74149D01* X39157Y-75219D01* X39862Y-76138D01* X40781Y-76843D01* X41851Y-77287D01* X43000Y-77438D01* X44149Y-77287D01* X45219Y-76843D01* X46138Y-76138D01* X46843Y-75219D01* X47287Y-74149D01* X47317Y-73919D01* X47340Y-73896D01* X47581Y-73314D01* Y-72685D01* X47438Y-72340D01* Y-70660D01* X47581Y-70315D01* Y-69686D01* X47438Y-69340D01* Y-67660D01* X47581Y-67314D01* Y-66685D01* X47438Y-66340D01* Y52800D01* X47438Y52800D01* X47287Y53949D01* X46843Y55019D01* X46138Y55938D01* X35138Y66938D01* X34219Y67643D01* X33149Y68087D01* X32000Y68238D01* X25433D01* Y71500D01* X25306Y71806D01* X16806Y80306D01* X16500Y80433D01* D02* G37* G36* X259Y44800D02* X-259D01* X-736Y44602D01* X-1102Y44236D01* X-1300Y43759D01* Y43241D01* X-1102Y42764D01* X-736Y42398D01* X-259Y42200D01* X259D01* X736Y42398D01* X1102Y42764D01* X1300Y43241D01* Y43759D01* X1102Y44236D01* X736Y44602D01* X259Y44800D01* D02* G37* G36* X-59641Y41600D02* X-60159D01* X-60214Y41577D01* X-65059D01* X-65369Y41515D01* X-65631Y41340D01* X-65807Y41077D01* X-65868Y40768D01* Y39980D01* X-65807Y39671D01* X-65631Y39408D01* X-65369Y39233D01* X-65059Y39171D01* X-60572D01* X-60159Y39000D01* X-59641D01* X-59164Y39198D01* X-58798Y39564D01* X-58600Y40041D01* Y40559D01* X-58798Y41036D01* X-59164Y41402D01* X-59641Y41600D01* D02* G37* G36* X-4200Y47037D02* X-4941Y46890D01* X-5570Y46470D01* X-5990Y45841D01* X-6137Y45100D01* Y42100D01* Y38102D01* X-6802Y37437D01* X-17464D01* X-17563Y37536D01* Y41000D01* Y44000D01* X-17710Y44741D01* X-18130Y45370D01* X-18759Y45790D01* X-19500Y45937D01* X-20241Y45790D01* X-20870Y45370D01* X-21290Y44741D01* X-21437Y44000D01* Y41000D01* Y36733D01* X-21290Y35992D01* X-20870Y35364D01* X-19636Y34130D01* X-19008Y33710D01* X-18267Y33563D01* X-6000D01* X-5259Y33710D01* X-4630Y34130D01* X-2830Y35930D01* X-2410Y36559D01* X-2263Y37300D01* Y42100D01* Y45100D01* X-2410Y45841D01* X-2830Y46470D01* X-3459Y46890D01* X-4200Y47037D01* D02* G37* G36* X259Y38300D02* X-259D01* X-736Y38102D01* X-1102Y37736D01* X-1300Y37259D01* Y36741D01* X-1102Y36264D01* X-736Y35898D01* X-259Y35700D01* X259D01* X736Y35898D01* X1102Y36264D01* X1300Y36741D01* Y37259D01* X1102Y37736D01* X736Y38102D01* X259Y38300D01* D02* G37* G36* X-59741Y37700D02* X-60259D01* X-60404Y37640D01* X-65059D01* X-65369Y37578D01* X-65631Y37403D01* X-65807Y37140D01* X-65868Y36831D01* Y36043D01* X-65807Y35734D01* X-65631Y35471D01* X-65369Y35296D01* X-65059Y35234D01* X-60582D01* X-60259Y35100D01* X-59741D01* X-59264Y35298D01* X-58898Y35664D01* X-58700Y36141D01* Y36659D01* X-58898Y37136D01* X-59264Y37502D01* X-59741Y37700D01* D02* G37* G36* X4300Y47037D02* X3559Y46890D01* X2930Y46470D01* X2510Y45841D01* X2363Y45100D01* Y42100D01* Y37700D01* X2510Y36959D01* X2930Y36330D01* X5630Y33630D01* X6259Y33210D01* X7000Y33063D01* X16867D01* X17608Y33210D01* X18236Y33630D01* X20670Y36064D01* X21090Y36692D01* X21237Y37433D01* Y41700D01* Y44700D01* X21090Y45441D01* X20670Y46070D01* X20041Y46490D01* X19300Y46637D01* X18559Y46490D01* X17930Y46070D01* X17510Y45441D01* X17363Y44700D01* Y41700D01* Y38236D01* X16064Y36937D01* X7802D01* X6237Y38502D01* Y42100D01* Y45100D01* X6090Y45841D01* X5670Y46470D01* X5041Y46890D01* X4300Y47037D01* D02* G37* G36* X-59641Y33800D02* X-60159D01* X-60393Y33703D01* X-65059D01* X-65369Y33641D01* X-65631Y33466D01* X-65807Y33203D01* X-65868Y32894D01* Y32106D01* X-65807Y31797D01* X-65631Y31534D01* X-65369Y31359D01* X-65059Y31297D01* X-60393D01* X-60159Y31200D01* X-59641D01* X-59164Y31398D01* X-58798Y31764D01* X-58600Y32241D01* Y32759D01* X-58798Y33236D01* X-59164Y33602D01* X-59641Y33800D01* D02* G37* G36* X14759Y32300D02* X14241D01* X13764Y32102D01* X13398Y31736D01* X13200Y31259D01* Y30741D01* X13398Y30264D01* X13764Y29898D01* X14241Y29700D01* X14759D01* X15236Y29898D01* X15602Y30264D01* X15800Y30741D01* Y31259D01* X15602Y31736D01* X15236Y32102D01* X14759Y32300D01* D02* G37* G36* X9759D02* X9241D01* X8764Y32102D01* X8398Y31736D01* X8200Y31259D01* Y30741D01* X8398Y30264D01* X8764Y29898D01* X9241Y29700D01* X9759D01* X10236Y29898D01* X10602Y30264D01* X10800Y30741D01* Y31259D01* X10602Y31736D01* X10236Y32102D01* X9759Y32300D01* D02* G37* G36* X-9241D02* X-9759D01* X-10236Y32102D01* X-10602Y31736D01* X-10800Y31259D01* Y30741D01* X-10602Y30264D01* X-10236Y29898D01* X-9759Y29700D01* X-9241D01* X-8764Y29898D01* X-8398Y30264D01* X-8200Y30741D01* Y31259D01* X-8398Y31736D01* X-8764Y32102D01* X-9241Y32300D01* D02* G37* G36* X-14241D02* X-14759D01* X-15236Y32102D01* X-15602Y31736D01* X-15800Y31259D01* Y30741D01* X-15602Y30264D01* X-15236Y29898D01* X-14759Y29700D01* X-14241D01* X-13764Y29898D01* X-13398Y30264D01* X-13200Y30741D01* Y31259D01* X-13398Y31736D01* X-13764Y32102D01* X-14241Y32300D01* D02* G37* G36* X-59941Y29766D02* X-65059D01* X-65369Y29704D01* X-65631Y29529D01* X-65807Y29266D01* X-65868Y28957D01* Y28169D01* X-65807Y27860D01* X-65631Y27597D01* X-65369Y27422D01* X-65059Y27360D01* X-59941D01* X-59631Y27422D01* X-59369Y27597D01* X-59348Y27628D01* X-59315Y27630D01* X-59270Y27630D01* X-59233Y27645D01* X-58643D01* X-58189Y27191D01* X-58175Y27155D01* X-58109Y27088D01* X-58060Y27034D01* X-57975Y26931D01* X-57951Y26898D01* X-57935Y26871D01* X-57927Y26856D01* X-57923Y26840D01* X-57918Y26834D01* X-57917Y26830D01* X-57910Y26823D01* X-57900Y26810D01* Y26641D01* X-57702Y26164D01* X-57336Y25798D01* X-56859Y25600D01* X-56341D01* X-55864Y25798D01* X-55498Y26164D01* X-55300Y26641D01* Y27159D01* X-55498Y27636D01* X-55864Y28002D01* X-56341Y28200D01* X-56510D01* X-56523Y28210D01* X-56530Y28217D01* X-56534Y28218D01* X-56540Y28223D01* X-56556Y28227D01* X-56571Y28235D01* X-56598Y28251D01* X-56627Y28272D01* X-56794Y28415D01* X-56855Y28475D01* X-56891Y28489D01* X-57614Y29212D01* X-57912Y29411D01* X-58263Y29481D01* X-59231D01* X-59266Y29496D01* X-59347Y29497D01* X-59369Y29529D01* X-59631Y29704D01* X-59941Y29766D01* D02* G37* G36* Y21892D02* X-65059D01* X-65369Y21830D01* X-65631Y21655D01* X-65807Y21392D01* X-65868Y21083D01* Y20295D01* X-65807Y19986D01* X-65631Y19723D01* X-65369Y19548D01* X-65059Y19486D01* X-63516D01* X-63514Y19485D01* X-63436Y19483D01* X-63418Y19481D01* Y12980D01* X-75349Y1049D01* X-75548Y751D01* X-75618Y400D01* Y-5300D01* X-75548Y-5651D01* X-75349Y-5949D01* X-70418Y-10880D01* Y-17100D01* X-70348Y-17451D01* X-70149Y-17749D01* X-68049Y-19849D01* X-67751Y-20048D01* X-67400Y-20118D01* X-62380D01* X-60849Y-21649D01* X-60551Y-21848D01* X-60200Y-21918D01* X-52413D01* X-52364Y-21975D01* X-52338Y-22009D01* X-52321Y-22035D01* X-52317Y-22041D01* X-52316Y-22042D01* X-52315Y-22044D01* X-52314Y-22046D01* X-52305Y-22065D01* X-52300Y-22070D01* Y-22259D01* X-52102Y-22736D01* X-51736Y-23102D01* X-51259Y-23300D01* X-50741D01* X-50264Y-23102D01* X-49898Y-22736D01* X-49700Y-22259D01* Y-21741D01* X-49898Y-21264D01* X-50264Y-20898D01* X-50741Y-20700D01* X-50699Y-20218D01* X-23830D01* X-23794Y-20233D01* X-23701Y-20234D01* X-23627Y-20237D01* X-23494Y-20250D01* X-23454Y-20257D01* X-23423Y-20264D01* X-23407Y-20269D01* X-23393Y-20278D01* X-23386Y-20279D01* X-23381Y-20280D01* X-23372Y-20281D01* X-23356Y-20283D01* X-23236Y-20402D01* X-22759Y-20600D01* X-22241D01* X-21764Y-20402D01* X-21398Y-20036D01* X-21200Y-19559D01* Y-19041D01* X-21398Y-18564D01* X-21764Y-18198D01* X-22241Y-18000D01* X-22759D01* X-23236Y-18198D01* X-23356Y-18317D01* X-23372Y-18319D01* X-23381Y-18319D01* X-23386Y-18321D01* X-23393Y-18323D01* X-23407Y-18330D01* X-23423Y-18336D01* X-23454Y-18343D01* X-23490Y-18349D01* X-23708Y-18366D01* X-23794Y-18367D01* X-23830Y-18382D01* X-45566D01* X-45651Y-17882D01* X-45451Y-17749D01* X-42051Y-14349D01* X-41852Y-14051D01* X-41782Y-13700D01* Y-11930D01* X-41767Y-11894D01* X-41766Y-11801D01* X-41763Y-11727D01* X-41750Y-11594D01* X-41743Y-11554D01* X-41736Y-11523D01* X-41730Y-11507D01* X-41722Y-11493D01* X-41721Y-11486D01* X-41719Y-11481D01* X-41719Y-11472D01* X-41717Y-11456D01* X-41598Y-11336D01* X-41400Y-10859D01* Y-10341D01* X-41598Y-9864D01* X-41964Y-9498D01* X-42441Y-9300D01* X-42959D01* X-43436Y-9498D01* X-43802Y-9864D01* X-44000Y-10341D01* Y-10859D01* X-43802Y-11336D01* X-43683Y-11456D01* X-43681Y-11472D01* X-43681Y-11481D01* X-43679Y-11486D01* X-43678Y-11493D01* X-43670Y-11507D01* X-43664Y-11523D01* X-43657Y-11554D01* X-43651Y-11590D01* X-43634Y-11808D01* X-43633Y-11894D01* X-43618Y-11930D01* Y-13320D01* X-46480Y-16182D01* X-50758D01* X-50857Y-15682D01* X-50664Y-15602D01* X-50298Y-15236D01* X-50100Y-14759D01* Y-14573D01* X-50067Y-14496D01* X-50066Y-14389D01* X-50061Y-14301D01* X-50052Y-14223D01* X-50040Y-14155D01* X-50026Y-14097D01* X-50010Y-14049D01* X-49995Y-14013D01* X-49241Y-13259D01* X-49051Y-12800D01* Y-9100D01* X-49241Y-8641D01* X-56798Y-1084D01* X-56574Y-600D01* X-56241D01* X-55764Y-402D01* X-55398Y-36D01* X-55200Y441D01* Y959D01* X-55398Y1436D01* X-55764Y1802D01* X-56241Y2000D01* X-56759D01* X-57236Y1802D01* X-57523Y1516D01* X-57850Y1480D01* X-58107Y1525D01* X-59095Y2513D01* X-59110Y2549D01* X-59126Y2597D01* X-59140Y2655D01* X-59151Y2717D01* X-59166Y2895D01* X-59167Y2996D01* X-59200Y3073D01* Y3161D01* X-59193Y3171D01* X-59132Y3480D01* Y4268D01* X-59193Y4577D01* X-59369Y4840D01* X-59631Y5015D01* X-59941Y5077D01* X-65059D01* X-65369Y5015D01* X-65631Y4840D01* X-65807Y4577D01* X-65868Y4268D01* Y3480D01* X-65807Y3171D01* X-65631Y2908D01* X-65369Y2733D01* X-65059Y2671D01* X-61771D01* X-61602Y2264D01* X-61236Y1898D01* X-60759Y1700D01* X-60573D01* X-60496Y1667D01* X-60473Y1640D01* X-60637Y1214D01* X-60660Y1191D01* X-60737Y1144D01* X-60750Y1140D01* X-65059D01* X-65369Y1078D01* X-65631Y903D01* X-65807Y640D01* X-65868Y331D01* Y-457D01* X-65807Y-766D01* X-65719Y-898D01* X-65702Y-924D01* X-65987Y-1347D01* X-66013Y-1336D01* X-66341Y-1200D01* X-66859D01* X-67336Y-1398D01* X-67702Y-1764D01* X-67900Y-2241D01* Y-2759D01* X-67702Y-3236D01* X-67336Y-3602D01* X-66859Y-3800D01* X-66341D01* X-65864Y-3602D01* X-65498Y-3236D01* X-65300Y-2759D01* Y-2241D01* X-65498Y-1764D01* X-65610Y-1651D01* X-65614Y-1647D01* X-65377Y-1230D01* X-65345Y-1209D01* X-65297Y-1219D01* X-65059Y-1266D01* X-59941D01* X-59867Y-1251D01* X-52549Y-8569D01* Y-9762D01* X-52564Y-9798D01* X-52587Y-9843D01* X-52618Y-9894D01* X-52654Y-9946D01* X-52769Y-10082D01* X-52840Y-10155D01* X-52871Y-10232D01* X-53002Y-10364D01* X-53200Y-10841D01* X-53700Y-11002D01* X-54651Y-10051D01* X-54949Y-9852D01* X-55300Y-9782D01* X-58000D01* X-58351Y-9852D01* X-58649Y-10051D01* X-59451Y-10853D01* X-59631Y-10733D01* X-59941Y-10671D01* X-65059D01* X-65369Y-10733D01* X-65631Y-10908D01* X-65807Y-11171D01* X-65868Y-11480D01* Y-12268D01* X-65807Y-12577D01* X-65631Y-12840D01* X-65369Y-13015D01* X-65059Y-13077D01* X-59941D01* X-59631Y-13015D01* X-59369Y-12840D01* X-59348Y-12809D01* X-59315Y-12807D01* X-59270Y-12807D01* X-59233Y-12792D01* X-59174D01* X-58823Y-12722D01* X-58525Y-12523D01* X-57794Y-11792D01* X-57576Y-11830D01* X-57402Y-12364D01* X-57600Y-12841D01* Y-13359D01* X-57402Y-13836D01* X-57283Y-13956D01* X-57281Y-13972D01* X-57280Y-13981D01* X-57279Y-13986D01* X-57278Y-13993D01* X-57270Y-14007D01* X-57264Y-14023D01* X-57257Y-14054D01* X-57251Y-14089D01* X-57234Y-14308D01* X-57233Y-14394D01* X-57218Y-14430D01* Y-14800D01* X-57148Y-15151D01* X-56949Y-15449D01* X-55009Y-17389D01* X-55292Y-17812D01* X-55526Y-17716D01* X-56043D01* X-56521Y-17914D01* X-56886Y-18279D01* X-57084Y-18757D01* Y-19274D01* X-56957Y-19582D01* X-57209Y-20082D01* X-59820D01* X-61351Y-18551D01* X-61649Y-18352D01* X-62000Y-18282D01* X-67020D01* X-68582Y-16720D01* Y-10500D01* X-68652Y-10149D01* X-68851Y-9851D01* X-69386Y-9317D01* X-69194Y-8855D01* X-65769D01* X-65734Y-8870D01* X-65653Y-8871D01* X-65631Y-8903D01* X-65369Y-9078D01* X-65059Y-9140D01* X-59941D01* X-59631Y-9078D01* X-59369Y-8903D01* X-59193Y-8640D01* X-59132Y-8331D01* Y-7543D01* X-59193Y-7234D01* X-59369Y-6971D01* X-59631Y-6796D01* X-59941Y-6734D01* X-65059D01* X-65369Y-6796D01* X-65631Y-6971D01* X-65652Y-7002D01* X-65685Y-7004D01* X-65730Y-7004D01* X-65767Y-7019D01* X-69583D01* X-72382Y-4220D01* Y-1080D01* X-56520Y14782D01* X-55345D01* X-55312Y14767D01* X-55293Y14767D01* X-55291Y14763D01* X-55266Y14703D01* X-55245Y14695D01* X-55149Y14551D01* X-54851Y14352D01* X-54500Y14282D01* X-53500D01* X-53149Y14352D01* X-52851Y14551D01* X-52755Y14695D01* X-52734Y14703D01* X-52709Y14763D01* X-52707Y14767D01* X-52688Y14767D01* X-52655Y14782D01* X-49614D01* X-49600Y14712D01* X-49598Y14677D01* X-49590Y14660D01* X-49564Y14530D01* X-49345Y14202D01* X-49017Y13984D01* X-48631Y13907D01* X-47450D01* X-47063Y13984D01* X-46736Y14202D01* X-46516Y14530D01* X-46491Y14660D01* X-46482Y14677D01* X-46480Y14712D01* X-46466Y14782D01* X-42134D01* X-42120Y14712D01* X-42118Y14677D01* X-42109Y14660D01* X-42083Y14530D01* X-41865Y14202D01* X-41537Y13984D01* X-41150Y13907D01* X-39969D01* X-39583Y13984D01* X-39255Y14202D01* X-39036Y14530D01* X-38959Y14917D01* Y17672D01* X-39036Y18059D01* X-39255Y18387D01* X-39583Y18606D01* X-39969Y18682D01* X-41150D01* X-41537Y18606D01* X-41865Y18387D01* X-42083Y18059D01* X-42160Y17672D01* Y16707D01* X-42161Y16705D01* X-42162Y16628D01* X-42163Y16618D01* X-46437D01* X-46438Y16628D01* X-46439Y16705D01* X-46440Y16707D01* Y17672D01* X-46516Y18059D01* X-46736Y18387D01* X-47063Y18606D01* X-47450Y18682D01* X-48631D01* X-49017Y18606D01* X-49345Y18387D01* X-49564Y18059D01* X-49641Y17672D01* Y16707D01* X-49641Y16705D01* X-49643Y16628D01* X-49643Y16618D01* X-52655D01* X-52688Y16633D01* X-52707Y16633D01* X-52709Y16637D01* X-52734Y16697D01* X-52755Y16705D01* X-52851Y16849D01* X-53149Y17048D01* X-53500Y17118D01* X-54500D01* X-54851Y17048D01* X-55149Y16849D01* X-55245Y16705D01* X-55266Y16697D01* X-55291Y16637D01* X-55293Y16633D01* X-55312Y16633D01* X-55345Y16618D01* X-56900D01* X-57251Y16548D01* X-57549Y16349D01* X-61082Y12815D01* X-61582Y13023D01* Y19481D01* X-61564Y19483D01* X-61486Y19485D01* X-61484Y19486D01* X-59941D01* X-59631Y19548D01* X-59369Y19723D01* X-59348Y19754D01* X-59315Y19756D01* X-59270Y19756D01* X-59233Y19771D01* X-55418D01* Y19200D01* X-55348Y18849D01* X-55149Y18551D01* X-54851Y18352D01* X-54500Y18282D01* X-53500D01* X-53149Y18352D01* X-52851Y18551D01* X-52652Y18849D01* X-52582Y19200D01* Y20200D01* X-52652Y20551D01* X-52851Y20849D01* X-53149Y21048D01* X-53500Y21118D01* X-54120D01* X-54340Y21338D01* X-54638Y21537D01* X-54989Y21607D01* X-59231D01* X-59266Y21622D01* X-59347Y21623D01* X-59369Y21655D01* X-59631Y21830D01* X-59941Y21892D01* D02* G37* G36* X11059Y8800D02* X10541D01* X10064Y8602D01* X9698Y8236D01* X9500Y7759D01* Y7241D01* X9698Y6764D01* X10064Y6398D01* X10541Y6200D01* X11059D01* X11536Y6398D01* X11902Y6764D01* X12100Y7241D01* Y7759D01* X11902Y8236D01* X11536Y8602D01* X11059Y8800D01* D02* G37* G36* X-50141Y6100D02* X-50659D01* X-51136Y5902D01* X-51502Y5536D01* X-51700Y5059D01* Y4541D01* X-51502Y4064D01* X-51136Y3698D01* X-50659Y3500D01* X-50141D01* X-49664Y3698D01* X-49298Y4064D01* X-49100Y4541D01* Y5059D01* X-49298Y5536D01* X-49664Y5902D01* X-50141Y6100D01* D02* G37* G36* X-54041D02* X-54559D01* X-55036Y5902D01* X-55402Y5536D01* X-55600Y5059D01* Y4541D01* X-55402Y4064D01* X-55036Y3698D01* X-54559Y3500D01* X-54041D01* X-53564Y3698D01* X-53198Y4064D01* X-53000Y4541D01* Y5059D01* X-53198Y5536D01* X-53564Y5902D01* X-54041Y6100D01* D02* G37* G36* X9000Y10000D02* X-9000D01* Y3341D01* X-9488Y3239D01* X-9500Y3238D01* X-9864Y3602D01* X-10341Y3800D01* X-10859D01* X-11336Y3602D01* X-11702Y3236D01* X-11900Y2759D01* Y2241D01* X-11702Y1764D01* X-11336Y1398D01* X-10859Y1200D01* X-10341D01* X-9864Y1398D01* X-9500Y1761D01* X-9488Y1761D01* X-9000Y1659D01* Y-10000D01* X9000D01* Y10000D01* D02* G37* G36* X75700Y9627D02* X70300D01* X69754Y9519D01* X69291Y9209D01* X68981Y8746D01* X68873Y8200D01* Y6200D01* X68981Y5654D01* X69291Y5191D01* X69754Y4881D01* X70300Y4773D01* X71694D01* X71770Y4705D01* X71898Y4236D01* X71700Y3759D01* Y3241D01* X71898Y2764D01* X72264Y2398D01* X72741Y2200D01* X73259D01* X73736Y2398D01* X74102Y2764D01* X74300Y3241D01* Y3759D01* X74102Y4236D01* X74230Y4705D01* X74306Y4773D01* X75700D01* X76246Y4881D01* X76709Y5191D01* X77019Y5654D01* X77127Y6200D01* Y8200D01* X77019Y8746D01* X76709Y9209D01* X76246Y9519D01* X75700Y9627D01* D02* G37* G36* X-52100Y1958D02* X-52617D01* X-53095Y1760D01* X-53460Y1395D01* X-53658Y917D01* Y400D01* X-53460Y-78D01* X-53095Y-444D01* X-52617Y-642D01* X-52100D01* X-51622Y-444D01* X-51256Y-78D01* X-51058Y400D01* Y917D01* X-51256Y1395D01* X-51622Y1760D01* X-52100Y1958D01* D02* G37* G36* X16059Y1600D02* X15541D01* X15064Y1402D01* X14698Y1036D01* X14500Y559D01* Y41D01* X14698Y-436D01* X15064Y-802D01* X15541Y-1000D01* X16059D01* X16536Y-802D01* X16902Y-436D01* X17100Y41D01* Y559D01* X16902Y1036D01* X16536Y1402D01* X16059Y1600D01* D02* G37* G36* X50259Y-2700D02* X49741D01* X49264Y-2898D01* X48898Y-3264D01* X48700Y-3741D01* Y-4259D01* X48898Y-4736D01* X49264Y-5102D01* X49741Y-5300D01* X50259D01* X50736Y-5102D01* X51102Y-4736D01* X51300Y-4259D01* Y-3741D01* X51102Y-3264D01* X50736Y-2898D01* X50259Y-2700D01* D02* G37* G36* X29559Y-2800D02* X29041D01* X28564Y-2998D01* X28198Y-3364D01* X28000Y-3841D01* Y-4359D01* X28198Y-4836D01* X28564Y-5202D01* X29041Y-5400D01* X29559D01* X30036Y-5202D01* X30402Y-4836D01* X30600Y-4359D01* Y-3841D01* X30402Y-3364D01* X30036Y-2998D01* X29559Y-2800D01* D02* G37* G36* X-18041Y-2900D02* X-18559D01* X-19036Y-3098D01* X-19402Y-3464D01* X-19600Y-3941D01* Y-4459D01* X-19402Y-4936D01* X-19036Y-5302D01* X-18559Y-5500D01* X-18041D01* X-17564Y-5302D01* X-17198Y-4936D01* X-17000Y-4459D01* Y-3941D01* X-17198Y-3464D01* X-17564Y-3098D01* X-18041Y-2900D01* D02* G37* G36* X50259Y-5900D02* X49741D01* X49264Y-6098D01* X48898Y-6464D01* X48700Y-6941D01* Y-7459D01* X48898Y-7936D01* X49264Y-8302D01* X49741Y-8500D01* X50259D01* X50736Y-8302D01* X51102Y-7936D01* X51300Y-7459D01* Y-6941D01* X51102Y-6464D01* X50736Y-6098D01* X50259Y-5900D01* D02* G37* G36* X29559D02* X29041D01* X28564Y-6098D01* X28198Y-6464D01* X28000Y-6941D01* Y-7459D01* X28198Y-7936D01* X28564Y-8302D01* X29041Y-8500D01* X29559D01* X30036Y-8302D01* X30402Y-7936D01* X30600Y-7459D01* Y-6941D01* X30402Y-6464D01* X30036Y-6098D01* X29559Y-5900D01* D02* G37* G36* X-11141Y-6200D02* X-11659D01* X-12136Y-6398D01* X-12502Y-6764D01* X-12700Y-7241D01* Y-7759D01* X-12502Y-8236D01* X-12136Y-8602D01* X-11659Y-8800D01* X-11141D01* X-10664Y-8602D01* X-10298Y-8236D01* X-10100Y-7759D01* Y-7241D01* X-10298Y-6764D01* X-10664Y-6398D01* X-11141Y-6200D01* D02* G37* G36* X73259Y-3400D02* X72741D01* X72264Y-3598D01* X71898Y-3964D01* X71700Y-4441D01* Y-4773D01* X70300D01* X69754Y-4881D01* X69291Y-5191D01* X68981Y-5654D01* X68873Y-6200D01* Y-8200D01* X68981Y-8746D01* X69291Y-9209D01* X69754Y-9519D01* X70300Y-9627D01* X75700D01* X76246Y-9519D01* X76709Y-9209D01* X77019Y-8746D01* X77127Y-8200D01* Y-6200D01* X77019Y-5654D01* X76709Y-5191D01* X76246Y-4881D01* X75700Y-4773D01* X74300D01* Y-4441D01* X74102Y-3964D01* X73736Y-3598D01* X73259Y-3400D01* D02* G37* G36* X-35041Y-7100D02* X-35559D01* X-36036Y-7298D01* X-36402Y-7664D01* X-36600Y-8141D01* Y-8659D01* X-36402Y-9136D01* X-36036Y-9502D01* X-35559Y-9700D01* X-35041D01* X-34564Y-9502D01* X-34198Y-9136D01* X-34000Y-8659D01* Y-8141D01* X-34198Y-7664D01* X-34564Y-7298D01* X-35041Y-7100D01* D02* G37* G36* X-31541Y-11000D02* X-32059D01* X-32536Y-11198D01* X-32902Y-11564D01* X-33100Y-12041D01* Y-12559D01* X-32902Y-13036D01* X-32536Y-13402D01* X-32059Y-13600D01* X-31541D01* X-31064Y-13402D01* X-30698Y-13036D01* X-30500Y-12559D01* Y-12041D01* X-30698Y-11564D01* X-31064Y-11198D01* X-31541Y-11000D01* D02* G37* G36* X28500Y-13073D02* X27954Y-13182D01* X27491Y-13491D01* X27181Y-13954D01* X27073Y-14501D01* Y-19050D01* X26956Y-19225D01* X26876Y-19625D01* Y-23375D01* X26956Y-23775D01* X27182Y-24114D01* X27521Y-24340D01* X27922Y-24420D01* X29171D01* X29571Y-24340D01* X29910Y-24114D01* X30137Y-23775D01* X30217Y-23375D01* Y-19625D01* X30137Y-19225D01* X29927Y-18911D01* Y-14501D01* X29819Y-13954D01* X29509Y-13491D01* X29046Y-13182D01* X28500Y-13073D01* D02* G37* G36* X18800Y-14873D02* X18800Y-14873D01* X4200D01* X3654Y-14981D01* X3191Y-15291D01* X3191Y-15291D01* X1225Y-17257D01* X915Y-17720D01* X806Y-18266D01* X807Y-18266D01* Y-19521D01* X801Y-19534D01* X798Y-19834D01* X789Y-20019D01* X788Y-20035D01* X704Y-20160D01* X635Y-20508D01* Y-21492D01* X704Y-21840D01* X902Y-22135D01* X1197Y-22332D01* X1545Y-22402D01* X2105D01* X2234Y-22427D01* X2363Y-22402D01* X2923D01* X3271Y-22332D01* X3566Y-22135D01* X3763Y-21840D01* X3833Y-21492D01* Y-20508D01* X3763Y-20160D01* X3690Y-20051D01* X3667Y-19640D01* X3667Y-19537D01* X3661Y-19524D01* Y-18857D01* X4791Y-17727D01* X18209D01* X18891Y-18409D01* X19354Y-18719D01* X19900Y-18827D01* X20406Y-18727D01* X20465Y-18729D01* X20938Y-18991D01* X20947Y-19072D01* X20929Y-19121D01* X20948Y-19077D01* Y-19077D01* X20923Y-19134D01* X20923Y-19135D01* X20896Y-19176D01* X20863Y-19225D01* X20859Y-19244D01* X20831Y-19283D01* X20807Y-19379D01* X20786Y-19441D01* X20764Y-19485D01* X20745Y-19513D01* X20730Y-19531D01* X20716Y-19542D01* X20702Y-19550D01* X20681Y-19557D01* X20649Y-19564D01* X20577Y-19568D01* X20568Y-19573D01* X16734D01* X16605Y-19598D01* X16045D01* X15697Y-19668D01* X15402Y-19865D01* X15204Y-20160D01* X15135Y-20508D01* Y-21492D01* X15204Y-21840D01* X15402Y-22135D01* X15697Y-22332D01* X16045Y-22402D01* X16605D01* X16734Y-22427D01* X18438D01* X18481Y-22646D01* X18791Y-23109D01* X19254Y-23419D01* X19800Y-23527D01* X20572D01* X20582Y-23532D01* X20663Y-23536D01* X20708Y-23544D01* X20738Y-23553D01* X20756Y-23561D01* X20768Y-23569D01* X20777Y-23577D01* X20787Y-23590D01* X20799Y-23613D01* X20813Y-23648D01* X20831Y-23721D01* X20860Y-23759D01* X20863Y-23775D01* X20923Y-23865D01* X20948Y-23923D01* X20967Y-23931D01* X21090Y-24114D01* X21429Y-24340D01* X21828Y-24420D01* X23078D01* X23479Y-24340D01* X23818Y-24114D01* X24044Y-23775D01* X24124Y-23375D01* Y-19625D01* X24044Y-19225D01* X23818Y-18886D01* X23479Y-18659D01* X23078Y-18580D01* X21828D01* X21510Y-18643D01* X21429Y-18659D01* X21380Y-18662D01* X21336Y-18657D01* X21062Y-18185D01* X21066Y-18175D01* X21219Y-17946D01* X21327Y-17400D01* X21219Y-16854D01* X20909Y-16391D01* X19809Y-15291D01* X19346Y-14981D01* X18800Y-14873D01* D02* G37* G36* X-51241Y-30300D02* X-51759D01* X-52236Y-30498D01* X-52602Y-30864D01* X-52800Y-31341D01* Y-31859D01* X-52602Y-32336D01* X-52236Y-32702D01* X-51759Y-32900D01* X-51241D01* X-50764Y-32702D01* X-50398Y-32336D01* X-50200Y-31859D01* Y-31341D01* X-50398Y-30864D01* X-50764Y-30498D01* X-51241Y-30300D01* D02* G37* G36* X-38341Y-30500D02* X-38859D01* X-39336Y-30698D01* X-39702Y-31064D01* X-39900Y-31541D01* Y-31872D01* X-40234Y-32199D01* X-40361Y-32253D01* X-40806D01* X-41284Y-32451D01* X-41649Y-32816D01* X-41847Y-33294D01* Y-33811D01* X-41649Y-34289D01* X-41284Y-34655D01* X-40806Y-34853D01* X-40289D01* X-39811Y-34655D01* X-39445Y-34289D01* X-39247Y-33811D01* Y-33480D01* X-38913Y-33153D01* X-38787Y-33100D01* X-38362D01* X-38339Y-33102D01* X-37900Y-33458D01* Y-33659D01* X-37702Y-34136D01* X-37336Y-34502D01* X-36859Y-34700D01* X-36341D01* X-35864Y-34502D01* X-35498Y-34136D01* X-35300Y-33659D01* Y-33141D01* X-35498Y-32664D01* X-35864Y-32298D01* X-36341Y-32100D01* X-36838D01* X-36861Y-32098D01* X-37300Y-31742D01* Y-31541D01* X-37498Y-31064D01* X-37864Y-30698D01* X-38341Y-30500D01* D02* G37* G36* X240Y-32113D02* X-306Y-32221D01* X-769Y-32531D01* X-1079Y-32994D01* X-1187Y-33540D01* Y-38640D01* X-1079Y-39186D01* X-769Y-39650D01* X-306Y-39959D01* X240Y-40068D01* X786Y-39959D01* X996Y-39819D01* X1036Y-39802D01* X1067Y-39771D01* X1249Y-39650D01* X1371Y-39467D01* X1402Y-39436D01* X1419Y-39396D01* X1559Y-39186D01* X1668Y-38640D01* Y-33540D01* X1559Y-32994D01* X1249Y-32531D01* X786Y-32221D01* X240Y-32113D01* D02* G37* G36* X-58241Y-39700D02* X-58759D01* X-59236Y-39898D01* X-59602Y-40264D01* X-59800Y-40741D01* Y-41259D01* X-59602Y-41736D01* X-59236Y-42102D01* X-58759Y-42300D01* X-58241D01* X-57764Y-42102D01* X-57398Y-41736D01* X-57200Y-41259D01* Y-40741D01* X-57398Y-40264D01* X-57764Y-39898D01* X-58241Y-39700D01* D02* G37* G36* X-34362Y-39900D02* X-34879D01* X-35357Y-40098D01* X-35723Y-40464D01* X-35921Y-40941D01* Y-41459D01* X-35723Y-41936D01* X-35357Y-42302D01* X-34879Y-42500D01* X-34362D01* X-33884Y-42302D01* X-33518Y-41936D01* X-33321Y-41459D01* Y-40941D01* X-33518Y-40464D01* X-33884Y-40098D01* X-34362Y-39900D01* D02* G37* G36* X-61841Y-41300D02* X-62359D01* X-62836Y-41498D01* X-63202Y-41864D01* X-63400Y-42341D01* Y-42859D01* X-63202Y-43336D01* X-62836Y-43702D01* X-62359Y-43900D01* X-61841D01* X-61364Y-43702D01* X-60998Y-43336D01* X-60800Y-42859D01* Y-42341D01* X-60998Y-41864D01* X-61364Y-41498D01* X-61841Y-41300D01* D02* G37* G36* X-71108Y-44434D02* X-71625D01* X-72103Y-44631D01* X-72469Y-44997D01* X-72666Y-45475D01* Y-45992D01* X-72469Y-46470D01* X-72103Y-46836D01* X-71625Y-47034D01* X-71108D01* X-70630Y-46836D01* X-70264Y-46470D01* X-70066Y-45992D01* Y-45475D01* X-70264Y-44997D01* X-70630Y-44631D01* X-71108Y-44434D01* D02* G37* G36* X-10541Y-42800D02* X-11059D01* X-11536Y-42998D01* X-11902Y-43364D01* X-12100Y-43841D01* Y-44038D01* X-12208Y-44392D01* X-12562Y-44500D01* X-12759D01* X-13236Y-44698D01* X-13602Y-45064D01* X-13800Y-45541D01* Y-46059D01* X-13602Y-46536D01* X-13236Y-46902D01* X-12759Y-47100D01* X-12241D01* X-11764Y-46902D01* X-11398Y-46536D01* X-11200Y-46059D01* Y-45862D01* X-11092Y-45508D01* X-10738Y-45400D01* X-10541D01* X-10064Y-45202D01* X-9698Y-44836D01* X-9500Y-44359D01* Y-43841D01* X-9698Y-43364D01* X-10064Y-42998D01* X-10541Y-42800D01* D02* G37* G36* X71000Y-27099D02* X61200D01* Y-49000D01* X71000D01* Y-27099D01* D02* G37* G36* X-78400Y-51082D02* X-78751Y-51152D01* X-79049Y-51351D01* X-79248Y-51649D01* X-79318Y-52000D01* Y-52170D01* X-79333Y-52206D01* X-79334Y-52299D01* X-79337Y-52373D01* X-79350Y-52506D01* X-79357Y-52546D01* X-79364Y-52577D01* X-79369Y-52593D01* X-79378Y-52607D01* X-79379Y-52614D01* X-79381Y-52619D01* X-79381Y-52628D01* X-79383Y-52644D01* X-79502Y-52764D01* X-79700Y-53241D01* Y-53759D01* X-79502Y-54236D01* X-79383Y-54356D01* X-79381Y-54372D01* X-79381Y-54381D01* X-79379Y-54386D01* X-79378Y-54393D01* X-79369Y-54407D01* X-79364Y-54423D01* X-79357Y-54454D01* X-79351Y-54489D01* X-79334Y-54708D01* X-79333Y-54794D01* X-79318Y-54830D01* Y-55000D01* X-79248Y-55351D01* X-79049Y-55649D01* X-78751Y-55848D01* X-78400Y-55918D01* X-78049Y-55848D01* X-77751Y-55649D01* X-77552Y-55351D01* X-77482Y-55000D01* Y-54830D01* X-77467Y-54794D01* X-77466Y-54701D01* X-77463Y-54627D01* X-77450Y-54494D01* X-77443Y-54454D01* X-77436Y-54423D01* X-77430Y-54407D01* X-77422Y-54393D01* X-77421Y-54386D01* X-77420Y-54381D01* X-77419Y-54372D01* X-77417Y-54356D01* X-77298Y-54236D01* X-77100Y-53759D01* Y-53241D01* X-77298Y-52764D01* X-77417Y-52644D01* X-77419Y-52628D01* X-77420Y-52619D01* X-77421Y-52614D01* X-77422Y-52607D01* X-77430Y-52593D01* X-77436Y-52577D01* X-77443Y-52546D01* X-77449Y-52510D01* X-77466Y-52292D01* X-77467Y-52206D01* X-77482Y-52170D01* Y-52000D01* X-77552Y-51649D01* X-77751Y-51351D01* X-78049Y-51152D01* X-78400Y-51082D01* D02* G37* G36* X-73241Y-50700D02* X-73759D01* X-74236Y-50898D01* X-74602Y-51264D01* X-74667Y-51420D01* X-74959Y-51541D01* X-75149Y-52000D01* X-74959Y-52459D01* X-74667Y-52580D01* X-74602Y-52736D01* X-74236Y-53102D01* X-73908Y-53238D01* Y-53762D01* X-74236Y-53898D01* X-74419Y-54080D01* X-74492Y-54110D01* X-74496Y-54121D01* X-74506Y-54126D01* X-74563Y-54189D01* X-74609Y-54233D01* X-74652Y-54270D01* X-74694Y-54299D01* X-74732Y-54322D01* X-74767Y-54339D01* X-74799Y-54351D01* X-74900D01* X-75359Y-54541D01* X-75549Y-55000D01* X-75359Y-55459D01* X-74900Y-55649D01* X-74799D01* X-74767Y-55661D01* X-74732Y-55678D01* X-74694Y-55701D01* X-74652Y-55730D01* X-74609Y-55767D01* X-74563Y-55811D01* X-74506Y-55874D01* X-74496Y-55879D01* X-74492Y-55889D01* X-74419Y-55919D01* X-74236Y-56102D01* X-73759Y-56300D01* X-73241D01* X-72764Y-56102D01* X-72398Y-55736D01* X-72200Y-55259D01* Y-54741D01* X-72398Y-54264D01* X-72764Y-53898D01* X-73092Y-53762D01* Y-53238D01* X-72764Y-53102D01* X-72398Y-52736D01* X-72200Y-52259D01* Y-51741D01* X-72398Y-51264D01* X-72764Y-50898D01* X-73241Y-50700D01* D02* G37* G36* X8759Y-49800D02* X8241D01* X7764Y-49998D01* X7398Y-50364D01* X7200Y-50841D01* Y-51359D01* X7398Y-51836D01* X7517Y-51955D01* X7519Y-51972D01* X7519Y-51981D01* X7521Y-51986D01* X7523Y-51993D01* X7530Y-52007D01* X7536Y-52023D01* X7543Y-52054D01* X7549Y-52090D01* X7566Y-52308D01* X7567Y-52394D01* X7582Y-52430D01* Y-53500D01* X7652Y-53851D01* X7851Y-54149D01* X9751Y-56049D01* X10049Y-56248D01* X10400Y-56318D01* X15935D01* X15951Y-56327D01* X15980Y-56321D01* X16007Y-56333D01* X16051Y-56334D01* X16076Y-56336D01* X16094Y-56339D01* X16103Y-56342D01* X16104Y-56342D01* X16111Y-56347D01* X16115Y-56348D01* X16126Y-56374D01* X16214Y-56411D01* X16320Y-56517D01* X16761Y-56700D01* X17239D01* X17680Y-56517D01* X17786Y-56411D01* X17874Y-56374D01* X17885Y-56348D01* X17889Y-56347D01* X17896Y-56342D01* X17897Y-56342D01* X17906Y-56339D01* X17923Y-56336D01* X17949Y-56334D01* X17993Y-56333D01* X18020Y-56321D01* X18049Y-56327D01* X18065Y-56318D01* X22637D01* X22783Y-56567D01* X22875Y-56818D01* X22700Y-57241D01* Y-57759D01* X22898Y-58236D01* X23264Y-58602D01* X23741Y-58800D01* X24259D01* X24736Y-58602D01* X25102Y-58236D01* X25107Y-58224D01* X25128Y-58209D01* X25179Y-58132D01* X25221Y-58077D01* X25261Y-58032D01* X25297Y-57998D01* X25328Y-57973D01* X25355Y-57956D01* X25370Y-57949D01* X27616D01* Y-58684D01* X30384D01* Y-55916D01* X27616D01* Y-56651D01* X25448D01* X25308Y-56189D01* X25313Y-56142D01* X25314Y-56139D01* X25449Y-56049D01* X27009Y-54489D01* X27045Y-54475D01* X27112Y-54409D01* X27166Y-54360D01* X27269Y-54275D01* X27302Y-54251D01* X27329Y-54235D01* X27344Y-54227D01* X27360Y-54223D01* X27366Y-54218D01* X27370Y-54217D01* X27377Y-54210D01* X27390Y-54200D01* X27559D01* X28036Y-54002D01* X28177Y-53861D01* X28188Y-53858D01* X28200Y-53855D01* X28221Y-53851D01* X28502Y-53834D01* X28592Y-53833D01* X28628Y-53818D01* X28700D01* X29051Y-53748D01* X29272Y-53600D01* X29759D01* X30236Y-53402D01* X30602Y-53036D01* X30800Y-52559D01* Y-52041D01* X30602Y-51564D01* X30236Y-51198D01* X29759Y-51000D01* X29241D01* X28764Y-51198D01* X28454Y-51508D01* X28362Y-51572D01* X27800Y-51700D01* X27559Y-51600D01* X27041D01* X26564Y-51798D01* X26198Y-52164D01* X26000Y-52641D01* Y-52810D01* X25990Y-52823D01* X25983Y-52830D01* X25982Y-52834D01* X25977Y-52840D01* X25973Y-52856D01* X25965Y-52871D01* X25949Y-52898D01* X25928Y-52927D01* X25785Y-53094D01* X25725Y-53155D01* X25711Y-53191D01* X24420Y-54482D01* X17855D01* X17818Y-54467D01* X17766Y-54467D01* X17759Y-54470D01* X17751Y-54468D01* X17653Y-54472D01* X17239Y-54300D01* X16761D01* X16342Y-54474D01* X16260Y-54468D01* X16247Y-54473D01* X16234Y-54467D01* X16182Y-54467D01* X16145Y-54482D01* X10780D01* X9418Y-53120D01* Y-52430D01* X9433Y-52394D01* X9434Y-52301D01* X9437Y-52227D01* X9450Y-52094D01* X9457Y-52054D01* X9464Y-52023D01* X9470Y-52007D01* X9477Y-51993D01* X9479Y-51986D01* X9481Y-51981D01* X9481Y-51972D01* X9483Y-51955D01* X9602Y-51836D01* X9800Y-51359D01* Y-50841D01* X9602Y-50364D01* X9236Y-49998D01* X8759Y-49800D01* D02* G37* G36* X2759Y-46200D02* X2241D01* X1764Y-46398D01* X1398Y-46764D01* X1200Y-47241D01* Y-47425D01* X1167Y-47499D01* X1166Y-47574D01* X1160Y-47631D01* X1151Y-47683D01* X1139Y-47730D01* X1125Y-47774D01* X1107Y-47815D01* X1086Y-47854D01* X1061Y-47891D01* X1033Y-47927D01* X988Y-47976D01* X972Y-48018D01* X-505Y-49495D01* X-659Y-49727D01* X-714Y-50000D01* Y-57219D01* X-733Y-57260D01* X-736Y-57362D01* X-745Y-57444D01* X-760Y-57522D01* X-781Y-57595D01* X-806Y-57666D01* X-838Y-57734D01* X-876Y-57801D01* X-920Y-57866D01* X-972Y-57930D01* X-1041Y-58005D01* X-1057Y-58048D01* X-2067Y-59058D01* X-2084Y-59061D01* X-2099Y-59082D01* X-2103Y-59083D01* X-2107Y-59085D01* X-2113Y-59086D01* X-2124Y-59093D01* X-2129Y-59095D01* X-2146Y-59100D01* X-2172Y-59105D01* X-2203Y-59110D01* X-2308Y-59118D01* X-2370Y-59119D01* X-2430Y-59145D01* X-2672Y-59193D01* X-2934Y-59369D01* X-3110Y-59631D01* X-3171Y-59941D01* Y-64931D01* X-3300Y-65241D01* Y-65759D01* X-3102Y-66236D01* X-2736Y-66602D01* X-2259Y-66800D01* X-1741D01* X-1264Y-66602D01* X-898Y-66236D01* X-700Y-65759D01* Y-65241D01* X-769Y-65075D01* X-766Y-65059D01* Y-59941D01* X-793Y-59802D01* X-48Y-59057D01* X-5Y-59041D01* X70Y-58972D01* X134Y-58920D01* X199Y-58876D01* X266Y-58838D01* X334Y-58806D01* X405Y-58780D01* X478Y-58760D01* X556Y-58745D01* X638Y-58736D01* X740Y-58733D01* X929Y-58816D01* X1046Y-59339D01* X1003Y-59369D01* X827Y-59631D01* X766Y-59941D01* Y-62007D01* X668Y-62241D01* Y-62759D01* X766Y-62993D01* Y-65059D01* X827Y-65369D01* X1003Y-65631D01* X1265Y-65807D01* X1575Y-65868D01* X2362D01* X2672Y-65807D01* X2934Y-65631D01* X3110Y-65369D01* X3171Y-65059D01* Y-62993D01* X3269Y-62759D01* Y-62241D01* X3171Y-62007D01* Y-59941D01* X3110Y-59631D01* X2934Y-59369D01* X2702Y-59214D01* X2697Y-59177D01* X2961Y-58714D01* X20204D01* X22695Y-61205D01* X22927Y-61359D01* X23200Y-61414D01* X27616D01* Y-62084D01* X30384D01* Y-59316D01* X27616D01* Y-59986D01* X23496D01* X21005Y-57495D01* X20773Y-57341D01* X20500Y-57286D01* X1081D01* X882Y-57118D01* X714Y-56919D01* Y-50296D01* X1982Y-49028D01* X2024Y-49012D01* X2073Y-48967D01* X2109Y-48939D01* X2146Y-48914D01* X2185Y-48893D01* X2226Y-48875D01* X2270Y-48860D01* X2317Y-48849D01* X2369Y-48840D01* X2426Y-48835D01* X2501Y-48833D01* X2575Y-48800D01* X2759D01* X3236Y-48602D01* X3602Y-48236D01* X3800Y-47759D01* Y-47241D01* X3602Y-46764D01* X3236Y-46398D01* X2759Y-46200D01* D02* G37* %LPD*% G36* X25000Y71500D02* Y61500D01* X23000Y59500D01* X5000D01* X4567Y59933D01* Y80000D01* X16500Y80000D01* X25000Y71500D01* D02* G37* G36* X2637Y59663D02* X2640Y59659D01* X2645Y59651D01* X2653Y59642D01* X2692Y59598D01* X2757Y59533D01* X2016Y59425D01* X1989Y59449D01* X1958Y59470D01* X1923Y59489D01* X1885Y59506D01* X1842Y59520D01* X1796Y59531D01* X1747Y59540D01* X1693Y59547D01* X1575Y59552D01* X2637Y59666D01* X2637Y59663D01* D02* G37* G36* X-1300D02* X-1297Y59659D01* X-1292Y59651D01* X-1285Y59642D01* X-1245Y59598D01* X-1181Y59533D01* X-1921Y59425D01* X-1948Y59449D01* X-1979Y59470D01* X-2014Y59489D01* X-2052Y59506D01* X-2095Y59520D01* X-2141Y59531D01* X-2190Y59540D01* X-2244Y59547D01* X-2362Y59552D01* X-1300Y59666D01* X-1300Y59663D01* D02* G37* G36* X27395Y55134D02* X27461Y55080D01* X27529Y55034D01* X27598Y54994D01* X27669Y54961D01* X27742Y54935D01* X27816Y54916D01* X27893Y54903D01* X27970Y54897D01* X28050Y54899D01* X27201Y54050D01* X27202Y54130D01* X27197Y54207D01* X27184Y54284D01* X27165Y54358D01* X27139Y54431D01* X27106Y54502D01* X27066Y54571D01* X27020Y54639D01* X26966Y54705D01* X26906Y54770D01* X27330Y55194D01* X27395Y55134D01* D02* G37* G36* X31392Y54837D02* X31456Y54787D01* X31524Y54742D01* X31595Y54704D01* X31670Y54671D01* X31747Y54645D01* X31828Y54624D01* X31913Y54610D01* X32000Y54602D01* X32091Y54600D01* X31200Y53709D01* X31198Y53800D01* X31190Y53887D01* X31176Y53971D01* X31155Y54053D01* X31129Y54130D01* X31096Y54205D01* X31058Y54276D01* X31013Y54344D01* X30963Y54408D01* X30906Y54470D01* X31330Y54894D01* X31392Y54837D01* D02* G37* G36* X-9647Y-21707D02* X-9887Y-21978D01* X-10112Y-22296D01* X-10323Y-22662D01* X-10519Y-23076D01* X-10701Y-23538D01* X-10869Y-24047D01* X-11160Y-25208D01* X-11284Y-25861D01* X-11394Y-26561D01* X-15915Y-22039D01* X-15215Y-21930D01* X-13401Y-21514D01* X-12892Y-21347D01* X-12431Y-21165D01* X-12017Y-20968D01* X-11651Y-20758D01* X-11332Y-20533D01* X-11061Y-20293D01* X-9647Y-21707D01* D02* G37* G36* X-59563Y-33640D02* X-59560Y-33674D01* X-59553Y-33703D01* X-59544Y-33729D01* X-59531Y-33751D01* X-59517Y-33768D01* X-59500Y-33782D01* X-59480Y-33792D01* X-59457Y-33798D01* X-59432Y-33800D01* Y-34200D01* X-59457Y-34202D01* X-59480Y-34208D01* X-59500Y-34218D01* X-59517Y-34232D01* X-59531Y-34249D01* X-59544Y-34271D01* X-59553Y-34297D01* X-59560Y-34326D01* X-59563Y-34360D01* X-59565Y-34398D01* Y-33602D01* X-59563Y-33640D01* D02* G37* G36* X-60005Y-37091D02* X-60017Y-37111D01* X-60020Y-37129D01* X-60015Y-37144D01* X-60002Y-37157D01* X-59980Y-37169D01* X-59951Y-37178D01* X-59914Y-37184D01* X-59869Y-37189D01* X-59816Y-37191D01* X-60920Y-37166D01* X-60869Y-37166D01* X-60776Y-37160D01* X-60734Y-37154D01* X-60695Y-37145D01* X-60660Y-37134D01* X-60628Y-37121D01* X-60600Y-37106D01* X-60574Y-37089D01* X-60552Y-37069D01* X-59986D01* X-60005Y-37091D01* D02* G37* G36* X-39709Y-42500D02* X-39826Y-42501D01* X-40038Y-42519D01* X-40134Y-42536D01* X-40223Y-42558D01* X-40305Y-42585D01* X-40379Y-42617D01* X-40447Y-42654D01* X-40507Y-42696D01* X-40561Y-42744D01* X-40844Y-42461D01* X-40796Y-42407D01* X-40754Y-42347D01* X-40717Y-42279D01* X-40685Y-42205D01* X-40658Y-42123D01* X-40636Y-42034D01* X-40619Y-41938D01* X-40608Y-41836D01* X-40601Y-41726D01* X-40600Y-41609D01* X-39709Y-42500D01* D02* G37* G36* X-38343Y-44330D02* X-38426Y-44248D01* X-38590Y-44111D01* X-38669Y-44055D01* X-38747Y-44008D01* X-38824Y-43969D01* X-38899Y-43939D01* X-38974Y-43917D01* X-39046Y-43904D01* X-39118Y-43900D01* Y-43500D01* X-39046Y-43496D01* X-38974Y-43483D01* X-38899Y-43461D01* X-38824Y-43431D01* X-38747Y-43393D01* X-38669Y-43345D01* X-38590Y-43289D01* X-38509Y-43225D01* X-38426Y-43152D01* X-38343Y-43070D01* Y-44330D01* D02* G37* G36* X-4500Y-59500D02* Y-65000D01* Y-75500D01* X-6000Y-77000D01* X-15000Y-77000D01* Y-73340D01* X-20896D01* X-22000Y-72236D01* Y-69500D01* Y-64000D01* X-15000D01* Y-58500D01* X-5500D01* X-4500Y-59500D01* D02* G37* G36* X-59577Y29098D02* X-59566Y29090D01* X-59550Y29084D01* X-59528Y29078D01* X-59500Y29074D01* X-59466Y29070D01* X-59381Y29065D01* X-59273Y29063D01* Y28063D01* X-59330Y28063D01* X-59500Y28052D01* X-59528Y28048D01* X-59550Y28042D01* X-59566Y28036D01* X-59577Y28029D01* X-59581Y28020D01* Y29106D01* X-59577Y29098D01* D02* G37* G36* X-57086Y28095D02* X-56894Y27930D01* X-56837Y27890D01* X-56784Y27857D01* X-56735Y27832D01* X-56689Y27814D01* X-56647Y27803D01* X-56609Y27800D01* X-57500Y26909D01* X-57503Y26947D01* X-57514Y26989D01* X-57532Y27035D01* X-57557Y27084D01* X-57590Y27137D01* X-57630Y27194D01* X-57733Y27318D01* X-57795Y27386D01* X-57864Y27457D01* X-57157Y28164D01* X-57086Y28095D01* D02* G37* G36* X-59577Y21224D02* X-59566Y21216D01* X-59550Y21210D01* X-59528Y21204D01* X-59500Y21200D01* X-59466Y21196D01* X-59381Y21191D01* X-59273Y21189D01* Y20189D01* X-59330Y20188D01* X-59500Y20178D01* X-59528Y20174D01* X-59550Y20168D01* X-59566Y20162D01* X-59577Y20154D01* X-59581Y20146D01* Y21232D01* X-59577Y21224D01* D02* G37* G36* X-61595Y19915D02* X-61680Y19906D01* X-61755Y19890D01* X-61820Y19868D01* X-61875Y19840D01* X-61920Y19806D01* X-61955Y19765D01* X-61980Y19718D01* X-61995Y19665D01* X-62000Y19606D01* X-63000D01* X-63005Y19665D01* X-63020Y19718D01* X-63045Y19765D01* X-63080Y19806D01* X-63125Y19840D01* X-63180Y19868D01* X-63245Y19890D01* X-63320Y19906D01* X-63405Y19915D01* X-63500Y19918D01* X-61500D01* X-61595Y19915D01* D02* G37* G36* X-53030Y16354D02* X-53015Y16322D01* X-52994Y16293D01* X-52968Y16269D01* X-52937Y16248D01* X-52900Y16230D01* X-52859Y16217D01* X-52812Y16208D01* X-52760Y16202D01* X-52702Y16200D01* Y15200D01* X-52760Y15198D01* X-52812Y15192D01* X-52859Y15183D01* X-52900Y15169D01* X-52937Y15152D01* X-52968Y15132D01* X-52994Y15107D01* X-53015Y15078D01* X-53030Y15046D01* X-53040Y15010D01* Y16390D01* X-53030Y16354D01* D02* G37* G36* X-54960Y15010D02* X-54970Y15046D01* X-54985Y15078D01* X-55006Y15107D01* X-55032Y15132D01* X-55063Y15152D01* X-55099Y15169D01* X-55141Y15183D01* X-55188Y15192D01* X-55240Y15198D01* X-55298Y15200D01* Y16200D01* X-55240Y16202D01* X-55188Y16208D01* X-55141Y16217D01* X-55099Y16230D01* X-55063Y16248D01* X-55032Y16269D01* X-55006Y16293D01* X-54985Y16322D01* X-54970Y16354D01* X-54960Y16390D01* Y15010D01* D02* G37* G36* X-41685Y14702D02* X-41691Y14797D01* X-41703Y14882D01* X-41722Y14956D01* X-41747Y15021D01* X-41780Y15076D01* X-41818Y15120D01* X-41864Y15155D01* X-41916Y15180D01* X-41975Y15195D01* X-42040Y15200D01* Y16200D01* X-41979Y16205D01* X-41925Y16220D01* X-41877Y16245D01* X-41835Y16280D01* X-41801Y16325D01* X-41773Y16380D01* X-41752Y16445D01* X-41737Y16520D01* X-41730Y16605D01* X-41728Y16700D01* X-41685Y14702D01* D02* G37* G36* X-46870Y16605D02* X-46863Y16520D01* X-46848Y16445D01* X-46827Y16380D01* X-46799Y16325D01* X-46765Y16280D01* X-46723Y16245D01* X-46676Y16220D01* X-46621Y16205D01* X-46560Y16200D01* Y15200D01* X-46625Y15195D01* X-46684Y15180D01* X-46736Y15155D01* X-46782Y15120D01* X-46821Y15076D01* X-46853Y15021D01* X-46878Y14956D01* X-46897Y14882D01* X-46909Y14797D01* X-46915Y14702D01* X-46872Y16700D01* X-46870Y16605D01* D02* G37* G36* X-49166Y14702D02* X-49171Y14797D01* X-49183Y14882D01* X-49202Y14956D01* X-49228Y15021D01* X-49260Y15076D01* X-49299Y15120D01* X-49344Y15155D01* X-49396Y15180D01* X-49455Y15195D01* X-49521Y15200D01* Y16200D01* X-49459Y16205D01* X-49405Y16220D01* X-49357Y16245D01* X-49316Y16280D01* X-49281Y16325D01* X-49253Y16380D01* X-49232Y16445D01* X-49218Y16520D01* X-49210Y16605D01* X-49209Y16700D01* X-49166Y14702D01* D02* G37* G36* X-59599Y2874D02* X-59581Y2661D01* X-59564Y2566D01* X-59542Y2477D01* X-59515Y2395D01* X-59483Y2321D01* X-59446Y2253D01* X-59404Y2193D01* X-59356Y2139D01* X-59639Y1856D01* X-59693Y1904D01* X-59753Y1946D01* X-59821Y1983D01* X-59895Y2015D01* X-59977Y2042D01* X-60066Y2064D01* X-60162Y2081D01* X-60264Y2092D01* X-60374Y2099D01* X-60491Y2100D01* X-59600Y2991D01* X-59599Y2874D01* D02* G37* G36* X-59574Y-123D02* X-59580Y-163D01* X-59582Y-202D01* X-59579Y-240D01* X-59572Y-278D01* X-59560Y-314D01* X-59543Y-350D01* X-59522Y-384D01* X-59497Y-418D01* X-59467Y-450D01* X-59632Y-851D01* X-59649Y-835D01* X-59666Y-822D01* X-59682Y-812D01* X-59698Y-805D01* X-59714Y-800D01* X-59730Y-798D01* X-59746Y-798D01* X-59762Y-802D01* X-59777Y-807D01* X-59792Y-816D01* X-59564Y-82D01* X-59574Y-123D01* D02* G37* G36* X-65419Y-8480D02* X-65423Y-8472D01* X-65434Y-8464D01* X-65450Y-8458D01* X-65472Y-8452D01* X-65500Y-8448D01* X-65534Y-8444D01* X-65619Y-8439D01* X-65727Y-8437D01* Y-7437D01* X-65670Y-7437D01* X-65500Y-7426D01* X-65472Y-7422D01* X-65450Y-7416D01* X-65434Y-7410D01* X-65423Y-7402D01* X-65419Y-7394D01* Y-8480D01* D02* G37* G36* X-51696Y-9754D02* X-51683Y-9827D01* X-51661Y-9901D01* X-51631Y-9976D01* X-51592Y-10053D01* X-51545Y-10131D01* X-51489Y-10210D01* X-51425Y-10291D01* X-51352Y-10374D01* X-51270Y-10457D01* X-52530D01* X-52448Y-10374D01* X-52311Y-10210D01* X-52255Y-10131D01* X-52207Y-10053D01* X-52169Y-9976D01* X-52139Y-9901D01* X-52117Y-9827D01* X-52104Y-9754D01* X-52100Y-9683D01* X-51700D01* X-51696Y-9754D01* D02* G37* G36* X-42095Y-11272D02* X-42117Y-11309D01* X-42136Y-11354D01* X-42153Y-11407D01* X-42167Y-11468D01* X-42179Y-11536D01* X-42195Y-11697D01* X-42199Y-11789D01* X-42200Y-11888D01* X-43200D01* X-43201Y-11789D01* X-43221Y-11536D01* X-43233Y-11468D01* X-43247Y-11407D01* X-43264Y-11354D01* X-43283Y-11309D01* X-43305Y-11272D01* X-43330Y-11243D01* X-42070D01* X-42095Y-11272D01* D02* G37* G36* X-59577Y-11339D02* X-59566Y-11347D01* X-59550Y-11353D01* X-59528Y-11359D01* X-59500Y-11363D01* X-59466Y-11367D01* X-59381Y-11372D01* X-59273Y-11374D01* Y-12374D01* X-59330Y-12375D01* X-59500Y-12385D01* X-59528Y-12389D01* X-59550Y-12395D01* X-59566Y-12401D01* X-59577Y-12409D01* X-59581Y-12417D01* Y-11331D01* X-59577Y-11339D01* D02* G37* G36* X-55695Y-13772D02* X-55717Y-13809D01* X-55736Y-13854D01* X-55753Y-13907D01* X-55768Y-13968D01* X-55779Y-14036D01* X-55795Y-14197D01* X-55799Y-14289D01* X-55800Y-14388D01* X-56800D01* X-56801Y-14289D01* X-56821Y-14036D01* X-56832Y-13968D01* X-56847Y-13907D01* X-56864Y-13854D01* X-56883Y-13809D01* X-56905Y-13772D01* X-56930Y-13743D01* X-55670D01* X-55695Y-13772D01* D02* G37* G36* X-50256Y-13639D02* X-50304Y-13693D01* X-50346Y-13753D01* X-50383Y-13821D01* X-50415Y-13895D01* X-50442Y-13977D01* X-50464Y-14066D01* X-50481Y-14161D01* X-50492Y-14264D01* X-50499Y-14374D01* X-50500Y-14491D01* X-51391Y-13600D01* X-51274Y-13599D01* X-51061Y-13581D01* X-50966Y-13564D01* X-50877Y-13542D01* X-50795Y-13515D01* X-50721Y-13483D01* X-50653Y-13446D01* X-50593Y-13404D01* X-50539Y-13356D01* X-50256Y-13639D01* D02* G37* G36* X-23143Y-19930D02* X-23172Y-19905D01* X-23209Y-19883D01* X-23254Y-19864D01* X-23307Y-19847D01* X-23368Y-19832D01* X-23436Y-19821D01* X-23597Y-19805D01* X-23689Y-19801D01* X-23788Y-19800D01* Y-18800D01* X-23689Y-18799D01* X-23436Y-18779D01* X-23368Y-18767D01* X-23307Y-18753D01* X-23254Y-18736D01* X-23209Y-18717D01* X-23172Y-18695D01* X-23143Y-18670D01* Y-19930D01* D02* G37* G36* X-51485Y-20806D02* X-51244Y-21014D01* X-51196Y-21046D01* X-51152Y-21072D01* X-51113Y-21089D01* X-51079Y-21099D01* X-51050Y-21101D01* X-51899Y-21950D01* X-51901Y-21921D01* X-51911Y-21887D01* X-51928Y-21848D01* X-51954Y-21804D01* X-51986Y-21756D01* X-52027Y-21703D01* X-52130Y-21582D01* X-52264Y-21443D01* X-51557Y-20735D01* X-51485Y-20806D01* D02* G37* G36* X73362Y5203D02* X73328Y5199D01* X73298Y5193D01* X73272Y5184D01* X73250Y5172D01* X73232Y5157D01* X73218Y5140D01* X73208Y5120D01* X73202Y5098D01* X73200Y5073D01* X72800D01* X72798Y5098D01* X72792Y5120D01* X72782Y5140D01* X72768Y5157D01* X72750Y5172D01* X72728Y5184D01* X72702Y5193D01* X72672Y5199D01* X72638Y5203D01* X72600Y5205D01* X73400D01* X73362Y5203D01* D02* G37* G36* X73204Y4846D02* X73217Y4773D01* X73239Y4699D01* X73269Y4624D01* X73308Y4547D01* X73355Y4469D01* X73411Y4389D01* X73475Y4309D01* X73548Y4226D01* X73630Y4143D01* X72370D01* X72452Y4226D01* X72589Y4389D01* X72645Y4469D01* X72693Y4547D01* X72731Y4624D01* X72761Y4699D01* X72783Y4773D01* X72796Y4846D01* X72800Y4918D01* X73200D01* X73204Y4846D01* D02* G37* G36* X73202Y-5098D02* X73208Y-5120D01* X73218Y-5140D01* X73232Y-5157D01* X73250Y-5172D01* X73272Y-5184D01* X73298Y-5193D01* X73328Y-5199D01* X73362Y-5203D01* X73400Y-5205D01* X72600D01* X72638Y-5203D01* X72672Y-5199D01* X72702Y-5193D01* X72728Y-5184D01* X72750Y-5172D01* X72768Y-5157D01* X72782Y-5140D01* X72792Y-5120D01* X72798Y-5098D01* X72800Y-5073D01* X73200D01* X73202Y-5098D01* D02* G37* G36* X73548Y-5426D02* X73411Y-5590D01* X73355Y-5669D01* X73308Y-5747D01* X73269Y-5824D01* X73239Y-5899D01* X73217Y-5973D01* X73204Y-6046D01* X73200Y-6117D01* X72800D01* X72796Y-6046D01* X72783Y-5973D01* X72761Y-5899D01* X72731Y-5824D01* X72693Y-5747D01* X72645Y-5669D01* X72589Y-5590D01* X72525Y-5509D01* X72452Y-5426D01* X72370Y-5343D01* X73630D01* X73548Y-5426D01* D02* G37* G36* X3234Y-19652D02* X3262Y-20151D01* X3269Y-20162D01* X1199D01* X1205Y-20151D01* X1211Y-20129D01* X1217Y-20096D01* X1221Y-20051D01* X1231Y-19846D01* X1234Y-19538D01* X3234D01* X3234Y-19652D01* D02* G37* G36* X21230Y-21530D02* X21251Y-23614D01* X21226Y-23516D01* X21192Y-23429D01* X21150Y-23352D01* X21098Y-23285D01* X21038Y-23228D01* X20969Y-23182D01* X20891Y-23146D01* X20804Y-23121D01* X20708Y-23105D01* X20604Y-23100D01* Y-22000D01* Y-21100D01* Y-20000D01* X20705Y-19994D01* X20798Y-19975D01* X20883Y-19945D01* X20959Y-19902D01* X21028Y-19847D01* X21089Y-19779D01* X21141Y-19699D01* X21186Y-19607D01* X21223Y-19502D01* X21251Y-19386D01* X21230Y-21530D01* D02* G37* G36* X69313Y-28517D02* X69322Y-28536D01* X69341Y-28563D01* X69359Y-28600D01* X69378Y-28656D01* X69406Y-28721D01* X69433Y-28785D01* X69452Y-28869D01* X69507Y-29054D01* X69554Y-29276D01* X69591Y-29516D01* X69600Y-29784D01* Y-29858D01* X69591Y-29914D01* Y-29979D01* X69572Y-30053D01* X69544Y-30219D01* X69489Y-30413D01* X69415Y-30608D01* X69304Y-30783D01* X69230Y-30876D01* X69156Y-30950D01* X69147D01* X69137Y-30968D01* X69110Y-30987D01* X69073Y-31005D01* X69026Y-31033D01* X68971Y-31070D01* X68906Y-31107D01* X68832Y-31135D01* X68749Y-31172D01* X68656Y-31209D01* X68444Y-31274D01* X68194Y-31311D01* X67907Y-31329D01* X64189D01* Y-32633D01* X63291D01* Y-30016D01* X68074D01* X68083D01* X68092D01* X68148Y-30006D01* X68231Y-29988D01* X68314Y-29942D01* X68407Y-29877D01* X68453Y-29831D01* X68490Y-29775D01* X68518Y-29710D01* X68545Y-29636D01* X68555Y-29553D01* X68564Y-29451D01* Y-29396D01* X68555Y-29340D01* X68545Y-29257D01* X68536Y-29165D01* X68508Y-29054D01* X68481Y-28943D01* X68434Y-28822D01* X69313Y-28508D01* Y-28517D01* D02* G37* G36* X66890Y-33457D02* Y-34289D01* X66085D01* Y-34308D01* X66094Y-34354D01* X66122Y-34419D01* X66150Y-34502D01* X66205Y-34604D01* X66270Y-34715D01* X66362Y-34826D01* X66473Y-34937D01* X66492Y-34946D01* X66529Y-34983D01* X66603Y-35038D01* X66705Y-35103D01* X66825Y-35168D01* X66973Y-35242D01* X67130Y-35316D01* X67315Y-35381D01* X68582D01* Y-34502D01* X69461D01* Y-37277D01* X68582D01* Y-36694D01* X65918D01* Y-37277D01* X65049D01* Y-35686D01* X66039Y-35455D01* X66029D01* X66011Y-35445D01* X65983Y-35427D01* X65946Y-35408D01* X65844Y-35362D01* X65715Y-35288D01* X65576Y-35205D01* X65437Y-35103D01* X65308Y-34983D01* X65188Y-34853D01* X65178Y-34835D01* X65141Y-34789D01* X65095Y-34705D01* X65049Y-34604D01* X64993Y-34465D01* X64956Y-34317D01* X64919Y-34141D01* X64910Y-33947D01* Y-33882D01* X64919Y-33799D01* X64929Y-33706D01* X64947Y-33595D01* X64966Y-33466D01* X65003Y-33346D01* X65049Y-33216D01* X66890Y-33457D01* D02* G37* G36* X69211Y-38341D02* X69230Y-38359D01* X69248Y-38396D01* X69276Y-38442D01* X69304Y-38498D01* X69332Y-38572D01* X69369Y-38655D01* X69406Y-38748D01* X69443Y-38849D01* X69480Y-38960D01* X69535Y-39210D01* X69581Y-39488D01* X69600Y-39784D01* Y-39867D01* X69591Y-39922D01* Y-39996D01* X69581Y-40080D01* X69544Y-40265D01* X69498Y-40468D01* X69424Y-40681D01* X69313Y-40884D01* X69248Y-40977D01* X69174Y-41060D01* X69165D01* X69156Y-41079D01* X69128Y-41097D01* X69091Y-41125D01* X69054Y-41162D01* X68999Y-41199D01* X68934Y-41236D01* X68860Y-41273D01* X68684Y-41347D01* X68481Y-41421D01* X68240Y-41467D01* X68101Y-41476D01* X67963Y-41486D01* X65955D01* Y-42411D01* X65049D01* Y-41486D01* X64087D01* X63930Y-40172D01* X65049D01* Y-38748D01* X65955Y-38886D01* Y-40172D01* X67963D01* X67981D01* X68018D01* X68074Y-40163D01* X68138Y-40154D01* X68222Y-40135D01* X68296Y-40107D01* X68370Y-40070D01* X68425Y-40024D01* X68434Y-40015D01* X68444Y-39996D01* X68471Y-39959D01* X68490Y-39904D01* X68518Y-39839D01* X68545Y-39756D01* X68555Y-39663D01* X68564Y-39543D01* Y-39469D01* X68555Y-39395D01* X68536Y-39293D01* X68518Y-39173D01* X68481Y-39044D01* X68434Y-38905D01* X68370Y-38766D01* X69211Y-38331D01* Y-38341D01* D02* G37* G36* X68832Y-42993D02* X68860Y-43021D01* X68897Y-43058D01* X68943Y-43123D01* X68999Y-43197D01* X69073Y-43289D01* X69137Y-43391D01* X69211Y-43511D01* X69285Y-43650D01* X69350Y-43798D01* X69415Y-43955D01* X69480Y-44131D01* X69526Y-44307D01* X69563Y-44501D01* X69591Y-44714D01* X69600Y-44927D01* Y-45001D01* X69591Y-45056D01* Y-45130D01* X69581Y-45213D01* X69572Y-45297D01* X69554Y-45398D01* X69517Y-45620D01* X69452Y-45852D01* X69369Y-46092D01* X69258Y-46323D01* Y-46333D01* X69239Y-46351D01* X69221Y-46379D01* X69193Y-46425D01* X69110Y-46527D01* X68999Y-46666D01* X68851Y-46814D01* X68675Y-46971D01* X68462Y-47128D01* X68222Y-47267D01* X68212D01* X68194Y-47285D01* X68148Y-47295D01* X68101Y-47322D01* X68037Y-47350D01* X67953Y-47378D01* X67861Y-47406D01* X67759Y-47433D01* X67639Y-47470D01* X67519Y-47498D01* X67380Y-47526D01* X67232Y-47554D01* X66917Y-47591D01* X66566Y-47609D01* X66557D01* X66520D01* X66473D01* X66409Y-47600D01* X66325D01* X66233Y-47591D01* X66131Y-47581D01* X66011Y-47563D01* X65761Y-47526D01* X65493Y-47461D01* X65215Y-47378D01* X64947Y-47258D01* X64938D01* X64919Y-47239D01* X64882Y-47221D01* X64836Y-47193D01* X64781Y-47156D01* X64716Y-47110D01* X64559Y-47008D01* X64392Y-46869D01* X64216Y-46703D01* X64059Y-46508D01* X63911Y-46296D01* Y-46286D01* X63893Y-46268D01* X63874Y-46231D01* X63856Y-46185D01* X63828Y-46129D01* X63800Y-46055D01* X63763Y-45981D01* X63726Y-45889D01* X63661Y-45685D01* X63606Y-45445D01* X63569Y-45186D01* X63550Y-44908D01* Y-44751D01* X63560Y-44695D01* X63569Y-44557D01* X63587Y-44390D01* X63615Y-44224D01* X63652Y-44048D01* X63708Y-43881D01* Y-43872D01* X63717Y-43863D01* X63735Y-43807D01* X63772Y-43724D01* X63828Y-43613D01* X63893Y-43493D01* X63976Y-43354D01* X64068Y-43206D01* X64179Y-43058D01* X64984Y-43724D01* X64975Y-43733D01* X64966Y-43752D01* X64947Y-43780D01* X64919Y-43817D01* X64882Y-43863D01* X64845Y-43928D01* X64771Y-44066D01* X64697Y-44242D01* X64623Y-44436D01* X64577Y-44649D01* X64559Y-44760D01* Y-44936D01* X64568Y-44982D01* X64586Y-45084D01* X64623Y-45223D01* X64679Y-45371D01* X64771Y-45528D01* X64827Y-45611D01* X64892Y-45685D01* X64966Y-45759D01* X65058Y-45833D01* X65067D01* X65086Y-45852D01* X65114Y-45870D01* X65151Y-45889D01* X65206Y-45916D01* X65271Y-45944D01* X65345Y-45981D01* X65437Y-46009D01* X65530Y-46046D01* X65641Y-46083D01* X65770Y-46111D01* X65909Y-46138D01* X66048Y-46157D01* X66214Y-46175D01* X66381Y-46194D01* X66566D01* X66575D01* X66612D01* X66658D01* X66732Y-46185D01* X66816D01* X66908Y-46175D01* X67019Y-46166D01* X67130Y-46148D01* X67371Y-46101D01* X67620Y-46046D01* X67861Y-45953D01* X67963Y-45898D01* X68064Y-45833D01* X68074D01* X68083Y-45815D01* X68138Y-45768D01* X68212Y-45685D01* X68305Y-45574D01* X68397Y-45435D01* X68471Y-45269D01* X68527Y-45075D01* X68536Y-44964D01* X68545Y-44853D01* Y-44788D01* X68536Y-44714D01* X68527Y-44631D01* X68518Y-44529D01* X68490Y-44418D01* X68462Y-44307D01* X68416Y-44196D01* X68407Y-44187D01* X68388Y-44150D01* X68360Y-44094D01* X68323Y-44020D01* X68268Y-43928D01* X68203Y-43826D01* X68120Y-43715D01* X68037Y-43604D01* X68823Y-42984D01* X68832Y-42993D01* D02* G37* G36* X-77899Y-52311D02* X-77879Y-52564D01* X-77868Y-52632D01* X-77853Y-52693D01* X-77836Y-52746D01* X-77817Y-52791D01* X-77795Y-52828D01* X-77770Y-52857D01* X-79030D01* X-79005Y-52828D01* X-78983Y-52791D01* X-78964Y-52746D01* X-78947Y-52693D01* X-78932Y-52632D01* X-78921Y-52564D01* X-78905Y-52403D01* X-78901Y-52311D01* X-78900Y-52212D01* X-77900D01* X-77899Y-52311D01* D02* G37* G36* X-77795Y-54172D02* X-77817Y-54209D01* X-77836Y-54254D01* X-77853Y-54307D01* X-77868Y-54368D01* X-77879Y-54436D01* X-77895Y-54597D01* X-77899Y-54689D01* X-77900Y-54788D01* X-78900D01* X-78901Y-54689D01* X-78921Y-54436D01* X-78932Y-54368D01* X-78947Y-54307D01* X-78964Y-54254D01* X-78983Y-54209D01* X-79005Y-54172D01* X-79030Y-54143D01* X-77770D01* X-77795Y-54172D01* D02* G37* G36* X-74185Y-55583D02* X-74251Y-55510D01* X-74318Y-55445D01* X-74387Y-55388D01* X-74456Y-55338D01* X-74527Y-55296D01* X-74599Y-55261D01* X-74673Y-55234D01* X-74747Y-55215D01* X-74823Y-55204D01* X-74900Y-55200D01* Y-54800D01* X-74823Y-54796D01* X-74747Y-54785D01* X-74673Y-54765D01* X-74599Y-54739D01* X-74527Y-54704D01* X-74456Y-54662D01* X-74387Y-54612D01* X-74318Y-54555D01* X-74251Y-54489D01* X-74185Y-54417D01* Y-55583D01* D02* G37* G36* X9105Y-51772D02* X9083Y-51809D01* X9064Y-51854D01* X9047Y-51907D01* X9032Y-51968D01* X9021Y-52036D01* X9005Y-52197D01* X9001Y-52289D01* X9000Y-52388D01* X8000D01* X7999Y-52289D01* X7979Y-52036D01* X7967Y-51968D01* X7953Y-51907D01* X7936Y-51854D01* X7917Y-51809D01* X7895Y-51772D01* X7870Y-51743D01* X9130D01* X9105Y-51772D01* D02* G37* G36* X28004Y-52333D02* X28032Y-52347D01* X28069Y-52359D01* X28116Y-52370D01* X28172Y-52379D01* X28311Y-52393D01* X28486Y-52399D01* X28588Y-52400D01* Y-53400D01* X28486Y-53401D01* X28172Y-53421D01* X28116Y-53430D01* X28069Y-53441D01* X28032Y-53453D01* X28004Y-53468D01* X27985Y-53483D01* Y-52317D01* X28004Y-52333D01* D02* G37* G36* X27291Y-53800D02* X27253Y-53803D01* X27211Y-53814D01* X27165Y-53832D01* X27116Y-53857D01* X27063Y-53890D01* X27006Y-53930D01* X26882Y-54033D01* X26814Y-54095D01* X26743Y-54164D01* X26035Y-53457D01* X26105Y-53386D01* X26270Y-53194D01* X26310Y-53137D01* X26343Y-53084D01* X26368Y-53035D01* X26386Y-52989D01* X26397Y-52947D01* X26400Y-52909D01* X27291Y-53800D01* D02* G37* G36* X17980Y-55900D02* X17922Y-55902D01* X17868Y-55907D01* X17817Y-55915D01* X17771Y-55927D01* X17727Y-55942D01* X17688Y-55961D01* X17652Y-55982D01* X17621Y-56008D01* X17593Y-56036D01* X17568Y-56068D01* Y-54932D01* X17567Y-54926D01* X17571Y-54920D01* X17582Y-54916D01* X17598Y-54912D01* X17620Y-54908D01* X17649Y-54905D01* X17769Y-54900D01* X17820Y-54900D01* X17980Y-55900D01* D02* G37* G36* X16231Y-54900D02* X16402Y-54912D01* X16418Y-54916D01* X16429Y-54920D01* X16433Y-54926D01* X16432Y-54932D01* Y-56068D01* X16408Y-56036D01* X16379Y-56008D01* X16348Y-55982D01* X16312Y-55961D01* X16273Y-55942D01* X16229Y-55927D01* X16183Y-55915D01* X16132Y-55907D01* X16078Y-55902D01* X16020Y-55900D01* X16180Y-54900D01* X16231Y-54900D01* D02* G37* G36* X28028Y-57700D02* X28027Y-57662D01* X28023Y-57628D01* X28017Y-57598D01* X28009Y-57572D01* X27998Y-57550D01* X27985Y-57532D01* X27969Y-57518D01* X27951Y-57508D01* X27931Y-57502D01* X27908Y-57500D01* Y-57100D01* X27931Y-57098D01* X27951Y-57092D01* X27969Y-57082D01* X27985Y-57068D01* X27998Y-57050D01* X28009Y-57028D01* X28017Y-57002D01* X28023Y-56972D01* X28027Y-56938D01* X28028Y-56900D01* Y-57700D01* D02* G37* G36* X24595Y-56811D02* X24891Y-56972D01* X24979Y-57011D01* X25141Y-57068D01* X25214Y-57086D01* X25283Y-57096D01* X25346Y-57100D01* X25440Y-57500D01* X25364Y-57505D01* X25290Y-57519D01* X25218Y-57542D01* X25148Y-57575D01* X25080Y-57618D01* X25014Y-57670D01* X24949Y-57731D01* X24886Y-57802D01* X24826Y-57882D01* X24767Y-57971D01* X24487Y-56743D01* X24595Y-56811D01* D02* G37* G36* X2491Y-48400D02* X2400Y-48402D01* X2313Y-48410D01* X2228Y-48425D01* X2148Y-48445D01* X2070Y-48471D01* X1995Y-48504D01* X1924Y-48542D01* X1856Y-48587D01* X1792Y-48637D01* X1730Y-48694D01* X1306Y-48270D01* X1363Y-48208D01* X1413Y-48144D01* X1458Y-48076D01* X1496Y-48005D01* X1529Y-47930D01* X1555Y-47853D01* X1575Y-47771D01* X1590Y-47687D01* X1598Y-47600D01* X1600Y-47509D01* X2491Y-48400D01* D02* G37* G36* X306Y-57214D02* X324Y-57316D01* X354Y-57406D01* X396Y-57484D01* X450Y-57550D01* X516Y-57604D01* X594Y-57646D01* X684Y-57676D01* X786Y-57694D01* X900Y-57700D01* X724Y-58300D01* X606Y-58304D01* X491Y-58317D01* X380Y-58338D01* X272Y-58368D01* X168Y-58406D01* X68Y-58453D01* X-30Y-58508D01* X-123Y-58571D01* X-213Y-58644D01* X-300Y-58724D01* X-724Y-58300D01* X-644Y-58213D01* X-571Y-58123D01* X-508Y-58030D01* X-453Y-57933D01* X-406Y-57832D01* X-368Y-57728D01* X-338Y-57620D01* X-317Y-57509D01* X-304Y-57394D01* X-300Y-57276D01* X300Y-57100D01* X306Y-57214D01* D02* G37* G36* X-1149Y-59573D02* X-1173Y-59598D01* X-1192Y-59623D01* X-1209Y-59646D01* X-1221Y-59669D01* X-1229Y-59692D01* X-1234Y-59713D01* X-1235Y-59734D01* X-1232Y-59754D01* X-1226Y-59773D01* X-1215Y-59792D01* X-2362Y-59552D01* X-2288Y-59550D01* X-2154Y-59540D01* X-2095Y-59531D01* X-2041Y-59520D01* X-1992Y-59506D01* X-1948Y-59489D01* X-1910Y-59470D01* X-1877Y-59449D01* X-1849Y-59425D01* X-1149Y-59573D01* D02* G37* G36* X28028Y-61300D02* X28026Y-61243D01* X28021Y-61192D01* X28012Y-61147D01* X27999Y-61108D01* X27983Y-61075D01* X27963Y-61048D01* X27940Y-61027D01* X27913Y-61012D01* X27882Y-61003D01* X27848Y-61000D01* Y-60400D01* X27882Y-60397D01* X27913Y-60388D01* X27940Y-60373D01* X27963Y-60352D01* X27983Y-60325D01* X27999Y-60292D01* X28012Y-60253D01* X28021Y-60208D01* X28026Y-60157D01* X28028Y-60100D01* Y-61300D01* D02* G37* D10* X-69500Y-17100D02* Y-10500D01* X-74700Y-5300D02* X-69500Y-10500D01* X-74700Y-5300D02* Y400D01* X-58263Y28563D02* X-56600Y26900D01* X-62500Y28563D02* X-58263D01* X-52000Y-21000D02* X-51000Y-22000D01* X-60200Y-21000D02* X-52000D01* X-62000Y-19200D02* X-60200Y-21000D01* X-67400Y-19200D02* X-62000D01* X-69500Y-17100D02* X-67400Y-19200D01* X-73300Y-700D02* X-56900Y15700D01* X-54000D02* X-41154D01* X-73300Y-4600D02* Y-700D01* Y-4600D02* X-69963Y-7937D01* X-62500D01* X-74700Y400D02* X-62500Y12600D01* X-56900Y15700D02* X-54000D01* X-62500Y12600D02* Y20689D01* X-42700Y-13700D02* Y-10600D01* X-46100Y-17100D02* X-42700Y-13700D01* X-51900Y-17100D02* X-46100D01* X-53900Y-15100D02* X-51900Y-17100D01* X-53900Y-15100D02* Y-12100D01* X-55300Y-10700D02* X-53900Y-12100D01* X-58000Y-10700D02* X-55300D01* X-59174Y-11874D02* X-58000Y-10700D01* X-62500Y-11874D02* X-59174D01* X-56300Y-14800D02* Y-13100D01* X-51800Y-19300D02* X-22500D01* X-56300Y-14800D02* X-51800Y-19300D01* X-54989Y20689D02* X-54000Y19700D01* X-62500Y20689D02* X-54989D01* X28700Y-52900D02* X29500Y-52100D01* X10400Y-55400D02* X24800D01* X8500Y-53500D02* Y-51100D01* X-78400Y-53500D02* Y-52000D01* Y-55000D02* Y-53500D01* X27300Y-52900D02* X28700D01* X24800Y-55400D02* X27300Y-52900D01* X8500Y-53500D02* X10400Y-55400D01* D11* X-62500Y-63D02* X-60137D01* X-51900Y-8300D01* Y-11100D02* Y-8300D01* X-51400Y-14500D02* X-49700Y-12800D01* Y-9100D01* X-58500Y-300D02* X-49700Y-9100D01* X-58500Y-300D02* Y1000D01* X-60500Y3000D02* X-58500Y1000D01* X-74900Y-55000D02* X-73500D01* X-74500Y-52000D02* X-73500D01* X-56000Y-34000D02* X-47200Y-42800D01* X-40900D02* X-39700Y-41600D01* X-47200Y-42800D02* X-40900D01* X-58100Y-34900D02* X-56231D01* X-47431Y-43700D01* X-63000Y-34000D02* X-56000D01* X-47431Y-43700D02* X-37700D01* X-61137Y-37937D02* X-58100Y-34900D01* X73000Y-7200D02* Y-4700D01* Y3500D02* Y7200D01* X-63000Y-37937D02* X-61137D01* X24000Y-57500D02* X24200Y-57300D01* X29000D01* D14* X6600Y57700D02* X9300Y55000D01* X27100D01* X28100Y54000D01* X228Y57700D02* X6600D01* X3165Y58700D02* X7200D01* X9741Y56159D02* X29641D01* X7200Y58700D02* X9741Y56159D01* X1969Y59897D02* X3165Y58700D01* X-1969Y59897D02* Y62500D01* Y59897D02* X228Y57700D01* X1969Y59897D02* Y62500D01* X29641Y56159D02* X32100Y53700D01* X23200Y-60700D02* X29000D01* X20500Y-58000D02* X23200Y-60700D01* X0Y-58000D02* X20500D01* X0Y-50000D02* X2500Y-47500D01* X0Y-58000D02* Y-50000D01* X-1969Y-59969D02* X0Y-58000D01* X-1969Y-62500D02* Y-59969D01* D16* X-62500Y20689D02* D03* Y40374D02* D03* Y36437D02* D03* Y28563D02* D03* Y32500D02* D03* Y24626D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D17* X-77000Y16000D02* D03* Y45063D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D18* X-54000Y19700D02* D03* Y15700D02* D03* D19* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D50* X240Y-38640D02* Y-33540D01* X28500Y-16400D02* Y-14501D01* Y-21200D02* Y-18700D01* Y-16400D01* X16734Y-21000D02* X21953D01* X21854Y-22100D02* X22454Y-21500D01* X19800Y-22100D02* X21854D01* X21953Y-21000D02* X22454Y-21500D01* X18000Y-16300D02* X18800D01* X15800D02* X18000D01* X4200D02* X15800D01* X18800D02* X19900Y-17400D01* X2234Y-18266D02* X4200Y-16300D01* X2234Y-21000D02* Y-18266D01* X-15354Y-26000D02* X-10354Y-21000D01* X-8234D01* D51* X-18000Y-68000D02* Y-54000D01* Y-68000D02* X-17000Y-69000D01* X-22500Y52100D02* X-19500D01* X-23000D02* X-22500D01* X-19500D02* X1500D01* X-27000Y48100D02* X-23000Y52100D01* X1500D02* X4500D01* X-27000Y-5400D02* Y48100D01* X-15354Y-38854D02* Y-26000D01* X-25700Y-49200D02* X-15354Y-38854D01* X-32600Y-49200D02* X-25700D01* X32000Y63800D02* X43000Y52800D01* X22200Y63800D02* X32000D01* X43000Y-67000D02* Y52800D01* X-15354Y-26000D02* Y-17046D01* X-27000Y-5400D02* X-15354Y-17046D01* X43000Y-70000D02* Y-67000D01* Y-73000D02* Y-70000D01* D52* X-17000Y-69000D02* X-14532Y-71469D01* Y-77000D02* Y-71469D01* D53* X-4200Y42100D02* Y45100D01* Y39100D02* Y42100D01* Y37300D02* Y39100D01* X-19500Y41000D02* Y44000D01* Y38000D02* Y41000D01* Y36733D02* Y38000D01* X-6000Y35500D02* X-4200Y37300D01* X-18267Y35500D02* X-6000D01* X-19500Y36733D02* X-18267Y35500D01* X16867Y35000D02* X19300Y37433D01* Y38700D01* X7000Y35000D02* X16867D01* X4300Y37700D02* X7000Y35000D01* X19300Y41700D02* Y44700D01* Y38700D02* Y41700D01* X4300Y42100D02* Y45100D01* Y39100D02* Y42100D01* Y37700D02* Y39100D01* D54* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* D55* X8500Y-24100D02* D03* X5500D02* D03* X-44300Y26900D02* D03* X-44100Y31200D02* D03* X-53700Y30300D02* D03* X-53800Y23500D02* D03* X-57000D02* D03* X-56300Y12500D02* D03* X-59000Y17500D02* D03* X-56600Y26900D02* D03* X-59900Y40300D02* D03* X-60000Y36400D02* D03* X-59900Y32500D02* D03* X-42700Y-10600D02* D03* X73000Y-4700D02* D03* Y3500D02* D03* X50000Y-7200D02* D03* Y-4000D02* D03* X28100Y54000D02* D03* X-2000Y-65500D02* D03* X2500Y-47500D02* D03* X1969Y-62500D02* D03* X-28000Y-63000D02* D03* X-73500Y-55000D02* D03* Y-52000D02* D03* X-71366Y-45734D02* D03* X-70800Y-3100D02* D03* X-66600Y-2500D02* D03* X0Y43500D02* D03* X15800Y300D02* D03* X0Y37000D02* D03* X-51000Y-22000D02* D03* X-67500Y100D02* D03* X-62100Y-42600D02* D03* X-78400Y-53500D02* D03* X-77000Y13000D02* D03* Y24000D02* D03* Y30000D02* D03* Y36000D02* D03* Y-21000D02* D03* Y-37500D02* D03* Y-34000D02* D03* Y-30500D02* D03* X-57500Y5000D02* D03* X-60500Y3000D02* D03* X-41000Y2500D02* D03* X-45000Y5000D02* D03* X-41000D02* D03* X-33500Y5500D02* D03* Y2000D02* D03* X-34500Y-59000D02* D03* X-37500D02* D03* X27000Y-49500D02* D03* X32500Y-37500D02* D03* Y-34500D02* D03* Y-31500D02* D03* Y-28500D02* D03* Y-25500D02* D03* Y-22500D02* D03* Y-19500D02* D03* Y-16500D02* D03* X15500Y-13000D02* D03* X18000D02* D03* X20500D02* D03* X23000D02* D03* X25500D02* D03* Y-15500D02* D03* X23000D02* D03* X-13500Y5500D02* D03* Y9500D02* D03* X-11000D02* D03* Y5500D02* D03* X-56500Y-42500D02* D03* X-58500Y-41000D02* D03* X-57000Y-37000D02* D03* X-3500Y-38000D02* D03* Y-35000D02* D03* X-5000Y-23000D02* D03* Y-20000D02* D03* X8500Y-21000D02* D03* X5500D02* D03* X17000Y-35000D02* D03* Y-32500D02* D03* X-2000Y-41500D02* D03* X-5000D02* D03* X-28500Y-43000D02* D03* X-27000Y-40500D02* D03* Y-38000D02* D03* X-23500D02* D03* X-66500Y-15500D02* D03* X-66000Y-22000D02* D03* X-55500Y-28000D02* D03* Y-25500D02* D03* Y-23000D02* D03* X-38000Y-17000D02* D03* X-40500D02* D03* X-35000Y-16500D02* D03* X-54300Y-41000D02* D03* X-52100Y-42400D02* D03* X10800Y7500D02* D03* X-11400Y-7500D02* D03* X-18300Y-4200D02* D03* X-31800Y-12300D02* D03* X-10600Y2500D02* D03* X-51400Y-14500D02* D03* X32100Y53700D02* D03* X29300Y-4100D02* D03* Y-7200D02* D03* X-35300Y-8400D02* D03* X19800Y-22100D02* D03* X22454Y-21500D02* D03* X8500Y-51100D02* D03* X-12500Y-45800D02* D03* X-10800Y-44100D02* D03* X-11500Y-31900D02* D03* X-51500Y-31600D02* D03* X-51900Y-11100D02* D03* X28500Y-21200D02* D03* Y-18700D02* D03* Y-16400D02* D03* X300Y-38700D02* D03* Y-36200D02* D03* X240Y-33540D02* D03* X18000Y-16300D02* D03* X15800D02* D03* X19900Y-17400D02* D03* X-39700Y-41600D02* D03* X-37700Y-43700D02* D03* X24000Y-57500D02* D03* X27300Y-52900D02* D03* X-56300Y-13100D02* D03* X-22500Y-19300D02* D03* X-40547Y-33553D02* D03* X-36600Y-33400D02* D03* X-34620Y-41200D02* D03* X-38600Y-31800D02* D03* X-50400Y4800D02* D03* X-54300D02* D03* X-52358Y658D02* D03* X-56500Y700D02* D03* X14500Y31000D02* D03* X9500D02* D03* X-9500D02* D03* X-14500D02* D03* X-55784Y-19016D02* D03* X29500Y-52300D02* D03* D56* X4500Y52100D02* D03* Y55100D02* D03* X32000Y16000D02* D03* X29000D02* D03* X26000D02* D03* X23000D02* D03* X20000D02* D03* X17000D02* D03* X14000D02* D03* X11000D02* D03* X8000D02* D03* X5000D02* D03* X2000D02* D03* X-1000D02* D03* X-4000D02* D03* X-7000D02* D03* X-10000D02* D03* X-13000D02* D03* X-16000D02* D03* X-19000D02* D03* X73000Y-15000D02* D03* X76000D02* D03* X70000D02* D03* Y-12000D02* D03* X73000D02* D03* X76000D02* D03* X73000Y-18000D02* D03* X76000D02* D03* X70000D02* D03* X73000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X76000D02* D03* Y15000D02* D03* Y12000D02* D03* X70000Y15000D02* D03* Y12000D02* D03* Y18000D02* D03* X-30500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-27500D02* D03* Y63000D02* D03* Y60000D02* D03* X-33500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-36500D02* D03* Y63000D02* D03* Y60000D02* D03* X-42500Y63000D02* D03* Y60000D02* D03* Y66000D02* D03* X-39592Y-21500D02* D03* X-36546D02* D03* X-33500D02* D03* Y-24500D02* D03* X-36546D02* D03* X-39592Y-24566D02* D03* Y-27500D02* D03* X-36546D02* D03* X-33500D02* D03* X-19500Y41000D02* D03* Y38000D02* D03* Y44000D02* D03* X33100Y44400D02* D03* Y41400D02* D03* Y38400D02* D03* Y35400D02* D03* Y32400D02* D03* Y29400D02* D03* X-34200Y52000D02* D03* Y49000D02* D03* Y46000D02* D03* Y43000D02* D03* Y40000D02* D03* Y37000D02* D03* X19300Y44700D02* D03* Y41700D02* D03* Y38700D02* D03* X4300Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X-4200Y45100D02* D03* Y42100D02* D03* Y39100D02* D03* X12000Y43000D02* D03* X9000D02* D03* X15000D02* D03* Y40000D02* D03* X12000D02* D03* X9000D02* D03* X12000Y46000D02* D03* X9000D02* D03* X15000D02* D03* X-9000D02* D03* X-15000D02* D03* X-12000D02* D03* X-15000Y40000D02* D03* X-12000D02* D03* X-9000D02* D03* Y43000D02* D03* X-15000D02* D03* X-12000D02* D03* X1500Y52100D02* D03* Y55100D02* D03* X-22500Y52100D02* D03* X-19500D02* D03* X-22500Y55100D02* D03* X-19500D02* D03* X43000Y-67000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-70000D02* D03* X40000D02* D03* X46000D02* D03* X43000Y-73000D02* D03* X40000D02* D03* X46000D02* D03* X34000Y-78500D02* D03* X31000D02* D03* X37000D02* D03* X25000D02* D03* X22000D02* D03* X28000D02* D03* X19000Y-75500D02* D03* Y-78500D02* D03* X-14000Y-72000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-69000D02* D03* X-20000D02* D03* X-17000D02* D03* X-14000Y-66000D02* D03* X-20000D02* D03* X-17000D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GTO ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=65535* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* %ADD10C,0.01000*% %ADD11C,0.00400*% %ADD12C,0.00100*% %ADD13C,0.00787*% %ADD14C,0.00600*% %ADD15C,0.00500*% G36* X-53050Y17050D02* X-53400D01* Y18350D01* X-53050D01* Y17050D01* D02* G37* G36* X-54600Y18350D02* Y17050D01* X-54950Y17050D01* Y18350D01* X-54600Y18350D01* D02* G37* G36* X11100Y-20650D02* X12500D01* Y-21350D01* X11100D01* Y-22550D01* X10500D01* Y-19450D01* X11100D01* Y-20650D01* D02* G37* G36* X-3400D02* X-2000D01* Y-21350D01* X-3400D01* Y-22550D01* X-4000D01* Y-19450D01* X-3400D01* Y-20650D01* D02* G37* G36* X-12500Y-41000D02* X-14000D01* Y-38000D01* X-12500D01* Y-41000D01* D02* G37* G36* X-22000D02* X-23500D01* Y-38000D01* X-22000D01* Y-41000D01* D02* G37* G36* X-25100Y-41300D02* X-29900D01* Y-40800D01* X-25100D01* Y-41300D01* D02* G37* G36* X-31600D02* X-36400D01* Y-40800D01* X-31600D01* Y-41300D01* D02* G37* G36* X-25100Y-43200D02* X-29900D01* Y-42700D01* X-25100D01* Y-43200D01* D02* G37* G36* X-31600D02* X-36400D01* Y-42700D01* X-31600D01* Y-43200D01* D02* G37* G36* X-25100Y-55800D02* X-29900D01* Y-55300D01* X-25100D01* Y-55800D01* D02* G37* G36* X-31600D02* X-36400D01* Y-55300D01* X-31600D01* Y-55800D01* D02* G37* G36* X-25100Y-57700D02* X-29900D01* Y-57200D01* X-25100D01* Y-57700D01* D02* G37* G36* X-31600D02* X-36400D01* Y-57200D01* X-31600D01* Y-57700D01* D02* G37* G36* X-46734Y-23396D02* X-46697Y-23400D01* X-46652Y-23403D01* X-46608Y-23411D01* X-46556Y-23418D01* X-46445Y-23444D01* X-46390Y-23463D01* X-46330Y-23481D01* X-46275Y-23507D01* X-46220Y-23537D01* X-46164Y-23570D01* X-46116Y-23607D01* X-46112Y-23611D01* X-46105Y-23618D01* X-46094Y-23629D01* X-46075Y-23648D01* X-46057Y-23670D01* X-46038Y-23696D01* X-46012Y-23725D01* X-45990Y-23762D01* X-45968Y-23803D01* X-45946Y-23847D01* X-45924Y-23896D01* X-45905Y-23951D01* X-45886Y-24006D01* X-45875Y-24069D01* X-45868Y-24136D01* X-45864Y-24206D01* Y-24243D01* X-45868Y-24269D01* X-45872Y-24303D01* X-45879Y-24340D01* X-45886Y-24384D01* X-45894Y-24428D01* X-45924Y-24524D01* X-45946Y-24573D01* X-45968Y-24624D01* X-45998Y-24672D01* X-46031Y-24721D01* X-46068Y-24769D01* X-46112Y-24809D01* X-46116Y-24813D01* X-46123Y-24817D01* X-46138Y-24828D01* X-46157Y-24843D01* X-46183Y-24858D01* X-46216Y-24876D01* X-46249Y-24894D01* X-46290Y-24913D01* X-46338Y-24935D01* X-46390Y-24954D01* X-46445Y-24972D01* X-46508Y-24987D01* X-46575Y-25002D01* X-46645Y-25013D01* X-46719Y-25017D01* X-46800Y-25020D01* X-46804D01* X-46819D01* X-46841D01* X-46871Y-25017D01* X-46908Y-25013D01* X-46948Y-25009D01* X-46993Y-25002D01* X-47045Y-24994D01* X-47152Y-24969D01* X-47207Y-24950D01* X-47263Y-24928D01* X-47322Y-24906D01* X-47374Y-24876D01* X-47429Y-24843D01* X-47477Y-24806D01* X-47481Y-24802D01* X-47489Y-24795D01* X-47500Y-24783D01* X-47518Y-24765D01* X-47537Y-24743D01* X-47559Y-24717D01* X-47585Y-24684D01* X-47607Y-24647D01* X-47633Y-24606D01* X-47655Y-24562D01* X-47677Y-24513D01* X-47696Y-24458D01* X-47714Y-24402D01* X-47725Y-24340D01* X-47733Y-24273D01* X-47736Y-24203D01* Y-24166D01* X-47733Y-24140D01* X-47729Y-24106D01* X-47722Y-24069D01* X-47714Y-24025D01* X-47703Y-23981D01* X-47692Y-23936D01* X-47674Y-23884D01* X-47655Y-23836D01* X-47629Y-23785D01* X-47600Y-23736D01* X-47566Y-23688D01* X-47526Y-23644D01* X-47481Y-23603D01* X-47477Y-23599D01* X-47470Y-23596D01* X-47455Y-23585D01* X-47437Y-23570D01* X-47411Y-23555D01* X-47378Y-23537D01* X-47344Y-23518D01* X-47304Y-23496D01* X-47256Y-23477D01* X-47204Y-23459D01* X-47148Y-23440D01* X-47089Y-23426D01* X-47026Y-23411D01* X-46956Y-23400D01* X-46882Y-23396D01* X-46804Y-23392D01* X-46800D01* X-46786D01* X-46763D01* X-46734Y-23396D01* D02* G37* G36* X-48236Y-25938D02* X-48210Y-25945D01* X-48180Y-25953D01* X-48151Y-25967D01* X-48118Y-25986D01* X-48088Y-26012D01* X-48084Y-26016D01* X-48077Y-26027D01* X-48066Y-26041D01* X-48051Y-26064D01* X-48036Y-26093D01* X-48025Y-26127D01* X-48018Y-26167D01* X-48014Y-26208D01* Y-26226D01* X-48018Y-26249D01* X-48025Y-26278D01* X-48033Y-26308D01* X-48044Y-26341D01* X-48062Y-26375D01* X-48088Y-26404D01* X-48092Y-26408D01* X-48103Y-26415D01* X-48118Y-26426D01* X-48140Y-26441D01* X-48166Y-26456D01* X-48199Y-26467D01* X-48236Y-26474D01* X-48277Y-26478D01* X-48280D01* X-48295D01* X-48317Y-26474D01* X-48343Y-26467D01* X-48369Y-26460D01* X-48403Y-26449D01* X-48432Y-26430D01* X-48462Y-26404D01* X-48465Y-26400D01* X-48473Y-26389D01* X-48484Y-26375D01* X-48499Y-26349D01* X-48513Y-26323D01* X-48525Y-26289D01* X-48532Y-26249D01* X-48536Y-26208D01* Y-26186D01* X-48532Y-26164D01* X-48525Y-26138D01* X-48517Y-26108D01* X-48502Y-26075D01* X-48484Y-26041D01* X-48458Y-26012D01* X-48454Y-26008D01* X-48443Y-26001D01* X-48428Y-25986D01* X-48406Y-25971D01* X-48380Y-25960D01* X-48351Y-25945D01* X-48314Y-25938D01* X-48277Y-25934D01* X-48273D01* X-48258D01* X-48236Y-25938D01* D02* G37* G36* X-45905Y-26867D02* X-46234D01* Y-26352D01* X-47359D01* Y-26852D01* X-47692D01* Y-25923D01* X-46234D01* Y-25449D01* X-45905D01* Y-26867D01* D02* G37* G36* X-47015Y-27325D02* X-46971D01* X-46919Y-27333D01* X-46856Y-27336D01* X-46789Y-27348D01* X-46715Y-27359D01* X-46641Y-27377D01* X-46564Y-27396D01* X-46490Y-27422D01* X-46412Y-27451D01* X-46342Y-27488D01* X-46275Y-27529D01* X-46212Y-27577D01* X-46160Y-27632D01* X-46157Y-27636D01* X-46149Y-27647D01* X-46138Y-27662D01* X-46120Y-27688D01* X-46101Y-27718D01* X-46079Y-27755D01* X-46057Y-27795D01* X-46035Y-27843D01* X-46009Y-27899D01* X-45986Y-27954D01* X-45964Y-28021D01* X-45946Y-28088D01* X-45927Y-28162D01* X-45916Y-28239D01* X-45909Y-28321D01* X-45905Y-28406D01* Y-28990D01* X-48221D01* Y-28391D01* X-48217Y-28358D01* X-48214Y-28313D01* X-48206Y-28265D01* X-48199Y-28210D01* X-48192Y-28150D01* X-48162Y-28021D01* X-48140Y-27954D01* X-48118Y-27888D01* X-48088Y-27821D01* X-48055Y-27755D01* X-48018Y-27692D01* X-47973Y-27632D01* X-47970Y-27629D01* X-47962Y-27618D01* X-47947Y-27603D01* X-47925Y-27584D01* X-47896Y-27558D01* X-47862Y-27533D01* X-47818Y-27507D01* X-47770Y-27477D01* X-47714Y-27448D01* X-47648Y-27422D01* X-47574Y-27392D01* X-47492Y-27370D01* X-47403Y-27351D01* X-47304Y-27336D01* X-47196Y-27325D01* X-47078Y-27322D01* X-47071D01* X-47048D01* X-47015Y-27325D01* D02* G37* G36* X-45905Y-31773D02* X-46829Y-32491D01* X-45905D01* Y-32923D01* X-48380D01* X-48428Y-32491D01* X-46928D01* X-47692Y-31821D01* Y-31347D01* X-46889Y-32043D01* X-45905Y-31277D01* Y-31773D01* D02* G37* G36* X-45975Y-33490D02* X-45972Y-33493D01* X-45964Y-33508D01* X-45957Y-33523D01* X-45949Y-33541D01* X-45942Y-33564D01* X-45920Y-33623D01* X-45901Y-33693D01* X-45883Y-33775D01* X-45868Y-33863D01* X-45864Y-33963D01* Y-33989D01* X-45868Y-34008D01* Y-34030D01* X-45872Y-34056D01* X-45883Y-34119D01* X-45901Y-34185D01* X-45927Y-34255D01* X-45964Y-34326D01* X-46016Y-34389D01* X-46023Y-34396D01* X-46046Y-34415D01* X-46079Y-34437D01* X-46127Y-34466D01* X-46186Y-34496D01* X-46260Y-34518D01* X-46342Y-34537D01* X-46438Y-34544D01* X-48055D01* Y-35062D01* X-48384D01* Y-34111D01* X-46408D01* X-46404D01* X-46401D01* X-46379Y-34108D01* X-46349Y-34100D01* X-46312Y-34082D01* X-46275Y-34056D01* X-46260Y-34037D01* X-46245Y-34015D01* X-46234Y-33989D01* X-46223Y-33956D01* X-46220Y-33922D01* X-46216Y-33882D01* Y-33860D01* X-46220Y-33834D01* X-46223Y-33800D01* X-46231Y-33756D01* X-46242Y-33708D01* X-46257Y-33652D01* X-46279Y-33590D01* X-45975Y-33486D01* Y-33490D01* D02* G37* G36* X-46153Y-35284D02* X-46145Y-35295D01* X-46131Y-35310D01* X-46112Y-35332D01* X-46090Y-35362D01* X-46064Y-35395D01* X-46038Y-35436D01* X-46012Y-35484D01* X-45983Y-35532D01* X-45957Y-35591D01* X-45931Y-35650D01* X-45909Y-35717D01* X-45890Y-35787D01* X-45875Y-35861D01* X-45868Y-35939D01* X-45864Y-36020D01* Y-36050D01* X-45868Y-36072D01* Y-36098D01* X-45872Y-36128D01* X-45875Y-36161D01* X-45883Y-36198D01* X-45898Y-36283D01* X-45924Y-36372D01* X-45957Y-36464D01* X-46001Y-36557D01* Y-36561D01* X-46009Y-36568D01* X-46016Y-36579D01* X-46027Y-36598D01* X-46060Y-36638D01* X-46105Y-36690D01* X-46164Y-36753D01* X-46234Y-36812D01* X-46316Y-36871D01* X-46412Y-36927D01* X-46416D01* X-46423Y-36934D01* X-46442Y-36938D01* X-46460Y-36949D01* X-46486Y-36957D01* X-46519Y-36968D01* X-46556Y-36982D01* X-46597Y-36994D01* X-46641Y-37005D01* X-46693Y-37019D01* X-46745Y-37031D01* X-46804Y-37038D01* X-46930Y-37053D01* X-47067Y-37060D01* X-47071D01* X-47085D01* X-47104D01* X-47130Y-37056D01* X-47163D01* X-47200Y-37053D01* X-47241Y-37049D01* X-47289Y-37042D01* X-47389Y-37027D01* X-47496Y-37001D01* X-47607Y-36968D01* X-47711Y-36923D01* X-47714D01* X-47722Y-36916D01* X-47736Y-36908D01* X-47755Y-36897D01* X-47777Y-36882D01* X-47803Y-36868D01* X-47862Y-36823D01* X-47929Y-36772D01* X-47999Y-36709D01* X-48062Y-36635D01* X-48121Y-36549D01* Y-36546D01* X-48129Y-36538D01* X-48136Y-36527D01* X-48144Y-36509D01* X-48155Y-36487D01* X-48166Y-36461D01* X-48180Y-36427D01* X-48195Y-36394D01* X-48221Y-36316D01* X-48243Y-36228D01* X-48258Y-36128D01* X-48266Y-36024D01* Y-35987D01* X-48262Y-35943D01* X-48258Y-35891D01* X-48251Y-35832D01* X-48240Y-35765D01* X-48225Y-35699D01* X-48206Y-35636D01* Y-35632D01* X-48203Y-35628D01* X-48195Y-35606D01* X-48180Y-35576D01* X-48162Y-35536D01* X-48136Y-35484D01* X-48099Y-35432D01* X-48058Y-35373D01* X-48010Y-35314D01* X-47740Y-35539D01* X-47744Y-35543D01* X-47748Y-35550D01* X-47755Y-35562D01* X-47766Y-35576D01* X-47777Y-35599D01* X-47792Y-35621D01* X-47825Y-35680D01* X-47855Y-35750D01* X-47881Y-35832D01* X-47899Y-35917D01* X-47907Y-35965D01* Y-36035D01* X-47903Y-36054D01* X-47899Y-36076D01* X-47896Y-36098D01* X-47881Y-36161D01* X-47859Y-36228D01* X-47822Y-36298D01* X-47799Y-36335D01* X-47774Y-36368D01* X-47744Y-36402D01* X-47707Y-36435D01* X-47703D01* X-47696Y-36442D01* X-47685Y-36450D01* X-47670Y-36461D01* X-47648Y-36472D01* X-47622Y-36487D01* X-47589Y-36501D01* X-47552Y-36516D01* X-47511Y-36531D01* X-47463Y-36546D01* X-47411Y-36561D01* X-47352Y-36572D01* X-47289Y-36583D01* X-47222Y-36590D01* X-47148Y-36594D01* X-47067Y-36598D01* X-47063D01* X-47048D01* X-47026D01* X-46997Y-36594D01* X-46959D01* X-46919Y-36590D01* X-46874Y-36583D01* X-46823Y-36575D01* X-46719Y-36557D01* X-46615Y-36527D01* X-46516Y-36487D01* X-46471Y-36464D01* X-46430Y-36435D01* X-46427Y-36431D01* X-46423Y-36427D01* X-46401Y-36405D01* X-46367Y-36368D01* X-46330Y-36320D01* X-46294Y-36257D01* X-46260Y-36183D01* X-46238Y-36102D01* X-46234Y-36054D01* X-46231Y-36006D01* Y-35980D01* X-46234Y-35950D01* X-46238Y-35913D01* X-46242Y-35872D01* X-46253Y-35828D01* X-46264Y-35784D01* X-46279Y-35739D01* X-46282Y-35735D01* X-46286Y-35721D01* X-46301Y-35699D01* X-46316Y-35665D01* X-46338Y-35628D01* X-46360Y-35587D01* X-46393Y-35539D01* X-46427Y-35491D01* X-46157Y-35280D01* X-46153Y-35284D01* D02* G37* G36* X-45905Y-39883D02* X-46116Y-39902D01* X-46112Y-39905D01* X-46097Y-39909D01* X-46075Y-39920D01* X-46049Y-39939D01* X-46020Y-39961D01* X-45986Y-39990D01* X-45957Y-40031D01* X-45931Y-40076D01* X-45927Y-40083D01* X-45920Y-40098D01* X-45909Y-40124D01* X-45898Y-40161D01* X-45886Y-40201D01* X-45875Y-40249D01* X-45868Y-40305D01* X-45864Y-40361D01* Y-40394D01* X-45868Y-40416D01* X-45872Y-40446D01* X-45879Y-40479D01* X-45898Y-40553D01* X-45927Y-40638D01* X-45946Y-40679D01* X-45972Y-40723D01* X-46001Y-40764D01* X-46035Y-40804D01* X-46071Y-40841D01* X-46116Y-40875D01* X-46120D01* X-46127Y-40882D01* X-46142Y-40890D01* X-46160Y-40901D01* X-46186Y-40916D01* X-46220Y-40930D01* X-46253Y-40945D01* X-46297Y-40960D01* X-46342Y-40975D01* X-46393Y-40990D01* X-46449Y-41004D01* X-46512Y-41019D01* X-46578Y-41030D01* X-46645Y-41038D01* X-46723Y-41041D01* X-46800Y-41045D01* X-46804D01* X-46812D01* X-46826D01* X-46845D01* X-46871Y-41041D01* X-46897D01* X-46963Y-41034D01* X-47037Y-41023D01* X-47119Y-41008D01* X-47200Y-40990D01* X-47281Y-40960D01* X-47285D01* X-47293Y-40956D01* X-47304Y-40953D01* X-47315Y-40945D01* X-47355Y-40923D01* X-47403Y-40897D01* X-47455Y-40864D01* X-47511Y-40819D01* X-47566Y-40767D01* X-47614Y-40712D01* Y-40708D01* X-47618Y-40705D01* X-47633Y-40682D01* X-47651Y-40649D01* X-47677Y-40605D01* X-47699Y-40545D01* X-47718Y-40483D01* X-47733Y-40409D01* X-47736Y-40331D01* Y-40305D01* X-47733Y-40286D01* Y-40261D01* X-47725Y-40235D01* X-47714Y-40176D01* X-47692Y-40109D01* X-47659Y-40042D01* X-47637Y-40009D01* X-47614Y-39979D01* X-47585Y-39954D01* X-47552Y-39928D01* X-48428D01* X-48380Y-39495D01* X-45905D01* Y-39883D01* D02* G37* G36* Y-41926D02* X-47011D01* X-47019D01* X-47037D01* X-47063D01* X-47100Y-41929D01* X-47174Y-41933D01* X-47211Y-41937D01* X-47244Y-41944D01* X-47248D01* X-47259Y-41948D01* X-47270Y-41952D01* X-47289Y-41955D01* X-47326Y-41974D01* X-47344Y-41989D01* X-47359Y-42003D01* Y-42007D01* X-47363Y-42011D01* X-47370Y-42022D01* X-47378Y-42037D01* X-47381Y-42055D01* X-47389Y-42081D01* X-47392Y-42107D01* Y-42159D01* X-47389Y-42181D01* X-47385Y-42207D01* X-47378Y-42236D01* X-47363Y-42273D01* X-47348Y-42310D01* X-47326Y-42347D01* X-47322Y-42351D01* X-47315Y-42362D01* X-47300Y-42381D01* X-47281Y-42403D01* X-47256Y-42429D01* X-47230Y-42455D01* X-47163Y-42510D01* X-45905D01* Y-42943D01* X-47692D01* Y-42562D01* X-47470Y-42544D01* X-47474Y-42540D01* X-47489Y-42532D01* X-47511Y-42514D01* X-47540Y-42492D01* X-47570Y-42462D01* X-47600Y-42425D01* X-47633Y-42381D01* X-47662Y-42329D01* X-47666Y-42322D01* X-47674Y-42303D01* X-47685Y-42273D01* X-47699Y-42233D01* X-47714Y-42185D01* X-47725Y-42129D01* X-47733Y-42070D01* X-47736Y-42007D01* Y-41981D01* X-47733Y-41966D01* Y-41944D01* X-47729Y-41922D01* X-47718Y-41866D01* X-47703Y-41804D01* X-47677Y-41741D01* X-47640Y-41678D01* X-47592Y-41626D01* X-47585Y-41618D01* X-47566Y-41604D01* X-47533Y-41585D01* X-47489Y-41559D01* X-47433Y-41533D01* X-47363Y-41515D01* X-47281Y-41500D01* X-47193Y-41493D01* X-45905D01* Y-41926D01* D02* G37* G36* X-46079Y-43376D02* X-46075Y-43380D01* X-46068Y-43391D01* X-46060Y-43406D01* X-46042Y-43443D01* X-46020Y-43491D01* X-45994Y-43550D01* X-45964Y-43613D01* X-45938Y-43679D01* X-45916Y-43750D01* Y-43753D01* X-45912Y-43757D01* Y-43768D01* X-45909Y-43783D01* X-45901Y-43820D01* X-45890Y-43872D01* X-45879Y-43931D01* X-45872Y-44001D01* X-45868Y-44079D01* X-45864Y-44164D01* Y-44183D01* X-45868Y-44208D01* Y-44238D01* X-45875Y-44275D01* X-45879Y-44319D01* X-45890Y-44368D01* X-45901Y-44419D01* X-45920Y-44475D01* X-45938Y-44534D01* X-45964Y-44593D01* X-45994Y-44653D01* X-46031Y-44708D01* X-46071Y-44763D01* X-46116Y-44819D01* X-46171Y-44867D01* X-46175Y-44871D01* X-46186Y-44878D01* X-46205Y-44889D01* X-46227Y-44904D01* X-46260Y-44926D01* X-46301Y-44945D01* X-46345Y-44967D01* X-46397Y-44989D01* X-46460Y-45015D01* X-46527Y-45037D01* X-46597Y-45056D01* X-46678Y-45074D01* X-46767Y-45093D01* X-46860Y-45104D01* X-46959Y-45111D01* X-47067Y-45115D01* X-47071D01* X-47085D01* X-47104D01* X-47130Y-45111D01* X-47163D01* X-47200Y-45108D01* X-47244Y-45104D01* X-47293Y-45096D01* X-47392Y-45082D01* X-47503Y-45059D01* X-47614Y-45026D01* X-47718Y-44982D01* X-47722D01* X-47729Y-44974D01* X-47744Y-44967D01* X-47762Y-44956D01* X-47785Y-44941D01* X-47811Y-44926D01* X-47870Y-44886D01* X-47936Y-44830D01* X-48003Y-44767D01* X-48070Y-44693D01* X-48125Y-44612D01* Y-44608D01* X-48132Y-44601D01* X-48140Y-44590D01* X-48147Y-44571D01* X-48158Y-44549D01* X-48169Y-44523D01* X-48180Y-44493D01* X-48195Y-44460D01* X-48221Y-44382D01* X-48243Y-44297D01* X-48258Y-44201D01* X-48266Y-44098D01* Y-44061D01* X-48262Y-44016D01* X-48258Y-43964D01* X-48251Y-43905D01* X-48236Y-43839D01* X-48221Y-43776D01* X-48199Y-43713D01* Y-43709D01* X-48195Y-43705D01* X-48188Y-43683D01* X-48169Y-43654D01* X-48147Y-43613D01* X-48114Y-43565D01* X-48077Y-43509D01* X-48029Y-43454D01* X-47973Y-43395D01* X-47722Y-43639D01* X-47725Y-43642D01* X-47736Y-43661D01* X-47755Y-43683D01* X-47777Y-43713D01* X-47799Y-43746D01* X-47822Y-43787D01* X-47844Y-43824D01* X-47862Y-43864D01* X-47866Y-43868D01* X-47870Y-43883D01* X-47877Y-43901D01* X-47885Y-43931D01* X-47892Y-43961D01* X-47899Y-44001D01* X-47907Y-44042D01* Y-44109D01* X-47903Y-44127D01* X-47899Y-44149D01* X-47896Y-44172D01* X-47881Y-44231D01* X-47859Y-44294D01* X-47822Y-44364D01* X-47799Y-44397D01* X-47774Y-44431D01* X-47744Y-44464D01* X-47707Y-44493D01* X-47703D01* X-47696Y-44501D01* X-47685Y-44508D01* X-47670Y-44519D01* X-47648Y-44530D01* X-47622Y-44545D01* X-47589Y-44556D01* X-47552Y-44571D01* X-47511Y-44586D01* X-47463Y-44601D01* X-47411Y-44616D01* X-47352Y-44627D01* X-47289Y-44638D01* X-47222Y-44645D01* X-47148Y-44649D01* X-47067Y-44653D01* X-47063D01* X-47048D01* X-47022D01* X-46993Y-44649D01* X-46956D01* X-46911Y-44645D01* X-46863Y-44641D01* X-46812Y-44638D01* X-46704Y-44623D01* X-46597Y-44601D01* X-46545Y-44586D01* X-46497Y-44567D01* X-46453Y-44549D01* X-46412Y-44527D01* X-46408D01* X-46404Y-44519D01* X-46382Y-44504D01* X-46349Y-44475D01* X-46316Y-44431D01* X-46279Y-44379D01* X-46245Y-44312D01* X-46223Y-44234D01* X-46220Y-44190D01* X-46216Y-44146D01* Y-44112D01* X-46220Y-44075D01* X-46227Y-44027D01* X-46234Y-43975D01* X-46249Y-43920D01* X-46271Y-43864D01* X-46297Y-43809D01* X-46871D01* Y-44186D01* X-47222Y-44231D01* Y-43372D01* X-46079D01* Y-43376D01* D02* G37* G36* X22852Y15587D02* X22897D01* X23001Y15574D01* X23131Y15554D01* X23273Y15528D01* X23435Y15496D01* X23597Y15444D01* X23422Y14822D01* X23416D01* X23409Y14829D01* X23370Y14842D01* X23312Y14854D01* X23241Y14880D01* X23163Y14900D01* X23072Y14913D01* X22988Y14926D01* X22910Y14932D01* X22885D01* X22859Y14926D01* X22826Y14919D01* X22794Y14906D01* X22755Y14887D01* X22723Y14861D01* X22690Y14829D01* X22684Y14816D01* X22671Y14796D01* X22658Y14764D01* X22645Y14725D01* X22625Y14667D01* X22606Y14589D01* X22586Y14498D01* X22535Y14278D01* X23170D01* X23034Y13636D01* X22405D01* X21854Y11025D01* X20986D01* X21530Y13636D01* X21038D01* X21158Y14205D01* X20843Y13533D01* X20837D01* X20824Y13539D01* X20798Y13546D01* X20766Y13558D01* X20681Y13571D01* X20584Y13578D01* X20545D01* X20500Y13571D01* X20442Y13558D01* X20370Y13533D01* X20292Y13507D01* X20208Y13461D01* X20118Y13403D01* X20105Y13397D01* X20079Y13371D01* X20040Y13332D01* X19988Y13286D01* X19930Y13221D01* X19865Y13144D01* X19806Y13053D01* X19755Y12949D01* X19748Y12936D01* X19742Y12917D01* X19735Y12898D01* X19722Y12865D01* X19709Y12826D01* X19690Y12781D01* X19677Y12729D01* X19658Y12671D01* X19632Y12606D01* X19612Y12528D01* X19593Y12444D01* X19567Y12360D01* X19541Y12263D01* X19521Y12152D01* X19496Y12042D01* X19282Y11025D01* X18413D01* X19094Y14278D01* X19910D01* X19781Y13649D01* X19787Y13656D01* X19800Y13682D01* X19826Y13714D01* X19858Y13759D01* X19904Y13811D01* X19956Y13870D01* X20014Y13934D01* X20079Y13999D01* X20228Y14129D01* X20305Y14187D01* X20396Y14239D01* X20480Y14284D01* X20578Y14317D01* X20675Y14343D01* X20772Y14349D01* X20804D01* X20843Y14343D01* X20895Y14336D01* X20954Y14323D01* X21025Y14310D01* X21102Y14284D01* X21169Y14256D01* X21174Y14278D01* X21666D01* X21731Y14608D01* Y14615D01* X21738Y14628D01* Y14647D01* X21744Y14673D01* X21764Y14744D01* X21783Y14829D01* X21809Y14926D01* X21835Y15017D01* X21867Y15101D01* X21893Y15166D01* X21900Y15172D01* X21913Y15198D01* X21938Y15230D01* X21971Y15276D01* X22016Y15328D01* X22068Y15379D01* X22133Y15431D01* X22204Y15477D01* X22217Y15483D01* X22243Y15496D01* X22288Y15516D01* X22347Y15535D01* X22424Y15554D01* X22522Y15574D01* X22625Y15587D01* X22742Y15593D01* X22813D01* X22852Y15587D01* D02* G37* G36* X1300Y14718D02* X425D01* X593Y15509D01* X1462D01* X1300Y14718D01* D02* G37* G36* X40977Y14343D02* X41054Y14336D01* X41145Y14323D01* X41249Y14291D01* X41352Y14252D01* X41456Y14194D01* X41553Y14116D01* X41566Y14103D01* X41592Y14077D01* X41625Y14025D01* X41670Y13954D01* X41715Y13863D01* X41748Y13759D01* X41774Y13643D01* X41787Y13507D01* Y13500D01* Y13474D01* X41780Y13429D01* X41767Y13358D01* X41754Y13273D01* X41735Y13157D01* X41722Y13092D01* X41709Y13021D01* X41690Y12943D01* X41670Y12859D01* X41275Y11025D01* X40406D01* X40802Y12865D01* Y12872D01* X40808Y12885D01* Y12904D01* X40815Y12930D01* X40828Y13001D01* X40847Y13079D01* X40860Y13163D01* X40873Y13248D01* X40886Y13312D01* X40892Y13338D01* Y13358D01* Y13364D01* Y13384D01* X40886Y13416D01* X40879Y13455D01* X40867Y13494D01* X40847Y13539D01* X40821Y13584D01* X40789Y13623D01* X40782Y13630D01* X40769Y13636D01* X40750Y13656D01* X40718Y13675D01* X40679Y13688D01* X40633Y13708D01* X40575Y13714D01* X40510Y13721D01* X40478D01* X40439Y13714D01* X40380Y13701D01* X40316Y13682D01* X40244Y13649D01* X40167Y13610D01* X40076Y13558D01* X40063Y13552D01* X40037Y13526D01* X39992Y13494D01* X39940Y13442D01* X39882Y13384D01* X39817Y13312D01* X39758Y13228D01* X39700Y13131D01* X39694Y13124D01* X39681Y13092D01* X39661Y13040D01* X39648Y13001D01* X39635Y12962D01* X39622Y12911D01* X39603Y12859D01* X39584Y12794D01* X39564Y12723D01* X39545Y12645D01* X39519Y12554D01* X39499Y12457D01* X39473Y12353D01* X39195Y11025D01* X38326D01* X39007Y14278D01* X39836D01* X39752Y13850D01* X39758D01* X39765Y13863D01* X39804Y13895D01* X39869Y13941D01* X39946Y13999D01* X40037Y14058D01* X40134Y14122D01* X40238Y14181D01* X40342Y14232D01* X40355Y14239D01* X40387Y14252D01* X40445Y14271D01* X40517Y14291D01* X40601Y14310D01* X40698Y14330D01* X40802Y14343D01* X40912Y14349D01* X40951D01* X40977Y14343D01* D02* G37* G36* X-1279Y11025D02* X-2193D01* X-1778Y13027D01* X-3522D01* X-3943Y11025D01* X-4856D01* X-3917Y15509D01* X-2997D01* X-3359Y13779D01* X-1616D01* X-1254Y15509D01* X-333D01* X-1279Y11025D01* D02* G37* G36* X33777Y14336D02* X33862Y14323D01* X33959Y14297D01* X34062Y14258D01* X34160Y14207D01* X34244Y14135D01* X34250Y14129D01* X34276Y14096D01* X34315Y14051D01* X34354Y13986D01* X34393Y13908D01* X34432Y13818D01* X34458Y13708D01* X34464Y13584D01* Y13578D01* Y13552D01* X34458Y13507D01* X34451Y13448D01* X34445Y13371D01* X34425Y13267D01* X34406Y13144D01* X34374Y13001D01* X33946Y11025D01* X33078D01* X33499Y13001D01* Y13008D01* X33505Y13021D01* Y13034D01* X33512Y13060D01* X33525Y13124D01* X33538Y13196D01* X33551Y13267D01* X33564Y13338D01* X33577Y13390D01* Y13409D01* Y13422D01* Y13429D01* Y13448D01* X33570Y13468D01* X33564Y13500D01* X33544Y13571D01* X33518Y13604D01* X33492Y13636D01* X33486Y13643D01* X33479Y13649D01* X33460Y13662D01* X33434Y13682D01* X33402Y13695D01* X33356Y13708D01* X33311Y13714D01* X33253Y13721D01* X33220D01* X33194Y13714D01* X33129Y13701D01* X33052Y13675D01* X32961Y13636D01* X32857Y13571D01* X32805Y13533D01* X32754Y13487D01* X32708Y13435D01* X32656Y13371D01* X32650Y13358D01* X32637Y13345D01* X32624Y13325D01* X32611Y13293D01* X32592Y13260D01* X32566Y13215D01* X32546Y13170D01* X32520Y13111D01* X32494Y13047D01* X32468Y12975D01* X32443Y12898D01* X32410Y12813D01* X32384Y12716D01* X32358Y12612D01* X32332Y12496D01* X32021Y11025D01* X31153D01* X31561Y12982D01* Y12988D01* X31568Y12995D01* X31574Y13040D01* X31587Y13098D01* X31600Y13163D01* X31613Y13241D01* X31620Y13312D01* X31633Y13377D01* Y13422D01* Y13429D01* Y13442D01* X31626Y13468D01* X31620Y13500D01* X31594Y13565D01* X31574Y13604D01* X31542Y13636D01* X31535Y13643D01* X31529Y13649D01* X31509Y13662D01* X31484Y13682D01* X31445Y13695D01* X31406Y13708D01* X31360Y13714D01* X31302Y13721D01* X31276D01* X31250Y13714D01* X31211Y13708D01* X31166Y13701D01* X31114Y13682D01* X31062Y13662D01* X31004Y13630D01* X30997Y13623D01* X30978Y13617D01* X30946Y13597D01* X30913Y13571D01* X30868Y13539D01* X30823Y13494D01* X30777Y13448D01* X30732Y13397D01* X30725Y13390D01* X30712Y13371D01* X30693Y13338D01* X30667Y13293D01* X30635Y13241D01* X30602Y13170D01* X30570Y13098D01* X30537Y13014D01* Y13008D01* X30531Y12988D01* X30518Y12956D01* X30505Y12911D01* X30492Y12846D01* X30466Y12755D01* X30440Y12651D01* X30427Y12586D01* X30408Y12515D01* X30097Y11025D01* X29228D01* X29909Y14278D01* X30732D01* X30654Y13882D01* X30661Y13889D01* X30674Y13902D01* X30699Y13928D01* X30738Y13954D01* X30784Y13993D01* X30836Y14032D01* X30894Y14070D01* X30965Y14116D01* X31121Y14200D01* X31289Y14278D01* X31386Y14304D01* X31477Y14330D01* X31581Y14343D01* X31678Y14349D01* X31736D01* X31808Y14343D01* X31885Y14330D01* X31976Y14310D01* X32073Y14284D01* X32164Y14245D01* X32242Y14194D01* X32248Y14187D01* X32274Y14168D01* X32306Y14129D01* X32352Y14083D01* X32391Y14025D01* X32436Y13947D01* X32475Y13870D01* X32501Y13772D01* X32507Y13785D01* X32533Y13811D01* X32572Y13857D01* X32624Y13915D01* X32695Y13980D01* X32773Y14044D01* X32870Y14116D01* X32980Y14181D01* X32987D01* X32993Y14187D01* X33013Y14194D01* X33039Y14207D01* X33097Y14232D01* X33181Y14265D01* X33278Y14297D01* X33395Y14323D01* X33512Y14343D01* X33641Y14349D01* X33706D01* X33777Y14336D01* D02* G37* G36* X29196Y14343D02* X29248Y14336D01* X29306Y14323D01* X29377Y14310D01* X29455Y14284D01* X29533Y14252D01* X29196Y13533D01* X29190D01* X29177Y13539D01* X29151Y13546D01* X29118Y13558D01* X29034Y13571D01* X28937Y13578D01* X28898D01* X28853Y13571D01* X28794Y13558D01* X28723Y13533D01* X28645Y13507D01* X28561Y13461D01* X28470Y13403D01* X28457Y13397D01* X28431Y13371D01* X28392Y13332D01* X28341Y13286D01* X28282Y13222D01* X28218Y13144D01* X28159Y13053D01* X28107Y12949D01* X28101Y12936D01* X28094Y12917D01* X28088Y12898D01* X28075Y12865D01* X28062Y12826D01* X28043Y12781D01* X28030Y12729D01* X28010Y12671D01* X27984Y12606D01* X27965Y12528D01* X27945Y12444D01* X27920Y12360D01* X27894Y12263D01* X27874Y12152D01* X27848Y12042D01* X27634Y11025D01* X26766D01* X27446Y14278D01* X28263D01* X28133Y13649D01* X28140Y13656D01* X28153Y13682D01* X28179Y13714D01* X28211Y13759D01* X28256Y13811D01* X28308Y13870D01* X28367Y13934D01* X28431Y13999D01* X28580Y14129D01* X28658Y14187D01* X28749Y14239D01* X28833Y14284D01* X28930Y14317D01* X29028Y14343D01* X29125Y14349D01* X29157D01* X29196Y14343D01* D02* G37* G36* X44217D02* X44262D01* X44320Y14336D01* X44450Y14310D01* X44599Y14278D01* X44748Y14220D01* X44904Y14148D01* X44975Y14096D01* X45040Y14044D01* X45046Y14038D01* X45053Y14032D01* X45072Y14012D01* X45092Y13993D01* X45150Y13921D01* X45215Y13831D01* X45286Y13714D01* X45351Y13578D01* X45396Y13422D01* X45415Y13338D01* X45428Y13248D01* X44592Y13163D01* Y13176D01* X44586Y13209D01* X44573Y13254D01* X44560Y13319D01* X44534Y13384D01* X44508Y13448D01* X44469Y13513D01* X44424Y13565D01* X44418Y13571D01* X44398Y13584D01* X44372Y13610D01* X44327Y13636D01* X44275Y13656D01* X44217Y13682D01* X44145Y13695D01* X44068Y13701D01* X44022D01* X43977Y13688D01* X43912Y13675D01* X43841Y13656D01* X43763Y13617D01* X43679Y13571D01* X43595Y13507D01* X43588Y13500D01* X43556Y13474D01* X43517Y13429D01* X43472Y13364D01* X43413Y13286D01* X43361Y13189D01* X43303Y13072D01* X43258Y12936D01* Y12930D01* X43251Y12917D01* X43245Y12898D01* X43238Y12872D01* X43219Y12800D01* X43199Y12710D01* X43180Y12599D01* X43160Y12476D01* X43148Y12353D01* X43141Y12224D01* Y12211D01* Y12178D01* X43148Y12126D01* X43160Y12062D01* X43173Y11990D01* X43199Y11919D01* X43232Y11848D01* X43277Y11783D01* X43284Y11777D01* X43303Y11757D01* X43335Y11731D01* X43374Y11705D01* X43426Y11679D01* X43491Y11653D01* X43556Y11634D01* X43633Y11627D01* X43672D01* X43711Y11634D01* X43763Y11647D01* X43821Y11666D01* X43893Y11692D01* X43964Y11725D01* X44035Y11777D01* X44042Y11783D01* X44068Y11809D01* X44107Y11841D01* X44152Y11893D01* X44197Y11958D01* X44249Y12036D01* X44301Y12126D01* X44346Y12237D01* X45202Y12094D01* Y12088D01* X45189Y12068D01* X45182Y12042D01* X45163Y12003D01* X45137Y11952D01* X45111Y11900D01* X45046Y11777D01* X44955Y11634D01* X44845Y11491D01* X44722Y11355D01* X44573Y11232D01* X44567D01* X44554Y11219D01* X44534Y11206D01* X44502Y11187D01* X44463Y11167D01* X44411Y11141D01* X44359Y11116D01* X44301Y11090D01* X44158Y11031D01* X43996Y10986D01* X43815Y10954D01* X43718Y10947D01* X43614Y10941D01* X43556D01* X43510Y10947D01* X43459Y10954D01* X43400Y10960D01* X43329Y10973D01* X43258Y10986D01* X43102Y11031D01* X43018Y11064D01* X42934Y11096D01* X42856Y11141D01* X42778Y11187D01* X42700Y11245D01* X42629Y11310D01* X42623Y11316D01* X42616Y11329D01* X42597Y11349D01* X42571Y11381D01* X42545Y11414D01* X42512Y11459D01* X42480Y11517D01* X42448Y11576D01* X42415Y11647D01* X42383Y11718D01* X42350Y11802D01* X42325Y11893D01* X42299Y11990D01* X42279Y12100D01* X42273Y12211D01* X42266Y12327D01* Y12334D01* Y12353D01* Y12379D01* X42273Y12418D01* Y12463D01* X42279Y12522D01* X42286Y12580D01* X42292Y12651D01* X42318Y12807D01* X42357Y12975D01* X42415Y13150D01* X42487Y13332D01* Y13338D01* X42500Y13351D01* X42512Y13377D01* X42525Y13409D01* X42551Y13448D01* X42577Y13494D01* X42655Y13604D01* X42746Y13721D01* X42856Y13844D01* X42992Y13967D01* X43148Y14077D01* X43154Y14083D01* X43167Y14090D01* X43193Y14103D01* X43225Y14122D01* X43271Y14142D01* X43316Y14161D01* X43374Y14187D01* X43439Y14213D01* X43582Y14265D01* X43744Y14304D01* X43925Y14336D01* X44120Y14349D01* X44178D01* X44217Y14343D01* D02* G37* G36* X36784D02* X36836D01* X36894Y14336D01* X37030Y14317D01* X37186Y14291D01* X37335Y14245D01* X37484Y14181D01* X37549Y14142D01* X37607Y14096D01* X37614D01* X37620Y14083D01* X37652Y14051D01* X37704Y13999D01* X37763Y13921D01* X37814Y13831D01* X37866Y13727D01* X37899Y13610D01* X37912Y13546D01* Y13474D01* Y13468D01* Y13448D01* Y13422D01* X37905Y13384D01* Y13338D01* X37899Y13286D01* X37879Y13163D01* Y13157D01* X37873Y13124D01* X37866Y13105D01* Y13072D01* X37853Y13040D01* X37847Y12995D01* X37834Y12943D01* X37821Y12878D01* X37808Y12807D01* X37795Y12729D01* X37776Y12638D01* X37750Y12535D01* X37724Y12418D01* X37698Y12295D01* Y12288D01* X37691Y12269D01* X37685Y12243D01* X37678Y12204D01* X37672Y12152D01* X37659Y12100D01* X37639Y11977D01* X37614Y11841D01* X37594Y11712D01* X37581Y11589D01* X37575Y11530D01* Y11485D01* Y11478D01* Y11446D01* X37581Y11407D01* Y11349D01* X37594Y11284D01* X37607Y11206D01* X37620Y11116D01* X37646Y11025D01* X36797D01* Y11031D01* X36791Y11057D01* X36778Y11090D01* X36765Y11135D01* X36758Y11193D01* X36745Y11252D01* X36732Y11388D01* X36726Y11381D01* X36700Y11355D01* X36654Y11316D01* X36603Y11265D01* X36538Y11213D01* X36460Y11161D01* X36376Y11103D01* X36285Y11057D01* X36272Y11051D01* X36240Y11038D01* X36194Y11018D01* X36130Y10999D01* X36052Y10979D01* X35968Y10960D01* X35877Y10947D01* X35780Y10941D01* X35741D01* X35715Y10947D01* X35637Y10954D01* X35546Y10973D01* X35443Y11005D01* X35326Y11051D01* X35216Y11116D01* X35112Y11200D01* X35099Y11213D01* X35073Y11245D01* X35028Y11304D01* X34983Y11388D01* X34937Y11485D01* X34892Y11602D01* X34866Y11738D01* X34853Y11887D01* Y11893D01* Y11906D01* Y11932D01* X34860Y11964D01* Y12003D01* X34866Y12049D01* X34892Y12152D01* X34924Y12275D01* X34976Y12399D01* X35048Y12522D01* X35086Y12580D01* X35138Y12632D01* X35145Y12638D01* X35151Y12645D01* X35171Y12658D01* X35197Y12677D01* X35229Y12697D01* X35268Y12723D01* X35320Y12749D01* X35378Y12781D01* X35443Y12807D01* X35520Y12839D01* X35605Y12865D01* X35702Y12891D01* X35806Y12917D01* X35916Y12936D01* X36039Y12956D01* X36175Y12969D01* X36201D01* X36233Y12975D01* X36279D01* X36324Y12982D01* X36382Y12988D01* X36512Y13008D01* X36654Y13021D01* X36791Y13047D01* X36855Y13060D01* X36914Y13072D01* X36966Y13085D01* X37011Y13098D01* Y13105D01* X37017Y13131D01* X37030Y13163D01* X37043Y13202D01* X37063Y13299D01* X37069Y13345D01* Y13390D01* Y13397D01* Y13416D01* X37063Y13435D01* X37056Y13468D01* X37043Y13507D01* X37017Y13546D01* X36992Y13584D01* X36953Y13623D01* X36946Y13630D01* X36933Y13636D01* X36907Y13656D01* X36868Y13675D01* X36816Y13688D01* X36765Y13708D01* X36693Y13714D01* X36616Y13721D01* X36577D01* X36531Y13714D01* X36480Y13708D01* X36421Y13695D01* X36356Y13682D01* X36298Y13656D01* X36240Y13623D01* X36233Y13617D01* X36220Y13604D01* X36194Y13584D01* X36169Y13552D01* X36136Y13513D01* X36104Y13468D01* X36078Y13416D01* X36058Y13358D01* X35203Y13429D01* Y13435D01* X35210Y13448D01* X35216Y13468D01* X35229Y13500D01* X35268Y13578D01* X35320Y13675D01* X35391Y13779D01* X35475Y13895D01* X35585Y14006D01* X35708Y14103D01* X35715D01* X35728Y14116D01* X35747Y14129D01* X35773Y14142D01* X35812Y14161D01* X35857Y14181D01* X35909Y14200D01* X35968Y14226D01* X36032Y14252D01* X36110Y14271D01* X36188Y14291D01* X36272Y14310D01* X36467Y14336D01* X36680Y14349D01* X36739D01* X36784Y14343D01* D02* G37* G36* X13683Y15503D02* X13728D01* X13838Y15496D01* X13962Y15483D01* X14085Y15457D01* X14214Y15431D01* X14324Y15392D01* X14331D01* X14337Y15386D01* X14370Y15373D01* X14422Y15340D01* X14486Y15302D01* X14558Y15250D01* X14636Y15185D01* X14713Y15101D01* X14778Y15010D01* X14785Y14997D01* X14804Y14965D01* X14830Y14906D01* X14862Y14835D01* X14895Y14738D01* X14921Y14634D01* X14940Y14511D01* X14946Y14381D01* Y14375D01* Y14368D01* Y14349D01* Y14323D01* X14940Y14258D01* X14927Y14168D01* X14914Y14070D01* X14888Y13954D01* X14856Y13837D01* X14810Y13714D01* Y13708D01* X14804Y13701D01* X14785Y13662D01* X14759Y13604D01* X14720Y13533D01* X14674Y13448D01* X14623Y13364D01* X14558Y13280D01* X14486Y13202D01* X14480Y13196D01* X14454Y13170D01* X14415Y13137D01* X14363Y13098D01* X14305Y13047D01* X14234Y13001D01* X14162Y12956D01* X14078Y12911D01* X14065Y12904D01* X14039Y12898D01* X13987Y12878D01* X13923Y12859D01* X13838Y12833D01* X13735Y12807D01* X13618Y12781D01* X13482Y12762D01* X13469D01* X13437Y12755D01* X13378D01* X13340Y12749D01* X13242D01* X13184Y12742D01* X13048D01* X12964Y12736D01* X12076D01* X11713Y11025D01* X10799D01* X11739Y15509D01* X13638D01* X13683Y15503D01* D02* G37* G36* X6717Y13908D02* X6723D01* X6730Y13921D01* X6769Y13947D01* X6827Y13986D01* X6898Y14038D01* X6983Y14096D01* X7080Y14148D01* X7177Y14200D01* X7274Y14245D01* X7287Y14252D01* X7320Y14265D01* X7371Y14278D01* X7443Y14297D01* X7527Y14317D01* X7618Y14336D01* X7721Y14343D01* X7831Y14349D01* X7870D01* X7896Y14343D01* X7968Y14336D01* X8058Y14323D01* X8162Y14291D01* X8266Y14252D01* X8369Y14194D01* X8460Y14116D01* X8473Y14103D01* X8499Y14077D01* X8531Y14025D01* X8577Y13960D01* X8622Y13870D01* X8654Y13772D01* X8680Y13656D01* X8693Y13526D01* Y13520D01* Y13487D01* X8687Y13442D01* X8680Y13377D01* X8667Y13293D01* X8648Y13189D01* X8629Y13059D01* X8596Y12917D01* X8188Y11025D01* X7320D01* X7734Y12956D01* Y12962D01* Y12969D01* X7747Y13008D01* X7754Y13059D01* X7767Y13124D01* X7780Y13189D01* X7793Y13254D01* X7799Y13312D01* X7806Y13358D01* Y13364D01* Y13384D01* X7799Y13416D01* X7793Y13448D01* X7780Y13494D01* X7760Y13533D01* X7734Y13578D01* X7702Y13617D01* X7695Y13623D01* X7682Y13636D01* X7663Y13649D01* X7631Y13669D01* X7592Y13688D01* X7540Y13708D01* X7488Y13714D01* X7423Y13721D01* X7384D01* X7339Y13714D01* X7287Y13701D01* X7216Y13682D01* X7145Y13656D01* X7067Y13617D01* X6989Y13565D01* X6976Y13558D01* X6944Y13526D01* X6898Y13487D01* X6840Y13429D01* X6775Y13358D01* X6704Y13273D01* X6639Y13176D01* X6581Y13072D01* X6574Y13066D01* X6568Y13040D01* X6548Y12988D01* X6542Y12956D01* X6529Y12917D01* X6516Y12872D01* X6497Y12813D01* X6484Y12755D01* X6464Y12684D01* X6445Y12599D01* X6425Y12515D01* X6406Y12418D01* X6380Y12308D01* X6108Y11025D01* X5240D01* X6179Y15509D01* X7047D01* X6717Y13908D01* D02* G37* G36* X522Y11025D02* X-346D01* X334Y14278D01* X1209D01* X522Y11025D01* D02* G37* G36* X47645Y14343D02* X47696Y14336D01* X47755Y14330D01* X47820Y14317D01* X47891Y14304D01* X48046Y14258D01* X48124Y14232D01* X48202Y14194D01* X48280Y14148D01* X48357Y14103D01* X48429Y14044D01* X48500Y13980D01* X48506Y13973D01* X48513Y13960D01* X48532Y13941D01* X48558Y13915D01* X48584Y13876D01* X48610Y13831D01* X48643Y13772D01* X48681Y13714D01* X48714Y13643D01* X48746Y13565D01* X48772Y13481D01* X48798Y13384D01* X48824Y13286D01* X48843Y13176D01* X48850Y13066D01* X48856Y12943D01* Y12936D01* Y12930D01* Y12891D01* Y12826D01* X48850Y12755D01* X48843Y12664D01* X48830Y12567D01* X48792Y12373D01* X46588D01* Y12366D01* Y12340D01* X46582Y12314D01* Y12288D01* Y12282D01* Y12275D01* Y12237D01* X46595Y12178D01* X46608Y12100D01* X46627Y12016D01* X46660Y11932D01* X46705Y11841D01* X46763Y11764D01* X46770Y11757D01* X46796Y11731D01* X46835Y11705D01* X46893Y11666D01* X46958Y11634D01* X47036Y11602D01* X47126Y11576D01* X47223Y11569D01* X47269D01* X47295Y11576D01* X47334Y11582D01* X47379Y11595D01* X47476Y11627D01* X47528Y11647D01* X47586Y11679D01* X47645Y11718D01* X47696Y11764D01* X47755Y11815D01* X47813Y11874D01* X47865Y11945D01* X47910Y12023D01* X48694Y11893D01* Y11887D01* X48681Y11874D01* X48668Y11848D01* X48649Y11815D01* X48630Y11777D01* X48597Y11731D01* X48532Y11621D01* X48442Y11504D01* X48331Y11388D01* X48208Y11271D01* X48072Y11174D01* X48066D01* X48053Y11161D01* X48033Y11154D01* X48008Y11135D01* X47969Y11122D01* X47930Y11103D01* X47820Y11057D01* X47696Y11012D01* X47547Y10979D01* X47392Y10954D01* X47217Y10941D01* X47152D01* X47107Y10947D01* X47048Y10954D01* X46984Y10960D01* X46912Y10973D01* X46835Y10992D01* X46666Y11044D01* X46575Y11077D01* X46485Y11116D01* X46400Y11161D01* X46310Y11219D01* X46226Y11284D01* X46148Y11355D01* X46141Y11362D01* X46128Y11375D01* X46109Y11401D01* X46083Y11433D01* X46051Y11472D01* X46018Y11524D01* X45979Y11582D01* X45947Y11647D01* X45908Y11725D01* X45869Y11802D01* X45837Y11893D01* X45804Y11990D01* X45778Y12094D01* X45759Y12211D01* X45746Y12327D01* X45739Y12450D01* Y12457D01* Y12483D01* Y12515D01* X45746Y12561D01* X45752Y12619D01* X45759Y12690D01* X45772Y12768D01* X45785Y12852D01* X45830Y13034D01* X45863Y13131D01* X45895Y13235D01* X45940Y13338D01* X45986Y13442D01* X46044Y13546D01* X46109Y13643D01* X46115Y13649D01* X46135Y13675D01* X46161Y13708D01* X46200Y13753D01* X46258Y13805D01* X46316Y13870D01* X46394Y13928D01* X46478Y13999D01* X46575Y14064D01* X46686Y14129D01* X46802Y14187D01* X46932Y14239D01* X47068Y14284D01* X47217Y14317D01* X47379Y14343D01* X47547Y14349D01* X47606D01* X47645Y14343D01* D02* G37* G36* X25081D02* X25146Y14336D01* X25211Y14330D01* X25289Y14317D01* X25373Y14297D01* X25554Y14252D01* X25645Y14220D01* X25742Y14181D01* X25833Y14135D01* X25924Y14077D01* X26008Y14019D01* X26086Y13947D01* X26092Y13941D01* X26105Y13928D01* X26125Y13908D01* X26150Y13876D01* X26183Y13837D01* X26215Y13785D01* X26254Y13734D01* X26293Y13669D01* X26325Y13591D01* X26364Y13513D01* X26397Y13422D01* X26429Y13332D01* X26455Y13228D01* X26474Y13118D01* X26487Y13001D01* X26494Y12878D01* Y12872D01* Y12846D01* Y12800D01* X26487Y12749D01* X26481Y12677D01* X26468Y12599D01* X26449Y12509D01* X26429Y12412D01* X26403Y12308D01* X26371Y12198D01* X26332Y12081D01* X26280Y11971D01* X26222Y11854D01* X26157Y11738D01* X26079Y11621D01* X25988Y11511D01* X25982Y11504D01* X25962Y11485D01* X25937Y11459D01* X25898Y11420D01* X25846Y11381D01* X25781Y11329D01* X25710Y11278D01* X25632Y11226D01* X25535Y11174D01* X25438Y11122D01* X25328Y11070D01* X25204Y11031D01* X25075Y10992D01* X24939Y10966D01* X24790Y10947D01* X24634Y10941D01* X24556D01* X24518Y10947D01* X24472Y10954D01* X24362Y10966D01* X24232Y10986D01* X24096Y11018D01* X23954Y11064D01* X23818Y11122D01* X23811D01* X23805Y11129D01* X23785Y11141D01* X23759Y11154D01* X23695Y11200D01* X23617Y11258D01* X23532Y11329D01* X23442Y11420D01* X23358Y11524D01* X23286Y11640D01* Y11647D01* X23280Y11653D01* X23273Y11673D01* X23260Y11699D01* X23234Y11770D01* X23202Y11861D01* X23170Y11964D01* X23144Y12088D01* X23124Y12224D01* X23118Y12366D01* Y12379D01* Y12405D01* X23124Y12450D01* Y12515D01* X23131Y12593D01* X23144Y12677D01* X23163Y12781D01* X23183Y12885D01* X23209Y12995D01* X23241Y13111D01* X23280Y13235D01* X23332Y13351D01* X23390Y13474D01* X23455Y13591D01* X23532Y13701D01* X23623Y13805D01* X23630Y13811D01* X23649Y13831D01* X23675Y13857D01* X23714Y13889D01* X23766Y13934D01* X23831Y13980D01* X23902Y14025D01* X23986Y14077D01* X24077Y14129D01* X24174Y14174D01* X24284Y14226D01* X24407Y14265D01* X24530Y14297D01* X24667Y14323D01* X24816Y14343D01* X24965Y14349D01* X25036D01* X25081Y14343D01* D02* G37* G36* X16994Y14343D02* X17046Y14336D01* X17104Y14330D01* X17169Y14317D01* X17240Y14304D01* X17396Y14258D01* X17474Y14232D01* X17551Y14194D01* X17629Y14148D01* X17707Y14103D01* X17778Y14044D01* X17850Y13980D01* X17856Y13973D01* X17863Y13960D01* X17882Y13941D01* X17908Y13915D01* X17934Y13876D01* X17960Y13831D01* X17992Y13772D01* X18031Y13714D01* X18063Y13643D01* X18096Y13565D01* X18122Y13481D01* X18148Y13384D01* X18174Y13286D01* X18193Y13176D01* X18200Y13066D01* X18206Y12943D01* Y12936D01* Y12930D01* Y12891D01* Y12826D01* X18200Y12755D01* X18193Y12664D01* X18180Y12567D01* X18141Y12373D01* X15938D01* Y12366D01* Y12340D01* X15932Y12314D01* Y12288D01* Y12282D01* Y12275D01* Y12237D01* X15944Y12178D01* X15957Y12100D01* X15977Y12016D01* X16009Y11932D01* X16055Y11841D01* X16113Y11763D01* X16119Y11757D01* X16145Y11731D01* X16184Y11705D01* X16242Y11666D01* X16307Y11634D01* X16385Y11602D01* X16476Y11576D01* X16573Y11569D01* X16618D01* X16644Y11576D01* X16683Y11582D01* X16728Y11595D01* X16826Y11627D01* X16878Y11647D01* X16936Y11679D01* X16994Y11718D01* X17046Y11763D01* X17104Y11815D01* X17163Y11874D01* X17214Y11945D01* X17260Y12023D01* X18044Y11893D01* Y11887D01* X18031Y11874D01* X18018Y11848D01* X17999Y11815D01* X17979Y11777D01* X17947Y11731D01* X17882Y11621D01* X17791Y11504D01* X17681Y11388D01* X17558Y11271D01* X17422Y11174D01* X17415D01* X17402Y11161D01* X17383Y11154D01* X17357Y11135D01* X17318Y11122D01* X17279Y11103D01* X17169Y11057D01* X17046Y11012D01* X16897Y10979D01* X16741Y10954D01* X16567Y10941D01* X16502D01* X16456Y10947D01* X16398Y10954D01* X16333Y10960D01* X16262Y10973D01* X16184Y10992D01* X16016Y11044D01* X15925Y11077D01* X15834Y11116D01* X15750Y11161D01* X15659Y11219D01* X15575Y11284D01* X15497Y11355D01* X15491Y11362D01* X15478Y11375D01* X15458Y11401D01* X15432Y11433D01* X15400Y11472D01* X15368Y11524D01* X15329Y11582D01* X15296Y11647D01* X15258Y11725D01* X15219Y11802D01* X15186Y11893D01* X15154Y11990D01* X15128Y12094D01* X15109Y12211D01* X15096Y12327D01* X15089Y12450D01* Y12457D01* Y12483D01* Y12515D01* X15096Y12561D01* X15102Y12619D01* X15109Y12690D01* X15122Y12768D01* X15134Y12852D01* X15180Y13034D01* X15212Y13131D01* X15245Y13235D01* X15290Y13338D01* X15335Y13442D01* X15394Y13546D01* X15458Y13643D01* X15465Y13649D01* X15484Y13675D01* X15510Y13708D01* X15549Y13753D01* X15608Y13805D01* X15666Y13870D01* X15744Y13928D01* X15828Y13999D01* X15925Y14064D01* X16035Y14129D01* X16152Y14187D01* X16281Y14239D01* X16418Y14284D01* X16567Y14317D01* X16728Y14343D01* X16897Y14349D01* X16955D01* X16994Y14343D01* D02* G37* G36* X3198D02* X3276Y14330D01* X3367Y14304D01* X3470Y14278D01* X3568Y14232D01* X3671Y14174D01* X3684Y14168D01* X3717Y14142D01* X3768Y14103D01* X3827Y14051D01* X3892Y13986D01* X3963Y13902D01* X4034Y13811D01* X4092Y13701D01* X4209Y14278D01* X5026D01* X4514Y11556D01* Y11550D01* X4507Y11530D01* X4501Y11498D01* X4488Y11452D01* X4475Y11401D01* X4462Y11336D01* X4430Y11200D01* X4391Y11051D01* X4352Y10895D01* X4313Y10753D01* X4293Y10694D01* X4274Y10636D01* X4267Y10623D01* X4254Y10591D01* X4235Y10539D01* X4209Y10474D01* X4177Y10409D01* X4138Y10332D01* X4099Y10260D01* X4054Y10195D01* X4047Y10189D01* X4034Y10170D01* X4002Y10137D01* X3969Y10098D01* X3924Y10053D01* X3866Y10007D01* X3807Y9962D01* X3736Y9917D01* X3730Y9910D01* X3704Y9897D01* X3665Y9878D01* X3613Y9858D01* X3542Y9826D01* X3470Y9800D01* X3380Y9774D01* X3289Y9755D01* X3276D01* X3244Y9748D01* X3192Y9742D01* X3121Y9729D01* X3036Y9722D01* X2939Y9709D01* X2835Y9703D01* X2660D01* X2615Y9709D01* X2557D01* X2492Y9716D01* X2414Y9722D01* X2336Y9735D01* X2168Y9761D01* X2000Y9807D01* X1831Y9865D01* X1760Y9904D01* X1688Y9943D01* X1682D01* X1675Y9956D01* X1637Y9988D01* X1578Y10046D01* X1514Y10131D01* X1481Y10182D01* X1449Y10234D01* X1423Y10299D01* X1390Y10370D01* X1371Y10448D01* X1352Y10532D01* X1345Y10630D01* X1338Y10727D01* Y10740D01* Y10766D01* Y10804D01* X1345Y10850D01* X2278Y10720D01* Y10714D01* Y10694D01* Y10668D01* X2285Y10643D01* X2298Y10571D01* X2310Y10539D01* X2324Y10506D01* X2330Y10493D01* X2356Y10468D01* X2401Y10422D01* X2466Y10383D01* X2472D01* X2486Y10377D01* X2511Y10370D01* X2537Y10357D01* X2583Y10351D01* X2628Y10338D01* X2680Y10332D01* X2796D01* X2848Y10338D01* X2913Y10344D01* X2991Y10357D01* X3069Y10383D01* X3146Y10409D01* X3218Y10448D01* X3224Y10455D01* X3244Y10468D01* X3263Y10487D01* X3295Y10513D01* X3334Y10552D01* X3367Y10597D01* X3406Y10655D01* X3438Y10720D01* Y10727D01* X3444Y10746D01* X3458Y10779D01* X3477Y10830D01* X3490Y10902D01* X3516Y10992D01* X3542Y11103D01* X3568Y11239D01* X3600Y11388D01* X3594Y11381D01* X3581Y11375D01* X3555Y11355D01* X3516Y11329D01* X3470Y11304D01* X3425Y11271D01* X3360Y11232D01* X3295Y11200D01* X3146Y11129D01* X2984Y11070D01* X2894Y11044D01* X2803Y11031D01* X2712Y11018D01* X2615Y11012D01* X2570D01* X2537Y11018D01* X2492Y11025D01* X2447Y11031D01* X2336Y11051D01* X2213Y11090D01* X2084Y11154D01* X2019Y11187D01* X1954Y11232D01* X1889Y11284D01* X1831Y11342D01* Y11349D01* X1818Y11355D01* X1805Y11375D01* X1786Y11407D01* X1760Y11440D01* X1734Y11485D01* X1708Y11537D01* X1682Y11595D01* X1650Y11660D01* X1624Y11731D01* X1598Y11809D01* X1572Y11900D01* X1552Y11997D01* X1539Y12100D01* X1533Y12211D01* X1526Y12327D01* Y12334D01* Y12353D01* Y12386D01* X1533Y12425D01* Y12476D01* X1539Y12535D01* X1546Y12599D01* X1552Y12677D01* X1578Y12839D01* X1617Y13014D01* X1663Y13196D01* X1734Y13377D01* Y13384D01* X1747Y13397D01* X1753Y13422D01* X1773Y13455D01* X1792Y13494D01* X1818Y13539D01* X1883Y13649D01* X1967Y13766D01* X2071Y13889D01* X2187Y13999D01* X2317Y14103D01* X2324D01* X2336Y14116D01* X2356Y14129D01* X2382Y14142D01* X2414Y14161D01* X2460Y14181D01* X2557Y14226D01* X2667Y14271D01* X2796Y14310D01* X2939Y14336D01* X3082Y14349D01* X3133D01* X3198Y14343D01* D02* G37* G36* X38761Y7931D02* X37886D01* X38054Y8722D01* X38923D01* X38761Y7931D01* D02* G37* G36* X-2251Y8800D02* X-2187Y8793D01* X-2109Y8787D01* X-2025Y8774D01* X-1934Y8761D01* X-1733Y8715D01* X-1629Y8683D01* X-1532Y8651D01* X-1428Y8605D01* X-1331Y8553D01* X-1240Y8495D01* X-1156Y8430D01* X-1150Y8424D01* X-1137Y8411D01* X-1117Y8391D01* X-1085Y8365D01* X-1053Y8327D01* X-1014Y8281D01* X-975Y8229D01* X-936Y8171D01* X-891Y8100D01* X-845Y8028D01* X-806Y7944D01* X-768Y7860D01* X-735Y7763D01* X-709Y7666D01* X-690Y7555D01* X-677Y7445D01* X-1558Y7406D01* Y7413D01* Y7419D01* X-1564Y7458D01* X-1584Y7517D01* X-1603Y7588D01* X-1636Y7666D01* X-1675Y7750D01* X-1726Y7828D01* X-1798Y7899D01* X-1804Y7905D01* X-1837Y7925D01* X-1882Y7957D01* X-1947Y7990D01* X-2025Y8016D01* X-2128Y8048D01* X-2251Y8067D01* X-2387Y8074D01* X-2452D01* X-2517Y8067D01* X-2601Y8054D01* X-2686Y8041D01* X-2776Y8016D01* X-2860Y7983D01* X-2932Y7938D01* X-2938Y7931D01* X-2958Y7912D01* X-2984Y7886D01* X-3010Y7847D01* X-3042Y7795D01* X-3068Y7737D01* X-3087Y7666D01* X-3094Y7594D01* Y7588D01* Y7562D01* X-3087Y7530D01* X-3074Y7484D01* X-3055Y7432D01* X-3029Y7380D01* X-2997Y7329D01* X-2945Y7277D01* X-2938Y7270D01* X-2912Y7251D01* X-2874Y7225D01* X-2809Y7186D01* X-2763Y7160D01* X-2718Y7134D01* X-2666Y7102D01* X-2601Y7069D01* X-2537Y7037D01* X-2459Y6998D01* X-2375Y6959D01* X-2284Y6920D01* X-2277Y6914D01* X-2251Y6907D01* X-2213Y6888D01* X-2161Y6869D01* X-2096Y6836D01* X-2025Y6804D01* X-1869Y6726D01* X-1701Y6642D01* X-1539Y6551D01* X-1461Y6506D01* X-1396Y6460D01* X-1338Y6415D01* X-1292Y6376D01* X-1286Y6370D01* X-1279Y6363D01* X-1260Y6344D01* X-1240Y6324D01* X-1189Y6253D01* X-1130Y6162D01* X-1072Y6052D01* X-1027Y5916D01* X-988Y5760D01* X-981Y5683D01* X-975Y5592D01* Y5585D01* Y5566D01* Y5534D01* X-981Y5495D01* X-988Y5443D01* X-1001Y5378D01* X-1014Y5313D01* X-1033Y5242D01* X-1059Y5164D01* X-1091Y5080D01* X-1130Y4996D01* X-1176Y4912D01* X-1228Y4827D01* X-1292Y4737D01* X-1364Y4659D01* X-1448Y4575D01* X-1454Y4568D01* X-1467Y4555D01* X-1500Y4536D01* X-1532Y4510D01* X-1584Y4477D01* X-1642Y4439D01* X-1707Y4406D01* X-1791Y4367D01* X-1876Y4322D01* X-1973Y4290D01* X-2083Y4251D01* X-2200Y4218D01* X-2323Y4192D01* X-2459Y4173D01* X-2601Y4160D01* X-2757Y4153D01* X-2854D01* X-2906Y4160D01* X-2964Y4166D01* X-3029D01* X-3100Y4179D01* X-3256Y4199D01* X-3424Y4231D01* X-3599Y4277D01* X-3761Y4341D01* X-3768D01* X-3781Y4348D01* X-3800Y4361D01* X-3833Y4380D01* X-3904Y4419D01* X-3994Y4484D01* X-4092Y4555D01* X-4189Y4652D01* X-4280Y4756D01* X-4357Y4879D01* Y4886D01* X-4364Y4892D01* X-4370Y4912D01* X-4383Y4944D01* X-4396Y4976D01* X-4409Y5015D01* X-4442Y5113D01* X-4474Y5229D01* X-4500Y5365D01* X-4513Y5514D01* X-4519Y5676D01* X-3638Y5728D01* Y5722D01* Y5709D01* Y5689D01* X-3632Y5663D01* X-3625Y5585D01* X-3612Y5501D01* X-3599Y5404D01* X-3573Y5307D01* X-3541Y5223D01* X-3496Y5158D01* X-3483Y5145D01* X-3457Y5119D01* X-3405Y5087D01* X-3327Y5041D01* X-3282Y5022D01* X-3223Y4996D01* X-3165Y4976D01* X-3094Y4963D01* X-3022Y4944D01* X-2938Y4938D01* X-2848Y4925D01* X-2679D01* X-2640Y4931D01* X-2595D01* X-2498Y4944D01* X-2394Y4963D01* X-2284Y4996D01* X-2180Y5035D01* X-2096Y5087D01* X-2089Y5093D01* X-2063Y5113D01* X-2031Y5151D01* X-1992Y5197D01* X-1953Y5255D01* X-1921Y5320D01* X-1895Y5391D01* X-1888Y5475D01* Y5482D01* Y5508D01* X-1895Y5547D01* X-1908Y5592D01* X-1927Y5644D01* X-1960Y5702D01* X-1999Y5760D01* X-2057Y5812D01* X-2063Y5819D01* X-2083Y5832D01* X-2122Y5858D01* X-2180Y5890D01* X-2219Y5916D01* X-2264Y5942D01* X-2316Y5968D01* X-2375Y5994D01* X-2446Y6026D01* X-2517Y6065D01* X-2608Y6104D01* X-2699Y6143D01* X-2705D01* X-2724Y6156D01* X-2750Y6162D01* X-2783Y6182D01* X-2828Y6201D01* X-2880Y6221D01* X-2990Y6272D01* X-3113Y6337D01* X-3243Y6396D01* X-3359Y6460D01* X-3418Y6493D01* X-3463Y6519D01* X-3476Y6525D01* X-3502Y6545D01* X-3547Y6583D01* X-3599Y6629D01* X-3658Y6681D01* X-3722Y6752D01* X-3781Y6830D01* X-3839Y6914D01* X-3845Y6927D01* X-3858Y6959D01* X-3884Y7011D01* X-3904Y7076D01* X-3930Y7160D01* X-3956Y7257D01* X-3969Y7367D01* X-3975Y7484D01* Y7491D01* Y7510D01* Y7542D01* X-3969Y7581D01* X-3962Y7627D01* X-3956Y7685D01* X-3943Y7750D01* X-3923Y7815D01* X-3878Y7964D01* X-3839Y8041D01* X-3800Y8126D01* X-3755Y8203D01* X-3703Y8281D01* X-3638Y8359D01* X-3567Y8430D01* X-3560Y8437D01* X-3547Y8450D01* X-3522Y8463D01* X-3489Y8489D01* X-3450Y8514D01* X-3398Y8547D01* X-3334Y8586D01* X-3262Y8618D01* X-3184Y8651D01* X-3100Y8689D01* X-3003Y8722D01* X-2893Y8748D01* X-2776Y8774D01* X-2653Y8793D01* X-2524Y8800D01* X-2381Y8806D01* X-2303D01* X-2251Y8800D01* D02* G37* G36* X7579Y7555D02* X7624Y7549D01* X7676Y7542D01* X7793Y7517D01* X7922Y7478D01* X8058Y7413D01* X8123Y7374D01* X8194Y7322D01* X8259Y7270D01* X8318Y7205D01* X8324Y7199D01* X8330Y7193D01* X8350Y7167D01* X8369Y7141D01* X8389Y7102D01* X8421Y7057D01* X8447Y7005D01* X8479Y6946D01* X8505Y6875D01* X8538Y6797D01* X8564Y6707D01* X8583Y6616D01* X8609Y6512D01* X8622Y6402D01* X8629Y6285D01* X8635Y6156D01* Y6143D01* Y6117D01* X8629Y6072D01* Y6007D01* X8616Y5935D01* X8609Y5845D01* X8590Y5748D01* X8570Y5637D01* X8538Y5527D01* X8505Y5404D01* X8460Y5281D01* X8408Y5158D01* X8343Y5028D01* X8272Y4905D01* X8188Y4782D01* X8091Y4665D01* X8084Y4659D01* X8071Y4646D01* X8045Y4620D01* X8006Y4588D01* X7968Y4549D01* X7909Y4503D01* X7851Y4458D01* X7780Y4413D01* X7702Y4361D01* X7624Y4315D01* X7533Y4270D01* X7436Y4231D01* X7333Y4199D01* X7222Y4173D01* X7112Y4160D01* X6996Y4153D01* X6970D01* X6931Y4160D01* X6892D01* X6834Y4166D01* X6775Y4179D01* X6704Y4199D01* X6633Y4218D01* X6548Y4244D01* X6471Y4283D01* X6386Y4322D01* X6309Y4374D01* X6224Y4432D01* X6147Y4503D01* X6075Y4581D01* X6011Y4672D01* X5667Y3000D01* X4799D01* X5732Y7491D01* X6555D01* X6490Y7147D01* X6503Y7160D01* X6536Y7186D01* X6587Y7225D01* X6652Y7270D01* X6730Y7322D01* X6814Y7374D01* X6898Y7426D01* X6989Y7465D01* X7002Y7471D01* X7028Y7478D01* X7080Y7497D01* X7138Y7517D01* X7216Y7530D01* X7300Y7549D01* X7397Y7555D01* X7495Y7562D01* X7546D01* X7579Y7555D01* D02* G37* G36* X48208Y7555D02* X48260Y7549D01* X48318Y7536D01* X48390Y7523D01* X48468Y7497D01* X48545Y7465D01* X48208Y6745D01* X48202D01* X48189Y6752D01* X48163Y6758D01* X48131Y6771D01* X48046Y6784D01* X47949Y6791D01* X47910D01* X47865Y6784D01* X47807Y6771D01* X47735Y6745D01* X47658Y6719D01* X47573Y6674D01* X47483Y6616D01* X47470Y6609D01* X47444Y6583D01* X47405Y6545D01* X47353Y6499D01* X47295Y6434D01* X47230Y6357D01* X47172Y6266D01* X47120Y6162D01* X47113Y6149D01* X47107Y6130D01* X47100Y6110D01* X47087Y6078D01* X47074Y6039D01* X47055Y5994D01* X47042Y5942D01* X47023Y5884D01* X46997Y5819D01* X46977Y5741D01* X46958Y5657D01* X46932Y5573D01* X46906Y5475D01* X46886Y5365D01* X46861Y5255D01* X46647Y4238D01* X45778D01* X46459Y7491D01* X47275D01* X47146Y6862D01* X47152Y6869D01* X47165Y6894D01* X47191Y6927D01* X47223Y6972D01* X47269Y7024D01* X47321Y7082D01* X47379Y7147D01* X47444Y7212D01* X47593Y7342D01* X47671Y7400D01* X47761Y7452D01* X47846Y7497D01* X47943Y7530D01* X48040Y7555D01* X48137Y7562D01* X48169D01* X48208Y7555D01* D02* G37* G36* X37056D02* X37108Y7549D01* X37166Y7536D01* X37238Y7523D01* X37315Y7497D01* X37393Y7465D01* X37056Y6745D01* X37050D01* X37037Y6752D01* X37011Y6758D01* X36979Y6771D01* X36894Y6784D01* X36797Y6791D01* X36758D01* X36713Y6784D01* X36654Y6771D01* X36583Y6745D01* X36505Y6719D01* X36421Y6674D01* X36331Y6616D01* X36318Y6609D01* X36292Y6583D01* X36253Y6545D01* X36201Y6499D01* X36143Y6434D01* X36078Y6357D01* X36020Y6266D01* X35968Y6162D01* X35961Y6149D01* X35955Y6130D01* X35948Y6110D01* X35935Y6078D01* X35922Y6039D01* X35903Y5994D01* X35890Y5942D01* X35870Y5884D01* X35844Y5819D01* X35825Y5741D01* X35806Y5657D01* X35780Y5573D01* X35754Y5475D01* X35734Y5365D01* X35708Y5255D01* X35495Y4238D01* X34626D01* X35307Y7491D01* X36123D01* X35994Y6862D01* X36000Y6869D01* X36013Y6894D01* X36039Y6927D01* X36071Y6972D01* X36117Y7024D01* X36169Y7082D01* X36227Y7147D01* X36292Y7212D01* X36441Y7342D01* X36518Y7400D01* X36609Y7452D01* X36693Y7497D01* X36791Y7530D01* X36888Y7555D01* X36985Y7562D01* X37017D01* X37056Y7555D01* D02* G37* G36* X28354D02* X28405Y7549D01* X28464Y7536D01* X28535Y7523D01* X28613Y7497D01* X28691Y7465D01* X28354Y6745D01* X28347D01* X28334Y6752D01* X28308Y6758D01* X28276Y6771D01* X28192Y6784D01* X28094Y6791D01* X28056D01* X28010Y6784D01* X27952Y6771D01* X27881Y6745D01* X27803Y6719D01* X27719Y6674D01* X27628Y6616D01* X27615Y6609D01* X27589Y6583D01* X27550Y6545D01* X27498Y6499D01* X27440Y6434D01* X27375Y6357D01* X27317Y6266D01* X27265Y6162D01* X27259Y6149D01* X27252Y6130D01* X27246Y6110D01* X27233Y6078D01* X27220Y6039D01* X27200Y5994D01* X27187Y5942D01* X27168Y5884D01* X27142Y5819D01* X27122Y5741D01* X27103Y5657D01* X27077Y5573D01* X27051Y5475D01* X27032Y5365D01* X27006Y5255D01* X26792Y4238D01* X25924D01* X26604Y7491D01* X27420D01* X27291Y6862D01* X27297Y6869D01* X27310Y6894D01* X27336Y6927D01* X27369Y6972D01* X27414Y7024D01* X27466Y7082D01* X27524Y7147D01* X27589Y7212D01* X27738Y7342D01* X27816Y7400D01* X27907Y7452D01* X27991Y7497D01* X28088Y7530D01* X28185Y7555D01* X28282Y7562D01* X28315D01* X28354Y7555D01* D02* G37* G36* X15309Y4238D02* X14473D01* X15251Y7957D01* X13586Y4238D01* X12711D01* X12542Y7983D01* X11836Y4238D01* X11000D01* X11933Y8722D01* X13249D01* X13391Y5637D01* X14797Y8722D01* X16126D01* X15309Y4238D01* D02* G37* G36* X10624Y5430D02* X8920D01* X9089Y6279D01* X10793D01* X10624Y5430D01* D02* G37* G36* X40478Y4238D02* X39726D01* X39078Y7491D01* X39940D01* X40160Y6065D01* Y6059D01* X40167Y6039D01* Y6013D01* X40173Y5974D01* X40180Y5929D01* X40193Y5871D01* X40212Y5754D01* X40231Y5624D01* X40251Y5501D01* X40264Y5391D01* X40270Y5346D01* X40277Y5307D01* X40283Y5320D01* X40296Y5339D01* X40316Y5372D01* X40342Y5424D01* X40380Y5488D01* X40426Y5579D01* X40458Y5637D01* X40491Y5696D01* Y5702D01* X40497Y5709D01* X40523Y5748D01* X40556Y5806D01* X40594Y5877D01* X40633Y5948D01* X40672Y6013D01* X40705Y6072D01* X40724Y6110D01* X41534Y7491D01* X42480D01* X40478Y4238D01* D02* G37* G36* X37983D02* X37115D01* X37795Y7491D01* X38670D01* X37983Y4238D01* D02* G37* G36* X32695Y8715D02* X32805D01* X32896Y8709D01* X32928D01* X32961Y8702D01* X32974D01* X33006Y8696D01* X33058Y8689D01* X33129Y8676D01* X33207Y8664D01* X33291Y8644D01* X33460Y8586D01* X33473Y8579D01* X33499Y8573D01* X33538Y8553D01* X33596Y8528D01* X33654Y8489D01* X33726Y8450D01* X33790Y8404D01* X33862Y8346D01* X33868Y8339D01* X33894Y8320D01* X33926Y8288D01* X33972Y8242D01* X34017Y8190D01* X34069Y8126D01* X34121Y8054D01* X34173Y7977D01* X34179Y7970D01* X34192Y7938D01* X34218Y7892D01* X34244Y7834D01* X34276Y7763D01* X34315Y7679D01* X34348Y7581D01* X34374Y7478D01* X34380Y7465D01* X34387Y7426D01* X34400Y7367D01* X34412Y7296D01* X34425Y7205D01* X34432Y7095D01* X34445Y6985D01* Y6862D01* Y6856D01* Y6830D01* Y6791D01* X34438Y6739D01* Y6674D01* X34432Y6603D01* X34419Y6519D01* X34412Y6428D01* X34393Y6331D01* X34380Y6227D01* X34328Y6013D01* X34257Y5793D01* X34218Y5683D01* X34166Y5573D01* Y5566D01* X34153Y5547D01* X34140Y5521D01* X34114Y5482D01* X34088Y5430D01* X34056Y5378D01* X33972Y5249D01* X33875Y5106D01* X33751Y4957D01* X33615Y4814D01* X33466Y4678D01* X33460D01* X33453Y4665D01* X33434Y4652D01* X33408Y4640D01* X33376Y4614D01* X33337Y4594D01* X33240Y4536D01* X33123Y4478D01* X32980Y4413D01* X32818Y4354D01* X32637Y4302D01* X32624D01* X32605Y4296D01* X32585Y4290D01* X32553D01* X32514Y4283D01* X32468Y4277D01* X32417Y4270D01* X32358Y4264D01* X32293Y4257D01* X32222Y4251D01* X32138D01* X32054Y4244D01* X31956Y4238D01* X30168D01* X31108Y8722D01* X32585D01* X32695Y8715D01* D02* G37* G36* X44359Y7555D02* X44411Y7549D01* X44469Y7542D01* X44534Y7530D01* X44605Y7517D01* X44761Y7471D01* X44839Y7445D01* X44916Y7406D01* X44994Y7361D01* X45072Y7316D01* X45143Y7257D01* X45215Y7193D01* X45221Y7186D01* X45228Y7173D01* X45247Y7154D01* X45273Y7128D01* X45299Y7089D01* X45325Y7044D01* X45357Y6985D01* X45396Y6927D01* X45428Y6856D01* X45461Y6778D01* X45487Y6694D01* X45513Y6596D01* X45539Y6499D01* X45558Y6389D01* X45564Y6279D01* X45571Y6156D01* Y6149D01* Y6143D01* Y6104D01* Y6039D01* X45564Y5968D01* X45558Y5877D01* X45545Y5780D01* X45506Y5585D01* X43303D01* Y5579D01* Y5553D01* X43297Y5527D01* Y5501D01* Y5495D01* Y5488D01* Y5449D01* X43310Y5391D01* X43322Y5313D01* X43342Y5229D01* X43374Y5145D01* X43420Y5054D01* X43478Y4976D01* X43484Y4970D01* X43510Y4944D01* X43549Y4918D01* X43608Y4879D01* X43672Y4847D01* X43750Y4814D01* X43841Y4789D01* X43938Y4782D01* X43983D01* X44009Y4789D01* X44048Y4795D01* X44094Y4808D01* X44191Y4840D01* X44243Y4860D01* X44301Y4892D01* X44359Y4931D01* X44411Y4976D01* X44469Y5028D01* X44528Y5087D01* X44580Y5158D01* X44625Y5236D01* X45409Y5106D01* Y5099D01* X45396Y5087D01* X45383Y5061D01* X45364Y5028D01* X45344Y4989D01* X45312Y4944D01* X45247Y4834D01* X45156Y4717D01* X45046Y4601D01* X44923Y4484D01* X44787Y4387D01* X44780D01* X44767Y4374D01* X44748Y4367D01* X44722Y4348D01* X44683Y4335D01* X44644Y4315D01* X44534Y4270D01* X44411Y4225D01* X44262Y4192D01* X44107Y4166D01* X43932Y4154D01* X43867D01* X43821Y4160D01* X43763Y4166D01* X43698Y4173D01* X43627Y4186D01* X43549Y4205D01* X43381Y4257D01* X43290Y4290D01* X43199Y4328D01* X43115Y4374D01* X43024Y4432D01* X42940Y4497D01* X42862Y4568D01* X42856Y4575D01* X42843Y4588D01* X42823Y4614D01* X42798Y4646D01* X42765Y4685D01* X42733Y4737D01* X42694Y4795D01* X42661Y4860D01* X42623Y4938D01* X42584Y5015D01* X42551Y5106D01* X42519Y5203D01* X42493Y5307D01* X42474Y5424D01* X42461Y5540D01* X42454Y5663D01* Y5670D01* Y5696D01* Y5728D01* X42461Y5773D01* X42467Y5832D01* X42474Y5903D01* X42487Y5981D01* X42500Y6065D01* X42545Y6247D01* X42577Y6344D01* X42610Y6447D01* X42655Y6551D01* X42700Y6655D01* X42759Y6758D01* X42823Y6856D01* X42830Y6862D01* X42849Y6888D01* X42875Y6920D01* X42914Y6966D01* X42972Y7018D01* X43031Y7082D01* X43109Y7141D01* X43193Y7212D01* X43290Y7277D01* X43400Y7342D01* X43517Y7400D01* X43646Y7452D01* X43782Y7497D01* X43932Y7530D01* X44094Y7555D01* X44262Y7562D01* X44320D01* X44359Y7555D01* D02* G37* G36* X24239D02* X24304Y7549D01* X24368Y7542D01* X24446Y7530D01* X24530Y7510D01* X24712Y7465D01* X24803Y7432D01* X24900Y7393D01* X24991Y7348D01* X25081Y7290D01* X25166Y7231D01* X25243Y7160D01* X25250Y7154D01* X25263Y7141D01* X25282Y7121D01* X25308Y7089D01* X25340Y7050D01* X25373Y6998D01* X25412Y6946D01* X25451Y6882D01* X25483Y6804D01* X25522Y6726D01* X25554Y6635D01* X25587Y6545D01* X25613Y6441D01* X25632Y6331D01* X25645Y6214D01* X25651Y6091D01* Y6084D01* Y6059D01* Y6013D01* X25645Y5961D01* X25638Y5890D01* X25626Y5812D01* X25606Y5722D01* X25587Y5624D01* X25561Y5521D01* X25528Y5411D01* X25490Y5294D01* X25438Y5184D01* X25379Y5067D01* X25315Y4950D01* X25237Y4834D01* X25146Y4724D01* X25140Y4717D01* X25120Y4698D01* X25094Y4672D01* X25055Y4633D01* X25003Y4594D01* X24939Y4542D01* X24867Y4490D01* X24790Y4439D01* X24692Y4387D01* X24595Y4335D01* X24485Y4283D01* X24362Y4244D01* X24232Y4205D01* X24096Y4179D01* X23947Y4160D01* X23792Y4154D01* X23714D01* X23675Y4160D01* X23630Y4166D01* X23520Y4179D01* X23390Y4199D01* X23254Y4231D01* X23111Y4277D01* X22975Y4335D01* X22969D01* X22962Y4341D01* X22943Y4354D01* X22917Y4367D01* X22852Y4413D01* X22774Y4471D01* X22690Y4542D01* X22599Y4633D01* X22515Y4737D01* X22444Y4853D01* Y4860D01* X22437Y4866D01* X22431Y4886D01* X22418Y4912D01* X22392Y4983D01* X22360Y5074D01* X22327Y5177D01* X22301Y5300D01* X22282Y5437D01* X22275Y5579D01* Y5592D01* Y5618D01* X22282Y5663D01* Y5728D01* X22288Y5806D01* X22301Y5890D01* X22321Y5994D01* X22340Y6097D01* X22366Y6208D01* X22399Y6324D01* X22437Y6447D01* X22489Y6564D01* X22548Y6687D01* X22612Y6804D01* X22690Y6914D01* X22781Y7018D01* X22787Y7024D01* X22807Y7044D01* X22833Y7069D01* X22872Y7102D01* X22923Y7147D01* X22988Y7193D01* X23059Y7238D01* X23144Y7290D01* X23234Y7342D01* X23332Y7387D01* X23442Y7439D01* X23565Y7478D01* X23688Y7510D01* X23824Y7536D01* X23973Y7555D01* X24122Y7562D01* X24193D01* X24239Y7555D01* D02* G37* G36* X21718Y7491D02* X22256D01* X22120Y6836D01* X21582D01* X21297Y5462D01* Y5456D01* Y5449D01* X21290Y5430D01* X21284Y5404D01* X21271Y5346D01* X21258Y5274D01* X21245Y5197D01* X21232Y5132D01* X21226Y5074D01* X21219Y5054D01* Y5041D01* Y5035D01* Y5028D01* X21226Y4983D01* X21245Y4938D01* X21278Y4886D01* X21284D01* X21290Y4879D01* X21310Y4866D01* X21329Y4860D01* X21362Y4847D01* X21407Y4834D01* X21459Y4827D01* X21550D01* X21576Y4834D01* X21614D01* X21666Y4840D01* X21731Y4847D01* X21809Y4853D01* X21673Y4205D01* X21660D01* X21634Y4199D01* X21588Y4192D01* X21530Y4179D01* X21459Y4173D01* X21381Y4160D01* X21206Y4154D01* X21128D01* X21090Y4160D01* X21051D01* X20947Y4173D01* X20837Y4199D01* X20720Y4225D01* X20617Y4270D01* X20526Y4328D01* X20519Y4335D01* X20493Y4361D01* X20461Y4406D01* X20422Y4458D01* X20383Y4529D01* X20351Y4620D01* X20325Y4717D01* X20318Y4834D01* Y4840D01* Y4866D01* X20325Y4912D01* X20331Y4976D01* X20338Y5022D01* X20344Y5067D01* X20357Y5125D01* X20370Y5190D01* X20383Y5262D01* X20396Y5339D01* X20416Y5430D01* X20435Y5527D01* X20714Y6836D01* X20280Y6836D01* X20416Y7491D01* X20843Y7491D01* X20947Y8009D01* X21945Y8612D01* X21718Y7491D01* D02* G37* G36* X18323Y7555D02* X18387Y7549D01* X18452Y7542D01* X18530Y7530D01* X18614Y7510D01* X18796Y7465D01* X18886Y7432D01* X18984Y7393D01* X19074Y7348D01* X19165Y7290D01* X19249Y7231D01* X19327Y7160D01* X19333Y7154D01* X19346Y7141D01* X19366Y7121D01* X19392Y7089D01* X19424Y7050D01* X19457Y6998D01* X19496Y6946D01* X19534Y6882D01* X19567Y6804D01* X19606Y6726D01* X19638Y6635D01* X19670Y6545D01* X19696Y6441D01* X19716Y6331D01* X19729Y6214D01* X19735Y6091D01* Y6084D01* Y6059D01* Y6013D01* X19729Y5961D01* X19722Y5890D01* X19709Y5812D01* X19690Y5722D01* X19670Y5624D01* X19645Y5521D01* X19612Y5411D01* X19573Y5294D01* X19521Y5184D01* X19463Y5067D01* X19398Y4950D01* X19320Y4834D01* X19230Y4724D01* X19223Y4717D01* X19204Y4698D01* X19178Y4672D01* X19139Y4633D01* X19087Y4594D01* X19022Y4542D01* X18951Y4490D01* X18873Y4439D01* X18776Y4387D01* X18679Y4335D01* X18569Y4283D01* X18446Y4244D01* X18316Y4205D01* X18180Y4179D01* X18031Y4160D01* X17876Y4153D01* X17798D01* X17759Y4160D01* X17714Y4166D01* X17603Y4179D01* X17474Y4199D01* X17338Y4231D01* X17195Y4277D01* X17059Y4335D01* X17052D01* X17046Y4341D01* X17027Y4354D01* X17001Y4367D01* X16936Y4413D01* X16858Y4471D01* X16774Y4542D01* X16683Y4633D01* X16599Y4737D01* X16528Y4853D01* Y4860D01* X16521Y4866D01* X16515Y4886D01* X16502Y4912D01* X16476Y4983D01* X16443Y5074D01* X16411Y5177D01* X16385Y5300D01* X16366Y5437D01* X16359Y5579D01* Y5592D01* Y5618D01* X16366Y5663D01* Y5728D01* X16372Y5806D01* X16385Y5890D01* X16405Y5994D01* X16424Y6097D01* X16450Y6208D01* X16482Y6324D01* X16521Y6447D01* X16573Y6564D01* X16631Y6687D01* X16696Y6804D01* X16774Y6914D01* X16865Y7018D01* X16871Y7024D01* X16891Y7044D01* X16916Y7069D01* X16955Y7102D01* X17007Y7147D01* X17072Y7193D01* X17143Y7238D01* X17228Y7290D01* X17318Y7342D01* X17415Y7387D01* X17526Y7439D01* X17649Y7478D01* X17772Y7510D01* X17908Y7536D01* X18057Y7555D01* X18206Y7562D01* X18277D01* X18323Y7555D01* D02* G37* G36* X3619D02* X3671Y7549D01* X3730Y7542D01* X3794Y7530D01* X3866Y7517D01* X4021Y7471D01* X4099Y7445D01* X4177Y7406D01* X4254Y7361D01* X4332Y7316D01* X4404Y7257D01* X4475Y7193D01* X4481Y7186D01* X4488Y7173D01* X4507Y7154D01* X4533Y7128D01* X4559Y7089D01* X4585Y7044D01* X4617Y6985D01* X4656Y6927D01* X4689Y6856D01* X4721Y6778D01* X4747Y6694D01* X4773Y6596D01* X4799Y6499D01* X4818Y6389D01* X4825Y6279D01* X4831Y6156D01* Y6149D01* Y6143D01* Y6104D01* Y6039D01* X4825Y5968D01* X4818Y5877D01* X4805Y5780D01* X4766Y5585D01* X2563D01* Y5579D01* Y5553D01* X2557Y5527D01* Y5501D01* Y5495D01* Y5488D01* Y5449D01* X2570Y5391D01* X2583Y5313D01* X2602Y5229D01* X2634Y5145D01* X2680Y5054D01* X2738Y4976D01* X2745Y4970D01* X2771Y4944D01* X2809Y4918D01* X2868Y4879D01* X2933Y4847D01* X3010Y4814D01* X3101Y4789D01* X3198Y4782D01* X3244D01* X3270Y4789D01* X3308Y4795D01* X3354Y4808D01* X3451Y4840D01* X3503Y4860D01* X3561Y4892D01* X3619Y4931D01* X3671Y4976D01* X3730Y5028D01* X3788Y5087D01* X3840Y5158D01* X3885Y5236D01* X4669Y5106D01* Y5099D01* X4656Y5087D01* X4643Y5061D01* X4624Y5028D01* X4604Y4989D01* X4572Y4944D01* X4507Y4834D01* X4417Y4717D01* X4306Y4601D01* X4183Y4484D01* X4047Y4387D01* X4041D01* X4028Y4374D01* X4008Y4367D01* X3982Y4348D01* X3943Y4335D01* X3905Y4315D01* X3794Y4270D01* X3671Y4225D01* X3522Y4192D01* X3367Y4166D01* X3192Y4153D01* X3127D01* X3082Y4160D01* X3023Y4166D01* X2959Y4173D01* X2887Y4186D01* X2809Y4205D01* X2641Y4257D01* X2550Y4290D01* X2460Y4328D01* X2375Y4374D01* X2285Y4432D01* X2200Y4497D01* X2123Y4568D01* X2116Y4575D01* X2103Y4588D01* X2084Y4614D01* X2058Y4646D01* X2025Y4685D01* X1993Y4737D01* X1954Y4795D01* X1922Y4860D01* X1883Y4938D01* X1844Y5015D01* X1812Y5106D01* X1779Y5203D01* X1753Y5307D01* X1734Y5424D01* X1721Y5540D01* X1714Y5663D01* Y5670D01* Y5696D01* Y5728D01* X1721Y5773D01* X1727Y5832D01* X1734Y5903D01* X1747Y5981D01* X1760Y6065D01* X1805Y6247D01* X1837Y6344D01* X1870Y6447D01* X1915Y6551D01* X1961Y6655D01* X2019Y6758D01* X2084Y6856D01* X2090Y6862D01* X2110Y6888D01* X2136Y6920D01* X2174Y6966D01* X2233Y7018D01* X2291Y7082D01* X2369Y7141D01* X2453Y7212D01* X2550Y7277D01* X2660Y7342D01* X2777Y7400D01* X2907Y7452D01* X3043Y7497D01* X3192Y7530D01* X3354Y7555D01* X3522Y7562D01* X3581D01* X3619Y7555D01* D02* G37* G36* X1177Y7491D02* X1714D01* X1578Y6836D01* X1040D01* X755Y5462D01* Y5456D01* Y5449D01* X749Y5430D01* X742Y5404D01* X729Y5346D01* X716Y5274D01* X703Y5197D01* X691Y5132D01* X684Y5074D01* X678Y5054D01* Y5041D01* Y5035D01* Y5028D01* X684Y4983D01* X703Y4938D01* X736Y4886D01* X742D01* X749Y4879D01* X768Y4866D01* X788Y4860D01* X820Y4847D01* X865Y4834D01* X917Y4827D01* X1008D01* X1034Y4834D01* X1073D01* X1125Y4840D01* X1190Y4847D01* X1267Y4853D01* X1131Y4205D01* X1118D01* X1092Y4199D01* X1047Y4192D01* X989Y4179D01* X917Y4173D01* X840Y4160D01* X665Y4153D01* X587D01* X548Y4160D01* X509D01* X405Y4173D01* X295Y4199D01* X179Y4225D01* X75Y4270D01* X-16Y4328D01* X-22Y4335D01* X-48Y4361D01* X-81Y4406D01* X-120Y4458D01* X-158Y4529D01* X-191Y4620D01* X-217Y4717D01* X-223Y4834D01* Y4840D01* Y4866D01* X-217Y4912D01* X-210Y4976D01* X-204Y5022D01* X-197Y5067D01* X-184Y5125D01* X-171Y5190D01* X-158Y5262D01* X-145Y5339D01* X-126Y5430D01* X-106Y5527D01* X172Y6836D01* X-262D01* X-126Y7491D01* X302D01* X405Y8009D01* X1403Y8612D01* X1177Y7491D01* D02* G37* G36* X29569Y-5913D02* D01* Y-10800D01* X8631D01* Y-5913D01* D01* Y-773D01* X29569D01* Y-5913D01* D02* G37* G36* X-45859Y11865D02* X-46562Y11458D01* X-45859Y11055D01* Y10596D01* X-46799Y11218D01* X-47646Y10666D01* Y11140D01* X-47039Y11473D01* X-47646Y11806D01* Y12261D01* X-46813Y11724D01* X-45859Y12342D01* Y11865D01* D02* G37* G36* Y9941D02* X-46784Y9371D01* Y9179D01* X-45859D01* Y8735D01* X-48175D01* Y9434D01* X-48171Y9453D01* Y9478D01* X-48164Y9538D01* X-48153Y9604D01* X-48138Y9682D01* X-48119Y9763D01* X-48090Y9852D01* X-48053Y9937D01* X-48008Y10019D01* X-47953Y10096D01* X-47886Y10163D01* X-47809Y10222D01* X-47764Y10248D01* X-47716Y10267D01* X-47664Y10285D01* X-47613Y10296D01* X-47553Y10304D01* X-47490Y10307D01* X-47487D01* X-47479D01* X-47468D01* X-47450Y10304D01* X-47427D01* X-47401Y10300D01* X-47346Y10289D01* X-47280Y10270D01* X-47213Y10244D01* X-47142Y10207D01* X-47076Y10159D01* X-47069Y10152D01* X-47050Y10133D01* X-47020Y10100D01* X-46987Y10059D01* X-46950Y10004D01* X-46913Y9941D01* X-46880Y9871D01* X-46850Y9793D01* X-45859Y10433D01* Y9941D01* D02* G37* G36* Y5860D02* X-46562Y5453D01* X-45859Y5050D01* Y4591D01* X-46799Y5212D01* X-47646Y4661D01* Y5135D01* X-47039Y5468D01* X-47646Y5801D01* Y6256D01* X-46813Y5719D01* X-45859Y6337D01* Y5860D01* D02* G37* G36* X-47805Y4328D02* Y3684D01* X-45859D01* Y3237D01* X-47805D01* Y2560D01* X-48175D01* Y4372D01* X-47805Y4328D01* D02* G37* G36* X-45859Y-204D02* X-46069Y-223D01* X-46066Y-227D01* X-46051Y-230D01* X-46029Y-241D01* X-46003Y-260D01* X-45973Y-282D01* X-45940Y-312D01* X-45910Y-352D01* X-45885Y-397D01* X-45881Y-404D01* X-45873Y-419D01* X-45862Y-445D01* X-45851Y-482D01* X-45840Y-523D01* X-45829Y-571D01* X-45822Y-626D01* X-45818Y-682D01* Y-715D01* X-45822Y-737D01* X-45825Y-767D01* X-45833Y-800D01* X-45851Y-874D01* X-45881Y-959D01* X-45899Y-1000D01* X-45925Y-1044D01* X-45955Y-1085D01* X-45988Y-1126D01* X-46025Y-1163D01* X-46069Y-1196D01* X-46073D01* X-46081Y-1203D01* X-46095Y-1211D01* X-46114Y-1222D01* X-46140Y-1237D01* X-46173Y-1252D01* X-46207Y-1266D01* X-46251Y-1281D01* X-46295Y-1296D01* X-46347Y-1311D01* X-46403Y-1326D01* X-46465Y-1340D01* X-46532Y-1351D01* X-46599Y-1359D01* X-46676Y-1362D01* X-46754Y-1366D01* X-46758D01* X-46765D01* X-46780D01* X-46799D01* X-46824Y-1362D01* X-46850D01* X-46917Y-1355D01* X-46991Y-1344D01* X-47072Y-1329D01* X-47154Y-1311D01* X-47235Y-1281D01* X-47239D01* X-47246Y-1277D01* X-47257Y-1274D01* X-47268Y-1266D01* X-47309Y-1244D01* X-47357Y-1218D01* X-47409Y-1185D01* X-47464Y-1141D01* X-47520Y-1089D01* X-47568Y-1033D01* Y-1029D01* X-47572Y-1026D01* X-47587Y-1004D01* X-47605Y-970D01* X-47631Y-926D01* X-47653Y-867D01* X-47672Y-804D01* X-47686Y-730D01* X-47690Y-652D01* Y-626D01* X-47686Y-608D01* Y-582D01* X-47679Y-556D01* X-47668Y-497D01* X-47646Y-430D01* X-47613Y-363D01* X-47590Y-330D01* X-47568Y-301D01* X-47539Y-275D01* X-47505Y-249D01* X-48382D01* X-48334Y184D01* X-45859D01* Y-204D01* D02* G37* G36* Y-2247D02* X-46965D01* X-46972D01* X-46991D01* X-47017D01* X-47054Y-2251D01* X-47128Y-2254D01* X-47165Y-2258D01* X-47198Y-2265D01* X-47202D01* X-47213Y-2269D01* X-47224Y-2273D01* X-47243Y-2276D01* X-47280Y-2295D01* X-47298Y-2310D01* X-47313Y-2324D01* Y-2328D01* X-47316Y-2332D01* X-47324Y-2343D01* X-47331Y-2358D01* X-47335Y-2376D01* X-47342Y-2402D01* X-47346Y-2428D01* Y-2480D01* X-47342Y-2502D01* X-47339Y-2528D01* X-47331Y-2558D01* X-47316Y-2595D01* X-47302Y-2632D01* X-47280Y-2669D01* X-47276Y-2672D01* X-47268Y-2683D01* X-47254Y-2702D01* X-47235Y-2724D01* X-47209Y-2750D01* X-47183Y-2776D01* X-47117Y-2831D01* X-45859D01* Y-3264D01* X-47646D01* Y-2883D01* X-47424Y-2865D01* X-47427Y-2861D01* X-47442Y-2854D01* X-47464Y-2835D01* X-47494Y-2813D01* X-47524Y-2783D01* X-47553Y-2746D01* X-47587Y-2702D01* X-47616Y-2650D01* X-47620Y-2643D01* X-47627Y-2624D01* X-47638Y-2595D01* X-47653Y-2554D01* X-47668Y-2506D01* X-47679Y-2450D01* X-47686Y-2391D01* X-47690Y-2328D01* Y-2302D01* X-47686Y-2287D01* Y-2265D01* X-47683Y-2243D01* X-47672Y-2188D01* X-47657Y-2125D01* X-47631Y-2062D01* X-47594Y-1999D01* X-47546Y-1947D01* X-47539Y-1940D01* X-47520Y-1925D01* X-47487Y-1906D01* X-47442Y-1881D01* X-47387Y-1855D01* X-47316Y-1836D01* X-47235Y-1821D01* X-47146Y-1814D01* X-45859D01* Y-2247D01* D02* G37* G36* X-46033Y-3697D02* X-46029Y-3701D01* X-46021Y-3712D01* X-46014Y-3727D01* X-45996Y-3764D01* X-45973Y-3812D01* X-45947Y-3871D01* X-45918Y-3934D01* X-45892Y-4001D01* X-45870Y-4071D01* Y-4075D01* X-45866Y-4078D01* Y-4089D01* X-45862Y-4104D01* X-45855Y-4141D01* X-45844Y-4193D01* X-45833Y-4252D01* X-45825Y-4323D01* X-45822Y-4400D01* X-45818Y-4485D01* Y-4504D01* X-45822Y-4530D01* Y-4559D01* X-45829Y-4596D01* X-45833Y-4641D01* X-45844Y-4689D01* X-45855Y-4741D01* X-45873Y-4796D01* X-45892Y-4855D01* X-45918Y-4914D01* X-45947Y-4974D01* X-45984Y-5029D01* X-46025Y-5085D01* X-46069Y-5140D01* X-46125Y-5188D01* X-46129Y-5192D01* X-46140Y-5199D01* X-46158Y-5210D01* X-46180Y-5225D01* X-46214Y-5248D01* X-46255Y-5266D01* X-46299Y-5288D01* X-46351Y-5310D01* X-46414Y-5336D01* X-46480Y-5359D01* X-46551Y-5377D01* X-46632Y-5395D01* X-46721Y-5414D01* X-46813Y-5425D01* X-46913Y-5432D01* X-47020Y-5436D01* X-47024D01* X-47039D01* X-47058D01* X-47083Y-5432D01* X-47117D01* X-47154Y-5429D01* X-47198Y-5425D01* X-47246Y-5418D01* X-47346Y-5403D01* X-47457Y-5381D01* X-47568Y-5347D01* X-47672Y-5303D01* X-47675D01* X-47683Y-5296D01* X-47698Y-5288D01* X-47716Y-5277D01* X-47738Y-5262D01* X-47764Y-5248D01* X-47823Y-5207D01* X-47890Y-5151D01* X-47956Y-5088D01* X-48023Y-5014D01* X-48079Y-4933D01* Y-4929D01* X-48086Y-4922D01* X-48094Y-4911D01* X-48101Y-4892D01* X-48112Y-4870D01* X-48123Y-4844D01* X-48134Y-4815D01* X-48149Y-4781D01* X-48175Y-4704D01* X-48197Y-4619D01* X-48212Y-4522D01* X-48219Y-4419D01* Y-4382D01* X-48216Y-4337D01* X-48212Y-4285D01* X-48204Y-4226D01* X-48190Y-4160D01* X-48175Y-4097D01* X-48153Y-4034D01* Y-4030D01* X-48149Y-4027D01* X-48142Y-4004D01* X-48123Y-3975D01* X-48101Y-3934D01* X-48068Y-3886D01* X-48030Y-3830D01* X-47982Y-3775D01* X-47927Y-3716D01* X-47675Y-3960D01* X-47679Y-3964D01* X-47690Y-3982D01* X-47709Y-4004D01* X-47731Y-4034D01* X-47753Y-4067D01* X-47775Y-4108D01* X-47797Y-4145D01* X-47816Y-4186D01* X-47820Y-4189D01* X-47823Y-4204D01* X-47831Y-4223D01* X-47838Y-4252D01* X-47846Y-4282D01* X-47853Y-4323D01* X-47860Y-4363D01* Y-4430D01* X-47857Y-4448D01* X-47853Y-4470D01* X-47849Y-4493D01* X-47834Y-4552D01* X-47812Y-4615D01* X-47775Y-4685D01* X-47753Y-4718D01* X-47727Y-4752D01* X-47698Y-4785D01* X-47661Y-4815D01* X-47657D01* X-47649Y-4822D01* X-47638Y-4829D01* X-47624Y-4840D01* X-47601Y-4852D01* X-47576Y-4866D01* X-47542Y-4877D01* X-47505Y-4892D01* X-47464Y-4907D01* X-47416Y-4922D01* X-47365Y-4937D01* X-47305Y-4948D01* X-47243Y-4959D01* X-47176Y-4966D01* X-47102Y-4970D01* X-47020Y-4974D01* X-47017D01* X-47002D01* X-46976D01* X-46946Y-4970D01* X-46909D01* X-46865Y-4966D01* X-46817Y-4963D01* X-46765Y-4959D01* X-46658Y-4944D01* X-46551Y-4922D01* X-46499Y-4907D01* X-46451Y-4889D01* X-46406Y-4870D01* X-46366Y-4848D01* X-46362D01* X-46358Y-4840D01* X-46336Y-4826D01* X-46303Y-4796D01* X-46269Y-4752D01* X-46232Y-4700D01* X-46199Y-4633D01* X-46177Y-4556D01* X-46173Y-4511D01* X-46169Y-4467D01* Y-4434D01* X-46173Y-4397D01* X-46180Y-4348D01* X-46188Y-4297D01* X-46203Y-4241D01* X-46225Y-4186D01* X-46251Y-4130D01* X-46824D01* Y-4507D01* X-47176Y-4552D01* Y-3694D01* X-46033D01* Y-3697D01* D02* G37* G36* X-46558Y-7793D02* X-46532D01* X-46477Y-7804D01* X-46410Y-7815D01* X-46340Y-7834D01* X-46266Y-7860D01* X-46195Y-7897D01* X-46192D01* X-46188Y-7900D01* X-46166Y-7915D01* X-46132Y-7941D01* X-46092Y-7971D01* X-46047Y-8015D01* X-45999Y-8067D01* X-45955Y-8126D01* X-45914Y-8193D01* Y-8196D01* X-45910Y-8200D01* X-45907Y-8211D01* X-45899Y-8226D01* X-45885Y-8267D01* X-45866Y-8319D01* X-45848Y-8381D01* X-45833Y-8459D01* X-45822Y-8540D01* X-45818Y-8633D01* Y-8652D01* X-45822Y-8674D01* Y-8703D01* X-45829Y-8740D01* X-45836Y-8785D01* X-45844Y-8833D01* X-45859Y-8885D01* X-45877Y-8940D01* X-45896Y-8999D01* X-45922Y-9059D01* X-45955Y-9118D01* X-45992Y-9181D01* X-46033Y-9240D01* X-46084Y-9299D01* X-46140Y-9354D01* X-46380Y-9103D01* X-46377Y-9099D01* X-46373Y-9092D01* X-46362Y-9081D01* X-46347Y-9066D01* X-46332Y-9047D01* X-46314Y-9025D01* X-46273Y-8970D01* X-46232Y-8899D01* X-46199Y-8822D01* X-46184Y-8781D01* X-46177Y-8737D01* X-46169Y-8692D01* X-46166Y-8648D01* Y-8640D01* X-46169Y-8614D01* X-46173Y-8581D01* X-46180Y-8537D01* X-46195Y-8489D01* X-46214Y-8441D01* X-46244Y-8393D01* X-46281Y-8348D01* X-46288Y-8344D01* X-46303Y-8330D01* X-46329Y-8311D01* X-46366Y-8293D01* X-46414Y-8270D01* X-46473Y-8256D01* X-46539Y-8241D01* X-46617Y-8237D01* X-46621D01* X-46628D01* X-46639D01* X-46654D01* X-46691Y-8241D01* X-46739Y-8248D01* X-46791Y-8259D01* X-46843Y-8278D01* X-46891Y-8300D01* X-46932Y-8330D01* X-46935Y-8333D01* X-46946Y-8344D01* X-46965Y-8367D01* X-46983Y-8393D01* X-46998Y-8429D01* X-47017Y-8470D01* X-47028Y-8518D01* X-47032Y-8574D01* Y-8600D01* X-47028Y-8618D01* X-47024Y-8663D01* X-47013Y-8718D01* Y-8722D01* X-47009Y-8729D01* X-47006Y-8744D01* X-46998Y-8766D01* X-46991Y-8788D01* X-46980Y-8818D01* X-46954Y-8885D01* Y-9195D01* X-48175D01* Y-7867D01* X-47838Y-7919D01* Y-8781D01* X-47276D01* X-47280Y-8774D01* X-47291Y-8759D01* X-47302Y-8729D01* X-47320Y-8688D01* X-47335Y-8640D01* X-47346Y-8585D01* X-47357Y-8518D01* X-47361Y-8444D01* Y-8411D01* X-47357Y-8378D01* X-47350Y-8330D01* X-47339Y-8278D01* X-47320Y-8222D01* X-47298Y-8163D01* X-47268Y-8108D01* X-47265Y-8100D01* X-47254Y-8082D01* X-47231Y-8056D01* X-47202Y-8022D01* X-47165Y-7986D01* X-47120Y-7945D01* X-47069Y-7908D01* X-47009Y-7875D01* X-47002Y-7871D01* X-46980Y-7860D01* X-46946Y-7849D01* X-46898Y-7830D01* X-46839Y-7815D01* X-46773Y-7804D01* X-46699Y-7793D01* X-46617Y-7789D01* X-46613D01* X-46606D01* X-46595D01* X-46576D01* X-46558Y-7793D01* D02* G37* G36* X-45859Y-10309D02* Y-10786D01* X-48175Y-11512D01* Y-11049D01* X-46284Y-10542D01* X-48175Y-10028D01* Y-9584D01* X-45859Y-10309D01* D02* G37* G36* Y-11885D02* Y-13347D01* X-46180D01* X-46184Y-13343D01* X-46199Y-13328D01* X-46221Y-13306D01* X-46251Y-13276D01* X-46284Y-13239D01* X-46325Y-13199D01* X-46369Y-13154D01* X-46417Y-13103D01* X-46521Y-12999D01* X-46628Y-12895D01* X-46732Y-12792D01* X-46780Y-12747D01* X-46824Y-12707D01* X-46828Y-12703D01* X-46835Y-12699D01* X-46847Y-12688D01* X-46861Y-12673D01* X-46906Y-12636D01* X-46957Y-12592D01* X-47020Y-12544D01* X-47083Y-12496D01* X-47150Y-12455D01* X-47209Y-12418D01* X-47213D01* X-47217Y-12414D01* X-47235Y-12403D01* X-47268Y-12392D01* X-47309Y-12374D01* X-47357Y-12359D01* X-47413Y-12348D01* X-47472Y-12337D01* X-47531Y-12333D01* X-47539D01* X-47557D01* X-47587Y-12337D01* X-47620Y-12344D01* X-47661Y-12355D01* X-47701Y-12370D01* X-47738Y-12392D01* X-47775Y-12422D01* X-47779Y-12426D01* X-47790Y-12437D01* X-47805Y-12459D01* X-47820Y-12485D01* X-47834Y-12522D01* X-47849Y-12562D01* X-47860Y-12610D01* X-47864Y-12666D01* Y-12688D01* X-47860Y-12714D01* X-47857Y-12747D01* X-47853Y-12784D01* X-47842Y-12825D01* X-47831Y-12866D01* X-47812Y-12903D01* X-47809Y-12907D01* X-47801Y-12921D01* X-47790Y-12940D01* X-47772Y-12966D01* X-47746Y-12999D01* X-47712Y-13036D01* X-47675Y-13077D01* X-47627Y-13121D01* X-47838Y-13395D01* X-47842D01* X-47846Y-13387D01* X-47857Y-13380D01* X-47871Y-13369D01* X-47905Y-13339D01* X-47949Y-13299D01* X-47997Y-13251D01* X-48045Y-13195D01* X-48090Y-13136D01* X-48127Y-13069D01* Y-13066D01* X-48131Y-13062D01* X-48134Y-13051D01* X-48142Y-13036D01* X-48156Y-12999D01* X-48175Y-12947D01* X-48190Y-12884D01* X-48204Y-12810D01* X-48216Y-12729D01* X-48219Y-12640D01* Y-12603D01* X-48216Y-12559D01* X-48208Y-12503D01* X-48197Y-12440D01* X-48182Y-12374D01* X-48160Y-12307D01* X-48131Y-12241D01* Y-12237D01* X-48127Y-12233D01* X-48116Y-12211D01* X-48094Y-12181D01* X-48068Y-12144D01* X-48034Y-12104D01* X-47990Y-12059D01* X-47945Y-12019D01* X-47890Y-11981D01* X-47883Y-11978D01* X-47864Y-11967D01* X-47831Y-11952D01* X-47790Y-11937D01* X-47742Y-11922D01* X-47683Y-11908D01* X-47620Y-11896D01* X-47553Y-11893D01* X-47550D01* X-47546D01* X-47535D01* X-47516D01* X-47479Y-11896D01* X-47427Y-11904D01* X-47365Y-11915D01* X-47298Y-11933D01* X-47228Y-11956D01* X-47154Y-11989D01* X-47150D01* X-47146Y-11993D01* X-47135Y-12000D01* X-47120Y-12007D01* X-47080Y-12030D01* X-47028Y-12059D01* X-46965Y-12104D01* X-46895Y-12155D01* X-46813Y-12215D01* X-46728Y-12289D01* X-46725Y-12292D01* X-46717Y-12300D01* X-46706Y-12311D01* X-46687Y-12326D01* X-46665Y-12348D01* X-46639Y-12374D01* X-46610Y-12403D01* X-46576Y-12437D01* X-46543Y-12477D01* X-46502Y-12518D01* X-46458Y-12566D01* X-46414Y-12618D01* X-46366Y-12673D01* X-46317Y-12733D01* X-46266Y-12796D01* X-46214Y-12862D01* Y-11841D01* X-45859Y-11885D01* D02* G37* G36* X-46106Y-15622D02* X-46099Y-15633D01* X-46084Y-15648D01* X-46066Y-15670D01* X-46044Y-15700D01* X-46018Y-15733D01* X-45992Y-15774D01* X-45966Y-15822D01* X-45936Y-15870D01* X-45910Y-15929D01* X-45885Y-15989D01* X-45862Y-16055D01* X-45844Y-16126D01* X-45829Y-16199D01* X-45822Y-16277D01* X-45818Y-16359D01* Y-16388D01* X-45822Y-16410D01* Y-16436D01* X-45825Y-16466D01* X-45829Y-16499D01* X-45836Y-16536D01* X-45851Y-16621D01* X-45877Y-16710D01* X-45910Y-16803D01* X-45955Y-16895D01* Y-16899D01* X-45962Y-16906D01* X-45970Y-16917D01* X-45981Y-16936D01* X-46014Y-16976D01* X-46058Y-17028D01* X-46118Y-17091D01* X-46188Y-17150D01* X-46269Y-17210D01* X-46366Y-17265D01* X-46369D01* X-46377Y-17273D01* X-46395Y-17276D01* X-46414Y-17287D01* X-46440Y-17295D01* X-46473Y-17306D01* X-46510Y-17321D01* X-46551Y-17332D01* X-46595Y-17343D01* X-46647Y-17358D01* X-46699Y-17369D01* X-46758Y-17376D01* X-46884Y-17391D01* X-47020Y-17398D01* X-47024D01* X-47039D01* X-47058D01* X-47083Y-17395D01* X-47117D01* X-47154Y-17391D01* X-47194Y-17387D01* X-47243Y-17380D01* X-47342Y-17365D01* X-47450Y-17339D01* X-47561Y-17306D01* X-47664Y-17261D01* X-47668D01* X-47675Y-17254D01* X-47690Y-17247D01* X-47709Y-17235D01* X-47731Y-17221D01* X-47757Y-17206D01* X-47816Y-17162D01* X-47883Y-17110D01* X-47953Y-17047D01* X-48016Y-16973D01* X-48075Y-16888D01* Y-16884D01* X-48082Y-16877D01* X-48090Y-16865D01* X-48097Y-16847D01* X-48108Y-16825D01* X-48119Y-16799D01* X-48134Y-16766D01* X-48149Y-16732D01* X-48175Y-16655D01* X-48197Y-16566D01* X-48212Y-16466D01* X-48219Y-16362D01* Y-16325D01* X-48216Y-16281D01* X-48212Y-16229D01* X-48204Y-16170D01* X-48193Y-16103D01* X-48179Y-16037D01* X-48160Y-15974D01* Y-15970D01* X-48156Y-15966D01* X-48149Y-15944D01* X-48134Y-15915D01* X-48116Y-15874D01* X-48090Y-15822D01* X-48053Y-15770D01* X-48012Y-15711D01* X-47964Y-15652D01* X-47694Y-15878D01* X-47698Y-15881D01* X-47701Y-15889D01* X-47709Y-15900D01* X-47720Y-15915D01* X-47731Y-15937D01* X-47746Y-15959D01* X-47779Y-16018D01* X-47809Y-16089D01* X-47834Y-16170D01* X-47853Y-16255D01* X-47860Y-16303D01* Y-16373D01* X-47857Y-16392D01* X-47853Y-16414D01* X-47849Y-16436D01* X-47834Y-16499D01* X-47812Y-16566D01* X-47775Y-16636D01* X-47753Y-16673D01* X-47727Y-16706D01* X-47698Y-16740D01* X-47661Y-16773D01* X-47657D01* X-47649Y-16780D01* X-47638Y-16788D01* X-47624Y-16799D01* X-47601Y-16810D01* X-47576Y-16825D01* X-47542Y-16840D01* X-47505Y-16854D01* X-47464Y-16869D01* X-47416Y-16884D01* X-47365Y-16899D01* X-47305Y-16910D01* X-47243Y-16921D01* X-47176Y-16928D01* X-47102Y-16932D01* X-47020Y-16936D01* X-47017D01* X-47002D01* X-46980D01* X-46950Y-16932D01* X-46913D01* X-46872Y-16928D01* X-46828Y-16921D01* X-46776Y-16914D01* X-46673Y-16895D01* X-46569Y-16865D01* X-46469Y-16825D01* X-46425Y-16803D01* X-46384Y-16773D01* X-46380Y-16769D01* X-46377Y-16766D01* X-46354Y-16743D01* X-46321Y-16706D01* X-46284Y-16658D01* X-46247Y-16595D01* X-46214Y-16521D01* X-46192Y-16440D01* X-46188Y-16392D01* X-46184Y-16344D01* Y-16318D01* X-46188Y-16288D01* X-46192Y-16251D01* X-46195Y-16211D01* X-46207Y-16166D01* X-46218Y-16122D01* X-46232Y-16077D01* X-46236Y-16074D01* X-46240Y-16059D01* X-46255Y-16037D01* X-46269Y-16003D01* X-46292Y-15966D01* X-46314Y-15926D01* X-46347Y-15878D01* X-46380Y-15830D01* X-46110Y-15619D01* X-46106Y-15622D01* D02* G37* G36* X-46969Y-17672D02* X-46924D01* X-46872Y-17680D01* X-46810Y-17683D01* X-46743Y-17694D01* X-46669Y-17705D01* X-46595Y-17724D01* X-46517Y-17742D01* X-46443Y-17768D01* X-46366Y-17798D01* X-46295Y-17835D01* X-46229Y-17876D01* X-46166Y-17924D01* X-46114Y-17979D01* X-46110Y-17983D01* X-46103Y-17994D01* X-46092Y-18009D01* X-46073Y-18035D01* X-46055Y-18064D01* X-46033Y-18101D01* X-46010Y-18142D01* X-45988Y-18190D01* X-45962Y-18246D01* X-45940Y-18301D01* X-45918Y-18368D01* X-45899Y-18434D01* X-45881Y-18508D01* X-45870Y-18586D01* X-45862Y-18667D01* X-45859Y-18753D01* Y-19337D01* X-48175D01* Y-18738D01* X-48171Y-18704D01* X-48167Y-18660D01* X-48160Y-18612D01* X-48153Y-18556D01* X-48145Y-18497D01* X-48116Y-18368D01* X-48094Y-18301D01* X-48071Y-18235D01* X-48042Y-18168D01* X-48008Y-18101D01* X-47971Y-18038D01* X-47927Y-17979D01* X-47923Y-17976D01* X-47916Y-17964D01* X-47901Y-17950D01* X-47879Y-17931D01* X-47849Y-17905D01* X-47816Y-17879D01* X-47772Y-17853D01* X-47723Y-17824D01* X-47668Y-17794D01* X-47601Y-17768D01* X-47527Y-17739D01* X-47446Y-17717D01* X-47357Y-17698D01* X-47257Y-17683D01* X-47150Y-17672D01* X-47032Y-17668D01* X-47024D01* X-47002D01* X-46969Y-17672D01* D02* G37* G36* X-45859Y-20029D02* X-46399Y-20188D01* Y-20939D01* X-45859Y-21098D01* Y-21542D01* X-48175Y-20817D01* Y-20295D01* X-45859Y-19570D01* Y-20029D01* D02* G37* G36* X16236Y57410D02* X16262Y57402D01* X16291Y57395D01* X16325Y57380D01* X16358Y57361D01* X16387Y57336D01* X16391Y57332D01* X16398Y57321D01* X16413Y57306D01* X16428Y57284D01* X16439Y57258D01* X16454Y57228D01* X16461Y57191D01* X16465Y57154D01* Y57151D01* Y57136D01* X16461Y57113D01* X16454Y57088D01* X16447Y57058D01* X16432Y57028D01* X16413Y56995D01* X16387Y56966D01* X16384Y56962D01* X16373Y56954D01* X16358Y56943D01* X16336Y56928D01* X16306Y56914D01* X16273Y56903D01* X16232Y56895D01* X16191Y56892D01* X16173D01* X16151Y56895D01* X16121Y56903D01* X16091Y56910D01* X16058Y56921D01* X16025Y56940D01* X15995Y56966D01* X15992Y56969D01* X15984Y56980D01* X15973Y56995D01* X15958Y57017D01* X15943Y57043D01* X15932Y57077D01* X15925Y57113D01* X15921Y57154D01* Y57158D01* Y57173D01* X15925Y57195D01* X15932Y57221D01* X15940Y57247D01* X15951Y57280D01* X15969Y57310D01* X15995Y57339D01* X15999Y57343D01* X16010Y57350D01* X16025Y57361D01* X16051Y57376D01* X16077Y57391D01* X16110Y57402D01* X16151Y57410D01* X16191Y57413D01* X16214D01* X16236Y57410D01* D02* G37* G36* X2453Y57139D02* X2505Y57136D01* X2564Y57128D01* X2631Y57117D01* X2697Y57102D01* X2760Y57084D01* X2764D01* X2768Y57080D01* X2790Y57073D01* X2819Y57058D01* X2860Y57039D01* X2912Y57014D01* X2964Y56977D01* X3023Y56936D01* X3082Y56888D01* X2857Y56618D01* X2853Y56621D01* X2845Y56625D01* X2834Y56633D01* X2819Y56644D01* X2797Y56655D01* X2775Y56669D01* X2716Y56703D01* X2646Y56732D01* X2564Y56758D01* X2479Y56777D01* X2431Y56784D01* X2361D01* X2342Y56780D01* X2320Y56777D01* X2298Y56773D01* X2235Y56758D01* X2168Y56736D01* X2098Y56699D01* X2061Y56677D01* X2028Y56651D01* X1994Y56621D01* X1961Y56584D01* Y56581D01* X1954Y56573D01* X1946Y56562D01* X1935Y56547D01* X1924Y56525D01* X1909Y56499D01* X1894Y56466D01* X1880Y56429D01* X1865Y56388D01* X1850Y56340D01* X1835Y56288D01* X1824Y56229D01* X1813Y56166D01* X1806Y56100D01* X1802Y56026D01* X1798Y55944D01* Y55941D01* Y55926D01* Y55904D01* X1802Y55874D01* Y55837D01* X1806Y55796D01* X1813Y55752D01* X1821Y55700D01* X1839Y55597D01* X1869Y55493D01* X1909Y55393D01* X1932Y55349D01* X1961Y55308D01* X1965Y55304D01* X1969Y55300D01* X1991Y55278D01* X2028Y55245D01* X2076Y55208D01* X2139Y55171D01* X2213Y55138D01* X2294Y55115D01* X2342Y55112D01* X2390Y55108D01* X2416D01* X2446Y55112D01* X2483Y55115D01* X2523Y55119D01* X2568Y55130D01* X2612Y55141D01* X2657Y55156D01* X2660Y55160D01* X2675Y55164D01* X2697Y55178D01* X2731Y55193D01* X2768Y55215D01* X2808Y55238D01* X2857Y55271D01* X2905Y55304D01* X3115Y55034D01* X3112Y55030D01* X3101Y55023D01* X3086Y55008D01* X3064Y54990D01* X3034Y54967D01* X3001Y54942D01* X2960Y54916D01* X2912Y54890D01* X2864Y54860D01* X2805Y54834D01* X2746Y54808D01* X2679Y54786D01* X2609Y54768D01* X2535Y54753D01* X2457Y54746D01* X2376Y54742D01* X2346D01* X2324Y54746D01* X2298D01* X2268Y54749D01* X2235Y54753D01* X2198Y54760D01* X2113Y54775D01* X2024Y54801D01* X1932Y54834D01* X1839Y54879D01* X1835D01* X1828Y54886D01* X1817Y54893D01* X1798Y54905D01* X1758Y54938D01* X1706Y54982D01* X1643Y55041D01* X1584Y55112D01* X1524Y55193D01* X1469Y55289D01* Y55293D01* X1462Y55300D01* X1458Y55319D01* X1447Y55338D01* X1439Y55363D01* X1428Y55397D01* X1414Y55434D01* X1402Y55474D01* X1391Y55519D01* X1376Y55571D01* X1365Y55622D01* X1358Y55682D01* X1343Y55807D01* X1336Y55944D01* Y55948D01* Y55963D01* Y55981D01* X1340Y56007D01* Y56041D01* X1343Y56077D01* X1347Y56118D01* X1354Y56166D01* X1369Y56266D01* X1395Y56374D01* X1428Y56485D01* X1473Y56588D01* Y56592D01* X1480Y56599D01* X1488Y56614D01* X1499Y56633D01* X1513Y56655D01* X1528Y56681D01* X1573Y56740D01* X1624Y56806D01* X1687Y56877D01* X1761Y56940D01* X1846Y56999D01* X1850D01* X1857Y57006D01* X1869Y57014D01* X1887Y57021D01* X1909Y57032D01* X1935Y57043D01* X1969Y57058D01* X2002Y57073D01* X2080Y57099D01* X2168Y57121D01* X2268Y57136D01* X2372Y57143D01* X2409D01* X2453Y57139D01* D02* G37* G36* X-9557D02* X-9505Y57136D01* X-9446Y57128D01* X-9379Y57117D01* X-9313Y57102D01* X-9250Y57084D01* X-9246D01* X-9243Y57080D01* X-9220Y57073D01* X-9191Y57058D01* X-9150Y57039D01* X-9098Y57014D01* X-9046Y56977D01* X-8987Y56936D01* X-8928Y56888D01* X-9154Y56618D01* X-9157Y56621D01* X-9165Y56625D01* X-9176Y56633D01* X-9191Y56644D01* X-9213Y56655D01* X-9235Y56669D01* X-9294Y56703D01* X-9365Y56732D01* X-9446Y56758D01* X-9531Y56777D01* X-9579Y56784D01* X-9650D01* X-9668Y56780D01* X-9690Y56777D01* X-9712Y56773D01* X-9775Y56758D01* X-9842Y56736D01* X-9912Y56699D01* X-9949Y56677D01* X-9983Y56651D01* X-10016Y56621D01* X-10049Y56584D01* Y56581D01* X-10057Y56573D01* X-10064Y56562D01* X-10075Y56547D01* X-10086Y56525D01* X-10101Y56499D01* X-10116Y56466D01* X-10131Y56429D01* X-10145Y56388D01* X-10160Y56340D01* X-10175Y56288D01* X-10186Y56229D01* X-10197Y56166D01* X-10204Y56100D01* X-10208Y56026D01* X-10212Y55944D01* Y55941D01* Y55926D01* Y55904D01* X-10208Y55874D01* Y55837D01* X-10204Y55796D01* X-10197Y55752D01* X-10190Y55700D01* X-10171Y55597D01* X-10142Y55493D01* X-10101Y55393D01* X-10079Y55349D01* X-10049Y55308D01* X-10045Y55304D01* X-10042Y55300D01* X-10019Y55278D01* X-9983Y55245D01* X-9934Y55208D01* X-9871Y55171D01* X-9798Y55138D01* X-9716Y55115D01* X-9668Y55112D01* X-9620Y55108D01* X-9594D01* X-9564Y55112D01* X-9527Y55115D01* X-9487Y55119D01* X-9442Y55130D01* X-9398Y55141D01* X-9353Y55156D01* X-9350Y55160D01* X-9335Y55164D01* X-9313Y55178D01* X-9279Y55193D01* X-9243Y55215D01* X-9202Y55238D01* X-9154Y55271D01* X-9106Y55304D01* X-8895Y55034D01* X-8898Y55030D01* X-8909Y55023D01* X-8924Y55008D01* X-8946Y54990D01* X-8976Y54967D01* X-9009Y54942D01* X-9050Y54916D01* X-9098Y54890D01* X-9146Y54860D01* X-9206Y54834D01* X-9265Y54808D01* X-9331Y54786D01* X-9402Y54768D01* X-9476Y54753D01* X-9553Y54746D01* X-9635Y54742D01* X-9664D01* X-9686Y54746D01* X-9712D01* X-9742Y54749D01* X-9775Y54753D01* X-9812Y54760D01* X-9897Y54775D01* X-9986Y54801D01* X-10079Y54834D01* X-10171Y54879D01* X-10175D01* X-10182Y54886D01* X-10193Y54893D01* X-10212Y54905D01* X-10253Y54938D01* X-10304Y54982D01* X-10367Y55041D01* X-10426Y55112D01* X-10486Y55193D01* X-10541Y55289D01* Y55293D01* X-10549Y55300D01* X-10552Y55319D01* X-10563Y55338D01* X-10571Y55363D01* X-10582Y55397D01* X-10597Y55434D01* X-10608Y55474D01* X-10619Y55519D01* X-10634Y55571D01* X-10645Y55622D01* X-10652Y55682D01* X-10667Y55807D01* X-10674Y55944D01* Y55948D01* Y55963D01* Y55981D01* X-10671Y56007D01* Y56041D01* X-10667Y56077D01* X-10663Y56118D01* X-10656Y56166D01* X-10641Y56266D01* X-10615Y56374D01* X-10582Y56485D01* X-10537Y56588D01* Y56592D01* X-10530Y56599D01* X-10523Y56614D01* X-10512Y56633D01* X-10497Y56655D01* X-10482Y56681D01* X-10438Y56740D01* X-10386Y56806D01* X-10323Y56877D01* X-10249Y56940D01* X-10164Y56999D01* X-10160D01* X-10153Y57006D01* X-10142Y57014D01* X-10123Y57021D01* X-10101Y57032D01* X-10075Y57043D01* X-10042Y57058D01* X-10008Y57073D01* X-9931Y57099D01* X-9842Y57121D01* X-9742Y57136D01* X-9638Y57143D01* X-9601D01* X-9557Y57139D01* D02* G37* G36* X-17630D02* X-17579Y57136D01* X-17519Y57128D01* X-17453Y57113D01* X-17390Y57099D01* X-17327Y57077D01* X-17323D01* X-17320Y57073D01* X-17297Y57065D01* X-17268Y57047D01* X-17227Y57025D01* X-17179Y56991D01* X-17123Y56954D01* X-17068Y56906D01* X-17009Y56851D01* X-17253Y56599D01* X-17257Y56603D01* X-17275Y56614D01* X-17297Y56633D01* X-17327Y56655D01* X-17360Y56677D01* X-17401Y56699D01* X-17438Y56721D01* X-17479Y56740D01* X-17482Y56744D01* X-17497Y56747D01* X-17516Y56755D01* X-17545Y56762D01* X-17575Y56769D01* X-17616Y56777D01* X-17656Y56784D01* X-17723D01* X-17741Y56780D01* X-17764Y56777D01* X-17786Y56773D01* X-17845Y56758D01* X-17908Y56736D01* X-17978Y56699D01* X-18011Y56677D01* X-18045Y56651D01* X-18078Y56621D01* X-18108Y56584D01* Y56581D01* X-18115Y56573D01* X-18123Y56562D01* X-18134Y56547D01* X-18145Y56525D01* X-18159Y56499D01* X-18171Y56466D01* X-18185Y56429D01* X-18200Y56388D01* X-18215Y56340D01* X-18230Y56288D01* X-18241Y56229D01* X-18252Y56166D01* X-18259Y56100D01* X-18263Y56026D01* X-18267Y55944D01* Y55941D01* Y55926D01* Y55900D01* X-18263Y55870D01* Y55833D01* X-18259Y55789D01* X-18256Y55741D01* X-18252Y55689D01* X-18237Y55582D01* X-18215Y55474D01* X-18200Y55423D01* X-18182Y55374D01* X-18163Y55330D01* X-18141Y55289D01* Y55286D01* X-18134Y55282D01* X-18119Y55260D01* X-18089Y55226D01* X-18045Y55193D01* X-17993Y55156D01* X-17926Y55123D01* X-17849Y55101D01* X-17804Y55097D01* X-17760Y55093D01* X-17727D01* X-17690Y55097D01* X-17641Y55104D01* X-17590Y55112D01* X-17534Y55127D01* X-17479Y55149D01* X-17423Y55175D01* Y55748D01* X-17801D01* X-17845Y56100D01* X-16987D01* Y54956D01* X-16990D01* X-16994Y54953D01* X-17005Y54945D01* X-17020Y54938D01* X-17057Y54919D01* X-17105Y54897D01* X-17164Y54871D01* X-17227Y54842D01* X-17294Y54816D01* X-17364Y54794D01* X-17368D01* X-17371Y54790D01* X-17382D01* X-17397Y54786D01* X-17434Y54779D01* X-17486Y54768D01* X-17545Y54757D01* X-17616Y54749D01* X-17693Y54746D01* X-17778Y54742D01* X-17797D01* X-17823Y54746D01* X-17852D01* X-17889Y54753D01* X-17934Y54757D01* X-17982Y54768D01* X-18034Y54779D01* X-18089Y54797D01* X-18148Y54816D01* X-18208Y54842D01* X-18267Y54871D01* X-18322Y54908D01* X-18378Y54949D01* X-18433Y54993D01* X-18481Y55049D01* X-18485Y55053D01* X-18493Y55064D01* X-18504Y55082D01* X-18518Y55104D01* X-18541Y55138D01* X-18559Y55178D01* X-18581Y55223D01* X-18604Y55275D01* X-18629Y55338D01* X-18652Y55404D01* X-18670Y55474D01* X-18689Y55556D01* X-18707Y55645D01* X-18718Y55737D01* X-18726Y55837D01* X-18729Y55944D01* Y55948D01* Y55963D01* Y55981D01* X-18726Y56007D01* Y56041D01* X-18722Y56077D01* X-18718Y56122D01* X-18711Y56170D01* X-18696Y56270D01* X-18674Y56381D01* X-18641Y56492D01* X-18596Y56595D01* Y56599D01* X-18589Y56607D01* X-18581Y56621D01* X-18570Y56640D01* X-18555Y56662D01* X-18541Y56688D01* X-18500Y56747D01* X-18444Y56814D01* X-18382Y56880D01* X-18307Y56947D01* X-18226Y57003D01* X-18222D01* X-18215Y57010D01* X-18204Y57017D01* X-18185Y57025D01* X-18163Y57036D01* X-18137Y57047D01* X-18108Y57058D01* X-18074Y57073D01* X-17997Y57099D01* X-17912Y57121D01* X-17815Y57136D01* X-17712Y57143D01* X-17675D01* X-17630Y57139D01* D02* G37* G36* X-13109Y57258D02* Y54782D01* X-13498D01* X-13516Y54993D01* X-13520Y54990D01* X-13523Y54975D01* X-13534Y54953D01* X-13553Y54927D01* X-13575Y54897D01* X-13605Y54864D01* X-13645Y54834D01* X-13690Y54808D01* X-13697Y54805D01* X-13712Y54797D01* X-13738Y54786D01* X-13775Y54775D01* X-13816Y54764D01* X-13864Y54753D01* X-13919Y54746D01* X-13975Y54742D01* X-14008D01* X-14030Y54746D01* X-14060Y54749D01* X-14093Y54757D01* X-14167Y54775D01* X-14252Y54805D01* X-14293Y54823D01* X-14337Y54849D01* X-14378Y54879D01* X-14419Y54912D01* X-14456Y54949D01* X-14489Y54993D01* Y54997D01* X-14496Y55005D01* X-14504Y55019D01* X-14515Y55038D01* X-14530Y55064D01* X-14545Y55097D01* X-14559Y55130D01* X-14574Y55175D01* X-14589Y55219D01* X-14604Y55271D01* X-14619Y55326D01* X-14633Y55389D01* X-14645Y55456D01* X-14652Y55523D01* X-14656Y55600D01* X-14659Y55678D01* Y55682D01* Y55689D01* Y55704D01* Y55722D01* X-14656Y55748D01* Y55774D01* X-14648Y55841D01* X-14637Y55915D01* X-14622Y55996D01* X-14604Y56077D01* X-14574Y56159D01* Y56163D01* X-14570Y56170D01* X-14567Y56181D01* X-14559Y56192D01* X-14537Y56233D01* X-14511Y56281D01* X-14478Y56333D01* X-14434Y56388D01* X-14382Y56444D01* X-14326Y56492D01* X-14323D01* X-14319Y56496D01* X-14297Y56510D01* X-14263Y56529D01* X-14219Y56555D01* X-14160Y56577D01* X-14097Y56595D01* X-14023Y56610D01* X-13945Y56614D01* X-13919D01* X-13901Y56610D01* X-13875D01* X-13849Y56603D01* X-13790Y56592D01* X-13723Y56570D01* X-13657Y56536D01* X-13623Y56514D01* X-13594Y56492D01* X-13568Y56462D01* X-13542Y56429D01* Y57306D01* X-13109Y57258D01* D02* G37* G36* X18448Y56610D02* X18471D01* X18493Y56607D01* X18548Y56595D01* X18611Y56581D01* X18674Y56555D01* X18737Y56518D01* X18789Y56470D01* X18796Y56462D01* X18811Y56444D01* X18829Y56410D01* X18855Y56366D01* X18881Y56311D01* X18900Y56240D01* X18914Y56159D01* X18922Y56070D01* Y54782D01* X18489D01* Y55889D01* Y55896D01* Y55915D01* Y55941D01* X18485Y55978D01* X18482Y56052D01* X18478Y56089D01* X18471Y56122D01* Y56126D01* X18467Y56137D01* X18463Y56148D01* X18459Y56166D01* X18441Y56203D01* X18426Y56222D01* X18411Y56237D01* X18408D01* X18404Y56240D01* X18393Y56248D01* X18378Y56255D01* X18360Y56259D01* X18334Y56266D01* X18308Y56270D01* X18256D01* X18234Y56266D01* X18208Y56262D01* X18178Y56255D01* X18141Y56240D01* X18104Y56226D01* X18067Y56203D01* X18064Y56200D01* X18052Y56192D01* X18034Y56177D01* X18012Y56159D01* X17986Y56133D01* X17960Y56107D01* X17904Y56041D01* Y54782D01* X17471D01* Y56570D01* X17853D01* X17871Y56348D01* X17875Y56351D01* X17882Y56366D01* X17901Y56388D01* X17923Y56418D01* X17953Y56447D01* X17989Y56477D01* X18034Y56510D01* X18086Y56540D01* X18093Y56544D01* X18112Y56551D01* X18141Y56562D01* X18182Y56577D01* X18230Y56592D01* X18285Y56603D01* X18345Y56610D01* X18408Y56614D01* X18433D01* X18448Y56610D01* D02* G37* G36* X-15581Y56610D02* X-15558D01* X-15536Y56607D01* X-15481Y56595D01* X-15418Y56581D01* X-15355Y56555D01* X-15292Y56518D01* X-15240Y56470D01* X-15233Y56462D01* X-15218Y56444D01* X-15200Y56410D01* X-15174Y56366D01* X-15148Y56311D01* X-15129Y56240D01* X-15114Y56159D01* X-15107Y56070D01* Y54782D01* X-15540D01* Y55889D01* Y55896D01* Y55915D01* Y55941D01* X-15544Y55978D01* X-15547Y56052D01* X-15551Y56089D01* X-15558Y56122D01* Y56126D01* X-15562Y56137D01* X-15566Y56148D01* X-15570Y56166D01* X-15588Y56203D01* X-15603Y56222D01* X-15618Y56237D01* X-15621D01* X-15625Y56240D01* X-15636Y56248D01* X-15651Y56255D01* X-15669Y56259D01* X-15695Y56266D01* X-15721Y56270D01* X-15773D01* X-15795Y56266D01* X-15821Y56262D01* X-15851Y56255D01* X-15888Y56240D01* X-15925Y56226D01* X-15962Y56203D01* X-15965Y56200D01* X-15977Y56192D01* X-15995Y56177D01* X-16017Y56159D01* X-16043Y56133D01* X-16069Y56107D01* X-16125Y56041D01* Y54782D01* X-16557D01* Y56570D01* X-16176D01* X-16158Y56348D01* X-16154Y56351D01* X-16147Y56366D01* X-16128Y56388D01* X-16106Y56418D01* X-16076Y56447D01* X-16039Y56477D01* X-15995Y56510D01* X-15943Y56540D01* X-15936Y56544D01* X-15917Y56551D01* X-15888Y56562D01* X-15847Y56577D01* X-15799Y56592D01* X-15743Y56603D01* X-15684Y56610D01* X-15621Y56614D01* X-15595D01* X-15581Y56610D01* D02* G37* G36* X-1040Y54782D02* X-1487D01* Y55807D01* X-2157D01* Y54782D01* X-2605D01* Y57099D01* X-2157D01* Y56181D01* X-1487D01* Y57099D01* X-1040D01* Y54782D01* D02* G37* G36* X14430Y54782D02* X13953D01* X13228Y57099D01* X13690D01* X14197Y55208D01* X14711Y57099D01* X15155D01* X14430Y54782D01* D02* G37* G36* X6967Y54782D02* X6416D01* X5754Y56699D01* Y56692D01* X5757Y56677D01* Y56651D01* X5761Y56614D01* X5765Y56570D01* X5768Y56521D01* X5776Y56462D01* X5779Y56403D01* X5783Y56336D01* X5791Y56266D01* X5798Y56122D01* X5802Y55978D01* X5805Y55837D01* Y54782D01* X5402D01* Y57099D01* X5953D01* X6616Y55182D01* Y55186D01* Y55190D01* X6612Y55201D01* Y55215D01* X6608Y55256D01* X6605Y55308D01* X6597Y55367D01* X6590Y55434D01* X6586Y55504D01* X6579Y55578D01* Y55582D01* Y55585D01* Y55597D01* X6575Y55615D01* Y55633D01* Y55656D01* X6571Y55711D01* X6568Y55782D01* Y55859D01* X6564Y55948D01* Y56044D01* Y57099D01* X6967D01* Y54782D01* D02* G37* G36* X-5043D02* X-5594D01* X-6257Y56699D01* Y56692D01* X-6253Y56677D01* Y56651D01* X-6249Y56614D01* X-6245Y56570D01* X-6242Y56521D01* X-6234Y56462D01* X-6231Y56403D01* X-6227Y56336D01* X-6220Y56266D01* X-6212Y56122D01* X-6208Y55978D01* X-6205Y55837D01* Y54782D01* X-6608D01* Y57099D01* X-6057D01* X-5395Y55182D01* Y55186D01* Y55190D01* X-5398Y55201D01* Y55215D01* X-5402Y55256D01* X-5406Y55308D01* X-5413Y55367D01* X-5420Y55434D01* X-5424Y55504D01* X-5432Y55578D01* Y55582D01* Y55585D01* Y55597D01* X-5435Y55615D01* Y55633D01* Y55656D01* X-5439Y55711D01* X-5443Y55782D01* Y55859D01* X-5446Y55948D01* Y56044D01* Y57099D01* X-5043D01* Y54782D01* D02* G37* G36* X16476Y55112D02* X16950D01* Y54782D01* X15533D01* Y55112D01* X16047D01* Y56237D01* X15548D01* Y56570D01* X16476D01* Y55112D01* D02* G37* G36* X10009Y55160D02* X11022D01* X10974Y54782D01* X9565D01* Y57099D01* X10009D01* Y55160D01* D02* G37* G36* X5169Y54782D02* X4710D01* X4551Y55323D01* X3800D01* X3641Y54782D01* X3197D01* X3922Y57099D01* X4444D01* X5169Y54782D01* D02* G37* G36* X-6841D02* X-7300D01* X-7459Y55323D01* X-8210D01* X-8369Y54782D01* X-8813D01* X-8088Y57099D01* X-7566D01* X-6841Y54782D01* D02* G37* G36* X9036Y54187D02* X7337Y54187D01* Y54549D01* X9036Y54549D01* Y54187D01* D02* G37* G36* X-2975Y54187D02* X-4673D01* Y54549D01* X-2975D01* Y54187D01* D02* G37* G36* X-49400Y-45000D02* X-58000D01* Y-23500D01* X-49400D01* Y-45000D01* D02* G37* G36* X64737Y-15636D02* X58263D01* Y-1364D01* X64737D01* Y-15636D01* D02* G37* G36* X-16895Y29757D02* X-17280D01* Y30160D01* X-19796D01* Y29757D01* X-20177D01* Y30626D01* X-16895D01* Y29757D01* D02* G37* G36* X-17616Y27958D02* X-20177D01* Y28451D01* X-17616D01* Y27958D01* D02* G37* G36* X-18479Y27574D02* X-18442Y27570D01* X-18401Y27562D01* X-18353Y27555D01* X-18305Y27544D01* X-18249Y27529D01* X-18194Y27511D01* X-18135Y27488D01* X-18075Y27463D01* X-18016Y27429D01* X-17961Y27392D01* X-17905Y27352D01* X-17850Y27303D01* X-17846Y27300D01* X-17839Y27292D01* X-17824Y27278D01* X-17805Y27255D01* X-17787Y27229D01* X-17764Y27196D01* X-17739Y27159D01* X-17713Y27119D01* X-17687Y27070D01* X-17661Y27019D01* X-17639Y26963D01* X-17620Y26900D01* X-17602Y26837D01* X-17587Y26767D01* X-17580Y26697D01* X-17576Y26619D01* Y26593D01* X-17580Y26575D01* Y26552D01* X-17583Y26526D01* X-17591Y26464D01* X-17605Y26386D01* X-17624Y26305D01* X-17653Y26219D01* X-17691Y26131D01* Y26127D01* X-17694Y26120D01* X-17702Y26108D01* X-17713Y26094D01* X-17739Y26053D01* X-17776Y26001D01* X-17824Y25946D01* X-17883Y25886D01* X-17950Y25831D01* X-18027Y25779D01* X-18031D01* X-18038Y25775D01* X-18049Y25768D01* X-18068Y25761D01* X-18090Y25753D01* X-18116Y25742D01* X-18146Y25731D01* X-18179Y25720D01* X-18216Y25709D01* X-18257Y25698D01* X-18349Y25679D01* X-18456Y25664D01* X-18571Y25661D01* X-18575D01* X-18582D01* X-18597D01* X-18612Y25664D01* X-18634D01* X-18660Y25668D01* X-18723Y25675D01* X-18793Y25690D01* X-18871Y25712D01* X-18956Y25738D01* X-19041Y25779D01* X-19045D01* X-19052Y25787D01* X-19063Y25790D01* X-19078Y25801D01* X-19119Y25831D01* X-19171Y25868D01* X-19226Y25916D01* X-19285Y25975D01* X-19341Y26042D01* X-19392Y26120D01* Y26123D01* X-19396Y26131D01* X-19404Y26142D01* X-19411Y26160D01* X-19422Y26179D01* X-19430Y26205D01* X-19441Y26234D01* X-19455Y26264D01* X-19478Y26338D01* X-19496Y26423D01* X-19511Y26515D01* X-19515Y26615D01* Y26656D01* X-19511Y26686D01* X-19507Y26723D01* X-19500Y26763D01* X-19492Y26811D01* X-19481Y26860D01* X-19466Y26915D01* X-19448Y26970D01* X-19426Y27026D01* X-19400Y27085D01* X-19367Y27144D01* X-19330Y27200D01* X-19289Y27255D01* X-19241Y27307D01* X-19237Y27311D01* X-19230Y27318D01* X-19211Y27333D01* X-19193Y27348D01* X-19163Y27370D01* X-19133Y27392D01* X-19093Y27418D01* X-19052Y27444D01* X-19004Y27466D01* X-18952Y27492D01* X-18893Y27514D01* X-18834Y27537D01* X-18767Y27551D01* X-18701Y27566D01* X-18627Y27574D01* X-18549Y27577D01* X-18545D01* X-18530D01* X-18508D01* X-18479Y27574D01* D02* G37* G36* X-18993Y25405D02* X-18997Y25402D01* X-19004Y25383D01* X-19019Y25361D01* X-19034Y25331D01* X-19048Y25294D01* X-19063Y25257D01* X-19071Y25217D01* X-19074Y25176D01* Y25161D01* X-19071Y25139D01* X-19067Y25117D01* X-19060Y25091D01* X-19048Y25061D01* X-19034Y25032D01* X-19015Y25002D01* X-19011Y24998D01* X-19004Y24991D01* X-18989Y24976D01* X-18967Y24961D01* X-18941Y24943D01* X-18904Y24924D01* X-18860Y24906D01* X-18808Y24891D01* X-18801D01* X-18789Y24887D01* X-18778Y24884D01* X-18760D01* X-18738Y24880D01* X-18708Y24876D01* X-18675Y24873D01* X-18638Y24869D01* X-18590Y24865D01* X-18541Y24861D01* X-18482D01* X-18419Y24858D01* X-18349Y24854D01* X-18271D01* X-18186D01* X-17616D01* Y24362D01* X-19474D01* Y24817D01* X-19211D01* X-19215Y24821D01* X-19237Y24836D01* X-19270Y24858D01* X-19311Y24887D01* X-19352Y24917D01* X-19392Y24954D01* X-19430Y24987D01* X-19455Y25024D01* X-19459Y25028D01* X-19466Y25039D01* X-19474Y25061D01* X-19485Y25087D01* X-19496Y25117D01* X-19507Y25154D01* X-19511Y25191D01* X-19515Y25235D01* Y25265D01* X-19511Y25298D01* X-19503Y25339D01* X-19492Y25391D01* X-19474Y25446D01* X-19452Y25502D01* X-19418Y25561D01* X-18993Y25405D01* D02* G37* G36* X-17646Y24081D02* X-17642Y24077D01* X-17635Y24055D01* X-17624Y24018D01* X-17613Y23970D01* X-17598Y23914D01* X-17587Y23848D01* X-17580Y23774D01* X-17576Y23696D01* Y23674D01* X-17580Y23648D01* X-17583Y23615D01* X-17587Y23578D01* X-17594Y23537D01* X-17605Y23496D01* X-17620Y23456D01* X-17624Y23452D01* X-17628Y23437D01* X-17639Y23418D01* X-17650Y23396D01* X-17687Y23345D01* X-17709Y23319D01* X-17735Y23296D01* X-17739Y23293D01* X-17750Y23289D01* X-17764Y23282D01* X-17787Y23270D01* X-17813Y23259D01* X-17846Y23248D01* X-17883Y23237D01* X-17924Y23230D01* X-17927D01* X-17942Y23226D01* X-17964D01* X-18001Y23222D01* X-18049Y23219D01* X-18109D01* X-18142Y23215D01* X-18183D01* X-18223D01* X-18271D01* X-19082D01* Y22989D01* X-19474D01* Y23215D01* X-19844D01* X-20132Y23707D01* X-19474D01* Y24044D01* X-19082D01* Y23707D01* X-18331D01* X-18327D01* X-18319D01* X-18308D01* X-18294D01* X-18257D01* X-18212D01* X-18168Y23711D01* X-18123D01* X-18090D01* X-18075Y23715D01* X-18068D01* X-18060Y23718D01* X-18046Y23726D01* X-18027Y23737D01* X-18005Y23759D01* X-18001Y23766D01* X-17994Y23781D01* X-17987Y23807D01* X-17983Y23840D01* Y23855D01* X-17987Y23870D01* X-17990Y23892D01* X-17994Y23922D01* X-18001Y23955D01* X-18012Y23996D01* X-18027Y24040D01* X-17646Y24084D01* Y24081D01* D02* G37* G36* X-17616Y22201D02* X-18560D01* X-18564D01* X-18575D01* X-18590D01* X-18608D01* X-18634D01* X-18660D01* X-18723Y22197D01* X-18786Y22194D01* X-18852Y22186D01* X-18908Y22179D01* X-18930Y22175D01* X-18948Y22168D01* X-18952D01* X-18963Y22161D01* X-18978Y22153D01* X-19000Y22142D01* X-19045Y22109D01* X-19067Y22090D01* X-19085Y22064D01* X-19089Y22061D01* X-19093Y22053D01* X-19100Y22038D01* X-19111Y22016D01* X-19122Y21990D01* X-19130Y21964D01* X-19133Y21931D01* X-19137Y21894D01* Y21872D01* X-19133Y21850D01* X-19130Y21820D01* X-19119Y21783D01* X-19108Y21746D01* X-19089Y21705D01* X-19067Y21665D01* X-19063Y21661D01* X-19056Y21650D01* X-19037Y21631D01* X-19019Y21609D01* X-18989Y21587D01* X-18960Y21565D01* X-18919Y21543D01* X-18878Y21528D01* X-18875D01* X-18856Y21520D01* X-18826Y21517D01* X-18782Y21509D01* X-18756Y21506D01* X-18723Y21502D01* X-18689Y21498D01* X-18649D01* X-18608Y21495D01* X-18560Y21491D01* X-18508D01* X-18453D01* X-17616D01* Y20999D01* X-19474D01* Y21454D01* X-19200D01* X-19204Y21457D01* X-19215Y21465D01* X-19230Y21480D01* X-19248Y21498D01* X-19274Y21520D01* X-19300Y21550D01* X-19330Y21583D01* X-19359Y21620D01* X-19385Y21661D01* X-19415Y21709D01* X-19441Y21757D01* X-19466Y21813D01* X-19485Y21872D01* X-19500Y21931D01* X-19511Y21998D01* X-19515Y22064D01* Y22090D01* X-19511Y22124D01* X-19507Y22164D01* X-19500Y22209D01* X-19489Y22257D01* X-19474Y22309D01* X-19455Y22360D01* X-19452Y22368D01* X-19444Y22382D01* X-19433Y22408D01* X-19415Y22438D01* X-19392Y22471D01* X-19367Y22505D01* X-19337Y22538D01* X-19304Y22568D01* X-19300Y22571D01* X-19289Y22579D01* X-19270Y22590D01* X-19244Y22604D01* X-19215Y22623D01* X-19178Y22638D01* X-19141Y22653D01* X-19096Y22664D01* X-19093D01* X-19074Y22667D01* X-19048Y22675D01* X-19011Y22679D01* X-18967Y22686D01* X-18908Y22690D01* X-18845Y22693D01* X-18767D01* X-17616D01* Y22201D01* D02* G37* G36* X-18479Y20618D02* X-18442Y20614D01* X-18401Y20606D01* X-18353Y20599D01* X-18305Y20588D01* X-18249Y20573D01* X-18194Y20555D01* X-18135Y20533D01* X-18075Y20507D01* X-18016Y20473D01* X-17961Y20436D01* X-17905Y20396D01* X-17850Y20347D01* X-17846Y20344D01* X-17839Y20336D01* X-17824Y20322D01* X-17805Y20299D01* X-17787Y20274D01* X-17764Y20240D01* X-17739Y20203D01* X-17713Y20163D01* X-17687Y20114D01* X-17661Y20063D01* X-17639Y20007D01* X-17620Y19944D01* X-17602Y19881D01* X-17587Y19811D01* X-17580Y19741D01* X-17576Y19663D01* Y19637D01* X-17580Y19619D01* Y19596D01* X-17583Y19570D01* X-17591Y19508D01* X-17605Y19430D01* X-17624Y19349D01* X-17653Y19263D01* X-17691Y19175D01* Y19171D01* X-17694Y19163D01* X-17702Y19152D01* X-17713Y19138D01* X-17739Y19097D01* X-17776Y19045D01* X-17824Y18990D01* X-17883Y18930D01* X-17950Y18875D01* X-18027Y18823D01* X-18031D01* X-18038Y18819D01* X-18049Y18812D01* X-18068Y18805D01* X-18090Y18797D01* X-18116Y18786D01* X-18146Y18775D01* X-18179Y18764D01* X-18216Y18753D01* X-18257Y18742D01* X-18349Y18723D01* X-18456Y18708D01* X-18571Y18705D01* X-18575D01* X-18582D01* X-18597D01* X-18612Y18708D01* X-18634D01* X-18660Y18712D01* X-18723Y18720D01* X-18793Y18734D01* X-18871Y18756D01* X-18956Y18782D01* X-19041Y18823D01* X-19045D01* X-19052Y18831D01* X-19063Y18834D01* X-19078Y18845D01* X-19119Y18875D01* X-19171Y18912D01* X-19226Y18960D01* X-19285Y19019D01* X-19341Y19086D01* X-19392Y19163D01* Y19167D01* X-19396Y19175D01* X-19404Y19186D01* X-19411Y19204D01* X-19422Y19223D01* X-19430Y19249D01* X-19441Y19278D01* X-19455Y19308D01* X-19478Y19382D01* X-19496Y19467D01* X-19511Y19559D01* X-19515Y19659D01* Y19700D01* X-19511Y19730D01* X-19507Y19767D01* X-19500Y19807D01* X-19492Y19855D01* X-19481Y19904D01* X-19466Y19959D01* X-19448Y20015D01* X-19426Y20070D01* X-19400Y20129D01* X-19367Y20188D01* X-19330Y20244D01* X-19289Y20299D01* X-19241Y20351D01* X-19237Y20355D01* X-19230Y20362D01* X-19211Y20377D01* X-19193Y20392D01* X-19163Y20414D01* X-19133Y20436D01* X-19093Y20462D01* X-19052Y20488D01* X-19004Y20510D01* X-18952Y20536D01* X-18893Y20558D01* X-18834Y20581D01* X-18767Y20595D01* X-18701Y20610D01* X-18627Y20618D01* X-18549Y20621D01* X-18545D01* X-18530D01* X-18508D01* X-18479Y20618D01* D02* G37* G36* X-18382Y18372D02* X-18360Y18364D01* X-18331Y18353D01* X-18297Y18338D01* X-18257Y18324D01* X-18212Y18305D01* X-18164Y18283D01* X-18064Y18231D01* X-17961Y18165D01* X-17861Y18083D01* X-17816Y18039D01* X-17776Y17991D01* X-17772Y17987D01* X-17768Y17979D01* X-17757Y17965D01* X-17742Y17943D01* X-17728Y17917D01* X-17713Y17883D01* X-17694Y17846D01* X-17676Y17806D01* X-17653Y17758D01* X-17635Y17706D01* X-17620Y17650D01* X-17605Y17591D01* X-17591Y17528D01* X-17580Y17458D01* X-17576Y17388D01* X-17572Y17310D01* Y17288D01* X-17576Y17262D01* X-17580Y17225D01* X-17583Y17184D01* X-17591Y17132D01* X-17602Y17077D01* X-17616Y17014D01* X-17635Y16951D01* X-17657Y16884D01* X-17687Y16814D01* X-17720Y16744D01* X-17757Y16673D01* X-17805Y16603D01* X-17857Y16536D01* X-17920Y16474D01* X-17924Y16470D01* X-17935Y16459D01* X-17957Y16444D01* X-17983Y16422D01* X-18020Y16400D01* X-18060Y16370D01* X-18112Y16340D01* X-18171Y16311D01* X-18234Y16281D01* X-18305Y16252D01* X-18386Y16222D01* X-18471Y16200D01* X-18560Y16178D01* X-18660Y16163D01* X-18764Y16152D01* X-18875Y16148D01* X-18878D01* X-18882D01* X-18904D01* X-18937Y16152D01* X-18982D01* X-19034Y16159D01* X-19096Y16166D01* X-19163Y16174D01* X-19241Y16189D01* X-19319Y16207D01* X-19400Y16229D01* X-19481Y16255D01* X-19566Y16289D01* X-19648Y16326D01* X-19726Y16370D01* X-19800Y16418D01* X-19870Y16477D01* X-19873Y16481D01* X-19885Y16492D01* X-19903Y16511D01* X-19925Y16536D01* X-19951Y16570D01* X-19981Y16611D01* X-20014Y16655D01* X-20047Y16710D01* X-20081Y16770D01* X-20114Y16833D01* X-20144Y16906D01* X-20169Y16981D01* X-20192Y17066D01* X-20210Y17151D01* X-20221Y17247D01* X-20225Y17343D01* Y17388D01* X-20221Y17421D01* X-20218Y17461D01* X-20210Y17506D01* X-20203Y17558D01* X-20192Y17613D01* X-20177Y17672D01* X-20158Y17735D01* X-20136Y17798D01* X-20107Y17865D01* X-20077Y17928D01* X-20040Y17987D01* X-19996Y18050D01* X-19948Y18105D01* Y18109D01* X-19940Y18113D01* X-19929Y18124D01* X-19918Y18135D01* X-19899Y18150D01* X-19877Y18165D01* X-19825Y18205D01* X-19759Y18246D01* X-19677Y18290D01* X-19585Y18331D01* X-19478Y18368D01* X-19355Y17857D01* X-19359D01* X-19363Y17854D01* X-19374D01* X-19389Y17846D01* X-19422Y17835D01* X-19466Y17817D01* X-19518Y17791D01* X-19570Y17758D01* X-19622Y17713D01* X-19666Y17665D01* X-19670Y17658D01* X-19685Y17639D01* X-19703Y17609D01* X-19726Y17569D01* X-19748Y17517D01* X-19766Y17458D01* X-19781Y17391D01* X-19785Y17317D01* Y17291D01* X-19781Y17269D01* X-19777Y17247D01* X-19774Y17217D01* X-19759Y17154D01* X-19733Y17080D01* X-19696Y17003D01* X-19674Y16962D01* X-19648Y16925D01* X-19614Y16888D01* X-19578Y16855D01* X-19574D01* X-19566Y16847D01* X-19555Y16840D01* X-19537Y16829D01* X-19515Y16814D01* X-19489Y16799D01* X-19455Y16784D01* X-19418Y16770D01* X-19374Y16751D01* X-19326Y16736D01* X-19270Y16722D01* X-19211Y16707D01* X-19145Y16696D01* X-19074Y16688D01* X-18997Y16684D01* X-18912Y16681D01* X-18908D01* X-18889D01* X-18863D01* X-18834Y16684D01* X-18793D01* X-18745Y16692D01* X-18697Y16696D01* X-18641Y16703D01* X-18527Y16725D01* X-18412Y16755D01* X-18357Y16773D01* X-18305Y16799D01* X-18257Y16825D01* X-18216Y16855D01* X-18212Y16858D01* X-18209Y16862D01* X-18197Y16873D01* X-18183Y16888D01* X-18153Y16925D01* X-18116Y16977D01* X-18075Y17040D01* X-18046Y17117D01* X-18020Y17206D01* X-18016Y17254D01* X-18012Y17306D01* Y17325D01* X-18016Y17339D01* X-18020Y17380D01* X-18027Y17428D01* X-18046Y17480D01* X-18068Y17539D01* X-18098Y17598D01* X-18142Y17658D01* X-18149Y17665D01* X-18168Y17684D01* X-18197Y17709D01* X-18242Y17739D01* X-18301Y17776D01* X-18371Y17809D01* X-18456Y17843D01* X-18556Y17872D01* X-18401Y18375D01* X-18397D01* X-18382Y18372D01* D02* G37* G36* X-17616Y14302D02* X-17887D01* X-17879Y14298D01* X-17861Y14283D01* X-17831Y14257D01* X-17798Y14224D01* X-17761Y14187D01* X-17720Y14139D01* X-17683Y14087D01* X-17650Y14032D01* X-17646Y14024D01* X-17639Y14006D01* X-17628Y13972D01* X-17613Y13935D01* X-17598Y13887D01* X-17587Y13832D01* X-17580Y13776D01* X-17576Y13717D01* Y13688D01* X-17580Y13665D01* X-17583Y13636D01* X-17591Y13606D01* X-17598Y13569D01* X-17609Y13528D01* X-17620Y13488D01* X-17639Y13443D01* X-17657Y13399D01* X-17683Y13351D01* X-17713Y13306D01* X-17746Y13258D01* X-17787Y13214D01* X-17831Y13170D01* X-17835Y13166D01* X-17842Y13158D01* X-17857Y13147D01* X-17879Y13136D01* X-17905Y13118D01* X-17938Y13099D01* X-17975Y13077D01* X-18020Y13058D01* X-18068Y13036D01* X-18120Y13014D01* X-18179Y12996D01* X-18242Y12981D01* X-18312Y12966D01* X-18386Y12955D01* X-18464Y12947D01* X-18549Y12944D01* X-18553D01* X-18571D01* X-18593D01* X-18627Y12947D01* X-18667Y12951D01* X-18712Y12955D01* X-18764Y12962D01* X-18815Y12970D01* X-18934Y12996D01* X-18993Y13014D01* X-19052Y13036D01* X-19111Y13062D01* X-19167Y13092D01* X-19219Y13125D01* X-19267Y13162D01* X-19270Y13166D01* X-19278Y13173D01* X-19289Y13184D01* X-19307Y13203D01* X-19326Y13225D01* X-19344Y13251D01* X-19367Y13281D01* X-19392Y13318D01* X-19415Y13354D01* X-19437Y13399D01* X-19478Y13491D01* X-19492Y13547D01* X-19503Y13602D01* X-19511Y13662D01* X-19515Y13724D01* Y13754D01* X-19511Y13776D01* X-19507Y13802D01* X-19500Y13836D01* X-19492Y13869D01* X-19481Y13909D01* X-19470Y13950D01* X-19452Y13995D01* X-19430Y14039D01* X-19407Y14083D01* X-19374Y14131D01* X-19341Y14176D01* X-19300Y14220D01* X-19256Y14265D01* X-20177D01* Y14757D01* X-17616D01* Y14302D01* D02* G37* G36* X-18401Y11423D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y11427D01* X-18327Y11430D01* X-18275Y11438D01* X-18223Y11453D01* X-18164Y11475D01* X-18109Y11501D01* X-18060Y11538D01* X-18057Y11541D01* X-18042Y11560D01* X-18023Y11582D01* X-18001Y11615D01* X-17979Y11656D01* X-17961Y11708D01* X-17946Y11763D01* X-17942Y11823D01* Y11841D01* X-17946Y11863D01* X-17950Y11889D01* X-17957Y11919D01* X-17968Y11952D01* X-17983Y11986D01* X-18005Y12015D01* X-18009Y12019D01* X-18016Y12030D01* X-18031Y12045D01* X-18053Y12060D01* X-18083Y12082D01* X-18116Y12100D01* X-18160Y12119D01* X-18209Y12137D01* X-18127Y12626D01* X-18123D01* X-18116Y12622D01* X-18101Y12615D01* X-18083Y12607D01* X-18060Y12596D01* X-18035Y12585D01* X-17975Y12552D01* X-17909Y12511D01* X-17839Y12459D01* X-17776Y12396D01* X-17716Y12326D01* Y12322D01* X-17709Y12319D01* X-17705Y12304D01* X-17694Y12289D01* X-17683Y12270D01* X-17672Y12245D01* X-17661Y12219D01* X-17646Y12185D01* X-17620Y12111D01* X-17598Y12026D01* X-17583Y11926D01* X-17576Y11819D01* Y11797D01* X-17580Y11775D01* Y11741D01* X-17587Y11701D01* X-17594Y11653D01* X-17602Y11601D01* X-17616Y11549D01* X-17631Y11490D01* X-17653Y11430D01* X-17679Y11371D01* X-17709Y11312D01* X-17746Y11253D01* X-17787Y11197D01* X-17835Y11149D01* X-17890Y11101D01* X-17894Y11097D01* X-17901Y11094D01* X-17916Y11086D01* X-17935Y11072D01* X-17961Y11061D01* X-17990Y11046D01* X-18023Y11027D01* X-18064Y11012D01* X-18109Y10994D01* X-18157Y10979D01* X-18209Y10961D01* X-18268Y10949D01* X-18327Y10938D01* X-18390Y10927D01* X-18460Y10924D01* X-18530Y10920D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y10924D01* X-18645Y10927D01* X-18689Y10931D01* X-18738Y10938D01* X-18793Y10949D01* X-18908Y10979D01* X-18967Y10998D01* X-19030Y11020D01* X-19089Y11049D01* X-19145Y11083D01* X-19200Y11120D01* X-19252Y11160D01* X-19256Y11164D01* X-19263Y11171D01* X-19278Y11186D01* X-19293Y11205D01* X-19311Y11227D01* X-19333Y11257D01* X-19359Y11290D01* X-19385Y11327D01* X-19407Y11368D01* X-19433Y11416D01* X-19455Y11464D01* X-19474Y11519D01* X-19489Y11575D01* X-19503Y11638D01* X-19511Y11701D01* X-19515Y11767D01* Y11808D01* X-19511Y11838D01* X-19507Y11871D01* X-19500Y11912D01* X-19492Y11956D01* X-19481Y12004D01* X-19466Y12056D01* X-19448Y12108D01* X-19426Y12163D01* X-19396Y12219D01* X-19367Y12270D01* X-19330Y12322D01* X-19285Y12374D01* X-19237Y12418D01* X-19233Y12422D01* X-19226Y12430D01* X-19207Y12441D01* X-19185Y12455D01* X-19156Y12474D01* X-19122Y12492D01* X-19078Y12515D01* X-19030Y12537D01* X-18974Y12559D01* X-18912Y12581D01* X-18845Y12600D01* X-18767Y12618D01* X-18686Y12633D01* X-18597Y12644D01* X-18505Y12652D01* X-18401D01* Y11423D01* D02* G37* G36* X-17646Y10761D02* X-17642Y10757D01* X-17635Y10735D01* X-17624Y10698D01* X-17613Y10650D01* X-17598Y10594D01* X-17587Y10528D01* X-17580Y10454D01* X-17576Y10376D01* Y10354D01* X-17580Y10328D01* X-17583Y10295D01* X-17587Y10258D01* X-17594Y10217D01* X-17605Y10176D01* X-17620Y10136D01* X-17624Y10132D01* X-17628Y10117D01* X-17639Y10098D01* X-17650Y10076D01* X-17687Y10024D01* X-17709Y9999D01* X-17735Y9976D01* X-17739Y9973D01* X-17750Y9969D01* X-17764Y9962D01* X-17787Y9950D01* X-17813Y9939D01* X-17846Y9928D01* X-17883Y9917D01* X-17924Y9910D01* X-17927D01* X-17942Y9906D01* X-17964D01* X-18001Y9902D01* X-18049Y9899D01* X-18109D01* X-18142Y9895D01* X-18183D01* X-18223D01* X-18271D01* X-19082D01* Y9669D01* X-19474D01* Y9895D01* X-19844D01* X-20132Y10387D01* X-19474D01* Y10724D01* X-19082D01* Y10387D01* X-18331D01* X-18327D01* X-18319D01* X-18308D01* X-18294D01* X-18257D01* X-18212D01* X-18168Y10391D01* X-18123D01* X-18090D01* X-18075Y10395D01* X-18068D01* X-18060Y10398D01* X-18046Y10406D01* X-18027Y10417D01* X-18005Y10439D01* X-18001Y10446D01* X-17994Y10461D01* X-17987Y10487D01* X-17983Y10520D01* Y10535D01* X-17987Y10550D01* X-17990Y10572D01* X-17994Y10602D01* X-18001Y10635D01* X-18012Y10676D01* X-18027Y10720D01* X-17646Y10764D01* Y10761D01* D02* G37* G36* X-17616Y8881D02* X-18560D01* X-18564D01* X-18575D01* X-18590D01* X-18608D01* X-18634D01* X-18660D01* X-18723Y8878D01* X-18786Y8874D01* X-18852Y8866D01* X-18908Y8859D01* X-18930Y8855D01* X-18948Y8848D01* X-18952D01* X-18963Y8840D01* X-18978Y8833D01* X-19000Y8822D01* X-19045Y8789D01* X-19067Y8770D01* X-19085Y8744D01* X-19089Y8741D01* X-19093Y8733D01* X-19100Y8718D01* X-19111Y8696D01* X-19122Y8670D01* X-19130Y8644D01* X-19133Y8611D01* X-19137Y8574D01* Y8552D01* X-19133Y8530D01* X-19130Y8500D01* X-19119Y8463D01* X-19108Y8426D01* X-19089Y8385D01* X-19067Y8345D01* X-19063Y8341D01* X-19056Y8330D01* X-19037Y8311D01* X-19019Y8289D01* X-18989Y8267D01* X-18960Y8245D01* X-18919Y8223D01* X-18878Y8208D01* X-18875D01* X-18856Y8200D01* X-18826Y8197D01* X-18782Y8189D01* X-18756Y8186D01* X-18723Y8182D01* X-18689Y8178D01* X-18649D01* X-18608Y8174D01* X-18560Y8171D01* X-18508D01* X-18453D01* X-17616D01* Y7679D01* X-19474D01* Y8134D01* X-19200D01* X-19204Y8138D01* X-19215Y8145D01* X-19230Y8160D01* X-19248Y8178D01* X-19274Y8200D01* X-19300Y8230D01* X-19330Y8263D01* X-19359Y8300D01* X-19385Y8341D01* X-19415Y8389D01* X-19441Y8437D01* X-19466Y8493D01* X-19485Y8552D01* X-19500Y8611D01* X-19511Y8678D01* X-19515Y8744D01* Y8770D01* X-19511Y8804D01* X-19507Y8844D01* X-19500Y8889D01* X-19489Y8937D01* X-19474Y8988D01* X-19455Y9040D01* X-19452Y9048D01* X-19444Y9063D01* X-19433Y9088D01* X-19415Y9118D01* X-19392Y9151D01* X-19367Y9185D01* X-19337Y9218D01* X-19304Y9247D01* X-19300Y9251D01* X-19289Y9259D01* X-19270Y9270D01* X-19244Y9285D01* X-19215Y9303D01* X-19178Y9318D01* X-19141Y9333D01* X-19096Y9344D01* X-19093D01* X-19074Y9347D01* X-19048Y9355D01* X-19011Y9358D01* X-18967Y9366D01* X-18908Y9370D01* X-18845Y9373D01* X-18767D01* X-17616D01* Y8881D01* D02* G37* G36* X-18401Y6054D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y6058D01* X-18327Y6062D01* X-18275Y6069D01* X-18223Y6084D01* X-18164Y6106D01* X-18109Y6132D01* X-18060Y6169D01* X-18057Y6173D01* X-18042Y6191D01* X-18023Y6213D01* X-18001Y6247D01* X-17979Y6288D01* X-17961Y6339D01* X-17946Y6395D01* X-17942Y6454D01* Y6472D01* X-17946Y6495D01* X-17950Y6521D01* X-17957Y6550D01* X-17968Y6583D01* X-17983Y6617D01* X-18005Y6646D01* X-18009Y6650D01* X-18016Y6661D01* X-18031Y6676D01* X-18053Y6691D01* X-18083Y6713D01* X-18116Y6731D01* X-18160Y6750D01* X-18209Y6769D01* X-18127Y7257D01* X-18123D01* X-18116Y7253D01* X-18101Y7246D01* X-18083Y7238D01* X-18060Y7227D01* X-18035Y7216D01* X-17975Y7183D01* X-17909Y7142D01* X-17839Y7090D01* X-17776Y7028D01* X-17716Y6957D01* Y6954D01* X-17709Y6950D01* X-17705Y6935D01* X-17694Y6920D01* X-17683Y6902D01* X-17672Y6876D01* X-17661Y6850D01* X-17646Y6817D01* X-17620Y6743D01* X-17598Y6657D01* X-17583Y6558D01* X-17576Y6450D01* Y6428D01* X-17580Y6406D01* Y6373D01* X-17587Y6332D01* X-17594Y6284D01* X-17602Y6232D01* X-17616Y6180D01* X-17631Y6121D01* X-17653Y6062D01* X-17679Y6003D01* X-17709Y5943D01* X-17746Y5884D01* X-17787Y5829D01* X-17835Y5781D01* X-17890Y5733D01* X-17894Y5729D01* X-17901Y5725D01* X-17916Y5718D01* X-17935Y5703D01* X-17961Y5692D01* X-17990Y5677D01* X-18023Y5658D01* X-18064Y5644D01* X-18109Y5625D01* X-18157Y5610D01* X-18209Y5592D01* X-18268Y5581D01* X-18327Y5570D01* X-18390Y5559D01* X-18460Y5555D01* X-18530Y5551D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y5555D01* X-18645Y5559D01* X-18689Y5562D01* X-18738Y5570D01* X-18793Y5581D01* X-18908Y5610D01* X-18967Y5629D01* X-19030Y5651D01* X-19089Y5681D01* X-19145Y5714D01* X-19200Y5751D01* X-19252Y5792D01* X-19256Y5795D01* X-19263Y5803D01* X-19278Y5818D01* X-19293Y5836D01* X-19311Y5858D01* X-19333Y5888D01* X-19359Y5921D01* X-19385Y5958D01* X-19407Y5999D01* X-19433Y6047D01* X-19455Y6095D01* X-19474Y6151D01* X-19489Y6206D01* X-19503Y6269D01* X-19511Y6332D01* X-19515Y6398D01* Y6439D01* X-19511Y6469D01* X-19507Y6502D01* X-19500Y6543D01* X-19492Y6587D01* X-19481Y6635D01* X-19466Y6687D01* X-19448Y6739D01* X-19426Y6794D01* X-19396Y6850D01* X-19367Y6902D01* X-19330Y6954D01* X-19285Y7005D01* X-19237Y7050D01* X-19233Y7053D01* X-19226Y7061D01* X-19207Y7072D01* X-19185Y7087D01* X-19156Y7105D01* X-19122Y7124D01* X-19078Y7146D01* X-19030Y7168D01* X-18974Y7190D01* X-18912Y7213D01* X-18845Y7231D01* X-18767Y7249D01* X-18686Y7264D01* X-18597Y7275D01* X-18505Y7283D01* X-18401D01* Y6054D01* D02* G37* G36* X-17616Y4696D02* X-19474D01* Y5189D01* X-17616D01* Y4696D01* D02* G37* G36* X-19722D02* X-20177D01* Y5189D01* X-19722D01* Y4696D01* D02* G37* G36* X-18993Y4330D02* X-18997Y4326D01* X-19004Y4308D01* X-19019Y4286D01* X-19034Y4256D01* X-19048Y4219D01* X-19063Y4182D01* X-19071Y4141D01* X-19074Y4101D01* Y4086D01* X-19071Y4064D01* X-19067Y4042D01* X-19060Y4016D01* X-19048Y3986D01* X-19034Y3957D01* X-19015Y3927D01* X-19011Y3923D01* X-19004Y3916D01* X-18989Y3901D01* X-18967Y3886D01* X-18941Y3868D01* X-18904Y3849D01* X-18860Y3831D01* X-18808Y3816D01* X-18801D01* X-18789Y3812D01* X-18778Y3808D01* X-18760D01* X-18738Y3805D01* X-18708Y3801D01* X-18675Y3797D01* X-18638Y3794D01* X-18590Y3790D01* X-18541Y3786D01* X-18482D01* X-18419Y3783D01* X-18349Y3779D01* X-18271D01* X-18186D01* X-17616D01* Y3287D01* X-19474D01* Y3742D01* X-19211D01* X-19215Y3746D01* X-19237Y3760D01* X-19270Y3783D01* X-19311Y3812D01* X-19352Y3842D01* X-19392Y3879D01* X-19430Y3912D01* X-19455Y3949D01* X-19459Y3953D01* X-19466Y3964D01* X-19474Y3986D01* X-19485Y4012D01* X-19496Y4042D01* X-19507Y4079D01* X-19511Y4116D01* X-19515Y4160D01* Y4190D01* X-19511Y4223D01* X-19503Y4264D01* X-19492Y4315D01* X-19474Y4371D01* X-19452Y4426D01* X-19418Y4486D01* X-18993Y4330D01* D02* G37* G36* X-18834Y2902D02* X-18789D01* X-18738Y2895D01* X-18678Y2887D01* X-18608Y2876D01* X-18538Y2865D01* X-18460Y2847D01* X-18379Y2824D01* X-18297Y2795D01* X-18216Y2761D01* X-18138Y2724D01* X-18060Y2676D01* X-17987Y2624D01* X-17916Y2565D01* X-17912Y2562D01* X-17901Y2551D01* X-17883Y2532D01* X-17861Y2502D01* X-17835Y2469D01* X-17805Y2428D01* X-17776Y2380D01* X-17742Y2328D01* X-17709Y2266D01* X-17679Y2199D01* X-17650Y2125D01* X-17624Y2044D01* X-17602Y1959D01* X-17583Y1866D01* X-17572Y1770D01* X-17568Y1666D01* Y1640D01* X-17572Y1611D01* X-17576Y1574D01* X-17580Y1526D01* X-17587Y1470D01* X-17598Y1407D01* X-17613Y1341D01* X-17631Y1267D01* X-17653Y1196D01* X-17683Y1119D01* X-17716Y1045D01* X-17753Y967D01* X-17801Y897D01* X-17853Y826D01* X-17916Y760D01* X-17920Y756D01* X-17931Y745D01* X-17953Y730D01* X-17979Y708D01* X-18016Y682D01* X-18060Y652D01* X-18109Y623D01* X-18168Y593D01* X-18231Y560D01* X-18305Y530D01* X-18382Y501D01* X-18467Y475D01* X-18560Y453D01* X-18660Y438D01* X-18767Y427D01* X-18878Y423D01* X-18882D01* X-18897D01* X-18915D01* X-18945Y427D01* X-18978D01* X-19015Y430D01* X-19060Y434D01* X-19108Y438D01* X-19211Y453D01* X-19322Y471D01* X-19433Y501D01* X-19537Y538D01* X-19541D01* X-19544Y541D01* X-19555Y549D01* X-19570Y552D01* X-19607Y575D01* X-19655Y601D01* X-19711Y634D01* X-19766Y675D01* X-19829Y723D01* X-19888Y775D01* X-19892Y778D01* X-19896Y782D01* X-19914Y800D01* X-19944Y834D01* X-19977Y874D01* X-20014Y922D01* X-20055Y978D01* X-20092Y1041D01* X-20121Y1108D01* Y1111D01* X-20125Y1119D01* X-20132Y1133D01* X-20136Y1152D01* X-20147Y1174D01* X-20155Y1200D01* X-20162Y1233D01* X-20173Y1267D01* X-20192Y1348D01* X-20210Y1441D01* X-20221Y1548D01* X-20225Y1659D01* Y1685D01* X-20221Y1714D01* Y1751D01* X-20214Y1799D01* X-20207Y1855D01* X-20195Y1918D01* X-20181Y1984D01* X-20162Y2055D01* X-20140Y2129D01* X-20110Y2203D01* X-20077Y2280D01* X-20036Y2354D01* X-19988Y2428D01* X-19933Y2499D01* X-19870Y2565D01* X-19866Y2569D01* X-19855Y2580D01* X-19833Y2599D01* X-19807Y2617D01* X-19770Y2643D01* X-19726Y2673D01* X-19674Y2702D01* X-19614Y2736D01* X-19552Y2769D01* X-19478Y2798D01* X-19396Y2828D01* X-19311Y2854D01* X-19215Y2876D01* X-19115Y2891D01* X-19008Y2902D01* X-18893Y2906D01* X-18886D01* X-18867D01* X-18834Y2902D01* D02* G37* G36* X-18301Y-724D02* X-18793D01* Y242D01* X-18301D01* Y-724D01* D02* G37* G36* X-17616Y-1605D02* X-17887D01* X-17879Y-1608D01* X-17861Y-1623D01* X-17831Y-1649D01* X-17798Y-1682D01* X-17761Y-1719D01* X-17720Y-1767D01* X-17683Y-1819D01* X-17650Y-1875D01* X-17646Y-1882D01* X-17639Y-1901D01* X-17628Y-1934D01* X-17613Y-1971D01* X-17598Y-2019D01* X-17587Y-2074D01* X-17580Y-2130D01* X-17576Y-2189D01* Y-2219D01* X-17580Y-2241D01* X-17583Y-2271D01* X-17591Y-2300D01* X-17598Y-2337D01* X-17609Y-2378D01* X-17620Y-2419D01* X-17639Y-2463D01* X-17657Y-2507D01* X-17683Y-2555D01* X-17713Y-2600D01* X-17746Y-2648D01* X-17787Y-2692D01* X-17831Y-2737D01* X-17835Y-2740D01* X-17842Y-2748D01* X-17857Y-2759D01* X-17879Y-2770D01* X-17905Y-2789D01* X-17938Y-2807D01* X-17975Y-2829D01* X-18020Y-2848D01* X-18068Y-2870D01* X-18120Y-2892D01* X-18179Y-2911D01* X-18242Y-2926D01* X-18312Y-2940D01* X-18386Y-2951D01* X-18464Y-2959D01* X-18549Y-2963D01* X-18553D01* X-18571D01* X-18593D01* X-18627Y-2959D01* X-18667Y-2955D01* X-18712Y-2951D01* X-18764Y-2944D01* X-18815Y-2937D01* X-18934Y-2911D01* X-18993Y-2892D01* X-19052Y-2870D01* X-19111Y-2844D01* X-19167Y-2815D01* X-19219Y-2781D01* X-19267Y-2744D01* X-19270Y-2740D01* X-19278Y-2733D01* X-19289Y-2722D01* X-19307Y-2703D01* X-19326Y-2681D01* X-19344Y-2655D01* X-19367Y-2626D01* X-19392Y-2589D01* X-19415Y-2552D01* X-19437Y-2507D01* X-19478Y-2415D01* X-19492Y-2359D01* X-19503Y-2304D01* X-19511Y-2245D01* X-19515Y-2182D01* Y-2152D01* X-19511Y-2130D01* X-19507Y-2104D01* X-19500Y-2071D01* X-19492Y-2038D01* X-19481Y-1997D01* X-19470Y-1956D01* X-19452Y-1912D01* X-19430Y-1867D01* X-19407Y-1823D01* X-19374Y-1775D01* X-19341Y-1730D01* X-19300Y-1686D01* X-19256Y-1642D01* X-20177D01* Y-1149D01* X-17616D01* Y-1605D01* D02* G37* G36* Y-3850D02* X-20177D01* Y-3358D01* X-17616D01* Y-3850D01* D02* G37* G36* X-18401Y-5478D02* X-18397D01* X-18390D01* X-18379D01* X-18364Y-5475D01* X-18327Y-5471D01* X-18275Y-5464D01* X-18223Y-5449D01* X-18164Y-5427D01* X-18109Y-5401D01* X-18060Y-5364D01* X-18057Y-5360D01* X-18042Y-5342D01* X-18023Y-5319D01* X-18001Y-5286D01* X-17979Y-5245D01* X-17961Y-5194D01* X-17946Y-5138D01* X-17942Y-5079D01* Y-5060D01* X-17946Y-5038D01* X-17950Y-5012D01* X-17957Y-4983D01* X-17968Y-4949D01* X-17983Y-4916D01* X-18005Y-4887D01* X-18009Y-4883D01* X-18016Y-4872D01* X-18031Y-4857D01* X-18053Y-4842D01* X-18083Y-4820D01* X-18116Y-4801D01* X-18160Y-4783D01* X-18209Y-4764D01* X-18127Y-4276D01* X-18123D01* X-18116Y-4280D01* X-18101Y-4287D01* X-18083Y-4295D01* X-18060Y-4306D01* X-18035Y-4317D01* X-17975Y-4350D01* X-17909Y-4391D01* X-17839Y-4442D01* X-17776Y-4505D01* X-17716Y-4576D01* Y-4579D01* X-17709Y-4583D01* X-17705Y-4598D01* X-17694Y-4613D01* X-17683Y-4631D01* X-17672Y-4657D01* X-17661Y-4683D01* X-17646Y-4716D01* X-17620Y-4790D01* X-17598Y-4875D01* X-17583Y-4975D01* X-17576Y-5083D01* Y-5105D01* X-17580Y-5127D01* Y-5160D01* X-17587Y-5201D01* X-17594Y-5249D01* X-17602Y-5301D01* X-17616Y-5353D01* X-17631Y-5412D01* X-17653Y-5471D01* X-17679Y-5530D01* X-17709Y-5590D01* X-17746Y-5649D01* X-17787Y-5704D01* X-17835Y-5752D01* X-17890Y-5800D01* X-17894Y-5804D01* X-17901Y-5808D01* X-17916Y-5815D01* X-17935Y-5830D01* X-17961Y-5841D01* X-17990Y-5856D01* X-18023Y-5874D01* X-18064Y-5889D01* X-18109Y-5908D01* X-18157Y-5923D01* X-18209Y-5941D01* X-18268Y-5952D01* X-18327Y-5963D01* X-18390Y-5974D01* X-18460Y-5978D01* X-18530Y-5982D01* X-18534D01* X-18549D01* X-18575D01* X-18608Y-5978D01* X-18645Y-5974D01* X-18689Y-5971D01* X-18738Y-5963D01* X-18793Y-5952D01* X-18908Y-5923D01* X-18967Y-5904D01* X-19030Y-5882D01* X-19089Y-5852D01* X-19145Y-5819D01* X-19200Y-5782D01* X-19252Y-5741D01* X-19256Y-5737D01* X-19263Y-5730D01* X-19278Y-5715D01* X-19293Y-5697D01* X-19311Y-5675D01* X-19333Y-5645D01* X-19359Y-5612D01* X-19385Y-5575D01* X-19407Y-5534D01* X-19433Y-5486D01* X-19455Y-5438D01* X-19474Y-5382D01* X-19489Y-5327D01* X-19503Y-5264D01* X-19511Y-5201D01* X-19515Y-5134D01* Y-5094D01* X-19511Y-5064D01* X-19507Y-5031D01* X-19500Y-4990D01* X-19492Y-4946D01* X-19481Y-4898D01* X-19466Y-4846D01* X-19448Y-4794D01* X-19426Y-4738D01* X-19396Y-4683D01* X-19367Y-4631D01* X-19330Y-4579D01* X-19285Y-4528D01* X-19237Y-4483D01* X-19233Y-4479D01* X-19226Y-4472D01* X-19207Y-4461D01* X-19185Y-4446D01* X-19156Y-4428D01* X-19122Y-4409D01* X-19078Y-4387D01* X-19030Y-4365D01* X-18974Y-4343D01* X-18912Y-4320D01* X-18845Y-4302D01* X-18767Y-4283D01* X-18686Y-4269D01* X-18597Y-4258D01* X-18505Y-4250D01* X-18401D01* Y-5478D01* D02* G37* G36* X-17616Y-6836D02* X-19474D01* Y-6344D01* X-17616D01* Y-6836D01* D02* G37* G36* X-19722D02* X-20177D01* Y-6344D01* X-19722D01* Y-6836D01* D02* G37* G36* X-19744Y-8498D02* X-19137D01* Y-7428D01* X-18704D01* Y-8498D01* X-17616D01* Y-9016D01* X-20177D01* Y-7258D01* X-19744D01* Y-8498D01* D02* G37* G36* X-16895Y-11206D02* X-20177D01* Y-10337D01* X-19792D01* Y-10740D01* X-17280D01* Y-10337D01* X-16895D01* Y-11206D01* D02* G37* G36* X33802Y-15779D02* X33265D01* X32450Y-13175D01* X32970D01* X33540Y-15301D01* X34118Y-13175D01* X34617D01* X33802Y-15779D01* D02* G37* G36* X31988Y-13554D02* X31019D01* Y-14186D01* X31027Y-14182D01* X31044Y-14169D01* X31077Y-14157D01* X31123Y-14136D01* X31177Y-14119D01* X31240Y-14107D01* X31314Y-14094D01* X31398Y-14090D01* X31435D01* X31473Y-14094D01* X31527Y-14103D01* X31585Y-14115D01* X31647Y-14136D01* X31714Y-14161D01* X31776Y-14194D01* X31784Y-14198D01* X31805Y-14211D01* X31834Y-14236D01* X31872Y-14269D01* X31913Y-14311D01* X31959Y-14361D01* X32001Y-14419D01* X32038Y-14485D01* X32042Y-14494D01* X32055Y-14519D01* X32067Y-14556D01* X32088Y-14610D01* X32105Y-14677D01* X32117Y-14752D01* X32130Y-14835D01* X32134Y-14926D01* Y-14931D01* Y-14939D01* Y-14951D01* Y-14972D01* X32130Y-14993D01* Y-15022D01* X32117Y-15085D01* X32105Y-15159D01* X32084Y-15238D01* X32055Y-15322D01* X32013Y-15401D01* Y-15405D01* X32009Y-15409D01* X31993Y-15434D01* X31963Y-15471D01* X31930Y-15517D01* X31880Y-15567D01* X31822Y-15621D01* X31755Y-15671D01* X31681Y-15717D01* X31676D01* X31672Y-15721D01* X31660Y-15725D01* X31643Y-15733D01* X31597Y-15750D01* X31539Y-15771D01* X31468Y-15792D01* X31381Y-15808D01* X31289Y-15821D01* X31185Y-15825D01* X31165D01* X31140Y-15821D01* X31106D01* X31065Y-15812D01* X31015Y-15804D01* X30961Y-15796D01* X30903Y-15779D01* X30840Y-15758D01* X30774Y-15738D01* X30707Y-15709D01* X30641Y-15671D01* X30570Y-15629D01* X30503Y-15584D01* X30437Y-15525D01* X30374Y-15463D01* X30657Y-15193D01* X30661Y-15197D01* X30670Y-15201D01* X30682Y-15213D01* X30699Y-15230D01* X30720Y-15247D01* X30744Y-15268D01* X30807Y-15313D01* X30886Y-15359D01* X30973Y-15396D01* X31019Y-15413D01* X31069Y-15421D01* X31119Y-15430D01* X31169Y-15434D01* X31177D01* X31206Y-15430D01* X31244Y-15426D01* X31294Y-15417D01* X31348Y-15401D01* X31402Y-15380D01* X31456Y-15347D01* X31506Y-15305D01* X31510Y-15297D01* X31527Y-15280D01* X31547Y-15251D01* X31568Y-15209D01* X31593Y-15155D01* X31610Y-15089D01* X31626Y-15014D01* X31631Y-14926D01* Y-14922D01* Y-14914D01* Y-14901D01* Y-14885D01* X31626Y-14843D01* X31618Y-14789D01* X31606Y-14731D01* X31585Y-14673D01* X31560Y-14619D01* X31527Y-14573D01* X31522Y-14569D01* X31510Y-14556D01* X31485Y-14535D01* X31456Y-14515D01* X31414Y-14498D01* X31368Y-14477D01* X31314Y-14465D01* X31252Y-14460D01* X31223D01* X31202Y-14465D01* X31152Y-14469D01* X31090Y-14481D01* X31086D01* X31077Y-14485D01* X31061Y-14490D01* X31036Y-14498D01* X31011Y-14506D01* X30977Y-14519D01* X30903Y-14548D01* X30553D01* Y-13175D01* X32047D01* X31988Y-13554D01* D02* G37* G36* X-49400Y-21700D02* X-58000D01* Y12400D01* X-49400D01* Y-21700D01* D02* G37* G36* X44368Y-4608D02* X43384D01* Y-3698D01* X44368D01* Y-4608D01* D02* G37* G36* Y-8819D02* X43384D01* Y-5104D01* X44368D01* Y-8819D01* D02* G37* G36* X37701Y-6932D02* X38337D01* Y-7790D01* X37701D01* Y-8819D01* X36754D01* Y-7790D01* X34652D01* Y-6939D01* X36872Y-3676D01* X37701D01* Y-6932D01* D02* G37* G36* X33350Y-8819D02* X32365D01* Y-5111D01* X32358Y-5119D01* X32343Y-5133D01* X32314Y-5156D01* X32269Y-5193D01* X32217Y-5237D01* X32158Y-5281D01* X32084Y-5333D01* X32003Y-5392D01* X31914Y-5452D01* X31818Y-5511D01* X31714Y-5577D01* X31603Y-5637D01* X31366Y-5748D01* X31100Y-5851D01* Y-4963D01* X31107D01* X31115Y-4956D01* X31137Y-4948D01* X31167Y-4941D01* X31241Y-4904D01* X31344Y-4860D01* X31470Y-4800D01* X31611Y-4719D01* X31766Y-4615D01* X31929Y-4497D01* X31936Y-4490D01* X31951Y-4482D01* X31973Y-4460D01* X32003Y-4430D01* X32084Y-4356D01* X32173Y-4260D01* X32277Y-4142D01* X32380Y-3994D01* X32476Y-3838D01* X32550Y-3668D01* X33350D01* Y-8819D01* D02* G37* G36* X46411Y-5104D02* X47084D01* Y-5888D01* X46411D01* Y-7390D01* Y-7398D01* Y-7413D01* Y-7435D01* Y-7464D01* Y-7538D01* Y-7627D01* X46418Y-7716D01* Y-7805D01* Y-7871D01* X46425Y-7901D01* Y-7916D01* X46433Y-7931D01* X46448Y-7960D01* X46470Y-7997D01* X46514Y-8042D01* X46529Y-8049D01* X46559Y-8064D01* X46610Y-8079D01* X46677Y-8086D01* X46707D01* X46736Y-8079D01* X46781Y-8071D01* X46840Y-8064D01* X46906Y-8049D01* X46988Y-8027D01* X47077Y-7997D01* X47165Y-8759D01* X47158D01* X47151Y-8767D01* X47106Y-8782D01* X47032Y-8804D01* X46936Y-8826D01* X46825Y-8856D01* X46692Y-8878D01* X46544Y-8893D01* X46388Y-8900D01* X46344D01* X46292Y-8893D01* X46226Y-8885D01* X46152Y-8878D01* X46070Y-8863D01* X45989Y-8841D01* X45907Y-8811D01* X45900Y-8804D01* X45870Y-8796D01* X45833Y-8774D01* X45789Y-8752D01* X45685Y-8678D01* X45634Y-8634D01* X45589Y-8582D01* X45582Y-8574D01* X45574Y-8552D01* X45560Y-8523D01* X45537Y-8478D01* X45515Y-8426D01* X45493Y-8360D01* X45471Y-8286D01* X45456Y-8204D01* Y-8197D01* X45449Y-8167D01* Y-8123D01* X45441Y-8049D01* X45434Y-7953D01* Y-7834D01* X45426Y-7768D01* Y-7686D01* Y-7605D01* Y-7509D01* Y-5888D01* X44975D01* Y-5104D01* X45426D01* Y-4364D01* X46411Y-3787D01* Y-5104D01* D02* G37* G36* X39958Y-5540D02* X39965Y-5533D01* X39980Y-5518D01* X40002Y-5496D01* X40039Y-5459D01* X40084Y-5422D01* X40135Y-5378D01* X40195Y-5326D01* X40261Y-5281D01* X40417Y-5185D01* X40602Y-5104D01* X40698Y-5067D01* X40809Y-5045D01* X40920Y-5030D01* X41031Y-5022D01* X41097D01* X41142Y-5030D01* X41201Y-5037D01* X41268Y-5052D01* X41342Y-5067D01* X41430Y-5082D01* X41608Y-5141D01* X41697Y-5185D01* X41793Y-5230D01* X41889Y-5289D01* X41978Y-5355D01* X42067Y-5429D01* X42156Y-5518D01* X42163Y-5526D01* X42178Y-5540D01* X42200Y-5570D01* X42230Y-5607D01* X42259Y-5659D01* X42296Y-5718D01* X42341Y-5792D01* X42385Y-5873D01* X42422Y-5970D01* X42466Y-6073D01* X42503Y-6192D01* X42540Y-6317D01* X42563Y-6451D01* X42585Y-6599D01* X42600Y-6754D01* X42607Y-6924D01* Y-6932D01* Y-6969D01* Y-7013D01* X42600Y-7080D01* X42592Y-7161D01* X42585Y-7250D01* X42570Y-7353D01* X42548Y-7464D01* X42496Y-7701D01* X42459Y-7820D01* X42415Y-7945D01* X42363Y-8064D01* X42296Y-8182D01* X42230Y-8286D01* X42148Y-8389D01* X42141Y-8397D01* X42126Y-8412D01* X42104Y-8434D01* X42067Y-8471D01* X42022Y-8508D01* X41971Y-8552D01* X41911Y-8597D01* X41845Y-8641D01* X41763Y-8693D01* X41682Y-8737D01* X41490Y-8819D01* X41386Y-8856D01* X41282Y-8878D01* X41164Y-8893D01* X41046Y-8900D01* X40994D01* X40927Y-8893D01* X40846Y-8878D01* X40750Y-8863D01* X40646Y-8833D01* X40535Y-8796D01* X40417Y-8745D01* X40402Y-8737D01* X40365Y-8715D01* X40306Y-8678D01* X40232Y-8626D01* X40150Y-8560D01* X40061Y-8486D01* X39973Y-8389D01* X39884Y-8278D01* Y-8819D01* X38974D01* Y-3698D01* X39958D01* Y-5540D01* D02* G37* G36* X22358Y-56854D02* X21821D01* X21006Y-54250D01* X21526D01* X22096Y-56376D01* X22674Y-54250D01* X23173D01* X22358Y-56854D01* D02* G37* G36* X24321Y-54204D02* X24379Y-54213D01* X24450Y-54221D01* X24525Y-54238D01* X24600Y-54263D01* X24675Y-54292D01* X24679D01* X24683Y-54296D01* X24708Y-54308D01* X24741Y-54329D01* X24787Y-54354D01* X24833Y-54391D01* X24883Y-54433D01* X24933Y-54483D01* X24974Y-54537D01* X24979Y-54545D01* X24991Y-54562D01* X25008Y-54595D01* X25028Y-54637D01* X25045Y-54687D01* X25062Y-54745D01* X25074Y-54807D01* X25078Y-54874D01* Y-54878D01* Y-54887D01* Y-54899D01* X25074Y-54916D01* X25070Y-54961D01* X25062Y-55015D01* X25041Y-55082D01* X25016Y-55153D01* X24979Y-55219D01* X24929Y-55286D01* X24920Y-55294D01* X24904Y-55311D01* X24870Y-55340D01* X24829Y-55369D01* X24775Y-55402D01* X24716Y-55431D01* X24650Y-55452D01* X24575Y-55461D01* X24600D01* X24617Y-55465D01* X24658Y-55469D01* X24716Y-55485D01* X24779Y-55506D01* X24845Y-55535D01* X24916Y-55577D01* X24983Y-55635D01* X24991Y-55644D01* X25012Y-55664D01* X25037Y-55702D01* X25070Y-55756D01* X25103Y-55822D01* X25128Y-55901D01* X25149Y-55993D01* X25157Y-56097D01* Y-56101D01* Y-56105D01* Y-56118D01* Y-56134D01* X25153Y-56176D01* X25141Y-56234D01* X25128Y-56297D01* X25107Y-56367D01* X25078Y-56438D01* X25037Y-56509D01* X25033Y-56517D01* X25016Y-56538D01* X24987Y-56571D01* X24949Y-56613D01* X24904Y-56659D01* X24845Y-56709D01* X24779Y-56754D01* X24700Y-56796D01* X24696D01* X24691Y-56800D01* X24679Y-56804D01* X24662Y-56813D01* X24642Y-56821D01* X24617Y-56829D01* X24558Y-56846D01* X24484Y-56867D01* X24400Y-56883D01* X24305Y-56896D01* X24205Y-56900D01* X24163D01* X24138Y-56896D01* X24113D01* X24047Y-56887D01* X23972Y-56879D01* X23893Y-56862D01* X23810Y-56837D01* X23722Y-56808D01* X23718D01* X23714Y-56804D01* X23701Y-56800D01* X23685Y-56792D01* X23643Y-56767D01* X23593Y-56738D01* X23535Y-56696D01* X23469Y-56646D01* X23406Y-56584D01* X23344Y-56513D01* X23639Y-56255D01* X23643Y-56259D01* X23660Y-56276D01* X23685Y-56301D01* X23718Y-56330D01* X23755Y-56363D01* X23797Y-56397D01* X23843Y-56426D01* X23893Y-56451D01* X23901Y-56455D01* X23918Y-56459D01* X23943Y-56467D01* X23980Y-56480D01* X24022Y-56492D01* X24072Y-56501D01* X24126Y-56505D01* X24180Y-56509D01* X24217D01* X24259Y-56505D01* X24309Y-56496D01* X24363Y-56480D01* X24421Y-56463D01* X24479Y-56434D01* X24529Y-56397D01* X24533Y-56392D01* X24550Y-56376D01* X24571Y-56351D01* X24596Y-56313D01* X24617Y-56268D01* X24637Y-56213D01* X24654Y-56151D01* X24658Y-56080D01* Y-56076D01* Y-56064D01* X24654Y-56043D01* X24650Y-56018D01* X24646Y-55985D01* X24633Y-55951D01* X24621Y-55914D01* X24600Y-55877D01* X24579Y-55839D01* X24546Y-55802D01* X24513Y-55768D01* X24467Y-55735D01* X24417Y-55710D01* X24355Y-55689D01* X24284Y-55677D01* X24205Y-55673D01* X23951D01* X24001Y-55303D01* X24217D01* X24251Y-55298D01* X24292Y-55290D01* X24338Y-55282D01* X24388Y-55265D01* X24434Y-55240D01* X24479Y-55211D01* X24484Y-55207D01* X24496Y-55194D01* X24517Y-55169D01* X24538Y-55140D01* X24558Y-55103D01* X24579Y-55053D01* X24592Y-54999D01* X24596Y-54936D01* Y-54928D01* Y-54911D01* X24592Y-54878D01* X24583Y-54845D01* X24567Y-54803D01* X24550Y-54762D01* X24521Y-54720D01* X24484Y-54683D01* X24479Y-54678D01* X24463Y-54670D01* X24442Y-54654D01* X24409Y-54637D01* X24367Y-54620D01* X24317Y-54604D01* X24259Y-54595D01* X24196Y-54591D01* X24171D01* X24142Y-54595D01* X24109Y-54599D01* X24068Y-54604D01* X24022Y-54612D01* X23976Y-54629D01* X23930Y-54645D01* X23926Y-54649D01* X23909Y-54654D01* X23885Y-54666D01* X23855Y-54687D01* X23814Y-54708D01* X23772Y-54737D01* X23722Y-54774D01* X23668Y-54816D01* X23419Y-54545D01* X23423Y-54541D01* X23435Y-54529D01* X23452Y-54512D01* X23481Y-54491D01* X23510Y-54466D01* X23552Y-54437D01* X23597Y-54404D01* X23647Y-54371D01* X23706Y-54342D01* X23768Y-54308D01* X23835Y-54279D01* X23905Y-54254D01* X23980Y-54233D01* X24059Y-54217D01* X24142Y-54204D01* X24230Y-54200D01* X24271D01* X24321Y-54204D01* D02* G37* G36* X19820D02* X19878Y-54213D01* X19949Y-54221D01* X20024Y-54238D01* X20099Y-54263D01* X20174Y-54292D01* X20178D01* X20182Y-54296D01* X20207Y-54308D01* X20240Y-54329D01* X20286Y-54354D01* X20332Y-54391D01* X20382Y-54433D01* X20432Y-54483D01* X20473Y-54537D01* X20477Y-54545D01* X20490Y-54562D01* X20507Y-54595D01* X20527Y-54637D01* X20544Y-54687D01* X20561Y-54745D01* X20573Y-54807D01* X20577Y-54874D01* Y-54878D01* Y-54887D01* Y-54899D01* X20573Y-54916D01* X20569Y-54961D01* X20561Y-55015D01* X20540Y-55082D01* X20515Y-55153D01* X20477Y-55219D01* X20427Y-55286D01* X20419Y-55294D01* X20403Y-55311D01* X20369Y-55340D01* X20328Y-55369D01* X20274Y-55402D01* X20215Y-55431D01* X20149Y-55452D01* X20074Y-55461D01* X20099D01* X20116Y-55465D01* X20157Y-55469D01* X20215Y-55485D01* X20278Y-55506D01* X20344Y-55535D01* X20415Y-55577D01* X20482Y-55635D01* X20490Y-55644D01* X20511Y-55664D01* X20536Y-55702D01* X20569Y-55756D01* X20602Y-55822D01* X20627Y-55901D01* X20648Y-55993D01* X20656Y-56097D01* Y-56101D01* Y-56105D01* Y-56118D01* Y-56134D01* X20652Y-56176D01* X20640Y-56234D01* X20627Y-56297D01* X20606Y-56367D01* X20577Y-56438D01* X20536Y-56509D01* X20531Y-56517D01* X20515Y-56538D01* X20486Y-56571D01* X20448Y-56613D01* X20403Y-56659D01* X20344Y-56709D01* X20278Y-56754D01* X20199Y-56796D01* X20195D01* X20190Y-56800D01* X20178Y-56804D01* X20161Y-56813D01* X20141Y-56821D01* X20116Y-56829D01* X20057Y-56846D01* X19982Y-56867D01* X19899Y-56883D01* X19804Y-56896D01* X19704Y-56900D01* X19662D01* X19637Y-56896D01* X19612D01* X19546Y-56887D01* X19471Y-56879D01* X19392Y-56862D01* X19308Y-56837D01* X19221Y-56808D01* X19217D01* X19213Y-56804D01* X19200Y-56800D01* X19184Y-56792D01* X19142Y-56767D01* X19092Y-56738D01* X19034Y-56696D01* X18967Y-56646D01* X18905Y-56584D01* X18843Y-56513D01* X19138Y-56255D01* X19142Y-56259D01* X19159Y-56276D01* X19184Y-56301D01* X19217Y-56330D01* X19254Y-56363D01* X19296Y-56397D01* X19342Y-56426D01* X19392Y-56451D01* X19400Y-56455D01* X19417Y-56459D01* X19442Y-56467D01* X19479Y-56480D01* X19521Y-56492D01* X19571Y-56501D01* X19625Y-56505D01* X19679Y-56509D01* X19716D01* X19758Y-56505D01* X19808Y-56496D01* X19862Y-56480D01* X19920Y-56463D01* X19978Y-56434D01* X20028Y-56397D01* X20032Y-56392D01* X20049Y-56376D01* X20070Y-56351D01* X20095Y-56313D01* X20116Y-56268D01* X20136Y-56213D01* X20153Y-56151D01* X20157Y-56080D01* Y-56076D01* Y-56064D01* X20153Y-56043D01* X20149Y-56018D01* X20145Y-55985D01* X20132Y-55951D01* X20120Y-55914D01* X20099Y-55877D01* X20078Y-55839D01* X20045Y-55802D01* X20011Y-55768D01* X19966Y-55735D01* X19916Y-55710D01* X19853Y-55689D01* X19783Y-55677D01* X19704Y-55673D01* X19450D01* X19500Y-55303D01* X19716D01* X19749Y-55298D01* X19791Y-55290D01* X19837Y-55282D01* X19887Y-55265D01* X19932Y-55240D01* X19978Y-55211D01* X19982Y-55207D01* X19995Y-55194D01* X20016Y-55169D01* X20037Y-55140D01* X20057Y-55103D01* X20078Y-55053D01* X20091Y-54999D01* X20095Y-54936D01* Y-54928D01* Y-54911D01* X20091Y-54878D01* X20082Y-54845D01* X20066Y-54803D01* X20049Y-54762D01* X20020Y-54720D01* X19982Y-54683D01* X19978Y-54678D01* X19962Y-54670D01* X19941Y-54654D01* X19907Y-54637D01* X19866Y-54620D01* X19816Y-54604D01* X19758Y-54595D01* X19695Y-54591D01* X19670D01* X19641Y-54595D01* X19608Y-54599D01* X19566Y-54604D01* X19521Y-54612D01* X19475Y-54629D01* X19429Y-54645D01* X19425Y-54649D01* X19408Y-54654D01* X19383Y-54666D01* X19354Y-54687D01* X19313Y-54708D01* X19271Y-54737D01* X19221Y-54774D01* X19167Y-54816D01* X18917Y-54545D01* X18922Y-54541D01* X18934Y-54529D01* X18951Y-54512D01* X18980Y-54491D01* X19009Y-54466D01* X19051Y-54437D01* X19096Y-54404D01* X19146Y-54371D01* X19205Y-54342D01* X19267Y-54308D01* X19333Y-54279D01* X19404Y-54254D01* X19479Y-54233D01* X19558Y-54217D01* X19641Y-54204D01* X19729Y-54200D01* X19770D01* X19820Y-54204D01* D02* G37* G36* X-52465Y23250D02* X-58000D01* Y45541D01* X-52465D01* Y23250D01* D02* G37* G36* X37554Y-31698D02* X37604Y-31703D01* X37665Y-31714D01* X37726Y-31725D01* X37792Y-31737D01* X37937Y-31781D01* X38009Y-31814D01* X38081Y-31848D01* X38148Y-31892D01* X38220Y-31942D01* X38281Y-31997D01* X38336Y-32064D01* X38342Y-32070D01* X38347Y-32081D01* X38364Y-32103D01* X38381Y-32131D01* X38403Y-32169D01* X38425Y-32214D01* X38453Y-32269D01* X38475Y-32330D01* X38503Y-32397D01* X38530Y-32469D01* X38553Y-32552D01* X38575Y-32641D01* X38592Y-32736D01* X38608Y-32841D01* X38614Y-32947D01* X38619Y-33063D01* Y-33424D01* X39824D01* Y-34090D01* X36349D01* Y-33035D01* X36355Y-32991D01* X36360Y-32935D01* X36366Y-32869D01* X36371Y-32797D01* X36383Y-32719D01* X36416Y-32552D01* X36466Y-32380D01* X36499Y-32297D01* X36538Y-32214D01* X36582Y-32136D01* X36632Y-32064D01* X36638Y-32059D01* X36643Y-32047D01* X36660Y-32031D01* X36682Y-32003D01* X36716Y-31975D01* X36749Y-31947D01* X36793Y-31914D01* X36838Y-31875D01* X36893Y-31842D01* X36954Y-31809D01* X37026Y-31781D01* X37099Y-31748D01* X37176Y-31725D01* X37265Y-31709D01* X37359Y-31698D01* X37459Y-31692D01* X37465D01* X37487D01* X37515D01* X37554Y-31698D01* D02* G37* G36* X39824Y-37009D02* X36349D01* Y-34872D01* X36877Y-34944D01* Y-36338D01* X37803D01* Y-35116D01* X38320D01* Y-36338D01* X39302D01* Y-34845D01* X39824D01* Y-37009D01* D02* G37* G36* X40717Y-40317D02* X40173D01* Y-37769D01* X40717D01* Y-40317D01* D02* G37* G36* X39824Y-41699D02* X36949Y-42692D01* X36960D01* X36982Y-42687D01* X37021D01* X37076Y-42681D01* X37143Y-42676D01* X37215Y-42670D01* X37304Y-42659D01* X37393Y-42653D01* X37493Y-42648D01* X37598Y-42637D01* X37815Y-42626D01* X38031Y-42620D01* X38242Y-42615D01* X39824D01* Y-43220D01* X36349D01* Y-42393D01* X39224Y-41399D01* X39219D01* X39213D01* X39197Y-41405D01* X39174D01* X39113Y-41410D01* X39035Y-41416D01* X38947Y-41427D01* X38847Y-41438D01* X38741Y-41443D01* X38630Y-41455D01* X38625D01* X38619D01* X38603D01* X38575Y-41460D01* X38547D01* X38514D01* X38431Y-41466D01* X38325Y-41471D01* X38209D01* X38075Y-41477D01* X37931D01* X36349D01* Y-40872D01* X39824D01* Y-41699D01* D02* G37* G36* Y-44257D02* X39013Y-44496D01* Y-45623D01* X39824Y-45861D01* Y-46527D01* X36349Y-45439D01* Y-44657D01* X39824Y-43569D01* Y-44257D01* D02* G37* G36* X39452Y-46655D02* X39463Y-46672D01* X39485Y-46694D01* X39513Y-46727D01* X39546Y-46771D01* X39585Y-46821D01* X39624Y-46883D01* X39663Y-46955D01* X39707Y-47027D01* X39746Y-47116D01* X39785Y-47204D01* X39818Y-47304D01* X39846Y-47410D01* X39868Y-47521D01* X39879Y-47637D01* X39885Y-47759D01* Y-47804D01* X39879Y-47837D01* Y-47876D01* X39874Y-47920D01* X39868Y-47970D01* X39857Y-48026D01* X39835Y-48153D01* X39796Y-48287D01* X39746Y-48425D01* X39679Y-48564D01* Y-48570D01* X39668Y-48581D01* X39657Y-48597D01* X39641Y-48625D01* X39590Y-48686D01* X39524Y-48764D01* X39435Y-48858D01* X39330Y-48947D01* X39208Y-49036D01* X39063Y-49119D01* X39058D01* X39047Y-49130D01* X39019Y-49136D01* X38991Y-49152D01* X38952Y-49164D01* X38902Y-49180D01* X38847Y-49202D01* X38786Y-49219D01* X38719Y-49236D01* X38642Y-49258D01* X38564Y-49275D01* X38475Y-49286D01* X38286Y-49308D01* X38081Y-49319D01* X38075D01* X38053D01* X38025D01* X37987Y-49313D01* X37937D01* X37881Y-49308D01* X37820Y-49302D01* X37748Y-49291D01* X37598Y-49269D01* X37437Y-49230D01* X37271Y-49180D01* X37115Y-49114D01* X37110D01* X37099Y-49103D01* X37076Y-49091D01* X37049Y-49075D01* X37015Y-49053D01* X36977Y-49030D01* X36888Y-48964D01* X36788Y-48886D01* X36682Y-48792D01* X36588Y-48681D01* X36499Y-48553D01* Y-48548D01* X36488Y-48536D01* X36477Y-48520D01* X36466Y-48492D01* X36449Y-48459D01* X36433Y-48420D01* X36410Y-48370D01* X36388Y-48320D01* X36349Y-48203D01* X36316Y-48070D01* X36294Y-47920D01* X36283Y-47765D01* Y-47710D01* X36288Y-47643D01* X36294Y-47565D01* X36305Y-47476D01* X36322Y-47376D01* X36344Y-47277D01* X36371Y-47182D01* Y-47177D01* X36377Y-47171D01* X36388Y-47138D01* X36410Y-47093D01* X36438Y-47032D01* X36477Y-46955D01* X36533Y-46877D01* X36593Y-46788D01* X36666Y-46699D01* X37071Y-47038D01* X37065Y-47043D01* X37060Y-47055D01* X37049Y-47071D01* X37032Y-47093D01* X37015Y-47127D01* X36993Y-47160D01* X36943Y-47249D01* X36899Y-47354D01* X36860Y-47476D01* X36832Y-47604D01* X36821Y-47676D01* Y-47782D01* X36827Y-47809D01* X36832Y-47843D01* X36838Y-47876D01* X36860Y-47970D01* X36893Y-48070D01* X36949Y-48176D01* X36982Y-48231D01* X37021Y-48281D01* X37065Y-48331D01* X37121Y-48381D01* X37126D01* X37137Y-48392D01* X37154Y-48403D01* X37176Y-48420D01* X37210Y-48436D01* X37248Y-48459D01* X37298Y-48481D01* X37354Y-48503D01* X37415Y-48525D01* X37487Y-48548D01* X37565Y-48570D01* X37654Y-48586D01* X37748Y-48603D01* X37848Y-48614D01* X37959Y-48620D01* X38081Y-48625D01* X38087D01* X38109D01* X38142D01* X38186Y-48620D01* X38242D01* X38303Y-48614D01* X38370Y-48603D01* X38447Y-48592D01* X38603Y-48564D01* X38758Y-48520D01* X38908Y-48459D01* X38974Y-48425D01* X39035Y-48381D01* X39041Y-48375D01* X39047Y-48370D01* X39080Y-48337D01* X39130Y-48281D01* X39185Y-48209D01* X39241Y-48115D01* X39291Y-48004D01* X39324Y-47881D01* X39330Y-47809D01* X39335Y-47737D01* Y-47698D01* X39330Y-47654D01* X39324Y-47598D01* X39319Y-47537D01* X39302Y-47471D01* X39285Y-47404D01* X39263Y-47338D01* X39257Y-47332D01* X39252Y-47310D01* X39230Y-47277D01* X39208Y-47227D01* X39174Y-47171D01* X39141Y-47110D01* X39091Y-47038D01* X39041Y-46966D01* X39446Y-46649D01* X39452Y-46655D01* D02* G37* G36* X-10200Y13100D02* X-15448D01* Y27532D01* X-10200D01* Y13100D01* D02* G37* G36* X64771Y15636D02* Y1364D01* X58230D01* Y15636D01* X64771D01* D02* G37* G36* X-23810Y31625D02* X-27992D01* Y32733D01* X-23810D01* Y31625D01* D02* G37* G36* X-28550D02* X-29575D01* Y32733D01* X-28550D01* Y31625D01* D02* G37* G36* X-23810Y29468D02* X-24435D01* X-24418Y29460D01* X-24377Y29426D01* X-24318Y29376D01* X-24243Y29301D01* X-24152Y29218D01* X-24069Y29110D01* X-23977Y28993D01* X-23902Y28860D01* X-23893Y28843D01* X-23877Y28793D01* X-23844Y28718D01* X-23810Y28618D01* X-23777Y28502D01* X-23744Y28368D01* X-23727Y28227D01* X-23719Y28077D01* Y28002D01* X-23727Y27927D01* X-23744Y27827D01* X-23760Y27702D01* X-23794Y27577D01* X-23844Y27444D01* X-23902Y27319D01* X-23910Y27302D01* X-23935Y27269D01* X-23977Y27202D01* X-24035Y27136D01* X-24110Y27052D01* X-24193Y26977D01* X-24302Y26902D01* X-24418Y26836D01* X-24435Y26827D01* X-24477Y26811D01* X-24552Y26786D01* X-24660Y26761D01* X-24793Y26736D01* X-24951Y26711D01* X-25135Y26694D01* X-25343Y26686D01* X-27992D01* Y27794D01* X-26068D01* X-26059D01* X-26026D01* X-25984D01* X-25926D01* X-25859D01* X-25784D01* X-25609Y27802D01* X-25418Y27810D01* X-25243Y27819D01* X-25168Y27827D01* X-25093Y27835D01* X-25035Y27843D01* X-24993Y27852D01* X-24985D01* X-24960Y27860D01* X-24926Y27877D01* X-24877Y27902D01* X-24826Y27927D01* X-24777Y27968D01* X-24726Y28010D01* X-24677Y28069D01* X-24668Y28077D01* X-24660Y28102D01* X-24643Y28135D01* X-24627Y28185D01* X-24602Y28243D01* X-24585Y28318D01* X-24577Y28393D01* X-24568Y28485D01* Y28535D01* X-24577Y28585D01* X-24585Y28652D01* X-24602Y28735D01* X-24635Y28818D01* X-24668Y28910D01* X-24718Y28993D01* X-24726Y29001D01* X-24743Y29026D01* X-24777Y29068D01* X-24826Y29118D01* X-24885Y29168D01* X-24943Y29218D01* X-25018Y29268D01* X-25101Y29301D01* X-25110D01* X-25151Y29318D01* X-25185D01* X-25226Y29326D01* X-25268Y29335D01* X-25326Y29343D01* X-25401Y29351D01* X-25476Y29360D01* X-25568Y29368D01* X-25676D01* X-25793Y29376D01* X-25926Y29385D01* X-26068D01* X-26226D01* X-27992D01* Y30492D01* X-23810D01* Y29468D01* D02* G37* G36* Y24478D02* X-26009D01* X-26018D01* X-26034D01* X-26068D01* X-26118D01* X-26168D01* X-26226D01* X-26359Y24470D01* X-26501Y24462D01* X-26642Y24453D01* X-26759Y24437D01* X-26801Y24420D01* X-26842Y24412D01* X-26851D01* X-26876Y24395D01* X-26901Y24378D01* X-26942Y24362D01* X-27034Y24287D01* X-27084Y24245D01* X-27126Y24187D01* X-27134Y24178D01* X-27142Y24162D01* X-27159Y24120D01* X-27184Y24078D01* X-27200Y24020D01* X-27217Y23953D01* X-27226Y23870D01* X-27234Y23787D01* Y23737D01* X-27226Y23687D01* X-27217Y23620D01* X-27200Y23545D01* X-27176Y23462D01* X-27142Y23379D01* X-27092Y23295D01* X-27084Y23287D01* X-27067Y23262D01* X-27034Y23220D01* X-26992Y23179D01* X-26934Y23120D01* X-26867Y23070D01* X-26784Y23020D01* X-26692Y22979D01* X-26684D01* X-26642Y22962D01* X-26584Y22945D01* X-26493Y22929D01* X-26384Y22912D01* X-26243Y22896D01* X-26084Y22887D01* X-25901Y22879D01* X-23810D01* Y21771D01* X-29575D01* Y22879D01* X-27442D01* X-27450Y22887D01* X-27467Y22904D01* X-27500Y22937D01* X-27542Y22971D01* X-27592Y23029D01* X-27642Y23087D01* X-27700Y23162D01* X-27767Y23237D01* X-27825Y23329D01* X-27884Y23429D01* X-27984Y23645D01* X-28025Y23762D01* X-28058Y23887D01* X-28075Y24020D01* X-28084Y24153D01* Y24220D01* X-28075Y24295D01* X-28067Y24387D01* X-28050Y24495D01* X-28017Y24603D01* X-27984Y24728D01* X-27934Y24845D01* X-27925Y24861D01* X-27909Y24895D01* X-27875Y24953D01* X-27834Y25020D01* X-27784Y25095D01* X-27725Y25170D01* X-27650Y25245D01* X-27575Y25311D01* X-27567Y25320D01* X-27534Y25336D01* X-27492Y25361D01* X-27434Y25394D01* X-27359Y25436D01* X-27275Y25469D01* X-27184Y25503D01* X-27084Y25528D01* X-27076D01* X-27034Y25536D01* X-26967Y25545D01* X-26884Y25561D01* X-26767Y25569D01* X-26626Y25578D01* X-26459Y25586D01* X-26259D01* X-23810D01* Y24478D01* D02* G37* G36* Y19538D02* X-27992D01* Y20646D01* X-23810D01* Y19538D01* D02* G37* G36* X-28550D02* X-29575D01* Y20646D01* X-28550D01* Y19538D01* D02* G37* G36* X-23810Y17314D02* X-26009D01* X-26018D01* X-26034D01* X-26068D01* X-26118D01* X-26168D01* X-26226D01* X-26359Y17306D01* X-26501Y17298D01* X-26642Y17289D01* X-26759Y17273D01* X-26801Y17256D01* X-26842Y17248D01* X-26851D01* X-26876Y17231D01* X-26901Y17214D01* X-26942Y17198D01* X-27034Y17123D01* X-27084Y17081D01* X-27126Y17023D01* X-27134Y17015D01* X-27142Y16998D01* X-27159Y16956D01* X-27184Y16915D01* X-27200Y16856D01* X-27217Y16790D01* X-27226Y16706D01* X-27234Y16623D01* Y16573D01* X-27226Y16523D01* X-27217Y16456D01* X-27200Y16382D01* X-27176Y16298D01* X-27142Y16215D01* X-27092Y16132D01* X-27084Y16123D01* X-27067Y16098D01* X-27034Y16057D01* X-26992Y16015D01* X-26934Y15957D01* X-26867Y15907D01* X-26784Y15857D01* X-26692Y15815D01* X-26684D01* X-26642Y15798D01* X-26584Y15782D01* X-26493Y15765D01* X-26384Y15748D01* X-26243Y15732D01* X-26084Y15723D01* X-25901Y15715D01* X-23810D01* Y14607D01* X-29575D01* Y15715D01* X-27442D01* X-27450Y15723D01* X-27467Y15740D01* X-27500Y15773D01* X-27542Y15807D01* X-27592Y15865D01* X-27642Y15923D01* X-27700Y15998D01* X-27767Y16073D01* X-27825Y16165D01* X-27884Y16265D01* X-27984Y16481D01* X-28025Y16598D01* X-28058Y16723D01* X-28075Y16856D01* X-28084Y16990D01* Y17056D01* X-28075Y17131D01* X-28067Y17223D01* X-28050Y17331D01* X-28017Y17439D01* X-27984Y17564D01* X-27934Y17681D01* X-27925Y17698D01* X-27909Y17731D01* X-27875Y17789D01* X-27834Y17856D01* X-27784Y17931D01* X-27725Y18006D01* X-27650Y18081D01* X-27575Y18147D01* X-27567Y18156D01* X-27534Y18172D01* X-27492Y18197D01* X-27434Y18231D01* X-27359Y18272D01* X-27275Y18306D01* X-27184Y18339D01* X-27084Y18364D01* X-27076D01* X-27034Y18372D01* X-26967Y18381D01* X-26884Y18397D01* X-26767Y18406D01* X-26626Y18414D01* X-26459Y18422D01* X-26259D01* X-23810D01* Y17314D01* D02* G37* G36* Y10142D02* X-24685D01* X-26476Y11700D01* X-26484Y11708D01* X-26493Y11717D01* X-26551Y11767D01* X-26626Y11833D01* X-26717Y11917D01* X-26817Y12008D01* X-26926Y12108D01* X-27017Y12191D01* X-27101Y12275D01* Y12241D01* X-27092Y12191D01* Y12066D01* X-27084Y11975D01* Y11767D01* X-27076Y10292D01* X-27992D01* Y13749D01* X-27209D01* X-25368Y12150D01* X-24760Y11592D01* Y11633D01* X-24768Y11667D01* Y11742D01* X-24777Y11833D01* Y11933D01* X-24785Y12025D01* Y13874D01* X-23810D01* Y10142D01* D02* G37* G36* X-23985Y9484D02* X-23827Y9476D01* X-23644Y9459D01* X-23460Y9443D01* X-23285Y9409D01* X-23211Y9393D01* X-23135Y9368D01* X-23119Y9359D01* X-23077Y9343D01* X-23011Y9318D01* X-22927Y9276D01* X-22836Y9226D01* X-22736Y9168D01* X-22644Y9101D01* X-22561Y9018D01* X-22552Y9009D01* X-22527Y8976D01* X-22486Y8926D01* X-22444Y8868D01* X-22394Y8784D01* X-22336Y8685D01* X-22286Y8568D01* X-22236Y8435D01* X-22228Y8418D01* X-22219Y8368D01* X-22194Y8293D01* X-22177Y8185D01* X-22153Y8043D01* X-22128Y7885D01* X-22119Y7702D01* X-22111Y7502D01* Y7402D01* X-22119Y7327D01* Y7243D01* X-22128Y7143D01* X-22144Y7035D01* X-22161Y6919D01* X-22203Y6669D01* X-22269Y6419D01* X-22311Y6302D01* X-22361Y6185D01* X-22411Y6086D01* X-22477Y5994D01* X-22486Y5986D01* X-22494Y5977D01* X-22544Y5927D01* X-22619Y5852D01* X-22727Y5777D01* X-22861Y5694D01* X-23019Y5619D01* X-23202Y5569D01* X-23302Y5561D01* X-23402Y5553D01* X-23410D01* X-23444D01* X-23485D01* X-23535Y5561D01* X-23385Y6827D01* X-23377D01* X-23352Y6835D01* X-23310Y6844D01* X-23269Y6852D01* X-23169Y6894D01* X-23119Y6927D01* X-23086Y6969D01* X-23077Y6977D01* X-23069Y7002D01* X-23044Y7035D01* X-23027Y7094D01* X-23002Y7160D01* X-22977Y7243D01* X-22969Y7343D01* X-22961Y7460D01* Y7535D01* X-22969Y7610D01* X-22977Y7702D01* X-22994Y7810D01* X-23019Y7918D01* X-23052Y8018D01* X-23094Y8110D01* X-23102Y8118D01* X-23110Y8135D01* X-23127Y8160D01* X-23160Y8193D01* X-23202Y8226D01* X-23252Y8260D01* X-23310Y8293D01* X-23377Y8326D01* X-23385D01* X-23402Y8335D01* X-23435Y8343D01* X-23494Y8360D01* X-23560Y8368D01* X-23644Y8376D01* X-23752Y8385D01* X-23877D01* X-24485D01* X-24477Y8376D01* X-24460Y8360D01* X-24427Y8335D01* X-24377Y8293D01* X-24327Y8251D01* X-24268Y8193D01* X-24210Y8118D01* X-24152Y8043D01* X-24085Y7960D01* X-24027Y7860D01* X-23919Y7652D01* X-23877Y7535D01* X-23844Y7410D01* X-23819Y7277D01* X-23810Y7135D01* Y7102D01* X-23819Y7052D01* Y6994D01* X-23835Y6927D01* X-23852Y6844D01* X-23868Y6752D01* X-23902Y6652D01* X-23935Y6552D01* X-23985Y6444D01* X-24044Y6327D01* X-24110Y6219D01* X-24193Y6111D01* X-24285Y6002D01* X-24393Y5902D01* X-24518Y5802D01* X-24527D01* X-24543Y5786D01* X-24577Y5769D01* X-24618Y5744D01* X-24677Y5711D01* X-24743Y5677D01* X-24818Y5644D01* X-24910Y5611D01* X-25001Y5578D01* X-25110Y5544D01* X-25226Y5511D01* X-25351Y5477D01* X-25618Y5436D01* X-25768Y5427D01* X-25918Y5419D01* X-25926D01* X-25968D01* X-26018D01* X-26093Y5427D01* X-26176Y5436D01* X-26276Y5444D01* X-26392Y5461D01* X-26509Y5486D01* X-26776Y5544D01* X-26909Y5586D01* X-27042Y5627D01* X-27167Y5686D01* X-27301Y5752D01* X-27417Y5827D01* X-27525Y5919D01* X-27534Y5927D01* X-27550Y5944D01* X-27575Y5969D01* X-27617Y6011D01* X-27659Y6061D01* X-27700Y6119D01* X-27750Y6185D01* X-27809Y6269D01* X-27859Y6352D01* X-27909Y6452D01* X-28000Y6660D01* X-28034Y6785D01* X-28058Y6910D01* X-28075Y7044D01* X-28084Y7177D01* Y7210D01* X-28075Y7252D01* Y7310D01* X-28058Y7368D01* X-28050Y7452D01* X-28025Y7535D01* X-28000Y7627D01* X-27959Y7727D01* X-27917Y7827D01* X-27859Y7935D01* X-27792Y8043D01* X-27717Y8151D01* X-27617Y8260D01* X-27517Y8360D01* X-27392Y8460D01* X-27992D01* Y9493D01* X-24235D01* X-24227D01* X-24202D01* X-24168D01* X-24118D01* X-24052D01* X-23985Y9484D01* D02* G37* G36* X-23810Y3437D02* X-25934D01* X-25943D01* X-25968D01* X-26001D01* X-26043D01* X-26101D01* X-26159D01* X-26301Y3428D01* X-26443Y3420D01* X-26592Y3403D01* X-26717Y3387D01* X-26767Y3378D01* X-26809Y3362D01* X-26817D01* X-26842Y3345D01* X-26876Y3328D01* X-26926Y3303D01* X-27026Y3228D01* X-27076Y3187D01* X-27117Y3128D01* X-27126Y3120D01* X-27134Y3104D01* X-27151Y3070D01* X-27176Y3020D01* X-27200Y2962D01* X-27217Y2904D01* X-27226Y2829D01* X-27234Y2745D01* Y2695D01* X-27226Y2645D01* X-27217Y2579D01* X-27192Y2495D01* X-27167Y2412D01* X-27126Y2320D01* X-27076Y2229D01* X-27067Y2221D01* X-27051Y2196D01* X-27009Y2154D01* X-26967Y2104D01* X-26901Y2054D01* X-26834Y2004D01* X-26742Y1954D01* X-26651Y1921D01* X-26642D01* X-26601Y1904D01* X-26534Y1896D01* X-26434Y1879D01* X-26376Y1871D01* X-26301Y1862D01* X-26226Y1854D01* X-26134D01* X-26043Y1846D01* X-25934Y1837D01* X-25818D01* X-25693D01* X-23810D01* Y729D01* X-27992D01* Y1754D01* X-27376D01* X-27384Y1762D01* X-27409Y1779D01* X-27442Y1812D01* X-27484Y1854D01* X-27542Y1904D01* X-27600Y1971D01* X-27667Y2046D01* X-27734Y2129D01* X-27792Y2221D01* X-27859Y2329D01* X-27917Y2437D01* X-27975Y2562D01* X-28017Y2695D01* X-28050Y2829D01* X-28075Y2978D01* X-28084Y3128D01* Y3187D01* X-28075Y3262D01* X-28067Y3353D01* X-28050Y3453D01* X-28025Y3562D01* X-27992Y3678D01* X-27950Y3795D01* X-27942Y3811D01* X-27925Y3845D01* X-27900Y3903D01* X-27859Y3970D01* X-27809Y4045D01* X-27750Y4120D01* X-27684Y4195D01* X-27609Y4261D01* X-27600Y4270D01* X-27575Y4286D01* X-27534Y4311D01* X-27475Y4345D01* X-27409Y4386D01* X-27325Y4420D01* X-27242Y4453D01* X-27142Y4478D01* X-27134D01* X-27092Y4486D01* X-27034Y4503D01* X-26951Y4511D01* X-26851Y4528D01* X-26717Y4536D01* X-26576Y4544D01* X-26401D01* X-23810D01* Y3437D01* D02* G37* G36* X-25576Y-2928D02* X-25568D01* X-25551D01* X-25526D01* X-25493Y-2919D01* X-25410Y-2911D01* X-25293Y-2894D01* X-25176Y-2861D01* X-25043Y-2811D01* X-24918Y-2753D01* X-24810Y-2669D01* X-24802Y-2661D01* X-24768Y-2619D01* X-24726Y-2569D01* X-24677Y-2494D01* X-24627Y-2403D01* X-24585Y-2286D01* X-24552Y-2161D01* X-24543Y-2028D01* Y-1986D01* X-24552Y-1936D01* X-24560Y-1878D01* X-24577Y-1811D01* X-24602Y-1736D01* X-24635Y-1661D01* X-24685Y-1595D01* X-24693Y-1586D01* X-24710Y-1561D01* X-24743Y-1528D01* X-24793Y-1495D01* X-24860Y-1445D01* X-24935Y-1403D01* X-25035Y-1361D01* X-25143Y-1320D01* X-24960Y-220D01* X-24951D01* X-24935Y-228D01* X-24902Y-245D01* X-24860Y-262D01* X-24810Y-287D01* X-24751Y-312D01* X-24618Y-387D01* X-24468Y-478D01* X-24310Y-595D01* X-24168Y-737D01* X-24035Y-895D01* Y-903D01* X-24018Y-912D01* X-24010Y-945D01* X-23985Y-978D01* X-23960Y-1020D01* X-23935Y-1078D01* X-23910Y-1137D01* X-23877Y-1211D01* X-23819Y-1378D01* X-23769Y-1570D01* X-23735Y-1795D01* X-23719Y-2036D01* Y-2086D01* X-23727Y-2136D01* Y-2211D01* X-23744Y-2303D01* X-23760Y-2411D01* X-23777Y-2528D01* X-23810Y-2644D01* X-23844Y-2778D01* X-23893Y-2911D01* X-23952Y-3044D01* X-24018Y-3177D01* X-24102Y-3311D01* X-24193Y-3436D01* X-24302Y-3544D01* X-24427Y-3652D01* X-24435Y-3661D01* X-24452Y-3669D01* X-24485Y-3686D01* X-24527Y-3719D01* X-24585Y-3744D01* X-24652Y-3777D01* X-24726Y-3819D01* X-24818Y-3852D01* X-24918Y-3894D01* X-25026Y-3927D01* X-25143Y-3969D01* X-25276Y-3994D01* X-25410Y-4019D01* X-25551Y-4044D01* X-25710Y-4052D01* X-25868Y-4060D01* X-25876D01* X-25909D01* X-25968D01* X-26043Y-4052D01* X-26126Y-4044D01* X-26226Y-4035D01* X-26334Y-4019D01* X-26459Y-3994D01* X-26717Y-3927D01* X-26851Y-3885D01* X-26992Y-3835D01* X-27126Y-3769D01* X-27250Y-3694D01* X-27376Y-3610D01* X-27492Y-3519D01* X-27500Y-3511D01* X-27517Y-3494D01* X-27550Y-3461D01* X-27584Y-3419D01* X-27625Y-3369D01* X-27675Y-3302D01* X-27734Y-3227D01* X-27792Y-3144D01* X-27842Y-3052D01* X-27900Y-2944D01* X-27950Y-2836D01* X-27992Y-2711D01* X-28025Y-2586D01* X-28058Y-2444D01* X-28075Y-2303D01* X-28084Y-2153D01* Y-2061D01* X-28075Y-1994D01* X-28067Y-1919D01* X-28050Y-1828D01* X-28034Y-1728D01* X-28009Y-1620D01* X-27975Y-1503D01* X-27934Y-1386D01* X-27884Y-1261D01* X-27817Y-1137D01* X-27750Y-1020D01* X-27667Y-903D01* X-27567Y-787D01* X-27459Y-687D01* X-27450Y-678D01* X-27434Y-662D01* X-27392Y-637D01* X-27342Y-603D01* X-27275Y-562D01* X-27200Y-520D01* X-27101Y-470D01* X-26992Y-420D01* X-26867Y-370D01* X-26726Y-320D01* X-26576Y-279D01* X-26401Y-237D01* X-26218Y-204D01* X-26018Y-179D01* X-25809Y-162D01* X-25576D01* Y-2928D01* D02* G37* G36* X-27667Y-4693D02* X-27609D01* X-27492Y-4710D01* X-27351Y-4735D01* X-27192Y-4768D01* X-27042Y-4818D01* X-26901Y-4885D01* X-26884Y-4893D01* X-26842Y-4918D01* X-26776Y-4960D01* X-26692Y-5018D01* X-26609Y-5085D01* X-26509Y-5177D01* X-26417Y-5268D01* X-26334Y-5376D01* X-26326Y-5393D01* X-26301Y-5426D01* X-26268Y-5485D01* X-26226Y-5560D01* X-26176Y-5651D01* X-26134Y-5751D01* X-26093Y-5860D01* X-26059Y-5976D01* Y-5993D01* X-26051Y-6018D01* Y-6051D01* X-26043Y-6093D01* X-26034Y-6151D01* X-26026Y-6210D01* Y-6284D01* X-26018Y-6359D01* X-26009Y-6451D01* X-26001Y-6551D01* X-25993Y-6659D01* Y-6776D01* X-25984Y-6901D01* Y-7934D01* X-23810D01* Y-9100D01* X-29575D01* Y-6976D01* X-29566Y-6884D01* Y-6668D01* X-29550Y-6434D01* X-29533Y-6201D01* X-29525Y-6101D01* X-29516Y-6001D01* X-29500Y-5918D01* X-29483Y-5851D01* Y-5843D01* X-29475Y-5826D01* X-29466Y-5801D01* X-29458Y-5768D01* X-29416Y-5676D01* X-29366Y-5560D01* X-29291Y-5435D01* X-29191Y-5293D01* X-29067Y-5160D01* X-28916Y-5027D01* X-28908D01* X-28900Y-5010D01* X-28875Y-4993D01* X-28842Y-4977D01* X-28792Y-4943D01* X-28742Y-4918D01* X-28683Y-4885D01* X-28617Y-4852D01* X-28450Y-4793D01* X-28267Y-4735D01* X-28042Y-4702D01* X-27800Y-4685D01* X-27792D01* X-27775D01* X-27750D01* X-27709D01* X-27667Y-4693D01* D02* G37* G36* X-33383Y6301D02* X-33302Y6296D01* X-33205Y6286D01* X-33103Y6276D01* X-32991Y6266D01* X-32874Y6245D01* X-32752Y6220D01* X-32635Y6194D01* X-32518Y6159D01* X-32401Y6123D01* X-32294Y6072D01* X-32192Y6021D01* X-32105Y5960D01* X-32100Y5955D01* X-32090Y5945D01* X-32070Y5930D01* X-32050Y5909D01* X-32024Y5879D01* X-31993Y5843D01* X-31958Y5797D01* X-31927Y5751D01* X-31892Y5695D01* X-31856Y5640D01* X-31826Y5573D01* X-31800Y5502D01* X-31780Y5426D01* X-31759Y5339D01* X-31749Y5253D01* X-31744Y5161D01* Y5141D01* X-31749Y5110D01* Y5074D01* X-31754Y5034D01* X-31764Y4983D01* X-31775Y4927D01* X-31795Y4866D01* X-31815Y4800D01* X-31841Y4733D01* X-31871Y4662D01* X-31912Y4596D01* X-31953Y4525D01* X-32009Y4459D01* X-32065Y4392D01* X-32136Y4331D01* X-32141Y4326D01* X-32156Y4316D01* X-32182Y4301D01* X-32212Y4285D01* X-32258Y4260D01* X-32314Y4235D01* X-32385Y4204D01* X-32462Y4179D01* X-32553Y4148D01* X-32655Y4118D01* X-32772Y4092D01* X-32899Y4072D01* X-33042Y4051D01* X-33200Y4036D01* X-33368Y4026D01* X-33551Y4021D01* X-33556D01* X-33561D01* X-33577D01* X-33597D01* X-33648D01* X-33714Y4026D01* X-33795Y4031D01* X-33892Y4041D01* X-33994Y4051D01* X-34106Y4062D01* X-34223Y4082D01* X-34340Y4102D01* X-34462Y4133D01* X-34579Y4163D01* X-34691Y4204D01* X-34798Y4250D01* X-34900Y4301D01* X-34986Y4362D01* X-34991Y4367D01* X-35002Y4377D01* X-35022Y4392D01* X-35042Y4418D01* X-35073Y4443D01* X-35103Y4479D01* X-35134Y4525D01* X-35170Y4571D01* X-35205Y4627D01* X-35236Y4682D01* X-35266Y4749D01* X-35297Y4820D01* X-35317Y4896D01* X-35338Y4983D01* X-35348Y5069D01* X-35353Y5161D01* Y5212D01* X-35348Y5248D01* X-35343Y5288D01* X-35333Y5339D01* X-35322Y5390D01* X-35307Y5451D01* X-35287Y5517D01* X-35261Y5578D01* X-35236Y5645D01* X-35200Y5711D01* X-35154Y5777D01* X-35109Y5843D01* X-35053Y5904D01* X-34986Y5960D01* X-34981Y5965D01* X-34966Y5975D01* X-34941Y5991D01* X-34905Y6016D01* X-34854Y6042D01* X-34793Y6072D01* X-34727Y6103D01* X-34640Y6133D01* X-34549Y6164D01* X-34442Y6199D01* X-34325Y6225D01* X-34192Y6250D01* X-34050Y6276D01* X-33897Y6291D01* X-33729Y6301D01* X-33546Y6306D01* X-33541D01* X-33536D01* X-33520D01* X-33500D01* X-33449D01* X-33383Y6301D01* D02* G37* G36* X-31810Y2794D02* X-32487D01* Y3471D01* X-31810D01* Y2794D01* D02* G37* G36* Y962D02* X-34360D01* X-34355Y957D01* X-34345Y946D01* X-34330Y926D01* X-34304Y896D01* X-34274Y860D01* X-34243Y819D01* X-34208Y768D01* X-34167Y712D01* X-34126Y651D01* X-34086Y585D01* X-34040Y514D01* X-33999Y438D01* X-33923Y275D01* X-33851Y91D01* X-34462D01* Y96D01* X-34467Y102D01* X-34472Y117D01* X-34477Y137D01* X-34503Y188D01* X-34533Y259D01* X-34574Y346D01* X-34630Y443D01* X-34701Y550D01* X-34783Y661D01* X-34788Y667D01* X-34793Y677D01* X-34808Y692D01* X-34829Y712D01* X-34879Y768D01* X-34946Y829D01* X-35027Y901D01* X-35129Y972D01* X-35236Y1038D01* X-35353Y1089D01* Y1639D01* X-31810D01* Y962D01* D02* G37* G36* X-33704Y-1817D02* X-33709Y-1822D01* X-33719Y-1848D01* X-33739Y-1878D01* X-33760Y-1919D01* X-33780Y-1970D01* X-33800Y-2021D01* X-33811Y-2077D01* X-33816Y-2133D01* Y-2153D01* X-33811Y-2184D01* X-33806Y-2214D01* X-33795Y-2250D01* X-33780Y-2291D01* X-33760Y-2331D01* X-33734Y-2372D01* X-33729Y-2377D01* X-33719Y-2387D01* X-33699Y-2408D01* X-33668Y-2428D01* X-33632Y-2454D01* X-33582Y-2479D01* X-33520Y-2505D01* X-33449Y-2525D01* X-33439D01* X-33424Y-2530D01* X-33408Y-2535D01* X-33383D01* X-33353Y-2540D01* X-33312Y-2545D01* X-33266Y-2550D01* X-33215Y-2555D01* X-33149Y-2561D01* X-33083Y-2566D01* X-33001D01* X-32915Y-2571D01* X-32818Y-2576D01* X-32711D01* X-32594D01* X-31810D01* Y-3253D01* X-34365D01* Y-2627D01* X-34004D01* X-34009Y-2622D01* X-34040Y-2601D01* X-34086Y-2571D01* X-34141Y-2530D01* X-34197Y-2489D01* X-34253Y-2438D01* X-34304Y-2393D01* X-34340Y-2342D01* X-34345Y-2337D01* X-34355Y-2321D01* X-34365Y-2291D01* X-34381Y-2255D01* X-34396Y-2214D01* X-34411Y-2163D01* X-34416Y-2113D01* X-34421Y-2052D01* Y-2011D01* X-34416Y-1965D01* X-34406Y-1909D01* X-34391Y-1838D01* X-34365Y-1761D01* X-34335Y-1685D01* X-34289Y-1604D01* X-33704Y-1817D01* D02* G37* G36* X-32889Y-5467D02* X-32884D01* X-32874D01* X-32859D01* X-32838Y-5462D01* X-32787Y-5457D01* X-32716Y-5447D01* X-32645Y-5426D01* X-32563Y-5396D01* X-32487Y-5360D01* X-32421Y-5309D01* X-32416Y-5304D01* X-32396Y-5279D01* X-32370Y-5248D01* X-32340Y-5202D01* X-32309Y-5146D01* X-32284Y-5075D01* X-32263Y-4999D01* X-32258Y-4917D01* Y-4892D01* X-32263Y-4861D01* X-32268Y-4826D01* X-32278Y-4785D01* X-32294Y-4739D01* X-32314Y-4693D01* X-32345Y-4653D01* X-32350Y-4647D01* X-32360Y-4632D01* X-32380Y-4612D01* X-32411Y-4591D01* X-32452Y-4561D01* X-32497Y-4535D01* X-32559Y-4510D01* X-32625Y-4485D01* X-32513Y-3813D01* X-32508D01* X-32497Y-3818D01* X-32477Y-3828D01* X-32452Y-3838D01* X-32421Y-3853D01* X-32385Y-3869D01* X-32304Y-3915D01* X-32212Y-3971D01* X-32116Y-4042D01* X-32029Y-4128D01* X-31948Y-4225D01* Y-4230D01* X-31938Y-4235D01* X-31932Y-4256D01* X-31917Y-4276D01* X-31902Y-4301D01* X-31887Y-4337D01* X-31871Y-4373D01* X-31851Y-4418D01* X-31815Y-4520D01* X-31785Y-4637D01* X-31764Y-4775D01* X-31754Y-4922D01* Y-4953D01* X-31759Y-4983D01* Y-5029D01* X-31769Y-5085D01* X-31780Y-5151D01* X-31790Y-5223D01* X-31810Y-5294D01* X-31831Y-5375D01* X-31861Y-5457D01* X-31897Y-5538D01* X-31938Y-5620D01* X-31988Y-5701D01* X-32044Y-5777D01* X-32111Y-5844D01* X-32187Y-5910D01* X-32192Y-5915D01* X-32202Y-5920D01* X-32223Y-5930D01* X-32248Y-5951D01* X-32284Y-5966D01* X-32324Y-5986D01* X-32370Y-6011D01* X-32426Y-6032D01* X-32487Y-6057D01* X-32553Y-6078D01* X-32625Y-6103D01* X-32706Y-6118D01* X-32787Y-6134D01* X-32874Y-6149D01* X-32971Y-6154D01* X-33068Y-6159D01* X-33073D01* X-33093D01* X-33128D01* X-33174Y-6154D01* X-33225Y-6149D01* X-33286Y-6144D01* X-33353Y-6134D01* X-33429Y-6118D01* X-33587Y-6078D01* X-33668Y-6052D01* X-33755Y-6022D01* X-33836Y-5981D01* X-33912Y-5935D01* X-33989Y-5884D01* X-34060Y-5828D01* X-34065Y-5823D01* X-34075Y-5813D01* X-34096Y-5793D01* X-34116Y-5767D01* X-34141Y-5737D01* X-34172Y-5696D01* X-34208Y-5650D01* X-34243Y-5599D01* X-34274Y-5543D01* X-34309Y-5477D01* X-34340Y-5411D01* X-34365Y-5335D01* X-34386Y-5258D01* X-34406Y-5172D01* X-34416Y-5085D01* X-34421Y-4993D01* Y-4938D01* X-34416Y-4897D01* X-34411Y-4851D01* X-34401Y-4795D01* X-34391Y-4734D01* X-34376Y-4668D01* X-34355Y-4597D01* X-34330Y-4525D01* X-34299Y-4449D01* X-34258Y-4373D01* X-34218Y-4301D01* X-34167Y-4230D01* X-34106Y-4159D01* X-34040Y-4098D01* X-34035Y-4093D01* X-34024Y-4082D01* X-33999Y-4067D01* X-33968Y-4047D01* X-33928Y-4021D01* X-33882Y-3996D01* X-33821Y-3965D01* X-33755Y-3935D01* X-33678Y-3904D01* X-33592Y-3874D01* X-33500Y-3848D01* X-33393Y-3823D01* X-33281Y-3802D01* X-33159Y-3787D01* X-33032Y-3777D01* X-32889D01* Y-5467D01* D02* G37* G36* X-31810Y-7569D02* Y-8338D01* X-35333Y-9600D01* Y-8831D01* X-32726Y-7936D01* X-35333Y-7075D01* Y-6317D01* X-31810Y-7569D01* D02* G37* G36* X-11200Y10799D02* X-12521D01* X-12526D01* X-12535D01* X-12554D01* X-12577D01* X-12637Y10794D01* X-12706Y10789D01* X-12780Y10785D01* X-12854Y10771D01* X-12919Y10757D01* X-12942Y10743D01* X-12965Y10734D01* X-12969Y10729D01* X-12988Y10716D01* X-13006Y10697D01* X-13034Y10669D01* X-13057Y10632D01* X-13080Y10586D01* X-13094Y10531D01* X-13099Y10471D01* Y10447D01* X-13094Y10424D01* X-13090Y10392D01* X-13080Y10355D01* X-13067Y10313D01* X-13048Y10267D01* X-13020Y10226D01* X-13016Y10221D01* X-13006Y10207D01* X-12988Y10189D01* X-12960Y10166D01* X-12928Y10138D01* X-12891Y10110D01* X-12845Y10087D01* X-12789Y10064D01* X-12780D01* X-12762Y10055D01* X-12725Y10050D01* X-12674Y10041D01* X-12605Y10032D01* X-12521Y10027D01* X-12424Y10018D01* X-12309D01* X-11200D01* Y9403D01* X-12466D01* X-12471D01* X-12480D01* X-12498D01* X-12521D01* X-12577D01* X-12646Y9399D01* X-12720Y9394D01* X-12789Y9390D01* X-12854Y9380D01* X-12882Y9371D01* X-12900Y9366D01* X-12905D01* X-12919Y9362D01* X-12937Y9353D01* X-12956Y9343D01* X-13006Y9311D01* X-13029Y9288D01* X-13048Y9265D01* X-13053Y9260D01* X-13057Y9251D01* X-13067Y9237D01* X-13076Y9219D01* X-13085Y9191D01* X-13090Y9159D01* X-13099Y9122D01* Y9057D01* X-13094Y9029D01* X-13090Y8997D01* X-13080Y8955D01* X-13067Y8914D01* X-13048Y8872D01* X-13020Y8826D01* X-13016Y8821D01* X-13006Y8807D01* X-12988Y8789D01* X-12965Y8766D01* X-12933Y8738D01* X-12896Y8710D01* X-12849Y8687D01* X-12799Y8664D01* X-12794D01* X-12771Y8655D01* X-12734Y8650D01* X-12688Y8641D01* X-12618Y8632D01* X-12540Y8627D01* X-12438Y8618D01* X-12323D01* X-11200D01* Y8004D01* X-13519D01* Y8567D01* X-13201D01* X-13205Y8572D01* X-13214Y8581D01* X-13233Y8600D01* X-13261Y8623D01* X-13288Y8650D01* X-13316Y8683D01* X-13353Y8724D01* X-13385Y8771D01* X-13418Y8821D01* X-13455Y8877D01* X-13515Y8997D01* X-13538Y9066D01* X-13556Y9135D01* X-13565Y9209D01* X-13570Y9288D01* Y9325D01* X-13565Y9366D01* X-13561Y9417D01* X-13547Y9477D01* X-13533Y9542D01* X-13510Y9607D01* X-13478Y9671D01* X-13473Y9681D01* X-13459Y9699D01* X-13441Y9731D01* X-13408Y9768D01* X-13367Y9810D01* X-13321Y9856D01* X-13261Y9902D01* X-13196Y9944D01* X-13205Y9953D01* X-13228Y9972D01* X-13261Y9999D01* X-13302Y10041D01* X-13348Y10092D01* X-13395Y10147D01* X-13441Y10207D01* X-13478Y10272D01* X-13482Y10281D01* X-13491Y10304D01* X-13505Y10341D01* X-13524Y10387D01* X-13542Y10443D01* X-13556Y10508D01* X-13565Y10577D01* X-13570Y10651D01* Y10692D01* X-13565Y10739D01* X-13556Y10799D01* X-13542Y10868D01* X-13524Y10937D01* X-13501Y11011D01* X-13464Y11080D01* X-13459Y11090D01* X-13445Y11108D01* X-13422Y11141D01* X-13390Y11182D01* X-13344Y11224D01* X-13293Y11270D01* X-13233Y11311D01* X-13159Y11348D01* X-13154Y11353D01* X-13131Y11358D01* X-13094Y11367D01* X-13043Y11381D01* X-12979Y11395D01* X-12896Y11404D01* X-12794Y11408D01* X-12678Y11413D01* X-11200D01* Y10799D01* D02* G37* G36* Y6812D02* X-12420D01* X-12424D01* X-12433D01* X-12452D01* X-12480D01* X-12507D01* X-12540D01* X-12614Y6807D01* X-12692Y6802D01* X-12771Y6798D01* X-12835Y6788D01* X-12859Y6779D01* X-12882Y6775D01* X-12886D01* X-12900Y6765D01* X-12914Y6756D01* X-12937Y6747D01* X-12988Y6705D01* X-13016Y6682D01* X-13039Y6650D01* X-13043Y6645D01* X-13048Y6636D01* X-13057Y6613D01* X-13071Y6590D01* X-13080Y6558D01* X-13090Y6521D01* X-13094Y6474D01* X-13099Y6428D01* Y6400D01* X-13094Y6373D01* X-13090Y6336D01* X-13080Y6294D01* X-13067Y6248D01* X-13048Y6202D01* X-13020Y6155D01* X-13016Y6151D01* X-13006Y6137D01* X-12988Y6114D01* X-12965Y6091D01* X-12933Y6058D01* X-12896Y6031D01* X-12849Y6003D01* X-12799Y5980D01* X-12794D01* X-12771Y5971D01* X-12739Y5962D01* X-12688Y5952D01* X-12628Y5943D01* X-12549Y5934D01* X-12461Y5929D01* X-12360Y5925D01* X-11200D01* Y5310D01* X-14397D01* Y5925D01* X-13214D01* X-13219Y5929D01* X-13228Y5938D01* X-13247Y5957D01* X-13270Y5975D01* X-13297Y6008D01* X-13325Y6040D01* X-13358Y6082D01* X-13395Y6123D01* X-13427Y6174D01* X-13459Y6230D01* X-13515Y6350D01* X-13538Y6414D01* X-13556Y6484D01* X-13565Y6558D01* X-13570Y6631D01* Y6668D01* X-13565Y6710D01* X-13561Y6761D01* X-13552Y6821D01* X-13533Y6881D01* X-13515Y6950D01* X-13487Y7015D01* X-13482Y7024D01* X-13473Y7043D01* X-13455Y7075D01* X-13431Y7112D01* X-13404Y7153D01* X-13371Y7195D01* X-13330Y7237D01* X-13288Y7274D01* X-13284Y7278D01* X-13265Y7287D01* X-13242Y7301D01* X-13210Y7320D01* X-13168Y7343D01* X-13122Y7361D01* X-13071Y7380D01* X-13016Y7394D01* X-13011D01* X-12988Y7398D01* X-12951Y7403D01* X-12905Y7412D01* X-12840Y7417D01* X-12762Y7421D01* X-12669Y7426D01* X-12558D01* X-11200D01* Y6812D01* D02* G37* G36* X-11237Y4941D02* X-11232Y4936D01* X-11223Y4908D01* X-11209Y4862D01* X-11195Y4802D01* X-11177Y4733D01* X-11163Y4649D01* X-11154Y4557D01* X-11149Y4460D01* Y4432D01* X-11154Y4400D01* X-11158Y4358D01* X-11163Y4312D01* X-11172Y4261D01* X-11186Y4211D01* X-11205Y4160D01* X-11209Y4155D01* X-11214Y4137D01* X-11228Y4113D01* X-11242Y4086D01* X-11288Y4021D01* X-11315Y3989D01* X-11348Y3961D01* X-11353Y3956D01* X-11366Y3952D01* X-11385Y3943D01* X-11412Y3929D01* X-11445Y3915D01* X-11486Y3901D01* X-11533Y3887D01* X-11584Y3878D01* X-11588D01* X-11607Y3873D01* X-11634D01* X-11681Y3869D01* X-11740Y3864D01* X-11814D01* X-11856Y3859D01* X-11907D01* X-11958D01* X-12018D01* X-13029D01* Y3578D01* X-13519D01* Y3859D01* X-13981D01* X-14342Y4474D01* X-13519D01* Y4894D01* X-13029D01* Y4474D01* X-12092D01* X-12087D01* X-12078D01* X-12064D01* X-12045D01* X-11999D01* X-11944D01* X-11888Y4479D01* X-11833D01* X-11791D01* X-11773Y4483D01* X-11764D01* X-11754Y4488D01* X-11736Y4497D01* X-11713Y4511D01* X-11685Y4538D01* X-11681Y4548D01* X-11671Y4566D01* X-11662Y4599D01* X-11657Y4640D01* Y4659D01* X-11662Y4677D01* X-11667Y4705D01* X-11671Y4742D01* X-11681Y4783D01* X-11694Y4834D01* X-11713Y4890D01* X-11237Y4945D01* Y4941D01* D02* G37* G36* X-11200Y2584D02* X-13519D01* Y3199D01* X-11200D01* Y2584D01* D02* G37* G36* X-13829D02* X-14397D01* Y3199D01* X-13829D01* Y2584D01* D02* G37* G36* X-12919Y2127D02* X-12923Y2122D01* X-12933Y2099D01* X-12951Y2072D01* X-12969Y2035D01* X-12988Y1988D01* X-13006Y1942D01* X-13016Y1891D01* X-13020Y1840D01* Y1822D01* X-13016Y1794D01* X-13011Y1767D01* X-13002Y1734D01* X-12988Y1697D01* X-12969Y1660D01* X-12946Y1623D01* X-12942Y1619D01* X-12933Y1609D01* X-12914Y1591D01* X-12886Y1572D01* X-12854Y1549D01* X-12808Y1526D01* X-12752Y1503D01* X-12688Y1485D01* X-12678D01* X-12664Y1480D01* X-12651Y1476D01* X-12628D01* X-12600Y1471D01* X-12563Y1466D01* X-12521Y1462D01* X-12475Y1457D01* X-12415Y1452D01* X-12355Y1448D01* X-12281D01* X-12202Y1443D01* X-12115Y1438D01* X-12018D01* X-11912D01* X-11200D01* Y824D01* X-13519D01* Y1392D01* X-13191D01* X-13196Y1397D01* X-13224Y1415D01* X-13265Y1443D01* X-13316Y1480D01* X-13367Y1517D01* X-13418Y1563D01* X-13464Y1605D01* X-13496Y1651D01* X-13501Y1656D01* X-13510Y1670D01* X-13519Y1697D01* X-13533Y1730D01* X-13547Y1767D01* X-13561Y1813D01* X-13565Y1859D01* X-13570Y1914D01* Y1951D01* X-13565Y1993D01* X-13556Y2044D01* X-13542Y2108D01* X-13519Y2178D01* X-13491Y2247D01* X-13450Y2321D01* X-12919Y2127D01* D02* G37* G36* X-12276Y367D02* X-12230Y362D01* X-12179Y353D01* X-12119Y344D01* X-12059Y330D01* X-11990Y311D01* X-11921Y288D01* X-11847Y260D01* X-11773Y228D01* X-11699Y186D01* X-11630Y140D01* X-11560Y90D01* X-11491Y29D01* X-11486Y25D01* X-11477Y16D01* X-11459Y-3D01* X-11436Y-31D01* X-11412Y-63D01* X-11385Y-105D01* X-11353Y-151D01* X-11320Y-202D01* X-11288Y-262D01* X-11255Y-326D01* X-11228Y-396D01* X-11205Y-474D01* X-11181Y-553D01* X-11163Y-641D01* X-11154Y-728D01* X-11149Y-825D01* Y-858D01* X-11154Y-881D01* Y-908D01* X-11158Y-941D01* X-11168Y-1019D01* X-11186Y-1116D01* X-11209Y-1218D01* X-11246Y-1324D01* X-11292Y-1435D01* Y-1440D01* X-11297Y-1449D01* X-11306Y-1463D01* X-11320Y-1481D01* X-11353Y-1532D01* X-11399Y-1597D01* X-11459Y-1666D01* X-11533Y-1740D01* X-11616Y-1809D01* X-11713Y-1874D01* X-11717D01* X-11727Y-1879D01* X-11740Y-1888D01* X-11764Y-1897D01* X-11791Y-1906D01* X-11824Y-1920D01* X-11861Y-1934D01* X-11902Y-1948D01* X-11948Y-1962D01* X-11999Y-1976D01* X-12115Y-1999D01* X-12249Y-2017D01* X-12392Y-2022D01* X-12397D01* X-12406D01* X-12424D01* X-12443Y-2017D01* X-12471D01* X-12503Y-2013D01* X-12581Y-2003D01* X-12669Y-1985D01* X-12766Y-1957D01* X-12872Y-1925D01* X-12979Y-1874D01* X-12983D01* X-12993Y-1865D01* X-13006Y-1860D01* X-13025Y-1846D01* X-13076Y-1809D01* X-13140Y-1763D01* X-13210Y-1703D01* X-13284Y-1629D01* X-13353Y-1546D01* X-13418Y-1449D01* Y-1444D01* X-13422Y-1435D01* X-13431Y-1421D01* X-13441Y-1398D01* X-13455Y-1375D01* X-13464Y-1343D01* X-13478Y-1306D01* X-13496Y-1269D01* X-13524Y-1176D01* X-13547Y-1070D01* X-13565Y-955D01* X-13570Y-830D01* Y-779D01* X-13565Y-742D01* X-13561Y-696D01* X-13552Y-645D01* X-13542Y-585D01* X-13529Y-525D01* X-13510Y-456D01* X-13487Y-386D01* X-13459Y-317D01* X-13427Y-243D01* X-13385Y-169D01* X-13339Y-100D01* X-13288Y-31D01* X-13228Y34D01* X-13224Y39D01* X-13214Y48D01* X-13191Y66D01* X-13168Y85D01* X-13131Y113D01* X-13094Y140D01* X-13043Y173D01* X-12993Y205D01* X-12933Y233D01* X-12868Y265D01* X-12794Y293D01* X-12720Y320D01* X-12637Y339D01* X-12554Y357D01* X-12461Y367D01* X-12364Y371D01* X-12360D01* X-12341D01* X-12313D01* X-12276Y367D01* D02* G37* G36* X-11297Y-2493D02* X-11209Y-2498D01* X-11108Y-2507D01* X-11006Y-2516D01* X-10909Y-2535D01* X-10867Y-2544D01* X-10826Y-2558D01* X-10817Y-2562D01* X-10793Y-2572D01* X-10757Y-2585D01* X-10710Y-2609D01* X-10660Y-2636D01* X-10604Y-2669D01* X-10553Y-2706D01* X-10507Y-2752D01* X-10502Y-2756D01* X-10488Y-2775D01* X-10465Y-2803D01* X-10442Y-2835D01* X-10415Y-2881D01* X-10382Y-2937D01* X-10355Y-3001D01* X-10327Y-3075D01* X-10322Y-3084D01* X-10318Y-3112D01* X-10304Y-3154D01* X-10294Y-3214D01* X-10281Y-3292D01* X-10267Y-3380D01* X-10262Y-3482D01* X-10257Y-3593D01* Y-3648D01* X-10262Y-3690D01* Y-3736D01* X-10267Y-3791D01* X-10276Y-3851D01* X-10285Y-3916D01* X-10308Y-4055D01* X-10345Y-4193D01* X-10368Y-4258D01* X-10396Y-4323D01* X-10424Y-4378D01* X-10461Y-4429D01* X-10465Y-4434D01* X-10470Y-4438D01* X-10498Y-4466D01* X-10539Y-4507D01* X-10599Y-4549D01* X-10673Y-4595D01* X-10761Y-4637D01* X-10863Y-4665D01* X-10918Y-4669D01* X-10974Y-4674D01* X-10978D01* X-10997D01* X-11020D01* X-11048Y-4669D01* X-10964Y-3967D01* X-10960D01* X-10946Y-3962D01* X-10923Y-3958D01* X-10900Y-3953D01* X-10844Y-3930D01* X-10817Y-3911D01* X-10798Y-3888D01* X-10793Y-3884D01* X-10789Y-3870D01* X-10775Y-3851D01* X-10766Y-3819D01* X-10752Y-3782D01* X-10738Y-3736D01* X-10733Y-3680D01* X-10729Y-3616D01* Y-3574D01* X-10733Y-3533D01* X-10738Y-3482D01* X-10747Y-3422D01* X-10761Y-3362D01* X-10780Y-3306D01* X-10803Y-3255D01* X-10807Y-3251D01* X-10812Y-3241D01* X-10821Y-3228D01* X-10840Y-3209D01* X-10863Y-3191D01* X-10891Y-3172D01* X-10923Y-3154D01* X-10960Y-3135D01* X-10964D01* X-10974Y-3131D01* X-10992Y-3126D01* X-11024Y-3117D01* X-11061Y-3112D01* X-11108Y-3108D01* X-11168Y-3103D01* X-11237D01* X-11574D01* X-11570Y-3108D01* X-11560Y-3117D01* X-11542Y-3131D01* X-11514Y-3154D01* X-11486Y-3177D01* X-11454Y-3209D01* X-11422Y-3251D01* X-11389Y-3292D01* X-11353Y-3339D01* X-11320Y-3394D01* X-11260Y-3509D01* X-11237Y-3574D01* X-11219Y-3644D01* X-11205Y-3717D01* X-11200Y-3796D01* Y-3814D01* X-11205Y-3842D01* Y-3875D01* X-11214Y-3911D01* X-11223Y-3958D01* X-11232Y-4008D01* X-11251Y-4064D01* X-11269Y-4119D01* X-11297Y-4179D01* X-11329Y-4244D01* X-11366Y-4304D01* X-11412Y-4364D01* X-11463Y-4424D01* X-11523Y-4480D01* X-11593Y-4535D01* X-11597D01* X-11607Y-4544D01* X-11625Y-4554D01* X-11648Y-4567D01* X-11681Y-4586D01* X-11717Y-4604D01* X-11759Y-4623D01* X-11810Y-4641D01* X-11861Y-4660D01* X-11921Y-4678D01* X-11985Y-4697D01* X-12055Y-4715D01* X-12202Y-4738D01* X-12286Y-4743D01* X-12369Y-4748D01* X-12374D01* X-12397D01* X-12424D01* X-12466Y-4743D01* X-12512Y-4738D01* X-12567Y-4734D01* X-12632Y-4725D01* X-12697Y-4711D01* X-12845Y-4678D01* X-12919Y-4655D01* X-12993Y-4632D01* X-13062Y-4600D01* X-13136Y-4563D01* X-13201Y-4521D01* X-13261Y-4470D01* X-13265Y-4466D01* X-13274Y-4457D01* X-13288Y-4443D01* X-13311Y-4420D01* X-13334Y-4392D01* X-13358Y-4360D01* X-13385Y-4323D01* X-13418Y-4276D01* X-13445Y-4230D01* X-13473Y-4175D01* X-13524Y-4059D01* X-13542Y-3990D01* X-13556Y-3921D01* X-13565Y-3847D01* X-13570Y-3773D01* Y-3754D01* X-13565Y-3731D01* Y-3699D01* X-13556Y-3667D01* X-13552Y-3620D01* X-13538Y-3574D01* X-13524Y-3523D01* X-13501Y-3468D01* X-13478Y-3413D01* X-13445Y-3352D01* X-13408Y-3292D01* X-13367Y-3232D01* X-13311Y-3172D01* X-13256Y-3117D01* X-13187Y-3061D01* X-13519D01* Y-2489D01* X-11436D01* X-11431D01* X-11417D01* X-11399D01* X-11371D01* X-11334D01* X-11297Y-2493D01* D02* G37* G36* X-11200Y-5856D02* X-14397D01* Y-5242D01* X-11200D01* Y-5856D01* D02* G37* G36* Y-6891D02* X-11925Y-7169D01* Y-8453D01* X-11200Y-8716D01* Y-9400D01* X-14397Y-8162D01* Y-7478D01* X-11200Y-6194D01* Y-6891D01* D02* G37* G36* X-31773Y32476D02* X-31769D01* X-31755Y32471D01* X-31736Y32462D01* X-31713Y32453D01* X-31681Y32439D01* X-31644Y32425D01* X-31565Y32393D01* X-31478Y32360D01* X-31390Y32323D01* X-31311Y32286D01* X-31279Y32268D01* X-31247Y32254D01* X-31237Y32250D01* X-31214Y32236D01* X-31182Y32212D01* X-31140Y32185D01* X-31094Y32148D01* X-31048Y32106D01* X-31002Y32065D01* X-30965Y32014D01* X-30960Y32009D01* X-30951Y31991D01* X-30937Y31963D01* X-30919Y31921D01* X-30900Y31875D01* X-30886Y31820D01* X-30877Y31760D01* X-30872Y31690D01* Y31672D01* X-30877Y31649D01* Y31617D01* X-30886Y31580D01* X-30896Y31538D01* X-30905Y31492D01* X-30923Y31441D01* X-31288Y31399D01* Y31404D01* X-31284Y31422D01* X-31279Y31446D01* X-31270Y31473D01* X-31256Y31547D01* X-31251Y31621D01* Y31644D01* X-31256Y31667D01* Y31695D01* X-31270Y31764D01* X-31284Y31797D01* X-31297Y31829D01* Y31834D01* X-31307Y31843D01* X-31316Y31857D01* X-31330Y31875D01* X-31367Y31917D01* X-31418Y31954D01* X-31422D01* X-31431Y31963D01* X-31450Y31972D01* X-31478Y31982D01* X-31515Y32000D01* X-31570Y32019D01* X-31635Y32046D01* X-31713Y32074D01* X-31718D01* X-31736Y32083D01* X-31769Y32092D01* X-31810Y32111D01* X-34130Y31233D01* Y31649D01* X-32785Y32134D01* X-32780D01* X-32776Y32139D01* X-32762Y32143D01* X-32739Y32148D01* X-32716Y32157D01* X-32688Y32166D01* X-32623Y32189D01* X-32545Y32217D01* X-32452Y32245D01* X-32355Y32273D01* X-32249Y32300D01* X-32254D01* X-32263Y32305D01* X-32277Y32309D01* X-32295Y32314D01* X-32318Y32319D01* X-32346Y32328D01* X-32415Y32346D01* X-32494Y32370D01* X-32586Y32402D01* X-32679Y32430D01* X-32776Y32467D01* X-34130Y32966D01* Y33358D01* X-31773Y32476D01* D02* G37* G36* X-32905Y30970D02* X-32854Y30965D01* X-32799Y30961D01* X-32734Y30951D01* X-32665Y30937D01* X-32517Y30900D01* X-32438Y30877D01* X-32365Y30850D01* X-32286Y30817D01* X-32217Y30776D01* X-32147Y30729D01* X-32083Y30679D01* X-32078Y30674D01* X-32069Y30665D01* X-32055Y30651D01* X-32032Y30628D01* X-32009Y30595D01* X-31981Y30563D01* X-31953Y30526D01* X-31921Y30480D01* X-31893Y30429D01* X-31861Y30378D01* X-31810Y30254D01* X-31787Y30189D01* X-31773Y30120D01* X-31764Y30046D01* X-31759Y29972D01* Y29953D01* X-31764Y29930D01* Y29902D01* X-31769Y29870D01* X-31778Y29829D01* X-31801Y29736D01* X-31819Y29685D01* X-31843Y29635D01* X-31870Y29579D01* X-31903Y29528D01* X-31944Y29473D01* X-31990Y29422D01* X-32041Y29376D01* X-32101Y29330D01* X-31810D01* Y28965D01* X-35007D01* Y29357D01* X-33866D01* X-33871Y29362D01* X-33880Y29367D01* X-33894Y29381D01* X-33917Y29404D01* X-33940Y29427D01* X-33968Y29454D01* X-33996Y29491D01* X-34023Y29528D01* X-34083Y29621D01* X-34130Y29727D01* X-34153Y29787D01* X-34166Y29852D01* X-34176Y29921D01* X-34180Y29990D01* Y30027D01* X-34176Y30069D01* X-34171Y30120D01* X-34157Y30180D01* X-34143Y30249D01* X-34120Y30323D01* X-34093Y30392D01* X-34088Y30402D01* X-34079Y30425D01* X-34056Y30461D01* X-34028Y30503D01* X-33996Y30554D01* X-33954Y30605D01* X-33903Y30660D01* X-33848Y30706D01* X-33843Y30711D01* X-33820Y30725D01* X-33788Y30748D01* X-33746Y30776D01* X-33691Y30808D01* X-33626Y30840D01* X-33552Y30873D01* X-33473Y30900D01* X-33469D01* X-33464Y30905D01* X-33450Y30910D01* X-33437Y30914D01* X-33390Y30924D01* X-33330Y30937D01* X-33261Y30951D01* X-33182Y30965D01* X-33095Y30970D01* X-33002Y30974D01* X-32998D01* X-32974D01* X-32947D01* X-32905Y30970D01* D02* G37* G36* X-31810Y26742D02* X-32101D01* X-32097Y26738D01* X-32087Y26733D01* X-32069Y26719D01* X-32046Y26701D01* X-32023Y26678D01* X-31995Y26650D01* X-31963Y26618D01* X-31930Y26576D01* X-31898Y26535D01* X-31866Y26488D01* X-31838Y26433D01* X-31815Y26373D01* X-31792Y26313D01* X-31773Y26243D01* X-31764Y26170D01* X-31759Y26091D01* Y26063D01* X-31764Y26045D01* X-31769Y25989D01* X-31778Y25925D01* X-31796Y25846D01* X-31824Y25758D01* X-31861Y25671D01* X-31912Y25583D01* Y25578D01* X-31921Y25574D01* X-31940Y25546D01* X-31977Y25504D01* X-32023Y25453D01* X-32083Y25393D01* X-32157Y25333D01* X-32240Y25273D01* X-32337Y25223D01* X-32342D01* X-32351Y25218D01* X-32365Y25213D01* X-32383Y25204D01* X-32411Y25195D01* X-32443Y25181D01* X-32476Y25172D01* X-32517Y25162D01* X-32610Y25139D01* X-32716Y25116D01* X-32836Y25102D01* X-32965Y25098D01* X-32970D01* X-32979D01* X-32998D01* X-33025D01* X-33053Y25102D01* X-33090D01* X-33173Y25112D01* X-33270Y25125D01* X-33376Y25148D01* X-33487Y25176D01* X-33593Y25213D01* X-33598D01* X-33607Y25218D01* X-33621Y25227D01* X-33640Y25236D01* X-33691Y25264D01* X-33755Y25301D01* X-33825Y25347D01* X-33894Y25407D01* X-33968Y25477D01* X-34028Y25560D01* Y25564D01* X-34032Y25569D01* X-34042Y25583D01* X-34051Y25601D01* X-34074Y25648D01* X-34106Y25712D01* X-34134Y25786D01* X-34157Y25874D01* X-34176Y25971D01* X-34180Y26072D01* Y26109D01* X-34176Y26147D01* X-34171Y26197D01* X-34157Y26257D01* X-34143Y26322D01* X-34120Y26387D01* X-34088Y26447D01* X-34083Y26456D01* X-34074Y26474D01* X-34051Y26502D01* X-34028Y26539D01* X-33996Y26585D01* X-33954Y26627D01* X-33912Y26673D01* X-33862Y26715D01* X-35007D01* Y27107D01* X-31810D01* Y26742D01* D02* G37* G36* X-32868Y24760D02* Y23028D01* X-32864D01* X-32850D01* X-32831Y23033D01* X-32803D01* X-32771Y23037D01* X-32734Y23046D01* X-32651Y23060D01* X-32559Y23088D01* X-32457Y23125D01* X-32365Y23176D01* X-32282Y23241D01* Y23245D01* X-32272Y23250D01* X-32249Y23277D01* X-32217Y23319D01* X-32184Y23374D01* X-32147Y23448D01* X-32115Y23531D01* X-32092Y23624D01* X-32087Y23675D01* X-32083Y23730D01* Y23767D01* X-32087Y23809D01* X-32097Y23860D01* X-32111Y23915D01* X-32129Y23980D01* X-32157Y24040D01* X-32194Y24100D01* X-32198Y24104D01* X-32217Y24127D01* X-32245Y24155D01* X-32282Y24188D01* X-32332Y24225D01* X-32397Y24266D01* X-32471Y24308D01* X-32559Y24345D01* X-32508Y24751D01* X-32503D01* X-32494Y24747D01* X-32476Y24742D01* X-32448Y24733D01* X-32420Y24719D01* X-32383Y24705D01* X-32305Y24668D01* X-32217Y24622D01* X-32124Y24557D01* X-32037Y24483D01* X-31953Y24391D01* Y24386D01* X-31944Y24377D01* X-31935Y24363D01* X-31921Y24345D01* X-31907Y24317D01* X-31893Y24289D01* X-31875Y24252D01* X-31856Y24211D01* X-31838Y24164D01* X-31819Y24118D01* X-31792Y24003D01* X-31769Y23873D01* X-31759Y23730D01* Y23679D01* X-31764Y23647D01* X-31769Y23606D01* X-31778Y23555D01* X-31787Y23499D01* X-31796Y23439D01* X-31833Y23310D01* X-31861Y23241D01* X-31889Y23176D01* X-31926Y23107D01* X-31967Y23042D01* X-32013Y22982D01* X-32069Y22922D01* X-32074Y22917D01* X-32083Y22908D01* X-32101Y22894D01* X-32129Y22875D01* X-32161Y22852D01* X-32198Y22829D01* X-32245Y22802D01* X-32295Y22774D01* X-32355Y22746D01* X-32420Y22718D01* X-32494Y22695D01* X-32572Y22672D01* X-32656Y22654D01* X-32748Y22640D01* X-32845Y22631D01* X-32947Y22626D01* X-32951D01* X-32974D01* X-33002D01* X-33044Y22631D01* X-33095Y22635D01* X-33150Y22640D01* X-33215Y22649D01* X-33279Y22663D01* X-33427Y22700D01* X-33501Y22723D01* X-33580Y22751D01* X-33654Y22788D01* X-33723Y22829D01* X-33792Y22875D01* X-33857Y22926D01* X-33862Y22931D01* X-33871Y22940D01* X-33885Y22959D01* X-33908Y22982D01* X-33931Y23009D01* X-33959Y23046D01* X-33991Y23088D01* X-34019Y23139D01* X-34051Y23190D01* X-34079Y23250D01* X-34106Y23314D01* X-34130Y23384D01* X-34153Y23458D01* X-34166Y23536D01* X-34176Y23619D01* X-34180Y23707D01* Y23753D01* X-34176Y23786D01* X-34171Y23823D01* X-34162Y23869D01* X-34153Y23920D01* X-34139Y23980D01* X-34125Y24035D01* X-34102Y24100D01* X-34079Y24160D01* X-34046Y24225D01* X-34009Y24289D01* X-33968Y24354D01* X-33917Y24414D01* X-33862Y24469D01* X-33857Y24474D01* X-33848Y24483D01* X-33829Y24497D01* X-33801Y24516D01* X-33769Y24539D01* X-33732Y24562D01* X-33686Y24589D01* X-33630Y24617D01* X-33570Y24645D01* X-33506Y24673D01* X-33432Y24696D01* X-33353Y24719D01* X-33266Y24737D01* X-33173Y24751D01* X-33076Y24760D01* X-32970Y24765D01* X-32965D01* X-32947D01* X-32914D01* X-32868Y24760D01* D02* G37* G36* X-31810Y21762D02* X-33215D01* X-33219D01* X-33224D01* X-33256D01* X-33298D01* X-33349Y21757D01* X-33409Y21753D01* X-33469Y21744D01* X-33524Y21730D01* X-33575Y21716D01* X-33580D01* X-33593Y21707D01* X-33617Y21693D01* X-33644Y21679D01* X-33672Y21656D01* X-33704Y21628D01* X-33737Y21591D01* X-33764Y21550D01* X-33769Y21545D01* X-33778Y21531D01* X-33788Y21503D01* X-33801Y21471D01* X-33815Y21434D01* X-33829Y21388D01* X-33834Y21332D01* X-33838Y21277D01* Y21254D01* X-33834Y21235D01* X-33829Y21189D01* X-33820Y21129D01* X-33797Y21065D01* X-33769Y20990D01* X-33732Y20917D01* X-33677Y20847D01* X-33667Y20838D01* X-33644Y20820D01* X-33626Y20806D01* X-33603Y20792D01* X-33575Y20773D01* X-33543Y20760D01* X-33506Y20741D01* X-33460Y20723D01* X-33409Y20709D01* X-33353Y20695D01* X-33293Y20686D01* X-33229Y20676D01* X-33150Y20667D01* X-33072D01* X-31810D01* Y20274D01* X-34130D01* Y20626D01* X-33797D01* X-33801Y20630D01* X-33815Y20639D01* X-33834Y20653D01* X-33857Y20672D01* X-33885Y20699D01* X-33917Y20732D01* X-33954Y20769D01* X-33991Y20815D01* X-34023Y20861D01* X-34060Y20917D01* X-34093Y20977D01* X-34120Y21041D01* X-34143Y21115D01* X-34162Y21189D01* X-34176Y21272D01* X-34180Y21360D01* Y21397D01* X-34176Y21434D01* X-34171Y21485D01* X-34162Y21545D01* X-34148Y21610D01* X-34130Y21679D01* X-34102Y21744D01* X-34097Y21753D01* X-34088Y21771D01* X-34074Y21804D01* X-34051Y21841D01* X-34023Y21887D01* X-33986Y21928D01* X-33949Y21970D01* X-33903Y22007D01* X-33898Y22012D01* X-33880Y22021D01* X-33857Y22035D01* X-33825Y22058D01* X-33778Y22076D01* X-33732Y22095D01* X-33677Y22118D01* X-33617Y22132D01* X-33612D01* X-33593Y22136D01* X-33566Y22141D01* X-33529Y22145D01* X-33473D01* X-33409Y22150D01* X-33330Y22155D01* X-33233D01* X-31810D01* Y21762D01* D02* G37* G36* X-31995Y19674D02* X-31944D01* X-31889Y19669D01* X-31829Y19665D01* X-31704Y19651D01* X-31575Y19632D01* X-31515Y19618D01* X-31459Y19604D01* X-31408Y19586D01* X-31362Y19568D01* X-31357D01* X-31353Y19563D01* X-31325Y19545D01* X-31284Y19521D01* X-31233Y19484D01* X-31177Y19434D01* X-31117Y19374D01* X-31057Y19300D01* X-31006Y19217D01* Y19212D01* X-31002Y19207D01* X-30992Y19193D01* X-30988Y19175D01* X-30974Y19152D01* X-30965Y19124D01* X-30942Y19055D01* X-30914Y18972D01* X-30896Y18870D01* X-30877Y18755D01* X-30872Y18630D01* Y18588D01* X-30877Y18560D01* Y18523D01* X-30882Y18486D01* X-30886Y18440D01* X-30896Y18390D01* X-30919Y18283D01* X-30951Y18172D01* X-30997Y18061D01* X-31062Y17960D01* X-31066Y17955D01* X-31071Y17951D01* X-31099Y17918D01* X-31140Y17881D01* X-31200Y17835D01* X-31279Y17789D01* X-31376Y17747D01* X-31431Y17733D01* X-31491Y17724D01* X-31552Y17715D01* X-31621D01* X-31570Y18098D01* X-31561D01* X-31542Y18103D01* X-31510Y18112D01* X-31468Y18122D01* X-31427Y18140D01* X-31385Y18163D01* X-31344Y18191D01* X-31311Y18228D01* X-31307Y18237D01* X-31293Y18256D01* X-31274Y18288D01* X-31256Y18334D01* X-31233Y18390D01* X-31214Y18459D01* X-31200Y18542D01* X-31196Y18630D01* Y18676D01* X-31200Y18722D01* X-31210Y18787D01* X-31223Y18851D01* X-31242Y18921D01* X-31270Y18990D01* X-31307Y19050D01* X-31311Y19055D01* X-31325Y19073D01* X-31353Y19101D01* X-31385Y19133D01* X-31431Y19166D01* X-31482Y19198D01* X-31542Y19230D01* X-31612Y19253D01* X-31616D01* X-31635Y19258D01* X-31672Y19263D01* X-31718Y19267D01* X-31750Y19272D01* X-31787D01* X-31829Y19276D01* X-31875D01* X-31926D01* X-31986Y19281D01* X-32046D01* X-32115D01* X-32111Y19276D01* X-32101Y19267D01* X-32087Y19253D01* X-32069Y19235D01* X-32046Y19212D01* X-32018Y19180D01* X-31990Y19142D01* X-31963Y19106D01* X-31907Y19009D01* X-31856Y18902D01* X-31838Y18842D01* X-31824Y18778D01* X-31815Y18708D01* X-31810Y18639D01* Y18616D01* X-31815Y18593D01* Y18560D01* X-31819Y18519D01* X-31829Y18473D01* X-31838Y18422D01* X-31852Y18366D01* X-31870Y18306D01* X-31893Y18246D01* X-31921Y18186D01* X-31953Y18122D01* X-31995Y18061D01* X-32041Y18001D01* X-32092Y17946D01* X-32152Y17895D01* X-32157Y17890D01* X-32166Y17886D01* X-32189Y17872D01* X-32212Y17854D01* X-32249Y17835D01* X-32286Y17812D01* X-32332Y17789D01* X-32388Y17766D01* X-32443Y17743D01* X-32508Y17720D01* X-32572Y17696D01* X-32646Y17678D01* X-32803Y17646D01* X-32891Y17641D01* X-32979Y17636D01* X-32984D01* X-32993D01* X-33011D01* X-33035D01* X-33067Y17641D01* X-33099D01* X-33182Y17650D01* X-33275Y17664D01* X-33376Y17687D01* X-33483Y17715D01* X-33589Y17756D01* X-33593D01* X-33603Y17761D01* X-33617Y17770D01* X-33635Y17780D01* X-33686Y17807D01* X-33751Y17844D01* X-33820Y17895D01* X-33889Y17955D01* X-33963Y18024D01* X-34023Y18103D01* Y18108D01* X-34028Y18112D01* X-34037Y18126D01* X-34046Y18145D01* X-34074Y18191D01* X-34102Y18256D01* X-34130Y18334D01* X-34157Y18426D01* X-34176Y18528D01* X-34180Y18639D01* Y18680D01* X-34176Y18708D01* X-34171Y18741D01* X-34162Y18782D01* X-34153Y18828D01* X-34139Y18879D01* X-34120Y18930D01* X-34097Y18985D01* X-34069Y19041D01* X-34037Y19101D01* X-34000Y19156D01* X-33954Y19212D01* X-33903Y19267D01* X-33843Y19318D01* X-34130D01* Y19679D01* X-32124D01* X-32120D01* X-32101D01* X-32074D01* X-32037D01* X-31995Y19674D01* D02* G37* G36* X-31810Y16796D02* X-34130D01* Y17188D01* X-31810D01* Y16796D01* D02* G37* G36* X-34559D02* X-35007D01* Y17188D01* X-34559D01* Y16796D01* D02* G37* G36* X-32420Y16324D02* X-32369Y16315D01* X-32314Y16301D01* X-32254Y16278D01* X-32184Y16250D01* X-32120Y16214D01* X-32111Y16209D01* X-32092Y16190D01* X-32060Y16167D01* X-32023Y16130D01* X-31981Y16080D01* X-31935Y16024D01* X-31893Y15959D01* X-31852Y15881D01* Y15876D01* X-31847Y15872D01* X-31838Y15844D01* X-31824Y15798D01* X-31806Y15738D01* X-31787Y15664D01* X-31773Y15581D01* X-31764Y15493D01* X-31759Y15391D01* Y15349D01* X-31764Y15317D01* Y15280D01* X-31769Y15234D01* X-31773Y15188D01* X-31782Y15137D01* X-31806Y15026D01* X-31838Y14911D01* X-31884Y14800D01* X-31912Y14749D01* X-31944Y14703D01* X-31949Y14698D01* X-31953Y14694D01* X-31981Y14666D01* X-32023Y14624D01* X-32087Y14578D01* X-32166Y14527D01* X-32258Y14476D01* X-32374Y14435D01* X-32503Y14402D01* X-32563Y14791D01* X-32559D01* X-32554D01* X-32526Y14800D01* X-32480Y14809D01* X-32429Y14828D01* X-32374Y14851D01* X-32314Y14878D01* X-32254Y14920D01* X-32203Y14971D01* X-32198Y14980D01* X-32184Y14998D01* X-32166Y15035D01* X-32143Y15082D01* X-32120Y15142D01* X-32101Y15211D01* X-32087Y15294D01* X-32083Y15391D01* Y15437D01* X-32087Y15484D01* X-32097Y15544D01* X-32111Y15608D01* X-32129Y15677D01* X-32152Y15738D01* X-32189Y15793D01* X-32194Y15798D01* X-32208Y15816D01* X-32231Y15835D01* X-32263Y15862D01* X-32300Y15885D01* X-32346Y15909D01* X-32392Y15922D01* X-32448Y15927D01* X-32452D01* X-32471D01* X-32494Y15922D01* X-32526Y15913D01* X-32559Y15899D01* X-32591Y15876D01* X-32628Y15848D01* X-32656Y15807D01* X-32660Y15802D01* X-32665Y15788D01* X-32679Y15765D01* X-32693Y15728D01* X-32711Y15673D01* X-32725Y15641D01* X-32734Y15604D01* X-32748Y15562D01* X-32762Y15516D01* X-32776Y15465D01* X-32790Y15405D01* Y15400D01* X-32794Y15386D01* X-32799Y15363D01* X-32808Y15336D01* X-32817Y15299D01* X-32831Y15257D01* X-32854Y15169D01* X-32887Y15068D01* X-32914Y14971D01* X-32947Y14878D01* X-32965Y14837D01* X-32979Y14804D01* X-32984Y14795D01* X-32993Y14777D01* X-33011Y14749D01* X-33035Y14712D01* X-33067Y14670D01* X-33104Y14629D01* X-33145Y14587D01* X-33196Y14550D01* X-33201Y14546D01* X-33219Y14536D01* X-33252Y14523D01* X-33289Y14509D01* X-33335Y14495D01* X-33390Y14481D01* X-33446Y14472D01* X-33510Y14467D01* X-33520D01* X-33538D01* X-33566Y14472D01* X-33607Y14476D01* X-33649Y14486D01* X-33700Y14495D01* X-33746Y14513D01* X-33797Y14536D01* X-33801Y14541D01* X-33820Y14550D01* X-33843Y14564D01* X-33875Y14587D01* X-33908Y14615D01* X-33949Y14647D01* X-33986Y14684D01* X-34019Y14730D01* X-34023Y14735D01* X-34028Y14749D01* X-34042Y14767D01* X-34056Y14795D01* X-34074Y14832D01* X-34093Y14874D01* X-34111Y14924D01* X-34130Y14980D01* X-34134Y14989D01* X-34139Y15008D01* X-34148Y15040D01* X-34157Y15082D01* X-34166Y15132D01* X-34171Y15188D01* X-34180Y15252D01* Y15363D01* X-34176Y15414D01* X-34171Y15484D01* X-34162Y15557D01* X-34143Y15636D01* X-34125Y15719D01* X-34097Y15798D01* Y15802D01* X-34093Y15807D01* X-34083Y15830D01* X-34065Y15867D01* X-34042Y15913D01* X-34009Y15964D01* X-33972Y16015D01* X-33931Y16061D01* X-33885Y16103D01* X-33880Y16107D01* X-33862Y16116D01* X-33829Y16135D01* X-33792Y16158D01* X-33737Y16181D01* X-33677Y16204D01* X-33607Y16223D01* X-33529Y16241D01* X-33478Y15858D01* X-33487D01* X-33506Y15853D01* X-33538Y15844D01* X-33580Y15830D01* X-33621Y15807D01* X-33667Y15779D01* X-33714Y15747D01* X-33755Y15701D01* X-33760Y15696D01* X-33769Y15677D01* X-33788Y15650D01* X-33806Y15608D01* X-33825Y15562D01* X-33843Y15502D01* X-33852Y15428D01* X-33857Y15349D01* Y15303D01* X-33852Y15257D01* X-33848Y15197D01* X-33834Y15137D01* X-33820Y15072D01* X-33797Y15012D01* X-33764Y14961D01* X-33760Y14957D01* X-33751Y14943D01* X-33732Y14924D01* X-33704Y14906D01* X-33677Y14883D01* X-33640Y14864D01* X-33598Y14851D01* X-33557Y14846D01* X-33552D01* X-33543D01* X-33529Y14851D01* X-33510D01* X-33464Y14864D01* X-33418Y14892D01* X-33413Y14897D01* X-33409Y14901D01* X-33395Y14911D01* X-33381Y14929D01* X-33367Y14948D01* X-33349Y14975D01* X-33335Y15008D01* X-33316Y15045D01* Y15049D01* X-33312Y15058D01* X-33307Y15077D01* X-33293Y15109D01* X-33279Y15156D01* X-33266Y15215D01* X-33252Y15252D01* X-33242Y15294D01* X-33229Y15340D01* X-33215Y15391D01* Y15396D01* X-33210Y15410D01* X-33206Y15433D01* X-33196Y15460D01* X-33187Y15493D01* X-33178Y15534D01* X-33150Y15622D01* X-33122Y15719D01* X-33090Y15816D01* X-33058Y15904D01* X-33044Y15941D01* X-33030Y15973D01* X-33025Y15982D01* X-33016Y16001D01* X-33002Y16029D01* X-32979Y16070D01* X-32951Y16112D01* X-32914Y16153D01* X-32873Y16195D01* X-32827Y16232D01* X-32822Y16237D01* X-32803Y16246D01* X-32776Y16264D01* X-32734Y16283D01* X-32683Y16297D01* X-32628Y16315D01* X-32563Y16324D01* X-32489Y16329D01* X-32480D01* X-32457D01* X-32420Y16324D01* D02* G37* G36* X-32868Y14074D02* Y12342D01* X-32864D01* X-32850D01* X-32831Y12347D01* X-32803D01* X-32771Y12351D01* X-32734Y12360D01* X-32651Y12374D01* X-32559Y12402D01* X-32457Y12439D01* X-32365Y12490D01* X-32282Y12554D01* Y12559D01* X-32272Y12564D01* X-32249Y12591D01* X-32217Y12633D01* X-32184Y12688D01* X-32147Y12762D01* X-32115Y12845D01* X-32092Y12938D01* X-32087Y12989D01* X-32083Y13044D01* Y13081D01* X-32087Y13123D01* X-32097Y13173D01* X-32111Y13229D01* X-32129Y13294D01* X-32157Y13354D01* X-32194Y13414D01* X-32198Y13418D01* X-32217Y13442D01* X-32245Y13469D01* X-32282Y13501D01* X-32332Y13539D01* X-32397Y13580D01* X-32471Y13622D01* X-32559Y13659D01* X-32508Y14065D01* X-32503D01* X-32494Y14061D01* X-32476Y14056D01* X-32448Y14047D01* X-32420Y14033D01* X-32383Y14019D01* X-32305Y13982D01* X-32217Y13936D01* X-32124Y13871D01* X-32037Y13797D01* X-31953Y13705D01* Y13700D01* X-31944Y13691D01* X-31935Y13677D01* X-31921Y13659D01* X-31907Y13631D01* X-31893Y13603D01* X-31875Y13566D01* X-31856Y13525D01* X-31838Y13478D01* X-31819Y13432D01* X-31792Y13317D01* X-31769Y13187D01* X-31759Y13044D01* Y12993D01* X-31764Y12961D01* X-31769Y12919D01* X-31778Y12869D01* X-31787Y12813D01* X-31796Y12753D01* X-31833Y12624D01* X-31861Y12554D01* X-31889Y12490D01* X-31926Y12420D01* X-31967Y12356D01* X-32013Y12296D01* X-32069Y12236D01* X-32074Y12231D01* X-32083Y12222D01* X-32101Y12208D01* X-32129Y12189D01* X-32161Y12166D01* X-32198Y12143D01* X-32245Y12116D01* X-32295Y12088D01* X-32355Y12060D01* X-32420Y12032D01* X-32494Y12009D01* X-32572Y11986D01* X-32656Y11968D01* X-32748Y11954D01* X-32845Y11945D01* X-32947Y11940D01* X-32951D01* X-32974D01* X-33002D01* X-33044Y11945D01* X-33095Y11949D01* X-33150Y11954D01* X-33215Y11963D01* X-33279Y11977D01* X-33427Y12014D01* X-33501Y12037D01* X-33580Y12065D01* X-33654Y12102D01* X-33723Y12143D01* X-33792Y12189D01* X-33857Y12240D01* X-33862Y12245D01* X-33871Y12254D01* X-33885Y12273D01* X-33908Y12296D01* X-33931Y12323D01* X-33959Y12360D01* X-33991Y12402D01* X-34019Y12453D01* X-34051Y12504D01* X-34079Y12564D01* X-34106Y12628D01* X-34130Y12698D01* X-34153Y12772D01* X-34166Y12850D01* X-34176Y12933D01* X-34180Y13021D01* Y13067D01* X-34176Y13100D01* X-34171Y13137D01* X-34162Y13183D01* X-34153Y13234D01* X-34139Y13294D01* X-34125Y13349D01* X-34102Y13414D01* X-34079Y13474D01* X-34046Y13539D01* X-34009Y13603D01* X-33968Y13668D01* X-33917Y13728D01* X-33862Y13783D01* X-33857Y13788D01* X-33848Y13797D01* X-33829Y13811D01* X-33801Y13829D01* X-33769Y13853D01* X-33732Y13876D01* X-33686Y13904D01* X-33630Y13931D01* X-33570Y13959D01* X-33506Y13987D01* X-33432Y14010D01* X-33353Y14033D01* X-33266Y14051D01* X-33173Y14065D01* X-33076Y14074D01* X-32970Y14079D01* X-32965D01* X-32947D01* X-32914D01* X-32868Y14074D01* D02* G37* G36* X-33330Y11538D02* X-33293D01* X-33206Y11533D01* X-33104Y11519D01* X-32998Y11506D01* X-32887Y11483D01* X-32776Y11455D01* X-32771D01* X-32762Y11450D01* X-32748Y11446D01* X-32730Y11441D01* X-32679Y11423D01* X-32614Y11395D01* X-32540Y11367D01* X-32466Y11330D01* X-32388Y11284D01* X-32314Y11238D01* X-32305Y11233D01* X-32282Y11215D01* X-32249Y11187D01* X-32208Y11150D01* X-32161Y11108D01* X-32115Y11057D01* X-32064Y11007D01* X-32023Y10947D01* X-32018Y10937D01* X-32004Y10919D01* X-31986Y10887D01* X-31963Y10840D01* X-31935Y10785D01* X-31912Y10720D01* X-31884Y10646D01* X-31861Y10563D01* Y10554D01* X-31856Y10540D01* X-31852Y10526D01* X-31847Y10480D01* X-31838Y10415D01* X-31829Y10341D01* X-31819Y10254D01* X-31815Y10157D01* X-31810Y10050D01* Y8900D01* X-35007D01* Y10129D01* X-35003Y10212D01* X-34998Y10305D01* X-34989Y10397D01* X-34975Y10489D01* X-34961Y10568D01* Y10572D01* X-34956Y10582D01* Y10595D01* X-34947Y10614D01* X-34933Y10665D01* X-34910Y10729D01* X-34878Y10803D01* X-34836Y10882D01* X-34790Y10960D01* X-34730Y11034D01* X-34725Y11039D01* X-34721Y11044D01* X-34707Y11057D01* X-34693Y11076D01* X-34647Y11122D01* X-34582Y11178D01* X-34504Y11238D01* X-34411Y11302D01* X-34305Y11362D01* X-34185Y11413D01* X-34180D01* X-34171Y11418D01* X-34153Y11427D01* X-34125Y11432D01* X-34093Y11446D01* X-34056Y11455D01* X-34014Y11464D01* X-33963Y11478D01* X-33912Y11492D01* X-33852Y11501D01* X-33723Y11524D01* X-33580Y11538D01* X-33423Y11543D01* X-33418D01* X-33409D01* X-33386D01* X-33362D01* X-33330Y11538D01* D02* G37* %LPC*% G36* X-46749Y-23844D02* X-46804D01* X-46808D01* X-46819D01* X-46834D01* X-46852D01* X-46878Y-23847D01* X-46908D01* X-46974Y-23855D01* X-47045Y-23866D01* X-47119Y-23884D01* X-47189Y-23907D01* X-47218Y-23921D01* X-47248Y-23936D01* X-47256Y-23940D01* X-47270Y-23951D01* X-47293Y-23973D01* X-47318Y-24003D01* X-47344Y-24040D01* X-47366Y-24084D01* X-47381Y-24140D01* X-47389Y-24203D01* Y-24210D01* X-47385Y-24232D01* X-47381Y-24265D01* X-47370Y-24306D01* X-47355Y-24351D01* X-47330Y-24395D01* X-47296Y-24439D01* X-47248Y-24476D01* X-47241Y-24480D01* X-47222Y-24491D01* X-47189Y-24506D01* X-47141Y-24521D01* X-47078Y-24536D01* X-47041Y-24543D01* X-47000Y-24550D01* X-46956Y-24558D01* X-46908Y-24562D01* X-46856Y-24565D01* X-46800D01* X-46797D01* X-46786D01* X-46771D01* X-46749D01* X-46723Y-24562D01* X-46693D01* X-46626Y-24554D01* X-46553Y-24543D01* X-46475Y-24528D01* X-46404Y-24506D01* X-46375Y-24491D01* X-46345Y-24476D01* X-46338Y-24473D01* X-46323Y-24458D01* X-46301Y-24439D01* X-46275Y-24406D01* X-46249Y-24369D01* X-46227Y-24325D01* X-46212Y-24269D01* X-46205Y-24206D01* Y-24199D01* X-46208Y-24177D01* X-46212Y-24143D01* X-46223Y-24103D01* X-46238Y-24062D01* X-46264Y-24014D01* X-46297Y-23973D01* X-46345Y-23936D01* X-46353Y-23933D01* X-46371Y-23921D01* X-46408Y-23907D01* X-46456Y-23888D01* X-46486Y-23881D01* X-46519Y-23873D01* X-46560Y-23866D01* X-46601Y-23858D01* X-46645Y-23851D01* X-46693Y-23847D01* X-46749Y-23844D01* D02* G37* G36* X-47004Y-27788D02* X-47078D01* X-47082D01* X-47100D01* X-47122D01* X-47152Y-27792D01* X-47193D01* X-47233Y-27795D01* X-47281Y-27803D01* X-47330Y-27806D01* X-47437Y-27825D01* X-47537Y-27854D01* X-47585Y-27873D01* X-47629Y-27895D01* X-47670Y-27917D01* X-47703Y-27947D01* X-47707D01* X-47711Y-27954D01* X-47729Y-27977D01* X-47755Y-28010D01* X-47785Y-28058D01* X-47814Y-28121D01* X-47840Y-28191D01* X-47859Y-28276D01* X-47866Y-28321D01* Y-28543D01* X-46253D01* Y-28339D01* X-46260Y-28313D01* X-46268Y-28276D01* X-46279Y-28232D01* X-46297Y-28184D01* X-46323Y-28132D01* X-46356Y-28076D01* X-46401Y-28021D01* X-46453Y-27969D01* X-46519Y-27921D01* X-46601Y-27877D01* X-46645Y-27858D01* X-46697Y-27840D01* X-46749Y-27825D01* X-46804Y-27814D01* X-46867Y-27803D01* X-46934Y-27795D01* X-47004Y-27788D01* D02* G37* G36* X-46829Y-32491D02* X-46928D01* X-46882Y-32531D01* X-46829Y-32491D01* D02* G37* G36* X-46427Y-39928D02* X-47222D01* X-47226D01* X-47230Y-39931D01* X-47248Y-39950D01* X-47278Y-39976D01* X-47307Y-40009D01* X-47337Y-40053D01* X-47366Y-40105D01* X-47385Y-40168D01* X-47392Y-40201D01* Y-40242D01* X-47389Y-40264D01* X-47385Y-40294D01* X-47374Y-40331D01* X-47359Y-40375D01* X-47333Y-40416D01* X-47296Y-40460D01* X-47248Y-40497D01* X-47241Y-40501D01* X-47222Y-40512D01* X-47189Y-40527D01* X-47141Y-40542D01* X-47078Y-40560D01* X-47041Y-40568D01* X-47000Y-40575D01* X-46956Y-40582D01* X-46908Y-40586D01* X-46856Y-40590D01* X-46800D01* X-46793D01* X-46775D01* X-46745Y-40586D01* X-46708D01* X-46660Y-40579D01* X-46612Y-40571D01* X-46556Y-40564D01* X-46501Y-40549D01* X-46445Y-40531D01* X-46390Y-40508D01* X-46342Y-40483D01* X-46294Y-40453D01* X-46257Y-40416D01* X-46227Y-40372D01* X-46208Y-40320D01* X-46201Y-40264D01* Y-40246D01* X-46205Y-40231D01* X-46212Y-40194D01* X-46231Y-40150D01* X-46257Y-40094D01* X-46275Y-40068D01* X-46297Y-40039D01* X-46323Y-40009D01* X-46353Y-39983D01* X-46386Y-39954D01* X-46427Y-39928D01* D02* G37* G36* X36894Y12541D02* X36888D01* X36881Y12535D01* X36862D01* X36836Y12528D01* X36771Y12509D01* X36680Y12496D01* X36674D01* X36654Y12489D01* X36616D01* X36577Y12483D01* X36518Y12476D01* X36460Y12463D01* X36324Y12438D01* X36182Y12405D01* X36039Y12366D01* X35974Y12340D01* X35916Y12314D01* X35864Y12288D01* X35819Y12263D01* X35812Y12256D01* X35799Y12243D01* X35773Y12217D01* X35747Y12185D01* X35721Y12139D01* X35695Y12088D01* X35682Y12029D01* X35676Y11964D01* Y11958D01* Y11938D01* X35682Y11913D01* X35689Y11874D01* X35702Y11835D01* X35721Y11789D01* X35747Y11744D01* X35786Y11705D01* X35793Y11699D01* X35806Y11692D01* X35832Y11673D01* X35864Y11653D01* X35903Y11634D01* X35955Y11621D01* X36013Y11608D01* X36078Y11602D01* X36110D01* X36149Y11608D01* X36194Y11614D01* X36253Y11621D01* X36318Y11640D01* X36382Y11660D01* X36447Y11692D01* X36454Y11699D01* X36480Y11712D01* X36512Y11731D01* X36551Y11764D01* X36590Y11796D01* X36635Y11841D01* X36680Y11887D01* X36713Y11945D01* X36719Y11952D01* X36726Y11977D01* X36745Y12010D01* X36765Y12062D01* X36791Y12126D01* X36816Y12211D01* X36842Y12308D01* X36868Y12418D01* X36894Y12541D01* D02* G37* G36* X13320Y14770D02* X12504D01* X12231Y13487D01* X12691D01* X12763Y13494D01* X12912Y13500D01* X13074Y13507D01* X13236Y13526D01* X13307Y13539D01* X13378Y13546D01* X13437Y13565D01* X13488Y13578D01* X13501Y13584D01* X13527Y13597D01* X13573Y13617D01* X13631Y13649D01* X13689Y13688D01* X13754Y13740D01* X13819Y13798D01* X13877Y13863D01* X13884Y13870D01* X13897Y13895D01* X13923Y13941D01* X13949Y13993D01* X13974Y14058D01* X14000Y14135D01* X14013Y14213D01* X14020Y14304D01* Y14310D01* Y14330D01* X14013Y14362D01* Y14401D01* X13987Y14485D01* X13968Y14530D01* X13942Y14569D01* Y14576D01* X13929Y14589D01* X13890Y14628D01* X13826Y14673D01* X13741Y14718D01* X13735D01* X13715Y14725D01* X13676Y14738D01* X13618Y14744D01* X13547Y14757D01* X13443Y14764D01* X13385D01* X13320Y14770D01* D02* G37* G36* X47457Y13721D02* X47411D01* X47359Y13708D01* X47295Y13695D01* X47217Y13669D01* X47133Y13636D01* X47048Y13584D01* X46964Y13513D01* X46958Y13507D01* X46932Y13474D01* X46893Y13429D01* X46848Y13358D01* X46802Y13273D01* X46750Y13170D01* X46705Y13053D01* X46673Y12911D01* X48053D01* Y12917D01* Y12943D01* Y12969D01* Y12995D01* Y13001D01* Y13008D01* Y13027D01* Y13053D01* X48046Y13118D01* X48033Y13202D01* X48014Y13286D01* X47982Y13377D01* X47943Y13461D01* X47891Y13539D01* X47884Y13546D01* X47858Y13565D01* X47826Y13597D01* X47774Y13630D01* X47716Y13662D01* X47638Y13695D01* X47554Y13714D01* X47457Y13721D01* D02* G37* G36* X24965Y13688D02* X24919D01* X24861Y13682D01* X24796Y13669D01* X24718Y13643D01* X24634Y13610D01* X24543Y13565D01* X24459Y13507D01* X24453Y13500D01* X24420Y13474D01* X24381Y13435D01* X24336Y13377D01* X24278Y13306D01* X24219Y13215D01* X24168Y13111D01* X24116Y12995D01* Y12988D01* X24109Y12982D01* X24103Y12962D01* X24096Y12936D01* X24077Y12872D01* X24057Y12794D01* X24038Y12697D01* X24018Y12593D01* X24006Y12483D01* X23999Y12379D01* Y12373D01* Y12366D01* Y12347D01* Y12321D01* X24012Y12256D01* X24025Y12178D01* X24044Y12088D01* X24077Y11997D01* X24122Y11906D01* X24187Y11822D01* X24193Y11815D01* X24219Y11789D01* X24265Y11757D01* X24317Y11725D01* X24388Y11686D01* X24466Y11653D01* X24556Y11627D01* X24660Y11621D01* X24692D01* X24718Y11627D01* X24790Y11640D01* X24874Y11660D01* X24971Y11699D01* X25068Y11751D01* X25172Y11828D01* X25224Y11874D01* X25269Y11926D01* X25276Y11932D01* X25282Y11945D01* X25302Y11971D01* X25321Y12003D01* X25353Y12049D01* X25379Y12100D01* X25412Y12159D01* X25444Y12224D01* X25477Y12301D01* X25509Y12379D01* X25541Y12470D01* X25567Y12561D01* X25606Y12768D01* X25613Y12878D01* X25619Y12995D01* Y13001D01* Y13008D01* Y13047D01* X25613Y13105D01* X25593Y13176D01* X25574Y13254D01* X25541Y13338D01* X25496Y13416D01* X25431Y13494D01* X25425Y13500D01* X25399Y13526D01* X25360Y13558D01* X25308Y13591D01* X25237Y13630D01* X25159Y13656D01* X25068Y13682D01* X24965Y13688D01* D02* G37* G36* X16806Y13721D02* X16761D01* X16709Y13708D01* X16644Y13695D01* X16567Y13669D01* X16482Y13636D01* X16398Y13584D01* X16314Y13513D01* X16307Y13507D01* X16281Y13474D01* X16242Y13429D01* X16197Y13358D01* X16152Y13273D01* X16100Y13170D01* X16055Y13053D01* X16022Y12911D01* X17402D01* Y12917D01* Y12943D01* Y12969D01* Y12995D01* Y13001D01* Y13008D01* Y13027D01* Y13053D01* X17396Y13118D01* X17383Y13202D01* X17364Y13286D01* X17331Y13377D01* X17292Y13461D01* X17240Y13539D01* X17234Y13546D01* X17208Y13565D01* X17176Y13597D01* X17124Y13630D01* X17065Y13662D01* X16988Y13695D01* X16904Y13714D01* X16806Y13721D01* D02* G37* G36* X3237D02* X3198D01* X3153Y13714D01* X3095Y13695D01* X3023Y13675D01* X2952Y13643D01* X2874Y13597D01* X2796Y13533D01* X2790Y13526D01* X2764Y13500D01* X2732Y13455D01* X2686Y13390D01* X2634Y13312D01* X2583Y13209D01* X2531Y13092D01* X2479Y12956D01* X2472Y12943D01* X2466Y12904D01* X2447Y12852D01* X2434Y12774D01* X2414Y12697D01* X2395Y12606D01* X2388Y12509D01* X2382Y12418D01* Y12411D01* Y12405D01* Y12386D01* Y12360D01* X2388Y12288D01* X2401Y12211D01* X2421Y12120D01* X2453Y12023D01* X2492Y11932D01* X2544Y11854D01* X2550Y11848D01* X2576Y11828D01* X2609Y11796D01* X2660Y11763D01* X2719Y11725D01* X2790Y11699D01* X2874Y11673D01* X2965Y11666D01* X3004D01* X3049Y11673D01* X3108Y11686D01* X3179Y11705D01* X3257Y11738D01* X3334Y11777D01* X3419Y11835D01* X3432Y11841D01* X3458Y11867D01* X3496Y11906D01* X3542Y11964D01* X3600Y12029D01* X3652Y12113D01* X3710Y12217D01* X3756Y12327D01* Y12334D01* X3762Y12340D01* X3768Y12360D01* X3775Y12386D01* X3794Y12444D01* X3814Y12528D01* X3833Y12619D01* X3853Y12729D01* X3866Y12839D01* X3872Y12949D01* Y12956D01* Y12962D01* Y12982D01* Y13008D01* X3859Y13072D01* X3846Y13150D01* X3827Y13241D01* X3788Y13332D01* X3743Y13422D01* X3678Y13507D01* X3671Y13513D01* X3645Y13539D01* X3607Y13571D01* X3555Y13617D01* X3490Y13656D01* X3412Y13688D01* X3328Y13714D01* X3237Y13721D01* D02* G37* G36* X7151Y6933D02* X7106D01* X7060Y6927D01* X6996Y6914D01* X6924Y6888D01* X6847Y6856D01* X6769Y6810D01* X6684Y6752D01* X6678Y6745D01* X6652Y6719D01* X6613Y6674D01* X6568Y6616D01* X6516Y6545D01* X6458Y6454D01* X6406Y6350D01* X6361Y6227D01* Y6221D01* X6354Y6214D01* X6348Y6195D01* X6341Y6169D01* X6322Y6104D01* X6302Y6026D01* X6283Y5929D01* X6263Y5825D01* X6250Y5728D01* X6244Y5624D01* Y5618D01* Y5605D01* Y5585D01* Y5560D01* X6257Y5488D01* X6270Y5404D01* X6289Y5307D01* X6322Y5203D01* X6367Y5113D01* X6432Y5022D01* X6438Y5015D01* X6464Y4989D01* X6503Y4957D01* X6561Y4918D01* X6626Y4879D01* X6697Y4847D01* X6788Y4821D01* X6879Y4814D01* X6918D01* X6957Y4821D01* X7015Y4834D01* X7080Y4853D01* X7151Y4879D01* X7222Y4918D01* X7300Y4970D01* X7307Y4976D01* X7333Y5002D01* X7371Y5041D01* X7423Y5093D01* X7475Y5164D01* X7533Y5255D01* X7592Y5365D01* X7644Y5495D01* Y5501D01* X7650Y5514D01* X7656Y5534D01* X7663Y5560D01* X7689Y5631D01* X7715Y5722D01* X7734Y5825D01* X7760Y5935D01* X7773Y6059D01* X7780Y6175D01* Y6182D01* Y6188D01* Y6208D01* Y6233D01* X7773Y6298D01* X7760Y6383D01* X7734Y6473D01* X7702Y6564D01* X7656Y6655D01* X7598Y6733D01* X7592Y6739D01* X7566Y6765D01* X7527Y6797D01* X7475Y6836D01* X7410Y6869D01* X7339Y6901D01* X7248Y6927D01* X7151Y6933D01* D02* G37* G36* X32553Y7983D02* X31872D01* X31237Y4957D01* X31827D01* X31879Y4964D01* X31989D01* X32112Y4970D01* X32229Y4983D01* X32345Y4996D01* X32397Y5002D01* X32443Y5015D01* X32456Y5022D01* X32481Y5028D01* X32527Y5048D01* X32585Y5067D01* X32650Y5099D01* X32721Y5138D01* X32792Y5190D01* X32864Y5249D01* X32870D01* X32877Y5262D01* X32909Y5294D01* X32961Y5352D01* X33026Y5424D01* X33103Y5521D01* X33181Y5637D01* X33259Y5767D01* X33330Y5909D01* Y5916D01* X33337Y5929D01* X33350Y5955D01* X33363Y5981D01* X33376Y6026D01* X33389Y6072D01* X33408Y6123D01* X33428Y6188D01* X33440Y6253D01* X33460Y6331D01* X33492Y6499D01* X33512Y6687D01* X33518Y6888D01* Y6894D01* Y6908D01* Y6933D01* Y6966D01* X33512Y7005D01* Y7050D01* X33499Y7160D01* X33479Y7277D01* X33453Y7393D01* X33415Y7510D01* X33363Y7607D01* X33356Y7620D01* X33337Y7646D01* X33304Y7685D01* X33259Y7737D01* X33201Y7789D01* X33136Y7841D01* X33058Y7886D01* X32974Y7925D01* X32967D01* X32941Y7931D01* X32903Y7944D01* X32844Y7957D01* X32767Y7964D01* X32669Y7977D01* X32553Y7983D01* D02* G37* G36* X44171Y6933D02* X44126D01* X44074Y6920D01* X44009Y6908D01* X43932Y6882D01* X43847Y6849D01* X43763Y6797D01* X43679Y6726D01* X43672Y6719D01* X43646Y6687D01* X43608Y6642D01* X43562Y6571D01* X43517Y6486D01* X43465Y6383D01* X43420Y6266D01* X43387Y6123D01* X44767D01* Y6130D01* Y6156D01* Y6182D01* Y6208D01* Y6214D01* Y6221D01* Y6240D01* Y6266D01* X44761Y6331D01* X44748Y6415D01* X44729Y6499D01* X44696Y6590D01* X44657Y6674D01* X44605Y6752D01* X44599Y6758D01* X44573Y6778D01* X44541Y6810D01* X44489Y6843D01* X44431Y6875D01* X44353Y6908D01* X44269Y6927D01* X44171Y6933D01* D02* G37* G36* X24122Y6901D02* X24077D01* X24018Y6894D01* X23954Y6882D01* X23876Y6856D01* X23792Y6823D01* X23701Y6778D01* X23617Y6719D01* X23610Y6713D01* X23578Y6687D01* X23539Y6648D01* X23494Y6590D01* X23435Y6519D01* X23377Y6428D01* X23325Y6324D01* X23273Y6208D01* Y6201D01* X23267Y6195D01* X23260Y6175D01* X23254Y6149D01* X23234Y6084D01* X23215Y6007D01* X23196Y5909D01* X23176Y5806D01* X23163Y5696D01* X23157Y5592D01* Y5585D01* Y5579D01* Y5560D01* Y5534D01* X23170Y5469D01* X23183Y5391D01* X23202Y5300D01* X23234Y5210D01* X23280Y5119D01* X23345Y5035D01* X23351Y5028D01* X23377Y5002D01* X23422Y4970D01* X23474Y4938D01* X23546Y4899D01* X23623Y4866D01* X23714Y4840D01* X23818Y4834D01* X23850D01* X23876Y4840D01* X23947Y4853D01* X24032Y4873D01* X24129Y4912D01* X24226Y4964D01* X24330Y5041D01* X24381Y5087D01* X24427Y5138D01* X24433Y5145D01* X24440Y5158D01* X24459Y5184D01* X24479Y5216D01* X24511Y5262D01* X24537Y5313D01* X24569Y5372D01* X24602Y5437D01* X24634Y5514D01* X24667Y5592D01* X24699Y5683D01* X24725Y5773D01* X24764Y5981D01* X24770Y6091D01* X24777Y6208D01* Y6214D01* Y6221D01* Y6259D01* X24770Y6318D01* X24751Y6389D01* X24731Y6467D01* X24699Y6551D01* X24654Y6629D01* X24589Y6707D01* X24582Y6713D01* X24556Y6739D01* X24518Y6771D01* X24466Y6804D01* X24394Y6843D01* X24317Y6869D01* X24226Y6894D01* X24122Y6901D01* D02* G37* G36* X18206Y6901D02* X18161D01* X18102Y6894D01* X18037Y6882D01* X17960Y6856D01* X17876Y6823D01* X17785Y6778D01* X17700Y6719D01* X17694Y6713D01* X17662Y6687D01* X17623Y6648D01* X17577Y6590D01* X17519Y6519D01* X17461Y6428D01* X17409Y6324D01* X17357Y6208D01* Y6201D01* X17351Y6195D01* X17344Y6175D01* X17338Y6149D01* X17318Y6084D01* X17299Y6007D01* X17279Y5909D01* X17260Y5806D01* X17247Y5696D01* X17240Y5592D01* Y5585D01* Y5579D01* Y5560D01* Y5534D01* X17253Y5469D01* X17266Y5391D01* X17286Y5300D01* X17318Y5210D01* X17364Y5119D01* X17428Y5035D01* X17435Y5028D01* X17461Y5002D01* X17506Y4970D01* X17558Y4938D01* X17629Y4899D01* X17707Y4866D01* X17798Y4840D01* X17901Y4834D01* X17934D01* X17960Y4840D01* X18031Y4853D01* X18115Y4873D01* X18212Y4912D01* X18310Y4963D01* X18413Y5041D01* X18465Y5087D01* X18510Y5138D01* X18517Y5145D01* X18523Y5158D01* X18543Y5184D01* X18562Y5216D01* X18595Y5262D01* X18621Y5313D01* X18653Y5372D01* X18686Y5437D01* X18718Y5514D01* X18750Y5592D01* X18783Y5683D01* X18809Y5773D01* X18847Y5981D01* X18854Y6091D01* X18860Y6208D01* Y6214D01* Y6221D01* Y6259D01* X18854Y6318D01* X18835Y6389D01* X18815Y6467D01* X18783Y6551D01* X18737Y6629D01* X18673Y6707D01* X18666Y6713D01* X18640Y6739D01* X18601Y6771D01* X18549Y6804D01* X18478Y6843D01* X18400Y6869D01* X18310Y6894D01* X18206Y6901D01* D02* G37* G36* X3432Y6933D02* X3386D01* X3334Y6920D01* X3270Y6907D01* X3192Y6882D01* X3108Y6849D01* X3023Y6797D01* X2939Y6726D01* X2933Y6719D01* X2907Y6687D01* X2868Y6642D01* X2822Y6571D01* X2777Y6486D01* X2725Y6383D01* X2680Y6266D01* X2647Y6123D01* X4028D01* Y6130D01* Y6156D01* Y6182D01* Y6208D01* Y6214D01* Y6221D01* Y6240D01* Y6266D01* X4021Y6331D01* X4008Y6415D01* X3989Y6499D01* X3956Y6590D01* X3918Y6674D01* X3866Y6752D01* X3859Y6758D01* X3833Y6778D01* X3801Y6810D01* X3749Y6843D01* X3691Y6875D01* X3613Y6907D01* X3529Y6927D01* X3432Y6933D01* D02* G37* G36* X25889Y-1773D02* X25275D01* Y-2341D01* X25889D01* Y-2600D01* Y-1773D01* D02* G37* G36* X20682Y-2600D02* X18566D01* D01* X19897D01* X19814Y-2605D01* X19731Y-2619D01* X19657Y-2637D01* X19583Y-2660D01* X19513Y-2693D01* X19453Y-2725D01* X19393Y-2762D01* X19342Y-2794D01* X19296Y-2831D01* X19255Y-2868D01* X19218Y-2901D01* X19190Y-2933D01* X19167Y-2956D01* X19149Y-2974D01* X19139Y-2988D01* X19135Y-2993D01* Y-2651D01* X18566D01* Y-4970D01* X19181D01* Y-3926D01* Y-3857D01* Y-3792D01* X19185Y-3732D01* X19190Y-3681D01* Y-3630D01* X19195Y-3589D01* X19199Y-3547D01* X19204Y-3515D01* X19213Y-3460D01* X19218Y-3422D01* X19227Y-3399D01* Y-3395D01* X19245Y-3344D01* X19273Y-3293D01* X19301Y-3256D01* X19329Y-3219D01* X19356Y-3196D01* X19379Y-3173D01* X19393Y-3164D01* X19398Y-3159D01* X19449Y-3131D01* X19500Y-3108D01* X19546Y-3094D01* X19592Y-3081D01* X19629Y-3076D01* X19657Y-3071D01* X19684D01* X19731Y-3076D01* X19772Y-3081D01* X19805Y-3090D01* X19837Y-3104D01* X19865Y-3118D01* X19883Y-3127D01* X19892Y-3131D01* X19897Y-3136D01* X19929Y-3159D01* X19952Y-3187D01* X19994Y-3242D01* X20008Y-3270D01* X20017Y-3289D01* X20026Y-3302D01* Y-3307D01* X20036Y-3330D01* X20040Y-3358D01* X20049Y-3427D01* X20059Y-3510D01* X20063Y-3589D01* X20068Y-3667D01* Y-3700D01* Y-3732D01* Y-3755D01* Y-3774D01* Y-3788D01* Y-3792D01* Y-4970D01* X20682D01* Y-3436D01* X20678Y-3358D01* X20673Y-3284D01* X20664Y-3229D01* X20659Y-3182D01* X20650Y-3150D01* X20645Y-3127D01* Y-3122D01* X20631Y-3067D01* X20613Y-3021D01* X20595Y-2974D01* X20572Y-2937D01* X20553Y-2905D01* X20539Y-2882D01* X20530Y-2868D01* X20525Y-2864D01* X20488Y-2822D01* X20447Y-2785D01* X20405Y-2753D01* X20364Y-2725D01* X20327Y-2702D01* X20294Y-2688D01* X20276Y-2679D01* X20267Y-2674D01* X20202Y-2651D01* X20137Y-2633D01* X20077Y-2619D01* X20022Y-2609D01* X19971Y-2605D01* X19929Y-2600D01* X20682D01* D01* D02* G37* G36* X12708Y-1773D02* X11117D01* X11738D01* X11170Y-3959D01* X10597Y-1773D01* X9631D01* Y-4970D01* X10227D01* Y-2457D01* X10856Y-4970D01* X11479D01* X12108Y-2457D01* X12112Y-4970D01* X12708D01* Y-1773D01* D02* G37* G36* X28569Y-2600D02* X26383D01* D01* X27501D01* X27409Y-2605D01* X27321Y-2614D01* X27233Y-2628D01* X27160Y-2651D01* X27086Y-2674D01* X27016Y-2702D01* X26956Y-2730D01* X26901Y-2762D01* X26850Y-2790D01* X26809Y-2822D01* X26772Y-2850D01* X26739Y-2873D01* X26716Y-2896D01* X26698Y-2910D01* X26688Y-2919D01* X26684Y-2924D01* X26633Y-2988D01* X26587Y-3053D01* X26545Y-3122D01* X26508Y-3196D01* X26480Y-3270D01* X26457Y-3344D01* X26420Y-3487D01* X26406Y-3557D01* X26397Y-3617D01* X26393Y-3672D01* X26388Y-3723D01* X26383Y-3760D01* Y-3815D01* X26388Y-3917D01* X26397Y-4019D01* X26411Y-4106D01* X26430Y-4194D01* X26453Y-4273D01* X26480Y-4346D01* X26504Y-4411D01* X26536Y-4471D01* X26564Y-4527D01* X26587Y-4573D01* X26614Y-4610D01* X26638Y-4642D01* X26656Y-4670D01* X26670Y-4688D01* X26679Y-4698D01* X26684Y-4702D01* X26744Y-4758D01* X26804Y-4809D01* X26869Y-4850D01* X26938Y-4887D01* X27003Y-4919D01* X27072Y-4942D01* X27136Y-4966D01* X27201Y-4980D01* X27261Y-4993D01* X27317Y-5003D01* X27367Y-5012D01* X27409Y-5016D01* X27441Y-5021D01* X27492D01* X27575Y-5016D01* X27649Y-5012D01* X27723Y-5003D01* X27793Y-4989D01* X27857Y-4975D01* X27913Y-4956D01* X27968Y-4938D01* X28014Y-4915D01* X28060Y-4896D01* X28097Y-4878D01* X28130Y-4859D01* X28157Y-4845D01* X28176Y-4832D01* X28190Y-4822D01* X28199Y-4813D01* X28204D01* X28250Y-4772D01* X28296Y-4725D01* X28375Y-4624D01* X28439Y-4522D01* X28486Y-4420D01* X28523Y-4328D01* X28536Y-4287D01* X28550Y-4254D01* X28559Y-4226D01* X28564Y-4203D01* X28569Y-4189D01* Y-4975D01* Y-4185D01* X27968Y-4083D01* X27950Y-4166D01* X27922Y-4240D01* X27899Y-4300D01* X27871Y-4346D01* X27843Y-4383D01* X27825Y-4407D01* X27811Y-4420D01* X27806Y-4425D01* X27760Y-4457D01* X27714Y-4481D01* X27668Y-4499D01* X27622Y-4508D01* X27580Y-4518D01* X27548Y-4522D01* X27520D01* X27437Y-4513D01* X27363Y-4494D01* X27303Y-4471D01* X27247Y-4439D01* X27206Y-4407D01* X27178Y-4383D01* X27155Y-4365D01* X27150Y-4356D01* X27127Y-4319D01* X27104Y-4282D01* X27072Y-4194D01* X27044Y-4097D01* X27030Y-4000D01* X27021Y-3908D01* X27016Y-3871D01* Y-3838D01* X27012Y-3811D01* Y-3788D01* Y-3774D01* Y-3769D01* Y-3704D01* X27016Y-3640D01* X27026Y-3584D01* X27035Y-3529D01* X27044Y-3483D01* X27053Y-3441D01* X27081Y-3367D01* X27104Y-3312D01* X27127Y-3275D01* X27141Y-3252D01* X27146Y-3242D01* X27201Y-3187D01* X27261Y-3150D01* X27321Y-3122D01* X27377Y-3099D01* X27432Y-3090D01* X27474Y-3085D01* X27501Y-3081D01* X27511D01* X27571Y-3085D01* X27626Y-3094D01* X27672Y-3108D01* X27714Y-3127D01* X27746Y-3145D01* X27769Y-3159D01* X27783Y-3168D01* X27788Y-3173D01* X27825Y-3210D01* X27857Y-3252D01* X27880Y-3298D01* X27903Y-3339D01* X27917Y-3381D01* X27926Y-3413D01* X27931Y-3432D01* Y-3441D01* X28536Y-3330D01* X28490Y-3201D01* X28435Y-3090D01* X28375Y-2998D01* X28315Y-2919D01* X28259Y-2859D01* X28218Y-2817D01* X28199Y-2803D01* X28185Y-2794D01* X28181Y-2785D01* X28176D01* X28074Y-2725D01* X27964Y-2679D01* X27853Y-2646D01* X27746Y-2623D01* X27696Y-2614D01* X27649Y-2609D01* X27608Y-2605D01* X27571D01* X27543Y-2600D01* X28569D01* Y-4176D01* Y-2600D01* D02* G37* G36* X23288D02* X22184D01* X22101Y-2605D01* X22022Y-2614D01* X21944Y-2633D01* X21874Y-2651D01* X21805Y-2674D01* X21745Y-2702D01* X21685Y-2734D01* X21634Y-2762D01* X21588Y-2794D01* X21546Y-2827D01* X21509Y-2854D01* X21482Y-2877D01* X21459Y-2896D01* X21440Y-2914D01* X21431Y-2924D01* X21426Y-2928D01* X21375Y-2993D01* X21329Y-3062D01* X21288Y-3131D01* X21251Y-3205D01* X21223Y-3284D01* X21200Y-3358D01* X21163Y-3501D01* X21149Y-3570D01* X21140Y-3630D01* X21135Y-3686D01* X21131Y-3732D01* X21126Y-3774D01* Y-3829D01* X21131Y-3917D01* X21135Y-4005D01* X21149Y-4083D01* X21163Y-4157D01* X21177Y-4231D01* X21200Y-4296D01* X21218Y-4356D01* X21241Y-4411D01* X21260Y-4462D01* X21283Y-4504D01* X21301Y-4541D01* X21315Y-4573D01* X21334Y-4596D01* X21343Y-4614D01* X21348Y-4624D01* X21352Y-4628D01* X21412Y-4698D01* X21472Y-4758D01* X21542Y-4809D01* X21616Y-4855D01* X21689Y-4892D01* X21763Y-4924D01* X21837Y-4952D01* X21911Y-4970D01* X21976Y-4989D01* X22041Y-4998D01* X22101Y-5007D01* X22151Y-5016D01* X22193D01* X22221Y-5021D01* X23288D01* Y-4836D01* Y-5021D01* X22249D01* X22382Y-5012D01* X22507Y-4993D01* X22614Y-4966D01* X22706Y-4933D01* X22748Y-4915D01* X22780Y-4901D01* X22812Y-4887D01* X22835Y-4873D01* X22854Y-4859D01* X22872Y-4855D01* X22877Y-4845D01* X22882D01* X22969Y-4772D01* X23048Y-4693D01* X23112Y-4605D01* X23163Y-4522D01* X23205Y-4448D01* X23219Y-4416D01* X23233Y-4388D01* X23242Y-4365D01* X23251Y-4346D01* X23256Y-4337D01* Y-4333D01* X22646Y-4231D01* X22623Y-4291D01* X22600Y-4346D01* X22577Y-4388D01* X22549Y-4425D01* X22530Y-4453D01* X22512Y-4471D01* X22498Y-4481D01* X22493Y-4485D01* X22456Y-4513D01* X22415Y-4531D01* X22373Y-4545D01* X22336Y-4554D01* X22304Y-4559D01* X22276Y-4564D01* X22253D01* X22179Y-4559D01* X22110Y-4541D01* X22045Y-4518D01* X21994Y-4490D01* X21953Y-4462D01* X21925Y-4439D01* X21902Y-4420D01* X21897Y-4416D01* X21851Y-4356D01* X21819Y-4287D01* X21791Y-4213D01* X21773Y-4148D01* X21763Y-4083D01* X21759Y-4037D01* X21754Y-4019D01* Y-4005D01* Y-3995D01* Y-3991D01* X23288D01* Y-4836D01* Y-3991D01* Y-3861D01* X23279Y-3746D01* X23265Y-3635D01* X23246Y-3533D01* X23223Y-3436D01* X23200Y-3353D01* X23173Y-3275D01* X23145Y-3205D01* X23117Y-3145D01* X23089Y-3090D01* X23066Y-3048D01* X23043Y-3011D01* X23025Y-2984D01* X23011Y-2960D01* X23002Y-2951D01* X22997Y-2947D01* X22941Y-2887D01* X22877Y-2831D01* X22812Y-2785D01* X22748Y-2748D01* X22678Y-2711D01* X22609Y-2683D01* X22544Y-2660D01* X22479Y-2642D01* X22420Y-2628D01* X22364Y-2619D01* X22313Y-2609D01* X22272Y-2605D01* X22235Y-2600D01* X23288D01* D02* G37* G36* X25889Y-2646D02* Y-2651D01* X25275D01* Y-4970D01* X25889D01* Y-2646D01* D02* G37* G36* X15369Y-2600D02* X13193D01* D01* X14177D01* X14104Y-2609D01* X14030Y-2614D01* X13965Y-2628D01* X13900Y-2637D01* X13845Y-2651D01* X13794Y-2670D01* X13748Y-2683D01* X13711Y-2697D01* X13674Y-2716D01* X13646Y-2730D01* X13618Y-2739D01* X13600Y-2753D01* X13586Y-2757D01* X13581Y-2767D01* X13577D01* X13498Y-2836D01* X13434Y-2914D01* X13378Y-2998D01* X13332Y-3076D01* X13300Y-3150D01* X13286Y-3182D01* X13276Y-3210D01* X13267Y-3233D01* X13263Y-3252D01* X13258Y-3261D01* Y-3266D01* X13808Y-3367D01* X13831Y-3312D01* X13854Y-3266D01* X13877Y-3224D01* X13905Y-3192D01* X13923Y-3168D01* X13942Y-3155D01* X13951Y-3145D01* X13956Y-3141D01* X13993Y-3118D01* X14034Y-3099D01* X14080Y-3090D01* X14122Y-3081D01* X14159Y-3076D01* X14187Y-3071D01* X14214D01* X14298Y-3076D01* X14367Y-3085D01* X14422Y-3094D01* X14469Y-3108D01* X14501Y-3127D01* X14524Y-3136D01* X14538Y-3145D01* X14542Y-3150D01* X14575Y-3182D01* X14598Y-3219D01* X14612Y-3261D01* X14626Y-3302D01* X14630Y-3344D01* X14635Y-3376D01* Y-3395D01* Y-3404D01* Y-3464D01* X14602Y-3478D01* X14561Y-3492D01* X14473Y-3520D01* X14371Y-3543D01* X14274Y-3566D01* X14182Y-3589D01* X14140Y-3598D01* X14104Y-3603D01* X14076Y-3607D01* X14053Y-3612D01* X14039Y-3617D01* X14034D01* X13923Y-3640D01* X13822Y-3663D01* X13738Y-3686D01* X13669Y-3709D01* X13614Y-3732D01* X13577Y-3746D01* X13554Y-3755D01* X13544Y-3760D01* X13484Y-3792D01* X13434Y-3829D01* X13387Y-3871D01* X13355Y-3908D01* X13323Y-3940D01* X13304Y-3968D01* X13290Y-3986D01* X13286Y-3995D01* X13253Y-4056D01* X13230Y-4116D01* X13216Y-4171D01* X13207Y-4226D01* X13198Y-4273D01* X13193Y-4310D01* Y-4342D01* X13198Y-4397D01* X13203Y-4448D01* X13226Y-4545D01* X13258Y-4628D01* X13295Y-4698D01* X13332Y-4753D01* X13364Y-4795D01* X13387Y-4822D01* X13397Y-4827D01* Y-4832D01* X13480Y-4896D01* X13572Y-4942D01* X13665Y-4975D01* X13757Y-4998D01* X13836Y-5012D01* X13872Y-5016D01* X13900D01* X13928Y-5021D01* X13960D01* X14034Y-5016D01* X14108Y-5007D01* X14173Y-4998D01* X14228Y-4984D01* X14274Y-4970D01* X14311Y-4956D01* X14334Y-4952D01* X14344Y-4947D01* X14408Y-4915D01* X14473Y-4882D01* X14528Y-4841D01* X14579Y-4804D01* X14621Y-4772D01* X14653Y-4744D01* X14672Y-4725D01* X14681Y-4721D01* X14686Y-4739D01* X14695Y-4762D01* X14699Y-4781D01* X14704Y-4786D01* Y-4790D01* X14718Y-4832D01* X14727Y-4869D01* X14736Y-4901D01* X14746Y-4924D01* X14755Y-4942D01* X14760Y-4961D01* X14764Y-4966D01* Y-4970D01* X15369D01* X15342Y-4910D01* X15318Y-4855D01* X15300Y-4804D01* X15282Y-4758D01* X15272Y-4721D01* X15263Y-4688D01* X15258Y-4670D01* Y-4665D01* X15249Y-4605D01* X15245Y-4531D01* X15235Y-4457D01* Y-4383D01* X15231Y-4319D01* Y-4263D01* Y-4240D01* Y-4226D01* Y-4217D01* Y-4213D01* X15240Y-3497D01* Y-3422D01* X15235Y-3358D01* X15231Y-3298D01* X15226Y-3242D01* X15222Y-3192D01* X15212Y-3145D01* X15208Y-3104D01* X15198Y-3071D01* X15189Y-3039D01* X15184Y-3016D01* X15171Y-2974D01* X15161Y-2956D01* X15157Y-2947D01* X15120Y-2896D01* X15078Y-2845D01* X15032Y-2803D01* X14981Y-2767D01* X14940Y-2739D01* X14903Y-2720D01* X14880Y-2706D01* X14875Y-2702D01* X14870D01* X14829Y-2683D01* X14787Y-2670D01* X14690Y-2642D01* X14589Y-2623D01* X14492Y-2614D01* X14399Y-2605D01* X14362D01* X14330Y-2600D01* X15369D01* D01* D02* G37* G36* X24905Y-1829D02* X23538D01* X24434D01* X23819Y-2189D01* Y-2651D01* X23538D01* Y-3141D01* X23819D01* Y-4152D01* Y-4213D01* Y-4263D01* Y-4314D01* X23824Y-4356D01* Y-4430D01* X23829Y-4490D01* X23833Y-4536D01* Y-4564D01* X23838Y-4582D01* Y-4587D01* X23847Y-4638D01* X23861Y-4684D01* X23875Y-4725D01* X23889Y-4758D01* X23902Y-4786D01* X23912Y-4804D01* X23916Y-4818D01* X23921Y-4822D01* X23949Y-4855D01* X23981Y-4882D01* X24046Y-4929D01* X24073Y-4942D01* X24096Y-4956D01* X24115Y-4961D01* X24120Y-4966D01* X24170Y-4984D01* X24221Y-4998D01* X24272Y-5007D01* X24318Y-5012D01* X24360Y-5016D01* X24392Y-5021D01* X24420D01* X24517Y-5016D01* X24609Y-5007D01* X24692Y-4993D01* X24762Y-4975D01* X24822Y-4961D01* X24868Y-4947D01* X24896Y-4938D01* X24900Y-4933D01* X24905D01* X24850Y-4457D01* X24794Y-4476D01* X24743Y-4490D01* X24702Y-4499D01* X24665Y-4504D01* X24637Y-4508D01* X24619Y-4513D01* X24600D01* X24558Y-4508D01* X24526Y-4499D01* X24508Y-4490D01* X24498Y-4485D01* X24471Y-4457D01* X24457Y-4434D01* X24448Y-4416D01* X24443Y-4407D01* Y-4397D01* X24438Y-4379D01* Y-4337D01* Y-4282D01* X24434Y-4226D01* Y-4171D01* Y-4125D01* Y-4106D01* Y-4092D01* Y-4083D01* Y-4079D01* Y-3141D01* X24854D01* Y-2651D01* X24434D01* Y-1829D01* X24905D01* D01* D02* G37* G36* X23538Y-3141D02* D01* Y-5021D01* Y-3141D01* D02* G37* G36* X17966Y-2600D02* X15707D01* X16681D01* X16608Y-2605D01* X16534Y-2614D01* X16464Y-2628D01* X16395Y-2646D01* X16280Y-2697D01* X16224Y-2725D01* X16178Y-2753D01* X16132Y-2785D01* X16095Y-2813D01* X16062Y-2836D01* X16035Y-2859D01* X16012Y-2882D01* X15998Y-2896D01* X15988Y-2905D01* X15984Y-2910D01* X15933Y-2970D01* X15891Y-3035D01* X15854Y-3108D01* X15822Y-3178D01* X15799Y-3252D01* X15776Y-3325D01* X15744Y-3473D01* X15730Y-3538D01* X15721Y-3603D01* X15716Y-3658D01* X15711Y-3704D01* X15707Y-3746D01* Y-3801D01* X15711Y-3885D01* X15716Y-3968D01* X15739Y-4116D01* X15757Y-4185D01* X15776Y-4250D01* X15794Y-4310D01* X15813Y-4360D01* X15831Y-4411D01* X15850Y-4453D01* X15868Y-4490D01* X15887Y-4522D01* X15901Y-4545D01* X15910Y-4564D01* X15919Y-4573D01* Y-4578D01* X15975Y-4647D01* X16030Y-4707D01* X16090Y-4758D01* X16150Y-4804D01* X16210Y-4841D01* X16275Y-4873D01* X16335Y-4901D01* X16390Y-4919D01* X16446Y-4938D01* X16497Y-4947D01* X16543Y-4956D01* X16580Y-4966D01* X16612D01* X16640Y-4970D01* X16658D01* X16737Y-4966D01* X16811Y-4952D01* X16880Y-4933D01* X16945Y-4910D01* X17060Y-4850D01* X17116Y-4818D01* X17162Y-4781D01* X17203Y-4749D01* X17245Y-4716D01* X17277Y-4684D01* X17300Y-4656D01* X17324Y-4628D01* X17337Y-4610D01* X17347Y-4601D01* X17351Y-4596D01* Y-4933D01* Y-5003D01* X17347Y-5063D01* X17342Y-5109D01* X17337Y-5146D01* X17328Y-5178D01* X17324Y-5197D01* X17319Y-5206D01* Y-5210D01* X17300Y-5247D01* X17282Y-5280D01* X17264Y-5308D01* X17245Y-5331D01* X17227Y-5349D01* X17213Y-5358D01* X17203Y-5363D01* X17199Y-5368D01* X17148Y-5391D01* X17093Y-5409D01* X17033Y-5423D01* X16973Y-5432D01* X16922Y-5437D01* X16880Y-5441D01* X16838D01* X16774Y-5437D01* X16718Y-5432D01* X16672Y-5418D01* X16635Y-5404D01* X16603Y-5395D01* X16584Y-5381D01* X16571Y-5377D01* X16566Y-5372D01* X16543Y-5354D01* X16524Y-5326D01* X16501Y-5271D01* X16497Y-5247D01* X16492Y-5224D01* X16487Y-5210D01* Y-5206D01* X15785Y-5123D01* X15780Y-5150D01* Y-5173D01* Y-5192D01* Y-5197D01* X15785Y-5252D01* X15790Y-5308D01* X15818Y-5409D01* X15859Y-5497D01* X15905Y-5571D01* X15947Y-5631D01* X15988Y-5672D01* X16016Y-5700D01* X16021Y-5705D01* X16025Y-5709D01* X16076Y-5746D01* X16132Y-5774D01* X16196Y-5802D01* X16261Y-5825D01* X16400Y-5862D01* X16538Y-5885D01* X16603Y-5894D01* X16663Y-5903D01* X16718Y-5908D01* X16765D01* X16806Y-5913D01* X15707D01* X17966D01* X16862D01* X16973Y-5908D01* X17074Y-5903D01* X17162Y-5890D01* X17241Y-5876D01* X17300Y-5866D01* X17342Y-5853D01* X17370Y-5848D01* X17379Y-5843D01* X17453Y-5816D01* X17518Y-5788D01* X17573Y-5756D01* X17619Y-5728D01* X17652Y-5705D01* X17679Y-5682D01* X17698Y-5668D01* X17702Y-5663D01* X17749Y-5617D01* X17786Y-5566D01* X17818Y-5511D01* X17846Y-5460D01* X17869Y-5414D01* X17883Y-5377D01* X17892Y-5354D01* X17897Y-5345D01* X17910Y-5303D01* X17920Y-5261D01* X17938Y-5164D01* X17947Y-5063D01* X17956Y-4961D01* X17961Y-4873D01* X17966Y-4836D01* Y-2651D01* D01* X17393D01* Y-2984D01* X17337Y-2914D01* X17282Y-2859D01* X17222Y-2803D01* X17162Y-2762D01* X17102Y-2725D01* X17042Y-2693D01* X16986Y-2670D01* X16931Y-2646D01* X16880Y-2633D01* X16834Y-2619D01* X16788Y-2614D01* X16755Y-2605D01* X16723D01* X16700Y-2600D01* X17966D01* D02* G37* G36* X23344Y-6552D02* X21080D01* D01* X22729D01* Y-7702D01* X22674Y-7647D01* X22618Y-7596D01* X22563Y-7555D01* X22503Y-7513D01* X22447Y-7485D01* X22392Y-7458D01* X22336Y-7435D01* X22286Y-7421D01* X22235Y-7407D01* X22193Y-7398D01* X22151Y-7388D01* X22119Y-7384D01* X22092Y-7379D01* X22054D01* X21976Y-7384D01* X21902Y-7393D01* X21833Y-7407D01* X21763Y-7425D01* X21648Y-7476D01* X21592Y-7504D01* X21546Y-7532D01* X21500Y-7564D01* X21463Y-7592D01* X21431Y-7615D01* X21403Y-7638D01* X21380Y-7661D01* X21366Y-7675D01* X21357Y-7684D01* X21352Y-7689D01* X21306Y-7749D01* X21264Y-7813D01* X21227Y-7883D01* X21195Y-7957D01* X21167Y-8031D01* X21144Y-8105D01* X21112Y-8252D01* X21103Y-8317D01* X21093Y-8382D01* X21089Y-8437D01* X21084Y-8488D01* X21080Y-8529D01* Y-8511D01* Y-8585D01* X21084Y-8691D01* X21093Y-8788D01* X21107Y-8881D01* X21126Y-8968D01* X21144Y-9047D01* X21167Y-9121D01* X21195Y-9185D01* X21223Y-9246D01* X21246Y-9301D01* X21274Y-9347D01* X21297Y-9389D01* X21320Y-9421D01* X21334Y-9449D01* X21348Y-9467D01* X21357Y-9477D01* X21362Y-9481D01* X21417Y-9537D01* X21472Y-9588D01* X21532Y-9629D01* X21588Y-9666D01* X21648Y-9698D01* X21703Y-9721D01* X21759Y-9745D01* X21810Y-9758D01* X21860Y-9772D01* X21907Y-9781D01* X21944Y-9791D01* X21981Y-9795D01* X22008Y-9800D01* X22045D01* X22119Y-9795D01* X22188Y-9786D01* X22258Y-9772D01* X22318Y-9754D01* X22364Y-9735D01* X22406Y-9721D01* X22429Y-9712D01* X22438Y-9708D01* X22507Y-9666D01* X22572Y-9620D01* X22632Y-9569D01* X22678Y-9523D01* X22720Y-9481D01* X22752Y-9444D01* X22771Y-9421D01* X22775Y-9412D01* Y-9749D01* X23344D01* Y-9777D01* Y-6552D01* D02* G37* G36* X27903Y-7379D02* X26406D01* D01* X27497D01* X27441Y-7384D01* X27395Y-7388D01* X27349Y-7402D01* X27312Y-7416D01* X27280Y-7430D01* X27252Y-7439D01* X27238Y-7448D01* X27233Y-7453D01* X27187Y-7485D01* X27146Y-7532D01* X27099Y-7582D01* X27063Y-7633D01* X27026Y-7684D01* X26998Y-7726D01* X26979Y-7753D01* X26975Y-7758D01* Y-7430D01* X26406D01* Y-9749D01* X27021D01* Y-9038D01* Y-8931D01* Y-8834D01* X27026Y-8747D01* X27030Y-8668D01* Y-8594D01* X27035Y-8534D01* X27040Y-8474D01* X27044Y-8428D01* X27049Y-8386D01* X27053Y-8349D01* X27058Y-8322D01* Y-8298D01* X27063Y-8285D01* X27067Y-8271D01* Y-8262D01* X27086Y-8197D01* X27109Y-8141D01* X27132Y-8095D01* X27155Y-8063D01* X27174Y-8035D01* X27192Y-8017D01* X27201Y-8007D01* X27206Y-8003D01* X27243Y-7980D01* X27280Y-7961D01* X27317Y-7947D01* X27349Y-7938D01* X27377Y-7933D01* X27404Y-7929D01* X27423D01* X27474Y-7933D01* X27525Y-7943D01* X27571Y-7961D01* X27617Y-7980D01* X27654Y-7998D01* X27682Y-8017D01* X27705Y-8026D01* X27709Y-8031D01* X27903Y-7499D01* X27830Y-7458D01* X27760Y-7430D01* X27691Y-7407D01* X27626Y-7393D01* X27575Y-7384D01* X27534Y-7379D01* X27903D01* D01* D02* G37* G36* X15379D02* X13263D01* X14593D01* X14510Y-7384D01* X14427Y-7398D01* X14353Y-7416D01* X14279Y-7439D01* X14210Y-7472D01* X14150Y-7504D01* X14090Y-7541D01* X14039Y-7573D01* X13993Y-7610D01* X13951Y-7647D01* X13914Y-7679D01* X13886Y-7712D01* X13863Y-7735D01* X13845Y-7753D01* X13836Y-7767D01* X13831Y-7772D01* Y-7430D01* X13263D01* Y-9749D01* X13877D01* Y-8705D01* Y-8636D01* Y-8571D01* X13882Y-8511D01* X13886Y-8460D01* Y-8409D01* X13891Y-8368D01* X13896Y-8326D01* X13900Y-8294D01* X13909Y-8238D01* X13914Y-8202D01* X13923Y-8178D01* Y-8174D01* X13942Y-8123D01* X13970Y-8072D01* X13997Y-8035D01* X14025Y-7998D01* X14053Y-7975D01* X14076Y-7952D01* X14090Y-7943D01* X14094Y-7938D01* X14145Y-7910D01* X14196Y-7887D01* X14242Y-7874D01* X14288Y-7860D01* X14325Y-7855D01* X14353Y-7850D01* X14381D01* X14427Y-7855D01* X14469Y-7860D01* X14501Y-7869D01* X14533Y-7883D01* X14561Y-7897D01* X14579Y-7906D01* X14589Y-7910D01* X14593Y-7915D01* X14626Y-7938D01* X14649Y-7966D01* X14690Y-8021D01* X14704Y-8049D01* X14713Y-8067D01* X14723Y-8081D01* Y-8086D01* X14732Y-8109D01* X14736Y-8137D01* X14746Y-8206D01* X14755Y-8289D01* X14760Y-8368D01* X14764Y-8446D01* Y-8479D01* Y-8511D01* Y-8534D01* Y-8553D01* Y-8567D01* Y-8571D01* Y-9749D01* X15379D01* Y-8215D01* X15374Y-8137D01* X15369Y-8063D01* X15360Y-8007D01* X15356Y-7961D01* X15346Y-7929D01* X15342Y-7906D01* Y-7901D01* X15328Y-7846D01* X15309Y-7800D01* X15291Y-7753D01* X15268Y-7716D01* X15249Y-7684D01* X15235Y-7661D01* X15226Y-7647D01* X15222Y-7643D01* X15184Y-7601D01* X15143Y-7564D01* X15101Y-7532D01* X15060Y-7504D01* X15023Y-7481D01* X14990Y-7467D01* X14972Y-7458D01* X14963Y-7453D01* X14898Y-7430D01* X14833Y-7412D01* X14773Y-7398D01* X14718Y-7388D01* X14667Y-7384D01* X14626Y-7379D01* X15379D01* D01* D02* G37* G36* X20738D02* Y-8585D01* X20733Y-8488D01* X20724Y-8395D01* X20705Y-8312D01* X20687Y-8229D01* X20659Y-8155D01* X20631Y-8081D01* X20599Y-8017D01* X20572Y-7957D01* X20539Y-7906D01* X20507Y-7855D01* X20479Y-7818D01* X20451Y-7781D01* X20433Y-7758D01* X20414Y-7735D01* X20405Y-7726D01* X20401Y-7721D01* X20336Y-7661D01* X20267Y-7610D01* X20197Y-7564D01* X20123Y-7522D01* X20049Y-7490D01* X19980Y-7462D01* X19911Y-7439D01* X19841Y-7421D01* X19782Y-7407D01* X19721Y-7398D01* X19671Y-7388D01* X19624Y-7384D01* X19587Y-7379D01* X20738D01* X18345D01* X19537D01* X19412Y-7384D01* X19296Y-7402D01* X19190Y-7425D01* X19098Y-7453D01* X19061Y-7472D01* X19024Y-7485D01* X18991Y-7495D01* X18968Y-7508D01* X18945Y-7518D01* X18931Y-7527D01* X18922Y-7532D01* X18917D01* X18821Y-7596D01* X18737Y-7666D01* X18663Y-7739D01* X18603Y-7809D01* X18557Y-7874D01* X18520Y-7924D01* X18506Y-7943D01* X18502Y-7957D01* X18493Y-7966D01* Y-7970D01* X18442Y-8077D01* X18409Y-8183D01* X18382Y-8280D01* X18363Y-8368D01* X18354Y-8446D01* X18349Y-8479D01* Y-8506D01* X18345Y-8525D01* D01* Y-9800D01* Y-8557D01* X18349Y-8700D01* X18368Y-8834D01* X18391Y-8950D01* X18405Y-9001D01* X18418Y-9047D01* X18432Y-9088D01* X18446Y-9126D01* X18460Y-9158D01* X18469Y-9185D01* X18479Y-9209D01* X18488Y-9223D01* X18493Y-9232D01* Y-9236D01* X18557Y-9333D01* X18626Y-9416D01* X18700Y-9490D01* X18770Y-9550D01* X18834Y-9597D01* X18885Y-9629D01* X18904Y-9643D01* X18917Y-9652D01* X18927Y-9657D01* X18931D01* X19042Y-9703D01* X19149Y-9740D01* X19250Y-9763D01* X19347Y-9781D01* X19426Y-9791D01* X19458Y-9795D01* X19486D01* X19509Y-9800D01* X18345D01* X19541D01* X19638Y-9795D01* X19726Y-9786D01* X19814Y-9768D01* X19892Y-9745D01* X19971Y-9721D01* X20040Y-9694D01* X20105Y-9661D01* X20165Y-9629D01* X20216Y-9597D01* X20262Y-9564D01* X20303Y-9537D01* X20336Y-9514D01* X20364Y-9490D01* X20382Y-9472D01* X20391Y-9463D01* X20396Y-9458D01* X20456Y-9389D01* X20507Y-9319D01* X20553Y-9250D01* X20595Y-9176D01* X20627Y-9102D01* X20655Y-9029D01* X20678Y-8959D01* X20696Y-8890D01* X20710Y-8830D01* X20719Y-8770D01* X20729Y-8719D01* X20733Y-8673D01* X20738Y-8636D01* Y-9490D01* Y-7379D01* D02* G37* G36* X25931D02* X24826D01* X24743Y-7384D01* X24665Y-7393D01* X24586Y-7412D01* X24517Y-7430D01* X24448Y-7453D01* X24388Y-7481D01* X24328Y-7513D01* X24277Y-7541D01* X24230Y-7573D01* X24189Y-7605D01* X24152Y-7633D01* X24124Y-7656D01* X24101Y-7675D01* X24083Y-7693D01* X24073Y-7702D01* X24069Y-7707D01* X24018Y-7772D01* X23972Y-7841D01* X23930Y-7910D01* X23893Y-7984D01* X23866Y-8063D01* X23842Y-8137D01* X23806Y-8280D01* X23792Y-8349D01* X23782Y-8409D01* X23778Y-8465D01* X23773Y-8511D01* X23768Y-8553D01* Y-8608D01* X23773Y-8696D01* X23778Y-8784D01* X23792Y-8862D01* X23806Y-8936D01* X23819Y-9010D01* X23842Y-9075D01* X23861Y-9135D01* X23884Y-9190D01* X23902Y-9241D01* X23926Y-9283D01* X23944Y-9319D01* X23958Y-9352D01* X23976Y-9375D01* X23986Y-9393D01* X23990Y-9403D01* X23995Y-9407D01* X24055Y-9477D01* X24115Y-9537D01* X24184Y-9588D01* X24258Y-9634D01* X24332Y-9671D01* X24406Y-9703D01* X24480Y-9731D01* X24554Y-9749D01* X24619Y-9768D01* X24683Y-9777D01* X24743Y-9786D01* X24794Y-9795D01* X24836D01* X24863Y-9800D01* X25931D01* Y-9121D01* Y-9800D01* X24891D01* X25025Y-9791D01* X25150Y-9772D01* X25256Y-9745D01* X25349Y-9712D01* X25390Y-9694D01* X25422Y-9680D01* X25455Y-9666D01* X25478Y-9652D01* X25496Y-9638D01* X25515Y-9634D01* X25519Y-9624D01* X25524D01* X25612Y-9550D01* X25690Y-9472D01* X25755Y-9384D01* X25806Y-9301D01* X25848Y-9227D01* X25861Y-9195D01* X25875Y-9167D01* X25885Y-9144D01* X25894Y-9126D01* X25898Y-9116D01* Y-9112D01* X25289Y-9010D01* X25265Y-9070D01* X25242Y-9126D01* X25219Y-9167D01* X25192Y-9204D01* X25173Y-9232D01* X25155Y-9250D01* X25141Y-9260D01* X25136Y-9264D01* X25099Y-9292D01* X25058Y-9310D01* X25016Y-9324D01* X24979Y-9333D01* X24947Y-9338D01* X24919Y-9343D01* X24896D01* X24822Y-9338D01* X24753Y-9319D01* X24688Y-9296D01* X24637Y-9269D01* X24596Y-9241D01* X24568Y-9218D01* X24545Y-9199D01* X24540Y-9195D01* X24494Y-9135D01* X24462Y-9065D01* X24434Y-8991D01* X24415Y-8927D01* X24406Y-8862D01* X24401Y-8816D01* X24397Y-8798D01* Y-8784D01* Y-8774D01* Y-8770D01* X25931D01* Y-9121D01* Y-8770D01* Y-8640D01* X25921Y-8525D01* X25908Y-8414D01* X25889Y-8312D01* X25866Y-8215D01* X25843Y-8132D01* X25815Y-8054D01* X25787Y-7984D01* X25760Y-7924D01* X25732Y-7869D01* X25709Y-7827D01* X25686Y-7790D01* X25667Y-7763D01* X25653Y-7739D01* X25644Y-7730D01* X25640Y-7726D01* X25584Y-7666D01* X25519Y-7610D01* X25455Y-7564D01* X25390Y-7527D01* X25321Y-7490D01* X25251Y-7462D01* X25187Y-7439D01* X25122Y-7421D01* X25062Y-7407D01* X25007Y-7398D01* X24956Y-7388D01* X24914Y-7384D01* X24877Y-7379D01* X25931D01* D02* G37* G36* X12727Y-6552D02* X10297D01* Y-9749D01* X12727D01* Y-6552D01* D02* G37* G36* X18049Y-7379D02* X15864D01* D01* X16982D01* X16889Y-7384D01* X16802Y-7393D01* X16714Y-7407D01* X16640Y-7430D01* X16566Y-7453D01* X16497Y-7481D01* X16437Y-7508D01* X16381Y-7541D01* X16330Y-7569D01* X16289Y-7601D01* X16252Y-7629D01* X16219Y-7652D01* X16196Y-7675D01* X16178Y-7689D01* X16169Y-7698D01* X16164Y-7702D01* X16113Y-7767D01* X16067Y-7832D01* X16025Y-7901D01* X15988Y-7975D01* X15961Y-8049D01* X15938Y-8123D01* X15901Y-8266D01* X15887Y-8336D01* X15878Y-8395D01* X15873Y-8451D01* X15868Y-8502D01* X15864Y-8539D01* Y-8594D01* X15868Y-8696D01* X15878Y-8798D01* X15891Y-8885D01* X15910Y-8973D01* X15933Y-9052D01* X15961Y-9126D01* X15984Y-9190D01* X16016Y-9250D01* X16044Y-9306D01* X16067Y-9352D01* X16095Y-9389D01* X16118Y-9421D01* X16136Y-9449D01* X16150Y-9467D01* X16159Y-9477D01* X16164Y-9481D01* X16224Y-9537D01* X16284Y-9588D01* X16349Y-9629D01* X16418Y-9666D01* X16483Y-9698D01* X16552Y-9721D01* X16617Y-9745D01* X16681Y-9758D01* X16741Y-9772D01* X16797Y-9781D01* X16848Y-9791D01* X16889Y-9795D01* X16922Y-9800D01* X16973D01* X17056Y-9795D01* X17130Y-9791D01* X17203Y-9781D01* X17273Y-9768D01* X17337Y-9754D01* X17393Y-9735D01* X17448Y-9717D01* X17495Y-9694D01* X17541Y-9675D01* X17578Y-9657D01* X17610Y-9638D01* X17638Y-9624D01* X17656Y-9611D01* X17670Y-9601D01* X17679Y-9592D01* X17684D01* X17730Y-9550D01* X17776Y-9504D01* X17855Y-9403D01* X17920Y-9301D01* X17966Y-9199D01* X18003Y-9107D01* X18017Y-9065D01* X18031Y-9033D01* X18040Y-9005D01* X18044Y-8982D01* X18049Y-8968D01* Y-9758D01* Y-7379D01* D02* G37* %LPD*% G36* X22290Y-3076D02* X22350Y-3094D01* X22406Y-3118D01* X22452Y-3141D01* X22489Y-3168D01* X22516Y-3192D01* X22535Y-3210D01* X22540Y-3215D01* X22581Y-3270D01* X22618Y-3335D01* X22641Y-3404D01* X22660Y-3469D01* X22669Y-3524D01* X22674Y-3575D01* X22678Y-3593D01* Y-3603D01* Y-3612D01* Y-3617D01* X21763D01* X21768Y-3529D01* X21782Y-3450D01* X21800Y-3381D01* X21828Y-3325D01* X21851Y-3279D01* X21874Y-3247D01* X21888Y-3224D01* X21893Y-3219D01* X21944Y-3168D01* X21999Y-3131D01* X22054Y-3108D01* X22105Y-3090D01* X22151Y-3081D01* X22188Y-3071D01* X22221D01* X22290Y-3076D01* D02* G37* G36* X14635Y-3986D02* Y-4060D01* X14630Y-4125D01* X14626Y-4176D01* X14621Y-4217D01* X14616Y-4245D01* X14612Y-4268D01* X14607Y-4277D01* Y-4282D01* X14593Y-4323D01* X14570Y-4365D01* X14547Y-4397D01* X14524Y-4430D01* X14501Y-4453D01* X14482Y-4471D01* X14469Y-4481D01* X14464Y-4485D01* X14408Y-4522D01* X14348Y-4545D01* X14298Y-4564D01* X14247Y-4578D01* X14205Y-4587D01* X14173Y-4591D01* X14145D01* X14094Y-4587D01* X14043Y-4578D01* X14002Y-4564D01* X13970Y-4545D01* X13937Y-4527D01* X13919Y-4513D01* X13905Y-4504D01* X13900Y-4499D01* X13868Y-4462D01* X13845Y-4425D01* X13831Y-4388D01* X13822Y-4351D01* X13812Y-4323D01* X13808Y-4300D01* Y-4282D01* Y-4277D01* X13812Y-4231D01* X13826Y-4189D01* X13845Y-4152D01* X13868Y-4120D01* X13886Y-4097D01* X13905Y-4079D01* X13919Y-4069D01* X13923Y-4065D01* X13960Y-4046D01* X14006Y-4023D01* X14062Y-4005D01* X14117Y-3991D01* X14173Y-3977D01* X14214Y-3968D01* X14233Y-3963D01* X14247Y-3959D01* X14256D01* X14348Y-3940D01* X14422Y-3921D01* X14492Y-3903D01* X14542Y-3889D01* X14584Y-3875D01* X14612Y-3871D01* X14630Y-3861D01* X14635D01* Y-3986D01* D02* G37* G36* X16922Y-3081D02* X16991Y-3099D01* X17056Y-3127D01* X17111Y-3159D01* X17153Y-3192D01* X17185Y-3219D01* X17208Y-3238D01* X17213Y-3247D01* X17264Y-3321D01* X17300Y-3404D01* X17324Y-3492D01* X17342Y-3580D01* X17351Y-3658D01* X17356Y-3695D01* X17361Y-3723D01* Y-3751D01* Y-3769D01* Y-3778D01* Y-3783D01* X17356Y-3903D01* X17337Y-4009D01* X17310Y-4097D01* X17282Y-4171D01* X17254Y-4226D01* X17227Y-4268D01* X17208Y-4291D01* X17203Y-4300D01* X17143Y-4360D01* X17079Y-4402D01* X17019Y-4434D01* X16959Y-4453D01* X16903Y-4467D01* X16862Y-4471D01* X16834Y-4476D01* X16825D01* X16751Y-4467D01* X16681Y-4448D01* X16621Y-4420D01* X16571Y-4388D01* X16529Y-4360D01* X16501Y-4333D01* X16478Y-4314D01* X16474Y-4305D01* X16427Y-4231D01* X16395Y-4148D01* X16367Y-4060D01* X16353Y-3972D01* X16344Y-3894D01* X16340Y-3857D01* Y-3829D01* X16335Y-3806D01* Y-3783D01* Y-3774D01* Y-3769D01* X16340Y-3644D01* X16358Y-3538D01* X16381Y-3450D01* X16404Y-3376D01* X16432Y-3321D01* X16450Y-3279D01* X16469Y-3256D01* X16474Y-3247D01* X16529Y-3187D01* X16589Y-3145D01* X16654Y-3113D01* X16709Y-3094D01* X16760Y-3081D01* X16802Y-3076D01* X16829Y-3071D01* X16838D01* X16922Y-3081D01* D02* G37* G36* X22295Y-7860D02* X22369Y-7878D01* X22429Y-7906D01* X22484Y-7938D01* X22526Y-7970D01* X22554Y-7998D01* X22577Y-8017D01* X22581Y-8026D01* X22609Y-8063D01* X22632Y-8100D01* X22669Y-8192D01* X22692Y-8285D01* X22711Y-8382D01* X22720Y-8465D01* X22724Y-8506D01* X22729Y-8539D01* Y-8567D01* Y-8585D01* Y-8599D01* Y-8603D01* X22724Y-8728D01* X22706Y-8839D01* X22683Y-8931D01* X22655Y-9005D01* X22627Y-9065D01* X22604Y-9107D01* X22586Y-9130D01* X22581Y-9139D01* X22521Y-9199D01* X22461Y-9241D01* X22401Y-9273D01* X22346Y-9292D01* X22295Y-9306D01* X22258Y-9310D01* X22230Y-9315D01* X22221D01* X22175Y-9310D01* X22128Y-9306D01* X22045Y-9278D01* X21976Y-9241D01* X21916Y-9195D01* X21870Y-9153D01* X21837Y-9116D01* X21819Y-9088D01* X21810Y-9084D01* Y-9079D01* X21791Y-9047D01* X21777Y-9010D01* X21750Y-8927D01* X21731Y-8834D01* X21722Y-8747D01* X21713Y-8668D01* Y-8636D01* X21708Y-8603D01* Y-8580D01* Y-8557D01* Y-8548D01* Y-8543D01* X21713Y-8423D01* X21731Y-8317D01* X21754Y-8229D01* X21782Y-8155D01* X21805Y-8100D01* X21828Y-8058D01* X21847Y-8035D01* X21851Y-8026D01* X21911Y-7966D01* X21971Y-7924D01* X22031Y-7892D01* X22092Y-7874D01* X22138Y-7860D01* X22179Y-7855D01* X22207Y-7850D01* X22216D01* X22295Y-7860D01* D02* G37* G36* X19629Y-7887D02* X19707Y-7906D01* X19772Y-7938D01* X19832Y-7970D01* X19879Y-8003D01* X19915Y-8035D01* X19934Y-8054D01* X19943Y-8063D01* X19999Y-8137D01* X20040Y-8225D01* X20068Y-8312D01* X20091Y-8395D01* X20100Y-8469D01* X20105Y-8506D01* Y-8534D01* X20109Y-8557D01* Y-8576D01* Y-8585D01* Y-8590D01* X20100Y-8710D01* X20082Y-8821D01* X20059Y-8908D01* X20026Y-8987D01* X19994Y-9042D01* X19971Y-9088D01* X19952Y-9112D01* X19943Y-9121D01* X19879Y-9181D01* X19814Y-9227D01* X19745Y-9255D01* X19680Y-9278D01* X19624Y-9292D01* X19583Y-9296D01* X19564Y-9301D01* X19541D01* X19453Y-9292D01* X19375Y-9273D01* X19306Y-9246D01* X19250Y-9209D01* X19199Y-9176D01* X19162Y-9149D01* X19144Y-9130D01* X19135Y-9121D01* X19079Y-9047D01* X19042Y-8959D01* X19015Y-8871D01* X18991Y-8784D01* X18982Y-8710D01* X18978Y-8677D01* Y-8645D01* X18973Y-8622D01* Y-8603D01* Y-8594D01* Y-8590D01* X18982Y-8469D01* X19001Y-8363D01* X19024Y-8271D01* X19056Y-8197D01* X19084Y-8141D01* X19112Y-8095D01* X19130Y-8072D01* X19135Y-8063D01* X19199Y-8003D01* X19269Y-7957D01* X19338Y-7924D01* X19403Y-7901D01* X19458Y-7887D01* X19500Y-7883D01* X19518Y-7878D01* X19541D01* X19629Y-7887D01* D02* G37* G36* X24933Y-7855D02* X24993Y-7874D01* X25048Y-7897D01* X25095Y-7920D01* X25131Y-7947D01* X25159Y-7970D01* X25178Y-7989D01* X25182Y-7994D01* X25224Y-8049D01* X25261Y-8114D01* X25284Y-8183D01* X25302Y-8248D01* X25312Y-8303D01* X25316Y-8354D01* X25321Y-8372D01* Y-8382D01* Y-8391D01* Y-8395D01* X24406D01* X24411Y-8308D01* X24424Y-8229D01* X24443Y-8160D01* X24471Y-8105D01* X24494Y-8058D01* X24517Y-8026D01* X24531Y-8003D01* X24535Y-7998D01* X24586Y-7947D01* X24642Y-7910D01* X24697Y-7887D01* X24748Y-7869D01* X24794Y-7860D01* X24831Y-7850D01* X24863D01* X24933Y-7855D01* D02* G37* G36* X12727Y-9209D02* X10943D01* Y-8340D01* X12547D01* Y-7800D01* X10943D01* Y-7093D01* X12667D01* Y-6552D01* X12727D01* Y-9209D01* D02* G37* G36* X18049Y-8964D02* X17448Y-8862D01* X17430Y-8945D01* X17402Y-9019D01* X17379Y-9079D01* X17351Y-9126D01* X17324Y-9162D01* X17305Y-9185D01* X17291Y-9199D01* X17287Y-9204D01* X17241Y-9236D01* X17194Y-9260D01* X17148Y-9278D01* X17102Y-9287D01* X17060Y-9296D01* X17028Y-9301D01* X17000D01* X16917Y-9292D01* X16843Y-9273D01* X16783Y-9250D01* X16728Y-9218D01* X16686Y-9185D01* X16658Y-9162D01* X16635Y-9144D01* X16631Y-9135D01* X16608Y-9098D01* X16584Y-9061D01* X16552Y-8973D01* X16524Y-8876D01* X16511Y-8779D01* X16501Y-8687D01* X16497Y-8650D01* Y-8617D01* X16492Y-8590D01* Y-8567D01* Y-8553D01* Y-8548D01* Y-8483D01* X16497Y-8419D01* X16506Y-8363D01* X16515Y-8308D01* X16524Y-8262D01* X16534Y-8220D01* X16561Y-8146D01* X16584Y-8091D01* X16608Y-8054D01* X16621Y-8031D01* X16626Y-8021D01* X16681Y-7966D01* X16741Y-7929D01* X16802Y-7901D01* X16857Y-7878D01* X16912Y-7869D01* X16954Y-7864D01* X16982Y-7860D01* X16991D01* X17051Y-7864D01* X17107Y-7874D01* X17153Y-7887D01* X17194Y-7906D01* X17227Y-7924D01* X17250Y-7938D01* X17264Y-7947D01* X17268Y-7952D01* X17305Y-7989D01* X17337Y-8031D01* X17361Y-8077D01* X17384Y-8118D01* X17398Y-8160D01* X17407Y-8192D01* X17411Y-8211D01* Y-8220D01* X18017Y-8109D01* X17970Y-7980D01* X17915Y-7869D01* X17855Y-7776D01* X17795Y-7698D01* X17739Y-7638D01* X17698Y-7596D01* X17679Y-7582D01* X17665Y-7573D01* X17661Y-7564D01* X17656D01* X17555Y-7504D01* X17444Y-7458D01* X17333Y-7425D01* X17227Y-7402D01* X17176Y-7393D01* X17130Y-7388D01* X17088Y-7384D01* X17051D01* X17023Y-7379D01* X18049D01* Y-8964D01* D02* G37* %LPC*% G36* X-47490Y9845D02* X-47494D01* X-47498D01* X-47520D01* X-47553Y9841D01* X-47590Y9834D01* X-47635Y9819D01* X-47675Y9800D01* X-47716Y9775D01* X-47749Y9741D01* X-47753Y9737D01* X-47760Y9723D01* X-47775Y9697D01* X-47790Y9663D01* X-47805Y9619D01* X-47820Y9564D01* X-47827Y9493D01* X-47831Y9416D01* Y9179D01* X-47124D01* Y9460D01* X-47128Y9497D01* X-47135Y9545D01* X-47146Y9593D01* X-47161Y9645D01* X-47180Y9693D01* X-47209Y9737D01* X-47213Y9741D01* X-47228Y9756D01* X-47246Y9771D01* X-47280Y9793D01* X-47316Y9811D01* X-47365Y9830D01* X-47424Y9841D01* X-47490Y9845D01* D02* G37* G36* X-46380Y-249D02* X-47176D01* X-47180D01* X-47183Y-252D01* X-47202Y-271D01* X-47231Y-297D01* X-47261Y-330D01* X-47291Y-375D01* X-47320Y-426D01* X-47339Y-489D01* X-47346Y-523D01* Y-563D01* X-47342Y-586D01* X-47339Y-615D01* X-47328Y-652D01* X-47313Y-697D01* X-47287Y-737D01* X-47250Y-782D01* X-47202Y-819D01* X-47194Y-822D01* X-47176Y-833D01* X-47142Y-848D01* X-47095Y-863D01* X-47032Y-881D01* X-46995Y-889D01* X-46954Y-896D01* X-46909Y-904D01* X-46861Y-907D01* X-46810Y-911D01* X-46754D01* X-46747D01* X-46728D01* X-46699Y-907D01* X-46661D01* X-46613Y-900D01* X-46565Y-893D01* X-46510Y-885D01* X-46454Y-870D01* X-46399Y-852D01* X-46343Y-830D01* X-46295Y-804D01* X-46247Y-774D01* X-46210Y-737D01* X-46180Y-693D01* X-46162Y-641D01* X-46155Y-586D01* Y-567D01* X-46158Y-552D01* X-46166Y-515D01* X-46184Y-471D01* X-46210Y-415D01* X-46229Y-389D01* X-46251Y-360D01* X-46277Y-330D01* X-46306Y-304D01* X-46340Y-275D01* X-46380Y-249D01* D02* G37* G36* X-46957Y-18135D02* X-47032D01* X-47035D01* X-47054D01* X-47076D01* X-47106Y-18138D01* X-47146D01* X-47187Y-18142D01* X-47235Y-18149D01* X-47283Y-18153D01* X-47390Y-18172D01* X-47490Y-18201D01* X-47539Y-18220D01* X-47583Y-18242D01* X-47624Y-18264D01* X-47657Y-18294D01* X-47661D01* X-47664Y-18301D01* X-47683Y-18323D01* X-47709Y-18357D01* X-47738Y-18405D01* X-47768Y-18468D01* X-47794Y-18538D01* X-47812Y-18623D01* X-47820Y-18667D01* Y-18889D01* X-46207D01* Y-18686D01* X-46214Y-18660D01* X-46221Y-18623D01* X-46232Y-18579D01* X-46251Y-18530D01* X-46277Y-18479D01* X-46310Y-18423D01* X-46354Y-18368D01* X-46406Y-18316D01* X-46473Y-18268D01* X-46554Y-18223D01* X-46599Y-18205D01* X-46650Y-18186D01* X-46702Y-18172D01* X-46758Y-18160D01* X-46821Y-18149D01* X-46887Y-18142D01* X-46957Y-18135D01* D02* G37* G36* X-46758Y-20273D02* X-47816Y-20562D01* X-46758Y-20854D01* Y-20273D01* D02* G37* G36* X-13816Y56270D02* X-13856D01* X-13879Y56266D01* X-13908Y56262D01* X-13945Y56251D01* X-13990Y56237D01* X-14030Y56211D01* X-14075Y56174D01* X-14112Y56126D01* X-14115Y56118D01* X-14127Y56100D01* X-14141Y56066D01* X-14156Y56018D01* X-14175Y55955D01* X-14182Y55918D01* X-14189Y55878D01* X-14197Y55833D01* X-14200Y55785D01* X-14204Y55733D01* Y55678D01* Y55670D01* Y55652D01* X-14200Y55622D01* Y55585D01* X-14193Y55537D01* X-14186Y55489D01* X-14178Y55434D01* X-14164Y55378D01* X-14145Y55323D01* X-14123Y55267D01* X-14097Y55219D01* X-14067Y55171D01* X-14030Y55134D01* X-13986Y55104D01* X-13934Y55086D01* X-13879Y55079D01* X-13860D01* X-13845Y55082D01* X-13808Y55090D01* X-13764Y55108D01* X-13708Y55134D01* X-13682Y55152D01* X-13653Y55175D01* X-13623Y55201D01* X-13597Y55230D01* X-13568Y55264D01* X-13542Y55304D01* Y56100D01* Y56103D01* X-13546Y56107D01* X-13564Y56126D01* X-13590Y56155D01* X-13623Y56185D01* X-13668Y56214D01* X-13720Y56244D01* X-13782Y56262D01* X-13816Y56270D01* D02* G37* G36* X4177Y56740D02* X3885Y55682D01* X4466D01* X4177Y56740D01* D02* G37* G36* X-7833D02* X-8125Y55682D01* X-7544D01* X-7833Y56740D01* D02* G37* G36* X-50474Y-28578D02* X-55898D01* D01* X-55180D01* X-55898Y-28792D01* X-55831Y-28955D01* X-55772Y-29103D01* X-55720Y-29229D01* X-55683Y-29340D01* X-55654Y-29436D01* X-55631Y-29503D01* X-55624Y-29547D01* X-55617Y-29555D01* Y-29562D01* X-55587Y-29695D01* X-55572Y-29843D01* X-55557Y-29999D01* X-55550Y-30147D01* X-55543Y-30280D01* Y-30494D01* X-55535Y-30628D01* X-55520Y-30761D01* X-55491Y-30887D01* X-55461Y-30990D01* X-55432Y-31079D01* X-55402Y-31153D01* X-55387Y-31197D01* X-55380Y-31205D01* Y-31212D01* X-55313Y-31331D01* X-55239Y-31442D01* X-55165Y-31530D01* X-55091Y-31604D01* X-55032Y-31664D01* X-54973Y-31708D01* X-54943Y-31738D01* X-54928Y-31745D01* X-54817Y-31812D01* X-54706Y-31856D01* X-54588Y-31893D01* X-54484Y-31915D01* X-54396Y-31930D01* X-54329Y-31937D01* X-54299D01* X-54277D01* X-54270D01* X-54262D01* X-54129Y-31930D01* X-54011Y-31915D01* X-53907Y-31893D01* X-53818Y-31863D01* X-53744Y-31834D01* X-53693Y-31812D01* X-53663Y-31797D01* X-53648Y-31789D01* X-53559Y-31723D01* X-53485Y-31656D01* X-53426Y-31582D01* X-53374Y-31508D01* X-53337Y-31442D01* X-53308Y-31390D01* X-53293Y-31360D01* X-53286Y-31345D01* X-53256Y-31405D01* X-53219Y-31456D01* X-53182Y-31508D01* X-53138Y-31545D01* X-53101Y-31575D01* X-53071Y-31597D01* X-53049Y-31612D01* X-53041Y-31619D01* X-52975Y-31656D01* X-52908Y-31678D01* X-52849Y-31701D01* X-52790Y-31708D01* X-52745Y-31715D01* X-52701Y-31723D01* X-52679D01* X-52671D01* X-52560Y-31708D01* X-52457Y-31678D01* X-52368Y-31641D01* X-52287Y-31590D01* X-52227Y-31545D01* X-52183Y-31501D01* X-52153Y-31471D01* X-52146Y-31464D01* X-52079Y-31360D01* X-52028Y-31234D01* X-51991Y-31116D01* X-51968Y-30990D01* X-51954Y-30887D01* X-51939Y-30798D01* Y-30124D01* X-51931Y-30021D01* X-51924Y-29932D01* X-51909Y-29858D01* X-51894Y-29791D01* X-51872Y-29747D01* X-51857Y-29710D01* X-51850Y-29688D01* X-51843Y-29680D01* X-51806Y-29629D01* X-51761Y-29592D01* X-51717Y-29562D01* X-51672Y-29547D01* X-51635Y-29532D01* X-51606Y-29525D01* X-51584D01* X-51576D01* X-51502Y-29532D01* X-51436Y-29555D01* X-51376Y-29592D01* X-51332Y-29629D01* X-51295Y-29666D01* X-51273Y-29703D01* X-51258Y-29725D01* X-51251Y-29732D01* X-51214Y-29821D01* X-51184Y-29925D01* X-51162Y-30043D01* X-51147Y-30161D01* X-51140Y-30265D01* X-51132Y-30354D01* Y-30561D01* X-51140Y-30665D01* X-51147Y-30761D01* X-51162Y-30827D01* X-51169Y-30887D01* X-51177Y-30931D01* X-51184Y-30953D01* Y-30961D01* X-51206Y-31020D01* X-51228Y-31072D01* X-51251Y-31109D01* X-51280Y-31146D01* X-51302Y-31168D01* X-51317Y-31183D01* X-51325Y-31197D01* X-51332D01* X-51376Y-31220D01* X-51428Y-31234D01* X-51539Y-31249D01* X-51591Y-31257D01* X-51635D01* X-51665D01* X-51672D01* Y-32048D01* D01* X-51510Y-32041D01* X-51376Y-32026D01* X-51251Y-32004D01* X-51154Y-31974D01* X-51080Y-31945D01* X-51021Y-31923D01* X-50992Y-31908D01* X-50977Y-31900D01* X-50888Y-31834D01* X-50814Y-31752D01* X-50747Y-31671D01* X-50696Y-31590D01* X-50651Y-31516D01* X-50622Y-31456D01* X-50607Y-31412D01* X-50599Y-31405D01* Y-31397D01* X-50555Y-31257D01* X-50525Y-31101D01* X-50503Y-30938D01* X-50488Y-30783D01* X-50481Y-30650D01* Y-30591D01* X-50474Y-30539D01* Y-30287D01* X-50488Y-30139D01* X-50503Y-30006D01* X-50518Y-29880D01* X-50548Y-29762D01* X-50570Y-29651D01* X-50599Y-29555D01* X-50629Y-29466D01* X-50651Y-29384D01* X-50681Y-29318D01* X-50710Y-29259D01* X-50733Y-29214D01* X-50747Y-29177D01* X-50762Y-29148D01* X-50777Y-29133D01* Y-29125D01* X-50836Y-29044D01* X-50895Y-28970D01* X-50962Y-28903D01* X-51036Y-28852D01* X-51103Y-28807D01* X-51177Y-28770D01* X-51310Y-28711D01* X-51436Y-28674D01* X-51487Y-28667D01* X-51532Y-28659D01* X-51569Y-28652D01* X-51598D01* X-51613D01* X-51621D01* X-51724Y-28659D01* X-51820Y-28681D01* X-51909Y-28704D01* X-51991Y-28733D01* X-52050Y-28770D01* X-52102Y-28792D01* X-52131Y-28815D01* X-52139Y-28822D01* X-52220Y-28889D01* X-52294Y-28970D01* X-52361Y-29044D01* X-52412Y-29125D01* X-52449Y-29192D01* X-52479Y-29244D01* X-52494Y-29281D01* X-52501Y-29296D01* X-52546Y-29414D01* X-52575Y-29532D01* X-52605Y-29643D01* X-52620Y-29747D01* X-52627Y-29843D01* X-52634Y-29910D01* Y-30642D01* X-52642Y-30702D01* X-52664Y-30790D01* X-52701Y-30850D01* X-52738Y-30894D01* X-52768Y-30916D01* X-52805Y-30931D01* X-52827Y-30938D01* X-52834D01* X-52886Y-30931D01* X-52930Y-30924D01* X-52960Y-30916D01* X-52967Y-30909D01* X-53004Y-30887D01* X-53034Y-30864D01* X-53049Y-30850D01* X-53056Y-30842D01* X-53034Y-30783D01* X-53019Y-30709D01* X-53004Y-30554D01* X-52997Y-30487D01* Y-30383D01* X-53004Y-30228D01* X-53019Y-30087D01* X-53049Y-29962D01* X-53078Y-29851D01* X-53101Y-29762D01* X-53130Y-29695D01* X-53145Y-29651D01* X-53152Y-29636D01* X-53219Y-29518D01* X-53293Y-29421D01* X-53360Y-29333D01* X-53434Y-29259D01* X-53493Y-29207D01* X-53545Y-29162D01* X-53574Y-29140D01* X-53589Y-29133D01* X-53700Y-29074D01* X-53811Y-29029D01* X-53915Y-29000D01* X-54018Y-28977D01* X-54107Y-28963D01* X-54174Y-28955D01* X-54218D01* X-54225D01* X-54233D01* X-54351Y-28963D01* X-54455Y-28985D01* X-54544Y-29007D01* X-54625Y-29037D01* X-54692Y-29074D01* X-54743Y-29096D01* X-54773Y-29118D01* X-54780Y-29125D01* X-54854Y-29192D01* X-54921Y-29266D01* X-54965Y-29340D01* X-55002Y-29414D01* X-55025Y-29473D01* X-55039Y-29532D01* X-55047Y-29562D01* Y-29577D01* X-55054Y-29384D01* Y-29296D01* X-55062Y-29222D01* Y-29155D01* X-55069Y-29111D01* Y-29066D01* X-55099Y-28889D01* X-55113Y-28807D01* X-55136Y-28733D01* X-55150Y-28667D01* X-55165Y-28622D01* X-55180Y-28585D01* Y-28578D01* X-50474D01* D01* D02* G37* G36* X-51798Y-32714D02* X-56926D01* X-53833D01* X-53989Y-32729D01* X-54122Y-32744D01* X-54255Y-32766D01* X-54381Y-32788D01* X-54492Y-32818D01* X-54588Y-32848D01* X-54684Y-32877D01* X-54766Y-32914D01* X-54840Y-32944D01* X-54899Y-32973D01* X-54951Y-32996D01* X-54988Y-33018D01* X-55017Y-33033D01* X-55032Y-33040D01* X-55039Y-33047D01* X-55128Y-33114D01* X-55202Y-33188D01* X-55276Y-33262D01* X-55328Y-33343D01* X-55380Y-33425D01* X-55417Y-33514D01* X-55483Y-33676D01* X-55513Y-33832D01* X-55528Y-33898D01* X-55535Y-33958D01* X-55543Y-34002D01* Y-34069D01* X-55535Y-34180D01* X-55520Y-34283D01* X-55498Y-34379D01* X-55476Y-34461D01* X-55446Y-34527D01* X-55424Y-34587D01* X-55409Y-34616D01* X-55402Y-34631D01* X-55350Y-34720D01* X-55291Y-34786D01* X-55232Y-34846D01* X-55173Y-34890D01* X-55121Y-34920D01* X-55084Y-34934D01* X-55054Y-34949D01* X-56926D01* X-56830Y-35815D01* X-51880D01* Y-35045D01* X-52213Y-35016D01* X-52139Y-34964D01* X-52079Y-34912D01* X-52020Y-34846D01* X-51976Y-34779D01* X-51902Y-34638D01* X-51850Y-34498D01* X-51820Y-34365D01* X-51813Y-34305D01* X-51806Y-34254D01* X-51798Y-34217D01* Y-32714D01* D02* G37* G36* X-51880Y-36599D02* X-56512D01* X-54225D01* X-54462Y-36607D01* X-54677Y-36629D01* X-54877Y-36659D01* X-55054Y-36696D01* X-55217Y-36740D01* X-55365Y-36799D01* X-55498Y-36851D01* X-55609Y-36910D01* X-55705Y-36969D01* X-55794Y-37021D01* X-55861Y-37073D01* X-55920Y-37125D01* X-55964Y-37162D01* X-55994Y-37191D01* X-56009Y-37214D01* X-56016Y-37221D01* X-56105Y-37339D01* X-56179Y-37465D01* X-56246Y-37598D01* X-56305Y-37732D01* X-56349Y-37865D01* X-56394Y-37998D01* X-56453Y-38257D01* X-56468Y-38375D01* X-56482Y-38486D01* X-56497Y-38583D01* X-56505Y-38671D01* X-56512Y-38738D01* Y-39937D01* X-51880D01* Y-38768D01* X-51887Y-38597D01* X-51902Y-38435D01* X-51924Y-38279D01* X-51961Y-38131D01* X-51998Y-37998D01* X-52042Y-37865D01* X-52087Y-37754D01* X-52139Y-37643D01* X-52183Y-37547D01* X-52227Y-37465D01* X-52272Y-37391D01* X-52309Y-37332D01* X-52346Y-37280D01* X-52368Y-37251D01* X-52383Y-37228D01* X-52390Y-37221D01* X-52494Y-37110D01* X-52620Y-37014D01* X-52753Y-36932D01* X-52893Y-36858D01* X-53049Y-36799D01* X-53197Y-36747D01* X-53352Y-36710D01* X-53500Y-36673D01* X-53648Y-36651D01* X-53781Y-36629D01* X-53907Y-36622D01* X-54011Y-36607D01* X-54100D01* X-54166Y-36599D01* X-51880D01* D01* D02* G37* %LPD*% G36* X-54159Y-29828D02* X-54055Y-29843D01* X-53974Y-29873D01* X-53900Y-29895D01* X-53848Y-29925D01* X-53804Y-29954D01* X-53781Y-29969D01* X-53774Y-29976D01* X-53715Y-30036D01* X-53678Y-30110D01* X-53648Y-30184D01* X-53626Y-30250D01* X-53611Y-30317D01* X-53604Y-30369D01* Y-30420D01* X-53611Y-30531D01* X-53633Y-30628D01* X-53656Y-30709D01* X-53693Y-30776D01* X-53722Y-30827D01* X-53744Y-30864D01* X-53767Y-30887D01* X-53774Y-30894D01* X-53848Y-30946D01* X-53922Y-30990D01* X-54003Y-31020D01* X-54085Y-31035D01* X-54151Y-31049D01* X-54211Y-31057D01* X-54248D01* X-54262D01* X-54373Y-31049D01* X-54462Y-31035D01* X-54544Y-31005D01* X-54610Y-30975D01* X-54669Y-30953D01* X-54706Y-30924D01* X-54729Y-30909D01* X-54736Y-30901D01* X-54795Y-30835D01* X-54832Y-30761D01* X-54862Y-30679D01* X-54884Y-30605D01* X-54899Y-30531D01* X-54906Y-30480D01* Y-30428D01* X-54899Y-30324D01* X-54877Y-30228D01* X-54847Y-30147D01* X-54810Y-30080D01* X-54758Y-30021D01* X-54706Y-29969D01* X-54647Y-29932D01* X-54595Y-29895D01* X-54477Y-29851D01* X-54373Y-29828D01* X-54336D01* X-54307Y-29821D01* X-54285D01* X-54277D01* X-54159Y-29828D01* D02* G37* G36* X-51798Y-34157D02* X-51806Y-34032D01* X-51820Y-33913D01* X-51843Y-33810D01* X-51880Y-33706D01* X-51917Y-33610D01* X-51961Y-33521D01* X-52013Y-33447D01* X-52057Y-33373D01* X-52109Y-33306D01* X-52153Y-33255D01* X-52198Y-33210D01* X-52235Y-33166D01* X-52272Y-33136D01* X-52294Y-33114D01* X-52309Y-33107D01* X-52316Y-33099D01* X-52420Y-33033D01* X-52523Y-32973D01* X-52634Y-32922D01* X-52753Y-32877D01* X-52975Y-32811D01* X-53197Y-32759D01* X-53293Y-32744D01* X-53389Y-32737D01* X-53471Y-32729D01* X-53537Y-32722D01* X-53596Y-32714D01* X-51798D01* Y-34157D01* D02* G37* G36* X-53456Y-33632D02* X-53352Y-33639D01* X-53263Y-33654D01* X-53182Y-33669D01* X-53108Y-33684D01* X-53041Y-33699D01* X-52982Y-33713D01* X-52886Y-33750D01* X-52812Y-33780D01* X-52775Y-33802D01* X-52760Y-33810D01* X-52664Y-33884D01* X-52590Y-33972D01* X-52546Y-34054D01* X-52509Y-34143D01* X-52486Y-34217D01* X-52479Y-34276D01* X-52472Y-34320D01* Y-34335D01* X-52479Y-34402D01* X-52486Y-34468D01* X-52531Y-34594D01* X-52583Y-34698D01* X-52649Y-34786D01* X-52716Y-34853D01* X-52775Y-34905D01* X-52812Y-34942D01* X-52819Y-34949D01* X-52827D01* X-54410D01* X-54477Y-34905D01* X-54544Y-34853D01* X-54595Y-34801D01* X-54640Y-34757D01* X-54677Y-34712D01* X-54706Y-34683D01* X-54721Y-34661D01* X-54729Y-34653D01* X-54773Y-34587D01* X-54803Y-34513D01* X-54825Y-34453D01* X-54840Y-34394D01* X-54847Y-34342D01* X-54854Y-34305D01* Y-34268D01* X-54840Y-34157D01* X-54810Y-34061D01* X-54766Y-33980D01* X-54714Y-33913D01* X-54662Y-33861D01* X-54618Y-33824D01* X-54588Y-33802D01* X-54573Y-33795D01* X-54521Y-33765D01* X-54455Y-33736D01* X-54314Y-33699D01* X-54166Y-33669D01* X-54018Y-33647D01* X-53885Y-33632D01* X-53826D01* X-53774Y-33625D01* X-53730D01* X-53700D01* X-53678D01* X-53670D01* X-53559D01* X-53456Y-33632D01* D02* G37* G36* X-53937Y-37547D02* X-53804Y-37561D01* X-53678Y-37584D01* X-53567Y-37606D01* X-53463Y-37635D01* X-53360Y-37672D01* X-53271Y-37709D01* X-53108Y-37798D01* X-52975Y-37894D01* X-52871Y-37998D01* X-52782Y-38109D01* X-52716Y-38220D01* X-52664Y-38324D01* X-52627Y-38420D01* X-52605Y-38509D01* X-52590Y-38583D01* X-52575Y-38634D01* Y-39041D01* X-55802D01* Y-38597D01* X-55787Y-38509D01* X-55750Y-38338D01* X-55698Y-38198D01* X-55639Y-38072D01* X-55580Y-37976D01* X-55528Y-37909D01* X-55491Y-37865D01* X-55483Y-37850D01* X-55476D01* X-55409Y-37791D01* X-55328Y-37746D01* X-55239Y-37702D01* X-55143Y-37665D01* X-54943Y-37606D01* X-54729Y-37569D01* X-54632Y-37561D01* X-54536Y-37547D01* X-54455Y-37539D01* X-54373D01* X-54314Y-37532D01* X-54270D01* X-54233D01* X-54225D01* X-54077D01* X-53937Y-37547D01* D02* G37* %LPC*% G36* X63237Y-2870D02* X62715D01* Y-3541D01* X59763D01* Y-2870D01* Y-4096D01* X60434Y-5167D01* X60878Y-4901D01* X60423Y-4185D01* X62715D01* Y-5012D01* X63237D01* Y-5167D01* X59763D01* D01* X63237D01* Y-2870D01* D02* G37* G36* X59763Y-5578D02* D01* Y-8514D01* X63237D01* X59763D01* X61916Y-7382D01* X63237D01* Y-6710D01* X61911D01* X59763Y-5578D01* D02* G37* G36* X63237Y-8852D02* X62715D01* Y-10345D01* X61733D01* Y-9124D01* X61217D01* Y-10345D01* X60290D01* Y-8952D01* X59763Y-8880D01* Y-8852D01* Y-11017D01* X63237D01* Y-8852D01* D02* G37* G36* Y-11555D02* D01* X61350Y-12832D01* X59763Y-11650D01* Y-12354D01* X61278Y-13470D01* X61500D01* X63237Y-12316D01* Y-13470D01* X61500D01* X61383Y-13548D01* X61278Y-13470D01* X59763D01* Y-14142D01* X63237D01* Y-11555D01* D02* G37* %LPD*% G36* X61361Y-7038D02* X59763Y-7803D01* Y-6261D01* X61361Y-7038D01* D02* G37* %LPC*% G36* X-18545Y27074D02* X-18549D01* X-18556D01* X-18571D01* X-18590Y27070D01* X-18612D01* X-18641Y27067D01* X-18701Y27059D01* X-18767Y27041D01* X-18837Y27019D01* X-18908Y26985D01* X-18967Y26941D01* X-18974Y26934D01* X-18989Y26919D01* X-19015Y26889D01* X-19041Y26852D01* X-19067Y26804D01* X-19093Y26752D01* X-19108Y26689D01* X-19115Y26619D01* Y26601D01* X-19111Y26586D01* X-19108Y26552D01* X-19096Y26508D01* X-19078Y26456D01* X-19052Y26401D01* X-19015Y26345D01* X-18967Y26293D01* X-18960Y26290D01* X-18941Y26275D01* X-18904Y26253D01* X-18860Y26230D01* X-18801Y26205D01* X-18726Y26186D01* X-18641Y26171D01* X-18545Y26164D01* X-18541D01* X-18534D01* X-18519D01* X-18501Y26168D01* X-18475D01* X-18449Y26171D01* X-18390Y26179D01* X-18319Y26197D01* X-18249Y26219D01* X-18179Y26249D01* X-18120Y26293D01* X-18112Y26301D01* X-18098Y26316D01* X-18075Y26345D01* X-18049Y26386D01* X-18020Y26430D01* X-17998Y26486D01* X-17983Y26549D01* X-17975Y26619D01* Y26638D01* X-17979Y26652D01* X-17983Y26686D01* X-17994Y26730D01* X-18012Y26782D01* X-18035Y26837D01* X-18072Y26889D01* X-18120Y26941D01* X-18127Y26948D01* X-18146Y26963D01* X-18183Y26982D01* X-18227Y27007D01* X-18290Y27033D01* X-18360Y27052D01* X-18449Y27067D01* X-18545Y27074D01* D02* G37* G36* Y20118D02* X-18549D01* X-18556D01* X-18571D01* X-18590Y20114D01* X-18612D01* X-18641Y20111D01* X-18701Y20103D01* X-18767Y20085D01* X-18837Y20063D01* X-18908Y20029D01* X-18967Y19985D01* X-18974Y19977D01* X-18989Y19963D01* X-19015Y19933D01* X-19041Y19896D01* X-19067Y19848D01* X-19093Y19796D01* X-19108Y19733D01* X-19115Y19663D01* Y19645D01* X-19111Y19630D01* X-19108Y19596D01* X-19096Y19552D01* X-19078Y19500D01* X-19052Y19445D01* X-19015Y19389D01* X-18967Y19337D01* X-18960Y19334D01* X-18941Y19319D01* X-18904Y19297D01* X-18860Y19275D01* X-18801Y19249D01* X-18726Y19230D01* X-18641Y19215D01* X-18545Y19208D01* X-18541D01* X-18534D01* X-18519D01* X-18501Y19212D01* X-18475D01* X-18449Y19215D01* X-18390Y19223D01* X-18319Y19241D01* X-18249Y19263D01* X-18179Y19293D01* X-18120Y19337D01* X-18112Y19345D01* X-18098Y19360D01* X-18075Y19389D01* X-18049Y19430D01* X-18020Y19474D01* X-17998Y19530D01* X-17983Y19593D01* X-17975Y19663D01* Y19681D01* X-17979Y19696D01* X-17983Y19730D01* X-17994Y19774D01* X-18012Y19826D01* X-18035Y19881D01* X-18072Y19933D01* X-18120Y19985D01* X-18127Y19992D01* X-18146Y20007D01* X-18183Y20026D01* X-18227Y20052D01* X-18290Y20077D01* X-18360Y20096D01* X-18449Y20111D01* X-18545Y20118D01* D02* G37* G36* X-18534Y14265D02* X-18538D01* X-18549D01* X-18564D01* X-18586D01* X-18612Y14261D01* X-18645Y14257D01* X-18712Y14250D01* X-18789Y14235D01* X-18863Y14217D01* X-18937Y14187D01* X-18967Y14168D01* X-18997Y14146D01* X-19004Y14143D01* X-19019Y14124D01* X-19041Y14102D01* X-19067Y14069D01* X-19093Y14024D01* X-19115Y13976D01* X-19130Y13917D01* X-19137Y13854D01* Y13847D01* X-19133Y13824D01* X-19130Y13791D01* X-19119Y13754D01* X-19104Y13706D01* X-19078Y13658D01* X-19045Y13610D01* X-18997Y13562D01* X-18989Y13558D01* X-18971Y13543D01* X-18937Y13525D01* X-18893Y13506D01* X-18834Y13484D01* X-18764Y13465D01* X-18678Y13451D01* X-18582Y13447D01* X-18578D01* X-18571D01* X-18553D01* X-18534D01* X-18508Y13451D01* X-18482D01* X-18419Y13458D01* X-18349Y13465D01* X-18275Y13480D01* X-18209Y13502D01* X-18179Y13514D01* X-18153Y13528D01* X-18149D01* X-18146Y13536D01* X-18123Y13551D01* X-18094Y13577D01* X-18060Y13613D01* X-18023Y13662D01* X-17994Y13717D01* X-17972Y13784D01* X-17968Y13821D01* X-17964Y13858D01* Y13865D01* X-17968Y13887D01* X-17972Y13917D01* X-17983Y13958D01* X-17998Y14002D01* X-18023Y14050D01* X-18057Y14098D01* X-18105Y14146D01* X-18112Y14150D01* X-18131Y14165D01* X-18164Y14183D01* X-18212Y14206D01* X-18271Y14228D01* X-18345Y14246D01* X-18434Y14261D01* X-18534Y14265D01* D02* G37* G36* X-18701Y12163D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y12159D01* X-18775Y12156D01* X-18819Y12148D01* X-18871Y12133D01* X-18926Y12115D01* X-18978Y12085D01* X-19023Y12052D01* X-19026Y12048D01* X-19041Y12034D01* X-19060Y12011D01* X-19082Y11982D01* X-19100Y11945D01* X-19119Y11900D01* X-19133Y11852D01* X-19137Y11797D01* Y11771D01* X-19130Y11741D01* X-19122Y11704D01* X-19108Y11664D01* X-19089Y11619D01* X-19060Y11575D01* X-19019Y11534D01* X-19015Y11530D01* X-18997Y11519D01* X-18971Y11501D01* X-18934Y11482D01* X-18889Y11460D01* X-18834Y11445D01* X-18771Y11434D01* X-18701Y11430D01* Y12163D01* D02* G37* G36* Y6794D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y6791D01* X-18775Y6787D01* X-18819Y6780D01* X-18871Y6765D01* X-18926Y6746D01* X-18978Y6717D01* X-19023Y6683D01* X-19026Y6680D01* X-19041Y6665D01* X-19060Y6643D01* X-19082Y6613D01* X-19100Y6576D01* X-19119Y6532D01* X-19133Y6484D01* X-19137Y6428D01* Y6402D01* X-19130Y6373D01* X-19122Y6336D01* X-19108Y6295D01* X-19089Y6250D01* X-19060Y6206D01* X-19019Y6165D01* X-19015Y6162D01* X-18997Y6151D01* X-18971Y6132D01* X-18934Y6114D01* X-18889Y6091D01* X-18834Y6077D01* X-18771Y6066D01* X-18701Y6062D01* Y6794D01* D02* G37* G36* X-18904Y2373D02* X-18908D01* X-18923D01* X-18945D01* X-18978Y2369D01* X-19015Y2365D01* X-19056Y2362D01* X-19104Y2358D01* X-19152Y2347D01* X-19259Y2325D01* X-19370Y2292D01* X-19426Y2269D01* X-19474Y2243D01* X-19522Y2210D01* X-19566Y2177D01* X-19570Y2173D01* X-19578Y2169D01* X-19585Y2158D01* X-19600Y2144D01* X-19618Y2121D01* X-19637Y2099D01* X-19655Y2073D01* X-19677Y2040D01* X-19696Y2007D01* X-19714Y1966D01* X-19751Y1881D01* X-19766Y1833D01* X-19774Y1781D01* X-19781Y1725D01* X-19785Y1666D01* Y1637D01* X-19781Y1614D01* X-19777Y1585D01* X-19774Y1555D01* X-19759Y1481D01* X-19729Y1400D01* X-19714Y1355D01* X-19692Y1311D01* X-19666Y1270D01* X-19637Y1226D01* X-19603Y1185D01* X-19563Y1148D01* X-19559Y1144D01* X-19552Y1141D01* X-19541Y1130D01* X-19522Y1119D01* X-19496Y1104D01* X-19470Y1089D01* X-19437Y1070D01* X-19396Y1052D01* X-19352Y1034D01* X-19304Y1015D01* X-19248Y1000D01* X-19189Y985D01* X-19122Y974D01* X-19052Y963D01* X-18978Y960D01* X-18897Y956D01* X-18893D01* X-18878D01* X-18856D01* X-18826Y960D01* X-18789Y963D01* X-18745Y967D01* X-18701Y974D01* X-18649Y982D01* X-18541Y1004D01* X-18434Y1041D01* X-18379Y1063D01* X-18327Y1089D01* X-18279Y1122D01* X-18234Y1156D01* X-18231Y1159D01* X-18223Y1167D01* X-18212Y1178D01* X-18201Y1193D01* X-18183Y1211D01* X-18164Y1237D01* X-18142Y1263D01* X-18123Y1296D01* X-18079Y1366D01* X-18046Y1455D01* X-18031Y1503D01* X-18020Y1555D01* X-18012Y1611D01* X-18009Y1666D01* Y1696D01* X-18012Y1718D01* X-18016Y1744D01* X-18020Y1774D01* X-18038Y1844D01* X-18064Y1925D01* X-18083Y1966D01* X-18101Y2010D01* X-18127Y2051D01* X-18157Y2095D01* X-18190Y2136D01* X-18231Y2173D01* X-18234Y2177D01* X-18242Y2180D01* X-18253Y2192D01* X-18271Y2203D01* X-18297Y2221D01* X-18327Y2236D01* X-18360Y2255D01* X-18401Y2273D01* X-18445Y2292D01* X-18493Y2310D01* X-18549Y2328D01* X-18612Y2343D01* X-18675Y2354D01* X-18745Y2365D01* X-18823Y2369D01* X-18904Y2373D01* D02* G37* G36* X-18534Y-1642D02* X-18538D01* X-18549D01* X-18564D01* X-18586D01* X-18612Y-1645D01* X-18645Y-1649D01* X-18712Y-1656D01* X-18789Y-1671D01* X-18863Y-1690D01* X-18937Y-1719D01* X-18967Y-1738D01* X-18997Y-1760D01* X-19004Y-1764D01* X-19019Y-1782D01* X-19041Y-1804D01* X-19067Y-1838D01* X-19093Y-1882D01* X-19115Y-1930D01* X-19130Y-1989D01* X-19137Y-2052D01* Y-2060D01* X-19133Y-2082D01* X-19130Y-2115D01* X-19119Y-2152D01* X-19104Y-2200D01* X-19078Y-2248D01* X-19045Y-2296D01* X-18997Y-2345D01* X-18989Y-2348D01* X-18971Y-2363D01* X-18937Y-2382D01* X-18893Y-2400D01* X-18834Y-2422D01* X-18764Y-2441D01* X-18678Y-2456D01* X-18582Y-2459D01* X-18578D01* X-18571D01* X-18553D01* X-18534D01* X-18508Y-2456D01* X-18482D01* X-18419Y-2448D01* X-18349Y-2441D01* X-18275Y-2426D01* X-18209Y-2404D01* X-18179Y-2393D01* X-18153Y-2378D01* X-18149D01* X-18146Y-2371D01* X-18123Y-2356D01* X-18094Y-2330D01* X-18060Y-2293D01* X-18023Y-2245D01* X-17994Y-2189D01* X-17972Y-2123D01* X-17968Y-2086D01* X-17964Y-2049D01* Y-2041D01* X-17968Y-2019D01* X-17972Y-1989D01* X-17983Y-1949D01* X-17998Y-1904D01* X-18023Y-1856D01* X-18057Y-1808D01* X-18105Y-1760D01* X-18112Y-1756D01* X-18131Y-1742D01* X-18164Y-1723D01* X-18212Y-1701D01* X-18271Y-1679D01* X-18345Y-1660D01* X-18434Y-1645D01* X-18534Y-1642D01* D02* G37* G36* X-18701Y-4738D02* X-18704D01* X-18712D01* X-18719D01* X-18734Y-4742D01* X-18775Y-4746D01* X-18819Y-4753D01* X-18871Y-4768D01* X-18926Y-4787D01* X-18978Y-4816D01* X-19023Y-4849D01* X-19026Y-4853D01* X-19041Y-4868D01* X-19060Y-4890D01* X-19082Y-4920D01* X-19100Y-4957D01* X-19119Y-5001D01* X-19133Y-5049D01* X-19137Y-5105D01* Y-5131D01* X-19130Y-5160D01* X-19122Y-5197D01* X-19108Y-5238D01* X-19089Y-5282D01* X-19060Y-5327D01* X-19019Y-5367D01* X-19015Y-5371D01* X-18997Y-5382D01* X-18971Y-5401D01* X-18934Y-5419D01* X-18889Y-5441D01* X-18834Y-5456D01* X-18771Y-5467D01* X-18701Y-5471D01* Y-4738D01* D02* G37* G36* X-51380Y11223D02* X-55043D01* D01* X-54111D01* X-54199Y11216D01* X-54362Y11193D01* X-54503Y11156D01* X-54614Y11127D01* X-54695Y11090D01* X-54755Y11053D01* X-54791Y11031D01* X-54799Y11023D01* X-54880Y10942D01* X-54940Y10853D01* X-54984Y10764D01* X-55014Y10675D01* X-55028Y10594D01* X-55043Y10535D01* Y10476D01* X-55036Y10379D01* X-55021Y10298D01* X-55006Y10217D01* X-54984Y10150D01* X-54954Y10091D01* X-54940Y10054D01* X-54925Y10024D01* X-54917Y10017D01* X-54873Y9950D01* X-54821Y9891D01* X-54769Y9847D01* X-54725Y9810D01* X-54681Y9780D01* X-54643Y9758D01* X-54621Y9750D01* X-54614Y9743D01* X-54688Y9721D01* X-54755Y9684D01* X-54814Y9647D01* X-54865Y9602D01* X-54902Y9551D01* X-54940Y9499D01* X-54991Y9395D01* X-55021Y9292D01* X-55036Y9210D01* X-55043Y9173D01* Y9129D01* X-55036Y9033D01* X-55021Y8951D01* X-55006Y8877D01* X-54984Y8811D01* X-54954Y8759D01* X-54940Y8714D01* X-54925Y8692D01* X-54917Y8685D01* X-54865Y8618D01* X-54814Y8566D01* X-54755Y8522D01* X-54703Y8492D01* X-54658Y8463D01* X-54621Y8448D01* X-54592Y8433D01* X-54584D01* X-54954Y8396D01* Y7723D01* X-51380D01* Y11223D01* D02* G37* G36* Y7220D02* X-54111D01* X-54199Y7212D01* X-54362Y7190D01* X-54503Y7153D01* X-54614Y7123D01* X-54695Y7086D01* X-54755Y7049D01* X-54791Y7027D01* X-54799Y7020D01* X-54880Y6938D01* X-54940Y6850D01* X-54984Y6761D01* X-55014Y6672D01* X-55028Y6591D01* X-55043Y6531D01* Y6472D01* X-55036Y6376D01* X-55021Y6295D01* X-55006Y6213D01* X-54984Y6147D01* X-54954Y6087D01* X-54940Y6050D01* X-54925Y6021D01* X-54917Y6013D01* X-54873Y5947D01* X-54821Y5888D01* X-54769Y5843D01* X-54725Y5806D01* X-54681Y5777D01* X-54643Y5754D01* X-54621Y5747D01* X-54614Y5740D01* X-54688Y5717D01* X-54755Y5680D01* X-54814Y5643D01* X-54865Y5599D01* X-54902Y5547D01* X-54940Y5495D01* X-54991Y5392D01* X-55021Y5288D01* X-55036Y5207D01* X-55043Y5170D01* Y5125D01* X-55036Y5029D01* X-55021Y4948D01* X-55006Y4874D01* X-54984Y4807D01* X-54954Y4755D01* X-54940Y4711D01* X-54925Y4689D01* X-54917Y4681D01* X-54865Y4615D01* X-54814Y4563D01* X-54755Y4519D01* X-54703Y4489D01* X-54658Y4459D01* X-54621Y4445D01* X-54592Y4430D01* X-54584D01* X-54954Y4393D01* Y3719D01* X-55043D01* X-51380D01* Y7220D01* D02* G37* G36* X-51299Y3090D02* D01* Y1462D01* X-51306Y1603D01* X-51321Y1736D01* X-51343Y1862D01* X-51380Y1973D01* X-51417Y2084D01* X-51461Y2180D01* X-51506Y2269D01* X-51550Y2350D01* X-51595Y2424D01* X-51647Y2484D01* X-51683Y2535D01* X-51720Y2580D01* X-51758Y2617D01* X-51780Y2639D01* X-51794Y2654D01* X-51802Y2661D01* X-51898Y2735D01* X-52009Y2802D01* X-52120Y2861D01* X-52231Y2913D01* X-52350Y2950D01* X-52460Y2987D01* X-52683Y3039D01* X-52786Y3053D01* X-52875Y3068D01* X-52964Y3076D01* X-53038Y3083D01* X-53097Y3090D01* X-51299D01* X-55043D01* X-53178D01* X-53334Y3083D01* X-53482Y3076D01* X-53622Y3053D01* X-53748Y3024D01* X-53866Y2994D01* X-53978Y2957D01* X-54081Y2920D01* X-54177Y2883D01* X-54259Y2839D01* X-54325Y2802D01* X-54392Y2765D01* X-54444Y2735D01* X-54481Y2706D01* X-54510Y2683D01* X-54525Y2676D01* X-54532Y2669D01* X-54621Y2587D01* X-54703Y2498D01* X-54769Y2402D01* X-54829Y2306D01* X-54880Y2202D01* X-54917Y2106D01* X-54954Y2003D01* X-54976Y1914D01* X-54999Y1825D01* X-55014Y1736D01* X-55028Y1662D01* X-55036Y1596D01* X-55043Y1544D01* Y1470D01* X-55036Y1329D01* X-55021Y1196D01* X-54999Y1070D01* X-54962Y959D01* X-54925Y848D01* X-54880Y752D01* X-54836Y663D01* X-54784Y582D01* X-54740Y508D01* X-54688Y441D01* X-54643Y389D01* X-54606Y345D01* X-54570Y308D01* X-54547Y286D01* X-54532Y271D01* X-54525Y264D01* X-54429Y190D01* X-54318Y123D01* X-54214Y64D01* X-54096Y19D01* X-53985Y-25D01* X-53874Y-62D01* X-53659Y-114D01* X-53556Y-129D01* X-53467Y-143D01* X-53386Y-151D01* X-53312Y-158D01* X-53252Y-166D01* X-55043D01* X-51299D01* Y3090D01* D02* G37* G36* Y-669D02* D01* Y-2149D01* X-51306Y-1986D01* X-51321Y-1831D01* X-51350Y-1683D01* X-51388Y-1542D01* X-51432Y-1409D01* X-51484Y-1290D01* X-51535Y-1172D01* X-51595Y-1076D01* X-51647Y-980D01* X-51698Y-898D01* X-51750Y-832D01* X-51794Y-772D01* X-51832Y-728D01* X-51861Y-698D01* X-51876Y-676D01* X-51883Y-669D01* X-52424Y-1091D01* X-52357Y-1187D01* X-52290Y-1283D01* X-52246Y-1364D01* X-52201Y-1438D01* X-52172Y-1505D01* X-52142Y-1549D01* X-52135Y-1579D01* X-52127Y-1586D01* X-52098Y-1675D01* X-52076Y-1764D01* X-52053Y-1853D01* X-52046Y-1934D01* X-52039Y-2008D01* X-52031Y-2067D01* Y-2119D01* X-52039Y-2215D01* X-52046Y-2312D01* X-52091Y-2474D01* X-52157Y-2622D01* X-52231Y-2748D01* X-52305Y-2844D01* X-52372Y-2918D01* X-52416Y-2963D01* X-52424Y-2970D01* X-52431Y-2978D01* X-52512Y-3037D01* X-52601Y-3081D01* X-52801Y-3163D01* X-53008Y-3222D01* X-53215Y-3259D01* X-53319Y-3274D01* X-53408Y-3288D01* X-53489Y-3296D01* X-53563D01* X-53622Y-3303D01* X-53667D01* X-53696D01* X-53704D01* X-53866Y-3296D01* X-54014Y-3288D01* X-54148Y-3274D01* X-54273Y-3251D01* X-54392Y-3229D01* X-54496Y-3200D01* X-54592Y-3170D01* X-54673Y-3140D01* X-54747Y-3111D01* X-54814Y-3081D01* X-54865Y-3052D01* X-54910Y-3029D01* X-54940Y-3007D01* X-54962Y-2992D01* X-54976Y-2978D01* X-54984D01* X-55058Y-2911D01* X-55117Y-2844D01* X-55169Y-2778D01* X-55213Y-2704D01* X-55287Y-2563D01* X-55332Y-2430D01* X-55361Y-2304D01* X-55369Y-2260D01* X-55376Y-2215D01* X-55383Y-2178D01* Y-2038D01* X-55369Y-1942D01* X-55332Y-1771D01* X-55280Y-1609D01* X-55221Y-1468D01* X-55154Y-1350D01* X-55124Y-1305D01* X-55102Y-1261D01* X-55080Y-1231D01* X-55065Y-1209D01* X-55058Y-1194D01* X-55050Y-1187D01* X-55591Y-735D01* X-55687Y-854D01* X-55768Y-972D01* X-55842Y-1076D01* X-55894Y-1179D01* X-55931Y-1261D01* X-55961Y-1320D01* X-55976Y-1364D01* X-55983Y-1372D01* Y-1379D01* X-56020Y-1505D01* X-56050Y-1638D01* X-56072Y-1771D01* X-56086Y-1890D01* X-56094Y-1993D01* X-56101Y-2082D01* Y-2156D01* X-56086Y-2363D01* X-56057Y-2563D01* X-56012Y-2741D01* X-55961Y-2896D01* X-55931Y-2963D01* X-55901Y-3029D01* X-55879Y-3081D01* X-55857Y-3126D01* X-55842Y-3163D01* X-55827Y-3185D01* X-55813Y-3200D01* Y-3207D01* X-55694Y-3377D01* X-55568Y-3525D01* X-55428Y-3651D01* X-55295Y-3755D01* X-55176Y-3843D01* X-55124Y-3873D01* X-55080Y-3903D01* X-55043Y-3925D01* X-55014Y-3940D01* X-54999Y-3954D01* X-54991D01* X-54784Y-4043D01* X-54562Y-4110D01* X-54347Y-4162D01* X-54148Y-4191D01* X-54052Y-4206D01* X-53970Y-4213D01* X-53896Y-4221D01* X-53829D01* X-53778Y-4228D01* X-56101D01* D01* X-51299D01* Y-669D01* D02* G37* G36* Y-8676D02* D01* Y-10156D01* X-51306Y-9993D01* X-51321Y-9837D01* X-51350Y-9689D01* X-51388Y-9549D01* X-51432Y-9416D01* X-51484Y-9297D01* X-51535Y-9179D01* X-51595Y-9083D01* X-51647Y-8986D01* X-51698Y-8905D01* X-51750Y-8838D01* X-51794Y-8779D01* X-51832Y-8735D01* X-51861Y-8705D01* X-51876Y-8683D01* X-51883Y-8676D01* X-52424Y-9097D01* X-52357Y-9194D01* X-52290Y-9290D01* X-52246Y-9371D01* X-52201Y-9445D01* X-52172Y-9512D01* X-52142Y-9556D01* X-52135Y-9586D01* X-52127Y-9593D01* X-52098Y-9682D01* X-52076Y-9771D01* X-52053Y-9860D01* X-52046Y-9941D01* X-52039Y-10015D01* X-52031Y-10074D01* Y-10126D01* X-52039Y-10222D01* X-52046Y-10318D01* X-52091Y-10481D01* X-52157Y-10629D01* X-52231Y-10755D01* X-52305Y-10851D01* X-52372Y-10925D01* X-52416Y-10970D01* X-52424Y-10977D01* X-52431Y-10984D01* X-52512Y-11044D01* X-52601Y-11088D01* X-52801Y-11169D01* X-53008Y-11229D01* X-53215Y-11266D01* X-53319Y-11280D01* X-53408Y-11295D01* X-53489Y-11303D01* X-53563D01* X-53622Y-11310D01* X-53667D01* X-53696D01* X-53704D01* X-53866Y-11303D01* X-54014Y-11295D01* X-54148Y-11280D01* X-54273Y-11258D01* X-54392Y-11236D01* X-54496Y-11206D01* X-54592Y-11177D01* X-54673Y-11147D01* X-54747Y-11118D01* X-54814Y-11088D01* X-54865Y-11058D01* X-54910Y-11036D01* X-54940Y-11014D01* X-54962Y-10999D01* X-54976Y-10984D01* X-54984D01* X-55058Y-10918D01* X-55117Y-10851D01* X-55169Y-10785D01* X-55213Y-10711D01* X-55287Y-10570D01* X-55332Y-10437D01* X-55361Y-10311D01* X-55369Y-10267D01* X-55376Y-10222D01* X-55383Y-10185D01* Y-10045D01* X-55369Y-9948D01* X-55332Y-9778D01* X-55280Y-9615D01* X-55221Y-9475D01* X-55154Y-9356D01* X-55124Y-9312D01* X-55102Y-9268D01* X-55080Y-9238D01* X-55065Y-9216D01* X-55058Y-9201D01* X-55050Y-9194D01* X-55591Y-8742D01* X-55687Y-8861D01* X-55768Y-8979D01* X-55842Y-9083D01* X-55894Y-9186D01* X-55931Y-9268D01* X-55961Y-9327D01* X-55976Y-9371D01* X-55983Y-9379D01* Y-9386D01* X-56020Y-9512D01* X-56050Y-9645D01* X-56072Y-9778D01* X-56086Y-9897D01* X-56094Y-10000D01* X-56101Y-10089D01* Y-10163D01* X-56086Y-10370D01* X-56057Y-10570D01* X-56012Y-10748D01* X-55961Y-10903D01* X-55931Y-10970D01* X-55901Y-11036D01* X-55879Y-11088D01* X-55857Y-11132D01* X-55842Y-11169D01* X-55827Y-11192D01* X-55813Y-11206D01* Y-11214D01* X-55694Y-11384D01* X-55568Y-11532D01* X-55428Y-11658D01* X-55295Y-11761D01* X-55176Y-11850D01* X-55124Y-11880D01* X-55080Y-11909D01* X-55043Y-11932D01* X-55014Y-11946D01* X-54999Y-11961D01* X-54991D01* X-54784Y-12050D01* X-54562Y-12117D01* X-54347Y-12168D01* X-54148Y-12198D01* X-54052Y-12213D01* X-53970Y-12220D01* X-53896Y-12228D01* X-53829D01* X-53778Y-12235D01* X-56101D01* D01* X-51299D01* Y-8676D01* D02* G37* G36* X-51380Y-12775D02* D01* Y-14943D01* X-51388Y-14773D01* X-51402Y-14610D01* X-51424Y-14455D01* X-51461Y-14307D01* X-51499Y-14174D01* X-51543Y-14041D01* X-51587Y-13930D01* X-51639Y-13819D01* X-51683Y-13722D01* X-51728Y-13641D01* X-51772Y-13567D01* X-51809Y-13508D01* X-51846Y-13456D01* X-51868Y-13426D01* X-51883Y-13404D01* X-51891Y-13397D01* X-51994Y-13286D01* X-52120Y-13190D01* X-52253Y-13108D01* X-52394Y-13034D01* X-52549Y-12975D01* X-52697Y-12923D01* X-52853Y-12886D01* X-53001Y-12849D01* X-53149Y-12827D01* X-53282Y-12805D01* X-53408Y-12797D01* X-53511Y-12783D01* X-53600D01* X-53667Y-12775D01* X-53726D01* X-53963Y-12783D01* X-54177Y-12805D01* X-54377Y-12834D01* X-54555Y-12871D01* X-54717Y-12916D01* X-54865Y-12975D01* X-54999Y-13027D01* X-55110Y-13086D01* X-55206Y-13145D01* X-55295Y-13197D01* X-55361Y-13249D01* X-55421Y-13301D01* X-55465Y-13338D01* X-55494Y-13367D01* X-55509Y-13389D01* X-55517Y-13397D01* X-55606Y-13515D01* X-55680Y-13641D01* X-55746Y-13774D01* X-55805Y-13907D01* X-55850Y-14041D01* X-55894Y-14174D01* X-55953Y-14433D01* X-55968Y-14551D01* X-55983Y-14662D01* X-55998Y-14758D01* X-56005Y-14847D01* X-56012Y-14914D01* Y-16113D01* X-51380D01* Y-12775D01* D02* G37* G36* Y-16579D02* D01* X-56012Y-18029D01* Y-19073D01* X-51380Y-20523D01* X-56012D01* D01* X-51380D01* Y-16579D01* D02* G37* %LPD*% G36* Y9839D02* X-54052D01* X-54148Y9913D01* X-54222Y9995D01* X-54273Y10069D01* X-54311Y10135D01* X-54333Y10194D01* X-54340Y10239D01* X-54347Y10276D01* Y10313D01* X-54333Y10342D01* X-54303Y10379D01* X-54273Y10402D01* X-54266Y10409D01* X-54259D01* X-54222Y10424D01* X-54170Y10431D01* X-54052Y10439D01* X-53992Y10446D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y9839D01* D02* G37* G36* Y8507D02* X-54052D01* X-54148Y8581D01* X-54222Y8663D01* X-54273Y8737D01* X-54311Y8803D01* X-54333Y8862D01* X-54340Y8907D01* X-54347Y8944D01* Y8981D01* X-54333Y9010D01* X-54303Y9047D01* X-54273Y9070D01* X-54266Y9077D01* X-54259D01* X-54222Y9092D01* X-54170Y9099D01* X-54052Y9107D01* X-53992Y9114D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y8507D01* D02* G37* G36* Y5836D02* X-54052D01* X-54148Y5910D01* X-54222Y5991D01* X-54273Y6065D01* X-54311Y6132D01* X-54333Y6191D01* X-54340Y6235D01* X-54347Y6272D01* Y6309D01* X-54333Y6339D01* X-54303Y6376D01* X-54273Y6398D01* X-54266Y6406D01* X-54259D01* X-54222Y6420D01* X-54170Y6428D01* X-54052Y6435D01* X-53992Y6443D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y5836D01* D02* G37* G36* Y4504D02* X-54052D01* X-54148Y4578D01* X-54222Y4659D01* X-54273Y4733D01* X-54311Y4800D01* X-54333Y4859D01* X-54340Y4903D01* X-54347Y4940D01* Y4977D01* X-54333Y5007D01* X-54303Y5044D01* X-54273Y5066D01* X-54266Y5074D01* X-54259D01* X-54222Y5088D01* X-54170Y5096D01* X-54052Y5103D01* X-53992Y5111D01* X-53948D01* X-53918D01* X-53904D01* X-51380D01* Y4504D01* D02* G37* G36* X-52956Y2180D02* X-52860Y2173D01* X-52771Y2158D01* X-52690Y2143D01* X-52609Y2128D01* X-52542Y2114D01* X-52483Y2099D01* X-52386Y2062D01* X-52312Y2032D01* X-52276Y2010D01* X-52261Y2003D01* X-52165Y1929D01* X-52098Y1847D01* X-52046Y1751D01* X-52017Y1670D01* X-51994Y1588D01* X-51987Y1522D01* X-51980Y1477D01* Y1462D01* X-51994Y1337D01* X-52024Y1226D01* X-52068Y1137D01* X-52120Y1063D01* X-52172Y996D01* X-52216Y959D01* X-52246Y930D01* X-52261Y922D01* X-52320Y893D01* X-52379Y863D01* X-52520Y819D01* X-52675Y789D01* X-52823Y767D01* X-52956Y752D01* X-53016D01* X-53067Y745D01* X-53112D01* X-53141D01* X-53163D01* X-53171D01* X-53282D01* X-53386Y752D01* X-53482Y759D01* X-53570Y774D01* X-53652Y789D01* X-53726Y804D01* X-53852Y833D01* X-53948Y863D01* X-54014Y893D01* X-54052Y915D01* X-54066Y922D01* X-54163Y996D01* X-54229Y1085D01* X-54281Y1174D01* X-54311Y1263D01* X-54333Y1344D01* X-54340Y1411D01* X-54347Y1455D01* Y1470D01* X-54333Y1596D01* X-54303Y1707D01* X-54259Y1795D01* X-54207Y1869D01* X-54155Y1929D01* X-54111Y1973D01* X-54081Y1995D01* X-54066Y2003D01* X-54007Y2032D01* X-53948Y2062D01* X-53807Y2106D01* X-53659Y2143D01* X-53519Y2165D01* X-53386Y2180D01* X-53326D01* X-53275Y2188D01* X-53237D01* X-53208D01* X-53186D01* X-53178D01* X-53067D01* X-52956Y2180D01* D02* G37* G36* X-51299Y-166D02* X-53171D01* X-53008Y-158D01* X-52860Y-151D01* X-52719Y-129D01* X-52586Y-99D01* X-52460Y-69D01* X-52350Y-32D01* X-52246Y5D01* X-52150Y49D01* X-52068Y86D01* X-52002Y123D01* X-51935Y160D01* X-51883Y190D01* X-51846Y219D01* X-51817Y241D01* X-51802Y249D01* X-51794Y256D01* X-51706Y338D01* X-51632Y434D01* X-51565Y530D01* X-51506Y626D01* X-51461Y730D01* X-51417Y826D01* X-51358Y1018D01* X-51343Y1107D01* X-51328Y1196D01* X-51314Y1270D01* X-51306Y1337D01* X-51299Y1388D01* Y-166D01* D02* G37* G36* Y-4228D02* X-53704D01* X-53430Y-4213D01* X-53178Y-4184D01* X-53060Y-4169D01* X-52956Y-4147D01* X-52853Y-4117D01* X-52764Y-4095D01* X-52683Y-4073D01* X-52609Y-4043D01* X-52542Y-4021D01* X-52490Y-4006D01* X-52453Y-3984D01* X-52416Y-3977D01* X-52401Y-3962D01* X-52394D01* X-52201Y-3851D01* X-52039Y-3732D01* X-51898Y-3614D01* X-51780Y-3488D01* X-51691Y-3385D01* X-51624Y-3303D01* X-51602Y-3266D01* X-51587Y-3244D01* X-51573Y-3229D01* Y-3222D01* X-51484Y-3037D01* X-51417Y-2852D01* X-51365Y-2674D01* X-51336Y-2504D01* X-51321Y-2430D01* X-51314Y-2363D01* X-51306Y-2304D01* Y-2252D01* X-51299Y-2208D01* Y-4228D01* D02* G37* G36* Y-12235D02* X-53704D01* X-53430Y-12220D01* X-53178Y-12191D01* X-53060Y-12176D01* X-52956Y-12154D01* X-52853Y-12124D01* X-52764Y-12102D01* X-52683Y-12080D01* X-52609Y-12050D01* X-52542Y-12028D01* X-52490Y-12013D01* X-52453Y-11991D01* X-52416Y-11983D01* X-52401Y-11969D01* X-52394D01* X-52201Y-11858D01* X-52039Y-11739D01* X-51898Y-11621D01* X-51780Y-11495D01* X-51691Y-11391D01* X-51624Y-11310D01* X-51602Y-11273D01* X-51587Y-11251D01* X-51573Y-11236D01* Y-11229D01* X-51484Y-11044D01* X-51417Y-10859D01* X-51365Y-10681D01* X-51336Y-10511D01* X-51321Y-10437D01* X-51314Y-10370D01* X-51306Y-10311D01* Y-10259D01* X-51299Y-10215D01* Y-12235D01* D02* G37* G36* X-53437Y-13722D02* X-53304Y-13737D01* X-53178Y-13759D01* X-53067Y-13782D01* X-52964Y-13811D01* X-52860Y-13848D01* X-52771Y-13885D01* X-52609Y-13974D01* X-52475Y-14070D01* X-52372Y-14174D01* X-52283Y-14285D01* X-52216Y-14396D01* X-52165Y-14499D01* X-52127Y-14596D01* X-52105Y-14684D01* X-52091Y-14758D01* X-52076Y-14810D01* Y-15217D01* X-55302D01* Y-14773D01* X-55287Y-14684D01* X-55250Y-14514D01* X-55199Y-14374D01* X-55139Y-14248D01* X-55080Y-14152D01* X-55028Y-14085D01* X-54991Y-14041D01* X-54984Y-14026D01* X-54976D01* X-54910Y-13967D01* X-54829Y-13922D01* X-54740Y-13878D01* X-54643Y-13841D01* X-54444Y-13782D01* X-54229Y-13745D01* X-54133Y-13737D01* X-54037Y-13722D01* X-53955Y-13715D01* X-53874D01* X-53815Y-13708D01* X-53770D01* X-53733D01* X-53726D01* X-53578D01* X-53437Y-13722D01* D02* G37* G36* X-53178Y-19147D02* X-55295Y-18562D01* X-53178Y-17985D01* Y-19147D01* D02* G37* G36* X-51380Y-19635D02* X-52460Y-19317D01* Y-17815D01* X-51380Y-17496D01* Y-19635D01* D02* G37* %LPC*% G36* X36754Y-5170D02* X35562Y-6932D01* X36754D01* Y-5170D01* D02* G37* G36* X40772Y-5777D02* X40757D01* X40713Y-5785D01* X40646Y-5792D01* X40565Y-5814D01* X40468Y-5844D01* X40365Y-5896D01* X40269Y-5962D01* X40172Y-6051D01* X40165Y-6066D01* X40135Y-6103D01* X40098Y-6169D01* X40061Y-6258D01* X40017Y-6377D01* X39980Y-6517D01* X39950Y-6687D01* X39943Y-6887D01* Y-6895D01* Y-6909D01* Y-6939D01* Y-6983D01* X39950Y-7028D01* Y-7087D01* X39965Y-7213D01* X39987Y-7346D01* X40017Y-7487D01* X40061Y-7620D01* X40121Y-7738D01* Y-7746D01* X40135Y-7753D01* X40165Y-7797D01* X40224Y-7857D01* X40306Y-7931D01* X40402Y-8005D01* X40520Y-8064D01* X40653Y-8108D01* X40727Y-8116D01* X40809Y-8123D01* X40824D01* X40861Y-8116D01* X40927Y-8108D01* X41001Y-8086D01* X41090Y-8056D01* X41179Y-8005D01* X41275Y-7938D01* X41364Y-7849D01* X41371Y-7834D01* X41401Y-7797D01* X41438Y-7731D01* X41482Y-7635D01* X41527Y-7516D01* X41564Y-7368D01* X41578Y-7279D01* X41593Y-7183D01* X41601Y-7087D01* Y-6976D01* Y-6969D01* Y-6946D01* Y-6917D01* Y-6872D01* X41593Y-6821D01* X41586Y-6761D01* X41571Y-6621D01* X41541Y-6473D01* X41504Y-6317D01* X41445Y-6177D01* X41408Y-6118D01* X41364Y-6058D01* X41356Y-6044D01* X41319Y-6014D01* X41275Y-5970D01* X41201Y-5918D01* X41120Y-5866D01* X41016Y-5822D01* X40905Y-5792D01* X40772Y-5777D01* D02* G37* G36* X-53526Y44535D02* D01* X-54958Y43608D01* X-56206Y44413D01* Y43731D01* X-55296Y43231D01* X-56206Y42731D01* Y42021D01* X-54935Y42848D01* X-53526Y41916D01* X-56206D01* D01* X-53526D01* Y44535D01* D02* G37* G36* X-53465Y41311D02* Y39934D01* X-53470Y40029D01* X-53481Y40112D01* X-53498Y40195D01* X-53520Y40267D01* X-53537Y40328D01* X-53553Y40373D01* X-53565Y40400D01* X-53570Y40412D01* X-53614Y40489D01* X-53659Y40556D01* X-53709Y40611D01* X-53753Y40650D01* X-53798Y40678D01* X-53831Y40700D01* X-53853Y40706D01* X-53859Y40711D01* X-53526Y40739D01* Y41311D01* X-56206D01* Y40489D01* Y40661D01* X-54303D01* X-54253Y40628D01* X-54208Y40584D01* X-54164Y40545D01* X-54131Y40506D01* X-54103Y40473D01* X-54081Y40445D01* X-54070Y40423D01* X-54064Y40417D01* X-54031Y40362D01* X-54009Y40306D01* X-53992Y40251D01* X-53981Y40206D01* X-53975Y40167D01* X-53970Y40134D01* Y40106D01* X-53975Y40051D01* X-53981Y40001D01* X-53997Y39962D01* X-54014Y39929D01* X-54025Y39901D01* X-54042Y39884D01* X-54047Y39873D01* X-54053Y39868D01* X-54092Y39840D01* X-54136Y39823D01* X-54236Y39801D01* X-54281Y39796D01* X-54319Y39790D01* X-54342D01* X-54353D01* X-56206D01* Y39801D01* Y39141D01* X-53465D01* Y41311D01* D02* G37* G36* X-53526Y38702D02* D01* X-57000Y37614D01* Y36832D01* X-53526Y35744D01* X-57000D01* D01* X-53526D01* Y38702D01* D02* G37* G36* X-54830Y35278D02* X-55379D01* Y33163D01* X-54830D01* Y35278D01* D02* G37* G36* X-53820Y32370D02* X-54230Y32081D01* X-54153Y31953D01* X-54097Y31831D01* X-54058Y31720D01* X-54031Y31626D01* X-54014Y31543D01* X-54009Y31482D01* X-54003Y31460D01* Y31432D01* X-54014Y31326D01* X-54036Y31232D01* X-54064Y31149D01* X-54103Y31082D01* X-54142Y31032D01* X-54169Y30993D01* X-54192Y30966D01* X-54203Y30960D01* X-54242Y30932D01* X-54286Y30904D01* X-54391Y30860D01* X-54497Y30832D01* X-54602Y30810D01* X-54702Y30799D01* X-54741Y30793D01* X-54780D01* X-54808Y30788D01* X-54830D01* X-54847D01* X-54852D01* X-54935D01* X-55013Y30793D01* X-55152Y30816D01* X-55263Y30843D01* X-55357Y30877D01* X-55429Y30904D01* X-55485Y30932D01* X-55513Y30954D01* X-55524Y30960D01* X-55596Y31032D01* X-55651Y31104D01* X-55690Y31187D01* X-55712Y31260D01* X-55729Y31326D01* X-55735Y31382D01* X-55740Y31404D01* Y31432D01* X-55729Y31548D01* X-55707Y31659D01* X-55673Y31770D01* X-55635Y31870D01* X-55590Y31953D01* X-55574Y31987D01* X-55557Y32020D01* X-55546Y32042D01* X-55535Y32059D01* X-55524Y32070D01* Y32076D01* X-55923Y32370D01* D01* X-55984Y32292D01* X-56040Y32209D01* X-56084Y32131D01* X-56123Y32048D01* X-56162Y31970D01* X-56190Y31887D01* X-56229Y31743D01* X-56245Y31676D01* X-56256Y31615D01* X-56262Y31559D01* X-56267Y31509D01* X-56273Y31471D01* Y30105D01* Y31421D01* X-56267Y31276D01* X-56245Y31138D01* X-56212Y31021D01* X-56179Y30916D01* X-56145Y30832D01* X-56129Y30799D01* X-56112Y30771D01* X-56101Y30744D01* X-56090Y30727D01* X-56084Y30721D01* Y30716D01* X-56012Y30610D01* X-55929Y30516D01* X-55846Y30438D01* X-55762Y30377D01* X-55690Y30327D01* X-55635Y30288D01* X-55612Y30277D01* X-55596Y30266D01* X-55585Y30261D01* X-55579D01* X-55457Y30211D01* X-55329Y30172D01* X-55207Y30144D01* X-55096Y30128D01* X-54996Y30116D01* X-54958Y30111D01* X-54919Y30105D01* X-53465D01* X-54852D01* X-54736Y30111D01* X-54625Y30122D01* X-54525Y30139D01* X-54430Y30161D01* X-54336Y30183D01* X-54253Y30216D01* X-54181Y30244D01* X-54108Y30277D01* X-54047Y30311D01* X-53997Y30338D01* X-53948Y30372D01* X-53909Y30394D01* X-53881Y30416D01* X-53859Y30433D01* X-53848Y30444D01* X-53842Y30449D01* X-53775Y30516D01* X-53720Y30594D01* X-53670Y30666D01* X-53626Y30749D01* X-53587Y30827D01* X-53559Y30910D01* X-53515Y31065D01* X-53498Y31138D01* X-53487Y31204D01* X-53476Y31260D01* X-53470Y31315D01* X-53465Y31354D01* Y31415D01* X-53470Y31509D01* X-53476Y31604D01* X-53492Y31693D01* X-53509Y31770D01* X-53520Y31831D01* X-53537Y31881D01* X-53542Y31915D01* X-53548Y31926D01* X-53587Y32015D01* X-53626Y32103D01* X-53676Y32175D01* X-53720Y32242D01* X-53759Y32298D01* X-53792Y32336D01* X-53814Y32359D01* X-53820Y32370D01* D02* G37* G36* X-53526Y29306D02* X-55457D01* X-55590Y29295D01* X-55712Y29273D01* X-55818Y29245D01* X-55901Y29206D01* X-55968Y29167D01* X-56018Y29140D01* X-56045Y29117D01* X-56056Y29106D01* X-56129Y29029D01* X-56184Y28934D01* X-56223Y28840D01* X-56245Y28745D01* X-56262Y28662D01* X-56267Y28629D01* Y28596D01* X-56273Y28574D01* Y28596D01* Y28535D01* X-56267Y28440D01* X-56256Y28352D01* X-56240Y28268D01* X-56217Y28196D01* X-56195Y28135D01* X-56179Y28091D01* X-56168Y28063D01* X-56162Y28052D01* X-56117Y27974D01* X-56068Y27907D01* X-56023Y27852D01* X-55979Y27808D01* X-55934Y27774D01* X-55901Y27746D01* X-55879Y27735D01* X-55873Y27730D01* X-56206Y27702D01* Y27130D01* X-56273D01* X-53526D01* Y29306D01* D02* G37* G36* Y26409D02* X-54047D01* Y24916D01* X-55030D01* Y26137D01* X-55546D01* Y24916D01* X-56473D01* Y26309D01* X-57000Y26381D01* Y24245D01* X-53526D01* Y26409D01* D02* G37* %LPD*% G36* Y42604D02* X-54580Y43209D01* X-53526Y43819D01* Y42604D01* D02* G37* G36* X-53465Y39141D02* X-54286D01* X-54147Y39152D01* X-54025Y39174D01* X-53920Y39202D01* X-53831Y39241D01* X-53764Y39279D01* X-53714Y39307D01* X-53687Y39329D01* X-53676Y39340D01* X-53603Y39424D01* X-53553Y39518D01* X-53515Y39618D01* X-53492Y39712D01* X-53476Y39801D01* X-53470Y39834D01* Y39868D01* X-53465Y39895D01* Y39141D01* D02* G37* G36* X-54874Y36776D02* X-56462Y37215D01* X-54874Y37648D01* Y36776D01* D02* G37* G36* X-53526Y36410D02* X-54336Y36649D01* Y37775D01* X-53526Y38014D01* Y36410D01* D02* G37* G36* Y27780D02* X-55413D01* X-55513Y27863D01* X-55551Y27902D01* X-55590Y27941D01* X-55618Y27974D01* X-55640Y28002D01* X-55651Y28019D01* X-55657Y28024D01* X-55690Y28080D01* X-55712Y28135D01* X-55735Y28190D01* X-55746Y28235D01* X-55751Y28274D01* X-55757Y28307D01* Y28385D01* X-55751Y28424D01* X-55740Y28462D01* X-55735Y28490D01* X-55724Y28512D01* X-55712Y28529D01* X-55707Y28535D01* Y28540D01* X-55685Y28562D01* X-55657Y28585D01* X-55601Y28612D01* X-55574Y28618D01* X-55557Y28623D01* X-55540Y28629D01* X-55535D01* X-55485Y28640D01* X-55429Y28646D01* X-55318Y28651D01* X-55263Y28657D01* X-55224D01* X-55196D01* X-55185D01* X-53526D01* Y27780D01* D02* G37* %LPC*% G36* X37459Y-32386D02* X37454D01* X37432D01* X37404Y-32392D01* X37365Y-32397D01* X37321Y-32408D01* X37271Y-32419D01* X37221Y-32441D01* X37165Y-32469D01* X37110Y-32508D01* X37060Y-32552D01* X37010Y-32608D01* X36965Y-32669D01* X36926Y-32747D01* X36899Y-32841D01* X36877Y-32941D01* X36871Y-33063D01* Y-33424D01* X38098D01* Y-33002D01* X38092Y-32947D01* X38081Y-32874D01* X38064Y-32797D01* X38037Y-32713D01* X38003Y-32636D01* X37953Y-32563D01* X37948Y-32558D01* X37925Y-32536D01* X37887Y-32508D01* X37837Y-32475D01* X37770Y-32441D01* X37681Y-32414D01* X37581Y-32392D01* X37459Y-32386D01* D02* G37* G36* X38475Y-44624D02* X36888Y-45057D01* X38475Y-45495D01* Y-44624D01* D02* G37* G36* X-12230Y26532D02* X-13621D01* X-12360D01* X-12475Y26523D01* X-12586Y26509D01* X-12688Y26491D01* X-12785Y26468D01* X-12868Y26445D01* X-12946Y26417D01* X-13016Y26389D01* X-13076Y26362D01* X-13131Y26334D01* X-13173Y26311D01* X-13210Y26287D01* X-13237Y26269D01* X-13261Y26255D01* X-13270Y26246D01* X-13274Y26241D01* X-13334Y26186D01* X-13390Y26121D01* X-13436Y26057D01* X-13473Y25992D01* X-13510Y25923D01* X-13538Y25853D01* X-13561Y25789D01* X-13579Y25724D01* X-13593Y25664D01* X-13602Y25608D01* X-13612Y25558D01* X-13616Y25516D01* X-13621Y25479D01* D01* Y25428D01* X-13616Y25345D01* X-13607Y25267D01* X-13589Y25188D01* X-13570Y25119D01* X-13547Y25049D01* X-13519Y24989D01* X-13487Y24929D01* X-13459Y24879D01* X-13427Y24832D01* X-13395Y24791D01* X-13367Y24754D01* X-13344Y24726D01* X-13325Y24703D01* X-13307Y24684D01* X-13297Y24675D01* X-13293Y24671D01* X-13228Y24620D01* X-13159Y24574D01* X-13090Y24532D01* X-13016Y24495D01* X-12937Y24467D01* X-12863Y24444D01* X-12720Y24407D01* X-12651Y24393D01* X-12591Y24384D01* X-12535Y24379D01* X-12489Y24375D01* X-12447Y24370D01* X-11200D01* Y25493D01* X-11209Y25627D01* X-11228Y25752D01* X-11255Y25858D01* X-11288Y25950D01* X-11306Y25992D01* X-11320Y26024D01* X-11334Y26057D01* X-11348Y26080D01* X-11362Y26098D01* X-11366Y26117D01* X-11376Y26121D01* Y26126D01* X-11450Y26214D01* X-11528Y26292D01* X-11616Y26357D01* X-11699Y26408D01* X-11773Y26449D01* X-11805Y26463D01* X-11833Y26477D01* X-11856Y26486D01* X-11874Y26495D01* X-11884Y26500D01* X-11888D01* X-11990Y25890D01* X-11930Y25867D01* X-11874Y25844D01* X-11833Y25821D01* X-11796Y25793D01* X-11768Y25775D01* X-11750Y25756D01* X-11740Y25742D01* X-11736Y25738D01* X-11708Y25701D01* X-11690Y25659D01* X-11676Y25618D01* X-11667Y25581D01* X-11662Y25548D01* X-11657Y25521D01* Y25497D01* X-11662Y25424D01* X-11681Y25354D01* X-11704Y25290D01* X-11731Y25239D01* X-11759Y25197D01* X-11782Y25170D01* X-11801Y25146D01* X-11805Y25142D01* X-11865Y25096D01* X-11935Y25063D01* X-12009Y25036D01* X-12073Y25017D01* X-12138Y25008D01* X-12184Y25003D01* X-12202Y24999D01* X-12216D01* X-12226D01* X-12230D01* Y26532D01* D02* G37* G36* X-11251Y23945D02* X-14448D01* Y23331D01* X-13297D01* X-13353Y23275D01* X-13404Y23220D01* X-13445Y23164D01* X-13487Y23104D01* X-13515Y23049D01* X-13542Y22994D01* X-13565Y22938D01* X-13579Y22887D01* X-13593Y22836D01* X-13602Y22795D01* X-13612Y22753D01* X-13616Y22721D01* X-13621Y22693D01* Y22656D01* X-13616Y22578D01* X-13607Y22504D01* X-13593Y22434D01* X-13575Y22365D01* X-13524Y22250D01* X-13496Y22194D01* X-13468Y22148D01* X-13436Y22102D01* X-13408Y22065D01* X-13385Y22032D01* X-13362Y22005D01* X-13339Y21982D01* X-13325Y21968D01* X-13316Y21959D01* X-13311Y21954D01* X-13251Y21908D01* X-13187Y21866D01* X-13117Y21829D01* X-13043Y21797D01* X-12969Y21769D01* X-12896Y21746D01* X-12748Y21714D01* X-12683Y21704D01* X-12618Y21695D01* X-12563Y21691D01* X-12512Y21686D01* X-12471Y21681D01* X-14448D01* D01* X-11200D01* X-12415D01* X-12309Y21686D01* X-12212Y21695D01* X-12119Y21709D01* X-12032Y21728D01* X-11953Y21746D01* X-11879Y21769D01* X-11814Y21797D01* X-11754Y21825D01* X-11699Y21848D01* X-11653Y21876D01* X-11611Y21899D01* X-11579Y21922D01* X-11551Y21936D01* X-11533Y21949D01* X-11523Y21959D01* X-11519Y21963D01* X-11463Y22019D01* X-11412Y22074D01* X-11371Y22134D01* X-11334Y22190D01* X-11302Y22250D01* X-11278Y22305D01* X-11255Y22361D01* X-11242Y22411D01* X-11228Y22462D01* X-11219Y22508D01* X-11209Y22545D01* X-11205Y22582D01* X-11200Y22610D01* Y22647D01* X-11205Y22721D01* X-11214Y22790D01* X-11228Y22860D01* X-11246Y22920D01* X-11265Y22966D01* X-11278Y23007D01* X-11288Y23030D01* X-11292Y23040D01* X-11334Y23109D01* X-11380Y23174D01* X-11431Y23234D01* X-11477Y23280D01* X-11519Y23322D01* X-11556Y23354D01* X-11579Y23372D01* X-11588Y23377D01* X-11251D01* Y23945D01* D02* G37* G36* Y21187D02* X-13570D01* Y20573D01* X-13880D01* Y21187D01* X-14448D01* Y20573D01* X-11251D01* Y21187D01* D02* G37* G36* X-11944Y20037D02* X-13621D01* Y17875D01* Y18840D01* X-13612Y18757D01* X-13602Y18678D01* X-13589Y18605D01* X-13575Y18540D01* X-13556Y18480D01* X-13538Y18424D01* X-13519Y18373D01* X-13496Y18332D01* X-13478Y18295D01* X-13459Y18263D01* X-13445Y18239D01* X-13431Y18216D01* X-13422Y18203D01* X-13418Y18198D01* X-13413Y18193D01* X-13376Y18152D01* X-13334Y18115D01* X-13293Y18082D01* X-13247Y18059D01* X-13163Y18013D01* X-13085Y17985D01* X-13016Y17971D01* X-12983Y17967D01* X-12960Y17962D01* X-12937Y17958D01* X-12923D01* X-12914D01* X-12909D01* X-12849Y17962D01* X-12794Y17971D01* X-12739Y17981D01* X-12688Y17999D01* X-12600Y18045D01* X-12526Y18096D01* X-12466Y18143D01* X-12424Y18189D01* X-12406Y18207D01* X-12397Y18216D01* X-12392Y18226D01* X-12387Y18230D01* X-12364Y18272D01* X-12336Y18327D01* X-12309Y18392D01* X-12286Y18461D01* X-12258Y18535D01* X-12235Y18614D01* X-12189Y18775D01* X-12166Y18854D01* X-12147Y18928D01* X-12129Y18993D01* X-12115Y19053D01* X-12105Y19104D01* X-12096Y19140D01* X-12087Y19163D01* Y19173D01* X-12073Y19228D01* X-12059Y19270D01* X-12045Y19307D01* X-12036Y19334D01* X-12022Y19353D01* X-12018Y19367D01* X-12009Y19376D01* X-11971Y19404D01* X-11935Y19418D01* X-11907Y19422D01* X-11898D01* X-11893D01* X-11856Y19418D01* X-11824Y19408D01* X-11796Y19395D01* X-11773Y19381D01* X-11754Y19367D01* X-11740Y19353D01* X-11731Y19344D01* X-11727Y19339D01* X-11699Y19288D01* X-11681Y19233D01* X-11662Y19173D01* X-11653Y19117D01* X-11648Y19067D01* X-11643Y19020D01* Y18983D01* X-11648Y18905D01* X-11657Y18840D01* X-11671Y18780D01* X-11690Y18734D01* X-11704Y18697D01* X-11717Y18669D01* X-11727Y18651D01* X-11731Y18646D01* X-11768Y18605D01* X-11814Y18572D01* X-11856Y18544D01* X-11902Y18521D01* X-11944Y18507D01* X-11976Y18498D01* X-11995Y18489D01* X-12004D01* X-11912Y17875D01* X-11796Y17916D01* X-11690Y17967D01* X-11602Y18022D01* X-11528Y18082D01* X-11468Y18138D01* X-11426Y18189D01* X-11408Y18203D01* X-11399Y18216D01* X-11394Y18226D01* X-11389Y18230D01* X-11357Y18286D01* X-11325Y18341D01* X-11278Y18466D01* X-11246Y18591D01* X-11223Y18711D01* X-11214Y18766D01* X-11209Y18817D01* X-11205Y18863D01* Y18905D01* X-11200Y18937D01* Y18983D01* X-11205Y19076D01* X-11209Y19163D01* X-11223Y19247D01* X-11237Y19325D01* X-11251Y19395D01* X-11274Y19459D01* X-11292Y19519D01* X-11315Y19570D01* X-11334Y19616D01* X-11357Y19658D01* X-11376Y19690D01* X-11389Y19718D01* X-11408Y19741D01* X-11417Y19755D01* X-11422Y19764D01* X-11426Y19769D01* X-11473Y19815D01* X-11519Y19857D01* X-11565Y19894D01* X-11611Y19926D01* X-11657Y19949D01* X-11704Y19972D01* X-11787Y20004D01* X-11865Y20023D01* X-11898Y20027D01* X-11921Y20032D01* X-11944Y20037D01* D02* G37* G36* X-11251Y17468D02* X-13621D01* X-12785D01* X-12863Y17463D01* X-12937Y17459D01* X-12992Y17449D01* X-13039Y17445D01* X-13071Y17436D01* X-13094Y17431D01* X-13099D01* X-13154Y17417D01* X-13201Y17399D01* X-13247Y17380D01* X-13284Y17357D01* X-13316Y17339D01* X-13339Y17325D01* X-13353Y17315D01* X-13358Y17311D01* X-13399Y17274D01* X-13436Y17232D01* X-13468Y17191D01* X-13496Y17149D01* X-13519Y17112D01* X-13533Y17080D01* X-13542Y17061D01* X-13547Y17052D01* X-13570Y16987D01* X-13589Y16923D01* X-13602Y16863D01* X-13612Y16807D01* X-13616Y16757D01* X-13621Y16715D01* Y16683D01* X-13616Y16599D01* X-13602Y16516D01* X-13584Y16442D01* X-13561Y16368D01* X-13529Y16299D01* X-13496Y16239D01* X-13459Y16179D01* X-13427Y16128D01* X-13390Y16082D01* X-13353Y16040D01* X-13321Y16003D01* X-13288Y15976D01* X-13265Y15953D01* X-13247Y15934D01* X-13233Y15925D01* X-13228Y15920D01* X-13570D01* Y15352D01* X-11251D01* Y15971D01* Y15967D01* X-12295D01* X-12364D01* X-12429D01* X-12489Y15971D01* X-12540Y15976D01* X-12591D01* X-12632Y15980D01* X-12674Y15985D01* X-12706Y15990D01* X-12762Y15999D01* X-12799Y16003D01* X-12822Y16013D01* X-12826D01* X-12877Y16031D01* X-12928Y16059D01* X-12965Y16087D01* X-13002Y16114D01* X-13025Y16142D01* X-13048Y16165D01* X-13057Y16179D01* X-13062Y16184D01* X-13090Y16234D01* X-13113Y16285D01* X-13126Y16331D01* X-13140Y16378D01* X-13145Y16415D01* X-13150Y16442D01* Y16470D01* X-13145Y16516D01* X-13140Y16558D01* X-13131Y16590D01* X-13117Y16623D01* X-13103Y16650D01* X-13094Y16669D01* X-13090Y16678D01* X-13085Y16683D01* X-13062Y16715D01* X-13034Y16738D01* X-12979Y16780D01* X-12951Y16793D01* X-12933Y16803D01* X-12919Y16812D01* X-12914D01* X-12891Y16821D01* X-12863Y16826D01* X-12794Y16835D01* X-12711Y16844D01* X-12632Y16849D01* X-12554Y16853D01* X-12521D01* X-12489D01* X-12466D01* X-12447D01* X-12433D01* X-12429D01* X-11251D01* Y16590D01* Y17468D01* D02* G37* G36* Y14747D02* X-14448D01* Y14100D01* X-11251D01* Y14747D01* D02* G37* %LPD*% G36* X-12605Y25008D02* X-12692Y25012D01* X-12771Y25026D01* X-12840Y25045D01* X-12896Y25073D01* X-12942Y25096D01* X-12974Y25119D01* X-12997Y25133D01* X-13002Y25137D01* X-13053Y25188D01* X-13090Y25243D01* X-13113Y25299D01* X-13131Y25350D01* X-13140Y25396D01* X-13150Y25433D01* Y25465D01* X-13145Y25534D01* X-13126Y25595D01* X-13103Y25650D01* X-13080Y25696D01* X-13053Y25733D01* X-13029Y25761D01* X-13011Y25779D01* X-13006Y25784D01* X-12951Y25826D01* X-12886Y25863D01* X-12817Y25886D01* X-12752Y25904D01* X-12697Y25913D01* X-12646Y25918D01* X-12628Y25923D01* X-12618D01* X-12609D01* X-12605D01* Y25008D01* D02* G37* G36* X-11200Y24370D02* X-12392D01* X-12304Y24375D01* X-12216Y24379D01* X-12138Y24393D01* X-12064Y24407D01* X-11990Y24421D01* X-11925Y24444D01* X-11865Y24463D01* X-11810Y24486D01* X-11759Y24504D01* X-11717Y24527D01* X-11681Y24546D01* X-11648Y24560D01* X-11625Y24578D01* X-11607Y24587D01* X-11597Y24592D01* X-11593Y24597D01* X-11523Y24657D01* X-11463Y24717D01* X-11412Y24786D01* X-11366Y24860D01* X-11329Y24934D01* X-11297Y25008D01* X-11269Y25082D01* X-11251Y25156D01* X-11232Y25220D01* X-11223Y25285D01* X-11214Y25345D01* X-11205Y25396D01* Y25438D01* X-11200Y25465D01* Y24370D01* D02* G37* G36* X-12272Y23326D02* X-12161Y23308D01* X-12069Y23284D01* X-11995Y23257D01* X-11935Y23229D01* X-11893Y23206D01* X-11870Y23188D01* X-11861Y23183D01* X-11801Y23123D01* X-11759Y23063D01* X-11727Y23003D01* X-11708Y22947D01* X-11694Y22896D01* X-11690Y22860D01* X-11685Y22832D01* Y22823D01* X-11690Y22776D01* X-11694Y22730D01* X-11722Y22647D01* X-11759Y22578D01* X-11805Y22518D01* X-11847Y22471D01* X-11884Y22439D01* X-11912Y22421D01* X-11916Y22411D01* X-11921D01* X-11953Y22393D01* X-11990Y22379D01* X-12073Y22351D01* X-12166Y22333D01* X-12253Y22324D01* X-12332Y22314D01* X-12364D01* X-12397Y22310D01* X-12420D01* X-12443D01* X-12452D01* X-12457D01* X-12577Y22314D01* X-12683Y22333D01* X-12771Y22356D01* X-12845Y22384D01* X-12900Y22407D01* X-12942Y22430D01* X-12965Y22448D01* X-12974Y22453D01* X-13034Y22513D01* X-13076Y22573D01* X-13108Y22633D01* X-13126Y22693D01* X-13140Y22739D01* X-13145Y22781D01* X-13150Y22809D01* Y22818D01* X-13140Y22896D01* X-13122Y22970D01* X-13094Y23030D01* X-13062Y23086D01* X-13029Y23128D01* X-13002Y23155D01* X-12983Y23178D01* X-12974Y23183D01* X-12937Y23211D01* X-12900Y23234D01* X-12808Y23271D01* X-12715Y23294D01* X-12618Y23312D01* X-12535Y23322D01* X-12494Y23326D01* X-12461Y23331D01* X-12433D01* X-12415D01* X-12401D01* X-12397D01* X-12272Y23326D01* D02* G37* G36* X-12078Y20027D02* X-12170Y20004D01* X-12249Y19977D01* X-12313Y19940D01* X-12364Y19903D01* X-12401Y19875D01* X-12420Y19852D01* X-12429Y19843D01* X-12457Y19801D01* X-12489Y19760D01* X-12512Y19709D01* X-12540Y19653D01* X-12586Y19542D01* X-12628Y19427D01* X-12660Y19325D01* X-12669Y19279D01* X-12683Y19237D01* X-12692Y19205D01* X-12697Y19182D01* X-12701Y19163D01* Y19159D01* X-12725Y19071D01* X-12743Y18993D01* X-12762Y18923D01* X-12780Y18863D01* X-12794Y18808D01* X-12808Y18762D01* X-12822Y18725D01* X-12831Y18688D01* X-12845Y18660D01* X-12854Y18637D01* X-12859Y18618D01* X-12868Y18609D01* X-12872Y18591D01* X-12877Y18586D01* X-12896Y18567D01* X-12914Y18554D01* X-12951Y18535D01* X-12979Y18526D01* X-12983D01* X-12988D01* X-13016Y18531D01* X-13039Y18535D01* X-13080Y18563D01* X-13103Y18586D01* X-13113Y18591D01* Y18595D01* X-13136Y18642D01* X-13154Y18692D01* X-13163Y18748D01* X-13173Y18808D01* X-13177Y18859D01* X-13182Y18900D01* Y18942D01* X-13177Y19011D01* X-13173Y19071D01* X-13159Y19122D01* X-13145Y19163D01* X-13131Y19196D01* X-13122Y19219D01* X-13113Y19233D01* X-13108Y19237D01* X-13080Y19274D01* X-13048Y19302D01* X-13016Y19330D01* X-12979Y19348D01* X-12951Y19362D01* X-12928Y19371D01* X-12909Y19381D01* X-12905D01* X-13011Y19958D01* X-13117Y19921D01* X-13210Y19870D01* X-13288Y19820D01* X-13348Y19764D01* X-13399Y19718D01* X-13436Y19676D01* X-13455Y19649D01* X-13464Y19644D01* Y19639D01* X-13491Y19593D01* X-13515Y19542D01* X-13556Y19432D01* X-13584Y19316D01* X-13602Y19200D01* X-13607Y19145D01* X-13612Y19094D01* X-13616Y19048D01* X-13621Y19011D01* Y20037D01* X-11976D01* X-12078Y20027D01* D02* G37* %LPC*% G36* X63270Y14075D02* Y14008D01* X62738Y14075D01* D01* Y12543D01* X62660Y12643D01* X62582Y12737D01* X62510Y12826D01* X62438Y12910D01* X62371Y12987D01* X62305Y13059D01* X62244Y13120D01* X62194Y13181D01* X62144Y13231D01* X62099Y13276D01* X62061Y13315D01* X62027Y13348D01* X61999Y13370D01* X61983Y13387D01* X61972Y13398D01* X61966Y13403D01* X61839Y13514D01* X61716Y13603D01* X61611Y13681D01* X61517Y13747D01* X61439Y13792D01* X61378Y13825D01* X61356Y13836D01* X61339Y13847D01* X61334Y13853D01* X61328D01* X61217Y13903D01* X61111Y13936D01* X61012Y13964D01* X60917Y13981D01* X60839Y13992D01* X60784Y13997D01* X60756D01* X60740D01* X60734D01* X60729D01* X60629Y13992D01* X60534Y13975D01* X60445Y13953D01* X60373Y13931D01* X60312Y13908D01* X60262Y13886D01* X60235Y13870D01* X60224Y13864D01* X60140Y13809D01* X60074Y13747D01* X60007Y13681D01* X59957Y13620D01* X59918Y13564D01* X59885Y13520D01* X59868Y13487D01* X59863Y13481D01* Y13476D01* X59818Y13376D01* X59785Y13276D01* X59763Y13176D01* X59746Y13081D01* X59735Y12998D01* X59729Y12932D01* Y11744D01* D01* Y12876D01* X59735Y12743D01* X59752Y12621D01* X59774Y12510D01* X59796Y12415D01* X59824Y12338D01* X59846Y12282D01* X59857Y12260D01* X59863Y12244D01* X59868Y12238D01* Y12232D01* X59924Y12133D01* X59990Y12044D01* X60062Y11960D01* X60135Y11888D01* X60201Y11827D01* X60251Y11783D01* X60273Y11766D01* X60290Y11755D01* X60296Y11744D01* X63270D01* X60301D01* X60618Y12155D01* X60545Y12221D01* X60490Y12282D01* X60440Y12338D01* X60401Y12388D01* X60373Y12427D01* X60357Y12454D01* X60346Y12477D01* X60340Y12482D01* X60312Y12538D01* X60296Y12599D01* X60279Y12660D01* X60273Y12715D01* X60268Y12765D01* X60262Y12804D01* Y12837D01* X60268Y12921D01* X60285Y12993D01* X60307Y13054D01* X60329Y13109D01* X60351Y13148D01* X60373Y13181D01* X60390Y13198D01* X60396Y13204D01* X60451Y13248D01* X60507Y13281D01* X60568Y13304D01* X60629Y13320D01* X60679Y13331D01* X60723Y13337D01* X60751D01* X60762D01* X60851Y13331D01* X60939Y13315D01* X61023Y13298D01* X61095Y13276D01* X61156Y13248D01* X61206Y13231D01* X61234Y13215D01* X61239Y13209D01* X61245D01* X61334Y13154D01* X61433Y13093D01* X61528Y13021D01* X61622Y12948D01* X61700Y12882D01* X61766Y12826D01* X61789Y12804D01* X61805Y12787D01* X61816Y12782D01* X61822Y12776D01* X61888Y12715D01* X61961Y12649D01* X62116Y12493D01* X62277Y12338D01* X62432Y12182D01* X62505Y12105D01* X62571Y12038D01* X62632Y11977D01* X62682Y11922D01* X62726Y11877D01* X62760Y11844D01* X62782Y11822D01* X62788Y11816D01* X63270D01* Y14075D01* D02* G37* G36* X59796Y11478D02* D01* Y8542D01* X63270D01* X59796D01* X61949Y9674D01* X63270D01* Y10345D01* X61944D01* X59796Y11478D01* D02* G37* G36* X63270Y8203D02* X62749D01* Y6710D01* X61766D01* Y7931D01* X61250D01* Y6710D01* X60323D01* Y8103D01* X59796Y8175D01* Y8203D01* Y6039D01* X63270D01* Y8203D01* D02* G37* G36* Y5500D02* X61383Y4224D01* X59796Y5406D01* Y5500D01* Y4701D01* X61311Y3585D01* X61534D01* X63270Y4740D01* Y3585D01* X61534D01* X61417Y3508D01* X61311Y3585D01* X59796D01* Y2914D01* X63270D01* Y5500D01* D02* G37* %LPD*% G36* X61395Y10018D02* X59796Y9252D01* Y10795D01* X61395Y10018D01* D02* G37* %LPC*% G36* X-25951Y8401D02* X-25959D01* X-25976D01* X-26009D01* X-26059D01* X-26109Y8393D01* X-26176Y8385D01* X-26318Y8368D01* X-26476Y8335D01* X-26634Y8293D01* X-26784Y8226D01* X-26917Y8135D01* X-26934Y8126D01* X-26967Y8085D01* X-27017Y8027D01* X-27076Y7952D01* X-27134Y7852D01* X-27184Y7735D01* X-27217Y7610D01* X-27234Y7460D01* Y7443D01* X-27226Y7393D01* X-27217Y7318D01* X-27192Y7227D01* X-27159Y7127D01* X-27101Y7010D01* X-27026Y6902D01* X-26917Y6802D01* X-26901Y6794D01* X-26859Y6760D01* X-26784Y6727D01* X-26684Y6677D01* X-26551Y6635D01* X-26392Y6594D01* X-26201Y6560D01* X-25976Y6552D01* X-25968D01* X-25951D01* X-25909D01* X-25868Y6560D01* X-25818D01* X-25751Y6569D01* X-25609Y6585D01* X-25451Y6610D01* X-25293Y6660D01* X-25143Y6719D01* X-25010Y6802D01* X-24993Y6810D01* X-24960Y6852D01* X-24910Y6902D01* X-24860Y6977D01* X-24802Y7068D01* X-24751Y7177D01* X-24718Y7302D01* X-24701Y7435D01* Y7452D01* X-24710Y7502D01* X-24718Y7577D01* X-24743Y7677D01* X-24777Y7785D01* X-24835Y7893D01* X-24910Y8010D01* X-25018Y8118D01* X-25035Y8126D01* X-25076Y8160D01* X-25151Y8210D01* X-25251Y8260D01* X-25385Y8310D01* X-25543Y8360D01* X-25734Y8393D01* X-25951Y8401D01* D02* G37* G36* X-26251Y-1261D02* X-26259D01* X-26276D01* X-26293D01* X-26326Y-1270D01* X-26417Y-1278D01* X-26518Y-1295D01* X-26634Y-1328D01* X-26759Y-1370D01* X-26876Y-1436D01* X-26976Y-1511D01* X-26984Y-1520D01* X-27017Y-1553D01* X-27059Y-1603D01* X-27109Y-1670D01* X-27151Y-1753D01* X-27192Y-1853D01* X-27226Y-1961D01* X-27234Y-2086D01* Y-2145D01* X-27217Y-2211D01* X-27200Y-2294D01* X-27167Y-2386D01* X-27126Y-2486D01* X-27059Y-2586D01* X-26967Y-2678D01* X-26959Y-2686D01* X-26917Y-2711D01* X-26859Y-2753D01* X-26776Y-2794D01* X-26676Y-2844D01* X-26551Y-2877D01* X-26409Y-2902D01* X-26251Y-2911D01* Y-1261D01* D02* G37* G36* X-27775Y-5885D02* X-27792D01* X-27825D01* X-27884Y-5893D01* X-27959Y-5910D01* X-28042Y-5935D01* X-28133Y-5968D01* X-28217Y-6010D01* X-28300Y-6076D01* X-28308Y-6084D01* X-28333Y-6109D01* X-28367Y-6151D01* X-28408Y-6201D01* X-28458Y-6268D01* X-28500Y-6351D01* X-28533Y-6443D01* X-28558Y-6543D01* Y-6551D01* X-28567Y-6584D01* X-28575Y-6643D01* X-28583Y-6726D01* Y-6834D01* X-28592Y-6909D01* Y-6984D01* X-28600Y-7068D01* Y-7934D01* X-26959D01* Y-7134D01* X-26967Y-7076D01* Y-6926D01* X-26976Y-6776D01* X-26992Y-6626D01* X-27017Y-6493D01* X-27026Y-6434D01* X-27042Y-6384D01* X-27051Y-6376D01* X-27059Y-6343D01* X-27084Y-6301D01* X-27109Y-6251D01* X-27151Y-6193D01* X-27200Y-6134D01* X-27259Y-6068D01* X-27325Y-6018D01* X-27334Y-6010D01* X-27359Y-5993D01* X-27400Y-5976D01* X-27459Y-5951D01* X-27525Y-5926D01* X-27600Y-5901D01* X-27684Y-5893D01* X-27775Y-5885D01* D02* G37* G36* X-33434Y5594D02* X-33546D01* X-33551D01* X-33571D01* X-33607D01* X-33648D01* X-33699D01* X-33755Y5589D01* X-33821D01* X-33887Y5584D01* X-34029Y5578D01* X-34167Y5568D01* X-34233Y5558D01* X-34299Y5548D01* X-34355Y5538D01* X-34401Y5528D01* X-34406D01* X-34411Y5522D01* X-34437Y5517D01* X-34477Y5502D01* X-34528Y5487D01* X-34579Y5461D01* X-34630Y5436D01* X-34676Y5405D01* X-34712Y5375D01* X-34717Y5370D01* X-34727Y5359D01* X-34737Y5339D01* X-34752Y5314D01* X-34767Y5283D01* X-34783Y5248D01* X-34788Y5207D01* X-34793Y5161D01* Y5141D01* X-34788Y5115D01* X-34783Y5090D01* X-34773Y5054D01* X-34757Y5018D01* X-34737Y4978D01* X-34712Y4942D01* X-34706Y4937D01* X-34696Y4927D01* X-34676Y4912D01* X-34650Y4891D01* X-34610Y4866D01* X-34564Y4845D01* X-34503Y4820D01* X-34432Y4800D01* X-34427D01* X-34421Y4795D01* X-34401D01* X-34381Y4789D01* X-34350Y4784D01* X-34315Y4779D01* X-34274Y4774D01* X-34223Y4769D01* X-34162Y4759D01* X-34101Y4754D01* X-34024Y4749D01* X-33948Y4744D01* X-33856Y4738D01* X-33765D01* X-33658Y4733D01* X-33546D01* X-33541D01* X-33520D01* X-33485D01* X-33444D01* X-33393D01* X-33337Y4738D01* X-33271D01* X-33205Y4744D01* X-33062Y4749D01* X-32920Y4759D01* X-32854Y4764D01* X-32793Y4774D01* X-32737Y4784D01* X-32686Y4795D01* X-32675Y4800D01* X-32650Y4805D01* X-32609Y4820D01* X-32563Y4835D01* X-32513Y4861D01* X-32462Y4886D01* X-32416Y4917D01* X-32380Y4947D01* X-32375Y4952D01* X-32370Y4963D01* X-32355Y4983D01* X-32345Y5008D01* X-32329Y5039D01* X-32314Y5074D01* X-32309Y5115D01* X-32304Y5161D01* Y5181D01* X-32309Y5207D01* X-32314Y5232D01* X-32324Y5268D01* X-32335Y5303D01* X-32355Y5339D01* X-32380Y5375D01* X-32385Y5380D01* X-32396Y5390D01* X-32416Y5410D01* X-32447Y5431D01* X-32482Y5451D01* X-32533Y5477D01* X-32589Y5502D01* X-32660Y5522D01* X-32665D01* X-32670Y5528D01* X-32691D01* X-32711Y5533D01* X-32742Y5538D01* X-32777Y5543D01* X-32818Y5553D01* X-32869Y5558D01* X-32925Y5563D01* X-32991Y5573D01* X-33062Y5578D01* X-33144Y5584D01* X-33230Y5589D01* X-33327D01* X-33434Y5594D01* D02* G37* G36* X-33302Y-4449D02* X-33307D01* X-33317D01* X-33327D01* X-33347Y-4454D01* X-33403Y-4459D01* X-33465Y-4469D01* X-33536Y-4490D01* X-33612Y-4515D01* X-33683Y-4556D01* X-33744Y-4602D01* X-33749Y-4607D01* X-33770Y-4627D01* X-33795Y-4658D01* X-33826Y-4698D01* X-33851Y-4749D01* X-33877Y-4810D01* X-33897Y-4876D01* X-33902Y-4953D01* Y-4989D01* X-33892Y-5029D01* X-33882Y-5080D01* X-33862Y-5136D01* X-33836Y-5197D01* X-33795Y-5258D01* X-33739Y-5314D01* X-33734Y-5319D01* X-33709Y-5335D01* X-33673Y-5360D01* X-33622Y-5385D01* X-33561Y-5416D01* X-33485Y-5436D01* X-33398Y-5452D01* X-33302Y-5457D01* Y-4449D01* D02* G37* G36* X-12360Y-257D02* X-12364D01* X-12374D01* X-12392D01* X-12415Y-262D01* X-12443D01* X-12480Y-266D01* X-12554Y-276D01* X-12637Y-299D01* X-12725Y-326D01* X-12812Y-368D01* X-12886Y-423D01* X-12896Y-433D01* X-12914Y-451D01* X-12946Y-488D01* X-12979Y-534D01* X-13011Y-594D01* X-13043Y-659D01* X-13062Y-738D01* X-13071Y-825D01* Y-848D01* X-13067Y-867D01* X-13062Y-908D01* X-13048Y-964D01* X-13025Y-1029D01* X-12993Y-1098D01* X-12946Y-1167D01* X-12886Y-1232D01* X-12877Y-1237D01* X-12854Y-1255D01* X-12808Y-1283D01* X-12752Y-1310D01* X-12678Y-1343D01* X-12586Y-1366D01* X-12480Y-1384D01* X-12360Y-1393D01* X-12355D01* X-12346D01* X-12327D01* X-12304Y-1389D01* X-12272D01* X-12240Y-1384D01* X-12166Y-1375D01* X-12078Y-1352D01* X-11990Y-1324D01* X-11902Y-1287D01* X-11828Y-1232D01* X-11819Y-1223D01* X-11801Y-1204D01* X-11773Y-1167D01* X-11740Y-1116D01* X-11704Y-1061D01* X-11676Y-992D01* X-11657Y-913D01* X-11648Y-825D01* Y-802D01* X-11653Y-784D01* X-11657Y-742D01* X-11671Y-687D01* X-11694Y-622D01* X-11722Y-553D01* X-11768Y-488D01* X-11828Y-423D01* X-11838Y-414D01* X-11861Y-396D01* X-11907Y-372D01* X-11962Y-340D01* X-12041Y-308D01* X-12129Y-285D01* X-12240Y-266D01* X-12360Y-257D01* D02* G37* G36* X-12387Y-3094D02* X-12392D01* X-12401D01* X-12420D01* X-12447D01* X-12475Y-3098D01* X-12512Y-3103D01* X-12591Y-3112D01* X-12678Y-3131D01* X-12766Y-3154D01* X-12849Y-3191D01* X-12923Y-3241D01* X-12933Y-3246D01* X-12951Y-3269D01* X-12979Y-3302D01* X-13011Y-3343D01* X-13043Y-3399D01* X-13071Y-3463D01* X-13090Y-3533D01* X-13099Y-3616D01* Y-3625D01* X-13094Y-3653D01* X-13090Y-3694D01* X-13076Y-3745D01* X-13057Y-3801D01* X-13025Y-3865D01* X-12983Y-3925D01* X-12923Y-3981D01* X-12914Y-3985D01* X-12891Y-4004D01* X-12849Y-4022D01* X-12794Y-4050D01* X-12720Y-4073D01* X-12632Y-4096D01* X-12526Y-4115D01* X-12401Y-4119D01* X-12397D01* X-12387D01* X-12364D01* X-12341Y-4115D01* X-12313D01* X-12276Y-4110D01* X-12198Y-4101D01* X-12110Y-4087D01* X-12022Y-4059D01* X-11939Y-4027D01* X-11865Y-3981D01* X-11856Y-3976D01* X-11838Y-3953D01* X-11810Y-3925D01* X-11782Y-3884D01* X-11750Y-3833D01* X-11722Y-3773D01* X-11704Y-3703D01* X-11694Y-3630D01* Y-3620D01* X-11699Y-3593D01* X-11704Y-3551D01* X-11717Y-3496D01* X-11736Y-3436D01* X-11768Y-3376D01* X-11810Y-3311D01* X-11870Y-3251D01* X-11879Y-3246D01* X-11902Y-3228D01* X-11944Y-3200D01* X-11999Y-3172D01* X-12073Y-3145D01* X-12161Y-3117D01* X-12267Y-3098D01* X-12387Y-3094D01* D02* G37* G36* X-12466Y-7376D02* X-13653Y-7825D01* X-12466Y-8259D01* Y-7376D01* D02* G37* G36* X-32891Y30572D02* X-32970D01* X-32974D01* X-32988D01* X-33011D01* X-33044Y30568D01* X-33081D01* X-33127Y30563D01* X-33224Y30549D01* X-33330Y30531D01* X-33446Y30498D01* X-33547Y30452D01* X-33598Y30425D01* X-33640Y30392D01* X-33644D01* X-33649Y30383D01* X-33672Y30360D01* X-33709Y30323D01* X-33751Y30272D01* X-33788Y30207D01* X-33825Y30134D01* X-33848Y30046D01* X-33857Y30000D01* Y29930D01* X-33852Y29912D01* X-33843Y29861D01* X-33829Y29801D01* X-33801Y29732D01* X-33760Y29658D01* X-33737Y29621D01* X-33704Y29584D01* X-33672Y29547D01* X-33630Y29510D01* X-33626D01* X-33621Y29501D01* X-33607Y29491D01* X-33589Y29482D01* X-33566Y29468D01* X-33538Y29450D01* X-33506Y29436D01* X-33469Y29417D01* X-33423Y29399D01* X-33376Y29385D01* X-33321Y29367D01* X-33266Y29353D01* X-33201Y29344D01* X-33132Y29334D01* X-33062Y29325D01* X-32984D01* X-32979D01* X-32965D01* X-32942D01* X-32914D01* X-32882Y29330D01* X-32840D01* X-32753Y29339D01* X-32656Y29353D01* X-32554Y29371D01* X-32462Y29399D01* X-32420Y29417D01* X-32383Y29436D01* X-32379D01* X-32369Y29445D01* X-32355Y29454D01* X-32337Y29468D01* X-32286Y29510D01* X-32235Y29570D01* X-32180Y29639D01* X-32129Y29727D01* X-32111Y29773D01* X-32097Y29829D01* X-32087Y29879D01* X-32083Y29939D01* Y29963D01* X-32087Y29981D01* X-32097Y30032D01* X-32111Y30092D01* X-32138Y30161D01* X-32175Y30235D01* X-32231Y30309D01* X-32268Y30346D01* X-32305Y30383D01* X-32309D01* X-32314Y30392D01* X-32328Y30402D01* X-32346Y30411D01* X-32369Y30429D01* X-32397Y30443D01* X-32434Y30461D01* X-32471Y30480D01* X-32517Y30494D01* X-32563Y30512D01* X-32619Y30531D01* X-32679Y30545D01* X-32743Y30554D01* X-32813Y30563D01* X-32891Y30572D01* D02* G37* G36* X-32854Y26752D02* X-32933D01* X-32937D01* X-32956D01* X-32979D01* X-33011Y26747D01* X-33048D01* X-33095Y26742D01* X-33145Y26738D01* X-33201Y26729D01* X-33312Y26706D01* X-33427Y26673D01* X-33538Y26627D01* X-33584Y26599D01* X-33630Y26567D01* X-33635D01* X-33640Y26558D01* X-33667Y26535D01* X-33704Y26493D01* X-33746Y26442D01* X-33788Y26377D01* X-33820Y26299D01* X-33848Y26211D01* X-33852Y26165D01* X-33857Y26114D01* Y26091D01* X-33852Y26072D01* X-33848Y26022D01* X-33829Y25962D01* X-33806Y25892D01* X-33764Y25818D01* X-33714Y25745D01* X-33677Y25708D01* X-33640Y25675D01* X-33635D01* X-33630Y25666D01* X-33617Y25661D01* X-33598Y25648D01* X-33575Y25634D01* X-33547Y25620D01* X-33515Y25606D01* X-33478Y25587D01* X-33432Y25569D01* X-33381Y25555D01* X-33326Y25541D01* X-33266Y25527D01* X-33201Y25518D01* X-33127Y25509D01* X-33048Y25500D01* X-32965D01* X-32961D01* X-32947D01* X-32924D01* X-32891Y25504D01* X-32854D01* X-32813Y25509D01* X-32716Y25523D01* X-32610Y25546D01* X-32499Y25578D01* X-32392Y25624D01* X-32346Y25652D01* X-32300Y25684D01* Y25689D01* X-32291Y25694D01* X-32268Y25717D01* X-32231Y25758D01* X-32194Y25809D01* X-32152Y25874D01* X-32115Y25952D01* X-32092Y26036D01* X-32087Y26082D01* X-32083Y26128D01* Y26151D01* X-32087Y26170D01* X-32092Y26220D01* X-32111Y26280D01* X-32134Y26350D01* X-32171Y26424D01* X-32221Y26498D01* X-32254Y26535D01* X-32291Y26567D01* X-32295D01* X-32300Y26576D01* X-32314Y26585D01* X-32332Y26595D01* X-32355Y26608D01* X-32379Y26627D01* X-32415Y26641D01* X-32452Y26659D01* X-32494Y26678D01* X-32540Y26692D01* X-32596Y26710D01* X-32651Y26724D01* X-32716Y26733D01* X-32780Y26742D01* X-32854Y26752D01* D02* G37* G36* X-33192Y24349D02* X-33196D01* X-33206D01* X-33219Y24345D01* X-33238D01* X-33293Y24335D01* X-33353Y24322D01* X-33427Y24298D01* X-33496Y24275D01* X-33566Y24238D01* X-33626Y24197D01* X-33630D01* X-33635Y24188D01* X-33663Y24164D01* X-33700Y24123D01* X-33741Y24068D01* X-33783Y23998D01* X-33820Y23915D01* X-33848Y23818D01* X-33852Y23767D01* X-33857Y23712D01* Y23684D01* X-33852Y23665D01* X-33848Y23615D01* X-33834Y23555D01* X-33811Y23481D01* X-33778Y23402D01* X-33732Y23328D01* X-33672Y23254D01* X-33663Y23245D01* X-33640Y23227D01* X-33598Y23194D01* X-33543Y23162D01* X-33478Y23125D01* X-33395Y23093D01* X-33298Y23065D01* X-33192Y23051D01* Y24349D01* D02* G37* G36* X-32914Y19313D02* X-32993D01* X-32998D01* X-33011D01* X-33035D01* X-33062Y19309D01* X-33099D01* X-33141Y19304D01* X-33233Y19290D01* X-33339Y19267D01* X-33446Y19235D01* X-33552Y19189D01* X-33598Y19156D01* X-33640Y19124D01* X-33644D01* X-33649Y19115D01* X-33672Y19092D01* X-33709Y19050D01* X-33751Y18995D01* X-33788Y18930D01* X-33825Y18851D01* X-33848Y18764D01* X-33857Y18718D01* Y18644D01* X-33852Y18625D01* X-33848Y18574D01* X-33829Y18514D01* X-33806Y18440D01* X-33764Y18366D01* X-33714Y18293D01* X-33677Y18256D01* X-33640Y18218D01* X-33635D01* X-33630Y18209D01* X-33617Y18200D01* X-33598Y18191D01* X-33580Y18177D01* X-33552Y18163D01* X-33520Y18145D01* X-33483Y18131D01* X-33441Y18112D01* X-33390Y18094D01* X-33339Y18080D01* X-33284Y18066D01* X-33219Y18057D01* X-33155Y18048D01* X-33085Y18038D01* X-33007D01* X-33002D01* X-32988D01* X-32965D01* X-32933Y18043D01* X-32896D01* X-32850Y18048D01* X-32753Y18061D01* X-32642Y18085D01* X-32536Y18112D01* X-32429Y18158D01* X-32383Y18186D01* X-32342Y18218D01* X-32332Y18228D01* X-32309Y18251D01* X-32277Y18288D01* X-32240Y18343D01* X-32198Y18408D01* X-32166Y18486D01* X-32143Y18574D01* X-32138Y18620D01* X-32134Y18671D01* Y18699D01* X-32138Y18718D01* X-32143Y18768D01* X-32161Y18833D01* X-32184Y18902D01* X-32221Y18981D01* X-32272Y19055D01* X-32305Y19092D01* X-32342Y19129D01* X-32346D01* X-32351Y19138D01* X-32365Y19147D01* X-32383Y19156D01* X-32402Y19170D01* X-32429Y19189D01* X-32462Y19203D01* X-32503Y19221D01* X-32545Y19240D01* X-32591Y19253D01* X-32646Y19272D01* X-32706Y19286D01* X-32767Y19295D01* X-32836Y19304D01* X-32914Y19313D01* D02* G37* G36* X-33192Y13663D02* X-33196D01* X-33206D01* X-33219Y13659D01* X-33238D01* X-33293Y13649D01* X-33353Y13635D01* X-33427Y13612D01* X-33496Y13589D01* X-33566Y13552D01* X-33626Y13511D01* X-33630D01* X-33635Y13501D01* X-33663Y13478D01* X-33700Y13437D01* X-33741Y13381D01* X-33783Y13312D01* X-33820Y13229D01* X-33848Y13132D01* X-33852Y13081D01* X-33857Y13026D01* Y12998D01* X-33852Y12979D01* X-33848Y12929D01* X-33834Y12869D01* X-33811Y12795D01* X-33778Y12716D01* X-33732Y12642D01* X-33672Y12568D01* X-33663Y12559D01* X-33640Y12541D01* X-33598Y12508D01* X-33543Y12476D01* X-33478Y12439D01* X-33395Y12407D01* X-33298Y12379D01* X-33192Y12365D01* Y13663D01* D02* G37* G36* X-33432Y11108D02* X-33437D01* X-33455D01* X-33478D01* X-33515Y11104D01* X-33557D01* X-33603Y11099D01* X-33658Y11095D01* X-33714Y11090D01* X-33838Y11067D01* X-33968Y11039D01* X-34088Y10998D01* X-34148Y10970D01* X-34199Y10942D01* X-34203D01* X-34213Y10933D01* X-34227Y10924D01* X-34245Y10914D01* X-34291Y10877D01* X-34347Y10831D01* X-34407Y10771D01* X-34467Y10702D01* X-34517Y10623D01* X-34559Y10540D01* X-34564Y10531D01* X-34568Y10508D01* X-34582Y10466D01* X-34596Y10406D01* X-34605Y10332D01* X-34619Y10240D01* X-34624Y10184D01* Y10124D01* X-34628Y10064D01* Y9325D01* X-32189D01* Y10083D01* X-32194Y10115D01* X-32198Y10184D01* X-32203Y10263D01* X-32212Y10346D01* X-32226Y10429D01* X-32245Y10498D01* X-32249Y10508D01* X-32254Y10531D01* X-32268Y10563D01* X-32286Y10605D01* X-32314Y10651D01* X-32342Y10697D01* X-32374Y10743D01* X-32411Y10790D01* X-32420Y10794D01* X-32438Y10813D01* X-32471Y10840D01* X-32517Y10873D01* X-32577Y10910D01* X-32646Y10951D01* X-32725Y10988D01* X-32813Y11021D01* X-32817D01* X-32827Y11025D01* X-32840Y11030D01* X-32859Y11034D01* X-32882Y11039D01* X-32914Y11048D01* X-32947Y11057D01* X-32984Y11067D01* X-33076Y11081D01* X-33182Y11095D01* X-33303Y11104D01* X-33432Y11108D01* D02* G37* %LPD*% D10* X34000Y-58100D02* G03* X37832Y-52114I-2000J5500D01* G01* X900Y-1500D02* G03* X6886Y-5332I5500J2000D01* G01* D11* X27700Y-55700D02* G03* X27200Y-56200I0J-500D01* G01* Y-61800D02* G03* X27700Y-62300I500J0D01* G01* X30300D02* G03* X30800Y-61800I0J500D01* G01* Y-56200D02* G03* X30300Y-55700I-500J0D01* G01* X27200Y-61800D02* Y-56200D01* X30800Y-61800D02* Y-56200D01* D12* X-53050Y17050D02* Y18350D01* X-53400Y17050D02* X-53050D01* X-53400D02* Y18350D01* X-53050D01* X-54950Y17050D02* X-54600Y17050D01* Y18350D01* X-54950Y18350D02* X-54600Y18350D01* X-54950Y17050D02* Y18350D01* X-25100Y-57700D02* Y-57200D01* X-29900Y-57700D02* Y-57200D01* X-25100D01* X-29900Y-57700D02* X-25100D01* X-29900Y-55300D02* X-25100D01* X-29900Y-55800D02* X-25100D01* X-29900D02* Y-55300D01* X-25100Y-55800D02* Y-55300D01* X-31600Y-57700D02* Y-57200D01* X-36400Y-57700D02* Y-57200D01* X-31600D01* X-36400Y-57700D02* X-31600D01* X-36400Y-55300D02* X-31600D01* X-36400Y-55800D02* X-31600D01* X-36400D02* Y-55300D01* X-31600Y-55800D02* Y-55300D01* X-36400Y-41300D02* Y-40800D01* X-31600Y-41300D02* Y-40800D01* X-36400Y-41300D02* X-31600D01* X-36400Y-40800D02* X-31600D01* X-36400Y-43200D02* X-31600D01* X-36400Y-42700D02* X-31600D01* Y-43200D02* Y-42700D01* X-36400Y-43200D02* Y-42700D01* X-29900Y-41300D02* Y-40800D01* X-25100Y-41300D02* Y-40800D01* X-29900Y-41300D02* X-25100D01* X-29900Y-40800D02* X-25100D01* X-29900Y-43200D02* X-25100D01* X-29900Y-42700D02* X-25100D01* Y-43200D02* Y-42700D01* X-29900Y-43200D02* Y-42700D01* D13* X-50402Y20413D02* Y24743D01* X-47056D01* X-38198Y20413D02* Y24743D01* X-41544D02* X-38198D01* X-34350Y-18244D02* X-15650D01* Y-33756D02* Y-31925D01* Y-20075D02* Y-18244D01* X-34350Y-33756D02* X-15650D01* X-34350D02* Y-31925D01* Y-20075D02* Y-18244D01* X21169Y-18055D02* Y-17957D01* Y-25043D02* Y-24945D01* Y-25043D02* X29831D01* Y-18055D02* Y-17957D01* Y-25043D02* Y-24945D01* X21169Y-17957D02* X29831D01* D14* X-12500Y-54000D02* Y-38000D01* X-14000D02* X-12500D01* X-14000Y-41000D02* X-12500D01* X-14000D02* Y-38000D01* Y-54000D02* X-12500D01* X-23500D02* X-22000D01* Y-41000D02* Y-38000D01* X-23500Y-54000D02* Y-38000D01* X-22000D01* X-23500Y-41000D02* X-22000D01* D15* X-10000Y-18500D02* X4000D01* Y-23500D02* Y-18500D01* X-10000Y-23500D02* X4000D01* X-10000D02* Y-18500D01* X0Y-23500D02* Y-18500D01* X4500D02* X18500D01* Y-23500D02* Y-18500D01* X4500Y-23500D02* X18500D01* X4500D02* Y-18500D01* X14500Y-23500D02* Y-18500D01* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GTP ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8421504* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Positive* G04* G01* G75* G04:AMPARAMS|DCode=16|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD16* 21,1,0.01575,0.05118,0,0,90.0* 21,1,0.00787,0.05906,0,0,90.0* 1,1,0.00787,0.02559,0.00394* 1,1,0.00787,0.02559,-0.00394* 1,1,0.00787,-0.02559,-0.00394* 1,1,0.00787,-0.02559,0.00394* % %ADD16ROUNDEDRECTD16*% G04:AMPARAMS|DCode=17|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD17* 21,1,0.03937,0.03937,0,0,90.0* 21,1,0.01968,0.05906,0,0,90.0* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* 1,1,0.01968,-0.01968,0.00984* % %ADD17ROUNDEDRECTD17*% G04:AMPARAMS|DCode=18|XSize=20mil|YSize=20mil|CornerRadius=5mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD18* 21,1,0.02000,0.01000,0,0,0.0* 21,1,0.01000,0.02000,0,0,0.0* 1,1,0.01000,0.00500,-0.00500* 1,1,0.01000,-0.00500,-0.00500* 1,1,0.01000,-0.00500,0.00500* 1,1,0.01000,0.00500,0.00500* % %ADD18ROUNDEDRECTD18*% G04:AMPARAMS|DCode=19|XSize=23.62mil|YSize=39.37mil|CornerRadius=5.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD19* 21,1,0.02362,0.02756,0,0,180.0* 21,1,0.01181,0.03937,0,0,180.0* 1,1,0.01181,-0.00591,0.01378* 1,1,0.01181,0.00591,0.01378* 1,1,0.01181,0.00591,-0.01378* 1,1,0.01181,-0.00591,-0.01378* % %ADD19ROUNDEDRECTD19*% G04:AMPARAMS|DCode=20|XSize=40mil|YSize=60mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD20* 21,1,0.04000,0.04000,0,0,180.0* 21,1,0.02000,0.06000,0,0,180.0* 1,1,0.02000,-0.01000,0.02000* 1,1,0.02000,0.01000,0.02000* 1,1,0.02000,0.01000,-0.02000* 1,1,0.02000,-0.01000,-0.02000* % %ADD20ROUNDEDRECTD20*% G04:AMPARAMS|DCode=21|XSize=16mil|YSize=16mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD21* 21,1,0.01600,0.00000,0,0,270.0* 21,1,0.00000,0.01600,0,0,270.0* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* 1,1,0.01600,0.00000,0.00000* % %ADD21ROUNDEDRECTD21*% G04:AMPARAMS|DCode=22|XSize=39.37mil|YSize=59.06mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD22* 21,1,0.03937,0.03937,0,0,0.0* 21,1,0.01968,0.05906,0,0,0.0* 1,1,0.01968,0.00984,-0.01968* 1,1,0.01968,-0.00984,-0.01968* 1,1,0.01968,-0.00984,0.01968* 1,1,0.01968,0.00984,0.01968* % %ADD22ROUNDEDRECTD22*% G04:AMPARAMS|DCode=23|XSize=15.75mil|YSize=59.06mil|CornerRadius=3.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD23* 21,1,0.01575,0.05118,0,0,180.0* 21,1,0.00787,0.05906,0,0,180.0* 1,1,0.00787,-0.00394,0.02559* 1,1,0.00787,0.00394,0.02559* 1,1,0.00787,0.00394,-0.02559* 1,1,0.00787,-0.00394,-0.02559* % %ADD23ROUNDEDRECTD23*% %ADD24R,0.01968X0.01968*% G04:AMPARAMS|DCode=25|XSize=40mil|YSize=74mil|CornerRadius=10mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD25* 21,1,0.04000,0.05400,0,0,90.0* 21,1,0.02000,0.07400,0,0,90.0* 1,1,0.02000,0.02700,0.01000* 1,1,0.02000,0.02700,-0.01000* 1,1,0.02000,-0.02700,-0.01000* 1,1,0.02000,-0.02700,0.01000* % %ADD25ROUNDEDRECTD25*% G04:AMPARAMS|DCode=26|XSize=59.06mil|YSize=39.37mil|CornerRadius=9.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD26* 21,1,0.05906,0.01968,0,0,180.0* 21,1,0.03937,0.03937,0,0,180.0* 1,1,0.01968,-0.01968,0.00984* 1,1,0.01968,0.01968,0.00984* 1,1,0.01968,0.01968,-0.00984* 1,1,0.01968,-0.01968,-0.00984* % %ADD26ROUNDEDRECTD26*% G04:AMPARAMS|DCode=27|XSize=55mil|YSize=65mil|CornerRadius=13.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD27* 21,1,0.05500,0.03750,0,0,90.0* 21,1,0.02750,0.06500,0,0,90.0* 1,1,0.02750,0.01875,0.01375* 1,1,0.02750,0.01875,-0.01375* 1,1,0.02750,-0.01875,-0.01375* 1,1,0.02750,-0.01875,0.01375* % %ADD27ROUNDEDRECTD27*% G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=29|XSize=19.68mil|YSize=23.62mil|CornerRadius=4.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD29* 21,1,0.01968,0.01378,0,0,90.0* 21,1,0.00984,0.02362,0,0,90.0* 1,1,0.00984,0.00689,0.00492* 1,1,0.00984,0.00689,-0.00492* 1,1,0.00984,-0.00689,-0.00492* 1,1,0.00984,-0.00689,0.00492* % %ADD29ROUNDEDRECTD29*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% D16* X-62500Y20689D02* D03* Y40374D02* D03* Y36437D02* D03* Y28563D02* D03* Y32500D02* D03* Y24626D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D17* X-77000Y16000D02* D03* Y45063D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D18* X-54000Y19700D02* D03* Y15700D02* D03* D19* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D20* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D21* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D22* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D23* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D24* X29000Y-57300D02* D03* Y-60700D02* D03* D25* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D26* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D27* X-18000Y-38000D02* D03* Y-54000D02* D03* D28* X-34646Y-26000D02* D03* X-15354D02* D03* D29* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.GTS ================================================ G04* G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,22.0.2 (36)* G04* G04 Layer_Color=8388736* %FSLAX25Y25*% %MOIN*% G70* G04* G04 #@! TF.SameCoordinates,A7353FC2-99F2-474C-B2A2-24993EA34B63* G04* G04* G04 #@! TF.FilePolarity,Negative* G04* G01* G75* G04:AMPARAMS|DCode=28|XSize=85.04mil|YSize=88.98mil|CornerRadius=21.26mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD28* 21,1,0.08504,0.04646,0,0,0.0* 21,1,0.04252,0.08898,0,0,0.0* 1,1,0.04252,0.02126,-0.02323* 1,1,0.04252,-0.02126,-0.02323* 1,1,0.04252,-0.02126,0.02323* 1,1,0.04252,0.02126,0.02323* % %ADD28ROUNDEDRECTD28*% G04:AMPARAMS|DCode=30|XSize=25mil|YSize=50mil|CornerRadius=6.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD30* 21,1,0.02500,0.03750,0,0,0.0* 21,1,0.01250,0.05000,0,0,0.0* 1,1,0.01250,0.00625,-0.01875* 1,1,0.01250,-0.00625,-0.01875* 1,1,0.01250,-0.00625,0.01875* 1,1,0.01250,0.00625,0.01875* % %ADD30ROUNDEDRECTD30*% G04:AMPARAMS|DCode=31|XSize=65mil|YSize=120mil|CornerRadius=16.25mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD31* 21,1,0.06500,0.08750,0,0,180.0* 21,1,0.03250,0.12000,0,0,180.0* 1,1,0.03250,-0.01625,0.04375* 1,1,0.03250,0.01625,0.04375* 1,1,0.03250,0.01625,-0.04375* 1,1,0.03250,-0.01625,-0.04375* % %ADD31ROUNDEDRECTD31*% %ADD32R,0.06500X0.06000*% %ADD33R,0.07700X0.02500*% %ADD34R,0.08900X0.21100*% %ADD35R,0.10000X0.10000*% G04:AMPARAMS|DCode=36|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD36* 21,1,0.02175,0.05118,0,0,90.0* 21,1,0.00787,0.06506,0,0,90.0* 1,1,0.01387,0.02559,0.00394* 1,1,0.01387,0.02559,-0.00394* 1,1,0.01387,-0.02559,-0.00394* 1,1,0.01387,-0.02559,0.00394* % %ADD36ROUNDEDRECTD36*% G04:AMPARAMS|DCode=37|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD37* 21,1,0.04537,0.03937,0,0,90.0* 21,1,0.01968,0.06506,0,0,90.0* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* 1,1,0.02568,-0.01968,0.00984* % %ADD37ROUNDEDRECTD37*% G04:AMPARAMS|DCode=38|XSize=26mil|YSize=26mil|CornerRadius=8mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD38* 21,1,0.02600,0.01000,0,0,0.0* 21,1,0.01000,0.02600,0,0,0.0* 1,1,0.01600,0.00500,-0.00500* 1,1,0.01600,-0.00500,-0.00500* 1,1,0.01600,-0.00500,0.00500* 1,1,0.01600,0.00500,0.00500* % %ADD38ROUNDEDRECTD38*% G04:AMPARAMS|DCode=39|XSize=29.62mil|YSize=45.37mil|CornerRadius=8.91mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD39* 21,1,0.02962,0.02756,0,0,180.0* 21,1,0.01181,0.04537,0,0,180.0* 1,1,0.01781,-0.00591,0.01378* 1,1,0.01781,0.00591,0.01378* 1,1,0.01781,0.00591,-0.01378* 1,1,0.01781,-0.00591,-0.01378* % %ADD39ROUNDEDRECTD39*% G04:AMPARAMS|DCode=40|XSize=46mil|YSize=66mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD40* 21,1,0.04600,0.04000,0,0,180.0* 21,1,0.02000,0.06600,0,0,180.0* 1,1,0.02600,-0.01000,0.02000* 1,1,0.02600,0.01000,0.02000* 1,1,0.02600,0.01000,-0.02000* 1,1,0.02600,-0.01000,-0.02000* % %ADD40ROUNDEDRECTD40*% G04:AMPARAMS|DCode=41|XSize=22mil|YSize=22mil|CornerRadius=11mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=270.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD41* 21,1,0.02200,0.00000,0,0,270.0* 21,1,0.00000,0.02200,0,0,270.0* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* 1,1,0.02200,0.00000,0.00000* % %ADD41ROUNDEDRECTD41*% G04:AMPARAMS|DCode=42|XSize=45.37mil|YSize=65.06mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=0.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD42* 21,1,0.04537,0.03937,0,0,0.0* 21,1,0.01968,0.06506,0,0,0.0* 1,1,0.02568,0.00984,-0.01968* 1,1,0.02568,-0.00984,-0.01968* 1,1,0.02568,-0.00984,0.01968* 1,1,0.02568,0.00984,0.01968* % %ADD42ROUNDEDRECTD42*% G04:AMPARAMS|DCode=43|XSize=21.75mil|YSize=65.06mil|CornerRadius=6.94mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD43* 21,1,0.02175,0.05118,0,0,180.0* 21,1,0.00787,0.06506,0,0,180.0* 1,1,0.01387,-0.00394,0.02559* 1,1,0.01387,0.00394,0.02559* 1,1,0.01387,0.00394,-0.02559* 1,1,0.01387,-0.00394,-0.02559* % %ADD43ROUNDEDRECTD43*% %ADD44R,0.02568X0.02568*% G04:AMPARAMS|DCode=45|XSize=46mil|YSize=80mil|CornerRadius=13mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD45* 21,1,0.04600,0.05400,0,0,90.0* 21,1,0.02000,0.08000,0,0,90.0* 1,1,0.02600,0.02700,0.01000* 1,1,0.02600,0.02700,-0.01000* 1,1,0.02600,-0.02700,-0.01000* 1,1,0.02600,-0.02700,0.01000* % %ADD45ROUNDEDRECTD45*% G04:AMPARAMS|DCode=46|XSize=65.06mil|YSize=45.37mil|CornerRadius=12.84mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=180.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD46* 21,1,0.06506,0.01968,0,0,180.0* 21,1,0.03937,0.04537,0,0,180.0* 1,1,0.02568,-0.01968,0.00984* 1,1,0.02568,0.01968,0.00984* 1,1,0.02568,0.01968,-0.00984* 1,1,0.02568,-0.01968,-0.00984* % %ADD46ROUNDEDRECTD46*% G04:AMPARAMS|DCode=47|XSize=61mil|YSize=71mil|CornerRadius=16.75mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD47* 21,1,0.06100,0.03750,0,0,90.0* 21,1,0.02750,0.07100,0,0,90.0* 1,1,0.03350,0.01875,0.01375* 1,1,0.03350,0.01875,-0.01375* 1,1,0.03350,-0.01875,-0.01375* 1,1,0.03350,-0.01875,0.01375* % %ADD47ROUNDEDRECTD47*% G04:AMPARAMS|DCode=48|XSize=25.68mil|YSize=29.62mil|CornerRadius=7.92mil|HoleSize=0mil|Usage=FLASHONLY|Rotation=90.000|XOffset=0mil|YOffset=0mil|HoleType=Round|Shape=RoundedRectangle|* %AMROUNDEDRECTD48* 21,1,0.02568,0.01378,0,0,90.0* 21,1,0.00984,0.02962,0,0,90.0* 1,1,0.01584,0.00689,0.00492* 1,1,0.01584,0.00689,-0.00492* 1,1,0.01584,-0.00689,-0.00492* 1,1,0.01584,-0.00689,0.00492* % %ADD48ROUNDEDRECTD48*% %ADD49C,0.20600*% G36* X65500Y16983D02* X49854D01* Y48156D01* X65500D01* Y16983D01* D02* G37* G36* X72378Y44332D02* X70267Y43110D01* X72378Y41899D01* Y40521D01* X69556Y42388D01* X67012Y40732D01* Y42154D01* X68834Y43154D01* X67012Y44154D01* Y45520D01* X69511Y43910D01* X72378Y45765D01* Y44332D01* D02* G37* G36* X72500Y39232D02* Y39221D01* X72489Y39188D01* Y39143D01* X72478Y39077D01* X72456Y39010D01* X72433Y38921D01* X72378Y38732D01* X72289Y38532D01* X72167Y38332D01* X72089Y38255D01* X72000Y38177D01* X71911Y38110D01* X71800Y38066D01* X71811Y38055D01* X71856Y38032D01* X71911Y37977D01* X71989Y37910D01* X72078Y37821D01* X72156Y37710D01* X72245Y37577D01* X72322Y37421D01* X72333Y37399D01* X72344Y37343D01* X72378Y37255D01* X72411Y37132D01* X72444Y36988D01* X72467Y36821D01* X72489Y36644D01* X72500Y36455D01* Y36377D01* X72489Y36321D01* Y36244D01* X72478Y36166D01* X72444Y35977D01* X72389Y35766D01* X72311Y35544D01* X72200Y35333D01* X72044Y35133D01* X72033D01* X72022Y35110D01* X71956Y35055D01* X71856Y34977D01* X71711Y34888D01* X71533Y34799D01* X71322Y34722D01* X71078Y34666D01* X70945Y34655D01* X70800Y34644D01* X70789D01* X70767D01* X70722D01* X70656Y34655D01* X70589Y34666D01* X70500Y34677D01* X70311Y34733D01* X70100Y34811D01* X69989Y34866D01* X69878Y34933D01* X69778Y35010D01* X69667Y35099D01* X69567Y35199D01* X69478Y35322D01* X69467Y35333D01* X69456Y35355D01* X69434Y35388D01* X69400Y35444D01* X69367Y35522D01* X69334Y35599D01* X69289Y35699D01* X69245Y35810D01* X69200Y35944D01* X69156Y36077D01* X69123Y36233D01* X69089Y36399D01* X69056Y36588D01* X69034Y36777D01* X69011Y36988D01* Y37843D01* X68767D01* X68745D01* X68700D01* X68623Y37832D01* X68523Y37810D01* X68423Y37777D01* X68312Y37732D01* X68223Y37666D01* X68134Y37577D01* X68123Y37566D01* X68100Y37532D01* X68067Y37466D01* X68034Y37388D01* X68001Y37277D01* X67967Y37144D01* X67945Y36988D01* X67934Y36799D01* Y36699D01* X67945Y36621D01* Y36533D01* X67956Y36421D01* X67978Y36310D01* X68001Y36177D01* Y36166D01* X68012Y36110D01* X68023Y36044D01* X68045Y35944D01* X68078Y35822D01* X68111Y35677D01* X68145Y35522D01* X68189Y35355D01* X67267Y35044D01* Y35055D01* X67245Y35088D01* X67234Y35144D01* X67200Y35221D01* X67178Y35310D01* X67145Y35410D01* X67112Y35533D01* X67067Y35666D01* X67001Y35955D01* X66934Y36277D01* X66889Y36621D01* X66878Y36966D01* Y37066D01* X66889Y37144D01* Y37232D01* X66901Y37332D01* X66934Y37566D01* X66989Y37832D01* X67078Y38099D01* X67200Y38355D01* X67267Y38466D01* X67356Y38577D01* Y38588D01* X67378Y38599D01* X67445Y38666D01* X67556Y38754D01* X67700Y38855D01* X67889Y38954D01* X68123Y39043D01* X68389Y39110D01* X68545Y39121D01* X68700Y39132D01* X71022D01* X71034D01* X71067D01* X71111D01* X71167Y39143D01* X71300Y39166D01* X71356Y39177D01* X71411Y39199D01* X71433Y39210D01* X71456Y39232D01* X71478Y39266D01* X71511Y39310D01* X71544Y39366D01* X71578Y39432D01* X71611Y39521D01* X72500Y39232D01* D02* G37* G36* X72378Y32588D02* X68589D01* X68567D01* X68523D01* X68456D01* X68367Y32577D01* X68189Y32566D01* X68111Y32555D01* X68056Y32533D01* X68045D01* X68034Y32522D01* X67989Y32489D01* X67945Y32433D01* X67923Y32388D01* Y32333D01* X67934Y32277D01* X67945Y32211D01* X67978Y32122D01* X68034Y32022D01* X68111Y31911D01* X68223Y31789D01* X68367Y31677D01* X72378D01* Y30589D01* X68589D01* X68567D01* X68523D01* X68456D01* X68367Y30578D01* X68189Y30566D01* X68111Y30555D01* X68056Y30533D01* X68045D01* X68034Y30522D01* X67989Y30489D01* X67945Y30433D01* X67923Y30389D01* Y30333D01* X67934Y30278D01* X67945Y30211D01* X67978Y30122D01* X68034Y30022D01* X68111Y29911D01* X68223Y29789D01* X68367Y29678D01* X72378D01* Y28500D01* X67012D01* Y29511D01* X67567Y29566D01* X67556D01* X67512Y29589D01* X67456Y29611D01* X67389Y29655D01* X67312Y29700D01* X67223Y29766D01* X67145Y29844D01* X67067Y29944D01* X67056Y29955D01* X67034Y29989D01* X67012Y30055D01* X66967Y30133D01* X66934Y30233D01* X66912Y30344D01* X66889Y30466D01* X66878Y30611D01* Y30678D01* X66889Y30733D01* X66912Y30855D01* X66956Y31011D01* X67034Y31166D01* X67089Y31244D01* X67145Y31322D01* X67223Y31389D01* X67312Y31444D01* X67412Y31500D01* X67523Y31533D01* X67512Y31544D01* X67478Y31555D01* X67423Y31589D01* X67356Y31633D01* X67289Y31688D01* X67212Y31755D01* X67134Y31844D01* X67067Y31944D01* X67056Y31955D01* X67034Y32000D01* X67012Y32055D01* X66967Y32144D01* X66934Y32244D01* X66912Y32366D01* X66889Y32489D01* X66878Y32633D01* Y32722D01* X66901Y32811D01* X66923Y32933D01* X66967Y33066D01* X67034Y33200D01* X67123Y33333D01* X67245Y33455D01* X67256Y33466D01* X67312Y33500D01* X67400Y33555D01* X67523Y33611D01* X67689Y33655D01* X67901Y33711D01* X68145Y33744D01* X68278Y33755D01* X68434D01* X72378D01* Y32588D01* D02* G37* G36* X28336Y75590D02* X31649D01* Y73350D01* X28336D01* Y70000D01* X26041D01* Y73350D01* X22727D01* Y75590D01* X26041D01* Y78959D01* X28336D01* Y75590D01* D02* G37* G36* X74828Y-30331D02* X74902D01* X74983Y-30346D01* X75072Y-30353D01* X75175Y-30368D01* X75390Y-30413D01* X75619Y-30479D01* X75730Y-30516D01* X75841Y-30568D01* X75945Y-30620D01* X76049Y-30686D01* X76056Y-30694D01* X76071Y-30701D01* X76093Y-30723D01* X76130Y-30753D01* X76167Y-30790D01* X76211Y-30834D01* X76256Y-30886D01* X76308Y-30945D01* X76352Y-31019D01* X76404Y-31093D01* X76448Y-31182D01* X76485Y-31271D01* X76522Y-31375D01* X76544Y-31486D01* X76559Y-31597D01* X76567Y-31722D01* Y-31774D01* X76559Y-31811D01* X76552Y-31863D01* X76544Y-31915D01* X76522Y-32033D01* X76478Y-32166D01* X76411Y-32300D01* X76367Y-32366D01* X76315Y-32425D01* X76263Y-32477D01* X76197Y-32529D01* X77802D01* X77891Y-33395D01* X72911D01* Y-32633D01* X73348Y-32603D01* X73340Y-32596D01* X73311Y-32581D01* X73266Y-32559D01* X73214Y-32514D01* X73148Y-32462D01* X73089Y-32403D01* X73029Y-32322D01* X72970Y-32226D01* X72963Y-32211D01* X72948Y-32181D01* X72926Y-32122D01* X72896Y-32048D01* X72867Y-31959D01* X72844Y-31863D01* X72830Y-31752D01* X72822Y-31641D01* Y-31582D01* X72837Y-31523D01* X72852Y-31434D01* X72881Y-31338D01* X72918Y-31227D01* X72978Y-31108D01* X73052Y-30982D01* X73155Y-30857D01* X73274Y-30738D01* X73348Y-30686D01* X73429Y-30627D01* X73518Y-30575D01* X73607Y-30531D01* X73710Y-30487D01* X73821Y-30442D01* X73940Y-30413D01* X74073Y-30383D01* X74213Y-30353D01* X74361Y-30339D01* X74517Y-30324D01* X74687D01* X74694D01* X74724D01* X74768D01* X74828Y-30331D01* D02* G37* G36* X74791Y-34357D02* X74857Y-34364D01* X74998Y-34379D01* Y-36658D01* X75005D01* X75013D01* X75035Y-36651D01* X75064D01* X75138Y-36636D01* X75235Y-36614D01* X75338Y-36577D01* X75449Y-36532D01* X75553Y-36473D01* X75649Y-36392D01* X75656Y-36377D01* X75686Y-36347D01* X75723Y-36296D01* X75760Y-36222D01* X75804Y-36133D01* X75841Y-36029D01* X75871Y-35918D01* X75878Y-35785D01* Y-35748D01* X75871Y-35696D01* Y-35637D01* X75864Y-35570D01* X75849Y-35496D01* X75812Y-35341D01* X75804Y-35334D01* X75797Y-35304D01* X75782Y-35260D01* X75753Y-35200D01* X75723Y-35134D01* X75679Y-35052D01* X75634Y-34956D01* X75575Y-34860D01* X76100Y-34497D01* X76108Y-34512D01* X76137Y-34542D01* X76182Y-34601D01* X76234Y-34675D01* X76293Y-34764D01* X76352Y-34875D01* X76411Y-34986D01* X76456Y-35112D01* X76463Y-35126D01* X76470Y-35171D01* X76493Y-35237D01* X76507Y-35326D01* X76530Y-35430D01* X76552Y-35548D01* X76559Y-35681D01* X76567Y-35815D01* Y-35896D01* X76559Y-35948D01* X76552Y-36022D01* X76537Y-36096D01* X76522Y-36185D01* X76500Y-36281D01* X76478Y-36384D01* X76441Y-36488D01* X76404Y-36592D01* X76352Y-36703D01* X76293Y-36806D01* X76226Y-36910D01* X76145Y-37006D01* X76056Y-37095D01* X76049Y-37102D01* X76034Y-37117D01* X76004Y-37139D01* X75960Y-37161D01* X75908Y-37198D01* X75849Y-37235D01* X75775Y-37280D01* X75693Y-37317D01* X75605Y-37361D01* X75501Y-37406D01* X75390Y-37443D01* X75264Y-37472D01* X75138Y-37502D01* X74998Y-37524D01* X74850Y-37539D01* X74694Y-37546D01* X74687D01* X74672D01* X74643D01* X74606D01* X74561Y-37539D01* X74502D01* X74376Y-37524D01* X74228Y-37502D01* X74073Y-37465D01* X73903Y-37420D01* X73740Y-37354D01* X73732D01* X73718Y-37346D01* X73695Y-37332D01* X73666Y-37317D01* X73592Y-37272D01* X73496Y-37206D01* X73385Y-37124D01* X73274Y-37028D01* X73163Y-36917D01* X73066Y-36784D01* Y-36777D01* X73059Y-36769D01* X73044Y-36747D01* X73029Y-36717D01* X72992Y-36636D01* X72941Y-36532D01* X72896Y-36407D01* X72859Y-36251D01* X72830Y-36088D01* X72822Y-35903D01* Y-35837D01* X72830Y-35785D01* X72837Y-35726D01* X72844Y-35652D01* X72859Y-35578D01* X72881Y-35489D01* X72941Y-35311D01* X72978Y-35215D01* X73022Y-35119D01* X73081Y-35030D01* X73148Y-34941D01* X73222Y-34853D01* X73303Y-34771D01* X73311Y-34764D01* X73325Y-34756D01* X73355Y-34734D01* X73392Y-34705D01* X73436Y-34675D01* X73496Y-34638D01* X73570Y-34601D01* X73644Y-34557D01* X73732Y-34520D01* X73836Y-34483D01* X73940Y-34446D01* X74058Y-34416D01* X74184Y-34386D01* X74317Y-34364D01* X74458Y-34357D01* X74606Y-34349D01* X74613D01* X74643D01* X74680D01* X74731D01* X74791Y-34357D01* D02* G37* G36* X76271Y-38397D02* X76293Y-38427D01* X76315Y-38479D01* X76352Y-38538D01* X76389Y-38612D01* X76426Y-38701D01* X76463Y-38789D01* X76493Y-38893D01* Y-38908D01* X76507Y-38937D01* X76515Y-38989D01* X76530Y-39063D01* X76544Y-39145D01* X76552Y-39241D01* X76567Y-39344D01* Y-39515D01* X76559Y-39559D01* Y-39611D01* X76552Y-39670D01* X76530Y-39811D01* X76485Y-39966D01* X76433Y-40121D01* X76352Y-40277D01* X76308Y-40351D01* X76248Y-40417D01* X76241D01* X76234Y-40432D01* X76189Y-40469D01* X76115Y-40521D01* X76019Y-40580D01* X75893Y-40647D01* X75745Y-40699D01* X75575Y-40736D01* X75479Y-40743D01* X75375Y-40750D01* X73577D01* Y-41520D01* X72911D01* Y-40750D01* X72149D01* X72053Y-39892D01* X72911D01* Y-38723D01* X73577Y-38812D01* Y-39892D01* X75368D01* X75383D01* X75412D01* X75457Y-39885D01* X75508Y-39877D01* X75575Y-39862D01* X75634Y-39840D01* X75693Y-39811D01* X75745Y-39766D01* X75753Y-39759D01* X75760Y-39744D01* X75782Y-39714D01* X75804Y-39670D01* X75827Y-39611D01* X75841Y-39537D01* X75856Y-39455D01* X75864Y-39352D01* Y-39293D01* X75856Y-39233D01* X75841Y-39145D01* X75819Y-39048D01* X75790Y-38930D01* X75745Y-38812D01* X75686Y-38686D01* X76263Y-38390D01* X76271Y-38397D01* D02* G37* G36* X75301Y-42275D02* X75397Y-42297D01* X75516Y-42319D01* X75642Y-42356D01* X75775Y-42408D01* X75901Y-42482D01* X75915Y-42489D01* X75952Y-42519D01* X76012Y-42571D01* X76078Y-42637D01* X76160Y-42726D01* X76241Y-42837D01* X76322Y-42963D01* X76396Y-43104D01* Y-43111D01* X76404Y-43118D01* X76411Y-43148D01* X76426Y-43178D01* X76433Y-43215D01* X76448Y-43259D01* X76478Y-43377D01* X76515Y-43518D01* X76537Y-43681D01* X76559Y-43858D01* X76567Y-44058D01* Y-44103D01* X76559Y-44162D01* Y-44236D01* X76544Y-44325D01* X76530Y-44428D01* X76515Y-44547D01* X76485Y-44672D01* X76448Y-44813D01* X76404Y-44954D01* X76352Y-45094D01* X76293Y-45235D01* X76219Y-45383D01* X76130Y-45523D01* X76026Y-45657D01* X75915Y-45782D01* X75375Y-45301D01* X75383Y-45294D01* X75397Y-45279D01* X75420Y-45250D01* X75449Y-45205D01* X75486Y-45153D01* X75531Y-45094D01* X75568Y-45020D01* X75612Y-44946D01* X75664Y-44857D01* X75701Y-44761D01* X75782Y-44547D01* X75812Y-44436D01* X75834Y-44310D01* X75849Y-44191D01* X75856Y-44058D01* Y-43992D01* X75849Y-43925D01* X75834Y-43836D01* X75812Y-43740D01* X75782Y-43636D01* X75745Y-43533D01* X75686Y-43437D01* X75679Y-43429D01* X75656Y-43400D01* X75612Y-43363D01* X75560Y-43311D01* X75486Y-43266D01* X75405Y-43229D01* X75301Y-43200D01* X75190Y-43192D01* X75183D01* X75161D01* X75124D01* X75079Y-43200D01* X74983Y-43222D01* X74887Y-43266D01* X74879D01* X74865Y-43281D01* X74842Y-43296D01* X74813Y-43326D01* X74776Y-43355D01* X74739Y-43400D01* X74694Y-43451D01* X74657Y-43518D01* X74650Y-43525D01* X74643Y-43555D01* X74620Y-43592D01* X74591Y-43659D01* X74561Y-43733D01* X74524Y-43829D01* X74487Y-43940D01* X74450Y-44066D01* Y-44073D01* X74443Y-44095D01* X74428Y-44140D01* X74406Y-44191D01* X74384Y-44251D01* X74361Y-44325D01* X74332Y-44406D01* X74295Y-44495D01* X74213Y-44680D01* X74125Y-44865D01* X74014Y-45042D01* X73962Y-45124D01* X73903Y-45198D01* X73895Y-45205D01* X73888Y-45213D01* X73843Y-45257D01* X73769Y-45316D01* X73673Y-45383D01* X73547Y-45449D01* X73399Y-45509D01* X73237Y-45553D01* X73140Y-45560D01* X73044Y-45568D01* X73037D01* X73029D01* X73007D01* X72978D01* X72911Y-45553D01* X72822Y-45538D01* X72719Y-45516D01* X72600Y-45479D01* X72489Y-45427D01* X72378Y-45361D01* X72363Y-45353D01* X72326Y-45324D01* X72275Y-45272D01* X72208Y-45205D01* X72134Y-45124D01* X72060Y-45028D01* X71993Y-44909D01* X71927Y-44783D01* Y-44776D01* X71919Y-44769D01* X71912Y-44746D01* X71905Y-44717D01* X71875Y-44643D01* X71845Y-44539D01* X71816Y-44421D01* X71786Y-44280D01* X71771Y-44125D01* X71764Y-43955D01* Y-43910D01* X71771Y-43866D01* Y-43799D01* X71779Y-43718D01* X71794Y-43622D01* X71816Y-43518D01* X71838Y-43407D01* X71868Y-43281D01* X71912Y-43155D01* X71956Y-43022D01* X72016Y-42896D01* X72082Y-42763D01* X72164Y-42630D01* X72260Y-42504D01* X72363Y-42378D01* X72881Y-42837D01* X72874Y-42845D01* X72867Y-42859D01* X72844Y-42889D01* X72822Y-42926D01* X72785Y-42970D01* X72756Y-43022D01* X72719Y-43089D01* X72682Y-43155D01* X72608Y-43318D01* X72541Y-43496D01* X72497Y-43696D01* X72489Y-43799D01* X72482Y-43910D01* Y-43969D01* X72489Y-44029D01* X72497Y-44103D01* X72519Y-44191D01* X72541Y-44288D01* X72578Y-44376D01* X72622Y-44458D01* X72630Y-44465D01* X72645Y-44487D01* X72674Y-44524D01* X72719Y-44554D01* X72770Y-44591D01* X72837Y-44628D01* X72911Y-44650D01* X73000Y-44658D01* X73007D01* X73022D01* X73052Y-44650D01* X73089D01* X73177Y-44621D01* X73222Y-44606D01* X73266Y-44576D01* X73274Y-44569D01* X73288Y-44561D01* X73303Y-44539D01* X73333Y-44502D01* X73362Y-44465D01* X73399Y-44413D01* X73436Y-44347D01* X73473Y-44273D01* X73481Y-44265D01* X73488Y-44236D01* X73510Y-44184D01* X73540Y-44117D01* X73570Y-44029D01* X73607Y-43918D01* X73651Y-43792D01* X73695Y-43651D01* Y-43644D01* X73703Y-43622D01* X73718Y-43585D01* X73732Y-43540D01* X73755Y-43488D01* X73777Y-43422D01* X73836Y-43274D01* X73910Y-43111D01* X73999Y-42941D01* X74102Y-42778D01* X74221Y-42630D01* Y-42623D01* X74236Y-42615D01* X74280Y-42571D01* X74354Y-42512D01* X74458Y-42445D01* X74583Y-42378D01* X74746Y-42327D01* X74931Y-42282D01* X75035Y-42275D01* X75146Y-42267D01* X75153D01* X75168D01* X75190D01* X75220D01* X75301Y-42275D01* D02* G37* G36* X77390Y45422D02* X77429D01* X77512Y45405D01* X77612Y45389D01* X77717Y45361D01* X77828Y45322D01* X77934Y45267D01* X77939D01* X77945Y45261D01* X77978Y45239D01* X78028Y45200D01* X78089Y45156D01* X78156Y45089D01* X78228Y45011D01* X78294Y44923D01* X78356Y44823D01* Y44817D01* X78361Y44811D01* X78367Y44795D01* X78378Y44773D01* X78400Y44712D01* X78428Y44634D01* X78456Y44540D01* X78478Y44423D01* X78494Y44301D01* X78500Y44162D01* Y44134D01* X78494Y44101D01* Y44057D01* X78483Y44001D01* X78472Y43935D01* X78461Y43863D01* X78439Y43785D01* X78411Y43701D01* X78383Y43613D01* X78345Y43524D01* X78294Y43435D01* X78239Y43341D01* X78178Y43252D01* X78100Y43163D01* X78017Y43080D01* X77656Y43457D01* X77662Y43463D01* X77667Y43474D01* X77684Y43491D01* X77706Y43513D01* X77728Y43541D01* X77756Y43574D01* X77817Y43657D01* X77878Y43763D01* X77928Y43879D01* X77950Y43940D01* X77961Y44007D01* X77973Y44073D01* X77978Y44140D01* Y44151D01* X77973Y44190D01* X77967Y44240D01* X77956Y44306D01* X77934Y44379D01* X77906Y44451D01* X77862Y44523D01* X77806Y44589D01* X77795Y44595D01* X77773Y44617D01* X77734Y44645D01* X77679Y44673D01* X77606Y44706D01* X77517Y44728D01* X77418Y44750D01* X77301Y44756D01* X77296D01* X77284D01* X77268D01* X77246D01* X77190Y44750D01* X77118Y44739D01* X77040Y44723D01* X76963Y44695D01* X76890Y44662D01* X76829Y44617D01* X76824Y44612D01* X76807Y44595D01* X76779Y44562D01* X76752Y44523D01* X76729Y44467D01* X76702Y44406D01* X76685Y44334D01* X76679Y44251D01* Y44212D01* X76685Y44184D01* X76691Y44118D01* X76707Y44034D01* Y44029D01* X76713Y44018D01* X76718Y43996D01* X76729Y43962D01* X76740Y43929D01* X76757Y43885D01* X76796Y43785D01* Y43319D01* X74964D01* Y45311D01* X75470Y45233D01* Y43940D01* X76313D01* X76308Y43951D01* X76291Y43973D01* X76274Y44018D01* X76247Y44079D01* X76224Y44151D01* X76208Y44234D01* X76191Y44334D01* X76186Y44445D01* Y44495D01* X76191Y44545D01* X76202Y44617D01* X76219Y44695D01* X76247Y44778D01* X76280Y44867D01* X76324Y44950D01* X76330Y44961D01* X76346Y44989D01* X76380Y45028D01* X76424Y45078D01* X76480Y45133D01* X76546Y45195D01* X76624Y45250D01* X76713Y45300D01* X76724Y45305D01* X76757Y45322D01* X76807Y45339D01* X76879Y45366D01* X76968Y45389D01* X77068Y45405D01* X77179Y45422D01* X77301Y45428D01* X77307D01* X77318D01* X77334D01* X77362D01* X77390Y45422D01* D02* G37* G36* X78056Y41803D02* X78106Y41792D01* X78167Y41770D01* X78228Y41748D01* X78289Y41709D01* X78350Y41659D01* X78356Y41654D01* X78372Y41631D01* X78400Y41598D01* X78422Y41559D01* X78450Y41504D01* X78478Y41437D01* X78494Y41365D01* X78500Y41287D01* Y41248D01* X78494Y41210D01* X78483Y41160D01* X78461Y41099D01* X78439Y41037D01* X78400Y40977D01* X78350Y40915D01* X78345Y40910D01* X78322Y40893D01* X78289Y40865D01* X78245Y40843D01* X78195Y40815D01* X78128Y40788D01* X78056Y40771D01* X77978Y40766D01* X77967D01* X77945D01* X77906Y40771D01* X77856Y40782D01* X77795Y40804D01* X77740Y40827D01* X77679Y40865D01* X77617Y40915D01* X77612Y40921D01* X77595Y40943D01* X77567Y40977D01* X77540Y41021D01* X77517Y41071D01* X77490Y41137D01* X77473Y41210D01* X77468Y41287D01* Y41326D01* X77473Y41365D01* X77484Y41415D01* X77506Y41476D01* X77529Y41537D01* X77567Y41598D01* X77617Y41659D01* X77623Y41665D01* X77645Y41681D01* X77679Y41709D01* X77717Y41737D01* X77773Y41759D01* X77834Y41787D01* X77900Y41803D01* X77978Y41809D01* X77989D01* X78017D01* X78056Y41803D01* D02* G37* G36* X78439Y37319D02* X77917D01* Y38146D01* X75625D01* X76080Y37430D01* X75636Y37164D01* X74964Y38235D01* Y38790D01* X77917D01* Y39461D01* X78439D01* Y37319D01* D02* G37* G36* Y35637D02* Y34933D01* X75758Y34000D01* Y34683D01* X77884Y35293D01* X75758Y35915D01* Y36570D01* X78439Y35637D01* D02* G37* G36* X-26041Y-73350D02* X-22727D01* Y-75590D01* X-26041D01* Y-78959D01* X-28336D01* Y-75590D01* X-31649D01* Y-73350D01* X-28336D01* Y-70000D01* X-26041D01* Y-73350D01* D02* G37* %LPC*% G36* X63000Y45656D02* Y42391D01* X52571Y45656D01* D01* Y36976D01* X63000Y40242D01* Y36976D01* X52571D01* X63000D01* Y45656D01* D02* G37* G36* Y35960D02* Y34744D01* X60668D01* Y35960D01* X59102D01* Y34744D01* X56403D01* Y33045D01* X59102Y32878D01* Y30679D01* X52971Y33244D01* X52354Y31629D01* X59351Y28646D01* X52354D01* Y31629D01* Y28646D01* X63000D01* D01* X60668D01* Y32861D01* X63000D01* Y35960D01* D02* G37* G36* Y26480D02* Y26281D01* X61401Y26480D01* D01* Y21882D01* X61167Y22182D01* X60934Y22466D01* X60718Y22732D01* X60501Y22982D01* X60301Y23215D01* X60101Y23432D01* X59918Y23615D01* X59768Y23798D01* X59618Y23948D01* X59485Y24081D01* X59368Y24198D01* X59268Y24298D01* X59185Y24365D01* X59135Y24415D01* X59102Y24448D01* X59085Y24465D01* X58702Y24798D01* X58335Y25064D01* X58019Y25298D01* X57735Y25498D01* X57502Y25631D01* X57319Y25731D01* X57252Y25764D01* X57202Y25798D01* X57186Y25814D01* X57169D01* X56836Y25964D01* X56519Y26064D01* X56219Y26147D01* X55936Y26197D01* X55703Y26231D01* X55536Y26247D01* X55453D01* X55403D01* X55386D01* X55370D01* X55070Y26231D01* X54787Y26181D01* X54520Y26114D01* X54303Y26047D01* X54120Y25981D01* X53970Y25914D01* X53887Y25864D01* X53854Y25847D01* X53604Y25681D01* X53404Y25498D01* X53204Y25298D01* X53054Y25114D01* X52937Y24948D01* X52837Y24814D01* X52787Y24715D01* X52771Y24698D01* Y24681D01* X52637Y24381D01* X52538Y24081D01* X52471Y23782D01* X52421Y23498D01* X52388Y23248D01* X52371Y23049D01* Y22882D01* X52388Y22482D01* X52438Y22116D01* X52504Y21782D01* X52571Y21499D01* X52654Y21266D01* X52721Y21099D01* X52754Y21033D01* X52771Y20983D01* X52787Y20966D01* Y20949D01* X52954Y20650D01* X53154Y20383D01* X53370Y20133D01* X53587Y19917D01* X53787Y19733D01* X53937Y19600D01* X54004Y19550D01* X54054Y19517D01* X54070Y19483D01* X52371D01* X63000D01* Y26480D01* D02* G37* %LPD*% G36* X61084Y41341D02* X52571Y39059D01* Y43657D01* X61084Y41341D01* D02* G37* G36* X55736Y24248D02* X56003Y24198D01* X56253Y24148D01* X56469Y24081D01* X56652Y23998D01* X56802Y23948D01* X56886Y23898D01* X56902Y23882D01* X56919D01* X57186Y23715D01* X57486Y23532D01* X57769Y23315D01* X58052Y23099D01* X58285Y22899D01* X58485Y22732D01* X58552Y22665D01* X58602Y22615D01* X58635Y22599D01* X58652Y22582D01* X58852Y22399D01* X59068Y22199D01* X59535Y21732D01* X60018Y21266D01* X60484Y20799D01* X60701Y20566D01* X60901Y20366D01* X61084Y20183D01* X61234Y20016D01* X61367Y19883D01* X61467Y19783D01* X61534Y19717D01* X61551Y19700D01* X63000D01* Y19483D01* X54087D01* X55036Y20716D01* X54820Y20916D01* X54653Y21099D01* X54503Y21266D01* X54387Y21416D01* X54303Y21532D01* X54254Y21616D01* X54220Y21682D01* X54203Y21699D01* X54120Y21866D01* X54070Y22049D01* X54020Y22232D01* X54004Y22399D01* X53987Y22549D01* X53970Y22665D01* Y22765D01* X53987Y23015D01* X54037Y23232D01* X54104Y23415D01* X54170Y23582D01* X54237Y23698D01* X54303Y23798D01* X54353Y23848D01* X54370Y23865D01* X54537Y23998D01* X54703Y24098D01* X54887Y24165D01* X55070Y24215D01* X55220Y24248D01* X55353Y24265D01* X55436D01* X55470D01* X55736Y24248D01* D02* G37* %LPC*% G36* X70911Y37843D02* X69889D01* Y37221D01* X69900Y37088D01* X69923Y36944D01* X69945Y36766D01* X69989Y36599D01* X70045Y36444D01* X70122Y36310D01* X70134Y36299D01* X70167Y36266D01* X70211Y36210D01* X70289Y36155D01* X70378Y36099D01* X70489Y36044D01* X70622Y36010D01* X70767Y35999D01* X70778D01* X70833D01* X70900Y36010D01* X70978Y36021D01* X71067Y36044D01* X71167Y36077D01* X71256Y36121D01* X71333Y36188D01* X71345Y36199D01* X71367Y36221D01* X71389Y36277D01* X71422Y36332D01* X71467Y36421D01* X71489Y36521D01* X71511Y36644D01* X71522Y36777D01* Y36832D01* X71511Y36888D01* X71500Y36966D01* X71478Y37066D01* X71456Y37166D01* X71411Y37266D01* X71356Y37377D01* X71345Y37388D01* X71322Y37421D01* X71289Y37477D01* X71233Y37543D01* X71178Y37621D01* X71100Y37699D01* X71011Y37777D01* X70911Y37843D01* D02* G37* G36* X74805Y-31227D02* X74694D01* X74687D01* X74665D01* X74635D01* X74591D01* X74539Y-31234D01* X74480D01* X74339Y-31249D01* X74191Y-31264D01* X74043Y-31293D01* X73903Y-31330D01* X73836Y-31352D01* X73784Y-31382D01* X73769Y-31389D01* X73740Y-31412D01* X73695Y-31449D01* X73644Y-31500D01* X73599Y-31560D01* X73555Y-31641D01* X73525Y-31737D01* X73510Y-31841D01* Y-31878D01* X73518Y-31915D01* X73525Y-31967D01* X73540Y-32026D01* X73562Y-32092D01* X73592Y-32159D01* X73636Y-32226D01* X73644Y-32233D01* X73658Y-32255D01* X73688Y-32285D01* X73725Y-32329D01* X73769Y-32381D01* X73821Y-32425D01* X73888Y-32477D01* X73954Y-32529D01* X75538D01* X75553Y-32522D01* X75590Y-32485D01* X75649Y-32440D01* X75708Y-32366D01* X75767Y-32285D01* X75827Y-32174D01* X75864Y-32055D01* X75871Y-31989D01* X75878Y-31915D01* Y-31900D01* X75871Y-31856D01* X75864Y-31796D01* X75841Y-31722D01* X75812Y-31641D01* X75760Y-31552D01* X75693Y-31478D01* X75605Y-31404D01* X75590Y-31397D01* X75553Y-31375D01* X75479Y-31345D01* X75383Y-31315D01* X75323Y-31301D01* X75257Y-31286D01* X75183Y-31271D01* X75101Y-31256D01* X75013Y-31241D01* X74916Y-31234D01* X74805Y-31227D01* D02* G37* G36* X74376Y-35193D02* X74369D01* X74361D01* X74339D01* X74310Y-35200D01* X74236Y-35208D01* X74139Y-35223D01* X74043Y-35245D01* X73932Y-35282D01* X73829Y-35334D01* X73732Y-35393D01* X73725Y-35400D01* X73695Y-35422D01* X73658Y-35467D01* X73607Y-35526D01* X73562Y-35593D01* X73525Y-35681D01* X73496Y-35785D01* X73488Y-35903D01* Y-35955D01* X73503Y-36014D01* X73518Y-36088D01* X73547Y-36170D01* X73584Y-36259D01* X73644Y-36347D01* X73725Y-36429D01* X73732Y-36436D01* X73769Y-36458D01* X73821Y-36495D01* X73895Y-36532D01* X73991Y-36577D01* X74102Y-36614D01* X74228Y-36643D01* X74376Y-36666D01* Y-35193D01* D02* G37* %LPD*% D28* X-34646Y-26000D02* D03* X-15354D02* D03* D30* X28547Y-21500D02* D03* X22454D02* D03* D31* X14000Y-65000D02* D03* X-14000D02* D03* X14000Y65000D02* D03* X-14000D02* D03* D32* X-9250Y-62500D02* D03* X9250D02* D03* Y62500D02* D03* X-9250D02* D03* D33* X26350Y-74250D02* D03* X-26350Y74250D02* D03* D34* X66141Y-38033D02* D03* D35* X12000Y43000D02* D03* X-12000D02* D03* D36* X-62500Y20689D02* D03* Y40374D02* D03* Y36437D02* D03* Y28563D02* D03* Y32500D02* D03* Y24626D02* D03* Y-30063D02* D03* Y-34000D02* D03* Y-37937D02* D03* Y-11874D02* D03* Y-4000D02* D03* Y-7937D02* D03* Y-63D02* D03* Y3874D02* D03* D37* X-77000Y16000D02* D03* Y45063D02* D03* Y-25500D02* D03* Y-42500D02* D03* Y8500D02* D03* Y-16500D02* D03* D38* X-54000Y19700D02* D03* Y15700D02* D03* D39* X-48040Y16295D02* D03* X-40560D02* D03* X-44300Y26105D02* D03* D40* X6500Y-77000D02* D03* X-6500D02* D03* X6500Y77000D02* D03* X-6500D02* D03* D41* X28500Y-14501D02* D03* X17000Y-55500D02* D03* D42* X-14532Y-77000D02* D03* X14532D02* D03* Y77000D02* D03* X-14532D02* D03* D43* X5906Y-62500D02* D03* X-1969D02* D03* X1969D02* D03* X-5906D02* D03* X-9843D02* D03* X9843D02* D03* X-5906Y62500D02* D03* X1969D02* D03* X-1969D02* D03* X5906D02* D03* X9843D02* D03* X-9843D02* D03* D44* X29000Y-57300D02* D03* Y-60700D02* D03* D45* X73000Y-7200D02* D03* Y-22800D02* D03* Y7200D02* D03* Y22800D02* D03* D46* X-27500Y-61500D02* D03* X-27500Y-51500D02* D03* X-34000Y-61500D02* D03* X-34000Y-51500D02* D03* X-34000Y-37000D02* D03* X-34000Y-47000D02* D03* X-27500Y-37000D02* D03* X-27500Y-47000D02* D03* D47* X-18000Y-38000D02* D03* Y-54000D02* D03* D48* X2234Y-21000D02* D03* X-8234D02* D03* X16734D02* D03* X6266D02* D03* D49* X-98287Y-52776D02* D03* X98287D02* D03* Y52776D02* D03* X-98287D02* D03* M02* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.LDP ================================================ Layer Pairs Export File for PCB: I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-57-unused\Motor-57.PcbDoc LayersSetName=Top_Bot_Thru_Holes|DrillFile=motor-57.txt|DrillLayers=gtl,g1,g2,gbl ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.REP ================================================ ************************************************************* FileName = Motor-57.GBR AutoAperture = True ************************************************************* Generating : Mechanical 15 File : Motor-57.GM15 Adding Layer : Mechanical 15 Used DCodes : D13 D85 ************************************************************* ************************************************************* Generating : Mechanical 14 File : Motor-57.GM14 Adding Layer : Mechanical 14 Used DCodes : D86 ************************************************************* ************************************************************* Generating : Mechanical 13 File : Motor-57.GM13 Adding Layer : Mechanical 13 Used DCodes : D85 D86 ************************************************************* ************************************************************* Generating : Mechanical 12 File : Motor-57.GM12 Adding Layer : Mechanical 12 Used DCodes : D13 ************************************************************* ************************************************************* Generating : Mechanical 10 File : Motor-57.GM10 Adding Layer : Mechanical 10 Used DCodes : D13 ************************************************************* ************************************************************* Generating : Mechanical 1 File : Motor-57.GM1 Adding Layer : Mechanical 1 Used DCodes : D10 ************************************************************* ************************************************************* Generating : Keep-Out Layer File : Motor-57.GKO Adding Layer : Keep-Out Layer Used DCodes : D10 ************************************************************* ************************************************************* Generating : Bottom Overlay File : Motor-57.GBO Adding Layer : Bottom Overlay Used DCodes : D12 D13 D14 D84 ************************************************************* ************************************************************* Generating : Bottom Paste File : Motor-57.GBP Adding Layer : Bottom Paste Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D18 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 ************************************************************* ************************************************************* Generating : Bottom Solder File : Motor-57.GBS Adding Layer : Bottom Solder Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D38 D49 D61 D73 D74 D75 D76 D77 D78 D79 D80 D81 D82 D83 ************************************************************* ************************************************************* Generating : Top Solder File : Motor-57.GTS Adding Layer : Top Solder Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D28 D30 D31 D32 D33 D34 D35 D36 D37 D38 D39 D40 D41 D42 D43 D44 D45 D46 D47 D48 D49 ************************************************************* ************************************************************* Generating : Top Paste File : Motor-57.GTP Adding Layer : Top Paste Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 ************************************************************* ************************************************************* Generating : Top Overlay File : Motor-57.GTO Adding Layer : Top Overlay Used DCodes : D10 D11 D12 D13 D14 D15 ************************************************************* ************************************************************* Generating : Top Pad Master File : Motor-57.GPT Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D54 ************************************************************* ************************************************************* Generating : Bottom Pad Master File : Motor-57.GPB Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D18 D54 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 ************************************************************* ************************************************************* Generating : Bottom4 File : Motor-57.GBL Adding Layer : Bottom4 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D18 D50 D54 D55 D56 D57 D58 D59 D60 D61 D62 D63 D64 D65 D66 D67 D68 D69 D70 D71 D72 ************************************************************* ************************************************************* Generating : Gnd3 File : Motor-57.G2 Adding Layer : Gnd3 Adding Layer : Multi-Layer Used DCodes : D54 D55 D56 ************************************************************* ************************************************************* Generating : Signal2 File : Motor-57.G1 Adding Layer : Signal2 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D50 D54 D55 D56 D57 D58 ************************************************************* ************************************************************* Generating : Top1 File : Motor-57.GTL Adding Layer : Top1 Adding Layer : Multi-Layer Used DCodes : D10 D11 D14 D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D50 D51 D52 D53 D54 D55 D56 ************************************************************* ************************************************************* Generating : Drill Drawing File : Motor-57.GD1 Adding Drill Pair : Top1-Bottom4 Adding Layer : Drill Drawing Used DCodes : D86 D87 ************************************************************* ************************************************************* Generating : Drill Guide File : Motor-57.GG1 Adding Drill Pair : Top1-Bottom4 Adding Layer : Drill Guide Used DCodes : D86 ************************************************************* ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.RUL ================================================ DRC Rules Export File for PCB: I:\onWorking\Dummy-Robot\1.Hardware\MotorDriver-57-unused\Motor-57.PcbDoc RuleKind=Width|RuleName=VCC|Scope=Board|Minimum=4.00 RuleKind=Width|RuleName=GND|Scope=Board|Minimum=4.00 RuleKind=SolderMaskExpansion|RuleName=SolderMaskExpansion|Scope=Board|Minimum=3.00 RuleKind=Width|RuleName=Width|Scope=Board|Minimum=4.00 RuleKind=Clearance|RuleName=Clearance|Scope=Board|Minimum=4.00 RuleKind=ShortCircuit|RuleName=ShortCircuit|Scope=Board|Allowed=0 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.TXT ================================================ M48 ;Layer_Color=9474304 ;FILE_FORMAT=2:5 INCH,TZ ;TYPE=PLATED T1F00S00C0.01000 T2F00S00C0.01575 T3F00S00C0.12205 % T01 X-78400Y-53500 X-73500Y-55000 Y-52000 X-71366Y-45734 X-77000Y-37500 Y-34000 Y-30500 Y-21000 X-70800Y-3100 X-77000Y13000 Y24000 Y30000 Y36000 X-60000Y36400 X-59900Y40300 Y32500 X-53700Y30300 X-56600Y26900 X-57000Y23500 X-53800 X-59000Y17500 X-56300Y12500 X-57500Y5000 X-54300Y4800 X-50400 X-45000Y5000 X-41000 Y2500 X-33500Y2000 Y5500 X-35300Y-8400 X-31800Y-12300 X-35000Y-16500 X-38000Y-17000 X-40500 X-42700Y-10600 X-51900Y-11100 X-51400Y-14500 X-56300Y-13100 X-55784Y-19016 X-55500Y-23000 Y-25500 Y-28000 X-51500Y-31600 X-51000Y-22000 X-66000 X-66500Y-15500 X-66600Y-2500 X-67500Y100 X-60500Y3000 X-56500Y700 X-52358Y658 X-44300Y26900 X-44100Y31200 X-14500Y31000 X-9500 X0Y37000 Y43500 X9500Y31000 X14500 X10800Y7500 X15800Y300 X15500Y-13000 X18000 X20500 X23000 X25500 Y-15500 X23000 X19900Y-17400 X18000Y-16300 X15800 X19800Y-22100 X22454Y-21500 X28500Y-21200 Y-18700 Y-16400 X32500Y-16500 Y-19500 Y-22500 Y-25500 Y-28500 Y-31500 Y-34500 Y-37500 X27000Y-49500 X27300Y-52900 X29500Y-52300 X24000Y-57500 X8500Y-51100 X2500Y-47500 X-2000Y-41500 X-5000 X-3500Y-38000 Y-35000 X300Y-36200 Y-38700 X240Y-33540 X-11500Y-31900 X-10800Y-44100 X-12500Y-45800 X-28500Y-43000 X-27000Y-40500 Y-38000 X-23500 X-34620Y-41200 X-39700Y-41600 X-37700Y-43700 X-36600Y-33400 X-38600Y-31800 X-40547Y-33553 X-57000Y-37000 X-58500Y-41000 X-56500Y-42500 X-54300Y-41000 X-52100Y-42400 X-62100Y-42600 X-37500Y-59000 X-34500 X-28000Y-63000 X-2000Y-65500 X1969Y-62500 X5500Y-24100 X8500 Y-21000 X5500 X-5000Y-20000 Y-23000 X-22500Y-19300 X-18300Y-4200 X-11400Y-7500 X-10600Y2500 X-11000Y5500 X-13500 Y9500 X-11000 X29300Y-4100 Y-7200 X50000 Y-4000 X73000Y-4700 Y3500 X32100Y53700 X28100Y54000 X17000Y-32500 Y-35000 T02 X-20000Y-72000 X-17000 X-14000 Y-69000 X-17000 X-20000 Y-66000 X-17000 X-14000 X19000Y-75500 Y-78500 X22000 X25000 X28000 X31000 X34000 X37000 X40000Y-73000 Y-70000 Y-67000 X43000 X46000 Y-70000 X43000 Y-73000 X46000 X70000Y-18000 Y-15000 X73000 X76000 Y-12000 X73000 X70000 X73000Y-18000 X76000 Y12000 X73000 Y15000 Y18000 X76000 Y15000 X70000 Y12000 Y18000 X32000Y16000 X29000 X26000 X23000 X20000 X17000 X14000 X11000 X8000 X5000 X2000 X-1000 X-4000 X-7000 X-10000 X-13000 X-16000 X-19000 X-19500Y38000 Y41000 Y44000 X-15000Y43000 Y46000 X-12000 X-9000 Y43000 Y40000 X-12000 X-15000 X-12000Y43000 X-4200Y42100 Y45100 Y39100 X4300 Y42100 Y45100 X9000Y46000 Y43000 X12000 X15000 Y40000 X12000 X9000 X12000Y46000 X15000 X19300Y44700 Y41700 Y38700 X33100Y38400 Y41400 Y44400 Y35400 Y32400 Y29400 X4500Y52100 Y55100 X1500 Y52100 X-19500 X-22500 Y55100 X-19500 X-27500Y60000 X-30500 Y63000 Y66000 X-27500 Y63000 X-33500 Y60000 X-36500 X-39500 Y63000 Y66000 X-36500 X-33500 X-36500Y63000 X-42500 Y60000 Y66000 X-34200Y52000 Y49000 Y46000 Y43000 Y40000 Y37000 X-33500Y-21500 Y-24500 Y-27500 X-36546 Y-24500 Y-21500 X-39592 Y-24566 Y-27500 T03 X-98287Y-52776 Y52776 X98287 Y-52776 M30 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Motor-57.apr ================================================ D10 ROUNDED 10.000 10.000 0.000 LINE 0.000 D11 ROUNDED 4.000 4.000 0.000 LINE 0.000 D12 ROUNDED 1.000 1.000 0.000 LINE 0.000 D13 ROUNDED 7.874 7.874 0.000 LINE 0.000 D14 ROUNDED 6.000 6.000 0.000 LINE 0.000 D15 ROUNDED 5.000 5.000 0.000 LINE 0.000 D24 RECTANGULAR 19.685 19.685 0.000 FLASH 270.000 D32 RECTANGULAR 65.000 60.000 0.000 FLASH 0.000 D33 RECTANGULAR 77.000 25.000 0.000 FLASH 0.000 D34 RECTANGULAR 89.000 211.000 0.000 FLASH 0.000 D35 RECTANGULAR 100.000 100.000 0.000 FLASH 0.000 D44 RECTANGULAR 25.685 25.685 0.000 FLASH 270.000 D49 ROUNDED 206.000 206.000 0.000 FLASH 0.000 D50 ROUNDED 20.000 20.000 0.000 LINE 0.000 D51 ROUNDED 80.000 80.000 0.000 LINE 0.000 D52 ROUNDED 40.000 40.000 0.000 LINE 0.000 D53 ROUNDED 30.000 30.000 0.000 LINE 0.000 D54 ROUNDED 200.000 200.000 0.000 FLASH 0.000 D55 ROUNDED 18.000 18.000 0.000 FLASH 0.000 D56 ROUNDED 23.622 23.622 0.000 FLASH 0.000 D57 ROUNDED 70.000 70.000 0.000 LINE 0.000 D58 ROUNDED 7.000 7.000 0.000 LINE 0.000 D59 ROUNDED 19.685 51.181 0.000 FLASH 0.000 D68 ROUNDED 19.685 51.181 0.000 FLASH 270.000 D69 ROUNDED 12.000 54.000 0.000 FLASH 0.000 D70 ROUNDED 12.000 54.000 0.000 FLASH 270.000 D71 ROUNDED 25.000 25.000 0.000 LINE 0.000 D72 ROUNDED 45.000 45.000 0.000 LINE 0.000 D73 ROUNDED 25.685 57.181 0.000 FLASH 0.000 D81 ROUNDED 25.685 57.181 0.000 FLASH 270.000 D82 ROUNDED 18.000 60.000 0.000 FLASH 0.000 D83 ROUNDED 18.000 60.000 0.000 FLASH 270.000 D84 ROUNDED 9.842 9.842 0.000 LINE 0.000 D85 ROUNDED 3.937 3.937 0.000 LINE 0.000 D86 ROUNDED 2.000 2.000 0.000 LINE 0.000 D87 ROUNDED 2.667 2.667 0.000 LINE 0.000 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Gerber/Status Report.Txt ================================================ Output: NC Drill Files Type : NC Drill From : Project [Motor-57.PrjPCB] Generated File[Motor-57.TXT] Generated File[Motor-57.LDP] Generated File[Motor-57.DRR] Files Generated : 3 Documents Printed : 0 Finished Output Generation At 19:39:57 On ܶ 01-18 ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Motor-57.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=0 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=1 AppendSheetNumberToLocalNets=0 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=0 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 CrossRefSheetStyle=1 CrossRefLocationStyle=1 CrossRefPorts=3 CrossRefCrossSheets=1 CrossRefSheetEntries=0 CrossRefFollowFromMainSettings=1 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Drive.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=OTRBEYFQ [Document2] DocumentPath=MCU.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=MMRIIHEF [Document3] DocumentPath=Port.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=2 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=ZMLSMFEG [Document4] DocumentPath=Power.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=3 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RMXANKZL [Document5] DocumentPath=Interface.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=4 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=DXHCOWHD [Document6] DocumentPath=Motor-57.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=RPGXAMXA [GeneratedDocument1] DocumentPath=Project Outputs for Motor-57\Design Rule Check - Motor-57.html DItemRevisionGUID= [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Mask OutputName1=Solder/Paste Mask Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Drill OutputName2=Drill Drawing/Guides OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=CompositeDrill OutputName3=Composite Drill Drawing OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=IPC2581 OutputName4=IPC-2581 Files OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Gerber X2 OutputName5=Gerber X2 Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Board Stack Report OutputName7=Report Board Stack OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Plane OutputName8=Power-Plane Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=ODB OutputName9=ODB++ Files OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 OutputType10=NC Drill OutputName10=NC Drill Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 Configuration10_Name1=ForceUpdateSettings Configuration10_Item1=False Configuration10_Name2=OutputConfigurationParameter1 Configuration10_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\Ctrl-Step-Drive\1.Hardware\Unibody\Motor-42\Motor-42.PcbDoc OutputType11=Test Points OutputName11=Test Point Report OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16777218~1,16777219~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\Ctrl-Step-Drive\1.Hardware\Unibody\Motor-42\Motor-42.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=BOM_ReportCompare OutputName7=BOM Compare OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Export Comments OutputName8=Export Comments OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/MotorDriver-57-unused/Motor-57.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Drive.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Interface.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=MCU.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Port.SchDoc|SheetNumber=1 Record=NoMainPathDocument|SourceDocument=Drive.SchDoc|FileName=Power.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/REF/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/REF/REF-Base/.gitignore ================================================ History Project Logs for* Project Outputs for* __Previews ================================================ FILE: 1.Hardware/REF/REF-Base/REF-Base.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=2 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=0 AppendSheetNumberToLocalNets=1 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=1 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=QVBBULDQ [Document2] DocumentPath=REF-Base.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=SPYPGENJ [SearchPath1] Path=E:\OneDrive\[软件配置备份]\Altium Designer\1.元件库\*.* IncludeSubFolders=1 [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\REF-STM32F4-dev\1.Hardware\REF\REF-Base\REF-Base.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908300~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\REF-STM32F4-dev\1.Hardware\REF\REF-Base\REF-Base.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Export Comments OutputName7=Export Comments OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=BOM_ReportCompare OutputName8=BOM Compare OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/REF/REF-Base/REF-Base.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/REF/REF-Unit/REF-Unit.PrjPCB ================================================ [Design] Version=1.0 HierarchyMode=2 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=0 AppendSheetNumberToLocalNets=1 NetlistSinglePinNets=0 DefaultConfiguration=Default Configuration UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=1 AutoSheetNumbering=0 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=1 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=1 OutputPath= LogFolderPath= ManagedProjectGUID=33A43DB9-A699-40BA-9058-E8C83D527678 VaultGUID=53F48F8D-0842-4B75-8A0D-548028E961BE ReleaseVaultName=稚晖君的DigiPCBA创作空间 ItemGUID=33A43DB9-A699-40BA-9058-E8C83D527678 IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=Main.SchDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=0 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=QVBBULDQ [Document2] DocumentPath=REF-Unit.PcbDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=SPYPGENJ [SearchPath1] Path=E:\OneDrive\[软件配置备份]\Altium Designer\1.元件库\*.* IncludeSubFolders=1 [Configuration1] Name=Default Configuration ParameterCount=0 ConstraintFileCount=0 ReleaseItemId= Variant=[No Variations] OutputJobsCount=0 ContentTypeGUID= ConfigurationType= [Generic_SmartPDF] AutoOpenFile=-1 AutoOpenOutJob=-1 [Generic_SmartPDFSettings] ProjectMode=0 ZoomPrecision=50 AddNetsInformation=-1 AddNetPins=-1 AddNetNetLabels=-1 AddNetPorts=-1 ShowComponentParameters=-1 GlobalBookmarks=0 ExportBOM=-1 TemplateFilename=Board Stack Report.XLT TemplateStoreRelative=-1 PCB_PrintColor=1 SCH_PrintColor=0 PrintQuality=-3 SCH_ShowNoErc=-1 SCH_ShowParameter=-1 SCH_ShowProbes=-1 SCH_ShowBlankets=-1 SCH_NoERCSymbolsToShow="Thin Cross","Thick Cross","Small Cross",Checkbox,Triangle SCH_ShowNote=-1 SCH_ShowNoteCollapsed=-1 SCH_ExpandLogicalToPhysical=-1 SCH_VariantName= SCH_ExpandComponentDesignators=-1 SCH_ExpandNetlabels=0 SCH_ExpandPorts=0 SCH_ExpandSheetNumber=0 SCH_ExpandDocumentNumber=0 SCH_HasExpandLogicalToPhysicalSheets=0 SaveSettingsToOutJob=0 [Generic_EDE] OutputDir= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=PCADNetlist OutputName1=PCAD Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CadnetixNetlist OutputName2=Cadnetix Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=CalayNetlist OutputName3=Calay Netlist OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EDIF OutputName4=EDIF for PCB OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=EESofNetlist OutputName5=EESof Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=IntergraphNetlist OutputName6=Intergraph Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MentorBoardStationNetlist OutputName7=Mentor BoardStation Netlist OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MultiWire OutputName8=MultiWire OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=OrCadPCB2Netlist OutputName9=Orcad/PCB2 Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=PADSNetlist OutputName10=PADS ASCII Netlist OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Pcad OutputName11=Pcad for PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1=E:\厩砃舱\ゅЩ\My Protel\STM32F103C8\STM32F103C8_PCB.PcbDoc OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=2|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=A4 Configuration1_Name1=OutputConfigurationParameter1 Configuration1_Item1=PrintArea=SpecificArea|PrintAreaLowerLeftCornerX=27900000|PrintAreaLowerLeftCornerY=21300000|PrintAreaUpperRightCornerX=44800000|PrintAreaUpperRightCornerY=37100000|Record=PcbPrintView Configuration1_Name2=OutputConfigurationParameter2 Configuration1_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|Index=0|Mirror=True|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=True|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration1_Name3=OutputConfigurationParameter3 Configuration1_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration1_Name4=OutputConfigurationParameter4 Configuration1_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType5=Report Print OutputName5=Report Prints OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType6=Schematic Print OutputName6=Schematic Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=SimView Print OutputName7=SimView Prints OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=PCBLIB Print OutputName8=PCBLIB Prints OutputDocumentPath8=C:\Users\Pengzhihui\Desktop\onWorking\NanoPi\PcbLib\mLib.PcbLib OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=12.85|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration8_Name1=OutputConfigurationParameter1 Configuration8_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration8_Name2=OutputConfigurationParameter2 Configuration8_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration8_Name3=OutputConfigurationParameter3 Configuration8_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name4=OutputConfigurationParameter4 Configuration8_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration8_Name5=OutputConfigurationParameter5 Configuration8_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer OutputType9=PCBDrawing OutputName9=Draftsman OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=PDF3D OutputName10=PDF3D OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=PDF3D MBA OutputName11=PDF3D MBA OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Plane OutputName1=Power-Plane Prints OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Board Stack Report OutputName2=Report Board Stack OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=ODB OutputName3=ODB++ Files OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Test Points OutputName4=Test Point Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=NC Drill OutputName5=NC Drill Files OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 Configuration5_Name1=ForceUpdateSettings Configuration5_Item1=False Configuration5_Name2=OutputConfigurationParameter1 Configuration5_Item2=BoardEdgeRoutToolDia=2000000|GenerateBoardEdgeRout=False|GenerateDrilledSlotsG85=False|GenerateEIADrillFile=False|GenerateSeparatePlatedNonPlatedFiles=False|NumberOfDecimals=5|NumberOfUnits=2|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Record=DrillView|Units=Imperial|ZeroesMode=SuppressLeadingZeroes|DocumentPath=I:\onWorking\_Private\REF-STM32F4\1.Hardware\REF\REF-Unit\REF-Unit.PcbDoc OutputType6=Final OutputName6=Final Artwork Prints OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType7=Drill OutputName7=Drill Drawing/Guides OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType9=CompositeDrill OutputName9=Composite Drill Drawing OutputDocumentPath9= OutputVariantName9=[No Variations] OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType10=Gerber X2 OutputName10=Gerber X2 Files OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=IPC2581 OutputName11=IPC-2581 Files OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=Gerber OutputName12=Gerber Files OutputDocumentPath12= OutputVariantName12=[No Variations] OutputDefault12=0 Configuration12_Name1=ForceUpdateSettings Configuration12_Item1=False Configuration12_Name2=OutputConfigurationParameter1 Configuration12_Item2=AddToAllLayerClasses.Set= |AddToAllPlots.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|CentrePlots=False|DrillDrawingSymbol=GraphicsSymbol|DrillDrawingSymbolSize=200000|EmbeddedApertures=True|FilmBorderSize=10000000|FilmXSize=200000000|FilmYSize=160000000|FlashAllFills=False|FlashPadShapes=True|G54OnApertureChange=False|GenerateDRCRulesFile=True|GenerateDRCRulesFile=True|GenerateReliefShapes=True|GerberUnit=Imperial|GerberUnit=Imperial|IncludeUnconnectedMidLayerPads=False|LayerClassesMirror.Set= |LayerClassesPlot.Set= |LeadingAndTrailingZeroesMode=SuppressLeadingZeroes|MaxApertureSize=2500000|MinusApertureTolerance=40|MinusApertureTolerance=40|Mirror.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray|MirrorDrillDrawingPlots=False|MirrorDrillGuidePlots=False|NoRegularPolygons=False|NumberOfDecimals=5|NumberOfDecimals=5|OptimizeChangeLocationCommands=True|OptimizeChangeLocationCommands=True|OriginPosition=Relative|Panelize=False|Plot.Set=SerializeLayerHash.Version~2,ClassName~TPlotLayerStateArray,16973830~1,16973832~1,16973834~1,16777217~1,16777219~1,16777218~1,16842751~1,16973835~1,16973833~1,16973831~1,16908289~1,16908298~1,16908301~1,16908302~1,16908303~1,16973837~1,16973848~1,16973849~1|PlotPositivePlaneLayers=False|PlotUsedDrillDrawingLayerPairs=True|PlotUsedDrillGuideLayerPairs=True|PlusApertureTolerance=40|PlusApertureTolerance=40|Record=GerberView|SoftwareArcs=False|Sorted=False|Sorted=False|DocumentPath=I:\onWorking\_Private\REF-STM32F4\1.Hardware\REF\REF-Unit\REF-Unit.PcbDoc [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=ReportHierarchy OutputName3=Report Project Hierarchy OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 OutputType4=Script OutputName4=Script Output OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=SimpleBOM OutputName5=Simple BOM OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SinglePinNetReporter OutputName6=Report Single Pin Nets OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Export Comments OutputName7=Export Comments OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=BOM_ReportCompare OutputName8=BOM Compare OutputDocumentPath8= OutputVariantName8=[No Variations] OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Design Rules Check OutputName1=Design Rules Check OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType2=Differences Report OutputName2=Differences Report OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType3=Electrical Rules Check OutputName3=Electrical Rules Check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 OutputType4=Footprint Comparison Report OutputName4=Footprint Comparison Report OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=Configuration compliance OutputName5=Environment configuration compliance check OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=Component states check OutputName6=Server's components states check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=BOM_Violations OutputName7=BOM Checks Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=ExportSTEP OutputName1=Export STEP OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 OutputType2=ExportIDF OutputName2=Export IDF OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=AutoCAD dwg/dxf PCB OutputName3=AutoCAD dwg/dxf File PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=AutoCAD dwg/dxf Schematic OutputName4=AutoCAD dwg/dxf File Schematic OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=ExportPARASOLID OutputName5=Export PARASOLID OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=Save As/Export PCB OutputName7=Save As/Export PCB OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Save As/Export Schematic OutputName8=Save As/Export Schematic OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Specctra Design PCB OutputName9=Specctra Design PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=MBAExportPARASOLID OutputName10=Export PARASOLID OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=MBAExportSTEP OutputName11=Export STEP OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=0 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=0 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=1 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=3 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=-1|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-4|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4 Configuration_Name1=OutputConfigurationParameter1 Configuration_Item1=DesignatorDisplayMode=Physical|PrintArea=DesignExtent|PrintAreaLowerLeftCornerX=0|PrintAreaLowerLeftCornerY=0|PrintAreaUpperRightCornerX=0|PrintAreaUpperRightCornerY=0|Record=PcbPrintView Configuration_Name2=OutputConfigurationParameter2 Configuration_Item2=IncludeBottomLayerComponents=True|IncludeMultiLayerComponents=True|IncludeTopLayerComponents=True|IncludeViewports=True|Index=0|Mirror=False|Name=Multilayer Composite Print|PadNumberFontSize=14|Record=PcbPrintOut|ShowHoles=False|ShowPadNets=False|ShowPadNumbers=False|SubstituteFonts=False Configuration_Name3=OutputConfigurationParameter3 Configuration_Item3=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name4=OutputConfigurationParameter4 Configuration_Item4=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=TopLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name5=OutputConfigurationParameter5 Configuration_Item5=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MidLayer1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name6=OutputConfigurationParameter6 Configuration_Item6=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name7=OutputConfigurationParameter7 Configuration_Item7=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=MultiLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name8=OutputConfigurationParameter8 Configuration_Item8=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=BottomOverlay|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name9=OutputConfigurationParameter9 Configuration_Item9=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=KeepOutLayer|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name10=OutputConfigurationParameter10 Configuration_Item10=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical1|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name11=OutputConfigurationParameter11 Configuration_Item11=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical13|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name12=OutputConfigurationParameter12 Configuration_Item12=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical14|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer Configuration_Name13=OutputConfigurationParameter13 Configuration_Item13=CArc=Full|CFill=Full|Comment=Full|Coordinate=Full|CPad=Full|CRegion=Full|CText=Full|CTrack=Full|CVia=Full|DDSymbolKind=0|DDSymbolSize=500000|DDSymbolSortKind=0|Designator=Full|Dimension=Full|DLayer1=TopLayer|DLayer2=BottomLayer|FArc=Full|FFill=Full|FPad=Full|FRegion=Full|FText=Full|FTrack=Full|FVia=Full|Layer=Mechanical15|Polygon=Full|PrintOutIndex=0|Record=PcbPrintLayer ================================================ FILE: 1.Hardware/REF/REF-Unit/REF-Unit.PrjPCBStructure ================================================ Record=TopLevelDocument|FileName=Main.SchDoc|SheetNumber=1 ================================================ FILE: 1.Hardware/REF/REF.PrjMbd ================================================ [Design] Version=1.0 HierarchyMode=0 ChannelRoomNamingStyle=0 ReleasesFolder= ChannelDesignatorFormatString=$Component_$RoomName ChannelRoomLevelSeperator=_ OpenOutputs=1 ArchiveProject=0 TimestampOutput=0 SeparateFolders=0 TemplateLocationPath= PinSwapBy_Netlabel=1 PinSwapBy_Pin=1 AllowPortNetNames=0 AllowSheetEntryNetNames=1 AppendSheetNumberToLocalNets=0 NetlistSinglePinNets=0 DefaultConfiguration=Default - All Constraints UserID=0xFFFFFFFF DefaultPcbProtel=1 DefaultPcbPcad=0 ReorderDocumentsOnCompile=1 NameNetsHierarchically=0 PowerPortNamesTakePriority=0 AutoSheetNumbering=1 AutoCrossReferences=0 PushECOToAnnotationFile=1 DItemRevisionGUID= ReportSuppressedErrorsInMessages=0 FSMCodingStyle=eFMSDropDownList_OneProcess FSMEncodingStyle=eFMSDropDownList_OneHot IsProjectConflictPreventionWarningsEnabled=0 OutputPath= LogFolderPath= ManagedProjectGUID= IncludeDesignInRelease=0 [Preferences] PrefsVaultGUID= PrefsRevisionGUID= [Document1] DocumentPath=REF.MbsDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=5799f555-f5bd-4c42-bea4-605194077990 [Document2] DocumentPath=REF.MbaDoc AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId=c6814e28-6654-4337-a2e8-5ec303354078 [Document3] DocumentPath=REF-Unit\REF-Unit.PrjPCB AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId= [Document4] DocumentPath=REF-Base\REF-Base.PrjPCB AnnotationEnabled=1 AnnotateStartValue=1 AnnotationIndexControlEnabled=0 AnnotateSuffix= AnnotateScope=All AnnotateOrder=-1 DoLibraryUpdate=1 DoDatabaseUpdate=1 ClassGenCCAutoEnabled=1 ClassGenCCAutoRoomEnabled=1 ClassGenNCAutoScope=None DItemRevisionGUID= GenerateClassCluster=0 DocumentUniqueId= [OutputGroup1] Name=Netlist Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=CadnetixNetlist OutputName1=Cadnetix Netlist OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=CalayNetlist OutputName2=Calay Netlist OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=EDIF OutputName3=EDIF for PCB OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=EESofNetlist OutputName4=EESof Netlist OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 OutputType5=IntergraphNetlist OutputName5=Intergraph Netlist OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 OutputType6=MentorBoardStationNetlist OutputName6=Mentor BoardStation Netlist OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=MultiWire OutputName7=MultiWire OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=OrCadPCB2Netlist OutputName8=Orcad/PCB2 Netlist OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=PADSNetlist OutputName9=PADS ASCII Netlist OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=Pcad OutputName10=Pcad for PCB OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=PCADNetlist OutputName11=PCAD Netlist OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 OutputType12=PCADnltNetlist OutputName12=PCADnlt Netlist OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 OutputType13=Protel2Netlist OutputName13=Protel2 Netlist OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 OutputType14=ProtelNetlist OutputName14=Protel OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 OutputType15=RacalNetlist OutputName15=Racal Netlist OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 OutputType16=RINFNetlist OutputName16=RINF Netlist OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 OutputType17=SciCardsNetlist OutputName17=SciCards Netlist OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 OutputType18=TangoNetlist OutputName18=Tango Netlist OutputDocumentPath18= OutputVariantName18= OutputDefault18=0 OutputType19=TelesisNetlist OutputName19=Telesis Netlist OutputDocumentPath19= OutputVariantName19= OutputDefault19=0 OutputType20=WireListNetlist OutputName20=WireList Netlist OutputDocumentPath20= OutputVariantName20= OutputDefault20=0 [OutputGroup2] Name=Simulator Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 [OutputGroup3] Name=Documentation Outputs Description= TargetPrinter=Virtual Printer PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Composite OutputName1=Composite Drawing OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType2=PCB 3D Print OutputName2=PCB 3D Print OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=PCB 3D Video OutputName3=PCB 3D Video OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=PCB Print OutputName4=PCB Prints OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=PCBDrawing OutputName5=Draftsman OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=PCBLIB Print OutputName6=PCBLIB Prints OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=PDF3D OutputName7=PDF3D OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=PDF3D MBA OutputName8=PDF3D MBA OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Report Print OutputName9=Report Prints OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Schematic Print OutputName10=Schematic Prints OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=SimView Print OutputName11=SimView Prints OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup4] Name=Assembly Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Assembly OutputName1=Assembly Drawings OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType2=Pick Place OutputName2=Generates pick and place files OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Test Points For Assembly OutputName3=Test Point Report OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 [OutputGroup5] Name=Fabrication Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Board Stack Report OutputName1=Report Board Stack OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType2=CompositeDrill OutputName2=Composite Drill Drawing OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Drill OutputName3=Drill Drawing/Guides OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Final OutputName4=Final Artwork Prints OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Gerber OutputName5=Gerber Files OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=Gerber X2 OutputName6=Gerber X2 Files OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 OutputType7=IPC2581 OutputName7=IPC-2581 Files OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=Mask OutputName8=Solder/Paste Mask Prints OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=NC Drill OutputName9=NC Drill Files OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=ODB OutputName10=ODB++ Files OutputDocumentPath10= OutputVariantName10=[No Variations] OutputDefault10=0 OutputType11=Plane OutputName11=Power-Plane Prints OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Test Points OutputName12=Test Point Report OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 [OutputGroup6] Name=Report Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_PartType OutputName1=Bill of Materials OutputDocumentPath1= OutputVariantName1=[No Variations] OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType2=ComponentCrossReference OutputName2=Component Cross Reference Report OutputDocumentPath2= OutputVariantName2=[No Variations] OutputDefault2=0 OutputType3=Export Comments OutputName3=Export Comments OutputDocumentPath3= OutputVariantName3=[No Variations] OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=ReportHierarchy OutputName4=Report Project Hierarchy OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=Script OutputName5=Script Output OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=SimpleBOM OutputName6=Simple BOM OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=SinglePinNetReporter OutputName7=Report Single Pin Nets OutputDocumentPath7= OutputVariantName7=[No Variations] OutputDefault7=0 [OutputGroup7] Name=Other Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Text Print OutputName1=Text Print OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 PageOptions1=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType2=Text Print OutputName2=Text Print OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 PageOptions2=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType3=Text Print OutputName3=Text Print OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 PageOptions3=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType4=Text Print OutputName4=Text Print OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Text Print OutputName5=Text Print OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Text Print OutputName6=Text Print OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Text Print OutputName7=Text Print OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 PageOptions7=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType8=Text Print OutputName8=Text Print OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 PageOptions8=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType9=Text Print OutputName9=Text Print OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 PageOptions9=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType10=Text Print OutputName10=Text Print OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 PageOptions10=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType11=Text Print OutputName11=Text Print OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 PageOptions11=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType12=Text Print OutputName12=Text Print OutputDocumentPath12= OutputVariantName12= OutputDefault12=0 PageOptions12=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType13=Text Print OutputName13=Text Print OutputDocumentPath13= OutputVariantName13= OutputDefault13=0 PageOptions13=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType14=Text Print OutputName14=Text Print OutputDocumentPath14= OutputVariantName14= OutputDefault14=0 PageOptions14=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType15=Text Print OutputName15=Text Print OutputDocumentPath15= OutputVariantName15= OutputDefault15=0 PageOptions15=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType16=Text Print OutputName16=Text Print OutputDocumentPath16= OutputVariantName16= OutputDefault16=0 PageOptions16=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType17=Text Print OutputName17=Text Print OutputDocumentPath17= OutputVariantName17= OutputDefault17=0 PageOptions17=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 [OutputGroup8] Name=Validation Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=BOM_Violations OutputName1=BOM Checks Report OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=Component states check OutputName2=Server's components states check OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=Configuration compliance OutputName3=Environment configuration compliance check OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=Design Rules Check OutputName4=Design Rules Check OutputDocumentPath4= OutputVariantName4= OutputDefault4=0 PageOptions4=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType5=Differences Report OutputName5=Differences Report OutputDocumentPath5= OutputVariantName5= OutputDefault5=0 PageOptions5=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType6=Electrical Rules Check OutputName6=Electrical Rules Check OutputDocumentPath6= OutputVariantName6= OutputDefault6=0 PageOptions6=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 OutputType7=Footprint Comparison Report OutputName7=Footprint Comparison Report OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 [OutputGroup9] Name=Export Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=AutoCAD dwg/dxf PCB OutputName1=AutoCAD dwg/dxf File PCB OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 OutputType2=AutoCAD dwg/dxf Schematic OutputName2=AutoCAD dwg/dxf File Schematic OutputDocumentPath2= OutputVariantName2= OutputDefault2=0 OutputType3=ExportIDF OutputName3=Export IDF OutputDocumentPath3= OutputVariantName3= OutputDefault3=0 OutputType4=ExportPARASOLID OutputName4=Export PARASOLID OutputDocumentPath4= OutputVariantName4=[No Variations] OutputDefault4=0 OutputType5=ExportSTEP OutputName5=Export STEP OutputDocumentPath5= OutputVariantName5=[No Variations] OutputDefault5=0 OutputType6=ExportVRML OutputName6=Export VRML OutputDocumentPath6= OutputVariantName6=[No Variations] OutputDefault6=0 OutputType7=MBAExportPARASOLID OutputName7=Export PARASOLID OutputDocumentPath7= OutputVariantName7= OutputDefault7=0 OutputType8=MBAExportSTEP OutputName8=Export STEP OutputDocumentPath8= OutputVariantName8= OutputDefault8=0 OutputType9=Save As/Export PCB OutputName9=Save As/Export PCB OutputDocumentPath9= OutputVariantName9= OutputDefault9=0 OutputType10=Save As/Export Schematic OutputName10=Save As/Export Schematic OutputDocumentPath10= OutputVariantName10= OutputDefault10=0 OutputType11=Specctra Design PCB OutputName11=Specctra Design PCB OutputDocumentPath11= OutputVariantName11= OutputDefault11=0 [OutputGroup10] Name=PostProcess Outputs Description= TargetPrinter=Microsoft Print to PDF PrinterOptions=Record=PrinterOptions|Copies=1|Duplex=1|TrueTypeOptions=3|Collate=1|PrintJobKind=1|PrintWhat=1 OutputType1=Copy Files OutputName1=Copy Files OutputDocumentPath1= OutputVariantName1= OutputDefault1=0 [Modification Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 Type69=1 Type70=1 Type71=1 Type72=1 Type73=1 Type74=1 Type75=1 Type76=1 Type77=1 Type78=1 Type79=1 Type80=1 Type81=1 Type82=1 Type83=1 Type84=1 Type85=1 Type86=1 Type87=1 Type88=1 Type89=1 Type90=1 Type91=1 Type92=1 Type93=1 Type94=1 Type95=1 Type96=1 Type97=1 Type98=1 Type99=1 Type100=1 Type101=1 Type102=1 Type103=1 Type104=1 Type105=1 Type106=1 Type107=1 Type108=1 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=1 Type115=1 Type116=1 Type117=1 Type118=1 Type119=1 [Difference Levels] Type1=1 Type2=1 Type3=1 Type4=1 Type5=1 Type6=1 Type7=1 Type8=1 Type9=1 Type10=1 Type11=1 Type12=1 Type13=1 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=1 Type21=1 Type22=1 Type23=1 Type24=1 Type25=1 Type26=1 Type27=1 Type28=1 Type29=1 Type30=1 Type31=1 Type32=1 Type33=1 Type34=1 Type35=1 Type36=1 Type37=1 Type38=1 Type39=1 Type40=1 Type41=1 Type42=1 Type43=1 Type44=1 Type45=1 Type46=1 Type47=1 Type48=1 Type49=1 Type50=1 Type51=1 Type52=1 Type53=1 Type54=1 Type55=1 Type56=1 Type57=1 Type58=1 Type59=1 Type60=1 Type61=1 Type62=1 Type63=1 Type64=1 Type65=1 Type66=1 Type67=1 Type68=1 [Electrical Rules Check] Type1=1 Type2=1 Type3=2 Type4=1 Type5=2 Type6=2 Type7=0 Type8=1 Type9=1 Type10=1 Type11=2 Type12=0 Type13=0 Type14=1 Type15=1 Type16=1 Type17=1 Type18=1 Type19=1 Type20=0 Type21=0 Type22=0 Type23=0 Type24=1 Type25=2 Type26=0 Type27=2 Type28=1 Type29=1 Type30=1 Type31=1 Type32=2 Type33=0 Type34=2 Type35=1 Type36=2 Type37=1 Type38=2 Type39=2 Type40=2 Type41=0 Type42=2 Type43=1 Type44=0 Type45=0 Type46=0 Type47=0 Type48=0 Type49=0 Type50=2 Type51=0 Type52=0 Type53=1 Type54=1 Type55=1 Type56=2 Type57=1 Type58=1 Type59=2 Type60=0 Type61=0 Type62=0 Type63=0 Type64=0 Type65=2 Type66=3 Type67=2 Type68=2 Type69=0 Type70=2 Type71=2 Type72=2 Type73=2 Type74=1 Type75=2 Type76=1 Type77=1 Type78=1 Type79=1 Type80=2 Type81=3 Type82=3 Type83=3 Type84=3 Type85=3 Type86=2 Type87=2 Type88=2 Type89=1 Type90=1 Type91=3 Type92=3 Type93=2 Type94=2 Type95=2 Type96=2 Type97=2 Type98=0 Type99=1 Type100=2 Type101=0 Type102=2 Type103=2 Type104=1 Type105=2 Type106=2 Type107=2 Type108=2 Type109=1 Type110=1 Type111=1 Type112=1 Type113=1 Type114=2 Type115=2 Type116=2 Type117=3 Type118=3 Type119=3 MultiChannelAlternate=2 AlternateItemFail=3 Type122=2 Type123=1 Type124=1 Type125=1 [ERC Connection Matrix] L1=NNNNNNNNNNNWNNNWW L2=NNWNNNNWWWNWNWNWN L3=NWEENEEEENEWNEEWN L4=NNENNNWEENNWNENWN L5=NNNNNNNNNNNNNNNNN L6=NNENNNNEENNWNENWN L7=NNEWNNWEENNWNENWN L8=NWEENEENEEENNEENN L9=NWEENEEEENEWNEEWW L10=NWNNNNNENNEWNNEWN L11=NNENNNNEEENWNENWN L12=WWWWNWWNWWWNWWWNN L13=NNNNNNNNNNNWNNNWW L14=NWEENEEEENEWNEEWW L15=NNENNNNEEENWNENWW L16=WWWWNWWNWWWNWWWNW L17=WNNNNNNNWNNNWWWWN [Annotate] SortOrder=3 SortLocation=0 ReplaceSubparts=0 MatchParameter1=Comment MatchStrictly1=1 MatchParameter2=Library Reference MatchStrictly2=1 PhysicalNamingFormat=$Component_$RoomName GlobalIndexSortOrder=3 GlobalIndexSortLocation=0 [PrjClassGen] CompClassManualEnabled=0 CompClassManualRoomEnabled=0 NetClassAutoBusEnabled=1 NetClassAutoCompEnabled=0 NetClassAutoNamedHarnessEnabled=0 NetClassManualEnabled=1 NetClassSeparateForBusSections=0 [LibraryUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 FullReplace=1 UpdateDesignatorLock=1 UpdatePartIDLock=1 PreserveParameterLocations=1 PreserveParameterVisibility=1 DoGraphics=1 DoParameters=1 DoModels=1 AddParameters=0 RemoveParameters=0 AddModels=1 RemoveModels=1 UpdateCurrentModels=1 [DatabaseUpdateOptions] SelectedOnly=0 UpdateVariants=1 UpdateToLatestRevision=1 PartTypes=0 [Comparison Options] ComparisonOptions0=Kind=Net|MinPercent=75|MinMatch=3|ShowMatch=0|UseName=-1|InclAllRules=0 ComparisonOptions1=Kind=Net Class|MinPercent=75|MinMatch=3|ShowMatch=0|UseName=-1|InclAllRules=0 ComparisonOptions2=Kind=Component Class|MinPercent=75|MinMatch=3|ShowMatch=0|UseName=-1|InclAllRules=0 ComparisonOptions3=Kind=Rule|MinPercent=75|MinMatch=3|ShowMatch=0|UseName=-1|InclAllRules=0 ComparisonOptions4=Kind=Differential Pair|MinPercent=50|MinMatch=1|ShowMatch=0|UseName=0|InclAllRules=0 ComparisonOptions5=Kind=Structure Class|MinPercent=75|MinMatch=3|ShowMatch=0|UseName=-1|InclAllRules=0 [SmartPDF] PageOptions=Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=1|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=1|PaperKind=A4|PaperIndex=9 ================================================ FILE: 1.Hardware/REF/REF.PrjMbdStructure ================================================ Record=DiagramHierarchy|SourceDocument=REF.MbsDoc|Kind=Multi-board Schematic Module|Designator=2|Source=REF-Base\REF-Base.PrjPCB Record=SubProject|SourceDocument=REF.MbsDoc|ProjectPath=REF-Base\REF-Base.PrjPCB Record=DiagramHierarchy|SourceDocument=REF.MbsDoc|Kind=Multi-board Schematic Module|Designator=1|Source=REF-Unit\REF-Unit.PrjPCB Record=SubProject|SourceDocument=REF.MbsDoc|ProjectPath=REF-Unit\REF-Unit.PrjPCB ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.cproject ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.gitignore ================================================ cmake-build-* ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/.gitignore ================================================ # Default ignored files /shelf/ /workspace.xml # Datasource local storage ignored files /dataSources/ /dataSources.local.xml # Editor-based HTTP Client requests /httpRequests/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/REF-STM32F4.iml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/codeStyles/codeStyleConfig.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/deployment.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/encodings.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/inspectionProfiles/Project_Default.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/libraries/ROS.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/libraries/workspace.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/misc.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/modules.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/ros.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/serialmonitor_settings.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.idea/vcs.xml ================================================ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.mxproject ================================================ [PreviousLibFiles] LibFiles=Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_adc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_can.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h;Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/Source/timers.c;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c;Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c;Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c;Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_adc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_can.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h;Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h;Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h;Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f405xx.h;Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h;Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h;Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h; [PreviousUsedSW4STM32Files] SourceFiles=..\Core\Src\main.c;..\Core\Src\gpio.c;..\Core\Src\freertos.c;..\Core\Src\adc.c;..\Core\Src\can.c;..\Core\Src\dma.c;..\Core\Src\i2c.c;..\Core\Src\spi.c;..\Core\Src\tim.c;..\Core\Src\usart.c;..\USB_DEVICE\App\usb_device.c;..\USB_DEVICE\Target\usbd_conf.c;..\USB_DEVICE\App\usbd_desc.c;..\USB_DEVICE\App\usbd_cdc_if.c;..\Core\Src\stm32f4xx_it.c;..\Core\Src\stm32f4xx_hal_msp.c;..\Core\Src\stm32f4xx_hal_timebase_tim.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;..\Middlewares/Third_Party/FreeRTOS/Source/croutine.c;..\Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;..\Middlewares/Third_Party/FreeRTOS/Source/list.c;..\Middlewares/Third_Party/FreeRTOS/Source/queue.c;..\Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;..\Middlewares/Third_Party/FreeRTOS/Source/tasks.c;..\Middlewares/Third_Party/FreeRTOS/Source/timers.c;..\Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c;..\Core\Src/system_stm32f4xx.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;..\Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;..\Middlewares/Third_Party/FreeRTOS/Source/croutine.c;..\Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;..\Middlewares/Third_Party/FreeRTOS/Source/list.c;..\Middlewares/Third_Party/FreeRTOS/Source/queue.c;..\Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;..\Middlewares/Third_Party/FreeRTOS/Source/tasks.c;..\Middlewares/Third_Party/FreeRTOS/Source/timers.c;..\Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c;..\Core\Src/system_stm32f4xx.c;..\Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c;;..\Middlewares/Third_Party/FreeRTOS/Source/croutine.c;..\Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;..\Middlewares/Third_Party/FreeRTOS/Source/list.c;..\Middlewares/Third_Party/FreeRTOS/Source/queue.c;..\Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;..\Middlewares/Third_Party/FreeRTOS/Source/tasks.c;..\Middlewares/Third_Party/FreeRTOS/Source/timers.c;..\Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;..\Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c;..\Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c; HeaderPath=..\Drivers\STM32F4xx_HAL_Driver\Inc;..\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy;..\Middlewares\Third_Party\FreeRTOS\Source\include;..\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2;..\Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F;..\Middlewares\ST\STM32_USB_Device_Library\Core\Inc;..\Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Inc;..\Drivers\CMSIS\Device\ST\STM32F4xx\Include;..\Drivers\CMSIS\Include;..\Core\Inc;..\USB_DEVICE\App;..\USB_DEVICE\Target; CDefines=USE_HAL_DRIVER;STM32F405xx;USE_HAL_DRIVER;USE_HAL_DRIVER; [PreviousGenFiles] AdvancedFolderStructure=true HeaderFileListSize=16 HeaderFiles#0=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/gpio.h HeaderFiles#1=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/FreeRTOSConfig.h HeaderFiles#2=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/adc.h HeaderFiles#3=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/can.h HeaderFiles#4=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/dma.h HeaderFiles#5=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/i2c.h HeaderFiles#6=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/spi.h HeaderFiles#7=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/tim.h HeaderFiles#8=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/usart.h HeaderFiles#9=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usb_device.h HeaderFiles#10=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target/usbd_conf.h HeaderFiles#11=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_desc.h HeaderFiles#12=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_cdc_if.h HeaderFiles#13=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/stm32f4xx_it.h HeaderFiles#14=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/stm32f4xx_hal_conf.h HeaderFiles#15=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc/main.h HeaderFolderListSize=3 HeaderPath#0=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Inc HeaderPath#1=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App HeaderPath#2=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target HeaderFiles=; SourceFileListSize=17 SourceFiles#0=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/gpio.c SourceFiles#1=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/freertos.c SourceFiles#2=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/adc.c SourceFiles#3=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/can.c SourceFiles#4=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/dma.c SourceFiles#5=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/i2c.c SourceFiles#6=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/spi.c SourceFiles#7=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/tim.c SourceFiles#8=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/usart.c SourceFiles#9=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usb_device.c SourceFiles#10=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target/usbd_conf.c SourceFiles#11=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_desc.c SourceFiles#12=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_cdc_if.c SourceFiles#13=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_it.c SourceFiles#14=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_hal_msp.c SourceFiles#15=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_hal_timebase_tim.c SourceFiles#16=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src/main.c SourceFolderListSize=3 SourcePath#0=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/Core/Src SourcePath#1=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/App SourcePath#2=I:/onWorking/_Private/Dummy-Robot-dev/2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target SourceFiles=; ================================================ FILE: 2.Firmware/Core-STM32F4-fw/.project ================================================ REF-STM32F4 org.eclipse.cdt.managedbuilder.core.genmakebuilder clean,full,incremental, org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder full,incremental, org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature fr.ac6.mcu.ide.core.MCUProjectNature FreeRTOS/croutine.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/croutine.c FreeRTOS/event_groups.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c FreeRTOS/list.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/list.c FreeRTOS/queue.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/queue.c FreeRTOS/stream_buffer.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c FreeRTOS/tasks.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/tasks.c FreeRTOS/timers.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/timers.c FreeRTOS/cmsis_os2.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c FreeRTOS/heap_4.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c FreeRTOS/port.c 1 PARENT-2-PROJECT_LOC/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c USB_Device_Library/usbd_core.c 1 PARENT-2-PROJECT_LOC/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c USB_Device_Library/usbd_ctlreq.c 1 PARENT-2-PROJECT_LOC/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c USB_Device_Library/usbd_ioreq.c 1 PARENT-2-PROJECT_LOC/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c USB_Device_Library/usbd_cdc.c 1 PARENT-2-PROJECT_LOC/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/include/fibre/cpp_utils.hpp ================================================ #ifndef __CPP_UTILS_HPP #define __CPP_UTILS_HPP /* ## Advanced C++ Topics This is an overview of some of the more obscure C++ techniques used in this project. This assumes you're already familiar with templates in C++. ### Template recursion [TODO] ### Almost perfect template forwarding This is adapted from https://akrzemi1.wordpress.com/2013/10/10/too-perfect-forwarding/ Suppose you have a inner class, with a couple of constructors: ``` class InnerClass { public: InnerClass(int arg1, int arg2); InnerClass(int arg1); InnerClass(); }; ``` Now you want to create a wrapper class. This wrapper class should provide the exact same constructors as `InnerClass`, so you use perfect forwarding: ``` class WrapperClass { public: template WrapperClass(Args&& ... args) : inner_object(std::forward(args)...) {} InnerClass inner_object; }; ``` Now you can almost use the wrapper class as expected, but only almost: ``` void make_wrappers(void) { WrapperClass wrapper1; // ok, maps to InnerClass() WrapperClass wrapper2(1); // ok, maps to InnerClass(int arg1) WrapperClass wrapper3(1,2); // ok, maps to InnerClass(int arg1, arg2) WrapperClass wrapper4 = wrapper1; // does not compile } ``` The last assignment fails. What _you_ obviously wanted, is to use the copy constructor of WrapperClass. However the compiler will use the perfect forwarding constructor of WrapperClass for this assignment. So after template expansion it would try to use the following constructor: ``` WrapperClass(InnerClass& arg) : inner_object(arg) {} ``` Clearly this is not what we wanted and in this case it will fail because the exists no constructor of the form `InnerClass(WrapperClass& arg)`. And thus we need to make the perfect forwarding a little less perfect, by telling it "only enable this constructor if the first argument of the argument list is not of type WrapperClass". The modified version thus looks like this: ``` class WrapperClass { public: template::template first_is_not())> WrapperClass(Args&& ... args) : inner_object(std::forward(args)...) {} InnerClass inner_object; }; ``` */ // Backport definitions from C++14 #if __cplusplus <= 201103L namespace std { template< class T > using underlying_type_t = typename underlying_type::type; // source: http://en.cppreference.com/w/cpp/types/enable_if template< bool B, class T = void > using enable_if_t = typename enable_if::type; } #endif // @brief Supports various queries on a list of types template class TypeChecker; template class TypeChecker { public: using DecayedT = typename std::decay::type; // @brief Returns false if type T is equal to U or inherits from U. Returns true otherwise. template constexpr static inline bool first_is_not() { return !std::is_same::value && !std::is_base_of::value; } // @brief Returns true if all types [T, Ts...] are either equal to U or inherit from U. template constexpr static inline bool all_are() { return std::is_base_of::value && TypeChecker::template all_are(); } }; template<> class TypeChecker<> { public: template constexpr static inline bool first_is_not() { return std::true_type::value; } template constexpr static inline bool all_are() { return std::true_type::value; } }; #include #define ENABLE_IF(...) \ typename = std::enable_if_t<__VA_ARGS__> #define ENABLE_IF_SAME(a, b, type) \ template typename std::enable_if_t::value, type> template M get_member_type(M T::*); #define GET_TYPE_OF(mem) decltype(get_member_type(mem)) //#include // @brief Statically asserts that T is derived from type BaseType #define EXPECT_TYPE(T, BaseType) static_assert(std::is_base_of::type>::value || std::is_convertible::type, BaseType>::value, "expected template argument of type " #BaseType) //#define EXPECT_TYPE(T, BaseType) static_assert(, "expected template argument of type " #BaseType) template class function_traits { public: template static TRet invoke(TObj &obj, TRet(TObj::*func_ptr)(TArgs...), std::tuple packed_args, TUnpackedArgs ... args) { return invoke(obj, func_ptr, packed_args, args..., std::get(packed_args)); } template static TRet invoke(TObj &obj, TRet(TObj::*func_ptr)(TArgs...), std::tuple packed_args, TArgs ... args) { return (obj.*func_ptr)(args...); } }; /* @brief Invoke a class member function with a variable number of arguments that are supplied as a tuple Example usage: class MyClass { public: int MyFunction(int a, int b) { return 0; } }; MyClass my_object; std::tuple my_args(3, 4); // arguments are supplied as a tuple int result = invoke_function_with_tuple(my_object, &MyClass::MyFunction, my_args); */ template TRet invoke_function_with_tuple(TObj &obj, TRet(TObj::*func_ptr)(TArgs...), std::tuple packed_args) { return function_traits::template invoke<0>(obj, func_ptr, packed_args); } #endif // __CPP_UTILS_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/include/fibre/crc.hpp ================================================ #ifndef __CRC_HPP #define __CRC_HPP #include #include // Calculates an arbitrary CRC for one byte. // Adapted from https://barrgroup.com/Embedded-Systems/How-To/CRC-Calculation-C-Code template static T calc_crc(T remainder, uint8_t value) { constexpr T BIT_WIDTH = (CHAR_BIT * sizeof(T)); constexpr T TOPBIT = ((T) 1 << (BIT_WIDTH - 1)); // Bring the next byte into the remainder. remainder ^= (value << (BIT_WIDTH - 8)); // Perform modulo-2 division, a bit at a time. for (uint8_t bit = 8; bit; --bit) { if (remainder & TOPBIT) { remainder = (remainder << 1) ^ POLYNOMIAL; } else { remainder = (remainder << 1); } } return remainder; } template static T calc_crc(T remainder, const uint8_t *buffer, size_t length) { while (length--) remainder = calc_crc(remainder, *(buffer++)); return remainder; } template static uint8_t calc_crc8(uint8_t remainder, uint8_t value) { return calc_crc(remainder, value); } template static uint16_t calc_crc16(uint16_t remainder, uint8_t value) { return calc_crc(remainder, value); } template static uint8_t calc_crc8(uint8_t remainder, const uint8_t *buffer, size_t length) { return calc_crc(remainder, buffer, length); } template static uint16_t calc_crc16(uint16_t remainder, const uint8_t *buffer, size_t length) { return calc_crc(remainder, buffer, length); } #endif /* __CRC_HPP */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/include/fibre/decoders.hpp ================================================ #ifndef __DECODERS_HPP #define __DECODERS_HPP #include "protocol.hpp" #include "crc.hpp" #include "cpp_utils.hpp" #include /* Base classes --------------------------------------------------------------*/ // @brief Base class for stream based decoders. // A stream based decoder is a decoder that processes arbitrary length data blocks. class StreamDecoder : public StreamSink { public: // @brief Returns 0 if no error ocurred, otherwise a non-zero error code. // Once process_bytes returned an error, subsequent calls to get_status must return the same error. // If the decoder is in an error state, the behavior of get_expected_bytes and process_bytes is undefined. virtual int get_status() = 0; // @brief Returns the minimum number of bytes that are still needed to complete this decoder. // If 0, the decoder is considered complete and any subsequent call to process_bytes must process // exactly 0 bytes. // process_bytes() must always process all provided bytes unless the decoder expects no more bytes // afterwards virtual size_t get_expected_bytes() = 0; }; // @brief Base class for a decoder that is fed in a block-wise fashion. // This base class is provided for convenience when implementing certain types of decoders. // A StreamDecoder can be obtained from a BlockDecoder by using StreamDecoder_from_BlockDecoder. template class BlockDecoder { public: typedef std::integral_constant block_size; virtual int get_status() = 0; virtual size_t get_expected_blocks() = 0; virtual int process_block(const uint8_t block[BLOCKSIZE]) = 0; private: }; // @brief Base class for a decoder that is fed in a byte-wise fashion // This base class is provided for convenience when implementing certain types of decoders. // A StreamDecoder can be obtained from a ByteDecoder by using StreamDecoder_from_ByteDecoder. class ByteDecoder { public: virtual int get_status() = 0; virtual size_t get_expected_bytes() = 0; virtual int process_byte(uint8_t byte) = 0; }; /* Converter classes ---------------------------------------------------------*/ // @brief Encapsulates a BlockDecoder to make it look like a StreamDecoder // @tparam T The encapsulated BlockDecoder type. // Must inherit from BlockDecoder. template::template all_are>()) > class StreamDecoder_from_BlockDecoder : public StreamDecoder { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > explicit StreamDecoder_from_BlockDecoder(Args &&... args) : block_decoder_(std::forward(args)...) { EXPECT_TYPE(T, BlockDecoder); } inline int get_status() final { return block_decoder_.get_status(); } inline size_t get_expected_bytes() final { size_t expected_bytes = block_decoder_.get_expected_blocks() * T::block_size::value; return expected_bytes - std::min(expected_bytes, buffer_pos_); } inline int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) final { while (!get_status() && get_expected_bytes() && length) { // use the incoming bytes to fill internal buffer to get a complete block size_t n_copy = std::min(length, T::block_size::value - buffer_pos_); memcpy(buffer_ + buffer_pos_, buffer, n_copy); buffer += n_copy; length -= n_copy; if (processed_bytes) (*processed_bytes) += n_copy; buffer_pos_ += n_copy; // if we have a full block, process it if (buffer_pos_ == T::block_size::value) { block_decoder_.process_block(buffer_); buffer_pos_ = 0; } } return get_status(); } size_t get_free_space() { return SIZE_MAX; } // TODO: deprecate private: T block_decoder_; size_t buffer_pos_ = 0; uint8_t buffer_[T::block_size::value]; }; // @brief Encapsulates a ByteDecoder to make it look like a BlockDecoder // @tparam T The encapsulated ByteDecoder type. // Must inherit from ByteDecoder. template::template all_are()) > class BlockDecoder_from_ByteDecoder : public BlockDecoder<1> { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > BlockDecoder_from_ByteDecoder(Args &&... args) : byte_decoder_(std::forward(args)...) { EXPECT_TYPE(T, ByteDecoder); } inline int get_status() final { return byte_decoder_.get_status(); } inline size_t get_expected_blocks() final { return byte_decoder_.get_expected_bytes(); } inline int process_block(const uint8_t block[1]) final { int status = byte_decoder_.process_byte(*block); return status; } private: T byte_decoder_; }; // @brief Encapsulates a ByteDecoder to make it look like a StreamDecoder // @tparam T The encapsulated ByteDecoder type. // Must inherit from ByteDecoder. template::template all_are()) > class StreamDecoder_from_ByteDecoder : public StreamDecoder { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > StreamDecoder_from_ByteDecoder(Args &&... args) : byte_decoder_(std::forward(args)...) { EXPECT_TYPE(T, ByteDecoder); } inline int get_status() final { return byte_decoder_.get_status(); } inline size_t get_expected_bytes() final { return byte_decoder_.get_expected_bytes(); } inline size_t get_free_space() { return SIZE_MAX; } inline int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) final { while (!byte_decoder_.get_status() && byte_decoder_.get_expected_bytes() && length) { length--; if (processed_bytes) (*processed_bytes)++; byte_decoder_.process_byte(*(buffer++)); } return byte_decoder_.get_status(); } private: T byte_decoder_; }; /* Decoder implementations ---------------------------------------------------*/ template class VarintByteDecoder : public ByteDecoder { public: static constexpr T BIT_WIDTH = (CHAR_BIT * sizeof(T)); VarintByteDecoder(T &state_variable) : state_variable_(state_variable) { } size_t get_expected_bytes() final { return done_ ? 0 : 1; } int get_status() final { return status_; } int process_byte(uint8_t input_byte) final { if (bit_pos_ == 0) { LOG_FIBRE("start decoding varint, with 0x%02x => %zx\n", input_byte, (uintptr_t) &state_variable_); state_variable_ = 0; } LOG_FIBRE("varint: decode %02x << %zu at %zx\n", input_byte, bit_pos_, &bit_pos_); // we assume bit_pos_ < BIT_WIDTH state_variable_ |= (static_cast(input_byte & 0x7f) << bit_pos_); if (((state_variable_ >> bit_pos_) & 0x7f) != static_cast(input_byte & 0x7f)) { LOG_FIBRE("varint overflow: tried to add %02x << %zu\n", input_byte, bit_pos_); return (status_ = -1); // overflow } bit_pos_ += 7; done_ = !(input_byte & 0x80); return (status_ = (done_ || bit_pos_ < BIT_WIDTH) ? 0 : -1); } private: T &state_variable_; // At all times where status_ != 0 the following statement holds: // (done_ || bit_pos_ < BIT_WIDTH) //size_t bit_pos_ = 0; // bit position size_t bit_pos_ = 0; // bit position int status_ = 0; bool done_ = false; int data[1024] = {0}; }; template using VarintStreamDecoder = StreamDecoder_from_ByteDecoder>; // This double nested type should work identically but makes it way harder for the compiler to optimize //template //using VarintBlockDecoder = BlockDecoder_from_ByteDecoder>; //template //using VarintStreamDecoder = StreamDecoder_from_BlockDecoder>; template inline VarintStreamDecoder make_varint_decoder(T &variable) { return VarintStreamDecoder(variable); } inline VarintStreamDecoder make_endpoint_id_decoder(ReceiverState &state) { return make_varint_decoder(state.endpoint_id); } inline VarintStreamDecoder make_length_decoder(ReceiverState &state) { return make_varint_decoder(state.length); } template::template all_are()) > class CRC8BlockDecoder : public BlockDecoder { public: CRC8BlockDecoder(TDecoder &&inner_decoder) : inner_decoder_(std::forward(inner_decoder)) { } int get_status() final { return status_; } size_t get_expected_blocks() final { return (inner_decoder_.get_expected_bytes() + CRC8_BLOCKSIZE - 2) / (CRC8_BLOCKSIZE - 1); } int process_block(const uint8_t input_block[4]) final { current_crc_ = calc_crc8(current_crc_, input_block, CRC8_BLOCKSIZE - 1); if (current_crc_ != input_block[CRC8_BLOCKSIZE - 1]) return status_ = -1; return status_ = inner_decoder_.process_bytes(input_block, CRC8_BLOCKSIZE - 1, nullptr); } private: TDecoder inner_decoder_; int status_ = 0; uint8_t current_crc_ = INIT; }; template using CRC8StreamDecoder = StreamDecoder_from_BlockDecoder>; template inline CRC8StreamDecoder make_crc8_decoder(TDecoder &&decoder) { return CRC8StreamDecoder(std::forward(decoder)); } // TODO: ENABLE_IF(TypeChecker::template all_are()) template class DecoderChain; template<> class DecoderChain<> : public StreamDecoder { public: size_t get_expected_bytes() { return 0; } int get_status() { return 0; } int process_bytes(const uint8_t *input, size_t length, size_t *processed_bytes) { return 0; } size_t get_free_space() { return SIZE_MAX; } // TODO: deprecate }; template class DecoderChain : public StreamDecoder { public: DecoderChain(TDecoder &&this_decoder, TDecoders &&... subsequent_decoders) : this_decoder_(std::forward(this_decoder)), subsequent_decoders_(std::forward(subsequent_decoders)...) { EXPECT_TYPE(TDecoder, StreamDecoder); } int get_status() final { // If this decoder or any of the subsequent decoders failed, return error code. int this_status = this_decoder_.get_status(); int subsequent_status = subsequent_decoders_.get_status(); if (this_status) return this_status; else if (subsequent_status) return subsequent_status; else return 0; } size_t get_expected_bytes() final { return this_decoder_.get_expected_bytes() + subsequent_decoders_.get_expected_bytes(); } int process_bytes(const uint8_t *input, size_t length, size_t *processed_bytes) final { if (this_decoder_.get_expected_bytes()) { LOG_FIBRE("decoder chain: process %zu bytes in segment %s\n", length, typeid(TDecoder).name()); size_t chunk = 0; int status = this_decoder_.process_bytes(input, length, &chunk); input += chunk; length -= chunk; if (processed_bytes) (*processed_bytes) += chunk; if (status) return status; if (!length) return 0; } return subsequent_decoders_.process_bytes(input, length, processed_bytes); } size_t get_free_space() { return SIZE_MAX; } // TODO: deprecate private: TDecoder this_decoder_; DecoderChain subsequent_decoders_; }; template inline DecoderChain make_decoder_chain(TDecoders &&... decoders) { return DecoderChain(std::forward(decoders)...); } #endif // __DECODERS_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/include/fibre/encoders.hpp ================================================ #ifndef __ENCODERS_HPP #define __ENCODERS_HPP #include "protocol.hpp" #include "crc.hpp" #include "cpp_utils.hpp" #include struct Request { endpoint_id_t endpoint_id; size_t length; }; /* Base classes --------------------------------------------------------------*/ // @brief Base class for all stream encoders // A stream based encoder is an encoder that generates arbitrary length data blocks. class StreamEncoder : public StreamSource { public: // @brief Returns 0 if no error ocurred, otherwise a non-zero error code. // Once get_bytes returned an error, subsequent calls to get_status must return the same error. // If the encoder is in an error state, the behavior of get_available_bytes and get_bytes is undefined. virtual int get_status() = 0; // @brief Returns the minimum number of bytes that will still be generated by this encoder. // If 0, the encoder is considered complete and any subsequent call to get_bytes must generate // exactly 0 bytes. // get_bytes() must always generate as many bytes as requested unless the encoder generates no more bytes // afterwards virtual size_t get_available_bytes() = 0; }; // @brief Base class for an encoder that is fed in a block-wise fashion. // This base class is provided for convenience when implementing certain types of encoders. // A StreamEncoder can be obtained from a BlockEncoder by using StreamEncoder_from_BlockEncoder. template class BlockEncoder { public: typedef std::integral_constant block_size; virtual int get_status() = 0; virtual size_t get_available_blocks() = 0; virtual int get_block(uint8_t block[BLOCKSIZE]) = 0; private: }; // @brief Base class for an encoder that is fed in a byte-wise fashion // This base class is provided for convenience when implementing certain types of encoders. // A StreamEncoder can be obtained from a ByteEncoder by using StreamEncoder_from_ByteEncoder. class ByteEncoder { public: virtual int get_status() = 0; virtual size_t get_available_bytes() = 0; virtual int get_byte(uint8_t *output_byte) = 0; }; /* Converter classes ---------------------------------------------------------*/ // @brief Encapsulates a BlockEncoder to make it look like a StreamEncoder // @tparam T The encapsulated BlockEncoder type. // Must inherit from to BlockEncoder. template::template all_are>()) > class StreamEncoder_from_BlockEncoder : public StreamEncoder { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > explicit StreamEncoder_from_BlockEncoder(Args &&... args) : block_encoder_(std::forward(args)...) { EXPECT_TYPE(T, BlockEncoder); } inline int get_status() final { return buffered_bytes_ ? 0 : block_encoder_.get_status(); } inline size_t get_available_bytes() final { size_t available_bytes = block_encoder_.get_available_blocks() * T::block_size::value; return available_bytes + buffered_bytes_; } inline int get_bytes(uint8_t *buffer, size_t length, size_t *generated_bytes) final { while (!get_status() && get_available_bytes() && length) { // if the buffer is empty, retrieve a new block from the encode if (!buffered_bytes_) { block_encoder_.get_block(buffer_); buffered_bytes_ = T::block_size::value; } // hand the buffered bytes to the encoder size_t n_copy = std::min(buffered_bytes_, length); memcpy(buffer, buffer_ + T::block_size::value - n_copy, n_copy); length -= n_copy; buffer += n_copy; if (generated_bytes) (*generated_bytes) += n_copy; buffered_bytes_ -= n_copy; } return get_status(); } private: T block_encoder_; size_t buffered_bytes_ = 0; uint8_t buffer_[T::block_size::value]; }; // @brief Encapsulates a ByteEncoder to make it look like a BlockEncoder // @tparam T The encapsulated ByteEncoder type. // Must inherit from ByteEncoder. template::template all_are()) > class BlockEncoder_from_ByteEncoder : public BlockEncoder<1> { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > BlockEncoder_from_ByteEncoder(Args &&... args) : byte_encoder_(std::forward(args)...) { EXPECT_TYPE(T, ByteEncoder); } inline int get_status() final { return byte_encoder_.get_status(); } inline size_t get_available_blocks() final { return byte_encoder_.get_available_bytes(); } inline int get_block(uint8_t block[1]) final { int status = byte_encoder_.get_byte(*block); return status; } private: T byte_encoder_; }; // @brief Encapsulates a ByteEncoder to make it look like a StreamEncoder // @tparam T The encapsulated ByteEncoder type. // Must inherit from ByteEncoder. template::template all_are()) > class StreamEncoder_from_ByteEncoder : public StreamEncoder { public: // @brief Imitates the constructor signature of the encapsulated type. template::template first_is_not()) > StreamEncoder_from_ByteEncoder(Args &&... args) : byte_encoder_(std::forward(args)...) { EXPECT_TYPE(T, ByteEncoder); } inline int get_status() final { return byte_encoder_.get_status(); } inline size_t get_available_bytes() final { return byte_encoder_.get_available_bytes(); } inline int get_bytes(uint8_t *buffer, size_t length, size_t *generated_bytes) final { while (!byte_encoder_.get_status() && byte_encoder_.get_available_bytes() && length) { length--; if (generated_bytes) (*generated_bytes)++; byte_encoder_.get_byte(buffer++); } return byte_encoder_.get_status(); } private: T byte_encoder_; }; /* Encoder implementations ---------------------------------------------------*/ template class VarintByteEncoder : public ByteEncoder { public: static constexpr T BIT_WIDTH = (CHAR_BIT * sizeof(T)); VarintByteEncoder(const T &state_variable) : state_variable_(state_variable) {} size_t get_available_bytes() final { return done_ ? 0 : 1; } int get_status() final { return 0; } int get_byte(uint8_t *output_byte) final { if (bit_pos_ == 0) LOG_FIBRE("start encoding varint, from pos %d\n", bit_pos_); *output_byte = (state_variable_ >> bit_pos_) & 0x7f; bit_pos_ += 7; if (bit_pos_ < BIT_WIDTH && (state_variable_ >> bit_pos_)) { LOG_FIBRE("remainder: %x\n", state_variable_ >> bit_pos_); *output_byte |= 0x80; } else done_ = true; return 0; } private: const T &state_variable_; size_t bit_pos_ = 0; // bit position int status_ = 0; bool done_ = false; }; template using VarintStreamEncoder = StreamEncoder_from_ByteEncoder>; template VarintStreamEncoder make_varint_encoder(const T &variable) { return VarintStreamEncoder(variable); } VarintStreamEncoder make_endpoint_id_encoder(const Request &request) { return make_varint_encoder(request.endpoint_id); } VarintStreamEncoder make_length_encoder(const Request &request) { return make_varint_encoder(request.length); } template::template all_are()) > class CRC8BlockEncoder : public BlockEncoder { public: CRC8BlockEncoder(TEncoder &&inner_encoder) : inner_encoder_(std::forward(inner_encoder)) {} int get_status() final { return status_; } size_t get_available_blocks() final { return (inner_encoder_.get_available_bytes() + CRC8_BLOCKSIZE - 2) / (CRC8_BLOCKSIZE - 1); } int get_block(uint8_t block[4]) final { size_t generated_bytes = 0; status_ = inner_encoder_.get_bytes(block, CRC8_BLOCKSIZE - 1, &generated_bytes); if (status_) return status_; // zero out unused end of the block while (generated_bytes < CRC8_BLOCKSIZE) block[generated_bytes++] = 0; block[CRC8_BLOCKSIZE - 1] = current_crc_ = calc_crc8(current_crc_, block, CRC8_BLOCKSIZE - 1); return 0; } private: TEncoder inner_encoder_; int status_ = 0; uint8_t current_crc_ = INIT; }; template using CRC8StreamEncoder = StreamEncoder_from_BlockEncoder>; template CRC8StreamEncoder make_crc8_encoder(TEncoder &&encoder) { return CRC8StreamEncoder(std::forward(encoder)); } template class EncoderChain; template<> class EncoderChain<> : public StreamEncoder { public: size_t get_available_bytes() final { return 0; } int get_status() final { return 0; } int get_bytes(uint8_t *output, size_t length, size_t *generated_bytes) final { return 0; } }; template class EncoderChain : public StreamEncoder { public: EncoderChain(TEncoder &&this_encoder, TEncoders &&... subsequent_encoders) : this_encoder_(std::forward(this_encoder)), subsequent_encoders_(std::forward(subsequent_encoders)...) { EXPECT_TYPE(TEncoder, StreamEncoder); } size_t get_available_bytes() final { return this_encoder_.get_available_bytes() + subsequent_encoders_.get_available_bytes(); } int get_status() final { // If this encoder or any of the subsequent encoders failed, return error code. int this_status = this_encoder_.get_status(); int subsequent_status = subsequent_encoders_.get_status(); if (this_status) return this_status; else if (subsequent_status) return subsequent_status; else return 0; } int get_bytes(uint8_t *output, size_t length, size_t *generated_bytes) final { if (this_encoder_.get_available_bytes()) { LOG_FIBRE("encoder chain: generate %zu bytes in segment %s\n", length, typeid(TEncoder).name()); size_t chunk = 0; int status = this_encoder_.get_bytes(output, length, &chunk); if (status) return status; output += chunk; length -= chunk; if (generated_bytes) *generated_bytes += chunk; if (!length) return 0; } return subsequent_encoders_.get_bytes(output, length, generated_bytes); } private: TEncoder this_encoder_; EncoderChain subsequent_encoders_; }; template EncoderChain make_encoder_chain(TEncoders &&... encoders) { return EncoderChain(std::forward(encoders)...); } #endif // __ENCODERS_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/include/fibre/protocol.hpp ================================================ /* see protocol.md for the protocol specification */ #ifndef __PROTOCOL_HPP #define __PROTOCOL_HPP // TODO: resolve assert #define assert(expr) #include #include #include //#include #include #include "crc.hpp" #include "cpp_utils.hpp" // Note that this option cannot be used to debug UART because it prints on UART //#define DEBUG_FIBRE #ifdef DEBUG_FIBRE #define LOG_FIBRE(...) do { printf(__VA_ARGS__); } while (0) #else #define LOG_FIBRE(...) ((void) 0) #endif // Default CRC-8 Polynomial: x^8 + x^5 + x^4 + x^2 + x + 1 // Can protect a 4 byte payload against toggling of up to 5 bits // source: https://users.ece.cmu.edu/~koopman/crc/index.html constexpr uint8_t CANONICAL_CRC8_POLYNOMIAL = 0x37; constexpr uint8_t CANONICAL_CRC8_INIT = 0x42; constexpr size_t CRC8_BLOCKSIZE = 4; // Default CRC-16 Polynomial: 0x9eb2 x^16 + x^13 + x^12 + x^11 + x^10 + x^8 + x^6 + x^5 + x^2 + 1 // Can protect a 135 byte payload against toggling of up to 5 bits // source: https://users.ece.cmu.edu/~koopman/crc/index.html // Also known as CRC-16-DNP constexpr uint16_t CANONICAL_CRC16_POLYNOMIAL = 0x3d65; constexpr uint16_t CANONICAL_CRC16_INIT = 0x1337; constexpr uint8_t CANONICAL_PREFIX = 0xAA; /* move to fibre_config.h ******************************/ typedef size_t endpoint_id_t; struct ReceiverState { endpoint_id_t endpoint_id; size_t length; uint16_t seqno_thread; uint16_t seqno; bool expect_ack; bool expect_response; bool enforce_ordering; }; /*******************************************************/ #include constexpr uint16_t PROTOCOL_VERSION = 1; // This value must not be larger than USB_TX_DATA_SIZE defined in usbd_cdc_if.h constexpr uint16_t TX_BUF_SIZE = 32; // does not work with 64 for some reason constexpr uint16_t RX_BUF_SIZE = 128; // larger values than 128 have currently no effect because of protocol limitations // Maximum time we allocate for processing and responding to a request constexpr uint32_t PROTOCOL_SERVER_TIMEOUT_MS = 10; typedef struct { uint16_t json_crc; uint16_t node_id; uint16_t endpoint_id; } endpoint_ref_t; #include template::value>> inline size_t write_le(T value, uint8_t *buffer) { //TODO: add static_assert that this is still a little endian machine std::memcpy(&buffer[0], &value, sizeof(value)); return sizeof(value); } template typename std::enable_if_t::value, size_t> write_le(T value, uint8_t *buffer) { return write_le>(value, buffer); } template<> inline size_t write_le(float value, uint8_t *buffer) { static_assert(CHAR_BIT * sizeof(float) == 32, "32 bit floating point expected"); static_assert(std::numeric_limits::is_iec559, "IEEE 754 floating point expected"); const uint32_t *value_as_uint32 = reinterpret_cast(&value); return write_le(*value_as_uint32, buffer); } template inline size_t read_le(T *value, const uint8_t *buffer) { // TODO: add static_assert that this is still a little endian machine std::memcpy(value, buffer, sizeof(*value)); return sizeof(*value); } template<> inline size_t read_le(float *value, const uint8_t *buffer) { static_assert(CHAR_BIT * sizeof(float) == 32, "32 bit floating point expected"); static_assert(std::numeric_limits::is_iec559, "IEEE 754 floating point expected"); return read_le(reinterpret_cast(value), buffer); } // @brief Reads a value of type T from the buffer. // @param buffer Pointer to the buffer to be read. The pointer is updated by the number of bytes that were read. // @param length The number of available bytes in buffer. This value is updated to subtract the bytes that were read. template static inline T read_le(const uint8_t **buffer, size_t *length) { T result; size_t cnt = read_le(&result, *buffer); *buffer += cnt; *length -= cnt; return result; } class PacketSink { public: // @brief Get the maximum packet length (aka maximum transmission unit) // A packet size shall take no action and return an error code if the // caller attempts to send an oversized packet. //virtual size_t get_mtu() = 0; // @brief Processes a packet. // The blocking behavior shall depend on the thread-local deadline_ms variable. // @return: 0 on success, otherwise a non-zero error code // TODO: define what happens when the packet is larger than what the implementation can handle. virtual int process_packet(const uint8_t *buffer, size_t length) = 0; }; class StreamSink { public: enum ChannelType_t { CHANNEL_TYPE_USB, CHANNEL_TYPE_UART4, CHANNEL_TYPE_UART5 }; ChannelType_t channelType; // @brief Processes a chunk of bytes that is part of a continuous stream. // The blocking behavior shall depend on the thread-local deadline_ms variable. // @param processed_bytes: if not NULL, shall be incremented by the number of // bytes that were consumed. // @return: 0 on success, otherwise a non-zero error code virtual int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) = 0; // @brief Returns the number of bytes that can still be written to the stream. // Shall return SIZE_MAX if the stream has unlimited lenght. // TODO: deprecate virtual size_t get_free_space() = 0; /*int process_bytes(const uint8_t* buffer, size_t length) { size_t processed_bytes = 0; return process_bytes(buffer, length, &processed_bytes); }*/ }; class StreamSource { public: // @brief Generate a chunk of bytes that are part of a continuous stream. // The blocking behavior shall depend on the thread-local deadline_ms variable. // @param generated_bytes: if not NULL, shall be incremented by the number of // bytes that were written to buffer. // @return: 0 on success, otherwise a non-zero error code virtual int get_bytes(uint8_t *buffer, size_t length, size_t *generated_bytes) = 0; // @brief Returns the number of bytes that can still be written to the stream. // Shall return SIZE_MAX if the stream has unlimited lenght. // TODO: deprecate //virtual size_t get_free_space() = 0; }; class StreamToPacketSegmenter : public StreamSink { public: StreamToPacketSegmenter(PacketSink &output) : output_(output) { }; int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes); size_t get_free_space() { return SIZE_MAX; } private: uint8_t header_buffer_[3]; size_t header_index_ = 0; uint8_t packet_buffer_[RX_BUF_SIZE]; size_t packet_index_ = 0; size_t packet_length_ = 0; PacketSink &output_; }; class StreamBasedPacketSink : public PacketSink { public: StreamBasedPacketSink(StreamSink &output) : output_(output) { }; //size_t get_mtu() { return SIZE_MAX; } int process_packet(const uint8_t *buffer, size_t length); private: StreamSink &output_; }; // @brief: Represents a stream sink that's based on an underlying packet sink. // A single call to process_bytes may result in multiple packets being sent. class PacketBasedStreamSink : public StreamSink { public: PacketBasedStreamSink(PacketSink &packet_sink) : _packet_sink(packet_sink) {} ~PacketBasedStreamSink() {} int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) { // Loop to ensure all bytes get sent while (length) { size_t chunk = length; // send chunk as packet if (_packet_sink.process_packet(buffer, chunk)) return -1; buffer += chunk; length -= chunk; if (processed_bytes) *processed_bytes += chunk; } return 0; } size_t get_free_space() { return SIZE_MAX; } private: PacketSink &_packet_sink; }; // Implements the StreamSink interface by writing into a fixed size // memory buffer. class MemoryStreamSink : public StreamSink { public: MemoryStreamSink(uint8_t *buffer, size_t length) : buffer_(buffer), buffer_length_(length) {} // Returns 0 on success and -1 if the buffer could not accept everything because it became full int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) { size_t chunk = length < buffer_length_ ? length : buffer_length_; memcpy(buffer_, buffer, chunk); buffer_ += chunk; buffer_length_ -= chunk; if (processed_bytes) *processed_bytes += chunk; return chunk == length ? 0 : -1; } size_t get_free_space() { return buffer_length_; } private: uint8_t *buffer_; size_t buffer_length_; }; // Implements the StreamSink interface by discarding the first couple of bytes // and then forwarding the rest to another stream. class NullStreamSink : public StreamSink { public: NullStreamSink(size_t skip, StreamSink &follow_up_stream) : skip_(skip), follow_up_stream_(follow_up_stream) {} // Returns 0 on success and -1 if the buffer could not accept everything because it became full int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) { if (skip_ < length) { buffer += skip_; length -= skip_; if (processed_bytes) *processed_bytes += skip_; skip_ = 0; return follow_up_stream_.process_bytes(buffer, length, processed_bytes); } else { skip_ -= length; if (processed_bytes) *processed_bytes += length; return 0; } } size_t get_free_space() { return skip_ + follow_up_stream_.get_free_space(); } private: size_t skip_; StreamSink &follow_up_stream_; }; // Implements the StreamSink interface by calculating the CRC16 checksum // on the data that is sent to it. class CRC16Calculator : public StreamSink { public: CRC16Calculator(uint16_t crc16_init) : crc16_(crc16_init) {} int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) { crc16_ = calc_crc16(crc16_, buffer, length); if (processed_bytes) *processed_bytes += length; return 0; } size_t get_free_space() { return SIZE_MAX; } uint16_t get_crc16() { return crc16_; } private: uint16_t crc16_; }; // @brief Endpoint request handler // // When passed a valid endpoint context, implementing functions shall handle an // endpoint read/write request by reading the provided input data and filling in // output data. The exact semantics of this function depends on the corresponding // endpoint's specification. // // @param input: pointer to the input data // @param input_length: number of available input bytes // @param output: The stream where to write the output to. Can be null. // The handler shall abort as soon as the stream returns // a non-zero error code on write. typedef std::function EndpointHandler; // @brief Default endpoint handler for const types // @return: True if endpoint was written to, False otherwise template std::enable_if_t::value && std::is_const::value, bool> default_readwrite_endpoint_handler(T *value, const uint8_t *input, size_t input_length, StreamSink *output) { // If the old value was requested, call the corresponding little endian serialization function if (output) { // TODO: make buffer size dependent on the type uint8_t buffer[sizeof(T)]; size_t cnt = write_le(*value, buffer); if (cnt <= output->get_free_space()) output->process_bytes(buffer, cnt, nullptr); } return false; // We don't ever write to const types } // @brief Default endpoint handler for non-const types template std::enable_if_t::value && !std::is_const::value, bool> default_readwrite_endpoint_handler(T *value, const uint8_t *input, size_t input_length, StreamSink *output) { // Read the endpoint value into output default_readwrite_endpoint_handler(const_cast(value), input, input_length, output); // If a new value was passed, call the corresponding little endian deserialization function uint8_t buffer[sizeof(T)] = {0}; // TODO: make buffer size dependent on the type if (input_length >= sizeof(buffer)) { read_le(value, input); return true; } else { return false; } } // @brief Default endpoint handler for endpoint_ref_t types template bool default_readwrite_endpoint_handler(endpoint_ref_t *value, const uint8_t *input, size_t input_length, StreamSink *output) { constexpr size_t size = sizeof(value->endpoint_id) + sizeof(value->json_crc); if (output) { // TODO: make buffer size dependent on the type uint8_t buffer[size]; size_t cnt = write_leendpoint_id)>(value->endpoint_id, buffer); cnt += write_lejson_crc)>(value->json_crc, buffer + cnt); if (cnt <= output->get_free_space()) output->process_bytes(buffer, cnt, nullptr); } // If a new value was passed, call the corresponding little endian deserialization function if (input_length >= size) { read_leendpoint_id)>(&value->endpoint_id, input); read_lejson_crc)>(&value->json_crc, input + 2); return true; } else { return false; } } template static inline const char *get_default_json_modifier(); template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"float\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"float\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"int64\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"int64\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint64\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint64\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"int32\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"int32\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint32\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint32\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint16\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint16\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint8\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"uint8\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"bool\",\"access\":\"r\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"bool\",\"access\":\"rw\""; } template<> inline constexpr const char *get_default_json_modifier() { return "\"type\":\"endpoint_ref\",\"access\":\"rw\""; } class Endpoint { public: //const char* const name_; virtual void handle(const uint8_t *input, size_t input_length, StreamSink *output) = 0; virtual bool get_string(char *output, size_t length) { return false; } virtual bool set_string(char *buffer, size_t length) { return false; } virtual bool set_from_float(float value) { return false; } }; static inline int write_string(const char *str, StreamSink *output) { return output->process_bytes(reinterpret_cast(str), strlen(str), nullptr); } /* @brief Handles the communication protocol on one channel. * * When instantiated with a list of endpoints and an output packet sink, * objects of this class will handle packets passed into process_packet, * pass the relevant data to the corresponding endpoints and dispatch response * packets on the output. */ class BidirectionalPacketBasedChannel : public PacketSink { public: BidirectionalPacketBasedChannel(PacketSink &output) : output_(output) {} //size_t get_mtu() { // return SIZE_MAX; //} int process_packet(const uint8_t *buffer, size_t length); private: PacketSink &output_; uint8_t tx_buf_[TX_BUF_SIZE]; }; /* ToString / FromString functions -------------------------------------------*/ /* * These functions are currently not used by Fibre and only here to * support the ODrive ASCII protocol. * TODO: find a general way for client code to augment endpoints with custom * functions */ template struct format_traits_t; // template<> struct format_traits_t { using type = void; // static constexpr const char * fmt = "%f"; // static constexpr const char * fmtp = "%f"; // }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%lld"; static constexpr const char *fmtp = "%lld"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%llu"; static constexpr const char *fmtp = "%llu"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%ld"; static constexpr const char *fmtp = "%ld"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%lu"; static constexpr const char *fmtp = "%lu"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%hd"; static constexpr const char *fmtp = "%hd"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%hu"; static constexpr const char *fmtp = "%hu"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%hhd"; static constexpr const char *fmtp = "%d"; }; template<> struct format_traits_t { using type = void; static constexpr const char *fmt = "%hhu"; static constexpr const char *fmtp = "%u"; }; template::type> static bool to_string(const T &value, char *buffer, size_t length, int) { snprintf(buffer, length, format_traits_t::fmtp, value); return true; } // Special case for float because printf promotes float to double, and we get warnings template static bool to_string(const float &value, char *buffer, size_t length, int) { snprintf(buffer, length, "%f", (double) value); return true; } template static bool to_string(const bool &value, char *buffer, size_t length, int) { buffer[0] = value ? '1' : '0'; buffer[1] = 0; return true; } template static bool to_string(const T &value, char *buffer, size_t length, ...) { return false; } template::type> static bool from_string(const char *buffer, size_t length, T *property, int) { return sscanf(buffer, format_traits_t::fmt, property) == 1; } // Special case for float because printf promotes float to double, and we get warnings template static bool from_string(const char *buffer, size_t length, float *property, int) { return sscanf(buffer, "%f", property) == 1; } template static bool from_string(const char *buffer, size_t length, bool *property, int) { int val; if (sscanf(buffer, "%d", &val) != 1) return false; *property = val; return true; } template static bool from_string(const char *buffer, size_t length, T *property, ...) { return false; } /* Object tree ---------------------------------------------------------------*/ template struct MemberList; template<> struct MemberList<> { public: static constexpr size_t endpoint_count = 0; static constexpr bool is_empty = true; void write_json(size_t id, StreamSink *output) { // no action } void register_endpoints(Endpoint **list, size_t id, size_t length) { // no action } Endpoint *get_by_name(const char *name, size_t length) { return nullptr; } std::tuple<> get_names_as_tuple() const { return std::tuple<>(); } }; template struct MemberList { public: static constexpr size_t endpoint_count = TMember::endpoint_count + MemberList::endpoint_count; static constexpr bool is_empty = false; MemberList(TMember &&this_member, TMembers &&... subsequent_members) : this_member_(std::forward(this_member)), subsequent_members_(std::forward(subsequent_members)...) {} MemberList(TMember &&this_member, MemberList &&subsequent_members) : this_member_(std::forward(this_member)), subsequent_members_(std::forward>(subsequent_members)) {} // @brief Move constructor /* MemberList(MemberList&& other) : this_member_(std::move(other.this_member_)), subsequent_members_(std::move(other.subsequent_members_)) {}*/ void write_json(size_t id, StreamSink *output) /*final*/ { this_member_.write_json(id, output); if (!MemberList::is_empty) write_string(",", output); subsequent_members_.write_json(id + TMember::endpoint_count, output); } Endpoint *get_by_name(const char *name, size_t length) { Endpoint *result = this_member_.get_by_name(name, length); if (result) return result; else return subsequent_members_.get_by_name(name, length); } void register_endpoints(Endpoint **list, size_t id, size_t length) /*final*/ { this_member_.register_endpoints(list, id, length); subsequent_members_.register_endpoints(list, id + TMember::endpoint_count, length); } TMember this_member_; MemberList subsequent_members_; }; template MemberList make_protocol_member_list(TMembers &&... member_list) { return MemberList(std::forward(member_list)...); } template class ProtocolObject { public: ProtocolObject(const char *name, TMembers &&... member_list) : name_(name), member_list_(std::forward(member_list)...) {} static constexpr size_t endpoint_count = MemberList::endpoint_count; void write_json(size_t id, StreamSink *output) { write_string("{\"name\":\"", output); write_string(name_, output); write_string("\",\"type\":\"object\",\"members\":[", output); member_list_.write_json(id, output), write_string("]}", output); } Endpoint *get_by_name(const char *name, size_t length) { size_t segment_length = strlen(name); if (!strncmp(name, name_, length)) return member_list_.get_by_name(name + segment_length + 1, length - segment_length - 1); else return nullptr; } void register_endpoints(Endpoint **list, size_t id, size_t length) { member_list_.register_endpoints(list, id, length); } const char *name_; MemberList member_list_; }; template ProtocolObject make_protocol_object(const char *name, TMembers &&... member_list) { return ProtocolObject(name, std::forward(member_list)...); } //template //bool set_from_float_ex(float value, T* property) { // return false; //} namespace conversion { //template template bool set_from_float_ex(float value, float *property, int) { return *property = value, true; } template bool set_from_float_ex(float value, bool *property, int) { return *property = (value >= 0.0f), true; } template::value && !std::is_const::value>> bool set_from_float_ex(float value, T *property, int) { return *property = static_cast(std::round(value)), true; } template bool set_from_float_ex(float value, T *property, ...) { return false; } template bool set_from_float(float value, T *property) { return set_from_float_ex(value, property, 0); } } //template //bool set_from_float_ex<>(float value, T* property) { // return false; //} template class ProtocolProperty : public Endpoint { public: static constexpr const char *json_modifier = get_default_json_modifier(); static constexpr size_t endpoint_count = 1; ProtocolProperty(const char *name, TProperty *property, void (*written_hook)(void *), void *ctx) : name_(name), property_(property), written_hook_(written_hook), ctx_(ctx) {} /* TODO: find out why the move constructor is not used when it could be ProtocolProperty(const ProtocolProperty&) = delete; // @brief Move constructor ProtocolProperty(ProtocolProperty&& other) : Endpoint(std::move(other)), name_(std::move(other.name_)), property_(other.property_) {} constexpr ProtocolProperty& operator=(const ProtocolProperty& other) = delete; constexpr ProtocolProperty& operator=(const ProtocolProperty& other) { //Endpoint(std::move(other)), //name_(std::move(other.name_)), //property_(other.property_) name_ = other.name_; property_ = other.property_; return *this; } ProtocolProperty& operator=(ProtocolProperty&& other) : name_(other.name_), property_(other.property_) {} ProtocolProperty& operator=(const ProtocolProperty& other) : name_(other.name_), property_(other.property_) {}*/ void write_json(size_t id, StreamSink *output) { // write name write_string("{\"name\":\"", output); LOG_FIBRE("json: this at %x, name at %x is s\r\n", (uintptr_t) this, (uintptr_t) name_); //LOG_FIBRE("json\r\n"); write_string(name_, output); // write endpoint ID write_string("\",\"id\":", output); char id_buf[10]; snprintf(id_buf, sizeof(id_buf), "%u", (unsigned) id); // TODO: get rid of printf write_string(id_buf, output); // write additional JSON data if (json_modifier && json_modifier[0]) { write_string(",", output); write_string(json_modifier, output); } write_string("}", output); } // special-purpose function - to be moved Endpoint *get_by_name(const char *name, size_t length) { if (!strncmp(name, name_, length)) return this; else return nullptr; } // special-purpose function - to be moved bool get_string(char *buffer, size_t length) final { return to_string(*property_, buffer, length, 0); } // special-purpose function - to be moved bool set_string(char *buffer, size_t length) final { return from_string(buffer, length, property_, 0); } bool set_from_float(float value) final { return conversion::set_from_float(value, property_); } void register_endpoints(Endpoint **list, size_t id, size_t length) { if (id < length) list[id] = this; } void handle(const uint8_t *input, size_t input_length, StreamSink *output) final { bool wrote = default_readwrite_endpoint_handler(property_, input, input_length, output); if (wrote && written_hook_ != nullptr) { written_hook_(ctx_); } } /*void handle(const uint8_t* input, size_t input_length, StreamSink* output) { handle(input, input_length, output); }*/ const char *name_; TProperty *property_; void (*written_hook_)(void *); void *ctx_; }; // Non-const non-enum types template::value) > ProtocolProperty make_protocol_property(const char *name, TProperty *property, void (*written_hook)(void *) = nullptr, void *ctx = nullptr) { return ProtocolProperty(name, property, written_hook, ctx); }; // Const non-enum types template::value) > ProtocolProperty make_protocol_ro_property(const char *name, TProperty *property, void (*written_hook)(void *) = nullptr, void *ctx = nullptr) { return ProtocolProperty(name, property, written_hook, ctx); }; // Non-const enum types template::value) > ProtocolProperty> make_protocol_property(const char *name, TProperty *property, void (*written_hook)(void *) = nullptr, void *ctx = nullptr) { return ProtocolProperty>( name, reinterpret_cast *>(property), written_hook, ctx); }; // Const enum types template::value) > ProtocolProperty> make_protocol_ro_property(const char *name, TProperty *property, void (*written_hook)(void *) = nullptr, void *ctx = nullptr) { return ProtocolProperty>( name, reinterpret_cast *>(property), written_hook, ctx); }; template struct PropertyListFactory; template<> struct PropertyListFactory<> { template static MemberList<> make_property_list(std::array names, std::tuple &values) { return MemberList<>(); } }; template struct PropertyListFactory { template static MemberList, ProtocolProperty...> make_property_list(std::array names, std::tuple &values) { return MemberList, ProtocolProperty...>( make_protocol_property(std::get(names), &std::get(values)), PropertyListFactory::template make_property_list(names, values) ); } }; /* @brief return_type::type represents the true return type * of a function returning 0 or more arguments. * * For an empty TypeList, the return type is void. For a list with * one type, the return type is equal to that type. For a list with * more than one items, the return type is a tuple. */ template struct return_type; template<> struct return_type<> { typedef void type; }; template struct return_type { typedef T type; }; template struct return_type { typedef std::tuple type; }; template class ProtocolFunction; template class ProtocolFunction, std::tuple> : Endpoint { public: // @brief The return type of the function as written by a C++ programmer using TRet = typename return_type::type; static constexpr size_t endpoint_count = 1 + MemberList...>::endpoint_count + MemberList...>::endpoint_count; ProtocolFunction(const char *name, TObj &obj, TRet(TObj::*func_ptr)(TInputs...), std::array input_names, std::array output_names) : name_(name), obj_(&obj), func_ptr_(func_ptr), input_names_{input_names}, output_names_{output_names}, input_properties_(PropertyListFactory::template make_property_list<0>(input_names_, in_args_)), output_properties_( PropertyListFactory::template make_property_list<0>(output_names_, out_args_)) { LOG_FIBRE("my tuple is at %x and of size %u\r\n", (uintptr_t) &in_args_, sizeof(in_args_)); } // The custom copy constructor is needed because otherwise the // input_properties_ and output_properties_ would point to memory // locations of the old object. ProtocolFunction(const ProtocolFunction &other) : name_(other.name_), obj_(other.obj_), func_ptr_(other.func_ptr_), input_names_{other.input_names_}, output_names_{other.output_names_}, input_properties_(PropertyListFactory::template make_property_list<0>(input_names_, in_args_)), output_properties_( PropertyListFactory::template make_property_list<0>(output_names_, out_args_)) { LOG_FIBRE("COPIED! my tuple is at %x and of size %u\r\n", (uintptr_t) &in_args_, sizeof(in_args_)); } void write_json(size_t id, StreamSink *output) { // write name write_string("{\"name\":\"", output); write_string(name_, output); // write endpoint ID write_string("\",\"id\":", output); char id_buf[10]; snprintf(id_buf, sizeof(id_buf), "%u", (unsigned) id); // TODO: get rid of printf write_string(id_buf, output); // write arguments write_string(",\"type\":\"function\",\"inputs\":[", output); input_properties_.write_json(id + 1, output), write_string("],\"outputs\":[", output); output_properties_.write_json(id + 1 + decltype(input_properties_)::endpoint_count, output), write_string("]}", output); } // special-purpose function - to be moved Endpoint *get_by_name(const char *name, size_t length) { return nullptr; // can't address functions by name } void register_endpoints(Endpoint **list, size_t id, size_t length) { if (id < length) list[id] = this; input_properties_.register_endpoints(list, id + 1, length); output_properties_.register_endpoints(list, id + 1 + decltype(input_properties_)::endpoint_count, length); } template std::enable_if_t handle_ex() { invoke_function_with_tuple(*obj_, func_ptr_, in_args_); } template std::enable_if_t handle_ex() { std::get<0>(out_args_) = invoke_function_with_tuple(*obj_, func_ptr_, in_args_); } template std::enable_if_t= 2> handle_ex() { out_args_ = invoke_function_with_tuple(*obj_, func_ptr_, in_args_); } void handle(const uint8_t *input, size_t input_length, StreamSink *output) final { (void) input; (void) input_length; (void) output; LOG_FIBRE("tuple still at %x and of size %u\r\n", (uintptr_t) &in_args_, sizeof(in_args_)); LOG_FIBRE("invoke function using %d and %.3f\r\n", std::get<0>(in_args_), std::get<1>(in_args_)); handle_ex(); } const char *name_; TObj *obj_; TRet (TObj::*func_ptr_)(TInputs...); std::array input_names_; // TODO: remove std::array output_names_; // TODO: remove std::tuple in_args_; std::tuple out_args_; MemberList...> input_properties_; MemberList...> output_properties_; }; template> ProtocolFunction, std::tuple<>> make_protocol_function(const char *name, TObj &obj, void(TObj::*func_ptr)(TArgs...), TNames ... names) { return ProtocolFunction, std::tuple<>>(name, obj, func_ptr, {names...}, {}); } template::value>> ProtocolFunction, std::tuple> make_protocol_function(const char *name, TObj &obj, TRet(TObj::*func_ptr)(TArgs...), TNames ... names) { return ProtocolFunction, std::tuple>(name, obj, func_ptr, {names...}, {"result"}); } #define FIBRE_EXPORTS(CLASS, ...) \ struct fibre_export_t { \ static CLASS* obj; \ using type = decltype(make_protocol_member_list(__VA_ARGS__)); \ }; \ fibre_export_t::type make_fibre_definitions() { \ CLASS* obj = this; \ return make_protocol_member_list(__VA_ARGS__); \ } \ fibre_export_t::type fibre_definitions = make_fibre_definitions() class EndpointProvider { public: virtual size_t get_endpoint_count() = 0; virtual void write_json(size_t id, StreamSink *output) = 0; virtual Endpoint *get_by_name(char *name, size_t length) = 0; virtual void register_endpoints(Endpoint **list, size_t id, size_t length) = 0; }; template class EndpointProvider_from_MemberList : public EndpointProvider { public: EndpointProvider_from_MemberList(T &member_list) : member_list_(member_list) {} size_t get_endpoint_count() final { return T::endpoint_count; } void write_json(size_t id, StreamSink *output) final { return member_list_.write_json(id, output); } void register_endpoints(Endpoint **list, size_t id, size_t length) final { return member_list_.register_endpoints(list, id, length); } Endpoint *get_by_name(char *name, size_t length) final { for (size_t i = 0; i < length; i++) { if (name[i] == '.') name[i] = 0; } name[length - 1] = 0; return member_list_.get_by_name(name, length); } T &member_list_; }; class JSONDescriptorEndpoint : Endpoint { public: static constexpr size_t endpoint_count = 1; void write_json(size_t id, StreamSink *output); void register_endpoints(Endpoint **list, size_t id, size_t length); void handle(const uint8_t *input, size_t input_length, StreamSink *output); }; // defined in protocol.cpp extern Endpoint **endpoint_list_; extern size_t n_endpoints_; extern uint16_t json_crc_; extern JSONDescriptorEndpoint json_file_endpoint_; extern EndpointProvider *application_endpoints_; bool is_endpoint_ref_valid(endpoint_ref_t endpoint_ref); Endpoint *get_endpoint(endpoint_ref_t endpoint_ref); // @brief Registers the specified application object list using the provided endpoint table. // This function should only be called once during the lifetime of the application. TODO: fix this. // @param application_objects The application objects to be registred. template int fibre_publish(T &application_objects) { static constexpr size_t endpoint_list_size = 1 + T::endpoint_count; static Endpoint *endpoint_list[endpoint_list_size]; static auto endpoint_provider = EndpointProvider_from_MemberList(application_objects); json_file_endpoint_.register_endpoints(endpoint_list, 0, endpoint_list_size); application_objects.register_endpoints(endpoint_list, 1, endpoint_list_size); // Update the global endpoint table endpoint_list_ = endpoint_list; n_endpoints_ = endpoint_list_size; application_endpoints_ = &endpoint_provider; // Calculate the CRC16 of the JSON file. // The init value is the protocol version. CRC16Calculator crc16_calculator(PROTOCOL_VERSION); uint8_t offset[4] = {0}; json_file_endpoint_.handle(offset, sizeof(offset), &crc16_calculator); json_crc_ = crc16_calculator.get_crc16(); return 0; } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/package.lua ================================================ tup.include('../tupfiles/build.lua') fibre_package = define_package{ sources={'protocol.cpp', 'posix_tcp.cpp', 'posix_udp.cpp'}, libs={'pthread'}, headers={'include'} } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/protocol.cpp ================================================ /* Includes ------------------------------------------------------------------*/ #include #include #include #include /* Private defines -----------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private typedef -----------------------------------------------------------*/ /* Global constant data ------------------------------------------------------*/ /* Global variables ----------------------------------------------------------*/ Endpoint** endpoint_list_ = nullptr; // initialized by calling fibre_publish size_t n_endpoints_ = 0; // initialized by calling fibre_publish uint16_t json_crc_; // initialized by calling fibre_publish JSONDescriptorEndpoint json_file_endpoint_ = JSONDescriptorEndpoint(); EndpointProvider* application_endpoints_; /* Private constant data -----------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ static void hexdump(const uint8_t* buf, size_t len); static inline int write_string(const char* str, StreamSink* output); /* Function implementations --------------------------------------------------*/ #if 0 void hexdump(const uint8_t* buf, size_t len) { for (size_t pos = 0; pos < len; ++pos) { printf(" %02x", buf[pos]); if ((((pos + 1) % 16) == 0) || ((pos + 1) == len)) printf("\r\n"); osDelay(2); } } #else void hexdump(const uint8_t* buf, size_t len) { (void) buf; (void) len; } #endif int StreamToPacketSegmenter::process_bytes(const uint8_t *buffer, size_t length, size_t* processed_bytes) { int result = 0; while (length--) { if (header_index_ < sizeof(header_buffer_)) { // Process header byte header_buffer_[header_index_++] = *buffer; if (header_index_ == 1 && header_buffer_[0] != CANONICAL_PREFIX) { header_index_ = 0; } else if (header_index_ == 2 && (header_buffer_[1] & 0x80)) { header_index_ = 0; // TODO: support packets larger than 128 bytes } else if (header_index_ == 3 && calc_crc8(CANONICAL_CRC8_INIT, header_buffer_, 3)) { header_index_ = 0; } else if (header_index_ == 3) { packet_length_ = header_buffer_[1] + 2; } } else if (packet_index_ < sizeof(packet_buffer_)) { // Process payload byte packet_buffer_[packet_index_++] = *buffer; } // If both header and packet are fully received, hand it on to the packet processor if (header_index_ == 3 && packet_index_ == packet_length_) { if (calc_crc16(CANONICAL_CRC16_INIT, packet_buffer_, packet_length_) == 0) { result |= output_.process_packet(packet_buffer_, packet_length_ - 2); } header_index_ = packet_index_ = packet_length_ = 0; } buffer++; if (processed_bytes) (*processed_bytes)++; } return result; } int StreamBasedPacketSink::process_packet(const uint8_t *buffer, size_t length) { // TODO: support buffer size >= 128 if (length >= 128) return -1; LOG_FIBRE("send header\r\n"); uint8_t header[] = { CANONICAL_PREFIX, static_cast(length), 0 }; header[2] = calc_crc8(CANONICAL_CRC8_INIT, header, 2); if (output_.process_bytes(header, sizeof(header), nullptr)) return -1; LOG_FIBRE("send payload:\r\n"); hexdump(buffer, length); if (output_.process_bytes(buffer, length, nullptr)) return -1; LOG_FIBRE("send crc16\r\n"); uint16_t crc16 = calc_crc16(CANONICAL_CRC16_INIT, buffer, length); uint8_t crc16_buffer[] = { (uint8_t)((crc16 >> 8) & 0xff), (uint8_t)((crc16 >> 0) & 0xff) }; if (output_.process_bytes(crc16_buffer, 2, nullptr)) return -1; LOG_FIBRE("sent!\r\n"); return 0; } void JSONDescriptorEndpoint::write_json(size_t id, StreamSink* output) { write_string("{\"name\":\"\",", output); // write endpoint ID write_string("\"id\":", output); char id_buf[10]; snprintf(id_buf, sizeof(id_buf), "%u", (unsigned)id); // TODO: get rid of printf write_string(id_buf, output); write_string(",\"type\":\"json\",\"access\":\"r\"}", output); } void JSONDescriptorEndpoint::register_endpoints(Endpoint** list, size_t id, size_t length) { if (id < length) list[id] = this; } // Returns part of the JSON interface definition. void JSONDescriptorEndpoint::handle(const uint8_t* input, size_t input_length, StreamSink* output) { // The request must contain a 32 bit integer to specify an offset if (input_length < 4) return; uint32_t offset = 0; read_le(&offset, input); NullStreamSink output_with_offset = NullStreamSink(offset, *output); size_t id = 0; write_string("[", &output_with_offset); json_file_endpoint_.write_json(id, &output_with_offset); id += decltype(json_file_endpoint_)::endpoint_count; write_string(",", &output_with_offset); application_endpoints_->write_json(id, &output_with_offset); write_string("]", &output_with_offset); } int BidirectionalPacketBasedChannel::process_packet(const uint8_t* buffer, size_t length) { LOG_FIBRE("got packet of length %d: \r\n", length); hexdump(buffer, length); if (length < 4) return -1; uint16_t seq_no = read_le(&buffer, &length); if (seq_no & 0x8000) { // TODO: ack handling } else { // TODO: think about some kind of ordering guarantees // currently the seq_no is just used to associate a response with a request uint16_t endpoint_id = read_le(&buffer, &length); bool expect_response = endpoint_id & 0x8000; endpoint_id &= 0x7fff; if (endpoint_id >= n_endpoints_) return -1; Endpoint* endpoint = endpoint_list_[endpoint_id]; if (!endpoint) { LOG_FIBRE("critical: no endpoint at %d", endpoint_id); return -1; } // Verify packet trailer. The expected trailer value depends on the selected endpoint. // For endpoint 0 this is just the protocol version, for all other endpoints it's a // CRC over the entire JSON descriptor tree (this may change in future versions). uint16_t expected_trailer = endpoint_id ? json_crc_ : PROTOCOL_VERSION; uint16_t actual_trailer = buffer[length - 2] | (buffer[length - 1] << 8); if (expected_trailer != actual_trailer) { LOG_FIBRE("trailer mismatch for endpoint %d: expected %04x, got %04x\r\n", endpoint_id, expected_trailer, actual_trailer); return -1; } LOG_FIBRE("trailer ok for endpoint %d\r\n", endpoint_id); // TODO: if more bytes than the MTU were requested, should we abort or just return as much as possible? uint16_t expected_response_length = read_le(&buffer, &length); // Limit response length according to our local TX buffer size if (expected_response_length > sizeof(tx_buf_) - 2) expected_response_length = sizeof(tx_buf_) - 2; MemoryStreamSink output(tx_buf_ + 2, expected_response_length); endpoint->handle(buffer, length - 2, &output); // Send response if (expect_response) { size_t actual_response_length = expected_response_length - output.get_free_space() + 2; write_le(seq_no | 0x8000, tx_buf_); LOG_FIBRE("send packet:\r\n"); hexdump(tx_buf_, actual_response_length); output_.process_packet(tx_buf_, actual_response_length); } } return 0; } bool is_endpoint_ref_valid(endpoint_ref_t endpoint_ref) { return (endpoint_ref.json_crc == json_crc_) && (endpoint_ref.endpoint_id < n_endpoints_); } Endpoint* get_endpoint(endpoint_ref_t endpoint_ref) { if (is_endpoint_ref_valid(endpoint_ref)) return endpoint_list_[endpoint_ref.endpoint_id]; else return nullptr; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/Print.cpp ================================================ /* Print.cpp - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified 23 November 2006 by David A. Mellis Modified December 2014 by Ivan Grokhotkov Modified May 2015 by Michael C. Miller - ESP31B progmem support */ #include #include #include #include #include #include "Print.h" extern "C" { #include "time.h" } // Public Methods ////////////////////////////////////////////////////////////// /* default implementation: may be overridden */ size_t Print::write(const uint8_t *buffer, size_t size) { size_t n = 0; while(size--) { n += write(*buffer++); } return n; } size_t Print::printf(const char *format, ...) { char loc_buf[64]; char * temp = loc_buf; va_list arg; va_list copy; va_start(arg, format); va_copy(copy, arg); int len = vsnprintf(temp, sizeof(loc_buf), format, copy); va_end(copy); if(len < 0) { va_end(arg); return 0; }; if(len >= sizeof(loc_buf)){ temp = (char*) malloc(len+1); if(temp == NULL) { va_end(arg); return 0; } len = vsnprintf(temp, len+1, format, arg); } va_end(arg); len = write((uint8_t*)temp, len); if(temp != loc_buf){ free(temp); } return len; } size_t Print::print(const __FlashStringHelper *ifsh) { return print(reinterpret_cast(ifsh)); } size_t Print::print(const String &s) { return write(s.c_str(), s.length()); } size_t Print::print(const char str[]) { return write(str); } size_t Print::print(char c) { return write(c); } size_t Print::print(unsigned char b, int base) { return print((unsigned long) b, base); } size_t Print::print(int n, int base) { return print((long) n, base); } size_t Print::print(unsigned int n, int base) { return print((unsigned long) n, base); } size_t Print::print(long n, int base) { int t = 0; if (base == 10 && n < 0) { t = print('-'); n = -n; } return printNumber(static_cast(n), base) + t; } size_t Print::print(unsigned long n, int base) { if(base == 0) { return write(n); } else { return printNumber(n, base); } } size_t Print::print(long long n, int base) { int t = 0; if (base == 10 && n < 0) { t = print('-'); n = -n; } return printNumber(static_cast(n), base) + t; } size_t Print::print(unsigned long long n, int base) { if (base == 0) { return write(n); } else { return printNumber(n, base); } } size_t Print::print(double n, int digits) { return printFloat(n, digits); } size_t Print::println(const __FlashStringHelper *ifsh) { size_t n = print(ifsh); n += println(); return n; } size_t Print::print(const Printable& x) { return x.printTo(*this); } size_t Print::println(void) { return print("\r\n"); } size_t Print::println(const String &s) { size_t n = print(s); n += println(); return n; } size_t Print::println(const char c[]) { size_t n = print(c); n += println(); return n; } size_t Print::println(char c) { size_t n = print(c); n += println(); return n; } size_t Print::println(unsigned char b, int base) { size_t n = print(b, base); n += println(); return n; } size_t Print::println(int num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(unsigned int num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(unsigned long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(long long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(unsigned long long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(double num, int digits) { size_t n = print(num, digits); n += println(); return n; } size_t Print::println(const Printable& x) { size_t n = print(x); n += println(); return n; } size_t Print::println(struct tm * timeinfo, const char * format) { size_t n = print(timeinfo, format); n += println(); return n; } // Private Methods ///////////////////////////////////////////////////////////// size_t Print::printNumber(unsigned long n, uint8_t base) { char buf[8 * sizeof(n) + 1]; // Assumes 8-bit chars plus zero byte. char *str = &buf[sizeof(buf) - 1]; *str = '\0'; // prevent crash if called with base == 1 if(base < 2) { base = 10; } do { char c = n % base; n /= base; *--str = c < 10 ? c + '0' : c + 'A' - 10; } while (n); return write(str); } size_t Print::printNumber(unsigned long long n, uint8_t base) { char buf[8 * sizeof(n) + 1]; // Assumes 8-bit chars plus zero byte. char* str = &buf[sizeof(buf) - 1]; *str = '\0'; // prevent crash if called with base == 1 if (base < 2) { base = 10; } do { auto m = n; n /= base; char c = m - base * n; *--str = c < 10 ? c + '0' : c + 'A' - 10; } while (n); return write(str); } size_t Print::printFloat(double number, uint8_t digits) { size_t n = 0; if(isnan(number)) { return print("nan"); } if(isinf(number)) { return print("inf"); } if(number > 4294967040.0) { return print("ovf"); // constant determined empirically } if(number < -4294967040.0) { return print("ovf"); // constant determined empirically } // Handle negative numbers if(number < 0.0) { n += print('-'); number = -number; } // Round correctly so that print(1.999, 2) prints as "2.00" double rounding = 0.5; for(uint8_t i = 0; i < digits; ++i) { rounding /= 10.0; } number += rounding; // Extract the integer part of the number and print it unsigned long int_part = (unsigned long) number; double remainder = number - (double) int_part; n += print(int_part); // Print the decimal point, but only if there are digits beyond if(digits > 0) { n += print("."); } // Extract digits from the remainder one at a time while(digits-- > 0) { remainder *= 10.0; int toPrint = int(remainder); n += print(toPrint); remainder -= toPrint; } return n; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/Print.h ================================================ /* Print.h - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef Print_h #define Print_h #include #include #include "WString.h" #include "Printable.h" #define DEC 10 #define HEX 16 #define OCT 8 #define BIN 2 class Print { private: int write_error; size_t printNumber(unsigned long, uint8_t); size_t printNumber(unsigned long long, uint8_t); size_t printFloat(double, uint8_t); protected: void setWriteError(int err = 1) { write_error = err; } public: Print() : write_error(0) { } virtual ~Print() {} int getWriteError() { return write_error; } void clearWriteError() { setWriteError(0); } virtual size_t write(uint8_t) = 0; size_t write(const char *str) { if(str == NULL) { return 0; } return write((const uint8_t *) str, strlen(str)); } virtual size_t write(const uint8_t *buffer, size_t size); size_t write(const char *buffer, size_t size) { return write((const uint8_t *) buffer, size); } size_t printf(const char * format, ...) __attribute__ ((format (printf, 2, 3))); // add availableForWrite to make compatible with Arduino Print.h // default to zero, meaning "a single write may block" // should be overriden by subclasses with buffering virtual int availableForWrite() { return 0; } size_t print(const __FlashStringHelper *); size_t print(const String &); size_t print(const char[]); size_t print(char); size_t print(unsigned char, int = DEC); size_t print(int, int = DEC); size_t print(unsigned int, int = DEC); size_t print(long, int = DEC); size_t print(unsigned long, int = DEC); size_t print(long long, int = DEC); size_t print(unsigned long long, int = DEC); size_t print(double, int = 2); size_t print(const Printable&); size_t print(struct tm * timeinfo, const char * format = NULL); size_t println(const __FlashStringHelper *); size_t println(const String &s); size_t println(const char[]); size_t println(char); size_t println(unsigned char, int = DEC); size_t println(int, int = DEC); size_t println(unsigned int, int = DEC); size_t println(long, int = DEC); size_t println(unsigned long, int = DEC); size_t println(long long, int = DEC); size_t println(unsigned long long, int = DEC); size_t println(double, int = 2); size_t println(const Printable&); size_t println(struct tm * timeinfo, const char * format = NULL); size_t println(void); }; #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/Printable.h ================================================ /* Printable.h - Interface class that allows printing of complex types Copyright (c) 2011 Adrian McEwen. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef Printable_h #define Printable_h #include class Print; /** The Printable class provides a way for new classes to allow themselves to be printed. By deriving from Printable and implementing the printTo method, it will then be possible for users to print out instances of this class by passing them into the usual Print::print and Print::println methods. */ class Printable { public: virtual ~Printable() {} virtual size_t printTo(Print& p) const = 0; }; #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/U8g2lib.hpp ================================================ #ifndef U8G2LIB_HH #define U8G2LIB_HH #include #include "U8x8lib.h" #include "u8g2.h" #include "soft_i2c.h" extern I2C_HandleTypeDef *U8G2_I2C_HANDLE; extern SPI_HandleTypeDef *U8G2_SPI_HANDLE; class U8G2 : public Print { protected: u8g2_t u8g2; u8x8_char_cb cpp_next_cb; /* the cpp interface has its own decoding function for the Arduino print command */ public: u8g2_uint_t tx, ty; U8G2(void) { cpp_next_cb = u8x8_ascii_next; home(); } u8x8_t *getU8x8(void) { return u8g2_GetU8x8(&u8g2); } u8g2_t *getU8g2(void) { return &u8g2; } void sendF(const char *fmt, ...) { va_list va; va_start(va, fmt); u8x8_cad_vsendf(u8g2_GetU8x8(&u8g2), fmt, va); va_end(va); } uint32_t getBusClock(void) { return u8g2_GetU8x8(&u8g2)->bus_clock; } void setBusClock(uint32_t clock_speed) { u8g2_GetU8x8(&u8g2)->bus_clock = clock_speed; } void setI2CAddress(uint8_t adr) { u8g2_SetI2CAddress(&u8g2, adr); } void enableUTF8Print(void) { cpp_next_cb = u8x8_utf8_next; } void disableUTF8Print(void) { cpp_next_cb = u8x8_ascii_next; } /* u8x8 interface */ uint8_t getCols(void) { return u8x8_GetCols(u8g2_GetU8x8(&u8g2)); } uint8_t getRows(void) { return u8x8_GetRows(u8g2_GetU8x8(&u8g2)); } void drawTile(uint8_t x, uint8_t y, uint8_t cnt, uint8_t *tile_ptr) { u8x8_DrawTile(u8g2_GetU8x8(&u8g2), x, y, cnt, tile_ptr); } /* return 0 for no event or U8X8_MSG_GPIO_MENU_SELECT, */ /* U8X8_MSG_GPIO_MENU_NEXT, U8X8_MSG_GPIO_MENU_PREV, */ /* U8X8_MSG_GPIO_MENU_HOME */ uint8_t getMenuEvent(void) { return u8x8_GetMenuEvent(u8g2_GetU8x8(&u8g2)); } void initDisplay(void) { u8g2_InitDisplay(&u8g2); } void clearDisplay(void) { u8g2_ClearDisplay(&u8g2); } void setPowerSave(uint8_t is_enable) { u8g2_SetPowerSave(&u8g2, is_enable); } void setFlipMode(uint8_t mode) { u8g2_SetFlipMode(&u8g2, mode); } void setContrast(uint8_t value) { u8g2_SetContrast(&u8g2, value); } void setDisplayRotation(const u8g2_cb_t *u8g2_cb) { u8g2_SetDisplayRotation(&u8g2, u8g2_cb); } bool Init() { if (U8G2_I2C_HANDLE->Instance == I2C_SOFT) Soft_I2C_Init(); /* note: call to u8x8_utf8_init is not required here, this is done in the setup procedures before */ setPowerSave(1); initDisplay(); clearDisplay(); clearBuffer(); setPowerSave(0); return 1; } void beginSimple() { /* does not clear the display and does not wake up the display */ /* user is responsible for calling clearDisplay() and setPowerSave(0) */ initDisplay(); } /* u8g2 */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT void setMaxClipWindow() { u8g2_SetMaxClipWindow(&u8g2); } void setClipWindow(u8g2_uint_t clip_x0, u8g2_uint_t clip_y0, u8g2_uint_t clip_x1, u8g2_uint_t clip_y1) { u8g2_SetClipWindow(&u8g2, clip_x0, clip_y0, clip_x1, clip_y1); } #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ u8g2_uint_t getDisplayHeight(void) { return u8g2_GetDisplayHeight(&u8g2); } u8g2_uint_t getDisplayWidth(void) { return u8g2_GetDisplayWidth(&u8g2); } /* u8g2_buffer.c */ void sendBuffer(void) { u8g2_SendBuffer(&u8g2); } void clearBuffer(void) { u8g2_ClearBuffer(&u8g2); } void firstPage(void) { u8g2_FirstPage(&u8g2); } uint8_t nextPage(void) { return u8g2_NextPage(&u8g2); } uint8_t *getBufferPtr(void) { return u8g2_GetBufferPtr(&u8g2); } uint8_t getBufferTileHeight(void) { return u8g2_GetBufferTileHeight(&u8g2); } uint8_t getBufferTileWidth(void) { return u8g2_GetBufferTileWidth(&u8g2); } uint8_t getPageCurrTileRow(void) { return u8g2_GetBufferCurrTileRow(&u8g2); } // obsolete void setPageCurrTileRow(uint8_t row) { u8g2_SetBufferCurrTileRow(&u8g2, row); } // obsolete uint8_t getBufferCurrTileRow(void) { return u8g2_GetBufferCurrTileRow(&u8g2); } void setBufferCurrTileRow(uint8_t row) { u8g2_SetBufferCurrTileRow(&u8g2, row); } // this should be renamed to setBufferAutoClear void setAutoPageClear(uint8_t mode) { u8g2_SetAutoPageClear(&u8g2, mode); } void updateDisplayArea(uint8_t tx, uint8_t ty, uint8_t tw, uint8_t th) { u8g2_UpdateDisplayArea(&u8g2, tx, ty, tw, th); } void updateDisplay(void) { u8g2_UpdateDisplay(&u8g2); } void refreshDisplay(void) { u8x8_RefreshDisplay(u8g2_GetU8x8(&u8g2)); } /* clib/u8g2.hvline.c */ void setDrawColor(uint8_t color_index) { u8g2_SetDrawColor(&u8g2, color_index); } uint8_t getDrawColor(void) { return u8g2_GetDrawColor(&u8g2); } void drawPixel(u8g2_uint_t x, u8g2_uint_t y) { u8g2_DrawPixel(&u8g2, x, y); } void drawHLine(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w) { u8g2_DrawHLine(&u8g2, x, y, w); } void drawVLine(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t h) { u8g2_DrawVLine(&u8g2, x, y, h); } void drawHVLine(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_DrawHVLine(&u8g2, x, y, len, dir); } /* u8g2_box.c */ void drawFrame(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h) { u8g2_DrawFrame(&u8g2, x, y, w, h); } void drawRFrame(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r) { u8g2_DrawRFrame(&u8g2, x, y, w, h, r); } void drawBox(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h) { u8g2_DrawBox(&u8g2, x, y, w, h); } void drawRBox(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r) { u8g2_DrawRBox(&u8g2, x, y, w, h, r); } /* u8g2_circle.c */ void drawCircle(u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t opt = U8G2_DRAW_ALL) { u8g2_DrawCircle(&u8g2, x0, y0, rad, opt); } void drawDisc(u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t opt = U8G2_DRAW_ALL) { u8g2_DrawDisc(&u8g2, x0, y0, rad, opt); } void drawEllipse(u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t opt = U8G2_DRAW_ALL) { u8g2_DrawEllipse(&u8g2, x0, y0, rx, ry, opt); } void drawFilledEllipse(u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t opt = U8G2_DRAW_ALL) { u8g2_DrawFilledEllipse(&u8g2, x0, y0, rx, ry, opt); } /* u8g2_line.c */ void drawLine(u8g2_uint_t x1, u8g2_uint_t y1, u8g2_uint_t x2, u8g2_uint_t y2) { u8g2_DrawLine(&u8g2, x1, y1, x2, y2); } /* u8g2_bitmap.c */ void setBitmapMode(uint8_t is_transparent) { u8g2_SetBitmapMode(&u8g2, is_transparent); } void drawBitmap(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t cnt, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_DrawBitmap(&u8g2, x, y, cnt, h, bitmap); } void drawXBM(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_DrawXBM(&u8g2, x, y, w, h, bitmap); } void drawXBMP(u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_DrawXBMP(&u8g2, x, y, w, h, bitmap); } /* u8g2_polygon.c */ void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2) { u8g2_DrawTriangle(&u8g2, x0, y0, x1, y1, x2, y2); } /* u8log_u8g2.c */ void drawLog(u8g2_uint_t x, u8g2_uint_t y, class U8G2LOG &u8g2log); /* u8g2_font.c */ void setFont(const uint8_t *font) { u8g2_SetFont(&u8g2, font); } void setFontMode(uint8_t is_transparent) { u8g2_SetFontMode(&u8g2, is_transparent); } void setFontDirection(uint8_t dir) { u8g2_SetFontDirection(&u8g2, dir); } int8_t getAscent(void) { return u8g2_GetAscent(&u8g2); } int8_t getDescent(void) { return u8g2_GetDescent(&u8g2); } void setFontPosBaseline(void) { u8g2_SetFontPosBaseline(&u8g2); } void setFontPosBottom(void) { u8g2_SetFontPosBottom(&u8g2); } void setFontPosTop(void) { u8g2_SetFontPosTop(&u8g2); } void setFontPosCenter(void) { u8g2_SetFontPosCenter(&u8g2); } void setFontRefHeightText(void) { u8g2_SetFontRefHeightText(&u8g2); } void setFontRefHeightExtendedText(void) { u8g2_SetFontRefHeightExtendedText(&u8g2); } void setFontRefHeightAll(void) { u8g2_SetFontRefHeightAll(&u8g2); } /* uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding); int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding); u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s); u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str); */ u8g2_uint_t drawGlyph(u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding) { return u8g2_DrawGlyph(&u8g2, x, y, encoding); } u8g2_uint_t drawStr(u8g2_uint_t x, u8g2_uint_t y, const char *s) { return u8g2_DrawStr(&u8g2, x, y, s); } u8g2_uint_t drawUTF8(u8g2_uint_t x, u8g2_uint_t y, const char *s) { return u8g2_DrawUTF8(&u8g2, x, y, s); } u8g2_uint_t drawExtUTF8(u8g2_uint_t x, u8g2_uint_t y, uint8_t to_left, const uint16_t *kerning_table, const char *s) { return u8g2_DrawExtUTF8(&u8g2, x, y, to_left, kerning_table, s); } u8g2_uint_t getStrWidth(const char *s) { return u8g2_GetStrWidth(&u8g2, s); } u8g2_uint_t getUTF8Width(const char *s) { return u8g2_GetUTF8Width(&u8g2, s); } // not required any more, enable UTF8 for print //void printUTF8(const char *s) { tx += u8g2_DrawUTF8(&u8g2, tx, ty, s); } /* screenshot functions for full buffer mode */ /* vertical top lsb memory architecture */ void writeBufferPBM(Print &p); void writeBufferXBM(Print &p); /* horizontal right lsb memory architecture */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ void writeBufferPBM2(Print &p); void writeBufferXBM2(Print &p); /* virtual function for print base class */ size_t write(uint8_t v) { uint16_t e = cpp_next_cb(&(u8g2.u8x8), v); if (e < 0x0fffe) { u8g2_uint_t delta = u8g2_DrawGlyph(&u8g2, tx, ty, e); #ifdef U8G2_WITH_FONT_ROTATION switch (u8g2.font_decode.dir) { case 0: tx += delta; break; case 1: ty += delta; break; case 2: tx -= delta; break; case 3: ty -= delta; break; } // requires 10 bytes more on avr //tx = u8g2_add_vector_x(tx, delta, 0, u8g2.font_decode.dir); //ty = u8g2_add_vector_y(ty, delta, 0, u8g2.font_decode.dir); #else tx += delta; #endif } return 1; } size_t write(const uint8_t *buffer, size_t size) { size_t cnt = 0; while (size > 0) { cnt += write(*buffer++); size--; } return cnt; } /* user interface */ /* uint8_t u8g2_UserInterfaceSelectionList(u8g2_t *u8g2, const char *title, uint8_t start_pos, const char *sl); uint8_t u8g2_UserInterfaceMessage(u8g2_t *u8g2, const char *title1, const char *title2, const char *title3, const char *buttons); uint8_t u8g2_UserInterfaceInputValue(u8g2_t *u8g2, const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post); */ uint8_t userInterfaceSelectionList(const char *title, uint8_t start_pos, const char *sl) { return u8g2_UserInterfaceSelectionList(&u8g2, title, start_pos, sl); } uint8_t userInterfaceMessage(const char *title1, const char *title2, const char *title3, const char *buttons) { return u8g2_UserInterfaceMessage(&u8g2, title1, title2, title3, buttons); } uint8_t userInterfaceInputValue(const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post) { return u8g2_UserInterfaceInputValue(&u8g2, title, pre, value, lo, hi, digits, post); } /* LiquidCrystal compatible functions */ void home(void) { tx = 0; ty = 0; u8x8_utf8_init(u8g2_GetU8x8(&u8g2)); } void clear(void) { home(); clearDisplay(); clearBuffer(); } void noDisplay(void) { u8g2_SetPowerSave(&u8g2, 1); } void display(void) { u8g2_SetPowerSave(&u8g2, 0); } void setCursor(u8g2_uint_t x, u8g2_uint_t y) { tx = x; ty = y; } /* u8glib compatible functions */ void sleepOn(void) { u8g2_SetPowerSave(&u8g2, 1); } void sleepOff(void) { u8g2_SetPowerSave(&u8g2, 0); } void setColorIndex(uint8_t color_index) { u8g2_SetDrawColor(&u8g2, color_index); } uint8_t getColorIndex(void) { return u8g2_GetDrawColor(&u8g2); } int8_t getFontAscent(void) { return u8g2_GetAscent(&u8g2); } int8_t getFontDescent(void) { return u8g2_GetDescent(&u8g2); } int8_t getMaxCharHeight(void) { return u8g2_GetMaxCharHeight(&u8g2); } int8_t getMaxCharWidth(void) { return u8g2_GetMaxCharWidth(&u8g2); } u8g2_uint_t getHeight() { return u8g2_GetDisplayHeight(&u8g2); } u8g2_uint_t getWidth() { return u8g2_GetDisplayWidth(&u8g2); } }; void u8g2_print_callback(const char *s); /* U8g2lib.cpp */ class U8G2LOG : public Print { public: u8log_t u8log; /* the constructor does nothing, use begin() instead */ U8G2LOG(void) {} /* connect to u8g2, draw to u8g2 whenever required */ bool begin(class U8G2 &u8g2, uint8_t width, uint8_t height, uint8_t *buf) { u8log_Init(&u8log, width, height, buf); u8log_SetCallback(&u8log, u8log_u8g2_cb, u8g2.getU8g2()); return true; } /* disconnected version, manual redraw required */ bool begin(uint8_t width, uint8_t height, uint8_t *buf) { u8log_Init(&u8log, width, height, buf); return true; } void setLineHeightOffset(int8_t line_height_offset) { u8log_SetLineHeightOffset(&u8log, line_height_offset); } void setRedrawMode(uint8_t is_redraw_line_for_each_char) { u8log_SetRedrawMode(&u8log, is_redraw_line_for_each_char); } /* virtual function for print base class */ size_t write(uint8_t v) { u8log_WriteChar(&u8log, v); return 1; } size_t write(const uint8_t *buffer, size_t size) { size_t cnt = 0; while (size > 0) { cnt += write(*buffer++); size--; } return cnt; } void writeString(const char *s) { u8log_WriteString(&u8log, s); } void writeChar(uint8_t c) { u8log_WriteChar(&u8log, c); } void writeHex8(uint8_t b) { u8log_WriteHex8(&u8log, b); } void writeHex16(uint16_t v) { u8log_WriteHex16(&u8log, v); } void writeHex32(uint32_t v) { u8log_WriteHex32(&u8log, v); } void writeDec8(uint8_t v, uint8_t d) { u8log_WriteDec8(&u8log, v, d); } void writeDec16(uint8_t v, uint8_t d) { u8log_WriteDec16(&u8log, v, d); } }; /* u8log_u8g2.c */ inline void U8G2::drawLog(u8g2_uint_t x, u8g2_uint_t y, class U8G2LOG &u8g2log) { u8g2_DrawLog(&u8g2, x, y, &(u8g2log.u8log)); } class U8G2_BITMAP : public U8G2 { public: U8G2_BITMAP(uint16_t pixel_width, uint16_t pixel_height, const u8g2_cb_t *rotation) { u8g2_SetupBitmap(getU8g2(), rotation, pixel_width, pixel_height); } // This completely resets various settings, such as the // font, so be sure to re-initialize things void changeSize(uint16_t pixel_width, uint16_t pixel_height) { u8g2_SetupBitmap(getU8g2(), getU8g2()->cb, pixel_width, pixel_height); } }; class SSD1306 : public U8G2 { private: public: explicit SSD1306(I2C_HandleTypeDef *_hi2c, const u8g2_cb_t *rotation = U8G2_R3) : U8G2() { U8G2_I2C_HANDLE = _hi2c; u8g2_Setup_ssd1306_i2c_128x80_noname_f(&u8g2, rotation, u8x8_byte_stm32_hw_i2c, u8x8_stm32_gpio_and_delay); } }; #endif /* _U8G2LIB_HH */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/U8x8lib.cpp ================================================ #include "U8x8lib.h" /*=============================================*/ size_t U8X8::write(uint8_t v) { if ( v == '\n' ) { uint8_t dy = u8x8_pgm_read(u8x8.font+3); /* new 2019 format */ ty+=dy; tx=0; } else { uint8_t dx = u8x8_pgm_read(u8x8.font+2); /* new 2019 format */ u8x8_DrawGlyph(&u8x8, tx, ty, v); tx+=dx; } return 1; } /*=============================================*/ /*=== ARDUINO GPIO & DELAY ===*/ #ifdef U8X8_USE_PINS extern "C" uint8_t u8x8_gpio_and_delay_arduino(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { uint8_t i; switch(msg) { case U8X8_MSG_GPIO_AND_DELAY_INIT: for( i = 0; i < U8X8_PIN_CNT; i++ ) if ( u8x8->pins[i] != U8X8_PIN_NONE ) { if ( i < U8X8_PIN_OUTPUT_CNT ) { pinMode(u8x8->pins[i], OUTPUT); } else { #ifdef INPUT_PULLUP pinMode(u8x8->pins[i], INPUT_PULLUP); #else pinMode(u8x8->pins[i], OUTPUT); digitalWrite(u8x8->pins[i], 1); #endif } } break; #ifndef __AVR__ /* this case is not compiled for any AVR, because AVR uC are so slow */ /* that this delay does not matter */ case U8X8_MSG_DELAY_NANO: delayMicroseconds(arg_int==0?0:1); break; #endif case U8X8_MSG_DELAY_10MICRO: /* not used at the moment */ break; case U8X8_MSG_DELAY_100NANO: /* not used at the moment */ break; case U8X8_MSG_DELAY_MILLI: delay(arg_int); break; case U8X8_MSG_DELAY_I2C: /* arg_int is 1 or 4: 100KHz (5us) or 400KHz (1.25us) */ delayMicroseconds(arg_int<=2?5:2); break; case U8X8_MSG_GPIO_I2C_CLOCK: case U8X8_MSG_GPIO_I2C_DATA: if ( arg_int == 0 ) { pinMode(u8x8_GetPinValue(u8x8, msg), OUTPUT); digitalWrite(u8x8_GetPinValue(u8x8, msg), 0); } else { #ifdef INPUT_PULLUP pinMode(u8x8_GetPinValue(u8x8, msg), INPUT_PULLUP); #else pinMode(u8x8_GetPinValue(u8x8, msg), OUTPUT); digitalWrite(u8x8_GetPinValue(u8x8, msg), 1); #endif } break; default: if ( msg >= U8X8_MSG_GPIO(0) ) { i = u8x8_GetPinValue(u8x8, msg); if ( i != U8X8_PIN_NONE ) { if ( u8x8_GetPinIndex(u8x8, msg) < U8X8_PIN_OUTPUT_CNT ) { digitalWrite(i, arg_int); } else { if ( u8x8_GetPinIndex(u8x8, msg) == U8X8_PIN_OUTPUT_CNT ) { // call yield() for the first pin only, u8x8 will always request all the pins, so this should be ok yield(); } u8x8_SetGPIOResult(u8x8, digitalRead(i) == 0 ? 0 : 1); } } break; } return 0; } return 1; } #endif // U8X8_USE_PINS /*=============================================*/ /*=== 3 WIRE SOFTWARE SPI ===*/ /* replacement for a more faster u8x8_byte_3wire_sw_spi in general u8x8_byte_3wire_sw_spi could be a fallback: uint8_t u8x8_byte_arduino_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_3wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } */ #ifndef __AVR_ARCH__ #define __AVR_ARCH__ 0 #endif #if !defined(U8X8_USE_PINS) /* no pin information (very strange), so fallback */ uint8_t u8x8_byte_arduino_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_3wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } #elif __AVR_ARCH__ == 4 || __AVR_ARCH__ == 5 || __AVR_ARCH__ == 51 || __AVR_ARCH__ == 6 || __AVR_ARCH__ == 103 /* this function completly replaces u8x8_byte_4wire_sw_spi*/ extern "C" uint8_t u8x8_byte_arduino_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i; uint8_t takeover_edge = u8x8_GetSPIClockPhase(u8x8); uint16_t b; uint8_t *data; /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ static volatile uint8_t *arduino_clock_port; static uint8_t arduino_clock_mask; static uint8_t arduino_clock_n_mask; static volatile uint8_t *arduino_data_port; static uint8_t arduino_data_mask; static uint8_t arduino_data_n_mask; static uint8_t last_dc; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; if ( takeover_edge == 0 ) { while( arg_int > 0 ) { b = *data; if ( last_dc != 0 ) b |= 256; data++; arg_int--; /* issue 156, check for speed */ #if F_CPU <= 17000000 if ( b == 0 ) { *arduino_data_port &= arduino_data_n_mask; for( i = 0; i < 9; i++ ) { *arduino_clock_port |= arduino_clock_mask; *arduino_clock_port &= arduino_clock_n_mask; } } else #endif { for( i = 0; i < 9; i++ ) { if ( b & 256 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; *arduino_clock_port |= arduino_clock_mask; b <<= 1; *arduino_clock_port &= arduino_clock_n_mask; } } } } else { while( arg_int > 0 ) { b = *data; if ( last_dc != 0 ) b |= 256; data++; arg_int--; /* issue 156, check for speed */ #if F_CPU <= 17000000 if ( b == 0 ) { *arduino_data_port &= arduino_data_n_mask; for( i = 0; i < 9; i++ ) { *arduino_clock_port &= arduino_clock_n_mask; *arduino_clock_port |= arduino_clock_mask; } } else #endif { for( i = 0; i < 9; i++ ) { if ( b & 256 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; *arduino_clock_port &= arduino_clock_n_mask; b <<= 1; *arduino_clock_port |= arduino_clock_mask; } } } } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ u8x8_gpio_SetSPIClock(u8x8, u8x8_GetSPIClockPhase(u8x8)); break; case U8X8_MSG_BYTE_SET_DC: last_dc = arg_int; break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); /* there is no consistency checking for u8x8->pins[U8X8_PIN_SPI_CLOCK] */ arduino_clock_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_CLOCK])); arduino_clock_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_CLOCK]); arduino_clock_n_mask = ~arduino_clock_mask; /* there is no consistency checking for u8x8->pins[U8X8_PIN_SPI_DATA] */ arduino_data_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_DATA])); arduino_data_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_DATA]); arduino_data_n_mask = ~arduino_data_mask; break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } #else /* fallback */ uint8_t u8x8_byte_arduino_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_3wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } #endif /*=============================================*/ /*=== 4 WIRE SOFTWARE SPI ===*/ /* replacement for a more faster u8x8_byte_4wire_sw_spi in general u8x8_byte_4wire_sw_spi could be a fallback: uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_4wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } */ #ifndef __AVR_ARCH__ #define __AVR_ARCH__ 0 #endif #if !defined(U8X8_USE_PINS) /* no pin information (very strange), so fallback */ uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_4wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } #elif __AVR_ARCH__ == 4 || __AVR_ARCH__ == 5 || __AVR_ARCH__ == 51 || __AVR_ARCH__ == 6 || __AVR_ARCH__ == 103 /* this function completly replaces u8x8_byte_4wire_sw_spi*/ extern "C" uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t SREG_backup; uint8_t i, b; uint8_t *data; uint8_t takeover_edge = u8x8_GetSPIClockPhase(u8x8); //uint8_t not_takeover_edge = 1 - takeover_edge; /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ static volatile uint8_t *arduino_clock_port; static uint8_t arduino_clock_mask; static uint8_t arduino_clock_n_mask; static volatile uint8_t *arduino_data_port; static uint8_t arduino_data_mask; static uint8_t arduino_data_n_mask; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; if ( takeover_edge == 0 ) { while( arg_int > 0 ) { b = *data; data++; arg_int--; SREG_backup = SREG; cli(); /* issue 156, check for speed */ #if F_CPU <= 17000000 if ( b == 0 ) { *arduino_data_port &= arduino_data_n_mask; for( i = 0; i < 8; i++ ) { *arduino_clock_port |= arduino_clock_mask; *arduino_clock_port &= arduino_clock_n_mask; } } else #endif { for( i = 0; i < 8; i++ ) { if ( b & 128 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; *arduino_clock_port |= arduino_clock_mask; b <<= 1; *arduino_clock_port &= arduino_clock_n_mask; } } SREG = SREG_backup; } } else { while( arg_int > 0 ) { b = *data; data++; arg_int--; SREG_backup = SREG; cli(); /* issue 156, check for speed */ #if F_CPU <= 17000000 if ( b == 0 ) { *arduino_data_port &= arduino_data_n_mask; for( i = 0; i < 8; i++ ) { *arduino_clock_port &= arduino_clock_n_mask; *arduino_clock_port |= arduino_clock_mask; } } else #endif { for( i = 0; i < 8; i++ ) { if ( b & 128 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; *arduino_clock_port &= arduino_clock_n_mask; b <<= 1; *arduino_clock_port |= arduino_clock_mask; } } SREG = SREG_backup; } } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ u8x8_gpio_SetSPIClock(u8x8, u8x8_GetSPIClockPhase(u8x8)); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); /* there is no consistency checking for u8x8->pins[U8X8_PIN_SPI_CLOCK] */ arduino_clock_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_CLOCK])); arduino_clock_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_CLOCK]); arduino_clock_n_mask = ~arduino_clock_mask; /* there is no consistency checking for u8x8->pins[U8X8_PIN_SPI_DATA] */ arduino_data_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_DATA])); arduino_data_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_DATA]); arduino_data_n_mask = ~arduino_data_mask; break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } #elif defined(__SAM3X8E__) /* Arduino DUE */ /* this function completly replaces u8x8_byte_4wire_sw_spi*/ extern "C" uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint16_t us = ((u8x8->display_info->sck_pulse_width_ns + 999)/1000); uint8_t *data; uint8_t takeover_edge = u8x8_GetSPIClockPhase(u8x8); //uint8_t not_takeover_edge = 1 - takeover_edge; /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ /* static volatile uint32_t *arduino_clock_port; static uint32_t arduino_clock_mask; static uint32_t arduino_clock_n_mask; static volatile uint32_t *arduino_data_port; static uint32_t arduino_data_mask; static uint32_t arduino_data_n_mask; */ static WoReg *arduinoSetClockPort, *arduinoUnsetClockPort; static uint32_t arduino_clock_mask; static WoReg *arduinoSetDataPort, *arduinoUnsetDataPort; static uint32_t arduino_data_mask; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; if ( takeover_edge == 0 ) { while( arg_int > 0 ) { b = *data; data++; arg_int--; { for( i = 0; i < 8; i++ ) { /* if ( b & 128 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; */ if (b & 128) *arduinoSetDataPort = arduino_data_mask; else *arduinoUnsetDataPort = arduino_data_mask; //delayMicroseconds(us); //*arduino_clock_port |= arduino_clock_mask; *arduinoSetClockPort = arduino_clock_mask; b <<= 1; delayMicroseconds(us); //*arduino_clock_port &= arduino_clock_n_mask; *arduinoUnsetClockPort = arduino_clock_mask; } } } } else { while( arg_int > 0 ) { b = *data; data++; arg_int--; { for( i = 0; i < 8; i++ ) { /* if ( b & 128 ) *arduino_data_port |= arduino_data_mask; else *arduino_data_port &= arduino_data_n_mask; */ if (b & 128) *arduinoSetDataPort = arduino_data_mask; else *arduinoUnsetDataPort = arduino_data_mask; //delayMicroseconds(us); //*arduino_clock_port &= arduino_clock_n_mask; *arduinoUnsetClockPort = arduino_clock_mask; b <<= 1; delayMicroseconds(us); //*arduino_clock_port |= arduino_clock_mask; *arduinoSetClockPort = arduino_clock_mask; } } } } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ u8x8_gpio_SetSPIClock(u8x8, u8x8_GetSPIClockPhase(u8x8)); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); /* there is no consistency checking for u8x8->pins[U8X8_PIN_SPI_CLOCK] */ /* arduino_clock_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_CLOCK])); arduino_clock_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_CLOCK]); arduino_clock_n_mask = ~arduino_clock_mask; arduino_data_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_DATA])); arduino_data_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_DATA]); arduino_data_n_mask = ~arduino_data_mask; */ arduinoSetClockPort = &digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_CLOCK])->PIO_SODR; arduinoUnsetClockPort = &digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_CLOCK])->PIO_CODR; arduino_clock_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_CLOCK]); arduinoSetDataPort = &digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_DATA])->PIO_SODR; arduinoUnsetDataPort = &digitalPinToPort(u8x8->pins[U8X8_PIN_SPI_DATA])->PIO_CODR; arduino_data_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_SPI_DATA]); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } #else /* fallback */ uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_4wire_sw_spi(u8x8, msg,arg_int, arg_ptr); } #endif /*=============================================*/ /*=== 3 WIRE HARDWARE SPI with 8 bit HW SPI Subsystem ===*/ /* references: https://github.com/olikraus/ucglib/blob/master/cppsrc/Ucglib.cpp#L581 https://github.com/olikraus/u8g2/issues/1041 */ static uint8_t arduino_hw_spi_3w_buffer[9]; static uint8_t arduino_hw_spi_3w_bytepos; static uint16_t arduino_hw_spi_3w_dc; // 0 = dc==0, 256 = dc==1 static void arduino_hw_spi_3w_init() { memset(arduino_hw_spi_3w_buffer, 0, 9); arduino_hw_spi_3w_bytepos = 0; } static void arduino_hw_spi_3w_flush(void) { #ifdef U8X8_HAVE_HW_SPI uint8_t i; for(i = 0; i <= arduino_hw_spi_3w_bytepos; i++) { SPI.transfer(arduino_hw_spi_3w_buffer[i]); } #endif } static void arduino_hw_spi_3w_sendbyte(uint8_t data) { static union { uint16_t val; struct { uint8_t lsb; uint8_t msb; }; } data16; // well well, not legal ISO 9899 code data16.val = (arduino_hw_spi_3w_dc + data) << (7 - arduino_hw_spi_3w_bytepos); #ifdef __BYTE_ORDER__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.msb; ++arduino_hw_spi_3w_bytepos; arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.lsb; #else arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.lsb; ++arduino_hw_spi_3w_bytepos; arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.msb; #endif #else // __BYTE_ORDER__ not defined (no gcc) // assume little endian arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.msb; ++arduino_hw_spi_3w_bytepos; arduino_hw_spi_3w_buffer[arduino_hw_spi_3w_bytepos] |= data16.lsb; #endif if (arduino_hw_spi_3w_bytepos == 8) { arduino_hw_spi_3w_flush(); arduino_hw_spi_3w_init(); } } extern "C" uint8_t u8x8_byte_arduino_3wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { #ifdef U8X8_HAVE_HW_SPI uint8_t *data; uint8_t internal_spi_mode; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while(arg_int > 0) { arduino_hw_spi_3w_sendbyte((uint8_t)*data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: if ( u8x8->bus_clock == 0 ) /* issue 769 */ u8x8->bus_clock = u8x8->display_info->sck_clock_hz; /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); #if defined(ESP_PLATFORM) || defined(ARDUINO_ARCH_ESP32) /* ESP32 has the following begin: SPI.begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1); */ /* not sure about ESP8266 */ if ( u8x8->pins[U8X8_PIN_I2C_CLOCK] != U8X8_PIN_NONE && u8x8->pins[U8X8_PIN_I2C_DATA] != U8X8_PIN_NONE ) { /* SPI.begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1); */ /* actually MISO is not used, but what else could be used here??? */ SPI.begin(u8x8->pins[U8X8_PIN_I2C_CLOCK], MISO, u8x8->pins[U8X8_PIN_I2C_DATA]); } else { SPI.begin(); } #else SPI.begin(); #endif break; case U8X8_MSG_BYTE_SET_DC: arduino_hw_spi_3w_dc = arg_int ? 256 : 0; break; case U8X8_MSG_BYTE_START_TRANSFER: /* SPI mode has to be mapped to the mode of the current controller; at least Uno, Due, 101 have different SPI_MODEx values */ internal_spi_mode = 0; switch(u8x8->display_info->spi_mode) { case 0: internal_spi_mode = SPI_MODE0; break; case 1: internal_spi_mode = SPI_MODE1; break; case 2: internal_spi_mode = SPI_MODE2; break; case 3: internal_spi_mode = SPI_MODE3; break; } #if ARDUINO >= 10600 SPI.beginTransaction( SPISettings(u8x8->bus_clock, MSBFIRST, internal_spi_mode)); #else SPI.begin(); if (u8x8->display_info->sck_pulse_width_ns < 70) SPI.setClockDivider(SPI_CLOCK_DIV2); else if (u8x8->display_info->sck_pulse_width_ns < 140) SPI.setClockDivider(SPI_CLOCK_DIV4); else SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setDataMode(internal_spi_mode); SPI.setBitOrder(MSBFIRST); #endif u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb( u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); arduino_hw_spi_3w_init(); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb( u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); if (arduino_hw_spi_3w_bytepos) arduino_hw_spi_3w_flush(); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); #if ARDUINO >= 10600 SPI.endTransaction(); #else SPI.end(); #endif break; default: return 0; } #endif // U8X8_HAVE_HW_SPI return 1; } /*=============================================*/ /*=== 4 WIRE HARDWARE SPI ===*/ #ifdef U8X8_USE_PINS extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { #ifdef U8X8_HAVE_HW_SPI uint8_t *data; uint8_t internal_spi_mode; switch(msg) { case U8X8_MSG_BYTE_SEND: // 1.6.5 offers a block transfer, but the problem is, that the // buffer is overwritten with the incoming data // so it can not be used... // SPI.transfer((uint8_t *)arg_ptr, arg_int); data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { SPI.transfer((uint8_t)*data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: if ( u8x8->bus_clock == 0 ) /* issue 769 */ u8x8->bus_clock = u8x8->display_info->sck_clock_hz; /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ // removed, use SPI.begin() instead: pinMode(11, OUTPUT); // removed, use SPI.begin() instead: pinMode(13, OUTPUT); // removed, use SPI.begin() instead: digitalWrite(13, u8x8_GetSPIClockPhase(u8x8)); /* setup hardware with SPI.begin() instead of previous digitalWrite() and pinMode() calls */ /* issue #377 */ /* issue #378: removed ESP8266 support, which is implemented differently */ #if defined(ESP_PLATFORM) || defined(ARDUINO_ARCH_ESP32) /* ESP32 has the following begin: SPI.begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1); */ /* not sure about ESP8266 */ if ( u8x8->pins[U8X8_PIN_I2C_CLOCK] != U8X8_PIN_NONE && u8x8->pins[U8X8_PIN_I2C_DATA] != U8X8_PIN_NONE ) { /* SPI.begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1); */ /* actually MISO is not used, but what else could be used here??? */ SPI.begin(u8x8->pins[U8X8_PIN_I2C_CLOCK], MISO, u8x8->pins[U8X8_PIN_I2C_DATA]); } else { SPI.begin(); } #else SPI.begin(); #endif break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: /* SPI mode has to be mapped to the mode of the current controller, at least Uno, Due, 101 have different SPI_MODEx values */ internal_spi_mode = 0; switch(u8x8->display_info->spi_mode) { case 0: internal_spi_mode = SPI_MODE0; break; case 1: internal_spi_mode = SPI_MODE1; break; case 2: internal_spi_mode = SPI_MODE2; break; case 3: internal_spi_mode = SPI_MODE3; break; } #if ARDUINO >= 10600 SPI.beginTransaction(SPISettings(u8x8->bus_clock, MSBFIRST, internal_spi_mode)); #else SPI.begin(); if ( u8x8->display_info->sck_pulse_width_ns < 70 ) SPI.setClockDivider( SPI_CLOCK_DIV2 ); else if ( u8x8->display_info->sck_pulse_width_ns < 140 ) SPI.setClockDivider( SPI_CLOCK_DIV4 ); else SPI.setClockDivider( SPI_CLOCK_DIV8 ); SPI.setDataMode(internal_spi_mode); SPI.setBitOrder(MSBFIRST); #endif u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); #if ARDUINO >= 10600 SPI.endTransaction(); #else SPI.end(); #endif break; default: return 0; } #else /* U8X8_HAVE_HW_SPI */ #endif /* U8X8_HAVE_HW_SPI */ return 1; } /* issue #244 */ extern "C" uint8_t u8x8_byte_arduino_2nd_hw_spi(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { #ifdef U8X8_HAVE_2ND_HW_SPI uint8_t *data; uint8_t internal_spi_mode; switch(msg) { case U8X8_MSG_BYTE_SEND: // 1.6.5 offers a block transfer, but the problem is, that the // buffer is overwritten with the incoming data // so it can not be used... // SPI.transfer((uint8_t *)arg_ptr, arg_int); data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { SPI1.transfer((uint8_t)*data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: if ( u8x8->bus_clock == 0 ) /* issue 769 */ u8x8->bus_clock = u8x8->display_info->sck_clock_hz; /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI1: setup correct level of the clock signal */ // removed, use SPI.begin() instead: pinMode(11, OUTPUT); // removed, use SPI.begin() instead: pinMode(13, OUTPUT); // removed, use SPI.begin() instead: digitalWrite(13, u8x8_GetSPIClockPhase(u8x8)); /* setup hardware with SPI.begin() instead of previous digitalWrite() and pinMode() calls */ SPI1.begin(); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: /* SPI1 mode has to be mapped to the mode of the current controller, at least Uno, Due, 101 have different SPI_MODEx values */ internal_spi_mode = 0; switch(u8x8->display_info->spi_mode) { case 0: internal_spi_mode = SPI_MODE0; break; case 1: internal_spi_mode = SPI_MODE1; break; case 2: internal_spi_mode = SPI_MODE2; break; case 3: internal_spi_mode = SPI_MODE3; break; } #if ARDUINO >= 10600 SPI1.beginTransaction(SPISettings(u8x8->bus_clock, MSBFIRST, internal_spi_mode)); #else SPI1.begin(); if ( u8x8->display_info->sck_pulse_width_ns < 70 ) SPI1.setClockDivider( SPI_CLOCK_DIV2 ); else if ( u8x8->display_info->sck_pulse_width_ns < 140 ) SPI1.setClockDivider( SPI_CLOCK_DIV4 ); else SPI1.setClockDivider( SPI_CLOCK_DIV8 ); SPI1.setDataMode(internal_spi_mode); SPI1.setBitOrder(MSBFIRST); #endif u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); #if ARDUINO >= 10600 SPI1.endTransaction(); #else SPI1.end(); #endif break; default: return 0; } #else #endif return 1; } /*=============================================*/ /* fast SW I2C for AVR uC */ #if !defined(U8X8_USE_PINS) /* no pin information (very strange), so fallback */ extern "C" uint8_t u8x8_byte_arduino_sw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { return u8x8_byte_sw_i2c(u8x8, msg,arg_int, arg_ptr); } #elif !defined(U8X8_USE_ARDUINO_AVR_SW_I2C_OPTIMIZATION) extern "C" uint8_t u8x8_byte_arduino_sw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { return u8x8_byte_sw_i2c(u8x8, msg,arg_int, arg_ptr); } #elif __AVR_ARCH__ == 4 || __AVR_ARCH__ == 5 || __AVR_ARCH__ == 51 || __AVR_ARCH__ == 6 || __AVR_ARCH__ == 103 /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ static volatile uint8_t *arduino_i2c_clock_port; static uint8_t arduino_i2c_clock_mask; static uint8_t arduino_i2c_clock_n_mask; static volatile uint8_t *arduino_i2c_data_port; static uint8_t arduino_i2c_data_mask; static uint8_t arduino_i2c_data_n_mask; /* software i2c, ignores ACK response (which is anyway not provided by some displays) also does not allow reading from the device */ static void i2c_delay(u8x8_t *u8x8) U8X8_NOINLINE; static void i2c_delay(u8x8_t *u8x8) { //u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_10MICRO, u8x8->display_info->i2c_bus_clock_100kHz); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_I2C, u8x8->display_info->i2c_bus_clock_100kHz); } static void i2c_init(u8x8_t *u8x8) { *arduino_i2c_clock_port |= arduino_i2c_clock_mask; *arduino_i2c_data_port |= arduino_i2c_data_mask; i2c_delay(u8x8); } /* actually, the scl line is not observed, so this procedure does not return a value */ static void i2c_read_scl_and_delay(u8x8_t *u8x8) { /* set as input (line will be high) */ *arduino_i2c_clock_port |= arduino_i2c_clock_mask; i2c_delay(u8x8); } static void i2c_clear_scl(u8x8_t *u8x8) { *arduino_i2c_clock_port &= arduino_i2c_clock_n_mask; } static void i2c_read_sda(u8x8_t *u8x8) { /* set as input (line will be high) */ *arduino_i2c_data_port |= arduino_i2c_data_mask; } static void i2c_clear_sda(u8x8_t *u8x8) { /* set open collector and drive low */ *arduino_i2c_data_port &= arduino_i2c_data_n_mask; } static void i2c_start(u8x8_t *u8x8) { if ( u8x8->i2c_started != 0 ) { /* if already started: do restart */ i2c_read_sda(u8x8); /* SDA = 1 */ i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); } i2c_read_sda(u8x8); /* send the start condition, both lines go from 1 to 0 */ i2c_clear_sda(u8x8); i2c_delay(u8x8); i2c_clear_scl(u8x8); u8x8->i2c_started = 1; } static void i2c_stop(u8x8_t *u8x8) { /* set SDA to 0 */ i2c_clear_sda(u8x8); i2c_delay(u8x8); /* now release all lines */ i2c_read_scl_and_delay(u8x8); /* set SDA to 1 */ i2c_read_sda(u8x8); i2c_delay(u8x8); u8x8->i2c_started = 0; } static void i2c_write_bit(u8x8_t *u8x8, uint8_t val) { if (val) i2c_read_sda(u8x8); else i2c_clear_sda(u8x8); i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); i2c_clear_scl(u8x8); } static void i2c_read_bit(u8x8_t *u8x8) { //uint8_t val; /* do not drive SDA */ i2c_read_sda(u8x8); i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); i2c_read_sda(u8x8); i2c_delay(u8x8); i2c_clear_scl(u8x8); //return val; } static void i2c_write_byte(u8x8_t *u8x8, uint8_t b) { i2c_write_bit(u8x8, b & 128); i2c_write_bit(u8x8, b & 64); i2c_write_bit(u8x8, b & 32); i2c_write_bit(u8x8, b & 16); i2c_write_bit(u8x8, b & 8); i2c_write_bit(u8x8, b & 4); i2c_write_bit(u8x8, b & 2); i2c_write_bit(u8x8, b & 1); /* read ack from client */ /* 0: ack was given by client */ /* 1: nothing happend during ack cycle */ i2c_read_bit(u8x8); } extern "C" uint8_t u8x8_byte_arduino_sw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { i2c_write_byte(u8x8, *data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: pinMode(u8x8->pins[U8X8_PIN_I2C_CLOCK], OUTPUT); digitalWrite(u8x8->pins[U8X8_PIN_I2C_CLOCK], 1); pinMode(u8x8->pins[U8X8_PIN_I2C_DATA], OUTPUT); digitalWrite(u8x8->pins[U8X8_PIN_I2C_DATA], 1); i2c_init(u8x8); break; case U8X8_MSG_BYTE_SET_DC: break; case U8X8_MSG_BYTE_START_TRANSFER: /* there is no consistency checking for u8x8->pins[U8X8_PIN_I2C_CLOCK] */ arduino_i2c_clock_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_I2C_CLOCK])); arduino_i2c_clock_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_I2C_CLOCK]); arduino_i2c_clock_n_mask = ~arduino_i2c_clock_mask; /* there is no consistency checking for u8x8->pins[U8X8_PIN_I2C_DATA] */ arduino_i2c_data_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_I2C_DATA])); arduino_i2c_data_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_I2C_DATA]); arduino_i2c_data_n_mask = ~arduino_i2c_data_mask; i2c_start(u8x8); i2c_write_byte(u8x8, u8x8_GetI2CAddress(u8x8)); break; case U8X8_MSG_BYTE_END_TRANSFER: i2c_stop(u8x8); break; default: return 0; } return 1; } #else /* not AVR architecture, fallback */ extern "C" uint8_t u8x8_byte_arduino_sw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { return u8x8_byte_sw_i2c(u8x8, msg,arg_int, arg_ptr); } #endif /*=============================================*/ /*=== HARDWARE I2C ===*/ extern "C" uint8_t u8x8_byte_arduino_hw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { #ifdef U8X8_HAVE_HW_I2C switch(msg) { case U8X8_MSG_BYTE_SEND: Wire.write((uint8_t *)arg_ptr, (int)arg_int); break; case U8X8_MSG_BYTE_INIT: if ( u8x8->bus_clock == 0 ) /* issue 769 */ u8x8->bus_clock = u8x8->display_info->i2c_bus_clock_100kHz * 100000UL; #if defined(ESP8266) || defined(ARDUINO_ARCH_ESP8266) || defined(ESP_PLATFORM) || defined(ARDUINO_ARCH_ESP32) /* for ESP8266/ESP32, Wire.begin has two more arguments: clock and data */ if ( u8x8->pins[U8X8_PIN_I2C_CLOCK] != U8X8_PIN_NONE && u8x8->pins[U8X8_PIN_I2C_DATA] != U8X8_PIN_NONE ) { // second argument for the wire lib is the clock pin. In u8g2, the first argument of the clock pin in the clock/data pair Wire.begin(u8x8->pins[U8X8_PIN_I2C_DATA] , u8x8->pins[U8X8_PIN_I2C_CLOCK]); } else { Wire.begin(); } #else Wire.begin(); #endif break; case U8X8_MSG_BYTE_SET_DC: break; case U8X8_MSG_BYTE_START_TRANSFER: #if ARDUINO >= 10600 /* not sure when the setClock function was introduced, but it is there since 1.6.0 */ /* if there is any error with Wire.setClock() just remove this function call */ Wire.setClock(u8x8->bus_clock); #endif Wire.beginTransmission(u8x8_GetI2CAddress(u8x8)>>1); break; case U8X8_MSG_BYTE_END_TRANSFER: Wire.endTransmission(); break; default: return 0; } #endif return 1; } extern "C" uint8_t u8x8_byte_arduino_2nd_hw_i2c(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { #ifdef U8X8_HAVE_2ND_HW_I2C switch(msg) { case U8X8_MSG_BYTE_SEND: Wire1.write((uint8_t *)arg_ptr, (int)arg_int); break; case U8X8_MSG_BYTE_INIT: if ( u8x8->bus_clock == 0 ) /* issue 769 */ u8x8->bus_clock = u8x8->display_info->i2c_bus_clock_100kHz * 100000UL; Wire1.begin(); break; case U8X8_MSG_BYTE_SET_DC: break; case U8X8_MSG_BYTE_START_TRANSFER: #if ARDUINO >= 10600 /* not sure when the setClock function was introduced, but it is there since 1.6.0 */ /* if there is any error with Wire.setClock() just remove this function call */ Wire1.setClock(u8x8->bus_clock); #endif Wire1.beginTransmission(u8x8_GetI2CAddress(u8x8)>>1); break; case U8X8_MSG_BYTE_END_TRANSFER: Wire1.endTransmission(); break; default: return 0; } #endif return 1; } #endif // U8X8_USE_PINS /*=============================================*/ /* replacement for a more faster u8x8_byte_8bit_8080mode in general u8x8_byte_8bit_8080mode could be a fallback: uint8_t u8x8_byte_arduino_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_8bit_8080mode(u8x8, msg,arg_int, arg_ptr); } */ #ifndef __AVR_ARCH__ #define __AVR_ARCH__ 0 #endif #if !defined(U8X8_USE_PINS) /* no pin information (very strange), so fallback */ extern "C" uint8_t u8x8_byte_arduino_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_8bit_8080mode(u8x8, msg,arg_int, arg_ptr); } #elif __AVR_ARCH__ == 4 || __AVR_ARCH__ == 5 || __AVR_ARCH__ == 51 || __AVR_ARCH__ == 6 || __AVR_ARCH__ == 103 /* this function completly replaces u8x8_byte_8bit_8080mode*/ extern "C" uint8_t u8x8_byte_arduino_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ static volatile uint8_t *arduino_e_port; static volatile uint8_t arduino_e_mask; static volatile uint8_t arduino_e_n_mask; static volatile uint8_t *arduino_data_port[8]; static volatile uint8_t arduino_data_mask[8]; static volatile uint8_t arduino_data_n_mask[8]; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = 0; i < 8; i++ ) { if ( b & 1 ) *arduino_data_port[i] |= arduino_data_mask[i]; else *arduino_data_port[i] &= arduino_data_n_mask[i]; b >>= 1; } *arduino_e_port &= arduino_e_n_mask; /* AVR Architecture is very slow, extra call is not required */ //u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sda_setup_time_ns); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); *arduino_e_port |= arduino_e_mask; /* AVR Architecture is very slow, extra call is not required */ //u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sck_pulse_width_ns); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* ensure that the enable signal is high */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 1); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); /* there is no consistency checking for u8x8->pins[U8X8_PIN_E] */ arduino_e_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_E])); arduino_e_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_E]); arduino_e_n_mask = ~arduino_e_mask; /* there is no consistency checking for u8x8->pins[U8X8_PIN_D0] */ for( i = 0; i < 8; i++ ) { arduino_data_port[i] = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_D0+i])); arduino_data_mask[i] = digitalPinToBitMask(u8x8->pins[U8X8_PIN_D0+i]); arduino_data_n_mask[i] = ~arduino_data_mask[i]; } break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } #else /* fallback */ extern "C" uint8_t u8x8_byte_arduino_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_8bit_8080mode(u8x8, msg,arg_int, arg_ptr); } #endif /*=============================================*/ /* replacement for a more faster u8x8_byte_ks0108 in general u8x8_byte_ks0108 could be a fallback: uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_ks0108(u8x8, msg,arg_int, arg_ptr); } */ #ifndef __AVR_ARCH__ #define __AVR_ARCH__ 0 #endif #if !defined(U8X8_USE_PINS) /* no pin information (very strange), so fallback */ extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_ks0108(u8x8, msg,arg_int, arg_ptr); } #elif __AVR_ARCH__ == 4 || __AVR_ARCH__ == 5 || __AVR_ARCH__ == 51 || __AVR_ARCH__ == 6 || __AVR_ARCH__ == 103 /* this function completly replaces u8x8_byte_ks0108*/ extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; /* the following static vars are recalculated in U8X8_MSG_BYTE_START_TRANSFER */ /* so, it should be possible to use multiple displays with different pins */ static volatile uint8_t *arduino_e_port; static volatile uint8_t arduino_e_mask; static volatile uint8_t arduino_e_n_mask; static volatile uint8_t *arduino_data_port[8]; static volatile uint8_t arduino_data_mask[8]; static volatile uint8_t arduino_data_n_mask[8]; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = 0; i < 8; i++ ) { if ( b & 1 ) *arduino_data_port[i] |= arduino_data_mask[i]; else *arduino_data_port[i] &= arduino_data_n_mask[i]; b >>= 1; } *arduino_e_port |= arduino_e_mask; /* AVR Architecture is very slow, extra call is not required */ u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); *arduino_e_port &= arduino_e_n_mask; /* AVR Architecture is very slow, extra call is not required */ u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* ensure that the enable signal is low */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_byte_set_ks0108_cs(u8x8, arg_int); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); /* there is no consistency checking for u8x8->pins[U8X8_PIN_E] */ arduino_e_port = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_E])); arduino_e_mask = digitalPinToBitMask(u8x8->pins[U8X8_PIN_E]); arduino_e_n_mask = ~arduino_e_mask; /* there is no consistency checking for u8x8->pins[U8X8_PIN_D0] */ for( i = 0; i < 8; i++ ) { arduino_data_port[i] = portOutputRegister(digitalPinToPort(u8x8->pins[U8X8_PIN_D0+i])); arduino_data_mask[i] = digitalPinToBitMask(u8x8->pins[U8X8_PIN_D0+i]); arduino_data_n_mask[i] = ~arduino_data_mask[i]; } break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_byte_set_ks0108_cs(u8x8, arg_int); break; default: return 0; } return 1; } #else /* fallback */ extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_byte_ks0108(u8x8, msg,arg_int, arg_ptr); } #endif #ifdef U8X8_USE_PINS /* use U8X8_PIN_NONE as value for "reset", if there is no reset line */ void u8x8_SetPin_4Wire_SW_SPI(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_SPI_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_SPI_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_4Wire_SW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_4wire_sw_spi, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_SPI_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_SPI_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ void u8x8_SetPin_3Wire_SW_SPI(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_SPI_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_SPI_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_3Wire_SW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_SPI_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_SPI_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ /* use U8X8_PIN_NONE as value for "reset", if there is no reset line */ void u8x8_SetPin_3Wire_HW_SPI(u8x8_t *u8x8, uint8_t cs, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } /* use U8X8_PIN_NONE as value for "reset", if there is no reset line */ void u8x8_SetPin_4Wire_HW_SPI(u8x8_t *u8x8, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } void u8x8_SetPin_ST7920_HW_SPI(u8x8_t *u8x8, uint8_t cs, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_4Wire_HW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ void u8x8_SetPin_SW_I2C(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_I2C_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_I2C_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_SSD13xx_SW_I2C(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_ssd13xx_sw_i2c, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_I2C_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_I2C_DATA, data); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ void u8x8_SetPin_HW_I2C(u8x8_t *u8x8, uint8_t reset, uint8_t clock, uint8_t data) { u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); u8x8_SetPin(u8x8, U8X8_PIN_I2C_CLOCK, clock); u8x8_SetPin(u8x8, U8X8_PIN_I2C_DATA, data); } void u8x8_SetPin_8Bit_6800(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, enable); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_8Bit_6800(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, enable); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ void u8x8_SetPin_8Bit_8080(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t wr, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, wr); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #ifdef _obsolete_com_specific_setup void u8x8_Setup_8Bit_8080(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t wr, uint8_t cs, uint8_t dc, uint8_t reset) { u8x8_Setup(u8x8, display_cb, u8x8_cad_001, u8x8_byte_8bit_8080mode, u8x8_gpio_and_delay_arduino); /* assign individual pin values (only for ARDUINO, if pin_list is available) */ u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, wr); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif /* obsolete com specific setup */ void u8x8_SetPin_KS0108(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t dc, uint8_t cs0, uint8_t cs1, uint8_t cs2, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, enable); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_CS, cs0); u8x8_SetPin(u8x8, U8X8_PIN_CS1, cs1); u8x8_SetPin(u8x8, U8X8_PIN_CS2, cs2); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } void u8x8_SetPin_SED1520(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t dc, uint8_t e1, uint8_t e2, uint8_t reset) { u8x8_SetPin(u8x8, U8X8_PIN_D0, d0); u8x8_SetPin(u8x8, U8X8_PIN_D1, d1); u8x8_SetPin(u8x8, U8X8_PIN_D2, d2); u8x8_SetPin(u8x8, U8X8_PIN_D3, d3); u8x8_SetPin(u8x8, U8X8_PIN_D4, d4); u8x8_SetPin(u8x8, U8X8_PIN_D5, d5); u8x8_SetPin(u8x8, U8X8_PIN_D6, d6); u8x8_SetPin(u8x8, U8X8_PIN_D7, d7); u8x8_SetPin(u8x8, U8X8_PIN_E, e1); u8x8_SetPin(u8x8, U8X8_PIN_CS, e2); u8x8_SetPin(u8x8, U8X8_PIN_DC, dc); u8x8_SetPin(u8x8, U8X8_PIN_RESET, reset); } #endif // U8X8_USE_PINS ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/U8x8lib.h ================================================ #ifndef U8X8LIB_HH #define U8X8LIB_HH #include #include "u8x8.h" #define U8X8_HAVE_HW_I2C /* Exported variables --------------------------------------------------------*/ extern "C" uint8_t u8x8_byte_stm32_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); extern "C" uint8_t u8x8_stm32_gpio_and_delay(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, U8X8_UNUSED void *arg_ptr); class U8X8 : public Print { protected: u8x8_t u8x8; public: uint8_t tx, ty; U8X8(void) { home(); } u8x8_t *getU8x8(void) { return &u8x8; } void sendF(const char *fmt, ...) { va_list va; va_start(va, fmt); u8x8_cad_vsendf(&u8x8, fmt, va); va_end(va); } uint32_t getBusClock(void) { return u8x8.bus_clock; } void setBusClock(uint32_t clock_speed) { u8x8.bus_clock = clock_speed; } void setI2CAddress(uint8_t adr) { u8x8_SetI2CAddress(&u8x8, adr); } uint8_t getCols(void) { return u8x8_GetCols(&u8x8); } uint8_t getRows(void) { return u8x8_GetRows(&u8x8); } void drawTile(uint8_t x, uint8_t y, uint8_t cnt, uint8_t *tile_ptr) { u8x8_DrawTile(&u8x8, x, y, cnt, tile_ptr); } void initDisplay(void) { u8x8_InitDisplay(&u8x8); } void clearDisplay(void) { u8x8_ClearDisplay(&u8x8); } void fillDisplay(void) { u8x8_FillDisplay(&u8x8); } void setPowerSave(uint8_t is_enable) { u8x8_SetPowerSave(&u8x8, is_enable); } bool begin(void) { initDisplay(); clearDisplay(); setPowerSave(0); return 1; } void setFlipMode(uint8_t mode) { u8x8_SetFlipMode(&u8x8, mode); } void refreshDisplay(void) { // Dec 16: Only required for SSD1606 u8x8_RefreshDisplay(&u8x8); } void clearLine(uint8_t line) { u8x8_ClearLine(&u8x8, line); } void setContrast(uint8_t value) { u8x8_SetContrast(&u8x8, value); } void setInverseFont(uint8_t value) { u8x8_SetInverseFont(&u8x8, value); } void setFont(const uint8_t *font_8x8) { u8x8_SetFont(&u8x8, font_8x8); } void drawGlyph(uint8_t x, uint8_t y, uint8_t encoding) { u8x8_DrawGlyph(&u8x8, x, y, encoding); } void draw2x2Glyph(uint8_t x, uint8_t y, uint8_t encoding) { u8x8_Draw2x2Glyph(&u8x8, x, y, encoding); } void draw1x2Glyph(uint8_t x, uint8_t y, uint8_t encoding) { u8x8_Draw1x2Glyph(&u8x8, x, y, encoding); } void drawString(uint8_t x, uint8_t y, const char *s) { u8x8_DrawString(&u8x8, x, y, s); } void drawUTF8(uint8_t x, uint8_t y, const char *s) { u8x8_DrawUTF8(&u8x8, x, y, s); } void draw2x2String(uint8_t x, uint8_t y, const char *s) { u8x8_Draw2x2String(&u8x8, x, y, s); } void draw1x2String(uint8_t x, uint8_t y, const char *s) { u8x8_Draw1x2String(&u8x8, x, y, s); } void draw2x2UTF8(uint8_t x, uint8_t y, const char *s) { u8x8_Draw2x2UTF8(&u8x8, x, y, s); } void draw1x2UTF8(uint8_t x, uint8_t y, const char *s) { u8x8_Draw1x2UTF8(&u8x8, x, y, s); } uint8_t getUTF8Len(const char *s) { return u8x8_GetUTF8Len(&u8x8, s); } size_t write(uint8_t v); /* code extended and moved to .cpp file, issue 74 size_t write(uint8_t v) { u8x8_DrawGlyph(&u8x8, tx, ty, v); tx++; return 1; } */ size_t write(const uint8_t *buffer, size_t size) { size_t cnt = 0; while (size > 0) { cnt += write(*buffer++); size--; } return cnt; } void inverse(void) { setInverseFont(1); } void noInverse(void) { setInverseFont(0); } /* return 0 for no event or U8X8_MSG_GPIO_MENU_SELECT, */ /* U8X8_MSG_GPIO_MENU_NEXT, U8X8_MSG_GPIO_MENU_PREV, */ /* U8X8_MSG_GPIO_MENU_HOME */ uint8_t getMenuEvent(void) { return u8x8_GetMenuEvent(&u8x8); } uint8_t userInterfaceSelectionList(const char *title, uint8_t start_pos, const char *sl) { return u8x8_UserInterfaceSelectionList(&u8x8, title, start_pos, sl); } uint8_t userInterfaceMessage(const char *title1, const char *title2, const char *title3, const char *buttons) { return u8x8_UserInterfaceMessage(&u8x8, title1, title2, title3, buttons); } uint8_t userInterfaceInputValue(const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post) { return u8x8_UserInterfaceInputValue(&u8x8, title, pre, value, lo, hi, digits, post); } /* LiquidCrystal compatible functions */ void home(void) { tx = 0; ty = 0; } void clear(void) { clearDisplay(); home(); } void noDisplay(void) { u8x8_SetPowerSave(&u8x8, 1); } void display(void) { u8x8_SetPowerSave(&u8x8, 0); } void setCursor(uint8_t x, uint8_t y) { tx = x; ty = y; } void drawLog(uint8_t x, uint8_t y, class U8X8LOG &u8x8log); }; class U8X8LOG : public Print { public: u8log_t u8log; /* the constructor does nothing, use begin() instead */ U8X8LOG(void) {} /* connect to u8g2, draw to u8g2 whenever required */ bool begin(class U8X8 &u8x8, uint8_t width, uint8_t height, uint8_t *buf) { u8log_Init(&u8log, width, height, buf); u8log_SetCallback(&u8log, u8log_u8x8_cb, u8x8.getU8x8()); return true; } /* disconnected version, manual redraw required */ bool begin(uint8_t width, uint8_t height, uint8_t *buf) { u8log_Init(&u8log, width, height, buf); return true; } void setLineHeightOffset(int8_t line_height_offset) { u8log_SetLineHeightOffset(&u8log, line_height_offset); } void setRedrawMode(uint8_t is_redraw_line_for_each_char) { u8log_SetRedrawMode(&u8log, is_redraw_line_for_each_char); } /* virtual function for print base class */ size_t write(uint8_t v) { u8log_WriteChar(&u8log, v); return 1; } size_t write(const uint8_t *buffer, size_t size) { size_t cnt = 0; while (size > 0) { cnt += write(*buffer++); size--; } return cnt; } void writeString(const char *s) { u8log_WriteString(&u8log, s); } void writeChar(uint8_t c) { u8log_WriteChar(&u8log, c); } void writeHex8(uint8_t b) { u8log_WriteHex8(&u8log, b); } void writeHex16(uint16_t v) { u8log_WriteHex16(&u8log, v); } void writeHex32(uint32_t v) { u8log_WriteHex32(&u8log, v); } void writeDec8(uint8_t v, uint8_t d) { u8log_WriteDec8(&u8log, v, d); } void writeDec16(uint8_t v, uint8_t d) { u8log_WriteDec16(&u8log, v, d); } }; /* u8log_u8x8.c */ inline void U8X8::drawLog(uint8_t x, uint8_t y, class U8X8LOG &u8x8log) { u8x8_DrawLog(&u8x8, x, y, &(u8x8log.u8log)); } #endif /* _U8X8LIB_HH */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/WString.cpp ================================================ /* WString.cpp - String library for Wiring & Arduino ...mostly rewritten by Paul Stoffregen... Copyright (c) 2009-10 Hernando Barragan. All rights reserved. Copyright 2011, Paul Stoffregen, paul@pjrc.com Modified by Ivan Grokhotkov, 2014 - esp8266 support Modified by Michael C. Miller, 2015 - esp8266 progmem support This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "WString.h" #include "stdlib_noniso.h" #include "pgmspace.h" /*********************************************/ /* Constructors */ /*********************************************/ String::String(const char *cstr) { init(); if (cstr) copy(cstr, strlen(cstr)); } String::String(const String &value) { init(); *this = value; } String::String(const __FlashStringHelper *pstr) { init(); *this = pstr; // see operator = } #ifdef __GXX_EXPERIMENTAL_CXX0X__ String::String(String &&rval) { init(); move(rval); } String::String(StringSumHelper &&rval) { init(); move(rval); } #endif String::String(char c) { init(); char buf[2]; buf[0] = c; buf[1] = 0; *this = buf; } String::String(unsigned char value, unsigned char base) { init(); char buf[1 + 8 * sizeof(unsigned char)]; utoa(value, buf, base); *this = buf; } String::String(int value, unsigned char base) { init(); char buf[2 + 8 * sizeof(int)]; if (base == 10) { sprintf(buf, "%d", value); } else { itoa(value, buf, base); } *this = buf; } String::String(unsigned int value, unsigned char base) { init(); char buf[1 + 8 * sizeof(unsigned int)]; utoa(value, buf, base); *this = buf; } String::String(long value, unsigned char base) { init(); char buf[2 + 8 * sizeof(long)]; if (base==10) { sprintf(buf, "%ld", value); } else { ltoa(value, buf, base); } *this = buf; } String::String(unsigned long value, unsigned char base) { init(); char buf[1 + 8 * sizeof(unsigned long)]; ultoa(value, buf, base); *this = buf; } String::String(float value, unsigned char decimalPlaces) { init(); char buf[33]; *this = dtostrf(value, (decimalPlaces + 2), decimalPlaces, buf); } String::String(double value, unsigned char decimalPlaces) { init(); char buf[33]; *this = dtostrf(value, (decimalPlaces + 2), decimalPlaces, buf); } String::~String() { invalidate(); } // /*********************************************/ // /* Memory Management */ // /*********************************************/ inline void String::init(void) { setSSO(false); setBuffer(nullptr); setCapacity(0); setLen(0); } void String::invalidate(void) { if(!isSSO() && wbuffer()) free(wbuffer()); init(); } unsigned char String::reserve(unsigned int size) { if(buffer() && capacity() >= size) return 1; if(changeBuffer(size)) { if(len() == 0) wbuffer()[0] = 0; return 1; } return 0; } unsigned char String::changeBuffer(unsigned int maxStrLen) { // Can we use SSO here to avoid allocation? if (maxStrLen < sizeof(sso.buff) - 1) { if (isSSO() || !buffer()) { // Already using SSO, nothing to do uint16_t oldLen = len(); setSSO(true); setLen(oldLen); return 1; } else { // if bufptr && !isSSO() // Using bufptr, need to shrink into sso.buff char temp[sizeof(sso.buff)]; memcpy(temp, buffer(), maxStrLen); free(wbuffer()); uint16_t oldLen = len(); setSSO(true); memcpy(wbuffer(), temp, maxStrLen); setLen(oldLen); return 1; } } // Fallthrough to normal allocator size_t newSize = (maxStrLen + 16) & (~0xf); // Make sure we can fit newsize in the buffer if (newSize > CAPACITY_MAX) { return false; } uint16_t oldLen = len(); char *newbuffer = (char *) realloc(isSSO() ? nullptr : wbuffer(), newSize); if (newbuffer) { size_t oldSize = capacity() + 1; // include NULL. if (isSSO()) { // Copy the SSO buffer into allocated space memmove(newbuffer, sso.buff, sizeof(sso.buff)); } if (newSize > oldSize) { memset(newbuffer + oldSize, 0, newSize - oldSize); } setSSO(false); setCapacity(newSize - 1); setBuffer(newbuffer); setLen(oldLen); // Needed in case of SSO where len() never existed return 1; } return 0; } // /*********************************************/ // /* Copy and Move */ // /*********************************************/ String & String::copy(const char *cstr, unsigned int length) { if(!reserve(length)) { invalidate(); return *this; } memmove(wbuffer(), cstr, length + 1); setLen(length); return *this; } String & String::copy(const __FlashStringHelper *pstr, unsigned int length) { if (!reserve(length)) { invalidate(); return *this; } memcpy_P(wbuffer(), (PGM_P)pstr, length + 1); // We know wbuffer() cannot ever be in PROGMEM, so memcpy safe here setLen(length); return *this; } #ifdef __GXX_EXPERIMENTAL_CXX0X__ void String::move(String &rhs) { if(buffer()) { if(capacity() >= rhs.len()) { memmove(wbuffer(), rhs.buffer(), rhs.length() + 1); setLen(rhs.len()); rhs.invalidate(); return; } else { if (!isSSO()) { free(wbuffer()); setBuffer(nullptr); } } } if (rhs.isSSO()) { setSSO(true); memmove(sso.buff, rhs.sso.buff, sizeof(sso.buff)); } else { setSSO(false); setBuffer(rhs.wbuffer()); } setCapacity(rhs.capacity()); setLen(rhs.len()); rhs.setSSO(false); rhs.setCapacity(0); rhs.setBuffer(nullptr); rhs.setLen(0); } #endif String & String::operator =(const String &rhs) { if(this == &rhs) return *this; if(rhs.buffer()) copy(rhs.buffer(), rhs.len()); else invalidate(); return *this; } #ifdef __GXX_EXPERIMENTAL_CXX0X__ String & String::operator =(String &&rval) { if(this != &rval) move(rval); return *this; } String & String::operator =(StringSumHelper &&rval) { if(this != &rval) move(rval); return *this; } #endif String & String::operator =(const char *cstr) { if(cstr) copy(cstr, strlen(cstr)); else invalidate(); return *this; } String & String::operator = (const __FlashStringHelper *pstr) { if (pstr) copy(pstr, strlen_P((PGM_P)pstr)); else invalidate(); return *this; } // /*********************************************/ // /* concat */ // /*********************************************/ unsigned char String::concat(const String &s) { // Special case if we're concatting ourself (s += s;) since we may end up // realloc'ing the buffer and moving s.buffer in the method called if (&s == this) { unsigned int newlen = 2 * len(); if (!s.buffer()) return 0; if (s.len() == 0) return 1; if (!reserve(newlen)) return 0; memmove(wbuffer() + len(), buffer(), len()); setLen(newlen); wbuffer()[len()] = 0; return 1; } else { return concat(s.buffer(), s.len()); } } unsigned char String::concat(const char *cstr, unsigned int length) { unsigned int newlen = len() + length; if(!cstr) return 0; if(length == 0) return 1; if(!reserve(newlen)) return 0; if (cstr >= wbuffer() && cstr < wbuffer() + len()) // compatible with SSO in ram #6155 (case "x += x.c_str()") memmove(wbuffer() + len(), cstr, length + 1); else // compatible with source in flash #6367 memcpy_P(wbuffer() + len(), cstr, length + 1); setLen(newlen); return 1; } unsigned char String::concat(const char *cstr) { if(!cstr) return 0; return concat(cstr, strlen(cstr)); } unsigned char String::concat(char c) { char buf[2]; buf[0] = c; buf[1] = 0; return concat(buf, 1); } unsigned char String::concat(unsigned char num) { char buf[1 + 3 * sizeof(unsigned char)]; sprintf(buf, "%d", num); return concat(buf, strlen(buf)); } unsigned char String::concat(int num) { char buf[2 + 3 * sizeof(int)]; sprintf(buf, "%d", num); return concat(buf, strlen(buf)); } unsigned char String::concat(unsigned int num) { char buf[1 + 3 * sizeof(unsigned int)]; utoa(num, buf, 10); return concat(buf, strlen(buf)); } unsigned char String::concat(long num) { char buf[2 + 3 * sizeof(long)]; sprintf(buf, "%ld", num); return concat(buf, strlen(buf)); } unsigned char String::concat(unsigned long num) { char buf[1 + 3 * sizeof(unsigned long)]; ultoa(num, buf, 10); return concat(buf, strlen(buf)); } unsigned char String::concat(float num) { char buf[20]; char* string = dtostrf(num, 4, 2, buf); return concat(string, strlen(string)); } unsigned char String::concat(double num) { char buf[20]; char* string = dtostrf(num, 4, 2, buf); return concat(string, strlen(string)); } unsigned char String::concat(const __FlashStringHelper * str) { if (!str) return 0; int length = strlen_P((PGM_P)str); if (length == 0) return 1; unsigned int newlen = len() + length; if (!reserve(newlen)) return 0; memcpy_P(wbuffer() + len(), (PGM_P)str, length + 1); setLen(newlen); return 1; } /*********************************************/ /* Concatenate */ /*********************************************/ StringSumHelper & operator +(const StringSumHelper &lhs, const String &rhs) { StringSumHelper &a = const_cast(lhs); if(!a.concat(rhs.buffer(), rhs.len())) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, const char *cstr) { StringSumHelper &a = const_cast(lhs); if(!cstr || !a.concat(cstr, strlen(cstr))) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, char c) { StringSumHelper &a = const_cast(lhs); if(!a.concat(c)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, unsigned char num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, int num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, unsigned int num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, long num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, unsigned long num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, float num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator +(const StringSumHelper &lhs, double num) { StringSumHelper &a = const_cast(lhs); if(!a.concat(num)) a.invalidate(); return a; } StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs) { StringSumHelper &a = const_cast(lhs); if (!a.concat(rhs)) a.invalidate(); return a; } // /*********************************************/ // /* Comparison */ // /*********************************************/ int String::compareTo(const String &s) const { if(!buffer() || !s.buffer()) { if(s.buffer() && s.len() > 0) return 0 - *(unsigned char *) s.buffer(); if(buffer() && len() > 0) return *(unsigned char *) buffer(); return 0; } return strcmp(buffer(), s.buffer()); } unsigned char String::equals(const String &s2) const { return (len() == s2.len() && compareTo(s2) == 0); } unsigned char String::equals(const char *cstr) const { if(len() == 0) return (cstr == NULL || *cstr == 0); if(cstr == NULL) return buffer()[0] == 0; return strcmp(buffer(), cstr) == 0; } unsigned char String::operator<(const String &rhs) const { return compareTo(rhs) < 0; } unsigned char String::operator>(const String &rhs) const { return compareTo(rhs) > 0; } unsigned char String::operator<=(const String &rhs) const { return compareTo(rhs) <= 0; } unsigned char String::operator>=(const String &rhs) const { return compareTo(rhs) >= 0; } unsigned char String::equalsIgnoreCase(const String &s2) const { if(this == &s2) return 1; if(len() != s2.len()) return 0; if(len() == 0) return 1; const char *p1 = buffer(); const char *p2 = s2.buffer(); while(*p1) { if(tolower(*p1++) != tolower(*p2++)) return 0; } return 1; } unsigned char String::equalsConstantTime(const String &s2) const { // To avoid possible time-based attacks present function // compares given strings in a constant time. if(len() != s2.len()) return 0; //at this point lengths are the same if(len() == 0) return 1; //at this point lenghts are the same and non-zero const char *p1 = buffer(); const char *p2 = s2.buffer(); unsigned int equalchars = 0; unsigned int diffchars = 0; while(*p1) { if(*p1 == *p2) ++equalchars; else ++diffchars; ++p1; ++p2; } //the following should force a constant time eval of the condition without a compiler "logical shortcut" unsigned char equalcond = (equalchars == len()); unsigned char diffcond = (diffchars == 0); return (equalcond & diffcond); //bitwise AND } unsigned char String::startsWith(const String &s2) const { if(len() < s2.len()) return 0; return startsWith(s2, 0); } unsigned char String::startsWith(const String &s2, unsigned int offset) const { if(offset > (unsigned)(len() - s2.len()) || !buffer() || !s2.buffer()) return 0; return strncmp(&buffer()[offset], s2.buffer(), s2.len()) == 0; } unsigned char String::endsWith(const String &s2) const { if(len() < s2.len() || !buffer() || !s2.buffer()) return 0; return strcmp(&buffer()[len() - s2.len()], s2.buffer()) == 0; } // /*********************************************/ // /* Character Access */ // /*********************************************/ char String::charAt(unsigned int loc) const { return operator[](loc); } void String::setCharAt(unsigned int loc, char c) { if(loc < len()) wbuffer()[loc] = c; } char & String::operator[](unsigned int index) { static char dummy_writable_char; if(index >= len() || !buffer()) { dummy_writable_char = 0; return dummy_writable_char; } return wbuffer()[index]; } char String::operator[](unsigned int index) const { if(index >= len() || !buffer()) return 0; return buffer()[index]; } void String::getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index) const { if(!bufsize || !buf) return; if(index >= len()) { buf[0] = 0; return; } unsigned int n = bufsize - 1; if(n > len() - index) n = len() - index; strncpy((char *) buf, buffer() + index, n); buf[n] = 0; } // /*********************************************/ // /* Search */ // /*********************************************/ int String::indexOf(char c) const { return indexOf(c, 0); } int String::indexOf(char ch, unsigned int fromIndex) const { if(fromIndex >= len()) return -1; const char* temp = strchr(buffer() + fromIndex, ch); if(temp == NULL) return -1; return temp - buffer(); } int String::indexOf(const String &s2) const { return indexOf(s2, 0); } int String::indexOf(const String &s2, unsigned int fromIndex) const { if(fromIndex >= len()) return -1; const char *found = strstr(buffer() + fromIndex, s2.buffer()); if(found == NULL) return -1; return found - buffer(); } int String::lastIndexOf(char theChar) const { return lastIndexOf(theChar, len() - 1); } int String::lastIndexOf(char ch, unsigned int fromIndex) const { if(fromIndex >= len()) return -1; char tempchar = buffer()[fromIndex + 1]; wbuffer()[fromIndex + 1] = '\0'; char* temp = strrchr(wbuffer(), ch); wbuffer()[fromIndex + 1] = tempchar; if(temp == NULL) return -1; return temp - buffer(); } int String::lastIndexOf(const String &s2) const { return lastIndexOf(s2, len() - s2.len()); } int String::lastIndexOf(const String &s2, unsigned int fromIndex) const { if(s2.len() == 0 || len() == 0 || s2.len() > len()) return -1; if(fromIndex >= len()) fromIndex = len() - 1; int found = -1; for(char *p = wbuffer(); p <= wbuffer() + fromIndex; p++) { p = strstr(p, s2.buffer()); if(!p) break; if((unsigned int) (p - wbuffer()) <= fromIndex) found = p - buffer(); } return found; } String String::substring(unsigned int left, unsigned int right) const { if(left > right) { unsigned int temp = right; right = left; left = temp; } String out; if(left >= len()) return out; if(right > len()) right = len(); char temp = buffer()[right]; // save the replaced character wbuffer()[right] = '\0'; out = wbuffer() + left; // pointer arithmetic wbuffer()[right] = temp; //restore character return out; } // /*********************************************/ // /* Modification */ // /*********************************************/ void String::replace(char find, char replace) { if(!buffer()) return; for(char *p = wbuffer(); *p; p++) { if(*p == find) *p = replace; } } void String::replace(const String& find, const String& replace) { if(len() == 0 || find.len() == 0) return; int diff = replace.len() - find.len(); char *readFrom = wbuffer(); char *foundAt; if(diff == 0) { while((foundAt = strstr(readFrom, find.buffer())) != NULL) { memmove(foundAt, replace.buffer(), replace.len()); readFrom = foundAt + replace.len(); } } else if(diff < 0) { char *writeTo = wbuffer(); unsigned int l = len(); while((foundAt = strstr(readFrom, find.buffer())) != NULL) { unsigned int n = foundAt - readFrom; memmove(writeTo, readFrom, n); writeTo += n; memmove(writeTo, replace.buffer(), replace.len()); writeTo += replace.len(); readFrom = foundAt + find.len(); l += diff; } memmove(writeTo, readFrom, strlen(readFrom)+1); setLen(l); } else { unsigned int size = len(); // compute size needed for result while((foundAt = strstr(readFrom, find.buffer())) != NULL) { readFrom = foundAt + find.len(); size += diff; } if(size == len()) return; if(size > capacity() && !changeBuffer(size)) return; // XXX: tell user! int index = len() - 1; while(index >= 0 && (index = lastIndexOf(find, index)) >= 0) { readFrom = wbuffer() + index + find.len(); memmove(readFrom + diff, readFrom, len() - (readFrom - buffer())); int newLen = len() + diff; memmove(wbuffer() + index, replace.buffer(), replace.len()); setLen(newLen); wbuffer()[newLen] = 0; index--; } } } void String::remove(unsigned int index) { // Pass the biggest integer as the count. The remove method // below will take care of truncating it at the end of the // string. remove(index, (unsigned int) -1); } void String::remove(unsigned int index, unsigned int count) { if(index >= len()) { return; } if(count <= 0) { return; } if(count > len() - index) { count = len() - index; } char *writeTo = wbuffer() + index; unsigned int newlen = len() - count; memmove(writeTo, wbuffer() + index + count, newlen - index); setLen(newlen); wbuffer()[newlen] = 0; } void String::toLowerCase(void) { if(!buffer()) return; for(char *p = wbuffer(); *p; p++) { *p = tolower(*p); } } void String::toUpperCase(void) { if(!buffer()) return; for(char *p = wbuffer(); *p; p++) { *p = toupper(*p); } } void String::trim(void) { if(!buffer() || len() == 0) return; char *begin = wbuffer(); while(isspace(*begin)) begin++; char *end = wbuffer() + len() - 1; while(isspace(*end) && end >= begin) end--; unsigned int newlen = end + 1 - begin; if(begin > buffer()) memmove(wbuffer(), begin, newlen); setLen(newlen); wbuffer()[newlen] = 0; } // /*********************************************/ // /* Parsing / Conversion */ // /*********************************************/ long String::toInt(void) const { if (buffer()) return atol(buffer()); return 0; } float String::toFloat(void) const { if (buffer()) return atof(buffer()); return 0; } double String::toDouble(void) const { if (buffer()) return atof(buffer()); return 0.0; } // global empty string to allow returning const String& with nothing const String emptyString; ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/WString.h ================================================ /* WString.h - String library for Wiring & Arduino ...mostly rewritten by Paul Stoffregen... Copyright (c) 2009-10 Hernando Barragan. All right reserved. Copyright 2011, Paul Stoffregen, paul@pjrc.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef String_class_h #define String_class_h #ifdef __cplusplus #include #include #include #include // An inherited class for holding the result of a concatenation. These // result objects are assumed to be writable by subsequent concatenations. class StringSumHelper; // an abstract class used as a means to proide a unique pointer type // but really has no body class __FlashStringHelper; #define FPSTR(pstr_pointer) (reinterpret_cast(pstr_pointer)) #define F(string_literal) (FPSTR(PSTR(string_literal))) // The string class class String { // use a function pointer to allow for "if (s)" without the // complications of an operator bool(). for more information, see: // http://www.artima.com/cppsource/safebool.html typedef void (String::*StringIfHelperType)() const; void StringIfHelper() const { } public: // constructors // creates a copy of the initial value. // if the initial value is null or invalid, or if memory allocation // fails, the string will be marked as invalid (i.e. "if (s)" will // be false). String(const char *cstr = ""); String(const String &str); String(const __FlashStringHelper *str); #ifdef __GXX_EXPERIMENTAL_CXX0X__ String(String &&rval); String(StringSumHelper &&rval); #endif explicit String(char c); explicit String(unsigned char, unsigned char base = 10); explicit String(int, unsigned char base = 10); explicit String(unsigned int, unsigned char base = 10); explicit String(long, unsigned char base = 10); explicit String(unsigned long, unsigned char base = 10); explicit String(float, unsigned char decimalPlaces = 2); explicit String(double, unsigned char decimalPlaces = 2); ~String(void); // memory management // return true on success, false on failure (in which case, the string // is left unchanged). reserve(0), if successful, will validate an // invalid string (i.e., "if (s)" will be true afterwards) unsigned char reserve(unsigned int size); inline unsigned int length(void) const { if(buffer()) { return len(); } else { return 0; } } inline void clear(void) { setLen(0); } inline bool isEmpty(void) const { return length() == 0; } // creates a copy of the assigned value. if the value is null or // invalid, or if the memory allocation fails, the string will be // marked as invalid ("if (s)" will be false). String & operator =(const String &rhs); String & operator =(const char *cstr); String & operator = (const __FlashStringHelper *str); #ifdef __GXX_EXPERIMENTAL_CXX0X__ String & operator =(String &&rval); String & operator =(StringSumHelper &&rval); #endif // concatenate (works w/ built-in types) // returns true on success, false on failure (in which case, the string // is left unchanged). if the argument is null or invalid, the // concatenation is considered unsuccessful. unsigned char concat(const String &str); unsigned char concat(const char *cstr); unsigned char concat(char c); unsigned char concat(unsigned char c); unsigned char concat(int num); unsigned char concat(unsigned int num); unsigned char concat(long num); unsigned char concat(unsigned long num); unsigned char concat(float num); unsigned char concat(double num); unsigned char concat(const __FlashStringHelper * str); // if there's not enough memory for the concatenated value, the string // will be left unchanged (but this isn't signalled in any way) String & operator +=(const String &rhs) { concat(rhs); return (*this); } String & operator +=(const char *cstr) { concat(cstr); return (*this); } String & operator +=(char c) { concat(c); return (*this); } String & operator +=(unsigned char num) { concat(num); return (*this); } String & operator +=(int num) { concat(num); return (*this); } String & operator +=(unsigned int num) { concat(num); return (*this); } String & operator +=(long num) { concat(num); return (*this); } String & operator +=(unsigned long num) { concat(num); return (*this); } String & operator +=(float num) { concat(num); return (*this); } String & operator +=(double num) { concat(num); return (*this); } String & operator += (const __FlashStringHelper *str){ concat(str); return (*this); } friend StringSumHelper & operator +(const StringSumHelper &lhs, const String &rhs); friend StringSumHelper & operator +(const StringSumHelper &lhs, const char *cstr); friend StringSumHelper & operator +(const StringSumHelper &lhs, char c); friend StringSumHelper & operator +(const StringSumHelper &lhs, unsigned char num); friend StringSumHelper & operator +(const StringSumHelper &lhs, int num); friend StringSumHelper & operator +(const StringSumHelper &lhs, unsigned int num); friend StringSumHelper & operator +(const StringSumHelper &lhs, long num); friend StringSumHelper & operator +(const StringSumHelper &lhs, unsigned long num); friend StringSumHelper & operator +(const StringSumHelper &lhs, float num); friend StringSumHelper & operator +(const StringSumHelper &lhs, double num); friend StringSumHelper & operator +(const StringSumHelper &lhs, const __FlashStringHelper *rhs); // comparison (only works w/ Strings and "strings") operator StringIfHelperType() const { return buffer() ? &String::StringIfHelper : 0; } int compareTo(const String &s) const; unsigned char equals(const String &s) const; unsigned char equals(const char *cstr) const; unsigned char operator ==(const String &rhs) const { return equals(rhs); } unsigned char operator ==(const char *cstr) const { return equals(cstr); } unsigned char operator !=(const String &rhs) const { return !equals(rhs); } unsigned char operator !=(const char *cstr) const { return !equals(cstr); } unsigned char operator <(const String &rhs) const; unsigned char operator >(const String &rhs) const; unsigned char operator <=(const String &rhs) const; unsigned char operator >=(const String &rhs) const; unsigned char equalsIgnoreCase(const String &s) const; unsigned char equalsConstantTime(const String &s) const; unsigned char startsWith(const String &prefix) const; unsigned char startsWith(const char *prefix) const { return this->startsWith(String(prefix)); } unsigned char startsWith(const __FlashStringHelper *prefix) const { return this->startsWith(String(prefix)); } unsigned char startsWith(const String &prefix, unsigned int offset) const; unsigned char endsWith(const String &suffix) const; unsigned char endsWith(const char *suffix) const { return this->endsWith(String(suffix)); } unsigned char endsWith(const __FlashStringHelper * suffix) const { return this->endsWith(String(suffix)); } // character access char charAt(unsigned int index) const; void setCharAt(unsigned int index, char c); char operator [](unsigned int index) const; char& operator [](unsigned int index); void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index = 0) const; void toCharArray(char *buf, unsigned int bufsize, unsigned int index = 0) const { getBytes((unsigned char *) buf, bufsize, index); } const char* c_str() const { return buffer(); } char* begin() { return wbuffer(); } char* end() { return wbuffer() + length(); } const char* begin() const { return c_str(); } const char* end() const { return c_str() + length(); } // search int indexOf(char ch) const; int indexOf(char ch, unsigned int fromIndex) const; int indexOf(const String &str) const; int indexOf(const String &str, unsigned int fromIndex) const; int lastIndexOf(char ch) const; int lastIndexOf(char ch, unsigned int fromIndex) const; int lastIndexOf(const String &str) const; int lastIndexOf(const String &str, unsigned int fromIndex) const; String substring(unsigned int beginIndex) const { return substring(beginIndex, len()); } ; String substring(unsigned int beginIndex, unsigned int endIndex) const; // modification void replace(char find, char replace); void replace(const String &find, const String &replace); void replace(const char *find, const String &replace) { this->replace(String(find), replace); } void replace(const __FlashStringHelper *find, const String &replace) { this->replace(String(find), replace); } void replace(const char *find, const char *replace) { this->replace(String(find), String(replace)); } void replace(const __FlashStringHelper *find, const char *replace) { this->replace(String(find), String(replace)); } void replace(const __FlashStringHelper *find, const __FlashStringHelper *replace) { this->replace(String(find), String(replace)); } void remove(unsigned int index); void remove(unsigned int index, unsigned int count); void toLowerCase(void); void toUpperCase(void); void trim(void); // parsing/conversion long toInt(void) const; float toFloat(void) const; double toDouble(void) const; protected: // Contains the string info when we're not in SSO mode struct _ptr { char * buff; uint16_t cap; uint16_t len; }; // This allows strings up up to 11 (10 + \0 termination) without any extra space. enum { SSOSIZE = sizeof(struct _ptr) + 4 - 1 }; // Characters to allocate space for SSO, must be 12 or more struct _sso { char buff[SSOSIZE]; unsigned char len : 7; // Ensure only one byte is allocated by GCC for the bitfields unsigned char isSSO : 1; } __attribute__((packed)); // Ensure that GCC doesn't expand the flag byte to a 32-bit word for alignment issues enum { CAPACITY_MAX = 65535 }; // If typeof(cap) changed from uint16_t, be sure to update this enum to the max value storable in the type union { struct _ptr ptr; struct _sso sso; }; // Accessor functions inline bool isSSO() const { return sso.isSSO; } inline unsigned int len() const { return isSSO() ? sso.len : ptr.len; } inline unsigned int capacity() const { return isSSO() ? (unsigned int)SSOSIZE - 1 : ptr.cap; } // Size of max string not including terminal NUL inline void setSSO(bool set) { sso.isSSO = set; } inline void setLen(int len) { if (isSSO()) { sso.len = len; sso.buff[len] = 0; } else { ptr.len = len; if (ptr.buff) { ptr.buff[len] = 0; } } } inline void setCapacity(int cap) { if (!isSSO()) ptr.cap = cap; } inline void setBuffer(char *buff) { if (!isSSO()) ptr.buff = buff; } // Buffer accessor functions inline const char *buffer() const { return (const char *)(isSSO() ? sso.buff : ptr.buff); } inline char *wbuffer() const { return isSSO() ? const_cast(sso.buff) : ptr.buff; } // Writable version of buffer protected: void init(void); void invalidate(void); unsigned char changeBuffer(unsigned int maxStrLen); unsigned char concat(const char *cstr, unsigned int length); // copy and move String & copy(const char *cstr, unsigned int length); String & copy(const __FlashStringHelper *pstr, unsigned int length); #ifdef __GXX_EXPERIMENTAL_CXX0X__ void move(String &rhs); #endif }; class StringSumHelper: public String { public: StringSumHelper(const String &s) : String(s) { } StringSumHelper(const char *p) : String(p) { } StringSumHelper(char c) : String(c) { } StringSumHelper(unsigned char num) : String(num) { } StringSumHelper(int num) : String(num) { } StringSumHelper(unsigned int num) : String(num) { } StringSumHelper(long num) : String(num) { } StringSumHelper(unsigned long num) : String(num) { } StringSumHelper(float num) : String(num) { } StringSumHelper(double num) : String(num) { } }; extern const String emptyString; #endif // __cplusplus #endif // String_class_h ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/pgmspace.h ================================================ /* Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the RaspberryPi core for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef PGMSPACE_INCLUDE #define PGMSPACE_INCLUDE typedef void prog_void; typedef char prog_char; typedef unsigned char prog_uchar; typedef char prog_int8_t; typedef unsigned char prog_uint8_t; typedef short prog_int16_t; typedef unsigned short prog_uint16_t; typedef long prog_int32_t; typedef unsigned long prog_uint32_t; #define PROGMEM #define PGM_P const char * #define PGM_VOID_P const void * #define PSTR(s) (s) #define _SFR_BYTE(n) (n) #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) #define pgm_read_word(addr) ({ \ typeof(addr) _addr = (addr); \ *(const unsigned short *)(_addr); \ }) #define pgm_read_dword(addr) ({ \ typeof(addr) _addr = (addr); \ *(const unsigned long *)(_addr); \ }) #define pgm_read_float(addr) ({ \ typeof(addr) _addr = (addr); \ *(const float *)(_addr); \ }) #define pgm_read_ptr(addr) ({ \ typeof(addr) _addr = (addr); \ *(void * const *)(_addr); \ }) #define pgm_get_far_address(x) ((uint32_t)(&(x))) #define pgm_read_byte_near(addr) pgm_read_byte(addr) #define pgm_read_word_near(addr) pgm_read_word(addr) #define pgm_read_dword_near(addr) pgm_read_dword(addr) #define pgm_read_float_near(addr) pgm_read_float(addr) #define pgm_read_ptr_near(addr) pgm_read_ptr(addr) #define pgm_read_byte_far(addr) pgm_read_byte(addr) #define pgm_read_word_far(addr) pgm_read_word(addr) #define pgm_read_dword_far(addr) pgm_read_dword(addr) #define pgm_read_float_far(addr) pgm_read_float(addr) #define pgm_read_ptr_far(addr) pgm_read_ptr(addr) #define memcmp_P memcmp #define memccpy_P memccpy #define memmem_P memmem #define memcpy_P memcpy #define strcpy_P strcpy #define strncpy_P strncpy #define strcat_P strcat #define strncat_P strncat #define strcmp_P strcmp #define strncmp_P strncmp #define strcasecmp_P strcasecmp #define strncasecmp_P strncasecmp #define strlen_P strlen #define strnlen_P strnlen #define strstr_P strstr #define printf_P printf #define sprintf_P sprintf #define snprintf_P snprintf #define vsnprintf_P vsnprintf #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/stdlib_noniso.c ================================================ /* core_esp8266_noniso.c - nonstandard (but usefull) conversion functions Copyright (c) 2014 Ivan Grokhotkov. All rights reserved. This file is part of the esp8266 core for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified 03 April 2015 by Markus Sattler */ #include #include #include #include #include #include "stdlib_noniso.h" void reverse(char* begin, char* end) { char *is = begin; char *ie = end - 1; while(is < ie) { char tmp = *ie; *ie = *is; *is = tmp; ++is; --ie; } } char* ltoa(long value, char* result, int base) { if(base < 2 || base > 16) { *result = 0; return result; } char* out = result; long quotient = abs(value); do { const long tmp = quotient / base; *out = "0123456789abcdef"[quotient - (tmp * base)]; ++out; quotient = tmp; } while(quotient); // Apply negative sign if(value < 0) *out++ = '-'; reverse(result, out); *out = 0; return result; } char* ultoa(unsigned long value, char* result, int base) { if(base < 2 || base > 16) { *result = 0; return result; } char* out = result; unsigned long quotient = value; do { const unsigned long tmp = quotient / base; *out = "0123456789abcdef"[quotient - (tmp * base)]; ++out; quotient = tmp; } while(quotient); reverse(result, out); *out = 0; return result; } char * dtostrf(double number, signed char width, unsigned char prec, char *s) { bool negative = false; if (isnan(number)) { strcpy(s, "nan"); return s; } if (isinf(number)) { strcpy(s, "inf"); return s; } char* out = s; int fillme = width; // how many cells to fill for the integer part if (prec > 0) { fillme -= (prec+1); } // Handle negative numbers if (number < 0.0) { negative = true; fillme--; number = -number; } // Round correctly so that print(1.999, 2) prints as "2.00" // I optimized out most of the divisions double rounding = 2.0; for (uint8_t i = 0; i < prec; ++i) rounding *= 10.0; rounding = 1.0 / rounding; number += rounding; // Figure out how big our number really is double tenpow = 1.0; int digitcount = 1; while (number >= 10.0 * tenpow) { tenpow *= 10.0; digitcount++; } number /= tenpow; fillme -= digitcount; // Pad unused cells with spaces while (fillme-- > 0) { *out++ = ' '; } // Handle negative sign if (negative) *out++ = '-'; // Print the digits, and if necessary, the decimal point digitcount += prec; int8_t digit = 0; while (digitcount-- > 0) { digit = (int8_t)number; if (digit > 9) digit = 9; // insurance *out++ = (char)('0' | digit); if ((digitcount == prec) && (prec > 0)) { *out++ = '.'; } number -= digit; number *= 10.0; } // make sure the string is terminated *out = 0; return s; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/cpp/stdlib_noniso.h ================================================ /* stdlib_noniso.h - nonstandard (but usefull) conversion functions Copyright (c) 2014 Ivan Grokhotkov. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef STDLIB_NONISO_H #define STDLIB_NONISO_H #ifdef __cplusplus extern "C" { #endif int atoi(const char *s); long atol(const char* s); double atof(const char* s); char* itoa (int val, char *s, int radix); char* ltoa (long val, char *s, int radix); char* utoa (unsigned int val, char *s, int radix); char* ultoa (unsigned long val, char *s, int radix); char* dtostrf (double val, signed char width, unsigned char prec, char *s); #ifdef __cplusplus } // extern "C" #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2.h ================================================ /* u8g2.h Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. call sequence u8g2_SetupBuffer_XYZ u8x8_Setup_XYZ u8x8_SetupDefaults(u8g2); assign u8x8 callbacks u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_SETUP_MEMORY, 0, NULL); setup tile buffer Arduino Uno Text Example > FONT_ROTATION INTERSECTION CLIPPING text data bss dec hex > 8700 > x x x 7450 104 1116 8670 21de > - x x 7132 104 1115 8351 209f > x - x 7230 104 1116 8450 2102 > - - x 7010 104 1115 8229 2025 > - - - 6880 104 1115 8099 1fa3 */ #ifndef U8G2_H #define U8G2_H #include "u8x8.h" /* The following macro enables 16 Bit mode. Without defining this macro all calulations are done with 8 Bit (1 Byte) variables. Especially on AVR architecture, this will save some space. If this macro is defined, then U8g2 will switch to 16 Bit mode. Use 16 Bit mode for any display with more than 240 pixel in one direction. */ //#define U8G2_16BIT /* always enable U8G2_16BIT on 32bit environments, see issue https://github.com/olikraus/u8g2/issues/1222 */ #ifndef U8G2_16BIT #if defined(unix) || defined(__arm__) || defined(__xtensa__) || defined(xtensa) || defined(__arc__) || defined(ESP8266) || defined(ESP_PLATFORM) #define U8G2_16BIT #endif #endif /* The following macro switches the library into dynamic display buffer allocation mode. Defining this constant will disable all static memory allocation for device memory buffer and thus allows the user to allocate device buffers statically. Before using any display functions, the dynamic buffer *must* be assigned to the u8g2 struct using the u8g2_SetBufferPtr function. When using dynamic allocation, the stack size must be increased by u8g2_GetBufferSize bytes. */ //#define U8G2_USE_DYNAMIC_ALLOC /* U8g2 feature selection, see also https://github.com/olikraus/u8g2/wiki/u8g2optimization */ /* The following macro enables the HVLine speed optimization. It will consume about 40 bytes more in flash memory of the AVR. HVLine procedures are also used by the text drawing functions. */ #define U8G2_WITH_HVLINE_SPEED_OPTIMIZATION /* The following macro activates the early intersection check with the current visible area. Clipping (and low level intersection calculation) will still happen and is controlled by U8G2_WITH_CLIPPING. This early intersection check only improves speed for the picture loop (u8g2_FirstPage/NextPage). With a full framebuffer in RAM and if most graphical elements are drawn within the visible area, then this macro can be commented to reduce code size. */ #define U8G2_WITH_INTERSECTION /* Enable clip window support: void u8g2_SetMaxClipWindow(u8g2_t *u8g2) void u8g2_SetClipWindow(u8g2_t *u8g2, u8g2_uint_t clip_x0, u8g2_uint_t clip_y0, u8g2_uint_t clip_x1, u8g2_uint_t clip_y1 ) Setting a clip window will restrict all drawing to this window. Clip window support requires about 200 bytes flash memory on AVR systems */ #define U8G2_WITH_CLIP_WINDOW_SUPPORT /* The following macro enables all four drawing directions for glyphs and strings. If this macro is not defined, than a string can be drawn only in horizontal direction. Jan 2020: Disabling this macro will save up to 600 bytes on AVR */ #define U8G2_WITH_FONT_ROTATION /* U8glib V2 contains support for unicode plane 0 (Basic Multilingual Plane, BMP). The following macro activates this support. Deactivation would save some ROM. This definition also defines the behavior of the expected string encoding. If the following macro is defined, then the DrawUTF8 function is enabled and the string argument for this function is assumed to be UTF-8 encoded. If the following macro is not defined, then all strings in the c-code are assumed to be ISO 8859-1/CP1252 encoded. Independently from this macro, the Arduino print function never accepts UTF-8 strings. This macro does not affect the u8x8 string draw function. u8x8 has also two function, one for pure strings and one for UTF8 Conclusion: U8G2_WITH_UNICODE defined - C-Code Strings must be UTF-8 encoded - Full support of all 65536 glyphs of the unicode basic multilingual plane - Up to 65536 glyphs of the font file can be used. U8G2_WITH_UNICODE not defined - C-Code Strings are assumbed to be ISO 8859-1/CP1252 encoded - Only character values 0 to 255 are supported in the font file. */ #define U8G2_WITH_UNICODE /*==========================================*/ #ifdef __GNUC__ # define U8G2_NOINLINE __attribute__((noinline)) #else # define U8G2_NOINLINE #endif #define U8G2_FONT_SECTION(name) U8X8_FONT_SECTION(name) /* the macro U8G2_USE_LARGE_FONTS enables large fonts (>32K) */ /* it can be enabled for those uC supporting larger arrays */ #if defined(unix) || defined(__arm__) || defined(__arc__) || defined(ESP8266) || defined(ESP_PLATFORM) #ifndef U8G2_USE_LARGE_FONTS #define U8G2_USE_LARGE_FONTS #endif #endif /*==========================================*/ /* C++ compatible */ #ifdef __cplusplus extern "C" { #endif /*==========================================*/ #ifdef U8G2_16BIT typedef uint16_t u8g2_uint_t; /* for pixel position only */ typedef int16_t u8g2_int_t; /* introduced for circle calculation */ typedef int32_t u8g2_long_t; /* introduced for ellipse calculation */ #else typedef uint8_t u8g2_uint_t; /* for pixel position only */ typedef int8_t u8g2_int_t; /* introduced for circle calculation */ typedef int16_t u8g2_long_t; /* introduced for ellipse calculation */ #endif typedef struct u8g2_struct u8g2_t; typedef struct u8g2_cb_struct u8g2_cb_t; typedef void (*u8g2_update_dimension_cb)(u8g2_t *u8g2); typedef void (*u8g2_update_page_win_cb)(u8g2_t *u8g2); typedef void (*u8g2_draw_l90_cb)(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); typedef void (*u8g2_draw_ll_hvline_cb)(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); typedef uint8_t (*u8g2_get_kerning_cb)(u8g2_t *u8g2, uint16_t e1, uint16_t e2); /* from ucglib... */ struct _u8g2_font_info_t { /* offset 0 */ uint8_t glyph_cnt; uint8_t bbx_mode; uint8_t bits_per_0; uint8_t bits_per_1; /* offset 4 */ uint8_t bits_per_char_width; uint8_t bits_per_char_height; uint8_t bits_per_char_x; uint8_t bits_per_char_y; uint8_t bits_per_delta_x; /* offset 9 */ int8_t max_char_width; int8_t max_char_height; /* overall height, NOT ascent. Instead ascent = max_char_height + y_offset */ int8_t x_offset; int8_t y_offset; /* offset 13 */ int8_t ascent_A; int8_t descent_g; /* usually a negative value */ int8_t ascent_para; int8_t descent_para; /* offset 17 */ uint16_t start_pos_upper_A; uint16_t start_pos_lower_a; /* offset 21 */ #ifdef U8G2_WITH_UNICODE uint16_t start_pos_unicode; #endif }; typedef struct _u8g2_font_info_t u8g2_font_info_t; /* from ucglib... */ struct _u8g2_font_decode_t { const uint8_t *decode_ptr; /* pointer to the compressed data */ u8g2_uint_t target_x; u8g2_uint_t target_y; int8_t x; /* local coordinates, (0,0) is upper left */ int8_t y; int8_t glyph_width; int8_t glyph_height; uint8_t decode_bit_pos; /* bitpos inside a byte of the compressed data */ uint8_t is_transparent; uint8_t fg_color; uint8_t bg_color; #ifdef U8G2_WITH_FONT_ROTATION uint8_t dir; /* direction */ #endif }; typedef struct _u8g2_font_decode_t u8g2_font_decode_t; struct _u8g2_kerning_t { uint16_t first_table_cnt; uint16_t second_table_cnt; const uint16_t *first_encoding_table; const uint16_t *index_to_second_table; const uint16_t *second_encoding_table; const uint8_t *kerning_values; }; typedef struct _u8g2_kerning_t u8g2_kerning_t; struct u8g2_cb_struct { u8g2_update_dimension_cb update_dimension; u8g2_update_page_win_cb update_page_win; u8g2_draw_l90_cb draw_l90; }; typedef u8g2_uint_t (*u8g2_font_calc_vref_fnptr)(u8g2_t *u8g2); struct u8g2_struct { u8x8_t u8x8; u8g2_draw_ll_hvline_cb ll_hvline; /* low level hvline procedure */ const u8g2_cb_t *cb; /* callback drawprocedures, can be replaced for rotation */ /* the following variables must be assigned during u8g2 setup */ uint8_t *tile_buf_ptr; /* ptr to memory area with u8x8.display_info->tile_width * 8 * tile_buf_height bytes */ uint8_t tile_buf_height; /* height of the tile memory area in tile rows */ uint8_t tile_curr_row; /* current row for picture loop */ /* dimension of the buffer in pixel */ u8g2_uint_t pixel_buf_width; /* equal to tile_buf_width*8 */ u8g2_uint_t pixel_buf_height; /* tile_buf_height*8 */ u8g2_uint_t pixel_curr_row; /* u8g2.tile_curr_row*8 */ /* the following variables are set by the update dimension callback */ /* this is the clipbox after rotation for the hvline procedures */ //u8g2_uint_t buf_x0; /* left corner of the buffer */ //u8g2_uint_t buf_x1; /* right corner of the buffer (excluded) */ u8g2_uint_t buf_y0; u8g2_uint_t buf_y1; /* display dimensions in pixel for the user, calculated in u8g2_update_dimension_common() */ u8g2_uint_t width; u8g2_uint_t height; /* ths is the clip box for the user to check if a specific box has an intersection */ /* use u8g2_IsIntersection from u8g2_intersection.c to test against this intersection */ /* actually, this window describes the positon of the current page */ u8g2_uint_t user_x0; /* left corner of the buffer */ u8g2_uint_t user_x1; /* right corner of the buffer (excluded) */ u8g2_uint_t user_y0; /* upper edge of the buffer */ u8g2_uint_t user_y1; /* lower edge of the buffer (excluded) */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT /* clip window */ u8g2_uint_t clip_x0; /* left corner of the clip window */ u8g2_uint_t clip_x1; /* right corner of the clip window (excluded) */ u8g2_uint_t clip_y0; /* upper edge of the clip window */ u8g2_uint_t clip_y1; /* lower edge of the clip window (excluded) */ #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ /* information about the current font */ const uint8_t *font; /* current font for all text procedures */ // removed: const u8g2_kerning_t *kerning; /* can be NULL */ // removed: u8g2_get_kerning_cb get_kerning_cb; u8g2_font_calc_vref_fnptr font_calc_vref; u8g2_font_decode_t font_decode; /* new font decode structure */ u8g2_font_info_t font_info; /* new font info structure */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT /* 1 of there is an intersection between user_?? and clip_?? box */ uint8_t is_page_clip_window_intersection; #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ uint8_t font_height_mode; int8_t font_ref_ascent; int8_t font_ref_descent; int8_t glyph_x_offset; /* set by u8g2_GetGlyphWidth as a side effect */ uint8_t bitmap_transparency; /* black pixels will be treated as transparent (not drawn) */ uint8_t draw_color; /* 0: clear pixel, 1: set pixel, modified and restored by font procedures */ /* draw_color can be used also directly by the user API */ // the following variable should be renamed to is_buffer_auto_clear uint8_t is_auto_page_clear; /* set to 0 to disable automatic clear of the buffer in firstPage() and nextPage() */ }; #define u8g2_GetU8x8(u8g2) ((u8x8_t *)(u8g2)) //#define u8g2_GetU8x8(u8g2) (&((u8g2)->u8x8)) #ifdef U8X8_WITH_USER_PTR #define u8g2_GetUserPtr(u8g2) ((u8g2_GetU8x8(u8g2))->user_ptr) #define u8g2_SetUserPtr(u8g2, p) ((u8g2_GetU8x8(u8g2))->user_ptr = (p)) #endif // this should be renamed to SetBufferAutoClear #define u8g2_SetAutoPageClear(u8g2, mode) ((u8g2)->is_auto_page_clear = (mode)) /*==========================================*/ /* u8x8 wrapper */ #define u8g2_SetupDisplay(u8g2, display_cb, cad_cb, byte_cb, gpio_and_delay_cb) \ u8x8_Setup(u8g2_GetU8x8(u8g2), (display_cb), (cad_cb), (byte_cb), (gpio_and_delay_cb)) #define u8g2_InitDisplay(u8g2) u8x8_InitDisplay(u8g2_GetU8x8(u8g2)) #define u8g2_SetPowerSave(u8g2, is_enable) u8x8_SetPowerSave(u8g2_GetU8x8(u8g2), (is_enable)) #define u8g2_SetFlipMode(u8g2, mode) u8x8_SetFlipMode(u8g2_GetU8x8(u8g2), (mode)) #define u8g2_SetContrast(u8g2, value) u8x8_SetContrast(u8g2_GetU8x8(u8g2), (value)) //#define u8g2_ClearDisplay(u8g2) u8x8_ClearDisplay(u8g2_GetU8x8(u8g2)) obsolete, can not be used in all cases void u8g2_ClearDisplay(u8g2_t *u8g2); #define u8g2_GetDisplayHeight(u8g2) ((u8g2)->height) #define u8g2_GetDisplayWidth(u8g2) ((u8g2)->width) #define u8g2_GetDrawColor(u8g2) ((u8g2)->draw_color) #define u8g2_SetI2CAddress(u8g2, address) ((u8g2_GetU8x8(u8g2))->i2c_address = (address)) #define u8g2_GetI2CAddress(u8g2) u8x8_GetI2CAddress(u8g2_GetU8x8(u8g2)) #ifdef U8X8_USE_PINS #define u8g2_SetMenuSelectPin(u8g2, val) u8x8_SetMenuSelectPin(u8g2_GetU8x8(u8g2), (val)) #define u8g2_SetMenuNextPin(u8g2, val) u8x8_SetMenuNextPin(u8g2_GetU8x8(u8g2), (val)) #define u8g2_SetMenuPrevPin(u8g2, val) u8x8_SetMenuPrevPin(u8g2_GetU8x8(u8g2), (val)) #define u8g2_SetMenuHomePin(u8g2, val) u8x8_SetMenuHomePin(u8g2_GetU8x8(u8g2), (val)) #define u8g2_SetMenuUpPin(u8g2, val) u8x8_SetMenuUpPin(u8g2_GetU8x8(u8g2), (val)) #define u8g2_SetMenuDownPin(u8g2, val) u8x8_SetMenuDownPin(u8g2_GetU8x8(u8g2), (val)) #endif /*==========================================*/ /* u8g2_setup.c */ void u8g2_draw_l90_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); extern const u8g2_cb_t u8g2_cb_r0; extern const u8g2_cb_t u8g2_cb_r1; extern const u8g2_cb_t u8g2_cb_r2; extern const u8g2_cb_t u8g2_cb_r3; extern const u8g2_cb_t u8g2_cb_mirror; extern const u8g2_cb_t u8g2_cb_mirror_vertical; #define U8G2_R0 (&u8g2_cb_r0) #define U8G2_R1 (&u8g2_cb_r1) #define U8G2_R2 (&u8g2_cb_r2) #define U8G2_R3 (&u8g2_cb_r3) #define U8G2_MIRROR (&u8g2_cb_mirror) #define U8G2_MIRROR_VERTICAL (&u8g2_cb_mirror_vertical) /* u8g2: A new, not yet initialized u8g2 memory areay buf: Memory are of size tile_buf_height* tile_buf_height: Number of full lines ll_hvline_cb: one of: u8g2_ll_hvline_vertical_top_lsb u8g2_ll_hvline_horizontal_right_lsb u8g2_cb U8G2_R0 .. U8G2_R3 */ void u8g2_SetMaxClipWindow(u8g2_t *u8g2); void u8g2_SetClipWindow(u8g2_t *u8g2, u8g2_uint_t clip_x0, u8g2_uint_t clip_y0, u8g2_uint_t clip_x1, u8g2_uint_t clip_y1 ); void u8g2_SetupBuffer(u8g2_t *u8g2, uint8_t *buf, uint8_t tile_buf_height, u8g2_draw_ll_hvline_cb ll_hvline_cb, const u8g2_cb_t *u8g2_cb); void u8g2_SetDisplayRotation(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); void u8g2_SendF(u8g2_t * u8g2, const char *fmt, ...); /* null device setup */ void u8g2_Setup_null(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); /*==========================================*/ /* u8g2_d_memory.c generated code start */ uint8_t *u8g2_m_16_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_16_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_16_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_16_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_16_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_16_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_16_10_f(uint8_t *page_cnt); uint8_t *u8g2_m_255_2_1(uint8_t *page_cnt); uint8_t *u8g2_m_255_2_2(uint8_t *page_cnt); uint8_t *u8g2_m_255_2_f(uint8_t *page_cnt); uint8_t *u8g2_m_9_5_1(uint8_t *page_cnt); uint8_t *u8g2_m_9_5_2(uint8_t *page_cnt); uint8_t *u8g2_m_9_5_f(uint8_t *page_cnt); uint8_t *u8g2_m_8_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_8_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_8_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_8_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_8_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_8_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_12_12_1(uint8_t *page_cnt); uint8_t *u8g2_m_12_12_2(uint8_t *page_cnt); uint8_t *u8g2_m_12_12_f(uint8_t *page_cnt); uint8_t *u8g2_m_16_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_16_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_16_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_20_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_20_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_20_f(uint8_t *page_cnt); uint8_t *u8g2_m_32_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_32_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_32_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_8_6_1(uint8_t *page_cnt); uint8_t *u8g2_m_8_6_2(uint8_t *page_cnt); uint8_t *u8g2_m_8_6_f(uint8_t *page_cnt); uint8_t *u8g2_m_6_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_6_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_6_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_12_2_1(uint8_t *page_cnt); uint8_t *u8g2_m_12_2_2(uint8_t *page_cnt); uint8_t *u8g2_m_12_2_f(uint8_t *page_cnt); uint8_t *u8g2_m_16_12_1(uint8_t *page_cnt); uint8_t *u8g2_m_16_12_2(uint8_t *page_cnt); uint8_t *u8g2_m_16_12_f(uint8_t *page_cnt); uint8_t *u8g2_m_32_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_32_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_32_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_12_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_12_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_12_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_24_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_24_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_24_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_50_30_1(uint8_t *page_cnt); uint8_t *u8g2_m_50_30_2(uint8_t *page_cnt); uint8_t *u8g2_m_50_30_f(uint8_t *page_cnt); uint8_t *u8g2_m_18_21_1(uint8_t *page_cnt); uint8_t *u8g2_m_18_21_2(uint8_t *page_cnt); uint8_t *u8g2_m_18_21_f(uint8_t *page_cnt); uint8_t *u8g2_m_13_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_13_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_13_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_11_6_1(uint8_t *page_cnt); uint8_t *u8g2_m_11_6_2(uint8_t *page_cnt); uint8_t *u8g2_m_11_6_f(uint8_t *page_cnt); uint8_t *u8g2_m_12_9_1(uint8_t *page_cnt); uint8_t *u8g2_m_12_9_2(uint8_t *page_cnt); uint8_t *u8g2_m_12_9_f(uint8_t *page_cnt); uint8_t *u8g2_m_24_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_24_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_24_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_30_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_30_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_30_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_30_15_1(uint8_t *page_cnt); uint8_t *u8g2_m_30_15_2(uint8_t *page_cnt); uint8_t *u8g2_m_30_15_f(uint8_t *page_cnt); uint8_t *u8g2_m_30_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_30_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_30_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_13_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_13_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_13_f(uint8_t *page_cnt); uint8_t *u8g2_m_30_20_1(uint8_t *page_cnt); uint8_t *u8g2_m_30_20_2(uint8_t *page_cnt); uint8_t *u8g2_m_30_20_f(uint8_t *page_cnt); uint8_t *u8g2_m_32_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_32_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_32_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_40_30_1(uint8_t *page_cnt); uint8_t *u8g2_m_40_30_2(uint8_t *page_cnt); uint8_t *u8g2_m_40_30_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_17_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_17_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_17_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_17_8_1(uint8_t *page_cnt); uint8_t *u8g2_m_17_8_2(uint8_t *page_cnt); uint8_t *u8g2_m_17_8_f(uint8_t *page_cnt); uint8_t *u8g2_m_48_17_1(uint8_t *page_cnt); uint8_t *u8g2_m_48_17_2(uint8_t *page_cnt); uint8_t *u8g2_m_48_17_f(uint8_t *page_cnt); uint8_t *u8g2_m_32_20_1(uint8_t *page_cnt); uint8_t *u8g2_m_32_20_2(uint8_t *page_cnt); uint8_t *u8g2_m_32_20_f(uint8_t *page_cnt); uint8_t *u8g2_m_22_13_1(uint8_t *page_cnt); uint8_t *u8g2_m_22_13_2(uint8_t *page_cnt); uint8_t *u8g2_m_22_13_f(uint8_t *page_cnt); uint8_t *u8g2_m_24_12_1(uint8_t *page_cnt); uint8_t *u8g2_m_24_12_2(uint8_t *page_cnt); uint8_t *u8g2_m_24_12_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_10_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_10_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_10_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_4_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_4_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_4_f(uint8_t *page_cnt); uint8_t *u8g2_m_20_17_1(uint8_t *page_cnt); uint8_t *u8g2_m_20_17_2(uint8_t *page_cnt); uint8_t *u8g2_m_20_17_f(uint8_t *page_cnt); uint8_t *u8g2_m_22_9_1(uint8_t *page_cnt); uint8_t *u8g2_m_22_9_2(uint8_t *page_cnt); uint8_t *u8g2_m_22_9_f(uint8_t *page_cnt); uint8_t *u8g2_m_25_25_1(uint8_t *page_cnt); uint8_t *u8g2_m_25_25_2(uint8_t *page_cnt); uint8_t *u8g2_m_25_25_f(uint8_t *page_cnt); uint8_t *u8g2_m_37_16_1(uint8_t *page_cnt); uint8_t *u8g2_m_37_16_2(uint8_t *page_cnt); uint8_t *u8g2_m_37_16_f(uint8_t *page_cnt); uint8_t *u8g2_m_8_1_1(uint8_t *page_cnt); uint8_t *u8g2_m_8_1_2(uint8_t *page_cnt); uint8_t *u8g2_m_8_1_f(uint8_t *page_cnt); uint8_t *u8g2_m_4_1_1(uint8_t *page_cnt); uint8_t *u8g2_m_4_1_2(uint8_t *page_cnt); uint8_t *u8g2_m_4_1_f(uint8_t *page_cnt); uint8_t *u8g2_m_1_1_1(uint8_t *page_cnt); uint8_t *u8g2_m_1_1_2(uint8_t *page_cnt); uint8_t *u8g2_m_1_1_f(uint8_t *page_cnt); uint8_t *u8g2_m_48_30_1(uint8_t *page_cnt); uint8_t *u8g2_m_48_30_2(uint8_t *page_cnt); uint8_t *u8g2_m_48_30_f(uint8_t *page_cnt); /* u8g2_d_memory.c generated code end */ /*==========================================*/ /* u8g2_d_setup.c generated code start */ void u8g2_Setup_ssd1305_128x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x32_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x32_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x32_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x32_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_raystar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_raystar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_128x64_raystar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_raystar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_raystar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1305_i2c_128x64_raystar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_2040x16_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_2040x16_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_2040x16_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_alt0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_alt0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x64_alt0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_alt0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_alt0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x80_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x64_alt0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_72x40_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_72x40_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_72x40_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_72x40_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_72x40_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_72x40_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_72x40_wise_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_72x40_wise_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_72x40_wise_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_72x40_wise_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_72x40_wise_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_72x40_wise_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_64x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_64x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_64x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_64x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_64x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_64x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_pimoroni_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_pimoroni_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_pimoroni_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_seeed_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_pimoroni_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_pimoroni_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_pimoroni_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1107_i2c_seeed_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_i2c_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_i2c_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1108_i2c_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_i2c_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_i2c_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1122_i2c_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_128x32_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_128x32_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x32_visionox_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x32_visionox_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_128x32_visionox_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x32_visionox_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x32_visionox_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sh1106_i2c_128x32_visionox_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x48_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x48_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x48_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x48_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x48_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x48_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_48x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_48x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_48x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_48x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_48x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_48x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_1f_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_1f_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_64x32_1f_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_1f_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_1f_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_64x32_1f_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_96x16_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_96x16_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_96x16_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_96x16_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_96x16_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1306_i2c_96x16_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname2_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname2_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname2_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname2_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname2_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname2_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_128x64_noname0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1309_i2c_128x64_noname0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_i2c_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_i2c_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1316_i2c_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_i2c_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_i2c_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1317_i2c_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_xcp_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_xcp_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_128x96_xcp_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_xcp_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_xcp_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1318_i2c_128x96_xcp_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_i2c_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_i2c_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1325_i2c_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_os128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_os128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_os128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_i2c_os128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_i2c_os128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd0323_i2c_os128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_er_256x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_er_256x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_er_256x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_i2c_er_256x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_i2c_er_256x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1326_i2c_er_256x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_96x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_96x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_96x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_96x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_96x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_96x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ea_w128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_midas_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ea_w128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_midas_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ea_w128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_midas_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_ws_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ea_w128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_midas_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ea_w128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_midas_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ea_w128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_midas_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_ws_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_visionox_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_visionox_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_visionox_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_visionox_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_visionox_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1327_i2c_visionox_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1329_128x96_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1329_128x96_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1329_128x96_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_60x32_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ld7032_i2c_60x32_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_p_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7920_s_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh03_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh03_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh03_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_400x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_m0_400x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_400x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_m0_400x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_400x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls027b7dh01_m0_400x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh05_144x168_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh05_144x168_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ls013b7dh05_144x168_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_ea_dogs102_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_ea_dogs102_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_ea_dogs102_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_mini12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_mini12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1701_mini12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcd8544_84x48_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcd8544_84x48_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcd8544_84x48_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcf8812_96x65_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcf8812_96x65_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_pcf8812_96x65_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_hx1230_96x68_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_hx1230_96x68_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_hx1230_96x68_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_jlx19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_jlx19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_jlx19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_i2c_jlx19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_i2c_jlx19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1604_i2c_jlx19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc24064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_dem240064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc24064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_dem240064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc24064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_dem240064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc24064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_dem240064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc24064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_dem240064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc24064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_dem240064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc240120_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc240120_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_erc240120_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc240120_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc240120_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_erc240120_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1608_i2c_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1638_160x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1638_160x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1638_160x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_ea_dogxl160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_ea_dogxl160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_ea_dogxl160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_i2c_ea_dogxl160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_i2c_ea_dogxl160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1610_i2c_ea_dogxl160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogm240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogm240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogm240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogm240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogm240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogm240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogxl240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogxl240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ea_dogxl240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogxl240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogxl240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ea_dogxl240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ew50850_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ew50850_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ew50850_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ew50850_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ew50850_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ew50850_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_cg160160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_cg160160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_cg160160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_cg160160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_cg160160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_cg160160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ids4073_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ids4073_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_ids4073_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ids4073_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ids4073_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1611_i2c_ids4073_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7511_avd_320x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7511_avd_320x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7511_avd_320x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_nhd_c160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_nhd_c160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_nhd_c160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_nhd_c160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_nhd_c160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_nhd_c160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_erc16064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_erc16064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_erc16064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_erc16064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_erc16064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7528_i2c_erc16064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_jlx128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_jlx128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_jlx128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_i2c_jlx128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_i2c_jlx128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1617_i2c_jlx128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6063_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_64128n_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_zolen_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6059_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ks0713_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6063_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_64128n_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_zolen_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6059_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ks0713_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6063_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_64128n_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_zolen_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lm6059_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ks0713_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_lx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_erc12864_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12832_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12832_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_nhd_c12832_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_i2c_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_i2c_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_uc1601_i2c_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm132_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm132_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7565_ea_dogm132_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_pi_132x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_pi_132x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_pi_132x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064i_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_os12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064i_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_os12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_enh_dg128064i_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_os12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_hem6432_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_hem6432_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_hem6432_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_hem6432_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_hem6432_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7567_i2c_hem6432_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_i2c_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_i2c_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7571_i2c_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_s028hn118a_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_s028hn118a_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_s028hn118a_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_erc240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_ymc240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_erc240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_ymc240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_erc240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7586s_ymc240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_i2c_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_i2c_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st7588_i2c_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_wo256x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_wo256x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_wo256x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_wo256x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_wo256x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_wo256x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160m_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160m_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160m_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx256160_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160m_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160m_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160m_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx256160_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx25664_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx25664_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx25664_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx25664_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx25664_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx25664_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx172104_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx172104_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx172104_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx172104_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx172104_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx172104_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx19296_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx19296_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_jlx19296_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx19296_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx19296_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75256_i2c_jlx19296_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_jlx320240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_jlx320240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_jlx320240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_i2c_jlx320240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_i2c_jlx320240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_st75320_i2c_jlx320240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_nt7534_tg12864r_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_nt7534_tg12864r_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_nt7534_tg12864r_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist3020_erc19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist3020_erc19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist3020_erc19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist7920_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist7920_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ist7920_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sbn1661_122x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sbn1661_122x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sbn1661_122x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1520_122x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1520_122x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1520_122x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_erm19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_erm19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ks0108_erm19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x80_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x80_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x80_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_lc7981_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_128x64_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_160x80_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_160x80_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_t6963_160x80_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x132_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x132_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1320_160x132_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1322_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1606_172x72_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1606_172x72_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1606_172x72_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_gd_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_ws_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_gd_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_ws_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_gd_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ssd1607_ws_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_296x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_v2_296x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_296x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_v2_296x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_296x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_il3820_v2_296x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1330_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1330_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_sed1330_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_nhd_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_nhd_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_nhd_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_320x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_320x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_ra8835_320x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_64x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_64x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_64x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_32x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_32x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_32x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_8x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_8x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_max7219_8x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15e06_160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15e06_160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15e06_160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15721_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15721_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_s1d15721_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_a2printer_384x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_a2printer_384x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); void u8g2_Setup_a2printer_384x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); /* u8g2_d_setup.c generated code end */ /*==========================================*/ /* u8g2_buffer.c */ void u8g2_SendBuffer(u8g2_t *u8g2); void u8g2_ClearBuffer(u8g2_t *u8g2); void u8g2_SetBufferCurrTileRow(u8g2_t *u8g2, uint8_t row) U8G2_NOINLINE; void u8g2_FirstPage(u8g2_t *u8g2); uint8_t u8g2_NextPage(u8g2_t *u8g2); #ifdef U8G2_USE_DYNAMIC_ALLOC #define u8g2_SetBufferPtr(u8g2, buf) ((u8g2)->tile_buf_ptr = (buf)); #define u8g2_GetBufferSize(u8g2) ((u8g2)->u8x8.display_info->tile_width * 8 * (u8g2)->tile_buf_height) #endif #define u8g2_GetBufferPtr(u8g2) ((u8g2)->tile_buf_ptr) #define u8g2_GetBufferTileHeight(u8g2) ((u8g2)->tile_buf_height) #define u8g2_GetBufferTileWidth(u8g2) (u8g2_GetU8x8(u8g2)->display_info->tile_width) /* the following variable is only valid after calling u8g2_FirstPage */ /* renamed from Page to Buffer: the CurrTileRow is the current row of the buffer, issue #370 */ #define u8g2_GetPageCurrTileRow(u8g2) ((u8g2)->tile_curr_row) #define u8g2_GetBufferCurrTileRow(u8g2) ((u8g2)->tile_curr_row) void u8g2_UpdateDisplayArea(u8g2_t *u8g2, uint8_t tx, uint8_t ty, uint8_t tw, uint8_t th); void u8g2_UpdateDisplay(u8g2_t *u8g2); void u8g2_WriteBufferPBM(u8g2_t *u8g2, void (*out)(const char *s)); void u8g2_WriteBufferXBM(u8g2_t *u8g2, void (*out)(const char *s)); /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ void u8g2_WriteBufferPBM2(u8g2_t *u8g2, void (*out)(const char *s)); void u8g2_WriteBufferXBM2(u8g2_t *u8g2, void (*out)(const char *s)); /*==========================================*/ /* u8g2_ll_hvline.c */ /* x,y Upper left position of the line within the local buffer (not the display!) len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) asumption: all clipping done */ /* SSD13xx, UC17xx, UC16xx */ void u8g2_ll_hvline_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); /* ST7920 */ void u8g2_ll_hvline_horizontal_right_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); /*==========================================*/ /* u8g2_hvline.c */ /* u8g2_DrawHVLine does not use u8g2_IsIntersection */ void u8g2_DrawHVLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); /* the following three function will do an intersection test of this is enabled with U8G2_WITH_INTERSECTION */ void u8g2_DrawHLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len); void u8g2_DrawVLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len); void u8g2_DrawPixel(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y); void u8g2_SetDrawColor(u8g2_t *u8g2, uint8_t color) U8G2_NOINLINE; /* u8g: u8g_SetColorIndex(u8g_t *u8g, uint8_t idx); */ /*==========================================*/ /* u8g2_bitmap.c */ void u8g2_SetBitmapMode(u8g2_t *u8g2, uint8_t is_transparent); void u8g2_DrawHorizontalBitmap(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, const uint8_t *b); void u8g2_DrawBitmap(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t cnt, u8g2_uint_t h, const uint8_t *bitmap); void u8g2_DrawXBM(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap); void u8g2_DrawXBMP(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap); /* assumes bitmap in PROGMEM */ /*==========================================*/ /* u8g2_intersection.c */ #ifdef U8G2_WITH_INTERSECTION uint8_t u8g2_IsIntersection(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t x1, u8g2_uint_t y1); #endif /* U8G2_WITH_INTERSECTION */ /*==========================================*/ /* u8g2_circle.c */ #define U8G2_DRAW_UPPER_RIGHT 0x01 #define U8G2_DRAW_UPPER_LEFT 0x02 #define U8G2_DRAW_LOWER_LEFT 0x04 #define U8G2_DRAW_LOWER_RIGHT 0x08 #define U8G2_DRAW_ALL (U8G2_DRAW_UPPER_RIGHT|U8G2_DRAW_UPPER_LEFT|U8G2_DRAW_LOWER_RIGHT|U8G2_DRAW_LOWER_LEFT) void u8g2_DrawCircle(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option); void u8g2_DrawDisc(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option); void u8g2_DrawEllipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option); void u8g2_DrawFilledEllipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option); /*==========================================*/ /* u8g2_line.c */ void u8g2_DrawLine(u8g2_t *u8g2, u8g2_uint_t x1, u8g2_uint_t y1, u8g2_uint_t x2, u8g2_uint_t y2); /*==========================================*/ /* u8g2_box.c */ void u8g2_DrawBox(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h); void u8g2_DrawFrame(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h); void u8g2_DrawRBox(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r); void u8g2_DrawRFrame(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r); /*==========================================*/ /* u8g2_polygon.c */ void u8g2_ClearPolygonXY(void); void u8g2_AddPolygonXY(u8g2_t *u8g2, int16_t x, int16_t y); void u8g2_DrawPolygon(u8g2_t *u8g2); void u8g2_DrawTriangle(u8g2_t *u8g2, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2); /*==========================================*/ /* u8g2_kerning.c */ //uint8_t u8g2_GetNullKerning(u8g2_t *u8g2, uint16_t e1, uint16_t e2); uint8_t u8g2_GetKerning(u8g2_t *u8g2, u8g2_kerning_t *kerning, uint16_t e1, uint16_t e2); uint8_t u8g2_GetKerningByTable(u8g2_t *u8g2, const uint16_t *kt, uint16_t e1, uint16_t e2); /*==========================================*/ /* u8g2_font.c */ u8g2_uint_t u8g2_add_vector_y(u8g2_uint_t dy, int8_t x, int8_t y, uint8_t dir) U8G2_NOINLINE; u8g2_uint_t u8g2_add_vector_x(u8g2_uint_t dx, int8_t x, int8_t y, uint8_t dir) U8G2_NOINLINE; size_t u8g2_GetFontSize(const uint8_t *font_arg); #define U8G2_FONT_HEIGHT_MODE_TEXT 0 #define U8G2_FONT_HEIGHT_MODE_XTEXT 1 #define U8G2_FONT_HEIGHT_MODE_ALL 2 void u8g2_SetFont(u8g2_t *u8g2, const uint8_t *font); void u8g2_SetFontMode(u8g2_t *u8g2, uint8_t is_transparent); uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding); int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding); u8g2_uint_t u8g2_DrawGlyph(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding); int8_t u8g2_GetStrX(u8g2_t *u8g2, const char *s); /* for u8g compatibility */ void u8g2_SetFontDirection(u8g2_t *u8g2, uint8_t dir); u8g2_uint_t u8g2_DrawStr(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str); u8g2_uint_t u8g2_DrawUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str); u8g2_uint_t u8g2_DrawExtendedUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint8_t to_left, u8g2_kerning_t *kerning, const char *str); u8g2_uint_t u8g2_DrawExtUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint8_t to_left, const uint16_t *kerning_table, const char *str); #define u8g2_GetMaxCharHeight(u8g2) ((u8g2)->font_info.max_char_height) #define u8g2_GetMaxCharWidth(u8g2) ((u8g2)->font_info.max_char_width) #define u8g2_GetAscent(u8g2) ((u8g2)->font_ref_ascent) #define u8g2_GetDescent(u8g2) ((u8g2)->font_ref_descent) #define u8g2_GetFontAscent(u8g2) ((u8g2)->font_ref_ascent) #define u8g2_GetFontDescent(u8g2) ((u8g2)->font_ref_descent) uint8_t u8g2_IsAllValidUTF8(u8g2_t *u8g2, const char *str); // checks whether all codes are valid u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s); u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str); void u8g2_SetFontPosBaseline(u8g2_t *u8g2); void u8g2_SetFontPosBottom(u8g2_t *u8g2); void u8g2_SetFontPosTop(u8g2_t *u8g2); void u8g2_SetFontPosCenter(u8g2_t *u8g2); void u8g2_SetFontRefHeightText(u8g2_t *u8g2); void u8g2_SetFontRefHeightExtendedText(u8g2_t *u8g2); void u8g2_SetFontRefHeightAll(u8g2_t *u8g2); /*==========================================*/ /* u8log_u8g2.c */ void u8g2_DrawLog(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8log_t *u8log); void u8log_u8g2_cb(u8log_t * u8log); /*==========================================*/ /* u8g2_selection_list.c */ void u8g2_DrawUTF8Line(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, const char *s, uint8_t border_size, uint8_t is_invert); u8g2_uint_t u8g2_DrawUTF8Lines(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t line_height, const char *s); uint8_t u8g2_UserInterfaceSelectionList(u8g2_t *u8g2, const char *title, uint8_t start_pos, const char *sl); /*==========================================*/ /* u8g2_message.c */ uint8_t u8g2_UserInterfaceMessage(u8g2_t *u8g2, const char *title1, const char *title2, const char *title3, const char *buttons); /*==========================================*/ /* u8g2_input_value.c */ uint8_t u8g2_UserInterfaceInputValue(u8g2_t *u8g2, const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post); /*==========================================*/ /* u8x8_d_sdl_128x64.c */ void u8g2_SetupBuffer_SDL_128x64(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); void u8g2_SetupBuffer_SDL_128x64_4(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); void u8g2_SetupBuffer_SDL_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); /*==========================================*/ /* u8x8_d_tga.c */ void u8g2_SetupBuffer_TGA_DESC(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); void u8g2_SetupBuffer_TGA_LCD(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); /*==========================================*/ /* u8x8_d_bitmap.c */ void u8g2_SetupBitmap(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb, uint16_t pixel_width, uint16_t pixel_height); /*==========================================*/ /* u8x8_d_utf8.c */ /* 96x32 stdout */ void u8g2_SetupBuffer_Utf8(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb); /*==========================================*/ /* itoa procedures */ #define u8g2_u8toa u8x8_u8toa #define u8g2_u16toa u8x8_u16toa /*==========================================*/ /* start font list */ extern const uint8_t u8g2_font_u8glib_4_tf[] U8G2_FONT_SECTION("u8g2_font_u8glib_4_tf"); extern const uint8_t u8g2_font_u8glib_4_tr[] U8G2_FONT_SECTION("u8g2_font_u8glib_4_tr"); extern const uint8_t u8g2_font_u8glib_4_hf[] U8G2_FONT_SECTION("u8g2_font_u8glib_4_hf"); extern const uint8_t u8g2_font_u8glib_4_hr[] U8G2_FONT_SECTION("u8g2_font_u8glib_4_hr"); extern const uint8_t u8g2_font_m2icon_5_tf[] U8G2_FONT_SECTION("u8g2_font_m2icon_5_tf"); extern const uint8_t u8g2_font_m2icon_7_tf[] U8G2_FONT_SECTION("u8g2_font_m2icon_7_tf"); extern const uint8_t u8g2_font_m2icon_9_tf[] U8G2_FONT_SECTION("u8g2_font_m2icon_9_tf"); extern const uint8_t u8g2_font_emoticons21_tr[] U8G2_FONT_SECTION("u8g2_font_emoticons21_tr"); extern const uint8_t u8g2_font_battery19_tn[] U8G2_FONT_SECTION("u8g2_font_battery19_tn"); extern const uint8_t u8g2_font_freedoomr10_tu[] U8G2_FONT_SECTION("u8g2_font_freedoomr10_tu"); extern const uint8_t u8g2_font_freedoomr10_mu[] U8G2_FONT_SECTION("u8g2_font_freedoomr10_mu"); extern const uint8_t u8g2_font_freedoomr25_tn[] U8G2_FONT_SECTION("u8g2_font_freedoomr25_tn"); extern const uint8_t u8g2_font_freedoomr25_mn[] U8G2_FONT_SECTION("u8g2_font_freedoomr25_mn"); extern const uint8_t u8g2_font_7Segments_26x42_mn[] U8G2_FONT_SECTION("u8g2_font_7Segments_26x42_mn"); extern const uint8_t u8g2_font_amstrad_cpc_extended_8f[] U8G2_FONT_SECTION("u8g2_font_amstrad_cpc_extended_8f"); extern const uint8_t u8g2_font_amstrad_cpc_extended_8r[] U8G2_FONT_SECTION("u8g2_font_amstrad_cpc_extended_8r"); extern const uint8_t u8g2_font_amstrad_cpc_extended_8n[] U8G2_FONT_SECTION("u8g2_font_amstrad_cpc_extended_8n"); extern const uint8_t u8g2_font_amstrad_cpc_extended_8u[] U8G2_FONT_SECTION("u8g2_font_amstrad_cpc_extended_8u"); extern const uint8_t u8g2_font_cursor_tf[] U8G2_FONT_SECTION("u8g2_font_cursor_tf"); extern const uint8_t u8g2_font_cursor_tr[] U8G2_FONT_SECTION("u8g2_font_cursor_tr"); extern const uint8_t u8g2_font_micro_tr[] U8G2_FONT_SECTION("u8g2_font_micro_tr"); extern const uint8_t u8g2_font_micro_tn[] U8G2_FONT_SECTION("u8g2_font_micro_tn"); extern const uint8_t u8g2_font_micro_mr[] U8G2_FONT_SECTION("u8g2_font_micro_mr"); extern const uint8_t u8g2_font_micro_mn[] U8G2_FONT_SECTION("u8g2_font_micro_mn"); extern const uint8_t u8g2_font_4x6_tf[] U8G2_FONT_SECTION("u8g2_font_4x6_tf"); extern const uint8_t u8g2_font_4x6_tr[] U8G2_FONT_SECTION("u8g2_font_4x6_tr"); extern const uint8_t u8g2_font_4x6_tn[] U8G2_FONT_SECTION("u8g2_font_4x6_tn"); extern const uint8_t u8g2_font_4x6_mf[] U8G2_FONT_SECTION("u8g2_font_4x6_mf"); extern const uint8_t u8g2_font_4x6_mr[] U8G2_FONT_SECTION("u8g2_font_4x6_mr"); extern const uint8_t u8g2_font_4x6_mn[] U8G2_FONT_SECTION("u8g2_font_4x6_mn"); extern const uint8_t u8g2_font_4x6_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_4x6_t_cyrillic"); extern const uint8_t u8g2_font_5x7_tf[] U8G2_FONT_SECTION("u8g2_font_5x7_tf"); extern const uint8_t u8g2_font_5x7_tr[] U8G2_FONT_SECTION("u8g2_font_5x7_tr"); extern const uint8_t u8g2_font_5x7_tn[] U8G2_FONT_SECTION("u8g2_font_5x7_tn"); extern const uint8_t u8g2_font_5x7_mf[] U8G2_FONT_SECTION("u8g2_font_5x7_mf"); extern const uint8_t u8g2_font_5x7_mr[] U8G2_FONT_SECTION("u8g2_font_5x7_mr"); extern const uint8_t u8g2_font_5x7_mn[] U8G2_FONT_SECTION("u8g2_font_5x7_mn"); extern const uint8_t u8g2_font_5x7_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_5x7_t_cyrillic"); extern const uint8_t u8g2_font_5x8_tf[] U8G2_FONT_SECTION("u8g2_font_5x8_tf"); extern const uint8_t u8g2_font_5x8_tr[] U8G2_FONT_SECTION("u8g2_font_5x8_tr"); extern const uint8_t u8g2_font_5x8_tn[] U8G2_FONT_SECTION("u8g2_font_5x8_tn"); extern const uint8_t u8g2_font_5x8_mf[] U8G2_FONT_SECTION("u8g2_font_5x8_mf"); extern const uint8_t u8g2_font_5x8_mr[] U8G2_FONT_SECTION("u8g2_font_5x8_mr"); extern const uint8_t u8g2_font_5x8_mn[] U8G2_FONT_SECTION("u8g2_font_5x8_mn"); extern const uint8_t u8g2_font_5x8_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_5x8_t_cyrillic"); extern const uint8_t u8g2_font_6x10_tf[] U8G2_FONT_SECTION("u8g2_font_6x10_tf"); extern const uint8_t u8g2_font_6x10_tr[] U8G2_FONT_SECTION("u8g2_font_6x10_tr"); extern const uint8_t u8g2_font_6x10_tn[] U8G2_FONT_SECTION("u8g2_font_6x10_tn"); extern const uint8_t u8g2_font_6x10_mf[] U8G2_FONT_SECTION("u8g2_font_6x10_mf"); extern const uint8_t u8g2_font_6x10_mr[] U8G2_FONT_SECTION("u8g2_font_6x10_mr"); extern const uint8_t u8g2_font_6x10_mn[] U8G2_FONT_SECTION("u8g2_font_6x10_mn"); extern const uint8_t u8g2_font_6x12_tf[] U8G2_FONT_SECTION("u8g2_font_6x12_tf"); extern const uint8_t u8g2_font_6x12_tr[] U8G2_FONT_SECTION("u8g2_font_6x12_tr"); extern const uint8_t u8g2_font_6x12_tn[] U8G2_FONT_SECTION("u8g2_font_6x12_tn"); extern const uint8_t u8g2_font_6x12_te[] U8G2_FONT_SECTION("u8g2_font_6x12_te"); extern const uint8_t u8g2_font_6x12_mf[] U8G2_FONT_SECTION("u8g2_font_6x12_mf"); extern const uint8_t u8g2_font_6x12_mr[] U8G2_FONT_SECTION("u8g2_font_6x12_mr"); extern const uint8_t u8g2_font_6x12_mn[] U8G2_FONT_SECTION("u8g2_font_6x12_mn"); extern const uint8_t u8g2_font_6x12_me[] U8G2_FONT_SECTION("u8g2_font_6x12_me"); extern const uint8_t u8g2_font_6x12_t_symbols[] U8G2_FONT_SECTION("u8g2_font_6x12_t_symbols"); extern const uint8_t u8g2_font_6x12_m_symbols[] U8G2_FONT_SECTION("u8g2_font_6x12_m_symbols"); extern const uint8_t u8g2_font_6x12_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_6x12_t_cyrillic"); extern const uint8_t u8g2_font_6x13_tf[] U8G2_FONT_SECTION("u8g2_font_6x13_tf"); extern const uint8_t u8g2_font_6x13_tr[] U8G2_FONT_SECTION("u8g2_font_6x13_tr"); extern const uint8_t u8g2_font_6x13_tn[] U8G2_FONT_SECTION("u8g2_font_6x13_tn"); extern const uint8_t u8g2_font_6x13_te[] U8G2_FONT_SECTION("u8g2_font_6x13_te"); extern const uint8_t u8g2_font_6x13_mf[] U8G2_FONT_SECTION("u8g2_font_6x13_mf"); extern const uint8_t u8g2_font_6x13_mr[] U8G2_FONT_SECTION("u8g2_font_6x13_mr"); extern const uint8_t u8g2_font_6x13_mn[] U8G2_FONT_SECTION("u8g2_font_6x13_mn"); extern const uint8_t u8g2_font_6x13_me[] U8G2_FONT_SECTION("u8g2_font_6x13_me"); extern const uint8_t u8g2_font_6x13_t_hebrew[] U8G2_FONT_SECTION("u8g2_font_6x13_t_hebrew"); extern const uint8_t u8g2_font_6x13_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_6x13_t_cyrillic"); extern const uint8_t u8g2_font_6x13B_tf[] U8G2_FONT_SECTION("u8g2_font_6x13B_tf"); extern const uint8_t u8g2_font_6x13B_tr[] U8G2_FONT_SECTION("u8g2_font_6x13B_tr"); extern const uint8_t u8g2_font_6x13B_tn[] U8G2_FONT_SECTION("u8g2_font_6x13B_tn"); extern const uint8_t u8g2_font_6x13B_mf[] U8G2_FONT_SECTION("u8g2_font_6x13B_mf"); extern const uint8_t u8g2_font_6x13B_mr[] U8G2_FONT_SECTION("u8g2_font_6x13B_mr"); extern const uint8_t u8g2_font_6x13B_mn[] U8G2_FONT_SECTION("u8g2_font_6x13B_mn"); extern const uint8_t u8g2_font_6x13B_t_hebrew[] U8G2_FONT_SECTION("u8g2_font_6x13B_t_hebrew"); extern const uint8_t u8g2_font_6x13B_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_6x13B_t_cyrillic"); extern const uint8_t u8g2_font_6x13O_tf[] U8G2_FONT_SECTION("u8g2_font_6x13O_tf"); extern const uint8_t u8g2_font_6x13O_tr[] U8G2_FONT_SECTION("u8g2_font_6x13O_tr"); extern const uint8_t u8g2_font_6x13O_tn[] U8G2_FONT_SECTION("u8g2_font_6x13O_tn"); extern const uint8_t u8g2_font_6x13O_mf[] U8G2_FONT_SECTION("u8g2_font_6x13O_mf"); extern const uint8_t u8g2_font_6x13O_mr[] U8G2_FONT_SECTION("u8g2_font_6x13O_mr"); extern const uint8_t u8g2_font_6x13O_mn[] U8G2_FONT_SECTION("u8g2_font_6x13O_mn"); extern const uint8_t u8g2_font_7x13_tf[] U8G2_FONT_SECTION("u8g2_font_7x13_tf"); extern const uint8_t u8g2_font_7x13_tr[] U8G2_FONT_SECTION("u8g2_font_7x13_tr"); extern const uint8_t u8g2_font_7x13_tn[] U8G2_FONT_SECTION("u8g2_font_7x13_tn"); extern const uint8_t u8g2_font_7x13_te[] U8G2_FONT_SECTION("u8g2_font_7x13_te"); extern const uint8_t u8g2_font_7x13_mf[] U8G2_FONT_SECTION("u8g2_font_7x13_mf"); extern const uint8_t u8g2_font_7x13_mr[] U8G2_FONT_SECTION("u8g2_font_7x13_mr"); extern const uint8_t u8g2_font_7x13_mn[] U8G2_FONT_SECTION("u8g2_font_7x13_mn"); extern const uint8_t u8g2_font_7x13_me[] U8G2_FONT_SECTION("u8g2_font_7x13_me"); extern const uint8_t u8g2_font_7x13_t_symbols[] U8G2_FONT_SECTION("u8g2_font_7x13_t_symbols"); extern const uint8_t u8g2_font_7x13_m_symbols[] U8G2_FONT_SECTION("u8g2_font_7x13_m_symbols"); extern const uint8_t u8g2_font_7x13_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_7x13_t_cyrillic"); extern const uint8_t u8g2_font_7x13B_tf[] U8G2_FONT_SECTION("u8g2_font_7x13B_tf"); extern const uint8_t u8g2_font_7x13B_tr[] U8G2_FONT_SECTION("u8g2_font_7x13B_tr"); extern const uint8_t u8g2_font_7x13B_tn[] U8G2_FONT_SECTION("u8g2_font_7x13B_tn"); extern const uint8_t u8g2_font_7x13B_mf[] U8G2_FONT_SECTION("u8g2_font_7x13B_mf"); extern const uint8_t u8g2_font_7x13B_mr[] U8G2_FONT_SECTION("u8g2_font_7x13B_mr"); extern const uint8_t u8g2_font_7x13B_mn[] U8G2_FONT_SECTION("u8g2_font_7x13B_mn"); extern const uint8_t u8g2_font_7x13O_tf[] U8G2_FONT_SECTION("u8g2_font_7x13O_tf"); extern const uint8_t u8g2_font_7x13O_tr[] U8G2_FONT_SECTION("u8g2_font_7x13O_tr"); extern const uint8_t u8g2_font_7x13O_tn[] U8G2_FONT_SECTION("u8g2_font_7x13O_tn"); extern const uint8_t u8g2_font_7x13O_mf[] U8G2_FONT_SECTION("u8g2_font_7x13O_mf"); extern const uint8_t u8g2_font_7x13O_mr[] U8G2_FONT_SECTION("u8g2_font_7x13O_mr"); extern const uint8_t u8g2_font_7x13O_mn[] U8G2_FONT_SECTION("u8g2_font_7x13O_mn"); extern const uint8_t u8g2_font_7x14_tf[] U8G2_FONT_SECTION("u8g2_font_7x14_tf"); extern const uint8_t u8g2_font_7x14_tr[] U8G2_FONT_SECTION("u8g2_font_7x14_tr"); extern const uint8_t u8g2_font_7x14_tn[] U8G2_FONT_SECTION("u8g2_font_7x14_tn"); extern const uint8_t u8g2_font_7x14_mf[] U8G2_FONT_SECTION("u8g2_font_7x14_mf"); extern const uint8_t u8g2_font_7x14_mr[] U8G2_FONT_SECTION("u8g2_font_7x14_mr"); extern const uint8_t u8g2_font_7x14_mn[] U8G2_FONT_SECTION("u8g2_font_7x14_mn"); extern const uint8_t u8g2_font_7x14B_tf[] U8G2_FONT_SECTION("u8g2_font_7x14B_tf"); extern const uint8_t u8g2_font_7x14B_tr[] U8G2_FONT_SECTION("u8g2_font_7x14B_tr"); extern const uint8_t u8g2_font_7x14B_tn[] U8G2_FONT_SECTION("u8g2_font_7x14B_tn"); extern const uint8_t u8g2_font_7x14B_mf[] U8G2_FONT_SECTION("u8g2_font_7x14B_mf"); extern const uint8_t u8g2_font_7x14B_mr[] U8G2_FONT_SECTION("u8g2_font_7x14B_mr"); extern const uint8_t u8g2_font_7x14B_mn[] U8G2_FONT_SECTION("u8g2_font_7x14B_mn"); extern const uint8_t u8g2_font_8x13_tf[] U8G2_FONT_SECTION("u8g2_font_8x13_tf"); extern const uint8_t u8g2_font_8x13_tr[] U8G2_FONT_SECTION("u8g2_font_8x13_tr"); extern const uint8_t u8g2_font_8x13_tn[] U8G2_FONT_SECTION("u8g2_font_8x13_tn"); extern const uint8_t u8g2_font_8x13_te[] U8G2_FONT_SECTION("u8g2_font_8x13_te"); extern const uint8_t u8g2_font_8x13_mf[] U8G2_FONT_SECTION("u8g2_font_8x13_mf"); extern const uint8_t u8g2_font_8x13_mr[] U8G2_FONT_SECTION("u8g2_font_8x13_mr"); extern const uint8_t u8g2_font_8x13_mn[] U8G2_FONT_SECTION("u8g2_font_8x13_mn"); extern const uint8_t u8g2_font_8x13_me[] U8G2_FONT_SECTION("u8g2_font_8x13_me"); extern const uint8_t u8g2_font_8x13_t_symbols[] U8G2_FONT_SECTION("u8g2_font_8x13_t_symbols"); extern const uint8_t u8g2_font_8x13_m_symbols[] U8G2_FONT_SECTION("u8g2_font_8x13_m_symbols"); extern const uint8_t u8g2_font_8x13_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_8x13_t_cyrillic"); extern const uint8_t u8g2_font_8x13B_tf[] U8G2_FONT_SECTION("u8g2_font_8x13B_tf"); extern const uint8_t u8g2_font_8x13B_tr[] U8G2_FONT_SECTION("u8g2_font_8x13B_tr"); extern const uint8_t u8g2_font_8x13B_tn[] U8G2_FONT_SECTION("u8g2_font_8x13B_tn"); extern const uint8_t u8g2_font_8x13B_mf[] U8G2_FONT_SECTION("u8g2_font_8x13B_mf"); extern const uint8_t u8g2_font_8x13B_mr[] U8G2_FONT_SECTION("u8g2_font_8x13B_mr"); extern const uint8_t u8g2_font_8x13B_mn[] U8G2_FONT_SECTION("u8g2_font_8x13B_mn"); extern const uint8_t u8g2_font_8x13O_tf[] U8G2_FONT_SECTION("u8g2_font_8x13O_tf"); extern const uint8_t u8g2_font_8x13O_tr[] U8G2_FONT_SECTION("u8g2_font_8x13O_tr"); extern const uint8_t u8g2_font_8x13O_tn[] U8G2_FONT_SECTION("u8g2_font_8x13O_tn"); extern const uint8_t u8g2_font_8x13O_mf[] U8G2_FONT_SECTION("u8g2_font_8x13O_mf"); extern const uint8_t u8g2_font_8x13O_mr[] U8G2_FONT_SECTION("u8g2_font_8x13O_mr"); extern const uint8_t u8g2_font_8x13O_mn[] U8G2_FONT_SECTION("u8g2_font_8x13O_mn"); extern const uint8_t u8g2_font_9x15_tf[] U8G2_FONT_SECTION("u8g2_font_9x15_tf"); extern const uint8_t u8g2_font_9x15_tr[] U8G2_FONT_SECTION("u8g2_font_9x15_tr"); extern const uint8_t u8g2_font_9x15_tn[] U8G2_FONT_SECTION("u8g2_font_9x15_tn"); extern const uint8_t u8g2_font_9x15_te[] U8G2_FONT_SECTION("u8g2_font_9x15_te"); extern const uint8_t u8g2_font_9x15_mf[] U8G2_FONT_SECTION("u8g2_font_9x15_mf"); extern const uint8_t u8g2_font_9x15_mr[] U8G2_FONT_SECTION("u8g2_font_9x15_mr"); extern const uint8_t u8g2_font_9x15_mn[] U8G2_FONT_SECTION("u8g2_font_9x15_mn"); extern const uint8_t u8g2_font_9x15_me[] U8G2_FONT_SECTION("u8g2_font_9x15_me"); extern const uint8_t u8g2_font_9x15_t_symbols[] U8G2_FONT_SECTION("u8g2_font_9x15_t_symbols"); extern const uint8_t u8g2_font_9x15_m_symbols[] U8G2_FONT_SECTION("u8g2_font_9x15_m_symbols"); extern const uint8_t u8g2_font_9x15_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_9x15_t_cyrillic"); extern const uint8_t u8g2_font_9x15B_tf[] U8G2_FONT_SECTION("u8g2_font_9x15B_tf"); extern const uint8_t u8g2_font_9x15B_tr[] U8G2_FONT_SECTION("u8g2_font_9x15B_tr"); extern const uint8_t u8g2_font_9x15B_tn[] U8G2_FONT_SECTION("u8g2_font_9x15B_tn"); extern const uint8_t u8g2_font_9x15B_mf[] U8G2_FONT_SECTION("u8g2_font_9x15B_mf"); extern const uint8_t u8g2_font_9x15B_mr[] U8G2_FONT_SECTION("u8g2_font_9x15B_mr"); extern const uint8_t u8g2_font_9x15B_mn[] U8G2_FONT_SECTION("u8g2_font_9x15B_mn"); extern const uint8_t u8g2_font_9x18_tf[] U8G2_FONT_SECTION("u8g2_font_9x18_tf"); extern const uint8_t u8g2_font_9x18_tr[] U8G2_FONT_SECTION("u8g2_font_9x18_tr"); extern const uint8_t u8g2_font_9x18_tn[] U8G2_FONT_SECTION("u8g2_font_9x18_tn"); extern const uint8_t u8g2_font_9x18_mf[] U8G2_FONT_SECTION("u8g2_font_9x18_mf"); extern const uint8_t u8g2_font_9x18_mr[] U8G2_FONT_SECTION("u8g2_font_9x18_mr"); extern const uint8_t u8g2_font_9x18_mn[] U8G2_FONT_SECTION("u8g2_font_9x18_mn"); extern const uint8_t u8g2_font_9x18B_tf[] U8G2_FONT_SECTION("u8g2_font_9x18B_tf"); extern const uint8_t u8g2_font_9x18B_tr[] U8G2_FONT_SECTION("u8g2_font_9x18B_tr"); extern const uint8_t u8g2_font_9x18B_tn[] U8G2_FONT_SECTION("u8g2_font_9x18B_tn"); extern const uint8_t u8g2_font_9x18B_mf[] U8G2_FONT_SECTION("u8g2_font_9x18B_mf"); extern const uint8_t u8g2_font_9x18B_mr[] U8G2_FONT_SECTION("u8g2_font_9x18B_mr"); extern const uint8_t u8g2_font_9x18B_mn[] U8G2_FONT_SECTION("u8g2_font_9x18B_mn"); extern const uint8_t u8g2_font_10x20_tf[] U8G2_FONT_SECTION("u8g2_font_10x20_tf"); extern const uint8_t u8g2_font_10x20_tr[] U8G2_FONT_SECTION("u8g2_font_10x20_tr"); extern const uint8_t u8g2_font_10x20_tn[] U8G2_FONT_SECTION("u8g2_font_10x20_tn"); extern const uint8_t u8g2_font_10x20_te[] U8G2_FONT_SECTION("u8g2_font_10x20_te"); extern const uint8_t u8g2_font_10x20_mf[] U8G2_FONT_SECTION("u8g2_font_10x20_mf"); extern const uint8_t u8g2_font_10x20_mr[] U8G2_FONT_SECTION("u8g2_font_10x20_mr"); extern const uint8_t u8g2_font_10x20_mn[] U8G2_FONT_SECTION("u8g2_font_10x20_mn"); extern const uint8_t u8g2_font_10x20_me[] U8G2_FONT_SECTION("u8g2_font_10x20_me"); extern const uint8_t u8g2_font_10x20_t_greek[] U8G2_FONT_SECTION("u8g2_font_10x20_t_greek"); extern const uint8_t u8g2_font_10x20_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_10x20_t_cyrillic"); extern const uint8_t u8g2_font_10x20_t_arabic[] U8G2_FONT_SECTION("u8g2_font_10x20_t_arabic"); extern const uint8_t u8g2_font_siji_t_6x10[] U8G2_FONT_SECTION("u8g2_font_siji_t_6x10"); extern const uint8_t u8g2_font_tom_thumb_4x6_t_all[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_t_all"); extern const uint8_t u8g2_font_tom_thumb_4x6_tf[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_tf"); extern const uint8_t u8g2_font_tom_thumb_4x6_tr[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_tr"); extern const uint8_t u8g2_font_tom_thumb_4x6_tn[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_tn"); extern const uint8_t u8g2_font_tom_thumb_4x6_te[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_te"); extern const uint8_t u8g2_font_tom_thumb_4x6_mf[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_mf"); extern const uint8_t u8g2_font_tom_thumb_4x6_mr[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_mr"); extern const uint8_t u8g2_font_tom_thumb_4x6_mn[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_mn"); extern const uint8_t u8g2_font_tom_thumb_4x6_me[] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_me"); extern const uint8_t u8g2_font_t0_11_tf[] U8G2_FONT_SECTION("u8g2_font_t0_11_tf"); extern const uint8_t u8g2_font_t0_11_tr[] U8G2_FONT_SECTION("u8g2_font_t0_11_tr"); extern const uint8_t u8g2_font_t0_11_tn[] U8G2_FONT_SECTION("u8g2_font_t0_11_tn"); extern const uint8_t u8g2_font_t0_11_te[] U8G2_FONT_SECTION("u8g2_font_t0_11_te"); extern const uint8_t u8g2_font_t0_11_mf[] U8G2_FONT_SECTION("u8g2_font_t0_11_mf"); extern const uint8_t u8g2_font_t0_11_mr[] U8G2_FONT_SECTION("u8g2_font_t0_11_mr"); extern const uint8_t u8g2_font_t0_11_mn[] U8G2_FONT_SECTION("u8g2_font_t0_11_mn"); extern const uint8_t u8g2_font_t0_11_me[] U8G2_FONT_SECTION("u8g2_font_t0_11_me"); extern const uint8_t u8g2_font_t0_11_t_all[] U8G2_FONT_SECTION("u8g2_font_t0_11_t_all"); extern const uint8_t u8g2_font_t0_11b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_11b_tf"); extern const uint8_t u8g2_font_t0_11b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_11b_tr"); extern const uint8_t u8g2_font_t0_11b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_11b_tn"); extern const uint8_t u8g2_font_t0_11b_te[] U8G2_FONT_SECTION("u8g2_font_t0_11b_te"); extern const uint8_t u8g2_font_t0_11b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_11b_mf"); extern const uint8_t u8g2_font_t0_11b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_11b_mr"); extern const uint8_t u8g2_font_t0_11b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_11b_mn"); extern const uint8_t u8g2_font_t0_11b_me[] U8G2_FONT_SECTION("u8g2_font_t0_11b_me"); extern const uint8_t u8g2_font_t0_12_tf[] U8G2_FONT_SECTION("u8g2_font_t0_12_tf"); extern const uint8_t u8g2_font_t0_12_tr[] U8G2_FONT_SECTION("u8g2_font_t0_12_tr"); extern const uint8_t u8g2_font_t0_12_tn[] U8G2_FONT_SECTION("u8g2_font_t0_12_tn"); extern const uint8_t u8g2_font_t0_12_te[] U8G2_FONT_SECTION("u8g2_font_t0_12_te"); extern const uint8_t u8g2_font_t0_12_mf[] U8G2_FONT_SECTION("u8g2_font_t0_12_mf"); extern const uint8_t u8g2_font_t0_12_mr[] U8G2_FONT_SECTION("u8g2_font_t0_12_mr"); extern const uint8_t u8g2_font_t0_12_mn[] U8G2_FONT_SECTION("u8g2_font_t0_12_mn"); extern const uint8_t u8g2_font_t0_12_me[] U8G2_FONT_SECTION("u8g2_font_t0_12_me"); extern const uint8_t u8g2_font_t0_12b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_12b_tf"); extern const uint8_t u8g2_font_t0_12b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_12b_tr"); extern const uint8_t u8g2_font_t0_12b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_12b_tn"); extern const uint8_t u8g2_font_t0_12b_te[] U8G2_FONT_SECTION("u8g2_font_t0_12b_te"); extern const uint8_t u8g2_font_t0_12b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_12b_mf"); extern const uint8_t u8g2_font_t0_12b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_12b_mr"); extern const uint8_t u8g2_font_t0_12b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_12b_mn"); extern const uint8_t u8g2_font_t0_12b_me[] U8G2_FONT_SECTION("u8g2_font_t0_12b_me"); extern const uint8_t u8g2_font_t0_13_tf[] U8G2_FONT_SECTION("u8g2_font_t0_13_tf"); extern const uint8_t u8g2_font_t0_13_tr[] U8G2_FONT_SECTION("u8g2_font_t0_13_tr"); extern const uint8_t u8g2_font_t0_13_tn[] U8G2_FONT_SECTION("u8g2_font_t0_13_tn"); extern const uint8_t u8g2_font_t0_13_te[] U8G2_FONT_SECTION("u8g2_font_t0_13_te"); extern const uint8_t u8g2_font_t0_13_mf[] U8G2_FONT_SECTION("u8g2_font_t0_13_mf"); extern const uint8_t u8g2_font_t0_13_mr[] U8G2_FONT_SECTION("u8g2_font_t0_13_mr"); extern const uint8_t u8g2_font_t0_13_mn[] U8G2_FONT_SECTION("u8g2_font_t0_13_mn"); extern const uint8_t u8g2_font_t0_13_me[] U8G2_FONT_SECTION("u8g2_font_t0_13_me"); extern const uint8_t u8g2_font_t0_13b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_13b_tf"); extern const uint8_t u8g2_font_t0_13b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_13b_tr"); extern const uint8_t u8g2_font_t0_13b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_13b_tn"); extern const uint8_t u8g2_font_t0_13b_te[] U8G2_FONT_SECTION("u8g2_font_t0_13b_te"); extern const uint8_t u8g2_font_t0_13b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_13b_mf"); extern const uint8_t u8g2_font_t0_13b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_13b_mr"); extern const uint8_t u8g2_font_t0_13b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_13b_mn"); extern const uint8_t u8g2_font_t0_13b_me[] U8G2_FONT_SECTION("u8g2_font_t0_13b_me"); extern const uint8_t u8g2_font_t0_14_tf[] U8G2_FONT_SECTION("u8g2_font_t0_14_tf"); extern const uint8_t u8g2_font_t0_14_tr[] U8G2_FONT_SECTION("u8g2_font_t0_14_tr"); extern const uint8_t u8g2_font_t0_14_tn[] U8G2_FONT_SECTION("u8g2_font_t0_14_tn"); extern const uint8_t u8g2_font_t0_14_te[] U8G2_FONT_SECTION("u8g2_font_t0_14_te"); extern const uint8_t u8g2_font_t0_14_mf[] U8G2_FONT_SECTION("u8g2_font_t0_14_mf"); extern const uint8_t u8g2_font_t0_14_mr[] U8G2_FONT_SECTION("u8g2_font_t0_14_mr"); extern const uint8_t u8g2_font_t0_14_mn[] U8G2_FONT_SECTION("u8g2_font_t0_14_mn"); extern const uint8_t u8g2_font_t0_14_me[] U8G2_FONT_SECTION("u8g2_font_t0_14_me"); extern const uint8_t u8g2_font_t0_14b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_14b_tf"); extern const uint8_t u8g2_font_t0_14b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_14b_tr"); extern const uint8_t u8g2_font_t0_14b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_14b_tn"); extern const uint8_t u8g2_font_t0_14b_te[] U8G2_FONT_SECTION("u8g2_font_t0_14b_te"); extern const uint8_t u8g2_font_t0_14b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_14b_mf"); extern const uint8_t u8g2_font_t0_14b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_14b_mr"); extern const uint8_t u8g2_font_t0_14b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_14b_mn"); extern const uint8_t u8g2_font_t0_14b_me[] U8G2_FONT_SECTION("u8g2_font_t0_14b_me"); extern const uint8_t u8g2_font_t0_15_tf[] U8G2_FONT_SECTION("u8g2_font_t0_15_tf"); extern const uint8_t u8g2_font_t0_15_tr[] U8G2_FONT_SECTION("u8g2_font_t0_15_tr"); extern const uint8_t u8g2_font_t0_15_tn[] U8G2_FONT_SECTION("u8g2_font_t0_15_tn"); extern const uint8_t u8g2_font_t0_15_te[] U8G2_FONT_SECTION("u8g2_font_t0_15_te"); extern const uint8_t u8g2_font_t0_15_mf[] U8G2_FONT_SECTION("u8g2_font_t0_15_mf"); extern const uint8_t u8g2_font_t0_15_mr[] U8G2_FONT_SECTION("u8g2_font_t0_15_mr"); extern const uint8_t u8g2_font_t0_15_mn[] U8G2_FONT_SECTION("u8g2_font_t0_15_mn"); extern const uint8_t u8g2_font_t0_15_me[] U8G2_FONT_SECTION("u8g2_font_t0_15_me"); extern const uint8_t u8g2_font_t0_15b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_15b_tf"); extern const uint8_t u8g2_font_t0_15b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_15b_tr"); extern const uint8_t u8g2_font_t0_15b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_15b_tn"); extern const uint8_t u8g2_font_t0_15b_te[] U8G2_FONT_SECTION("u8g2_font_t0_15b_te"); extern const uint8_t u8g2_font_t0_15b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_15b_mf"); extern const uint8_t u8g2_font_t0_15b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_15b_mr"); extern const uint8_t u8g2_font_t0_15b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_15b_mn"); extern const uint8_t u8g2_font_t0_15b_me[] U8G2_FONT_SECTION("u8g2_font_t0_15b_me"); extern const uint8_t u8g2_font_t0_16_tf[] U8G2_FONT_SECTION("u8g2_font_t0_16_tf"); extern const uint8_t u8g2_font_t0_16_tr[] U8G2_FONT_SECTION("u8g2_font_t0_16_tr"); extern const uint8_t u8g2_font_t0_16_tn[] U8G2_FONT_SECTION("u8g2_font_t0_16_tn"); extern const uint8_t u8g2_font_t0_16_te[] U8G2_FONT_SECTION("u8g2_font_t0_16_te"); extern const uint8_t u8g2_font_t0_16_mf[] U8G2_FONT_SECTION("u8g2_font_t0_16_mf"); extern const uint8_t u8g2_font_t0_16_mr[] U8G2_FONT_SECTION("u8g2_font_t0_16_mr"); extern const uint8_t u8g2_font_t0_16_mn[] U8G2_FONT_SECTION("u8g2_font_t0_16_mn"); extern const uint8_t u8g2_font_t0_16_me[] U8G2_FONT_SECTION("u8g2_font_t0_16_me"); extern const uint8_t u8g2_font_t0_16b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_16b_tf"); extern const uint8_t u8g2_font_t0_16b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_16b_tr"); extern const uint8_t u8g2_font_t0_16b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_16b_tn"); extern const uint8_t u8g2_font_t0_16b_te[] U8G2_FONT_SECTION("u8g2_font_t0_16b_te"); extern const uint8_t u8g2_font_t0_16b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_16b_mf"); extern const uint8_t u8g2_font_t0_16b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_16b_mr"); extern const uint8_t u8g2_font_t0_16b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_16b_mn"); extern const uint8_t u8g2_font_t0_16b_me[] U8G2_FONT_SECTION("u8g2_font_t0_16b_me"); extern const uint8_t u8g2_font_t0_17_tf[] U8G2_FONT_SECTION("u8g2_font_t0_17_tf"); extern const uint8_t u8g2_font_t0_17_tr[] U8G2_FONT_SECTION("u8g2_font_t0_17_tr"); extern const uint8_t u8g2_font_t0_17_tn[] U8G2_FONT_SECTION("u8g2_font_t0_17_tn"); extern const uint8_t u8g2_font_t0_17_te[] U8G2_FONT_SECTION("u8g2_font_t0_17_te"); extern const uint8_t u8g2_font_t0_17_mf[] U8G2_FONT_SECTION("u8g2_font_t0_17_mf"); extern const uint8_t u8g2_font_t0_17_mr[] U8G2_FONT_SECTION("u8g2_font_t0_17_mr"); extern const uint8_t u8g2_font_t0_17_mn[] U8G2_FONT_SECTION("u8g2_font_t0_17_mn"); extern const uint8_t u8g2_font_t0_17_me[] U8G2_FONT_SECTION("u8g2_font_t0_17_me"); extern const uint8_t u8g2_font_t0_17b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_17b_tf"); extern const uint8_t u8g2_font_t0_17b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_17b_tr"); extern const uint8_t u8g2_font_t0_17b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_17b_tn"); extern const uint8_t u8g2_font_t0_17b_te[] U8G2_FONT_SECTION("u8g2_font_t0_17b_te"); extern const uint8_t u8g2_font_t0_17b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_17b_mf"); extern const uint8_t u8g2_font_t0_17b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_17b_mr"); extern const uint8_t u8g2_font_t0_17b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_17b_mn"); extern const uint8_t u8g2_font_t0_17b_me[] U8G2_FONT_SECTION("u8g2_font_t0_17b_me"); extern const uint8_t u8g2_font_t0_18_tf[] U8G2_FONT_SECTION("u8g2_font_t0_18_tf"); extern const uint8_t u8g2_font_t0_18_tr[] U8G2_FONT_SECTION("u8g2_font_t0_18_tr"); extern const uint8_t u8g2_font_t0_18_tn[] U8G2_FONT_SECTION("u8g2_font_t0_18_tn"); extern const uint8_t u8g2_font_t0_18_te[] U8G2_FONT_SECTION("u8g2_font_t0_18_te"); extern const uint8_t u8g2_font_t0_18_mf[] U8G2_FONT_SECTION("u8g2_font_t0_18_mf"); extern const uint8_t u8g2_font_t0_18_mr[] U8G2_FONT_SECTION("u8g2_font_t0_18_mr"); extern const uint8_t u8g2_font_t0_18_mn[] U8G2_FONT_SECTION("u8g2_font_t0_18_mn"); extern const uint8_t u8g2_font_t0_18_me[] U8G2_FONT_SECTION("u8g2_font_t0_18_me"); extern const uint8_t u8g2_font_t0_18b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_18b_tf"); extern const uint8_t u8g2_font_t0_18b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_18b_tr"); extern const uint8_t u8g2_font_t0_18b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_18b_tn"); extern const uint8_t u8g2_font_t0_18b_te[] U8G2_FONT_SECTION("u8g2_font_t0_18b_te"); extern const uint8_t u8g2_font_t0_18b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_18b_mf"); extern const uint8_t u8g2_font_t0_18b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_18b_mr"); extern const uint8_t u8g2_font_t0_18b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_18b_mn"); extern const uint8_t u8g2_font_t0_18b_me[] U8G2_FONT_SECTION("u8g2_font_t0_18b_me"); extern const uint8_t u8g2_font_t0_22_tf[] U8G2_FONT_SECTION("u8g2_font_t0_22_tf"); extern const uint8_t u8g2_font_t0_22_tr[] U8G2_FONT_SECTION("u8g2_font_t0_22_tr"); extern const uint8_t u8g2_font_t0_22_tn[] U8G2_FONT_SECTION("u8g2_font_t0_22_tn"); extern const uint8_t u8g2_font_t0_22_te[] U8G2_FONT_SECTION("u8g2_font_t0_22_te"); extern const uint8_t u8g2_font_t0_22_mf[] U8G2_FONT_SECTION("u8g2_font_t0_22_mf"); extern const uint8_t u8g2_font_t0_22_mr[] U8G2_FONT_SECTION("u8g2_font_t0_22_mr"); extern const uint8_t u8g2_font_t0_22_mn[] U8G2_FONT_SECTION("u8g2_font_t0_22_mn"); extern const uint8_t u8g2_font_t0_22_me[] U8G2_FONT_SECTION("u8g2_font_t0_22_me"); extern const uint8_t u8g2_font_t0_22b_tf[] U8G2_FONT_SECTION("u8g2_font_t0_22b_tf"); extern const uint8_t u8g2_font_t0_22b_tr[] U8G2_FONT_SECTION("u8g2_font_t0_22b_tr"); extern const uint8_t u8g2_font_t0_22b_tn[] U8G2_FONT_SECTION("u8g2_font_t0_22b_tn"); extern const uint8_t u8g2_font_t0_22b_te[] U8G2_FONT_SECTION("u8g2_font_t0_22b_te"); extern const uint8_t u8g2_font_t0_22b_mf[] U8G2_FONT_SECTION("u8g2_font_t0_22b_mf"); extern const uint8_t u8g2_font_t0_22b_mr[] U8G2_FONT_SECTION("u8g2_font_t0_22b_mr"); extern const uint8_t u8g2_font_t0_22b_mn[] U8G2_FONT_SECTION("u8g2_font_t0_22b_mn"); extern const uint8_t u8g2_font_t0_22b_me[] U8G2_FONT_SECTION("u8g2_font_t0_22b_me"); extern const uint8_t u8g2_font_open_iconic_all_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_all_1x_t"); extern const uint8_t u8g2_font_open_iconic_app_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_app_1x_t"); extern const uint8_t u8g2_font_open_iconic_arrow_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_arrow_1x_t"); extern const uint8_t u8g2_font_open_iconic_check_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_check_1x_t"); extern const uint8_t u8g2_font_open_iconic_email_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_email_1x_t"); extern const uint8_t u8g2_font_open_iconic_embedded_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_1x_t"); extern const uint8_t u8g2_font_open_iconic_gui_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_1x_t"); extern const uint8_t u8g2_font_open_iconic_human_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_human_1x_t"); extern const uint8_t u8g2_font_open_iconic_mime_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_mime_1x_t"); extern const uint8_t u8g2_font_open_iconic_other_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_other_1x_t"); extern const uint8_t u8g2_font_open_iconic_play_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_play_1x_t"); extern const uint8_t u8g2_font_open_iconic_text_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_text_1x_t"); extern const uint8_t u8g2_font_open_iconic_thing_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_thing_1x_t"); extern const uint8_t u8g2_font_open_iconic_weather_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_weather_1x_t"); extern const uint8_t u8g2_font_open_iconic_www_1x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_1x_t"); extern const uint8_t u8g2_font_open_iconic_all_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_all_2x_t"); extern const uint8_t u8g2_font_open_iconic_app_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_app_2x_t"); extern const uint8_t u8g2_font_open_iconic_arrow_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_arrow_2x_t"); extern const uint8_t u8g2_font_open_iconic_check_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_check_2x_t"); extern const uint8_t u8g2_font_open_iconic_email_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_email_2x_t"); extern const uint8_t u8g2_font_open_iconic_embedded_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_2x_t"); extern const uint8_t u8g2_font_open_iconic_gui_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_2x_t"); extern const uint8_t u8g2_font_open_iconic_human_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_human_2x_t"); extern const uint8_t u8g2_font_open_iconic_mime_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_mime_2x_t"); extern const uint8_t u8g2_font_open_iconic_other_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_other_2x_t"); extern const uint8_t u8g2_font_open_iconic_play_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_play_2x_t"); extern const uint8_t u8g2_font_open_iconic_text_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_text_2x_t"); extern const uint8_t u8g2_font_open_iconic_thing_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_thing_2x_t"); extern const uint8_t u8g2_font_open_iconic_weather_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_weather_2x_t"); extern const uint8_t u8g2_font_open_iconic_www_2x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_2x_t"); extern const uint8_t u8g2_font_open_iconic_all_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_all_4x_t"); extern const uint8_t u8g2_font_open_iconic_app_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_app_4x_t"); extern const uint8_t u8g2_font_open_iconic_arrow_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_arrow_4x_t"); extern const uint8_t u8g2_font_open_iconic_check_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_check_4x_t"); extern const uint8_t u8g2_font_open_iconic_email_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_email_4x_t"); extern const uint8_t u8g2_font_open_iconic_embedded_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_4x_t"); extern const uint8_t u8g2_font_open_iconic_gui_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_4x_t"); extern const uint8_t u8g2_font_open_iconic_human_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_human_4x_t"); extern const uint8_t u8g2_font_open_iconic_mime_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_mime_4x_t"); extern const uint8_t u8g2_font_open_iconic_other_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_other_4x_t"); extern const uint8_t u8g2_font_open_iconic_play_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_play_4x_t"); extern const uint8_t u8g2_font_open_iconic_text_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_text_4x_t"); extern const uint8_t u8g2_font_open_iconic_thing_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_thing_4x_t"); extern const uint8_t u8g2_font_open_iconic_weather_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_weather_4x_t"); extern const uint8_t u8g2_font_open_iconic_www_4x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_4x_t"); extern const uint8_t u8g2_font_open_iconic_all_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_all_6x_t"); extern const uint8_t u8g2_font_open_iconic_app_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_app_6x_t"); extern const uint8_t u8g2_font_open_iconic_arrow_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_arrow_6x_t"); extern const uint8_t u8g2_font_open_iconic_check_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_check_6x_t"); extern const uint8_t u8g2_font_open_iconic_email_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_email_6x_t"); extern const uint8_t u8g2_font_open_iconic_embedded_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_6x_t"); extern const uint8_t u8g2_font_open_iconic_gui_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_6x_t"); extern const uint8_t u8g2_font_open_iconic_human_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_human_6x_t"); extern const uint8_t u8g2_font_open_iconic_mime_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_mime_6x_t"); extern const uint8_t u8g2_font_open_iconic_other_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_other_6x_t"); extern const uint8_t u8g2_font_open_iconic_play_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_play_6x_t"); extern const uint8_t u8g2_font_open_iconic_text_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_text_6x_t"); extern const uint8_t u8g2_font_open_iconic_thing_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_thing_6x_t"); extern const uint8_t u8g2_font_open_iconic_weather_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_weather_6x_t"); extern const uint8_t u8g2_font_open_iconic_www_6x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_6x_t"); extern const uint8_t u8g2_font_open_iconic_all_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_all_8x_t"); extern const uint8_t u8g2_font_open_iconic_app_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_app_8x_t"); extern const uint8_t u8g2_font_open_iconic_arrow_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_arrow_8x_t"); extern const uint8_t u8g2_font_open_iconic_check_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_check_8x_t"); extern const uint8_t u8g2_font_open_iconic_email_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_email_8x_t"); extern const uint8_t u8g2_font_open_iconic_embedded_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_8x_t"); extern const uint8_t u8g2_font_open_iconic_gui_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_gui_8x_t"); extern const uint8_t u8g2_font_open_iconic_human_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_human_8x_t"); extern const uint8_t u8g2_font_open_iconic_mime_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_mime_8x_t"); extern const uint8_t u8g2_font_open_iconic_other_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_other_8x_t"); extern const uint8_t u8g2_font_open_iconic_play_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_play_8x_t"); extern const uint8_t u8g2_font_open_iconic_text_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_text_8x_t"); extern const uint8_t u8g2_font_open_iconic_thing_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_thing_8x_t"); extern const uint8_t u8g2_font_open_iconic_weather_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_weather_8x_t"); extern const uint8_t u8g2_font_open_iconic_www_8x_t[] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_8x_t"); extern const uint8_t u8g2_font_profont10_tf[] U8G2_FONT_SECTION("u8g2_font_profont10_tf"); extern const uint8_t u8g2_font_profont10_tr[] U8G2_FONT_SECTION("u8g2_font_profont10_tr"); extern const uint8_t u8g2_font_profont10_tn[] U8G2_FONT_SECTION("u8g2_font_profont10_tn"); extern const uint8_t u8g2_font_profont10_mf[] U8G2_FONT_SECTION("u8g2_font_profont10_mf"); extern const uint8_t u8g2_font_profont10_mr[] U8G2_FONT_SECTION("u8g2_font_profont10_mr"); extern const uint8_t u8g2_font_profont10_mn[] U8G2_FONT_SECTION("u8g2_font_profont10_mn"); extern const uint8_t u8g2_font_profont11_tf[] U8G2_FONT_SECTION("u8g2_font_profont11_tf"); extern const uint8_t u8g2_font_profont11_tr[] U8G2_FONT_SECTION("u8g2_font_profont11_tr"); extern const uint8_t u8g2_font_profont11_tn[] U8G2_FONT_SECTION("u8g2_font_profont11_tn"); extern const uint8_t u8g2_font_profont11_mf[] U8G2_FONT_SECTION("u8g2_font_profont11_mf"); extern const uint8_t u8g2_font_profont11_mr[] U8G2_FONT_SECTION("u8g2_font_profont11_mr"); extern const uint8_t u8g2_font_profont11_mn[] U8G2_FONT_SECTION("u8g2_font_profont11_mn"); extern const uint8_t u8g2_font_profont12_tf[] U8G2_FONT_SECTION("u8g2_font_profont12_tf"); extern const uint8_t u8g2_font_profont12_tr[] U8G2_FONT_SECTION("u8g2_font_profont12_tr"); extern const uint8_t u8g2_font_profont12_tn[] U8G2_FONT_SECTION("u8g2_font_profont12_tn"); extern const uint8_t u8g2_font_profont12_mf[] U8G2_FONT_SECTION("u8g2_font_profont12_mf"); extern const uint8_t u8g2_font_profont12_mr[] U8G2_FONT_SECTION("u8g2_font_profont12_mr"); extern const uint8_t u8g2_font_profont12_mn[] U8G2_FONT_SECTION("u8g2_font_profont12_mn"); extern const uint8_t u8g2_font_profont15_tf[] U8G2_FONT_SECTION("u8g2_font_profont15_tf"); extern const uint8_t u8g2_font_profont15_tr[] U8G2_FONT_SECTION("u8g2_font_profont15_tr"); extern const uint8_t u8g2_font_profont15_tn[] U8G2_FONT_SECTION("u8g2_font_profont15_tn"); extern const uint8_t u8g2_font_profont15_mf[] U8G2_FONT_SECTION("u8g2_font_profont15_mf"); extern const uint8_t u8g2_font_profont15_mr[] U8G2_FONT_SECTION("u8g2_font_profont15_mr"); extern const uint8_t u8g2_font_profont15_mn[] U8G2_FONT_SECTION("u8g2_font_profont15_mn"); extern const uint8_t u8g2_font_profont17_tf[] U8G2_FONT_SECTION("u8g2_font_profont17_tf"); extern const uint8_t u8g2_font_profont17_tr[] U8G2_FONT_SECTION("u8g2_font_profont17_tr"); extern const uint8_t u8g2_font_profont17_tn[] U8G2_FONT_SECTION("u8g2_font_profont17_tn"); extern const uint8_t u8g2_font_profont17_mf[] U8G2_FONT_SECTION("u8g2_font_profont17_mf"); extern const uint8_t u8g2_font_profont17_mr[] U8G2_FONT_SECTION("u8g2_font_profont17_mr"); extern const uint8_t u8g2_font_profont17_mn[] U8G2_FONT_SECTION("u8g2_font_profont17_mn"); extern const uint8_t u8g2_font_profont22_tf[] U8G2_FONT_SECTION("u8g2_font_profont22_tf"); extern const uint8_t u8g2_font_profont22_tr[] U8G2_FONT_SECTION("u8g2_font_profont22_tr"); extern const uint8_t u8g2_font_profont22_tn[] U8G2_FONT_SECTION("u8g2_font_profont22_tn"); extern const uint8_t u8g2_font_profont22_mf[] U8G2_FONT_SECTION("u8g2_font_profont22_mf"); extern const uint8_t u8g2_font_profont22_mr[] U8G2_FONT_SECTION("u8g2_font_profont22_mr"); extern const uint8_t u8g2_font_profont22_mn[] U8G2_FONT_SECTION("u8g2_font_profont22_mn"); extern const uint8_t u8g2_font_profont29_tf[] U8G2_FONT_SECTION("u8g2_font_profont29_tf"); extern const uint8_t u8g2_font_profont29_tr[] U8G2_FONT_SECTION("u8g2_font_profont29_tr"); extern const uint8_t u8g2_font_profont29_tn[] U8G2_FONT_SECTION("u8g2_font_profont29_tn"); extern const uint8_t u8g2_font_profont29_mf[] U8G2_FONT_SECTION("u8g2_font_profont29_mf"); extern const uint8_t u8g2_font_profont29_mr[] U8G2_FONT_SECTION("u8g2_font_profont29_mr"); extern const uint8_t u8g2_font_profont29_mn[] U8G2_FONT_SECTION("u8g2_font_profont29_mn"); extern const uint8_t u8g2_font_samim_10_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_10_t_all"); extern const uint8_t u8g2_font_samim_12_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_12_t_all"); extern const uint8_t u8g2_font_samim_14_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_14_t_all"); extern const uint8_t u8g2_font_samim_16_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_16_t_all"); extern const uint8_t u8g2_font_samim_fd_10_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_fd_10_t_all"); extern const uint8_t u8g2_font_samim_fd_12_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_fd_12_t_all"); extern const uint8_t u8g2_font_samim_fd_14_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_fd_14_t_all"); extern const uint8_t u8g2_font_samim_fd_16_t_all[] U8G2_FONT_SECTION("u8g2_font_samim_fd_16_t_all"); extern const uint8_t u8g2_font_ganj_nameh_sans10_t_all[] U8G2_FONT_SECTION("u8g2_font_ganj_nameh_sans10_t_all"); extern const uint8_t u8g2_font_ganj_nameh_sans12_t_all[] U8G2_FONT_SECTION("u8g2_font_ganj_nameh_sans12_t_all"); extern const uint8_t u8g2_font_ganj_nameh_sans14_t_all[] U8G2_FONT_SECTION("u8g2_font_ganj_nameh_sans14_t_all"); extern const uint8_t u8g2_font_ganj_nameh_sans16_t_all[] U8G2_FONT_SECTION("u8g2_font_ganj_nameh_sans16_t_all"); extern const uint8_t u8g2_font_iranian_sans_8_t_all[] U8G2_FONT_SECTION("u8g2_font_iranian_sans_8_t_all"); extern const uint8_t u8g2_font_iranian_sans_10_t_all[] U8G2_FONT_SECTION("u8g2_font_iranian_sans_10_t_all"); extern const uint8_t u8g2_font_iranian_sans_12_t_all[] U8G2_FONT_SECTION("u8g2_font_iranian_sans_12_t_all"); extern const uint8_t u8g2_font_iranian_sans_14_t_all[] U8G2_FONT_SECTION("u8g2_font_iranian_sans_14_t_all"); extern const uint8_t u8g2_font_iranian_sans_16_t_all[] U8G2_FONT_SECTION("u8g2_font_iranian_sans_16_t_all"); extern const uint8_t u8g2_font_mozart_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_mozart_nbp_tf"); extern const uint8_t u8g2_font_mozart_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_mozart_nbp_tr"); extern const uint8_t u8g2_font_mozart_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_mozart_nbp_tn"); extern const uint8_t u8g2_font_mozart_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_mozart_nbp_t_all"); extern const uint8_t u8g2_font_mozart_nbp_h_all[] U8G2_FONT_SECTION("u8g2_font_mozart_nbp_h_all"); extern const uint8_t u8g2_font_glasstown_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_glasstown_nbp_tf"); extern const uint8_t u8g2_font_glasstown_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_glasstown_nbp_tr"); extern const uint8_t u8g2_font_glasstown_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_glasstown_nbp_tn"); extern const uint8_t u8g2_font_glasstown_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_glasstown_nbp_t_all"); extern const uint8_t u8g2_font_shylock_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_shylock_nbp_tf"); extern const uint8_t u8g2_font_shylock_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_shylock_nbp_tr"); extern const uint8_t u8g2_font_shylock_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_shylock_nbp_tn"); extern const uint8_t u8g2_font_shylock_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_shylock_nbp_t_all"); extern const uint8_t u8g2_font_roentgen_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_roentgen_nbp_tf"); extern const uint8_t u8g2_font_roentgen_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_roentgen_nbp_tr"); extern const uint8_t u8g2_font_roentgen_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_roentgen_nbp_tn"); extern const uint8_t u8g2_font_roentgen_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_roentgen_nbp_t_all"); extern const uint8_t u8g2_font_roentgen_nbp_h_all[] U8G2_FONT_SECTION("u8g2_font_roentgen_nbp_h_all"); extern const uint8_t u8g2_font_calibration_gothic_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_calibration_gothic_nbp_tf"); extern const uint8_t u8g2_font_calibration_gothic_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_calibration_gothic_nbp_tr"); extern const uint8_t u8g2_font_calibration_gothic_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_calibration_gothic_nbp_tn"); extern const uint8_t u8g2_font_calibration_gothic_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_calibration_gothic_nbp_t_all"); extern const uint8_t u8g2_font_smart_patrol_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_smart_patrol_nbp_tf"); extern const uint8_t u8g2_font_smart_patrol_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_smart_patrol_nbp_tr"); extern const uint8_t u8g2_font_smart_patrol_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_smart_patrol_nbp_tn"); extern const uint8_t u8g2_font_prospero_bold_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_prospero_bold_nbp_tf"); extern const uint8_t u8g2_font_prospero_bold_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_prospero_bold_nbp_tr"); extern const uint8_t u8g2_font_prospero_bold_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_prospero_bold_nbp_tn"); extern const uint8_t u8g2_font_prospero_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_prospero_nbp_tf"); extern const uint8_t u8g2_font_prospero_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_prospero_nbp_tr"); extern const uint8_t u8g2_font_prospero_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_prospero_nbp_tn"); extern const uint8_t u8g2_font_balthasar_regular_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_balthasar_regular_nbp_tf"); extern const uint8_t u8g2_font_balthasar_regular_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_balthasar_regular_nbp_tr"); extern const uint8_t u8g2_font_balthasar_regular_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_balthasar_regular_nbp_tn"); extern const uint8_t u8g2_font_balthasar_titling_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_balthasar_titling_nbp_tf"); extern const uint8_t u8g2_font_balthasar_titling_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_balthasar_titling_nbp_tr"); extern const uint8_t u8g2_font_balthasar_titling_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_balthasar_titling_nbp_tn"); extern const uint8_t u8g2_font_synchronizer_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_synchronizer_nbp_tf"); extern const uint8_t u8g2_font_synchronizer_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_synchronizer_nbp_tr"); extern const uint8_t u8g2_font_synchronizer_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_synchronizer_nbp_tn"); extern const uint8_t u8g2_font_mercutio_basic_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_mercutio_basic_nbp_tf"); extern const uint8_t u8g2_font_mercutio_basic_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_mercutio_basic_nbp_tr"); extern const uint8_t u8g2_font_mercutio_basic_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_mercutio_basic_nbp_tn"); extern const uint8_t u8g2_font_mercutio_basic_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_mercutio_basic_nbp_t_all"); extern const uint8_t u8g2_font_mercutio_sc_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_mercutio_sc_nbp_tf"); extern const uint8_t u8g2_font_mercutio_sc_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_mercutio_sc_nbp_tr"); extern const uint8_t u8g2_font_mercutio_sc_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_mercutio_sc_nbp_tn"); extern const uint8_t u8g2_font_mercutio_sc_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_mercutio_sc_nbp_t_all"); extern const uint8_t u8g2_font_miranda_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_miranda_nbp_tf"); extern const uint8_t u8g2_font_miranda_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_miranda_nbp_tr"); extern const uint8_t u8g2_font_miranda_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_miranda_nbp_tn"); extern const uint8_t u8g2_font_nine_by_five_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_nine_by_five_nbp_tf"); extern const uint8_t u8g2_font_nine_by_five_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_nine_by_five_nbp_tr"); extern const uint8_t u8g2_font_nine_by_five_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_nine_by_five_nbp_tn"); extern const uint8_t u8g2_font_nine_by_five_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_nine_by_five_nbp_t_all"); extern const uint8_t u8g2_font_rosencrantz_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_rosencrantz_nbp_tf"); extern const uint8_t u8g2_font_rosencrantz_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_rosencrantz_nbp_tr"); extern const uint8_t u8g2_font_rosencrantz_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_rosencrantz_nbp_tn"); extern const uint8_t u8g2_font_rosencrantz_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_rosencrantz_nbp_t_all"); extern const uint8_t u8g2_font_guildenstern_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_guildenstern_nbp_tf"); extern const uint8_t u8g2_font_guildenstern_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_guildenstern_nbp_tr"); extern const uint8_t u8g2_font_guildenstern_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_guildenstern_nbp_tn"); extern const uint8_t u8g2_font_guildenstern_nbp_t_all[] U8G2_FONT_SECTION("u8g2_font_guildenstern_nbp_t_all"); extern const uint8_t u8g2_font_astragal_nbp_tf[] U8G2_FONT_SECTION("u8g2_font_astragal_nbp_tf"); extern const uint8_t u8g2_font_astragal_nbp_tr[] U8G2_FONT_SECTION("u8g2_font_astragal_nbp_tr"); extern const uint8_t u8g2_font_astragal_nbp_tn[] U8G2_FONT_SECTION("u8g2_font_astragal_nbp_tn"); extern const uint8_t u8g2_font_habsburgchancery_tf[] U8G2_FONT_SECTION("u8g2_font_habsburgchancery_tf"); extern const uint8_t u8g2_font_habsburgchancery_tr[] U8G2_FONT_SECTION("u8g2_font_habsburgchancery_tr"); extern const uint8_t u8g2_font_habsburgchancery_tn[] U8G2_FONT_SECTION("u8g2_font_habsburgchancery_tn"); extern const uint8_t u8g2_font_habsburgchancery_t_all[] U8G2_FONT_SECTION("u8g2_font_habsburgchancery_t_all"); extern const uint8_t u8g2_font_missingplanet_tf[] U8G2_FONT_SECTION("u8g2_font_missingplanet_tf"); extern const uint8_t u8g2_font_missingplanet_tr[] U8G2_FONT_SECTION("u8g2_font_missingplanet_tr"); extern const uint8_t u8g2_font_missingplanet_tn[] U8G2_FONT_SECTION("u8g2_font_missingplanet_tn"); extern const uint8_t u8g2_font_missingplanet_t_all[] U8G2_FONT_SECTION("u8g2_font_missingplanet_t_all"); extern const uint8_t u8g2_font_ordinarybasis_tf[] U8G2_FONT_SECTION("u8g2_font_ordinarybasis_tf"); extern const uint8_t u8g2_font_ordinarybasis_tr[] U8G2_FONT_SECTION("u8g2_font_ordinarybasis_tr"); extern const uint8_t u8g2_font_ordinarybasis_tn[] U8G2_FONT_SECTION("u8g2_font_ordinarybasis_tn"); extern const uint8_t u8g2_font_ordinarybasis_t_all[] U8G2_FONT_SECTION("u8g2_font_ordinarybasis_t_all"); extern const uint8_t u8g2_font_pixelmordred_tf[] U8G2_FONT_SECTION("u8g2_font_pixelmordred_tf"); extern const uint8_t u8g2_font_pixelmordred_tr[] U8G2_FONT_SECTION("u8g2_font_pixelmordred_tr"); extern const uint8_t u8g2_font_pixelmordred_tn[] U8G2_FONT_SECTION("u8g2_font_pixelmordred_tn"); extern const uint8_t u8g2_font_pixelmordred_t_all[] U8G2_FONT_SECTION("u8g2_font_pixelmordred_t_all"); extern const uint8_t u8g2_font_secretaryhand_tf[] U8G2_FONT_SECTION("u8g2_font_secretaryhand_tf"); extern const uint8_t u8g2_font_secretaryhand_tr[] U8G2_FONT_SECTION("u8g2_font_secretaryhand_tr"); extern const uint8_t u8g2_font_secretaryhand_tn[] U8G2_FONT_SECTION("u8g2_font_secretaryhand_tn"); extern const uint8_t u8g2_font_secretaryhand_t_all[] U8G2_FONT_SECTION("u8g2_font_secretaryhand_t_all"); extern const uint8_t u8g2_font_beanstalk_mel_tr[] U8G2_FONT_SECTION("u8g2_font_beanstalk_mel_tr"); extern const uint8_t u8g2_font_beanstalk_mel_tn[] U8G2_FONT_SECTION("u8g2_font_beanstalk_mel_tn"); extern const uint8_t u8g2_font_cube_mel_tr[] U8G2_FONT_SECTION("u8g2_font_cube_mel_tr"); extern const uint8_t u8g2_font_cube_mel_tn[] U8G2_FONT_SECTION("u8g2_font_cube_mel_tn"); extern const uint8_t u8g2_font_mademoiselle_mel_tr[] U8G2_FONT_SECTION("u8g2_font_mademoiselle_mel_tr"); extern const uint8_t u8g2_font_mademoiselle_mel_tn[] U8G2_FONT_SECTION("u8g2_font_mademoiselle_mel_tn"); extern const uint8_t u8g2_font_pieceofcake_mel_tr[] U8G2_FONT_SECTION("u8g2_font_pieceofcake_mel_tr"); extern const uint8_t u8g2_font_pieceofcake_mel_tn[] U8G2_FONT_SECTION("u8g2_font_pieceofcake_mel_tn"); extern const uint8_t u8g2_font_press_mel_tr[] U8G2_FONT_SECTION("u8g2_font_press_mel_tr"); extern const uint8_t u8g2_font_press_mel_tn[] U8G2_FONT_SECTION("u8g2_font_press_mel_tn"); extern const uint8_t u8g2_font_repress_mel_tr[] U8G2_FONT_SECTION("u8g2_font_repress_mel_tr"); extern const uint8_t u8g2_font_repress_mel_tn[] U8G2_FONT_SECTION("u8g2_font_repress_mel_tn"); extern const uint8_t u8g2_font_sticker_mel_tr[] U8G2_FONT_SECTION("u8g2_font_sticker_mel_tr"); extern const uint8_t u8g2_font_sticker_mel_tn[] U8G2_FONT_SECTION("u8g2_font_sticker_mel_tn"); extern const uint8_t u8g2_font_celibatemonk_tr[] U8G2_FONT_SECTION("u8g2_font_celibatemonk_tr"); extern const uint8_t u8g2_font_disrespectfulteenager_tu[] U8G2_FONT_SECTION("u8g2_font_disrespectfulteenager_tu"); extern const uint8_t u8g2_font_michaelmouse_tu[] U8G2_FONT_SECTION("u8g2_font_michaelmouse_tu"); extern const uint8_t u8g2_font_sandyforest_tr[] U8G2_FONT_SECTION("u8g2_font_sandyforest_tr"); extern const uint8_t u8g2_font_sandyforest_tn[] U8G2_FONT_SECTION("u8g2_font_sandyforest_tn"); extern const uint8_t u8g2_font_sandyforest_tu[] U8G2_FONT_SECTION("u8g2_font_sandyforest_tu"); extern const uint8_t u8g2_font_cupcakemetoyourleader_tr[] U8G2_FONT_SECTION("u8g2_font_cupcakemetoyourleader_tr"); extern const uint8_t u8g2_font_cupcakemetoyourleader_tn[] U8G2_FONT_SECTION("u8g2_font_cupcakemetoyourleader_tn"); extern const uint8_t u8g2_font_cupcakemetoyourleader_tu[] U8G2_FONT_SECTION("u8g2_font_cupcakemetoyourleader_tu"); extern const uint8_t u8g2_font_oldwizard_tf[] U8G2_FONT_SECTION("u8g2_font_oldwizard_tf"); extern const uint8_t u8g2_font_oldwizard_tr[] U8G2_FONT_SECTION("u8g2_font_oldwizard_tr"); extern const uint8_t u8g2_font_oldwizard_tn[] U8G2_FONT_SECTION("u8g2_font_oldwizard_tn"); extern const uint8_t u8g2_font_oldwizard_tu[] U8G2_FONT_SECTION("u8g2_font_oldwizard_tu"); extern const uint8_t u8g2_font_squirrel_tr[] U8G2_FONT_SECTION("u8g2_font_squirrel_tr"); extern const uint8_t u8g2_font_squirrel_tn[] U8G2_FONT_SECTION("u8g2_font_squirrel_tn"); extern const uint8_t u8g2_font_squirrel_tu[] U8G2_FONT_SECTION("u8g2_font_squirrel_tu"); extern const uint8_t u8g2_font_diodesemimono_tr[] U8G2_FONT_SECTION("u8g2_font_diodesemimono_tr"); extern const uint8_t u8g2_font_questgiver_tr[] U8G2_FONT_SECTION("u8g2_font_questgiver_tr"); extern const uint8_t u8g2_font_seraphimb1_tr[] U8G2_FONT_SECTION("u8g2_font_seraphimb1_tr"); extern const uint8_t u8g2_font_jinxedwizards_tr[] U8G2_FONT_SECTION("u8g2_font_jinxedwizards_tr"); extern const uint8_t u8g2_font_lastpriestess_tr[] U8G2_FONT_SECTION("u8g2_font_lastpriestess_tr"); extern const uint8_t u8g2_font_lastpriestess_tu[] U8G2_FONT_SECTION("u8g2_font_lastpriestess_tu"); extern const uint8_t u8g2_font_bitcasual_tf[] U8G2_FONT_SECTION("u8g2_font_bitcasual_tf"); extern const uint8_t u8g2_font_bitcasual_tr[] U8G2_FONT_SECTION("u8g2_font_bitcasual_tr"); extern const uint8_t u8g2_font_bitcasual_tn[] U8G2_FONT_SECTION("u8g2_font_bitcasual_tn"); extern const uint8_t u8g2_font_bitcasual_tu[] U8G2_FONT_SECTION("u8g2_font_bitcasual_tu"); extern const uint8_t u8g2_font_bitcasual_t_all[] U8G2_FONT_SECTION("u8g2_font_bitcasual_t_all"); extern const uint8_t u8g2_font_koleeko_tf[] U8G2_FONT_SECTION("u8g2_font_koleeko_tf"); extern const uint8_t u8g2_font_koleeko_tr[] U8G2_FONT_SECTION("u8g2_font_koleeko_tr"); extern const uint8_t u8g2_font_koleeko_tn[] U8G2_FONT_SECTION("u8g2_font_koleeko_tn"); extern const uint8_t u8g2_font_koleeko_tu[] U8G2_FONT_SECTION("u8g2_font_koleeko_tu"); extern const uint8_t u8g2_font_tenfatguys_tf[] U8G2_FONT_SECTION("u8g2_font_tenfatguys_tf"); extern const uint8_t u8g2_font_tenfatguys_tr[] U8G2_FONT_SECTION("u8g2_font_tenfatguys_tr"); extern const uint8_t u8g2_font_tenfatguys_tn[] U8G2_FONT_SECTION("u8g2_font_tenfatguys_tn"); extern const uint8_t u8g2_font_tenfatguys_tu[] U8G2_FONT_SECTION("u8g2_font_tenfatguys_tu"); extern const uint8_t u8g2_font_tenfatguys_t_all[] U8G2_FONT_SECTION("u8g2_font_tenfatguys_t_all"); extern const uint8_t u8g2_font_tenstamps_mf[] U8G2_FONT_SECTION("u8g2_font_tenstamps_mf"); extern const uint8_t u8g2_font_tenstamps_mr[] U8G2_FONT_SECTION("u8g2_font_tenstamps_mr"); extern const uint8_t u8g2_font_tenstamps_mn[] U8G2_FONT_SECTION("u8g2_font_tenstamps_mn"); extern const uint8_t u8g2_font_tenstamps_mu[] U8G2_FONT_SECTION("u8g2_font_tenstamps_mu"); extern const uint8_t u8g2_font_tenthinguys_tf[] U8G2_FONT_SECTION("u8g2_font_tenthinguys_tf"); extern const uint8_t u8g2_font_tenthinguys_tr[] U8G2_FONT_SECTION("u8g2_font_tenthinguys_tr"); extern const uint8_t u8g2_font_tenthinguys_tn[] U8G2_FONT_SECTION("u8g2_font_tenthinguys_tn"); extern const uint8_t u8g2_font_tenthinguys_tu[] U8G2_FONT_SECTION("u8g2_font_tenthinguys_tu"); extern const uint8_t u8g2_font_tenthinguys_t_all[] U8G2_FONT_SECTION("u8g2_font_tenthinguys_t_all"); extern const uint8_t u8g2_font_tenthinnerguys_tf[] U8G2_FONT_SECTION("u8g2_font_tenthinnerguys_tf"); extern const uint8_t u8g2_font_tenthinnerguys_tr[] U8G2_FONT_SECTION("u8g2_font_tenthinnerguys_tr"); extern const uint8_t u8g2_font_tenthinnerguys_tn[] U8G2_FONT_SECTION("u8g2_font_tenthinnerguys_tn"); extern const uint8_t u8g2_font_tenthinnerguys_tu[] U8G2_FONT_SECTION("u8g2_font_tenthinnerguys_tu"); extern const uint8_t u8g2_font_tenthinnerguys_t_all[] U8G2_FONT_SECTION("u8g2_font_tenthinnerguys_t_all"); extern const uint8_t u8g2_font_twelvedings_t_all[] U8G2_FONT_SECTION("u8g2_font_twelvedings_t_all"); extern const uint8_t u8g2_font_fewture_tf[] U8G2_FONT_SECTION("u8g2_font_fewture_tf"); extern const uint8_t u8g2_font_fewture_tr[] U8G2_FONT_SECTION("u8g2_font_fewture_tr"); extern const uint8_t u8g2_font_fewture_tn[] U8G2_FONT_SECTION("u8g2_font_fewture_tn"); extern const uint8_t u8g2_font_halftone_tf[] U8G2_FONT_SECTION("u8g2_font_halftone_tf"); extern const uint8_t u8g2_font_halftone_tr[] U8G2_FONT_SECTION("u8g2_font_halftone_tr"); extern const uint8_t u8g2_font_halftone_tn[] U8G2_FONT_SECTION("u8g2_font_halftone_tn"); extern const uint8_t u8g2_font_nerhoe_tf[] U8G2_FONT_SECTION("u8g2_font_nerhoe_tf"); extern const uint8_t u8g2_font_nerhoe_tr[] U8G2_FONT_SECTION("u8g2_font_nerhoe_tr"); extern const uint8_t u8g2_font_nerhoe_tn[] U8G2_FONT_SECTION("u8g2_font_nerhoe_tn"); extern const uint8_t u8g2_font_oskool_tf[] U8G2_FONT_SECTION("u8g2_font_oskool_tf"); extern const uint8_t u8g2_font_oskool_tr[] U8G2_FONT_SECTION("u8g2_font_oskool_tr"); extern const uint8_t u8g2_font_oskool_tn[] U8G2_FONT_SECTION("u8g2_font_oskool_tn"); extern const uint8_t u8g2_font_tinytim_tf[] U8G2_FONT_SECTION("u8g2_font_tinytim_tf"); extern const uint8_t u8g2_font_tinytim_tr[] U8G2_FONT_SECTION("u8g2_font_tinytim_tr"); extern const uint8_t u8g2_font_tinytim_tn[] U8G2_FONT_SECTION("u8g2_font_tinytim_tn"); extern const uint8_t u8g2_font_tooseornament_tf[] U8G2_FONT_SECTION("u8g2_font_tooseornament_tf"); extern const uint8_t u8g2_font_tooseornament_tr[] U8G2_FONT_SECTION("u8g2_font_tooseornament_tr"); extern const uint8_t u8g2_font_tooseornament_tn[] U8G2_FONT_SECTION("u8g2_font_tooseornament_tn"); extern const uint8_t u8g2_font_bauhaus2015_tr[] U8G2_FONT_SECTION("u8g2_font_bauhaus2015_tr"); extern const uint8_t u8g2_font_bauhaus2015_tn[] U8G2_FONT_SECTION("u8g2_font_bauhaus2015_tn"); extern const uint8_t u8g2_font_finderskeepers_tf[] U8G2_FONT_SECTION("u8g2_font_finderskeepers_tf"); extern const uint8_t u8g2_font_finderskeepers_tr[] U8G2_FONT_SECTION("u8g2_font_finderskeepers_tr"); extern const uint8_t u8g2_font_finderskeepers_tn[] U8G2_FONT_SECTION("u8g2_font_finderskeepers_tn"); extern const uint8_t u8g2_font_sirclivethebold_tr[] U8G2_FONT_SECTION("u8g2_font_sirclivethebold_tr"); extern const uint8_t u8g2_font_sirclivethebold_tn[] U8G2_FONT_SECTION("u8g2_font_sirclivethebold_tn"); extern const uint8_t u8g2_font_sirclive_tr[] U8G2_FONT_SECTION("u8g2_font_sirclive_tr"); extern const uint8_t u8g2_font_sirclive_tn[] U8G2_FONT_SECTION("u8g2_font_sirclive_tn"); extern const uint8_t u8g2_font_adventurer_tf[] U8G2_FONT_SECTION("u8g2_font_adventurer_tf"); extern const uint8_t u8g2_font_adventurer_tr[] U8G2_FONT_SECTION("u8g2_font_adventurer_tr"); extern const uint8_t u8g2_font_adventurer_t_all[] U8G2_FONT_SECTION("u8g2_font_adventurer_t_all"); extern const uint8_t u8g2_font_bracketedbabies_tr[] U8G2_FONT_SECTION("u8g2_font_bracketedbabies_tr"); extern const uint8_t u8g2_font_frikativ_tf[] U8G2_FONT_SECTION("u8g2_font_frikativ_tf"); extern const uint8_t u8g2_font_frikativ_tr[] U8G2_FONT_SECTION("u8g2_font_frikativ_tr"); extern const uint8_t u8g2_font_frikativ_t_all[] U8G2_FONT_SECTION("u8g2_font_frikativ_t_all"); extern const uint8_t u8g2_font_fancypixels_tf[] U8G2_FONT_SECTION("u8g2_font_fancypixels_tf"); extern const uint8_t u8g2_font_fancypixels_tr[] U8G2_FONT_SECTION("u8g2_font_fancypixels_tr"); extern const uint8_t u8g2_font_heavybottom_tr[] U8G2_FONT_SECTION("u8g2_font_heavybottom_tr"); extern const uint8_t u8g2_font_iconquadpix_m_all[] U8G2_FONT_SECTION("u8g2_font_iconquadpix_m_all"); extern const uint8_t u8g2_font_lastapprenticebold_tr[] U8G2_FONT_SECTION("u8g2_font_lastapprenticebold_tr"); extern const uint8_t u8g2_font_lastapprenticethin_tr[] U8G2_FONT_SECTION("u8g2_font_lastapprenticethin_tr"); extern const uint8_t u8g2_font_tallpix_tr[] U8G2_FONT_SECTION("u8g2_font_tallpix_tr"); extern const uint8_t u8g2_font_BBSesque_tf[] U8G2_FONT_SECTION("u8g2_font_BBSesque_tf"); extern const uint8_t u8g2_font_BBSesque_tr[] U8G2_FONT_SECTION("u8g2_font_BBSesque_tr"); extern const uint8_t u8g2_font_BBSesque_te[] U8G2_FONT_SECTION("u8g2_font_BBSesque_te"); extern const uint8_t u8g2_font_Born2bSportySlab_tf[] U8G2_FONT_SECTION("u8g2_font_Born2bSportySlab_tf"); extern const uint8_t u8g2_font_Born2bSportySlab_tr[] U8G2_FONT_SECTION("u8g2_font_Born2bSportySlab_tr"); extern const uint8_t u8g2_font_Born2bSportySlab_te[] U8G2_FONT_SECTION("u8g2_font_Born2bSportySlab_te"); extern const uint8_t u8g2_font_Born2bSportySlab_t_all[] U8G2_FONT_SECTION("u8g2_font_Born2bSportySlab_t_all"); extern const uint8_t u8g2_font_Born2bSportyV2_tf[] U8G2_FONT_SECTION("u8g2_font_Born2bSportyV2_tf"); extern const uint8_t u8g2_font_Born2bSportyV2_tr[] U8G2_FONT_SECTION("u8g2_font_Born2bSportyV2_tr"); extern const uint8_t u8g2_font_Born2bSportyV2_te[] U8G2_FONT_SECTION("u8g2_font_Born2bSportyV2_te"); extern const uint8_t u8g2_font_CursivePixel_tr[] U8G2_FONT_SECTION("u8g2_font_CursivePixel_tr"); extern const uint8_t u8g2_font_Engrish_tf[] U8G2_FONT_SECTION("u8g2_font_Engrish_tf"); extern const uint8_t u8g2_font_Engrish_tr[] U8G2_FONT_SECTION("u8g2_font_Engrish_tr"); extern const uint8_t u8g2_font_ImpactBits_tr[] U8G2_FONT_SECTION("u8g2_font_ImpactBits_tr"); extern const uint8_t u8g2_font_IPAandRUSLCD_tf[] U8G2_FONT_SECTION("u8g2_font_IPAandRUSLCD_tf"); extern const uint8_t u8g2_font_IPAandRUSLCD_tr[] U8G2_FONT_SECTION("u8g2_font_IPAandRUSLCD_tr"); extern const uint8_t u8g2_font_IPAandRUSLCD_te[] U8G2_FONT_SECTION("u8g2_font_IPAandRUSLCD_te"); extern const uint8_t u8g2_font_HelvetiPixel_tr[] U8G2_FONT_SECTION("u8g2_font_HelvetiPixel_tr"); extern const uint8_t u8g2_font_TimesNewPixel_tr[] U8G2_FONT_SECTION("u8g2_font_TimesNewPixel_tr"); extern const uint8_t u8g2_font_BitTypeWriter_tr[] U8G2_FONT_SECTION("u8g2_font_BitTypeWriter_tr"); extern const uint8_t u8g2_font_BitTypeWriter_te[] U8G2_FONT_SECTION("u8g2_font_BitTypeWriter_te"); extern const uint8_t u8g2_font_Georgia7px_tf[] U8G2_FONT_SECTION("u8g2_font_Georgia7px_tf"); extern const uint8_t u8g2_font_Georgia7px_tr[] U8G2_FONT_SECTION("u8g2_font_Georgia7px_tr"); extern const uint8_t u8g2_font_Georgia7px_te[] U8G2_FONT_SECTION("u8g2_font_Georgia7px_te"); extern const uint8_t u8g2_font_Wizzard_tr[] U8G2_FONT_SECTION("u8g2_font_Wizzard_tr"); extern const uint8_t u8g2_font_HelvetiPixelOutline_tr[] U8G2_FONT_SECTION("u8g2_font_HelvetiPixelOutline_tr"); extern const uint8_t u8g2_font_HelvetiPixelOutline_te[] U8G2_FONT_SECTION("u8g2_font_HelvetiPixelOutline_te"); extern const uint8_t u8g2_font_Untitled16PixelSansSerifBitmap_tr[] U8G2_FONT_SECTION("u8g2_font_Untitled16PixelSansSerifBitmap_tr"); extern const uint8_t u8g2_font_nokiafc22_tf[] U8G2_FONT_SECTION("u8g2_font_nokiafc22_tf"); extern const uint8_t u8g2_font_nokiafc22_tr[] U8G2_FONT_SECTION("u8g2_font_nokiafc22_tr"); extern const uint8_t u8g2_font_nokiafc22_tn[] U8G2_FONT_SECTION("u8g2_font_nokiafc22_tn"); extern const uint8_t u8g2_font_nokiafc22_tu[] U8G2_FONT_SECTION("u8g2_font_nokiafc22_tu"); extern const uint8_t u8g2_font_VCR_OSD_tf[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_tf"); extern const uint8_t u8g2_font_VCR_OSD_tr[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_tr"); extern const uint8_t u8g2_font_VCR_OSD_tn[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_tn"); extern const uint8_t u8g2_font_VCR_OSD_tu[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_tu"); extern const uint8_t u8g2_font_VCR_OSD_mf[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_mf"); extern const uint8_t u8g2_font_VCR_OSD_mr[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_mr"); extern const uint8_t u8g2_font_VCR_OSD_mn[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_mn"); extern const uint8_t u8g2_font_VCR_OSD_mu[] U8G2_FONT_SECTION("u8g2_font_VCR_OSD_mu"); extern const uint8_t u8g2_font_Pixellari_tf[] U8G2_FONT_SECTION("u8g2_font_Pixellari_tf"); extern const uint8_t u8g2_font_Pixellari_tr[] U8G2_FONT_SECTION("u8g2_font_Pixellari_tr"); extern const uint8_t u8g2_font_Pixellari_tn[] U8G2_FONT_SECTION("u8g2_font_Pixellari_tn"); extern const uint8_t u8g2_font_Pixellari_tu[] U8G2_FONT_SECTION("u8g2_font_Pixellari_tu"); extern const uint8_t u8g2_font_Pixellari_te[] U8G2_FONT_SECTION("u8g2_font_Pixellari_te"); extern const uint8_t u8g2_font_pixelpoiiz_tr[] U8G2_FONT_SECTION("u8g2_font_pixelpoiiz_tr"); extern const uint8_t u8g2_font_DigitalDiscoThin_tf[] U8G2_FONT_SECTION("u8g2_font_DigitalDiscoThin_tf"); extern const uint8_t u8g2_font_DigitalDiscoThin_tr[] U8G2_FONT_SECTION("u8g2_font_DigitalDiscoThin_tr"); extern const uint8_t u8g2_font_DigitalDiscoThin_tn[] U8G2_FONT_SECTION("u8g2_font_DigitalDiscoThin_tn"); extern const uint8_t u8g2_font_DigitalDiscoThin_tu[] U8G2_FONT_SECTION("u8g2_font_DigitalDiscoThin_tu"); extern const uint8_t u8g2_font_DigitalDiscoThin_te[] U8G2_FONT_SECTION("u8g2_font_DigitalDiscoThin_te"); extern const uint8_t u8g2_font_DigitalDisco_tf[] U8G2_FONT_SECTION("u8g2_font_DigitalDisco_tf"); extern const uint8_t u8g2_font_DigitalDisco_tr[] U8G2_FONT_SECTION("u8g2_font_DigitalDisco_tr"); extern const uint8_t u8g2_font_DigitalDisco_tn[] U8G2_FONT_SECTION("u8g2_font_DigitalDisco_tn"); extern const uint8_t u8g2_font_DigitalDisco_tu[] U8G2_FONT_SECTION("u8g2_font_DigitalDisco_tu"); extern const uint8_t u8g2_font_DigitalDisco_te[] U8G2_FONT_SECTION("u8g2_font_DigitalDisco_te"); extern const uint8_t u8g2_font_pearfont_tr[] U8G2_FONT_SECTION("u8g2_font_pearfont_tr"); extern const uint8_t u8g2_font_etl14thai_t[] U8G2_FONT_SECTION("u8g2_font_etl14thai_t"); extern const uint8_t u8g2_font_etl16thai_t[] U8G2_FONT_SECTION("u8g2_font_etl16thai_t"); extern const uint8_t u8g2_font_etl24thai_t[] U8G2_FONT_SECTION("u8g2_font_etl24thai_t"); extern const uint8_t u8g2_font_crox1cb_tf[] U8G2_FONT_SECTION("u8g2_font_crox1cb_tf"); extern const uint8_t u8g2_font_crox1cb_tr[] U8G2_FONT_SECTION("u8g2_font_crox1cb_tr"); extern const uint8_t u8g2_font_crox1cb_tn[] U8G2_FONT_SECTION("u8g2_font_crox1cb_tn"); extern const uint8_t u8g2_font_crox1cb_mf[] U8G2_FONT_SECTION("u8g2_font_crox1cb_mf"); extern const uint8_t u8g2_font_crox1cb_mr[] U8G2_FONT_SECTION("u8g2_font_crox1cb_mr"); extern const uint8_t u8g2_font_crox1cb_mn[] U8G2_FONT_SECTION("u8g2_font_crox1cb_mn"); extern const uint8_t u8g2_font_crox1c_tf[] U8G2_FONT_SECTION("u8g2_font_crox1c_tf"); extern const uint8_t u8g2_font_crox1c_tr[] U8G2_FONT_SECTION("u8g2_font_crox1c_tr"); extern const uint8_t u8g2_font_crox1c_tn[] U8G2_FONT_SECTION("u8g2_font_crox1c_tn"); extern const uint8_t u8g2_font_crox1c_mf[] U8G2_FONT_SECTION("u8g2_font_crox1c_mf"); extern const uint8_t u8g2_font_crox1c_mr[] U8G2_FONT_SECTION("u8g2_font_crox1c_mr"); extern const uint8_t u8g2_font_crox1c_mn[] U8G2_FONT_SECTION("u8g2_font_crox1c_mn"); extern const uint8_t u8g2_font_crox1hb_tf[] U8G2_FONT_SECTION("u8g2_font_crox1hb_tf"); extern const uint8_t u8g2_font_crox1hb_tr[] U8G2_FONT_SECTION("u8g2_font_crox1hb_tr"); extern const uint8_t u8g2_font_crox1hb_tn[] U8G2_FONT_SECTION("u8g2_font_crox1hb_tn"); extern const uint8_t u8g2_font_crox1h_tf[] U8G2_FONT_SECTION("u8g2_font_crox1h_tf"); extern const uint8_t u8g2_font_crox1h_tr[] U8G2_FONT_SECTION("u8g2_font_crox1h_tr"); extern const uint8_t u8g2_font_crox1h_tn[] U8G2_FONT_SECTION("u8g2_font_crox1h_tn"); extern const uint8_t u8g2_font_crox1tb_tf[] U8G2_FONT_SECTION("u8g2_font_crox1tb_tf"); extern const uint8_t u8g2_font_crox1tb_tr[] U8G2_FONT_SECTION("u8g2_font_crox1tb_tr"); extern const uint8_t u8g2_font_crox1tb_tn[] U8G2_FONT_SECTION("u8g2_font_crox1tb_tn"); extern const uint8_t u8g2_font_crox1t_tf[] U8G2_FONT_SECTION("u8g2_font_crox1t_tf"); extern const uint8_t u8g2_font_crox1t_tr[] U8G2_FONT_SECTION("u8g2_font_crox1t_tr"); extern const uint8_t u8g2_font_crox1t_tn[] U8G2_FONT_SECTION("u8g2_font_crox1t_tn"); extern const uint8_t u8g2_font_crox2cb_tf[] U8G2_FONT_SECTION("u8g2_font_crox2cb_tf"); extern const uint8_t u8g2_font_crox2cb_tr[] U8G2_FONT_SECTION("u8g2_font_crox2cb_tr"); extern const uint8_t u8g2_font_crox2cb_tn[] U8G2_FONT_SECTION("u8g2_font_crox2cb_tn"); extern const uint8_t u8g2_font_crox2cb_mf[] U8G2_FONT_SECTION("u8g2_font_crox2cb_mf"); extern const uint8_t u8g2_font_crox2cb_mr[] U8G2_FONT_SECTION("u8g2_font_crox2cb_mr"); extern const uint8_t u8g2_font_crox2cb_mn[] U8G2_FONT_SECTION("u8g2_font_crox2cb_mn"); extern const uint8_t u8g2_font_crox2c_tf[] U8G2_FONT_SECTION("u8g2_font_crox2c_tf"); extern const uint8_t u8g2_font_crox2c_tr[] U8G2_FONT_SECTION("u8g2_font_crox2c_tr"); extern const uint8_t u8g2_font_crox2c_tn[] U8G2_FONT_SECTION("u8g2_font_crox2c_tn"); extern const uint8_t u8g2_font_crox2c_mf[] U8G2_FONT_SECTION("u8g2_font_crox2c_mf"); extern const uint8_t u8g2_font_crox2c_mr[] U8G2_FONT_SECTION("u8g2_font_crox2c_mr"); extern const uint8_t u8g2_font_crox2c_mn[] U8G2_FONT_SECTION("u8g2_font_crox2c_mn"); extern const uint8_t u8g2_font_crox2hb_tf[] U8G2_FONT_SECTION("u8g2_font_crox2hb_tf"); extern const uint8_t u8g2_font_crox2hb_tr[] U8G2_FONT_SECTION("u8g2_font_crox2hb_tr"); extern const uint8_t u8g2_font_crox2hb_tn[] U8G2_FONT_SECTION("u8g2_font_crox2hb_tn"); extern const uint8_t u8g2_font_crox2h_tf[] U8G2_FONT_SECTION("u8g2_font_crox2h_tf"); extern const uint8_t u8g2_font_crox2h_tr[] U8G2_FONT_SECTION("u8g2_font_crox2h_tr"); extern const uint8_t u8g2_font_crox2h_tn[] U8G2_FONT_SECTION("u8g2_font_crox2h_tn"); extern const uint8_t u8g2_font_crox2tb_tf[] U8G2_FONT_SECTION("u8g2_font_crox2tb_tf"); extern const uint8_t u8g2_font_crox2tb_tr[] U8G2_FONT_SECTION("u8g2_font_crox2tb_tr"); extern const uint8_t u8g2_font_crox2tb_tn[] U8G2_FONT_SECTION("u8g2_font_crox2tb_tn"); extern const uint8_t u8g2_font_crox2t_tf[] U8G2_FONT_SECTION("u8g2_font_crox2t_tf"); extern const uint8_t u8g2_font_crox2t_tr[] U8G2_FONT_SECTION("u8g2_font_crox2t_tr"); extern const uint8_t u8g2_font_crox2t_tn[] U8G2_FONT_SECTION("u8g2_font_crox2t_tn"); extern const uint8_t u8g2_font_crox3cb_tf[] U8G2_FONT_SECTION("u8g2_font_crox3cb_tf"); extern const uint8_t u8g2_font_crox3cb_tr[] U8G2_FONT_SECTION("u8g2_font_crox3cb_tr"); extern const uint8_t u8g2_font_crox3cb_tn[] U8G2_FONT_SECTION("u8g2_font_crox3cb_tn"); extern const uint8_t u8g2_font_crox3cb_mf[] U8G2_FONT_SECTION("u8g2_font_crox3cb_mf"); extern const uint8_t u8g2_font_crox3cb_mr[] U8G2_FONT_SECTION("u8g2_font_crox3cb_mr"); extern const uint8_t u8g2_font_crox3cb_mn[] U8G2_FONT_SECTION("u8g2_font_crox3cb_mn"); extern const uint8_t u8g2_font_crox3c_tf[] U8G2_FONT_SECTION("u8g2_font_crox3c_tf"); extern const uint8_t u8g2_font_crox3c_tr[] U8G2_FONT_SECTION("u8g2_font_crox3c_tr"); extern const uint8_t u8g2_font_crox3c_tn[] U8G2_FONT_SECTION("u8g2_font_crox3c_tn"); extern const uint8_t u8g2_font_crox3c_mf[] U8G2_FONT_SECTION("u8g2_font_crox3c_mf"); extern const uint8_t u8g2_font_crox3c_mr[] U8G2_FONT_SECTION("u8g2_font_crox3c_mr"); extern const uint8_t u8g2_font_crox3c_mn[] U8G2_FONT_SECTION("u8g2_font_crox3c_mn"); extern const uint8_t u8g2_font_crox3hb_tf[] U8G2_FONT_SECTION("u8g2_font_crox3hb_tf"); extern const uint8_t u8g2_font_crox3hb_tr[] U8G2_FONT_SECTION("u8g2_font_crox3hb_tr"); extern const uint8_t u8g2_font_crox3hb_tn[] U8G2_FONT_SECTION("u8g2_font_crox3hb_tn"); extern const uint8_t u8g2_font_crox3h_tf[] U8G2_FONT_SECTION("u8g2_font_crox3h_tf"); extern const uint8_t u8g2_font_crox3h_tr[] U8G2_FONT_SECTION("u8g2_font_crox3h_tr"); extern const uint8_t u8g2_font_crox3h_tn[] U8G2_FONT_SECTION("u8g2_font_crox3h_tn"); extern const uint8_t u8g2_font_crox3tb_tf[] U8G2_FONT_SECTION("u8g2_font_crox3tb_tf"); extern const uint8_t u8g2_font_crox3tb_tr[] U8G2_FONT_SECTION("u8g2_font_crox3tb_tr"); extern const uint8_t u8g2_font_crox3tb_tn[] U8G2_FONT_SECTION("u8g2_font_crox3tb_tn"); extern const uint8_t u8g2_font_crox3t_tf[] U8G2_FONT_SECTION("u8g2_font_crox3t_tf"); extern const uint8_t u8g2_font_crox3t_tr[] U8G2_FONT_SECTION("u8g2_font_crox3t_tr"); extern const uint8_t u8g2_font_crox3t_tn[] U8G2_FONT_SECTION("u8g2_font_crox3t_tn"); extern const uint8_t u8g2_font_crox4hb_tf[] U8G2_FONT_SECTION("u8g2_font_crox4hb_tf"); extern const uint8_t u8g2_font_crox4hb_tr[] U8G2_FONT_SECTION("u8g2_font_crox4hb_tr"); extern const uint8_t u8g2_font_crox4hb_tn[] U8G2_FONT_SECTION("u8g2_font_crox4hb_tn"); extern const uint8_t u8g2_font_crox4h_tf[] U8G2_FONT_SECTION("u8g2_font_crox4h_tf"); extern const uint8_t u8g2_font_crox4h_tr[] U8G2_FONT_SECTION("u8g2_font_crox4h_tr"); extern const uint8_t u8g2_font_crox4h_tn[] U8G2_FONT_SECTION("u8g2_font_crox4h_tn"); extern const uint8_t u8g2_font_crox4tb_tf[] U8G2_FONT_SECTION("u8g2_font_crox4tb_tf"); extern const uint8_t u8g2_font_crox4tb_tr[] U8G2_FONT_SECTION("u8g2_font_crox4tb_tr"); extern const uint8_t u8g2_font_crox4tb_tn[] U8G2_FONT_SECTION("u8g2_font_crox4tb_tn"); extern const uint8_t u8g2_font_crox4t_tf[] U8G2_FONT_SECTION("u8g2_font_crox4t_tf"); extern const uint8_t u8g2_font_crox4t_tr[] U8G2_FONT_SECTION("u8g2_font_crox4t_tr"); extern const uint8_t u8g2_font_crox4t_tn[] U8G2_FONT_SECTION("u8g2_font_crox4t_tn"); extern const uint8_t u8g2_font_crox5hb_tf[] U8G2_FONT_SECTION("u8g2_font_crox5hb_tf"); extern const uint8_t u8g2_font_crox5hb_tr[] U8G2_FONT_SECTION("u8g2_font_crox5hb_tr"); extern const uint8_t u8g2_font_crox5hb_tn[] U8G2_FONT_SECTION("u8g2_font_crox5hb_tn"); extern const uint8_t u8g2_font_crox5h_tf[] U8G2_FONT_SECTION("u8g2_font_crox5h_tf"); extern const uint8_t u8g2_font_crox5h_tr[] U8G2_FONT_SECTION("u8g2_font_crox5h_tr"); extern const uint8_t u8g2_font_crox5h_tn[] U8G2_FONT_SECTION("u8g2_font_crox5h_tn"); extern const uint8_t u8g2_font_crox5tb_tf[] U8G2_FONT_SECTION("u8g2_font_crox5tb_tf"); extern const uint8_t u8g2_font_crox5tb_tr[] U8G2_FONT_SECTION("u8g2_font_crox5tb_tr"); extern const uint8_t u8g2_font_crox5tb_tn[] U8G2_FONT_SECTION("u8g2_font_crox5tb_tn"); extern const uint8_t u8g2_font_crox5t_tf[] U8G2_FONT_SECTION("u8g2_font_crox5t_tf"); extern const uint8_t u8g2_font_crox5t_tr[] U8G2_FONT_SECTION("u8g2_font_crox5t_tr"); extern const uint8_t u8g2_font_crox5t_tn[] U8G2_FONT_SECTION("u8g2_font_crox5t_tn"); extern const uint8_t u8g2_font_cu12_tf[] U8G2_FONT_SECTION("u8g2_font_cu12_tf"); extern const uint8_t u8g2_font_cu12_tr[] U8G2_FONT_SECTION("u8g2_font_cu12_tr"); extern const uint8_t u8g2_font_cu12_tn[] U8G2_FONT_SECTION("u8g2_font_cu12_tn"); extern const uint8_t u8g2_font_cu12_te[] U8G2_FONT_SECTION("u8g2_font_cu12_te"); extern const uint8_t u8g2_font_cu12_hf[] U8G2_FONT_SECTION("u8g2_font_cu12_hf"); extern const uint8_t u8g2_font_cu12_hr[] U8G2_FONT_SECTION("u8g2_font_cu12_hr"); extern const uint8_t u8g2_font_cu12_hn[] U8G2_FONT_SECTION("u8g2_font_cu12_hn"); extern const uint8_t u8g2_font_cu12_he[] U8G2_FONT_SECTION("u8g2_font_cu12_he"); extern const uint8_t u8g2_font_cu12_mf[] U8G2_FONT_SECTION("u8g2_font_cu12_mf"); extern const uint8_t u8g2_font_cu12_mr[] U8G2_FONT_SECTION("u8g2_font_cu12_mr"); extern const uint8_t u8g2_font_cu12_mn[] U8G2_FONT_SECTION("u8g2_font_cu12_mn"); extern const uint8_t u8g2_font_cu12_me[] U8G2_FONT_SECTION("u8g2_font_cu12_me"); extern const uint8_t u8g2_font_cu12_t_symbols[] U8G2_FONT_SECTION("u8g2_font_cu12_t_symbols"); extern const uint8_t u8g2_font_cu12_h_symbols[] U8G2_FONT_SECTION("u8g2_font_cu12_h_symbols"); extern const uint8_t u8g2_font_cu12_t_greek[] U8G2_FONT_SECTION("u8g2_font_cu12_t_greek"); extern const uint8_t u8g2_font_cu12_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_cu12_t_cyrillic"); extern const uint8_t u8g2_font_cu12_t_tibetan[] U8G2_FONT_SECTION("u8g2_font_cu12_t_tibetan"); extern const uint8_t u8g2_font_cu12_t_hebrew[] U8G2_FONT_SECTION("u8g2_font_cu12_t_hebrew"); extern const uint8_t u8g2_font_cu12_t_arabic[] U8G2_FONT_SECTION("u8g2_font_cu12_t_arabic"); extern const uint8_t u8g2_font_unifont_tf[] U8G2_FONT_SECTION("u8g2_font_unifont_tf"); extern const uint8_t u8g2_font_unifont_tr[] U8G2_FONT_SECTION("u8g2_font_unifont_tr"); extern const uint8_t u8g2_font_unifont_te[] U8G2_FONT_SECTION("u8g2_font_unifont_te"); extern const uint8_t u8g2_font_unifont_t_latin[] U8G2_FONT_SECTION("u8g2_font_unifont_t_latin"); extern const uint8_t u8g2_font_unifont_t_extended[] U8G2_FONT_SECTION("u8g2_font_unifont_t_extended"); extern const uint8_t u8g2_font_unifont_t_72_73[] U8G2_FONT_SECTION("u8g2_font_unifont_t_72_73"); extern const uint8_t u8g2_font_unifont_t_0_72_73[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_72_73"); extern const uint8_t u8g2_font_unifont_t_75[] U8G2_FONT_SECTION("u8g2_font_unifont_t_75"); extern const uint8_t u8g2_font_unifont_t_0_75[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_75"); extern const uint8_t u8g2_font_unifont_t_76[] U8G2_FONT_SECTION("u8g2_font_unifont_t_76"); extern const uint8_t u8g2_font_unifont_t_0_76[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_76"); extern const uint8_t u8g2_font_unifont_t_77[] U8G2_FONT_SECTION("u8g2_font_unifont_t_77"); extern const uint8_t u8g2_font_unifont_t_0_77[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_77"); extern const uint8_t u8g2_font_unifont_t_78_79[] U8G2_FONT_SECTION("u8g2_font_unifont_t_78_79"); extern const uint8_t u8g2_font_unifont_t_0_78_79[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_78_79"); extern const uint8_t u8g2_font_unifont_t_86[] U8G2_FONT_SECTION("u8g2_font_unifont_t_86"); extern const uint8_t u8g2_font_unifont_t_0_86[] U8G2_FONT_SECTION("u8g2_font_unifont_t_0_86"); extern const uint8_t u8g2_font_unifont_t_greek[] U8G2_FONT_SECTION("u8g2_font_unifont_t_greek"); extern const uint8_t u8g2_font_unifont_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_unifont_t_cyrillic"); extern const uint8_t u8g2_font_unifont_t_hebrew[] U8G2_FONT_SECTION("u8g2_font_unifont_t_hebrew"); extern const uint8_t u8g2_font_unifont_t_bengali[] U8G2_FONT_SECTION("u8g2_font_unifont_t_bengali"); extern const uint8_t u8g2_font_unifont_t_tibetan[] U8G2_FONT_SECTION("u8g2_font_unifont_t_tibetan"); extern const uint8_t u8g2_font_unifont_t_urdu[] U8G2_FONT_SECTION("u8g2_font_unifont_t_urdu"); extern const uint8_t u8g2_font_unifont_t_polish[] U8G2_FONT_SECTION("u8g2_font_unifont_t_polish"); extern const uint8_t u8g2_font_unifont_t_devanagari[] U8G2_FONT_SECTION("u8g2_font_unifont_t_devanagari"); extern const uint8_t u8g2_font_unifont_t_arabic[] U8G2_FONT_SECTION("u8g2_font_unifont_t_arabic"); extern const uint8_t u8g2_font_unifont_t_symbols[] U8G2_FONT_SECTION("u8g2_font_unifont_t_symbols"); extern const uint8_t u8g2_font_unifont_h_symbols[] U8G2_FONT_SECTION("u8g2_font_unifont_h_symbols"); extern const uint8_t u8g2_font_unifont_t_emoticons[] U8G2_FONT_SECTION("u8g2_font_unifont_t_emoticons"); extern const uint8_t u8g2_font_unifont_t_animals[] U8G2_FONT_SECTION("u8g2_font_unifont_t_animals"); extern const uint8_t u8g2_font_unifont_t_domino[] U8G2_FONT_SECTION("u8g2_font_unifont_t_domino"); extern const uint8_t u8g2_font_unifont_t_cards[] U8G2_FONT_SECTION("u8g2_font_unifont_t_cards"); extern const uint8_t u8g2_font_unifont_t_weather[] U8G2_FONT_SECTION("u8g2_font_unifont_t_weather"); extern const uint8_t u8g2_font_unifont_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_unifont_t_chinese1"); extern const uint8_t u8g2_font_unifont_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_unifont_t_chinese2"); extern const uint8_t u8g2_font_unifont_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_unifont_t_chinese3"); extern const uint8_t u8g2_font_unifont_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_unifont_t_japanese1"); extern const uint8_t u8g2_font_unifont_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_unifont_t_japanese2"); extern const uint8_t u8g2_font_unifont_t_japanese3[] U8G2_FONT_SECTION("u8g2_font_unifont_t_japanese3"); extern const uint8_t u8g2_font_unifont_t_korean1[] U8G2_FONT_SECTION("u8g2_font_unifont_t_korean1"); extern const uint8_t u8g2_font_unifont_t_korean2[] U8G2_FONT_SECTION("u8g2_font_unifont_t_korean2"); extern const uint8_t u8g2_font_unifont_t_vietnamese1[] U8G2_FONT_SECTION("u8g2_font_unifont_t_vietnamese1"); extern const uint8_t u8g2_font_unifont_t_vietnamese2[] U8G2_FONT_SECTION("u8g2_font_unifont_t_vietnamese2"); extern const uint8_t u8g2_font_gb16st_t_1[] U8G2_FONT_SECTION("u8g2_font_gb16st_t_1"); extern const uint8_t u8g2_font_gb16st_t_2[] U8G2_FONT_SECTION("u8g2_font_gb16st_t_2"); extern const uint8_t u8g2_font_gb16st_t_3[] U8G2_FONT_SECTION("u8g2_font_gb16st_t_3"); extern const uint8_t u8g2_font_gb24st_t_1[] U8G2_FONT_SECTION("u8g2_font_gb24st_t_1"); extern const uint8_t u8g2_font_gb24st_t_2[] U8G2_FONT_SECTION("u8g2_font_gb24st_t_2"); extern const uint8_t u8g2_font_gb24st_t_3[] U8G2_FONT_SECTION("u8g2_font_gb24st_t_3"); extern const uint8_t u8g2_font_wqy12_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_chinese1"); extern const uint8_t u8g2_font_wqy12_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_chinese2"); extern const uint8_t u8g2_font_wqy12_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_chinese3"); extern const uint8_t u8g2_font_wqy12_t_gb2312[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_gb2312"); extern const uint8_t u8g2_font_wqy12_t_gb2312a[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_gb2312a"); extern const uint8_t u8g2_font_wqy12_t_gb2312b[] U8G2_FONT_SECTION("u8g2_font_wqy12_t_gb2312b"); extern const uint8_t u8g2_font_wqy13_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_chinese1"); extern const uint8_t u8g2_font_wqy13_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_chinese2"); extern const uint8_t u8g2_font_wqy13_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_chinese3"); extern const uint8_t u8g2_font_wqy13_t_gb2312[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_gb2312"); extern const uint8_t u8g2_font_wqy13_t_gb2312a[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_gb2312a"); extern const uint8_t u8g2_font_wqy13_t_gb2312b[] U8G2_FONT_SECTION("u8g2_font_wqy13_t_gb2312b"); extern const uint8_t u8g2_font_wqy14_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_chinese1"); extern const uint8_t u8g2_font_wqy14_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_chinese2"); extern const uint8_t u8g2_font_wqy14_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_chinese3"); extern const uint8_t u8g2_font_wqy14_t_gb2312[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_gb2312"); extern const uint8_t u8g2_font_wqy14_t_gb2312a[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_gb2312a"); extern const uint8_t u8g2_font_wqy14_t_gb2312b[] U8G2_FONT_SECTION("u8g2_font_wqy14_t_gb2312b"); extern const uint8_t u8g2_font_wqy15_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_chinese1"); extern const uint8_t u8g2_font_wqy15_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_chinese2"); extern const uint8_t u8g2_font_wqy15_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_chinese3"); extern const uint8_t u8g2_font_wqy15_t_gb2312[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_gb2312"); extern const uint8_t u8g2_font_wqy15_t_gb2312a[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_gb2312a"); extern const uint8_t u8g2_font_wqy15_t_gb2312b[] U8G2_FONT_SECTION("u8g2_font_wqy15_t_gb2312b"); extern const uint8_t u8g2_font_wqy16_t_chinese1[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_chinese1"); extern const uint8_t u8g2_font_wqy16_t_chinese2[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_chinese2"); extern const uint8_t u8g2_font_wqy16_t_chinese3[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_chinese3"); extern const uint8_t u8g2_font_wqy16_t_gb2312[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_gb2312"); extern const uint8_t u8g2_font_wqy16_t_gb2312a[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_gb2312a"); extern const uint8_t u8g2_font_wqy16_t_gb2312b[] U8G2_FONT_SECTION("u8g2_font_wqy16_t_gb2312b"); extern const uint8_t u8g2_font_b10_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b10_t_japanese1"); extern const uint8_t u8g2_font_b10_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b10_t_japanese2"); extern const uint8_t u8g2_font_b10_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b10_b_t_japanese1"); extern const uint8_t u8g2_font_b10_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b10_b_t_japanese2"); extern const uint8_t u8g2_font_f10_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f10_t_japanese1"); extern const uint8_t u8g2_font_f10_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f10_t_japanese2"); extern const uint8_t u8g2_font_f10_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f10_b_t_japanese1"); extern const uint8_t u8g2_font_f10_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f10_b_t_japanese2"); extern const uint8_t u8g2_font_b12_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b12_t_japanese1"); extern const uint8_t u8g2_font_b12_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b12_t_japanese2"); extern const uint8_t u8g2_font_b12_t_japanese3[] U8G2_FONT_SECTION("u8g2_font_b12_t_japanese3"); extern const uint8_t u8g2_font_b12_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b12_b_t_japanese1"); extern const uint8_t u8g2_font_b12_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b12_b_t_japanese2"); extern const uint8_t u8g2_font_b12_b_t_japanese3[] U8G2_FONT_SECTION("u8g2_font_b12_b_t_japanese3"); extern const uint8_t u8g2_font_f12_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f12_t_japanese1"); extern const uint8_t u8g2_font_f12_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f12_t_japanese2"); extern const uint8_t u8g2_font_f12_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f12_b_t_japanese1"); extern const uint8_t u8g2_font_f12_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f12_b_t_japanese2"); extern const uint8_t u8g2_font_b16_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b16_t_japanese1"); extern const uint8_t u8g2_font_b16_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b16_t_japanese2"); extern const uint8_t u8g2_font_b16_t_japanese3[] U8G2_FONT_SECTION("u8g2_font_b16_t_japanese3"); extern const uint8_t u8g2_font_b16_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_b16_b_t_japanese1"); extern const uint8_t u8g2_font_b16_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_b16_b_t_japanese2"); extern const uint8_t u8g2_font_b16_b_t_japanese3[] U8G2_FONT_SECTION("u8g2_font_b16_b_t_japanese3"); extern const uint8_t u8g2_font_f16_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f16_t_japanese1"); extern const uint8_t u8g2_font_f16_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f16_t_japanese2"); extern const uint8_t u8g2_font_f16_b_t_japanese1[] U8G2_FONT_SECTION("u8g2_font_f16_b_t_japanese1"); extern const uint8_t u8g2_font_f16_b_t_japanese2[] U8G2_FONT_SECTION("u8g2_font_f16_b_t_japanese2"); extern const uint8_t u8g2_font_artossans8_8r[] U8G2_FONT_SECTION("u8g2_font_artossans8_8r"); extern const uint8_t u8g2_font_artossans8_8n[] U8G2_FONT_SECTION("u8g2_font_artossans8_8n"); extern const uint8_t u8g2_font_artossans8_8u[] U8G2_FONT_SECTION("u8g2_font_artossans8_8u"); extern const uint8_t u8g2_font_artosserif8_8r[] U8G2_FONT_SECTION("u8g2_font_artosserif8_8r"); extern const uint8_t u8g2_font_artosserif8_8n[] U8G2_FONT_SECTION("u8g2_font_artosserif8_8n"); extern const uint8_t u8g2_font_artosserif8_8u[] U8G2_FONT_SECTION("u8g2_font_artosserif8_8u"); extern const uint8_t u8g2_font_chroma48medium8_8r[] U8G2_FONT_SECTION("u8g2_font_chroma48medium8_8r"); extern const uint8_t u8g2_font_chroma48medium8_8n[] U8G2_FONT_SECTION("u8g2_font_chroma48medium8_8n"); extern const uint8_t u8g2_font_chroma48medium8_8u[] U8G2_FONT_SECTION("u8g2_font_chroma48medium8_8u"); extern const uint8_t u8g2_font_saikyosansbold8_8n[] U8G2_FONT_SECTION("u8g2_font_saikyosansbold8_8n"); extern const uint8_t u8g2_font_saikyosansbold8_8u[] U8G2_FONT_SECTION("u8g2_font_saikyosansbold8_8u"); extern const uint8_t u8g2_font_torussansbold8_8r[] U8G2_FONT_SECTION("u8g2_font_torussansbold8_8r"); extern const uint8_t u8g2_font_torussansbold8_8n[] U8G2_FONT_SECTION("u8g2_font_torussansbold8_8n"); extern const uint8_t u8g2_font_torussansbold8_8u[] U8G2_FONT_SECTION("u8g2_font_torussansbold8_8u"); extern const uint8_t u8g2_font_victoriabold8_8r[] U8G2_FONT_SECTION("u8g2_font_victoriabold8_8r"); extern const uint8_t u8g2_font_victoriabold8_8n[] U8G2_FONT_SECTION("u8g2_font_victoriabold8_8n"); extern const uint8_t u8g2_font_victoriabold8_8u[] U8G2_FONT_SECTION("u8g2_font_victoriabold8_8u"); extern const uint8_t u8g2_font_victoriamedium8_8r[] U8G2_FONT_SECTION("u8g2_font_victoriamedium8_8r"); extern const uint8_t u8g2_font_victoriamedium8_8n[] U8G2_FONT_SECTION("u8g2_font_victoriamedium8_8n"); extern const uint8_t u8g2_font_victoriamedium8_8u[] U8G2_FONT_SECTION("u8g2_font_victoriamedium8_8u"); extern const uint8_t u8g2_font_courB08_tf[] U8G2_FONT_SECTION("u8g2_font_courB08_tf"); extern const uint8_t u8g2_font_courB08_tr[] U8G2_FONT_SECTION("u8g2_font_courB08_tr"); extern const uint8_t u8g2_font_courB08_tn[] U8G2_FONT_SECTION("u8g2_font_courB08_tn"); extern const uint8_t u8g2_font_courB10_tf[] U8G2_FONT_SECTION("u8g2_font_courB10_tf"); extern const uint8_t u8g2_font_courB10_tr[] U8G2_FONT_SECTION("u8g2_font_courB10_tr"); extern const uint8_t u8g2_font_courB10_tn[] U8G2_FONT_SECTION("u8g2_font_courB10_tn"); extern const uint8_t u8g2_font_courB12_tf[] U8G2_FONT_SECTION("u8g2_font_courB12_tf"); extern const uint8_t u8g2_font_courB12_tr[] U8G2_FONT_SECTION("u8g2_font_courB12_tr"); extern const uint8_t u8g2_font_courB12_tn[] U8G2_FONT_SECTION("u8g2_font_courB12_tn"); extern const uint8_t u8g2_font_courB14_tf[] U8G2_FONT_SECTION("u8g2_font_courB14_tf"); extern const uint8_t u8g2_font_courB14_tr[] U8G2_FONT_SECTION("u8g2_font_courB14_tr"); extern const uint8_t u8g2_font_courB14_tn[] U8G2_FONT_SECTION("u8g2_font_courB14_tn"); extern const uint8_t u8g2_font_courB18_tf[] U8G2_FONT_SECTION("u8g2_font_courB18_tf"); extern const uint8_t u8g2_font_courB18_tr[] U8G2_FONT_SECTION("u8g2_font_courB18_tr"); extern const uint8_t u8g2_font_courB18_tn[] U8G2_FONT_SECTION("u8g2_font_courB18_tn"); extern const uint8_t u8g2_font_courB24_tf[] U8G2_FONT_SECTION("u8g2_font_courB24_tf"); extern const uint8_t u8g2_font_courB24_tr[] U8G2_FONT_SECTION("u8g2_font_courB24_tr"); extern const uint8_t u8g2_font_courB24_tn[] U8G2_FONT_SECTION("u8g2_font_courB24_tn"); extern const uint8_t u8g2_font_courR08_tf[] U8G2_FONT_SECTION("u8g2_font_courR08_tf"); extern const uint8_t u8g2_font_courR08_tr[] U8G2_FONT_SECTION("u8g2_font_courR08_tr"); extern const uint8_t u8g2_font_courR08_tn[] U8G2_FONT_SECTION("u8g2_font_courR08_tn"); extern const uint8_t u8g2_font_courR10_tf[] U8G2_FONT_SECTION("u8g2_font_courR10_tf"); extern const uint8_t u8g2_font_courR10_tr[] U8G2_FONT_SECTION("u8g2_font_courR10_tr"); extern const uint8_t u8g2_font_courR10_tn[] U8G2_FONT_SECTION("u8g2_font_courR10_tn"); extern const uint8_t u8g2_font_courR12_tf[] U8G2_FONT_SECTION("u8g2_font_courR12_tf"); extern const uint8_t u8g2_font_courR12_tr[] U8G2_FONT_SECTION("u8g2_font_courR12_tr"); extern const uint8_t u8g2_font_courR12_tn[] U8G2_FONT_SECTION("u8g2_font_courR12_tn"); extern const uint8_t u8g2_font_courR14_tf[] U8G2_FONT_SECTION("u8g2_font_courR14_tf"); extern const uint8_t u8g2_font_courR14_tr[] U8G2_FONT_SECTION("u8g2_font_courR14_tr"); extern const uint8_t u8g2_font_courR14_tn[] U8G2_FONT_SECTION("u8g2_font_courR14_tn"); extern const uint8_t u8g2_font_courR18_tf[] U8G2_FONT_SECTION("u8g2_font_courR18_tf"); extern const uint8_t u8g2_font_courR18_tr[] U8G2_FONT_SECTION("u8g2_font_courR18_tr"); extern const uint8_t u8g2_font_courR18_tn[] U8G2_FONT_SECTION("u8g2_font_courR18_tn"); extern const uint8_t u8g2_font_courR24_tf[] U8G2_FONT_SECTION("u8g2_font_courR24_tf"); extern const uint8_t u8g2_font_courR24_tr[] U8G2_FONT_SECTION("u8g2_font_courR24_tr"); extern const uint8_t u8g2_font_courR24_tn[] U8G2_FONT_SECTION("u8g2_font_courR24_tn"); extern const uint8_t u8g2_font_helvB08_tf[] U8G2_FONT_SECTION("u8g2_font_helvB08_tf"); extern const uint8_t u8g2_font_helvB08_tr[] U8G2_FONT_SECTION("u8g2_font_helvB08_tr"); extern const uint8_t u8g2_font_helvB08_tn[] U8G2_FONT_SECTION("u8g2_font_helvB08_tn"); extern const uint8_t u8g2_font_helvB08_te[] U8G2_FONT_SECTION("u8g2_font_helvB08_te"); extern const uint8_t u8g2_font_helvB10_tf[] U8G2_FONT_SECTION("u8g2_font_helvB10_tf"); extern const uint8_t u8g2_font_helvB10_tr[] U8G2_FONT_SECTION("u8g2_font_helvB10_tr"); extern const uint8_t u8g2_font_helvB10_tn[] U8G2_FONT_SECTION("u8g2_font_helvB10_tn"); extern const uint8_t u8g2_font_helvB10_te[] U8G2_FONT_SECTION("u8g2_font_helvB10_te"); extern const uint8_t u8g2_font_helvB12_tf[] U8G2_FONT_SECTION("u8g2_font_helvB12_tf"); extern const uint8_t u8g2_font_helvB12_tr[] U8G2_FONT_SECTION("u8g2_font_helvB12_tr"); extern const uint8_t u8g2_font_helvB12_tn[] U8G2_FONT_SECTION("u8g2_font_helvB12_tn"); extern const uint8_t u8g2_font_helvB12_te[] U8G2_FONT_SECTION("u8g2_font_helvB12_te"); extern const uint8_t u8g2_font_helvB14_tf[] U8G2_FONT_SECTION("u8g2_font_helvB14_tf"); extern const uint8_t u8g2_font_helvB14_tr[] U8G2_FONT_SECTION("u8g2_font_helvB14_tr"); extern const uint8_t u8g2_font_helvB14_tn[] U8G2_FONT_SECTION("u8g2_font_helvB14_tn"); extern const uint8_t u8g2_font_helvB14_te[] U8G2_FONT_SECTION("u8g2_font_helvB14_te"); extern const uint8_t u8g2_font_helvB18_tf[] U8G2_FONT_SECTION("u8g2_font_helvB18_tf"); extern const uint8_t u8g2_font_helvB18_tr[] U8G2_FONT_SECTION("u8g2_font_helvB18_tr"); extern const uint8_t u8g2_font_helvB18_tn[] U8G2_FONT_SECTION("u8g2_font_helvB18_tn"); extern const uint8_t u8g2_font_helvB18_te[] U8G2_FONT_SECTION("u8g2_font_helvB18_te"); extern const uint8_t u8g2_font_helvB24_tf[] U8G2_FONT_SECTION("u8g2_font_helvB24_tf"); extern const uint8_t u8g2_font_helvB24_tr[] U8G2_FONT_SECTION("u8g2_font_helvB24_tr"); extern const uint8_t u8g2_font_helvB24_tn[] U8G2_FONT_SECTION("u8g2_font_helvB24_tn"); extern const uint8_t u8g2_font_helvB24_te[] U8G2_FONT_SECTION("u8g2_font_helvB24_te"); extern const uint8_t u8g2_font_helvR08_tf[] U8G2_FONT_SECTION("u8g2_font_helvR08_tf"); extern const uint8_t u8g2_font_helvR08_tr[] U8G2_FONT_SECTION("u8g2_font_helvR08_tr"); extern const uint8_t u8g2_font_helvR08_tn[] U8G2_FONT_SECTION("u8g2_font_helvR08_tn"); extern const uint8_t u8g2_font_helvR08_te[] U8G2_FONT_SECTION("u8g2_font_helvR08_te"); extern const uint8_t u8g2_font_helvR10_tf[] U8G2_FONT_SECTION("u8g2_font_helvR10_tf"); extern const uint8_t u8g2_font_helvR10_tr[] U8G2_FONT_SECTION("u8g2_font_helvR10_tr"); extern const uint8_t u8g2_font_helvR10_tn[] U8G2_FONT_SECTION("u8g2_font_helvR10_tn"); extern const uint8_t u8g2_font_helvR10_te[] U8G2_FONT_SECTION("u8g2_font_helvR10_te"); extern const uint8_t u8g2_font_helvR12_tf[] U8G2_FONT_SECTION("u8g2_font_helvR12_tf"); extern const uint8_t u8g2_font_helvR12_tr[] U8G2_FONT_SECTION("u8g2_font_helvR12_tr"); extern const uint8_t u8g2_font_helvR12_tn[] U8G2_FONT_SECTION("u8g2_font_helvR12_tn"); extern const uint8_t u8g2_font_helvR12_te[] U8G2_FONT_SECTION("u8g2_font_helvR12_te"); extern const uint8_t u8g2_font_helvR14_tf[] U8G2_FONT_SECTION("u8g2_font_helvR14_tf"); extern const uint8_t u8g2_font_helvR14_tr[] U8G2_FONT_SECTION("u8g2_font_helvR14_tr"); extern const uint8_t u8g2_font_helvR14_tn[] U8G2_FONT_SECTION("u8g2_font_helvR14_tn"); extern const uint8_t u8g2_font_helvR14_te[] U8G2_FONT_SECTION("u8g2_font_helvR14_te"); extern const uint8_t u8g2_font_helvR18_tf[] U8G2_FONT_SECTION("u8g2_font_helvR18_tf"); extern const uint8_t u8g2_font_helvR18_tr[] U8G2_FONT_SECTION("u8g2_font_helvR18_tr"); extern const uint8_t u8g2_font_helvR18_tn[] U8G2_FONT_SECTION("u8g2_font_helvR18_tn"); extern const uint8_t u8g2_font_helvR18_te[] U8G2_FONT_SECTION("u8g2_font_helvR18_te"); extern const uint8_t u8g2_font_helvR24_tf[] U8G2_FONT_SECTION("u8g2_font_helvR24_tf"); extern const uint8_t u8g2_font_helvR24_tr[] U8G2_FONT_SECTION("u8g2_font_helvR24_tr"); extern const uint8_t u8g2_font_helvR24_tn[] U8G2_FONT_SECTION("u8g2_font_helvR24_tn"); extern const uint8_t u8g2_font_helvR24_te[] U8G2_FONT_SECTION("u8g2_font_helvR24_te"); extern const uint8_t u8g2_font_ncenB08_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB08_tf"); extern const uint8_t u8g2_font_ncenB08_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB08_tr"); extern const uint8_t u8g2_font_ncenB08_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB08_tn"); extern const uint8_t u8g2_font_ncenB08_te[] U8G2_FONT_SECTION("u8g2_font_ncenB08_te"); extern const uint8_t u8g2_font_ncenB10_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB10_tf"); extern const uint8_t u8g2_font_ncenB10_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB10_tr"); extern const uint8_t u8g2_font_ncenB10_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB10_tn"); extern const uint8_t u8g2_font_ncenB10_te[] U8G2_FONT_SECTION("u8g2_font_ncenB10_te"); extern const uint8_t u8g2_font_ncenB12_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB12_tf"); extern const uint8_t u8g2_font_ncenB12_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB12_tr"); extern const uint8_t u8g2_font_ncenB12_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB12_tn"); extern const uint8_t u8g2_font_ncenB12_te[] U8G2_FONT_SECTION("u8g2_font_ncenB12_te"); extern const uint8_t u8g2_font_ncenB14_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB14_tf"); extern const uint8_t u8g2_font_ncenB14_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB14_tr"); extern const uint8_t u8g2_font_ncenB14_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB14_tn"); extern const uint8_t u8g2_font_ncenB14_te[] U8G2_FONT_SECTION("u8g2_font_ncenB14_te"); extern const uint8_t u8g2_font_ncenB18_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB18_tf"); extern const uint8_t u8g2_font_ncenB18_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB18_tr"); extern const uint8_t u8g2_font_ncenB18_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB18_tn"); extern const uint8_t u8g2_font_ncenB18_te[] U8G2_FONT_SECTION("u8g2_font_ncenB18_te"); extern const uint8_t u8g2_font_ncenB24_tf[] U8G2_FONT_SECTION("u8g2_font_ncenB24_tf"); extern const uint8_t u8g2_font_ncenB24_tr[] U8G2_FONT_SECTION("u8g2_font_ncenB24_tr"); extern const uint8_t u8g2_font_ncenB24_tn[] U8G2_FONT_SECTION("u8g2_font_ncenB24_tn"); extern const uint8_t u8g2_font_ncenB24_te[] U8G2_FONT_SECTION("u8g2_font_ncenB24_te"); extern const uint8_t u8g2_font_ncenR08_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR08_tf"); extern const uint8_t u8g2_font_ncenR08_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR08_tr"); extern const uint8_t u8g2_font_ncenR08_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR08_tn"); extern const uint8_t u8g2_font_ncenR08_te[] U8G2_FONT_SECTION("u8g2_font_ncenR08_te"); extern const uint8_t u8g2_font_ncenR10_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR10_tf"); extern const uint8_t u8g2_font_ncenR10_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR10_tr"); extern const uint8_t u8g2_font_ncenR10_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR10_tn"); extern const uint8_t u8g2_font_ncenR10_te[] U8G2_FONT_SECTION("u8g2_font_ncenR10_te"); extern const uint8_t u8g2_font_ncenR12_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR12_tf"); extern const uint8_t u8g2_font_ncenR12_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR12_tr"); extern const uint8_t u8g2_font_ncenR12_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR12_tn"); extern const uint8_t u8g2_font_ncenR12_te[] U8G2_FONT_SECTION("u8g2_font_ncenR12_te"); extern const uint8_t u8g2_font_ncenR14_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR14_tf"); extern const uint8_t u8g2_font_ncenR14_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR14_tr"); extern const uint8_t u8g2_font_ncenR14_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR14_tn"); extern const uint8_t u8g2_font_ncenR14_te[] U8G2_FONT_SECTION("u8g2_font_ncenR14_te"); extern const uint8_t u8g2_font_ncenR18_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR18_tf"); extern const uint8_t u8g2_font_ncenR18_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR18_tr"); extern const uint8_t u8g2_font_ncenR18_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR18_tn"); extern const uint8_t u8g2_font_ncenR18_te[] U8G2_FONT_SECTION("u8g2_font_ncenR18_te"); extern const uint8_t u8g2_font_ncenR24_tf[] U8G2_FONT_SECTION("u8g2_font_ncenR24_tf"); extern const uint8_t u8g2_font_ncenR24_tr[] U8G2_FONT_SECTION("u8g2_font_ncenR24_tr"); extern const uint8_t u8g2_font_ncenR24_tn[] U8G2_FONT_SECTION("u8g2_font_ncenR24_tn"); extern const uint8_t u8g2_font_ncenR24_te[] U8G2_FONT_SECTION("u8g2_font_ncenR24_te"); extern const uint8_t u8g2_font_timB08_tf[] U8G2_FONT_SECTION("u8g2_font_timB08_tf"); extern const uint8_t u8g2_font_timB08_tr[] U8G2_FONT_SECTION("u8g2_font_timB08_tr"); extern const uint8_t u8g2_font_timB08_tn[] U8G2_FONT_SECTION("u8g2_font_timB08_tn"); extern const uint8_t u8g2_font_timB10_tf[] U8G2_FONT_SECTION("u8g2_font_timB10_tf"); extern const uint8_t u8g2_font_timB10_tr[] U8G2_FONT_SECTION("u8g2_font_timB10_tr"); extern const uint8_t u8g2_font_timB10_tn[] U8G2_FONT_SECTION("u8g2_font_timB10_tn"); extern const uint8_t u8g2_font_timB12_tf[] U8G2_FONT_SECTION("u8g2_font_timB12_tf"); extern const uint8_t u8g2_font_timB12_tr[] U8G2_FONT_SECTION("u8g2_font_timB12_tr"); extern const uint8_t u8g2_font_timB12_tn[] U8G2_FONT_SECTION("u8g2_font_timB12_tn"); extern const uint8_t u8g2_font_timB14_tf[] U8G2_FONT_SECTION("u8g2_font_timB14_tf"); extern const uint8_t u8g2_font_timB14_tr[] U8G2_FONT_SECTION("u8g2_font_timB14_tr"); extern const uint8_t u8g2_font_timB14_tn[] U8G2_FONT_SECTION("u8g2_font_timB14_tn"); extern const uint8_t u8g2_font_timB18_tf[] U8G2_FONT_SECTION("u8g2_font_timB18_tf"); extern const uint8_t u8g2_font_timB18_tr[] U8G2_FONT_SECTION("u8g2_font_timB18_tr"); extern const uint8_t u8g2_font_timB18_tn[] U8G2_FONT_SECTION("u8g2_font_timB18_tn"); extern const uint8_t u8g2_font_timB24_tf[] U8G2_FONT_SECTION("u8g2_font_timB24_tf"); extern const uint8_t u8g2_font_timB24_tr[] U8G2_FONT_SECTION("u8g2_font_timB24_tr"); extern const uint8_t u8g2_font_timB24_tn[] U8G2_FONT_SECTION("u8g2_font_timB24_tn"); extern const uint8_t u8g2_font_timR08_tf[] U8G2_FONT_SECTION("u8g2_font_timR08_tf"); extern const uint8_t u8g2_font_timR08_tr[] U8G2_FONT_SECTION("u8g2_font_timR08_tr"); extern const uint8_t u8g2_font_timR08_tn[] U8G2_FONT_SECTION("u8g2_font_timR08_tn"); extern const uint8_t u8g2_font_timR10_tf[] U8G2_FONT_SECTION("u8g2_font_timR10_tf"); extern const uint8_t u8g2_font_timR10_tr[] U8G2_FONT_SECTION("u8g2_font_timR10_tr"); extern const uint8_t u8g2_font_timR10_tn[] U8G2_FONT_SECTION("u8g2_font_timR10_tn"); extern const uint8_t u8g2_font_timR12_tf[] U8G2_FONT_SECTION("u8g2_font_timR12_tf"); extern const uint8_t u8g2_font_timR12_tr[] U8G2_FONT_SECTION("u8g2_font_timR12_tr"); extern const uint8_t u8g2_font_timR12_tn[] U8G2_FONT_SECTION("u8g2_font_timR12_tn"); extern const uint8_t u8g2_font_timR14_tf[] U8G2_FONT_SECTION("u8g2_font_timR14_tf"); extern const uint8_t u8g2_font_timR14_tr[] U8G2_FONT_SECTION("u8g2_font_timR14_tr"); extern const uint8_t u8g2_font_timR14_tn[] U8G2_FONT_SECTION("u8g2_font_timR14_tn"); extern const uint8_t u8g2_font_timR18_tf[] U8G2_FONT_SECTION("u8g2_font_timR18_tf"); extern const uint8_t u8g2_font_timR18_tr[] U8G2_FONT_SECTION("u8g2_font_timR18_tr"); extern const uint8_t u8g2_font_timR18_tn[] U8G2_FONT_SECTION("u8g2_font_timR18_tn"); extern const uint8_t u8g2_font_timR24_tf[] U8G2_FONT_SECTION("u8g2_font_timR24_tf"); extern const uint8_t u8g2_font_timR24_tr[] U8G2_FONT_SECTION("u8g2_font_timR24_tr"); extern const uint8_t u8g2_font_timR24_tn[] U8G2_FONT_SECTION("u8g2_font_timR24_tn"); extern const uint8_t u8g2_font_lubB08_tf[] U8G2_FONT_SECTION("u8g2_font_lubB08_tf"); extern const uint8_t u8g2_font_lubB08_tr[] U8G2_FONT_SECTION("u8g2_font_lubB08_tr"); extern const uint8_t u8g2_font_lubB08_tn[] U8G2_FONT_SECTION("u8g2_font_lubB08_tn"); extern const uint8_t u8g2_font_lubB08_te[] U8G2_FONT_SECTION("u8g2_font_lubB08_te"); extern const uint8_t u8g2_font_lubB10_tf[] U8G2_FONT_SECTION("u8g2_font_lubB10_tf"); extern const uint8_t u8g2_font_lubB10_tr[] U8G2_FONT_SECTION("u8g2_font_lubB10_tr"); extern const uint8_t u8g2_font_lubB10_tn[] U8G2_FONT_SECTION("u8g2_font_lubB10_tn"); extern const uint8_t u8g2_font_lubB10_te[] U8G2_FONT_SECTION("u8g2_font_lubB10_te"); extern const uint8_t u8g2_font_lubB12_tf[] U8G2_FONT_SECTION("u8g2_font_lubB12_tf"); extern const uint8_t u8g2_font_lubB12_tr[] U8G2_FONT_SECTION("u8g2_font_lubB12_tr"); extern const uint8_t u8g2_font_lubB12_tn[] U8G2_FONT_SECTION("u8g2_font_lubB12_tn"); extern const uint8_t u8g2_font_lubB12_te[] U8G2_FONT_SECTION("u8g2_font_lubB12_te"); extern const uint8_t u8g2_font_lubB14_tf[] U8G2_FONT_SECTION("u8g2_font_lubB14_tf"); extern const uint8_t u8g2_font_lubB14_tr[] U8G2_FONT_SECTION("u8g2_font_lubB14_tr"); extern const uint8_t u8g2_font_lubB14_tn[] U8G2_FONT_SECTION("u8g2_font_lubB14_tn"); extern const uint8_t u8g2_font_lubB14_te[] U8G2_FONT_SECTION("u8g2_font_lubB14_te"); extern const uint8_t u8g2_font_lubB18_tf[] U8G2_FONT_SECTION("u8g2_font_lubB18_tf"); extern const uint8_t u8g2_font_lubB18_tr[] U8G2_FONT_SECTION("u8g2_font_lubB18_tr"); extern const uint8_t u8g2_font_lubB18_tn[] U8G2_FONT_SECTION("u8g2_font_lubB18_tn"); extern const uint8_t u8g2_font_lubB18_te[] U8G2_FONT_SECTION("u8g2_font_lubB18_te"); extern const uint8_t u8g2_font_lubB19_tf[] U8G2_FONT_SECTION("u8g2_font_lubB19_tf"); extern const uint8_t u8g2_font_lubB19_tr[] U8G2_FONT_SECTION("u8g2_font_lubB19_tr"); extern const uint8_t u8g2_font_lubB19_tn[] U8G2_FONT_SECTION("u8g2_font_lubB19_tn"); extern const uint8_t u8g2_font_lubB19_te[] U8G2_FONT_SECTION("u8g2_font_lubB19_te"); extern const uint8_t u8g2_font_lubB24_tf[] U8G2_FONT_SECTION("u8g2_font_lubB24_tf"); extern const uint8_t u8g2_font_lubB24_tr[] U8G2_FONT_SECTION("u8g2_font_lubB24_tr"); extern const uint8_t u8g2_font_lubB24_tn[] U8G2_FONT_SECTION("u8g2_font_lubB24_tn"); extern const uint8_t u8g2_font_lubB24_te[] U8G2_FONT_SECTION("u8g2_font_lubB24_te"); extern const uint8_t u8g2_font_lubBI08_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI08_tf"); extern const uint8_t u8g2_font_lubBI08_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI08_tr"); extern const uint8_t u8g2_font_lubBI08_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI08_tn"); extern const uint8_t u8g2_font_lubBI08_te[] U8G2_FONT_SECTION("u8g2_font_lubBI08_te"); extern const uint8_t u8g2_font_lubBI10_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI10_tf"); extern const uint8_t u8g2_font_lubBI10_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI10_tr"); extern const uint8_t u8g2_font_lubBI10_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI10_tn"); extern const uint8_t u8g2_font_lubBI10_te[] U8G2_FONT_SECTION("u8g2_font_lubBI10_te"); extern const uint8_t u8g2_font_lubBI12_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI12_tf"); extern const uint8_t u8g2_font_lubBI12_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI12_tr"); extern const uint8_t u8g2_font_lubBI12_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI12_tn"); extern const uint8_t u8g2_font_lubBI12_te[] U8G2_FONT_SECTION("u8g2_font_lubBI12_te"); extern const uint8_t u8g2_font_lubBI14_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI14_tf"); extern const uint8_t u8g2_font_lubBI14_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI14_tr"); extern const uint8_t u8g2_font_lubBI14_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI14_tn"); extern const uint8_t u8g2_font_lubBI14_te[] U8G2_FONT_SECTION("u8g2_font_lubBI14_te"); extern const uint8_t u8g2_font_lubBI18_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI18_tf"); extern const uint8_t u8g2_font_lubBI18_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI18_tr"); extern const uint8_t u8g2_font_lubBI18_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI18_tn"); extern const uint8_t u8g2_font_lubBI18_te[] U8G2_FONT_SECTION("u8g2_font_lubBI18_te"); extern const uint8_t u8g2_font_lubBI19_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI19_tf"); extern const uint8_t u8g2_font_lubBI19_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI19_tr"); extern const uint8_t u8g2_font_lubBI19_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI19_tn"); extern const uint8_t u8g2_font_lubBI19_te[] U8G2_FONT_SECTION("u8g2_font_lubBI19_te"); extern const uint8_t u8g2_font_lubBI24_tf[] U8G2_FONT_SECTION("u8g2_font_lubBI24_tf"); extern const uint8_t u8g2_font_lubBI24_tr[] U8G2_FONT_SECTION("u8g2_font_lubBI24_tr"); extern const uint8_t u8g2_font_lubBI24_tn[] U8G2_FONT_SECTION("u8g2_font_lubBI24_tn"); extern const uint8_t u8g2_font_lubBI24_te[] U8G2_FONT_SECTION("u8g2_font_lubBI24_te"); extern const uint8_t u8g2_font_lubI08_tf[] U8G2_FONT_SECTION("u8g2_font_lubI08_tf"); extern const uint8_t u8g2_font_lubI08_tr[] U8G2_FONT_SECTION("u8g2_font_lubI08_tr"); extern const uint8_t u8g2_font_lubI08_tn[] U8G2_FONT_SECTION("u8g2_font_lubI08_tn"); extern const uint8_t u8g2_font_lubI08_te[] U8G2_FONT_SECTION("u8g2_font_lubI08_te"); extern const uint8_t u8g2_font_lubI10_tf[] U8G2_FONT_SECTION("u8g2_font_lubI10_tf"); extern const uint8_t u8g2_font_lubI10_tr[] U8G2_FONT_SECTION("u8g2_font_lubI10_tr"); extern const uint8_t u8g2_font_lubI10_tn[] U8G2_FONT_SECTION("u8g2_font_lubI10_tn"); extern const uint8_t u8g2_font_lubI10_te[] U8G2_FONT_SECTION("u8g2_font_lubI10_te"); extern const uint8_t u8g2_font_lubI12_tf[] U8G2_FONT_SECTION("u8g2_font_lubI12_tf"); extern const uint8_t u8g2_font_lubI12_tr[] U8G2_FONT_SECTION("u8g2_font_lubI12_tr"); extern const uint8_t u8g2_font_lubI12_tn[] U8G2_FONT_SECTION("u8g2_font_lubI12_tn"); extern const uint8_t u8g2_font_lubI12_te[] U8G2_FONT_SECTION("u8g2_font_lubI12_te"); extern const uint8_t u8g2_font_lubI14_tf[] U8G2_FONT_SECTION("u8g2_font_lubI14_tf"); extern const uint8_t u8g2_font_lubI14_tr[] U8G2_FONT_SECTION("u8g2_font_lubI14_tr"); extern const uint8_t u8g2_font_lubI14_tn[] U8G2_FONT_SECTION("u8g2_font_lubI14_tn"); extern const uint8_t u8g2_font_lubI14_te[] U8G2_FONT_SECTION("u8g2_font_lubI14_te"); extern const uint8_t u8g2_font_lubI18_tf[] U8G2_FONT_SECTION("u8g2_font_lubI18_tf"); extern const uint8_t u8g2_font_lubI18_tr[] U8G2_FONT_SECTION("u8g2_font_lubI18_tr"); extern const uint8_t u8g2_font_lubI18_tn[] U8G2_FONT_SECTION("u8g2_font_lubI18_tn"); extern const uint8_t u8g2_font_lubI18_te[] U8G2_FONT_SECTION("u8g2_font_lubI18_te"); extern const uint8_t u8g2_font_lubI19_tf[] U8G2_FONT_SECTION("u8g2_font_lubI19_tf"); extern const uint8_t u8g2_font_lubI19_tr[] U8G2_FONT_SECTION("u8g2_font_lubI19_tr"); extern const uint8_t u8g2_font_lubI19_tn[] U8G2_FONT_SECTION("u8g2_font_lubI19_tn"); extern const uint8_t u8g2_font_lubI19_te[] U8G2_FONT_SECTION("u8g2_font_lubI19_te"); extern const uint8_t u8g2_font_lubI24_tf[] U8G2_FONT_SECTION("u8g2_font_lubI24_tf"); extern const uint8_t u8g2_font_lubI24_tr[] U8G2_FONT_SECTION("u8g2_font_lubI24_tr"); extern const uint8_t u8g2_font_lubI24_tn[] U8G2_FONT_SECTION("u8g2_font_lubI24_tn"); extern const uint8_t u8g2_font_lubI24_te[] U8G2_FONT_SECTION("u8g2_font_lubI24_te"); extern const uint8_t u8g2_font_luBIS08_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS08_tf"); extern const uint8_t u8g2_font_luBIS08_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS08_tr"); extern const uint8_t u8g2_font_luBIS08_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS08_tn"); extern const uint8_t u8g2_font_luBIS08_te[] U8G2_FONT_SECTION("u8g2_font_luBIS08_te"); extern const uint8_t u8g2_font_luBIS10_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS10_tf"); extern const uint8_t u8g2_font_luBIS10_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS10_tr"); extern const uint8_t u8g2_font_luBIS10_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS10_tn"); extern const uint8_t u8g2_font_luBIS10_te[] U8G2_FONT_SECTION("u8g2_font_luBIS10_te"); extern const uint8_t u8g2_font_luBIS12_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS12_tf"); extern const uint8_t u8g2_font_luBIS12_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS12_tr"); extern const uint8_t u8g2_font_luBIS12_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS12_tn"); extern const uint8_t u8g2_font_luBIS12_te[] U8G2_FONT_SECTION("u8g2_font_luBIS12_te"); extern const uint8_t u8g2_font_luBIS14_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS14_tf"); extern const uint8_t u8g2_font_luBIS14_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS14_tr"); extern const uint8_t u8g2_font_luBIS14_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS14_tn"); extern const uint8_t u8g2_font_luBIS14_te[] U8G2_FONT_SECTION("u8g2_font_luBIS14_te"); extern const uint8_t u8g2_font_luBIS18_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS18_tf"); extern const uint8_t u8g2_font_luBIS18_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS18_tr"); extern const uint8_t u8g2_font_luBIS18_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS18_tn"); extern const uint8_t u8g2_font_luBIS18_te[] U8G2_FONT_SECTION("u8g2_font_luBIS18_te"); extern const uint8_t u8g2_font_luBIS19_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS19_tf"); extern const uint8_t u8g2_font_luBIS19_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS19_tr"); extern const uint8_t u8g2_font_luBIS19_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS19_tn"); extern const uint8_t u8g2_font_luBIS19_te[] U8G2_FONT_SECTION("u8g2_font_luBIS19_te"); extern const uint8_t u8g2_font_luBIS24_tf[] U8G2_FONT_SECTION("u8g2_font_luBIS24_tf"); extern const uint8_t u8g2_font_luBIS24_tr[] U8G2_FONT_SECTION("u8g2_font_luBIS24_tr"); extern const uint8_t u8g2_font_luBIS24_tn[] U8G2_FONT_SECTION("u8g2_font_luBIS24_tn"); extern const uint8_t u8g2_font_luBIS24_te[] U8G2_FONT_SECTION("u8g2_font_luBIS24_te"); extern const uint8_t u8g2_font_lubR08_tf[] U8G2_FONT_SECTION("u8g2_font_lubR08_tf"); extern const uint8_t u8g2_font_lubR08_tr[] U8G2_FONT_SECTION("u8g2_font_lubR08_tr"); extern const uint8_t u8g2_font_lubR08_tn[] U8G2_FONT_SECTION("u8g2_font_lubR08_tn"); extern const uint8_t u8g2_font_lubR08_te[] U8G2_FONT_SECTION("u8g2_font_lubR08_te"); extern const uint8_t u8g2_font_lubR10_tf[] U8G2_FONT_SECTION("u8g2_font_lubR10_tf"); extern const uint8_t u8g2_font_lubR10_tr[] U8G2_FONT_SECTION("u8g2_font_lubR10_tr"); extern const uint8_t u8g2_font_lubR10_tn[] U8G2_FONT_SECTION("u8g2_font_lubR10_tn"); extern const uint8_t u8g2_font_lubR10_te[] U8G2_FONT_SECTION("u8g2_font_lubR10_te"); extern const uint8_t u8g2_font_lubR12_tf[] U8G2_FONT_SECTION("u8g2_font_lubR12_tf"); extern const uint8_t u8g2_font_lubR12_tr[] U8G2_FONT_SECTION("u8g2_font_lubR12_tr"); extern const uint8_t u8g2_font_lubR12_tn[] U8G2_FONT_SECTION("u8g2_font_lubR12_tn"); extern const uint8_t u8g2_font_lubR12_te[] U8G2_FONT_SECTION("u8g2_font_lubR12_te"); extern const uint8_t u8g2_font_lubR14_tf[] U8G2_FONT_SECTION("u8g2_font_lubR14_tf"); extern const uint8_t u8g2_font_lubR14_tr[] U8G2_FONT_SECTION("u8g2_font_lubR14_tr"); extern const uint8_t u8g2_font_lubR14_tn[] U8G2_FONT_SECTION("u8g2_font_lubR14_tn"); extern const uint8_t u8g2_font_lubR14_te[] U8G2_FONT_SECTION("u8g2_font_lubR14_te"); extern const uint8_t u8g2_font_lubR18_tf[] U8G2_FONT_SECTION("u8g2_font_lubR18_tf"); extern const uint8_t u8g2_font_lubR18_tr[] U8G2_FONT_SECTION("u8g2_font_lubR18_tr"); extern const uint8_t u8g2_font_lubR18_tn[] U8G2_FONT_SECTION("u8g2_font_lubR18_tn"); extern const uint8_t u8g2_font_lubR18_te[] U8G2_FONT_SECTION("u8g2_font_lubR18_te"); extern const uint8_t u8g2_font_lubR19_tf[] U8G2_FONT_SECTION("u8g2_font_lubR19_tf"); extern const uint8_t u8g2_font_lubR19_tr[] U8G2_FONT_SECTION("u8g2_font_lubR19_tr"); extern const uint8_t u8g2_font_lubR19_tn[] U8G2_FONT_SECTION("u8g2_font_lubR19_tn"); extern const uint8_t u8g2_font_lubR19_te[] U8G2_FONT_SECTION("u8g2_font_lubR19_te"); extern const uint8_t u8g2_font_lubR24_tf[] U8G2_FONT_SECTION("u8g2_font_lubR24_tf"); extern const uint8_t u8g2_font_lubR24_tr[] U8G2_FONT_SECTION("u8g2_font_lubR24_tr"); extern const uint8_t u8g2_font_lubR24_tn[] U8G2_FONT_SECTION("u8g2_font_lubR24_tn"); extern const uint8_t u8g2_font_lubR24_te[] U8G2_FONT_SECTION("u8g2_font_lubR24_te"); extern const uint8_t u8g2_font_luBS08_tf[] U8G2_FONT_SECTION("u8g2_font_luBS08_tf"); extern const uint8_t u8g2_font_luBS08_tr[] U8G2_FONT_SECTION("u8g2_font_luBS08_tr"); extern const uint8_t u8g2_font_luBS08_tn[] U8G2_FONT_SECTION("u8g2_font_luBS08_tn"); extern const uint8_t u8g2_font_luBS08_te[] U8G2_FONT_SECTION("u8g2_font_luBS08_te"); extern const uint8_t u8g2_font_luBS10_tf[] U8G2_FONT_SECTION("u8g2_font_luBS10_tf"); extern const uint8_t u8g2_font_luBS10_tr[] U8G2_FONT_SECTION("u8g2_font_luBS10_tr"); extern const uint8_t u8g2_font_luBS10_tn[] U8G2_FONT_SECTION("u8g2_font_luBS10_tn"); extern const uint8_t u8g2_font_luBS10_te[] U8G2_FONT_SECTION("u8g2_font_luBS10_te"); extern const uint8_t u8g2_font_luBS12_tf[] U8G2_FONT_SECTION("u8g2_font_luBS12_tf"); extern const uint8_t u8g2_font_luBS12_tr[] U8G2_FONT_SECTION("u8g2_font_luBS12_tr"); extern const uint8_t u8g2_font_luBS12_tn[] U8G2_FONT_SECTION("u8g2_font_luBS12_tn"); extern const uint8_t u8g2_font_luBS12_te[] U8G2_FONT_SECTION("u8g2_font_luBS12_te"); extern const uint8_t u8g2_font_luBS14_tf[] U8G2_FONT_SECTION("u8g2_font_luBS14_tf"); extern const uint8_t u8g2_font_luBS14_tr[] U8G2_FONT_SECTION("u8g2_font_luBS14_tr"); extern const uint8_t u8g2_font_luBS14_tn[] U8G2_FONT_SECTION("u8g2_font_luBS14_tn"); extern const uint8_t u8g2_font_luBS14_te[] U8G2_FONT_SECTION("u8g2_font_luBS14_te"); extern const uint8_t u8g2_font_luBS18_tf[] U8G2_FONT_SECTION("u8g2_font_luBS18_tf"); extern const uint8_t u8g2_font_luBS18_tr[] U8G2_FONT_SECTION("u8g2_font_luBS18_tr"); extern const uint8_t u8g2_font_luBS18_tn[] U8G2_FONT_SECTION("u8g2_font_luBS18_tn"); extern const uint8_t u8g2_font_luBS18_te[] U8G2_FONT_SECTION("u8g2_font_luBS18_te"); extern const uint8_t u8g2_font_luBS19_tf[] U8G2_FONT_SECTION("u8g2_font_luBS19_tf"); extern const uint8_t u8g2_font_luBS19_tr[] U8G2_FONT_SECTION("u8g2_font_luBS19_tr"); extern const uint8_t u8g2_font_luBS19_tn[] U8G2_FONT_SECTION("u8g2_font_luBS19_tn"); extern const uint8_t u8g2_font_luBS19_te[] U8G2_FONT_SECTION("u8g2_font_luBS19_te"); extern const uint8_t u8g2_font_luBS24_tf[] U8G2_FONT_SECTION("u8g2_font_luBS24_tf"); extern const uint8_t u8g2_font_luBS24_tr[] U8G2_FONT_SECTION("u8g2_font_luBS24_tr"); extern const uint8_t u8g2_font_luBS24_tn[] U8G2_FONT_SECTION("u8g2_font_luBS24_tn"); extern const uint8_t u8g2_font_luBS24_te[] U8G2_FONT_SECTION("u8g2_font_luBS24_te"); extern const uint8_t u8g2_font_luIS08_tf[] U8G2_FONT_SECTION("u8g2_font_luIS08_tf"); extern const uint8_t u8g2_font_luIS08_tr[] U8G2_FONT_SECTION("u8g2_font_luIS08_tr"); extern const uint8_t u8g2_font_luIS08_tn[] U8G2_FONT_SECTION("u8g2_font_luIS08_tn"); extern const uint8_t u8g2_font_luIS08_te[] U8G2_FONT_SECTION("u8g2_font_luIS08_te"); extern const uint8_t u8g2_font_luIS10_tf[] U8G2_FONT_SECTION("u8g2_font_luIS10_tf"); extern const uint8_t u8g2_font_luIS10_tr[] U8G2_FONT_SECTION("u8g2_font_luIS10_tr"); extern const uint8_t u8g2_font_luIS10_tn[] U8G2_FONT_SECTION("u8g2_font_luIS10_tn"); extern const uint8_t u8g2_font_luIS10_te[] U8G2_FONT_SECTION("u8g2_font_luIS10_te"); extern const uint8_t u8g2_font_luIS12_tf[] U8G2_FONT_SECTION("u8g2_font_luIS12_tf"); extern const uint8_t u8g2_font_luIS12_tr[] U8G2_FONT_SECTION("u8g2_font_luIS12_tr"); extern const uint8_t u8g2_font_luIS12_tn[] U8G2_FONT_SECTION("u8g2_font_luIS12_tn"); extern const uint8_t u8g2_font_luIS12_te[] U8G2_FONT_SECTION("u8g2_font_luIS12_te"); extern const uint8_t u8g2_font_luIS14_tf[] U8G2_FONT_SECTION("u8g2_font_luIS14_tf"); extern const uint8_t u8g2_font_luIS14_tr[] U8G2_FONT_SECTION("u8g2_font_luIS14_tr"); extern const uint8_t u8g2_font_luIS14_tn[] U8G2_FONT_SECTION("u8g2_font_luIS14_tn"); extern const uint8_t u8g2_font_luIS14_te[] U8G2_FONT_SECTION("u8g2_font_luIS14_te"); extern const uint8_t u8g2_font_luIS18_tf[] U8G2_FONT_SECTION("u8g2_font_luIS18_tf"); extern const uint8_t u8g2_font_luIS18_tr[] U8G2_FONT_SECTION("u8g2_font_luIS18_tr"); extern const uint8_t u8g2_font_luIS18_tn[] U8G2_FONT_SECTION("u8g2_font_luIS18_tn"); extern const uint8_t u8g2_font_luIS18_te[] U8G2_FONT_SECTION("u8g2_font_luIS18_te"); extern const uint8_t u8g2_font_luIS19_tf[] U8G2_FONT_SECTION("u8g2_font_luIS19_tf"); extern const uint8_t u8g2_font_luIS19_tr[] U8G2_FONT_SECTION("u8g2_font_luIS19_tr"); extern const uint8_t u8g2_font_luIS19_tn[] U8G2_FONT_SECTION("u8g2_font_luIS19_tn"); extern const uint8_t u8g2_font_luIS19_te[] U8G2_FONT_SECTION("u8g2_font_luIS19_te"); extern const uint8_t u8g2_font_luIS24_tf[] U8G2_FONT_SECTION("u8g2_font_luIS24_tf"); extern const uint8_t u8g2_font_luIS24_tr[] U8G2_FONT_SECTION("u8g2_font_luIS24_tr"); extern const uint8_t u8g2_font_luIS24_tn[] U8G2_FONT_SECTION("u8g2_font_luIS24_tn"); extern const uint8_t u8g2_font_luIS24_te[] U8G2_FONT_SECTION("u8g2_font_luIS24_te"); extern const uint8_t u8g2_font_luRS08_tf[] U8G2_FONT_SECTION("u8g2_font_luRS08_tf"); extern const uint8_t u8g2_font_luRS08_tr[] U8G2_FONT_SECTION("u8g2_font_luRS08_tr"); extern const uint8_t u8g2_font_luRS08_tn[] U8G2_FONT_SECTION("u8g2_font_luRS08_tn"); extern const uint8_t u8g2_font_luRS08_te[] U8G2_FONT_SECTION("u8g2_font_luRS08_te"); extern const uint8_t u8g2_font_luRS10_tf[] U8G2_FONT_SECTION("u8g2_font_luRS10_tf"); extern const uint8_t u8g2_font_luRS10_tr[] U8G2_FONT_SECTION("u8g2_font_luRS10_tr"); extern const uint8_t u8g2_font_luRS10_tn[] U8G2_FONT_SECTION("u8g2_font_luRS10_tn"); extern const uint8_t u8g2_font_luRS10_te[] U8G2_FONT_SECTION("u8g2_font_luRS10_te"); extern const uint8_t u8g2_font_luRS12_tf[] U8G2_FONT_SECTION("u8g2_font_luRS12_tf"); extern const uint8_t u8g2_font_luRS12_tr[] U8G2_FONT_SECTION("u8g2_font_luRS12_tr"); extern const uint8_t u8g2_font_luRS12_tn[] U8G2_FONT_SECTION("u8g2_font_luRS12_tn"); extern const uint8_t u8g2_font_luRS12_te[] U8G2_FONT_SECTION("u8g2_font_luRS12_te"); extern const uint8_t u8g2_font_luRS14_tf[] U8G2_FONT_SECTION("u8g2_font_luRS14_tf"); extern const uint8_t u8g2_font_luRS14_tr[] U8G2_FONT_SECTION("u8g2_font_luRS14_tr"); extern const uint8_t u8g2_font_luRS14_tn[] U8G2_FONT_SECTION("u8g2_font_luRS14_tn"); extern const uint8_t u8g2_font_luRS14_te[] U8G2_FONT_SECTION("u8g2_font_luRS14_te"); extern const uint8_t u8g2_font_luRS18_tf[] U8G2_FONT_SECTION("u8g2_font_luRS18_tf"); extern const uint8_t u8g2_font_luRS18_tr[] U8G2_FONT_SECTION("u8g2_font_luRS18_tr"); extern const uint8_t u8g2_font_luRS18_tn[] U8G2_FONT_SECTION("u8g2_font_luRS18_tn"); extern const uint8_t u8g2_font_luRS18_te[] U8G2_FONT_SECTION("u8g2_font_luRS18_te"); extern const uint8_t u8g2_font_luRS19_tf[] U8G2_FONT_SECTION("u8g2_font_luRS19_tf"); extern const uint8_t u8g2_font_luRS19_tr[] U8G2_FONT_SECTION("u8g2_font_luRS19_tr"); extern const uint8_t u8g2_font_luRS19_tn[] U8G2_FONT_SECTION("u8g2_font_luRS19_tn"); extern const uint8_t u8g2_font_luRS19_te[] U8G2_FONT_SECTION("u8g2_font_luRS19_te"); extern const uint8_t u8g2_font_luRS24_tf[] U8G2_FONT_SECTION("u8g2_font_luRS24_tf"); extern const uint8_t u8g2_font_luRS24_tr[] U8G2_FONT_SECTION("u8g2_font_luRS24_tr"); extern const uint8_t u8g2_font_luRS24_tn[] U8G2_FONT_SECTION("u8g2_font_luRS24_tn"); extern const uint8_t u8g2_font_luRS24_te[] U8G2_FONT_SECTION("u8g2_font_luRS24_te"); extern const uint8_t u8g2_font_baby_tf[] U8G2_FONT_SECTION("u8g2_font_baby_tf"); extern const uint8_t u8g2_font_baby_tr[] U8G2_FONT_SECTION("u8g2_font_baby_tr"); extern const uint8_t u8g2_font_baby_tn[] U8G2_FONT_SECTION("u8g2_font_baby_tn"); extern const uint8_t u8g2_font_blipfest_07_tr[] U8G2_FONT_SECTION("u8g2_font_blipfest_07_tr"); extern const uint8_t u8g2_font_blipfest_07_tn[] U8G2_FONT_SECTION("u8g2_font_blipfest_07_tn"); extern const uint8_t u8g2_font_chikita_tf[] U8G2_FONT_SECTION("u8g2_font_chikita_tf"); extern const uint8_t u8g2_font_chikita_tr[] U8G2_FONT_SECTION("u8g2_font_chikita_tr"); extern const uint8_t u8g2_font_chikita_tn[] U8G2_FONT_SECTION("u8g2_font_chikita_tn"); extern const uint8_t u8g2_font_lucasfont_alternate_tf[] U8G2_FONT_SECTION("u8g2_font_lucasfont_alternate_tf"); extern const uint8_t u8g2_font_lucasfont_alternate_tr[] U8G2_FONT_SECTION("u8g2_font_lucasfont_alternate_tr"); extern const uint8_t u8g2_font_lucasfont_alternate_tn[] U8G2_FONT_SECTION("u8g2_font_lucasfont_alternate_tn"); extern const uint8_t u8g2_font_p01type_tf[] U8G2_FONT_SECTION("u8g2_font_p01type_tf"); extern const uint8_t u8g2_font_p01type_tr[] U8G2_FONT_SECTION("u8g2_font_p01type_tr"); extern const uint8_t u8g2_font_p01type_tn[] U8G2_FONT_SECTION("u8g2_font_p01type_tn"); extern const uint8_t u8g2_font_pixelle_micro_tr[] U8G2_FONT_SECTION("u8g2_font_pixelle_micro_tr"); extern const uint8_t u8g2_font_pixelle_micro_tn[] U8G2_FONT_SECTION("u8g2_font_pixelle_micro_tn"); extern const uint8_t u8g2_font_robot_de_niro_tf[] U8G2_FONT_SECTION("u8g2_font_robot_de_niro_tf"); extern const uint8_t u8g2_font_robot_de_niro_tr[] U8G2_FONT_SECTION("u8g2_font_robot_de_niro_tr"); extern const uint8_t u8g2_font_robot_de_niro_tn[] U8G2_FONT_SECTION("u8g2_font_robot_de_niro_tn"); extern const uint8_t u8g2_font_trixel_square_tf[] U8G2_FONT_SECTION("u8g2_font_trixel_square_tf"); extern const uint8_t u8g2_font_trixel_square_tr[] U8G2_FONT_SECTION("u8g2_font_trixel_square_tr"); extern const uint8_t u8g2_font_trixel_square_tn[] U8G2_FONT_SECTION("u8g2_font_trixel_square_tn"); extern const uint8_t u8g2_font_haxrcorp4089_tr[] U8G2_FONT_SECTION("u8g2_font_haxrcorp4089_tr"); extern const uint8_t u8g2_font_haxrcorp4089_tn[] U8G2_FONT_SECTION("u8g2_font_haxrcorp4089_tn"); extern const uint8_t u8g2_font_haxrcorp4089_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_haxrcorp4089_t_cyrillic"); extern const uint8_t u8g2_font_bubble_tr[] U8G2_FONT_SECTION("u8g2_font_bubble_tr"); extern const uint8_t u8g2_font_bubble_tn[] U8G2_FONT_SECTION("u8g2_font_bubble_tn"); extern const uint8_t u8g2_font_cardimon_pixel_tf[] U8G2_FONT_SECTION("u8g2_font_cardimon_pixel_tf"); extern const uint8_t u8g2_font_cardimon_pixel_tr[] U8G2_FONT_SECTION("u8g2_font_cardimon_pixel_tr"); extern const uint8_t u8g2_font_cardimon_pixel_tn[] U8G2_FONT_SECTION("u8g2_font_cardimon_pixel_tn"); extern const uint8_t u8g2_font_maniac_tf[] U8G2_FONT_SECTION("u8g2_font_maniac_tf"); extern const uint8_t u8g2_font_maniac_tr[] U8G2_FONT_SECTION("u8g2_font_maniac_tr"); extern const uint8_t u8g2_font_maniac_tn[] U8G2_FONT_SECTION("u8g2_font_maniac_tn"); extern const uint8_t u8g2_font_maniac_te[] U8G2_FONT_SECTION("u8g2_font_maniac_te"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_o_tf[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_o_tf"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_o_tr[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_o_tr"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_o_tn[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_o_tn"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_r_tf[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_r_tf"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_r_tr[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_r_tr"); extern const uint8_t u8g2_font_lucasarts_scumm_subtitle_r_tn[] U8G2_FONT_SECTION("u8g2_font_lucasarts_scumm_subtitle_r_tn"); extern const uint8_t u8g2_font_fub11_tf[] U8G2_FONT_SECTION("u8g2_font_fub11_tf"); extern const uint8_t u8g2_font_fub11_tr[] U8G2_FONT_SECTION("u8g2_font_fub11_tr"); extern const uint8_t u8g2_font_fub11_tn[] U8G2_FONT_SECTION("u8g2_font_fub11_tn"); extern const uint8_t u8g2_font_fub14_tf[] U8G2_FONT_SECTION("u8g2_font_fub14_tf"); extern const uint8_t u8g2_font_fub14_tr[] U8G2_FONT_SECTION("u8g2_font_fub14_tr"); extern const uint8_t u8g2_font_fub14_tn[] U8G2_FONT_SECTION("u8g2_font_fub14_tn"); extern const uint8_t u8g2_font_fub17_tf[] U8G2_FONT_SECTION("u8g2_font_fub17_tf"); extern const uint8_t u8g2_font_fub17_tr[] U8G2_FONT_SECTION("u8g2_font_fub17_tr"); extern const uint8_t u8g2_font_fub17_tn[] U8G2_FONT_SECTION("u8g2_font_fub17_tn"); extern const uint8_t u8g2_font_fub20_tf[] U8G2_FONT_SECTION("u8g2_font_fub20_tf"); extern const uint8_t u8g2_font_fub20_tr[] U8G2_FONT_SECTION("u8g2_font_fub20_tr"); extern const uint8_t u8g2_font_fub20_tn[] U8G2_FONT_SECTION("u8g2_font_fub20_tn"); extern const uint8_t u8g2_font_fub25_tf[] U8G2_FONT_SECTION("u8g2_font_fub25_tf"); extern const uint8_t u8g2_font_fub25_tr[] U8G2_FONT_SECTION("u8g2_font_fub25_tr"); extern const uint8_t u8g2_font_fub25_tn[] U8G2_FONT_SECTION("u8g2_font_fub25_tn"); extern const uint8_t u8g2_font_fub30_tf[] U8G2_FONT_SECTION("u8g2_font_fub30_tf"); extern const uint8_t u8g2_font_fub30_tr[] U8G2_FONT_SECTION("u8g2_font_fub30_tr"); extern const uint8_t u8g2_font_fub30_tn[] U8G2_FONT_SECTION("u8g2_font_fub30_tn"); extern const uint8_t u8g2_font_fub35_tf[] U8G2_FONT_SECTION("u8g2_font_fub35_tf"); extern const uint8_t u8g2_font_fub35_tr[] U8G2_FONT_SECTION("u8g2_font_fub35_tr"); extern const uint8_t u8g2_font_fub35_tn[] U8G2_FONT_SECTION("u8g2_font_fub35_tn"); extern const uint8_t u8g2_font_fub42_tf[] U8G2_FONT_SECTION("u8g2_font_fub42_tf"); extern const uint8_t u8g2_font_fub42_tr[] U8G2_FONT_SECTION("u8g2_font_fub42_tr"); extern const uint8_t u8g2_font_fub42_tn[] U8G2_FONT_SECTION("u8g2_font_fub42_tn"); extern const uint8_t u8g2_font_fub49_tn[] U8G2_FONT_SECTION("u8g2_font_fub49_tn"); extern const uint8_t u8g2_font_fub11_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub11_t_symbol"); extern const uint8_t u8g2_font_fub14_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub14_t_symbol"); extern const uint8_t u8g2_font_fub17_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub17_t_symbol"); extern const uint8_t u8g2_font_fub20_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub20_t_symbol"); extern const uint8_t u8g2_font_fub25_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub25_t_symbol"); extern const uint8_t u8g2_font_fub30_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub30_t_symbol"); extern const uint8_t u8g2_font_fub35_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub35_t_symbol"); extern const uint8_t u8g2_font_fub42_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub42_t_symbol"); extern const uint8_t u8g2_font_fub49_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fub49_t_symbol"); extern const uint8_t u8g2_font_fur11_tf[] U8G2_FONT_SECTION("u8g2_font_fur11_tf"); extern const uint8_t u8g2_font_fur11_tr[] U8G2_FONT_SECTION("u8g2_font_fur11_tr"); extern const uint8_t u8g2_font_fur11_tn[] U8G2_FONT_SECTION("u8g2_font_fur11_tn"); extern const uint8_t u8g2_font_fur14_tf[] U8G2_FONT_SECTION("u8g2_font_fur14_tf"); extern const uint8_t u8g2_font_fur14_tr[] U8G2_FONT_SECTION("u8g2_font_fur14_tr"); extern const uint8_t u8g2_font_fur14_tn[] U8G2_FONT_SECTION("u8g2_font_fur14_tn"); extern const uint8_t u8g2_font_fur17_tf[] U8G2_FONT_SECTION("u8g2_font_fur17_tf"); extern const uint8_t u8g2_font_fur17_tr[] U8G2_FONT_SECTION("u8g2_font_fur17_tr"); extern const uint8_t u8g2_font_fur17_tn[] U8G2_FONT_SECTION("u8g2_font_fur17_tn"); extern const uint8_t u8g2_font_fur20_tf[] U8G2_FONT_SECTION("u8g2_font_fur20_tf"); extern const uint8_t u8g2_font_fur20_tr[] U8G2_FONT_SECTION("u8g2_font_fur20_tr"); extern const uint8_t u8g2_font_fur20_tn[] U8G2_FONT_SECTION("u8g2_font_fur20_tn"); extern const uint8_t u8g2_font_fur25_tf[] U8G2_FONT_SECTION("u8g2_font_fur25_tf"); extern const uint8_t u8g2_font_fur25_tr[] U8G2_FONT_SECTION("u8g2_font_fur25_tr"); extern const uint8_t u8g2_font_fur25_tn[] U8G2_FONT_SECTION("u8g2_font_fur25_tn"); extern const uint8_t u8g2_font_fur30_tf[] U8G2_FONT_SECTION("u8g2_font_fur30_tf"); extern const uint8_t u8g2_font_fur30_tr[] U8G2_FONT_SECTION("u8g2_font_fur30_tr"); extern const uint8_t u8g2_font_fur30_tn[] U8G2_FONT_SECTION("u8g2_font_fur30_tn"); extern const uint8_t u8g2_font_fur35_tf[] U8G2_FONT_SECTION("u8g2_font_fur35_tf"); extern const uint8_t u8g2_font_fur35_tr[] U8G2_FONT_SECTION("u8g2_font_fur35_tr"); extern const uint8_t u8g2_font_fur35_tn[] U8G2_FONT_SECTION("u8g2_font_fur35_tn"); extern const uint8_t u8g2_font_fur42_tf[] U8G2_FONT_SECTION("u8g2_font_fur42_tf"); extern const uint8_t u8g2_font_fur42_tr[] U8G2_FONT_SECTION("u8g2_font_fur42_tr"); extern const uint8_t u8g2_font_fur42_tn[] U8G2_FONT_SECTION("u8g2_font_fur42_tn"); extern const uint8_t u8g2_font_fur49_tn[] U8G2_FONT_SECTION("u8g2_font_fur49_tn"); extern const uint8_t u8g2_font_fur11_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur11_t_symbol"); extern const uint8_t u8g2_font_fur14_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur14_t_symbol"); extern const uint8_t u8g2_font_fur17_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur17_t_symbol"); extern const uint8_t u8g2_font_fur20_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur20_t_symbol"); extern const uint8_t u8g2_font_fur25_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur25_t_symbol"); extern const uint8_t u8g2_font_fur30_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur30_t_symbol"); extern const uint8_t u8g2_font_fur35_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur35_t_symbol"); extern const uint8_t u8g2_font_fur42_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur42_t_symbol"); extern const uint8_t u8g2_font_fur49_t_symbol[] U8G2_FONT_SECTION("u8g2_font_fur49_t_symbol"); extern const uint8_t u8g2_font_osb18_tf[] U8G2_FONT_SECTION("u8g2_font_osb18_tf"); extern const uint8_t u8g2_font_osb18_tr[] U8G2_FONT_SECTION("u8g2_font_osb18_tr"); extern const uint8_t u8g2_font_osb18_tn[] U8G2_FONT_SECTION("u8g2_font_osb18_tn"); extern const uint8_t u8g2_font_osb21_tf[] U8G2_FONT_SECTION("u8g2_font_osb21_tf"); extern const uint8_t u8g2_font_osb21_tr[] U8G2_FONT_SECTION("u8g2_font_osb21_tr"); extern const uint8_t u8g2_font_osb21_tn[] U8G2_FONT_SECTION("u8g2_font_osb21_tn"); extern const uint8_t u8g2_font_osb26_tf[] U8G2_FONT_SECTION("u8g2_font_osb26_tf"); extern const uint8_t u8g2_font_osb26_tr[] U8G2_FONT_SECTION("u8g2_font_osb26_tr"); extern const uint8_t u8g2_font_osb26_tn[] U8G2_FONT_SECTION("u8g2_font_osb26_tn"); extern const uint8_t u8g2_font_osb29_tf[] U8G2_FONT_SECTION("u8g2_font_osb29_tf"); extern const uint8_t u8g2_font_osb29_tr[] U8G2_FONT_SECTION("u8g2_font_osb29_tr"); extern const uint8_t u8g2_font_osb29_tn[] U8G2_FONT_SECTION("u8g2_font_osb29_tn"); extern const uint8_t u8g2_font_osb35_tf[] U8G2_FONT_SECTION("u8g2_font_osb35_tf"); extern const uint8_t u8g2_font_osb35_tr[] U8G2_FONT_SECTION("u8g2_font_osb35_tr"); extern const uint8_t u8g2_font_osb35_tn[] U8G2_FONT_SECTION("u8g2_font_osb35_tn"); extern const uint8_t u8g2_font_osb41_tf[] U8G2_FONT_SECTION("u8g2_font_osb41_tf"); extern const uint8_t u8g2_font_osb41_tr[] U8G2_FONT_SECTION("u8g2_font_osb41_tr"); extern const uint8_t u8g2_font_osb41_tn[] U8G2_FONT_SECTION("u8g2_font_osb41_tn"); extern const uint8_t u8g2_font_osr18_tf[] U8G2_FONT_SECTION("u8g2_font_osr18_tf"); extern const uint8_t u8g2_font_osr18_tr[] U8G2_FONT_SECTION("u8g2_font_osr18_tr"); extern const uint8_t u8g2_font_osr18_tn[] U8G2_FONT_SECTION("u8g2_font_osr18_tn"); extern const uint8_t u8g2_font_osr21_tf[] U8G2_FONT_SECTION("u8g2_font_osr21_tf"); extern const uint8_t u8g2_font_osr21_tr[] U8G2_FONT_SECTION("u8g2_font_osr21_tr"); extern const uint8_t u8g2_font_osr21_tn[] U8G2_FONT_SECTION("u8g2_font_osr21_tn"); extern const uint8_t u8g2_font_osr26_tf[] U8G2_FONT_SECTION("u8g2_font_osr26_tf"); extern const uint8_t u8g2_font_osr26_tr[] U8G2_FONT_SECTION("u8g2_font_osr26_tr"); extern const uint8_t u8g2_font_osr26_tn[] U8G2_FONT_SECTION("u8g2_font_osr26_tn"); extern const uint8_t u8g2_font_osr29_tf[] U8G2_FONT_SECTION("u8g2_font_osr29_tf"); extern const uint8_t u8g2_font_osr29_tr[] U8G2_FONT_SECTION("u8g2_font_osr29_tr"); extern const uint8_t u8g2_font_osr29_tn[] U8G2_FONT_SECTION("u8g2_font_osr29_tn"); extern const uint8_t u8g2_font_osr35_tf[] U8G2_FONT_SECTION("u8g2_font_osr35_tf"); extern const uint8_t u8g2_font_osr35_tr[] U8G2_FONT_SECTION("u8g2_font_osr35_tr"); extern const uint8_t u8g2_font_osr35_tn[] U8G2_FONT_SECTION("u8g2_font_osr35_tn"); extern const uint8_t u8g2_font_osr41_tf[] U8G2_FONT_SECTION("u8g2_font_osr41_tf"); extern const uint8_t u8g2_font_osr41_tr[] U8G2_FONT_SECTION("u8g2_font_osr41_tr"); extern const uint8_t u8g2_font_osr41_tn[] U8G2_FONT_SECTION("u8g2_font_osr41_tn"); extern const uint8_t u8g2_font_inr16_mf[] U8G2_FONT_SECTION("u8g2_font_inr16_mf"); extern const uint8_t u8g2_font_inr16_mr[] U8G2_FONT_SECTION("u8g2_font_inr16_mr"); extern const uint8_t u8g2_font_inr16_mn[] U8G2_FONT_SECTION("u8g2_font_inr16_mn"); extern const uint8_t u8g2_font_inr19_mf[] U8G2_FONT_SECTION("u8g2_font_inr19_mf"); extern const uint8_t u8g2_font_inr19_mr[] U8G2_FONT_SECTION("u8g2_font_inr19_mr"); extern const uint8_t u8g2_font_inr19_mn[] U8G2_FONT_SECTION("u8g2_font_inr19_mn"); extern const uint8_t u8g2_font_inr21_mf[] U8G2_FONT_SECTION("u8g2_font_inr21_mf"); extern const uint8_t u8g2_font_inr21_mr[] U8G2_FONT_SECTION("u8g2_font_inr21_mr"); extern const uint8_t u8g2_font_inr21_mn[] U8G2_FONT_SECTION("u8g2_font_inr21_mn"); extern const uint8_t u8g2_font_inr24_mf[] U8G2_FONT_SECTION("u8g2_font_inr24_mf"); extern const uint8_t u8g2_font_inr24_mr[] U8G2_FONT_SECTION("u8g2_font_inr24_mr"); extern const uint8_t u8g2_font_inr24_mn[] U8G2_FONT_SECTION("u8g2_font_inr24_mn"); extern const uint8_t u8g2_font_inr24_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr24_t_cyrillic"); extern const uint8_t u8g2_font_inr27_mf[] U8G2_FONT_SECTION("u8g2_font_inr27_mf"); extern const uint8_t u8g2_font_inr27_mr[] U8G2_FONT_SECTION("u8g2_font_inr27_mr"); extern const uint8_t u8g2_font_inr27_mn[] U8G2_FONT_SECTION("u8g2_font_inr27_mn"); extern const uint8_t u8g2_font_inr27_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr27_t_cyrillic"); extern const uint8_t u8g2_font_inr30_mf[] U8G2_FONT_SECTION("u8g2_font_inr30_mf"); extern const uint8_t u8g2_font_inr30_mr[] U8G2_FONT_SECTION("u8g2_font_inr30_mr"); extern const uint8_t u8g2_font_inr30_mn[] U8G2_FONT_SECTION("u8g2_font_inr30_mn"); extern const uint8_t u8g2_font_inr30_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr30_t_cyrillic"); extern const uint8_t u8g2_font_inr33_mf[] U8G2_FONT_SECTION("u8g2_font_inr33_mf"); extern const uint8_t u8g2_font_inr33_mr[] U8G2_FONT_SECTION("u8g2_font_inr33_mr"); extern const uint8_t u8g2_font_inr33_mn[] U8G2_FONT_SECTION("u8g2_font_inr33_mn"); extern const uint8_t u8g2_font_inr33_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr33_t_cyrillic"); extern const uint8_t u8g2_font_inr38_mf[] U8G2_FONT_SECTION("u8g2_font_inr38_mf"); extern const uint8_t u8g2_font_inr38_mr[] U8G2_FONT_SECTION("u8g2_font_inr38_mr"); extern const uint8_t u8g2_font_inr38_mn[] U8G2_FONT_SECTION("u8g2_font_inr38_mn"); extern const uint8_t u8g2_font_inr38_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr38_t_cyrillic"); extern const uint8_t u8g2_font_inr42_mf[] U8G2_FONT_SECTION("u8g2_font_inr42_mf"); extern const uint8_t u8g2_font_inr42_mr[] U8G2_FONT_SECTION("u8g2_font_inr42_mr"); extern const uint8_t u8g2_font_inr42_mn[] U8G2_FONT_SECTION("u8g2_font_inr42_mn"); extern const uint8_t u8g2_font_inr42_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr42_t_cyrillic"); extern const uint8_t u8g2_font_inr46_mf[] U8G2_FONT_SECTION("u8g2_font_inr46_mf"); extern const uint8_t u8g2_font_inr46_mr[] U8G2_FONT_SECTION("u8g2_font_inr46_mr"); extern const uint8_t u8g2_font_inr46_mn[] U8G2_FONT_SECTION("u8g2_font_inr46_mn"); extern const uint8_t u8g2_font_inr46_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr46_t_cyrillic"); extern const uint8_t u8g2_font_inr49_mf[] U8G2_FONT_SECTION("u8g2_font_inr49_mf"); extern const uint8_t u8g2_font_inr49_mr[] U8G2_FONT_SECTION("u8g2_font_inr49_mr"); extern const uint8_t u8g2_font_inr49_mn[] U8G2_FONT_SECTION("u8g2_font_inr49_mn"); extern const uint8_t u8g2_font_inr49_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr49_t_cyrillic"); extern const uint8_t u8g2_font_inr53_mf[] U8G2_FONT_SECTION("u8g2_font_inr53_mf"); extern const uint8_t u8g2_font_inr53_mr[] U8G2_FONT_SECTION("u8g2_font_inr53_mr"); extern const uint8_t u8g2_font_inr53_mn[] U8G2_FONT_SECTION("u8g2_font_inr53_mn"); extern const uint8_t u8g2_font_inr53_t_cyrillic[] U8G2_FONT_SECTION("u8g2_font_inr53_t_cyrillic"); extern const uint8_t u8g2_font_inr57_mn[] U8G2_FONT_SECTION("u8g2_font_inr57_mn"); extern const uint8_t u8g2_font_inr62_mn[] U8G2_FONT_SECTION("u8g2_font_inr62_mn"); extern const uint8_t u8g2_font_inb16_mf[] U8G2_FONT_SECTION("u8g2_font_inb16_mf"); extern const uint8_t u8g2_font_inb16_mr[] U8G2_FONT_SECTION("u8g2_font_inb16_mr"); extern const uint8_t u8g2_font_inb16_mn[] U8G2_FONT_SECTION("u8g2_font_inb16_mn"); extern const uint8_t u8g2_font_inb19_mf[] U8G2_FONT_SECTION("u8g2_font_inb19_mf"); extern const uint8_t u8g2_font_inb19_mr[] U8G2_FONT_SECTION("u8g2_font_inb19_mr"); extern const uint8_t u8g2_font_inb19_mn[] U8G2_FONT_SECTION("u8g2_font_inb19_mn"); extern const uint8_t u8g2_font_inb21_mf[] U8G2_FONT_SECTION("u8g2_font_inb21_mf"); extern const uint8_t u8g2_font_inb21_mr[] U8G2_FONT_SECTION("u8g2_font_inb21_mr"); extern const uint8_t u8g2_font_inb21_mn[] U8G2_FONT_SECTION("u8g2_font_inb21_mn"); extern const uint8_t u8g2_font_inb24_mf[] U8G2_FONT_SECTION("u8g2_font_inb24_mf"); extern const uint8_t u8g2_font_inb24_mr[] U8G2_FONT_SECTION("u8g2_font_inb24_mr"); extern const uint8_t u8g2_font_inb24_mn[] U8G2_FONT_SECTION("u8g2_font_inb24_mn"); extern const uint8_t u8g2_font_inb27_mf[] U8G2_FONT_SECTION("u8g2_font_inb27_mf"); extern const uint8_t u8g2_font_inb27_mr[] U8G2_FONT_SECTION("u8g2_font_inb27_mr"); extern const uint8_t u8g2_font_inb27_mn[] U8G2_FONT_SECTION("u8g2_font_inb27_mn"); extern const uint8_t u8g2_font_inb30_mf[] U8G2_FONT_SECTION("u8g2_font_inb30_mf"); extern const uint8_t u8g2_font_inb30_mr[] U8G2_FONT_SECTION("u8g2_font_inb30_mr"); extern const uint8_t u8g2_font_inb30_mn[] U8G2_FONT_SECTION("u8g2_font_inb30_mn"); extern const uint8_t u8g2_font_inb33_mf[] U8G2_FONT_SECTION("u8g2_font_inb33_mf"); extern const uint8_t u8g2_font_inb33_mr[] U8G2_FONT_SECTION("u8g2_font_inb33_mr"); extern const uint8_t u8g2_font_inb33_mn[] U8G2_FONT_SECTION("u8g2_font_inb33_mn"); extern const uint8_t u8g2_font_inb38_mf[] U8G2_FONT_SECTION("u8g2_font_inb38_mf"); extern const uint8_t u8g2_font_inb38_mr[] U8G2_FONT_SECTION("u8g2_font_inb38_mr"); extern const uint8_t u8g2_font_inb38_mn[] U8G2_FONT_SECTION("u8g2_font_inb38_mn"); extern const uint8_t u8g2_font_inb42_mf[] U8G2_FONT_SECTION("u8g2_font_inb42_mf"); extern const uint8_t u8g2_font_inb42_mr[] U8G2_FONT_SECTION("u8g2_font_inb42_mr"); extern const uint8_t u8g2_font_inb42_mn[] U8G2_FONT_SECTION("u8g2_font_inb42_mn"); extern const uint8_t u8g2_font_inb46_mf[] U8G2_FONT_SECTION("u8g2_font_inb46_mf"); extern const uint8_t u8g2_font_inb46_mr[] U8G2_FONT_SECTION("u8g2_font_inb46_mr"); extern const uint8_t u8g2_font_inb46_mn[] U8G2_FONT_SECTION("u8g2_font_inb46_mn"); extern const uint8_t u8g2_font_inb49_mf[] U8G2_FONT_SECTION("u8g2_font_inb49_mf"); extern const uint8_t u8g2_font_inb49_mr[] U8G2_FONT_SECTION("u8g2_font_inb49_mr"); extern const uint8_t u8g2_font_inb49_mn[] U8G2_FONT_SECTION("u8g2_font_inb49_mn"); extern const uint8_t u8g2_font_inb53_mf[] U8G2_FONT_SECTION("u8g2_font_inb53_mf"); extern const uint8_t u8g2_font_inb53_mr[] U8G2_FONT_SECTION("u8g2_font_inb53_mr"); extern const uint8_t u8g2_font_inb53_mn[] U8G2_FONT_SECTION("u8g2_font_inb53_mn"); extern const uint8_t u8g2_font_inb57_mn[] U8G2_FONT_SECTION("u8g2_font_inb57_mn"); extern const uint8_t u8g2_font_inb63_mn[] U8G2_FONT_SECTION("u8g2_font_inb63_mn"); extern const uint8_t u8g2_font_logisoso16_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso16_tf"); extern const uint8_t u8g2_font_logisoso16_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso16_tr"); extern const uint8_t u8g2_font_logisoso16_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso16_tn"); extern const uint8_t u8g2_font_logisoso18_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso18_tf"); extern const uint8_t u8g2_font_logisoso18_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso18_tr"); extern const uint8_t u8g2_font_logisoso18_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso18_tn"); extern const uint8_t u8g2_font_logisoso20_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso20_tf"); extern const uint8_t u8g2_font_logisoso20_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso20_tr"); extern const uint8_t u8g2_font_logisoso20_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso20_tn"); extern const uint8_t u8g2_font_logisoso22_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso22_tf"); extern const uint8_t u8g2_font_logisoso22_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso22_tr"); extern const uint8_t u8g2_font_logisoso22_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso22_tn"); extern const uint8_t u8g2_font_logisoso24_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso24_tf"); extern const uint8_t u8g2_font_logisoso24_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso24_tr"); extern const uint8_t u8g2_font_logisoso24_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso24_tn"); extern const uint8_t u8g2_font_logisoso26_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso26_tf"); extern const uint8_t u8g2_font_logisoso26_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso26_tr"); extern const uint8_t u8g2_font_logisoso26_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso26_tn"); extern const uint8_t u8g2_font_logisoso28_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso28_tf"); extern const uint8_t u8g2_font_logisoso28_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso28_tr"); extern const uint8_t u8g2_font_logisoso28_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso28_tn"); extern const uint8_t u8g2_font_logisoso30_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso30_tf"); extern const uint8_t u8g2_font_logisoso30_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso30_tr"); extern const uint8_t u8g2_font_logisoso30_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso30_tn"); extern const uint8_t u8g2_font_logisoso32_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso32_tf"); extern const uint8_t u8g2_font_logisoso32_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso32_tr"); extern const uint8_t u8g2_font_logisoso32_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso32_tn"); extern const uint8_t u8g2_font_logisoso34_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso34_tf"); extern const uint8_t u8g2_font_logisoso34_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso34_tr"); extern const uint8_t u8g2_font_logisoso34_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso34_tn"); extern const uint8_t u8g2_font_logisoso38_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso38_tf"); extern const uint8_t u8g2_font_logisoso38_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso38_tr"); extern const uint8_t u8g2_font_logisoso38_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso38_tn"); extern const uint8_t u8g2_font_logisoso42_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso42_tf"); extern const uint8_t u8g2_font_logisoso42_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso42_tr"); extern const uint8_t u8g2_font_logisoso42_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso42_tn"); extern const uint8_t u8g2_font_logisoso46_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso46_tf"); extern const uint8_t u8g2_font_logisoso46_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso46_tr"); extern const uint8_t u8g2_font_logisoso46_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso46_tn"); extern const uint8_t u8g2_font_logisoso50_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso50_tf"); extern const uint8_t u8g2_font_logisoso50_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso50_tr"); extern const uint8_t u8g2_font_logisoso50_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso50_tn"); extern const uint8_t u8g2_font_logisoso54_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso54_tf"); extern const uint8_t u8g2_font_logisoso54_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso54_tr"); extern const uint8_t u8g2_font_logisoso54_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso54_tn"); extern const uint8_t u8g2_font_logisoso58_tf[] U8G2_FONT_SECTION("u8g2_font_logisoso58_tf"); extern const uint8_t u8g2_font_logisoso58_tr[] U8G2_FONT_SECTION("u8g2_font_logisoso58_tr"); extern const uint8_t u8g2_font_logisoso58_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso58_tn"); extern const uint8_t u8g2_font_logisoso62_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso62_tn"); extern const uint8_t u8g2_font_logisoso78_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso78_tn"); extern const uint8_t u8g2_font_logisoso92_tn[] U8G2_FONT_SECTION("u8g2_font_logisoso92_tn"); extern const uint8_t u8g2_font_pressstart2p_8f[] U8G2_FONT_SECTION("u8g2_font_pressstart2p_8f"); extern const uint8_t u8g2_font_pressstart2p_8r[] U8G2_FONT_SECTION("u8g2_font_pressstart2p_8r"); extern const uint8_t u8g2_font_pressstart2p_8n[] U8G2_FONT_SECTION("u8g2_font_pressstart2p_8n"); extern const uint8_t u8g2_font_pressstart2p_8u[] U8G2_FONT_SECTION("u8g2_font_pressstart2p_8u"); extern const uint8_t u8g2_font_pcsenior_8f[] U8G2_FONT_SECTION("u8g2_font_pcsenior_8f"); extern const uint8_t u8g2_font_pcsenior_8r[] U8G2_FONT_SECTION("u8g2_font_pcsenior_8r"); extern const uint8_t u8g2_font_pcsenior_8n[] U8G2_FONT_SECTION("u8g2_font_pcsenior_8n"); extern const uint8_t u8g2_font_pcsenior_8u[] U8G2_FONT_SECTION("u8g2_font_pcsenior_8u"); extern const uint8_t u8g2_font_pxplusibmcgathin_8f[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcgathin_8f"); extern const uint8_t u8g2_font_pxplusibmcgathin_8r[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcgathin_8r"); extern const uint8_t u8g2_font_pxplusibmcgathin_8n[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcgathin_8n"); extern const uint8_t u8g2_font_pxplusibmcgathin_8u[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcgathin_8u"); extern const uint8_t u8g2_font_pxplusibmcga_8f[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcga_8f"); extern const uint8_t u8g2_font_pxplusibmcga_8r[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcga_8r"); extern const uint8_t u8g2_font_pxplusibmcga_8n[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcga_8n"); extern const uint8_t u8g2_font_pxplusibmcga_8u[] U8G2_FONT_SECTION("u8g2_font_pxplusibmcga_8u"); extern const uint8_t u8g2_font_pxplustandynewtv_8f[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_8f"); extern const uint8_t u8g2_font_pxplustandynewtv_8r[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_8r"); extern const uint8_t u8g2_font_pxplustandynewtv_8n[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_8n"); extern const uint8_t u8g2_font_pxplustandynewtv_8u[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_8u"); extern const uint8_t u8g2_font_pxplustandynewtv_t_all[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_t_all"); extern const uint8_t u8g2_font_pxplustandynewtv_8_all[] U8G2_FONT_SECTION("u8g2_font_pxplustandynewtv_8_all"); extern const uint8_t u8g2_font_pxplusibmvga9_tf[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_tf"); extern const uint8_t u8g2_font_pxplusibmvga9_tr[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_tr"); extern const uint8_t u8g2_font_pxplusibmvga9_tn[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_tn"); extern const uint8_t u8g2_font_pxplusibmvga9_mf[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_mf"); extern const uint8_t u8g2_font_pxplusibmvga9_mr[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_mr"); extern const uint8_t u8g2_font_pxplusibmvga9_mn[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_mn"); extern const uint8_t u8g2_font_pxplusibmvga9_t_all[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_t_all"); extern const uint8_t u8g2_font_pxplusibmvga9_m_all[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_m_all"); extern const uint8_t u8g2_font_pxplusibmvga8_tf[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_tf"); extern const uint8_t u8g2_font_pxplusibmvga8_tr[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_tr"); extern const uint8_t u8g2_font_pxplusibmvga8_tn[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_tn"); extern const uint8_t u8g2_font_pxplusibmvga8_mf[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_mf"); extern const uint8_t u8g2_font_pxplusibmvga8_mr[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_mr"); extern const uint8_t u8g2_font_pxplusibmvga8_mn[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_mn"); extern const uint8_t u8g2_font_pxplusibmvga8_t_all[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_t_all"); extern const uint8_t u8g2_font_pxplusibmvga8_m_all[] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga8_m_all"); extern const uint8_t u8g2_font_px437wyse700a_tf[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_tf"); extern const uint8_t u8g2_font_px437wyse700a_tr[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_tr"); extern const uint8_t u8g2_font_px437wyse700a_tn[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_tn"); extern const uint8_t u8g2_font_px437wyse700a_mf[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_mf"); extern const uint8_t u8g2_font_px437wyse700a_mr[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_mr"); extern const uint8_t u8g2_font_px437wyse700a_mn[] U8G2_FONT_SECTION("u8g2_font_px437wyse700a_mn"); extern const uint8_t u8g2_font_px437wyse700b_tf[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_tf"); extern const uint8_t u8g2_font_px437wyse700b_tr[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_tr"); extern const uint8_t u8g2_font_px437wyse700b_tn[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_tn"); extern const uint8_t u8g2_font_px437wyse700b_mf[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mf"); extern const uint8_t u8g2_font_px437wyse700b_mr[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mr"); extern const uint8_t u8g2_font_px437wyse700b_mn[] U8G2_FONT_SECTION("u8g2_font_px437wyse700b_mn"); /* end font list */ /*==========================================*/ /* u8g font mapping, might be incomplete.... */ #define u8g_font_10x20 u8g2_font_10x20_tf #define u8g_font_10x20r u8g2_font_10x20_tr #define u8g_font_4x6 u8g2_font_4x6_tf #define u8g_font_4x6r u8g2_font_4x6_tr #define u8g_font_5x7 u8g2_font_5x7_tf #define u8g_font_5x7r u8g2_font_5x7_tr #define u8g_font_5x8 u8g2_font_5x8_tf #define u8g_font_5x8r u8g2_font_5x8_tr #define u8g_font_6x10 u8g2_font_6x10_tf #define u8g_font_6x10r u8g2_font_6x10_tr #define u8g_font_6x12 u8g2_font_6x12_tf #define u8g_font_6x12r u8g2_font_6x12_tr #define u8g_font_6x13B u8g2_font_6x13B_tf #define u8g_font_6x13Br u8g2_font_6x13B_tr #define u8g_font_6x13 u8g2_font_6x13_tf #define u8g_font_6x13r u8g2_font_6x13_tr #define u8g_font_6x13O u8g2_font_6x13O_tf #define u8g_font_6x13Or u8g2_font_6x13O_tr #define u8g_font_7x13B u8g2_font_7x13B_tf #define u8g_font_7x13Br u8g2_font_7x13B_tr #define u8g_font_7x13 u8g2_font_7x13_tf #define u8g_font_7x13r u8g2_font_7x13_tr #define u8g_font_7x13O u8g2_font_7x13O_tf #define u8g_font_7x13Or u8g2_font_7x13O_tr #define u8g_font_7x14B u8g2_font_7x14B_tf #define u8g_font_7x14Br u8g2_font_7x14B_tr #define u8g_font_7x14 u8g2_font_7x14_tf #define u8g_font_7x14r u8g2_font_7x14_tr #define u8g_font_8x13B u8g2_font_8x13B_tf #define u8g_font_8x13Br u8g2_font_8x13B_tr #define u8g_font_8x13 u8g2_font_8x13_tf #define u8g_font_8x13r u8g2_font_8x13_tr #define u8g_font_8x13O u8g2_font_8x13O_tf #define u8g_font_8x13Or u8g2_font_8x13O_tr #define u8g_font_9x15B u8g2_font_9x15B_tf #define u8g_font_9x15Br u8g2_font_9x15B_tr #define u8g_font_9x15 u8g2_font_9x15_tf #define u8g_font_9x15r u8g2_font_9x15_tr #define u8g_font_9x18B u8g2_font_9x18B_tf #define u8g_font_9x18 u8g2_font_9x18_tf #define u8g_font_9x18Br u8g2_font_9x18B_tr #define u8g_font_9x18r u8g2_font_9x18_tr #define u8g_font_cu12 u8g2_font_cu12_tf #define u8g_font_micro u8g2_font_micro_tf #define u8g_font_unifont u8g2_font_unifont_t_latin #define u8g_font_unifontr u8g2_font_unifont_t_latin #define u8g_font_courB08 u8g2_font_courB08_tf #define u8g_font_courB08r u8g2_font_courB08_tr #define u8g_font_courB10 u8g2_font_courB10_tf #define u8g_font_courB10r u8g2_font_courB10_tr #define u8g_font_courB12 u8g2_font_courB12_tf #define u8g_font_courB12r u8g2_font_courB12_tr #define u8g_font_courB14 u8g2_font_courB14_tf #define u8g_font_courB14r u8g2_font_courB14_tr #define u8g_font_courB18 u8g2_font_courB18_tf #define u8g_font_courB18r u8g2_font_courB18_tr #define u8g_font_courB24 u8g2_font_courB24_tf #define u8g_font_courB24r u8g2_font_courB24_tr #define u8g_font_courB24n u8g2_font_courB24_tn #define u8g_font_courR08 u8g2_font_courR08_tf #define u8g_font_courR08r u8g2_font_courR08_tr #define u8g_font_courR10 u8g2_font_courR10_tf #define u8g_font_courR10r u8g2_font_courR10_tr #define u8g_font_courR12 u8g2_font_courR12_tf #define u8g_font_courR12r u8g2_font_courR12_tr #define u8g_font_courR14 u8g2_font_courR14_tf #define u8g_font_courR14r u8g2_font_courR14_tr #define u8g_font_courR18 u8g2_font_courR18_tf #define u8g_font_courR18r u8g2_font_courR18_tr #define u8g_font_courR24 u8g2_font_courR24_tf #define u8g_font_courR24r u8g2_font_courR24_tr #define u8g_font_courR24n u8g2_font_courR24_tn #define u8g_font_helvB08 u8g2_font_helvB08_tf #define u8g_font_helvB08r u8g2_font_helvB08_tr #define u8g_font_helvB08n u8g2_font_helvB08_tn #define u8g_font_helvB10 u8g2_font_helvB10_tf #define u8g_font_helvB10r u8g2_font_helvB10_tr #define u8g_font_helvB10n u8g2_font_helvB10_tn #define u8g_font_helvB12 u8g2_font_helvB12_tf #define u8g_font_helvB12r u8g2_font_helvB12_tr #define u8g_font_helvB12n u8g2_font_helvB12_tn #define u8g_font_helvB14 u8g2_font_helvB14_tf #define u8g_font_helvB14r u8g2_font_helvB14_tr #define u8g_font_helvB14n u8g2_font_helvB14_tn #define u8g_font_helvB18 u8g2_font_helvB18_tf #define u8g_font_helvB18r u8g2_font_helvB18_tr #define u8g_font_helvB18n u8g2_font_helvB18_tn #define u8g_font_helvB24 u8g2_font_helvB24_tf #define u8g_font_helvB24r u8g2_font_helvB24_tr #define u8g_font_helvB24n u8g2_font_helvB24_tn #define u8g_font_helvR08 u8g2_font_helvR08_tf #define u8g_font_helvR08r u8g2_font_helvR08_tr #define u8g_font_helvR08n u8g2_font_helvR08_tn #define u8g_font_helvR10 u8g2_font_helvR10_tf #define u8g_font_helvR10r u8g2_font_helvR10_tr #define u8g_font_helvR10n u8g2_font_helvR10_tn #define u8g_font_helvR12 u8g2_font_helvR12_tf #define u8g_font_helvR12r u8g2_font_helvR12_tr #define u8g_font_helvR12n u8g2_font_helvR12_tn #define u8g_font_helvR14 u8g2_font_helvR14_tf #define u8g_font_helvR14r u8g2_font_helvR14_tr #define u8g_font_helvR14n u8g2_font_helvR14_tn #define u8g_font_helvR18 u8g2_font_helvR18_tf #define u8g_font_helvR18r u8g2_font_helvR18_tr #define u8g_font_helvR18n u8g2_font_helvR18_tn #define u8g_font_helvR24 u8g2_font_helvR24_tf #define u8g_font_helvR24r u8g2_font_helvR24_tr #define u8g_font_helvR24n u8g2_font_helvR24_tn #define u8g_font_ncenB08 u8g2_font_ncenB08_tf #define u8g_font_ncenB08r u8g2_font_ncenB08_tr #define u8g_font_ncenB10 u8g2_font_ncenB10_tf #define u8g_font_ncenB10r u8g2_font_ncenB10_tr #define u8g_font_ncenB12 u8g2_font_ncenB12_tf #define u8g_font_ncenB12r u8g2_font_ncenB12_tr #define u8g_font_ncenB14 u8g2_font_ncenB14_tf #define u8g_font_ncenB14r u8g2_font_ncenB14_tr #define u8g_font_ncenB18 u8g2_font_ncenB18_tf #define u8g_font_ncenB18r u8g2_font_ncenB18_tr #define u8g_font_ncenB24 u8g2_font_ncenB24_tf #define u8g_font_ncenB24r u8g2_font_ncenB24_tr #define u8g_font_ncenB24n u8g2_font_ncenB24_tn #define u8g_font_ncenR08 u8g2_font_ncenR08_tf #define u8g_font_ncenR08r u8g2_font_ncenR08_tr #define u8g_font_ncenR10 u8g2_font_ncenR10_tf #define u8g_font_ncenR10r u8g2_font_ncenR10_tr #define u8g_font_ncenR12 u8g2_font_ncenR12_tf #define u8g_font_ncenR12r u8g2_font_ncenR12_tr #define u8g_font_ncenR14 u8g2_font_ncenR14_tf #define u8g_font_ncenR14r u8g2_font_ncenR14_tr #define u8g_font_ncenR18 u8g2_font_ncenR18_tf #define u8g_font_ncenR18r u8g2_font_ncenR18_tr #define u8g_font_ncenR24 u8g2_font_ncenR24_tf #define u8g_font_ncenR24r u8g2_font_ncenR24_tr #define u8g_font_ncenR24n u8g2_font_ncenR24_tn #define u8g_font_timB08 u8g2_font_timB08_tf #define u8g_font_timB08r u8g2_font_timB08_tr #define u8g_font_timB10 u8g2_font_timB10_tf #define u8g_font_timB10r u8g2_font_timB10_tr #define u8g_font_timB12 u8g2_font_timB12_tf #define u8g_font_timB12r u8g2_font_timB12_tr #define u8g_font_timB14 u8g2_font_timB14_tf #define u8g_font_timB14r u8g2_font_timB14_tr #define u8g_font_timB18 u8g2_font_timB18_tf #define u8g_font_timB18r u8g2_font_timB18_tr #define u8g_font_timB24 u8g2_font_timB24_tf #define u8g_font_timB24r u8g2_font_timB24_tr #define u8g_font_timB24n u8g2_font_timB24_tn #define u8g_font_timR08 u8g2_font_timR08_tf #define u8g_font_timR08r u8g2_font_timR08_tr #define u8g_font_timR10 u8g2_font_timR10_tf #define u8g_font_timR10r u8g2_font_timR10_tr #define u8g_font_timR12 u8g2_font_timR12_tf #define u8g_font_timR12r u8g2_font_timR12_tr #define u8g_font_timR14 u8g2_font_timR14_tf #define u8g_font_timR14r u8g2_font_timR14_tr #define u8g_font_timR18 u8g2_font_timR18_tf #define u8g_font_timR18r u8g2_font_timR18_tr #define u8g_font_timR24 u8g2_font_timR24_tf #define u8g_font_timR24r u8g2_font_timR24_tr #define u8g_font_timR24n u8g2_font_timR24_tn #define u8g_font_p01type u8g2_font_p01type_tf #define u8g_font_p01typer u8g2_font_p01type_tr #define u8g_font_lucasfont_alternate u8g2_font_lucasfont_alternate_tf #define u8g_font_lucasfont_alternater u8g2_font_lucasfont_alternate_tr #define u8g_font_chikita u8g2_font_chikita_tf #define u8g_font_chikitar u8g2_font_chikita_tr #define u8g_font_pixelle_micro u8g2_font_pixelle_micro_tf #define u8g_font_pixelle_micror u8g2_font_pixelle_micro_tr #define u8g_font_trixel_square u8g2_font_trixel_square_tf #define u8g_font_trixel_squarer u8g2_font_trixel_square_tr #define u8g_font_robot_de_niro u8g2_font_robot_de_niro_tf #define u8g_font_robot_de_niror u8g2_font_robot_de_niro_tr #define u8g_font_baby u8g2_font_baby_tf #define u8g_font_babyr u8g2_font_baby_tr #define u8g_font_blipfest_07 u8g2_font_blipfest_07_tr #define u8g_font_blipfest_07r u8g2_font_blipfest_07_tr #define u8g_font_blipfest_07n u8g2_font_blipfest_07_tn #define u8g_font_profont10 u8g2_font_profont10_tf #define u8g_font_profont10r u8g2_font_profont10_tr #define u8g_font_profont11 u8g2_font_profont11_tf #define u8g_font_profont11r u8g2_font_profont11_tr #define u8g_font_profont12 u8g2_font_profont12_tf #define u8g_font_profont12r u8g2_font_profont12_tr #define u8g_font_profont15 u8g2_font_profont15_tf #define u8g_font_profont15r u8g2_font_profont15_tr #define u8g_font_profont17 u8g2_font_profont17_tf #define u8g_font_profont17r u8g2_font_profont17_tr #define u8g_font_profont22 u8g2_font_profont22_tf #define u8g_font_profont22r u8g2_font_profont22_tr #define u8g_font_profont29 u8g2_font_profont29_tf #define u8g_font_profont29r u8g2_font_profont29_tr /*==========================================*/ /* C++ compatible */ #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_bitmap.c ================================================ /* u8g2_bitmap.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" void u8g2_SetBitmapMode(u8g2_t *u8g2, uint8_t is_transparent) { u8g2->bitmap_transparency = is_transparent; } /* x,y Position on the display len Length of bitmap line in pixel. Note: This differs from u8glib which had a bytecount here. b Pointer to the bitmap line. Only draw pixels which are set. */ void u8g2_DrawHorizontalBitmap(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, const uint8_t *b) { uint8_t mask; uint8_t color = u8g2->draw_color; uint8_t ncolor = (color == 0 ? 1 : 0); #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+len, y+1) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ mask = 128; while(len > 0) { if ( *b & mask ) { u8g2->draw_color = color; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } else if ( u8g2->bitmap_transparency == 0 ) { u8g2->draw_color = ncolor; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } x++; mask >>= 1; if ( mask == 0 ) { mask = 128; b++; } len--; } u8g2->draw_color = color; } /* u8glib compatible bitmap draw function */ void u8g2_DrawBitmap(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t cnt, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_uint_t w; w = cnt; w *= 8; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ while( h > 0 ) { u8g2_DrawHorizontalBitmap(u8g2, x, y, w, bitmap); bitmap += cnt; y++; h--; } } void u8g2_DrawHXBM(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, const uint8_t *b) { uint8_t mask; uint8_t color = u8g2->draw_color; uint8_t ncolor = (color == 0 ? 1 : 0); #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+len, y+1) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ mask = 1; while(len > 0) { if ( *b & mask ) { u8g2->draw_color = color; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } else if ( u8g2->bitmap_transparency == 0 ) { u8g2->draw_color = ncolor; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } x++; mask <<= 1; if ( mask == 0 ) { mask = 1; b++; } len--; } u8g2->draw_color = color; } void u8g2_DrawXBM(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_uint_t blen; blen = w; blen += 7; blen >>= 3; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ while( h > 0 ) { u8g2_DrawHXBM(u8g2, x, y, w, bitmap); bitmap += blen; y++; h--; } } void u8g2_DrawHXBMP(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, const uint8_t *b) { uint8_t mask; uint8_t color = u8g2->draw_color; uint8_t ncolor = (color == 0 ? 1 : 0); #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+len, y+1) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ mask = 1; while(len > 0) { if( u8x8_pgm_read(b) & mask ) { u8g2->draw_color = color; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } else if( u8g2->bitmap_transparency == 0 ) { u8g2->draw_color = ncolor; u8g2_DrawHVLine(u8g2, x, y, 1, 0); } x++; mask <<= 1; if ( mask == 0 ) { mask = 1; b++; } len--; } u8g2->draw_color = color; } void u8g2_DrawXBMP(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, const uint8_t *bitmap) { u8g2_uint_t blen; blen = w; blen += 7; blen >>= 3; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ while( h > 0 ) { u8g2_DrawHXBMP(u8g2, x, y, w, bitmap); bitmap += blen; y++; h--; } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_box.c ================================================ /* u8g2_box.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* draw a filled box restriction: does not work for w = 0 or h = 0 */ void u8g2_DrawBox(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h) { #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ while( h != 0 ) { u8g2_DrawHVLine(u8g2, x, y, w, 0); y++; h--; } } /* draw a frame (empty box) restriction: does not work for w = 0 or h = 0 */ void u8g2_DrawFrame(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h) { u8g2_uint_t xtmp = x; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ u8g2_DrawHVLine(u8g2, x, y, w, 0); if (h >= 2) { h-=2; y++; if (h > 0) { u8g2_DrawHVLine(u8g2, x, y, h, 1); x+=w; x--; u8g2_DrawHVLine(u8g2, x, y, h, 1); y+=h; } u8g2_DrawHVLine(u8g2, xtmp, y, w, 0); } } void u8g2_DrawRBox(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r) { u8g2_uint_t xl, yu; u8g2_uint_t yl, xr; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ xl = x; xl += r; yu = y; yu += r; xr = x; xr += w; xr -= r; xr -= 1; yl = y; yl += h; yl -= r; yl -= 1; u8g2_DrawDisc(u8g2, xl, yu, r, U8G2_DRAW_UPPER_LEFT); u8g2_DrawDisc(u8g2, xr, yu, r, U8G2_DRAW_UPPER_RIGHT); u8g2_DrawDisc(u8g2, xl, yl, r, U8G2_DRAW_LOWER_LEFT); u8g2_DrawDisc(u8g2, xr, yl, r, U8G2_DRAW_LOWER_RIGHT); { u8g2_uint_t ww, hh; ww = w; ww -= r; ww -= r; xl++; yu++; if ( ww >= 3 ) { ww -= 2; u8g2_DrawBox(u8g2, xl, y, ww, r+1); u8g2_DrawBox(u8g2, xl, yl, ww, r+1); } hh = h; hh -= r; hh -= r; //h--; if ( hh >= 3 ) { hh -= 2; u8g2_DrawBox(u8g2, x, yu, w, hh); } } } void u8g2_DrawRFrame(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t h, u8g2_uint_t r) { u8g2_uint_t xl, yu; #ifdef U8G2_WITH_INTERSECTION if ( u8g2_IsIntersection(u8g2, x, y, x+w, y+h) == 0 ) return; #endif /* U8G2_WITH_INTERSECTION */ xl = x; xl += r; yu = y; yu += r; { u8g2_uint_t yl, xr; xr = x; xr += w; xr -= r; xr -= 1; yl = y; yl += h; yl -= r; yl -= 1; u8g2_DrawCircle(u8g2, xl, yu, r, U8G2_DRAW_UPPER_LEFT); u8g2_DrawCircle(u8g2, xr, yu, r, U8G2_DRAW_UPPER_RIGHT); u8g2_DrawCircle(u8g2, xl, yl, r, U8G2_DRAW_LOWER_LEFT); u8g2_DrawCircle(u8g2, xr, yl, r, U8G2_DRAW_LOWER_RIGHT); } { u8g2_uint_t ww, hh; ww = w; ww -= r; ww -= r; hh = h; hh -= r; hh -= r; xl++; yu++; if ( ww >= 3 ) { ww -= 2; h--; u8g2_DrawHLine(u8g2, xl, y, ww); u8g2_DrawHLine(u8g2, xl, y+h, ww); } if ( hh >= 3 ) { hh -= 2; w--; u8g2_DrawVLine(u8g2, x, yu, hh); u8g2_DrawVLine(u8g2, x+w, yu, hh); } } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_buffer.c ================================================ /* u8g2_buffer.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" #include /*============================================*/ void u8g2_ClearBuffer(u8g2_t *u8g2) { size_t cnt; cnt = u8g2_GetU8x8(u8g2)->display_info->tile_width; cnt *= u8g2->tile_buf_height; cnt *= 8; memset(u8g2->tile_buf_ptr, 0, cnt); } /*============================================*/ static void u8g2_send_tile_row(u8g2_t *u8g2, uint8_t src_tile_row, uint8_t dest_tile_row) { uint8_t *ptr; uint16_t offset; uint8_t w; w = u8g2_GetU8x8(u8g2)->display_info->tile_width; offset = src_tile_row; ptr = u8g2->tile_buf_ptr; offset *= w; offset *= 8; ptr += offset; u8x8_DrawTile(u8g2_GetU8x8(u8g2), 0, dest_tile_row, w, ptr); } /* write the buffer to the display RAM. For most displays, this will make the content visible to the user. Some displays (like the SSD1606) require a u8x8_RefreshDisplay() */ static void u8g2_send_buffer(u8g2_t *u8g2) U8X8_NOINLINE; static void u8g2_send_buffer(u8g2_t *u8g2) { uint8_t src_row; uint8_t src_max; uint8_t dest_row; uint8_t dest_max; src_row = 0; src_max = u8g2->tile_buf_height; dest_row = u8g2->tile_curr_row; dest_max = u8g2_GetU8x8(u8g2)->display_info->tile_height; do { u8g2_send_tile_row(u8g2, src_row, dest_row); src_row++; dest_row++; } while( src_row < src_max && dest_row < dest_max ); } /* same as u8g2_send_buffer but also send the DISPLAY_REFRESH message (used by SSD1606) */ void u8g2_SendBuffer(u8g2_t *u8g2) { u8g2_send_buffer(u8g2); u8x8_RefreshDisplay( u8g2_GetU8x8(u8g2) ); } /*============================================*/ void u8g2_SetBufferCurrTileRow(u8g2_t *u8g2, uint8_t row) { u8g2->tile_curr_row = row; u8g2->cb->update_dimension(u8g2); u8g2->cb->update_page_win(u8g2); } void u8g2_FirstPage(u8g2_t *u8g2) { if ( u8g2->is_auto_page_clear ) { u8g2_ClearBuffer(u8g2); } u8g2_SetBufferCurrTileRow(u8g2, 0); } uint8_t u8g2_NextPage(u8g2_t *u8g2) { uint8_t row; u8g2_send_buffer(u8g2); row = u8g2->tile_curr_row; row += u8g2->tile_buf_height; if ( row >= u8g2_GetU8x8(u8g2)->display_info->tile_height ) { u8x8_RefreshDisplay( u8g2_GetU8x8(u8g2) ); return 0; } if ( u8g2->is_auto_page_clear ) { u8g2_ClearBuffer(u8g2); } u8g2_SetBufferCurrTileRow(u8g2, row); return 1; } /*============================================*/ /* Description: Update a sub area of the display, given by tile position, width and height. The arguments are "tile" coordinates. Any u8g2 rotation is ignored. This procedure only checks whether full buffer mode is active. There is no error checking for the arguments: It is the responsibility of the user to ensure, that the provided arguments are correct. Limitations: - Only available in full buffer mode (will not do anything in page mode) - Tile positions and sizes (pixel position divided by 8) - Any display rotation/mirror is ignored - Only works with displays, which support U8x8 API - Will not send the e-paper refresh message (will probably not work with e-paper devices) */ void u8g2_UpdateDisplayArea(u8g2_t *u8g2, uint8_t tx, uint8_t ty, uint8_t tw, uint8_t th) { uint16_t page_size; uint8_t *ptr; /* check, whether we are in full buffer mode */ if ( u8g2->tile_buf_height != u8g2_GetU8x8(u8g2)->display_info->tile_height ) return; /* not in full buffer mode, do nothing */ page_size = u8g2->pixel_buf_width; /* 8*u8g2->u8g2_GetU8x8(u8g2)->display_info->tile_width */ ptr = u8g2_GetBufferPtr(u8g2); ptr += tx*8; ptr += page_size*ty; while( th > 0 ) { u8x8_DrawTile( u8g2_GetU8x8(u8g2), tx, ty, tw, ptr ); ptr += page_size; ty++; th--; } } /* same as sendBuffer, but does not send the ePaper refresh message */ void u8g2_UpdateDisplay(u8g2_t *u8g2) { u8g2_send_buffer(u8g2); } /*============================================*/ /* vertical_top memory architecture */ void u8g2_WriteBufferPBM(u8g2_t *u8g2, void (*out)(const char *s)) { u8x8_capture_write_pbm_pre(u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), out); u8x8_capture_write_pbm_buffer(u8g2_GetBufferPtr(u8g2), u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), u8x8_capture_get_pixel_1, out); } void u8g2_WriteBufferXBM(u8g2_t *u8g2, void (*out)(const char *s)) { u8x8_capture_write_xbm_pre(u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), out); u8x8_capture_write_xbm_buffer(u8g2_GetBufferPtr(u8g2), u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), u8x8_capture_get_pixel_1, out); } /* horizontal right memory architecture */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ void u8g2_WriteBufferPBM2(u8g2_t *u8g2, void (*out)(const char *s)) { u8x8_capture_write_pbm_pre(u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), out); u8x8_capture_write_pbm_buffer(u8g2_GetBufferPtr(u8g2), u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), u8x8_capture_get_pixel_2, out); } void u8g2_WriteBufferXBM2(u8g2_t *u8g2, void (*out)(const char *s)) { u8x8_capture_write_xbm_pre(u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), out); u8x8_capture_write_xbm_buffer(u8g2_GetBufferPtr(u8g2), u8g2_GetBufferTileWidth(u8g2), u8g2_GetBufferTileHeight(u8g2), u8x8_capture_get_pixel_2, out); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_circle.c ================================================ /* u8g2_circle.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /*==============================================*/ /* Circle */ static void u8g2_draw_circle_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) U8G2_NOINLINE; static void u8g2_draw_circle_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) { /* upper right */ if ( option & U8G2_DRAW_UPPER_RIGHT ) { u8g2_DrawPixel(u8g2, x0 + x, y0 - y); u8g2_DrawPixel(u8g2, x0 + y, y0 - x); } /* upper left */ if ( option & U8G2_DRAW_UPPER_LEFT ) { u8g2_DrawPixel(u8g2, x0 - x, y0 - y); u8g2_DrawPixel(u8g2, x0 - y, y0 - x); } /* lower right */ if ( option & U8G2_DRAW_LOWER_RIGHT ) { u8g2_DrawPixel(u8g2, x0 + x, y0 + y); u8g2_DrawPixel(u8g2, x0 + y, y0 + x); } /* lower left */ if ( option & U8G2_DRAW_LOWER_LEFT ) { u8g2_DrawPixel(u8g2, x0 - x, y0 + y); u8g2_DrawPixel(u8g2, x0 - y, y0 + x); } } static void u8g2_draw_circle(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option) { u8g2_int_t f; u8g2_int_t ddF_x; u8g2_int_t ddF_y; u8g2_uint_t x; u8g2_uint_t y; f = 1; f -= rad; ddF_x = 1; ddF_y = 0; ddF_y -= rad; ddF_y *= 2; x = 0; y = rad; u8g2_draw_circle_section(u8g2, x, y, x0, y0, option); while ( x < y ) { if (f >= 0) { y--; ddF_y += 2; f += ddF_y; } x++; ddF_x += 2; f += ddF_x; u8g2_draw_circle_section(u8g2, x, y, x0, y0, option); } } void u8g2_DrawCircle(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option) { /* check for bounding box */ #ifdef U8G2_WITH_INTERSECTION { if ( u8g2_IsIntersection(u8g2, x0-rad, y0-rad, x0+rad+1, y0+rad+1) == 0 ) return; } #endif /* U8G2_WITH_INTERSECTION */ /* draw circle */ u8g2_draw_circle(u8g2, x0, y0, rad, option); } /*==============================================*/ /* Disk */ static void u8g2_draw_disc_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) U8G2_NOINLINE; static void u8g2_draw_disc_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) { /* upper right */ if ( option & U8G2_DRAW_UPPER_RIGHT ) { u8g2_DrawVLine(u8g2, x0+x, y0-y, y+1); u8g2_DrawVLine(u8g2, x0+y, y0-x, x+1); } /* upper left */ if ( option & U8G2_DRAW_UPPER_LEFT ) { u8g2_DrawVLine(u8g2, x0-x, y0-y, y+1); u8g2_DrawVLine(u8g2, x0-y, y0-x, x+1); } /* lower right */ if ( option & U8G2_DRAW_LOWER_RIGHT ) { u8g2_DrawVLine(u8g2, x0+x, y0, y+1); u8g2_DrawVLine(u8g2, x0+y, y0, x+1); } /* lower left */ if ( option & U8G2_DRAW_LOWER_LEFT ) { u8g2_DrawVLine(u8g2, x0-x, y0, y+1); u8g2_DrawVLine(u8g2, x0-y, y0, x+1); } } static void u8g2_draw_disc(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option) { u8g2_int_t f; u8g2_int_t ddF_x; u8g2_int_t ddF_y; u8g2_uint_t x; u8g2_uint_t y; f = 1; f -= rad; ddF_x = 1; ddF_y = 0; ddF_y -= rad; ddF_y *= 2; x = 0; y = rad; u8g2_draw_disc_section(u8g2, x, y, x0, y0, option); while ( x < y ) { if (f >= 0) { y--; ddF_y += 2; f += ddF_y; } x++; ddF_x += 2; f += ddF_x; u8g2_draw_disc_section(u8g2, x, y, x0, y0, option); } } void u8g2_DrawDisc(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rad, uint8_t option) { /* check for bounding box */ #ifdef U8G2_WITH_INTERSECTION { if ( u8g2_IsIntersection(u8g2, x0-rad, y0-rad, x0+rad+1, y0+rad+1) == 0 ) return; } #endif /* U8G2_WITH_INTERSECTION */ /* draw disc */ u8g2_draw_disc(u8g2, x0, y0, rad, option); } /*==============================================*/ /* Ellipse */ /* Source: Foley, Computer Graphics, p 90 */ static void u8g2_draw_ellipse_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) U8G2_NOINLINE; static void u8g2_draw_ellipse_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) { /* upper right */ if ( option & U8G2_DRAW_UPPER_RIGHT ) { u8g2_DrawPixel(u8g2, x0 + x, y0 - y); } /* upper left */ if ( option & U8G2_DRAW_UPPER_LEFT ) { u8g2_DrawPixel(u8g2, x0 - x, y0 - y); } /* lower right */ if ( option & U8G2_DRAW_LOWER_RIGHT ) { u8g2_DrawPixel(u8g2, x0 + x, y0 + y); } /* lower left */ if ( option & U8G2_DRAW_LOWER_LEFT ) { u8g2_DrawPixel(u8g2, x0 - x, y0 + y); } } static void u8g2_draw_ellipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option) { u8g2_uint_t x, y; u8g2_long_t xchg, ychg; u8g2_long_t err; u8g2_long_t rxrx2; u8g2_long_t ryry2; u8g2_long_t stopx, stopy; rxrx2 = rx; rxrx2 *= rx; rxrx2 *= 2; ryry2 = ry; ryry2 *= ry; ryry2 *= 2; x = rx; y = 0; xchg = 1; xchg -= rx; xchg -= rx; xchg *= ry; xchg *= ry; ychg = rx; ychg *= rx; err = 0; stopx = ryry2; stopx *= rx; stopy = 0; while( stopx >= stopy ) { u8g2_draw_ellipse_section(u8g2, x, y, x0, y0, option); y++; stopy += rxrx2; err += ychg; ychg += rxrx2; if ( 2*err+xchg > 0 ) { x--; stopx -= ryry2; err += xchg; xchg += ryry2; } } x = 0; y = ry; xchg = ry; xchg *= ry; ychg = 1; ychg -= ry; ychg -= ry; ychg *= rx; ychg *= rx; err = 0; stopx = 0; stopy = rxrx2; stopy *= ry; while( stopx <= stopy ) { u8g2_draw_ellipse_section(u8g2, x, y, x0, y0, option); x++; stopx += ryry2; err += xchg; xchg += ryry2; if ( 2*err+ychg > 0 ) { y--; stopy -= rxrx2; err += ychg; ychg += rxrx2; } } } void u8g2_DrawEllipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option) { /* check for bounding box */ #ifdef U8G2_WITH_INTERSECTION { if ( u8g2_IsIntersection(u8g2, x0-rx, y0-ry, x0+rx+1, y0+ry+1) == 0 ) return; } #endif /* U8G2_WITH_INTERSECTION */ u8g2_draw_ellipse(u8g2, x0, y0, rx, ry, option); } /*==============================================*/ /* Filled Ellipse */ static void u8g2_draw_filled_ellipse_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) U8G2_NOINLINE; static void u8g2_draw_filled_ellipse_section(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t x0, u8g2_uint_t y0, uint8_t option) { /* upper right */ if ( option & U8G2_DRAW_UPPER_RIGHT ) { u8g2_DrawVLine(u8g2, x0+x, y0-y, y+1); } /* upper left */ if ( option & U8G2_DRAW_UPPER_LEFT ) { u8g2_DrawVLine(u8g2, x0-x, y0-y, y+1); } /* lower right */ if ( option & U8G2_DRAW_LOWER_RIGHT ) { u8g2_DrawVLine(u8g2, x0+x, y0, y+1); } /* lower left */ if ( option & U8G2_DRAW_LOWER_LEFT ) { u8g2_DrawVLine(u8g2, x0-x, y0, y+1); } } static void u8g2_draw_filled_ellipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option) { u8g2_uint_t x, y; u8g2_long_t xchg, ychg; u8g2_long_t err; u8g2_long_t rxrx2; u8g2_long_t ryry2; u8g2_long_t stopx, stopy; rxrx2 = rx; rxrx2 *= rx; rxrx2 *= 2; ryry2 = ry; ryry2 *= ry; ryry2 *= 2; x = rx; y = 0; xchg = 1; xchg -= rx; xchg -= rx; xchg *= ry; xchg *= ry; ychg = rx; ychg *= rx; err = 0; stopx = ryry2; stopx *= rx; stopy = 0; while( stopx >= stopy ) { u8g2_draw_filled_ellipse_section(u8g2, x, y, x0, y0, option); y++; stopy += rxrx2; err += ychg; ychg += rxrx2; if ( 2*err+xchg > 0 ) { x--; stopx -= ryry2; err += xchg; xchg += ryry2; } } x = 0; y = ry; xchg = ry; xchg *= ry; ychg = 1; ychg -= ry; ychg -= ry; ychg *= rx; ychg *= rx; err = 0; stopx = 0; stopy = rxrx2; stopy *= ry; while( stopx <= stopy ) { u8g2_draw_filled_ellipse_section(u8g2, x, y, x0, y0, option); x++; stopx += ryry2; err += xchg; xchg += ryry2; if ( 2*err+ychg > 0 ) { y--; stopy -= rxrx2; err += ychg; ychg += rxrx2; } } } void u8g2_DrawFilledEllipse(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t rx, u8g2_uint_t ry, uint8_t option) { /* check for bounding box */ #ifdef U8G2_WITH_INTERSECTION { if ( u8g2_IsIntersection(u8g2, x0-rx, y0-ry, x0+rx+1, y0+ry+1) == 0 ) return; } #endif /* U8G2_WITH_INTERSECTION */ u8g2_draw_filled_ellipse(u8g2, x0, y0, rx, ry, option); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_cleardisplay.c ================================================ /* u8g2_cleardisplay.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* Clear screen buffer & display reliable for all u8g2 displays. */ /* This is done with u8g2 picture loop, because we can not use the u8x8 function in all cases */ void u8g2_ClearDisplay(u8g2_t *u8g2) { u8g2_FirstPage(u8g2); do { } while ( u8g2_NextPage(u8g2) ); /* This function is usually called during startup (u8g2.begin()). However the user might want to use full buffer mode with clear and send commands. This will not work because the current tile row is modified by the picture loop above. To fix this, reset the tile row to 0, issue #370 A workaround would be, that the user sets the current tile row to 0 manually. */ u8g2_SetBufferCurrTileRow(u8g2, 0); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_d_memory.c ================================================ /* u8g2_d_memory.c */ /* generated code, codebuild, u8g2 project */ #include "u8g2.h" uint8_t *u8g2_m_16_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[128]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_16_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[256]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_16_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[512]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_16_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[128]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_16_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[256]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_16_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[1024]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_16_10_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[1280]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_255_2_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[2040]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_255_2_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[4080]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_255_2_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[4080]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_9_5_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[72]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_9_5_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[144]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_9_5_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 5; return 0; #else static uint8_t buf[360]; *page_cnt = 5; return buf; #endif } uint8_t *u8g2_m_8_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[64]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_8_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[128]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_8_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[256]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_8_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[64]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_8_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[128]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_8_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[1024]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_12_12_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[96]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_12_12_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[192]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_12_12_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 12; return 0; #else static uint8_t buf[1152]; *page_cnt = 12; return buf; #endif } uint8_t *u8g2_m_16_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[128]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_16_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[256]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_16_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[2048]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_20_20_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_20_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_20_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 20; return 0; #else static uint8_t buf[3200]; *page_cnt = 20; return buf; #endif } uint8_t *u8g2_m_32_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[256]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_32_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[512]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_32_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[2048]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_8_6_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[64]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_8_6_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[128]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_8_6_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 6; return 0; #else static uint8_t buf[384]; *page_cnt = 6; return buf; #endif } uint8_t *u8g2_m_6_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[48]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_6_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[96]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_6_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[384]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_12_2_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[96]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_12_2_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[192]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_12_2_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[192]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_16_12_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[128]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_16_12_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[256]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_16_12_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 12; return 0; #else static uint8_t buf[1536]; *page_cnt = 12; return buf; #endif } uint8_t *u8g2_m_32_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[256]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_32_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[512]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_32_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[1024]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_12_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[96]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_12_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[192]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_12_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[768]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_24_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[192]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_24_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[384]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_24_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[768]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_50_30_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[400]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_50_30_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[800]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_50_30_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 30; return 0; #else static uint8_t buf[12000]; *page_cnt = 30; return buf; #endif } uint8_t *u8g2_m_18_21_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[144]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_18_21_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[288]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_18_21_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 21; return 0; #else static uint8_t buf[3024]; *page_cnt = 21; return buf; #endif } uint8_t *u8g2_m_13_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[104]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_13_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[208]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_13_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[832]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_11_6_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[88]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_11_6_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[176]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_11_6_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 6; return 0; #else static uint8_t buf[528]; *page_cnt = 6; return buf; #endif } uint8_t *u8g2_m_12_9_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[96]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_12_9_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[192]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_12_9_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 9; return 0; #else static uint8_t buf[864]; *page_cnt = 9; return buf; #endif } uint8_t *u8g2_m_24_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[192]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_24_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[384]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_24_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[1536]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_30_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[240]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_30_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[480]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_30_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[1920]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_30_15_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[240]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_30_15_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[480]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_30_15_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 15; return 0; #else static uint8_t buf[3600]; *page_cnt = 15; return buf; #endif } uint8_t *u8g2_m_30_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[240]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_30_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[480]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_30_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[3840]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_20_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[2560]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_20_13_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_13_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_13_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 13; return 0; #else static uint8_t buf[2080]; *page_cnt = 13; return buf; #endif } uint8_t *u8g2_m_30_20_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[240]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_30_20_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[480]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_30_20_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 20; return 0; #else static uint8_t buf[4800]; *page_cnt = 20; return buf; #endif } uint8_t *u8g2_m_32_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[256]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_32_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[512]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_32_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[4096]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_40_30_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[320]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_40_30_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[640]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_40_30_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 30; return 0; #else static uint8_t buf[9600]; *page_cnt = 30; return buf; #endif } uint8_t *u8g2_m_20_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[1280]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_17_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[136]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_17_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[272]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_17_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[544]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_17_8_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[136]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_17_8_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[272]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_17_8_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 8; return 0; #else static uint8_t buf[1088]; *page_cnt = 8; return buf; #endif } uint8_t *u8g2_m_48_17_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[384]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_48_17_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[768]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_48_17_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 17; return 0; #else static uint8_t buf[6528]; *page_cnt = 17; return buf; #endif } uint8_t *u8g2_m_32_20_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[256]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_32_20_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[512]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_32_20_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 20; return 0; #else static uint8_t buf[5120]; *page_cnt = 20; return buf; #endif } uint8_t *u8g2_m_22_13_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[176]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_22_13_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[352]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_22_13_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 13; return 0; #else static uint8_t buf[2288]; *page_cnt = 13; return buf; #endif } uint8_t *u8g2_m_24_12_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[192]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_24_12_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[384]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_24_12_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 12; return 0; #else static uint8_t buf[2304]; *page_cnt = 12; return buf; #endif } uint8_t *u8g2_m_20_10_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_10_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_10_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 10; return 0; #else static uint8_t buf[1600]; *page_cnt = 10; return buf; #endif } uint8_t *u8g2_m_20_4_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_4_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_4_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 4; return 0; #else static uint8_t buf[640]; *page_cnt = 4; return buf; #endif } uint8_t *u8g2_m_20_17_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[160]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_20_17_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[320]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_20_17_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 17; return 0; #else static uint8_t buf[2720]; *page_cnt = 17; return buf; #endif } uint8_t *u8g2_m_22_9_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[176]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_22_9_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[352]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_22_9_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 9; return 0; #else static uint8_t buf[1584]; *page_cnt = 9; return buf; #endif } uint8_t *u8g2_m_25_25_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[200]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_25_25_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[400]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_25_25_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 25; return 0; #else static uint8_t buf[5000]; *page_cnt = 25; return buf; #endif } uint8_t *u8g2_m_37_16_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[296]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_37_16_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[592]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_37_16_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 16; return 0; #else static uint8_t buf[4736]; *page_cnt = 16; return buf; #endif } uint8_t *u8g2_m_8_1_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[64]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_8_1_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[128]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_8_1_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[64]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_4_1_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[32]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_4_1_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[64]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_4_1_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[32]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_1_1_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[8]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_1_1_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[16]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_1_1_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[8]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_48_30_1(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 1; return 0; #else static uint8_t buf[384]; *page_cnt = 1; return buf; #endif } uint8_t *u8g2_m_48_30_2(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 2; return 0; #else static uint8_t buf[768]; *page_cnt = 2; return buf; #endif } uint8_t *u8g2_m_48_30_f(uint8_t *page_cnt) { #ifdef U8G2_USE_DYNAMIC_ALLOC *page_cnt = 30; return 0; #else static uint8_t buf[11520]; *page_cnt = 30; return buf; #endif } /* end of generated code */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_d_setup.c ================================================ /* u8g2_d_setup.c */ /* generated code, codebuild, u8g2 project */ #include "u8g2.h" /* ssd1305 */ /* ssd1305 1 */ void u8g2_Setup_ssd1305_128x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x32_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 2 */ void u8g2_Setup_ssd1305_128x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x32_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 f */ void u8g2_Setup_ssd1305_128x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x32_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 */ /* ssd1305 1 */ void u8g2_Setup_ssd1305_i2c_128x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x32_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 2 */ void u8g2_Setup_ssd1305_i2c_128x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x32_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 f */ void u8g2_Setup_ssd1305_i2c_128x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x32_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x32_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 */ /* ssd1305 1 */ void u8g2_Setup_ssd1305_128x64_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x64_raystar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 2 */ void u8g2_Setup_ssd1305_128x64_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x64_raystar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 f */ void u8g2_Setup_ssd1305_128x64_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_128x64_raystar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 */ /* ssd1305 1 */ void u8g2_Setup_ssd1305_i2c_128x64_adafruit_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x64_raystar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 2 */ void u8g2_Setup_ssd1305_i2c_128x64_adafruit_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x64_raystar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1305 f */ void u8g2_Setup_ssd1305_i2c_128x64_adafruit_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_adafruit, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1305_i2c_128x64_raystar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1305_128x64_raystar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_2040x16_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_2040x16, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_255_2_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_2040x16_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_2040x16, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_255_2_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_2040x16_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_2040x16, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_255_2_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_alt0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_alt0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x64_alt0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_alt0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_alt0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x80_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x80_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_10_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x64_alt0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_alt0, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_72x40_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_72x40_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_72x40_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_72x40_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_72x40_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_72x40_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_72x40_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_128x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_vcomh0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_vcomh0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_vcomh0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1106_i2c_128x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_winstar, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_72x40_wise_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_72x40_wise_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_72x40_wise_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_i2c_72x40_wise_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_i2c_72x40_wise_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_i2c_72x40_wise_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_72x40_wise, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_9_5_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_i2c_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_i2c_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_i2c_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_64x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_64x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_64x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_i2c_64x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_i2c_64x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_i2c_64x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_64x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_i2c_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_i2c_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_i2c_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_96x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_pimoroni_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_seeed_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_pimoroni_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_seeed_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_pimoroni_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_seeed_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 */ /* sh1107 1 */ void u8g2_Setup_sh1107_i2c_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_pimoroni_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_seeed_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 2 */ void u8g2_Setup_sh1107_i2c_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_pimoroni_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_seeed_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1107 f */ void u8g2_Setup_sh1107_i2c_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_pimoroni_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_pimoroni_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_sh1107_i2c_seeed_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1107_seeed_128x128, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 */ /* sh1108 1 */ void u8g2_Setup_sh1108_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 2 */ void u8g2_Setup_sh1108_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 f */ void u8g2_Setup_sh1108_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 */ /* sh1108 1 */ void u8g2_Setup_sh1108_i2c_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 2 */ void u8g2_Setup_sh1108_i2c_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1108 f */ void u8g2_Setup_sh1108_i2c_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1122 */ /* sh1122 1 */ void u8g2_Setup_sh1122_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sh1122 2 */ void u8g2_Setup_sh1122_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sh1122 f */ void u8g2_Setup_sh1122_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sh1122 */ /* sh1122 1 */ void u8g2_Setup_sh1122_i2c_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sh1122 2 */ void u8g2_Setup_sh1122_i2c_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sh1122 f */ void u8g2_Setup_sh1122_i2c_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1122_256x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x32_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x32_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_128x32_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x32_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x32_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_128x32_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_128x32_visionox_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_128x32_visionox_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_128x32_visionox_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 */ /* sh1106 1 */ void u8g2_Setup_sh1106_i2c_128x32_visionox_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 2 */ void u8g2_Setup_sh1106_i2c_128x32_visionox_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sh1106 f */ void u8g2_Setup_sh1106_i2c_128x32_visionox_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x32_visionox, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_64x48_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_64x48_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_64x48_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_64x48_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_64x48_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_64x48_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_6_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_48x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_48x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_48x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_48x64_winstar_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_48x64_winstar_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_48x64_winstar_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_48x64_winstar, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_6_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_64x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_64x32_1f_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_64x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_64x32_1f_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_64x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_64x32_1f_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_64x32_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_64x32_1f_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_64x32_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_64x32_1f_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_64x32_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_noname, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1306_i2c_64x32_1f_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_64x32_1f, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_96x16_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_96x16_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_96x16_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 */ /* ssd1306 1 */ void u8g2_Setup_ssd1306_i2c_96x16_er_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 2 */ void u8g2_Setup_ssd1306_i2c_96x16_er_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1306 f */ void u8g2_Setup_ssd1306_i2c_96x16_er_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_96x16_er, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_2_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 */ /* ssd1309 1 */ void u8g2_Setup_ssd1309_128x64_noname2_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 2 */ void u8g2_Setup_ssd1309_128x64_noname2_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 f */ void u8g2_Setup_ssd1309_128x64_noname2_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 */ /* ssd1309 1 */ void u8g2_Setup_ssd1309_i2c_128x64_noname2_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 2 */ void u8g2_Setup_ssd1309_i2c_128x64_noname2_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 f */ void u8g2_Setup_ssd1309_i2c_128x64_noname2_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname2, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 */ /* ssd1309 1 */ void u8g2_Setup_ssd1309_128x64_noname0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 2 */ void u8g2_Setup_ssd1309_128x64_noname0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 f */ void u8g2_Setup_ssd1309_128x64_noname0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 */ /* ssd1309 1 */ void u8g2_Setup_ssd1309_i2c_128x64_noname0_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 2 */ void u8g2_Setup_ssd1309_i2c_128x64_noname0_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1309 f */ void u8g2_Setup_ssd1309_i2c_128x64_noname0_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1309_128x64_noname0, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 */ /* ssd1316 1 */ void u8g2_Setup_ssd1316_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 2 */ void u8g2_Setup_ssd1316_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 f */ void u8g2_Setup_ssd1316_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 */ /* ssd1316 1 */ void u8g2_Setup_ssd1316_i2c_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 2 */ void u8g2_Setup_ssd1316_i2c_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1316 f */ void u8g2_Setup_ssd1316_i2c_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1316_128x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 */ /* ssd1317 1 */ void u8g2_Setup_ssd1317_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 2 */ void u8g2_Setup_ssd1317_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 f */ void u8g2_Setup_ssd1317_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 */ /* ssd1317 1 */ void u8g2_Setup_ssd1317_i2c_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 2 */ void u8g2_Setup_ssd1317_i2c_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1317 f */ void u8g2_Setup_ssd1317_i2c_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1317_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 */ /* ssd1318 1 */ void u8g2_Setup_ssd1318_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_128x96_xcp_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 2 */ void u8g2_Setup_ssd1318_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_128x96_xcp_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 f */ void u8g2_Setup_ssd1318_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_128x96_xcp_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 */ /* ssd1318 1 */ void u8g2_Setup_ssd1318_i2c_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_i2c_128x96_xcp_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 2 */ void u8g2_Setup_ssd1318_i2c_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_i2c_128x96_xcp_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1318 f */ void u8g2_Setup_ssd1318_i2c_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1318_i2c_128x96_xcp_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1318_128x96_xcp, u8x8_cad_ssd13xx_fast_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 */ /* ssd1325 1 */ void u8g2_Setup_ssd1325_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 2 */ void u8g2_Setup_ssd1325_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 f */ void u8g2_Setup_ssd1325_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 */ /* ssd1325 1 */ void u8g2_Setup_ssd1325_i2c_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 2 */ void u8g2_Setup_ssd1325_i2c_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1325 f */ void u8g2_Setup_ssd1325_i2c_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 */ /* ssd0323 1 */ void u8g2_Setup_ssd0323_os128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 2 */ void u8g2_Setup_ssd0323_os128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 f */ void u8g2_Setup_ssd0323_os128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 */ /* ssd0323 1 */ void u8g2_Setup_ssd0323_i2c_os128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 2 */ void u8g2_Setup_ssd0323_i2c_os128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd0323 f */ void u8g2_Setup_ssd0323_i2c_os128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd0323_os128064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 */ /* ssd1326 1 */ void u8g2_Setup_ssd1326_er_256x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 2 */ void u8g2_Setup_ssd1326_er_256x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 f */ void u8g2_Setup_ssd1326_er_256x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 */ /* ssd1326 1 */ void u8g2_Setup_ssd1326_i2c_er_256x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 2 */ void u8g2_Setup_ssd1326_i2c_er_256x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1326 f */ void u8g2_Setup_ssd1326_i2c_er_256x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1326_er_256x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_ws_96x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_ws_96x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_ws_96x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_i2c_ws_96x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_i2c_ws_96x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_i2c_ws_96x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_96x64, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_i2c_seeed_96x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_i2c_seeed_96x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_i2c_seeed_96x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_ea_w128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_midas_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_ws_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_ea_w128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_midas_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_ws_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_ea_w128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_midas_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_ws_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_i2c_ea_w128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_midas_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_ws_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_i2c_ea_w128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_midas_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_ws_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_i2c_ea_w128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ea_w128128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_midas_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_midas_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1327_i2c_ws_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_ws_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_visionox_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_visionox_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_visionox_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 */ /* ssd1327 1 */ void u8g2_Setup_ssd1327_i2c_visionox_128x96_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 2 */ void u8g2_Setup_ssd1327_i2c_visionox_128x96_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1327 f */ void u8g2_Setup_ssd1327_i2c_visionox_128x96_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1327_visionox_128x96, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1329 */ /* ssd1329 1 */ void u8g2_Setup_ssd1329_128x96_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1329_128x96_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1329 2 */ void u8g2_Setup_ssd1329_128x96_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1329_128x96_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1329 f */ void u8g2_Setup_ssd1329_128x96_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1329_128x96_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ld7032 */ /* ld7032 1 */ void u8g2_Setup_ld7032_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_60x32_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ld7032 2 */ void u8g2_Setup_ld7032_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_60x32_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ld7032 f */ void u8g2_Setup_ld7032_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_60x32_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ld7032 */ /* ld7032 1 */ void u8g2_Setup_ld7032_i2c_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_i2c_60x32_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ld7032 2 */ void u8g2_Setup_ld7032_i2c_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_i2c_60x32_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ld7032 f */ void u8g2_Setup_ld7032_i2c_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ld7032_i2c_60x32_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32_alt, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_p_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_p_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_p_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_s_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_s_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_s_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_p_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_p_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_p_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 */ /* st7920 1 */ void u8g2_Setup_st7920_s_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 2 */ void u8g2_Setup_st7920_s_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7920 f */ void u8g2_Setup_st7920_s_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh03 */ /* ls013b7dh03 1 */ void u8g2_Setup_ls013b7dh03_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh03 2 */ void u8g2_Setup_ls013b7dh03_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh03 f */ void u8g2_Setup_ls013b7dh03_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls027b7dh01 */ /* ls027b7dh01 1 */ void u8g2_Setup_ls027b7dh01_400x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ls027b7dh01_m0_400x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_m0_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls027b7dh01 2 */ void u8g2_Setup_ls027b7dh01_400x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ls027b7dh01_m0_400x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_m0_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls027b7dh01 f */ void u8g2_Setup_ls027b7dh01_400x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_ls027b7dh01_m0_400x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls027b7dh01_m0_400x240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_50_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh05 */ /* ls013b7dh05 1 */ void u8g2_Setup_ls013b7dh05_144x168_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh05_144x168, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_18_21_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh05 2 */ void u8g2_Setup_ls013b7dh05_144x168_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh05_144x168, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_18_21_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ls013b7dh05 f */ void u8g2_Setup_ls013b7dh05_144x168_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh05_144x168, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_18_21_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* uc1701 */ /* uc1701 1 */ void u8g2_Setup_uc1701_ea_dogs102_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_13_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1701 2 */ void u8g2_Setup_uc1701_ea_dogs102_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_13_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1701 f */ void u8g2_Setup_uc1701_ea_dogs102_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_13_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1701 */ /* uc1701 1 */ void u8g2_Setup_uc1701_mini12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_mini12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1701 2 */ void u8g2_Setup_uc1701_mini12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_mini12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1701 f */ void u8g2_Setup_uc1701_mini12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_mini12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcd8544 */ /* pcd8544 1 */ void u8g2_Setup_pcd8544_84x48_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcd8544_84x48, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_11_6_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcd8544 2 */ void u8g2_Setup_pcd8544_84x48_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcd8544_84x48, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_11_6_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcd8544 f */ void u8g2_Setup_pcd8544_84x48_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcd8544_84x48, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_11_6_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcf8812 */ /* pcf8812 1 */ void u8g2_Setup_pcf8812_96x65_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcf8812_96x65, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcf8812 2 */ void u8g2_Setup_pcf8812_96x65_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcf8812_96x65, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* pcf8812 f */ void u8g2_Setup_pcf8812_96x65_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_pcf8812_96x65, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* hx1230 */ /* hx1230 1 */ void u8g2_Setup_hx1230_96x68_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_hx1230_96x68, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* hx1230 2 */ void u8g2_Setup_hx1230_96x68_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_hx1230_96x68, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* hx1230 f */ void u8g2_Setup_hx1230_96x68_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_hx1230_96x68, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_12_9_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 */ /* uc1604 1 */ void u8g2_Setup_uc1604_jlx19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 2 */ void u8g2_Setup_uc1604_jlx19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 f */ void u8g2_Setup_uc1604_jlx19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 */ /* uc1604 1 */ void u8g2_Setup_uc1604_i2c_jlx19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 2 */ void u8g2_Setup_uc1604_i2c_jlx19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1604 f */ void u8g2_Setup_uc1604_i2c_jlx19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_erc24064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_dem240064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_erc24064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_dem240064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_erc24064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_dem240064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_i2c_erc24064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_i2c_dem240064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_i2c_erc24064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_i2c_dem240064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_i2c_erc24064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_uc1608_i2c_dem240064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_dem240064, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_erc240120_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_erc240120_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_erc240120_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_i2c_erc240120_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_i2c_erc240120_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_i2c_erc240120_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_erc240120, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_15_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 */ /* uc1608 1 */ void u8g2_Setup_uc1608_i2c_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 2 */ void u8g2_Setup_uc1608_i2c_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1608 f */ void u8g2_Setup_uc1608_i2c_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1638 */ /* uc1638 1 */ void u8g2_Setup_uc1638_160x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1638_160x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1638 2 */ void u8g2_Setup_uc1638_160x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1638_160x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1638 f */ void u8g2_Setup_uc1638_160x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1638_160x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 */ /* uc1610 1 */ void u8g2_Setup_uc1610_ea_dogxl160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 2 */ void u8g2_Setup_uc1610_ea_dogxl160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 f */ void u8g2_Setup_uc1610_ea_dogxl160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 */ /* uc1610 1 */ void u8g2_Setup_uc1610_i2c_ea_dogxl160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 2 */ void u8g2_Setup_uc1610_i2c_ea_dogxl160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1610 f */ void u8g2_Setup_uc1610_i2c_ea_dogxl160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_ea_dogm240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_ea_dogm240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_ea_dogm240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_i2c_ea_dogm240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_i2c_ea_dogm240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_i2c_ea_dogm240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_ea_dogxl240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_ea_dogxl240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_ea_dogxl240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_i2c_ea_dogxl240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_i2c_ea_dogxl240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_i2c_ea_dogxl240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_ew50850_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_ew50850_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_ew50850_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_i2c_ew50850_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_i2c_ew50850_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_i2c_ew50850_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ew50850, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_cg160160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_cg160160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_cg160160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_i2c_cg160160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_i2c_cg160160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_i2c_cg160160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_cg160160, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_ids4073_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_ids4073_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_ids4073_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 */ /* uc1611 1 */ void u8g2_Setup_uc1611_i2c_ids4073_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 2 */ void u8g2_Setup_uc1611_i2c_ids4073_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1611 f */ void u8g2_Setup_uc1611_i2c_ids4073_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1611_ids4073, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7511 */ /* st7511 1 */ void u8g2_Setup_st7511_avd_320x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7511_avd_320x240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7511 2 */ void u8g2_Setup_st7511_avd_320x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7511_avd_320x240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7511 f */ void u8g2_Setup_st7511_avd_320x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7511_avd_320x240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 */ /* st7528 1 */ void u8g2_Setup_st7528_nhd_c160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 2 */ void u8g2_Setup_st7528_nhd_c160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 f */ void u8g2_Setup_st7528_nhd_c160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 */ /* st7528 1 */ void u8g2_Setup_st7528_i2c_nhd_c160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 2 */ void u8g2_Setup_st7528_i2c_nhd_c160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 f */ void u8g2_Setup_st7528_i2c_nhd_c160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_nhd_c160100, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 */ /* st7528 1 */ void u8g2_Setup_st7528_erc16064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 2 */ void u8g2_Setup_st7528_erc16064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 f */ void u8g2_Setup_st7528_erc16064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 */ /* st7528 1 */ void u8g2_Setup_st7528_i2c_erc16064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 2 */ void u8g2_Setup_st7528_i2c_erc16064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7528 f */ void u8g2_Setup_st7528_i2c_erc16064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7528_erc16064, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 */ /* uc1617 1 */ void u8g2_Setup_uc1617_jlx128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 2 */ void u8g2_Setup_uc1617_jlx128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 f */ void u8g2_Setup_uc1617_jlx128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 */ /* uc1617 1 */ void u8g2_Setup_uc1617_i2c_jlx128128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 2 */ void u8g2_Setup_uc1617_i2c_jlx128128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1617 f */ void u8g2_Setup_uc1617_i2c_jlx128128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1617_jlx128128, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 */ /* st7565 1 */ void u8g2_Setup_st7565_ea_dogm128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6063_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6063, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_64128n_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_64128n, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_zolen_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_zolen_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6059_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6059, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_ks0713_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ks0713, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864_alt, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_nhd_c12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 2 */ void u8g2_Setup_st7565_ea_dogm128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6063_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6063, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_64128n_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_64128n, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_zolen_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_zolen_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6059_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6059, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_ks0713_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ks0713, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864_alt, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_nhd_c12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 f */ void u8g2_Setup_st7565_ea_dogm128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6063_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6063, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_64128n_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_64128n, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_zolen_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_zolen_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lm6059_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lm6059, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_ks0713_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ks0713, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_lx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_lx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_erc12864_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_erc12864_alt, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_nhd_c12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7565_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 */ /* st7565 1 */ void u8g2_Setup_st7565_nhd_c12832_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 2 */ void u8g2_Setup_st7565_nhd_c12832_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 f */ void u8g2_Setup_st7565_nhd_c12832_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 */ /* uc1601 1 */ void u8g2_Setup_uc1601_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 2 */ void u8g2_Setup_uc1601_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 f */ void u8g2_Setup_uc1601_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 */ /* uc1601 1 */ void u8g2_Setup_uc1601_i2c_128x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 2 */ void u8g2_Setup_uc1601_i2c_128x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* uc1601 f */ void u8g2_Setup_uc1601_i2c_128x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_uc1601_128x32, u8x8_cad_uc16xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 */ /* st7565 1 */ void u8g2_Setup_st7565_ea_dogm132_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 2 */ void u8g2_Setup_st7565_ea_dogm132_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7565 f */ void u8g2_Setup_st7565_ea_dogm132_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 */ /* st7567 1 */ void u8g2_Setup_st7567_pi_132x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_pi_132x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 2 */ void u8g2_Setup_st7567_pi_132x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_pi_132x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 f */ void u8g2_Setup_st7567_pi_132x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_pi_132x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_17_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 */ /* st7567 1 */ void u8g2_Setup_st7567_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064i_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064i, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_os12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_os12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 2 */ void u8g2_Setup_st7567_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064i_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064i, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_os12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_os12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 f */ void u8g2_Setup_st7567_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_enh_dg128064i_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_enh_dg128064i, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_os12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_os12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 */ /* st7567 1 */ void u8g2_Setup_st7567_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_hem6432_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 2 */ void u8g2_Setup_st7567_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_hem6432_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 f */ void u8g2_Setup_st7567_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_hem6432_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 */ /* st7567 1 */ void u8g2_Setup_st7567_i2c_64x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_i2c_hem6432_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 2 */ void u8g2_Setup_st7567_i2c_64x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_i2c_hem6432_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7567 f */ void u8g2_Setup_st7567_i2c_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st7567_i2c_hem6432_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_hem6432, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 */ /* st7571 1 */ void u8g2_Setup_st7571_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 2 */ void u8g2_Setup_st7571_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 f */ void u8g2_Setup_st7571_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 */ /* st7571 1 */ void u8g2_Setup_st7571_i2c_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 2 */ void u8g2_Setup_st7571_i2c_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7571 f */ void u8g2_Setup_st7571_i2c_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7571_128x128, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7586s */ /* st7586s 1 */ void u8g2_Setup_st7586s_s028hn118a_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_s028hn118a, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_17_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7586s 2 */ void u8g2_Setup_st7586s_s028hn118a_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_s028hn118a, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_17_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7586s f */ void u8g2_Setup_st7586s_s028hn118a_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_s028hn118a, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_17_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7586s */ /* st7586s 1 */ void u8g2_Setup_st7586s_erc240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_erc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_st7586s_ymc240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_ymc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7586s 2 */ void u8g2_Setup_st7586s_erc240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_erc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_st7586s_ymc240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_ymc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7586s f */ void u8g2_Setup_st7586s_erc240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_erc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_st7586s_ymc240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7586s_ymc240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* st7588 */ /* st7588 1 */ void u8g2_Setup_st7588_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7588 2 */ void u8g2_Setup_st7588_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7588 f */ void u8g2_Setup_st7588_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7588 */ /* st7588 1 */ void u8g2_Setup_st7588_i2c_jlx12864_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7588 2 */ void u8g2_Setup_st7588_i2c_jlx12864_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st7588 f */ void u8g2_Setup_st7588_i2c_jlx12864_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7588_jlx12864, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx256128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_wo256x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx256128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_wo256x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx256128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_wo256x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx256128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_wo256x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx256128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_wo256x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx256128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_wo256x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_wo256x128, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx256160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160m_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx256160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160m_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx256160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160m_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_jlx256160_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx256160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160m_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx256160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160m_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx256160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160m_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160m, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_st75256_i2c_jlx256160_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx256160_alt, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx240160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx240160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx240160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx240160, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx25664_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx25664_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx25664_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx25664_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx25664_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx25664_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx25664, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx172104_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx172104_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx172104_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx172104_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx172104_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx172104_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx172104, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_jlx19296_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_jlx19296_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_jlx19296_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 */ /* st75256 1 */ void u8g2_Setup_st75256_i2c_jlx19296_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 2 */ void u8g2_Setup_st75256_i2c_jlx19296_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75256 f */ void u8g2_Setup_st75256_i2c_jlx19296_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75256_jlx19296, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_12_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 */ /* st75320 1 */ void u8g2_Setup_st75320_jlx320240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 2 */ void u8g2_Setup_st75320_jlx320240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 f */ void u8g2_Setup_st75320_jlx320240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 */ /* st75320 1 */ void u8g2_Setup_st75320_i2c_jlx320240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 2 */ void u8g2_Setup_st75320_i2c_jlx320240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* st75320 f */ void u8g2_Setup_st75320_i2c_jlx320240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st75320_jlx320240, u8x8_cad_st75256_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* nt7534 */ /* nt7534 1 */ void u8g2_Setup_nt7534_tg12864r_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_nt7534_tg12864r, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* nt7534 2 */ void u8g2_Setup_nt7534_tg12864r_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_nt7534_tg12864r, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* nt7534 f */ void u8g2_Setup_nt7534_tg12864r_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_nt7534_tg12864r, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist3020 */ /* ist3020 1 */ void u8g2_Setup_ist3020_erc19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist3020_erc19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist3020 2 */ void u8g2_Setup_ist3020_erc19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist3020_erc19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist3020 f */ void u8g2_Setup_ist3020_erc19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist3020_erc19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist7920 */ /* ist7920 1 */ void u8g2_Setup_ist7920_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist7920_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist7920 2 */ void u8g2_Setup_ist7920_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist7920_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ist7920 f */ void u8g2_Setup_ist7920_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ist7920_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sbn1661 */ /* sbn1661 1 */ void u8g2_Setup_sbn1661_122x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sbn1661_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sbn1661 2 */ void u8g2_Setup_sbn1661_122x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sbn1661_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sbn1661 f */ void u8g2_Setup_sbn1661_122x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sbn1661_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sed1520 */ /* sed1520 1 */ void u8g2_Setup_sed1520_122x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1520_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sed1520 2 */ void u8g2_Setup_sed1520_122x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1520_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sed1520 f */ void u8g2_Setup_sed1520_122x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1520_122x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 */ /* ks0108 1 */ void u8g2_Setup_ks0108_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 2 */ void u8g2_Setup_ks0108_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 f */ void u8g2_Setup_ks0108_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 */ /* ks0108 1 */ void u8g2_Setup_ks0108_erm19264_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_erm19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 2 */ void u8g2_Setup_ks0108_erm19264_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_erm19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ks0108 f */ void u8g2_Setup_ks0108_erm19264_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ks0108_erm19264, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_24_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* lc7981 */ /* lc7981 1 */ void u8g2_Setup_lc7981_160x80_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 2 */ void u8g2_Setup_lc7981_160x80_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 f */ void u8g2_Setup_lc7981_160x80_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 */ /* lc7981 1 */ void u8g2_Setup_lc7981_160x160_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x160, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 2 */ void u8g2_Setup_lc7981_160x160_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x160, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 f */ void u8g2_Setup_lc7981_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_160x160, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 */ /* lc7981 1 */ void u8g2_Setup_lc7981_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 2 */ void u8g2_Setup_lc7981_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 f */ void u8g2_Setup_lc7981_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 */ /* lc7981 1 */ void u8g2_Setup_lc7981_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 2 */ void u8g2_Setup_lc7981_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* lc7981 f */ void u8g2_Setup_lc7981_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_lc7981_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 */ /* t6963 1 */ void u8g2_Setup_t6963_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 2 */ void u8g2_Setup_t6963_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 f */ void u8g2_Setup_t6963_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 */ /* t6963 1 */ void u8g2_Setup_t6963_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 2 */ void u8g2_Setup_t6963_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 f */ void u8g2_Setup_t6963_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_240x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 */ /* t6963 1 */ void u8g2_Setup_t6963_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_256x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 2 */ void u8g2_Setup_t6963_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_256x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 f */ void u8g2_Setup_t6963_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_256x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 */ /* t6963 1 */ void u8g2_Setup_t6963_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_t6963_128x64_alt_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64_alt, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 2 */ void u8g2_Setup_t6963_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_t6963_128x64_alt_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64_alt, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 f */ void u8g2_Setup_t6963_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } void u8g2_Setup_t6963_128x64_alt_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_128x64_alt, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 */ /* t6963 1 */ void u8g2_Setup_t6963_160x80_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 2 */ void u8g2_Setup_t6963_160x80_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* t6963 f */ void u8g2_Setup_t6963_160x80_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_t6963_160x80, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_10_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ssd1320 */ /* ssd1320 1 */ void u8g2_Setup_ssd1320_160x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_4_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1320 2 */ void u8g2_Setup_ssd1320_160x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_4_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1320 f */ void u8g2_Setup_ssd1320_160x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1320 */ /* ssd1320 1 */ void u8g2_Setup_ssd1320_160x132_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_17_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1320 2 */ void u8g2_Setup_ssd1320_160x132_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_17_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1320 f */ void u8g2_Setup_ssd1320_160x132_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1320_160x132, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_17_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 */ /* ssd1322 1 */ void u8g2_Setup_ssd1322_nhd_256x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 2 */ void u8g2_Setup_ssd1322_nhd_256x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 f */ void u8g2_Setup_ssd1322_nhd_256x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_32_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 */ /* ssd1322 1 */ void u8g2_Setup_ssd1322_nhd_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_128x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 2 */ void u8g2_Setup_ssd1322_nhd_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_128x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1322 f */ void u8g2_Setup_ssd1322_nhd_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1322_nhd_128x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_16_8_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1606 */ /* ssd1606 1 */ void u8g2_Setup_ssd1606_172x72_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1606_172x72, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_9_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1606 2 */ void u8g2_Setup_ssd1606_172x72_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1606_172x72, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_9_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1606 f */ void u8g2_Setup_ssd1606_172x72_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1606_172x72, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_22_9_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1607 */ /* ssd1607 1 */ void u8g2_Setup_ssd1607_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_gd_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_gd_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_ws_200x200_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_ws_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1607 2 */ void u8g2_Setup_ssd1607_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_gd_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_gd_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_ws_200x200_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_ws_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* ssd1607 f */ void u8g2_Setup_ssd1607_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_gd_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_gd_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_ssd1607_ws_200x200_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ssd1607_ws_200x200, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_25_25_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* il3820 */ /* il3820 1 */ void u8g2_Setup_il3820_296x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_il3820_v2_296x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_v2_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* il3820 2 */ void u8g2_Setup_il3820_296x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_il3820_v2_296x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_v2_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* il3820 f */ void u8g2_Setup_il3820_296x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } void u8g2_Setup_il3820_v2_296x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_il3820_v2_296x128, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_37_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* sed1330 */ /* sed1330 1 */ void u8g2_Setup_sed1330_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1330_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sed1330 2 */ void u8g2_Setup_sed1330_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1330_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* sed1330 f */ void u8g2_Setup_sed1330_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sed1330_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 */ /* ra8835 1 */ void u8g2_Setup_ra8835_nhd_240x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_nhd_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 2 */ void u8g2_Setup_ra8835_nhd_240x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_nhd_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 f */ void u8g2_Setup_ra8835_nhd_240x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_nhd_240x128, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_30_16_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 */ /* ra8835 1 */ void u8g2_Setup_ra8835_320x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_320x240, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 2 */ void u8g2_Setup_ra8835_320x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_320x240, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* ra8835 f */ void u8g2_Setup_ra8835_320x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_ra8835_320x240, u8x8_cad_100, byte_cb, gpio_and_delay_cb); buf = u8g2_m_40_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 */ /* max7219 1 */ void u8g2_Setup_max7219_64x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_64x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_1_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 2 */ void u8g2_Setup_max7219_64x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_64x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_1_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 f */ void u8g2_Setup_max7219_64x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_64x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_1_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 */ /* max7219 1 */ void u8g2_Setup_max7219_32x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_32x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_4_1_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 2 */ void u8g2_Setup_max7219_32x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_32x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_4_1_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 f */ void u8g2_Setup_max7219_32x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_32x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_4_1_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 */ /* max7219 1 */ void u8g2_Setup_max7219_8x8_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_8x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_1_1_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 2 */ void u8g2_Setup_max7219_8x8_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_8x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_1_1_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* max7219 f */ void u8g2_Setup_max7219_8x8_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_max7219_8x8, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_1_1_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* s1d15e06 */ /* s1d15e06 1 */ void u8g2_Setup_s1d15e06_160100_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15e06_160100, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* s1d15e06 2 */ void u8g2_Setup_s1d15e06_160100_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15e06_160100, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* s1d15e06 f */ void u8g2_Setup_s1d15e06_160100_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15e06_160100, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* s1d15721 */ /* s1d15721 1 */ void u8g2_Setup_s1d15721_240x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15721_240x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* s1d15721 2 */ void u8g2_Setup_s1d15721_240x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15721_240x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* s1d15721 f */ void u8g2_Setup_s1d15721_240x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_s1d15721_240x64, u8x8_cad_011, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_13_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); } /* a2printer */ /* a2printer 1 */ void u8g2_Setup_a2printer_384x240_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_a2printer_384x240, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_30_1(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* a2printer 2 */ void u8g2_Setup_a2printer_384x240_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_a2printer_384x240, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_30_2(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* a2printer f */ void u8g2_Setup_a2printer_384x240_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_a2printer_384x240, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); buf = u8g2_m_48_30_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation); } /* end of generated code */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_font.c ================================================ /* u8g2_font.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* size of the font data structure, there is no struct or class... */ /* this is the size for the new font format */ #define U8G2_FONT_DATA_STRUCT_SIZE 23 /* font data: offset bytes description 0 1 glyph_cnt number of glyphs 1 1 bbx_mode 0: proportional, 1: common height, 2: monospace, 3: multiple of 8 2 1 bits_per_0 glyph rle parameter 3 1 bits_per_1 glyph rle parameter 4 1 bits_per_char_width glyph rle parameter 5 1 bits_per_char_height glyph rle parameter 6 1 bits_per_char_x glyph rle parameter 7 1 bits_per_char_y glyph rle parameter 8 1 bits_per_delta_x glyph rle parameter 9 1 max_char_width 10 1 max_char_height 11 1 x offset 12 1 y offset (descent) 13 1 ascent (capital A) 14 1 descent (lower g) 15 1 ascent '(' 16 1 descent ')' 17 1 start pos 'A' high byte 18 1 start pos 'A' low byte 19 1 start pos 'a' high byte 20 1 start pos 'a' low byte 21 1 start pos unicode high byte 22 1 start pos unicode low byte Font build mode, 0: proportional, 1: common height, 2: monospace, 3: multiple of 8 Font build mode 0: - "t" - Ref height mode: U8G2_FONT_HEIGHT_MODE_TEXT, U8G2_FONT_HEIGHT_MODE_XTEXT or U8G2_FONT_HEIGHT_MODE_ALL - use in transparent mode only (does not look good in solid mode) - most compact format - different font heights possible Font build mode 1: - "h" - Ref height mode: U8G2_FONT_HEIGHT_MODE_ALL - transparent or solid mode - The height of the glyphs depend on the largest glyph in the font. This means font height depends on postfix "r", "f" and "n". */ /* use case: What is the width and the height of the minimal box into which string s fints? */ void u8g2_font_GetStrSize(const void *font, const char *s, u8g2_uint_t *width, u8g2_uint_t *height); void u8g2_font_GetStrSizeP(const void *font, const char *s, u8g2_uint_t *width, u8g2_uint_t *height); /* use case: lower left edge of a minimal box is known, what is the correct x, y position for the string draw procedure */ void u8g2_font_AdjustXYToDraw(const void *font, const char *s, u8g2_uint_t *x, u8g2_uint_t *y); void u8g2_font_AdjustXYToDrawP(const void *font, const char *s, u8g2_uint_t *x, u8g2_uint_t *y); /* use case: Baseline origin known, return minimal box */ void u8g2_font_GetStrMinBox(u8g2_t *u8g2, const void *font, const char *s, u8g2_uint_t *x, u8g2_uint_t *y, u8g2_uint_t *width, u8g2_uint_t *height); /* procedures */ /*========================================================================*/ /* low level byte and word access */ /* removed NOINLINE, because it leads to smaller code, might also be faster */ //static uint8_t u8g2_font_get_byte(const uint8_t *font, uint8_t offset) U8G2_NOINLINE; static uint8_t u8g2_font_get_byte(const uint8_t *font, uint8_t offset) { font += offset; return u8x8_pgm_read( font ); } static uint16_t u8g2_font_get_word(const uint8_t *font, uint8_t offset) U8G2_NOINLINE; static uint16_t u8g2_font_get_word(const uint8_t *font, uint8_t offset) { uint16_t pos; font += offset; pos = u8x8_pgm_read( font ); font++; pos <<= 8; pos += u8x8_pgm_read( font); return pos; } /*========================================================================*/ /* new font format */ void u8g2_read_font_info(u8g2_font_info_t *font_info, const uint8_t *font) { /* offset 0 */ font_info->glyph_cnt = u8g2_font_get_byte(font, 0); font_info->bbx_mode = u8g2_font_get_byte(font, 1); font_info->bits_per_0 = u8g2_font_get_byte(font, 2); font_info->bits_per_1 = u8g2_font_get_byte(font, 3); /* offset 4 */ font_info->bits_per_char_width = u8g2_font_get_byte(font, 4); font_info->bits_per_char_height = u8g2_font_get_byte(font, 5); font_info->bits_per_char_x = u8g2_font_get_byte(font, 6); font_info->bits_per_char_y = u8g2_font_get_byte(font, 7); font_info->bits_per_delta_x = u8g2_font_get_byte(font, 8); /* offset 9 */ font_info->max_char_width = u8g2_font_get_byte(font, 9); font_info->max_char_height = u8g2_font_get_byte(font, 10); font_info->x_offset = u8g2_font_get_byte(font, 11); font_info->y_offset = u8g2_font_get_byte(font, 12); /* offset 13 */ font_info->ascent_A = u8g2_font_get_byte(font, 13); font_info->descent_g = u8g2_font_get_byte(font, 14); font_info->ascent_para = u8g2_font_get_byte(font, 15); font_info->descent_para = u8g2_font_get_byte(font, 16); /* offset 17 */ font_info->start_pos_upper_A = u8g2_font_get_word(font, 17); font_info->start_pos_lower_a = u8g2_font_get_word(font, 19); /* offset 21 */ #ifdef U8G2_WITH_UNICODE font_info->start_pos_unicode = u8g2_font_get_word(font, 21); #endif } /* calculate the overall length of the font, only used to create the picture for the google wiki */ size_t u8g2_GetFontSize(const uint8_t *font_arg) { uint16_t e; const uint8_t *font = font_arg; font += U8G2_FONT_DATA_STRUCT_SIZE; for(;;) { if ( u8x8_pgm_read( font + 1 ) == 0 ) break; font += u8x8_pgm_read( font + 1 ); } /* continue with unicode section */ font += 2; /* skip unicode lookup table */ font += u8g2_font_get_word(font, 0); for(;;) { e = u8x8_pgm_read( font ); e <<= 8; e |= u8x8_pgm_read( font + 1 ); if ( e == 0 ) break; font += u8x8_pgm_read( font + 2 ); } return (font - font_arg) + 2; } /*========================================================================*/ /* u8g2 interface, font access */ uint8_t u8g2_GetFontBBXWidth(u8g2_t *u8g2) { return u8g2->font_info.max_char_width; /* new font info structure */ } uint8_t u8g2_GetFontBBXHeight(u8g2_t *u8g2) { return u8g2->font_info.max_char_height; /* new font info structure */ } int8_t u8g2_GetFontBBXOffX(u8g2_t *u8g2) U8G2_NOINLINE; int8_t u8g2_GetFontBBXOffX(u8g2_t *u8g2) { return u8g2->font_info.x_offset; /* new font info structure */ } int8_t u8g2_GetFontBBXOffY(u8g2_t *u8g2) U8G2_NOINLINE; int8_t u8g2_GetFontBBXOffY(u8g2_t *u8g2) { return u8g2->font_info.y_offset; /* new font info structure */ } uint8_t u8g2_GetFontCapitalAHeight(u8g2_t *u8g2) U8G2_NOINLINE; uint8_t u8g2_GetFontCapitalAHeight(u8g2_t *u8g2) { return u8g2->font_info.ascent_A; /* new font info structure */ } /*========================================================================*/ /* glyph handling */ /* optimized */ uint8_t u8g2_font_decode_get_unsigned_bits(u8g2_font_decode_t *f, uint8_t cnt) { uint8_t val; uint8_t bit_pos = f->decode_bit_pos; uint8_t bit_pos_plus_cnt; //val = *(f->decode_ptr); val = u8x8_pgm_read( f->decode_ptr ); val >>= bit_pos; bit_pos_plus_cnt = bit_pos; bit_pos_plus_cnt += cnt; if ( bit_pos_plus_cnt >= 8 ) { uint8_t s = 8; s -= bit_pos; f->decode_ptr++; //val |= *(f->decode_ptr) << (8-bit_pos); val |= u8x8_pgm_read( f->decode_ptr ) << (s); //bit_pos -= 8; bit_pos_plus_cnt -= 8; } val &= (1U<decode_bit_pos = bit_pos_plus_cnt; return val; } /* 2 bit --> cnt = 2 -2,-1,0. 1 3 bit --> cnt = 3 -2,-1,0. 1 -4,-3,-2,-1,0,1,2,3 if ( x < 0 ) r = bits(x-1)+1; else r = bits(x)+1; */ /* optimized */ int8_t u8g2_font_decode_get_signed_bits(u8g2_font_decode_t *f, uint8_t cnt) { int8_t v, d; v = (int8_t)u8g2_font_decode_get_unsigned_bits(f, cnt); d = 1; cnt--; d <<= cnt; v -= d; return v; //return (int8_t)u8g2_font_decode_get_unsigned_bits(f, cnt) - ((1<>1); } #ifdef U8G2_WITH_FONT_ROTATION u8g2_uint_t u8g2_add_vector_y(u8g2_uint_t dy, int8_t x, int8_t y, uint8_t dir) { switch(dir) { case 0: dy += y; break; case 1: dy += x; break; case 2: dy -= y; break; default: dy -= x; break; } return dy; } u8g2_uint_t u8g2_add_vector_x(u8g2_uint_t dx, int8_t x, int8_t y, uint8_t dir) { switch(dir) { case 0: dx += x; break; case 1: dx -= y; break; case 2: dx -= x; break; default: dx += y; break; } return dx; } /* // does not make sense, 50 bytes more required on avr void u8g2_add_vector(u8g2_uint_t *xp, u8g2_uint_t *yp, int8_t x, int8_t y, uint8_t dir) { u8g2_uint_t x_ = *xp; u8g2_uint_t y_ = *yp; switch(dir) { case 0: y_ += y; x_ += x; break; case 1: y_ += x; x_ -= y; break; case 2: y_ -= y; x_ -= x; break; default: y_ -= x; x_ += y; break; } *xp = x_; *yp = y_; } */ #endif /* Description: Draw a run-length area of the glyph. "len" can have any size and the line length has to be wrapped at the glyph border. Args: len: Length of the line is_foreground foreground/background? u8g2->font_decode.target_x X position u8g2->font_decode.target_y Y position u8g2->font_decode.is_transparent Transparent mode Return: - Calls: u8g2_Draw90Line() Called by: u8g2_font_decode_glyph() */ /* optimized */ void u8g2_font_decode_len(u8g2_t *u8g2, uint8_t len, uint8_t is_foreground) { uint8_t cnt; /* total number of remaining pixels, which have to be drawn */ uint8_t rem; /* remaining pixel to the right edge of the glyph */ uint8_t current; /* number of pixels, which need to be drawn for the draw procedure */ /* current is either equal to cnt or equal to rem */ /* local coordinates of the glyph */ uint8_t lx,ly; /* target position on the screen */ u8g2_uint_t x, y; u8g2_font_decode_t *decode = &(u8g2->font_decode); cnt = len; /* get the local position */ lx = decode->x; ly = decode->y; for(;;) { /* calculate the number of pixel to the right edge of the glyph */ rem = decode->glyph_width; rem -= lx; /* calculate how many pixel to draw. This is either to the right edge */ /* or lesser, if not enough pixel are left */ current = rem; if ( cnt < rem ) current = cnt; /* now draw the line, but apply the rotation around the glyph target position */ //u8g2_font_decode_draw_pixel(u8g2, lx,ly,current, is_foreground); /* get target position */ x = decode->target_x; y = decode->target_y; /* apply rotation */ #ifdef U8G2_WITH_FONT_ROTATION x = u8g2_add_vector_x(x, lx, ly, decode->dir); y = u8g2_add_vector_y(y, lx, ly, decode->dir); //u8g2_add_vector(&x, &y, lx, ly, decode->dir); #else x += lx; y += ly; #endif /* draw foreground and background (if required) */ if ( is_foreground ) { u8g2->draw_color = decode->fg_color; /* draw_color will be restored later */ u8g2_DrawHVLine(u8g2, x, y, current, #ifdef U8G2_WITH_FONT_ROTATION /* dir */ decode->dir #else 0 #endif ); } else if ( decode->is_transparent == 0 ) { u8g2->draw_color = decode->bg_color; /* draw_color will be restored later */ u8g2_DrawHVLine(u8g2, x, y, current, #ifdef U8G2_WITH_FONT_ROTATION /* dir */ decode->dir #else 0 #endif ); } /* check, whether the end of the run length code has been reached */ if ( cnt < rem ) break; cnt -= rem; lx = 0; ly++; } lx += cnt; decode->x = lx; decode->y = ly; } static void u8g2_font_setup_decode(u8g2_t *u8g2, const uint8_t *glyph_data) { u8g2_font_decode_t *decode = &(u8g2->font_decode); decode->decode_ptr = glyph_data; decode->decode_bit_pos = 0; /* 8 Nov 2015, this is already done in the glyph data search procedure */ /* decode->decode_ptr += 1; decode->decode_ptr += 1; */ decode->glyph_width = u8g2_font_decode_get_unsigned_bits(decode, u8g2->font_info.bits_per_char_width); decode->glyph_height = u8g2_font_decode_get_unsigned_bits(decode,u8g2->font_info.bits_per_char_height); decode->fg_color = u8g2->draw_color; decode->bg_color = (decode->fg_color == 0 ? 1 : 0); } /* Description: Decode and draw a glyph. Args: glyph_data: Pointer to the compressed glyph data of the font u8g2->font_decode.target_x X position u8g2->font_decode.target_y Y position u8g2->font_decode.is_transparent Transparent mode Return: Width (delta x advance) of the glyph. Calls: u8g2_font_decode_len() */ /* optimized */ int8_t u8g2_font_decode_glyph(u8g2_t *u8g2, const uint8_t *glyph_data) { uint8_t a, b; int8_t x, y; int8_t d; int8_t h; u8g2_font_decode_t *decode = &(u8g2->font_decode); u8g2_font_setup_decode(u8g2, glyph_data); h = u8g2->font_decode.glyph_height; x = u8g2_font_decode_get_signed_bits(decode, u8g2->font_info.bits_per_char_x); y = u8g2_font_decode_get_signed_bits(decode, u8g2->font_info.bits_per_char_y); d = u8g2_font_decode_get_signed_bits(decode, u8g2->font_info.bits_per_delta_x); if ( decode->glyph_width > 0 ) { #ifdef U8G2_WITH_FONT_ROTATION decode->target_x = u8g2_add_vector_x(decode->target_x, x, -(h+y), decode->dir); decode->target_y = u8g2_add_vector_y(decode->target_y, x, -(h+y), decode->dir); //u8g2_add_vector(&(decode->target_x), &(decode->target_y), x, -(h+y), decode->dir); #else decode->target_x += x; decode->target_y -= h+y; #endif //u8g2_add_vector(&(decode->target_x), &(decode->target_y), x, -(h+y), decode->dir); #ifdef U8G2_WITH_INTERSECTION { u8g2_uint_t x0, x1, y0, y1; x0 = decode->target_x; y0 = decode->target_y; x1 = x0; y1 = y0; #ifdef U8G2_WITH_FONT_ROTATION switch(decode->dir) { case 0: x1 += decode->glyph_width; y1 += h; break; case 1: x0 -= h; x0++; /* shift down, because of assymetric boundaries for the interseciton test */ x1++; y1 += decode->glyph_width; break; case 2: x0 -= decode->glyph_width; x0++; /* shift down, because of assymetric boundaries for the interseciton test */ x1++; y0 -= h; y0++; /* shift down, because of assymetric boundaries for the interseciton test */ y1++; break; case 3: x1 += h; y0 -= decode->glyph_width; y0++; /* shift down, because of assymetric boundaries for the interseciton test */ y1++; break; } #else /* U8G2_WITH_FONT_ROTATION */ x1 += decode->glyph_width; y1 += h; #endif if ( u8g2_IsIntersection(u8g2, x0, y0, x1, y1) == 0 ) return d; } #endif /* U8G2_WITH_INTERSECTION */ /* reset local x/y position */ decode->x = 0; decode->y = 0; /* decode glyph */ for(;;) { a = u8g2_font_decode_get_unsigned_bits(decode, u8g2->font_info.bits_per_0); b = u8g2_font_decode_get_unsigned_bits(decode, u8g2->font_info.bits_per_1); do { u8g2_font_decode_len(u8g2, a, 0); u8g2_font_decode_len(u8g2, b, 1); } while( u8g2_font_decode_get_unsigned_bits(decode, 1) != 0 ); if ( decode->y >= h ) break; } /* restore the u8g2 draw color, because this is modified by the decode algo */ u8g2->draw_color = decode->fg_color; } return d; } /* Description: Find the starting point of the glyph data. Args: encoding: Encoding (ASCII or Unicode) of the glyph Return: Address of the glyph data or NULL, if the encoding is not avialable in the font. */ const uint8_t *u8g2_font_get_glyph_data(u8g2_t *u8g2, uint16_t encoding) { const uint8_t *font = u8g2->font; font += U8G2_FONT_DATA_STRUCT_SIZE; if ( encoding <= 255 ) { if ( encoding >= 'a' ) { font += u8g2->font_info.start_pos_lower_a; } else if ( encoding >= 'A' ) { font += u8g2->font_info.start_pos_upper_A; } for(;;) { if ( u8x8_pgm_read( font + 1 ) == 0 ) break; if ( u8x8_pgm_read( font ) == encoding ) { return font+2; /* skip encoding and glyph size */ } font += u8x8_pgm_read( font + 1 ); } } #ifdef U8G2_WITH_UNICODE else { uint16_t e; const uint8_t *unicode_lookup_table; // removed, there is now the new index table //#ifdef __unix__ // if ( u8g2->last_font_data != NULL && encoding >= u8g2->last_unicode ) // { // font = u8g2->last_font_data; // } // else //#endif font += u8g2->font_info.start_pos_unicode; unicode_lookup_table = font; /* issue 596: search for the glyph start in the unicode lookup table */ do { font += u8g2_font_get_word(unicode_lookup_table, 0); e = u8g2_font_get_word(unicode_lookup_table, 2); unicode_lookup_table+=4; } while( e < encoding ); for(;;) { e = u8x8_pgm_read( font ); e <<= 8; e |= u8x8_pgm_read( font + 1 ); // removed, there is now the new index table //#ifdef __unix__ // if ( encoding < e ) // break; //#endif if ( e == 0 ) break; if ( e == encoding ) { // removed, there is now the new index table //#ifdef __unix__ // u8g2->last_font_data = font; // u8g2->last_unicode = encoding; //#endif return font+3; /* skip encoding and glyph size */ } font += u8x8_pgm_read( font + 2 ); } } #endif return NULL; } static u8g2_uint_t u8g2_font_draw_glyph(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding) { u8g2_uint_t dx = 0; u8g2->font_decode.target_x = x; u8g2->font_decode.target_y = y; //u8g2->font_decode.is_transparent = is_transparent; this is already set //u8g2->font_decode.dir = dir; const uint8_t *glyph_data = u8g2_font_get_glyph_data(u8g2, encoding); if ( glyph_data != NULL ) { dx = u8g2_font_decode_glyph(u8g2, glyph_data); } return dx; } uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding) { /* updated to new code */ if ( u8g2_font_get_glyph_data(u8g2, requested_encoding) != NULL ) return 1; return 0; } /* side effect: updates u8g2->font_decode and u8g2->glyph_x_offset */ int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding) { const uint8_t *glyph_data = u8g2_font_get_glyph_data(u8g2, requested_encoding); if ( glyph_data == NULL ) return 0; u8g2_font_setup_decode(u8g2, glyph_data); u8g2->glyph_x_offset = u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_char_x); u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_char_y); /* glyph width is here: u8g2->font_decode.glyph_width */ return u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_delta_x); } /* set one of: U8G2_FONT_MODE_TRANSPARENT U8G2_FONT_MODE_SOLID U8G2_FONT_MODE_NONE This has been changed for the new font procedures */ void u8g2_SetFontMode(u8g2_t *u8g2, uint8_t is_transparent) { u8g2->font_decode.is_transparent = is_transparent; // new font procedures } u8g2_uint_t u8g2_DrawGlyph(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding) { #ifdef U8G2_WITH_FONT_ROTATION switch(u8g2->font_decode.dir) { case 0: y += u8g2->font_calc_vref(u8g2); break; case 1: x -= u8g2->font_calc_vref(u8g2); break; case 2: y -= u8g2->font_calc_vref(u8g2); break; case 3: x += u8g2->font_calc_vref(u8g2); break; } #else y += u8g2->font_calc_vref(u8g2); #endif return u8g2_font_draw_glyph(u8g2, x, y, encoding); } static u8g2_uint_t u8g2_draw_string(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str) U8G2_NOINLINE; static u8g2_uint_t u8g2_draw_string(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str) { uint16_t e; u8g2_uint_t delta, sum; u8x8_utf8_init(u8g2_GetU8x8(u8g2)); sum = 0; for(;;) { e = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); if ( e == 0x0ffff ) break; str++; if ( e != 0x0fffe ) { delta = u8g2_DrawGlyph(u8g2, x, y, e); #ifdef U8G2_WITH_FONT_ROTATION switch(u8g2->font_decode.dir) { case 0: x += delta; break; case 1: y += delta; break; case 2: x -= delta; break; case 3: y -= delta; break; } /* // requires 10 bytes more on avr x = u8g2_add_vector_x(x, delta, 0, u8g2->font_decode.dir); y = u8g2_add_vector_y(y, delta, 0, u8g2->font_decode.dir); */ #else x += delta; #endif sum += delta; } } return sum; } u8g2_uint_t u8g2_DrawStr(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str) { u8g2->u8x8.next_cb = u8x8_ascii_next; return u8g2_draw_string(u8g2, x, y, str); } /* source: https://en.wikipedia.org/wiki/UTF-8 Bits from to bytes Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 7 U+0000 U+007F 1 0xxxxxxx 11 U+0080 U+07FF 2 110xxxxx 10xxxxxx 16 U+0800 U+FFFF 3 1110xxxx 10xxxxxx 10xxxxxx 21 U+10000 U+1FFFFF 4 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 26 U+200000 U+3FFFFFF 5 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 31 U+4000000 U+7FFFFFFF 6 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */ u8g2_uint_t u8g2_DrawUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str) { u8g2->u8x8.next_cb = u8x8_utf8_next; return u8g2_draw_string(u8g2, x, y, str); } u8g2_uint_t u8g2_DrawExtendedUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint8_t to_left, u8g2_kerning_t *kerning, const char *str) { u8g2->u8x8.next_cb = u8x8_utf8_next; uint16_t e_prev = 0x0ffff; uint16_t e; u8g2_uint_t delta, sum, k; u8x8_utf8_init(u8g2_GetU8x8(u8g2)); sum = 0; for(;;) { e = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); if ( e == 0x0ffff ) break; str++; if ( e != 0x0fffe ) { delta = u8g2_GetGlyphWidth(u8g2, e); if ( to_left ) { k = u8g2_GetKerning(u8g2, kerning, e, e_prev); delta -= k; x -= delta; } else { k = u8g2_GetKerning(u8g2, kerning, e_prev, e); delta -= k; } e_prev = e; u8g2_DrawGlyph(u8g2, x, y, e); if ( to_left ) { } else { x += delta; x -= k; } sum += delta; } } return sum; } u8g2_uint_t u8g2_DrawExtUTF8(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint8_t to_left, const uint16_t *kerning_table, const char *str) { u8g2->u8x8.next_cb = u8x8_utf8_next; uint16_t e_prev = 0x0ffff; uint16_t e; u8g2_uint_t delta, sum, k; u8x8_utf8_init(u8g2_GetU8x8(u8g2)); sum = 0; for(;;) { e = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); if ( e == 0x0ffff ) break; str++; if ( e != 0x0fffe ) { delta = u8g2_GetGlyphWidth(u8g2, e); if ( to_left ) { k = u8g2_GetKerningByTable(u8g2, kerning_table, e, e_prev); delta -= k; x -= delta; } else { k = u8g2_GetKerningByTable(u8g2, kerning_table, e_prev, e); delta -= k; } e_prev = e; if ( to_left ) { } else { x += delta; } u8g2_DrawGlyph(u8g2, x, y, e); if ( to_left ) { } else { //x += delta; //x -= k; } sum += delta; } } return sum; } /*===============================================*/ /* set ascent/descent for reference point calculation */ void u8g2_UpdateRefHeight(u8g2_t *u8g2) { if ( u8g2->font == NULL ) return; u8g2->font_ref_ascent = u8g2->font_info.ascent_A; u8g2->font_ref_descent = u8g2->font_info.descent_g; if ( u8g2->font_height_mode == U8G2_FONT_HEIGHT_MODE_TEXT ) { } else if ( u8g2->font_height_mode == U8G2_FONT_HEIGHT_MODE_XTEXT ) { if ( u8g2->font_ref_ascent < u8g2->font_info.ascent_para ) u8g2->font_ref_ascent = u8g2->font_info.ascent_para; if ( u8g2->font_ref_descent > u8g2->font_info.descent_para ) u8g2->font_ref_descent = u8g2->font_info.descent_para; } else { if ( u8g2->font_ref_ascent < u8g2->font_info.max_char_height+u8g2->font_info.y_offset ) u8g2->font_ref_ascent = u8g2->font_info.max_char_height+u8g2->font_info.y_offset; if ( u8g2->font_ref_descent > u8g2->font_info.y_offset ) u8g2->font_ref_descent = u8g2->font_info.y_offset; } } void u8g2_SetFontRefHeightText(u8g2_t *u8g2) { u8g2->font_height_mode = U8G2_FONT_HEIGHT_MODE_TEXT; u8g2_UpdateRefHeight(u8g2); } void u8g2_SetFontRefHeightExtendedText(u8g2_t *u8g2) { u8g2->font_height_mode = U8G2_FONT_HEIGHT_MODE_XTEXT; u8g2_UpdateRefHeight(u8g2); } void u8g2_SetFontRefHeightAll(u8g2_t *u8g2) { u8g2->font_height_mode = U8G2_FONT_HEIGHT_MODE_ALL; u8g2_UpdateRefHeight(u8g2); } /*===============================================*/ /* callback procedures to correct the y position */ u8g2_uint_t u8g2_font_calc_vref_font(U8X8_UNUSED u8g2_t *u8g2) { return 0; } void u8g2_SetFontPosBaseline(u8g2_t *u8g2) { u8g2->font_calc_vref = u8g2_font_calc_vref_font; } u8g2_uint_t u8g2_font_calc_vref_bottom(u8g2_t *u8g2) { return (u8g2_uint_t)(u8g2->font_ref_descent); } void u8g2_SetFontPosBottom(u8g2_t *u8g2) { u8g2->font_calc_vref = u8g2_font_calc_vref_bottom; } u8g2_uint_t u8g2_font_calc_vref_top(u8g2_t *u8g2) { u8g2_uint_t tmp; /* reference pos is one pixel above the upper edge of the reference glyph */ tmp = (u8g2_uint_t)(u8g2->font_ref_ascent); tmp++; return tmp; } void u8g2_SetFontPosTop(u8g2_t *u8g2) { u8g2->font_calc_vref = u8g2_font_calc_vref_top; } u8g2_uint_t u8g2_font_calc_vref_center(u8g2_t *u8g2) { int8_t tmp; tmp = u8g2->font_ref_ascent; tmp -= u8g2->font_ref_descent; tmp /= 2; tmp += u8g2->font_ref_descent; return tmp; } void u8g2_SetFontPosCenter(u8g2_t *u8g2) { u8g2->font_calc_vref = u8g2_font_calc_vref_center; } /*===============================================*/ void u8g2_SetFont(u8g2_t *u8g2, const uint8_t *font) { if ( u8g2->font != font ) { //#ifdef __unix__ // u8g2->last_font_data = NULL; // u8g2->last_unicode = 0x0ffff; //#endif u8g2->font = font; u8g2_read_font_info(&(u8g2->font_info), font); u8g2_UpdateRefHeight(u8g2); /* u8g2_SetFontPosBaseline(u8g2); */ /* removed with issue 195 */ } } /*===============================================*/ static uint8_t u8g2_is_all_valid(u8g2_t *u8g2, const char *str) U8G2_NOINLINE; static uint8_t u8g2_is_all_valid(u8g2_t *u8g2, const char *str) { uint16_t e; u8x8_utf8_init(u8g2_GetU8x8(u8g2)); for(;;) { e = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); if ( e == 0x0ffff ) break; str++; if ( e != 0x0fffe ) { if ( u8g2_font_get_glyph_data(u8g2, e) == NULL ) return 0; } } return 1; } uint8_t u8g2_IsAllValidUTF8(u8g2_t *u8g2, const char *str) { u8g2->u8x8.next_cb = u8x8_utf8_next; return u8g2_is_all_valid(u8g2, str); } /* string calculation is stilll not 100% perfect as it addes the initial string offset to the overall size */ static u8g2_uint_t u8g2_string_width(u8g2_t *u8g2, const char *str) U8G2_NOINLINE; static u8g2_uint_t u8g2_string_width(u8g2_t *u8g2, const char *str) { uint16_t e; u8g2_uint_t w, dx; u8g2->font_decode.glyph_width = 0; u8x8_utf8_init(u8g2_GetU8x8(u8g2)); /* reset the total width to zero, this will be expanded during calculation */ w = 0; dx = 0; // printf("str=<%s>\n", str); for(;;) { e = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); if ( e == 0x0ffff ) break; str++; if ( e != 0x0fffe ) { dx = u8g2_GetGlyphWidth(u8g2, e); /* delta x value of the glyph */ w += dx; } } /* adjust the last glyph, check for issue #16: do not adjust if width is 0 */ if ( u8g2->font_decode.glyph_width != 0 ) { w -= dx; w += u8g2->font_decode.glyph_width; /* the real pixel width of the glyph, sideeffect of GetGlyphWidth */ /* issue #46: we have to add the x offset also */ w += u8g2->glyph_x_offset; /* this value is set as a side effect of u8g2_GetGlyphWidth() */ } // printf("w=%d \n", w); return w; } static void u8g2_GetGlyphHorizontalProperties(u8g2_t *u8g2, uint16_t requested_encoding, uint8_t *w, int8_t *ox, int8_t *dx) { const uint8_t *glyph_data = u8g2_font_get_glyph_data(u8g2, requested_encoding); if ( glyph_data == NULL ) return; u8g2_font_setup_decode(u8g2, glyph_data); *w = u8g2->font_decode.glyph_width; *ox = u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_char_x); u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_char_y); *dx = u8g2_font_decode_get_signed_bits(&(u8g2->font_decode), u8g2->font_info.bits_per_delta_x); } /* u8g compatible GetStrX function */ int8_t u8g2_GetStrX(u8g2_t *u8g2, const char *s) { uint8_t w; int8_t ox, dx; u8g2_GetGlyphHorizontalProperties(u8g2, *s, &w, &ox, &dx); return ox; } static u8g2_uint_t u8g2_calculate_exact_string_width(u8g2_t *u8g2, const char *str) { u8g2_uint_t w; uint16_t enc; uint8_t gw; int8_t ox, dx; /* reset the total minimal width to zero, this will be expanded during calculation */ w = 0; /* check for empty string, width is already 0 */ do { enc = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); str++; } while( enc == 0x0fffe ); if ( enc== 0x0ffff ) return w; /* get the glyph information of the first char. This must be valid, because we already checked for the empty string */ /* if *s is not inside the font, then the cached parameters of the glyph are all zero */ u8g2_GetGlyphHorizontalProperties(u8g2, enc, &gw, &ox, &dx); /* strlen(s) == 1: width = width(s[0]) */ /* strlen(s) == 2: width = - offx(s[0]) + deltax(s[0]) + offx(s[1]) + width(s[1]) */ /* strlen(s) == 3: width = - offx(s[0]) + deltax(s[0]) + deltax(s[1]) + offx(s[2]) + width(s[2]) */ /* assume that the string has size 2 or more, than start with negative offset-x */ /* for string with size 1, this will be nullified after the loop */ w = -ox; for(;;) { /* check and stop if the end of the string is reached */ do { enc = u8g2->u8x8.next_cb(u8g2_GetU8x8(u8g2), (uint8_t)*str); str++; } while( enc == 0x0fffe ); if ( enc== 0x0ffff ) break; u8g2_GetGlyphHorizontalProperties(u8g2, enc, &gw, &ox, &dx); /* if there are still more characters, add the delta to the next glyph */ w += dx; } /* finally calculate the width of the last char */ /* here is another exception, if the last char is a black, use the dx value instead */ if ( enc != ' ' ) { /* if g was not updated in the for loop (strlen() == 1), then the initial offset x gets removed */ w += gw; w += ox; } else { w += dx; } return w; } u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s) { u8g2->u8x8.next_cb = u8x8_ascii_next; return u8g2_string_width(u8g2, s); } u8g2_uint_t u8g2_GetExactStrWidth(u8g2_t *u8g2, const char *s) { u8g2->u8x8.next_cb = u8x8_ascii_next; return u8g2_calculate_exact_string_width(u8g2, s); } /* source: https://en.wikipedia.org/wiki/UTF-8 Bits from to bytes Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 7 U+0000 U+007F 1 0xxxxxxx 11 U+0080 U+07FF 2 110xxxxx 10xxxxxx 16 U+0800 U+FFFF 3 1110xxxx 10xxxxxx 10xxxxxx 21 U+10000 U+1FFFFF 4 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 26 U+200000 U+3FFFFFF 5 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 31 U+4000000 U+7FFFFFFF 6 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */ u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str) { u8g2->u8x8.next_cb = u8x8_utf8_next; return u8g2_string_width(u8g2, str); } void u8g2_SetFontDirection(u8g2_t *u8g2, uint8_t dir) { #ifdef U8G2_WITH_FONT_ROTATION u8g2->font_decode.dir = dir; #endif } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_fonts.c ================================================ [File too large to display: 28.6 MB] ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_hvline.c ================================================ /* u8g2_hvline.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Calltree void u8g2_DrawHVLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) u8g2->cb->draw_l90 u8g2_draw_hv_line_2dir u8g2->ll_hvline(u8g2, x, y, len, dir); */ #include "u8g2.h" #include /*==========================================================*/ /* intersection procedure */ /* Description: clip range from pos a (included) with line len (a+len excluded) agains c (included) to d (excluded) Assumptions: len > 0 c <= d (this is not checked) will return 0 if there is no intersection and if a > b */ static uint8_t u8g2_clip_intersection2(u8g2_uint_t *ap, u8g2_uint_t *len, u8g2_uint_t c, u8g2_uint_t d) { u8g2_uint_t a = *ap; u8g2_uint_t b; b = a; b += *len; /* Description: clip range from a (included) to b (excluded) agains c (included) to d (excluded) Assumptions: a <= b (violation is checked and handled correctly) c <= d (this is not checked) will return 0 if there is no intersection and if a > b optimized clipping: c is set to 0 --> 27 Oct 2018: again removed the c==0 assumption replaced by uint8_t u8g2_clip_intersection2 */ /* handle the a>b case correctly. If code and time is critical, this could */ /* be removed completly (be aware about memory curruption for wrong */ /* arguments) or return 0 for a>b (will lead to skipped lines for wrong */ /* arguments) */ /* removing the following if clause completly may lead to memory corruption of a>b */ if ( a > b ) { /* replacing this if with a simple "return 0;" will not handle the case with negative a */ if ( a < d ) { b = d; b--; } else { a = c; } } /* from now on, the asumption a <= b is ok */ if ( a >= d ) return 0; if ( b <= c ) return 0; if ( a < c ) a = c; if ( b > d ) b = d; *ap = a; b -= a; *len = b; return 1; } /*==========================================================*/ /* draw procedures */ /* x,y Upper left position of the line within the pixel buffer len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) This function first adjusts the y position to the local buffer. Then it will clip the line and call u8g2_draw_low_level_hv_line() */ void u8g2_draw_hv_line_2dir(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { /* clipping happens before the display rotation */ /* transform to pixel buffer coordinates */ y -= u8g2->pixel_curr_row; u8g2->ll_hvline(u8g2, x, y, len, dir); } /* This is the toplevel function for the hv line draw procedures. This function should be called by the user. "dir" may have 4 directions: 0 (left to right), 1, 2, 3 (down up) */ void u8g2_DrawHVLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { /* Make a call to the callback function (e.g. u8g2_draw_l90_r0). */ /* The callback may rotate the hv line */ /* after rotation this will call u8g2_draw_hv_line_4dir() */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT if ( u8g2->is_page_clip_window_intersection != 0 ) #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ if ( len != 0 ) { /* convert to two directions */ if ( len > 1 ) { if ( dir == 2 ) { x -= len; x++; } else if ( dir == 3 ) { y -= len; y++; } } dir &= 1; /* clip against the user window */ if ( dir == 0 ) { if ( y < u8g2->user_y0 ) return; if ( y >= u8g2->user_y1 ) return; if ( u8g2_clip_intersection2(&x, &len, u8g2->user_x0, u8g2->user_x1) == 0 ) return; } else { if ( x < u8g2->user_x0 ) return; if ( x >= u8g2->user_x1 ) return; if ( u8g2_clip_intersection2(&y, &len, u8g2->user_y0, u8g2->user_y1) == 0 ) return; } u8g2->cb->draw_l90(u8g2, x, y, len, dir); } } void u8g2_DrawHLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len) { // #ifdef U8G2_WITH_INTERSECTION // if ( u8g2_IsIntersection(u8g2, x, y, x+len, y+1) == 0 ) // return; // #endif /* U8G2_WITH_INTERSECTION */ u8g2_DrawHVLine(u8g2, x, y, len, 0); } void u8g2_DrawVLine(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len) { // #ifdef U8G2_WITH_INTERSECTION // if ( u8g2_IsIntersection(u8g2, x, y, x+1, y+len) == 0 ) // return; // #endif /* U8G2_WITH_INTERSECTION */ u8g2_DrawHVLine(u8g2, x, y, len, 1); } void u8g2_DrawPixel(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y) { #ifdef U8G2_WITH_INTERSECTION if ( y < u8g2->user_y0 ) return; if ( y >= u8g2->user_y1 ) return; if ( x < u8g2->user_x0 ) return; if ( x >= u8g2->user_x1 ) return; #endif /* U8G2_WITH_INTERSECTION */ u8g2_DrawHVLine(u8g2, x, y, 1, 0); } /* Assign the draw color for all drawing functions. color may be 0 or 1. The actual color is defined by the display. With color = 1 the drawing function will set the display memory to 1. For OLEDs this ususally means, that the pixel is enabled and the LED at the pixel is turned on. On an LCD it usually means that the LCD segment of the pixel is enabled, which absorbs the light. For eInk/ePaper it means black ink. 7 Jan 2017: Allow color value 2 for XOR operation. */ void u8g2_SetDrawColor(u8g2_t *u8g2, uint8_t color) { u8g2->draw_color = color; /* u8g2_SetDrawColor: just assign the argument */ if ( color >= 3 ) u8g2->draw_color = 1; /* u8g2_SetDrawColor: make color as one if arg is invalid */ } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_input_value.c ================================================ /* u8g2_input_value.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* return: 0: value is not changed (HOME/Break Button pressed) 1: value has been updated */ uint8_t u8g2_UserInterfaceInputValue(u8g2_t *u8g2, const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post) { uint8_t line_height; uint8_t height; u8g2_uint_t pixel_height; u8g2_uint_t y, yy; u8g2_uint_t pixel_width; u8g2_uint_t x, xx; uint8_t local_value = *value; //uint8_t r; /* not used ??? */ uint8_t event; /* only horizontal strings are supported, so force this here */ u8g2_SetFontDirection(u8g2, 0); /* force baseline position */ u8g2_SetFontPosBaseline(u8g2); /* calculate line height */ line_height = u8g2_GetAscent(u8g2); line_height -= u8g2_GetDescent(u8g2); /* calculate overall height of the input value box */ height = 1; /* value input line */ height += u8x8_GetStringLineCnt(title); /* calculate the height in pixel */ pixel_height = height; pixel_height *= line_height; /* calculate offset from top */ y = 0; if ( pixel_height < u8g2_GetDisplayHeight(u8g2) ) { y = u8g2_GetDisplayHeight(u8g2); y -= pixel_height; y /= 2; } /* calculate offset from left for the label */ x = 0; pixel_width = u8g2_GetUTF8Width(u8g2, pre); pixel_width += u8g2_GetUTF8Width(u8g2, "0") * digits; pixel_width += u8g2_GetUTF8Width(u8g2, post); if ( pixel_width < u8g2_GetDisplayWidth(u8g2) ) { x = u8g2_GetDisplayWidth(u8g2); x -= pixel_width; x /= 2; } /* event loop */ for(;;) { u8g2_FirstPage(u8g2); do { /* render */ yy = y; yy += u8g2_DrawUTF8Lines(u8g2, 0, yy, u8g2_GetDisplayWidth(u8g2), line_height, title); xx = x; xx += u8g2_DrawUTF8(u8g2, xx, yy, pre); xx += u8g2_DrawUTF8(u8g2, xx, yy, u8x8_u8toa(local_value, digits)); u8g2_DrawUTF8(u8g2, xx, yy, post); } while( u8g2_NextPage(u8g2) ); #ifdef U8G2_REF_MAN_PIC return 0; #endif for(;;) { event = u8x8_GetMenuEvent(u8g2_GetU8x8(u8g2)); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) { *value = local_value; return 1; } else if ( event == U8X8_MSG_GPIO_MENU_HOME ) { return 0; } else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_UP ) { if ( local_value >= hi ) local_value = lo; else local_value++; break; } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_DOWN ) { if ( local_value <= lo ) local_value = hi; else local_value--; break; } } } /* never reached */ //return r; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_intersection.c ================================================ /* u8g2_intersection.c Intersection calculation, code taken from u8g_clip.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" #ifdef __GNUC__ #define U8G2_ALWAYS_INLINE __inline__ __attribute__((always_inline)) #else #define U8G2_ALWAYS_INLINE #endif #if defined(U8G2_WITH_INTERSECTION) || defined(U8G2_WITH_CLIP_WINDOW_SUPPORT) #ifdef OLD_VERSION_WITH_SYMETRIC_BOUNDARIES /* intersection assumptions: a1 <= a2 is always true minimized version ---1----0 1 b1 <= a2 && b1 > b2 -----1--0 1 b2 >= a1 && b1 > b2 ---1-1--- 1 b1 <= a2 && b2 >= a1 */ /* calculate the intersection between a0/a1 and v0/v1 The intersection check returns one if the range of a0/a1 has an intersection with v0/v1. The intersection check includes the boundary values v1 and a1. The following asserts will succeed: assert( u8g2_is_intersection_decision_tree(4, 6, 7, 9) == 0 ); assert( u8g2_is_intersection_decision_tree(4, 6, 6, 9) != 0 ); assert( u8g2_is_intersection_decision_tree(6, 9, 4, 6) != 0 ); assert( u8g2_is_intersection_decision_tree(7, 9, 4, 6) == 0 ); */ //static uint8_t U8G2_ALWAYS_INLINE u8g2_is_intersection_decision_tree(u8g_uint_t a0, u8g_uint_t a1, u8g_uint_t v0, u8g_uint_t v1) static uint8_t u8g2_is_intersection_decision_tree(u8g2_uint_t a0, u8g2_uint_t a1, u8g2_uint_t v0, u8g2_uint_t v1) { if ( v0 <= a1 ) { if ( v1 >= a0 ) { return 1; } else { if ( v0 > v1 ) { return 1; } else { return 0; } } } else { if ( v1 >= a0 ) { if ( v0 > v1 ) { return 1; } else { return 0; } } else { return 0; } } } #endif /* OLD_VERSION_WITH_SYMETRIC_BOUNDARIES */ /* version with asymetric boundaries. a1 and v1 are excluded v0 == v1 is not support end return 1 */ uint8_t u8g2_is_intersection_decision_tree(u8g2_uint_t a0, u8g2_uint_t a1, u8g2_uint_t v0, u8g2_uint_t v1) { if ( v0 < a1 ) // v0 <= a1 { if ( v1 > a0 ) // v1 >= a0 { return 1; } else { if ( v0 > v1 ) // v0 > v1 { return 1; } else { return 0; } } } else { if ( v1 > a0 ) // v1 >= a0 { if ( v0 > v1 ) // v0 > v1 { return 1; } else { return 0; } } else { return 0; } } } /* upper limits are not included (asymetric boundaries) */ uint8_t u8g2_IsIntersection(u8g2_t *u8g2, u8g2_uint_t x0, u8g2_uint_t y0, u8g2_uint_t x1, u8g2_uint_t y1) { if ( u8g2_is_intersection_decision_tree(u8g2->user_y0, u8g2->user_y1, y0, y1) == 0 ) return 0; return u8g2_is_intersection_decision_tree(u8g2->user_x0, u8g2->user_x1, x0, x1); } #endif /* U8G2_WITH_INTERSECTION */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_kerning.c ================================================ /* u8g2_kerning.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* this function is used as "u8g2_get_kerning_cb" */ /* uint8_t u8g2_GetNullKerning(u8g2_t *u8g2, uint16_t e1, uint16_t e2) { return 0; } */ /* this function is used as "u8g2_get_kerning_cb" */ uint8_t u8g2_GetKerning(U8X8_UNUSED u8g2_t *u8g2, u8g2_kerning_t *kerning, uint16_t e1, uint16_t e2) { uint16_t i1, i2, cnt, end; if ( kerning == NULL ) return 0; /* search for the encoding in the first table */ cnt = kerning->first_table_cnt; cnt--; /* ignore the last element of the table, which is 0x0ffff */ for( i1 = 0; i1 < cnt; i1++ ) { if ( kerning->first_encoding_table[i1] == e1 ) break; } if ( i1 >= cnt ) return 0; /* e1 not part of the kerning table, return 0 */ /* get the upper index for i2 */ end = kerning->index_to_second_table[i1+1]; for( i2 = kerning->index_to_second_table[i1]; i2 < end; i2++ ) { if ( kerning->second_encoding_table[i2] == e2 ) break; } if ( i2 >= end ) return 0; /* e2 not part of any pair with e1, return 0 */ return kerning->kerning_values[i2]; } uint8_t u8g2_GetKerningByTable(U8X8_UNUSED u8g2_t *u8g2, const uint16_t *kt, uint16_t e1, uint16_t e2) { uint16_t i; i = 0; if ( kt == NULL ) return 0; for(;;) { if ( kt[i] == 0x0ffff ) break; if ( kt[i] == e1 && kt[i+1] == e2 ) return kt[i+2]; i+=3; } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_line.c ================================================ /* u8g2_box.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" void u8g2_DrawLine(u8g2_t *u8g2, u8g2_uint_t x1, u8g2_uint_t y1, u8g2_uint_t x2, u8g2_uint_t y2) { u8g2_uint_t tmp; u8g2_uint_t x,y; u8g2_uint_t dx, dy; u8g2_int_t err; u8g2_int_t ystep; uint8_t swapxy = 0; /* no intersection check at the moment, should be added... */ if ( x1 > x2 ) dx = x1-x2; else dx = x2-x1; if ( y1 > y2 ) dy = y1-y2; else dy = y2-y1; if ( dy > dx ) { swapxy = 1; tmp = dx; dx =dy; dy = tmp; tmp = x1; x1 =y1; y1 = tmp; tmp = x2; x2 =y2; y2 = tmp; } if ( x1 > x2 ) { tmp = x1; x1 =x2; x2 = tmp; tmp = y1; y1 =y2; y2 = tmp; } err = dx >> 1; if ( y2 > y1 ) ystep = 1; else ystep = -1; y = y1; #ifndef U8G2_16BIT if ( x2 == 255 ) x2--; #else if ( x2 == 0xffff ) x2--; #endif for( x = x1; x <= x2; x++ ) { if ( swapxy == 0 ) u8g2_DrawPixel(u8g2, x, y); else u8g2_DrawPixel(u8g2, y, x); err -= (uint8_t)dy; if ( err < 0 ) { y += (u8g2_uint_t)ystep; err += (u8g2_uint_t)dx; } } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_ll_hvline.c ================================================ /* u8g2_ll_hvline.c low level hvline Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *ptr |= or_mask *ptr ^= xor_mask color = 0: or_mask = 1, xor_mask = 1 color = 1: or_mask = 1, xor_mask = 0 color = 2: or_mask = 0, xor_mask = 1 if ( color <= 1 ) or_mask = mask; if ( color != 1 ) xor_mask = mask; */ #include "u8g2.h" #include /*=================================================*/ /* u8g2_ll_hvline_vertical_top_lsb SSD13xx UC1701 */ #ifdef U8G2_WITH_HVLINE_SPEED_OPTIMIZATION /* x,y Upper left position of the line within the local buffer (not the display!) len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) asumption: all clipping done */ void u8g2_ll_hvline_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { uint16_t offset; uint8_t *ptr; uint8_t bit_pos, mask; uint8_t or_mask, xor_mask; #ifdef __unix uint8_t *max_ptr = u8g2->tile_buf_ptr + u8g2_GetU8x8(u8g2)->display_info->tile_width*u8g2->tile_buf_height*8; #endif //assert(x >= u8g2->buf_x0); //assert(x < u8g2_GetU8x8(u8g2)->display_info->tile_width*8); //assert(y >= u8g2->buf_y0); //assert(y < u8g2_GetU8x8(u8g2)->display_info->tile_height*8); /* bytes are vertical, lsb on top (y=0), msb at bottom (y=7) */ bit_pos = y; /* overflow truncate is ok here... */ bit_pos &= 7; /* ... because only the lowest 3 bits are needed */ mask = 1; mask <<= bit_pos; or_mask = 0; xor_mask = 0; if ( u8g2->draw_color <= 1 ) or_mask = mask; if ( u8g2->draw_color != 1 ) xor_mask = mask; offset = y; /* y might be 8 or 16 bit, but we need 16 bit, so use a 16 bit variable */ offset &= ~7; offset *= u8g2_GetU8x8(u8g2)->display_info->tile_width; ptr = u8g2->tile_buf_ptr; ptr += offset; ptr += x; if ( dir == 0 ) { do { #ifdef __unix assert(ptr < max_ptr); #endif *ptr |= or_mask; *ptr ^= xor_mask; ptr++; len--; } while( len != 0 ); } else { do { #ifdef __unix assert(ptr < max_ptr); #endif *ptr |= or_mask; *ptr ^= xor_mask; bit_pos++; bit_pos &= 7; len--; if ( bit_pos == 0 ) { ptr+=u8g2->pixel_buf_width; /* 6 Jan 17: Changed u8g2->width to u8g2->pixel_buf_width, issue #148 */ if ( u8g2->draw_color <= 1 ) or_mask = 1; if ( u8g2->draw_color != 1 ) xor_mask = 1; } else { or_mask <<= 1; xor_mask <<= 1; } } while( len != 0 ); } } #else /* U8G2_WITH_HVLINE_SPEED_OPTIMIZATION */ /* x,y position within the buffer */ static void u8g2_draw_pixel_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y) { uint16_t offset; uint8_t *ptr; uint8_t bit_pos, mask; //assert(x >= u8g2->buf_x0); //assert(x < u8g2_GetU8x8(u8g2)->display_info->tile_width*8); //assert(y >= u8g2->buf_y0); //assert(y < u8g2_GetU8x8(u8g2)->display_info->tile_height*8); /* bytes are vertical, lsb on top (y=0), msb at bottom (y=7) */ bit_pos = y; /* overflow truncate is ok here... */ bit_pos &= 7; /* ... because only the lowest 3 bits are needed */ mask = 1; mask <<= bit_pos; offset = y; /* y might be 8 or 16 bit, but we need 16 bit, so use a 16 bit variable */ offset &= ~7; offset *= u8g2_GetU8x8(u8g2)->display_info->tile_width; ptr = u8g2->tile_buf_ptr; ptr += offset; ptr += x; if ( u8g2->draw_color <= 1 ) *ptr |= mask; if ( u8g2->draw_color != 1 ) *ptr ^= mask; } /* x,y Upper left position of the line within the local buffer (not the display!) len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) asumption: all clipping done */ void u8g2_ll_hvline_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { if ( dir == 0 ) { do { u8g2_draw_pixel_vertical_top_lsb(u8g2, x, y); x++; len--; } while( len != 0 ); } else { do { u8g2_draw_pixel_vertical_top_lsb(u8g2, x, y); y++; len--; } while( len != 0 ); } } #endif /* U8G2_WITH_HVLINE_SPEED_OPTIMIZATION */ /*=================================================*/ /* u8g2_ll_hvline_horizontal_right_lsb ST7920 */ #ifdef U8G2_WITH_HVLINE_SPEED_OPTIMIZATION /* x,y Upper left position of the line within the local buffer (not the display!) len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) asumption: all clipping done */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ void u8g2_ll_hvline_horizontal_right_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { uint16_t offset; uint8_t *ptr; uint8_t bit_pos; uint8_t mask; uint8_t tile_width = u8g2_GetU8x8(u8g2)->display_info->tile_width; bit_pos = x; /* overflow truncate is ok here... */ bit_pos &= 7; /* ... because only the lowest 3 bits are needed */ mask = 128; mask >>= bit_pos; offset = y; /* y might be 8 or 16 bit, but we need 16 bit, so use a 16 bit variable */ offset *= tile_width; offset += x>>3; ptr = u8g2->tile_buf_ptr; ptr += offset; if ( dir == 0 ) { do { if ( u8g2->draw_color <= 1 ) *ptr |= mask; if ( u8g2->draw_color != 1 ) *ptr ^= mask; mask >>= 1; if ( mask == 0 ) { mask = 128; ptr++; } //x++; len--; } while( len != 0 ); } else { do { if ( u8g2->draw_color <= 1 ) *ptr |= mask; if ( u8g2->draw_color != 1 ) *ptr ^= mask; ptr += tile_width; //y++; len--; } while( len != 0 ); } } #else /* U8G2_WITH_HVLINE_SPEED_OPTIMIZATION */ /* x,y position within the buffer */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ static void u8g2_draw_pixel_horizontal_right_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y) { uint16_t offset; uint8_t *ptr; uint8_t bit_pos, mask; //assert(x >= u8g2->buf_x0); //assert(x < u8g2_GetU8x8(u8g2)->display_info->tile_width*8); //assert(y >= u8g2->buf_y0); //assert(y < u8g2_GetU8x8(u8g2)->display_info->tile_height*8); /* bytes are vertical, lsb on top (y=0), msb at bottom (y=7) */ bit_pos = x; /* overflow truncate is ok here... */ bit_pos &= 7; /* ... because only the lowest 3 bits are needed */ mask = 128; mask >>= bit_pos; x >>= 3; offset = y; /* y might be 8 or 16 bit, but we need 16 bit, so use a 16 bit variable */ offset *= u8g2_GetU8x8(u8g2)->display_info->tile_width; offset += x; ptr = u8g2->tile_buf_ptr; ptr += offset; if ( u8g2->draw_color <= 1 ) *ptr |= mask; if ( u8g2->draw_color != 1 ) *ptr ^= mask; } /* x,y Upper left position of the line within the local buffer (not the display!) len length of the line in pixel, len must not be 0 dir 0: horizontal line (left to right) 1: vertical line (top to bottom) asumption: all clipping done */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ void u8g2_ll_hvline_horizontal_right_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { if ( dir == 0 ) { do { u8g2_draw_pixel_horizontal_right_lsb(u8g2, x, y); x++; len--; } while( len != 0 ); } else { do { u8g2_draw_pixel_horizontal_right_lsb(u8g2, x, y); y++; len--; } while( len != 0 ); } } #endif /* U8G2_WITH_HVLINE_SPEED_OPTIMIZATION */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_message.c ================================================ /* u8g2_message.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" #define SPACE_BETWEEN_BUTTONS_IN_PIXEL 6 #define SPACE_BETWEEN_TEXT_AND_BUTTONS_IN_PIXEL 3 uint8_t u8g2_draw_button_line(u8g2_t *u8g2, u8g2_uint_t y, u8g2_uint_t w, uint8_t cursor, const char *s) { u8g2_uint_t button_line_width; uint8_t i; uint8_t cnt; uint8_t is_invert; u8g2_uint_t d; u8g2_uint_t x; cnt = u8x8_GetStringLineCnt(s); /* calculate the width of the button line */ button_line_width = 0; for( i = 0; i < cnt; i++ ) { button_line_width += u8g2_GetUTF8Width(u8g2, u8x8_GetStringLineStart(i, s)); } button_line_width += (cnt-1)*SPACE_BETWEEN_BUTTONS_IN_PIXEL; /* add some space between the buttons */ /* calculate the left offset */ d = 0; if ( button_line_width < w ) { d = w; d -= button_line_width; d /= 2; } /* draw the buttons */ x = d; for( i = 0; i < cnt; i++ ) { is_invert = 0; if ( i == cursor ) is_invert = 1; u8g2_DrawUTF8Line(u8g2, x, y, 0, u8x8_GetStringLineStart(i, s), 1, is_invert); x += u8g2_GetUTF8Width(u8g2, u8x8_GetStringLineStart(i, s)); x += SPACE_BETWEEN_BUTTONS_IN_PIXEL; } /* return the number of buttons */ return cnt; } /* title1: Multiple lines,separated by '\n' title2: A single line/string which is terminated by '\0' or '\n' . "title2" accepts the return value from u8x8_GetStringLineStart() title3: Multiple lines,separated by '\n' buttons: one more more buttons separated by '\n' and terminated with '\0' side effects: u8g2_SetFontDirection(u8g2, 0); u8g2_SetFontPosBaseline(u8g2); */ uint8_t u8g2_UserInterfaceMessage(u8g2_t *u8g2, const char *title1, const char *title2, const char *title3, const char *buttons) { uint8_t height; uint8_t line_height; u8g2_uint_t pixel_height; u8g2_uint_t y, yy; uint8_t cursor = 0; uint8_t button_cnt; uint8_t event; /* only horizontal strings are supported, so force this here */ u8g2_SetFontDirection(u8g2, 0); /* force baseline position */ u8g2_SetFontPosBaseline(u8g2); /* calculate line height */ line_height = u8g2_GetAscent(u8g2); line_height -= u8g2_GetDescent(u8g2); /* calculate overall height of the message box in lines*/ height = 1; /* button line */ height += u8x8_GetStringLineCnt(title1); if ( title2 != NULL ) height++; height += u8x8_GetStringLineCnt(title3); /* calculate the height in pixel */ pixel_height = height; pixel_height *= line_height; /* ... and add the space between the text and the buttons */ pixel_height +=SPACE_BETWEEN_TEXT_AND_BUTTONS_IN_PIXEL; /* calculate offset from top */ y = 0; if ( pixel_height < u8g2_GetDisplayHeight(u8g2) ) { y = u8g2_GetDisplayHeight(u8g2); y -= pixel_height; y /= 2; } y += u8g2_GetAscent(u8g2); for(;;) { u8g2_FirstPage(u8g2); do { yy = y; /* draw message box */ yy += u8g2_DrawUTF8Lines(u8g2, 0, yy, u8g2_GetDisplayWidth(u8g2), line_height, title1); if ( title2 != NULL ) { u8g2_DrawUTF8Line(u8g2, 0, yy, u8g2_GetDisplayWidth(u8g2), title2, 0, 0); yy+=line_height; } yy += u8g2_DrawUTF8Lines(u8g2, 0, yy, u8g2_GetDisplayWidth(u8g2), line_height, title3); yy += SPACE_BETWEEN_TEXT_AND_BUTTONS_IN_PIXEL; button_cnt = u8g2_draw_button_line(u8g2, yy, u8g2_GetDisplayWidth(u8g2), cursor, buttons); } while( u8g2_NextPage(u8g2) ); #ifdef U8G2_REF_MAN_PIC return 0; #endif for(;;) { event = u8x8_GetMenuEvent(u8g2_GetU8x8(u8g2)); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) return cursor+1; else if ( event == U8X8_MSG_GPIO_MENU_HOME ) return 0; else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_DOWN ) { cursor++; if ( cursor >= button_cnt ) cursor = 0; break; } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_UP ) { if ( cursor == 0 ) cursor = button_cnt; cursor--; break; } } } /* never reached */ //return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_polygon.c ================================================ /* u8g22_polygon.c */ #include "u8g2.h" /*===========================================*/ /* local definitions */ typedef int16_t pg_word_t; struct pg_point_struct { pg_word_t x; pg_word_t y; }; typedef struct _pg_struct pg_struct; /* forward declaration */ struct pg_edge_struct { pg_word_t x_direction; /* 1, if x2 is greater than x1, -1 otherwise */ pg_word_t height; pg_word_t current_x_offset; pg_word_t error_offset; /* --- line loop --- */ pg_word_t current_y; pg_word_t max_y; pg_word_t current_x; pg_word_t error; /* --- outer loop --- */ uint8_t (*next_idx_fn)(pg_struct *pg, uint8_t i); uint8_t curr_idx; }; /* maximum number of points in the polygon */ /* can be redefined, but highest possible value is 254 */ #define PG_MAX_POINTS 6 /* index numbers for the pge structures below */ #define PG_LEFT 0 #define PG_RIGHT 1 struct _pg_struct { struct pg_point_struct list[PG_MAX_POINTS]; uint8_t cnt; uint8_t is_min_y_not_flat; pg_word_t total_scan_line_cnt; struct pg_edge_struct pge[2]; /* left and right line draw structures */ }; /*===========================================*/ /* procedures, which should not be inlined (save as much flash ROM as possible */ #define PG_NOINLINE U8G2_NOINLINE static uint8_t pge_Next(struct pg_edge_struct *pge) PG_NOINLINE; static uint8_t pg_inc(pg_struct *pg, uint8_t i) PG_NOINLINE; static uint8_t pg_dec(pg_struct *pg, uint8_t i) PG_NOINLINE; static void pg_expand_min_y(pg_struct *pg, pg_word_t min_y, uint8_t pge_idx) PG_NOINLINE; static void pg_line_init(pg_struct * const pg, uint8_t pge_index) PG_NOINLINE; /*===========================================*/ /* line draw algorithm */ static uint8_t pge_Next(struct pg_edge_struct *pge) { if ( pge->current_y >= pge->max_y ) return 0; pge->current_x += pge->current_x_offset; pge->error += pge->error_offset; if ( pge->error > 0 ) { pge->current_x += pge->x_direction; pge->error -= pge->height; } pge->current_y++; return 1; } /* assumes y2 > y1 */ static void pge_Init(struct pg_edge_struct *pge, pg_word_t x1, pg_word_t y1, pg_word_t x2, pg_word_t y2) { pg_word_t dx = x2 - x1; pg_word_t width; pge->height = y2 - y1; pge->max_y = y2; pge->current_y = y1; pge->current_x = x1; if ( dx >= 0 ) { pge->x_direction = 1; width = dx; pge->error = 0; } else { pge->x_direction = -1; width = -dx; pge->error = 1 - pge->height; } pge->current_x_offset = dx / pge->height; pge->error_offset = width % pge->height; } /*===========================================*/ /* convex polygon algorithm */ static uint8_t pg_inc(pg_struct *pg, uint8_t i) { i++; if ( i >= pg->cnt ) i = 0; return i; } static uint8_t pg_dec(pg_struct *pg, uint8_t i) { i--; if ( i >= pg->cnt ) i = pg->cnt-1; return i; } static void pg_expand_min_y(pg_struct *pg, pg_word_t min_y, uint8_t pge_idx) { uint8_t i = pg->pge[pge_idx].curr_idx; for(;;) { i = pg->pge[pge_idx].next_idx_fn(pg, i); if ( pg->list[i].y != min_y ) break; pg->pge[pge_idx].curr_idx = i; } } static uint8_t pg_prepare(pg_struct *pg) { pg_word_t max_y; pg_word_t min_y; uint8_t i; /* setup the next index procedures */ pg->pge[PG_RIGHT].next_idx_fn = pg_inc; pg->pge[PG_LEFT].next_idx_fn = pg_dec; /* search for highest and lowest point */ max_y = pg->list[0].y; min_y = pg->list[0].y; pg->pge[PG_LEFT].curr_idx = 0; for( i = 1; i < pg->cnt; i++ ) { if ( max_y < pg->list[i].y ) { max_y = pg->list[i].y; } if ( min_y > pg->list[i].y ) { pg->pge[PG_LEFT].curr_idx = i; min_y = pg->list[i].y; } } /* calculate total number of scan lines */ pg->total_scan_line_cnt = max_y; pg->total_scan_line_cnt -= min_y; /* exit if polygon height is zero */ if ( pg->total_scan_line_cnt == 0 ) return 0; /* if the minimum y side is flat, try to find the lowest and highest x points */ pg->pge[PG_RIGHT].curr_idx = pg->pge[PG_LEFT].curr_idx; pg_expand_min_y(pg, min_y, PG_RIGHT); pg_expand_min_y(pg, min_y, PG_LEFT); /* check if the min side is really flat (depends on the x values) */ pg->is_min_y_not_flat = 1; if ( pg->list[pg->pge[PG_LEFT].curr_idx].x != pg->list[pg->pge[PG_RIGHT].curr_idx].x ) { pg->is_min_y_not_flat = 0; } else { pg->total_scan_line_cnt--; if ( pg->total_scan_line_cnt == 0 ) return 0; } return 1; } static void pg_hline(pg_struct *pg, u8g2_t *u8g2) { pg_word_t x1, x2, y; x1 = pg->pge[PG_LEFT].current_x; x2 = pg->pge[PG_RIGHT].current_x; y = pg->pge[PG_RIGHT].current_y; if ( y < 0 ) return; if ( y >= u8g2_GetDisplayHeight(u8g2) ) // does not work for 256x64 display??? return; if ( x1 < x2 ) { if ( x2 < 0 ) return; if ( x1 >= u8g2_GetDisplayWidth(u8g2) ) return; if ( x1 < 0 ) x1 = 0; if ( x2 >= u8g2_GetDisplayWidth(u8g2) ) x2 = u8g2_GetDisplayWidth(u8g2); u8g2_DrawHLine(u8g2, x1, y, x2 - x1); } else { if ( x1 < 0 ) return; if ( x2 >= u8g2_GetDisplayWidth(u8g2) ) return; if ( x2 < 0 ) x1 = 0; if ( x1 >= u8g2_GetDisplayWidth(u8g2) ) x1 = u8g2_GetDisplayWidth(u8g2); u8g2_DrawHLine(u8g2, x2, y, x1 - x2); } } static void pg_line_init(pg_struct * const pg, uint8_t pge_index) { struct pg_edge_struct *pge = pg->pge+pge_index; uint8_t idx; pg_word_t x1; pg_word_t y1; pg_word_t x2; pg_word_t y2; idx = pge->curr_idx; y1 = pg->list[idx].y; x1 = pg->list[idx].x; idx = pge->next_idx_fn(pg, idx); y2 = pg->list[idx].y; x2 = pg->list[idx].x; pge->curr_idx = idx; pge_Init(pge, x1, y1, x2, y2); } static void pg_exec(pg_struct *pg, u8g2_t *u8g2) { pg_word_t i = pg->total_scan_line_cnt; /* first line is skipped if the min y line is not flat */ pg_line_init(pg, PG_LEFT); pg_line_init(pg, PG_RIGHT); if ( pg->is_min_y_not_flat != 0 ) { pge_Next(&(pg->pge[PG_LEFT])); pge_Next(&(pg->pge[PG_RIGHT])); } do { pg_hline(pg, u8g2); while ( pge_Next(&(pg->pge[PG_LEFT])) == 0 ) { pg_line_init(pg, PG_LEFT); } while ( pge_Next(&(pg->pge[PG_RIGHT])) == 0 ) { pg_line_init(pg, PG_RIGHT); } i--; } while( i > 0 ); } /*===========================================*/ /* API procedures */ static void pg_ClearPolygonXY(pg_struct *pg) { pg->cnt = 0; } static void pg_AddPolygonXY(pg_struct *pg, int16_t x, int16_t y) { if ( pg->cnt < PG_MAX_POINTS ) { pg->list[pg->cnt].x = x; pg->list[pg->cnt].y = y; pg->cnt++; } } static void pg_DrawPolygon(pg_struct *pg, u8g2_t *u8g2) { if ( pg_prepare(pg) == 0 ) return; pg_exec(pg, u8g2); } pg_struct u8g2_pg; void u8g2_ClearPolygonXY(void) { pg_ClearPolygonXY(&u8g2_pg); } void u8g2_AddPolygonXY(U8X8_UNUSED u8g2_t *u8g2, int16_t x, int16_t y) { pg_AddPolygonXY(&u8g2_pg, x, y); } void u8g2_DrawPolygon(u8g2_t *u8g2) { pg_DrawPolygon(&u8g2_pg, u8g2); } void u8g2_DrawTriangle(u8g2_t *u8g2, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2) { u8g2_ClearPolygonXY(); u8g2_AddPolygonXY(u8g2, x0, y0); u8g2_AddPolygonXY(u8g2, x1, y1); u8g2_AddPolygonXY(u8g2, x2, y2); u8g2_DrawPolygon(u8g2); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_selection_list.c ================================================ /* u8g2_selection_list.c selection list with scroll option Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" #define MY_BORDER_SIZE 1 /* Draw a string at x,y Center string within w (left adjust if w < pixel len of s) Side effects: u8g2_SetFontDirection(u8g2, 0); u8g2_SetFontPosBaseline(u8g2); */ void u8g2_DrawUTF8Line(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, const char *s, uint8_t border_size, uint8_t is_invert) { u8g2_uint_t d, str_width; u8g2_uint_t fx, fy, fw, fh; /* only horizontal strings are supported, so force this here */ u8g2_SetFontDirection(u8g2, 0); /* revert y position back to baseline ref */ y += u8g2->font_calc_vref(u8g2); /* calculate the width of the string in pixel */ str_width = u8g2_GetUTF8Width(u8g2, s); /* calculate delta d within the box */ d = 0; if ( str_width < w ) { d = w; d -=str_width; d /= 2; } else { w = str_width; } /* caluclate text box */ fx = x; fy = y - u8g2_GetAscent(u8g2) ; fw = w; fh = u8g2_GetAscent(u8g2) - u8g2_GetDescent(u8g2) ; /* draw the box, if inverted */ u8g2_SetDrawColor(u8g2, 1); if ( is_invert ) { u8g2_DrawBox(u8g2, fx, fy, fw, fh); } /* draw the frame */ while( border_size > 0 ) { fx--; fy--; fw +=2; fh +=2; u8g2_DrawFrame(u8g2, fx, fy, fw, fh ); border_size--; } if ( is_invert ) { u8g2_SetDrawColor(u8g2, 0); } else { u8g2_SetDrawColor(u8g2, 1); } /* draw the text */ u8g2_DrawUTF8(u8g2, x+d, y, s); /* revert draw color */ u8g2_SetDrawColor(u8g2, 1); } /* draw several lines at position x,y. lines are stored in s and must be separated with '\n'. lines can be centered with respect to "w" if s == NULL nothing is drawn and 0 is returned returns the number of lines in s multiplied with line_height */ u8g2_uint_t u8g2_DrawUTF8Lines(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t w, u8g2_uint_t line_height, const char *s) { uint8_t i; uint8_t cnt; u8g2_uint_t yy = 0; cnt = u8x8_GetStringLineCnt(s); //printf("str=%s\n", s); //printf("cnt=%d, y=%d, line_height=%d\n", cnt, y, line_height); for( i = 0; i < cnt; i++ ) { //printf(" i=%d, y=%d, line_height=%d\n", i, y, line_height); u8g2_DrawUTF8Line(u8g2, x, y, w, u8x8_GetStringLineStart(i, s), 0, 0); y+=line_height; yy+=line_height; } return yy; } /* selection list with string line returns line height */ static u8g2_uint_t u8g2_draw_selection_list_line(u8g2_t *u8g2, u8sl_t *u8sl, u8g2_uint_t y, uint8_t idx, const char *s) U8G2_NOINLINE; static u8g2_uint_t u8g2_draw_selection_list_line(u8g2_t *u8g2, u8sl_t *u8sl, u8g2_uint_t y, uint8_t idx, const char *s) { u8g2_uint_t yy; uint8_t border_size = 0; uint8_t is_invert = 0; u8g2_uint_t line_height = u8g2_GetAscent(u8g2) - u8g2_GetDescent(u8g2)+MY_BORDER_SIZE; /* calculate offset from display upper border */ yy = idx; yy -= u8sl->first_pos; yy *= line_height; yy += y; /* check whether this is the current cursor line */ if ( idx == u8sl->current_pos ) { border_size = MY_BORDER_SIZE; is_invert = 1; } /* get the line from the array */ s = u8x8_GetStringLineStart(idx, s); /* draw the line */ if ( s == NULL ) s = ""; u8g2_DrawUTF8Line(u8g2, MY_BORDER_SIZE, y, u8g2_GetDisplayWidth(u8g2)-2*MY_BORDER_SIZE, s, border_size, is_invert); return line_height; } void u8g2_DrawSelectionList(u8g2_t *u8g2, u8sl_t *u8sl, u8g2_uint_t y, const char *s) { uint8_t i; for( i = 0; i < u8sl->visible; i++ ) { y += u8g2_draw_selection_list_line(u8g2, u8sl, y, i+u8sl->first_pos, s); } } /* title: NULL for no title, valid str for title line. Can contain mutliple lines, separated by '\n' start_pos: default position for the cursor, first line is 1. sl: string list (list of strings separated by \n) returns 0 if user has pressed the home key returns the selected line if user has pressed the select key side effects: u8g2_SetFontDirection(u8g2, 0); u8g2_SetFontPosBaseline(u8g2); */ uint8_t u8g2_UserInterfaceSelectionList(u8g2_t *u8g2, const char *title, uint8_t start_pos, const char *sl) { u8sl_t u8sl; u8g2_uint_t yy; uint8_t event; u8g2_uint_t line_height = u8g2_GetAscent(u8g2) - u8g2_GetDescent(u8g2)+MY_BORDER_SIZE; uint8_t title_lines = u8x8_GetStringLineCnt(title); uint8_t display_lines; if ( start_pos > 0 ) /* issue 112 */ start_pos--; /* issue 112 */ if ( title_lines > 0 ) { display_lines = (u8g2_GetDisplayHeight(u8g2)-3) / line_height; u8sl.visible = display_lines; u8sl.visible -= title_lines; } else { display_lines = u8g2_GetDisplayHeight(u8g2) / line_height; u8sl.visible = display_lines; } u8sl.total = u8x8_GetStringLineCnt(sl); u8sl.first_pos = 0; u8sl.current_pos = start_pos; if ( u8sl.current_pos >= u8sl.total ) u8sl.current_pos = u8sl.total-1; if ( u8sl.first_pos+u8sl.visible <= u8sl.current_pos ) u8sl.first_pos = u8sl.current_pos-u8sl.visible+1; u8g2_SetFontPosBaseline(u8g2); for(;;) { u8g2_FirstPage(u8g2); do { yy = u8g2_GetAscent(u8g2); if ( title_lines > 0 ) { yy += u8g2_DrawUTF8Lines(u8g2, 0, yy, u8g2_GetDisplayWidth(u8g2), line_height, title); u8g2_DrawHLine(u8g2, 0, yy-line_height- u8g2_GetDescent(u8g2) + 1, u8g2_GetDisplayWidth(u8g2)); yy += 3; } u8g2_DrawSelectionList(u8g2, &u8sl, yy, sl); } while( u8g2_NextPage(u8g2) ); #ifdef U8G2_REF_MAN_PIC return 0; #endif for(;;) { event = u8x8_GetMenuEvent(u8g2_GetU8x8(u8g2)); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) return u8sl.current_pos+1; /* +1, issue 112 */ else if ( event == U8X8_MSG_GPIO_MENU_HOME ) return 0; /* issue 112: return 0 instead of start_pos */ else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_DOWN ) { u8sl_Next(&u8sl); break; } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_UP ) { u8sl_Prev(&u8sl); break; } } } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_setup.c ================================================ /* u8g2_setup.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" #include #include /*============================================*/ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT void u8g2_SetMaxClipWindow(u8g2_t *u8g2) { u8g2->clip_x0 = 0; u8g2->clip_y0 = 0; u8g2->clip_x1 = (u8g2_uint_t)~(u8g2_uint_t)0; u8g2->clip_y1 = (u8g2_uint_t)~(u8g2_uint_t)0; u8g2->cb->update_page_win(u8g2); } void u8g2_SetClipWindow(u8g2_t *u8g2, u8g2_uint_t clip_x0, u8g2_uint_t clip_y0, u8g2_uint_t clip_x1, u8g2_uint_t clip_y1 ) { u8g2->clip_x0 = clip_x0; u8g2->clip_y0 = clip_y0; u8g2->clip_x1 = clip_x1; u8g2->clip_y1 = clip_y1; u8g2->cb->update_page_win(u8g2); } #endif /*============================================*/ /* This procedure is called after setting up the display (u8x8 structure). --> This is the central init procedure for u8g2 object */ void u8g2_SetupBuffer(u8g2_t *u8g2, uint8_t *buf, uint8_t tile_buf_height, u8g2_draw_ll_hvline_cb ll_hvline_cb, const u8g2_cb_t *u8g2_cb) { u8g2->font = NULL; //u8g2->kerning = NULL; //u8g2->get_kerning_cb = u8g2_GetNullKerning; //u8g2->ll_hvline = u8g2_ll_hvline_vertical_top_lsb; u8g2->ll_hvline = ll_hvline_cb; u8g2->tile_buf_ptr = buf; u8g2->tile_buf_height = tile_buf_height; u8g2->tile_curr_row = 0; u8g2->font_decode.is_transparent = 0; /* issue 443 */ u8g2->bitmap_transparency = 0; u8g2->draw_color = 1; u8g2->is_auto_page_clear = 1; u8g2->cb = u8g2_cb; u8g2->cb->update_dimension(u8g2); #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT u8g2_SetMaxClipWindow(u8g2); /* assign a clip window and call the update() procedure */ #else u8g2->cb->update_page_win(u8g2); #endif u8g2_SetFontPosBaseline(u8g2); /* issue 195 */ #ifdef U8G2_WITH_FONT_ROTATION u8g2->font_decode.dir = 0; #endif } /* Usually the display rotation is set initially, but it could be done later also u8g2_cb can be U8G2_R0..U8G2_R3 */ void u8g2_SetDisplayRotation(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb) { u8g2->cb = u8g2_cb; u8g2->cb->update_dimension(u8g2); u8g2->cb->update_page_win(u8g2); } /*============================================*/ void u8g2_SendF(u8g2_t * u8g2, const char *fmt, ...) { va_list va; va_start(va, fmt); u8x8_cad_vsendf(u8g2_GetU8x8(u8g2), fmt, va); va_end(va); } /*============================================*/ /* update dimension: calculate the following variables: u8g2_uint_t buf_x0; left corner of the buffer u8g2_uint_t buf_x1; right corner of the buffer (excluded) u8g2_uint_t buf_y0; u8g2_uint_t buf_y1; */ static void u8g2_update_dimension_common(u8g2_t *u8g2) { const u8x8_display_info_t *display_info = u8g2_GetU8x8(u8g2)->display_info; u8g2_uint_t t; t = u8g2->tile_buf_height; t *= 8; u8g2->pixel_buf_height = t; t = display_info->tile_width; #ifndef U8G2_16BIT if ( t >= 32 ) t = 31; #endif t *= 8; u8g2->pixel_buf_width = t; t = u8g2->tile_curr_row; t *= 8; u8g2->pixel_curr_row = t; t = u8g2->tile_buf_height; /* handle the case, where the buffer is larger than the (remaining) part of the display */ if ( t + u8g2->tile_curr_row > display_info->tile_height ) t = display_info->tile_height - u8g2->tile_curr_row; t *= 8; u8g2->buf_y0 = u8g2->pixel_curr_row; u8g2->buf_y1 = u8g2->buf_y0; u8g2->buf_y1 += t; #ifdef U8G2_16BIT u8g2->width = display_info->pixel_width; u8g2->height = display_info->pixel_height; #else u8g2->width = 240; if ( display_info->pixel_width <= 240 ) u8g2->width = display_info->pixel_width; u8g2->height = display_info->pixel_height; #endif } /*==========================================================*/ /* apply clip window */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT static void u8g2_apply_clip_window(u8g2_t *u8g2) { /* check aganst the current user_??? window */ if ( u8g2_IsIntersection(u8g2, u8g2->clip_x0, u8g2->clip_y0, u8g2->clip_x1, u8g2->clip_y1) == 0 ) { u8g2->is_page_clip_window_intersection = 0; } else { u8g2->is_page_clip_window_intersection = 1; if ( u8g2->user_x0 < u8g2->clip_x0 ) u8g2->user_x0 = u8g2->clip_x0; if ( u8g2->user_x1 > u8g2->clip_x1 ) u8g2->user_x1 = u8g2->clip_x1; if ( u8g2->user_y0 < u8g2->clip_y0 ) u8g2->user_y0 = u8g2->clip_y0; if ( u8g2->user_y1 > u8g2->clip_y1 ) u8g2->user_y1 = u8g2->clip_y1; } } #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ /*==========================================================*/ void u8g2_update_dimension_r0(u8g2_t *u8g2) { u8g2_update_dimension_common(u8g2); } void u8g2_update_page_win_r0(u8g2_t *u8g2) { u8g2->user_x0 = 0; u8g2->user_x1 = u8g2->width; /* pixel_buf_width replaced with width */ u8g2->user_y0 = u8g2->buf_y0; u8g2->user_y1 = u8g2->buf_y1; #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT u8g2_apply_clip_window(u8g2); #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ } void u8g2_update_dimension_r1(u8g2_t *u8g2) { u8g2_update_dimension_common(u8g2); u8g2->height = u8g2_GetU8x8(u8g2)->display_info->pixel_width; u8g2->width = u8g2_GetU8x8(u8g2)->display_info->pixel_height; } void u8g2_update_page_win_r1(u8g2_t *u8g2) { u8g2->user_x0 = u8g2->buf_y0; u8g2->user_x1 = u8g2->buf_y1; u8g2->user_y0 = 0; u8g2->user_y1 = u8g2->height; /* pixel_buf_width replaced with height (which is the real pixel width) */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT u8g2_apply_clip_window(u8g2); #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ } void u8g2_update_dimension_r2(u8g2_t *u8g2) { u8g2_update_dimension_common(u8g2); } void u8g2_update_page_win_r2(u8g2_t *u8g2) { u8g2->user_x0 = 0; u8g2->user_x1 = u8g2->width; /* pixel_buf_width replaced with width */ /* there are ases where the height is not a multiple of 8. */ /* in such a case u8g2->buf_y1 might be heigher than u8g2->height */ u8g2->user_y0 = 0; if ( u8g2->height >= u8g2->buf_y1 ) u8g2->user_y0 = u8g2->height - u8g2->buf_y1; u8g2->user_y1 = u8g2->height - u8g2->buf_y0; #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT u8g2_apply_clip_window(u8g2); #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ } void u8g2_update_dimension_r3(u8g2_t *u8g2) { u8g2_update_dimension_common(u8g2); u8g2->height = u8g2_GetU8x8(u8g2)->display_info->pixel_width; u8g2->width = u8g2_GetU8x8(u8g2)->display_info->pixel_height; } void u8g2_update_page_win_r3(u8g2_t *u8g2) { /* there are ases where the height is not a multiple of 8. */ /* in such a case u8g2->buf_y1 might be heigher than u8g2->width */ u8g2->user_x0 = 0; if ( u8g2->width >= u8g2->buf_y1 ) u8g2->user_x0 = u8g2->width - u8g2->buf_y1; u8g2->user_x1 = u8g2->width - u8g2->buf_y0; u8g2->user_y0 = 0; u8g2->user_y1 = u8g2->height; /* pixel_buf_width replaced with height (pixel_width) */ #ifdef U8G2_WITH_CLIP_WINDOW_SUPPORT u8g2_apply_clip_window(u8g2); #endif /* U8G2_WITH_CLIP_WINDOW_SUPPORT */ } /*============================================*/ extern void u8g2_draw_hv_line_2dir(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir); void u8g2_draw_l90_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { #ifdef __unix assert( dir <= 1 ); #endif u8g2_draw_hv_line_2dir(u8g2, x, y, len, dir); } void u8g2_draw_l90_mirrorr_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_uint_t xx; xx = u8g2->width; xx -= x; if ( (dir & 1) == 0 ) { xx -= len; } else { xx--; } u8g2_draw_hv_line_2dir(u8g2, xx, y, len, dir); } void u8g2_draw_mirror_vertical_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_uint_t yy; yy = u8g2->height; yy -= y; if ( (dir & 1) == 1 ) { yy -= len; } else { yy--; } u8g2_draw_hv_line_2dir(u8g2, x, yy, len, dir); } /* dir = 0 or 1 */ void u8g2_draw_l90_r1(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_uint_t xx, yy; #ifdef __unix assert( dir <= 1 ); #endif yy = x; xx = u8g2->height; xx -= y; xx--; dir ++; if ( dir == 2 ) { xx -= len; xx++; dir = 0; } u8g2_draw_hv_line_2dir(u8g2, xx, yy, len, dir); } void u8g2_draw_l90_r2(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_uint_t xx, yy; /* yy = u8g2->height; yy -= y; yy--; xx = u8g2->width; xx -= x; xx--; if ( dir == 0 ) { xx -= len; xx++; } else if ( dir == 1 ) { yy -= len; yy++; } */ yy = u8g2->height; yy -= y; xx = u8g2->width; xx -= x; if ( dir == 0 ) { yy--; xx -= len; } else if ( dir == 1 ) { xx--; yy -= len; } u8g2_draw_hv_line_2dir(u8g2, xx, yy, len, dir); } void u8g2_draw_l90_r3(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir) { u8g2_uint_t xx, yy; xx = y; yy = u8g2->width; yy -= x; if ( dir == 0 ) { yy--; yy -= len; yy++; dir = 1; } else { yy--; dir = 0; } u8g2_draw_hv_line_2dir(u8g2, xx, yy, len, dir); } /*============================================*/ const u8g2_cb_t u8g2_cb_r0 = { u8g2_update_dimension_r0, u8g2_update_page_win_r0, u8g2_draw_l90_r0 }; const u8g2_cb_t u8g2_cb_r1 = { u8g2_update_dimension_r1, u8g2_update_page_win_r1, u8g2_draw_l90_r1 }; const u8g2_cb_t u8g2_cb_r2 = { u8g2_update_dimension_r2, u8g2_update_page_win_r2, u8g2_draw_l90_r2 }; const u8g2_cb_t u8g2_cb_r3 = { u8g2_update_dimension_r3, u8g2_update_page_win_r3, u8g2_draw_l90_r3 }; const u8g2_cb_t u8g2_cb_mirror = { u8g2_update_dimension_r0, u8g2_update_page_win_r0, u8g2_draw_l90_mirrorr_r0 }; const u8g2_cb_t u8g2_cb_mirror_vertical = { u8g2_update_dimension_r0, u8g2_update_page_win_r0, u8g2_draw_mirror_vertical_r0 }; /*============================================*/ /* setup for the null device */ /* setup for the null (empty) device */ void u8g2_Setup_null(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { static uint8_t buf[8]; u8g2_SetupDisplay(u8g2, u8x8_d_null_cb, u8x8_cad_empty, byte_cb, gpio_and_delay_cb); u8g2_SetupBuffer(u8g2, buf, 1, u8g2_ll_hvline_vertical_top_lsb, rotation); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8g2_stm32f4.c ================================================ #include #include "stm32f4xx_hal.h" #include "u8g2.h" #include "soft_i2c.h" #define DEVICE_ADDRESS 0x3C #define TX_TIMEOUT 100 #define USE_I2C_INTERFACE //#define USE_SPI_INTERFACE /* SPI Interface */ SPI_HandleTypeDef *U8G2_SPI_HANDLE; /* I2C Interface */ I2C_HandleTypeDef *U8G2_I2C_HANDLE; uint8_t u8x8_stm32_gpio_and_delay(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* STM32 supports HW SPI, Remove unused cases like U8X8_MSG_DELAY_XXX & U8X8_MSG_GPIO_XXX */ switch (msg) { case U8X8_MSG_GPIO_AND_DELAY_INIT: /* Insert codes for initialization */ break; case U8X8_MSG_DELAY_MILLI: /* ms Delay */ osDelay(arg_int); break; #ifdef USE_SPI_INTERFACE /* SPI Interface */ case U8X8_MSG_GPIO_CS: /* Insert codes for SS pin control */ //HAL_GPIO_WritePin(OLED_CS_GPIO_Port, OLED_CS_Pin, arg_int); break; case U8X8_MSG_GPIO_DC: /* Insert codes for DC pin control */ HAL_GPIO_WritePin(GPIOC, GPIO_PIN_4, arg_int); break; case U8X8_MSG_GPIO_RESET: /* Insert codes for RST pin control */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, arg_int); break; #endif } return 1; } #ifdef USE_SPI_INTERFACE uint8_t u8x8_byte_stm32_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch (msg) { case U8X8_MSG_BYTE_SEND: /* Insert codes to transmit data */ if (HAL_SPI_Transmit(&SPI_HANDLE, arg_ptr, arg_int, TX_TIMEOUT) != HAL_OK) return 0; break; case U8X8_MSG_BYTE_INIT: /* Insert codes to begin SPI transmission */ break; case U8X8_MSG_BYTE_SET_DC: /* Control DC pin, U8X8_MSG_GPIO_DC will be called */ u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: /* Select slave, U8X8_MSG_GPIO_CS will be called */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); osDelay(1); break; case U8X8_MSG_BYTE_END_TRANSFER: osDelay(1); /* Insert codes to end SPI transmission */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } #endif #ifdef USE_I2C_INTERFACE uint8_t u8x8_byte_stm32_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* u8g2/u8x8 will never send more than 32 bytes between START_TRANSFER and END_TRANSFER */ static uint8_t buffer[32]; static uint8_t buf_idx; uint8_t *data; switch (msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *) arg_ptr; while (arg_int > 0) { buffer[buf_idx++] = *data; data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: /* add your custom code to init i2c subsystem */ break; case U8X8_MSG_BYTE_SET_DC: break; case U8X8_MSG_BYTE_START_TRANSFER: buf_idx = 0; break; case U8X8_MSG_BYTE_END_TRANSFER: if (U8G2_I2C_HANDLE->Instance == I2C_SOFT) SOFT_I2C_Master_Transmit((DEVICE_ADDRESS << 1), buffer, buf_idx); else HAL_I2C_Master_Transmit(U8G2_I2C_HANDLE, (DEVICE_ADDRESS << 1), buffer, buf_idx, TX_TIMEOUT); break; default: return 0; } return 1; } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8log.c ================================================ /* u8log.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include #include "u8x8.h" /* static uint8_t u8log_is_on_screen(u8log_t *u8log, uint8_t x, uint8_t y) { if ( x >= u8log->width ) return 0; if ( y >= u8log->height ) return 0; return 1; } */ static void u8log_clear_screen(u8log_t *u8log) { uint8_t *dest = u8log->screen_buffer; uint16_t cnt = u8log->height; cnt *= u8log->width; do { *dest++ = ' '; cnt--; } while( cnt > 0 ); } /* scroll the content of the complete buffer, set redraw_line to 255 */ static void u8log_scroll_up(u8log_t *u8log) { uint8_t *dest = u8log->screen_buffer; uint8_t *src = dest+u8log->width; uint16_t cnt = u8log->height; cnt--; cnt *= u8log->width; do { *dest++ = *src++; cnt--; } while( cnt > 0 ); cnt = u8log->width; do { *dest++ = ' '; cnt--; } while(cnt > 0); if ( u8log->is_redraw_line_for_each_char ) u8log->is_redraw_all = 1; else u8log->is_redraw_all_required_for_next_nl = 1; } /* Place the cursor on the screen. This will also scroll, if required */ static void u8log_cursor_on_screen(u8log_t *u8log) { //printf("u8log_cursor_on_screen, cursor_y=%d\n", u8log->cursor_y); if ( u8log->cursor_x >= u8log->width ) { u8log->cursor_x = 0; u8log->cursor_y++; } while ( u8log->cursor_y >= u8log->height ) { u8log_scroll_up(u8log); u8log->cursor_y--; } } /* Write a printable, single char on the screen, do any kind of scrolling */ static void u8log_write_to_screen(u8log_t *u8log, uint8_t c) { u8log_cursor_on_screen(u8log); u8log->screen_buffer[u8log->cursor_y * u8log->width + u8log->cursor_x] = c; u8log->cursor_x++; if ( u8log->is_redraw_line_for_each_char ) { u8log->is_redraw_line = 1; u8log->redraw_line = u8log->cursor_y; } } /* Handle control codes or write the char to the screen. Supported control codes are: \n 10 Goto first position of the next line. Line is marked for redraw. \r 13 Goto first position in the same line. Line is marked for redraw. \t 9 Jump to the next tab position \f 12 Clear the screen and mark redraw for whole screen any other char Write char to screen. Line redraw mark depends on is_redraw_line_for_each_char flag. */ void u8log_write_char(u8log_t *u8log, uint8_t c) { switch(c) { case '\n': // 10 u8log->is_redraw_line = 1; u8log->redraw_line = u8log->cursor_y; if ( u8log->is_redraw_all_required_for_next_nl ) u8log->is_redraw_all = 1; u8log->is_redraw_all_required_for_next_nl = 0; u8log->cursor_y++; u8log->cursor_x = 0; break; case '\r': // 13 u8log->is_redraw_line = 1; u8log->redraw_line = u8log->cursor_y; u8log->cursor_x = 0; break; case '\t': // 9 u8log->cursor_x = (u8log->cursor_x + 8) & 0xf8; break; case '\f': // 12 u8log_clear_screen(u8log); u8log->is_redraw_all = 1; u8log->cursor_x = 0; u8log->cursor_y = 0; break; default: u8log_write_to_screen(u8log, c); break; } } void u8log_Init(u8log_t *u8log, uint8_t width, uint8_t height, uint8_t *buf) { memset(u8log, 0, sizeof(u8log_t)); u8log->width = width; u8log->height = height; u8log->screen_buffer = buf; u8log_clear_screen(u8log); } void u8log_SetCallback(u8log_t *u8log, u8log_cb cb, void *aux_data) { u8log->cb = cb; u8log->aux_data = aux_data; } void u8log_SetRedrawMode(u8log_t *u8log, uint8_t is_redraw_line_for_each_char) { u8log->is_redraw_line_for_each_char = is_redraw_line_for_each_char; } /* offset can be negative or positive, it is 0 by default */ void u8log_SetLineHeightOffset(u8log_t *u8log, int8_t line_height_offset) { u8log->line_height_offset = line_height_offset; } void u8log_WriteChar(u8log_t *u8log, uint8_t c) { u8log_write_char(u8log, c); if ( u8log->is_redraw_line || u8log->is_redraw_all ) { if ( u8log->cb != 0 ) { u8log->cb(u8log); } u8log->is_redraw_line = 0; u8log->is_redraw_all = 0; } } void u8log_WriteString(u8log_t *u8log, const char *s) { while( *s != '\0' ) { u8log_WriteChar(u8log, *s); s++; } } static void u8log_WriteHexHalfByte(u8log_t *u8log, uint8_t b) U8X8_NOINLINE; static void u8log_WriteHexHalfByte(u8log_t *u8log, uint8_t b) { b &= 0x0f; if ( b < 10 ) u8log_WriteChar(u8log, b+'0'); else u8log_WriteChar(u8log, b+'a'-10); } void u8log_WriteHex8(u8log_t *u8log, uint8_t b) { u8log_WriteHexHalfByte(u8log, b >> 4); u8log_WriteHexHalfByte(u8log, b); } void u8log_WriteHex16(u8log_t *u8log, uint16_t v) { u8log_WriteHex8(u8log, v>>8); u8log_WriteHex8(u8log, v); } void u8log_WriteHex32(u8log_t *u8log, uint32_t v) { u8log_WriteHex16(u8log, v>>16); u8log_WriteHex16(u8log, v); } /* v = value, d = number of digits (1..3) */ void u8log_WriteDec8(u8log_t *u8log, uint8_t v, uint8_t d) { u8log_WriteString(u8log, u8x8_u8toa(v, d)); } /* v = value, d = number of digits (1..5) */ void u8log_WriteDec16(u8log_t *u8log, uint16_t v, uint8_t d) { u8log_WriteString(u8log, u8x8_u16toa(v, d)); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8log_u8g2.c ================================================ /* u8log_u8g2.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" /* Draw the u8log text at the specified x/y position. x/y position is the reference position of the first char of the first line. the line height is u8g2_GetAscent(u8g2) - u8g2_GetDescent(u8g2) + line_height_offset; line_height_offset can be set with u8log_SetLineHeightOffset() Use u8g2_SetFontRefHeightText(u8g2_t *u8g2); u8g2_SetFontRefHeightExtendedText(u8g2_t *u8g2); u8g2_SetFontRefHeightAll(u8g2_t *u8g2); to change the return values for u8g2_GetAscent and u8g2_GetDescent */ void u8g2_DrawLog(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8log_t *u8log) { u8g2_uint_t disp_x, disp_y; uint8_t buf_x, buf_y; uint8_t c; disp_y = y; u8g2_SetFontDirection(u8g2, 0); for( buf_y = 0; buf_y < u8log->height; buf_y++ ) { disp_x = x; for( buf_x = 0; buf_x < u8log->width; buf_x++ ) { c = u8log->screen_buffer[buf_y * u8log->width + buf_x]; disp_x += u8g2_DrawGlyph(u8g2, disp_x, disp_y, c); } disp_y += u8g2_GetAscent(u8g2) - u8g2_GetDescent(u8g2); disp_y += u8log->line_height_offset; } } /* u8lib callback for u8g2 Only font direction 0 is supported: u8g2_SetFontDirection(u8g2, 0) Use u8g2_SetFontRefHeightText(u8g2_t *u8g2); u8g2_SetFontRefHeightExtendedText(u8g2_t *u8g2); u8g2_SetFontRefHeightAll(u8g2_t *u8g2); to change the top offset and the line height and u8log_SetLineHeightOffset(u8log_t *u8log, int8_t line_height_offset) to change the line height. */ void u8log_u8g2_cb(u8log_t * u8log) { u8g2_t *u8g2 = (u8g2_t *)(u8log->aux_data); if ( u8log->is_redraw_line || u8log->is_redraw_all ) { u8g2_FirstPage(u8g2); do { u8g2_DrawLog( u8g2, 0, u8g2_GetAscent(u8g2), u8log); } while( u8g2_NextPage(u8g2) ); } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8log_u8x8.c ================================================ /* u8log_u8x8.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static void u8x8_DrawLogLine(u8x8_t *u8x8, uint8_t disp_x, uint8_t disp_y, uint8_t buf_y, u8log_t *u8log) U8X8_NOINLINE; static void u8x8_DrawLogLine(u8x8_t *u8x8, uint8_t disp_x, uint8_t disp_y, uint8_t buf_y, u8log_t *u8log) { uint8_t buf_x; uint8_t c; for( buf_x = 0; buf_x < u8log->width; buf_x++ ) { c = u8log->screen_buffer[buf_y * u8log->width + buf_x]; u8x8_DrawGlyph(u8x8, disp_x, disp_y, c); disp_x++; } } void u8x8_DrawLog(u8x8_t *u8x8, uint8_t x, uint8_t y, u8log_t *u8log) { uint8_t buf_y; for( buf_y = 0; buf_y < u8log->height; buf_y++ ) { u8x8_DrawLogLine(u8x8, x, y, buf_y, u8log); y++; } } void u8log_u8x8_cb(u8log_t * u8log) { u8x8_t *u8x8 = (u8x8_t *)(u8log->aux_data); if ( u8log->is_redraw_all ) { u8x8_DrawLog(u8x8, 0, 0, u8log); } else if ( u8log->is_redraw_line ) { u8x8_DrawLogLine(u8x8, 0, u8log->redraw_line, u8log->redraw_line, u8log); } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8.h ================================================ /* u8x8.h Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. U8glib has several layers. Each layer is implemented with a callback function. This callback function handels the messages for the layer. The topmost level is the display layer. It includes the following messages: U8X8_MSG_DISPLAY_SETUP_MEMORY no communicaation with the display, setup memory ony U8X8_MSG_DISPLAY_INIT U8X8_MSG_DISPLAY_SET_FLIP_MODE U8X8_MSG_DISPLAY_SET_POWER_SAVE U8X8_MSG_DISPLAY_SET_CONTRAST U8X8_MSG_DISPLAY_DRAW_TILE A display driver may decided to breakdown these messages to a lower level interface or implement this functionality directly. One layer is the Command/Arg/Data interface. It can be used by the display layer to communicate with the display hardware. This layer only deals with data, commands and arguments. D/C line is unknown. U8X8_MSG_CAD_INIT U8X8_MSG_CAD_SET_I2C_ADR (obsolete) U8X8_MSG_CAD_SET_DEVICE (obsolete) U8X8_MSG_CAD_START_TRANSFER U8X8_MSG_CAD_SEND_CMD U8X8_MSG_CAD_SEND_ARG U8X8_MSG_CAD_SEND_DATA U8X8_MSG_CAD_END_TRANSFER The byte interface is there to send 1 byte (8 bits) to the display hardware. This layer depends on the hardware of a microcontroller, if a specific hardware should be used (I2C or SPI). If this interface is implemented via software, it may use the GPIO level for sending bytes. U8X8_MSG_BYTE_INIT U8X8_MSG_BYTE_SEND 30 U8X8_MSG_BYTE_SET_DC 31 U8X8_MSG_BYTE_START_TRANSFER U8X8_MSG_BYTE_END_TRANSFER U8X8_MSG_BYTE_SET_I2C_ADR (obsolete) U8X8_MSG_BYTE_SET_DEVICE (obsolete) GPIO and Delay U8X8_MSG_GPIO_INIT U8X8_MSG_DELAY_MILLI U8X8_MSG_DELAY_10MICRO U8X8_MSG_DELAY_100NANO U8X8_MSG_DELAY_NANO */ #ifndef U8X8_H #define U8X8_H /*==========================================*/ /* Global Defines */ /* Undefine this to remove u8x8_SetContrast function */ #define U8X8_WITH_SET_CONTRAST /* Define this for an additional user pointer inside the u8x8 data struct */ //#define U8X8_WITH_USER_PTR /* Undefine this to remove u8x8_SetFlipMode function */ /* 26 May 2016: Obsolete */ //#define U8X8_WITH_SET_FLIP_MODE /* Select 0 or 1 for the default flip mode. This is not affected by U8X8_WITH_FLIP_MODE */ /* Note: Not all display types support a mirror functon for the frame buffer */ /* 26 May 2016: Obsolete */ //#define U8X8_DEFAULT_FLIP_MODE 0 /*==========================================*/ /* Includes */ #include #include #include #include #if defined(__GNUC__) && defined(__AVR__) #include #endif /*==========================================*/ /* C++ compatible */ #ifdef __cplusplus extern "C" { #endif /*==========================================*/ /* U8G2 internal defines */ /* the following macro returns the first value for the normal mode */ /* or the second argument for the flip mode */ /* 26 May 2016: Obsolete #if U8X8_DEFAULT_FLIP_MODE == 0 #define U8X8_IF_DEFAULT_NORMAL_OR_FLIP(normal, flipmode) (normal) #else #define U8X8_IF_DEFAULT_NORMAL_OR_FLIP(normal, flipmode) (flipmode) #endif */ #ifdef __GNUC__ # define U8X8_NOINLINE __attribute__((noinline)) # define U8X8_SECTION(name) __attribute__ ((section (name))) # define U8X8_UNUSED __attribute__((unused)) #else # define U8X8_SECTION(name) # define U8X8_NOINLINE # define U8X8_UNUSED #endif #if defined(__GNUC__) && defined(__AVR__) # define U8X8_FONT_SECTION(name) U8X8_SECTION(".progmem." name) # define u8x8_pgm_read(adr) pgm_read_byte_near(adr) # define U8X8_PROGMEM PROGMEM #endif #if defined(ESP8266) uint8_t u8x8_pgm_read_esp(const uint8_t * addr); /* u8x8_8x8.c */ # define U8X8_FONT_SECTION(name) __attribute__((section(".text." name))) # define u8x8_pgm_read(adr) u8x8_pgm_read_esp(adr) # define U8X8_PROGMEM #endif #ifndef U8X8_FONT_SECTION # define U8X8_FONT_SECTION(name) #endif #ifndef u8x8_pgm_read # ifndef CHAR_BIT # define u8x8_pgm_read(adr) (*(const uint8_t *)(adr)) # else # if CHAR_BIT > 8 # define u8x8_pgm_read(adr) ((*(const uint8_t *)(adr)) & 0x0ff) # else # define u8x8_pgm_read(adr) (*(const uint8_t *)(adr)) # endif # endif #endif #ifndef U8X8_PROGMEM # define U8X8_PROGMEM #endif #ifdef ARDUINO #define U8X8_USE_PINS #endif /*==========================================*/ /* U8X8 typedefs and data structures */ typedef struct u8x8_struct u8x8_t; typedef struct u8x8_display_info_struct u8x8_display_info_t; typedef struct u8x8_tile_struct u8x8_tile_t; typedef uint8_t (*u8x8_msg_cb)(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); typedef uint16_t (*u8x8_char_cb)(u8x8_t *u8x8, uint8_t b); //struct u8x8_mcd_struct //{ // u8x8_msg_cb cb; /* current callback function */ // u8x8_t *u8g2; /* pointer to the u8g2 parent to minimize the number of args */ // u8x8_mcd_t *next; //}; struct u8x8_tile_struct { uint8_t *tile_ptr; /* pointer to one or more tiles... should be "const" */ uint8_t cnt; /* number of tiles */ uint8_t x_pos; /* tile x position */ uint8_t y_pos; /* tile y position */ }; struct u8x8_display_info_struct { /* == general == */ uint8_t chip_enable_level; /* UC1601: 0 */ uint8_t chip_disable_level; /* opposite of chip_enable_level */ uint8_t post_chip_enable_wait_ns; /* UC1601: 5ns */ uint8_t pre_chip_disable_wait_ns; /* UC1601: 5ns */ uint8_t reset_pulse_width_ms; /* UC1601: 0.003ms --> 1ms */ uint8_t post_reset_wait_ms; /* UC1601: 6ms */ /* == SPI interface == */ /* after SDA has been applied, wait this much time for the SCK data takeover edge */ /* if this is smaller than sck_pulse_width_ns, then use the value from sck_pulse_width_ns */ uint8_t sda_setup_time_ns; /* UC1601: 12ns */ /* the pulse width of the the clock signal, cycle time is twice this value */ /* max freq is 1/(2*sck_pulse_width_ns) */ /* AVR: below 70: DIV2, 8 MHz, >= 70 --> 4MHz clock (DIV4) */ uint8_t sck_pulse_width_ns; /* UC1701: 50ns */ /* until here we have 8 bytes (uint8_t). Newly introduced for SPI.beginTransaction */ uint32_t sck_clock_hz; /* previous name "sck_takeover_edge" renamed to "spi_mode" */ /* bit 0 of spi_mode is equal to the value of the previous variable sck_takeover_edge, 20 Aug 16: This is wrong the bit is actually inverted */ /* SPI has four clock modes: */ /* 0: clock active high, data out on falling edge, clock default value is zero, takover on rising edge */ /* 1: clock active high, data out on rising edge, clock default value is zero, takover on falling edge */ /* 2: clock active low, data out on rising edge */ /* 3: clock active low, data out on falling edge */ /* most displays have clock mode 1 */ uint8_t spi_mode; /* == I2C == */ uint8_t i2c_bus_clock_100kHz; /* UC1601: 1000000000/275 = 37 *100k */ /* == 8 bit interface == */ /* how long to wait after all data line are set */ uint8_t data_setup_time_ns; /* UC1601: 30ns */ /* write enable pulse width */ uint8_t write_pulse_width_ns; /* UC1601: 40ns */ /* == layout == */ uint8_t tile_width; uint8_t tile_height; uint8_t default_x_offset; /* default x offset for the display */ uint8_t flipmode_x_offset; /* x offset, if flip mode is enabled */ /* pixel width is not used by the u8x8 procedures */ /* instead it will be used by the u8g2 procedures, because the pixel dimension can */ /* not always be calculated from the tile_width/_height */ /* the following conditions must be true: */ /* pixel_width <= tile_width*8 */ /* pixel_height <= tile_height*8 */ uint16_t pixel_width; uint16_t pixel_height; }; /* list of U8x8 pins */ #define U8X8_PIN_D0 0 #define U8X8_PIN_SPI_CLOCK 0 #define U8X8_PIN_D1 1 #define U8X8_PIN_SPI_DATA 1 #define U8X8_PIN_D2 2 #define U8X8_PIN_D3 3 #define U8X8_PIN_D4 4 #define U8X8_PIN_D5 5 #define U8X8_PIN_D6 6 #define U8X8_PIN_D7 7 #define U8X8_PIN_E 8 #define U8X8_PIN_CS 9 /* parallel, SPI */ #define U8X8_PIN_DC 10 /* parallel, SPI */ #define U8X8_PIN_RESET 11 /* parallel, SPI, I2C */ #define U8X8_PIN_I2C_CLOCK 12 /* 1 = Input/high impedance, 0 = drive low */ #define U8X8_PIN_I2C_DATA 13 /* 1 = Input/high impedance, 0 = drive low */ #define U8X8_PIN_CS1 14 /* KS0108 extra chip select */ #define U8X8_PIN_CS2 15 /* KS0108 extra chip select */ #define U8X8_PIN_OUTPUT_CNT 16 #define U8X8_PIN_MENU_SELECT 16 #define U8X8_PIN_MENU_NEXT 17 #define U8X8_PIN_MENU_PREV 18 #define U8X8_PIN_MENU_HOME 19 #define U8X8_PIN_MENU_UP 20 #define U8X8_PIN_MENU_DOWN 21 #define U8X8_PIN_INPUT_CNT 6 #ifdef U8X8_USE_PINS #define U8X8_PIN_CNT (U8X8_PIN_OUTPUT_CNT+U8X8_PIN_INPUT_CNT) #define U8X8_PIN_NONE 255 #endif struct u8x8_struct { const u8x8_display_info_t *display_info; u8x8_char_cb next_cb; /* procedure, which will be used to get the next char from the string */ u8x8_msg_cb display_cb; u8x8_msg_cb cad_cb; u8x8_msg_cb byte_cb; u8x8_msg_cb gpio_and_delay_cb; uint32_t bus_clock; /* can be used by the byte function to store the clock speed of the bus */ const uint8_t *font; uint16_t encoding; /* encoding result for utf8 decoder in next_cb */ uint8_t x_offset; /* copied from info struct, can be modified in flip mode */ uint8_t is_font_inverse_mode; /* 0: normal, 1: font glyphs are inverted */ uint8_t i2c_address; /* a valid i2c adr. Initially this is 255, but this is set to something usefull during DISPLAY_INIT */ /* i2c_address is the address for writing data to the display */ /* usually, the lowest bit must be zero for a valid address */ uint8_t i2c_started; /* for i2c interface */ //uint8_t device_address; /* OBSOLETE???? - this is the device address, replacement for U8X8_MSG_CAD_SET_DEVICE */ uint8_t utf8_state; /* number of chars which are still to scan */ uint8_t gpio_result; /* return value from the gpio call (only for MENU keys at the moment) */ uint8_t debounce_default_pin_state; uint8_t debounce_last_pin_state; uint8_t debounce_state; uint8_t debounce_result_msg; /* result msg or event after debounce */ #ifdef U8X8_WITH_USER_PTR void *user_ptr; #endif #ifdef U8X8_USE_PINS uint8_t pins[U8X8_PIN_CNT]; /* defines a pinlist: Mainly a list of pins for the Arduino Envionment, use U8X8_PIN_xxx to access */ #endif }; #ifdef U8X8_WITH_USER_PTR #define u8x8_GetUserPtr(u8x8) ((u8x8)->user_ptr) #define u8x8_SetUserPtr(u8x8, p) ((u8x8)->user_ptr = (p)) #endif #define u8x8_GetCols(u8x8) ((u8x8)->display_info->tile_width) #define u8x8_GetRows(u8x8) ((u8x8)->display_info->tile_height) #define u8x8_GetI2CAddress(u8x8) ((u8x8)->i2c_address) #define u8x8_SetI2CAddress(u8x8, address) ((u8x8)->i2c_address = (address)) #define u8x8_SetGPIOResult(u8x8, val) ((u8x8)->gpio_result = (val)) #define u8x8_GetSPIClockPhase(u8x8) ((u8x8)->display_info->spi_mode & 0x01) /* 0 means rising edge */ #define u8x8_GetSPIClockPolarity(u8x8) (((u8x8)->display_info->spi_mode & 0x02) >> 1) #define u8x8_GetSPIClockDefaultLevel(u8x8) (((u8x8)->display_info->spi_mode & 0x02) >> 1) #define u8x8_GetFontCharWidth(u8x8) u8x8_pgm_read( (u8x8)->font + 2 ) #define u8x8_GetFontCharHeight(u8x8) u8x8_pgm_read( (u8x8)->font + 3 ) #ifdef U8X8_USE_PINS #define u8x8_SetPin(u8x8,pin,val) (u8x8)->pins[pin] = (val) #define u8x8_SetMenuSelectPin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_SELECT,(val)) #define u8x8_SetMenuNextPin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_NEXT,(val)) #define u8x8_SetMenuPrevPin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_PREV,(val)) #define u8x8_SetMenuHomePin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_HOME,(val)) #define u8x8_SetMenuUpPin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_UP,(val)) #define u8x8_SetMenuDownPin(u8x8, val) u8x8_SetPin((u8x8),U8X8_PIN_MENU_DOWN,(val)) #endif /*==========================================*/ /* u8log extension for u8x8 and u8g2 */ typedef struct u8log_struct u8log_t; /* redraw the specified line. */ typedef void (*u8log_cb)(u8log_t * u8log); struct u8log_struct { /* configuration */ void *aux_data; /* pointer to u8x8 or u8g2 */ uint8_t width, height; /* size of the terminal */ u8log_cb cb; /* callback redraw function */ uint8_t *screen_buffer; /* size must be width*heigh bytes */ uint8_t is_redraw_line_for_each_char; int8_t line_height_offset; /* extra offset for the line height (u8g2 only) */ /* internal data */ //uint8_t last_x, last_y; /* position of the last printed char */ uint8_t cursor_x, cursor_y; /* position of the cursor, might be off screen */ uint8_t redraw_line; /* redraw specific line if is_redraw_line is not 0 */ uint8_t is_redraw_line; uint8_t is_redraw_all; uint8_t is_redraw_all_required_for_next_nl; /* in nl mode, redraw all instead of current line */ }; /*==========================================*/ /* helper functions */ void u8x8_d_helper_display_setup_memory(u8x8_t *u8x8, const u8x8_display_info_t *display_info); void u8x8_d_helper_display_init(u8x8_t *u8g2); /* Display Interface */ /* Name: U8X8_MSG_DISPLAY_SETUP_MEMORY Args: None Tasks: 1) setup u8g2->display_info copy u8g2->display_info->default_x_offset to u8g2->x_offset usually calls u8x8_d_helper_display_setup_memory() */ #define U8X8_MSG_DISPLAY_SETUP_MEMORY 9 /* Name: U8X8_MSG_DISPLAY_INIT Args: None Tasks: 2) put interface into default state: execute u8x8_gpio_Init for port directions execute u8x8_cad_Init for default port levels 3) set CS status (not clear, may be done in cad/byte interface 4) execute display reset (gpio interface) 5) send setup sequence to display, do not activate display, disable "power save" will follow */ #define U8X8_MSG_DISPLAY_INIT 10 /* Name: U8X8_MSG_DISPLAY_SET_POWER_SAVE Args: arg_int: 0: normal mode (RAM is visible on the display), 1: nothing is shown Tasks: Depending on arg_int, put the display into normal or power save mode. Send the corresponding sequence to the display. In power save mode, it must be possible to modify the RAM content. */ #define U8X8_MSG_DISPLAY_SET_POWER_SAVE 11 /* Name: U8X8_MSG_DISPLAY_SET_FLIP_MODE Args: arg_int: 0: normal mode, 1: flipped HW screen (180 degree) Tasks: Reprogramms the display controller to rotate the display by 180 degree (arg_int = 1) or not (arg_int = 0) This may change u8g2->x_offset if the display is smaller than the controller ram This message should only be supported if U8X8_WITH_FLIP_MODE is defined. */ #define U8X8_MSG_DISPLAY_SET_FLIP_MODE 13 /* arg_int: 0..255 contrast value */ #define U8X8_MSG_DISPLAY_SET_CONTRAST 14 /* Name: U8X8_MSG_DISPLAY_DRAW_TILE Args: arg_int: How often to repeat this tile pattern arg_ptr: pointer to u8x8_tile_t uint8_t *tile_ptr; pointer to one or more tiles (number is "cnt") uint8_t cnt; number of tiles uint8_t x_pos; first tile x position uint8_t y_pos; first tile y position Tasks: One tile has exactly 8 bytes (8x8 pixel monochrome bitmap). The lowest bit of the first byte is the upper left corner The highest bit of the first byte is the lower left corner The lowest bit of the last byte is the upper right corner The highest bit of the last byte is the lower left corner "tile_ptr" is the address of a memory area, which contains one or more tiles. "cnt" will contain the exact number of tiles in the memory areay. The size of the memory area is 8*cnt; Multiple tiles in the memory area form a horizontal sequence, this means the first tile is drawn at x_pos/y_pos, the second tile is drawn at x_pos+1/y_pos, third at x_pos+2/y_pos. "arg_int" tells how often the tile sequence should be repeated: For example if "cnt" is two and tile_ptr points to tiles A and B, then for arg_int = 3, the following tile sequence will be drawn: ABABAB. Totally, cnt*arg_int tiles will be drawn. */ #define U8X8_MSG_DISPLAY_DRAW_TILE 15 /* Name: U8X8_MSG_DISPLAY_REFRESH Args: arg_int: - arg_ptr: - This was introduced for the SSD1606 eInk display. The problem is, that all RAM access will not appear on the screen unless a special command is executed. With this message, this command sequence is executed. Use void u8x8_RefreshDisplay(u8x8_t *u8x8) to send the message to the display handler. */ #define U8X8_MSG_DISPLAY_REFRESH 16 /*==========================================*/ /* u8x8_setup.c */ uint8_t u8x8_dummy_cb(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* Setup u8x8 object itself. This should be the very first function called on the new u8x8 object. After this call, assign the callback functions. Optional: Set the pins */ void u8x8_SetupDefaults(u8x8_t *u8x8); /* do not use this, use u8x8_Setup() instead */ void u8x8_Setup(u8x8_t *u8x8, u8x8_msg_cb display_cb, u8x8_msg_cb cad_cb, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb); /*==========================================*/ /* u8x8_display.c */ uint8_t u8x8_DrawTile(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t cnt, uint8_t *tile_ptr); /* After a call to u8x8_SetupDefaults, setup u8x8 memory structures & inform callbacks This function is also called from u8x8_Setup(), so do not call u8x8_SetupMemory() directly, but use u8x8_Setup() instead. */ void u8x8_SetupMemory(u8x8_t *u8x8); /* After calling u8x8_SetupMemory()/u8x8_Setup(), init the display hardware itself. This will will the first time, u8x8 talks to the display. It will init the display, but keep display in power save mode. Usually this command must be followed by u8x8_SetPowerSave() */ void u8x8_InitDisplay(u8x8_t *u8x8); /* wake up display from power save mode */ void u8x8_SetPowerSave(u8x8_t *u8x8, uint8_t is_enable); void u8x8_SetFlipMode(u8x8_t *u8x8, uint8_t mode); void u8x8_SetContrast(u8x8_t *u8x8, uint8_t value); void u8x8_ClearDisplayWithTile(u8x8_t *u8x8, const uint8_t *buf) U8X8_NOINLINE; void u8x8_ClearDisplay(u8x8_t *u8x8); // this does not work for u8g2 in some cases void u8x8_FillDisplay(u8x8_t *u8x8); void u8x8_RefreshDisplay(u8x8_t *u8x8); // make RAM content visible on the display (Dec 16: SSD1606 only) void u8x8_ClearLine(u8x8_t *u8x8, uint8_t line); /*==========================================*/ /* Command Arg Data (CAD) Interface */ /* U8X8_MSG_CAD_INIT no args call U8X8_MSG_BYTE_INIT setup default values for the I/O lines */ #define U8X8_MSG_CAD_INIT 20 #define U8X8_MSG_CAD_SEND_CMD 21 /* arg_int: cmd byte */ #define U8X8_MSG_CAD_SEND_ARG 22 /* arg_int: arg byte */ #define U8X8_MSG_CAD_SEND_DATA 23 /* arg_int: expected cs level after processing this msg */ #define U8X8_MSG_CAD_START_TRANSFER 24 /* arg_int: expected cs level after processing this msg */ #define U8X8_MSG_CAD_END_TRANSFER 25 /* arg_int = 0: disable chip, arg_int = 1: enable chip */ //#define U8X8_MSG_CAD_SET_I2C_ADR 26 //#define U8X8_MSG_CAD_SET_DEVICE 27 /* u8g_cad.c */ #define u8x8_cad_Init(u8x8) ((u8x8)->cad_cb((u8x8), U8X8_MSG_CAD_INIT, 0, NULL )) uint8_t u8x8_cad_SendCmd(u8x8_t *u8x8, uint8_t cmd) U8X8_NOINLINE; uint8_t u8x8_cad_SendArg(u8x8_t *u8x8, uint8_t arg) U8X8_NOINLINE; uint8_t u8x8_cad_SendMultipleArg(u8x8_t *u8x8, uint8_t cnt, uint8_t arg) U8X8_NOINLINE; uint8_t u8x8_cad_SendData(u8x8_t *u8x8, uint8_t cnt, uint8_t *data) U8X8_NOINLINE; uint8_t u8x8_cad_StartTransfer(u8x8_t *u8x8) U8X8_NOINLINE; uint8_t u8x8_cad_EndTransfer(u8x8_t *u8x8) U8X8_NOINLINE; void u8x8_cad_vsendf(u8x8_t * u8x8, const char *fmt, va_list va); void u8x8_SendF(u8x8_t * u8x8, const char *fmt, ...); /* #define U8X8_C(c0) (0x04), (c0) #define U8X8_CA(c0,a0) (0x05), (c0), (a0) #define U8X8_CAA(c0,a0,a1) (0x06), (c0), (a0), (a1) #define U8X8_DATA() (0x10) #define U8X8_D1(d0) (0x11), (d0) */ #define U8X8_C(c0) (U8X8_MSG_CAD_SEND_CMD), (c0) #define U8X8_A(a0) (U8X8_MSG_CAD_SEND_ARG), (a0) #define U8X8_CA(c0,a0) (U8X8_MSG_CAD_SEND_CMD), (c0), (U8X8_MSG_CAD_SEND_ARG), (a0) #define U8X8_CAA(c0,a0,a1) (U8X8_MSG_CAD_SEND_CMD), (c0), (U8X8_MSG_CAD_SEND_ARG), (a0), (U8X8_MSG_CAD_SEND_ARG), (a1) #define U8X8_CAAA(c0,a0,a1, a2) (U8X8_MSG_CAD_SEND_CMD), (c0), (U8X8_MSG_CAD_SEND_ARG), (a0), (U8X8_MSG_CAD_SEND_ARG), (a1), (U8X8_MSG_CAD_SEND_ARG), (a2) #define U8X8_CAAAA(c0,a0,a1,a2,a3) (U8X8_MSG_CAD_SEND_CMD), (c0), (U8X8_MSG_CAD_SEND_ARG), (a0), (U8X8_MSG_CAD_SEND_ARG), (a1), (U8X8_MSG_CAD_SEND_ARG), (a2), (U8X8_MSG_CAD_SEND_ARG), (a3) #define U8X8_AAC(a0,a1,c0) (U8X8_MSG_CAD_SEND_ARG), (a0), (U8X8_MSG_CAD_SEND_ARG), (a1), (U8X8_MSG_CAD_SEND_CMD), (c0) #define U8X8_D1(d0) (U8X8_MSG_CAD_SEND_DATA), (d0) #define U8X8_A4(a0,a1,a2,a3) U8X8_A(a0), U8X8_A(a1), U8X8_A(a2), U8X8_A(a3) #define U8X8_A8(a0,a1,a2,a3,a4,a5,a6,a7) U8X8_A4((a0), (a1), (a2), (a3)), U8X8_A4((a4), (a5), (a6), (a7)) #define U8X8_START_TRANSFER() (U8X8_MSG_CAD_START_TRANSFER) #define U8X8_END_TRANSFER() (U8X8_MSG_CAD_END_TRANSFER) #define U8X8_DLY(m) (0xfe),(m) /* delay in milli seconds */ #define U8X8_END() (0xff) void u8x8_cad_SendSequence(u8x8_t *u8x8, uint8_t const *data); uint8_t u8x8_cad_empty(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_110(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_001(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_011(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_st7920_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_ssd13xx_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_ssd13xx_fast_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_st75256_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_ld7032_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_cad_uc16xx_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /*==========================================*/ /* Byte Interface */ #define U8X8_MSG_BYTE_INIT U8X8_MSG_CAD_INIT #define U8X8_MSG_BYTE_SET_DC 32 #define U8X8_MSG_BYTE_SEND U8X8_MSG_CAD_SEND_DATA #define U8X8_MSG_BYTE_START_TRANSFER U8X8_MSG_CAD_START_TRANSFER #define U8X8_MSG_BYTE_END_TRANSFER U8X8_MSG_CAD_END_TRANSFER //#define U8X8_MSG_BYTE_SET_I2C_ADR U8X8_MSG_CAD_SET_I2C_ADR //#define U8X8_MSG_BYTE_SET_DEVICE U8X8_MSG_CAD_SET_DEVICE uint8_t u8x8_byte_SetDC(u8x8_t *u8x8, uint8_t dc) U8X8_NOINLINE; uint8_t u8x8_byte_SendByte(u8x8_t *u8x8, uint8_t byte) U8X8_NOINLINE; uint8_t u8x8_byte_SendBytes(u8x8_t *u8x8, uint8_t cnt, uint8_t *data) U8X8_NOINLINE; uint8_t u8x8_byte_StartTransfer(u8x8_t *u8x8); uint8_t u8x8_byte_EndTransfer(u8x8_t *u8x8); uint8_t u8x8_byte_empty(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_8bit_6800mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* uint8_t u8x8_byte_st7920_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); */ void u8x8_byte_set_ks0108_cs(u8x8_t *u8x8, uint8_t arg) U8X8_NOINLINE; uint8_t u8x8_byte_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_ssd13xx_sw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* OBSOLETE! */ uint8_t u8x8_byte_sw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_byte_sed1520(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /*==========================================*/ /* GPIO Interface */ /* U8X8_MSG_GPIO_AND_DELAY_INIT no args setup port directions, do not set IO levels, this is done with BYTE/CAD_INIT */ #define U8X8_MSG_GPIO_AND_DELAY_INIT 40 /* arg_int: milliseconds */ #define U8X8_MSG_DELAY_MILLI 41 /* 10MICRO and 100NANO are not used at the moment */ #define U8X8_MSG_DELAY_10MICRO 42 #define U8X8_MSG_DELAY_100NANO 43 #define U8X8_MSG_DELAY_NANO 44 /* delay of one i2c unit, should be 5us for 100K, and 1.25us for 400K */ #define U8X8_MSG_DELAY_I2C 45 #define U8X8_MSG_GPIO(x) (64+(x)) #ifdef U8X8_USE_PINS #define u8x8_GetPinIndex(u8x8, msg) ((msg)&0x3f) #define u8x8_GetPinValue(u8x8, msg) ((u8x8)->pins[(msg)&0x3f]) #endif #define U8X8_MSG_GPIO_D0 U8X8_MSG_GPIO(U8X8_PIN_D0) #define U8X8_MSG_GPIO_SPI_CLOCK U8X8_MSG_GPIO(U8X8_PIN_SPI_CLOCK) #define U8X8_MSG_GPIO_D1 U8X8_MSG_GPIO(U8X8_PIN_D1) #define U8X8_MSG_GPIO_SPI_DATA U8X8_MSG_GPIO(U8X8_PIN_SPI_DATA) #define U8X8_MSG_GPIO_D2 U8X8_MSG_GPIO(U8X8_PIN_D2) #define U8X8_MSG_GPIO_D3 U8X8_MSG_GPIO(U8X8_PIN_D3) #define U8X8_MSG_GPIO_D4 U8X8_MSG_GPIO(U8X8_PIN_D4) #define U8X8_MSG_GPIO_D5 U8X8_MSG_GPIO(U8X8_PIN_D5) #define U8X8_MSG_GPIO_D6 U8X8_MSG_GPIO(U8X8_PIN_D6) #define U8X8_MSG_GPIO_D7 U8X8_MSG_GPIO(U8X8_PIN_D7) #define U8X8_MSG_GPIO_E U8X8_MSG_GPIO(U8X8_PIN_E) // used as E1 for the SED1520 #define U8X8_MSG_GPIO_CS U8X8_MSG_GPIO(U8X8_PIN_CS) // used as E2 for the SED1520 #define U8X8_MSG_GPIO_DC U8X8_MSG_GPIO(U8X8_PIN_DC) #define U8X8_MSG_GPIO_RESET U8X8_MSG_GPIO(U8X8_PIN_RESET) #define U8X8_MSG_GPIO_I2C_CLOCK U8X8_MSG_GPIO(U8X8_PIN_I2C_CLOCK) #define U8X8_MSG_GPIO_I2C_DATA U8X8_MSG_GPIO(U8X8_PIN_I2C_DATA) #define U8X8_MSG_GPIO_CS1 U8X8_MSG_GPIO(U8X8_PIN_CS1) /* KS0108 extra chip select */ #define U8X8_MSG_GPIO_CS2 U8X8_MSG_GPIO(U8X8_PIN_CS2) /* KS0108 extra chip select */ /* these message expect the return value in u8x8->gpio_result */ #define U8X8_MSG_GPIO_MENU_SELECT U8X8_MSG_GPIO(U8X8_PIN_MENU_SELECT) #define U8X8_MSG_GPIO_MENU_NEXT U8X8_MSG_GPIO(U8X8_PIN_MENU_NEXT) #define U8X8_MSG_GPIO_MENU_PREV U8X8_MSG_GPIO(U8X8_PIN_MENU_PREV) #define U8X8_MSG_GPIO_MENU_HOME U8X8_MSG_GPIO(U8X8_PIN_MENU_HOME) #define U8X8_MSG_GPIO_MENU_UP U8X8_MSG_GPIO(U8X8_PIN_MENU_UP) #define U8X8_MSG_GPIO_MENU_DOWN U8X8_MSG_GPIO(U8X8_PIN_MENU_DOWN) #define u8x8_gpio_Init(u8x8) ((u8x8)->gpio_and_delay_cb((u8x8), U8X8_MSG_GPIO_AND_DELAY_INIT, 0, NULL )) /* #define u8x8_gpio_SetDC(u8x8, v) ((u8x8)->gpio_and_delay_cb((u8x8), U8X8_MSG_GPIO_DC, (v), NULL )) #define u8x8_gpio_SetCS(u8x8, v) ((u8x8)->gpio_and_delay_cb((u8x8), U8X8_MSG_GPIO_CS, (v), NULL )) #define u8x8_gpio_SetReset(u8x8, v) ((u8x8)->gpio_and_delay_cb((u8x8), U8X8_MSG_GPIO_RESET, (v), NULL )) */ #define u8x8_gpio_SetDC(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_DC, (v)) #define u8x8_gpio_SetCS(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_CS, (v)) #define u8x8_gpio_SetReset(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_RESET, (v)) #define u8x8_gpio_SetSPIClock(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_SPI_CLOCK, (v)) #define u8x8_gpio_SetSPIData(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_SPI_DATA, (v)) #define u8x8_gpio_SetI2CClock(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_I2C_CLOCK, (v)) #define u8x8_gpio_SetI2CData(u8x8, v) u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_I2C_DATA, (v)) void u8x8_gpio_call(u8x8_t *u8x8, uint8_t msg, uint8_t arg) U8X8_NOINLINE; #define u8x8_gpio_Delay(u8x8, msg, dly) u8x8_gpio_call((u8x8), (msg), (dly)) //void u8x8_gpio_Delay(u8x8_t *u8x8, uint8_t msg, uint8_t dly) U8X8_NOINLINE; /*==========================================*/ /* u8x8_debounce.c */ /* return U8X8_MSG_GPIO_MENU_xxxxx messages */ uint8_t u8x8_GetMenuEvent(u8x8_t *u8x8); /*==========================================*/ /* u8x8_d_stdio.c */ void u8x8_SetupStdio(u8x8_t *u8x8); /*==========================================*/ /* u8x8_d_sdl_128x64.c */ void u8x8_Setup_SDL_128x64(u8x8_t *u8x8); void u8x8_Setup_SDL_240x160(u8x8_t *u8x8); int u8g_sdl_get_key(void); /*==========================================*/ /* u8x8_d_tga.c */ void u8x8_Setup_TGA_DESC(u8x8_t *u8x8); void u8x8_Setup_TGA_LCD(u8x8_t *u8x8); void tga_save(const char *name); /*==========================================*/ /* u8x8_d_bitmap.c */ uint8_t u8x8_GetBitmapPixel(u8x8_t *u8x8, uint16_t x, uint16_t y); void u8x8_SaveBitmapTGA(u8x8_t *u8x8, const char *filename); void u8x8_SetupBitmap(u8x8_t *u8x8, uint16_t pixel_width, uint16_t pixel_height); uint8_t u8x8_ConnectBitmapToU8x8(u8x8_t *u8x8); /*==========================================*/ /* u8x8_d_utf8.c */ void u8x8_Setup_Utf8(u8x8_t *u8x8); /* stdout UTF-8 display */ void utf8_show(void); /* show content of UTF-8 frame buffer */ /*==========================================*/ /* u8x8_setup.c */ uint8_t u8x8_d_null_cb(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* u8x8_d_XXX.c */ uint8_t u8x8_d_uc1701_ea_dogs102(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1701_mini12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1305_128x32_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1305_128x32_adafruit(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1305_128x64_adafruit(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1305_128x64_raystar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x64_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x80_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x64_vcomh0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x64_alt0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1309_128x64_noname0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1309_128x64_noname2(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1106_128x64_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1106_128x64_vcomh0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1106_128x64_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1106_128x32_visionox(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); // located in ssd1306_128x32 uint8_t u8x8_d_sh1106_72x40_wise(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1106_64x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1107_64x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1107_seeed_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1107_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1107_pimoroni_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1107_seeed_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1108_160x160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sh1122_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7920_192x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7920_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_2040x16(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x32_univision(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_128x32_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_64x48_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_48x64_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_64x32_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_64x32_1f(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_96x16_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1306_72x40_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ls013b7dh03_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ls027b7dh01_400x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ls027b7dh01_m0_400x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ls013b7dh05_144x168(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7511_avd_320x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7528_nhd_c160100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7528_erc16064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_ea_dogm128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_lm6063(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_64128n(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_ea_dogm132(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_zolen_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_nhd_c12832(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_nhd_c12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_lm6059(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_ks0713(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_lx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_erc12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7565_erc12864_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* issue #790 */ uint8_t u8x8_d_st7567_pi_132x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_enh_dg128064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_enh_dg128064i(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_64x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_hem6432(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7567_os12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7571_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7586s_s028hn118a(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7586s_erc240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7586s_ymc240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st7588_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx256128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_wo256x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx256160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx256160m(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx256160_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx25664(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx172104(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75256_jlx19296(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_st75320_jlx320240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* https://github.com/olikraus/u8g2/issues/921 */ uint8_t u8x8_d_nt7534_tg12864r(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* u8x8_d_st7565.c */ uint8_t u8x8_d_ld7032_60x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ld7032_60x32_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_128x64_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_160x80(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_t6963_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1316_128x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1317_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1318_128x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1318_128x96_xcp(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1320_160x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1320_160x132(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1322_nhd_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1322_nhd_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_a2printer_384x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sed1330_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ra8835_nhd_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ra8835_320x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1325_nhd_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd0323_os128064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_ws_96x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_seeed_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_ea_w128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_midas_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_ws_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1327_visionox_128x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1326_er_256x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1329_128x96_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1601_128x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1604_jlx19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1608_erc24064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1608_dem240064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1608_erc240120(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1608_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1610_ea_dogxl160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1611_ea_dogm240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1611_ea_dogxl240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1611_ew50850(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* 240x160 */ uint8_t u8x8_d_uc1611_cg160160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* 160x160 */ uint8_t u8x8_d_uc1617_jlx128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_uc1611_ids4073(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* 256x128 */ uint8_t u8x8_d_uc1638_160x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ks0108_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ks0108_erm19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sbn1661_122x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_sed1520_122x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_pcd8544_84x48(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_pcf8812_96x65(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_hx1230_96x68(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1606_172x72(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1607_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1607_v2_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1607_gd_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ssd1607_ws_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /* issue 637 */ uint8_t u8x8_d_il3820_296x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_il3820_v2_296x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_lc7981_160x80(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_lc7981_160x160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_lc7981_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_lc7981_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ist3020_erc19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_ist7920_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_max7219_64x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_max7219_32x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_max7219_16x16(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_max7219_8x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_s1d15e06_160100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); uint8_t u8x8_d_s1d15721_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /*==========================================*/ /* u8x8_8x8.c */ uint16_t u8x8_upscale_byte(uint8_t x) U8X8_NOINLINE; void u8x8_utf8_init(u8x8_t *u8x8); uint16_t u8x8_ascii_next(u8x8_t *u8x8, uint8_t b); uint16_t u8x8_utf8_next(u8x8_t *u8x8, uint8_t b); // the following two functions are replaced by the init/next functions //uint16_t u8x8_get_encoding_from_utf8_string(const char **str); //uint16_t u8x8_get_char_from_string(const char **str); void u8x8_SetFont(u8x8_t *u8x8, const uint8_t *font_8x8); void u8x8_DrawGlyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding); void u8x8_Draw2x2Glyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding); void u8x8_Draw1x2Glyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding); uint8_t u8x8_DrawString(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); uint8_t u8x8_DrawUTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); /* return number of glyps */ uint8_t u8x8_Draw2x2String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); uint8_t u8x8_Draw2x2UTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); uint8_t u8x8_Draw1x2String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); uint8_t u8x8_Draw1x2UTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s); uint8_t u8x8_GetUTF8Len(u8x8_t *u8x8, const char *s); #define u8x8_SetInverseFont(u8x8, b) (u8x8)->is_font_inverse_mode = (b) /*==========================================*/ /* itoa procedures */ const char *u8x8_u8toa(uint8_t v, uint8_t d); const char *u8x8_u16toa(uint16_t v, uint8_t d); const char *u8x8_utoa(uint16_t v); /*==========================================*/ /* u8x8_string.c */ uint8_t u8x8_GetStringLineCnt(const char *str); /* return 0 for str==NULL */ const char *u8x8_GetStringLineStart(uint8_t line_idx, const char *str ); void u8x8_CopyStringLine(char *dest, uint8_t line_idx, const char *str); /* draw one line, consider \t for center */ uint8_t u8x8_DrawUTF8Line(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t w, const char *s); /* draw multiple lines, handle \t */ uint8_t u8x8_DrawUTF8Lines(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t w, const char *s); /*==========================================*/ /* u8x8_selection_list.c */ struct _u8sl_struct { uint8_t visible; /* number of visible elements in the menu */ uint8_t total; /* total number of elements in the menu */ uint8_t first_pos; /* position of the first visible line */ uint8_t current_pos; /* current cursor position, starts at 0 */ uint8_t x; /* u8x8 only, not used in u8g2 */ uint8_t y; /* u8x8 only, not used in u8g2 */ }; typedef struct _u8sl_struct u8sl_t; typedef void (*u8x8_sl_cb)(u8x8_t *u8x8, u8sl_t *u8sl, uint8_t idx, const void *aux); void u8sl_Next(u8sl_t *u8sl); void u8sl_Prev(u8sl_t *u8sl); uint8_t u8x8_UserInterfaceSelectionList(u8x8_t *u8x8, const char *title, uint8_t start_pos, const char *sl); /*==========================================*/ /* u8x8_message.c */ uint8_t u8x8_UserInterfaceMessage(u8x8_t *u8x8, const char *title1, const char *title2, const char *title3, const char *buttons); /*==========================================*/ /* u8x8_capture.c */ /* vertical_top memory architecture */ uint8_t u8x8_capture_get_pixel_1(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width); /* horizontal right memory architecture */ /* SH1122, LD7032, ST7920, ST7986, LC7981, T6963, SED1330, RA8835, MAX7219, LS0 */ uint8_t u8x8_capture_get_pixel_2(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width); void u8x8_capture_write_pbm_pre(uint8_t tile_width, uint8_t tile_height, void (*out)(const char *s)); void u8x8_capture_write_pbm_buffer(uint8_t *buffer, uint8_t tile_width, uint8_t tile_height, uint8_t (*get_pixel)(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width), void (*out)(const char *s)); void u8x8_capture_write_xbm_pre(uint8_t tile_width, uint8_t tile_height, void (*out)(const char *s)); void u8x8_capture_write_xbm_buffer(uint8_t *buffer, uint8_t tile_width, uint8_t tile_height, uint8_t (*get_pixel)(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width), void (*out)(const char *s)); /*==========================================*/ /* u8x8_input_value.c */ uint8_t u8x8_UserInterfaceInputValue(u8x8_t *u8x8, const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post); /*==========================================*/ /* u8log.c */ void u8log_Init(u8log_t *u8log, uint8_t width, uint8_t height, uint8_t *buf); void u8log_SetCallback(u8log_t *u8log, u8log_cb cb, void *aux_data); void u8log_SetRedrawMode(u8log_t *u8log, uint8_t is_redraw_line_for_each_char); void u8log_SetLineHeightOffset(u8log_t *u8log, int8_t line_height_offset); void u8log_WriteString(u8log_t *u8log, const char *s) U8X8_NOINLINE; void u8log_WriteChar(u8log_t *u8log, uint8_t c) U8X8_NOINLINE; void u8log_WriteHex8(u8log_t *u8log, uint8_t b) U8X8_NOINLINE; void u8log_WriteHex16(u8log_t *u8log, uint16_t v); void u8log_WriteHex32(u8log_t *u8log, uint32_t v); void u8log_WriteDec8(u8log_t *u8log, uint8_t v, uint8_t d); void u8log_WriteDec16(u8log_t *u8log, uint16_t v, uint8_t d); /*==========================================*/ /* u8log_u8x8.c */ void u8x8_DrawLog(u8x8_t *u8x8, uint8_t x, uint8_t y, u8log_t *u8log); void u8log_u8x8_cb(u8log_t * u8log); /*==========================================*/ /* start font list */ extern const uint8_t u8x8_font_amstrad_cpc_extended_f[] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_f"); extern const uint8_t u8x8_font_amstrad_cpc_extended_r[] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_r"); extern const uint8_t u8x8_font_amstrad_cpc_extended_n[] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_n"); extern const uint8_t u8x8_font_amstrad_cpc_extended_u[] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_u"); extern const uint8_t u8x8_font_5x7_f[] U8X8_FONT_SECTION("u8x8_font_5x7_f"); extern const uint8_t u8x8_font_5x7_r[] U8X8_FONT_SECTION("u8x8_font_5x7_r"); extern const uint8_t u8x8_font_5x7_n[] U8X8_FONT_SECTION("u8x8_font_5x7_n"); extern const uint8_t u8x8_font_5x8_f[] U8X8_FONT_SECTION("u8x8_font_5x8_f"); extern const uint8_t u8x8_font_5x8_r[] U8X8_FONT_SECTION("u8x8_font_5x8_r"); extern const uint8_t u8x8_font_5x8_n[] U8X8_FONT_SECTION("u8x8_font_5x8_n"); extern const uint8_t u8x8_font_8x13_1x2_f[] U8X8_FONT_SECTION("u8x8_font_8x13_1x2_f"); extern const uint8_t u8x8_font_8x13_1x2_r[] U8X8_FONT_SECTION("u8x8_font_8x13_1x2_r"); extern const uint8_t u8x8_font_8x13_1x2_n[] U8X8_FONT_SECTION("u8x8_font_8x13_1x2_n"); extern const uint8_t u8x8_font_8x13B_1x2_f[] U8X8_FONT_SECTION("u8x8_font_8x13B_1x2_f"); extern const uint8_t u8x8_font_8x13B_1x2_r[] U8X8_FONT_SECTION("u8x8_font_8x13B_1x2_r"); extern const uint8_t u8x8_font_8x13B_1x2_n[] U8X8_FONT_SECTION("u8x8_font_8x13B_1x2_n"); extern const uint8_t u8x8_font_7x14_1x2_f[] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_f"); extern const uint8_t u8x8_font_7x14_1x2_r[] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_r"); extern const uint8_t u8x8_font_7x14_1x2_n[] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_n"); extern const uint8_t u8x8_font_7x14B_1x2_f[] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_f"); extern const uint8_t u8x8_font_7x14B_1x2_r[] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_r"); extern const uint8_t u8x8_font_7x14B_1x2_n[] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_n"); extern const uint8_t u8x8_font_open_iconic_arrow_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_1x1"); extern const uint8_t u8x8_font_open_iconic_check_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_1x1"); extern const uint8_t u8x8_font_open_iconic_embedded_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_1x1"); extern const uint8_t u8x8_font_open_iconic_play_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_1x1"); extern const uint8_t u8x8_font_open_iconic_thing_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_1x1"); extern const uint8_t u8x8_font_open_iconic_weather_1x1[] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_1x1"); extern const uint8_t u8x8_font_open_iconic_arrow_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_2x2"); extern const uint8_t u8x8_font_open_iconic_check_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_2x2"); extern const uint8_t u8x8_font_open_iconic_embedded_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_2x2"); extern const uint8_t u8x8_font_open_iconic_play_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_2x2"); extern const uint8_t u8x8_font_open_iconic_thing_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_2x2"); extern const uint8_t u8x8_font_open_iconic_weather_2x2[] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_2x2"); extern const uint8_t u8x8_font_open_iconic_arrow_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_4x4"); extern const uint8_t u8x8_font_open_iconic_check_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_4x4"); extern const uint8_t u8x8_font_open_iconic_embedded_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_4x4"); extern const uint8_t u8x8_font_open_iconic_play_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_4x4"); extern const uint8_t u8x8_font_open_iconic_thing_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_4x4"); extern const uint8_t u8x8_font_open_iconic_weather_4x4[] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_4x4"); extern const uint8_t u8x8_font_open_iconic_arrow_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_8x8"); extern const uint8_t u8x8_font_open_iconic_check_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_8x8"); extern const uint8_t u8x8_font_open_iconic_embedded_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_8x8"); extern const uint8_t u8x8_font_open_iconic_play_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_8x8"); extern const uint8_t u8x8_font_open_iconic_thing_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_8x8"); extern const uint8_t u8x8_font_open_iconic_weather_8x8[] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_8x8"); extern const uint8_t u8x8_font_profont29_2x3_f[] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_f"); extern const uint8_t u8x8_font_profont29_2x3_r[] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_r"); extern const uint8_t u8x8_font_profont29_2x3_n[] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_n"); extern const uint8_t u8x8_font_artossans8_r[] U8X8_FONT_SECTION("u8x8_font_artossans8_r"); extern const uint8_t u8x8_font_artossans8_n[] U8X8_FONT_SECTION("u8x8_font_artossans8_n"); extern const uint8_t u8x8_font_artossans8_u[] U8X8_FONT_SECTION("u8x8_font_artossans8_u"); extern const uint8_t u8x8_font_artosserif8_r[] U8X8_FONT_SECTION("u8x8_font_artosserif8_r"); extern const uint8_t u8x8_font_artosserif8_n[] U8X8_FONT_SECTION("u8x8_font_artosserif8_n"); extern const uint8_t u8x8_font_artosserif8_u[] U8X8_FONT_SECTION("u8x8_font_artosserif8_u"); extern const uint8_t u8x8_font_chroma48medium8_r[] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_r"); extern const uint8_t u8x8_font_chroma48medium8_n[] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_n"); extern const uint8_t u8x8_font_chroma48medium8_u[] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_u"); extern const uint8_t u8x8_font_saikyosansbold8_n[] U8X8_FONT_SECTION("u8x8_font_saikyosansbold8_n"); extern const uint8_t u8x8_font_saikyosansbold8_u[] U8X8_FONT_SECTION("u8x8_font_saikyosansbold8_u"); extern const uint8_t u8x8_font_torussansbold8_r[] U8X8_FONT_SECTION("u8x8_font_torussansbold8_r"); extern const uint8_t u8x8_font_torussansbold8_n[] U8X8_FONT_SECTION("u8x8_font_torussansbold8_n"); extern const uint8_t u8x8_font_torussansbold8_u[] U8X8_FONT_SECTION("u8x8_font_torussansbold8_u"); extern const uint8_t u8x8_font_victoriabold8_r[] U8X8_FONT_SECTION("u8x8_font_victoriabold8_r"); extern const uint8_t u8x8_font_victoriabold8_n[] U8X8_FONT_SECTION("u8x8_font_victoriabold8_n"); extern const uint8_t u8x8_font_victoriabold8_u[] U8X8_FONT_SECTION("u8x8_font_victoriabold8_u"); extern const uint8_t u8x8_font_victoriamedium8_r[] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_r"); extern const uint8_t u8x8_font_victoriamedium8_n[] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_n"); extern const uint8_t u8x8_font_victoriamedium8_u[] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_u"); extern const uint8_t u8x8_font_courB18_2x3_f[] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_f"); extern const uint8_t u8x8_font_courB18_2x3_r[] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_r"); extern const uint8_t u8x8_font_courB18_2x3_n[] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_n"); extern const uint8_t u8x8_font_courR18_2x3_f[] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_f"); extern const uint8_t u8x8_font_courR18_2x3_r[] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_r"); extern const uint8_t u8x8_font_courR18_2x3_n[] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_n"); extern const uint8_t u8x8_font_courB24_3x4_f[] U8X8_FONT_SECTION("u8x8_font_courB24_3x4_f"); extern const uint8_t u8x8_font_courB24_3x4_r[] U8X8_FONT_SECTION("u8x8_font_courB24_3x4_r"); extern const uint8_t u8x8_font_courB24_3x4_n[] U8X8_FONT_SECTION("u8x8_font_courB24_3x4_n"); extern const uint8_t u8x8_font_courR24_3x4_f[] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_f"); extern const uint8_t u8x8_font_courR24_3x4_r[] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_r"); extern const uint8_t u8x8_font_courR24_3x4_n[] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_n"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_o_2x2_f[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_o_2x2_f"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_o_2x2_r[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_o_2x2_r"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_o_2x2_n[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_o_2x2_n"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_f[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_f"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_r[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_r"); extern const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_n[] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_n"); extern const uint8_t u8x8_font_inr21_2x4_f[] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_f"); extern const uint8_t u8x8_font_inr21_2x4_r[] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_r"); extern const uint8_t u8x8_font_inr21_2x4_n[] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_n"); extern const uint8_t u8x8_font_inr33_3x6_f[] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_f"); extern const uint8_t u8x8_font_inr33_3x6_r[] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_r"); extern const uint8_t u8x8_font_inr33_3x6_n[] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_n"); extern const uint8_t u8x8_font_inr46_4x8_f[] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_f"); extern const uint8_t u8x8_font_inr46_4x8_r[] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_r"); extern const uint8_t u8x8_font_inr46_4x8_n[] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_n"); extern const uint8_t u8x8_font_inb21_2x4_f[] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_f"); extern const uint8_t u8x8_font_inb21_2x4_r[] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_r"); extern const uint8_t u8x8_font_inb21_2x4_n[] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_n"); extern const uint8_t u8x8_font_inb33_3x6_f[] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_f"); extern const uint8_t u8x8_font_inb33_3x6_r[] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_r"); extern const uint8_t u8x8_font_inb33_3x6_n[] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_n"); extern const uint8_t u8x8_font_inb46_4x8_f[] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_f"); extern const uint8_t u8x8_font_inb46_4x8_r[] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_r"); extern const uint8_t u8x8_font_inb46_4x8_n[] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_n"); extern const uint8_t u8x8_font_pressstart2p_f[] U8X8_FONT_SECTION("u8x8_font_pressstart2p_f"); extern const uint8_t u8x8_font_pressstart2p_r[] U8X8_FONT_SECTION("u8x8_font_pressstart2p_r"); extern const uint8_t u8x8_font_pressstart2p_n[] U8X8_FONT_SECTION("u8x8_font_pressstart2p_n"); extern const uint8_t u8x8_font_pressstart2p_u[] U8X8_FONT_SECTION("u8x8_font_pressstart2p_u"); extern const uint8_t u8x8_font_pcsenior_f[] U8X8_FONT_SECTION("u8x8_font_pcsenior_f"); extern const uint8_t u8x8_font_pcsenior_r[] U8X8_FONT_SECTION("u8x8_font_pcsenior_r"); extern const uint8_t u8x8_font_pcsenior_n[] U8X8_FONT_SECTION("u8x8_font_pcsenior_n"); extern const uint8_t u8x8_font_pcsenior_u[] U8X8_FONT_SECTION("u8x8_font_pcsenior_u"); extern const uint8_t u8x8_font_pxplusibmcgathin_f[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_f"); extern const uint8_t u8x8_font_pxplusibmcgathin_r[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_r"); extern const uint8_t u8x8_font_pxplusibmcgathin_n[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_n"); extern const uint8_t u8x8_font_pxplusibmcgathin_u[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_u"); extern const uint8_t u8x8_font_pxplusibmcga_f[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_f"); extern const uint8_t u8x8_font_pxplusibmcga_r[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_r"); extern const uint8_t u8x8_font_pxplusibmcga_n[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_n"); extern const uint8_t u8x8_font_pxplusibmcga_u[] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_u"); extern const uint8_t u8x8_font_pxplustandynewtv_f[] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_f"); extern const uint8_t u8x8_font_pxplustandynewtv_r[] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_r"); extern const uint8_t u8x8_font_pxplustandynewtv_n[] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_n"); extern const uint8_t u8x8_font_pxplustandynewtv_u[] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_u"); extern const uint8_t u8x8_font_px437wyse700a_2x2_f[] U8X8_FONT_SECTION("u8x8_font_px437wyse700a_2x2_f"); extern const uint8_t u8x8_font_px437wyse700a_2x2_r[] U8X8_FONT_SECTION("u8x8_font_px437wyse700a_2x2_r"); extern const uint8_t u8x8_font_px437wyse700a_2x2_n[] U8X8_FONT_SECTION("u8x8_font_px437wyse700a_2x2_n"); extern const uint8_t u8x8_font_px437wyse700b_2x2_f[] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_f"); extern const uint8_t u8x8_font_px437wyse700b_2x2_r[] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_r"); extern const uint8_t u8x8_font_px437wyse700b_2x2_n[] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_n"); /* end font list */ #ifdef __cplusplus } #endif #endif /* _U8X8_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_8x8.c ================================================ /* u8x8_8x8.c font procedures, directly interfaces display procedures Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" #if defined(ESP8266) uint8_t u8x8_pgm_read_esp(const uint8_t * addr) { uint32_t bytes; bytes = *(uint32_t*)((uint32_t)addr & ~3); return ((uint8_t*)&bytes)[(uint32_t)addr & 3]; } #endif void u8x8_SetFont(u8x8_t *u8x8, const uint8_t *font_8x8) { u8x8->font = font_8x8; } /* Args: u8x8: ptr to u8x8 structure encoding: glyph for which the data is requested (must be between 0 and 255) buf: pointer to 8 bytes */ static void u8x8_get_glyph_data(u8x8_t *u8x8, uint8_t encoding, uint8_t *buf, uint8_t tile_offset) U8X8_NOINLINE; static void u8x8_get_glyph_data(u8x8_t *u8x8, uint8_t encoding, uint8_t *buf, uint8_t tile_offset) { uint8_t first, last, tiles, i; uint16_t offset; first = u8x8_pgm_read(u8x8->font+0); last = u8x8_pgm_read(u8x8->font+1); tiles = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ tiles *= u8x8_pgm_read(u8x8->font+3); /* new 2019 format */ /* get the glyph bitmap from the font */ if ( first <= encoding && encoding <= last ) { offset = encoding; offset -= first; offset *= tiles; /* new 2019 format */ offset += tile_offset; /* new 2019 format */ offset *= 8; offset +=4; /* changed from 2 to 4, new 2019 format */ for( i = 0; i < 8; i++ ) { buf[i] = u8x8_pgm_read(u8x8->font+offset); offset++; } } else { for( i = 0; i < 8; i++ ) { buf[i] = 0; } } /* invert the bitmap if required */ if ( u8x8->is_font_inverse_mode ) { for( i = 0; i < 8; i++ ) { buf[i] ^= 255; } } } void u8x8_DrawGlyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding) { uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ uint8_t tv = u8x8_pgm_read(u8x8->font+3); /* new 2019 format */ uint8_t xx, tile; uint8_t buf[8]; th += x; tv += y; tile = 0; do { xx = x; do { u8x8_get_glyph_data(u8x8, encoding, buf, tile); u8x8_DrawTile(u8x8, xx, y, 1, buf); tile++; xx++; } while( xx < th ); y++; } while( y < tv ); } /* Source: http://graphics.stanford.edu/~seander/bithacks.html Section: Interleave bits by Binary Magic Numbers Original codes is here: static const unsigned int B[] = {0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF}; static const unsigned int S[] = {1, 2, 4, 8}; unsigned int x; // Interleave lower 16 bits of x and y, so the bits of x unsigned int y; // are in the even positions and bits from y in the odd; unsigned int z; // z gets the resulting 32-bit Morton Number. // x and y must initially be less than 65536. x = (x | (x << S[3])) & B[3]; x = (x | (x << S[2])) & B[2]; x = (x | (x << S[1])) & B[1]; x = (x | (x << S[0])) & B[0]; y = (y | (y << S[3])) & B[3]; y = (y | (y << S[2])) & B[2]; y = (y | (y << S[1])) & B[1]; y = (y | (y << S[0])) & B[0]; z = x | (y << 1); */ uint16_t u8x8_upscale_byte(uint8_t x) { uint16_t y = x; y |= (y << 4); // x = (x | (x << S[2])) & B[2]; y &= 0x0f0f; y |= (y << 2); // x = (x | (x << S[1])) & B[1]; y &= 0x3333; y |= (y << 1); // x = (x | (x << S[0])) & B[0]; y &= 0x5555; y |= (y << 1); // z = x | (y << 1); return y; } static void u8x8_upscale_buf(uint8_t *src, uint8_t *dest) U8X8_NOINLINE; static void u8x8_upscale_buf(uint8_t *src, uint8_t *dest) { uint8_t i = 4; do { *dest++ = *src; *dest++ = *src++; i--; } while( i > 0 ); } static void u8x8_draw_2x2_subglyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding, uint8_t tile) { uint8_t i; uint16_t t; uint8_t buf[8]; uint8_t buf1[8]; uint8_t buf2[8]; u8x8_get_glyph_data(u8x8, encoding, buf, tile); for( i = 0; i < 8; i ++ ) { t = u8x8_upscale_byte(buf[i]); buf1[i] = t >> 8; buf2[i] = t & 255; } u8x8_upscale_buf(buf2, buf); u8x8_DrawTile(u8x8, x, y, 1, buf); u8x8_upscale_buf(buf2+4, buf); u8x8_DrawTile(u8x8, x+1, y, 1, buf); u8x8_upscale_buf(buf1, buf); u8x8_DrawTile(u8x8, x, y+1, 1, buf); u8x8_upscale_buf(buf1+4, buf); u8x8_DrawTile(u8x8, x+1, y+1, 1, buf); } void u8x8_Draw2x2Glyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding) { uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ uint8_t tv = u8x8_pgm_read(u8x8->font+3); /* new 2019 format */ uint8_t xx, tile; th *= 2; th += x; tv *= 2; tv += y; tile = 0; do { xx = x; do { u8x8_draw_2x2_subglyph(u8x8, xx, y, encoding, tile); tile++; xx+=2; } while( xx < th ); y+=2; } while( y < tv ); } /* https://github.com/olikraus/u8g2/issues/474 */ static void u8x8_draw_1x2_subglyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding, uint8_t tile) { uint8_t i; uint16_t t; uint8_t buf[8]; uint8_t buf1[8]; uint8_t buf2[8]; u8x8_get_glyph_data(u8x8, encoding, buf, tile); for( i = 0; i < 8; i ++ ) { t = u8x8_upscale_byte(buf[i]); buf1[i] = t >> 8; buf2[i] = t & 255; } u8x8_DrawTile(u8x8, x, y, 1, buf2); u8x8_DrawTile(u8x8, x, y+1, 1, buf1); } void u8x8_Draw1x2Glyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding) { uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ uint8_t tv = u8x8_pgm_read(u8x8->font+3); /* new 2019 format */ uint8_t xx, tile; th += x; tv *= 2; tv += y; tile = 0; do { xx = x; do { u8x8_draw_1x2_subglyph(u8x8, xx, y, encoding, tile); tile++; xx++; } while( xx < th ); y+=2; } while( y < tv ); } /* source: https://en.wikipedia.org/wiki/UTF-8 Bits from to bytes Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 7 U+0000 U+007F 1 0xxxxxxx 11 U+0080 U+07FF 2 110xxxxx 10xxxxxx 16 U+0800 U+FFFF 3 1110xxxx 10xxxxxx 10xxxxxx 21 U+10000 U+1FFFFF 4 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 26 U+200000 U+3FFFFFF 5 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 31 U+4000000 U+7FFFFFFF 6 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */ /* reset the internal state machine */ void u8x8_utf8_init(u8x8_t *u8x8) { u8x8->utf8_state = 0; /* also reset during u8x8_SetupDefaults() */ } uint16_t u8x8_ascii_next(U8X8_UNUSED u8x8_t *u8x8, uint8_t b) { if ( b == 0 || b == '\n' ) /* '\n' terminates the string to support the string list procedures */ return 0x0ffff; /* end of string detected*/ return b; } /* pass a byte from an utf8 encoded string to the utf8 decoder state machine returns 0x0fffe: no glyph, just continue 0x0ffff: end of string anything else: The decoded encoding */ uint16_t u8x8_utf8_next(u8x8_t *u8x8, uint8_t b) { if ( b == 0 || b == '\n' ) /* '\n' terminates the string to support the string list procedures */ return 0x0ffff; /* end of string detected, pending UTF8 is discarded */ if ( u8x8->utf8_state == 0 ) { if ( b >= 0xfc ) /* 6 byte sequence */ { u8x8->utf8_state = 5; b &= 1; } else if ( b >= 0xf8 ) { u8x8->utf8_state = 4; b &= 3; } else if ( b >= 0xf0 ) { u8x8->utf8_state = 3; b &= 7; } else if ( b >= 0xe0 ) { u8x8->utf8_state = 2; b &= 15; } else if ( b >= 0xc0 ) { u8x8->utf8_state = 1; b &= 0x01f; } else { /* do nothing, just use the value as encoding */ return b; } u8x8->encoding = b; return 0x0fffe; } else { u8x8->utf8_state--; /* The case b < 0x080 (an illegal UTF8 encoding) is not checked here. */ u8x8->encoding<<=6; b &= 0x03f; u8x8->encoding |= b; if ( u8x8->utf8_state != 0 ) return 0x0fffe; /* nothing to do yet */ } return u8x8->encoding; } static uint8_t u8x8_draw_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) U8X8_NOINLINE; static uint8_t u8x8_draw_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { uint16_t e; uint8_t cnt = 0; uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ u8x8_utf8_init(u8x8); for(;;) { e = u8x8->next_cb(u8x8, (uint8_t)*s); if ( e == 0x0ffff ) break; s++; if ( e != 0x0fffe ) { u8x8_DrawGlyph(u8x8, x, y, e); x+=th; cnt++; } } return cnt; } uint8_t u8x8_DrawString(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_ascii_next; return u8x8_draw_string(u8x8, x, y, s); } uint8_t u8x8_DrawUTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_utf8_next; return u8x8_draw_string(u8x8, x, y, s); } static uint8_t u8x8_draw_2x2_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) U8X8_NOINLINE; static uint8_t u8x8_draw_2x2_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { uint16_t e; uint8_t cnt = 0; uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ th <<= 1; u8x8_utf8_init(u8x8); for(;;) { e = u8x8->next_cb(u8x8, (uint8_t)*s); if ( e == 0x0ffff ) break; s++; if ( e != 0x0fffe ) { u8x8_Draw2x2Glyph(u8x8, x, y, e); x+=th; cnt++; } } return cnt; } uint8_t u8x8_Draw2x2String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_ascii_next; return u8x8_draw_2x2_string(u8x8, x, y, s); } uint8_t u8x8_Draw2x2UTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_utf8_next; return u8x8_draw_2x2_string(u8x8, x, y, s); } static uint8_t u8x8_draw_1x2_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) U8X8_NOINLINE; static uint8_t u8x8_draw_1x2_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { uint16_t e; uint8_t cnt = 0; uint8_t th = u8x8_pgm_read(u8x8->font+2); /* new 2019 format */ u8x8_utf8_init(u8x8); for(;;) { e = u8x8->next_cb(u8x8, (uint8_t)*s); if ( e == 0x0ffff ) break; s++; if ( e != 0x0fffe ) { u8x8_Draw1x2Glyph(u8x8, x, y, e); x+=th; cnt++; } } return cnt; } uint8_t u8x8_Draw1x2String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_ascii_next; return u8x8_draw_1x2_string(u8x8, x, y, s); } uint8_t u8x8_Draw1x2UTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s) { u8x8->next_cb = u8x8_utf8_next; return u8x8_draw_1x2_string(u8x8, x, y, s); } uint8_t u8x8_GetUTF8Len(u8x8_t *u8x8, const char *s) { uint16_t e; uint8_t cnt = 0; u8x8_utf8_init(u8x8); for(;;) { e = u8x8_utf8_next(u8x8, *s); if ( e == 0x0ffff ) break; s++; if ( e != 0x0fffe ) cnt++; } return cnt; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_byte.c ================================================ /* u8x8_byte.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" uint8_t u8x8_byte_SetDC(u8x8_t *u8x8, uint8_t dc) { return u8x8->byte_cb(u8x8, U8X8_MSG_BYTE_SET_DC, dc, NULL); } uint8_t u8x8_byte_SendBytes(u8x8_t *u8x8, uint8_t cnt, uint8_t *data) { return u8x8->byte_cb(u8x8, U8X8_MSG_BYTE_SEND, cnt, (void *)data); } uint8_t u8x8_byte_SendByte(u8x8_t *u8x8, uint8_t byte) { return u8x8_byte_SendBytes(u8x8, 1, &byte); } uint8_t u8x8_byte_StartTransfer(u8x8_t *u8x8) { return u8x8->byte_cb(u8x8, U8X8_MSG_BYTE_START_TRANSFER, 0, NULL); } uint8_t u8x8_byte_EndTransfer(u8x8_t *u8x8) { return u8x8->byte_cb(u8x8, U8X8_MSG_BYTE_END_TRANSFER, 0, NULL); } /*=========================================*/ uint8_t u8x8_byte_empty(U8X8_UNUSED u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { switch(msg) { case U8X8_MSG_BYTE_SEND: case U8X8_MSG_BYTE_INIT: case U8X8_MSG_BYTE_SET_DC: case U8X8_MSG_BYTE_START_TRANSFER: case U8X8_MSG_BYTE_END_TRANSFER: break; /* do nothing */ } return 1; /* always succeed */ } /*=========================================*/ /* Uses: u8x8->display_info->sda_setup_time_ns u8x8->display_info->sck_pulse_width_ns u8x8->display_info->spi_mode u8x8->display_info->chip_disable_level u8x8->display_info->chip_enable_level u8x8->display_info->post_chip_enable_wait_ns u8x8->display_info->pre_chip_disable_wait_ns Calls to GPIO and DELAY: U8X8_MSG_DELAY_NANO U8X8_MSG_GPIO_DC U8X8_MSG_GPIO_CS U8X8_MSG_GPIO_CLOCK U8X8_MSG_GPIO_DATA Handles: U8X8_MSG_BYTE_INIT U8X8_MSG_BYTE_SEND U8X8_MSG_BYTE_SET_DC U8X8_MSG_BYTE_START_TRANSFER U8X8_MSG_BYTE_END_TRANSFER */ uint8_t u8x8_byte_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; uint8_t takeover_edge = u8x8_GetSPIClockPhase(u8x8); uint8_t not_takeover_edge = 1 - takeover_edge; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = 0; i < 8; i++ ) { if ( b & 128 ) u8x8_gpio_SetSPIData(u8x8, 1); else u8x8_gpio_SetSPIData(u8x8, 0); b <<= 1; u8x8_gpio_SetSPIClock(u8x8, not_takeover_edge); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sda_setup_time_ns); u8x8_gpio_SetSPIClock(u8x8, takeover_edge); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sck_pulse_width_ns); } } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ u8x8_gpio_SetSPIClock(u8x8, u8x8_GetSPIClockPhase(u8x8)); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } /*=========================================*/ uint8_t u8x8_byte_8bit_6800mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = U8X8_MSG_GPIO_D0; i <= U8X8_MSG_GPIO_D7; i++ ) { u8x8_gpio_call(u8x8, i, b&1); b >>= 1; } u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 1); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* ensure that the enable signal is high */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } uint8_t u8x8_byte_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = U8X8_MSG_GPIO_D0; i <= U8X8_MSG_GPIO_D7; i++ ) { u8x8_gpio_call(u8x8, i, b&1); b >>= 1; } u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 1); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* ensure that the enable signal is high */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 1); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } /*=========================================*/ uint8_t u8x8_byte_3wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i; uint8_t *data; uint8_t takeover_edge = u8x8_GetSPIClockPhase(u8x8); uint8_t not_takeover_edge = 1 - takeover_edge; uint16_t b; static uint8_t last_dc; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; if ( last_dc != 0 ) b |= 256; data++; arg_int--; for( i = 0; i < 9; i++ ) { if ( b & 256 ) u8x8_gpio_SetSPIData(u8x8, 1); else u8x8_gpio_SetSPIData(u8x8, 0); b <<= 1; u8x8_gpio_SetSPIClock(u8x8, not_takeover_edge); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sda_setup_time_ns); u8x8_gpio_SetSPIClock(u8x8, takeover_edge); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->sck_pulse_width_ns); } } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ u8x8_gpio_SetSPIClock(u8x8, u8x8_GetSPIClockPhase(u8x8)); break; case U8X8_MSG_BYTE_SET_DC: last_dc = arg_int; break; case U8X8_MSG_BYTE_START_TRANSFER: u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); break; default: return 0; } return 1; } /*=========================================*/ void u8x8_byte_set_ks0108_cs(u8x8_t *u8x8, uint8_t arg) { u8x8_gpio_SetCS(u8x8, arg&1); arg = arg >> 1; u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_CS1, arg&1); arg = arg >> 1; u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_CS2, arg&1); } /* 6800 mode */ uint8_t u8x8_byte_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = U8X8_MSG_GPIO_D0; i <= U8X8_MSG_GPIO_D7; i++ ) { u8x8_gpio_call(u8x8, i, b&1); b >>= 1; } u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 1); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* ensure that the enable signal is low */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: /* expects 3 bits in arg_int for the chip select lines */ u8x8_byte_set_ks0108_cs(u8x8, arg_int); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8_byte_set_ks0108_cs(u8x8, arg_int); break; default: return 0; } return 1; } /* sed1520 or sbn1661 U8X8_MSG_GPIO_E --> E1 U8X8_MSG_GPIO_CS --> E2 */ uint8_t u8x8_byte_sed1520(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t i, b; uint8_t *data; static uint8_t enable_pin; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { b = *data; data++; arg_int--; for( i = U8X8_MSG_GPIO_D0; i <= U8X8_MSG_GPIO_D7; i++ ) { u8x8_gpio_call(u8x8, i, b&1); b >>= 1; } u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns); u8x8_gpio_call(u8x8, enable_pin, 1); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 200); /* KS0108 requires 450 ns, use 200 here */ u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); /* expect 250 here */ u8x8_gpio_call(u8x8, enable_pin, 0); } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); /* ensure that the enable signals are low */ u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_E, 0); u8x8_gpio_call(u8x8, U8X8_MSG_GPIO_CS, 0); enable_pin = U8X8_MSG_GPIO_E; break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8x8, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: /* cs lines are not supported for the SED1520/SBN1661 */ /* instead, this will select the E1 or E2 line */ enable_pin = U8X8_MSG_GPIO_E; if ( arg_int != 0 ) enable_pin = U8X8_MSG_GPIO_CS; break; case U8X8_MSG_BYTE_END_TRANSFER: break; default: return 0; } return 1; } /*=========================================*/ /* software i2c, ignores ACK response (which is anyway not provided by some displays) also does not allow reading from the device */ static void i2c_delay(u8x8_t *u8x8) U8X8_NOINLINE; static void i2c_delay(u8x8_t *u8x8) { //u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_10MICRO, u8x8->display_info->i2c_bus_clock_100kHz); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_I2C, u8x8->display_info->i2c_bus_clock_100kHz); } static void i2c_init(u8x8_t *u8x8) { u8x8_gpio_SetI2CClock(u8x8, 1); u8x8_gpio_SetI2CData(u8x8, 1); i2c_delay(u8x8); } /* actually, the scl line is not observed, so this procedure does not return a value */ static void i2c_read_scl_and_delay(u8x8_t *u8x8) { /* set as input (line will be high) */ u8x8_gpio_SetI2CClock(u8x8, 1); i2c_delay(u8x8); } static void i2c_clear_scl(u8x8_t *u8x8) { u8x8_gpio_SetI2CClock(u8x8, 0); } static void i2c_read_sda(u8x8_t *u8x8) { /* set as input (line will be high) */ u8x8_gpio_SetI2CData(u8x8, 1); } static void i2c_clear_sda(u8x8_t *u8x8) { /* set open collector and drive low */ u8x8_gpio_SetI2CData(u8x8, 0); } static void i2c_start(u8x8_t *u8x8) { if ( u8x8->i2c_started != 0 ) { /* if already started: do restart */ i2c_read_sda(u8x8); /* SDA = 1 */ i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); } i2c_read_sda(u8x8); /* send the start condition, both lines go from 1 to 0 */ i2c_clear_sda(u8x8); i2c_delay(u8x8); i2c_clear_scl(u8x8); u8x8->i2c_started = 1; } static void i2c_stop(u8x8_t *u8x8) { /* set SDA to 0 */ i2c_clear_sda(u8x8); i2c_delay(u8x8); /* now release all lines */ i2c_read_scl_and_delay(u8x8); /* set SDA to 1 */ i2c_read_sda(u8x8); i2c_delay(u8x8); u8x8->i2c_started = 0; } static void i2c_write_bit(u8x8_t *u8x8, uint8_t val) { if (val) i2c_read_sda(u8x8); else i2c_clear_sda(u8x8); i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); i2c_clear_scl(u8x8); } static void i2c_read_bit(u8x8_t *u8x8) { //uint8_t val; /* do not drive SDA */ i2c_read_sda(u8x8); i2c_delay(u8x8); i2c_read_scl_and_delay(u8x8); i2c_read_sda(u8x8); i2c_delay(u8x8); i2c_clear_scl(u8x8); //return val; } static void i2c_write_byte(u8x8_t *u8x8, uint8_t b) { i2c_write_bit(u8x8, b & 128); i2c_write_bit(u8x8, b & 64); i2c_write_bit(u8x8, b & 32); i2c_write_bit(u8x8, b & 16); i2c_write_bit(u8x8, b & 8); i2c_write_bit(u8x8, b & 4); i2c_write_bit(u8x8, b & 2); i2c_write_bit(u8x8, b & 1); /* read ack from client */ /* 0: ack was given by client */ /* 1: nothing happend during ack cycle */ i2c_read_bit(u8x8); } uint8_t u8x8_byte_sw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { i2c_write_byte(u8x8, *data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: i2c_init(u8x8); break; case U8X8_MSG_BYTE_SET_DC: break; case U8X8_MSG_BYTE_START_TRANSFER: i2c_start(u8x8); i2c_write_byte(u8x8, u8x8_GetI2CAddress(u8x8)); //i2c_write_byte(u8x8, 0x078); break; case U8X8_MSG_BYTE_END_TRANSFER: i2c_stop(u8x8); break; default: return 0; } return 1; } /*=========================================*/ /* alternative i2c byte procedure */ #ifdef ALTERNATIVE_I2C_BYTE_PROCEDURE void i2c_transfer(u8x8_t *u8x8, uint8_t adr, uint8_t cnt, uint8_t *data) { uint8_t i; i2c_start(u8x8); i2c_write_byte(u8x8, adr); for( i = 0; i < cnt; i++ ) i2c_write_byte(u8x8, data[i]); i2c_stop(u8x8); } uint8_t u8x8_byte_sw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { static uint8_t buffer[32]; /* u8g2/u8x8 will never send more than 32 bytes */ static uint8_t buf_idx; uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { buffer[buf_idx++] = *data; data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: i2c_init(u8x8); /* init i2c communication */ break; case U8X8_MSG_BYTE_SET_DC: /* ignored for i2c */ break; case U8X8_MSG_BYTE_START_TRANSFER: buf_idx = 0; break; case U8X8_MSG_BYTE_END_TRANSFER: i2c_transfer(u8x8, u8x8_GetI2CAddress(u8x8), buf_idx, buffer); break; default: return 0; } return 1; } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_cad.c ================================================ /* u8x8_cad.c "command arg data" interface to the graphics controller Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following sequence must be used for any data, which is set to the display: uint8_t u8x8_cad_StartTransfer(u8x8_t *u8x8) any of the following calls uint8_t u8x8_cad_SendCmd(u8x8_t *u8x8, uint8_t cmd) uint8_t u8x8_cad_SendArg(u8x8_t *u8x8, uint8_t arg) uint8_t u8x8_cad_SendData(u8x8_t *u8x8, uint8_t cnt, uint8_t *data) uint8_t u8x8_cad_EndTransfer(u8x8_t *u8x8) */ /* uint8_t u8x8_cad_template(u8x8_t *u8x8, uint8_t msg, uint16_t arg_int, void *arg_ptr) { uint8_t i; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_mcd_byte_SetDC(mcd->next, 1); u8x8_mcd_byte_Send(mcd->next, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_mcd_byte_SetDC(mcd->next, 1); u8x8_mcd_byte_Send(mcd->next, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_mcd_byte_SetDC(mcd->next, 0); for( i = 0; i < 8; i++ ) u8x8_mcd_byte_Send(mcd->next, ((uint8_t *)arg_ptr)[i]); break; case U8X8_MSG_CAD_RESET: return mcd->next->cb(mcd->next, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: return mcd->next->cb(mcd->next, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_END_TRANSFER: return mcd->next->cb(mcd->next, msg, arg_int, arg_ptr); default: break; } return 1; } */ #include "u8x8.h" uint8_t u8x8_cad_SendCmd(u8x8_t *u8x8, uint8_t cmd) { return u8x8->cad_cb(u8x8, U8X8_MSG_CAD_SEND_CMD, cmd, NULL); } uint8_t u8x8_cad_SendArg(u8x8_t *u8x8, uint8_t arg) { return u8x8->cad_cb(u8x8, U8X8_MSG_CAD_SEND_ARG, arg, NULL); } uint8_t u8x8_cad_SendMultipleArg(u8x8_t *u8x8, uint8_t cnt, uint8_t arg) { while( cnt > 0 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_SEND_ARG, arg, NULL); cnt--; } return 1; } uint8_t u8x8_cad_SendData(u8x8_t *u8x8, uint8_t cnt, uint8_t *data) { return u8x8->cad_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, cnt, data); } uint8_t u8x8_cad_StartTransfer(u8x8_t *u8x8) { return u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 0, NULL); } uint8_t u8x8_cad_EndTransfer(u8x8_t *u8x8) { return u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); } void u8x8_cad_vsendf(u8x8_t * u8x8, const char *fmt, va_list va) { uint8_t d; u8x8_cad_StartTransfer(u8x8); while( *fmt != '\0' ) { d = (uint8_t)va_arg(va, int); switch(*fmt) { case 'a': u8x8_cad_SendArg(u8x8, d); break; case 'c': u8x8_cad_SendCmd(u8x8, d); break; case 'd': u8x8_cad_SendData(u8x8, 1, &d); break; } fmt++; } u8x8_cad_EndTransfer(u8x8); } void u8x8_SendF(u8x8_t * u8x8, const char *fmt, ...) { va_list va; va_start(va, fmt); u8x8_cad_vsendf(u8x8, fmt, va); va_end(va); } /* 21 c send command c 22 a send arg a 23 d send data d 24 CS on 25 CS off 254 milli delay by milliseconds 255 end of sequence */ void u8x8_cad_SendSequence(u8x8_t *u8x8, uint8_t const *data) { uint8_t cmd; uint8_t v; for(;;) { cmd = *data; data++; switch( cmd ) { case U8X8_MSG_CAD_SEND_CMD: case U8X8_MSG_CAD_SEND_ARG: v = *data; u8x8->cad_cb(u8x8, cmd, v, NULL); data++; break; case U8X8_MSG_CAD_SEND_DATA: v = *data; u8x8_cad_SendData(u8x8, 1, &v); data++; break; case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: u8x8->cad_cb(u8x8, cmd, 0, NULL); break; case 0x0fe: v = *data; u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_MILLI, v); data++; break; default: return; } } } uint8_t u8x8_cad_empty(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* convert to bytes by using dc = 1 for commands and args and dc = 0 for data */ uint8_t u8x8_cad_110(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SetDC(u8x8, 1); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SetDC(u8x8, 1); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_byte_SetDC(u8x8, 0); //u8x8_byte_SendBytes(u8x8, arg_int, arg_ptr); //break; /* fall through */ case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* convert to bytes by using dc = 1 for commands and args and dc = 0 for data t6963 */ uint8_t u8x8_cad_100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SetDC(u8x8, 1); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SetDC(u8x8, 0); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_byte_SetDC(u8x8, 0); //u8x8_byte_SendBytes(u8x8, arg_int, arg_ptr); //break; /* fall through */ case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* convert to bytes by using dc = 0 for commands and args and dc = 1 for data */ uint8_t u8x8_cad_001(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SetDC(u8x8, 0); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SetDC(u8x8, 0); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_byte_SetDC(u8x8, 1); //u8x8_byte_SendBytes(u8x8, arg_int, arg_ptr); //break; /* fall through */ case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* convert to bytes by using dc = 0 for commands dc = 1 for args and data */ uint8_t u8x8_cad_011(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SetDC(u8x8, 0); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SetDC(u8x8, 1); u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_byte_SetDC(u8x8, 1); //u8x8_byte_SendBytes(u8x8, arg_int, arg_ptr); //break; /* fall through */ case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* cad procedure for the ST7920 in SPI mode */ /* u8x8_byte_SetDC is not used */ uint8_t u8x8_cad_st7920_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *data; uint8_t b; uint8_t i; static uint8_t buf[16]; uint8_t *ptr; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_SendByte(u8x8, 0x0f8); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 1); u8x8_byte_SendByte(u8x8, arg_int & 0x0f0); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 1); u8x8_byte_SendByte(u8x8, arg_int << 4); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 1); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SendByte(u8x8, 0x0f8); u8x8_byte_SendByte(u8x8, arg_int & 0x0f0); u8x8_byte_SendByte(u8x8, arg_int << 4); break; case U8X8_MSG_CAD_SEND_DATA: u8x8_byte_SendByte(u8x8, 0x0fa); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 1); /* this loop should be optimized: multiple bytes should be sent */ /* u8x8_byte_SendBytes(u8x8, arg_int, arg_ptr); */ data = (uint8_t *)arg_ptr; /* the following loop increases speed by 20% */ while( arg_int >= 8 ) { i = 8; ptr = buf; do { b = *data++; *ptr++= b & 0x0f0; b <<= 4; *ptr++= b; i--; } while( i > 0 ); arg_int -= 8; u8x8_byte_SendBytes(u8x8, 16, buf); } while( arg_int > 0 ) { b = *data; u8x8_byte_SendByte(u8x8, b & 0x0f0); u8x8_byte_SendByte(u8x8, b << 4); data++; arg_int--; } u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 1); break; case U8X8_MSG_CAD_INIT: case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); default: return 0; } return 1; } /* cad procedure for the SSD13xx family in I2C mode */ /* this procedure is also used by the ST7588 */ /* u8x8_byte_SetDC is not used */ /* U8X8_MSG_BYTE_START_TRANSFER starts i2c transfer, U8X8_MSG_BYTE_END_TRANSFER stops transfer */ /* After transfer start, a full byte indicates command or data mode */ static void u8x8_i2c_data_transfer(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) U8X8_NOINLINE; static void u8x8_i2c_data_transfer(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) { u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, 0x040); u8x8->byte_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, arg_int, arg_ptr); u8x8_byte_EndTransfer(u8x8); } /* classic version: will put a start/stop condition around each command and arg */ uint8_t u8x8_cad_ssd13xx_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *p; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: case U8X8_MSG_CAD_SEND_ARG: /* 7 Nov 2016: Can this be improved? */ //u8x8_byte_SetDC(u8x8, 0); u8x8_byte_StartTransfer(u8x8); //u8x8_byte_SendByte(u8x8, u8x8_GetI2CAddress(u8x8)); u8x8_byte_SendByte(u8x8, 0x000); u8x8_byte_SendByte(u8x8, arg_int); u8x8_byte_EndTransfer(u8x8); break; case U8X8_MSG_CAD_SEND_DATA: //u8x8_byte_SetDC(u8x8, 1); /* the FeatherWing OLED with the 32u4 transfer of long byte */ /* streams was not possible. This is broken down to */ /* smaller streams, 32 seems to be the limit... */ /* I guess this is related to the size of the Wire buffers in Arduino */ /* Unfortunately, this can not be handled in the byte level drivers, */ /* so this is done here. Even further, only 24 bytes will be sent, */ /* because there will be another byte (DC) required during the transfer */ p = arg_ptr; while( arg_int > 24 ) { u8x8_i2c_data_transfer(u8x8, 24, p); arg_int-=24; p+=24; } u8x8_i2c_data_transfer(u8x8, arg_int, p); break; case U8X8_MSG_CAD_INIT: /* apply default i2c adr if required so that the start transfer msg can use this */ if ( u8x8->i2c_address == 255 ) u8x8->i2c_address = 0x078; return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: /* cad transfer commands are ignored */ break; default: return 0; } return 1; } /* fast version with reduced data start/stops, issue 735 */ uint8_t u8x8_cad_ssd13xx_fast_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { static uint8_t in_transfer = 0; uint8_t *p; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: /* improved version, takeover from ld7032 */ /* assumes, that the args of a command is not longer than 31 bytes */ /* speed improvement is about 4% compared to the classic version */ if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, 0x000); /* cmd byte for ssd13xx controller */ u8x8_byte_SendByte(u8x8, arg_int); in_transfer = 1; /* lightning version: can replace the improved version from above */ /* the drawback of the lightning version is this: The complete init sequence */ /* must fit into the 32 byte Arduino Wire buffer, which might not always be the case */ /* speed improvement is about 6% compared to the classic version */ // if ( in_transfer == 0 ) // { // u8x8_byte_StartTransfer(u8x8); // u8x8_byte_SendByte(u8x8, 0x000); /* cmd byte for ssd13xx controller */ // in_transfer = 1; // } //u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); /* the FeatherWing OLED with the 32u4 transfer of long byte */ /* streams was not possible. This is broken down to */ /* smaller streams, 32 seems to be the limit... */ /* I guess this is related to the size of the Wire buffers in Arduino */ /* Unfortunately, this can not be handled in the byte level drivers, */ /* so this is done here. Even further, only 24 bytes will be sent, */ /* because there will be another byte (DC) required during the transfer */ p = arg_ptr; while( arg_int > 24 ) { u8x8_i2c_data_transfer(u8x8, 24, p); arg_int-=24; p+=24; } u8x8_i2c_data_transfer(u8x8, arg_int, p); in_transfer = 0; break; case U8X8_MSG_CAD_INIT: /* apply default i2c adr if required so that the start transfer msg can use this */ if ( u8x8->i2c_address == 255 ) u8x8->i2c_address = 0x078; return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: in_transfer = 0; break; case U8X8_MSG_CAD_END_TRANSFER: if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); in_transfer = 0; break; default: return 0; } return 1; } /* the st75256 i2c driver is a copy of the ssd13xx driver, but with arg=1 */ /* modified from cad001 (ssd13xx) to cad011 */ uint8_t u8x8_cad_st75256_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *p; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, 0x000); u8x8_byte_SendByte(u8x8, arg_int); u8x8_byte_EndTransfer(u8x8); break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, 0x040); u8x8_byte_SendByte(u8x8, arg_int); u8x8_byte_EndTransfer(u8x8); break; case U8X8_MSG_CAD_SEND_DATA: /* see ssd13xx driver */ p = arg_ptr; while( arg_int > 24 ) { u8x8_i2c_data_transfer(u8x8, 24, p); arg_int-=24; p+=24; } u8x8_i2c_data_transfer(u8x8, arg_int, p); break; case U8X8_MSG_CAD_INIT: /* apply default i2c adr if required so that the start transfer msg can use this */ if ( u8x8->i2c_address == 255 ) u8x8->i2c_address = 0x078; /* ST75256, often this is 0x07e */ return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: case U8X8_MSG_CAD_END_TRANSFER: /* cad transfer commands are ignored */ break; default: return 0; } return 1; } /* cad i2c procedure for the ld7032 controller */ /* Issue https://github.com/olikraus/u8g2/issues/865 mentiones, that I2C does not work */ /* Workaround is to remove the while loop (or increase the value in the condition) */ uint8_t u8x8_cad_ld7032_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { static uint8_t in_transfer = 0; uint8_t *p; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, arg_int); in_transfer = 1; break; case U8X8_MSG_CAD_SEND_ARG: u8x8_byte_SendByte(u8x8, arg_int); break; case U8X8_MSG_CAD_SEND_DATA: //u8x8_byte_SetDC(u8x8, 1); /* the FeatherWing OLED with the 32u4 transfer of long byte */ /* streams was not possible. This is broken down to */ /* smaller streams, 32 seems to be the limit... */ /* I guess this is related to the size of the Wire buffers in Arduino */ /* Unfortunately, this can not be handled in the byte level drivers, */ /* so this is done here. Even further, only 24 bytes will be sent, */ /* because there will be another byte (DC) required during the transfer */ p = arg_ptr; while( arg_int > 24 ) { u8x8->byte_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, 24, p); arg_int-=24; p+=24; u8x8_byte_EndTransfer(u8x8); u8x8_byte_StartTransfer(u8x8); u8x8_byte_SendByte(u8x8, 0x08); /* data write for LD7032 */ } u8x8->byte_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, arg_int, p); break; case U8X8_MSG_CAD_INIT: /* apply default i2c adr if required so that the start transfer msg can use this */ if ( u8x8->i2c_address == 255 ) u8x8->i2c_address = 0x060; return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: in_transfer = 0; break; case U8X8_MSG_CAD_END_TRANSFER: if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); break; default: return 0; } return 1; } /* cad procedure for the UC16xx family in I2C mode */ /* u8x8_byte_SetDC is not used */ /* DC bit is encoded into the adr byte */ uint8_t u8x8_cad_uc16xx_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { static uint8_t in_transfer = 0; static uint8_t is_data = 0; uint8_t *p; switch(msg) { case U8X8_MSG_CAD_SEND_CMD: case U8X8_MSG_CAD_SEND_ARG: if ( in_transfer != 0 ) { if ( is_data != 0 ) { /* transfer mode is active, but data transfer */ u8x8_byte_EndTransfer(u8x8); /* clear the lowest two bits of the adr */ u8x8_SetI2CAddress( u8x8, u8x8_GetI2CAddress(u8x8)&0x0fc ); u8x8_byte_StartTransfer(u8x8); } } else { /* clear the lowest two bits of the adr */ u8x8_SetI2CAddress( u8x8, u8x8_GetI2CAddress(u8x8)&0x0fc ); u8x8_byte_StartTransfer(u8x8); } u8x8_byte_SendByte(u8x8, arg_int); in_transfer = 1; break; case U8X8_MSG_CAD_SEND_DATA: if ( in_transfer != 0 ) { if ( is_data == 0 ) { /* transfer mode is active, but data transfer */ u8x8_byte_EndTransfer(u8x8); /* clear the lowest two bits of the adr */ u8x8_SetI2CAddress( u8x8, (u8x8_GetI2CAddress(u8x8)&0x0fc)|2 ); u8x8_byte_StartTransfer(u8x8); } } else { /* clear the lowest two bits of the adr */ u8x8_SetI2CAddress( u8x8, (u8x8_GetI2CAddress(u8x8)&0x0fc)|2 ); u8x8_byte_StartTransfer(u8x8); } in_transfer = 1; p = arg_ptr; while( arg_int > 24 ) { u8x8->byte_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, 24, p); arg_int-=24; p+=24; u8x8_byte_EndTransfer(u8x8); u8x8_byte_StartTransfer(u8x8); } u8x8->byte_cb(u8x8, U8X8_MSG_CAD_SEND_DATA, arg_int, p); break; case U8X8_MSG_CAD_INIT: /* apply default i2c adr if required so that the start transfer msg can use this */ if ( u8x8->i2c_address == 255 ) u8x8->i2c_address = 0x070; return u8x8->byte_cb(u8x8, msg, arg_int, arg_ptr); case U8X8_MSG_CAD_START_TRANSFER: in_transfer = 0; /* actual start is delayed, because we do not whether this is data or cmd transfer */ break; case U8X8_MSG_CAD_END_TRANSFER: if ( in_transfer != 0 ) u8x8_byte_EndTransfer(u8x8); in_transfer = 0; break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_capture.c ================================================ /* u8x8_capture.c Screen capture funcion Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /*========================================================*/ /* vertical top lsb memory architecture */ uint8_t u8x8_capture_get_pixel_1(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width) { //uint8_t *dest_ptr = capture->buffer; //if ( dest_ptr == NULL ) //return 0; //dest_ptr += (y/8)*capture->tile_width*8; dest_ptr += (y/8)*tile_width*8; y &= 7; dest_ptr += x; if ( (*dest_ptr & (1<buffer; //if ( dest_ptr == NULL ) // return 0; //dest_ptr += y*capture->tile_width; y *= tile_width; dest_ptr += y; dest_ptr += x>>3; if ( (*dest_ptr & (128>>(x&7))) == 0 ) return 0; return 1; } void u8x8_capture_write_pbm_pre(uint8_t tile_width, uint8_t tile_height, void (*out)(const char *s)) { out("P1\n"); out(u8x8_utoa((uint16_t)tile_width*8)); out("\n"); out(u8x8_utoa((uint16_t)tile_height*8)); out("\n"); } void u8x8_capture_write_pbm_buffer(uint8_t *buffer, uint8_t tile_width, uint8_t tile_height, uint8_t (*get_pixel)(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width), void (*out)(const char *s)) { uint16_t x, y; uint16_t w, h; w = tile_width; w *= 8; h = tile_height; h *= 8; for( y = 0; y < h; y++) { for( x = 0; x < w; x++) { if ( get_pixel(x, y, buffer, tile_width) ) out("1"); else out("0"); } out("\n"); } } void u8x8_capture_write_xbm_pre(uint8_t tile_width, uint8_t tile_height, void (*out)(const char *s)) { out("#define xbm_width "); out(u8x8_utoa((uint16_t)tile_width*8)); out("\n"); out("#define xbm_height "); out(u8x8_utoa((uint16_t)tile_height*8)); out("\n"); out("static unsigned char xbm_bits[] = {\n"); } void u8x8_capture_write_xbm_buffer(uint8_t *buffer, uint8_t tile_width, uint8_t tile_height, uint8_t (*get_pixel)(uint16_t x, uint16_t y, uint8_t *dest_ptr, uint8_t tile_width), void (*out)(const char *s)) { uint16_t x, y; uint16_t w, h; uint8_t v, b; char s[2]; s[1] = '\0'; w = tile_width; w *= 8; h = tile_height; h *= 8; y = 0; for(;;) { x = 0; for(;;) { v = 0; for( b = 0; b < 8; b++ ) { v <<= 1; if ( get_pixel(x+7-b, y, buffer, tile_width) ) v |= 1; } out("0x"); s[0] = (v>>4); if ( s[0] <= 9 ) s[0] += '0'; else s[0] += 'a'-10; out(s); s[0] = (v&15); if ( s[0] <= 9 ) s[0] += '0'; else s[0] += 'a'-10; out(s); x += 8; if ( x >= w ) break; out(","); } y++; if ( y >= h ) break; out(","); out("\n"); } out("};\n"); } /*========================================================*/ #ifdef NOT_YET_IMPLEMENTED_U8X8_SCREEN_CAPTURE struct _u8x8_capture_struct { u8x8_msg_cb old_cb; uint8_t *buffer; /* tile_width*tile_height*8 bytes */ uint8_t tile_width; uint8_t tile_height; }; typedef struct _u8x8_capture_struct u8x8_capture_t; u8x8_capture_t u8x8_capture; static void u8x8_capture_memory_copy(uint8_t *dest, uint8_t *src, uint16_t cnt) { while( cnt > 0 ) { *dest++ = *src++; cnt--; } } static void u8x8_capture_DrawTiles(u8x8_capture_t *capture, uint8_t tx, uint8_t ty, uint8_t tile_cnt, uint8_t *tile_ptr) { uint8_t *dest_ptr = capture->buffer; //printf("tile pos: %d %d, cnt=%d\n", tx, ty, tile_cnt); if ( dest_ptr == NULL ) return; dest_ptr += (uint16_t)ty*capture->tile_width*8; dest_ptr += (uint16_t)tx*8; u8x8_capture_memory_copy(dest_ptr, tile_ptr, tile_cnt*8); } uint8_t u8x8_d_capture(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_DRAW_TILE ) { uint8_t x, y, c; uint8_t *ptr; x = ((u8x8_tile_t *)arg_ptr)->x_pos; y = ((u8x8_tile_t *)arg_ptr)->y_pos; c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_capture_DrawTiles(&u8x8_capture, x, y, c, ptr); x += c; arg_int--; } while( arg_int > 0 ); } return u8x8_capture.old_cb(u8x8, msg, arg_int, arg_ptr); } uint8_t u8x8_GetCaptureMemoryPixel(u8x8_t *u8x8, uint16_t x, uint16_t y) { return u8x8_capture_GetPixel(&u8x8_capture, x, y); } /* memory: tile_width*tile_height*8 bytes */ void u8x8_ConnectCapture(u8x8_t *u8x8, uint8_t tile_width, uint8_t tile_height, uint8_t *memory) { if ( u8x8->display_cb == u8x8_d_capture ) return; /* do nothing, capture already installed */ u8x8_capture.buffer = memory; /* tile_width*tile_height*8 bytes */ u8x8_capture.tile_width = tile_width; u8x8_capture.tile_height = tile_height; u8x8_capture.old_cb = u8x8->display_cb; u8x8->display_cb = u8x8_d_capture; return; } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_a2printer.c ================================================ /* u8x8_d_a2printer.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Use DC2 bitmap command of the A2 Micro panel termal printer double stroke */ #include "u8x8.h" #define LINE_MIN_DELAY_MS 15 /* higher values improve quality */ /* however if the value is too high (>=5) then form feed does not work any more */ #define LINE_EXTRA_8PIXEL_DELAY_MS 3 /* this must be a power of two and between 1 and 8 */ /* best quality only with 1 */ #define NO_OF_LINES_TO_SEND_WITHOUT_DELAY 1 /* calculates the delay, based on the number of black pixel */ /* actually only "none-zero" bytes are calculated which is, of course not so accurate, but should be good enough */ uint16_t get_delay_in_milliseconds(uint8_t cnt, uint8_t *data) { uint8_t i; uint16_t time = LINE_MIN_DELAY_MS; for ( i = 0; i < cnt; i++ ) if ( data[i] != 0 ) time += LINE_EXTRA_8PIXEL_DELAY_MS; return time; } uint8_t u8x8_d_a2printer_common(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { uint8_t c, i, j; uint8_t *ptr; uint16_t delay_in_milliseconds; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); // no setup required // u8x8_cad_SendSequence(u8x8, u8x8_d_a2printer_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: // no powersave break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 27); /* ESC */ u8x8_cad_SendCmd(u8x8, 55 ); /* parameter command */ /* increasing the "max printing dots" requires a good power supply, but LINE_EXTRA_8PIXEL_DELAY_MS could be reduced then */ u8x8_cad_SendCmd(u8x8, 0); /* Max printing dots,Unit(8dots),Default:7(64 dots) 8*(x+1) ... lower values improve, probably my current supply is not sufficient */ u8x8_cad_SendCmd(u8x8, 200); /* 3-255 Heating time,Unit(10us),Default:80(800us) */ u8x8_cad_SendCmd(u8x8, 2); /* 0-255 Heating interval,Unit(10us),Default:2(20us) ... does not have much influence */ //c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ c = u8x8->display_info->tile_width; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ u8x8_cad_SendCmd(u8x8, 18); /* DC2 */ u8x8_cad_SendCmd(u8x8, 42 ); /* * */ u8x8_cad_SendCmd(u8x8, 8 ); /* height */ u8x8_cad_SendCmd(u8x8, c ); /* c, u8x8->display_info->tile_width */ for( j = 0; j < 8 / NO_OF_LINES_TO_SEND_WITHOUT_DELAY; j ++ ) { delay_in_milliseconds = 0; for( i = 0; i < NO_OF_LINES_TO_SEND_WITHOUT_DELAY; i++ ) { u8x8_cad_SendData(u8x8, c, ptr); /* c, note: SendData can not handle more than 255 bytes, send one line of data */ delay_in_milliseconds += get_delay_in_milliseconds(c, ptr); ptr += c; } while( delay_in_milliseconds > 200 ) { u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_MILLI, 200, NULL); delay_in_milliseconds -= 200; } u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_MILLI, delay_in_milliseconds, NULL); } /* set parameters back to their default values */ u8x8_cad_SendCmd(u8x8, 27); /* ESC */ u8x8_cad_SendCmd(u8x8, 55 ); /* parameter command */ u8x8_cad_SendCmd(u8x8, 7); /* Max printing dots,Unit(8dots),Default:7(64 dots) 8*(x+1)*/ u8x8_cad_SendCmd(u8x8, 80); /* 3-255 Heating time,Unit(10us),Default:80(800us) */ u8x8_cad_SendCmd(u8x8, 2); /* 0-255 Heating interval,Unit(10us),Default:2(20us)*/ u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_a2printer_384x240_display_info = { /* most of the settings are not required, because this is a serial RS232 printer */ /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 48, /* tile_hight = */ 30, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 384, /* pixel_height = */ 240 }; uint8_t u8x8_d_a2printer_384x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_a2printer_384x240_display_info); break; default: return u8x8_d_a2printer_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_il3820_296x128.c ================================================ /* u8x8_d_il3820_296x128.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. il3820: 200x300x1 command 0x22: assign actions 0x20: execute actions action for command 0x022 are (more or less guessed) bit 7: Enable Clock bit 6: Enable Charge Pump bit 5: Load Temparture Value (???) bit 4: Load LUT (???) bit 3: Initial Display (???) bit 2: Pattern Display --> Requires about 945ms with the LUT from below bit 1: Disable Charge Pump bit 0: Disable Clock Disable Charge Pump and Clock require about 10ms Enable Charge Pump and Clock require about 100 to 300ms Notes: - Introduced a refresh display message, which copies RAM to display - Charge pump is always enabled. Charge pump can be enabled/disabled via power save message - U8x8 will not really work because of the two buffers in the SSD1606, however U8g2 should be ok. LUT for the 296x128 device (IL3820) LUT (cmd: 0x032 has 30 bytes) section 6.8 of the datasheet mentions 256 bits = 32 bytes for the LUT chapter 7 tells 30 bytes according to section 6.8: 20 bytes waveform 10 bytes timing 1 byte named as VSH/VSL 1 empty byte according to the command table, the lut has 240 bits (=30 bytes * 8 bits) LUT / Refresh time total_refresh_time = (refresh_lines + dummy_lines*2)*TGate*TS_Sum/f_OSC f_OSC=1MHz (according to the datasheets) refreh_lines = 296 (for the waveshare display, 0x045 cmd) dummy_lines = 22 (for the upcoming u8g2 code, 0x03a cmd) TGate = 62 (POR default, 0x03b cmd) TS_Sum: Sum of all TS entries of the second part of the LUT f_OSC: 1MHz according to the datasheet. so we have total_refresh_time = 21080*TS_Sum/1000000 = 21ms * TS_Sum This file includes two devices: u8x8_d_il3820_296x128 --> includes LUT which is probably from the WaveShare 2.9 Vendor u8x8_d_il3820_v2_296x128 --> includes LUT which was optimized for faster speed and lesser flicker */ /* Waveform part of the LUT (20 bytes) */ /* bit 7/6: 1 - 1 transition */ /* bit 5/4: 1 - 0 transition */ /* bit 3/2: 0 - 1 transition */ /* bit 1/0: 0 - 0 transition */ /* 00 – VSS */ /* 01 – VSH */ /* 10 – VSL */ /* 11 – NA */ #include "u8x8.h" /*=================================================*/ /* common code for all devices */ static const uint8_t u8x8_d_il3820_296x128_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x22, 0xc0), /* enable clock and charge pump */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(200), /* according to my measures it may take up to 150ms */ U8X8_DLY(100), /* but it might take longer */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_il3820_296x128_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* disable clock and charge pump only, deep sleep is not entered, because we will loose RAM content */ U8X8_CA(0x22, 0x02), /* only disable charge pump, HW reset seems to be required if the clock is disabled */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(20), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; // static const uint8_t u8x8_d_il3820_296x128_flip0_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_il3820_296x128_flip1_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; static const u8x8_display_info_t u8x8_il3820_296x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 120, /* pre_chip_disable_wait_ns = */ 60, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 50, /* IL3820 */ /* sck_pulse_width_ns = */ 125, /* IL3820: 125ns, clock cycle = 250ns */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 37, /* 37*8 = 296 */ /* tile_hight = */ 16, /* 16*8 = 128 */ /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 296, /* pixel_height = */ 128 }; static uint8_t *u8x8_convert_tile_for_il3820(uint8_t *t) { uint8_t i; static uint8_t buf[8]; uint8_t *pbuf = buf; for( i = 0; i < 8; i++ ) { *pbuf++ = ~(*t++); } return buf; } static void u8x8_d_il3820_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) U8X8_NOINLINE; static void u8x8_d_il3820_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) { uint16_t x; uint8_t c, page; uint8_t *ptr; u8x8_cad_StartTransfer(u8x8); page = u8x8->display_info->tile_height; page --; page -= (((u8x8_tile_t *)arg_ptr)->y_pos); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; //u8x8_cad_SendCmd(u8x8, 0x011 ); /* cursor increment mode */ //u8x8_cad_SendArg(u8x8, 7); u8x8_cad_SendCmd(u8x8, 0x04f ); /* set cursor column */ u8x8_cad_SendArg(u8x8, x&255); u8x8_cad_SendArg(u8x8, x>>8); u8x8_cad_SendCmd(u8x8, 0x04e ); /* set cursor row */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendCmd(u8x8, 0x024 ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 8, u8x8_convert_tile_for_il3820(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); } static const uint8_t u8x8_d_il3820_exec_1000dly_seq[] = { // assumes, that the start transfer has happend U8X8_CA(0x22, 0x04), /* display update seq. option: pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static void u8x8_d_il3820_first_init(u8x8_t *u8x8) { u8x8_ClearDisplay(u8x8); u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x032); // program update sequence u8x8_cad_SendMultipleArg(u8x8, 8, 0x055); // all black u8x8_cad_SendMultipleArg(u8x8, 12, 0x0aa); // all white u8x8_cad_SendMultipleArg(u8x8, 10, 0x022); // 830ms u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_exec_1000dly_seq); } #ifdef OBSOLETE static void u8x8_d_il3820_second_init(u8x8_t *u8x8) { u8x8_ClearDisplay(u8x8); u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x032); // program update sequence u8x8_cad_SendMultipleArg(u8x8, 20, 0x000); // do nothing u8x8_cad_SendMultipleArg(u8x8, 10, 0x011); // 414ms dly /* reuse sequence from above, ok some time is wasted here, */ /* delay could be lesser */ u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_exec_1000dly_seq); } #endif /*=================================================*/ /* first version, LUT from WaveShare */ /* http://www.waveshare.com/wiki/File:2.9inch_e-Paper_Module_code.7z */ static const uint8_t u8x8_d_il3820_296x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x10, 0x00), /* Deep Sleep mode Control: Disable */ U8X8_C(0x01), U8X8_A(295 % 256), U8X8_A(295/256), U8X8_A(0), U8X8_CA(0x03, 0x00), /* Gate Driving voltage: 15V (lowest value)*/ U8X8_CA(0x04, 0x0a), /* Source Driving voltage: 15V (mid value and POR)*/ //U8X8_CA(0x22, 0xc0), /* display update seq. option: enable clk, enable CP, .... todo: this is never activated */ //U8X8_CA(0x0b, 7), /* Set Delay of gate and source non overlap period, POR = 7 */ U8X8_CA(0x2c, 0xa8), /* write vcom value*/ U8X8_CA(0x3a, 0x16), /* dummy lines POR=22 (0x016) */ U8X8_CA(0x3b, 0x08), /* gate time POR=0x08*/ U8X8_CA(0x3c, 0x33), /* select boarder waveform */ //U8X8_CA(0x22, 0xc4), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_CA(0x11, 0x07), /* Define data entry mode, x&y inc, x first*/ U8X8_CAA(0x44, 0, 29), /* RAM x start & end, issue 920: end should be (128/8)-1=15. */ U8X8_CAAAA(0x45, 0, 0, 295&255, 295>>8), /* RAM y start & end */ //U8X8_CA(0x4e, 0), /* set x pos, 0..29? */ //U8X8_CAA(0x4f, 0, 0), /* set y pos, 0...320??? */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_il3820_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* 0x50, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 measured 1582 ms */ U8X8_C(0x32), /* write LUT register*/ /* original values */ U8X8_A(0x50), U8X8_A(0xaa), U8X8_A(0x55), U8X8_A(0xaa), U8X8_A(0x11), U8X8_A(0x11), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), /* Timing part of the LUT, 20 Phases with 4 bit each: 10 bytes */ U8X8_A(0xff), U8X8_A(0xff), U8X8_A(0x3f), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_CA(0x22, 0x04), /* display update seq. option: pattern display, assumes clk and charge pump are enabled */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* delay for 1620ms. The current sequence takes 1582ms */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(120), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_il3820_296x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_il3820_296x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave0_seq); u8x8_d_il3820_first_init(u8x8); /* usually the DISPLAY_INIT message leaves the display in power save state */ /* however this is not done for e-paper devices, see: */ /* https://github.com/olikraus/u8g2/wiki/internal#powersave-mode */ break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave1_seq); break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_il3820_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_to_display_seq); break; default: return 0; } return 1; } /*=================================================*/ /* second version for the IL3820 display */ /* http://www.waveshare.com/wiki/File:2.9inch_e-Paper_Module_code.7z */ static const uint8_t u8x8_d_il3820_v2_296x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_CA(0x10, 0x00), /* Deep Sleep mode Control: POR: Normal mode */ U8X8_C(0x01), U8X8_A(295 % 256), U8X8_A(295/256), U8X8_A(0), /* the driving voltagesmust not be that high, in order to aviod level change after */ /* some seconds (which happens with 0xea */ U8X8_CA(0x03, 0x75), /* Gate Driving voltage: +/-15V =0x00 POR (+22/-20V) = 0x0ea*/ U8X8_CA(0x04, 0x0a), /* Source Driving voltage: (POR=0x0a=15V), max=0x0e*/ U8X8_CA(0x0b, 7), /* Set Delay of gate and source non overlap period, POR = 7 */ U8X8_CA(0x2c, 0xa8), /* write vcom value*/ U8X8_CA(0x3a, 0x16), /* dummy lines POR=22 (0x016) */ U8X8_CA(0x3b, 0x08), /* gate time POR=0x08*/ U8X8_CA(0x3c, 0x33), /* select boarder waveform */ U8X8_CA(0x11, 0x07), /* Define data entry mode, x&y inc, x first*/ U8X8_CAA(0x44, 0, 29), /* RAM x start & end, 32*4=128 */ U8X8_CAAAA(0x45, 0, 0, 295&255, 295>>8), /* RAM y start & end, 0..295 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_il3820_v2_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* 0xaa, 0x09, 0x09, 0x19, 0x19, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x75, 0x77, 0x77, 0x77, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 measured 1240 ms */ U8X8_C(0x32), /* write LUT register*/ /* https://github.com/olikraus/u8g2/issues/347 */ U8X8_A(0xaa), U8X8_A(0x09), U8X8_A(0x09), U8X8_A(0x19), U8X8_A(0x19), U8X8_A(0x11), U8X8_A(0x11), U8X8_A(0x11), U8X8_A(0x11), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), /* Timing part of the LUT, 20 Phases with 4 bit each: 10 bytes */ U8X8_A(0x75), U8X8_A(0x77), U8X8_A(0x77), U8X8_A(0x77), U8X8_A(0x07), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_CA(0x22, 0x04), /* display update seq. option: pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* delay for 1400ms. The current sequence takes 1240ms, it was reported, that longer delays are better */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(150), /* extended, #318 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_il3820_v2_296x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_il3820_296x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_v2_296x128_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave0_seq); u8x8_d_il3820_first_init(u8x8); /* u8x8_d_il3820_second_init(u8x8); */ /* not required, u8g2.begin() will also clear the display once more */ /* usually the DISPLAY_INIT message leaves the display in power save state */ /* however this is not done for e-paper devices, see: */ /* https://github.com/olikraus/u8g2/wiki/internal#powersave-mode */ break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_296x128_powersave1_seq); break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_il3820_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_il3820_v2_to_display_seq); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ist3020.c ================================================ /* u8x8_d_ist3020.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ist3020_erc19264_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a4), /* all pixel off, issue 142 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist3020_erc19264_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist3020_erc19264_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist3020_erc19264_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ist3020_erc19264_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* IST3020 datasheet, page 56 */ /* pre_chip_disable_wait_ns = */ 150, /* IST3020 datasheet, page 56 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 100, /* IST3020 datasheet, page 56 */ /* sck_pulse_width_ns = */ 100, /* IST3020 datasheet, page 56 */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* IST3020 datasheet, page 54 */ /* write_pulse_width_ns = */ 60, /* IST3020 datasheet, page 54 */ /* tile_width = */ 24, /* width of 24*8=192 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 64, /* pixel_width = */ 192, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_ist3020_erc19264_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ab), /* build in osc on, used in ER code, but not mentioned in data sheet */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* FIX: LCD bias 1/7, old value was 1/9 (0x0a2) */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x020), /* v0 voltage resistor ratio */ U8X8_CA(0x081, 0x019), /* set contrast, contrast value (from ER code: 45) */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ist3020_erc19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ist3020_erc19264_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ist3020_erc19264_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ist3020_erc19264_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ist3020_erc19264_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ist3020_erc19264_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ist3020_erc19264_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ist7920.c ================================================ /* u8x8_d_ist7920.c this is NOT ST7920! Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ist7920_128x128_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x03d), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist7920_128x128_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x03c), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist7920_128x128_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x064), /* Display Ctrl: Bit3: SHL 2:ADC 1:EON, 0:REV */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ist7920_128x128_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x068), /* Display Ctrl: Bit3: SHL 2:ADC 1:EON, 0:REV */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ist7920_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 90, /* IST7920 datasheet, page 48 */ /* pre_chip_disable_wait_ns = */ 90, /* IST7920 datasheet, page 48 */ /* reset_pulse_width_ms = */ 10, /* post_reset_wait_ms = */ 20, /* IST7920 Startup Seq.. */ /* sda_setup_time_ns = */ 45, /* IST7920 datasheet, page 48 */ /* sck_pulse_width_ns = */ 130, /* IST7920 datasheet, page 48 */ /* sck_clock_hz = */ 3000000UL, /* IST7920 datasheet: 260ns */ /* spi_mode = */ 0, /* active high, rising edge (not verified) */ /* i2c_bus_clock_100kHz = */ 4, /* 400kHz according to IST7920 datasheet */ /* data_setup_time_ns = */ 60, /* IST7920 datasheet, page 47 */ /* write_pulse_width_ns = */ 150, /* IST7920 datasheet, page 47 */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; /* 1/128 Duty, 1/10 Bias, 128x128 round display */ static const uint8_t u8x8_d_ist7920_128x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x076), /* Software Reset */ U8X8_DLY(50), U8X8_C(0x03c), /* display off */ U8X8_CA(0x090, 128), /* Set Duty */ //U8X8_CAA(0x0b2, 0x011, 0x00), /* Set Frame Control */ U8X8_CA(0x030, 16), /* Set Bias 0: 1/8, 8: 1/9, 16: 1/10, 24: 1/11, 48: 1/12 ... */ U8X8_CA(0x031, 0x03f), /* Set voltage generate clock(31H/11H) */ //U8X8_CA(0x032, 0x015), /* Temperature compensation */ U8X8_CA(0x033, 0x020), /* Power Control */ U8X8_DLY(100), U8X8_CA(0x033, 0x02c), /* Power Control */ U8X8_DLY(100), U8X8_C(0xfd), /* set booster */ U8X8_DLY(100), U8X8_CA(0x033, 0x02f), /* Power Control */ U8X8_DLY(200), U8X8_C(0x064), /* Display Ctrl: Bit3: SHL 2:ADC 1:EON, 0:REV */ U8X8_CAA(0x074, 0x000, 0x00f), /* AY Window */ U8X8_CAA(0x075, 0x000, 0x07f), /* AX Window */ U8X8_CA(0x040, 64), /* Start line at 64 */ U8X8_CA(0x0b1, 100), /* electronic volume */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ist7920_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ist7920_128x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ist7920_128x128_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ist7920_128x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ist7920_128x128_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ist7920_128x128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ist7920_128x128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0b1 ); u8x8_cad_SendArg(u8x8, arg_int ); /* st7920 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x0c0 ); u8x8_cad_SendArg(u8x8, x ); u8x8_cad_SendCmd(u8x8, 0x001 ); u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos) ); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ks0108.c ================================================ /* u8x8_d_ks0108.c The classic 5V LCD Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ks0108_init_seq[] = { U8X8_C(0x0c0), /* satart at the top */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ks0108_powersave0_seq[] = { U8X8_C(0x03f), /* display on */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ks0108_powersave1_seq[] = { U8X8_C(0x03e), /* display off */ U8X8_END() /* end of sequence */ }; struct u8x8_ks0108_vars { uint8_t *ptr; uint8_t x; uint8_t c; uint8_t arg_int; }; static void u8x8_ks0108_out(u8x8_t *u8x8, struct u8x8_ks0108_vars *v, void *arg_ptr) { uint8_t cnt; u8x8_cad_SendCmd(u8x8, 0x040 | ((v->x << 3) & 63) ); u8x8_cad_SendCmd(u8x8, 0x0b8 | (((u8x8_tile_t *)arg_ptr)->y_pos)); while( v->arg_int > 0 ) { /* calculate tiles to next boundary (end or chip limit) */ cnt = v->x; cnt += 8; cnt &= 0x0f8; cnt -= v->x; if ( cnt > v->c ) cnt = v->c; /* of cours we still could use cnt=1 here... */ /* but setting cnt to 1 is not very efficient */ //cnt = 1; v->x +=cnt; v->c-=cnt; cnt<<=3; u8x8_cad_SendData(u8x8, cnt, v->ptr); /* note: SendData can not handle more than 255 bytes */ v->ptr += cnt; if ( v->c == 0 ) { v->ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; v->c = ((u8x8_tile_t *)arg_ptr)->cnt; v->arg_int--; } if ( ((v->x) & 7) == 0 ) break; } } static const u8x8_display_info_t u8x8_ks0108_128x64_display_info = { /* chip_enable_level = */ 0, /* KS0108: Not used */ /* chip_disable_level = */ 1, /* KS0108: Not used */ /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* could be faster for the KS0108 */ /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* KS0108: Not used */ /* sck_clock_hz = */ 4000000UL, /* KS0108: Not used */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* KS0108: Not used */ /* data_setup_time_ns = */ 200, /* write_pulse_width_ns = */ 250, /* KS0108: actially 450 ns, but additional 200 ns are added by the byte transfer function */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ks0108_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { struct u8x8_ks0108_vars v; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ks0108_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 2, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 2, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); } else { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 2, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); } break; // The KS0108 can not mirror the cols and rows, use U8g2 for rotation // case U8X8_MSG_DISPLAY_SET_FLIP_MODE: // break; // The KS0108 has no internal contrast command // case U8X8_MSG_DISPLAY_SET_CONTRAST: // break; case U8X8_MSG_DISPLAY_DRAW_TILE: v.ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; v.x = ((u8x8_tile_t *)arg_ptr)->x_pos; v.c = ((u8x8_tile_t *)arg_ptr)->cnt; v.arg_int = arg_int; if ( v.x < 8 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_ks0108_out(u8x8, &v, arg_ptr); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); } if ( v.x < 16 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 2, NULL); u8x8_ks0108_out(u8x8, &v, arg_ptr); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); } //if ( v.x < 24 ) //{ //u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 4, NULL); //u8x8_ks0108_out(u8x8, &v, arg_ptr); //u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); //} break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ks0108_192x64_display_info = { /* chip_enable_level = */ 0, /* KS0108: Not used */ /* chip_disable_level = */ 1, /* KS0108: Not used */ /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* could be faster for the KS0108 */ /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* KS0108: Not used */ /* sck_clock_hz = */ 4000000UL, /* KS0108: Not used */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* KS0108: Not used */ /* data_setup_time_ns = */ 200, /* write_pulse_width_ns = */ 250, /* KS0108: actially 450 ns, but additional 200 ns are added by the byte transfer function */ /* tile_width = */ 24, /* width of 24*8=192 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 192, /* pixel_height = */ 64 }; /* east rising (buydisplay.com) ERM19264 */ /* left: 011, middle: 101, right: 110, no chip select: 111 */ uint8_t u8x8_d_ks0108_erm19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { struct u8x8_ks0108_vars v; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ks0108_192x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 3, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 5, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 6, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 3, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 5, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 6, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); } else { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 3, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 5, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 6, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_ks0108_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); } break; // The KS0108 can not mirror the cols and rows, use U8g2 for rotation // case U8X8_MSG_DISPLAY_SET_FLIP_MODE: // break; // The KS0108 has no internal contrast command // case U8X8_MSG_DISPLAY_SET_CONTRAST: // break; case U8X8_MSG_DISPLAY_DRAW_TILE: v.ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; v.x = ((u8x8_tile_t *)arg_ptr)->x_pos; v.c = ((u8x8_tile_t *)arg_ptr)->cnt; v.arg_int = arg_int; /* 3-bit CS value: In u8x8_byte_set_ks0108_cs(u8x8_t *u8x8, uint8_t arg) the lowest bit is assigned to CS and highest bit if the 3-bit value to CS2 CS: left part of the display --> 6 CS1: middle part --> 5 CS2: right part of the display --> 3 Reference: https://github.com/olikraus/u8g2/issues/631 */ if ( v.x < 8 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 6, NULL); // 3-->6, issue 631 u8x8_ks0108_out(u8x8, &v, arg_ptr); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); } if ( v.x < 16 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 5, NULL); u8x8_ks0108_out(u8x8, &v, arg_ptr); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); } if ( v.x < 24 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 3, NULL); // 6-->3, // issue 631 u8x8_ks0108_out(u8x8, &v, arg_ptr); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 7, NULL); } break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_lc7981.c ================================================ /* u8x8_d_lc7981.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* no powersave mode for the LC7981 */ // static const uint8_t u8x8_d_lc7981_powersave0_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_lc7981_powersave1_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; /* no hardware flip for the LC7981 */ // static const uint8_t u8x8_d_lc7981_flip0_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_lc7981_flip1_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; /* http://graphics.stanford.edu/~seander/bithacks.html */ static uint8_t reverse_byte(uint8_t v) { // if ( v != 0 && v != 255 ) does not help much { // swap odd and even bits v = ((v >> 1) & 0x055) | ((v & 0x055) << 1); // swap consecutive pairs v = ((v >> 2) & 0x033) | ((v & 0x033) << 2); // swap nibbles ... v = ((v >> 4) & 0x00F) | ((v & 0x00F) << 4); } return v; } static uint8_t u8x8_d_lc7981_common(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { uint8_t c, i, j; uint16_t y; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: y = (((u8x8_tile_t *)arg_ptr)->y_pos); y*=8; y*= u8x8->display_info->tile_width; /* x = ((u8x8_tile_t *)arg_ptr)->x_pos; x is ignored... no u8x8 support */ u8x8_cad_StartTransfer(u8x8); /* Tile structure is reused here for the t6963, however u8x8 is not supported tile_ptr points to data which has cnt*8 bytes (same as SSD1306 tiles) Buffer is expected to have 8 lines of code fitting to the t6963 internal memory "cnt" includes the number of horizontal bytes. width is equal to cnt*8 x is assumed to be zero TODO: Consider arg_int, however arg_int is not used by u8g2 */ c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ for( i = 0; i < 8; i++ ) { u8x8_cad_SendCmd(u8x8, 0x0a ); /* display ram (cursor) address low byte */ u8x8_cad_SendArg(u8x8, y&255); u8x8_cad_SendCmd(u8x8, 0x0b ); /* display ram (cursor) address high byte */ u8x8_cad_SendArg(u8x8, y>>8); u8x8_cad_SendCmd(u8x8, 0x0c ); /* write start */ /* The LC7981 has the MSB at the right position, which is exactly the opposite to the T6963. Instead of writing a third hvline procedure for this device, we just revert the bytes before transmit. This is slow because: - the bit reverse itself - the single byte transfer The one byte is transmitted via SendArg, which is ok, because CAD = 100 */ for( j = 0; j < c; j++ ) u8x8_cad_SendArg(u8x8, reverse_byte(*ptr++)); //u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes, send one line of data */ //ptr += u8x8->display_info->tile_width; y += u8x8->display_info->tile_width; } u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_lc7981_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ /* power save is not there... case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_powersave1_seq); break; */ /* hardware flip not is not available case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; */ #ifdef U8X8_WITH_SET_CONTRAST /* no contrast setting :-( case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); u8x8_cad_EndTransfer(u8x8); break; */ #endif default: return 0; } return 1; } /*================================================*/ /* LC7981 160x80 LCD*/ static const u8x8_display_info_t u8x8_lc7981_160x80_display_info = { /* chip_enable_level = */ 0, /* LC7981 has a low active CS*/ /* chip_disable_level = */ 1, /* from here... */ /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* ... to here, values are ignored, because this is a parallel interface only */ /* data_setup_time_ns = */ 220, /* write_pulse_width_ns = */ 20, /* tile_width = */ 20, /* width of 20*8=160 pixel */ /* tile_hight = */ 10, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 80 }; static const uint8_t u8x8_d_lc7981_160x80_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(50), U8X8_CA(0x00, 0x32), /* display on (bit 5), master mode on (bit 4), graphics mode on (bit 1) */ U8X8_CA(0x01, 0x07), /* character/bits per pixel pitch */ U8X8_CA(0x02, 160/8-1), /* number of chars/byte width of the screen */ U8X8_CA(0x03, 0x50), /* time division: 50 (1/80 duty cycle) */ U8X8_CA(0x08, 0x00), /* display start low */ U8X8_CA(0x09, 0x00), /* display start high */ U8X8_DLY(10), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_lc7981_160x80(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_lc7981_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_lc7981_160x80_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_160x80_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* LC7981 160x160 LCD*/ static const u8x8_display_info_t u8x8_lc7981_160x160_display_info = { /* chip_enable_level = */ 0, /* LC7981 has a low active CS*/ /* chip_disable_level = */ 1, /* from here... */ /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* ... to here, values are ignored, because this is a parallel interface only */ /* data_setup_time_ns = */ 220, /* write_pulse_width_ns = */ 20, /* tile_width = */ 20, /* width of 20*8=160 pixel */ /* tile_hight = */ 20, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 160 }; static const uint8_t u8x8_d_lc7981_160x160_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(50), U8X8_CA(0x00, 0x32), /* display on (bit 5), master mode on (bit 4), graphics mode on (bit 1) */ U8X8_CA(0x01, 0x07), /* character/bits per pixel pitch */ U8X8_CA(0x02, 160/8-1), /* number of chars/byte width of the screen */ U8X8_CA(0x03, 159), /* time division */ U8X8_CA(0x08, 0x00), /* display start low */ U8X8_CA(0x09, 0x00), /* display start high */ U8X8_DLY(10), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_lc7981_160x160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_lc7981_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_lc7981_160x160_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_160x160_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* LC7981 240x128 LCD*/ static const u8x8_display_info_t u8x8_lc7981_240x128_display_info = { /* chip_enable_level = */ 0, /* LC7981 has a low active CS*/ /* chip_disable_level = */ 1, /* from here... */ /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* ... to here, values are ignored, because this is a parallel interface only */ /* data_setup_time_ns = */ 220, /* write_pulse_width_ns = */ 20, /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 128 }; static const uint8_t u8x8_d_lc7981_240x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(50), U8X8_CA(0x00, 0x32), /* display on (bit 5), master mode on (bit 4), graphics mode on (bit 1) */ U8X8_CA(0x01, 0x07), /* character/bits per pixel pitch */ U8X8_CA(0x02, 240/8-1), /* number of chars/byte width of the screen */ U8X8_CA(0x03, 0x7f), /* time division */ U8X8_CA(0x08, 0x00), /* display start low */ U8X8_CA(0x09, 0x00), /* display start high */ U8X8_DLY(10), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_lc7981_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_lc7981_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_lc7981_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_240x128_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* LC7981 240x64 LCD*/ /* https://github.com/olikraus/u8g2/issues/642 */ static const u8x8_display_info_t u8x8_lc7981_240x64_display_info = { /* chip_enable_level = */ 0, /* LC7981 has a low active CS*/ /* chip_disable_level = */ 1, /* from here... */ /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* ... to here, values are ignored, because this is a parallel interface only */ /* data_setup_time_ns = */ 220, /* write_pulse_width_ns = */ 20, /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_lc7981_240x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(50), U8X8_CA(0x00, 0x32), /* display on (bit 5), master mode on (bit 4), graphics mode on (bit 1) */ U8X8_CA(0x01, 0x07), /* character/bits per pixel pitch */ U8X8_CA(0x02, 240/8-1), /* number of chars/byte width of the screen */ U8X8_CA(0x03, 0x7f), /* time division */ U8X8_CA(0x08, 0x00), /* display start low */ U8X8_CA(0x09, 0x00), /* display start high */ U8X8_DLY(10), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_lc7981_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_lc7981_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_lc7981_240x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_lc7981_240x64_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ld7032_60x32.c ================================================ /* u8x8_d_ld7032_60x32.c Note: Flip Mode is NOT supported Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* testboard U8GLIB_LD7032_60x32 u8g(11, 12, 9, 10, 8); // SPI Com: SCK = 11, MOSI = 12, CS = 9, A0 = 10, RST = 8 (SW SPI Nano Board) */ /* http://www.seeedstudio.com/document/pdf/0.5OLED%20SPEC.pdf */ #ifdef OBSOLETE static const uint8_t u8x8_d_ld7032_60x32_init_seq_old[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_CA(0x002, 0x001), /* Dot Matrix Display ON */ U8X8_CA(0x014, 0x000), /* Stand-by OFF */ U8X8_CA(0x01a, 0x004), /* Dot Matrix Frame Rate, special value for this OLED from manual*/ U8X8_CA(0x01d, 0x000), /* Graphics Memory Writing Direction: reset default (right down, horizontal) */ U8X8_CA(0x009, 0x000), /* Display Direction: reset default (x,y: min --> max) */ U8X8_CAA(0x030, 0x000, 0x03b), /* Display Size X, Column Start - End*/ U8X8_CAA(0x032, 0x000, 0x01f), /* Display Size Y, Row Start - End*/ U8X8_CA(0x010, 0x000), /* Peak Pulse Width Set: 0 SCLK */ U8X8_CA(0x016, 0x000), /* Peak Pulse Delay Set: 0 SCLK */ U8X8_CA(0x012, 0x040), /* Dot Matrix Current Level Set: 0x050 * 1 uA = 80 uA */ U8X8_CA(0x018, 0x003), /* Pre-Charge Pulse Width: 3 SCLK */ U8X8_CA(0x044, 0x002), /* Pre-Charge Mode: Every Time */ U8X8_CA(0x048, 0x003), /* Row overlap timing: Pre-Charge + Peak Delay + Peak boot Timing */ U8X8_CA(0x03f, 0x011), /* VCC_R_SEL: ??? */ U8X8_CA(0x03d, 0x000), /* VSS selection: 2.8V */ //U8X8_CA(0x002, 0x001), /* Dot Matrix Display ON */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; #endif /* new sequence https://github.com/olikraus/u8g2/issues/865 */ static const uint8_t u8x8_d_ld7032_60x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x02, 0x00), /* Dot Matrix Display OFF */ U8X8_CA(0x14, 0x00), /* Stand-by OFF, OSCA Start */ U8X8_CA(0x1a, 0x04), /* Dot Matrix Frame Rate, special value for this OLED from manual 4 => 120Hz*/ U8X8_CA(0x1d, 0x00), /* Graphics Memory Writing Direction: reset default (right down, horizontal) */ U8X8_CA(0x09, 0x00), /* Display Direction: reset default (x,y: min --> max) */ U8X8_CAA(0x30, 0x00, 0x3B), /* Display Size X, Column Start - End 0-0x3b(59)*/ U8X8_CAA(0x32, 0x00, 0x1F), /* Display Size Y, Row Start - End 0-0x1f(31)*/ U8X8_CA(0x34, 0x00), /* Data Reading/Writing Box X start */ U8X8_CA(0x35, 0x07), /* Data Reading/Writing Box X end */ U8X8_CA(0x36, 0x00), /* Data Reading/Writing Box Y start */ U8X8_CA(0x37, 0x1F), /* Data Reading/Writing Box Y end */ U8X8_CA(0x38, 0x00), /* Display Start Address X */ U8X8_CA(0x39, 0x00), /* Display Start Address Y */ U8X8_CA(0x10, 0x00), /* Peak Pulse Width Set: 0 SCLK */ U8X8_CA(0x16, 0x00), /* Peak Pulse Delay Set: 0 SCLK */ U8X8_CA(0x12, 0x40), /* 0x32, 0x50 or 0x40 Dot Matrix Current Level Set: 0x050 * 1 uA = 80 uA */ U8X8_CA(0x18, 0x03), /* Pre-Charge Pulse Width: 3 SCLK */ U8X8_CA(0x44, 0x02), /* Pre-Charge Mode: Every Time */ U8X8_CA(0x48, 0x03), /* Row overlap timing: Pre-Charge + Peak Delay + Peak boot Timing */ U8X8_CA(0x17, 0x00), /* Row Scan */ U8X8_CA(0x13, 0x00), /* Row Scan Sequence Setting */ U8X8_CA(0x1C, 0x00), /* Data Reverse */ U8X8_CA(0x3f, 0x11), /* VCC_R_SEL: Internal Regulator enabled(D4=1) and VCC_R=VCC_C*0.7(D0=1) */ U8X8_CA(0x3d, 0x00), /* VSS selection: 2.8V */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ld7032_60x32_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x002, 0x001), /* Dot Matrix Display ON */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ld7032_60x32_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x002, 0x000), /* Dot Matrix Display ON */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ld7032_60x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x009, 0x000), /* Display Direction: reset default (x,y: min --> max) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ld7032_60x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_CA(0x009, 0x002), /* Display Direction: reset default (x,y: min --> max) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ld7032_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ld7032_60x32_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x012 ); if ( arg_int > 0x07f ) /* default is 0x040, limit to 0x07f to be on the safe side (hopefully) */ arg_int= 0x07f; u8x8_cad_SendArg(u8x8, arg_int ); /* values from 0x00 to 0x0ff are allowed, bit will all values be safe??? */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x += u8x8->x_offset/8; u8x8_cad_SendCmd(u8x8, 0x034 ); u8x8_cad_SendArg(u8x8, x ); u8x8_cad_SendCmd(u8x8, 0x035 ); u8x8_cad_SendArg(u8x8, 0x007 ); u8x8_cad_SendCmd(u8x8, 0x036 ); u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)*8 ); u8x8_cad_SendCmd(u8x8, 0x037 ); u8x8_cad_SendArg(u8x8, 0x01f ); u8x8_cad_SendCmd(u8x8, 0x008 ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ld7032_60x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 15, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */ /* sck_pulse_width_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 20, /* write_pulse_width_ns = */ 40, /* tile_width = */ 8, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 60, /* pixel_height = */ 32 }; uint8_t u8x8_d_ld7032_60x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ld7032_60x32_display_info); return 1; } return u8x8_d_ld7032_generic(u8x8, msg, arg_int, arg_ptr); } /* alternative version, issue #1189 */ /* new sequence https://github.com/olikraus/u8g2/issues/1189 */ static const uint8_t u8x8_d_ld7032_60x32_alt_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x02, 0x00), U8X8_CA(0x14, 0x00), U8X8_CA(0x1A, 0x05), U8X8_CA(0x1D, 0x00), U8X8_CA(0x09, 0x00), U8X8_CAA(0x30, 0x00, 0x3F), U8X8_CAA(0x32, 0x08, 0x27), U8X8_CA(0x34, 0x00), U8X8_CA(0x35, 0x07), U8X8_CA(0x36, 0x08), U8X8_CA(0x37, 0x27), U8X8_CA(0x38, 0x00), U8X8_CA(0x39, 0x20), U8X8_CA(0x10, 0x05), U8X8_CA(0x16, 0x00), U8X8_CA(0x18, 0x08), U8X8_CA(0x12, 0x2F), U8X8_CA(0x3D, 0x01), U8X8_CA(0x3F, 0x10), U8X8_CA(0x44, 0x02), U8X8_CA(0x48, 0x03), U8X8_CA(0x17, 0x00), U8X8_CA(0x13, 0x01), U8X8_CA(0x3F, 0x11), U8X8_CA(0x3D, 0x00), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */}; uint8_t u8x8_d_ld7032_60x32_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ld7032_60x32_display_info); return 1; } if ( msg ==U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ld7032_60x32_alt_init_seq); return 1; } return u8x8_d_ld7032_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ls013b7dh03.c ================================================ /* u8x8_d_ls013b7dh03.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The LS013B7DH02 is a simple display and controller --> no support for contrast adjustment, flip and power down. */ #include "u8x8.h" #define SWAP8(a) ((((a) & 0x80) >> 7) | (((a) & 0x40) >> 5) | (((a) & 0x20) >> 3) | (((a) & 0x10) >> 1) | (((a) & 0x08) << 1) | (((a) & 0x04) << 3) | (((a) & 0x02) << 5) | (((a) & 0x01) << 7)) #define LS013B7DH03_CMD_UPDATE (0x01) #define LS013B7DH03_CMD_ALL_CLEAR (0x04) #define LS013B7DH03_VAL_TRAILER (0x00) static const u8x8_display_info_t u8x8_ls013b7dh03_128x128_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 50, /* pre_chip_disable_wait_ns = */ 50, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */ /* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 2, /* active low, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 100, /* write_pulse_width_ns = */ 100, /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_ls013b7dh03_128x128(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { uint8_t y, c, i; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ls013b7dh03_128x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); /* clear screen */ u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, SWAP8(LS013B7DH03_CMD_ALL_CLEAR) ); u8x8_cad_SendCmd(u8x8, LS013B7DH03_VAL_TRAILER); u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: /* not available for the ls013b7dh03 */ break; case U8X8_MSG_DISPLAY_DRAW_TILE: /* each tile is 8 lines, with the data starting at the left edge */ y = ((((u8x8_tile_t *)arg_ptr)->y_pos) * 8) + 1; c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* send data mode byte */ u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, SWAP8(LS013B7DH03_CMD_UPDATE) ); /* send 8 lines of 16 bytes (=128 pixels) */ for( i = 0; i < 8; i++ ) { u8x8_cad_SendCmd(u8x8, SWAP8(y + i) ); u8x8_cad_SendData(u8x8, c, ptr); u8x8_cad_SendCmd(u8x8, LS013B7DH03_VAL_TRAILER); ptr += c; } /* finish with a trailing byte */ u8x8_cad_SendCmd(u8x8, LS013B7DH03_VAL_TRAILER); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ls027b7dh01_400x240_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 50, /* pre_chip_disable_wait_ns = */ 50, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */ /* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 2, /* active low, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 100, /* write_pulse_width_ns = */ 100, /* tile_width = */ 50, /* tile_hight = */ 30, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 400, /* pixel_height = */ 240 }; uint8_t u8x8_d_ls027b7dh01_400x240(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ls027b7dh01_400x240_display_info); break; default: return u8x8_d_ls013b7dh03_128x128(u8x8, msg, arg_int, arg_ptr); } return 1; } static const u8x8_display_info_t u8x8_ls027b7dh01_m0_400x240_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 50, /* pre_chip_disable_wait_ns = */ 50, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */ /* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active low, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 100, /* write_pulse_width_ns = */ 100, /* tile_width = */ 50, /* tile_hight = */ 30, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 400, /* pixel_height = */ 240 }; uint8_t u8x8_d_ls027b7dh01_m0_400x240(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ls027b7dh01_m0_400x240_display_info); break; default: return u8x8_d_ls013b7dh03_128x128(u8x8, msg, arg_int, arg_ptr); } return 1; } static const u8x8_display_info_t u8x8_ls013b7dh05_144x168_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 50, /* pre_chip_disable_wait_ns = */ 50, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */ /* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 2, /* active low, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 100, /* write_pulse_width_ns = */ 100, /* tile_width = */ 18, /* tile_hight = */ 21, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 144, /* pixel_height = */ 168 }; uint8_t u8x8_d_ls013b7dh05_144x168(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ls013b7dh05_144x168_display_info); break; default: return u8x8_d_ls013b7dh03_128x128(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_max7219.c ================================================ /* u8x8_d_max7219.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_max7219_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_END_TRANSFER(), /* disable chip */ //U8X8_CA(12, 0), /* shutdown */ //U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_max7219_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_max7219_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_max7219_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c, j, i; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_pcf8812_96x65_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave1_seq); break; */ /* not supported by MAX7219 case U8X8_MSG_DISPLAY_SET_FLIP_MODE: break; */ #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); for( i = 0; i < u8x8->display_info->tile_width; i++ ) { u8x8_cad_SendCmd(u8x8, 10 ); /* brightness */ u8x8_cad_SendArg(u8x8, (arg_int>>4) ); /* 0..15 for contrast */ } u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: /* transfer always has to start at x pos 0 (u8x8 is not supported) */ /* also y pos has to be 0 */ /* arg_int is ignored */ //x = ((u8x8_tile_t *)arg_ptr)->x_pos; c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ for( i = 0; i < 8; i++ ) { u8x8_cad_StartTransfer(u8x8); for( j = 0; j < c; j++ ) { u8x8_cad_SendCmd(u8x8, i+1); /* commands 1..8 select the byte */ u8x8_cad_SendArg(u8x8, *ptr ); ptr++; } u8x8_cad_EndTransfer(u8x8); } break; default: return 0; } return 1; } /*==============================*/ static const u8x8_display_info_t u8x8_max7219_32x8_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 4, /* tile_hight = */ 1, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 32, /* pixel_height = */ 8 }; uint8_t u8x8_d_max7219_32x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY : u8x8_d_helper_display_setup_memory(u8x8, &u8x8_max7219_32x8_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave1_seq); return 1; } return u8x8_d_max7219_generic(u8x8, msg, arg_int, arg_ptr); } /*==============================*/ static const u8x8_display_info_t u8x8_max7219_16x16_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 2, /* tile_hight = */ 2, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 16, /* pixel_height = */ 16 }; /* Multiple page rows are not supported, so 16x16 will not work. Due to the hardware structure of such displays all tiles of the display must be written at once. This is not possible with the current u8g2 structure. So u8x8_d_max7219_16x16 will not work. */ uint8_t u8x8_d_max7219_16x16(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY : u8x8_d_helper_display_setup_memory(u8x8, &u8x8_max7219_16x16_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave1_seq); return 1; } return u8x8_d_max7219_generic(u8x8, msg, arg_int, arg_ptr); } /*==============================*/ static const u8x8_display_info_t u8x8_max7219_8x8_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 1, /* tile_hight = */ 1, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 8, /* pixel_height = */ 8 }; uint8_t u8x8_d_max7219_8x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY : u8x8_d_helper_display_setup_memory(u8x8, &u8x8_max7219_8x8_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_powersave1_seq); return 1; } return u8x8_d_max7219_generic(u8x8, msg, arg_int, arg_ptr); } /*==============================*/ static const uint8_t u8x8_d_max7219_8_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_CA(15, 0), /* test mode off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_CA(12, 0), /* */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_CA(9, 0), /* decode mode: graphics */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_CA(10, 10), /* medium high intensity */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_CA(11, 7), /* scan limit: display all digits (assuming a 8x8 matrix) */ U8X8_END_TRANSFER(), /* disable chip */ //U8X8_CA(12, 0), /* shutdown */ //U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_max7219_8_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_CA(12, 1), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_max7219_8_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_CA(12, 0), /* shutdown */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_max7219_64x8_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 8, /* tile_hight = */ 1, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 64, /* pixel_height = */ 8 }; uint8_t u8x8_d_max7219_64x8(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY : u8x8_d_helper_display_setup_memory(u8x8, &u8x8_max7219_64x8_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_8_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_8_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_max7219_8_powersave1_seq); return 1; } return u8x8_d_max7219_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_pcd8544_84x48.c ================================================ /* u8x8_d_pcd8544_84x48.c (so called "Nokia 5110" displays) Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_pcd8544_84x48_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x021), /* activate chip (PD=0), horizontal increment (V=0), enter extended command set (H=1) */ U8X8_C(0x006), /* temp. control: b10 = 2 */ U8X8_C(0x013), /* bias system 1:48 */ U8X8_C(0x0c0), /* medium Vop */ U8X8_C(0x020), /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_C(0x008), /* blank */ U8X8_C(0x024), /* power down (PD=1), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_pcd8544_84x48_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x020), /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_C(0x00c), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_pcd8544_84x48_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x020), /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_C(0x008), /* blank */ U8X8_C(0x024), /* power down (PD=1), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_pcd8544_84x48_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 2, /* post_reset_wait_ms = */ 2, /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 11, /* width of 11*8=88 pixel */ /* tile_hight = */ 6, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 84, /* pixel_height = */ 48 }; uint8_t u8x8_d_pcd8544_84x48(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_pcd8544_84x48_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_pcd8544_84x48_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_pcd8544_84x48_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_pcd8544_84x48_powersave1_seq); break; // case U8X8_MSG_DISPLAY_SET_FLIP_MODE: // break; NOT SUPPORTED #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x021 ); /* command mode, extended function set */ u8x8_cad_SendCmd(u8x8, 0x080 | (arg_int >> 1) ); u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x020 ); /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ u8x8_cad_SendCmd(u8x8, 0x080 | (x) ); /* set X address */ u8x8_cad_SendCmd(u8x8, 0x040 | (((u8x8_tile_t *)arg_ptr)->y_pos) ); /* set Y address */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; do { if ( c + x > 84u ) { if ( x >= 84u ) break; c = 84u; c -= x; } u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ x += c; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_pcf8812.c ================================================ /* u8x8_d_pcf8812.c pcf8812: 65x102 pcf8814: 65x96 Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_pcf8812_96x65_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x020), /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_C(0x008), /* blank display */ U8X8_C(0x021), /* activate chip (PD=0), horizontal increment (V=0), enter extended command set (H=1) */ U8X8_C(0x006), /* temp. control: b10 = 2 */ U8X8_C(0x013), /* bias system, 0x010..0x07 1:48 */ U8X8_C(0x09f), /* contrast setting, 0..127 */ //U8X8_CA(0x020 | 2, 0x080 | 0), /* contrast setting, pcf8814 */ U8X8_C(0x024), /* deactivate chip (PD=1), horizontal increment (V=0), enter normal command set (H=0) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_pcf8812_96x65_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x020), /* power on */ U8X8_C(0x00c), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_pcf8812_96x65_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x020), /* power on */ U8X8_C(0x008), /* blank display */ U8X8_C(0x024), /* power down */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_pcf8812_96x65_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_pcf8812_96x65_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_96x65_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_96x65_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_96x65_powersave1_seq); break; /* case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_96x65_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_96x65_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; */ #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x021 ); /* command mode, extended function set */ u8x8_cad_SendArg(u8x8, (arg_int>>1)|0x80 ); /* 0..127 for contrast */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x020 ); /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ u8x8_cad_SendCmd(u8x8, 0x080 | x); u8x8_cad_SendCmd(u8x8, 0x040 | ((u8x8_tile_t *)arg_ptr)->y_pos); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_pcf8812_96x65_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 12, /* tile_hight = */ 9, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 96, /* pixel_height = */ 65 }; uint8_t u8x8_d_pcf8812_96x65(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_pcf8812_96x65_display_info); return 1; } return u8x8_d_pcf8812_96x65_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_pcf8814_hx1230.c ================================================ /* u8x8_d_pcf8814_hc1230.c pcf8814: 65x96 hx1230: 68x96 pcf8814 and hc1230 are almost identical. Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_hx1230_96x68_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x020), /* power off */ U8X8_C(0x080), /* contrast setting, 0..31, set to 0 */ U8X8_C(0x0a6), /* not inverted display */ U8X8_C(0x0a4), /* normal display mode */ U8X8_C(0x0a0), /* */ U8X8_C(0x0c0), /* */ U8X8_C(0x040), /* start at scanline 0 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_hx1230_96x68_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x02f), /* power on */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_hx1230_96x68_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* All pixels on = powersave */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_hx1230_96x68_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* */ U8X8_C(0x0c0), /* */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_hx1230_96x68_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* */ U8X8_C(0x0c8), /* */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_hx1230_96x68_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_hx1230_96x68_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_hx1230_96x68_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_hx1230_96x68_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_hx1230_96x68_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_hx1230_96x68_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_hx1230_96x68_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, (arg_int>>3)|0x80 ); /* 0..31 for contrast */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, x&15); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4)); u8x8_cad_SendCmd(u8x8, 0x0b0 | ((u8x8_tile_t *)arg_ptr)->y_pos); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_hx1230_96x68_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 100, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 100, /* sck_pulse_width_ns = */ 100, /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 12, /* tile_hight = */ 9, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 96, /* pixel_height = */ 68 }; uint8_t u8x8_d_hx1230_96x68(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_hx1230_96x68_display_info); return 1; } return u8x8_d_hx1230_96x68_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_s1d15721.c ================================================ /* u8x8_d_s1d15721.c 240x64 display https://github.com/olikraus/u8g2/issues/1473 http://datasheet.datasheetarchive.com/originals/library/Datasheets-ISS16/DSAIH000309343.pdf Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2020, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_s1d15721_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA8), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15721_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA8|1), /* display off, enter sleep mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15721_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA6), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15721_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA7), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_s1d15721_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x += u8x8->x_offset; x *= 8; u8x8_cad_SendCmd(u8x8, 0xB1); //Page Address - Row u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); y = ((u8x8_tile_t *)arg_ptr)->y_pos; u8x8_cad_SendCmd(u8x8, 0x13); /* col */ u8x8_cad_SendArg(u8x8, x); u8x8_cad_SendCmd(u8x8, 0x1D ); //Data Write c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: break; #endif default: return 0; } return 1; } /*================================================*/ /* s1d15721 240x64 */ static const u8x8_display_info_t u8x8_s1d15721_240x64_display_info = { /* chip_enable_level = */ 0, /* low active CS */ /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* */ /* pre_chip_disable_wait_ns = */ 20, /* */ /* reset_pulse_width_ms = */ 1, /* */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* */ /* write_pulse_width_ns = */ 65, /* */ /* tile_width = */ 30, /* width of 20*8=160 pixel (30*8 = 240) */ /* tile_hight = */ 8, /* height 8*8 = 64*/ /* default_x_offset = */ 1, /* flipmode_x_offset = */ 1, /* pixel_width = */ 240, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_s1d15721_240x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xC4|1), /* (5) Common Output Status (Reverse) */ U8X8_CA(0xA6, 0x01), /* (3) Display Normal Reverse (Normal) */ U8X8_CA(0xA4, 0x00), /* (4) Display All Light (Normal) */ U8X8_CAA(0x6D,0x10,0x02), /* (18) Duty Set Command */ U8X8_CA(0x66, 0x01), /* (15) Display Mode, Parameter 0 (0 = Gray Scale 1 = Binary */ U8X8_CA(0x39, 0x36), /* (16) Gray Scale Pattern Set, Pattern */ U8X8_CA(0x2B, 0x07), /* (27) LCD Drive Mode Voltage Select, Parameter */ U8X8_CA(0x81, 0x0a), /* (28) Electronic Volume, Parameter */ U8X8_CA(0x5F, 0x00), /* (24) Built-in Oscillator Frequency, Parameter */ U8X8_C(0xAA|1), /* (23) Built-in OSC On */ U8X8_CA(0x25, 0x1f), /* (25) Power Control Set, Parameter */ U8X8_CA(0x8A, 0x00), /* (6) Start Line Setup, Parameter */ U8X8_CA(0xB1, 0x00), /* (7) Page Address Set, Parameter */ U8X8_CA(0x13, 0x00), /* (8) Column Address Set */ U8X8_C(0xAE|1), /* (1) Display ON/OFF */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_s1d15721_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* checking for the flip mode cmd first */ if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } /* call the common procedure, this now leads to the effect, that the flip code is executed again */ /* maybe we should paste the common code here to avoid this */ if ( u8x8_d_s1d15721_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_s1d15721_240x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15721_240x64_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_s1d15e06.c ================================================ /* u8x8_d_s1d15e06.c https://github.com/olikraus/u8g2/pull/1190 https://github.com/olikraus/u8g2/issues/1172 Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2020, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_s1d15e06_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA8), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15e06_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA8|1), /* display off, enter sleep mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15e06_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA6), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_s1d15e06_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xA7), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_s1d15e06_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0xB1); //Page Address - Row u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); y = ((u8x8_tile_t *)arg_ptr)->y_pos; y += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x13); /* col */ u8x8_cad_SendArg(u8x8, x); u8x8_cad_SendCmd(u8x8, 0x1D ); //Data Write c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: break; #endif default: return 0; } return 1; } /*================================================*/ /* s1d15e06 160x100 */ static const u8x8_display_info_t u8x8_s1d15e06_160100_display_info = { /* chip_enable_level = */ 0, /* s1d15e06 has low active CS */ /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1608 datasheet, page 39, actually 0 */ /* pre_chip_disable_wait_ns = */ 20, /* uc1608 datasheet, page 39 */ /* reset_pulse_width_ms = */ 1, /* uc1608 datasheet, page 42 */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* uc1608 datasheet, page 41 */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1608 datasheet, page 39 */ /* write_pulse_width_ns = */ 65, /* uc1608 datasheet, page 39 */ /* tile_width = */ 20, /* width of 20*8=160 pixel */ /* tile_hight = */ 13, /* default_x_offset = */ 0, /* reused as y page offset */ /* flipmode_x_offset = */ 0, /* reused as y page offset */ /* pixel_width = */ 160, /* pixel_height = */ 100 }; static const uint8_t u8x8_d_s1d15e06_160100_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* (Command no in datasheet) Description */ U8X8_C(0xA0|1), /* (12) Column Address Direction (Reverse) */ U8X8_C(0xC4|1), /* (5) Common Output Status (Reverse) */ U8X8_C(0x84), /* (11) Display Data In. Direction (Normal) */ U8X8_C(0xA6), /* (3) Display Normal Reverse (Normal) */ U8X8_C(0xA4), /* (4) Display All Light (Normal) */ U8X8_CAA(0x6D,0x18,0x04), /* (18) Duty Set Command, Parameter "Duty Set" 1/96 , Parameter "Start Point Set" */ U8X8_CA(0x66, 0x01), /* (15) Display Mode, Parameter 0 (4 Gray Scale) 1 (Binary) */ U8X8_CA(0x39, 0x43), /* (16) Gray Scale Pattern Set, Pattern */ U8X8_C(0xBE|1), /* (2) Display Off Mode (0 VSS / 1 Vcc) */ U8X8_CA(0x2B, 0x03), /* (27) LCD Drive Mode Voltage Select, Parameter */ U8X8_CA(0x81, 0x32), /* (28) Electronic Volume, Parameter */ U8X8_C(0xE4|1), /* (14) N-Line On Off (On) */ U8X8_CA(0x36, 0x05), /* (13) N-Line Inversion Drive, Parameter (6x4) */ U8X8_CA(0x41, 0x03), /* (13) (26) Step-up CK Frequency Select, fosc/8 */ U8X8_CA(0x5F, 0x04), /* (24) Built-in Oscillator Frequency, Parameter */ U8X8_C(0xAA|1), /* (23) Built-in OSC On */ U8X8_CA(0x25, 0x1F), /* (25) Power Control Set, Parameter */ U8X8_CA(0x8A, 0x00), /* (6) Start Line Setup, Parameter */ U8X8_CA(0xB1, 0x00), /* (7) Page Address Set, Parameter */ U8X8_CA(0x13, 0x00), /* (8) Column Address Set */ U8X8_C(0xAE|1), /* (1) Display ON/OFF */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_s1d15e06_160100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* checking for the flip mode cmd first */ if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } /* call the common procedure, this now leads to the effect, that the flip code is executed again */ /* maybe we should paste the common code here to avoid this */ if ( u8x8_d_s1d15e06_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_s1d15e06_160100_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_s1d15e06_160100_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sbn1661.c ================================================ /* u8x8_d_sbn1661.c SED1520 / SBN1661 122x32 5V LCD Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_sbn1661_init_seq[] = { U8X8_C(0x0c0), /* display start at line 0 */ U8X8_C(0x0a0), /* a0: ADC forward, a1: ADC reverse */ U8X8_C(0x0a4), /* a4: normal driving, a5: power save */ U8X8_C(0x0a9), /* a8: 1/16, a9: 1/32 duty */ //U8X8_C(0x0af), /* display on */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sbn1661_powersave0_seq[] = { U8X8_C(0x0af), /* display on */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sbn1661_powersave1_seq[] = { U8X8_C(0x0ae), /* display off */ U8X8_END() /* end of sequence */ }; struct u8x8_sbn1661_vars { uint8_t *ptr; uint8_t x; uint8_t c; uint8_t arg_int; }; #ifdef NOT_USED static void u8x8_sbn1661_out(u8x8_t *u8x8, struct u8x8_sbn1661_vars *v, void *arg_ptr) { uint8_t cnt; u8x8_cad_SendCmd(u8x8, 0x000 | ((v->x << 3) & 63) ); u8x8_cad_SendCmd(u8x8, 0x0b8 | (((u8x8_tile_t *)arg_ptr)->y_pos)); while( v->arg_int > 0 ) { /* calculate tiles to next boundary (end or chip limit) */ cnt = v->x; cnt += 8; cnt &= 0x0f8; cnt -= v->x; if ( cnt > v->c ) cnt = v->c; /* of course we still could use cnt=1 here... */ /* but setting cnt to 1 is not very efficient */ //cnt = 1; v->x +=cnt; v->c-=cnt; cnt<<=3; u8x8_cad_SendData(u8x8, cnt, v->ptr); /* note: SendData can not handle more than 255 bytes */ v->ptr += cnt; if ( v->c == 0 ) { v->ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; v->c = ((u8x8_tile_t *)arg_ptr)->cnt; v->arg_int--; } if ( ((v->x) & 7) == 0 ) break; } } #endif /* NOT_USED */ static const u8x8_display_info_t u8x8_sbn1661_122x32_display_info = { /* chip_enable_level = */ 0, /* sbn1661: Not used */ /* chip_disable_level = */ 1, /* sbn1661: Not used */ /* post_chip_enable_wait_ns = */ 100, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* */ /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* sbn1661: Not used */ /* sck_clock_hz = */ 4000000UL, /* sbn1661: Not used */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* sbn1661: Not used */ /* data_setup_time_ns = */ 200, /* write_pulse_width_ns = */ 200, /* */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 122, /* pixel_height = */ 32 }; uint8_t u8x8_d_sbn1661_122x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *ptr; //uint8_t x; //uint8_t c; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sbn1661_122x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 0, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_init_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 1, NULL); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 0, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_powersave0_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 1, NULL); } else { u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 0, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendSequence(u8x8, u8x8_d_sbn1661_powersave1_seq); u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 1, NULL); } break; case U8X8_MSG_DISPLAY_DRAW_TILE: ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; // x and c are ignored (u8g2 only) //x = ((u8x8_tile_t *)arg_ptr)->x_pos; //c = ((u8x8_tile_t *)arg_ptr)->cnt; u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 0, NULL); u8x8_cad_SendCmd(u8x8, 0x000 | 0); // column 0 u8x8_cad_SendCmd(u8x8, 0x0b8 | (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendData(u8x8, 61, ptr); /* note: SendData can not handle more than 255 bytes */ u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 0, NULL); ptr += 61; u8x8->cad_cb(u8x8, U8X8_MSG_CAD_START_TRANSFER, 1, NULL); u8x8_cad_SendCmd(u8x8, 0x000 | 0); // column 0 u8x8_cad_SendCmd(u8x8, 0x0b8 | (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendData(u8x8, 61, ptr); /* note: SendData can not handle more than 255 bytes */ u8x8->cad_cb(u8x8, U8X8_MSG_CAD_END_TRANSFER, 1, NULL); break; default: return 0; } return 1; } uint8_t u8x8_d_sed1520_122x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_d_sbn1661_122x32(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sed1330.c ================================================ /* u8x8_d_sed1330.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The device might also work with the RA8835, SED1335 and SED1336 controller. The following devices might be compatible: RA8835 SED1330 SED1335 S1D13700 */ #include "u8x8.h" static const uint8_t u8x8_d_sed1330_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x040, 0x030), /* sys init (0x040) with one arg, where 0x030 is a wild guess */ U8X8_CA(0x059, 0x004), /* send display on command (hex 0x059, see p37 ) */ /* display cmd has one arg: 01010100 should enable all three blocks, but disable the cursor*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sed1330_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x058, 0x000), /* send display off command (hex 0x059, see p37) and turn of all banks */ /* maybe send a sleep in cmd */ //U8X8_C(0x053) /* sleep in: 0x053 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_sed1330_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c, i; uint16_t y; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sed1330_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sed1330_powersave1_seq); break; case U8X8_MSG_DISPLAY_DRAW_TILE: y = (((u8x8_tile_t *)arg_ptr)->y_pos); y*=8; y*= u8x8->display_info->tile_width; u8x8_cad_StartTransfer(u8x8); c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ for( i = 0; i < 8; i++ ) { u8x8_cad_SendCmd(u8x8, 0x046 ); /* CSRW command*/ u8x8_cad_SendArg(u8x8, y&255); /* CSRW low adr byte */ u8x8_cad_SendArg(u8x8, y>>8); /* CSRW high adr byte */ u8x8_cad_SendCmd(u8x8, 0x042 ); /* MWRITE */ u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes, send one line of data */ ptr += u8x8->display_info->tile_width; y += u8x8->display_info->tile_width; } /* sometimes the display switches off... so just sent a display on command */ u8x8_cad_SendCmd(u8x8, 0x059 ); /* display on */ u8x8_cad_SendArg(u8x8, 0x004); /* arg for display on */ u8x8_cad_EndTransfer(u8x8); //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ break; default: return 0; } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_sed1330_240x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 30, /* G242CX Datasheet p5 */ /* pre_chip_disable_wait_ns = */ 10, /* G242CX Datasheet p5 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 120, /* G242CX Datasheet p5 */ /* write_pulse_width_ns = */ 220, /* G242CX Datasheet p5 */ /* tile_width = */ 0x01e, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 128 }; /* 240x128 Seiko G242C */ static const uint8_t u8x8_d_sed1330_240x128_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), /* system init command, see also u8x8_d_sed1330_powersave0_seq */ U8X8_CA(0x040, 0x030), /* sys init (0x040) with one arg, where 0x030 is a wild guess */ /* system init has total 8 parameters, so 7 more are here */ U8X8_A(0x087), /* no idea here... WF (topmost bit) is set to one because it is suggested in the datasheet, lowest 3 bits refer to text mode only */ U8X8_A(0x007), /* FY: height of a char+1, does not matter here (hopefully), because we use graphics mode only */ U8X8_A(0x01d), /* C/R: this could be the number of horizontal bytes - 1 (Value confirmed with app notes p41) */ U8X8_A(0x050), /* TC/R: According to app notes fOSC=6Mhz fFF=70Hz --> TC/R = 74d*/ U8X8_A(0x080), /* L/F: Lines per frame - 1, probably this is the height of the display - 1 (value confirmed with app notes p41)*/ U8X8_A(0x01e), /* Low byte of the virtual screen size. (Value confirmed with app notes p41) */ U8X8_A(0), /* High byte of the virtual screen size, see also section 9.1.2 */ U8X8_C(0x044), /* SCROLL */ U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x080), U8X8_A(0x000), U8X8_A(0x040), U8X8_A(0x080), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), U8X8_CA(0x05a, 0), /* HDOT SCR: Horizontal dotwise scroll... set to 0 */ U8X8_CA(0x05b, 0x0c), /* OVLAY: 2-layer, all graphics, OR between layer 1 and 2 */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; /* RA8835 NHD-240128BZ */ static const uint8_t u8x8_d_rh8835_nhd_240128_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), /* system init command, see also u8x8_d_sed1330_powersave0_seq */ U8X8_CA(0x040, 0x030), /* sys init (0x040) with one arg, where 0x030 is a wild guess */ /* system init has total 8 parameters, so 7 more are here */ U8X8_A(0x087), /* no idea here... WF (topmost bit) is set to one because it is suggested in the datasheet, lowest 3 bits refer to text mode only */ U8X8_A(0x007), /* FY: height of a char+1, does not matter here (hopefully), because we use graphics mode only */ U8X8_A(0x01d), /* C/R: this could be the number of horizontal bytes - 1 (Value confirmed with app notes p41) */ U8X8_A(0x050), /* TC/R: According to app notes fOSC=6Mhz fFF=70Hz --> TC/R = 74d*/ U8X8_A(0x080), /* L/F: Lines per frame - 1, probably this is the height of the display - 1 (value confirmed with app notes p41)*/ U8X8_A(0x01e), /* Low byte of the virtual screen size. (Value confirmed with app notes p41) */ U8X8_A(0), /* High byte of the virtual screen size, see also section 9.1.2 */ U8X8_C(0x044), /* SCROLL */ U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x080), U8X8_A(0x000), U8X8_A(0x040), U8X8_A(0x080), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), //U8X8_CA(0x05a, 0), /* HDOT SCR: Horizontal dotwise scroll... set to 0 */ U8X8_CA(0x05b, 0x0c), /* OVLAY: 2-layer, all graphics, OR between layer 1 and 2 */ //U8X8_CA(0x059, 0x04), /* send display on command (hex 0x059, see p37 ) */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_sed1330_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sed1330_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sed1330_240x128_init_seq); break; default: return u8x8_d_sed1330_common(u8x8, msg, arg_int, arg_ptr); } return 1; } uint8_t u8x8_d_ra8835_nhd_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sed1330_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_rh8835_nhd_240128_init_seq); break; default: return u8x8_d_sed1330_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_sed1330_320x240_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 30, /* G242CX Datasheet p5 */ /* pre_chip_disable_wait_ns = */ 10, /* G242CX Datasheet p5 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 120, /* G242CX Datasheet p5 */ /* write_pulse_width_ns = */ 220, /* G242CX Datasheet p5 */ /* tile_width = */ 40, /* tile_hight = */ 30, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 320, /* pixel_height = */ 240 }; static const uint8_t u8x8_d_sed1330_320x240_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), /* system init command, see also u8x8_d_sed1330_powersave0_seq */ U8X8_CA(0x040, 0x030), /* sys init (0x040) with one arg, where 0x030 is a wild guess */ /* system init has total 8 parameters, so 7 more are here */ U8X8_A(0x087), /* no idea here... WF (topmost bit) is set to one because it is suggested in the datasheet, lowest 3 bits refer to text mode only */ U8X8_A(0x007), /* FY: height of a char+1, does not matter here (hopefully), because we use graphics mode only */ U8X8_A(0x027), /* 40-1 */ /* C/R: this could be the number of horizontal bytes - 1 (Value confirmed with app notes p41) */ U8X8_A(0x039), /* TC/R: According to app notes fOSC=6Mhz fFF=70Hz --> TC/R = 74d*/ U8X8_A(0x0ef), /* L/F: Lines per frame - 1, probably this is the height of the display - 1 (value confirmed with app notes p41)*/ U8X8_A(0x028), /* Low byte of the virtual screen size. (Value confirmed with app notes p41) */ U8X8_A(0), /* High byte of the virtual screen size, see also section 9.1.2 */ U8X8_C(0x044), /* SCROLL */ U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x0ef), U8X8_A(0x0b0), U8X8_A(0x004), U8X8_A(0x0ef), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x000), U8X8_CA(0x05a, 0), /* HDOT SCR: Horizontal dotwise scroll... set to 0 */ U8X8_CA(0x05b, 0x0c), /* OVLAY: 2-layer, all graphics, OR between layer 1 and 2 */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_ra8835_320x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sed1330_320x240_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sed1330_320x240_init_seq); break; default: return u8x8_d_sed1330_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sh1106_64x32.c ================================================ /* u8x8_d_sh1106_64x32.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* issue 568 */ static const uint8_t u8x8_d_sh1106_64x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x01f), /* multiplex ratio, 0.42 OLED */ U8X8_CA(0x0d3, 0x000), /* display offset, 0.42 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.42 OLED */ U8X8_CA(0xad, 0x8b), /* DC-DC ON/OFF Mode Set: Built-in DC-DC is used, Normal Display (POR = 0x8b) */ U8X8_C(0x33), /* set charge pump voltage 0x30 (POR) .. 0x33 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.66 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.66 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.66 OLED */ U8X8_CA(0x081, 0x080), /* [2] set contrast control, 0.42 OLED datasheet: 0xcf */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.42 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x028), /* vcomh deselect level, 0.42 OLED datasheet: 0x00 */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_64x32_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_64x32_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_64x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0d3, 0), /* display offset, 0.42 OLED */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_64x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0d3, 0), /* What is the correct offset in flip 1 mode? --> Issue 547 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_sh1106_64x32_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_64x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /* copied from SSD1306 */ static const u8x8_display_info_t u8x8_sh1106_64x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 8, /* tile_hight = */ 4, /* default_x_offset = */ 32, /* flipmode_x_offset = */ 36, /* pixel_width = */ 64, /* pixel_height = */ 32 }; uint8_t u8x8_d_sh1106_64x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_64x32_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_64x32_init_seq); return 1; } return u8x8_d_sh1106_64x32_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sh1106_72x40.c ================================================ /* u8x8_d_sh1106_72x40.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* WiseChip 0.42 OLED, issue 547 */ static const uint8_t u8x8_d_sh1106_72x40_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x027), /* multiplex ratio, 0.42 OLED */ U8X8_CA(0x0d3, 0x00c), /* display offset, 0.42 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.42 OLED */ U8X8_CA(0xad, 0x8b), /* DC-DC ON/OFF Mode Set: Built-in DC-DC is used, Normal Display (POR = 0x8b) */ U8X8_C(0x33), /* set charge pump voltage 0x30 (POR) .. 0x33 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.66 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.66 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.66 OLED */ U8X8_CA(0x081, 0x080), /* [2] set contrast control, 0.42 OLED datasheet: 0xcf */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.42 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x028), /* vcomh deselect level, 0.42 OLED datasheet: 0x00 */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_72x40_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_72x40_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_72x40_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0d3, 12), /* display offset, 0.42 OLED */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1106_72x40_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0d3, 52), /* What is the correct offset in flip 1 mode? --> Issue 547 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_sh1106_72x40_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_72x40_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /* copied from SSD1306 */ static const u8x8_display_info_t u8x8_sh1106_72x40_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 9, /* tile_hight = */ 5, /* default_x_offset = */ 30, /* flipmode_x_offset = */ 30, /* pixel_width = */ 72, /* pixel_height = */ 40 }; /* WiseChip 0.42" OLED */ uint8_t u8x8_d_sh1106_72x40_wise(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_72x40_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_72x40_init_seq); return 1; } return u8x8_d_sh1106_72x40_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sh1107.c ================================================ /* u8x8_d_sh1107.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* code copyied from SSD1306 */ static const uint8_t u8x8_d_sh1107_64x128_noname_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1107_64x128_noname_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1107_64x128_noname_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1107_64x128_noname_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_sh1107_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1107_64x128_noname_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* sh1107 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; //u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ // set column address u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4)); u8x8_cad_SendCmd(u8x8, 0x000 | ((x & 15))); /* probably wrong, should be SendCmd */ // set page address u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*==================================================*/ /* QG-6428TSWKG01 */ static const uint8_t u8x8_d_sh1107_64x128_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0dc, 0x000), /* start line */ U8X8_CA(0x081, 0x02f), /* [2] set contrast control */ U8X8_C(0x020), /* addressing mode */ // U8X8_C(0x0a1), /* segment remap a0/a1*/ // U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0a8, 0x7f), /* 0x03f) multiplex ratio */ U8X8_CA(0x0d3, 0x060), /* display offset */ U8X8_CA(0x0d5, 0x051), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x035), /* vcomh deselect level */ U8X8_C(0x0b0), /* set page address */ U8X8_CA(0x0da, 0x012), /* set com pins */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_sh1107_64x128_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* sh1107: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* sh1107: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* sh1107: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1107: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 8, /* tile_height = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 64, /* pixel_height = */ 128 }; uint8_t u8x8_d_sh1107_64x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1107_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_64x128_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1107_64x128_noname_display_info); break; default: return 0; } return 1; } /*==================================================*/ /* init sequence from Grove OLED 96x96 */ static const uint8_t u8x8_d_sh1107_seeed_96x96_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x050), /* clock divide ratio (0x00=1) and oscillator frequency (0x5) */ U8X8_C(0x020), /* use page addressing mode */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_CA(0x0dc, 0x000), /* start line */ //U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ //U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x080), /* [2] set contrast control */ U8X8_CA(0x0ad, 0x080), /* */ U8X8_CA(0x0d9, 0x01f), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x027), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 //U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_sh1107_seeed_96x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 100, /* cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 100, /* cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1107: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 12, /* tile_hight = */ 12, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 96, /* pixel_height = */ 96 }; uint8_t u8x8_d_sh1107_seeed_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1107_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_seeed_96x96_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1107_seeed_96x96_display_info); break; default: return 0; } return 1; } /*==================================================*/ /* 128x128 OLED: this display has a very strange x offset */ /* sequence taken over from 64x128 sequence, because it seems to work mostly */ static const uint8_t u8x8_d_sh1107_128x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0dc, 0x000), /* start line */ U8X8_CA(0x081, 0x02f), /* [2] set contrast control */ U8X8_C(0x020), /* use page addressing mode */ // U8X8_C(0x0a1), /* segment remap a0/a1*/ // U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0a8, 0x7f), /* 0x03f multiplex ratio */ //U8X8_CA(0x0d3, 0x060), /* display offset (removed, not in datasheet ) */ U8X8_CA(0x0d5, 0x050), /* clock divide ratio (0x00=1) and oscillator frequency (0x8), changed to 0x051, issue 501 */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x035), /* vcomh deselect level */ U8X8_C(0x0b0), /* set page address */ U8X8_CA(0x0da, 0x012), /* set com pins */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_sh1107_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 100, /* cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 100, /* cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1107: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 96, /* flipmode_x_offset = */ 96, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_sh1107_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1107_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_128x128_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1107_128x128_display_info); break; default: return 0; } return 1; } /*==================================================*/ /* pimoroni_128x128_display */ static const u8x8_display_info_t u8x8_sh1107_pimoroni_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 100, /* cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 100, /* cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1107: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_sh1107_pimoroni_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1107_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_128x128_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1107_pimoroni_128x128_display_info); break; default: return 0; } return 1; } /*==================================================*/ /* Name: SH1107_seeed_128x128 URL: https://www.seeedstudio.com/Grove-OLED-Display-1-12-V2.html Display is there in my lab. Backside PCB label: "OLED Display 1.12 inch v1.0" Tookover code from SSD1327_SEEED_96X96 because none of the other displays did work and at least the 96x96 driver did show something. */ static const u8x8_display_info_t u8x8_seeed_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 100, /* cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 100, /* cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 2, // 400kHz does not work, but 200kHz seems to be ok /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1107: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_sh1107_seeed_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1107_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1107_128x128_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_seeed_128x128_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sh1108.c ================================================ /* u8x8_d_sh1108.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* code copyied from sh1107 SH1108: 160x160 controller from Sino Wealth */ static const uint8_t u8x8_d_sh1108_noname_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1108_noname_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1108_160x160_noname_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1108_160x160_noname_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_sh1108_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1108_64x128_noname_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_64x128_noname_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_noname_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_noname_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_160x160_noname_powersave0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_160x160_noname_powersave1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* sh1108 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; //u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ // set column address u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4)); u8x8_cad_SendCmd(u8x8, 0x000 | ((x & 15))); // set page address u8x8_cad_SendCmd(u8x8, 0x0b0 ); // page cmd is a two byte command u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*==================================================*/ /* issue #619, 160x160 OLED */ static const uint8_t u8x8_d_sh1108_160x160_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x060), /* clock divide ratio and oscillator frequency */ U8X8_CA(0x0a9, 0x003), /* set display resolution, 0=64x160, 1=96x160, 2=128x160, 3=160x160 */ U8X8_C(0x020), /* addressing mode */ U8X8_CA(0x081, 0x01f), /* set contrast control */ U8X8_CA(0x0ad, 0x80), /* DC/DC control 80=Use external Vpp, 89=Use internal DC/DC*/ U8X8_C(0x030), /* set discharge VSL level, 0x030..0x03f */ U8X8_CA(0x0d9, 0x028), /* pre-charge period */ U8X8_CA(0x0db, 0x035), /* vcomh deselect level */ U8X8_CA(0x0dc, 0x035), /* VSEGM Deselect Level */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_sh1108_160x160_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 60, /* pre_chip_disable_wait_ns = */ 120, /* reset_pulse_width_ms = */ 100, /* sh1108: 3 us */ /* post_reset_wait_ms = */ 100, /* sometimes OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 100, /* sh1108: 100ns */ /* sck_pulse_width_ns = */ 100, /* sh1108: 100ns */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* sh1108: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 20, /* tile_height = */ 20, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 160 }; uint8_t u8x8_d_sh1108_160x160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_sh1108_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1108_160x160_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1108_160x160_noname_display_info); break; default: return 0; } return 1; } /*==================================================*/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_sh1122.c ================================================ /* u8x8_d_sh1122.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Copied from sh1122 mostly because of the similar RAM architecture. However: Commands are very different! */ #include "u8x8.h" static const uint8_t u8x8_d_sh1122_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* sh1122: display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1122_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* sh1122: display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for SH1122 (32 Bytes) */ /* static uint8_t u8x8_sh1122_to32_dest_buf[32]; static uint8_t *u8x8_sh1122_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_sh1122_to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_sh1122_to32_dest_buf; } */ static uint8_t u8x8_write_byte_to_16gr_device(u8x8_t *u8x8, uint8_t b) { static uint8_t buf[4]; static uint8_t map[4] = { 0, 0x00f, 0x0f0, 0x0ff }; buf [3] = map[b & 3]; b>>=2; buf [2] = map[b & 3]; b>>=2; buf [1] = map[b & 3]; b>>=2; buf [0] = map[b & 3]; return u8x8_cad_SendData(u8x8, 4, buf); } uint8_t u8x8_d_sh1122_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x; uint8_t y, c, i; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_256x64_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* sh1122 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 2; // only every 4th col can be addressed x += u8x8->x_offset; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ for( i = 0; i < 8; i++ ) { u8x8_cad_SendCmd(u8x8, 0x0b0 ); /* set row address */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendCmd(u8x8, x & 15 ); /* lower 4 bit*/ u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4) ); /* higher 3 bit */ c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ while ( c > 0 ) { u8x8_write_byte_to_16gr_device(u8x8, *ptr); c--; ptr++; } y++; } u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=========================================================*/ static const uint8_t u8x8_d_sh1122_256x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* remap */ U8X8_C(0x0c8), /* remap */ U8X8_C(0x060), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_sh1122_256x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* remap */ U8X8_C(0x0c0), /* remap */ U8X8_C(0x040), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_sh1122_256x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 10, /* sh1122: 10 us */ /* post_reset_wait_ms = */ 20, /* */ /* sda_setup_time_ns = */ 125, /* sh1122: cycle time is 250ns, so use 250/2 */ /* sck_pulse_width_ns = */ 125, /* sh1122: cycle time is 250ns, so use 250/2 */ /* sck_clock_hz = */ 40000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 10, /* write_pulse_width_ns = */ 150, /* sh1122: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 32, /* 256 pixel, so we require 32 bytes for this */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */ /* flipmode_x_offset = */ 0, /* pixel_width = */ 256, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_sh1122_256x64_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_C(0xae), /* display off */ U8X8_C(0x40), /* display start line */ U8X8_C(0x0a0), /* remap */ U8X8_C(0x0c0), /* remap */ U8X8_CA(0x81, 0x80), /* set display contrast */ U8X8_CA(0xa8, 0x3f), /* multiplex ratio 1/64 Duty (0x0F~0x3F) */ U8X8_CA(0xad, 0x81), /* use buildin DC-DC with 0.6 * 500 kHz */ U8X8_CA(0xd5, 0x50), /* set display clock divide ratio (lower 4 bit)/oscillator frequency (upper 4 bit) */ U8X8_CA(0xd3, 0x00), /* display offset, shift mapping ram counter */ U8X8_CA(0xd9, 0x22), /* pre charge (lower 4 bit) and discharge(higher 4 bit) period */ U8X8_CA(0xdb, 0x35), /* VCOM deselect level */ U8X8_CA(0xdc, 0x35), /* Pre Charge output voltage */ U8X8_C(0x030), /* discharge level */ U8X8_DLY(1), /* delay */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_sh1122_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1122_256x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_256x64_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_256x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_sh1122_256x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_sh1122_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1305.c ================================================ /* u8x8_d_ssd1305.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1305_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1305_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1305_128x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0d3, 32), /* display offset to 32 */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1305_128x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0d3, 0), /* display offset to */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1305_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendArg(u8x8, 0x000 | ((x&15))); u8x8_cad_SendArg(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos) ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1305 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /* timing from SSD1306 */ static const u8x8_display_info_t u8x8_ssd1305_128x32_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 2, /* flipmode_x_offset = */ 2, /* pixel_width = */ 128, /* pixel_height = */ 32 }; static const uint8_t u8x8_d_ssd1305_128x32_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 32), /* display offset to 32 */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1305_128x32_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1305_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1305_128x32_noname_display_info); break; default: return 0; } return 1; } /*================================================*/ /* adafruit 128x32 SSD1305 OLED, https://www.adafruit.com/product/2675 */ /* issue 724 */ /* timing from SSD1306 */ static const u8x8_display_info_t u8x8_ssd1305_128x32_adafruit_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 32 }; uint8_t u8x8_d_ssd1305_128x32_adafruit(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1305_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1305_128x32_adafruit_display_info); break; default: return 0; } return 1; } /*================================================*/ /* adafruit SSD1305 OLED */ /* timing from SSD1306 */ static const u8x8_display_info_t u8x8_ssd1305_128x64_adafruit_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 2, /* flipmode_x_offset = */ 2, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_ssd1305_128x64_adafruit_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x0f0), /* clock divide ratio (0x00=1) and oscillator frequency */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x040), /* display offset to 32 */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x032), /* [2] set contrast control */ U8X8_CA(0x082, 0x080), /* set area brightness (reset=0x080) */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1305_128x64_adafruit(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1305_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x64_adafruit_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1305_128x64_adafruit_display_info); break; default: return 0; } return 1; } /*================================================*/ /* Raystar RET012864 OLED, issue https://github.com/olikraus/u8g2/issues/1111 */ static const u8x8_display_info_t u8x8_ssd1305_128x64_raystar_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ssd1305_128x64_raystar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1305_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1305_128x64_adafruit_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1305_128x64_raystar_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_128x32.c ================================================ /* u8x8_d_ssd1306_128x32.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* UG-2832HSWEG02 Datasheet, Section 4.4 */ static const uint8_t u8x8_d_ssd1306_128x32_univision_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x01f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x002), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x08f), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x32_univision_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x32_univision_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x32_univision_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x32_univision_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_128x32_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x32_univision_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x32_univision_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x32_univision_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x32_univision_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x32_univision_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x32_univision_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_128x32_univision_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 32 }; uint8_t u8x8_d_ssd1306_128x32_univision(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x32_univision_display_info); return 1; } return u8x8_d_ssd1306_128x32_generic(u8x8, msg, arg_int, arg_ptr); } /*=============================================*/ /* issue 756 */ #define ADDR_MODE 0 //0:horizontal, 1:vertical, 2:page static const u8x8_display_info_t u8x8_ssd1306_128x32_winstar_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 125, /* flipmode_x_offset = */ 125, /* pixel_width = */ 128, /* pixel_height = */ 32 }; uint8_t u8x8_d_ssd1306_128x32_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x32_winstar_display_info); return 1; } return u8x8_d_ssd1306_128x32_generic(u8x8, msg, arg_int, arg_ptr); } /*=============================================*/ /* visionox 132x32 OLED, https://github.com/olikraus/u8g2/issues/1250 */ static const uint8_t u8x8_d_sh1106_128x32_visionox_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xAE), U8X8_CA(0xD5, 0x91), U8X8_CA(0xA8, 0x1F), U8X8_CA(0xD3, 0x10), U8X8_C(0x40), U8X8_CA(0xAD, 0x8B), U8X8_C(0x33), U8X8_C(0xA1), U8X8_C(0xC8), U8X8_CA(0xDA, 0x12), U8X8_CA(0x81, 0xAF), U8X8_CA(0xD9, 0x1F), U8X8_CA(0xDB, 0x25), U8X8_C(0xA4), U8X8_C(0xA6), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_d_sh1106_128x32_visionox_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 2, /* flipmode_x_offset = */ 2, /* pixel_width = */ 128, /* pixel_height = */ 32 }; uint8_t u8x8_d_sh1106_128x32_visionox(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_d_sh1106_128x32_visionox_display_info); return 1; } if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_128x32_visionox_init_seq); } return u8x8_d_ssd1306_128x32_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_128x64_noname.c ================================================ /* u8x8_d_ssd1306_128x64_noname.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* more or less generic setup of all these small OLEDs */ static const uint8_t u8x8_d_ssd1306_128x64_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, SSD1306 only, should be removed for SH1106 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* this setup maximizes the brightness range, that can be set with setContrast() */ /* Drawback: VCOMH deselect level is set to 0, which das not work so good with all OLEDs, issue #116 */ static const uint8_t u8x8_d_ssd1306_128x64_vcomh0_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0ef), /* [2] set contrast control, */ U8X8_CA(0x0d9, 0x0a1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x000), /* vcomh deselect level 0x000 .. 0x070, low nibble always 0 */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* same as u8x8_d_ssd1306_128x64_noname_init_seq, but 0x0da bit 4 is set to 0 */ /* this will disable the alternative COM configuration */ static const uint8_t u8x8_d_ssd1306_128x64_alt0_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, SSD1306 only, should be removed for SH1106 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x002), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* issue 316: a special sh1106 setup, https://www.mikrocontroller.net/topic/431371?goto=5087807#5087807 */ static const uint8_t u8x8_d_sh1106_128x64_winstar_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xae), // Display OFF/ON: off (POR = 0xae) U8X8_C(0xa4), // Set Entire Display OFF/ON: off (POR = 0xa4) U8X8_CA(0xd5, 0x50), // Divide Ratio/Oscillator FrequencyData Set: divide ratio = 1 (POR = 1), Oscillator Frequency = +/- 0% (POR = +/- 0%) U8X8_CA(0xa8, 0x3f), // Multiplex Ratio Data Set: 64 (POR = 0x3f, 64) U8X8_CA(0xd3, 0x00), // Display OffsetData Set: 0 (POR = 0x00) U8X8_C(0x40), // Set Display Start Line: 0 U8X8_CA(0xad, 0x8b), // DC-DC ON/OFF Mode Set: Built-in DC-DC is used, Normal Display (POR = 0x8b) U8X8_CA(0xd9, 0x22), // Dis-charge/Pre-charge PeriodData Set: pre-charge 2 DCLKs, dis-charge 2 DCLKs (POR = 0x22, pre-charge 2 DCLKs, dis-charge 2 DCLKs) U8X8_CA(0xdb, 0x35), // VCOM Deselect LevelData Set: 0,770V (POR = 0x35, 0,770 V) U8X8_C(0x32), // Set Pump voltage value: 8,0 V (POR = 0x32, 8,0 V) U8X8_CA(0x81, 0xff), // Contrast Data Register Set: 255 (large) (POR = 0x80) U8X8_C(0x0a6), // Set Normal/Reverse Display: normal (POR = 0xa6) U8X8_CA(0x0da, 0x012), // com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x64_noname_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x64_noname_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x64_noname_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x64_noname_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_sh1106_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x64_noname_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendArg(u8x8, 0x000 | ((x&15))); /* probably wrong, should be SendCmd */ u8x8_cad_SendArg(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_128x64_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ssd1306_128x64_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x64_noname_display_info); break; default: return 0; } return 1; } uint8_t u8x8_d_ssd1306_128x64_vcomh0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_vcomh0_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x64_noname_display_info); break; default: return 0; } return 1; } uint8_t u8x8_d_ssd1306_128x64_alt0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_alt0_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x64_noname_display_info); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_sh1106_128x64_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 3, /* active low (clock is high by default), rising edge, this seems to be a difference to the ssd1306 */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 2, /* flipmode_x_offset = */ 2, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_sh1106_128x64_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); /* maybe use a better init sequence */ /* https://www.mikrocontroller.net/topic/431371 */ /* the new sequence is added in the winstar constructor (see below), this is kept untouched */ u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_128x64_noname_display_info); break; default: return 0; } return 1; } uint8_t u8x8_d_sh1106_128x64_vcomh0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x64_vcomh0_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_128x64_noname_display_info); break; default: return 0; } return 1; } uint8_t u8x8_d_sh1106_128x64_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_sh1106_128x64_winstar_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_sh1106_128x64_noname_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_128x80_noname.c ================================================ /* u8x8_d_ssd1306_128x80_noname.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* more or less generic setup of all these small OLEDs */ static const uint8_t u8x8_d_ssd1306_128x80_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xAE), /*display off*/ U8X8_C(0x00), /*set lower column address*/ U8X8_C(0x10), /*set higher column address*/ U8X8_C(0x20), /* Set Memory addressing mode (0x20/0x21) */ U8X8_C(0x81), /*contract control*/ U8X8_C(0x6f), /*b0*/ U8X8_C(0xA0), /*set segment remap*/ U8X8_C(0xC0), /*Com scan direction*/ U8X8_C(0xA4), /*Disable Entire Display On (0xA4/0xA5)*/ U8X8_C(0xA6), /*normal / reverse*/ U8X8_C(0xD5), /*set osc division*/ U8X8_C(0x91), U8X8_C(0xD9), /*set pre-charge period*/ U8X8_C(0x22), U8X8_C(0xdb), /*set vcomh*/ U8X8_C(0x3f), U8X8_C(0xA8), /*multiplex ratio*/ U8X8_C(0x4F), /*duty = 1/80*/ U8X8_C(0xD3), /*set display offset*/ U8X8_C(0x68), /*18*/ U8X8_C(0xdc), /*Set Display Start Line*/ U8X8_C(0x00), U8X8_C(0xad), /*set charge pump enable*/ U8X8_C(0x8a), /*Set DC-DC enable (a=0:disable; a=1:enable) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x80_noname_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x80_noname_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x80_noname_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_128x80_noname_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_sh1106_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch (msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x80_noname_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if (arg_int == 0) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081); u8x8_cad_SendArg(u8x8, arg_int); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *) arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x040); /* set line offset to 0 */ u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4)); u8x8_cad_SendArg(u8x8, 0x000 | ((x & 15))); /* probably wrong, should be SendCmd */ u8x8_cad_SendArg(u8x8, 0x0b0 | (((u8x8_tile_t *) arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *) arg_ptr)->cnt; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c * 8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while (arg_int > 0); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_128x80_noname_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 10, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 80, /* pixel_height = */ 128 }; uint8_t u8x8_d_ssd1306_128x80_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if (u8x8_d_ssd1306_sh1106_generic(u8x8, msg, arg_int, arg_ptr) != 0) return 1; switch (msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_128x80_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_128x80_noname_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_2040x16.c ================================================ /* u8x8_d_ssd1306_2040x16.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* virtual device, issue 1291 */ static const uint8_t u8x8_d_ssd1306_2040x16_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio, 0.71 OLED: changed from 0x2f to 0x3f */ U8X8_CA(0x0d3, 0x000), /* display offset, 0.71 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.71 OLED */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, 0.71 OLED 0x14*/ /// according to the datasheet, 0x00 is NOT page addressing mode, but horizontal addressing mode; /// so it looks like u8g2 expects horizontal addressing (and the inline comment is wrong) while the Winstar example /// actually uses page addressing (which is the reset default) U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.71 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.71 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.71 OLED */ U8X8_CA(0x081, 0x07f), /* [2] set contrast control, 0.71 OLED datasheet: 0x7f */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.71 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x040), /* vcomh deselect level, 0.71 OLED datasheet: 0x40 */ // U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_2040x16_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_2040x16_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_2040x16_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_2040x16_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_2040x16_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch (msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_2040x16_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if (arg_int == 0) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081); u8x8_cad_SendArg(u8x8, arg_int); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *) arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4)); u8x8_cad_SendCmd(u8x8, 0x000 | ((x & 15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *) arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *) arg_ptr)->cnt; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c * 8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while (arg_int > 0); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_2040x16_display_info = { /* chip_enable_level = */0, /* chip_disable_level = */1, /* post_chip_enable_wait_ns = */20, /* pre_chip_disable_wait_ns = */10, /* reset_pulse_width_ms = */100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */4, /* data_setup_time_ns = */40, /* write_pulse_width_ns = */150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */255, /* tile_height = */2, /* default_x_offset = */0, /* flipmode_x_offset = */0, /* pixel_width = */2040, /* pixel_height = */16 }; uint8_t u8x8_d_ssd1306_2040x16(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if (msg == U8X8_MSG_DISPLAY_SETUP_MEMORY) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_2040x16_display_info); return 1; } else if (msg == U8X8_MSG_DISPLAY_INIT) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_2040x16_init_seq); return 1; } return u8x8_d_ssd1306_2040x16_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_48x64.c ================================================ /* u8x8_d_ssd1306_48x64_winstar.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* Winstar 0.71 OLED */ static const uint8_t u8x8_d_ssd1306_48x64_winstar_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio, 0.71 OLED: changed from 0x2f to 0x3f */ U8X8_CA(0x0d3, 0x000), /* display offset, 0.71 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.71 OLED */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, 0.71 OLED 0x14*/ /// according to the datasheet, 0x00 is NOT page addressing mode, but horizontal addressing mode; /// so it looks like u8g2 expects horizontal addressing (and the inline comment is wrong) while the Winstar example /// actually uses page addressing (which is the reset default) U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.71 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.71 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.71 OLED */ U8X8_CA(0x081, 0x07f), /* [2] set contrast control, 0.71 OLED datasheet: 0x7f */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.71 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x040), /* vcomh deselect level, 0.71 OLED datasheet: 0x40 */ // U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_48x64_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_48x64_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_48x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_48x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_48x64_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch (msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_48x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_winstar_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if (arg_int == 0) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081); u8x8_cad_SendArg(u8x8, arg_int); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *) arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x >> 4)); u8x8_cad_SendCmd(u8x8, 0x000 | ((x & 15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *) arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *) arg_ptr)->cnt; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c * 8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while (arg_int > 0); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_48x64_display_info = { /* chip_enable_level = */0, /* chip_disable_level = */1, /* post_chip_enable_wait_ns = */20, /* pre_chip_disable_wait_ns = */10, /* reset_pulse_width_ms = */100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */4, /* data_setup_time_ns = */40, /* write_pulse_width_ns = */150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */6, /* tile_height = */8, /* default_x_offset = */40, /* flipmode_x_offset = */40, /* pixel_width = */48, /* pixel_height = */64 }; /* Winstar 0.71" OLED */ uint8_t u8x8_d_ssd1306_48x64_winstar(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if (msg == U8X8_MSG_DISPLAY_SETUP_MEMORY) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_48x64_display_info); return 1; } else if (msg == U8X8_MSG_DISPLAY_INIT) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_48x64_winstar_init_seq); return 1; } return u8x8_d_ssd1306_48x64_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_64x32.c ================================================ /* u8x8_d_ssd1306_64x32.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1306_64x32_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x32_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_64x32_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_64x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_noname_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*======================================================*/ static const u8x8_display_info_t u8x8_ssd1306_64x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 8, /* tile_hight = */ 4, /* default_x_offset = */ 32, /* flipmode_x_offset = */ 32, /* pixel_width = */ 64, /* pixel_height = */ 32 }; /*======================================================*/ static const uint8_t u8x8_d_ssd1306_64x32_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x02f), /* multiplex ratio: changed from 0x1f to 0x2f */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1 */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control datasheet: 0xcf */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1 */ U8X8_CA(0x0db, 0x000), /* vcomh deselect level */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1306_64x32_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_64x32_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_noname_init_seq); return 1; } return u8x8_d_ssd1306_64x32_generic(u8x8, msg, arg_int, arg_ptr); } /*======================================================*/ static const uint8_t u8x8_d_ssd1306_64x32_1f_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x01f), /* multiplex ratio: changed from 0x1f to 0x2f, 23 Sep 17: changed back to 1f */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1 */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control datasheet: 0xcf */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1 */ U8X8_CA(0x0db, 0x000), /* vcomh deselect level */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1306_64x32_1f(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_64x32_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x32_1f_init_seq); return 1; } return u8x8_d_ssd1306_64x32_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_64x48.c ================================================ /* u8x8_d_ssd1306_64x48.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* EastRising 0.66 OLED */ static const uint8_t u8x8_d_ssd1306_64x48_er_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x02f), /* multiplex ratio, 0.66 OLED: changed from 0x1f to 0x2f */ U8X8_CA(0x0d3, 0x000), /* display offset, 0.66 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.66 OLED */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, 0.66 OLED 0x14*/ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.66 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.66 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.66 OLED */ U8X8_CA(0x081, 0x0cf), /* [2] set contrast control, 0.66 OLED datasheet: 0xcf */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.66 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x000), /* vcomh deselect level, 0.66 OLED datasheet: 0x00 */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x48_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x48_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x48_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_64x48_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_64x48_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_64x48_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_er_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_64x48_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 8, /* tile_hight = */ 6, /* default_x_offset = */ 32, /* flipmode_x_offset = */ 32, /* pixel_width = */ 64, /* pixel_height = */ 48 }; /* East Rising 0.66" OLED */ uint8_t u8x8_d_ssd1306_64x48_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_64x48_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_64x48_er_init_seq); return 1; } return u8x8_d_ssd1306_64x48_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_72x40.c ================================================ /* u8x8_d_ssd1306_72x40.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* EastRising 0.41 OLED https://www.buydisplay.com/default/white-0-42-inch-oled-display-panel-72x40-iic-i2c-serial-spi-ssd1306 command(0xae);//--turn off oled panel command(0xd5);//--set display clock divide ratio/oscillator frequency command(0x80);//--set divide ratio command(0xa8);//--set multiplex ratio command(0x27);//--1/40 duty command(0xd3);//-set display offset command(0x00);//-not offset command(0xad);//--Internal IREF Setting command(0x30);//-- command(0x8d);//--set Charge Pump enable/disable command(0x14);//--set(0x10) disable command(0x40);//--set start line address command(0xa6);//--set normal display command(0xa4);//Disable Entire Display On command(0xa1);//--set segment re-map 128 to 0 command(0xC8);//--Set COM Output Scan Direction 64 to 0 command(0xda);//--set com pins hardware configuration command(0x12); command(0x81);//--set contrast control register command(0xaf); command(0xd9);//--set pre-charge period command(0x22); command(0xdb);//--set vcomh command(0x20); command(0xaf);//--turn on oled panel */ static const uint8_t u8x8_d_ssd1306_72x40_er_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x027), /* multiplex ratio, 0.42 OLED: 0x27*/ U8X8_CA(0x0d3, 0x000), /* display offset, 0.42 OLED */ U8X8_CA(0x0ad, 0x030), /* Internal IREF Setting for the 0.42 OLED, see also issue https://github.com/olikraus/u8g2/issues/1047 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, 0.66 OLED 0x14*/ U8X8_C(0x040), /* set display start line to 0, 0.66 OLED */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_C(0x0a4), /* output ram to display */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.66 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.66 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.66 OLED */ U8X8_CA(0x081, 0x0af), /* [2] set contrast control, 0.42 OLED */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, 0.42 OLED datasheet: 0x22 */ U8X8_CA(0x0db, 0x020), /* vcomh deselect level, 0.42 OLED datasheet: 0x20 */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_72x40_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_72x40_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_72x40_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_72x40_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_72x40_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_72x40_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_er_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_72x40_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 9, /* tile_hight = */ 5, /* default_x_offset = */ 28, /* flipmode_x_offset = */ 28, /* pixel_width = */ 72, /* pixel_height = */ 40 }; /* EastRising 0.41 OLED https://www.buydisplay.com/default/white-0-42-inch-oled-display-panel-72x40-iic-i2c-serial-spi-ssd1306 */ uint8_t u8x8_d_ssd1306_72x40_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_72x40_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_72x40_er_init_seq); return 1; } return u8x8_d_ssd1306_72x40_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1306_96x16.c ================================================ /* u8x8_d_ssd1306_96x16.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* EastRising 0.69 OLED */ static const uint8_t u8x8_d_ssd1306_96x16_er_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x00f), /* multiplex ratio, 0.69 OLED: 0x0f */ U8X8_CA(0x0d3, 0x000), /* display offset, 0.69 OLED */ U8X8_C(0x040), /* set display start line to 0, 0.69 OLED */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, 0.66 OLED 0x14*/ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1, 0.66 OLED */ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse, 0.66 OLED */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x002), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5), 0.66 OLED */ U8X8_CA(0x081, 0x0af), /* [2] set contrast control, 0.69 OLED datasheet: 0xaf */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x0f1, 0.69 OLED datasheet: 0xf1 */ U8X8_CA(0x0db, 0x020), /* vcomh deselect level, 0.69 OLED datasheet: 0x20 */ U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_96x16_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_96x16_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_96x16_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1306_96x16_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1306_96x16_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_96x16_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_er_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1306_96x16_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 12, /* tile_hight = */ 2, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 32, /* pixel_width = */ 96, /* pixel_height = */ 16 }; /* East Rising 0.69" OLED */ uint8_t u8x8_d_ssd1306_96x16_er(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1306_96x16_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x16_er_init_seq); return 1; } return u8x8_d_ssd1306_96x16_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1309.c ================================================ /* u8x8_d_ssd1309.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1309_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1309_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1309_128x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1309_128x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1309_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos) ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1309 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*=================================================*/ /* offset 2 version */ /* timing from SSD1306 */ static const u8x8_display_info_t u8x8_ssd1309_128x64_noname2_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 2, /* flipmode_x_offset = */ 2, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_ssd1309_128x64_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x0a0), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_CA(0x020, 0x002), /* horizontal addressing mode */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x06f), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0d3), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x020), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ //U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1309_128x64_noname2(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1309_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1309_128x64_noname2_display_info); break; default: return 0; } return 1; } /*=================================================*/ /* offset 0 version */ /* timing from SSD1306 */ static const u8x8_display_info_t u8x8_ssd1309_128x64_noname0_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ssd1309_128x64_noname0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1309_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1309_128x64_noname_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1309_128x64_noname0_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1316.c ================================================ /* u8x8_d_ssd1316.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1316: 128x39 OLED https://github.com/olikraus/u8g2/issues/919 */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1316_128x32_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1316_128x32_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1316_128x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1316_128x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /*===================================================*/ static uint8_t u8x8_d_ssd1316_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1316_128x32_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); /* probably wrong, should be SendCmd */ u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*===================================================*/ /* QT-2832TSWUG02/ZJY-2832TSWZG02 */ static const uint8_t u8x8_d_ssd1316_128x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* start line */ U8X8_CA(0x081, 0x045), /* QG-2832TSWZG02 datasheet */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_CA(0x0a8, 0x01f), /* multiplex ratio, duty = 1/32 */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x0db, 0x020), /* vcomh deselect level */ U8X8_CA(0x08d, 0x015), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, */ //U8X8_CA(0x0a2, 0x000), /* set display start line to 0 */ //U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ // Flipmode //U8X8_C(0x0a1), /* segment remap a0/a1*/ //U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_C(0x02e), /* Deactivate scroll */ //U8X8_C(0x0a4), /* output ram to display */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ssd1316_128x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* reset time */ /* post_reset_wait_ms = */ 100, /* reset delay */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 32 }; uint8_t u8x8_d_ssd1316_128x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1316_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1316_128x32_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1316_128x32_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1317.c ================================================ /* u8x8_d_ssd1317.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1317: 128x96 OLED https://github.com/olikraus/u8g2/issues/663 */ #include "u8x8.h" /* more or less generic setup of all these small OLEDs */ static const uint8_t u8x8_d_ssd1317_96x96_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d5, 0x0d1), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_CA(0x0a2, 0x000), /* set display start line to 0 */ U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, SSD1306 only, should be removed for SH1106 */ U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode //U8X8_C(0x0a1), /* segment remap a0/a1*/ //U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x09f), /* [2] set contrast control */ U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ U8X8_CA(0x0db, 0x0ff), /* vcomh deselect level */ // if vcomh is 0, then this will give the biggest range for contrast control issue #98 // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1317_96x96_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1317_96x96_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1317_96x96_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1317_96x96_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1317_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1317_96x96_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1306 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendArg(u8x8, 0x000 | ((x&15))); /* probably wrong, should be SendCmd */ u8x8_cad_SendArg(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1317_96x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 12, /* tile_hight = */ 12, /* default_x_offset = */ 16, /* flipmode_x_offset = */ 16, /* pixel_width = */ 96, /* pixel_height = */ 96 }; uint8_t u8x8_d_ssd1317_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1317_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1317_96x96_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1317_96x96_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1318.c ================================================ /* u8x8_d_ssd1318.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1318: 128x96 OLED https://github.com/olikraus/u8g2/issues/784 */ #include "u8x8.h" /* with internal charge pump (icp) */ static const uint8_t u8x8_d_ssd1318_128x96_icp_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0ad, 0x0d0), /* external or internal IREF selection */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio, 96 duty */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_CA(0x0a2, 0x000), /* start line */ // four possible charge pump setting from as per sec 6.8.2 of the ssd1318 datasheet // uncomment only one of the below for lines // default: // U8X8_CA(0x08d, 0x004, 0x0ac, 0x001), /* Charge pump setting from sec 6.8.2 of SSD1318 datasheet */ // U8X8_CA(0x08d, 0x044, 0x0ac, 0x001), /* Charge pump setting from sec 6.8.2 of SSD1318 datasheet */ // U8X8_CA(0x08d, 0x084, 0x0ac, 0x001), /* Charge pump setting from sec 6.8.2 of SSD1318 datasheet */ U8X8_CAAA(0x08d, 0x0c4, 0x0ac, 0x001), /* Charge pump setting from sec 6.8.2 of SSD1318 datasheet */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x00f), /* value from issue 784, seems to be a little bit low... */ U8X8_CA(0x0d5, 0x0d1), /* clock divide ratio (0x00=1) and oscillator frequency (0x8), value from issue 784 example code */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, value from issue 784 example code */ U8X8_CA(0x0db, 0x030), /* vcomh deselect level, value from issue 784 example code */ //U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ //U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* with external charge pump */ static const uint8_t u8x8_d_ssd1318_128x96_xcp_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0ad, 0x0d0), /* external or internal IREF selection */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio, 96 duty */ U8X8_CA(0x0d3, 0x000), /* display offset */ U8X8_CA(0x0a2, 0x000), /* start line */ // not sure if we have to set something for external charge pump // ... U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ U8X8_CA(0x081, 0x00f), /* value from issue 784, seems to be a little bit low... */ U8X8_CA(0x0d5, 0x0d1), /* clock divide ratio (0x00=1) and oscillator frequency (0x8), value from issue 784 example code */ U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1, value from issue 784 example code */ U8X8_CA(0x0db, 0x030), /* vcomh deselect level, value from issue 784 example code */ //U8X8_CA(0x020, 0x000), /* horizontal addressing mode */ //U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1318_128x96_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1318_128x96_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1318_128x96_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1318_128x96_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_ssd1318_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1318_128x96_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1318 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x040 ); /* set line offset to 0 */ u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendArg(u8x8, 0x000 | ((x&15))); /* probably wrong, should be SendCmd */ u8x8_cad_SendArg(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); /* probably wrong, should be SendCmd */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ /* do { u8x8_cad_SendData(u8x8, 8, ptr); ptr += 8; c--; } while( c > 0 ); */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1318_128x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1306: 3 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* tile_hight = */ 12, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 96 }; uint8_t u8x8_d_ssd1318_128x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1318_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_icp_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1318_128x96_display_info); break; default: return 0; } return 1; } uint8_t u8x8_d_ssd1318_128x96_xcp(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1318_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1318_128x96_xcp_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1318_128x96_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1320.c ================================================ /* u8x8_d_ssd1320.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2020, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. https://github.com/olikraus/u8g2/issues/1351 SSD1320: 160 x 160 dot matrix 16 gray scale Adapted from u8x8_d_ssd1322.c with the command set of the SSD1320 controller "official" procedure is described here: https://github.com/olikraus/u8g2/wiki/internal NOTE: U8x8 does NOT work! */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1320_cs1_160x132_nhd_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* ssd1320: display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1320_cs1_160x132_nhd_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* ssd1320: display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input:32 one tile (8 Bytes; 1 byte per column) output: Tile for SSD1320 (32 Bytes) The origin of the display seems to be in the upper right-hand corner. Therefore compared to SSD1322, the order inside each byte is swapped. */ static uint8_t u8x8_ssd1320_to32_dest_buf[32]; static uint8_t *u8x8_ssd1320_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1320_to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0x0f; if ( b&1 ) v |= 0xf0; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1320_to32_dest_buf; } uint8_t u8x8_d_ssd1320_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x; uint8_t y, c; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_256x64_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x132_nhd_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x132_nhd_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1320 has range from 1 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; y = (((u8x8_tile_t *)arg_ptr)->y_pos); x += u8x8->x_offset; y *= 8; u8x8_cad_SendCmd(u8x8, 0x022 ); /* set row address, moved out of the loop (issue 302) */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0x021 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+3 ); /* end */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1320_8to32(u8x8, ptr)); ptr += 8; x += 4; c--; } while( c > 0 ); //x += 2; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=========================================================*/ /* 160x32 */ static const uint8_t u8x8_d_ssd1320_cs1_160x32_nhd_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1320_cs1_160x32_nhd_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_d_ssd1320_cs1_160x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* ssd1320: 2 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* ssd1320: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* ssd1320: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 10000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215), 10 MHz (issue 301) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 10, /* write_pulse_width_ns = */ 150, /* ssd1320: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 20, /* 160 pixel, so we require 20 bytes for this */ /* tile_hight = */ 4, /* default_x_offset = */ 0, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */ /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 32 }; // initialisation sequence from the Arduino Library // (see https://github.com/sparkfun/SparkFun_SSD1320_OLED_Arduino_Library) static const uint8_t u8x8_d_ssd1320_cs1_160x32_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_C(0xae), /* display off */ U8X8_CA(0xd5, 0xC2), /* set display clock divide ratio/oscillator frequency (set clock as 80 frames/sec) */ U8X8_CA(0xa8, 0x1f), /* multiplex ratio 1/64 Duty (0x0F~0x3F) */ U8X8_CA(0xa2, 0x00), /* display start line */ U8X8_C(0xa0), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS1 */ // U8X8_C(0xa1), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS2 */ U8X8_C(0xc8), /* Set COM Output Scan Direction: normal mode CS1 */ // U8X8_C(0xc0), /* Set COM Output Scan Direction: normal mode CS2 */ U8X8_CA(0xd3, 0x72), /* CS1 */ // U8X8_CA(0xd3, 0x92), /* CS2 */ U8X8_CA(0xda, 0x12), /* Set SEG Pins Hardware Configuration: */ U8X8_CA(0x81, 0x5a), /* contrast */ U8X8_CA(0xd9, 0x22), /* Set Phase Length */ U8X8_CA(0xdb, 0x30), /* VCOMH Deselect Level */ U8X8_CA(0xad, 0x10), /* Internal IREF Enable */ U8X8_CA(0x20, 0x00), /* Memory Addressing Mode: Horizontal */ U8X8_CA(0x8d, 0x01), /* disable internal charge pump 1 */ U8X8_CA(0xac, 0x00), /* disable internal charge pump 2 */ U8X8_C(0xa4), /* display on */ U8X8_C(0xa6), /* normal display */ U8X8_DLY(1), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1320_160x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_d_ssd1320_cs1_160x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x32_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ){ u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x32_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else{ u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x32_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_ssd1320_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=========================================================*/ /* 160x132 (actually 320x132) */ static const uint8_t u8x8_d_ssd1320_cs1_160x132_nhd_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* remap */ U8X8_C(0xc8), /* Set COM Output Scan Direction: normal mode CS1 */ U8X8_CA(0xd3, 0x0e), /* CS1 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1320_cs1_160x132_nhd_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* remap */ U8X8_C(0xc0), /* Set COM Output Scan Direction: normal mode CS1 */ U8X8_CA(0xd3, 0x92), /* CS1 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_d_ssd1320_cs1_160x132_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* ssd1320: 2 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* ssd1320: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* ssd1320: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 10000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215), 10 MHz (issue 301) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 10, /* write_pulse_width_ns = */ 150, /* ssd1320: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 20, /* 160 pixel, so we require 20 bytes for this */ /* tile_hight = */ 17, /* default_x_offset = */ 0, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */ /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 132 }; /* the following sequence will work, but requires contrast to be very high */ static const uint8_t u8x8_d_ssd1320_cs1_160x132_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_C(0xae), /* display off */ U8X8_CA(0xd5, 0xC2), /* set display clock divide ratio/oscillator frequency (set clock as 80 frames/sec) */ U8X8_CA(0xa8, 0x83), /* multiplex ratio 1/132 Duty */ U8X8_CA(0xa2, 0x00), /* display start line */ U8X8_C(0xa0), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS1 */ // U8X8_C(0xa1), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS2 */ U8X8_C(0xc8), /* Set COM Output Scan Direction: normal mode CS1 */ // U8X8_C(0xc0), /* Set COM Output Scan Direction: normal mode CS2 */ U8X8_CA(0xd3, 0x0e), /* CS1 */ // U8X8_CA(0xd3, 0x92), /* CS2 */ U8X8_CA(0xda, 0x12), /* Set SEG Pins Hardware Configuration: */ U8X8_CA(0x81, 0x5a), /* contrast */ U8X8_CA(0xd9, 0x22), /* Set Phase Length */ U8X8_CA(0xdb, 0x30), /* VCOMH Deselect Level */ U8X8_CA(0xad, 0x10), /* Internal IREF Enable */ U8X8_CA(0x20, 0x00), /* Memory Addressing Mode: Horizontal */ U8X8_CA(0x8d, 0x01), /* disable internal charge pump 1 */ U8X8_CA(0xac, 0x00), /* disable internal charge pump 2 */ U8X8_C(0xa4), /* display on */ U8X8_C(0xa6), /* normal display */ U8X8_DLY(1), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* OLED_WR_Byte(0xae,OLED_CMD);//Display OFF OLED_WR_Byte(0xfd,OLED_CMD);//Set Command Lock OLED_WR_Byte(0x12,OLED_CMD); OLED_WR_Byte(0x20,OLED_CMD);//Set Memory Addressing Mode OLED_WR_Byte(0x00,OLED_CMD); OLED_WR_Byte(0x25,OLED_CMD);//Set Portrait Addressing Mode OLED_WR_Byte(0x00,OLED_CMD);//Normal Addressing Mode OLED_WR_Byte(0x81,OLED_CMD);//Set Contrast Control OLED_WR_Byte(0x6b,OLED_CMD); OLED_WR_Byte1(0xa0,OLED_CMD,1);//Set Seg Remap LEFT DISPLAY OLED_WR_Byte1(0xa1,OLED_CMD,2);//Set Seg Remap RIGHT DISPLAY OLED_WR_Byte(0xa2,OLED_CMD);//Set Display Start Line OLED_WR_Byte(0x00,OLED_CMD); OLED_WR_Byte(0xa4,OLED_CMD);//Resume to RAM content display OLED_WR_Byte(0xa6,OLED_CMD);//Set Normal Display OLED_WR_Byte(0xa8,OLED_CMD);//Set MUX Ratio OLED_WR_Byte(0x83,OLED_CMD);//1/132 duty OLED_WR_Byte(0xad,OLED_CMD);//Select external or internal IREF OLED_WR_Byte(0x10,OLED_CMD); OLED_WR_Byte(0xbc,OLED_CMD);//Set Pre-charge voltage OLED_WR_Byte(0x1e,OLED_CMD);// OLED_WR_Byte(0xbf,OLED_CMD);//Linear LUT OLED_WR_Byte1(0xc8,OLED_CMD,1);//Set COM Output Scan Direction LEFT DISPLAY OLED_WR_Byte1(0xc0,OLED_CMD,2);//Set COM Output Scan Direction RIGHT DISPLAY OLED_WR_Byte(0xd3,OLED_CMD);//Set Display Offset OLED_WR_Byte1(0x0e,OLED_CMD,1); //LEFT DISPLAY OLED_WR_Byte1(0x92,OLED_CMD,2); // RIGHT DISPLAY OLED_WR_Byte(0xd5,OLED_CMD);//Set Display Clock Divide Ratio/Oscillator Frequency OLED_WR_Byte(0xc2,OLED_CMD);//85Hz OLED_WR_Byte(0xd9,OLED_CMD);//Set Pre-charge Period OLED_WR_Byte(0x72,OLED_CMD);// OLED_WR_Byte(0xda,OLED_CMD);//Set SEG Pins Hardware Configuration OLED_WR_Byte(0x32,OLED_CMD); OLED_WR_Byte(0xbd,OLED_CMD);//Set VP OLED_WR_Byte(0x03,OLED_CMD); OLED_WR_Byte(0xdb,OLED_CMD);//Set VCOMH OLED_WR_Byte(0x30,OLED_CMD); OLED_WR_Byte(0xaf,OLED_CMD);//Display on */ static const uint8_t u8x8_d_ssd1320_160x132_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_C(0xae), /* display off */ U8X8_CA(0xd5, 0xC2), /* set display clock divide ratio/oscillator frequency (set clock as 80 frames/sec) */ U8X8_CA(0xa8, 0x83), /* multiplex ratio 1/132 Duty */ U8X8_CA(0xa2, 0x00), /* display start line */ U8X8_C(0xa0), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS1 */ // U8X8_C(0xa1), /* Set Segment Re-Map: column address 0 mapped to SEG0 CS2 */ U8X8_C(0xc8), /* Set COM Output Scan Direction: normal mode CS1 */ // U8X8_C(0xc0), /* Set COM Output Scan Direction: normal mode CS2 */ U8X8_CA(0xad, 0x10), /* select Iref: 0x00 external (reset default), 0x10 internal */ U8X8_CA(0xbc, 0x1e), /* pre-charge voltage level 0x00..0x1f, reset default: 0x1e */ U8X8_C(0xbf), /* select linear LUT */ U8X8_CA(0xd5, 0xc2), /* Bit 0..3: clock ratio 1, 2, 4, 8, ...256, reset=0x1, Bit 4..7: F_osc 0..15 */ U8X8_CA(0xd9, 0x72), /* Set Phase 1&2 Length, Bit 0..3: Phase 1, Bit 4..7: Phase 2, reset default 0x72 */ U8X8_CA(0xbd, 0x03), /* from the vendor init sequence */ U8X8_CA(0xdb, 0x30), /* VCOMH Deselect Level */ U8X8_CA(0xd3, 0x0e), /* CS1 */ // U8X8_CA(0xd3, 0x92), /* CS2 */ U8X8_CA(0xda, 0x12), /* Set SEG Pins Hardware Configuration: */ U8X8_CA(0x81, 0x6b), /* contrast */ //U8X8_CA(0xd9, 0x22), /* Set Phase Length */ //U8X8_CA(0xdb, 0x30), /* VCOMH Deselect Level */ //U8X8_CA(0xad, 0x10), /* Internal IREF Enable */ U8X8_CA(0x20, 0x00), /* Memory Addressing Mode: Horizontal */ //U8X8_CA(0x8d, 0x01), /* unknown in SSD1320 datasheet, disable internal charge pump 1 */ //U8X8_CA(0xac, 0x00), /* unknown in SSD1320 datasheet, disable internal charge pump 2 */ U8X8_C(0xa4), /* display RAM on */ U8X8_C(0xa6), /* normal display */ U8X8_DLY(1), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1320_160x132(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_d_ssd1320_cs1_160x132_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); // u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x132_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_160x132_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ){ u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x132_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else{ u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1320_cs1_160x132_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_ssd1320_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1322.c ================================================ /* u8x8_d_ssd1322.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1322: 480 x 128 dot matrix 16 gray scale */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1322_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* ssd1322: display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1322_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* ssd1322: display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* interpret b as a monochrome bit pattern, write value 15 for high bit and value 0 for a low bit */ /* topbit (msb) is sent last */ /* example: b = 0x083 will send 0xff, 0x00, 0x00, 0xf0 */ /* 4 Jan 2017: I think this procedure not required any more. Delete? */ /* static uint8_t u8x8_write_byte_to_16gr_device(u8x8_t *u8x8, uint8_t b) { static uint8_t buf[4]; static uint8_t map[4] = { 0, 0x00f, 0x0f0, 0x0ff }; buf [3] = map[b & 3]; b>>=2; buf [2] = map[b & 3]; b>>=2; buf [1] = map[b & 3]; b>>=2; buf [0] = map[b & 3]; return u8x8_cad_SendData(u8x8, 4, buf); } */ /* input: one tile (8 Bytes) output: Tile for SSD1325 (32 Bytes) */ static uint8_t u8x8_ssd1322_to32_dest_buf[32]; static uint8_t *u8x8_ssd1322_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1322_to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1322_to32_dest_buf; } static uint8_t *u8x8_ssd1322_4to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1322_to32_dest_buf; dest += j; a =*ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v = 0xff; *dest = v; dest+=4; a >>= 1; } } return u8x8_ssd1322_to32_dest_buf; } uint8_t u8x8_d_ssd1322_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x; uint8_t y, c; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_256x64_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0C1 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1322 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 2; // only every 4th col can be addressed x += u8x8->x_offset; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address, moved out of the loop (issue 302) */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+1 ); /* end */ u8x8_cad_SendCmd(u8x8, 0x05c ); /* write to ram */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1322_8to32(u8x8, ptr)); ptr += 8; x += 2; c--; } while( c > 0 ); //x += 2; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=========================================================*/ static const uint8_t u8x8_d_ssd1322_256x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAA(0x0a0, 0x006, 0x011), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1322_256x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAA(0x0a0, 0x014, 0x011), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ssd1322_256x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1322: 2 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1322: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1322: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 10000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215), 10 MHz (issue 301) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 10, /* write_pulse_width_ns = */ 150, /* SSD1322: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 32, /* 256 pixel, so we require 32 bytes for this */ /* tile_hight = */ 8, /* default_x_offset = */ 0x01c, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */ /* flipmode_x_offset = */ 0x01c, /* pixel_width = */ 256, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_ssd1322_256x64_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_CA(0xfd, 0x12), /* unlock */ U8X8_C(0xae), /* display off */ U8X8_CA(0xb3, 0x91), /* set display clock divide ratio/oscillator frequency (set clock as 80 frames/sec) */ U8X8_CA(0xca, 0x3f), /* multiplex ratio 1/64 Duty (0x0F~0x3F) */ U8X8_CA(0xa2, 0x00), /* display offset, shift mapping ram counter */ U8X8_CA(0xa1, 0x00), /* display start line */ //U8X8_CAA(0xa0, 0x14, 0x11), /* Set Re-Map / Dual COM Line Mode */ U8X8_CAA(0xa0, 0x06, 0x011), /* Set Re-Map / Dual COM Line Mode */ U8X8_CA(0xab, 0x01), /* Enable Internal VDD Regulator */ U8X8_CAA(0xb4, 0xa0, 0x005|0x0fd), /* Display Enhancement A */ U8X8_CA(0xc1, 0x9f), /* contrast */ U8X8_CA(0xc7, 0x0f), /* Set Scale Factor of Segment Output Current Control */ U8X8_C(0xb9), /* linear grayscale */ U8X8_CA(0xb1, 0xe2), /* Phase 1 (Reset) & Phase 2 (Pre-Charge) Period Adjustment */ U8X8_CAA(0xd1, 0x082|0x020, 0x020), /* Display Enhancement B */ U8X8_CA(0xbb, 0x1f), /* precharge voltage */ U8X8_CA(0xb6, 0x08), /* precharge period */ U8X8_CA(0xbe, 0x07), /* vcomh */ U8X8_C(0xa6), /* normal display */ U8X8_C(0xa9), /* exit partial display */ U8X8_DLY(1), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1322_nhd_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1322_256x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_256x64_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_256x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_256x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_ssd1322_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=========================================================*/ /* NHD-2.7-12864WDW3-M http://www.newhavendisplay.com/nhd2712864wdw3m-p-9546.html http://www.newhavendisplay.com/specs/NHD-2.7-12864WDW3-M.pdf It looks like that only every second pixel is connected to the OLED */ uint8_t u8x8_d_ssd1322_common2(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x; uint8_t y, c; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_256x64_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0C1 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1322 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 2; // only every 4th col can be addressed x *= 2; // only every second pixel is used in the 128x64 NHD OLED x += u8x8->x_offset; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address, moved out of the loop (issue 302) */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+1 ); /* end */ u8x8_cad_SendCmd(u8x8, 0x05c ); /* write to ram */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1322_4to32(u8x8, ptr)); ptr += 4; x += 2; u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+1 ); /* end */ u8x8_cad_SendCmd(u8x8, 0x05c ); /* write to ram */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1322_4to32(u8x8, ptr)); ptr += 4; x += 2; c--; } while( c > 0 ); //x += 2; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const uint8_t u8x8_d_ssd1322_128x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAA(0x0a0, 0x016, 0x011), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1322_128x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAA(0x0a0, 0x004, 0x011), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ssd1322_128x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* SSD1322: 2 us */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* sda_setup_time_ns = */ 50, /* SSD1322: 15ns, but cycle time is 100ns, so use 100/2 */ /* sck_pulse_width_ns = */ 50, /* SSD1322: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 10000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215), 10 MHz (issue 301) */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 10, /* write_pulse_width_ns = */ 150, /* SSD1322: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16, /* 128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 28, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */ /* flipmode_x_offset = */ 28, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_ssd1322_128x64_init_seq[] = { U8X8_DLY(1), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(1), U8X8_CA(0xfd, 0x12), /* unlock */ U8X8_C(0xae), /* display off */ U8X8_CA(0xb3, 0x91), /* set display clock divide ratio/oscillator frequency (set clock as 80 frames/sec) */ U8X8_CA(0xca, 0x3f), /* multiplex ratio 1/64 Duty (0x0F~0x3F) */ U8X8_CA(0xa2, 0x00), /* display offset, shift mapping ram counter */ U8X8_CA(0xa1, 0x00), /* display start line */ U8X8_CA(0xab, 0x01), /* Enable Internal VDD Regulator */ //U8X8_CAA(0xa0, 0x14, 0x11), /* Set Re-Map / Dual COM Line Mode */ //U8X8_CAA(0xa0, 0x06, 0x011), /* Set Re-Map / Dual COM Line Mode */ U8X8_CAA(0xa0, 0x16, 0x011), /* Set Re-Map / Dual COM Line Mode (NHD-2.7-12864WDW3-M datasheet) */ U8X8_CA(0xc7, 0x0f), /* Set Scale Factor of Segment Output Current Control */ U8X8_CA(0xc1, 0x9f), /* contrast */ //U8X8_CA(0xb1, 0xe2), /* Phase 1 (Reset) & Phase 2 (Pre-Charge) Period Adjustment */ U8X8_CA(0xb1, 0xf2), /* Phase 1 (Reset) & Phase 2 (Pre-Charge) Period Adjustment (NHD-2.7-12864WDW3-M datasheet) */ U8X8_CA(0xbb, 0x1f), /* precharge voltage */ //U8X8_CAA(0xb4, 0xa0, 0x005|0x0fd), /* Display Enhancement A */ U8X8_CAA(0xb4, 0xa0, 0x0fd), /* Display Enhancement A (NHD-2.7-12864WDW3-M datasheet) */ U8X8_CA(0xbe, 0x04), /* vcomh (NHD-2.7-12864WDW3-M datasheet) */ U8X8_C(0xb9), /* linear grayscale */ //U8X8_CAA(0xd1, 0x082|0x020, 0x020), /* Display Enhancement B */ //U8X8_CA(0xb6, 0x08), /* precharge period */ U8X8_C(0xa6), /* normal display */ U8X8_C(0xa9), /* exit partial display */ U8X8_DLY(1), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1322_nhd_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1322_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_128x64_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_128x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1322_128x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_ssd1322_common2(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1325.c ================================================ /* u8x8_d_ssd1325.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1325: 128 x 80, 16 Gray Scale Dot Matrix SSD0323: Identical to SSD1325, issue 720 */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1325_128x64_nhd_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1325_128x64_nhd_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1325_128x64_nhd_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x052), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1325_128x64_nhd_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x041), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for SSD1325 (32 Bytes) */ static uint8_t u8x8_ssd1325_8to32_dest_buf[32]; static uint8_t *u8x8_ssd1325_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1325_8to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1325_8to32_dest_buf; } /*===================================================================*/ static uint8_t u8x8_d_ssd1325_128x64_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1325_128x64_nhd_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_powersave1_seq); break; /* handled by the calling function case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; */ #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1325 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 4; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; y += u8x8->x_offset; /* x_offset is used as y offset for the SSD1325 */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { if ( ptr[0] | ptr[1] | ptr[2] | ptr[3] | ptr[4] | ptr[5] | ptr[6] | ptr[7] ) { /* draw the tile if pattern is not zero for all bytes */ u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+3 ); /* end */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1325_8to32(u8x8, ptr)); } else { /* tile is empty, use the graphics acceleration command */ u8x8_cad_SendCmd(u8x8, 0x024 ); // draw rectangle u8x8_cad_SendArg(u8x8, x ); u8x8_cad_SendArg(u8x8, y ); u8x8_cad_SendArg(u8x8, x+3 ); u8x8_cad_SendArg(u8x8, y+7 ); u8x8_cad_SendArg(u8x8, 0 ); // clear } ptr += 8; x += 4; c--; } while( c > 0 ); //x += 4; arg_int--; } while( arg_int > 0 ); u8x8_cad_SendCmd(u8x8, 0xe3); // no-op needs to be sent after last byte before cs is toggled. u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*===================================================================*/ /* http://www.newhavendisplay.com/app_notes/OLED_2_7_12864.txt */ static const uint8_t u8x8_d_ssd1325_128x64_nhd_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a1, 0x000), /* display start line */ U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ U8X8_CA(0x0a0, 0x052), /* remap configuration, horizontal address increment (bit 2 = 0), enable nibble remap (upper nibble is left, bit 1 = 1) */ U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b8), /* set gray scale table */ U8X8_A(0x001), /* */ U8X8_A(0x011), /* */ U8X8_A(0x022), /* */ U8X8_A(0x032), /* */ U8X8_A(0x043), /* */ U8X8_A(0x054), /* */ U8X8_A(0x065), /* */ U8X8_A(0x076), /* */ U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128, Newhaven: 0x040 */ U8X8_CA(0x0b2, 0x051), /* frame frequency (row period) */ U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0b4, 0x002), /* set pre-charge compensation level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0b0, 0x028), /* enable pre-charge compensation (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0bf, 0x002|0x00d), /* VSL voltage level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_CA(0x023, 0x003), /* graphics accelleration: fill pixel */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_nhd_ssd1325_128x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* SSD1325 */ /* sck_pulse_width_ns = */ 100, /* SSD1325 */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* SSD1325 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* x_offset is used as y offset for the SSD1325 */ /* flipmode_x_offset = */ 8, /* x_offset is used as y offset for the SSD1325 */ /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ssd1325_nhd_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_nhd_ssd1325_128x64_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1325_128x64_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return u8x8_d_ssd1325_128x64_generic(u8x8, msg, arg_int, arg_ptr); } /*===================================================================*/ /* OSRAM Pictiva 128x64 OLED */ /* https://github.com/olikraus/u8g2/issues/720 */ static const uint8_t u8x8_d_ssd0323_os128064_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ U8X8_CA(0x0a2, 0x040), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a1, 0x000), /* display start line */ U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ U8X8_CA(0x0a0, 0x052), /* remap configuration, horizontal address increment (bit 2 = 0), enable nibble remap (upper nibble is left, bit 1 = 1) */ U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b8), /* set gray scale table */ U8X8_A(0x001), /* */ U8X8_A(0x011), /* */ U8X8_A(0x022), /* */ U8X8_A(0x032), /* */ U8X8_A(0x043), /* */ U8X8_A(0x054), /* */ U8X8_A(0x065), /* */ U8X8_A(0x076), /* */ U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128, Newhaven: 0x040 */ U8X8_CA(0x0b2, 0x051), /* frame frequency (row period) */ U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0b4, 0x002), /* set pre-charge compensation level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0b0, 0x028), /* enable pre-charge compensation (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0bf, 0x002|0x00d), /* VSL voltage level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_CA(0x023, 0x003), /* graphics accelleration: fill pixel */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd0323_os128064_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x052), /* remap */ U8X8_CA(0x0a2, 0x040), /* display offset, shift mapping ram counter */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd0323_os128064_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x041), /* remap */ U8X8_CA(0x0a2, 0x050), /* display offset, shift mapping ram counter */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_ssd0323_os128064_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* SSD1325 */ /* sck_pulse_width_ns = */ 100, /* SSD1325 */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* SSD1325 */ /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* x_offset is used as y offset for the SSD1325 */ /* flipmode_x_offset = */ 0, /* x_offset is used as y offset for the SSD1325 */ /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_ssd0323_os128064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd0323_os128064_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd0323_os128064_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd0323_os128064_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd0323_os128064_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return u8x8_d_ssd1325_128x64_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1326.c ================================================ /* u8x8_d_ssd1326.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* ER OLED */ static const uint8_t u8x8_d_ssd1326_er_256x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock (not required, this is default by reset) */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0a8, 0x01f), /* multiplex ratio: 0x03f * 1/64 duty - changed by CREESOO, acc. to datasheet, 100317*/ U8X8_CA(0x0a1, 0x000), /* display start line */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ /* a0 command: 0x0a0 ***abcde a: 1: mono mode b: 0: horizontal (1: vertical) address increment c: 1: enable bit remap d: 1: COM remap e: 1: Column remap */ U8X8_CA(0x0a0, 0x006), /* remap configuration, see above */ U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b7), /* set default gray scale table */ U8X8_CA(0x081, 0x027), /* contrast, brightness, 0..128 */ U8X8_CA(0x0b1, 0x071), /* phase length */ //U8X8_CA(0x0b2, 0x051), /* frame frequency (row period) */ U8X8_CA(0x0b3, 0x0f0), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ //U8X8_CA(0x0b4, 0x002), /* set pre-charge compensation level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ //U8X8_CA(0x0b0, 0x028), /* enable pre-charge compensation (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CAA(0x0bb, 0x035, 0x0ff), /* set precharge */ U8X8_CA(0x0bc, 0x01f), /* pre-charge voltage level */ U8X8_CA(0x0be, 0x00f), /* VCOMH voltage */ U8X8_CA(0x0bf, 0x002|0x00d), /* VSL voltage level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_C(0x0a4), /* normal display mode */ //U8X8_CA(0x023, 0x003), /* graphics accelleration: fill pixel */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1326_256x32_nhd_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1326_256x32_nhd_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1326_256x32_nhd_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x006), /* remap 00110 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1326_256x32_nhd_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_CA(0x0a0, 0x005), /* remap 00101 */ U8X8_CA(0x0a0, 0x001), /* remap 00001 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for ssd1326 (32 Bytes) */ static uint8_t u8x8_ssd1326_8to32_dest_buf[32]; static uint8_t *u8x8_ssd1326_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1326_8to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1326_8to32_dest_buf; } static uint8_t u8x8_d_ssd1326_256x32_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1326_256x32_nhd_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1326_er_256x32_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1326_256x32_nhd_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1326_256x32_nhd_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1326_256x32_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1326_256x32_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1326 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 4; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; y += u8x8->x_offset; /* x_offset is used as y offset for the ssd1326 */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+3 ); /* end */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); u8x8_cad_SendData(u8x8, 32, u8x8_ssd1326_8to32(u8x8, ptr)); ptr += 8; x += 4; c--; } while( c > 0 ); //x += 4; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1326_256x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 15, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* ssd1326 */ /* sck_pulse_width_ns = */ 100, /* ssd1326 */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* ssd1326 */ /* tile_width = */ 32, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* flipmode_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* pixel_width = */ 256, /* pixel_height = */ 32 }; uint8_t u8x8_d_ssd1326_er_256x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1326_256x32_display_info); return 1; } return u8x8_d_ssd1326_256x32_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1327.c ================================================ /* u8x8_d_ssd1327.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1327_96x96_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_96x96_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_seeed_96x96_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x020), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_seeed_96x96_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x060), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_winstar_96x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_winstar_96x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_CA(0x0a2, 0x040), /* display offset, shift mapping ram counter */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for ssd1327 (32 Bytes) */ static uint8_t u8x8_ssd1327_8to32_dest_buf[32]; static uint8_t *u8x8_ssd1327_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1327_8to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1327_8to32_dest_buf; } static uint8_t u8x8_d_ssd1327_96x96_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_96x96_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_96x96_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_96x96_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_96x96_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1327 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 4; x+=u8x8->x_offset/2; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address, moved out of the loop (issue 302) */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+3 ); /* end */ u8x8_cad_SendData(u8x8, 32, u8x8_ssd1327_8to32(u8x8, ptr)); ptr += 8; x += 4; c--; } while( c > 0 ); //x += 4; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=============================================*/ /* Winstar WEA009664B 96x64 OLED Display, 1.1 inch OLED https://www.winstar.com.tw/products/oled-module/graphic-oled-display/96x64-oled.html https://github.com/olikraus/u8g2/issues/1050 */ static const u8x8_display_info_t u8x8_ssd1327_winstar_96x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* */ /* sck_pulse_width_ns = */ 100, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* use 1 instead of 4, because the SSD1327 seems to be very slow */ /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* tile_width = */ 12, /* tile_hight = */ 8, /* default_x_offset = */ 16, /* changed to 16, issue 1050 */ /* flipmode_x_offset = */ 16, /* changed to 16, issue 1050 */ /* pixel_width = */ 96, /* pixel_height = */ 64 }; /* Write_Cmd(0xAE); //Set Display Off OK Write_Cmd(0x81); //Contrast Level OK Write_Cmd(0xdF); // VALUE WRONG???? Write_Cmd(0xD9); //Pre-charge Period Write_Cmd(0x00); Write_Cmd(0xA0); //Set Re-map OK Write_Cmd(0x42); //Default Setting OK Write_Cmd(0xA1); //Set Display Start Line OK Write_Cmd(0x00); OK Write_Cmd(0xA2); //Set Display Offset OK Write_Cmd(0x00); OK Write_Cmd(0xA4); //Set Display Mode OK Write_Cmd(0xA8); //Set Multiplex Ratio OK Write_Cmd(0x63); //Multiplex OK Write_Cmd(0xAB); //Set Function SelectionA OK Write_Cmd(0x01); OK Write_Cmd(0xB1); //Set Phase Length OK Write_Cmd(0x47); OK Write_Cmd(0xB3); //Set Display Clock Divide Ratio/Oscillator Frequency OK Write_Cmd(0x00); OK Write_Cmd(0xBC); //Set Prechange Voltage OK Write_Cmd(0x07); OK Write_Cmd(0xBE); //Set VCOMH Voltage OK Write_Cmd(0x07); OK Write_Cmd(0xB6); //Set Second Pre-charge period OK Write_Cmd(0x04); OK Write_Cmd(0xD5); //Set Function selection B OK Write_Cmd(0x62); OK Write_Cmd(0xAF); //Set Display On */ static const uint8_t u8x8_d_ssd1327_winstar_96x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock display, usually not required because the display is unlocked after reset */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0d9, 0x000), /* Pre-charge Period ??? */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_CA(0x0a1, 0x000), /* display start line */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a8, 0x063), /* multiplex ratio: 63* 1/64 duty */ /* changed to hex, issue 1050 */ U8X8_CA(0x0ab, 0x001), /* Enable internal VDD regulator (RESET) */ U8X8_CA(0x081, 0x053), /* contrast, brightness, 0..128 */ U8X8_CA(0x0b1, 0x047), /* phase length */ //U8X8_CA(0x0b3, 0x001), /* set display clock divide ratio/oscillator frequency */ U8X8_CA(0x0b3, 0x000), /* set display clock divide ratio/oscillator frequency */ U8X8_C(0x0b9), /* use linear lookup table */ U8X8_CA(0x0bc, 0x007), /* pre-charge voltage level */ U8X8_CA(0x0be, 0x007), /* VCOMH voltage */ U8X8_CA(0x0b6, 0x004), /* second precharge */ U8X8_CA(0x0d5, 0x062), /* enable second precharge, internal vsl (bit0 = 0) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_ws_96x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_winstar_96x64_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_winstar_96x64_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_winstar_96x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_winstar_96x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* Seeedstudio Grove OLED 96x96 */ static const u8x8_display_info_t u8x8_ssd1327_96x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* */ /* sck_pulse_width_ns = */ 100, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* use 1 instead of 4, because the SSD1327 seems to be very slow */ /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* tile_width = */ 12, /* tile_hight = */ 12, /* default_x_offset = */ 16, /* flipmode_x_offset = */ 16, /* pixel_width = */ 96, /* pixel_height = */ 96 }; /* https://github.com/SeeedDocument/Grove_OLED_1.12/raw/master/resources/LY120-096096.pdf */ /* http://www.seeedstudio.com/wiki/index.php?title=Twig_-_OLED_96x96 */ /* values from u8glib */ /* Re-map setting in Graphic Display Data RAM, command 0x0a0 Bit 0: Column Address Re-map Bit 1: Nibble Re-map Bit 2: Horizontal/Vertical Address Increment Bit 3: Not used, must be 0 Bit 4: COM Re-map Bit 5: Not used, must be 0 Bit 6: COM Split Odd Even Bit 7: Not used, must be 0 */ static const uint8_t u8x8_d_ssd1327_96x96_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock display, usually not required because the display is unlocked after reset */ U8X8_C(0x0ae), /* display off */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio: 0x05f * 1/64 duty */ U8X8_CA(0x0a1, 0x000), /* display start line */ //U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a2, 0x020), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_CA(0x0ab, 0x001), /* Enable internal VDD regulator (RESET) */ //U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128 */ U8X8_CA(0x081, 0x053), /* contrast, brightness, 0..128 */ //U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0b1, 0x051), /* phase length */ //U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0b3, 0x001), /* set display clock divide ratio/oscillator frequency */ //? U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ //? U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b9), /* use linear lookup table */ //U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0bc, 0x008), /* pre-charge voltage level */ //U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0be, 0x007), /* VCOMH voltage */ U8X8_CA(0x0b6, 0x001), /* second precharge */ U8X8_CA(0x0d5, 0x062), /* enable second precharge, internal vsl (bit0 = 0) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_seeed_96x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_96x96_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_96x96_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_seeed_96x96_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_seeed_96x96_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* EA W128128 round OLED 128x128 */ /* issue #641 */ /* https://www.lcd-module.de/fileadmin/eng/pdf/grafik/W128128-XR.pdf */ static const u8x8_display_info_t u8x8_ssd1327_ea_w128128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* */ /* sck_pulse_width_ns = */ 100, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* use 1 instead of 4, because the SSD1327 seems to be very slow */ /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; /* this is a copy of the init sequence for the seeed 96x96 oled */ static const uint8_t u8x8_d_ssd1327_ea_w128128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock display, usually not required because the display is unlocked after reset */ U8X8_C(0x0ae), /* display off */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio: 0x05f * 1/64 duty */ U8X8_CA(0x0a1, 0x000), /* display start line */ //U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a2, 0x010), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_CA(0x0ab, 0x001), /* Enable internal VDD regulator (RESET) */ //U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128 */ U8X8_CA(0x081, 0x053), /* contrast, brightness, 0..128 */ //U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0b1, 0x051), /* phase length */ //U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0b3, 0x001), /* set display clock divide ratio/oscillator frequency */ //? U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ //? U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b9), /* use linear lookup table */ //U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0bc, 0x008), /* pre-charge voltage level */ //U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0be, 0x007), /* VCOMH voltage */ U8X8_CA(0x0b6, 0x001), /* second precharge */ U8X8_CA(0x0d5, 0x062), /* enable second precharge, internal vsl (bit0 = 0) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_ea_w128128_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_ea_w128128_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_ea_w128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_ea_w128128_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* MIDAS MCOT128128C1V-YM 128x128 Module */ static const u8x8_display_info_t u8x8_ssd1327_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* */ /* sck_pulse_width_ns = */ 100, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* use 1 instead of 4, because the SSD1327 seems to be very slow, Update 9 Aug 2019: The OLED from aliexpress supports 400kHz */ /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; /* https://github.com/SeeedDocument/Grove_OLED_1.12/raw/master/resources/LY120-096096.pdf */ /* http://www.seeedstudio.com/wiki/index.php?title=Twig_-_OLED_96x96 */ /* values from u8glib */ /* Re-map setting in Graphic Display Data RAM, command 0x0a0 Bit 0: Column Address Re-map Bit 1: Nibble Re-map Bit 2: Horizontal/Vertical Address Increment Bit 3: Not used, must be 0 Bit 4: COM Re-map Bit 5: Not used, must be 0 Bit 6: COM Split Odd Even Bit 7: Not used, must be 0 */ static const uint8_t u8x8_d_ssd1327_128x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock display, usually not required because the display is unlocked after reset */ U8X8_C(0x0ae), /* display off */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ //U8X8_CA(0x0a8, 0x05f), /* multiplex ratio: 0x05f * 1/64 duty */ U8X8_CA(0x0a8, 0x07f), /* multiplex ratio: 0x05f * 1/128duty */ U8X8_CA(0x0a1, 0x000), /* display start line */ //U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_CA(0x0ab, 0x001), /* Enable internal VDD regulator (RESET) */ //U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128 */ U8X8_CA(0x081, 0x053), /* contrast, brightness, 0..128 */ //U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0b1, 0x051), /* phase length */ //U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0b3, 0x001), /* set display clock divide ratio/oscillator frequency */ //? U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ //? U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b9), /* use linear lookup table */ //U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0bc, 0x008), /* pre-charge voltage level */ //U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0be, 0x007), /* VCOMH voltage */ U8X8_CA(0x0b6, 0x001), /* second precharge */ U8X8_CA(0x0d5, 0x062), /* enable second precharge, internal vsl (bit0 = 0) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_128x128_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_128x128_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_midas_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call the 96x96 procedure at the moment */ if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_128x128_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x128_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* Waveshare 128x128 Module https://www.waveshare.com/w/upload/8/80/1.5inch_OLED_Module_User_Manual_EN.pdf https://github.com/olikraus/u8g2/issues/880 This is mostly a takeover of the EA display. */ /* https://github.com/SeeedDocument/Grove_OLED_1.12/raw/master/resources/LY120-096096.pdf */ /* http://www.seeedstudio.com/wiki/index.php?title=Twig_-_OLED_96x96 */ /* values from u8glib */ /* Re-map setting in Graphic Display Data RAM, command 0x0a0 Bit 0: Column Address Re-map Bit 1: Nibble Re-map Bit 2: Horizontal/Vertical Address Increment Bit 3: Not used, must be 0 Bit 4: COM Re-map Bit 5: Not used, must be 0 Bit 6: COM Split Odd Even Bit 7: Not used, must be 0 */ /* takeover from https://github.com/olikraus/u8g2/issues/880 */ static const uint8_t u8x8_d_ssd1327_ws_128x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), //--turn off oled panel U8X8_CAA(0x015, 0x000, 0x07f), //set column address, start column 0, end column 127 U8X8_CAA(0x075, 0x000, 0x07f), //set row address, start row 0, end row 127 U8X8_CA(0x081, 0x080), //set contrast control U8X8_CA(0x0a0, 0x051), //gment remap, 51 U8X8_CA(0x0a1, 0x000), //start line U8X8_CA(0x0a2, 0x000), //display offset U8X8_CAA(0x0a4, 0x0a8, 0x07f), //rmal display, set multiplex ratio U8X8_CA(0x0b1, 0x0f1), //set phase leghth U8X8_CA(0x0b3, 0x000), //set dclk, 80Hz:0xc1 90Hz:0xe1 100Hz:0x00 110Hz:0x30 120Hz:0x50 130Hz:0x70 01 U8X8_CA(0x0ab, 0x001), // U8X8_CA(0x0b6, 0x00f), //set phase leghth U8X8_CA(0x0be, 0x00f), U8X8_CA(0x0bc, 0x008), U8X8_CA(0x0d5, 0x062), U8X8_CA(0x0fd, 0x012), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_ws_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call the 96x96 procedure at the moment */ if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_ea_w128128_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ws_128x128_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* Visonox VGM128096A4W10 128x96 COB https://github.com/olikraus/u8g2/files/4052919/M02289_VGM128096A4W10_Y02.pdf https://github.com/olikraus/u8g2/issues/1090 */ static const u8x8_display_info_t u8x8_ssd1327_128x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 10, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* */ /* sck_pulse_width_ns = */ 100, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* use 1 instead of 4, because the SSD1327 seems to be very slow, Update 9 Aug 2019: The OLED from aliexpress supports 400kHz */ /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* tile_width = */ 16, /* tile_hight = */ 12, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 96 }; /* https://github.com/SeeedDocument/Grove_OLED_1.12/raw/master/resources/LY120-096096.pdf */ /* http://www.seeedstudio.com/wiki/index.php?title=Twig_-_OLED_96x96 */ /* values from u8glib */ /* Re-map setting in Graphic Display Data RAM, command 0x0a0 Bit 0: Column Address Re-map Bit 1: Nibble Re-map Bit 2: Horizontal/Vertical Address Increment Bit 3: Not used, must be 0 Bit 4: COM Re-map Bit 5: Not used, must be 0 Bit 6: COM Split Odd Even Bit 7: Not used, must be 0 */ /* init values from the Visionox datasheeet section 10.4 */ static const uint8_t u8x8_d_ssd1327_128x96_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0fd, 0x012), /* unlock display, usually not required because the display is unlocked after reset */ U8X8_C(0x0ae), /* display off */ //U8X8_CA(0x0a8, 0x03f), /* multiplex ratio: 0x03f * 1/64 duty */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio: 0x05f * 1/64 duty */ //U8X8_CA(0x0a8, 0x07f), /* multiplex ratio: 0x05f * 1/128duty */ U8X8_CA(0x0a1, 0x000), /* display start line */ //U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a2, 0x020), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_CA(0x0ab, 0x001), /* Enable internal VDD regulator (RESET) */ //U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128 */ U8X8_CA(0x081, 0x0df), /* contrast, brightness, 0..128 (0xdf as per datasheet) */ U8X8_CA(0x0b1, 0x022), /* phase length */ U8X8_CA(0x0b3, 0x050), /* set display clock divide ratio/oscillator frequency */ //? U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ //? U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ U8X8_C(0x0b9), /* use linear lookup table */ U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0be, 0x005), /* VCOMH voltage */ U8X8_CA(0x0b6, 0x00a), /* second precharge */ U8X8_CA(0x0d5, 0x062), /* enable second precharge, internal vsl (bit0 = 0) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_128x96_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x020), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1327_128x96_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a2, 0x060), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x042), /* remap configuration */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1327_visionox_128x96(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call the 96x96 procedure at the moment */ if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1327_128x96_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x96_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x96_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_128x96_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1329.c ================================================ /* u8x8_d_ssd1329.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_ssd1329_128x96_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_CA(0x0b3, 0x091), /* set display clock divide ratio/oscillator frequency (set clock as 135 frames/sec) */ U8X8_CA(0x0a8, 0x05f), /* multiplex ratio: 0x03f * 1/64 duty - changed by CREESOO, acc. to datasheet, 100317*/ U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a1, 0x000), /* display start line */ U8X8_CA(0x0ad, 0x002), /* master configuration: disable embedded DC-DC, enable internal VCOMH */ U8X8_CA(0x0a0, 0x052), /* remap configuration, horizontal address increment (bit 2 = 0), enable nibble remap (upper nibble is left, bit 1 = 1) */ U8X8_C(0x086), /* full current range (0x084, 0x085, 0x086) */ #ifdef removed U8X8_C(0x0b8), /* set gray scale table */ U8X8_A(1), /* */ U8X8_A(5), /* */ U8X8_A(10), /* */ U8X8_A(14), /* */ U8X8_A(19), /* */ U8X8_A(23), /* */ U8X8_A(28), /* */ U8X8_A(32), /* */ U8X8_A(37), /* */ U8X8_A(41), /* */ U8X8_A(46), /* */ U8X8_A(50), /* */ U8X8_A(55), /* */ U8X8_A(59), /* */ U8X8_A(63), /* */ #endif U8X8_C(0x0b7), /* set default gray scale table */ U8X8_CA(0x081, 0x070), /* contrast, brightness, 0..128 */ U8X8_CA(0x0b2, 0x051), /* frame frequency (row period) */ U8X8_CA(0x0b1, 0x055), /* phase length */ U8X8_CA(0x0bc, 0x010), /* pre-charge voltage level */ U8X8_CA(0x0b4, 0x002), /* set pre-charge compensation level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0b0, 0x028), /* enable pre-charge compensation (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_CA(0x0be, 0x01c), /* VCOMH voltage */ U8X8_CA(0x0bf, 0x002|0x00d), /* VSL voltage level (not documented in the SDD1325 datasheet, but used in the NHD init seq.) */ U8X8_C(0x0a4), /* normal display mode */ U8X8_CA(0x023, 0x003), /* graphics accelleration: fill pixel */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1329_128x96_nhd_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1329_128x96_nhd_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1329_128x96_nhd_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x052), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1329_128x96_nhd_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0a0, 0x041), /* remap */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for ssd1329 (32 Bytes) */ static uint8_t u8x8_ssd1329_8to32_dest_buf[32]; static uint8_t *u8x8_ssd1329_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t v; uint8_t a,b; uint8_t i, j; uint8_t *dest; for( j = 0; j < 4; j++ ) { dest = u8x8_ssd1329_8to32_dest_buf; dest += j; a =*ptr; ptr++; b = *ptr; ptr++; for( i = 0; i < 8; i++ ) { v = 0; if ( a&1 ) v |= 0xf0; if ( b&1 ) v |= 0x0f; *dest = v; dest+=4; a >>= 1; b >>= 1; } } return u8x8_ssd1329_8to32_dest_buf; } static uint8_t u8x8_d_ssd1329_128x96_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1329_128x96_nhd_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1329_128x96_noname_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1329_128x96_nhd_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1329_128x96_nhd_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1329_128x96_nhd_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1329_128x96_nhd_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1329 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 4; y = (((u8x8_tile_t *)arg_ptr)->y_pos); y *= 8; y += u8x8->x_offset; /* x_offset is used as y offset for the ssd1329 */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { if ( ptr[0] | ptr[1] | ptr[2] | ptr[3] | ptr[4] | ptr[5] | ptr[6] | ptr[7] ) { /* draw the tile if pattern is not zero for all bytes */ u8x8_cad_SendCmd(u8x8, 0x015 ); /* set column address */ u8x8_cad_SendArg(u8x8, x ); /* start */ u8x8_cad_SendArg(u8x8, x+3 ); /* end */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* set row address */ u8x8_cad_SendArg(u8x8, y); u8x8_cad_SendArg(u8x8, y+7); u8x8_cad_SendData(u8x8, 32, u8x8_ssd1329_8to32(u8x8, ptr)); } else { /* tile is empty, use the graphics acceleration command */ /* are this really available on the SSD1329??? */ u8x8_cad_SendCmd(u8x8, 0x024 ); // draw rectangle u8x8_cad_SendArg(u8x8, x ); u8x8_cad_SendArg(u8x8, y ); u8x8_cad_SendArg(u8x8, x+3 ); u8x8_cad_SendArg(u8x8, y+7 ); u8x8_cad_SendArg(u8x8, 0 ); // clear } ptr += 8; x += 4; c--; } while( c > 0 ); //x += 4; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1329_128x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 15, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /**/ /* sda_setup_time_ns = */ 100, /* ssd1329 */ /* sck_pulse_width_ns = */ 100, /* ssd1329 */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 60, /* ssd1329 */ /* tile_width = */ 16, /* tile_hight = */ 12, /* default_x_offset = */ 0, /* x_offset is used as y offset for the ssd1329 */ /* flipmode_x_offset = */ 0, /* x_offset is used as y offset for the ssd1329 */ /* pixel_width = */ 128, /* pixel_height = */ 96 }; uint8_t u8x8_d_ssd1329_128x96_noname(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1329_128x96_display_info); return 1; } return u8x8_d_ssd1329_128x96_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1606_172x72.c ================================================ /* u8x8_d_ssd1606_172x72.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1606: 128x180x2 two-bit, four graylevels command 0x22: assign actions 0x20: execute actions action for command 0x022 are (more or less guessed) bit 7: Enable Clock bit 6: Enable Charge Pump bit 5: Load Temparture Value (???) bit 4: Load LUT (???) bit 3: Initial Display (???) bit 2: Pattern Display --> Requires about 945ms with the LUT from below bit 1: Disable Charge Pump bit 0: Disable Clock Disable Charge Pump and Clock require about 267ms Enable Charge Pump and Clock require about 10ms Notes: - Introduced a refresh display message, which copies RAM to display - Charge pump and clock are only enabled for the transfer RAM to display - U8x8 will not really work because of the two buffers in the SSD1606, however U8g2 should be ok. */ #include "u8x8.h" #define L(a,b,c,d) (((a)<<6)|((b)<<4)|((c)<<2)|(d)) /* GDE021A1, 2.1" EPD */ static const uint8_t u8x8_d_ssd1606_172x72_gde021a1_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x10, 0x00), /* Deep Sleep mode Control: Disable */ U8X8_CA(0x11, 0x03), /* Define data entry mode, x&y inc, x first */ U8X8_CAA(0x44, 0, 31), /* RAM x start & end, each byte has 4 pixel, 32*4=128 */ U8X8_CAA(0x45, 0, 179), /* RAM y start & end, 179 MAX */ U8X8_CA(0x4e, 0), /* set x pos, 0..31 */ U8X8_CA(0x4f, 0), /* set y pos, 0...179 */ U8X8_CA(0xf0, 0x1f), /* set booster feedback to internal */ U8X8_CA(0x22, 0xc0), /* display update seq. option: enable clk, enable CP, .... todo: this is never activated */ U8X8_C(0x32), /* write LUT register*/ #ifdef ORIGINAL_LUT /* wavefrom part of the LUT: absolute LUT... this will always force the destination color */ U8X8_A4(0x00,0x00,0x00,0x55), /* step 0 */ U8X8_A4(0x00,0x00,0x55,0x55), /* step 1 */ U8X8_A4(0x00,0x55,0x55,0x55), U8X8_A4(0xAA,0xAA,0xAA,0xAA), U8X8_A4(0x15,0x15,0x15,0x15), U8X8_A4(0x05,0x05,0x05,0x05), U8X8_A4(0x01,0x01,0x01,0x01), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), /* step 19 */ /* timing part of the LUT */ U8X8_A8(0x22,0xFB,0x22,0x1B,0x00,0x00,0x00,0x00), U8X8_A(0x00),U8X8_A(0x00), #else /* the following LUT will not change anything if the old and the new values are the same */ /* 03 02 01 00 13 12 11 10 23 22 21 20 33 32 31 30 original */ U8X8_A4(L(0, 0, 0, 0), L(0, 0, 0, 0), L(0, 0, 0, 0), L(0, 1, 1, 1)), // 0x00,0x00,0x00,0x55, step 0 U8X8_A4(L(0, 0, 0, 0), L(0, 0, 0, 0), L(1, 0, 1, 1), L(0, 1, 1, 1)), // 0x00,0x00,0x55,0x55, step 1 U8X8_A4(L(0, 0, 0, 0), L(1, 1, 0, 1), L(1, 0, 1, 1), L(0, 1, 1, 1)), // 0x00,0x55,0x55,0x55, step 2 U8X8_A4(L(2, 2, 2, 0), L(2, 2, 0, 2), L(2, 0, 2, 2), L(0, 2, 2, 2)), // 0xAA,0xAA,0xAA,0xAA, step 3 U8X8_A4(L(0, 1, 1, 0), L(0, 1, 0, 1), L(0, 0, 1, 1), L(0, 1, 1, 1)), // 0x15,0x15,0x15,0x15, step 4 U8X8_A4(L(0, 0, 1, 0), L(0, 0, 0, 1), L(0, 0, 1, 1), L(0, 0, 1, 1)), // 0x05,0x05,0x05,0x05, step 5 U8X8_A4(L(0, 0, 0, 0), L(0, 0, 0, 1), L(0, 0, 0, 1), L(0, 0, 0, 1)), // 0x01,0x01,0x01,0x01, step 6 U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), U8X8_A4(0x00,0x00,0x00,0x00), /* step 19 */ /* timing part of the LUT */ U8X8_A8(0x22,0xFB,0x22,0x1B,0x00,0x00,0x00,0x00), U8X8_A(0x00),U8X8_A(0x00), #endif U8X8_CA(0x2c, 0xa0), /* write vcom value*/ U8X8_CA(0x3c, 0x63), /* select boarder waveform */ U8X8_CA(0x22, 0xc4), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ /* 0x0c4 is mentioned in chapter 9.2 of the GDE021A1 data sheet */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1606_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_CA(0x22, 0xc0), /* display update seq. option: Enable clock and charge pump */ //U8X8_C(0x20), /* execute sequence */ //U8X8_DLY(10), /* strange, splitting 0x0c0 does not work reliable */ U8X8_CA(0x22, 0xc4), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* the sequence above requires about 970ms */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(230), U8X8_CA(0x22, 0x03), /* disable clock and charge pump */ U8X8_DLY(200), /* this requres about 270ms */ U8X8_DLY(90), //U8X8_CA(0x10, 0x01), /* deep sleep mode */ //U8X8_C(0x20), /* execute sequence */ U8X8_DLY(50), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; // static const uint8_t u8x8_d_ssd1606_172x72_powersave0_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_ssd1606_172x72_powersave1_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_ssd1606_172x72_flip0_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; // static const uint8_t u8x8_d_ssd1606_172x72_flip1_seq[] = { // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // }; static uint8_t *u8x8_convert_tile_for_ssd1606(uint8_t *t) { uint8_t i; uint16_t r; static uint8_t buf[16]; uint8_t *pbuf = buf; for( i = 0; i < 8; i++ ) { r = u8x8_upscale_byte(~(*t++)); *pbuf++ = (r>>8) & 255; *pbuf++ = r & 255; } return buf; } static void u8x8_d_ssd1606_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) U8X8_NOINLINE; static void u8x8_d_ssd1606_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) { uint8_t x, c, page; uint8_t *ptr; u8x8_cad_StartTransfer(u8x8); page = u8x8->display_info->tile_height; page --; page -= (((u8x8_tile_t *)arg_ptr)->y_pos); page *= 2; x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x00f ); /* scan start */ u8x8_cad_SendArg(u8x8, 0); u8x8_cad_SendCmd(u8x8, 0x011 ); /* cursor increment mode */ u8x8_cad_SendArg(u8x8, 3); u8x8_cad_SendCmd(u8x8, 0x045 ); /* window start column */ u8x8_cad_SendArg(u8x8, 0); u8x8_cad_SendArg(u8x8, 179); /* end of display */ u8x8_cad_SendCmd(u8x8, 0x044 ); /* window end page */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendArg(u8x8, page+1); u8x8_cad_SendCmd(u8x8, 0x04f ); /* window column */ u8x8_cad_SendArg(u8x8, x); u8x8_cad_SendCmd(u8x8, 0x04e ); /* window row */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendCmd(u8x8, 0x024 ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 16, u8x8_convert_tile_for_ssd1606(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); } static uint8_t u8x8_d_ssd1606_172x72_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1606_172x72_display_info); break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_172x72_gde021a1_init_seq); /* special code for the SSD1606... */ /* ensure that the initial buffer is clear and all eInk is set to white */ /* this is done here, because the LUT will be of that kind, that it uses the previous color */ /* make everything black */ u8x8_FillDisplay(u8x8); /* write content to the display */ u8x8_RefreshDisplay(u8x8); /* now make everything clear */ u8x8_FillDisplay(u8x8); /* write content to the display */ u8x8_RefreshDisplay(u8x8); /* now make everything clear */ u8x8_ClearDisplay(u8x8); /* write content to the display */ u8x8_RefreshDisplay(u8x8); u8x8_ClearDisplay(u8x8); /* write content to the display */ u8x8_RefreshDisplay(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: /* if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_172x72_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_172x72_powersave1_seq); */ break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: /* if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_172x72_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_172x72_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } */ break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: /* u8x8_cad_StartTransfer(u8x8); u8x8_cad_EndTransfer(u8x8); */ break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_ssd1606_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1606_to_display_seq); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_ssd1606_172x72_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 120, /* pre_chip_disable_wait_ns = */ 60, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 50, /* SSD1606: */ /* sck_pulse_width_ns = */ 100, /* SSD1606: 100ns */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 22, /* 22*8 = 176 */ /* tile_hight = */ 9, /* 9*8 = 72 */ /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 172, /* pixel_height = */ 72 }; uint8_t u8x8_d_ssd1606_172x72(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1606_172x72_display_info); return 1; } return u8x8_d_ssd1606_172x72_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_ssd1607_200x200.c ================================================ /* u8x8_d_ssd1607_200x200.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSD1607: 200x300x1 command 0x22: assign actions 0x20: execute actions action for command 0x022 are (more or less guessed) bit 7: Enable Clock bit 6: Enable Charge Pump bit 5: Load Temparture Value (???) bit 4: Load LUT (???) bit 3: Initial Display (???) bit 2: Pattern Display --> Requires about 945ms with the LUT from below bit 1: Disable Charge Pump bit 0: Disable Clock Disable Charge Pump and Clock require about 267ms Enable Charge Pump and Clock require about 10ms Notes: - Introduced a refresh display message, which copies RAM to display - Charge pump and clock are only enabled for the transfer RAM to display - U8x8 will not really work because of the two buffers in the SSD1606, however U8g2 should be ok. */ #include "u8x8.h" /*=================================================*/ static const u8x8_display_info_t u8x8_ssd1607_200x200_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* values from SSD1606 */ /* post_chip_enable_wait_ns = */ 120, /* pre_chip_disable_wait_ns = */ 60, /* reset_pulse_width_ms = */ 100, /* post_reset_wait_ms = */ 100, /* sda_setup_time_ns = */ 50, /* SSD1606: */ /* sck_pulse_width_ns = */ 100, /* SSD1606: 100ns */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* tile_width = */ 25, /* 25*8 = 200 */ /* tile_hight = */ 25, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 200, /* pixel_height = */ 200 }; static const uint8_t u8x8_d_ssd1607_200x200_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x22, 0xc0), /* enable clock and charge pump */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(200), /* according to my measures it may take up to 150ms */ U8X8_DLY(100), /* but it might take longer */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1607_200x200_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* disable clock and charge pump only, deep sleep is not entered, because we will loose RAM content */ U8X8_CA(0x22, 0x02), /* only disable charge pump, HW reset seems to be required if the clock is disabled */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(20), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1607_200x200_exec_1000dly_seq[] = { // assumes, that the start transfer has happend U8X8_CA(0x22, 0x04), /* display update seq. option: pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static void u8x8_d_ssd1607_200x200_first_init(u8x8_t *u8x8) { u8x8_ClearDisplay(u8x8); u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x032); // program update sequence u8x8_cad_SendMultipleArg(u8x8, 8, 0x055); // all black u8x8_cad_SendMultipleArg(u8x8, 12, 0x0aa); // all white u8x8_cad_SendMultipleArg(u8x8, 10, 0x022); // 830ms u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_exec_1000dly_seq); } static uint8_t *u8x8_convert_tile_for_ssd1607(uint8_t *t) { uint8_t i; static uint8_t buf[8]; uint8_t *pbuf = buf; for( i = 0; i < 8; i++ ) { *pbuf++ = ~(*t++); } return buf; } static void u8x8_d_ssd1607_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) U8X8_NOINLINE; static void u8x8_d_ssd1607_draw_tile(u8x8_t *u8x8, uint8_t arg_int, void *arg_ptr) { uint16_t x; uint8_t c, page; uint8_t *ptr; u8x8_cad_StartTransfer(u8x8); page = u8x8->display_info->tile_height; page --; page -= (((u8x8_tile_t *)arg_ptr)->y_pos); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x045 ); /* window start column */ u8x8_cad_SendArg(u8x8, x&255); u8x8_cad_SendArg(u8x8, x>>8); u8x8_cad_SendArg(u8x8, 199); /* end of display */ u8x8_cad_SendArg(u8x8, 0); u8x8_cad_SendCmd(u8x8, 0x044 ); /* window end page */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendCmd(u8x8, 0x04f ); /* window column */ u8x8_cad_SendArg(u8x8, x&255); u8x8_cad_SendArg(u8x8, x>>8); u8x8_cad_SendCmd(u8x8, 0x04e ); /* window row */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendCmd(u8x8, 0x024 ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 8, u8x8_convert_tile_for_ssd1607(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); } /*=================================================*/ #define L(a,b,c,d) (((a)<<6)|((b)<<4)|((c)<<2)|(d)) /* https://github.com/embeddedadventures/SSD1607/blob/master/SSD1607.cpp */ static const uint8_t u8x8_d_ssd1607_200x200_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_CA(0x10, 0x00), /* Deep Sleep mode Control: Disable */ U8X8_C(0x01), U8X8_A(199),U8X8_A(0),U8X8_A(0), U8X8_CA(0x03, 0x00), /* Gate Driving voltage: 15V (lowest value)*/ U8X8_CA(0x04, 0x0a), /* Source Driving voltage: 15V (mid value and POR)*/ U8X8_CA(0x0f, 0x00), /* scan start ? */ U8X8_CA(0xf0, 0x1f), /* set booster feedback to internal */ U8X8_CA(0x2c, 0xa8), /* write vcom value*/ U8X8_CA(0x3a, 0x1a), /* dummy lines */ U8X8_CA(0x3b, 0x08), /* gate time */ U8X8_CA(0x3c, 0x33), /* select boarder waveform */ U8X8_CA(0x11, 0x03), /* cursor increment mode */ U8X8_CAA(0x44, 0, 24), /* RAM x start & end, each byte has 8 pixel, 25*4=200 */ U8X8_CAAAA(0x45, 0, 0, 299&255, 299>>8), /* RAM y start & end, 0..299 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1607_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x32), /* write LUT register*/ /* according to the command table, the lut has 240 bits (=30 bytes * 8 bits) */ /* Waveform part of the LUT (20 bytes) */ /* bit 7/6: 1 - 1 transition */ /* bit 5/4: 1 - 0 transition */ /* bit 3/2: 0 - 1 transition */ /* bit 1/0: 0 - 0 transition */ /* 00 – VSS */ /* 01 – VSH */ /* 10 – VSL */ /* 11 – NA */ /* original values */ /* U8X8_A(0x02), U8X8_A(0x02), U8X8_A(0x01), U8X8_A(0x11), U8X8_A(0x12), U8X8_A(0x12), U8X8_A(0x22), U8X8_A(0x22), U8X8_A(0x66), U8X8_A(0x69), U8X8_A(0x69), U8X8_A(0x59), U8X8_A(0x58), U8X8_A(0x99), U8X8_A(0x99), U8X8_A(0x88), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), */ /* original values, L-macro */ U8X8_A(L(0,0,0,2)), // 0x02 U8X8_A(L(0,0,0,2)), // 0x02 U8X8_A(L(0,0,0,1)), // 0x01 U8X8_A(L(0,1,0,1)), // 0x11 U8X8_A(L(0,1,0,2)), // 0x12 U8X8_A(L(0,1,0,2)), // 0x12 U8X8_A(L(0,2,0,2)), // 0x22 U8X8_A(L(0,2,0,2)), // 0x22 U8X8_A(L(1,2,1,2)), // 0x66 U8X8_A(L(1,2,2,1)), // 0x69 U8X8_A(L(1,2,2,1)), // 0x69 U8X8_A(L(1,1,2,1)), // 0x59 U8X8_A(L(1,1,2,0)), // 0x58 U8X8_A(L(2,1,2,1)), // 0x99 U8X8_A(L(2,1,2,1)), // 0x99 U8X8_A(L(2,0,2,0)), // 0x88 U8X8_A(L(0,0,0,0)), // 0x00 U8X8_A(L(0,0,0,0)), // 0x00 U8X8_A(L(0,0,0,0)), // 0x00 U8X8_A(L(0,0,0,0)), // 0x00 /* orginal values without 0-0 and 1-1 transition */ /* U8X8_A(L(3,0,0,3)), // 0x02 U8X8_A(L(3,0,0,3)), // 0x02 U8X8_A(L(3,0,0,3)), // 0x01 U8X8_A(L(3,1,0,3)), // 0x11 U8X8_A(L(3,1,0,3)), // 0x12 U8X8_A(L(3,1,0,3)), // 0x12 U8X8_A(L(3,2,0,3)), // 0x22 U8X8_A(L(3,2,0,3)), // 0x22 U8X8_A(L(3,2,1,3)), // 0x66 U8X8_A(L(3,2,2,3)), // 0x69 U8X8_A(L(3,2,2,3)), // 0x69 U8X8_A(L(3,1,2,3)), // 0x59 U8X8_A(L(3,1,2,3)), // 0x58 U8X8_A(L(3,1,2,3)), // 0x99 U8X8_A(L(3,1,2,3)), // 0x99 U8X8_A(L(3,0,2,3)), // 0x88 U8X8_A(L(3,0,0,3)), // 0x00 U8X8_A(L(3,0,0,3)), // 0x00 U8X8_A(L(3,0,0,3)), // 0x00 U8X8_A(L(3,0,0,3)), // 0x00 */ /* Timing part of the LUT, 20 Phases with 4 bit each: 10 bytes */ U8X8_A(0xF8), U8X8_A(0xB4), U8X8_A(0x13), U8X8_A(0x51), U8X8_A(0x35), U8X8_A(0x51), U8X8_A(0x51), U8X8_A(0x19), U8X8_A(0x01), U8X8_A(0x00), U8X8_CA(0x22, 0x04), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* the sequence above requires about 1200ms for the 200x200 display*/ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1607_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1607_200x200_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); u8x8_d_ssd1607_200x200_first_init(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_ssd1607_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_to_display_seq); break; default: return 0; } return 1; } /*=================================================*/ /* there is no improvement possible... so i consider the v2 version as obsolete */ static const uint8_t u8x8_d_ssd1607_v2_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* 0xaa, 0x09, 0x09, 0x19, 0x19, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x75, 0x77, 0x77, 0x77, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 measured 1240 ms with IL3830 196x128 0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x12, 0x22, 0x22, 0x66, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xb4, 0x13, 0x51, 0x35, 0x51, 0x51, 0xe9, 0x04, 0x00 */ U8X8_C(0x32), /* write LUT register*/ /* https://github.com/olikraus/u8g2/issues/347 */ U8X8_A(0x02), U8X8_A(0x02), U8X8_A(0x01), U8X8_A(0x11), U8X8_A(0x12), U8X8_A(0x12), U8X8_A(0x22), U8X8_A(0x22), U8X8_A(0x66), U8X8_A(0x69), U8X8_A(0x69), U8X8_A(0x59), U8X8_A(0x58), U8X8_A(0x99), U8X8_A(0x99), U8X8_A(0x88), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), /* Timing part of the LUT, 20 Phases with 4 bit each: 10 bytes */ U8X8_A(0xF8), U8X8_A(0xB4), U8X8_A(0x13), U8X8_A(0x51), U8X8_A(0x35), U8X8_A(0x51), U8X8_A(0x51), U8X8_A(0xe9), U8X8_A(0x04), U8X8_A(0x00), U8X8_CA(0x22, 0x04), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* delay for 1500ms. The current sequence takes 1300ms */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1607_v2_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1607_200x200_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); u8x8_d_ssd1607_200x200_first_init(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_ssd1607_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_v2_to_display_seq); break; default: return 0; } return 1; } /*=================================================*/ /* GDEP015OC1 */ /* https://github.com/olikraus/u8g2/issues/454 */ static const uint8_t u8x8_d_ssd1607_gd_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* 0xaa, 0x09, 0x09, 0x19, 0x19, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x75, 0x77, 0x77, 0x77, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 measured 1240 ms with IL3830 196x128 0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x12, 0x22, 0x22, 0x66, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xb4, 0x13, 0x51, 0x35, 0x51, 0x51, 0xe9, 0x04, 0x00 */ U8X8_C(0x32), /* write LUT register*/ /* U8X8_A(0x50), U8X8_A(0xAA), U8X8_A(0x55), U8X8_A(0xAA), U8X8_A(0x11), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0xFF), U8X8_A(0xFF), U8X8_A(0x1F), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), */ U8X8_A(0x10), U8X8_A(0x18), U8X8_A(0x18), U8X8_A(0x08), U8X8_A(0x18), // numbers based on Waveshare demo code U8X8_A(0x18), U8X8_A(0x08), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x13), U8X8_A(0x14), U8X8_A(0x44), U8X8_A(0x12), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_CA(0x22, 0xc4), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* delay for 1500ms. The current sequence takes 1300ms */ U8X8_DLY(250), U8X8_DLY(250), // U8X8_DLY(250), // U8X8_DLY(250), // U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1607_gd_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1607_200x200_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); u8x8_d_ssd1607_200x200_first_init(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_ssd1607_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_gd_to_display_seq); break; default: return 0; } return 1; } /*=================================================*/ static const uint8_t u8x8_d_ssd1607_ws_to_display_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x32), /* write LUT register*/ U8X8_A(0x10), U8X8_A(0x18), U8X8_A(0x18), U8X8_A(0x08), U8X8_A(0x18), // numbers based on Waveshare demo code U8X8_A(0x18), U8X8_A(0x08), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x13), U8X8_A(0x14), U8X8_A(0x44), U8X8_A(0x12), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_A(0x00), U8X8_CA(0x22, 0xc4), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ U8X8_DLY(250), /* delay for 1250ms. */ U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_ssd1607_ws_to_refresh_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x22, 0x04), /* display update seq. option: clk -> CP -> LUT -> initial display -> pattern display */ U8X8_C(0x20), /* execute sequence */ // U8X8_DLY(250), // U8X8_DLY(250), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* waveshare 200x200 */ static const uint8_t u8x8_d_ssd1607_ws_200x200_init_seq[] = { // suggested code from https://github.com/olikraus/u8g2/issues/637 U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x01), /* DRIVER_OUTPUT_CONTROL: LO(EPD_HEIGHT-1), HI(EPD_HEIGHT-1). GD = 0; SM = 0; TB = 0; */ U8X8_A(199),U8X8_A(0),U8X8_A(0), U8X8_C(0x0C), /* BOOSTER_SOFT_START_CONTROL */ U8X8_A(0xd7),U8X8_A(0xd6),U8X8_A(0x9d), U8X8_CA(0x2c, 0xa8), /* WRITE_VCOM_REGISTER: VCOM 7C */ U8X8_CA(0x3a, 0x1a), /* SET_DUMMY_LINE_PERIOD: 4 dummy lines per gate */ U8X8_CA(0x3b, 0x08), /* SET_GATE_TIME: 2us per line */ U8X8_CA(0x11, 0x03), /* DATA_ENTRY_MODE_SETTING: X increment; Y increment */ U8X8_CAA(0x44, 0, 24), /* SET_RAM_X_ADDRESS_START_END_POSITION: LO(x >> 3), LO((w-1) >> 3) */ U8X8_CAAAA(0x45, 0, 0, 199&255, 199>>8), /* SET_RAM_Y_ADDRESS_START_END_POSITION: LO(y), HI(y), LO(h - 1), HI(h - 1) */ U8X8_CA(0x4e, 0), /* LO(x >> 3) */ U8X8_CAA(0x4f, 0, 0), /* LO(y), HI(y >> 8) */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_ssd1607_ws_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_ssd1607_200x200_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_ws_200x200_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); u8x8_d_ssd1607_200x200_first_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_ws_to_display_seq);; // to setup LUT break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_200x200_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: break; case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_d_ssd1607_draw_tile(u8x8, arg_int, arg_ptr); break; case U8X8_MSG_DISPLAY_REFRESH: u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1607_ws_to_refresh_seq); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7511.c ================================================ /* u8x8_d_st7511.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20 May 2019: https://github.com/olikraus/u8g2/issues/876 Probably HW Flip does not work */ #include "u8x8.h" static const uint8_t u8x8_d_st7511_320x240_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x015, 0x0a5), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7511_320x240_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x014, 0x0a5), /* display off */ // maybe use sleep mode here, but it not clear whether sleep mode will reset all the settings U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7511_320x240_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAAAA(0x24, 0x01, 0xa5, 0xa5, 0xa5), /* memory control directions */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7511_320x240_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CAAAA(0x24, 0x02, 0xa5, 0xa5, 0xa5), /* memory control directions */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /*=====================================================*/ /* AV-Display: AVD-TM57QV-NW-001-B, issue 876 */ static const u8x8_display_info_t u8x8_st7511_320x240_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* ST7511 Datasheet */ /* pre_chip_disable_wait_ns = */ 150, /* ST7511 Datasheet */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 120, /* ST7511 Datasheet */ /* sck_pulse_width_ns = */ 150, /* ST7511 Datasheet */ /* sck_clock_hz = */ 3300000UL, /* ST7511 Datasheet: 300ns cycle */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 200, /* */ /* write_pulse_width_ns = */ 250, /* ST7511 Datasheet: 500ns */ /* tile_width = */ 40, /* width of 17*8=136 pixel */ /* tile_hight = */ 30, /* default_x_offset = */ 160, /* flipmode_x_offset = */ 0, /* pixel_width = */ 320, /* pixel_height = */ 240 }; static const uint8_t u8x8_d_st7511_320x240_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0xae, 0xa5), /* SW Reset */ U8X8_CAAAA(0x61, 0x0f, 0x04, 0x02, 0xa5), /* all power on */ U8X8_CAAAA(0x62, 0x0a, 0x06, 0x0f, 0xa5), /* electronic volumne set 1 */ U8X8_CAAAA(0x63, 0x0f, 0x0f, 0xa5, 0xa5), /* electronic volumne set 2 */ U8X8_CAAAA(0x66, 0x00, 0xa5, 0xa5, 0xa5), /* electronic volumne set 2 */ U8X8_CA(0x12, 0xa5), /* SLeeP OUT */ U8X8_DLY(50), // skiping display on here, deviation from https://github.com/olikraus/u8g2/issues/876 // will be called later in u8x8_d_st7511_320x240_powersave0_seq U8X8_CAAAA(0x22, 0x00, 0xa5, 0xa5, 0xa5), /* monochrome display */ U8X8_CAAAA(0x24, 0x01, 0xa5, 0xa5, 0xa5), /* memory control directions */ U8X8_DLY(50), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7511_avd_320x240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint16_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7511_320x240_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7511_320x240_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7511_320x240_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7511_320x240_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7511_320x240_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7511_320x240_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: // not sure how to implement this.... // u8x8_cad_StartTransfer(u8x8); // u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); // set page u8x8_cad_SendCmd(u8x8, 0x025); u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x09f); // end page u8x8_cad_SendArg(u8x8, 0x000); // frame 0 u8x8_cad_SendArg(u8x8, 0x0a5); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; // set column u8x8_cad_SendCmd(u8x8, 0x026); u8x8_cad_SendArg(u8x8, (x>>8) ); u8x8_cad_SendArg(u8x8, (x&255) ); u8x8_cad_SendArg(u8x8, 0x002); u8x8_cad_SendArg(u8x8, 0x07f); // start data transfer u8x8_cad_SendCmd(u8x8, 0x02c); u8x8_cad_SendArg(u8x8, 0x0a5 ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; while ( c > 128 ) { u8x8_cad_SendData(u8x8, 128, ptr); /* note: SendData can not handle more than 255 bytes */ c -= 128; ptr += 128; } u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st75256.c ================================================ /* u8x8_d_st75256.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0x030 ext 00 0x031 ext 01 0x038 ext 10 0x039 ext 11 cad 011 code examples: http://www.it610.com/article/2601023.htm normal mode: 0x00c bit format U8X8_CA( 0xbc, 0x00 ), data scan dir U8X8_A( 0xa6 ), y: 0 offset flip mode: 0x008 bit format U8X8_CA( 0xbc, 0x03 ), data scan dir U8X8_A( 0xa6 ), y: 5 offset */ #include "u8x8.h" /* not a real power down for the st75256... just a display off */ static const uint8_t u8x8_d_st75256_256x128_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x94 ), /* sleep out */ U8X8_DLY(10), U8X8_C( 0xaf ), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_256x128_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xae ), /* display off */ U8X8_C( 0x95 ), /* sleep in */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx256128_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx256128_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x03 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x008 ), /* data format MSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx172104_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x02 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx172104_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x01 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x008 ), /* data format MSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx256160_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75256_jlx256160_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x03 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x008 ), /* data format MSB top */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_st75256_256x128_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x128_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ u8x8_cad_SendArg(u8x8, u8x8->x_offset + (((u8x8_tile_t *)arg_ptr)->y_pos)); /* x offset is used as y offset */ u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes, treat c > 31 correctly */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=============================================*/ /* JLX256128 */ static const u8x8_display_info_t u8x8_st75256_256x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 32, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* must be 0, because this is checked also for normal mode */ /* flipmode_x_offset = */ 5, /* used as y offset */ /* pixel_width = */ 256, /* pixel_height = */ 128 }; static const uint8_t u8x8_d_st75256_256x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 0x7f ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x36, 0x05 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx256128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st75256_256x128_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x128_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* WO256X128, https://github.com/olikraus/u8g2/issues/891 */ static const u8x8_display_info_t u8x8_st75256_wo256x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 32, /* tile_hight = */ 16, /* default_x_offset = */ 5, /* must be 0, because this is checked also for normal mode */ /* flipmode_x_offset = */ 0, /* used as y offset */ /* pixel_width = */ 256, /* pixel_height = */ 128 }; static const uint8_t u8x8_d_st75256_wo256x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x01 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x008 ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 0x7f ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x36, 0x05 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_wo256x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st75256_256x128_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_wo256x128_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_wo256x128_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); // this matches the init sequence u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* JLX25664 */ static const u8x8_display_info_t u8x8_st75256_256x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 32, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* must be 0, because this is checked also for normal mode */ /* flipmode_x_offset = */ 13, /* used as y offset */ /* pixel_width = */ 256, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_st75256_256x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x005 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x1f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 0x3f ), /* 64 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 012, 0x02 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx25664(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st75256_256x128_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x64_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x64_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } /*=============================================*/ /* JLX172104 LCD */ static const u8x8_display_info_t u8x8_st75256_172x104_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 22, /* 22=176 */ /* tile_hight = */ 13, /* default_x_offset = */ 84, /* */ /* flipmode_x_offset = */ 0, /* pixel_width = */ 172, /* pixel_height = */ 104 }; static const uint8_t u8x8_d_st75256_jlx172104_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x003 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x02 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 0x9f ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x08, 0x04 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx172104(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 0 ) /* 0 means flip mode 1, then adjust y value */ u8x8_cad_SendArg(u8x8, 8+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); /* this procedure assumes, that the overall width is 172 */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; c *= 8; if ( c + x > 172u ) { c = 172u; c -= x; } u8x8_cad_SendData(u8x8, c, ptr); x += c; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_172x104_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } /*=============================================*/ /* JLX240160 */ static const u8x8_display_info_t u8x8_st75256_240x160_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 30, /* tile_hight = */ 20, /* default_x_offset = */ 16, /* x offset in flipmode 0 */ /* flipmode_x_offset = */ 0, /* */ /* pixel_width = */ 240, /* pixel_height = */ 160 }; static const uint8_t u8x8_d_st75256_240x160_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 239), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x02 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 159 ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x18, 0x04 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 0 ) /* 0 means flip mode 1 */ u8x8_cad_SendArg(u8x8, 1+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; c *= 8; if ( c + x > 240u ) { c = 240u; c -= x; } u8x8_cad_SendData(u8x8, c, ptr); x += c; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_240x160_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_240x160_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } /*=============================================*/ /* JLX256160 */ static const u8x8_display_info_t u8x8_st75256_256x160_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 32, /* tile_hight = */ 20, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 1, /* x offset is used as y offset in flipmode */ /* pixel_width = */ 256, /* pixel_height = */ 160 }; static const uint8_t u8x8_d_st75256_256x160_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x28), /* row range */ U8X8_CAA(0x15, 0, 0xFF), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 159 ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x18, 0x05 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx256160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 1 ) /* 1 means flip mode 1 */ u8x8_cad_SendArg(u8x8, 1+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->display_info->default_x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes, treat c > 31 correctly */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x160_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x160_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256160_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256160_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } /*=============================================*/ /* JLX256160 mirror version #930 */ static const uint8_t u8x8_d_st75256_256x160m_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x28), /* row range */ U8X8_CAA(0x15, 0, 0xFF), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x02 ), /* data scan dir ( CHANGED FOR MIRROR VERSION ) */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 159 ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x18, 0x05 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx256160m(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 1 ) /* 1 means flip mode 1 */ u8x8_cad_SendArg(u8x8, 1+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->display_info->default_x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes, treat c > 31 correctly */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x160_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x160m_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } /*=============================================*/ /* JLX256160 alternative version from issue #561 */ static const u8x8_display_info_t u8x8_st75256_256x160_alt_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 32, /* tile_hight = */ 20, /* default_x_offset = */ 0, /* x offset in flipmode 0 */ /* flipmode_x_offset = */ 0, /* */ /* pixel_width = */ 256, /* pixel_height = */ 160 }; static const uint8_t u8x8_d_st75256_256x160_alt_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x000 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x02 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 159 ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x18, 0x05 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx256160_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 0 ) /* 0 means flip mode 1 */ u8x8_cad_SendArg(u8x8, 1+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes, treat c > 31 correctly */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_256x160_alt_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x160_alt_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } /*=============================================*/ /* JLX19296 LCD */ static const u8x8_display_info_t u8x8_st75256_192x96_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 24, /* tile_hight = */ 12, /* default_x_offset = */ 0, /* */ /* flipmode_x_offset = */ 64, /* pixel_width = */ 192, /* pixel_height = */ 96 }; static const uint8_t u8x8_d_st75256_jlx19296_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x094 ), /* sleep out */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x0ae ), /* display off */ U8X8_C( 0x031 ), /* select 01 commands */ U8X8_CA( 0x0d7, 0x09f ), /* disable auto read */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x032 ), /* analog circuit set */ U8X8_A( 0x000 ), /* code example: OSC Frequency adjustment */ U8X8_A( 0x001 ), /* Frequency on booster capacitors 1 = 6KHz? */ U8X8_A( 0x003 ), /* Bias: 1: 1/13, 2: 1/12, 3: 1/11, 4:1/10, 5:1/9 */ //U8X8_C( 0x031 ), /* select 01 commands */ U8X8_C( 0x020 ), /* gray levels */ U8X8_A( 0x01 ), U8X8_A( 0x03 ), U8X8_A( 0x05 ), U8X8_A( 0x07 ), U8X8_A( 0x09), U8X8_A( 0x0b ), U8X8_A( 0x0d ), U8X8_A( 0x10 ), U8X8_A( 0x11 ), U8X8_A( 0x13 ), U8X8_A( 0x15 ), U8X8_A( 0x17 ), U8X8_A( 0x19 ), U8X8_A( 0x1b ), U8X8_A( 0x1d ), U8X8_A( 0x1f ), U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA(0x75, 0, 0x4f), /* row range */ U8X8_CAA(0x15, 0, 255), /* col range */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0xbc, 0x00 ), /* data scan dir */ U8X8_A( 0xa6 ), /* ??? */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0x00c ), /* data format LSB top */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_C( 0xca ), /* display control, 3 args follow */ U8X8_A( 0x00 ), /* 0x00: no clock division, 0x04: devide clock */ U8X8_A( 0x9f ), /* 1/160 duty value from the DS example code */ U8X8_A( 0x20 ), /* nline off */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x0f0, 0x010 ), /* monochrome mode = 0x010*/ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CAA( 0x81, 0x2e, 0x03 ), /* Volume control */ //U8X8_C( 0x030 ), /* select 00 commands */ U8X8_CA( 0x020, 0x00b ), /* Power control: Regulator, follower & booster on */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st75256_jlx19296(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x030 ); /* select command set */ u8x8_cad_SendCmd(u8x8, 0x075 ); /* row */ if ( u8x8->x_offset == 0 ) /* 0 means flip mode 1, then adjust y value */ u8x8_cad_SendArg(u8x8, 8+(((u8x8_tile_t *)arg_ptr)->y_pos)); else u8x8_cad_SendArg(u8x8, 1+(((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendArg(u8x8, 0x04f); //u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x015 ); /* col */ u8x8_cad_SendArg(u8x8, x+u8x8->x_offset); u8x8_cad_SendArg(u8x8, 255); u8x8_cad_SendCmd(u8x8, 0x05c ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; c *= 8; if ( c + x > 192u ) { c = 192u; c -= x; } u8x8_cad_SendData(u8x8, c, ptr); x += c; arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); return 1; case U8X8_MSG_DISPLAY_SETUP_MEMORY: //u8x8_SetI2CAddress(u8x8, 0x078); /* lowest I2C adr of the ST75256 */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75256_192x96_display_info); return 1; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx19296_init_seq); return 1; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_256x128_powersave1_seq); return 1; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256160_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx256160_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; /* if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75256_jlx172104_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; */ #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x030 ); u8x8_cad_SendCmd(u8x8, 0x081 ); /* there are 9 bit for the volume control */ u8x8_cad_SendArg(u8x8, (arg_int & 0x1f)<<1 ); /* lower 6 bit */ u8x8_cad_SendArg(u8x8, (arg_int>>5)); /* upper 3 bit */ u8x8_cad_EndTransfer(u8x8); return 1; #endif } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7528.c ================================================ /* u8x8_d_st7528.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ST7528: 16 Graylevel Controller https://github.com/olikraus/u8g2/issues/986 I2C Address: 0x03f (0x7e) ERC16004 https://www.buydisplay.com/default/2-inch-lcd-160x64-graphic-module-serial-spi-display-st7528-black-on-white */ #include "u8x8.h" static const uint8_t u8x8_d_st7528_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x038, 0x074), /* ext mode 0*/ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7528_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x038, 0x074), /* ext mode 0*/ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7528_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* ADC */ U8X8_C(0x0c8), /* SHL */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7528_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* ADC */ U8X8_C(0x0c0), /* SHL */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* input: one tile (8 Bytes) output: Tile for st7528 (32 Bytes) */ static uint8_t u8x8_st7528_8to32_dest_buf[32]; static uint8_t *u8x8_st7528_8to32(U8X8_UNUSED u8x8_t *u8x8, uint8_t *ptr) { uint8_t j; uint8_t *dest; dest = u8x8_st7528_8to32_dest_buf; for( j = 0; j < 8; j++ ) { *dest++ =*ptr; *dest++ =*ptr; *dest++ =*ptr; *dest++ =*ptr; ptr++; } return u8x8_st7528_8to32_dest_buf; } static uint8_t u8x8_d_st7528_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x; uint8_t y, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7528_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_nhd_c160100_init_seq); */ break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* ssd1326 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; // not clear y = (((u8x8_tile_t *)arg_ptr)->y_pos); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendCmd(u8x8, 0xb0 | y ); /* set page address */ u8x8_cad_SendCmd(u8x8, 0x10| (x>>4) ); /* set col msb*/ u8x8_cad_SendCmd(u8x8, 0x00| (x&15) ); /* set col lsb*/ u8x8_cad_SendData(u8x8, 32, u8x8_st7528_8to32(u8x8, ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static void u8x8_d_st7528_graylevel_init(u8x8_t *u8x8, uint8_t mode0) { uint8_t i; u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x38 ); u8x8_cad_SendArg(u8x8, mode0+1 ); for( i = 0; i < 64; i++ ) { u8x8_cad_SendCmd(u8x8, i+0x080 ); u8x8_cad_SendArg(u8x8, i & 0xfc); } u8x8_cad_SendCmd(u8x8, 0x38 ); u8x8_cad_SendArg(u8x8, mode0 ); u8x8_cad_EndTransfer(u8x8); } /*===============================================================*/ /* NHD C160100 */ static const uint8_t u8x8_d_st7528_nhd_c160100_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* I2C_out(0x48);//partial display duty ratio I2C_out(0x64);// 1/100 duty I2C_out(0xA0);//ADC select I2C_out(0xC8);//SHL select I2C_out(0x44);//initial Com0 register I2C_out(0x00);//scan from Com0 I2C_out(0xAB);//OSC on I2C_out(0x26);// I2C_out(0x81); //set electronic volume I2C_out(0x15);//vopcode=0x1C I2C_out(0x56);//set 1/11 bias I2C_out(0x64);//3x delay(2); I2C_out(0x2C);// I2C_out(0x66);//5x delay(2); I2C_out(0x2E);// delay(2); I2C_out(0x2F);//power control I2C_out(0xF3);//bias save circuit I2C_out(0x00);// I2C_out(0x96);//frc and pwm I2C_out(0x38);//external mode I2C_out(0x75);// I2C_out(0x97);//3frc, 45 pwm THIS IS A MODE0 CMD, IT IS USELESS HERE I2C_out(0x80);//start 16-level grayscale settings */ U8X8_CA(0x038, 0x064), /* ext mode 0*/ U8X8_CA(0x048, 0x064), /* partial display duty ratio, 1/100 duty*/ U8X8_C(0x0a0), /* ADC */ U8X8_C(0x0c8), /* SHL */ U8X8_CA(0x044, 0x000), /* initial Com0 */ U8X8_C(0x0ab), /* start oscillator */ U8X8_C(0x026), /* Select the internal resistance ratio of the regulator resistor */ U8X8_CA(0x081, 0x015), /* volumn */ U8X8_C(0x056), /* LCD Bias */ U8X8_C(0x064), /* DC DC step up */ U8X8_DLY(2), U8X8_C(0x02c), /* Power Control */ U8X8_C(0x066), /* DC DC step up */ U8X8_DLY(2), U8X8_C(0x02e), /* Power Control */ U8X8_DLY(2), U8X8_C(0x02f), /* Power Control */ U8X8_CA(0x0f3, 0x000), /* bias power save */ U8X8_C(0x096), /* frc and pwm */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7528_160x100_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* st7528 */ /* sck_pulse_width_ns = */ 25, /* st7528 */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* st7528 actually allows 20MHz according to the datasheet */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 80, /* st7528 */ /* tile_width = */ 20, /* tile_hight = */ 13, /* default_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* flipmode_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* pixel_width = */ 160, /* pixel_height = */ 100 }; uint8_t u8x8_d_st7528_nhd_c160100(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7528_160x100_display_info); return 1; } if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_nhd_c160100_init_seq); u8x8_d_st7528_graylevel_init(u8x8, 0x074); return 1; } return u8x8_d_st7528_generic(u8x8, msg, arg_int, arg_ptr); } /*===============================================================*/ /* ERC16064, https://www.buydisplay.com/2-inch-lcd-160x64-graphic-module-serial-spi-display-st7528-black-on-white */ /* #define ModeSet 0x38 #define ModeSetP1 0x64 //EXT=0 #define ModeSetP2 0x65 //EXT=1 #define Display_on 0xaf #define Display_off 0xae #define Regulator 0x26 #define Contrast_level 0x81 #define PowerControll_on1 0x2c #define PowerControll_on2 0x2e #define PowerControll_on3 0x2f #define LcdBias_9 0x54 #define InterOsc_on 0xab #define EntireDisp_on 0xa5 #define EntireDisp_off 0xa4 #define BoostLevel_5 0x66 #define Duty_set 0x48 #define Duty_setP 0x40 #define Start_columnlsb 0x00 #define Start_columnmsb 0x10 #define Start_page 0xb0 #define StartLine_set 0x40 //#define StartLine_setP 0x00 #define Set_Initial_COM0 0x44 #define Set_Initial_COM0P 0x12 #define Entire_Displa_ON 0xA5 #define Entire_Displa_OFF 0xA4 #define FrcPwm_set 0x92 #define NLineInversion_on 0x4c #define NLineInversion_onP 0x1f #define NLineInversion_off 0xe4 #define ReverseDisp_on 0xa7 #define ReverseDisp_off 0xa6 #define AdcSelect 0xa0 #define ComScanDirection 0xc8 Write_command(ModeSet); 0x38, 0x64 Write_command(ModeSetP1); Write_command(InterOsc_on); 0xab Write_command(Set_Initial_COM0); 0x44, 0x12 Write_command(Set_Initial_COM0P); Write_command(AdcSelect); 0xa0 Write_command(ComScanDirection); 0xc8 Write_command(BoostLevel_5); 0x66 Delay(1000); Write_command(LcdBias_9); 0x54 Write_command(Duty_set); 0x48, 0x40 Write_command(Duty_setP); Write_command(Regulator); 0x26 Write_command(Contrast_level); 0x81, 0x0b Write_command(Contrast_levelP); Write_command(PowerControll_on1); 0x2c Delay(10000); Write_command(PowerControll_on2); 0x2e Delay(1000); Write_command(PowerControll_on3); 0x2f Delay(1000); Write_command(FrcPwm_set); 0x92 Write_command(ModeSet); Write_command(ModeSetP2); for(i=0;i<64;i++) { Write_command(0x80+i); Write_command(Gray_Parameters[i]); } Write_command(ModeSet); Write_command(ModeSetP1); */ static const uint8_t u8x8_d_st7528_erc16064_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x038, 0x064), /* ext mode 0*/ U8X8_C(0x0ab), /* start oscillator */ U8X8_CA(0x044, 0x012), /* initial Com0 */ U8X8_C(0x0a0), /* ADC */ U8X8_C(0x0c8), /* SHL */ U8X8_C(0x066), /* boost level, ERC16064: 0x066 */ U8X8_DLY(1), U8X8_C(0x054), /* LCD Bias, ERC16064: 0x054 */ U8X8_CA(0x048, 0x040), /* partial display duty ratio */ U8X8_C(0x026), /* Select the internal resistance ratio of the regulator resistor */ U8X8_CA(0x081, 0x00b), /* contrast, ERC16064: 0x00b */ U8X8_C(0x02c), /* Power Control */ U8X8_DLY(2), U8X8_C(0x02e), /* Power Control */ U8X8_DLY(2), U8X8_C(0x02f), /* Power Control */ U8X8_DLY(2), U8X8_C(0x092), /* frc and pwm, ERC160624: 0x092 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7528_erc16064_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* st7528 */ /* sck_pulse_width_ns = */ 25, /* st7528 */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* st7528 actually allows 20MHz according to the datasheet */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 80, /* st7528 */ /* tile_width = */ 20, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* flipmode_x_offset = */ 0, /* x_offset is used as y offset for the ssd1326 */ /* pixel_width = */ 160, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7528_erc16064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7528_erc16064_display_info); return 1; } if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7528_erc16064_init_seq); u8x8_d_st7528_graylevel_init(u8x8, 0x064); return 1; } return u8x8_d_st7528_generic(u8x8, msg, arg_int, arg_ptr); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st75320.c ================================================ /* u8x8_d_st75320.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2019, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ST75320: 320x240 monochrome LCD https://github.com/olikraus/u8g2/issues/921 */ #include "u8x8.h" static const uint8_t u8x8_d_st75320_jlx320240_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75320_jlx320240_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75320_jlx320240_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0xC4, 0x02), /* COM Output Status, Bits 0 & 1 */ U8X8_C(0xA1), /* Column Address Direction: Bit 0 */ //U8X8_C(0x0a1), /* segment remap a0/a1*/ //U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st75320_jlx320240_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_C(0x0a0), /* segment remap a0/a1*/ //U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_CA(0xC4, 0x03), /* COM Output Status, Bits 0 & 1 */ U8X8_C(0xA0), /* Column Address Direction: Bit 0 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /*===================================================*/ static uint8_t u8x8_d_st75320_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint16_t x; uint8_t c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75320_jlx320240_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int<<2 ); u8x8_cad_SendArg(u8x8, arg_int>>6 ); u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x013); u8x8_cad_SendArg(u8x8, (x>>8) ); u8x8_cad_SendArg(u8x8, (x&255) ); u8x8_cad_SendCmd(u8x8, 0x0b1 ); u8x8_cad_SendArg(u8x8, (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x01d ); // write data do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*===================================================*/ /* QT-2832TSWUG02/ZJY-2832TSWZG02 */ static const uint8_t u8x8_d_st75320_jlx320240_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xAE), // Display OFF U8X8_CA(0xEA, 0x00), // Power Discharge Control, Discharge OFF U8X8_C(0xA8), // sleep out U8X8_C(0xAB), // OSC ON U8X8_C(0x69), // Temperature Detection ON U8X8_C(0x4E), // TC Setting U8X8_A8(0xff, 0x44, 0x12, 0x11, 0x11, 0x11, 0x22, 0x23), U8X8_CAA(0x39, 0x00, 0x00), //TC Flag U8X8_CA(0x2B, 0x00), // Frame Rate Level U8X8_CAA(0x5F, 0x66, 0x66), // Set Frame Frequency, fFR=80Hz in all temperature range U8X8_CAAA(0xEC, 0x19, 0x64, 0x6e), // FR Compensation Temp. Range, TA = -15 degree, TB = 60 degree, TC = 70 degree U8X8_CAA(0xED, 0x04, 0x04), // Temp. Hysteresis Value (thermal sensitivity) U8X8_C(0xA6), // Display Inverse OFF U8X8_C(0xA4), // Disable Display All Pixel ON U8X8_CA(0xC4, 0x02), // COM Output Status U8X8_C(0xA1), // Column Address Direction: MX=0 U8X8_CAA(0x6D, 0x07, 0x00), // Display Area, Duty = 1/240 duty, Start Group = 1 U8X8_C(0x84), // Display Data Input Direction: Column U8X8_CA(0x36, 0x1e), // Set N-Line U8X8_C(0xE4), // N-Line On U8X8_CA(0xE7, 0x19), // LCD Drive Method //NLFR=1// U8X8_CAA(0x81, 0x4f, 0x01), // OX81: Set EV=64h, 0..255, 0..3 U8X8_CA(0xA2, 0x0a), // BIAS //1/16 BIAS U8X8_CA(0x25, 0x020), // Power Control //AVDD ON U8X8_DLY(10), U8X8_CA(0x25, 0x60), // Power Control//AVDD, MV3 & NAVDD ON U8X8_DLY(10), U8X8_CA(0x25, 0x70), // Power Control //AVDD, MV3, NAVDD & V3 ON U8X8_DLY(10), U8X8_CA(0x25, 0x78), // Power Control//AVDD, MV3, NAVDD, V3 & VPF ON U8X8_DLY(10), U8X8_CA(0x25, 0x7c), // Power Control//AVDD, MV3, NAVDD, V3, VPF & VNF ON U8X8_DLY(10), U8X8_CA(0x25, 0x7e), // Power Control//VOUT, AVDD, MV3, NAVDD, V3, VPF & VNF ON U8X8_DLY(10), U8X8_CA(0x25, 0x7f), // Power Control/VOUT, AVDD, MV3, NAVDD, V3, VPF & VNF ON U8X8_DLY(10), //U8X8_C(0xaf); //Display ON U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st75320_jlx320240_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 40, /* tile_hight = */ 30, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 320, /* pixel_height = */ 240 }; uint8_t u8x8_d_st75320_jlx320240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st75320_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st75320_jlx320240_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st75320_jlx320240_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7565.c ================================================ /* u8x8_d_st7565.c also includes support for nt7534 Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_st7565_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a4), /* all pixel off, issue 142 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7565_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7565_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7565_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7565_zflip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7565_zflip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7565_128x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7565_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7565 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7565 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* DOGM128 */ static const uint8_t u8x8_d_st7565_dogm128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_ea_dogm128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_dogm128_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* LM6063 https://github.com/olikraus/u8g2/issues/893 */ static const uint8_t u8x8_d_st7565_lm6063_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 50/4), /* set contrast, contrast value, 40..60 seems to be good */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_lm6063(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_lm6063_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* Displaytech 64128n */ static const uint8_t u8x8_d_st7565_64128n_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ #ifdef NOT_WORKING U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ //U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ //U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_C(0x010), /* Set V0 voltage resistor ratio. Setting for controlling brightness of Displaytech 64128N */ U8X8_CA(0x081, 0x01e), /* set contrast, contrast value */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ #else U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0A2), /* 0x0a2: LCD bias 1/9 (according to Displaytech 64128N datasheet) */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ //U8X8_C(0x0A0), /* Normal ADC Select (according to Displaytech 64128N datasheet) */ //U8X8_C(0x0c8), /* common output mode: set scan direction normal operation/SHL Select, 0x0c0 --> SHL = 0, normal, 0x0c8 --> SHL = 1 */ U8X8_C(0x040), /* Display start line for Displaytech 64128N */ U8X8_C(0x028 | 0x04), /* power control: turn on voltage converter */ U8X8_C(0x028 | 0x06), /* power control: turn on voltage regulator */ U8X8_C(0x028 | 0x07), /* power control: turn on voltage follower */ U8X8_C(0x010), /* Set V0 voltage resistor ratio. Setting for controlling brightness of Displaytech 64128N */ /* 19 Jul 17: Not sure if this is true, cmd 0x1? is used to set the column */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x081), /* set contrast */ U8X8_C(0x01e), /* Contrast value. Setting for controlling brightness of Displaytech 64128N */ //U8X8_C(0x0af), /* display on */ //U8X8_C(0x0a5), /* display all points, ST7565 */ //U8X8_C(0x0a4), /* normal display */ U8X8_C(0x0ae), /* display off */ #endif U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7565_64128n_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7565_64128n(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_64128n_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_64128n_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* ZOLEN 128x64 */ static const uint8_t u8x8_d_st7565_zolen_128x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c0), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x007), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_zolen_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_zolen_128x64_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_zflip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_zflip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* NHD-C12832 */ static const u8x8_display_info_t u8x8_st7565_128x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 4, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 32 }; static const uint8_t u8x8_d_st7565_nhd_c12832_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x023), /* set V0 voltage resistor ratio to large*/ U8X8_CA(0x081, 0x00a), /* set contrast, contrast value NHD C12832 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_nhd_c12832(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_128x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_nhd_c12832_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* NHD-C12864 */ static const u8x8_display_info_t u8x8_st7565_nhd_c12864_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_st7565_nhd_c12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x023), /* set V0 voltage resistor ratio to large*/ U8X8_CA(0x081, 180), /* set contrast, contrast value NHD C12864, see issue 186, increased contrast to 180 (issue 219) */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_nhd_c12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_nhd_c12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_nhd_c12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* JLX12864 */ uint8_t u8x8_d_st7565_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { return u8x8_d_st7565_nhd_c12864(u8x8, msg, arg_int, arg_ptr); } /*================================================*/ /* LM6059 (Adafruit)... probably this is a ST7567 display */ static const uint8_t u8x8_d_st7565_lm6059_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x060), /* set display start line to ... */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ //U8X8_C(0x0a1), /* ADC set to reverse */ //U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature) */ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7565_lm6059_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 1, /* not sure... */ /* flipmode_x_offset = */ 3, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7565_lm6059(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_lm6059_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_lm6059_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* https://github.com/olikraus/u8g2/issues/1314 */ /* KS0713 controller, takeover from LM6059 */ static const uint8_t u8x8_d_st7565_ks0713_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0a3), /* LCD bias 1/9 */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_C(0x026), /* set V0 voltage resistor ratio to max */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_CA(0x081, 0x010), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_ks0713(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_lm6059_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_ks0713_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* LX12864 issue 576 */ static const uint8_t u8x8_d_st7565_lx12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x060), /* set display start line to ... */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ //U8X8_C(0x0a1), /* ADC set to reverse */ //U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature) */ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x008), /* set contrast, contrast value */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7565_lx12864_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 1, /* not sure... */ /* flipmode_x_offset = */ 3, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7565_lx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_lx12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_lx12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* ERC12864-1 (buydisplay.com) */ static const uint8_t u8x8_d_st7565_erc12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to ... */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ //U8X8_C(0x0a1), /* ADC set to reverse */ //U8X8_C(0x0c0), /* common output mode */ // Flipmode // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature)*/ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7565_erc12864_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7565_erc12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_erc12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_erc12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* ERC12864-1 alternative version, suggested in issue 790 */ static const uint8_t u8x8_d_st7565_erc12864_alt_init_seq[] = { // original sequence // U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ // U8X8_C(0x0e2), /* soft reset */ // U8X8_C(0x0ae), /* display off */ // U8X8_C(0x040), /* set display start line to ... */ // U8X8_C(0x0a0), /* ADC set to reverse */ // U8X8_C(0x0c8), /* common output mode */ // U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ // U8X8_C(0x0a3), /* LCD bias 1/9 */ // U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ // U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature)*/ // U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ // U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */ // U8X8_C(0x0ae), /* display off */ // U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ // U8X8_END_TRANSFER(), /* disable chip */ // U8X8_END() /* end of sequence */ // suggested in https://github.com/olikraus/u8g2/issues/790 U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to ... */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 - *** Changed by Ismail - was 0xa3 - 1/7 bias we were getting dark pixel off */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature)*/ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x05), /* set contrast, contrast value, EA default: 0x016 - *** Changed by Ismail to 0x05 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_erc12864_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_erc12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_erc12864_alt_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* NT7534, TG12864R */ /* The NT7534 has an extended command set for the ST7565, however this is not used. */ /* The TG12864R display is also shifted in lines, like the LM6059/Adafruit display */ /* However contrast seems to be different */ static const uint8_t u8x8_d_nt7534_tg12864r_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x060), /* set display start line to ... */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ // Flipmode //U8X8_C(0x0a1), /* ADC set to reverse */ //U8X8_C(0x0c0), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on (regulator, booster and follower) */ //U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x (ST7567 feature)*/ U8X8_C(0x027), /* set V0 voltage resistor ratio to max */ U8X8_CA(0x081, 0x009), /* set contrast, contrast value, EA default: 0x016 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_nt7534_tg12864r(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: /* reuse the LM6059 data structure... this display seems to have similar shifts and offsets */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_lm6059_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); //u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_lm6059_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_nt7534_tg12864r_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* EA DOGM132 */ static const u8x8_display_info_t u8x8_st7565_dogm132_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* st7565 datasheet, table 26, tcsh */ /* pre_chip_disable_wait_ns = */ 50, /* st7565 datasheet, table 26, tcss */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* write_pulse_width_ns = */ 80, /* st7565 datasheet, table 24, tcclw */ /* tile_width = */ 17, /* width of 16*8=136 pixel */ /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 132, /* pixel_height = */ 32 }; static const uint8_t u8x8_d_st7565_dogm132_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */ U8X8_C(0x023), /* set V0 voltage resistor ratio to large*/ U8X8_CA(0x081, 0x01f), /* set contrast, contrast value EA DOGM132 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7565_ea_dogm132(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_st7565_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7565_dogm132_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_dogm132_init_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7565_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7567.c ================================================ /* u8x8_d_st7567.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_st7567_132x64_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a4), /* all pixel off, issue 142 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7567_132x64_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7567_132x64_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7567_132x64_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7567_n_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7567_n_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /*=====================================================*/ static const u8x8_display_info_t u8x8_st7567_132x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 17, /* width of 17*8=136 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 132, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_st7567_132x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/7 */ /* power on sequence from paxinstruments */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x026), /* v0 voltage resistor ratio */ U8X8_CA(0x081, 0x027), /* set contrast, contrast value*/ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* pax instruments 132x64 display */ uint8_t u8x8_d_st7567_pi_132x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_132x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=====================================================*/ static const u8x8_display_info_t u8x8_st7567_jlx12864_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_st7567_jlx12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/7 */ /* power on sequence from paxinstruments */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x023), /* v0 voltage resistor ratio */ U8X8_CA(0x081, 42>>2), /* set contrast, contrast value*/ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* JLX12864 display */ uint8_t u8x8_d_st7567_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_jlx12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_st7567_jlx12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=====================================================*/ static const u8x8_display_info_t u8x8_st7567_enh_dg128064_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const u8x8_display_info_t u8x8_st7567_enh_dg128064i_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_st7567_enh_dg128064_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ /* power on sequence from paxinstruments */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x023), /* v0 voltage resistor ratio */ U8X8_CA(0x081, 200>>2), /* set contrast, contrast value*/ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* ENH-DG128064 transparent display */ static uint8_t u8x8_d_st7567_enh_dg128064_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_enh_dg128064_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_st7567_enh_dg128064_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } uint8_t u8x8_d_st7567_enh_dg128064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_enh_dg128064_display_info); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_n_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_n_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_st7567_enh_dg128064_generic(u8x8, msg, arg_int, arg_ptr); } return 1; } uint8_t u8x8_d_st7567_enh_dg128064i(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_enh_dg128064i_display_info); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return u8x8_d_st7567_enh_dg128064_generic(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=====================================================*/ /* issue 657 */ static const u8x8_display_info_t u8x8_st7567_64x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 8, /* tile_hight = */ 4, /* default_x_offset = */ 32, /* flipmode_x_offset = */ 32, /* pixel_width = */ 64, /* pixel_height = */ 32 }; static const uint8_t u8x8_st7567_64x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x024), /* v0 voltage resistor ratio, taken from issue 657 */ U8X8_CA(0x081, 0x020), /* set contrast, contrast value*/ /* 18 Apr 2020: the value 0x080 does not make sense, only 6 bit are supported for contrast, changed to 0x040 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7567_64x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_64x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_st7567_64x32_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=====================================================*/ /* issue 1159, Lummax HEM6432-03 */ static const u8x8_display_info_t u8x8_st7567_hem6432_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 8, /* tile_hight = */ 4, /* default_x_offset = */ 36, /* issue 1159 */ /* flipmode_x_offset = */ 32, /* issue 1159 */ /* pixel_width = */ 64, /* pixel_height = */ 32 }; static const uint8_t u8x8_st7567_hem6432_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x024), /* v0 voltage resistor ratio, taken from issue 657 */ U8X8_CA(0x081, 225/4), /* set contrast, contrast value as suggested inissue 1159 */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7567_hem6432(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_hem6432_display_info); u8x8->i2c_address = 0x07e; /* issue 1159, use different i2c address */ break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_st7567_hem6432_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=====================================================*/ /* https://github.com/olikraus/u8g2/issues/1088 https://www.dx.com/p/opensmart-33v-26-inch-128x64-serial-spi-monochrome-lcd-breakout-board-module-with-backlight-for-arduino-nano-pro-mini-2710499.html */ static const u8x8_display_info_t u8x8_st7567_os12864_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* */ /* pre_chip_disable_wait_ns = */ 50, /* */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 1, /* sda_setup_time_ns = */ 50, /* */ /* sck_pulse_width_ns = */ 120, /* */ /* sck_clock_hz = */ 4000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* */ /* write_pulse_width_ns = */ 80, /* */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 4, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_st7567_os12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a3), /* LCD bias 1/7 */ /* power on sequence from paxinstruments */ U8X8_C(0x028|4), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|6), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x028|7), /* all power control circuits on */ U8X8_DLY(50), U8X8_C(0x026), /* v0 voltage resistor ratio */ U8X8_CA(0x081, 50>>2), /* set contrast, contrast value*/ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* open-smart 12864 display */ uint8_t u8x8_d_st7567_os12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7567_os12864_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_st7567_os12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7567_132x64_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* st7567 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the st7567 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7571.c ================================================ /* u8x8_d_st7571.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2020, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ST7571: 128x129 2-bit graylevel LCD https://github.com/olikraus/u8g2/issues/921 */ #include "u8x8.h" static const uint8_t u8x8_d_st7571_128x128_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x071), /* exit power save mode */ U8X8_C(0x0a8), /* disable powersave mode */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7571_128x128_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a9), /* enter powersave mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7571_128x128_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7571_128x128_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /*===================================================*/ static uint8_t u8x8_d_st7571_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint16_t x; uint8_t c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7571_128x128_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int>>2); // 6 bit for the ST7571 u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes */ /* if ( c > 31 ) { u8x8_cad_SendData(u8x8, 31*8, ptr); ptr+=31*8; c -= 31; } */ u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*===================================================*/ /* QT-2832TSWUG02/ZJY-2832TSWZG02 */ static const uint8_t u8x8_d_st7571_128x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0xAE), // Display OFF U8X8_C(0x38), // Mode Set U8X8_C(0xB8), // FR=1011 (85Hz), BE[1:0]=10, level 3 booster U8X8_C(0xA0), // ADC select U8X8_C(0xC8), // SHL select U8X8_CA(0x44, 0x00), // COM0 register U8X8_CA(0x40, 0x7f), // initial display line (0x7f... strange but ok... maybe specific for the JLX128128) U8X8_C(0xAB), // OSC ON U8X8_C(0x25), // Voltage regulator U8X8_CA(0x81, 0x33), // Volume U8X8_C(0x54), // LCD Bias: 0x056=1/11 (1/11 according to JLX128128 datasheet), 0x054=1/9 U8X8_CA(0x44, 0x7f), // Duty 1/128 U8X8_C(0x2C), // Power Control, VC: ON, VR: OFF, VF: OFF U8X8_DLY(200), U8X8_C(0x2E), // Power Control, VC: ON, VR: ON, VF: OFF U8X8_DLY(200), U8X8_C(0x2F), // Power Control, VC: ON, VR: ON, VF: ON U8X8_DLY(10), U8X8_C(0x7B), // command set 3 U8X8_C(0x11), // black white mode U8X8_C(0x00), // exit command set 3 U8X8_C(0xA6), // Display Inverse OFF U8X8_C(0xA4), // Disable Display All Pixel ON //U8X8_C(0xAF), // Display on U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7571_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 20, /* */ /* sck_pulse_width_ns = */ 40, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 15, /* write_pulse_width_ns = */ 70, /* tile_width = */ 16, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_st7571_128x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st7571_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; switch(msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7571_128x128_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7571_128x128_display_info); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7586s_erc240160.c ================================================ /* u8x8_d_st7586s_erc240160.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" static const uint8_t u8x8_d_st7586s_sleep_on[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x010), /* set power save mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_sleep_off[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x011), //Sleep out U8X8_DLY(50), /* delay 50 ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_erc240160_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x0C8), /* COM159 -> COM0 SEG383 -> SEG0 */ U8X8_C(0x037), /* Start line 0 */ U8X8_A(0x000), U8X8_C(0x02A), /* Column Address Setting */ U8X8_A(0x000), /* COL8 -> COL127 */ U8X8_A(0x008), U8X8_A(0x000), U8X8_A(0x07F), /* 120*3=240 pixels + 120 unused */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_erc240160_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x000), /* COM0 -> COM159 SEG0 -> SEG383 */ U8X8_C(0x037), /* Start line 0 */ U8X8_A(0x000), U8X8_C(0x02A), /* Column Address Setting */ U8X8_A(0x000), /* COL0 -> COL119 */ U8X8_A(0x000), U8X8_A(0x000), U8X8_A(0x077), /* 120*3=240 pixels + 120 unused */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_erc240160_init_seq[] = { U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(1), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ U8X8_START_TRANSFER(),/* enable chip */ U8X8_C(0x001), // Soft reset U8X8_DLY(60), // Delay 120 ms U8X8_C(0x011), // Sleep Out U8X8_C(0x028), // Display OFF U8X8_DLY(25), // Delay 50 ms U8X8_CAA(0x0C0,0x036,0x01),// Vop = 136h data sheet suggested 0x0145 but this caused streaks U8X8_CA(0x0C3,0x000), // BIAS = 1/14 U8X8_CA(0x0C4,0x007), // Booster = x8 U8X8_CA(0x0D0,0x01D), // Enable Analog Circuit U8X8_CA(0x0B3,0x000), // Set FOSC divider U8X8_CA(0x0B5,0x000), // N-Line = 0 U8X8_C(0x039), // 0x39 Monochrome mode. 0x38 - gray Mode U8X8_C(0x03A), // Enable DDRAM Interface U8X8_A(0x002), // monochrome and 4-level U8X8_C(0x036), // Scan Direction Setting U8X8_A(0x0C8), // COM:C159->C0 SEG: SEG383->SEG0 U8X8_C(0x0B1), // First output COM U8X8_A(0x000), // U8X8_C(0x0B0), // Duty Setting (num rows - 1) U8X8_A(0x09F), U8X8_C(0x020), // Display inversion off U8X8_C(0x02A), // Column Address Setting U8X8_A(0x000), // COL0 -> COL127 U8X8_A(0x008), // U8X8_A(0x000), // U8X8_A(0x07F), // 80*3=240 pixels U8X8_C(0x02B), // Row Address Setting U8X8_A(0x000), // ROW0 -> ROW159 U8X8_A(0x000), // U8X8_A(0x000), // U8X8_A(0x09F), // 160 pixels U8X8_C(0x029), // Display ON U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7586s_erc240160_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 100, /* datasheet ST7586S */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* ST7586+Atmega128RFA1 works with 8MHz */ /* spi_mode = */ 3, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 20, /* datasheet suggests min 20 */ /* write_pulse_width_ns = */ 40, /* tile_width = */ 30, /* tile_height = */ 20, /* default_x_offset = */ 0, /* abused as flag to know if we are flipped */ /* flipmode_x_offset = */ 1, /* as pixel order different for normal/flipped */ /* pixel_width = */ 240, /* pixel_height = */ 160 }; /******************************************************************************* * st7586s_erc240160 driver. ST7586 based display from buydisplay.com ******************************************************************************/ uint8_t u8x8_d_st7586s_erc240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c; uint8_t *ptr; uint8_t i, byte; uint32_t input; uint8_t output[4]; switch (msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); // OK Start transfer u8x8_cad_SendCmd(u8x8, 0x02B); /* Row Address Setting */ u8x8_cad_SendArg(u8x8, 0x000); u8x8_cad_SendArg(u8x8, 0x008 * ((u8x8_tile_t *)arg_ptr)->y_pos); u8x8_cad_SendArg(u8x8, 0x000); u8x8_cad_SendArg(u8x8, 0x09F); // should set end row based on display dimensions u8x8_cad_SendCmd(u8x8, 0x02C); /* cmd write display data to ram */ c = ((u8x8_tile_t *) arg_ptr)->cnt; // c *= 8; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; // // The ST7586S has an unusual 3 pixels per byte format the ERC240160 is even more annoying // as it has every 3rd COM line disconnected for extra oddness so here we read in a byte // (8 pixels) and pack that into 4 bytes of 2 pixels + 1 unused each. This has to be done // in a different order for flipped, normal UUx11x22 flipped 11x22xUU while (c > 0) { input = ((uint8_t)ptr[0]); for (i=0; i<4; i++) { byte = 0; if (u8x8->x_offset ==0){ if (input & 0x80) // if bit 7 byte = byte | 0x18; //set pixel 1 if (input & 0x40) // if bit 6 byte = byte | 0x3; //set pixel 2 } if (u8x8->x_offset ==1){ if (input & 0x80) // if bit 7 byte = byte | 0xC0; //set pixel 1 if (input & 0x40) // if bit 6 byte = byte | 0x18; //set pixel 2 } output[i] = byte; input <<= 2; } u8x8_cad_SendData(u8x8, 4, output); ptr += 1; c -= 1; } u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_erc240160_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7586s_erc240160_display_info); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_erc240160_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_erc240160_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_off); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_on); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0C0); u8x8_cad_SendArg(u8x8, arg_int); u8x8_cad_SendArg(u8x8, 1); u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7586s_s028hn118a.c ================================================ /* u8x8_d_st7586s_s028hn118a.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" static const uint8_t u8x8_d_st7586s_sleep_on[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x010), /* set power save mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_sleep_off[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x011), //Sleep out U8X8_DLY(50), /* delay 50 ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_s028hn118a_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x000), /* COM0 -> COM159 SEG0 -> SEG384 */ U8X8_C(0x037), /* Start line 0 */ U8X8_A(0x000), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_s028hn118a_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x0C8), /* COM159 -> COM0 SEG384 -> SEG0 */ U8X8_C(0x037), /* Start line 24 */ U8X8_A(0x018), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_st7586s_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c; uint8_t *ptr; uint8_t i, byte; uint32_t input; uint8_t output[8]; switch (msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); // OK Start transfer u8x8_cad_SendCmd(u8x8, 0x02B); /* Row Address Setting */ u8x8_cad_SendArg(u8x8, 0x000); u8x8_cad_SendArg(u8x8, 0x008 * ((u8x8_tile_t *)arg_ptr)->y_pos); u8x8_cad_SendArg(u8x8, 0x000); u8x8_cad_SendArg(u8x8, u8x8->display_info->pixel_height - 1); /* should this be u8x8->display_info->pixel_height - 1 */ u8x8_cad_SendCmd(u8x8, 0x02C); /* cmd write display data to ram */ c = ((u8x8_tile_t *) arg_ptr)->cnt; // c *= 8; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; // // The ST7586S has an unusual 3 pixels per byte format so here we read in 3 bytes (24 pixels) and // pack that into 8 bytes of 3 pixels each while (c > 0) { input = (((uint32_t)ptr[0] << 16) | ((uint32_t)ptr[1] << 8) | (uint32_t)ptr[2]); for (i=0; i<8; i++) { byte = 0; if (input & 0x800000) // if bit 23 byte = byte | 0xC0; //set pixel 1 if (input & 0x400000) // if bit 22 byte = byte | 0x18; //set pixel 2 if (input & 0x200000) // if bit 22 byte = byte | 0x3; //set pixel 3 output[i] = byte; input <<= 3; } u8x8_cad_SendData(u8x8, 8, output); ptr += 3; c -= 3; } u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_off); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_on); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0C0); u8x8_cad_SendArg(u8x8, arg_int); u8x8_cad_SendArg(u8x8, 0); u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } static const uint8_t u8x8_d_st7586s_s028hn118a_init_seq[] = { U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(15), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ U8X8_START_TRANSFER(),/* enable chip */ U8X8_C(0x001), // Soft reset U8X8_DLY(60), // Delay 120 ms U8X8_C(0x011), // Sleep Out U8X8_C(0x028), // Display OFF U8X8_DLY(25), // Delay 50 ms U8X8_CAA(0x0C0,0x0E5,0x00),// Vop = F0h in trace a bit too dark U8X8_CA(0x0C3,0x004), // BIAS = 1/10 0x04 in trace U8X8_CA(0x0C4,0x005), // Booster = x6 0x05 in trace U8X8_CA(0x0D0,0x01D), // Enable Analog Circuit U8X8_CA(0x0B3,0x000), // Set FOSC divider U8X8_CA(0x0B5,0x08B), // N-Line = 0 U8X8_C(0x039), // 0x39 Monochrome mode. 0x38 - gray Mode U8X8_C(0x03A), // Enable DDRAM Interface U8X8_A(0x002), // monochrome and 4-level U8X8_C(0x036), // Scan Direction Setting U8X8_A(0x000), // COM0 -> COM159 SEG0 -> SEG384 U8X8_C(0x0B0), // Duty Setting (num rows - 1) U8X8_A(0x087), // should be 0x87 but caused flicker 0x9F U8X8_C(0x020), // Display inversion off U8X8_C(0x02A), // Column Address Setting U8X8_A(0x000), // COL0 -> COL127 U8X8_A(0x000), // U8X8_A(0x000), // U8X8_A(0x07f), // 128*3=384 pixels U8X8_C(0x02B), // Row Address Setting U8X8_A(0x000), // ROW0 -> ROW135 U8X8_A(0x000), // U8X8_A(0x000), // U8X8_A(0x087), // 136 pixels U8X8_C(0x0F1), // Frame rate monochrome U8X8_A(0x00C), // The factory firmware set this to 49.0 Hz 0x07 U8X8_A(0x00C), // This caused a shimmer under 50Hz LED lights U8X8_A(0x00C), // 69.0 Hz (0x0C) fixes this and should avoid the U8X8_A(0x00C), // issue in the US too U8X8_C(0x029), // Display ON U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7586s_s028hn118a_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 100, /* datasheet ST7586S */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* ST7586+Atmega128RFA1 works with 8MHz */ /* spi_mode = */ 3, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 20, /* datasheet suggests min 20 */ /* write_pulse_width_ns = */ 40, /* tile_width = */ 48, /* tile_height = */ 17, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 384, /* pixel_height = */ 136 }; /******************************************************************************* * st7586s_s028hn118a driver. This is the display in the SMART Response XE. This requires 16 bit mode. ******************************************************************************/ uint8_t u8x8_d_st7586s_s028hn118a(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if (u8x8_d_st7586s_common(u8x8, msg, arg_int, arg_ptr) != 0) return 1; switch (msg) { case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_s028hn118a_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7586s_s028hn118a_display_info); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_s028hn118a_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_s028hn118a_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7586s_ymc240160.c ================================================ /* u8x8_d_st7586s_ymc240160.c takeover from https://github.com/olikraus/u8g2/issues/1183 Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2020, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g2.h" static const uint8_t u8x8_d_st7586s_sleep_on[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x010), /* set power save mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_sleep_off[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x011), //Sleep out U8X8_DLY(50), /* delay 50 ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_ymc240160_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x080), /* COM159 -> COM0 SEG383 -> SEG0 */ U8X8_C(0x037), /* Start line 0 */ U8X8_A(0x000), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_ymc240160_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x036), /* Scan Direction Setting */ U8X8_A(0x000), /* COM0 -> COM159 SEG0 -> SEG383 */ U8X8_C(0x037), /* Start line 0 */ U8X8_A(0x000), U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7586s_ymc240160_init_seq[] = { U8X8_END_TRANSFER(),/* disable chip */ // U8G_ESC_RST(1), /* hardware reset */ U8X8_DLY(60), /* Delay 60 ms */ U8X8_START_TRANSFER(),/* enable chip */ U8X8_C(0x001), // Soft reset U8X8_DLY(60), // Delay 120 ms U8X8_C(0x011), // Sleep Out U8X8_C(0x028), // Display OFF U8X8_DLY(25), // Delay 50 ms U8X8_CAA(0x0C0,0x036,0x01),// Vop = 136h data sheet suggested 0x0145 but this caused streaks U8X8_CA(0x0C3,0x000), // BIAS = 1/14 U8X8_CA(0x0C4,0x007), // Booster = x8 U8X8_CA(0x0D0,0x01D), // Enable Analog Circuit U8X8_CA(0x0B3,0x000), // Set FOSC divider U8X8_CA(0x0B5,0x000), // N-Line = 0 U8X8_C(0x039), // 0x39 Monochrome mode. 0x38 - gray Mode U8X8_C(0x03A), // Enable DDRAM Interface U8X8_A(0x002), // monochrome and 4-level U8X8_C(0x036), // Scan Direction Setting U8X8_A(0x080), // COM:C159->C0 SEG: SEG383->SEG0 U8X8_C(0x0B1), // First output COM U8X8_A(0x000), // U8X8_C(0x0B0), // Duty Setting (num rows - 1) U8X8_A(0x09F), U8X8_C(0x020), // Display inversion off U8X8_C(0x02A), // Column Address Setting U8X8_A(0x000), // COL0 -> COL127 U8X8_A(0x000), // U8X8_A(0x000), // U8X8_A(0x04F), // 80*3=240 pixels U8X8_C(0x02B), // Row Address Setting U8X8_A(0x000), // ROW0 -> ROW159 U8X8_A(0x000), // U8X8_A(0x000), // U8X8_A(0x09F), // 160 pixels U8X8_C(0x029), // Display ON U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_st7586s_ymc240160_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 100, /* datasheet ST7586S */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* ST7586+Atmega128RFA1 works with 8MHz */ /* spi_mode = */ 3, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 20, /* datasheet suggests min 20 */ /* write_pulse_width_ns = */ 40, /* tile_width = */ 30, /* tile_height = */ 20, /* default_x_offset = */ 0, /* abused as flag to know if we are flipped */ /* flipmode_x_offset = */ 1, /* as pixel order different for normal/flipped */ /* pixel_width = */ 240, /* pixel_height = */ 160 }; /* takeover from https://github.com/olikraus/u8g2/issues/1183 */ uint8_t u8x8_d_st7586s_ymc240160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c; uint8_t *ptr; uint8_t i, byte; uint32_t input; uint8_t output[8]; // uint8_t output[4]; switch (msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); // OK Start transfer u8x8_cad_SendCmd(u8x8, 0x02B); /* Row Address Setting */ u8x8_cad_SendArg(u8x8, 0x000); u8x8_cad_SendArg(u8x8, 0x008 * ((u8x8_tile_t *)arg_ptr)->y_pos); u8x8_cad_SendArg(u8x8, 0x000); // u8x8_cad_SendArg(u8x8, 0x09F); // should set end row based on display dimensions u8x8_cad_SendArg(u8x8, u8x8->display_info->pixel_height - 1); /* should this be u8x8->display_info->pixel_height - 1 */ u8x8_cad_SendCmd(u8x8, 0x02C); /* cmd write display data to ram */ c = ((u8x8_tile_t *) arg_ptr)->cnt; // c *= 8; ptr = ((u8x8_tile_t *) arg_ptr)->tile_ptr; // while (c > 0) { input = (((uint32_t)ptr[0] << 16) | ((uint32_t)ptr[1] << 8) | (uint32_t)ptr[2]); for (i=0; i<8; i++) { byte = 0; if (input & 0x800000) // if bit 23 byte = byte | 0xC0; //set pixel 1 if (input & 0x400000) // if bit 22 byte = byte | 0x18; //set pixel 2 if (input & 0x200000) // if bit 22 byte = byte | 0x3; //set pixel 3 output[i] = byte; input <<= 3; } u8x8_cad_SendData(u8x8, 8, output); ptr += 3; c -= 3; } u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_ymc240160_init_seq); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7586s_ymc240160_display_info); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_ymc240160_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_ymc240160_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_off); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7586s_sleep_on); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x0C0); u8x8_cad_SendArg(u8x8, arg_int); u8x8_cad_SendArg(u8x8, 1); u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7588.c ================================================ /* u8x8_d_st7588.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ST7588 - has 4 different I2C addresses - I2C protocol is identical to SSD13xx */ #include "u8x8.h" /* function set, bit 2: power down, bit 3: MY, bit 4: MX, bit 5: must be 1 */ #define FS (0x020) /* not a real power down for the ST7588... just a display off */ static const uint8_t u8x8_d_st7588_128x64_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( FS | 0x00 ), /* select 00 commands */ //U8X8_C( 0x08 ), /* display off */ U8X8_C( 0x0c ), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7588_128x64_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( FS | 0x00 ), /* select 00 commands */ U8X8_C( 0x08 ), /* display off */ //U8X8_C( 0x0c ), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static uint8_t u8x8_d_st7588_128x64_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { /* handled by the calling function case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7588_128x64_display_info); break; */ /* handled by the calling function case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_128x64_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_128x64_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_128x64_powersave1_seq); /* restore orientation */ if ( u8x8->x_offset == 0 ) u8x8_cad_SendCmd(u8x8, FS ); /* select 00 commands */ else u8x8_cad_SendCmd(u8x8, FS ^ 0x018 ); /* select 00 commands */ break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, FS ); u8x8_cad_SendArg(u8x8, 4 | (arg_int>>7) ); u8x8_cad_SendCmd(u8x8, FS | 1); u8x8_cad_SendArg(u8x8, 0x080 | arg_int ); /* restore orientation */ if ( u8x8->x_offset == 0 ) u8x8_cad_SendCmd(u8x8, FS ); /* select 00 commands */ else u8x8_cad_SendCmd(u8x8, FS ^ 0x018 ); /* select 00 commands */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; if ( u8x8->x_offset == 0 ) u8x8_cad_SendCmd(u8x8, FS ); /* select 00 commands */ else u8x8_cad_SendCmd(u8x8, FS ^ 0x018 ); /* select 00 commands */ u8x8_cad_SendCmd(u8x8, 0x040 | (((u8x8_tile_t *)arg_ptr)->y_pos)); u8x8_cad_SendCmd(u8x8, 0x0e0 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0f0 | (x>>4) ); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; u8x8_cad_SendData(u8x8, c*8, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_st7588_128x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 150, /* pre_chip_disable_wait_ns = */ 30, /* reset_pulse_width_ms = */ 5, /* post_reset_wait_ms = */ 5, /**/ /* sda_setup_time_ns = */ 60, /* */ /* sck_pulse_width_ns = */ 60, /* */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* 400KHz */ /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 50, /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* must be 0, because this is checked also for normal mode */ /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_st7588_128x64_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( FS | 0x03 ), /* select 11 commands */ U8X8_C( 0x03 ), /* software reset */ U8X8_C( FS | 0x00 ), /* select 00 commands */ U8X8_C( 0x08 ), /* display off */ //U8X8_C( 0x0c ), /* display on */ U8X8_C( FS | 0x01 ), /* select 01 commands */ U8X8_C( 0x08 ), /* display confguration */ U8X8_C( 0x12 ), /* bias 1/9 */ U8X8_C( 0x8f ), /* Vop, lower 7 bits */ U8X8_C( FS | 0x00 ), /* select 00 commands */ U8X8_C( 0x05), /* Bit 0 contains high/low range for Vop */ U8X8_C( FS | 0x03 ), /* select 11 commands */ U8X8_C( 0x0b), /* Frame Rate: 73 Hz */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7588_jlx12864_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( FS ), /* normal mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7588_jlx12864_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C( FS ^ 0x018 ), /* normal mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7588_jlx12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_st7588_128x64_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) return 1; if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY ) { u8x8_SetI2CAddress(u8x8, 0x07e); /* the JLX12864 has 0x07e as a default address for I2C */ u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7588_128x64_display_info); return 1; } else if ( msg == U8X8_MSG_DISPLAY_INIT ) { u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_128x64_init_seq); return 1; } else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_jlx12864_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_st7588_jlx12864_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_st7920.c ================================================ /* u8x8_d_st7920.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The ST7920 controller does not support hardware graphics flip. Contrast adjustment is done by an external resistor --> no support for contrast adjustment */ #include "u8x8.h" static const uint8_t u8x8_d_st7920_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(10), U8X8_C(0x038), /* 8 Bit interface (DL=1), basic instruction set (RE=0) */ U8X8_C(0x008), /* display on, cursor & blink off; 0x08: all off */ U8X8_C(0x006), /* Entry mode: Cursor move to right ,DDRAM address counter (AC) plus 1, no shift */ U8X8_C(0x002), /* disable scroll, enable CGRAM adress */ U8X8_C(0x001), /* clear RAM, needs 1.6 ms */ U8X8_DLY(4), /* delay 2ms */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7920_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x038), /* 8 Bit interface (DL=1), basic instruction set (RE=0) */ U8X8_C(0x00c), /* display on, cursor & blink off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_st7920_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x038), /* 8 Bit interface (DL=1), basic instruction set (RE=0) */ U8X8_C(0x008), /* display off */ U8X8_C(0x034), /* 8 Bit interface (DL=1), extended instruction set (RE=1) */ U8X8_C(0x001), /* Standby mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_st7920_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c, i; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; */ case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_st7920_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_st7920_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_st7920_powersave1_seq); break; case U8X8_MSG_DISPLAY_DRAW_TILE: y = (((u8x8_tile_t *)arg_ptr)->y_pos); y*=8; x = ((u8x8_tile_t *)arg_ptr)->x_pos; x /= 2; /* not sure whether this is a clever idea, problem is, the ST7920 can address only every second tile */ if ( y >= 32 ) /* this is the adjustment for 128x64 displays */ { y-=32; x+=8; } u8x8_cad_StartTransfer(u8x8); /* Tile structure is reused here for the ST7920, however u8x8 is not supported tile_ptr points to data which has cnt*8 bytes (same as SSD1306 tiles) Buffer is expected to have 8 lines of code fitting to the ST7920 internal memory "cnt" includes the number of horizontal bytes. width is equal to cnt*8 Also important: Width must be a multiple of 16 (ST7920 requirement), so cnt must be even. TODO: Consider arg_int, however arg_int is not used by u8g2 */ c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ /* The following byte is sent to allow the ST7920 to sync up with the data */ /* it solves some issues with garbage data */ u8x8_cad_SendCmd(u8x8, 0x03e ); /* enable extended mode */ u8x8_cad_SendCmd(u8x8, 0x03e ); /* enable extended mode, issue 487 */ for( i = 0; i < 8; i++ ) { //u8x8_cad_SendCmd(u8x8, 0x03e ); /* enable extended mode */ u8x8_cad_SendCmd(u8x8, 0x080 | (y+i) ); /* y pos */ u8x8_cad_SendCmd(u8x8, 0x080 | x ); /* set x pos */ c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes, send one line of data */ ptr += c; //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ } u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } static const u8x8_display_info_t u8x8_st7920_192x32_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 3, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0), 18 Aug 16: changed from 1 to 3 which works for 101 */ /* Arduino mode 3: aktive low clock, but use rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 24, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 192, /* pixel_height = */ 32 }; static const u8x8_display_info_t u8x8_st7920_128x64_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* ST7920+Due work with 1MHz but not with 2MHz, ST7920+Uno works with 2MHz */ /* spi_mode = */ 3, /* active high, rising edge, 18 Aug 16: changed from 1 to 3 which works for 101 */ /* in theory mode 3 should be correct */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_st7920_192x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7920_192x32_display_info); break; default: return u8x8_d_st7920_common(u8x8, msg, arg_int, arg_ptr); } return 1; } uint8_t u8x8_d_st7920_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_st7920_128x64_display_info); break; default: return u8x8_d_st7920_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_stdio.c ================================================ /* u8x8_d_stdio.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" #include #define W 8 #define H 2 uint8_t bitmap[W * H * 8]; void bitmap_place_tile(uint8_t x, uint8_t y, uint8_t *tile) { uint8_t i; for (i = 0; i < 8; i++) bitmap[x * 8 + y * W * 8 + i] = tile[i]; } void bitmap_show(void) { int x, y; for (y = 0; y < H * 8; y++) { for (x = 0; x < W * 8; x++) { if ((bitmap[x + (y / 8) * W * 8] & (1 << ((y & 7)))) != 0) { printf("*"); } else { printf("."); } } printf("\n"); } } uint8_t u8x8_d_stdio(U8X8_UNUSED u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch (msg) { case U8X8_MSG_DISPLAY_INIT: break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if (arg_int == 0) bitmap_show(); break; case U8X8_MSG_DISPLAY_SET_CONTRAST: break; case U8X8_MSG_DISPLAY_DRAW_TILE: bitmap_place_tile(((u8x8_tile_t *) arg_ptr)->x_pos, ((u8x8_tile_t *) arg_ptr)->y_pos, ((u8x8_tile_t *) arg_ptr)->tile_ptr); break; default: break; } return 1; } void u8x8_SetupStdio(u8x8_t *u8x8) { u8x8_SetupDefaults(u8x8); u8x8->display_cb = u8x8_d_stdio; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_t6963.c ================================================ /* u8x8_d_t6963.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The t6963 controller does not support hardware graphics flip. Contrast adjustment is done by an external resistor --> no support for contrast adjustment */ #include "u8x8.h" static const uint8_t u8x8_d_t6963_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x098), /* mode register: Display Mode, Graphics on, Text off, Cursor off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_t6963_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x090), /* All Off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_t6963_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t c, i; uint16_t y; uint8_t *ptr; switch(msg) { /* U8X8_MSG_DISPLAY_SETUP_MEMORY is handled by the calling function */ /* case U8X8_MSG_DISPLAY_SETUP_MEMORY: break; case U8X8_MSG_DISPLAY_INIT: break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_powersave1_seq); break; case U8X8_MSG_DISPLAY_DRAW_TILE: y = (((u8x8_tile_t *)arg_ptr)->y_pos); y*=8; y*= u8x8->display_info->tile_width; /* x = ((u8x8_tile_t *)arg_ptr)->x_pos; x is ignored... no u8x8 support */ //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ u8x8_cad_StartTransfer(u8x8); //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ /* Tile structure is reused here for the t6963, however u8x8 is not supported tile_ptr points to data which has cnt*8 bytes (same as SSD1306 tiles) Buffer is expected to have 8 lines of code fitting to the t6963 internal memory "cnt" includes the number of horizontal bytes. width is equal to cnt*8 TODO: Consider arg_int, however arg_int is not used by u8g2 */ c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* data ptr to the tiles */ for( i = 0; i < 8; i++ ) { u8x8_cad_SendArg(u8x8, y&255); u8x8_cad_SendArg(u8x8, y>>8); u8x8_cad_SendCmd(u8x8, 0x024 ); /* set adr */ u8x8_cad_SendCmd(u8x8, 0x0b0 ); /* auto write start */ //c = ((u8x8_tile_t *)arg_ptr)->cnt; /* number of tiles */ u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes, send one line of data */ u8x8_cad_SendCmd(u8x8, 0x0b2 ); /* auto write reset */ ptr += u8x8->display_info->tile_width; y += u8x8->display_info->tile_width; } u8x8_cad_EndTransfer(u8x8); //u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, 200, NULL); /* extra dely required */ break; default: return 0; } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_t6963_240x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 110, /* T6963 Datasheet p30 */ /* pre_chip_disable_wait_ns = */ 100, /* T6963 Datasheet p30 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 80, /* tile_width = */ 30, /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 128 }; /* 240x128 */ static const uint8_t u8x8_d_t6963_240x128_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), U8X8_AAC(0x00,0x00,0x021), /* low, high, set cursor pos */ U8X8_AAC(0x00,0x00,0x022), /* low, high, set offset */ U8X8_AAC(0x00,0x00,0x040), /* low, high, set text home */ U8X8_AAC(240/8,0x00,0x041), /* low, high, set text columns */ U8X8_AAC(0x00,0x00,0x042), /* low, high, graphics home */ U8X8_AAC(240/8,0x00,0x043), /* low, high, graphics columns */ U8X8_DLY(2), /* delay 2ms */ // mode set // 0x080: Internal CG, OR Mode // 0x081: Internal CG, EXOR Mode // 0x083: Internal CG, AND Mode // 0x088: External CG, OR Mode // 0x089: External CG, EXOR Mode // 0x08B: External CG, AND Mode U8X8_C(0x080), /* mode register: OR Mode, Internal Character Mode */ // display mode // 0x090: Display off // 0x094: Graphic off, text on, cursor off, blink off // 0x096: Graphic off, text on, cursor on, blink off // 0x097: Graphic off, text on, cursor on, blink on // 0x098: Graphic on, text off, cursor off, blink off // 0x09a: Graphic on, text off, cursor on, blink off // ... // 0x09c: Graphic on, text on, cursor off, blink off // 0x09f: Graphic on, text on, cursor on, blink on U8X8_C(0x090), /* All Off */ U8X8_AAC(0x00,0x00,0x024), /* low, high, set adr pointer */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_t6963_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_240x128_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_t6963_240x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 110, /* T6963 Datasheet p30 */ /* pre_chip_disable_wait_ns = */ 100, /* T6963 Datasheet p30 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 80, /* tile_width = */ 30, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 64 }; /* 240x64 */ static const uint8_t u8x8_d_t6963_240x64_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), U8X8_AAC(0x00,0x00,0x021), /* low, high, set cursor pos */ U8X8_AAC(0x00,0x00,0x022), /* low, high, set offset */ U8X8_AAC(0x00,0x00,0x040), /* low, high, set text home */ U8X8_AAC(240/8,0x00,0x041), /* low, high, set text columns */ U8X8_AAC(0x00,0x00,0x042), /* low, high, graphics home */ U8X8_AAC(240/8,0x00,0x043), /* low, high, graphics columns */ U8X8_DLY(2), /* delay 2ms */ // mode set // 0x080: Internal CG, OR Mode // 0x081: Internal CG, EXOR Mode // 0x083: Internal CG, AND Mode // 0x088: External CG, OR Mode // 0x089: External CG, EXOR Mode // 0x08B: External CG, AND Mode U8X8_C(0x080), /* mode register: OR Mode, Internal Character Mode */ // display mode // 0x090: Display off // 0x094: Graphic off, text on, cursor off, blink off // 0x096: Graphic off, text on, cursor on, blink off // 0x097: Graphic off, text on, cursor on, blink on // 0x098: Graphic on, text off, cursor off, blink off // 0x09a: Graphic on, text off, cursor on, blink off // ... // 0x09c: Graphic on, text on, cursor off, blink off // 0x09f: Graphic on, text on, cursor on, blink on U8X8_C(0x090), /* All Off */ U8X8_AAC(0x00,0x00,0x024), /* low, high, set adr pointer */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_t6963_240x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_240x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_240x64_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_t6963_256x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 110, /* T6963 Datasheet p30 */ /* pre_chip_disable_wait_ns = */ 100, /* T6963 Datasheet p30 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 80, /* tile_width = */ 32, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 256, /* pixel_height = */ 64 }; /* 256x64 */ static const uint8_t u8x8_d_t6963_256x64_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), U8X8_AAC(0x00,0x00,0x021), /* low, high, set cursor pos */ U8X8_AAC(0x00,0x00,0x022), /* low, high, set offset */ U8X8_AAC(0x00,0x00,0x040), /* low, high, set text home */ U8X8_AAC(256/8,0x00,0x041), /* low, high, set text columns */ U8X8_AAC(0x00,0x00,0x042), /* low, high, graphics home */ U8X8_AAC(256/8,0x00,0x043), /* low, high, graphics columns */ U8X8_DLY(2), /* delay 2ms */ // mode set // 0x080: Internal CG, OR Mode // 0x081: Internal CG, EXOR Mode // 0x083: Internal CG, AND Mode // 0x088: External CG, OR Mode // 0x089: External CG, EXOR Mode // 0x08B: External CG, AND Mode U8X8_C(0x080), /* mode register: OR Mode, Internal Character Mode */ // display mode // 0x090: Display off // 0x094: Graphic off, text on, cursor off, blink off // 0x096: Graphic off, text on, cursor on, blink off // 0x097: Graphic off, text on, cursor on, blink on // 0x098: Graphic on, text off, cursor off, blink off // 0x09a: Graphic on, text off, cursor on, blink off // ... // 0x09c: Graphic on, text on, cursor off, blink off // 0x09f: Graphic on, text on, cursor on, blink on U8X8_C(0x090), /* All Off */ U8X8_AAC(0x00,0x00,0x024), /* low, high, set adr pointer */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_t6963_256x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_256x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_256x64_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_t6963_128x64_display_info = { /* chip_enable_level = */ 1, /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* T6963 Datasheet p30 */ /* pre_chip_disable_wait_ns = */ 100, /* T6963 Datasheet p30 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 80, /* tile_width = */ 16, /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 64 }; /* 128x64 */ static const uint8_t u8x8_d_t6963_128x64_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), U8X8_AAC(0x00,0x00,0x021), /* low, high, set cursor pos */ U8X8_AAC(0x00,0x00,0x022), /* low, high, set offset */ U8X8_AAC(0x00,0x00,0x040), /* low, high, set text home */ U8X8_AAC(128/8,0x00,0x041), /* low, high, set text columns */ U8X8_AAC(0x00,0x00,0x042), /* low, high, graphics home */ U8X8_AAC(128/8,0x00,0x043), /* low, high, graphics columns */ U8X8_DLY(2), /* delay 2ms */ // mode set // 0x080: Internal CG, OR Mode // 0x081: Internal CG, EXOR Mode // 0x083: Internal CG, AND Mode // 0x088: External CG, OR Mode // 0x089: External CG, EXOR Mode // 0x08B: External CG, AND Mode U8X8_C(0x080), /* mode register: OR Mode, Internal Character Mode */ // display mode // 0x090: Display off // 0x094: Graphic off, text on, cursor off, blink off // 0x096: Graphic off, text on, cursor on, blink off // 0x097: Graphic off, text on, cursor on, blink on // 0x098: Graphic on, text off, cursor off, blink off // 0x09a: Graphic on, text off, cursor on, blink off // ... // 0x09c: Graphic on, text on, cursor off, blink off // 0x09f: Graphic on, text on, cursor on, blink on U8X8_C(0x090), /* All Off */ U8X8_AAC(0x00,0x00,0x024), /* low, high, set adr pointer */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_t6963_128x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_128x64_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /*=============================================*/ static const u8x8_display_info_t u8x8_t6963_160x80_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* T6963 Datasheet p30 */ /* pre_chip_disable_wait_ns = */ 100, /* T6963 Datasheet p30 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 80, /* write_pulse_width_ns = */ 80, /* tile_width = */ 20, /* tile_hight = */ 10, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 80 }; /* 128x64 */ static const uint8_t u8x8_d_t6963_160x80_init_seq[] = { U8X8_DLY(100), U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(100), U8X8_AAC(0x00,0x00,0x021), /* low, high, set cursor pos */ U8X8_AAC(0x00,0x00,0x022), /* low, high, set offset */ U8X8_AAC(0x00,0x00,0x040), /* low, high, set text home */ U8X8_AAC(160/8,0x00,0x041), /* low, high, set text columns */ U8X8_AAC(0x00,0x00,0x042), /* low, high, graphics home */ U8X8_AAC(160/8,0x00,0x043), /* low, high, graphics columns */ U8X8_DLY(2), /* delay 2ms */ // mode set // 0x080: Internal CG, OR Mode // 0x081: Internal CG, EXOR Mode // 0x083: Internal CG, AND Mode // 0x088: External CG, OR Mode // 0x089: External CG, EXOR Mode // 0x08B: External CG, AND Mode U8X8_C(0x080), /* mode register: OR Mode, Internal Character Mode */ // display mode // 0x090: Display off // 0x094: Graphic off, text on, cursor off, blink off // 0x096: Graphic off, text on, cursor on, blink off // 0x097: Graphic off, text on, cursor on, blink on // 0x098: Graphic on, text off, cursor off, blink off // 0x09a: Graphic on, text off, cursor on, blink off // ... // 0x09c: Graphic on, text on, cursor off, blink off // 0x09f: Graphic on, text on, cursor on, blink on U8X8_C(0x090), /* All Off */ U8X8_AAC(0x00,0x00,0x024), /* low, high, set adr pointer */ U8X8_DLY(100), U8X8_END_TRANSFER(), /* disable chip */ U8X8_DLY(100), }; uint8_t u8x8_d_t6963_160x80(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_160x80_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_160x80_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } /* alternative version for the 128x64 t6963 display: use the 160x80 init sequence */ uint8_t u8x8_d_t6963_128x64_alt(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_t6963_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_t6963_160x80_init_seq); break; default: return u8x8_d_t6963_common(u8x8, msg, arg_int, arg_ptr); } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1601.c ================================================ /* u8x8_d_uc1601.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This is for the uc1601s controller */ #include "u8x8.h" static const uint8_t u8x8_d_uc1601_128x32_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1601_128x32_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1601_128x32_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c4), /* bit 1: MX, bit 2: MY */ U8X8_C(0x060), /* set display start line to 32 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1601_128x32_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c2), /* bit 1: MX, bit 2: MY */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1601_128x32_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 1, /* uc1601 datasheet, page 46 */ /* pre_chip_disable_wait_ns = */ 5, /* uc1601 datasheet, page 46 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 12, /* uc1601 datasheet, page 44 */ /* sck_pulse_width_ns = */ 15, /* uc1601 datasheet, page 44 */ /* sck_clock_hz = */ 2000000UL, /* */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 1, /* data_setup_time_ns = */ 60, /* uc1601 datasheet, page 43 */ /* write_pulse_width_ns = */ 80, /* uc1601 datasheet, page 43 */ /* tile_width = */ 16, /* tile_hight = */ 4, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 32 }; static const uint8_t u8x8_d_uc1601_128x32_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0eb), /* LCD Bias: 0xe8: 6, 0xe9: 7, 0xea: 8, 0xeb: 9 */ //U8X8_C(0x023), /* 0x020...0x023 only for UC1601, not for UC1601s */ //U8X8_C(0x02e), /* LCD Load + Internal Charge Pump (default: 0x2e) */ U8X8_C(0x024), /* Temperature Compenstation, default: 0x24 */ U8X8_C(0x089), /* RAM address ctrl, default: 0x89 */ U8X8_C(0x0c4), /* RAM mapping ctrl */ U8X8_C(0x0a0), /* Frame Rate, 0x0a0 or 0x0a1 */ U8X8_CA(0x081, 0x0df), /* set contrast */ U8X8_C(0x02e), /* LCD Load + Internal Charge Pump (default: 0x2e) */ U8X8_C(0x060), /* set display start line to 32 */ U8X8_C(0x0a6), /* normal display */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1601_128x32(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1601_128x32_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1601_128x32_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1601_128x32_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1601_128x32_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1601_128x32_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1601_128x32_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1601 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1604.c ================================================ /* u8x8_d_uc1604.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1604_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_DLY(20), U8X8_C(0x0af), /* display on */ U8X8_DLY(20), /* during setup, it seems that the startup is more reliable when sending this cmd twice */ U8X8_C(0x0af), /* display on */ U8X8_DLY(50), /* startup takes some time */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1604_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off, enter sleep mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1604_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c4), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1604_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c2), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1604_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); y = ((u8x8_tile_t *)arg_ptr)->y_pos; y += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x0b0 | (y&15)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1604_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1604_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1604_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1604_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1604_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1604 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* JLX19264 */ /* timings from uc1608 UC1604 has two chip select inputs (CS0 and CS1). CS0 is low active, CS1 is high active. It will depend on the display module whether the display has a is low or high active chip select. */ static const u8x8_display_info_t u8x8_uc1604_192x64_display_info = { /* chip_enable_level = */ 0, /* JLX19264G uses CS0, which is low active CS*/ /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 20, /* pre_chip_disable_wait_ns = */ 20, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 35, /* tile_width = */ 24, /* width of 24*8=192 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* reused as y page offset */ /* flipmode_x_offset = */ 0, /* reused as y page offset */ /* pixel_width = */ 192, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_uc1604_jlx19264_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_DLY(200), U8X8_DLY(200), U8X8_C(0x02f), /* power on, Bit 2 PC2=1 (internal charge pump), Bits 0/1: cap of panel */ U8X8_DLY(200), U8X8_DLY(200), U8X8_CA(0x081, 0x052), /* set contrast, JLX19264G suggestion: 0x045 */ U8X8_C(0x0eb), /* LCD bias Bits 0/1: 00=6 01=7, 10=8, 11=9 */ //U8X8_C(0x023), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ //U8X8_C(0x027), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x0c4), /* Map control, Bit 2: MY=1, Bit 1: MX=0 */ U8X8_C(0x0a0), /* 0xa0: 76Hz FPS, controller default: 0x0a1: 95Hz FPS */ U8X8_C(0x040), /* set scroll line to 0 */ U8X8_C(0x089), /* RAM access control (controller default: 0x089)*/ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x0b0), /* page adr */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1604_jlx19264(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1604_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1604_192x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1604_jlx19264_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1608.c ================================================ /* u8x8_d_uc1608.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1608_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1608_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off, enter sleep mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1608_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c8), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1608_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c4), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1608_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); y = ((u8x8_tile_t *)arg_ptr)->y_pos; y += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x0b0 | (y&15)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1608 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* ERC24064-1 */ /* The UC1608 has only one high active chip select input. UC1604, UC1610 and UC1611 have two chip select inputs. */ static const u8x8_display_info_t u8x8_uc1608_240x64_display_info = { /* chip_enable_level = */ 1, /* uc1608 has high active CS */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* uc1608 datasheet, page 39, actually 0 */ /* pre_chip_disable_wait_ns = */ 20, /* uc1608 datasheet, page 39 */ /* reset_pulse_width_ms = */ 1, /* uc1608 datasheet, page 42 */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* uc1608 datasheet, page 41 */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1608 datasheet, page 39 */ /* write_pulse_width_ns = */ 35, /* uc1608 datasheet, page 39 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* reused as y page offset */ /* flipmode_x_offset = */ 4, /* reused as y page offset */ /* pixel_width = */ 240, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_uc1608_erc24064_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_DLY(200), U8X8_C(0x023), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ //U8X8_C(0x027), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x0c8), /* Map control, Bit 3: MY=1, Bit 2: MX=0, Bit 0: MSF =0 */ U8X8_C(0x0e8), /* LCD bias Bits 0/1: 00=10.7 01=10.3, 10=12.0, 11=12.7 */ U8X8_C(0x02f), /* power on, Bit 2 PC2=1 (internal charge pump), Bits 0/1: cap of panel */ U8X8_DLY(50), U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x090), /* no fixed lines */ U8X8_C(0x089), /* RAM access control */ U8X8_CA(0x081, 0x014), /* set contrast, ERC24064-1 default: 0x040 */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x0b0), /* page adr */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1608_erc24064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1608_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_240x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_erc24064_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* experimental implementation for the uc1608 240x128, not referenced in codebuild */ static const u8x8_display_info_t u8x8_uc1608_240x128_display_info = { /* chip_enable_level = */ 1, /* uc1608 has high active CS */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* uc1608 datasheet, page 39, actually 0 */ /* pre_chip_disable_wait_ns = */ 20, /* uc1608 datasheet, page 39 */ /* reset_pulse_width_ms = */ 1, /* uc1608 datasheet, page 42 */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* uc1608 datasheet, page 41 */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1608 datasheet, page 39 */ /* write_pulse_width_ns = */ 35, /* uc1608 datasheet, page 39 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* reused as y page offset */ /* flipmode_x_offset = */ 0, /* reused as y page offset */ /* pixel_width = */ 240, /* pixel_height = */ 128 }; static const uint8_t u8x8_d_uc1608_240x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_DLY(200), //U8X8_C(0x023), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x026), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x0c8), /* Map control, Bit 3: MY=1, Bit 2: MX=0, Bit 0: MSF =0 */ U8X8_C(0x0ea), /* LCD bias Bits 0/1: 00=10.7 01=10.3, 10=12.0, 11=12.7 */ /* maybe 0x0eb??? */ U8X8_C(0x02f), /* power on, Bit 2 PC2=1 (internal charge pump), Bits 0/1: cap of panel */ U8X8_DLY(50), U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x090), /* no fixed lines */ U8X8_C(0x089), /* RAM access control */ U8X8_CA(0x081, 0x072), /* set contrast */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x0b0), /* page adr */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1608_240x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1608_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_240x128_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* experimental implementation for the uc1608 erc240x120 */ static const u8x8_display_info_t u8x8_uc1608_erc240120_display_info = { /* chip_enable_level = */ 1, /* uc1608 has high active CS */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* uc1608 datasheet, page 39, actually 0 */ /* pre_chip_disable_wait_ns = */ 20, /* uc1608 datasheet, page 39 */ /* reset_pulse_width_ms = */ 1, /* uc1608 datasheet, page 42 */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* uc1608 datasheet, page 41 */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1608 datasheet, page 39 */ /* write_pulse_width_ns = */ 35, /* uc1608 datasheet, page 39 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 15, /* default_x_offset = */ 1, /* reused as y page offset */ /* flipmode_x_offset = */ 0, /* reused as y page offset */ /* pixel_width = */ 240, /* pixel_height = */ 120 }; /* http://www.buydisplay.com/download/democode/ERC240120-1_DemoCode.txt */ static const uint8_t u8x8_d_uc1608_erc240120_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_DLY(200), //U8X8_C(0x023), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x026), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x0c8), /* Map control, Bit 3: MY=1, Bit 2: MX=0, Bit 0: MSF =0 */ U8X8_C(0x0ea), /* LCD bias Bits 0/1: 00=10.7 01=10.3, 10=12.0, 11=12.7 */ /* according to DemoCode.txt */ U8X8_C(0x02f), /* power on, Bit 2 PC2=1 (internal charge pump), Bits 0/1: cap of panel */ U8X8_DLY(50), U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x090), /* no fixed lines */ U8X8_C(0x089), /* RAM access control */ //U8X8_CA(0x081, 46), /* set contrast, 46 according to DemoCode.txt */ U8X8_CA(0x081, 80), /* */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x0b0), /* page adr */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1608_erc240120(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1608_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_erc240120_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_erc240120_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* DEM 240064, issue 1164 */ static const u8x8_display_info_t u8x8_uc1608_dem240064_display_info = { /* chip_enable_level = */ 1, /* uc1608 has high active CS */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* uc1608 datasheet, page 39, actually 0 */ /* pre_chip_disable_wait_ns = */ 20, /* uc1608 datasheet, page 39 */ /* reset_pulse_width_ms = */ 1, /* uc1608 datasheet, page 42 */ /* post_reset_wait_ms = */ 10, /* sda_setup_time_ns = */ 30, /* uc1608 datasheet, page 41 */ /* sck_pulse_width_ns = */ 65, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1608 datasheet, page 39 */ /* write_pulse_width_ns = */ 35, /* uc1608 datasheet, page 39 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 1, /* reused as y page offset */ /* flipmode_x_offset = */ 0, /* reused as y page offset */ /* pixel_width = */ 240, /* pixel_height = */ 64 }; /* http://www.buydisplay.com/download/democode/ERC240120-1_DemoCode.txt */ static const uint8_t u8x8_d_uc1608_dem240064_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_DLY(200), //U8X8_C(0x023), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x026), /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ U8X8_C(0x0c8), /* Map control, Bit 3: MY=1, Bit 2: MX=0, Bit 0: MSF =0 */ U8X8_C(0x0ea), /* LCD bias Bits 0/1: 00=10.7 01=10.3, 10=12.0, 11=12.7 */ /* according to DemoCode.txt */ U8X8_C(0x02f), /* power on, Bit 2 PC2=1 (internal charge pump), Bits 0/1: cap of panel */ U8X8_DLY(50), U8X8_C(0x07f), /* set display start line*/ U8X8_C(0x094), /* fixed lines */ U8X8_C(0x089), /* RAM access control */ U8X8_CA(0x081, 160), /* issue 1164 */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x0b0), /* page adr */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1608_dem240064_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c8), /* LCD Mapping */ U8X8_C(0x07f), /* set display start line*/ U8X8_C(0x094), /* fixed lines */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1608_dem240064_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c4), /* LCD Mapping */ U8X8_C(0x040), /* set display start line*/ U8X8_C(0x090), /* fixed lines */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1608_dem240064(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* checking for the flip mode cmd first */ if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE ) { if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_dem240064_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_dem240064_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; } /* call the common procedure, this now leads to the effect, that the flip code is executed again */ /* maybe we should paste the common code here to avoid this */ if ( u8x8_d_uc1608_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1608_dem240064_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1608_dem240064_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1610.c ================================================ /* u8x8_d_uc1610.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cad001 */ #include "u8x8.h" static const uint8_t u8x8_d_uc1610_dogxl160_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0f1, 0x067), /* set COM end (display height-1) */ U8X8_C(0x0c0), /* SEG & COM normal */ U8X8_C(0x040), /* set scroll line lsb to zero */ U8X8_C(0x050), /* set scroll line msb to zero */ U8X8_C(0x02b), /* set panelloading */ U8X8_C(0x0eb), /* set bias 1/2 */ U8X8_CA(0x081, 0x05f), /* set contrast */ /* AC0: 0: stop at boundary, 1: increment by one AC1: 0: first column then page, 1: first page, then column increment AC2: 0: increment page adr, 1: decrement page adr. */ U8X8_C(0x08b), /* set auto increment, low bits are AC2 AC1 AC0 */ /* LC0: 0 MX: Mirror X MY: Mirror Y */ U8X8_C(0x0c0), /* low bits are MY, MX, LC0 */ U8X8_C(0x0f8), // window mode off U8X8_C(0x010), // col high U8X8_C(0x000), // col low U8X8_C(0x0b0), // page U8X8_C(0x0a6), /* set normal pixel mode (not inverse) */ U8X8_C(0x0a4), /* set normal pixel mode (not all on) */ /* test code U8X8_C(0x0af), // display on U8X8_C(0x0f8), // window mode off U8X8_CA(0x0f4, 0), // set window U8X8_CA(0x0f5, 0), U8X8_CA(0x0f6, 4), U8X8_CA(0x0f7, 1), U8X8_C(0x0f9), // window mode on U8X8_D1(0x03), U8X8_D1(0x0c0), U8X8_D1(0x0ff), U8X8_D1(0x0ff), U8X8_D1(0x0ff), U8X8_D1(0x0ff), U8X8_D1(0x0ff), U8X8_D1(0x0ff), */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1610_dogxl160_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on, UC1610 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1610_dogxl160_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off, UC1610 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1610_dogxl160_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* LC0: 0 MX: Mirror X MY: Mirror Y */ U8X8_C(0x0c0), /* low bits are MY, MX, LC0 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1610_dogxl160_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ /* LC0: 0 MX: Mirror X MY: Mirror Y */ U8X8_C(0x0c6), /* low bits are MY, MX, LC0 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* UC1610 has two chip select inputs (CS0 and CS1). CS0 is low active, CS1 is high active. It will depend on the display module whether the display has a is low or high active chip select. */ static const u8x8_display_info_t u8x8_uc1610_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 15, /* pre_chip_disable_wait_ns = */ 15, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 30, /* sck_pulse_width_ns = */ 63, /* half of cycle time (125ns cycle time according to datasheet) --> 8MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 20, /* tile_hight = */ 13, /* height of 13*8=104 pixel */ /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 104 }; /* RAM Organization: D0 Pix0 D1 D2 Pix1 D3 D4 Pix2 D5 D6 Pix3 D7 D0 Pix4 D1 D2 Pix5 D3 D4 Pix6 D5 D6 Pix7 D7 */ static uint8_t *u8x8_convert_tile_for_uc1610(uint8_t *t) { uint8_t i; uint16_t r; static uint8_t buf[16]; uint8_t *pbuf = buf; for( i = 0; i < 8; i++ ) { r = u8x8_upscale_byte(*t++); *pbuf++ = r & 255; r >>= 8; *pbuf++ = r; } return buf; } uint8_t u8x8_d_uc1610_ea_dogxl160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c, page; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1610_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1610_dogxl160_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1610_dogxl160_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1610_dogxl160_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1610_dogxl160_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1610_dogxl160_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1610 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; page = (((u8x8_tile_t *)arg_ptr)->y_pos); page *= 2; u8x8_cad_SendCmd(u8x8, 0x0f8 ); /* window disable */ //u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); //u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); //u8x8_cad_SendCmd(u8x8, 0x0b0 | page); u8x8_cad_SendCmd(u8x8, 0x0f4 ); /* window start column */ u8x8_cad_SendArg(u8x8, x); u8x8_cad_SendCmd(u8x8, 0x0f5 ); /* window start page */ u8x8_cad_SendArg(u8x8, page); u8x8_cad_SendCmd(u8x8, 0x0f6 ); /* window end column */ u8x8_cad_SendArg(u8x8, 159); /* end of display */ u8x8_cad_SendCmd(u8x8, 0x0f7 ); /* window end page */ u8x8_cad_SendArg(u8x8, page+1); u8x8_cad_SendCmd(u8x8, 0x0f9 ); /* window enable */ do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 16, u8x8_convert_tile_for_uc1610(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1611.c ================================================ /* u8x8_d_uc1611.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 6 Nov 2016: Not yet finished There are two controller: UC1611s 160x256 UC1611 160x240 Differences: UC1611 0xa8 cmd: enables 80 display rows UC1611s 0xa8 cmd: controlls graylevels UC1611 0xc0 cmd: single byte command for LCD mapping control UC1611s 0xc0 cmd: double byte command for LCD mapping control */ #include "u8x8.h" static const uint8_t u8x8_d_uc1611s_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a9), /* display on, UC1611s */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611s_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a8), /* display off, enter sleep mode, UC1611s */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611s_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0c0, 0x004), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611s_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0c0, 0x002), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1611_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); y = ((u8x8_tile_t *)arg_ptr)->y_pos; u8x8_cad_SendCmd(u8x8, 0x060 | (y&15)); u8x8_cad_SendCmd(u8x8, 0x070 | (y>>4)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1611 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* EA DOGM240 */ /* UC1611 has two chip select inputs (CS0 and CS1). CS0 is low active, CS1 is high active. It will depend on the display module whether the display has a is low or high active chip select. */ static const u8x8_display_info_t u8x8_uc1611_240x64_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* uc1611 datasheet, page 67 */ /* sda_setup_time_ns = */ 10, /* uc1611 datasheet, page 64, actually 0 */ /* sck_pulse_width_ns = */ 60, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1611 datasheet, page 60 */ /* write_pulse_width_ns = */ 80, /* uc1611 datasheet, page 60 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 64 }; static const uint8_t u8x8_d_uc1611_ea_dogm240_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x02f), /* internal pump control */ U8X8_CA(0x0f1, 63), /* set COM end */ U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 63), /* display line end */ U8X8_C(0x0a3), /* line rate */ U8X8_CA(0x081, 0x0a4), /* set contrast, EA default: 0x0b7 */ //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x0d1), /* display pattern */ U8X8_C(0x089), /* auto increment */ U8X8_CA(0x0c0, 0x004), /* LCD Mapping */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x060), /* page adr low */ U8X8_C(0x070), /* page adr high */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* UC1611s 240x64 display */ uint8_t u8x8_d_uc1611_ea_dogm240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1611_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_240x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_ea_dogm240_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* EA DOGXL240 */ static const uint8_t u8x8_d_uc1611_ea_dogxl240_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x02f), /* internal pump control */ U8X8_CA(0x0f1, 0x07f), /* set COM end */ U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 127), /* display line end */ U8X8_C(0x0a3), /* line rate */ U8X8_CA(0x081, 0x08f), /* set contrast */ //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x0d1), /* display pattern */ U8X8_C(0x089), /* auto increment */ U8X8_CA(0x0c0, 0x004), /* LCD Mapping */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x060), /* page adr low */ U8X8_C(0x070), /* page adr high */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1611_240x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* uc1611 datasheet, page 67 */ /* sda_setup_time_ns = */ 10, /* uc1611 datasheet, page 64, actually 0 */ /* sck_pulse_width_ns = */ 60, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1611 datasheet, page 60 */ /* write_pulse_width_ns = */ 80, /* uc1611 datasheet, page 60 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 128 }; /* UC1611s 240x128 display */ uint8_t u8x8_d_uc1611_ea_dogxl240(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1611_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_240x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_ea_dogxl240_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* EMERGING DISPLAY, EW50850FLWP 240x160 */ /* active high CS (CS1), UC1611 display */ static const uint8_t u8x8_d_uc1611_ew50850_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x02f), /* internal pump control */ U8X8_CA(0x0f1, 159), /* set COM end */ U8X8_CA(0x0f2, 0), /* display line start */ U8X8_CA(0x0f3, 159), /* display line end */ U8X8_C(0x0a3), /* line rate */ U8X8_CA(0x081, 75), /* set contrast */ //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x0d2), /* gray level mode: 16 gray shades */ U8X8_C(0x089), /* auto increment */ U8X8_C(0x0c0), /* LCD Mapping Bit 0: MSF, Bit 1: MX, Bit 2: MY */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x060), /* page adr low */ U8X8_C(0x070), /* page adr high */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1611_ew50850_display_info = { /* chip_enable_level = */ 1, /* active high */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* uc1611 datasheet, page 67 */ /* sda_setup_time_ns = */ 10, /* uc1611 datasheet, page 64, actually 0 */ /* sck_pulse_width_ns = */ 60, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1611 datasheet, page 60 */ /* write_pulse_width_ns = */ 80, /* uc1611 datasheet, page 60 */ /* tile_width = */ 30, /* width of 30*8=240 pixel */ /* tile_hight = */ 20, /* height: 160 pixel */ /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 240, /* pixel_height = */ 160 }; static const uint8_t u8x8_d_uc1611_alt_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c0), /* LCD Mapping Bit 0: MSF, Bit 1: MX, Bit 2: MY */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611_alt_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c6), /* LCD Mapping Bit 0: MSF, Bit 1: MX, Bit 2: MY */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0af), /* display on, UC1611 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1611_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a8), /* display off, enter sleep mode, UC1611 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* EW50850, 240x160 */ uint8_t u8x8_d_uc1611_ew50850(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c, i, v, m0, m1, ai; uint8_t *ptr; /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; y = ((u8x8_tile_t *)arg_ptr)->y_pos; y*=4; m0 = 1; m1 = 2; for( i = 0; i < 4; i++ ) { u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x060 | (y&15)); u8x8_cad_SendCmd(u8x8, 0x070 | (y>>4)); ai = arg_int; do { c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; while( c > 0 ) { v = 0; if ( *ptr & m0 ) v|= 0x0f; if ( *ptr & m1 ) v|= 0xf0; u8x8_cad_SendData(u8x8, 1, &v); /* note: SendData can not handle more than 255 bytes */ c--; ptr++; } ai--; } while( ai > 0 ); m0 <<= 2; m1 <<= 2; y++; } u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_ew50850_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_ew50850_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_alt_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_alt_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1611 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; /* msg unknown */ } return 1; } /*================================================*/ /* CG160160D, http://www.cloverdisplay.com/pdf/CG160160D.pdf */ /* UC1611 has two chip select inputs (CS0 and CS1). CS0 is low active, CS1 is high active. It will depend on the display module whether the display has a is low or high active chip select. Connect CS1 to 3.3V and CS0 to GPIO */ static const u8x8_display_info_t u8x8_uc1611_cg160160_display_info = { /* chip_enable_level = */ 0, /* use CS0 of the UC1611 */ /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* uc1611 datasheet, page 67 */ /* sda_setup_time_ns = */ 10, /* uc1611 datasheet, page 64, actually 0 */ /* sck_pulse_width_ns = */ 60, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1611 datasheet, page 60 */ /* write_pulse_width_ns = */ 80, /* uc1611 datasheet, page 60 */ /* tile_width = */ 20, /* width of 20*8=160 pixel */ /* tile_hight = */ 20, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 160, /* pixel_height = */ 160 }; /* System Reset: E2H --> DONE Set Temp. Compensation: 24H --> DONE Set up LCD format specific parameters MX,MY,etc(double-byte command): C0H,04H --> FLIP0 Set line rate: A3H --> DONE Set Pump Control (internal Vlcd): 2FH --> DONE Set Isolation Clock Front (3 bytes command): 82H, 13H, 01H --> DONE Set Isolation Clock Back (3 bytes command): 82H, 14H, 00H --> DONE Set LCD Bias Ratio: EAH LCD Specific Operation Voltage Setting (double-byte command): 81H, 90H --> DONE Set RAM Address Control: 80H --> DOES NOT MAKE SENSE Set Page Addr. MSB: 72H --> DONE Set Page Addr. LSB : 60H --> DONE Set Column Addr. LSB: 00H --> DONE Set Column Addr.MSB: 10H --> DONE Window Program Enable : F8H --> NOT REQURED Window Starting Column (double-byte command): F4H , 00H --> NOT REQURED Window Ending Column (double-byte command): F6H, 9FH --> NOT REQURED Set one bit for one pixel: D1H --> DONE Set Display Enable: A9H */ static const uint8_t u8x8_d_uc1611_cg160160_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* system reset */ U8X8_DLY(2), U8X8_C(0x024), /* Temp. Compensation to 0 = -0.05%/ Grad C */ U8X8_C(0x0a3), /* line rate */ U8X8_C(0x02f), /* internal pump control */ U8X8_CAA(0x082, 0x013, 0x001), /* Isolation front clock, "1" is the default value */ U8X8_CAA(0x082, 0x014, 0x000), /* Isolation back clock, "0" is the default value */ U8X8_C(0x0ea), /* bias ratio, default: 0x0ea */ U8X8_CA(0x081, 0x090), /* set contrast, CG160160: 0x090 */ //U8X8_CA(0x0f1, 159), /* set COM end */ //U8X8_CA(0x0f2, 0), /* display line start */ //U8X8_CA(0x0f3, 159), /* display line end */ //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x089), /* RAM Address Control: auto increment */ U8X8_C(0x0d1), /* display pattern */ U8X8_CA(0x0c0, 0x004), /* LCD Mapping */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x060), /* page adr low */ U8X8_C(0x070), /* page adr high */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; /* cg160160 display */ uint8_t u8x8_d_uc1611_cg160160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1611_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_cg160160_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_cg160160_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ /* CI064-4073-06 (Intelligent Display Solutions), IDS4073*/ /* https://docs.rs-online.com/7e6e/0900766b8156b018.pdf */ static const uint8_t u8x8_d_uc1611_ids4073_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x02f), /* internal pump control */ U8X8_CA(0x0f1, 0x07f), /* set COM end */ U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 127), /* display line end */ U8X8_C(0x0a3), /* line rate */ U8X8_CA(0x081, 0x08f), /* set contrast */ //U8X8_C(0x0a9), /* display enable */ U8X8_C(0x0d1), /* display pattern */ U8X8_C(0x089), /* auto increment */ U8X8_CA(0x0c0, 0x004), /* LCD Mapping */ U8X8_C(0x000), /* column low nibble */ U8X8_C(0x010), /* column high nibble */ U8X8_C(0x060), /* page adr low */ U8X8_C(0x070), /* page adr high */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1611_256x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1611 datasheet, page 60, actually 0 */ /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 10, /* uc1611 datasheet, page 67 */ /* sda_setup_time_ns = */ 10, /* uc1611 datasheet, page 64, actually 0 */ /* sck_pulse_width_ns = */ 60, /* half of cycle time */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1611 datasheet, page 60 */ /* write_pulse_width_ns = */ 80, /* uc1611 datasheet, page 60 */ /* tile_width = */ 32, /* width of 32*8=256 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 256, /* pixel_height = */ 128 }; /* UC1611s 256x128 display */ uint8_t u8x8_d_uc1611_ids4073(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); y = ((u8x8_tile_t *)arg_ptr)->y_pos; u8x8_cad_SendCmd(u8x8, 0x060 | (y&15)); u8x8_cad_SendCmd(u8x8, 0x070 | (y>>4)); do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* SendData can not handle more than 255 bytes */ if ( c > 31 ) { u8x8_cad_SendData(u8x8, 248, ptr); /* 31*8=248 */ ptr+=248; c -= 31; } u8x8_cad_SendData(u8x8, c*8, ptr); arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1611 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1611_256x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611_ids4073_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1611s_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; default: return 0; /* msg unknown */ } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1617.c ================================================ /* u8x8_d_uc1617.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1617_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ //U8X8_C(0x0ad), /* display enable BW Mode*/ U8X8_C(0x0af), /* display enable GS Mode*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1617_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ac), /* display off, enter sleep mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1617_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c0), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1617_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c6), /* LCD Mapping */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; //static uint8_t u8x8_upscale_4bit(uint8_t x) U8X8_NOINLINE; static uint8_t u8x8_upscale_4bit(uint8_t x) { uint8_t y = x; y |= (y << 4); // x = (x | (x << S[2])) & B[2]; y &= 0x0f; y |= (y << 2); // x = (x | (x << S[1])) & B[1]; y &= 0x33; y |= (y << 1); // x = (x | (x << S[0])) & B[0]; y &= 0x55; y |= (y << 1); // z = x | (y << 1); return y; } static uint8_t u8x8_uc1617_tile_half_buffer[8]; static uint8_t *u8x8_convert_tile_for_uc1617_lower4bit(uint8_t *t) { uint8_t i; uint8_t *pbuf = u8x8_uc1617_tile_half_buffer; for( i = 0; i < 8; i++ ) { *pbuf++ = u8x8_upscale_4bit(*t++); } return u8x8_uc1617_tile_half_buffer; } static uint8_t *u8x8_convert_tile_for_uc1617_upper4bit(uint8_t *t) { uint8_t i; uint8_t *pbuf = u8x8_uc1617_tile_half_buffer; for( i = 0; i < 8; i++ ) { *pbuf++ = u8x8_upscale_4bit((*t++)>>4); } return u8x8_uc1617_tile_half_buffer; } #ifdef NOT_USED static uint8_t *u8x8_convert_tile_for_uc1617(uint8_t *t) { uint8_t i; uint16_t r; static uint8_t buf[16]; uint8_t *pbuf = buf; for( i = 0; i < 8; i++ ) { r = u8x8_upscale_byte(*t++); *pbuf = r & 255; r >>= 8; pbuf+=8; *pbuf = r; pbuf-=7; } return buf; } #endif uint8_t u8x8_d_uc1617_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c, a; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); y = ((u8x8_tile_t *)arg_ptr)->y_pos; y*=2; x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x060 | (x&15)); u8x8_cad_SendCmd(u8x8, 0x070 | (x>>4)); u8x8_cad_SendCmd(u8x8, 0x00 | (y)); #ifdef NOT_REQUIRED u8x8_cad_SendCmd(u8x8, 0xf8 ); /* disable window */ u8x8_cad_SendCmd(u8x8, 0xf4 ); /* page start */ u8x8_cad_SendCmd(u8x8, y ); u8x8_cad_SendCmd(u8x8, 0xf5 ); /* x start */ u8x8_cad_SendCmd(u8x8, x ); u8x8_cad_SendCmd(u8x8, 0xf6 ); /* page end */ u8x8_cad_SendCmd(u8x8, y ); u8x8_cad_SendCmd(u8x8, 0xf7 ); /* x end */ u8x8_cad_SendCmd(u8x8, 127 ); u8x8_cad_SendCmd(u8x8, 0xf9 ); /* enable window */ #endif a = arg_int; do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 8, u8x8_convert_tile_for_uc1617_lower4bit(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); a--; } while( a > 0 ); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x060 | (x&15)); u8x8_cad_SendCmd(u8x8, 0x070 | (x>>4)); u8x8_cad_SendCmd(u8x8, 0x00 | (y+1)); a = arg_int; do { c = ((u8x8_tile_t *)arg_ptr)->cnt; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, 8, u8x8_convert_tile_for_uc1617_upper4bit(ptr)); ptr += 8; x += 8; c--; } while( c > 0 ); a--; } while( a > 0 ); u8x8_cad_EndTransfer(u8x8); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1617_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1617_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1617_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1617_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1617 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* JLX128128 */ static const uint8_t u8x8_d_uc1617_jlx128128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* reset */ U8X8_DLY(10), //U8X8_D1(0x0ff), U8X8_C(0x027), /* temperature compensation */ U8X8_C(0x02b), /* panel loading: 13-18nF */ U8X8_C(0x02f), /* internal pump control */ U8X8_C(0x0eb), /* bias=1/11 */ U8X8_CA(0x081, 0x028), /* set contrast */ //U8X8_C(0x0a9), /* used in display datasheet, but cmd not described in controller datasheet */ U8X8_CA(0x0f1, 0x07f), /* set COM end */ U8X8_CA(0x0f2, 0x000), /* display line start */ U8X8_CA(0x0f3, 127), /* display line end */ U8X8_C(0x0a3), /* line rate */ U8X8_C(0x0d3), /* */ U8X8_C(0x0d7), /* */ //U8X8_C(0x0a5), /* all pixel on */ //U8X8_C(0x0d1), /* display pattern */ U8X8_C(0x08b), /* auto increment */ U8X8_C(0x0c0), /* LCD Mapping */ //U8X8_C(0x0ad), /* display enable BW Mode*/ //U8X8_C(0x0af), /* display enable GS Mode*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1617_128x128_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 10, /* uc1617 datasheet, page 54, actually 5 */ /* pre_chip_disable_wait_ns = */ 10, /* uc1617 datasheet, page 54, actually 5 */ /* reset_pulse_width_ms = */ 10, /* post_reset_wait_ms = */ 20, /* uc1617 datasheet, page 56 */ /* sda_setup_time_ns = */ 24, /* uc1617 datasheet, page 54 */ /* sck_pulse_width_ns = */ 45, /* half of cycle time uc1617 datasheet, page 54*/ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* uc1617 datasheet, page 52 */ /* write_pulse_width_ns = */ 65, /* uc1617 datasheet, page 52 */ /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 128, /* pixel_height = */ 128 }; uint8_t u8x8_d_uc1617_jlx128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1617_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1617_128x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1617_jlx128128_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1638.c ================================================ /* u8x8_d_uc1638.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1638_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0c9, 0x0ad), /* display on */ /* UC1638 B/W mode */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1638_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0c9, 0x0ac), /* display off */ /* UC1638 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1638_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c4), /* LCD Mapping */ /* UC1638*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1638_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0c2), /* LCD Mapping */ /* UC1638*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1638_common(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, y, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; u8x8_cad_SendCmd(u8x8, 0x004); /* UC1638 */ u8x8_cad_SendArg(u8x8, x); y = ((u8x8_tile_t *)arg_ptr)->y_pos; y += u8x8->x_offset; y *= 2; /* for B/W mode, use only every second page */ u8x8_cad_SendCmd(u8x8, 0x060 | (y&15)); /* UC1638 */ u8x8_cad_SendCmd(u8x8, 0x070 | (y>>4)); /* UC1638 */ u8x8_cad_SendCmd(u8x8, 0x001); /* UC1638 */ c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; /* handled in the calling procedure case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1638_128x64_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; */ case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1638_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1638_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1638_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1638_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int ); /* uc1638 has range from 0 to 255 */ u8x8_cad_EndTransfer(u8x8); break; #endif default: return 0; } return 1; } /*================================================*/ /* uc1638 160x128 */ /* values taken from uc1608 */ static const u8x8_display_info_t u8x8_uc1638_160x128_display_info = { /* chip_enable_level = */ 1, /* uc1638 has high active CS */ /* chip_disable_level = */ 0, /* post_chip_enable_wait_ns = */ 10, /* */ /* pre_chip_disable_wait_ns = */ 20, /* */ /* reset_pulse_width_ms = */ 5, /* */ /* post_reset_wait_ms = */ 150, /* sda_setup_time_ns = */ 30, /* */ /* sck_pulse_width_ns = */ 65, /* */ /* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 3, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* */ /* write_pulse_width_ns = */ 35, /* */ /* tile_width = */ 20, /* width of 20*8=160 pixel */ /* tile_hight = */ 16, /* default_x_offset = */ 0, /* */ /* flipmode_x_offset = */ 0, /* */ /* pixel_width = */ 160, /* pixel_height = */ 128 }; static const uint8_t u8x8_d_uc1638_160x128_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_CA(0x0e1, 0x0e2), /* software reset */ /* UC1638*/ U8X8_DLY(5), /* 5 ms */ U8X8_C(0x024), /* set temp comp*/ U8X8_C(0x0c0), /* mirror y and mirror x */ /* WAS: c2 */ U8X8_C(0x0a2), /* line rate */ U8X8_C(0x0d6), /* gray scale 2 */ U8X8_C(0x0eb), /* set bias*/ U8X8_C(0x095), /* set 1 bit per pixel, pattern 0*/ U8X8_C(0x089), /* set auto increment, low bits are AC2 AC1 AC0 */ /* WAS 89 */ U8X8_CA(0x081, 0x0a0), /* set contrast */ /* UC1638*/ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; uint8_t u8x8_d_uc1638_160x128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { /* call common procedure first and handle messages there */ if ( u8x8_d_uc1638_common(u8x8, msg, arg_int, arg_ptr) == 0 ) { /* msg not handled, then try here */ switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1638_160x128_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1638_160x128_init_seq); break; default: return 0; /* msg unknown */ } } return 1; } /*================================================*/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1701_dogs102.c ================================================ /* u8x8_d_uc1701_dogs102.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1701_dogs102_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a1), /* ADC set to reverse */ U8X8_C(0x0c0), /* common output mode */ // Flipmode //U8X8_C(0x0a0), /* ADC set to reverse */ //U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ U8X8_C(0x027), /* regulator, booster and follower */ U8X8_CA(0x081, 0x00e), /* set contrast, contrast value, EA default: 0x010, previous value for S102: 0x0e */ U8X8_C(0x0fa), /* Set Temp compensation */ U8X8_C(0x090), /* 0.11 deg/c WP Off WC Off*/ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_dogs102_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a4), /* all pixel off, issue 142 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_dogs102_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_dogs102_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_dogs102_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1701_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 13, /* width of 13*8=104 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 30, /* pixel_width = */ 102, /* pixel_height = */ 64 }; uint8_t u8x8_d_uc1701_ea_dogs102(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1701_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_dogs102_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* uc1701 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the uc1701 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_d_uc1701_mini12864.c ================================================ /* u8x8_d_uc1701_mini12864.c (dealextreme, displays from ebay MP3 players) Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const uint8_t u8x8_d_uc1701_mini12864_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0e2), /* soft reset */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x040), /* set display start line to 0 */ U8X8_C(0x0a0), /* ADC set to reverse */ U8X8_C(0x0c8), /* common output mode */ U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */ U8X8_C(0x0a2), /* LCD bias 1/9 */ U8X8_C(0x02f), /* all power control circuits on */ U8X8_C(0x0f8), /* set booster ratio to */ U8X8_C(0x000), /* 4x */ U8X8_C(0x023), /* set V0 voltage resistor ratio to large */ U8X8_C(0x081), /* set contrast */ U8X8_C(0x027), /* contrast value */ U8X8_C(0x0ac), /* indicator */ // 0x000, /* disable */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_mini12864_powersave0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a4), /* all pixel off, issue 142 */ U8X8_C(0x0af), /* display on */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_mini12864_powersave1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_mini12864_flip0_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a0), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const uint8_t u8x8_d_uc1701_mini12864_flip1_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ U8X8_END_TRANSFER(), /* disable chip */ U8X8_END() /* end of sequence */ }; static const u8x8_display_info_t u8x8_uc1701_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 5, /* pre_chip_disable_wait_ns = */ 5, /* reset_pulse_width_ms = */ 1, /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 12, /* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40, /* tile_width = */ 16, /* width of 16*8=128 pixel */ /* tile_hight = */ 8, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 4, /* pixel_width = */ 128, /* pixel_height = */ 64 }; uint8_t u8x8_d_uc1701_mini12864(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t x, c; uint8_t *ptr; switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_uc1701_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_mini12864_init_seq); break; case U8X8_MSG_DISPLAY_SET_POWER_SAVE: if ( arg_int == 0 ) u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_mini12864_powersave0_seq); else u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_mini12864_powersave1_seq); break; case U8X8_MSG_DISPLAY_SET_FLIP_MODE: if ( arg_int == 0 ) { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_mini12864_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { u8x8_cad_SendSequence(u8x8, u8x8_d_uc1701_mini12864_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } break; #ifdef U8X8_WITH_SET_CONTRAST case U8X8_MSG_DISPLAY_SET_CONTRAST: u8x8_cad_StartTransfer(u8x8); u8x8_cad_SendCmd(u8x8, 0x081 ); u8x8_cad_SendArg(u8x8, arg_int >> 2 ); /* uc1701 has range from 0 to 63 */ u8x8_cad_EndTransfer(u8x8); break; #endif case U8X8_MSG_DISPLAY_DRAW_TILE: u8x8_cad_StartTransfer(u8x8); x = ((u8x8_tile_t *)arg_ptr)->x_pos; x *= 8; x += u8x8->x_offset; u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) ); u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15))); u8x8_cad_SendCmd(u8x8, 0x0b0 | (((u8x8_tile_t *)arg_ptr)->y_pos)); c = ((u8x8_tile_t *)arg_ptr)->cnt; c *= 8; ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr; /* The following if condition checks the hardware limits of the uc1701 controller: It is not allowed to write beyond the display limits. This is in fact an issue within flip mode. bug: this check should be inside the while loop, see u8x8_d_pcd8544_84x48.c */ if ( c + x > 132u ) { c = 132u; c -= x; } do { u8x8_cad_SendData(u8x8, c, ptr); /* note: SendData can not handle more than 255 bytes */ arg_int--; } while( arg_int > 0 ); u8x8_cad_EndTransfer(u8x8); break; default: return 0; } return 1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_debounce.c ================================================ /* u8x8_debounce.c Key/button simple debounce algorithm (Addon for u8x8) Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static uint8_t u8x8_read_pin_state(u8x8_t *u8x8) { uint8_t i; uint8_t pin_state; pin_state = 255; /* be compatible with the setup of the default pin setup, which is 255 */ for( i = 0; i < U8X8_PIN_INPUT_CNT; i++ ) { pin_state <<= 1; /* the callback function should put the return value into this variable */ u8x8->gpio_result = 1; u8x8_gpio_call(u8x8, U8X8_MSG_GPIO(i+U8X8_PIN_OUTPUT_CNT), 0); pin_state |= u8x8->gpio_result & 1; } return pin_state; } /* return 0 to U8X8_PIN_INPUT_CNT-1 if there is a difference return U8X8_PIN_INPUT_CNT if there is no difference */ static uint8_t u8x8_find_first_diff(uint8_t a, uint8_t b) { uint8_t mask; uint8_t i; mask = 1; i = U8X8_PIN_INPUT_CNT; do { i--; if ( (a & mask) != (b & mask) ) return i; mask <<= 1; } while( i > 0 ); return U8X8_PIN_INPUT_CNT; } /* State A: u8x8->debounce_last_pin_state == current_state --> State A u8x8->debounce_last_pin_state != current_state --> u8x8->debounce_last_pin_state = current_state --> State B + cnt State B + cnt --> state-- State B u8x8->debounce_last_pin_state == current_state --> keypress detected --> State C u8x8->debounce_last_pin_state != current_state --> State A State C u8x8->debounce_last_pin_state == current_state --> State C u8x8->debounce_last_pin_state != current_state --> State A */ #ifdef __unix__xxxxxx_THIS_IS_DISABLED #include #include uint8_t u8x8_GetMenuEvent(u8x8_t *u8x8) { int c; c = getc(stdin); switch(c) { case 'n': return U8X8_MSG_GPIO_MENU_NEXT; case 'p': return U8X8_MSG_GPIO_MENU_PREV; case 's': return U8X8_MSG_GPIO_MENU_SELECT; case 'h': return U8X8_MSG_GPIO_MENU_HOME; case 'x': exit(0); default: puts("press n, p, s, h or x"); break; } return 0; } #else /* __unix__ */ #define U8X8_DEBOUNCE_WAIT 2 /* do debounce and return a GPIO msg which indicates the event */ /* returns 0, if there is no event */ #if defined(__GNUC__) && !defined(__CYGWIN__) # pragma weak u8x8_GetMenuEvent #endif uint8_t u8x8_GetMenuEvent(u8x8_t *u8x8) { uint8_t pin_state; uint8_t result_msg = 0; /* invalid message, no event */ pin_state = u8x8_read_pin_state(u8x8); /* States A, B, C & D are encoded in the upper 4 bit*/ switch(u8x8->debounce_state) { case 0x00: /* State A, default state */ if ( u8x8->debounce_default_pin_state != pin_state ) { //u8x8->debounce_last_pin_state = pin_state; u8x8->debounce_state = 0x010 + U8X8_DEBOUNCE_WAIT; } break; case 0x10: /* State B */ //if ( u8x8->debounce_last_pin_state != pin_state ) if ( u8x8->debounce_default_pin_state == pin_state ) { u8x8->debounce_state = 0x00; /* back to state A */ } else { /* keypress detected */ u8x8->debounce_last_pin_state = pin_state; //result_msg = U8X8_MSG_GPIO_MENU_NEXT; u8x8->debounce_state = 0x020 + U8X8_DEBOUNCE_WAIT; /* got to state C */ } break; case 0x20: /* State C */ if ( u8x8->debounce_last_pin_state != pin_state ) { u8x8->debounce_state = 0x00; /* back to state A */ } else { u8x8->debounce_state = 0x030; /* got to state D */ } break; case 0x30: /* State D */ /* wait until key release */ if ( u8x8->debounce_default_pin_state == pin_state ) { u8x8->debounce_state = 0x00; /* back to state A */ result_msg = U8X8_MSG_GPIO(u8x8_find_first_diff(u8x8->debounce_default_pin_state, u8x8->debounce_last_pin_state)+U8X8_PIN_OUTPUT_CNT); } else { //result_msg = U8X8_MSG_GPIO_MENU_NEXT; // maybe implement autorepeat here } break; default: u8x8->debounce_state--; /* count down, until there is a valid state */ break; } return result_msg; } #endif /* __unix__ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_display.c ================================================ /* u8x8_display.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstraction layer for the graphics controller. Main goal is the placement of a 8x8 pixel block (tile) on the display. */ #include "u8x8.h" /*==========================================*/ /* internal library function */ /* this is a helper function for the U8X8_MSG_DISPLAY_SETUP_MEMORY function. It can be called within the display callback function to carry out the usual standard tasks. */ void u8x8_d_helper_display_setup_memory(u8x8_t *u8x8, const u8x8_display_info_t *display_info) { /* 1) set display info struct */ u8x8->display_info = display_info; u8x8->x_offset = u8x8->display_info->default_x_offset; } /* this is a helper function for the U8X8_MSG_DISPLAY_INIT function. It can be called within the display callback function to carry out the usual standard tasks. */ void u8x8_d_helper_display_init(u8x8_t *u8x8) { /* 2) apply port directions to the GPIO lines and apply default values for the IO lines*/ u8x8_gpio_Init(u8x8); u8x8_cad_Init(u8x8); /* 3) do reset */ u8x8_gpio_SetReset(u8x8, 1); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_MILLI, u8x8->display_info->reset_pulse_width_ms); u8x8_gpio_SetReset(u8x8, 0); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_MILLI, u8x8->display_info->reset_pulse_width_ms); u8x8_gpio_SetReset(u8x8, 1); u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_MILLI, u8x8->display_info->post_reset_wait_ms); } /*==========================================*/ /* official functions */ uint8_t u8x8_DrawTile(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t cnt, uint8_t *tile_ptr) { u8x8_tile_t tile; tile.x_pos = x; tile.y_pos = y; tile.cnt = cnt; tile.tile_ptr = tile_ptr; return u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_DRAW_TILE, 1, (void *)&tile); } /* should be implemented as macro */ void u8x8_SetupMemory(u8x8_t *u8x8) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_SETUP_MEMORY, 0, NULL); } void u8x8_InitDisplay(u8x8_t *u8x8) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_INIT, 0, NULL); } void u8x8_SetPowerSave(u8x8_t *u8x8, uint8_t is_enable) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_SET_POWER_SAVE, is_enable, NULL); } void u8x8_SetFlipMode(u8x8_t *u8x8, uint8_t mode) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_SET_FLIP_MODE, mode, NULL); } void u8x8_SetContrast(u8x8_t *u8x8, uint8_t value) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_SET_CONTRAST, value, NULL); } void u8x8_RefreshDisplay(u8x8_t *u8x8) { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_REFRESH, 0, NULL); } void u8x8_ClearDisplayWithTile(u8x8_t *u8x8, const uint8_t *buf) { u8x8_tile_t tile; uint8_t h; tile.x_pos = 0; tile.cnt = 1; tile.tile_ptr = (uint8_t *)buf; /* tile_ptr should be const, but isn't */ h = u8x8->display_info->tile_height; tile.y_pos = 0; do { u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_DRAW_TILE, u8x8->display_info->tile_width, (void *)&tile); tile.y_pos++; } while( tile.y_pos < h ); } void u8x8_ClearDisplay(u8x8_t *u8x8) { uint8_t buf[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; u8x8_ClearDisplayWithTile(u8x8, buf); } void u8x8_FillDisplay(u8x8_t *u8x8) { uint8_t buf[8] = { 255, 255, 255, 255, 255, 255, 255, 255 }; u8x8_ClearDisplayWithTile(u8x8, buf); } void u8x8_ClearLine(u8x8_t *u8x8, uint8_t line) { uint8_t buf[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; u8x8_tile_t tile; if ( line < u8x8->display_info->tile_height ) { tile.x_pos = 0; tile.y_pos = line; tile.cnt = 1; tile.tile_ptr = (uint8_t *)buf; /* tile_ptr should be const, but isn't */ u8x8->display_cb(u8x8, U8X8_MSG_DISPLAY_DRAW_TILE, u8x8->display_info->tile_width, (void *)&tile); } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_fonts.c ================================================ /* u8x8_fonts.c */ #include "u8x8.h" /* Fontname: -FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 222/228 BBX Build Mode: 3 */ const uint8_t u8x8_font_amstrad_cpc_extended_f[1796] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_f") = " \377\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\7\7\0\0\24\177\177\34" "\177\177\24\0\0$*\177\177*\22\0Ff\60\30\14fb\0\60zO]\67zH\0\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0>\177QIE\177>\0\0@B\177\177@@\0\0r{IIof\0\0\42aI" "I\177\66\0\30\24R\177\177P\20\0\0'oIIy\63\0\0>\177II{\62\0\0\3\1q" "}\17\7\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0ll\0\0\0\0\0\200\354" "l\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0Ac\66\34\10\0\0\0\2\3Q" "Y\17\6\0>\177A]]_\36\0\0|~\23\23~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0<~CA" "Qsr\0\0\177\177\10\10\177\177\0\0AA\177\177AA\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\7\6\0<~CQ\63n\134\0A\177\177\11\31\77f\0\0&oI" "I{\62\0\0\3A\177\177A\3\0\0\77\177@@\177\77\0\0\37\77``\77\37\0\177\177\60\30" "\60\177\177\0as\36\14\36sa\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200\0\0\2\6\14\10\0\0 tTT\10\10\0\0\0\0\177\177\0\0\0\0\10\10>wAA\0\2\3\1\3\2\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\0\0\0\30\30\30\30\30\30\30\30\0\0\0\37\37\30\30\30\0\0\0\370" "\370\30\30\30\30\30\30\370\370\0\0\0\30\30\30\37\37\0\0\0\30\30\30\37\37\30\30\30\0\0\0\377" "\377\30\30\30\30\30\30\370\370\30\30\30\30\30\30\377\377\0\0\0\30\30\30\377\377\30\30\30\0\10\34>" "\10\10\10\0\0\10\14>\14\10\0\0\0\10\10\10>\34\10\0\0\10\30>\30\10\0\0\0\0\0\0" "\360\360\360\360\360\360\360\360\0\0\0\0\360\360\360\360\360\360\360\360\0\0\0\0\17\17\17\17\0\0\0\0" "\377\377\377\377\360\360\360\360\17\17\17\17\360\360\360\360\377\377\377\377\17\17\17\17\0\0\0\0\17\17\17\17" "\360\360\360\360\377\377\377\377\0\0\0\0\377\377\377\377\360\360\360\360\17\17\17\17\17\17\17\17\17\17\17\17" "\377\377\377\377\377\377\377\377\17\17\17\17\377\377\377\377\377\377\377\377\300\300\300\300\300\300\300\300\374\374\374\374" "\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0}}\0\0\0\70|D\376Dl(\0H~\177I" "Icb\0\0Z<$$\34\0\0zy\21\42zy\0\70|EED|\70\0\70|DD" "E}\70\0\70|EEE|\70\0\70}EEE}\70\0\70}EDE}\70\0Bf<\30" "s]g>\35\1\0<}A@|<\0\0<|@A}<\0\0<}A" "A}<\0\0=}@@}=\0\0\14]qp\134\14\0\177\177\42\42\42\34\0\0~\177II" "I>\66\0 uUTx@\0 tT|\64TX\0\0\30<\244" "\344$(\0\0\70}UT\134\30\0\0\70|TU]\30\0\0\70}UU]\30\0\0\71}T" "T]\31\0\0\0I{z@\0\0\0\0Hz{A\0\0\0\0JyyB\0\0\0\2Jx" "xB\2\0\0\65uKN}\61\0\10zq\11\12zq\0\0\60yKJx\60\0\0\60xJ" "Ky\60\0\0\60zIIz\60\0\0\62yIJz\61\0\0\62zHHz\62\0\0\10\10k" "k\10\10\0\200\260xhXx\64\4\0\70yCBxx\0\0\70xBCyx\0\0\70zA" "Azx\0\0:z@@zz\0\0\230\270\242\243\371x\0\0~$$$\30\0\0\0\232\272\240" "\240\372z"; /* Fontname: -FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 95/228 BBX Build Mode: 3 */ const uint8_t u8x8_font_amstrad_cpc_extended_r[764] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_r") = " ~\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\7\7\0\0\24\177\177\34" "\177\177\24\0\0$*\177\177*\22\0Ff\60\30\14fb\0\60zO]\67zH\0\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0>\177QIE\177>\0\0@B\177\177@@\0\0r{IIof\0\0\42aI" "I\177\66\0\30\24R\177\177P\20\0\0'oIIy\63\0\0>\177II{\62\0\0\3\1q" "}\17\7\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0ll\0\0\0\0\0\200\354" "l\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0Ac\66\34\10\0\0\0\2\3Q" "Y\17\6\0>\177A]]_\36\0\0|~\23\23~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0<~CA" "Qsr\0\0\177\177\10\10\177\177\0\0AA\177\177AA\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\7\6\0<~CQ\63n\134\0A\177\177\11\31\77f\0\0&oI" "I{\62\0\0\3A\177\177A\3\0\0\77\177@@\177\77\0\0\37\77``\77\37\0\177\177\60\30" "\60\177\177\0as\36\14\36sa\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200\0\0\2\6\14\10\0\0 tTT\10\10\0\0\0\0\177\177\0\0\0\0\10\10>wAA\0\2\3\1\3\2\1\1"; /* Fontname: -FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 18/228 BBX Build Mode: 3 */ const uint8_t u8x8_font_amstrad_cpc_extended_n[220] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0>\177QIE\177>\0\0@B\177\177@@\0\0r{IIof\0\0\42aI" "I\177\66\0\30\24R\177\177P\20\0\0'oIIy\63\0\0>\177II{\62\0\0\3\1q" "}\17\7\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0ll\0\0"; /* Fontname: -FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 64/228 BBX Build Mode: 3 */ const uint8_t u8x8_font_amstrad_cpc_extended_u[517] U8X8_FONT_SECTION("u8x8_font_amstrad_cpc_extended_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\7\7\0\0\24\177\177\34" "\177\177\24\0\0$*\177\177*\22\0Ff\60\30\14fb\0\60zO]\67zH\0\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0>\177QIE\177>\0\0@B\177\177@@\0\0r{IIof\0\0\42aI" "I\177\66\0\30\24R\177\177P\20\0\0'oIIy\63\0\0>\177II{\62\0\0\3\1q" "}\17\7\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0ll\0\0\0\0\0\200\354" "l\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0Ac\66\34\10\0\0\0\2\3Q" "Y\17\6\0>\177A]]_\36\0\0|~\23\23~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0<~CA" "Qsr\0\0\177\177\10\10\177\177\0\0AA\177\177AA\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\7\6\0<~CQ\63n\134\0A\177\177\11\31\77f\0\0&oI" "I{\62\0\0\3A\177\177A\3\0\0\77\177@@\177\77\0\0\37\77``\77\37\0\177\177\60\30" "\60\177\177\0as\36\14\36sa\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -Misc-Fixed-Medium-R-Normal--7-70-75-75-C-50-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 191/1848 BBX Build Mode: 3 */ const uint8_t u8x8_font_5x7_f[1796] U8X8_FONT_SECTION("u8x8_font_5x7_f") = " \377\1\1\0\0\0\0\0\0\0\0\0\0^\0\0\0\0\0\0\16\0\16\0\0\0\0(|(|" "(\0\0\0\10T|T \0\0\0&\20\10d\0\0\0\0(T(@\0\0\0\0\0\0\16\0" "\0\0\0\0\0\0\0\0\0~\30$B" "\0\0\0\0~@@@\0\0\0\0~\14\14~\0\0\0\0~\14\60~\0\0\0\0@@>\0\0\0\0\36``\36\0\0\0\0~\60\60~" "\0\0\0\0f\30\30f\0\0\0\0\0\16p\16\0\0\0\0bRJF\0\0\0\0\0~BB" "\0\0\0\0\4\10\20 \0\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\0\0@@@@" "\0\0\0\0\0\2\4\0\0\0\0\0\60H(x\0\0\0\0~HH\60\0\0\0\0\60HH\0" "\0\0\0\0\60HH~\0\0\0\0\60hX\20\0\0\0\0\20|\22\4\0\0\0\0P\250\250\230" "\0\0\0\0~\10\10p\0\0\0\0\0Hz@\0\0\0\0\0@\200z\0\0\0\0~\20(@" "\0\0\0\0\0B~@\0\0\0\0x\20\30p\0\0\0\0x\10\10p\0\0\0\0\60HH\60" "\0\0\0\0\370HH\60\0\0\0\0\60HH\370\0\0\0\0x\10\10\20\0\0\0\0PXh(" "\0\0\0\0\10>H@\0\0\0\0\70@@x\0\0\0\0\0\70@\70\0\0\0\0x``x" "\0\0\0\0H\60\60H\0\0\0\0\30\240@\70\0\0\0\0HhXH\0\0\0\0\0\10\0\0\0\0>@@>\0\0\0\0>@@>\0\0\0\0>@@>" "\0\0\0\0:@@:\0\0\0\0\0\16p\16\0\0\0\0~\24\24\10\0\0\0\0|\2J\64" "\0\0\0\0\60J,x\0\0\0\0\60L*x\0\0\0\0\60L*|\0\0\0\0\64J,z" "\0\0\0\0\60J(z\0\0\0\0\60N.x\0\0\0\0\60HxX\0\0\0\0\0\60\310H" "\0\0\0\0\60j\134\20\0\0\0\0\60lZ\20\0\0\0\0\64j\134\20\0\0\0\0\62hZ\20" "\0\0\0\0\0J|@\0\0\0\0\0Lz@\0\0\0\0\0LzD\0\0\0\0\0JxB" "\0\0\0\0\60JL\64\0\0\0\0|\12\14r\0\0\0\0\60JL\60\0\0\0\0\60LJ\60" "\0\0\0\0\60JJ\60\0\0\0\0\64JL\62\0\0\0\0\60JH\62\0\0\0\0\20TT\20" "\0\0\0\0phX\70\0\0\0\0\70BDx\0\0\0\0\70DBx\0\0\0\0\70BBx" "\0\0\0\0\70B@z\0\0\0\0\30\244B\70\0\0\0\0\374HH\60\0\0\0\0\30\242@:" "\0\0\0"; /* Fontname: -Misc-Fixed-Medium-R-Normal--7-70-75-75-C-50-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 95/1848 BBX Build Mode: 3 */ const uint8_t u8x8_font_5x7_r[764] U8X8_FONT_SECTION("u8x8_font_5x7_r") = " ~\1\1\0\0\0\0\0\0\0\0\0\0^\0\0\0\0\0\0\16\0\16\0\0\0\0(|(|" "(\0\0\0\10T|T \0\0\0&\20\10d\0\0\0\0(T(@\0\0\0\0\0\0\16\0" "\0\0\0\0\0\0\0\0\0~\30$B" "\0\0\0\0~@@@\0\0\0\0~\14\14~\0\0\0\0~\14\60~\0\0\0\0@@>\0\0\0\0\36``\36\0\0\0\0~\60\60~" "\0\0\0\0f\30\30f\0\0\0\0\0\16p\16\0\0\0\0bRJF\0\0\0\0\0~BB" "\0\0\0\0\4\10\20 \0\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\0\0@@@@" "\0\0\0\0\0\2\4\0\0\0\0\0\60H(x\0\0\0\0~HH\60\0\0\0\0\60HH\0" "\0\0\0\0\60HH~\0\0\0\0\60hX\20\0\0\0\0\20|\22\4\0\0\0\0P\250\250\230" "\0\0\0\0~\10\10p\0\0\0\0\0Hz@\0\0\0\0\0@\200z\0\0\0\0~\20(@" "\0\0\0\0\0B~@\0\0\0\0x\20\30p\0\0\0\0x\10\10p\0\0\0\0\60HH\60" "\0\0\0\0\370HH\60\0\0\0\0\60HH\370\0\0\0\0x\10\10\20\0\0\0\0PXh(" "\0\0\0\0\10>H@\0\0\0\0\70@@x\0\0\0\0\0\70@\70\0\0\0\0x``x" "\0\0\0\0H\60\60H\0\0\0\0\30\240@\70\0\0\0\0HhXH\0\0\0\0\0\10\2\0\0\0\0~\10\64B" "\0\0\0\0~@@@\0\0\0\0~\14\14~\0\0\0\0~\14\70~\0\0\0\0@@>\0\0\0\0\36``\36\0\0\0\0~\60\60~" "\0\0\0\0f\30\30f\0\0\0\0\6\10p\10\6\0\0\0bRJF\0\0\0\0\0~BB" "\0\0\0\0\6\10\20`\0\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\0\0\200\200\200\200" "\0\0\0\0\0\2\4\0\0\0\0\0\60HHx\0\0\0\0~HH\60\0\0\0\0\0\60HH" "\0\0\0\0\60HH~\0\0\0\0\60hX\20\0\0\0\0\20|\22\4\0\0\0\0\20\250\250p" "\0\0\0\0~\10\10p\0\0\0\0\0Hz@\0\0\0\0\0@\200z\0\0\0\0~\20\20h" "\0\0\0\0\0B~@\0\0\0\0x\10p\10p\0\0\0x\10\10p\0\0\0\0\60HH\60" "\0\0\0\0\370((\20\0\0\0\0\20((\370\0\0\0\0x\20\10\20\0\0\0\0\0PX(" "\0\0\0\0\10>H \0\0\0\0\70@@x\0\0\0\0\0\70@\70\0\0\0\0\70@\60@" "\70\0\0\0H\60\60H\0\0\0\0X\240\240x\0\0\0\0HhXH\0\0\0\0\10*UA" "\0\0\0\0\0\0~\0\0\0\0\0AU*\10\0\0\0\0\4\2\4\2\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0z\0\0\0\0\0\60H\374H\0\0\0\0H\0\0\0\0AA>" "\0\0\0\0=@@=\0\0\0\0\4\10r\11\4\0\0\0~$$\30\0\0\0\0|\2Z$" "\0\0\0\0\60IJx\0\0\0\0\60JIx\0\0\0\0\60JIz\0\0\0\0\62IJy" "\0\0\0\0\60JHz\0\0\0\0\62MMz\0\0\0\0(XxhP\0\0\0\0\60\310H" "\0\0\0\0\60iZ\20\0\0\0\0\60jY\20\0\0\0\0\62iY\22\0\0\0\0\60jX\22" "\0\0\0\0\0Iz@\0\0\0\0\0HzA\0\0\0\0\0JyB\0\0\0\0\0JxB" "\0\0\0\0%RU\70\0\0\0\0z\11\12q\0\0\0\0\60IJ\60\0\0\0\0\60JI\60" "\0\0\0\0\62II\62\0\0\0\0\62IJ\61\0\0\0\0\62HH\62\0\0\0\0\0\20T\20" "\0\0\0\0phX\70\0\0\0\0\70ABx\0\0\0\0\70BAx\0\0\0\0:AAz" "\0\0\0\0:@@z\0\0\0\0X\242\241x\0\0\0\0\376((\20\0\0\0\0Z\240\240z" "\0\0\0"; /* Fontname: -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 95/1426 BBX Build Mode: 3 */ const uint8_t u8x8_font_5x8_r[764] U8X8_FONT_SECTION("u8x8_font_5x8_r") = " ~\1\1\0\0\0\0\0\0\0\0\0\0^\0\0\0\0\0\0\16\0\16\0\0\0\0\24\177\24\177" "\24\0\0\0\4*\177*\20\0\0\0\0\26\10\64\0\0\0\0\66I\66@\0\0\0\0\0\0\16\0" "\0\0\0\0\0\2\0\0\0\0~\10\64B" "\0\0\0\0~@@@\0\0\0\0~\14\14~\0\0\0\0~\14\70~\0\0\0\0@@>\0\0\0\0\36``\36\0\0\0\0~\60\60~" "\0\0\0\0f\30\30f\0\0\0\0\6\10p\10\6\0\0\0bRJF\0\0\0\0\0~BB" "\0\0\0\0\6\10\20`\0\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\0\0\200\200\200\200" "\0\0\0\0\0\2\4\0\0\0\0\0\60HHx\0\0\0\0~HH\60\0\0\0\0\0\60HH" "\0\0\0\0\60HH~\0\0\0\0\60hX\20\0\0\0\0\20|\22\4\0\0\0\0\20\250\250p" "\0\0\0\0~\10\10p\0\0\0\0\0Hz@\0\0\0\0\0@\200z\0\0\0\0~\20\20h" "\0\0\0\0\0B~@\0\0\0\0x\10p\10p\0\0\0x\10\10p\0\0\0\0\60HH\60" "\0\0\0\0\370((\20\0\0\0\0\20((\370\0\0\0\0x\20\10\20\0\0\0\0\0PX(" "\0\0\0\0\10>H \0\0\0\0\70@@x\0\0\0\0\0\70@\70\0\0\0\0\70@\60@" "\70\0\0\0H\60\60H\0\0\0\0X\240\240x\0\0\0\0HhXH\0\0\0\0\10*UA" "\0\0\0\0\0\0~\0\0\0\0\0AU*\10\0\0\0\0\4\2\4\2\0\0\0"; /* Fontname: -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 18/1426 BBX Build Mode: 3 */ const uint8_t u8x8_font_5x8_n[220] U8X8_FONT_SECTION("u8x8_font_5x8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0T\70\70T\0\0\0\0\20\20|\20" "\20\0\0\0\0\200` \0\0\0\0\20\20\20\20\0\0\0\0\0@\340@\0\0\0\0`\20\10\6" "\0\0\0\0\0\36\16\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\10\34\34\10\0\0\0\0\0\200\300p\70\0\34\16\3\1" "\0\0\0\0\340\360\30\10\30\360\340\0\7\17\30\20\30\17\7\0\0 \60\370\370\0\0\0\0\20\20\37" "\37\20\20\0\60\70\10\10\210\370p\0\30\34\26\23\21\20\20\0\10\10\210\310\350\270\30\0\10\30\20\20" "\20\37\17\0\200\300`\60\370\370\0\0\3\3\2\2\37\37\2\0\370\370\310HH\310\210\0\10\30\20\20" "\20\37\17\0\340\360\230\210\210\210\0\0\17\37\31\20\20\37\17\0\10\10\10\210\310x\70\0\0\0\36\37" "\1\0\0\0p\370\210\210\210\370p\0\17\37\20\20\20\37\17\0\360\370\10\10\230\370\360\0\0\21\21\21" "\31\17\7\0\0\0@\340\340@\0\0\0\0\10\34\34\10\0"; /* Fontname: -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 191/2576 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14_1x2_f[3588] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_f") = " \377\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\0\0\0\0\0\0\0" "\33\0\0\0\0\0\0<\0<\0\0\0\0\0\0\0\0\0\0\0\0@\370@\370@\0\0\0\2\37" "\2\37\2\0\0`\220\20\370\20`\0\0\14\20\21\77\21\16\0\0\60HH\360 \30\0\0\30\4\17" "\22\22\14\0\0\0p\210\210p\0\0\0\16\21\21\12\14\23\0\0\0\0\0<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\60\10\4\0\0\0\0\7\30 @\0\0\0\4\10\60\300\0\0\0\0@ " "\30\7\0\0\0\0@\200\340\200@\0\0\0\4\2\17\2\4\0\0\0\0\0\340\0\0\0\0\0\1\1" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0H\70\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\20\70\20\0\0\0\0\0\0\300\60\14\0\0`\30\6" "\1\0\0\0\0\340\20\10\10\20\340\0\0\7\10\20\20\10\7\0\0\0 \20\370\0\0\0\0\0\20\20" "\37\20\20\0\0\60\10\10\10\210p\0\0\20\30\24\22\21\20\0\0\10\10\210\310\250\30\0\0\14\20\20" "\20\20\17\0\0\0\200`\20\370\0\0\0\6\5\4\4\37\4\0\0\370HHHH\210\0\0\14\20\20" "\20\20\17\0\0\340\20\210\210\210\0\0\0\17\21\20\20\20\17\0\0\10\10\10\210h\30\0\0\0\30\6" "\1\0\0\0\0\60H\210\210H\60\0\0\16\21\20\20\21\16\0\0\360\10\10\10\210\360\0\0\14\21\21" "\21\10\7\0\0\0\0@\340@\0\0\0\0\0\10\34\10\0\0\0\0\0\300\300\0\0\0\0\0\0$" "\34\0\0\0\0\0\0\200@ \20\0\0\0\1\2\4\10\20\0\0@@@@@@\0\0\2\2\2" "\2\2\2\0\0\0\20 @\200\0\0\0\0\20\10\4\2\1\0\0\60\10\10\210H\60\0\0\0\0\0" "\33\0\0\0\0\340\20\310((\360\0\0\7\10\23\24\24\27\0\0\340\20\10\10\20\340\0\0\37\1\1" "\1\1\37\0\0\370\210\210\210P \0\0\37\20\20\20\11\6\0\0\360\10\10\10\10\60\0\0\17\20\20" "\20\20\14\0\0\370\10\10\10\20\340\0\0\37\20\20\20\10\7\0\0\370\210\210\210\10\10\0\0\37\20\20" "\20\20\20\0\0\370\210\210\210\10\10\0\0\37\0\0\0\0\0\0\0\360\10\10\10\10\60\0\0\17\20\20" "\21\11\37\0\0\370\200\200\200\200\370\0\0\37\0\0\0\0\37\0\0\0\10\10\370\10\10\0\0\0\20\20" "\37\20\20\0\0\0\0\0\10\370\10\0\0\14\20\20\20\17\0\0\0\370\200@ \20\10\0\0\37\0\1" "\2\4\30\0\0\370\0\0\0\0\0\0\0\37\20\20\20\20\20\0\0\370\60\300\300\60\370\0\0\37\0\0" "\0\0\37\0\0\370`\200\0\0\370\0\0\37\0\0\1\6\37\0\0\360\10\10\10\10\360\0\0\17\20\20" "\20\20\17\0\0\370\10\10\10\10\360\0\0\37\1\1\1\1\0\0\0\360\10\10\10\10\360\0\0\17\22\22" "\24\70O\0\0\370\10\10\10\10\360\0\0\37\1\1\3\5\30\0\0p\210\210\10\10\60\0\0\14\20\20" "\21\21\16\0\0\10\10\10\370\10\10\10\0\0\0\0\37\0\0\0\0\370\0\0\0\0\370\0\0\17\20\20" "\20\20\17\0\0x\200\0\0\200x\0\0\0\3\34\34\3\0\0\0\0\370\0\0\0\370\0\0\0\17\20" "\16\20\17\0\0\30`\200\200`\30\0\0\30\6\1\1\6\30\0\0\0\70\300\0\300\70\0\0\0\0\0" "\37\0\0\0\0\10\10\10\310(\30\0\0\30\26\21\20\20\20\0\0\0\0\374\4\4\4\0\0\0\0\177" "@@@\0\0\14\60\300\0\0\0\0\0\0\0\1\6\30`\0\0\0\4\4\4\374\0\0\0\0@@" "@\177\0\0\0\20\10\4\4\10\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@" "@@@\0\0\0\0\4\10\20\0\0\0\0\0\0\0\0\0\0\0\200@@@@\200\0\0\14\22\22" "\22\22\37\0\0\370\200@@@\200\0\0\37\10\20\20\20\17\0\0\200@@@@\200\0\0\17\20\20" "\20\20\10\0\0\200@@@\200\370\0\0\17\20\20\20\10\37\0\0\200@@@@\200\0\0\17\22\22" "\22\22\13\0\0\200\200\360\210\210\20\0\0\0\0\37\0\0\0\0\0\200@@@\200@\0\0\63LT" "TS \0\0\370\200@@@\200\0\0\37\0\0\0\0\37\0\0\0\0@\330\0\0\0\0\0\20\20" "\37\20\20\0\0\0\0\0\0@\330\0\0\0\60@@@\77\0\0\370\0\0\200@\0\0\0\37\2\3" "\4\10\20\0\0\0\0\10\370\0\0\0\0\0\20\20\37\20\20\0\0\0\300@\200@\200\0\0\0\37\0" "\17\0\37\0\0\300\200@@@\200\0\0\37\0\0\0\0\37\0\0\200@@@@\200\0\0\17\20\20" "\20\20\17\0\0\300\200@@@\200\0\0\177\10\20\20\20\17\0\0\200@@@\200\300\0\0\17\20\20" "\20\10\177\0\0\300\200@@@\200\0\0\37\0\0\0\0\1\0\0\200@@@@\200\0\0\10\21\22" "\22\24\10\0\0@@\370@@\0\0\0\0\0\17\20\20\10\0\0\300\0\0\0\0\300\0\0\17\20\20" "\20\10\37\0\0\0\300\0\0\0\300\0\0\0\1\6\30\6\1\0\0\0\300\0\0\0\300\0\0\0\17\20" "\17\20\17\0\0\300\0\0\0\0\300\0\0\30\5\2\2\5\30\0\0\300\0\0\0\0\300\0\0'HH" "HD\77\0\0@@@@\300@\0\0\20\30\26\21\20\20\0\0\0\0\0\370\4\4\0\0\0\0\1" ">@@\0\0\0\0\0\374\0\0\0\0\0\0\0\177\0\0\0\0\0\4\4\370\0\0\0\0\0@@" ">\1\0\0\0\30\4\10\20 \30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\330\0\0\0\0\0\0\0" "\37\0\0\0\0\200@\340@@\200\0\0\17\20\77\20\20\10\0\0\0\0\340\20\20 \0\0\0\11\37" "\11\11\20\0\0 \300@@\300 \0\0\4\3\2\2\3\4\0\0\0\210\260\300\260\210\0\0\0\2\2" "\37\2\2\0\0\0\0\0x\0\0\0\0\0\0\0\36\0\0\0\0\210T$$D\210\0\0\10\21\22" "\22\25\10\0\0\0\14\0\0\14\0\0\0\0\0\0\0\0\0\0\0\370\344\24\24$\370\0\0\17\23\24" "\24\22\17\0\0\0h\224\224T\370\0\0\0\2\2\2\2\2\0\0\0\0\200@\200@\0\0\2\5\12" "\25\10\20\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\36\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\370\364\224\224d\370\0\0\17\27\20\20\27\17\0\0\0\10\10\10\10\10\0\0\0\0\0" "\0\0\0\0\0\0\30$$\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\22\22" "\37\22\22\0\0\0\210D$\30\0\0\0\0\1\1\1\1\0\0\0\0\210$$\330\0\0\0\0\0\1" "\1\0\0\0\0\0\0\20\10\4\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\200\0\0\0\177\10" "\20\10\37\0\0\0\360\10\370\10\370\0\0\0\0\1\177@\177\0\0\0\0\0\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\60\0\0\0\0\0\0\10\374\0\0\0\0\0\0\1" "\1\1\0\0\0\0\60HH\60\0\0\0\0\1\1\1\1\0\0\0@\200@\200\0\0\0\0\20\10\25" "\12\5\2\0\0\20\370\0\200`\20\0\0\30\4\3\14\12\37\0\0\20\370\0\200`\20\0\0\30\4\3" "\22\31\26\0\0\210\250P\300 \30\0\0\10\6\1\14\12\37\0\0\0\0\260\0\0\0\0\0\60HG" "@@\60\0\0\300 \22\24 \300\0\0\37\1\1\1\1\37\0\0\300 \24\22 \300\0\0\37\1\1" "\1\1\37\0\0\300$\22\22$\300\0\0\37\1\1\1\1\37\0\0\304\42\22\24$\302\0\0\37\1\1" "\1\1\37\0\0\300$\20\20$\300\0\0\37\1\1\1\1\37\0\0\300(\24\24(\300\0\0\37\1\1" "\1\1\37\0\0\340\220\210\370\210\210\0\0\37\0\0\37\20\20\0\0\360\10\10\10\10\60\0\0\17\20P" "\60\20\14\0\0\360\20\22\24\20\20\0\0\37\21\21\21\21\20\0\0\360\20\24\22\20\20\0\0\37\21\21" "\21\21\20\0\0\360\24\22\22\24\20\0\0\37\21\21\21\21\20\0\0\360\24\20\20\24\20\0\0\37\21\21" "\21\21\20\0\0\0\20\22\364\20\20\0\0\0\20\20\37\20\20\0\0\0\20\20\364\22\20\0\0\0\20\20" "\37\20\20\0\0\0\20\24\362\24\20\0\0\0\20\20\37\20\20\0\0\0\20\24\360\24\20\0\0\0\20\20" "\37\20\20\0\0\200\370\210\210\10\20\340\0\0\37\20\20\20\10\7\0\364\62\302\4\4\362\0\0\37\0\0" "\7\30\37\0\0\340\20\22\24\20\340\0\0\17\20\20\20\20\17\0\0\340\20\24\22\20\340\0\0\17\20\20" "\20\20\17\0\0\340\24\22\22\24\340\0\0\17\20\20\20\20\17\0\0\344\22\22\24\24\342\0\0\17\20\20" "\20\20\17\0\0\340\24\20\20\24\340\0\0\17\20\20\20\20\17\0\0@\200\0\0\0\200@\0\20\10\5" "\2\5\10\20\0\360\10\10\350\30\366\0\0o\30\27\20\20\17\0\0\360\0\2\4\0\360\0\0\17\20\20" "\20\20\17\0\0\360\0\4\2\0\360\0\0\17\20\20\20\20\17\0\0\360\4\2\2\4\360\0\0\17\20\20" "\20\20\17\0\0\360\4\0\0\4\360\0\0\17\20\20\20\20\17\0\0\0\60\300\4\302\60\0\0\0\0\0" "\37\0\0\0\0\370 \300\0\0\37\4\4\4\4\3\0\0\0\360\210\210p\0\0\0\20\37\20" "\20\21\16\0\0\200@HP@\200\0\0\14\22\22\22\22\37\0\0\200@@PH\200\0\0\14\22\22" "\22\22\37\0\0\200PHHP\200\0\0\14\22\22\22\22\37\0\0\220HHPP\210\0\0\14\22\22" "\22\22\37\0\0\200P@@P\200\0\0\14\22\22\22\22\37\0\0\200HTTH\200\0\0\14\22\22" "\22\22\37\0\0\200@@\300@@\200\0\14\22\21\37\22\22\13\0\200@@@@\200\0\0\17\20P" "\60\20\10\0\0\200@HP@\200\0\0\17\22\22\22\22\13\0\0\200@PH@\200\0\0\17\22\22" "\22\22\13\0\0\200PHHP\200\0\0\17\22\22\22\22\13\0\0\200P@@P\200\0\0\17\22\22" "\22\22\13\0\0\0\0H\320\0\0\0\0\0\20\20\37\20\20\0\0\0\0@\320\10\0\0\0\0\20\20" "\37\20\20\0\0\0\20H\310\20\0\0\0\0\20\20\37\20\20\0\0\0\0P\300\20\0\0\0\0\20\20" "\37\20\20\0\0\0\200THT\340\0\0\0\17\20\20\20\17\0\0\320\210HPP\210\0\0\37\0\0" "\0\0\37\0\0\200@HP@\200\0\0\17\20\20\20\20\17\0\0\200@PH@\200\0\0\17\20\20" "\20\20\17\0\0\200PHHP\200\0\0\17\20\20\20\20\17\0\0\220HHPP\210\0\0\17\20\20" "\20\20\17\0\0\200P@@P\200\0\0\17\20\20\20\20\17\0\0\0\0\0\0\0\0\0\0\4\4\25" "\25\4\4\0\0\200@@\300`\220\0\0o\30\26\21\20\17\0\0\300\0\10\20\0\300\0\0\17\20\20" "\20\10\37\0\0\300\0\20\10\0\300\0\0\17\20\20\20\10\37\0\0\300\20\10\10\20\300\0\0\17\20\20" "\20\10\37\0\0\300\20\0\0\20\300\0\0\17\20\20\20\10\37\0\0\300\0\20\10\0\300\0\0 CL" "\70\16\1\0\0\370\200@@@\200\0\0\177\10\20\20\20\17\0\0\300\20\0\0\20\300\0\0 CL" "\70\16\1"; /* Fontname: -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 95/2576 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14_1x2_r[1524] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_r") = " ~\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\0\0\0\0\0\0\0" "\33\0\0\0\0\0\0<\0<\0\0\0\0\0\0\0\0\0\0\0\0@\370@\370@\0\0\0\2\37" "\2\37\2\0\0`\220\20\370\20`\0\0\14\20\21\77\21\16\0\0\60HH\360 \30\0\0\30\4\17" "\22\22\14\0\0\0p\210\210p\0\0\0\16\21\21\12\14\23\0\0\0\0\0<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\60\10\4\0\0\0\0\7\30 @\0\0\0\4\10\60\300\0\0\0\0@ " "\30\7\0\0\0\0@\200\340\200@\0\0\0\4\2\17\2\4\0\0\0\0\0\340\0\0\0\0\0\1\1" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0H\70\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\20\70\20\0\0\0\0\0\0\300\60\14\0\0`\30\6" "\1\0\0\0\0\340\20\10\10\20\340\0\0\7\10\20\20\10\7\0\0\0 \20\370\0\0\0\0\0\20\20" "\37\20\20\0\0\60\10\10\10\210p\0\0\20\30\24\22\21\20\0\0\10\10\210\310\250\30\0\0\14\20\20" "\20\20\17\0\0\0\200`\20\370\0\0\0\6\5\4\4\37\4\0\0\370HHHH\210\0\0\14\20\20" "\20\20\17\0\0\340\20\210\210\210\0\0\0\17\21\20\20\20\17\0\0\10\10\10\210h\30\0\0\0\30\6" "\1\0\0\0\0\60H\210\210H\60\0\0\16\21\20\20\21\16\0\0\360\10\10\10\210\360\0\0\14\21\21" "\21\10\7\0\0\0\0@\340@\0\0\0\0\0\10\34\10\0\0\0\0\0\300\300\0\0\0\0\0\0$" "\34\0\0\0\0\0\0\200@ \20\0\0\0\1\2\4\10\20\0\0@@@@@@\0\0\2\2\2" "\2\2\2\0\0\0\20 @\200\0\0\0\0\20\10\4\2\1\0\0\60\10\10\210H\60\0\0\0\0\0" "\33\0\0\0\0\340\20\310((\360\0\0\7\10\23\24\24\27\0\0\340\20\10\10\20\340\0\0\37\1\1" "\1\1\37\0\0\370\210\210\210P \0\0\37\20\20\20\11\6\0\0\360\10\10\10\10\60\0\0\17\20\20" "\20\20\14\0\0\370\10\10\10\20\340\0\0\37\20\20\20\10\7\0\0\370\210\210\210\10\10\0\0\37\20\20" "\20\20\20\0\0\370\210\210\210\10\10\0\0\37\0\0\0\0\0\0\0\360\10\10\10\10\60\0\0\17\20\20" "\21\11\37\0\0\370\200\200\200\200\370\0\0\37\0\0\0\0\37\0\0\0\10\10\370\10\10\0\0\0\20\20" "\37\20\20\0\0\0\0\0\10\370\10\0\0\14\20\20\20\17\0\0\0\370\200@ \20\10\0\0\37\0\1" "\2\4\30\0\0\370\0\0\0\0\0\0\0\37\20\20\20\20\20\0\0\370\60\300\300\60\370\0\0\37\0\0" "\0\0\37\0\0\370`\200\0\0\370\0\0\37\0\0\1\6\37\0\0\360\10\10\10\10\360\0\0\17\20\20" "\20\20\17\0\0\370\10\10\10\10\360\0\0\37\1\1\1\1\0\0\0\360\10\10\10\10\360\0\0\17\22\22" "\24\70O\0\0\370\10\10\10\10\360\0\0\37\1\1\3\5\30\0\0p\210\210\10\10\60\0\0\14\20\20" "\21\21\16\0\0\10\10\10\370\10\10\10\0\0\0\0\37\0\0\0\0\370\0\0\0\0\370\0\0\17\20\20" "\20\20\17\0\0x\200\0\0\200x\0\0\0\3\34\34\3\0\0\0\0\370\0\0\0\370\0\0\0\17\20" "\16\20\17\0\0\30`\200\200`\30\0\0\30\6\1\1\6\30\0\0\0\70\300\0\300\70\0\0\0\0\0" "\37\0\0\0\0\10\10\10\310(\30\0\0\30\26\21\20\20\20\0\0\0\0\374\4\4\4\0\0\0\0\177" "@@@\0\0\14\60\300\0\0\0\0\0\0\0\1\6\30`\0\0\0\4\4\4\374\0\0\0\0@@" "@\177\0\0\0\20\10\4\4\10\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@" "@@@\0\0\0\0\4\10\20\0\0\0\0\0\0\0\0\0\0\0\200@@@@\200\0\0\14\22\22" "\22\22\37\0\0\370\200@@@\200\0\0\37\10\20\20\20\17\0\0\200@@@@\200\0\0\17\20\20" "\20\20\10\0\0\200@@@\200\370\0\0\17\20\20\20\10\37\0\0\200@@@@\200\0\0\17\22\22" "\22\22\13\0\0\200\200\360\210\210\20\0\0\0\0\37\0\0\0\0\0\200@@@\200@\0\0\63LT" "TS \0\0\370\200@@@\200\0\0\37\0\0\0\0\37\0\0\0\0@\330\0\0\0\0\0\20\20" "\37\20\20\0\0\0\0\0\0@\330\0\0\0\60@@@\77\0\0\370\0\0\200@\0\0\0\37\2\3" "\4\10\20\0\0\0\0\10\370\0\0\0\0\0\20\20\37\20\20\0\0\0\300@\200@\200\0\0\0\37\0" "\17\0\37\0\0\300\200@@@\200\0\0\37\0\0\0\0\37\0\0\200@@@@\200\0\0\17\20\20" "\20\20\17\0\0\300\200@@@\200\0\0\177\10\20\20\20\17\0\0\200@@@\200\300\0\0\17\20\20" "\20\10\177\0\0\300\200@@@\200\0\0\37\0\0\0\0\1\0\0\200@@@@\200\0\0\10\21\22" "\22\24\10\0\0@@\370@@\0\0\0\0\0\17\20\20\10\0\0\300\0\0\0\0\300\0\0\17\20\20" "\20\10\37\0\0\0\300\0\0\0\300\0\0\0\1\6\30\6\1\0\0\0\300\0\0\0\300\0\0\0\17\20" "\17\20\17\0\0\300\0\0\0\0\300\0\0\30\5\2\2\5\30\0\0\300\0\0\0\0\300\0\0'HH" "HD\77\0\0@@@@\300@\0\0\20\30\26\21\20\20\0\0\0\0\0\370\4\4\0\0\0\0\1" ">@@\0\0\0\0\0\374\0\0\0\0\0\0\0\177\0\0\0\0\0\4\4\370\0\0\0\0\0@@" ">\1\0\0\0\30\4\10\20 \30\0\0\0\0\0\0\0\0"; /* Fontname: -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 18/2576 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14_1x2_n[436] U8X8_FONT_SECTION("u8x8_font_7x14_1x2_n") = " :\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0@\200\340\200@\0\0\0\4\2\17\2\4\0\0\0\0\0\340\0\0\0\0\0\1\1" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0H\70\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\20\70\20\0\0\0\0\0\0\300\60\14\0\0`\30\6" "\1\0\0\0\0\340\20\10\10\20\340\0\0\7\10\20\20\10\7\0\0\0 \20\370\0\0\0\0\0\20\20" "\37\20\20\0\0\60\10\10\10\210p\0\0\20\30\24\22\21\20\0\0\10\10\210\310\250\30\0\0\14\20\20" "\20\20\17\0\0\0\200`\20\370\0\0\0\6\5\4\4\37\4\0\0\370HHHH\210\0\0\14\20\20" "\20\20\17\0\0\340\20\210\210\210\0\0\0\17\21\20\20\20\17\0\0\10\10\10\210h\30\0\0\0\30\6" "\1\0\0\0\0\60H\210\210H\60\0\0\16\21\20\20\21\16\0\0\360\10\10\10\210\360\0\0\14\21\21" "\21\10\7\0\0\0\0@\340@\0\0\0\0\0\10\34\10\0"; /* Fontname: -Misc-Fixed-Bold-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 191/1009 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14B_1x2_f[3588] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_f") = " \377\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\0\0\0\0\0\0\33" "\33\0\0\0\0\0<<\0<<\0\0\0\0\0\0\0\0\0\0@\370\370\370\370@\0\0\2\37\37" "\37\37\2\0\0`\220\370\370\20`\0\0\14\20\77\77\21\16\0\0\60xH\360\70\30\0\0\30\34\17" "\22\36\14\0\0\0p\370\210\370p\0\0\16\37\21\16\37\23\0\0\0\0<<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\360\70\14\4\0\0\0\7\37\70`@\0\0\0\4\14\70\360\300\0\0\0@`" "\70\37\7\0\0\30\240\370\370\240\30\0\0\3\0\3\3\0\3\0\0\0\0\340\340\0\0\0\0\1\1\17" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0Hx\70\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\30\30\0\0\0\0\0\0\200\340|\34\0\0p|\17" "\3\0\0\0\0\360\370\10\10\370\360\0\0\17\37\20\20\37\17\0\0 \60\370\370\0\0\0\0\20\20\37" "\37\20\20\0\0\60\70\10\210\370p\0\0\30\34\26\23\21\20\0\0\60\70\210\210\370p\0\0\14\34\20" "\20\37\17\0\0\0\200\300\360\370\0\0\0\7\7\4\37\37\4\0\0\370\370HH\310\210\0\0\14\34\20" "\20\37\17\0\0\340\360\230\210\270\60\0\0\17\37\20\20\37\17\0\0\70\70\210\350x\30\0\0\0\0\37" "\37\0\0\0\0p\370\210\210\370p\0\0\16\37\21\21\37\16\0\0\360\370\10\10\370\360\0\0\14\35\21" "\31\17\7\0\0\0\0``\0\0\0\0\0\0\14\14\0\0\0\0\0\0\0``\0\0\0\0\0$" "<\34\0\0\0\0\200\300`\60\20\0\0\1\3\6\14\30\20\0\0\200\200\200\200\200\200\0\0\4\4\4" "\4\4\4\0\0\20\60`\300\200\0\0\0\20\30\14\6\3\1\0\0\60\70\210\310x\60\0\0\0\0\33" "\33\0\0\0\0\340\360\330\350\70\360\0\0\7\17\33\27\24\27\0\0\360\370\30\30\370\360\0\0\37\37\2" "\2\37\37\0\0\370\370\210\210\370\60\0\0\37\37\20\20\37\17\0\0\360\370\10\10\70\60\0\0\17\37\20" "\20\34\14\0\0\370\370\10\30\360\340\0\0\37\37\20\30\17\7\0\0\370\370\210\210\210\10\0\0\37\37\20" "\20\20\20\0\0\370\370\210\210\210\10\0\0\37\37\0\0\0\0\0\0\360\370\10\10\70\60\0\0\17\37\20" "\21\37\17\0\0\370\370\200\200\370\370\0\0\37\37\0\0\37\37\0\0\10\10\370\370\10\10\0\0\20\20\37" "\37\20\20\0\0\0\0\0\0\370\370\0\0\14\34\20\30\17\7\0\0\370\370\340\60\30\10\0\0\37\37\3" "\7\34\30\0\0\370\370\0\0\0\0\0\0\37\37\20\20\20\20\0\0\370\360\300\300\360\370\0\0\37\37\0" "\0\37\37\0\0\370\370\340\0\370\370\0\0\37\37\0\7\37\37\0\0\360\370\10\10\370\360\0\0\17\37\20" "\20\37\17\0\0\370\370\10\10\370\360\0\0\37\37\1\1\1\0\0\0\360\370\10\10\370\360\0\0\17\37\22" "\24\77o\0\0\370\370\210\210\370p\0\0\37\37\0\1\37\36\0\0\60x\310\210\70\60\0\0\14\34\21" "\23\36\14\0\0\10\10\370\370\10\10\0\0\0\0\37\37\0\0\0\0\370\370\0\0\370\370\0\0\17\37\20" "\20\37\17\0\0\370\370\0\0\370\370\0\0\3\17\34\34\17\3\0\0\370\370\0\0\370\370\0\0\17\37\17" "\17\37\17\0\0\30x\340\340x\30\0\0\30\36\7\7\36\30\0\0\70\370\300\300\370\70\0\0\0\0\37" "\37\0\0\0\0\10\10\210\350x\30\0\0\30\36\27\21\20\20\0\0\0\374\374\4\4\4\0\0\0\177\177" "@@@\0\0\34|\340\200\0\0\0\0\0\0\3\17|p\0\0\0\4\4\4\374\374\0\0\0@@" "@\177\177\0\0\10\14\6\6\14\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0```" "```\0\0\0\4\14\30\20\0\0\0\0\0\0\0\0\0\0\0\200\300@@\300\200\0\0\14\36\22" "\21\37\37\0\0\370\370@@\300\200\0\0\37\37\20\20\37\17\0\0\200\300@@\300\200\0\0\17\37\20" "\20\30\10\0\0\200\300@@\370\370\0\0\17\37\20\20\37\37\0\0\200\300@@\300\200\0\0\17\37\22" "\22\33\13\0\0\200\200\360\370\230\220\0\0\0\0\37\37\0\0\0\0\200\300@\300\200\300\0\0\63\177T" "Ws \0\0\370\370@@\300\200\0\0\37\37\0\0\37\37\0\0\0\0\330\330\0\0\0\0\0\0\37" "\37\0\0\0\0\0\0\0\0\330\330\0\0\0 `@\177\77\0\0\370\370\0\200\300\0\0\0\37\37\3" "\7\14\30\0\0\0\0\370\370\0\0\0\0\0\0\37\37\0\0\0\0\300\300\200\300\300\200\0\0\37\37\17" "\17\37\37\0\0\300\300@@\300\200\0\0\37\37\0\0\37\37\0\0\200\300@@\300\200\0\0\17\37\20" "\20\37\17\0\0\300\300@@\300\200\0\0\177\177\20\20\37\17\0\0\200\300@@\300\300\0\0\17\37\20" "\20\177\177\0\0\300\300@@\300\200\0\0\37\37\0\0\1\1\0\0\200\300@@\300\200\0\0\10\31\23" "\26\34\10\0\0@@\370\370@@\0\0\0\0\17\37\20\20\0\0\300\300\0\0\300\300\0\0\17\37\20" "\20\37\37\0\0\300\300\0\0\300\300\0\0\1\7\36\36\7\1\0\0\300\300\0\0\300\300\0\0\17\37\17" "\17\37\17\0\0\300\300\0\0\300\300\0\0\30\35\7\7\35\30\0\0\300\300\0\0\300\300\0\0 cO" "|\77\3\0\0@@@@\300\300\0\0\30\34\26\23\21\20\0\0\0\0\370\374\4\4\0\0\0\1\77" "~@@\0\0\0\0\374\374\0\0\0\0\0\0\177\177\0\0\0\0\0\4\4\374\370\0\0\0\0@@" "~\77\1\0\0\70\14\30\30\60\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\330\330\0\0\0\0\0\0\37" "\37\0\0\0\0\200@\340\340@\300\0\0\17\20\77\77\20\30\0\0\0\340\360\20\60 \0\0\11\37\37" "\11\30\20\0\0 \340\300@\340 \0\0\4\7\2\3\7\4\0\0Xp\340\340pX\0\0\2\2\37" "\37\2\2\0\0\0\0xx\0\0\0\0\0\0\36\36\0\0\0\0\210\334td\314\210\0\0\10\31\23" "\27\35\10\0\0\0\14\14\0\14\14\0\0\0\0\0\0\0\0\0\0\370\374\364\24\374\370\0\0\17\37\27" "\24\37\17\0\0\0h\374\224\374\370\0\0\0\2\2\2\2\2\0\0\0\0\200\300\300\300\0\0\2\7\17" "\37\35\30\0\0\0\0\0\0\0\0\0\0\3\3\3\3\37\37\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\370\374\364\224\374\370\0\0\17\37\27\20\37\17\0\0\0\4\4\4\4\4\0\0\0\0\0" "\0\0\0\0\0\0\30<$<\30\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\22\22\37" "\37\22\22\0\0\0\210\314d<\30\0\0\0\1\1\1\1\1\0\0\0\210\254$\374\330\0\0\0\0\1" "\1\1\0\0\0\0\20\30\14\4\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\200\200\0\0\177\177\20" "\30\37\37\0\0\360\370\370\10\370\370\0\0\0\1\177@\177\177\0\0\0\0\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@p\60\0\0\0\0\20\370\370\0\0\0\0\0\0\1" "\1\0\0\0\0\0\60xHx\60\0\0\0\1\1\1\1\1\0\0@\300\300\200\0\0\0\0\20\30\35" "\17\7\2\0\0\20\370\370\300\360\30\0\0\30\16\3\15\36\37\0\0\20\370\370\300\360\30\0\0\30\16\3" "\33\35\26\0\0\250\370\360\300p\30\0\0\14\6\3\15\37\37\0\0\0\260\260\0\0\0\0\0\60\177O" "@p\60\0\0\340\362\66\64\360\340\0\0\37\37\2\2\37\37\0\0\340\360\64\66\362\340\0\0\37\37\2" "\2\37\37\0\0\340\364\66\66\364\340\0\0\37\37\2\2\37\37\0\0\344\362\66\64\362\340\0\0\37\37\2" "\2\37\37\0\0\346\366\60\60\366\346\0\0\37\37\2\2\37\37\0\0\300\344jj\344\300\0\0\37\37\2" "\2\37\37\0\0\360\370\10\370\370\210\10\0\37\37\1\37\37\20\20\0\360\370\10\10\70\60\0\0\17_p" "\60\34\14\0\0\360\362\26\24\20\20\0\0\37\37\21\21\21\20\0\0\360\360\24\26\22\20\0\0\37\37\21" "\21\21\20\0\0\360\364\26\26\24\20\0\0\37\37\21\21\21\20\0\0\366\366\20\20\26\26\0\0\37\37\21" "\21\21\20\0\0\20\22\366\364\20\20\0\0\20\20\37\37\20\20\0\0\20\20\364\366\22\20\0\0\20\20\37" "\37\20\20\0\0\20\24\366\366\24\20\0\0\20\20\37\37\20\20\0\0\26\26\360\360\26\26\0\0\20\20\37" "\37\20\20\0\0\200\370\370\210\230\360\340\0\0\37\37\20\30\17\7\0\364\362\346\4\362\360\0\0\37\37\0" "\7\37\37\0\0\340\362\26\24\360\340\0\0\17\37\20\20\37\17\0\0\340\360\24\26\362\340\0\0\17\37\20" "\20\37\17\0\0\340\364\26\26\364\340\0\0\17\37\20\20\37\17\0\0\344\362\26\24\362\340\0\0\17\37\20" "\20\37\17\0\0\346\366\20\20\366\346\0\0\17\37\20\20\37\17\0\0@\300\200\0\200\300@\0\30\14\7" "\3\7\14\30\0\360\370\10\370\370\366\0\0o\37\37\20\37\17\0\0\360\362\6\4\360\360\0\0\17\37\20" "\20\37\17\0\0\360\360\4\6\362\360\0\0\17\37\20\20\37\17\0\0\360\364\6\6\364\360\0\0\17\37\20" "\20\37\17\0\0\366\366\0\0\366\366\0\0\17\37\20\20\37\17\0\0p\360\204\206\362p\0\0\0\3\37" "\37\3\0\0\0\370\370 \340\300\0\0\37\37\4\4\7\3\0\0\0\360\370\210\370p\0\0\20\37\37" "\20\37\17\0\0\200\310XP\300\200\0\0\14\36\23\21\37\37\0\0\200\300PX\310\200\0\0\14\36\23" "\21\37\37\0\0\200\320XX\320\200\0\0\14\36\23\21\37\37\0\0\220\310XP\310\200\0\0\14\36\23" "\21\37\37\0\0\230\330@@\330\230\0\0\14\36\23\21\37\37\0\0\200\310TT\310\200\0\0\14\36\23" "\21\37\37\0\0\200\300@\300\300@\200\0\14\36\21\37\37\32\13\0\200\300@@\300\200\0\0\17_p" "\60\30\10\0\0\200\310XP\300\200\0\0\17\37\22\22\33\13\0\0\200\300PX\310\200\0\0\17\37\22" "\22\33\13\0\0\200\320XX\320\200\0\0\17\37\22\22\33\13\0\0\230\330@@\330\230\0\0\17\37\22" "\22\33\13\0\0\0\0\10\330\320\0\0\0\0\0\0\37\37\0\0\0\0\0\320\330\10\0\0\0\0\0\37" "\37\0\0\0\0\0\20\330\330\20\0\0\0\0\0\37\37\0\0\0\0\30\30\300\300\30\30\0\0\0\0\37" "\37\0\0\0\0\64\234\230\274\344\300\0\0\17\37\20\20\37\17\0\0\320\310XP\310\200\0\0\37\37\0" "\0\37\37\0\0\200\310XP\300\200\0\0\17\37\20\20\37\17\0\0\200\300PX\310\200\0\0\17\37\20" "\20\37\17\0\0\200\320XX\320\200\0\0\17\37\20\20\37\17\0\0\220\310XP\310\200\0\0\17\37\20" "\20\37\17\0\0\230\330@@\330\230\0\0\17\37\20\20\37\17\0\0\0\0``\0\0\0\0\3\3\33" "\33\3\3\0\0\200\300@\300\340\220\0\0o\37\26\21\37\17\0\0\300\310\30\20\300\300\0\0\17\37\20" "\20\37\37\0\0\300\300\20\30\310\300\0\0\17\37\20\20\37\37\0\0\300\320\30\30\320\300\0\0\17\37\20" "\20\37\37\0\0\330\330\0\0\330\330\0\0\17\37\20\20\37\37\0\0\300\300\20\30\310\300\0\0!c~" ">\17\1\0\0\370\370@@\300\200\0\0\177\177\20\20\37\17\0\0\330\330\0\0\330\330\0\0!c~" ">\17\1"; /* Fontname: -Misc-Fixed-Bold-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 95/1009 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14B_1x2_r[1524] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_r") = " ~\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\0\0\0\0\0\0\33" "\33\0\0\0\0\0<<\0<<\0\0\0\0\0\0\0\0\0\0@\370\370\370\370@\0\0\2\37\37" "\37\37\2\0\0`\220\370\370\20`\0\0\14\20\77\77\21\16\0\0\60xH\360\70\30\0\0\30\34\17" "\22\36\14\0\0\0p\370\210\370p\0\0\16\37\21\16\37\23\0\0\0\0<<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\360\70\14\4\0\0\0\7\37\70`@\0\0\0\4\14\70\360\300\0\0\0@`" "\70\37\7\0\0\30\240\370\370\240\30\0\0\3\0\3\3\0\3\0\0\0\0\340\340\0\0\0\0\1\1\17" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0Hx\70\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\30\30\0\0\0\0\0\0\200\340|\34\0\0p|\17" "\3\0\0\0\0\360\370\10\10\370\360\0\0\17\37\20\20\37\17\0\0 \60\370\370\0\0\0\0\20\20\37" "\37\20\20\0\0\60\70\10\210\370p\0\0\30\34\26\23\21\20\0\0\60\70\210\210\370p\0\0\14\34\20" "\20\37\17\0\0\0\200\300\360\370\0\0\0\7\7\4\37\37\4\0\0\370\370HH\310\210\0\0\14\34\20" "\20\37\17\0\0\340\360\230\210\270\60\0\0\17\37\20\20\37\17\0\0\70\70\210\350x\30\0\0\0\0\37" "\37\0\0\0\0p\370\210\210\370p\0\0\16\37\21\21\37\16\0\0\360\370\10\10\370\360\0\0\14\35\21" "\31\17\7\0\0\0\0``\0\0\0\0\0\0\14\14\0\0\0\0\0\0\0``\0\0\0\0\0$" "<\34\0\0\0\0\200\300`\60\20\0\0\1\3\6\14\30\20\0\0\200\200\200\200\200\200\0\0\4\4\4" "\4\4\4\0\0\20\60`\300\200\0\0\0\20\30\14\6\3\1\0\0\60\70\210\310x\60\0\0\0\0\33" "\33\0\0\0\0\340\360\330\350\70\360\0\0\7\17\33\27\24\27\0\0\360\370\30\30\370\360\0\0\37\37\2" "\2\37\37\0\0\370\370\210\210\370\60\0\0\37\37\20\20\37\17\0\0\360\370\10\10\70\60\0\0\17\37\20" "\20\34\14\0\0\370\370\10\30\360\340\0\0\37\37\20\30\17\7\0\0\370\370\210\210\210\10\0\0\37\37\20" "\20\20\20\0\0\370\370\210\210\210\10\0\0\37\37\0\0\0\0\0\0\360\370\10\10\70\60\0\0\17\37\20" "\21\37\17\0\0\370\370\200\200\370\370\0\0\37\37\0\0\37\37\0\0\10\10\370\370\10\10\0\0\20\20\37" "\37\20\20\0\0\0\0\0\0\370\370\0\0\14\34\20\30\17\7\0\0\370\370\340\60\30\10\0\0\37\37\3" "\7\34\30\0\0\370\370\0\0\0\0\0\0\37\37\20\20\20\20\0\0\370\360\300\300\360\370\0\0\37\37\0" "\0\37\37\0\0\370\370\340\0\370\370\0\0\37\37\0\7\37\37\0\0\360\370\10\10\370\360\0\0\17\37\20" "\20\37\17\0\0\370\370\10\10\370\360\0\0\37\37\1\1\1\0\0\0\360\370\10\10\370\360\0\0\17\37\22" "\24\77o\0\0\370\370\210\210\370p\0\0\37\37\0\1\37\36\0\0\60x\310\210\70\60\0\0\14\34\21" "\23\36\14\0\0\10\10\370\370\10\10\0\0\0\0\37\37\0\0\0\0\370\370\0\0\370\370\0\0\17\37\20" "\20\37\17\0\0\370\370\0\0\370\370\0\0\3\17\34\34\17\3\0\0\370\370\0\0\370\370\0\0\17\37\17" "\17\37\17\0\0\30x\340\340x\30\0\0\30\36\7\7\36\30\0\0\70\370\300\300\370\70\0\0\0\0\37" "\37\0\0\0\0\10\10\210\350x\30\0\0\30\36\27\21\20\20\0\0\0\374\374\4\4\4\0\0\0\177\177" "@@@\0\0\34|\340\200\0\0\0\0\0\0\3\17|p\0\0\0\4\4\4\374\374\0\0\0@@" "@\177\177\0\0\10\14\6\6\14\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0```" "```\0\0\0\4\14\30\20\0\0\0\0\0\0\0\0\0\0\0\200\300@@\300\200\0\0\14\36\22" "\21\37\37\0\0\370\370@@\300\200\0\0\37\37\20\20\37\17\0\0\200\300@@\300\200\0\0\17\37\20" "\20\30\10\0\0\200\300@@\370\370\0\0\17\37\20\20\37\37\0\0\200\300@@\300\200\0\0\17\37\22" "\22\33\13\0\0\200\200\360\370\230\220\0\0\0\0\37\37\0\0\0\0\200\300@\300\200\300\0\0\63\177T" "Ws \0\0\370\370@@\300\200\0\0\37\37\0\0\37\37\0\0\0\0\330\330\0\0\0\0\0\0\37" "\37\0\0\0\0\0\0\0\0\330\330\0\0\0 `@\177\77\0\0\370\370\0\200\300\0\0\0\37\37\3" "\7\14\30\0\0\0\0\370\370\0\0\0\0\0\0\37\37\0\0\0\0\300\300\200\300\300\200\0\0\37\37\17" "\17\37\37\0\0\300\300@@\300\200\0\0\37\37\0\0\37\37\0\0\200\300@@\300\200\0\0\17\37\20" "\20\37\17\0\0\300\300@@\300\200\0\0\177\177\20\20\37\17\0\0\200\300@@\300\300\0\0\17\37\20" "\20\177\177\0\0\300\300@@\300\200\0\0\37\37\0\0\1\1\0\0\200\300@@\300\200\0\0\10\31\23" "\26\34\10\0\0@@\370\370@@\0\0\0\0\17\37\20\20\0\0\300\300\0\0\300\300\0\0\17\37\20" "\20\37\37\0\0\300\300\0\0\300\300\0\0\1\7\36\36\7\1\0\0\300\300\0\0\300\300\0\0\17\37\17" "\17\37\17\0\0\300\300\0\0\300\300\0\0\30\35\7\7\35\30\0\0\300\300\0\0\300\300\0\0 cO" "|\77\3\0\0@@@@\300\300\0\0\30\34\26\23\21\20\0\0\0\0\370\374\4\4\0\0\0\1\77" "~@@\0\0\0\0\374\374\0\0\0\0\0\0\177\177\0\0\0\0\0\4\4\374\370\0\0\0\0@@" "~\77\1\0\0\70\14\30\30\60\34\0\0\0\0\0\0\0\0"; /* Fontname: -Misc-Fixed-Bold-R-Normal--14-130-75-75-C-70-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 18/1009 BBX Build Mode: 3 */ const uint8_t u8x8_font_7x14B_1x2_n[436] U8X8_FONT_SECTION("u8x8_font_7x14B_1x2_n") = " :\1\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\30\240\370\370\240\30\0\0\3\0\3\3\0\3\0\0\0\0\340\340\0\0\0\0\1\1\17" "\17\1\1\0\0\0\0\0\0\0\0\0\0\0\0Hx\70\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\30\30\0\0\0\0\0\0\200\340|\34\0\0p|\17" "\3\0\0\0\0\360\370\10\10\370\360\0\0\17\37\20\20\37\17\0\0 \60\370\370\0\0\0\0\20\20\37" "\37\20\20\0\0\60\70\10\210\370p\0\0\30\34\26\23\21\20\0\0\60\70\210\210\370p\0\0\14\34\20" "\20\37\17\0\0\0\200\300\360\370\0\0\0\7\7\4\37\37\4\0\0\370\370HH\310\210\0\0\14\34\20" "\20\37\17\0\0\340\360\230\210\270\60\0\0\17\37\20\20\37\17\0\0\70\70\210\350x\30\0\0\0\0\37" "\37\0\0\0\0p\370\210\210\370p\0\0\16\37\21\21\37\16\0\0\360\370\10\10\370\360\0\0\14\35\21" "\31\17\7\0\0\0\0``\0\0\0\0\0\0\14\14\0\0"; /* Fontname: open_iconic_arrow_1x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 28/28 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_arrow_1x1[229] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_1x1") = "@[\1\1\0 `\377` \0\0\10\34>\10\10\10\10\10\10\10\10\10\10>\34\10\0\4\6\377" "\6\4\0\0\37\30\30\10~~~~~~~\30\0$<\333Z$\0\0<~\377\377" "\201\201B<\357\357\357\357\357\257\357\0\0\12*\277\65\24\0\0\70D\200\217\200D\70\0|x\360\340\300\300\340\360x" "|>\37\7\340\370|>\36\17\7\3\77\77\77>><\370\340\7\37>|x\360\340\300\374\374\374|" "|<\37\7\340\370<>>\77\77\77\3\7\17\36>|\370\340\7\37<||\374\374\374\300\340\360x" "|>\37\7\340\370|>\36\17\7\3\3\7\17\36>|\370\340\7\37\77\177\177\377\300\300\300\300\377\177" "\177\77\37\7\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\4\14\34\77\177\377\177<\34" "\14\0\0\0\0\200\300\340\360\370\300\300\300\300\300\300\300\300\300\300\1\3\7\17\37\37\3\3\3\3\3\3" "\3\3\3\3\300\300\300\300\300\300\300\300\300\300\370\370\360\340\300\200\3\3\3\3\3\3\3\3\3\3\37\17" "\7\3\1\0\0\0\0\60\70<\376\377\376\374\70\60 \0\0\0\0\0\0\0\0\0\377\377\377\377\0\0" "\0\0\0\0\0\20\60p\360\360\360\360\360\360\360\360p\60\20\0\0\0\0\0\0\1\3\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177" "\0\0\0\0\0\0\0\0\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\300\200\0\0\0\0\0\0\10\14\16\17\17\17\17\17\17\17\17" "\16\14\10\0\0\60x\370\360\340\300\200\200\300\340\360\370x\60\0\0\0\0\0\1\3\7\17\17\7\3\1" "\0\0\0\0\0\0\0\200\300\340\360\370|>\36\14\0\0\0\0\0\0\0\1\3\7\17\37>|x\60" "\0\0\0\0\0\0\0\14\36>|\370\360\340\300\200\0\0\0\0\0\0\0\60x|>\37\17\7\3\1" "\0\0\0\0\0\0\0\200\300\340\360\370\370\360\340\300\200\0\0\0\0\6\17\17\7\3\1\0\0\1\3\7" "\17\17\6\0\0\0\0@\300\300\377\377\377\377\300\300@\0\0\0\300\300\300\300\300\301\303\307\307\303\301\300" "\300\300\300\300\3\3\3\3\3\203\303\343\343\303\203\3\3\3\3\3\0\0\0\2\3\3\377\377\377\377\3\3" "\2\0\0\0\70<\14\14\14\14\14\14\14\14\14\14\77\36\14\0\0\14\36\77\14\14\14\14\14\14\14\14" "\14\14\17\7\0\0\300\360\70\30\14\14\0\0\200\300\340\340\300\200\1\3\7\7\3\1\0\0\60\60\30\34" "\17\3\0\0\0\0\317\317\3\3\3\3\3\3C\303\377\377\300@\2\3\377\377\303\302\300\300\300\300\300\300" "\363\363\0\0\14\14\34\70p\340\300\340p\70\34\14\77\36\14\0\60\60\70\34\16\7\3\3\17\34\70\60" "\374x\60\0\0\200\300\300\340\340\360\360\360\360\377\376\374\370p \14\7\3\1\1\0\0\0\0\0\7\3" "\1\0\0\0\377\377\3\3\3c\60\70\70<<<~<\34\10\77\77\60\60\60\60\60\60\60\60<<" "\0\0\0"; /* Fontname: open_iconic_check_2x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 5/5 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_check_2x2[164] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_2x2") = "@D\2\2\0\200\300\200\0\0\0\200\300\340\360\370\374x\60\0\1\3\7\17\37>\77\37\17\7\3\1" "\0\0\0\0\340\370\374\376~\177\377\377\177\77\37\216\316\374\370\340\7\37\77\177~\374\370\370\374\376\377\177" "\177\77\37\7\340\370\374\376\316\217\37\77\77\37\217\316\376\374\370\340\7\37\77\177s\361\370\374\374\370\361s" "\177\77\37\7\377\377\3\3\3c\343\303\303\343q\70\34\216\6\0\77\77\60\60\60\60\60\61\61\60\60\60" "\77\77\0\0\4\16\37>|\370\360\340\360\370\374~\77\36\14\0\20\70|~\77\37\17\7\7\17\37>" "|x\60"; /* Fontname: open_iconic_embedded_2x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 17/17 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_embedded_2x2[548] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_2x2") = "@P\2\2\374\374\14\14\14\14\14\14\14\14\14\14\374\374\300\300\77\77\60\60\60\60\60\60\60\60\60\60" "\77\77\3\3\0\0\0\300\374\376\377\377\377\377\376\374\300\0\0\0\14\16\17\17\17\17O\317\317O\17\17" "\17\17\16\14\200\300\334\374\374\70\36\37\37\36\70\374\374\334\300\200\1\3;\77\77\34x\370\370x\34\77" "\77;\3\1\0\0\0\0 \70>\77\367\361p\20\0\0\0\0\0\0\0\0\14||\77\37\15\4\0" "\0\0\0\0\0 \360\370\370\374\376\377\377\376\374\370\370\360 \0\0\0\77\77\77\77\3\3\3\3\77\77" "\77\77\0\0\0\0\0\0\0\200\300\340\340\300\200\6\16\34\30\0\360\370\374\376\177\77\37\17\7\3\1\0" "\0\0\0\0\200\200\200\200\200\370~\370\300\200\340\340\200\200\200\200\1\1\3\37\37\3\0\3\37\37\3\1" "\1\1\1\1\0\0\0\300\370\376\77\77\376\360\300\0\0\0\0\0\340\374\377\377\377\377\314\314\377\377\377\377" "\370\340\0\0\0\0\0\0\0\0\370\376\376\377\303\300\300\300\300``\220\230|>\37\17\7\3\3\3\3" "\3\1\1\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\300\300\77\77\77\77\77\77\77\77\77\77\77\77" "\77\77\3\3\0\0\0\60`\377\377\206\314xx\60\0\0\0\0\0\0\0\14\6\377\377a\63\36\36\14" "\0\0\0\0\340\370\374\376\376\377\377\377\3\3\7\6\16<\370\340\7\37\77\177\177\377\377\377\300\300\340`" "p<\37\7\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\374\374\374\374\374\374\374\374\374\374\314\314" "\374\374\0\0\0\0\230\230\314\314ff\63\63\230\230\0\0\0\0\0\0\1\1\14\314\316\316\317\17\1\1" "\0\0\0\0\300\340p\30\0\0\377\377\0\0\30p\340\300\0\0\17\37\70`\340\300\300\300\300\340`\70" "\37\17\0\0\340\370<\16\6\7\3\3\3\3'\66><>>\7\37" "\177\371\360`\0\0\377\377\3\3\3\3\3\3\377\377\0\0\0\0\0\0\377\377\360\360\220\220\360\360\377\377" "\0\0\0\0\0\30<<<<\377\377\360\360\360\360`\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\60\60`\340\374\376\377\377\377\374\340`\60\60\0\0\63\63\37\77\177\177\0\0\177\177\77\37" "\63\63\0\0\0\200\340\360\377\376\374\360\0\0\300\200\0\0\0\0\17\77\177\377\17\7\301\340\370\374\377\377" "\377|\0\0\0\0\300\300\374\376\307\303\303\307\376\374\300\300\0\0\0\0\77\77\77\77\77\77\77\77\77\77" "\77\77\0\0\377\377\3\3\3\3\3\3\3\3\3\3\3\3\377\377\17\17\214\314\314\314\374\374\374\374\314\314" "\314\214\17\17\200\300\303\303\377\377\377\377\377\377\303\303\300\200\0\0\0\0\0\0\0\0\177\177\0\0\0\0" "\0\0\0\0\377\377\3\3\3\3\3\3\3\3\3\3\377\377\0\0\377\377\360\360\360\360\220\220\360\360\360\360" "\377\377\0"; /* Fontname: open_iconic_weather_2x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 6/6 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_weather_2x2[197] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_2x2") = "@E\2\2\0\200\300\300\340\370\370\374\374\374\374\370\370\340\0\0\17\37\77\77\77\77\77\77\77\77\77\77" "\77\77\77\36x~>\37\217\347\343\362\362\360\360\340\340\200\0\0<~\377\377\377\377\377\377\377\377\377\377" "\377\377\374x\340\370\374\376\377\340\200\0\0\0\0\0\0\0\0\0\3\17\37\77\177\177\177\377\376|||" "\70\30\14\0\300\340\360\360\370\376\376\377\377\377\377\376\376\370\300\200\3\3\363\363\1\0\374\374\0\1\363\363" "\3\7\17\7\0@\300\300\300\300\340\374\374\340\300\300\300\300@\0\0\0\0\1s\77\37\17\17\37\77s" "\1\0\0\0\200\200\14\14\300\340\360\363\363\360\340\300\14\14\200\200\1\1\60\60\3\7\17\317\317\17\7\3" "\60\60\1\1"; /* Fontname: open_iconic_arrow_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 28/28 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_arrow_4x4[3588] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_4x4") = "@[\4\4\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\20\60p\360\360\360\360\360\377\377\377\377\360\360\360\360\360p\60\20\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\37\77\177\377\77\37\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0@`\360\370\374\376\376\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\0\0\0\1\3\7\7\17\37\77\177\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\340\300\200\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\377\377\377\377\377\376\376\374" "\370\360` \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\177\77\37\17\7\7\3" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\377\376\374\370\360\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\10\14\16\17\17\17\17\17\377\377\377\377\17\17\17\17\17\16\14\10\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\17\17\17\17\17\17\17\17\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377" "\377\377\376\360\17\177\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\376\374\370\360\360\370\374\376\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\200\300\340\360\370\374\374\376\376\376\177\77\37\17\377\377\377\377\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\177\77\37\17\7\3\1\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17" "\377\377\376\360\17\177\377\377\376\374\370\360\340\300\200\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\376\374\370\360\377\377\377\377\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\17\37\77\177\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\17\17\17\17\17\17\17\17\17\17\17\17\0\0\0\0\0\1\3\7\17\37\77\177" "\377\377\376\360\17\177\377\377\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\200\300\340\360\370\374\376" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\360\370\374\376\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\200\300\340\360\370\374\374\376\376\376\177\77\37\17\17\37\77\177\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177" "\377\377\376\360\17\177\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\360\360\360\360\360\360\360\360\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\60p\360\360\360\360\377\377\377\377\377\377\377\377\360\360\360\360\360p\60\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\177\77\37\17\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\1\3\7\17\37\77\177\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\0\0\1\3\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\300\200\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\377\377\377\377\377\376\374\370" "\360\340\300\200\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\14\16\17\17\17\17\17\377\377\377\377\377\377\377\377\17\17\17\17\16\14\10\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\300" "\200\0\0\0\0\6\17\37\77\177\377\377\377\377\376\374\370\360\340\300\300\340\360\370\374\376\377\377\377\377\177\77" "\37\17\6\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\177\77\37\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360`\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17\6\0\0\0" "\0\0\0\0\0\0\0\0\0`\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\376\374\370\360\340\300\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\6\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0" "\0\0\0\0\0\30<~\377\377\377\377\177\77\37\17\7\3\1\0\0\1\3\7\17\37\77\177\377\377\377\377" "~<\30\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\60p\360\360\360\360\377\377\377\377\377\377\377\377\360\360\360\360p\60\20\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\10\14\16\17\17\17\17\377\377\377\377\377\377\377\377\17\17\17\17\16\14\10\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\300\340\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\377\376\374\370" "\370\360`\0\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\7\3\1" "\1\0\0\0\0`\360\370\370\374\376\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\377\377\177\77\0\0\0\1\1\3\7\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\374\376\377\37\7\3\1\1\0\0\0\0\0\0\0\200\300\340\370\374\376\376\374" "\370\340\300\200\1\3\7\37\77\177\177\77\37\7\3\1\0\0\0\0\0\0\0\200\200\300\340\370\377\177\77\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\7\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377" "\0\0\0\0\0\0\0\300\340\370\370\340\300\0\0\0\0\0\0\0\0\0\0\0\20\60\360\360\377\377\377\377" "\360\360\60\20\10\14\17\17\377\377\377\377\17\17\14\10\0\0\0\0\0\0\0\0\0\0\0\3\7\37\37\7" "\3\0\0\0\0\0\0\0\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\377\377\377\377" "\0\0\0\0\360\360\360\360\360\360\340\300\200\0\0\0\0\0\0\0\0\200\300\340\360\360\360\360\377\376\374\370" "\370\360`\0\0\0\0\0\1\3\7\17\37\77\376\370\360\360\370\374~\77\17\7\3\1\0\0\17\7\3\1" "\1\0\0\0\0\0\0\0\200\300\340\360\374~\77\37\17\7\17\37\177\374\370\360\340\300\200\0\360\340\300\200" "\200\0\0\0\17\17\17\17\17\17\7\3\1\0\0\0\0\0\0\0\0\0\1\3\7\17\17\17\377\177\77\37" "\37\17\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\376\374\370\360\340\300\200" "\0\0\0\0\0\0\0\300\340\360\370\370\374\374\376\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177>\34\10\300\374\77\37\17\7\7\3\1\1\1\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0" "\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\377\377\377\17\17\17\17\17\17\17\17\0\0\200\300\300\340\340\340\360\360\360\360\376\374\370\360" "\340\340\300\200\377\377\377\377\0\0\0\0\0@\60\34\36\17\17\17\17\17\17\17\17\17\17\17\177\77\37\17" "\7\3\1\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0" "\0\0\0\0\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\7\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_check_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 5/5 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_check_4x4[644] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_4x4") = "@D\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\340\300" "\200\0\0\0\0\0\200\300\340\360\340\300\200\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\177\77" "\37\17\6\0\2\7\17\37\77\177\377\377\377\377\376\374\376\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\377\377\377\377\177\77\77\177\377\377\377\377\177\77\37\17\7\203\301\340\360\371\377\377" "\377\377\376\360\17\177\377\377\377\377\377\377\376\374\370\360\340\301\301\340\360\370\374\376\377\377\377\377\377\377\377\377" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\377\377\377\377\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\377\377\377\377\371\360\340\301\203\7\17\37\37\17\7\203\301\340\360\371\377\377\377\377" "\377\377\376\360\17\177\377\377\377\377\377\377\237\17\7\203\301\340\360\370\370\360\340\301\203\7\17\237\377\377\377\377" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\377\377\377\377\177\177\177\77\77\37\17\7" "\3\1\0\0\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\7\3\201\300\340\360\370\374\376" "~<\30\0\377\377\377\377\0\0\0\0\0\30<~\376\374\370\360\360\370\374\376\177\77\37\17\7\3\201\300" "\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\1\3\7\7\3\1\0\0\0\0\0\376\377\377\377" "\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\0\0\0\0 p\370\374\376\377\376\374\370\360\340\300\200\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374" "\370\360`\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\376\374\376\377\377\377\377\377\177\77\37\17\7\3" "\1\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\177\77\77\177\377\377\377\377\376\374\370\360\340\300" "\200\0\0\0\2\7\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77" "\37\17\6"; /* Fontname: open_iconic_embedded_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 17/17 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_embedded_4x4[2180] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_4x4") = "@P\4\4\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\360\360\360\360\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\370\300\0\0" "\0\0\0\0\300\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376" "\374\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\60p\360\360\360\360p\60\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0@\340\360\370\360\360\340\340\340\360\376\377\377\377\377\376\360\340\340\340\360\360\370\360\340" "@\0\0\0\300\340\340\340\361\377\377\377\377\377\77\17\7\7\3\3\3\3\7\7\17\77\377\377\377\377\377\361" "\340\340\340\300\3\7\7\17\217\377\377\377\377\377\374\360\340\340\300\300\300\300\340\340\360\374\377\377\377\377\377\217" "\17\7\7\3\0\0\0\2\7\17\37\17\17\7\7\7\17\177\377\377\377\377\177\17\7\7\7\17\17\37\17\7" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\177\37\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\10\16\17\17\17\17\17\317\377\377\377\377\177\37\7\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\60\360\360\360\360\360\376\377\377\377\367\361p\60\20\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370\370\374\376\377\377\376\374\370\370\360\340\300\300\200\0\0" "\0\0\0\0\0\10\14\16\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376" "\16\14\10\0\0\0\0\0\377\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<~\376\374\370\360" "\340\300\200\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\1\3\7" "\7\3\1\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\200\200\200\200\200\200\200\200\370\377\377\177\177\377\377\370\300\0\300\370\376\376\370\340\200\200\200" "\200\200\200\200\7\7\7\7\7\37\377\377\377\377\37\3\0\0\3\37\377\377\377\377\77\17\3\7\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\17\17\1\0\0\0\0\0\0\0\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\374\377\377\377\377\17\17\17\17\377\377\377\377\370\340\200\0\0\0\0\0" "\0\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\360\360\360\360\377\377\377\377\377\377\377\374\360\300\0\0" "\0\0\0\0\370\377\377\377\377\377\377\377\377\377\377\377\360\360\360\360\377\377\377\377\377\377\377\377\377\377\376\370" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\374\376\376\377\17\7\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\337\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360" "\360\370|\36\0\0\0\200\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\17\17\17\17\17\17\7\7\3" "\3\1\0\0<~\347\303\303\347\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\360\360\360\360\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376|\377\377\377\377\300\340\360\360y\77\77\37\17\17\6\0\0\0" "\0\0\0\0\0\0\0\0\0`\360\370|>\377\377\377\377\3\7\17\17\236\374\374\370\360\360`\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\177<\36\37\17\7\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\17\17\17\37\36\36>|\374\370\360\340" "\300\200\0\0\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\1\3\37" "\377\377\376\360\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\370" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\360\360\360\370xx|>\77\37\17\7" "\3\1\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" "\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\371\360\360\371\377\377\377\377" "\0\0\0\0\0\0\0\0\200\300\300\340\340\360\360xx<<\36\36\17\17\206\200\300\300\200\0\0\0\0" "\0\0\0\0\0\0\0\0\203\303\303\341\341\360\360xx<<\36\36\17\17\207\207\303\303\201\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\1a\360\360\370\370\374\374\376\376\377\377\377\7\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360`\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\200\0\0\0\0\377\377\377\377\0\0\0\0\200\300\200\0\0\0\0\0" "\0\0\0\0\300\360\374\376\177\37\7\3\3\0\0\0\377\377\377\377\0\0\0\3\3\7\37\177\376\374\360\300" "\0\0\0\0\77\377\377\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377\77" "\0\0\0\0\0\0\3\7\17\37><|x\370\360\360\360\360\360\360\370x|<>\37\17\7\3\0\0" "\0\0\0\0\0\0\200\300\340\360\370||>\36\36\17\17\17\17\17\17\17\37\36\36>|\370\370\360\360" "\370\374\376\376\360\376\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\10\14\16\17\17\17\17\17" "\17\17\17\17\17\177\377\377\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\3\7\17\37>>|xx\370\360\360\360\360\360\360\370xx|>>\34\10\0" "\0\0\0\0\20xx|<<\36\36\36\36\17\17\17\17\17\17\17\17\17\17\36\36\36\36<<|x" "x\20\0\0\0\0\0\0\0\0\0\300\340\340\340\360\360\360\360\360\360\360\360\340\340\340\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\1\1\1\0\0\0\0\0\0\1\1\1\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377~<\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_play_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 18/18 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_play_4x4[2308] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_4x4") = "@Q\4\4\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\360\360\360\360\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377" "\0\0\0\0\17\17\17\17\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\360\360\370\370\374\0\0\0\0\377\377\377\377" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\377\377\377\377" "\0\0\0\0\0\0\0\0\1\17\177\377\377\371\301\3\3\7\7\17\17\37\37\77\0\0\0\0\377\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\376\374\370\360\300\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\360\340\300" "\0\0\0\0\10\14\16\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\16\14\10\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\300\340\360\370|>\36\36\17\17\17\17\17\17\36\36>|\370\360\340\300\0" "\0\0\0\0\0\0\0\0\376\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\376" "\0\0\0\0\376\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\376\7\17\17\17\17\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\17\17" "\17\17\17\7\0\0\0\0\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\376\376\374\374\370\370\360\360\340\340\300\300\200\200\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\177\177\77\77\37\37\17\17\7\7\3\3\1\1\0" "\0\0\0\0\0\0\0\0\17\7\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\360\360\360\360\360\360\340\340\340\300\200\0\0\0\0" "\0\0\0\0\0\0\0\0\340\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\340" "\0\0\0\0\0\0\0\0\7\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\7" "\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\7\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\360\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\340\360\0\200\300\340\340\360\370\374\374\376\377\377\377\377\377\377\0\200\300\340\340\360\370\374\374\376\377\377" "\377\377\377\377\0\1\3\7\7\17\37\77\77\177\377\377\377\377\377\377\0\1\3\7\7\17\37\77\77\177\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\0\0\0\0\0\0\0\0\0\0\0\1" "\1\3\7\17\360\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\360\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\376\374\374\370\360\340\340\300\200\0\377\377\377\377\377\377\376\374\374\370\360\340" "\340\300\200\0\377\377\377\377\377\377\177\77\77\37\17\7\7\3\1\0\377\377\377\377\377\377\177\77\77\37\17\7" "\7\3\1\0\17\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\17\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\360" "\0\0\0\0\377\377\377\377\377\377\377\377\0\200\200\300\340\340\360\360\370\374\374\376\376\377\377\377\377\377\377\377" "\0\0\0\0\377\377\377\377\377\377\377\377\0\1\1\3\7\7\17\17\37\77\77\177\177\377\377\377\377\377\377\377" "\0\0\0\0\17\17\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17" "\0\0\0\0\360\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360" "\0\0\0\0\377\377\377\377\377\377\377\376\376\374\374\370\360\360\340\340\300\200\200\0\377\377\377\377\377\377\377\377" "\0\0\0\0\377\377\377\377\377\377\377\177\177\77\77\37\17\17\7\7\3\1\1\0\377\377\377\377\377\377\377\377" "\0\0\0\0\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\377\377\377\376\374\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0~\377\377\376\200\0\0\0\77\177\377\377\377\377\177\77\0\0\0\200\376\377\377\376" "\0\0\0\0\0\0\0\0\0\3\7\17\37>|xx\360\360\360\360\360\360xx|>\37\17\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\377\377\377\377\360\360\360\360\340\300\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\360\370\370\374\374\374\374\376\376\376\376\376\376\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\3\3\1\1\1\1\1\1\1\0\0\0\0\0\0\0" "\377\377\377\377\0\300\340\340\360\360\360\360\377\377\377\377\0\0\0\0\0\0\0\0\360\374\376\376\377\377\377\377" "\377\377\377\377\17\77\177\177\377\377\377\377\177\177\77\17\0\0\0\0\0\0\0\0\0\3\7\7\17\17\17\17" "\7\7\3\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340" "\300\200\0\0\360\376\377\377\377\377\377\377\377\377\377\377\0\1\3\3\7\17\17\37\77\77\177\377\377\377\377\377" "\377\377\376\360\17\177\377\377\377\377\377\377\377\377\377\377\0\200\300\300\340\360\360\370\374\374\376\377\377\377\377\377" "\377\377\177\17\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\377\377\377\377\177\177\177\77\77\37\17\7" "\3\1\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\0\0\0\0\360\360\360\340\340\340\300\200" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\360\360\340\301\1\3\7\37" "\377\376\374\340\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\17\17\7\203\200\300\340\370" "\377\177\77\7\0\0\0\0\0\0\0\0\1\3\17\37\177\377\377\377\0\0\0\0\17\17\17\7\7\7\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\360\360\340\300" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\17\17\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\177\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\177\377\377\377\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_thing_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 19/19 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_thing_4x4[2436] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_4x4") = "@R\4\4\0\0\0\0\0\0\0\0\0\200\300\360\370\374~\77\77~\374\370\360\300\200\0\0\0\0\0" "\0\0\0\0\360\360\360\360\360\360\374\376\377\377\377\363\361\360\360\360\360\360\360\361\363\377\377\377\376\374\360\360" "\360\360\360\360\0\0\0\0\377\377\377\377\37\17\17\37\377\377\377\377\377\377\377\377\37\17\17\37\377\377\377\377" "\0\0\0\0\0\0\0\0\377\377\377\377\370\360\360\370\377\377\377\377\377\377\377\377\370\360\360\370\377\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\377\17\17\17\17\17\17\17\17\377\377\376\374\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\17\7\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\377\377\377\377\17\17\17\17\377\377\377\377\17\17\17\17\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\374\376\376\377\77\37\17\17\17\16\36<" "\374\370\340\200\0\0\0\0\0\0\0\0\200\300\340\360\377\377\377\377\377\377\377\377\374\370\360\360\360\360\370\374" "\377\377\177\37\0\200\300\340\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\17\17\17\17\17\7\7\3" "\3\1\0\0\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376>\37\17\17\17\17\37>\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374~>\37\17\17\17\17\37>\376\374\370\340" "\0\0\0\0\0\0\300\340\360\370\374~\77\237\317\347\343\301\200\0\0\0\200\300\340\360\370\374\177\77\37\7" "\0\0\0\0\374\377\377\377\3\1\0<~\377\377\347\343\361\370|>\77\237\317\347\303\201\0\0\0\0\0" "\0\0\0\0\0\3\17\37\77>|x\360\360\361\361\361\361x|>\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<\376\377\377\377\377\376<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~~\377\377" "\377\377~<\377\377\377\377\377\377\377\377\303\1\0\0\0\0\1\303\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\374\374" "~\77\16\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34>~\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\360\374\376\377\377\377\377\377\376\374\370\0\0\0\3\3\1\0\0\0\0\0\0" "\0\0\0\0@@\340\370\374\377\377\377\177\177\177\77\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\376\376\376\374\370\360\340\300\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\360\300\0" "\0\0\0\0\0\0\0\0\376\377\377\377\17\7\7\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376" "\0\0\0\0\0\0\0\0\0\7\17\37\77|\370\370\360\360\341\341\341\363\377\377\377\177\177\77\37\17\7\0" "\0\0\0\0\0\0\0\0\340\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\340" "\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\0\0\0\0\360\360\360\360\377\377\377\377\360\360\360\360\0\0\0\0\0\0\0\0\360\360\360\360\377\377\377\377" "\360\360\360\360\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\17\7\0\0\300\340\360\370|<>\36\37\17\17\17\17\17\17\37\36><|\370\360\340\300\0\0" "\0\0\0\0\374\377\377\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377\374" "\0\0\0\0\3\17\77\177\376\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\300\340\370\376\377\377\357\303" "\200\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\7\7\7\7\17\37\77\177\377\377" "\377\377\376|\0\0\0\0\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\347\303\303\347\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\200\300\340\360\360\360\360\360\360\360\360\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\377\377\377\377\377~<\30\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\360\374\376\376\377\377\377\377\376\376\374\360\0\0\0\0\0\0\0\0" "\0\0\0\0\6\17\17\36\36\274\374\370\371\377\377\377\377\377\377\377\377\377\377\371\370\374\374\36\36\17\17\6" "\0\0\0\0\6\17\17\217\377\377\377\377\377\377\377\377\1\0\0\1\377\377\377\377\377\377\377\377\217\217\17\6" "\0\0\0\0\16\17\17\7\7\7\17\37\77\177\77\37\0\0\0\0\37\77\177\77\37\17\7\7\7\17\17\16" "\0\0\0\0\0\0\0\0\0\0\0\200\341\376\374\370\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\360\370\374\376\377\377\377\377\377\377\377\377~\0\0\0\0\20\340\300\200\0\0\0\0" "\0\0\0\0~\377\377\377\377\377\377\377\377\177\77\37\17\3\1\0\200\300\340\370\376\377\377\377\377\376\374\340" "\0\0\0\0\0\3\7\17\37\77\177\207\1\0\0\0\340\370\374\377\377\377\377\377\377\377\377\377\377\177\77\17" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376>\37\17\17\17\17\37>\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360\360\377\377\377\377\360\360\360\360\360\360\360\360\377\377\377\377\360\360\360\360" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\0\0\0\0\376\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\377\377\377\376\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\177\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\377\377\377\177\0\0\0\0\300\340\360\360\360\360\360\360\377\377\377\377\377\377\377\377\360\360\360\360\360\360\340\300" "\0\0\0\0\0\0\0\0\17\17\17\17\377\377\377\377\377\377\377\377\377\377\377\377\17\17\17\6\0\0\0\0" "\0\0\0\0\300\340\360\360\360\360\360\360\377\377\377\377\377\377\377\377\377\377\377\377\360\360\360\360\360\360\340\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\177\37\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377" "\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\347\303\303\347\377\377\377\377\377\377\377\377\377\377\377\177" "\0\0\0"; /* Fontname: open_iconic_weather_4x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 6/6 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_weather_4x4[772] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_4x4") = "@E\4\4\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360\360\360\360\360\360\340\340\300\300\200\0\0" "\0\0\0\0\0\200\300\340\340\360\360\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370" "\0\0\0\0~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\376\374\360\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\7\7\3\0\200\340\370\374\374\376\376\377\377\177\77\77\37\36\16\14\14\10\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\37\77\37\37\37\7\3\1\300\360\370\374\374\376\376\377\377\377\377\377\377\376\376\374\374\370\340\200" "\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\360\340\300\0\7\37\77\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\177\77\17\0\0\200\340\360\370\374\374\376\376\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\377\377\377\377\377\377\377\377\377\376\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\77\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\370\360\360\360\340\340\340\340\340\340" "\340\340\60\0\0\0\0\1\3\7\17\37\37\77\77\77\177\177\177\177\177\177\177\177\77\77\77\37\37\17\7\3" "\1\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\374\376\376\377\377\377\377\377\377\376\376\374\374\370\340\200" "\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\360\340\300\200\7\37\37\17\17\17\17\17\17\3\1\1\340\360\360\340\1\1\3\17\17\17\17\17\37\37\77\177" "\177\177\77\17\0\0\0\0~\377\377~\0\0\0\0\177\377\377\177\0\0\0\0~\377\377~\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\374\340\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\20\60p\360\360\360\360\360\360\360\360\370\377\377\377\377\377\377\370\360\360\360\360\360\360\360\360" "p\60\20\0\0\0\0\0\0\0\1\3\7\317\377\377\377\377\377\377\377\377\377\377\377\377\317\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0p>\37\17\17\7\3\1\0\0\1\3\7\17\17\37>p\0\0\0" "\0\0\0\0\0\0\0\0`\360\360`\0\0\0\0\0\0\6\17\17\6\0\0\0\0\0\0`\360\360`" "\0\0\0\0\200\300\300\200\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0" "\200\300\300\200\1\3\3\1\0\0\0\0\7\37\77\177\177\377\377\377\377\377\377\177\177\77\37\7\0\0\0\0" "\1\3\3\1\0\0\0\0\6\17\17\6\0\0\0\0\0\0`\360\360`\0\0\0\0\0\0\6\17\17\6" "\0\0\0"; /* Fontname: open_iconic_arrow_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 28/28 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_arrow_8x8[14340] U8X8_FONT_SECTION("u8x8_font_open_iconic_arrow_8x8") = "@[\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\77\177\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\177\77\37\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\177" "\377\77\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\374\376\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\370\374\376\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\30<~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\1\3\3\7\17\37\77\177\177\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\37\77\177\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\376\374\370\360\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\376\376\374\370\360\340\300\300\200\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "~<\30\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\177\77\37\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\177\77\37\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\377" "\376\374\370\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\376\374\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370" "\360\340\300\200\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360" "\370\374\376\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0" "\0\0\0\0\0\30<~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "~<\30\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\374\370\360\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177" "\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\1\3\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~<\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~<\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\376\374\370\370\360\340\300\300\200\0\0" "\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~" "~<\30\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\177\77\37\37\17\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370\370\374\376\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\30<~~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" "\177\77\37\7\0\0\0\0\0\0\1\3\3\7\17\37\37\77\177\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374\374\376\376\376\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374\376\377\377\377\377\177\77\37\17\7\3\3\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\376\374\370\340\300\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\370\377\377\377\377\377\377\377\17\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\376\374" "\370\340\300\200\1\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\377\377\377\377\377\37\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\37\77\177\177\77\37\7\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\200\200\300\300\340\360\370\374\376\377\377\377\377\177\77\17\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\177\177\177\77\77\77\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\360\374\377\377\377\377\377\377\374\360\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" "\77\17\3\1\200\300\360\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\300\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\77\377\377\377\377\377\377\77\17\7\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\376\374\370\370\360\340\300\300\200\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\340\300\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~" "~<\30\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\377\377\377\377\377\376\374\370\340\300\200\0\0\0" "\200\340\360\370\374\377\377\377\377\377\177\77\17\7\3\1\0\0\0\0\377\177\77\37\37\17\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\177\377\377\377\377\377\376\377" "\377\377\377\377\77\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\377\377\377\377\377\177\77\177" "\377\377\377\377\377\376\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\374\376\377\377\377\377\377\77\37\17\7\1\0\0\0\0" "\0\1\3\7\37\77\177\377\377\377\377\377\374\370\360\340\300\200\0\0\377\376\374\370\370\360\340\300\300\200\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\177\177\77\37\7\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\17\37\77\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~" "~<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\177\77\37\37\17\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360\360\370\370\370\374\374\374\376\376\376" "\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\374" "\370\360\340@\0\0\0\0\0\200\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7" "\3\1\0\0\0\0\340\370\377\377\377\377\377\377\177\77\37\37\17\17\7\7\3\3\3\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\200\376\377\177\77\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\360\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\340\360\360\370\370\374\374\376\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\370" "\360\340\300\200\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\374\376\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200p<\37\17\7\3\3\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\77\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\77\17\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_check_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 5/5 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_check_8x8[2564] U8X8_FONT_SECTION("u8x8_font_open_iconic_check_8x8") = "@D\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374\370\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" ">\34\0\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0" "\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0" "\0\0\0\0\10\34>\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\370\374\376\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\177" "\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\201\303\347\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\7\17\37\77\177\377\377\377" "\377\377\377\177\77\37\17\7\3\1\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\1\3" "\3\1\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340" "\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\177\177\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\347\303\201\0\0\0\0\1\3\7\17\37\77" "\177\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\201\303\347\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0" "\0\0\1\3\3\1\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0" "\0\0\200\300\300\200\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\347\303\201\0\0\0\0\200\300\340\360\370\374" "\376\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\201\303\347\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\376\376\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360" "\340\300\200\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360" "\340\300\200\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\200\300\340\360\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\17\37\77\177\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\370\374\376\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\376\374\370\360\340\300\200\0" "\0\0\0\0\10\34>\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" ">\34\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\374\370\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" "\77\37\17\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0" "\0\0\0\0\10\34>\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" ">\34\0\0\0\0\0\0\0\1\3\7\17\37\77\77\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\77\77\37\17\7\3\1\0\0" "\0\0\0"; /* Fontname: open_iconic_embedded_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 17/17 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_embedded_8x8[8708] U8X8_FONT_SECTION("u8x8_font_open_iconic_embedded_8x8") = "@P\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376" "\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\340\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300" "\200\0\0\0\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\77\177" "\177\377\377\377\377\377\377\177\177\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\300\360\376" "\377\377\377\377\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0x\374\376\377\377\377\377\377\377\377\376\376\374\374\374\374\374\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\374\374\374\374\374\376\376\377\377\377\377\377\377\377\376\374x\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\37" "\37\17\17\17\17\17\17\37\37\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\7\1\0\0\0\0" "\0\0\0\0\360\370\370\370\374\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\37\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\37\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\374" "\370\370\370\360\17\37\37\77\77\77\177\177\377\377\377\377\377\377\377\377\377\377\377\377\370\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\370\377\377\377\377\377\377\377\377\377\377\377\377\177\177\77\77" "\77\37\37\17\0\0\0\0\0\0\0\0\200\340\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\370" "\370\360\360\360\360\360\360\370\370\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\340\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\36\77\177\377\377\377\377\377\377\377\177\177\177\77\77\77\77\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\77\77\77\77\177\177\177\377\377\377\377\377\377\377\177\77\36\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\0\3\37\177" "\377\377\377\377\377\377\377\377\177\37\3\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376" "\377\377\377\377\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377" "\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\340\374\377\377\377\377\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\370\377\377\377\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377\377\377\377\377\377" "\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370" "\370\374\376\377\377\376\374\370\370\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\360\360\370\374\376\376\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\360\360\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\340\360\370\374\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\374\370\360\340" "\340\300\200\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\376\374\370\360" "\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\374\340" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\377\377\377\377\377" "\377\370\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\377\377" "\377\377\377\374\340\0\0\0\0\0\0\0\200\340\374\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\360\376\377\377\377\377\377\377\17\17\177" "\377\377\377\377\377\377\370\300\0\200\360\374\377\377\377\377\377\377\377\377\376\370\340\300\300\300\300\300\300\300\300\300" "\300\300\300\300\77\77\77\77\77\77\77\77\77\77\377\377\377\377\377\377\377\377\377\377\377\377\77\7\0\0\0\0" "\3\77\377\377\377\377\377\377\376\377\377\377\377\377\377\77\17\37\77\77\77\77\77\77\77\77\77\77\77\77\77\77" "\77\77\77\77\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\377\377\377\377\17\1\0\0\0\0\0\0" "\0\0\1\17\177\377\377\377\377\377\377\377\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\77\377\377\77\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\3\77\377\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\377\377" "\377\377\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\376\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\300\0\0\0\0\0\0\0\0" "\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\340\200\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\360\360\370\374\374\376\376\376\376\377\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\376" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\370\374\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\177\177\177\177\377\377\377\377\377\377\377\377\377\177\177\177\77\77\37\17\17\7\3\1" "\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\370\374\376\77\37\17\17\17\17\37\77\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\37\77\177|\370\360\360\360\360\370|\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\376\374\370" "\370\360\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\377\377\377\377\377\377\377\377" "\17\37\77\77\177\377\377\377\376\374\374\370\360\340\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<~\377\377\377\377\376\374\370\360\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\201\303\303\347\377\377\377\377\377\377\377\377~<<\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377" "\360\370\374\374\376\377\177\177\77\37\37\17\7\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377" "\17\37\77\77\177\377\377\376\376\374\370\370\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<~\377\377\377\377\177\77\37\17\377\377\377\377\377\377\377\377" "\0\0\0\0\0\0\0\201\303\303\347\377\377\377\377\377\377\377\377~<<\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\377\377\377\377\377\377\377\377" "\360\370\374\374\376\377\377\377\177\77\77\37\17\7\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\177\77\37" "\37\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\360\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\1\1\1\3\3\3\7\17\17\37\77\177\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\377\377\377\377\377\377" "\374\360\300\0\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377\377" "\377\377\377\77\0\3\17\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\377\377\377\377\377\377" "\77\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\200\200\200\300\300\300\340\360\360\370\374\376\377\377\377\377\377\177\77\17\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\0\0\0\0" "\0\0\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\303\201\0\0\0\0\201\303\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\360\360" "\370\370\374\374\376\376\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\376\376\377\377\377\377\177\177\77\77\37\37" "\17\17\7\7\3\3\1\1\200\200\300\300\340\340\360\360\360\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17\17\17\17\7\7\3\3\1\1\200\200\300\300\340\340\360\360" "\370\370\374\374\376\376\377\377\377\377\177\177\77\77\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\376\376\377\377\377\377\177\177\77\77\37\37" "\17\17\7\7\3\3\1\1\200\200\300\300\340\340\360\360\360\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17\17\17\17\7\7\3\3\1\1\200\200\300\300\340\340\360\360" "\370\370\374\374\376\376\377\377\377\377\177\177\77\77\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377~\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30~\377\377\377\377\377\377\377" "\377\377\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\300\200\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\200\300\360\360\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\376\377\377\377\377\177\77\37\17\7\7\2\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\2\7\17\17\37\77\177\377\377\377\377\376\374\370\340\200\0\0\0\0\0\0\0" "\0\0\0\0\200\370\377\377\377\377\377\377\177\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377\377\377\376\370\200\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\1\37\377\377\377\377\377\377\377\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\377\377\377\377\377\377\177\37\1\0\0\0\0" "\0\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\376\374\370\360\360\340\300\300\200\200\200\200\0\0\0\0" "\0\0\0\0\200\200\200\200\300\300\340\360\360\370\374\376\377\377\377\377\177\77\37\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377\377\377\377" "\377\377\377\377\377\177\177\177\177\77\77\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\374\370\370\360\360\340\340\300\200\0\0\0\0\200\300\340\360" "\370\374\376\376\0\0\0\0\0\300\340\370\374\376\377\377\377\377\177\77\77\37\17\7\7\3\3\3\1\1\1\0" "\0\0\0\0\0\0\0\0\0\1\1\1\3\3\7\7\17\37\37\77\377\377\377\377\377\376\376\377\377\377\377\377" "\377\377\377\377\0\300\360\376\377\377\377\377\377\177\37\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\374\377\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\377\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\3\17\77\377\377\377\377\377\376\370\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\376\374\374\370\360\340\340\300\300\300\200\200\200\0" "\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\340\360\360\370\374\376\374\370\360\340\300\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\77\37\37\17\17\7\3\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\200\300\300\340\340\360\360\360\370\370\374\374\374\374\376\376\376\376\376\376\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\376\374\374\374\374\370\370\370\360\360\340\340\300\300\200\200\0\0" "\0\0\0\0\1\7\37\77\177\77\77\37\37\17\17\7\7\7\3\3\3\1\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\3\3\3\7\7\7\17\17\37\37\77\77\177\77\37\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 p\360\370\370\374\374\376\376\376\376\377\377\377\377" "\377\377\377\377\377\377\377\376\376\376\376\376\374\374\370\370\360\360 \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\7\3\3\3\1\1\1\0\0\0" "\0\0\0\0\0\0\0\1\1\1\3\3\3\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377" "\377\377\377\377\377\376\376\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\77\177\177\377" "\377\377\377\377\377\177\177\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_play_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 18/18 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_play_8x8[9220] U8X8_FONT_SECTION("u8x8_font_open_iconic_play_8x8") = "@Q\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300\300\340\340\360\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\360\360\370\370\374" "\374\376\376\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\377\377\377\377\307\3\3\7\7\17\17\37\37\77" "\77\177\177\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377\377\377\377\374\340\200\0\0\0\0\0" "\0\0\0\0\0\1\1\3\3\7\7\17\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\177\377\377\377\377\177<\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\360\370\374\376\376\374\370\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\376\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\376\370\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\370\360\340\200\0\0\0" "\0\0\0\0\200\300\340\360\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374" "\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374\374\376\376\376\377" "\377\377\377\377\377\377\377\377\377\376\376\376\374\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374\376\377\377\377\377\177\77\37\17\7\3\3\1\1\1" "\0\0\0\0\0\0\0\0\1\1\1\3\3\7\17\37\77\177\377\377\377\377\376\374\360\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\370\377\377\377\377\377\377\377\17\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377\377\377\377\377\377\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\376\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\77\177\377\377\377\377\377\377\377\377\377\377\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\177\377\377\377\377\377\377\377\377\377\377" "\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\376\376\374\374\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374" "\374\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\374\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\77\77\37\37\17\17\7\7\3\3\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\77" "\77\37\37\17\17\7\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\177\177\77\77\37\37\17\17\7\7\3\3\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374\374\376\376\376\377" "\377\377\377\377\377\377\377\377\377\376\376\376\374\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\370\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\37\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\37\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\17\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77\77\77\177\177\177\377" "\377\377\377\377\377\377\377\377\377\177\177\177\77\77\77\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370" "\370\374\376\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370" "\370\374\376\377\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\360\360\370\374\376\376\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\360\360\370\374\376\376\377\377\377\377\377\377\377" "\377\377\377\377\0\200\300\340\340\360\370\374\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\200\300\340\340\360\370\374\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\1\3\7\7\17\37\77\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\1\3\7\7\17\37\77\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\17\37\77\177\177\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\17\37\77\177\177\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\17\37" "\37\77\177\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\17\37" "\37\77\177\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\376\374\370\370\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\376\374\370\370\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\360\360\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\360\360\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\374\370\360\340" "\340\300\200\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\374\370\360\340" "\340\300\200\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\77\37\17\7" "\7\3\1\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\77\37\17\7" "\7\3\1\0\377\377\377\377\377\377\377\377\377\377\377\177\177\77\37\17\17\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\177\177\77\37\17\17\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\377\177\77\37\37\17\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\177\77\37\37\17\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360\370\370\374\374\376\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\200\200\300\300\340\360\360\370\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\200\200\300\340\340\360\360\370\374\374\376" "\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\1\1\3\7\7\17\17\37\77\77\177" "\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\1\1\3\3\7\17\17\37\37\77\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\37\37\77\77\177\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\376\374\374\370\370\360\340\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\370\360\360\340\300\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376" "\376\374\374\370\360\360\340\340\300\200\200\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177" "\177\77\77\37\17\17\7\7\3\1\1\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\77\37\37\17\17\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\177\77\77\37\37\17\7\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376" "\376\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\377\377\377\376\374\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\374\376\377\377\377\377\376\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\17\377\377\377\377\377\377\377\370\300\0\0\0\0\0\0\7\37\77\177" "\177\377\377\377\377\377\377\177\177\77\37\7\0\0\0\0\0\0\200\340\377\377\377\377\377\377\377\37\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\177\377\377\377\377\377\374\370\360\340\340\300\200\200\200" "\0\0\0\0\0\0\0\0\200\200\200\300\300\340\360\370\374\376\377\377\377\377\177\77\37\7\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\37\77\77\177\177\177\177" "\377\377\377\377\377\377\377\377\377\177\177\177\77\77\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\340\340\360\360\360\360\370" "\370\370\370\374\374\374\374\374\374\374\376\376\376\376\376\376\376\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\17\17\17\7" "\7\7\7\3\3\3\3\3\3\3\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\376\376\377\377\377\377\377\377\376\377\377\377\377" "\377\377\377\377\0\300\340\360\370\374\376\376\376\377\377\377\377\377\377\376\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\177~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\77\177\177\177\377\377\377\377\377\377\177\177\177\77\37" "\17\7\3\0\0\3\7\17\37\77\177\177\177\377\377\377\377\377\377\177\177\177\77\37\17\7\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\370\370\370\374\374\376\376\376\376\377\377" "\377\377\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\340\300\0" "\0\0\0\0\0\300\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\1\3\3" "\7\17\17\37\77\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\360\300\0\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\37\77\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\374\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\374\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\77\0\3\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\200\300\300" "\340\360\360\370\374\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\17\3\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377" "\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\37\37\17\7\7\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\376\376\376\374\374\374\370\370\360\340\300\200\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\3\3\7\17\37\77\177\377\377\377\377\376\374" "\360\340\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\376\376\374\370\340\0\0\0\0\0\0\1\17\377\377\377\377" "\377\377\377\370\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\177\177\77\37\7\0\0\0\0\0\0\200\360\377\377\377\377" "\377\377\377\37\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\340\360\370\374\376\377\377\377\377\177\77" "\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\177\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\177\177\177\77\77\77\37\17\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\37\77\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\300\340\370\374\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370" "\376\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\376\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\177\177\77\37\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37" "\177\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\3\7\37\77\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\370\374\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\300\360\370\376\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\1\3\17\37\177\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\7\37\77\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_thing_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 19/19 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_thing_8x8[9732] U8X8_FONT_SECTION("u8x8_font_open_iconic_thing_8x8") = "@R\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370" "\374\376\377\377\377\377\376\374\370\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\377\377\377\377\377" "\77\37\17\7\7\17\37\77\377\377\377\377\377\376\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\376\377\377\377\377\177\77\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\77\177\377\377\377\377\377\374\370\360\340\300\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\3\1\0\0\0\0\1\3\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\3\1\0\0\0\0\1\3\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\300\200\0\0\0\0\200\300\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\300\200\0\0\0\0\200\300\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\177\77\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\360\360\370\374\374\376\376\376\376\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\360\360\340\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\376" "\377\377\377\377\377\377\377\377\377\377\377\377\37\7\3\1\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377" "\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\370\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\177\77\17\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\177\177\77\77\37\17\17\7\3\1" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376" "\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\377\37\7\3\1" "\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377\377\377\376\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\340\360\370\370\374\376\376\376\377\377\377\377\377\377\377\377\376\376\374\374\370\370\360\340\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377" "\377\177\77\37\17\7\3\1\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377\377\377\374\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\377\377\377\377\377\377\77\7\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\374\376\377\377\377\377\377\177\77\37\17\7\203\301\340\360\370\374\376\374\370\360" "\340\300\0\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\300\374\377\377\377\377\377\377\77\17\3\1\0\0\300\370\374\377\377\377\377\377\177\77\37\17\7\3" "\201\300\340\360\370\374\376\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\377\377\377\377\377\377\377\300\0\0\0\0\0\3\17\77\177\377\377\377\377\376\374\374\374\376\377" "\377\377\177\77\77\37\17\7\203\301\340\360\370\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\3\17\77\177\377\377\377\377\376\374\360\340\340\300\200\200\200\0\0\1\1\3\3\3\3\201\201" "\201\300\340\340\370\374\376\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\3\7\17\37\37\77\77\177\177\177\177\377\377\377\377\377\377\377\377\177\177" "\177\177\77\77\37\37\17\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\376" "\376\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\377\377\377\377\377\377\377\377\377\377" "\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\374\374\374\376\376\377\377\377\377\377\376" "\376\374\370\340\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\77\77\77\177\177\377\377\377\377\377\177" "\177\77\37\7\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\37\7\3\1\1\0\0\0\0\0\0\1" "\1\3\7\37\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\360\0\0\0\0\0\0\0\0\0\0" "\0\0\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\360\360\370\374\374\376\377" "\376\374\70\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370\370\374\376\376\377\377\377\377\377\377\377\377\177\37\17\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\300\340\340\360\370\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\17\7\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\3\3\7\7\17\37\77\177\377\377\377\377\377\377\377\377\377\77\37\17\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\376\376\377\377\377\377\377\377\377\376\376\374" "\370\360\340\200\0\0\0\0\0\3\17\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\60\60x|~\177\377\377\377\377\377\377\377\377\177\177\177\77\77\77\37\17\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "\360\374\376\376\376\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\374\376\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\360\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\360\300\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\376\377\377\377\377\377\377\377\177\77\77\77\77\177\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\17\77\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\377\377\374\360\340\300\200\200\0\0\0\0" "\1\1\3\3\3\3\7\17\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\17\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\77\177\177\377\377\377\377\376\376" "\376\374\374\374\374\376\376\377\377\377\377\377\377\377\177\177\77\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\370\374\374\374\376\376\376\376\377\377\377\377\377" "\377\377\377\377\377\377\376\376\376\374\374\374\370\370\360\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\370\374\376\377\377\377\377\177\77\37\17\17\7\3\3\1\1\1\1\0\0\0\0" "\0\0\0\0\1\1\1\1\3\3\7\17\17\37\77\177\377\377\377\377\376\374\370\340\300\0\0\0\0\0\0\0" "\0\0\0\0\200\370\377\377\377\377\377\377\177\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377\377\377\377\370\300\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\1\37\377\377\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\377\177\37\1\0\0\0\0" "\0\0\0\0\0\0\0\3\7\37\77\177\377\377\377\377\376\374\370\360\340\340\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\200\200\200\300\300\340\340\360\370\374\376\377\377\377\377\377\377\377\377\377\374\370\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\37\37\37\77\77\177\177\177\177\377\377\377\377\377" "\377\377\377\377\377\177\177\177\177\77\77\77\37\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\376\374\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\177\177\377\377\377\377\377\377\377" "\177\177\77\17\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\37\17\17" "\17\17\37\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\370\360\360" "\360\360\370\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\370\360\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\377\377" "\377\377\377\376\376\374\374\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0<~\377\377\377\377\376\376\374\374\370\370\360\360\340\340\341\347\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\347\341\340\340\360\360\370\370\374\374\376\376\377\377\377\377~<\0\0\0\0" "\0\0\0\0\0\0\0\0\1\1\3\3\3\7\307\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\307\7\3\3\3\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0<~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\3\1\0\0" "\0\0\1\3\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~<\0\0\0\0" "\0\0\0\0\0\0\0\0\200\200\300\300\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\300\300\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0|\376\377\377\377\377\177\177\77\77\37\77\177\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\177\77\37\77\77\177\177\377\377\377\377\376~\70\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\37\37\37\17\7\3\0\0\0\0" "\0\0\0\0\1\7\17\37\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\374\374\370\360\340\300\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\377\377\377\377\377\377\377\377\377\376\374" "\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\177\17\0\0\0\0\0\0\0\0\0\36\374\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\37\17" "\7\1\0\0\0\0\0\0\0\0\200\300\360\377\377\377\377\377\377\377\377\377\376\374\360\300\0\0\0\0\0\0" "\0\0\0\0\37\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\3\1\0\0\0\0" "\0\0\0\0\200\300\340\370\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\370\0\0\0\0" "\0\0\0\0\0\0\3\17\77\177\377\377\377\377\377\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\200\340" "\360\370\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\77y\200\0\0\0\0\0\0\0\0\360\376\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376" "\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\377\37\7\3\1" "\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377\377\377\376\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\376\374\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\30~\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\370\374\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\177" "\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\37\17\17" "\17\17\37\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\370\360\360" "\360\360\370\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\0\0\0\0" "\0\0\0"; /* Fontname: open_iconic_weather_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 6/6 BBX Build Mode: 3 */ const uint8_t u8x8_font_open_iconic_weather_8x8[3076] U8X8_FONT_SECTION("u8x8_font_open_iconic_weather_8x8") = "@E\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374" "\376\376\376\376\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374" "\370\360\300\0\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377~\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\177\77\37" "\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374\376\376\376\376\377\377\377\377\377\377\377\377\376\376\376\376" "\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\37\17\7\7\3\3\3\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\377\377\377\377\77\17\7\3\1\0\0\0\0\200\300\340\360\360\370\374\374" "\376\376\376\376\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\7\17\7\7\3\3\3\1\1\0\0\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374" "\370\360\300\0\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377~\0\0\1\3\7\17\37\77\77\177\177\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\177\177\77\37" "\17\7\3\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374\376\376\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360\370\374\376\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\340\374\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\360\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\370\360\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\376\374\370\360\360\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\37\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\376\374\374\374\374\374\374\374\374\374\374\374\374\374\376>" "\36\2\0\0\0\0\0\0\0\0\3\7\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\37\37\37\77\77\77" "\77\77\77\77\77\77\77\77\77\77\77\37\37\37\17\17\17\7\7\3\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\374\374" "\376\376\376\376\377\377\377\377\377\377\377\377\376\376\376\376\374\374\370\360\360\340\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\374\360\200\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\374" "\370\360\300\0\17\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\77\37\17\7\3\1\1\1\0\0\0" "\0\0\0\1\1\1\3\7\17\37\77\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\0\0\0\3\3\3\1\1\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\374\376\377\377" "\377\377\376\374\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\1\1\1\3\7\17\37\77\177\177\177\77\37" "\17\7\3\0\0\0\0\0\0\0\0\0\374\376\377\377\377\377\376\374\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\377\0\0\0\0\0\0\0\0\374\376\377\377\377\377\376\374\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77\177\377\377\377\377\177\77\0\0\0\0\0\0\0\0\77\177\377\377" "\377\377\177\77\0\0\0\0\0\0\0\0\77\177\377\377\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\340\374\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\370\377\377\377\377\377\377\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377" "\377\377\377\377\377\377\377\377\377\376\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\7\17\17\37\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\17" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77\177\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\77\37\17\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\377\377\177\77\37\17\17" "\7\3\1\0\0\1\3\7\17\17\37\77\177\377\377\377\377\377\377\370\300\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p>\37\17\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37>p\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "<~\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377~<\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\376\376\376" "\377\377\377\377\377\377\377\377\376\376\376\374\374\370\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\340\360\360\360\360\340\300\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\360\0\0\0\0\0\0\0\0\300\340\360\360" "\360\360\340\300\3\7\17\17\17\17\7\3\0\0\0\0\0\0\0\0\17\177\377\377\377\377\377\377\377\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\177\17\0\0\0\0\0\0\0\0\3\7\17\17" "\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\77\77\177\177\177" "\377\377\377\377\377\377\377\377\177\177\177\77\77\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<~\377\377\377\377~<\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "<~\377\377\377\377~<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: ProFont29 Copyright: ProFont Distribution 2.2 Generated by Fontographer 4.1.5 Glyphs: 224/256 BBX Build Mode: 3 */ const uint8_t u8x8_font_profont29_2x3_f[10756] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_f") = " \377\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\0\0\77\77\77\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34\34\377\377\377\34\34\34\377\377\377" "\34\34\34\0\7\7\7\77\77\77\7\7\7\77\77\77\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0p\374\376\216\7\377\377\377\7\16><\60\0\0\0`\341\343\203\7\377\377\377\7\216\376\374" "p\0\0\0\0\1\3\3\7\77\77\77\7\3\3\1\0\0\0\0p\374\376\7\7\377\377\367\307\347\367\177" "\77\37\0\0\300\341\363\177\77\177\377\377\7\7\375\374p\0\0\0\7\7\7\0\0\0\1\3\7\7\3\1" "\0\0\0\0p\374\376\216\207\307\347\367~>\34\0\0\0\0\0p\375\377\217\17\37=\370\360\340\360\370" "<\30\0\0\0\1\3\3\7\7\7\3\3\1\3\7\7\2\0\0\0\0\0\0\0\77\77\77\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\370\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\377\377\377\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\7\17\36<\70\20\0\0\0\0\0\0\0\0\1\3\7\17\376\374\370\0" "\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\0\0\0\0\0\0\0\20\70<\36\17\7\3\1\0\0" "\0\0\0\0\20\70\70\360\340\376\376\376\360\360\70\70\20\0\0\0\2\7\7\3\3\77\77\77\3\3\7\7" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0@\341\363\177\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\77" "\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0" "\0\0\0\0\360\374\376\16\7\7\7\207\307\347\376\376\374\360\0\0\177\377\377\370<\36\17\7\3\1\200\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\70\70\70<\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\60<>\16\7\7\7\7\7\7\216\376\374p\0\0\0\0\200\300\340\360x<\36\17\7\3" "\1\0\0\0\6\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\60<>\16\7\7\7\7\7\207\216\376" "\374p\0\0`\340\340\200\0\0\7\7\7\17\217\375\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\200\300\340\360x<\36\377\377\377\0\0\0\0\0\37\37\37\35\34\34\34\34\377\377\377\34" "\34\34\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\377\377\377\347\347\347\347\347\347\347\307\307" "\207\7\0\0`\340\340\200\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\360\374\376\356\347\347\347\347\347\347\307\300\200\0\0\0\177\377\377\200\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\7\7\7\7\7\7\7\7\7\207\307\377" "\377\177\0\0\0\0\0\0\0\370\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0p\374\376\216\207\7\7\7\7\207\216\376\374p\0\0p\370\375\217\17\7\7\7\7\17\217\375" "\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\360\374\376\16\7\7\7\7\7\7\16\376" "\374\360\0\0\3\17\37\34\70\70\70\70\70\70\270\377\377\177\0\0\0\0\0\7\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\301\343\343\343\301\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0\0\301\343\343\343\301\0\0\0\0\0\0\0\0\0\0@\341\363\177\77\37\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360x<\36\17\7\2\0\0\0\0\2\7\17\37=x\360\340\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\2\0\0\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\2\7\17\36\16\7\7\7\7\7\7\216\376" "\374\360\0\0\0\0\0\0\0\60\70<\36\17\7\3\1\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\360\374\376\16\7\207\307\347\347\347\356\376\374\360\0\0\177\377\377\200\0\17\37\77\70\70\70\77" "\37\17\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\0\300\360\374\77\17\17\77\374\360\300" "\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\207\216\376\374p\0\0\377\377\377\7\7\7\7\7\7\17\217\375" "\370p\0\0\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\360\374\376\16\7\7\7\7\7\7\16>" "<\60\0\0\177\377\377\200\0\0\0\0\0\0\200\340\340`\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\377\377\377\7\7\7\7\7\7\7\16\376\374\360\0\0\377\377\377\0\0\0\0\0\0\0\200\377" "\377\177\0\0\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0" "\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\376\16\7\7\7\7\7\7\16>" "<\60\0\0\177\377\377\200\0\0\0\0\7\7\207\377\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\377\377\377\7\7\7\7\7\7\7\7\377" "\377\377\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\7\7\7\7\7\377\377\377\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0x\370\370\200\0\0\0\0\0\0\200\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\377\377\377\200\300\340\360x<\36\17\7" "\3\0\0\0\377\377\377\17\37=x\360\340\300\200\0\0\0\0\0\7\7\7\0\0\0\0\0\1\3\7\7" "\6\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\36" "<\60\0\0`\341\343\203\7\7\7\7\7\7\216\376\374p\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\377" "\377\377\0\0\177\377\377\200\0\0\0\0\0\0\200\377\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\177\377\377\200\0\0\0\0\0\0\200\377\377\177\0\0\0\1\7\37~\370\340\340\370~\37\7" "\1\0\0\0\0\0\0\0\0\1\7\7\1\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0" "\377\377\377\0\377\377\377\300\340\360\177\77\177\360\340\340\377\377\377\0\7\7\7\3\1\0\0\0\0\0\1\3" "\7\7\7\0\37\77\177\360\340\300\200\200\300\340\360\177\77\37\0\0\300\340\360x=\37\17\17\37=x\360" "\340\300\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\377\377\377\200\0\0\0\0\0\200\377\377" "\377\0\0\0\0\1\3\7\17\376\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\207\307\347\367\177\77\37\0\0\300\340\360x<\36\17\7\3\1\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\70\70\70\0" "\0\0\0\0\0\0\3\17\77\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\374\360\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\374\360\300\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\70\70\70\77\77\77\0\0\0\0" "\0\0\0\0@\340\360x<\36\17\17\36\0\0\0\1\3\3\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\340\340\340\360\374\376\356\347\347\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0~\377\377\201\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\343\347\347\347\347\347\347w\177" "\77\17\0\0\377\377\377\340\340\340\340\340\340\340\300\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\1\377" "\377\376\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\340\340\340\347\347\347\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\340\340\340\347\347\347\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\340\340\340\340p\177\77\17\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\200\300\340\340`" " \0\0\0\377\377\377x<\36\77\177\363\341\300\200\0\0\0\0\7\7\7\0\0\0\0\0\0\1\3\7" "\7\6\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\300" "\300\200\0\0\377\377\377\0\0\0\377\377\377\0\0\1\377\377\376\0\7\7\7\0\0\0\7\7\7\0\0\0" "\7\7\7\0\340\340\340\0\200\300\300\340\340\340\300\300\200\0\0\0\377\377\377\7\3\1\1\0\0\0\1\377" "\377\376\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\200\300\300\340\340\340\340\340\340\300\300" "\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\340\340\340\340\340\340\340\340\340\340\300\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\201\377" "\377~\0\0\377\377\377\7\7\7\7\7\7\7\3\3\1\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0~\377\377\201\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\3\7\7\7\7\7\7\7\377" "\377\377\0\0\340\340\340\0\200\300\300\340\340\340\300\300\200\0\0\0\377\377\377\7\3\1\1\0\0\0\1\7" "\7\6\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0\7\17\17\35\34\34\34\34\34\34\270\370\360\340\0\0\7\7\7\7\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\340\340\340\377\377\377\340\340\340\0\0\0\0\0\0\0\0\0\0\177\377\377\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\0\0\0\340\340\340\0\0\0\0\0\0\0\0\340" "\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7" "\7\7\0\0\340\340\340\0\0\0\0\0\0\0\0\340\340\340\0\0\3\17\77\374\360\300\0\0\300\360\374\77" "\17\3\0\0\0\0\0\0\3\7\7\7\7\3\0\0\0\0\0\0\340\340\340\0\0\0\340\340\340\0\0\0" "\340\340\340\0\377\377\377\200\0\200\377\377\377\200\0\200\377\377\377\0\0\3\3\7\7\7\3\1\3\7\7\7" "\3\3\0\0\340\340\340\200\0\0\0\0\0\0\200\340\340\340\0\0\0\201\303\347\377~<<~\377\347\303" "\201\0\0\0\7\7\7\1\0\0\0\0\0\0\1\7\7\7\0\0\340\340\340\0\0\0\0\0\0\0\0\340" "\340\340\0\0\177\377\377\200\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\343\347\347\347\347\347\347w\177" "\77\17\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\200\300\340\360x<\36\17\7\3\1" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\200\377\377\377\0\0\0" "\0\0\0\0\0\0\0\7\7\17\375\375\370\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\177\360\340\340" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\200\0\0\0" "\0\0\0\0\0\0\0\0\0\370\375\375\17\7\7\0\0\0\0\0\0\0\340\340\360\177\177\37\0\0\0\0" "\0\0\0\0\0\200\300\300\300\300\200\200\0\0\300\300\300\0\0\0\7\7\7\1\1\3\3\7\7\7\7\3" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\20\70\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\377\377\377\340\340\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\340\340\340\340p\177\77\17\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\300\300\300\0" "\0\0\0\0\20\70\77\37\17\0\20\70\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0\7\7\7\0\0\7\7" "\7\0\0\0\0\0\70\70\70\377\377\377\70\70\70\0\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\377\377\377\70\70\70\0" "\0\0\0\0\0\0\7\7\7\77\77\77\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\2\7\7\3\1\1\3\7\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\177\377\361\340\361\377\377x<\36\17" "\7\3\1\0x<\36\376\377\217\7\217\376\376\217\7\217\376\370\0\0\0\0\0\3\7\7\7\3\3\7\7" "\7\3\0\0p\374\376\216\7\7\7\7\7\7\16><\60\0\0`\341\343\203\7\7\7\7\7\7\216\376" "\374p\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\370\376\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\4\0\0\0\0\0\0\0" "\0\0\0\0\360\374\376\16\7\377\377\377\7\7\7\7\7\7\0\0\177\377\377\200\0\377\377\377\7\7\7\0" "\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\7\2\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0@\340\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\376\377\7\2\0\374\376\377\7" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0@\340\377\177\77\0@\340\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\360\370\370\370\370\370\360\360\340" "\200\0\0\0\17\77\177\177\377\377\377\377\377\177\177\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\1\1\3\3\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\377\377\377\7\7\377\377\377\36\36" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\300\341\343\347\347\343\341\340\340\340\340\0\0\7\17\17\35\34\34\34\34\34\34\270\370" "\360\340\0\0\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\0\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\1\7\377\376\370\0\0\0\0\0\0\0\0\0\0\0\4\17\17\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\340\340\340\300\300\340\340\340\340\300\0\0\0\377\377\377\0\0\377\377\377\70\70\70\77" "\77\77\0\0\0\3\7\7\7\7\3\3\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\200\0\0\0\0\0\200\377\377" "\377\0\0\0\0\1\3\7\17\376\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\347\347\347\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0" "\0\0\0\0\0\200\300\300\340\374\374\374\340\300\300\200\0\0\0\0~\377\377\201\0\377\377\377\0\1\7\7" "\6\0\0\0\0\1\3\3\7\77\77\77\7\7\7\7\7\0\0\0\376\377\377\341\340\340\340\341\7\7\6\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\200\340\340`\0\0\0\7\7\7\7\7\7\7\7\7\3\3\1" "\0\0\0\0\200\300\200\0\0\0\0\0\0\0\200\300\200\0\0\0\0\1\203\377\376\356\306\356\376\377\203\1" "\0\0\0\0\2\7\3\1\0\0\0\0\0\1\3\7\2\0\0\0\2\347\357\376\374\370\360\340\360\370\374\376" "\357\347\2\0\0\70\70\70\70\70\377\377\377\70\70\70\70\70\0\0\0\0\0\0\0\0\7\7\7\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\370\371\373\207\17\36\0\0\3\17\37\34\70\70\70\70\70\31\37\37" "\7\0\0\0\0\0\0\7\7\7\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\316\306\347\347\347\346\356\16\34|\370" "\340\0\0\0\207\237\37\70\70\70\70\270\200\300\360\377\77\7\0\0\3\3\3\7\7\7\3\3\3\1\1\0" "\0\0\0\0\0\0\3\17\37\34\70\70\70\70\70\77\77\77\0\0\0\0\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\200\200" "\0\0\0\0\370\376\377\7\1\0\0\0\370\376\377\7\1\0\0\0\0\3\17\17\4\0\0\0\0\3\17\17" "\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\356\356\346\347\347\307\306\16\16\34|\370\340\0\0\0\377\377\377\70x\377\377\307\300\300\360\377" "\77\7\0\0\1\1\1\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\36\177\377\341\300\300\300\300\341\377\177\36\0\0\0\0\0\0\0\0\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\10\14\12\11\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\10\10\10\11\6\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\2\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\300\300\300\0" "\0\0\0\0\377\377\377\0\0\0\0\200\377\377\377\200\0\0\0\0\377\377\377\7\7\7\7\3\3\1\3\3" "\7\7\0\0<\377\377\303\201\377\377\377\0\0\0\377\377\377\0\0\0\0\1\3\3\377\377\377\7\7\7\377" "\377\377\0\0\0\0\0\0\0\7\7\7\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\16\37\37\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0g\367\377\177\77\37\0\0\0\0\0\0\0\0\0\0\0\10\10\10\17\10\10\10\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\17\37\34\70\70\70\34\37\17\3\0\0\0\0\0\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\200\200\0" "\0\0\0\0\1\7\377\376\370\0\0\0\1\7\377\376\370\0\0\0\4\17\17\3\0\0\0\0\4\17\17\3" "\0\0\0\0\0\10\10\10\17\10\10\10\200@ \20\10\4\2\0\200@ \20\10\4\2\1\300\240\220\210" "\374\200\200\0\0\0\0\0\0\0\0\0\0\0\4\4\7\4\4\0\0\10\10\10\17\10\10\10\200@ \20" "\10\4\2\0\200@ \20\10\4\2\1\10\4\4\204D\70\0\0\0\0\0\0\0\0\0\0\4\6\5\4" "\4\4\0\0\0\0\4\10\10\10\11\6\200@ \20\10\4\2\0\200@ \20\10\4\2\1\300\240\220\210" "\374\200\200\0\0\0\0\0\0\0\0\0\0\0\4\4\7\4\4\0\0\0\0\0\200\300\347\347g\0\0\0" "\0\0\0\0x\374\376\217\7\3\1\0\0\0\200\340\340`\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\300\360\374\77\17\17\77\374\360\300\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377" "\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\300\360\374\77\17\17\77\374\360\300" "\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\0\0\300\360\375>\17\17>\375\360\300\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377" "\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\300\360\374\77\17\17\77\374\360\300" "\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\0\0\300\360\374\77\17\17\77\374\360\300\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377" "\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\300\360\375\77\17\17\77\375\360\300" "\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\360\374\376\16\7\377\377\377\7\7\7\7\7\7\0\0\377\377\377\7\7\377\377\377\7\7\7\0" "\0\0\0\0\7\7\7\0\0\7\7\7\7\7\7\7\7\7\0\0\360\374\376\16\7\7\7\7\7\7\16>" "<\60\0\0\177\377\377\200\0\0\0\0\0\0\200\340\340`\0\0\0\1C\343\367\177\77\37\7\7\3\3" "\1\0\0\0\377\377\377\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\377\377\377\7\7\7\7\16\376\374\360\0\0\7\7\7\377\377\377\7\7\7\0\200\377" "\377\177\0\0\0\0\0\7\7\7\7\7\7\7\3\3\1\0\0\0\377\377\377\36\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\200\300\300\340\340\340\340\340\340\300\300" "\200\0\0\0~\377\377\201\0\0\0\0\0\0\1\7\7\6\0\0\0\1C\343\367\177\77\37\7\7\7\7" "\7\7\0\0\0\200\300\300\341\343\347\347\342\340\300\300\200\0\0\0~\377\377\271\70\70\70\70\70\70\71\77" "\77>\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\200\300\300\340\342\347\347\343\341\300\300" "\200\0\0\0~\377\377\271\70\70\70\70\70\70\71\77\77>\0\0\0\1\3\3\7\7\7\7\7\7\7\7" "\7\7\0\0\0\200\302\307\347\343\341\341\343\347\307\302\200\0\0\0~\377\377\271\70\70\70\70\70\70\71\77" "\77>\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\200\307\307\347\340\340\340\340\347\307\307" "\200\0\0\0~\377\377\271\70\70\70\70\70\70\71\77\77>\0\0\0\1\3\3\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\340\340\341\343\347\347\2\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\340\340\342\347\347\343\1\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\342\347\347\343\341\341\3\7\7\2\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\347\347\347\340\340\340\7\7\7\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\204\316\317\347\343\347\357\376\374\370\360\340\300\0\0~\377\377\201\0\0\0\0\0\0\201\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\347\347\347\1\201\303\303\347\347\347\307\303" "\201\0\0\0\377\377\377\7\3\1\1\0\0\0\1\377\377\376\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\0\200\300\300\341\343\347\347\342\340\300\300\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\200\300\300\340\342\347\347\343\341\300\300" "\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\200\302\307\347\343\341\341\343\347\307\302\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\7\207\307\301\341\343\343\347\347\347\307\303" "\201\0\0\0~\377\377\201\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\200\307\307\347\340\340\340\340\347\307\307\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\0\0\0\0\70\70\70\0\0\0\0" "\0\0\0\0\7\7\7\7\7\307\307\307\7\7\7\7\7\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0" "\0\0\0\0\0\200\300\300\340\340\340\340\340\340\300\300\200\0\0\0~\377\377\301\340p\70\34\16\7\203\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\340\340\340\0\1\3\7\7\2\0\0\340" "\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7" "\7\7\0\0\340\340\340\0\0\2\7\7\3\1\0\340\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377" "\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7\7\7\0\0\340\340\342\7\7\3\1\1\3\7\7\342" "\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7" "\7\7\0\0\340\340\347\7\7\0\0\0\0\7\7\347\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377" "\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7\7\7\0\0\340\340\340\0\0\2\7\7\3\1\0\340" "\340\340\0\0\177\377\377\200\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\343\347\347\347\347\347\347w\177" "\77\17\0\0\377\377\377\340\340\340\340\340\340\340\300\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\201\377" "\377~\0\0\377\377\377\7\7\7\7\7\7\7\3\3\1\0\0\0\340\340\347\7\7\0\0\0\0\7\7\347" "\340\340\0\0\177\377\377\200\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\347\347\347\347\347\347\347\367\177" "\77\17\0"; /* Fontname: ProFont29 Copyright: ProFont Distribution 2.2 Generated by Fontographer 4.1.5 Glyphs: 96/256 BBX Build Mode: 3 */ const uint8_t u8x8_font_profont29_2x3_r[4612] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_r") = " \177\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\0\0\77\77\77\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34\34\377\377\377\34\34\34\377\377\377" "\34\34\34\0\7\7\7\77\77\77\7\7\7\77\77\77\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0p\374\376\216\7\377\377\377\7\16><\60\0\0\0`\341\343\203\7\377\377\377\7\216\376\374" "p\0\0\0\0\1\3\3\7\77\77\77\7\3\3\1\0\0\0\0p\374\376\7\7\377\377\367\307\347\367\177" "\77\37\0\0\300\341\363\177\77\177\377\377\7\7\375\374p\0\0\0\7\7\7\0\0\0\1\3\7\7\3\1" "\0\0\0\0p\374\376\216\207\307\347\367~>\34\0\0\0\0\0p\375\377\217\17\37=\370\360\340\360\370" "<\30\0\0\0\1\3\3\7\7\7\3\3\1\3\7\7\2\0\0\0\0\0\0\0\77\77\77\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\370\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\377\377\377\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\7\17\36<\70\20\0\0\0\0\0\0\0\0\1\3\7\17\376\374\370\0" "\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\0\0\0\0\0\0\0\20\70<\36\17\7\3\1\0\0" "\0\0\0\0\20\70\70\360\340\376\376\376\360\360\70\70\20\0\0\0\2\7\7\3\3\77\77\77\3\3\7\7" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0@\341\363\177\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\77" "\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0" "\0\0\0\0\360\374\376\16\7\7\7\207\307\347\376\376\374\360\0\0\177\377\377\370<\36\17\7\3\1\200\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\70\70\70<\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\60<>\16\7\7\7\7\7\7\216\376\374p\0\0\0\0\200\300\340\360x<\36\17\7\3" "\1\0\0\0\6\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\60<>\16\7\7\7\7\7\207\216\376" "\374p\0\0`\340\340\200\0\0\7\7\7\17\217\375\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\200\300\340\360x<\36\377\377\377\0\0\0\0\0\37\37\37\35\34\34\34\34\377\377\377\34" "\34\34\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\377\377\377\347\347\347\347\347\347\347\307\307" "\207\7\0\0`\340\340\200\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\360\374\376\356\347\347\347\347\347\347\307\300\200\0\0\0\177\377\377\200\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\7\7\7\7\7\7\7\7\7\207\307\377" "\377\177\0\0\0\0\0\0\0\370\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0p\374\376\216\207\7\7\7\7\207\216\376\374p\0\0p\370\375\217\17\7\7\7\7\17\217\375" "\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\360\374\376\16\7\7\7\7\7\7\16\376" "\374\360\0\0\3\17\37\34\70\70\70\70\70\70\270\377\377\177\0\0\0\0\0\7\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\301\343\343\343\301\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0\0\301\343\343\343\301\0\0\0\0\0\0\0\0\0\0@\341\363\177\77\37\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360x<\36\17\7\2\0\0\0\0\2\7\17\37=x\360\340\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\2\0\0\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\2\7\17\36\16\7\7\7\7\7\7\216\376" "\374\360\0\0\0\0\0\0\0\60\70<\36\17\7\3\1\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\360\374\376\16\7\207\307\347\347\347\356\376\374\360\0\0\177\377\377\200\0\17\37\77\70\70\70\77" "\37\17\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\0\0\0\0\300\360\374\77\17\17\77\374\360\300" "\0\0\0\0\374\377\377;\70\70\70\70\70\70;\377\377\374\0\0\7\7\7\0\0\0\0\0\0\0\0\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\207\216\376\374p\0\0\377\377\377\7\7\7\7\7\7\17\217\375" "\370p\0\0\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\360\374\376\16\7\7\7\7\7\7\16>" "<\60\0\0\177\377\377\200\0\0\0\0\0\0\200\340\340`\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\377\377\377\7\7\7\7\7\7\7\16\376\374\360\0\0\377\377\377\0\0\0\0\0\0\0\200\377" "\377\177\0\0\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\7\7\7\7\7\7\7\7\0" "\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\376\16\7\7\7\7\7\7\16>" "<\60\0\0\177\377\377\200\0\0\0\0\7\7\207\377\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\377\377\377\7\7\7\7\7\7\7\7\377" "\377\377\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\7\7\7\7\7\377\377\377\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0x\370\370\200\0\0\0\0\0\0\200\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\377\377\377\200\300\340\360x<\36\17\7" "\3\0\0\0\377\377\377\17\37=x\360\340\300\200\0\0\0\0\0\7\7\7\0\0\0\0\0\1\3\7\7" "\6\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\377\377\377\36" "<\60\0\0`\341\343\203\7\7\7\7\7\7\216\376\374p\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\377" "\377\377\0\0\177\377\377\200\0\0\0\0\0\0\200\377\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\177\377\377\200\0\0\0\0\0\0\200\377\377\177\0\0\0\1\7\37~\370\340\340\370~\37\7" "\1\0\0\0\0\0\0\0\0\1\7\7\1\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0" "\377\377\377\0\377\377\377\300\340\360\177\77\177\360\340\340\377\377\377\0\7\7\7\3\1\0\0\0\0\0\1\3" "\7\7\7\0\37\77\177\360\340\300\200\200\300\340\360\177\77\37\0\0\300\340\360x=\37\17\17\37=x\360" "\340\300\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\377\377\377\200\0\0\0\0\0\200\377\377" "\377\0\0\0\0\1\3\7\17\376\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0\7\7\7\7\7\7\7\207\307\347\367\177\77\37\0\0\300\340\360x<\36\17\7\3\1\0\0" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\70\70\70\0" "\0\0\0\0\0\0\3\17\77\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\374\360\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\374\360\300\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\70\70\70\77\77\77\0\0\0\0" "\0\0\0\0@\340\360x<\36\17\17\36\0\0\0\1\3\3\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\340\340\340\360\374\376\356\347\347\7\7\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0~\377\377\201\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\343\347\347\347\347\347\347w\177" "\77\17\0\0\377\377\377\340\340\340\340\340\340\340\300\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\1\377" "\377\376\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\340\340\340\347\347\347\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\340\340\340\347\347\347\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\340\340\340\340p\177\77\17\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\200\300\340\340`" " \0\0\0\377\377\377x<\36\77\177\363\341\300\200\0\0\0\0\7\7\7\0\0\0\0\0\0\1\3\7" "\7\6\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\300" "\300\200\0\0\377\377\377\0\0\0\377\377\377\0\0\1\377\377\376\0\7\7\7\0\0\0\7\7\7\0\0\0" "\7\7\7\0\340\340\340\0\200\300\300\340\340\340\300\300\200\0\0\0\377\377\377\7\3\1\1\0\0\0\1\377" "\377\376\0\0\7\7\7\0\0\0\0\0\0\0\0\7\7\7\0\0\0\200\300\300\340\340\340\340\340\340\300\300" "\200\0\0\0~\377\377\201\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\340\340\340\340\340\340\340\340\340\340\300\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\201\377" "\377~\0\0\377\377\377\7\7\7\7\7\7\7\3\3\1\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0~\377\377\201\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\3\7\7\7\7\7\7\7\377" "\377\377\0\0\340\340\340\0\200\300\300\340\340\340\300\300\200\0\0\0\377\377\377\7\3\1\1\0\0\0\1\7" "\7\6\0\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\340\340\340" "\340\340\0\0\7\17\17\35\34\34\34\34\34\34\270\370\360\340\0\0\7\7\7\7\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\340\340\340\377\377\377\340\340\340\0\0\0\0\0\0\0\0\0\0\177\377\377\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\0\0\0\340\340\340\0\0\0\0\0\0\0\0\340" "\340\340\0\0\177\377\377\200\0\0\0\200\200\300\340\377\377\377\0\0\0\1\3\3\7\7\7\3\3\1\0\7" "\7\7\0\0\340\340\340\0\0\0\0\0\0\0\0\340\340\340\0\0\3\17\77\374\360\300\0\0\300\360\374\77" "\17\3\0\0\0\0\0\0\3\7\7\7\7\3\0\0\0\0\0\0\340\340\340\0\0\0\340\340\340\0\0\0" "\340\340\340\0\377\377\377\200\0\200\377\377\377\200\0\200\377\377\377\0\0\3\3\7\7\7\3\1\3\7\7\7" "\3\3\0\0\340\340\340\200\0\0\0\0\0\0\200\340\340\340\0\0\0\201\303\347\377~<<~\377\347\303" "\201\0\0\0\7\7\7\1\0\0\0\0\0\0\1\7\7\7\0\0\340\340\340\0\0\0\0\0\0\0\0\340" "\340\340\0\0\177\377\377\200\0\0\0\0\0\0\0\377\377\377\0\0\0\1\3\343\347\347\347\347\347\347w\177" "\77\17\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\200\300\340\360x<\36\17\7\3\1" "\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\200\377\377\377\0\0\0" "\0\0\0\0\0\0\0\7\7\17\375\375\370\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\177\360\340\340" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\200\0\0\0" "\0\0\0\0\0\0\0\0\0\370\375\375\17\7\7\0\0\0\0\0\0\0\340\340\360\177\177\37\0\0\0\0" "\0\0\0\0\0\200\300\300\300\300\200\200\0\0\300\300\300\0\0\0\7\7\7\1\1\3\3\7\7\7\7\3" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: ProFont29 Copyright: ProFont Distribution 2.2 Generated by Fontographer 4.1.5 Glyphs: 18/256 BBX Build Mode: 3 */ const uint8_t u8x8_font_profont29_2x3_n[1300] U8X8_FONT_SECTION("u8x8_font_profont29_2x3_n") = " :\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\70\70\360\340\376\376\376\360\360\70\70\20\0\0\0\2\7\7\3\3\77\77\77\3\3\7\7" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\7\7\7\7\7\377\377\377\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0@\341\363\177\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\77" "\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0\300\360\374\77\17\3\0\0\0\0\0\0" "\0\0\0\0\360\374\376\16\7\7\7\207\307\347\376\376\374\360\0\0\177\377\377\370<\36\17\7\3\1\200\377" "\377\177\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\0\70\70\70<\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\60<>\16\7\7\7\7\7\7\216\376\374p\0\0\0\0\200\300\340\360x<\36\17\7\3" "\1\0\0\0\6\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\60<>\16\7\7\7\7\7\207\216\376" "\374p\0\0`\340\340\200\0\0\7\7\7\17\217\375\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\0\200\300\340\360x<\36\377\377\377\0\0\0\0\0\37\37\37\35\34\34\34\34\377\377\377\34" "\34\34\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\0\0\377\377\377\347\347\347\347\347\347\347\307\307" "\207\7\0\0`\340\340\200\0\0\0\0\0\0\201\377\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3" "\1\0\0\0\360\374\376\356\347\347\347\347\347\347\307\300\200\0\0\0\177\377\377\200\0\0\0\0\0\0\201\377" "\377~\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\7\7\7\7\7\7\7\7\7\207\307\377" "\377\177\0\0\0\0\0\0\0\370\374\376\17\7\3\1\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0" "\0\0\0\0p\374\376\216\207\7\7\7\7\207\216\376\374p\0\0p\370\375\217\17\7\7\7\7\17\217\375" "\370p\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1\0\0\0\360\374\376\16\7\7\7\7\7\7\16\376" "\374\360\0\0\3\17\37\34\70\70\70\70\70\70\270\377\377\177\0\0\0\0\0\7\7\7\7\7\7\7\3\3" "\1\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\301\343\343\343\301\0\0\0" "\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0"; /* Fontname: -FontForge-Artos Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 96/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_artossans8_r[772] U8X8_FONT_SECTION("u8x8_font_artossans8_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\3\0\0\0\3\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0B%\22\10$R!\0\0 VIIU\42P\0\0\0\0" "\3\0\0\0\0\0\34\42A\0\0\0\0\0\0A\42\34\0\0\0\0\12\4\37\4\12\0\0\10\10>" "\10\10\0\0\0\0\0@\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0@ \20\10" "\4\2\1\0\0>AAA>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22\21\177\20\0\0\0'EEE\71\0\0\0>III\62\0\0\0\1\1y" "\5\3\0\0\0\66III\66\0\0\0&III>\0\0\0\0\0\22\0\0\0\0\0\0\0 " "\22\0\0\0\0\0\10\24\42A\0\0\0\24\24\24\24\24\24\0\0\0\0A\42\24\10\0\0\2\1Y" "\11\6\0\0AAA" "AA\42\0\177AAAAA>\0\177IIIIAA\0\177\11\11\11\11\1\1\0>AAA" "II:\0\177\10\10\10\10\10\177\0\0AA\177AA\0\0 @@@@@\77\0\177\10\10\10" "\24\42A\0\177@@@@@@\0\177\2\4\10\4\2\177\0\177\2\4\10\20 \177\0>AAA" "AA>\0\177\21\21\21\21\21\16\0>AAAaA\276\0\177\11\11\11\11\31f\0&III" "II\62\0\1\1\1\177\1\1\1\0\77@@@@@\77\0\17\20 @ \20\17\0\37` \34" " `\37\0A\42\24\10\24\42A\0\3\4\10p\10\4\3\0AaQIECA\0\0\0\177A" "A\0\0\0\1\2\4\10\20 @\0\0\0\0AA\177\0\0\0\4\2\1\2\4\0\0\200\200\200\200" "\200\200\200\200\0\0\0\1\2\0\0\0\0 TTTTx\0\0\177DDDD\70\0\0\70DD" "DD(\0\0\70DDDD\177\0\0\70TTTTH\0\0\0\4~\5\1\0\0\0\30\244\244" "\244\244|\0\0\177\4\4\4\4x\0\0\0D}@\0\0\0\0@\200\200\204}\0\0\0\177\20\20" "\20(D\0\0\0\1\177\0\0\0\0|\4\4|\4\4x\0\0|\4\4\4\4x\0\0\70DD" "DD\70\0\0\374DDDD\70\0\0\70DDDD\374\0\0|\10\4\4\4\4\0\0HTT" "TT$\0\0\0\4\77D@\0\0\0<@@@@|\0\0\34 @@ \34\0\0<@@" "\70@@<\0D(\20(D\0\0\0\34\240\240\240\240|\0\0DdTLD\0\0\0\0\10\66" "A\0\0\0\0\0\0\377\0\0\0\0\0\0\0A\66\10\0\0\10\4\4\10\20\20\10\0\0\0\0\0" "\0\0\0"; /* Fontname: -FontForge-Artos Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_artossans8_n[220] U8X8_FONT_SECTION("u8x8_font_artossans8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\24\10>\10\24\0\0\20\20|" "\20\20\0\0\0\0\0\200`\0\0\0\0\20\20\20\20\20\20\0\0\0\0\200\0\0\0\0\200@ \20" "\10\4\2\0\0|\202\202\202|\0\0\0\200\204\376\200\200\0\0\0\304\242\222\222\214\0\0\0D\202\222" "\222l\0\0\0\70$\42\376 \0\0\0N\212\212\212r\0\0\0|\222\222\222d\0\0\0\2\2\362" "\12\6\0\0\0l\222\222\222l\0\0\0L\222\222\222|\0\0\0\0\0$\0\0\0"; /* Fontname: -FontForge-Artos Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_artossans8_u[517] U8X8_FONT_SECTION("u8x8_font_artossans8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\3\0\0\0\3\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0B%\22\10$R!\0\0 VIIU\42P\0\0\0\0" "\3\0\0\0\0\0\34\42A\0\0\0\0\0\0A\42\34\0\0\0\0\12\4\37\4\12\0\0\10\10>" "\10\10\0\0\0\0\0@\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0@ \20\10" "\4\2\1\0\0>AAA>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22\21\177\20\0\0\0'EEE\71\0\0\0>III\62\0\0\0\1\1y" "\5\3\0\0\0\66III\66\0\0\0&III>\0\0\0\0\0\22\0\0\0\0\0\0\0 " "\22\0\0\0\0\0\10\24\42A\0\0\0\24\24\24\24\24\24\0\0\0\0A\42\24\10\0\0\2\1Y" "\11\6\0\0AAA" "AA\42\0\177AAAAA>\0\177IIIIAA\0\177\11\11\11\11\1\1\0>AAA" "II:\0\177\10\10\10\10\10\177\0\0AA\177AA\0\0 @@@@@\77\0\177\10\10\10" "\24\42A\0\177@@@@@@\0\177\2\4\10\4\2\177\0\177\2\4\10\20 \177\0>AAA" "AA>\0\177\21\21\21\21\21\16\0>AAAaA\276\0\177\11\11\11\11\31f\0&III" "II\62\0\1\1\1\177\1\1\1\0\77@@@@@\77\0\17\20 @ \20\17\0\37` \34" " `\37\0A\42\24\10\24\42A\0\3\4\10p\10\4\3\0AaQIECA\0\0\0\177A" "A\0\0\0\1\2\4\10\20 @\0\0\0\0AA\177\0\0\0\4\2\1\2\4\0\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Artos Serif-Medium-R-Normal--8-80-75-75-M-80-ISO8859-1 Copyright: (null) Glyphs: 95/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_artosserif8_r[764] U8X8_FONT_SECTION("u8x8_font_artosserif8_r") = " ~\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\3\0\0\0\3\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0B%\22\10$R!\0\0 VIIU\42P\0\0\0\0" "\3\0\0\0\0\0\34\42A\0\0\0\0\0\0A\42\34\0\0\0\0\12\4\37\4\12\0\0\10\10>" "\10\10\0\0\0\0\0@\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0@ \20\10" "\4\2\1\0\0>AAA>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22Q\177P\0\0\0'EEE\71\0\0\0>III\62\0\0\0\1\1y" "\5\3\0\0\0\66III\66\0\0\0&III>\0\0\0\0\0\22\0\0\0\0\0\0\0 " "\22\0\0\0\0\0\10\24\42A\0\0\0\24\24\24\24\24\24\0\0\0\0A\42\24\10\0\0\2\1Y" "\11\6\0\0\0A\177IIIAc\0A\177I\11\11\1\3\0\34\42AA" "II:\0A\177I\10I\177A\0\0\0A\177A\0\0\0 @@@A\77\1\0A\177I\10" "UcA\0A\177A@@@`\0A\177E\10E\177A\0A\177E\10Q\177A\0\0>AA" "AA>\0A\177Q\21\21\21\16\0\0>AAaA\276\0A\177I\11\11Iv@&III" "II\62\0\3\1A\177A\1\3\0\1\77A@A\77\1\0\1\17\61@\61\17\1\0\1\177!\34" "!\177\1\0AcU\10UcA\0\1\7IpI\7\1\0CaQIECa\0\0\0\177A" "A\0\0\0\1\2\4\10\20 @\0\0\0\0AA\177\0\0\0\4\2\1\2\4\0\0\200\200\200\200" "\200\200\200\200\0\0\0\1\2\0\0\0\0 TTTx\0\0\0\177DDD\70\0\0\0\70DD" "D(\0\0\0\70DDD\177\0\0\0\70TTTH\0\0\0\0\4~\5\1\0\0\0\30\244\244" "\244|\0\0\0\177\4\4\4x\0\0\0\0D}@\0\0\0\0@\200\200\204}\0\0\0\177\20\20" "(D\0\0\0\0A\177@\0\0\0\0|\4x\4x\0\0\0|\10\4\4x\0\0\0\70DD" "D\70\0\0\0\374DDD\70\0\0\0\70DDD\374\0\0\0|\10\4\4\4\0\0\0HTT" "T$\0\0\0\0\4\77D@\0\0\0<@@@|\0\0\0\34 @ \34\0\0\0<@\60" "@<\0\0\0D(\20(D\0\0\0\34\240\240\240|\0\0\0DdTLD\0\0\0\0\10\66" "A\0\0\0\0\0\0\377\0\0\0\0\0\0\0A\66\10\0\0\10\4\4\10\20\20\10"; /* Fontname: -FontForge-Artos Serif-Medium-R-Normal--8-80-75-75-M-80-ISO8859-1 Copyright: (null) Glyphs: 18/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_artosserif8_n[220] U8X8_FONT_SECTION("u8x8_font_artosserif8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\24\10>\10\24\0\0\20\20|" "\20\20\0\0\0\0\0\200`\0\0\0\0\20\20\20\20\20\20\0\0\0\0\200\0\0\0\0\200@ \20" "\10\4\2\0\0|\202\202\202|\0\0\0\200\204\376\200\200\0\0\0\304\242\222\222\214\0\0\0D\202\222" "\222l\0\0\0\70$\242\376\240\0\0\0N\212\212\212r\0\0\0|\222\222\222d\0\0\0\2\2\362" "\12\6\0\0\0l\222\222\222l\0\0\0L\222\222\222|\0\0\0\0\0$\0\0\0"; /* Fontname: -FontForge-Artos Serif-Medium-R-Normal--8-80-75-75-M-80-ISO8859-1 Copyright: (null) Glyphs: 64/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_artosserif8_u[517] U8X8_FONT_SECTION("u8x8_font_artosserif8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\3\0\0\0\3\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0B%\22\10$R!\0\0 VIIU\42P\0\0\0\0" "\3\0\0\0\0\0\34\42A\0\0\0\0\0\0A\42\34\0\0\0\0\12\4\37\4\12\0\0\10\10>" "\10\10\0\0\0\0\0@\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0@ \20\10" "\4\2\1\0\0>AAA>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22Q\177P\0\0\0'EEE\71\0\0\0>III\62\0\0\0\1\1y" "\5\3\0\0\0\66III\66\0\0\0&III>\0\0\0\0\0\22\0\0\0\0\0\0\0 " "\22\0\0\0\0\0\10\24\42A\0\0\0\24\24\24\24\24\24\0\0\0\0A\42\24\10\0\0\2\1Y" "\11\6\0\0\0A\177IIIAc\0A\177I\11\11\1\3\0\34\42AA" "II:\0A\177I\10I\177A\0\0\0A\177A\0\0\0 @@@A\77\1\0A\177I\10" "UcA\0A\177A@@@`\0A\177E\10E\177A\0A\177E\10Q\177A\0\0>AA" "AA>\0A\177Q\21\21\21\16\0\0>AAaA\276\0A\177I\11\11Iv@&III" "II\62\0\3\1A\177A\1\3\0\1\77A@A\77\1\0\1\17\61@\61\17\1\0\1\177!\34" "!\177\1\0AcU\10UcA\0\1\7IpI\7\1\0CaQIECa\0\0\0\177A" "A\0\0\0\1\2\4\10\20 @\0\0\0\0AA\177\0\0\0\4\2\1\2\4\0\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Chroma 48-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 96/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_chroma48medium8_r[772] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\0^\0\0\0\0\0\0\6\0\0\6\0\0\0$~$" "$~$\0\0$k**k\22\0\0F&\20\10db\0\0\64JJT P\0\0\0\0\0" "\6\0\0\0\0\0\0\34*\0\0\0\10\10>" "\10\10\0\0\0\0@\60\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0\0@ \20" "\10\4\2\0\0\0\0~\10\10" "\10\24b\0\0~@@@@@\0\0~\4\10\10\4~\0\0~\4\10\20 ~\0\0@@@@>\0\0\36 @@ \36\0\0~ \20" "\20 ~\0\0B$\30\30$B\0\0\2\4x\4\2\0\0\0BbRJFB\0\0\0~B" "B\0\0\0\0\2\4\10\20 @\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\200\200\200\200" "\200\200\200\200\0\0\0\2\4\0\0\0\0 TTTx\0\0\0~HHH\60\0\0\0\70DD" "D(\0\0\0\60HHH~\0\0\0\70TTTH\0\0\0\0\10|\12\2\0\0\0\30\244\244" "\244|\0\0\0~\10\10\10p\0\0\0\0Hz@\0\0\0\0@\200\200\210z\0\0\0~\20\20" "(D\0\0\0\0B~@\0\0\0\0|\4x\4x\0\0\0|\4\4\4x\0\0\0\70DD" "D\70\0\0\0\374DDD\70\0\0\0\70DDD\374\0\0\0|\10\4\4\4\0\0\0HTT" "T$\0\0\0\0\4>D\0\0\0\0<@@ |\0\0\0\34 @ \34\0\0\0\34`\34" "`\34\0\0\0D(\20(D\0\0\0\34\240\240\240|\0\0\0DdTLD\0\0\0\0\10\66" "A\0\0\0\0\0\0\377\0\0\0\0\0\0A\66\10\0\0\0\10\4\4\10\20\20\10\0\0\0\0\0" "\0\0\0"; /* Fontname: -FontForge-Chroma 48-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_chroma48medium8_n[220] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0T\70|\70T\0\0\0\20\20|" "\20\20\0\0\0\0\200`\0\0\0\0\0\20\20\20\20\20\20\0\0\0\0\200\0\0\0\0\0\200@ " "\20\10\4\0\0x\304\244\224\214x\0\0\200\210\374\200\200\0\0\0\310\244\244\244\244\230\0\0H\204\224" "\224\224h\0\0pHDD\374@\0\0\134\224\224\224\224d\0\0x\224\224\224\224`\0\0\4\4\304" "$\24\14\0\0h\224\224\224\224h\0\0\30\244\244\244\244x\0\0\0\0H\0\0\0"; /* Fontname: -FontForge-Chroma 48-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_chroma48medium8_u[517] U8X8_FONT_SECTION("u8x8_font_chroma48medium8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0^\0\0\0\0\0\0\6\0\0\6\0\0\0$~$" "$~$\0\0$k**k\22\0\0F&\20\10db\0\0\64JJT P\0\0\0\0\0" "\6\0\0\0\0\0\0\34*\0\0\0\10\10>" "\10\10\0\0\0\0@\60\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0@\0\0\0\0\0@ \20" "\10\4\2\0\0\0\0~\10\10" "\10\24b\0\0~@@@@@\0\0~\4\10\10\4~\0\0~\4\10\20 ~\0\0@@@@>\0\0\36 @@ \36\0\0~ \20" "\20 ~\0\0B$\30\30$B\0\0\2\4x\4\2\0\0\0BbRJFB\0\0\0~B" "B\0\0\0\0\2\4\10\20 @\0\0\0\0BB~\0\0\0\0\0\4\2\4\0\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Saikyo Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/72 BBX Build Mode: 3 */ const uint8_t u8x8_font_saikyosansbold8_n[220] U8X8_FONT_SECTION("u8x8_font_saikyosansbold8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34>*\10\0\0\20\20|" "|\20\20\0\0\0\200\340`\0\0\0\0\20\20\20\20\20\20\0\0\0\0\300\300\0\0\0\0\300`\60" "\30\14\6\0|\376\202\202\202\376|\0\0\200\204\376\376\200\200\0\304\346\262\222\222\236\214\0D\306\222\222" "\222\376l\0\70<&\42\376\376 \0N\316\212\212\212\372r\0|\376\222\222\222\366d\0\6\6\2\362" "\372\16\6\0l\376\222\222\222\376l\0L\336\222\222\222\376|\0\0\0\0ll\0\0"; /* Fontname: -FontForge-Saikyo Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/72 BBX Build Mode: 3 */ const uint8_t u8x8_font_saikyosansbold8_u[517] U8X8_FONT_SECTION("u8x8_font_saikyosansbold8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\0\7\7\0\0\42\177\177" "\42\177\177\42$.*k*:\22\0Ff\60\30\14fb\0 v_I\77vP\0\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\4\25\37\16\37\25\4\0\0\10\10>" ">\10\10\0\0\0@p\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30" "\14\6\3\0>\177AAA\177>\0\0@B\177\177@@\0bsYIIOF\0\42cII" "I\177\66\0\34\36\23\21\177\177\20\0'gEEE}\71\0>\177III{\62\0\3\3\1y" "}\7\3\0\66\177III\177\66\0&oIII\177>\0\0\0\0\66\66\0\0\0\0\0@v" "\66\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\0\0\0Ac\66\34\10\0\0\2\1Y" "Y\17\6\0\177AA" "Ac\42\0\177\177AAA\177>\0\177\177IIIIA\0\177\177\11\11\11\1\1\0>\177AA" "I{:\0\177\177\10\10\10\177\177\0\0\0\0\177\177\0\0\0 `@@@\177\77\0\177\177\10\34" "\66cA\0\177\177@@@@@\0\177\177\6\14\6\177\177\0\177\177\6\14\30\177\177\0>\177AA" "A\177>\0\177\177\21\21\21\37\16\0>\177AAA\377\276\0\177\177\21\21\21\177n\0&oII" "I{\62\0\0\1\1\177\177\1\1\0\77\177@@@\177\77\0\17\37\60`\60\37\17\0\177\177\60\34" "\60\177\177\0cw\34\10\34wc\0\0\7\17xx\17\7\0aqy]OGC\0\0\0\177\177" "AA\0\0\0\3\6\14\30\60`\0\0\0AA\177\177\0\0\0\0\14\6\3\6\14\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Torus Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 96/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_torussansbold8_r[772] U8X8_FONT_SECTION("u8x8_font_torussansbold8_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\3\7\0\0\7\3\0\0\42\177\177" "\42\177\177\42\0$.kk:\22\0\0c\63\30\14fc\0\0 vOY\67fP\0\0\0\7" "\3\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\0\12\4\37\4\12\0\0\0\10\10" ">\10\10\0\0\0\0p\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30" "\14\6\3\0\0>\177AA\177>\0\0@B\177\177@@\0\0bqYIOF\0\0\42AI" "I\177\66\0\0\34\36Q\177\177P\0\0'GEE}\71\0\0>\177IIy\62\0\0\1\1y" "}\7\3\0\0\66\177II\177\66\0\0&OII\177>\0\0\0\0\66\66\0\0\0\0\0\0v" "\66\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\0\0\0Ac\66\34\10\0\0\2\1Y" "Y\17\6\0\177A" "AA\42\0\0\177\177AA\177>\0\0\177\177IIAA\0\0\177\177\11\11\1\1\0\0>\177A" "Iy:\0\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0 @@@\177\77\0\0\177\177\10" "\34wc\0\0\177\177@@@@\0\177\6\14\30\14\6\177\177\177\7\16\34\70p\177\0\0>\177A" "A\177>\0\0\177\177\21\21\37\16\0\0>\177AA\377\276\0\0\177\177\11\11\177v\0\0&OI" "Iy\62\0\0\1\1\177\177\1\1\0\0\77\177@@\177\77\0\0\177\177@@\77\37\0\177\177@\177" "@\77\37\0\0w\177\10\10\177w\0\0\7\17xx\17\7\0\0aqYMGC\0\0\0\177\177" "AA\0\0\0\3\6\14\30\60`\0\0\0AA\177\177\0\0\0\0\14\6\3\6\14\0\200\200\200\200" "\200\200\200\200\0\0\0\1\3\2\0\0\0 tTT|x\0\0\177\177DD|\70\0\0\70|D" "DD(\0\0\70|DD\177\177\0\0\70|TT\134H\0\0\0\4~\177\5\1\0\0\30\274\244" "\244\374|\0\0\177\177\4\4|x\0\0\0D}}@\0\0\0\0@\200\204\375}\0\0\177\177\20" "\70lD\0\0\0\0\1\177\177\0\0||\4|\4|x\0\0||\4\4|x\0\0\70|D" "D|\70\0\0\374\374DD|\70\0\0\70|DD\374\374\0\0||\10\4\4\4\0\0H\134T" "Tt$\0\0\0\4\77\177D\0\0\0<|@@||\0\0||@@<\34\0||@|" "@<\34\0\0l|\20\20|l\0\0\34\274\240\240\374|\0\0Ddt\134LD\0\0\0\10>" "wA\0\0\0\0\0\377\377\0\0\0\0\0Aw>\10\0\0\0\10\14\4\10\20\30\10\0\0\0\0" "\0\0\0"; /* Fontname: -FontForge-Torus Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_torussansbold8_n[220] U8X8_FONT_SECTION("u8x8_font_torussansbold8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\24\10>\10\24\0\0\0\20\20" "|\20\20\0\0\0\0\340`\0\0\0\0\20\20\20\20\20\20\0\0\0\0\300\300\0\0\0\0\300`\60" "\30\14\6\0\0|\376\202\202\376|\0\0\200\204\376\376\200\200\0\0\304\342\262\222\236\214\0\0D\202\222" "\222\376l\0\0\70<\242\376\376\240\0\0N\216\212\212\372r\0\0|\376\222\222\362d\0\0\2\2\362" "\372\16\6\0\0l\376\222\222\376l\0\0L\236\222\222\376|\0\0\0\0ll\0\0"; /* Fontname: -FontForge-Torus Sans-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/170 BBX Build Mode: 3 */ const uint8_t u8x8_font_torussansbold8_u[517] U8X8_FONT_SECTION("u8x8_font_torussansbold8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\3\7\0\0\7\3\0\0\42\177\177" "\42\177\177\42\0$.kk:\22\0\0c\63\30\14fc\0\0 vOY\67fP\0\0\0\7" "\3\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\0\12\4\37\4\12\0\0\0\10\10" ">\10\10\0\0\0\0p\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30" "\14\6\3\0\0>\177AA\177>\0\0@B\177\177@@\0\0bqYIOF\0\0\42AI" "I\177\66\0\0\34\36Q\177\177P\0\0'GEE}\71\0\0>\177IIy\62\0\0\1\1y" "}\7\3\0\0\66\177II\177\66\0\0&OII\177>\0\0\0\0\66\66\0\0\0\0\0\0v" "\66\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\0\0\0Ac\66\34\10\0\0\2\1Y" "Y\17\6\0\177A" "AA\42\0\0\177\177AA\177>\0\0\177\177IIAA\0\0\177\177\11\11\1\1\0\0>\177A" "Iy:\0\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0 @@@\177\77\0\0\177\177\10" "\34wc\0\0\177\177@@@@\0\177\6\14\30\14\6\177\177\177\7\16\34\70p\177\0\0>\177A" "A\177>\0\0\177\177\21\21\37\16\0\0>\177AA\377\276\0\0\177\177\11\11\177v\0\0&OI" "Iy\62\0\0\1\1\177\177\1\1\0\0\77\177@@\177\77\0\0\177\177@@\77\37\0\177\177@\177" "@\77\37\0\0w\177\10\10\177w\0\0\7\17xx\17\7\0\0aqYMGC\0\0\0\177\177" "AA\0\0\0\3\6\14\30\60`\0\0\0AA\177\177\0\0\0\0\14\6\3\6\14\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Victoria-Bold-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 96/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriabold8_r[772] U8X8_FONT_SECTION("u8x8_font_victoriabold8_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\0\7\7\0\0\42\177\177" "\42\177\177\42\0$.kk:\22\0\0c\63\30\14fc\0\0 v_I\177vP\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\4\25\37\16\37\25\4\0\0\0\10\10" ">\10\10\0\0\0@p\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30" "\14\6\3\0\0>\177AA\177>\0\0@B\177\177@@\0\0bsYIOF\0\0\42cI" "I\177\66\0\0\34\36S\177\177P\0\0'gEE}\71\0\0>\177II{\62\0\0\1\1y" "}\7\3\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0\66\66\0\0\0\0\0\0v" "\66\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\0\0\0Ac\66\34\10\0\0\2\1Y" "Y\17\6\0\177A" "Ac\42\0\0\177\177AA\177>\0\0\177\177IIAA\0\0\177\177\11\11\1\1\0\0>\177A" "I{:\0\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0 `@@\177\77\0\0\177\177\34" "\66cA\0\0\177\177@@@@\0\177\177\6\14\6\177\177\0\0\177\177\14\30\177\177\0\0>\177A" "A\177>\0\0\177\177\11\11\17\6\0\0>\177AA\377\276\0\0\177\177\31\71oF\0\0&oI" "I{\62\0\0\1\1\177\177\1\1\0\0\77\177@@\177\77\0\0\37\77``\77\37\0\177\177\60\30" "\60\177\177\0\0cw\34\34wc\0\0\7\17xx\17\7\0\0aqYMGC\0\0\0\177\177" "AA\0\0\0\3\6\14\30\60`\0\0\0AA\177\177\0\0\0\0\14\6\3\6\14\0\200\200\200\200" "\200\200\200\200\0\0\0\1\3\2\0\0\0 tTT|x\0\0\177\177DD|\70\0\0\70|D" "Dl(\0\0\70|DD\177\177\0\0\70|TT\134H\0\0\0\4~\177\5\1\0\0\30\274\244" "\244\374|\0\0\177\177\4\4|x\0\0\0D}}@\0\0\0@\300\200\204\375}\0\0\177\177\20" "\70lD\0\0\0\0A\177\177@\0||\14x\14|x\0\0||\4\4|x\0\0\70|D" "D|\70\0\0\374\374DD|\70\0\0\70|DD\374\374\0\0||\10\4\4\4\0\0H\134T" "Tt$\0\0\0\4\77\177D\0\0\0<|@@||\0\0\34<``<\34\0\34|p<" "p|\34\0\0Dl\70\70lD\0\0\34\274\240\240\374|\0\0Ddt\134LD\0\0\0\10>" "wA\0\0\0\0\0\377\377\0\0\0\0\0Aw>\10\0\0\0\10\14\4\10\20\30\10\0\0\0\0" "\0\0\0"; /* Fontname: -FontForge-Victoria-Bold-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriabold8_n[220] U8X8_FONT_SECTION("u8x8_font_victoriabold8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34>*\10\0\0\0\20\20" "|\20\20\0\0\0\200\340`\0\0\0\0\20\20\20\20\20\20\0\0\0\0\300\300\0\0\0\0\300`\60" "\30\14\6\0\0|\376\202\202\376|\0\0\200\204\376\376\200\200\0\0\304\346\262\222\236\214\0\0D\306\222" "\222\376l\0\0\70<\246\376\376\240\0\0N\316\212\212\372r\0\0|\376\222\222\366d\0\0\2\2\362" "\372\16\6\0\0l\376\222\222\376l\0\0L\336\222\222\376|\0\0\0\0ll\0\0"; /* Fontname: -FontForge-Victoria-Bold-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriabold8_u[517] U8X8_FONT_SECTION("u8x8_font_victoriabold8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0__\0\0\0\0\7\7\0\0\7\7\0\0\42\177\177" "\42\177\177\42\0$.kk:\22\0\0c\63\30\14fc\0\0 v_I\177vP\0\0\0\7" "\7\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\4\25\37\16\37\25\4\0\0\0\10\10" ">\10\10\0\0\0@p\60\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30" "\14\6\3\0\0>\177AA\177>\0\0@B\177\177@@\0\0bsYIOF\0\0\42cI" "I\177\66\0\0\34\36S\177\177P\0\0'gEE}\71\0\0>\177II{\62\0\0\1\1y" "}\7\3\0\0\66\177II\177\66\0\0&oII\177>\0\0\0\0\66\66\0\0\0\0\0\0v" "\66\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\0\0\0Ac\66\34\10\0\0\2\1Y" "Y\17\6\0\177A" "Ac\42\0\0\177\177AA\177>\0\0\177\177IIAA\0\0\177\177\11\11\1\1\0\0>\177A" "I{:\0\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0 `@@\177\77\0\0\177\177\34" "\66cA\0\0\177\177@@@@\0\177\177\6\14\6\177\177\0\0\177\177\14\30\177\177\0\0>\177A" "A\177>\0\0\177\177\11\11\17\6\0\0>\177AA\377\276\0\0\177\177\31\71oF\0\0&oI" "I{\62\0\0\1\1\177\177\1\1\0\0\77\177@@\177\77\0\0\37\77``\77\37\0\177\177\60\30" "\60\177\177\0\0cw\34\34wc\0\0\7\17xx\17\7\0\0aqYMGC\0\0\0\177\177" "AA\0\0\0\3\6\14\30\60`\0\0\0AA\177\177\0\0\0\0\14\6\3\6\14\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FontForge-Victoria-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 96/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriamedium8_r[772] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\7\0\0\0\7\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0\0\42\20\10\4\42\0\0 VIIV P\0\0\0\0\7" "\0\0\0\0\0\0\34\42A\0\0\0\0\0A\42\34\0\0\0\0*\34\177\34*\0\0\0\10\10>" "\10\10\0\0\0\0@\60\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0@ \20" "\10\4\2\0\0>QIE>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22Q\177P\0\0\0'EEE\71\0\0\0AA" "A\42\0\0\0\177AAA>\0\0\0\177IIAA\0\0\0\177\11\11\11\1\0\0\0>AA" "I:\0\0\0\177\10\10\10\177\0\0\0\0A\177A\0\0\0\0 @@@\77\0\0\0\177\10\24" "\42A\0\0\0\177@@@@\0\0\0\177\2\4\2\177\0\0\0\177\4\10\20\177\0\0\0>AA" "A>\0\0\0\177\11\11\11\6\0\0\0>AaA\276\0\0\0\177\11\31)F\0\0\0&II" "I\62\0\0\0\1\1\177\1\1\0\0\0\77@@@\77\0\0\0\37 @ \37\0\0\0\177 \20" " \177\0\0\0c\24\10\24c\0\0\0\7\10p\10\7\0\0\0aQIEC\0\0\0\0\177A" "A\0\0\0\0\2\4\10\20 @\0\0\0\0AA\177\0\0\0\0\4\2\1\2\4\0\200\200\200\200" "\200\200\200\200\0\0\0\1\2\0\0\0\0 TTTx\0\0\0\177DDD\70\0\0\0\70DD" "D(\0\0\0\70DDD\177\0\0\0\70TTTH\0\0\0\0\4~\5\5\0\0\0\30\244\244" "\244|\0\0\0\177\4\4\4x\0\0\0\0D}@\0\0\0\0@\200\200\204}\0\0\0\177\20\20" "(D\0\0\0\0A\177@\0\0\0\0|\4x\4x\0\0\0|\4\4\4x\0\0\0\70DD" "D\70\0\0\0\374DDD\70\0\0\0\70DDD\374\0\0\0|\10\4\4\4\0\0\0HTT" "T$\0\0\0\0\4\77D\0\0\0\0<@@ |\0\0\0\34 @ \34\0\0\0\34`\34" "`\34\0\0\0D(\20(D\0\0\0\34\240\240\240|\0\0\0DdTLD\0\0\0\0\10\66" "A\0\0\0\0\0\0\377\0\0\0\0\0\0A\66\10\0\0\0\10\4\4\10\20\20\10\0\0\0\0\0" "\0\0\0"; /* Fontname: -FontForge-Victoria-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 18/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriamedium8_n[220] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0T\70\376\70T\0\0\0\20\20|" "\20\20\0\0\0\0\200`\0\0\0\0\0\20\20\20\20\20\20\0\0\0\0\300\300\0\0\0\0\200@ " "\20\10\4\0\0|\242\222\212|\0\0\0\200\204\376\200\200\0\0\0\304\242\222\222\214\0\0\0D\202\222" "\222l\0\0\0\70$\242\376\240\0\0\0N\212\212\212r\0\0\0x\224\222\222`\0\0\0\2\2\362" "\12\6\0\0\0l\222\222\222l\0\0\0\14\222\222R<\0\0\0\0\0$\0\0\0"; /* Fontname: -FontForge-Victoria-Medium-R-Normal-Sans-8-80-75-75-P-50-ISO10646-1 Copyright: (null) Glyphs: 64/98 BBX Build Mode: 3 */ const uint8_t u8x8_font_victoriamedium8_u[517] U8X8_FONT_SECTION("u8x8_font_victoriamedium8_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\0_\0\0\0\0\0\7\0\0\0\7\0\0\0\42\177\42" "\42\177\42\0\0$*k*\22\0\0\0\42\20\10\4\42\0\0 VIIV P\0\0\0\0\7" "\0\0\0\0\0\0\34\42A\0\0\0\0\0A\42\34\0\0\0\0*\34\177\34*\0\0\0\10\10>" "\10\10\0\0\0\0@\60\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0@ \20" "\10\4\2\0\0>QIE>\0\0\0@B\177@@\0\0\0bQIIF\0\0\0\42AI" "I\66\0\0\0\34\22Q\177P\0\0\0'EEE\71\0\0\0AA" "A\42\0\0\0\177AAA>\0\0\0\177IIAA\0\0\0\177\11\11\11\1\0\0\0>AA" "I:\0\0\0\177\10\10\10\177\0\0\0\0A\177A\0\0\0\0 @@@\77\0\0\0\177\10\24" "\42A\0\0\0\177@@@@\0\0\0\177\2\4\2\177\0\0\0\177\4\10\20\177\0\0\0>AA" "A>\0\0\0\177\11\11\11\6\0\0\0>AaA\276\0\0\0\177\11\31)F\0\0\0&II" "I\62\0\0\0\1\1\177\1\1\0\0\0\77@@@\77\0\0\0\37 @ \37\0\0\0\177 \20" " \177\0\0\0c\24\10\24c\0\0\0\7\10p\10\7\0\0\0aQIEC\0\0\0\0\177A" "A\0\0\0\0\2\4\10\20 @\0\0\0\0AA\177\0\0\0\0\4\2\1\2\4\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -Adobe-Courier-Bold-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 191/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courB18_2x3_f[10756] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_f") = " \377\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\374\374\370\0\0\0" "\0\0\0\0\0\0\0\0\0\1\277\277\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\0<\374<\0<\374<\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\376\376\200\200\376\376\200" "\200\0\0\0\0\60\61\361\377\77\61\361\377\77\61\61\1\0\0\0\0\0\0\17\17\0\0\17\17\0\0\0" "\0\0\0\0\0\0\340\360\30\30\36\36\60xx\0\0\0\0\0\0\0\341\343\303\206\206\206\206\314\374x" "\0\0\0\0\0\0\1\1\0\1\37\37\1\1\0\0\0\0\0\0\0\0`\360\230\10\10\230\360`\0\0" "\0\0\0\0\0\0\20\20\31\311\355\65\24\26\62\342\300\0\0\0\0\0\0\0\0\0\1\3\2\2\3\1" "\0\0\0\0\0\0\0\300\340\60\60\60p`\0\0\0\0\0\0\0\0\340\371\37\16\34\270\360\360\270\30" "\0\0\0\0\0\0\1\3\3\3\3\3\1\1\3\3\3\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\370\34\14\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\7\37\70\60\0\0\0\0\0\0\0\0\14\34\370\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\60\70\37\7\0\0\0\0\0" "\0\0\0\0\0\0``\300\300\374\374\300\300``\0\0\0\0\0\0\0\30\36\16\3\3\16\36\30\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\0\0\0\0" "\0\0\0\0\0\14\14\14\14\14\377\377\14\14\14\14\14\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340x\36" "\6\0\0\0\0\0\0\0\200\340x\36\7\1\0\0\0\0\0\0\0\0\30\36\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\340\370\30\14\14\14\14\30\370\340\0\0\0\0\0\0\177\377\200\0\0\0\0\200\377\177" "\0\0\0\0\0\0\0\1\1\3\3\3\3\1\1\0\0\0\0\0\0\0\30\30\30\34\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0px\34\14\14\14\14\34\370\360\0\0\0\0\0\0\200\300\340p\70\34\16\7\3\1" "\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\60\70\34\14\14\14\14\234\370\360" "\0\0\0\0\0\300\300\200\0\6\6\6\7\217\375\370\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1\0" "\0\0\0\0\0\0\0\0\300\360\70\34\374\374\0\0\0\0\0\0\0\60<\77\63\60\60\60\377\377\60\60" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\374\374\14\214\214\214\214\14\14" "\0\0\0\0\0\0\300\303\203\3\1\1\1\203\307\377|\0\0\0\0\0\0\1\3\3\3\3\3\3\1\1" "\0\0\0\0\0\0\200\340\360\70\30\34\14\14\14\14\0\0\0\0\0\0\177\377\306\203\3\3\3\207\376\374" "\0\0\0\0\0\0\0\1\1\3\3\3\3\3\1\0\0\0\0\0\0\0\34\34\14\14\14\14\14\314\374<" "\0\0\0\0\0\0\0\0\0\0\200\360~\17\1\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\360\370\30\14\14\14\14\30\370\360\0\0\0\0\0\0\370\375\217\6\6\6\6\217\375\370" "\0\0\0\0\0\0\0\1\3\3\3\3\3\3\1\0\0\0\0\0\0\0\0\340\370\30\14\14\14\14\30\370" "\340\0\0\0\0\0\0\7\17\34\30\30\30\214\306\377\77\0\0\0\0\0\0\3\3\3\3\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300`` \0\0\0\14\14\36\36\63\63aa\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\63\63\63\63\63\63\63\63\63\63\63\63\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 ``\300\300\200\200\0\0\0\0\0\0\0\0\0\0\200\200\300\300aa\63\63\36\36" "\14\14\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\30\30\30\30\70\360\340" "\0\0\0\0\0\0\0\0\0\0\270\274\14\6\7\3\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\340\370\30\14\14\214\230\370\340\0\0\0\0\0\0\0\377\377\0\36\77sa\177\177`" "\0\0\0\0\0\0\1\7\6\14\14\14\14\6\6\0\0\0\0\0\0\0\30\30\230\370xx\340\200\0\0" "\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\30\30\370\370\30\30\30\30\30\70\360\340\0\0\0\0\0\0\377\377\6\6\6\6\6\7\217" "\375\370\0\0\0\3\3\3\3\3\3\3\3\3\3\3\1\0\0\0\0\200\340\360\60\30\30\30\30\30\60\370" "\370\0\0\0\0\77\377\340\200\0\0\0\0\0\0\200\200\0\0\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\30\30\370\370\30\30\30\30\30\30\60\360\340\200\0\0\0\0\377\377\0\0\0\0\0\0\200\300" "\377\77\0\0\3\3\3\3\3\3\3\3\3\3\3\1\0\0\0\0\0\30\30\370\370\30\30\30\230\230\30\370" "\370\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\30\30\370\370\30\30\30\230\230\30\30\370\370\0\0\0\0\0\377\377\6\6\6\37\37\0\0" "\0\0\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\340\360\60\30\30\30\30\30\30\60" "\370\370\0\0\0\77\377\340\200\0\0\0\30\30\30\230\370\370\0\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\30\30\370\370\30\30\0\0\30\30\370\370\30\30\0\0\0\0\377\377\6\6\6\6\6\6\377\377" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\30\30\30\30\370\370\30\30\30\30" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\30\30\30\30\30\370\370\30\30\30\0\0\0\360\360\200\0\0\0\0\200\377\377\0" "\0\0\0\0\0\0\1\3\3\3\3\3\3\1\0\0\0\0\0\0\30\30\370\370\30\30\200\300\370x\70\30" "\30\0\0\0\0\0\377\377\16\7\17\35\70\360\340\200\0\0\0\0\3\3\3\3\3\3\0\0\0\0\3\3" "\3\3\0\0\0\30\30\30\370\370\30\30\30\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\340" "\340\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\30\370\370x\340\200\0\0\200\340x\370" "\370\30\0\0\0\377\377\0\3\7\34\34\7\3\0\377\377\0\0\0\3\3\3\3\3\0\0\0\0\3\3\3" "\3\3\0\0\0\30\370\370x\340\200\0\0\30\30\370\370\30\0\0\0\0\377\377\0\1\7\36x\340\200\377" "\377\0\0\0\0\3\3\3\3\3\0\0\0\1\3\3\3\0\0\0\0\200\340\360\60\30\30\30\30\30\60\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\30\30\370\370\30\30\30\30\30\30\60\360\340\0\0\0\0\0\377\377\30\30\30\30\30\30\14" "\17\7\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\340\360\60\30\30\30\30\30\60\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\31\31\37\17\17\33\33\31\31" "\14\14\0\0\30\30\370\370\30\30\30\30\30\60\360\340\0\0\0\0\0\0\377\377\14\14\14\34<\366\347\203" "\0\0\0\0\3\3\3\3\3\3\0\0\0\0\3\3\3\3\0\0\0\0\340\360\70\30\30\30\30\30\60\370" "\370\0\0\0\0\340\341\203\7\6\6\16\14\14\234\370\360\0\0\0\0\3\3\1\3\3\3\3\3\3\3\1" "\0\0\0\0\0\370\370\30\30\30\370\370\30\30\30\370\370\0\0\0\0\1\1\0\0\0\377\377\0\0\0\1" "\1\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\30\370\370\30\30\0\0\0\30\30\370" "\370\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1" "\0\0\0\0\30x\370\230\30\0\0\0\0\30\230\370x\30\0\0\0\0\3\37|\340\200\200\340|\37\3" "\0\0\0\0\0\0\0\0\0\3\3\3\3\0\0\0\0\0\0\0\30\370\370\30\30\0\300\300\0\30\30\370" "\370\30\0\0\0\37\377\340\374\77\7\7\77\374\340\377\37\0\0\0\0\0\3\3\3\0\0\0\0\3\3\3" "\0\0\0\0\30\70x\370\330\230\0\0\230\330\370x\70\30\0\0\0\200\300\340q;\17\17;q\340\300" "\200\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\30\70x\370\330\30\0\0\30\330\370x" "\70\30\0\0\0\0\0\0\3\7\376\376\7\3\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0" "\0\0\0\0\0\0\370\370\30\30\30\30\230\330\370x\70\0\0\0\0\0\200\300\340x<\16\7\3\0\340" "\340\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\374\374\14\14\14\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\60\60\60\0" "\0\0\0\0\0\0\6\36x\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\36x\340\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\36\30\0\0\0\0\0\0\14\14\14\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\60\60\60\77\77\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360<<\360\300\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\60\60\60" "\60\60\60\0\0\0\0\0\10\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0" "\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3" "\3\0\0\0\0\14\14\374\374\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\307\203\1\1\1\203\307" "\377|\0\0\0\3\3\3\3\1\3\3\3\3\3\1\1\0\0\0\0\0\0\0\200\200\200\200\200\200\0\200" "\200\0\0\0\0|\377\307\203\1\1\1\1\3\207\217\217\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\0\0\200\200\200\200\214\14\374\374\0\0\0\0\0|\377\307\203\1\1\1\203\307\377\377" "\0\0\0\0\0\0\1\1\3\3\3\3\3\1\3\3\3\3\0\0\0\0\0\0\200\200\200\200\200\200\0\0" "\0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\200\200\200\360\370\234\214\214\214\214\14\0\0\0\0\0\1\1\1\377\377\1\1\1\1\1" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\200\200\0\0\0|\377\307\203\1\1\1\203\307\377\377\1\1\0\0\0\0\1acccccq\77\37" "\0\0\0\0\14\14\374\374\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\7\3\1\1\1\3\377\376" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\0\200\200\234\234\234\0\0\0\0" "\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\200\200\200\200\234\234\234\200\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\0\0" "\0\0\0\0\0\0`````p\77\37\0\0\0\0\0\0\0\14\14\374\374\0\0\0\200\200\200\200" "\0\0\0\0\0\0\0\377\377\30<~\347\303\201\1\0\0\0\0\0\3\3\3\3\0\0\0\3\3\3\3" "\3\3\0\0\0\0\0\14\14\14\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\200\200\200\0\200\200\200\200\0\200\200\200" "\200\0\0\0\1\1\377\377\3\1\1\377\377\3\1\1\377\377\0\0\3\3\3\3\3\0\0\3\3\3\3\0" "\3\3\3\3\200\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\1\1\377\377\6\3\1\1\1\3\377\376" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\0\0\200\200\200\200\200\200\0\0" "\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1" "\0\0\0\0\200\200\200\200\0\200\200\200\200\200\0\0\0\0\0\0\1\1\377\377\307\203\1\1\1\203\307\377" "|\0\0\0``\177\177acc\3\3\3\1\1\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\200\200\0\0\0|\377\307\203\1\1\1\203\307\377\377\1\1\0\0\0\0\1\1\3\3\3cca\177\177" "``\0\0\0\0\200\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\1\1\377\377\7\3\1\1\1\3" "\3\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\0\0\0\0\0\0\306\317\217\31\31\71\61\63\347\347\300\0\0\0\0\0\3\3\1\3\3\3\3\3\3\1" "\0\0\0\0\0\200\200\370\370\200\200\200\200\200\200\0\0\0\0\0\0\1\1\377\377\201\1\1\1\201\201\200" "\0\0\0\0\0\0\0\0\1\3\3\3\3\3\1\1\0\0\0\0\200\200\200\200\0\0\0\0\200\200\200\200" "\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3" "\3\3\0\0\200\200\200\200\200\200\0\0\200\200\200\200\200\200\0\0\1\1\7\37y\341\200\200\341y\37\7" "\1\1\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\200\200\200" "\200\200\0\0\1\7\177\371\301\360>>\360\301\371\177\7\1\0\0\0\0\0\3\3\0\0\0\0\3\3\0" "\0\0\0\0\0\200\200\200\200\200\0\0\200\200\200\200\200\0\0\0\0\1\1\203\307m\70\70m\307\203\1" "\1\0\0\0\0\3\3\3\3\3\0\0\3\3\3\3\3\0\0\0\0\200\200\200\200\200\0\0\200\200\200\200" "\200\0\0\0\0\1\7\37}\361\200\300\361}\37\7\1\0\0\0\0```p}\177g\1\0\0\0" "\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\207\307\341q\71\35\17\7\303\301" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\360\370\14\4\4\0" "\0\0\0\0\0\0\0\0\10\34\377\367\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\60 \0" "\0\0\0\0\0\0\0\0\0\0\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\17\17\0\0\0\0\0\0\0\0\0\0\0\4\4\14\370\360\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\367\377\34\10\0\0\0\0\0\0\0\0\0 \60\37\17\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\16\6\6\16\34\30\30\34\16" "\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\373\373\0\0\0\0\0\0\0\0\0\0\0\0\0\77\177\177\77\0\0\0\0" "\0\0\0\0\0\0\200\300\340`||\300\340\340\0\0\0\0\0\0\0\37\77p`\340\340`q\61\0" "\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\0\0\0\0\0\0\0\340\360\70\30\30\30\70\60\0" "\0\0\0\0\0\14\214\317\377|\14\14\14\0\0\200\200\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\1\0\0\0\0\0`\340\300\300\300\300\300\300\340`\0\0\0\0\0\0\337\377q````q\377\337" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\70\370\370\230\0\0\230\370\370\70" "\30\0\0\0\0\0\0()/\376\376/)(\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\363\363\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\17\17\0\0\0\0\0\0\0\0\0\0\200\360\370\334\214\214\14\14<<" "\0\0\0\0\0\7\17\14\34\31\71\63s\347\346~<\0\0\0\0\0\17\17\14\14\14\14\16\7\3\0" "\0\0\0\0\0\0\0\70\70\0\0\0\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\60\260\330\330\330\330\260\60\340" "\300\0\0\0\17\77p\317\337\271\260\260\271\331\300p\77\17\0\0\0\0\0\0\0\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\200\320XHH\370\360\0\0\0\0\0\0\0\0\0\63\67\64\64\66\63\67\66\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\20\70|\356\307\203\21\70|\356\307\203\1\0\0\0\0\0\0\0\1\1\1\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\77" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\60\360\330\330\330\330\260\60\340\300\0\0\0\17\77p\300\377\277\204\214\277\363\300p" "\77\17\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\0\30\30\30\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0p\370\214\4\4\214\370p\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\0\0\0\0" "\0\0\0\0\0\3\3\3\3\3\77\77\3\3\3\3\3\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\0\0\30\34\204\304d<\30\0\0\0\0\0\0\0\0\0\6\7\5\4\4\6\6\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34DDd\374\230\0" "\0\0\0\0\0\0\0\0\3\7\4\4\4\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \60\70\34\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\200\200\200\200" "\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377\0\0\0\0\0\0\177\177\3\3\3\3\3\1\3\3" "\3\3\0\0\0\360\370\370\14\14\374\374\14\374\374\14\14\0\0\0\0\1\3\3\6\6\377\377\0\377\377\0" "\0\0\0\0\0\0\0\14\14\14\17\17\0\17\17\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 hn~\70\0\0\0\0\0\0\0\0\0\0\10\10\10\374\374\0\0\0\0" "\0\0\0\0\0\0\0\4\4\4\7\7\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\30\30\30\30\360\340\0\0\0\0\0\0\0\0\61\63\66\66\66\66\63\61\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\203\307\356|\70\21\203\307\356|\70\20\0\0\0\1\1\1\0\0\0\1\1\1\0\0" "\0\0\0\0\10\10\10\374\374\0\0\0\0\0\0\200\300`\60\30\4\4\4\207\307d\64\34\314\246\223\211" "\374\376\200\0\0\0\3\1\0\0\0\0\0\0\0\2\3\3\2\0\10\10\10\374\374\0\0\0\0\0\0\200" "\300`\60\30\4\4\4\207\307d\64\34\14\6\217\307b\62\36\14\0\0\3\1\0\0\0\0\0\3\3\2" "\2\2\3\3\30\34DDd\374\230\0\0\0\200\300`\60\30\0\3\7\204\304d\67\33\314\246\223\211\374" "\376\200\0\0\0\3\1\0\0\0\0\0\0\0\2\3\3\2\0\0\0\0\0\0\0\0\200\200\0\0\0\0" "\0\0\0\0\0\0\200\300\300`{;\0\0\0\0\0\0\0\0\0\0\17\37\70\60\60\60\60>\36\0" "\0\0\0\0\0\0\30\30\231\373{z\340\200\0\0\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360" "\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\30\30\230\372{{\341\200\0\0" "\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\2\33\33\231\370xy\343\203\2\0\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360" "\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\32\33\231\371{{\343\201\0\0" "\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\0\30\33\233\370xx\343\203\0\0\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360" "\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\30\30\233\376|~\343\200\0\0" "\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\0\0\0\30\330\370\370\370\30\30\30\30xx\0\0\300\360<\37\31\30\377\377\6\6\17" "\17\300\300\0\3\3\3\3\0\3\3\3\3\3\3\3\3\3\3\0\0\200\340\360\60\30\30\30\30\30\60\370" "\370\0\0\0\0\77\377\340\200\0\0\0\0\0\0\200\300\0\0\0\0\0\0\1!ko\177;\3\3\1" "\0\0\0\0\0\30\30\370\370\31\33\33\232\230\30\370\370\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0" "\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\30\30\370\370\30\32\33\233\231\30\370" "\370\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\30\30\372\373\33\31\30\230\231\33\373\372\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0" "\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\30\30\370\373\33\30\30\230\233\33\370" "\370\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\30\30\30\31\373\373\32\30\30\30\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\30\30\30\32\373\373\31\30\30\30" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\32\33\33\31\370\370\31\33\33\32\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\30\30\33\33\370\370\33\33\30\30" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\30\30\370\370\30\30\30\30\30\30\60\360\340\200\0\0\6\6\377\377\6\6\6\0\0\0\200\300" "\377\77\0\0\3\3\3\3\3\3\3\3\3\3\3\1\0\0\0\0\0\30\370\372{\341\201\3\3\33\31\370" "\370\30\0\0\0\0\377\377\0\1\7\36x\340\200\377\377\0\0\0\0\3\3\3\3\3\0\0\0\1\3\3" "\3\0\0\0\0\200\340\360\60\30\31\33\33\32\60\360\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340" "\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1\0\0\0\0\0\200\340\360\60\30\32\33\33\31\60\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\200\340\362\63\33\31\30\30\31\63\363\342\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340" "\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1\0\0\0\0\0\200\340\362\63\31\31\33\33\33\61\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\200\340\360\63\33\30\30\30\33\63\360\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340" "\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1\0\0\0\0\0@\340\300\200\0\0\0\0\200\300\340" "@\0\0\0\0\200\300\341s\77\36\36\77s\341\300\200\0\0\0\0\0\1\0\0\0\0\0\0\0\0\1" "\0\0\0\0\0\200\340\360\60\30\30\30\230\330x\374\346\202\0\0\0\77\377\340\300p\34\6\3\0\200\340" "\377\77\0\0\0\4\6\3\1\3\3\3\3\3\1\1\0\0\0\0\0\30\370\370\30\31\3\3\2\30\30\370" "\370\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1" "\0\0\0\0\0\30\370\370\30\30\2\3\3\31\30\370\370\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377" "\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1\0\0\0\0\0\30\370\372\33\33\1\0\0\31\33\373" "\372\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1" "\0\0\0\0\0\30\370\370\33\33\0\0\0\33\33\370\370\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377" "\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1\0\0\0\0\30\70x\370\330\32\3\3\31\330\370x" "\70\30\0\0\0\0\0\0\3\7\376\376\7\3\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0" "\0\0\0\0\0\30\30\370\370\330\330\300\300\300\300\200\200\0\0\0\0\0\0\377\377``````\61" "\77\37\0\0\0\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\360\370\34\14\14\234\370\360\0" "\0\0\0\0\0\0\0\377\377\0\3\203\203\7\216\374\370\0\0\0\0\3\3\3\3\3\0\1\3\3\3\1" "\0\0\0\0\0\0\4\214\234\270\260\240\200\0\0\0\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0" "\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3\3\0\0\0\0\0\0\200\200\240\260\270\234\14\4\0" "\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3" "\3\0\0\0\0\0 \260\270\234\214\234\270\60 \0\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0" "\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3\3\0\0\0\0\0 \260\230\230\270\260\260\30\10\0" "\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3" "\3\0\0\0\0\0\0\270\270\200\200\200\270\70\0\0\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0" "\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3\3\0\0\0\0\0\0\200\270\354\304\354\270\0\0\0" "\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3" "\3\0\0\0\0\0\200\200\200\200\0\0\200\200\200\200\0\0\0\0\340\363\63\31\31\233\377\377\263\61\61\63" "\277\276\0\0\1\3\3\3\3\3\1\1\3\3\3\3\1\1\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\0\0\0\0\0|\377\307\203\1\1\1\1\3\217\217\0\0\0\0\0\0\1\1#ko\177;\3\3\1" "\0\0\0\0\0\0\0\4\214\234\270\260\240\200\0\0\0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277" "\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1\1\0\0\0\0\0\0\0\200\240\260\270\234\214\4\0" "\0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\0 \260\270\234\214\234\270\60 \0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277" "\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1\1\0\0\0\0\0\0\70\270\200\200\200\270\270\0\0" "\0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\4\214\234\270\260\240\0\0\0\0\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\200\200\240\260\270\34\14\4\0" "\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0 \260\270\234\214\234\70\60 \0\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\270\270\200\200\200\70\70\0\0" "\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\6ffv\274\274\230\270\370\354\314\214\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377" "~\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1\0\0\0\0\200\200\240\260\30\30\270\260\260\230\10\0" "\0\0\0\0\1\1\377\377\6\3\1\1\1\3\377\376\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\0\0\4\214\234\270\260\240\200\0\0\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377" "|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1\0\0\0\0\0\0\0\0\200\240\260\270\234\214\4\0" "\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1" "\0\0\0\0\0\0 \60\270\234\214\234\270\260 \0\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377" "|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1\0\0\0\0\0\0 \60\230\230\270\260\260\230\10\0" "\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1" "\0\0\0\0\0\0\0\70\270\200\200\200\270\270\0\0\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377" "|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0" "\0\0\0\0\14\14\14\14\14\314\314\314\14\14\14\14\14\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\200\300@\0\0\0|\377\207\303a\61\31\15\207\303\377" "|\0\0\0\10\14\7\3\3\3\3\3\3\3\1\1\0\0\0\0\200\200\204\214\34\70\60 \200\200\200\200" "\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3" "\3\3\0\0\200\200\200\200 \60\70\34\214\204\200\200\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377" "\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3\3\3\0\0\200\200\240\260\70\34\14\34\270\260\240\200" "\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3" "\3\3\0\0\200\200\200\270\70\0\0\0\270\270\200\200\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377" "\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3\3\3\0\0\0\200\200\200\200\200 \60\270\234\214\204" "\200\0\0\0\0\1\7\37}\361\200\300\361}\37\7\1\0\0\0\0```p}\177g\1\0\0\0" "\0\0\0\0\0\14\14\374\374\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\307\203\1\1\1\203\307" "\377|\0\0\0``\177\177acc\3\3\3\1\1\0\0\0\0\200\200\270\270\200\0\0\270\270\200\200" "\200\0\0\0\0\1\7\37}\361\200\300\361}\37\7\1\0\0\0\0```p}\177g\1\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Bold-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 95/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courB18_2x3_r[4564] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_r") = " ~\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\374\374\370\0\0\0" "\0\0\0\0\0\0\0\0\0\1\277\277\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\0<\374<\0<\374<\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\376\376\200\200\376\376\200" "\200\0\0\0\0\60\61\361\377\77\61\361\377\77\61\61\1\0\0\0\0\0\0\17\17\0\0\17\17\0\0\0" "\0\0\0\0\0\0\340\360\30\30\36\36\60xx\0\0\0\0\0\0\0\341\343\303\206\206\206\206\314\374x" "\0\0\0\0\0\0\1\1\0\1\37\37\1\1\0\0\0\0\0\0\0\0`\360\230\10\10\230\360`\0\0" "\0\0\0\0\0\0\20\20\31\311\355\65\24\26\62\342\300\0\0\0\0\0\0\0\0\0\1\3\2\2\3\1" "\0\0\0\0\0\0\0\300\340\60\60\60p`\0\0\0\0\0\0\0\0\340\371\37\16\34\270\360\360\270\30" "\0\0\0\0\0\0\1\3\3\3\3\3\1\1\3\3\3\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\370\34\14\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\7\37\70\60\0\0\0\0\0\0\0\0\14\34\370\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\60\70\37\7\0\0\0\0\0" "\0\0\0\0\0\0``\300\300\374\374\300\300``\0\0\0\0\0\0\0\30\36\16\3\3\16\36\30\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\0\0\0\0" "\0\0\0\0\0\14\14\14\14\14\377\377\14\14\14\14\14\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340x\36" "\6\0\0\0\0\0\0\0\200\340x\36\7\1\0\0\0\0\0\0\0\0\30\36\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\340\370\30\14\14\14\14\30\370\340\0\0\0\0\0\0\177\377\200\0\0\0\0\200\377\177" "\0\0\0\0\0\0\0\1\1\3\3\3\3\1\1\0\0\0\0\0\0\0\30\30\30\34\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0px\34\14\14\14\14\34\370\360\0\0\0\0\0\0\200\300\340p\70\34\16\7\3\1" "\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\60\70\34\14\14\14\14\234\370\360" "\0\0\0\0\0\300\300\200\0\6\6\6\7\217\375\370\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1\0" "\0\0\0\0\0\0\0\0\300\360\70\34\374\374\0\0\0\0\0\0\0\60<\77\63\60\60\60\377\377\60\60" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\374\374\14\214\214\214\214\14\14" "\0\0\0\0\0\0\300\303\203\3\1\1\1\203\307\377|\0\0\0\0\0\0\1\3\3\3\3\3\3\1\1" "\0\0\0\0\0\0\200\340\360\70\30\34\14\14\14\14\0\0\0\0\0\0\177\377\306\203\3\3\3\207\376\374" "\0\0\0\0\0\0\0\1\1\3\3\3\3\3\1\0\0\0\0\0\0\0\34\34\14\14\14\14\14\314\374<" "\0\0\0\0\0\0\0\0\0\0\200\360~\17\1\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\360\370\30\14\14\14\14\30\370\360\0\0\0\0\0\0\370\375\217\6\6\6\6\217\375\370" "\0\0\0\0\0\0\0\1\3\3\3\3\3\3\1\0\0\0\0\0\0\0\0\340\370\30\14\14\14\14\30\370" "\340\0\0\0\0\0\0\7\17\34\30\30\30\214\306\377\77\0\0\0\0\0\0\3\3\3\3\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300`` \0\0\0\14\14\36\36\63\63aa\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\63\63\63\63\63\63\63\63\63\63\63\63\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 ``\300\300\200\200\0\0\0\0\0\0\0\0\0\0\200\200\300\300aa\63\63\36\36" "\14\14\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\30\30\30\30\70\360\340" "\0\0\0\0\0\0\0\0\0\0\270\274\14\6\7\3\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\340\370\30\14\14\214\230\370\340\0\0\0\0\0\0\0\377\377\0\36\77sa\177\177`" "\0\0\0\0\0\0\1\7\6\14\14\14\14\6\6\0\0\0\0\0\0\0\30\30\230\370xx\340\200\0\0" "\0\0\0\0\0\300\360~\77\63\60\60\63\77~\360\300\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3" "\3\3\0\0\0\30\30\370\370\30\30\30\30\30\70\360\340\0\0\0\0\0\0\377\377\6\6\6\6\6\7\217" "\375\370\0\0\0\3\3\3\3\3\3\3\3\3\3\3\1\0\0\0\0\200\340\360\60\30\30\30\30\30\60\370" "\370\0\0\0\0\77\377\340\200\0\0\0\0\0\0\200\200\0\0\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\30\30\370\370\30\30\30\30\30\30\60\360\340\200\0\0\0\0\377\377\0\0\0\0\0\0\200\300" "\377\77\0\0\3\3\3\3\3\3\3\3\3\3\3\1\0\0\0\0\0\30\30\370\370\30\30\30\230\230\30\370" "\370\0\0\0\0\0\0\377\377\6\6\6\37\37\0\0\340\340\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\30\30\370\370\30\30\30\230\230\30\30\370\370\0\0\0\0\0\377\377\6\6\6\37\37\0\0" "\0\0\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\340\360\60\30\30\30\30\30\30\60" "\370\370\0\0\0\77\377\340\200\0\0\0\30\30\30\230\370\370\0\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\30\30\370\370\30\30\0\0\30\30\370\370\30\30\0\0\0\0\377\377\6\6\6\6\6\6\377\377" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\30\30\30\30\370\370\30\30\30\30" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\30\30\30\30\30\370\370\30\30\30\0\0\0\360\360\200\0\0\0\0\200\377\377\0" "\0\0\0\0\0\0\1\3\3\3\3\3\3\1\0\0\0\0\0\0\30\30\370\370\30\30\200\300\370x\70\30" "\30\0\0\0\0\0\377\377\16\7\17\35\70\360\340\200\0\0\0\0\3\3\3\3\3\3\0\0\0\0\3\3" "\3\3\0\0\0\30\30\30\370\370\30\30\30\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\340" "\340\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\30\370\370x\340\200\0\0\200\340x\370" "\370\30\0\0\0\377\377\0\3\7\34\34\7\3\0\377\377\0\0\0\3\3\3\3\3\0\0\0\0\3\3\3" "\3\3\0\0\0\30\370\370x\340\200\0\0\30\30\370\370\30\0\0\0\0\377\377\0\1\7\36x\340\200\377" "\377\0\0\0\0\3\3\3\3\3\0\0\0\1\3\3\3\0\0\0\0\200\340\360\60\30\30\30\30\30\60\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\30\30\370\370\30\30\30\30\30\30\60\360\340\0\0\0\0\0\377\377\30\30\30\30\30\30\14" "\17\7\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\340\360\60\30\30\30\30\30\60\360" "\340\200\0\0\0\77\377\340\200\0\0\0\0\0\200\340\377\77\0\0\0\0\0\31\31\37\17\17\33\33\31\31" "\14\14\0\0\30\30\370\370\30\30\30\30\30\60\360\340\0\0\0\0\0\0\377\377\14\14\14\34<\366\347\203" "\0\0\0\0\3\3\3\3\3\3\0\0\0\0\3\3\3\3\0\0\0\0\340\360\70\30\30\30\30\30\60\370" "\370\0\0\0\0\340\341\203\7\6\6\16\14\14\234\370\360\0\0\0\0\3\3\1\3\3\3\3\3\3\3\1" "\0\0\0\0\0\370\370\30\30\30\370\370\30\30\30\370\370\0\0\0\0\1\1\0\0\0\377\377\0\0\0\1" "\1\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0\0\0\0\0\0\30\370\370\30\30\0\0\0\30\30\370" "\370\30\0\0\0\0\177\377\200\0\0\0\0\0\200\377\177\0\0\0\0\0\0\1\3\3\3\3\3\3\3\1" "\0\0\0\0\30x\370\230\30\0\0\0\0\30\230\370x\30\0\0\0\0\3\37|\340\200\200\340|\37\3" "\0\0\0\0\0\0\0\0\0\3\3\3\3\0\0\0\0\0\0\0\30\370\370\30\30\0\300\300\0\30\30\370" "\370\30\0\0\0\37\377\340\374\77\7\7\77\374\340\377\37\0\0\0\0\0\3\3\3\0\0\0\0\3\3\3" "\0\0\0\0\30\70x\370\330\230\0\0\230\330\370x\70\30\0\0\0\200\300\340q;\17\17;q\340\300" "\200\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\30\70x\370\330\30\0\0\30\330\370x" "\70\30\0\0\0\0\0\0\3\7\376\376\7\3\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\0" "\0\0\0\0\0\0\370\370\30\30\30\30\230\330\370x\70\0\0\0\0\0\200\300\340x<\16\7\3\0\340" "\340\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\374\374\14\14\14\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\60\60\60\0" "\0\0\0\0\0\0\6\36x\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\36x\340\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\36\30\0\0\0\0\0\0\14\14\14\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\60\60\60\77\77\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360<<\360\300\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\60\60\60" "\60\60\60\0\0\0\0\0\10\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0" "\0\0\0\0\0\340\363\63\31\31\31\31\233\377\376\0\0\0\0\0\0\1\3\3\3\3\3\3\1\3\3\3" "\3\0\0\0\0\14\14\374\374\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\307\203\1\1\1\203\307" "\377|\0\0\0\3\3\3\3\1\3\3\3\3\3\1\1\0\0\0\0\0\0\0\200\200\200\200\200\200\0\200" "\200\0\0\0\0|\377\307\203\1\1\1\1\3\207\217\217\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\0\0\200\200\200\200\214\14\374\374\0\0\0\0\0|\377\307\203\1\1\1\203\307\377\377" "\0\0\0\0\0\0\1\1\3\3\3\3\3\1\3\3\3\3\0\0\0\0\0\0\200\200\200\200\200\200\0\0" "\0\0\0\0\0|\377\367\263\61\61\61\61\63\267\277\274\0\0\0\0\0\1\1\3\3\3\3\3\3\3\1" "\1\0\0\0\0\0\200\200\200\360\370\234\214\214\214\214\14\0\0\0\0\0\1\1\1\377\377\1\1\1\1\1" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\200\200\0\0\0|\377\307\203\1\1\1\203\307\377\377\1\1\0\0\0\0\1acccccq\77\37" "\0\0\0\0\14\14\374\374\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\7\3\1\1\1\3\377\376" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\0\200\200\234\234\234\0\0\0\0" "\0\0\0\0\0\0\0\1\1\1\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\200\200\200\200\234\234\234\200\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\0\0" "\0\0\0\0\0\0`````p\77\37\0\0\0\0\0\0\0\14\14\374\374\0\0\0\200\200\200\200" "\0\0\0\0\0\0\0\377\377\30<~\347\303\201\1\0\0\0\0\0\3\3\3\3\0\0\0\3\3\3\3" "\3\3\0\0\0\0\0\14\14\14\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\200\200\200\0\200\200\200\200\0\200\200\200" "\200\0\0\0\1\1\377\377\3\1\1\377\377\3\1\1\377\377\0\0\3\3\3\3\3\0\0\3\3\3\3\0" "\3\3\3\3\200\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\1\1\377\377\6\3\1\1\1\3\377\376" "\0\0\0\0\3\3\3\3\3\3\0\0\3\3\3\3\3\3\0\0\0\0\0\0\200\200\200\200\200\200\0\0" "\0\0\0\0\0|\377\307\203\1\1\1\1\203\307\377|\0\0\0\0\0\1\1\3\3\3\3\3\3\1\1" "\0\0\0\0\200\200\200\200\0\200\200\200\200\200\0\0\0\0\0\0\1\1\377\377\307\203\1\1\1\203\307\377" "|\0\0\0``\177\177acc\3\3\3\1\1\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\200\200\0\0\0|\377\307\203\1\1\1\203\307\377\377\1\1\0\0\0\0\1\1\3\3\3cca\177\177" "``\0\0\0\0\200\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\1\1\377\377\7\3\1\1\1\3" "\3\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200\200" "\0\0\0\0\0\0\306\317\217\31\31\71\61\63\347\347\300\0\0\0\0\0\3\3\1\3\3\3\3\3\3\1" "\0\0\0\0\0\200\200\370\370\200\200\200\200\200\200\0\0\0\0\0\0\1\1\377\377\201\1\1\1\201\201\200" "\0\0\0\0\0\0\0\0\1\3\3\3\3\3\1\1\0\0\0\0\200\200\200\200\0\0\0\0\200\200\200\200" "\0\0\0\0\1\1\377\377\200\0\0\0\1\201\377\377\0\0\0\0\0\0\0\1\3\3\3\3\3\1\3\3" "\3\3\0\0\200\200\200\200\200\200\0\0\200\200\200\200\200\200\0\0\1\1\7\37y\341\200\200\341y\37\7" "\1\1\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\200\200\200" "\200\200\0\0\1\7\177\371\301\360>>\360\301\371\177\7\1\0\0\0\0\0\3\3\0\0\0\0\3\3\0" "\0\0\0\0\0\200\200\200\200\200\0\0\200\200\200\200\200\0\0\0\0\1\1\203\307m\70\70m\307\203\1" "\1\0\0\0\0\3\3\3\3\3\0\0\3\3\3\3\3\0\0\0\0\200\200\200\200\200\0\0\200\200\200\200" "\200\0\0\0\0\1\7\37}\361\200\300\361}\37\7\1\0\0\0\0```p}\177g\1\0\0\0" "\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\207\307\341q\71\35\17\7\303\301" "\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\360\370\14\4\4\0" "\0\0\0\0\0\0\0\0\10\34\377\367\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\60 \0" "\0\0\0\0\0\0\0\0\0\0\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\17\17\0\0\0\0\0\0\0\0\0\0\0\4\4\14\370\360\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\367\377\34\10\0\0\0\0\0\0\0\0\0 \60\37\17\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\16\6\6\16\34\30\30\34\16" "\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -Adobe-Courier-Bold-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 18/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courB18_2x3_n[1300] U8X8_FONT_SECTION("u8x8_font_courB18_2x3_n") = " :\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\200\0\0\360\360\0\0\200\200\0\0\0\0\0\0\1a{;\17\17;{a\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0" "\0\0\0\0\0\60\60\60\60\60\377\377\60\60\60\60\60\0\0\0\0\0\0\0\0\0\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0`\70\36\16\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340x" "\30\0\0\0\0\0\0\0\0\200\340x\36\7\1\0\0\0\0\0\0\0`x\36\7\1\0\0\0\0\0" "\0\0\0\0\0\0\200\340`\60\60\60\60`\340\200\0\0\0\0\0\0\377\377\0\0\0\0\0\0\377\377" "\0\0\0\0\0\0\1\7\6\14\14\14\14\6\7\1\0\0\0\0\0\0```p\360\360\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\14\14\14\14\17\17\14\14\14\14" "\0\0\0\0\0\0\300\340p\60\60\60\60p\340\300\0\0\0\0\0\0\1\1\200\300\340p\70\34\17\7" "\0\0\0\0\0\14\16\17\17\15\14\14\14\14\14\14\0\0\0\0\0\0\300\340p\60\60\60\60p\340\300" "\0\0\0\0\0\0\0\0\0\30\30\30\34>\367\343\0\0\0\0\0\3\7\16\14\14\14\14\14\16\7\3" "\0\0\0\0\0\0\0\0\0\300\340p\360\360\0\0\0\0\0\0\0\300\360\374\317\303\300\300\377\377\300\300" "\0\0\0\0\0\0\0\0\0\14\14\14\17\17\14\14\0\0\0\0\0\0\0\360\360\60\60\60\60\60\60\60" "\0\0\0\0\0\0\0\17\17\14\6\6\6\16\34\374\360\0\0\0\0\0\3\7\16\14\14\14\14\16\7\7" "\1\0\0\0\0\0\0\200\300\340`p\60\60\60\60\0\0\0\0\0\0\376\377\33\14\14\14\14\34\370\360" "\0\0\0\0\0\0\1\7\7\16\14\14\14\16\7\3\0\0\0\0\0\0pp\60\60\60\60\60\60\360\360" "\0\0\0\0\0\0\0\0\0\0\0\300\370\77\7\0\0\0\0\0\0\0\0\0\0\0\16\17\1\0\0\0" "\0\0\0\0\0\0\300\340`\60\60\60\60`\340\300\0\0\0\0\0\0\343\367<\30\30\30\30<\367\343" "\0\0\0\0\0\0\3\7\16\14\14\14\14\16\7\3\0\0\0\0\0\0\0\200\340`\60\60\60\60`\340" "\200\0\0\0\0\0\0\37\77p```\60\30\377\377\0\0\0\0\0\0\14\14\14\14\14\14\6\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0" "\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 191/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR18_2x3_f[10756] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_f") = " \377\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\0<\374<\0\0<\374<\0\0\0\0\0\0\0\0\0\1\0\0\0\0\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\0\0\374\0\0" "\0\0\0\0\0\0\20\21\21\377\21\21\377\21\21\1\0\0\0\0\0\0\0\0\0\7\0\0\7\0\0\0" "\0\0\0\0\0\0\0\0\300 \20\36\20\20 p\0\0\0\0\0\0\0\300\201\2\4\4\4\4\210p" "\0\0\0\0\0\0\0\1\0\1\1\37\1\1\0\0\0\0\0\0\0\0p\210\4\4\4\210p\0\0\0" "\0\0\0\0\0\10\10\10\5\5\345\22\12\12\11\21\341\0\0\0\0\0\0\0\0\0\0\1\2\2\2\1" "\0\0\0\0\0\0\0\0\300 `@ \0\0\0\0\0\0\0\0\360\10\5\6\30 \340\230\10\0" "\0\0\0\0\0\0\0\1\2\2\2\1\0\1\2\2\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\30\4\0\0\0\0\0\0\0\0\0\0\0\0\177\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\14\20\0\0\0\0\0\0\0\0\4\30\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\177\0\0\0\0\0\0\0\0\0\0\0\0\20\14\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0 `@\300\374\300@` \0\0\0\0\0\0\0\4\6\3\1\0\1\3\6\4" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\0\0\0\0" "\0\0\0\0\0\0\4\4\4\4\4\377\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\4\4\4\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\60\14" "\0\0\0\0\0\0\0\0\0\300\60\14\3\0\0\0\0\0\0\0\0\0\0\14\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\60\20\10\10\10\20\60\300\0\0\0\0\0\0\0\177\200\0\0\0\0\0\200\177" "\0\0\0\0\0\0\0\0\1\1\2\2\2\1\1\0\0\0\0\0\0\0\0\20\20\20\10\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0`\20\20\10\10\10\10\20\340\0\0\0\0\0\0\0\0\200@ \20\10\4\2\1\0" "\0\0\0\0\0\0\3\2\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\20\10\10\10\10\10\20\360\0" "\0\0\0\0\0\0\200\0\0\2\2\2\2\5\4\370\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1\0" "\0\0\0\0\0\0\0\0\0\200`\20\10\370\0\0\0\0\0\0\0\0\60,# \377 " "\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\0\0\0\0\0\0\0\370\10\10\10\10\10\10\10\0" "\0\0\0\0\0\0\0\3\2\1\1\1\1\2\206x\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0" "\0\0\0\0\0\0\0\200`\60\20\10\10\10\10\0\0\0\0\0\0\0\0\177\204\2\1\1\1\1\2\374" "\0\0\0\0\0\0\0\0\1\1\2\2\2\2\1\0\0\0\0\0\0\0\70\10\10\10\10\10\10\350\30\0" "\0\0\0\0\0\0\0\0\0\0\200p\17\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0" "\0\0\0\0\0\0\0\340\20\10\10\10\10\20\340\0\0\0\0\0\0\0p\211\6\4\4\4\4\6\211p" "\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1\0\0\0\0\0\0\0\0\340\60\20\10\10\10\20\60\340" "\0\0\0\0\0\0\0\1\6\4\10\10\10\4\302\77\0\0\0\0\0\0\0\2\2\2\2\2\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200@@ \0\0\0\0\0\4\16\12\21\21 @@\200\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\22\22\22\22\22\22\22\22\22\22\22\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 @@\200\200\0\0\0\0\0\0\0\0\0\0\200\200@@ \21\21\12\16" "\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\20\20\20\20\20 \300\0" "\0\0\0\0\0\0\0\0\0\0\60\10\10\4\3\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\340\30\10\4\4\4\204\210\360\0\0\0\0\0\0\0\377\0\0\0\36!@@\177@" "\0\0\0\0\0\0\1\6\4\10\10\10\10\14\4\0\0\0\0\0\0\0\0\20\20\320\60\20\60\300\0\0" "\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\0\20\20\360\20\20\20\20\20\20\20 \300\0\0\0\0\0\0\377\4\4\4\4\4\4\4\12" "\361\0\0\0\0\2\2\3\2\2\2\2\2\2\2\1\0\0\0\0\0\0\0\300` \20\20\20\20 @" "\360\0\0\0\0\0\77\300\200\0\0\0\0\0\0\200\300\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1" "\0\0\0\0\0\20\360\20\20\20\20\20\20\20 `\200\0\0\0\0\0\377\0\0\0\0\0\0\0\0\200" "\177\0\0\0\0\2\3\2\2\2\2\2\2\2\1\1\0\0\0\0\0\20\20\360\20\20\20\20\20\20\20\360" "\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2" "\3\0\0\0\0\0\20\20\360\20\20\20\20\20\20\20\360\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0" "\0\0\0\0\0\0\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\0\300` \20\20\20\20 @\360" "\0\0\0\0\0\77\300\200\0\0\0\20\20\20\20\360\20\0\0\0\0\0\0\1\1\2\2\2\2\2\1\0" "\0\0\0\0\0\20\20\360\20\20\0\0\0\20\20\360\20\20\0\0\0\0\0\377\4\4\4\4\4\4\4\377" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\20\20\20\20\360\20\20\20\20" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0\0\0\20\20\20\20\20\360\20\20\20\0\0\0\0\360\0\0\0\0\0\0\200\177\0" "\0\0\0\0\0\0\0\1\2\2\2\2\1\1\0\0\0\0\0\0\0\20\20\360\20\20\0\0\200P\60\20" "\20\0\0\0\0\0\0\377\10\4\6\11\20 \300\0\0\0\0\0\0\2\2\3\2\2\0\0\0\0\2\3" "\2\2\0\0\0\20\20\20\360\20\20\20\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0" "\340\0\0\0\0\2\2\2\3\2\2\2\2\2\2\2\3\0\0\0\0\20\360p\200\0\0\0\0\0\200p" "\360\20\0\0\0\0\377\0\1\6\30\20\30\6\1\0\377\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\20\20\360\60@\200\0\0\20\20\20\360\20\20\0\0\0\0\377\0\0\1\6\30`\200\0\377" "\0\0\0\0\2\2\3\2\2\2\0\0\0\0\3\3\0\0\0\0\0\0\300` \20\20\20\20\20 `" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\20\20\360\20\20\20\20\20\20 \300\0\0\0\0\0\0\0\377\10\10\10\10\10\10\4" "\3\0\0\0\0\0\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\0\300` \20\20\20\20\20 `" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\11\12\6\16\12\12\11\5" "\4\0\0\0\0\20\20\360\20\20\20\20\20\20 \300\0\0\0\0\0\0\0\377\10\10\10\10\30(\304\3" "\0\0\0\0\0\2\2\3\2\2\0\0\0\0\0\3\2\2\0\0\0\0\300 \20\20\20\20 @\360" "\0\0\0\0\0\0\301\202\2\4\4\4\4\10\10\360\0\0\0\0\0\0\3\0\1\2\2\2\2\2\1\0" "\0\0\0\0\0\0\360\20\20\20\20\360\20\20\20\20\360\0\0\0\0\0\1\0\0\0\0\377\0\0\0\0" "\1\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0\0\0\0\0\0\20\360\20\20\20\0\0\20\20\20\360" "\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0" "\0\0\0\0\0\20p\220\20\20\0\0\0\20\20\220p\20\0\0\0\0\0\1\16p\200\0\200p\16\1" "\0\0\0\0\0\0\0\0\0\0\1\3\1\0\0\0\0\0\0\0\0\20\360\20\20\20\0\200\0\20\20\20" "\360\20\0\0\0\0\7\370\200p\16\1\16p\200\370\7\0\0\0\0\0\0\3\3\0\0\0\0\0\3\3" "\0\0\0\0\0\20\20\60\320\20\0\0\0\20\320\60\20\20\0\0\0\0\0\200@\61\12\4\12\61@\200" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\20\20\60\320\0\0\0\0\0\320\60" "\20\20\0\0\0\0\0\0\0\3\4\370\4\3\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0" "\0\0\0\0\0\0\360\20\20\20\20\20\20\220P\60\0\0\0\0\0\0\1\200@\60\10\4\3\0\0\340" "\0\0\0\0\0\0\3\2\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\0\0\0\0\374\4\4\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\20\20\0\0" "\0\0\0\0\0\0\0\14\60\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\14\60\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\14\0\0\0\0\0\0\0\0\0\4\4\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\20\20\37\0\0\0\0" "\0\0\0\0\0\0\0@ \20\10\14\10\20 @\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@@@@@@@@@@" "@@@\0\0\0\0\0\4\14\30\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0" "\0\0\0\0\0\0\340\21\10\10\10\10\10\21\376\0\0\0\0\0\0\0\0\1\2\2\2\2\2\1\3\2" "\2\0\0\0\0\10\10\370\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\202\1\0\0\0\0\0\1" "\203|\0\0\0\2\2\3\0\1\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\207\200\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\0\0\200\200\200\200\200\10\10\370\0\0\0\0\0|\203\1\0\0\0\0\0\1\202\377" "\0\0\0\0\0\0\1\1\2\2\2\2\2\1\0\3\2\2\0\0\0\0\0\0\0\200\200\200\200\200\0\0" "\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1" "\1\0\0\0\0\0\0\200\200\200\360\230\210\210\210\210\20\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\3\2\2\2\2\2\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\200" "\200\200\0\0\0|\203\1\0\0\0\0\0\1\202\377\0\0\0\0\0\0\1ABBBBB!\60\17" "\0\0\0\0\0\10\10\370\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\0\0\0\0\1\376" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\0\200\200\200\234\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0\200\200\200\200\200\200\234\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0" "\0\0\0\0\0\0\0@@@@@ \60\17\0\0\0\0\0\0\0\10\10\370\0\0\0\200\200\200\200" "\0\0\0\0\0\0\0\0\377\20\30$B\201\0\0\0\0\0\0\0\0\2\2\3\0\0\0\0\2\3\2" "\2\0\0\0\0\0\0\10\10\10\10\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\2\2\2\2\2\3\2\2\2\2\2\0\0\0\200\200\200\0\200\200\200\0\0\200\200\200" "\0\0\0\0\0\0\377\1\0\0\0\377\1\0\0\0\377\0\0\0\2\2\3\2\2\0\0\3\2\0\0\0" "\3\2\0\0\0\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\0\0\0\0\1\376" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\0\0\200\200\200\200\200\0\0" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\200\200\200\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\202\1\0\0\0\0\0\1" "\203|\0\0\0@@\177@AB\2\2\2\2\1\1\0\0\0\0\0\0\0\200\200\200\200\200\0\0\200" "\200\200\0\0\0|\203\1\0\0\0\0\0\1\202\377\0\0\0\0\0\0\1\1\2\2\2\2BA@\177" "@@\0\0\0\0\0\200\200\200\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\1\0\0\0" "\1\0\0\0\0\0\2\2\2\3\2\2\2\2\2\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200" "\0\0\0\0\0\0\0\200\7\10\10\10\20\20\21\343\0\0\0\0\0\0\0\3\1\2\2\2\2\2\1\0" "\0\0\0\0\0\0\200\200\370\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\2\2\2\2\1\1\0\0\0\0\0\200\200\200\0\0\0\0\0\200\200\200" "\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3" "\2\0\0\0\0\200\200\200\200\200\0\0\0\200\200\200\200\200\0\0\0\0\0\3\34`\200\0\200`\34\3" "\0\0\0\0\0\0\0\0\0\0\1\3\1\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\200\200" "\200\200\0\0\0\0\7x\200\0\360\14\360\0\200x\7\0\0\0\0\0\0\0\3\3\0\0\0\3\3\0" "\0\0\0\0\0\0\200\200\200\200\0\0\0\200\200\200\200\0\0\0\0\0\0\1\202D(\20(D\202\1" "\0\0\0\0\0\0\2\3\2\2\0\0\0\2\2\3\2\0\0\0\0\200\200\200\200\0\0\0\0\200\200\200" "\200\0\0\0\0\0\3\34`\200\0\0\300\60\14\3\0\0\0\0\0@@@@qNC\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\3\200@ \20\10\4\2\201" "\0\0\0\0\0\0\0\3\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\0\0\0\0\370\4\4\0\0" "\0\0\0\0\0\0\0\0\0\10\10\367\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\20\20\0\0" "\0\0\0\0\0\0\0\0\0\0\0\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\37\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\367\10\10\0\0\0\0\0\0\0\0\0\0\0\20\20\17\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\14\6\2\2\6\14\10\10\14\6" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\361\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\0\0\0\0" "\0\0\0\0\0\0\0\0\200\200@|@\200\300\0\0\0\0\0\0\0\0\16\61 @\300@ !\0" "\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\300 \20\20\20 \0" "\0\0\0\0\0\0\4\4\207|\4\4\4\0\0\200\0\0\0\0\0\0\2\3\2\2\2\2\2\2\2\1" "\0\0\0\0\0\0@\200\0\200\200\200\200\0\200@\0\0\0\0\0\0\200^!@@@@!^\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\60\320\20\0\0\0\20\320\60" "\20\0\0\0\0\0\0HHKL\370LKHH\0\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0" "\0\0\0\0\0\0\0\0\0\0\0\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\343\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\37\0\0\0\0\0\0\0\0\0\0\0\200\360\210\4\4\4\4\4<" "\0\0\0\0\0\0\3\4\10\20!!B\304H\60\0\0\0\0\0\0\17\10\10\10\10\10\4\3\0\0" "\0\0\0\0\0\0\0\0\60\60\0\0\0\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300 \20\220\220\20\220 " "\300\0\0\0\0\37`\200\216\21 !\23\200\200`\37\0\0\0\0\0\0\0\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0 \220PPP\340\0\0\0\0\0\0\0\0\0\0\23\24\24\24\22\27\24\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\200" "\200\0\0\0\0\20\70l\306\203\21\70l\306\203\1\0\0\0\0\0\0\0\0\0\1\3\2\0\0\1\3" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\2\2\2\2\2\2" "\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\4\4\4\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300 \220\220\220\220\20 \300\0\0\0\0\37`\200\200\77\4\4\14\63\200\200" "`\37\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0 \0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0p\210\4\4\4\210p\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\0\0\0\0" "\0\0\0\0\0\0\2\2\2\2\2\177\2\2\2\2\2\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\20\10\4\204D\70\0\0\0\0\0\0\0\0\0\0\4\6\5\4\4\6\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\4DDd\230\0\0" "\0\0\0\0\0\0\0\0\2\4\4\4\4\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0 \60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\200\200\200" "\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377\0\0\0\0\0\0\0\177\1\2\2\2\2\1\0\3" "\2\0\0\0\0\0\360\370\10\4\4\374\4\4\374\4\4\0\0\0\0\0\1\3\2\4\4\377\0\0\377\0" "\0\0\0\0\0\0\0\0\10\10\10\17\0\0\17\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20 &\30\0\0\0\0\0\0\0\0\0\0\0\10\10\4\374\0\0\0\0" "\0\0\0\0\0\0\0\0\4\4\4\7\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300 \20\20\20 \300\0\0\0\0\0\0\0\0\0\21\22\24\24\24\22\21\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\200\200\0\0\0\0" "\0\0\0\0\0\0\1\203\306l\70\21\203\306l\70\20\0\0\0\0\2\3\1\0\0\2\3\1\0\0\0" "\0\0\0\0\10\10\4\374\0\0\0\0\0\0\300 \20\0\0\0\4\4\4\207D\64\14\304\242\231\204\202" "\376\200\0\0\0\0\0\0\0\0\0\0\0\0\0\2\3\2\0\0\10\10\4\374\0\0\0\0\0\0\300 " "\20\0\0\0\4\4\4\207D\64\14\4\12\5\202B\42\34\0\0\0\0\0\0\0\0\0\0\2\3\2\2" "\2\3\0\0\10\4DDd\230\0\0\0\0\300 \20\0\0\0\2\4\4\204D\63\10\304\242\231\204\202" "\376\200\0\0\0\0\0\0\0\0\0\0\0\0\0\2\3\2\0\0\0\0\0\0\0\0\200\200\0\0\0\0" "\0\0\0\0\0\0\0\200@ !\31\0\0\0\0\0\0\0\0\0\0\0\7\10\20\20\20\20\20\14\0" "\0\0\0\0\0\0\0\20\20\321\63\26\64\300\0\0\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p" "\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2\3\2\0\0\0\0\0\20\20\320\64\26\63\301\0\0" "\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\0\0\0\24\26\323\61\21\63\306\4\0\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p" "\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2\3\2\0\0\0\0\0\26\23\321\63\26\64\306\3\0" "\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\0\0\0\20\23\323\60\20\60\303\3\0\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p" "\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2\3\2\0\0\0\0\0\20\20\327\70\30\70\307\0\0" "\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\0\0\0\0\20\320\60\20\360\20\20\20\20\20\360\0\0\0\200p\36\21\20\20\377\4\4\4" "\37\0\340\0\2\2\3\2\0\0\2\2\3\2\2\2\2\2\3\0\0\0\0\300` \20\20\20\20 `" "\360\0\0\0\0\0\77\300\200\0\0\0\0\0\0\200\300\0\0\0\0\0\0\0\1\21\42&\32\2\1\1" "\0\0\0\0\0\20\20\360\20\21\23\26\24\20\20\360\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0" "\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2\3\0\0\0\0\20\20\360\20\20\24\26\23\21\20\360" "\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2" "\3\0\0\0\0\20\20\364\26\23\21\21\23\26\24\360\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0" "\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2\3\0\0\0\0\20\20\360\23\23\20\20\23\23\20\360" "\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2" "\3\0\0\0\0\0\0\20\20\21\23\366\24\20\20\20\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2\0\0\0\0\0\0\0\20\20\20\24\366\23\21\20\20" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0\24\26\23\21\361\23\26\24\20\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2\0\0\0\0\0\0\0\20\23\23\20\360\20\23\23\20" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\20\360\20\20\20\20\20\20\20 `\200\0\0\0\4\4\377\4\4\4\0\0\0\0\0\200" "\177\0\0\0\0\2\3\2\2\2\2\2\2\2\1\1\0\0\0\0\20\20\360\66C\201\3\6\24\26\23\360" "\20\20\0\0\0\0\377\0\0\1\6\30`\200\0\377\0\0\0\0\2\2\3\2\2\2\0\0\0\0\3\3" "\0\0\0\0\0\0\300` \21\23\26\24\20 `\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200" "\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0\300` \20\20\24\26\23!`" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\300`$\26\23\21\21\23&d\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200" "\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0\300`&\23\21\23\26\24&c" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\300`#\23\20\20\20\23#`\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200" "\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0 @\200\0\0\0\0\0\200@" " \0\0\0\0\0\200@ \21\12\4\12\21 @\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300` \20\20\20\20\220``\220\10\0\0\0\77\300\300 \20\10\4\3\0\200\300" "\77\0\0\0\2\1\0\1\1\2\2\2\2\1\1\0\0\0\0\0\0\20\360\20\20\21\3\6\24\20\20\360" "\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0" "\0\0\0\0\0\20\360\20\20\20\4\6\23\21\20\360\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0\0\0\0\0\0\20\360\24\26\23\1\1\23\26\24\360" "\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0" "\0\0\0\0\0\20\360\20\23\23\0\0\23\23\20\360\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0\0\0\0\0\0\20\20\60\320\0\4\6\3\1\320\60" "\20\20\0\0\0\0\0\0\0\3\4\370\4\3\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0" "\0\0\0\0\0\0\20\20\360\220\220\200\200\200\200\0\0\0\0\0\0\0\0\0\377@@@@@@!" "\36\0\0\0\0\0\2\2\3\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\360\10\4\4\4\10\360\0" "\0\0\0\0\0\0\0\0\377\0\0\202\2\3\4\14\360\0\0\0\0\0\2\2\3\2\0\1\2\2\2\1" "\0\0\0\0\0\0\0\0\4\214\230\260\240\0\0\0\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0" "\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2\2\0\0\0\0\0\0\0\0\200\240\260\230\14\4\0" "\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2" "\2\0\0\0\0\0\0 \60\230\214\214\230\60 \0\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0" "\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2\2\0\0\0\0\0\0\60\30\210\230\260\240\60\30\0" "\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2" "\2\0\0\0\0\0\0\0\30\230\200\200\200\30\30\0\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0" "\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2\2\0\0\0\0\0\0\0\0\234\242\242\242\34\0\0" "\0\0\0\0\0\0\300!\21\20\20\20\20\21\376\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\3\2" "\2\0\0\0\0\0\0\200\200\200\0\0\0\200\200\200\0\0\0\0\300#\21\20\20\20\21\376\21\20\20\20" "\21\23\234\0\1\2\2\2\2\2\1\0\1\2\2\2\2\1\0\0\0\0\0\0\0\200\200\200\200\200\0\200" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\207\200\0\0\0\0\0\0\1\1\22\42&\32\2\1\1" "\0\0\0\0\0\0\0\0\4\214\230\260\240\200\0\0\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23" "\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\200\240\260\230\214\4\0" "\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1" "\1\0\0\0\0\0\0 \60\230\214\214\230\260 \0\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23" "\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1\1\0\0\0\0\0\0\0\30\230\200\200\200\230\30\0" "\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1" "\1\0\0\0\0\0\0\0\204\214\230\260 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\200\200\240\260\30\14\4\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0 \260\230\214\214\30\60 \0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\230\230\200\200\0\30\30\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\10\4$$\224\234\210\230\244\304\200\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203" "~\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\200\200\260\30\10\230\260\240\260\30\0" "\0\0\0\0\0\0\0\377\2\1\0\0\0\0\1\376\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3" "\2\2\0\0\0\0\0\0\0\204\214\230\260\240\0\0\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203" "|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\0\200\240\260\230\214\4\0" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\0 \60\230\214\214\230\260 \0\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203" "|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\60\230\210\230\260\240\60\30" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\0\0\30\230\200\200\200\230\30\0\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203" "|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0" "\0\0\0\0\0\0\4\4\4\4ddd\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200@\0\0\0\0\0|\203A \20\10\4\2\1\202" "|\0\0\0\0\2\1\0\1\2\2\2\2\2\1\1\0\0\0\0\0\200\200\200\4\14\30\60 \200\200\200" "\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3" "\2\0\0\0\0\200\200\200\0\0 \60\30\214\204\200\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377" "\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3\2\0\0\0\0\200\200\240\60\30\14\14\30\260\240\200" "\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3" "\2\0\0\0\0\200\200\200\30\30\0\0\30\230\200\200\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377" "\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3\2\0\0\0\0\200\200\200\200\0 \60\30\214\204\200" "\200\0\0\0\0\0\3\34`\200\0\0\300\60\14\3\0\0\0\0\0@@@@qNC\0\0\0\0" "\0\0\0\0\0\4\4\374\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\203\1\0\0\0\0\0\1" "\203|\0\0\0@@\177AAB\2\2\2\2\1\1\0\0\0\0\200\200\200\230\30\0\0\30\230\200\200" "\200\0\0\0\0\0\3\34`\200\0\0\300\60\14\3\0\0\0\0\0@@@@qNC\0\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 95/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR18_2x3_r[4564] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_r") = " ~\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\0<\374<\0\0<\374<\0\0\0\0\0\0\0\0\0\1\0\0\0\0\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\0\0\374\0\0" "\0\0\0\0\0\0\20\21\21\377\21\21\377\21\21\1\0\0\0\0\0\0\0\0\0\7\0\0\7\0\0\0" "\0\0\0\0\0\0\0\0\300 \20\36\20\20 p\0\0\0\0\0\0\0\300\201\2\4\4\4\4\210p" "\0\0\0\0\0\0\0\1\0\1\1\37\1\1\0\0\0\0\0\0\0\0p\210\4\4\4\210p\0\0\0" "\0\0\0\0\0\10\10\10\5\5\345\22\12\12\11\21\341\0\0\0\0\0\0\0\0\0\0\1\2\2\2\1" "\0\0\0\0\0\0\0\0\300 `@ \0\0\0\0\0\0\0\0\360\10\5\6\30 \340\230\10\0" "\0\0\0\0\0\0\0\1\2\2\2\1\0\1\2\2\0\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\30\4\0\0\0\0\0\0\0\0\0\0\0\0\177\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\14\20\0\0\0\0\0\0\0\0\4\30\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\177\0\0\0\0\0\0\0\0\0\0\0\0\20\14\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0 `@\300\374\300@` \0\0\0\0\0\0\0\4\6\3\1\0\1\3\6\4" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\0\0\0\0" "\0\0\0\0\0\0\4\4\4\4\4\377\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\4\4\4\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\60\14" "\0\0\0\0\0\0\0\0\0\300\60\14\3\0\0\0\0\0\0\0\0\0\0\14\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\60\20\10\10\10\20\60\300\0\0\0\0\0\0\0\177\200\0\0\0\0\0\200\177" "\0\0\0\0\0\0\0\0\1\1\2\2\2\1\1\0\0\0\0\0\0\0\0\20\20\20\10\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0`\20\20\10\10\10\10\20\340\0\0\0\0\0\0\0\0\200@ \20\10\4\2\1\0" "\0\0\0\0\0\0\3\2\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\20\10\10\10\10\10\20\360\0" "\0\0\0\0\0\0\200\0\0\2\2\2\2\5\4\370\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1\0" "\0\0\0\0\0\0\0\0\0\200`\20\10\370\0\0\0\0\0\0\0\0\60,# \377 " "\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\0\0\0\0\0\0\0\370\10\10\10\10\10\10\10\0" "\0\0\0\0\0\0\0\3\2\1\1\1\1\2\206x\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1\0" "\0\0\0\0\0\0\0\200`\60\20\10\10\10\10\0\0\0\0\0\0\0\0\177\204\2\1\1\1\1\2\374" "\0\0\0\0\0\0\0\0\1\1\2\2\2\2\1\0\0\0\0\0\0\0\70\10\10\10\10\10\10\350\30\0" "\0\0\0\0\0\0\0\0\0\0\200p\17\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0" "\0\0\0\0\0\0\0\340\20\10\10\10\10\20\340\0\0\0\0\0\0\0p\211\6\4\4\4\4\6\211p" "\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1\0\0\0\0\0\0\0\0\340\60\20\10\10\10\20\60\340" "\0\0\0\0\0\0\0\1\6\4\10\10\10\4\302\77\0\0\0\0\0\0\0\2\2\2\2\2\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0" "\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\203\203\203\0\0\0\0\0\0\0\0\0\0\0\30\16\7\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200@@ \0\0\0\0\0\4\16\12\21\21 @@\200\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\22\22\22\22\22\22\22\22\22\22\22\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 @@\200\200\0\0\0\0\0\0\0\0\0\0\200\200@@ \21\21\12\16" "\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\20\20\20\20\20 \300\0" "\0\0\0\0\0\0\0\0\0\0\60\10\10\4\3\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0" "\0\0\0\0\0\0\340\30\10\4\4\4\204\210\360\0\0\0\0\0\0\0\377\0\0\0\36!@@\177@" "\0\0\0\0\0\0\1\6\4\10\10\10\10\14\4\0\0\0\0\0\0\0\0\20\20\320\60\20\60\300\0\0" "\0\0\0\0\0\0\200p\36\21\20\20\20\21\36p\200\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\0\20\20\360\20\20\20\20\20\20\20 \300\0\0\0\0\0\0\377\4\4\4\4\4\4\4\12" "\361\0\0\0\0\2\2\3\2\2\2\2\2\2\2\1\0\0\0\0\0\0\0\300` \20\20\20\20 @" "\360\0\0\0\0\0\77\300\200\0\0\0\0\0\0\200\300\0\0\0\0\0\0\0\1\1\2\2\2\2\1\1" "\0\0\0\0\0\20\360\20\20\20\20\20\20\20 `\200\0\0\0\0\0\377\0\0\0\0\0\0\0\0\200" "\177\0\0\0\0\2\3\2\2\2\2\2\2\2\1\1\0\0\0\0\0\20\20\360\20\20\20\20\20\20\20\360" "\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0\0\340\0\0\0\0\2\2\3\2\2\2\2\2\2\2\2" "\3\0\0\0\0\0\20\20\360\20\20\20\20\20\20\20\360\0\0\0\0\0\0\0\377\4\4\4\37\0\0\0" "\0\0\0\0\0\0\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\0\300` \20\20\20\20 @\360" "\0\0\0\0\0\77\300\200\0\0\0\20\20\20\20\360\20\0\0\0\0\0\0\1\1\2\2\2\2\2\1\0" "\0\0\0\0\0\20\20\360\20\20\0\0\0\20\20\360\20\20\0\0\0\0\0\377\4\4\4\4\4\4\4\377" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\20\20\20\20\360\20\20\20\20" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0\0\0\20\20\20\20\20\360\20\20\20\0\0\0\0\360\0\0\0\0\0\0\200\177\0" "\0\0\0\0\0\0\0\1\2\2\2\2\1\1\0\0\0\0\0\0\0\20\20\360\20\20\0\0\200P\60\20" "\20\0\0\0\0\0\0\377\10\4\6\11\20 \300\0\0\0\0\0\0\2\2\3\2\2\0\0\0\0\2\3" "\2\2\0\0\0\20\20\20\360\20\20\20\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0" "\340\0\0\0\0\2\2\2\3\2\2\2\2\2\2\2\3\0\0\0\0\20\360p\200\0\0\0\0\0\200p" "\360\20\0\0\0\0\377\0\1\6\30\20\30\6\1\0\377\0\0\0\0\2\3\2\2\0\0\0\0\0\2\2" "\3\2\0\0\20\20\360\60@\200\0\0\20\20\20\360\20\20\0\0\0\0\377\0\0\1\6\30`\200\0\377" "\0\0\0\0\2\2\3\2\2\2\0\0\0\0\3\3\0\0\0\0\0\0\300` \20\20\20\20\20 `" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\20\20\360\20\20\20\20\20\20 \300\0\0\0\0\0\0\0\377\10\10\10\10\10\10\4" "\3\0\0\0\0\0\2\2\3\2\2\2\2\0\0\0\0\0\0\0\0\0\300` \20\20\20\20\20 `" "\300\0\0\0\0\77\300\200\0\0\0\0\0\0\0\200\300\77\0\0\0\0\0\1\11\12\6\16\12\12\11\5" "\4\0\0\0\0\20\20\360\20\20\20\20\20\20 \300\0\0\0\0\0\0\0\377\10\10\10\10\30(\304\3" "\0\0\0\0\0\2\2\3\2\2\0\0\0\0\0\3\2\2\0\0\0\0\300 \20\20\20\20 @\360" "\0\0\0\0\0\0\301\202\2\4\4\4\4\10\10\360\0\0\0\0\0\0\3\0\1\2\2\2\2\2\1\0" "\0\0\0\0\0\0\360\20\20\20\20\360\20\20\20\20\360\0\0\0\0\0\1\0\0\0\0\377\0\0\0\0" "\1\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0\0\0\0\0\0\20\360\20\20\20\0\0\20\20\20\360" "\20\0\0\0\0\0\377\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\1\2\2\2\2\2\2\1\0" "\0\0\0\0\0\20p\220\20\20\0\0\0\20\20\220p\20\0\0\0\0\0\1\16p\200\0\200p\16\1" "\0\0\0\0\0\0\0\0\0\0\1\3\1\0\0\0\0\0\0\0\0\20\360\20\20\20\0\200\0\20\20\20" "\360\20\0\0\0\0\7\370\200p\16\1\16p\200\370\7\0\0\0\0\0\0\3\3\0\0\0\0\0\3\3" "\0\0\0\0\0\20\20\60\320\20\0\0\0\20\320\60\20\20\0\0\0\0\0\200@\61\12\4\12\61@\200" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\20\20\60\320\0\0\0\0\0\320\60" "\20\20\0\0\0\0\0\0\0\3\4\370\4\3\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0" "\0\0\0\0\0\0\360\20\20\20\20\20\20\220P\60\0\0\0\0\0\0\1\200@\60\10\4\3\0\0\340" "\0\0\0\0\0\0\3\2\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\0\0\0\0\374\4\4\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\20\20\0\0" "\0\0\0\0\0\0\0\14\60\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\14\60\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\14\0\0\0\0\0\0\0\0\0\4\4\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\20\20\37\0\0\0\0" "\0\0\0\0\0\0\0@ \20\10\14\10\20 @\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@@@@@@@@@@" "@@@\0\0\0\0\0\4\14\30\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0" "\0\0\0\0\0\0\340\21\10\10\10\10\10\21\376\0\0\0\0\0\0\0\0\1\2\2\2\2\2\1\3\2" "\2\0\0\0\0\10\10\370\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\202\1\0\0\0\0\0\1" "\203|\0\0\0\2\2\3\0\1\2\2\2\2\2\1\1\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\207\200\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\0\0\0\200\200\200\200\200\10\10\370\0\0\0\0\0|\203\1\0\0\0\0\0\1\202\377" "\0\0\0\0\0\0\1\1\2\2\2\2\2\1\0\3\2\2\0\0\0\0\0\0\0\200\200\200\200\200\0\0" "\0\0\0\0\0\0|\223\21\20\20\20\20\20\21\23\34\0\0\0\0\0\0\1\1\2\2\2\2\2\2\1" "\1\0\0\0\0\0\0\200\200\200\360\230\210\210\210\210\20\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0" "\0\0\0\0\0\0\0\2\2\2\3\2\2\2\2\2\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\200" "\200\200\0\0\0|\203\1\0\0\0\0\0\1\202\377\0\0\0\0\0\0\1ABBBBB!\60\17" "\0\0\0\0\0\10\10\370\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\0\0\0\0\1\376" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\0\200\200\200\234\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\2\2\2" "\0\0\0\0\0\0\0\200\200\200\200\200\200\234\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0" "\0\0\0\0\0\0\0@@@@@ \60\17\0\0\0\0\0\0\0\10\10\370\0\0\0\200\200\200\200" "\0\0\0\0\0\0\0\0\377\20\30$B\201\0\0\0\0\0\0\0\0\2\2\3\0\0\0\0\2\3\2" "\2\0\0\0\0\0\0\10\10\10\10\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\2\2\2\2\2\3\2\2\2\2\2\0\0\0\200\200\200\0\200\200\200\0\0\200\200\200" "\0\0\0\0\0\0\377\1\0\0\0\377\1\0\0\0\377\0\0\0\2\2\3\2\2\0\0\3\2\0\0\0" "\3\2\0\0\0\200\200\200\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\0\0\0\0\1\376" "\0\0\0\0\0\2\2\3\2\2\0\0\0\2\2\3\2\2\0\0\0\0\0\0\0\200\200\200\200\200\0\0" "\0\0\0\0\0\0|\203\1\0\0\0\0\0\1\203|\0\0\0\0\0\0\1\1\2\2\2\2\2\1\1" "\0\0\0\0\0\200\200\200\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\377\202\1\0\0\0\0\0\1" "\203|\0\0\0@@\177@AB\2\2\2\2\1\1\0\0\0\0\0\0\0\200\200\200\200\200\0\0\200" "\200\200\0\0\0|\203\1\0\0\0\0\0\1\202\377\0\0\0\0\0\0\1\1\2\2\2\2BA@\177" "@@\0\0\0\0\0\200\200\200\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\377\2\1\1\0\0\0" "\1\0\0\0\0\0\2\2\2\3\2\2\2\2\2\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\200" "\0\0\0\0\0\0\0\200\7\10\10\10\20\20\21\343\0\0\0\0\0\0\0\3\1\2\2\2\2\2\1\0" "\0\0\0\0\0\0\200\200\370\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\2\2\2\2\1\1\0\0\0\0\0\200\200\200\0\0\0\0\0\200\200\200" "\0\0\0\0\0\0\0\377\0\0\0\0\0\0\200\377\0\0\0\0\0\0\0\0\1\2\2\2\2\1\0\3" "\2\0\0\0\0\200\200\200\200\200\0\0\0\200\200\200\200\200\0\0\0\0\0\3\34`\200\0\200`\34\3" "\0\0\0\0\0\0\0\0\0\0\1\3\1\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\200\200" "\200\200\0\0\0\0\7x\200\0\360\14\360\0\200x\7\0\0\0\0\0\0\0\3\3\0\0\0\3\3\0" "\0\0\0\0\0\0\200\200\200\200\0\0\0\200\200\200\200\0\0\0\0\0\0\1\202D(\20(D\202\1" "\0\0\0\0\0\0\2\3\2\2\0\0\0\2\2\3\2\0\0\0\0\200\200\200\200\0\0\0\0\200\200\200" "\200\0\0\0\0\0\3\34`\200\0\0\300\60\14\3\0\0\0\0\0@@@@qNC\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\3\200@ \20\10\4\2\201" "\0\0\0\0\0\0\0\3\2\2\2\2\2\2\2\3\0\0\0\0\0\0\0\0\0\0\0\370\4\4\0\0" "\0\0\0\0\0\0\0\0\0\10\10\367\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\20\20\0\0" "\0\0\0\0\0\0\0\0\0\0\0\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\37\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\367\10\10\0\0\0\0\0\0\0\0\0\0\0\20\20\17\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\14\6\2\2\6\14\10\10\14\6" "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--25-180-100-100-M-150-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 18/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR18_2x3_n[1300] U8X8_FONT_SECTION("u8x8_font_courR18_2x3_n") = " :\2\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\0\0\360\0\0\200\200\0\0\0\0\0\0\0\20\31\15\7\3\7\15\31\20" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0" "\0\0\0\0\0\0\20\20\20\20\20\377\20\20\20\20\20\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0`\70\36\16\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\20\20\20\20\20\20\20\20\20\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\60" "\0\0\0\0\0\0\0\0\0\0\300\60\14\3\0\0\0\0\0\0\0\0\0\60\14\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300@ @\300\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\1\6\4\10\10\10\4\6\1\0\0\0\0\0\0\0@@@ \340\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\10\10\10\10\17\10\10\10\10" "\0\0\0\0\0\0\200@@ @\200\0\0\0\0\0\0\0\1\0\0\200@ \20\10\7\0" "\0\0\0\0\0\0\14\12\11\10\10\10\10\10\10\14\0\0\0\0\0\0\0@ @\300\0" "\0\0\0\0\0\0\0\0\0\10\10\10\10\24\23\340\0\0\0\0\0\0\2\4\4\10\10\10\10\4\4\3" "\0\0\0\0\0\0\0\0\0\0\200@ \340\0\0\0\0\0\0\0\0\300\260\214\202\201\200\200\377\200\200" "\0\0\0\0\0\0\0\0\0\0\10\10\10\17\10\10\0\0\0\0\0\0\0\340 \0" "\0\0\0\0\0\0\0\17\10\4\4\4\4\10\30\340\0\0\0\0\0\0\4\4\10\10\10\10\10\4\6\1" "\0\0\0\0\0\0\0\0\200\300@ \0\0\0\0\0\0\0\0\376\21\10\4\4\4\4\10\360" "\0\0\0\0\0\0\0\1\6\4\10\10\10\10\4\3\0\0\0\0\0\0\340 \240`\0" "\0\0\0\0\0\0\0\0\0\0\0\300<\3\0\0\0\0\0\0\0\0\0\0\0\0\16\1\0\0\0\0" "\0\0\0\0\0\0\0\200@ @\200\0\0\0\0\0\0\0\300'\30\20\20\20\20\30'\300" "\0\0\0\0\0\0\1\6\4\10\10\10\10\4\6\1\0\0\0\0\0\0\0\200\300@ @\300\200" "\0\0\0\0\0\0\0\7\30\20 \20\10\377\0\0\0\0\0\0\0\10\10\10\10\10\4\4\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0" "\0\0\0\0\0\0\0\0\0\0\16\16\16\0\0\0\0\0\0"; /* Fontname: -Adobe-Courier-Bold-R-Normal--34-240-100-100-M-200-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 191/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courB24_3x4_f[21508] U8X8_FONT_SECTION("u8x8_font_courB24_3x4_f") = " \377\3\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\370\374\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 qsq " "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\17\37\17\0\0\0\17\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\207" "\207\377\377\377\207\207\207\377\377\377\207\207\7\0\0\0\0\0\0\0\0\0\3\3\377\377\377\3\3\3\377\377" "\377\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\3\3\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360p\70\77\77\77\70x\360\370\370\0\0\0\0\0\0\0\0\0\0\0\7" "\17\37\36\34<<\70xx\361\361\341\300\0\0\0\0\0\0\0\0\0\0\77\77\77\34\30\370\370\370\70" "\30\34\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\370\34\14\14\14\34\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\301" "\303\347ff\66\267\333\331\334\314\316\206\7\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\17\77q`" "``q\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\317\377\377\371\340\300\200\1\301\300\300\300\0\0\0\0\0\0\0\0\0\0\37\77\177qppqs\77\36" "\177\177qq\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\374\374|\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374<\34\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\377\377\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\16\0\0\0\0\0" "\0\0\0\0\0\0\0\0\34<\374\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\1\77\377\377\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\77\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\17\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\200\200\0\374\374\374\0\200\200\300\300\200\0\0\0\0\0\0\0\0\0\0" "A\341\363\177\77\37\17\37\77\177\363\341A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppp" "pppp\377\377\377ppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374|<\14" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp" "ppppppppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60xxx\60" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\37\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\360\374\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\77\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370x\34\34\34\34\34x\370\360\300\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\7\37\77\177\367\343\200\0\0\0\0\0\0\0\0\0\70\70xppppppp" "x<\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\370|\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\200\340" "\360\374\277\217\207\201\200\377\377\377\200\200\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3sss\177" "\177\177ss\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\34\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0" "\37\37\37\16\16\16\16\36\36<\374\370\340\0\0\0\0\0\0\0\0\0\30<\70xpppppp" "x<\77\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360x\70<\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\374" "\377\377s\70\30\34\34\34xpppp" "x<\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\34\34\34\34\34\34\34\374\374\374<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\376\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p|\177\37\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370\70\34\34\34\34\34\70\370\360\300\0\0\0\0\0\0\0\0\0\0\0\301" "\347\377~<<\34\34<>\177\367\341\300\0\0\0\0\0\0\0\0\0\0\17\37\77\70xpppp" "x\70\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370x<\34\34\34\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70\70\370\370\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70\70\70\370\370\370\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\0\3\3\3\0\0\0\0\0\0\0ppp\177\177\177ppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\360\370\370\0\0\0\0\0\0\0\0\376\377" "\377\3\0\0\0\0\300\300\300\300\300\303\303\303\300\0\0\0\0\0\0\0\3\17\37>\70xppqq" "qqy\77\77\37\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\370\370\370\70\70\70\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\0\0\377" "\377\377\70\70\70\70\70\70\70\377\377\377\0\0\0\0\0\0\0\0\0pp\177\177\177ppp\0pp" "p\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\70\370\370\370\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\370\370\370\70\70\70\70\0\0\0\0\0\0\0\340\340" "\340\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\77xppppx<" "\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\0\0\270\370\370\370x\70\70\0\0\0\0\0\0\0\0\0" "\377\377\377x\70<~\377\367\343\301\0\0\0\0\0\0\0\0\0\0ppp\177\177\177ppp\0\0" "\1\7\177\177|ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\70\370\370\370\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0pppp\177\177\177pppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\370\340\200\0\0\0\0\0\200\340\370\370\370\370\70\70\0\0\0\0\0\377\377" "\377\1\17\77\376\370\300\370\376\77\17\1\377\377\377\0\0\0\0\0pp\177\177\177ppp\1\7\7\7" "\1ppp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\360\340\200\0\0\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\1\7\37>\374\360\340\200\0\377\377\377\0\0\0\0\0\0\0pp\177\177\177ppp\0\0\1\7" "\17>\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\360\340\300\200\0\0\0\0\0\0\0\376\377\377" "\3\0\0\0\0\0\0\0\0\0\0\3\377\377\376\0\0\0\0\0\0\1\7\17\37<\70ppppp" "p\70<\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70xp\360\340\200\0\0\0\0\0\0\0\0\0\0" "\377\377\377\340\340\340\340\340\340px\77\37\17\0\0\0\0\0\0\0ppp\177\177\177ppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\340\340\300\200\0\0\0\0\0\0\0\376\377\377" "\3\0\0\0\0\0\0\0\0\0\0\3\377\377\376\0\0\0\0\0\0\1\7\17\36\274\370\360pppp" "p\70<\36\17\7\1\0\0\0\0\0\0\0\0\16\17\17\7\7\7\7\7\17\16\16\16\16\17\7\7\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70x\360\360\340\200\0\0\0\0\0\0\0\0\0\0" "\377\377\377pppp\360\360\370\274\37\17\7\0\0\0\0\0\0\0ppp\177\177\177ppp\0\0" "\1\3\7\37~|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\340\360p\70\70\70\70\70xp\360\370\370\0\0\0\0\0\0\0\0\0\0\7\17" "\37\36<\70\70xpp\360\343\343\303\200\0\0\0\0\0\0\0\0\0\177\177\177\70\60ppppp" "p\71\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\70\70\70\70\370\370\370\70\70\70\70\370\370\370\0\0\0\0\0\0\0\17\17\17" "\0\0\0\0\377\377\377\0\0\0\0\17\17\17\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\70\70\70\0\0\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\70\370\370\370\70\70\70\0\0\0\70\70\70\370\370\370\70\70\70\0\0\0\0\0\0\1" "\7\77\377\370\340\0\0\0\340\370\377\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\177x\177" "\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\370\370\370\70\70\70\70\0\0\0\70\70\70\70\370\370\370\70\0\0\0\0\0\0\7\377\377" "\370\0\340\374\377\37\377\374\340\0\370\377\377\7\0\0\0\0\0\0\0\0\3\177\177\177\37\3\0\0\0\3" "\37\177\177\177\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70x\370\370\370\270\70\0\0\0\70\270\370\370\370x\70\70\0\0\0\0\0\0\0\0\0" "\1\203\307\357\376|\376\357\307\203\1\0\0\0\0\0\0\0\0\0ppx|\177\177wq\0\0\0q" "w\177\177|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70xx\370\370\270\70\0\0\0\70\270\370\370xx\70\70\0\0\0\0\0\0\0\0\0" "\1\7\17\77\374\370\374\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0pppp\177\177\177p" "ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\370\370\370\70\70\70\70\70\70\370\370\370x\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\300\340\360|>\37\7\3\201\200\200\0\0\0\0\0\0\0\0\0p|~\177wsqppp" "pp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\16\16\16\16\0\0\0\0\0" "\0\0\0\0\0\0\0\7\37\377\374\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\3\37\177\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77" "\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360|>|\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\16" "\17\17\3\1\0\0\0\1\3\17\17\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70" "\0\0\0\0\0\0\0\0\0\0\6\16\34\70p`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\216" "\216\217\307\307\307\307\307\307\317\376\376\374\0\0\0\0\0\0\0\0\0\0\36\77\177sqqqqq\71" "\31\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377<\16\16\7\7\7\7\17\16>\374\370\340\0\0\0\0\0ppp\177\177\177<\70pppp" "ppx<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370" "\374\36\16\17\7\7\7\7\17\16~\177\177\0\0\0\0\0\0\0\0\0\7\37\77\16\17\7\7\7\7\17\16>\377\377\377\0\0\0\0\0\0\0\0\3\17\37<\70xppppx" "\70\34\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370" "\374\336\316\317\307\307\307\307\317\316\336\374\370\360\0\0\0\0\0\0\0\3\17\37\77=yyqqqq" "qqqy\71\71\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\370\370<\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\7" "\7\7\7\377\377\377\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0pppp\177\177\177pp" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374" ">\16\17\7\7\7\17\16>\377\377\377\7\7\7\0\0\0\0\0\0\3\17\37>xppppx\70" "\36\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70<\36\37\17\3\0\0\0\0" "\0\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\34\16\7\7\7\7\17\376\374\370\0\0\0\0\0\0\0\0\0pp\177\177\177pp\0\0\0" "pp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177" "pppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70\70<\37\17\7\0\0\0\0\0" "\0\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\300\340\367\377\77\37\17\7\7\7\0\0\0\0\0\0\0\0ppp\177\177\177\1\3\7\17\177" "~|xppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\34\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177" "pppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377" "\377\16\6\7\7\377\376\376\16\7\7\7\377\376\374\0\0\0\0\0\0p\177\177\177pp\0\0\177\177\177" "pp\0\0\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\377\377\377\34\16\7\7\7\7\17\376\374\370\0\0\0\0\0\0\0\0\0pp\177\177\177pp\0\0\0" "pp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370" "\374>\16\7\7\7\7\7\7\7\16>\374\370\340\0\0\0\0\0\0\0\3\17\37>\70ppppp" "pp\70>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\34\16\6\7\7\7\7\7\16\36\374\370\360\0\0\0\0\0\0\0\0\377\377\377\34\70\60ppp" "p\70\70\36\37\17\3\0\0\0\0\0\70\70\70\77\77\77\70\70\70\70\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374" ">\16\17\7\7\7\7\17\16>\377\377\377\7\7\7\0\0\0\0\0\3\17\37>\70xpppp\70" "\70\36\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\77\77\77\70\70\70" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\377\377\377<\16\16\7\7\7\17\37\16\4\0\0\0\0\0\0\0pppp\177\177\177ppp" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "x\376\376\357\307\307\307\307\307\217\236\237\37\0\0\0\0\0\0\0\0\0\0~~~\70\71qqqq" "qs;\77\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\7\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\37\77\77xppp" "px\70<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\377\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177xpppp" "x\70\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17\77" "\377\377\347\207\0\0\0\207\347\377\177\37\7\7\7\0\0\0\0\0\0\0\0\0\0\3\17\77~x~\37" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\177\377" "\377\307\7\340\370\370\370\340\7\307\377\377\177\7\7\0\0\0\0\0\0\0\0\7\177\177\177\17\1\0\1\17" "\177\177\177\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17" "\37\77\177\367\340\300\340\367\77\37\17\7\7\7\0\0\0\0\0\0\0pppx|~w\3\1\3w" "\177~|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17" "\77\377\377\347\207\0\0\0\7\307\367\377\77\17\7\7\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\374" "\77\17\3\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70<\77\77;\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\77\77\77\7\207\307\347\367\177\77\37\17\7\0\0\0\0\0\0\0\0\0\0\0x|~\177wsqp" "pp|||\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374<\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\300\300\340\377\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\16\16\16\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\34\34<\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\377\377\340\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360" "\370\70\34" "wc\303\307\206\216\34\30\70\60`\340\300\0\0\0\0\0\0\0\0\0\0\0\360\360\200\201\201\203\207\206" "\316\374|\16\7\3\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340`p\60\70\270\270\70\70\70pp\340\340\300\0\0\0\0\0\374\377\17\3" "\360\374\376\17\7\3\3\7\36\237\237\0\0\3\377\377\374\0\0\0\3\17\37<\70swgnnnn" "gw\63\71\34\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\60\260\230\230\230\230\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\236\277\263\261\261\261\231\277\277\260\260\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340" "p\70\34\16\206\300\340p\70\34\16\6\0\0\0\0\0\0\0\0\0\1\3\7\16\34\70pa\3\7\16" "\34\70p`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34" "\34\34\34\34\34\34\34\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp" "ppppppppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\340\340p\260\270\270\270\270\270\70\60p\340\340\300\200\0\0\0\0\0\374\377\377\3" "\0\0\377\377\377c\343\347\377\177>\0\3\17\377\376\370\0\0\0\1\7\17\37<\70wwwpqs" "ww><\34\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\60\20\30\10\30\20\60\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\3\6\4\14\10\14\4\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70" "\70\70\70\70\377\377\377\70\70\70\70\70\70\70\0\0\0\0\0\0\0ppppppp\177\177\177p" "pppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\60\70\34\14\14\234\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340\360\370\334\317\303\301\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\30\34\214\214\314\374x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\60p\340\301\301\301c\177\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0@\340p\60\70\34\34\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\377\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\70pppp" "\70\34\177\177\177pp\0\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\360\370\70\34\14\374\374\14\14\14\374\374\14\14\0\0\0\0\0\0\0\0\0\7\17" "\37\70\60\60\377\377\0\0\0\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\377\377\0\0" "\200\377\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0\3\3\3\3\3\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\60xxx\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\34\35\37\16\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60\30\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\300\300\300\377\377\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340p\60\30\30\30\60p\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\207\217\234\230\260\260\260\230\234\217\207\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\16" "\34\70p\340\300\206\16\34\70p\340\300\200\0\0\0\0\0\0\0\0\0`p\70\34\16\7\3ap\70" "\34\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\60\60\30\370\370\0\0\0\0\0\0\0\0\0\0\300\340@\0\0\0\0\0\0```\177" "\177```\0\300\340x\34\216\343\61\370\370\0\0\0\0\0\0\0\0\0\0\0\10\34\16\7\1\0\14" "\17\17\15l\177\177l\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\60\60\30\370\370\0\0\0\0\0\0\0\200\300\340@\0\0\0\0\0\0\0\0```\177" "\177``\300\340x<\316\347q\60\60p\340\300\0\0\0\0\0\0\0\0\0\4\16\7\3\0\0\0p" "x|lfgsq\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\30\34\214\214\214\374x\0\0\0\0\0\200\300\340@\0\0\0\0\0\0\0\30\70\60a" "aa;\77\216\340p<\16\207\343\60\370\370\0\0\0\0\0\0\0\0\0\0\0\4\16\7\3\1\0\14" "\17\17ml\177\177l\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\6\217\217\217\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370<\34\37\17\17\0" "\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\3\7\17\36\34\34\34\34\34\34\37\17\17\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\370\371\371{\373\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\370\370\373{\371\361\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70:;;\371\370\370x\371\363\303\2\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70;;\370\370\371y\373\362\303\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\71;;\71\370\370\370y\373\363\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\371\373\372z\373\361\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\360\376\377\217\203\200\203\217\377\376\360\200\0\0\0\0\0\0\0ppp~\177\177sss\3\3\3" "sss\177\177~ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\370\370\370\70\370\370\370\70\70\70\70\370\370\370\0\0\0\0\0\0\0\0\340" "\376\377\237\200\200\377\377\377\60\60\374\374\3\3\3\0\0\0\0\0pp~\177\177qqqq\177\177\177" "ppqqp~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360px\70\70\70\70p\360\360\370\370\0\0\0\0\0\0\0\0\376\377\377" "\3\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\1\7\37\37<\70xp\360\360p" "px\70<\36\14\0\0\0\0\0\0\0\0\0\0\0\0\14\30\30\33\37\36\14\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\71\71;;\70\370\370\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70;;\71\71\70\70\370\370\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\372\373\373\71\70\70\70\71;;\372\370\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\371\373;\71\70\70\70\71;\373\371\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\70\371\371\373;\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\70\373\373\371\71\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70:;;\71\370\370\370\71;;:\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\71;;\71\370\370\370\71;;\71\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\70\70\370\370\370\70\70\70\70\70xp\360\340\300\200\0\0\0\0\0\0\0\0\70\70" "\377\377\377\70\70\70\70\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0pp\177\177\177ppppp" "px\70>\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\70\370\370\373\363\340\200\1\1;:;\71\370\370\370\70\70\0\0\0\0\0\0\0\377" "\377\377\1\7\37>\374\360\340\200\0\377\377\377\0\0\0\0\0\0\0pp\177\177\177pppp\0\1" "\7\37>\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360x\70\71\71;;x\360\360\300\200\0\0\0\0\0\0\0\0\374\377\377" "\3\0\0\0\0\0\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0\0\3\17\37>\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360x;;\71\71\70x\360\360\300\200\0\0\0\0\0\0\0\0\374\377\377" "\3\0\0\0\0\0\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0\0\3\17\37>\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\342\363{\71\70\70\70\71{\363\362\300\200\0\0\0\0\0\0\0\0\374\377\377" "\3\0\0\0\0\0\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0\0\3\17\37>\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\363{\70\70\71\71;z\363\361\300\200\0\0\0\0\0\0\0\0\374\377\377" "\3\0\0\0\0\0\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0\0\3\17\37>\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\341\363{\71\70\70\70\71{\363\361\300\200\0\0\0\0\0\0\0\0\374\377\377" "\3\0\0\0\0\0\0\0\0\0\3\377\377\374\0\0\0\0\0\0\0\0\3\17\37>\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\3\7" "\17\37>\370\360\340\360\370>\37\17\7\3\0\0\0\0\0\0\0\0\0px|>\37\7\3\1\3\7" "\37>|xp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360px\70\70\70x\360\360\360\374<\34\0\0\0\0\0\0\0\374\377\377" "\3\1\200\300\360\370~\37\17\7\3\377\377\374\0\0\0\0\0\0\0\301\367\377\177\77\177wqppp" "x<\37\17\7\1\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\70\70\70\1\1\3;\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "x<\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\70\70;\3\1\1\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "x<\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\372;;\71\0\0\0\71;;\372\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "x<\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\71\71\70\70\0\70\70\71\71\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "x<\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70x\370\370\370;\3\1\1\70\370\370\370x\70\70\0\0\0\0\0\0\0\0\0\0" "\1\7\17\77\374\370\374\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0pppp\177\177\177p" "ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\270\270\270\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\3\3\3\3\3\3\207\207\377\376\374\60\0\0\0\0\0\0ppp\177\177\177www\7\7" "\7\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\370<\34\34\34<\370\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\0\34\34\34\36\77\177\363\360\340\200\0\0\0\0\0\0\0ppp\177\177\177p\34<|p\360" "\360p\177\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\4\6\16\34\30\70\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\216\216\317\307\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177wsqqqq\71" "\71\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0`p\60\70\34\16\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\216\216\317\307\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177ssqqqq\71" "\35\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \60\70\30\14\6\14\30\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\216" "\216\316\317\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177wsqqqq\61\71" "\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70<\14\14\30\30\60\60<\34\0\0\0\0\0\0\0\0\0\0\0\0\0\216" "\216\317\307\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177wsqqqq\71\31" "\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\0\0" "\216\216\317\307\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177wsqqqq\71" "\31\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\70lDDl\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\216" "\216\317\307\307\307\307\307\317\376\374\370\0\0\0\0\0\0\0\0\0\0\34\77\177wsqqqq\71\31" "\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\216\316" "\317\307\347\347\357\376\376\376\316\317\307\317\316\376\370\360\0\0\0\0\17\37\77{qqqy\71\77\177\77" "=qqqq\71\71\71\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370" "\374>\16\17\7\7\7\7\17\16~\177\177\0\0\0\0\0\0\0\0\0\7\17\37<\70xp\360\360p" "pp\70<\34\10\0\0\0\0\0\0\0\0\0\0\0\0\14\10\30\33\37\16\4\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\10\14\34\70\60p`\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374" "\376\316\317\307\307\307\307\317\316\376\374\370\340\0\0\0\0\0\0\0\0\3\17\37=\71yqqqqq" "q\71\71\71\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0`p\60\70\34\16\14\0\0\0\0\0\0\0\0\0\0\0\340\370\374" "\376\316\317\307\307\307\307\317\316\376\374\370\340\0\0\0\0\0\0\0\0\3\17\37=\71yqqqqq" "q\71\71\71\21\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \60\70\30\14\6\14\30\70\60 \0\0\0\0\0\0\0\0\0\0\340\370\374" "\376\316\317\307\307\307\307\317\316\376\374\370\340\0\0\0\0\0\0\0\0\3\17\37=\71yqqqqq" "y\71\71\71\71\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\340\370\374" "\376\316\317\307\307\307\307\317\316\376\374\370\340\0\0\0\0\0\0\0\0\3\17\37=\71yqqqqq" "y\71\71\71\71\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\4\6\16\34\30\70\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177p" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\60\70\30\34\16\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177p" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 \60\70\30\14\6\14\30\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177p" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177p" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\30\234\234\234\334\334\374\370\370\360\370\370\234\34\14\10\0\0\0\0\0\0\0\0\300\363" "\363{\71\35\34\34\34\34\33\77\177\376\370\300\0\0\0\0\0\0\0\0\17\37\77|xppppp" "x\70>\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70<\14\14\30\30\60\60<\34\0\0\0\0\0\0\0\0\0\0\0\7\7\377" "\377\377\14\6\7\7\7\7\17\376\376\374\0\0\0\0\0\0\0\0\0pp\177\177\177pp\0\0\0p" "p\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\10\14\34\70\60p`\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374" "<\36\17\7\7\7\7\7\17\36<\374\360\340\0\0\0\0\0\0\0\3\17\37>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0`p\60\70\34\16\14\0\0\0\0\0\0\0\0\0\0\0\340\360\374" "<\36\17\7\7\7\7\7\17\36<\374\360\340\0\0\0\0\0\0\0\3\17\37>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \60\70\30\14\6\14\30\70\60 \0\0\0\0\0\0\0\0\0\0\340\360\374" "<\36\17\7\7\7\7\7\17\36<\374\360\340\0\0\0\0\0\0\0\3\17\37>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\70<\14\14\30\30\60\60<\34\0\0\0\0\0\0\0\0\0\0\340\360\374" "<\36\17\7\7\7\7\7\17\36<\374\360\340\0\0\0\0\0\0\0\3\17\37>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\340\360\374" "<\36\17\7\7\7\7\7\17\36<\374\360\340\0\0\0\0\0\0\0\3\17\37>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp" "pppqsssqppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\36\36\36\14" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\300\360\374" "<\36\16\17\207\307\347\377~>>\377\367\303\0\0\0\0\0\0\0\303\357\377|<~\177wsqp" "x\70<\37\17\3\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\6\16\34\30\70\60\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177ppppp\70" "\34\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0`p\60\70\34\16\14\0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177ppppp\70" "\34\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 \60\70\30\14\6\14\30\70\60 \0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177ppppp\70" "\34\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177ppppp\70" "\34\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0`p\60\70\34\16\14\0\0\0\0\0\0\0\0\0\0\0\7\17\77" "\377\377\347\207\0\0\0\207\347\377\377\77\17\7\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\376\77" "\17\3\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70<\77\77;\70\70\0\0\0\0\0\0\0\0" "\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377>\36\17\7\7\7\7\17\36>\374\370\340\0\0\0\0\0\0\0\0\377\377\377>\70xppp" "px\70>\37\17\3\0\0\0\0\0\70\70\70\77\77\77\70\70\70\70\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\7\17\77" "\377\377\347\207\0\0\0\207\347\377\377\77\17\7\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\376\77" "\17\3\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70<\77\77;\70\70\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Bold-R-Normal--34-240-100-100-M-200-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 95/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courB24_3x4_r[9124] U8X8_FONT_SECTION("u8x8_font_courB24_3x4_r") = " ~\3\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\370\374\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 qsq " "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\17\37\17\0\0\0\17\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\207" "\207\377\377\377\207\207\207\377\377\377\207\207\7\0\0\0\0\0\0\0\0\0\3\3\377\377\377\3\3\3\377\377" "\377\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\3\3\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360p\70\77\77\77\70x\360\370\370\0\0\0\0\0\0\0\0\0\0\0\7" "\17\37\36\34<<\70xx\361\361\341\300\0\0\0\0\0\0\0\0\0\0\77\77\77\34\30\370\370\370\70" "\30\34\37\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\370\34\14\14\14\34\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\301" "\303\347ff\66\267\333\331\334\314\316\206\7\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\17\77q`" "``q\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\317\377\377\371\340\300\200\1\301\300\300\300\0\0\0\0\0\0\0\0\0\0\37\77\177qppqs\77\36" "\177\177qq\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\374\374|\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374<\34\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\377\377\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\16\0\0\0\0\0" "\0\0\0\0\0\0\0\0\34<\374\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\1\77\377\377\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\77\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\17\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\200\200\0\374\374\374\0\200\200\300\300\200\0\0\0\0\0\0\0\0\0\0" "A\341\363\177\77\37\17\37\77\177\363\341A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppp" "pppp\377\377\377ppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374|<\14" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp" "ppppppppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60xxx\60" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\37\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\360\374\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\77\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370x\34\34\34\34\34x\370\360\300\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\7\37\77\177\367\343\200\0\0\0\0\0\0\0\0\0\70\70xppppppp" "x<\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\370|\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\200\340" "\360\374\277\217\207\201\200\377\377\377\200\200\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3sss\177" "\177\177ss\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\34\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0" "\37\37\37\16\16\16\16\36\36<\374\370\340\0\0\0\0\0\0\0\0\0\30<\70xpppppp" "x<\77\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360x\70<\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\374" "\377\377s\70\30\34\34\34xpppp" "x<\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\34\34\34\34\34\34\34\374\374\374<\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\376\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p|\177\37\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370\70\34\34\34\34\34\70\370\360\300\0\0\0\0\0\0\0\0\0\0\0\301" "\347\377~<<\34\34<>\177\367\341\300\0\0\0\0\0\0\0\0\0\0\17\37\77\70xpppp" "x\70\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370x<\34\34\34\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70\70\370\370\370\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\3\3\3\0\0\0\0\0\0\0\0ppp\177\177\177ppppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70\70\70\370\370\370\0\0\0\0\0\0\0\0\0\0" "\377\377\377\70\70\70\376\376\376\0\0\3\3\3\0\0\0\0\0\0\0ppp\177\177\177ppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\360\370\370\0\0\0\0\0\0\0\0\376\377" "\377\3\0\0\0\0\300\300\300\300\300\303\303\303\300\0\0\0\0\0\0\0\3\17\37>\70xppqq" "qqy\77\77\37\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\370\370\370\70\70\70\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\0\0\377" "\377\377\70\70\70\70\70\70\70\377\377\377\0\0\0\0\0\0\0\0\0pp\177\177\177ppp\0pp" "p\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\70\370\370\370\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\370\370\370\70\70\70\70\0\0\0\0\0\0\0\340\340" "\340\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\77xppppx<" "\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\0\0\270\370\370\370x\70\70\0\0\0\0\0\0\0\0\0" "\377\377\377x\70<~\377\367\343\301\0\0\0\0\0\0\0\0\0\0ppp\177\177\177ppp\0\0" "\1\7\177\177|ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\70\370\370\370\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0pppp\177\177\177pppp" "ppp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\370\340\200\0\0\0\0\0\200\340\370\370\370\370\70\70\0\0\0\0\0\377\377" "\377\1\17\77\376\370\300\370\376\77\17\1\377\377\377\0\0\0\0\0pp\177\177\177ppp\1\7\7\7" "\1ppp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\360\340\200\0\0\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\1\7\37>\374\360\340\200\0\377\377\377\0\0\0\0\0\0\0pp\177\177\177ppp\0\0\1\7" "\17>\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\360\340\300\200\0\0\0\0\0\0\0\376\377\377" "\3\0\0\0\0\0\0\0\0\0\0\3\377\377\376\0\0\0\0\0\0\1\7\17\37<\70ppppp" "p\70<\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70xp\360\340\200\0\0\0\0\0\0\0\0\0\0" "\377\377\377\340\340\340\340\340\340px\77\37\17\0\0\0\0\0\0\0ppp\177\177\177ppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360p\70\70\70\70\70\70p\340\340\300\200\0\0\0\0\0\0\0\376\377\377" "\3\0\0\0\0\0\0\0\0\0\0\3\377\377\376\0\0\0\0\0\0\1\7\17\36\274\370\360pppp" "p\70<\36\17\7\1\0\0\0\0\0\0\0\0\16\17\17\7\7\7\7\7\17\16\16\16\16\17\7\7\0" "\0\0\0\0\0\70\70\70\370\370\370\70\70\70\70\70\70x\360\360\340\200\0\0\0\0\0\0\0\0\0\0" "\377\377\377pppp\360\360\370\274\37\17\7\0\0\0\0\0\0\0ppp\177\177\177ppp\0\0" "\1\3\7\37~|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\340\360p\70\70\70\70\70xp\360\370\370\0\0\0\0\0\0\0\0\0\0\7\17" "\37\36<\70\70xpp\360\343\343\303\200\0\0\0\0\0\0\0\0\0\177\177\177\70\60ppppp" "p\71\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\70\70\70\70\370\370\370\70\70\70\70\370\370\370\0\0\0\0\0\0\0\17\17\17" "\0\0\0\0\377\377\377\0\0\0\0\17\17\17\0\0\0\0\0\0\0\0\0ppppp\177\177\177p" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\370\370\370\70\70\70\0\0\0\70\70\70\370\370\370\70\70\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\3\17\37<\70xpppx" "\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70\70\370\370\370\70\70\70\0\0\0\70\70\70\370\370\370\70\70\70\0\0\0\0\0\0\1" "\7\77\377\370\340\0\0\0\340\370\377\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\177x\177" "\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\370\370\370\70\70\70\70\0\0\0\70\70\70\70\370\370\370\70\0\0\0\0\0\0\7\377\377" "\370\0\340\374\377\37\377\374\340\0\370\377\377\7\0\0\0\0\0\0\0\0\3\177\177\177\37\3\0\0\0\3" "\37\177\177\177\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70x\370\370\370\270\70\0\0\0\70\270\370\370\370x\70\70\0\0\0\0\0\0\0\0\0" "\1\203\307\357\376|\376\357\307\203\1\0\0\0\0\0\0\0\0\0ppx|\177\177wq\0\0\0q" "w\177\177|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\70\70xx\370\370\270\70\0\0\0\70\270\370\370xx\70\70\0\0\0\0\0\0\0\0\0" "\1\7\17\77\374\370\374\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0pppp\177\177\177p" "ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\370\370\370\70\70\70\70\70\70\370\370\370x\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\300\340\360|>\37\7\3\201\200\200\0\0\0\0\0\0\0\0\0p|~\177wsqppp" "pp\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\16\16\16\16\0\0\0\0\0" "\0\0\0\0\0\0\0\7\37\377\374\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\3\37\177\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77" "\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360|>|\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\16" "\17\17\3\1\0\0\0\1\3\17\17\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70" "\0\0\0\0\0\0\0\0\0\0\6\16\34\70p`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\216" "\216\217\307\307\307\307\307\307\317\376\376\374\0\0\0\0\0\0\0\0\0\0\36\77\177sqqqqq\71" "\31\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377<\16\16\7\7\7\7\17\16>\374\370\340\0\0\0\0\0ppp\177\177\177<\70pppp" "ppx<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370" "\374\36\16\17\7\7\7\7\17\16~\177\177\0\0\0\0\0\0\0\0\0\7\37\77\16\17\7\7\7\7\17\16>\377\377\377\0\0\0\0\0\0\0\0\3\17\37<\70xppppx" "\70\34\177\177\177ppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370" "\374\336\316\317\307\307\307\307\317\316\336\374\370\360\0\0\0\0\0\0\0\3\17\37\77=yyqqqq" "qqqy\71\71\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\370\370<\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\7" "\7\7\7\377\377\377\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0pppp\177\177\177pp" "ppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374" ">\16\17\7\7\7\17\16>\377\377\377\7\7\7\0\0\0\0\0\0\3\17\37>xppppx\70" "\36\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70<\36\37\17\3\0\0\0\0" "\0\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\34\16\7\7\7\7\17\376\374\370\0\0\0\0\0\0\0\0\0pp\177\177\177pp\0\0\0" "pp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177" "pppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\7\7\7\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\70\70<\37\17\7\0\0\0\0\0" "\0\0\0\0\0\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\300\340\367\377\77\37\17\7\7\7\0\0\0\0\0\0\0\0ppp\177\177\177\1\3\7\17\177" "~|xppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\34\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppp\177\177\177" "pppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377" "\377\16\6\7\7\377\376\376\16\7\7\7\377\376\374\0\0\0\0\0\0p\177\177\177pp\0\0\177\177\177" "pp\0\0\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\377\377\377\34\16\7\7\7\7\17\376\374\370\0\0\0\0\0\0\0\0\0pp\177\177\177pp\0\0\0" "pp\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370" "\374>\16\7\7\7\7\7\7\7\16>\374\370\340\0\0\0\0\0\0\0\3\17\37>\70ppppp" "pp\70>\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\377" "\377\377\34\16\6\7\7\7\7\7\16\36\374\370\360\0\0\0\0\0\0\0\0\377\377\377\34\70\60ppp" "p\70\70\36\37\17\3\0\0\0\0\0\70\70\70\77\77\77\70\70\70\70\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374" ">\16\17\7\7\7\7\17\16>\377\377\377\7\7\7\0\0\0\0\0\3\17\37>\70xpppp\70" "\70\36\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\77\77\77\70\70\70" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\377\377\377<\16\16\7\7\7\17\37\16\4\0\0\0\0\0\0\0pppp\177\177\177ppp" "pppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "x\376\376\357\307\307\307\307\307\217\236\237\37\0\0\0\0\0\0\0\0\0\0~~~\70\71qqqq" "qs;\77\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\7\377\377\377\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\37\77\77xppp" "px\70<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\377\377\377\0\0\0\0\7\7\7\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\77\177xpppp" "x\70\177\177\177pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17\77" "\377\377\347\207\0\0\0\207\347\377\177\37\7\7\7\0\0\0\0\0\0\0\0\0\0\3\17\77~x~\37" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\177\377" "\377\307\7\340\370\370\370\340\7\307\377\377\177\7\7\0\0\0\0\0\0\0\0\7\177\177\177\17\1\0\1\17" "\177\177\177\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17" "\37\77\177\367\340\300\340\367\77\37\17\7\7\7\0\0\0\0\0\0\0pppx|~w\3\1\3w" "\177~|xpp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\17" "\77\377\377\347\207\0\0\0\7\307\367\377\77\17\7\7\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\374" "\77\17\3\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70<\77\77;\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\77\77\77\7\207\307\347\367\177\77\37\17\7\0\0\0\0\0\0\0\0\0\0\0x|~\177wsqp" "pp|||\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374<\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\300\300\340\377\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\16\16\16\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\34\34<\374\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\377\377\340\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360" "\370\70\34\37\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374|\34\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\360\376\177\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\77\7\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\37\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\340ppppp\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\1\0\0\0\0\0\1\377\377\377\0\0\0\0\0\0\0\0\0\0\0\37\177\377\360\300\300\300\300\300" "\360\377\177\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\300\300\340\340\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\3\3\1\1\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\377\377\377" "\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\200\300\340\340ppppp\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\7" "\7\7\0\0\0\200\300\340\360\177\77\17\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\336\317\307\303\301" "\300\300\300\300\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0" "\0\0\0\0\0\0\0\300\300\340\340ppppp\360\340\300\200\0\0\0\0\0\0\0\0\0\0\0\1" "\1\1\0pppp\360\370\377\337\217\0\0\0\0\0\0\0\0\0\0\340\340\340\300\300\300\300\300\300\300" "\340\361\377\177\36\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\300\360\374\77\37\7\1\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\16\17\17\17\16\16\316\316\316\377" "\377\377\316\316\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360ppppppppp\0\0\0\0\0\0\0\0\0\0\0\0" "\177\177\177\70\70\70\70xx\360\360\340\200\0\0\0\0\0\0\0\0\0`\360\340\340\300\300\300\300\300\300" "\340\360\377\77\37\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360ppppp\0\0\0\0\0\0\0\0\0\0\0\360" "\376\377\317\343appp\360\340\340\200\0\0\0\0\0\0\0\0\0\0\0\17\177\377\371\340\300\300\300\300" "\340\361\377\177\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360ppppppp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\3\3" "\3\0\0\0\0\0\300\370\377\177\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\177\37" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\340ppppp\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\7" "\237\377\370\360\360pp\360\370\377\337\207\0\0\0\0\0\0\0\0\0\0\0\77\177\377\341\340\300\300\300\300" "\340\341\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\340\360ppp\360\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\77" "\177\377\341\300\200\200\200\300\341\177\377\377\374\0\0\0\0\0\0\0\0\0\0\300\340\341\301\303\303\303\343\341" "x~\77\17\3\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\30<<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--34-240-100-100-M-200-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 191/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR24_3x4_f[21508] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_f") = " \377\3\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\340\341\340" "@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\77\7\1\0\0\0\1\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\370\0\0\200\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\10\377\10\10\10\377\10\10\10\10\0\0\0\0\0\0\0\0\0\0\0\2\2\2\302\77\2\2\342\77" "\2\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300@` < `@\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\14\30\20\20\60 `@\301\200\0\0\0\0\0\0\0\0\0\0\0\0<\30\20\60 \340 \60" "\20\30\14\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300`\60\20\20\60`\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\203\206LHH,&#\20\20\20\10\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340 \340 \340\0\0\0\0\0\0\0\0\0\17\0" "\0\0\0\0\0\377\0\0\0\0\0\0\17\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \0\0\0 \340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0 `\340 \0\0\0\0\0 \340` \0\0\0\0\0\0\0\0\3" "\36\360\200\0\0\0\0\0\200\360\36\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\16p\300p\16" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \0\0\0\0\0 \340 \0\0\0\0\0\0\0\0\7\374" "\0\0\0\340\34\4\34\340\0\0\0\374\7\0\0\0\0\0\0\0\0\0\0\17\370\300>\3\0\0\0\3" ">\300\370\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340 \0\0\0\0\0 \340` \0\0\0\0\0\0\0\0\0\0\0" "\1\3\4\30\260\340\260\30\4\3\1\0\0\0\0\0\0\0\0\0\0\200\300\340\260\214\206\1\0\0\0\1" "\206\214\260\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340\240 \0\0\0\0\0 \240\340` \0\0\0\0\0\0\0\0\0\0\0" "\0\3\6\30p\300p\30\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340 \240\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\0\0\0\300`\60\34\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\230\216\203\201\200\200\200" "\200\200\200\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\20\20\20\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\10\10\10\10\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\14x\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\1\7<\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\34" "p\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\6\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\10\10\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\60\30\60\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\14\7\1\0\0\0\0\0\1\7\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0 \0" "\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "`\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\200\200\200\377\30`@\300\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "p\30\10\14\4\4\4\14\10\10\30|\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@@ \60\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30`\377\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\30\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\17\71aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\60\20\20\20\20 \0\0\0\0\0\0\0\0\0\0\0\4" "\4\4\4\377\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30`\374\4\4\4\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\30\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60\20\34\7\0\0\0\0" "\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377`\30\10\14\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\0" "\200\200\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60\20\34\7\0\0\0\0\0\0" "\0\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\0\0\200\300d\64\34\14\4\4\0\0\0\0\0\0\0\0\0\0\200\200\200\377\1\1\3\6\14\30" "\260\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\20\20\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\374\60" "\10\4\4\14\30\360\60\10\4\4\14\30\360\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\377\200\200" "\0\0\0\0\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4" "\374`\30\10\14\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\0" "\200\200\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\10\370" "`\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\377\30`@\300\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0 \77 \0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\370\10\10\10\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\70\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \77 \0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\374`\20\30\10\14\4\4\4\14\10\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "p\330\210\214\4\4\4\14\10\30<\0\0\0\0\0\0\0\0\0\0\0\0\370`@@\301\201\201\201\303" "Bf<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4" "\4\377\4\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200" "\300@` \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "@\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\14" "|\304\4\0\0\0\0\0\4\304|\14\4\4\0\0\0\0\0\0\0\0\0\0\0\1\17\70\340\200\340\70" "\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\14\374" "\4\4\0\0\300@\300\0\0\4\4\374\14\4\0\0\0\0\0\0\0\0\0\1\77\340\60\36\3\0\3\36" "\60\340\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\14" "\34\64d\300\200\0\200\300d\64\34\14\4\0\0\0\0\0\0\0\0\0\200\300\340\260\230\14\7\3\7\14" "\230\260\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\34" "t\304\4\0\0\0\0\0\4\304t\34\4\0\0\0\0\0\0\0\0\0\0\0\0\1\7\34p\300p\34" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0 \70/! \0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "<\4\4\4\4\204\304d\64\34\14\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\230\214\206\203\200\200" "\200\200\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\340\60\30\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\300\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\376\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\14\10\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\10\30\60\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\177\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\3\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\14\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "` \60\60`@\300\200\0\200\300`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\10\34\34\34\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\77\37\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\370\14\6\3\1\1\1\1\3\2\16\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\6\14\10\370\10\10" "\14\4\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300@ `\300\200\0\0\0\0\0\0\0\0\0\0\0@@" "@_\361@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\237\200\200\200\200\200" "\200\200\300`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\363\36\4\6\2\2\2\6\4\36\363\1\0\0\0\0\0\0\0\0\0\0\0\20\31\17\4\14\10\10\10\14" "\4\17\31\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340\240 \0\0\0\0\0 \240\340` \0\0\0\0\0\0\0\0\0\0\0" "\200\203\216\230\360\300\360\230\216\203\200\0\0\0\0\0\0\0\0\0\0\0\0\0\4\204\204\204\204\377\204\204" "\204\204\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\360\20\30\10\10\10\10\10\10x\0\0\0\0\0\0\0\0\0\0\0<" "fB\303\203\6\14\30\20\60`@\300\200\0\0\0\0\0\0\0\0\0\0\0\300\0\0\1\3\2\6\14" "\30\370\10\10\17\0\0\0\0\0\0\0\0\0\0\0\3\2\2\2\2\2\2\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0 pp \0\0 pp \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\300@` `@\300\200\200\0\0\0\0\0\0\0\0\360\34\7\1" "\360\30\14\6\2\2\2\4\36\0\0\1\7\34\360\0\0\0\0\0\3\16\30\60aCF\314\210\210\210\314" "FB`\60\30\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0@` `\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\34\66\42\42\62\26\77 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300`\60\30\14\4\200\300`\60\30\14\4\0\0\0\0\0\0\0\0\2\7\17\30\60`\300\202\7\17" "\30\60`\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20" "\20\20\20\20\20\20\20\20\20\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@" "@@@@@@@@@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300@` `@\300\200\0\0\0\0\0\0\0\0\370\16\3\1" "\0\2\376\2\2\2\206\314x\0\0\1\3\16\370\0\0\0\0\0\3\16\30\60`H\317\211\201\201\203\206" "\314H`\60\30\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0`````````\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300p\30\10\10\10\30p\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\3\16\30\20\20\20\30\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 " " \377 \0\0\0\0\0\0\0\0\0@@@@@@@O@@" "@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0@p\30\10\10\30\260\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\300`\70\14\6\3\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0 \60\30\10\10\30\60\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0@\300\200\2\2\207\315x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377p\300\200\200\200\200\300" "`\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\360\60\30\10\10\370\10\10\10\370\10\10\10\0\0\0\0\0\0\0\0\0\7\37" "<\60``@\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\3\2\0\2\3\2\2\2\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\20\27\34\10\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\20\30\10\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300@` `@\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\7\35\20\60 \60\20\35\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\14" "\30\60`\300\200\4\14\30\60`\300\200\0\0\0\0\0\0\0\0\0\0\0\200\300`\60\30\17\7\202\300" "`\60\30\17\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\20\20\30\370\0\0\0\0\0\0\0\0\0\0\300`\70\10\0\0\0\0\0\0\200\200\200" "\377\200\200\200\0\200\300p\30\16\303a\340\0\0\0\0\0\0\0\0\0\0\0\200\340\60\34\6\3\0\30" "\36\23\221\220\377\220\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\20\20\30\370\0\0\0\0\0\0\0\0\0\300`\60\30\0\0\0\0\0\0\0\200\200\200" "\377\200\200\0\200\300p\30\216\303a `\300\0\0\0\0\0\0\0\200\300`\70\14\7\1\0\0\300" "\340\260\230\210\214\207\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\20\30\10\10\230\360`\0\0\0\0\0\0\200\300`\60\20\0\0\0\0\0 `\300\201" "\201\303f<\200\300p\30\16\3\301`\340\0\0\0\0\0\0\0\0\0@`\60\30\14\7\1\0\0\30" "\36\23\221\220\377\220\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\10\34\34\34\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340 \60\30\16\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\14\30\60 \60\20\20\34\0\0\0\0\0" "\0\0\0\0\0\0\0 \241\343&\344\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 \240\344&\343\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 $&\243\341 \341\203\6\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 &#\241\343\42\346\204\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 \42''\242\340 \340\202\7\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 \247\354(\354\207\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340<\7\0\0\0\7<\340\0\0\0\0\0\0\0\0\0\0\200\200\300\370\217\203\202\2\2\2\2\2" "\202\203\217\370\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \340 \340 \340\0\0\0\0\0\0\0\0\0\0" "\0\360\37\1\0\0\377@@@\360\0\0\7\0\0\0\0\0\0\0\200\200\370\217\203\2\202\202\202\377\200" "\200\200\201\200\200\200\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300@` `@@\200\340\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\0\0\0\0\0\0\0\0\0\0\7\34\60`@\300\200\200\200\300" "@` \60\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\20\27\34\10\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 !#&$ \340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377@@@@@\370\0\0\0\7\0\0\0\0\0\0\0\0\0\0\200\200\200\377\200\200\200\200\200\201\200" "\200\200\200\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 $&#! \340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377@@@@@\370\0\0\0\7\0\0\0\0\0\0\0\0\0\0\200\200\200\377\200\200\200\200\200\201\200" "\200\200\200\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340$&#! !#&$\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377@@@@@\370\0\0\0\7\0\0\0\0\0\0\0\0\0\0\200\200\200\377\200\200\200\200\200\201\200" "\200\200\200\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \342''\42 \42''\42\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377@@@@@\370\0\0\0\7\0\0\0\0\0\0\0\0\0\0\200\200\200\377\200\200\200\200\200\201\200" "\200\200\200\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 !\343&$ \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 $\346#! \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 $&#!\340!#&$ \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\42''\42 \340 \42''\42\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 `@\300\200\0\0\0\0\0\0\0\0\0\0\0@@\377" "@@@@\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\200\200\377\200\200\200\200\200\200\300@" "`\60\34\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0 \340`\306\3\1\3\2\6$&# \340 \0\0\0\0\0\0\0\0\0\377" "\0\1\7\14\70\340\200\0\0\0\0\377\0\0\0\0\0\0\0\0\0\200\200\377\200\200\200\200\0\0\3\6" "\34p\300\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300@a#&$`@\300\200\0\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\3\16\70`@\300\200\200\200\300" "@`\70\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300@` $&cA\300\200\0\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\3\16\70`@\300\200\200\200\300" "@`\70\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\304Fc! !cF\304\200\0\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\3\16\70`@\300\200\200\200\300" "@`\70\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\306Ca#\42&dF\303\200\0\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\3\16\70`@\300\200\200\200\300" "@`\70\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\2\207\307B` bG\307\202\0\0\0\0\0\0\0\0\0\0\0\374\7" "\1\0\0\0\0\0\0\0\0\0\1\7\374\0\0\0\0\0\0\0\0\0\3\16\70`@\300\200\200\200\300" "@`\70\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6" "\14\30\60`\300\200\300`\60\30\14\6\0\0\0\0\0\0\0\0\0\0\0`\60\30\14\6\3\1\3\6" "\14\30\60`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300@` `@\300\200\300`\60\0\0\0\0\0\0\0\0\370\16" "\3\0\0\0\200\340\60\30\16\3\3\16\370\0\0\0\0\0\0\0\0\0\203\316xxN\303\201\200\200\200" "\300`\70\16\3\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \1\3\6$ \340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \4\6\3! \340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 $&#\1\0\1#&$ \340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340\42''\42\0\0\0\42''\42\340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340\240 \0\4\6\3\1 \240\340` \0\0\0\0\0\0\0\0\0\0\0" "\0\3\16\30p\300p\30\16\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\2\2\2\2\2\2\6\4\4\14\370`\0\0\0\0\0\0\0\0\200\200\200\377\204\204\204\4\4\4\6" "\2\2\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300p\30\10\10\10\30p\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\0\0\0\20\20\70,g@\200\0\0\0\0\0\0\0\0\0\0\200\200\200\377\200\0\0p\300\200\200" "\200\300q\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0@`\60\30\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0`\60\20\60 `@`\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 pp \0\0 pp \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0c\301\201\200\200\301a\23\377\31a" "\301\201\201\201\301a!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "p\30\10\14\4\4\4\4\14\10\60\374\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200" "\300@` \60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\20\27\34\10\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\37\61aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\37\61aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0@`\60\30\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\37\61aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 pp \0\0\0 pp \0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\37\61aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300`\60\30\60`\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 pp \0\0 pp \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\60\20\20\60\60\240\340\300\300` \60\20\0\0\0\0\0\0\0\0\0\0\200\300" "f\42\63\21\21\20\20\21\63&L\370\340\0\0\0\0\0\0\0\0\0\17\70 @\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0`\60\20\60 `@`\60\0\0\0\0\0\0\0\0\0\0\0\0\4\4" "\374\60\30\10\14\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\0" "\200\200\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0@`\60\30\14\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0`\60\20\60 `@`\60\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 pp \0\0 pp \0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\201\203\203\201\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 pp \0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300`" "\20\30\10\14\4\4\204\304l\70\30l\306\0\0\0\0\0\0\0\0\0\217\370`p\330\214\206\203\201\300" "@` \30\17\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "`\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "`\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300`\60\30\60`\300\200\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "`\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 pp \0\0\0 pp \0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "`\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0@`\60\30\14\4\0\0\0\0\0\0\0\0\0\0\0\0\4\34" "t\304\4\0\0\0\0\0\4\304t\34\4\0\0\0\0\0\0\0\0\0\0\0\0\1\7\34p\300p\34" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0 \70/! \0\0\0\0\0\0\0\0\0" "\0\0\0\0\10\10\10\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "p\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\377\70`@\300\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0 \77 \0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0@\340\340@\0\0\0\0@\340\340@\0\0\0\0\0\0\0\0\0\0\4\34" "t\304\4\0\0\0\0\0\4\304t\34\4\0\0\0\0\0\0\0\0\0\0\0\0\1\7\34p\300p\34" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0 \70/! \0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--34-240-100-100-M-200-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 95/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR24_3x4_r[9124] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_r") = " ~\3\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\340\341\340" "@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\77\7\1\0\0\0\1\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\370\0\0\200\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\10\377\10\10\10\377\10\10\10\10\0\0\0\0\0\0\0\0\0\0\0\2\2\2\302\77\2\2\342\77" "\2\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300@` < `@\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\14\30\20\20\60 `@\301\200\0\0\0\0\0\0\0\0\0\0\0\0<\30\20\60 \340 \60" "\20\30\14\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300`\60\20\20\60`\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\203\206LHH,&#\20\20\20\10\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340 \340 \340\0\0\0\0\0\0\0\0\0\17\0" "\0\0\0\0\0\377\0\0\0\0\0\0\17\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\377\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \0\0\0 \340 \0\0\0\0\0\0\0\0\0\377" "\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0 `\340 \0\0\0\0\0 \340` \0\0\0\0\0\0\0\0\3" "\36\360\200\0\0\0\0\0\200\360\36\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\16p\300p\16" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \340 \0\0\0\0\0 \340 \0\0\0\0\0\0\0\0\7\374" "\0\0\0\340\34\4\34\340\0\0\0\374\7\0\0\0\0\0\0\0\0\0\0\17\370\300>\3\0\0\0\3" ">\300\370\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340 \0\0\0\0\0 \340` \0\0\0\0\0\0\0\0\0\0\0" "\1\3\4\30\260\340\260\30\4\3\1\0\0\0\0\0\0\0\0\0\0\200\300\340\260\214\206\1\0\0\0\1" "\206\214\260\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `\340\240 \0\0\0\0\0 \240\340` \0\0\0\0\0\0\0\0\0\0\0" "\0\3\6\30p\300p\30\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340 \240\340\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\0\0\0\300`\60\34\6\3\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\230\216\203\201\200\200\200" "\200\200\200\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\20\20\20\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\10\10\10\10\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\14x\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\1\7<\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\34" "p\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\6\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\10\10\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\60\30\60\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\14\7\1\0\0\0\0\0\1\7\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0 \0" "\0\0\0\0\0\0\0\0\4\14\30\60`@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\10\10\14\4\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\0|\306\202\203\201\201\201\201\301A" "c\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "`\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\200\200\200\377\30`@\300\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "p\30\10\14\4\4\4\14\10\10\30|\0\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\300" "@@ \60\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30`\377\0\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\30\377\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\17\71aA\301\201\201\201\201\201" "\301Aa!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\60\20\20\20\20 \0\0\0\0\0\0\0\0\0\0\0\4" "\4\4\4\377\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30`\374\4\4\4\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\30\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60\20\34\7\0\0\0\0" "\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377`\30\10\14\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\0" "\200\200\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\4\4\4\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60\20\34\7\0\0\0\0\0\0" "\0\0\0\0\0\0\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\0\0\200\300d\64\34\14\4\4\0\0\0\0\0\0\0\0\0\0\200\200\200\377\1\1\3\6\14\30" "\260\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\20\20\20\20\20\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\377\200\200" "\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\374\60" "\10\4\4\14\30\360\60\10\4\4\14\30\360\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\377\200\200" "\0\0\0\0\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4" "\374`\30\10\14\4\4\14\10\70\340\0\0\0\0\0\0\0\0\0\0\0\200\200\377\200\200\0\0\0\0\0" "\200\200\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\10\370" "`\30\10\14\4\4\4\4\14\10\30p\300\0\0\0\0\0\0\0\0\0\0\377\30`@\300\200\200\200\200" "\300@`\70\17\0\0\0\0\0\0\0 \77 \0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p" "\30\10\14\4\4\4\4\14\10\30p\370\10\10\10\0\0\0\0\0\0\0\17\70`@\300\200\200\200\200\300" "@`\70\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \77 \0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\4\4\4\374`\20\30\10\14\4\4\4\14\10\0\0\0\0\0\0\0\0\0\200\200\200\200\377\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "p\330\210\214\4\4\4\14\10\30<\0\0\0\0\0\0\0\0\0\0\0\0\370`@@\301\201\201\201\303" "Bf<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4" "\4\377\4\4\4\4\4\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200" "\300@` \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4" "\374\0\0\0\0\0\0\4\4\4\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77`\300\200\200\200\200\300" "@\60\377\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\4\14" "|\304\4\0\0\0\0\0\4\304|\14\4\4\0\0\0\0\0\0\0\0\0\0\0\1\17\70\340\200\340\70" "\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\14\374" "\4\4\0\0\300@\300\0\0\4\4\374\14\4\0\0\0\0\0\0\0\0\0\1\77\340\60\36\3\0\3\36" "\60\340\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\14" "\34\64d\300\200\0\200\300d\64\34\14\4\0\0\0\0\0\0\0\0\0\200\300\340\260\230\14\7\3\7\14" "\230\260\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\34" "t\304\4\0\0\0\0\0\4\304t\34\4\0\0\0\0\0\0\0\0\0\0\0\0\1\7\34p\300p\34" "\7\1\0\0\0\0\0\0\0\0\0\0\0\0 \70/! \0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "<\4\4\4\4\204\304d\64\34\14\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\230\214\206\203\200\200" "\200\200\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\340\60\30\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\300\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\376\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\14\10\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\10\30\60\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\177\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\3\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\10\14\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "` \60\60`@\300\200\0\200\300`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -Adobe-Courier-Medium-R-Normal--34-240-100-100-M-200-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 18/873 BBX Build Mode: 3 */ const uint8_t u8x8_font_courR24_3x4_n[2596] U8X8_FONT_SECTION("u8x8_font_courR24_3x4_n") = " :\3\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\6\4\204\314x\37x\314\204\4\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\3\0\0\0\0\0" "\3\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\377\1\1" "\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\340`\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<\37\7\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\60\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\34\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300p\36\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300@@@\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\370\7\1\0\0\0\0\0\1\7\370\0\0\0\0\0\0\0\0\0\0\0\0\0\37\360\200\0\0\0\0\0" "\200\360\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\2\2\2\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\1\1\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\2\2\2\3\2\2\2\2\2\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200@@@@@\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\7\1\0\0\0\0\0\200\300p\37\0\0\0\0\0\0\0\0\0\0\0\0\200\300`\60\30\14\6\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\2\2\2\2\2\2\2\2\2\2\2\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300@@@\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\1\0\0\200\200\200\200@!\37\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0" "\1\201\302|\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\2\2\2\2\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200@\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200`\60\14\6\1\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\13\11\10\10\10\10\10\10" "\377\10\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\2\3\2\2\2\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300@@@@@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377@@` `@\300\200\0\0\0\0\0\0\0\0\0\0\0\0@\300\200\0\0\0\0\0\0" "\0\200\343>\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\2\2\2\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300@@@@\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\360\34\307A` `@\300\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\300\0\0\0\0\0" "\0\0\301\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\2\2\2\3\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300@@@@@@@@@\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\0\0\0\0\0\0\200\360\36\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300|\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200@@@@@\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\36\63@\300\200\200\200\300@\63\36\0\0\0\0\0\0\0\0\0\0\0\0\0|\307\1\1\0\0\0\1" "\1\307|\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\2\2\2\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300@@@@\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "~\303\0\0\0\0\0\0\200\301\77\374\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\2\2\3\201" "\301`\34\3\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\2\3\1\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0`\360\360\360`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-LucasArts SCUMM Subtitle Roman Outline-Medium-R-Normal--32-320-72-72-P-107-ISO10646-1 Copyright: Copyright Goatmeal 2013 LucasArts SCUMM - Subtitle - Roman Glyphs: 89/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_lucasarts_scumm_subtitle_o_2x2_f[7076] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_o_2x2_f") = " \374\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0~\303\1\1\303~\0\0\0\0\0\0\0\0\0\0\0\37\22\22\37\0\0\0\0\0\0\0" "\0\0\0\0\37\21\21\37\37\21\21\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\37\21\21\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\276\222\302b>\0\0\0\0\0\0" "\0\0\0\0\300@@@@@@@\300\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\22\22\36\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300`\60\30\214\306c\61\37\0\0\0\0\0\37\21\30\14\6\3\1\0\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\26\24\26\23\30\14\7" "\1\0\0\0\34\26\363\1\1\377\0\0\0\0\0\0\0\0\0\0\34\24\27\20\20\27\24\34\0\0\0\0" "\0\0\0\0\34\26\23\231\315e=\231\303f<\0\0\0\0\0\34\26\23\21\24\26\27\25\24\24\34\0" "\0\0\0\0\34\26\23\371\255\245\275\31C\346\274\0\0\0\0\0\7\15\31\23\26\24\27\23\30\14\7\0" "\0\0\0\0\300`\60\230\314\346\363\1\1\377\200\0\0\0\0\0\3\2\2\2\2\2\36\20\20\36\3\0" "\0\0\0\0\177AA]UU\325\225\65e\307\0\0\0\0\0\7\15\31\23\26\24\26\23\30\14\7\0" "\0\0\0\0\374\6\3\231\335U\335\231\63v\334\0\0\0\0\0\7\14\30\23\26\24\26\23\30\14\7\0" "\0\0\0\0\7\5\5\345\65\35\315e\61\31\17\0\0\0\0\0\0\0\0\37\20\20\37\0\0\0\0\0" "\0\0\0\0\274\346C\31\275\245\275\31C\346\274\0\0\0\0\0\7\14\30\23\27\24\27\23\30\14\7\0" "\0\0\0\0|\306\203\71mEm\71\3\6\374\0\0\0\0\0\7\15\31\23\27\25\27\23\30\14\7\0" "\0\0\0\0xHHx\0\0\0\0\0\0\0\0\0\0\0\0\17\11\11\17\0\0\0\0\0\0\0\0" "\0\0\0\0xHHx\0\0\0\0\0\0\0\0\0\0\0\0\77)\61\37\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\26\23\231\315e=\231\303f<\0\0\0\0\0\0\0\0\37\24\24\37\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\70\16CqqG\34p\300\0\0\0\34\26\23\20\24\37\1\1\1\1\37\24" "\21\27\34\0\7\375\1\1\275\275\231\3f\374\200\0\0\0\0\0\34\27\20\20\27\24\27\23\30\14\7\0" "\0\0\0\0\360\34\6\343\271\15\5\15\31\63!\77\0\0\0\0\1\7\14\30\23\26\24\26\22\33\15\7" "\0\0\0\0\7\375\1\1\375\5\15\271\343\6\34\360\0\0\0\0\34\27\20\20\27\24\26\23\30\14\7\1" "\0\0\0\0\7\375\1\1\275\35\15\375\31\21\37\0\0\0\0\0\34\27\20\20\27\27\26\27\23\21\37\0" "\0\0\0\0\7\375\1\1\275\35\15\375\31\21\37\0\0\0\0\0\34\27\20\20\27\27\36\3\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\305MYsa\177\300\0\0\0\1\7\14\30\23\26\25\27\33\20\20\37" "\1\0\0\0\7\375\1\1\275\247\247\275\1\1\375\7\0\0\0\0\34\27\20\20\27\34\34\27\20\20\27\34" "\0\0\0\0\7\375\1\1\375\7\0\0\0\0\0\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\207\375\1\1\375\7\0\0\0\0\0\0\17\31\20\22\27\23\20\30\17\0\0\0" "\0\0\0\0\7\375\1\1\235\17g\361\231\15\5\7\0\0\0\0\34\27\20\20\27\37\36\24\21\23\26\34" "\0\0\0\0\7\375\1\1\375\5\7\0\0\0\0\0\0\0\0\0\34\27\20\20\27\24\24\24\26\23\21\37" "\0\0\0\0\7\375\1\1\361\303\16<\16\303\361\1\1\375\7\0\34\27\20\20\27\37\3\2\3\37\27\20" "\20\27\34\0\7\375\1\1\361\307\34\177\375\1\1\375\7\0\0\0\34\27\20\20\27\37\7\34\21\20\20\27" "\34\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\26\24\26\23\30\14\7" "\1\0\0\0\7\375\1\1\275\245\275\231\303f<\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\66bFSX|\7" "\1\0\0\0\7\375\1\1\275\245\275\31C\346\274\0\0\0\0\0\34\27\20\20\27\34\35\27\20\20\27\34" "\0\0\0\0\232\332\326\324\34\60\340\0\0\0\0\0\0\7\14\30\22\26\26\26\22\33\17\0\0" "\0\0\0\0\300`\60\234\324\326\332\32>\340\0\0\0\0\0\0\7\14\30\22\26\26\26\22\33\17\0\0" "\0\0\0\0\300`<\226\322\332\322\26<\340\0\0\0\0\0\0\7\14\30\22\26\26\26\22\33\17\0\0" "\0\0\0\0\300`<\224\324\334\324\24<\340\0\0\0\0\0\0\7\14\30\22\26\26\26\22\33\17\0\0" "\0\0\0\0\16\12\372\26\24\374\0\0\0\0\0\0\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\366\32\32\366\34\0\0\0\0\0\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\34\364\34\34\364\34\0\0\0\0\0\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0p\334\24\24\334pp\334\24\24\374\0\0\0\0\0\0\17\30\20\23\26\26\33\20\20\27\34" "\0\0\0"; /* Fontname: -FreeType-LucasArts SCUMM Subtitle Roman Outline-Medium-R-Normal--32-320-72-72-P-107-ISO10646-1 Copyright: Copyright Goatmeal 2013 LucasArts SCUMM - Subtitle - Roman Glyphs: 74/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_lucasarts_scumm_subtitle_o_2x2_r[2916] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_o_2x2_r") = " z\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0~\303\1\1\303~\0\0\0\0\0\0\0\0\0\0\0\37\22\22\37\0\0\0\0\0\0\0" "\0\0\0\0\37\21\21\37\37\21\21\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\37\21\21\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\276\222\302b>\0\0\0\0\0\0" "\0\0\0\0\300@@@@@@@\300\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\22\22\36\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300`\60\30\214\306c\61\37\0\0\0\0\0\37\21\30\14\6\3\1\0\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\26\24\26\23\30\14\7" "\1\0\0\0\34\26\363\1\1\377\0\0\0\0\0\0\0\0\0\0\34\24\27\20\20\27\24\34\0\0\0\0" "\0\0\0\0\34\26\23\231\315e=\231\303f<\0\0\0\0\0\34\26\23\21\24\26\27\25\24\24\34\0" "\0\0\0\0\34\26\23\371\255\245\275\31C\346\274\0\0\0\0\0\7\15\31\23\26\24\27\23\30\14\7\0" "\0\0\0\0\300`\60\230\314\346\363\1\1\377\200\0\0\0\0\0\3\2\2\2\2\2\36\20\20\36\3\0" "\0\0\0\0\177AA]UU\325\225\65e\307\0\0\0\0\0\7\15\31\23\26\24\26\23\30\14\7\0" "\0\0\0\0\374\6\3\231\335U\335\231\63v\334\0\0\0\0\0\7\14\30\23\26\24\26\23\30\14\7\0" "\0\0\0\0\7\5\5\345\65\35\315e\61\31\17\0\0\0\0\0\0\0\0\37\20\20\37\0\0\0\0\0" "\0\0\0\0\274\346C\31\275\245\275\31C\346\274\0\0\0\0\0\7\14\30\23\27\24\27\23\30\14\7\0" "\0\0\0\0|\306\203\71mEm\71\3\6\374\0\0\0\0\0\7\15\31\23\27\25\27\23\30\14\7\0" "\0\0\0\0xHHx\0\0\0\0\0\0\0\0\0\0\0\0\17\11\11\17\0\0\0\0\0\0\0\0" "\0\0\0\0xHHx\0\0\0\0\0\0\0\0\0\0\0\0\77)\61\37\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\26\23\231\315e=\231\303f<\0\0\0\0\0\0\0\0\37\24\24\37\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\70\16CqqG\34p\300\0\0\0\34\26\23\20\24\37\1\1\1\1\37\24" "\21\27\34\0\7\375\1\1\275\275\231\3f\374\200\0\0\0\0\0\34\27\20\20\27\24\27\23\30\14\7\0" "\0\0\0\0\360\34\6\343\271\15\5\15\31\63!\77\0\0\0\0\1\7\14\30\23\26\24\26\22\33\15\7" "\0\0\0\0\7\375\1\1\375\5\15\271\343\6\34\360\0\0\0\0\34\27\20\20\27\24\26\23\30\14\7\1" "\0\0\0\0\7\375\1\1\275\35\15\375\31\21\37\0\0\0\0\0\34\27\20\20\27\27\26\27\23\21\37\0" "\0\0\0\0\7\375\1\1\275\35\15\375\31\21\37\0\0\0\0\0\34\27\20\20\27\27\36\3\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\305MYsa\177\300\0\0\0\1\7\14\30\23\26\25\27\33\20\20\37" "\1\0\0\0\7\375\1\1\275\247\247\275\1\1\375\7\0\0\0\0\34\27\20\20\27\34\34\27\20\20\27\34" "\0\0\0\0\7\375\1\1\375\7\0\0\0\0\0\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\207\375\1\1\375\7\0\0\0\0\0\0\17\31\20\22\27\23\20\30\17\0\0\0" "\0\0\0\0\7\375\1\1\235\17g\361\231\15\5\7\0\0\0\0\34\27\20\20\27\37\36\24\21\23\26\34" "\0\0\0\0\7\375\1\1\375\5\7\0\0\0\0\0\0\0\0\0\34\27\20\20\27\24\24\24\26\23\21\37" "\0\0\0\0\7\375\1\1\361\303\16<\16\303\361\1\1\375\7\0\34\27\20\20\27\37\3\2\3\37\27\20" "\20\27\34\0\7\375\1\1\361\307\34\177\375\1\1\375\7\0\0\0\34\27\20\20\27\37\7\34\21\20\20\27" "\34\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\26\24\26\23\30\14\7" "\1\0\0\0\7\375\1\1\275\245\275\231\303f<\0\0\0\0\0\34\27\20\20\27\34\0\0\0\0\0\0" "\0\0\0\0\360\34\6\343\271\15\5\15\271\343\6\34\360\0\0\0\1\7\14\30\23\66bFSX|\7" "\1\0\0\0\7\375\1\1\275\245\275\31C\346\274\0\0\0\0\0\34\27\20\20\27\34\35\27\20\20\27\34" "\0\0\0\0\0\0\0\0\0>#\61\30\14\6\3\1\0\0\0\0" "\0\0\0\0\340\70\14\306r\32\12\32r\306\14\70\340\0\0\0\3\16\30\61',(,'\61\30\16" "\3\0\0\0\70,\346\2\2\376\0\0\0\0\0\0\0\0\0\0\70(/ /(\70\0\0\0\0" "\0\0\0\0\70,&\62\232\312z\62\206\314x\0\0\0\0\0\70,&#),.+)(\70\0" "\0\0\0\0\70,&\362ZJz\62\206\314x\0\0\0\0\0\16\32\62'-)/&\60\31\17\0" "\0\0\0\0\200\300`\60\230\314\346\2\2\376\0\0\0\0\0\0\7\4\4\5\5\5= =\7\0" "\0\0\0\0\376\202\202\272\252\252\252*j\312\216\0\0\0\0\0\16\32\62&,(-'\60\30\17\0" "\0\0\0\0\370\14\6\62\272\252\272\62f\354\270\0\0\0\0\0\17\30\60'-(-'\60\30\17\0" "\0\0\0\0\16\12\12\312j:\232\312b\62\36\0\0\0\0\0\0\0\0\77 \77\0\0\0\0\0" "\0\0\0\0x\314\206\62zJz\62\206\314x\0\0\0\0\0\17\31\60&/)/&\60\31\17\0" "\0\0\0\0\370\214\6r\332\212\332r\6\14\370\0\0\0\0\0\16\33\63&.*.&\60\30\17\0" "\0\0\0\0\360\220\220\360\0\0\0\0\0\0\0\0\0\0\0\0\36\22\22\36\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-LucasArts SCUMM Subtitle Roman-Medium-R-Normal--16-160-72-72-P-88-ISO10646-1 Copyright: Copyright Goatmeal 2013 Glyphs: 89/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_f[7076] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_f") = " \374\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0<\376\376<\0\0\0\0\0\0\0\0\0\0\0\0\0\15\15\0\0\0\0\0\0\0\0" "\0\0\0\0\0\16\16\0\0\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@l<\34\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340p\70\34\16\0\0\0\0\0\0\0\16\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0" "\0\0\0\0\0\10\14\376\376\0\0\0\0\0\0\0\0\0\0\0\0\10\10\17\17\10\10\0\0\0\0\0" "\0\0\0\0\0\10\14\6\2\202\302f<\30\0\0\0\0\0\0\0\10\14\16\13\11\10\10\10\10\0\0" "\0\0\0\0\0\10\14\6BBB\346\274\30\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300`\60\30\14\376\376\0\0\0\0\0\0\0\0\1\1\1\1\1\1\17\17\1\0\0" "\0\0\0\0\0>>\42\42\42\42b\302\202\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\370\374f\42\42\42f\314\210\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\2\2\2\302\342\62\32\16\6\0\0\0\0\0\0\0\0\0\0\17\17\0\0\0\0\0\0" "\0\0\0\0\0\30\274\346BBB\346\274\30\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\70|\306\202\202\202\306\374\370\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\6\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\26\16\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\10\14\6\2\202\302f<\30\0\0\0\0\0\0\0\0\0\0\13\13\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360\274\216\216\270\340\200\0\0\0\0\0\10\14\17\13\0\0\0\0\0\0\13" "\16\10\0\0\0\2\376\376BBf\374\230\0\0\0\0\0\0\0\0\10\17\17\10\10\10\14\7\3\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\14\36\0\0\0\0\0\0\0\3\7\14\10\10\10\14\4\2\0" "\0\0\0\0\0\2\376\376\2\2\2\6\34\370\340\0\0\0\0\0\0\10\17\17\10\10\10\14\7\3\0\0" "\0\0\0\0\0\2\376\376B\342\362\2\6\16\0\0\0\0\0\0\0\10\17\17\10\10\11\10\14\16\0\0" "\0\0\0\0\0\2\376\376B\342\362\2\6\16\0\0\0\0\0\0\0\10\17\17\10\10\1\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\202\206\214\236\200\0\0\0\0\0\0\3\7\14\10\10\10\4\17\17\0" "\0\0\0\0\0\2\376\376B@@B\376\376\2\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\2\376\376\2\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\2\376\376\2\0\0\0\0\0\0\0\0\6\17\15\10\14\17\7\0\0\0\0" "\0\0\0\0\0\2\376\376b\360\230\16\6\2\2\0\0\0\0\0\0\10\17\17\10\0\1\13\16\14\10\0" "\0\0\0\0\0\2\376\376\2\2\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\10\10\10\10\14\16\0" "\0\0\0\0\0\2\376\376\16<\360\300\360<\16\376\376\2\0\0\0\10\17\17\10\0\0\1\0\0\10\17" "\17\10\0\0\0\2\376\376\16\70\340\200\2\376\376\2\0\0\0\0\0\10\17\17\10\0\0\3\16\17\17\10" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0" "\0\0\0\0\0\2\376\376BBBf<\30\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\34\70,'\3\0" "\0\0\0\0\0\2\376\376BBB\346\274\30\0\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\30<&fB\302\202\204\16\0\0\0\0\0\0\0\16\4\10\10\10\14\14\7\3\0\0" "\0\0\0\0\0\16\6\2\376\376\2\6\16\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0" "\0\0\0\0\0\2\376\376\2\0\0\2\376\2\0\0\0\0\0\0\0\0\7\17\14\10\10\14\7\0\0\0" "\0\0\0\0\0\2>\376\302\0\0\302>\2\0\0\0\0\0\0\0\0\0\1\17\16\16\1\0\0\0\0" "\0\0\0\0\0\2>\376\302\0\302\376\376\302\0\0\302>\2\0\0\0\0\1\17\16\17\1\1\17\16\16" "\1\0\0\0\0\2\6\16\32\260\340\340\260\32\16\6\2\0\0\0\0\10\14\16\13\1\0\0\1\13\16\14" "\10\0\0\0\0\2\16>r\300\300r>\16\2\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0" "\0\0\0\0\0\16\6\202\302\342r:\36\16\0\0\0\0\0\0\0\16\17\13\11\10\10\10\14\16\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@` \340\300\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0\2\376\376` `\300\200\0\0\0\0\0\0\0\0\17\17\4\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300` `@\0\0\0\0\0\0\0\0\3\7\14\10\10\10\14\4\0\0\0" "\0\0\0\0\0\200\300` b\376\376\0\0\0\0\0\0\0\0\3\7\14\10\10\4\17\17\10\0\0" "\0\0\0\0\0\200\300` \340\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0 \374\376\42\42\16\14\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300` p\320\220\0\0\0\0\0\0\0\61;fDDDj\71\61\0\0" "\0\0\0\0\0\2\376\376@ `\300\200\0\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\0\354\354\0\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\354\354\0\0\0\0\0\0\0\0\0 `@@`\177\77\0\0\0\0" "\0\0\0\0\0\2\376\376\2\0\240` \0\0\0\0\0\0\0\10\17\17\12\1\1\13\16\14\10\0" "\0\0\0\0\0\2\376\376\0\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0 \340\340@ \340\300` \340\300\0\0\0\0\0\10\17\17\10\0\17\17\10\0\17\17" "\10\0\0\0\0 \340\340@ \340\300\0\0\0\0\0\0\0\0\10\17\17\10\0\0\17\17\10\0\0" "\0\0\0\0\0\200\300` `\300\200\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0 \340\340@ `\300\200\0\0\0\0\0\0\0\200\377\377\204\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300` @\340\340\0\0\0\0\0\0\0\0\3\7\14\10\10\204\377\377\200\0\0" "\0\0\0\0\0 \340\340\300` \340\300\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\240 @\340\0\0\0\0\0\0\0\0\0\16\5\11\11\13\17\6\0\0\0\0" "\0\0\0\0\0 \370\374 \0\0\0\0\0\0\0\0\0\0\0\0\7\17\10\10\4\0\0\0\0\0" "\0\0\0\0\0 \340\340 \0\0 \340\340\0\0\0\0\0\0\0\0\7\17\14\10\10\4\17\17\10\0" "\0\0\0\0\0 `\340\240\0\0\240\340` \0\0\0\0\0\0\0\0\1\7\16\16\7\1\0\0\0" "\0\0\0\0\0 `\340\240\0\0\240\340\340\240\0\0\0\240`\0\0\0\1\7\16\16\7\1\1\7\16" "\10\6\1\0\0 `\340\200\0\200\340` \0\0\0\0\0\10\10\14\16\3\1\3\16\14\10\10" "\0\0\0\0\0 `\340\240\0\0\0 \340 \0\0\0\0\0 `@Ac>\34\7\1\0\0" "\0\0\0\0\0\340` \240\340` \0\0\0\0\0\0\0\0\10\14\16\13\11\10\14\16\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\3\3\300\360\274\216\216\270\340\200\3\3\0\0\0\10\14\17\13\0\0\0\0\0\0\13" "\16\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\10\370\370\212\212\311\11\30\70\0\0\0\0\0\0\0\10\17\17\10\10\11\10\14\16\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@`$$((\340\300\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@`(,$,\350\300\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@h( \350\310\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0@`$**$\340\300\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300` `@\0\0\0\0\0\0\0\0\3\7\14(\30\10\14\4\0\0\0" "\0\0\0\0\0\200\300d$((\340\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0\200\300`(($\344\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0\200\300h,$,\350\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0\200\300h( (\350\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0\4\4\350\350\0\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\10\344\344\10\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\10\340\340\10\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \350\350 \0\0 \350\350\0\0\0\0\0\0\0\0\7\17\14\10\10\4\17\17\10\0" "\0\0\0"; /* Fontname: -FreeType-LucasArts SCUMM Subtitle Roman-Medium-R-Normal--16-160-72-72-P-88-ISO10646-1 Copyright: Copyright Goatmeal 2013 Glyphs: 74/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_r[2916] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_r") = " z\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0<\376\376<\0\0\0\0\0\0\0\0\0\0\0\0\0\15\15\0\0\0\0\0\0\0\0" "\0\0\0\0\0\16\16\0\0\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@l<\34\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340p\70\34\16\0\0\0\0\0\0\0\16\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0" "\0\0\0\0\0\10\14\376\376\0\0\0\0\0\0\0\0\0\0\0\0\10\10\17\17\10\10\0\0\0\0\0" "\0\0\0\0\0\10\14\6\2\202\302f<\30\0\0\0\0\0\0\0\10\14\16\13\11\10\10\10\10\0\0" "\0\0\0\0\0\10\14\6BBB\346\274\30\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300`\60\30\14\376\376\0\0\0\0\0\0\0\0\1\1\1\1\1\1\17\17\1\0\0" "\0\0\0\0\0>>\42\42\42\42b\302\202\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\370\374f\42\42\42f\314\210\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\2\2\2\302\342\62\32\16\6\0\0\0\0\0\0\0\0\0\0\17\17\0\0\0\0\0\0" "\0\0\0\0\0\30\274\346BBB\346\274\30\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\70|\306\202\202\202\306\374\370\0\0\0\0\0\0\0\2\6\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\6\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\26\16\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\10\14\6\2\202\302f<\30\0\0\0\0\0\0\0\0\0\0\13\13\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360\274\216\216\270\340\200\0\0\0\0\0\10\14\17\13\0\0\0\0\0\0\13" "\16\10\0\0\0\2\376\376BBf\374\230\0\0\0\0\0\0\0\0\10\17\17\10\10\10\14\7\3\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\14\36\0\0\0\0\0\0\0\3\7\14\10\10\10\14\4\2\0" "\0\0\0\0\0\2\376\376\2\2\2\6\34\370\340\0\0\0\0\0\0\10\17\17\10\10\10\14\7\3\0\0" "\0\0\0\0\0\2\376\376B\342\362\2\6\16\0\0\0\0\0\0\0\10\17\17\10\10\11\10\14\16\0\0" "\0\0\0\0\0\2\376\376B\342\362\2\6\16\0\0\0\0\0\0\0\10\17\17\10\10\1\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\202\206\214\236\200\0\0\0\0\0\0\3\7\14\10\10\10\4\17\17\0" "\0\0\0\0\0\2\376\376B@@B\376\376\2\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\2\376\376\2\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\2\376\376\2\0\0\0\0\0\0\0\0\6\17\15\10\14\17\7\0\0\0\0" "\0\0\0\0\0\2\376\376b\360\230\16\6\2\2\0\0\0\0\0\0\10\17\17\10\0\1\13\16\14\10\0" "\0\0\0\0\0\2\376\376\2\2\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\10\10\10\10\14\16\0" "\0\0\0\0\0\2\376\376\16<\360\300\360<\16\376\376\2\0\0\0\10\17\17\10\0\0\1\0\0\10\17" "\17\10\0\0\0\2\376\376\16\70\340\200\2\376\376\2\0\0\0\0\0\10\17\17\10\0\0\3\16\17\17\10" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0" "\0\0\0\0\0\2\376\376BBBf<\30\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\340\370\34\6\2\2\2\6\34\370\340\0\0\0\0\0\0\3\7\14\10\34\70,'\3\0" "\0\0\0\0\0\2\376\376BBB\346\274\30\0\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\30<&fB\302\202\204\16\0\0\0\0\0\0\0\16\4\10\10\10\14\14\7\3\0\0" "\0\0\0\0\0\16\6\2\376\376\2\6\16\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0" "\0\0\0\0\0\2\376\376\2\0\0\2\376\2\0\0\0\0\0\0\0\0\7\17\14\10\10\14\7\0\0\0" "\0\0\0\0\0\2>\376\302\0\0\302>\2\0\0\0\0\0\0\0\0\0\1\17\16\16\1\0\0\0\0" "\0\0\0\0\0\2>\376\302\0\302\376\376\302\0\0\302>\2\0\0\0\0\1\17\16\17\1\1\17\16\16" "\1\0\0\0\0\2\6\16\32\260\340\340\260\32\16\6\2\0\0\0\0\10\14\16\13\1\0\0\1\13\16\14" "\10\0\0\0\0\2\16>r\300\300r>\16\2\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0" "\0\0\0\0\0\16\6\202\302\342r:\36\16\0\0\0\0\0\0\0\16\17\13\11\10\10\10\14\16\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@` \340\300\0\0\0\0\0\0\0\0\6\17\11\11\11\15\7\17\10\0\0" "\0\0\0\0\0\2\376\376` `\300\200\0\0\0\0\0\0\0\0\17\17\4\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300` `@\0\0\0\0\0\0\0\0\3\7\14\10\10\10\14\4\0\0\0" "\0\0\0\0\0\200\300` b\376\376\0\0\0\0\0\0\0\0\3\7\14\10\10\4\17\17\10\0\0" "\0\0\0\0\0\200\300` \340\300\0\0\0\0\0\0\0\0\3\7\15\11\11\11\15\4\0\0\0" "\0\0\0\0\0 \374\376\42\42\16\14\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300` p\320\220\0\0\0\0\0\0\0\61;fDDDj\71\61\0\0" "\0\0\0\0\0\2\376\376@ `\300\200\0\0\0\0\0\0\0\10\17\17\10\0\0\10\17\17\10\0" "\0\0\0\0\0\0\354\354\0\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\354\354\0\0\0\0\0\0\0\0\0 `@@`\177\77\0\0\0\0" "\0\0\0\0\0\2\376\376\2\0\240` \0\0\0\0\0\0\0\10\17\17\12\1\1\13\16\14\10\0" "\0\0\0\0\0\2\376\376\0\0\0\0\0\0\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0 \340\340@ \340\300` \340\300\0\0\0\0\0\10\17\17\10\0\17\17\10\0\17\17" "\10\0\0\0\0 \340\340@ \340\300\0\0\0\0\0\0\0\0\10\17\17\10\0\0\17\17\10\0\0" "\0\0\0\0\0\200\300` `\300\200\0\0\0\0\0\0\0\3\7\14\10\10\10\14\7\3\0\0" "\0\0\0\0\0 \340\340@ `\300\200\0\0\0\0\0\0\0\200\377\377\204\10\10\14\7\3\0\0" "\0\0\0\0\0\200\300` @\340\340\0\0\0\0\0\0\0\0\3\7\14\10\10\204\377\377\200\0\0" "\0\0\0\0\0 \340\340\300` \340\300\0\0\0\0\0\0\0\10\17\17\10\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\240 @\340\0\0\0\0\0\0\0\0\0\16\5\11\11\13\17\6\0\0\0\0" "\0\0\0\0\0 \370\374 \0\0\0\0\0\0\0\0\0\0\0\0\7\17\10\10\4\0\0\0\0\0" "\0\0\0\0\0 \340\340 \0\0 \340\340\0\0\0\0\0\0\0\0\7\17\14\10\10\4\17\17\10\0" "\0\0\0\0\0 `\340\240\0\0\240\340` \0\0\0\0\0\0\0\0\1\7\16\16\7\1\0\0\0" "\0\0\0\0\0 `\340\240\0\0\240\340\340\240\0\0\0\240`\0\0\0\1\7\16\16\7\1\1\7\16" "\10\6\1\0\0 `\340\200\0\200\340` \0\0\0\0\0\10\10\14\16\3\1\3\16\14\10\10" "\0\0\0\0\0 `\340\240\0\0\0 \340 \0\0\0\0\0 `@Ac>\34\7\1\0\0" "\0\0\0\0\0\340` \240\340` \0\0\0\0\0\0\0\0\10\14\16\13\11\10\14\16\0\0\0" "\0\0\0"; /* Fontname: -FreeType-LucasArts SCUMM Subtitle Roman-Medium-R-Normal--16-160-72-72-P-88-ISO10646-1 Copyright: Copyright Goatmeal 2013 Glyphs: 16/95 BBX Build Mode: 3 */ const uint8_t u8x8_font_lucasarts_scumm_subtitle_r_2x2_n[868] U8X8_FONT_SECTION("u8x8_font_lucasarts_scumm_subtitle_r_2x2_n") = " :\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\330x\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340p\70\34\0\0\0\0\0\0\0\34\16\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\300\360\70\14\4\4\4\14\70\360\300\0\0\0\0\0\1\7\16\30\20\20\20\30\16\7\1" "\0\0\0\0\0\20\30\374\374\0\0\0\0\0\0\0\0\0\0\0\0\20\20\37\37\20\20\0\0\0\0\0" "\0\0\0\0\0\20\30\14\4\4\204\314x\60\0\0\0\0\0\0\0\20\30\34\26\23\21\20\20\20\0\0" "\0\0\0\0\0\20\30\14\204\204\204\314x\60\0\0\0\0\0\0\0\4\14\30\20\20\20\31\17\6\0\0" "\0\0\0\0\0\0\200\300`\60\30\374\374\0\0\0\0\0\0\0\0\3\3\2\2\2\2\37\37\2\0\0" "\0\0\0\0\0||DDDD\304\204\4\0\0\0\0\0\0\0\4\14\30\20\20\20\30\17\7\0\0" "\0\0\0\0\0\360\370\314DDD\314\230\20\0\0\0\0\0\0\0\7\17\30\20\20\20\30\17\7\0\0" "\0\0\0\0\0\4\4\4\204\304d\64\34\14\0\0\0\0\0\0\0\0\0\0\37\37\0\0\0\0\0\0" "\0\0\0\0\0\60x\314\204\204\204\314x\60\0\0\0\0\0\0\0\6\17\31\20\20\20\31\17\6\0\0" "\0\0\0\0\0p\370\214\4\4\4\214\370\360\0\0\0\0\0\0\0\4\14\31\21\21\21\31\17\7\0\0" "\0\0\0\0\0``\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--30-300-72-72-P-138-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr21_2x4_f[14340] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_f") = " \377\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\70\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\300\343\343\303\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\374\374\370\0\0\0\374\374\370\0\0\0\0\0\0\0\3\3\3\0\0\0\3\3" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\60\0\0\0\360\360\20\0\0\0\6\6\6\346\377\77\6\6\6\366\377" "\37\6\6\6\0\6\6\306\377\77\6\6\6\346\377\77\6\6\6\0\0\0\0\1\1\0\0\0\0\1\1\0" "\0\0\0\0\0\0\200\300\340p\60\374\374\374\60`\340@\0\0\0\0\7\17\37\70\60\377\377\377`\340" "\300\200\0\0\0\0\60p`\300\300\377\377\377\340p\177\77\6\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\300\340\360\60\60\360\340\300\0\0\0\300\360p\20\0\3\7\17\14\14\17\207\343x>\17\3" "\0\0\0\0\0\0\300\360|\36\7\1|\376\377\203\203\377\376|\0\1\1\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\0\300\340\340p\60\60p\340\300\0\0\0\0\0\0\0\203\317\337x\360\360\234\37\17" "\1\0\200\0\0<\177\377\301\200\200\200\201\307\357~\70\374\357\307\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\1\0\0\0\0\0\0\0\0\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340p\60\70\34\10\0\0\0\0\0\0\360\376\377\7\1\0\0\0" "\0\0\0\0\0\0\0\0\17\177\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\36\34\70" "p \0\0\0\0\34\70\60p\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\37\376\370\200" "\0\0\0\0\0\0\0\0\0\0\0\200\360\377\77\3\0\0\0\0\0\0p\70\70\34\17\7\3\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0\30\30\30\60\60\240\377\377\240\60\60" "\30\30\30\0\0\0\10\34\36\7\3\0\0\3\7\36\14\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0``````\377\377\377``" "```\0\0\0\0\0\0\0\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\60\71\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0``````````" "```\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360|\30\0\0\0\0\0\0\0\0\200\340\370>\17\3" "\0\0\0\0\0\0\200\340\370>\17\3\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340p\60\60\60`\340\300\0\0\0\0\374\377\377\1\0\200\300`\70\14\7" "\377\377\370\0\0\7\37\177\376\347\303\200\200\300\300\360\177\37\7\0\0\0\0\0\0\0\1\1\1\1\0\0" "\0\0\0\0\0\0\200\300\300``\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\200\300\340`\60\60\60\60p\340\300\200\0\0\0\0\0\0\0\0\0\0\0\200\300\360" "\177\37\6\0\0\0\200\340\360\274\236\207\203\201\201\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0``p\60\60\60p\340\340\300\0\0\0\0\0\0\0\0````\360\370\337" "\217\2\0\0\0\0@\340\300\200\200\200\200\300\341\377\177\36\0\0\0\0\0\0\0\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\0\0\0\0\0\0\200\300p\70\16\7\1\377\377\377" "\0\0\0\0\0\6\7\7\6\6\6\6\6\377\377\377\6\6\6\0\0\0\0\0\0\0\0\0\0\1\1\1" "\0\0\0\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\0\0\0\0\0\177\177\77\30\30\30\30\70x" "\360\340\200\0\0\0``\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\300\340`p\60\60\60p``\0\0\0\0\374\377\377q\60\30\30\30\70x" "\360\340\200\0\0\0\17\77\177\340\300\200\200\200\300\340\377\177\37\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\60\60\60\60\60\60\60\60\260\360\360\60\0\0\0\0\0\0\0\0\0\200\360\374\77\7" "\1\0\0\0\0\0\0\0\200\360\374\77\7\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340p\60\60\60p\340\340\300\0\0\0\0\0\7\237\337xp `p\370\237" "\217\3\0\0\0>\177\377\340\300\200\200\200\200\300\341\177\77\10\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\300\340\340p\60\60\60p\340\300\200\0\0\0\0\37\177\377\300\300\200\200\200\300\300" "\377\377\376\0\0\0\0\300\300\300\201\201\201\301\300\360\177\37\7\0\0\0\0\0\0\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\60\71\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\0`\360\360\270\230\34\14\16\6\7\3\3" "\1\1\0\0\0\0\0\1\3\3\7\6\16\14\30\70\60p`\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14" "\14\14\14\0\0\6\6\6\6\6\6\6\6\6\6\6\6\6\6\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\6\16\14\34\230" "\270\360\360`\0`p\70\30\34\14\16\6\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 p\70\30\34\14\14\14\34\30\370\360\300\0\0\0\0\0\0\0\0\200\340\360x\34\37" "\17\3\0\0\0\0\0\0\0\0\303\343\343\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\200\300\340`p\60\60\60p`\340\300\0\0\374\377\377\3\0\360\370\374\16\6\6\6" "\377\377\377\0\3\37\77x\340\301\303\207\207\206\206\303\301\207\7\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\300\370\340\0\0\0\0\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\360\360\360\60\60\60\60\60\60p\340\340\300\0\0\0\377\377\377``````\360\370" "\237\217\3\0\0\377\377\377\200\200\200\200\200\200\300\301\377\177>\0\0\1\1\1\1\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\200\300\340`p\60\60\60p`\340\300\200\0\374\377\377\3\0\0\0\0\0\0\0" "\0\0\1\1\0\7\37\77x\340\300\300\200\200\200\300\300\340` \0\0\0\0\0\0\0\1\1\1\1\1" "\0\0\0\0\0\360\360\360\60\60\60\60\60p\340\340\300\0\0\0\0\377\377\377\0\0\0\0\0\0\0\1" "\377\377\374\0\0\377\377\377\200\200\200\200\200\300\340p\77\37\7\0\0\1\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\60\60\0\0\0\377\377\377````````" "`\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\60\60\0\0\0\377\377\377\60\60\60\60\60\60\60" "\60\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340`\60\60\60\60p`\340\300\200\0\374\377\377\1\0\0\0\0\0\200\200" "\200\200\201\200\0\7\37\77x\340\300\300\200\200\201\201\301\377\377\177\0\0\0\0\0\0\0\1\1\1\1\1" "\1\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\360\360\360\0\0\377\377\377````````" "\377\377\377\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0\60\60\60\60\360\360\360\60\60\60\60\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\200\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\60\60\60\60\360\360\360\60\60\60\0\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0@\340\300\200\200\200\300\340\377\177\17\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0\0" "\0\0\0\0\0\360\360\360\0\0\0\0\0\200\300\340p\60\20\0\0\377\377\377`p\370\336\217\3\1\0" "\0\0\0\0\0\377\377\377\0\0\0\3\7\17x\340\300\0\0" "\377\377\377\0\0\377\377\377\0\0\0\0\1\7\37|\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\0\0\0\300\300\340p\60\60\60\60p\340\300\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\37\77p\340\300\200\200\200\200\300\340x\77\37\1\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\360\360\360\60\60\60\60\60\60p`\340\300\0\0\0\377\377\377\300\300\300\300\300\300\340`" "\177\77\37\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\340p\60\60\60\60`\340\300\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\77\177\360\300\200\200\200\200\200\200\340\370\177\37\1\0\0\0\0\1\1\7\37\77\71\61\61" "\60\60\60\0\0\360\360\360\60\60\60\60\60\60p\340\340\300\0\0\0\377\377\377\300\300\300\300\300\300\340p" "\177\37\6\0\0\377\377\377\0\0\0\0\3\17\36|\360\300\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0\200\300\340`p\60\60\60\60`\340\300\0\0\0\0\7\37\37\70\60p`\340\300\300" "\200\200\0\0\0@p\340\300\300\200\200\200\200\300\301\343\177\77\14\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\60\60\60\60\60\60\360\360\360\60\60\60\60\60\60\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\360\360\360\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\37\177\377\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\20\360\360\300\0\0\0\0\0\0\0\0\200\360\360\20\0\0\7\77\376\360\200\0\0\0\340\374" "\77\7\0\0\0\0\0\0\0\7\77\374\370\177\17\1\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\360\360\300\0\0\0\0\200\300\0\0\0\0\0\360\360\0\77\377\360\0\300\370\77\37\377\360\200" "\0\376\177\1\0\0\17\377\374\37\1\0\0\0\17\377\377\37\0\0\0\0\0\1\1\0\0\0\0\0\0\0" "\1\0\0\0\0\20p\360\300\0\0\0\0\0\0\300\360p\20\0\0\0\0\1\7\17\276\370\370\376\17\3" "\1\0\0\0\0\0\300\360|\37\7\3\3\7\37|\360\340\200\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\0\0\60\360\340\200\0\0\0\0\0\0\0\340\360p\0\0\0\0\3\17>\370\360\300\360|\37" "\7\1\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\260\360\360\60\0\0\0\0\0\0\0\200\340\360|\36\7" "\3\0\0\0\0\200\340\360\374\236\217\203\200\200\200\200\200\200\200\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\374\374\374\14\14\14\14\14\14\14\0\0\0\0\0\0\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\14\14\14\14\14" "\14\14\0\0\0\0\30\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\370\340\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\17>\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\3\3\0\0\0\0\14\14\14\14\14\14\14\14\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\14\14\14\14\14\14\14\14\17\17" "\17\0\0\0\0\0\0\0\0\0\300\340\360\300\200\0\0\0\0\0\0\0\0\30\34\17\3\1\0\3\17>" "\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\14" "\14\14\14\0\0\0\0\0\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17>x\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\216\206\206\206\206\216\214" "\374\370\340\0\0<\376\377\303\203\201\201\201\301\341q\377\377\377\0\0\0\0\0\1\1\1\1\1\0\0\0" "\1\1\1\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\10\14\6\6\6\16\16\34" "\374\360\300\0\0\377\377\177\300\300\200\200\200\300\300\340\177\77\17\0\0\1\1\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\34\14\16\6\6\6\6\16" "\34<\10\0\0\17\77\177\360\300\300\200\200\200\200\300\300\340@\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\340\370\374\34\16\6\6\6\6\14\30" "\377\377\377\0\0\17\77\377\340\300\200\200\200\200\300p\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\234\216\206\206\206\206\216\214" "\370\360\0\0\0\17\77\177\341\301\301\201\201\201\201\301\301A\0\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\200\360\370\70\34\14\14\14\34\30\70\0\0\14\14\14\377\377\377\14\14\14\14\14" "\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\374\34\16\6\6\6\16\34\370" "\374F\6\6\0\0s\177\377\316\314\314\314\316\307\307\303\200\200\0\0\34\77\77qp`````p" "\71\77\37\6\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\30\14\14\6\6\16\36" "\374\370\300\0\0\0\377\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\1\1\1\0\0\0\0\0\0\0" "\1\1\1\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\6\6\6\6\376\376\376\0\0" "\0\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\6\6\6\6\6\6\376\376\376" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\60\70p```p\60\77\37\7" "\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\200\300\300\340p\70\34" "\16\6\2\0\0\0\377\377\377\3\1\3\7\17\376\360\200\0\0\0\0\0\300" "\370>\6\0\0\0\0\0\7\37\376\360\340\374\37\7\1\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\376\376\200\0\0\200\370|\360\200\0" "\0\200\376~\0\0\37\377\360\370\77\3\0\7\77\374\300\377\17\0\0\0\0\1\1\1\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\6\36\16\0\0\0\0\0\3\17~\370\300\370\77\17\1\0\0\0 p```p\70\37\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\6\6\6\6\206\306\346v>" "\36\6\0\0\0\200\300\360\370\274\216\207\203\201\200\200\200\200\200\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\200\340\340p\60\60\60\60\60\0\0\0\0\0\0\200\377\177\37\0\0\0\0" "\0\0\0\0\0\3\3\3\7\376\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77p```" "``\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\0\0" "\0\0\0\0\0\0\0\60\60\60\60pp\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\376" "\200\0\0\0\0\0\0\0\0\0\0\0\0\370\374\377\7\3\3\3\0\0\0````px\77\37\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\14\6\6\6\14\34\70\60\60" "\70\34\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0" "\0\0\0\0\0\0\0\0\0\0\360\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\20\0\0\0\0\0\340\370\374\16\6\3\3\373\377\17\3" "\7\16\4\0\0\7\37\77x`\340\374\377\307\300\340`p \0\0\0\0\0\0\0\14\17\3\0\0\0" "\0\0\0\0\0\0\0\0\200\340\340p\60\60\60\60p`\0\0\0\0\60\66\377\377\360\60\60\60\0\0" "\0\0\0\0\0\200\300\340\177\177o`\340\300\300\200\200\200\300\300\0\0\0\0\0\0\0\0\0\0\0\1" "\1\1\1\0\0\0\0\200\0\0\0\0\0\0\0\0\0\200\0\0\0\0\1\373\377\216\7\3\3\3\7\216" "\377\373\1\0\0\0\4\16\7\3\7\6\6\6\7\3\7\16\4\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\60\360\340\300\0\0\0\0\0\0\200\340\360\60\0\0\0\0\1\7\37<\370\340\370\36\17" "\3\0\0\0\0\0\63\63\63\63\63\377\377\377\63\63\63\63\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\0\0" "\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\300\360\370\30\34\14\14\14\34x\60\0\0\0\0\0\340\363\377\17\16\14\14\34\70\370" "\360@\0\0\0\0\200\301\3\3\7\6\6\16\36\377\371`\0\0\0\0\1\3\3\7\6\6\6\7\3\3" "\1\0\0\0\0\0\0\20\70\70\20\0\0\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\0\340\370\16\346\363\31\35\14\14\14\31\71" "#\6\14\370\7\37\70cG\316\234\230\230\230\214\314dp\70\17\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60\60\30\30\30\30\70\360\340\0\0\0\0\0\0\70~\306\302\303\303\303c\377" "\377\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340p\70\20\200\300\340" "`\60\20\0\0\0\3\7\17\34\70p!\3\7\16\34\60 \0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`````````\340" "\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0``````````" "```\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\0\340\370\16\6\3\375\375\204\204\204\315\371" "\63\6\14\370\7\37\70`@\337\237\200\200\201\207\334hp\70\17\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\370\30\30\30\70\360\340\200\0\0\0\0\0\0\3\7\7\16\14\14\16\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\0\0\30\30\30\30\30\30\377\377\377\30\30" "\30\30\30\0\0\300\300\300\300\300\300\307\307\307\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 \60\30\30\30\30\30\360\340\0\0\0\0\0\0\0\300\340\360\330\314\316\307\303" "\301\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60\60\30\30\30\30\30\360\340\0\0\0\0\0\0\0``\300\303\303\303\303g" "|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0px\36\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\376\376\376" "\0\0\0\0\377\377\377\340\300\200\200\200\300\177\377\377\200\200\300\300\177\177\177\0\1\1\1\1\0\0\0\1" "\1\1\1\0\0\0\300\360\370\370\374\374\374\374\374\14\374\374\374\0\0\0\3\17\37\37\37\77\377\377\377\0" "\377\377\377\0\0\0\0\0\0\0\0\0\377\377\377\0\377\377\377\0\0\0\0\0\0\0\0\0\7\7\7\0" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\360\360`\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 `@HNHx" "\70\0\0\0\0\0\0 \60\60\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340p\30\30\30\30p\340\300\0\0\0\0\0\0\37\77p\300\300\300\300p\77" "\37\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\70p\340\300\200\30\30\60" "`\300\300\200\0\0\20\70\34\16\7\3\21\70\34\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\10\10\374\374\0\0\0\0\0\0\300\360<\10\0\0\0\0\17\17\0\0\200\340x\37\7" "\1\0\0\0\0\0\0\200\340x\36\7\201\340\260\230\206\377\377\200\0\0\0\3\1\0\0\0\0\0\0\0" "\0\7\7\0\20\10\10\374\374\0\0\0\0\0\0\300\360<\10\0\0\0\0\17\17\0\0\200\340x\37\7" "\1\0\0\0\0\0\0\200\340x\36\7\1\14\4\6\202\302f|\0\0\2\3\1\0\0\0\0\4\6\7" "\5\4\4\4\4\14\6BB\346\274\230\0\0\0\300\360<\14\0\6\6\14\14\14\14\7\303\360|\17\3" "\0\0\0\0\0\0\0\200\340x\36\7\201\340\260\230\206\377\377\200\0\0\0\3\1\0\0\0\0\0\0\0" "\0\7\7\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\200\200\300\340~>\16\0\0" "\0\0\0\0\0\0>\177\377\301\300\200\200\200\300\300\340p \0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\1\301\371\343\3\2\0\0\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\0\0\2\303\373\341\1\1\0\0\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\2\3\3\301\370\341\1\3\2\0\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\1\1\0\0\300\370\341\3\3\3\1\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\0\1\1\200\370\360\201\1\1\0\0\0\0\0\0\0\200\360\376\37\3\7\77\374\340" "\0\0\0\0\0\340\374\77\17\6\6\6\6\6\7\37\177\370\300\0\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\0\0\0\0\0\3\207\374\364\207\3\0\0\0\0\0\0\0\0\0\340\374\37\3\3\37\376\360\200" "\0\0\0\0\300\370\177\17\6\6\6\6\6\6\7\77\376\360\200\0\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\0\0\0\0\0\0\300\360p\360\360\360\60\60\60\60\60\0\0\200\360\376\37\3\0\377\377\377`" "```\0\300\370\77\7\6\6\6\6\377\377\377\200\200\200\200\200\1\1\0\0\0\0\0\0\1\1\1\1" "\1\1\1\1\0\0\0\200\300\340`p\60\60\60p`\340\300\200\0\374\377\377\3\0\0\0\0\0\0\0" "\0\1\1\0\0\7\37\77x\340\300\300\200\200\200\300\300\340` \0\0\0\0\0\0`aIOMy" "\70\0\0\0\0\360\360\360\61\61\63\63\63\66\62\60\60\60\0\0\0\377\377\377````````" "`\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\360\360\360\60\62\66\63\63\61\61\61\60\60\0\0\0\377\377\377````````" "`\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\360\360\362\63\63\61\61\61\63\63\66\62\60\0\0\0\377\377\377````````" "`\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\360\360\361\61\60\60\60\60\61\61\61\60\60\0\0\0\377\377\377````````" "\0\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\60\60\61\61\363\363\363\66\62\60\60\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\200\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\30\30\30\31\371\371\371\30\30\30\30\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\62\66\63\61\361\360\361\63\63\62\60\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\200\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\60\60\61\61\360\360\360\61\61\61\60\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\200\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\360\360\360\60\60\60\60\60p\340\340\300\0\0\0`\377\377\377````\0\0\0\3" "\377\377\374\0\0\377\377\377\200\200\200\200\200\300\340x\77\37\3\0\0\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\360\360\361\301\200\0\0\1\3\3\3\363\361\360\0\0\377\377\377\3\17>x\340\300\0\0" "\377\377\377\0\0\377\377\377\0\0\0\0\1\7\37|\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\0\0\200\340\340p\70\31\31\31\33\71p\340\300\200\0\376\377\377\0\0\0\0\0\0\0\0\0" "\1\377\377\370\3\17\37\70p\340\300\300\300\300\340p<\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\340p\71\33\31\31\31\70p\340\300\200\0\376\377\377\0\0\0\0\0\0\0\0\0" "\1\377\377\370\3\17\37\70p\340\300\300\300\300\340p<\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\341s\71\30\30\30\30\71s\341\300\200\0\376\377\377\0\0\0\0\0\0\0\0\0" "\1\377\377\370\3\17\37\70p\340\300\300\300\300\340p<\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\301\340p\60\60\61\63s\343\301\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\37\77p\340\300\200\200\200\200\300\340x\77\37\1\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\300\301\341q\60\60\60\61q\341\300\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\37\77p\340\300\200\200\200\200\300\340x\77\37\1\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\7\17\236\370\360\360\370\234\16" "\7\2\0\0\0\0\4\16\7\3\1\0\0\1\3\7\16\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\360p\70\30\30\30\30\260\360\370\374\214\4\376\377\377\0\0\0\300\360|\36\7\1" "\1\377\377\370\3\217\377\370|\357\303\300\300\300\340p<\37\17\0\0\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\1\1\1\3\3\6\2\0\360\360\360\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\37\177\377\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\360\360\360\0\2\6\3\3\1\1\1\360\360\360\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\37\177\377\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\370\370\371\3\1\0\0\0\0\1\3\370\370\370\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\17\77\177p\340\300\300\300\300\340p\177\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\1\1\0\0\0\0\1\1\361\360\360\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\37\177\377\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\60\360\340\200\2\6\3\3\3\1\1\340\360p\0\0\0\0\3\17>\370\360\300\360|\37" "\7\1\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\3\3\3\3\3\3\7\7" "\376\374\370\0\0\377\377\377\14\14\14\14\14\14\16\6\7\3\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\360\370\70\34\14\14\14\34\70\360\340\200\0\0\0\377\377\377\0\0\0\60\60\70|o" "\347\301\200\0\0\377\377\377\0\0\300\200\200\200\200\300\341\177\77\14\0\1\1\1\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\14\36\14\4\0\0\0\0\0\300\360\370\234\216\206\206\206\206\216\214" "\370\360\0\0\0\17\77\177\341\301\301\201\201\201\201\301\301A\0\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0@p\70\34\16\34x`\0\0\0\0\0\300\360\370\234\216\206\206\206\206\216\214" "\370\360\0\0\0\17\77\177\341\301\301\201\201\201\201\301\301A\0\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\10\34\34\10\0\0\10\34\34\10\0\0\0\0\300\360\370\234\216\206\206\206\206\216\234" "\370\360\0\0\0\17\77\177\341\301\301\201\201\201\201\301\301A\0\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\4\16\36<\60\0\0\0\0\0\0\0\0\0\0\6\6\6\6\376\376\376\0\0" "\0\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\60|\36\16\0\0\0\0\0\0\0\0\6\6\6\6\376\376\376\0\0" "\0\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\60\70\14\6\16\34\70\60\0\0\0\0\0\0\0\3\3\3\3\377\377\377\0\0" "\0\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\10\34\34\10\0\0\0\34\34\34\0\0\0\0\0\0\6\6\6\6\376\376\376\0\0" "\0\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0dll\70\60p\360\230\30\20\0\0\300\360\370\34\14\16\6\6\6\16\15" "\77\377\374\300\0\17\77\177\340\300\300\200\200\200\300\300\360\177\37\3\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\30\30\14\14\14\30\70\60\60\70\30\0\0\0\0\376\376\376\30\14\14\6\6\16\36" "\374\370\300\0\0\0\377\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\1\1\1\0\0\0\0\0\0\0" "\1\1\1\0\0\0\0\0\0\0\4\36

\14\4\0\0\0\0\0\300\360\370\34\14\16\6\6\6\16\34" "<\370\340\0\0\17\77\177\340\300\300\200\200\200\300\340\360\177\37\3\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0p\70\34\16\34x`\0\0\0\0\0\300\360\370\34\14\16\6\6\6\16\34" "<\370\340\0\0\17\77\177\340\300\300\200\200\200\300\340\360\177\37\3\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\30\34\16\6\16\34\30\60\60\70\34\0\0\0\300\360\370\34\14\16\6\6\6\16\34" "<\370\340\0\0\17\77\177\340\300\300\200\200\200\300\340\360\177\37\3\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\10\34\34\10\0\0\0\34\34\34\0\0\0\0\300\360\370\34\14\16\6\6\6\16\34" "<\370\340\0\0\17\77\177\340\300\300\200\200\200\300\340\360\177\37\3\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0\0`````cca``" "```\0\0\0\0\0\0\0\0\34\34\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\300\360\370\34\14\16\6\306\346~\36" "\77\373\340\0\0\17\77\377\340\360\374\217\203\200\300\340\360\177\37\3\0\0\2\7\1\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\4\16\36x\60\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\376" "\376\376\0\0\0\77\177\377\300\300\200\200\200\300`\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\0\0\0\0\0\0\0\0 x>\16\4\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\376" "\376\376\0\0\0\77\177\377\300\300\200\200\200\300`\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\0\0\0\0\0\0`\70\34\16\36\70p \0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\376" "\376\376\0\0\0\77\177\377\300\300\200\200\200\300`\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\0\0\0\0\10\34\34\10\0\0\0\34\34\34\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\376" "\376\376\0\0\0\77\177\377\300\300\200\200\200\300`\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\60<\36\16\0\0\0\0\0\0\6\36~\370\300\0\0\0\0\0\300" "\374>\16\0\0\0\0\0\3\17~\370\300\370\77\17\1\0\0\0 p```p\70\37\17\1\0\0" "\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\10\14\6\6\6\6\16\34" "\374\360\300\0\0\377\377\377\300\300\200\200\200\300\300\340\177\77\17\0\0\177\177\177\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\10\34\34\10\0\0\34\34\34\0\0\0\0\0\6\36\376\360\300\0\0\0\0\200\370" "~\16\0\0\0\0\0\0\3\17~\370\340|\37\3\0\0\0\0 p```\60\70\17\3\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--30-300-72-72-P-138-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr21_2x4_r[6084] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_r") = " ~\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\70\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\300\343\343\303\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\374\374\370\0\0\0\374\374\370\0\0\0\0\0\0\0\3\3\3\0\0\0\3\3" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\60\0\0\0\360\360\20\0\0\0\6\6\6\346\377\77\6\6\6\366\377" "\37\6\6\6\0\6\6\306\377\77\6\6\6\346\377\77\6\6\6\0\0\0\0\1\1\0\0\0\0\1\1\0" "\0\0\0\0\0\0\200\300\340p\60\374\374\374\60`\340@\0\0\0\0\7\17\37\70\60\377\377\377`\340" "\300\200\0\0\0\0\60p`\300\300\377\377\377\340p\177\77\6\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\300\340\360\60\60\360\340\300\0\0\0\300\360p\20\0\3\7\17\14\14\17\207\343x>\17\3" "\0\0\0\0\0\0\300\360|\36\7\1|\376\377\203\203\377\376|\0\1\1\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\0\300\340\340p\60\60p\340\300\0\0\0\0\0\0\0\203\317\337x\360\360\234\37\17" "\1\0\200\0\0<\177\377\301\200\200\200\201\307\357~\70\374\357\307\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\1\0\0\0\0\0\0\0\0\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340p\60\70\34\10\0\0\0\0\0\0\360\376\377\7\1\0\0\0" "\0\0\0\0\0\0\0\0\17\177\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\36\34\70" "p \0\0\0\0\34\70\60p\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\37\376\370\200" "\0\0\0\0\0\0\0\0\0\0\0\200\360\377\77\3\0\0\0\0\0\0p\70\70\34\17\7\3\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0\30\30\30\60\60\240\377\377\240\60\60" "\30\30\30\0\0\0\10\34\36\7\3\0\0\3\7\36\14\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0``````\377\377\377``" "```\0\0\0\0\0\0\0\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\60\71\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0``````````" "```\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360|\30\0\0\0\0\0\0\0\0\200\340\370>\17\3" "\0\0\0\0\0\0\200\340\370>\17\3\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340p\60\60\60`\340\300\0\0\0\0\374\377\377\1\0\200\300`\70\14\7" "\377\377\370\0\0\7\37\177\376\347\303\200\200\300\300\360\177\37\7\0\0\0\0\0\0\0\1\1\1\1\0\0" "\0\0\0\0\0\0\200\300\300``\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\200\300\340`\60\60\60\60p\340\300\200\0\0\0\0\0\0\0\0\0\0\0\200\300\360" "\177\37\6\0\0\0\200\340\360\274\236\207\203\201\201\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0``p\60\60\60p\340\340\300\0\0\0\0\0\0\0\0````\360\370\337" "\217\2\0\0\0\0@\340\300\200\200\200\200\300\341\377\177\36\0\0\0\0\0\0\0\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\0\0\0\0\0\0\200\300p\70\16\7\1\377\377\377" "\0\0\0\0\0\6\7\7\6\6\6\6\6\377\377\377\6\6\6\0\0\0\0\0\0\0\0\0\0\1\1\1" "\0\0\0\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\0\0\0\0\0\177\177\77\30\30\30\30\70x" "\360\340\200\0\0\0``\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\300\340`p\60\60\60p``\0\0\0\0\374\377\377q\60\30\30\30\70x" "\360\340\200\0\0\0\17\77\177\340\300\200\200\200\300\340\377\177\37\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\60\60\60\60\60\60\60\60\260\360\360\60\0\0\0\0\0\0\0\0\0\200\360\374\77\7" "\1\0\0\0\0\0\0\0\200\360\374\77\7\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340p\60\60\60p\340\340\300\0\0\0\0\0\7\237\337xp `p\370\237" "\217\3\0\0\0>\177\377\340\300\200\200\200\200\300\341\177\77\10\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\300\340\340p\60\60\60p\340\300\200\0\0\0\0\37\177\377\300\300\200\200\200\300\300" "\377\377\376\0\0\0\0\300\300\300\201\201\201\301\300\360\177\37\7\0\0\0\0\0\0\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0\60\71\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\0`\360\360\270\230\34\14\16\6\7\3\3" "\1\1\0\0\0\0\0\1\3\3\7\6\16\14\30\70\60p`\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14" "\14\14\14\0\0\6\6\6\6\6\6\6\6\6\6\6\6\6\6\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\6\16\14\34\230" "\270\360\360`\0`p\70\30\34\14\16\6\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 p\70\30\34\14\14\14\34\30\370\360\300\0\0\0\0\0\0\0\0\200\340\360x\34\37" "\17\3\0\0\0\0\0\0\0\0\303\343\343\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\200\300\340`p\60\60\60p`\340\300\0\0\374\377\377\3\0\360\370\374\16\6\6\6" "\377\377\377\0\3\37\77x\340\301\303\207\207\206\206\303\301\207\7\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\300\370\340\0\0\0\0\0\0\0\0\0\0\200\360~\17\1\7\77\374\340" "\0\0\0\0\200\360\376\37\7\6\6\6\6\6\7\17\77\374\340\200\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\360\360\360\60\60\60\60\60\60p\340\340\300\0\0\0\377\377\377``````\360\370" "\237\217\3\0\0\377\377\377\200\200\200\200\200\200\300\301\377\177>\0\0\1\1\1\1\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\200\300\340`p\60\60\60p`\340\300\200\0\374\377\377\3\0\0\0\0\0\0\0" "\0\0\1\1\0\7\37\77x\340\300\300\200\200\200\300\300\340` \0\0\0\0\0\0\0\1\1\1\1\1" "\0\0\0\0\0\360\360\360\60\60\60\60\60p\340\340\300\0\0\0\0\377\377\377\0\0\0\0\0\0\0\1" "\377\377\374\0\0\377\377\377\200\200\200\200\200\300\340p\77\37\7\0\0\1\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\60\60\0\0\0\377\377\377````````" "`\0\0\0\0\377\377\377\200\200\200\200\200\200\200\200\200\200\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\360\360\360\60\60\60\60\60\60\60\60\60\60\0\0\0\377\377\377\60\60\60\60\60\60\60" "\60\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340`\60\60\60\60p`\340\300\200\0\374\377\377\1\0\0\0\0\0\200\200" "\200\200\201\200\0\7\37\77x\340\300\300\200\200\201\201\301\377\377\177\0\0\0\0\0\0\0\1\1\1\1\1" "\1\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\360\360\360\0\0\377\377\377````````" "\377\377\377\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0\60\60\60\60\360\360\360\60\60\60\60\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\200\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\60\60\60\60\360\360\360\60\60\60\0\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0@\340\300\200\200\200\300\340\377\177\17\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0\0" "\0\0\0\0\0\360\360\360\0\0\0\0\0\200\300\340p\60\20\0\0\377\377\377`p\370\336\217\3\1\0" "\0\0\0\0\0\377\377\377\0\0\0\3\7\17x\340\300\0\0" "\377\377\377\0\0\377\377\377\0\0\0\0\1\7\37|\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\0\0\0\300\300\340p\60\60\60\60p\340\300\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\37\77p\340\300\200\200\200\200\300\340x\77\37\1\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\360\360\360\60\60\60\60\60\60p`\340\300\0\0\0\377\377\377\300\300\300\300\300\300\340`" "\177\77\37\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\340p\60\60\60\60`\340\300\200\0\0\374\377\377\1\0\0\0\0\0\0\0\0" "\3\377\377\360\7\77\177\360\300\200\200\200\200\200\200\340\370\177\37\1\0\0\0\0\1\1\7\37\77\71\61\61" "\60\60\60\0\0\360\360\360\60\60\60\60\60\60p\340\340\300\0\0\0\377\377\377\300\300\300\300\300\300\340p" "\177\37\6\0\0\377\377\377\0\0\0\0\3\17\36|\360\300\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0\200\300\340`p\60\60\60\60`\340\300\0\0\0\0\7\37\37\70\60p`\340\300\300" "\200\200\0\0\0@p\340\300\300\200\200\200\200\300\301\343\177\77\14\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\60\60\60\60\60\60\360\360\360\60\60\60\60\60\60\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\360\360\360\0\0\377\377\377\0\0\0\0\0\0\0\0" "\377\377\377\0\0\37\177\377\340\300\200\200\200\200\300\340\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\20\360\360\300\0\0\0\0\0\0\0\0\200\360\360\20\0\0\7\77\376\360\200\0\0\0\340\374" "\77\7\0\0\0\0\0\0\0\7\77\374\370\177\17\1\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\360\360\300\0\0\0\0\200\300\0\0\0\0\0\360\360\0\77\377\360\0\300\370\77\37\377\360\200" "\0\376\177\1\0\0\17\377\374\37\1\0\0\0\17\377\377\37\0\0\0\0\0\1\1\0\0\0\0\0\0\0" "\1\0\0\0\0\20p\360\300\0\0\0\0\0\0\300\360p\20\0\0\0\0\1\7\17\276\370\370\376\17\3" "\1\0\0\0\0\0\300\360|\37\7\3\3\7\37|\360\340\200\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\0\0\60\360\340\200\0\0\0\0\0\0\0\340\360p\0\0\0\0\3\17>\370\360\300\360|\37" "\7\1\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\60\60\60\60\60\60\60\60\60\260\360\360\60\0\0\0\0\0\0\0\200\340\360|\36\7" "\3\0\0\0\0\200\340\360\374\236\217\203\200\200\200\200\200\200\200\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\374\374\374\14\14\14\14\14\14\14\0\0\0\0\0\0\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\14\14\14\14\14" "\14\14\0\0\0\0\30\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\370\340\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\17>\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\3\3\0\0\0\0\14\14\14\14\14\14\14\14\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\14\14\14\14\14\14\14\14\17\17" "\17\0\0\0\0\0\0\0\0\0\300\340\360\300\200\0\0\0\0\0\0\0\0\30\34\17\3\1\0\3\17>" "\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\14\14\14\14\14\14\14\14" "\14\14\14\0\0\0\0\0\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17>x\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\216\206\206\206\206\216\214" "\374\370\340\0\0<\376\377\303\203\201\201\201\301\341q\377\377\377\0\0\0\0\0\1\1\1\1\1\0\0\0" "\1\1\1\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\10\14\6\6\6\16\16\34" "\374\360\300\0\0\377\377\177\300\300\200\200\200\300\300\340\177\77\17\0\0\1\1\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\34\14\16\6\6\6\6\16" "\34<\10\0\0\17\77\177\360\300\300\200\200\200\200\300\300\340@\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\340\370\374\34\16\6\6\6\6\14\30" "\377\377\377\0\0\17\77\377\340\300\200\200\200\200\300p\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\234\216\206\206\206\206\216\214" "\370\360\0\0\0\17\77\177\341\301\301\201\201\201\201\301\301A\0\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\200\360\370\70\34\14\14\14\34\30\70\0\0\14\14\14\377\377\377\14\14\14\14\14" "\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\374\34\16\6\6\6\16\34\370" "\374F\6\6\0\0s\177\377\316\314\314\314\316\307\307\303\200\200\0\0\34\77\77qp`````p" "\71\77\37\6\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\30\14\14\6\6\16\36" "\374\370\300\0\0\0\377\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\1\1\1\0\0\0\0\0\0\0" "\1\1\1\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\0\0\0\6\6\6\6\376\376\376\0\0" "\0\0\0\0\0\0\0\200\200\200\200\377\377\377\200\200\200\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\30<<\30\0\0\0\0\0\0\6\6\6\6\6\6\376\376\376" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\60\70p```p\60\77\37\7" "\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\200\300\300\340p\70\34" "\16\6\2\0\0\0\377\377\377\3\1\3\7\17\376\360\200\0\0\0\0\0\300" "\370>\6\0\0\0\0\0\7\37\376\360\340\374\37\7\1\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\376\376\200\0\0\200\370|\360\200\0" "\0\200\376~\0\0\37\377\360\370\77\3\0\7\77\374\300\377\17\0\0\0\0\1\1\1\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\6\36\16\0\0\0\0\0\3\17~\370\300\370\77\17\1\0\0\0 p```p\70\37\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\6\6\6\6\206\306\346v>" "\36\6\0\0\0\200\300\360\370\274\216\207\203\201\200\200\200\200\200\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\200\340\340p\60\60\60\60\60\0\0\0\0\0\0\200\377\177\37\0\0\0\0" "\0\0\0\0\0\3\3\3\7\376\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77p```" "``\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\0\0" "\0\0\0\0\0\0\0\60\60\60\60pp\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\376" "\200\0\0\0\0\0\0\0\0\0\0\0\0\370\374\377\7\3\3\3\0\0\0````px\77\37\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\14\6\6\6\14\34\70\60\60" "\70\34\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--30-300-72-72-P-138-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr21_2x4_n[1732] U8X8_FONT_SECTION("u8x8_font_inr21_2x4_n") = " :\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\60\60``@\377\377@``" "\60\60\60\0\0\0\20\70<\16\7\1\1\7\16<\30\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\377\377\377\300\300" "\300\300\300\0\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0as\37\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\60\0\0\0\0\0\0\0\0\0\300\360|\37\7" "\0\0\0\0\0\0\0\300\360|\37\7\1\0\0\0\0\0\0\0\0\0\7\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\340```\300\300\200\0\0\0\0\370\376\377\3\1\0\200\300p\30\17" "\377\376\360\0\0\17\77\377\374\316\207\1\0\200\200\340\377\77\17\0\0\0\0\0\1\1\3\3\3\3\1\1" "\0\0\0\0\0\0\0\200\200\300\300\340\340\340\0\0\0\0\0\0\0\0\1\1\1\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\0\0\0\200\300\300````\340\300\200\0\0\0\0\0\1\1\1\0\0\0\0\0\200\341" "\377\77\14\0\0\0\0\300\340x<\16\6\3\3\1\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3" "\3\3\3\0\0\0\0\300\300\340```\340\300\300\200\0\0\0\0\0\0\0\0\300\300\300\300\340\361\277" "\37\4\0\0\0\0\200\300\200\0\0\0\0\201\303\377\377<\0\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\0\0\0\0\0\0\0\200\340p\34\16\3\377\377\377" "\0\0\0\0\0\14\17\17\14\14\14\14\14\377\377\377\14\14\14\0\0\0\0\0\0\0\0\0\0\3\3\3" "\0\0\0\0\0\0\0\340\340\340````````\0\0\0\0\0\377\377\177\60\60\60\60p\360" "\340\300\0\0\0\0\300\300\300\200\0\0\0\0\200\300\377\377\77\0\0\0\0\0\1\3\3\3\3\3\3\1" "\1\0\0\0\0\0\0\0\200\300\300\340```\340\300\300\0\0\0\0\370\376\377\343`\60\60\60p\360" "\340\300\0\0\0\0\37\177\377\300\200\0\0\0\200\300\377\377\77\0\0\0\0\0\0\1\3\3\3\3\3\1" "\1\0\0\0\0\0`````````\340\340`\0\0\0\0\0\0\0\0\0\0\340\370\177\17" "\3\0\0\0\0\0\0\0\0\340\370\177\17\1\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340```\340\300\300\200\0\0\0\0\0\17\77\277\360\340@\300\340\361\77" "\37\6\0\0\0|\376\377\301\200\0\0\0\0\201\303\377~\20\0\0\0\0\1\1\3\3\3\3\3\3\1" "\0\0\0\0\0\0\0\200\300\300\340```\340\300\200\0\0\0\0\0>\377\377\201\200\0\0\0\200\201" "\377\377\374\0\0\0\0\200\201\201\3\3\3\203\201\341\377\77\17\0\0\0\0\1\1\3\3\3\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60xx\60\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--44-440-72-72-P-201-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr33_3x6_f[32260] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_f") = " \377\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77" "\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\360\340\0\0\0\0\0\340\360\360\340\0\0\0\0\0\0\0\0\0" "\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0" "\0\0\0\0\300\300\300@\0\0\0\0\0\200\200\200\200\200\200\377\377\377\201\200\200\200\200\300\377\377\377\200" "\200\200\200\0\0\1\1\1\1\1\377\377\377\1\1\1\1\1\301\377\377\177\1\1\1\1\1\0\14\14\14\14" "\14\374\377\377\17\14\14\14\14\214\377\377\177\14\14\14\14\14\0\0\0\0\0\0\34\37\37\3\0\0\0\0" "\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370" "\374\376\17\7\7\7\377\377\377\7\7\7\17\36>\34\10\0\0\0\0\0\1\7\17\37\36<\374\370\340\0\0 \70>\37\7\3\0\0\0\0\0" "\3\17\37<\70\70\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0|" "\377\377\377\3\3\1\1\3\207\377\377\376x\0\0\0\0\0\0\0\0\0\0\200\301\347\357\177|\370\374\336" "\217\7\3\1\0\0\0\200\0\0\0\0\370\376\377\377\7\1\0\0\0\0\3\7\37\77\374\370\360\360\370\177" "\37\16\2\0\1\7\17\37\36<<\70\70\70<\34\36\17\17\7\3\7\37\77\36\30\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\200\340\360\374~\37\17\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\340\376\377\377\17\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\7\17\37>\374x`\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0\0ppppppppp\377\377\377\377pppppppp\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<~\376\376\374p\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0 x<\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\360\360\340 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\300\360\374\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\370\376\77\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\370" "\374\376\37\17\7\3\1\1\1\3\3\207\377\376\374\360\300\0\0\0\0\376\377\377\377\0\0\0\0\300\340\360" "x\36\17\7\1\1\377\377\377\374\0\0\0\7\177\377\377\370\374\36\17\7\1\0\0\0\0\0\200\360\377\377" "\77\3\0\0\0\0\0\1\3\7\17\37\36<\70\70\70<\34\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\14\16\16\7\7\7\7\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\16" "\37\17\7\3\3\1\1\1\1\3\3\7\37\377\376\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\360\374\77\37\17\1\0\0\0\0\0\0\0\200\300\340\360x<\36\17\7\3\1\1\0\0\0\0" "\0\0\0\0\0\0\70>\77\77;\71\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\2\7\7\3\3\1\1\1\1\1\3\7\17\377\376\374p" "\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70x||\376\357\347\307\201\0\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\201\377\377\377\376\0\0\0\0\0\0\4\16\37\36\34<\70\70\70\70" "<<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\300\360\370>\17\377\377\377\377\0\0\0\0\0\0\0\0\0\200\340\360|>\17\7\1\0" "\0\0\377\377\377\377\0\0\0\0\0\0\0\34\37\37\37\35\34\34\34\34\34\34\34\34\377\377\377\377\34\34" "\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\77\177\77\37\34\16\16\16\16\16\36\36<\374\370\360\340\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\177\0\0\0\0\0\3\7\17\36\36\34<\70\70\70" "<<\34\36\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\340" "\370\374~\37\7\3\3\1\1\1\1\3\3\7\3\3\0\0\0\0\0\0\377\377\377\377p\70\34\36\16\16" "\16\16\36>|\370\360\340\0\0\0\0\0\0\37\377\377\377\300\0\0\0\0\0\0\0\0\0\200\377\377\377" "\177\0\0\0\0\0\0\0\3\7\17\37\36<\70\70\70<<\36\37\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\301\361\377\377\77\7\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60>\77\77\17\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\360" "\374\376\377\17\3\3\1\1\1\1\3\3\17\377\377\374p\0\0\0\0\0\0\0\3\207\317\377\376|\70\70" "\60x\374\376\317\317\207\1\0\0\0\0\0\0\370\376\377\377\3\1\0\0\0\0\0\0\0\0\1\207\377\377" "\376x\0\0\0\0\0\3\7\17\37\36<<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\374\376\377\17\7\3\3\1\1\1\3\3\17\37\376\374\360" "\200\0\0\0\0\0\17\77\177\377\360\340\300\300\200\200\200\300\300\340p\377\377\377\377\0\0\0\0\0\0\0" "\0\0\1\1\3\3\3\3\3\1\1\0\340\377\377\177\17\0\0\0\0\0\0\14\36\36\34<\70\70\70\70" "<\34\36\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77" "\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>>\376" "\376\374x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\70\36\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300\300\340\340\360px<<\36\36\0\0p\360\370\374\334\236\216\17\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\16\36<\70xp\360\340\340\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\34\34\34" "\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<\70xp" "\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7" "\16\16\34<\270\370\360\360\340\340\0\0\0\0\200\200\300\300\340\360\360x\70<\34\36\17\7\7\3\3\1" "\0\0\0\0\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360ppp" "p\360\360\340\340\300\200\0\0\0\0\0\0\0\3\7\7\3\1\0\0\0\0\0\0\0\0\1\203\377\377\377" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374>\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77" "\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374" ">\37\17\7\3\3\201\201\201\301\301\303\303\307\317\376\374\370\300\0\376\377\377\1\0\0\0\370\376\377\377\7" "\3\3\1\1\1\1\201\377\377\377\377\0\7\77\377\374\340\200\0\1\3\7\17\37\36\34\34\34\16\16\7\37" "\37\37\37\0\0\0\0\1\3\7\17\36\36\34<\70\70\70\70\70<\34\34\36\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\77\377\374\340\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\177\17\1\0\0\7\77\377\374\360\200\0\0\0\0\0\0\0\200\360\374" "\377\77\37\34\34\34\34\34\34\34\34\37\177\377\374\360\200\0\0\0<\77\77\17\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\17\77\77<\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\3\3\7\17\377\377\374\360\0\0\0\0\377\377\377\377\70\70\70\70\70\70\70" "\70x|\376\357\357\307\203\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\1\203\377\377" "\377x\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\200\200\200\0\0\0\0\0\0\0\340\360\374\376\77\17\7\3\3\1\1\1\1\3\3\7\17\37>" "\34\30\0\0\376\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\177\377\377" "\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\3\7\17\17\36\34<\70\70" "\70\70\70<\34\36\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\3\3\7\17\77\376\374\360\300\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\377\377\374\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377" "\77\3\0\0\0\77\77\77\77\70\70\70\70\70\70<<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\377\377\377\377ppppppppppppp\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70" "\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0\377\377" "\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\377\377\377\377\70\70\70\70\70\70" "\70\70\70\70\70\70\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\1\3\3\7\17\37\36" "\14\0\0\0\376\377\377\377\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\0\0\17\177\377\377" "\360\300\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\0\0\0\0\1\3\7\17\17\36\34<\70\70" "\70\70\70<\34\36\37\17\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377ppppppp" "ppppp\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77" "\77\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0" "\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\177\0\0\0" "\0\0\0\0\0\4\17\36\36<\70\70\70\70<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300@\0\0\0\377\377\377\377\0\0\0\0\200\300\340\360\370|>\17\7\3\1" "\0\0\0\0\0\377\377\377\377\360x<\376\377\367\303\201\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\1\7\17\77~\374\360\340\300\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\1\3\17\37\77>\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300\0\0\377\377\377\377\376\370\340\200\0\0\0\0\0\0\200\340\370~\377\377" "\377\377\0\0\377\377\377\377\0\3\17\77\376\370\340\360\374~\37\7\1\0\377\377\377\377\0\0\377\377\377\377" "\0\0\0\0\0\3\7\3\0\0\0\0\0\0\377\377\377\377\0\0\77\77\77\77\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\377\377\377" "\377\77\376\370\340\300\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\3\17\37\177\374" "\360\300\200\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\1\7\37\77\376\370\340\377\377" "\377\377\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377" "\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70" "\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\1\3\7\17\377\376\374\360\0\0\0\0\377\377\377\377\340\340\340\340\340\340\340" "\340\340\360x|\77\77\17\3\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\376\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\17\177\377\377" "\360\200\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\7\17\17\37<<\70\370\370" "\370\70<<\36\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\36\36\34\34\34\34\34" "\34\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\3\3\7\17\377\376\374\360\0\0\0\0\377\377\377\377\340\340\340\340\340\340\340" "\340\340\360\370|\77\37\17\3\0\0\0\0\377\377\377\377\0\0\0\0\0\0\1\7\37\177\374\360\300\0\0" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\1\17\77\77>\70 \0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\0\370\374\376\377\7\3\3\1\1\1\1\1\3\3\7\17\37\16" "\0\0\0\0\0\0\1\3\7\17\37\36<\70xxp\360\340\340\300\300\200\0\0\0\0\0\0\0\200\200" "\0\0\0\0\0\0\0\0\0\0\0\1\3\207\377\377\376x\0\0\0\6\7\17\37\36\34<\70\70\70\70" "\70<<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1" "\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377" "\377\200\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\77\0\0\0\0\3\7\17\17\36\34<\70\70\70" "\70<<\36\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300@\0\0\7\77\377" "\376\360\200\0\0\0\0\0\0\0\0\0\200\360\376\377\37\3\0\0\0\0\0\1\17\177\377\374\340\0\0\0" "\0\0\340\374\377\77\7\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\370\300\370\377\177\17\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\77\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\0\37\377\377\370\0\0\0\0\0\200\370\377\376\340\0\0\0\0\0\360" "\377\377\7\0\0\17\377\377\374\0\0\300\374\377\17\1\37\377\376\360\0\0\370\377\377\3\0\0\0\0\3\377" "\377\377\374\377\17\0\0\0\0\1\37\377\377\370\377\77\0\0\0\0\0\0\0\0\77\77\17\0\0\0\0\0" "\0\0\0\1\37\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\1\7" "\37\177\374\370\340\200\0\0\0\300\360\374\177\37\17\3\0\0\0\0\0\0\0\0\0\0\1\7\217\377\376\374" "\377\337\7\1\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\77\37\7\3\17\37\177\374\370\340\200\0" "\0\0\0\0\0\60<\77\77\17\3\0\0\0\0\0\0\0\0\1\7\37\77>\70 \0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300@\0\0\1\7\17\77\377\374\360\300\0\0\0\0\0\0\300\360\376\177\37" "\7\1\0\0\0\0\0\0\0\0\3\17\77\377\374\360\360\374\377\77\17\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\1\1\1" "\1\1\1\1\1\1\1\1\1\201\341\371\377\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374" "\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374~\37\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70>\77\77;\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360ppp" "pppppppp\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0`\340\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\17\77\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\376\370\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\374p@\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppppppp" "pp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\377\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\300\360\374>\37\17\77~\370\360\300\0\0\0\0\0\0\0\0\0\0\0\16\17\7\3\0\0\0\0" "\0\0\1\7\17\17\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\200\200\200\200\200\200\200\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\77\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\374" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0\0\1\3\7\3\1\201\201\201\201\201\201\201\203\207\377\377\376\370\0\0\0\0\360\370\374" "\376\17\7\7\7\3\3\3\3\3\3\203\303\377\377\377\377\0\0\0\0\1\7\7\17\17\36\34\34\34\34\34" "\16\16\7\7\3\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377\377\16\7\3\3\3\3\3" "\3\3\7\17\77\376\374\370\300\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\77\0\0\0\0\77\77\77\7\7\16\34\30\70\70\70\70<\36\37\17\17\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0" "\0\0\0\0\0\300\370\374\376\37\7\3\3\1\1\1\1\1\1\1\3\3\17\17\6\0\0\0\0\37\177\377" "\377\340\200\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\1\3\7\7\17\16\36\34\34" "\34\34\34\36\16\17\7\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0" "\0\0\200\200\200\200\200\200\200\200\0\0\0\377\377\377\377\0\0\0\0\300\370\374\376\37\17\7\3\3\3\3" "\3\3\7\7\36\377\377\377\377\0\0\0\0\177\377\377\377\300\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\377\0\0\0\0\0\1\7\17\37\37><\70\70\70\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\340\370\376\377\317\307\303\301\301\301\301\301\301\301\303\307\377\377\374\360\0\0\0\0\77\377\377" "\377\341\201\1\1\1\1\1\1\1\1\1\1\1\201\1\1\0\0\0\0\0\0\1\3\7\17\17\36\36\34\34" "\34\34\34\36\16\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360pppp\360\340\340\300\200\0\0\0\0\0" "\0\0\0\376\377\377\377\3\0\0\0\0\0\0\0\0\1\7\1\0\0\0\7\7\7\7\7\377\377\377\377\7" "\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\300\300\200\200\0\200\300\300\300" "\300\300\200\0\0\370\376\377\377\7\3\1\1\1\1\1\3\7\377\377\377\371\1\1\1\1\1\0\0\0\303\347" "\367\77\36\34\34\34\34\34\36\17\17\7\3\0\0\0\0\0\0\0\200\340\363\367\77\37\16\16\16\16\16\16" "\16\16\16\16\36\34\374\370\370\340\0\0\3\17\17\37\36\34<\70\70\70\70\70\70\70<\34\36\37\17\7" "\3\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377\377\34\16\7\7\3\3" "\3\3\3\7\17\377\377\374\360\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\201\201\201\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77" "\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0\0" "\0\200\200\200\200\200\200\200\200\200\201\201\201\200\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3" "\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\10\34>" "\37\17\7\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\200\300\340\360x<>\36\17\7\3\1\0\0\0\0\0\0\377\377" "\377\377\36\17\7\7\17\77~\374\360\340\300\200\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0" "\0\0\1\7\17\37\77<\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0ppppppp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\70\70\70\70\70\70\70\77\77\77\77\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\200\300\300\300\300\300\200\0\200\200\300\300\300\300\300" "\300\0\0\0\377\377\377\377\7\1\1\1\1\377\377\377\376\17\3\1\1\1\377\377\377\377\0\0\377\377\377\377" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\37\37\37\37\0\0\0\0\0\37\37\37" "\37\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\0\0\200\200\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\377\377\377\377\16\7\3\3\1\1" "\1\1\1\3\7\377\377\376\370\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\0\0\0" "\0\0\0\0\300\370\374\376\37\7\3\3\1\1\1\1\1\1\3\7\17\77\377\374\370\300\0\0\37\177\377\377" "\340\200\0\0\0\0\0\0\0\0\0\0\200\340\377\377\177\17\0\0\0\0\1\3\7\7\17\16\36\34\34\34" "\34\36\16\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\0\0\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377\377\16\3\3\1\1\1\1" "\1\1\3\3\17\77\377\376\370\300\0\0\0\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\200\340\377\377" "\177\17\0\0\0\377\377\377\377\3\7\16\16\34\34\34\34\36\36\17\17\7\3\1\0\0\0\0\0\77\77\77" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\200\0\0\300\300" "\300\300\0\0\0\340\370\376\377\37\7\3\1\1\1\1\1\1\1\3\7\16\377\377\377\377\0\0\0\37\377\377" "\377\340\200\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\0\0\0\0\0\1\3\7\17\17\36\36\34\34" "\34\34\16\16\7\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\0\0\200\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\377\377\377\377>\17\7\3\3" "\1\1\1\1\1\1\3\7\3\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\0\0" "\0\0\0\0\0\0\0<\177\377\377\343\301\301\201\201\201\1\1\3\3\7\37\7\2\0\0\0\0\0\200\300" "\200\0\1\1\1\3\3\3\7\7\7\17\36\376\374\370\360\0\0\0\0\0\3\7\7\17\16\36\36\34\34\34" "\34\34\36\16\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\200\376\377\377\217\200\200\200\200\200\200\200\0\0\0\0\0\0\0\3\3\3\3\3\377\377\377\377\3" "\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\37\37><\70\70\70\70\34\34\36\16\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\0\0\0\0\0\0\7\17\37\37><\70\70\70" "\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\3\17\177\377\374\340\200\0\0\0\0" "\0\0\0\0\340\370\377\77\7\0\0\0\0\0\0\0\1\17\77\377\376\360\300\0\200\360\374\177\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\77\77>\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\200\200\0\7\377\377\374\200\0\0\0\0\300\374\376\376\370\300\0\0\0\0\300\377\377\37\0\0\0\37\377" "\377\360\0\300\374\177\17\0\3\37\377\374\340\0\340\377\377\7\0\0\0\0\0\3\77\77>\77\7\0\0\0" "\0\0\1\17\77\77\77\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\1\7\17\37~\374\360\340\200\200" "\340\360\370~\37\17\3\1\0\0\0\0\0\0\0\0\0\200\300\340\373\177\77\77\177\373\360\340\200\0\0\0" "\0\0\0\0\0 \60<>\37\17\3\1\0\0\0\0\0\3\7\37\77<\70\60\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\0\0\0\1\7\77\377\376\360\300\0\0\0\0\0\0\0\0\340\374\377\77\17\1\0\0\0\0\0\0" "\0\3\37\177\376\370\300\0\0\340\370\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\377\377" "\377\77\17\1\0\0\0\0\0\0\0\0\70\37\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\70<\77\77\77;\71\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\370\376\377\377\7\3\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\200\340\377\377\177\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\17=\375\370\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77|xxpppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\3\3\17\377\377\376\360\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\377\377\300\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360\370\375\37\17\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0ppppppxx>\77\37\17\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\200\300\200\0\0\0\6\17\17\3\3\1\1\1\3\7\7" "\17\36\36\34\34\36\16\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\203\203\203\203\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\77\77\77" "\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300@\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\340\360ppp\360\377\377\177\360\360\340\300\200\0\0\0\0\360\376\377\377\7\3\1\0\0\0\360" "\377\377\37\0\0\0\1\7\3\0\0\0\0\17\77\377\377\360\300\200\0\0\360\377\377\17\0\0\0\0\200\300" "\200\0\0\0\0\0\0\0\1\3\3\7\7\377\377\377\17\16\16\17\7\7\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\360\374\376\377\17\7\3\1\1\1\1\3\3\7\3\1" "\0\0\0\0\0\0\34\34\37\177\377\377\374\234\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\340\377\377\377\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34\36\37\17\17\17\16\16\16\36" "\34\34<\70\70\70\70<\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\34" "\270\360\360px\70\70\70\70xp\360\370\274\34\10\0\0\0\0\0\0\0\77\377\377\340\200\200\0\0\0" "\0\200\300\341\377\177\36\0\0\0\0\0\0\0\6\17\7\3\1\3\7\7\7\7\7\7\3\1\3\7\16\4" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300@\0\0\0\0\3\7\37\177\374\370\340\200\0\0\0\0\300\360\374\177\37\7" "\1\0\0\0\0\0\0\0\0\0\1\3\17\77\376\370\374\377\37\7\1\0\0\0\0\0\0\0\0\0\0\307" "\307\307\307\307\307\307\377\377\377\377\307\307\307\307\307\307\0\0\0\0\0\0\0\1\1\1\1\1\1\1\77\77" "\77\77\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360ppp" "p\360\340\340\300\200\0\0\0\0\0\0\0\0\0>\177\377\377\341\300\200\200\0\0\0\0\3\7\3\1\0" "\0\0\0\0\0\0\360\370\374\376\207\3\3\7\7\7\17\17\36\374\374\370\340\0\0\0\0\0\0\0\0\3" "\7\7\17\17\36\36\34<<\30\0\1\7\37\374\360\77\370\340\200" "\3\37\77|x\360\340\340\340\340px\70\20\0\200\340\370\77\7\0\0\1\3\7\6\14\14\34\30\30\30" "\30\30\34\14\16\6\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0" "\3\207\203\201\301\301\300\300\301\301\307\377\377\374\0\0\0\0\0\0\0\0\0<\177\377\343\301\301\201\300\300" "\300\340p\377\377\377\0\0\0\0\0\0\0\0\60\60\60\60\60\61\61\61\61\61\60\60\60\61\61\61\60\60" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\360\370|\70\0\0\0\200\300\340\360x\70\20\0\0\0\0\0\14\36" "\77\177\363\341\300\200\0\14\36\77\177\363\341\300\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\2" "\0\0\0\0\1\3\7\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppppppp" "pppp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\340p\60\60\30\30\30\30\30\30\30\60\60p\340\300\200\0\0\0\374\37\7\1\0\0\377\377\203\203\203\203" "\203\207\306\376x\0\0\1\7\37\374\360\77\370\340\200\0\0\177\177\1\1\1\1\3\17\77x`\0\0\200" "\340\370\77\17\0\0\1\3\7\6\14\14\34\30\30\30\30\30\34\14\16\6\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300" "\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0~\377\377\303\201\0\0\0\0\201\303\377\377~\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7" "\7\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\16\16\16\16\16\16\16\16\16\377\377\377\377\16\16\16\16\16\16\16\16\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\34\34\34\34\34\34\34\34\34\34\34" "\34\34\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\340````\340\340\300\200\0\0\0\0\0\0\0\0\0\0" "\0\1\3\1\0\0\0\0\200\300\340\361\177\77\37\0\0\0\0\0\0\0\0\0\0\340\360\370\374\336\317\307" "\303\303\301\300\300\300\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340```" "`\340\340\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0`ppp\370\377\337\217\0\0" "\0\0\0\0\0\0\0\0\60\70xp\340\340\340\300\340\340`q\77\77\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374x\60\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\2\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\300\377\377\377\17\37\34\70\70\70\70<" "\36\17\7\7\37\37<\70\70<\36\14\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\340\340\360\360\360\360\360pppp\360\360\360\0\0\0\0\0\374\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\377\377\377\0\0\0\0\0\0\3\7\17\17\37\37\37\77\377" "\377\377\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\3\3\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0x\374\374\374\374x\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\70\70ppcccs\77>\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\7\7\3\3\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\360" "\374\377\17\3\1\1\0\1\1\3\17\377\376\370\0\0\0\0\0\0\0\0\0\7\77\177\370\340\300\300\200\300" "\300\340\370\177\37\7\0\0\0\0\0\0\0\0\60\60\60\60\60\60\61\61\61\61\61\60\60\60\60\60\60\60" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\10\34\67\63\61\60\60\377\377\60\60\0\0\0\0\0\0" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0`pp\370\370\370\0\0\0\0\0\0" "\0\0\0\0\0\340\360\360 \0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\300\360\374\77\17\3\0" "\0\0\0\0\0\0\0\7\7\7\0\0\0\200\340\370~\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\300\360\376\77\17\1\60x\30\34\14\14\14\34\70\370\340\0\0\0@\360\374\177\17\3\0\0\0\0" "\0\300\340p\60\30\34\16\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3" "\3\3\3\0 p\70\30\30\30\70\60\360\340\0\0\0\0\0\0\0\200\360\360`\0\0\0\200\200\0\0" "\14\14\14\36\377\363\340\0\0\0\340\370\376\37\7\1\0\0\0\0\3\3\7\6\6\6\6\7\3\3\300\360" "\374\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\177\37\7\0\0\0\300\340p\374\374" "\0\0\0\0\0\0\0\300\370\376\77\17\1\0\0\60\70>\63\61\60\60\377\377\60\60\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\303\303\303\303\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\300\340\370\177\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\374\377" "\377\377\7\1\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\3\7\17\37\36<\70\70\70" "\70<<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\1\201\363\303\3\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\340\374\377\37\177\376\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\77\7\0\0\0" "\3\37\177\376\370\300\0\0\0\0\0\0\0\300\370\376\377\37\17\16\16\16\16\16\16\16\16\17\77\377\376\370" "\300\0\0\0\36\37\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\36\30\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\203\363\303" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\37\177\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\370\377\77\7\0\0\0\3\37\177\376\370\300\0\0\0\0\0\0\0\300\370\376" "\377\37\17\16\16\16\16\16\16\16\16\17\77\377\376\370\300\0\0\0\36\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\37\37\36\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\14\16\7\7\3\3\301\201\3\7\7\16\14\4\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\377\77\377\374\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\177\17\1\0\0" "\7\77\377\374\340\200\0\0\0\0\0\0\0\200\360\374\377\77\37\34\34\34\34\34\34\34\35\37\77\377\374\360" "\200\0\0\0<\77\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\77<\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\1\0\0\0\301\3" "\7\17\16\16\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\300\370\377\77\377\374\340\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\177\17\1\0\0\7\77\377\374\340\200\0\0\0\0\0\0\0\200\340\374" "\377\77\37\34\34\34\34\34\34\34\34\37\177\377\374\340\200\0\0\0<\77\77\17\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\17\77\77<\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\7\7\7\3\0\300\200\0\3\7\7\7\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\360\376\177\377\376\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\37\3\0\0" "\3\37\377\376\360\200\0\0\0\0\0\0\0\0\300\370\377\177\37\34\34\34\34\34\34\34\34\37\77\377\376\360" "\200\0\0\0\70\77\77\37\3\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\77>\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\77\70\360\260" "\70\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\77\377\376\360\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\177\17\1\0\0\7\77\377\374\360\200\0\0\0\0\0\0\0\200\360\374" "\377\77\37\34\34\34\34\34\34\34\35\37\177\377\374\340\200\0\0\0<\77\77\17\1\0\0\0\0\0\0\0" "\0\0\0\0\0\3\17\77\77< \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0" "\0\200\360\376\177\17\1\377\377\377\377\1\1\1\1\1\1\1\1\0\0\0\0\300\374\377\77\3\0\0\0\377" "\377\377\377ppppppp\0\0\200\360\376\377\37\35\34\34\34\34\34\377\377\377\377\0\0\0\0\0" "\0\0\0\0\77\77\7\0\0\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\340\360\374\376\77\17\7\3\3\1\1\1\1\3\3\7\17\37>" "\34\30\0\0\376\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\177\377\377" "\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\3\7\17\17\36\34<\70\270" "\370\370\70<\34\36\17\7\3\0\0\0\0\0\0\0\0\0\0\70\60ppcccw\77>\36\0\0" "\0\0\0\0\0\300\300\300\300\300\301\303\303\303\307\307\317\316\304\300\300\300\300\300\300\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\377\377\377\377ppppppp" "pppppp\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\304\316\316\307\307" "\307\303\303\301\300\300\300\300\300\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\377\377\377\377ppppppppppppp\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70" "\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\304\316\316\307\303\303\301\301\303\307\307\316\314\304\300\300\300\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\377\377\377\377ppppppp" "pppppp\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\303\307\307\307\303\300\300\300" "\300\303\307\307\307\303\300\300\300\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\377\377\377\377ppppppppppppp\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70" "\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\341\341\341\343\343\343\347\347\342\340\340\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\34\34\34\34\34\34\37\37\37\37\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\316\316\307\307" "\307\303\303\303\301\300\300\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77" "\77\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\304\316\306\307\303\303\301\301\303\303\307\317\316\304\300\0\0\0\0\0\0\0\0\1" "\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77\77\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\303\307\307\307\303\300\300\300" "\300\303\307\307\307\303\300\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77" "\77\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\1\1\1\1\1\1\3\3\7\17\37\376\374\370\340\0\0\0pp\377\377\377\377ppppp\0" "\0\0\0\0\0\0\377\377\377\376\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\300\360\377\377" "\77\7\0\0\0\0\77\77\77\77\70\70\70\70\70\70<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\302\303\207\3\1\0\0\1\3" "\3\7\17\16\16\7\307\303\301\300\0\0\0\377\377\377\377\77\376\370\340\300\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\377\377\377\377\0\0\3\17\37\177\374\360\300\200\0\0\0\377\377\377\377\0\0\0\377\377\377" "\377\0\0\0\0\0\0\1\7\37\77\376\370\340\377\377\377\377\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\3\17\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\203\203\203\307\307\307\317\316\314\204\200\0\0\0\0\0\0\0\0\340\370\374" "\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377" "\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\214\316\316\307" "\307\307\303\203\203\0\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377" "\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70" "\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\14\216\207\207\303\301\301\301\303\307\217\216\14\0\0\0\0\0\0\0\340\370\374" "\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377" "\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\201\200\200\300\300\301" "\303\303\307\207\207\7\3\1\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377" "\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70" "\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\203\203\201\300\300\300\300\301\303\203\203\1\0\0\0\0\0\0\0\340\370\374" "\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377" "\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\340\340\300\200\0\0\0\0\0\0\0\200\300\340\340@" "\0\0\0\0\0\0\0\0\0\1\7\217\337\376\374\370\374\376\337\207\3\1\0\0\0\0\0\0\0\0\0\30" "<>\37\17\7\3\1\0\1\3\7\17\37><\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\200\340\340\340@\0\0\300\360\370" "\374>\37\17\7\7\3\3\3\7\307\357\377~\377\377\363\300\0\0\374\377\377\377\1\0\0\0\0\0\300\360" "\374\177\37\7\1\0\1\377\377\377\374\0\17\377\377\377\340\200\300\360\374\77\17\7\1\0\0\0\0\0\340\377" "\377\377\17\0\0\200\343\377\177\77\77\77\70xppppx<>\37\17\7\3\0\0\0\0\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\0\0\1\1\1\3\3" "\3\7\7\0\0\0\340\340\340\340\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\177\377\377" "\377\300\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377\37\0\0\0\0\1\3\7\7\17\16\36\34\34\34" "\34\36\36\17\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\340\340\340\340\0\0\0\7\7\3\3\3\1\1\0\0\0\340\340\340\340\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\177\377\377\377\300\0\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\37\0\0\0\0\1\3\7\7\17\16\36\34\34\34\34\36\36\17\17\7\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\16\16\7\3\3\1\1" "\1\3\7\17\16\4\300\300\300\300\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377" "\377\200\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\77\0\0\0\0\3\7\17\17\36\34<\70\70\70" "\70<<\36\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\301\3\3\3\1\0\0\0\0\0\1\3\3\3\301\300\300\300\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\300\377\377" "\377\77\0\0\0\0\3\7\17\17\36\34<\70\70\70\70<<\36\37\17\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \340\340\340\340\200\0\0\7\7\3\3" "\3\1\1\1\0\0\300\340\340\340 \0\0\0\3\7\37\177\376\370\340\200\0\0\0\0\200\340\370\377\77\17" "\3\0\0\0\0\0\0\0\0\0\1\7\37\177\376\370\370\376\177\37\7\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37" "\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377ppppppppp\360\340\340\300\200\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\1\3\377\377\377\374\0\0\0\0\377\377\377\377\70\70\70\70\70\70\70\70\70<\36\37\17\17\3" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360ppp" "\360\340\340\340\300\200\0\0\0\0\0\0\0\370\376\377\377\7\1\0\0\0\0\0\0\0\1\203\377\377\377\70" "\0\0\0\0\0\377\377\377\377\0\0\0\0\34\34\34\34\36\77\77{\363\341\300\200\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377~\0\0\0\77\77\77\77\0\0\0\30<<\70" "\70\70<<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\60p\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\200\200\200\200\201\203\207\207\206\200\0\0\0\0\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3" "\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377" "\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\360\370x\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\206\207\207\203\201\200\200\0\0\0\0" "\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370" "\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70" "\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360|\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\206\217\207\203\200\200\200\201\207\217\7\4\0\0\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3" "\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377" "\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360x\70\70\70x" "\360\340\300\200\200\300\340\340@\0\0\0\0\0\0\0\0\1\200\200\200\200\200\200\200\201\203\203\3\3\1\0" "\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370" "\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70" "\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0" "\0\0\201\201\201\200\200\200\200\200\200\201\1\1\0\0\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3" "\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377" "\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\374\34\14" "\14\34\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\201\203\207\207\206\206\203\203\200\0\0\0\0" "\0\0\0\0\0\0\0\2\6\17\7\3\3\3\3\3\3\3\3\7\17\377\376\374\360\0\0\0\0\340\360\370" "\374\36\16\16\17\7\7\7\7\7\7\7\207\377\377\377\377\0\0\0\0\3\17\17\37\36<\70\70\70\70\70" "\34\34\16\17\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300" "\300\300\300\300\300\200\200\0\200\200\300\300\300\300\300\300\200\0\0\0\0\1\203\201\201\301\301\301\303\377\377\376" "\377\307\303\301\301\301\301\303\377\377\374\0\376\377\377\7\3\3\1\1\1\377\377\377\377\201\1\1\1\1\1\1" "\1\1\1\0\3\17\17\37\36\34\34\36\17\17\7\3\7\17\17\36\34\34\34\36\16\17\6\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\0" "\0\0\0\0\0\300\370\374\376\37\7\3\3\1\1\1\1\1\1\1\3\3\7\17\7\0\0\0\0\37\177\377" "\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\1\3\7\7\17\16\36\34\374" "\374\374\234\236\16\17\17\7\2\0\0\0\0\0\0\0\0\0\0\34\30\70\70\61\61\61;\37\37\17\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\60p\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\200\200\201\203\207\207\206\200\0\0\0\0\0\0\0\0\0\300\360\374\376\237\217\207\203\203\203\203" "\203\203\203\207\217\377\376\370\340\0\0\0\0\177\377\377\377\303\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\1\3\7\17\37\36<<\70\70\70\70\70<\34\36\17\6\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\360\370\370\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\206\207\217\203\201\200\200\0\0\0\0" "\0\0\0\0\0\300\360\374\376\237\217\207\203\203\203\203\203\203\203\207\217\377\376\370\340\0\0\0\0\177\377\377" "\377\303\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\1\3\7\17\37\36<<\70\70" "\70\70\70<\34\36\17\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370|\370\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\6\217\207\201\200\200\200\203\207\217\6\0\0\0\0\0\0\0\0\300\360\374\376\237\217\207\203\203\203\203" "\203\203\203\207\217\377\376\370\340\0\0\0\0\177\377\377\377\303\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\1\3\7\17\37\36<<\70\70\70\70\70<\34\36\17\6\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0" "\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0\0\0\1\1\201\200\200\200\200\200\200\201\201\1\0\0\0" "\0\0\0\0\0\300\360\374\376\237\207\207\203\203\203\203\203\203\203\207\237\377\376\370\340\0\0\0\0\177\377\377" "\377\303\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\0\1\3\7\17\37\36<<\70\70" "\70\70<\34\36\36\16\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\60p\370\370\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\200\200\200\200\203\207\207\207\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\340\370\370p\20\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\207\207\207\203\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77" "\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370x\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\204\216\217\203\201\200\200\201\203\7\17\6\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0" "\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0\0\200\201\201\201\200\200\200\200\200\0\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77" "\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60pp\340\340\300\200\200\200\300\300\300\300\0\0\0\0\0\0\0\0" "\0\6\16\216\206\207\207\203\203\207\237\77\375\371\360\300\0\0\0\0\200\360\370\374>\17\7\7\3\3\3\3" "\3\3\7\7\16\177\377\377\376\340\0\0\77\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377" "\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360p\70\70\70x\360" "\340\300\200\200\200\340\360`\0\0\0\0\0\0\200\200\201\201\0\0\0\0\200\200\201\203\203\203\203\1\1\0" "\0\0\0\0\0\0\377\377\377\377\34\16\7\7\3\3\3\3\3\7\17\377\376\374\360\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0p\370\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\200\200\201\203\217\207\202\200\0\0\0\0\0\0\0\0\200\360\370\374>\17\7\7\3\3\3\3" "\3\3\7\17\37~\376\370\360\200\0\0\77\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377" "\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340" "\370\370p\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\207\207\207\203\200\200\200\0\0\0\0" "\0\0\0\0\200\360\370\374>\17\7\7\3\3\3\3\3\3\7\17\37~\376\370\360\200\0\0\77\377\377\377" "\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70" "\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\370||\370\340\300\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\6\17\207\203\200\200\200\200\203\207\217\6\0\0\0\0\0\0\0\200\360\370\374>\17\7\7\3\3\3\3" "\3\3\7\17\37~\376\370\360\200\0\0\77\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377" "\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360x\70\70\70x\360" "\340\300\200\200\300\340\360@\0\0\0\0\0\0\0\0\1\0\0\200\200\200\200\200\201\203\203\203\3\1\0\0" "\0\0\0\0\200\360\370\374>\17\7\7\3\3\3\3\3\3\7\17\37~\376\370\360\200\0\0\77\377\377\377" "\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70" "\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0\0" "\0\1\1\201\200\200\200\200\200\200\201\201\1\0\0\0\0\0\0\0\200\360\370\374~\37\7\7\3\3\3\3" "\3\3\7\7\37~\376\370\360\200\0\0\77\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377" "\377\37\0\0\0\0\3\7\17\17\36\34<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p\370\370\370p\0\0\0\0\0\0" "\0\0\0\0\0\0pppppppppppppppppp\0\0\0\0\0\0\0\0" "\0\0\0\0\0p\370\370\370p\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\300@\0\0\0\0\0\340\360\370|\36\16\17\7\7\7\207" "\347\377\177\37\37\177\371\360\340\0\0\0\177\377\377\377\200\0\200\300\360\374>\17\7\1\0\0\0\300\377\377" "\377\77\0\0\0\1\307\377\377~\77\77{ppppx\70<>\37\17\7\1\0\0\0\0\0\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20p\370\370" "\340\300\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\1\7\7\7\0\0\200\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\0\0\0\0\0\0\7\17\37\37><\70\70\70" "\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\370p\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\0\0\0\0\7\7\7\1\0\0\0\200\200\200\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\377\0\0\0\0\0\0\7\17\37\37><\70\70\70\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360|" "\370\360\340\200\0\0\0\0\0\0\0\0\0\0\200\200\200\200\6\17\7\3\0\0\0\1\7\17\7\204\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\0\0\0\0\0\0\7\17\37\37><\70\70\70" "\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\200\200" "\200\200\1\1\1\0\0\0\0\0\0\1\1\201\200\200\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\377\0\0\0\0\0\0\7\17\37\37><\70\70\70\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\360\370x\60\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\6\7\7\3\1\0\0\0\0\200\200" "\200\200\0\0\0\1\7\77\377\376\360\300\0\0\0\0\0\0\0\0\340\374\377\77\17\1\0\0\0\0\0\0" "\0\3\37\177\376\370\300\0\0\340\370\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\377\377" "\377\77\17\1\0\0\0\0\0\0\0\0\70\37\17\3\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--44-440-72-72-P-201-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr33_3x6_r[13684] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_r") = " ~\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77" "\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\360\340\0\0\0\0\0\340\360\360\340\0\0\0\0\0\0\0\0\0" "\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0" "\0\0\0\0\300\300\300@\0\0\0\0\0\200\200\200\200\200\200\377\377\377\201\200\200\200\200\300\377\377\377\200" "\200\200\200\0\0\1\1\1\1\1\377\377\377\1\1\1\1\1\301\377\377\177\1\1\1\1\1\0\14\14\14\14" "\14\374\377\377\17\14\14\14\14\214\377\377\177\14\14\14\14\14\0\0\0\0\0\0\34\37\37\3\0\0\0\0" "\0\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370" "\374\376\17\7\7\7\377\377\377\7\7\7\17\36>\34\10\0\0\0\0\0\1\7\17\37\36<\374\370\340\0\0 \70>\37\7\3\0\0\0\0\0" "\3\17\37<\70\70\70<\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0|" "\377\377\377\3\3\1\1\3\207\377\377\376x\0\0\0\0\0\0\0\0\0\0\200\301\347\357\177|\370\374\336" "\217\7\3\1\0\0\0\200\0\0\0\0\370\376\377\377\7\1\0\0\0\0\3\7\37\77\374\370\360\360\370\177" "\37\16\2\0\1\7\17\37\36<<\70\70\70<\34\36\17\17\7\3\7\37\77\36\30\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\200\340\360\374~\37\17\7\3\1\1\0\0\0\0\0\0\0\0\0\0\0\340\376\377\377\17\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\7\17\37>\374x`\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0\0ppppppppp\377\377\377\377pppppppp\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<~\376\376\374p\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0 x<\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\360\360\340 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\300\360\374\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\370\376\77\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\370" "\374\376\37\17\7\3\1\1\1\3\3\207\377\376\374\360\300\0\0\0\0\376\377\377\377\0\0\0\0\300\340\360" "x\36\17\7\1\1\377\377\377\374\0\0\0\7\177\377\377\370\374\36\17\7\1\0\0\0\0\0\200\360\377\377" "\77\3\0\0\0\0\0\1\3\7\17\37\36<\70\70\70<\34\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\14\16\16\7\7\7\7\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\16" "\37\17\7\3\3\1\1\1\1\3\3\7\37\377\376\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\360\374\77\37\17\1\0\0\0\0\0\0\0\200\300\340\360x<\36\17\7\3\1\1\0\0\0\0" "\0\0\0\0\0\0\70>\77\77;\71\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\2\7\7\3\3\1\1\1\1\1\3\7\17\377\376\374p" "\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70x||\376\357\347\307\201\0\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\201\377\377\377\376\0\0\0\0\0\0\4\16\37\36\34<\70\70\70\70" "<<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\300\360\370>\17\377\377\377\377\0\0\0\0\0\0\0\0\0\200\340\360|>\17\7\1\0" "\0\0\377\377\377\377\0\0\0\0\0\0\0\34\37\37\37\35\34\34\34\34\34\34\34\34\377\377\377\377\34\34" "\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\77\177\77\37\34\16\16\16\16\16\36\36<\374\370\360\340\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\177\0\0\0\0\0\3\7\17\36\36\34<\70\70\70" "<<\34\36\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\340" "\370\374~\37\7\3\3\1\1\1\1\3\3\7\3\3\0\0\0\0\0\0\377\377\377\377p\70\34\36\16\16" "\16\16\36>|\370\360\340\0\0\0\0\0\0\37\377\377\377\300\0\0\0\0\0\0\0\0\0\200\377\377\377" "\177\0\0\0\0\0\0\0\3\7\17\37\36<\70\70\70<<\36\37\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\301\361\377\377\77\7\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60>\77\77\17\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\360" "\374\376\377\17\3\3\1\1\1\1\3\3\17\377\377\374p\0\0\0\0\0\0\0\3\207\317\377\376|\70\70" "\60x\374\376\317\317\207\1\0\0\0\0\0\0\370\376\377\377\3\1\0\0\0\0\0\0\0\0\1\207\377\377" "\376x\0\0\0\0\0\3\7\17\37\36<<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\374\376\377\17\7\3\3\1\1\1\3\3\17\37\376\374\360" "\200\0\0\0\0\0\17\77\177\377\360\340\300\300\200\200\200\300\300\340p\377\377\377\377\0\0\0\0\0\0\0" "\0\0\1\1\3\3\3\3\3\1\1\0\340\377\377\177\17\0\0\0\0\0\0\14\36\36\34<\70\70\70\70" "<\34\36\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77" "\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>>\376" "\376\374x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\70\36\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300\300\340\340\360px<<\36\36\0\0p\360\370\374\334\236\216\17\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\16\36<\70xp\360\340\340\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\34\34\34" "\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<\70xp" "\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7" "\16\16\34<\270\370\360\360\340\340\0\0\0\0\200\200\300\300\340\360\360x\70<\34\36\17\7\7\3\3\1" "\0\0\0\0\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360ppp" "p\360\360\340\340\300\200\0\0\0\0\0\0\0\3\7\7\3\1\0\0\0\0\0\0\0\0\1\203\377\377\377" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374>\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77" "\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374" ">\37\17\7\3\3\201\201\201\301\301\303\303\307\317\376\374\370\300\0\376\377\377\1\0\0\0\370\376\377\377\7" "\3\3\1\1\1\1\201\377\377\377\377\0\7\77\377\374\340\200\0\1\3\7\17\37\36\34\34\34\16\16\7\37" "\37\37\37\0\0\0\0\1\3\7\17\36\36\34<\70\70\70\70\70<\34\34\36\10\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\77\377\374\340\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\177\17\1\0\0\7\77\377\374\360\200\0\0\0\0\0\0\0\200\360\374" "\377\77\37\34\34\34\34\34\34\34\34\37\177\377\374\360\200\0\0\0<\77\77\17\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\17\77\77<\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\3\3\7\17\377\377\374\360\0\0\0\0\377\377\377\377\70\70\70\70\70\70\70" "\70x|\376\357\357\307\203\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\1\203\377\377" "\377x\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\200\200\200\0\0\0\0\0\0\0\340\360\374\376\77\17\7\3\3\1\1\1\1\3\3\7\17\37>" "\34\30\0\0\376\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\177\377\377" "\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\3\7\17\17\36\34<\70\70" "\70\70\70<\34\36\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\3\3\7\17\77\376\374\360\300\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\377\377\374\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377" "\77\3\0\0\0\77\77\77\77\70\70\70\70\70\70<<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\377\377\377\377ppppppppppppp\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70" "\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0\377\377" "\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\377\377\377\377\70\70\70\70\70\70" "\70\70\70\70\70\70\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\1\3\3\7\17\37\36" "\14\0\0\0\376\377\377\377\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\0\0\17\177\377\377" "\360\300\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\0\0\0\0\1\3\7\17\17\36\34<\70\70" "\70\70\70<\34\36\37\17\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377ppppppp" "ppppp\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77\77" "\77\70\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0" "\0\0\0\1\1\1\1\1\1\377\377\377\377\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\177\0\0\0" "\0\0\0\0\0\4\17\36\36<\70\70\70\70<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300@\0\0\0\377\377\377\377\0\0\0\0\200\300\340\360\370|>\17\7\3\1" "\0\0\0\0\0\377\377\377\377\360x<\376\377\367\303\201\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\1\7\17\77~\374\360\340\300\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\1\3\17\37\77>\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300\0\0\377\377\377\377\376\370\340\200\0\0\0\0\0\0\200\340\370~\377\377" "\377\377\0\0\377\377\377\377\0\3\17\77\376\370\340\360\374~\37\7\1\0\377\377\377\377\0\0\377\377\377\377" "\0\0\0\0\0\3\7\3\0\0\0\0\0\0\377\377\377\377\0\0\77\77\77\77\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\377\377\377" "\377\77\376\370\340\300\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\3\17\37\177\374" "\360\300\200\0\0\0\377\377\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\1\7\37\77\376\370\340\377\377" "\377\377\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\7\177\377\377" "\360\300\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\3\7\17\37\36\34<\70\70" "\70\70<\36\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\1\3\7\17\377\376\374\360\0\0\0\0\377\377\377\377\340\340\340\340\340\340\340" "\340\340\360x|\77\77\17\3\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370\374\376\37\17\7\3\3\1\1\1\3\3\7\17\37\376\374" "\370\340\0\0\376\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\376\0\17\177\377\377" "\360\200\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\177\7\0\0\0\1\7\17\17\37<<\70\370\370" "\370\70<<\36\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\36\36\34\34\34\34\34" "\34\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\377\377\377" "\377\1\1\1\1\1\1\1\1\3\3\7\17\377\376\374\360\0\0\0\0\377\377\377\377\340\340\340\340\340\340\340" "\340\340\360\370|\77\37\17\3\0\0\0\0\377\377\377\377\0\0\0\0\0\0\1\7\37\177\374\360\300\0\0" "\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\1\17\77\77>\70 \0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\0\370\374\376\377\7\3\3\1\1\1\1\1\3\3\7\17\37\16" "\0\0\0\0\0\0\1\3\7\17\37\36<\70xxp\360\340\340\300\300\200\0\0\0\0\0\0\0\200\200" "\0\0\0\0\0\0\0\0\0\0\0\1\3\207\377\377\376x\0\0\0\6\7\17\37\36\34<\70\70\70\70" "\70<<\34\36\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1" "\1\1\1\1\1\377\377\377\377\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\377\377\377" "\377\200\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\77\0\0\0\0\3\7\17\17\36\34<\70\70\70" "\70<<\36\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300@\0\0\7\77\377" "\376\360\200\0\0\0\0\0\0\0\0\0\200\360\376\377\37\3\0\0\0\0\0\1\17\177\377\374\340\0\0\0" "\0\0\340\374\377\77\7\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\370\300\370\377\177\17\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\77\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\0\37\377\377\370\0\0\0\0\0\200\370\377\376\340\0\0\0\0\0\360" "\377\377\7\0\0\17\377\377\374\0\0\300\374\377\17\1\37\377\376\360\0\0\370\377\377\3\0\0\0\0\3\377" "\377\377\374\377\17\0\0\0\0\1\37\377\377\370\377\77\0\0\0\0\0\0\0\0\77\77\17\0\0\0\0\0" "\0\0\0\1\37\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\1\7" "\37\177\374\370\340\200\0\0\0\300\360\374\177\37\17\3\0\0\0\0\0\0\0\0\0\0\1\7\217\377\376\374" "\377\337\7\1\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\77\37\7\3\17\37\177\374\370\340\200\0" "\0\0\0\0\0\60<\77\77\17\3\0\0\0\0\0\0\0\0\1\7\37\77>\70 \0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300@\0\0\1\7\17\77\377\374\360\300\0\0\0\0\0\0\300\360\376\177\37" "\7\1\0\0\0\0\0\0\0\0\3\17\77\377\374\360\360\374\377\77\17\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\1\1\1" "\1\1\1\1\1\1\1\1\1\201\341\371\377\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374" "\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374~\37\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\70>\77\77;\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360ppp" "pppppppp\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0`\340\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" "\17\77\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\376\370\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\374p@\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0pppppppppp" "pp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\377\377\377\377\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\300\360\374>\37\17\77~\370\360\300\0\0\0\0\0\0\0\0\0\0\0\16\17\7\3\0\0\0\0" "\0\0\1\7\17\17\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\200\200\200\200\200\200\200\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\77\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\374" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0\0\1\3\7\3\1\201\201\201\201\201\201\201\203\207\377\377\376\370\0\0\0\0\360\370\374" "\376\17\7\7\7\3\3\3\3\3\3\203\303\377\377\377\377\0\0\0\0\1\7\7\17\17\36\34\34\34\34\34" "\16\16\7\7\3\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377\377\16\7\3\3\3\3\3" "\3\3\7\17\77\376\374\370\300\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\77\0\0\0\0\77\77\77\7\7\16\34\30\70\70\70\70<\36\37\17\17\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0" "\0\0\0\0\0\300\370\374\376\37\7\3\3\1\1\1\1\1\1\1\3\3\17\17\6\0\0\0\0\37\177\377" "\377\340\200\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\1\3\7\7\17\16\36\34\34" "\34\34\34\36\16\17\7\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0" "\0\0\200\200\200\200\200\200\200\200\0\0\0\377\377\377\377\0\0\0\0\300\370\374\376\37\17\7\3\3\3\3" "\3\3\7\7\36\377\377\377\377\0\0\0\0\177\377\377\377\300\0\0\0\0\0\0\0\0\0\0\200\377\377\377" "\377\0\0\0\0\0\1\7\17\37\37><\70\70\70\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\340\370\376\377\317\307\303\301\301\301\301\301\301\301\303\307\377\377\374\360\0\0\0\0\77\377\377" "\377\341\201\1\1\1\1\1\1\1\1\1\1\1\201\1\1\0\0\0\0\0\0\1\3\7\17\17\36\36\34\34" "\34\34\34\36\16\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360pppp\360\340\340\300\200\0\0\0\0\0" "\0\0\0\376\377\377\377\3\0\0\0\0\0\0\0\0\1\7\1\0\0\0\7\7\7\7\7\377\377\377\377\7" "\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\300\300\200\200\0\200\300\300\300" "\300\300\200\0\0\370\376\377\377\7\3\1\1\1\1\1\3\7\377\377\377\371\1\1\1\1\1\0\0\0\303\347" "\367\77\36\34\34\34\34\34\36\17\17\7\3\0\0\0\0\0\0\0\200\340\363\367\77\37\16\16\16\16\16\16" "\16\16\16\16\36\34\374\370\370\340\0\0\3\17\17\37\36\34<\70\70\70\70\70\70\70<\34\36\37\17\7" "\3\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\377\377\377\377\34\16\7\7\3\3" "\3\3\3\7\17\377\377\374\360\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360" "\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\201\201\201\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70\70\70\77\77" "\77\77\70\70\70\70\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0\0" "\0\200\200\200\200\200\200\200\200\200\201\201\201\200\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3" "\3\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\10\34>" "\37\17\7\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\200\300\340\360x<>\36\17\7\3\1\0\0\0\0\0\0\377\377" "\377\377\36\17\7\7\17\77~\374\360\340\300\200\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0" "\0\0\1\7\17\37\77<\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0ppppppp\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\70\70\70\70\70\70\70\77\77\77\77\70\70\70\70\70\70\70\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\200\300\300\300\300\300\200\0\200\200\300\300\300\300\300" "\300\0\0\0\377\377\377\377\7\1\1\1\1\377\377\377\376\17\3\1\1\1\377\377\377\377\0\0\377\377\377\377" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377\377\377\0\0\37\37\37\37\0\0\0\0\0\37\37\37" "\37\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\0\0\200\200\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\377\377\377\377\16\7\3\3\1\1" "\1\1\1\3\7\377\377\376\370\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\0\0\0" "\0\0\0\0\300\370\374\376\37\7\3\3\1\1\1\1\1\1\3\7\17\77\377\374\370\300\0\0\37\177\377\377" "\340\200\0\0\0\0\0\0\0\0\0\0\200\340\377\377\177\17\0\0\0\0\1\3\7\7\17\16\36\34\34\34" "\34\36\16\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\0\0\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377\377\16\3\3\1\1\1\1" "\1\1\3\3\17\77\377\376\370\300\0\0\0\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\200\340\377\377" "\177\17\0\0\0\377\377\377\377\3\7\16\16\34\34\34\34\36\36\17\17\7\3\1\0\0\0\0\0\77\77\77" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\200\0\0\300\300" "\300\300\0\0\0\340\370\376\377\37\7\3\1\1\1\1\1\1\1\3\7\16\377\377\377\377\0\0\0\37\377\377" "\377\340\200\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\0\0\0\0\0\1\3\7\17\17\36\36\34\34" "\34\34\16\16\7\3\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\0\0\200\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\377\377\377\377>\17\7\3\3" "\1\1\1\1\1\1\3\7\3\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\0\0" "\0\0\0\0\0\0\0<\177\377\377\343\301\301\201\201\201\1\1\3\3\7\37\7\2\0\0\0\0\0\200\300" "\200\0\1\1\1\3\3\3\7\7\7\17\36\376\374\370\360\0\0\0\0\0\3\7\7\17\16\36\36\34\34\34" "\34\34\36\16\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\200\376\377\377\217\200\200\200\200\200\200\200\0\0\0\0\0\0\0\3\3\3\3\3\377\377\377\377\3" "\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\37\37><\70\70\70\70\34\34\36\16\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\0\0\0\0\0\0\7\17\37\37><\70\70\70" "\70\34\34\16\7\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\3\17\177\377\374\340\200\0\0\0\0" "\0\0\0\0\340\370\377\77\7\0\0\0\0\0\0\0\1\17\77\377\376\360\300\0\200\360\374\177\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\77\77>\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\200\200\0\7\377\377\374\200\0\0\0\0\300\374\376\376\370\300\0\0\0\0\300\377\377\37\0\0\0\37\377" "\377\360\0\300\374\177\17\0\3\37\377\374\340\0\340\377\377\7\0\0\0\0\0\3\77\77>\77\7\0\0\0" "\0\0\1\17\77\77\77\77\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\1\7\17\37~\374\360\340\200\200" "\340\360\370~\37\17\3\1\0\0\0\0\0\0\0\0\0\200\300\340\373\177\77\77\177\373\360\340\200\0\0\0" "\0\0\0\0\0 \60<>\37\17\3\1\0\0\0\0\0\3\7\37\77<\70\60\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\0\0\0\1\7\77\377\376\360\300\0\0\0\0\0\0\0\0\340\374\377\77\17\1\0\0\0\0\0\0" "\0\3\37\177\376\370\300\0\0\340\370\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\377\377" "\377\77\17\1\0\0\0\0\0\0\0\0\70\37\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\70<\77\77\77;\71\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\370\376\377\377\7\3\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\200\340\377\377\177\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\17=\375\370\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77|xxpppppp" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\3\3\17\377\377\376\360\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\377\377\300\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\360\370\375\37\17\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0ppppppxx>\77\37\17\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\200\300\200\0\0\0\6\17\17\3\3\1\1\1\3\7\7" "\17\36\36\34\34\36\16\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--44-440-72-72-P-201-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr33_3x6_n[3892] U8X8_FONT_SECTION("u8x8_font_inr33_3x6_n") = " :\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\30\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\16\17\16\36\34\34\70\270\360\377\377" "\367\260\70\30\34\34\16\16\17\10\0\0\0\0\0`p\370|\37\17\3\1\0\3\7\37>\374x`\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0\0ppppppppp\377\377\377\377pppppppp\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0<~\376\376\374p\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0 x<\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\360\360\340 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\300\360\374\377\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\370\376\77\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\370" "\374\376\37\17\7\3\1\1\1\3\3\207\377\376\374\360\300\0\0\0\0\376\377\377\377\0\0\0\0\300\340\360" "x\36\17\7\1\1\377\377\377\374\0\0\0\7\177\377\377\370\374\36\17\7\1\0\0\0\0\0\200\360\377\377" "\77\3\0\0\0\0\0\1\3\7\17\37\36<\70\70\70<\34\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\14\16\16\7\7\7\7\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\16" "\37\17\7\3\3\1\1\1\1\3\3\7\37\377\376\374\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\360\374\77\37\17\1\0\0\0\0\0\0\0\200\300\340\360x<\36\17\7\3\1\1\0\0\0\0" "\0\0\0\0\0\0\70>\77\77;\71\70\70\70\70\70\70\70\70\70\70\70\70\70\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\2\7\7\3\3\1\1\1\1\1\3\7\17\377\376\374p" "\0\0\0\0\0\0\0\0\0\0\0\70\70\70\70x||\376\357\347\307\201\0\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\201\377\377\377\376\0\0\0\0\0\0\4\16\37\36\34<\70\70\70\70" "<<\36\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\300\360\370>\17\377\377\377\377\0\0\0\0\0\0\0\0\0\200\340\360|>\17\7\1\0" "\0\0\377\377\377\377\0\0\0\0\0\0\0\34\37\37\37\35\34\34\34\34\34\34\34\34\377\377\377\377\34\34" "\34\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\377\377\377\377\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\77\177\77\37\34\16\16\16\16\16\36\36<\374\370\360\340\0\0\0\0\0\0\0\0" "\200\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\177\0\0\0\0\0\3\7\17\36\36\34<\70\70\70" "<<\34\36\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\340" "\370\374~\37\7\3\3\1\1\1\1\3\3\7\3\3\0\0\0\0\0\0\377\377\377\377p\70\34\36\16\16" "\16\16\36>|\370\360\340\0\0\0\0\0\0\37\377\377\377\300\0\0\0\0\0\0\0\0\0\200\377\377\377" "\177\0\0\0\0\0\0\0\3\7\17\37\36<\70\70\70<<\36\37\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\301\361\377\377\77\7\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\376\377\77\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60>\77\77\17\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\360" "\374\376\377\17\3\3\1\1\1\1\3\3\17\377\377\374p\0\0\0\0\0\0\0\3\207\317\377\376|\70\70" "\60x\374\376\317\317\207\1\0\0\0\0\0\0\370\376\377\377\3\1\0\0\0\0\0\0\0\0\1\207\377\377" "\376x\0\0\0\0\0\3\7\17\37\36<<\70\70\70\70<\34\36\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\340\374\376\377\17\7\3\3\1\1\1\3\3\17\37\376\374\360" "\200\0\0\0\0\0\17\77\177\377\360\340\300\300\200\200\200\300\300\340p\377\377\377\377\0\0\0\0\0\0\0" "\0\0\1\1\3\3\3\3\3\1\1\0\340\377\377\177\17\0\0\0\0\0\0\14\36\36\34<\70\70\70\70" "<\34\36\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77" "\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\36\77\77\77\77\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--62-620-72-72-P-281-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ #ifdef U8G2_USE_LARGE_FONTS const uint8_t u8x8_font_inr46_4x8_f[57348] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_f") = " \377\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\37\37\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\360\0\0\0\0\0\0\0\0\360\370\370\370\360\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\300\300\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\1\0\0\0\0\0\0\0\377\377\377\377\17\0" "\0\0\0\0\0<<<<<<<<\377\377\377\377=<<<<<<<\376\377\377\377\77<<" "<<<<\0\0\0\0\0\0\0\0\377\377\377\377\3\0\0\0\0\0\0\0\374\377\377\377\37\0\0\0" "\0\0\0\0\70\70\70\70\70\70\70\376\377\377\377\77\70\70\70\70\70\70\70\374\377\377\377\37\34\34\34\34" "\34\34\34\0\0\0\0\0\0\0\376\377\377\377\7\0\0\0\0\0\0\0\370\377\377\377\37\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\6\7\7\7\7\0\0\0\0\0\0\0\0\7\7\7\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\10\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\374>\36\37\17\17\377\377\377\377\17\17\17\37\36>~\374\374\370" "p \0\0\0\0\0\37\177\377\377\377\370\340\300\200\0\0\377\377\377\377\0\0\0\0\0\0\0\0\1\0" "\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\17\37\37\377\377\377\377||\370\370\370\360\360\340\340\300" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\1\3\17\377\377" "\377\377\374\0\0\0\30>\77~\374\370\360\360\340\340\340\340\377\377\377\377\340\340\340\360\360\370\374\177\77\77" "\37\7\1\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\77\77\77\77\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300" "\300\300\0\0\360\374\377\377\17\7\7\3\7\7\37\377\377\377\374\360\0\0\0\0\0\300\360\374\377\177\37\7" "\1\0\0\0\3\17\77\77|\370\370\360\370\370\374\177\177\77\17\3\200\340\370\374\377\77\17\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\177\37\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374\377\77\17\7\1\0\200\340\370\374|>\36\36\36>|" "\374\370\340\200\0\0\0\200\340\370\376\177\37\17\3\0\0\0\0\0\0\77\377\377\377\340\200\200\200\200\200\340" "\377\377\377\77\0\4\6\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\17\7\7\7" "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\370\374\376\377\77\37\17\17\17\17\17\17\37\177\377\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\37\177\377\377\377\370\340\200\0\0\0\0\200\300\360\377\377\377\177\37\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\363\367\377\177\177\377\376\376\377\357\317\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\300\370\374\377\377\177\17\7\1\0\0\0\0\1\3\17\37\77\177\376\374\360\340\300\200\300\340\370" "\377\377~\34\37\177\377\377\377\370\340\300\200\0\0\0\0\0\0\200\200\300\300\341\363\377\377\177\177\377\377\377" "\343\300\200\0\0\0\0\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0\3\17" "\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370x`" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\177\77\17\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\177\37\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\377\377\377\377\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377\377\376\360\300\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77\377\377\374\370\360\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77>~\374\70" "\10\0\0\0\0\0\0\0\360\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\37\177\377\376\374\370\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\377\377\377\377\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\377\77\17\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\77\37\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\10\374|~\77\37\37\17\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340 \0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\340\340\300\300\200\200\0\0\0\0\17\377\377\377\177\0\0\0\0\200\200\300\300\300\340" "\340\200\0\0\0\1\3\3\3\7\7\7\7\17\17\216\376\374\377\177\377\374\376\316\17\17\7\7\7\7\3\3" "\3\1\0\0\0\0\0\0\200\300\360\370\374\376\77\37\7\3\0\0\0\3\7\37\77\376\374\370\360\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\36\36\36\36\36\36\36\36\36\36\36\36\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36" "\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\17\17\37\377\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\360\370~\77\17\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxx" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\370\360\360" " \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\10\36\37\77\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\376\77\37\37\17\17\17\17\17\17\37\77~\374\370\360\340\200\0" "\0\0\0\0\0\0\370\376\377\377\177\17\1\0\0\0\0\0\0\0\0\0\200\340\360\370\375\77\377\377\377\376" "\360\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\300\340\360\370\376\77\37\17\3\1\0\0\0\377\377\377" "\377\377\0\0\0\17\377\377\377\377\370\340\360\374~\77\37\17\3\1\0\0\0\0\0\0\0\0\340\377\377\377" "\377\17\0\0\0\0\0\7\37\77\377\377\377\361\340\300\200\200\0\0\0\0\200\200\300\340\370\376\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60x\70<<>\36\37\37\17\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70|\376~\37\17\17\7\7\7\7\7\7\7\7\17\17\37\177\377\376\374\370\340" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\341\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\177\77\37\17\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\177\77\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\377\377\237\217\203\201\200\200\200\200\200\200\200\200\200\200\200\200\200\200\300" "\300\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<~>\37\37\17\17\17\17\7\17\17\17\37\37\77\376\376\374\370\360\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\377\377\377\377\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0||<||~~~\377\377\377\367\343\303\201\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\7\37\377\377\377\376\360" "\0\0\0\0\0\0\200\300\340\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177\77\7" "\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374\177\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\77\37\7\3\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0<\77\77\77\77=<<<<<<<<<<<<\377\377\377\377\377<<<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\0\376\377\377\377\377\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\377\377\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\77\77\77\177\37\37\17\7\7\7\7\3\7\7\7\7\17\37\77\177\377\376\374\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377" "\377\377\0\0\0\0\0`\360\370\370\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177" "\37\7\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\370\370\374~\77\37\37\17\17\17\7\17\17\17\17\37\77>\36\14" "\0\0\0\0\0\0\0\300\374\377\377\377\377\7\1\0\0\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\360|>\36\17\17\7\7\7\7\7\17\17\37\77\377\376\374\370\360" "\300\0\0\0\0\0\0\177\377\377\377\377\341\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377" "\377\376\0\0\0\0\0\0\7\37\177\377\377\374\360\340\300\200\200\0\0\0\0\0\200\300\340\370\377\377\377\177" "\37\3\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\303\373\377\377\377\177\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\17\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\4\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\374\376\376\77\37\17\17\17\17\17\17\17\17\37\77\376\376\374\370\360\200" "\0\0\0\0\0\0\0\0\37\177\377\377\377\370\300\200\0\0\0\0\0\0\0\0\200\300\371\377\377\377\177\37" "\0\0\0\0\0\0\0\0\0\0\201\203\307\347\357\377\177>><||\376\376\377\357\347\303\201\0\0\0" "\0\0\0\0\0\0\340\370\374\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\1\3\7\37\377\377\376\374" "\360\0\0\0\0\0\17\77\377\377\377\376\360\340\300\200\200\0\0\0\0\0\0\200\200\300\340\370\377\377\377\177" "\37\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\370\374\376\376\77\37\17\17\17\7\17\17\17\37\77~\376\374\370\360\300\0" "\0\0\0\0\0\0\0\376\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377\377" "\370\0\0\0\0\0\0\3\37\77\377\377\377\370\360\340\300\200\200\200\200\200\300\300\340\340\360|\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\7\7\7\7\7\7\7\3\3\1\0\300\377\377\377\377" "\77\0\0\0\0\0\0\0\0\200\300\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\374\377\177\77\17\3" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\237\377\377\377\377\37\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0 p\370~\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\360\370" "\370||\0\0\0\0\0\0\200\200\300\340\340\360\360\370\370||>>\37\37\17\17\7\7\3\1\1\0" "\0\0\0\0<>~\377\377\377\367\347\343\303\201\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\37\77>||\370\370\360\360\340\300\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\37\37\77" ">|\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxxxx" "xxx\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\1\3\3\7\7\17\17\37\37>>||\370\360\360\340\340\300\300\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\203\207\307\317\377\377\376\376" "\374|x\0\0\0\0\0\0\0\200\200\300\300\340\340\360\370\370||>>\37\17\17\7\7\3\1\1\0" "\0\0\0\0\370\374|>>\37\37\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\340\340\340\300\300\200\0\0\0" "\0\0\0\0\0\0\10\36\77\177\77\17\7\7\3\1\1\1\1\0\1\1\1\3\3\17\37\377\377\377\374\360" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377\177\37" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\376\377\77\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\340\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\17\17\17\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\360\370\374|>>\37\17\17\17\17\7\17\17\17\17\37\37>~\374\370\360" "\340\200\0\0\200\370\376\377\377\17\3\1\0\0\0\0\0\200\300\340\340\360\360\370xxxxxy\377\377" "\377\377\374\0\377\377\377\377\0\0\0\0\0\0\0\370\376\377\377\7\3\1\0\0\0\0\0\0\0\200\377\377" "\377\377\377\0\17\377\377\377\370\300\0\0\0\0\0\3\17\37\77\177|\370\370\370\370\370x|>\37\177\177" "\177\177\177\0\0\0\3\17\37\177\377\374\370\360\340\300\300\200\200\0\0\0\0\0\0\0\0\200\200\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\370\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\177\17\1\3\37\377\377\376\370\300\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\360\376\377\377\37\3\0\0\0\0\0\0\7\37\377\377\376\370\300\0\0\0" "\0\0\0\0\0\0\0\340\374\377\377\177\77<<<<<<<<<<<<\77\177\377\377\376\370\300" "\0\0\0\0\300\370\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377" "\376\370\300\0\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\7\7\7\7\7\7\17\37\77\377\377\376\374\360" "\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\377\377\377\77" "\17\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\37\37\37\37\77\77\77\177\377\373\363\341\300\200" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\374\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\300\300\300\300\300\300\340\360\370\376\377\177\77" "\37\7\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\374~>\37\37\17\17\17\17\7\17\17\17\17\37\77~\376\374" "\370\360\340\200\0\200\370\376\377\377\377\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\3\3\1\1\0\377\377\377\377\377\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\377\377\377\377\376\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\37\77\177\377\376\374\360\340\300\200\200\200\0\0\0\0\0\0\200\200\300\340\360\370" "\370\360p\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\7\7\7\7\7\7\17\37\77\177\376\374\370\360\340\200" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\177\377\377\377" "\376\340\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377" "\377\17\0\0\0\377\377\377\377\377\200\200\200\200\200\300\300\300\300\300\300\340\340\360\370\374\377\177\77\37\17\3" "\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\374~>\37\37\17\17\17\17\7\17\17\17\17\37\37>~\374\374" "\370\360@\0\0\370\376\377\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3" "\1\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\0\37\377\377\377\377\376\200\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\377\377" "\377\377\377\0\0\0\7\37\77\177\377\376\370\360\340\300\200\200\200\0\0\0\0\0\0\200\200\200\300\300\377\377" "\377\377\377\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\377\377\377\377\377\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\200\300\340\360\340\300\200\200\0\0\0\0\0\200\200\300\360\376\377\377\377\77\7\0\0\0\0" "\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300" "\300@\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374~\77\37\17\7\3" "\0\0\0\0\0\377\377\377\377\377\0\0\0\200\300\340\360\370\374\177\77\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\370~\77\37\37\177\377\377\371\360\340\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\3\7\37\77\377\377\374\370\360\300\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\77\177\377\376\374\370\340" "\300\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\300\300\300\0\0\377\377\377\377\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377" "\377\377\377\0\0\377\377\377\377\377\3\17\77\377\377\374\360\300\0\0\0\0\200\340\370\376\377\77\17\3\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\3\17\77\377\377\370\370\376\377\77\17\3\0\0\0\0\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\3\7\7\3\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\0\377\377\377\377\377\377\377\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\3\17\37\177\377\376\370\340\200\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\374\370\340\200\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\37\177\377\377\377\377" "\377\377\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376~\77\37\17\17\17\17\17\17\17\17\37\37\77\376\374\374\370\360" "\300\200\0\0\200\370\377\377\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377" "\377\377\374\300\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377" "\377\377\377\377\17\377\377\377\377\376\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\377" "\377\377\377\77\0\0\7\37\77\177\377\376\370\340\300\300\200\200\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\7\7\7\7\7\17\37\77\377\377\376\374" "\360\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377" "\377\177\0\0\0\0\377\377\377\377\377xxxxxxxxxx||||~>\77\37\37\17\7" "\1\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\376\177\77\37\17\7\7\7\7\7\7\7\7\17\37\37\177\376\376\374\370" "\340\300\0\0\300\374\377\377\377\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377" "\377\377\376\340\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377" "\377\377\377\377\17\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\376\377" "\377\377\377\37\0\0\7\37\77\177\377\376\370\360\340\300\200\200\200\200\0\200\200\200\300\300\340\370\374\377\377\77" "\37\7\1\0\0\0\0\0\0\0\0\1\3\7\7\7\17\17\377\377\377\377\217\17\7\7\7\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37>>><>>>>" ">>\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\7\7\7\7\7\17\37\77\377\377\376\374" "\360\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\377\377\377" "\377\177\0\0\0\0\377\377\377\377\377xxxxxxxxx\370\374\374\374\374~>\77\37\37\17\7" "\1\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\374\360\340\200\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370" "\340\200\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376>\37\37\17\17\17\17\7\17\17\17\17\37\37\77~\374\374x" "\60\0\0\0\0\0\0\77\377\377\377\377\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\37\77>>||\370\370\370\360\360\340\340\300\300\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\37\377\377" "\376\374\360\0\0\0\340\370\374\370\340\340\300\200\200\200\0\0\0\0\0\0\0\0\200\200\300\340\360\374\377\377" "\377\77\17\0\0\0\0\1\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\0\3\3\3\3\3\3\3\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3" "\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\7\37\177\377\377\377\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\360\376\377\377\177" "\77\7\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\300\1\17\177\377\377\377\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377" "\377\77\7\0\0\0\0\3\37\377\377\377\376\360\200\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\77\17" "\1\0\0\0\0\0\0\0\0\0\7\77\377\377\377\374\340\0\0\0\0\0\0\300\370\377\377\177\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\370\300\200\360\376\377\377\37\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\377\377\377\77\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\300\300\300\300\377\377\377\377\360\0\0\0\0\0\0\0\0\0\340\376\376\370\300\0\0\0\0\0\0\0\0\340" "\377\377\377\37\0\177\377\377\377\374\0\0\0\0\0\0\340\376\377\177\377\377\377\374\300\0\0\0\0\0\360\377" "\377\377\17\0\0\0\37\377\377\377\376\200\0\0\360\377\377\77\7\0\0\17\377\377\377\374\340\0\0\360\377\377" "\377\3\0\0\0\0\0\7\377\377\377\377\360\377\377\77\3\0\0\0\0\0\0\7\177\377\377\376\370\377\377\177" "\0\0\0\0\0\0\0\0\1\177\377\377\377\77\3\0\0\0\0\0\0\0\0\0\0\7\177\377\377\377\37\0" "\0\0\0\0\0\0\0\0\0\0\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300@\0\0\0\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\0\0\0\0\300\360\374\376\377\77\37\7" "\1\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377\376\370\340\200\340\360\374\377\377\77\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\203\357\377\377\377\377\377\377\303\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\37\7\1\7\37\77\377\377\376\370\340\200\0\0\0" "\0\0\0\0\0\0\200\340\360\374\377\377\77\37\7\1\0\0\0\0\0\0\0\0\3\17\77\177\377\376\374\360" "\300\0\0\0\0\6\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300@\0\0\3\17\77\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\77" "\7\1\0\0\0\0\0\0\0\3\17\77\377\377\376\370\340\200\0\0\0\0\300\360\374\377\377\77\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370\374\377\377\177\37\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\303\343\373\377\377\177\77" "\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\370\374\377\377\377\237\207\203\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\300\300\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374<<<<<<<<<<<<<<<<" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0 \360\360\370\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\7\37\177\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\376\370\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\177\377\377\374\360\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\37\36" "\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0<<<<<<<<<<<<<<<<\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\77\177\377\376\370\340\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\370\374\377\77\37\7\1\0\0\0\1\7\17\77\377\376\370\340\200\0\0" "\0\0\0\0\0\0\0\0\1\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\376\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\177\377\377\376\370\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\177\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0@\340\360\370\370x||<<<<<<<<|\374\370\370\360\340\300\200" "\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\200\200\200\200\200\200\200\200\200\200\201\207\377\377\377\377" "\376\0\0\0\0\200\340\360\370\374\376>\37\37\17\17\17\17\17\17\17\17\7\7\7\7\7\7\377\377\377\377" "\377\0\0\0\0\37\177\377\377\377\370\340\300\300\200\200\200\200\200\200\300\300\300\340\360\370\374\177\377\377\377\377" "\377\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\200\300\340\360\360xxxxx\370\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\377\377\377\377\377\77\7\1\1\0\0\0\0\0\0\0\0\0\1\1\7\17\177\377\377\377" "\374\340\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\376\360\300\300\200\0\0\0\0\0\0\200\200\300\300\340\370\377\377\377\77" "\17\3\0\0\0\0\17\17\17\17\1\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370\374||<<<<<<<||\370\370\360\360" "\340\300\200\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\3\1\0\0\0\0\177\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\17\37\177\377\377\374\370\360\340\300\300\200\200\200\200\200\200\200\300\300\340\340\360\370" "\360@\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360" "\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370xxxxxx\370\360\360\340\300\200\377\377\377\377" "\377\0\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\177\377\377\377\377" "\377\0\0\0\0\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\0\0\0\0\1\17\77\377\377\377\374\360\340\300\200\200\0\0\0\0\0\200\200\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\370\370||<<<<<<||\370\370\360\360\340\300\0" "\0\0\0\0\0\300\374\377\377\377\277\207\201\200\200\200\200\200\200\200\200\200\200\200\200\200\201\203\377\377\377\377" "\374\0\0\0\0\377\377\377\377\377\307\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\1\0\0\0\0\7\37\77\177\377\376\370\360\340\300\300\300\200\200\200\200\200\200\200\300\300\340\340\360\360`" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370||||||||\370\370" "\360\360\340\300\0\0\0\0\0\0\0\0\0\374\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\0\0\0" "\1\7\7\1\0\0\360\360\360\360\360\360\360\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\370\374\374~>>\36\36\36\36\36>>|\370\360\370\370\274<\36\36" "\36\36\36\30\0\0\177\377\377\377\377\343\200\0\0\0\0\0\0\0\0\0\0\0\301\377\377\377\377~\0\0" "\0\0\0\0\0\0\0\1\203\307\357\377\77\77><<<<<<>>\37\37\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\17\77\277\377\374\370\370\370\370\370\360\360\360\360\360\360\360\360\360\360\360\360\340\340\300" "\200\0\0\0\360\374\376\377\377\317\203\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\303\377\377\377" "\377\177\0\0\0\3\7\17\17\37\37\37\36>>>>><<>>>>\36\37\37\37\17\17\7\3" "\1\0\0\0\0\0\0\370\370\370\370\370\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\300\340\340\360xx<<<<<||\374\374\370\360\340\300" "\0\0\0\0\0\0\0\377\377\377\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0<<<<<<<<\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0<<<<<<<<<<<<\374\374\374\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\177\0\0\0\0" "\0\0\0\0\0\4\16\17\37\77>>|||||||<>\77\37\37\17\7\1\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374|<\34\14" "\4\0\0\0\0\0\377\377\377\377\377\0\0\200\300\340\360\370\374\376\77\37\17\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377>\37\17\7\7\7\37\77\177\377\376\370\360\340\300\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\7\17\77\177\377\376\374\370\360\300" "\200\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxx\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\376\376\376\376\340\370<\34\36\36\36~\376\376\374\370\340\360\370<\36\36\36\36>\376\376" "\374\374\360\0\377\377\377\377\377\3\0\0\0\0\0\0\0\377\377\377\377\377\3\0\0\0\0\0\0\0\377\377" "\377\377\377\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\3\3\3\3\3\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\3\3" "\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\376\376\376\376\376\200\340\360\360x<<\36\36\36\36\36>>~\376\374\370\360\340" "\200\0\0\0\0\0\0\377\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370||<<<<<<||\374\370\370\360\340\300\200" "\0\0\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377" "\377\374\360\0\0\177\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377" "\377\377\377\0\0\0\3\17\77\177\377\376\374\360\340\300\300\200\200\200\200\200\200\300\300\340\360\370\374\377\177\77" "\37\7\1\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\376\376\376\376\376\300\340\360x<<\36\36\36\36\36\36>>~\376\374\370\370\360\340" "\200\0\0\0\0\0\377\377\377\377\377\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\376\360\0\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\77\0\0\0\377\377\377\377\377\77|\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\177\77\37" "\17\3\0\0\0\0\377\377\377\377\377\0\0\0\0\1\3\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\370\374|~>>\36\36\36\36\36\36><|\370\360\300\376\376\376" "\376\376\0\0\0\360\376\377\377\377\77\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377\377" "\377\377\0\0\0\77\377\377\377\377\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\0\0\0\0\3\17\37\77\177\377\374\370\360\340\340\300\300\300\300\300\300\340\360\360|>\37\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\1\1\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\376\376\376\376\376\200\300\360\370\370|<>>\36\36\36\36\36\36>~\374" "\374x\20\0\0\0\0\0\0\377\377\377\377\377\177\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370\370\370||<<<<<<<||\370\370\360\360\340\300" "\200\0\0\0\0\0\0\0\37\177\377\377\377\371\340\300\300\200\200\200\0\0\0\0\0\0\0\1\3\7\7\1" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\17\17\17\37\37\37>>~\374\374\370\360\340" "\300\0\0\0\0\0`\370\376\370\360\360\340\300\300\300\200\200\200\200\200\200\200\300\300\300\340\360\377\377\377\177" "\37\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\376\36\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxx\377\377\377\377\377xxxxxxxxxxx\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\17\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\374\300\200\200\0\0\0\0\0\200\200\300\300" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370" "\370\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\17\77\377\377\377\376\360\300\200\200\0\0\0\0\0\200\200\300\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\34|\374\374\374\364\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\374\374" "\374<\0\0\0\0\0\3\17\177\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\77\7" "\1\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377\370\340\0\0\0\0\300\360\376\377\177\37\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\374\370\377\377\77\17\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\354\0\0\0\0\0\0\0\0\0\200\340\340\340\200\0\0\0\0\0\0\0\0\0\374" "\374\374\374\14\37\377\377\377\374\200\0\0\0\0\0\200\370\377\377\77\377\377\374\340\0\0\0\0\0\0\374\377" "\377\377\7\0\0\3\177\377\377\377\360\0\0\200\370\377\377\37\1\0\3\37\377\377\376\360\200\0\0\374\377\377" "\177\1\0\0\0\0\0\17\377\377\377\376\370\377\377\17\0\0\0\0\0\0\1\17\377\377\377\370\376\377\377\37" "\0\0\0\0\0\0\0\0\1\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\34|\374\374\370\360\300\200\0\0\0\0\0\0\0\0\0\200\340\360\374\374|<\14" "\4\0\0\0\0\0\0\0\0\0\3\7\17\77\177\376\374\370\340\300\340\370\374\377\177\37\17\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\361\377\377\377\77\377\377\377\360\340\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\370\374\377\177\77\17\7\1\0\0\0\1\7\17\37\177\377\376\370\360\300\200" "\0\0\0\0\0\4\6\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7" "\7\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\4<\374\374\374\374\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\374\374" "\374<\4\0\0\0\0\0\7\37\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\200\360\376\377\377\77\17" "\1\0\0\0\0\0\0\0\0\0\0\3\17\177\377\377\376\360\300\0\0\0\200\360\374\377\377\77\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\376\370\374\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\361\377\377\377\77\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\34\77>|||x|||>\77\37\17\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<<<<<<<<<<<<<\274\374\374\374\374\374|<" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\177\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\374\376\177\77\37\17\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\360\370\374\376\377\237\217\207\203\201\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\300\300\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\374\376\377\377\37\17\7\7\7\7\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\360\377\377\377\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\17\37\37\37\37\77\377\371\361\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\37\77\177\377\376\374\370\360\360\360\360\360\360\360\360\360\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\7\7\7\7\17\37\177\377\376\374\370\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\177\377\377\370\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\361\371\377\177\77\37\37\37" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\370\370\376\377\177\77\77\17\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\360\370\374~>\36\36\36\36>>|\374\370\360\340\300\300\300\200\300\300\340\360\370" "\376|\70\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\17\17\17\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\360\377\377\377\377\200\200\0\0\0\0" "\0\0\0\0\0\0\0\300\360\370\374\376~\77\37\17\17\7\7\7\367\377\377\377\177\7\17\17\37\77~\376" "|\20\0\0\0\370\377\377\377\377\37\1\0\0\0\0\0\0\0\360\377\377\377\177\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\177\377\377\377\374\300\0\0\0\0\0\0\360\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\7\17\37\77\77~|\370\370\360\377\377\377\377\360\360\360\360\360\370\370|~>" "\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\377\377\377\77\1\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\370\374\376~\77\37\17\17\17\17\17\17\17\17\37\77>\36\14\0" "\0\0\0\0\0\0\0\0\0\177\377\377\377\377\341\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\17\17\17\17\17\377\377\377\377\377\317\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\301\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300\340\360\374\377\377\377\357\343\340\340\340\340\340\300\300\200\200\0\0\0\0\0\0\200" "\300\300\0\0\1\7\17\7\7\3\3\1\1\1\1\1\1\1\3\3\3\7\7\17\17\17\17\17\17\17\17\17" "\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0@\340\360\340\300\200\0\0\200\200\300\300\300\300\300\300\200\200\0\0\200\300\340\360\340" "@\0\0\0\0\0\0\0\0\301\367\377\377\177\37\17\7\7\7\7\7\7\7\7\17\37\177\377\377\363\301\0" "\0\0\0\0\0\0\0\0\0\37\177\377\377\360\300\200\0\0\0\0\0\0\0\0\200\300\360\377\377\177\37\0" "\0\0\0\0\0\0\0\20\70|\77\37\17\7\7\17\17\37\37\37\37\37\37\17\17\7\7\17\37>|\70" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300@\0\0\3\7\37\177\377\376\374\360\300\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77" "\17\3\0\0\0\0\0\0\0\0\1\3\17\77\377\377\374\370\340\200\0\200\340\370\376\377\177\37\7\3\0\0" "\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\203\207\237\377\377\376\377\377\237\207\201\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\377\377\377\377\377\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370|||||||x\370\370\360\340\340\300\0\0" "\0\0\0\0\0\0\0\0\376\377\377\377\377\347\201\0\0\0\0\0\0\0\0\0\0\1\7\17\7\3\1\0" "\0\0\0\0\0\0\0\0\0\203\307\357\377\377\177\77~||\370\370\370\360\360\340\340\300\300\200\0\0\0" "\0\0\0\0\0\0\0|\377\377\377\377\363\300\200\0\0\0\0\0\0\0\1\3\7\17\377\377\377\377\374\0" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\37\37\37>>>||\374\370\374\377\377\347\307\203\0\0" "\0\0\0\0\0\0\0\200\300\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\307\377\377\377\377|\0" "\0\0\0\0\0\0\3\7\17\17\37\37\77><|||x||||>\77\37\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\340\340\340\340\340\300\300\300\200\200\0\0\0" "\0\0\0\0\0\300\360\370|\36\17\7\7\203\301\341\341\340\360\360\360\360\360\360\341\341\301\203\7\7\17\36" "|\370\360\300\377\377\7\1\0\0\360\376\377\377\17\3\1\1\0\0\0\0\0\1\1\3\17\17\17\4\0\0" "\0\1\17\377\177\377\360\200\0\0\7\37\177\377\374\360\340\300\300\300\300\300\300\300\340\340\370\360` \0\0" "\0\300\370\377\0\1\7\17\37\37\17\7\7\7\7\3\3\7\7\17\37\377\376\374\360\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\360\370\370|<\34\34\34\34\34\34\34\34\34\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\17\77\177\377\370\360\340\340\300\300\340\340\340\360x|\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\340\340\340\341\341\341\341\341\341\341\340\340\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\374~\77\37\17\6\0\0\200\300\340\360\370\374~\77\37\17\6" "\0\0\0\0\0\0\16\37\77\177\377\373\361\340\300\200\0\0\0\16\37\77\177\377\373\361\340\300\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\77~|\70\20\0\0\0\0\1\3\7\17\77~|\70" "\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0<<<<<<<<<<<<<<<<<<<\374\374\374\374\374" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\177\177" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxx" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\340\340\340\340\340\300\300\300\200\200\0\0\0" "\0\0\0\0\0\300\360\370|\36\17\7\7\343\341\341\341\340\340\340\340\340\340\340\301\301\201\3\7\7\17\36" "|\370\360\300\377\377\7\1\0\0\0\0\0\377\377\377\300\300\300\300\300\300\300\341\343\377\177\36\0\0\0\0" "\0\1\17\377\177\377\360\300\0\0\0\0\0\377\377\377\1\1\1\1\1\3\17\77\376\370\340\200\0\0\0\0" "\0\300\370\377\0\1\7\17\37>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\374\370p\20\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\34\77\77\37\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxxxx\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377" "\374\0\0\0\0\0\300\340\360\370\374|>>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\374\374\360\340\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\30<~\77\17\7\3\0\0\3\7\17\77\177~\70\20\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxxxx\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377" "\374\0\0\0\0\0\300\340\360\370\374|>>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\360\360\370xxx\370\370\360\340\300\200\200\0\0\0\200\300\360\340" "\300\0\0\0\0\0\0\0\0\3\3\7\3\1\0\0\0\0\0\0\1\3\7\17\17\17\17\17\17\7\3\1" "\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxxxx\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377" "\374\0\0\0\0\0\300\340\360\370\374|>>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0\0\0\0\1\3\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\360\360\370\370xxxxxxxx\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\0\1\3\1\1\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377" "\374\0\0\0\0\0\300\340\360\370\374|>>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\374\374\36\16\16\16\36>\374\370\370\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\37>\70\70\70<>\37\17\7\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxxxx\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377\377" "\374\0\0\0\0\0\300\340\360\370\374|>>\36\36\37\37\37\37\37\37\17\17\17\17\17\17\377\377\377\377" "\377\0\0\0\0\77\377\377\377\377\361\300\200\200\0\0\0\0\0\0\200\200\200\300\340\360\370\376\377\377\377\377" "\377\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\1\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0 \360\370\370|<<<<<|\374\370\360\340\300\340\360\370||<<<<|\374\370" "\360\340\200\0\0\0\1\0\0\200\200\200\200\200\200\200\201\377\377\377\377\303\300\300\300\300\300\300\300\300\300\301" "\377\377\377\376\370\374\376\177\37\17\17\7\7\7\7\7\7\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3" "\3\3\3\3\377\377\377\360\340\300\200\200\200\200\300\300\360\377\377\177\377\374\360\340\300\300\200\200\200\200\200\300" "\300\340\340\300\0\1\3\7\7\7\7\7\7\7\7\3\3\1\0\0\0\1\3\3\7\7\7\7\7\7\7\7" "\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\360\360\370\374||>>\36\36\36\36\36\36\36>>~\374\374\370" "\360\340@\0\0\0\340\374\377\377\377\177\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\3\1\0\0\0\0\77\377\377\377\377\370\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\7\17\37\77\177\376\374\370\360\340\340\300\300\300\300\300\300\300\340\340\340\360\370\374" "xp \0\0\0\0\0\0\0\0\0\0\0\1\1\1\3\3\3\303\377\377\377\343\343\343\343\301\201\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\10\14\36\36\34<\70\70\70\70\70\70<\37\37\17\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60x\370\374\374\360\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\37\77\77>\30\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxx\370\370\360\360\340\340\300\200\0" "\0\0\0\0\0\200\370\376\377\377\177\17\3\1\1\0\0\0\0\0\0\0\0\0\0\1\3\7\377\377\377\376" "\370\0\0\0\0\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\2\0\0\0\1\17\77\177\377\377\374\360\340\300\200\200\200\0\0\0\0\0\0\0\200\200\300\300\340\340\300" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\374\370p\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\34>\77\77\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxx\370\370\360\360\340\340\300\200\0" "\0\0\0\0\0\200\370\376\377\377\177\17\3\1\1\0\0\0\0\0\0\0\0\0\0\1\3\7\377\377\377\376" "\370\0\0\0\0\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\2\0\0\0\1\17\77\177\377\377\374\360\340\300\200\200\200\0\0\0\0\0\0\0\200\200\300\300\340\340\300" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\374\370\360\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\20\70|\177\37\17\7\1\0\1\3\7\37\77\177|\70\20\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxx\370\370\360\360\340\340\300\200\0" "\0\0\0\0\0\200\370\376\377\377\177\17\3\1\1\0\0\0\0\0\0\0\0\0\0\1\3\7\377\377\377\376" "\370\0\0\0\0\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\2\0\0\0\1\17\77\177\377\377\374\360\340\300\200\200\200\0\0\0\0\0\0\0\200\200\300\300\340\340\300" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370xxxxxx\370\370\360\360\340\340\300\200\0" "\0\0\0\0\0\200\370\376\377\377\177\17\3\1\1\0\0\0\0\0\0\0\0\0\0\1\3\7\77\377\377\376" "\370\0\0\0\0\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\2\0\0\0\1\17\77\177\377\377\374\360\340\300\200\200\200\0\0\0\0\0\0\0\200\200\300\300\340\340\300" "\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\14\36~\377\377\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17\7\6\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\36\36\36\36\36\36\36\36\376\376\376\376\376\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\377\377\377\377\377\300\300\300\300\300\300\300\300\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\377\376|<\10\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\16\37\37\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0<<<<<<<<\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374~~\374\370\340\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\10\34>\77\17\7\3\0\0\0\1\3\17\37\77\37\34\10\0\0\0\0" "\0\0\0\0\0\0\0\0\0<<<<<<<<\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0<<<<<<<\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\60\60pp\360\360\340\340\300\200\200\0\0\200\200\200\200\300\300" "\200\0\0\0\0\0\0\0\0\0\0\0\30xx<<<\35\37\37\37\17\77\177\377\377\377\347\303\203\3" "\1\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\360\363\357\377\377\377\376" "\370\300\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\1\3\17\177\377\377" "\377\377\374\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\1\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370||<<<|\374\370\360\340\300\200\200\200\300\340\360\360\340" "@\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\3\1\0" "\0\0\0\0\0\0\0\374\374\374\374\374\0\300\340\340\360xx<<<<<||\374\374\370\360\340\300" "\0\0\0\0\0\0\0\377\377\377\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20p\370\374\374\370\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\37\77\77\34\20\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\37\177\377\377" "\376\370\340\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\370\370\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\36\77\77\37\17\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\37\177\377\377" "\376\370\340\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\374\374\374\360\340\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\20<~\77\17\7\3\1\0\1\7\17\37\177~<\20\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\37\177\377\377" "\376\370\340\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\360\370\370xxx\370\370\360\340\300\200\200\0\0\0\200\340\360\300" "\200\0\0\0\0\0\0\0\0\3\3\7\3\1\0\0\0\0\0\0\1\3\7\17\17\17\17\17\17\7\3\1" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\37\177\377\377" "\376\370\340\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\370xxxxxx\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\200\360\374\376\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\37\177\377\377" "\376\370\340\0\0\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\0\7\37\177\377\377\374\370\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\17\17\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0<<<<<<<<<<<<<<<<<<<<<<<<<" "<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\200\200" "\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370||<<<<<<|\374\374\374\377\377\377\317\203" "\0\0\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\200\340\370\376\377\77\17\3\1\7\77\377\377" "\377\374\340\0\0\177\377\377\377\377\340\0\0\0\0\300\360\374\376\177\37\17\3\0\0\0\0\0\0\200\377\377" "\377\377\377\0\0\0\3\17\77\177\377\376\374\374\377\377\337\207\201\200\200\200\200\300\300\340\360\370\376\377\177\77" "\37\7\0\0\0\0\0 \70~\177\77\17\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30<|\376\376\370\360\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\37\37\17\16\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374" "\374\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\0\0\0\0\0\7\37\177\377\377\377\370\340\300\300\200\200\200\200\200\300\300\340\340\360|\77\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374\376\376|<\10\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\17\37\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374" "\374\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\0\0\0\0\0\7\37\177\377\377\377\370\340\300\300\200\200\200\200\200\300\300\340\340\360|\77\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\374\370\360\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\20\70|\77\37\17\3\1\0\0\3\7\37\77\177<\30\20\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370" "\370\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\17\77\377\377\377\376\360\300\200\200\0\0\0\0\0\200\200\300\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0\0\0\0\0\1\3\7\7\7\3\1\0\0" "\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370" "\370\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\17\77\377\377\377\376\360\300\200\200\0\0\0\0\0\200\200\300\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\377\177>\36\4\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\17\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\2\36~\376\376\376\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\376\376\376" "\376\36\2\0\0\0\0\0\3\17\177\377\377\376\370\300\0\0\0\0\0\0\0\0\0\300\370\377\377\377\37\7" "\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\370\340\0\0\0\300\370\376\377\377\37\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\377\377\377\374\376\377\377\37\7\0\0\0\0\0\0" "\0\0\0\0\0\200\0\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\16\37\37>>><>>>\37\37\17\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\200\300\340\360xx<<<<<<||\374\374\370\360\360\340\300" "\0\0\0\0\0\0\377\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377" "\377\374\340\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\301\377\377" "\377\377\177\0\0\0\377\377\377\377\377\177\370\360\340\300\300\200\200\200\200\200\200\300\300\340\360\370\376\377\177\77" "\37\7\0\0\0\0\377\377\377\377\377\0\0\1\1\3\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0" "\0\0\0\0\0\4\34|\374\374\374\364\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\374\374" "\374|\14\0\0\0\0\0\3\17\177\377\377\376\360\300\0\0\0\0\0\0\0\0\0\0\340\374\377\377\177\37" "\3\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377\370\340\0\0\0\0\340\370\377\377\177\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\374\370\377\377\177\17\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377\377\177\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\34>\77~||x|||>\77\37\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; #endif /* U8G2_USE_LARGE_FONTS */ /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--62-620-72-72-P-281-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr46_4x8_r[24324] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_r") = " ~\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\37\37\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\360\0\0\0\0\0\0\0\0\360\370\370\370\360\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\300\300\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\1\0\0\0\0\0\0\0\377\377\377\377\17\0" "\0\0\0\0\0<<<<<<<<\377\377\377\377=<<<<<<<\376\377\377\377\77<<" "<<<<\0\0\0\0\0\0\0\0\377\377\377\377\3\0\0\0\0\0\0\0\374\377\377\377\37\0\0\0" "\0\0\0\0\70\70\70\70\70\70\70\376\377\377\377\77\70\70\70\70\70\70\70\374\377\377\377\37\34\34\34\34" "\34\34\34\0\0\0\0\0\0\0\376\377\377\377\7\0\0\0\0\0\0\0\370\377\377\377\37\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\6\7\7\7\7\0\0\0\0\0\0\0\0\7\7\7\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\10\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\374>\36\37\17\17\377\377\377\377\17\17\17\37\36>~\374\374\370" "p \0\0\0\0\0\37\177\377\377\377\370\340\300\200\0\0\377\377\377\377\0\0\0\0\0\0\0\0\1\0" "\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\17\37\37\377\377\377\377||\370\370\370\360\360\340\340\300" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\1\3\17\377\377" "\377\377\374\0\0\0\30>\77~\374\370\360\360\340\340\340\340\377\377\377\377\340\340\340\360\360\370\374\177\77\77" "\37\7\1\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\77\77\77\77\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300" "\300\300\0\0\360\374\377\377\17\7\7\3\7\7\37\377\377\377\374\360\0\0\0\0\0\300\360\374\377\177\37\7" "\1\0\0\0\3\17\77\77|\370\370\360\370\370\374\177\177\77\17\3\200\340\370\374\377\77\17\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\177\37\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374\377\77\17\7\1\0\200\340\370\374|>\36\36\36>|" "\374\370\340\200\0\0\0\200\340\370\376\177\37\17\3\0\0\0\0\0\0\77\377\377\377\340\200\200\200\200\200\340" "\377\377\377\77\0\4\6\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\17\7\7\7" "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\370\374\376\377\77\37\17\17\17\17\17\17\37\177\377\376\374\370\340\0\0\0\0" "\0\0\0\0\0\0\0\0\37\177\377\377\377\370\340\200\0\0\0\0\200\300\360\377\377\377\177\37\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\363\367\377\177\177\377\376\376\377\357\317\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\300\370\374\377\377\177\17\7\1\0\0\0\0\1\3\17\37\77\177\376\374\360\340\300\200\300\340\370" "\377\377~\34\37\177\377\377\377\370\340\300\200\0\0\0\0\0\0\200\200\300\300\341\363\377\377\177\177\377\377\377" "\343\300\200\0\0\0\0\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0\3\17" "\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370x`" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\177\77\17\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\177\37\3\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\374\377\377\377\377\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377\377\376\360\300\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77\377\377\374\370\360\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77>~\374\70" "\10\0\0\0\0\0\0\0\360\370\370\360\340\340\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\37\177\377\376\374\370\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\377\377\377\377\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\377\77\17\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\377\77\37\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\10\374|~\77\37\37\17\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340 \0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\340\340\300\300\200\200\0\0\0\0\17\377\377\377\177\0\0\0\0\200\200\300\300\300\340" "\340\200\0\0\0\1\3\3\3\7\7\7\7\17\17\216\376\374\377\177\377\374\376\316\17\17\7\7\7\7\3\3" "\3\1\0\0\0\0\0\0\200\300\360\370\374\376\77\37\7\3\0\0\0\3\7\37\77\376\374\370\360\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\36\36\36\36\36\36\36\36\36\36\36\36\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36" "\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\17\17\37\377\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\360\370~\77\17\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxx" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\370\360\360" " \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\10\36\37\77\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\376\77\37\37\17\17\17\17\17\17\37\77~\374\370\360\340\200\0" "\0\0\0\0\0\0\370\376\377\377\177\17\1\0\0\0\0\0\0\0\0\0\200\340\360\370\375\77\377\377\377\376" "\360\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\300\340\360\370\376\77\37\17\3\1\0\0\0\377\377\377" "\377\377\0\0\0\17\377\377\377\377\370\340\360\374~\77\37\17\3\1\0\0\0\0\0\0\0\0\340\377\377\377" "\377\17\0\0\0\0\0\7\37\77\377\377\377\361\340\300\200\200\0\0\0\0\200\200\300\340\370\376\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60x\70<<>\36\37\37\17\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70|\376~\37\17\17\7\7\7\7\7\7\7\7\17\17\37\177\377\376\374\370\340" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\341\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\177\77\37\17\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\177\77\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\377\377\237\217\203\201\200\200\200\200\200\200\200\200\200\200\200\200\200\200\300" "\300\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<~>\37\37\17\17\17\17\7\17\17\17\37\37\77\376\376\374\370\360\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\377\377\377\377\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0||<||~~~\377\377\377\367\343\303\201\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\7\37\377\377\377\376\360" "\0\0\0\0\0\0\200\300\340\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177\77\7" "\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374\177\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\77\37\7\3\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0<\77\77\77\77=<<<<<<<<<<<<\377\377\377\377\377<<<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\0\376\377\377\377\377\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\377\377\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\77\77\77\177\37\37\17\7\7\7\7\3\7\7\7\7\17\37\77\177\377\376\374\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377" "\377\377\0\0\0\0\0`\360\370\370\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177" "\37\7\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\370\370\374~\77\37\37\17\17\17\7\17\17\17\17\37\77>\36\14" "\0\0\0\0\0\0\0\300\374\377\377\377\377\7\1\0\0\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\360|>\36\17\17\7\7\7\7\7\17\17\37\77\377\376\374\370\360" "\300\0\0\0\0\0\0\177\377\377\377\377\341\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377" "\377\376\0\0\0\0\0\0\7\37\177\377\377\374\360\340\300\200\200\0\0\0\0\0\200\300\340\370\377\377\377\177" "\37\3\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\303\373\377\377\377\177\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\17\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\4\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\374\376\376\77\37\17\17\17\17\17\17\17\17\37\77\376\376\374\370\360\200" "\0\0\0\0\0\0\0\0\37\177\377\377\377\370\300\200\0\0\0\0\0\0\0\0\200\300\371\377\377\377\177\37" "\0\0\0\0\0\0\0\0\0\0\201\203\307\347\357\377\177>><||\376\376\377\357\347\303\201\0\0\0" "\0\0\0\0\0\0\340\370\374\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\1\3\7\37\377\377\376\374" "\360\0\0\0\0\0\17\77\377\377\377\376\360\340\300\200\200\0\0\0\0\0\0\200\200\300\340\370\377\377\377\177" "\37\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\370\374\376\376\77\37\17\17\17\7\17\17\17\37\77~\376\374\370\360\300\0" "\0\0\0\0\0\0\0\376\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377\377" "\370\0\0\0\0\0\0\3\37\77\377\377\377\370\360\340\300\200\200\200\200\200\300\300\340\340\360|\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\7\7\7\7\7\7\7\3\3\1\0\300\377\377\377\377" "\77\0\0\0\0\0\0\0\0\200\300\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\374\377\177\77\17\3" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\237\377\377\377\377\37\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0 p\370~\77\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\340\340\360\360\370" "\370||\0\0\0\0\0\0\200\200\300\340\340\360\360\370\370||>>\37\37\17\17\7\7\3\1\1\0" "\0\0\0\0<>~\377\377\377\367\347\343\303\201\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\37\77>||\370\370\360\360\340\300\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\37\37\77" ">|\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxxxx" "xxx\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\1\3\3\7\7\17\17\37\37>>||\370\360\360\340\340\300\300\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\203\207\307\317\377\377\376\376" "\374|x\0\0\0\0\0\0\0\200\200\300\300\340\340\360\370\370||>>\37\17\17\7\7\3\1\1\0" "\0\0\0\0\370\374|>>\37\37\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\340\340\340\300\300\200\0\0\0" "\0\0\0\0\0\0\10\36\77\177\77\17\7\7\3\1\1\1\1\0\1\1\1\3\3\17\37\377\377\377\374\360" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377\177\37" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\376\377\77\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\340\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\17\17\17\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\360\370\374|>>\37\17\17\17\17\7\17\17\17\17\37\37>~\374\370\360" "\340\200\0\0\200\370\376\377\377\17\3\1\0\0\0\0\0\200\300\340\340\360\360\370xxxxxy\377\377" "\377\377\374\0\377\377\377\377\0\0\0\0\0\0\0\370\376\377\377\7\3\1\0\0\0\0\0\0\0\200\377\377" "\377\377\377\0\17\377\377\377\370\300\0\0\0\0\0\3\17\37\77\177|\370\370\370\370\370x|>\37\177\177" "\177\177\177\0\0\0\3\17\37\177\377\374\370\360\340\300\300\200\200\0\0\0\0\0\0\0\0\200\200\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\370\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\177\17\1\3\37\377\377\376\370\300\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\360\376\377\377\37\3\0\0\0\0\0\0\7\37\377\377\376\370\300\0\0\0" "\0\0\0\0\0\0\0\340\374\377\377\177\77<<<<<<<<<<<<\77\177\377\377\376\370\300" "\0\0\0\0\300\370\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377" "\376\370\300\0\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\7\7\7\7\7\7\17\37\77\377\377\376\374\360" "\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\377\377\377\77" "\17\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\37\37\37\37\77\77\77\177\377\373\363\341\300\200" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\374\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\300\300\300\300\300\300\340\360\370\376\377\177\77" "\37\7\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\374~>\37\37\17\17\17\17\7\17\17\17\17\37\77~\376\374" "\370\360\340\200\0\200\370\376\377\377\377\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7" "\3\3\1\1\0\377\377\377\377\377\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\377\377\377\377\376\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\37\77\177\377\376\374\360\340\300\200\200\200\0\0\0\0\0\0\200\200\300\340\360\370" "\370\360p\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\7\7\7\7\7\7\17\37\77\177\376\374\370\360\340\200" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\177\377\377\377" "\376\340\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377" "\377\17\0\0\0\377\377\377\377\377\200\200\200\200\200\300\300\300\300\300\300\340\340\360\370\374\377\177\77\37\17\3" "\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\374~>\37\37\17\17\17\17\7\17\17\17\17\37\37>~\374\374" "\370\360@\0\0\370\376\377\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3" "\1\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\0\37\377\377\377\377\376\200\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\377\377" "\377\377\377\0\0\0\7\37\77\177\377\376\370\360\340\300\200\200\200\0\0\0\0\0\0\200\200\200\300\300\377\377" "\377\377\377\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\377\377\377\377\377\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\200\300\340\360\340\300\200\200\0\0\0\0\0\200\200\300\360\376\377\377\377\77\7\0\0\0\0" "\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300" "\300@\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374~\77\37\17\7\3" "\0\0\0\0\0\377\377\377\377\377\0\0\0\200\300\340\360\370\374\177\77\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\370~\77\37\37\177\377\377\371\360\340\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\3\7\37\77\377\377\374\370\360\300\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\77\177\377\376\374\370\340" "\300\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300" "\300\300\300\0\0\377\377\377\377\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377" "\377\377\377\0\0\377\377\377\377\377\3\17\77\377\377\374\360\300\0\0\0\0\200\340\370\376\377\77\17\3\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\3\17\77\377\377\370\370\376\377\77\17\3\0\0\0\0\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\3\7\7\3\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\0\377\377\377\377\377\377\377\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\3\17\37\177\377\376\370\340\200\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\374\370\340\200\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\37\177\377\377\377\377" "\377\377\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376~\77\37\17\17\17\17\17\17\17\17\37\37\77\376\374\374\370\360" "\300\200\0\0\200\370\377\377\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377" "\377\377\374\300\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377" "\377\377\377\377\17\377\377\377\377\376\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\377" "\377\377\377\77\0\0\7\37\77\177\377\376\370\340\300\300\200\200\0\0\0\0\0\200\200\300\340\360\370\377\377\177" "\77\17\3\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\7\7\7\7\7\17\37\77\377\377\376\374" "\360\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377" "\377\177\0\0\0\0\377\377\377\377\377xxxxxxxxxx||||~>\77\37\37\17\7" "\1\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\376\177\77\37\17\7\7\7\7\7\7\7\7\17\37\37\177\376\376\374\370" "\340\300\0\0\300\374\377\377\377\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377" "\377\377\376\340\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377" "\377\377\377\377\17\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\376\377" "\377\377\377\37\0\0\7\37\77\177\377\376\370\360\340\300\200\200\200\200\0\200\200\200\300\300\340\370\374\377\377\77" "\37\7\1\0\0\0\0\0\0\0\0\1\3\7\7\7\17\17\377\377\377\377\217\17\7\7\7\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37>>><>>>>" ">>\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\7\7\7\7\7\17\37\77\377\377\376\374" "\360\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\377\377\377" "\377\177\0\0\0\0\377\377\377\377\377xxxxxxxxx\370\374\374\374\374~>\77\37\37\17\7" "\1\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\374\360\340\200\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370" "\340\200\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376>\37\37\17\17\17\17\7\17\17\17\17\37\37\77~\374\374x" "\60\0\0\0\0\0\0\77\377\377\377\377\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0" "\0\0\0\0\0\0\0\0\0\1\3\7\17\17\37\37\77>>||\370\370\370\360\360\340\340\300\300\200\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\37\377\377" "\376\374\360\0\0\0\340\370\374\370\340\340\300\200\200\200\0\0\0\0\0\0\0\0\200\200\300\340\360\374\377\377" "\377\77\17\0\0\0\0\1\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\0\3\3\3\3\3\3\3\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3" "\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\7\37\177\377\377\377\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\360\376\377\377\177" "\77\7\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\300\1\17\177\377\377\377\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377" "\377\77\7\0\0\0\0\3\37\377\377\377\376\360\200\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\77\17" "\1\0\0\0\0\0\0\0\0\0\7\77\377\377\377\374\340\0\0\0\0\0\0\300\370\377\377\177\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\370\300\200\360\376\377\377\37\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\377\377\377\77\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\300\300\300\300\377\377\377\377\360\0\0\0\0\0\0\0\0\0\340\376\376\370\300\0\0\0\0\0\0\0\0\340" "\377\377\377\37\0\177\377\377\377\374\0\0\0\0\0\0\340\376\377\177\377\377\377\374\300\0\0\0\0\0\360\377" "\377\377\17\0\0\0\37\377\377\377\376\200\0\0\360\377\377\77\7\0\0\17\377\377\377\374\340\0\0\360\377\377" "\377\3\0\0\0\0\0\7\377\377\377\377\360\377\377\77\3\0\0\0\0\0\0\7\177\377\377\376\370\377\377\177" "\0\0\0\0\0\0\0\0\1\177\377\377\377\77\3\0\0\0\0\0\0\0\0\0\0\7\177\377\377\377\37\0" "\0\0\0\0\0\0\0\0\0\0\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0@\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300@\0\0\0\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\0\0\0\0\300\360\374\376\377\77\37\7" "\1\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377\376\370\340\200\340\360\374\377\377\77\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\203\357\377\377\377\377\377\377\303\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\37\7\1\7\37\77\377\377\376\370\340\200\0\0\0" "\0\0\0\0\0\0\200\340\360\374\377\377\77\37\7\1\0\0\0\0\0\0\0\0\3\17\77\177\377\376\374\360" "\300\0\0\0\0\6\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300@\0\0\3\17\77\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\77" "\7\1\0\0\0\0\0\0\0\3\17\77\377\377\376\370\340\200\0\0\0\0\300\360\374\377\377\77\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370\374\377\377\177\37\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\303\343\373\377\377\177\77" "\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\370\374\377\377\377\237\207\203\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\300\300\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374<<<<<<<<<<<<<<<<" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0 \360\360\370\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\17\77\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\7\37\177\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\376\370\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\177\377\377\374\360\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\37\36" "\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0<<<<<<<<<<<<<<<<\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\77\177\377\376\370\340\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\370\374\377\77\37\7\1\0\0\0\1\7\17\77\377\376\370\340\200\0\0" "\0\0\0\0\0\0\0\0\1\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\376\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\177\377\377\376\370\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\177\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0@\340\360\370\370x||<<<<<<<<|\374\370\370\360\340\300\200" "\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\200\200\200\200\200\200\200\200\200\200\201\207\377\377\377\377" "\376\0\0\0\0\200\340\360\370\374\376>\37\37\17\17\17\17\17\17\17\17\7\7\7\7\7\7\377\377\377\377" "\377\0\0\0\0\37\177\377\377\377\370\340\300\300\200\200\200\200\200\200\300\300\300\340\360\370\374\177\377\377\377\377" "\377\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\200\300\340\360\360xxxxx\370\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\377\377\377\377\377\77\7\1\1\0\0\0\0\0\0\0\0\0\1\1\7\17\177\377\377\377" "\374\340\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\376\360\300\300\200\0\0\0\0\0\0\200\200\300\300\340\370\377\377\377\77" "\17\3\0\0\0\0\17\17\17\17\1\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370\374||<<<<<<<||\370\370\360\360" "\340\300\200\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7" "\3\1\0\0\0\0\177\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\17\37\177\377\377\374\370\360\340\300\300\200\200\200\200\200\200\200\300\300\340\340\360\370" "\360@\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360" "\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370xxxxxx\370\360\360\340\300\200\377\377\377\377" "\377\0\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\1\3\7\177\377\377\377\377" "\377\0\0\0\0\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\0\0\0\0\1\17\77\377\377\377\374\360\340\300\200\200\0\0\0\0\0\200\200\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\370\370||<<<<<<||\370\370\360\360\340\300\0" "\0\0\0\0\0\300\374\377\377\377\277\207\201\200\200\200\200\200\200\200\200\200\200\200\200\200\201\203\377\377\377\377" "\374\0\0\0\0\377\377\377\377\377\307\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\1\0\0\0\0\7\37\77\177\377\376\370\360\340\300\300\300\200\200\200\200\200\200\200\300\300\340\340\360\360`" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370||||||||\370\370" "\360\360\340\300\0\0\0\0\0\0\0\0\0\374\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\0\0\0" "\1\7\7\1\0\0\360\360\360\360\360\360\360\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\370\374\374~>>\36\36\36\36\36>>|\370\360\370\370\274<\36\36" "\36\36\36\30\0\0\177\377\377\377\377\343\200\0\0\0\0\0\0\0\0\0\0\0\301\377\377\377\377~\0\0" "\0\0\0\0\0\0\0\1\203\307\357\377\77\77><<<<<<>>\37\37\17\7\3\1\0\0\0" "\0\0\0\0\0\0\0\17\77\277\377\374\370\370\370\370\370\360\360\360\360\360\360\360\360\360\360\360\360\340\340\300" "\200\0\0\0\360\374\376\377\377\317\203\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\303\377\377\377" "\377\177\0\0\0\3\7\17\17\37\37\37\36>>>>><<>>>>\36\37\37\37\17\17\7\3" "\1\0\0\0\0\0\0\370\370\370\370\370\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\0\300\340\340\360xx<<<<<||\374\374\370\360\340\300" "\0\0\0\0\0\0\0\377\377\377\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0<<<<<<<<\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\0\0" "\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0<<<<<<<<<<<<\374\374\374\374\374\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\300\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\177\0\0\0\0" "\0\0\0\0\0\4\16\17\37\77>>|||||||<>\77\37\37\17\7\1\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374|<\34\14" "\4\0\0\0\0\0\377\377\377\377\377\0\0\200\300\340\360\370\374\376\77\37\17\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377>\37\17\7\7\7\37\77\177\377\376\370\360\340\300\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\7\17\77\177\377\376\374\370\360\300" "\200\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7" "\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxx\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\376\376\376\376\340\370<\34\36\36\36~\376\376\374\370\340\360\370<\36\36\36\36>\376\376" "\374\374\360\0\377\377\377\377\377\3\0\0\0\0\0\0\0\377\377\377\377\377\3\0\0\0\0\0\0\0\377\377" "\377\377\377\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377" "\377\377\377\0\3\3\3\3\3\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\3\3" "\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\376\376\376\376\376\200\340\360\360x<<\36\36\36\36\36>>~\376\374\370\360\340" "\200\0\0\0\0\0\0\377\377\377\377\377\37\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370||<<<<<<||\374\370\370\360\340\300\200" "\0\0\0\0\0\300\370\376\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377" "\377\374\360\0\0\177\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377" "\377\377\377\0\0\0\3\17\77\177\377\376\374\360\340\300\300\200\200\200\200\200\200\300\300\340\360\370\374\377\177\77" "\37\7\1\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\376\376\376\376\376\300\340\360x<<\36\36\36\36\36\36>>~\376\374\370\370\360\340" "\200\0\0\0\0\0\377\377\377\377\377\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\376\360\0\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\77\0\0\0\377\377\377\377\377\77|\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\177\77\37" "\17\3\0\0\0\0\377\377\377\377\377\0\0\0\0\1\3\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\370\374|~>>\36\36\36\36\36\36><|\370\360\300\376\376\376" "\376\376\0\0\0\360\376\377\377\377\77\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377\377" "\377\377\0\0\0\77\377\377\377\377\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\0\0\0\0\3\17\37\77\177\377\374\370\360\340\340\300\300\300\300\300\300\340\360\360|>\37\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\1\1\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\376\376\376\376\376\200\300\360\370\370|<>>\36\36\36\36\36\36>~\374" "\374x\20\0\0\0\0\0\0\377\377\377\377\377\177\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\1\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370\370\370||<<<<<<<||\370\370\360\360\340\300" "\200\0\0\0\0\0\0\0\37\177\377\377\377\371\340\300\300\200\200\200\0\0\0\0\0\0\0\1\3\7\7\1" "\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\17\17\17\37\37\37>>~\374\374\370\360\340" "\300\0\0\0\0\0`\370\376\370\360\360\340\300\300\300\200\200\200\200\200\200\200\300\300\300\340\360\377\377\377\177" "\37\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\376\36\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxx\377\377\377\377\377xxxxxxxxxxx\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\17\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\374\300\200\200\0\0\0\0\0\200\200\300\300" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\7" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370" "\370\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\17\77\377\377\377\376\360\300\200\200\0\0\0\0\0\200\200\300\300\340\370\177\377\377\377\377" "\377\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\17\17\17\17" "\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\34|\374\374\374\364\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\374\374" "\374<\0\0\0\0\0\3\17\177\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\77\7" "\1\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377\370\340\0\0\0\0\300\360\376\377\177\37\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\374\370\377\377\77\17\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\354\0\0\0\0\0\0\0\0\0\200\340\340\340\200\0\0\0\0\0\0\0\0\0\374" "\374\374\374\14\37\377\377\377\374\200\0\0\0\0\0\200\370\377\377\77\377\377\374\340\0\0\0\0\0\0\374\377" "\377\377\7\0\0\3\177\377\377\377\360\0\0\200\370\377\377\37\1\0\3\37\377\377\376\360\200\0\0\374\377\377" "\177\1\0\0\0\0\0\17\377\377\377\376\370\377\377\17\0\0\0\0\0\0\1\17\377\377\377\370\376\377\377\37" "\0\0\0\0\0\0\0\0\1\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\34|\374\374\370\360\300\200\0\0\0\0\0\0\0\0\0\200\340\360\374\374|<\14" "\4\0\0\0\0\0\0\0\0\0\3\7\17\77\177\376\374\370\340\300\340\370\374\377\177\37\17\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\361\377\377\377\77\377\377\377\360\340\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\370\374\377\177\77\17\7\1\0\0\0\1\7\17\37\177\377\376\370\360\300\200" "\0\0\0\0\0\4\6\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7" "\7\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\4<\374\374\374\374\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\374\374" "\374<\4\0\0\0\0\0\7\37\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\200\360\376\377\377\77\17" "\1\0\0\0\0\0\0\0\0\0\0\3\17\177\377\377\376\360\300\0\0\0\200\360\374\377\377\77\17\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\376\370\374\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\361\377\377\377\77\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\34\77>|||x|||>\77\37\17\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<<<<<<<<<<<<<\274\374\374\374\374\374|<" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\177\37\17\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\374\376\177\77\37\17\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\360\370\374\376\377\237\217\207\203\201\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\300\300\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\300\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\374\376\377\377\37\17\7\7\7\7\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\360\377\377\377\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\17\17\37\37\37\37\77\377\371\361\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\37\77\177\377\376\374\370\360\360\360\360\360\360\360\360\360\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\7\7\7\7\17\37\177\377\376\374\370\340\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\177\377\377\370\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\361\371\377\177\77\37\37\37" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\370\370\376\377\177\77\77\17\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\360\370\374~>\36\36\36\36>>|\374\370\360\340\300\300\300\200\300\300\340\360\370" "\376|\70\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\7\7\7\3\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Medium-R-Normal--62-620-72-72-P-281-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inr46_4x8_n[6916] U8X8_FONT_SECTION("u8x8_font_inr46_4x8_n") = " :\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340 \0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\360\340\340\300\300\200\200\0\0\0\0\17\377\377\377\177\0\0\0\0\200\200\300\300\300\340" "\340\200\0\0\0\1\3\3\3\7\7\7\7\17\17\216\376\374\377\177\377\374\376\316\17\17\7\7\7\7\3\3" "\3\1\0\0\0\0\0\0\200\300\360\370\374\376\77\37\7\3\0\0\0\3\7\37\77\376\374\370\360\300\200\0" "\0\0\0\0\0\0\0\0\0\1\3\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\36\36\36\36\36\36\36\36\36\36\36\36\377\377\377\377\377\36\36\36\36\36\36\36\36\36\36" "\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\17\17\37\377\377\377\377\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\360\370~\77\17\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0xxxxxxxxxxxxxxxxxxxxxxxxx" "x\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\360\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\370\360\360" " \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\10\36\37\77\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\376\77\37\37\17\17\17\17\17\17\37\77~\374\370\360\340\200\0" "\0\0\0\0\0\0\370\376\377\377\177\17\1\0\0\0\0\0\0\0\0\0\200\340\360\370\375\77\377\377\377\376" "\360\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\300\340\360\370\376\77\37\17\3\1\0\0\0\377\377\377" "\377\377\0\0\0\17\377\377\377\377\370\340\360\374~\77\37\17\3\1\0\0\0\0\0\0\0\0\340\377\377\377" "\377\17\0\0\0\0\0\7\37\77\377\377\377\361\340\300\200\200\0\0\0\0\200\200\300\340\370\376\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\1\3\3\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\60x\70<<>\36\37\37\17\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\70|\376~\37\17\17\7\7\7\7\7\7\7\7\17\17\37\177\377\376\374\370\340" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\341\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\177\77\37\17\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\376\177\77\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\377\377\237\217\203\201\200\200\200\200\200\200\200\200\200\200\200\200\200\200\300" "\300\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30<~>\37\37\17\17\17\17\7\17\17\17\37\37\77\376\376\374\370\360\300\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\377\377\377\377\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0||<||~~~\377\377\377\367\343\303\201\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\7\37\377\377\377\376\360" "\0\0\0\0\0\0\200\300\340\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177\77\7" "\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374\177\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\77\37\7\3\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0<\77\77\77\77=<<<<<<<<<<<<\377\377\377\377\377<<<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\0\376\377\377\377\377\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\0\0\0\0\0\0\0\0\377\377\377\377\377\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\77\77\77\177\37\37\17\7\7\7\7\3\7\7\7\7\17\37\77\177\377\376\374\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\377\377\377" "\377\377\0\0\0\0\0`\360\370\370\370\340\300\300\200\200\0\0\0\0\0\0\200\200\300\340\370\376\377\377\177" "\37\7\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\340\370\370\374~\77\37\37\17\17\17\7\17\17\17\17\37\77>\36\14" "\0\0\0\0\0\0\0\300\374\377\377\377\377\7\1\0\0\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\377\377\360|>\36\17\17\7\7\7\7\7\17\17\37\77\377\376\374\370\360" "\300\0\0\0\0\0\0\177\377\377\377\377\341\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377" "\377\376\0\0\0\0\0\0\7\37\177\377\377\374\360\340\300\200\200\0\0\0\0\0\200\300\340\370\377\377\377\177" "\37\3\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\303\373\377\377\377\177\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\17\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\77\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\4\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\374\376\376\77\37\17\17\17\17\17\17\17\17\37\77\376\376\374\370\360\200" "\0\0\0\0\0\0\0\0\37\177\377\377\377\370\300\200\0\0\0\0\0\0\0\0\200\300\371\377\377\377\177\37" "\0\0\0\0\0\0\0\0\0\0\201\203\307\347\357\377\177>><||\376\376\377\357\347\303\201\0\0\0" "\0\0\0\0\0\0\340\370\374\377\377\77\7\3\1\0\0\0\0\0\0\0\0\0\1\3\7\37\377\377\376\374" "\360\0\0\0\0\0\17\77\377\377\377\376\360\340\300\200\200\0\0\0\0\0\0\200\200\300\340\370\377\377\377\177" "\37\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\370\374\376\376\77\37\17\17\17\7\17\17\17\37\77~\376\374\370\360\300\0" "\0\0\0\0\0\0\0\376\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\377\377\377\377" "\370\0\0\0\0\0\0\3\37\77\377\377\377\370\360\340\300\200\200\200\200\200\300\300\340\340\360|\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\1\1\3\7\7\7\7\7\7\7\7\7\3\3\1\0\300\377\377\377\377" "\77\0\0\0\0\0\0\0\0\200\300\340\300\200\200\0\0\0\0\0\0\200\200\300\340\360\374\377\177\77\17\3" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\340\340\340\340\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--30-300-72-72-P-147-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb21_2x4_f[14340] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_f") = " \377\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0x\374\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\1\0\0" "\0\0\0\0\0\0\0\0\0\340\363\363\363\340\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\370\374\374\0\0\0\370\374\374\0\0\0\0\0\0\0\7\7\7\0\0\0\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\360\20\0\0\360\360\360\20\0\0\16\16\16\356\377\377\17\6\6\366\377\377" "\37\16\16\16\7\7\347\377\377\37\7\7\367\377\377\17\7\7\7\0\0\0\1\1\1\0\0\0\1\1\1\0" "\0\0\0\0\0\0\200\300\340\360p\374\374\374tp\340\340\300@\0\0\7\37\37>\70\377\377\377\360\340" "\340\301\301\200\0\0\70|p\340\340\377\377\377\340\340q\177\77\37\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\300\340\360\360p\360\340\340\300\0\0\300\360\360p\20\7\17\17\36\34\37\337\357\377\376\77\17" "\7\1\0\0\0\200\340\360\374\77\37\7}\376\377\307\307\377\376\376\0\1\1\1\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\200\340\340\360pp\360\360\340\300\0\0\0\0\0\0\207\337\377\377\360\360\370\277\37\17" "\0\200\200\0>\177\377\367\341\300\300\301\343\357\377~|\377\357\307\0\0\0\1\1\1\1\1\1\0\0\0" "\0\1\1\0\0\0\0\0\0\0\0\370\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360x<\34\20\0\0\0\0\0\360\376\377\177\7\1\0\0" "\0\0\0\0\0\0\0\0\17\177\377\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\36<" "\70x\20\0\0\0<\70x\360\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\376\370" "\0\0\0\0\0\0\0\0\0\0\0\300\360\377\377\77\0\0\0\0\0\20p\70<\36\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\20<\70\70\60\360\343\377\377\347\360\60" "\70\70<\0\0\0\10\36\37\17\3\1\1\3\17\37\36\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\340\340\340\340\340\340\377\377\377\340\340\340" "\340\340\340\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\61;\37\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppppppppp" "pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\360\60\0\0\0\0\0\0\0\200\340\370\376\77\17" "\3\0\0\0\0\0\200\340\370\376\77\17\3\0\0\0\0\0\0\0\0\2\7\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360ppp\360\340\300\200\0\0\0\370\377\377\77\3\0\300\340x<\17" "\377\377\377\370\0\7\37\77\177\376\347\303\300\300\340\360\377\177\37\7\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\200\300\300\340\340\360\360\360\0\0\0\0\0\0\0\0\0\1\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\200\0\0\0\0\1\3\0\0\0\200\300\340\361\377" "\177\37\0\0\0\300\340\370\374\336\317\307\303\301\301\300\300\300\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0@\340\340\360pppp\360\340\340\300\0\0\0\0\0\0\0ppppx\370\377" "\337\217\0\0\0\0`\360\360\340\300\300\300\300\340\373\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\360\360\0\0\0\0\0\200\300\360\370<\17\7\1\377\377" "\377\0\0\0\0\16\17\17\17\16\16\16\16\16\377\377\377\16\16\16\0\0\0\0\0\0\0\0\0\0\1\1" "\1\0\0\0\0\0\360\360\360ppppppppp\0\0\0\0\77\177\177\70\34\34\34\34<\370" "\360\340\300\0\0 p\370\360\340\300\300\300\300\340\377\177\77\17\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\300\300\340\360pppp\360\340`\0\0\0\374\377\377\377\71<\34\34\34<\370" "\370\340\300\0\0\17\77\177\376\360\340\300\300\300\340\377\177\77\17\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0ppppppppp\360\360\360p\0\0\0\0\0\0\0\0\200\340\374\377\77" "\7\1\0\0\0\0\0\0\200\360\374\377\77\7\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\0\0\0\0\7\237\377\377\360p`\360\370\377" "\237\17\0\0\0>\177\377\373\340\300\300\300\300\341\377\377\177\36\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\300\340\340\360pppp\340\340\300\200\0\0\0\37\177\377\373\340\300\300\300\300\340\367" "\377\377\374\0\0@\340\360\340\301\301\301\301\341\360\177\77\37\7\0\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|||\70\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|||\70\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\61;\37\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340`\360\360\370\370\234\234\16\16\17\7\7" "\3\3\1\1\0\0\1\1\3\3\7\7\17\16\34<\70xp\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\16\16\16\16\16\16\16\16" "\16\16\16\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\17\16\36\234\274\370" "\370\360\360`px\70<\34\36\16\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 p\370x<\34\34\34\34<\370\370\360\300\0\0\0\0\0\0\0\0\300\360\360x\77" "\37\17\7\0\0\0\0\0\0\0\340\361\361\361\340\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\300\200\0\374\377\377\237\3\360\370\374\374\36\16\16" "\357\377\377\377\3\37\77\177\370\360\343\303\307\307\307\307\343\347\7\7\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\300\360\340\200\0\0\0\0\0\0\0\0\0\300\370\377\37\7\37\177\374\360" "\200\0\0\0\300\370\377\77\7\7\7\7\7\7\7\37\177\376\360\300\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\360\360\360ppppppp\360\340\340\300\0\0\377\377\377ppppppp\370" "\377\337\217\0\0\377\377\377\300\300\300\300\300\300\300\340\377\377\177\36\0\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\300\300\0\374\377\377\277\3\0\0\0\0\0\0\0" "\1\3\3\1\7\37\77\177\370\360\340\300\300\300\300\340\360\360p \0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\360\360\360pppppp\360\340\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\3" "\377\377\377\374\0\377\377\377\300\300\300\300\300\340\340\370\177\77\37\3\0\1\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\360\360\360ppppppppppp\0\0\377\377\377pppppppp" "pp\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\360\360\360ppppppppppp\0\0\377\377\377ppppppp" "pp\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\340\300\200\370\377\377\237\3\0\0\0\0\300\300\300" "\301\303\301\300\7\37\77\177\370\340\340\300\300\301\301\301\341\377\377\177\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\360\360\360\20\0\0\0\0\0\0\0\360\360\360\20\0\377\377\377pppppppp" "\377\377\377\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0pppp\360\360\360ppppp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\0\0\0pppp\360\360\360pppp\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0`\360\340\300\300\300\300\340\377\177\77\0\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\0\0\360\360\360\20\0\0\0\0\0\300\340\360p\60\20\0\377\377\377\340p\370\374\336\217\7\3\1" "\0\0\0\0\377\377\377\0\0\0\1\7\17\77~\370\360\340\200\0\1\1\1\0\0\0\0\0\0\0\0\0" "\1\1\1\1\0\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\360\360\360\340\200\0\0\0\0\0\0\300\360\360\360\0\377\377\377\7\37~\370\340\360|\37\7" "\377\377\377\0\377\377\377\0\0\0\1\3\1\0\0\0\377\377\377\0\1\1\1\0\0\0\0\0\0\0\0\0" "\1\1\1\0\0\360\360\360\360\300\0\0\0\0\0\0\0\360\360\360\0\377\377\377\3\17\37|\370\340\200\0" "\0\377\377\377\0\377\377\377\0\0\0\0\1\7\17>\374\377\377\377\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\200\300\340\340pppp\360\340\340\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\77\177\370\340\300\300\300\300\340\340\370\177\77\17\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\360\360\360pppppp\360\360\340\300\200\0\0\377\377\377\340\340\340\340\340\340\340\360" "\177\177\37\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\177\377\360\340\300\300\200\300\300\340\370\177\77\17\0\0\0\0\1\1\1\17\37\77\71\71" "\70\70\70\0\0\360\360\360pppppp\360\360\340\300\200\0\0\377\377\377\340\340\340\340\340\340\340\360" "\177\77\37\0\0\377\377\377\0\0\0\0\1\7\37\177\374\360\300\200\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1\0\200\300\340\340\360pppp\360\340\340\300\200\0\0\7\37\77=xpp\340\340\300\300" "\301\201\0\0 p\370\340\340\300\300\300\300\300\341\361\377\177\77\0\0\0\0\0\1\1\1\1\1\1\1\0" "\0\0\0\0pppppp\360\360\360ppppppp\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\360\360\360\20\0\0\0\0\0\0\0\0\360\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0p\360\360\340\0\0\0\0\0\0\0\0\300\360\360p\0\1\17\177\377\370\300\0\0\200\360\376" "\177\17\3\0\0\0\0\0\3\17\177\376\374\377\37\3\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\360\360\360\0\0\0\0\300\300\200\0\0\0\300\360\360\7\377\377\374\0\340\374\177\77\377\370\300" "\300\377\377\7\0\0\77\377\377\77\7\0\0\3\37\377\377\177\1\0\0\0\0\1\1\0\0\0\0\0\0\1" "\1\0\0\0\20\60\360\360\340\200\0\0\0\0\200\340\360\360\60\0\0\0\0\3\17\237\376\370\370\376\237\7" "\3\0\0\0\0\300\340\370~\77\17\3\3\17\37~\370\360\300\0\1\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1p\360\360\340\200\0\0\0\0\0\0\300\360\360p\20\0\1\3\17\77\376\370\340\360\374\177\37" "\7\1\0\0\0\0\0\0\0\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0pppppppppp\360\360\360p\0\0\0\0\0\0\200\300\360\370~\37" "\17\3\0\0\0\300\340\370\374\377\337\307\303\300\300\300\300\300\300\300\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\0\0\0\374\374\374\34\34\34\34\34\34\34\34\0\0\0\0\0\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\16\16\16\16\16\16" "\16\16\0\0\0\60\360\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\340\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3" "\7\7\2\0\0\34\34\34\34\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\16\16\16\16\16\16\16\16\17\17\17" "\0\0\0\0\0\0\0\0\0\200\300\360\360\340\200\0\0\0\0\0\0\0\20\34>\17\3\1\1\7\17\77" "\34\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34\34\34\34\34\34\34\34\34\34\34" "\34\34\34\34\0\0\0\0\370\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77~\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\374\374\374\4\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377x\34\16\16\16\16\36<" "\374\370\340\0\0\377\377\377\374\340\300\300\300\300\340\360\377\177\37\0\0\1\1\1\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36" "\34|\70\20\0\17\77\177\376\360\340\300\300\300\300\300\340\360`\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\4\0\300\360\370\374\36\16\16\16\16\34<\377" "\377\377\0\0\17\77\177\376\340\300\300\300\300\340\360\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\234\236\216\216\216\216\236" "\374\370\360\340\0\17\77\177\377\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\340\360\370<\34\34\34\34\16\16\376\376\374<\16\16" "\376\376\374\0\377\377\377\0\0\0\377\377\377\0\0\0\377\377\377\0\1\1\1\0\0\0\1\1\1\0\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376x\34\34\16\16\16\36\374" "\374\370\0\0\0\377\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\1\1\1\0\0\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36|" "\370\370\340\0\17\77\177\376\360\340\300\300\300\300\340\360\177\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376x\34\16\16\16\16\36>" "\374\370\360\300\0\377\377\377|\340\300\300\300\300\340\340\375\177\77\17\0\177\177\177\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\34\36\16\16\16\16\34\374" "\376\376\376\0\17\77\177\376\360\340\300\300\300\300\340}\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\370<\34\16\16\16\16" "\36<\34\0\0\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p\374\374\376\216\216\216\16\36\34" "<\70\10\0\0`p\360\341\301\303\303\303\303\347\377\376~<\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\340\340\340p\0\0\0\0\0\0\0\0\16\16\16\16\377\377\377\16\16\16\16" "\16\0\0\0\0\0\0\0\0\177\377\377\340\300\300\300\340\360\0\0\0\0\0\0\0\0\0\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\340\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\36~\376\370\300\0\0\0\0\200\340" "\376~\36\2\0\0\0\1\17\77\377\370\360\374\77\17\3\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\376\376\340\0\0\300\374\374\370\300\0" "\0\376\376\376\0\3\177\377\374\374\177\7\0\17\177\376\370\377\177\1\0\0\0\1\1\1\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\16>|\370\360\300\300\360\370>" "\36\16\2\0\0\200\300\360\370|\37\17\17\37|\370\360\300\200\0\1\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\36~\376\360\300\0\0\0\0\300\370" "\376~\16\0\0\0\0\3\17\77\376\370\360\376\77\17\1\0\0\0\70xppp<\77\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\16\216\316\356\376~" ">\36\16\0\0\300\340\360\370\374\336\317\307\303\301\300\300\300\300\300\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\0\0\0\0\0\200\300\340\360pppppp\0\0\200\200\200\300\377\377\177\1\0\0\0" "\0\0\0\0\0\3\3\3\7\377\376\374\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77~xpp" "ppp\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\0\0\0" "\0\0\0\0\0\0ppppp\360\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\360" "\200\200\200\0\0\0\0\0\0\0\0\0\370\376\376\37\3\3\3\0\0\0pppppx\177\77\37\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\34\34\36\16\16\16\36\34<\70\70" "\70\34\36\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\70|||\70\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0" "\0\0\0\0\0\0\0\0\0\374\377\377\377\360\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\360\360\360\20\0\0\0\0\340\370\374~\17\7\3\377\377\377\7" "\7\17\36\4\0\7\37\77\77xp\374\377\377\343\340\360px \0\0\0\0\0\0\4\17\17\1\0\0" "\0\0\0\0\0\0\0\200\300\340\360pppp\360\340\340\0\0\0\70\70\377\377\377\370\70\70\70\0\0" "\0\0\0\0\300\300\340\377\377\377\357\340\340\340\300\300\300\300\340\300\0\1\0\0\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\200\0\0\0\0\0\0\0\0\0\200\200\0\0\0\1\373\377\376\216\7\7\7\7\216\377" "\377s\1\0\0\4\16\7\3\3\7\7\7\7\3\7\17\16\4\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\20\60\360\360\340\200\0\0\0\0\0\200\340\360\360\60\0\0\200\203\207\237\277\374\360\370\376\237" "\207\203\200\0\0\0;;;;;\377\377\377;;;;;\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\0\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\0\0\0" "\0\0\0\0\0\0\0\360\370\370<\34\34\34\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\60p\70\70\70\70x\360\360\300\0\0\0\0\0<~\376\347\347\347\347w\377\377" "\377\0\0\0\0\16\16\16\16\16\16\16\16\16\16\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360x\60\200\300\340\340" "px\60\0\0\3\7\17\37x\360\357\317\300\300\301\307\337\354\360p<\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0pppppppppp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\360x\70\70\70\370\360\340\0\0\0\0\0\0\1\7\7\17\16\16\16\17\7" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\0\0\70\70\70\70\70\70\377\377\377\70\70\70" "\70\70\70\0\300\300\300\300\300\300\317\317\317\300\300\300\300\300\300\0\1\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\0`\360p\70\70\70\70\370\360\340\0\0\0\0\0\0\340\360\370\370\374\356\347\347\343" "\341\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0 p\60\270\270\270\270\370\360\340\0\0\0\0\0 px\360\343\343\343\343\347\177" "~\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0`\360\374~\34\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\376\376" "\376\0\0\0\374\377\377\377\340\300\300\300\340\374\177\377\377\300\300\340\177\177\177\0\0\1\1\1\1\0\0\0" "\1\1\1\0\0\300\360\370\370\370\374\374\374\374\34\34\374\374\374\0\0\3\17\37\37\77\77\377\377\377\0\0" "\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\377\377\377\0\0\0\0\0\0\0\0\7\7\7\0\0" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60p`nnl\70" "\70\0\0\0\0\0\0 `p\60\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\360x\70\70\70x\360\340\300\0\0\0\0\0\37\77\177\360\340\340\340\360\177\77" "\17\0\0\0\0\16\16\16\16\16\16\16\16\16\16\16\16\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60x\360\340\300\200\60x\360\340" "\300\300\200\0\0 px<\37\17\7\63x<\36\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\30\30\374\374\374\0\0\0\0\0\300\360\374\70\10\0\0\0\17\17\17\0\300\360\374\77\17\3" "\0\0\0\0\0\0\300\360\374\77\17\303\340\360\334\316\377\377\300\300\0\1\1\3\0\0\0\0\0\0\0\0" "\7\7\0\0\30\30\374\374\374\0\0\0\0\200\340\370x\30\0\0\0\0\17\17\17\0\300\370\376\37\7\1" "\0\0\0\0\0\0\300\360\374\77\17\3\14\14\206\306\346~>\34\0\1\3\3\0\0\0\0\6\7\7\6" "\6\6\6\6\14\16fff~\374\230\0\0\200\340\370~\34\0\7\17\14\14\14\16\207\343\370~\37\7" "\1\0\0\0\0\0\200\340\370~\37\307\341\360\370\334\316\377\377\300\0\0\1\3\1\0\0\0\0\0\0\0" "\0\7\7\0\0\0\0\0\0\70|||\70\0\0\0\0\0\0\0\0\300\340\340\360~>\36\0\0\0" "\0\0\0\0\0\37\177\377\373\340\300\300\300\300\340\360\370p \0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\201\341\371\363\303\3\0\0\0\0\0\0\0\200\340\374\377\217\203\217\277\376\370" "\300\0\0\0\340\374\377\37\3\3\3\3\3\3\3\17\77\377\370\340\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\203\343\371\361\301\0\0\0\0\0\0\0\0\200\340\374\377\217\203\217\277\376\370" "\300\0\0\0\340\374\377\37\3\3\3\3\3\3\3\17\77\377\370\340\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\4\16\17\7\303\363\343\207\17\16\4\0\0\0\0\0\0\300\370\377\37\7\37\177\374\360" "\200\0\0\0\300\370\377\77\7\7\7\7\7\7\7\37\177\376\360\300\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\1\1\0\300\361\341\203\3\3\1\0\0\0\0\0\0\300\370\377\37\7\37\177\374\360" "\200\0\0\0\300\370\377\77\7\7\7\7\7\7\7\37\177\376\360\300\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\1\3\3\1\340\360\340\1\3\3\1\0\0\0\0\0\0\340\374\177\37\3\37\177\374\340" "\200\0\0\0\340\370\377\77\7\7\7\7\7\7\7\37\377\376\360\300\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\0\3\7\354\374\354\7\3\0\0\0\0\0\0\0\0\340\374\177\17\3\17\177\374\360" "\200\0\0\0\340\374\377\37\7\7\7\7\7\7\7\37\177\376\360\300\1\1\0\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\0\0\0\300\360\360\360\360\360ppppp\0\0\200\360\376\377\17\1\377\377\377p" "pppp\340\374\377\77\17\16\16\16\377\377\377\300\300\300\300\300\1\1\1\0\0\0\0\0\1\1\1\1" "\1\1\1\1\0\0\200\300\340\340\360pppp\340\340\300\200\0\374\377\377\277\3\0\0\0\0\0\0\0" "\3\3\3\1\7\37\77\177\370\340\340\300\300\300\300\340\360p\60\0\0\0\0\0 \60aaoo}\70" "\0\0\0\0\0\360\360\360qqqssswpppp\0\0\377\377\377pppppppp" "pp\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\360\360\360prwsssqqqpp\0\0\377\377\377pppppppp" "pp\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\360\360\366~wssqsw\177vpp\0\0\377\377\377pppppppp" "pp\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\360\360\361ssqppqssqpp\0\0\377\377\377pppppppp" "p\0\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0ppqq\361\363\363swppp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0ppps\367\363\363sqqqp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0pvww\363\363\363sw\177vp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0pqss\361\360\360qssqp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\360\360\360ppppp\340\340\300\200\0\0pp\377\377\377ppp\0\0\0\3" "\377\377\377\370\0\0\377\377\377\300\300\300\300\340\340\370\177\77\37\3\0\0\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\360\360\361\361\301\0\0\1\3\3\3\3\361\360\360\0\377\377\377\3\17\37|\370\340\200\0" "\0\377\377\377\0\377\377\377\0\0\0\0\1\7\17>\374\377\377\377\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\1\0\200\300\340\360p\71\71\71;{\360\360\340\300\0\376\377\377\317\0\0\0\0\0\0\0\0" "\1\377\377\377\3\17\37\77|p\340\340\340\340\360p|\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360q;;\71\71y\360\360\340\300\0\376\377\377\317\0\0\0\0\0\0\0\0" "\1\377\377\377\3\17\37\77|p\340\340\340\340\360p|\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\306\356\347ssqs\367\357\356\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\77\177\370\340\300\300\300\300\340\340\370\177\77\17\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\200\301\343\340ppqs\363\343\343\301\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\77\177\370\340\300\300\300\300\340\340\370\177\77\17\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\200\301\343\343qppq\363\343\341\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\77\177\370\340\300\300\300\300\340\340\370\177\77\17\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\200\200\0\0\0\0\3\207\307\357\376\374\370\374\376\317" "\207\3\1\0\0\0\3\7\7\3\1\0\0\1\3\7\17\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\340\360p\70\70\70\70\370\360\360\374\374\14\376\377\377\337\1\0\300\340\370>\17\7" "\1\377\377\377\3\317\377\377|\177\377\343\340\340\360x|\77\37\17\1\1\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\21\1\1\3\3\3\7\0\0\360\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0\0\360\360\360\20\0\7\3\3\3\1\1\1\360\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0\0\360\360\362\26\7\3\3\1\3\7\17\6\362\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0\0\360\360\361\23\3\1\0\0\0\1\3\3\361\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0p\360\360\340\200\7\3\3\3\1\1\301\360\360p\20\0\1\3\17\77\376\370\340\360\374\177\37" "\7\1\0\0\0\0\0\0\0\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\7\7\7\7\7\7\7\17" "\376\374\370\0\0\377\377\377\16\16\16\16\16\16\16\17\7\7\1\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\360\370<\34\34\34\34\70\370\360\340\0\0\0\377\377\377\1\0\0\70\70\70<\177" "\377\347\300\200\0\377\377\377\0\200\300\340\300\300\300\340\360\377\177\77\0\1\1\1\0\0\0\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\14>~\370\360@\0\0\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0@`\370~>\14\0\0\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0@\340\370|\36>|\360\340@\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\30<\36\16\16\36fff<<\0\0\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\34\36\216\216\236\374\374\374\274\216" "\216\236\376\374<\376\377\377\303\303\303\377\177\177\373\343\303\303\303\343\0\0\0\1\1\1\1\0\0\0\0\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36" "\34|\70\20\0\17\77\177\376\360\340\300\300\300\300\300\340\360`\0\0\0\0\0\0\60qaoom=" "\70\0\0\0\0\0\0\0\0\0\14\34~\374\360@\0\0\0\0\0\300\360\370\374\234\236\216\216\216\216\236" "\374\370\360\340\0\17\77\177\377\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0`\370|>\34\10\0\0\0\0\300\360\370\374\234\236\216\216\216\216\236" "\374\370\360\340\0\17\77\177\377\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0@\340\370<\36>|\360\340@\0\0\0\300\360\370\374\234\236\216\216\216\216\237" "\374\370\360\340\0\17\77\177\377\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\300\360\370\374\234\216\216\216\216\216\236" "\374\370\360\340\0\17\77\177\373\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\4\14>~\370p\0\0\0\0\0\0\0\0\0\16\16\16\16\376\376\376\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0`\370~>\14\4\0\0\0\0\0\0\16\16\16\16\376\376\376\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0@\360x<\36|\370\340@\0\0\0\0\0\0\16\16\16\16\376\376\376\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\0\0\16\16\16\16\376\376\376\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0H\354\354\374|x\360\360\360\270\70\0\0\300\360\370\374<\36\16\16\16\16\37\77" "\377\377\370\0\17\77\177\376\360\340\300\300\300\300\340\360\177\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\60\70<\34\34\34\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36|" "\370\370\340\0\17\77\177\376\360\340\300\300\300\300\340\360\177\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0@\340\370|\36>|\360\340@\0\0\0\300\360\370\374<\36\16\16\16\16\36|" "\370\370\340\0\17\77\177\376\360\340\300\300\300\300\340\360\177\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\30<\36\16\16\36\77" "\377\373\340\0\17\77\377\375\360\374\337\317\303\300\340\370\177\177\37\0\0\3\3\7\1\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\4\36>~\370`\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\340\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0`p\374>\36\14\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\340\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0@`\360|>\36|\370\360@\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\300\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\30<<\30\0\0\30<<\30\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\340\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0p\370~>\14\4\0\0\0\0\6\36~\376\360\300\0\0\0\0\300\370" "\376~\16\0\0\0\0\3\17\77\376\370\360\376\77\17\1\0\0\0\70xppp<\77\37\7\1\0\0" "\0\0\0\0\0\374\374\374\14\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377x\34\14\16\16\16\36>" "\374\370\360\300\0\377\377\377|\340\300\300\300\300\340\340\375\177\77\17\0\177\177\177\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\30<<\30\0\0\0\30<<\30\0\0\0\6\36~\376\360\200\0\0\0\0\300\370" "\376>\16\0\0\0\0\3\17\77\376\370\360\376\77\7\1\0\0\0\70xppp\70\77\37\7\1\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--30-300-72-72-P-147-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb21_2x4_r[6084] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_r") = " ~\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0x\374\374\374\370\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\1\0\0" "\0\0\0\0\0\0\0\0\0\340\363\363\363\340\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\370\374\374\0\0\0\370\374\374\0\0\0\0\0\0\0\7\7\7\0\0\0\7\7" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\360\20\0\0\360\360\360\20\0\0\16\16\16\356\377\377\17\6\6\366\377\377" "\37\16\16\16\7\7\347\377\377\37\7\7\367\377\377\17\7\7\7\0\0\0\1\1\1\0\0\0\1\1\1\0" "\0\0\0\0\0\0\200\300\340\360p\374\374\374tp\340\340\300@\0\0\7\37\37>\70\377\377\377\360\340" "\340\301\301\200\0\0\70|p\340\340\377\377\377\340\340q\177\77\37\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\300\340\360\360p\360\340\340\300\0\0\300\360\360p\20\7\17\17\36\34\37\337\357\377\376\77\17" "\7\1\0\0\0\200\340\360\374\77\37\7}\376\377\307\307\377\376\376\0\1\1\1\0\0\0\0\0\0\1\1" "\1\1\0\0\0\0\200\340\340\360pp\360\360\340\300\0\0\0\0\0\0\207\337\377\377\360\360\370\277\37\17" "\0\200\200\0>\177\377\367\341\300\300\301\343\357\377~|\377\357\307\0\0\0\1\1\1\1\1\1\0\0\0" "\0\1\1\0\0\0\0\0\0\0\0\370\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360x<\34\20\0\0\0\0\0\360\376\377\177\7\1\0\0" "\0\0\0\0\0\0\0\0\17\177\377\377\340\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\36<" "\70x\20\0\0\0<\70x\360\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\376\370" "\0\0\0\0\0\0\0\0\0\0\0\300\360\377\377\77\0\0\0\0\0\20p\70<\36\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\20<\70\70\60\360\343\377\377\347\360\60" "\70\70<\0\0\0\10\36\37\17\3\1\1\3\17\37\36\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\340\340\340\340\340\340\377\377\377\340\340\340" "\340\340\340\0\0\0\0\0\0\0\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\61;\37\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ppppppppppp" "pp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\360\60\0\0\0\0\0\0\0\200\340\370\376\77\17" "\3\0\0\0\0\0\200\340\370\376\77\17\3\0\0\0\0\0\0\0\0\2\7\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360ppp\360\340\300\200\0\0\0\370\377\377\77\3\0\300\340x<\17" "\377\377\377\370\0\7\37\77\177\376\347\303\300\300\340\360\377\177\37\7\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\200\300\300\340\340\360\360\360\0\0\0\0\0\0\0\0\0\1\0\0\0\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\200\0\0\0\0\1\3\0\0\0\200\300\340\361\377" "\177\37\0\0\0\300\340\370\374\336\317\307\303\301\301\300\300\300\0\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0@\340\340\360pppp\360\340\340\300\0\0\0\0\0\0\0ppppx\370\377" "\337\217\0\0\0\0`\360\360\340\300\300\300\300\340\373\377\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\360\360\0\0\0\0\0\200\300\360\370<\17\7\1\377\377" "\377\0\0\0\0\16\17\17\17\16\16\16\16\16\377\377\377\16\16\16\0\0\0\0\0\0\0\0\0\0\1\1" "\1\0\0\0\0\0\360\360\360ppppppppp\0\0\0\0\77\177\177\70\34\34\34\34<\370" "\360\340\300\0\0 p\370\360\340\300\300\300\300\340\377\177\77\17\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\300\300\340\360pppp\360\340`\0\0\0\374\377\377\377\71<\34\34\34<\370" "\370\340\300\0\0\17\77\177\376\360\340\300\300\300\340\377\177\77\17\0\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0ppppppppp\360\360\360p\0\0\0\0\0\0\0\0\200\340\374\377\77" "\7\1\0\0\0\0\0\0\200\360\374\377\77\7\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\0\0\0\0\7\237\377\377\360p`\360\370\377" "\237\17\0\0\0>\177\377\373\340\300\300\300\300\341\377\377\177\36\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\300\340\340\360pppp\340\340\300\200\0\0\0\37\177\377\373\340\300\300\300\300\340\367" "\377\377\374\0\0@\340\360\340\301\301\301\301\341\360\177\77\37\7\0\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|||\70\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\1\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|||\70\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\340\300\0\0\0\0\0\0\0\0\0\0\0\61;\37\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340`\360\360\370\370\234\234\16\16\17\7\7" "\3\3\1\1\0\0\1\1\3\3\7\7\17\16\34<\70xp\360\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\16\16\16\16\16\16\16\16" "\16\16\16\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\17\16\36\234\274\370" "\370\360\360`px\70<\34\36\16\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 p\370x<\34\34\34\34<\370\370\360\300\0\0\0\0\0\0\0\0\300\360\360x\77" "\37\17\7\0\0\0\0\0\0\0\340\361\361\361\340\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\300\200\0\374\377\377\237\3\360\370\374\374\36\16\16" "\357\377\377\377\3\37\77\177\370\360\343\303\307\307\307\307\343\347\7\7\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\300\360\340\200\0\0\0\0\0\0\0\0\0\300\370\377\37\7\37\177\374\360" "\200\0\0\0\300\370\377\77\7\7\7\7\7\7\7\37\177\376\360\300\1\1\1\0\0\0\0\0\0\0\0\0" "\0\1\1\1\0\360\360\360ppppppp\360\340\340\300\0\0\377\377\377ppppppp\370" "\377\337\217\0\0\377\377\377\300\300\300\300\300\300\300\340\377\377\177\36\0\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\300\300\0\374\377\377\277\3\0\0\0\0\0\0\0" "\1\3\3\1\7\37\77\177\370\360\340\300\300\300\300\340\360\360p \0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\360\360\360pppppp\360\340\300\200\0\0\0\377\377\377\0\0\0\0\0\0\0\3" "\377\377\377\374\0\377\377\377\300\300\300\300\300\340\340\370\177\77\37\3\0\1\1\1\1\1\1\1\1\1\0\0" "\0\0\0\0\0\360\360\360ppppppppppp\0\0\377\377\377pppppppp" "pp\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\0\0\360\360\360ppppppppppp\0\0\377\377\377ppppppp" "pp\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340\360pppp\360\340\340\300\200\370\377\377\237\3\0\0\0\0\300\300\300" "\301\303\301\300\7\37\77\177\370\340\340\300\300\301\301\301\341\377\377\177\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\360\360\360\20\0\0\0\0\0\0\0\360\360\360\20\0\377\377\377pppppppp" "\377\377\377\0\0\377\377\377\0\0\0\0\0\0\0\0\377\377\377\0\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\0\0\0pppp\360\360\360ppppp\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\300\300\300\300\377\377\377\300\300\300\300\300\0\0\0\0\1\1\1\1\1\1\1\1\1\1" "\1\1\0\0\0\0\0\0\0pppp\360\360\360pppp\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0`\360\340\300\300\300\300\340\377\177\77\0\0\0\0\0\0\0\0\1\1\1\1\1\0\0\0" "\0\0\0\0\360\360\360\20\0\0\0\0\0\300\340\360p\60\20\0\377\377\377\340p\370\374\336\217\7\3\1" "\0\0\0\0\377\377\377\0\0\0\1\7\17\77~\370\360\340\200\0\1\1\1\0\0\0\0\0\0\0\0\0" "\1\1\1\1\0\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\300\300\300\300\300\300\300\300\300\300\300\0\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\0\360\360\360\340\200\0\0\0\0\0\0\300\360\360\360\0\377\377\377\7\37~\370\340\360|\37\7" "\377\377\377\0\377\377\377\0\0\0\1\3\1\0\0\0\377\377\377\0\1\1\1\0\0\0\0\0\0\0\0\0" "\1\1\1\0\0\360\360\360\360\300\0\0\0\0\0\0\0\360\360\360\0\377\377\377\3\17\37|\370\340\200\0" "\0\377\377\377\0\377\377\377\0\0\0\0\1\7\17>\374\377\377\377\0\1\1\1\0\0\0\0\0\0\0\0" "\0\1\1\1\0\0\200\300\340\340pppp\360\340\340\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\77\177\370\340\300\300\300\300\340\340\370\177\77\17\0\0\0\0\0\0\1\1\1\1\1\0" "\0\0\0\0\0\360\360\360pppppp\360\360\340\300\200\0\0\377\377\377\340\340\340\340\340\340\340\360" "\177\177\37\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\340pppp\360\340\340\300\200\0\374\377\377\237\1\0\0\0\0\0\0\1" "\3\377\377\376\7\37\177\377\360\340\300\300\200\300\300\340\370\177\77\17\0\0\0\0\1\1\1\17\37\77\71\71" "\70\70\70\0\0\360\360\360pppppp\360\360\340\300\200\0\0\377\377\377\340\340\340\340\340\340\340\360" "\177\77\37\0\0\377\377\377\0\0\0\0\1\7\37\177\374\360\300\200\0\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1\0\200\300\340\340\360pppp\360\340\340\300\200\0\0\7\37\77=xpp\340\340\300\300" "\301\201\0\0 p\370\340\340\300\300\300\300\300\341\361\377\177\77\0\0\0\0\0\1\1\1\1\1\1\1\0" "\0\0\0\0pppppp\360\360\360ppppppp\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\360\360\360\20\0\0\0\0\0\0\0\0\360\360\360\0\377\377\377\0\0\0\0\0\0\0\0" "\0\377\377\377\0\37\177\377\374\340\300\300\300\300\300\340\374\177\177\37\0\0\0\0\0\1\1\1\1\1\1\1" "\0\0\0\0p\360\360\340\0\0\0\0\0\0\0\0\300\360\360p\0\1\17\177\377\370\300\0\0\200\360\376" "\177\17\3\0\0\0\0\0\3\17\177\376\374\377\37\3\0\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0" "\0\0\0\0\360\360\360\0\0\0\0\300\300\200\0\0\0\300\360\360\7\377\377\374\0\340\374\177\77\377\370\300" "\300\377\377\7\0\0\77\377\377\77\7\0\0\3\37\377\377\177\1\0\0\0\0\1\1\0\0\0\0\0\0\1" "\1\0\0\0\20\60\360\360\340\200\0\0\0\0\200\340\360\360\60\0\0\0\0\3\17\237\376\370\370\376\237\7" "\3\0\0\0\0\300\340\370~\77\17\3\3\17\37~\370\360\300\0\1\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1p\360\360\340\200\0\0\0\0\0\0\300\360\360p\20\0\1\3\17\77\376\370\340\360\374\177\37" "\7\1\0\0\0\0\0\0\0\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0pppppppppp\360\360\360p\0\0\0\0\0\0\200\300\360\370~\37" "\17\3\0\0\0\300\340\370\374\377\337\307\303\300\300\300\300\300\300\300\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\0\0\0\374\374\374\34\34\34\34\34\34\34\34\0\0\0\0\0\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\16\16\16\16\16\16" "\16\16\0\0\0\60\360\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\340\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3" "\7\7\2\0\0\34\34\34\34\34\34\34\34\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\16\16\16\16\16\16\16\16\17\17\17" "\0\0\0\0\0\0\0\0\0\200\300\360\360\340\200\0\0\0\0\0\0\0\20\34>\17\3\1\1\7\17\77" "\34\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\34\34\34\34\34\34\34\34\34\34\34" "\34\34\34\34\0\0\0\0\370\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77~\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\34\34\216\216\216\216\216\236" "\374\374\370\0\0<\376\377\377\307\303\303\303\303\343\363\377\377\377\0\0\0\0\0\1\1\1\1\1\1\0\0" "\1\1\1\0\0\374\374\374\4\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377x\34\16\16\16\16\36<" "\374\370\340\0\0\377\377\377\374\340\300\300\300\300\340\360\377\177\37\0\0\1\1\1\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36" "\34|\70\20\0\17\77\177\376\360\340\300\300\300\300\300\340\360`\0\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\4\0\300\360\370\374\36\16\16\16\16\34<\377" "\377\377\0\0\17\77\177\376\340\300\300\300\300\340\360\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\234\236\216\216\216\216\236" "\374\370\360\340\0\17\77\177\377\343\343\303\303\303\303\303\343\363c\3\0\0\0\0\0\0\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\340\360\370<\34\34\34\34\16\16\376\376\374<\16\16" "\376\376\374\0\377\377\377\0\0\0\377\377\377\0\0\0\377\377\377\0\1\1\1\0\0\0\1\1\1\0\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376x\34\34\16\16\16\36\374" "\374\370\0\0\0\377\377\377\0\0\0\0\0\0\0\377\377\377\0\0\0\1\1\1\0\0\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374<\36\16\16\16\16\36|" "\370\370\340\0\17\77\177\376\360\340\300\300\300\300\340\360\177\177\37\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376x\34\16\16\16\16\36>" "\374\370\360\300\0\377\377\377|\340\300\300\300\300\340\340\375\177\77\17\0\177\177\177\0\0\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\374\34\36\16\16\16\16\34\374" "\376\376\376\0\17\77\177\376\360\340\300\300\300\300\340}\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\370<\34\16\16\16\16" "\36<\34\0\0\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p\374\374\376\216\216\216\16\36\34" "<\70\10\0\0`p\360\341\301\303\303\303\303\347\377\376~<\0\0\0\0\0\0\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\340\340\340p\0\0\0\0\0\0\0\0\16\16\16\16\377\377\377\16\16\16\16" "\16\0\0\0\0\0\0\0\0\177\377\377\340\300\300\300\340\360\0\0\0\0\0\0\0\0\0\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\0\0\0\0\0\0\0\0" "\376\376\376\0\0\37\177\377\374\340\300\300\300\340\340|\377\377\377\0\0\0\0\0\0\1\1\1\1\1\0\0" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\36~\376\370\300\0\0\0\0\200\340" "\376~\36\2\0\0\0\1\17\77\377\370\360\374\77\17\3\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\36\376\376\340\0\0\300\374\374\370\300\0" "\0\376\376\376\0\3\177\377\374\374\177\7\0\17\177\376\370\377\177\1\0\0\0\1\1\1\0\0\0\0\0\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\16>|\370\360\300\300\360\370>" "\36\16\2\0\0\200\300\360\370|\37\17\17\37|\370\360\300\200\0\1\1\1\1\0\0\0\0\0\0\0\0" "\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\36~\376\360\300\0\0\0\0\300\370" "\376~\16\0\0\0\0\3\17\77\376\370\360\376\77\17\1\0\0\0\70xppp<\77\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\16\16\16\16\216\316\356\376~" ">\36\16\0\0\300\340\360\370\374\336\317\307\303\301\300\300\300\300\300\0\1\1\1\1\1\1\1\1\1\1\1" "\1\1\1\1\0\0\0\0\0\200\300\340\360pppppp\0\0\200\200\200\300\377\377\177\1\0\0\0" "\0\0\0\0\0\3\3\3\7\377\376\374\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77~xpp" "ppp\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\0\0\0" "\0\0\0\0\0\0ppppp\360\340\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\360" "\200\200\200\0\0\0\0\0\0\0\0\0\370\376\376\37\3\3\3\0\0\0pppppx\177\77\37\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\34\34\36\16\16\16\36\34<\70\70" "\70\34\36\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--30-300-72-72-P-147-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb21_2x4_n[1732] U8X8_FONT_SECTION("u8x8_font_inb21_2x4_n") = " :\2\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 xpp`\340\307\377\377\317\340`" "ppx\0\0\0\20<>\37\7\3\3\7\37><\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\377\377\377\300\300\300" "\300\300\300\0\1\1\1\1\1\1\177\177\177\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0cw\77\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\340`\0\0\0\0\0\0\0\0\300\360\374\177\37" "\7\1\0\0\0\0\0\300\360\374\177\37\7\1\0\0\0\0\0\0\0\4\17\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\340\340\340\340\300\200\0\0\0\0\360\376\377\177\7\1\200\300\360y\37" "\377\377\376\360\0\17\77\177\376\374\316\207\201\200\300\340\377\377\77\17\0\0\0\0\0\1\3\3\3\3\3\1" "\1\0\0\0\0\0\0\200\200\300\300\340\340\340\0\0\0\0\0\0\0\0\1\3\1\1\1\377\377\377\0\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0" "\0\0\0\0\0\0\200\300\300\340\340\340\340\340\300\300\200\0\0\0\0\1\3\7\1\0\0\0\200\301\343\377" "\377\77\0\0\0\200\300\360\370\274\236\217\207\203\203\201\200\200\0\0\0\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\200\300\300\340\340\340\340\340\340\300\300\200\0\0\0\0\0\1\1\341\340\340\340\360\361\377" "\277\37\0\0\0\0\300\340\340\300\200\200\200\200\301\367\377\377>\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\340\0\0\0\0\0\0\200\340\360x\36\17\3\377\377" "\377\0\0\0\0\34\37\37\37\35\34\34\34\34\377\377\377\34\34\34\0\0\0\0\0\0\0\0\0\0\3\3" "\3\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\177\377\377p\70\70\70\70x\360" "\340\300\200\0\0@\340\360\340\300\200\200\200\200\300\377\377\177\37\0\0\0\0\1\1\3\3\3\3\3\3\1" "\0\0\0\0\0\0\0\200\200\300\340\340\340\340\340\340\300\300\0\0\0\370\376\377\377sy\70\70\70x\361" "\361\300\200\0\0\37\177\377\375\340\300\200\200\200\300\377\377\177\37\0\0\0\0\0\1\1\3\3\3\3\3\1" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\0\0\0\0\0\0\0\0\0\300\370\376\177" "\17\3\0\0\0\0\0\0\0\340\370\377\177\17\1\0\0\0\0\0\0\0\0\0\3\3\3\3\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\300\300\200\0\0\0\0\17\77\377\377\340\340\300\340\361\377" "\77\37\0\0\0|\376\377\367\301\201\200\200\201\303\377\377\376<\0\0\0\0\1\1\3\3\3\3\3\3\1" "\1\0\0\0\0\0\200\300\300\340\340\340\340\340\300\300\200\0\0\0\0>\377\377\367\301\200\200\200\200\301\357" "\377\377\370\0\0\200\300\341\301\203\203\203\203\303\341\377\177\77\17\0\0\0\1\1\3\3\3\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0p\370\370\370p\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\3\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--44-440-72-72-P-215-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb33_3x6_f[32260] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_f") = " \377\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360" "\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\17\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\217\217\217\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\37\77\77\77" "\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0" "\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0" "\0\0\0\300\300\300\300\300\0\0\0\0\200\200\200\200\200\200\376\377\377\377\217\200\200\200\200\377\377\377\377\203" "\200\200\200\200\7\7\7\7\7\377\377\377\377\17\3\3\3\203\377\377\377\377\7\7\7\7\7\0<<<<" "\374\377\377\377\77<<<<\377\377\377\377\77<<<<\14\0\0\0\0x\177\177\177\37\0\0\0\0" "\177\177\177\177\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\360\360\360\360\200\200\0\0\0\0\0\0\0\0\0\0\360\370" "\374\376\377\37\7\7\377\377\377\377\7\17\17\37\177>\34\10\0\0\0\0\1\7\17\37\37\77>|\377\377" "\377\377\360\360\340\340\340\300\200\0\0\0\0\0\300\340\340\300\200\0\0\0\377\377\377\377\1\1\203\307\377\377" "\377\377~\0\0\1\3\7\7\17\17\17\37\36\377\377\377\377\36\17\17\17\7\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\300\300\300\300@\0\0\377\377\377\307\307\307\307\377\377\377\377|\200\340\360\374\377\77\37\7" "\1\0\0\0\1\3\3\7\7\7\7\7\303\363\371\376\177\37\7\3\0\0\0\0\0\0\0\0\0\0\0\200" "\340\370\374\377\77\17\3\361\374\376\376\37\37\37\37\376\376\374\360\0\60<>\77\37\7\1\0\0\0\0\3" "\17\37\37>>>>\37\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\374" "\376\377\377\377\17\7\3\7\17\377\377\377\376\374\0\0\0\0\0\0\0\0\200\300\303\357\377\377\177\374\370\374" "\377\337\17\7\3\0\0\200\200\200\0\0\370\376\377\377\377\207\1\0\0\0\1\7\17\277\377\376\374\370\374\377" "\377\77\17\6\1\7\17\37\37\37>>>>>>\37\37\17\17\7\7\17\77\77\37\34\10\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\360" "\360\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370xx`\0\0\0\0\0\0\0" "\0\0\200\340\370\374\377\377\77\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\374\377\377\377\377\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\377\377\377\377\370\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\177\377\376\370\360\300\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77\36\14\0\0\0\0\0\300\360\360\340\340\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\37\77\377\376\374\360\340\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\377\376\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\377\377\377\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376" "\377\177\37\17\1\0\0\0\0\0\0\0\0\0<|>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\70>><|xxp\360\377\377\377" "\377\361pxx|<<>\70 \0\0\0@\340\360\370\376\177\37\17\7\3\17\37\177\376\374\370\340\300" "\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0xxxxxxxxx\377\377\377\377\377xxxxxxxx\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0 \60x~\77\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\360\360\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\77\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\200\340\374\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0`x\376\377\177\37\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\300\360\374" "\376\377\177\37\17\7\7\7\7\17\337\377\377\376\374\360\300\0\0\0\376\377\377\377\377\3\0\0\200\340\360\370" "~\37\17\7\1\377\377\377\377\376\0\0\7\77\377\377\377\370\374\237\17\7\1\0\0\0\0\300\370\377\377\377" "\177\7\0\0\0\0\0\3\7\17\37\37\77>>>>>\37\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\34\34\36\36\17\17\17\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\10\34" ">\177\37\17\7\7\7\3\7\7\7\17\77\377\377\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\340\370\374\377\177\77\17\3\0\0\0\0\0\0\200\340\360\370\374\376\77\37\17\7\7\3\1\0\0\0" "\0\0\0\0\0\0<\77\77\77\77\77=<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\6\17\37\17\7\7\7\7\7\7\7\7\37\377\377\376\374\370" "\0\0\0\0\0\0\0\0\0\0xx||||\374\376\377\377\377\347\303\201\0\0\0\0\0\0\0\300" "\300\0\0\0\0\0\0\0\0\0\1\303\377\377\377\377\376\0\0\0\0\6\17\17\37\37\36>>>>>" ">>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\300\340\370\374\177\377\377\377\377\377\0\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0" "\0\377\377\377\377\377\0\0\0\0\0\0<\77\77\77\77=<<<<<<<\377\377\377\377\377<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\60\177\177\377\77\77\36\37\37\37\37\37\37>\376\374\374\370\340\200\0\0\0\0\200\300" "\300\300\200\0\0\0\0\0\0\0\0\0\300\377\377\377\377\177\0\0\0\1\3\7\17\37\37\37>>><" ">>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370" "\374\376\377\77\17\7\7\7\3\7\7\7\17\17\7\2\2\0\0\0\0\377\377\377\377\377\374>\36\37\37\17" "\37\37\77\376\376\374\370\340\200\0\0\0\0\37\377\377\377\377\360\200\0\0\0\0\0\0\0\300\377\377\377\377" "\177\0\0\0\0\0\0\3\7\17\37\37\77>><>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\303\363\377\377\377\77\17" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\377\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\77\77\77\77\17\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\370\374" "\376\377\377\17\7\7\7\3\7\7\17\37\377\377\377\374\370\0\0\0\0\0\1\203\317\317\377\377\376|xx" "x\370\374\377\377\317\307\203\0\0\0\0\0\370\376\377\377\377\307\1\0\0\0\0\0\0\1\1\207\377\377\377" "\376\370\0\0\0\0\3\7\17\37\37\37>>><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\7\7\7\7\7\7\37\177\377\376\374\360" "\200\0\0\0\0\17\77\177\377\377\370\340\340\300\300\300\300\340\340\360\377\377\377\377\377\0\0\0\0\0\0\0" "\200\201\3\3\3\3\3\3\3\3\201\361\377\377\377\177\17\0\0\0\0\4\16\17\37\37>>><>>" ">\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>\177\177\177" ">\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376" "\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60|\77\77\37\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\200\300\300\340\340\360\360\370\370||>>\37\37\0\70|\374\376\376\377\357\357\307\207\207\3" "\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\17\37\37>>||\370\370\360" "\360\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0<<<<" "<<<<<<<<<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37>>" "||\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3" "\203\207\307\357\357\377\376\376\374|\70\0\340\340\360\360\370\370||>>\37\37\17\17\7\3\3\1\1\0" "\0\0\0\0\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\360\360\360\360" "\360\360\360\340\340\300\200\0\0\0\0\0\0\6\7\17\37\17\3\3\1\1\1\1\1\1\3\207\377\377\377\377" "\374\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\376\177\77\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\7\207\207\207\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\37\77\77" "\77\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374\376" "\177\77\17\17\7\7\7\3\7\207\207\207\217\277\376\374\370\340\0\0\377\377\377\3\0\0\0\360\374\376\376\37" "\17\17\17\17\17\207\377\377\377\377\0\0\77\377\377\374\360\300\200\1\7\17\37\37\36\36\36\36\37\17\37\37" "\37\37\0\0\0\0\1\3\7\17\17\37\37>>>><>>>\36\37\17\14\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\376\370\300\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377" "\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0" "\0\0\0\0\0\7\37\77\77\77< \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377\377" "\377\3\3\3\3\3\7\7\7\7\17\37\377\377\376\374\370\0\0\0\377\377\377\377\377xxxxx||" "|\374\376\377\377\357\317\207\1\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\1\203\377\377\377" "\377\374\0\0\77\77\77\77\77<<<<<<>>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374\376\377\177\37\17\7\7\7\3\7\7\7\17\37\177\177" "~<\60\0\376\377\377\377\377\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377" "\377\374\340\200\0\0\0\0\0\0\0\0\0\0\300\300\300\200\0\0\0\0\0\3\7\17\17\37\37\77>>" ">>>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377" "\377\3\3\3\3\7\7\7\7\17\37\177\377\376\374\370\340\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\1\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377" "\77\7\0\0\77\77\77\77\77<<<>>>>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\300\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\377\377\377\377\377xxxxxxxxxxxxx\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77<<<<<<" "<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\377\377" "\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\377\377\377\377\377xxxxx" "xxxxxxx\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300" "\300\300\300\300\200\200\200\0\0\0\0\0\0\300\360\374\376\377\77\37\17\7\7\7\7\7\7\7\17\17\77\177" ">\34\30\0\376\377\377\377\377\1\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\0\7\77\377\377" "\377\374\340\200\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\0\0\0\0\3\7\17\17\37\37>>>" ">>>>>\37\37\37\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377xxxxxx" "xxxxx\377\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77\77" "\77<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0" "\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\300\200\0\0\0\0\0\0\0\200\377\377\377\377\377\0\0" "\0\0\0\0\0\6\17\17\37\37>>>>>>\37\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0" "\0\0\0\0\200\300\300\300\300\300@\0\377\377\377\377\377\0\0\0\0\200\300\360\370\374\376\77\37\17\7\3" "\1\0\0\0\377\377\377\377\377\370|~\377\377\377\347\203\1\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\1\3\17\37\177\377\376\370\360\340\200\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\3\7\37\77\77\77<\70\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77<<<<<<<<<<<<<<<<\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300\300\0\377\377\377\377\377\376\370\340\200\0\0\0\0\0\200\340\370\376\377\377" "\377\377\377\0\377\377\377\377\377\1\7\37\177\376\370\340\370\376\77\37\7\1\377\377\377\377\377\0\377\377\377\377" "\377\0\0\0\0\1\7\7\3\0\0\0\0\0\377\377\377\377\377\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\377\377\377\377" "\377\177\376\370\340\300\0\0\0\0\0\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\1\7\37\177\377\374" "\360\300\200\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\1\3\17\77\377\376\370\377\377\377" "\377\377\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\3\17\37\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\200\0\0\0\0\0\0\0\340\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377" "\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\0\3\7\17\17\37\37>>><" ">>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\3\7\7\7\17\77\377\377\376\374\360\0\0\377\377\377\377\377\360\360\360\360\360\360" "\360\360\360\370\370\376\177\177\77\17\3\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\200\0\0\0\0\0\0\0\300\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\177\377\377\377" "\374\300\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\1\3\7\17\37\77\77>\374\374\374" "\374>>\37\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\37\36\36\36\36\36\36" "\36\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\7\7\7\17\37\377\377\376\374\360\0\0\0\377\377\377\377\377\360\360\360\360\360\360" "\360\360\360\370\374\177\77\77\17\3\0\0\0\377\377\377\377\377\0\0\0\0\0\1\7\37\177\377\376\370\340\200" "\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\1\7\37\77\77><\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\360\374\376\377\377\37\17\7\7\7\3\7\7\7\17\37\77\77\36" "\4\0\0\0\0\1\7\17\37\37\77>||x\370\360\360\360\340\340\300\300\200\0\0\0\0\0\200\340\300" "\200\0\0\0\0\0\0\0\0\1\1\3\307\377\377\377\377\374\0\0\3\7\17\17\37\37\36>>><>" ">>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\3\3\3\3" "\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377" "\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377\377\177\0\0\0\1\7\17\17\37\37\77>>>>" ">>\77\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300@\7\77\377\377" "\377\370\300\0\0\0\0\0\0\0\0\0\340\374\377\377\177\17\3\0\0\0\1\7\77\377\377\376\360\200\0\0" "\0\200\360\377\377\377\37\3\0\0\0\0\0\0\0\0\0\1\17\177\377\377\374\340\374\377\377\77\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\377\377\377\377\300\0\0\0\0\340\376\377\377\370\200\0\0\0\200\377" "\377\377\377\3\3\377\377\377\377\360\0\360\377\377\77\7\177\377\377\374\300\200\377\377\377\77\0\0\0\0\77\377" "\377\377\377\377\77\3\0\0\0\7\177\377\377\377\377\377\17\0\0\0\0\0\0\17\77\77\77\3\0\0\0\0" "\0\0\0\7\77\77\77\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\1\7\37" "\177\377\376\370\360\300\0\0\200\340\370\376\377\177\37\7\3\0\0\0\0\0\0\0\0\1\3\217\377\377\377\376" "\377\377\337\7\1\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\177\37\7\7\17\77\377\377\374\360\340\200" "\0\0\0\0\60<\77\77\77\37\7\1\0\0\0\0\0\0\0\3\17\37\77\77>\70\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\300\360\374\377\377\77" "\17\3\0\0\0\0\0\0\1\7\37\177\377\377\374\360\370\376\377\177\17\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\3\3\3" "\3\3\3\3\3\3\3\3\3\303\343\373\377\377\177\37\17\3\0\0\0\0\0\0\0\0\0\200\300\360\370\376" "\377\177\37\17\3\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\177\37\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0<>\77\77\77\77\77<<<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\200\200\200" "\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0`\340\360\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7" "\37\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376" "\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\360\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377|p\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200" "\200\200\377\377\377\377\377\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\340\360\374\376\77\37\177\376\374\360\300\0\0\0\0\0\0\0\0\0\10\14\37\37\37\7\3\0\0\0" "\0\1\7\37\37\37\16\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\200\200\200\200\200\200\200\200\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\37\77\377\377\376\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77" "\177\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0\2\7\17\217\207\207\303\303\303\303\303\303\307\307\377\377\377\376\370\0\0\0\370\374\376\377" "\377\217\17\7\7\7\7\7\3\203\203\343\377\377\377\377\377\0\0\0\1\3\7\17\17\37\37\37\37\36\37\37" "\17\17\17\7\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377\377>\17\17\7\7\7" "\7\7\17\17\37\377\377\376\374\360\300\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\77\77\77\77\7\17\37\36>><>>>\77\37\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200" "\0\0\0\0\0\300\370\374\376\377\77\37\17\7\3\3\3\3\3\3\7\7\17\77\37\16\4\0\0\37\177\377" "\377\377\360\300\200\200\0\0\0\0\0\0\0\200\200\300\300\0\0\0\0\0\0\1\3\7\7\17\17\17\37\37" "\37\36\37\37\37\17\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0" "\0\0\200\200\200\200\200\200\200\200\0\0\377\377\377\377\377\0\0\0\300\370\374\376\377\177\37\17\7\7\7\7" "\7\17\37>\377\377\377\377\377\0\0\0\77\377\377\377\377\340\200\0\0\0\0\0\0\0\0\300\377\377\377\377" "\377\0\0\0\0\1\3\17\17\37\37\77>><>>\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\340\370\374\377\377\337\317\307\303\303\303\303\303\303\307\307\317\377\377\376\374\360\0\0\37\377\377\377" "\377\363\303\203\3\3\3\3\3\3\3\3\203\203\303\203\3\3\0\0\0\0\1\3\7\7\17\17\37\37\37\37" "\36\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\360\360\360\360\360\360\340\300\300\0\0\0\0\0" "\0\0\376\377\377\377\377\3\1\0\0\0\0\0\1\3\7\7\1\0\0\17\17\17\17\17\377\377\377\377\377\17" "\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\300\300\300" "\300\300\300\300\0\370\376\377\377\377\207\3\1\1\1\1\1\3\207\377\377\377\377\363\3\3\3\3\0\1\303\347" "\377\377\77\77>><>>\77\37\37\17\7\3\1\0\0\0\0\300\360\363\377\377\77\37\17\17\17\17\17" "\17\17\17\37\37\37\376\376\374\374\360\0\3\7\17\37\37\37>>>><<>>>>\36\37\37\17" "\7\3\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377\377~\36\17\17\7\7" "\7\7\17\37\377\377\376\374\360\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360" "\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\201\203\207\207\207\203\1\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77" "\77\77<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\200\200\200\200\200\200\200\200\201\203\207\207\207\203\1\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7" "\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0" "\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\14\36\37\77" ">|||x||>\77\77\37\17\7\1\0\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\377\377\377\377\377\0\200\300\300\340\360\370|>\37\37\17\7\3\1\0\0\0\0\377\377\377" "\377\377\37\17\7\17\37\177\376\374\370\360\340\300\200\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0" "\0\1\3\7\37\77\77><\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<<\77\77\77\77\77<<<<<<<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\200\300\300\300\300\300\300\200\0\200\300\300\300\300\300" "\300\200\0\0\377\377\377\377\377\17\3\3\3\377\377\377\377\377\17\3\3\3\377\377\377\377\377\0\377\377\377\377" "\377\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377\377\377\0\37\37\37\37\37\0\0\0\0\37\37\37" "\37\37\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\200\300\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\377\377\377\377\377\77\17\7\7\3\3" "\3\3\7\17\377\377\377\376\370\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\300\370\374\376\377\77\17\7\7\3\3\3\3\3\7\7\37\177\377\377\374\370\300\0\37\177\377\377" "\377\360\300\200\0\0\0\0\0\0\0\200\300\360\377\377\377\177\37\0\0\0\1\3\7\7\17\17\37\37\37\36" "\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\200\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\377\377\377\377\377\37\7\7\3\3\3" "\3\3\7\7\17\177\377\377\376\370\340\0\0\377\377\377\377\377\300\200\0\0\0\0\0\0\0\200\300\360\377\377" "\377\377\37\0\0\377\377\377\377\377\7\17\17\17\37\36\37\37\37\37\17\17\7\3\1\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\0\300\300\300" "\300\300\0\0\340\370\376\377\377\77\17\7\7\3\3\3\3\3\7\17\37\377\377\377\377\377\0\0\37\377\377\377" "\377\360\300\200\0\0\0\0\0\0\0\200\340\377\377\377\377\377\0\0\0\0\1\3\7\17\17\37\37\37\37\36" "\37\17\17\7\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\300\0\0\200\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\377\377\377\377\377\177\37\17\7" "\7\3\3\3\3\3\7\17\37\7\1\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0<\177\377\377\377\347\307\303\203\203\203\203\7\7\17\77\37\17\2\0\0\0\0\200\340\340" "\300\201\1\3\3\3\7\7\7\7\17\237\377\376\374\374\360\0\0\0\1\3\7\7\17\17\17\37\37\37\36\37" "\37\37\37\17\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\200\376\376\377\377\377\200\200\200\200\200\200\200\0\0\0\0\0\0\7\7\7\7\7\377\377\377\377\377\7" "\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\200" "\0\0\0\0\0\0\0\0\0\0\3\17\37\37\77\77>><>>\36\37\17\16\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377" "\377\377\200\0\0\0\0\0\0\0\0\300\377\377\377\377\377\0\0\0\0\0\3\17\17\37\37\77>><>" ">\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\1\17\77\377\377\376\370\300\0\0\0\0" "\0\0\0\200\360\376\377\377\37\7\0\0\0\0\0\0\7\37\377\377\377\370\340\0\300\370\376\377\77\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\0\377\377\377\360\0\0\0\0\340\376\376\376\376\360\200\0\0\0\377\377\377\377\17\0\7\177\377\377" "\377\340\340\376\377\77\7\7\77\377\377\370\300\374\377\377\377\7\0\0\0\0\17\77\77\77\77\37\3\0\0\0" "\0\3\37\77\77\77\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\1\7\17\37\177\376\374\370\340\300\200" "\340\360\374\376\177\37\17\3\1\0\0\0\0\0\0\0\200\300\340\371\377\377\77\77\377\377\371\360\300\200\0\0" "\0\0\0\0 \70<>\77\77\17\7\1\0\0\0\0\1\3\17\37\77\77>\70\60 \0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\0\1\7\37\377\377\377\370\340\0\0\0\0\0\0\0\200\360\377\377\377\77\7\0\0\0\0\0\0" "\3\17\77\377\377\374\340\200\200\360\376\377\377\37\7\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\177\37\3\0\0\0\0\0\0\0\0>\77||x||~\77\77\37\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\7\7\7\7\7\7\7\7\7\207\307" "\367\377\377\177\77\37\17\7\0\0\0\0\0\0\0\200\300\360\370\374\376\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0<>\77\77\77\77\77=<<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\370\376\377\377\377\17\7\3\3\3\3\3\3\3" "\0\0\0\0\200\200\200\200\300\340\377\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\17" "\17\37\377\377\375\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77\77\177|||xxxxx" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\7\17\377\377\377\376\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\377\377\377\340\300\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\370\374\377\377\37\17\17\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0xxxxx|||\177\77\77\37\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\200\300\200\200\0\6\7\17\17\7\7\7\3\7\7\17\17" "\37\37\37\37\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360" "\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\207\207\207\203\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\77\77" "\77\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\200\300\340\340\340\360\360\360\377\377\377\377\341\340\340\300\200\0\0\0\340\374\376\377\377\37\7\3\1\0\360\377" "\377\377\377\1\1\3\17\17\7\3\0\0\17\177\377\377\377\370\340\200\0\360\377\377\377\177\0\0\0\200\300\300" "\200\0\0\0\0\0\0\1\3\7\17\17\377\377\377\377\177\37\37\37\17\17\17\7\3\1\0\0\0\0\0\0" "\0\0\0\0\3\3\3\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\360\374\376\377\377\37\17\7\7\7\7\7\7\17\37\17\7" "\2\0\0\0\0\36\36\37\177\377\377\377\376\336\36\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\340\377\377\377\377\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>\37\37\37\17\17\17\17\17\17\37" "\37\36>>><>>\36\37\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60x" "\370\360\340\340\340\360\360\360\360\360\340\340\340\360\370x\60\0\0\0\0\0\0|\377\377\377\307\3\1\1\0" "\1\1\201\307\377\377\377|\0\0\0\0\0\0\30<\77\37\17\17\17\37\37\36\37\37\17\17\17\37\77<" "\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\200\300\300\300\300\300\0\0\3\17\77\177\377\376\370\340\200\0\0\0\200\340\370\376\377\177\37" "\7\3\0\0\0\0\200\200\200\201\207\217\277\377\376\374\376\377\277\217\207\201\200\200\200\0\0\0\0\0\307\307" "\307\307\307\307\307\377\377\377\377\377\307\307\307\307\307\307\307\0\0\0\0\0\3\3\3\3\3\3\3\77\77\77" "\77\77\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\360" "\360\360\360\360\340\340\300\200\0\0\0\0\0\0\0\77\377\377\377\377\343\301\300\200\200\0\1\3\17\17\7\3" "\1\0\0\0\0\0\360\374\376\377\377\217\7\7\7\7\17\17\37\77\376\376\374\370\340\0\0\0\0\0\0\3" "\7\7\17\17\37\37\36>>|\374\376\377\377\347\303\1\0\0\0\0\20\70~\177\376\370\360\360\360\360\360" "\360\360\370\377\177\177\77\17\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\370\370\370\360\340\0\0\0\340\360\370\370\370\360\340\0\0\0\0\0\0\0\0" "\1\3\3\3\1\0\0\0\0\0\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370x|\274\274\274\274\274xxx\360\340" "\340\300\0\0\376\377\377\37\347\371\376\376\37\17\17\17\7\17\17\77\77><\21\7\37\377\376\177\377\377\370" "\347\237\77\177|\370\360\360\360\360\370\370||\70\210\340\370\377\177\0\0\3\7\7\17\37\36\36<<<" "<<<\36\36\37\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\207\217\317\307\343\343\343\343\343\347\377\377\377\376\0\0\0\0\0\0\0\0\0\77\177\377\377\363\341\341\341" "\341\361\371\377\377\377\377\0\0\0\0\0\0\0<<<<<=======<====<" "<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\340\360\370\374~<\30\200\300\340\360\370\374~<\30\0\0\0\0\7\17\37" "\77\177\375\371\360\340\306\217\37\77\177\377\371\360\340\300\200\0\0\0\0\0\0\0\0\0\0\1\3\7\7\3" "\1\0\0\0\1\3\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\177\177" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340" "\340\360\370x|<<<<<>><>>\36\36\37\17\7\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\340\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0" "~\377\377\377\347\303\303\201\303\303\347\377\377\377|\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7" "\7\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\376\376\376\376\0\0\0\0\0\0" "\0\0\0\0\36\36\36\36\36\36\36\36\36\377\377\377\377\377\36\36\36\36\36\36\36\36\0\0\0\0\0\0" "\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0<<<<<<<<<<<<" "<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\300\300\340\340\340\340\340\340\300\300\200\0\0\0\0\0\0\0\0\0\0" "\7\17\17\7\3\1\1\201\301\341\367\377\377\177\36\0\0\0\0\0\0\0\0\0\340\360\370\374\376\377\377\357" "\347\343\341\341\340\340\340\340\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340" "\340\340\340\300\300\200\0\0\0\0\0\0\0\0\0\0\1\3\7\7\3\361\361\361\361\361\363\377\377\377\237\0" "\0\0\0\0\0\0\0\0\60x\374\374\360\340\340\340\340\340\361\373\377\177\77\37\0\0\0\0\0\0\0\0" "\0\0\0\0\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\374\370x\60\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\4\7\17\37\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377" "\377\200\0\0\0\0\0\0\200\377\377\377\377\377\0\0\0\0\200\0\377\377\377\17\37\37>>>>>\37" "\37\17\7\17\37\77><>\37\37\16\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\340\340\360\360\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\374\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\3\7\17\37\77\77\77\77\377\377" "\377\377\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\3\3\3\3\0\0\0\0\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0p\370\374\374\374\370p\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\20<\70xpssww\77>\36\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340" "\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\3\3\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\360" "\374\376\377\77\7\3\3\3\3\3\17\177\377\377\374\360\0\0\0\0\0\0\0\7\37\77\177\376\360\340\340\340" "\340\340\360\376\177\77\37\7\0\0\0\0\0\0<<<<<<<=====<<<<<<" "<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\30<~\374\370\360\340\340\300\230<>|\370\360\360\340\300\200\0\0\0\0\0\200\300" "\340\360\370\375\177\77\37\217\307\340\360\370\375\177\77\37\17\7\0\0\0\1\3\7\7\3\1\0\0\0\0\1" "\3\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340pp\370\370\370\370\0\0\0\0\0\0\0\0\0\0\300\360\360\340 \0\0\0\0\0\377" "\377\377\377\0\0\0\0\0\0\300\360\374\377\77\17\3\0\0\0\0\0\0\0\7\7\7\7\0\0\200\340\374" "\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\77\7\1\0\200\300\340\360\374\374" "\374\0\0\0\0\0`\370\376\377\77\17\3\0\70<>\77\77;\71\70\377\377\377\70\70\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\340pp\370\370\370\370\0\0\0\0\0" "\0\0\0\0\200\360\360\360\340 \0\0\0\0\0\377\377\377\377\0\0\0\0\0\200\340\370\376\377\77\17\3" "\0\0\0\0\0\0\0\7\7\7\7\0\0\300\360\374\377\177\37\7\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\340\374\377\377\77\7q\370x<\34\34\34<\374\370\360\340\0\0`\370\376\377\77\17\3\0\0\0" "\200\300\340\360\370\274\236\237\217\207\203\201\0\0\0\0\1\1\0\0\0\0\0\0\3\3\3\3\3\3\3\3" "\3\3\3\3\360\360x\70\70\70x\360\360\300\0\0\0\0\0\0\200\360\360\340`\0\0\0\340\300\200\16" "\16\16\236\377\377\373\360\0\200\340\370\376\377\77\17\3\0\0\0\0\3\3\7\7\7\7\7\3\3\301\360\374" "\377\177\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\177\37\7\1\200\300\340\360\374\374\374" "\0\0\0\0\0\0`\370\376\377\77\17\3\0\70<>\77;\71\70\377\377\377\70\70\70\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360" "\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\203\207\207\207\203\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340\360\374\377\177\77\37\7\0\0\0\0\0\0\0\0\0\0\0\0\376\377\377" "\377\377\207\1\0\0\0\0\0\0\0\0\300\340\300\200\200\0\0\0\0\0\3\7\17\37\37\77>>>>" ">>\37\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\1\3\3\203\347\307\17\17\17\6\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\200\360\374\377\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3" "\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374" "\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0\0\0\0\0\0\7\37\77\77\77< \0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\17\17\217\347\307" "\3\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\376\370\300\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377" "\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0" "\0\0\0\0\0\7\37\77\77\77< \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\10\34>\37\17\17\207\343\307\7\17\37>>\14\0\0\0\0\0\0\0\0\0\0" "\0\0\200\360\374\377\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3" "\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374" "\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0\0\0\0\0\0\7\37\77\77\77< \0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\3\1\1\201\343\303" "\7\7\7\7\7\7\3\1\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\370\340\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377" "\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0" "\0\0\0\0\0\7\37\77\77\77< \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\3\7\17\17\17\7\3\300\340\300\3\7\17\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\300\360\376\377\377\377\376\370\300\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\77\7\0\3" "\37\377\377\377\370\340\0\0\0\0\0\0\200\360\376\377\377\177\37\37\36\36\36\36\36\36\37\77\377\377\377\374" "\340\200\0\0\77\77\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\7\37\77\77\77<\60\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\77y\360\360" "y\77\37\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\374\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\370\377\377\77\17\1\1\17\77\377\377\374\340\200\0\0\0\0\0\0\300\370\377" "\377\377\37\37\36\36\36\36\36\36\37\37\177\377\377\374\360\200\0\0\77\77\77\77\7\0\0\0\0\0\0\0" "\0\0\0\0\0\3\17\77\77\77>\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0" "\0\200\360\376\377\377\37\377\377\377\377\3\3\3\3\3\3\3\3\3\0\0\0\340\374\377\377\177\17\0\0\377" "\377\377\377xxxxxxxx\0\200\360\376\377\377\77\77<<<<\377\377\377\377\0\0\0\0\0" "\0\0\0\0\77\77\77\17\1\0\0\0\0\0\0\77\77\77\77<<<<<<<<<\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374\376\377\177\37\17\7\7\7\3\7\7\7\17\37\177\177" "~<\60\0\376\377\377\377\377\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377" "\377\374\340\300\0\0\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\3\7\17\17\37\37\77>>" "\376\376>>\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0\70\70\70pwwww\177\77\36\0\0" "\0\0\0\0\0\300\300\300\300\301\301\301\303\303\307\307\307\317\317\306\300\300\300\300\300\300\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\377\377\377\377\377xxxxxx" "xxxxxxx\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77<<<<<<<<<<<<<<<<\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\302\317\317\317\307" "\307\303\303\303\301\301\300\300\300\300\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\377\377\377\377\377xxxxxxxxxxxxx\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77<<<<<<" "<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\314\334\336\337\317\317\307\303\307\317\317\337\376\334\314\300\300\300\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\377\377\377\377\377xxxxxx" "xxxxxxx\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77<<<<<<<<<<<<<<<<\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\303\307\317\317\317\307\303\300\300" "\300\303\307\317\317\317\307\303\300\300\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\377\377\377\377\377xxxxxxxxxxxxx\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77<<<<<<" "<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\301\301\303\303\303\307\307\317\317\317\302\300\300\300\0\0\0\0\0\0\0\3\3" "\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<\77\77\77\77\77<<<<<<<\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\302\307\317\317\307\307" "\307\303\303\301\301\301\300\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77\77" "\77<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\314\374\336\337\317\317\307\303\307\307\317\337\376\336\314\300\0\0\0\0\0\0\0\3\3" "\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<\77\77\77\77\77<<<<<<<\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\307\317\317\317\307\303\300\300\300" "\303\307\317\317\317\307\303\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77\77" "\77<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\3\3\3\3\7\7\7\7\17\37\177\377\376\374\360\300\0\0x\377\377\377\377\377xxxxx\0" "\0\0\0\0\0\3\377\377\377\377\376\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\300\340\374\377\377" "\377\77\7\0\0\77\77\77\77\77<<<>>>>\77\37\37\17\7\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\301\303\303\207\3\1\1\1\3\3" "\7\7\7\7\7\307\303\301\300\300\0\0\377\377\377\377\377\177\376\370\340\300\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\377\377\377\377\377\0\1\7\37\177\377\374\360\300\200\0\0\377\377\377\377\377\0\0\377\377\377\377" "\377\0\0\0\0\0\1\3\17\77\377\376\370\377\377\377\377\377\0\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\3\17\37\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\203\203\303\307\307\317\317\317\216\206\200\0\0\0\0\0\0\0\340\360\374\376" "\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377" "\377\177\17\0\0\0\3\7\17\17\37\37>>><>>\77\37\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\202\216\317\317\317\307" "\307\307\203\203\201\0\0\0\0\0\0\0\340\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377" "\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\0\3\7\17\17\37\37>>><" ">>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\10\34>\237\237\317\307\307\303\307\317\237\277\276\34\10\0\0\0\0\0\340\360\374\376" "\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377" "\377\177\17\0\0\0\3\7\17\17\37\37>>><>>\77\37\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\201\201\301\301\301\303" "\303\307\207\207\207\3\3\0\0\0\0\0\340\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377" "\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\0\3\7\17\17\37\37>>><" ">>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\3\7\17\17\217\207\303\300\300\300\303\307\217\217\217\7\3\0\0\0\0\0\340\360\374\376" "\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0" "\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377" "\377\177\17\0\0\0\3\7\17\17\37\37>>><>>\77\37\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\300\200\0\0\0\0\0\0\0\200\300\340\340\300" "\200\0\0\0\0\0\1\3\7\17\37\277\377\376\374\370\374\376\377\277\37\17\7\3\1\0\0\0\0\0\60x" "\374\376\177\77\37\17\7\3\7\17\37\77\177\376\374x \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\340\340\340\300\300\300\340\360\370\370p\60\0\360\370\376\377" "\377\77\17\7\3\3\3\3\203\343\377\377\177\177\377\377\375\360\200\0\377\377\377\377\1\0\0\0\300\340\370\376" "\177\37\7\1\0\0\377\377\377\377\377\0\77\177\377\377\374\360\374\377\77\17\3\1\0\0\200\300\340\374\377\377" "\377\77\7\0p|\377\177\77\17\17\17\37\37\37\36\37\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300A\1\3\3\7\7\7" "\17\17\7\2\0\300\300\300\300\300\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377" "\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377\377\177\0\0\0\1\7\17\17\37\37\77>>>>" ">>\77\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300@\2\17\17\17\7\7\7\3\3\1\1\300\300\300\300\300\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377" "\377\177\0\0\0\1\7\17\17\37\37\77>>>>>>\77\37\37\17\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\334^\37\17\17\7\3\3" "\7\17\37\37\36\314\300\300\300\300\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377" "\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377\377\177\0\0\0\1\7\17\17\37\37\77>>>>" ">>\77\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\303\307O\17\17\7\3\0\0\0\3\7\17\17\317\307\303\300\300\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377" "\377\177\0\0\0\1\7\17\17\37\37\77>>>>>>\77\37\37\17\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\6\17\17\7\7" "\7\3\3\3\1\1\300\300\300\300\300\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\300\360\374\377\377\77" "\17\3\0\0\0\0\0\0\1\7\37\177\377\377\374\360\370\376\377\177\17\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\360\360\360\360\360\360\360\360\360\360\340\340\340\300\200\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\1\1\1\3\207\377\377\377\377\374\0\0\377\377\377\377\377<<<<<<<<<>>\77\37\37" "\17\3\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\360" "\360\360\340\340\340\300\200\0\0\0\0\0\0\360\376\377\377\377\17\3\1\1\1\1\1\1\3\207\377\377\377\377" "\374\0\0\0\0\377\377\377\377\377\0\0\0<<<>>\177\177\377\377\363\341\300\200\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\376\0\0\77\77\77\77\77\0\20\34\37>>" ">>>>\37\37\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0p\360\370\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\200\200\200\201\207\217\237\217\216\204\0\0\0\0\0\0\0\0\0\0\4\16\37\37\17\17\207\207\207\207" "\207\207\217\217\377\377\376\374\360\0\0\0\360\370\374\376\376\37\37\17\17\17\17\17\7\7\7\307\377\377\377\377" "\377\0\0\0\3\7\17\37\37\77>>><>>\36\37\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370" "\374\374\374\70\20\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\307\307\317\317\303\301\300\300\200\200\0\0" "\0\0\0\0\0\0\2\7\17\217\207\207\303\303\303\303\303\303\307\307\377\377\377\376\370\0\0\0\370\374\376\377" "\377\217\17\7\7\7\7\7\3\203\203\343\377\377\377\377\377\0\0\0\1\3\7\17\17\37\37\37\37\36\37\37" "\17\17\17\7\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\14\237\277\217\207\201\201\203\217\237\277\37\16\0\0\0\0\0\0\0\0\4\16\37\37\17\17\207\207\207\207" "\207\207\217\217\377\377\376\374\360\0\0\0\360\370\374\376\376\37\37\17\17\17\17\17\7\7\7\307\377\377\377\377" "\377\0\0\0\3\7\17\37\37\77>>><>>\36\37\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\370\370xx\370\370" "\360\340\340\300\300\340\360\360`\0\0\0\0\0\0\0\1\3\201\200\200\200\200\201\201\203\203\203\3\3\1\0" "\0\0\0\0\0\0\4\16\37\37\17\17\207\207\207\207\207\207\217\217\377\377\376\374\360\0\0\0\360\370\374\376" "\376\37\37\17\17\17\17\17\7\7\7\307\377\377\377\377\377\0\0\0\3\7\17\37\37\77>>><>>" "\36\37\37\17\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\0\1" "\3\7\207\207\203\201\200\200\200\201\203\207\7\7\3\1\0\0\0\0\0\0\4\16\37\37\17\17\207\207\207\207" "\207\207\217\237\377\377\376\374\360\0\0\0\360\370\374\376\376\37\37\17\17\17\17\17\7\7\7\307\377\377\377\377" "\377\0\0\0\3\7\17\37\37\77>>><>>\36\37\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\370\370\34\34\34" "\34\370\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\203\203\207\207\207\207\203\203\200\0\0\0\0" "\0\0\0\0\0\0\4\16\37\37\17\17\207\207\207\207\207\207\217\217\377\377\376\374\360\0\0\0\360\370\374\376" "\376\37\37\17\17\17\17\17\7\7\7\307\377\377\377\377\377\0\0\0\3\7\17\37\37\77>>><>>" "\36\37\37\17\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300" "\300\300\300\300\300\300\200\200\0\200\300\300\300\300\300\300\300\200\200\0\3\7\207\207\307\303\303\303\303\307\377\377" "\377\377\317\307\303\303\303\303\307\377\377\377\376\377\377\377\217\7\3\3\3\3\377\377\377\377\301\201\1\1\1\1" "\1\1\201\201\3\7\17\17\37\36\36\36\36\17\17\7\3\7\17\17\37\37\37\37\37\17\17\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200" "\0\0\0\0\0\300\370\374\376\377\77\37\17\7\3\3\3\3\3\3\7\17\37\77\37\16\4\0\0\37\177\377" "\377\377\360\300\200\0\0\0\0\0\0\0\0\200\300\300\200\0\0\0\0\0\0\1\3\7\7\17\17\37\37\237" "\377\376\237\237\237\17\17\7\7\3\0\0\0\0\0\0\0\0\0\34\34\34\70;;;;\77\37\17\0\0" "\0\0\0\0\0\0\0\0\0\0\0\20x\374\374\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\200\300\300\300\301\307\317\317\307\306\200\200\0\0\0\0\0\0\340\370\374\377\377\337\317\307\303\303\303\303" "\303\303\307\307\317\377\377\376\374\360\0\0\37\377\377\377\377\363\303\203\3\3\3\3\3\3\3\3\203\203\303\203" "\3\3\0\0\0\0\1\3\7\7\17\17\37\37\37\37\36\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360" "\374\374\374x\60\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\302\307\317\317\307\303\300\300\200\200\0\0" "\0\0\0\0\340\370\374\377\377\337\317\307\303\303\303\303\303\303\307\307\317\377\377\376\374\360\0\0\37\377\377\377" "\377\363\303\203\3\3\3\3\3\3\3\3\203\203\303\203\3\3\0\0\0\0\1\3\7\7\17\17\37\37\37\37" "\36\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\16\37\237\217\207\201\201\203\217\237\277\37\16\0\0\0\0\0\0\300\360\370\376\376\277\237\217\207\207\207\207" "\207\207\217\217\237\377\376\374\370\340\0\0\77\377\377\377\377\347\207\7\7\7\7\7\7\7\7\7\7\7\207\7" "\7\7\0\0\0\1\3\7\17\17\37\37>>>><>>>\37\37\17\17\6\2\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\300\340\360\360\360\340\300\0\0\0\0\0\0\0\1\3\7\7\207\203\201\200\200\200\201\203\207\7\7\3\1" "\0\0\0\0\300\360\370\376\376\377\237\217\217\207\207\207\207\207\207\217\237\377\376\374\370\340\0\0\77\377\377\377" "\377\367\207\7\7\7\7\7\7\7\7\7\7\7\207\207\7\7\0\0\0\1\3\7\17\17\37\37>>>>" "<>>>\36\37\17\17\7\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\60x\374\374\374\360\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\300\303\307\317\317\307\302\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\36\36\36\36\36\36\37\37\37\37\37\36\36\36\36\36\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360" "\370\374\374x\20\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\302\307\317\317\307\303\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\36\36\36\36\36\36\37\37\37" "\37\37\36\36\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\340\360\370\370\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\200" "\214\236\277\237\217\203\201\203\207\217\77\37\16\10\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0<<<<<<\77\77\77\77\77<<<<<\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\300\360\360\360\340\300\0\0\0\0\0\0\0\0\201\203\207\207\207\203\201\200\200\200\203\7\7\7\7\1\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77" "\77\77<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0 `p\360\360\360\340\300\300\200\200\200\300\300\300\300\0\0\0\0\0\0\0" "\0\14\36\236\236\217\217\217\217\217\277\377\377\377\373\343\301\1\0\0\200\360\370\374\376\177\37\17\17\7\7\7" "\7\7\17\17\37\177\377\377\377\376\360\0\77\377\377\377\377\340\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\0\3\7\17\17\37\37>>><>>>\37\37\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\370\370\370\370\370\360" "\340\340\300\300\340\340\360\340\0\0\0\0\0\200\200\201\203\201\0\0\0\200\201\201\203\203\203\203\203\3\1\0" "\0\0\0\0\0\377\377\377\377\377~\36\17\17\7\7\7\7\17\37\377\377\376\374\360\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\20\70\374\374\374\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\200\300\300\300\301\303\317\317\307\307\200\200\0\0\0\0\0\0\300\370\374\376\377\77\17\7\7\3\3\3" "\3\3\7\7\37\177\377\377\374\370\300\0\37\177\377\377\377\360\300\200\0\0\0\0\0\0\0\200\300\360\377\377" "\377\177\37\0\0\0\1\3\7\7\17\17\37\37\37\36\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340" "\360\374\370\360p \0\0\0\0\0\0\0\0\0\0\0\0\0\200\204\216\217\237\217\207\203\200\0\0\0\0" "\0\0\0\0\200\360\370\374\376\177\37\17\17\7\7\7\7\7\17\17\77\377\376\376\370\360\200\0\77\377\377\377" "\377\340\200\0\0\0\0\0\0\0\0\0\200\340\377\377\377\377\77\0\0\0\3\7\17\17\37\37>>><" ">>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\374\374\370\340\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\16\37\237\217\207\201\200\203\207\237\277\37\16\4\0\0\0\0\0\200\360\370\374\376\177\37\17\17\7\7\7" "\7\7\17\17\77\377\376\376\370\360\200\0\77\377\377\377\377\340\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\0\3\7\17\17\37\37>>><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\340\360\360\370\370xx\370\370" "\360\340\340\300\300\340\360\360`\0\0\0\0\0\0\0\1\3\0\200\200\200\200\201\203\203\203\203\3\3\1\0" "\0\0\0\0\200\360\370\374\376\177\37\17\17\7\7\7\7\7\17\17\77\377\376\376\370\360\200\0\77\377\377\377" "\377\340\200\0\0\0\0\0\0\0\0\0\200\340\377\377\377\377\77\0\0\0\3\7\17\17\37\37>>><" ">>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\0\1" "\3\7\7\207\203\201\200\200\200\201\203\207\7\7\3\1\0\0\0\0\200\360\370\374\376\177\37\17\17\7\7\7" "\7\7\17\17\77\377\376\376\370\360\200\0\77\377\377\377\377\340\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\0\3\7\17\17\37\37>>><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\360\360\360\340\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\361\363\363\363\363\361\360\360\360\360\360\360\360\0\0\0\0\0\0\0" "\0\0\0\0\360\370\370\370\370\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\200\200\200\200\200\200\200\200\340\360\360\340`\0\0\0\200\360\370\374\376\377\77\17\17\7\7\307" "\367\377\377\177\37\177\377\377\370\360\200\0\77\377\377\377\377\300\200\340\370\376\177\37\17\3\0\0\200\340\377\377" "\377\377\77\0\0@\343\377\377\377\77\37\77\77><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20x\374\374\374" "\360\300\200\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\3\7\17\17\7\2\300\300\300\300" "\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\177\377\377" "\377\377\300\200\0\0\0\0\0\0\200\340\377\377\377\377\377\0\0\0\0\0\1\7\7\17\17\37\37\37\36\37" "\37\17\17\7\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\374\374x\20\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\2\7\17\17\7\1\0\0\300\300\300\300\300\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\177\377\377\377\377\300\200\0\0\0\0\0\0\200\340\377\377\377\377" "\377\0\0\0\0\0\1\7\7\17\17\37\37\37\36\37\37\17\17\7\37\37\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374" "\370\360\300\200\0\0\0\0\0\0\0\0\0\200\200\200\200\214\37\37\17\7\1\1\3\17\37\37\237\214\200\200" "\200\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377" "\377\377\200\0\0\0\0\0\0\0\0\300\377\377\377\377\377\0\0\0\0\0\3\17\17\37\37\77>><>" ">\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\200\200\201" "\203\207\7\7\3\1\0\0\0\1\3\7\207\207\203\201\200\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\300\377\377\377\377" "\377\0\0\0\0\0\3\17\17\37\37\77>><>>\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360" "\374\374\374x\60\0\0\0\0\0\0\0\300\300\300\300\300\300\0\0\2\7\17\17\7\3\0\0\0\200\300\300" "\300\300@\0\0\3\17\177\377\377\374\360\200\0\0\0\0\0\0\300\370\377\377\177\37\3\0\0\0\0\0\0" "\1\7\37\377\377\376\360\300\300\370\377\377\177\17\3\0\0\0\0\0\0\200\0\0\0\0\0\0\203\377\377\377" "\377\77\17\1\0\0\0\0\0\0\0\0\37\37>><>>\77\37\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377\377>\17\17\7\7\7" "\7\7\17\17\37\377\377\376\374\360\300\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\377\377\377\377\377\17\37\36\36><>>>\77\37\37\17\7\3\1\0\0\0\177\177\177" "\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0" "\0\300\340\360\360\360\340\300\0\0\0\0\200\200\200\201\203\207\7\7\3\1\0\0\0\1\3\7\7\7\203\201" "\200\200\200\0\0\7\37\177\377\377\374\360\200\0\0\0\0\0\0\0\340\374\377\377\177\37\3\0\0\0\0\0" "\3\17\77\377\377\376\360\300\0\340\374\377\377\77\17\3\0\0\0\0\0\0\0\0\0\0\0\1\7\337\377\377" "\377\377\77\7\1\0\0\0\0\0\0\0>\77~||||~\77\77\37\17\7\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--44-440-72-72-P-215-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb33_3x6_r[13684] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_r") = " ~\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360" "\340\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\17\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\217\217\217\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\37\77\77\77" "\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\360\360\340\0\0\0\0\340\360\360\360\340\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\377\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\0\0" "\0\0\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0" "\0\0\0\300\300\300\300\300\0\0\0\0\200\200\200\200\200\200\376\377\377\377\217\200\200\200\200\377\377\377\377\203" "\200\200\200\200\7\7\7\7\7\377\377\377\377\17\3\3\3\203\377\377\377\377\7\7\7\7\7\0<<<<" "\374\377\377\377\77<<<<\377\377\377\377\77<<<<\14\0\0\0\0x\177\177\177\37\0\0\0\0" "\177\177\177\177\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\360\360\360\360\200\200\0\0\0\0\0\0\0\0\0\0\360\370" "\374\376\377\37\7\7\377\377\377\377\7\17\17\37\177>\34\10\0\0\0\0\1\7\17\37\37\77>|\377\377" "\377\377\360\360\340\340\340\300\200\0\0\0\0\0\300\340\340\300\200\0\0\0\377\377\377\377\1\1\203\307\377\377" "\377\377~\0\0\1\3\7\7\17\17\17\37\36\377\377\377\377\36\17\17\17\7\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\300\300\300\300@\0\0\377\377\377\307\307\307\307\377\377\377\377|\200\340\360\374\377\77\37\7" "\1\0\0\0\1\3\3\7\7\7\7\7\303\363\371\376\177\37\7\3\0\0\0\0\0\0\0\0\0\0\0\200" "\340\370\374\377\77\17\3\361\374\376\376\37\37\37\37\376\376\374\360\0\60<>\77\37\7\1\0\0\0\0\3" "\17\37\37>>>>\37\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\374" "\376\377\377\377\17\7\3\7\17\377\377\377\376\374\0\0\0\0\0\0\0\0\200\300\303\357\377\377\177\374\370\374" "\377\337\17\7\3\0\0\200\200\200\0\0\370\376\377\377\377\207\1\0\0\0\1\7\17\277\377\376\374\370\374\377" "\377\77\17\6\1\7\17\37\37\37>>>>>>\37\37\17\17\7\7\17\77\77\37\34\10\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\360" "\360\360\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370xx`\0\0\0\0\0\0\0" "\0\0\200\340\370\374\377\377\77\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\374\377\377\377\377\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\377\377\377\377\370\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\177\377\376\370\360\300\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\3\7\17\17\37\77\36\14\0\0\0\0\0\300\360\360\340\340\300\200\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\7\17\37\77\377\376\374\360\340\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\377\377\377\376\360\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\377\377\377\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376" "\377\177\37\17\1\0\0\0\0\0\0\0\0\0<|>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\70>><|xxp\360\377\377\377" "\377\361pxx|<<>\70 \0\0\0@\340\360\370\376\177\37\17\7\3\17\37\177\376\374\370\340\300" "\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0xxxxxxxxx\377\377\377\377\377xxxxxxxx\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0 \60x~\77\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\360\360\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\77\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\200\340\374\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0`x\376\377\177\37\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\300\360\374" "\376\377\177\37\17\7\7\7\7\17\337\377\377\376\374\360\300\0\0\0\376\377\377\377\377\3\0\0\200\340\360\370" "~\37\17\7\1\377\377\377\377\376\0\0\7\77\377\377\377\370\374\237\17\7\1\0\0\0\0\300\370\377\377\377" "\177\7\0\0\0\0\0\3\7\17\37\37\77>>>>>\37\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\34\34\36\36\17\17\17\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\10\34" ">\177\37\17\7\7\7\3\7\7\7\17\77\377\377\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\340\370\374\377\177\77\17\3\0\0\0\0\0\0\200\340\360\370\374\376\77\37\17\7\7\3\1\0\0\0" "\0\0\0\0\0\0<\77\77\77\77\77=<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\6\17\37\17\7\7\7\7\7\7\7\7\37\377\377\376\374\370" "\0\0\0\0\0\0\0\0\0\0xx||||\374\376\377\377\377\347\303\201\0\0\0\0\0\0\0\300" "\300\0\0\0\0\0\0\0\0\0\1\303\377\377\377\377\376\0\0\0\0\6\17\17\37\37\36>>>>>" ">>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\300\340\370\374\177\377\377\377\377\377\0\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0" "\0\377\377\377\377\377\0\0\0\0\0\0<\77\77\77\77=<<<<<<<\377\377\377\377\377<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\60\177\177\377\77\77\36\37\37\37\37\37\37>\376\374\374\370\340\200\0\0\0\0\200\300" "\300\300\200\0\0\0\0\0\0\0\0\0\300\377\377\377\377\177\0\0\0\1\3\7\17\37\37\37>>><" ">>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370" "\374\376\377\77\17\7\7\7\3\7\7\7\17\17\7\2\2\0\0\0\0\377\377\377\377\377\374>\36\37\37\17" "\37\37\77\376\376\374\370\340\200\0\0\0\0\37\377\377\377\377\360\200\0\0\0\0\0\0\0\300\377\377\377\377" "\177\0\0\0\0\0\0\3\7\17\37\37\77>><>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\303\363\377\377\377\77\17" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\377\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\77\77\77\77\17\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\370\374" "\376\377\377\17\7\7\7\3\7\7\17\37\377\377\377\374\370\0\0\0\0\0\1\203\317\317\377\377\376|xx" "x\370\374\377\377\317\307\203\0\0\0\0\0\370\376\377\377\377\307\1\0\0\0\0\0\0\1\1\207\377\377\377" "\376\370\0\0\0\0\3\7\17\37\37\37>>><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\7\7\7\7\7\7\37\177\377\376\374\360" "\200\0\0\0\0\17\77\177\377\377\370\340\340\300\300\300\300\340\340\360\377\377\377\377\377\0\0\0\0\0\0\0" "\200\201\3\3\3\3\3\3\3\3\201\361\377\377\377\177\17\0\0\0\0\4\16\17\37\37>>><>>" ">\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>\177\177\177" ">\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376" "\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \60|\77\77\37\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\200\300\300\340\340\360\360\370\370||>>\37\37\0\70|\374\376\376\377\357\357\307\207\207\3" "\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\17\37\37>>||\370\370\360" "\360\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0\0<<<<" "<<<<<<<<<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37>>" "||\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3" "\203\207\307\357\357\377\376\376\374|\70\0\340\340\360\360\370\370||>>\37\37\17\17\7\3\3\1\1\0" "\0\0\0\0\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\360\360\360\360" "\360\360\360\340\340\300\200\0\0\0\0\0\0\6\7\17\37\17\3\3\1\1\1\1\1\1\3\207\377\377\377\377" "\374\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\376\177\77\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\7\207\207\207\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\37\77\77" "\77\37\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374\376" "\177\77\17\17\7\7\7\3\7\207\207\207\217\277\376\374\370\340\0\0\377\377\377\3\0\0\0\360\374\376\376\37" "\17\17\17\17\17\207\377\377\377\377\0\0\77\377\377\374\360\300\200\1\7\17\37\37\36\36\36\36\37\17\37\37" "\37\37\0\0\0\0\1\3\7\17\17\37\37>>>><>>>\36\37\17\14\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\376\370\300\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\374\377\377\77\7\0\3\37\177\377\377\370\340\0\0\0\0\0\0\0\340\374\377" "\377\377\37\37\36\36\36\36\36\36\37\77\377\377\377\374\340\200\0\0\77\77\77\37\3\0\0\0\0\0\0\0" "\0\0\0\0\0\7\37\77\77\77< \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377\377" "\377\3\3\3\3\3\7\7\7\7\17\37\377\377\376\374\370\0\0\0\377\377\377\377\377xxxxx||" "|\374\376\377\377\357\317\207\1\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\1\203\377\377\377" "\377\374\0\0\77\77\77\77\77<<<<<<>>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300" "\300\300\300\300\200\200\0\0\0\0\0\0\0\300\360\374\376\377\177\37\17\7\7\7\3\7\7\7\17\37\177\177" "~<\60\0\376\377\377\377\377\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\77\377\377" "\377\374\340\200\0\0\0\0\0\0\0\0\0\0\300\300\300\200\0\0\0\0\0\3\7\17\17\37\37\77>>" ">>>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377" "\377\3\3\3\3\7\7\7\7\17\37\177\377\376\374\370\340\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\1\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377" "\77\7\0\0\77\77\77\77\77<<<>>>>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\300\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\377\377\377\377\377xxxxxxxxxxxxx\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77<<<<<<" "<<<<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\377\377" "\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\0\0\0\0\377\377\377\377\377xxxxx" "xxxxxxx\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300" "\300\300\300\300\200\200\200\0\0\0\0\0\0\300\360\374\376\377\77\37\17\7\7\7\7\7\7\7\17\17\77\177" ">\34\30\0\376\377\377\377\377\1\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\0\7\77\377\377" "\377\374\340\200\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\0\0\0\0\3\7\17\17\37\37>>>" ">>>>>\37\37\37\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\377\377\377\377\377xxxxxx" "xxxxx\377\377\377\377\377\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\0\0\0\0\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77\77" "\77<<<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\0\0" "\0\0\0\3\3\3\3\3\3\377\377\377\377\377\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\300\200\0\0\0\0\0\0\0\200\377\377\377\377\377\0\0" "\0\0\0\0\0\6\17\17\37\37>>>>>>\37\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0" "\0\0\0\0\200\300\300\300\300\300@\0\377\377\377\377\377\0\0\0\0\200\300\360\370\374\376\77\37\17\7\3" "\1\0\0\0\377\377\377\377\377\370|~\377\377\377\347\203\1\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\1\3\17\37\177\377\376\370\360\340\200\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\3\7\37\77\77\77<\70\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77<<<<<<<<<<<<<<<<\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\300\300\300\0\377\377\377\377\377\376\370\340\200\0\0\0\0\0\200\340\370\376\377\377" "\377\377\377\0\377\377\377\377\377\1\7\37\177\376\370\340\370\376\77\37\7\1\377\377\377\377\377\0\377\377\377\377" "\377\0\0\0\0\1\7\7\3\0\0\0\0\0\377\377\377\377\377\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\377\377\377\377" "\377\177\376\370\340\300\0\0\0\0\0\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\1\7\37\177\377\374" "\360\300\200\0\0\377\377\377\377\377\0\0\377\377\377\377\377\0\0\0\0\0\1\3\17\77\377\376\370\377\377\377" "\377\377\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\3\17\37\77\77\77\77\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\200\0\0\0\0\0\0\0\340\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\77\377\377\377" "\374\340\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\0\3\7\17\17\37\37>>><" ">>\77\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\3\7\7\7\17\77\377\377\376\374\360\0\0\377\377\377\377\377\360\360\360\360\360\360" "\360\360\360\370\370\376\177\177\77\17\3\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\200\0\0\0\0\0\0\0\300\360\374\376\377\77\37\17\7\7\7\7\7\7\17\37\77\377\376\374" "\370\340\0\0\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377\377\0\177\377\377\377" "\374\300\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\177\17\0\0\1\3\7\17\37\77\77>\374\374\374" "\374>>\37\37\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\37\36\36\36\36\36\36" "\36\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\377\377\377" "\377\377\3\3\3\3\3\3\7\7\7\17\37\377\377\376\374\360\0\0\0\377\377\377\377\377\360\360\360\360\360\360" "\360\360\360\370\374\177\77\77\17\3\0\0\0\377\377\377\377\377\0\0\0\0\0\1\7\37\177\377\376\370\340\200" "\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\1\7\37\77\77><\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300" "\300\300\300\200\200\0\0\0\0\0\0\0\0\360\374\376\377\377\37\17\7\7\7\3\7\7\7\17\37\77\77\36" "\4\0\0\0\0\1\7\17\37\37\77>||x\370\360\360\360\340\340\300\300\200\0\0\0\0\0\200\340\300" "\200\0\0\0\0\0\0\0\0\1\1\3\307\377\377\377\377\374\0\0\3\7\17\17\37\37\36>>><>" ">>>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\3\3\3\3" "\3\3\3\3\377\377\377\377\377\3\3\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300@\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\177\377\377\377" "\377\300\0\0\0\0\0\0\0\0\0\200\300\377\377\377\377\177\0\0\0\1\7\17\17\37\37\77>>>>" ">>\77\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300@\7\77\377\377" "\377\370\300\0\0\0\0\0\0\0\0\0\340\374\377\377\177\17\3\0\0\0\1\7\77\377\377\376\360\200\0\0" "\0\200\360\377\377\377\37\3\0\0\0\0\0\0\0\0\0\1\17\177\377\377\374\340\374\377\377\77\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\377\377\377\377\300\0\0\0\0\340\376\377\377\370\200\0\0\0\200\377" "\377\377\377\3\3\377\377\377\377\360\0\360\377\377\77\7\177\377\377\374\300\200\377\377\377\77\0\0\0\0\77\377" "\377\377\377\377\77\3\0\0\0\7\177\377\377\377\377\377\17\0\0\0\0\0\0\17\77\77\77\3\0\0\0\0" "\0\0\0\7\77\77\77\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\1\7\37" "\177\377\376\370\360\300\0\0\200\340\370\376\377\177\37\7\3\0\0\0\0\0\0\0\0\1\3\217\377\377\377\376" "\377\377\337\7\1\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\177\37\7\7\17\77\377\377\374\360\340\200" "\0\0\0\0\60<\77\77\77\37\7\1\0\0\0\0\0\0\0\3\17\37\77\77>\70\60\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\0\1\7\37\177\377\377\374\360\300\0\0\0\0\0\300\360\374\377\377\77" "\17\3\0\0\0\0\0\0\1\7\37\177\377\377\374\360\370\376\377\177\17\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0\0\3\3\3" "\3\3\3\3\3\3\3\3\3\303\343\373\377\377\177\37\17\3\0\0\0\0\0\0\0\0\0\200\300\360\370\376" "\377\177\37\17\3\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\177\37\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0<>\77\77\77\77\77<<<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\200\200\200" "\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0`\340\360\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7" "\37\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376" "\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\376\360\300\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377|p\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360" "\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200" "\200\200\377\377\377\377\377\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\200\340\360\374\376\77\37\177\376\374\360\300\0\0\0\0\0\0\0\0\0\10\14\37\37\37\7\3\0\0\0" "\0\1\7\37\37\37\16\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\200\200\200\200\200\200\200\200\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\37\77\377\377\376\370\360\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77" "\177\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0\2\7\17\217\207\207\303\303\303\303\303\303\307\307\377\377\377\376\370\0\0\0\370\374\376\377" "\377\217\17\7\7\7\7\7\3\203\203\343\377\377\377\377\377\0\0\0\1\3\7\17\17\37\37\37\37\36\37\37" "\17\17\17\7\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377\377>\17\17\7\7\7" "\7\7\17\17\37\377\377\376\374\360\300\0\0\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\200\340\377\377" "\377\377\77\0\0\77\77\77\77\7\17\37\36>><>>>\77\37\37\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200" "\0\0\0\0\0\300\370\374\376\377\77\37\17\7\3\3\3\3\3\3\7\7\17\77\37\16\4\0\0\37\177\377" "\377\377\360\300\200\200\0\0\0\0\0\0\0\200\200\300\300\0\0\0\0\0\0\1\3\7\7\17\17\17\37\37" "\37\36\37\37\37\17\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0" "\0\0\200\200\200\200\200\200\200\200\0\0\377\377\377\377\377\0\0\0\300\370\374\376\377\177\37\17\7\7\7\7" "\7\17\37>\377\377\377\377\377\0\0\0\77\377\377\377\377\340\200\0\0\0\0\0\0\0\0\300\377\377\377\377" "\377\0\0\0\0\1\3\17\17\37\37\77>><>>\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\340\370\374\377\377\337\317\307\303\303\303\303\303\303\307\307\317\377\377\376\374\360\0\0\37\377\377\377" "\377\363\303\203\3\3\3\3\3\3\3\3\203\203\303\203\3\3\0\0\0\0\1\3\7\7\17\17\37\37\37\37" "\36\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\360\360\360\360\360\360\340\300\300\0\0\0\0\0" "\0\0\376\377\377\377\377\3\1\0\0\0\0\0\1\3\7\7\1\0\0\17\17\17\17\17\377\377\377\377\377\17" "\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\300\300\300" "\300\300\300\300\0\370\376\377\377\377\207\3\1\1\1\1\1\3\207\377\377\377\377\363\3\3\3\3\0\1\303\347" "\377\377\77\77>><>>\77\37\37\17\7\3\1\0\0\0\0\300\360\363\377\377\77\37\17\17\17\17\17" "\17\17\17\37\37\37\376\376\374\374\360\0\3\7\17\37\37\37>>>><<>>>>\36\37\37\17" "\7\3\0\0\0\360\360\360\360\360\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\377\377\377\377\377~\36\17\17\7\7" "\7\7\17\37\377\377\376\374\360\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360" "\360\340\300\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\201\203\207\207\207\203\1\0\0\0\0\0" "\0\0\0\0\0\0\0\7\7\7\7\7\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0<<<<<<\77\77\77" "\77\77<<<<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\340\300\0\0\0\0\0\0\0\0\0" "\200\200\200\200\200\200\200\200\201\203\207\207\207\203\1\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7" "\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0" "\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\14\36\37\77" ">|||x||>\77\77\37\17\7\1\0\0\0\0\0\0\0\360\360\360\360\360\20\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\377\377\377\377\377\0\200\300\300\340\360\370|>\37\37\17\7\3\1\0\0\0\0\377\377\377" "\377\377\37\17\7\17\37\177\376\374\370\360\340\300\200\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0" "\0\1\3\7\37\77\77><\70\60 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0<<<<<<<\77\77\77\77\77<<<<<<<\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\200\300\300\300\300\300\300\200\0\200\300\300\300\300\300" "\300\200\0\0\377\377\377\377\377\17\3\3\3\377\377\377\377\377\17\3\3\3\377\377\377\377\377\0\377\377\377\377" "\377\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377\377\377\0\37\37\37\37\37\0\0\0\0\37\37\37" "\37\37\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\0\200\300\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\377\377\377\377\377\77\17\7\7\3\3" "\3\3\7\17\377\377\377\376\370\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\300\370\374\376\377\77\17\7\7\3\3\3\3\3\7\7\37\177\377\377\374\370\300\0\37\177\377\377" "\377\360\300\200\0\0\0\0\0\0\0\200\300\360\377\377\377\177\37\0\0\0\1\3\7\7\17\17\37\37\37\36" "\37\37\37\17\17\7\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\0\200\200\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\377\377\377\377\377\37\7\7\3\3\3" "\3\3\7\7\17\177\377\377\376\370\340\0\0\377\377\377\377\377\300\200\0\0\0\0\0\0\0\200\300\360\377\377" "\377\377\37\0\0\377\377\377\377\377\7\17\17\17\37\36\37\37\37\37\17\17\7\3\1\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\200\0\300\300\300" "\300\300\0\0\340\370\376\377\377\77\17\7\7\3\3\3\3\3\7\17\37\377\377\377\377\377\0\0\37\377\377\377" "\377\360\300\200\0\0\0\0\0\0\0\200\340\377\377\377\377\377\0\0\0\0\1\3\7\17\17\37\37\37\37\36" "\37\17\17\7\7\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300" "\300\300\300\300\0\0\200\300\300\300\300\300\300\300\300\300\200\200\0\0\0\0\0\377\377\377\377\377\177\37\17\7" "\7\3\3\3\3\3\7\17\37\7\1\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\37\37\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\300\300\300\200\200\0\0" "\0\0\0\0\0\0<\177\377\377\377\347\307\303\203\203\203\203\7\7\17\77\37\17\2\0\0\0\0\200\340\340" "\300\201\1\3\3\3\7\7\7\7\17\237\377\376\374\374\360\0\0\0\1\3\7\7\17\17\17\37\37\37\36\37" "\37\37\37\17\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\200\376\376\377\377\377\200\200\200\200\200\200\200\0\0\0\0\0\0\7\7\7\7\7\377\377\377\377\377\7" "\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\200" "\0\0\0\0\0\0\0\0\0\0\3\17\37\37\77\77>><>>\36\37\17\16\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\377\377\377" "\377\377\200\0\0\0\0\0\0\0\0\300\377\377\377\377\377\0\0\0\0\0\3\17\17\37\37\77>><>" ">\36\37\17\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\1\17\77\377\377\376\370\300\0\0\0\0" "\0\0\0\200\360\376\377\377\37\7\0\0\0\0\0\0\7\37\377\377\377\370\340\0\300\370\376\377\77\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\77\77\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\0\377\377\377\360\0\0\0\0\340\376\376\376\376\360\200\0\0\0\377\377\377\377\17\0\7\177\377\377" "\377\340\340\376\377\77\7\7\77\377\377\370\300\374\377\377\377\7\0\0\0\0\17\77\77\77\77\37\3\0\0\0" "\0\3\37\77\77\77\77\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\1\7\17\37\177\376\374\370\340\300\200" "\340\360\374\376\177\37\17\3\1\0\0\0\0\0\0\0\200\300\340\371\377\377\77\77\377\377\371\360\300\200\0\0" "\0\0\0\0 \70<>\77\77\17\7\1\0\0\0\0\1\3\17\37\77\77>\70\60 \0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\200\200\200\0\1\7\37\377\377\377\370\340\0\0\0\0\0\0\0\200\360\377\377\377\77\7\0\0\0\0\0\0" "\3\17\77\377\377\374\340\200\200\360\376\377\377\37\7\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377" "\377\177\37\3\0\0\0\0\0\0\0\0>\77||x||~\77\77\37\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200" "\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\7\7\7\7\7\7\7\7\7\207\307" "\367\377\377\177\77\37\17\7\0\0\0\0\0\0\0\200\300\360\370\374\376\77\37\17\7\3\1\0\0\0\0\0" "\0\0\0\0<>\77\77\77\77\77=<<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300" "\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\370\376\377\377\377\17\7\3\3\3\3\3\3\3" "\0\0\0\0\200\200\200\200\300\340\377\377\377\177\77\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\17" "\17\37\377\377\375\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\77\77\177|||xxxxx" "\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\7\17\377\377\377\376\370\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\177\377\377\377\340\300\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\370\374\377\377\37\17\17\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\377" "\377\377\377\377\0\0\0\0\0\0\0\0\0\0xxxxx|||\177\77\77\37\17\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200" "\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\200\300\200\200\0\6\7\17\17\7\7\7\3\7\7\17\17" "\37\37\37\37\37\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--44-440-72-72-P-215-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb33_3x6_n[3892] U8X8_FONT_SECTION("u8x8_font_inb33_3x6_n") = " :\3\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\0\0\0\0\0\0\0\0\0\0\70>><|xxp\360\377\377\377" "\377\361pxx|<<>\70 \0\0\0@\340\360\370\376\177\37\17\7\3\17\37\177\376\374\370\340\300" "\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0" "\0\0\0\0xxxxxxxxx\377\377\377\377\377xxxxxxxx\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0 \60x~\77\37\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\360\360\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\77\17\3" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\177\37\3\0\0\0\0\0\0\0\0\0\0\0\0" "\200\340\374\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0`x\376\377\177\37\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\300\360\374" "\376\377\177\37\17\7\7\7\7\17\337\377\377\376\374\360\300\0\0\0\376\377\377\377\377\3\0\0\200\340\360\370" "~\37\17\7\1\377\377\377\377\376\0\0\7\77\377\377\377\370\374\237\17\7\1\0\0\0\0\300\370\377\377\377" "\177\7\0\0\0\0\0\3\7\17\37\37\77>>>>>\37\37\17\7\3\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300" "\300\300\0\0\0\0\0\0\0\0\0\0\0\0\34\34\36\36\17\17\17\377\377\377\377\377\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77" "\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\10\34" ">\177\37\17\7\7\7\3\7\7\7\17\77\377\377\376\374\360\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\200\300\340\370\374\377\177\77\17\3\0\0\0\0\0\0\200\340\360\370\374\376\77\37\17\7\7\3\1\0\0\0" "\0\0\0\0\0\0<\77\77\77\77\77=<<<<<<<<<<<>>\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\0\6\17\37\17\7\7\7\7\7\7\7\7\37\377\377\376\374\370" "\0\0\0\0\0\0\0\0\0\0xx||||\374\376\377\377\377\347\303\201\0\0\0\0\0\0\0\300" "\300\0\0\0\0\0\0\0\0\0\1\303\377\377\377\377\376\0\0\0\0\6\17\17\37\37\36>>>>>" ">>\37\37\17\17\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\200\300\340\370\374\177\377\377\377\377\377\0\0\0\0\0\0\0\0\200\340\360\374\376\77\37\7\3\0" "\0\377\377\377\377\377\0\0\0\0\0\0<\77\77\77\77=<<<<<<<\377\377\377\377\377<<" "<<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\0\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\3" "\3\0\0\0\0\0\60\177\177\377\77\77\36\37\37\37\37\37\37>\376\374\374\370\340\200\0\0\0\0\200\300" "\300\300\200\0\0\0\0\0\0\0\0\0\300\377\377\377\377\177\0\0\0\1\3\7\17\37\37\37>>><" ">>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\340\370" "\374\376\377\77\17\7\7\7\3\7\7\7\17\17\7\2\2\0\0\0\0\377\377\377\377\377\374>\36\37\37\17" "\37\37\77\376\376\374\370\340\200\0\0\0\0\37\377\377\377\377\360\200\0\0\0\0\0\0\0\300\377\377\377\377" "\177\0\0\0\0\0\0\3\7\17\37\37\77>><>>\37\37\17\17\7\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\300\300\300\300\300\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\303\363\377\377\377\77\17" "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0" "\0\0\0\300\370\377\377\377\77\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\70\77\77\77\77\17\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\370\374" "\376\377\377\17\7\7\7\3\7\7\17\37\377\377\377\374\370\0\0\0\0\0\1\203\317\317\377\377\376|xx" "x\370\374\377\377\317\307\203\0\0\0\0\0\370\376\377\377\377\307\1\0\0\0\0\0\0\1\1\207\377\377\377" "\376\370\0\0\0\0\3\7\17\37\37\37>>><>>>\37\37\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300" "\300\300\200\200\0\0\0\0\0\0\0\0\0\340\370\376\377\377\77\17\7\7\7\7\7\7\37\177\377\376\374\360" "\200\0\0\0\0\17\77\177\377\377\370\340\340\300\300\300\300\340\340\360\377\377\377\377\377\0\0\0\0\0\0\0" "\200\201\3\3\3\3\3\3\3\3\201\361\377\377\377\177\17\0\0\0\0\4\16\17\37\37>>><>>" ">\37\37\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34>\177\177\177" ">\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\70|\376\376\376|\70\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--62-620-72-72-P-301-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 191/658 BBX Build Mode: 3 */ #ifdef U8G2_USE_LARGE_FONTS const uint8_t u8x8_font_inb46_4x8_f[57348] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_f") = " \377\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\370\370\370\360\360\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\77\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\370\360\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\340\0\0\0\0\0\0\340\360\370\370\370\360\340\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\77\77\0\0\0\0\0\0\77\77\77\77\77\77\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\0\0\0\0\0\0\300\300\300\300\300\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\1\0\0\0\0\0\376\377\377\377\377\377\7" "\0\0\0\0|||||||\374\377\377\377\377\377\377=<<<<<\376\377\377\377\377\377\177|" "||||\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\7\0\0" "\0\0\0\0||||||\376\377\377\377\377\377~~~~~~\376\377\377\377\377\377\77>>>" ">>>\36\0\0\0\0\0\376\377\377\377\377\377\3\0\0\0\0\0\374\377\377\377\377\377\17\0\0\0\0" "\0\0\0\0\0\0\0\0\16\17\17\17\17\17\3\0\0\0\0\0\14\17\17\17\17\17\17\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\370\370\370\370\370\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\360\370\374\376\376\377\77\37\37\377\377\377\377\377\377\77\77\77\177\376\376\374\374\370" "p \0\0\0\0\37\177\377\377\377\377\377\370\340\300\300\377\377\377\377\377\377\0\0\0\0\0\3\3\1\0" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\37\37\77\377\377\377\377\377\377\376\374\374\374\370\370\360\340\340" "\300\0\0\0\0\0\0\200\300\300\0\0\0\0\0\0\0\377\377\377\377\377\377\0\1\1\3\7\377\377\377\377" "\377\377\374\0\0\14\37\77\177\177\377\376\374\374\370\370\360\377\377\377\377\377\377\360\370\370\374\377\377\177\77\37" "\17\7\0\0\0\0\0\0\0\0\0\0\1\1\1\1\3\77\77\77\77\77\77\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300\300\300@\374\376\377\377\377\37\37\17\17\37\77\377\377\377\376\374\360\0\0\0\300\340\370\376\377\377\377\77" "\17\3\1\0\37\77\177\377\377\376\374\370\370\374\376\377\377\177\77\237\347\360\374\377\377\377\177\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\300\360\370\376\377\377\177\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\377\77\37\7\301\360\370\374\376\376\177\77\77\77\177\376" "\376\374\370\360\0\0\300\360\374\376\377\377\177\37\17\3\0\0\0\0\37\177\377\377\377\377\360\340\340\340\360\377" "\377\377\377\177\6\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\17\7\7\7" "\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\370\376\376\377\377\377\77\37\37\17\17\37\37\177\377\377\377\377\376\370\360\0\0\0" "\0\0\0\0\0\0\0\17\77\377\377\377\377\377\370\340\200\0\0\200\340\370\377\377\377\377\177\77\17\0\0\0" "\0\0\0\0\0\0\200\300\340\360\371\373\377\377\177\77\377\377\377\377\377\377\347\203\3\1\0\0\0\0\300\300" "\300\200\0\0\374\377\377\377\377\377\37\7\1\0\0\0\0\1\3\7\37\77\177\377\377\376\374\370\340\374\377\377" "\377\177\77\17\77\177\377\377\377\377\376\370\360\340\340\340\340\340\340\360\360\370\374\375\377\377\177\77\177\377\377\377" "\371\360\340\300\0\0\0\1\3\3\7\7\7\7\7\17\7\7\7\7\7\3\3\1\1\0\0\0\0\1\7\17" "\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\374\374\374\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\377\377\177\37\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\177\17\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\377\377\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377\377\377\377\370\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\177\377\377\377\374\370\360\340\300\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\37\77\77\177\77" "\16\6\0\0\0\0\0\340\374\370\370\360\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\3\3\7\17\17\37\77\377\377\377\376\374\370\360\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377\377\377\377\374\360\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\377\377\377\377\377\377\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\377\177\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\77\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370\376\377\377\377\177\77\37\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14~\376\177\177\77\77\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300@\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\340\300\300\200\200\0\0\0\0\37\377\377\377\377\377\377\0\0\0\0\0\200\200\300\300" "\340\300\0\0\16\17\17\17\37\37\37\37\77\77\276\376\374\377\377\377\377\377\374\376\276>\77\37\37\37\37\17" "\17\17\17\10\0\0\0\200\300\340\360\370\374\377\377\177\77\17\7\3\7\17\77\177\377\377\376\370\360\340\300\200" "\0\0\0\0\0\0\0\3\3\7\17\17\7\3\1\0\0\0\0\0\0\0\0\0\1\3\17\17\17\7\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77" "\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\277\377\377\377\377\377\377\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\60x|\376\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\370\370\360" "\360`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\374\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\14\17\37\37\77\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\376\377\377\177\77\77\37\37\77\77\177\376\376\374\370\360\340\200\0" "\0\0\0\0\0\360\376\377\377\377\377\377\37\7\1\0\0\0\0\0\0\200\300\340\371\377\377\177\377\377\377\376" "\360\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\300\340\370\374\376\177\77\17\7\3\1\0\377\377\377\377" "\377\377\0\0\17\377\377\377\377\377\377\370\360\374\376\177\77\17\7\3\0\0\0\0\0\0\0\360\377\377\377\377" "\377\17\0\0\0\0\7\37\77\177\377\377\377\377\374\360\340\340\300\300\300\300\340\340\370\374\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0p\370\370\374\374~~\177\177\77\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0`\360\370\374\376\377\377\77\77\37\37\37\17\17\17\37\37\77\77\177\377\377\376\376\374\360" "\340\200\0\0\0\0\0\0\0\1\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\377" "\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\376\377\377\177\77\37\17\7" "\1\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\300\360\374\376\377\377\377\377\357\347\343\341\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\360\360\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\20\70|\374\376\376\177\177\77\77\37\37\37\77\77\77\177\177\377\376\376\374\370\360\340" "\200\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0||||||~\376\376\377\377\377\377\377\347\303\201\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\17\377\377\377\377\377" "\376\360\0\0\0\0@\360\370\374\376\376\360\360\340\300\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377\177" "\37\7\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\377\377\77\37\7\3\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\200\340\360\374\376\377\377\77\37\7\1\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0|\177\177\177\177\177\177\177~~~~~~~~~~\377\377\377\377\377\377\377~~~" "~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\360\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37" "\37\0\0\0\0\0\0\0\377\377\377\377\377\377\377\300\300\340\340\340\340\340\340\340\340\300\300\200\200\0\0\0" "\0\0\0\0\0\0\0<\77\177\177\377\177\77\37\17\17\17\7\7\7\7\17\17\37\77\177\377\377\377\376\374" "\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\20\60x\374\376\376\377\374\360\360\340\340\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377" "\77\37\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\177\377\376\376|" "<\30\0\0\0\0\300\370\377\377\377\377\377\177\7\203\200\300\300\300\300\300\300\300\300\300\200\200\0\1\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\376\177\77\77\37\37\17\17\17\17\17\37\77\177\377\377\377\376\374" "\360\340\0\0\0\0\177\377\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\0\0\3\37\77\377\377\377\377\376\370\360\340\300\300\300\300\300\300\340\360\370\376\377\377\377\377" "\77\37\3\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\217\377\377\377\377\377\377\177\37" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\177\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\6\7\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\374\376\377\377\177\77\77\77\37\37\77\77\77\177\377\377\376\374\374\370\340" "\200\0\0\0\0\0\0\77\377\377\377\377\377\377\340\200\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\177" "\37\0\0\0\0\0\0\0\0\201\303\347\357\377\377\377\377~~||\374\376\377\377\377\377\357\307\303\201\0" "\0\0\0\0\0\340\370\376\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\1\3\7\37\377\377\377\377\376" "\374\360\0\0\0\17\77\177\377\377\377\377\376\370\360\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\177" "\77\17\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\377\377\177\77\77\37\37\37\77\77\177\377\377\376\374\370\360\340\300" "\0\0\0\0\0\0\374\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377\377\377\377" "\376\360\0\0\0\0\3\37\177\377\377\377\377\376\370\360\340\300\300\300\300\300\340\340\360\370\374\377\377\377\377\377" "\377\377\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\7\7\3\303\377\377\377\377\377" "\377\37\0\0\0\0\0\200\340\360\370\370\370\340\340\300\300\300\300\300\300\340\340\360\370\376\377\377\377\177\37\17" "\1\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\340\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77\177\177\177\177\77\77\17\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\370\370\370\370\360\360\340\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\377\377\377\377\377\377\177\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<>\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\360\360\370" "\370\374\374\376\0\0\0\200\200\300\300\340\340\360\360\370\370\374\374\376\376\177\177\77\77\37\37\17\17\7\7\3" "\3\1\1\0~\177\377\377\377\377\377\377\367\347\343\303\201\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\1\3\3\7\7\17\37\37\77\77\177\177\376\376\374\374\370\370\360\360\340\340\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\37\77\77" "\177\177\377\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\374\374\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\1\1\3\3\3\7\7\17\17\37\37\77\77\177\177\376\376\374\374\370\370\360\360\340\340\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\201\303\303\347\347\377\377\377\377\377" "\377\377\177~\0\0\200\200\300\300\340\340\360\360\370\370\374\376\376\377\177\177\77\37\37\17\17\7\7\3\1\1" "\0\0\0\0\377\377\177\77\77\37\37\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\360\360\360\360\360\360\360\360\340\340\300\300\200\0\0\0" "\0\0\0\0\0\30<~\377\377\377\177\77\37\17\7\7\7\3\3\3\7\7\17\37\77\377\377\377\377\376\370" "\340\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\377\377\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374\376\377\377\377\177\77\37\17\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\37\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\370\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\376\376\377\177\77\77\77\37\37\37\37\77\77\77\177\177\376\374\374\370" "\360\300\200\0\360\376\377\377\377\377\37\7\3\1\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\373\377\377" "\377\377\377\370\377\377\377\377\377\0\0\0\0\0\370\376\377\377\377\377\17\7\3\3\1\1\1\1\1\201\377\377" "\377\377\377\377\177\377\377\377\377\374\300\0\0\0\3\17\77\177\177\377\377\374\374\374\370\370\374\374\376\177\377\377" "\377\377\377\377\0\3\7\37\77\177\377\377\376\374\370\360\360\340\340\300\300\301\301\301\301\301\301\300\340\340\360\360" "\300\200\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7" "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\17\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\3\0\0\0\0\7\37\377\377\377\377\376\370\300\0\0" "\0\0\0\0\0\200\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\376\370" "\300\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377" "\377\377\370\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\376\374" "\360\300\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\200\200\300\340\360\377\377\377\377\377" "\177\37\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\177\177\177\377\377\377\377\363\341\340" "\200\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377\377" "\377\377\374\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\360\360\360\370\374\377\377\377\377\177" "\77\17\3\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\370\370\374\376\376\377\177\177\77\77\37\37\37\77\77\77\177\377\377\376\374\374" "\370\360\340\200\200\360\376\377\377\377\377\377\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17" "\17\7\7\3\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\17\77\177\377\377\377\377\374\370\360\340\340\300\300\300\300\300\300\300\340\360\360\370\376\376" "\376\374\70\30\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374\370\360" "\340\200\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\177\377\377\377" "\377\377\374\340\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\377\377\377" "\377\377\177\7\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\360\360\360\370\370\374\376\377\377\377\177\77\17" "\7\1\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\77\177\377\376\376\374\370" "\360\340\300\0\360\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\7" "\3\1\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\0\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\377\377\377" "\377\377\377\0\0\7\17\77\177\377\377\377\376\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\377\377\377" "\377\377\377\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\37\37\377\377\377\377\377\377\377\37\37\37\37" "\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0@\340\360\374\376\370\360\340\300\300\300\300\300\300\340\360\376\377\377\377\377\177\77\7\0\0\0\0" "\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300" "\300\300\300@\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\377\377\177\77\37\17" "\7\1\0\0\377\377\377\377\377\377\377\0\0\200\300\360\370\374\376\377\377\177\77\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377~\77\37\77\377\377\377\377\371\360\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\1\7\17\77\177\377\377\377\376\370\360\340\200\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\377\377\377\377\376\370" "\360\300\200\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300\300\377\377\377\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\37\177\377\377\376\370\340\0\0\0\0\300\360\374\377\377\177\37\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\1\7\37\177\377\377\374\374\377\377\177\37\7\1\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\1\7\7\7\7\1\0\0\0\0\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\377\377\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\300\377\377\377\377\377\377\377\377\376\370\340\300\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\7\37\77\377\377\377\374\360\340\200\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\3\17\77\177\377\377\376\370\340\300\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\1\7\37\177\377\377\377\374\360\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\377" "\377\377\377\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374" "\370\360\200\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\301\377\377\377\377" "\377\377\177\0\0\377\377\377\377\377\377\377\374\374\374\374\374\374\374\374\374\374\374\376\376\377\177\177\177\77\37\17" "\7\3\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\300\340\370\374\376\376\377\377\177\77\37\37\37\17\17\17\37\37\77\77\177\377\377\376\374\370" "\360\340\200\0\374\377\377\377\377\377\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\77\377\377" "\377\377\377\376\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\376\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\377\374\370\360\340\340\340\300\300\300\340\340\360\360\370\376\377\377\177\77" "\37\7\3\0\0\0\0\0\0\0\1\3\3\7\7\17\17\377\377\377\377\377\377\317\207\207\7\3\1\0\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\37\77\77\77\77\77\77\77\77\77" "\77\77\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374" "\370\340\200\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377" "\377\377\77\0\0\377\377\377\377\377\377\377\374\374\374\374\374\374\374\374\374\374\374\376\376\377\177\177\77\37\37\17" "\3\1\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\1\7\17\77\377\377\377\377\374\360\340\200\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376" "\370\340\200\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\77\177\377\376\376\374\374\370" "p \0\0\0\0\77\377\377\377\377\377\377\361\300\200\0\0\0\0\0\0\0\0\0\0\0\1\7\7\3\1" "\0\0\0\0\0\0\0\0\3\7\7\17\37\37\77\77\177\177\376\376\374\374\374\370\370\360\360\340\340\300\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\37\377\377\377\377" "\377\374\360\0\0p\374\376\377\376\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\77\7\0\0\0\0\1\3\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\200\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\3\37\177\377\377\377\377\377\370\360\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\377" "\77\37\3\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300\300\37\377\377\377\377\377\376\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377" "\377\377\77\7\0\0\3\37\377\377\377\377\377\374\340\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\177" "\17\1\0\0\0\0\0\0\0\7\77\377\377\377\377\377\370\300\0\0\0\0\200\360\377\377\377\377\177\17\1\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\377\376\360\340\374\377\377\377\377\37\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\377\377\377\77\7\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\300\300\300\300\377\377\377\377\377\340\0\0\0\0\0\0\0\300\374\376\376\376\360\200\0\0\0\0\0\0\300\377" "\377\377\377\377\177\377\377\377\377\377\360\0\0\0\0\300\374\377\377\377\377\377\377\377\370\200\0\0\0\300\377\377" "\377\377\377\17\0\37\377\377\377\377\377\374\0\340\376\377\377\377\37\3\7\77\377\377\377\377\370\300\340\377\377\377" "\377\377\3\0\0\0\7\377\377\377\377\377\377\377\377\377\37\1\0\0\0\0\3\77\377\377\377\377\377\377\377\377" "\77\0\0\0\0\0\0\1\177\377\377\377\377\377\37\1\0\0\0\0\0\0\0\0\3\77\377\377\377\377\377\17" "\0\0\0\0\0\0\0\0\0\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\0\0\3\17\77\177\377\377\377\376\370\340\200\0\0\0\0\0\0\0\200\340\370\376\377\377\377\177\37" "\7\3\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374\360\300\360\370\376\377\377\377\177\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\377\377\377\377\377\303\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\360\374\377\377\377\377\77\17\3\17\77\177\377\377\377\376\370\340\300\0\0" "\0\0\0\0\0\300\340\370\376\377\377\377\177\77\17\3\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374" "\370\340\200\0\7\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300\300\300\300\7\37\177\377\377\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377" "\77\17\3\0\0\0\0\1\7\37\177\377\377\377\377\374\360\300\0\0\0\200\360\374\377\377\377\377\77\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374\376\377\377\377\177\17\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\317\357\377\377\377\377\377\77" "\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\377\377\177\37\7\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\177\37\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\177\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\360\370\376\377\377\377\377\377\357\343\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\360\360\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "\374\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370" "\370\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\20p\370\370\374\374\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376\370\340\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377\377\377\374\360\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\377\377\377\377\374\360\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\377\377\370\340" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\37\17\17" "\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\377\377\177\377\377\377\374\370\340\200\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\360\370\376\377\377\177\37\17\3\1\0\0\3\17\77\177\377\377\377\374\360\300\200" "\0\0\0\0\0\0\0\0\1\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\1\7\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\340\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\376\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\37\177\377\377\377\377\377\370\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\177\177\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340\360\370\370\370\374\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300" "\200\0\0\0\0\0\0\0\1\3\7\7\203\201\201\200\300\300\300\300\300\300\300\300\301\301\307\377\377\377\377\377" "\377\374\0\0\300\360\370\374\376\376\377\377\77\77\37\37\37\37\37\17\17\17\17\17\17\17\17\377\377\377\377\377" "\377\377\0\0\37\77\377\377\377\377\377\374\360\360\340\340\340\340\340\340\340\360\360\370\374\376\377\377\377\377\377\377" "\377\377\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\300\340\340\360\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\377\377\377\377\377\377\377\77\17\7\3\1\1\1\1\1\1\1\3\7\17\37\377\377\377\377\377" "\376\370\340\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\177" "\77\17\1\0\0\17\17\17\17\17\7\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360" "\340\300\200\0\0\300\370\376\377\377\377\377\177\37\7\3\1\1\0\0\0\0\0\0\0\0\1\1\3\7\77\77" "\37\7\3\1\0\177\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\3\17\37\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\360\360\370\374\374\376" "\374xp\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360" "\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\0\0\200\300\340\360\360\370\370\370\370\370\370\370\370\370\370\360\360\340\300\377\377\377\377\377" "\377\377\0\0\300\370\376\377\377\377\377\177\37\7\3\3\1\1\1\1\1\1\3\3\7\17\177\377\377\377\377\377" "\377\377\0\0\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\1\17\77\177\377\377\377\377\374\370\360\340\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300\200" "\0\0\0\0\300\370\376\377\377\377\377\337\307\303\301\301\300\300\300\300\300\300\300\301\301\303\307\377\377\377\377\377" "\376\360\0\0\377\377\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\7\17\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\340\360\360\370\374\376\374x" "\60\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\370\370\374\374\374\374\374\374\374\374\370\370" "\370\360\340\340\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\37\7\3\1\1\0\0\0\0\1\1\3\3" "\17\37\77\17\0\360\360\360\360\360\360\360\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\0\0" "\0\0\0\0\0\3\3\3\3\3\3\3\377\377\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\360\370\370\374\374\376~>>>>>>>~\376\374\374\370\370\374\374~~~" "~~~~~\377\377\377\377\377\377\341\200\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377~\0\0" "\0\0\0\0\0\1\3\307\357\377\377\377\377\177\177~~~~~\177\177\77\77\37\37\17\7\3\0\0\0" "\0\0\0\0\0\0\217\337\377\377\377\377\376\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\370\370\370\360" "\340\300\0\0\376\377\377\377\377\377\347\301\200\200\200\0\0\0\0\0\0\0\200\200\200\300\301\341\377\377\377\377" "\377\377\77\0\1\3\7\17\17\37\37\37\37\77\77\77\77\77\77\77\77\77\77\77\37\37\37\37\17\17\7\3" "\1\0\0\0\0\0\370\370\370\370\370\370\370\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\300\340\360\370\370\374\374\374\374\374\374\374\374\374\374\370\360\360\340" "\200\0\0\0\0\0\377\377\377\377\377\377\377\77\17\7\3\1\1\0\0\0\0\0\1\3\17\377\377\377\377\377" "\377\374\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\7\3\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\300\340\360\340\300\200\0\0\0\0\0\0\0\200\300\340\377\377\377\377\377\377\77\0\0\0" "\0\0\0\0\2\7\17\37\37\77\77\77\177\177\177~~\177\177\77\77\77\37\37\17\7\3\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\374\374|<" "\34\14\4\0\0\377\377\377\377\377\377\377\0\200\300\340\360\370\374\376\377\177\77\37\17\7\3\1\1\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\37\17\7\17\37\177\377\377\377\376\374\360\340\300\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\1\3\17\37\77\177\377\377\377\376\370\360" "\340\300\200\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\376\376\376\376\376\374\374~~~\376\376\376\376\374\370\360\370\374\374~~~\376\376\376\376" "\374\374\360\300\377\377\377\377\377\377\3\0\0\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\1\377\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377" "\377\377\377\377\3\3\3\3\3\3\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\3\3\3" "\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\376\376\376\376\376\376\376\340\360\370\374\374\376~~~~~\376\376\376\376\374\370\370\360" "\300\0\0\0\0\0\377\377\377\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\0\1\7\377\377\377\377\377" "\377\376\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300" "\200\0\0\0\300\370\376\377\377\377\377\177\17\7\3\1\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377" "\377\376\370\300\177\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377" "\377\377\377\177\0\3\17\37\77\177\377\377\377\374\370\360\360\340\340\340\340\340\340\360\360\370\374\376\377\377\377\177" "\77\17\3\0\0\0\0\0\0\0\0\1\3\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\376\376\376\376\376\376\376\360\370\370\374|~~~~~~\376\376\376\376\374\374\370\360\340" "\300\200\0\0\0\377\377\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\1\3\17\177\377\377\377" "\377\377\376\360\0\377\377\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377" "\377\377\377\77\0\377\377\377\377\377\377\377\177\376\370\370\360\360\360\360\360\360\360\370\370\374\376\377\377\377\177\77" "\37\7\1\0\0\377\377\377\377\377\377\377\0\0\1\1\3\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\370\370\374\374\376\376~~~~~~~\376\374\374\370\360\376\376\376\376" "\376\376\376\0\360\376\377\377\377\377\377\77\7\1\1\0\0\0\0\0\0\0\0\0\0\1\3\177\377\377\377\377" "\377\377\377\0\77\377\377\377\377\377\377\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\377\377\377\377" "\377\377\377\0\0\1\7\37\77\177\377\377\377\376\374\370\370\360\360\360\360\360\360\370\374\374\377\177\377\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\1\1\3\3\3\3\3\3\3\3\3\3\1\0\0\0\377\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77" "\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\376\376\376\376\376\376\376\340\360\370\374\374\376\376~~~~~~~\376\376\374" "\374\370\370\60\0\0\0\0\377\377\377\377\377\377\377\177\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3" "\7\3\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\374\370\370\370\370\370\370\360\360\340\300\300" "\200\0\0\0\0\0\0>\377\377\377\377\377\377\347\303\201\201\201\1\1\1\1\1\3\3\7\17\37\77\77\17" "\7\1\0\0\0\0\0\0\0\1\3\7\7\17\17\17\37\37\37\77\77\77>~~\376\374\374\370\370\360\340" "\300\200\0\0\0`\370\374\377\376\370\370\360\340\340\300\300\300\300\300\300\300\300\300\340\340\361\377\377\377\377\377" "\177\77\0\0\0\0\0\1\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\376\376\36\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\377\377\377\377\377\377\370\370\370\370\370\370\370\370\370\370\370" "\0\0\0\0\0\0\1\1\1\1\1\1\1\371\377\377\377\377\377\377\7\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\377\377\370\340\300\300\300\300\300\300\340\340\360\360" "\370\370\300\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7" "\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\374\374\374\374\374\374\354\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\374\374" "\374\374<\0\0\0\3\37\177\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\77" "\17\1\0\0\0\0\0\0\0\1\17\77\377\377\377\377\376\360\300\0\0\200\340\374\377\377\377\177\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\377\376\376\377\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\374\374\0\0\0\0\0\0\0\0\200\340\340\340\340\340\0\0\0\0\0\0\0\0\374" "\374\374\374\374\77\377\377\377\377\377\340\0\0\0\0\200\370\377\377\377\377\377\377\377\370\200\0\0\0\0\370\377" "\377\377\377\377\0\7\177\377\377\377\377\376\300\200\370\377\377\377\177\7\1\17\377\377\377\377\374\340\0\370\377\377" "\377\377\177\1\0\0\0\17\377\377\377\377\377\377\377\377\77\7\0\0\0\0\0\7\177\377\377\377\376\377\377\377" "\377\17\0\0\0\0\0\0\1\7\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0\3\7\7\7\7\7\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\4\34<\374\374\374\374\374\360\340\300\0\0\0\0\0\0\0\0\0\300\340\370\374\374\374\374|" "\34\14\0\0\0\0\0\0\1\3\17\37\77\377\377\377\376\370\360\300\360\370\376\377\377\177\77\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\361\377\377\377\377\177\377\377\377\377\370\340\300\200\0\0\0\0" "\0\0\0\0\0\0\200\340\360\374\376\377\377\377\77\37\7\3\0\0\0\3\7\37\77\177\377\377\376\374\370\340" "\300\200\0\0\6\7\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7" "\7\7\6\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34|\374\374\374\374\374\374\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\374\374\374" "\374\374<\4\0\0\1\17\77\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\77" "\7\1\0\0\0\0\0\0\0\0\7\37\177\377\377\377\376\370\340\0\0\200\340\374\377\377\377\377\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\374\377\377\377\177\37\3\0\0\0\0\0" "\0\0\0\0\200\340\300\0\0\0\0\0\0\200\300\340\374\377\377\377\377\177\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\177\177~~\177\177\177\77\77\37\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "|\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\377\377\177\77\37\17\7\1\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\377\377\377\77\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\300\340\360\370\376\377\377\377\377\377\357\347\343\341\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\360\360\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\77\17\7\7\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\360\360\370\374\377\377\377\177\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\17\17\77\377\377\377\376\374\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\377\360\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\77\77\77\177\177\177\177~~~~~~~~" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\340\340\340\300\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\7\7\17\37\377\377\377\377\377\374\360\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\177\177\377\377\376\370\360\360\340" "\340\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\376\377\377\377\177\37\17\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377\377\377\377\177\0\0\0\0\0" "\0\0\0\0\0\0\0~~~~~~~~~\177\177\177\177\77\77\37\17\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0`\360\370\370\374\374\376\376~~~~\376\376\376\374\374\370\370\360\360\340\340\340\360\360\370\374" "\376\374|\30\0\0\1\1\3\1\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\3\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\360\377\377\377\377\377\377\301\200\200\0\0" "\0\0\0\0\0\0\300\360\370\374\376\376\377\177\77\37\17\17\7\367\377\377\377\377\377\177\37\37\77\177\377\377" "\376|\30\0\370\377\377\377\377\377\377\7\0\0\0\0\0\0\360\377\377\377\377\377\77\0\0\0\0\0\1\1" "\0\0\0\0\17\177\377\377\377\377\377\374\340\200\0\0\0\360\377\377\377\377\377\37\0\0\0\0\0\0\200\200" "\0\0\0\0\0\0\1\3\7\17\37\77\177\177\377\376\374\377\377\377\377\377\377\374\374\374\374\376\376\177\177\77" "\37\36\14\0\0\0\0\0\0\0\0\0\0\0\0\370\377\377\377\377\377\17\1\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\360\370\374\376\376\377\377\177\77\77\77\37\37\37\77\77\177\377\376~<" "\30\0\0\0\0\0\200\200\200\377\377\377\377\377\377\377\303\200\200\200\200\200\200\200\0\0\0\0\0\1\0\0" "\0\0\0\0\0\0\37\37\37\37\37\177\377\377\377\377\377\377\337\37\37\37\37\37\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\300\300\340\340\370\374\377\377\377\377\377\377\373\370\370\370\360\360\360\340\340\300\300\300\300\300\300" "\340\360\370\340\1\7\17\17\7\7\3\3\3\3\1\1\1\3\3\3\3\7\7\7\17\17\17\17\17\17\17\17" "\17\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\340\300\200\0\0\200\200\300\300\300\300\300\300\200\200\0\0\300\340\360\360\340" "\300\200\0\0\0\0\1\3\207\367\377\377\377\377\377\77\37\37\37\17\17\37\37\37\77\377\377\377\377\377\347\203" "\1\0\0\0\0\0\0\0\37\377\377\377\377\377\360\300\200\200\200\0\0\200\200\200\300\360\377\377\377\377\177\37" "\0\0\0\0\0\0\30<~\377\177\77\37\17\17\37\37\77\77\77\77\77\77\37\37\17\37\77\177\377\376|" "\70\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300" "\300\300\300\300\1\3\17\77\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\177" "\77\17\3\0\0\0\0\0\0\1\7\37\177\377\377\377\376\374\360\300\0\300\360\374\377\377\377\177\37\7\1\0" "\0\0\0\0\0\0\0\300\300\300\300\300\300\300\303\317\377\377\377\377\377\377\377\377\337\307\301\300\300\300\300\300" "\300\0\0\0\0\0\0\217\217\217\217\217\217\217\217\217\217\377\377\377\377\377\377\377\217\217\217\217\217\217\217\217" "\217\0\0\0\0\0\0\37\37\37\37\37\37\37\37\37\37\377\377\377\377\377\377\377\37\37\37\37\37\37\37\37" "\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\177\177\177\177\177\177\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\340\360\370\370\370\374\374\374\374\374\374\374\370\370\370\360\360\340\300\200\0" "\0\0\0\0\0\0\0\374\377\377\377\377\377\377\307\3\1\1\1\0\0\1\1\3\7\37\77\77\37\17\7\2" "\0\0\0\0\0\0\0\0\203\307\357\377\377\377\377\177\376\376\374\374\374\370\370\360\360\360\340\300\300\200\0\0" "\0\0\0\0\0\0~\377\377\377\377\377\377\361\300\200\200\0\0\1\1\1\3\7\17\377\377\377\377\377\377\374" "\0\0\0\0\0\0\0\1\3\7\7\17\37\37\37\77\77\77\177\177~\376\376\376\377\377\377\377\357\307\3\0" "\0\0\0\0\0\200\300\340\360\370\370\340\300\200\0\0\0\0\0\0\0\0\201\303\377\377\377\377\377\377\377\0" "\0\0\0\0\0\1\3\7\17\37\37\77\77\77\177\177~~~\177\177\177\77\77\77\37\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0" "\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\7\3\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\360\360\340\340\340\300\300\200\0" "\0\0\0\0\300\360\370\374\376\177\77\237\317\347\347\363\363\371\371\371\371\371\371\371\363\363\347\347\317\37\77\177" "\376\374\370\360\377\377\377\17\1\370\376\377\377\377\377\17\7\3\1\1\1\1\1\3\7\37\37\37\37\17\14\0" "\1\17\377\377\377\377\377\360\300\3\37\77\177\377\377\376\370\360\360\340\340\340\340\360\360\370\374\374\370p\20\0" "\300\370\377\377\1\7\17\37\77\177\376\374\370\360\341\343\343\307\307\307\307\307\307\307\343\343\361\361\370\374\376\177" "\77\37\17\7\0\0\0\0\0\0\0\1\1\3\3\3\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\16\77\177\77\37\17\17\17\7\7\7\17\17\77\377\377\377\376\374\360\0\0" "\0\0\0\0\0\0\0\0\200\340\360\370\374\374\376~>>>>>>>>\377\377\377\377\377\377\0\0" "\0\0\0\0\0\0\0\0\17\77\177\177\377\377\374\370\370\360\360\370\370\370\374\376\377\377\377\377\377\377\0\0" "\0\0\0\0\0\0\370\370\370\370\370\370\370\370\371\371\371\371\371\371\371\370\370\370\371\371\371\371\371\371\370\370" "\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\340\300\200\0\0\0\0\0\0\200\300\340\340\340" "\300\200\0\0\0\0\200\300\340\360\370\374\376\377\177\77\77\37\17\207\303\341\360\370\374\376\377\177\77\77\37\17" "\7\3\1\0\0\0\3\7\17\37\77\177\377\376\374\370\360\340\300\203\7\17\37\77\177\377\376\374\370\360\340\300" "\200\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\37\77\77\37\17\6\0\0\0\0\1\3\7\17\77\77" "\37\17\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~\376\376\376\376\376\376" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\360\360\340\340\340\300\300\200\0" "\0\0\0\0\300\360\370\374\376\77\37\17\377\367\367\363\363\361\361\361\361\361\361\361\343\343\307\207\17\37\77\177" "\376\374\370\360\377\377\377\7\0\0\0\0\377\377\377\377\377\360\360\360\360\360\360\371\377\377\377\177>\0\0\0" "\1\17\377\377\377\377\377\370\340\200\0\0\377\377\377\377\377\1\1\1\3\17\77\177\377\377\370\340\200\0\0\200" "\340\370\377\377\1\7\17\37\77\177\377\376\377\373\373\363\363\360\340\340\340\340\360\360\361\373\373\375\377\376\377\177" "\77\37\17\7\0\0\0\0\0\0\0\1\1\3\3\3\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\0\0" "\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\360\360\360\360\360\360\360\340\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\370\376\377\377\377\377\17\7\3\3\3\3\3\7\17\377\377\377\377\376\370\0\0" "\0\0\0\0\0\0\0\0\0\1\7\17\37\77\177\177\376\376\374\374\374\376\376\177\177\77\37\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\340\340\340\0\7\7\7\7\7\7\7\7\7\7\7\7\7\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\341\341\341\341\341\341\340\340\340\340\340\340\340\340\340" "\340\340\340\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\340\340\340\340\300\300\300\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\30\34>\177\177\77\37\17\7\7\3\3\3\7\7\217\377\377\377\377\376\374\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\374\374~\177\77\37\17\7\3\0\0\0" "\0\0\0\0\0\0\0\0\0\360\370\374\376\377\377\377\377\367\367\363\361\360\360\360\360\360\360\360\360\370\370\0" "\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\340\340\340\340\340\340\340\300\300\300\200\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\4\17\37\77\77\37\17\207\207\203\203\203\207\307\317\377\377\377\377\377|\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\0\0\0\37\17\17\17\17\37\37\37\77\377\377\377\375\370\340\0" "\0\0\0\0\0\0\0\0\10\34>\177\177\377\374\374\370\370\360\360\360\370\370\374\376\377\177\77\77\37\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\376\376\374x\30\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\34\77\77\177\177\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\0\0\0" "\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\370\360\360\340\340\340\340\340\360\360\374\377\377\177\377\377\377\377\360\340\340" "\360\370\376\374\377\377\377\377\1\1\3\7\7\7\7\7\7\7\7\7\3\3\1\0\0\1\3\7\7\7\7\7" "\7\7\3\1\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\360\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370" "\370\370\370\0\0\340\374\376\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\1\1\1\1\1\377\377\377" "\377\377\377\0\0\17\77\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\377\377\377" "\377\377\377\0\0\0\0\0\1\3\3\7\17\17\17\37\37\37\377\377\377\377\377\377\0\0\0\0\0\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\0\0\0\0\0\1\1\1" "\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0<\377\377\377\377\377\377\377\377<\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\300\300\200\200\200\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\20<||x\370\360\363\363\363\363\363\177\177\177\77\16\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\34|<>>\37\37\37\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\340\370\374\376\376\377\77\37\17\17\17\17\37\37\177\377\377\376\374\370\340\200\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\301\377\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\1\7\37\77\177\177\377\376\374\370\370\370\370\374\374\376\377\177\77\37\17\7\0\0" "\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\361\361\361\361\361\361\361\360\360\360\360\360\360\360\360\360" "\360\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\340\340\300\200\0\0\0\0\0\0\200\300\340\340\340\300\200\0\0\0\0\0" "\0\0\0\0\0\0\1\3\7\17\37\77\177\177\377\376\374\370\360\341\303\207\17\37\77\77\177\377\376\374\370\360" "\340\300\200\0\0\0\0\0\200\300\340\360\370\374\376\377\177\77\37\17\7\203\300\340\360\370\374\376\377\177\77\37" "\17\7\3\0\0\0\6\17\37\77\77\17\7\3\1\0\0\0\0\6\17\37\77\77\37\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\360\360\370\370\370\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\370\360" "\360`\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\77\7" "\1\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\200\340\370\376\377\377\377\77\17\3\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\376\377\377\377\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\177\37\7\1\0\0\200\300\340\370\374\376\376\376" "\376\0\0\0\0\0\0\0\200\340\374\377\377\377\177\37\7\1\200\340\360\370\374\377\337\317\303\301\377\377\377\377" "\377\300\300\300\0\0\0\16\37\37\77\77\17\1\0\0\0\0\3\3\3\3\3\3\3\3\3\3\377\377\377\377" "\377\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\360\360\370\370\370\374\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\370\370" "\360\340 \0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\77\17" "\3\0\0\0\0\0\0\0\377\377\377\377\377\0\0\0\0\0\0\0\300\370\376\377\377\377\177\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\177\37\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\177\237\347\341\360\370\370x|<<<<<" "|\370\370\360\0\0\0\0\300\360\374\377\377\377\177\37\7\1\0\0\0\1\1\3\0\200\300\300\340\360\360\370" "|\77\77\37\0\0\0\16\17\37\37\77\7\1\0\0\0\0\0\0\370\374\376\376\377\377\377\377\373\371\370\370" "\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\370\374||>>>>>~\374\374\370\360\340\0\0\0\0\0\0\0\0\300\360\374\370\370" "\360\360 \0\200\200\0\0\36\36\36\36\36\77\77\377\377\373\361\300\0\0\0\200\340\374\377\377\377\377\77\17" "\3\0\0\0\77\177~\374\370\370\370\370\370\374~\177\77\37\17\207\340\370\376\377\377\377\77\17\3\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\376\377\377\377\177\37\7\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\177\37\7\1\0\0\200\300\340\370\374\376\376\376" "\376\0\0\0\0\0\0\0\300\360\374\377\377\377\177\37\7\1\200\340\360\370\374\377\337\317\303\301\377\377\377\377" "\377\300\300\300\0\0\10\17\37\37\77\77\7\1\0\0\0\0\3\3\3\3\3\3\3\3\3\3\377\377\377\377" "\377\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\370\376\377\377\377\177\77\37\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\376\377\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\37\177\377\377\377\377\374\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\376\374" "\70\20\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\301\341\343\203\3\7\7\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\17\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\3\0\0\0\0\7\37\377\377\377\377\376\370\300\0\0" "\0\0\0\0\0\200\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\376\370" "\300\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377" "\377\377\370\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\1\341\361\360\300\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\376\370\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\77\7\17\177\377\377\377\377\370\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\370\377\377\377\377\177\17\1\0\0\0\0\3\17\177\377\377\377\377\374\340\0\0" "\0\0\0\0\0\300\360\376\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377\377\374" "\340\200\0\0\376\377\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\377\377\377" "\377\377\374\360\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3" "\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\6\17\37\37\17\17\7\7\3\301\341\341\201\3\7\17\17\37\77\37\7\2\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\17\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\3\0\0\0\0\7\37\377\377\377\377\376\370\300\0\0" "\0\0\0\0\0\200\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\376\370" "\300\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377" "\377\377\370\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\1\1\0\0\0\0\0\300\340\341\201\3\3\3\3\3\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\370\376\377\377\377\377\376\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\17\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\3\0\0\0\0\7\37\377\377\377\377\376\370\300\0\0" "\0\0\0\0\0\200\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\376\370" "\300\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377" "\377\377\370\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\3\7\7\7\7\7\3\1\0\340\340\340\0\1\3\7\7\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\374\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\77\7\77\377\377\377\377\374\360\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\370\376\377\377\377\177\17\1\0\0\0\1\17\77\377\377\377\377\374\360\200\0\0" "\0\0\0\0\0\200\360\376\377\377\377\377\177\177~~~~~~~~~\177\177\377\377\377\377\377\376\360" "\200\0\0\0\374\377\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377\377" "\377\376\360\300\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\77|\370\370\370\370|\77\37\17\7\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\376\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\37\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\37\3\0\0\0\0\3\37\177\377\377\377\376\370\300\0\0" "\0\0\0\0\0\0\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\377\370" "\340\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377" "\377\377\374\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\377\377\377\377\377\377\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\340\374\377\377\377\377\77\7\0\377\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\1\0\0\0\377\377\377\377\377\377\77\77\77\77\77\77\77" "\77\77\77\77\0\340\374\377\377\377\377\377\377\374\374\374\374\374\374\377\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\377\377\377\377\377\377\340\340\340\340\340\340\340" "\340\340\340\340\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\200\200\200\0\0\0" "\0\0\0\0\0\0\0\300\340\360\370\374\376\377\377\177\77\77\37\37\17\17\17\37\37\37\77\177\377\377\376\376" "\374\370\360\300\300\370\377\377\377\377\377\377\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7" "\7\3\3\1\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\177\377\377\377\377\377\376\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\7\37\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\360\360\370\374\377\377" "\377~<\14\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\367\377\377\377\307\307\307\307\203\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\10\34\36><|xyyyyy\177\77\77\37\17\0\0" "\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\341\341\341\343\343\343\341\340\340\340\340\340\340" "\340\340\0\0\0\377\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\377\377\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0" "\0\0\0\0\0\377\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\343\343\343\343\341\341\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\377\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\377\377\377\377\377\377\377\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0" "\0\0\0\0\0\377\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360\360" "\360\360\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\306\317\337\337\317\317\307\307\303\301\301\301\303\303\307\317\317\337\377\337\307\302\300" "\300\300\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\301\303\307\307\307\307\307\303\301\300\300\300\300\300\301\303\307\307\307\307\307\303\301\300" "\300\300\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\341\341\343\343\343\343\340\340\340\340\340\340" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\377\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\343\343\343\343\341\341\340\340\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\377\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\306\317\337\337\317\317\307\303\303\301\300\301\303\303\307\317\337\337\377\337\307\302\300" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\301\303\307\307\307\307\303\303\301\300\300\300\300\300\301\303\307\307\307\307\307\303\301\300" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\37\37\37\37\77\177\377\377\377\376\374\370\360" "\300\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\377\377\377\377" "\377\377\374\300\77\77\377\377\377\377\377\377\377\77\77\77\77\77\77\77\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\374\377\377\377" "\377\377\177\7\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\360\360\370\370\374\376\377\377\377\177\77\17" "\7\1\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\301\203\1\0\0\0\0\0\0\0\1\1\3\3\3\3\3\3\303\301\300\300" "\300\300\300\300\377\377\377\377\377\377\377\377\376\370\340\300\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\7\37\77\377\377\377\374\360\340\200\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\3\17\77\177\377\377\376\370\340\300\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\1\7\37\177\377\377\377\374\360\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\377" "\377\377\377\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\203\203\207\207\207\217\217\237\37\17\3\0\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\237\217\217\217\207\207\207\203\3\3\1\1\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\10\34>\177\77\37\37\217\217\207\203\203\207\207\217\37\77\77\177\177>\14\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\1\3\3\3\1\1\0\200\200\201\201\203\203\207\207\7\7\7\7\7\3\1\1" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\203\200\200\200\200\200\203\207\17\17\17\17\17\7\3\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0" "\0\0\0\0\0\0\10\34>\177\377\377\377\376\374\370\360\300\200\0\0\200\300\340\360\370\376\377\377\377\177>" "\34\10\0\0\0\0\0\0\0\0\0\1\1\303\347\377\377\377\377\377\377\377\377\377\377\347\303\1\0\0\0\0" "\0\0\0\0\0\0\0`\360\370\374\376\377\377\177\77\37\17\7\3\3\7\17\37\77\177\377\377\376\374\370\360" "`\0\0\0\0\0\0\0\0\1\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\340\340\340\340\340\300\300\300\200\200\340\360\374" "\374\374\370\370\0\200\340\360\374\376\377\377\377\177\77\37\17\17\17\7\7\17\17\17\237\377\377\377\377\377\377\377" "\377\367\341\0\376\377\377\377\377\377\177\7\1\0\0\0\0\0\0\0\300\360\374\377\377\377\77\17\3\17\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\300\360\374\377\377\377\77\17\3\0\0\0\0\0\377\377" "\377\377\377\377\77\377\377\377\377\377\376\300\340\370\374\377\377\177\37\7\1\0\0\0\0\0\0\0\300\370\377\377" "\377\377\377\377\0\1\307\357\377\377\377\377\377\377\377\377\371\360\360\360\360\360\360\360\370\374\376\377\377\377\177\77" "\37\17\3\0\34\37\77\77\177\77\17\3\0\1\1\3\3\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\1\1\1\3\3\7\7\7\3\0\0\0\300\300\300\300" "\300\300\300\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\377\377\0\1\17\77\177\377\377\377\377\374\370\360\360\340\340\340\340\340\340\340\360\360\370\376\377\377\377\377\177" "\37\17\1\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\0\1\3\7\7\7\3\3\1\1\1\0\0\0\0\0\300\300\300\300" "\300\300\300\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\377\377\377\377" "\377\377\377\0\1\17\77\177\377\377\377\377\374\370\360\360\340\340\340\340\340\340\340\360\360\370\376\377\377\377\377\177" "\37\17\1\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\200\200\200\204\214\236\277\77\37\17\17\7\3\3\1\3\7\17\17\37\77\177\77\236\214\200\200" "\200\200\200\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\3\37\177\377\377\377\377\377\370\360\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\377" "\77\37\3\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\200\200\200\203\207\217\217\17\17\7\7\3\0\0\0\0\0\3\7\17\17\17\17\217\207\203\200" "\200\200\200\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\3\37\177\377\377\377\377\377\370\360\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\377" "\77\37\3\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\200\0\0\0\3\3\3\1\1\1\0\0\0\0\0\0\0\0\300\340\340\340" "\340\340\340`\3\17\77\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\200\340\370\377\377\377\377\177" "\37\7\1\0\0\0\0\0\3\17\77\377\377\377\377\376\370\340\200\0\0\300\370\376\377\377\377\177\37\7\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\177\377\377\377\376\377\377\377\377\77\7\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\37\37\77\177\377\377\377\376\374" "\370\360\200\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\301\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\374\374\374\374\374\374\374\374\374\374\374\374\376\376\377\177\177\77\77\37" "\17\3\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\360\370\370\370\370\370\370\370\360\360\340\340\300\200\0\0\0" "\0\0\0\0\0\200\360\374\377\377\377\377\377\37\17\7\3\3\1\1\1\3\3\7\17\77\377\377\377\377\376\370" "\340\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\200\300\360\377\377\377\377\377\177" "\37\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\77\77\77\77\77\77\177\177\377\377\377\373\371\360\340" "\300\200\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\377\377\377" "\377\377\377\370\0\377\377\377\377\377\377\377\0\0\0\200\340\360\340\300\300\300\300\300\300\340\360\370\376\377\377\377" "\377\177\37\3\0\17\17\17\17\17\17\17\0\0\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\20\70\370\374\376\376\376\374\360\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\377\177\77>\30\20\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340\360\370\370\370\374\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300" "\200\0\0\0\0\0\0\0\1\3\7\7\203\201\201\200\300\300\300\300\300\300\300\300\301\301\307\377\377\377\377\377" "\377\374\0\0\300\360\370\374\376\376\377\377\77\77\37\37\37\37\37\17\17\17\17\17\17\17\17\377\377\377\377\377" "\377\377\0\0\37\77\377\377\377\377\377\374\360\360\340\340\340\340\340\340\340\360\360\370\374\376\377\377\377\377\377\377" "\377\377\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374\376\374\370\370\360`\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60x~\377\377\377\177\37\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\340\360\360\360\370\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\0\0\1\3\7\17\17\7\3\3\1\201\201\201\201\201\201\201\201\203\203\217\377\377\377\377\377" "\377\370\0\0\200\340\360\370\374\374\376\376\177\177\77\77\77\77\77\37\37\37\37\37\37\37\37\377\377\377\377\377" "\377\377\0\0\77\177\377\377\377\377\377\371\340\340\300\300\300\300\300\300\300\340\340\360\370\374\376\377\377\377\377\377" "\377\377\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\17\17\17\17\17" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\374\374\374\370\340\300\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0 p\370\374\377\377\177\77\17\7\7\17\77\177\377\377\377\374xp\0\0" "\0\0\0\0\0\0\0\200\300\300\340\360\360\361\371\370\370\370\370\370\370\370\370\370\370\373\361\360\340\340\300\200" "\0\0\0\0\0\0\0\1\3\7\17\17\7\3\3\1\201\201\201\201\201\201\201\201\203\203\217\377\377\377\377\377" "\377\370\0\0\200\340\360\370\374\374\376\376\177\177\77\77\77\77\77\37\37\37\37\37\37\37\37\377\377\377\377\377" "\377\377\0\0\77\177\377\377\377\377\377\371\340\340\300\300\300\300\300\300\300\340\340\360\370\374\376\377\377\377\377\377" "\377\377\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\17\17\17\17\17" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\370\370\370\370\370\360\360\340\340\300\200\200\200\300\340\360\340" "\340\300\0\0\0\0\0\1\3\3\7\17\17\7\3\1\1\1\3\3\7\17\17\37\37\37\37\37\37\17\17\7" "\3\0\0\0\0\0\0\200\300\300\340\360\360\360\370\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\0\0\1\3\7\17\17\7\3\3\1\201\201\201\201\201\201\201\201\203\203\217\377\377\377\377\377" "\377\370\0\0\200\340\360\370\374\374\376\376\177\177\77\77\77\77\77\37\37\37\37\37\37\37\37\377\377\377\377\377" "\377\377\0\0\77\177\377\377\377\377\377\371\340\340\300\300\300\300\300\300\300\340\340\360\370\374\376\377\377\377\377\377" "\377\377\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\17\17\17\17\17" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0\0\0\0\0\300\340\360\360\360\360\340\340\300" "\0\0\0\0\0\0\0\0\0\7\17\37\37\37\37\17\17\7\0\0\0\0\0\7\17\37\37\37\37\37\17\7" "\0\0\0\0\0\0\0\0\200\300\340\360\360\360\370\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\0\0\1\3\7\17\17\7\3\3\1\201\201\201\201\201\201\201\201\203\203\217\377\377\377\377\377" "\377\370\0\0\200\340\360\370\374\374\376\376\177\177\77\77\77\77\77\37\37\37\37\37\37\37\37\377\377\377\377\377" "\377\377\0\0\77\177\377\377\377\377\377\371\340\340\300\300\300\300\300\300\300\340\340\360\370\374\376\377\377\377\377\377" "\377\377\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\17\17\17\17\17" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\374>\36\36\36\36>\374\370\360\340\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\77|xxxx|\77\37\17\7\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\300\340\360\360\360\370\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\0\0\1\3\7\17\17\7\3\3\1\201\201\201\201\201\201\201\201\203\203\217\377\377\377\377\377" "\377\370\0\0\200\340\360\370\374\374\376\376\177\177\77\77\77\77\77\37\37\37\37\37\37\37\37\377\377\377\377\377" "\377\377\0\0\37\177\377\377\377\377\377\371\340\340\300\300\300\300\300\300\300\340\340\360\360\370\376\377\377\377\377\377" "\377\377\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\17\17\17\17\17" "\17\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\360\370\370\374\374\374\374\374\374\374\374\374\370\360\360\340\360\370\370\374\374\374\374\374\374\374\374" "\370\370\360\340\0\3\7\3\201\200\200\300\300\300\300\301\303\377\377\377\377\377\377\307\301\301\300\300\300\300\301\303" "\377\377\377\377\370\376\376\377\177\77\37\37\17\17\17\17\17\377\377\377\377\377\377\7\7\7\7\7\7\7\7\7" "\7\7\7\7\377\377\377\377\360\340\300\300\300\300\300\340\360\377\377\377\377\377\377\376\370\360\360\340\340\340\340\340" "\360\360\374\370\0\1\3\3\7\7\7\7\7\7\7\7\7\3\1\1\0\1\1\3\7\7\7\7\7\7\7\7" "\7\7\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\370\370\374\374\376\376~~~~~~~~\376\376\374\374\374\370" "\360\340\300\200\0\340\374\377\377\377\377\377\77\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\1\3\37\37" "\17\7\1\0\0\77\377\377\377\377\377\377\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\7\17\37\77\177\377\377\377\376\374\370\370\360\360\360\360\360\360\360\370\370\374\374\376\377" "~|\70\20\0\0\0\0\0\0\0\0\0\0\1\1\3\3\3\3\377\377\377\377\343\343\343\343\301\201\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\14\17\37\36\36><<<<<<\37\37\37\17\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\20x\370\374\376\376\376\370\360\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\37\177\377\177\77>\30\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300\200" "\0\0\0\0\300\370\376\377\377\377\377\337\307\303\301\301\300\300\300\300\300\300\300\301\301\303\307\377\377\377\377\377" "\376\360\0\0\377\377\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\7\17\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\340\360\360\370\374\376\374x" "\60\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\376\376\374\370x\20\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30>\77\177\377\177\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300\200" "\0\0\0\0\300\370\376\377\377\377\377\337\307\303\301\301\300\300\300\300\300\300\300\301\301\303\307\377\377\377\377\377" "\376\360\0\0\377\377\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\7\17\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\340\360\360\370\374\376\374x" "\60\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\374\374\370\360\300\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0 x\374\376\377\177\77\37\7\3\17\37\177\377\377\377\374\370p\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\340\360\361\371\370\370\370\370\370\370\370\370\370\371\361\360\340\340\300\200\0" "\0\0\0\0\200\360\374\377\377\377\377\277\217\207\203\203\201\201\201\201\201\201\201\203\203\207\217\377\377\377\377\377" "\374\340\0\0\377\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37" "\37\37\0\0\1\17\37\177\377\377\377\377\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\370\374\370\360" "`\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0" "\0\0\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0" "\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200\0" "\0\0\0\0\200\360\374\377\377\377\377\277\217\207\203\203\201\201\201\201\201\201\201\203\203\207\217\377\377\377\377\377" "\374\340\0\0\377\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37" "\37\37\0\0\1\17\37\177\377\377\377\377\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\370\374\370\360" "`\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\20\70\374\374\376\377\376\374\360\300\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\177\177\77>\30\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\376\374\374x\20\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\36\77\177\177\177\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\376\376\376\376\370\360\340\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\70~\377\377\177\37\17\7\1\3\7\37\77\377\377\177~\70\20\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0" "\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\7\3\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\20\20\60\60xx\370\370\370\370\360\360\340\300\300\200\200\300\300\300\300\340\340" "\340\0\0\0\0\0\0\0\0\0\0\30\374\374|~~\177\77\77\77\37\77\177\377\377\377\377\377\347\307\7" "\3\3\0\0\0\0\0\0\200\300\340\360\370\370\374\374\374\374\374\374\374\374\374\374\375\373\377\377\377\377\377\377" "\374\360\300\0\300\370\376\377\377\377\377\177\17\7\3\1\1\0\0\0\0\0\0\0\1\3\7\17\177\377\377\377" "\377\377\377\370\177\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377" "\377\377\377\77\0\3\17\37\77\177\377\377\377\374\370\360\360\340\340\340\340\340\340\360\360\370\374\376\377\377\377\177" "\77\17\3\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\370\370\374\374\374\374\374\374\374\370\370\360\340\300\300\300\340\360\370\360\360" "`\0\0\0\0\0\0\0\1\3\7\7\3\1\1\0\0\0\1\3\7\7\17\17\17\17\17\17\7\7\3\1" "\0\0\0\0\0\0\374\374\374\374\374\374\374\300\340\360\370\370\374\374\374\374\374\374\374\374\374\374\370\360\360\340" "\200\0\0\0\0\0\377\377\377\377\377\377\377\77\17\7\3\1\1\0\0\0\0\0\1\3\17\377\377\377\377\377" "\377\374\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\360\370\370\374\376\370\360\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\77\177\377\377\377~\70 \0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\200\360\374\376\377\377\377\377\37\17\7\3\3\1\1\1\1\1\1\3\3\7\17\77\377\377\377\377" "\377\374\360\200\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377" "\377\377\377\377\0\7\37\77\177\377\377\377\376\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\37\7\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\374\370\370\360` \0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \70|\377\377\377\177\77\17\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\200\360\374\376\377\377\377\377\37\17\7\3\3\1\1\1\1\1\1\3\3\7\17\77\377\377\377\377" "\377\374\360\200\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377" "\377\377\377\377\0\7\37\77\177\377\377\377\376\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\37\7\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\370\374\374\374\370\340\300\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0 p\370\376\377\377\177\37\17\7\7\17\77\177\377\377\376\374x \0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\340\361\361\370\370\370\370\370\370\370\370\370\370\373\361\360\340\340\300\200" "\0\0\0\0\200\360\374\376\377\377\377\377\37\17\7\3\3\1\1\1\1\1\1\3\3\7\17\77\377\377\377\377" "\377\374\360\200\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377" "\377\377\377\377\0\7\37\77\177\377\377\377\376\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\37\7\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\370\370\370\370\370\360\360\340\300\200\200\200\300\300\340\360\340" "\300\200\0\0\0\0\0\1\3\7\7\17\7\3\3\1\1\1\3\7\17\17\37\37\37\37\37\37\37\17\7\3" "\1\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\200\360\374\376\377\377\377\377\37\17\7\3\3\1\1\1\1\1\1\3\3\7\17\77\377\377\377\377" "\377\374\360\200\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377" "\377\377\377\377\0\7\37\77\177\377\377\377\376\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\37\7\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0\0\0\0\0\0\300\340\360\360\360\360\340\340\300" "\0\0\0\0\0\0\0\0\7\17\37\37\37\37\17\17\7\0\0\0\0\0\0\7\17\37\37\37\37\37\17\7" "\0\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\200\360\374\376\377\377\377\377\37\17\7\3\3\1\1\1\1\1\1\3\3\7\17\77\377\377\377\377" "\377\374\360\200\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\377\377\377" "\377\377\377\377\0\7\37\77\177\377\377\377\376\370\360\340\340\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\37\7\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\37\77\77\77\77\37\17\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\200\200" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\376\377\377\377\377\317" "\207\1\0\0\300\370\376\377\377\377\377\377\37\7\3\1\1\0\200\340\360\374\377\377\177\37\17\7\177\377\377\377" "\377\376\370\300\177\377\377\377\377\377\377\300\0\0\300\340\370\376\377\377\77\37\7\1\0\0\0\0\340\377\377\377" "\377\377\377\177\0\3\17\37\177\377\377\377\374\377\377\377\377\357\343\340\340\340\340\360\360\370\374\377\377\377\377\177" "\77\17\3\0\0\0\30<\77\177\177\177\37\7\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0 p\360\370\374\374\376\370\360\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\77\177\377\377\177~\70 \0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\374\376\374\374\370\360p\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60\70~\177\377\377\177\37\17\7\1\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\360\374\374\374\374\360\340\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0 x\374\376\377\177\77\37\17\3\7\17\77\177\377\377\376\374x \0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\1\1\0\0\0\0\0\0\0\0\0\0\1\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0\0\0\0\0\300\340\360\360\360\360\340\340\300\0" "\0\0\0\0\0\0\0\0\7\17\37\37\37\37\17\17\7\0\0\0\0\0\7\17\37\37\37\37\37\17\7\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\376\374\374\70\20\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\36\77\177\177\177\37\17\7\1\0\0\0\0\0\0\0" "\0\0\0\0\34|\374\374\374\374\374\374\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\374\374\374" "\374\374<\4\0\0\1\17\77\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\77" "\7\1\0\0\0\0\0\0\0\0\7\37\177\377\377\377\376\370\340\0\0\200\340\374\377\377\377\377\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\374\377\377\377\177\37\3\0\0\0\0\0" "\0\0\0\0\200\340\300\0\0\0\0\0\0\200\300\340\374\377\377\377\377\177\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\177\177~~\177\177\177\77\77\37\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\370\370\360\340\300" "\200\0\0\0\0\377\377\377\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377" "\377\377\374\340\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377" "\377\377\377\177\0\377\377\377\377\377\377\377\377\374\360\360\340\340\340\340\340\340\340\360\360\370\374\376\377\377\377\177" "\77\17\3\0\0\377\377\377\377\377\377\377\0\1\3\3\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\177\177\177\177\177\177\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0" "\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\7\3\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0" "\0\0\0\0\14<\374\374\374\374\374\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\374\374\374\374" "\374\374<\4\0\0\1\7\37\377\377\377\377\376\370\300\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\77" "\17\1\0\0\0\0\0\0\0\0\3\17\177\377\377\377\377\374\340\200\0\0\340\374\377\377\377\377\77\7\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\377\374\377\377\377\377\37\7\0\0\0\0\0" "\0\0\0\0\200\340\300\200\0\0\0\0\0\0\200\340\370\377\377\377\377\177\37\3\0\0\0\0\0\0\0\0" "\0\0\0\0\37\77\77\177\177~~\177\177\177\77\77\37\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; #endif /* U8G2_USE_LARGE_FONTS */ /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--62-620-72-72-P-301-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 95/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb46_4x8_r[24324] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_r") = " ~\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\370\370\370\360\360\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\77\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\370\360\340\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\17\7\3\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\340\0\0\0\0\0\0\340\360\370\370\370\360\340\0" "\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0" "\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\77\77\0\0\0\0\0\0\77\77\77\77\77\77\77\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\0\0\0\0\0\0\300\300\300\300\300\300" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\1\0\0\0\0\0\376\377\377\377\377\377\7" "\0\0\0\0|||||||\374\377\377\377\377\377\377=<<<<<\376\377\377\377\377\377\177|" "||||\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\7\0\0" "\0\0\0\0||||||\376\377\377\377\377\377~~~~~~\376\377\377\377\377\377\77>>>" ">>>\36\0\0\0\0\0\376\377\377\377\377\377\3\0\0\0\0\0\374\377\377\377\377\377\17\0\0\0\0" "\0\0\0\0\0\0\0\0\16\17\17\17\17\17\3\0\0\0\0\0\14\17\17\17\17\17\17\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\370\370\370\370\370\370\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\340\360\370\374\376\376\377\77\37\37\377\377\377\377\377\377\77\77\77\177\376\376\374\374\370" "p \0\0\0\0\37\177\377\377\377\377\377\370\340\300\300\377\377\377\377\377\377\0\0\0\0\0\3\3\1\0" "\0\0\0\0\0\0\0\0\1\3\7\7\17\17\37\37\77\377\377\377\377\377\377\376\374\374\374\370\370\360\340\340" "\300\0\0\0\0\0\0\200\300\300\0\0\0\0\0\0\0\377\377\377\377\377\377\0\1\1\3\7\377\377\377\377" "\377\377\374\0\0\14\37\77\177\177\377\376\374\374\370\370\360\377\377\377\377\377\377\360\370\370\374\377\377\177\77\37" "\17\7\0\0\0\0\0\0\0\0\0\0\1\1\1\1\3\77\77\77\77\77\77\1\1\1\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300\300\300@\374\376\377\377\377\37\37\17\17\37\77\377\377\377\376\374\360\0\0\0\300\340\370\376\377\377\377\77" "\17\3\1\0\37\77\177\377\377\376\374\370\370\374\376\377\377\177\77\237\347\360\374\377\377\377\177\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\300\360\370\376\377\377\177\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\340\370\374\377\377\377\77\37\7\301\360\370\374\376\376\177\77\77\77\177\376" "\376\374\370\360\0\0\300\360\374\376\377\377\177\37\17\3\0\0\0\0\37\177\377\377\377\377\360\340\340\340\360\377" "\377\377\377\177\6\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\17\7\7\7" "\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\370\376\376\377\377\377\77\37\37\17\17\37\37\177\377\377\377\377\376\370\360\0\0\0" "\0\0\0\0\0\0\0\17\77\377\377\377\377\377\370\340\200\0\0\200\340\370\377\377\377\377\177\77\17\0\0\0" "\0\0\0\0\0\0\200\300\340\360\371\373\377\377\177\77\377\377\377\377\377\377\347\203\3\1\0\0\0\0\300\300" "\300\200\0\0\374\377\377\377\377\377\37\7\1\0\0\0\0\1\3\7\37\77\177\377\377\376\374\370\340\374\377\377" "\377\177\77\17\77\177\377\377\377\377\376\370\360\340\340\340\340\340\340\360\360\370\374\375\377\377\177\77\177\377\377\377" "\371\360\340\300\0\0\0\1\3\3\7\7\7\7\7\17\7\7\7\7\7\3\3\1\1\0\0\0\0\1\7\17" "\7\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77\77\77\77\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\360\370\374\374\374\370" "\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\377\377\177\37\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\177\17\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\376\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\377\377\360\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377\377\377\377\370\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\177\377\377\377\374\370\360\340\300\200\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\17\37\37\77\77\177\77" "\16\6\0\0\0\0\0\340\374\370\370\360\360\340\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\3\3\7\17\17\37\77\377\377\377\376\374\370\360\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\377\377\377\377\377\374\360\200\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\377\377\377\377\377\377\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377\377\377\377\177\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377\377\377\77\7\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\300\340\360\370\376\377\377\377\177\77\37\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14~\376\177\177\77\77\37\17\17\7\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300@\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\340\300\300\200\200\0\0\0\0\37\377\377\377\377\377\377\0\0\0\0\0\200\200\300\300" "\340\300\0\0\16\17\17\17\37\37\37\37\77\77\276\376\374\377\377\377\377\377\374\376\276>\77\37\37\37\37\17" "\17\17\17\10\0\0\0\200\300\340\360\370\374\377\377\177\77\17\7\3\7\17\77\177\377\377\376\370\360\340\300\200" "\0\0\0\0\0\0\0\3\3\7\17\17\7\3\1\0\0\0\0\0\0\0\0\0\1\3\17\17\17\7\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77" "\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\277\377\377\377\377\377\377\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\60x|\376\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\370\370\360" "\360`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\374\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\14\17\37\37\77\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\376\377\377\177\77\77\37\37\77\77\177\376\376\374\370\360\340\200\0" "\0\0\0\0\0\360\376\377\377\377\377\377\37\7\1\0\0\0\0\0\0\200\300\340\371\377\377\177\377\377\377\376" "\360\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\300\340\370\374\376\177\77\17\7\3\1\0\377\377\377\377" "\377\377\0\0\17\377\377\377\377\377\377\370\360\374\376\177\77\17\7\3\0\0\0\0\0\0\0\360\377\377\377\377" "\377\17\0\0\0\0\7\37\77\177\377\377\377\377\374\360\340\340\300\300\300\300\340\340\370\374\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0p\370\370\374\374~~\177\177\77\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0`\360\370\374\376\377\377\77\77\37\37\37\17\17\17\37\37\77\77\177\377\377\376\376\374\360" "\340\200\0\0\0\0\0\0\0\1\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\377" "\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\376\377\377\177\77\37\17\7" "\1\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\300\360\374\376\377\377\377\377\357\347\343\341\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\360\360\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\20\70|\374\376\376\177\177\77\77\37\37\37\77\77\77\177\177\377\376\376\374\370\360\340" "\200\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0||||||~\376\376\377\377\377\377\377\347\303\201\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\17\377\377\377\377\377" "\376\360\0\0\0\0@\360\370\374\376\376\360\360\340\300\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377\177" "\37\7\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\377\377\77\37\7\3\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\200\340\360\374\376\377\377\77\37\7\1\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0|\177\177\177\177\177\177\177~~~~~~~~~~\377\377\377\377\377\377\377~~~" "~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\360\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37" "\37\0\0\0\0\0\0\0\377\377\377\377\377\377\377\300\300\340\340\340\340\340\340\340\340\300\300\200\200\0\0\0" "\0\0\0\0\0\0\0<\77\177\177\377\177\77\37\17\17\17\7\7\7\7\17\17\37\77\177\377\377\377\376\374" "\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\20\60x\374\376\376\377\374\360\360\340\340\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377" "\77\37\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\177\377\376\376|" "<\30\0\0\0\0\300\370\377\377\377\377\377\177\7\203\200\300\300\300\300\300\300\300\300\300\200\200\0\1\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\376\177\77\77\37\37\17\17\17\17\17\37\77\177\377\377\377\376\374" "\360\340\0\0\0\0\177\377\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\0\0\3\37\77\377\377\377\377\376\370\360\340\300\300\300\300\300\300\340\360\370\376\377\377\377\377" "\77\37\3\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\217\377\377\377\377\377\377\177\37" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\177\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\6\7\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\374\376\377\377\177\77\77\77\37\37\77\77\77\177\377\377\376\374\374\370\340" "\200\0\0\0\0\0\0\77\377\377\377\377\377\377\340\200\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\177" "\37\0\0\0\0\0\0\0\0\201\303\347\357\377\377\377\377~~||\374\376\377\377\377\377\357\307\303\201\0" "\0\0\0\0\0\340\370\376\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\1\3\7\37\377\377\377\377\376" "\374\360\0\0\0\17\77\177\377\377\377\377\376\370\360\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\177" "\77\17\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\377\377\177\77\77\37\37\37\77\77\177\377\377\376\374\370\360\340\300" "\0\0\0\0\0\0\374\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377\377\377\377" "\376\360\0\0\0\0\3\37\177\377\377\377\377\376\370\360\340\300\300\300\300\300\340\340\360\370\374\377\377\377\377\377" "\377\377\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\7\7\3\303\377\377\377\377\377" "\377\37\0\0\0\0\0\200\340\360\370\370\370\340\340\300\300\300\300\300\300\340\340\360\370\376\377\377\377\177\37\17" "\1\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\340\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77\177\177\177\177\77\77\17\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\360\370\370\370\370\360\360\340\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\17\377\377\377\377\377\377\177\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\30<>\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\360\360\370" "\370\374\374\376\0\0\0\200\200\300\300\340\340\360\360\370\370\374\374\376\376\177\177\77\77\37\37\17\17\7\7\3" "\3\1\1\0~\177\377\377\377\377\377\377\367\347\343\303\201\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\1\1\3\3\7\7\17\37\37\77\77\177\177\376\376\374\374\370\370\360\360\340\340\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\37\77\77" "\177\177\377\376\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\374\374\370\370\360\360\340\340\300\300\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\1\1\3\3\3\7\7\17\17\37\37\77\77\177\177\376\376\374\374\370\370\360\360\340\340\300\300\200" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\201\201\303\303\347\347\377\377\377\377\377" "\377\377\177~\0\0\200\200\300\300\340\340\360\360\370\370\374\376\376\377\177\177\77\37\37\17\17\7\7\3\1\1" "\0\0\0\0\377\377\177\77\77\37\37\17\17\7\3\3\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\300\300\340\340\340\360\360\360\360\360\360\360\360\340\340\300\300\200\0\0\0" "\0\0\0\0\0\30<~\377\377\377\177\77\37\17\7\7\7\3\3\3\7\7\17\37\77\377\377\377\377\376\370" "\340\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\377\377\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\374\376\377\377\377\177\77\37\17\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\37\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\370\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\376\376\377\177\77\77\77\37\37\37\37\77\77\77\177\177\376\374\374\370" "\360\300\200\0\360\376\377\377\377\377\37\7\3\1\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\373\377\377" "\377\377\377\370\377\377\377\377\377\0\0\0\0\0\370\376\377\377\377\377\17\7\3\3\1\1\1\1\1\201\377\377" "\377\377\377\377\177\377\377\377\377\374\300\0\0\0\3\17\77\177\177\377\377\374\374\374\370\370\374\374\376\177\377\377" "\377\377\377\377\0\3\7\37\77\177\377\377\376\374\370\360\360\340\340\300\300\301\301\301\301\301\301\300\340\340\360\360" "\300\200\0\0\0\0\0\0\0\0\0\1\3\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7" "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\340\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377\377\177\17\37\377\377\377\377\376\360\300\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\360\376\377\377\377\377\37\3\0\0\0\0\7\37\377\377\377\377\376\370\300\0\0" "\0\0\0\0\0\200\340\374\377\377\377\377\177\177~~~~~~~~~~\177\177\377\377\377\377\376\370" "\300\0\0\0\374\377\377\377\377\377\37\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\77\377\377\377" "\377\377\370\340\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\376\374" "\360\300\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\200\200\200\300\340\360\377\377\377\377\377" "\177\37\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\177\177\177\377\377\377\377\363\341\340" "\200\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\377\377\377\377" "\377\377\374\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\360\360\360\370\374\377\377\377\377\177" "\77\17\3\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\370\370\374\376\376\377\177\177\77\77\37\37\37\77\77\77\177\377\377\376\374\374" "\370\360\340\200\200\360\376\377\377\377\377\377\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\17" "\17\7\7\3\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\17\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\17\77\177\377\377\377\377\374\370\360\340\340\300\300\300\300\300\300\300\340\360\360\370\376\376" "\376\374\70\30\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374\370\360" "\340\200\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\177\377\377\377" "\377\377\374\340\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\377\377\377" "\377\377\177\7\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\360\360\360\370\370\374\376\377\377\377\177\77\17" "\7\1\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\77\177\377\376\376\374\370" "\360\340\300\0\360\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\17\7" "\3\1\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\0\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\377\377\377" "\377\377\377\0\0\7\17\77\177\377\377\377\376\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\377\377\377" "\377\377\377\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\3" "\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\0\0\0\0\0\0\0\0\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\200\200\0\0\0\0\0\0\0\0\0\0\37\37\37\37\37\37\37\37\377\377\377\377\377\377\377\37\37\37\37" "\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0" "\0\0\0\0@\340\360\374\376\370\360\340\300\300\300\300\300\300\340\360\376\377\377\377\377\177\77\7\0\0\0\0" "\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300" "\300\300\300@\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\360\370\374\376\377\377\177\77\37\17" "\7\1\0\0\377\377\377\377\377\377\377\0\0\200\300\360\370\374\376\377\377\177\77\17\7\3\1\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377~\77\37\77\377\377\377\377\371\360\340\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\1\7\17\77\177\377\377\377\376\370\360\340\200\0\0\0" "\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\1\3\17\37\77\377\377\377\377\376\370" "\360\300\200\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300\300\377\377\377\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\300\360\374\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\37\177\377\377\376\370\340\0\0\0\0\300\360\374\377\377\177\37\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\1\7\37\177\377\377\374\374\377\377\177\37\7\1\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\1\7\7\7\7\1\0\0\0\0\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377" "\377\377\377\377\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\300\377\377\377\377\377\377\377\377\376\370\340\300\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\7\37\77\377\377\377\374\360\340\200\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\3\17\77\177\377\377\376\370\340\300\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\1\7\37\177\377\377\377\374\360\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\377" "\377\377\377\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\300\360\370\374\374\376\376\377\177\77\77\77\37\37\37\77\77\177\177\377\376\376\374\370\370" "\340\300\200\0\370\376\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\177\377\377" "\377\377\377\376\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\374\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\376\374\360\360\340\300\300\300\300\300\300\300\340\360\370\374\377\377\377\377" "\177\77\17\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374" "\370\360\200\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\301\377\377\377\377" "\377\377\177\0\0\377\377\377\377\377\377\377\374\374\374\374\374\374\374\374\374\374\374\376\376\377\177\177\177\77\37\17" "\7\3\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\300\340\370\374\376\376\377\377\177\77\37\37\37\17\17\17\37\37\77\77\177\377\377\376\374\370" "\360\340\200\0\374\377\377\377\377\377\377\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\77\377\377" "\377\377\377\376\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377" "\377\377\377\377\377\377\377\377\377\377\376\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\377\377" "\377\377\377\377\0\3\17\77\177\377\377\377\377\374\370\360\340\340\340\300\300\300\340\340\360\360\370\376\377\377\177\77" "\37\7\3\0\0\0\0\0\0\0\1\3\3\7\7\17\17\377\377\377\377\377\377\317\207\207\7\3\1\0\200\200" "\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\37\77\77\77\77\77\77\77\77\77" "\77\77\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17\17\37\37\37\77\177\377\377\377\376\374" "\370\340\200\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377" "\377\377\77\0\0\377\377\377\377\377\377\377\374\374\374\374\374\374\374\374\374\374\374\376\376\377\177\177\77\37\37\17" "\3\1\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\1\7\17\77\377\377\377\377\374\360\340\200\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376" "\370\340\200\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\77\177\377\376\376\374\374\370" "p \0\0\0\0\77\377\377\377\377\377\377\361\300\200\0\0\0\0\0\0\0\0\0\0\0\1\7\7\3\1" "\0\0\0\0\0\0\0\0\3\7\7\17\37\37\77\77\177\177\376\376\374\374\374\370\370\360\360\340\340\300\300\200" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\3\7\17\37\377\377\377\377" "\377\374\360\0\0p\374\376\377\376\374\370\360\340\340\300\300\300\300\300\300\300\300\340\340\360\370\374\377\377\377\377" "\177\77\7\0\0\0\0\1\3\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\300\300\17\17\17\17\17\17\17\17\17\17\17\17\377\377\377\377\377\377\377\17\17\17\17\17\17\17\17\17" "\17\17\17\17\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200" "\200\200\200\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\3\37\177\377\377\377\377\377\370\360\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\377" "\77\37\3\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300" "\300\300\300\300\37\377\377\377\377\377\376\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\376\377\377" "\377\377\77\7\0\0\3\37\377\377\377\377\377\374\340\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\177" "\17\1\0\0\0\0\0\0\0\7\77\377\377\377\377\377\370\300\0\0\0\0\200\360\377\377\377\377\177\17\1\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\77\377\377\377\377\376\360\340\374\377\377\377\377\37\3\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\17\177\377\377\377\377\377\377\77\7\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7\1\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200" "\300\300\300\300\377\377\377\377\377\340\0\0\0\0\0\0\0\300\374\376\376\376\360\200\0\0\0\0\0\0\300\377" "\377\377\377\377\177\377\377\377\377\377\360\0\0\0\0\300\374\377\377\377\377\377\377\377\370\200\0\0\0\300\377\377" "\377\377\377\17\0\37\377\377\377\377\377\374\0\340\376\377\377\377\37\3\7\77\377\377\377\377\370\300\340\377\377\377" "\377\377\3\0\0\0\7\377\377\377\377\377\377\377\377\377\37\1\0\0\0\0\3\77\377\377\377\377\377\377\377\377" "\77\0\0\0\0\0\0\1\177\377\377\377\377\377\37\1\0\0\0\0\0\0\0\0\3\77\377\377\377\377\377\17" "\0\0\0\0\0\0\0\0\0\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\3\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\300\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300" "\300\300\300\0\0\3\17\77\177\377\377\377\376\370\340\200\0\0\0\0\0\0\0\200\340\370\376\377\377\377\177\37" "\7\3\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374\360\300\360\370\376\377\377\377\177\37\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\377\377\377\377\377\303\200\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\340\360\374\377\377\377\377\77\17\3\17\77\177\377\377\377\376\370\340\300\0\0" "\0\0\0\0\0\300\340\370\376\377\377\377\177\77\17\3\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374" "\370\340\200\0\7\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7" "\7\7\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\300\300\300\300\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300" "\300\300\300\300\7\37\177\377\377\377\377\374\360\300\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377" "\77\17\3\0\0\0\0\1\7\37\177\377\377\377\377\374\360\300\0\0\0\200\360\374\377\377\377\377\77\17\3\0" "\0\0\0\0\0\0\0\0\0\0\0\1\7\37\77\377\377\377\377\374\376\377\377\377\177\17\3\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\300\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\317\357\377\377\377\377\377\77" "\37\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\370\376\377\377\377\177\37\7\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\177\37\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\360\370\376\377\377\377\177\37\17\3\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\300\360\370\376\377\377\377\377\377\357\343\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\360\360\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "\374\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370" "\370\0\0\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1" "\1\0\0\0\0\20p\370\370\374\374\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376\370\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\376\370\340\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\37\177\377\377\377\377\374\360\300\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\177\377\377\377\377\374\360\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\377\377\370\340" "\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\37\17\17" "\7\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\300\340\370\376\377\377\177\377\377\377\374\370\340\200\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\360\370\376\377\377\177\37\17\3\1\0\0\3\17\77\177\377\377\377\374\360\300\200" "\0\0\0\0\0\0\0\0\1\1\3\3\3\1\0\0\0\0\0\0\0\0\0\0\0\1\7\3\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\340\340\340\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\377\377\377\377\376\374\360\340\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\3\17\37\177\377\377\377\377\377\370\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\17\77\177\177\77\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\340\360\370\370\370\374\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300" "\200\0\0\0\0\0\0\0\1\3\7\7\203\201\201\200\300\300\300\300\300\300\300\300\301\301\307\377\377\377\377\377" "\377\374\0\0\300\360\370\374\376\376\377\377\77\77\37\37\37\37\37\17\17\17\17\17\17\17\17\377\377\377\377\377" "\377\377\0\0\37\77\377\377\377\377\377\374\360\360\340\340\340\340\340\340\340\360\360\370\374\376\377\377\377\377\377\377" "\377\377\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\360\360\360\360\360\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\300\340\340\360\370\370\370\370\370\370\370\370\370\370\360\360\340\340\300\200" "\0\0\0\0\0\377\377\377\377\377\377\377\77\17\7\3\1\1\1\1\1\1\1\3\7\17\37\377\377\377\377\377" "\376\370\340\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377" "\377\377\377\0\0\377\377\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\177" "\77\17\1\0\0\17\17\17\17\17\7\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360" "\340\300\200\0\0\300\370\376\377\377\377\377\177\37\7\3\1\1\0\0\0\0\0\0\0\0\1\1\3\7\77\77" "\37\7\3\1\0\177\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\3\17\37\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\360\360\370\374\374\376" "\374xp\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360" "\360\360\60\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\0\0\200\300\340\360\360\370\370\370\370\370\370\370\370\370\370\360\360\340\300\377\377\377\377\377" "\377\377\0\0\300\370\376\377\377\377\377\177\37\7\3\3\1\1\1\1\1\1\3\3\7\17\177\377\377\377\377\377" "\377\377\0\0\377\377\377\377\377\377\377\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\1\17\77\177\377\377\377\377\374\370\360\340\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300\200" "\0\0\0\0\300\370\376\377\377\377\377\337\307\303\301\301\300\300\300\300\300\300\300\301\301\303\307\377\377\377\377\377" "\376\360\0\0\377\377\377\377\377\377\377\217\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17" "\17\17\0\0\0\7\17\77\177\377\377\377\376\374\370\360\360\340\340\340\340\340\340\340\340\360\360\370\374\376\374x" "\60\0\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\7\7\7\7\7\3\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\370\370\374\374\374\374\374\374\374\374\370\370" "\370\360\340\340\0\0\0\0\0\0\0\0\360\376\377\377\377\377\377\37\7\3\1\1\0\0\0\0\1\1\3\3" "\17\37\77\17\0\360\360\360\360\360\360\360\377\377\377\377\377\377\377\360\360\360\360\360\360\360\360\360\360\360\0\0" "\0\0\0\0\0\3\3\3\3\3\3\3\377\377\377\377\377\377\377\3\3\3\3\3\3\3\3\3\3\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\340\360\370\370\374\374\376~>>>>>>>~\376\374\374\370\370\374\374~~~" "~~~~~\377\377\377\377\377\377\341\200\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377~\0\0" "\0\0\0\0\0\1\3\307\357\377\377\377\377\177\177~~~~~\177\177\77\77\37\37\17\7\3\0\0\0" "\0\0\0\0\0\0\217\337\377\377\377\377\376\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\370\370\370\360" "\340\300\0\0\376\377\377\377\377\377\347\301\200\200\200\0\0\0\0\0\0\0\200\200\200\300\301\341\377\377\377\377" "\377\377\77\0\1\3\7\17\17\37\37\37\37\77\77\77\77\77\77\77\77\77\77\77\37\37\37\37\17\17\7\3" "\1\0\0\0\0\0\370\370\370\370\370\370\370\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\300\340\360\370\370\374\374\374\374\374\374\374\374\374\374\370\360\360\340" "\200\0\0\0\0\0\377\377\377\377\377\377\377\77\17\7\3\1\1\0\0\0\0\0\1\3\17\377\377\377\377\377" "\377\374\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\360\360\340\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\17\7\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\0" "\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\360\370\370\370\370\370\360\340\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\17\17\17\7\7\3\0\0" "\0\0\0\0\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\300\340\360\340\300\200\0\0\0\0\0\0\0\200\300\340\377\377\377\377\377\377\77\0\0\0" "\0\0\0\0\2\7\17\37\37\77\77\77\177\177\177~~\177\177\77\77\77\37\37\17\7\3\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\374\374\374|<" "\34\14\4\0\0\377\377\377\377\377\377\377\0\200\300\340\360\370\374\376\377\177\77\37\17\7\3\1\1\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\77\37\17\7\17\37\177\377\377\377\376\374\360\340\300\200\0\0\0\0" "\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\1\3\17\37\77\177\377\377\377\376\370\360" "\340\300\200\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7" "\7\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\1\1\1\1\1\1\1\1\1\1\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\340\340\340\340\340\340\340\340\377\377\377\377\377\377\377\340\340\340\340\340\340\340\340\340" "\0\0\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\376\376\376\376\376\376\374\374~~~\376\376\376\376\374\370\360\370\374\374~~~\376\376\376\376" "\374\374\360\300\377\377\377\377\377\377\3\0\0\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\1\377\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377" "\377\377\377\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\377\377\377" "\377\377\377\377\3\3\3\3\3\3\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\3\3\3" "\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\376\376\376\376\376\376\376\340\360\370\374\374\376~~~~~\376\376\376\376\374\370\370\360" "\300\0\0\0\0\0\377\377\377\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\0\1\7\377\377\377\377\377" "\377\376\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\3\3\3\3" "\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\360\360\370\370\374\374\374\374\374\374\374\374\374\374\374\370\370\360\360\340\300" "\200\0\0\0\300\370\376\377\377\377\377\177\17\7\3\1\1\0\0\0\0\0\0\1\1\3\7\37\377\377\377\377" "\377\376\370\300\177\377\377\377\377\377\377\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\377\377\377" "\377\377\377\177\0\3\17\37\77\177\377\377\377\374\370\360\360\340\340\340\340\340\340\360\360\370\374\376\377\377\377\177" "\77\17\3\0\0\0\0\0\0\0\0\1\3\3\3\7\7\7\7\7\7\7\7\7\7\7\3\3\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\376\376\376\376\376\376\376\360\370\370\374|~~~~~~\376\376\376\376\374\374\370\360\340" "\300\200\0\0\0\377\377\377\377\377\377\377\17\3\1\0\0\0\0\0\0\0\0\0\0\1\3\17\177\377\377\377" "\377\377\376\360\0\377\377\377\377\377\377\377\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\377\377\377" "\377\377\377\77\0\377\377\377\377\377\377\377\177\376\370\370\360\360\360\360\360\360\360\370\370\374\376\377\377\377\177\77" "\37\7\1\0\0\377\377\377\377\377\377\377\0\0\1\1\3\3\3\3\3\3\3\3\3\3\1\1\0\0\0\0" "\0\0\0\0\0\77\77\77\77\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\340\360\370\370\374\374\376\376~~~~~~~\376\374\374\370\360\376\376\376\376" "\376\376\376\0\360\376\377\377\377\377\377\77\7\1\1\0\0\0\0\0\0\0\0\0\0\1\3\177\377\377\377\377" "\377\377\377\0\77\377\377\377\377\377\377\360\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\377\377\377\377" "\377\377\377\0\0\1\7\37\77\177\377\377\377\376\374\370\370\360\360\360\360\360\360\370\374\374\377\177\377\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\1\1\3\3\3\3\3\3\3\3\3\3\1\0\0\0\377\377\377\377" "\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77\77\77\77" "\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\376\376\376\376\376\376\376\340\360\370\374\374\376\376~~~~~~~\376\376\374" "\374\370\370\60\0\0\0\0\377\377\377\377\377\377\377\177\37\7\3\1\0\0\0\0\0\0\0\0\0\0\1\3" "\7\3\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\3\3\3\3\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\200\300\340\340\360\360\370\370\370\370\370\370\374\370\370\370\370\370\370\360\360\340\300\300" "\200\0\0\0\0\0\0>\377\377\377\377\377\377\347\303\201\201\201\1\1\1\1\1\3\3\7\17\37\77\77\17" "\7\1\0\0\0\0\0\0\0\1\3\7\7\17\17\17\37\37\37\77\77\77>~~\376\374\374\370\370\360\340" "\300\200\0\0\0`\370\374\377\376\370\370\360\340\340\300\300\300\300\300\300\300\300\300\340\340\361\377\377\377\377\377" "\177\77\0\0\0\0\0\1\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\374\376\376\36\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\370\370\370\370\370\370\370\370\370\377\377\377\377\377\377\370\370\370\370\370\370\370\370\370\370\370" "\0\0\0\0\0\0\1\1\1\1\1\1\1\371\377\377\377\377\377\377\7\1\1\1\1\1\1\1\1\1\1\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\77\377\377\377\377\377\377\370\340\300\300\300\300\300\300\340\340\360\360" "\370\370\300\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7" "\3\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\370\370\370\370\370\370\370\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\370\370\370\370\370" "\370\370\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377" "\377\377\0\0\0\7\77\377\377\377\377\377\376\370\340\340\300\300\300\300\300\300\340\360\360\374\377\377\377\377\377\377" "\377\377\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\3\3\1\17\17\17\17\17" "\17\17\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34\374\374\374\374\374\374\354\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\374\374\374" "\374\374<\0\0\0\3\37\177\377\377\377\377\374\360\200\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\77" "\17\1\0\0\0\0\0\0\0\1\17\77\377\377\377\377\376\360\300\0\0\200\340\374\377\377\377\177\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\1\7\37\377\377\377\377\376\376\377\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\374\374\374\374\374\0\0\0\0\0\0\0\0\200\340\340\340\340\340\0\0\0\0\0\0\0\0\374" "\374\374\374\374\77\377\377\377\377\377\340\0\0\0\0\200\370\377\377\377\377\377\377\377\370\200\0\0\0\0\370\377" "\377\377\377\377\0\7\177\377\377\377\377\376\300\200\370\377\377\377\177\7\1\17\377\377\377\377\374\340\0\370\377\377" "\377\377\177\1\0\0\0\17\377\377\377\377\377\377\377\377\77\7\0\0\0\0\0\7\177\377\377\377\376\377\377\377" "\377\17\0\0\0\0\0\0\1\7\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0\3\7\7\7\7\7\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\4\34<\374\374\374\374\374\360\340\300\0\0\0\0\0\0\0\0\0\300\340\370\374\374\374\374|" "\34\14\0\0\0\0\0\0\1\3\17\37\77\377\377\377\376\370\360\300\360\370\376\377\377\177\77\17\7\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\300\340\361\377\377\377\377\177\377\377\377\377\370\340\300\200\0\0\0\0" "\0\0\0\0\0\0\200\340\360\374\376\377\377\377\77\37\7\3\0\0\0\3\7\37\77\177\377\377\376\374\370\340" "\300\200\0\0\6\7\7\7\7\7\7\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\7\7\7\7" "\7\7\6\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\34|\374\374\374\374\374\374\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\374\374\374\374" "\374\374<\4\0\0\1\17\77\377\377\377\377\376\360\300\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\77" "\7\1\0\0\0\0\0\0\0\0\7\37\177\377\377\377\376\370\340\0\0\200\340\374\377\377\377\377\37\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\77\377\377\377\377\374\377\377\377\177\37\3\0\0\0\0\0" "\0\0\0\0\200\340\300\0\0\0\0\0\0\200\300\340\374\377\377\377\377\177\17\3\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\177\177~~\177\177\177\77\77\37\37\17\7\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374" "|\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\374\377\377\177\77\37\17\7\1\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\360\370\376\377\377\377\77\37\17\7\3\1\0\0\0\0\0\0\0" "\0\0\0\0\300\340\360\370\376\377\377\377\377\377\357\347\343\341\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\340\360\360\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\340\340\340\360\360\360\360\360\360\360\360\360\360\360" "\0\0\0\0\0\0\0\0\0\0\0\0\340\374\377\377\377\377\377\77\17\7\7\3\3\3\3\3\3\3\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\340\340\340\340\360\360\370\374\377\377\377\177\77\17\3\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\7\7\7\7\7\17\17\77\377\377\377\376\374\370\300\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\177\377\377\377\377\377\377\360\200\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\3\7\17\37\77\77\77\177\177\177\177~~~~~~~~" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\360\360\360\360\360\360\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\360\360\360\360\360\360\360\360\360\360\360\340\340\340\300\300\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\3\3\3\3\3\3\3\3\3\7\7\17\37\377\377\377\377\377\374\360\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\17\37\177\177\377\377\376\370\360\360\340" "\340\340\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\376\377\377\377\177\37\17\7\7" "\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\377\377\377\377\377\377\177\0\0\0\0\0" "\0\0\0\0\0\0\0~~~~~~~~~\177\177\177\177\77\77\37\17\7\3\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0`\360\370\370\374\374\376\376~~~~\376\376\376\374\374\370\370\360\360\340\340\340\360\360\370\374" "\376\374|\30\0\0\1\1\3\1\0\0\0\0\0\0\0\0\1\1\3\3\7\7\7\7\7\7\7\3\3\1" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Inconsolata LGC-Bold-R-Normal--62-620-72-72-P-301-ISO10646-1 Copyright: Original Roman version created by Raph Levien using his own tools and FontForge. Copyright 2006 Raph Levien. Hellenisation of the Roman font, by Dimosthenis Kaponis, using FontForge. Hellenic glyphs Copyright 2010-2012 Dimosthenis Kaponis. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Cyrillic glyphs added by MihailJP, using FontForge. Cyrillic glyphs Copyright 2012 MihailJP. Released under the SIL Open Font License, http://scripts.sil.org/OFL. Emboldened by MihailJP. Some glyphs modified by Greg Omelaenko, using FontForge. Glyphs: 18/658 BBX Build Mode: 3 */ const uint8_t u8x8_font_inb46_4x8_n[6916] U8X8_FONT_SECTION("u8x8_font_inb46_4x8_n") = " :\4\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\300\300\300\300\300@\0\0\0\0\0\0\0\0" "\0\0\0\0\0\300\340\340\300\300\200\200\0\0\0\0\37\377\377\377\377\377\377\0\0\0\0\0\200\200\300\300" "\340\300\0\0\16\17\17\17\37\37\37\37\77\77\276\376\374\377\377\377\377\377\374\376\276>\77\37\37\37\37\17" "\17\17\17\10\0\0\0\200\300\340\360\370\374\377\377\177\77\17\7\3\7\17\77\177\377\377\376\370\360\340\300\200" "\0\0\0\0\0\0\0\3\3\7\17\17\7\3\1\0\0\0\0\0\0\0\0\0\1\3\17\17\17\7\3\3" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\340\340\340\340\340\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\77\77\77\77\77\77\77\77\77\77\77\77\77\377\377\377\377\377\377\77\77\77\77\77\77\77\77\77" "\77\77\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\17\17\17\17\17\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\17\37\277\377\377\377\377\377\377\77\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\60x|\376\177\77\37\17\7\3\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0~~~~~~~~~~~~~~~~~~~~~~~~~~" "~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\374\370\370\360" "\360`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\360\374\377\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\7\1\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\370\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\77\17\3\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\300\360\374\377\377\377\377\177\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\14\17\37\37\77\77\37\7\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\376\377\377\177\77\77\37\37\77\77\177\376\376\374\370\360\340\200\0" "\0\0\0\0\0\360\376\377\377\377\377\377\37\7\1\0\0\0\0\0\0\200\300\340\371\377\377\177\377\377\377\376" "\360\0\0\0\377\377\377\377\377\377\377\1\0\0\0\0\300\340\370\374\376\177\77\17\7\3\1\0\377\377\377\377" "\377\377\0\0\17\377\377\377\377\377\377\370\360\374\376\177\77\17\7\3\0\0\0\0\0\0\0\360\377\377\377\377" "\377\17\0\0\0\0\7\37\77\177\377\377\377\377\374\360\340\340\300\300\300\300\340\340\370\374\377\377\377\177\37\7" "\1\0\0\0\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\7\7\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\300\300\300\300\300\300\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0p\370\370\374\374~~\177\177\77\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\300\300\300\300\300\300\300\300\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0`\360\370\374\376\377\377\77\77\37\37\37\17\17\17\37\37\77\77\177\377\377\376\376\374\360" "\340\200\0\0\0\0\0\0\0\1\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\303\377\377\377\377\377" "\377\77\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\340\340\360\370\376\377\377\177\77\37\17\7" "\1\0\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\377\377\177\77\37\17\7\3\1\0\0\0\0\0\0" "\0\0\0\0\0\0\300\360\374\376\377\377\377\377\357\347\343\341\340\340\340\340\340\340\340\340\340\340\340\340\340\340" "\360\360\0\0\0\0\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7\7" "\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\20\70|\374\376\376\177\177\77\77\37\37\37\77\77\77\177\177\377\376\376\374\370\360\340" "\200\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\377" "\77\0\0\0\0\0\0\0\0\0\0\0\0\0||||||~\376\376\377\377\377\377\377\347\303\201\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\3\17\377\377\377\377\377" "\376\360\0\0\0\0@\360\370\374\376\376\360\360\340\300\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377\177" "\37\7\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\300\300\300\300\300\300\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\360\374\376\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340\370\374\377\377\77\37\7\3\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\200\340\360\374\376\377\377\77\37\7\1\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0|\177\177\177\177\177\177\177~~~~~~~~~~\377\377\377\377\377\377\377~~~" "~~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\7\7\7\7\7\7\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200" "\200\0\0\0\0\0\0\0\360\377\377\377\377\377\377\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37\37" "\37\0\0\0\0\0\0\0\377\377\377\377\377\377\377\300\300\340\340\340\340\340\340\340\340\300\300\200\200\0\0\0" "\0\0\0\0\0\0\0<\77\177\177\377\177\77\37\17\17\17\7\7\7\7\17\17\37\77\177\377\377\377\376\374" "\370\340\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\20\60x\374\376\376\377\374\360\360\340\340\300\300\300\300\300\300\340\340\360\370\377\377\377\377\377" "\77\37\3\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\17\17\7\7\3\1\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\300\340\360\370\374\376\376\377\177\177\77\77\77\37\37\37\77\77\177\377\376\376|" "<\30\0\0\0\0\300\370\377\377\377\377\377\177\7\203\200\300\300\300\300\300\300\300\300\300\200\200\0\1\0\0" "\0\0\0\0\0\0\377\377\377\377\377\377\377\376\177\77\77\37\37\17\17\17\17\17\37\77\177\377\377\377\376\374" "\360\340\0\0\0\0\177\377\377\377\377\377\377\301\0\0\0\0\0\0\0\0\0\0\0\0\0\1\377\377\377\377" "\377\377\377\0\0\0\0\3\37\77\377\377\377\377\376\370\360\340\300\300\300\300\300\300\340\360\370\376\377\377\377\377" "\77\37\3\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300\300" "\300\0\0\0\0\0\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\17\217\377\377\377\377\377\377\177\37" "\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\360\376\377\377\377\377\177\17\3\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\340\370\377\377\377\377\377\77\17\1\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\300\370\377\377\377\377\377\177\17\1\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\6\7\7\7\7\7\7\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\370\374\374\376\377\377\177\77\77\77\37\37\77\77\77\177\377\377\376\374\374\370\340" "\200\0\0\0\0\0\0\77\377\377\377\377\377\377\340\200\0\0\0\0\0\0\0\0\200\341\377\377\377\377\377\177" "\37\0\0\0\0\0\0\0\0\201\303\347\357\377\377\377\377~~||\374\376\377\377\377\377\357\307\303\201\0" "\0\0\0\0\0\340\370\376\377\377\377\377\37\7\3\1\0\0\0\0\0\0\0\1\3\7\37\377\377\377\377\376" "\374\360\0\0\0\17\77\177\377\377\377\377\376\370\360\340\300\300\300\300\300\300\300\340\340\360\374\377\377\377\377\177" "\77\17\0\0\0\0\0\0\0\1\3\7\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\7\3\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\200\340\360\370\374\376\377\377\177\77\77\37\37\37\77\77\177\377\377\376\374\370\360\340\300" "\0\0\0\0\0\0\374\377\377\377\377\377\377\7\0\0\0\0\0\0\0\0\0\0\0\1\17\377\377\377\377\377" "\376\360\0\0\0\0\3\37\177\377\377\377\377\376\370\360\340\300\300\300\300\300\340\340\360\370\374\377\377\377\377\377" "\377\377\0\0\0\0\0\0\0\0\1\3\3\7\7\17\17\17\17\17\17\17\17\7\7\3\303\377\377\377\377\377" "\377\37\0\0\0\0\0\200\340\360\370\370\370\340\340\300\300\300\300\300\300\340\340\360\370\376\377\377\377\177\37\17" "\1\0\0\0\0\0\0\1\1\3\7\7\17\17\17\17\17\17\17\17\17\17\17\7\7\3\3\1\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\300\300\340\340\340\340\300\300\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\77\77\177\177\177\177\77\77\17\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\340\340\360\360\360\360\340\340\200\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\37\37\77\77\77\77\37\37\7\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0"; /* Fontname: -FreeType-Press Start 2P-Medium-R-Normal--8-80-72-72-P-69-ISO10646-1 Copyright: (c) 2011 Cody Glyphs: 192/556 BBX Build Mode: 3 */ const uint8_t u8x8_font_pressstart2p_f[1796] U8X8_FONT_SECTION("u8x8_font_pressstart2p_f") = " \377\1\1\0\0\0\0\0\0\0\0\0\0__\7\0\0\0\0\7\7\0\7\7\0\0\42\177\177\42" "\177\177\42\0$.*\177*:\20\0F%\23\10dR\61\0\66\177I_v`P\0\0\0\7\7" "\0\0\0\0\0\0\34>cA\0\0\0Ac>\34\0\0\0\10*>\34>*\10\0\0\10\10>" ">\10\10\0\0\200\340`\0\0\0\0\0\10\10\10\10\10\10\0\0\0``\0\0\0\0@ \20\10" "\4\2\1\0\34>aAC>\34\0\0@B\177\177@@\0bsyY]OF\0 aIM" "O{\61\0\30\34\26\23\177\177\20\0'gEEE}\70\0<~KIIy\60\0\3\3qy" "\15\7\3\0\66OMYYv\60\0\6OIIi\77\36\0\0\0\66\66\0\0\0\0\0@v\66" "\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\24\0\0Ac\66\34\10\0\0\6\7SS" "[\17\6\0>A]U]Q\36\0|~\23\21\23~|\0\177\177III\177\66\0\34>cA" "Ac\42\0\177\177AAc>\34\0\177\177IIIIA\0\177\177\11\11\11\11\1\0\34>cA" "Iyy\0\177\177\10\10\10\177\177\0\0AA\177\177AA\0 `@@@\177\77\0\177\177\30<" "vcA\0\0\177\177@@@@\0\177\177\16\34\16\177\177\0\177\177\16\34\70\177\177\0>\177AA" "A\177>\0\177\177\21\21\21\37\16\0>\177AQq\77^\0\177\177\21\61yoN\0&oII" "Kz\60\0\0\1\1\177\177\1\1\0\77\177@@@\177\77\0\17\37\70p\70\37\17\0\177\177\70\34" "\70\177\177\0cw>\34>wc\0\0\7\17xx\17\7\0aqy]OGC\0\0\0\177\177" "AA\0\0\1\2\4\10\20 @\0\0AA\177\177\0\0\0\0\2\3\1\3\2\0\0\200\200\200\200" "\200\200\200\0\0\0\0\1\2\0\0\0 tTTT|x\0\77\177DDD|\70\0\70|DD" "DDD\0\70|DDD\177\177\0\70|TTT\134\30\0\0\4\4~\177\5\5\0\30\274\244\244" "\244\374|\0\177\177\4\4\4|x\0\0@D}}@@\0\0\200\200\204\375}\0\0\177\177\30\70" "|lD\0\0@A\177\177@@\0|\4||\4|x\0||\4\4\4|x\0\70|DD" "D|\70\0\374\374$$$<\30\0\30<$$$\374\374\0\0||\10\4\4\4\0H\134TT" "Tt \0\0\4\4\177\177\4\4\0<|@@@||\0\0\34<``<\34\0<@||" "@||\0ll\70\70\70ll\0\34\274\240\240\240\374|\0Ddt|\134LD\0\0\0\10>" "wA\0\0\0\0\0\177\177\0\0\0\0Aw>\10\0\0\0\10\4\14\34\30\20\10\0\0``\0" "``\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0p}}\0\0\0\34>\42\177\42\66\24\0H~\177I" "IKB\0\0\42\34\42\42\34\42\0\0+/||/+\0\0\0\0ww\0\0\0\0&oU" "U{\62\0\0\1\1\0\1\1\0\0\34\0|~\35;r}|\0\70|EFD|\70\0\70|DF" "E|\70\0\70~GEG~\70\0\70~EGF}\70\0\70}EDE}\70\0\0\42\24\10" "\24\42\0\0>\177QIE\177>\0<|AB@|<\0<|@BA|<\0\70zCA" "Cz\70\0<}A@A}<\0\0\14\34rq\34\14\0\177\177\42\42\42>\34\0\0~\177!" "I\177\66\0 tUVT|x\0 tTVU|x\0 vWUW~x\0 vUW" "V}x\0 uUTU}x\0 tVUV|x\0 tT|T\134\30\0\30<\244\244" "d$$\0\70|UVT\134\30\0\70|TVU\134\30\0\70~WUW^\30\0\70}UT" "U]\30\0\0@Izx@@\0\0@Hzy@@\0\0BKy{B@\0\0AE|" "}A@\0\64{KNNy\60\0|~\5\7\6}x\0\70|EFD|\70\0\70|DF" "E|\70\0\70~GEG~\70\0\70~EGF}\70\0\70}EDE}\70\0\0\10\10*" "*\10\10\0\70|dTL|\70\0<|AB@||\0<|@BA||\0\70zCA" "Czx\0<}A@A}|\0\34\274\240\242\241\374|\0\377\377$$$<\30\0\34\275\241\240" "\241\375|"; /* Fontname: -FreeType-Press Start 2P-Medium-R-Normal--8-80-72-72-P-69-ISO10646-1 Copyright: (c) 2011 Cody Glyphs: 96/556 BBX Build Mode: 3 */ const uint8_t u8x8_font_pressstart2p_r[772] U8X8_FONT_SECTION("u8x8_font_pressstart2p_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0__\7\0\0\0\0\7\7\0\7\7\0\0\42\177\177\42" "\177\177\42\0$.*\177*:\20\0F%\23\10dR\61\0\66\177I_v`P\0\0\0\7\7" "\0\0\0\0\0\0\34>cA\0\0\0Ac>\34\0\0\0\10*>\34>*\10\0\0\10\10>" ">\10\10\0\0\200\340`\0\0\0\0\0\10\10\10\10\10\10\0\0\0``\0\0\0\0@ \20\10" "\4\2\1\0\34>aAC>\34\0\0@B\177\177@@\0bsyY]OF\0 aIM" "O{\61\0\30\34\26\23\177\177\20\0'gEEE}\70\0<~KIIy\60\0\3\3qy" "\15\7\3\0\66OMYYv\60\0\6OIIi\77\36\0\0\0\66\66\0\0\0\0\0@v\66" "\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\24\0\0Ac\66\34\10\0\0\6\7SS" "[\17\6\0>A]U]Q\36\0|~\23\21\23~|\0\177\177III\177\66\0\34>cA" "Ac\42\0\177\177AAc>\34\0\177\177IIIIA\0\177\177\11\11\11\11\1\0\34>cA" "Iyy\0\177\177\10\10\10\177\177\0\0AA\177\177AA\0 `@@@\177\77\0\177\177\30<" "vcA\0\0\177\177@@@@\0\177\177\16\34\16\177\177\0\177\177\16\34\70\177\177\0>\177AA" "A\177>\0\177\177\21\21\21\37\16\0>\177AQq\77^\0\177\177\21\61yoN\0&oII" "Kz\60\0\0\1\1\177\177\1\1\0\77\177@@@\177\77\0\17\37\70p\70\37\17\0\177\177\70\34" "\70\177\177\0cw>\34>wc\0\0\7\17xx\17\7\0aqy]OGC\0\0\0\177\177" "AA\0\0\1\2\4\10\20 @\0\0AA\177\177\0\0\0\0\2\3\1\3\2\0\0\200\200\200\200" "\200\200\200\0\0\0\0\1\2\0\0\0 tTTT|x\0\77\177DDD|\70\0\70|DD" "DDD\0\70|DDD\177\177\0\70|TTT\134\30\0\0\4\4~\177\5\5\0\30\274\244\244" "\244\374|\0\177\177\4\4\4|x\0\0@D}}@@\0\0\200\200\204\375}\0\0\177\177\30\70" "|lD\0\0@A\177\177@@\0|\4||\4|x\0||\4\4\4|x\0\70|DD" "D|\70\0\374\374$$$<\30\0\30<$$$\374\374\0\0||\10\4\4\4\0H\134TT" "Tt \0\0\4\4\177\177\4\4\0<|@@@||\0\0\34<``<\34\0<@||" "@||\0ll\70\70\70ll\0\34\274\240\240\240\374|\0Ddt|\134LD\0\0\0\10>" "wA\0\0\0\0\0\177\177\0\0\0\0Aw>\10\0\0\0\10\4\14\34\30\20\10\0\0``\0" "``\0"; /* Fontname: -FreeType-Press Start 2P-Medium-R-Normal--8-80-72-72-P-69-ISO10646-1 Copyright: (c) 2011 Cody Glyphs: 18/556 BBX Build Mode: 3 */ const uint8_t u8x8_font_pressstart2p_n[220] U8X8_FONT_SECTION("u8x8_font_pressstart2p_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34>*\10\0\0\10\10>" ">\10\10\0\0\200\340`\0\0\0\0\0\10\10\10\10\10\10\0\0\0``\0\0\0\0@ \20\10" "\4\2\1\0\34>aAC>\34\0\0@B\177\177@@\0bsyY]OF\0 aIM" "O{\61\0\30\34\26\23\177\177\20\0'gEEE}\70\0<~KIIy\60\0\3\3qy" "\15\7\3\0\66OMYYv\60\0\6OIIi\77\36\0\0\0\66\66\0\0\0"; /* Fontname: -FreeType-Press Start 2P-Medium-R-Normal--8-80-72-72-P-69-ISO10646-1 Copyright: (c) 2011 Cody Glyphs: 64/556 BBX Build Mode: 3 */ const uint8_t u8x8_font_pressstart2p_u[516] U8X8_FONT_SECTION("u8x8_font_pressstart2p_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0__\7\0\0\0\0\7\7\0\7\7\0\0\42\177\177\42" "\177\177\42\0$.*\177*:\20\0F%\23\10dR\61\0\66\177I_v`P\0\0\0\7\7" "\0\0\0\0\0\0\34>cA\0\0\0Ac>\34\0\0\0\10*>\34>*\10\0\0\10\10>" ">\10\10\0\0\200\340`\0\0\0\0\0\10\10\10\10\10\10\0\0\0``\0\0\0\0@ \20\10" "\4\2\1\0\34>aAC>\34\0\0@B\177\177@@\0bsyY]OF\0 aIM" "O{\61\0\30\34\26\23\177\177\20\0'gEEE}\70\0<~KIIy\60\0\3\3qy" "\15\7\3\0\66OMYYv\60\0\6OIIi\77\36\0\0\0\66\66\0\0\0\0\0@v\66" "\0\0\0\0\0\10\34\66cA\0\0\24\24\24\24\24\24\24\0\0Ac\66\34\10\0\0\6\7SS" "[\17\6\0>A]U]Q\36\0|~\23\21\23~|\0\177\177III\177\66\0\34>cA" "Ac\42\0\177\177AAc>\34\0\177\177IIIIA\0\177\177\11\11\11\11\1\0\34>cA" "Iyy\0\177\177\10\10\10\177\177\0\0AA\177\177AA\0 `@@@\177\77\0\177\177\30<" "vcA\0\0\177\177@@@@\0\177\177\16\34\16\177\177\0\177\177\16\34\70\177\177\0>\177AA" "A\177>\0\177\177\21\21\21\37\16\0>\177AQq\77^\0\177\177\21\61yoN\0&oII" "Kz\60\0\0\1\1\177\177\1\1\0\77\177@@@\177\77\0\17\37\70p\70\37\17\0\177\177\70\34" "\70\177\177\0cw>\34>wc\0\0\7\17xx\17\7\0aqy]OGC\0\0\0\177\177" "AA\0\0\1\2\4\10\20 @\0\0AA\177\177\0\0\0\0\2\3\1\3\2\0\0\200\200\200\200" "\200\200\200"; /* Fontname: -FreeType-PC Senior-Medium-R-Normal--8-80-72-72-P-48-ISO10646-1 Copyright: TrueType conversion 2001 codeman38. Glyphs: 192/260 BBX Build Mode: 3 */ const uint8_t u8x8_font_pcsenior_f[1796] U8X8_FONT_SECTION("u8x8_font_pcsenior_f") = " \377\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIof\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346f" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0&oMY" "s\62\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30\177D$\0\0<|@@<|@\0\34<``<\34\0\0<|p\70" "p|<\0Dl\70\20\70lD\0\234\274\240\240\374|\0\0Ldt\134Ld\0\0\10\10>w" "AA\0\0\0\0\0ww\0\0\0AAw>\10\10\0\0\2\3\1\3\2\3\1\0pxLF" "Lxp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0{{\0\0\0\30<$\347\347$$\0h~\177I" "Cf \0\0\0\0\0\0\0\0\0+/\374\374/+\0\0\0\0\0ww\0\0\0@\332\277\245" "\375Y\3\2\0\0\0\0\0\0\0\0~\201\225\261\261\225\201~\0&/)//(\0\10\34\66\42" "\10\34\66\42\10\10\10\10\70\70\0\0\10\10\10\10\10\10\0\0\300\377\177\5\5e\177\77\0\0\0\0" "\0\0\0\0\0\6\17\11\17\6\0\0DD__DD\0\0\0\31\35\27\22\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\200\376~ >\36\0\6\17\11\177\177\1\177\177\0\0\0\30" "\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&/)/&\0\0\42\66\34\10" "\42\66\34\10Oo\60\30lv\373\371o_(\324\262\325\253\221\0\0\0\0\0\0\0\0\60xME" "` \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0y}\26\22\26}y\0px++xp\0\0|~\13\11\177\177I\0\16\237\221\261" "\373J\0\0\0\0\0\0\0\0\0\0D||UUE\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0}}\31\61}}\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\31\24\0\0!uUT|x@\0 tTU}y@\0\2#uUU}{B\0\0\0\0" "\0\0\0\0!uTT}y@\0 tWW|x@\0 tTT||TT\30<\244\244" "\344@\0\0\71}UT\134\30\0\0\70|TU]\31\0\0\2;}UU]\33\2\71}TT" "]\31\0\0\1E}|@\0\0\0\0D}}A\0\0\0\2\3E}}C\2\0\1E||" "A\1\0\0\0\0\0\0\0\0\0\0zz\12\12zp\0\0\62zJHx\60\0\0\60xHJ" "z\62\0\0\62{II{\62\0\0\0\0\0\0\0\0\0\0\62zHHz\62\0\0\10\10kk" "\10\10\0\0\0\0\0\0\0\0\0\0:zB@xx@\0\70x@Bzz@\0:{AA" "{z@\0:z@@zz@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\232\272\240\240" "\372z\0"; /* Fontname: -FreeType-PC Senior-Medium-R-Normal--8-80-72-72-P-48-ISO10646-1 Copyright: TrueType conversion 2001 codeman38. Glyphs: 96/260 BBX Build Mode: 3 */ const uint8_t u8x8_font_pcsenior_r[772] U8X8_FONT_SECTION("u8x8_font_pcsenior_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIof\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346f" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0&oMY" "s\62\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30\177D$\0\0<|@@<|@\0\34<``<\34\0\0<|p\70" "p|<\0Dl\70\20\70lD\0\234\274\240\240\374|\0\0Ldt\134Ld\0\0\10\10>w" "AA\0\0\0\0\0ww\0\0\0AAw>\10\10\0\0\2\3\1\3\2\3\1\0pxLF" "Lxp"; /* Fontname: -FreeType-PC Senior-Medium-R-Normal--8-80-72-72-P-48-ISO10646-1 Copyright: TrueType conversion 2001 codeman38. Glyphs: 18/260 BBX Build Mode: 3 */ const uint8_t u8x8_font_pcsenior_n[220] U8X8_FONT_SECTION("u8x8_font_pcsenior_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIof\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0"; /* Fontname: -FreeType-PC Senior-Medium-R-Normal--8-80-72-72-P-48-ISO10646-1 Copyright: TrueType conversion 2001 codeman38. Glyphs: 64/260 BBX Build Mode: 3 */ const uint8_t u8x8_font_pcsenior_u[517] U8X8_FONT_SECTION("u8x8_font_pcsenior_u") = " _\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIof\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346f" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0&oMY" "s\62\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30" "\10\10\0\0\0\0\200`\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0`\0\0\0\0\0@ \20" "\10\4\2\0\0>aQIE>\0\0DB\177@@\0\0\0bQQIIf\0\0\42AI" "II\66\0\20\30\24R\177P\20\0\0'EEEE\71\0\0A]UU\36\0\0|\22\21\21\22|\0\0A\177III\66\0\0\34\42A" "AA\42\0\0A\177AA\42\34\0\0A\177I]Ac\0\0A\177I\35\1\3\0\0\34\42A" "QQr\0\0\177\10\10\10\10\177\0\0\0A\177A\0\0\0\0\60@@A\77\1\0\0A\177\10" "\24\42A@\0A\177A@@`\0\0\177\1\2\4\2\1\177\0\177\1\2\4\10\177\0\0\34\42A" "A\42\34\0\0A\177I\11\11\6\0\0\36!!\61!^@\0A\177I\31)F\0\0&II" "II\62\0\0\3\1A\177A\1\3\0\77@@@@\77\0\0\17\20 @ \20\17\0\77@@" "\70@@\77\0A\42\24\10\24\42A\0\1\2DxD\2\1\0CaQIECa\0\177AA" "A\0\0\0\1\2\4\10\20 @\0\0AAA\177\0\0\0\10\4\2\1\2\4\10\0\200\200\200\200" "\200\200\200\200\0\0\0\3\4\0\0\0\0 TTTTx@\0\1\177\60HHH\60\0\70DD" "DD(\0\0\60HHH\61\177@\0\70TTTT\30\0\0\0H~I\1\2\0\0\230\244\244" "\244\244x\4\0A\177\10\4\4x\0\0\0D}@\0\0\0\0`\200\200\200\204}\0\0\1\177\20" "(D@\0\0\0A\177@\0\0\0\0|\4\4x\4\4x\0|\10\4\4\4x\0\0\70DD" "DD\70\0\0\204\374\230$$\30\0\0\30$$\230\374\204\0\0D|H\4\4\30\0\0HTT" "TT$\0\0\4\4\77DD \0\0<@@@ |\0\0\14\20 @ \20\14\0<@@" "\70@@<\0D(\20(D\0\0\0\234\240\240\240\240|\0\0DdTLD\0\0\0\10\10\66" "AA\0\0\0\0\0w\0\0\0\0\0\0AA\66\10\10\0\0\2\1\1\2\2\1\0\0pHD" "BDHp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0z\0\0\0\0\0\30$$\347$$\0\0h^I" "AB \0BZ$$$ZB\0\0\25\26|\26\25\0\0\0\0\0w\0\0\0\0@\332\247\245" "\345Y\3\2\0\1\0\0\0\1\0\0~\201\231\245\245\201~\0\0&)))/(\0\0\10\24\42" "\10\24\42\0\0\10\10\10\10\10\70\0\0\10\10\10\10\10\10\0~\201\275\225\251\201~\0\1\1\1\1" "\1\1\1\1\0\6\11\11\6\0\0\0\0DD_DD\0\0\0\22\31\25\22\0\0\0\0\12\21\25" "\12\0\0\0\0\0\0\2\1\0\0\0\200~\20\20\20\16\20\0\6\11\11\177\1\1\177\1\0\0\0\20" "\20\0\0\0\0\0\200\200\240@\0\0\0\22\37\20\0\0\0\0\0&)))&\0\0\0\42\24\10" "\42\24\10\0J/\30(\64*\375 J/\30\210\324\312\251\260\225U*PhT\372@\0\60HE" "@@ \0\1y\24\22\22\24x\0\0x\24\22\22\24y\1\0r)%%)r\0\0y\25\25" "\25\25y\0\0y\24\22\22\24y\0\0p(++(p\0\0|\12\11\11\177II\0\16\221\221" "\261\261J\0\0E}TTD\0\0\0D|TUE\0\0\2E}UUE\2\0\0E|T" "TE\0\0\0\1E|D\0\0\0\0\0D|E\1\0\0\2\1E}E\1\2\0\0\1D|" "D\1\0\0\0I\177IA\42\34\0\0z\11\21\42Cx\0\1\31$BB$\30\0\0\30$B" "B$\31\1\22)EEE)\22\0\0\21)EEE)\21\0\31$BB$\31\0\0\42\24\10" "\24\42\0\0>qYIMG>\0\0=A@@@<\0\0<@@@A=\0\0:AA" "AA:\0\0=@@@@=\0\0\4HpH\5\1\0\0A\177U\24\24\10\0\0~\1\1" "IV \0\0 UUTx@\0\0 TTUy@\0\0\42UUUyB\0\0!UU" "UUy@\0!TTTxA\0\0 TUTx@\0\0 TTx\70TT\0\30$\244" "\244\344@\0\0\70UUTT\30\0\0\70TTUU\30\0\0:UUUU\32\0\0\71TT" "TT\31\0\0\0\1E|@\0\0\0\0\0D}A\0\0\2\1E}A\2\0\0\0\0\1D" "|A\0\0\0\60JJK>\2\0\0z\11\11\12\12q\0\0\60IJHH\60\0\0\60HH" "JI\60\0\0\60JIIJ\60\0\0\62JJJJ\62\0\0\62HHHH\62\0\0\10\10k" "k\10\10\0\270DdTLD:\0\0\70AB@@\70\0\0\70@@DB\70\0\0\70BA" "AB\70\0\0:@@@z@\0\0\30\240\240\240\242z\0\0\201\377\244$$\30\0\0\32\240\240" "\240\240z"; /* Fontname: -FreeType-PxPlus IBM CGAthin-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 96/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcgathin_r[773] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\6_\6\0\0\0\0\0\7\0\0\7\0\0\0\24\177\24" "\24\177\24\0\0$*kk*\22\0\0F&\20\10db\0\60JEM\62HH\0\0\0\4\3" "\0\0\0\0\0\34\42A\0\0\0\0\0\0A\42\34\0\0\0\10*\34\34\34*\10\0\0\10\10>" "\10\10\0\0\0\0\200`\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0`\0\0\0\0\0@ \20" "\10\4\2\0\0>aQIE>\0\0DB\177@@\0\0\0bQQIIf\0\0\42AI" "II\66\0\20\30\24R\177P\20\0\0'EEEE\71\0\0A]UU\36\0\0|\22\21\21\22|\0\0A\177III\66\0\0\34\42A" "AA\42\0\0A\177AA\42\34\0\0A\177I]Ac\0\0A\177I\35\1\3\0\0\34\42A" "QQr\0\0\177\10\10\10\10\177\0\0\0A\177A\0\0\0\0\60@@A\77\1\0\0A\177\10" "\24\42A@\0A\177A@@`\0\0\177\1\2\4\2\1\177\0\177\1\2\4\10\177\0\0\34\42A" "A\42\34\0\0A\177I\11\11\6\0\0\36!!\61!^@\0A\177I\31)F\0\0&II" "II\62\0\0\3\1A\177A\1\3\0\77@@@@\77\0\0\17\20 @ \20\17\0\77@@" "\70@@\77\0A\42\24\10\24\42A\0\1\2DxD\2\1\0CaQIECa\0\177AA" "A\0\0\0\1\2\4\10\20 @\0\0AAA\177\0\0\0\10\4\2\1\2\4\10\0\200\200\200\200" "\200\200\200\200\0\0\0\3\4\0\0\0\0 TTTTx@\0\1\177\60HHH\60\0\70DD" "DD(\0\0\60HHH\61\177@\0\70TTTT\30\0\0\0H~I\1\2\0\0\230\244\244" "\244\244x\4\0A\177\10\4\4x\0\0\0D}@\0\0\0\0`\200\200\200\204}\0\0\1\177\20" "(D@\0\0\0A\177@\0\0\0\0|\4\4x\4\4x\0|\10\4\4\4x\0\0\70DD" "DD\70\0\0\204\374\230$$\30\0\0\30$$\230\374\204\0\0D|H\4\4\30\0\0HTT" "TT$\0\0\4\4\77DD \0\0<@@@ |\0\0\14\20 @ \20\14\0<@@" "\70@@<\0D(\20(D\0\0\0\234\240\240\240\240|\0\0DdTLD\0\0\0\10\10\66" "AA\0\0\0\0\0w\0\0\0\0\0\0AA\66\10\10\0\0\2\1\1\2\2\1\0\0pHD" "BDHp"; /* Fontname: -FreeType-PxPlus IBM CGAthin-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 18/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcgathin_n[220] U8X8_FONT_SECTION("u8x8_font_pxplusibmcgathin_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*\34\34\34*\10\0\0\10\10>" "\10\10\0\0\0\0\200`\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0`\0\0\0\0\0@ \20" "\10\4\2\0\0>aQIE>\0\0DB\177@@\0\0\0bQQIIf\0\0\42AI" "II\66\0\20\30\24R\177P\20\0\0'EEEE\71\0\0" "\10\10\0\0\0\0\200`\0\0\0\0\0\10\10\10\10\10\10\0\0\0\0`\0\0\0\0\0@ \20" "\10\4\2\0\0>aQIE>\0\0DB\177@@\0\0\0bQQIIf\0\0\42AI" "II\66\0\20\30\24R\177P\20\0\0'EEEE\71\0\0A]UU\36\0\0|\22\21\21\22|\0\0A\177III\66\0\0\34\42A" "AA\42\0\0A\177AA\42\34\0\0A\177I]Ac\0\0A\177I\35\1\3\0\0\34\42A" "QQr\0\0\177\10\10\10\10\177\0\0\0A\177A\0\0\0\0\60@@A\77\1\0\0A\177\10" "\24\42A@\0A\177A@@`\0\0\177\1\2\4\2\1\177\0\177\1\2\4\10\177\0\0\34\42A" "A\42\34\0\0A\177I\11\11\6\0\0\36!!\61!^@\0A\177I\31)F\0\0&II" "II\62\0\0\3\1A\177A\1\3\0\77@@@@\77\0\0\17\20 @ \20\17\0\77@@" "\70@@\77\0A\42\24\10\24\42A\0\1\2DxD\2\1\0CaQIECa\0\177AA" "A\0\0\0\1\2\4\10\20 @\0\0AAA\177\0\0\0\10\4\2\1\2\4\10\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FreeType-PxPlus IBM CGA-Medium-R-Normal--8-80-72-72-P-68-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 192/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcga_f[1796] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_f") = " \377\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIOf\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0@v\66" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0\42gMY" "s\42\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30\177D$\0\0<|@@<|@\0\34<``<\34\0\0<|p\70" "p|<\0Dl\70\20\70lD\0\234\274\240\240\374|\0\0Ldt\134Ld\0\0\10\10>w" "AA\0\0\0\0\0ww\0\0\0AAw>\10\10\0\0\2\3\1\3\2\3\1\0pxLF" "Lxp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0{{\0\0\0\30<$\347\347$$\0h~\177I" "Cf \0Z~$$$~Z\0+/\374\374/+\0\0\0\0\0ww\0\0\0@\332\277\245" "\375Y\3\2\1\1\0\0\0\1\1\0~\201\231\245\245\201~\0\0&/)//(\0\10\34\66\42" "\10\34\66\42\10\10\10\10\70\70\0\0\0\10\10\10\10\10\10\0~\201\275\225\251\201~\0\1\1\1\1" "\1\1\1\1\0\6\17\11\17\6\0\0DD__DD\0\0\0\31\35\27\22\0\0\0\0\21\25\37" "\12\0\0\0\0\0\2\3\1\0\0\0\200\376~ >\36\0\6\17\11\177\177\1\177\177\0\0\0\20" "\20\0\0\0\0\0\200\240\340@\0\0\0\22\37\37\20\0\0\0\0&/)/&\0\0\42\66\34\10" "\42\66\34\10Oo\60\30lv\373\371Oo\60\30\314\356\273\221\221\325\177:Xl\366\362\60xME" "` \0\0y}\26\22\26|x\0x|\26\22\26}y\0r{)){r\0\0y}\25\25" "}y\0\0y}\26\22\26}y\0px++xp\0\0|~\13\11\177\177I\0\16\237\221\261" "\373J\0\0E}}TTD\0\0D||UUE\0\0F\177}UWF\0\0E}|T" "UE\0\0\1E}|D\0\0\0\0D|}E\1\0\0\2KyyK\2\0\0\1E||" "E\1\0\0I\177\177Ic>\34\0}}\31\61}}\0\0\1\31\177qYM\177>\0=}A@|<\0\0<|@A}=\0\0:{AA" "{:\0\0=}@@}=\0\0\14\134pq]\15\0\0A\177\177U\24\34\10\0~\177\1\11" "_v \0!uUT|x@\0 tTU}y@\0\2#uUU}{B!uUU" "}y@\0!uTT}y@\0 tWW|x@\0 tTT||TT\30<\244\244" "\344@\0\0\71}UT\134\30\0\0\70|TU]\31\0\0\2;}UU]\33\2\71}TT" "]\31\0\0\1E}|@\0\0\0\0D}}A\0\0\0\2\3E}}C\2\0\1E||" "A\1\0\0\60xJK\177>\2\0zz\12\12zp\0\0\62zJHx\60\0\0\60xHJ" "z\62\0\0\62{II{\62\0\0\62zJJz\62\0\0\62zHHz\62\0\0\10\10kk" "\10\10\0\0\270|dTL|:\0:zB@xx@\0\70x@Bzz@\0:{AA" "{z@\0:z@@zz@\0\30\270\240\242\372z\0\0\201\377\377\244$<\30\0\232\272\240\240" "\372z\0"; /* Fontname: -FreeType-PxPlus IBM CGA-Medium-R-Normal--8-80-72-72-P-68-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 96/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcga_r[772] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIOf\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0@v\66" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0\42gMY" "s\42\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30\177D$\0\0<|@@<|@\0\34<``<\34\0\0<|p\70" "p|<\0Dl\70\20\70lD\0\234\274\240\240\374|\0\0Ldt\134Ld\0\0\10\10>w" "AA\0\0\0\0\0ww\0\0\0AAw>\10\10\0\0\2\3\1\3\2\3\1\0pxLF" "Lxp"; /* Fontname: -FreeType-PxPlus IBM CGA-Medium-R-Normal--8-80-72-72-P-68-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 18/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcga_n[220] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIOf\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0"; /* Fontname: -FreeType-PxPlus IBM CGA-Medium-R-Normal--8-80-72-72-P-68-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 64/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplusibmcga_u[517] U8X8_FONT_SECTION("u8x8_font_pxplusibmcga_u") = " _\1\1\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\0\7\7\0\7\7\0\0\24\177\177\24" "\177\177\24\0$.kk:\22\0\0Ff\60\30\14fb\0\60zO]\67zH\0\4\7\3\0" "\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\0\10*>\34\34>*\10\10\10>>" "\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0\0`\60\30\14" "\6\3\1\0>\177qYM\177>\0@B\177\177@@\0\0bsYIOf\0\0\42cII" "\177\66\0\0\30\34\26S\177\177P\0'gEE}\71\0\0<~KIy\60\0\0\3\3qy" "\17\7\0\0\66\177II\177\66\0\0\6OIi\77\36\0\0\0\0ff\0\0\0\0\0@v\66" "\0\0\0\0\10\34\66cA\0\0\0$$$$$$\0\0\0Ac\66\34\10\0\0\2\3QY" "\17\6\0\0>\177A]]\37\36\0|~\23\23~|\0\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Qsr\0\177\177\10\10\177\177\0\0\0A\177\177A\0\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0\34>cA" "c>\34\0A\177\177I\11\17\6\0\36\77!q\177^\0\0A\177\177\11\31\177f\0\42gMY" "s\42\0\0\3A\177\177A\3\0\0\177\177@@\177\177\0\0\37\77``\77\37\0\0\177\177\60\30" "\60\177\177\0Cg<\30cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0\34>cIc>\34\0\0@B\177\177@@\0BcqYIof\0\42cII" "I\177\66\0\30\34\26S\177\177P\0/oIIIy\61\0<~KIIx\60\0\3\3qy" "\15\7\3\0\66\177III\177\66\0\6OIIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346" "f\0\0\0\0\0\10\34\66cA\0\0$$$$$$\0\0\0Ac\66\34\10\0\2\3\1Y" "]\7\2\0>\177A]]\37\36\0|~\13\11\13~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Q\63r\0\177\177\10\10\10\177\177\0\0\0A\177\177A\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0>\177AA" "A\177>\0A\177\177I\11\17\6\0>\177AA\341\377\276\0A\177\177\11\31wf\0\0\42gM" "Ys\42\0\0\3A\177\177A\3\0\77\177@@@\177\77\0\37\77`@`\77\37\0\77\177`\70" "`\177\77\0cw\34\10\34wc\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200\0\0\1\3\6\4\0\0 tTT" "wAA\0\0\0\0\357\357\0\0\0\0AAw>\10\10\0\2\3\1\3\2\3\1\0pxLF" "Lxp\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\60}}\60\0\0\30<$\347\347$$\0\0h~\177" "ICf Z~$$$~Z\0\0+/\374\374/+\0\0\0\0\357\357\0\0\0@\232\277\245" "\245\375Y\2\2\2\0\0\0\2\2\0~\201\231\245\245\245\201~\0&/)//(\0\10\34\66\42" "\10\34\66\42\0\10\10\10\10\70\70\0\0\10\10\10\10\10\10\0~\201\275\225\225\251\201~\1\1\1\1" "\1\1\1\1\0\6\17\11\17\6\0\0\0DD__DD\0\0\21\31\35\27\22\0\0\0\21\25\25" "\37\12\0\0\0\0\4\6\3\1\0\0\0\200\376~ >\36\6\17\11\177\177\1\177\177\0\0\0\20" "\20\0\0\0\0\0\200\240\340@\0\0\0\0\22\37\37\20\0\0\0&/)/&\0\0\42\66\34\10" "\42\66\34\10Bo\77Xl\326\373ABo\77\30\314\356\273\221\225U\77Zh\324\372A\0 p]" "M@` px,%/zp\0pz/%,xp\0pz-%-zp\0r{-'" ".{q\0y}\26\22\26}y\0x|\27\23\27|x\0|~\13\11\177\177I\0<~B\302" "\302f$\0||UWVTD\0||VWUDD\0|~UUUVD\0}}TT" "TUE\0\0\0E\177~D\0\0\0\0D~\177E\0\0\0\2E}}E\2\0\0\1E|" "|E\1\0I\177\177Ic>\34\0~\177\11\23\42\177}\0\70|EGF|\70\0\70|FG" "E|\70\0\70~EEE~\70\0:\177EGF\177\71\0=\177BBB\177=\0\42\66\34\10" "\34\66\42\0\134>sIg>\35\0<}CB@|<\0<|BCA|<\0\70zAA" "Az\70\0=}@@@}=\0\0\14\134rs]\14\0A\177\177U\24\34\10\0~\177\1\11" "_v \0 tUW>x@\0 tVW=x@\0 vUU>x@\0\42wUW" ">{A\0!uTT\2\0\12{q\13\12{q\0\60xIKJx\60\0\60xJK" "Ix\60\0\60zIIIz\60\0\62{IKJ{\61\0\61yHHHy\61\0\0\10\10*" "*\10\10\0\270|dTL|:\0<}CB<|@\0<|BC=|@\0\70zAA" ":x@\0=}@@=}@\0\234\274\242\243\241\374|\0\201\377\377\244$<\30\0\235\275\240\240" "\240\375}"; /* Fontname: -FreeType-PxPlus TandyNew TV-Medium-R-Normal--8-80-72-72-P-70-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 96/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplustandynewtv_r[772] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_r") = " \177\1\1\0\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\3\7\0\0\7\3\0\24\177\177\24" "\177\177\24\0\0$.kk:\22\0Ff\60\30\14fb\0\60zO]\67zH\0\0\0\4\7" "\3\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0\34>cIc>\34\0\0@B\177\177@@\0BcqYIof\0\42cII" "I\177\66\0\30\34\26S\177\177P\0/oIIIy\61\0<~KIIx\60\0\3\3qy" "\15\7\3\0\66\177III\177\66\0\6OIIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346" "f\0\0\0\0\0\10\34\66cA\0\0$$$$$$\0\0\0Ac\66\34\10\0\2\3\1Y" "]\7\2\0>\177A]]\37\36\0|~\13\11\13~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Q\63r\0\177\177\10\10\10\177\177\0\0\0A\177\177A\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0>\177AA" "A\177>\0A\177\177I\11\17\6\0>\177AA\341\377\276\0A\177\177\11\31wf\0\0\42gM" "Ys\42\0\0\3A\177\177A\3\0\77\177@@@\177\77\0\37\77`@`\77\37\0\77\177`\70" "`\177\77\0cw\34\10\34wc\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200\0\0\1\3\6\4\0\0 tTT" "wAA\0\0\0\0\357\357\0\0\0\0AAw>\10\10\0\2\3\1\3\2\3\1\0pxLF" "Lxp"; /* Fontname: -FreeType-PxPlus TandyNew TV-Medium-R-Normal--8-80-72-72-P-70-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 18/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplustandynewtv_n[220] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_n") = " :\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0\34>cIc>\34\0\0@B\177\177@@\0BcqYIof\0\42cII" "I\177\66\0\30\34\26S\177\177P\0/oIIIy\61\0<~KIIx\60\0\3\3qy" "\15\7\3\0\66\177III\177\66\0\6OIIi\77\36\0\0\0\0ff\0\0"; /* Fontname: -FreeType-PxPlus TandyNew TV-Medium-R-Normal--8-80-72-72-P-70-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 64/781 BBX Build Mode: 3 */ const uint8_t u8x8_font_pxplustandynewtv_u[517] U8X8_FONT_SECTION("u8x8_font_pxplustandynewtv_u") = " _\1\1\0\0\0\0\0\0\0\0\0\0\6__\6\0\0\0\3\7\0\0\7\3\0\24\177\177\24" "\177\177\24\0\0$.kk:\22\0Ff\60\30\14fb\0\60zO]\67zH\0\0\0\4\7" "\3\0\0\0\0\0\34>cA\0\0\0\0Ac>\34\0\0\10*>\34\34>*\10\0\10\10>" ">\10\10\0\0\0\200\340`\0\0\0\0\10\10\10\10\10\10\0\0\0\0``\0\0\0`\60\30\14" "\6\3\1\0\34>cIc>\34\0\0@B\177\177@@\0BcqYIof\0\42cII" "I\177\66\0\30\34\26S\177\177P\0/oIIIy\61\0<~KIIx\60\0\3\3qy" "\15\7\3\0\66\177III\177\66\0\6OIIi\77\36\0\0\0\0ff\0\0\0\0\0\200\346" "f\0\0\0\0\0\10\34\66cA\0\0$$$$$$\0\0\0Ac\66\34\10\0\2\3\1Y" "]\7\2\0>\177A]]\37\36\0|~\13\11\13~|\0A\177\177II\177\66\0\34>cA" "Ac\42\0A\177\177Ac>\34\0A\177\177I]Ac\0A\177\177I\35\1\3\0\34>cA" "Q\63r\0\177\177\10\10\10\177\177\0\0\0A\177\177A\0\0\60p@A\177\77\1\0A\177\177\10" "\34wc\0A\177\177A@`p\0\177\177\16\34\16\177\177\0\177\177\6\14\30\177\177\0>\177AA" "A\177>\0A\177\177I\11\17\6\0>\177AA\341\377\276\0A\177\177\11\31wf\0\0\42gM" "Ys\42\0\0\3A\177\177A\3\0\77\177@@@\177\77\0\37\77`@`\77\37\0\77\177`\70" "`\177\77\0cw\34\10\34wc\0\0\7OxxO\7\0GcqYMgs\0\0\0\177\177" "AA\0\0\1\3\6\14\30\60`\0\0\0AA\177\177\0\0\10\14\6\3\6\14\10\0\200\200\200\200" "\200\200\200\200"; /* Fontname: -FreeType-Px437 Wyse700a-Medium-R-Normal--16-160-72-72-P-131-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 151/288 BBX Build Mode: 3 */ const uint8_t u8x8_font_px437wyse700a_2x2_f[7172] U8X8_FONT_SECTION("u8x8_font_px437wyse700a_2x2_f") = " \377\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0p\370\374\374\374\374\370p\0\0\0\0\0\0\0\0\0\0\33\33\33\33\0\0" "\0\0\0\0\0\0\6\16\36\36\0\0\0\0\36\36\16\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \370\370\370 \370\370\370 \0\0\4\4\37\37\37\4\4\4\4\37\37" "\37\4\4\0\0\0\60xx\374\317\207\207\217\234\30\30\20\0\0\0\0\4\14\14\34xppy\37\17" "\17\6\0\0\0\0\60\60\60\60\0\200\300\340\360p\60\20\0\0\0\0\20\30\34\36\17\7\3\1\30\30" "\30\30\0\0\0\0\20\70\270\374\354\304\354|\70\270\220\200\200\0\0\6\17\17\37\31\21\21\33\17\17\37" "\37\31\20\0\0\0\0\20\36\36\36\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\370\374\34\14\4\0\0\0\0\0\0\0\0\0\3\7\17\37\34\30\20\0" "\0\0\0\0\0\0\0\0\0\0\0\4\14\34\374\370\360\340\0\0\0\0\0\0\0\0\0\20\30\34\37\17" "\7\3\0\0\0\200\240\240\340\340\300\300\300\300\340\340\240\240\200\0\0\0\2\2\3\3\1\1\1\1\3\3" "\2\2\0\0\0\200\200\200\200\200\360\360\360\360\200\200\200\200\200\0\0\0\0\0\0\0\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 <<\34\14\0\0" "\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\360x\70\30\10\0\0\0\0\10\14\16\17\7\3\1\0\0\0" "\0\0\0\0\0\0\360\370\370\374\14\204\304l\374\370\370\360\0\0\0\0\7\17\17\37\33\21\20\30\37\17" "\17\7\0\0\0\0\20\20\30\30\374\374\374\374\0\0\0\0\0\0\0\0\20\20\20\20\37\37\37\37\20\20" "\20\20\0\0\0\0\10\10\14\14\4\4\204\314\374\370x\60\0\0\0\0\30\34\36\36\27\23\21\21\30\30" "\30\30\0\0\0\0\10\10\14\14\204\204\204\204\314\374xx\60\0\0\0\10\10\30\30\20\20\20\20\31\37" "\17\17\6\0\0\0\200\300\340\360x<\374\374\374\374\0\0\0\0\0\0\1\1\1\1\21\21\37\37\37\37" "\21\21\0\0\0\0||||DDDD\304\304\204\204\4\0\0\0\10\10\30\30\20\20\20\20\30\37" "\17\17\7\0\0\0\360\370\370\374\214\204\204\204\204\204\0\0\0\0\0\0\7\17\17\37\30\20\20\20\31\37" "\17\17\6\0\0\0\14\14\14\14\4\204\304\344\374|<\34\0\0\0\0\0\0\0\0\37\37\37\37\0\0" "\0\0\0\0\0\0\60xx\374\314\204\204\204\314\374xx\60\0\0\0\6\17\17\37\31\20\20\20\31\37" "\17\17\6\0\0\0\60xx\374\314\204\204\204\214\374\370\370\360\0\0\0\0\0\20\20\20\20\20\20\30\37" "\17\17\7\0\0\0\0\0\0\0\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\20\34\34\34\14\0\0" "\0\0\0\0\0\0\200\300\340\360x<\34\14\4\0\0\0\0\0\0\0\0\1\3\7\17\36\34\30\20\0" "\0\0\0\0\0\0@@@@@@@@@@@@\0\0\0\0\2\2\2\2\2\2\2\2\2\2" "\2\2\0\0\0\0\0\0\0\4\14\34>" "\22\22\0\0\0\0\200\200\304\304LLXXPP\300\300\200\200\0\0\17\17\37\37\22\22\22\22\22\22" "\33\33\13\13\0\0\200\200\300\300PPXXLL\304\304\200\200\0\0\17\17\37\37\22\22\22\22\22\22" "\33\33\13\13\0\0\200\200\320\320XXLLXX\320\320\200\200\0\0\17\17\37\37\22\22\22\22\22\22" "\33\33\13\13\0\0\230\230\330\330@@@@XX\330\330\200\200\0\0\17\17\37\37\22\22\22\22\22\22" "\33\33\13\13\0\0\4\4LL\330\330\320\320\0\0\0\0\0\0\0\0\0\0\20\20\37\37\37\37\20\20" "\0\0\0\0\0\0\0\0PP\330\330\314\314\4\4\0\0\0\0\0\0\0\0\20\20\37\37\37\37\20\20" "\0\0\0\0\0\0\20\20XX\314\314\314\314\30\30\20\20\0\0\0\0\0\0\20\20\37\37\37\37\20\20" "\0\0\0\0\0\0\30\30XX\300\300\300\300\30\30\30\30\0\0\0\0\0\0\20\20\37\37\37\37\20\20" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0PP\330\330\210\210XXP\320\330\330\210\10\0\0\0\0\37\37\37\37\0\0\0\0\37" "\37\37\37\0\0\0\0\200\204\304\314LXX\320\320\200\200\0\0\0\0\7\17\17\37\30\20\20\20\30\37" "\17\17\7\0\0\0\0\200\220\320\330XLL\304\304\200\200\0\0\0\0\7\17\17\37\30\20\20\20\30\37" "\17\17\7\0\0\0\0\220\220\330\330LLX\330\320\220\200\0\0\0\0\7\17\17\37\30\20\20\20\30\37" "\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\30\230\230\330\300@@@\300\330\230\230\30\0\0\0\7\17\17\37\30\20\20\20\30\37" "\17\17\7\0\0\200\200\200\200\200\230\230\230\230\200\200\200\200\200\0\0\0\0\0\0\0\14\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\304\304\14\14\30\30\320\320\300\300\0\0\0\0\17\17\37\37\20\20\20\20\17\17" "\37\37\20\20\0\0\300\300\320\320\30\30\14\14\304\304\300\300\0\0\0\0\17\17\37\37\20\20\20\20\17\17" "\37\37\20\20\0\0\320\320\330\330\14\14\14\14\330\330\320\320\0\0\0\0\17\17\37\37\20\20\20\20\17\17" "\37\37\20\20\0\0\330\330\330\330\0\0\0\0\330\330\330\330\0\0\0\0\17\17\37\37\20\20\20\20\17\17" "\37\37\20\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\330\330\330\330\0\0\0\0\0\330\330\330\330\0\0\0\3\7GOLHHHh\177" "\77\77\37"; /* Fontname: -FreeType-Px437 Wyse700a-Medium-R-Normal--16-160-72-72-P-131-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 96/288 BBX Build Mode: 3 */ const uint8_t u8x8_font_px437wyse700a_2x2_r[3077] U8X8_FONT_SECTION("u8x8_font_px437wyse700a_2x2_r") = " \177\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0p\370\374\374\374\374\370p\0\0\0\0\0\0\0\0\0\0\33\33\33\33\0\0" "\0\0\0\0\0\0\6\16\36\36\0\0\0\0\36\36\16\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \370\370\370 \370\370\370 \0\0\4\4\37\37\37\4\4\4\4\37\37" "\37\4\4\0\0\0\60xx\374\317\207\207\217\234\30\30\20\0\0\0\0\4\14\14\34xppy\37\17" "\17\6\0\0\0\0\60\60\60\60\0\200\300\340\360p\60\20\0\0\0\0\20\30\34\36\17\7\3\1\30\30" "\30\30\0\0\0\0\20\70\270\374\354\304\354|\70\270\220\200\200\0\0\6\17\17\37\31\21\21\33\17\17\37" "\37\31\20\0\0\0\0\20\36\36\36\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\360\370\374\34\14\4\0\0\0\0\0\0\0\0\0\3\7\17\37\34\30\20\0" "\0\0\0\0\0\0\0\0\0\0\0\4\14\34\374\370\360\340\0\0\0\0\0\0\0\0\0\20\30\34\37\17" "\7\3\0\0\0\200\240\240\340\340\300\300\300\300\340\340\240\240\200\0\0\0\2\2\3\3\1\1\1\1\3\3" "\2\2\0\0\0\200\200\200\200\200\360\360\360\360\200\200\200\200\200\0\0\0\0\0\0\0\7\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 <<\34\14\0\0" "\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\200\300\340\360x\70\30\10\0\0\0\0\10\14\16\17\7\3\1\0\0\0" "\0\0\0\0\0\0\360\370\370\374\14\204\304l\374\370\370\360\0\0\0\0\7\17\17\37\33\21\20\30\37\17" "\17\7\0\0\0\0\20\20\30\30\374\374\374\374\0\0\0\0\0\0\0\0\20\20\20\20\37\37\37\37\20\20" "\20\20\0\0\0\0\10\10\14\14\4\4\204\314\374\370x\60\0\0\0\0\30\34\36\36\27\23\21\21\30\30" "\30\30\0\0\0\0\10\10\14\14\204\204\204\204\314\374xx\60\0\0\0\10\10\30\30\20\20\20\20\31\37" "\17\17\6\0\0\0\200\300\340\360x<\374\374\374\374\0\0\0\0\0\0\1\1\1\1\21\21\37\37\37\37" "\21\21\0\0\0\0||||DDDD\304\304\204\204\4\0\0\0\10\10\30\30\20\20\20\20\30\37" "\17\17\7\0\0\0\360\370\370\374\214\204\204\204\204\204\0\0\0\0\0\0\7\17\17\37\30\20\20\20\31\37" "\17\17\6\0\0\0\14\14\14\14\4\204\304\344\374|<\34\0\0\0\0\0\0\0\0\37\37\37\37\0\0" "\0\0\0\0\0\0\60xx\374\314\204\204\204\314\374xx\60\0\0\0\6\17\17\37\31\20\20\20\31\37" "\17\17\6\0\0\0\60xx\374\314\204\204\204\214\374\370\370\360\0\0\0\0\0\20\20\20\20\20\20\30\37" "\17\17\7\0\0\0\0\0\0\0\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60\60\60\0\0\0\0\0\0\0\0\0\0\0\20\34\34\34\14\0\0" "\0\0\0\0\0\0\200\300\340\360x<\34\14\4\0\0\0\0\0\0\0\0\1\3\7\17\36\34\30\20\0" "\0\0\0\0\0\0@@@@@@@@@@@@\0\0\0\0\2\2\2\2\2\2\2\2\2\2" "\2\2\0\0\0\0\0\0\0\4\14\34\77\77\77\1\0" "\0\0\0\0\0\0`\360\360\370\230\10\10\10\230\370\360\360`\0\0\0\14\36\36\77\63!!!\63\77" "\36\36\14\0\0\0`\360\360\370\230\10\10\10\30\370\360\360\340\0\0\0\0\0 !!!!!\61\77" "\37\37\17\0\0\0\0\0\0\0````\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0"; /* Fontname: -FreeType-Px437 Wyse700b-Medium-R-Normal--16-160-72-72-P-124-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 151/288 BBX Build Mode: 3 */ const uint8_t u8x8_font_px437wyse700b_2x2_f[7172] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_f") = " \377\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\33\33\33\0\0" "\0\0\0\0\0\0\0\36\36\36\0\0\0\0\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \370\370\370 \370\370\370 \0\0\4\4\37\37\37\4\4\4\4\37\37" "\37\4\4\0\0\60xx\314\204\204\376\376\204\204\214\30\30\20\0\0\4\14\14\30\20\20\77\77\20\20\31" "\17\17\6\0\0\0\0\60\60\60\60\0\200\300\340p\60\20\0\0\0\0\0\20\30\34\16\7\3\1\30\30" "\30\30\0\0\0\0\20\70\270\354\304\304\304\354\70\70\220\200\200\0\0\6\17\17\31\20\20\20\31\37\17\17" "\37\31\20\0\0\0\0\0\0\20\30\34\16\6\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\370\34\14\4\0\0\0\0\0\0\0\0\0\0\3\7\17\34\30\20\0" "\0\0\0\0\0\0\0\0\0\4\14\34\370\360\340\0\0\0\0\0\0\0\0\0\0\20\30\34\17\7\3\0" "\0\0\0\0\0\0\200\200\240\240\340\300\300\300\340\240\240\200\200\0\0\0\0\0\2\2\3\1\1\1\3\2" "\2\0\0\0\0\0\200\200\200\200\200\360\360\360\200\200\200\200\200\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@xx\70\30\0\0" "\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340p\70\30\10\0\0\0\0\0\10\14\16\7\3\1\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\204\304d<\370\370\360\0\0\0\0\7\17\17\36\23\21\20\20\30\17" "\17\7\0\0\0\0\0\0\20\20\30\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\10\10\14\4\4\4\4\204\204\314xx\60\0\0\0\30\34\34\26\22\23\21\21\20\20" "\20\20\20\0\0\0\10\10\14\4\4\204\204\204\204\314xx\60\0\0\0\10\10\30\20\20\20\20\20\20\31" "\17\17\6\0\0\0\200\300\340p\70\34\14\374\374\374\0\0\0\0\0\0\1\1\1\1\1\1\1\37\37\37" "\1\1\0\0\0\0|||DDDDDD\304\204\204\4\0\0\0\10\10\30\20\20\20\20\20\20\30" "\17\17\7\0\0\0\360\370\370\214\204\204\204\204\204\204\0\0\0\0\0\0\7\17\17\30\20\20\20\20\20\31" "\17\17\6\0\0\0\4\4\4\4\4\204\304\344|<\34\0\0\0\0\0\0\0\0\0\37\37\37\0\0\0" "\0\0\0\0\0\0\60xx\314\204\204\204\204\204\314xx\60\0\0\0\6\17\17\31\20\20\20\20\20\31" "\17\17\6\0\0\0\60xx\314\204\204\204\204\204\214\370\370\360\0\0\0\0\0\20\20\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\0\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\20\34\34\14\0\0\0" "\0\0\0\0\0\0\0\200\300\340p\70\34\14\4\0\0\0\0\0\0\0\0\0\1\3\7\16\34\30\20\0" "\0\0\0\0\0\0@@@@@@@@@@@@\0\0\0\0\2\2\2\2\2\2\2\2\2\2" "\2\2\0\0\0\0\0\0\0\4\14\34\70p\340\300\200\0\0\0\0\0\0\0\0\20\30\34\16\7\3\1" "\0\0\0\0\0\0\20\30\30\14\4\4\204\304\354x\70\20\0\0\0\0\0\0\0\0\0\33\33\33\0\0" "\0\0\0\0\0\360\370\370\14\4\304\344\344$$,\370\370\360\0\0\7\17\17\30\20\21\23\23\22\22\22" "\23\23\1\0\0\0\300\340\360\70\34\14\14\34\70\360\340\300\0\0\0\0\37\37\37\1\1\1\1\1\1\37" "\37\37\0\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\20\20\20\20\20\20\31" "\17\17\6\0\0\0\360\370\370\14\4\4\4\4\4\14\30\30\20\0\0\0\7\17\17\30\20\20\20\20\20\30" "\14\14\4\0\0\0\374\374\374\4\4\4\4\4\4\14\370\370\360\0\0\0\37\37\37\20\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\204\204\204\204\204\204\4\4\4\0\0\0\0\37\37\37\20\20\20\20\20\20\20" "\20\20\0\0\0\0\374\374\374\204\204\204\204\204\204\4\4\4\0\0\0\0\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\4\4\4\4\14\30\30\20\0\0\0\7\17\17\30\20\20\20\20\21\31" "\17\17\7\0\0\0\374\374\374\200\200\200\200\200\200\200\374\374\374\0\0\0\37\37\37\0\0\0\0\0\0\0" "\37\37\37\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\4\14\14\30\20\20\20\30\17" "\17\7\0\0\0\0\0\374\374\374\300\340\360\70\34\14\4\0\0\0\0\0\0\37\37\37\0\1\3\7\16\34" "\30\20\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\20\20\20\20\20\20\20" "\20\20\0\0\0\374\374\374\34\70p\340\340p\70\34\374\374\374\0\0\37\37\37\0\0\0\0\0\0\0\0" "\37\37\37\0\0\0\374\374\374\70p\340\300\200\0\0\374\374\374\0\0\0\37\37\37\0\0\0\1\3\7\16" "\37\37\37\0\0\0\360\370\370\14\4\4\4\4\4\14\370\370\360\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\4\4\4\4\14\370\370\360\0\0\0\7\17\17\30\20\20\24\34\34\70" "\77/\7\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\0\0\0\1\3\7\16" "\34\30\20\0\0\60xx\314\204\204\204\204\204\204\214\30\30\20\0\0\4\14\14\30\20\20\20\20\20\20\31" "\17\17\6\0\0\0\4\4\4\4\4\374\374\374\4\4\4\4\4\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\374\374\374\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\0\0\0\0\0\0\374\374\374\0\0\0\0\1\3\7\16\34\30\30\34\16\7" "\3\1\0\0\0\374\374\374\0\0\0\0\0\0\0\0\374\374\374\0\0\7\17\37\30\34\16\7\7\16\34\30" "\37\17\7\0\0\0\14\34\34\16\7\3" "\1\0\0\0\0\0@@@@@@@@@\300\300\300@\0\0\0\20\30\30\34\24\26\22\23\21\21" "\20\20\20\0\0\0\0\200\200\200\360x|\14\4\4\4\0\0\0\0\0\0\0\0\0\7\17\37\30\20\20" "\20\0\0\0\0\0\0\0\0\0\0|||\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\4\4\4\14|x\360\200\200\200\0\0\0\0\0\0\20\20\20\30\37\17\7\0\0" "\0\0\0\0\0\0\10\10\10\14\4\4\14\10\10\14\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300@` \60\20\60 `@\300\200\200\0\3\3\3\2\2\2\2\2\2\2\2" "\2\3\3\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\354\354\354\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\340\340\360\20\20\34\34\34\20\20\60 \0\0\0\3\3\7\4\4\34\34\34\4\6" "\6\2\2\0\0\0\0@@\370\370\374DD\4\14\10\10\0\0\0\0\30\30\30\37\37\37\20\20\20\20" "\30\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\204\214\234\270\360\340\300\340\360\270\234\214\204\0\0\0\2\2\2\2\2\37\37\37\2\2" "\2\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\304\304\356*:\22\22\22\62\42\346\304\304\0\0\0\10\10\31\21\23\22\22\22\27\25" "\35\10\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\230\230\274\244\244\244\244\274\274\274\240\240\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\200\300@` \240\200\300@` \0\0\0\0\0\1\1\3\2\2\0\1\1" "\3\2\2\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0" "\0\7\7\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\14\14\36\22\22\22\22\36\14\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0@@@@@\370\370\370@@@@@\0\0\0\10\10\10\10\10\13\13\13\10\10" "\10\10\10\0\204\304\306\342\242\262\222\236\214\214\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\340\340\340\0\0\0\0\0\340\340\340\0\0\0 \77\37\37\4\4\4\4\6" "\3\3\1\0\0xx\374\204\204\204\374\374\374\4\4\374\374\374\4\0\0\0\0\0\0\0\37\37\37\0\0" "\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\230\230\274\244\244\244\244\274\230\230\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0 `@\300\200\240 `@\300\200\200\0\0\0\2\2\3\1\1\0\2\2\3\1" "\1\0\0\0\0\10|||\0\0\200\200\300@` \0\0\0\4\4\6\2\3\1\31\30\34\24>" ">>\20\0\0\10|||\0\0\200\200\300@` \0\0\0\4\4\6\2\3\1\1 \62\62:" "..$\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\354\354\354\0\0\0\0\0\0\0\0\0\4\16\16\33\21\21\20\20\30\14" "\14\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\206\306\346p\60\60p\346\306\206\0\0\0\0\0\37\37\37\2\2\2\2\2\2\37" "\37\37\0\0\0\0\0\200\302\342w\65\65w\342\302\200\0\0\0\0\0\37\37\37\2\2\2\2\2\2\37" "\37\37\0\0\0\300\340\360\270\234\214\204\374\374\374\204\204\204\204\4\0\37\37\37\0\0\0\0\37\37\37\20" "\20\20\20\20\0\0\360\370\370\14\4\4\4\4\4\4\14\30\30\0\0\0\3\7GLHHHHXx" "|&\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\360\360\24\24\26\22\23\21\21\20\20\0\0\0\0\37\37\37\21\21\21\21\21\21\20" "\20\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\364\364\364v\342\302\206\4\4\6\362\362\362\0\0\0\37\37\37\0\0\1\3\7\16\34" "\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\346\346\66\20\20\20\20\20\66\346\346\300\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\366\366\6\0\0\0\0\0\6\366\366\360\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\340\340\360\220\220\220\220\220\220\220\360``\0\0\0\37\77\77\4\4\4\4\4\4\4" "\7\3\3\0\0\0\0\0@DDLHXPP\300\200\200\0\0\0\16\16\37\21\21\21\21\21\21\21" "\37\37\37\0\0\0\0\0@PPXHLDD\300\200\200\0\0\0\16\16\37\21\21\21\21\21\21\21" "\37\37\37\0\0\0\0\20PXHLDLHX\320\220\200\0\0\0\16\16\37\21\21\21\21\21\21\21" "\37\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\30XX@@@@@X\330\230\200\0\0\0\16\16\37\21\21\21\21\21\21\21" "\37\37\37\0\0\0\0\0HH\134TTT\134H\310\200\200\0\0\0\16\16\37\21\21\21\21\21\21\21" "\37\37\37\0\0\0@@@@\300\200\200\300@@@\300\300\200\14\36\36\22\22\22\37\37\37\37\22\22" "\22\23\23\21\0\0\200\200\300@@@@@@\300\200\200\0\0\0\0\7\7OHHHHXx|" "$\4\0\0\0\0\200\200\300DDLHXPP\300\200\200\0\0\0\17\17\37\22\22\22\22\22\22\22" "\23\23\3\0\0\0\200\200\300@PPXHLD\304\200\200\0\0\0\17\17\37\22\22\22\22\22\22\22" "\23\23\3\0\0\0\200\220\320XHLDLHX\320\220\200\0\0\0\17\17\37\22\22\22\22\22\22\22" "\23\23\3\0\0\0\200\230\330X@@@@@X\330\230\200\0\0\0\17\17\37\22\22\22\22\22\22\22" "\23\23\3\0\0\0\0\0\4\4\14\310\330\320\20\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\20\20\330\310\314\4\4\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\20\20\30\10\314\304\314\10\30\20\20\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\30\30\30\0\300\300\300\0\30\30\30\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\320\320\320XHHXP\320\230\210\10\0\0\0\0\37\37\37\0\0\0\0\0\0\37" "\37\37\0\0\0\0\0\200\200\304DLHXP\320\200\200\0\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\0\200\200\320PXHLD\304\200\200\0\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\0\220\220\330HLDLH\330\220\220\0\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\230\230\330@@@@@\330\230\230\0\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\200\200\200\200\200\230\230\230\200\200\200\200\200\0\0\0\0\0\0\0\0\14\14\14\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\300\300\304\4\14\10\30\20\20\300\300\300\0\0\0\0\17\17\37\20\20\20\20\20\20\37" "\37\37\0\0\0\0\300\300\300\20\20\30\10\14\4\304\300\300\0\0\0\0\17\17\37\20\20\20\20\20\20\37" "\37\37\0\0\0\0\320\320\330\10\14\4\4\14\10\330\320\320\0\0\0\0\17\17\37\20\20\20\20\20\20\37" "\37\37\0\0\0\0\300\330\330\30\0\0\0\0\30\330\330\300\0\0\0\0\17\17\37\20\20\20\20\20\20\37" "\37\37\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0@\330\330\230\0\0\0\0\0\230\330\330@\0\0\0\0\0Acw>\34\16\7\3" "\1\0\0"; /* Fontname: -FreeType-Px437 Wyse700b-Medium-R-Normal--16-160-72-72-P-124-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 96/288 BBX Build Mode: 3 */ const uint8_t u8x8_font_px437wyse700b_2x2_r[3077] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_r") = " \177\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\33\33\33\0\0" "\0\0\0\0\0\0\0\36\36\36\0\0\0\0\36\36\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0 \370\370\370 \370\370\370 \0\0\4\4\37\37\37\4\4\4\4\37\37" "\37\4\4\0\0\60xx\314\204\204\376\376\204\204\214\30\30\20\0\0\4\14\14\30\20\20\77\77\20\20\31" "\17\17\6\0\0\0\0\60\60\60\60\0\200\300\340p\60\20\0\0\0\0\0\20\30\34\16\7\3\1\30\30" "\30\30\0\0\0\0\20\70\270\354\304\304\304\354\70\70\220\200\200\0\0\6\17\17\31\20\20\20\31\37\17\17" "\37\31\20\0\0\0\0\0\0\20\30\34\16\6\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\340\360\370\34\14\4\0\0\0\0\0\0\0\0\0\0\3\7\17\34\30\20\0" "\0\0\0\0\0\0\0\0\0\4\14\34\370\360\340\0\0\0\0\0\0\0\0\0\0\20\30\34\17\7\3\0" "\0\0\0\0\0\0\200\200\240\240\340\300\300\300\340\240\240\200\200\0\0\0\0\0\2\2\3\1\1\1\3\2" "\2\0\0\0\0\0\200\200\200\200\200\360\360\360\200\200\200\200\200\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@xx\70\30\0\0" "\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340p\70\30\10\0\0\0\0\0\10\14\16\7\3\1\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\204\304d<\370\370\360\0\0\0\0\7\17\17\36\23\21\20\20\30\17" "\17\7\0\0\0\0\0\0\20\20\30\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\10\10\14\4\4\4\4\204\204\314xx\60\0\0\0\30\34\34\26\22\23\21\21\20\20" "\20\20\20\0\0\0\10\10\14\4\4\204\204\204\204\314xx\60\0\0\0\10\10\30\20\20\20\20\20\20\31" "\17\17\6\0\0\0\200\300\340p\70\34\14\374\374\374\0\0\0\0\0\0\1\1\1\1\1\1\1\37\37\37" "\1\1\0\0\0\0|||DDDDDD\304\204\204\4\0\0\0\10\10\30\20\20\20\20\20\20\30" "\17\17\7\0\0\0\360\370\370\214\204\204\204\204\204\204\0\0\0\0\0\0\7\17\17\30\20\20\20\20\20\31" "\17\17\6\0\0\0\4\4\4\4\4\204\304\344|<\34\0\0\0\0\0\0\0\0\0\37\37\37\0\0\0" "\0\0\0\0\0\0\60xx\314\204\204\204\204\204\314xx\60\0\0\0\6\17\17\31\20\20\20\20\20\31" "\17\17\6\0\0\0\60xx\314\204\204\204\204\204\214\370\370\360\0\0\0\0\0\20\20\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\0\0\0" "\0\0\0\0\0\0\0\0\0\0\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\20\34\34\14\0\0\0" "\0\0\0\0\0\0\0\200\300\340p\70\34\14\4\0\0\0\0\0\0\0\0\0\1\3\7\16\34\30\20\0" "\0\0\0\0\0\0@@@@@@@@@@@@\0\0\0\0\2\2\2\2\2\2\2\2\2\2" "\2\2\0\0\0\0\0\0\0\4\14\34\70p\340\300\200\0\0\0\0\0\0\0\0\20\30\34\16\7\3\1" "\0\0\0\0\0\0\20\30\30\14\4\4\204\304\354x\70\20\0\0\0\0\0\0\0\0\0\33\33\33\0\0" "\0\0\0\0\0\360\370\370\14\4\304\344\344$$,\370\370\360\0\0\7\17\17\30\20\21\23\23\22\22\22" "\23\23\1\0\0\0\300\340\360\70\34\14\14\34\70\360\340\300\0\0\0\0\37\37\37\1\1\1\1\1\1\37" "\37\37\0\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\20\20\20\20\20\20\31" "\17\17\6\0\0\0\360\370\370\14\4\4\4\4\4\14\30\30\20\0\0\0\7\17\17\30\20\20\20\20\20\30" "\14\14\4\0\0\0\374\374\374\4\4\4\4\4\4\14\370\370\360\0\0\0\37\37\37\20\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\204\204\204\204\204\204\4\4\4\0\0\0\0\37\37\37\20\20\20\20\20\20\20" "\20\20\0\0\0\0\374\374\374\204\204\204\204\204\204\4\4\4\0\0\0\0\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\4\4\4\4\14\30\30\20\0\0\0\7\17\17\30\20\20\20\20\21\31" "\17\17\7\0\0\0\374\374\374\200\200\200\200\200\200\200\374\374\374\0\0\0\37\37\37\0\0\0\0\0\0\0" "\37\37\37\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\374\374\374\0\0\0\0\0\4\14\14\30\20\20\20\30\17" "\17\7\0\0\0\0\0\374\374\374\300\340\360\70\34\14\4\0\0\0\0\0\0\37\37\37\0\1\3\7\16\34" "\30\20\0\0\0\0\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\20\20\20\20\20\20\20" "\20\20\0\0\0\374\374\374\34\70p\340\340p\70\34\374\374\374\0\0\37\37\37\0\0\0\0\0\0\0\0" "\37\37\37\0\0\0\374\374\374\70p\340\300\200\0\0\374\374\374\0\0\0\37\37\37\0\0\0\1\3\7\16" "\37\37\37\0\0\0\360\370\370\14\4\4\4\4\4\14\370\370\360\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\0\0\0\0\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\4\4\4\4\14\370\370\360\0\0\0\7\17\17\30\20\20\24\34\34\70" "\77/\7\0\0\0\374\374\374\204\204\204\204\204\204\314xx\60\0\0\0\37\37\37\0\0\0\1\3\7\16" "\34\30\20\0\0\60xx\314\204\204\204\204\204\204\214\30\30\20\0\0\4\14\14\30\20\20\20\20\20\20\31" "\17\17\6\0\0\0\4\4\4\4\4\374\374\374\4\4\4\4\4\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\374\374\374\0\0\0\0\0\0\0\374\374\374\0\0\0\7\17\17\30\20\20\20\20\20\30" "\17\17\7\0\0\0\374\374\374\0\0\0\0\0\0\374\374\374\0\0\0\0\1\3\7\16\34\30\30\34\16\7" "\3\1\0\0\0\374\374\374\0\0\0\0\0\0\0\0\374\374\374\0\0\7\17\37\30\34\16\7\7\16\34\30" "\37\17\7\0\0\0\14\34\34\16\7\3" "\1\0\0\0\0\0@@@@@@@@@\300\300\300@\0\0\0\20\30\30\34\24\26\22\23\21\21" "\20\20\20\0\0\0\0\200\200\200\360x|\14\4\4\4\0\0\0\0\0\0\0\0\0\7\17\37\30\20\20" "\20\0\0\0\0\0\0\0\0\0\0|||\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\0\4\4\4\14|x\360\200\200\200\0\0\0\0\0\0\20\20\20\30\37\17\7\0\0" "\0\0\0\0\0\0\10\10\10\14\4\4\14\10\10\14\4\4\4\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\200\200\300@` \60\20\60 `@\300\200\200\0\3\3\3\2\2\2\2\2\2\2\2" "\2\3\3\3"; /* Fontname: -FreeType-Px437 Wyse700b-Medium-R-Normal--16-160-72-72-P-124-ISO10646-1 Copyright: Outline (vector) version (c) 2015 VileR Glyphs: 18/288 BBX Build Mode: 3 */ const uint8_t u8x8_font_px437wyse700b_2x2_n[868] U8X8_FONT_SECTION("u8x8_font_px437wyse700b_2x2_n") = " :\2\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\200\200\240\240\340\300\300\300\340\240\240\200\200\0\0\0\0\0\2\2\3\1\1\1\3\2" "\2\0\0\0\0\0\200\200\200\200\200\360\360\360\200\200\200\200\200\0\0\0\0\0\0\0\0\7\7\7\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@xx\70\30\0\0" "\0\0\0\0\0\0\200\200\200\200\200\200\200\200\200\200\200\200\200\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\30\30\30\0\0" "\0\0\0\0\0\0\0\0\0\0\0\200\300\340p\70\30\10\0\0\0\0\0\10\14\16\7\3\1\0\0\0" "\0\0\0\0\0\0\360\370\370\14\4\204\304d<\370\370\360\0\0\0\0\7\17\17\36\23\21\20\20\30\17" "\17\7\0\0\0\0\0\0\20\20\30\374\374\374\0\0\0\0\0\0\0\0\0\0\0\0\0\37\37\37\0\0" "\0\0\0\0\0\0\10\10\14\4\4\4\4\204\204\314xx\60\0\0\0\30\34\34\26\22\23\21\21\20\20" "\20\20\20\0\0\0\10\10\14\4\4\204\204\204\204\314xx\60\0\0\0\10\10\30\20\20\20\20\20\20\31" "\17\17\6\0\0\0\200\300\340p\70\34\14\374\374\374\0\0\0\0\0\0\1\1\1\1\1\1\1\37\37\37" "\1\1\0\0\0\0|||DDDDDD\304\204\204\4\0\0\0\10\10\30\20\20\20\20\20\20\30" "\17\17\7\0\0\0\360\370\370\214\204\204\204\204\204\204\0\0\0\0\0\0\7\17\17\30\20\20\20\20\20\31" "\17\17\6\0\0\0\4\4\4\4\4\204\304\344|<\34\0\0\0\0\0\0\0\0\0\37\37\37\0\0\0" "\0\0\0\0\0\0\60xx\314\204\204\204\204\204\314xx\60\0\0\0\6\17\17\31\20\20\20\20\20\31" "\17\17\6\0\0\0\60xx\314\204\204\204\204\204\214\370\370\360\0\0\0\0\0\20\20\20\20\20\20\20\30" "\17\17\7\0\0\0\0\0\0\0\60\60\60\0\0\0\0\0\0\0\0\0\0\0\0\0\14\14\14\0\0\0" "\0\0\0"; ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_gpio.c ================================================ /* u8x8_gpio.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" void u8x8_gpio_call(u8x8_t *u8x8, uint8_t msg, uint8_t arg) { u8x8->gpio_and_delay_cb(u8x8, msg, arg, NULL); } /* void u8x8_gpio_Delay(u8x8_t *u8x8, uint8_t msg, uint8_t dly) { u8x8->gpio_and_delay_cb(u8x8, msg, dly, NULL); } */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_input_value.c ================================================ /* u8x8_input_value.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* return: 0: value is not changed (HOME/Break Button pressed) 1: value has been updated */ uint8_t u8x8_UserInterfaceInputValue(u8x8_t *u8x8, const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post) { uint8_t height; uint8_t y; uint8_t width; uint8_t x; uint8_t local_value = *value; uint8_t r; uint8_t event; /* calculate overall height of the input value box */ height = 1; /* button line */ height += u8x8_GetStringLineCnt(title); /* calculate offset from top */ y = 0; if ( height < u8x8_GetRows(u8x8) ) { y = u8x8_GetRows(u8x8); y -= height; y /= 2; } /* calculate offset from left for the label */ x = 0; width = u8x8_GetUTF8Len(u8x8, pre); width += digits; width += u8x8_GetUTF8Len(u8x8, post); if ( width < u8x8_GetCols(u8x8) ) { x = u8x8_GetCols(u8x8); x -= width; x /= 2; } /* render */ u8x8_ClearDisplay(u8x8); /* required, because not everything is filled */ u8x8_SetInverseFont(u8x8, 0); y += u8x8_DrawUTF8Lines(u8x8, 0, y, u8x8_GetCols(u8x8), title); x += u8x8_DrawUTF8(u8x8, x, y, pre); u8x8_DrawUTF8(u8x8, x+digits, y, post); u8x8_SetInverseFont(u8x8, 1); /* event loop */ u8x8_DrawUTF8(u8x8, x, y, u8x8_u8toa(local_value, digits)); for(;;) { event = u8x8_GetMenuEvent(u8x8); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) { *value = local_value; r = 1; break; } else if ( event == U8X8_MSG_GPIO_MENU_HOME ) { r = 0; break; } else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_UP ) { if ( local_value >= hi ) local_value = lo; else local_value++; u8x8_DrawUTF8(u8x8, x, y, u8x8_u8toa(local_value, digits)); } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_DOWN ) { if ( local_value <= lo ) local_value = hi; else local_value--; u8x8_DrawUTF8(u8x8, x, y, u8x8_u8toa(local_value, digits)); } } u8x8_SetInverseFont(u8x8, 0); return r; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_message.c ================================================ /* u8x8_message.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" uint8_t u8x8_draw_button_line(u8x8_t *u8x8, uint8_t y, uint8_t w, uint8_t cursor, const char *s) { uint8_t i; uint8_t cnt; uint8_t total; uint8_t d; uint8_t x; cnt = u8x8_GetStringLineCnt(s); /* calculate the width of the button */ total = 0; for( i = 0; i < cnt; i++ ) { total += u8x8_GetUTF8Len(u8x8, u8x8_GetStringLineStart(i, s)); } total += (cnt-1); /* had one space between the buttons */ /* calculate the left offset */ d = 0; if ( total < w ) { d = w; d -= total; d /= 2; } /* draw the buttons */ x = d; u8x8_SetInverseFont(u8x8, 0); for( i = 0; i < cnt; i++ ) { if ( i == cursor ) u8x8_SetInverseFont(u8x8, 1); x+=u8x8_DrawUTF8(u8x8, x, y, u8x8_GetStringLineStart(i, s)); u8x8_SetInverseFont(u8x8, 0); x+=u8x8_DrawUTF8(u8x8, x, y, " "); } /* return the number of buttons */ return cnt; } /* title1: Multiple lines,separated by '\n' title2: A single line/string which is terminated by '\0' or '\n' . "title2" accepts the return value from u8x8_GetStringLineStart() title3: Multiple lines,separated by '\n' buttons: one more more buttons separated by '\n' and terminated with '\0' */ uint8_t u8x8_UserInterfaceMessage(u8x8_t *u8x8, const char *title1, const char *title2, const char *title3, const char *buttons) { uint8_t height; uint8_t y; uint8_t cursor = 0; uint8_t button_cnt; uint8_t event; u8x8_SetInverseFont(u8x8, 0); /* calculate overall height of the message box */ height = 1; /* button line */ height += u8x8_GetStringLineCnt(title1); if ( title2 != NULL ) height ++; height += u8x8_GetStringLineCnt(title3); /* calculate offset from top */ y = 0; if ( height < u8x8_GetRows(u8x8) ) { y = u8x8_GetRows(u8x8); y -= height; y /= 2; } /* draw message box */ u8x8_ClearDisplay(u8x8); /* required, because not everything is filled */ y += u8x8_DrawUTF8Lines(u8x8, 0, y, u8x8_GetCols(u8x8), title1); if ( title2 != NULL ) { u8x8_DrawUTF8Line(u8x8, 0, y, u8x8_GetCols(u8x8), title2); y++; } y += u8x8_DrawUTF8Lines(u8x8, 0, y, u8x8_GetCols(u8x8), title3); button_cnt = u8x8_draw_button_line(u8x8, y, u8x8_GetCols(u8x8), cursor, buttons); for(;;) { event = u8x8_GetMenuEvent(u8x8); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) return cursor+1; else if ( event == U8X8_MSG_GPIO_MENU_HOME ) break; else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_UP ) { cursor++; if ( cursor >= button_cnt ) cursor = 0; u8x8_draw_button_line(u8x8, y, u8x8_GetCols(u8x8), cursor, buttons); } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_DOWN ) { if ( cursor == 0 ) cursor = button_cnt; cursor--; u8x8_draw_button_line(u8x8, y, u8x8_GetCols(u8x8), cursor, buttons); } } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_selection_list.c ================================================ /* u8x8_selection_list.c selection list with scroll option Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* increase the cursor position */ void u8sl_Next(u8sl_t *u8sl) { u8sl->current_pos++; if ( u8sl->current_pos >= u8sl->total ) { u8sl->current_pos = 0; u8sl->first_pos = 0; } else { if ( u8sl->first_pos + u8sl->visible <= u8sl->current_pos + 1 ) { u8sl->first_pos = u8sl->current_pos - u8sl->visible + 1; } } } void u8sl_Prev(u8sl_t *u8sl) { if ( u8sl->current_pos == 0 ) { u8sl->current_pos = u8sl->total - 1; u8sl->first_pos = 0; if ( u8sl->total > u8sl->visible ) u8sl->first_pos = u8sl->total - u8sl->visible; } else { u8sl->current_pos--; if ( u8sl->first_pos > u8sl->current_pos ) u8sl->first_pos = u8sl->current_pos; } } void u8x8_DrawSelectionList(u8x8_t *u8x8, u8sl_t *u8sl, u8x8_sl_cb sl_cb, const void *aux) { uint8_t i; for( i = 0; i < u8sl->visible; i++ ) { sl_cb(u8x8, u8sl, i+u8sl->first_pos, aux); } } /* selection list with string line */ void u8x8_sl_string_line_cb(u8x8_t *u8x8, u8sl_t *u8sl, uint8_t idx, const void *aux) { const char *s; uint8_t row; /* calculate offset from display upper border */ row = u8sl->y; /* calculate target pos */ row += idx; row -= u8sl->first_pos; /* check whether this is the current cursor line */ if ( idx == u8sl->current_pos ) u8x8_SetInverseFont(u8x8, 1); else u8x8_SetInverseFont(u8x8, 0); /* get the line from the array */ s = u8x8_GetStringLineStart(idx, (const char *)aux); /* draw the line */ if ( s == NULL ) s = ""; u8x8_DrawUTF8Line(u8x8, u8sl->x, row, u8x8_GetCols(u8x8), s); u8x8_SetInverseFont(u8x8, 0); } /* title: NULL for no title, valid str for title line. Can contain mutliple lines, separated by '\n' start_pos: default position for the cursor (starts with 1) sl: string list (list of strings separated by \n) returns 0 if user has pressed the home key returns the selected line+1 if user has pressed the select key (e.g. 1 for the first line) */ uint8_t u8x8_UserInterfaceSelectionList(u8x8_t *u8x8, const char *title, uint8_t start_pos, const char *sl) { u8sl_t u8sl; uint8_t event; uint8_t title_lines; if ( start_pos > 0 ) start_pos--; u8sl.visible = u8x8_GetRows(u8x8); u8sl.total = u8x8_GetStringLineCnt(sl); u8sl.first_pos = 0; u8sl.current_pos = start_pos; u8sl.x = 0; u8sl.y = 0; //u8x8_ClearDisplay(u8x8); /* not required because all is 100% filled */ u8x8_SetInverseFont(u8x8, 0); if ( title != NULL ) { title_lines = u8x8_DrawUTF8Lines(u8x8, u8sl.x, u8sl.y, u8x8_GetCols(u8x8), title); u8sl.y+=title_lines; u8sl.visible-=title_lines; } if ( u8sl.current_pos >= u8sl.total ) u8sl.current_pos = u8sl.total-1; u8x8_DrawSelectionList(u8x8, &u8sl, u8x8_sl_string_line_cb, sl); for(;;) { event = u8x8_GetMenuEvent(u8x8); if ( event == U8X8_MSG_GPIO_MENU_SELECT ) return u8sl.current_pos+1; else if ( event == U8X8_MSG_GPIO_MENU_HOME ) return 0; else if ( event == U8X8_MSG_GPIO_MENU_NEXT || event == U8X8_MSG_GPIO_MENU_DOWN ) { u8sl_Next(&u8sl); u8x8_DrawSelectionList(u8x8, &u8sl, u8x8_sl_string_line_cb, sl); } else if ( event == U8X8_MSG_GPIO_MENU_PREV || event == U8X8_MSG_GPIO_MENU_UP ) { u8sl_Prev(&u8sl); u8x8_DrawSelectionList(u8x8, &u8sl, u8x8_sl_string_line_cb, sl); } } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_setup.c ================================================ /* u8x8_setup.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" /* universal dummy callback, which will be default for all callbacks */ uint8_t u8x8_dummy_cb(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { /* the dummy callback will not handle any message and will fail for all messages */ return 0; } static const u8x8_display_info_t u8x8_null_display_info = { /* chip_enable_level = */ 0, /* chip_disable_level = */ 1, /* post_chip_enable_wait_ns = */ 0, /* pre_chip_disable_wait_ns = */ 0, /* reset_pulse_width_ms = */ 0, /* post_reset_wait_ms = */ 0, /* sda_setup_time_ns = */ 0, /* sck_pulse_width_ns = */ 0, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 0, /* write_pulse_width_ns = */ 0, /* tile_width = */ 1, /* 8x8 */ /* tile_hight = */ 1, /* default_x_offset = */ 0, /* flipmode_x_offset = */ 0, /* pixel_width = */ 8, /* pixel_height = */ 8 }; /* a special null device */ uint8_t u8x8_d_null_cb(u8x8_t *u8x8, uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr) { switch(msg) { case U8X8_MSG_DISPLAY_SETUP_MEMORY: u8x8_d_helper_display_setup_memory(u8x8, &u8x8_null_display_info); break; case U8X8_MSG_DISPLAY_INIT: u8x8_d_helper_display_init(u8x8); break; } /* the null device callback will succeed for all messages */ return 1; } /* Description: Setup u8x8 Args: u8x8 An empty u8x8 structure */ void u8x8_SetupDefaults(u8x8_t *u8x8) { u8x8->display_info = NULL; u8x8->display_cb = u8x8_dummy_cb; u8x8->cad_cb = u8x8_dummy_cb; u8x8->byte_cb = u8x8_dummy_cb; u8x8->gpio_and_delay_cb = u8x8_dummy_cb; u8x8->is_font_inverse_mode = 0; //u8x8->device_address = 0; u8x8->utf8_state = 0; /* also reset by u8x8_utf8_init */ u8x8->bus_clock = 0; /* issue 769 */ u8x8->i2c_address = 255; u8x8->debounce_default_pin_state = 255; /* assume all low active buttons */ #ifdef U8X8_USE_PINS { uint8_t i; for( i = 0; i < U8X8_PIN_CNT; i++ ) u8x8->pins[i] = U8X8_PIN_NONE; } #endif } /* Description: Setup u8x8 and assign the callback function. The dummy callback "u8x8_dummy_cb" can be used, if no callback is required. This setup will not communicate with the display itself. Use u8x8_InitDisplay() to send the startup code to the Display. Args: u8x8 An empty u8x8 structure display_cb Display/controller specific callback function cad_cb Display controller specific communication callback function byte_cb Display controller/communication specific callback funtion gpio_and_delay_cb Environment specific callback function */ void u8x8_Setup(u8x8_t *u8x8, u8x8_msg_cb display_cb, u8x8_msg_cb cad_cb, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { /* setup defaults and reset pins to U8X8_PIN_NONE */ u8x8_SetupDefaults(u8x8); /* setup specific callbacks */ u8x8->display_cb = display_cb; u8x8->cad_cb = cad_cb; u8x8->byte_cb = byte_cb; u8x8->gpio_and_delay_cb = gpio_and_delay_cb; /* setup display info */ u8x8_SetupMemory(u8x8); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_string.c ================================================ /* u8x8_string.c string line procedures Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" uint8_t u8x8_GetStringLineCnt(const char *str) { char e; uint8_t line_cnt = 1; if ( str == NULL ) return 0; for(;;) { e = *str; if ( e == '\0' ) break; str++; if ( e == '\n' ) line_cnt++; } return line_cnt; } /* Assumes strings, separated by '\n' in "str". Returns the string at index "line_idx". First strng has line_idx = 0 Example: Returns "xyz" for line_idx = 1 with str = "abc\nxyz" Support both UTF8 and normal strings. */ const char *u8x8_GetStringLineStart(uint8_t line_idx, const char *str ) { char e; uint8_t line_cnt = 1; if ( line_idx == 0 ) return str; for(;;) { e = *str; if ( e == '\0' ) break; str++; if ( e == '\n' ) { if ( line_cnt == line_idx ) return str; line_cnt++; } } return NULL; /* line not found */ } /* copy until first '\n' or '\0' in str */ /* Important: There is no string overflow check, ensure */ /* that the destination buffer is large enough */ void u8x8_CopyStringLine(char *dest, uint8_t line_idx, const char *str) { if ( dest == NULL ) return; str = u8x8_GetStringLineStart( line_idx, str ); if ( str != NULL ) { for(;;) { if ( *str == '\n' || *str == '\0' ) break; *dest = *str; dest++; str++; } } *dest = '\0'; } /* Draw a string Extend the string to size "w" Center the string within "w" return the size of the string */ uint8_t u8x8_DrawUTF8Line(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t w, const char *s) { uint8_t d, lw; uint8_t cx, dx; d = 0; lw = u8x8_GetUTF8Len(u8x8, s); if ( lw < w ) { d = w; d -=lw; d /= 2; } cx = x; dx = cx + d; while( cx < dx ) { u8x8_DrawUTF8(u8x8, cx, y, " "); cx++; } cx += u8x8_DrawUTF8(u8x8, cx, y, s); dx = x + w; while( cx < dx ) { u8x8_DrawUTF8(u8x8, cx, y, " "); cx++; } cx -= x; return cx; } /* draw several lines at position x,y. lines are stored in s and must be separated with '\n'. lines can be centered with respect to "w" if s == NULL nothing is drawn and 0 is returned returns the number of lines in s */ uint8_t u8x8_DrawUTF8Lines(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t w, const char *s) { uint8_t i; uint8_t cnt; cnt = u8x8_GetStringLineCnt(s); for( i = 0; i < cnt; i++ ) { u8x8_DrawUTF8Line(u8x8, x, y, w, u8x8_GetStringLineStart(i, s)); y++; } return cnt; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_u16toa.c ================================================ /* u8x8_u16toa.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" const char *u8x8_u16toap(char * dest, uint16_t v) { uint8_t pos; uint8_t d; uint16_t c; c = 10000; for( pos = 0; pos < 5; pos++ ) { d = '0'; while( v >= c ) { v -= c; d++; } dest[pos] = d; c /= 10; } dest[5] = '\0'; return dest; } /* v = value, d = number of digits */ const char *u8x8_u16toa(uint16_t v, uint8_t d) { static char buf[6]; d = 5-d; return u8x8_u16toap(buf, v) + d; } const char *u8x8_utoa(uint16_t v) { const char *s = u8x8_u16toa(v, 5); while( *s == '0' ) s++; if ( *s == '\0' ) s--; return s; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/3rdParty/u8g2/u8x8_u8toa.c ================================================ /* u8x8_u8toa.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8x8.h" static const unsigned char u8x8_u8toa_tab[3] = { 100, 10, 1 } ; const char *u8x8_u8toap(char * dest, uint8_t v) { uint8_t pos; uint8_t d; uint8_t c; for( pos = 0; pos < 3; pos++ ) { d = '0'; c = *(u8x8_u8toa_tab+pos); while( v >= c ) { v -= c; d++; } dest[pos] = d; } dest[3] = '\0'; return dest; } /* v = value, d = number of digits */ const char *u8x8_u8toa(uint8_t v, uint8_t d) { static char buf[4]; d = 3-d; return u8x8_u8toap(buf, v) + d; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/ascii_processor.cpp ================================================ /* * The ASCII protocol is a simpler, human readable alternative to the main native * protocol. * In the future this protocol might be extended to support selected GCode commands. * For a list of supported commands see doc/ascii-protocol.md */ /* Includes ------------------------------------------------------------------*/ #include "common_inc.h" #include "ascii_processor.hpp" /* Private macros ------------------------------------------------------------*/ /* Private typedef -----------------------------------------------------------*/ /* Global constant data ------------------------------------------------------*/ /* Global variables ----------------------------------------------------------*/ /* Private constant data -----------------------------------------------------*/ #define MAX_LINE_LENGTH 256 #define TO_STR_INNER(s) #s #define TO_STR(s) TO_STR_INNER(s) /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Function implementations --------------------------------------------------*/ // @brief Executes an ASCII protocol command // @param buffer buffer of ASCII encoded characters // @param len size of the buffer void ASCII_protocol_process_line(const uint8_t* buffer, size_t len, StreamSink &response_channel) { static_assert(sizeof(char) == sizeof(uint8_t)); // copy everything into a local buffer so we can insert null-termination char cmd[MAX_LINE_LENGTH + 1]; if (len > MAX_LINE_LENGTH) len = MAX_LINE_LENGTH; memcpy(cmd, buffer, len); cmd[len] = 0; // null-terminate if (response_channel.channelType == StreamSink::CHANNEL_TYPE_USB) OnUsbAsciiCmd(cmd, len, response_channel); else if (response_channel.channelType == StreamSink::CHANNEL_TYPE_UART4) OnUart4AsciiCmd(cmd, len, response_channel); else if (response_channel.channelType == StreamSink::CHANNEL_TYPE_UART5) OnUart5AsciiCmd(cmd, len, response_channel); } void ASCII_protocol_parse_stream(const uint8_t* buffer, size_t len, StreamSink &response_channel) { static uint8_t parse_buffer[MAX_LINE_LENGTH]; static bool read_active = true; static uint32_t parse_buffer_idx = 0; while (len--) { // if the line becomes too long, reset buffer and wait for the next line if (parse_buffer_idx >= MAX_LINE_LENGTH) { read_active = false; parse_buffer_idx = 0; } // Fetch the next char uint8_t c = *(buffer++); bool is_end_of_line = (c == '\r' || c == '\n'); if (is_end_of_line) { if (read_active) ASCII_protocol_process_line(parse_buffer, parse_buffer_idx, response_channel); parse_buffer_idx = 0; read_active = true; } else { if (read_active) { parse_buffer[parse_buffer_idx++] = c; } } } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/ascii_processor.hpp ================================================ #ifndef __ASCII_PROTOCOL_H #define __ASCII_PROTOCOL_H /* Includes ------------------------------------------------------------------*/ #include #include #include #include /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Exported variables --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ void ASCII_protocol_parse_stream(const uint8_t* buffer, size_t len, StreamSink& response_channel); void OnUsbAsciiCmd(const char* _cmd, size_t _len, StreamSink& _responseChannel); void OnUart4AsciiCmd(const char* _cmd, size_t _len, StreamSink& _responseChannel); void OnUart5AsciiCmd(const char* _cmd, size_t _len, StreamSink& _responseChannel); // Function to send messages back through specific channel (UART or USB-VCP). // Use this function instead of printf because printf will send messages over ALL CHANNEL. template void Respond(StreamSink &output , const char *fmt, TArgs &&... args) { char response[64]; size_t len = snprintf(response, sizeof(response), fmt, std::forward(args)...); output.process_bytes((uint8_t *) response, len, nullptr); output.process_bytes((const uint8_t *) "\r\n", 2, nullptr); } #endif /* __ASCII_PROTOCOL_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/communication.cpp ================================================ /* Includes ------------------------------------------------------------------*/ #include "communication.hpp" #include "common_inc.h" /* Private defines -----------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private typedef -----------------------------------------------------------*/ /* Global constant data ------------------------------------------------------*/ /* Global variables ----------------------------------------------------------*/ /* Private constant data -----------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ volatile bool endpointListValid = false; /* Private function prototypes -----------------------------------------------*/ /* Function implementations --------------------------------------------------*/ // @brief Sends a line on the specified output. osThreadId_t commTaskHandle; const osThreadAttr_t commTask_attributes = { .name = "commTask", .stack_size = 45000, .priority = (osPriority_t) osPriorityNormal, }; void InitCommunication(void) { // Start command handling thread commTaskHandle = osThreadNew(CommunicationTask, nullptr, &commTask_attributes); while (!endpointListValid) osDelay(1); } extern PCD_HandleTypeDef hpcd_USB_OTG_FS; osThreadId_t usbIrqTaskHandle; void UsbDeferredInterruptTask(void* ctx) { (void) ctx; // unused parameter for (;;) { // Wait for signalling from USB interrupt (OTG_FS_IRQHandler) osStatus semaphore_status = osSemaphoreAcquire(sem_usb_irq, osWaitForever); if (semaphore_status == osOK) { // We have a new incoming USB transmission: handle it HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS); // Let the irq (OTG_FS_IRQHandler) fire again. HAL_NVIC_EnableIRQ(OTG_FS_IRQn); } } } // Thread to handle deffered processing of USB interrupt, and // read commands out of the UART DMA circular buffer void CommunicationTask(void* ctx) { (void) ctx; // unused parameter CommitProtocol(); // Allow main init to continue endpointListValid = true; StartUartServer(); StartUsbServer(); StartCanServer(CAN1); StartCanServer(CAN2); for (;;) { osDelay(1000); // nothing to do } } extern "C" { int _write(int file, const char* data, int len); } // @brief This is what printf calls internally int _write(int file, const char* data, int len) { usbStreamOutputPtr->process_bytes((const uint8_t*) data, len, nullptr); uart4StreamOutputPtr->process_bytes((const uint8_t*) data, len, nullptr); return len; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/communication.hpp ================================================ #ifndef COMMANDS_H #define COMMANDS_H #ifdef __cplusplus extern "C" { #endif #include void InitCommunication(void); void CommitProtocol(); void CommunicationTask(void *ctx); void UsbDeferredInterruptTask(void *ctx); #ifdef __cplusplus } #include #include #include "ascii_processor.hpp" #include "interface_usb.hpp" #include "interface_uart.hpp" #include "interface_can.hpp" #define COMMIT_PROTOCOL \ using treeType = decltype(MakeObjTree());\ uint8_t treeBuffer[sizeof(treeType)];\ void CommitProtocol()\ {\ auto treePtr = new(treeBuffer) treeType(MakeObjTree());\ fibre_publish(*treePtr);\ }\ #endif #endif /* COMMANDS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_can.cpp ================================================ /* * * Zero-config node ID negotiation * ------------------------------- * * A heartbeat message is a message with a 8 byte unique serial number as payload. * A regular message is any message that is not a heartbeat message. * * All nodes MUST obey these four rules: * * a) At a given point in time, a node MUST consider a node ID taken (by others) * if any of the following is true: * - the node received a (not self-emitted) heartbeat message with that node ID * within the last second * - the node attempted and failed at sending a heartbeat message with that * node ID within the last second (failed in the sense of not ACK'd) * * b) At a given point in time, a node MUST NOT consider a node ID self-assigned * if, within the last second, it did not succeed in sending a heartbeat * message with that node ID. * * c) At a given point in time, a node MUST NOT send any heartbeat message with * a node ID that is taken. * * d) At a given point in time, a node MUST NOT send any regular message with * a node ID that is not self-assigned. * * Hardware allocation * ------------------- * RX FIFO0: * - filter bank 0: heartbeat messages */ #include "common_inc.h" #include #include // defined in can.c extern CAN_HandleTypeDef hcan1; extern CAN_HandleTypeDef hcan2; CAN_context can1Ctx; CAN_context can2Ctx; static CAN_context* ctxs = nullptr; static CAN_RxHeaderTypeDef headerRx; static uint8_t data[8]; struct CAN_context* get_can_ctx(CAN_HandleTypeDef* hcan) { if (hcan->Instance == CAN1) return &can1Ctx; else if (hcan->Instance == CAN2) return &can2Ctx; else return nullptr; } bool StartCanServer(CAN_TypeDef* hcan) { if (hcan == CAN1) { ctxs = &can1Ctx; ctxs->handle = &hcan1; } else if (hcan == CAN2) { ctxs = &can2Ctx; ctxs->handle = &hcan2; } else return false; // fail if none of the above checks matched HAL_StatusTypeDef status; ctxs->node_id = 0; ctxs->serial_number = serialNumber; osSemaphoreDef(sem_send_heartbeat); ctxs->sem_send_heartbeat = osSemaphoreNew(1, 0, osSemaphore(sem_send_heartbeat)); //// Set up filter CAN_FilterTypeDef sFilterConfig = { .FilterIdHigh = 0x0000, .FilterIdLow = 0x0000, .FilterMaskIdHigh = 0x0000, .FilterMaskIdLow = 0x0000, .FilterFIFOAssignment = CAN_RX_FIFO0, .FilterBank = 0, .FilterMode = CAN_FILTERMODE_IDMASK, .FilterScale = CAN_FILTERSCALE_16BIT, // two 16-bit filters .FilterActivation = ENABLE, .SlaveStartFilterBank = 0 }; status = HAL_CAN_ConfigFilter(ctxs->handle, &sFilterConfig); if (status != HAL_OK) return false; status = HAL_CAN_Start(ctxs->handle); if (status != HAL_OK) return false; status = HAL_CAN_ActivateNotification(ctxs->handle, CAN_IT_TX_MAILBOX_EMPTY | CAN_IT_RX_FIFO0_MSG_PENDING | CAN_IT_RX_FIFO1_MSG_PENDING | /* we probably only want this */ CAN_IT_RX_FIFO0_FULL | CAN_IT_RX_FIFO1_FULL | CAN_IT_RX_FIFO0_OVERRUN | CAN_IT_RX_FIFO1_OVERRUN | CAN_IT_WAKEUP | CAN_IT_SLEEP_ACK | CAN_IT_ERROR_WARNING | CAN_IT_ERROR_PASSIVE | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE | CAN_IT_ERROR); if (status != HAL_OK) return false; return true; } void tx_complete_callback(CAN_HandleTypeDef* hcan, uint8_t mailbox_idx) { // CAN_context* ctx = get_can_ctx(hcan); // if (!ctx) return; // ctx->tx_msg_cnt++; if (hcan->Instance == CAN1) osSemaphoreRelease(sem_can1_tx); else if (hcan->Instance == CAN2) osSemaphoreRelease(sem_can2_tx); } void tx_aborted_callback(CAN_HandleTypeDef* hcan, uint8_t mailbox_idx) { if (!get_can_ctx(hcan)) return; get_can_ctx(hcan)->TxMailboxAbortCallbackCnt++; } void tx_error(CAN_context* ctx, uint8_t mailbox_idx) { } void HAL_CAN_TxMailbox0CompleteCallback(CAN_HandleTypeDef* hcan) { tx_complete_callback(hcan, 0); } void HAL_CAN_TxMailbox1CompleteCallback(CAN_HandleTypeDef* hcan) { tx_complete_callback(hcan, 1); } void HAL_CAN_TxMailbox2CompleteCallback(CAN_HandleTypeDef* hcan) { tx_complete_callback(hcan, 2); } void HAL_CAN_TxMailbox0AbortCallback(CAN_HandleTypeDef* hcan) { tx_aborted_callback(hcan, 0); } void HAL_CAN_TxMailbox1AbortCallback(CAN_HandleTypeDef* hcan) { tx_aborted_callback(hcan, 1); } void HAL_CAN_TxMailbox2AbortCallback(CAN_HandleTypeDef* hcan) { tx_aborted_callback(hcan, 2); } void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef* hcan) { CAN_context* ctx = get_can_ctx(hcan); if (!ctx) return; ctx->received_msg_cnt++; HAL_StatusTypeDef status = HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO0, &headerRx, data); if (status != HAL_OK) { ctx->unexpected_errors++; return; } OnCanMessage(ctx, &headerRx, data); } void HAL_CAN_RxFifo0FullCallback(CAN_HandleTypeDef* hcan) { if (get_can_ctx(hcan)) get_can_ctx(hcan)->RxFifo0FullCallbackCnt++; } void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef* hcan) { if (get_can_ctx(hcan)) get_can_ctx(hcan)->RxFifo1MsgPendingCallbackCnt++; } void HAL_CAN_RxFifo1FullCallback(CAN_HandleTypeDef* hcan) { if (get_can_ctx(hcan)) get_can_ctx(hcan)->RxFifo1FullCallbackCnt++; } void HAL_CAN_SleepCallback(CAN_HandleTypeDef* hcan) { if (get_can_ctx(hcan)) get_can_ctx(hcan)->SleepCallbackCnt++; } void HAL_CAN_WakeUpFromRxMsgCallback(CAN_HandleTypeDef* hcan) { if (get_can_ctx(hcan)) get_can_ctx(hcan)->WakeUpFromRxMsgCallbackCnt++; } void HAL_CAN_ErrorCallback(CAN_HandleTypeDef* hcan) { //__asm volatile ("bkpt"); CAN_context* ctx = get_can_ctx(hcan); if (!ctx) return; volatile uint32_t original_error = hcan->ErrorCode; (void) original_error; // handle transmit errors in all three mailboxes if (hcan->ErrorCode & HAL_CAN_ERROR_TX_ALST0) { SET_BIT(hcan->Instance->sTxMailBox[0].TIR, CAN_TI0R_TXRQ); hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_ALST0; } else if (hcan->ErrorCode & HAL_CAN_ERROR_TX_TERR0) { tx_error(ctx, 0); hcan->ErrorCode &= ~HAL_CAN_ERROR_EWG; hcan->ErrorCode &= ~HAL_CAN_ERROR_ACK; hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_TERR0; } if (hcan->ErrorCode & HAL_CAN_ERROR_TX_ALST1) { SET_BIT(hcan->Instance->sTxMailBox[1].TIR, CAN_TI1R_TXRQ); hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_ALST1; } else if (hcan->ErrorCode & HAL_CAN_ERROR_TX_TERR1) { tx_error(ctx, 1); hcan->ErrorCode &= ~HAL_CAN_ERROR_EWG; hcan->ErrorCode &= ~HAL_CAN_ERROR_ACK; hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_TERR1; } if (hcan->ErrorCode & HAL_CAN_ERROR_TX_ALST2) { SET_BIT(hcan->Instance->sTxMailBox[2].TIR, CAN_TI2R_TXRQ); hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_ALST2; } else if (hcan->ErrorCode & HAL_CAN_ERROR_TX_TERR2) { tx_error(ctx, 2); hcan->ErrorCode &= ~HAL_CAN_ERROR_EWG; hcan->ErrorCode &= ~HAL_CAN_ERROR_ACK; hcan->ErrorCode &= ~HAL_CAN_ERROR_TX_TERR2; } if (hcan->ErrorCode) ctx->unexpected_errors++; } void CanSendMessage(CAN_context* canCtx, uint8_t* txData, CAN_TxHeaderTypeDef* txHeader) { osStatus semaphore_status; if (canCtx->handle->Instance == CAN1) semaphore_status = osSemaphoreAcquire(sem_can1_tx, osWaitForever); else if (canCtx->handle->Instance == CAN2) semaphore_status = osSemaphoreAcquire(sem_can2_tx, osWaitForever); else return; if (semaphore_status == osOK) HAL_CAN_AddTxMessage(canCtx->handle, txHeader, txData, &canCtx->last_heartbeat_mailbox); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_can.hpp ================================================ #ifndef __INTERFACE_CAN_HPP #define __INTERFACE_CAN_HPP #include "fibre/protocol.hpp" #include #include struct CAN_context { CAN_HandleTypeDef* handle = nullptr; uint8_t node_id = 0; uint64_t serial_number = 0; uint32_t node_ids_in_use_0[4]; // 128 bits (indicate if a node ID was in use up to 1 second ago) uint32_t node_ids_in_use_1[4]; // 128 bits (indicats if a node ID was in use 1-2 seconds ago) uint32_t last_heartbeat_mailbox = 0; uint32_t tx_msg_cnt = 0; uint8_t node_id_rng_state = 0; osSemaphoreId_t sem_send_heartbeat; // count occurrence various callbacks uint32_t TxMailboxCompleteCallbackCnt = 0; uint32_t TxMailboxAbortCallbackCnt = 0; int RxFifo0MsgPendingCallbackCnt = 0; int RxFifo0FullCallbackCnt = 0; int RxFifo1MsgPendingCallbackCnt = 0; int RxFifo1FullCallbackCnt = 0; int SleepCallbackCnt = 0; int WakeUpFromRxMsgCallbackCnt = 0; int ErrorCallbackCnt = 0; uint32_t received_msg_cnt = 0; uint32_t received_ack = 0; uint32_t unexpected_errors = 0; uint32_t unhandled_messages = 0; }; struct CAN_context* get_can_ctx(CAN_HandleTypeDef* hcan); bool StartCanServer(CAN_TypeDef* hcan); void CanSendMessage(CAN_context* canCtx, uint8_t* txData, CAN_TxHeaderTypeDef* txHeader); void OnCanMessage(CAN_context* canCtx, CAN_RxHeaderTypeDef* rxHeader, uint8_t* data); #endif // __INTERFACE_CAN_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_uart.cpp ================================================ #include "common_inc.h" #include "interface_uart.hpp" #include "ascii_processor.hpp" #include "fibre/protocol.hpp" #include "usart.h" #define UART_TX_BUFFER_SIZE 64 #define UART_RX_BUFFER_SIZE 64 // DMA open loop continous circular buffer // 1ms delay periodic, chase DMA ptr around static uint8_t dma_rx_buffer[2][UART_RX_BUFFER_SIZE]; static uint32_t dma_last_rcv_idx[2]; // FIXME: the stdlib doesn't know about CMSIS threads, so this is just a global variable // static thread_local uint32_t deadline_ms = 0; osThreadId_t uartServerTaskHandle; class UART4Sender : public StreamSink { public: UART4Sender() { channelType = CHANNEL_TYPE_UART4; } int process_bytes(const uint8_t* buffer, size_t length, size_t* processed_bytes) override { // Loop to ensure all bytes get sent while (length) { size_t chunk = length < UART_TX_BUFFER_SIZE ? length : UART_TX_BUFFER_SIZE; // wait for USB interface to become ready // TODO: implement ring buffer to get a more continuous stream of data // if (osSemaphoreWait(sem_uart_dma, deadline_to_timeout(deadline_ms)) != osOK) if (osSemaphoreAcquire(sem_uart4_dma, PROTOCOL_SERVER_TIMEOUT_MS) != osOK) return -1; // transmit chunk memcpy(tx_buf_, buffer, chunk); if (HAL_UART_Transmit_DMA(&huart4, tx_buf_, chunk) != HAL_OK) return -1; buffer += chunk; length -= chunk; if (processed_bytes) *processed_bytes += chunk; } return 0; } size_t get_free_space() override { return SIZE_MAX; } private: uint8_t tx_buf_[UART_TX_BUFFER_SIZE]; } uart4_stream_output; class UART5Sender : public StreamSink { public: UART5Sender() { channelType = CHANNEL_TYPE_UART5; } int process_bytes(const uint8_t* buffer, size_t length, size_t* processed_bytes) override { // Loop to ensure all bytes get sent while (length) { size_t chunk = length < UART_TX_BUFFER_SIZE ? length : UART_TX_BUFFER_SIZE; // wait for USB interface to become ready // TODO: implement ring buffer to get a more continuous stream of data // if (osSemaphoreWait(sem_uart_dma, deadline_to_timeout(deadline_ms)) != osOK) if (osSemaphoreAcquire(sem_uart5_dma, PROTOCOL_SERVER_TIMEOUT_MS) != osOK) return -1; // transmit chunk memcpy(tx_buf_, buffer, chunk); if (HAL_UART_Transmit_DMA(&huart5, tx_buf_, chunk) != HAL_OK) return -1; buffer += chunk; length -= chunk; if (processed_bytes) *processed_bytes += chunk; } return 0; } size_t get_free_space() override { return SIZE_MAX; } private: uint8_t tx_buf_[UART_TX_BUFFER_SIZE]; } uart5_stream_output; StreamSink* uart4StreamOutputPtr = &uart4_stream_output; StreamBasedPacketSink uart4_packet_output(uart4_stream_output); BidirectionalPacketBasedChannel uart4_channel(uart4_packet_output); StreamToPacketSegmenter uart4_stream_input(uart4_channel); StreamSink* uart5StreamOutputPtr = &uart5_stream_output; StreamBasedPacketSink uart5_packet_output(uart5_stream_output); BidirectionalPacketBasedChannel uart5_channel(uart5_packet_output); StreamToPacketSegmenter uart5_stream_input(uart5_channel); static void UartServerTask(void* ctx) { (void) ctx; for (;;) { // Check for UART errors and restart recieve DMA transfer if required if (huart4.ErrorCode != HAL_UART_ERROR_NONE) { HAL_UART_AbortReceive(&huart4); HAL_UART_Receive_DMA(&huart4, dma_rx_buffer[0], sizeof(dma_rx_buffer[0])); } // Fetch the circular buffer "write pointer", where it would write next uint32_t new_rcv_idx = UART_RX_BUFFER_SIZE - huart4.hdmarx->Instance->NDTR; // deadline_ms = timeout_to_deadline(PROTOCOL_SERVER_TIMEOUT_MS); // Process bytes in one or two chunks (two in case there was a wrap) if (new_rcv_idx < dma_last_rcv_idx[0]) { uart4_stream_input.process_bytes(dma_rx_buffer[0] + dma_last_rcv_idx[0], UART_RX_BUFFER_SIZE - dma_last_rcv_idx[0], nullptr); // TODO: use process_all ASCII_protocol_parse_stream(dma_rx_buffer[0] + dma_last_rcv_idx[0], UART_RX_BUFFER_SIZE - dma_last_rcv_idx[0], uart4_stream_output); dma_last_rcv_idx[0] = 0; } if (new_rcv_idx > dma_last_rcv_idx[0]) { uart4_stream_input.process_bytes(dma_rx_buffer[0] + dma_last_rcv_idx[0], new_rcv_idx - dma_last_rcv_idx[0], nullptr); // TODO: use process_all ASCII_protocol_parse_stream(dma_rx_buffer[0] + dma_last_rcv_idx[0], new_rcv_idx - dma_last_rcv_idx[0], uart4_stream_output); dma_last_rcv_idx[0] = new_rcv_idx; } // Check for UART errors and restart recieve DMA transfer if required if (huart5.ErrorCode != HAL_UART_ERROR_NONE) { HAL_UART_AbortReceive(&huart5); HAL_UART_Receive_DMA(&huart5, dma_rx_buffer[1], sizeof(dma_rx_buffer[1])); } // Fetch the circular buffer "write pointer", where it would write next new_rcv_idx = UART_RX_BUFFER_SIZE - huart5.hdmarx->Instance->NDTR; // deadline_ms = timeout_to_deadline(PROTOCOL_SERVER_TIMEOUT_MS); // Process bytes in one or two chunks (two in case there was a wrap) if (new_rcv_idx < dma_last_rcv_idx[1]) { uart4_stream_input.process_bytes(dma_rx_buffer[1] + dma_last_rcv_idx[1], UART_RX_BUFFER_SIZE - dma_last_rcv_idx[1], nullptr); // TODO: use process_all ASCII_protocol_parse_stream(dma_rx_buffer[1] + dma_last_rcv_idx[1], UART_RX_BUFFER_SIZE - dma_last_rcv_idx[1], uart5_stream_output); dma_last_rcv_idx[1] = 0; } if (new_rcv_idx > dma_last_rcv_idx[1]) { uart4_stream_input.process_bytes(dma_rx_buffer[1] + dma_last_rcv_idx[1], new_rcv_idx - dma_last_rcv_idx[1], nullptr); // TODO: use process_all ASCII_protocol_parse_stream(dma_rx_buffer[1] + dma_last_rcv_idx[1], new_rcv_idx - dma_last_rcv_idx[1], uart5_stream_output); dma_last_rcv_idx[1] = new_rcv_idx; } osDelay(1); }; } const osThreadAttr_t uartServerTask_attributes = { .name = "UartServerTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityNormal, }; void StartUartServer() { // DMA is set up to receive in a circular buffer forever. // We don't use interrupts to fetch the data, instead we periodically read // data out of the circular buffer into a parse buffer, controlled by a state machine HAL_UART_Receive_DMA(&huart4, dma_rx_buffer[0], sizeof(dma_rx_buffer[0])); dma_last_rcv_idx[0] = UART_RX_BUFFER_SIZE - huart4.hdmarx->Instance->NDTR; HAL_UART_Receive_DMA(&huart5, dma_rx_buffer[1], sizeof(dma_rx_buffer[1])); dma_last_rcv_idx[1] = UART_RX_BUFFER_SIZE - huart5.hdmarx->Instance->NDTR; // Start UART communication thread uartServerTaskHandle = osThreadNew(UartServerTask, nullptr, &uartServerTask_attributes); } void HAL_UART_TxCpltCallback(UART_HandleTypeDef* huart) { if (huart->Instance == UART4) osSemaphoreRelease(sem_uart4_dma); else if (huart->Instance == UART5) osSemaphoreRelease(sem_uart5_dma); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_uart.hpp ================================================ #ifndef __INTERFACE_UART_HPP #define __INTERFACE_UART_HPP #ifdef __cplusplus #include "fibre/protocol.hpp" extern StreamSink *uart4StreamOutputPtr; extern StreamSink *uart5StreamOutputPtr; extern "C" { #endif #include extern osThreadId uart_thread; void StartUartServer(void); #ifdef __cplusplus } #endif #endif // __INTERFACE_UART_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_usb.cpp ================================================ #include "common_inc.h" #include "ascii_processor.hpp" #include "usbd_cdc.h" #include "usbd_cdc_if.h" #include "usb_device.h" #include "interface_usb.hpp" osThreadId_t usbServerTaskHandle; USBStats_t usb_stats_ = {0}; class USBSender : public PacketSink { public: USBSender(uint8_t endpoint_pair, const osSemaphoreId &sem_usb_tx) : endpoint_pair_(endpoint_pair), sem_usb_tx_(sem_usb_tx) {} int process_packet(const uint8_t *buffer, size_t length) override { // cannot send partial packets if (length > USB_TX_DATA_SIZE) return -1; // wait for USB interface to become ready if (osSemaphoreAcquire(sem_usb_tx_, PROTOCOL_SERVER_TIMEOUT_MS) != osOK) { // If the host resets the device it might be that the TX-complete handler is never called // and the sem_usb_tx_ semaphore is never released. To handle this we just override the // TX buffer if this wait times out. The implication is that the channel is no longer lossless. // TODO: handle endpoint reset properly usb_stats_.tx_overrun_cnt++; } // transmit packet uint8_t status = CDC_Transmit_FS(const_cast(buffer), length, endpoint_pair_); if (status != USBD_OK) { osSemaphoreRelease(sem_usb_tx_); return -1; } usb_stats_.tx_cnt++; return 0; } private: uint8_t endpoint_pair_; const osSemaphoreId &sem_usb_tx_; }; // Note we could have independent semaphores here to allow concurrent transmission USBSender usb_packet_output_cdc(CDC_OUT_EP, sem_usb_tx); USBSender usb_packet_output_native(ODRIVE_OUT_EP, sem_usb_tx); class TreatPacketSinkAsStreamSink : public StreamSink { public: TreatPacketSinkAsStreamSink(PacketSink &output) : output_(output) { channelType = CHANNEL_TYPE_USB; } int process_bytes(const uint8_t *buffer, size_t length, size_t *processed_bytes) { // Loop to ensure all bytes get sent while (length) { size_t chunk = length < USB_TX_DATA_SIZE ? length : USB_TX_DATA_SIZE; if (output_.process_packet(buffer, length) != 0) return -1; buffer += chunk; length -= chunk; if (processed_bytes) *processed_bytes += chunk; } return 0; } size_t get_free_space() { return SIZE_MAX; } private: PacketSink &output_; } usb_stream_output(usb_packet_output_cdc); // This is used by the printf feature. Hence the above statics, and below seemingly random ptr (it's externed) // TODO: less spaghetti code StreamSink *usbStreamOutputPtr = &usb_stream_output; BidirectionalPacketBasedChannel usb_channel(usb_packet_output_native); struct USBInterface { uint8_t *rx_buf = nullptr; uint32_t rx_len = 0; bool data_pending = false; uint8_t out_ep; uint8_t in_ep; USBSender &usb_sender; }; // Note: statics make this less modular. // Note: we use a single rx semaphore and loop over data_pending to allow a single pump loop thread static USBInterface CDC_interface = { .rx_buf = nullptr, .rx_len = 0, .data_pending = false, .out_ep = CDC_OUT_EP, .in_ep = CDC_IN_EP, .usb_sender = usb_packet_output_cdc, }; static USBInterface ODrive_interface = { .rx_buf = nullptr, .rx_len = 0, .data_pending = false, .out_ep = ODRIVE_OUT_EP, .in_ep = ODRIVE_IN_EP, .usb_sender = usb_packet_output_native, }; static void UsbServerTask(void *ctx) { (void) ctx; for (;;) { // const uint32_t usb_check_timeout = 1; // ms osStatus sem_stat = osSemaphoreAcquire(sem_usb_rx, osWaitForever); if (sem_stat == osOK) { usb_stats_.rx_cnt++; // CDC Interface if (CDC_interface.data_pending) { CDC_interface.data_pending = false; ASCII_protocol_parse_stream(CDC_interface.rx_buf, CDC_interface.rx_len, usb_stream_output); USBD_CDC_ReceivePacket(&hUsbDeviceFS, CDC_interface.out_ep); // Allow next packet } // Native Interface if (ODrive_interface.data_pending) { ODrive_interface.data_pending = false; usb_channel.process_packet(ODrive_interface.rx_buf, ODrive_interface.rx_len); USBD_CDC_ReceivePacket(&hUsbDeviceFS, ODrive_interface.out_ep); // Allow next packet } } } } // Called from CDC_Receive_FS callback function, this allows the communication // thread to handle the incoming data void usb_rx_process_packet(uint8_t *buf, uint32_t len, uint8_t endpoint_pair) { USBInterface *usb_iface; if (endpoint_pair == CDC_interface.out_ep) { usb_iface = &CDC_interface; } else if (endpoint_pair == ODrive_interface.out_ep) { usb_iface = &ODrive_interface; } else { return; } // We don't allow the next USB packet until the previous one has been processed completely. // Therefore it's safe to write to these vars directly since we know previous processing is complete. usb_iface->rx_buf = buf; usb_iface->rx_len = len; usb_iface->data_pending = true; osSemaphoreRelease(sem_usb_rx); } const osThreadAttr_t usbServerTask_attributes = { .name = "UsbServerTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityNormal, }; void StartUsbServer() { // Start USB communication thread usbServerTaskHandle = osThreadNew(UsbServerTask, nullptr, &usbServerTask_attributes); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/communication/interface_usb.hpp ================================================ #ifndef __INTERFACE_USB_HPP #define __INTERFACE_USB_HPP #ifdef __cplusplus #include "fibre/protocol.hpp" extern StreamSink *usbStreamOutputPtr; extern "C" { #endif #include #include typedef struct { uint32_t rx_cnt; uint32_t tx_cnt; uint32_t tx_overrun_cnt; } USBStats_t; extern USBStats_t usb_stats_; void usb_rx_process_packet(uint8_t *buf, uint32_t len, uint8_t endpoint_pair); void StartUsbServer(void); #ifdef __cplusplus } #endif #endif // __INTERFACE_USB_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/analog.cpp ================================================ #include "analog.hpp" float Analog::GetChipTemperature() { return AdcGetChipTemperature(); } float Analog::GetVoltage(Analog::AdcChannel_t _channel) { switch (_channel) { case CH1: return AdcGetVoltage(ADC_CH1); case CH2: return AdcGetVoltage(ADC_CH2); case CH3: return AdcGetVoltage(ADC_CH3); case CH4: return AdcGetVoltage(ADC_CH4); } return 0; } uint16_t Analog::GetRaw(Analog::AdcChannel_t _channel) { switch (_channel) { case CH1: return AdcGetRaw(ADC_CH1); case CH2: return AdcGetRaw(ADC_CH2); case CH3: return AdcGetRaw(ADC_CH3); case CH4: return AdcGetRaw(ADC_CH4); } return 0; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/analog.hpp ================================================ #ifndef REF_STM32F4_ANALOG_H #define REF_STM32F4_ANALOG_H #include #include class Analog { private: public: enum AdcChannel_t { CH1, CH2, CH3, CH4 }; Analog() = default; float GetChipTemperature(); float GetVoltage(AdcChannel_t _channel); uint16_t GetRaw(AdcChannel_t _channel); }; #endif //REF_STM32F4_ANALOG_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/encoder.cpp ================================================ #include "encoder.hpp" Encoder::Encoder(TIM_HandleTypeDef *_htim, uint16_t _cpr, bool _inverse) : htim(_htim), config(Config_t{}) { config.cpr = _cpr; config.inverse = _inverse; } int64_t Encoder::GetCount() { int64_t count = GetCntLoop(htim->Instance) * 65536 + htim->Instance->CNT; return config.inverse ? -count : count; } float Encoder::GetAngle(bool _useRAD) { float angle = (float) GetCount() / (float) config.cpr; return _useRAD ? angle / RAD_TO_DEG : angle; } void Encoder::Start() { ClearCntLoop(htim->Instance); htim->Instance->CNT = 0; HAL_TIM_Encoder_Start_IT(htim, TIM_CHANNEL_ALL); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/encoder.hpp ================================================ #ifndef REF_STM32F4_ENCODER_HPP #define REF_STM32F4_ENCODER_HPP #include #include "tim.h" class Encoder { private: const float RAD_TO_DEG = 57.295777754771045f; TIM_HandleTypeDef *htim; public: explicit Encoder(TIM_HandleTypeDef *_htim, uint16_t _cpr = 4096, bool _inverse = false); void Start(); int64_t GetCount(); float GetAngle(bool _useRAD = false); struct Config_t { uint16_t cpr; bool inverse; }; // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_object("config", make_protocol_property("cpr", &config.cpr), make_protocol_property("inverse", &config.inverse) ), make_protocol_function("get_count", *this, &Encoder::GetCount), make_protocol_function("get_angle", *this, &Encoder::GetAngle, "use_rad") ); } Config_t config; }; #endif //REF_STM32F4_ENCODER_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/pwm.cpp ================================================ #include "pwm.hpp" PWM::PWM(uint32_t _freqHzA, uint32_t _freqHzB) { if (_freqHzA > 84000)_freqHzA = 84000; else if (_freqHzA < 10)_freqHzA = 10; if (_freqHzB > 84000)_freqHzB = 84000; else if (_freqHzB < 10)_freqHzB = 10; TIM_OC_InitTypeDef sConfigOC = {0}; htim9.Instance = TIM9; htim9.Init.Prescaler = 168000 / _freqHzA - 1; htim9.Init.CounterMode = TIM_COUNTERMODE_UP; htim9.Init.Period = 999; htim9.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim9.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_PWM_Init(&htim9) != HAL_OK) { Error_Handler(); } sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 0; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim9, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_ConfigChannel(&htim9, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) { Error_Handler(); } HAL_TIM_MspPostInit(&htim9); htim12.Instance = TIM12; htim12.Init.Prescaler = 84000 / _freqHzB - 1; htim12.Init.CounterMode = TIM_COUNTERMODE_UP; htim12.Init.Period = 999; htim12.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim12.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_PWM_Init(&htim12) != HAL_OK) { Error_Handler(); } sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 0; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim12, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_ConfigChannel(&htim12, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) { Error_Handler(); } HAL_TIM_MspPostInit(&htim12); } void PWM::Start(PWM::PwmChannel_t _channel) { switch (_channel) { case CH_A1: TIM9->CCR1 = 0; HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_1); break; case CH_A2: TIM9->CCR2 = 0; HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_2); break; case CH_B1: TIM12->CCR1 = 0; HAL_TIM_PWM_Start(&htim12, TIM_CHANNEL_1); break; case CH_B2: TIM12->CCR2 = 0; HAL_TIM_PWM_Start(&htim12, TIM_CHANNEL_2); break; case CH_ALL: TIM9->CCR1 = 0; HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_1); TIM9->CCR2 = 0; HAL_TIM_PWM_Start(&htim9, TIM_CHANNEL_2); TIM12->CCR1 = 0; HAL_TIM_PWM_Start(&htim12, TIM_CHANNEL_1); TIM12->CCR2 = 0; HAL_TIM_PWM_Start(&htim12, TIM_CHANNEL_2); break; } } void PWM::SetDuty(PWM::PwmChannel_t _channel, float _duty) { if (_duty > 1)_duty = 1; else if (_duty < 0)_duty = 0; auto ccr = static_cast(1000 * _duty); switch (_channel) { case CH_A1: TIM9->CCR1 = ccr; break; case CH_A2: TIM9->CCR2 = ccr; break; case CH_B1: TIM12->CCR1 = ccr; break; case CH_B2: TIM12->CCR2 = ccr; break; case CH_ALL: TIM9->CCR1 = ccr; TIM9->CCR2 = ccr; TIM12->CCR1 = ccr; TIM12->CCR2 = ccr; break; } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/gpio/pwm.hpp ================================================ #ifndef REF_STM32F4_PWM_H #define REF_STM32F4_PWM_H #include #include class PWM { private: public: enum PwmChannel_t { CH_ALL, // TIM CH_A1, CH_A2, CH_B1, CH_B2 }; explicit PWM(uint32_t _freqHzA = 21000, uint32_t _freqHzB = 21000); void Start(PwmChannel_t _channel = CH_ALL); void SetDuty(PwmChannel_t _channel = CH_ALL, float _duty = 0); }; #endif //REF_STM32F4_PWM_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/MPU6050.cpp ================================================ // I2Cdev library collection - MPU6050 I2C device class // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) // 8/24/2011 by Jeff Rowberg // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // ... - ongoing debug release // NOTE: THIS IS ONLY A PARIAL RELEASE. THIS DEVICE CLASS IS CURRENTLY UNDERGOING ACTIVE // DEVELOPMENT AND IS STILL MISSING SOME IMPORTANT FEATURES. PLEASE KEEP THIS IN MIND IF // YOU DECIDE TO USE THIS PARTICULAR CODE FOR ANYTHING. /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================== */ #include "mpu6050.hpp" #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) /** Specific address constructor. * @param address I2C address, uses default I2C address if none is specified * @see MPU6050_DEFAULT_ADDRESS * @see MPU6050_ADDRESS_AD0_LOW * @see MPU6050_ADDRESS_AD0_HIGH */ MPU6050::MPU6050(I2C_HandleTypeDef *_hi2c, uint8_t address) : hi2c(_hi2c), devAddr(address) { I2Cdev_init(hi2c); InitFilter(); } /** Power on and prepare for general usage. * This will activate the device and take it out of sleep mode (which must be done * after start-up). This function also sets both the accelerometer and the gyroscope * to their most sensitive settings, namely +/- 2g and +/- 250 degrees/sec, and sets * the clock source to use the X Gyro for reference, which is slightly better than * the default internal clock source. */ void MPU6050::Init() { setClockSource(MPU6050_CLOCK_PLL_XGYRO); setFullScaleGyroRange(MPU6050_GYRO_FS_250); setFullScaleAccelRange(MPU6050_ACCEL_FS_2); setDLPFMode(MPU6050_DLPF_BW_98); setSleepEnabled(false); // thanks to Jack Elston for pointing this one out! } /** Verify the I2C connection. * Make sure the device is connected and responds as expected. * @return True if connection is valid, false otherwise */ bool MPU6050::testConnection() { return getDeviceID() == 0x34; } // AUX_VDDIO register (InvenSense demo code calls this RA_*G_OFFS_TC) /** Get the auxiliary I2C supply voltage level. * When set to 1, the auxiliary I2C bus high logic level is VDD. When cleared to * 0, the auxiliary I2C bus high logic level is VLOGIC. This does not apply to * the MPU-6000, which does not have a VLOGIC pin. * @return I2C supply voltage level (0=VLOGIC, 1=VDD) */ uint8_t MPU6050::getAuxVDDIOLevel() { I2Cdev_readBit(devAddr, MPU6050_RA_YG_OFFS_TC, MPU6050_TC_PWR_MODE_BIT, buffer); return buffer[0]; } /** Set the auxiliary I2C supply voltage level. * When set to 1, the auxiliary I2C bus high logic level is VDD. When cleared to * 0, the auxiliary I2C bus high logic level is VLOGIC. This does not apply to * the MPU-6000, which does not have a VLOGIC pin. * @param level I2C supply voltage level (0=VLOGIC, 1=VDD) */ void MPU6050::setAuxVDDIOLevel(uint8_t level) { I2Cdev_writeBit(devAddr, MPU6050_RA_YG_OFFS_TC, MPU6050_TC_PWR_MODE_BIT, level); } // SMPLRT_DIV register /** Get gyroscope output rate divider. * The sensor register output, FIFO output, DMP sampling, Motion detection, Zero * Motion detection, and Free Fall detection are all based on the Sample Rate. * The Sample Rate is generated by dividing the gyroscope output rate by * SMPLRT_DIV: * * Sample Rate = Gyroscope Output Rate / (1 + SMPLRT_DIV) * * where Gyroscope Output Rate = 8kHz when the DLPF is disabled (DLPF_CFG = 0 or * 7), and 1kHz when the DLPF is enabled (see Register 26). * * Note: The accelerometer output rate is 1kHz. This means that for a Sample * Rate greater than 1kHz, the same accelerometer sample may be output to the * FIFO, DMP, and sensor registers more than once. * * For a diagram of the gyroscope and accelerometer signal paths, see Section 8 * of the MPU-6000/MPU-6050 Product Specification document. * * @return Current sample rate * @see MPU6050_RA_SMPLRT_DIV */ uint8_t MPU6050::getRate() { I2Cdev_readByte(devAddr, MPU6050_RA_SMPLRT_DIV, buffer); return buffer[0]; } /** Set gyroscope sample rate divider. * @param rate New sample rate divider * @see getRate() * @see MPU6050_RA_SMPLRT_DIV */ void MPU6050::setRate(uint8_t rate) { I2Cdev_writeByte(devAddr, MPU6050_RA_SMPLRT_DIV, rate); } // CONFIG register /** Get external FSYNC configuration. * Configures the external Frame Synchronization (FSYNC) pin sampling. An * external signal connected to the FSYNC pin can be sampled by configuring * EXT_SYNC_SET. Signal changes to the FSYNC pin are latched so that short * strobes may be captured. The latched FSYNC signal will be sampled at the * Sampling Rate, as defined in register 25. After sampling, the latch will * reset to the current FSYNC signal state. * * The sampled value will be reported in place of the least significant bit in * a sensor data register determined by the value of EXT_SYNC_SET according to * the following table. * *

 * EXT_SYNC_SET | FSYNC Bit Location
 * -------------+-------------------
 * 0            | Input disabled
 * 1            | TEMP_OUT_L[0]
 * 2            | GYRO_XOUT_L[0]
 * 3            | GYRO_YOUT_L[0]
 * 4            | GYRO_ZOUT_L[0]
 * 5            | ACCEL_XOUT_L[0]
 * 6            | ACCEL_YOUT_L[0]
 * 7            | ACCEL_ZOUT_L[0]
 * 
* * @return FSYNC configuration value */ uint8_t MPU6050::getExternalFrameSync() { I2Cdev_readBits(devAddr, MPU6050_RA_CONFIG, MPU6050_CFG_EXT_SYNC_SET_BIT, MPU6050_CFG_EXT_SYNC_SET_LENGTH, buffer); return buffer[0]; } /** Set external FSYNC configuration. * @see getExternalFrameSync() * @see MPU6050_RA_CONFIG * @param sync New FSYNC configuration value */ void MPU6050::setExternalFrameSync(uint8_t sync) { I2Cdev_writeBits(devAddr, MPU6050_RA_CONFIG, MPU6050_CFG_EXT_SYNC_SET_BIT, MPU6050_CFG_EXT_SYNC_SET_LENGTH, sync); } /** Get digital low-pass filter configuration. * The DLPF_CFG parameter sets the digital low pass filter configuration. It * also determines the internal sampling rate used by the device as shown in * the table below. * * Note: The accelerometer output rate is 1kHz. This means that for a Sample * Rate greater than 1kHz, the same accelerometer sample may be output to the * FIFO, DMP, and sensor registers more than once. * *
 *          |   ACCELEROMETER    |           GYROSCOPE
 * DLPF_CFG | Bandwidth | Delay  | Bandwidth | Delay  | Sample Rate
 * ---------+-----------+--------+-----------+--------+-------------
 * 0        | 260Hz     | 0ms    | 256Hz     | 0.98ms | 8kHz
 * 1        | 184Hz     | 2.0ms  | 188Hz     | 1.9ms  | 1kHz
 * 2        | 94Hz      | 3.0ms  | 98Hz      | 2.8ms  | 1kHz
 * 3        | 44Hz      | 4.9ms  | 42Hz      | 4.8ms  | 1kHz
 * 4        | 21Hz      | 8.5ms  | 20Hz      | 8.3ms  | 1kHz
 * 5        | 10Hz      | 13.8ms | 10Hz      | 13.4ms | 1kHz
 * 6        | 5Hz       | 19.0ms | 5Hz       | 18.6ms | 1kHz
 * 7        |   -- Reserved --   |   -- Reserved --   | Reserved
 * 
* * @return DLFP configuration * @see MPU6050_RA_CONFIG * @see MPU6050_CFG_DLPF_CFG_BIT * @see MPU6050_CFG_DLPF_CFG_LENGTH */ uint8_t MPU6050::getDLPFMode() { I2Cdev_readBits(devAddr, MPU6050_RA_CONFIG, MPU6050_CFG_DLPF_CFG_BIT, MPU6050_CFG_DLPF_CFG_LENGTH, buffer); return buffer[0]; } /** Set digital low-pass filter configuration. * @param mode New DLFP configuration setting * @see getDLPFBandwidth() * @see MPU6050_DLPF_BW_256 * @see MPU6050_RA_CONFIG * @see MPU6050_CFG_DLPF_CFG_BIT * @see MPU6050_CFG_DLPF_CFG_LENGTH */ void MPU6050::setDLPFMode(uint8_t mode) { I2Cdev_writeBits(devAddr, MPU6050_RA_CONFIG, MPU6050_CFG_DLPF_CFG_BIT, MPU6050_CFG_DLPF_CFG_LENGTH, mode); } // GYRO_CONFIG register /** Get full-scale gyroscope range. * The FS_SEL parameter allows setting the full-scale range of the gyro sensors, * as described in the table below. * *
 * 0 = +/- 250 degrees/sec
 * 1 = +/- 500 degrees/sec
 * 2 = +/- 1000 degrees/sec
 * 3 = +/- 2000 degrees/sec
 * 
* * @return Current full-scale gyroscope range setting * @see MPU6050_GYRO_FS_250 * @see MPU6050_RA_GYRO_CONFIG * @see MPU6050_GCONFIG_FS_SEL_BIT * @see MPU6050_GCONFIG_FS_SEL_LENGTH */ uint8_t MPU6050::getFullScaleGyroRange() { I2Cdev_readBits(devAddr, MPU6050_RA_GYRO_CONFIG, MPU6050_GCONFIG_FS_SEL_BIT, MPU6050_GCONFIG_FS_SEL_LENGTH, buffer); return buffer[0]; } /** Set full-scale gyroscope range. * @param range New full-scale gyroscope range value * @see getFullScaleRange() * @see MPU6050_GYRO_FS_250 * @see MPU6050_RA_GYRO_CONFIG * @see MPU6050_GCONFIG_FS_SEL_BIT * @see MPU6050_GCONFIG_FS_SEL_LENGTH */ void MPU6050::setFullScaleGyroRange(uint8_t range) { I2Cdev_writeBits(devAddr, MPU6050_RA_GYRO_CONFIG, MPU6050_GCONFIG_FS_SEL_BIT, MPU6050_GCONFIG_FS_SEL_LENGTH, range); switch (range) { case MPU6050_GYRO_FS_250: gyroRangeScale = 32768 / 250.0; break; case MPU6050_GYRO_FS_500: gyroRangeScale = 32768 / 500.0; break; case MPU6050_GYRO_FS_1000: gyroRangeScale = 32768 / 1000.0; break; case MPU6050_GYRO_FS_2000: gyroRangeScale = 32768 / 2000.0; break; default: break; } } // SELF TEST FACTORY TRIM VALUES /** Get self-test factory trim value for accelerometer X axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_X */ uint8_t MPU6050::getAccelXSelfTestFactoryTrim() { I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_X, &buffer[0]); I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_A, &buffer[1]); return (buffer[0] >> 3) | ((buffer[1] >> 4) & 0x03); } /** Get self-test factory trim value for accelerometer Y axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_Y */ uint8_t MPU6050::getAccelYSelfTestFactoryTrim() { I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_Y, &buffer[0]); I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_A, &buffer[1]); return (buffer[0] >> 3) | ((buffer[1] >> 2) & 0x03); } /** Get self-test factory trim value for accelerometer Z axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_Z */ uint8_t MPU6050::getAccelZSelfTestFactoryTrim() { I2Cdev_readBytes(devAddr, MPU6050_RA_SELF_TEST_Z, 2, buffer); return (buffer[0] >> 3) | (buffer[1] & 0x03); } /** Get self-test factory trim value for gyro X axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_X */ uint8_t MPU6050::getGyroXSelfTestFactoryTrim() { I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_X, buffer); return (buffer[0] & 0x1F); } /** Get self-test factory trim value for gyro Y axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_Y */ uint8_t MPU6050::getGyroYSelfTestFactoryTrim() { I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_Y, buffer); return (buffer[0] & 0x1F); } /** Get self-test factory trim value for gyro Z axis. * @return factory trim value * @see MPU6050_RA_SELF_TEST_Z */ uint8_t MPU6050::getGyroZSelfTestFactoryTrim() { I2Cdev_readByte(devAddr, MPU6050_RA_SELF_TEST_Z, buffer); return (buffer[0] & 0x1F); } // ACCEL_CONFIG register /** Get self-test enabled setting for accelerometer X axis. * @return Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ bool MPU6050::getAccelXSelfTest() { I2Cdev_readBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_XA_ST_BIT, buffer); return buffer[0]; } /** Get self-test enabled setting for accelerometer X axis. * @param enabled Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ void MPU6050::setAccelXSelfTest(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_XA_ST_BIT, enabled); } /** Get self-test enabled value for accelerometer Y axis. * @return Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ bool MPU6050::getAccelYSelfTest() { I2Cdev_readBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_YA_ST_BIT, buffer); return buffer[0]; } /** Get self-test enabled value for accelerometer Y axis. * @param enabled Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ void MPU6050::setAccelYSelfTest(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_YA_ST_BIT, enabled); } /** Get self-test enabled value for accelerometer Z axis. * @return Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ bool MPU6050::getAccelZSelfTest() { I2Cdev_readBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_ZA_ST_BIT, buffer); return buffer[0]; } /** Set self-test enabled value for accelerometer Z axis. * @param enabled Self-test enabled value * @see MPU6050_RA_ACCEL_CONFIG */ void MPU6050::setAccelZSelfTest(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_ZA_ST_BIT, enabled); } /** Get full-scale accelerometer range. * The FS_SEL parameter allows setting the full-scale range of the accelerometer * sensors, as described in the table below. * *
 * 0 = +/- 2g
 * 1 = +/- 4g
 * 2 = +/- 8g
 * 3 = +/- 16g
 * 
* * @return Current full-scale accelerometer range setting * @see MPU6050_ACCEL_FS_2 * @see MPU6050_RA_ACCEL_CONFIG * @see MPU6050_ACONFIG_AFS_SEL_BIT * @see MPU6050_ACONFIG_AFS_SEL_LENGTH */ uint8_t MPU6050::getFullScaleAccelRange() { I2Cdev_readBits(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_AFS_SEL_BIT, MPU6050_ACONFIG_AFS_SEL_LENGTH, buffer); return buffer[0]; } /** Set full-scale accelerometer range. * @param range New full-scale accelerometer range setting * @see getFullScaleAccelRange() */ void MPU6050::setFullScaleAccelRange(uint8_t range) { I2Cdev_writeBits(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_AFS_SEL_BIT, MPU6050_ACONFIG_AFS_SEL_LENGTH, range); switch (range) { case MPU6050_ACCEL_FS_2: accRangeScale = 32768 / 2.0; break; case MPU6050_ACCEL_FS_4: accRangeScale = 32768 / 4.0; break; case MPU6050_ACCEL_FS_8: accRangeScale = 32768 / 8.0; break; case MPU6050_ACCEL_FS_16: accRangeScale = 32768 / 16.0; break; default: break; } } /** Get the high-pass filter configuration. * The DHPF is a filter module in the path leading to motion detectors (Free * Fall, Motion threshold, and Zero Motion). The high pass filter output is not * available to the data registers (see Figure in Section 8 of the MPU-6000/ * MPU-6050 Product Specification document). * * The high pass filter has three modes: * *
 *    Reset: The filter output settles to zero within one sample. This
 *           effectively disables the high pass filter. This mode may be toggled
 *           to quickly settle the filter.
 *
 *    On:    The high pass filter will pass signals above the cut off frequency.
 *
 *    Hold:  When triggered, the filter holds the present sample. The filter
 *           output will be the difference between the input sample and the held
 *           sample.
 * 
* *
 * ACCEL_HPF | Filter Mode | Cut-off Frequency
 * ----------+-------------+------------------
 * 0         | Reset       | None
 * 1         | On          | 5Hz
 * 2         | On          | 2.5Hz
 * 3         | On          | 1.25Hz
 * 4         | On          | 0.63Hz
 * 7         | Hold        | None
 * 
* * @return Current high-pass filter configuration * @see MPU6050_DHPF_RESET * @see MPU6050_RA_ACCEL_CONFIG */ uint8_t MPU6050::getDHPFMode() { I2Cdev_readBits(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_ACCEL_HPF_BIT, MPU6050_ACONFIG_ACCEL_HPF_LENGTH, buffer); return buffer[0]; } /** Set the high-pass filter configuration. * @param bandwidth New high-pass filter configuration * @see setDHPFMode() * @see MPU6050_DHPF_RESET * @see MPU6050_RA_ACCEL_CONFIG */ void MPU6050::setDHPFMode(uint8_t bandwidth) { I2Cdev_writeBits(devAddr, MPU6050_RA_ACCEL_CONFIG, MPU6050_ACONFIG_ACCEL_HPF_BIT, MPU6050_ACONFIG_ACCEL_HPF_LENGTH, bandwidth); } // FF_THR register /** Get free-fall event acceleration threshold. * This register configures the detection threshold for Free Fall event * detection. The unit of FF_THR is 1LSB = 2mg. Free Fall is detected when the * absolute value of the accelerometer measurements for the three axes are each * less than the detection threshold. This condition increments the Free Fall * duration counter (Register 30). The Free Fall interrupt is triggered when the * Free Fall duration counter reaches the time specified in FF_DUR. * * For more details on the Free Fall detection interrupt, see Section 8.2 of the * MPU-6000/MPU-6050 Product Specification document as well as Registers 56 and * 58 of this document. * * @return Current free-fall acceleration threshold value (LSB = 2mg) * @see MPU6050_RA_FF_THR */ uint8_t MPU6050::getFreefallDetectionThreshold() { I2Cdev_readByte(devAddr, MPU6050_RA_FF_THR, buffer); return buffer[0]; } /** Get free-fall event acceleration threshold. * @param threshold New free-fall acceleration threshold value (LSB = 2mg) * @see getFreefallDetectionThreshold() * @see MPU6050_RA_FF_THR */ void MPU6050::setFreefallDetectionThreshold(uint8_t threshold) { I2Cdev_writeByte(devAddr, MPU6050_RA_FF_THR, threshold); } // FF_DUR register /** Get free-fall event duration threshold. * This register configures the duration counter threshold for Free Fall event * detection. The duration counter ticks at 1kHz, therefore FF_DUR has a unit * of 1 LSB = 1 ms. * * The Free Fall duration counter increments while the absolute value of the * accelerometer measurements are each less than the detection threshold * (Register 29). The Free Fall interrupt is triggered when the Free Fall * duration counter reaches the time specified in this register. * * For more details on the Free Fall detection interrupt, see Section 8.2 of * the MPU-6000/MPU-6050 Product Specification document as well as Registers 56 * and 58 of this document. * * @return Current free-fall duration threshold value (LSB = 1ms) * @see MPU6050_RA_FF_DUR */ uint8_t MPU6050::getFreefallDetectionDuration() { I2Cdev_readByte(devAddr, MPU6050_RA_FF_DUR, buffer); return buffer[0]; } /** Get free-fall event duration threshold. * @param duration New free-fall duration threshold value (LSB = 1ms) * @see getFreefallDetectionDuration() * @see MPU6050_RA_FF_DUR */ void MPU6050::setFreefallDetectionDuration(uint8_t duration) { I2Cdev_writeByte(devAddr, MPU6050_RA_FF_DUR, duration); } // MOT_THR register /** Get motion detection event acceleration threshold. * This register configures the detection threshold for Motion interrupt * generation. The unit of MOT_THR is 1LSB = 2mg. Motion is detected when the * absolute value of any of the accelerometer measurements exceeds this Motion * detection threshold. This condition increments the Motion detection duration * counter (Register 32). The Motion detection interrupt is triggered when the * Motion Detection counter reaches the time count specified in MOT_DUR * (Register 32). * * The Motion interrupt will indicate the axis and polarity of detected motion * in MOT_DETECT_STATUS (Register 97). * * For more details on the Motion detection interrupt, see Section 8.3 of the * MPU-6000/MPU-6050 Product Specification document as well as Registers 56 and * 58 of this document. * * @return Current motion detection acceleration threshold value (LSB = 2mg) * @see MPU6050_RA_MOT_THR */ uint8_t MPU6050::getMotionDetectionThreshold() { I2Cdev_readByte(devAddr, MPU6050_RA_MOT_THR, buffer); return buffer[0]; } /** Set motion detection event acceleration threshold. * @param threshold New motion detection acceleration threshold value (LSB = 2mg) * @see getMotionDetectionThreshold() * @see MPU6050_RA_MOT_THR */ void MPU6050::setMotionDetectionThreshold(uint8_t threshold) { I2Cdev_writeByte(devAddr, MPU6050_RA_MOT_THR, threshold); } // MOT_DUR register /** Get motion detection event duration threshold. * This register configures the duration counter threshold for Motion interrupt * generation. The duration counter ticks at 1 kHz, therefore MOT_DUR has a unit * of 1LSB = 1ms. The Motion detection duration counter increments when the * absolute value of any of the accelerometer measurements exceeds the Motion * detection threshold (Register 31). The Motion detection interrupt is * triggered when the Motion detection counter reaches the time count specified * in this register. * * For more details on the Motion detection interrupt, see Section 8.3 of the * MPU-6000/MPU-6050 Product Specification document. * * @return Current motion detection duration threshold value (LSB = 1ms) * @see MPU6050_RA_MOT_DUR */ uint8_t MPU6050::getMotionDetectionDuration() { I2Cdev_readByte(devAddr, MPU6050_RA_MOT_DUR, buffer); return buffer[0]; } /** Set motion detection event duration threshold. * @param duration New motion detection duration threshold value (LSB = 1ms) * @see getMotionDetectionDuration() * @see MPU6050_RA_MOT_DUR */ void MPU6050::setMotionDetectionDuration(uint8_t duration) { I2Cdev_writeByte(devAddr, MPU6050_RA_MOT_DUR, duration); } // ZRMOT_THR register /** Get zero motion detection event acceleration threshold. * This register configures the detection threshold for Zero Motion interrupt * generation. The unit of ZRMOT_THR is 1LSB = 2mg. Zero Motion is detected when * the absolute value of the accelerometer measurements for the 3 axes are each * less than the detection threshold. This condition increments the Zero Motion * duration counter (Register 34). The Zero Motion interrupt is triggered when * the Zero Motion duration counter reaches the time count specified in * ZRMOT_DUR (Register 34). * * Unlike Free Fall or Motion detection, Zero Motion detection triggers an * interrupt both when Zero Motion is first detected and when Zero Motion is no * longer detected. * * When a zero motion event is detected, a Zero Motion Status will be indicated * in the MOT_DETECT_STATUS register (Register 97). When a motion-to-zero-motion * condition is detected, the status bit is set to 1. When a zero-motion-to- * motion condition is detected, the status bit is set to 0. * * For more details on the Zero Motion detection interrupt, see Section 8.4 of * the MPU-6000/MPU-6050 Product Specification document as well as Registers 56 * and 58 of this document. * * @return Current zero motion detection acceleration threshold value (LSB = 2mg) * @see MPU6050_RA_ZRMOT_THR */ uint8_t MPU6050::getZeroMotionDetectionThreshold() { I2Cdev_readByte(devAddr, MPU6050_RA_ZRMOT_THR, buffer); return buffer[0]; } /** Set zero motion detection event acceleration threshold. * @param threshold New zero motion detection acceleration threshold value (LSB = 2mg) * @see getZeroMotionDetectionThreshold() * @see MPU6050_RA_ZRMOT_THR */ void MPU6050::setZeroMotionDetectionThreshold(uint8_t threshold) { I2Cdev_writeByte(devAddr, MPU6050_RA_ZRMOT_THR, threshold); } // ZRMOT_DUR register /** Get zero motion detection event duration threshold. * This register configures the duration counter threshold for Zero Motion * interrupt generation. The duration counter ticks at 16 Hz, therefore * ZRMOT_DUR has a unit of 1 LSB = 64 ms. The Zero Motion duration counter * increments while the absolute value of the accelerometer measurements are * each less than the detection threshold (Register 33). The Zero Motion * interrupt is triggered when the Zero Motion duration counter reaches the time * count specified in this register. * * For more details on the Zero Motion detection interrupt, see Section 8.4 of * the MPU-6000/MPU-6050 Product Specification document, as well as Registers 56 * and 58 of this document. * * @return Current zero motion detection duration threshold value (LSB = 64ms) * @see MPU6050_RA_ZRMOT_DUR */ uint8_t MPU6050::getZeroMotionDetectionDuration() { I2Cdev_readByte(devAddr, MPU6050_RA_ZRMOT_DUR, buffer); return buffer[0]; } /** Set zero motion detection event duration threshold. * @param duration New zero motion detection duration threshold value (LSB = 1ms) * @see getZeroMotionDetectionDuration() * @see MPU6050_RA_ZRMOT_DUR */ void MPU6050::setZeroMotionDetectionDuration(uint8_t duration) { I2Cdev_writeByte(devAddr, MPU6050_RA_ZRMOT_DUR, duration); } // FIFO_EN register /** Get temperature FIFO enabled value. * When set to 1, this bit enables TEMP_OUT_H and TEMP_OUT_L (Registers 65 and * 66) to be written into the FIFO buffer. * @return Current temperature FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getTempFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_TEMP_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set temperature FIFO enabled value. * @param enabled New temperature FIFO enabled value * @see getTempFIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setTempFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_TEMP_FIFO_EN_BIT, enabled); } /** Get gyroscope X-axis FIFO enabled value. * When set to 1, this bit enables GYRO_XOUT_H and GYRO_XOUT_L (Registers 67 and * 68) to be written into the FIFO buffer. * @return Current gyroscope X-axis FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getXGyroFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_XG_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set gyroscope X-axis FIFO enabled value. * @param enabled New gyroscope X-axis FIFO enabled value * @see getXGyroFIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setXGyroFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_XG_FIFO_EN_BIT, enabled); } /** Get gyroscope Y-axis FIFO enabled value. * When set to 1, this bit enables GYRO_YOUT_H and GYRO_YOUT_L (Registers 69 and * 70) to be written into the FIFO buffer. * @return Current gyroscope Y-axis FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getYGyroFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_YG_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set gyroscope Y-axis FIFO enabled value. * @param enabled New gyroscope Y-axis FIFO enabled value * @see getYGyroFIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setYGyroFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_YG_FIFO_EN_BIT, enabled); } /** Get gyroscope Z-axis FIFO enabled value. * When set to 1, this bit enables GYRO_ZOUT_H and GYRO_ZOUT_L (Registers 71 and * 72) to be written into the FIFO buffer. * @return Current gyroscope Z-axis FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getZGyroFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_ZG_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set gyroscope Z-axis FIFO enabled value. * @param enabled New gyroscope Z-axis FIFO enabled value * @see getZGyroFIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setZGyroFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_ZG_FIFO_EN_BIT, enabled); } /** Get accelerometer FIFO enabled value. * When set to 1, this bit enables ACCEL_XOUT_H, ACCEL_XOUT_L, ACCEL_YOUT_H, * ACCEL_YOUT_L, ACCEL_ZOUT_H, and ACCEL_ZOUT_L (Registers 59 to 64) to be * written into the FIFO buffer. * @return Current accelerometer FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getAccelFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_ACCEL_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set accelerometer FIFO enabled value. * @param enabled New accelerometer FIFO enabled value * @see getAccelFIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setAccelFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_ACCEL_FIFO_EN_BIT, enabled); } /** Get Slave 2 FIFO enabled value. * When set to 1, this bit enables EXT_SENS_DATA registers (Registers 73 to 96) * associated with Slave 2 to be written into the FIFO buffer. * @return Current Slave 2 FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getSlave2FIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV2_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set Slave 2 FIFO enabled value. * @param enabled New Slave 2 FIFO enabled value * @see getSlave2FIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setSlave2FIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV2_FIFO_EN_BIT, enabled); } /** Get Slave 1 FIFO enabled value. * When set to 1, this bit enables EXT_SENS_DATA registers (Registers 73 to 96) * associated with Slave 1 to be written into the FIFO buffer. * @return Current Slave 1 FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getSlave1FIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV1_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set Slave 1 FIFO enabled value. * @param enabled New Slave 1 FIFO enabled value * @see getSlave1FIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setSlave1FIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV1_FIFO_EN_BIT, enabled); } /** Get Slave 0 FIFO enabled value. * When set to 1, this bit enables EXT_SENS_DATA registers (Registers 73 to 96) * associated with Slave 0 to be written into the FIFO buffer. * @return Current Slave 0 FIFO enabled value * @see MPU6050_RA_FIFO_EN */ bool MPU6050::getSlave0FIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV0_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set Slave 0 FIFO enabled value. * @param enabled New Slave 0 FIFO enabled value * @see getSlave0FIFOEnabled() * @see MPU6050_RA_FIFO_EN */ void MPU6050::setSlave0FIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_FIFO_EN, MPU6050_SLV0_FIFO_EN_BIT, enabled); } // I2C_MST_CTRL register /** Get multi-master enabled value. * Multi-master capability allows multiple I2C masters to operate on the same * bus. In circuits where multi-master capability is required, set MULT_MST_EN * to 1. This will increase current drawn by approximately 30uA. * * In circuits where multi-master capability is required, the state of the I2C * bus must always be monitored by each separate I2C Master. Before an I2C * Master can assume arbitration of the bus, it must first confirm that no other * I2C Master has arbitration of the bus. When MULT_MST_EN is set to 1, the * MPU-60X0's bus arbitration detection logic is turned on, enabling it to * detect when the bus is available. * * @return Current multi-master enabled value * @see MPU6050_RA_I2C_MST_CTRL */ bool MPU6050::getMultiMasterEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_MULT_MST_EN_BIT, buffer); return buffer[0]; } /** Set multi-master enabled value. * @param enabled New multi-master enabled value * @see getMultiMasterEnabled() * @see MPU6050_RA_I2C_MST_CTRL */ void MPU6050::setMultiMasterEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_MULT_MST_EN_BIT, enabled); } /** Get wait-for-external-sensor-data enabled value. * When the WAIT_FOR_ES bit is set to 1, the Data Ready interrupt will be * delayed until External Sensor data from the Slave Devices are loaded into the * EXT_SENS_DATA registers. This is used to ensure that both the internal sensor * data (i.e. from gyro and accel) and external sensor data have been loaded to * their respective data registers (i.e. the data is synced) when the Data Ready * interrupt is triggered. * * @return Current wait-for-external-sensor-data enabled value * @see MPU6050_RA_I2C_MST_CTRL */ bool MPU6050::getWaitForExternalSensorEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_WAIT_FOR_ES_BIT, buffer); return buffer[0]; } /** Set wait-for-external-sensor-data enabled value. * @param enabled New wait-for-external-sensor-data enabled value * @see getWaitForExternalSensorEnabled() * @see MPU6050_RA_I2C_MST_CTRL */ void MPU6050::setWaitForExternalSensorEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_WAIT_FOR_ES_BIT, enabled); } /** Get Slave 3 FIFO enabled value. * When set to 1, this bit enables EXT_SENS_DATA registers (Registers 73 to 96) * associated with Slave 3 to be written into the FIFO buffer. * @return Current Slave 3 FIFO enabled value * @see MPU6050_RA_MST_CTRL */ bool MPU6050::getSlave3FIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_SLV_3_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set Slave 3 FIFO enabled value. * @param enabled New Slave 3 FIFO enabled value * @see getSlave3FIFOEnabled() * @see MPU6050_RA_MST_CTRL */ void MPU6050::setSlave3FIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_SLV_3_FIFO_EN_BIT, enabled); } /** Get slave read/write transition enabled value. * The I2C_MST_P_NSR bit configures the I2C Master's transition from one slave * read to the next slave read. If the bit equals 0, there will be a restart * between reads. If the bit equals 1, there will be a stop followed by a start * of the following read. When a write transaction follows a read transaction, * the stop followed by a start of the successive write will be always used. * * @return Current slave read/write transition enabled value * @see MPU6050_RA_I2C_MST_CTRL */ bool MPU6050::getSlaveReadWriteTransitionEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_I2C_MST_P_NSR_BIT, buffer); return buffer[0]; } /** Set slave read/write transition enabled value. * @param enabled New slave read/write transition enabled value * @see getSlaveReadWriteTransitionEnabled() * @see MPU6050_RA_I2C_MST_CTRL */ void MPU6050::setSlaveReadWriteTransitionEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_I2C_MST_P_NSR_BIT, enabled); } /** Get I2C master clock speed. * I2C_MST_CLK is a 4 bit unsigned value which configures a divider on the * MPU-60X0 internal 8MHz clock. It sets the I2C master clock speed according to * the following table: * *
 * I2C_MST_CLK | I2C Master Clock Speed | 8MHz Clock Divider
 * ------------+------------------------+-------------------
 * 0           | 348kHz                 | 23
 * 1           | 333kHz                 | 24
 * 2           | 320kHz                 | 25
 * 3           | 308kHz                 | 26
 * 4           | 296kHz                 | 27
 * 5           | 286kHz                 | 28
 * 6           | 276kHz                 | 29
 * 7           | 267kHz                 | 30
 * 8           | 258kHz                 | 31
 * 9           | 500kHz                 | 16
 * 10          | 471kHz                 | 17
 * 11          | 444kHz                 | 18
 * 12          | 421kHz                 | 19
 * 13          | 400kHz                 | 20
 * 14          | 381kHz                 | 21
 * 15          | 364kHz                 | 22
 * 
* * @return Current I2C master clock speed * @see MPU6050_RA_I2C_MST_CTRL */ uint8_t MPU6050::getMasterClockSpeed() { I2Cdev_readBits(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_I2C_MST_CLK_BIT, MPU6050_I2C_MST_CLK_LENGTH, buffer); return buffer[0]; } /** Set I2C master clock speed. * @reparam speed Current I2C master clock speed * @see MPU6050_RA_I2C_MST_CTRL */ void MPU6050::setMasterClockSpeed(uint8_t speed) { I2Cdev_writeBits(devAddr, MPU6050_RA_I2C_MST_CTRL, MPU6050_I2C_MST_CLK_BIT, MPU6050_I2C_MST_CLK_LENGTH, speed); } // I2C_SLV* registers (Slave 0-3) /** Get the I2C address of the specified slave (0-3). * Note that Bit 7 (MSB) controls read/write mode. If Bit 7 is set, it's a read * operation, and if it is cleared, then it's a write operation. The remaining * bits (6-0) are the 7-bit device address of the slave device. * * In read mode, the result of the read is placed in the lowest available * EXT_SENS_DATA register. For further information regarding the allocation of * read results, please refer to the EXT_SENS_DATA register description * (Registers 73 - 96). * * The MPU-6050 supports a total of five slaves, but Slave 4 has unique * characteristics, and so it has its own functions (getSlave4* and setSlave4*). * * I2C data transactions are performed at the Sample Rate, as defined in * Register 25. The user is responsible for ensuring that I2C data transactions * to and from each enabled Slave can be completed within a single period of the * Sample Rate. * * The I2C slave access rate can be reduced relative to the Sample Rate. This * reduced access rate is determined by I2C_MST_DLY (Register 52). Whether a * slave's access rate is reduced relative to the Sample Rate is determined by * I2C_MST_DELAY_CTRL (Register 103). * * The processing order for the slaves is fixed. The sequence followed for * processing the slaves is Slave 0, Slave 1, Slave 2, Slave 3 and Slave 4. If a * particular Slave is disabled it will be skipped. * * Each slave can either be accessed at the sample rate or at a reduced sample * rate. In a case where some slaves are accessed at the Sample Rate and some * slaves are accessed at the reduced rate, the sequence of accessing the slaves * (Slave 0 to Slave 4) is still followed. However, the reduced rate slaves will * be skipped if their access rate dictates that they should not be accessed * during that particular cycle. For further information regarding the reduced * access rate, please refer to Register 52. Whether a slave is accessed at the * Sample Rate or at the reduced rate is determined by the Delay Enable bits in * Register 103. * * @param num Slave number (0-3) * @return Current address for specified slave * @see MPU6050_RA_I2C_SLV0_ADDR */ uint8_t MPU6050::getSlaveAddress(uint8_t num) { if (num > 3) return 0; I2Cdev_readByte(devAddr, MPU6050_RA_I2C_SLV0_ADDR + num * 3, buffer); return buffer[0]; } /** Set the I2C address of the specified slave (0-3). * @param num Slave number (0-3) * @param address New address for specified slave * @see getSlaveAddress() * @see MPU6050_RA_I2C_SLV0_ADDR */ void MPU6050::setSlaveAddress(uint8_t num, uint8_t address) { if (num > 3) return; I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV0_ADDR + num * 3, address); } /** Get the active internal register for the specified slave (0-3). * Read/write operations for this slave will be done to whatever internal * register address is stored in this MPU register. * * The MPU-6050 supports a total of five slaves, but Slave 4 has unique * characteristics, and so it has its own functions. * * @param num Slave number (0-3) * @return Current active register for specified slave * @see MPU6050_RA_I2C_SLV0_REG */ uint8_t MPU6050::getSlaveRegister(uint8_t num) { if (num > 3) return 0; I2Cdev_readByte(devAddr, MPU6050_RA_I2C_SLV0_REG + num * 3, buffer); return buffer[0]; } /** Set the active internal register for the specified slave (0-3). * @param num Slave number (0-3) * @param reg New active register for specified slave * @see getSlaveRegister() * @see MPU6050_RA_I2C_SLV0_REG */ void MPU6050::setSlaveRegister(uint8_t num, uint8_t reg) { if (num > 3) return; I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV0_REG + num * 3, reg); } /** Get the enabled value for the specified slave (0-3). * When set to 1, this bit enables Slave 0 for data transfer operations. When * cleared to 0, this bit disables Slave 0 from data transfer operations. * @param num Slave number (0-3) * @return Current enabled value for specified slave * @see MPU6050_RA_I2C_SLV0_CTRL */ bool MPU6050::getSlaveEnabled(uint8_t num) { if (num > 3) return 0; I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_EN_BIT, buffer); return buffer[0]; } /** Set the enabled value for the specified slave (0-3). * @param num Slave number (0-3) * @param enabled New enabled value for specified slave * @see getSlaveEnabled() * @see MPU6050_RA_I2C_SLV0_CTRL */ void MPU6050::setSlaveEnabled(uint8_t num, bool enabled) { if (num > 3) return; I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_EN_BIT, enabled); } /** Get word pair byte-swapping enabled for the specified slave (0-3). * When set to 1, this bit enables byte swapping. When byte swapping is enabled, * the high and low bytes of a word pair are swapped. Please refer to * I2C_SLV0_GRP for the pairing convention of the word pairs. When cleared to 0, * bytes transferred to and from Slave 0 will be written to EXT_SENS_DATA * registers in the order they were transferred. * * @param num Slave number (0-3) * @return Current word pair byte-swapping enabled value for specified slave * @see MPU6050_RA_I2C_SLV0_CTRL */ bool MPU6050::getSlaveWordByteSwap(uint8_t num) { if (num > 3) return 0; I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_BYTE_SW_BIT, buffer); return buffer[0]; } /** Set word pair byte-swapping enabled for the specified slave (0-3). * @param num Slave number (0-3) * @param enabled New word pair byte-swapping enabled value for specified slave * @see getSlaveWordByteSwap() * @see MPU6050_RA_I2C_SLV0_CTRL */ void MPU6050::setSlaveWordByteSwap(uint8_t num, bool enabled) { if (num > 3) return; I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_BYTE_SW_BIT, enabled); } /** Get write mode for the specified slave (0-3). * When set to 1, the transaction will read or write data only. When cleared to * 0, the transaction will write a register address prior to reading or writing * data. This should equal 0 when specifying the register address within the * Slave device to/from which the ensuing data transaction will take place. * * @param num Slave number (0-3) * @return Current write mode for specified slave (0 = register address + data, 1 = data only) * @see MPU6050_RA_I2C_SLV0_CTRL */ bool MPU6050::getSlaveWriteMode(uint8_t num) { if (num > 3) return 0; I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_REG_DIS_BIT, buffer); return buffer[0]; } /** Set write mode for the specified slave (0-3). * @param num Slave number (0-3) * @param mode New write mode for specified slave (0 = register address + data, 1 = data only) * @see getSlaveWriteMode() * @see MPU6050_RA_I2C_SLV0_CTRL */ void MPU6050::setSlaveWriteMode(uint8_t num, bool mode) { if (num > 3) return; I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_REG_DIS_BIT, mode); } /** Get word pair grouping order offset for the specified slave (0-3). * This sets specifies the grouping order of word pairs received from registers. * When cleared to 0, bytes from register addresses 0 and 1, 2 and 3, etc (even, * then odd register addresses) are paired to form a word. When set to 1, bytes * from register addresses are paired 1 and 2, 3 and 4, etc. (odd, then even * register addresses) are paired to form a word. * * @param num Slave number (0-3) * @return Current word pair grouping order offset for specified slave * @see MPU6050_RA_I2C_SLV0_CTRL */ bool MPU6050::getSlaveWordGroupOffset(uint8_t num) { if (num > 3) return 0; I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_GRP_BIT, buffer); return buffer[0]; } /** Set word pair grouping order offset for the specified slave (0-3). * @param num Slave number (0-3) * @param enabled New word pair grouping order offset for specified slave * @see getSlaveWordGroupOffset() * @see MPU6050_RA_I2C_SLV0_CTRL */ void MPU6050::setSlaveWordGroupOffset(uint8_t num, bool enabled) { if (num > 3) return; I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_GRP_BIT, enabled); } /** Get number of bytes to read for the specified slave (0-3). * Specifies the number of bytes transferred to and from Slave 0. Clearing this * bit to 0 is equivalent to disabling the register by writing 0 to I2C_SLV0_EN. * @param num Slave number (0-3) * @return Number of bytes to read for specified slave * @see MPU6050_RA_I2C_SLV0_CTRL */ uint8_t MPU6050::getSlaveDataLength(uint8_t num) { if (num > 3) return 0; I2Cdev_readBits(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_LEN_BIT, MPU6050_I2C_SLV_LEN_LENGTH, buffer); return buffer[0]; } /** Set number of bytes to read for the specified slave (0-3). * @param num Slave number (0-3) * @param length Number of bytes to read for specified slave * @see getSlaveDataLength() * @see MPU6050_RA_I2C_SLV0_CTRL */ void MPU6050::setSlaveDataLength(uint8_t num, uint8_t length) { if (num > 3) return; I2Cdev_writeBits(devAddr, MPU6050_RA_I2C_SLV0_CTRL + num * 3, MPU6050_I2C_SLV_LEN_BIT, MPU6050_I2C_SLV_LEN_LENGTH, length); } // I2C_SLV* registers (Slave 4) /** Get the I2C address of Slave 4. * Note that Bit 7 (MSB) controls read/write mode. If Bit 7 is set, it's a read * operation, and if it is cleared, then it's a write operation. The remaining * bits (6-0) are the 7-bit device address of the slave device. * * @return Current address for Slave 4 * @see getSlaveAddress() * @see MPU6050_RA_I2C_SLV4_ADDR */ uint8_t MPU6050::getSlave4Address() { I2Cdev_readByte(devAddr, MPU6050_RA_I2C_SLV4_ADDR, buffer); return buffer[0]; } /** Set the I2C address of Slave 4. * @param address New address for Slave 4 * @see getSlave4Address() * @see MPU6050_RA_I2C_SLV4_ADDR */ void MPU6050::setSlave4Address(uint8_t address) { I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV4_ADDR, address); } /** Get the active internal register for the Slave 4. * Read/write operations for this slave will be done to whatever internal * register address is stored in this MPU register. * * @return Current active register for Slave 4 * @see MPU6050_RA_I2C_SLV4_REG */ uint8_t MPU6050::getSlave4Register() { I2Cdev_readByte(devAddr, MPU6050_RA_I2C_SLV4_REG, buffer); return buffer[0]; } /** Set the active internal register for Slave 4. * @param reg New active register for Slave 4 * @see getSlave4Register() * @see MPU6050_RA_I2C_SLV4_REG */ void MPU6050::setSlave4Register(uint8_t reg) { I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV4_REG, reg); } /** Set new byte to write to Slave 4. * This register stores the data to be written into the Slave 4. If I2C_SLV4_RW * is set 1 (set to read), this register has no effect. * @param data New byte to write to Slave 4 * @see MPU6050_RA_I2C_SLV4_DO */ void MPU6050::setSlave4OutputByte(uint8_t data) { I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV4_DO, data); } /** Get the enabled value for the Slave 4. * When set to 1, this bit enables Slave 4 for data transfer operations. When * cleared to 0, this bit disables Slave 4 from data transfer operations. * @return Current enabled value for Slave 4 * @see MPU6050_RA_I2C_SLV4_CTRL */ bool MPU6050::getSlave4Enabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_EN_BIT, buffer); return buffer[0]; } /** Set the enabled value for Slave 4. * @param enabled New enabled value for Slave 4 * @see getSlave4Enabled() * @see MPU6050_RA_I2C_SLV4_CTRL */ void MPU6050::setSlave4Enabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_EN_BIT, enabled); } /** Get the enabled value for Slave 4 transaction interrupts. * When set to 1, this bit enables the generation of an interrupt signal upon * completion of a Slave 4 transaction. When cleared to 0, this bit disables the * generation of an interrupt signal upon completion of a Slave 4 transaction. * The interrupt status can be observed in Register 54. * * @return Current enabled value for Slave 4 transaction interrupts. * @see MPU6050_RA_I2C_SLV4_CTRL */ bool MPU6050::getSlave4InterruptEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_INT_EN_BIT, buffer); return buffer[0]; } /** Set the enabled value for Slave 4 transaction interrupts. * @param enabled New enabled value for Slave 4 transaction interrupts. * @see getSlave4InterruptEnabled() * @see MPU6050_RA_I2C_SLV4_CTRL */ void MPU6050::setSlave4InterruptEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_INT_EN_BIT, enabled); } /** Get write mode for Slave 4. * When set to 1, the transaction will read or write data only. When cleared to * 0, the transaction will write a register address prior to reading or writing * data. This should equal 0 when specifying the register address within the * Slave device to/from which the ensuing data transaction will take place. * * @return Current write mode for Slave 4 (0 = register address + data, 1 = data only) * @see MPU6050_RA_I2C_SLV4_CTRL */ bool MPU6050::getSlave4WriteMode() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_REG_DIS_BIT, buffer); return buffer[0]; } /** Set write mode for the Slave 4. * @param mode New write mode for Slave 4 (0 = register address + data, 1 = data only) * @see getSlave4WriteMode() * @see MPU6050_RA_I2C_SLV4_CTRL */ void MPU6050::setSlave4WriteMode(bool mode) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_REG_DIS_BIT, mode); } /** Get Slave 4 master delay value. * This configures the reduced access rate of I2C slaves relative to the Sample * Rate. When a slave's access rate is decreased relative to the Sample Rate, * the slave is accessed every: * * 1 / (1 + I2C_MST_DLY) samples * * This base Sample Rate in turn is determined by SMPLRT_DIV (register 25) and * DLPF_CFG (register 26). Whether a slave's access rate is reduced relative to * the Sample Rate is determined by I2C_MST_DELAY_CTRL (register 103). For * further information regarding the Sample Rate, please refer to register 25. * * @return Current Slave 4 master delay value * @see MPU6050_RA_I2C_SLV4_CTRL */ uint8_t MPU6050::getSlave4MasterDelay() { I2Cdev_readBits(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_MST_DLY_BIT, MPU6050_I2C_SLV4_MST_DLY_LENGTH, buffer); return buffer[0]; } /** Set Slave 4 master delay value. * @param delay New Slave 4 master delay value * @see getSlave4MasterDelay() * @see MPU6050_RA_I2C_SLV4_CTRL */ void MPU6050::setSlave4MasterDelay(uint8_t delay) { I2Cdev_writeBits(devAddr, MPU6050_RA_I2C_SLV4_CTRL, MPU6050_I2C_SLV4_MST_DLY_BIT, MPU6050_I2C_SLV4_MST_DLY_LENGTH, delay); } /** Get last available byte read from Slave 4. * This register stores the data read from Slave 4. This field is populated * after a read transaction. * @return Last available byte read from to Slave 4 * @see MPU6050_RA_I2C_SLV4_DI */ uint8_t MPU6050::getSlate4InputByte() { I2Cdev_readByte(devAddr, MPU6050_RA_I2C_SLV4_DI, buffer); return buffer[0]; } // I2C_MST_STATUS register /** Get FSYNC interrupt status. * This bit reflects the status of the FSYNC interrupt from an external device * into the MPU-60X0. This is used as a way to pass an external interrupt * through the MPU-60X0 to the host application processor. When set to 1, this * bit will cause an interrupt if FSYNC_INT_EN is asserted in INT_PIN_CFG * (Register 55). * @return FSYNC interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getPassthroughStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_PASS_THROUGH_BIT, buffer); return buffer[0]; } /** Get Slave 4 transaction done status. * Automatically sets to 1 when a Slave 4 transaction has completed. This * triggers an interrupt if the I2C_MST_INT_EN bit in the INT_ENABLE register * (Register 56) is asserted and if the SLV_4_DONE_INT bit is asserted in the * I2C_SLV4_CTRL register (Register 52). * @return Slave 4 transaction done status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave4IsDone() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV4_DONE_BIT, buffer); return buffer[0]; } /** Get master arbitration lost status. * This bit automatically sets to 1 when the I2C Master has lost arbitration of * the auxiliary I2C bus (an error condition). This triggers an interrupt if the * I2C_MST_INT_EN bit in the INT_ENABLE register (Register 56) is asserted. * @return Master arbitration lost status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getLostArbitration() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_LOST_ARB_BIT, buffer); return buffer[0]; } /** Get Slave 4 NACK status. * This bit automatically sets to 1 when the I2C Master receives a NACK in a * transaction with Slave 4. This triggers an interrupt if the I2C_MST_INT_EN * bit in the INT_ENABLE register (Register 56) is asserted. * @return Slave 4 NACK interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave4Nack() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV4_NACK_BIT, buffer); return buffer[0]; } /** Get Slave 3 NACK status. * This bit automatically sets to 1 when the I2C Master receives a NACK in a * transaction with Slave 3. This triggers an interrupt if the I2C_MST_INT_EN * bit in the INT_ENABLE register (Register 56) is asserted. * @return Slave 3 NACK interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave3Nack() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV3_NACK_BIT, buffer); return buffer[0]; } /** Get Slave 2 NACK status. * This bit automatically sets to 1 when the I2C Master receives a NACK in a * transaction with Slave 2. This triggers an interrupt if the I2C_MST_INT_EN * bit in the INT_ENABLE register (Register 56) is asserted. * @return Slave 2 NACK interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave2Nack() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV2_NACK_BIT, buffer); return buffer[0]; } /** Get Slave 1 NACK status. * This bit automatically sets to 1 when the I2C Master receives a NACK in a * transaction with Slave 1. This triggers an interrupt if the I2C_MST_INT_EN * bit in the INT_ENABLE register (Register 56) is asserted. * @return Slave 1 NACK interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave1Nack() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV1_NACK_BIT, buffer); return buffer[0]; } /** Get Slave 0 NACK status. * This bit automatically sets to 1 when the I2C Master receives a NACK in a * transaction with Slave 0. This triggers an interrupt if the I2C_MST_INT_EN * bit in the INT_ENABLE register (Register 56) is asserted. * @return Slave 0 NACK interrupt status * @see MPU6050_RA_I2C_MST_STATUS */ bool MPU6050::getSlave0Nack() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_STATUS, MPU6050_MST_I2C_SLV0_NACK_BIT, buffer); return buffer[0]; } // INT_PIN_CFG register /** Get interrupt logic level mode. * Will be set 0 for active-high, 1 for active-low. * @return Current interrupt mode (0=active-high, 1=active-low) * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_LEVEL_BIT */ bool MPU6050::getInterruptMode() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_LEVEL_BIT, buffer); return buffer[0]; } /** Set interrupt logic level mode. * @param mode New interrupt mode (0=active-high, 1=active-low) * @see getInterruptMode() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_LEVEL_BIT */ void MPU6050::setInterruptMode(bool mode) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_LEVEL_BIT, mode); } /** Get interrupt drive mode. * Will be set 0 for push-pull, 1 for open-drain. * @return Current interrupt drive mode (0=push-pull, 1=open-drain) * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_OPEN_BIT */ bool MPU6050::getInterruptDrive() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_OPEN_BIT, buffer); return buffer[0]; } /** Set interrupt drive mode. * @param drive New interrupt drive mode (0=push-pull, 1=open-drain) * @see getInterruptDrive() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_OPEN_BIT */ void MPU6050::setInterruptDrive(bool drive) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_OPEN_BIT, drive); } /** Get interrupt latch mode. * Will be set 0 for 50us-pulse, 1 for latch-until-int-cleared. * @return Current latch mode (0=50us-pulse, 1=latch-until-int-cleared) * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_LATCH_INT_EN_BIT */ bool MPU6050::getInterruptLatch() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_LATCH_INT_EN_BIT, buffer); return buffer[0]; } /** Set interrupt latch mode. * @param latch New latch mode (0=50us-pulse, 1=latch-until-int-cleared) * @see getInterruptLatch() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_LATCH_INT_EN_BIT */ void MPU6050::setInterruptLatch(bool latch) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_LATCH_INT_EN_BIT, latch); } /** Get interrupt latch clear mode. * Will be set 0 for status-read-only, 1 for any-register-read. * @return Current latch clear mode (0=status-read-only, 1=any-register-read) * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_RD_CLEAR_BIT */ bool MPU6050::getInterruptLatchClear() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_RD_CLEAR_BIT, buffer); return buffer[0]; } /** Set interrupt latch clear mode. * @param clear New latch clear mode (0=status-read-only, 1=any-register-read) * @see getInterruptLatchClear() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_INT_RD_CLEAR_BIT */ void MPU6050::setInterruptLatchClear(bool clear) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_INT_RD_CLEAR_BIT, clear); } /** Get FSYNC interrupt logic level mode. * @return Current FSYNC interrupt mode (0=active-high, 1=active-low) * @see getFSyncInterruptMode() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_FSYNC_INT_LEVEL_BIT */ bool MPU6050::getFSyncInterruptLevel() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_FSYNC_INT_LEVEL_BIT, buffer); return buffer[0]; } /** Set FSYNC interrupt logic level mode. * @param mode New FSYNC interrupt mode (0=active-high, 1=active-low) * @see getFSyncInterruptMode() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_FSYNC_INT_LEVEL_BIT */ void MPU6050::setFSyncInterruptLevel(bool level) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_FSYNC_INT_LEVEL_BIT, level); } /** Get FSYNC pin interrupt enabled setting. * Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled setting * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_FSYNC_INT_EN_BIT */ bool MPU6050::getFSyncInterruptEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_FSYNC_INT_EN_BIT, buffer); return buffer[0]; } /** Set FSYNC pin interrupt enabled setting. * @param enabled New FSYNC pin interrupt enabled setting * @see getFSyncInterruptEnabled() * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_FSYNC_INT_EN_BIT */ void MPU6050::setFSyncInterruptEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_FSYNC_INT_EN_BIT, enabled); } /** Get I2C bypass enabled status. * When this bit is equal to 1 and I2C_MST_EN (Register 106 bit[5]) is equal to * 0, the host application processor will be able to directly access the * auxiliary I2C bus of the MPU-60X0. When this bit is equal to 0, the host * application processor will not be able to directly access the auxiliary I2C * bus of the MPU-60X0 regardless of the state of I2C_MST_EN (Register 106 * bit[5]). * @return Current I2C bypass enabled status * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_I2C_BYPASS_EN_BIT */ bool MPU6050::getI2CBypassEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_I2C_BYPASS_EN_BIT, buffer); return buffer[0]; } /** Set I2C bypass enabled status. * When this bit is equal to 1 and I2C_MST_EN (Register 106 bit[5]) is equal to * 0, the host application processor will be able to directly access the * auxiliary I2C bus of the MPU-60X0. When this bit is equal to 0, the host * application processor will not be able to directly access the auxiliary I2C * bus of the MPU-60X0 regardless of the state of I2C_MST_EN (Register 106 * bit[5]). * @param enabled New I2C bypass enabled status * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_I2C_BYPASS_EN_BIT */ void MPU6050::setI2CBypassEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_I2C_BYPASS_EN_BIT, enabled); } /** Get reference clock output enabled status. * When this bit is equal to 1, a reference clock output is provided at the * CLKOUT pin. When this bit is equal to 0, the clock output is disabled. For * further information regarding CLKOUT, please refer to the MPU-60X0 Product * Specification document. * @return Current reference clock output enabled status * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_CLKOUT_EN_BIT */ bool MPU6050::getClockOutputEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_CLKOUT_EN_BIT, buffer); return buffer[0]; } /** Set reference clock output enabled status. * When this bit is equal to 1, a reference clock output is provided at the * CLKOUT pin. When this bit is equal to 0, the clock output is disabled. For * further information regarding CLKOUT, please refer to the MPU-60X0 Product * Specification document. * @param enabled New reference clock output enabled status * @see MPU6050_RA_INT_PIN_CFG * @see MPU6050_INTCFG_CLKOUT_EN_BIT */ void MPU6050::setClockOutputEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_PIN_CFG, MPU6050_INTCFG_CLKOUT_EN_BIT, enabled); } // INT_ENABLE register /** Get full interrupt enabled status. * Full register byte for all interrupts, for quick reading. Each bit will be * set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FF_BIT **/ uint8_t MPU6050::getIntEnabled() { I2Cdev_readByte(devAddr, MPU6050_RA_INT_ENABLE, buffer); return buffer[0]; } /** Set full interrupt enabled status. * Full register byte for all interrupts, for quick reading. Each bit should be * set 0 for disabled, 1 for enabled. * @param enabled New interrupt enabled status * @see getIntFreefallEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FF_BIT **/ void MPU6050::setIntEnabled(uint8_t enabled) { I2Cdev_writeByte(devAddr, MPU6050_RA_INT_ENABLE, enabled); } /** Get Free Fall interrupt enabled status. * Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FF_BIT **/ bool MPU6050::getIntFreefallEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_FF_BIT, buffer); return buffer[0]; } /** Set Free Fall interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntFreefallEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FF_BIT **/ void MPU6050::setIntFreefallEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_FF_BIT, enabled); } /** Get Motion Detection interrupt enabled status. * Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_MOT_BIT **/ bool MPU6050::getIntMotionEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_MOT_BIT, buffer); return buffer[0]; } /** Set Motion Detection interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntMotionEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_MOT_BIT **/ void MPU6050::setIntMotionEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_MOT_BIT, enabled); } /** Get Zero Motion Detection interrupt enabled status. * Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_ZMOT_BIT **/ bool MPU6050::getIntZeroMotionEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_ZMOT_BIT, buffer); return buffer[0]; } /** Set Zero Motion Detection interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntZeroMotionEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_ZMOT_BIT **/ void MPU6050::setIntZeroMotionEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_ZMOT_BIT, enabled); } /** Get FIFO Buffer Overflow interrupt enabled status. * Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FIFO_OFLOW_BIT **/ bool MPU6050::getIntFIFOBufferOverflowEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_FIFO_OFLOW_BIT, buffer); return buffer[0]; } /** Set FIFO Buffer Overflow interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntFIFOBufferOverflowEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_FIFO_OFLOW_BIT **/ void MPU6050::setIntFIFOBufferOverflowEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_FIFO_OFLOW_BIT, enabled); } /** Get I2C Master interrupt enabled status. * This enables any of the I2C Master interrupt sources to generate an * interrupt. Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_I2C_MST_INT_BIT **/ bool MPU6050::getIntI2CMasterEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_I2C_MST_INT_BIT, buffer); return buffer[0]; } /** Set I2C Master interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntI2CMasterEnabled() * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_I2C_MST_INT_BIT **/ void MPU6050::setIntI2CMasterEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_I2C_MST_INT_BIT, enabled); } /** Get Data Ready interrupt enabled setting. * This event occurs each time a write operation to all of the sensor registers * has been completed. Will be set 0 for disabled, 1 for enabled. * @return Current interrupt enabled status * @see MPU6050_RA_INT_ENABLE * @see MPU6050_INTERRUPT_DATA_RDY_BIT */ bool MPU6050::getIntDataReadyEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_DATA_RDY_BIT, buffer); return buffer[0]; } /** Set Data Ready interrupt enabled status. * @param enabled New interrupt enabled status * @see getIntDataReadyEnabled() * @see MPU6050_RA_INT_CFG * @see MPU6050_INTERRUPT_DATA_RDY_BIT */ void MPU6050::setIntDataReadyEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_DATA_RDY_BIT, enabled); } // INT_STATUS register /** Get full set of interrupt status bits. * These bits clear to 0 after the register has been read. Very useful * for getting multiple INT statuses, since each single bit read clears * all of them because it has to read the whole byte. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS */ uint8_t MPU6050::getIntStatus() { I2Cdev_readByte(devAddr, MPU6050_RA_INT_STATUS, buffer); return buffer[0]; } /** Get Free Fall interrupt status. * This bit automatically sets to 1 when a Free Fall interrupt has been * generated. The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_FF_BIT */ bool MPU6050::getIntFreefallStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_FF_BIT, buffer); return buffer[0]; } /** Get Motion Detection interrupt status. * This bit automatically sets to 1 when a Motion Detection interrupt has been * generated. The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_MOT_BIT */ bool MPU6050::getIntMotionStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_MOT_BIT, buffer); return buffer[0]; } /** Get Zero Motion Detection interrupt status. * This bit automatically sets to 1 when a Zero Motion Detection interrupt has * been generated. The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_ZMOT_BIT */ bool MPU6050::getIntZeroMotionStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_ZMOT_BIT, buffer); return buffer[0]; } /** Get FIFO Buffer Overflow interrupt status. * This bit automatically sets to 1 when a Free Fall interrupt has been * generated. The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_FIFO_OFLOW_BIT */ bool MPU6050::getIntFIFOBufferOverflowStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_FIFO_OFLOW_BIT, buffer); return buffer[0]; } /** Get I2C Master interrupt status. * This bit automatically sets to 1 when an I2C Master interrupt has been * generated. For a list of I2C Master interrupts, please refer to Register 54. * The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_I2C_MST_INT_BIT */ bool MPU6050::getIntI2CMasterStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_I2C_MST_INT_BIT, buffer); return buffer[0]; } /** Get Data Ready interrupt status. * This bit automatically sets to 1 when a Data Ready interrupt has been * generated. The bit clears to 0 after the register has been read. * @return Current interrupt status * @see MPU6050_RA_INT_STATUS * @see MPU6050_INTERRUPT_DATA_RDY_BIT */ bool MPU6050::getIntDataReadyStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_DATA_RDY_BIT, buffer); return buffer[0]; } // ACCEL_*OUT_* registers /** Get raw 9-axis motion sensor readings (accel/gyro/compass). * FUNCTION NOT FULLY IMPLEMENTED YET. * @param ax 16-bit signed integer container for accelerometer X-axis value * @param ay 16-bit signed integer container for accelerometer Y-axis value * @param az 16-bit signed integer container for accelerometer Z-axis value * @param gx 16-bit signed integer container for gyroscope X-axis value * @param gy 16-bit signed integer container for gyroscope Y-axis value * @param gz 16-bit signed integer container for gyroscope Z-axis value * @param mx 16-bit signed integer container for magnetometer X-axis value * @param my 16-bit signed integer container for magnetometer Y-axis value * @param mz 16-bit signed integer container for magnetometer Z-axis value * @see Update() * @see getAcceleration() * @see getRotation() * @see MPU6050_RA_ACCEL_XOUT_H */ void MPU6050::getMotion9(int16_t *ax, int16_t *ay, int16_t *az, int16_t *gx, int16_t *gy, int16_t *gz, int16_t *mx, int16_t *my, int16_t *mz) { getMotion6(ax, ay, az, gx, gy, gz); // TODO: magnetometer integration } /** Get raw 6-axis motion sensor readings (accel/gyro). * Retrieves all currently available motion sensor values. * @param ax 16-bit signed integer container for accelerometer X-axis value * @param ay 16-bit signed integer container for accelerometer Y-axis value * @param az 16-bit signed integer container for accelerometer Z-axis value * @param gx 16-bit signed integer container for gyroscope X-axis value * @param gy 16-bit signed integer container for gyroscope Y-axis value * @param gz 16-bit signed integer container for gyroscope Z-axis value * @see getAcceleration() * @see getRotation() * @see MPU6050_RA_ACCEL_XOUT_H */ void MPU6050::getMotion6(int16_t *ax, int16_t *ay, int16_t *az, int16_t *gx, int16_t *gy, int16_t *gz) { I2Cdev_readBytes(devAddr, MPU6050_RA_ACCEL_XOUT_H, 14, buffer); *ax = (((int16_t) buffer[0]) << 8) | buffer[1]; *ay = (((int16_t) buffer[2]) << 8) | buffer[3]; *az = (((int16_t) buffer[4]) << 8) | buffer[5]; *gx = (((int16_t) buffer[8]) << 8) | buffer[9]; *gy = (((int16_t) buffer[10]) << 8) | buffer[11]; *gz = (((int16_t) buffer[12]) << 8) | buffer[13]; } /** Get 3-axis accelerometer readings. * These registers store the most recent accelerometer measurements. * Accelerometer measurements are written to these registers at the Sample Rate * as defined in Register 25. * * The accelerometer measurement registers, along with the temperature * measurement registers, gyroscope measurement registers, and external sensor * data registers, are composed of two sets of registers: an internal register * set and a user-facing read register set. * * The data within the accelerometer sensors' internal register set is always * updated at the Sample Rate. Meanwhile, the user-facing read register set * duplicates the internal register set's data values whenever the serial * interface is idle. This guarantees that a burst read of sensor registers will * read measurements from the same sampling instant. Note that if burst reads * are not used, the user is responsible for ensuring a set of single byte reads * correspond to a single sampling instant by checking the Data Ready interrupt. * * Each 16-bit accelerometer measurement has a full scale defined in ACCEL_FS * (Register 28). For each full scale setting, the accelerometers' sensitivity * per LSB in ACCEL_xOUT is shown in the table below: * *
 * AFS_SEL | Full Scale Range | LSB Sensitivity
 * --------+------------------+----------------
 * 0       | +/- 2g           | 8192 LSB/mg
 * 1       | +/- 4g           | 4096 LSB/mg
 * 2       | +/- 8g           | 2048 LSB/mg
 * 3       | +/- 16g          | 1024 LSB/mg
 * 
* * @param x 16-bit signed integer container for X-axis acceleration * @param y 16-bit signed integer container for Y-axis acceleration * @param z 16-bit signed integer container for Z-axis acceleration * @see MPU6050_RA_GYRO_XOUT_H */ void MPU6050::getAcceleration(int16_t *x, int16_t *y, int16_t *z) { I2Cdev_readBytes(devAddr, MPU6050_RA_ACCEL_XOUT_H, 6, buffer); *x = (((int16_t) buffer[0]) << 8) | buffer[1]; *y = (((int16_t) buffer[2]) << 8) | buffer[3]; *z = (((int16_t) buffer[4]) << 8) | buffer[5]; } /** Get X-axis accelerometer reading. * @return X-axis acceleration measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_ACCEL_XOUT_H */ int16_t MPU6050::getAccelerationX() { I2Cdev_readBytes(devAddr, MPU6050_RA_ACCEL_XOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } /** Get Y-axis accelerometer reading. * @return Y-axis acceleration measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_ACCEL_YOUT_H */ int16_t MPU6050::getAccelerationY() { I2Cdev_readBytes(devAddr, MPU6050_RA_ACCEL_YOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } /** Get Z-axis accelerometer reading. * @return Z-axis acceleration measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_ACCEL_ZOUT_H */ int16_t MPU6050::getAccelerationZ() { I2Cdev_readBytes(devAddr, MPU6050_RA_ACCEL_ZOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } // TEMP_OUT_* registers /** Get current internal temperature. * @return Temperature reading in 16-bit 2's complement format * @see MPU6050_RA_TEMP_OUT_H */ int16_t MPU6050::getTemperature() { I2Cdev_readBytes(devAddr, MPU6050_RA_TEMP_OUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } // GYRO_*OUT_* registers /** Get 3-axis gyroscope readings. * These gyroscope measurement registers, along with the accelerometer * measurement registers, temperature measurement registers, and external sensor * data registers, are composed of two sets of registers: an internal register * set and a user-facing read register set. * The data within the gyroscope sensors' internal register set is always * updated at the Sample Rate. Meanwhile, the user-facing read register set * duplicates the internal register set's data values whenever the serial * interface is idle. This guarantees that a burst read of sensor registers will * read measurements from the same sampling instant. Note that if burst reads * are not used, the user is responsible for ensuring a set of single byte reads * correspond to a single sampling instant by checking the Data Ready interrupt. * * Each 16-bit gyroscope measurement has a full scale defined in FS_SEL * (Register 27). For each full scale setting, the gyroscopes' sensitivity per * LSB in GYRO_xOUT is shown in the table below: * *
 * FS_SEL | Full Scale Range   | LSB Sensitivity
 * -------+--------------------+----------------
 * 0      | +/- 250 degrees/s  | 131 LSB/deg/s
 * 1      | +/- 500 degrees/s  | 65.5 LSB/deg/s
 * 2      | +/- 1000 degrees/s | 32.8 LSB/deg/s
 * 3      | +/- 2000 degrees/s | 16.4 LSB/deg/s
 * 
* * @param x 16-bit signed integer container for X-axis rotation * @param y 16-bit signed integer container for Y-axis rotation * @param z 16-bit signed integer container for Z-axis rotation * @see Update() * @see MPU6050_RA_GYRO_XOUT_H */ void MPU6050::getRotation(int16_t *x, int16_t *y, int16_t *z) { I2Cdev_readBytes(devAddr, MPU6050_RA_GYRO_XOUT_H, 6, buffer); *x = (((int16_t) buffer[0]) << 8) | buffer[1]; *y = (((int16_t) buffer[2]) << 8) | buffer[3]; *z = (((int16_t) buffer[4]) << 8) | buffer[5]; } /** Get X-axis gyroscope reading. * @return X-axis rotation measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_GYRO_XOUT_H */ int16_t MPU6050::getRotationX() { I2Cdev_readBytes(devAddr, MPU6050_RA_GYRO_XOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } /** Get Y-axis gyroscope reading. * @return Y-axis rotation measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_GYRO_YOUT_H */ int16_t MPU6050::getRotationY() { I2Cdev_readBytes(devAddr, MPU6050_RA_GYRO_YOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } /** Get Z-axis gyroscope reading. * @return Z-axis rotation measurement in 16-bit 2's complement format * @see Update() * @see MPU6050_RA_GYRO_ZOUT_H */ int16_t MPU6050::getRotationZ() { I2Cdev_readBytes(devAddr, MPU6050_RA_GYRO_ZOUT_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } // EXT_SENS_DATA_* registers /** Read single byte from external sensor data register. * These registers store data read from external sensors by the Slave 0, 1, 2, * and 3 on the auxiliary I2C interface. Data read by Slave 4 is stored in * I2C_SLV4_DI (Register 53). * * External sensor data is written to these registers at the Sample Rate as * defined in Register 25. This access rate can be reduced by using the Slave * Delay Enable registers (Register 103). * * External sensor data registers, along with the gyroscope measurement * registers, accelerometer measurement registers, and temperature measurement * registers, are composed of two sets of registers: an internal register set * and a user-facing read register set. * * The data within the external sensors' internal register set is always updated * at the Sample Rate (or the reduced access rate) whenever the serial interface * is idle. This guarantees that a burst read of sensor registers will read * measurements from the same sampling instant. Note that if burst reads are not * used, the user is responsible for ensuring a set of single byte reads * correspond to a single sampling instant by checking the Data Ready interrupt. * * Data is placed in these external sensor data registers according to * I2C_SLV0_CTRL, I2C_SLV1_CTRL, I2C_SLV2_CTRL, and I2C_SLV3_CTRL (Registers 39, * 42, 45, and 48). When more than zero bytes are read (I2C_SLVx_LEN > 0) from * an enabled slave (I2C_SLVx_EN = 1), the slave is read at the Sample Rate (as * defined in Register 25) or delayed rate (if specified in Register 52 and * 103). During each Sample cycle, slave reads are performed in order of Slave * number. If all slaves are enabled with more than zero bytes to be read, the * order will be Slave 0, followed by Slave 1, Slave 2, and Slave 3. * * Each enabled slave will have EXT_SENS_DATA registers associated with it by * number of bytes read (I2C_SLVx_LEN) in order of slave number, starting from * EXT_SENS_DATA_00. Note that this means enabling or disabling a slave may * change the higher numbered slaves' associated registers. Furthermore, if * fewer total bytes are being read from the external sensors as a result of * such a change, then the data remaining in the registers which no longer have * an associated slave device (i.e. high numbered registers) will remain in * these previously allocated registers unless reset. * * If the sum of the read lengths of all SLVx transactions exceed the number of * available EXT_SENS_DATA registers, the excess bytes will be dropped. There * are 24 EXT_SENS_DATA registers and hence the total read lengths between all * the slaves cannot be greater than 24 or some bytes will be lost. * * Note: Slave 4's behavior is distinct from that of Slaves 0-3. For further * information regarding the characteristics of Slave 4, please refer to * Registers 49 to 53. * * EXAMPLE: * Suppose that Slave 0 is enabled with 4 bytes to be read (I2C_SLV0_EN = 1 and * I2C_SLV0_LEN = 4) while Slave 1 is enabled with 2 bytes to be read so that * I2C_SLV1_EN = 1 and I2C_SLV1_LEN = 2. In such a situation, EXT_SENS_DATA _00 * through _03 will be associated with Slave 0, while EXT_SENS_DATA _04 and 05 * will be associated with Slave 1. If Slave 2 is enabled as well, registers * starting from EXT_SENS_DATA_06 will be allocated to Slave 2. * * If Slave 2 is disabled while Slave 3 is enabled in this same situation, then * registers starting from EXT_SENS_DATA_06 will be allocated to Slave 3 * instead. * * REGISTER ALLOCATION FOR DYNAMIC DISABLE VS. NORMAL DISABLE: * If a slave is disabled at any time, the space initially allocated to the * slave in the EXT_SENS_DATA register, will remain associated with that slave. * This is to avoid dynamic adjustment of the register allocation. * * The allocation of the EXT_SENS_DATA registers is recomputed only when (1) all * slaves are disabled, or (2) the I2C_MST_RST bit is set (Register 106). * * This above is also true if one of the slaves gets NACKed and stops * functioning. * * @param position Starting position (0-23) * @return Byte read from register */ uint8_t MPU6050::getExternalSensorByte(int position) { I2Cdev_readByte(devAddr, MPU6050_RA_EXT_SENS_DATA_00 + position, buffer); return buffer[0]; } /** Read word (2 bytes) from external sensor data registers. * @param position Starting position (0-21) * @return Word read from register * @see getExternalSensorByte() */ uint16_t MPU6050::getExternalSensorWord(int position) { I2Cdev_readBytes(devAddr, MPU6050_RA_EXT_SENS_DATA_00 + position, 2, buffer); return (((uint16_t) buffer[0]) << 8) | buffer[1]; } /** Read double word (4 bytes) from external sensor data registers. * @param position Starting position (0-20) * @return Double word read from registers * @see getExternalSensorByte() */ uint32_t MPU6050::getExternalSensorDWord(int position) { I2Cdev_readBytes(devAddr, MPU6050_RA_EXT_SENS_DATA_00 + position, 4, buffer); return (((uint32_t) buffer[0]) << 24) | (((uint32_t) buffer[1]) << 16) | (((uint16_t) buffer[2]) << 8) | buffer[3]; } // MOT_DETECT_STATUS register /** Get full motion detection status register content (all bits). * @return Motion detection status byte * @see MPU6050_RA_MOT_DETECT_STATUS */ uint8_t MPU6050::getMotionStatus() { I2Cdev_readByte(devAddr, MPU6050_RA_MOT_DETECT_STATUS, buffer); return buffer[0]; } /** Get X-axis negative motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_XNEG_BIT */ bool MPU6050::getXNegMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_XNEG_BIT, buffer); return buffer[0]; } /** Get X-axis positive motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_XPOS_BIT */ bool MPU6050::getXPosMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_XPOS_BIT, buffer); return buffer[0]; } /** Get Y-axis negative motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_YNEG_BIT */ bool MPU6050::getYNegMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_YNEG_BIT, buffer); return buffer[0]; } /** Get Y-axis positive motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_YPOS_BIT */ bool MPU6050::getYPosMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_YPOS_BIT, buffer); return buffer[0]; } /** Get Z-axis negative motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_ZNEG_BIT */ bool MPU6050::getZNegMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_ZNEG_BIT, buffer); return buffer[0]; } /** Get Z-axis positive motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_ZPOS_BIT */ bool MPU6050::getZPosMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_ZPOS_BIT, buffer); return buffer[0]; } /** Get zero motion detection interrupt status. * @return Motion detection status * @see MPU6050_RA_MOT_DETECT_STATUS * @see MPU6050_MOTION_MOT_ZRMOT_BIT */ bool MPU6050::getZeroMotionDetected() { I2Cdev_readBit(devAddr, MPU6050_RA_MOT_DETECT_STATUS, MPU6050_MOTION_MOT_ZRMOT_BIT, buffer); return buffer[0]; } // I2C_SLV*_DO register /** Write byte to Data Output container for specified slave. * This register holds the output data written into Slave when Slave is set to * write mode. For further information regarding Slave control, please * refer to Registers 37 to 39 and immediately following. * @param num Slave number (0-3) * @param data Byte to write * @see MPU6050_RA_I2C_SLV0_DO */ void MPU6050::setSlaveOutputByte(uint8_t num, uint8_t data) { if (num > 3) return; I2Cdev_writeByte(devAddr, MPU6050_RA_I2C_SLV0_DO + num, data); } // I2C_MST_DELAY_CTRL register /** Get external data shadow delay enabled status. * This register is used to specify the timing of external sensor data * shadowing. When DELAY_ES_SHADOW is set to 1, shadowing of external * sensor data is delayed until all data has been received. * @return Current external data shadow delay enabled status. * @see MPU6050_RA_I2C_MST_DELAY_CTRL * @see MPU6050_DELAYCTRL_DELAY_ES_SHADOW_BIT */ bool MPU6050::getExternalShadowDelayEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_DELAY_CTRL, MPU6050_DELAYCTRL_DELAY_ES_SHADOW_BIT, buffer); return buffer[0]; } /** Set external data shadow delay enabled status. * @param enabled New external data shadow delay enabled status. * @see getExternalShadowDelayEnabled() * @see MPU6050_RA_I2C_MST_DELAY_CTRL * @see MPU6050_DELAYCTRL_DELAY_ES_SHADOW_BIT */ void MPU6050::setExternalShadowDelayEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_DELAY_CTRL, MPU6050_DELAYCTRL_DELAY_ES_SHADOW_BIT, enabled); } /** Get slave delay enabled status. * When a particular slave delay is enabled, the rate of access for the that * slave device is reduced. When a slave's access rate is decreased relative to * the Sample Rate, the slave is accessed every: * * 1 / (1 + I2C_MST_DLY) Samples * * This base Sample Rate in turn is determined by SMPLRT_DIV (register * 25) * and DLPF_CFG (register 26). * * For further information regarding I2C_MST_DLY, please refer to register 52. * For further information regarding the Sample Rate, please refer to register 25. * * @param num Slave number (0-4) * @return Current slave delay enabled status. * @see MPU6050_RA_I2C_MST_DELAY_CTRL * @see MPU6050_DELAYCTRL_I2C_SLV0_DLY_EN_BIT */ bool MPU6050::getSlaveDelayEnabled(uint8_t num) { // MPU6050_DELAYCTRL_I2C_SLV4_DLY_EN_BIT is 4, SLV3 is 3, etc. if (num > 4) return 0; I2Cdev_readBit(devAddr, MPU6050_RA_I2C_MST_DELAY_CTRL, num, buffer); return buffer[0]; } /** Set slave delay enabled status. * @param num Slave number (0-4) * @param enabled New slave delay enabled status. * @see MPU6050_RA_I2C_MST_DELAY_CTRL * @see MPU6050_DELAYCTRL_I2C_SLV0_DLY_EN_BIT */ void MPU6050::setSlaveDelayEnabled(uint8_t num, bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_I2C_MST_DELAY_CTRL, num, enabled); } // SIGNAL_PATH_RESET register /** Reset gyroscope signal path. * The reset will revert the signal path analog to digital converters and * filters to their power up configurations. * @see MPU6050_RA_SIGNAL_PATH_RESET * @see MPU6050_PATHRESET_GYRO_RESET_BIT */ void MPU6050::resetGyroscopePath() { I2Cdev_writeBit(devAddr, MPU6050_RA_SIGNAL_PATH_RESET, MPU6050_PATHRESET_GYRO_RESET_BIT, true); } /** Reset accelerometer signal path. * The reset will revert the signal path analog to digital converters and * filters to their power up configurations. * @see MPU6050_RA_SIGNAL_PATH_RESET * @see MPU6050_PATHRESET_ACCEL_RESET_BIT */ void MPU6050::resetAccelerometerPath() { I2Cdev_writeBit(devAddr, MPU6050_RA_SIGNAL_PATH_RESET, MPU6050_PATHRESET_ACCEL_RESET_BIT, true); } /** Reset temperature sensor signal path. * The reset will revert the signal path analog to digital converters and * filters to their power up configurations. * @see MPU6050_RA_SIGNAL_PATH_RESET * @see MPU6050_PATHRESET_TEMP_RESET_BIT */ void MPU6050::resetTemperaturePath() { I2Cdev_writeBit(devAddr, MPU6050_RA_SIGNAL_PATH_RESET, MPU6050_PATHRESET_TEMP_RESET_BIT, true); } // MOT_DETECT_CTRL register /** Get accelerometer power-on delay. * The accelerometer data path provides samples to the sensor registers, Motion * detection, Zero Motion detection, and Free Fall detection modules. The * signal path contains filters which must be flushed on wake-up with new * samples before the detection modules begin operations. The default wake-up * delay, of 4ms can be lengthened by up to 3ms. This additional delay is * specified in ACCEL_ON_DELAY in units of 1 LSB = 1 ms. The user may select * any value above zero unless instructed otherwise by InvenSense. Please refer * to Section 8 of the MPU-6000/MPU-6050 Product Specification document for * further information regarding the detection modules. * @return Current accelerometer power-on delay * @see MPU6050_RA_MOT_DETECT_CTRL * @see MPU6050_DETECT_ACCEL_ON_DELAY_BIT */ uint8_t MPU6050::getAccelerometerPowerOnDelay() { I2Cdev_readBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_ACCEL_ON_DELAY_BIT, MPU6050_DETECT_ACCEL_ON_DELAY_LENGTH, buffer); return buffer[0]; } /** Set accelerometer power-on delay. * @param delay New accelerometer power-on delay (0-3) * @see getAccelerometerPowerOnDelay() * @see MPU6050_RA_MOT_DETECT_CTRL * @see MPU6050_DETECT_ACCEL_ON_DELAY_BIT */ void MPU6050::setAccelerometerPowerOnDelay(uint8_t delay) { I2Cdev_writeBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_ACCEL_ON_DELAY_BIT, MPU6050_DETECT_ACCEL_ON_DELAY_LENGTH, delay); } /** Get Free Fall detection counter decrement configuration. * Detection is registered by the Free Fall detection module after accelerometer * measurements meet their respective threshold conditions over a specified * number of samples. When the threshold conditions are met, the corresponding * detection counter increments by 1. The user may control the rate at which the * detection counter decrements when the threshold condition is not met by * configuring FF_COUNT. The decrement rate can be set according to the * following table: * *
 * FF_COUNT | Counter Decrement
 * ---------+------------------
 * 0        | Reset
 * 1        | 1
 * 2        | 2
 * 3        | 4
 * 
* * When FF_COUNT is configured to 0 (reset), any non-qualifying sample will * reset the counter to 0. For further information on Free Fall detection, * please refer to Registers 29 to 32. * * @return Current decrement configuration * @see MPU6050_RA_MOT_DETECT_CTRL * @see MPU6050_DETECT_FF_COUNT_BIT */ uint8_t MPU6050::getFreefallDetectionCounterDecrement() { I2Cdev_readBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_FF_COUNT_BIT, MPU6050_DETECT_FF_COUNT_LENGTH, buffer); return buffer[0]; } /** Set Free Fall detection counter decrement configuration. * @param decrement New decrement configuration value * @see getFreefallDetectionCounterDecrement() * @see MPU6050_RA_MOT_DETECT_CTRL * @see MPU6050_DETECT_FF_COUNT_BIT */ void MPU6050::setFreefallDetectionCounterDecrement(uint8_t decrement) { I2Cdev_writeBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_FF_COUNT_BIT, MPU6050_DETECT_FF_COUNT_LENGTH, decrement); } /** Get Motion detection counter decrement configuration. * Detection is registered by the Motion detection module after accelerometer * measurements meet their respective threshold conditions over a specified * number of samples. When the threshold conditions are met, the corresponding * detection counter increments by 1. The user may control the rate at which the * detection counter decrements when the threshold condition is not met by * configuring MOT_COUNT. The decrement rate can be set according to the * following table: * *
 * MOT_COUNT | Counter Decrement
 * ----------+------------------
 * 0         | Reset
 * 1         | 1
 * 2         | 2
 * 3         | 4
 * 
* * When MOT_COUNT is configured to 0 (reset), any non-qualifying sample will * reset the counter to 0. For further information on Motion detection, * please refer to Registers 29 to 32. * */ uint8_t MPU6050::getMotionDetectionCounterDecrement() { I2Cdev_readBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_MOT_COUNT_BIT, MPU6050_DETECT_MOT_COUNT_LENGTH, buffer); return buffer[0]; } /** Set Motion detection counter decrement configuration. * @param decrement New decrement configuration value * @see getMotionDetectionCounterDecrement() * @see MPU6050_RA_MOT_DETECT_CTRL * @see MPU6050_DETECT_MOT_COUNT_BIT */ void MPU6050::setMotionDetectionCounterDecrement(uint8_t decrement) { I2Cdev_writeBits(devAddr, MPU6050_RA_MOT_DETECT_CTRL, MPU6050_DETECT_MOT_COUNT_BIT, MPU6050_DETECT_MOT_COUNT_LENGTH, decrement); } // USER_CTRL register /** Get FIFO enabled status. * When this bit is set to 0, the FIFO buffer is disabled. The FIFO buffer * cannot be written to or read from while disabled. The FIFO buffer's state * does not change unless the MPU-60X0 is power cycled. * @return Current FIFO enabled status * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_FIFO_EN_BIT */ bool MPU6050::getFIFOEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_FIFO_EN_BIT, buffer); return buffer[0]; } /** Set FIFO enabled status. * @param enabled New FIFO enabled status * @see getFIFOEnabled() * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_FIFO_EN_BIT */ void MPU6050::setFIFOEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_FIFO_EN_BIT, enabled); } /** Get I2C Master Mode enabled status. * When this mode is enabled, the MPU-60X0 acts as the I2C Master to the * external sensor slave devices on the auxiliary I2C bus. When this bit is * cleared to 0, the auxiliary I2C bus lines (AUX_DA and AUX_CL) are logically * driven by the primary I2C bus (SDA and SCL). This is a precondition to * enabling Bypass Mode. For further information regarding Bypass Mode, please * refer to Register 55. * @return Current I2C Master Mode enabled status * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_I2C_MST_EN_BIT */ bool MPU6050::getI2CMasterModeEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_I2C_MST_EN_BIT, buffer); return buffer[0]; } /** Set I2C Master Mode enabled status. * @param enabled New I2C Master Mode enabled status * @see getI2CMasterModeEnabled() * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_I2C_MST_EN_BIT */ void MPU6050::setI2CMasterModeEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_I2C_MST_EN_BIT, enabled); } /** Switch from I2C to SPI mode (MPU-6000 only) * If this is set, the primary SPI interface will be enabled in place of the * disabled primary I2C interface. */ void MPU6050::switchSPIEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_I2C_IF_DIS_BIT, enabled); } /** Reset the FIFO. * This bit resets the FIFO buffer when set to 1 while FIFO_EN equals 0. This * bit automatically clears to 0 after the reset has been triggered. * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_FIFO_RESET_BIT */ void MPU6050::resetFIFO() { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_FIFO_RESET_BIT, true); } /** Reset the I2C Master. * This bit resets the I2C Master when set to 1 while I2C_MST_EN equals 0. * This bit automatically clears to 0 after the reset has been triggered. * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_I2C_MST_RESET_BIT */ void MPU6050::resetI2CMaster() { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_I2C_MST_RESET_BIT, true); } /** Reset all sensor registers and signal paths. * When set to 1, this bit resets the signal paths for all sensors (gyroscopes, * accelerometers, and temperature sensor). This operation will also clear the * sensor registers. This bit automatically clears to 0 after the reset has been * triggered. * * When resetting only the signal path (and not the sensor registers), please * use Register 104, SIGNAL_PATH_RESET. * * @see MPU6050_RA_USER_CTRL * @see MPU6050_USERCTRL_SIG_COND_RESET_BIT */ void MPU6050::resetSensors() { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_SIG_COND_RESET_BIT, true); } // PWR_MGMT_1 register /** Trigger a full device reset. * A small delay of ~50ms may be desirable after triggering a reset. * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_DEVICE_RESET_BIT */ void MPU6050::reset() { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_DEVICE_RESET_BIT, true); } /** Get sleep mode status. * Setting the SLEEP bit in the register puts the device into very low power * sleep mode. In this mode, only the serial interface and internal registers * remain active, allowing for a very low standby current. Clearing this bit * puts the device back into normal mode. To save power, the individual standby * selections for each of the gyros should be used if any gyro axis is not used * by the application. * @return Current sleep mode enabled status * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_SLEEP_BIT */ bool MPU6050::getSleepEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_SLEEP_BIT, buffer); return buffer[0]; } /** Set sleep mode status. * @param enabled New sleep mode enabled status * @see getSleepEnabled() * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_SLEEP_BIT */ void MPU6050::setSleepEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_SLEEP_BIT, enabled); } /** Get wake cycle enabled status. * When this bit is set to 1 and SLEEP is disabled, the MPU-60X0 will cycle * between sleep mode and waking up to take a single sample of data from active * sensors at a rate determined by LP_WAKE_CTRL (register 108). * @return Current sleep mode enabled status * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_CYCLE_BIT */ bool MPU6050::getWakeCycleEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_CYCLE_BIT, buffer); return buffer[0]; } /** Set wake cycle enabled status. * @param enabled New sleep mode enabled status * @see getWakeCycleEnabled() * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_CYCLE_BIT */ void MPU6050::setWakeCycleEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_CYCLE_BIT, enabled); } /** Get temperature sensor enabled status. * Control the usage of the internal temperature sensor. * * Note: this register stores the *disabled* value, but for consistency with the * rest of the code, the function is named and used with standard true/false * values to indicate whether the sensor is enabled or disabled, respectively. * * @return Current temperature sensor enabled status * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_TEMP_DIS_BIT */ bool MPU6050::getTempSensorEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_TEMP_DIS_BIT, buffer); return buffer[0] == 0; // 1 is actually disabled here } /** Set temperature sensor enabled status. * Note: this register stores the *disabled* value, but for consistency with the * rest of the code, the function is named and used with standard true/false * values to indicate whether the sensor is enabled or disabled, respectively. * * @param enabled New temperature sensor enabled status * @see getTempSensorEnabled() * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_TEMP_DIS_BIT */ void MPU6050::setTempSensorEnabled(bool enabled) { // 1 is actually disabled here I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_TEMP_DIS_BIT, !enabled); } /** Get clock source setting. * @return Current clock source setting * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_CLKSEL_BIT * @see MPU6050_PWR1_CLKSEL_LENGTH */ uint8_t MPU6050::getClockSource() { I2Cdev_readBits(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_CLKSEL_BIT, MPU6050_PWR1_CLKSEL_LENGTH, buffer); return buffer[0]; } /** Set clock source setting. * An internal 8MHz oscillator, gyroscope based clock, or external sources can * be selected as the MPU-60X0 clock source. When the internal 8 MHz oscillator * or an external source is chosen as the clock source, the MPU-60X0 can operate * in low power modes with the gyroscopes disabled. * * Upon power up, the MPU-60X0 clock source defaults to the internal oscillator. * However, it is highly recommended that the device be configured to use one of * the gyroscopes (or an external clock source) as the clock reference for * improved stability. The clock source can be selected according to the following table: * *
 * CLK_SEL | Clock Source
 * --------+--------------------------------------
 * 0       | Internal oscillator
 * 1       | PLL with X Gyro reference
 * 2       | PLL with Y Gyro reference
 * 3       | PLL with Z Gyro reference
 * 4       | PLL with external 32.768kHz reference
 * 5       | PLL with external 19.2MHz reference
 * 6       | Reserved
 * 7       | Stops the clock and keeps the timing generator in reset
 * 
* * @param source New clock source setting * @see getClockSource() * @see MPU6050_RA_PWR_MGMT_1 * @see MPU6050_PWR1_CLKSEL_BIT * @see MPU6050_PWR1_CLKSEL_LENGTH */ void MPU6050::setClockSource(uint8_t source) { I2Cdev_writeBits(devAddr, MPU6050_RA_PWR_MGMT_1, MPU6050_PWR1_CLKSEL_BIT, MPU6050_PWR1_CLKSEL_LENGTH, source); } // PWR_MGMT_2 register /** Get wake frequency in Accel-Only Low Power Mode. * The MPU-60X0 can be put into Accerlerometer Only Low Power Mode by setting * PWRSEL to 1 in the Power Management 1 register (Register 107). In this mode, * the device will power off all devices except for the primary I2C interface, * waking only the accelerometer at fixed intervals to take a single * measurement. The frequency of wake-ups can be configured with LP_WAKE_CTRL * as shown below: * *
 * LP_WAKE_CTRL | Wake-up Frequency
 * -------------+------------------
 * 0            | 1.25 Hz
 * 1            | 2.5 Hz
 * 2            | 5 Hz
 * 3            | 10 Hz
 * 
* * For further information regarding the MPU-60X0's power modes, please refer to * Register 107. * * @return Current wake frequency * @see MPU6050_RA_PWR_MGMT_2 */ uint8_t MPU6050::getWakeFrequency() { I2Cdev_readBits(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_LP_WAKE_CTRL_BIT, MPU6050_PWR2_LP_WAKE_CTRL_LENGTH, buffer); return buffer[0]; } /** Set wake frequency in Accel-Only Low Power Mode. * @param frequency New wake frequency * @see MPU6050_RA_PWR_MGMT_2 */ void MPU6050::setWakeFrequency(uint8_t frequency) { I2Cdev_writeBits(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_LP_WAKE_CTRL_BIT, MPU6050_PWR2_LP_WAKE_CTRL_LENGTH, frequency); } /** Get X-axis accelerometer standby enabled status. * If enabled, the X-axis will not gather or report data (or use power). * @return Current X-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_XA_BIT */ bool MPU6050::getStandbyXAccelEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_XA_BIT, buffer); return buffer[0]; } /** Set X-axis accelerometer standby enabled status. * @param New X-axis standby enabled status * @see getStandbyXAccelEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_XA_BIT */ void MPU6050::setStandbyXAccelEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_XA_BIT, enabled); } /** Get Y-axis accelerometer standby enabled status. * If enabled, the Y-axis will not gather or report data (or use power). * @return Current Y-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_YA_BIT */ bool MPU6050::getStandbyYAccelEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_YA_BIT, buffer); return buffer[0]; } /** Set Y-axis accelerometer standby enabled status. * @param New Y-axis standby enabled status * @see getStandbyYAccelEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_YA_BIT */ void MPU6050::setStandbyYAccelEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_YA_BIT, enabled); } /** Get Z-axis accelerometer standby enabled status. * If enabled, the Z-axis will not gather or report data (or use power). * @return Current Z-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_ZA_BIT */ bool MPU6050::getStandbyZAccelEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_ZA_BIT, buffer); return buffer[0]; } /** Set Z-axis accelerometer standby enabled status. * @param New Z-axis standby enabled status * @see getStandbyZAccelEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_ZA_BIT */ void MPU6050::setStandbyZAccelEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_ZA_BIT, enabled); } /** Get X-axis gyroscope standby enabled status. * If enabled, the X-axis will not gather or report data (or use power). * @return Current X-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_XG_BIT */ bool MPU6050::getStandbyXGyroEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_XG_BIT, buffer); return buffer[0]; } /** Set X-axis gyroscope standby enabled status. * @param New X-axis standby enabled status * @see getStandbyXGyroEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_XG_BIT */ void MPU6050::setStandbyXGyroEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_XG_BIT, enabled); } /** Get Y-axis gyroscope standby enabled status. * If enabled, the Y-axis will not gather or report data (or use power). * @return Current Y-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_YG_BIT */ bool MPU6050::getStandbyYGyroEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_YG_BIT, buffer); return buffer[0]; } /** Set Y-axis gyroscope standby enabled status. * @param New Y-axis standby enabled status * @see getStandbyYGyroEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_YG_BIT */ void MPU6050::setStandbyYGyroEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_YG_BIT, enabled); } /** Get Z-axis gyroscope standby enabled status. * If enabled, the Z-axis will not gather or report data (or use power). * @return Current Z-axis standby enabled status * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_ZG_BIT */ bool MPU6050::getStandbyZGyroEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_ZG_BIT, buffer); return buffer[0]; } /** Set Z-axis gyroscope standby enabled status. * @param New Z-axis standby enabled status * @see getStandbyZGyroEnabled() * @see MPU6050_RA_PWR_MGMT_2 * @see MPU6050_PWR2_STBY_ZG_BIT */ void MPU6050::setStandbyZGyroEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_PWR_MGMT_2, MPU6050_PWR2_STBY_ZG_BIT, enabled); } // FIFO_COUNT* registers /** Get current FIFO buffer size. * This value indicates the number of bytes stored in the FIFO buffer. This * number is in turn the number of bytes that can be read from the FIFO buffer * and it is directly proportional to the number of samples available given the * set of sensor data bound to be stored in the FIFO (register 35 and 36). * @return Current FIFO buffer size */ uint16_t MPU6050::getFIFOCount() { I2Cdev_readBytes(devAddr, MPU6050_RA_FIFO_COUNTH, 2, buffer); return (((uint16_t) buffer[0]) << 8) | buffer[1]; } // FIFO_R_W register /** Get byte from FIFO buffer. * This register is used to read and write data from the FIFO buffer. Data is * written to the FIFO in order of register number (from lowest to highest). If * all the FIFO enable flags (see below) are enabled and all External Sensor * Data registers (Registers 73 to 96) are associated with a Slave device, the * contents of registers 59 through 96 will be written in order at the Sample * Rate. * * The contents of the sensor data registers (Registers 59 to 96) are written * into the FIFO buffer when their corresponding FIFO enable flags are set to 1 * in FIFO_EN (Register 35). An additional flag for the sensor data registers * associated with I2C Slave 3 can be found in I2C_MST_CTRL (Register 36). * * If the FIFO buffer has overflowed, the status bit FIFO_OFLOW_INT is * automatically set to 1. This bit is located in INT_STATUS (Register 58). * When the FIFO buffer has overflowed, the oldest data will be lost and new * data will be written to the FIFO. * * If the FIFO buffer is empty, reading this register will return the last byte * that was previously read from the FIFO until new data is available. The user * should check FIFO_COUNT to ensure that the FIFO buffer is not read when * empty. * * @return Byte from FIFO buffer */ uint8_t MPU6050::getFIFOByte() { I2Cdev_readByte(devAddr, MPU6050_RA_FIFO_R_W, buffer); return buffer[0]; } void MPU6050::getFIFOBytes(uint8_t *data, uint8_t length) { if (length > 0) { I2Cdev_readBytes(devAddr, MPU6050_RA_FIFO_R_W, length, data); } else { *data = 0; } } /** Write byte to FIFO buffer. * @see getFIFOByte() * @see MPU6050_RA_FIFO_R_W */ void MPU6050::setFIFOByte(uint8_t data) { I2Cdev_writeByte(devAddr, MPU6050_RA_FIFO_R_W, data); } // WHO_AM_I register /** Get Device ID. * This register is used to verify the identity of the device (0b110100, 0x34). * @return Device ID (6 bits only! should be 0x34) * @see MPU6050_RA_WHO_AM_I * @see MPU6050_WHO_AM_I_BIT * @see MPU6050_WHO_AM_I_LENGTH */ uint8_t MPU6050::getDeviceID() { I2Cdev_readBits(devAddr, MPU6050_RA_WHO_AM_I, MPU6050_WHO_AM_I_BIT, MPU6050_WHO_AM_I_LENGTH, buffer); return buffer[0]; } /** Set Device ID. * Write a new ID into the WHO_AM_I register (no idea why this should ever be * necessary though). * @param id New device ID to set. * @see getDeviceID() * @see MPU6050_RA_WHO_AM_I * @see MPU6050_WHO_AM_I_BIT * @see MPU6050_WHO_AM_I_LENGTH */ void MPU6050::setDeviceID(uint8_t id) { I2Cdev_writeBits(devAddr, MPU6050_RA_WHO_AM_I, MPU6050_WHO_AM_I_BIT, MPU6050_WHO_AM_I_LENGTH, id); } // ======== UNDOCUMENTED/DMP REGISTERS/METHODS ======== // XG_OFFS_TC register uint8_t MPU6050::getOTPBankValid() { I2Cdev_readBit(devAddr, MPU6050_RA_XG_OFFS_TC, MPU6050_TC_OTP_BNK_VLD_BIT, buffer); return buffer[0]; } void MPU6050::setOTPBankValid(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_XG_OFFS_TC, MPU6050_TC_OTP_BNK_VLD_BIT, enabled); } int8_t MPU6050::getXGyroOffsetTC() { I2Cdev_readBits(devAddr, MPU6050_RA_XG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, buffer); return buffer[0]; } void MPU6050::setXGyroOffsetTC(int8_t offset) { I2Cdev_writeBits(devAddr, MPU6050_RA_XG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, offset); } // YG_OFFS_TC register int8_t MPU6050::getYGyroOffsetTC() { I2Cdev_readBits(devAddr, MPU6050_RA_YG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, buffer); return buffer[0]; } void MPU6050::setYGyroOffsetTC(int8_t offset) { I2Cdev_writeBits(devAddr, MPU6050_RA_YG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, offset); } // ZG_OFFS_TC register int8_t MPU6050::getZGyroOffsetTC() { I2Cdev_readBits(devAddr, MPU6050_RA_ZG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, buffer); return buffer[0]; } void MPU6050::setZGyroOffsetTC(int8_t offset) { I2Cdev_writeBits(devAddr, MPU6050_RA_ZG_OFFS_TC, MPU6050_TC_OFFSET_BIT, MPU6050_TC_OFFSET_LENGTH, offset); } // X_FINE_GAIN register int8_t MPU6050::getXFineGain() { I2Cdev_readByte(devAddr, MPU6050_RA_X_FINE_GAIN, buffer); return buffer[0]; } void MPU6050::setXFineGain(int8_t gain) { I2Cdev_writeByte(devAddr, MPU6050_RA_X_FINE_GAIN, gain); } // Y_FINE_GAIN register int8_t MPU6050::getYFineGain() { I2Cdev_readByte(devAddr, MPU6050_RA_Y_FINE_GAIN, buffer); return buffer[0]; } void MPU6050::setYFineGain(int8_t gain) { I2Cdev_writeByte(devAddr, MPU6050_RA_Y_FINE_GAIN, gain); } // Z_FINE_GAIN register int8_t MPU6050::getZFineGain() { I2Cdev_readByte(devAddr, MPU6050_RA_Z_FINE_GAIN, buffer); return buffer[0]; } void MPU6050::setZFineGain(int8_t gain) { I2Cdev_writeByte(devAddr, MPU6050_RA_Z_FINE_GAIN, gain); } // XA_OFFS_* registers int16_t MPU6050::getXAccelOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_XA_OFFS_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setXAccelOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_XA_OFFS_H, offset); } // YA_OFFS_* register int16_t MPU6050::getYAccelOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_YA_OFFS_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setYAccelOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_YA_OFFS_H, offset); } // ZA_OFFS_* register int16_t MPU6050::getZAccelOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_ZA_OFFS_H, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setZAccelOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_ZA_OFFS_H, offset); } // XG_OFFS_USR* registers int16_t MPU6050::getXGyroOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_XG_OFFS_USRH, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setXGyroOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_XG_OFFS_USRH, offset); } // YG_OFFS_USR* register int16_t MPU6050::getYGyroOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_YG_OFFS_USRH, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setYGyroOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_YG_OFFS_USRH, offset); } // ZG_OFFS_USR* register int16_t MPU6050::getZGyroOffset() { I2Cdev_readBytes(devAddr, MPU6050_RA_ZG_OFFS_USRH, 2, buffer); return (((int16_t) buffer[0]) << 8) | buffer[1]; } void MPU6050::setZGyroOffset(int16_t offset) { I2Cdev_writeWord(devAddr, MPU6050_RA_ZG_OFFS_USRH, offset); } // INT_ENABLE register (DMP functions) bool MPU6050::getIntPLLReadyEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_PLL_RDY_INT_BIT, buffer); return buffer[0]; } void MPU6050::setIntPLLReadyEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_PLL_RDY_INT_BIT, enabled); } bool MPU6050::getIntDMPEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_DMP_INT_BIT, buffer); return buffer[0]; } void MPU6050::setIntDMPEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_INT_ENABLE, MPU6050_INTERRUPT_DMP_INT_BIT, enabled); } // DMP_INT_STATUS bool MPU6050::getDMPInt5Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_5_BIT, buffer); return buffer[0]; } bool MPU6050::getDMPInt4Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_4_BIT, buffer); return buffer[0]; } bool MPU6050::getDMPInt3Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_3_BIT, buffer); return buffer[0]; } bool MPU6050::getDMPInt2Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_2_BIT, buffer); return buffer[0]; } bool MPU6050::getDMPInt1Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_1_BIT, buffer); return buffer[0]; } bool MPU6050::getDMPInt0Status() { I2Cdev_readBit(devAddr, MPU6050_RA_DMP_INT_STATUS, MPU6050_DMPINT_0_BIT, buffer); return buffer[0]; } // INT_STATUS register (DMP functions) bool MPU6050::getIntPLLReadyStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_PLL_RDY_INT_BIT, buffer); return buffer[0]; } bool MPU6050::getIntDMPStatus() { I2Cdev_readBit(devAddr, MPU6050_RA_INT_STATUS, MPU6050_INTERRUPT_DMP_INT_BIT, buffer); return buffer[0]; } // USER_CTRL register (DMP functions) bool MPU6050::getDMPEnabled() { I2Cdev_readBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_DMP_EN_BIT, buffer); return buffer[0]; } void MPU6050::setDMPEnabled(bool enabled) { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_DMP_EN_BIT, enabled); } void MPU6050::resetDMP() { I2Cdev_writeBit(devAddr, MPU6050_RA_USER_CTRL, MPU6050_USERCTRL_DMP_RESET_BIT, true); } // BANK_SEL register void MPU6050::setMemoryBank(uint8_t bank, bool prefetchEnabled, bool userBank) { bank &= 0x1F; if (userBank) bank |= 0x20; if (prefetchEnabled) bank |= 0x40; I2Cdev_writeByte(devAddr, MPU6050_RA_BANK_SEL, bank); } // MEM_START_ADDR register void MPU6050::setMemoryStartAddress(uint8_t address) { I2Cdev_writeByte(devAddr, MPU6050_RA_MEM_START_ADDR, address); } // MEM_R_W register uint8_t MPU6050::readMemoryByte() { I2Cdev_readByte(devAddr, MPU6050_RA_MEM_R_W, buffer); return buffer[0]; } void MPU6050::writeMemoryByte(uint8_t data) { I2Cdev_writeByte(devAddr, MPU6050_RA_MEM_R_W, data); } void MPU6050::readMemoryBlock(uint8_t *data, uint16_t dataSize, uint8_t bank, uint8_t address) { setMemoryBank(bank); setMemoryStartAddress(address); uint8_t chunkSize; for (uint16_t i = 0; i < dataSize;) { // determine correct chunk size according to bank position and data size chunkSize = MPU6050_DMP_MEMORY_CHUNK_SIZE; // make sure we don't go past the data size if (i + chunkSize > dataSize) chunkSize = dataSize - i; // make sure this chunk doesn't go past the bank boundary (256 bytes) if (chunkSize > 256 - address) chunkSize = 256 - address; // read the chunk of data as specified I2Cdev_readBytes(devAddr, MPU6050_RA_MEM_R_W, chunkSize, data + i); // increase byte index by [chunkSize] i += chunkSize; // uint8_t automatically wraps to 0 at 256 address += chunkSize; // if we aren't done, update bank (if necessary) and address if (i < dataSize) { if (address == 0) bank++; setMemoryBank(bank); setMemoryStartAddress(address); } } } bool MPU6050::writeMemoryBlock(const uint8_t *data, uint16_t dataSize, uint8_t bank, uint8_t address, bool verify, bool useProgMem) { setMemoryBank(bank); setMemoryStartAddress(address); uint8_t chunkSize; uint8_t *verifyBuffer = 0; uint8_t *progBuffer = 0; uint16_t i; uint8_t j; if (verify) verifyBuffer = (uint8_t *) malloc(MPU6050_DMP_MEMORY_CHUNK_SIZE); if (useProgMem) progBuffer = (uint8_t *) malloc(MPU6050_DMP_MEMORY_CHUNK_SIZE); for (i = 0; i < dataSize;) { // determine correct chunk size according to bank position and data size chunkSize = MPU6050_DMP_MEMORY_CHUNK_SIZE; // make sure we don't go past the data size if (i + chunkSize > dataSize) chunkSize = dataSize - i; // make sure this chunk doesn't go past the bank boundary (256 bytes) if (chunkSize > 256 - address) chunkSize = 256 - address; if (useProgMem) { // write the chunk of data as specified for (j = 0; j < chunkSize; j++) progBuffer[j] = pgm_read_byte(data + i + j); } else { // write the chunk of data as specified progBuffer = (uint8_t *) data + i; } I2Cdev_writeBytes(devAddr, MPU6050_RA_MEM_R_W, chunkSize, progBuffer); // verify data if needed if (verify && verifyBuffer) { setMemoryBank(bank); setMemoryStartAddress(address); I2Cdev_readBytes(devAddr, MPU6050_RA_MEM_R_W, chunkSize, verifyBuffer); if (memcmp(progBuffer, verifyBuffer, chunkSize) != 0) { /*Serial.print("Block write verification error, bank "); Serial.print(bank, DEC); Serial.print(", address "); Serial.print(address, DEC); Serial.print("!\nExpected:"); for (j = 0; j < chunkSize; j++) { Serial.print(" 0x"); if (progBuffer[j] < 16) Serial.print("0"); Serial.print(progBuffer[j], HEX); } Serial.print("\nReceived:"); for (uint8_t j = 0; j < chunkSize; j++) { Serial.print(" 0x"); if (verifyBuffer[i + j] < 16) Serial.print("0"); Serial.print(verifyBuffer[i + j], HEX); } Serial.print("\n");*/ free(verifyBuffer); if (useProgMem) free(progBuffer); return false; // uh oh. } } // increase byte index by [chunkSize] i += chunkSize; // uint8_t automatically wraps to 0 at 256 address += chunkSize; // if we aren't done, update bank (if necessary) and address if (i < dataSize) { if (address == 0) bank++; setMemoryBank(bank); setMemoryStartAddress(address); } } if (verify) free(verifyBuffer); if (useProgMem) free(progBuffer); return true; } bool MPU6050::writeProgMemoryBlock(const uint8_t *data, uint16_t dataSize, uint8_t bank, uint8_t address, bool verify) { return writeMemoryBlock(data, dataSize, bank, address, verify, true); } bool MPU6050::writeDMPConfigurationSet(const uint8_t *data, uint16_t dataSize, bool useProgMem) { uint8_t *progBuffer = 0; uint8_t success, special; uint16_t i, j; if (useProgMem) { progBuffer = (uint8_t *) malloc(8); // assume 8-byte blocks, realloc later if necessary } // config set data is a long string of blocks with the following structure: // [bank] [offset] [length] [byte[0], byte[1], ..., byte[length]] uint8_t bank, offset, length; for (i = 0; i < dataSize;) { if (useProgMem) { bank = pgm_read_byte(data + i++); offset = pgm_read_byte(data + i++); length = pgm_read_byte(data + i++); } else { bank = data[i++]; offset = data[i++]; length = data[i++]; } // write data or perform special action if (length > 0) { // regular block of data to write /*Serial.print("Writing config block to bank "); Serial.print(bank); Serial.print(", offset "); Serial.print(offset); Serial.print(", length="); Serial.println(length);*/ if (useProgMem) { if (sizeof(progBuffer) < length) progBuffer = (uint8_t *) realloc(progBuffer, length); for (j = 0; j < length; j++) progBuffer[j] = pgm_read_byte(data + i + j); } else { progBuffer = (uint8_t *) data + i; } success = writeMemoryBlock(progBuffer, length, bank, offset, true); i += length; } else { // special instruction // NOTE: this kind of behavior (what and when to do certain things) // is totally undocumented. This code is in here based on observed // behavior only, and exactly why (or even whether) it has to be here // is anybody's guess for now. if (useProgMem) { special = pgm_read_byte(data + i++); } else { special = data[i++]; } /*Serial.print("Special command code "); Serial.print(special, HEX); Serial.println(" found...");*/ if (special == 0x01) { // enable DMP-related interrupts //setIntZeroMotionEnabled(true); //setIntFIFOBufferOverflowEnabled(true); //setIntDMPEnabled(true); I2Cdev_writeByte(devAddr, MPU6050_RA_INT_ENABLE, 0x32); // single operation success = true; } else { // unknown special command success = false; } } if (!success) { if (useProgMem) free(progBuffer); return false; // uh oh } } if (useProgMem) free(progBuffer); return true; } bool MPU6050::writeProgDMPConfigurationSet(const uint8_t *data, uint16_t dataSize) { return writeDMPConfigurationSet(data, dataSize, true); } // DMP_CFG_1 register uint8_t MPU6050::getDMPConfig1() { I2Cdev_readByte(devAddr, MPU6050_RA_DMP_CFG_1, buffer); return buffer[0]; } void MPU6050::setDMPConfig1(uint8_t config) { I2Cdev_writeByte(devAddr, MPU6050_RA_DMP_CFG_1, config); } // DMP_CFG_2 register uint8_t MPU6050::getDMPConfig2() { I2Cdev_readByte(devAddr, MPU6050_RA_DMP_CFG_2, buffer); return buffer[0]; } void MPU6050::setDMPConfig2(uint8_t config) { I2Cdev_writeByte(devAddr, MPU6050_RA_DMP_CFG_2, config); } void MPU6050::Update(bool _useFilter) { getMotion6(&dataRaw.ax, &dataRaw.ay, &dataRaw.az, &dataRaw.gx, &dataRaw.gy, &dataRaw.gz); data.ax = (float) dataRaw.ax / accRangeScale; data.ay = (float) dataRaw.ay / accRangeScale; data.az = (float) dataRaw.az / accRangeScale; data.gx = (float) dataRaw.gx / gyroRangeScale; data.gy = (float) dataRaw.gy / gyroRangeScale; data.gz = (float) dataRaw.gz / gyroRangeScale; if (_useFilter) { data.ax = biquadFilterApply(&accFilterLPF[0], data.ax); data.ay = biquadFilterApply(&accFilterLPF[1], data.ay); data.az = biquadFilterApply(&accFilterLPF[2], data.az); data.gx = biquadFilterApply(&gyroFilterLPF[0], data.gx); data.gy = biquadFilterApply(&gyroFilterLPF[1], data.gy); data.gz = biquadFilterApply(&gyroFilterLPF[2], data.gz); } } void MPU6050::InitFilter(float _imuUpdateRate, float _gyroFilterCutoffFreq, float _accFilterCutoffFreq) { for (int i = 0; i < 3; i++) { biquadFilterInitLPF(&gyroFilterLPF[i], _imuUpdateRate, _gyroFilterCutoffFreq); biquadFilterInitLPF(&accFilterLPF[i], _imuUpdateRate, _accFilterCutoffFreq); } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/MPU6050.hpp ================================================ // I2Cdev library collection - MPU6050 I2C device class // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) // 10/3/2011 by Jeff Rowberg // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // ... - ongoing debug release // NOTE: THIS IS ONLY A PARIAL RELEASE. THIS DEVICE CLASS IS CURRENTLY UNDERGOING ACTIVE // DEVELOPMENT AND IS STILL MISSING SOME IMPORTANT FEATURES. PLEASE KEEP THIS IN MIND IF // YOU DECIDE TO USE THIS PARTICULAR CODE FOR ANYTHING. /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================== */ #ifndef _MPU6050_H_ #define _MPU6050_H_ #include "i2c_dev.hpp" #include "biquad_filter.h" // supporting link: http://forum.arduino.cc/index.php?&topic=143444.msg1079517#msg1079517 // also: http://forum.arduino.cc/index.php?&topic=141571.msg1062899#msg1062899s #define MPU6050_ADDRESS_AD0_LOW 0x68 // address pin low (GND), default for InvenSense evaluation board #define MPU6050_ADDRESS_AD0_HIGH 0x69 // address pin high (VCC) #define MPU6050_DEFAULT_ADDRESS MPU6050_ADDRESS_AD0_LOW #define MPU6050_RA_XG_OFFS_TC 0x00 //[7] PWR_MODE, [6:1] XG_OFFS_TC, [0] OTP_BNK_VLD #define MPU6050_RA_YG_OFFS_TC 0x01 //[7] PWR_MODE, [6:1] YG_OFFS_TC, [0] OTP_BNK_VLD #define MPU6050_RA_ZG_OFFS_TC 0x02 //[7] PWR_MODE, [6:1] ZG_OFFS_TC, [0] OTP_BNK_VLD #define MPU6050_RA_X_FINE_GAIN 0x03 //[7:0] X_FINE_GAIN #define MPU6050_RA_Y_FINE_GAIN 0x04 //[7:0] Y_FINE_GAIN #define MPU6050_RA_Z_FINE_GAIN 0x05 //[7:0] Z_FINE_GAIN #define MPU6050_RA_XA_OFFS_H 0x06 //[15:0] XA_OFFS #define MPU6050_RA_XA_OFFS_L_TC 0x07 #define MPU6050_RA_YA_OFFS_H 0x08 //[15:0] YA_OFFS #define MPU6050_RA_YA_OFFS_L_TC 0x09 #define MPU6050_RA_ZA_OFFS_H 0x0A //[15:0] ZA_OFFS #define MPU6050_RA_ZA_OFFS_L_TC 0x0B #define MPU6050_RA_SELF_TEST_X 0x0D //[7:5] XA_TEST[4-2], [4:0] XG_TEST[4-0] #define MPU6050_RA_SELF_TEST_Y 0x0E //[7:5] YA_TEST[4-2], [4:0] YG_TEST[4-0] #define MPU6050_RA_SELF_TEST_Z 0x0F //[7:5] ZA_TEST[4-2], [4:0] ZG_TEST[4-0] #define MPU6050_RA_SELF_TEST_A 0x10 //[5:4] XA_TEST[1-0], [3:2] YA_TEST[1-0], [1:0] ZA_TEST[1-0] #define MPU6050_RA_XG_OFFS_USRH 0x13 //[15:0] XG_OFFS_USR #define MPU6050_RA_XG_OFFS_USRL 0x14 #define MPU6050_RA_YG_OFFS_USRH 0x15 //[15:0] YG_OFFS_USR #define MPU6050_RA_YG_OFFS_USRL 0x16 #define MPU6050_RA_ZG_OFFS_USRH 0x17 //[15:0] ZG_OFFS_USR #define MPU6050_RA_ZG_OFFS_USRL 0x18 #define MPU6050_RA_SMPLRT_DIV 0x19 #define MPU6050_RA_CONFIG 0x1A #define MPU6050_RA_GYRO_CONFIG 0x1B #define MPU6050_RA_ACCEL_CONFIG 0x1C #define MPU6050_RA_FF_THR 0x1D #define MPU6050_RA_FF_DUR 0x1E #define MPU6050_RA_MOT_THR 0x1F #define MPU6050_RA_MOT_DUR 0x20 #define MPU6050_RA_ZRMOT_THR 0x21 #define MPU6050_RA_ZRMOT_DUR 0x22 #define MPU6050_RA_FIFO_EN 0x23 #define MPU6050_RA_I2C_MST_CTRL 0x24 #define MPU6050_RA_I2C_SLV0_ADDR 0x25 #define MPU6050_RA_I2C_SLV0_REG 0x26 #define MPU6050_RA_I2C_SLV0_CTRL 0x27 #define MPU6050_RA_I2C_SLV1_ADDR 0x28 #define MPU6050_RA_I2C_SLV1_REG 0x29 #define MPU6050_RA_I2C_SLV1_CTRL 0x2A #define MPU6050_RA_I2C_SLV2_ADDR 0x2B #define MPU6050_RA_I2C_SLV2_REG 0x2C #define MPU6050_RA_I2C_SLV2_CTRL 0x2D #define MPU6050_RA_I2C_SLV3_ADDR 0x2E #define MPU6050_RA_I2C_SLV3_REG 0x2F #define MPU6050_RA_I2C_SLV3_CTRL 0x30 #define MPU6050_RA_I2C_SLV4_ADDR 0x31 #define MPU6050_RA_I2C_SLV4_REG 0x32 #define MPU6050_RA_I2C_SLV4_DO 0x33 #define MPU6050_RA_I2C_SLV4_CTRL 0x34 #define MPU6050_RA_I2C_SLV4_DI 0x35 #define MPU6050_RA_I2C_MST_STATUS 0x36 #define MPU6050_RA_INT_PIN_CFG 0x37 #define MPU6050_RA_INT_ENABLE 0x38 #define MPU6050_RA_DMP_INT_STATUS 0x39 #define MPU6050_RA_INT_STATUS 0x3A #define MPU6050_RA_ACCEL_XOUT_H 0x3B #define MPU6050_RA_ACCEL_XOUT_L 0x3C #define MPU6050_RA_ACCEL_YOUT_H 0x3D #define MPU6050_RA_ACCEL_YOUT_L 0x3E #define MPU6050_RA_ACCEL_ZOUT_H 0x3F #define MPU6050_RA_ACCEL_ZOUT_L 0x40 #define MPU6050_RA_TEMP_OUT_H 0x41 #define MPU6050_RA_TEMP_OUT_L 0x42 #define MPU6050_RA_GYRO_XOUT_H 0x43 #define MPU6050_RA_GYRO_XOUT_L 0x44 #define MPU6050_RA_GYRO_YOUT_H 0x45 #define MPU6050_RA_GYRO_YOUT_L 0x46 #define MPU6050_RA_GYRO_ZOUT_H 0x47 #define MPU6050_RA_GYRO_ZOUT_L 0x48 #define MPU6050_RA_EXT_SENS_DATA_00 0x49 #define MPU6050_RA_EXT_SENS_DATA_01 0x4A #define MPU6050_RA_EXT_SENS_DATA_02 0x4B #define MPU6050_RA_EXT_SENS_DATA_03 0x4C #define MPU6050_RA_EXT_SENS_DATA_04 0x4D #define MPU6050_RA_EXT_SENS_DATA_05 0x4E #define MPU6050_RA_EXT_SENS_DATA_06 0x4F #define MPU6050_RA_EXT_SENS_DATA_07 0x50 #define MPU6050_RA_EXT_SENS_DATA_08 0x51 #define MPU6050_RA_EXT_SENS_DATA_09 0x52 #define MPU6050_RA_EXT_SENS_DATA_10 0x53 #define MPU6050_RA_EXT_SENS_DATA_11 0x54 #define MPU6050_RA_EXT_SENS_DATA_12 0x55 #define MPU6050_RA_EXT_SENS_DATA_13 0x56 #define MPU6050_RA_EXT_SENS_DATA_14 0x57 #define MPU6050_RA_EXT_SENS_DATA_15 0x58 #define MPU6050_RA_EXT_SENS_DATA_16 0x59 #define MPU6050_RA_EXT_SENS_DATA_17 0x5A #define MPU6050_RA_EXT_SENS_DATA_18 0x5B #define MPU6050_RA_EXT_SENS_DATA_19 0x5C #define MPU6050_RA_EXT_SENS_DATA_20 0x5D #define MPU6050_RA_EXT_SENS_DATA_21 0x5E #define MPU6050_RA_EXT_SENS_DATA_22 0x5F #define MPU6050_RA_EXT_SENS_DATA_23 0x60 #define MPU6050_RA_MOT_DETECT_STATUS 0x61 #define MPU6050_RA_I2C_SLV0_DO 0x63 #define MPU6050_RA_I2C_SLV1_DO 0x64 #define MPU6050_RA_I2C_SLV2_DO 0x65 #define MPU6050_RA_I2C_SLV3_DO 0x66 #define MPU6050_RA_I2C_MST_DELAY_CTRL 0x67 #define MPU6050_RA_SIGNAL_PATH_RESET 0x68 #define MPU6050_RA_MOT_DETECT_CTRL 0x69 #define MPU6050_RA_USER_CTRL 0x6A #define MPU6050_RA_PWR_MGMT_1 0x6B #define MPU6050_RA_PWR_MGMT_2 0x6C #define MPU6050_RA_BANK_SEL 0x6D #define MPU6050_RA_MEM_START_ADDR 0x6E #define MPU6050_RA_MEM_R_W 0x6F #define MPU6050_RA_DMP_CFG_1 0x70 #define MPU6050_RA_DMP_CFG_2 0x71 #define MPU6050_RA_FIFO_COUNTH 0x72 #define MPU6050_RA_FIFO_COUNTL 0x73 #define MPU6050_RA_FIFO_R_W 0x74 #define MPU6050_RA_WHO_AM_I 0x75 #define MPU6050_SELF_TEST_XA_1_BIT 0x07 #define MPU6050_SELF_TEST_XA_1_LENGTH 0x03 #define MPU6050_SELF_TEST_XA_2_BIT 0x05 #define MPU6050_SELF_TEST_XA_2_LENGTH 0x02 #define MPU6050_SELF_TEST_YA_1_BIT 0x07 #define MPU6050_SELF_TEST_YA_1_LENGTH 0x03 #define MPU6050_SELF_TEST_YA_2_BIT 0x03 #define MPU6050_SELF_TEST_YA_2_LENGTH 0x02 #define MPU6050_SELF_TEST_ZA_1_BIT 0x07 #define MPU6050_SELF_TEST_ZA_1_LENGTH 0x03 #define MPU6050_SELF_TEST_ZA_2_BIT 0x01 #define MPU6050_SELF_TEST_ZA_2_LENGTH 0x02 #define MPU6050_SELF_TEST_XG_1_BIT 0x04 #define MPU6050_SELF_TEST_XG_1_LENGTH 0x05 #define MPU6050_SELF_TEST_YG_1_BIT 0x04 #define MPU6050_SELF_TEST_YG_1_LENGTH 0x05 #define MPU6050_SELF_TEST_ZG_1_BIT 0x04 #define MPU6050_SELF_TEST_ZG_1_LENGTH 0x05 #define MPU6050_TC_PWR_MODE_BIT 7 #define MPU6050_TC_OFFSET_BIT 6 #define MPU6050_TC_OFFSET_LENGTH 6 #define MPU6050_TC_OTP_BNK_VLD_BIT 0 #define MPU6050_VDDIO_LEVEL_VLOGIC 0 #define MPU6050_VDDIO_LEVEL_VDD 1 #define MPU6050_CFG_EXT_SYNC_SET_BIT 5 #define MPU6050_CFG_EXT_SYNC_SET_LENGTH 3 #define MPU6050_CFG_DLPF_CFG_BIT 2 #define MPU6050_CFG_DLPF_CFG_LENGTH 3 #define MPU6050_EXT_SYNC_DISABLED 0x0 #define MPU6050_EXT_SYNC_TEMP_OUT_L 0x1 #define MPU6050_EXT_SYNC_GYRO_XOUT_L 0x2 #define MPU6050_EXT_SYNC_GYRO_YOUT_L 0x3 #define MPU6050_EXT_SYNC_GYRO_ZOUT_L 0x4 #define MPU6050_EXT_SYNC_ACCEL_XOUT_L 0x5 #define MPU6050_EXT_SYNC_ACCEL_YOUT_L 0x6 #define MPU6050_EXT_SYNC_ACCEL_ZOUT_L 0x7 #define MPU6050_DLPF_BW_256 0x00 #define MPU6050_DLPF_BW_188 0x01 #define MPU6050_DLPF_BW_98 0x02 #define MPU6050_DLPF_BW_42 0x03 #define MPU6050_DLPF_BW_20 0x04 #define MPU6050_DLPF_BW_10 0x05 #define MPU6050_DLPF_BW_5 0x06 #define MPU6050_GCONFIG_FS_SEL_BIT 4 #define MPU6050_GCONFIG_FS_SEL_LENGTH 2 #define MPU6050_GYRO_FS_250 0x00 #define MPU6050_GYRO_FS_500 0x01 #define MPU6050_GYRO_FS_1000 0x02 #define MPU6050_GYRO_FS_2000 0x03 #define MPU6050_ACONFIG_XA_ST_BIT 7 #define MPU6050_ACONFIG_YA_ST_BIT 6 #define MPU6050_ACONFIG_ZA_ST_BIT 5 #define MPU6050_ACONFIG_AFS_SEL_BIT 4 #define MPU6050_ACONFIG_AFS_SEL_LENGTH 2 #define MPU6050_ACONFIG_ACCEL_HPF_BIT 2 #define MPU6050_ACONFIG_ACCEL_HPF_LENGTH 3 #define MPU6050_ACCEL_FS_2 0x00 #define MPU6050_ACCEL_FS_4 0x01 #define MPU6050_ACCEL_FS_8 0x02 #define MPU6050_ACCEL_FS_16 0x03 #define MPU6050_DHPF_RESET 0x00 #define MPU6050_DHPF_5 0x01 #define MPU6050_DHPF_2P5 0x02 #define MPU6050_DHPF_1P25 0x03 #define MPU6050_DHPF_0P63 0x04 #define MPU6050_DHPF_HOLD 0x07 #define MPU6050_TEMP_FIFO_EN_BIT 7 #define MPU6050_XG_FIFO_EN_BIT 6 #define MPU6050_YG_FIFO_EN_BIT 5 #define MPU6050_ZG_FIFO_EN_BIT 4 #define MPU6050_ACCEL_FIFO_EN_BIT 3 #define MPU6050_SLV2_FIFO_EN_BIT 2 #define MPU6050_SLV1_FIFO_EN_BIT 1 #define MPU6050_SLV0_FIFO_EN_BIT 0 #define MPU6050_MULT_MST_EN_BIT 7 #define MPU6050_WAIT_FOR_ES_BIT 6 #define MPU6050_SLV_3_FIFO_EN_BIT 5 #define MPU6050_I2C_MST_P_NSR_BIT 4 #define MPU6050_I2C_MST_CLK_BIT 3 #define MPU6050_I2C_MST_CLK_LENGTH 4 #define MPU6050_CLOCK_DIV_348 0x0 #define MPU6050_CLOCK_DIV_333 0x1 #define MPU6050_CLOCK_DIV_320 0x2 #define MPU6050_CLOCK_DIV_308 0x3 #define MPU6050_CLOCK_DIV_296 0x4 #define MPU6050_CLOCK_DIV_286 0x5 #define MPU6050_CLOCK_DIV_276 0x6 #define MPU6050_CLOCK_DIV_267 0x7 #define MPU6050_CLOCK_DIV_258 0x8 #define MPU6050_CLOCK_DIV_500 0x9 #define MPU6050_CLOCK_DIV_471 0xA #define MPU6050_CLOCK_DIV_444 0xB #define MPU6050_CLOCK_DIV_421 0xC #define MPU6050_CLOCK_DIV_400 0xD #define MPU6050_CLOCK_DIV_381 0xE #define MPU6050_CLOCK_DIV_364 0xF #define MPU6050_I2C_SLV_RW_BIT 7 #define MPU6050_I2C_SLV_ADDR_BIT 6 #define MPU6050_I2C_SLV_ADDR_LENGTH 7 #define MPU6050_I2C_SLV_EN_BIT 7 #define MPU6050_I2C_SLV_BYTE_SW_BIT 6 #define MPU6050_I2C_SLV_REG_DIS_BIT 5 #define MPU6050_I2C_SLV_GRP_BIT 4 #define MPU6050_I2C_SLV_LEN_BIT 3 #define MPU6050_I2C_SLV_LEN_LENGTH 4 #define MPU6050_I2C_SLV4_RW_BIT 7 #define MPU6050_I2C_SLV4_ADDR_BIT 6 #define MPU6050_I2C_SLV4_ADDR_LENGTH 7 #define MPU6050_I2C_SLV4_EN_BIT 7 #define MPU6050_I2C_SLV4_INT_EN_BIT 6 #define MPU6050_I2C_SLV4_REG_DIS_BIT 5 #define MPU6050_I2C_SLV4_MST_DLY_BIT 4 #define MPU6050_I2C_SLV4_MST_DLY_LENGTH 5 #define MPU6050_MST_PASS_THROUGH_BIT 7 #define MPU6050_MST_I2C_SLV4_DONE_BIT 6 #define MPU6050_MST_I2C_LOST_ARB_BIT 5 #define MPU6050_MST_I2C_SLV4_NACK_BIT 4 #define MPU6050_MST_I2C_SLV3_NACK_BIT 3 #define MPU6050_MST_I2C_SLV2_NACK_BIT 2 #define MPU6050_MST_I2C_SLV1_NACK_BIT 1 #define MPU6050_MST_I2C_SLV0_NACK_BIT 0 #define MPU6050_INTCFG_INT_LEVEL_BIT 7 #define MPU6050_INTCFG_INT_OPEN_BIT 6 #define MPU6050_INTCFG_LATCH_INT_EN_BIT 5 #define MPU6050_INTCFG_INT_RD_CLEAR_BIT 4 #define MPU6050_INTCFG_FSYNC_INT_LEVEL_BIT 3 #define MPU6050_INTCFG_FSYNC_INT_EN_BIT 2 #define MPU6050_INTCFG_I2C_BYPASS_EN_BIT 1 #define MPU6050_INTCFG_CLKOUT_EN_BIT 0 #define MPU6050_INTMODE_ACTIVEHIGH 0x00 #define MPU6050_INTMODE_ACTIVELOW 0x01 #define MPU6050_INTDRV_PUSHPULL 0x00 #define MPU6050_INTDRV_OPENDRAIN 0x01 #define MPU6050_INTLATCH_50USPULSE 0x00 #define MPU6050_INTLATCH_WAITCLEAR 0x01 #define MPU6050_INTCLEAR_STATUSREAD 0x00 #define MPU6050_INTCLEAR_ANYREAD 0x01 #define MPU6050_INTERRUPT_FF_BIT 7 #define MPU6050_INTERRUPT_MOT_BIT 6 #define MPU6050_INTERRUPT_ZMOT_BIT 5 #define MPU6050_INTERRUPT_FIFO_OFLOW_BIT 4 #define MPU6050_INTERRUPT_I2C_MST_INT_BIT 3 #define MPU6050_INTERRUPT_PLL_RDY_INT_BIT 2 #define MPU6050_INTERRUPT_DMP_INT_BIT 1 #define MPU6050_INTERRUPT_DATA_RDY_BIT 0 // TODO: figure out what these actually do // UMPL source code is not very obivous #define MPU6050_DMPINT_5_BIT 5 #define MPU6050_DMPINT_4_BIT 4 #define MPU6050_DMPINT_3_BIT 3 #define MPU6050_DMPINT_2_BIT 2 #define MPU6050_DMPINT_1_BIT 1 #define MPU6050_DMPINT_0_BIT 0 #define MPU6050_MOTION_MOT_XNEG_BIT 7 #define MPU6050_MOTION_MOT_XPOS_BIT 6 #define MPU6050_MOTION_MOT_YNEG_BIT 5 #define MPU6050_MOTION_MOT_YPOS_BIT 4 #define MPU6050_MOTION_MOT_ZNEG_BIT 3 #define MPU6050_MOTION_MOT_ZPOS_BIT 2 #define MPU6050_MOTION_MOT_ZRMOT_BIT 0 #define MPU6050_DELAYCTRL_DELAY_ES_SHADOW_BIT 7 #define MPU6050_DELAYCTRL_I2C_SLV4_DLY_EN_BIT 4 #define MPU6050_DELAYCTRL_I2C_SLV3_DLY_EN_BIT 3 #define MPU6050_DELAYCTRL_I2C_SLV2_DLY_EN_BIT 2 #define MPU6050_DELAYCTRL_I2C_SLV1_DLY_EN_BIT 1 #define MPU6050_DELAYCTRL_I2C_SLV0_DLY_EN_BIT 0 #define MPU6050_PATHRESET_GYRO_RESET_BIT 2 #define MPU6050_PATHRESET_ACCEL_RESET_BIT 1 #define MPU6050_PATHRESET_TEMP_RESET_BIT 0 #define MPU6050_DETECT_ACCEL_ON_DELAY_BIT 5 #define MPU6050_DETECT_ACCEL_ON_DELAY_LENGTH 2 #define MPU6050_DETECT_FF_COUNT_BIT 3 #define MPU6050_DETECT_FF_COUNT_LENGTH 2 #define MPU6050_DETECT_MOT_COUNT_BIT 1 #define MPU6050_DETECT_MOT_COUNT_LENGTH 2 #define MPU6050_DETECT_DECREMENT_RESET 0x0 #define MPU6050_DETECT_DECREMENT_1 0x1 #define MPU6050_DETECT_DECREMENT_2 0x2 #define MPU6050_DETECT_DECREMENT_4 0x3 #define MPU6050_USERCTRL_DMP_EN_BIT 7 #define MPU6050_USERCTRL_FIFO_EN_BIT 6 #define MPU6050_USERCTRL_I2C_MST_EN_BIT 5 #define MPU6050_USERCTRL_I2C_IF_DIS_BIT 4 #define MPU6050_USERCTRL_DMP_RESET_BIT 3 #define MPU6050_USERCTRL_FIFO_RESET_BIT 2 #define MPU6050_USERCTRL_I2C_MST_RESET_BIT 1 #define MPU6050_USERCTRL_SIG_COND_RESET_BIT 0 #define MPU6050_PWR1_DEVICE_RESET_BIT 7 #define MPU6050_PWR1_SLEEP_BIT 6 #define MPU6050_PWR1_CYCLE_BIT 5 #define MPU6050_PWR1_TEMP_DIS_BIT 3 #define MPU6050_PWR1_CLKSEL_BIT 2 #define MPU6050_PWR1_CLKSEL_LENGTH 3 #define MPU6050_CLOCK_INTERNAL 0x00 #define MPU6050_CLOCK_PLL_XGYRO 0x01 #define MPU6050_CLOCK_PLL_YGYRO 0x02 #define MPU6050_CLOCK_PLL_ZGYRO 0x03 #define MPU6050_CLOCK_PLL_EXT32K 0x04 #define MPU6050_CLOCK_PLL_EXT19M 0x05 #define MPU6050_CLOCK_KEEP_RESET 0x07 #define MPU6050_PWR2_LP_WAKE_CTRL_BIT 7 #define MPU6050_PWR2_LP_WAKE_CTRL_LENGTH 2 #define MPU6050_PWR2_STBY_XA_BIT 5 #define MPU6050_PWR2_STBY_YA_BIT 4 #define MPU6050_PWR2_STBY_ZA_BIT 3 #define MPU6050_PWR2_STBY_XG_BIT 2 #define MPU6050_PWR2_STBY_YG_BIT 1 #define MPU6050_PWR2_STBY_ZG_BIT 0 #define MPU6050_WAKE_FREQ_1P25 0x0 #define MPU6050_WAKE_FREQ_2P5 0x1 #define MPU6050_WAKE_FREQ_5 0x2 #define MPU6050_WAKE_FREQ_10 0x3 #define MPU6050_BANKSEL_PRFTCH_EN_BIT 6 #define MPU6050_BANKSEL_CFG_USER_BANK_BIT 5 #define MPU6050_BANKSEL_MEM_SEL_BIT 4 #define MPU6050_BANKSEL_MEM_SEL_LENGTH 5 #define MPU6050_WHO_AM_I_BIT 6 #define MPU6050_WHO_AM_I_LENGTH 6 #define MPU6050_DMP_MEMORY_BANKS 8 #define MPU6050_DMP_MEMORY_BANK_SIZE 256 #define MPU6050_DMP_MEMORY_CHUNK_SIZE 16 // note: DMP code memory blocks defined at end of header file class MPU6050 { private: I2C_HandleTypeDef *hi2c; // Filters BiquadFilter_t gyroFilterLPF[3]; BiquadFilter_t accFilterLPF[3]; float gyroRangeScale; float accRangeScale; public: struct ImuDataRaw_t { int16_t ax; int16_t ay; int16_t az; int16_t gx; int16_t gy; int16_t gz; } dataRaw; struct ImuData_t { float ax; float ay; float az; float gx; float gy; float gz; } data; explicit MPU6050(I2C_HandleTypeDef *_hi2c, uint8_t address = MPU6050_DEFAULT_ADDRESS); void Init(); bool testConnection(); void InitFilter(float _imuUpdateRate = 200, float _gyroFilterCutoffFreq = 100, float _accFilterCutoffFreq = 50); // AUX_VDDIO register uint8_t getAuxVDDIOLevel(); void setAuxVDDIOLevel(uint8_t level); // SMPLRT_DIV register uint8_t getRate(); void setRate(uint8_t rate); // CONFIG register uint8_t getExternalFrameSync(); void setExternalFrameSync(uint8_t sync); uint8_t getDLPFMode(); void setDLPFMode(uint8_t bandwidth); // GYRO_CONFIG register uint8_t getFullScaleGyroRange(); void setFullScaleGyroRange(uint8_t range); // SELF_TEST registers uint8_t getAccelXSelfTestFactoryTrim(); uint8_t getAccelYSelfTestFactoryTrim(); uint8_t getAccelZSelfTestFactoryTrim(); uint8_t getGyroXSelfTestFactoryTrim(); uint8_t getGyroYSelfTestFactoryTrim(); uint8_t getGyroZSelfTestFactoryTrim(); // ACCEL_CONFIG register bool getAccelXSelfTest(); void setAccelXSelfTest(bool enabled); bool getAccelYSelfTest(); void setAccelYSelfTest(bool enabled); bool getAccelZSelfTest(); void setAccelZSelfTest(bool enabled); uint8_t getFullScaleAccelRange(); void setFullScaleAccelRange(uint8_t range); uint8_t getDHPFMode(); void setDHPFMode(uint8_t mode); // FF_THR register uint8_t getFreefallDetectionThreshold(); void setFreefallDetectionThreshold(uint8_t threshold); // FF_DUR register uint8_t getFreefallDetectionDuration(); void setFreefallDetectionDuration(uint8_t duration); // MOT_THR register uint8_t getMotionDetectionThreshold(); void setMotionDetectionThreshold(uint8_t threshold); // MOT_DUR register uint8_t getMotionDetectionDuration(); void setMotionDetectionDuration(uint8_t duration); // ZRMOT_THR register uint8_t getZeroMotionDetectionThreshold(); void setZeroMotionDetectionThreshold(uint8_t threshold); // ZRMOT_DUR register uint8_t getZeroMotionDetectionDuration(); void setZeroMotionDetectionDuration(uint8_t duration); // FIFO_EN register bool getTempFIFOEnabled(); void setTempFIFOEnabled(bool enabled); bool getXGyroFIFOEnabled(); void setXGyroFIFOEnabled(bool enabled); bool getYGyroFIFOEnabled(); void setYGyroFIFOEnabled(bool enabled); bool getZGyroFIFOEnabled(); void setZGyroFIFOEnabled(bool enabled); bool getAccelFIFOEnabled(); void setAccelFIFOEnabled(bool enabled); bool getSlave2FIFOEnabled(); void setSlave2FIFOEnabled(bool enabled); bool getSlave1FIFOEnabled(); void setSlave1FIFOEnabled(bool enabled); bool getSlave0FIFOEnabled(); void setSlave0FIFOEnabled(bool enabled); // I2C_MST_CTRL register bool getMultiMasterEnabled(); void setMultiMasterEnabled(bool enabled); bool getWaitForExternalSensorEnabled(); void setWaitForExternalSensorEnabled(bool enabled); bool getSlave3FIFOEnabled(); void setSlave3FIFOEnabled(bool enabled); bool getSlaveReadWriteTransitionEnabled(); void setSlaveReadWriteTransitionEnabled(bool enabled); uint8_t getMasterClockSpeed(); void setMasterClockSpeed(uint8_t speed); // I2C_SLV* registers (Slave 0-3) uint8_t getSlaveAddress(uint8_t num); void setSlaveAddress(uint8_t num, uint8_t address); uint8_t getSlaveRegister(uint8_t num); void setSlaveRegister(uint8_t num, uint8_t reg); bool getSlaveEnabled(uint8_t num); void setSlaveEnabled(uint8_t num, bool enabled); bool getSlaveWordByteSwap(uint8_t num); void setSlaveWordByteSwap(uint8_t num, bool enabled); bool getSlaveWriteMode(uint8_t num); void setSlaveWriteMode(uint8_t num, bool mode); bool getSlaveWordGroupOffset(uint8_t num); void setSlaveWordGroupOffset(uint8_t num, bool enabled); uint8_t getSlaveDataLength(uint8_t num); void setSlaveDataLength(uint8_t num, uint8_t length); // I2C_SLV* registers (Slave 4) uint8_t getSlave4Address(); void setSlave4Address(uint8_t address); uint8_t getSlave4Register(); void setSlave4Register(uint8_t reg); void setSlave4OutputByte(uint8_t data); bool getSlave4Enabled(); void setSlave4Enabled(bool enabled); bool getSlave4InterruptEnabled(); void setSlave4InterruptEnabled(bool enabled); bool getSlave4WriteMode(); void setSlave4WriteMode(bool mode); uint8_t getSlave4MasterDelay(); void setSlave4MasterDelay(uint8_t delay); uint8_t getSlate4InputByte(); // I2C_MST_STATUS register bool getPassthroughStatus(); bool getSlave4IsDone(); bool getLostArbitration(); bool getSlave4Nack(); bool getSlave3Nack(); bool getSlave2Nack(); bool getSlave1Nack(); bool getSlave0Nack(); // INT_PIN_CFG register bool getInterruptMode(); void setInterruptMode(bool mode); bool getInterruptDrive(); void setInterruptDrive(bool drive); bool getInterruptLatch(); void setInterruptLatch(bool latch); bool getInterruptLatchClear(); void setInterruptLatchClear(bool clear); bool getFSyncInterruptLevel(); void setFSyncInterruptLevel(bool level); bool getFSyncInterruptEnabled(); void setFSyncInterruptEnabled(bool enabled); bool getI2CBypassEnabled(); void setI2CBypassEnabled(bool enabled); bool getClockOutputEnabled(); void setClockOutputEnabled(bool enabled); // INT_ENABLE register uint8_t getIntEnabled(); void setIntEnabled(uint8_t enabled); bool getIntFreefallEnabled(); void setIntFreefallEnabled(bool enabled); bool getIntMotionEnabled(); void setIntMotionEnabled(bool enabled); bool getIntZeroMotionEnabled(); void setIntZeroMotionEnabled(bool enabled); bool getIntFIFOBufferOverflowEnabled(); void setIntFIFOBufferOverflowEnabled(bool enabled); bool getIntI2CMasterEnabled(); void setIntI2CMasterEnabled(bool enabled); bool getIntDataReadyEnabled(); void setIntDataReadyEnabled(bool enabled); // INT_STATUS register uint8_t getIntStatus(); bool getIntFreefallStatus(); bool getIntMotionStatus(); bool getIntZeroMotionStatus(); bool getIntFIFOBufferOverflowStatus(); bool getIntI2CMasterStatus(); bool getIntDataReadyStatus(); // ACCEL_*OUT_* registers void getMotion9(int16_t *ax, int16_t *ay, int16_t *az, int16_t *gx, int16_t *gy, int16_t *gz, int16_t *mx, int16_t *my, int16_t *mz); void getMotion6(int16_t *ax, int16_t *ay, int16_t *az, int16_t *gx, int16_t *gy, int16_t *gz); void Update(bool _useFilter = false); void getAcceleration(int16_t *x, int16_t *y, int16_t *z); int16_t getAccelerationX(); int16_t getAccelerationY(); int16_t getAccelerationZ(); // TEMP_OUT_* registers int16_t getTemperature(); // GYRO_*OUT_* registers void getRotation(int16_t *x, int16_t *y, int16_t *z); int16_t getRotationX(); int16_t getRotationY(); int16_t getRotationZ(); // EXT_SENS_DATA_* registers uint8_t getExternalSensorByte(int position); uint16_t getExternalSensorWord(int position); uint32_t getExternalSensorDWord(int position); // MOT_DETECT_STATUS register uint8_t getMotionStatus(); bool getXNegMotionDetected(); bool getXPosMotionDetected(); bool getYNegMotionDetected(); bool getYPosMotionDetected(); bool getZNegMotionDetected(); bool getZPosMotionDetected(); bool getZeroMotionDetected(); // I2C_SLV*_DO register void setSlaveOutputByte(uint8_t num, uint8_t data); // I2C_MST_DELAY_CTRL register bool getExternalShadowDelayEnabled(); void setExternalShadowDelayEnabled(bool enabled); bool getSlaveDelayEnabled(uint8_t num); void setSlaveDelayEnabled(uint8_t num, bool enabled); // SIGNAL_PATH_RESET register void resetGyroscopePath(); void resetAccelerometerPath(); void resetTemperaturePath(); // MOT_DETECT_CTRL register uint8_t getAccelerometerPowerOnDelay(); void setAccelerometerPowerOnDelay(uint8_t delay); uint8_t getFreefallDetectionCounterDecrement(); void setFreefallDetectionCounterDecrement(uint8_t decrement); uint8_t getMotionDetectionCounterDecrement(); void setMotionDetectionCounterDecrement(uint8_t decrement); // USER_CTRL register bool getFIFOEnabled(); void setFIFOEnabled(bool enabled); bool getI2CMasterModeEnabled(); void setI2CMasterModeEnabled(bool enabled); void switchSPIEnabled(bool enabled); void resetFIFO(); void resetI2CMaster(); void resetSensors(); // PWR_MGMT_1 register void reset(); bool getSleepEnabled(); void setSleepEnabled(bool enabled); bool getWakeCycleEnabled(); void setWakeCycleEnabled(bool enabled); bool getTempSensorEnabled(); void setTempSensorEnabled(bool enabled); uint8_t getClockSource(); void setClockSource(uint8_t source); // PWR_MGMT_2 register uint8_t getWakeFrequency(); void setWakeFrequency(uint8_t frequency); bool getStandbyXAccelEnabled(); void setStandbyXAccelEnabled(bool enabled); bool getStandbyYAccelEnabled(); void setStandbyYAccelEnabled(bool enabled); bool getStandbyZAccelEnabled(); void setStandbyZAccelEnabled(bool enabled); bool getStandbyXGyroEnabled(); void setStandbyXGyroEnabled(bool enabled); bool getStandbyYGyroEnabled(); void setStandbyYGyroEnabled(bool enabled); bool getStandbyZGyroEnabled(); void setStandbyZGyroEnabled(bool enabled); // FIFO_COUNT_* registers uint16_t getFIFOCount(); // FIFO_R_W register uint8_t getFIFOByte(); void setFIFOByte(uint8_t data); void getFIFOBytes(uint8_t *data, uint8_t length); // WHO_AM_I register uint8_t getDeviceID(); void setDeviceID(uint8_t id); // ======== UNDOCUMENTED/DMP REGISTERS/METHODS ======== // XG_OFFS_TC register uint8_t getOTPBankValid(); void setOTPBankValid(bool enabled); int8_t getXGyroOffsetTC(); void setXGyroOffsetTC(int8_t offset); // YG_OFFS_TC register int8_t getYGyroOffsetTC(); void setYGyroOffsetTC(int8_t offset); // ZG_OFFS_TC register int8_t getZGyroOffsetTC(); void setZGyroOffsetTC(int8_t offset); // X_FINE_GAIN register int8_t getXFineGain(); void setXFineGain(int8_t gain); // Y_FINE_GAIN register int8_t getYFineGain(); void setYFineGain(int8_t gain); // Z_FINE_GAIN register int8_t getZFineGain(); void setZFineGain(int8_t gain); // XA_OFFS_* registers int16_t getXAccelOffset(); void setXAccelOffset(int16_t offset); // YA_OFFS_* register int16_t getYAccelOffset(); void setYAccelOffset(int16_t offset); // ZA_OFFS_* register int16_t getZAccelOffset(); void setZAccelOffset(int16_t offset); // XG_OFFS_USR* registers int16_t getXGyroOffset(); void setXGyroOffset(int16_t offset); // YG_OFFS_USR* register int16_t getYGyroOffset(); void setYGyroOffset(int16_t offset); // ZG_OFFS_USR* register int16_t getZGyroOffset(); void setZGyroOffset(int16_t offset); // INT_ENABLE register (DMP functions) bool getIntPLLReadyEnabled(); void setIntPLLReadyEnabled(bool enabled); bool getIntDMPEnabled(); void setIntDMPEnabled(bool enabled); // DMP_INT_STATUS bool getDMPInt5Status(); bool getDMPInt4Status(); bool getDMPInt3Status(); bool getDMPInt2Status(); bool getDMPInt1Status(); bool getDMPInt0Status(); // INT_STATUS register (DMP functions) bool getIntPLLReadyStatus(); bool getIntDMPStatus(); // USER_CTRL register (DMP functions) bool getDMPEnabled(); void setDMPEnabled(bool enabled); void resetDMP(); // BANK_SEL register void setMemoryBank(uint8_t bank, bool prefetchEnabled = false, bool userBank = false); // MEM_START_ADDR register void setMemoryStartAddress(uint8_t address); // MEM_R_W register uint8_t readMemoryByte(); void writeMemoryByte(uint8_t data); void readMemoryBlock(uint8_t *data, uint16_t dataSize, uint8_t bank = 0, uint8_t address = 0); bool writeMemoryBlock(const uint8_t *data, uint16_t dataSize, uint8_t bank = 0, uint8_t address = 0, bool verify = true, bool useProgMem = false); bool writeProgMemoryBlock(const uint8_t *data, uint16_t dataSize, uint8_t bank = 0, uint8_t address = 0, bool verify = true); bool writeDMPConfigurationSet(const uint8_t *data, uint16_t dataSize, bool useProgMem = false); bool writeProgDMPConfigurationSet(const uint8_t *data, uint16_t dataSize); // DMP_CFG_1 register uint8_t getDMPConfig1(); void setDMPConfig1(uint8_t config); // DMP_CFG_2 register uint8_t getDMPConfig2(); void setDMPConfig2(uint8_t config); // special methods for MotionApps 2.0 implementation #ifdef MPU6050_INCLUDE_DMP_MOTIONAPPS20 uint8_t dmpInitialize(); bool dmpPacketAvailable(); uint8_t dmpSetFIFORate(uint8_t fifoRate); uint8_t dmpGetFIFORate(); uint8_t dmpGetSampleStepSizeMS(); uint8_t dmpGetSampleFrequency(); int32_t dmpDecodeTemperature(int8_t tempReg); // Register callbacks after a packet of FIFO data is processed //uint8_t dmpRegisterFIFORateProcess(inv_obj_func func, int16_t priority); //uint8_t dmpUnregisterFIFORateProcess(inv_obj_func func); uint8_t dmpRunFIFORateProcesses(); // Setup FIFO for various output uint8_t dmpSendQuaternion(uint_fast16_t accuracy); uint8_t dmpSendGyro(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendLinearAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendLinearAccelInWorld(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendControlData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendSensorData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendExternalSensorData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendGravity(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendPacketNumber(uint_fast16_t accuracy); uint8_t dmpSendQuantizedAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendEIS(uint_fast16_t elements, uint_fast16_t accuracy); // Get Fixed Point data from FIFO uint8_t dmpGetAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetQuaternion(Quaternion *q, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(Quaternion *q, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(Quaternion *data, const uint8_t* packet=0); uint8_t dmpGetGyro(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyro(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyro(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpSetLinearAccelFilterCoefficient(float coef); uint8_t dmpGetLinearAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(VectorInt16 *v, VectorInt16 *vRaw, VectorFloat *gravity); uint8_t dmpGetLinearAccelInWorld(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(VectorInt16 *v, VectorInt16 *vReal, Quaternion *q); uint8_t dmpGetGyroAndAccelSensor(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroAndAccelSensor(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroAndAccelSensor(VectorInt16 *g, VectorInt16 *a, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetControlData(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetTemperature(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetGravity(VectorFloat *v, Quaternion *q); uint8_t dmpGetUnquantizedAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetUnquantizedAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetUnquantizedAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetExternalSensorData(int32_t *data, uint16_t size, const uint8_t* packet=0); uint8_t dmpGetEIS(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetEuler(float *data, Quaternion *q); uint8_t dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity); // Get Floating Point data from FIFO uint8_t dmpGetAccelFloat(float *data, const uint8_t* packet=0); uint8_t dmpGetQuaternionFloat(float *data, const uint8_t* packet=0); uint8_t dmpProcessFIFOPacket(const unsigned char *dmpData); uint8_t dmpReadAndProcessFIFOPacket(uint8_t numPackets, uint8_t *processed=NULL); uint8_t dmpSetFIFOProcessedCallback(void (*func) (void)); uint8_t dmpInitFIFOParam(); uint8_t dmpCloseFIFO(); uint8_t dmpSetGyroDataSource(uint8_t source); uint8_t dmpDecodeQuantizedAccel(); uint32_t dmpGetGyroSumOfSquare(); uint32_t dmpGetAccelSumOfSquare(); void dmpOverrideQuaternion(long *q); uint16_t dmpGetFIFOPacketSize(); #endif // special methods for MotionApps 4.1 implementation #ifdef MPU6050_INCLUDE_DMP_MOTIONAPPS41 uint8_t dmpInitialize(); bool dmpPacketAvailable(); uint8_t dmpSetFIFORate(uint8_t fifoRate); uint8_t dmpGetFIFORate(); uint8_t dmpGetSampleStepSizeMS(); uint8_t dmpGetSampleFrequency(); int32_t dmpDecodeTemperature(int8_t tempReg); // Register callbacks after a packet of FIFO data is processed //uint8_t dmpRegisterFIFORateProcess(inv_obj_func func, int16_t priority); //uint8_t dmpUnregisterFIFORateProcess(inv_obj_func func); uint8_t dmpRunFIFORateProcesses(); // Setup FIFO for various output uint8_t dmpSendQuaternion(uint_fast16_t accuracy); uint8_t dmpSendGyro(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendLinearAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendLinearAccelInWorld(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendControlData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendSensorData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendExternalSensorData(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendGravity(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendPacketNumber(uint_fast16_t accuracy); uint8_t dmpSendQuantizedAccel(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t dmpSendEIS(uint_fast16_t elements, uint_fast16_t accuracy); // Get Fixed Point data from FIFO uint8_t dmpGetAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetQuaternion(Quaternion *q, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGet6AxisQuaternion(Quaternion *q, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetRelativeQuaternion(Quaternion *data, const uint8_t* packet=0); uint8_t dmpGetGyro(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyro(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyro(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetMag(int16_t *data, const uint8_t* packet=0); uint8_t dmpSetLinearAccelFilterCoefficient(float coef); uint8_t dmpGetLinearAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetLinearAccel(VectorInt16 *v, VectorInt16 *vRaw, VectorFloat *gravity); uint8_t dmpGetLinearAccelInWorld(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetLinearAccelInWorld(VectorInt16 *v, VectorInt16 *vReal, Quaternion *q); uint8_t dmpGetGyroAndAccelSensor(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroAndAccelSensor(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroAndAccelSensor(VectorInt16 *g, VectorInt16 *a, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGyroSensor(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetControlData(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetTemperature(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetGravity(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetGravity(VectorFloat *v, Quaternion *q); uint8_t dmpGetUnquantizedAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetUnquantizedAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetUnquantizedAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(int16_t *data, const uint8_t* packet=0); uint8_t dmpGetQuantizedAccel(VectorInt16 *v, const uint8_t* packet=0); uint8_t dmpGetExternalSensorData(int32_t *data, uint16_t size, const uint8_t* packet=0); uint8_t dmpGetEIS(int32_t *data, const uint8_t* packet=0); uint8_t dmpGetEuler(float *data, Quaternion *q); uint8_t dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity); // Get Floating Point data from FIFO uint8_t dmpGetAccelFloat(float *data, const uint8_t* packet=0); uint8_t dmpGetQuaternionFloat(float *data, const uint8_t* packet=0); uint8_t dmpProcessFIFOPacket(const unsigned char *dmpData); uint8_t dmpReadAndProcessFIFOPacket(uint8_t numPackets, uint8_t *processed=NULL); uint8_t dmpSetFIFOProcessedCallback(void (*func) (void)); uint8_t dmpInitFIFOParam(); uint8_t dmpCloseFIFO(); uint8_t dmpSetGyroDataSource(uint8_t source); uint8_t dmpDecodeQuantizedAccel(); uint32_t dmpGetGyroSumOfSquare(); uint32_t dmpGetAccelSumOfSquare(); void dmpOverrideQuaternion(long *q); uint16_t dmpGetFIFOPacketSize(); #endif private: uint8_t devAddr; uint8_t buffer[14]; #if defined(MPU6050_INCLUDE_DMP_MOTIONAPPS20) or defined(MPU6050_INCLUDE_DMP_MOTIONAPPS41) uint8_t *dmpPacketBuffer; uint16_t dmpPacketSize; #endif }; #endif /* _MPU6050_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/MPU6050_6Axis_MotionApps20.h ================================================ // I2Cdev library collection - MPU6050 I2C device class, 6-axis MotionApps 2.0 implementation // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) // 5/20/2013 by Jeff Rowberg // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // ... - ongoing debug release /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================== */ #ifndef _MPU6050_6AXIS_MOTIONAPPS20_H_ #define _MPU6050_6AXIS_MOTIONAPPS20_H_ #include "i2c_dev.hpp" #include "helper_3dmath.h" // MotionApps 2.0 DMP implementation, built using the MPU-6050EVB evaluation board #define MPU6050_INCLUDE_DMP_MOTIONAPPS20 #include "mpu6050.hpp" // Tom Carpenter's conditional PROGMEM code // http://forum.arduino.cc/index.php?topic=129407.0 #ifdef __AVR__ #include #else // Teensy 3.0 library conditional PROGMEM code from Paul Stoffregen #ifndef __PGMSPACE_H_ #define __PGMSPACE_H_ 1 #include #define PROGMEM #define PGM_P const char * #define PSTR(str) (str) #define F(x) x //typedef void prog_void; //typedef char prog_char; //typedef unsigned char prog_uchar; //typedef int8_t prog_int8_t; //typedef uint8_t prog_uint8_t; //typedef int16_t prog_int16_t; //typedef uint16_t prog_uint16_t; //typedef int32_t prog_int32_t; //typedef uint32_t prog_uint32_t; #define strcpy_P(dest, src) strcpy((dest), (src)) #define strcat_P(dest, src) strcat((dest), (src)) #define strcmp_P(a, b) strcmp((a), (b)) #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) #define pgm_read_word(addr) (*(const unsigned short *)(addr)) #define pgm_read_dword(addr) (*(const unsigned long *)(addr)) #define pgm_read_float(addr) (*(const float *)(addr)) #define pgm_read_byte_near(addr) pgm_read_byte(addr) #define pgm_read_word_near(addr) pgm_read_word(addr) #define pgm_read_dword_near(addr) pgm_read_dword(addr) #define pgm_read_float_near(addr) pgm_read_float(addr) #define pgm_read_byte_far(addr) pgm_read_byte(addr) #define pgm_read_word_far(addr) pgm_read_word(addr) #define pgm_read_dword_far(addr) pgm_read_dword(addr) #define pgm_read_float_far(addr) pgm_read_float(addr) #endif #endif /* Source is from the InvenSense MotionApps v2 demo code. Original source is * unavailable, unless you happen to be amazing as decompiling binary by * hand (in which case, please contact me, and I'm totally serious). * * Also, I'd like to offer many, many thanks to Noah Zerkin for all of the * DMP reverse-engineering he did to help make this bit of wizardry * possible. */ // NOTE! Enabling DEBUG adds about 3.3kB to the flash program size. // Debug output is now working even on ATMega328P MCUs (e.g. Arduino Uno) // after moving string constants to flash memory storage using the F() // compiler macro (Arduino IDE 1.0+ required). //#define DEBUG #ifdef DEBUG #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINTF(x, y) Serial.print(x, y) #define DEBUG_PRINTLN(x) Serial.println(x) #define DEBUG_PRINTLNF(x, y) Serial.println(x, y) #else #define DEBUG_PRINT(x) #define DEBUG_PRINTF(x, y) #define DEBUG_PRINTLN(x) #define DEBUG_PRINTLNF(x, y) #endif #define MPU6050_DMP_CODE_SIZE 1929 // dmpMemory[] #define MPU6050_DMP_CONFIG_SIZE 192 // dmpConfig[] #define MPU6050_DMP_UPDATES_SIZE 47 // dmpUpdates[] /* ================================================================================================ * | Default MotionApps v2.0 42-byte FIFO packet structure: | | | | [QUAT W][ ][QUAT X][ ][QUAT Y][ ][QUAT Z][ ][GYRO X][ ][GYRO Y][ ] | | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | | | | [GYRO Z][ ][ACC X ][ ][ACC Y ][ ][ACC Z ][ ][ ] | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | * ================================================================================================ */ // this block of memory gets written to the MPU on start-up, and it seems // to be volatile memory, so it has to be done each time (it only takes ~1 // second though) const unsigned char dmpMemory[MPU6050_DMP_CODE_SIZE] PROGMEM = { // bank 0, 256 bytes 0xFB, 0x00, 0x00, 0x3E, 0x00, 0x0B, 0x00, 0x36, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x65, 0x00, 0x54, 0xFF, 0xEF, 0x00, 0x00, 0xFA, 0x80, 0x00, 0x0B, 0x12, 0x82, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0xFF, 0xFF, 0x45, 0x81, 0xFF, 0xFF, 0xFA, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xE8, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x7F, 0xFF, 0xFF, 0xFE, 0x80, 0x01, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x03, 0x30, 0x40, 0x00, 0x00, 0x00, 0x02, 0xCA, 0xE3, 0x09, 0x3E, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x41, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x2A, 0x00, 0x00, 0x16, 0x55, 0x00, 0x00, 0x21, 0x82, 0xFD, 0x87, 0x26, 0x50, 0xFD, 0x80, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x05, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6F, 0x00, 0x02, 0x65, 0x32, 0x00, 0x00, 0x5E, 0xC0, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFB, 0x8C, 0x6F, 0x5D, 0xFD, 0x5D, 0x08, 0xD9, 0x00, 0x7C, 0x73, 0x3B, 0x00, 0x6C, 0x12, 0xCC, 0x32, 0x00, 0x13, 0x9D, 0x32, 0x00, 0xD0, 0xD6, 0x32, 0x00, 0x08, 0x00, 0x40, 0x00, 0x01, 0xF4, 0xFF, 0xE6, 0x80, 0x79, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD0, 0xD6, 0x00, 0x00, 0x27, 0x10, // bank 1, 256 bytes 0xFB, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFA, 0x36, 0xFF, 0xBC, 0x30, 0x8E, 0x00, 0x05, 0xFB, 0xF0, 0xFF, 0xD9, 0x5B, 0xC8, 0xFF, 0xD0, 0x9A, 0xBE, 0x00, 0x00, 0x10, 0xA9, 0xFF, 0xF4, 0x1E, 0xB2, 0x00, 0xCE, 0xBB, 0xF7, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x02, 0x02, 0x00, 0x00, 0x0C, 0xFF, 0xC2, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0xCF, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3F, 0x68, 0xB6, 0x79, 0x35, 0x28, 0xBC, 0xC6, 0x7E, 0xD1, 0x6C, 0x80, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB2, 0x6A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xF0, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x4D, 0x00, 0x2F, 0x70, 0x6D, 0x00, 0x00, 0x05, 0xAE, 0x00, 0x0C, 0x02, 0xD0, // bank 2, 256 bytes 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x54, 0xFF, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0xFF, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // bank 3, 256 bytes 0xD8, 0xDC, 0xBA, 0xA2, 0xF1, 0xDE, 0xB2, 0xB8, 0xB4, 0xA8, 0x81, 0x91, 0xF7, 0x4A, 0x90, 0x7F, 0x91, 0x6A, 0xF3, 0xF9, 0xDB, 0xA8, 0xF9, 0xB0, 0xBA, 0xA0, 0x80, 0xF2, 0xCE, 0x81, 0xF3, 0xC2, 0xF1, 0xC1, 0xF2, 0xC3, 0xF3, 0xCC, 0xA2, 0xB2, 0x80, 0xF1, 0xC6, 0xD8, 0x80, 0xBA, 0xA7, 0xDF, 0xDF, 0xDF, 0xF2, 0xA7, 0xC3, 0xCB, 0xC5, 0xB6, 0xF0, 0x87, 0xA2, 0x94, 0x24, 0x48, 0x70, 0x3C, 0x95, 0x40, 0x68, 0x34, 0x58, 0x9B, 0x78, 0xA2, 0xF1, 0x83, 0x92, 0x2D, 0x55, 0x7D, 0xD8, 0xB1, 0xB4, 0xB8, 0xA1, 0xD0, 0x91, 0x80, 0xF2, 0x70, 0xF3, 0x70, 0xF2, 0x7C, 0x80, 0xA8, 0xF1, 0x01, 0xB0, 0x98, 0x87, 0xD9, 0x43, 0xD8, 0x86, 0xC9, 0x88, 0xBA, 0xA1, 0xF2, 0x0E, 0xB8, 0x97, 0x80, 0xF1, 0xA9, 0xDF, 0xDF, 0xDF, 0xAA, 0xDF, 0xDF, 0xDF, 0xF2, 0xAA, 0xC5, 0xCD, 0xC7, 0xA9, 0x0C, 0xC9, 0x2C, 0x97, 0x97, 0x97, 0x97, 0xF1, 0xA9, 0x89, 0x26, 0x46, 0x66, 0xB0, 0xB4, 0xBA, 0x80, 0xAC, 0xDE, 0xF2, 0xCA, 0xF1, 0xB2, 0x8C, 0x02, 0xA9, 0xB6, 0x98, 0x00, 0x89, 0x0E, 0x16, 0x1E, 0xB8, 0xA9, 0xB4, 0x99, 0x2C, 0x54, 0x7C, 0xB0, 0x8A, 0xA8, 0x96, 0x36, 0x56, 0x76, 0xF1, 0xB9, 0xAF, 0xB4, 0xB0, 0x83, 0xC0, 0xB8, 0xA8, 0x97, 0x11, 0xB1, 0x8F, 0x98, 0xB9, 0xAF, 0xF0, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xF1, 0xA3, 0x29, 0x55, 0x7D, 0xAF, 0x83, 0xB5, 0x93, 0xAF, 0xF0, 0x00, 0x28, 0x50, 0xF1, 0xA3, 0x86, 0x9F, 0x61, 0xA6, 0xDA, 0xDE, 0xDF, 0xD9, 0xFA, 0xA3, 0x86, 0x96, 0xDB, 0x31, 0xA6, 0xD9, 0xF8, 0xDF, 0xBA, 0xA6, 0x8F, 0xC2, 0xC5, 0xC7, 0xB2, 0x8C, 0xC1, 0xB8, 0xA2, 0xDF, 0xDF, 0xDF, 0xA3, 0xDF, 0xDF, 0xDF, 0xD8, 0xD8, 0xF1, 0xB8, 0xA8, 0xB2, 0x86, // bank 4, 256 bytes 0xB4, 0x98, 0x0D, 0x35, 0x5D, 0xB8, 0xAA, 0x98, 0xB0, 0x87, 0x2D, 0x35, 0x3D, 0xB2, 0xB6, 0xBA, 0xAF, 0x8C, 0x96, 0x19, 0x8F, 0x9F, 0xA7, 0x0E, 0x16, 0x1E, 0xB4, 0x9A, 0xB8, 0xAA, 0x87, 0x2C, 0x54, 0x7C, 0xB9, 0xA3, 0xDE, 0xDF, 0xDF, 0xA3, 0xB1, 0x80, 0xF2, 0xC4, 0xCD, 0xC9, 0xF1, 0xB8, 0xA9, 0xB4, 0x99, 0x83, 0x0D, 0x35, 0x5D, 0x89, 0xB9, 0xA3, 0x2D, 0x55, 0x7D, 0xB5, 0x93, 0xA3, 0x0E, 0x16, 0x1E, 0xA9, 0x2C, 0x54, 0x7C, 0xB8, 0xB4, 0xB0, 0xF1, 0x97, 0x83, 0xA8, 0x11, 0x84, 0xA5, 0x09, 0x98, 0xA3, 0x83, 0xF0, 0xDA, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xD8, 0xF1, 0xA5, 0x29, 0x55, 0x7D, 0xA5, 0x85, 0x95, 0x02, 0x1A, 0x2E, 0x3A, 0x56, 0x5A, 0x40, 0x48, 0xF9, 0xF3, 0xA3, 0xD9, 0xF8, 0xF0, 0x98, 0x83, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0x97, 0x82, 0xA8, 0xF1, 0x11, 0xF0, 0x98, 0xA2, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xDA, 0xF3, 0xDE, 0xD8, 0x83, 0xA5, 0x94, 0x01, 0xD9, 0xA3, 0x02, 0xF1, 0xA2, 0xC3, 0xC5, 0xC7, 0xD8, 0xF1, 0x84, 0x92, 0xA2, 0x4D, 0xDA, 0x2A, 0xD8, 0x48, 0x69, 0xD9, 0x2A, 0xD8, 0x68, 0x55, 0xDA, 0x32, 0xD8, 0x50, 0x71, 0xD9, 0x32, 0xD8, 0x70, 0x5D, 0xDA, 0x3A, 0xD8, 0x58, 0x79, 0xD9, 0x3A, 0xD8, 0x78, 0x93, 0xA3, 0x4D, 0xDA, 0x2A, 0xD8, 0x48, 0x69, 0xD9, 0x2A, 0xD8, 0x68, 0x55, 0xDA, 0x32, 0xD8, 0x50, 0x71, 0xD9, 0x32, 0xD8, 0x70, 0x5D, 0xDA, 0x3A, 0xD8, 0x58, 0x79, 0xD9, 0x3A, 0xD8, 0x78, 0xA8, 0x8A, 0x9A, 0xF0, 0x28, 0x50, 0x78, 0x9E, 0xF3, 0x88, 0x18, 0xF1, 0x9F, 0x1D, 0x98, 0xA8, 0xD9, 0x08, 0xD8, 0xC8, 0x9F, 0x12, 0x9E, 0xF3, 0x15, 0xA8, 0xDA, 0x12, 0x10, 0xD8, 0xF1, 0xAF, 0xC8, 0x97, 0x87, // bank 5, 256 bytes 0x34, 0xB5, 0xB9, 0x94, 0xA4, 0x21, 0xF3, 0xD9, 0x22, 0xD8, 0xF2, 0x2D, 0xF3, 0xD9, 0x2A, 0xD8, 0xF2, 0x35, 0xF3, 0xD9, 0x32, 0xD8, 0x81, 0xA4, 0x60, 0x60, 0x61, 0xD9, 0x61, 0xD8, 0x6C, 0x68, 0x69, 0xD9, 0x69, 0xD8, 0x74, 0x70, 0x71, 0xD9, 0x71, 0xD8, 0xB1, 0xA3, 0x84, 0x19, 0x3D, 0x5D, 0xA3, 0x83, 0x1A, 0x3E, 0x5E, 0x93, 0x10, 0x30, 0x81, 0x10, 0x11, 0xB8, 0xB0, 0xAF, 0x8F, 0x94, 0xF2, 0xDA, 0x3E, 0xD8, 0xB4, 0x9A, 0xA8, 0x87, 0x29, 0xDA, 0xF8, 0xD8, 0x87, 0x9A, 0x35, 0xDA, 0xF8, 0xD8, 0x87, 0x9A, 0x3D, 0xDA, 0xF8, 0xD8, 0xB1, 0xB9, 0xA4, 0x98, 0x85, 0x02, 0x2E, 0x56, 0xA5, 0x81, 0x00, 0x0C, 0x14, 0xA3, 0x97, 0xB0, 0x8A, 0xF1, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0xB1, 0x84, 0x0D, 0xDA, 0x0E, 0xD8, 0xA3, 0x29, 0x83, 0xDA, 0x2C, 0x0E, 0xD8, 0xA3, 0x84, 0x49, 0x83, 0xDA, 0x2C, 0x4C, 0x0E, 0xD8, 0xB8, 0xB0, 0xA8, 0x8A, 0x9A, 0xF5, 0x20, 0xAA, 0xDA, 0xDF, 0xD8, 0xA8, 0x40, 0xAA, 0xD0, 0xDA, 0xDE, 0xD8, 0xA8, 0x60, 0xAA, 0xDA, 0xD0, 0xDF, 0xD8, 0xF1, 0x97, 0x86, 0xA8, 0x31, 0x9B, 0x06, 0x99, 0x07, 0xAB, 0x97, 0x28, 0x88, 0x9B, 0xF0, 0x0C, 0x20, 0x14, 0x40, 0xB8, 0xB0, 0xB4, 0xA8, 0x8C, 0x9C, 0xF0, 0x04, 0x28, 0x51, 0x79, 0x1D, 0x30, 0x14, 0x38, 0xB2, 0x82, 0xAB, 0xD0, 0x98, 0x2C, 0x50, 0x50, 0x78, 0x78, 0x9B, 0xF1, 0x1A, 0xB0, 0xF0, 0x8A, 0x9C, 0xA8, 0x29, 0x51, 0x79, 0x8B, 0x29, 0x51, 0x79, 0x8A, 0x24, 0x70, 0x59, 0x8B, 0x20, 0x58, 0x71, 0x8A, 0x44, 0x69, 0x38, 0x8B, 0x39, 0x40, 0x68, 0x8A, 0x64, 0x48, 0x31, 0x8B, 0x30, 0x49, 0x60, 0xA5, 0x88, 0x20, 0x09, 0x71, 0x58, 0x44, 0x68, // bank 6, 256 bytes 0x11, 0x39, 0x64, 0x49, 0x30, 0x19, 0xF1, 0xAC, 0x00, 0x2C, 0x54, 0x7C, 0xF0, 0x8C, 0xA8, 0x04, 0x28, 0x50, 0x78, 0xF1, 0x88, 0x97, 0x26, 0xA8, 0x59, 0x98, 0xAC, 0x8C, 0x02, 0x26, 0x46, 0x66, 0xF0, 0x89, 0x9C, 0xA8, 0x29, 0x51, 0x79, 0x24, 0x70, 0x59, 0x44, 0x69, 0x38, 0x64, 0x48, 0x31, 0xA9, 0x88, 0x09, 0x20, 0x59, 0x70, 0xAB, 0x11, 0x38, 0x40, 0x69, 0xA8, 0x19, 0x31, 0x48, 0x60, 0x8C, 0xA8, 0x3C, 0x41, 0x5C, 0x20, 0x7C, 0x00, 0xF1, 0x87, 0x98, 0x19, 0x86, 0xA8, 0x6E, 0x76, 0x7E, 0xA9, 0x99, 0x88, 0x2D, 0x55, 0x7D, 0x9E, 0xB9, 0xA3, 0x8A, 0x22, 0x8A, 0x6E, 0x8A, 0x56, 0x8A, 0x5E, 0x9F, 0xB1, 0x83, 0x06, 0x26, 0x46, 0x66, 0x0E, 0x2E, 0x4E, 0x6E, 0x9D, 0xB8, 0xAD, 0x00, 0x2C, 0x54, 0x7C, 0xF2, 0xB1, 0x8C, 0xB4, 0x99, 0xB9, 0xA3, 0x2D, 0x55, 0x7D, 0x81, 0x91, 0xAC, 0x38, 0xAD, 0x3A, 0xB5, 0x83, 0x91, 0xAC, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0x8C, 0x9D, 0xAE, 0x29, 0xD9, 0x04, 0xAE, 0xD8, 0x51, 0xD9, 0x04, 0xAE, 0xD8, 0x79, 0xD9, 0x04, 0xD8, 0x81, 0xF3, 0x9D, 0xAD, 0x00, 0x8D, 0xAE, 0x19, 0x81, 0xAD, 0xD9, 0x01, 0xD8, 0xF2, 0xAE, 0xDA, 0x26, 0xD8, 0x8E, 0x91, 0x29, 0x83, 0xA7, 0xD9, 0xAD, 0xAD, 0xAD, 0xAD, 0xF3, 0x2A, 0xD8, 0xD8, 0xF1, 0xB0, 0xAC, 0x89, 0x91, 0x3E, 0x5E, 0x76, 0xF3, 0xAC, 0x2E, 0x2E, 0xF1, 0xB1, 0x8C, 0x5A, 0x9C, 0xAC, 0x2C, 0x28, 0x28, 0x28, 0x9C, 0xAC, 0x30, 0x18, 0xA8, 0x98, 0x81, 0x28, 0x34, 0x3C, 0x97, 0x24, 0xA7, 0x28, 0x34, 0x3C, 0x9C, 0x24, 0xF2, 0xB0, 0x89, 0xAC, 0x91, 0x2C, 0x4C, 0x6C, 0x8A, 0x9B, 0x2D, 0xD9, 0xD8, 0xD8, 0x51, 0xD9, 0xD8, 0xD8, 0x79, // bank 7, 138 bytes (remainder) 0xD9, 0xD8, 0xD8, 0xF1, 0x9E, 0x88, 0xA3, 0x31, 0xDA, 0xD8, 0xD8, 0x91, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0xB1, 0x83, 0x93, 0x35, 0x3D, 0x80, 0x25, 0xDA, 0xD8, 0xD8, 0x85, 0x69, 0xDA, 0xD8, 0xD8, 0xB4, 0x93, 0x81, 0xA3, 0x28, 0x34, 0x3C, 0xF3, 0xAB, 0x8B, 0xF8, 0xA3, 0x91, 0xB6, 0x09, 0xB4, 0xD9, 0xAB, 0xDE, 0xFA, 0xB0, 0x87, 0x9C, 0xB9, 0xA3, 0xDD, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0x95, 0xF1, 0xA3, 0xA3, 0xA3, 0x9D, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0xF2, 0xA3, 0xB4, 0x90, 0x80, 0xF2, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xB2, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xB0, 0x87, 0xB5, 0x99, 0xF1, 0xA3, 0xA3, 0xA3, 0x98, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0x97, 0xA3, 0xA3, 0xA3, 0xA3, 0xF3, 0x9B, 0xA3, 0xA3, 0xDC, 0xB9, 0xA7, 0xF1, 0x26, 0x26, 0x26, 0xD8, 0xD8, 0xFF }; #ifndef MPU6050_DMP_FIFO_RATE_DIVISOR #define MPU6050_DMP_FIFO_RATE_DIVISOR 0x01 #endif // thanks to Noah Zerkin for piecing this stuff together! const unsigned char dmpConfig[MPU6050_DMP_CONFIG_SIZE] PROGMEM = { // BANK OFFSET LENGTH [DATA] 0x03, 0x7B, 0x03, 0x4C, 0xCD, 0x6C, // FCFG_1 inv_set_gyro_calibration 0x03, 0xAB, 0x03, 0x36, 0x56, 0x76, // FCFG_3 inv_set_gyro_calibration 0x00, 0x68, 0x04, 0x02, 0xCB, 0x47, 0xA2, // D_0_104 inv_set_gyro_calibration 0x02, 0x18, 0x04, 0x00, 0x05, 0x8B, 0xC1, // D_0_24 inv_set_gyro_calibration 0x01, 0x0C, 0x04, 0x00, 0x00, 0x00, 0x00, // D_1_152 inv_set_accel_calibration 0x03, 0x7F, 0x06, 0x0C, 0xC9, 0x2C, 0x97, 0x97, 0x97, // FCFG_2 inv_set_accel_calibration 0x03, 0x89, 0x03, 0x26, 0x46, 0x66, // FCFG_7 inv_set_accel_calibration 0x00, 0x6C, 0x02, 0x20, 0x00, // D_0_108 inv_set_accel_calibration 0x02, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_00 inv_set_compass_calibration 0x02, 0x44, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_01 0x02, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_02 0x02, 0x4C, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_10 0x02, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_11 0x02, 0x54, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_12 0x02, 0x58, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_20 0x02, 0x5C, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_21 0x02, 0xBC, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_22 0x01, 0xEC, 0x04, 0x00, 0x00, 0x40, 0x00, // D_1_236 inv_apply_endian_accel 0x03, 0x7F, 0x06, 0x0C, 0xC9, 0x2C, 0x97, 0x97, 0x97, // FCFG_2 inv_set_mpu_sensors 0x04, 0x02, 0x03, 0x0D, 0x35, 0x5D, // CFG_MOTION_BIAS inv_turn_on_bias_from_no_motion 0x04, 0x09, 0x04, 0x87, 0x2D, 0x35, 0x3D, // FCFG_5 inv_set_bias_update 0x00, 0xA3, 0x01, 0x00, // D_0_163 inv_set_dead_zone // SPECIAL 0x01 = enable interrupts 0x00, 0x00, 0x00, 0x01, // SET INT_ENABLE at i=22, SPECIAL INSTRUCTION 0x07, 0x86, 0x01, 0xFE, // CFG_6 inv_set_fifo_interupt 0x07, 0x41, 0x05, 0xF1, 0x20, 0x28, 0x30, 0x38, // CFG_8 inv_send_quaternion 0x07, 0x7E, 0x01, 0x30, // CFG_16 inv_set_footer 0x07, 0x46, 0x01, 0x9A, // CFG_GYRO_SOURCE inv_send_gyro 0x07, 0x47, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_9 inv_send_gyro -> inv_construct3_fifo 0x07, 0x6C, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_12 inv_send_accel -> inv_construct3_fifo 0x02, 0x16, 0x02, 0x00, MPU6050_DMP_FIFO_RATE_DIVISOR // D_0_22 inv_set_fifo_rate // This very last 0x01 WAS a 0x09, which drops the FIFO rate down to 20 Hz. 0x07 is 25 Hz, // 0x01 is 100Hz. Going faster than 100Hz (0x00=200Hz) tends to result in very noisy data. // DMP output frequency is calculated easily using this equation: (200Hz / (1 + value)) // It is important to make sure the host processor can keep up with reading and processing // the FIFO output at the desired rate. Handling FIFO overflow cleanly is also a good idea. }; const unsigned char dmpUpdates[MPU6050_DMP_UPDATES_SIZE] PROGMEM = { 0x01, 0xB2, 0x02, 0xFF, 0xFF, 0x01, 0x90, 0x04, 0x09, 0x23, 0xA1, 0x35, 0x01, 0x6A, 0x02, 0x06, 0x00, 0x01, 0x60, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x04, 0x40, 0x00, 0x00, 0x00, 0x01, 0x62, 0x02, 0x00, 0x00, 0x00, 0x60, 0x04, 0x00, 0x40, 0x00, 0x00 }; uint8_t MPU6050::dmpInitialize() { // reset device DEBUG_PRINTLN(F("\n\nResetting MPU6050...")); reset(); delay(30); // wait after reset // enable sleep mode and wake cycle /*Serial.println(F("Enabling sleep mode...")); setSleepEnabled(true); Serial.println(F("Enabling wake cycle...")); setWakeCycleEnabled(true);*/ // disable sleep mode DEBUG_PRINTLN(F("Disabling sleep mode...")); setSleepEnabled(false); // get MPU hardware revision DEBUG_PRINTLN(F("Selecting user bank 16...")); setMemoryBank(0x10, true, true); DEBUG_PRINTLN(F("Selecting memory byte 6...")); setMemoryStartAddress(0x06); DEBUG_PRINTLN(F("Checking hardware revision...")); DEBUG_PRINT(F("Revision @ user[16][6] = ")); DEBUG_PRINTLNF(readMemoryByte(), HEX); DEBUG_PRINTLN(F("Resetting memory bank selection to 0...")); setMemoryBank(0, false, false); // check OTP bank valid DEBUG_PRINTLN(F("Reading OTP bank valid flag...")); DEBUG_PRINT(F("OTP bank is ")); DEBUG_PRINTLN(getOTPBankValid() ? F("valid!") : F("invalid!")); // get X/Y/Z gyro offsets DEBUG_PRINTLN(F("Reading gyro offset TC values...")); int8_t xgOffsetTC = getXGyroOffsetTC(); int8_t ygOffsetTC = getYGyroOffsetTC(); int8_t zgOffsetTC = getZGyroOffsetTC(); DEBUG_PRINT(F("X gyro offset = ")); DEBUG_PRINTLN(xgOffsetTC); DEBUG_PRINT(F("Y gyro offset = ")); DEBUG_PRINTLN(ygOffsetTC); DEBUG_PRINT(F("Z gyro offset = ")); DEBUG_PRINTLN(zgOffsetTC); // setup weird slave stuff (?) DEBUG_PRINTLN(F("Setting slave 0 address to 0x7F...")); setSlaveAddress(0, 0x7F); DEBUG_PRINTLN(F("Disabling I2C Master mode...")); setI2CMasterModeEnabled(false); DEBUG_PRINTLN(F("Setting slave 0 address to 0x68 (self)...")); setSlaveAddress(0, 0x68); DEBUG_PRINTLN(F("Resetting I2C Master control...")); resetI2CMaster(); delay(20); // load DMP code into memory banks DEBUG_PRINT(F("Writing DMP code to MPU memory banks (")); DEBUG_PRINT(MPU6050_DMP_CODE_SIZE); DEBUG_PRINTLN(F(" bytes)")); if (writeProgMemoryBlock(dmpMemory, MPU6050_DMP_CODE_SIZE)) { DEBUG_PRINTLN(F("Success! DMP code written and verified.")); // write DMP configuration DEBUG_PRINT(F("Writing DMP configuration to MPU memory banks (")); DEBUG_PRINT(MPU6050_DMP_CONFIG_SIZE); DEBUG_PRINTLN(F(" bytes in config def)")); if (writeProgDMPConfigurationSet(dmpConfig, MPU6050_DMP_CONFIG_SIZE)) { DEBUG_PRINTLN(F("Success! DMP configuration written and verified.")); DEBUG_PRINTLN(F("Setting clock source to Z Gyro...")); setClockSource(MPU6050_CLOCK_PLL_ZGYRO); DEBUG_PRINTLN(F("Setting DMP and FIFO_OFLOW interrupts enabled...")); setIntEnabled(1< 2...")); while ((fifoCount = getFIFOCount()) < 3); DEBUG_PRINT(F("Current FIFO count=")); DEBUG_PRINTLN(fifoCount); DEBUG_PRINTLN(F("Reading FIFO data...")); getFIFOBytes(fifoBuffer, fifoCount); DEBUG_PRINTLN(F("Reading interrupt status...")); DEBUG_PRINT(F("Current interrupt status=")); DEBUG_PRINTLNF(getIntStatus(), HEX); DEBUG_PRINTLN(F("Reading final memory update 6/7 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); readMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Waiting for FIFO count > 2...")); while ((fifoCount = getFIFOCount()) < 3); DEBUG_PRINT(F("Current FIFO count=")); DEBUG_PRINTLN(fifoCount); DEBUG_PRINTLN(F("Reading FIFO data...")); getFIFOBytes(fifoBuffer, fifoCount); DEBUG_PRINTLN(F("Reading interrupt status...")); DEBUG_PRINT(F("Current interrupt status=")); DEBUG_PRINTLNF(getIntStatus(), HEX); DEBUG_PRINTLN(F("Writing final memory update 7/7 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("DMP is good to go! Finally.")); DEBUG_PRINTLN(F("Disabling DMP (you turn it on later)...")); setDMPEnabled(false); DEBUG_PRINTLN(F("Setting up internal 42-byte (default) DMP packet buffer...")); dmpPacketSize = 42; /*if ((dmpPacketBuffer = (uint8_t *)malloc(42)) == 0) { return 3; // TODO: proper error code for no memory }*/ DEBUG_PRINTLN(F("Resetting FIFO and clearing INT status one last time...")); resetFIFO(); getIntStatus(); } else { DEBUG_PRINTLN(F("ERROR! DMP configuration verification failed.")); return 2; // configuration block loading failed } } else { DEBUG_PRINTLN(F("ERROR! DMP code verification failed.")); return 1; // main binary block loading failed } return 0; // success } bool MPU6050::dmpPacketAvailable() { return getFIFOCount() >= dmpGetFIFOPacketSize(); } // uint8_t MPU6050::dmpSetFIFORate(uint8_t fifoRate); // uint8_t MPU6050::dmpGetFIFORate(); // uint8_t MPU6050::dmpGetSampleStepSizeMS(); // uint8_t MPU6050::dmpGetSampleFrequency(); // int32_t MPU6050::dmpDecodeTemperature(int8_t tempReg); //uint8_t MPU6050::dmpRegisterFIFORateProcess(inv_obj_func func, int16_t priority); //uint8_t MPU6050::dmpUnregisterFIFORateProcess(inv_obj_func func); //uint8_t MPU6050::dmpRunFIFORateProcesses(); // uint8_t MPU6050::dmpSendQuaternion(uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendGyro(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendLinearAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendLinearAccelInWorld(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendControlData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendSensorData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendExternalSensorData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendGravity(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendPacketNumber(uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendQuantizedAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendEIS(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t MPU6050::dmpGetAccel(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[28] << 24) | ((uint32_t)packet[29] << 16) | ((uint32_t)packet[30] << 8) | packet[31]); data[1] = (((uint32_t)packet[32] << 24) | ((uint32_t)packet[33] << 16) | ((uint32_t)packet[34] << 8) | packet[35]); data[2] = (((uint32_t)packet[36] << 24) | ((uint32_t)packet[37] << 16) | ((uint32_t)packet[38] << 8) | packet[39]); return 0; } uint8_t MPU6050::dmpGetAccel(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (packet[28] << 8) | packet[29]; data[1] = (packet[32] << 8) | packet[33]; data[2] = (packet[36] << 8) | packet[37]; return 0; } uint8_t MPU6050::dmpGetAccel(VectorInt16 *v, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; v -> x = (packet[28] << 8) | packet[29]; v -> y = (packet[32] << 8) | packet[33]; v -> z = (packet[36] << 8) | packet[37]; return 0; } uint8_t MPU6050::dmpGetQuaternion(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[0] << 24) | ((uint32_t)packet[1] << 16) | ((uint32_t)packet[2] << 8) | packet[3]); data[1] = (((uint32_t)packet[4] << 24) | ((uint32_t)packet[5] << 16) | ((uint32_t)packet[6] << 8) | packet[7]); data[2] = (((uint32_t)packet[8] << 24) | ((uint32_t)packet[9] << 16) | ((uint32_t)packet[10] << 8) | packet[11]); data[3] = (((uint32_t)packet[12] << 24) | ((uint32_t)packet[13] << 16) | ((uint32_t)packet[14] << 8) | packet[15]); return 0; } uint8_t MPU6050::dmpGetQuaternion(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = ((packet[0] << 8) | packet[1]); data[1] = ((packet[4] << 8) | packet[5]); data[2] = ((packet[8] << 8) | packet[9]); data[3] = ((packet[12] << 8) | packet[13]); return 0; } uint8_t MPU6050::dmpGetQuaternion(Quaternion *q, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) int16_t qI[4]; uint8_t status = dmpGetQuaternion(qI, packet); if (status == 0) { q -> w = (float)qI[0] / 16384.0f; q -> x = (float)qI[1] / 16384.0f; q -> y = (float)qI[2] / 16384.0f; q -> z = (float)qI[3] / 16384.0f; return 0; } return status; // int16 return value, indicates error if this line is reached } // uint8_t MPU6050::dmpGet6AxisQuaternion(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetRelativeQuaternion(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetGyro(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[16] << 24) | ((uint32_t)packet[17] << 16) | ((uint32_t)packet[18] << 8) | packet[19]); data[1] = (((uint32_t)packet[20] << 24) | ((uint32_t)packet[21] << 16) | ((uint32_t)packet[22] << 8) | packet[23]); data[2] = (((uint32_t)packet[24] << 24) | ((uint32_t)packet[25] << 16) | ((uint32_t)packet[26] << 8) | packet[27]); return 0; } uint8_t MPU6050::dmpGetGyro(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (packet[16] << 8) | packet[17]; data[1] = (packet[20] << 8) | packet[21]; data[2] = (packet[24] << 8) | packet[25]; return 0; } uint8_t MPU6050::dmpGetGyro(VectorInt16 *v, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; v -> x = (packet[16] << 8) | packet[17]; v -> y = (packet[20] << 8) | packet[21]; v -> z = (packet[24] << 8) | packet[25]; return 0; } // uint8_t MPU6050::dmpSetLinearAccelFilterCoefficient(float coef); // uint8_t MPU6050::dmpGetLinearAccel(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetLinearAccel(VectorInt16 *v, VectorInt16 *vRaw, VectorFloat *gravity) { // get rid of the gravity component (+1g = +8192 in standard DMP FIFO packet, sensitivity is 2g) v -> x = vRaw -> x - gravity -> x*8192; v -> y = vRaw -> y - gravity -> y*8192; v -> z = vRaw -> z - gravity -> z*8192; return 0; } // uint8_t MPU6050::dmpGetLinearAccelInWorld(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetLinearAccelInWorld(VectorInt16 *v, VectorInt16 *vReal, Quaternion *q) { // rotate measured 3D acceleration vector into original state // frame of reference based on orientation quaternion memcpy(v, vReal, sizeof(VectorInt16)); v -> rotate(q); return 0; } // uint8_t MPU6050::dmpGetGyroAndAccelSensor(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetGyroSensor(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetControlData(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetTemperature(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetGravity(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetGravity(int16_t *data, const uint8_t* packet) { /* +1g corresponds to +8192, sensitivity is 2g. */ int16_t qI[4]; uint8_t status = dmpGetQuaternion(qI, packet); data[0] = ((int32_t)qI[1] * qI[3] - (int32_t)qI[0] * qI[2]) / 16384; data[1] = ((int32_t)qI[0] * qI[1] + (int32_t)qI[2] * qI[3]) / 16384; data[2] = ((int32_t)qI[0] * qI[0] - (int32_t)qI[1] * qI[1] - (int32_t)qI[2] * qI[2] + (int32_t)qI[3] * qI[3]) / (2 * 16384); return status; } uint8_t MPU6050::dmpGetGravity(VectorFloat *v, Quaternion *q) { v -> x = 2 * (q -> x*q -> z - q -> w*q -> y); v -> y = 2 * (q -> w*q -> x + q -> y*q -> z); v -> z = q -> w*q -> w - q -> x*q -> x - q -> y*q -> y + q -> z*q -> z; return 0; } // uint8_t MPU6050::dmpGetUnquantizedAccel(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetQuantizedAccel(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetExternalSensorData(long *data, int size, const uint8_t* packet); // uint8_t MPU6050::dmpGetEIS(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetEuler(float *data, Quaternion *q) { data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // psi data[1] = -asin(2*q -> x*q -> z + 2*q -> w*q -> y); // theta data[2] = atan2(2*q -> y*q -> z - 2*q -> w*q -> x, 2*q -> w*q -> w + 2*q -> z*q -> z - 1); // phi return 0; } #ifdef USE_OLD_DMPGETYAWPITCHROLL uint8_t MPU6050::dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity) { // yaw: (about Z axis) data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // pitch: (nose up/down, about Y axis) data[1] = atan(gravity -> x / sqrt(gravity -> y*gravity -> y + gravity -> z*gravity -> z)); // roll: (tilt left/right, about X axis) data[2] = atan(gravity -> y / sqrt(gravity -> x*gravity -> x + gravity -> z*gravity -> z)); return 0; } #else uint8_t MPU6050::dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity) { // yaw: (about Z axis) data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // pitch: (nose up/down, about Y axis) data[1] = atan2(gravity -> x , sqrt(gravity -> y*gravity -> y + gravity -> z*gravity -> z)); // roll: (tilt left/right, about X axis) data[2] = atan2(gravity -> y , gravity -> z); if (gravity -> z < 0) { if(data[1] > 0) { data[1] = PI - data[1]; } else { data[1] = -PI - data[1]; } } return 0; } #endif // uint8_t MPU6050::dmpGetAccelFloat(float *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetQuaternionFloat(float *data, const uint8_t* packet); uint8_t MPU6050::dmpProcessFIFOPacket(const unsigned char *dmpData) { /*for (uint8_t k = 0; k < dmpPacketSize; k++) { if (dmpData[k] < 0x10) Serial.print("0"); Serial.print(dmpData[k], HEX); Serial.print(" "); } Serial.print("\n");*/ //Serial.println((uint16_t)dmpPacketBuffer); return 0; } uint8_t MPU6050::dmpReadAndProcessFIFOPacket(uint8_t numPackets, uint8_t *processed) { uint8_t status; uint8_t buf[dmpPacketSize]; for (uint8_t i = 0; i < numPackets; i++) { // read packet from FIFO getFIFOBytes(buf, dmpPacketSize); // process packet if ((status = dmpProcessFIFOPacket(buf)) > 0) return status; // increment external process count variable, if supplied if (processed != 0) (*processed)++; } return 0; } // uint8_t MPU6050::dmpSetFIFOProcessedCallback(void (*func) (void)); // uint8_t MPU6050::dmpInitFIFOParam(); // uint8_t MPU6050::dmpCloseFIFO(); // uint8_t MPU6050::dmpSetGyroDataSource(uint_fast8_t source); // uint8_t MPU6050::dmpDecodeQuantizedAccel(); // uint32_t MPU6050::dmpGetGyroSumOfSquare(); // uint32_t MPU6050::dmpGetAccelSumOfSquare(); // void MPU6050::dmpOverrideQuaternion(long *q); uint16_t MPU6050::dmpGetFIFOPacketSize() { return dmpPacketSize; } #endif /* _MPU6050_6AXIS_MOTIONAPPS20_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/MPU6050_9Axis_MotionApps41.h ================================================ // I2Cdev library collection - MPU6050 I2C device class, 9-axis MotionApps 4.1 implementation // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) // 6/18/2012 by Jeff Rowberg // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // ... - ongoing debug release /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================== */ #ifndef _MPU6050_9AXIS_MOTIONAPPS41_H_ #define _MPU6050_9AXIS_MOTIONAPPS41_H_ #include "i2c_dev.hpp" #include "helper_3dmath.h" // MotionApps 4.1 DMP implementation, built using the MPU-9150 "MotionFit" board #define MPU6050_INCLUDE_DMP_MOTIONAPPS41 #include "mpu6050.hpp" // Tom Carpenter's conditional PROGMEM code // http://forum.arduino.cc/index.php?topic=129407.0 #ifdef __AVR__ #include #else // Teensy 3.0 library conditional PROGMEM code from Paul Stoffregen #ifndef __PGMSPACE_H_ #define __PGMSPACE_H_ 1 #include #define PROGMEM #define PGM_P const char * #define PSTR(str) (str) #define F(x) x typedef void prog_void; typedef char prog_char; //typedef unsigned char prog_uchar; typedef int8_t prog_int8_t; typedef uint8_t prog_uint8_t; typedef int16_t prog_int16_t; typedef uint16_t prog_uint16_t; typedef int32_t prog_int32_t; typedef uint32_t prog_uint32_t; #define strcpy_P(dest, src) strcpy((dest), (src)) #define strcat_P(dest, src) strcat((dest), (src)) #define strcmp_P(a, b) strcmp((a), (b)) #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) #define pgm_read_word(addr) (*(const unsigned short *)(addr)) #define pgm_read_dword(addr) (*(const unsigned long *)(addr)) #define pgm_read_float(addr) (*(const float *)(addr)) #define pgm_read_byte_near(addr) pgm_read_byte(addr) #define pgm_read_word_near(addr) pgm_read_word(addr) #define pgm_read_dword_near(addr) pgm_read_dword(addr) #define pgm_read_float_near(addr) pgm_read_float(addr) #define pgm_read_byte_far(addr) pgm_read_byte(addr) #define pgm_read_word_far(addr) pgm_read_word(addr) #define pgm_read_dword_far(addr) pgm_read_dword(addr) #define pgm_read_float_far(addr) pgm_read_float(addr) #endif #endif // NOTE! Enabling DEBUG adds about 3.3kB to the flash program size. // Debug output is now working even on ATMega328P MCUs (e.g. Arduino Uno) // after moving string constants to flash memory storage using the F() // compiler macro (Arduino IDE 1.0+ required). //#define DEBUG #ifdef DEBUG #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINTF(x, y) Serial.print(x, y) #define DEBUG_PRINTLN(x) Serial.println(x) #define DEBUG_PRINTLNF(x, y) Serial.println(x, y) #else #define DEBUG_PRINT(x) #define DEBUG_PRINTF(x, y) #define DEBUG_PRINTLN(x) #define DEBUG_PRINTLNF(x, y) #endif #define MPU6050_DMP_CODE_SIZE 1962 // dmpMemory[] #define MPU6050_DMP_CONFIG_SIZE 232 // dmpConfig[] #define MPU6050_DMP_UPDATES_SIZE 140 // dmpUpdates[] /* ================================================================================================ * | Default MotionApps v4.1 48-byte FIFO packet structure: | | | | [QUAT W][ ][QUAT X][ ][QUAT Y][ ][QUAT Z][ ][GYRO X][ ][GYRO Y][ ] | | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | | | | [GYRO Z][ ][MAG X ][MAG Y ][MAG Z ][ACC X ][ ][ACC Y ][ ][ACC Z ][ ][ ] | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | * ================================================================================================ */ // this block of memory gets written to the MPU on start-up, and it seems // to be volatile memory, so it has to be done each time (it only takes ~1 // second though) const unsigned char dmpMemory[MPU6050_DMP_CODE_SIZE] PROGMEM = { // bank 0, 256 bytes 0xFB, 0x00, 0x00, 0x3E, 0x00, 0x0B, 0x00, 0x36, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x65, 0x00, 0x54, 0xFF, 0xEF, 0x00, 0x00, 0xFA, 0x80, 0x00, 0x0B, 0x12, 0x82, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0xFF, 0xFF, 0x45, 0x81, 0xFF, 0xFF, 0xFA, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xE8, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x7F, 0xFF, 0xFF, 0xFE, 0x80, 0x01, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x03, 0x30, 0x40, 0x00, 0x00, 0x00, 0x02, 0xCA, 0xE3, 0x09, 0x3E, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x41, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x2A, 0x00, 0x00, 0x16, 0x55, 0x00, 0x00, 0x21, 0x82, 0xFD, 0x87, 0x26, 0x50, 0xFD, 0x80, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x05, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6F, 0x00, 0x02, 0x65, 0x32, 0x00, 0x00, 0x5E, 0xC0, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFB, 0x8C, 0x6F, 0x5D, 0xFD, 0x5D, 0x08, 0xD9, 0x00, 0x7C, 0x73, 0x3B, 0x00, 0x6C, 0x12, 0xCC, 0x32, 0x00, 0x13, 0x9D, 0x32, 0x00, 0xD0, 0xD6, 0x32, 0x00, 0x08, 0x00, 0x40, 0x00, 0x01, 0xF4, 0xFF, 0xE6, 0x80, 0x79, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD0, 0xD6, 0x00, 0x00, 0x27, 0x10, // bank 1, 256 bytes 0xFB, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFA, 0x36, 0xFF, 0xBC, 0x30, 0x8E, 0x00, 0x05, 0xFB, 0xF0, 0xFF, 0xD9, 0x5B, 0xC8, 0xFF, 0xD0, 0x9A, 0xBE, 0x00, 0x00, 0x10, 0xA9, 0xFF, 0xF4, 0x1E, 0xB2, 0x00, 0xCE, 0xBB, 0xF7, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x02, 0x02, 0x00, 0x00, 0x0C, 0xFF, 0xC2, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0xCF, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3F, 0x68, 0xB6, 0x79, 0x35, 0x28, 0xBC, 0xC6, 0x7E, 0xD1, 0x6C, 0x80, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB2, 0x6A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xF0, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x4D, 0x00, 0x2F, 0x70, 0x6D, 0x00, 0x00, 0x05, 0xAE, 0x00, 0x0C, 0x02, 0xD0, // bank 2, 256 bytes 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x54, 0xFF, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0xFF, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x78, 0xA2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // bank 3, 256 bytes 0xD8, 0xDC, 0xF4, 0xD8, 0xB9, 0xAB, 0xF3, 0xF8, 0xFA, 0xF1, 0xBA, 0xA2, 0xDE, 0xB2, 0xB8, 0xB4, 0xA8, 0x81, 0x98, 0xF7, 0x4A, 0x90, 0x7F, 0x91, 0x6A, 0xF3, 0xF9, 0xDB, 0xA8, 0xF9, 0xB0, 0xBA, 0xA0, 0x80, 0xF2, 0xCE, 0x81, 0xF3, 0xC2, 0xF1, 0xC1, 0xF2, 0xC3, 0xF3, 0xCC, 0xA2, 0xB2, 0x80, 0xF1, 0xC6, 0xD8, 0x80, 0xBA, 0xA7, 0xDF, 0xDF, 0xDF, 0xF2, 0xA7, 0xC3, 0xCB, 0xC5, 0xB6, 0xF0, 0x87, 0xA2, 0x94, 0x24, 0x48, 0x70, 0x3C, 0x95, 0x40, 0x68, 0x34, 0x58, 0x9B, 0x78, 0xA2, 0xF1, 0x83, 0x92, 0x2D, 0x55, 0x7D, 0xD8, 0xB1, 0xB4, 0xB8, 0xA1, 0xD0, 0x91, 0x80, 0xF2, 0x70, 0xF3, 0x70, 0xF2, 0x7C, 0x80, 0xA8, 0xF1, 0x01, 0xB0, 0x98, 0x87, 0xD9, 0x43, 0xD8, 0x86, 0xC9, 0x88, 0xBA, 0xA1, 0xF2, 0x0E, 0xB8, 0x97, 0x80, 0xF1, 0xA9, 0xDF, 0xDF, 0xDF, 0xAA, 0xDF, 0xDF, 0xDF, 0xF2, 0xAA, 0xC5, 0xCD, 0xC7, 0xA9, 0x0C, 0xC9, 0x2C, 0x97, 0x97, 0x97, 0x97, 0xF1, 0xA9, 0x89, 0x26, 0x46, 0x66, 0xB0, 0xB4, 0xBA, 0x80, 0xAC, 0xDE, 0xF2, 0xCA, 0xF1, 0xB2, 0x8C, 0x02, 0xA9, 0xB6, 0x98, 0x00, 0x89, 0x0E, 0x16, 0x1E, 0xB8, 0xA9, 0xB4, 0x99, 0x2C, 0x54, 0x7C, 0xB0, 0x8A, 0xA8, 0x96, 0x36, 0x56, 0x76, 0xF1, 0xB9, 0xAF, 0xB4, 0xB0, 0x83, 0xC0, 0xB8, 0xA8, 0x97, 0x11, 0xB1, 0x8F, 0x98, 0xB9, 0xAF, 0xF0, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xF1, 0xA3, 0x29, 0x55, 0x7D, 0xAF, 0x83, 0xB5, 0x93, 0xF0, 0x00, 0x28, 0x50, 0xF5, 0xBA, 0xAD, 0x8F, 0x9F, 0x28, 0x54, 0x7C, 0xB9, 0xF1, 0xA3, 0x86, 0x9F, 0x61, 0xA6, 0xDA, 0xDE, 0xDF, 0xDB, 0xB2, 0xB6, 0x8E, 0x9D, 0xAE, 0xF5, 0x60, 0x68, 0x70, 0xB1, 0xB5, 0xF1, 0xDA, 0xA6, 0xDF, 0xD9, 0xA6, 0xFA, 0xA3, 0x86, // bank 4, 256 bytes 0x96, 0xDB, 0x31, 0xA6, 0xD9, 0xF8, 0xDF, 0xBA, 0xA6, 0x8F, 0xC2, 0xC5, 0xC7, 0xB2, 0x8C, 0xC1, 0xB8, 0xA2, 0xDF, 0xDF, 0xDF, 0xA3, 0xDF, 0xDF, 0xDF, 0xD8, 0xD8, 0xF1, 0xB8, 0xA8, 0xB2, 0x86, 0xB4, 0x98, 0x0D, 0x35, 0x5D, 0xB8, 0xAA, 0x98, 0xB0, 0x87, 0x2D, 0x35, 0x3D, 0xB2, 0xB6, 0xBA, 0xAF, 0x8C, 0x96, 0x19, 0x8F, 0x9F, 0xA7, 0x0E, 0x16, 0x1E, 0xB4, 0x9A, 0xB8, 0xAA, 0x87, 0x2C, 0x54, 0x7C, 0xB9, 0xA3, 0xDE, 0xDF, 0xDF, 0xA3, 0xB1, 0x80, 0xF2, 0xC4, 0xCD, 0xC9, 0xF1, 0xB8, 0xA9, 0xB4, 0x99, 0x83, 0x0D, 0x35, 0x5D, 0x89, 0xB9, 0xA3, 0x2D, 0x55, 0x7D, 0xB5, 0x93, 0xA3, 0x0E, 0x16, 0x1E, 0xA9, 0x2C, 0x54, 0x7C, 0xB8, 0xB4, 0xB0, 0xF1, 0x97, 0x83, 0xA8, 0x11, 0x84, 0xA5, 0x09, 0x98, 0xA3, 0x83, 0xF0, 0xDA, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xD8, 0xF1, 0xA5, 0x29, 0x55, 0x7D, 0xA5, 0x85, 0x95, 0x02, 0x1A, 0x2E, 0x3A, 0x56, 0x5A, 0x40, 0x48, 0xF9, 0xF3, 0xA3, 0xD9, 0xF8, 0xF0, 0x98, 0x83, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0x97, 0x82, 0xA8, 0xF1, 0x11, 0xF0, 0x98, 0xA2, 0x24, 0x08, 0x44, 0x10, 0x64, 0x18, 0xDA, 0xF3, 0xDE, 0xD8, 0x83, 0xA5, 0x94, 0x01, 0xD9, 0xA3, 0x02, 0xF1, 0xA2, 0xC3, 0xC5, 0xC7, 0xD8, 0xF1, 0x84, 0x92, 0xA2, 0x4D, 0xDA, 0x2A, 0xD8, 0x48, 0x69, 0xD9, 0x2A, 0xD8, 0x68, 0x55, 0xDA, 0x32, 0xD8, 0x50, 0x71, 0xD9, 0x32, 0xD8, 0x70, 0x5D, 0xDA, 0x3A, 0xD8, 0x58, 0x79, 0xD9, 0x3A, 0xD8, 0x78, 0x93, 0xA3, 0x4D, 0xDA, 0x2A, 0xD8, 0x48, 0x69, 0xD9, 0x2A, 0xD8, 0x68, 0x55, 0xDA, 0x32, 0xD8, 0x50, 0x71, 0xD9, 0x32, 0xD8, 0x70, 0x5D, 0xDA, 0x3A, 0xD8, 0x58, 0x79, 0xD9, 0x3A, 0xD8, 0x78, 0xA8, 0x8A, 0x9A, // bank 5, 256 bytes 0xF0, 0x28, 0x50, 0x78, 0x9E, 0xF3, 0x88, 0x18, 0xF1, 0x9F, 0x1D, 0x98, 0xA8, 0xD9, 0x08, 0xD8, 0xC8, 0x9F, 0x12, 0x9E, 0xF3, 0x15, 0xA8, 0xDA, 0x12, 0x10, 0xD8, 0xF1, 0xAF, 0xC8, 0x97, 0x87, 0x34, 0xB5, 0xB9, 0x94, 0xA4, 0x21, 0xF3, 0xD9, 0x22, 0xD8, 0xF2, 0x2D, 0xF3, 0xD9, 0x2A, 0xD8, 0xF2, 0x35, 0xF3, 0xD9, 0x32, 0xD8, 0x81, 0xA4, 0x60, 0x60, 0x61, 0xD9, 0x61, 0xD8, 0x6C, 0x68, 0x69, 0xD9, 0x69, 0xD8, 0x74, 0x70, 0x71, 0xD9, 0x71, 0xD8, 0xB1, 0xA3, 0x84, 0x19, 0x3D, 0x5D, 0xA3, 0x83, 0x1A, 0x3E, 0x5E, 0x93, 0x10, 0x30, 0x81, 0x10, 0x11, 0xB8, 0xB0, 0xAF, 0x8F, 0x94, 0xF2, 0xDA, 0x3E, 0xD8, 0xB4, 0x9A, 0xA8, 0x87, 0x29, 0xDA, 0xF8, 0xD8, 0x87, 0x9A, 0x35, 0xDA, 0xF8, 0xD8, 0x87, 0x9A, 0x3D, 0xDA, 0xF8, 0xD8, 0xB1, 0xB9, 0xA4, 0x98, 0x85, 0x02, 0x2E, 0x56, 0xA5, 0x81, 0x00, 0x0C, 0x14, 0xA3, 0x97, 0xB0, 0x8A, 0xF1, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0xB1, 0x84, 0x0D, 0xDA, 0x0E, 0xD8, 0xA3, 0x29, 0x83, 0xDA, 0x2C, 0x0E, 0xD8, 0xA3, 0x84, 0x49, 0x83, 0xDA, 0x2C, 0x4C, 0x0E, 0xD8, 0xB8, 0xB0, 0x97, 0x86, 0xA8, 0x31, 0x9B, 0x06, 0x99, 0x07, 0xAB, 0x97, 0x28, 0x88, 0x9B, 0xF0, 0x0C, 0x20, 0x14, 0x40, 0xB9, 0xA3, 0x8A, 0xC3, 0xC5, 0xC7, 0x9A, 0xA3, 0x28, 0x50, 0x78, 0xF1, 0xB5, 0x93, 0x01, 0xD9, 0xDF, 0xDF, 0xDF, 0xD8, 0xB8, 0xB4, 0xA8, 0x8C, 0x9C, 0xF0, 0x04, 0x28, 0x51, 0x79, 0x1D, 0x30, 0x14, 0x38, 0xB2, 0x82, 0xAB, 0xD0, 0x98, 0x2C, 0x50, 0x50, 0x78, 0x78, 0x9B, 0xF1, 0x1A, 0xB0, 0xF0, 0xB1, 0x83, 0x9C, 0xA8, 0x29, 0x51, 0x79, 0xB0, 0x8B, 0x29, 0x51, 0x79, 0xB1, 0x83, 0x24, // bank 6, 256 bytes 0x70, 0x59, 0xB0, 0x8B, 0x20, 0x58, 0x71, 0xB1, 0x83, 0x44, 0x69, 0x38, 0xB0, 0x8B, 0x39, 0x40, 0x68, 0xB1, 0x83, 0x64, 0x48, 0x31, 0xB0, 0x8B, 0x30, 0x49, 0x60, 0xA5, 0x88, 0x20, 0x09, 0x71, 0x58, 0x44, 0x68, 0x11, 0x39, 0x64, 0x49, 0x30, 0x19, 0xF1, 0xAC, 0x00, 0x2C, 0x54, 0x7C, 0xF0, 0x8C, 0xA8, 0x04, 0x28, 0x50, 0x78, 0xF1, 0x88, 0x97, 0x26, 0xA8, 0x59, 0x98, 0xAC, 0x8C, 0x02, 0x26, 0x46, 0x66, 0xF0, 0x89, 0x9C, 0xA8, 0x29, 0x51, 0x79, 0x24, 0x70, 0x59, 0x44, 0x69, 0x38, 0x64, 0x48, 0x31, 0xA9, 0x88, 0x09, 0x20, 0x59, 0x70, 0xAB, 0x11, 0x38, 0x40, 0x69, 0xA8, 0x19, 0x31, 0x48, 0x60, 0x8C, 0xA8, 0x3C, 0x41, 0x5C, 0x20, 0x7C, 0x00, 0xF1, 0x87, 0x98, 0x19, 0x86, 0xA8, 0x6E, 0x76, 0x7E, 0xA9, 0x99, 0x88, 0x2D, 0x55, 0x7D, 0x9E, 0xB9, 0xA3, 0x8A, 0x22, 0x8A, 0x6E, 0x8A, 0x56, 0x8A, 0x5E, 0x9F, 0xB1, 0x83, 0x06, 0x26, 0x46, 0x66, 0x0E, 0x2E, 0x4E, 0x6E, 0x9D, 0xB8, 0xAD, 0x00, 0x2C, 0x54, 0x7C, 0xF2, 0xB1, 0x8C, 0xB4, 0x99, 0xB9, 0xA3, 0x2D, 0x55, 0x7D, 0x81, 0x91, 0xAC, 0x38, 0xAD, 0x3A, 0xB5, 0x83, 0x91, 0xAC, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0x8C, 0x9D, 0xAE, 0x29, 0xD9, 0x04, 0xAE, 0xD8, 0x51, 0xD9, 0x04, 0xAE, 0xD8, 0x79, 0xD9, 0x04, 0xD8, 0x81, 0xF3, 0x9D, 0xAD, 0x00, 0x8D, 0xAE, 0x19, 0x81, 0xAD, 0xD9, 0x01, 0xD8, 0xF2, 0xAE, 0xDA, 0x26, 0xD8, 0x8E, 0x91, 0x29, 0x83, 0xA7, 0xD9, 0xAD, 0xAD, 0xAD, 0xAD, 0xF3, 0x2A, 0xD8, 0xD8, 0xF1, 0xB0, 0xAC, 0x89, 0x91, 0x3E, 0x5E, 0x76, 0xF3, 0xAC, 0x2E, 0x2E, 0xF1, 0xB1, 0x8C, 0x5A, 0x9C, 0xAC, 0x2C, 0x28, 0x28, 0x28, 0x9C, 0xAC, // bank 7, 170 bytes (remainder) 0x30, 0x18, 0xA8, 0x98, 0x81, 0x28, 0x34, 0x3C, 0x97, 0x24, 0xA7, 0x28, 0x34, 0x3C, 0x9C, 0x24, 0xF2, 0xB0, 0x89, 0xAC, 0x91, 0x2C, 0x4C, 0x6C, 0x8A, 0x9B, 0x2D, 0xD9, 0xD8, 0xD8, 0x51, 0xD9, 0xD8, 0xD8, 0x79, 0xD9, 0xD8, 0xD8, 0xF1, 0x9E, 0x88, 0xA3, 0x31, 0xDA, 0xD8, 0xD8, 0x91, 0x2D, 0xD9, 0x28, 0xD8, 0x4D, 0xD9, 0x48, 0xD8, 0x6D, 0xD9, 0x68, 0xD8, 0xB1, 0x83, 0x93, 0x35, 0x3D, 0x80, 0x25, 0xDA, 0xD8, 0xD8, 0x85, 0x69, 0xDA, 0xD8, 0xD8, 0xB4, 0x93, 0x81, 0xA3, 0x28, 0x34, 0x3C, 0xF3, 0xAB, 0x8B, 0xA3, 0x91, 0xB6, 0x09, 0xB4, 0xD9, 0xAB, 0xDE, 0xB0, 0x87, 0x9C, 0xB9, 0xA3, 0xDD, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0x95, 0xF1, 0xA3, 0xA3, 0xA3, 0x9D, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0xF2, 0xA3, 0xB4, 0x90, 0x80, 0xF2, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xB2, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xA3, 0xB0, 0x87, 0xB5, 0x99, 0xF1, 0xA3, 0xA3, 0xA3, 0x98, 0xF1, 0xA3, 0xA3, 0xA3, 0xA3, 0x97, 0xA3, 0xA3, 0xA3, 0xA3, 0xF3, 0x9B, 0xA3, 0xA3, 0xDC, 0xB9, 0xA7, 0xF1, 0x26, 0x26, 0x26, 0xD8, 0xD8, 0xFF }; #ifndef MPU6050_DMP_FIFO_RATE_DIVISOR #define MPU6050_DMP_FIFO_RATE_DIVISOR 0x03 #endif const unsigned char dmpConfig[MPU6050_DMP_CONFIG_SIZE] PROGMEM = { // BANK OFFSET LENGTH [DATA] 0x02, 0xEC, 0x04, 0x00, 0x47, 0x7D, 0x1A, // ? 0x03, 0x82, 0x03, 0x4C, 0xCD, 0x6C, // FCFG_1 inv_set_gyro_calibration 0x03, 0xB2, 0x03, 0x36, 0x56, 0x76, // FCFG_3 inv_set_gyro_calibration 0x00, 0x68, 0x04, 0x02, 0xCA, 0xE3, 0x09, // D_0_104 inv_set_gyro_calibration 0x01, 0x0C, 0x04, 0x00, 0x00, 0x00, 0x00, // D_1_152 inv_set_accel_calibration 0x03, 0x86, 0x03, 0x0C, 0xC9, 0x2C, // FCFG_2 inv_set_accel_calibration 0x03, 0x90, 0x03, 0x26, 0x46, 0x66, // (continued)...FCFG_2 inv_set_accel_calibration 0x00, 0x6C, 0x02, 0x40, 0x00, // D_0_108 inv_set_accel_calibration 0x02, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_00 inv_set_compass_calibration 0x02, 0x44, 0x04, 0x40, 0x00, 0x00, 0x00, // CPASS_MTX_01 0x02, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_02 0x02, 0x4C, 0x04, 0x40, 0x00, 0x00, 0x00, // CPASS_MTX_10 0x02, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_11 0x02, 0x54, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_12 0x02, 0x58, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_20 0x02, 0x5C, 0x04, 0x00, 0x00, 0x00, 0x00, // CPASS_MTX_21 0x02, 0xBC, 0x04, 0xC0, 0x00, 0x00, 0x00, // CPASS_MTX_22 0x01, 0xEC, 0x04, 0x00, 0x00, 0x40, 0x00, // D_1_236 inv_apply_endian_accel 0x03, 0x86, 0x06, 0x0C, 0xC9, 0x2C, 0x97, 0x97, 0x97, // FCFG_2 inv_set_mpu_sensors 0x04, 0x22, 0x03, 0x0D, 0x35, 0x5D, // CFG_MOTION_BIAS inv_turn_on_bias_from_no_motion 0x00, 0xA3, 0x01, 0x00, // ? 0x04, 0x29, 0x04, 0x87, 0x2D, 0x35, 0x3D, // FCFG_5 inv_set_bias_update 0x07, 0x62, 0x05, 0xF1, 0x20, 0x28, 0x30, 0x38, // CFG_8 inv_send_quaternion 0x07, 0x9F, 0x01, 0x30, // CFG_16 inv_set_footer 0x07, 0x67, 0x01, 0x9A, // CFG_GYRO_SOURCE inv_send_gyro 0x07, 0x68, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_9 inv_send_gyro -> inv_construct3_fifo 0x07, 0x62, 0x05, 0xF1, 0x20, 0x28, 0x30, 0x38, // ? 0x02, 0x0C, 0x04, 0x00, 0x00, 0x00, 0x00, // ? 0x07, 0x83, 0x06, 0xC2, 0xCA, 0xC4, 0xA3, 0xA3, 0xA3, // ? // SPECIAL 0x01 = enable interrupts 0x00, 0x00, 0x00, 0x01, // SET INT_ENABLE, SPECIAL INSTRUCTION 0x07, 0xA7, 0x01, 0xFE, // ? 0x07, 0x62, 0x05, 0xF1, 0x20, 0x28, 0x30, 0x38, // ? 0x07, 0x67, 0x01, 0x9A, // ? 0x07, 0x68, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_12 inv_send_accel -> inv_construct3_fifo 0x07, 0x8D, 0x04, 0xF1, 0x28, 0x30, 0x38, // ??? CFG_12 inv_send_mag -> inv_construct3_fifo 0x02, 0x16, 0x02, 0x00, MPU6050_DMP_FIFO_RATE_DIVISOR // D_0_22 inv_set_fifo_rate // This very last 0x03 WAS a 0x09, which drops the FIFO rate down to 20 Hz. 0x07 is 25 Hz, // 0x01 is 100Hz. Going faster than 100Hz (0x00=200Hz) tends to result in very noisy data. // DMP output frequency is calculated easily using this equation: (200Hz / (1 + value)) // It is important to make sure the host processor can keep up with reading and processing // the FIFO output at the desired rate. Handling FIFO overflow cleanly is also a good idea. }; const unsigned char dmpUpdates[MPU6050_DMP_UPDATES_SIZE] PROGMEM = { 0x01, 0xB2, 0x02, 0xFF, 0xF5, 0x01, 0x90, 0x04, 0x0A, 0x0D, 0x97, 0xC0, 0x00, 0xA3, 0x01, 0x00, 0x04, 0x29, 0x04, 0x87, 0x2D, 0x35, 0x3D, 0x01, 0x6A, 0x02, 0x06, 0x00, 0x01, 0x60, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x04, 0x40, 0x00, 0x00, 0x00, 0x02, 0x60, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x02, 0x01, 0x20, 0x01, 0x0A, 0x02, 0x00, 0x4E, 0x01, 0x02, 0x02, 0xFE, 0xB3, 0x02, 0x6C, 0x04, 0x00, 0x00, 0x00, 0x00, // READ 0x02, 0x6C, 0x04, 0xFA, 0xFE, 0x00, 0x00, 0x02, 0x60, 0x0C, 0xFF, 0xFF, 0xCB, 0x4D, 0x00, 0x01, 0x08, 0xC1, 0xFF, 0xFF, 0xBC, 0x2C, 0x02, 0xF4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0xF8, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0xFC, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x60, 0x04, 0x00, 0x40, 0x00, 0x00 }; uint8_t MPU6050::dmpInitialize() { // reset device DEBUG_PRINTLN(F("\n\nResetting MPU6050...")); reset(); delay(30); // wait after reset // disable sleep mode DEBUG_PRINTLN(F("Disabling sleep mode...")); setSleepEnabled(false); // get MPU product ID DEBUG_PRINTLN(F("Getting product ID...")); //uint8_t productID = 0; //getProductID(); DEBUG_PRINT(F("Product ID = ")); DEBUG_PRINT(productID); // get MPU hardware revision DEBUG_PRINTLN(F("Selecting user bank 16...")); setMemoryBank(0x10, true, true); DEBUG_PRINTLN(F("Selecting memory byte 6...")); setMemoryStartAddress(0x06); DEBUG_PRINTLN(F("Checking hardware revision...")); uint8_t hwRevision = readMemoryByte(); DEBUG_PRINT(F("Revision @ user[16][6] = ")); DEBUG_PRINTLNF(hwRevision, HEX); DEBUG_PRINTLN(F("Resetting memory bank selection to 0...")); setMemoryBank(0, false, false); // check OTP bank valid DEBUG_PRINTLN(F("Reading OTP bank valid flag...")); uint8_t otpValid = getOTPBankValid(); DEBUG_PRINT(F("OTP bank is ")); DEBUG_PRINTLN(otpValid ? F("valid!") : F("invalid!")); // get X/Y/Z gyro offsets DEBUG_PRINTLN(F("Reading gyro offset values...")); int8_t xgOffset = getXGyroOffset(); int8_t ygOffset = getYGyroOffset(); int8_t zgOffset = getZGyroOffset(); DEBUG_PRINT(F("X gyro offset = ")); DEBUG_PRINTLN(xgOffset); DEBUG_PRINT(F("Y gyro offset = ")); DEBUG_PRINTLN(ygOffset); DEBUG_PRINT(F("Z gyro offset = ")); DEBUG_PRINTLN(zgOffset); I2Cdev::readByte(devAddr, MPU6050_RA_USER_CTRL, buffer); // ? DEBUG_PRINTLN(F("Enabling interrupt latch, clear on any read, AUX bypass enabled")); I2Cdev::writeByte(devAddr, MPU6050_RA_INT_PIN_CFG, 0x32); // enable MPU AUX I2C bypass mode //DEBUG_PRINTLN(F("Enabling AUX I2C bypass mode...")); //setI2CBypassEnabled(true); DEBUG_PRINTLN(F("Setting magnetometer mode to power-down...")); //mag -> setMode(0); I2Cdev::writeByte(0x0E, 0x0A, 0x00); DEBUG_PRINTLN(F("Setting magnetometer mode to fuse access...")); //mag -> setMode(0x0F); I2Cdev::writeByte(0x0E, 0x0A, 0x0F); DEBUG_PRINTLN(F("Reading mag magnetometer factory calibration...")); int8_t asax, asay, asaz; //mag -> getAdjustment(&asax, &asay, &asaz); I2Cdev::readBytes(0x0E, 0x10, 3, buffer); asax = (int8_t)buffer[0]; asay = (int8_t)buffer[1]; asaz = (int8_t)buffer[2]; DEBUG_PRINT(F("Adjustment X/Y/Z = ")); DEBUG_PRINT(asax); DEBUG_PRINT(F(" / ")); DEBUG_PRINT(asay); DEBUG_PRINT(F(" / ")); DEBUG_PRINTLN(asaz); DEBUG_PRINTLN(F("Setting magnetometer mode to power-down...")); //mag -> setMode(0); I2Cdev::writeByte(0x0E, 0x0A, 0x00); // load DMP code into memory banks DEBUG_PRINT(F("Writing DMP code to MPU memory banks (")); DEBUG_PRINT(MPU6050_DMP_CODE_SIZE); DEBUG_PRINTLN(F(" bytes)")); if (writeProgMemoryBlock(dmpMemory, MPU6050_DMP_CODE_SIZE)) { DEBUG_PRINTLN(F("Success! DMP code written and verified.")); DEBUG_PRINTLN(F("Configuring DMP and related settings...")); // write DMP configuration DEBUG_PRINT(F("Writing DMP configuration to MPU memory banks (")); DEBUG_PRINT(MPU6050_DMP_CONFIG_SIZE); DEBUG_PRINTLN(F(" bytes in config def)")); if (writeProgDMPConfigurationSet(dmpConfig, MPU6050_DMP_CONFIG_SIZE)) { DEBUG_PRINTLN(F("Success! DMP configuration written and verified.")); DEBUG_PRINTLN(F("Setting DMP and FIFO_OFLOW interrupts enabled...")); setIntEnabled(1< setMode(1); I2Cdev::writeByte(0x0E, 0x0A, 0x01); // setup AK8975 (0x0E) as Slave 0 in read mode DEBUG_PRINTLN(F("Setting up AK8975 read slave 0...")); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV0_ADDR, 0x8E); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV0_REG, 0x01); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV0_CTRL, 0xDA); // setup AK8975 (0x0E) as Slave 2 in write mode DEBUG_PRINTLN(F("Setting up AK8975 write slave 2...")); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV2_ADDR, 0x0E); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV2_REG, 0x0A); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV2_CTRL, 0x81); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV2_DO, 0x01); // setup I2C timing/delay control DEBUG_PRINTLN(F("Setting up slave access delay...")); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_SLV4_CTRL, 0x18); I2Cdev::writeByte(0x68, MPU6050_RA_I2C_MST_DELAY_CTRL, 0x05); // enable interrupts DEBUG_PRINTLN(F("Enabling default interrupt behavior/no bypass...")); I2Cdev::writeByte(0x68, MPU6050_RA_INT_PIN_CFG, 0x00); // enable I2C master mode and reset DMP/FIFO DEBUG_PRINTLN(F("Enabling I2C master mode...")); I2Cdev::writeByte(0x68, MPU6050_RA_USER_CTRL, 0x20); DEBUG_PRINTLN(F("Resetting FIFO...")); I2Cdev::writeByte(0x68, MPU6050_RA_USER_CTRL, 0x24); DEBUG_PRINTLN(F("Rewriting I2C master mode enabled because...I don't know")); I2Cdev::writeByte(0x68, MPU6050_RA_USER_CTRL, 0x20); DEBUG_PRINTLN(F("Enabling and resetting DMP/FIFO...")); I2Cdev::writeByte(0x68, MPU6050_RA_USER_CTRL, 0xE8); DEBUG_PRINTLN(F("Writing final memory update 5/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 6/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 7/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 8/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 9/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 10/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 11/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Reading final memory update 12/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); readMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); #ifdef DEBUG DEBUG_PRINT(F("Read bytes: ")); for (j = 0; j < 4; j++) { DEBUG_PRINTF(dmpUpdate[3 + j], HEX); DEBUG_PRINT(" "); } DEBUG_PRINTLN(""); #endif DEBUG_PRINTLN(F("Writing final memory update 13/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 14/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 15/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 16/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Writing final memory update 17/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Waiting for FIRO count >= 46...")); while ((fifoCount = getFIFOCount()) < 46); DEBUG_PRINTLN(F("Reading FIFO...")); getFIFOBytes(fifoBuffer, min(fifoCount, 128)); // safeguard only 128 bytes DEBUG_PRINTLN(F("Reading interrupt status...")); getIntStatus(); DEBUG_PRINTLN(F("Writing final memory update 18/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Waiting for FIRO count >= 48...")); while ((fifoCount = getFIFOCount()) < 48); DEBUG_PRINTLN(F("Reading FIFO...")); getFIFOBytes(fifoBuffer, min(fifoCount, 128)); // safeguard only 128 bytes DEBUG_PRINTLN(F("Reading interrupt status...")); getIntStatus(); DEBUG_PRINTLN(F("Waiting for FIRO count >= 48...")); while ((fifoCount = getFIFOCount()) < 48); DEBUG_PRINTLN(F("Reading FIFO...")); getFIFOBytes(fifoBuffer, min(fifoCount, 128)); // safeguard only 128 bytes DEBUG_PRINTLN(F("Reading interrupt status...")); getIntStatus(); DEBUG_PRINTLN(F("Writing final memory update 19/19 (function unknown)...")); for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]); writeMemoryBlock(dmpUpdate + 3, dmpUpdate[2], dmpUpdate[0], dmpUpdate[1]); DEBUG_PRINTLN(F("Disabling DMP (you turn it on later)...")); setDMPEnabled(false); DEBUG_PRINTLN(F("Setting up internal 48-byte (default) DMP packet buffer...")); dmpPacketSize = 48; /*if ((dmpPacketBuffer = (uint8_t *)malloc(42)) == 0) { return 3; // TODO: proper error code for no memory }*/ DEBUG_PRINTLN(F("Resetting FIFO and clearing INT status one last time...")); resetFIFO(); getIntStatus(); } else { DEBUG_PRINTLN(F("ERROR! DMP configuration verification failed.")); return 2; // configuration block loading failed } } else { DEBUG_PRINTLN(F("ERROR! DMP code verification failed.")); return 1; // main binary block loading failed } return 0; // success } bool MPU6050::dmpPacketAvailable() { return getFIFOCount() >= dmpGetFIFOPacketSize(); } // uint8_t MPU6050::dmpSetFIFORate(uint8_t fifoRate); // uint8_t MPU6050::dmpGetFIFORate(); // uint8_t MPU6050::dmpGetSampleStepSizeMS(); // uint8_t MPU6050::dmpGetSampleFrequency(); // int32_t MPU6050::dmpDecodeTemperature(int8_t tempReg); //uint8_t MPU6050::dmpRegisterFIFORateProcess(inv_obj_func func, int16_t priority); //uint8_t MPU6050::dmpUnregisterFIFORateProcess(inv_obj_func func); //uint8_t MPU6050::dmpRunFIFORateProcesses(); // uint8_t MPU6050::dmpSendQuaternion(uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendGyro(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendLinearAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendLinearAccelInWorld(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendControlData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendSensorData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendExternalSensorData(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendGravity(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendPacketNumber(uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendQuantizedAccel(uint_fast16_t elements, uint_fast16_t accuracy); // uint8_t MPU6050::dmpSendEIS(uint_fast16_t elements, uint_fast16_t accuracy); uint8_t MPU6050::dmpGetAccel(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[34] << 24) | ((uint32_t)packet[35] << 16) | ((uint32_t)packet[36] << 8) | packet[37]); data[1] = (((uint32_t)packet[38] << 24) | ((uint32_t)packet[39] << 16) | ((uint32_t)packet[40] << 8) | packet[41]); data[2] = (((uint32_t)packet[42] << 24) | ((uint32_t)packet[43] << 16) | ((uint32_t)packet[44] << 8) | packet[45]); return 0; } uint8_t MPU6050::dmpGetAccel(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (packet[34] << 8) | packet[35]; data[1] = (packet[38] << 8) | packet[39]; data[2] = (packet[42] << 8) | packet[43]; return 0; } uint8_t MPU6050::dmpGetAccel(VectorInt16 *v, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; v -> x = (packet[34] << 8) | packet[35]; v -> y = (packet[38] << 8) | packet[39]; v -> z = (packet[42] << 8) | packet[43]; return 0; } uint8_t MPU6050::dmpGetQuaternion(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[0] << 24) | ((uint32_t)packet[1] << 16) | ((uint32_t)packet[2] << 8) | packet[3]); data[1] = (((uint32_t)packet[4] << 24) | ((uint32_t)packet[5] << 16) | ((uint32_t)packet[6] << 8) | packet[7]); data[2] = (((uint32_t)packet[8] << 24) | ((uint32_t)packet[9] << 16) | ((uint32_t)packet[10] << 8) | packet[11]); data[3] = (((uint32_t)packet[12] << 24) | ((uint32_t)packet[13] << 16) | ((uint32_t)packet[14] << 8) | packet[15]); return 0; } uint8_t MPU6050::dmpGetQuaternion(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = ((packet[0] << 8) | packet[1]); data[1] = ((packet[4] << 8) | packet[5]); data[2] = ((packet[8] << 8) | packet[9]); data[3] = ((packet[12] << 8) | packet[13]); return 0; } uint8_t MPU6050::dmpGetQuaternion(Quaternion *q, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) int16_t qI[4]; uint8_t status = dmpGetQuaternion(qI, packet); if (status == 0) { q -> w = (float)qI[0] / 16384.0f; q -> x = (float)qI[1] / 16384.0f; q -> y = (float)qI[2] / 16384.0f; q -> z = (float)qI[3] / 16384.0f; return 0; } return status; // int16 return value, indicates error if this line is reached } // uint8_t MPU6050::dmpGet6AxisQuaternion(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetRelativeQuaternion(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetGyro(int32_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (((uint32_t)packet[16] << 24) | ((uint32_t)packet[17] << 16) | ((uint32_t)packet[18] << 8) | packet[19]); data[1] = (((uint32_t)packet[20] << 24) | ((uint32_t)packet[21] << 16) | ((uint32_t)packet[22] << 8) | packet[23]); data[2] = (((uint32_t)packet[24] << 24) | ((uint32_t)packet[25] << 16) | ((uint32_t)packet[26] << 8) | packet[27]); return 0; } uint8_t MPU6050::dmpGetGyro(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (packet[16] << 8) | packet[17]; data[1] = (packet[20] << 8) | packet[21]; data[2] = (packet[24] << 8) | packet[25]; return 0; } uint8_t MPU6050::dmpGetMag(int16_t *data, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) if (packet == 0) packet = dmpPacketBuffer; data[0] = (packet[28] << 8) | packet[29]; data[1] = (packet[30] << 8) | packet[31]; data[2] = (packet[32] << 8) | packet[33]; return 0; } // uint8_t MPU6050::dmpSetLinearAccelFilterCoefficient(float coef); // uint8_t MPU6050::dmpGetLinearAccel(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetLinearAccel(VectorInt16 *v, VectorInt16 *vRaw, VectorFloat *gravity) { // get rid of the gravity component (+1g = +4096 in standard DMP FIFO packet) v -> x = vRaw -> x - gravity -> x*4096; v -> y = vRaw -> y - gravity -> y*4096; v -> z = vRaw -> z - gravity -> z*4096; return 0; } // uint8_t MPU6050::dmpGetLinearAccelInWorld(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetLinearAccelInWorld(VectorInt16 *v, VectorInt16 *vReal, Quaternion *q) { // rotate measured 3D acceleration vector into original state // frame of reference based on orientation quaternion memcpy(v, vReal, sizeof(VectorInt16)); v -> rotate(q); return 0; } // uint8_t MPU6050::dmpGetGyroAndAccelSensor(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetGyroSensor(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetControlData(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetTemperature(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetGravity(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetGravity(int16_t *data, const uint8_t* packet) { /* +1g corresponds to +8192, sensitivity is 2g. */ int16_t qI[4]; uint8_t status = dmpGetQuaternion(qI, packet); data[0] = ((int32_t)qI[1] * qI[3] - (int32_t)qI[0] * qI[2]) / 16384; data[1] = ((int32_t)qI[0] * qI[1] + (int32_t)qI[2] * qI[3]) / 16384; data[2] = ((int32_t)qI[0] * qI[0] - (int32_t)qI[1] * qI[1] - (int32_t)qI[2] * qI[2] + (int32_t)qI[3] * qI[3]) / (2 * 16384); return status; } uint8_t MPU6050::dmpGetGravity(VectorFloat *v, Quaternion *q) { v -> x = 2 * (q -> x*q -> z - q -> w*q -> y); v -> y = 2 * (q -> w*q -> x + q -> y*q -> z); v -> z = q -> w*q -> w - q -> x*q -> x - q -> y*q -> y + q -> z*q -> z; return 0; } // uint8_t MPU6050::dmpGetUnquantizedAccel(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetQuantizedAccel(long *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetExternalSensorData(long *data, int size, const uint8_t* packet); // uint8_t MPU6050::dmpGetEIS(long *data, const uint8_t* packet); uint8_t MPU6050::dmpGetEuler(float *data, Quaternion *q) { data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // psi data[1] = -asin(2*q -> x*q -> z + 2*q -> w*q -> y); // theta data[2] = atan2(2*q -> y*q -> z - 2*q -> w*q -> x, 2*q -> w*q -> w + 2*q -> z*q -> z - 1); // phi return 0; } #ifdef USE_OLD_DMPGETYAWPITCHROLL uint8_t MPU6050::dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity) { // yaw: (about Z axis) data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // pitch: (nose up/down, about Y axis) data[1] = atan(gravity -> x / sqrt(gravity -> y*gravity -> y + gravity -> z*gravity -> z)); // roll: (tilt left/right, about X axis) data[2] = atan(gravity -> y / sqrt(gravity -> x*gravity -> x + gravity -> z*gravity -> z)); return 0; } #else uint8_t MPU6050::dmpGetYawPitchRoll(float *data, Quaternion *q, VectorFloat *gravity) { // yaw: (about Z axis) data[0] = atan2(2*q -> x*q -> y - 2*q -> w*q -> z, 2*q -> w*q -> w + 2*q -> x*q -> x - 1); // pitch: (nose up/down, about Y axis) data[1] = atan2(gravity -> x , sqrt(gravity -> y*gravity -> y + gravity -> z*gravity -> z)); // roll: (tilt left/right, about X axis) data[2] = atan2(gravity -> y , gravity -> z); if(gravity->z<0) { if(data[1]>0) { data[1] = PI - data[1]; } else { data[1] = -PI - data[1]; } } return 0; } #endif // uint8_t MPU6050::dmpGetAccelFloat(float *data, const uint8_t* packet); // uint8_t MPU6050::dmpGetQuaternionFloat(float *data, const uint8_t* packet); uint8_t MPU6050::dmpProcessFIFOPacket(const unsigned char *dmpData) { /*for (uint8_t k = 0; k < dmpPacketSize; k++) { if (dmpData[k] < 0x10) Serial.print("0"); Serial.print(dmpData[k], HEX); Serial.print(" "); } Serial.print("\n");*/ //Serial.println((uint16_t)dmpPacketBuffer); return 0; } uint8_t MPU6050::dmpReadAndProcessFIFOPacket(uint8_t numPackets, uint8_t *processed) { uint8_t status; uint8_t buf[dmpPacketSize]; for (uint8_t i = 0; i < numPackets; i++) { // read packet from FIFO getFIFOBytes(buf, dmpPacketSize); // process packet if ((status = dmpProcessFIFOPacket(buf)) > 0) return status; // increment external process count variable, if supplied if (processed != 0) *processed++; } return 0; } // uint8_t MPU6050::dmpSetFIFOProcessedCallback(void (*func) (void)); // uint8_t MPU6050::dmpInitFIFOParam(); // uint8_t MPU6050::dmpCloseFIFO(); // uint8_t MPU6050::dmpSetGyroDataSource(uint_fast8_t source); // uint8_t MPU6050::dmpDecodeQuantizedAccel(); // uint32_t MPU6050::dmpGetGyroSumOfSquare(); // uint32_t MPU6050::dmpGetAccelSumOfSquare(); // void MPU6050::dmpOverrideQuaternion(long *q); uint16_t MPU6050::dmpGetFIFOPacketSize() { return dmpPacketSize; } #endif /* _MPU6050_9AXIS_MOTIONAPPS41_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/filters/biquad_filter.c ================================================ #include #include #include #include #include "biquad_filter.h" #include "filter_math.h" #define BIQUAD_Q 1.0f / sqrtf(2.0f) /* quality factor - 2nd order butterworth*/ // NULL filter float nullFilterApply(filter_t *filter, float input) { (void) (filter); return input; } // PT1 Low Pass filter float pt1FilterGain(float f_cut, float dT) { float RC = 1 / (2 * M_PIf * f_cut); return dT / (RC + dT); } void pt1FilterInit(pt1Filter_t *filter, float k) { filter->state = 0.0f; filter->k = k; } void pt1FilterUpdateCutoff(pt1Filter_t *filter, float k) { filter->k = k; } float pt1FilterApply(pt1Filter_t *filter, float input) { filter->state = filter->state + filter->k * (input - filter->state); return filter->state; } // PT2 Low Pass filter float pt2FilterGain(float f_cut, float dT) { const float order = 2.0f; const float orderCutoffCorrection = 1 / sqrtf(powf(2, 1.0f / order) - 1); float RC = 1 / (2 * orderCutoffCorrection * M_PIf * f_cut); // float RC = 1 / (2 * 1.553773974f * M_PIf * f_cut); // where 1.553773974 = 1 / sqrt( (2^(1 / order) - 1) ) and order is 2 return dT / (RC + dT); } void pt2FilterInit(pt2Filter_t *filter, float k) { filter->state = 0.0f; filter->state1 = 0.0f; filter->k = k; } void pt2FilterUpdateCutoff(pt2Filter_t *filter, float k) { filter->k = k; } float pt2FilterApply(pt2Filter_t *filter, float input) { filter->state1 = filter->state1 + filter->k * (input - filter->state1); filter->state = filter->state + filter->k * (filter->state1 - filter->state); return filter->state; } // PT3 Low Pass filter float pt3FilterGain(float f_cut, float dT) { const float order = 3.0f; const float orderCutoffCorrection = 1 / sqrtf(powf(2, 1.0f / order) - 1); float RC = 1 / (2 * orderCutoffCorrection * M_PIf * f_cut); // float RC = 1 / (2 * 1.961459177f * M_PIf * f_cut); // where 1.961459177 = 1 / sqrt( (2^(1 / order) - 1) ) and order is 3 return dT / (RC + dT); } void pt3FilterInit(pt3Filter_t *filter, float k) { filter->state = 0.0f; filter->state1 = 0.0f; filter->state2 = 0.0f; filter->k = k; } void pt3FilterUpdateCutoff(pt3Filter_t *filter, float k) { filter->k = k; } float pt3FilterApply(pt3Filter_t *filter, float input) { filter->state1 = filter->state1 + filter->k * (input - filter->state1); filter->state2 = filter->state2 + filter->k * (filter->state1 - filter->state2); filter->state = filter->state + filter->k * (filter->state2 - filter->state); return filter->state; } // Slew filter with limit void slewFilterInit(slewFilter_t *filter, float slewLimit, float threshold) { filter->state = 0.0f; filter->slewLimit = slewLimit; filter->threshold = threshold; } float slewFilterApply(slewFilter_t *filter, float input) { if (filter->state >= filter->threshold) { if (input >= filter->state - filter->slewLimit) { filter->state = input; } } else if (filter->state <= -filter->threshold) { if (input <= filter->state + filter->slewLimit) { filter->state = input; } } else { filter->state = input; } return filter->state; } // get notch filter Q given center frequency (f0) and lower cutoff frequency (f1) // Q = f0 / (f2 - f1) ; f2 = f0^2 / f1 float filterGetNotchQ(float centerFreq, float cutoffFreq) { return centerFreq * cutoffFreq / (centerFreq * centerFreq - cutoffFreq * cutoffFreq); } /* sets up a biquad filter as a 2nd order butterworth LPF */ void biquadFilterInitLPF(BiquadFilter_t *filter, float _filterCallFreq, float _cutoffFreq) { biquadFilterInit(filter, _filterCallFreq, _cutoffFreq, BIQUAD_Q, FILTER_LPF); } void biquadFilterInit(BiquadFilter_t *filter, float _filterCallFreq, float _cutoffFreq, float Q, biquadFilterType_e filterType) { biquadFilterUpdate(filter, _filterCallFreq, _cutoffFreq, Q, filterType); // zero initial samples filter->x1 = filter->x2 = 0; filter->y1 = filter->y2 = 0; } void biquadFilterUpdate(BiquadFilter_t *filter, float _filterCallFreq, float _cutoffFreq, float Q, biquadFilterType_e filterType) { // setup variables const float omega = 2.0f * M_PIf * _filterCallFreq * _cutoffFreq * 0.000001f; const float sn = sin_approx(omega); const float cs = cos_approx(omega); const float alpha = sn / (2.0f * Q); switch (filterType) { case FILTER_LPF: // 2nd order Butterworth (with Q=1/sqrt(2)) / Butterworth biquad section with Q // described in http://www.ti.com/lit/an/slaa447/slaa447.pdf filter->b1 = 1 - cs; filter->b0 = filter->b1 * 0.5f; filter->b2 = filter->b0; filter->a1 = -2 * cs; filter->a2 = 1 - alpha; break; case FILTER_NOTCH: filter->b0 = 1; filter->b1 = -2 * cs; filter->b2 = 1; filter->a1 = filter->b1; filter->a2 = 1 - alpha; break; case FILTER_BPF: filter->b0 = alpha; filter->b1 = 0; filter->b2 = -alpha; filter->a1 = -2 * cs; filter->a2 = 1 - alpha; break; } const float a0 = 1 + alpha; // precompute the coefficients filter->b0 /= a0; filter->b1 /= a0; filter->b2 /= a0; filter->a1 /= a0; filter->a2 /= a0; } void biquadFilterUpdateLPF(BiquadFilter_t *filter, float filterFreq, float refreshRate) { biquadFilterUpdate(filter, filterFreq, refreshRate, BIQUAD_Q, FILTER_LPF); } /* Computes a biquadFilter_t filter on a sample (slightly less precise than df2 but works in dynamic mode) */ float biquadFilterApplyDF1(BiquadFilter_t *filter, float input) { /* compute result */ const float result = filter->b0 * input + filter->b1 * filter->x1 + filter->b2 * filter->x2 - filter->a1 * filter->y1 - filter->a2 * filter->y2; /* shift x1 to x2, input to x1 */ filter->x2 = filter->x1; filter->x1 = input; /* shift y1 to y2, result to y1 */ filter->y2 = filter->y1; filter->y1 = result; return result; } /* Computes a biquadFilter_t filter in direct form 2 on a sample (higher precision but can't handle changes in coefficients */ float biquadFilterApply(BiquadFilter_t *filter, float input) { const float result = filter->b0 * input + filter->x1; filter->x1 = filter->b1 * input - filter->a1 * result + filter->x2; filter->x2 = filter->b2 * input - filter->a2 * result; return result; } void laggedMovingAverageInit(laggedMovingAverage_t *filter, uint16_t windowSize, float *buf) { filter->movingWindowIndex = 0; filter->windowSize = windowSize; filter->buf = buf; filter->movingSum = 0; memset(filter->buf, 0, windowSize * sizeof(float)); filter->primed = false; } float laggedMovingAverageUpdate(laggedMovingAverage_t *filter, float input) { filter->movingSum -= filter->buf[filter->movingWindowIndex]; filter->buf[filter->movingWindowIndex] = input; filter->movingSum += input; if (++filter->movingWindowIndex == filter->windowSize) { filter->movingWindowIndex = 0; filter->primed = true; } const uint16_t denom = filter->primed ? filter->windowSize : filter->movingWindowIndex; return filter->movingSum / denom; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/filters/biquad_filter.h ================================================ #ifndef __FILTER_H #define __FILTER_H #ifdef __cplusplus extern "C" { #endif struct filter_s; typedef struct filter_s filter_t; typedef struct pt1Filter_s { float state; float k; } pt1Filter_t; typedef struct pt2Filter_s { float state; float state1; float k; } pt2Filter_t; typedef struct pt3Filter_s { float state; float state1; float state2; float k; } pt3Filter_t; typedef struct slewFilter_s { float state; float slewLimit; float threshold; } slewFilter_t; /* this holds the data required to update samples thru a filter */ typedef struct biquadFilter_s { float b0, b1, b2, a1, a2; float x1, x2, y1, y2; } BiquadFilter_t; typedef struct laggedMovingAverage_s { uint16_t movingWindowIndex; uint16_t windowSize; float movingSum; float *buf; uint8_t primed; } laggedMovingAverage_t; typedef enum { FILTER_PT1 = 0, FILTER_BIQUAD, FILTER_PT2, FILTER_PT3, } lowpassFilterType_e; typedef enum { FILTER_LPF, // 2nd order Butterworth section FILTER_NOTCH, FILTER_BPF, } biquadFilterType_e; typedef float (*filterApplyFnPtr)(filter_t *filter, float input); float nullFilterApply(filter_t *filter, float input); void biquadFilterInitLPF(BiquadFilter_t *filter, float _filterCallFreq, float _cutoffFreq); void biquadFilterInit(BiquadFilter_t *filter, float _filterCallFreq, float _cutoffFreq, float Q, biquadFilterType_e filterType); void biquadFilterUpdate(BiquadFilter_t *filter,float _filterCallFreq, float _cutoffFreq, float Q, biquadFilterType_e filterType); void biquadFilterUpdateLPF(BiquadFilter_t *filter, float filterFreq, float refreshRate); float biquadFilterApplyDF1(BiquadFilter_t *filter, float input); float biquadFilterApply(BiquadFilter_t *filter, float input); float filterGetNotchQ(float centerFreq, float cutoffFreq); void laggedMovingAverageInit(laggedMovingAverage_t *filter, uint16_t windowSize, float *buf); float laggedMovingAverageUpdate(laggedMovingAverage_t *filter, float input); float pt1FilterGain(float f_cut, float dT); void pt1FilterInit(pt1Filter_t *filter, float k); void pt1FilterUpdateCutoff(pt1Filter_t *filter, float k); float pt1FilterApply(pt1Filter_t *filter, float input); float pt2FilterGain(float f_cut, float dT); void pt2FilterInit(pt2Filter_t *filter, float k); void pt2FilterUpdateCutoff(pt2Filter_t *filter, float k); float pt2FilterApply(pt2Filter_t *filter, float input); float pt3FilterGain(float f_cut, float dT); void pt3FilterInit(pt3Filter_t *filter, float k); void pt3FilterUpdateCutoff(pt3Filter_t *filter, float k); float pt3FilterApply(pt3Filter_t *filter, float input); void slewFilterInit(slewFilter_t *filter, float slewLimit, float threshold); float slewFilterApply(slewFilter_t *filter, float input); #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/filters/filter_math.c ================================================ #include #include #include "filter_math.h" #if defined(FAST_MATH) || defined(VERY_FAST_MATH) #if defined(VERY_FAST_MATH) // http://lolengine.net/blog/2011/12/21/better-function-approximations // Chebyshev http://stackoverflow.com/questions/345085/how-do-trigonometric-functions-work/345117#345117 // Thanks for ledvinap for making such accuracy possible! See: https://github.com/cleanflight/cleanflight/issues/940#issuecomment-110323384 // https://github.com/Crashpilot1000/HarakiriWebstore1/blob/master/src/mw.c#L1235 // sin_approx maximum absolute error = 2.305023e-06 // cos_approx maximum absolute error = 2.857298e-06 #define sinPolyCoef3 -1.666568107e-1f #define sinPolyCoef5 8.312366210e-3f #define sinPolyCoef7 -1.849218155e-4f #define sinPolyCoef9 0 #else #define sinPolyCoef3 -1.666665710e-1f // Double: -1.666665709650470145824129400050267289858e-1 #define sinPolyCoef5 8.333017292e-3f // Double: 8.333017291562218127986291618761571373087e-3 #define sinPolyCoef7 -1.980661520e-4f // Double: -1.980661520135080504411629636078917643846e-4 #define sinPolyCoef9 2.600054768e-6f // Double: 2.600054767890361277123254766503271638682e-6 #endif float sin_approx(float x) { int32_t xint = x; if (xint < -32 || xint > 32) return 0.0f; // Stop here on error input (5 * 360 Deg) while (x > M_PIf) x -= (2.0f * M_PIf); // always wrap input angle to -PI..PI while (x < -M_PIf) x += (2.0f * M_PIf); if (x > (0.5f * M_PIf)) x = (0.5f * M_PIf) - (x - (0.5f * M_PIf)); // We just pick -90..+90 Degree else if (x < -(0.5f * M_PIf)) x = -(0.5f * M_PIf) - ((0.5f * M_PIf) + x); float x2 = x * x; return x + x * x2 * (sinPolyCoef3 + x2 * (sinPolyCoef5 + x2 * (sinPolyCoef7 + x2 * sinPolyCoef9))); } float cos_approx(float x) { return sin_approx(x + (0.5f * M_PIf)); } // Initial implementation by Crashpilot1000 (https://github.com/Crashpilot1000/HarakiriWebstore1/blob/396715f73c6fcf859e0db0f34e12fe44bace6483/src/mw.c#L1292) // Polynomial coefficients by Andor (http://www.dsprelated.com/showthread/comp.dsp/21872-1.php) optimized by Ledvinap to save one multiplication // Max absolute error 0,000027 degree // atan2_approx maximum absolute error = 7.152557e-07 rads (4.098114e-05 degree) float atan2_approx(float y, float x) { #define atanPolyCoef1 3.14551665884836e-07f #define atanPolyCoef2 0.99997356613987f #define atanPolyCoef3 0.14744007058297684f #define atanPolyCoef4 0.3099814292351353f #define atanPolyCoef5 0.05030176425872175f #define atanPolyCoef6 0.1471039133652469f #define atanPolyCoef7 0.6444640676891548f float res, absX, absY; absX = fabsf(x); absY = fabsf(y); res = MAX(absX, absY); if (res) res = MIN(absX, absY) / res; else res = 0.0f; res = -((((atanPolyCoef5 * res - atanPolyCoef4) * res - atanPolyCoef3) * res - atanPolyCoef2) * res - atanPolyCoef1) / ((atanPolyCoef7 * res + atanPolyCoef6) * res + 1.0f); if (absY > absX) res = (M_PIf / 2.0f) - res; if (x < 0) res = M_PIf - res; if (y < 0) res = -res; return res; } // http://http.developer.nvidia.com/Cg/acos.html // Handbook of Mathematical Functions // M. Abramowitz and I.A. Stegun, Ed. // acos_approx maximum absolute error = 6.760856e-05 rads (3.873685e-03 degree) float acos_approx(float x) { float xa = fabsf(x); float result = sqrtf(1.0f - xa) * (1.5707288f + xa * (-0.2121144f + xa * (0.0742610f + (-0.0187293f * xa)))); if (x < 0.0f) return M_PIf - result; else return result; } #endif int gcd(int num, int denom) { if (denom == 0) { return num; } return gcd(denom, num % denom); } int32_t applyDeadband(const int32_t value, const int32_t deadband) { if (ABS(value) < deadband) { return 0; } return value >= 0 ? value - deadband : value + deadband; } float fapplyDeadband(const float value, const float deadband) { if (fabsf(value) < deadband) { return 0; } return value >= 0 ? value - deadband : value + deadband; } void devClear(stdev_t *dev) { dev->m_n = 0; } void devPush(stdev_t *dev, float x) { dev->m_n++; if (dev->m_n == 1) { dev->m_oldM = dev->m_newM = x; dev->m_oldS = 0.0f; } else { dev->m_newM = dev->m_oldM + (x - dev->m_oldM) / dev->m_n; dev->m_newS = dev->m_oldS + (x - dev->m_oldM) * (x - dev->m_newM); dev->m_oldM = dev->m_newM; dev->m_oldS = dev->m_newS; } } float devVariance(stdev_t *dev) { return ((dev->m_n > 1) ? dev->m_newS / (dev->m_n - 1) : 0.0f); } float devStandardDeviation(stdev_t *dev) { return sqrtf(devVariance(dev)); } float degreesToRadians(int16_t degrees) { return degrees * RAD; } int scaleRange(int x, int srcFrom, int srcTo, int destFrom, int destTo) { long int a = ((long int) destTo - (long int) destFrom) * ((long int) x - (long int) srcFrom); long int b = (long int) srcTo - (long int) srcFrom; return (a / b) + destFrom; } float scaleRangef(float x, float srcFrom, float srcTo, float destFrom, float destTo) { float a = (destTo - destFrom) * (x - srcFrom); float b = srcTo - srcFrom; return (a / b) + destFrom; } // Quick median filter implementation // (c) N. Devillard - 1998 // http://ndevilla.free.fr/median/median.pdf #define QMF_SORT(a, b) { if ((a)>(b)) QMF_SWAP((a),(b)); } #define QMF_SWAP(a, b) { int32_t temp=(a);(a)=(b);(b)=temp; } #define QMF_COPY(p, v, n) { int32_t i; for (i=0; i(b)) QMF_SWAPF((a),(b)); } #define QMF_SWAPF(a, b) { float temp=(a);(a)=(b);(b)=temp; } int32_t quickMedianFilter3(int32_t *v) { int32_t p[3]; QMF_COPY(p, v, 3); QMF_SORT(p[0], p[1]); QMF_SORT(p[1], p[2]); QMF_SORT(p[0], p[1]); return p[1]; } int32_t quickMedianFilter5(int32_t *v) { int32_t p[5]; QMF_COPY(p, v, 5); QMF_SORT(p[0], p[1]); QMF_SORT(p[3], p[4]); QMF_SORT(p[0], p[3]); QMF_SORT(p[1], p[4]); QMF_SORT(p[1], p[2]); QMF_SORT(p[2], p[3]); QMF_SORT(p[1], p[2]); return p[2]; } int32_t quickMedianFilter7(int32_t *v) { int32_t p[7]; QMF_COPY(p, v, 7); QMF_SORT(p[0], p[5]); QMF_SORT(p[0], p[3]); QMF_SORT(p[1], p[6]); QMF_SORT(p[2], p[4]); QMF_SORT(p[0], p[1]); QMF_SORT(p[3], p[5]); QMF_SORT(p[2], p[6]); QMF_SORT(p[2], p[3]); QMF_SORT(p[3], p[6]); QMF_SORT(p[4], p[5]); QMF_SORT(p[1], p[4]); QMF_SORT(p[1], p[3]); QMF_SORT(p[3], p[4]); return p[3]; } int32_t quickMedianFilter9(int32_t *v) { int32_t p[9]; QMF_COPY(p, v, 9); QMF_SORT(p[1], p[2]); QMF_SORT(p[4], p[5]); QMF_SORT(p[7], p[8]); QMF_SORT(p[0], p[1]); QMF_SORT(p[3], p[4]); QMF_SORT(p[6], p[7]); QMF_SORT(p[1], p[2]); QMF_SORT(p[4], p[5]); QMF_SORT(p[7], p[8]); QMF_SORT(p[0], p[3]); QMF_SORT(p[5], p[8]); QMF_SORT(p[4], p[7]); QMF_SORT(p[3], p[6]); QMF_SORT(p[1], p[4]); QMF_SORT(p[2], p[5]); QMF_SORT(p[4], p[7]); QMF_SORT(p[4], p[2]); QMF_SORT(p[6], p[4]); QMF_SORT(p[4], p[2]); return p[4]; } float quickMedianFilter3f(float *v) { float p[3]; QMF_COPY(p, v, 3); QMF_SORTF(p[0], p[1]); QMF_SORTF(p[1], p[2]); QMF_SORTF(p[0], p[1]); return p[1]; } float quickMedianFilter5f(float *v) { float p[5]; QMF_COPY(p, v, 5); QMF_SORTF(p[0], p[1]); QMF_SORTF(p[3], p[4]); QMF_SORTF(p[0], p[3]); QMF_SORTF(p[1], p[4]); QMF_SORTF(p[1], p[2]); QMF_SORTF(p[2], p[3]); QMF_SORTF(p[1], p[2]); return p[2]; } float quickMedianFilter7f(float *v) { float p[7]; QMF_COPY(p, v, 7); QMF_SORTF(p[0], p[5]); QMF_SORTF(p[0], p[3]); QMF_SORTF(p[1], p[6]); QMF_SORTF(p[2], p[4]); QMF_SORTF(p[0], p[1]); QMF_SORTF(p[3], p[5]); QMF_SORTF(p[2], p[6]); QMF_SORTF(p[2], p[3]); QMF_SORTF(p[3], p[6]); QMF_SORTF(p[4], p[5]); QMF_SORTF(p[1], p[4]); QMF_SORTF(p[1], p[3]); QMF_SORTF(p[3], p[4]); return p[3]; } float quickMedianFilter9f(float *v) { float p[9]; QMF_COPY(p, v, 9); QMF_SORTF(p[1], p[2]); QMF_SORTF(p[4], p[5]); QMF_SORTF(p[7], p[8]); QMF_SORTF(p[0], p[1]); QMF_SORTF(p[3], p[4]); QMF_SORTF(p[6], p[7]); QMF_SORTF(p[1], p[2]); QMF_SORTF(p[4], p[5]); QMF_SORTF(p[7], p[8]); QMF_SORTF(p[0], p[3]); QMF_SORTF(p[5], p[8]); QMF_SORTF(p[4], p[7]); QMF_SORTF(p[3], p[6]); QMF_SORTF(p[1], p[4]); QMF_SORTF(p[2], p[5]); QMF_SORTF(p[4], p[7]); QMF_SORTF(p[4], p[2]); QMF_SORTF(p[6], p[4]); QMF_SORTF(p[4], p[2]); return p[4]; } void arraySubInt32(int32_t *dest, int32_t *array1, int32_t *array2, int count) { for (int i = 0; i < count; i++) { dest[i] = array1[i] - array2[i]; } } int16_t qPercent(fix12_t q) { return (100 * q) >> 12; } int16_t qMultiply(fix12_t q, int16_t input) { return (input * q) >> 12; } fix12_t qConstruct(int16_t num, int16_t den) { return (num << 12) / den; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/filters/filter_math.h ================================================ #ifndef __MATHS_H #define __MATHS_H #ifdef __cplusplus extern "C" { #endif #ifndef sq #define sq(x) ((x)*(x)) #endif #define power3(x) ((x)*(x)*(x)) // Undefine this for use libc sinf/cosf. Keep this defined to use fast sin/cos approximations //#define FAST_MATH // order 9 approximation #define VERY_FAST_MATH // order 7 approximation // Use floating point M_PI instead explicitly. #define M_PIf 3.14159265358979323846f #define M_EULERf 2.71828182845904523536f #define RAD (M_PIf / 180.0f) #define DEGREES_TO_DECIDEGREES(angle) ((angle) * 10) #define DECIDEGREES_TO_DEGREES(angle) ((angle) / 10) #define DECIDEGREES_TO_RADIANS(angle) ((angle) / 10.0f * 0.0174532925f) #define DEGREES_TO_RADIANS(angle) ((angle) * 0.0174532925f) #define CM_S_TO_KM_H(centimetersPerSecond) ((centimetersPerSecond) * 36 / 1000) #define CM_S_TO_MPH(centimetersPerSecond) ((centimetersPerSecond) * 10000 / 5080 / 88) #define MIN(a, b) \ __extension__ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; }) #define MAX(a, b) \ __extension__ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a > _b ? _a : _b; }) #define ABS(x) \ __extension__ ({ __typeof__ (x) _x = (x); \ _x > 0 ? _x : -_x; }) #define Q12 (1 << 12) #define HZ_TO_INTERVAL(x) (1.0f / (x)) #define HZ_TO_INTERVAL_US(x) (1000000 / (x)) typedef int32_t fix12_t; typedef struct stdev_s { float m_oldM, m_newM, m_oldS, m_newS; int m_n; } stdev_t; // Floating point 3 vector. typedef struct fp_vector { float X; float Y; float Z; } t_fp_vector_def; typedef union u_fp_vector { float A[3]; t_fp_vector_def V; } t_fp_vector; // Floating point Euler angles. // Be carefull, could be either of degrees or radians. typedef struct fp_angles { float roll; float pitch; float yaw; } fp_angles_def; typedef union { float raw[3]; fp_angles_def angles; } fp_angles_t; typedef struct fp_rotationMatrix_s { float m[3][3]; // matrix } fp_rotationMatrix_t; int gcd(int num, int denom); int32_t applyDeadband(int32_t value, int32_t deadband); float fapplyDeadband(float value, float deadband); void devClear(stdev_t *dev); void devPush(stdev_t *dev, float x); float devVariance(stdev_t *dev); float devStandardDeviation(stdev_t *dev); float degreesToRadians(int16_t degrees); int scaleRange(int x, int srcFrom, int srcTo, int destFrom, int destTo); float scaleRangef(float x, float srcFrom, float srcTo, float destFrom, float destTo); int32_t quickMedianFilter3(int32_t *v); int32_t quickMedianFilter5(int32_t *v); int32_t quickMedianFilter7(int32_t *v); int32_t quickMedianFilter9(int32_t *v); float quickMedianFilter3f(float *v); float quickMedianFilter5f(float *v); float quickMedianFilter7f(float *v); float quickMedianFilter9f(float *v); #if defined(FAST_MATH) || defined(VERY_FAST_MATH) float sin_approx(float x); float cos_approx(float x); float atan2_approx(float y, float x); float acos_approx(float x); #define tan_approx(x) (sin_approx(x) / cos_approx(x)) float exp_approx(float val); float log_approx(float val); float pow_approx(float a, float b); #else #define sin_approx(x) sinf(x) #define cos_approx(x) cosf(x) #define atan2_approx(y,x) atan2f(y,x) #define acos_approx(x) acosf(x) #define tan_approx(x) tanf(x) #define exp_approx(x) expf(x) #define log_approx(x) logf(x) #define pow_approx(a, b) powf(b, a) #endif void arraySubInt32(int32_t *dest, int32_t *array1, int32_t *array2, int count); int16_t qPercent(fix12_t q); int16_t qMultiply(fix12_t q, int16_t input); fix12_t qConstruct(int16_t num, int16_t den); static inline int constrain(int amt, int low, int high) { if (amt < low) return low; else if (amt > high) return high; else return amt; } static inline float constrainf(float amt, float low, float high) { if (amt < low) return low; else if (amt > high) return high; else return amt; } #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/helper_3dmath.h ================================================ // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class, 3D math helper // 6/5/2012 by Jeff Rowberg // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // 2012-06-05 - add 3D math helper file to DMP6 example sketch /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================== */ #ifndef _HELPER_3DMATH_H_ #define _HELPER_3DMATH_H_ class Quaternion { public: float w; float x; float y; float z; Quaternion() { w = 1.0f; x = 0.0f; y = 0.0f; z = 0.0f; } Quaternion(float nw, float nx, float ny, float nz) { w = nw; x = nx; y = ny; z = nz; } Quaternion getProduct(Quaternion q) { // Quaternion multiplication is defined by: // (Q1 * Q2).w = (w1w2 - x1x2 - y1y2 - z1z2) // (Q1 * Q2).x = (w1x2 + x1w2 + y1z2 - z1y2) // (Q1 * Q2).y = (w1y2 - x1z2 + y1w2 + z1x2) // (Q1 * Q2).z = (w1z2 + x1y2 - y1x2 + z1w2 return Quaternion( w*q.w - x*q.x - y*q.y - z*q.z, // new w w*q.x + x*q.w + y*q.z - z*q.y, // new x w*q.y - x*q.z + y*q.w + z*q.x, // new y w*q.z + x*q.y - y*q.x + z*q.w); // new z } Quaternion getConjugate() { return Quaternion(w, -x, -y, -z); } float getMagnitude() { return sqrt(w*w + x*x + y*y + z*z); } void normalize() { float m = getMagnitude(); w /= m; x /= m; y /= m; z /= m; } Quaternion getNormalized() { Quaternion r(w, x, y, z); r.normalize(); return r; } }; class VectorInt16 { public: int16_t x; int16_t y; int16_t z; VectorInt16() { x = 0; y = 0; z = 0; } VectorInt16(int16_t nx, int16_t ny, int16_t nz) { x = nx; y = ny; z = nz; } float getMagnitude() { return sqrt(x*x + y*y + z*z); } void normalize() { float m = getMagnitude(); x /= m; y /= m; z /= m; } VectorInt16 getNormalized() { VectorInt16 r(x, y, z); r.normalize(); return r; } void rotate(Quaternion *q) { // http://www.cprogramming.com/tutorial/3d/quaternions.html // http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm // http://content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation // ^ or: http://webcache.googleusercontent.com/search?q=cache:xgJAp3bDNhQJ:content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation&hl=en&gl=us&strip=1 // P_out = q * P_in * conj(q) // - P_out is the output vector // - q is the orientation quaternion // - P_in is the input vector (a*aReal) // - conj(q) is the conjugate of the orientation quaternion (q=[w,x,y,z], q*=[w,-x,-y,-z]) Quaternion p(0, x, y, z); // quaternion multiplication: q * p, stored back in p p = q -> getProduct(p); // quaternion multiplication: p * conj(q), stored back in p p = p.getProduct(q -> getConjugate()); // p quaternion is now [0, x', y', z'] x = p.x; y = p.y; z = p.z; } VectorInt16 getRotated(Quaternion *q) { VectorInt16 r(x, y, z); r.rotate(q); return r; } }; class VectorFloat { public: float x; float y; float z; VectorFloat() { x = 0; y = 0; z = 0; } VectorFloat(float nx, float ny, float nz) { x = nx; y = ny; z = nz; } float getMagnitude() { return sqrt(x*x + y*y + z*z); } void normalize() { float m = getMagnitude(); x /= m; y /= m; z /= m; } VectorFloat getNormalized() { VectorFloat r(x, y, z); r.normalize(); return r; } void rotate(Quaternion *q) { Quaternion p(0, x, y, z); // quaternion multiplication: q * p, stored back in p p = q -> getProduct(p); // quaternion multiplication: p * conj(q), stored back in p p = p.getProduct(q -> getConjugate()); // p quaternion is now [0, x', y', z'] x = p.x; y = p.y; z = p.z; } VectorFloat getRotated(Quaternion *q) { VectorFloat r(x, y, z); r.rotate(q); return r; } }; #endif /* _HELPER_3DMATH_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/i2c_dev.cpp ================================================ // I2Cdev library collection - Main I2C device class header file // Abstracts bit and byte I2C R/W functions into a convenient class // 7/26/2018 by Saeed Bazargan // ported to STM32 HAL library from Arduino code #include "i2c_dev.hpp" // Hold pointer to inited HAL I2C device static I2C_HandleTypeDef *I2Cdev_hi2c; /** Default timeout value for read operations. * Set this to 0 to disable timeout detection. */ uint16_t I2Cdev_readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT; /** Sets device handle to use for communications * You can call this function and set any other device at any moment */ void I2Cdev_init(I2C_HandleTypeDef *hi2c) { I2Cdev_hi2c = hi2c; } /** Read a single bit from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitNum Bit position to read (0-7) * @param data Container for single bit value * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (true = success) */ uint8_t I2Cdev_readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout) { uint8_t b; uint8_t count = I2Cdev_readByte(devAddr, regAddr, &b, timeout); *data = b & (1 << bitNum); return count; } /** Read a single bit from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitNum Bit position to read (0-15) * @param data Container for single bit value * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (true = success) */ uint8_t I2Cdev_readBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout) { uint16_t b; uint8_t count = I2Cdev_readWord(devAddr, regAddr, &b, timeout); *data = b & (1 << bitNum); return count; } /** Read multiple bits from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitStart First bit position to read (0-7) * @param length Number of bits to read (not more than 8) * @param data Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (true = success) */ uint8_t I2Cdev_readBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t *data, uint16_t timeout) { // 01101001 read byte // 76543210 bit numbers // xxx args: bitStart=4, length=3 // 010 masked // -> 010 shifted uint8_t count, b; if ((count = I2Cdev_readByte(devAddr, regAddr, &b, timeout)) != 0) { uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1); b &= mask; b >>= (bitStart - length + 1); *data = b; } return count; } /** Read multiple bits from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitStart First bit position to read (0-15) * @param length Number of bits to read (not more than 16) * @param data Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (1 = success, 0 = failure, -1 = timeout) */ uint8_t I2Cdev_readBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t *data, uint16_t timeout) { // 1101011001101001 read byte // fedcba9876543210 bit numbers // xxx args: bitStart=12, length=3 // 010 masked // -> 010 shifted uint8_t count; uint16_t w; if ((count = I2Cdev_readWord(devAddr, regAddr, &w, timeout)) != 0) { uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1); w &= mask; w >>= (bitStart - length + 1); *data = w; } return count; } /** Read single byte from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param data Container for byte value read from device * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (true = success) */ uint8_t I2Cdev_readByte(uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint16_t timeout) { return I2Cdev_readBytes(devAddr, regAddr, 1, data, timeout); } /** Read single word from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param data Container for word value read from device * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Status of read operation (true = success) */ uint8_t I2Cdev_readWord(uint8_t devAddr, uint8_t regAddr, uint16_t *data, uint16_t timeout) { return I2Cdev_readWords(devAddr, regAddr, 1, data, timeout); } /** Read multiple bytes from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr First register regAddr to read from * @param length Number of bytes to read * @param data Buffer to store read data in * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Number of bytes read (-1 indicates failure) */ uint8_t I2Cdev_readBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data, uint16_t timeout) { uint16_t tout = timeout > 0 ? timeout : I2CDEV_DEFAULT_READ_TIMEOUT; HAL_I2C_Master_Transmit(I2Cdev_hi2c, devAddr << 1, ®Addr, 1, tout); if (HAL_I2C_Master_Receive(I2Cdev_hi2c, devAddr << 1, data, length, tout) == HAL_OK) return length; return -1; } /** Read multiple words from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr First register regAddr to read from * @param length Number of words to read * @param data Buffer to store read data in * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev_readTimeout) * @return Number of words read (-1 indicates failure) */ uint8_t I2Cdev_readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout) { uint16_t tout = timeout > 0 ? timeout : I2CDEV_DEFAULT_READ_TIMEOUT; HAL_I2C_Master_Transmit(I2Cdev_hi2c, devAddr << 1, ®Addr, 1, tout); if (HAL_I2C_Master_Receive(I2Cdev_hi2c, devAddr << 1, (uint8_t *) data, length * 2, tout) == HAL_OK) return length; else return -1; } /** write a single bit in an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitNum Bit position to write (0-7) * @param value New bit value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data) { uint8_t b; I2Cdev_readByte(devAddr, regAddr, &b, I2Cdev_readTimeout); b = (data != 0) ? (b | (1 << bitNum)) : (b & ~(1 << bitNum)); return I2Cdev_writeByte(devAddr, regAddr, b); } /** write a single bit in a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitNum Bit position to write (0-15) * @param value New bit value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t data) { uint16_t w; I2Cdev_readWord(devAddr, regAddr, &w, 100); w = (data != 0) ? (w | (1 << bitNum)) : (w & ~(1 << bitNum)); return I2Cdev_writeWord(devAddr, regAddr, w); } /** Write multiple bits in an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitStart First bit position to write (0-7) * @param length Number of bits to write (not more than 8) * @param data Right-aligned value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t data) { // 010 value to write // 76543210 bit numbers // xxx args: bitStart=4, length=3 // 00011100 mask byte // 10101111 original value (sample) // 10100011 original & ~mask // 10101011 masked | value uint8_t b; if (I2Cdev_readByte(devAddr, regAddr, &b, 100) != 0) { uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1); data <<= (bitStart - length + 1); // shift data into correct position data &= mask; // zero all non-important bits in data b &= ~(mask); // zero all important bits in existing byte b |= data; // combine data with existing byte return I2Cdev_writeByte(devAddr, regAddr, b); } else { return 0; } } /** Write multiple bits in a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitStart First bit position to write (0-15) * @param length Number of bits to write (not more than 16) * @param data Right-aligned value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t data) { // 010 value to write // fedcba9876543210 bit numbers // xxx args: bitStart=12, length=3 // 0001110000000000 mask word // 1010111110010110 original value (sample) // 1010001110010110 original & ~mask // 1010101110010110 masked | value uint16_t w; if (I2Cdev_readWord(devAddr, regAddr, &w, 100) != 0) { uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1); data <<= (bitStart - length + 1); // shift data into correct position data &= mask; // zero all non-important bits in data w &= ~(mask); // zero all important bits in existing word w |= data; // combine data with existing word return I2Cdev_writeWord(devAddr, regAddr, w); } else { return 0; } } /** Write single byte to an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register address to write to * @param data New byte value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeByte(uint8_t devAddr, uint8_t regAddr, uint8_t data) { return I2Cdev_writeBytes(devAddr, regAddr, 1, &data); } /** Write single word to a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register address to write to * @param data New word value to write * @return Status of operation (true = success) */ uint16_t I2Cdev_writeWord(uint8_t devAddr, uint8_t regAddr, uint16_t data) { return I2Cdev_writeWords(devAddr, regAddr, 1, &data); } /** Write multiple bytes to an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr First register address to write to * @param length Number of bytes to write * @param data Buffer to copy new data from * @return Status of operation (true = success) */ uint16_t I2Cdev_writeBytes(uint8_t devAddr, uint8_t regAddr, uint8_t Size, uint8_t *pData) { // Creating dynamic array to store regAddr + data in one buffer uint8_t *dynBuffer; dynBuffer = (uint8_t *) malloc(sizeof(uint8_t) * (Size + 1)); dynBuffer[0] = regAddr; // copy array memcpy(dynBuffer + 1, pData, sizeof(uint8_t) * Size); HAL_StatusTypeDef status = HAL_I2C_Master_Transmit(I2Cdev_hi2c, devAddr << 1, dynBuffer, Size + 1, 1000); free(dynBuffer); return status == HAL_OK; } /** Write multiple words to a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr First register address to write to * @param length Number of words to write * @param data Buffer to copy new data from * @return Status of operation (true = success) */ uint16_t I2Cdev_writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data) { // Creating dynamic array to store regAddr + data in one buffer uint8_t *dynBuffer; dynBuffer = (uint8_t *) malloc(sizeof(uint8_t) + sizeof(uint16_t) * length); dynBuffer[0] = regAddr; // copy array memcpy(dynBuffer + 1, data, sizeof(uint16_t) * length); HAL_StatusTypeDef status = HAL_I2C_Master_Transmit(I2Cdev_hi2c, devAddr << 1, dynBuffer, sizeof(uint8_t) + sizeof(uint16_t) * length, 1000); free(dynBuffer); return status == HAL_OK; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/imu/i2c_dev.hpp ================================================ // ported to STM32 HAL library from Arduino code #ifndef _I2CDEV_H_ #define _I2CDEV_H_ #include #include #include #include "stm32f4xx_hal.h" #include "i2c.h" #define true 1 #define false 0 // 1000ms default read timeout (modify with "I2Cdev::readTimeout = [ms];") #define I2CDEV_DEFAULT_READ_TIMEOUT 1000 void I2Cdev_init(I2C_HandleTypeDef *hi2c); uint8_t I2Cdev_readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readByte(uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readWord(uint8_t devAddr, uint8_t regAddr, uint16_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint8_t I2Cdev_readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout = I2CDEV_DEFAULT_READ_TIMEOUT); uint16_t I2Cdev_writeBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data); uint16_t I2Cdev_writeBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t data); uint16_t I2Cdev_writeBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t data); uint16_t I2Cdev_writeBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t data); uint16_t I2Cdev_writeByte(uint8_t devAddr, uint8_t regAddr, uint8_t data); uint16_t I2Cdev_writeWord(uint8_t devAddr, uint8_t regAddr, uint16_t data); uint16_t I2Cdev_writeBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data); uint16_t I2Cdev_writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data); #endif /* _I2CDEV_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/memory/eeprom_interface.h ================================================ #ifndef FlashStorage_STM32_h #define FlashStorage_STM32_h #if !(defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || \ defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) || defined(STM32G0) || defined(STM32G4) || \ defined(STM32WB) || defined(STM32MP1) || defined(STM32L5)) #error This code is intended to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting. #endif #define FLASH_STORAGE_STM32_VERSION "FlashStorage_STM32 v1.1.0" // Only use this with emulated EEPROM, without integrated EEPROM #if !defined(DATA_EEPROM_BASE) #include "emulated_eeprom.h" class EEPROMClass { public: EEPROMClass() : _initialized(false), _dirtyBuffer(false), _commitASAP(true), _validEEPROM(true) {} /** * Read an eeprom cell * @param index * @return value */ uint8_t read(int address) { if (!_initialized) init(); return eeprom_buffered_read_byte(address); } /** * Update an eeprom cell * @param index * @param value */ void update(int address, uint8_t value) { if (!_initialized) init(); if (eeprom_buffered_read_byte(address) != value) { _dirtyBuffer = true; eeprom_buffered_write_byte(address, value); } } /** * Write value to an eeprom cell * @param index * @param value */ void write(int address, uint8_t value) { update(address, value); } /** * Update eeprom cells from an object * @param index * @param value */ //Functionality to 'get' and 'put' objects to and from EEPROM. template T &get(int idx, T &t) { // Copy the data from the flash to the buffer if not yet if (!_initialized) init(); uint16_t offset = idx; uint8_t* _pointer = (uint8_t * ) & t; for (uint16_t count = sizeof(T); count; --count, ++offset) { *_pointer++ = eeprom_buffered_read_byte(offset); } return t; } template const T &put(int idx, const T &t) { // Copy the data from the flash to the buffer if not yet if (!_initialized) init(); uint16_t offset = idx; const uint8_t* _pointer = (const uint8_t*) &t; for (uint16_t count = sizeof(T); count; --count, ++offset) { eeprom_buffered_write_byte(offset, *_pointer++); } if (_commitASAP) { // Save the data from the buffer to the flash right away eeprom_buffer_flush(); _dirtyBuffer = false; _validEEPROM = true; } else { // Delay saving the data from the buffer to the flash. Just flag and wait for commit() later _dirtyBuffer = true; } return t; } /** * Check whether the eeprom data is valid * @return true, if eeprom data is valid (has been written at least once), false if not */ bool isValid() { return _validEEPROM; } /** * Write previously made eeprom changes to the underlying flash storage * Use this with care: Each and every commit will harm the flash and reduce it's lifetime (like with every flash memory) */ void commit() { if (!_initialized) init(); if (_dirtyBuffer) { // Save the data from the buffer to the flash eeprom_buffer_flush(); _dirtyBuffer = false; _validEEPROM = true; } } uint16_t length() { return E2END + 1; } void setCommitASAP(bool value = true) { _commitASAP = value; } bool getCommitASAP() { return _commitASAP; } private: void init() { // Copy the data from the flash to the buffer eeprom_buffer_fill(); _initialized = true; } bool _initialized; bool _dirtyBuffer; bool _commitASAP; bool _validEEPROM; }; #else #include "EEPROM.h" #endif // #if !defined(DATA_EEPROM_BASE) #endif //#ifndef FlashAsEEPROM_SAMD_h ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/memory/emulated_eeprom.cpp ================================================ #ifndef __STM32_EEPROM_HPP #define __STM32_EEPROM_HPP #include #include "emulated_eeprom.h" #ifdef __cplusplus extern "C" { #endif /* Be able to change FLASH_BANK_NUMBER to use if relevant */ #if !defined(FLASH_BANK_NUMBER) && \ (defined(STM32F0xx) || defined(STM32F1xx) || defined(STM32G4xx) || \ defined(STM32H7xx) || defined(STM32L4xx) || defined(STM32L5xx)) /* For STM32F0xx, FLASH_BANK_1 is not defined only FLASH_BANK1_END is defined */ #if defined(STM32F0xx) #define FLASH_BANK_1 1U #endif #if defined(FLASH_BANK_2) #define FLASH_BANK_NUMBER FLASH_BANK_2 #else #define FLASH_BANK_NUMBER FLASH_BANK_1 #endif /* FLASH_BANK_2 */ #ifndef FLASH_BANK_NUMBER #error "FLASH_BANK_NUMBER could not be defined" #endif #endif /* !FLASH_BANK_NUMBER */ /* Be able to change FLASH_DATA_SECTOR to use if relevant */ #if defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32F7xx) || \ defined(STM32H7xx) #if !defined(FLASH_DATA_SECTOR) #define FLASH_DATA_SECTOR ((uint32_t)(FLASH_SECTOR_TOTAL - 1)) #else #ifndef FLASH_BASE_ADDRESS #error "FLASH_BASE_ADDRESS have to be defined when FLASH_DATA_SECTOR is defined" #endif #endif /* !FLASH_DATA_SECTOR */ #endif /* STM32F2xx || STM32F4xx || STM32F7xx */ /* Be able to change FLASH_PAGE_NUMBER to use if relevant */ #if !defined(FLASH_PAGE_NUMBER) && \ (defined (STM32G0xx) || defined(STM32G4xx) || defined (STM32L4xx) || \ defined (STM32L5xx) || defined(STM32WBxx)) #define FLASH_PAGE_NUMBER ((uint32_t)((FLASH_SIZE / FLASH_PAGE_SIZE) - 1)) #endif /* !FLASH_PAGE_NUMBER */ /* Be able to change FLASH_END to use */ #if !defined(FLASH_END) #if defined (STM32F0xx) || defined (STM32F1xx) #if defined (FLASH_BANK2_END) && (FLASH_BANK_NUMBER == FLASH_BANK_2) #define FLASH_END FLASH_BANK2_END #elif defined (FLASH_BANK1_END) && (FLASH_BANK_NUMBER == FLASH_BANK_1) #define FLASH_END FLASH_BANK1_END #endif #elif defined (STM32F3xx) static inline uint32_t get_flash_end(void) { uint32_t size; switch ((*((uint16_t *)FLASH_SIZE_DATA_REGISTER))) { case 0x200U: size = 0x0807FFFFU; break; case 0x100U: size = 0x0803FFFFU; break; case 0x80U: size = 0x0801FFFFU; break; case 0x40U: size = 0x0800FFFFU; break; case 0x20U: size = 0x08007FFFU; break; default: size = 0x08003FFFU; break; } return size; } #define FLASH_END get_flash_end() #elif defined(STM32G0xx) || defined(STM32G4xx) || defined (STM32L4xx) || \ defined (STM32L5xx) || defined(STM32WBxx) /* If FLASH_PAGE_NUMBER is defined by user, this is not really end of the flash */ #define FLASH_END ((uint32_t)(FLASH_BASE + (((FLASH_PAGE_NUMBER +1) * FLASH_PAGE_SIZE))-1)) #elif defined(EEPROM_RETRAM_MODE) #define FLASH_END ((uint32_t)(EEPROM_RETRAM_START_ADDRESS + EEPROM_RETRAM_MODE_SIZE -1)) #elif defined(DATA_EEPROM_END) #define FLASH_END DATA_EEPROM_END #endif #ifndef FLASH_END #error "FLASH_END could not be defined" #endif #endif /* FLASH_END */ /* Be able to change FLASH_BASE_ADDRESS to use */ #ifndef FLASH_BASE_ADDRESS /* * By default, Use the last page of the flash to store data * in order to prevent overwritting * program data */ #if defined(EEPROM_RETRAM_MODE) #define FLASH_BASE_ADDRESS EEPROM_RETRAM_START_ADDRESS #else #define FLASH_BASE_ADDRESS ((uint32_t)((FLASH_END + 1) - FLASH_PAGE_SIZE)) #endif #ifndef FLASH_BASE_ADDRESS #error "FLASH_BASE_ADDRESS could not be defined" #endif #endif /* FLASH_BASE_ADDRESS */ #if !defined(DATA_EEPROM_BASE) static uint8_t eeprom_buffer[E2END + 1] __attribute__((aligned(8))) = {0}; #endif /** * @brief Function reads a byte from emulated eeprom (flash) * @param pos : address to read * @retval byte : data read from eeprom */ uint8_t eeprom_read_byte(const uint32_t pos) { #if defined(DATA_EEPROM_BASE) __IO uint8_t data = 0; if (pos <= (DATA_EEPROM_END - DATA_EEPROM_BASE)) { /* with actual EEPROM, pos is a relative address */ data = *(__IO uint8_t *)(DATA_EEPROM_BASE + pos); } return (uint8_t)data; #else eeprom_buffer_fill(); return eeprom_buffered_read_byte(pos); #endif /* _EEPROM_BASE */ } /** * @brief Function writes a byte to emulated eeprom (flash) * @param pos : address to write * @param value : value to write * @retval none */ void eeprom_write_byte(uint32_t pos, uint8_t value) { #if defined(DATA_EEPROM_BASE) /* with actual EEPROM, pos is a relative address */ if (pos <= (DATA_EEPROM_END - DATA_EEPROM_BASE)) { if (HAL_FLASHEx_DATAEEPROM_Unlock() == HAL_OK) { HAL_FLASHEx_DATAEEPROM_Program(FLASH_TYPEPROGRAMDATA_BYTE, (pos + DATA_EEPROM_BASE), (uint32_t)value); HAL_FLASHEx_DATAEEPROM_Lock(); } } #else eeprom_buffered_write_byte(pos, value); eeprom_buffer_flush(); #endif /* _EEPROM_BASE */ } #if !defined(DATA_EEPROM_BASE) /** * @brief Function reads a byte from the eeprom buffer * @param pos : address to read * @retval byte : data read from eeprom */ uint8_t eeprom_buffered_read_byte(const uint32_t pos) { return eeprom_buffer[pos]; } /** * @brief Function writes a byte to the eeprom buffer * @param pos : address to write * @param value : value to write * @retval none */ void eeprom_buffered_write_byte(uint32_t pos, uint8_t value) { eeprom_buffer[pos] = value; } /** * @brief This function copies the data from flash into the buffer * @param none * @retval none */ void eeprom_buffer_fill(void) { memcpy(eeprom_buffer, (uint8_t*) (FLASH_BASE_ADDRESS), E2END + 1); } #if defined(EEPROM_RETRAM_MODE) /** * @brief This function writes the buffer content into the flash * @param none * @retval none */ void eeprom_buffer_flush(void) { memcpy((uint8_t *)(FLASH_BASE_ADDRESS), eeprom_buffer, E2END + 1); } #else /* defined(EEPROM_RETRAM_MODE) */ /** * @brief This function writes the buffer content into the flash * @param none * @retval none */ void eeprom_buffer_flush(void) { FLASH_EraseInitTypeDef EraseInitStruct; uint32_t offset = 0; uint32_t address = FLASH_BASE_ADDRESS; uint32_t address_end = FLASH_BASE_ADDRESS + E2END; #if defined (STM32F0xx) || defined (STM32F1xx) || defined (STM32F3xx) || \ defined (STM32G0xx) || defined (STM32G4xx) || \ defined (STM32L4xx) || defined (STM32L5xx) || defined (STM32WBxx) uint32_t pageError = 0; uint64_t data = 0; /* ERASING page */ EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES; #if defined (STM32F1xx) || defined (STM32G4xx) || defined (STM32L4xx) || \ defined (STM32L5xx) EraseInitStruct.Banks = FLASH_BANK_NUMBER; #endif #if defined (STM32G0xx) || defined (STM32G4xx) || defined (STM32L4xx) || \ defined (STM32L5xx) || defined (STM32WBxx) EraseInitStruct.Page = FLASH_PAGE_NUMBER; #else EraseInitStruct.PageAddress = FLASH_BASE_ADDRESS; #endif EraseInitStruct.NbPages = 1; if (HAL_FLASH_Unlock() == HAL_OK) { #if defined (STM32G0xx) || defined (STM32G4xx) || defined (STM32L4xx) || \ defined (STM32L5xx) || defined (STM32WBxx) __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS); #else __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_WRPERR | FLASH_FLAG_PGERR); #endif if (HAL_FLASHEx_Erase(&EraseInitStruct, &pageError) == HAL_OK) { while (address <= address_end) { data = *((uint64_t*) ((uint8_t*) eeprom_buffer + offset)); if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, address, data) == HAL_OK) { address += 8; offset += 8; } else { address = address_end + 1; } } } HAL_FLASH_Lock(); } #else uint32_t SectorError = 0; #if defined(STM32H7xx) uint64_t data[4] = {0x0000}; #else uint32_t data = 0; #endif /* ERASING page */ EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS; #if defined(STM32H7xx) EraseInitStruct.Banks = FLASH_BANK_NUMBER; #endif EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3; EraseInitStruct.Sector = FLASH_DATA_SECTOR; EraseInitStruct.NbSectors = 1; HAL_FLASH_Unlock(); if (HAL_FLASHEx_Erase(&EraseInitStruct, &SectorError) == HAL_OK) { while (address <= address_end) { #if defined(STM32H7xx) /* 256 bits */ memcpy(&data, eeprom_buffer + offset, 8 * sizeof(uint32_t)); if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_FLASHWORD, address, (uint32_t)data) == HAL_OK) { address += 32; offset += 32; #else memcpy(&data, eeprom_buffer + offset, sizeof(uint32_t)); if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, address, data) == HAL_OK) { address += 4; offset += 4; #endif } else { address = address_end + 1; } } } HAL_FLASH_Lock(); #endif } #endif /* defined(EEPROM_RETRAM_MODE) */ #endif /* ! DATA_EEPROM_BASE */ #ifdef __cplusplus } #endif #endif /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/memory/emulated_eeprom.h ================================================ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32_EEPROM_H #define __STM32_EEPROM_H /* Includes ------------------------------------------------------------------*/ #ifdef __cplusplus extern "C" { #include "main.h" #endif /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ #if defined(STM32MP1xx) /* Note for STM32MP1xx devices: * Those devices do not have non-volatile memory. The emulation is done * in RETRAM. Therefore data will be preserved *only* when VBAT is supplied * (e.g. A coin battery is connected to CN3 on STM32MP157A_DK1) and * the coprocessor is waken up from STANBY mode. * The data won't be preserved from cold boot, even if VBAT is connected. * See: https://community.st.com/s/question/0D50X0000B44pHUSQY/doesnt-the-mcu-coprocessor-have-nonvolatile-memory */ #define EEPROM_RETRAM_MODE /* 4kB is the same size as EEPROM size of ATMega2560. */ #ifndef EEPROM_RETRAM_MODE_SIZE #define EEPROM_RETRAM_MODE_SIZE ((uint32_t)(4*1024)) #endif /* RETRAM start address is 0x00000000 (retset entry) and end address is * 0x00020000 (64kB in total). The by default, ldscript.ld for STM32MP1xx * does not define address between 0x00000298 (end of ISR Vector) and 0x00020000. * So it is okay to use in this address range. Make sure ldscript.ld does not * overrap the following address range. */ #ifndef EEPROM_RETRAM_START_ADDRESS #define EEPROM_RETRAM_START_ADDRESS (0x00000400UL) #endif #define E2END (EEPROM_RETRAM_MODE_SIZE - 1) #else #ifndef FLASH_PAGE_SIZE /* * FLASH_PAGE_SIZE is not defined for STM32F2xx, STM32F4xx and STM32F7xx * Could be redefined in variant.h or using build_opt.h * Warning: This is not the sector size, only the size used for EEPROM * emulation. Anyway, all the sector size will be erased. * So pay attention to not use this sector for other stuff. */ #define FLASH_PAGE_SIZE ((uint32_t)(1*1024)) /* 1kB page */ #endif #if defined(DATA_EEPROM_BASE) || defined(FLASH_EEPROM_BASE) #if defined (DATA_EEPROM_END) #define E2END (DATA_EEPROM_END - DATA_EEPROM_BASE) #elif defined (DATA_EEPROM_BANK2_END) /* assuming two contiguous banks */ #define DATA_EEPROM_END DATA_EEPROM_BANK2_END #define E2END (DATA_EEPROM_BANK2_END - DATA_EEPROM_BASE) #elif defined (FLASH_EEPROM_END) #define DATA_EEPROM_BASE FLASH_EEPROM_BASE #define DATA_EEPROM_END FLASH_EEPROM_END #define E2END (DATA_EEPROM_END - DATA_EEPROM_BASE) #endif /* __EEPROM_END */ #else /* _EEPROM_BASE */ #define E2END (FLASH_PAGE_SIZE - 1) #endif /* _EEPROM_BASE */ #endif /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ uint8_t eeprom_read_byte(uint32_t pos); void eeprom_write_byte(uint32_t pos, uint8_t value); #if !defined(DATA_EEPROM_BASE) void eeprom_buffer_fill(); void eeprom_buffer_flush(); uint8_t eeprom_buffered_read_byte(uint32_t pos); void eeprom_buffered_write_byte(uint32_t pos, uint8_t value); #endif /* ! DATA_EEPROM_BASE */ #ifdef __cplusplus } #endif #endif /* __STM32_EEPROM_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/arm_math/arm_common_tables.h ================================================ /* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_common_tables.h * Description: Extern declaration for common tables * * $Date: 27. January 2017 * $Revision: V.1.5.1 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */ /* * Copyright (C) 2010-2017 ARM Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _ARM_COMMON_TABLES_H #define _ARM_COMMON_TABLES_H #include "arm_math.h" extern const uint16_t armBitRevTable[1024]; extern const q15_t armRecipTableQ15[64]; extern const q31_t armRecipTableQ31[64]; extern const float32_t twiddleCoef_16[32]; extern const float32_t twiddleCoef_32[64]; extern const float32_t twiddleCoef_64[128]; extern const float32_t twiddleCoef_128[256]; extern const float32_t twiddleCoef_256[512]; extern const float32_t twiddleCoef_512[1024]; extern const float32_t twiddleCoef_1024[2048]; extern const float32_t twiddleCoef_2048[4096]; extern const float32_t twiddleCoef_4096[8192]; #define twiddleCoef twiddleCoef_4096 extern const q31_t twiddleCoef_16_q31[24]; extern const q31_t twiddleCoef_32_q31[48]; extern const q31_t twiddleCoef_64_q31[96]; extern const q31_t twiddleCoef_128_q31[192]; extern const q31_t twiddleCoef_256_q31[384]; extern const q31_t twiddleCoef_512_q31[768]; extern const q31_t twiddleCoef_1024_q31[1536]; extern const q31_t twiddleCoef_2048_q31[3072]; extern const q31_t twiddleCoef_4096_q31[6144]; extern const q15_t twiddleCoef_16_q15[24]; extern const q15_t twiddleCoef_32_q15[48]; extern const q15_t twiddleCoef_64_q15[96]; extern const q15_t twiddleCoef_128_q15[192]; extern const q15_t twiddleCoef_256_q15[384]; extern const q15_t twiddleCoef_512_q15[768]; extern const q15_t twiddleCoef_1024_q15[1536]; extern const q15_t twiddleCoef_2048_q15[3072]; extern const q15_t twiddleCoef_4096_q15[6144]; extern const float32_t twiddleCoef_rfft_32[32]; extern const float32_t twiddleCoef_rfft_64[64]; extern const float32_t twiddleCoef_rfft_128[128]; extern const float32_t twiddleCoef_rfft_256[256]; extern const float32_t twiddleCoef_rfft_512[512]; extern const float32_t twiddleCoef_rfft_1024[1024]; extern const float32_t twiddleCoef_rfft_2048[2048]; extern const float32_t twiddleCoef_rfft_4096[4096]; /* floating-point bit reversal tables */ #define ARMBITREVINDEXTABLE_16_TABLE_LENGTH ((uint16_t)20) #define ARMBITREVINDEXTABLE_32_TABLE_LENGTH ((uint16_t)48) #define ARMBITREVINDEXTABLE_64_TABLE_LENGTH ((uint16_t)56) #define ARMBITREVINDEXTABLE_128_TABLE_LENGTH ((uint16_t)208) #define ARMBITREVINDEXTABLE_256_TABLE_LENGTH ((uint16_t)440) #define ARMBITREVINDEXTABLE_512_TABLE_LENGTH ((uint16_t)448) #define ARMBITREVINDEXTABLE_1024_TABLE_LENGTH ((uint16_t)1800) #define ARMBITREVINDEXTABLE_2048_TABLE_LENGTH ((uint16_t)3808) #define ARMBITREVINDEXTABLE_4096_TABLE_LENGTH ((uint16_t)4032) extern const uint16_t armBitRevIndexTable16[ARMBITREVINDEXTABLE_16_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable32[ARMBITREVINDEXTABLE_32_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable64[ARMBITREVINDEXTABLE_64_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable128[ARMBITREVINDEXTABLE_128_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable256[ARMBITREVINDEXTABLE_256_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable512[ARMBITREVINDEXTABLE_512_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable1024[ARMBITREVINDEXTABLE_1024_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable2048[ARMBITREVINDEXTABLE_2048_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable4096[ARMBITREVINDEXTABLE_4096_TABLE_LENGTH]; /* fixed-point bit reversal tables */ #define ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH ((uint16_t)12) #define ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH ((uint16_t)24) #define ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH ((uint16_t)56) #define ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH ((uint16_t)112) #define ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH ((uint16_t)240) #define ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH ((uint16_t)480) #define ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH ((uint16_t)992) #define ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH ((uint16_t)1984) #define ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH ((uint16_t)4032) extern const uint16_t armBitRevIndexTable_fixed_16[ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_32[ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_64[ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_128[ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_256[ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_512[ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_1024[ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_2048[ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH]; extern const uint16_t armBitRevIndexTable_fixed_4096[ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH]; /* Tables for Fast Math Sine and Cosine */ extern const float32_t sinTable_f32[FAST_MATH_TABLE_SIZE + 1]; extern const q31_t sinTable_q31[FAST_MATH_TABLE_SIZE + 1]; extern const q15_t sinTable_q15[FAST_MATH_TABLE_SIZE + 1]; #endif /* ARM_COMMON_TABLES_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/arm_math/arm_const_structs.h ================================================ /* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_const_structs.h * Description: Constant structs that are initialized for user convenience. * For example, some can be given as arguments to the arm_cfft_f32() function. * * $Date: 27. January 2017 * $Revision: V.1.5.1 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */ /* * Copyright (C) 2010-2017 ARM Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _ARM_CONST_STRUCTS_H #define _ARM_CONST_STRUCTS_H #include "arm_math.h" #include "arm_common_tables.h" extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len16; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len32; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len64; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len128; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len256; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len512; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048; extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len16; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len32; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len64; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len128; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len256; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len512; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len1024; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len2048; extern const arm_cfft_instance_q31 arm_cfft_sR_q31_len4096; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len16; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len32; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len64; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len128; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len256; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len512; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len1024; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len2048; extern const arm_cfft_instance_q15 arm_cfft_sR_q15_len4096; #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/arm_math/arm_math.h ================================================ /****************************************************************************** * @file arm_math.h * @brief Public header file for CMSIS DSP LibraryU * @version V1.5.3 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** \mainpage CMSIS DSP Software Library * * Introduction * ------------ * * This user manual describes the CMSIS DSP software library, * a suite of common signal processing functions for use on Cortex-M processor based devices. * * The library is divided into a number of functions each covering a specific category: * - Basic math functions * - Fast math functions * - Complex math functions * - Filters * - Matrix functions * - Transforms * - Motor control functions * - Statistical functions * - Support functions * - Interpolation functions * * The library has separate functions for operating on 8-bit integers, 16-bit integers, * 32-bit integer and 32-bit floating-point values. * * Using the Library * ------------ * * The library installer contains prebuilt versions of the libraries in the Lib folder. * - arm_cortexM7lfdp_math.lib (Cortex-M7, Little endian, Double Precision Floating Point Unit) * - arm_cortexM7bfdp_math.lib (Cortex-M7, Big endian, Double Precision Floating Point Unit) * - arm_cortexM7lfsp_math.lib (Cortex-M7, Little endian, Single Precision Floating Point Unit) * - arm_cortexM7bfsp_math.lib (Cortex-M7, Big endian and Single Precision Floating Point Unit on) * - arm_cortexM7l_math.lib (Cortex-M7, Little endian) * - arm_cortexM7b_math.lib (Cortex-M7, Big endian) * - arm_cortexM4lf_math.lib (Cortex-M4, Little endian, Floating Point Unit) * - arm_cortexM4bf_math.lib (Cortex-M4, Big endian, Floating Point Unit) * - arm_cortexM4l_math.lib (Cortex-M4, Little endian) * - arm_cortexM4b_math.lib (Cortex-M4, Big endian) * - arm_cortexM3l_math.lib (Cortex-M3, Little endian) * - arm_cortexM3b_math.lib (Cortex-M3, Big endian) * - arm_cortexM0l_math.lib (Cortex-M0 / Cortex-M0+, Little endian) * - arm_cortexM0b_math.lib (Cortex-M0 / Cortex-M0+, Big endian) * - arm_ARMv8MBLl_math.lib (Armv8-M Baseline, Little endian) * - arm_ARMv8MMLl_math.lib (Armv8-M Mainline, Little endian) * - arm_ARMv8MMLlfsp_math.lib (Armv8-M Mainline, Little endian, Single Precision Floating Point Unit) * - arm_ARMv8MMLld_math.lib (Armv8-M Mainline, Little endian, DSP instructions) * - arm_ARMv8MMLldfsp_math.lib (Armv8-M Mainline, Little endian, DSP instructions, Single Precision Floating Point Unit) * * The library functions are declared in the public file arm_math.h which is placed in the Include folder. * Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single * public header file arm_math.h for Cortex-M cores with little endian and big endian. Same header file will be used for floating point unit(FPU) variants. * Define the appropriate preprocessor macro ARM_MATH_CM7 or ARM_MATH_CM4 or ARM_MATH_CM3 or * ARM_MATH_CM0 or ARM_MATH_CM0PLUS depending on the target processor in the application. * For Armv8-M cores define preprocessor macro ARM_MATH_ARMV8MBL or ARM_MATH_ARMV8MML. * Set preprocessor macro __DSP_PRESENT if Armv8-M Mainline core supports DSP instructions. * * * Examples * -------- * * The library ships with a number of examples which demonstrate how to use the library functions. * * Toolchain Support * ------------ * * The library has been developed and tested with MDK version 5.14.0.0 * The library is being tested in GCC and IAR toolchains and updates on this activity will be made available shortly. * * Building the Library * ------------ * * The library installer contains a project file to rebuild libraries on MDK toolchain in the CMSIS\\DSP_Lib\\Source\\ARM folder. * - arm_cortexM_math.uvprojx * * * The libraries can be built by opening the arm_cortexM_math.uvprojx project in MDK-ARM, selecting a specific target, and defining the optional preprocessor macros detailed above. * * Preprocessor Macros * ------------ * * Each library project have different preprocessor macros. * * - UNALIGNED_SUPPORT_DISABLE: * * Define macro UNALIGNED_SUPPORT_DISABLE, If the silicon does not support unaligned memory access * * - ARM_MATH_BIG_ENDIAN: * * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets. * * - ARM_MATH_MATRIX_CHECK: * * Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices * * - ARM_MATH_ROUNDING: * * Define macro ARM_MATH_ROUNDING for rounding on support functions * * - ARM_MATH_CMx: * * Define macro ARM_MATH_CM4 for building the library on Cortex-M4 target, ARM_MATH_CM3 for building library on Cortex-M3 target * and ARM_MATH_CM0 for building library on Cortex-M0 target, ARM_MATH_CM0PLUS for building library on Cortex-M0+ target, and * ARM_MATH_CM7 for building the library on cortex-M7. * * - ARM_MATH_ARMV8MxL: * * Define macro ARM_MATH_ARMV8MBL for building the library on Armv8-M Baseline target, ARM_MATH_ARMV8MML for building library * on Armv8-M Mainline target. * * - __FPU_PRESENT: * * Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for floating point libraries. * * - __DSP_PRESENT: * * Initialize macro __DSP_PRESENT = 1 when Armv8-M Mainline core supports DSP instructions. * *
* CMSIS-DSP in ARM::CMSIS Pack * ----------------------------- * * The following files relevant to CMSIS-DSP are present in the ARM::CMSIS Pack directories: * |File/Folder |Content | * |------------------------------|------------------------------------------------------------------------| * |\b CMSIS\\Documentation\\DSP | This documentation | * |\b CMSIS\\DSP_Lib | Software license agreement (license.txt) | * |\b CMSIS\\DSP_Lib\\Examples | Example projects demonstrating the usage of the library functions | * |\b CMSIS\\DSP_Lib\\Source | Source files for rebuilding the library | * *
* Revision History of CMSIS-DSP * ------------ * Please refer to \ref ChangeLog_pg. * * Copyright Notice * ------------ * * Copyright (C) 2010-2015 Arm Limited. All rights reserved. */ /** * @defgroup groupMath Basic Math Functions */ /** * @defgroup groupFastMath Fast Math Functions * This set of functions provides a fast approximation to sine, cosine, and square root. * As compared to most of the other functions in the CMSIS math library, the fast math functions * operate on individual values and not arrays. * There are separate functions for Q15, Q31, and floating-point data. * */ /** * @defgroup groupCmplxMath Complex Math Functions * This set of functions operates on complex data vectors. * The data in the complex arrays is stored in an interleaved fashion * (real, imag, real, imag, ...). * In the API functions, the number of samples in a complex array refers * to the number of complex values; the array contains twice this number of * real values. */ /** * @defgroup groupFilters Filtering Functions */ /** * @defgroup groupMatrix Matrix Functions * * This set of functions provides basic matrix math operations. * The functions operate on matrix data structures. For example, * the type * definition for the floating-point matrix structure is shown * below: *
 *     typedef struct
 *     {
 *       uint16_t numRows;     // number of rows of the matrix.
 *       uint16_t numCols;     // number of columns of the matrix.
 *       float32_t *pData;     // points to the data of the matrix.
 *     } arm_matrix_instance_f32;
 * 
* There are similar definitions for Q15 and Q31 data types. * * The structure specifies the size of the matrix and then points to * an array of data. The array is of size numRows X numCols * and the values are arranged in row order. That is, the * matrix element (i, j) is stored at: *
 *     pData[i*numCols + j]
 * 
* * \par Init Functions * There is an associated initialization function for each type of matrix * data structure. * The initialization function sets the values of the internal structure fields. * Refer to the function arm_mat_init_f32(), arm_mat_init_q31() * and arm_mat_init_q15() for floating-point, Q31 and Q15 types, respectively. * * \par * Use of the initialization function is optional. However, if initialization function is used * then the instance structure cannot be placed into a const data section. * To place the instance structure in a const data * section, manually initialize the data structure. For example: *
 * arm_matrix_instance_f32 S = {nRows, nColumns, pData};
 * arm_matrix_instance_q31 S = {nRows, nColumns, pData};
 * arm_matrix_instance_q15 S = {nRows, nColumns, pData};
 * 
* where nRows specifies the number of rows, nColumns * specifies the number of columns, and pData points to the * data array. * * \par Size Checking * By default all of the matrix functions perform size checking on the input and * output matrices. For example, the matrix addition function verifies that the * two input matrices and the output matrix all have the same number of rows and * columns. If the size check fails the functions return: *
 *     ARM_MATH_SIZE_MISMATCH
 * 
* Otherwise the functions return *
 *     ARM_MATH_SUCCESS
 * 
* There is some overhead associated with this matrix size checking. * The matrix size checking is enabled via the \#define *
 *     ARM_MATH_MATRIX_CHECK
 * 
* within the library project settings. By default this macro is defined * and size checking is enabled. By changing the project settings and * undefining this macro size checking is eliminated and the functions * run a bit faster. With size checking disabled the functions always * return ARM_MATH_SUCCESS. */ /** * @defgroup groupTransforms Transform Functions */ /** * @defgroup groupController Controller Functions */ /** * @defgroup groupStats Statistics Functions */ /** * @defgroup groupSupport Support Functions */ /** * @defgroup groupInterpolation Interpolation Functions * These functions perform 1- and 2-dimensional interpolation of data. * Linear interpolation is used for 1-dimensional data and * bilinear interpolation is used for 2-dimensional data. */ /** * @defgroup groupExamples Examples */ #ifndef _ARM_MATH_H #define _ARM_MATH_H /* Compiler specific diagnostic adjustment */ #if defined ( __CC_ARM ) #elif defined ( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ) #elif defined ( __GNUC__ ) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsign-conversion" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wunused-parameter" #elif defined ( __ICCARM__ ) #elif defined ( __TI_ARM__ ) #elif defined ( __CSMC__ ) #elif defined ( __TASKING__ ) #else #error Unknown compiler #endif #define __CMSIS_GENERIC /* disable NVIC and Systick functions */ #if defined(ARM_MATH_CM7) #include "core_cm7.h" #define ARM_MATH_DSP #elif defined (ARM_MATH_CM4) #include "core_cm4.h" #define ARM_MATH_DSP #elif defined (ARM_MATH_CM3) #include "core_cm3.h" #elif defined (ARM_MATH_CM0) #include "core_cm0.h" #define ARM_MATH_CM0_FAMILY #elif defined (ARM_MATH_CM0PLUS) #include "core_cm0plus.h" #define ARM_MATH_CM0_FAMILY #elif defined (ARM_MATH_ARMV8MBL) #include "core_armv8mbl.h" #define ARM_MATH_CM0_FAMILY #elif defined (ARM_MATH_ARMV8MML) #include "core_armv8mml.h" #if (defined (__DSP_PRESENT) && (__DSP_PRESENT == 1)) #define ARM_MATH_DSP #endif #else #error "Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS, ARM_MATH_CM0, ARM_MATH_ARMV8MBL, ARM_MATH_ARMV8MML" #endif #undef __CMSIS_GENERIC /* enable NVIC and Systick functions */ #include "string.h" #include "math.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Macros required for reciprocal calculation in Normalized LMS */ #define DELTA_Q31 (0x100) #define DELTA_Q15 0x5 #define INDEX_MASK 0x0000003F #ifndef PI #define PI 3.14159265358979f #endif /** * @brief Macros required for SINE and COSINE Fast math approximations */ #define FAST_MATH_TABLE_SIZE 512 #define FAST_MATH_Q31_SHIFT (32 - 10) #define FAST_MATH_Q15_SHIFT (16 - 10) #define CONTROLLER_Q31_SHIFT (32 - 9) #define TABLE_SPACING_Q31 0x400000 #define TABLE_SPACING_Q15 0x80 /** * @brief Macros required for SINE and COSINE Controller functions */ /* 1.31(q31) Fixed value of 2/360 */ /* -1 to +1 is divided into 360 values so total spacing is (2/360) */ #define INPUT_SPACING 0xB60B61 /** * @brief Macro for Unaligned Support */ #ifndef UNALIGNED_SUPPORT_DISABLE #define ALIGN4 #else #if defined (__GNUC__) #define ALIGN4 __attribute__((aligned(4))) #else #define ALIGN4 __align(4) #endif #endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ /** * @brief Error status returned by some functions in the library. */ typedef enum { ARM_MATH_SUCCESS = 0, /**< No error */ ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */ ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */ ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */ ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */ ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */ ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */ } arm_status; /** * @brief 8-bit fractional data type in 1.7 format. */ typedef int8_t q7_t; /** * @brief 16-bit fractional data type in 1.15 format. */ typedef int16_t q15_t; /** * @brief 32-bit fractional data type in 1.31 format. */ typedef int32_t q31_t; /** * @brief 64-bit fractional data type in 1.63 format. */ typedef int64_t q63_t; /** * @brief 32-bit floating-point type definition. */ typedef float float32_t; /** * @brief 64-bit floating-point type definition. */ typedef double float64_t; /** * @brief definition to read/write two 16 bit values. */ #if defined ( __CC_ARM ) #define __SIMD32_TYPE int32_t __packed #define CMSIS_UNUSED __attribute__((unused)) #define CMSIS_INLINE __attribute__((always_inline)) #elif defined ( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ) #define __SIMD32_TYPE int32_t #define CMSIS_UNUSED __attribute__((unused)) #define CMSIS_INLINE __attribute__((always_inline)) #elif defined ( __GNUC__ ) #define __SIMD32_TYPE int32_t #define CMSIS_UNUSED __attribute__((unused)) #define CMSIS_INLINE __attribute__((always_inline)) #elif defined ( __ICCARM__ ) #define __SIMD32_TYPE int32_t __packed #define CMSIS_UNUSED #define CMSIS_INLINE #elif defined ( __TI_ARM__ ) #define __SIMD32_TYPE int32_t #define CMSIS_UNUSED __attribute__((unused)) #define CMSIS_INLINE #elif defined ( __CSMC__ ) #define __SIMD32_TYPE int32_t #define CMSIS_UNUSED #define CMSIS_INLINE #elif defined ( __TASKING__ ) #define __SIMD32_TYPE __unaligned int32_t #define CMSIS_UNUSED #define CMSIS_INLINE #else #error Unknown compiler #endif #define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr)) #define __SIMD32_CONST(addr) ((__SIMD32_TYPE *)(addr)) #define _SIMD32_OFFSET(addr) (*(__SIMD32_TYPE *) (addr)) #define __SIMD64(addr) (*(int64_t **) & (addr)) #if !defined (ARM_MATH_DSP) /** * @brief definition to pack two 16 bit values. */ #define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) | \ (((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) ) #define __PKHTB(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0xFFFF0000) | \ (((int32_t)(ARG2) >> ARG3) & (int32_t)0x0000FFFF) ) #endif /* !defined (ARM_MATH_DSP) */ /** * @brief definition to pack four 8 bit values. */ #ifndef ARM_MATH_BIG_ENDIAN #define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v0) << 0) & (int32_t)0x000000FF) | \ (((int32_t)(v1) << 8) & (int32_t)0x0000FF00) | \ (((int32_t)(v2) << 16) & (int32_t)0x00FF0000) | \ (((int32_t)(v3) << 24) & (int32_t)0xFF000000) ) #else #define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v3) << 0) & (int32_t)0x000000FF) | \ (((int32_t)(v2) << 8) & (int32_t)0x0000FF00) | \ (((int32_t)(v1) << 16) & (int32_t)0x00FF0000) | \ (((int32_t)(v0) << 24) & (int32_t)0xFF000000) ) #endif /** * @brief Clips Q63 to Q31 values. */ CMSIS_INLINE __STATIC_INLINE q31_t clip_q63_to_q31( q63_t x) { return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? ((0x7FFFFFFF ^ ((q31_t) (x >> 63)))) : (q31_t) x; } /** * @brief Clips Q63 to Q15 values. */ CMSIS_INLINE __STATIC_INLINE q15_t clip_q63_to_q15( q63_t x) { return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? ((0x7FFF ^ ((q15_t) (x >> 63)))) : (q15_t) (x >> 15); } /** * @brief Clips Q31 to Q7 values. */ CMSIS_INLINE __STATIC_INLINE q7_t clip_q31_to_q7( q31_t x) { return ((q31_t) (x >> 24) != ((q31_t) x >> 23)) ? ((0x7F ^ ((q7_t) (x >> 31)))) : (q7_t) x; } /** * @brief Clips Q31 to Q15 values. */ CMSIS_INLINE __STATIC_INLINE q15_t clip_q31_to_q15( q31_t x) { return ((q31_t) (x >> 16) != ((q31_t) x >> 15)) ? ((0x7FFF ^ ((q15_t) (x >> 31)))) : (q15_t) x; } /** * @brief Multiplies 32 X 64 and returns 32 bit result in 2.30 format. */ CMSIS_INLINE __STATIC_INLINE q63_t mult32x64( q63_t x, q31_t y) { return ((((q63_t) (x & 0x00000000FFFFFFFF) * y) >> 32) + (((q63_t) (x >> 32) * y))); } /** * @brief Function to Calculates 1/in (reciprocal) value of Q31 Data type. */ CMSIS_INLINE __STATIC_INLINE uint32_t arm_recip_q31( q31_t in, q31_t * dst, q31_t * pRecipTable) { q31_t out; uint32_t tempVal; uint32_t index, i; uint32_t signBits; if (in > 0) { signBits = ((uint32_t) (__CLZ( in) - 1)); } else { signBits = ((uint32_t) (__CLZ(-in) - 1)); } /* Convert input sample to 1.31 format */ in = (in << signBits); /* calculation of index for initial approximated Val */ index = (uint32_t)(in >> 24); index = (index & INDEX_MASK); /* 1.31 with exp 1 */ out = pRecipTable[index]; /* calculation of reciprocal value */ /* running approximation for two iterations */ for (i = 0U; i < 2U; i++) { tempVal = (uint32_t) (((q63_t) in * out) >> 31); tempVal = 0x7FFFFFFFu - tempVal; /* 1.31 with exp 1 */ /* out = (q31_t) (((q63_t) out * tempVal) >> 30); */ out = clip_q63_to_q31(((q63_t) out * tempVal) >> 30); } /* write output */ *dst = out; /* return num of signbits of out = 1/in value */ return (signBits + 1U); } /** * @brief Function to Calculates 1/in (reciprocal) value of Q15 Data type. */ CMSIS_INLINE __STATIC_INLINE uint32_t arm_recip_q15( q15_t in, q15_t * dst, q15_t * pRecipTable) { q15_t out = 0; uint32_t tempVal = 0; uint32_t index = 0, i = 0; uint32_t signBits = 0; if (in > 0) { signBits = ((uint32_t)(__CLZ( in) - 17)); } else { signBits = ((uint32_t)(__CLZ(-in) - 17)); } /* Convert input sample to 1.15 format */ in = (in << signBits); /* calculation of index for initial approximated Val */ index = (uint32_t)(in >> 8); index = (index & INDEX_MASK); /* 1.15 with exp 1 */ out = pRecipTable[index]; /* calculation of reciprocal value */ /* running approximation for two iterations */ for (i = 0U; i < 2U; i++) { tempVal = (uint32_t) (((q31_t) in * out) >> 15); tempVal = 0x7FFFu - tempVal; /* 1.15 with exp 1 */ out = (q15_t) (((q31_t) out * tempVal) >> 14); /* out = clip_q31_to_q15(((q31_t) out * tempVal) >> 14); */ } /* write output */ *dst = out; /* return num of signbits of out = 1/in value */ return (signBits + 1); } /* * @brief C custom defined intrinsic function for M3 and M0 processors */ #if !defined (ARM_MATH_DSP) /* * @brief C custom defined QADD8 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QADD8( uint32_t x, uint32_t y) { q31_t r, s, t, u; r = __SSAT(((((q31_t)x << 24) >> 24) + (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; s = __SSAT(((((q31_t)x << 16) >> 24) + (((q31_t)y << 16) >> 24)), 8) & (int32_t)0x000000FF; t = __SSAT(((((q31_t)x << 8) >> 24) + (((q31_t)y << 8) >> 24)), 8) & (int32_t)0x000000FF; u = __SSAT(((((q31_t)x ) >> 24) + (((q31_t)y ) >> 24)), 8) & (int32_t)0x000000FF; return ((uint32_t)((u << 24) | (t << 16) | (s << 8) | (r ))); } /* * @brief C custom defined QSUB8 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QSUB8( uint32_t x, uint32_t y) { q31_t r, s, t, u; r = __SSAT(((((q31_t)x << 24) >> 24) - (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; s = __SSAT(((((q31_t)x << 16) >> 24) - (((q31_t)y << 16) >> 24)), 8) & (int32_t)0x000000FF; t = __SSAT(((((q31_t)x << 8) >> 24) - (((q31_t)y << 8) >> 24)), 8) & (int32_t)0x000000FF; u = __SSAT(((((q31_t)x ) >> 24) - (((q31_t)y ) >> 24)), 8) & (int32_t)0x000000FF; return ((uint32_t)((u << 24) | (t << 16) | (s << 8) | (r ))); } /* * @brief C custom defined QADD16 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QADD16( uint32_t x, uint32_t y) { /* q31_t r, s; without initialisation 'arm_offset_q15 test' fails but 'intrinsic' tests pass! for armCC */ q31_t r = 0, s = 0; r = __SSAT(((((q31_t)x << 16) >> 16) + (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; s = __SSAT(((((q31_t)x ) >> 16) + (((q31_t)y ) >> 16)), 16) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined SHADD16 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SHADD16( uint32_t x, uint32_t y) { q31_t r, s; r = (((((q31_t)x << 16) >> 16) + (((q31_t)y << 16) >> 16)) >> 1) & (int32_t)0x0000FFFF; s = (((((q31_t)x ) >> 16) + (((q31_t)y ) >> 16)) >> 1) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined QSUB16 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QSUB16( uint32_t x, uint32_t y) { q31_t r, s; r = __SSAT(((((q31_t)x << 16) >> 16) - (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; s = __SSAT(((((q31_t)x ) >> 16) - (((q31_t)y ) >> 16)), 16) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined SHSUB16 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SHSUB16( uint32_t x, uint32_t y) { q31_t r, s; r = (((((q31_t)x << 16) >> 16) - (((q31_t)y << 16) >> 16)) >> 1) & (int32_t)0x0000FFFF; s = (((((q31_t)x ) >> 16) - (((q31_t)y ) >> 16)) >> 1) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined QASX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QASX( uint32_t x, uint32_t y) { q31_t r, s; r = __SSAT(((((q31_t)x << 16) >> 16) - (((q31_t)y ) >> 16)), 16) & (int32_t)0x0000FFFF; s = __SSAT(((((q31_t)x ) >> 16) + (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined SHASX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SHASX( uint32_t x, uint32_t y) { q31_t r, s; r = (((((q31_t)x << 16) >> 16) - (((q31_t)y ) >> 16)) >> 1) & (int32_t)0x0000FFFF; s = (((((q31_t)x ) >> 16) + (((q31_t)y << 16) >> 16)) >> 1) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined QSAX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __QSAX( uint32_t x, uint32_t y) { q31_t r, s; r = __SSAT(((((q31_t)x << 16) >> 16) + (((q31_t)y ) >> 16)), 16) & (int32_t)0x0000FFFF; s = __SSAT(((((q31_t)x ) >> 16) - (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined SHSAX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SHSAX( uint32_t x, uint32_t y) { q31_t r, s; r = (((((q31_t)x << 16) >> 16) + (((q31_t)y ) >> 16)) >> 1) & (int32_t)0x0000FFFF; s = (((((q31_t)x ) >> 16) - (((q31_t)y << 16) >> 16)) >> 1) & (int32_t)0x0000FFFF; return ((uint32_t)((s << 16) | (r ))); } /* * @brief C custom defined SMUSDX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMUSDX( uint32_t x, uint32_t y) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y ) >> 16)) - ((((q31_t)x ) >> 16) * (((q31_t)y << 16) >> 16)) )); } /* * @brief C custom defined SMUADX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMUADX( uint32_t x, uint32_t y) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y ) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y << 16) >> 16)) )); } /* * @brief C custom defined QADD for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE int32_t __QADD( int32_t x, int32_t y) { return ((int32_t)(clip_q63_to_q31((q63_t)x + (q31_t)y))); } /* * @brief C custom defined QSUB for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE int32_t __QSUB( int32_t x, int32_t y) { return ((int32_t)(clip_q63_to_q31((q63_t)x - (q31_t)y))); } /* * @brief C custom defined SMLAD for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMLAD( uint32_t x, uint32_t y, uint32_t sum) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y << 16) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y ) >> 16)) + ( ((q31_t)sum ) ) )); } /* * @brief C custom defined SMLADX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMLADX( uint32_t x, uint32_t y, uint32_t sum) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y ) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y << 16) >> 16)) + ( ((q31_t)sum ) ) )); } /* * @brief C custom defined SMLSDX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMLSDX( uint32_t x, uint32_t y, uint32_t sum) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y ) >> 16)) - ((((q31_t)x ) >> 16) * (((q31_t)y << 16) >> 16)) + ( ((q31_t)sum ) ) )); } /* * @brief C custom defined SMLALD for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint64_t __SMLALD( uint32_t x, uint32_t y, uint64_t sum) { /* return (sum + ((q15_t) (x >> 16) * (q15_t) (y >> 16)) + ((q15_t) x * (q15_t) y)); */ return ((uint64_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y << 16) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y ) >> 16)) + ( ((q63_t)sum ) ) )); } /* * @brief C custom defined SMLALDX for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint64_t __SMLALDX( uint32_t x, uint32_t y, uint64_t sum) { /* return (sum + ((q15_t) (x >> 16) * (q15_t) y)) + ((q15_t) x * (q15_t) (y >> 16)); */ return ((uint64_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y ) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y << 16) >> 16)) + ( ((q63_t)sum ) ) )); } /* * @brief C custom defined SMUAD for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMUAD( uint32_t x, uint32_t y) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y << 16) >> 16)) + ((((q31_t)x ) >> 16) * (((q31_t)y ) >> 16)) )); } /* * @brief C custom defined SMUSD for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SMUSD( uint32_t x, uint32_t y) { return ((uint32_t)(((((q31_t)x << 16) >> 16) * (((q31_t)y << 16) >> 16)) - ((((q31_t)x ) >> 16) * (((q31_t)y ) >> 16)) )); } /* * @brief C custom defined SXTB16 for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE uint32_t __SXTB16( uint32_t x) { return ((uint32_t)(((((q31_t)x << 24) >> 24) & (q31_t)0x0000FFFF) | ((((q31_t)x << 8) >> 8) & (q31_t)0xFFFF0000) )); } /* * @brief C custom defined SMMLA for M3 and M0 processors */ CMSIS_INLINE __STATIC_INLINE int32_t __SMMLA( int32_t x, int32_t y, int32_t sum) { return (sum + (int32_t) (((int64_t) x * y) >> 32)); } #endif /* !defined (ARM_MATH_DSP) */ /** * @brief Instance structure for the Q7 FIR filter. */ typedef struct { uint16_t numTaps; /**< number of filter coefficients in the filter. */ q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ } arm_fir_instance_q7; /** * @brief Instance structure for the Q15 FIR filter. */ typedef struct { uint16_t numTaps; /**< number of filter coefficients in the filter. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ } arm_fir_instance_q15; /** * @brief Instance structure for the Q31 FIR filter. */ typedef struct { uint16_t numTaps; /**< number of filter coefficients in the filter. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ } arm_fir_instance_q31; /** * @brief Instance structure for the floating-point FIR filter. */ typedef struct { uint16_t numTaps; /**< number of filter coefficients in the filter. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ } arm_fir_instance_f32; /** * @brief Processing function for the Q7 FIR filter. * @param[in] S points to an instance of the Q7 FIR filter structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_q7( const arm_fir_instance_q7 * S, q7_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q7 FIR filter. * @param[in,out] S points to an instance of the Q7 FIR structure. * @param[in] numTaps Number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed. */ void arm_fir_init_q7( arm_fir_instance_q7 * S, uint16_t numTaps, q7_t * pCoeffs, q7_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q15 FIR filter. * @param[in] S points to an instance of the Q15 FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_q15( const arm_fir_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Processing function for the fast Q15 FIR filter for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q15 FIR filter structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_fast_q15( const arm_fir_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q15 FIR filter. * @param[in,out] S points to an instance of the Q15 FIR filter structure. * @param[in] numTaps Number of filter coefficients in the filter. Must be even and greater than or equal to 4. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if * numTaps is not a supported value. */ arm_status arm_fir_init_q15( arm_fir_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, q15_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q31 FIR filter. * @param[in] S points to an instance of the Q31 FIR filter structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_q31( const arm_fir_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Processing function for the fast Q31 FIR filter for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q31 FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_fast_q31( const arm_fir_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 FIR filter. * @param[in,out] S points to an instance of the Q31 FIR structure. * @param[in] numTaps Number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. */ void arm_fir_init_q31( arm_fir_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, q31_t * pState, uint32_t blockSize); /** * @brief Processing function for the floating-point FIR filter. * @param[in] S points to an instance of the floating-point FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_f32( const arm_fir_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point FIR filter. * @param[in,out] S points to an instance of the floating-point FIR filter structure. * @param[in] numTaps Number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. */ void arm_fir_init_f32( arm_fir_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, float32_t * pState, uint32_t blockSize); /** * @brief Instance structure for the Q15 Biquad cascade filter. */ typedef struct { int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ } arm_biquad_casd_df1_inst_q15; /** * @brief Instance structure for the Q31 Biquad cascade filter. */ typedef struct { uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ } arm_biquad_casd_df1_inst_q31; /** * @brief Instance structure for the floating-point Biquad cascade filter. */ typedef struct { uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ } arm_biquad_casd_df1_inst_f32; /** * @brief Processing function for the Q15 Biquad cascade filter. * @param[in] S points to an instance of the Q15 Biquad cascade structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df1_q15( const arm_biquad_casd_df1_inst_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q15 Biquad cascade filter. * @param[in,out] S points to an instance of the Q15 Biquad cascade structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format */ void arm_biquad_cascade_df1_init_q15( arm_biquad_casd_df1_inst_q15 * S, uint8_t numStages, q15_t * pCoeffs, q15_t * pState, int8_t postShift); /** * @brief Fast but less precise processing function for the Q15 Biquad cascade filter for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q15 Biquad cascade structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df1_fast_q15( const arm_biquad_casd_df1_inst_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Processing function for the Q31 Biquad cascade filter * @param[in] S points to an instance of the Q31 Biquad cascade structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df1_q31( const arm_biquad_casd_df1_inst_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Fast but less precise processing function for the Q31 Biquad cascade filter for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q31 Biquad cascade structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df1_fast_q31( const arm_biquad_casd_df1_inst_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 Biquad cascade filter. * @param[in,out] S points to an instance of the Q31 Biquad cascade structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format */ void arm_biquad_cascade_df1_init_q31( arm_biquad_casd_df1_inst_q31 * S, uint8_t numStages, q31_t * pCoeffs, q31_t * pState, int8_t postShift); /** * @brief Processing function for the floating-point Biquad cascade filter. * @param[in] S points to an instance of the floating-point Biquad cascade structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df1_f32( const arm_biquad_casd_df1_inst_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point Biquad cascade filter. * @param[in,out] S points to an instance of the floating-point Biquad cascade structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ void arm_biquad_cascade_df1_init_f32( arm_biquad_casd_df1_inst_f32 * S, uint8_t numStages, float32_t * pCoeffs, float32_t * pState); /** * @brief Instance structure for the floating-point matrix structure. */ typedef struct { uint16_t numRows; /**< number of rows of the matrix. */ uint16_t numCols; /**< number of columns of the matrix. */ float32_t *pData; /**< points to the data of the matrix. */ } arm_matrix_instance_f32; /** * @brief Instance structure for the floating-point matrix structure. */ typedef struct { uint16_t numRows; /**< number of rows of the matrix. */ uint16_t numCols; /**< number of columns of the matrix. */ float64_t *pData; /**< points to the data of the matrix. */ } arm_matrix_instance_f64; /** * @brief Instance structure for the Q15 matrix structure. */ typedef struct { uint16_t numRows; /**< number of rows of the matrix. */ uint16_t numCols; /**< number of columns of the matrix. */ q15_t *pData; /**< points to the data of the matrix. */ } arm_matrix_instance_q15; /** * @brief Instance structure for the Q31 matrix structure. */ typedef struct { uint16_t numRows; /**< number of rows of the matrix. */ uint16_t numCols; /**< number of columns of the matrix. */ q31_t *pData; /**< points to the data of the matrix. */ } arm_matrix_instance_q31; /** * @brief Floating-point matrix addition. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_add_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); /** * @brief Q15 matrix addition. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_add_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst); /** * @brief Q31 matrix addition. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_add_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); /** * @brief Floating-point, complex, matrix multiplication. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_cmplx_mult_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); /** * @brief Q15, complex, matrix multiplication. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_cmplx_mult_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, q15_t * pScratch); /** * @brief Q31, complex, matrix multiplication. * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_cmplx_mult_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); /** * @brief Floating-point matrix transpose. * @param[in] pSrc points to the input matrix * @param[out] pDst points to the output matrix * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_trans_f32( const arm_matrix_instance_f32 * pSrc, arm_matrix_instance_f32 * pDst); /** * @brief Q15 matrix transpose. * @param[in] pSrc points to the input matrix * @param[out] pDst points to the output matrix * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_trans_q15( const arm_matrix_instance_q15 * pSrc, arm_matrix_instance_q15 * pDst); /** * @brief Q31 matrix transpose. * @param[in] pSrc points to the input matrix * @param[out] pDst points to the output matrix * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_trans_q31( const arm_matrix_instance_q31 * pSrc, arm_matrix_instance_q31 * pDst); /** * @brief Floating-point matrix multiplication * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_mult_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); /** * @brief Q15 matrix multiplication * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @param[in] pState points to the array for storing intermediate results * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_mult_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, q15_t * pState); /** * @brief Q15 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @param[in] pState points to the array for storing intermediate results * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_mult_fast_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, q15_t * pState); /** * @brief Q31 matrix multiplication * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_mult_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); /** * @brief Q31 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_mult_fast_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); /** * @brief Floating-point matrix subtraction * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_sub_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); /** * @brief Q15 matrix subtraction * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_sub_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst); /** * @brief Q31 matrix subtraction * @param[in] pSrcA points to the first input matrix structure * @param[in] pSrcB points to the second input matrix structure * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_sub_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); /** * @brief Floating-point matrix scaling. * @param[in] pSrc points to the input matrix * @param[in] scale scale factor * @param[out] pDst points to the output matrix * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_scale_f32( const arm_matrix_instance_f32 * pSrc, float32_t scale, arm_matrix_instance_f32 * pDst); /** * @brief Q15 matrix scaling. * @param[in] pSrc points to input matrix * @param[in] scaleFract fractional portion of the scale factor * @param[in] shift number of bits to shift the result by * @param[out] pDst points to output matrix * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_scale_q15( const arm_matrix_instance_q15 * pSrc, q15_t scaleFract, int32_t shift, arm_matrix_instance_q15 * pDst); /** * @brief Q31 matrix scaling. * @param[in] pSrc points to input matrix * @param[in] scaleFract fractional portion of the scale factor * @param[in] shift number of bits to shift the result by * @param[out] pDst points to output matrix structure * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ arm_status arm_mat_scale_q31( const arm_matrix_instance_q31 * pSrc, q31_t scaleFract, int32_t shift, arm_matrix_instance_q31 * pDst); /** * @brief Q31 matrix initialization. * @param[in,out] S points to an instance of the floating-point matrix structure. * @param[in] nRows number of rows in the matrix. * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ void arm_mat_init_q31( arm_matrix_instance_q31 * S, uint16_t nRows, uint16_t nColumns, q31_t * pData); /** * @brief Q15 matrix initialization. * @param[in,out] S points to an instance of the floating-point matrix structure. * @param[in] nRows number of rows in the matrix. * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ void arm_mat_init_q15( arm_matrix_instance_q15 * S, uint16_t nRows, uint16_t nColumns, q15_t * pData); /** * @brief Floating-point matrix initialization. * @param[in,out] S points to an instance of the floating-point matrix structure. * @param[in] nRows number of rows in the matrix. * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ void arm_mat_init_f32( arm_matrix_instance_f32 * S, uint16_t nRows, uint16_t nColumns, float32_t * pData); /** * @brief Instance structure for the Q15 PID Control. */ typedef struct { q15_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ #if !defined (ARM_MATH_DSP) q15_t A1; q15_t A2; #else q31_t A1; /**< The derived gain A1 = -Kp - 2Kd | Kd.*/ #endif q15_t state[3]; /**< The state array of length 3. */ q15_t Kp; /**< The proportional gain. */ q15_t Ki; /**< The integral gain. */ q15_t Kd; /**< The derivative gain. */ } arm_pid_instance_q15; /** * @brief Instance structure for the Q31 PID Control. */ typedef struct { q31_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ q31_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ q31_t A2; /**< The derived gain, A2 = Kd . */ q31_t state[3]; /**< The state array of length 3. */ q31_t Kp; /**< The proportional gain. */ q31_t Ki; /**< The integral gain. */ q31_t Kd; /**< The derivative gain. */ } arm_pid_instance_q31; /** * @brief Instance structure for the floating-point PID Control. */ typedef struct { float32_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ float32_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ float32_t A2; /**< The derived gain, A2 = Kd . */ float32_t state[3]; /**< The state array of length 3. */ float32_t Kp; /**< The proportional gain. */ float32_t Ki; /**< The integral gain. */ float32_t Kd; /**< The derivative gain. */ } arm_pid_instance_f32; /** * @brief Initialization function for the floating-point PID Control. * @param[in,out] S points to an instance of the PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ void arm_pid_init_f32( arm_pid_instance_f32 * S, int32_t resetStateFlag); /** * @brief Reset function for the floating-point PID Control. * @param[in,out] S is an instance of the floating-point PID Control structure */ void arm_pid_reset_f32( arm_pid_instance_f32 * S); /** * @brief Initialization function for the Q31 PID Control. * @param[in,out] S points to an instance of the Q15 PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ void arm_pid_init_q31( arm_pid_instance_q31 * S, int32_t resetStateFlag); /** * @brief Reset function for the Q31 PID Control. * @param[in,out] S points to an instance of the Q31 PID Control structure */ void arm_pid_reset_q31( arm_pid_instance_q31 * S); /** * @brief Initialization function for the Q15 PID Control. * @param[in,out] S points to an instance of the Q15 PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ void arm_pid_init_q15( arm_pid_instance_q15 * S, int32_t resetStateFlag); /** * @brief Reset function for the Q15 PID Control. * @param[in,out] S points to an instance of the q15 PID Control structure */ void arm_pid_reset_q15( arm_pid_instance_q15 * S); /** * @brief Instance structure for the floating-point Linear Interpolate function. */ typedef struct { uint32_t nValues; /**< nValues */ float32_t x1; /**< x1 */ float32_t xSpacing; /**< xSpacing */ float32_t *pYData; /**< pointer to the table of Y values */ } arm_linear_interp_instance_f32; /** * @brief Instance structure for the floating-point bilinear interpolation function. */ typedef struct { uint16_t numRows; /**< number of rows in the data table. */ uint16_t numCols; /**< number of columns in the data table. */ float32_t *pData; /**< points to the data table. */ } arm_bilinear_interp_instance_f32; /** * @brief Instance structure for the Q31 bilinear interpolation function. */ typedef struct { uint16_t numRows; /**< number of rows in the data table. */ uint16_t numCols; /**< number of columns in the data table. */ q31_t *pData; /**< points to the data table. */ } arm_bilinear_interp_instance_q31; /** * @brief Instance structure for the Q15 bilinear interpolation function. */ typedef struct { uint16_t numRows; /**< number of rows in the data table. */ uint16_t numCols; /**< number of columns in the data table. */ q15_t *pData; /**< points to the data table. */ } arm_bilinear_interp_instance_q15; /** * @brief Instance structure for the Q15 bilinear interpolation function. */ typedef struct { uint16_t numRows; /**< number of rows in the data table. */ uint16_t numCols; /**< number of columns in the data table. */ q7_t *pData; /**< points to the data table. */ } arm_bilinear_interp_instance_q7; /** * @brief Q7 vector multiplication. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_mult_q7( q7_t * pSrcA, q7_t * pSrcB, q7_t * pDst, uint32_t blockSize); /** * @brief Q15 vector multiplication. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_mult_q15( q15_t * pSrcA, q15_t * pSrcB, q15_t * pDst, uint32_t blockSize); /** * @brief Q31 vector multiplication. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_mult_q31( q31_t * pSrcA, q31_t * pSrcB, q31_t * pDst, uint32_t blockSize); /** * @brief Floating-point vector multiplication. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_mult_f32( float32_t * pSrcA, float32_t * pSrcB, float32_t * pDst, uint32_t blockSize); /** * @brief Instance structure for the Q15 CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ q15_t *pTwiddle; /**< points to the Sin twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ } arm_cfft_radix2_instance_q15; /* Deprecated */ arm_status arm_cfft_radix2_init_q15( arm_cfft_radix2_instance_q15 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ void arm_cfft_radix2_q15( const arm_cfft_radix2_instance_q15 * S, q15_t * pSrc); /** * @brief Instance structure for the Q15 CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ q15_t *pTwiddle; /**< points to the twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ } arm_cfft_radix4_instance_q15; /* Deprecated */ arm_status arm_cfft_radix4_init_q15( arm_cfft_radix4_instance_q15 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ void arm_cfft_radix4_q15( const arm_cfft_radix4_instance_q15 * S, q15_t * pSrc); /** * @brief Instance structure for the Radix-2 Q31 CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ q31_t *pTwiddle; /**< points to the Twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ } arm_cfft_radix2_instance_q31; /* Deprecated */ arm_status arm_cfft_radix2_init_q31( arm_cfft_radix2_instance_q31 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ void arm_cfft_radix2_q31( const arm_cfft_radix2_instance_q31 * S, q31_t * pSrc); /** * @brief Instance structure for the Q31 CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ q31_t *pTwiddle; /**< points to the twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ } arm_cfft_radix4_instance_q31; /* Deprecated */ void arm_cfft_radix4_q31( const arm_cfft_radix4_instance_q31 * S, q31_t * pSrc); /* Deprecated */ arm_status arm_cfft_radix4_init_q31( arm_cfft_radix4_instance_q31 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /** * @brief Instance structure for the floating-point CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ float32_t *pTwiddle; /**< points to the Twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ float32_t onebyfftLen; /**< value of 1/fftLen. */ } arm_cfft_radix2_instance_f32; /* Deprecated */ arm_status arm_cfft_radix2_init_f32( arm_cfft_radix2_instance_f32 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ void arm_cfft_radix2_f32( const arm_cfft_radix2_instance_f32 * S, float32_t * pSrc); /** * @brief Instance structure for the floating-point CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ float32_t *pTwiddle; /**< points to the Twiddle factor table. */ uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ float32_t onebyfftLen; /**< value of 1/fftLen. */ } arm_cfft_radix4_instance_f32; /* Deprecated */ arm_status arm_cfft_radix4_init_f32( arm_cfft_radix4_instance_f32 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ void arm_cfft_radix4_f32( const arm_cfft_radix4_instance_f32 * S, float32_t * pSrc); /** * @brief Instance structure for the fixed-point CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ const q15_t *pTwiddle; /**< points to the Twiddle factor table. */ const uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t bitRevLength; /**< bit reversal table length. */ } arm_cfft_instance_q15; void arm_cfft_q15( const arm_cfft_instance_q15 * S, q15_t * p1, uint8_t ifftFlag, uint8_t bitReverseFlag); /** * @brief Instance structure for the fixed-point CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ const q31_t *pTwiddle; /**< points to the Twiddle factor table. */ const uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t bitRevLength; /**< bit reversal table length. */ } arm_cfft_instance_q31; void arm_cfft_q31( const arm_cfft_instance_q31 * S, q31_t * p1, uint8_t ifftFlag, uint8_t bitReverseFlag); /** * @brief Instance structure for the floating-point CFFT/CIFFT function. */ typedef struct { uint16_t fftLen; /**< length of the FFT. */ const float32_t *pTwiddle; /**< points to the Twiddle factor table. */ const uint16_t *pBitRevTable; /**< points to the bit reversal table. */ uint16_t bitRevLength; /**< bit reversal table length. */ } arm_cfft_instance_f32; void arm_cfft_f32( const arm_cfft_instance_f32 * S, float32_t * p1, uint8_t ifftFlag, uint8_t bitReverseFlag); /** * @brief Instance structure for the Q15 RFFT/RIFFT function. */ typedef struct { uint32_t fftLenReal; /**< length of the real FFT. */ uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ q15_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ q15_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ const arm_cfft_instance_q15 *pCfft; /**< points to the complex FFT instance. */ } arm_rfft_instance_q15; arm_status arm_rfft_init_q15( arm_rfft_instance_q15 * S, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); void arm_rfft_q15( const arm_rfft_instance_q15 * S, q15_t * pSrc, q15_t * pDst); /** * @brief Instance structure for the Q31 RFFT/RIFFT function. */ typedef struct { uint32_t fftLenReal; /**< length of the real FFT. */ uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ q31_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ q31_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ const arm_cfft_instance_q31 *pCfft; /**< points to the complex FFT instance. */ } arm_rfft_instance_q31; arm_status arm_rfft_init_q31( arm_rfft_instance_q31 * S, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); void arm_rfft_q31( const arm_rfft_instance_q31 * S, q31_t * pSrc, q31_t * pDst); /** * @brief Instance structure for the floating-point RFFT/RIFFT function. */ typedef struct { uint32_t fftLenReal; /**< length of the real FFT. */ uint16_t fftLenBy2; /**< length of the complex FFT. */ uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ float32_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ float32_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ } arm_rfft_instance_f32; arm_status arm_rfft_init_f32( arm_rfft_instance_f32 * S, arm_cfft_radix4_instance_f32 * S_CFFT, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); void arm_rfft_f32( const arm_rfft_instance_f32 * S, float32_t * pSrc, float32_t * pDst); /** * @brief Instance structure for the floating-point RFFT/RIFFT function. */ typedef struct { arm_cfft_instance_f32 Sint; /**< Internal CFFT structure. */ uint16_t fftLenRFFT; /**< length of the real sequence */ float32_t * pTwiddleRFFT; /**< Twiddle factors real stage */ } arm_rfft_fast_instance_f32 ; arm_status arm_rfft_fast_init_f32 ( arm_rfft_fast_instance_f32 * S, uint16_t fftLen); void arm_rfft_fast_f32( arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut, uint8_t ifftFlag); /** * @brief Instance structure for the floating-point DCT4/IDCT4 function. */ typedef struct { uint16_t N; /**< length of the DCT4. */ uint16_t Nby2; /**< half of the length of the DCT4. */ float32_t normalize; /**< normalizing factor. */ float32_t *pTwiddle; /**< points to the twiddle factor table. */ float32_t *pCosFactor; /**< points to the cosFactor table. */ arm_rfft_instance_f32 *pRfft; /**< points to the real FFT instance. */ arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ } arm_dct4_instance_f32; /** * @brief Initialization function for the floating-point DCT4/IDCT4. * @param[in,out] S points to an instance of floating-point DCT4/IDCT4 structure. * @param[in] S_RFFT points to an instance of floating-point RFFT/RIFFT structure. * @param[in] S_CFFT points to an instance of floating-point CFFT/CIFFT structure. * @param[in] N length of the DCT4. * @param[in] Nby2 half of the length of the DCT4. * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. */ arm_status arm_dct4_init_f32( arm_dct4_instance_f32 * S, arm_rfft_instance_f32 * S_RFFT, arm_cfft_radix4_instance_f32 * S_CFFT, uint16_t N, uint16_t Nby2, float32_t normalize); /** * @brief Processing function for the floating-point DCT4/IDCT4. * @param[in] S points to an instance of the floating-point DCT4/IDCT4 structure. * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ void arm_dct4_f32( const arm_dct4_instance_f32 * S, float32_t * pState, float32_t * pInlineBuffer); /** * @brief Instance structure for the Q31 DCT4/IDCT4 function. */ typedef struct { uint16_t N; /**< length of the DCT4. */ uint16_t Nby2; /**< half of the length of the DCT4. */ q31_t normalize; /**< normalizing factor. */ q31_t *pTwiddle; /**< points to the twiddle factor table. */ q31_t *pCosFactor; /**< points to the cosFactor table. */ arm_rfft_instance_q31 *pRfft; /**< points to the real FFT instance. */ arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ } arm_dct4_instance_q31; /** * @brief Initialization function for the Q31 DCT4/IDCT4. * @param[in,out] S points to an instance of Q31 DCT4/IDCT4 structure. * @param[in] S_RFFT points to an instance of Q31 RFFT/RIFFT structure * @param[in] S_CFFT points to an instance of Q31 CFFT/CIFFT structure * @param[in] N length of the DCT4. * @param[in] Nby2 half of the length of the DCT4. * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. */ arm_status arm_dct4_init_q31( arm_dct4_instance_q31 * S, arm_rfft_instance_q31 * S_RFFT, arm_cfft_radix4_instance_q31 * S_CFFT, uint16_t N, uint16_t Nby2, q31_t normalize); /** * @brief Processing function for the Q31 DCT4/IDCT4. * @param[in] S points to an instance of the Q31 DCT4 structure. * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ void arm_dct4_q31( const arm_dct4_instance_q31 * S, q31_t * pState, q31_t * pInlineBuffer); /** * @brief Instance structure for the Q15 DCT4/IDCT4 function. */ typedef struct { uint16_t N; /**< length of the DCT4. */ uint16_t Nby2; /**< half of the length of the DCT4. */ q15_t normalize; /**< normalizing factor. */ q15_t *pTwiddle; /**< points to the twiddle factor table. */ q15_t *pCosFactor; /**< points to the cosFactor table. */ arm_rfft_instance_q15 *pRfft; /**< points to the real FFT instance. */ arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ } arm_dct4_instance_q15; /** * @brief Initialization function for the Q15 DCT4/IDCT4. * @param[in,out] S points to an instance of Q15 DCT4/IDCT4 structure. * @param[in] S_RFFT points to an instance of Q15 RFFT/RIFFT structure. * @param[in] S_CFFT points to an instance of Q15 CFFT/CIFFT structure. * @param[in] N length of the DCT4. * @param[in] Nby2 half of the length of the DCT4. * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. */ arm_status arm_dct4_init_q15( arm_dct4_instance_q15 * S, arm_rfft_instance_q15 * S_RFFT, arm_cfft_radix4_instance_q15 * S_CFFT, uint16_t N, uint16_t Nby2, q15_t normalize); /** * @brief Processing function for the Q15 DCT4/IDCT4. * @param[in] S points to an instance of the Q15 DCT4 structure. * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ void arm_dct4_q15( const arm_dct4_instance_q15 * S, q15_t * pState, q15_t * pInlineBuffer); /** * @brief Floating-point vector addition. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_add_f32( float32_t * pSrcA, float32_t * pSrcB, float32_t * pDst, uint32_t blockSize); /** * @brief Q7 vector addition. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_add_q7( q7_t * pSrcA, q7_t * pSrcB, q7_t * pDst, uint32_t blockSize); /** * @brief Q15 vector addition. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_add_q15( q15_t * pSrcA, q15_t * pSrcB, q15_t * pDst, uint32_t blockSize); /** * @brief Q31 vector addition. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_add_q31( q31_t * pSrcA, q31_t * pSrcB, q31_t * pDst, uint32_t blockSize); /** * @brief Floating-point vector subtraction. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_sub_f32( float32_t * pSrcA, float32_t * pSrcB, float32_t * pDst, uint32_t blockSize); /** * @brief Q7 vector subtraction. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_sub_q7( q7_t * pSrcA, q7_t * pSrcB, q7_t * pDst, uint32_t blockSize); /** * @brief Q15 vector subtraction. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_sub_q15( q15_t * pSrcA, q15_t * pSrcB, q15_t * pDst, uint32_t blockSize); /** * @brief Q31 vector subtraction. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ void arm_sub_q31( q31_t * pSrcA, q31_t * pSrcB, q31_t * pDst, uint32_t blockSize); /** * @brief Multiplies a floating-point vector by a scalar. * @param[in] pSrc points to the input vector * @param[in] scale scale factor to be applied * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_scale_f32( float32_t * pSrc, float32_t scale, float32_t * pDst, uint32_t blockSize); /** * @brief Multiplies a Q7 vector by a scalar. * @param[in] pSrc points to the input vector * @param[in] scaleFract fractional portion of the scale value * @param[in] shift number of bits to shift the result by * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_scale_q7( q7_t * pSrc, q7_t scaleFract, int8_t shift, q7_t * pDst, uint32_t blockSize); /** * @brief Multiplies a Q15 vector by a scalar. * @param[in] pSrc points to the input vector * @param[in] scaleFract fractional portion of the scale value * @param[in] shift number of bits to shift the result by * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_scale_q15( q15_t * pSrc, q15_t scaleFract, int8_t shift, q15_t * pDst, uint32_t blockSize); /** * @brief Multiplies a Q31 vector by a scalar. * @param[in] pSrc points to the input vector * @param[in] scaleFract fractional portion of the scale value * @param[in] shift number of bits to shift the result by * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_scale_q31( q31_t * pSrc, q31_t scaleFract, int8_t shift, q31_t * pDst, uint32_t blockSize); /** * @brief Q7 vector absolute value. * @param[in] pSrc points to the input buffer * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ void arm_abs_q7( q7_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Floating-point vector absolute value. * @param[in] pSrc points to the input buffer * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ void arm_abs_f32( float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Q15 vector absolute value. * @param[in] pSrc points to the input buffer * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ void arm_abs_q15( q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Q31 vector absolute value. * @param[in] pSrc points to the input buffer * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ void arm_abs_q31( q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Dot product of floating-point vectors. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ void arm_dot_prod_f32( float32_t * pSrcA, float32_t * pSrcB, uint32_t blockSize, float32_t * result); /** * @brief Dot product of Q7 vectors. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ void arm_dot_prod_q7( q7_t * pSrcA, q7_t * pSrcB, uint32_t blockSize, q31_t * result); /** * @brief Dot product of Q15 vectors. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ void arm_dot_prod_q15( q15_t * pSrcA, q15_t * pSrcB, uint32_t blockSize, q63_t * result); /** * @brief Dot product of Q31 vectors. * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ void arm_dot_prod_q31( q31_t * pSrcA, q31_t * pSrcB, uint32_t blockSize, q63_t * result); /** * @brief Shifts the elements of a Q7 vector a specified number of bits. * @param[in] pSrc points to the input vector * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_shift_q7( q7_t * pSrc, int8_t shiftBits, q7_t * pDst, uint32_t blockSize); /** * @brief Shifts the elements of a Q15 vector a specified number of bits. * @param[in] pSrc points to the input vector * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_shift_q15( q15_t * pSrc, int8_t shiftBits, q15_t * pDst, uint32_t blockSize); /** * @brief Shifts the elements of a Q31 vector a specified number of bits. * @param[in] pSrc points to the input vector * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_shift_q31( q31_t * pSrc, int8_t shiftBits, q31_t * pDst, uint32_t blockSize); /** * @brief Adds a constant offset to a floating-point vector. * @param[in] pSrc points to the input vector * @param[in] offset is the offset to be added * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_offset_f32( float32_t * pSrc, float32_t offset, float32_t * pDst, uint32_t blockSize); /** * @brief Adds a constant offset to a Q7 vector. * @param[in] pSrc points to the input vector * @param[in] offset is the offset to be added * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_offset_q7( q7_t * pSrc, q7_t offset, q7_t * pDst, uint32_t blockSize); /** * @brief Adds a constant offset to a Q15 vector. * @param[in] pSrc points to the input vector * @param[in] offset is the offset to be added * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_offset_q15( q15_t * pSrc, q15_t offset, q15_t * pDst, uint32_t blockSize); /** * @brief Adds a constant offset to a Q31 vector. * @param[in] pSrc points to the input vector * @param[in] offset is the offset to be added * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_offset_q31( q31_t * pSrc, q31_t offset, q31_t * pDst, uint32_t blockSize); /** * @brief Negates the elements of a floating-point vector. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_negate_f32( float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Negates the elements of a Q7 vector. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_negate_q7( q7_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Negates the elements of a Q15 vector. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_negate_q15( q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Negates the elements of a Q31 vector. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ void arm_negate_q31( q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Copies the elements of a floating-point vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_copy_f32( float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Copies the elements of a Q7 vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_copy_q7( q7_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Copies the elements of a Q15 vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_copy_q15( q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Copies the elements of a Q31 vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_copy_q31( q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Fills a constant value into a floating-point vector. * @param[in] value input value to be filled * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_fill_f32( float32_t value, float32_t * pDst, uint32_t blockSize); /** * @brief Fills a constant value into a Q7 vector. * @param[in] value input value to be filled * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_fill_q7( q7_t value, q7_t * pDst, uint32_t blockSize); /** * @brief Fills a constant value into a Q15 vector. * @param[in] value input value to be filled * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_fill_q15( q15_t value, q15_t * pDst, uint32_t blockSize); /** * @brief Fills a constant value into a Q31 vector. * @param[in] value input value to be filled * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_fill_q31( q31_t value, q31_t * pDst, uint32_t blockSize); /** * @brief Convolution of floating-point sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the location where the output result is written. Length srcALen+srcBLen-1. */ void arm_conv_f32( float32_t * pSrcA, uint32_t srcALen, float32_t * pSrcB, uint32_t srcBLen, float32_t * pDst); /** * @brief Convolution of Q15 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). */ void arm_conv_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Convolution of Q15 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the location where the output result is written. Length srcALen+srcBLen-1. */ void arm_conv_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst); /** * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ void arm_conv_fast_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst); /** * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). */ void arm_conv_fast_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Convolution of Q31 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ void arm_conv_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst); /** * @brief Convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ void arm_conv_fast_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst); /** * @brief Convolution of Q7 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. * @param[in] pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). */ void arm_conv_opt_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Convolution of Q7 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ void arm_conv_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst); /** * @brief Partial convolution of floating-point sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_f32( float32_t * pSrcA, uint32_t srcALen, float32_t * pSrcB, uint32_t srcBLen, float32_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Partial convolution of Q15 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, uint32_t firstIndex, uint32_t numPoints, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Partial convolution of Q15 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_fast_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_fast_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, uint32_t firstIndex, uint32_t numPoints, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Partial convolution of Q31 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Partial convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_fast_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Partial convolution of Q7 sequences * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @param[in] pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_opt_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst, uint32_t firstIndex, uint32_t numPoints, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Partial convolution of Q7 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data * @param[in] firstIndex is the first output sample to start with. * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ arm_status arm_conv_partial_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst, uint32_t firstIndex, uint32_t numPoints); /** * @brief Instance structure for the Q15 FIR decimator. */ typedef struct { uint8_t M; /**< decimation factor. */ uint16_t numTaps; /**< number of coefficients in the filter. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ } arm_fir_decimate_instance_q15; /** * @brief Instance structure for the Q31 FIR decimator. */ typedef struct { uint8_t M; /**< decimation factor. */ uint16_t numTaps; /**< number of coefficients in the filter. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ } arm_fir_decimate_instance_q31; /** * @brief Instance structure for the floating-point FIR decimator. */ typedef struct { uint8_t M; /**< decimation factor. */ uint16_t numTaps; /**< number of coefficients in the filter. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ } arm_fir_decimate_instance_f32; /** * @brief Processing function for the floating-point FIR decimator. * @param[in] S points to an instance of the floating-point FIR decimator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ void arm_fir_decimate_f32( const arm_fir_decimate_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point FIR decimator. * @param[in,out] S points to an instance of the floating-point FIR decimator structure. * @param[in] numTaps number of coefficients in the filter. * @param[in] M decimation factor. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * blockSize is not a multiple of M. */ arm_status arm_fir_decimate_init_f32( arm_fir_decimate_instance_f32 * S, uint16_t numTaps, uint8_t M, float32_t * pCoeffs, float32_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q15 FIR decimator. * @param[in] S points to an instance of the Q15 FIR decimator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ void arm_fir_decimate_q15( const arm_fir_decimate_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Processing function for the Q15 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q15 FIR decimator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ void arm_fir_decimate_fast_q15( const arm_fir_decimate_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q15 FIR decimator. * @param[in,out] S points to an instance of the Q15 FIR decimator structure. * @param[in] numTaps number of coefficients in the filter. * @param[in] M decimation factor. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * blockSize is not a multiple of M. */ arm_status arm_fir_decimate_init_q15( arm_fir_decimate_instance_q15 * S, uint16_t numTaps, uint8_t M, q15_t * pCoeffs, q15_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q31 FIR decimator. * @param[in] S points to an instance of the Q31 FIR decimator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ void arm_fir_decimate_q31( const arm_fir_decimate_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Processing function for the Q31 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. * @param[in] S points to an instance of the Q31 FIR decimator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ void arm_fir_decimate_fast_q31( arm_fir_decimate_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 FIR decimator. * @param[in,out] S points to an instance of the Q31 FIR decimator structure. * @param[in] numTaps number of coefficients in the filter. * @param[in] M decimation factor. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * blockSize is not a multiple of M. */ arm_status arm_fir_decimate_init_q31( arm_fir_decimate_instance_q31 * S, uint16_t numTaps, uint8_t M, q31_t * pCoeffs, q31_t * pState, uint32_t blockSize); /** * @brief Instance structure for the Q15 FIR interpolator. */ typedef struct { uint8_t L; /**< upsample factor. */ uint16_t phaseLength; /**< length of each polyphase filter component. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ } arm_fir_interpolate_instance_q15; /** * @brief Instance structure for the Q31 FIR interpolator. */ typedef struct { uint8_t L; /**< upsample factor. */ uint16_t phaseLength; /**< length of each polyphase filter component. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ } arm_fir_interpolate_instance_q31; /** * @brief Instance structure for the floating-point FIR interpolator. */ typedef struct { uint8_t L; /**< upsample factor. */ uint16_t phaseLength; /**< length of each polyphase filter component. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ } arm_fir_interpolate_instance_f32; /** * @brief Processing function for the Q15 FIR interpolator. * @param[in] S points to an instance of the Q15 FIR interpolator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_interpolate_q15( const arm_fir_interpolate_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q15 FIR interpolator. * @param[in,out] S points to an instance of the Q15 FIR interpolator structure. * @param[in] L upsample factor. * @param[in] numTaps number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficient buffer. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ arm_status arm_fir_interpolate_init_q15( arm_fir_interpolate_instance_q15 * S, uint8_t L, uint16_t numTaps, q15_t * pCoeffs, q15_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q31 FIR interpolator. * @param[in] S points to an instance of the Q15 FIR interpolator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_interpolate_q31( const arm_fir_interpolate_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 FIR interpolator. * @param[in,out] S points to an instance of the Q31 FIR interpolator structure. * @param[in] L upsample factor. * @param[in] numTaps number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficient buffer. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ arm_status arm_fir_interpolate_init_q31( arm_fir_interpolate_instance_q31 * S, uint8_t L, uint16_t numTaps, q31_t * pCoeffs, q31_t * pState, uint32_t blockSize); /** * @brief Processing function for the floating-point FIR interpolator. * @param[in] S points to an instance of the floating-point FIR interpolator structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_interpolate_f32( const arm_fir_interpolate_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point FIR interpolator. * @param[in,out] S points to an instance of the floating-point FIR interpolator structure. * @param[in] L upsample factor. * @param[in] numTaps number of filter coefficients in the filter. * @param[in] pCoeffs points to the filter coefficient buffer. * @param[in] pState points to the state buffer. * @param[in] blockSize number of input samples to process per call. * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ arm_status arm_fir_interpolate_init_f32( arm_fir_interpolate_instance_f32 * S, uint8_t L, uint16_t numTaps, float32_t * pCoeffs, float32_t * pState, uint32_t blockSize); /** * @brief Instance structure for the high precision Q31 Biquad cascade filter. */ typedef struct { uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ } arm_biquad_cas_df1_32x64_ins_q31; /** * @param[in] S points to an instance of the high precision Q31 Biquad cascade filter structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_biquad_cas_df1_32x64_q31( const arm_biquad_cas_df1_32x64_ins_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @param[in,out] S points to an instance of the high precision Q31 Biquad cascade filter structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format */ void arm_biquad_cas_df1_32x64_init_q31( arm_biquad_cas_df1_32x64_ins_q31 * S, uint8_t numStages, q31_t * pCoeffs, q63_t * pState, uint8_t postShift); /** * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. */ typedef struct { uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ } arm_biquad_cascade_df2T_instance_f32; /** * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. */ typedef struct { uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ float32_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ } arm_biquad_cascade_stereo_df2T_instance_f32; /** * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. */ typedef struct { uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ float64_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ float64_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ } arm_biquad_cascade_df2T_instance_f64; /** * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. * @param[in] S points to an instance of the filter data structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df2T_f32( const arm_biquad_cascade_df2T_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. 2 channels * @param[in] S points to an instance of the filter data structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_stereo_df2T_f32( const arm_biquad_cascade_stereo_df2T_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. * @param[in] S points to an instance of the filter data structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_biquad_cascade_df2T_f64( const arm_biquad_cascade_df2T_instance_f64 * S, float64_t * pSrc, float64_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. * @param[in,out] S points to an instance of the filter data structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ void arm_biquad_cascade_df2T_init_f32( arm_biquad_cascade_df2T_instance_f32 * S, uint8_t numStages, float32_t * pCoeffs, float32_t * pState); /** * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. * @param[in,out] S points to an instance of the filter data structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ void arm_biquad_cascade_stereo_df2T_init_f32( arm_biquad_cascade_stereo_df2T_instance_f32 * S, uint8_t numStages, float32_t * pCoeffs, float32_t * pState); /** * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. * @param[in,out] S points to an instance of the filter data structure. * @param[in] numStages number of 2nd order stages in the filter. * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ void arm_biquad_cascade_df2T_init_f64( arm_biquad_cascade_df2T_instance_f64 * S, uint8_t numStages, float64_t * pCoeffs, float64_t * pState); /** * @brief Instance structure for the Q15 FIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of filter stages. */ q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ } arm_fir_lattice_instance_q15; /** * @brief Instance structure for the Q31 FIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of filter stages. */ q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ } arm_fir_lattice_instance_q31; /** * @brief Instance structure for the floating-point FIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of filter stages. */ float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ } arm_fir_lattice_instance_f32; /** * @brief Initialization function for the Q15 FIR lattice filter. * @param[in] S points to an instance of the Q15 FIR lattice structure. * @param[in] numStages number of filter stages. * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ void arm_fir_lattice_init_q15( arm_fir_lattice_instance_q15 * S, uint16_t numStages, q15_t * pCoeffs, q15_t * pState); /** * @brief Processing function for the Q15 FIR lattice filter. * @param[in] S points to an instance of the Q15 FIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_fir_lattice_q15( const arm_fir_lattice_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 FIR lattice filter. * @param[in] S points to an instance of the Q31 FIR lattice structure. * @param[in] numStages number of filter stages. * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ void arm_fir_lattice_init_q31( arm_fir_lattice_instance_q31 * S, uint16_t numStages, q31_t * pCoeffs, q31_t * pState); /** * @brief Processing function for the Q31 FIR lattice filter. * @param[in] S points to an instance of the Q31 FIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_fir_lattice_q31( const arm_fir_lattice_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point FIR lattice filter. * @param[in] S points to an instance of the floating-point FIR lattice structure. * @param[in] numStages number of filter stages. * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ void arm_fir_lattice_init_f32( arm_fir_lattice_instance_f32 * S, uint16_t numStages, float32_t * pCoeffs, float32_t * pState); /** * @brief Processing function for the floating-point FIR lattice filter. * @param[in] S points to an instance of the floating-point FIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ void arm_fir_lattice_f32( const arm_fir_lattice_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Instance structure for the Q15 IIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of stages in the filter. */ q15_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ q15_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ q15_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ } arm_iir_lattice_instance_q15; /** * @brief Instance structure for the Q31 IIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of stages in the filter. */ q31_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ q31_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ q31_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ } arm_iir_lattice_instance_q31; /** * @brief Instance structure for the floating-point IIR lattice filter. */ typedef struct { uint16_t numStages; /**< number of stages in the filter. */ float32_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ float32_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ float32_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ } arm_iir_lattice_instance_f32; /** * @brief Processing function for the floating-point IIR lattice filter. * @param[in] S points to an instance of the floating-point IIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_iir_lattice_f32( const arm_iir_lattice_instance_f32 * S, float32_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the floating-point IIR lattice filter. * @param[in] S points to an instance of the floating-point IIR lattice structure. * @param[in] numStages number of stages in the filter. * @param[in] pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. * @param[in] pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. * @param[in] pState points to the state buffer. The array is of length numStages+blockSize-1. * @param[in] blockSize number of samples to process. */ void arm_iir_lattice_init_f32( arm_iir_lattice_instance_f32 * S, uint16_t numStages, float32_t * pkCoeffs, float32_t * pvCoeffs, float32_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q31 IIR lattice filter. * @param[in] S points to an instance of the Q31 IIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_iir_lattice_q31( const arm_iir_lattice_instance_q31 * S, q31_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q31 IIR lattice filter. * @param[in] S points to an instance of the Q31 IIR lattice structure. * @param[in] numStages number of stages in the filter. * @param[in] pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. * @param[in] pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. * @param[in] pState points to the state buffer. The array is of length numStages+blockSize. * @param[in] blockSize number of samples to process. */ void arm_iir_lattice_init_q31( arm_iir_lattice_instance_q31 * S, uint16_t numStages, q31_t * pkCoeffs, q31_t * pvCoeffs, q31_t * pState, uint32_t blockSize); /** * @brief Processing function for the Q15 IIR lattice filter. * @param[in] S points to an instance of the Q15 IIR lattice structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ void arm_iir_lattice_q15( const arm_iir_lattice_instance_q15 * S, q15_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Initialization function for the Q15 IIR lattice filter. * @param[in] S points to an instance of the fixed-point Q15 IIR lattice structure. * @param[in] numStages number of stages in the filter. * @param[in] pkCoeffs points to reflection coefficient buffer. The array is of length numStages. * @param[in] pvCoeffs points to ladder coefficient buffer. The array is of length numStages+1. * @param[in] pState points to state buffer. The array is of length numStages+blockSize. * @param[in] blockSize number of samples to process per call. */ void arm_iir_lattice_init_q15( arm_iir_lattice_instance_q15 * S, uint16_t numStages, q15_t * pkCoeffs, q15_t * pvCoeffs, q15_t * pState, uint32_t blockSize); /** * @brief Instance structure for the floating-point LMS filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ float32_t mu; /**< step size that controls filter coefficient updates. */ } arm_lms_instance_f32; /** * @brief Processing function for floating-point LMS filter. * @param[in] S points to an instance of the floating-point LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_f32( const arm_lms_instance_f32 * S, float32_t * pSrc, float32_t * pRef, float32_t * pOut, float32_t * pErr, uint32_t blockSize); /** * @brief Initialization function for floating-point LMS filter. * @param[in] S points to an instance of the floating-point LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to the coefficient buffer. * @param[in] pState points to state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. */ void arm_lms_init_f32( arm_lms_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, float32_t * pState, float32_t mu, uint32_t blockSize); /** * @brief Instance structure for the Q15 LMS filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ q15_t mu; /**< step size that controls filter coefficient updates. */ uint32_t postShift; /**< bit shift applied to coefficients. */ } arm_lms_instance_q15; /** * @brief Initialization function for the Q15 LMS filter. * @param[in] S points to an instance of the Q15 LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to the coefficient buffer. * @param[in] pState points to the state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ void arm_lms_init_q15( arm_lms_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, q15_t * pState, q15_t mu, uint32_t blockSize, uint32_t postShift); /** * @brief Processing function for Q15 LMS filter. * @param[in] S points to an instance of the Q15 LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_q15( const arm_lms_instance_q15 * S, q15_t * pSrc, q15_t * pRef, q15_t * pOut, q15_t * pErr, uint32_t blockSize); /** * @brief Instance structure for the Q31 LMS filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ q31_t mu; /**< step size that controls filter coefficient updates. */ uint32_t postShift; /**< bit shift applied to coefficients. */ } arm_lms_instance_q31; /** * @brief Processing function for Q31 LMS filter. * @param[in] S points to an instance of the Q15 LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_q31( const arm_lms_instance_q31 * S, q31_t * pSrc, q31_t * pRef, q31_t * pOut, q31_t * pErr, uint32_t blockSize); /** * @brief Initialization function for Q31 LMS filter. * @param[in] S points to an instance of the Q31 LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to coefficient buffer. * @param[in] pState points to state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ void arm_lms_init_q31( arm_lms_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, q31_t * pState, q31_t mu, uint32_t blockSize, uint32_t postShift); /** * @brief Instance structure for the floating-point normalized LMS filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ float32_t mu; /**< step size that control filter coefficient updates. */ float32_t energy; /**< saves previous frame energy. */ float32_t x0; /**< saves previous input sample. */ } arm_lms_norm_instance_f32; /** * @brief Processing function for floating-point normalized LMS filter. * @param[in] S points to an instance of the floating-point normalized LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_norm_f32( arm_lms_norm_instance_f32 * S, float32_t * pSrc, float32_t * pRef, float32_t * pOut, float32_t * pErr, uint32_t blockSize); /** * @brief Initialization function for floating-point normalized LMS filter. * @param[in] S points to an instance of the floating-point LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to coefficient buffer. * @param[in] pState points to state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. */ void arm_lms_norm_init_f32( arm_lms_norm_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, float32_t * pState, float32_t mu, uint32_t blockSize); /** * @brief Instance structure for the Q31 normalized LMS filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ q31_t mu; /**< step size that controls filter coefficient updates. */ uint8_t postShift; /**< bit shift applied to coefficients. */ q31_t *recipTable; /**< points to the reciprocal initial value table. */ q31_t energy; /**< saves previous frame energy. */ q31_t x0; /**< saves previous input sample. */ } arm_lms_norm_instance_q31; /** * @brief Processing function for Q31 normalized LMS filter. * @param[in] S points to an instance of the Q31 normalized LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_norm_q31( arm_lms_norm_instance_q31 * S, q31_t * pSrc, q31_t * pRef, q31_t * pOut, q31_t * pErr, uint32_t blockSize); /** * @brief Initialization function for Q31 normalized LMS filter. * @param[in] S points to an instance of the Q31 normalized LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to coefficient buffer. * @param[in] pState points to state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ void arm_lms_norm_init_q31( arm_lms_norm_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, q31_t * pState, q31_t mu, uint32_t blockSize, uint8_t postShift); /** * @brief Instance structure for the Q15 normalized LMS filter. */ typedef struct { uint16_t numTaps; /**< Number of coefficients in the filter. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ q15_t mu; /**< step size that controls filter coefficient updates. */ uint8_t postShift; /**< bit shift applied to coefficients. */ q15_t *recipTable; /**< Points to the reciprocal initial value table. */ q15_t energy; /**< saves previous frame energy. */ q15_t x0; /**< saves previous input sample. */ } arm_lms_norm_instance_q15; /** * @brief Processing function for Q15 normalized LMS filter. * @param[in] S points to an instance of the Q15 normalized LMS filter structure. * @param[in] pSrc points to the block of input data. * @param[in] pRef points to the block of reference data. * @param[out] pOut points to the block of output data. * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ void arm_lms_norm_q15( arm_lms_norm_instance_q15 * S, q15_t * pSrc, q15_t * pRef, q15_t * pOut, q15_t * pErr, uint32_t blockSize); /** * @brief Initialization function for Q15 normalized LMS filter. * @param[in] S points to an instance of the Q15 normalized LMS filter structure. * @param[in] numTaps number of filter coefficients. * @param[in] pCoeffs points to coefficient buffer. * @param[in] pState points to state buffer. * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ void arm_lms_norm_init_q15( arm_lms_norm_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, q15_t * pState, q15_t mu, uint32_t blockSize, uint8_t postShift); /** * @brief Correlation of floating-point sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_f32( float32_t * pSrcA, uint32_t srcALen, float32_t * pSrcB, uint32_t srcBLen, float32_t * pDst); /** * @brief Correlation of Q15 sequences * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. * @param[in] pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. */ void arm_correlate_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, q15_t * pScratch); /** * @brief Correlation of Q15 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst); /** * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_fast_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst); /** * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. * @param[in] pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. */ void arm_correlate_fast_opt_q15( q15_t * pSrcA, uint32_t srcALen, q15_t * pSrcB, uint32_t srcBLen, q15_t * pDst, q15_t * pScratch); /** * @brief Correlation of Q31 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst); /** * @brief Correlation of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_fast_q31( q31_t * pSrcA, uint32_t srcALen, q31_t * pSrcB, uint32_t srcBLen, q31_t * pDst); /** * @brief Correlation of Q7 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. * @param[in] pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). */ void arm_correlate_opt_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst, q15_t * pScratch1, q15_t * pScratch2); /** * @brief Correlation of Q7 sequences. * @param[in] pSrcA points to the first input sequence. * @param[in] srcALen length of the first input sequence. * @param[in] pSrcB points to the second input sequence. * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ void arm_correlate_q7( q7_t * pSrcA, uint32_t srcALen, q7_t * pSrcB, uint32_t srcBLen, q7_t * pDst); /** * @brief Instance structure for the floating-point sparse FIR filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ } arm_fir_sparse_instance_f32; /** * @brief Instance structure for the Q31 sparse FIR filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ } arm_fir_sparse_instance_q31; /** * @brief Instance structure for the Q15 sparse FIR filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ } arm_fir_sparse_instance_q15; /** * @brief Instance structure for the Q7 sparse FIR filter. */ typedef struct { uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ } arm_fir_sparse_instance_q7; /** * @brief Processing function for the floating-point sparse FIR filter. * @param[in] S points to an instance of the floating-point sparse FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_sparse_f32( arm_fir_sparse_instance_f32 * S, float32_t * pSrc, float32_t * pDst, float32_t * pScratchIn, uint32_t blockSize); /** * @brief Initialization function for the floating-point sparse FIR filter. * @param[in,out] S points to an instance of the floating-point sparse FIR structure. * @param[in] numTaps number of nonzero coefficients in the filter. * @param[in] pCoeffs points to the array of filter coefficients. * @param[in] pState points to the state buffer. * @param[in] pTapDelay points to the array of offset times. * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ void arm_fir_sparse_init_f32( arm_fir_sparse_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, float32_t * pState, int32_t * pTapDelay, uint16_t maxDelay, uint32_t blockSize); /** * @brief Processing function for the Q31 sparse FIR filter. * @param[in] S points to an instance of the Q31 sparse FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_sparse_q31( arm_fir_sparse_instance_q31 * S, q31_t * pSrc, q31_t * pDst, q31_t * pScratchIn, uint32_t blockSize); /** * @brief Initialization function for the Q31 sparse FIR filter. * @param[in,out] S points to an instance of the Q31 sparse FIR structure. * @param[in] numTaps number of nonzero coefficients in the filter. * @param[in] pCoeffs points to the array of filter coefficients. * @param[in] pState points to the state buffer. * @param[in] pTapDelay points to the array of offset times. * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ void arm_fir_sparse_init_q31( arm_fir_sparse_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, q31_t * pState, int32_t * pTapDelay, uint16_t maxDelay, uint32_t blockSize); /** * @brief Processing function for the Q15 sparse FIR filter. * @param[in] S points to an instance of the Q15 sparse FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] pScratchOut points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_sparse_q15( arm_fir_sparse_instance_q15 * S, q15_t * pSrc, q15_t * pDst, q15_t * pScratchIn, q31_t * pScratchOut, uint32_t blockSize); /** * @brief Initialization function for the Q15 sparse FIR filter. * @param[in,out] S points to an instance of the Q15 sparse FIR structure. * @param[in] numTaps number of nonzero coefficients in the filter. * @param[in] pCoeffs points to the array of filter coefficients. * @param[in] pState points to the state buffer. * @param[in] pTapDelay points to the array of offset times. * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ void arm_fir_sparse_init_q15( arm_fir_sparse_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, q15_t * pState, int32_t * pTapDelay, uint16_t maxDelay, uint32_t blockSize); /** * @brief Processing function for the Q7 sparse FIR filter. * @param[in] S points to an instance of the Q7 sparse FIR structure. * @param[in] pSrc points to the block of input data. * @param[out] pDst points to the block of output data * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] pScratchOut points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ void arm_fir_sparse_q7( arm_fir_sparse_instance_q7 * S, q7_t * pSrc, q7_t * pDst, q7_t * pScratchIn, q31_t * pScratchOut, uint32_t blockSize); /** * @brief Initialization function for the Q7 sparse FIR filter. * @param[in,out] S points to an instance of the Q7 sparse FIR structure. * @param[in] numTaps number of nonzero coefficients in the filter. * @param[in] pCoeffs points to the array of filter coefficients. * @param[in] pState points to the state buffer. * @param[in] pTapDelay points to the array of offset times. * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ void arm_fir_sparse_init_q7( arm_fir_sparse_instance_q7 * S, uint16_t numTaps, q7_t * pCoeffs, q7_t * pState, int32_t * pTapDelay, uint16_t maxDelay, uint32_t blockSize); /** * @brief Floating-point sin_cos function. * @param[in] theta input value in degrees * @param[out] pSinVal points to the processed sine output. * @param[out] pCosVal points to the processed cos output. */ void arm_sin_cos_f32( float32_t theta, float32_t * pSinVal, float32_t * pCosVal); /** * @brief Q31 sin_cos function. * @param[in] theta scaled input value in degrees * @param[out] pSinVal points to the processed sine output. * @param[out] pCosVal points to the processed cosine output. */ void arm_sin_cos_q31( q31_t theta, q31_t * pSinVal, q31_t * pCosVal); /** * @brief Floating-point complex conjugate. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_conj_f32( float32_t * pSrc, float32_t * pDst, uint32_t numSamples); /** * @brief Q31 complex conjugate. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_conj_q31( q31_t * pSrc, q31_t * pDst, uint32_t numSamples); /** * @brief Q15 complex conjugate. * @param[in] pSrc points to the input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_conj_q15( q15_t * pSrc, q15_t * pDst, uint32_t numSamples); /** * @brief Floating-point complex magnitude squared * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_squared_f32( float32_t * pSrc, float32_t * pDst, uint32_t numSamples); /** * @brief Q31 complex magnitude squared * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_squared_q31( q31_t * pSrc, q31_t * pDst, uint32_t numSamples); /** * @brief Q15 complex magnitude squared * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_squared_q15( q15_t * pSrc, q15_t * pDst, uint32_t numSamples); /** * @ingroup groupController */ /** * @defgroup PID PID Motor Control * * A Proportional Integral Derivative (PID) controller is a generic feedback control * loop mechanism widely used in industrial control systems. * A PID controller is the most commonly used type of feedback controller. * * This set of functions implements (PID) controllers * for Q15, Q31, and floating-point data types. The functions operate on a single sample * of data and each call to the function returns a single processed value. * S points to an instance of the PID control data structure. in * is the input sample value. The functions return the output value. * * \par Algorithm: *
   *    y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
   *    A0 = Kp + Ki + Kd
   *    A1 = (-Kp ) - (2 * Kd )
   *    A2 = Kd  
* * \par * where \c Kp is proportional constant, \c Ki is Integral constant and \c Kd is Derivative constant * * \par * \image html PID.gif "Proportional Integral Derivative Controller" * * \par * The PID controller calculates an "error" value as the difference between * the measured output and the reference input. * The controller attempts to minimize the error by adjusting the process control inputs. * The proportional value determines the reaction to the current error, * the integral value determines the reaction based on the sum of recent errors, * and the derivative value determines the reaction based on the rate at which the error has been changing. * * \par Instance Structure * The Gains A0, A1, A2 and state variables for a PID controller are stored together in an instance data structure. * A separate instance structure must be defined for each PID Controller. * There are separate instance structure declarations for each of the 3 supported data types. * * \par Reset Functions * There is also an associated reset function for each data type which clears the state array. * * \par Initialization Functions * There is also an associated initialization function for each data type. * The initialization function performs the following operations: * - Initializes the Gains A0, A1, A2 from Kp,Ki, Kd gains. * - Zeros out the values in the state buffer. * * \par * Instance structure cannot be placed into a const data section and it is recommended to use the initialization function. * * \par Fixed-Point Behavior * Care must be taken when using the fixed-point versions of the PID Controller functions. * In particular, the overflow and saturation behavior of the accumulator used in each function must be considered. * Refer to the function specific documentation below for usage guidelines. */ /** * @addtogroup PID * @{ */ /** * @brief Process function for the floating-point PID Control. * @param[in,out] S is an instance of the floating-point PID Control structure * @param[in] in input sample to process * @return out processed output sample. */ CMSIS_INLINE __STATIC_INLINE float32_t arm_pid_f32( arm_pid_instance_f32 * S, float32_t in) { float32_t out; /* y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] */ out = (S->A0 * in) + (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); /* Update state */ S->state[1] = S->state[0]; S->state[0] = in; S->state[2] = out; /* return to application */ return (out); } /** * @brief Process function for the Q31 PID Control. * @param[in,out] S points to an instance of the Q31 PID Control structure * @param[in] in input sample to process * @return out processed output sample. * * Scaling and Overflow Behavior: * \par * The function is implemented using an internal 64-bit accumulator. * The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. * Thus, if the accumulator result overflows it wraps around rather than clip. * In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. * After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. */ CMSIS_INLINE __STATIC_INLINE q31_t arm_pid_q31( arm_pid_instance_q31 * S, q31_t in) { q63_t acc; q31_t out; /* acc = A0 * x[n] */ acc = (q63_t) S->A0 * in; /* acc += A1 * x[n-1] */ acc += (q63_t) S->A1 * S->state[0]; /* acc += A2 * x[n-2] */ acc += (q63_t) S->A2 * S->state[1]; /* convert output to 1.31 format to add y[n-1] */ out = (q31_t) (acc >> 31U); /* out += y[n-1] */ out += S->state[2]; /* Update state */ S->state[1] = S->state[0]; S->state[0] = in; S->state[2] = out; /* return to application */ return (out); } /** * @brief Process function for the Q15 PID Control. * @param[in,out] S points to an instance of the Q15 PID Control structure * @param[in] in input sample to process * @return out processed output sample. * * Scaling and Overflow Behavior: * \par * The function is implemented using a 64-bit internal accumulator. * Both Gains and state variables are represented in 1.15 format and multiplications yield a 2.30 result. * The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. * There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. * After all additions have been performed, the accumulator is truncated to 34.15 format by discarding low 15 bits. * Lastly, the accumulator is saturated to yield a result in 1.15 format. */ CMSIS_INLINE __STATIC_INLINE q15_t arm_pid_q15( arm_pid_instance_q15 * S, q15_t in) { q63_t acc; q15_t out; #if defined (ARM_MATH_DSP) __SIMD32_TYPE *vstate; /* Implementation of PID controller */ /* acc = A0 * x[n] */ acc = (q31_t) __SMUAD((uint32_t)S->A0, (uint32_t)in); /* acc += A1 * x[n-1] + A2 * x[n-2] */ vstate = __SIMD32_CONST(S->state); acc = (q63_t)__SMLALD((uint32_t)S->A1, (uint32_t)*vstate, (uint64_t)acc); #else /* acc = A0 * x[n] */ acc = ((q31_t) S->A0) * in; /* acc += A1 * x[n-1] + A2 * x[n-2] */ acc += (q31_t) S->A1 * S->state[0]; acc += (q31_t) S->A2 * S->state[1]; #endif /* acc += y[n-1] */ acc += (q31_t) S->state[2] << 15; /* saturate the output */ out = (q15_t) (__SSAT((acc >> 15), 16)); /* Update state */ S->state[1] = S->state[0]; S->state[0] = in; S->state[2] = out; /* return to application */ return (out); } /** * @} end of PID group */ /** * @brief Floating-point matrix inverse. * @param[in] src points to the instance of the input floating-point matrix structure. * @param[out] dst points to the instance of the output floating-point matrix structure. * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. */ arm_status arm_mat_inverse_f32( const arm_matrix_instance_f32 * src, arm_matrix_instance_f32 * dst); /** * @brief Floating-point matrix inverse. * @param[in] src points to the instance of the input floating-point matrix structure. * @param[out] dst points to the instance of the output floating-point matrix structure. * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. */ arm_status arm_mat_inverse_f64( const arm_matrix_instance_f64 * src, arm_matrix_instance_f64 * dst); /** * @ingroup groupController */ /** * @defgroup clarke Vector Clarke Transform * Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. * Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents * in the two-phase orthogonal stator axis Ialpha and Ibeta. * When Ialpha is superposed with Ia as shown in the figure below * \image html clarke.gif Stator current space vector and its components in (a,b). * and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta * can be calculated using only Ia and Ib. * * The function operates on a single sample of data and each call to the function returns the processed output. * The library provides separate functions for Q31 and floating-point data types. * \par Algorithm * \image html clarkeFormula.gif * where Ia and Ib are the instantaneous stator phases and * pIalpha and pIbeta are the two coordinates of time invariant vector. * \par Fixed-Point Behavior * Care must be taken when using the Q31 version of the Clarke transform. * In particular, the overflow and saturation behavior of the accumulator used must be considered. * Refer to the function specific documentation below for usage guidelines. */ /** * @addtogroup clarke * @{ */ /** * * @brief Floating-point Clarke transform * @param[in] Ia input three-phase coordinate a * @param[in] Ib input three-phase coordinate b * @param[out] pIalpha points to output two-phase orthogonal vector axis alpha * @param[out] pIbeta points to output two-phase orthogonal vector axis beta */ CMSIS_INLINE __STATIC_INLINE void arm_clarke_f32( float32_t Ia, float32_t Ib, float32_t * pIalpha, float32_t * pIbeta) { /* Calculate pIalpha using the equation, pIalpha = Ia */ *pIalpha = Ia; /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ *pIbeta = ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); } /** * @brief Clarke transform for Q31 version * @param[in] Ia input three-phase coordinate a * @param[in] Ib input three-phase coordinate b * @param[out] pIalpha points to output two-phase orthogonal vector axis alpha * @param[out] pIbeta points to output two-phase orthogonal vector axis beta * * Scaling and Overflow Behavior: * \par * The function is implemented using an internal 32-bit accumulator. * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. * There is saturation on the addition, hence there is no risk of overflow. */ CMSIS_INLINE __STATIC_INLINE void arm_clarke_q31( q31_t Ia, q31_t Ib, q31_t * pIalpha, q31_t * pIbeta) { q31_t product1, product2; /* Temporary variables used to store intermediate results */ /* Calculating pIalpha from Ia by equation pIalpha = Ia */ *pIalpha = Ia; /* Intermediate product is calculated by (1/(sqrt(3)) * Ia) */ product1 = (q31_t) (((q63_t) Ia * 0x24F34E8B) >> 30); /* Intermediate product is calculated by (2/sqrt(3) * Ib) */ product2 = (q31_t) (((q63_t) Ib * 0x49E69D16) >> 30); /* pIbeta is calculated by adding the intermediate products */ *pIbeta = __QADD(product1, product2); } /** * @} end of clarke group */ /** * @brief Converts the elements of the Q7 vector to Q31 vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_q7_to_q31( q7_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @ingroup groupController */ /** * @defgroup inv_clarke Vector Inverse Clarke Transform * Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. * * The function operates on a single sample of data and each call to the function returns the processed output. * The library provides separate functions for Q31 and floating-point data types. * \par Algorithm * \image html clarkeInvFormula.gif * where pIa and pIb are the instantaneous stator phases and * Ialpha and Ibeta are the two coordinates of time invariant vector. * \par Fixed-Point Behavior * Care must be taken when using the Q31 version of the Clarke transform. * In particular, the overflow and saturation behavior of the accumulator used must be considered. * Refer to the function specific documentation below for usage guidelines. */ /** * @addtogroup inv_clarke * @{ */ /** * @brief Floating-point Inverse Clarke transform * @param[in] Ialpha input two-phase orthogonal vector axis alpha * @param[in] Ibeta input two-phase orthogonal vector axis beta * @param[out] pIa points to output three-phase coordinate a * @param[out] pIb points to output three-phase coordinate b */ CMSIS_INLINE __STATIC_INLINE void arm_inv_clarke_f32( float32_t Ialpha, float32_t Ibeta, float32_t * pIa, float32_t * pIb) { /* Calculating pIa from Ialpha by equation pIa = Ialpha */ *pIa = Ialpha; /* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */ *pIb = -0.5f * Ialpha + 0.8660254039f * Ibeta; } /** * @brief Inverse Clarke transform for Q31 version * @param[in] Ialpha input two-phase orthogonal vector axis alpha * @param[in] Ibeta input two-phase orthogonal vector axis beta * @param[out] pIa points to output three-phase coordinate a * @param[out] pIb points to output three-phase coordinate b * * Scaling and Overflow Behavior: * \par * The function is implemented using an internal 32-bit accumulator. * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. * There is saturation on the subtraction, hence there is no risk of overflow. */ CMSIS_INLINE __STATIC_INLINE void arm_inv_clarke_q31( q31_t Ialpha, q31_t Ibeta, q31_t * pIa, q31_t * pIb) { q31_t product1, product2; /* Temporary variables used to store intermediate results */ /* Calculating pIa from Ialpha by equation pIa = Ialpha */ *pIa = Ialpha; /* Intermediate product is calculated by (1/(2*sqrt(3)) * Ia) */ product1 = (q31_t) (((q63_t) (Ialpha) * (0x40000000)) >> 31); /* Intermediate product is calculated by (1/sqrt(3) * pIb) */ product2 = (q31_t) (((q63_t) (Ibeta) * (0x6ED9EBA1)) >> 31); /* pIb is calculated by subtracting the products */ *pIb = __QSUB(product2, product1); } /** * @} end of inv_clarke group */ /** * @brief Converts the elements of the Q7 vector to Q15 vector. * @param[in] pSrc input pointer * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ void arm_q7_to_q15( q7_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @ingroup groupController */ /** * @defgroup park Vector Park Transform * * Forward Park transform converts the input two-coordinate vector to flux and torque components. * The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents * from the stationary to the moving reference frame and control the spatial relationship between * the stator vector current and rotor flux vector. * If we consider the d axis aligned with the rotor flux, the diagram below shows the * current vector and the relationship from the two reference frames: * \image html park.gif "Stator current space vector and its component in (a,b) and in the d,q rotating reference frame" * * The function operates on a single sample of data and each call to the function returns the processed output. * The library provides separate functions for Q31 and floating-point data types. * \par Algorithm * \image html parkFormula.gif * where Ialpha and Ibeta are the stator vector components, * pId and pIq are rotor vector components and cosVal and sinVal are the * cosine and sine values of theta (rotor flux position). * \par Fixed-Point Behavior * Care must be taken when using the Q31 version of the Park transform. * In particular, the overflow and saturation behavior of the accumulator used must be considered. * Refer to the function specific documentation below for usage guidelines. */ /** * @addtogroup park * @{ */ /** * @brief Floating-point Park transform * @param[in] Ialpha input two-phase vector coordinate alpha * @param[in] Ibeta input two-phase vector coordinate beta * @param[out] pId points to output rotor reference frame d * @param[out] pIq points to output rotor reference frame q * @param[in] sinVal sine value of rotation angle theta * @param[in] cosVal cosine value of rotation angle theta * * The function implements the forward Park transform. * */ CMSIS_INLINE __STATIC_INLINE void arm_park_f32( float32_t Ialpha, float32_t Ibeta, float32_t * pId, float32_t * pIq, float32_t sinVal, float32_t cosVal) { /* Calculate pId using the equation, pId = Ialpha * cosVal + Ibeta * sinVal */ *pId = Ialpha * cosVal + Ibeta * sinVal; /* Calculate pIq using the equation, pIq = - Ialpha * sinVal + Ibeta * cosVal */ *pIq = -Ialpha * sinVal + Ibeta * cosVal; } /** * @brief Park transform for Q31 version * @param[in] Ialpha input two-phase vector coordinate alpha * @param[in] Ibeta input two-phase vector coordinate beta * @param[out] pId points to output rotor reference frame d * @param[out] pIq points to output rotor reference frame q * @param[in] sinVal sine value of rotation angle theta * @param[in] cosVal cosine value of rotation angle theta * * Scaling and Overflow Behavior: * \par * The function is implemented using an internal 32-bit accumulator. * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. * There is saturation on the addition and subtraction, hence there is no risk of overflow. */ CMSIS_INLINE __STATIC_INLINE void arm_park_q31( q31_t Ialpha, q31_t Ibeta, q31_t * pId, q31_t * pIq, q31_t sinVal, q31_t cosVal) { q31_t product1, product2; /* Temporary variables used to store intermediate results */ q31_t product3, product4; /* Temporary variables used to store intermediate results */ /* Intermediate product is calculated by (Ialpha * cosVal) */ product1 = (q31_t) (((q63_t) (Ialpha) * (cosVal)) >> 31); /* Intermediate product is calculated by (Ibeta * sinVal) */ product2 = (q31_t) (((q63_t) (Ibeta) * (sinVal)) >> 31); /* Intermediate product is calculated by (Ialpha * sinVal) */ product3 = (q31_t) (((q63_t) (Ialpha) * (sinVal)) >> 31); /* Intermediate product is calculated by (Ibeta * cosVal) */ product4 = (q31_t) (((q63_t) (Ibeta) * (cosVal)) >> 31); /* Calculate pId by adding the two intermediate products 1 and 2 */ *pId = __QADD(product1, product2); /* Calculate pIq by subtracting the two intermediate products 3 from 4 */ *pIq = __QSUB(product4, product3); } /** * @} end of park group */ /** * @brief Converts the elements of the Q7 vector to floating-point vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q7_to_float( q7_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @ingroup groupController */ /** * @defgroup inv_park Vector Inverse Park transform * Inverse Park transform converts the input flux and torque components to two-coordinate vector. * * The function operates on a single sample of data and each call to the function returns the processed output. * The library provides separate functions for Q31 and floating-point data types. * \par Algorithm * \image html parkInvFormula.gif * where pIalpha and pIbeta are the stator vector components, * Id and Iq are rotor vector components and cosVal and sinVal are the * cosine and sine values of theta (rotor flux position). * \par Fixed-Point Behavior * Care must be taken when using the Q31 version of the Park transform. * In particular, the overflow and saturation behavior of the accumulator used must be considered. * Refer to the function specific documentation below for usage guidelines. */ /** * @addtogroup inv_park * @{ */ /** * @brief Floating-point Inverse Park transform * @param[in] Id input coordinate of rotor reference frame d * @param[in] Iq input coordinate of rotor reference frame q * @param[out] pIalpha points to output two-phase orthogonal vector axis alpha * @param[out] pIbeta points to output two-phase orthogonal vector axis beta * @param[in] sinVal sine value of rotation angle theta * @param[in] cosVal cosine value of rotation angle theta */ CMSIS_INLINE __STATIC_INLINE void arm_inv_park_f32( float32_t Id, float32_t Iq, float32_t * pIalpha, float32_t * pIbeta, float32_t sinVal, float32_t cosVal) { /* Calculate pIalpha using the equation, pIalpha = Id * cosVal - Iq * sinVal */ *pIalpha = Id * cosVal - Iq * sinVal; /* Calculate pIbeta using the equation, pIbeta = Id * sinVal + Iq * cosVal */ *pIbeta = Id * sinVal + Iq * cosVal; } /** * @brief Inverse Park transform for Q31 version * @param[in] Id input coordinate of rotor reference frame d * @param[in] Iq input coordinate of rotor reference frame q * @param[out] pIalpha points to output two-phase orthogonal vector axis alpha * @param[out] pIbeta points to output two-phase orthogonal vector axis beta * @param[in] sinVal sine value of rotation angle theta * @param[in] cosVal cosine value of rotation angle theta * * Scaling and Overflow Behavior: * \par * The function is implemented using an internal 32-bit accumulator. * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. * There is saturation on the addition, hence there is no risk of overflow. */ CMSIS_INLINE __STATIC_INLINE void arm_inv_park_q31( q31_t Id, q31_t Iq, q31_t * pIalpha, q31_t * pIbeta, q31_t sinVal, q31_t cosVal) { q31_t product1, product2; /* Temporary variables used to store intermediate results */ q31_t product3, product4; /* Temporary variables used to store intermediate results */ /* Intermediate product is calculated by (Id * cosVal) */ product1 = (q31_t) (((q63_t) (Id) * (cosVal)) >> 31); /* Intermediate product is calculated by (Iq * sinVal) */ product2 = (q31_t) (((q63_t) (Iq) * (sinVal)) >> 31); /* Intermediate product is calculated by (Id * sinVal) */ product3 = (q31_t) (((q63_t) (Id) * (sinVal)) >> 31); /* Intermediate product is calculated by (Iq * cosVal) */ product4 = (q31_t) (((q63_t) (Iq) * (cosVal)) >> 31); /* Calculate pIalpha by using the two intermediate products 1 and 2 */ *pIalpha = __QSUB(product1, product2); /* Calculate pIbeta by using the two intermediate products 3 and 4 */ *pIbeta = __QADD(product4, product3); } /** * @} end of Inverse park group */ /** * @brief Converts the elements of the Q31 vector to floating-point vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q31_to_float( q31_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @ingroup groupInterpolation */ /** * @defgroup LinearInterpolate Linear Interpolation * * Linear interpolation is a method of curve fitting using linear polynomials. * Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line * * \par * \image html LinearInterp.gif "Linear interpolation" * * \par * A Linear Interpolate function calculates an output value(y), for the input(x) * using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values) * * \par Algorithm: *
   *       y = y0 + (x - x0) * ((y1 - y0)/(x1-x0))
   *       where x0, x1 are nearest values of input x
   *             y0, y1 are nearest values to output y
   * 
* * \par * This set of functions implements Linear interpolation process * for Q7, Q15, Q31, and floating-point data types. The functions operate on a single * sample of data and each call to the function returns a single processed value. * S points to an instance of the Linear Interpolate function data structure. * x is the input sample value. The functions returns the output value. * * \par * if x is outside of the table boundary, Linear interpolation returns first value of the table * if x is below input range and returns last value of table if x is above range. */ /** * @addtogroup LinearInterpolate * @{ */ /** * @brief Process function for the floating-point Linear Interpolation Function. * @param[in,out] S is an instance of the floating-point Linear Interpolation structure * @param[in] x input sample to process * @return y processed output sample. * */ CMSIS_INLINE __STATIC_INLINE float32_t arm_linear_interp_f32( arm_linear_interp_instance_f32 * S, float32_t x) { float32_t y; float32_t x0, x1; /* Nearest input values */ float32_t y0, y1; /* Nearest output values */ float32_t xSpacing = S->xSpacing; /* spacing between input values */ int32_t i; /* Index variable */ float32_t *pYData = S->pYData; /* pointer to output table */ /* Calculation of index */ i = (int32_t) ((x - S->x1) / xSpacing); if (i < 0) { /* Iniatilize output for below specified range as least output value of table */ y = pYData[0]; } else if ((uint32_t)i >= S->nValues) { /* Iniatilize output for above specified range as last output value of table */ y = pYData[S->nValues - 1]; } else { /* Calculation of nearest input values */ x0 = S->x1 + i * xSpacing; x1 = S->x1 + (i + 1) * xSpacing; /* Read of nearest output values */ y0 = pYData[i]; y1 = pYData[i + 1]; /* Calculation of output */ y = y0 + (x - x0) * ((y1 - y0) / (x1 - x0)); } /* returns output value */ return (y); } /** * * @brief Process function for the Q31 Linear Interpolation Function. * @param[in] pYData pointer to Q31 Linear Interpolation table * @param[in] x input sample to process * @param[in] nValues number of table values * @return y processed output sample. * * \par * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. * This function can support maximum of table size 2^12. * */ CMSIS_INLINE __STATIC_INLINE q31_t arm_linear_interp_q31( q31_t * pYData, q31_t x, uint32_t nValues) { q31_t y; /* output */ q31_t y0, y1; /* Nearest output values */ q31_t fract; /* fractional part */ int32_t index; /* Index to read nearest output values */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ index = ((x & (q31_t)0xFFF00000) >> 20); if (index >= (int32_t)(nValues - 1)) { return (pYData[nValues - 1]); } else if (index < 0) { return (pYData[0]); } else { /* 20 bits for the fractional part */ /* shift left by 11 to keep fract in 1.31 format */ fract = (x & 0x000FFFFF) << 11; /* Read two nearest output values from the index in 1.31(q31) format */ y0 = pYData[index]; y1 = pYData[index + 1]; /* Calculation of y0 * (1-fract) and y is in 2.30 format */ y = ((q31_t) ((q63_t) y0 * (0x7FFFFFFF - fract) >> 32)); /* Calculation of y0 * (1-fract) + y1 *fract and y is in 2.30 format */ y += ((q31_t) (((q63_t) y1 * fract) >> 32)); /* Convert y to 1.31 format */ return (y << 1U); } } /** * * @brief Process function for the Q15 Linear Interpolation Function. * @param[in] pYData pointer to Q15 Linear Interpolation table * @param[in] x input sample to process * @param[in] nValues number of table values * @return y processed output sample. * * \par * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. * This function can support maximum of table size 2^12. * */ CMSIS_INLINE __STATIC_INLINE q15_t arm_linear_interp_q15( q15_t * pYData, q31_t x, uint32_t nValues) { q63_t y; /* output */ q15_t y0, y1; /* Nearest output values */ q31_t fract; /* fractional part */ int32_t index; /* Index to read nearest output values */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ index = ((x & (int32_t)0xFFF00000) >> 20); if (index >= (int32_t)(nValues - 1)) { return (pYData[nValues - 1]); } else if (index < 0) { return (pYData[0]); } else { /* 20 bits for the fractional part */ /* fract is in 12.20 format */ fract = (x & 0x000FFFFF); /* Read two nearest output values from the index */ y0 = pYData[index]; y1 = pYData[index + 1]; /* Calculation of y0 * (1-fract) and y is in 13.35 format */ y = ((q63_t) y0 * (0xFFFFF - fract)); /* Calculation of (y0 * (1-fract) + y1 * fract) and y is in 13.35 format */ y += ((q63_t) y1 * (fract)); /* convert y to 1.15 format */ return (q15_t) (y >> 20); } } /** * * @brief Process function for the Q7 Linear Interpolation Function. * @param[in] pYData pointer to Q7 Linear Interpolation table * @param[in] x input sample to process * @param[in] nValues number of table values * @return y processed output sample. * * \par * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. * This function can support maximum of table size 2^12. */ CMSIS_INLINE __STATIC_INLINE q7_t arm_linear_interp_q7( q7_t * pYData, q31_t x, uint32_t nValues) { q31_t y; /* output */ q7_t y0, y1; /* Nearest output values */ q31_t fract; /* fractional part */ uint32_t index; /* Index to read nearest output values */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ if (x < 0) { return (pYData[0]); } index = (x >> 20) & 0xfff; if (index >= (nValues - 1)) { return (pYData[nValues - 1]); } else { /* 20 bits for the fractional part */ /* fract is in 12.20 format */ fract = (x & 0x000FFFFF); /* Read two nearest output values from the index and are in 1.7(q7) format */ y0 = pYData[index]; y1 = pYData[index + 1]; /* Calculation of y0 * (1-fract ) and y is in 13.27(q27) format */ y = ((y0 * (0xFFFFF - fract))); /* Calculation of y1 * fract + y0 * (1-fract) and y is in 13.27(q27) format */ y += (y1 * fract); /* convert y to 1.7(q7) format */ return (q7_t) (y >> 20); } } /** * @} end of LinearInterpolate group */ /** * @brief Fast approximation to the trigonometric sine function for floating-point data. * @param[in] x input value in radians. * @return sin(x). */ float32_t arm_sin_f32( float32_t x); /** * @brief Fast approximation to the trigonometric sine function for Q31 data. * @param[in] x Scaled input value in radians. * @return sin(x). */ q31_t arm_sin_q31( q31_t x); /** * @brief Fast approximation to the trigonometric sine function for Q15 data. * @param[in] x Scaled input value in radians. * @return sin(x). */ q15_t arm_sin_q15( q15_t x); /** * @brief Fast approximation to the trigonometric cosine function for floating-point data. * @param[in] x input value in radians. * @return cos(x). */ float32_t arm_cos_f32( float32_t x); /** * @brief Fast approximation to the trigonometric cosine function for Q31 data. * @param[in] x Scaled input value in radians. * @return cos(x). */ q31_t arm_cos_q31( q31_t x); /** * @brief Fast approximation to the trigonometric cosine function for Q15 data. * @param[in] x Scaled input value in radians. * @return cos(x). */ q15_t arm_cos_q15( q15_t x); /** * @ingroup groupFastMath */ /** * @defgroup SQRT Square Root * * Computes the square root of a number. * There are separate functions for Q15, Q31, and floating-point data types. * The square root function is computed using the Newton-Raphson algorithm. * This is an iterative algorithm of the form: *
   *      x1 = x0 - f(x0)/f'(x0)
   * 
* where x1 is the current estimate, * x0 is the previous estimate, and * f'(x0) is the derivative of f() evaluated at x0. * For the square root function, the algorithm reduces to: *
   *     x0 = in/2                         [initial guess]
   *     x1 = 1/2 * ( x0 + in / x0)        [each iteration]
   * 
*/ /** * @addtogroup SQRT * @{ */ /** * @brief Floating-point square root function. * @param[in] in input value. * @param[out] pOut square root of input value. * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if * in is negative value and returns zero output for negative values. */ CMSIS_INLINE __STATIC_INLINE arm_status arm_sqrt_f32( float32_t in, float32_t * pOut) { if (in >= 0.0f) { #if (__FPU_USED == 1) && defined ( __CC_ARM ) *pOut = __sqrtf(in); #elif (__FPU_USED == 1) && (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) *pOut = __builtin_sqrtf(in); #elif (__FPU_USED == 1) && defined(__GNUC__) *pOut = __builtin_sqrtf(in); #elif (__FPU_USED == 1) && defined ( __ICCARM__ ) && (__VER__ >= 6040000) __ASM("VSQRT.F32 %0,%1" : "=t"(*pOut) : "t"(in)); #else *pOut = sqrtf(in); #endif return (ARM_MATH_SUCCESS); } else { *pOut = 0.0f; return (ARM_MATH_ARGUMENT_ERROR); } } /** * @brief Q31 square root function. * @param[in] in input value. The range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. * @param[out] pOut square root of input value. * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if * in is negative value and returns zero output for negative values. */ arm_status arm_sqrt_q31( q31_t in, q31_t * pOut); /** * @brief Q15 square root function. * @param[in] in input value. The range of the input value is [0 +1) or 0x0000 to 0x7FFF. * @param[out] pOut square root of input value. * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if * in is negative value and returns zero output for negative values. */ arm_status arm_sqrt_q15( q15_t in, q15_t * pOut); /** * @} end of SQRT group */ /** * @brief floating-point Circular write function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularWrite_f32( int32_t * circBuffer, int32_t L, uint16_t * writeOffset, int32_t bufferInc, const int32_t * src, int32_t srcInc, uint32_t blockSize) { uint32_t i = 0U; int32_t wOffset; /* Copy the value of Index pointer that points * to the current location where the input samples to be copied */ wOffset = *writeOffset; /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the input sample to the circular buffer */ circBuffer[wOffset] = *src; /* Update the input pointer */ src += srcInc; /* Circularly update wOffset. Watch out for positive and negative value */ wOffset += bufferInc; if (wOffset >= L) wOffset -= L; /* Decrement the loop counter */ i--; } /* Update the index pointer */ *writeOffset = (uint16_t)wOffset; } /** * @brief floating-point Circular Read function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularRead_f32( int32_t * circBuffer, int32_t L, int32_t * readOffset, int32_t bufferInc, int32_t * dst, int32_t * dst_base, int32_t dst_length, int32_t dstInc, uint32_t blockSize) { uint32_t i = 0U; int32_t rOffset, dst_end; /* Copy the value of Index pointer that points * to the current location from where the input samples to be read */ rOffset = *readOffset; dst_end = (int32_t) (dst_base + dst_length); /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the sample from the circular buffer to the destination buffer */ *dst = circBuffer[rOffset]; /* Update the input pointer */ dst += dstInc; if (dst == (int32_t *) dst_end) { dst = dst_base; } /* Circularly update rOffset. Watch out for positive and negative value */ rOffset += bufferInc; if (rOffset >= L) { rOffset -= L; } /* Decrement the loop counter */ i--; } /* Update the index pointer */ *readOffset = rOffset; } /** * @brief Q15 Circular write function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularWrite_q15( q15_t * circBuffer, int32_t L, uint16_t * writeOffset, int32_t bufferInc, const q15_t * src, int32_t srcInc, uint32_t blockSize) { uint32_t i = 0U; int32_t wOffset; /* Copy the value of Index pointer that points * to the current location where the input samples to be copied */ wOffset = *writeOffset; /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the input sample to the circular buffer */ circBuffer[wOffset] = *src; /* Update the input pointer */ src += srcInc; /* Circularly update wOffset. Watch out for positive and negative value */ wOffset += bufferInc; if (wOffset >= L) wOffset -= L; /* Decrement the loop counter */ i--; } /* Update the index pointer */ *writeOffset = (uint16_t)wOffset; } /** * @brief Q15 Circular Read function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularRead_q15( q15_t * circBuffer, int32_t L, int32_t * readOffset, int32_t bufferInc, q15_t * dst, q15_t * dst_base, int32_t dst_length, int32_t dstInc, uint32_t blockSize) { uint32_t i = 0; int32_t rOffset, dst_end; /* Copy the value of Index pointer that points * to the current location from where the input samples to be read */ rOffset = *readOffset; dst_end = (int32_t) (dst_base + dst_length); /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the sample from the circular buffer to the destination buffer */ *dst = circBuffer[rOffset]; /* Update the input pointer */ dst += dstInc; if (dst == (q15_t *) dst_end) { dst = dst_base; } /* Circularly update wOffset. Watch out for positive and negative value */ rOffset += bufferInc; if (rOffset >= L) { rOffset -= L; } /* Decrement the loop counter */ i--; } /* Update the index pointer */ *readOffset = rOffset; } /** * @brief Q7 Circular write function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularWrite_q7( q7_t * circBuffer, int32_t L, uint16_t * writeOffset, int32_t bufferInc, const q7_t * src, int32_t srcInc, uint32_t blockSize) { uint32_t i = 0U; int32_t wOffset; /* Copy the value of Index pointer that points * to the current location where the input samples to be copied */ wOffset = *writeOffset; /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the input sample to the circular buffer */ circBuffer[wOffset] = *src; /* Update the input pointer */ src += srcInc; /* Circularly update wOffset. Watch out for positive and negative value */ wOffset += bufferInc; if (wOffset >= L) wOffset -= L; /* Decrement the loop counter */ i--; } /* Update the index pointer */ *writeOffset = (uint16_t)wOffset; } /** * @brief Q7 Circular Read function. */ CMSIS_INLINE __STATIC_INLINE void arm_circularRead_q7( q7_t * circBuffer, int32_t L, int32_t * readOffset, int32_t bufferInc, q7_t * dst, q7_t * dst_base, int32_t dst_length, int32_t dstInc, uint32_t blockSize) { uint32_t i = 0; int32_t rOffset, dst_end; /* Copy the value of Index pointer that points * to the current location from where the input samples to be read */ rOffset = *readOffset; dst_end = (int32_t) (dst_base + dst_length); /* Loop over the blockSize */ i = blockSize; while (i > 0U) { /* copy the sample from the circular buffer to the destination buffer */ *dst = circBuffer[rOffset]; /* Update the input pointer */ dst += dstInc; if (dst == (q7_t *) dst_end) { dst = dst_base; } /* Circularly update rOffset. Watch out for positive and negative value */ rOffset += bufferInc; if (rOffset >= L) { rOffset -= L; } /* Decrement the loop counter */ i--; } /* Update the index pointer */ *readOffset = rOffset; } /** * @brief Sum of the squares of the elements of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_power_q31( q31_t * pSrc, uint32_t blockSize, q63_t * pResult); /** * @brief Sum of the squares of the elements of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_power_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult); /** * @brief Sum of the squares of the elements of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_power_q15( q15_t * pSrc, uint32_t blockSize, q63_t * pResult); /** * @brief Sum of the squares of the elements of a Q7 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_power_q7( q7_t * pSrc, uint32_t blockSize, q31_t * pResult); /** * @brief Mean value of a Q7 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_mean_q7( q7_t * pSrc, uint32_t blockSize, q7_t * pResult); /** * @brief Mean value of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_mean_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult); /** * @brief Mean value of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_mean_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult); /** * @brief Mean value of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_mean_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult); /** * @brief Variance of the elements of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_var_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult); /** * @brief Variance of the elements of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_var_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult); /** * @brief Variance of the elements of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_var_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult); /** * @brief Root Mean Square of the elements of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_rms_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult); /** * @brief Root Mean Square of the elements of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_rms_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult); /** * @brief Root Mean Square of the elements of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_rms_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult); /** * @brief Standard deviation of the elements of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_std_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult); /** * @brief Standard deviation of the elements of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_std_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult); /** * @brief Standard deviation of the elements of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ void arm_std_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult); /** * @brief Floating-point complex magnitude * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_f32( float32_t * pSrc, float32_t * pDst, uint32_t numSamples); /** * @brief Q31 complex magnitude * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_q31( q31_t * pSrc, q31_t * pDst, uint32_t numSamples); /** * @brief Q15 complex magnitude * @param[in] pSrc points to the complex input vector * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ void arm_cmplx_mag_q15( q15_t * pSrc, q15_t * pDst, uint32_t numSamples); /** * @brief Q15 complex dot product * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] numSamples number of complex samples in each vector * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ void arm_cmplx_dot_prod_q15( q15_t * pSrcA, q15_t * pSrcB, uint32_t numSamples, q31_t * realResult, q31_t * imagResult); /** * @brief Q31 complex dot product * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] numSamples number of complex samples in each vector * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ void arm_cmplx_dot_prod_q31( q31_t * pSrcA, q31_t * pSrcB, uint32_t numSamples, q63_t * realResult, q63_t * imagResult); /** * @brief Floating-point complex dot product * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[in] numSamples number of complex samples in each vector * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ void arm_cmplx_dot_prod_f32( float32_t * pSrcA, float32_t * pSrcB, uint32_t numSamples, float32_t * realResult, float32_t * imagResult); /** * @brief Q15 complex-by-real multiplication * @param[in] pSrcCmplx points to the complex input vector * @param[in] pSrcReal points to the real input vector * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ void arm_cmplx_mult_real_q15( q15_t * pSrcCmplx, q15_t * pSrcReal, q15_t * pCmplxDst, uint32_t numSamples); /** * @brief Q31 complex-by-real multiplication * @param[in] pSrcCmplx points to the complex input vector * @param[in] pSrcReal points to the real input vector * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ void arm_cmplx_mult_real_q31( q31_t * pSrcCmplx, q31_t * pSrcReal, q31_t * pCmplxDst, uint32_t numSamples); /** * @brief Floating-point complex-by-real multiplication * @param[in] pSrcCmplx points to the complex input vector * @param[in] pSrcReal points to the real input vector * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ void arm_cmplx_mult_real_f32( float32_t * pSrcCmplx, float32_t * pSrcReal, float32_t * pCmplxDst, uint32_t numSamples); /** * @brief Minimum value of a Q7 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] result is output pointer * @param[in] index is the array index of the minimum value in the input buffer. */ void arm_min_q7( q7_t * pSrc, uint32_t blockSize, q7_t * result, uint32_t * index); /** * @brief Minimum value of a Q15 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer * @param[in] pIndex is the array index of the minimum value in the input buffer. */ void arm_min_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult, uint32_t * pIndex); /** * @brief Minimum value of a Q31 vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ void arm_min_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult, uint32_t * pIndex); /** * @brief Minimum value of a floating-point vector. * @param[in] pSrc is input pointer * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ void arm_min_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult, uint32_t * pIndex); /** * @brief Maximum value of a Q7 vector. * @param[in] pSrc points to the input buffer * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ void arm_max_q7( q7_t * pSrc, uint32_t blockSize, q7_t * pResult, uint32_t * pIndex); /** * @brief Maximum value of a Q15 vector. * @param[in] pSrc points to the input buffer * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ void arm_max_q15( q15_t * pSrc, uint32_t blockSize, q15_t * pResult, uint32_t * pIndex); /** * @brief Maximum value of a Q31 vector. * @param[in] pSrc points to the input buffer * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ void arm_max_q31( q31_t * pSrc, uint32_t blockSize, q31_t * pResult, uint32_t * pIndex); /** * @brief Maximum value of a floating-point vector. * @param[in] pSrc points to the input buffer * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ void arm_max_f32( float32_t * pSrc, uint32_t blockSize, float32_t * pResult, uint32_t * pIndex); /** * @brief Q15 complex-by-complex multiplication * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_mult_cmplx_q15( q15_t * pSrcA, q15_t * pSrcB, q15_t * pDst, uint32_t numSamples); /** * @brief Q31 complex-by-complex multiplication * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_mult_cmplx_q31( q31_t * pSrcA, q31_t * pSrcB, q31_t * pDst, uint32_t numSamples); /** * @brief Floating-point complex-by-complex multiplication * @param[in] pSrcA points to the first input vector * @param[in] pSrcB points to the second input vector * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ void arm_cmplx_mult_cmplx_f32( float32_t * pSrcA, float32_t * pSrcB, float32_t * pDst, uint32_t numSamples); /** * @brief Converts the elements of the floating-point vector to Q31 vector. * @param[in] pSrc points to the floating-point input vector * @param[out] pDst points to the Q31 output vector * @param[in] blockSize length of the input vector */ void arm_float_to_q31( float32_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the floating-point vector to Q15 vector. * @param[in] pSrc points to the floating-point input vector * @param[out] pDst points to the Q15 output vector * @param[in] blockSize length of the input vector */ void arm_float_to_q15( float32_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the floating-point vector to Q7 vector. * @param[in] pSrc points to the floating-point input vector * @param[out] pDst points to the Q7 output vector * @param[in] blockSize length of the input vector */ void arm_float_to_q7( float32_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the Q31 vector to Q15 vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q31_to_q15( q31_t * pSrc, q15_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the Q31 vector to Q7 vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q31_to_q7( q31_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the Q15 vector to floating-point vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q15_to_float( q15_t * pSrc, float32_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the Q15 vector to Q31 vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q15_to_q31( q15_t * pSrc, q31_t * pDst, uint32_t blockSize); /** * @brief Converts the elements of the Q15 vector to Q7 vector. * @param[in] pSrc is input pointer * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ void arm_q15_to_q7( q15_t * pSrc, q7_t * pDst, uint32_t blockSize); /** * @ingroup groupInterpolation */ /** * @defgroup BilinearInterpolate Bilinear Interpolation * * Bilinear interpolation is an extension of linear interpolation applied to a two dimensional grid. * The underlying function f(x, y) is sampled on a regular grid and the interpolation process * determines values between the grid points. * Bilinear interpolation is equivalent to two step linear interpolation, first in the x-dimension and then in the y-dimension. * Bilinear interpolation is often used in image processing to rescale images. * The CMSIS DSP library provides bilinear interpolation functions for Q7, Q15, Q31, and floating-point data types. * * Algorithm * \par * The instance structure used by the bilinear interpolation functions describes a two dimensional data table. * For floating-point, the instance structure is defined as: *
   *   typedef struct
   *   {
   *     uint16_t numRows;
   *     uint16_t numCols;
   *     float32_t *pData;
   * } arm_bilinear_interp_instance_f32;
   * 
* * \par * where numRows specifies the number of rows in the table; * numCols specifies the number of columns in the table; * and pData points to an array of size numRows*numCols values. * The data table pTable is organized in row order and the supplied data values fall on integer indexes. * That is, table element (x,y) is located at pTable[x + y*numCols] where x and y are integers. * * \par * Let (x, y) specify the desired interpolation point. Then define: *
   *     XF = floor(x)
   *     YF = floor(y)
   * 
* \par * The interpolated output point is computed as: *
   *  f(x, y) = f(XF, YF) * (1-(x-XF)) * (1-(y-YF))
   *           + f(XF+1, YF) * (x-XF)*(1-(y-YF))
   *           + f(XF, YF+1) * (1-(x-XF))*(y-YF)
   *           + f(XF+1, YF+1) * (x-XF)*(y-YF)
   * 
* Note that the coordinates (x, y) contain integer and fractional components. * The integer components specify which portion of the table to use while the * fractional components control the interpolation processor. * * \par * if (x,y) are outside of the table boundary, Bilinear interpolation returns zero output. */ /** * @addtogroup BilinearInterpolate * @{ */ /** * * @brief Floating-point bilinear interpolation. * @param[in,out] S points to an instance of the interpolation structure. * @param[in] X interpolation coordinate. * @param[in] Y interpolation coordinate. * @return out interpolated value. */ CMSIS_INLINE __STATIC_INLINE float32_t arm_bilinear_interp_f32( const arm_bilinear_interp_instance_f32 * S, float32_t X, float32_t Y) { float32_t out; float32_t f00, f01, f10, f11; float32_t *pData = S->pData; int32_t xIndex, yIndex, index; float32_t xdiff, ydiff; float32_t b1, b2, b3, b4; xIndex = (int32_t) X; yIndex = (int32_t) Y; /* Care taken for table outside boundary */ /* Returns zero output when values are outside table boundary */ if (xIndex < 0 || xIndex > (S->numRows - 1) || yIndex < 0 || yIndex > (S->numCols - 1)) { return (0); } /* Calculation of index for two nearest points in X-direction */ index = (xIndex - 1) + (yIndex - 1) * S->numCols; /* Read two nearest points in X-direction */ f00 = pData[index]; f01 = pData[index + 1]; /* Calculation of index for two nearest points in Y-direction */ index = (xIndex - 1) + (yIndex) * S->numCols; /* Read two nearest points in Y-direction */ f10 = pData[index]; f11 = pData[index + 1]; /* Calculation of intermediate values */ b1 = f00; b2 = f01 - f00; b3 = f10 - f00; b4 = f00 - f01 - f10 + f11; /* Calculation of fractional part in X */ xdiff = X - xIndex; /* Calculation of fractional part in Y */ ydiff = Y - yIndex; /* Calculation of bi-linear interpolated output */ out = b1 + b2 * xdiff + b3 * ydiff + b4 * xdiff * ydiff; /* return to application */ return (out); } /** * * @brief Q31 bilinear interpolation. * @param[in,out] S points to an instance of the interpolation structure. * @param[in] X interpolation coordinate in 12.20 format. * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ CMSIS_INLINE __STATIC_INLINE q31_t arm_bilinear_interp_q31( arm_bilinear_interp_instance_q31 * S, q31_t X, q31_t Y) { q31_t out; /* Temporary output */ q31_t acc = 0; /* output */ q31_t xfract, yfract; /* X, Y fractional parts */ q31_t x1, x2, y1, y2; /* Nearest output values */ int32_t rI, cI; /* Row and column indices */ q31_t *pYData = S->pData; /* pointer to output table values */ uint32_t nCols = S->numCols; /* num of rows */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ rI = ((X & (q31_t)0xFFF00000) >> 20); /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ cI = ((Y & (q31_t)0xFFF00000) >> 20); /* Care taken for table outside boundary */ /* Returns zero output when values are outside table boundary */ if (rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) { return (0); } /* 20 bits for the fractional part */ /* shift left xfract by 11 to keep 1.31 format */ xfract = (X & 0x000FFFFF) << 11U; /* Read two nearest output values from the index */ x1 = pYData[(rI) + (int32_t)nCols * (cI) ]; x2 = pYData[(rI) + (int32_t)nCols * (cI) + 1]; /* 20 bits for the fractional part */ /* shift left yfract by 11 to keep 1.31 format */ yfract = (Y & 0x000FFFFF) << 11U; /* Read two nearest output values from the index */ y1 = pYData[(rI) + (int32_t)nCols * (cI + 1) ]; y2 = pYData[(rI) + (int32_t)nCols * (cI + 1) + 1]; /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 3.29(q29) format */ out = ((q31_t) (((q63_t) x1 * (0x7FFFFFFF - xfract)) >> 32)); acc = ((q31_t) (((q63_t) out * (0x7FFFFFFF - yfract)) >> 32)); /* x2 * (xfract) * (1-yfract) in 3.29(q29) and adding to acc */ out = ((q31_t) ((q63_t) x2 * (0x7FFFFFFF - yfract) >> 32)); acc += ((q31_t) ((q63_t) out * (xfract) >> 32)); /* y1 * (1 - xfract) * (yfract) in 3.29(q29) and adding to acc */ out = ((q31_t) ((q63_t) y1 * (0x7FFFFFFF - xfract) >> 32)); acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); /* y2 * (xfract) * (yfract) in 3.29(q29) and adding to acc */ out = ((q31_t) ((q63_t) y2 * (xfract) >> 32)); acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); /* Convert acc to 1.31(q31) format */ return ((q31_t)(acc << 2)); } /** * @brief Q15 bilinear interpolation. * @param[in,out] S points to an instance of the interpolation structure. * @param[in] X interpolation coordinate in 12.20 format. * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ CMSIS_INLINE __STATIC_INLINE q15_t arm_bilinear_interp_q15( arm_bilinear_interp_instance_q15 * S, q31_t X, q31_t Y) { q63_t acc = 0; /* output */ q31_t out; /* Temporary output */ q15_t x1, x2, y1, y2; /* Nearest output values */ q31_t xfract, yfract; /* X, Y fractional parts */ int32_t rI, cI; /* Row and column indices */ q15_t *pYData = S->pData; /* pointer to output table values */ uint32_t nCols = S->numCols; /* num of rows */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ rI = ((X & (q31_t)0xFFF00000) >> 20); /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ cI = ((Y & (q31_t)0xFFF00000) >> 20); /* Care taken for table outside boundary */ /* Returns zero output when values are outside table boundary */ if (rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) { return (0); } /* 20 bits for the fractional part */ /* xfract should be in 12.20 format */ xfract = (X & 0x000FFFFF); /* Read two nearest output values from the index */ x1 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI) ]; x2 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI) + 1]; /* 20 bits for the fractional part */ /* yfract should be in 12.20 format */ yfract = (Y & 0x000FFFFF); /* Read two nearest output values from the index */ y1 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI + 1) ]; y2 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI + 1) + 1]; /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 13.51 format */ /* x1 is in 1.15(q15), xfract in 12.20 format and out is in 13.35 format */ /* convert 13.35 to 13.31 by right shifting and out is in 1.31 */ out = (q31_t) (((q63_t) x1 * (0xFFFFF - xfract)) >> 4U); acc = ((q63_t) out * (0xFFFFF - yfract)); /* x2 * (xfract) * (1-yfract) in 1.51 and adding to acc */ out = (q31_t) (((q63_t) x2 * (0xFFFFF - yfract)) >> 4U); acc += ((q63_t) out * (xfract)); /* y1 * (1 - xfract) * (yfract) in 1.51 and adding to acc */ out = (q31_t) (((q63_t) y1 * (0xFFFFF - xfract)) >> 4U); acc += ((q63_t) out * (yfract)); /* y2 * (xfract) * (yfract) in 1.51 and adding to acc */ out = (q31_t) (((q63_t) y2 * (xfract)) >> 4U); acc += ((q63_t) out * (yfract)); /* acc is in 13.51 format and down shift acc by 36 times */ /* Convert out to 1.15 format */ return ((q15_t)(acc >> 36)); } /** * @brief Q7 bilinear interpolation. * @param[in,out] S points to an instance of the interpolation structure. * @param[in] X interpolation coordinate in 12.20 format. * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ CMSIS_INLINE __STATIC_INLINE q7_t arm_bilinear_interp_q7( arm_bilinear_interp_instance_q7 * S, q31_t X, q31_t Y) { q63_t acc = 0; /* output */ q31_t out; /* Temporary output */ q31_t xfract, yfract; /* X, Y fractional parts */ q7_t x1, x2, y1, y2; /* Nearest output values */ int32_t rI, cI; /* Row and column indices */ q7_t *pYData = S->pData; /* pointer to output table values */ uint32_t nCols = S->numCols; /* num of rows */ /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ rI = ((X & (q31_t)0xFFF00000) >> 20); /* Input is in 12.20 format */ /* 12 bits for the table index */ /* Index value calculation */ cI = ((Y & (q31_t)0xFFF00000) >> 20); /* Care taken for table outside boundary */ /* Returns zero output when values are outside table boundary */ if (rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) { return (0); } /* 20 bits for the fractional part */ /* xfract should be in 12.20 format */ xfract = (X & (q31_t)0x000FFFFF); /* Read two nearest output values from the index */ x1 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI) ]; x2 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI) + 1]; /* 20 bits for the fractional part */ /* yfract should be in 12.20 format */ yfract = (Y & (q31_t)0x000FFFFF); /* Read two nearest output values from the index */ y1 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI + 1) ]; y2 = pYData[((uint32_t)rI) + nCols * ((uint32_t)cI + 1) + 1]; /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 16.47 format */ out = ((x1 * (0xFFFFF - xfract))); acc = (((q63_t) out * (0xFFFFF - yfract))); /* x2 * (xfract) * (1-yfract) in 2.22 and adding to acc */ out = ((x2 * (0xFFFFF - yfract))); acc += (((q63_t) out * (xfract))); /* y1 * (1 - xfract) * (yfract) in 2.22 and adding to acc */ out = ((y1 * (0xFFFFF - xfract))); acc += (((q63_t) out * (yfract))); /* y2 * (xfract) * (yfract) in 2.22 and adding to acc */ out = ((y2 * (yfract))); acc += (((q63_t) out * (xfract))); /* acc in 16.47 format and down shift by 40 to convert to 1.7 format */ return ((q7_t)(acc >> 40)); } /** * @} end of BilinearInterpolate group */ /* SMMLAR */ #define multAcc_32x32_keep32_R(a, x, y) \ a = (q31_t) (((((q63_t) a) << 32) + ((q63_t) x * y) + 0x80000000LL ) >> 32) /* SMMLSR */ #define multSub_32x32_keep32_R(a, x, y) \ a = (q31_t) (((((q63_t) a) << 32) - ((q63_t) x * y) + 0x80000000LL ) >> 32) /* SMMULR */ #define mult_32x32_keep32_R(a, x, y) \ a = (q31_t) (((q63_t) x * y + 0x80000000LL ) >> 32) /* SMMLA */ #define multAcc_32x32_keep32(a, x, y) \ a += (q31_t) (((q63_t) x * y) >> 32) /* SMMLS */ #define multSub_32x32_keep32(a, x, y) \ a -= (q31_t) (((q63_t) x * y) >> 32) /* SMMUL */ #define mult_32x32_keep32(a, x, y) \ a = (q31_t) (((q63_t) x * y ) >> 32) #if defined ( __CC_ARM ) /* Enter low optimization region - place directly above function definition */ #if defined( ARM_MATH_CM4 ) || defined( ARM_MATH_CM7) #define LOW_OPTIMIZATION_ENTER \ _Pragma ("push") \ _Pragma ("O1") #else #define LOW_OPTIMIZATION_ENTER #endif /* Exit low optimization region - place directly after end of function definition */ #if defined ( ARM_MATH_CM4 ) || defined ( ARM_MATH_CM7 ) #define LOW_OPTIMIZATION_EXIT \ _Pragma ("pop") #else #define LOW_OPTIMIZATION_EXIT #endif /* Enter low optimization region - place directly above function definition */ #define IAR_ONLY_LOW_OPTIMIZATION_ENTER /* Exit low optimization region - place directly after end of function definition */ #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined (__ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ) #define LOW_OPTIMIZATION_ENTER #define LOW_OPTIMIZATION_EXIT #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined ( __GNUC__ ) #define LOW_OPTIMIZATION_ENTER \ __attribute__(( optimize("-O1") )) #define LOW_OPTIMIZATION_EXIT #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined ( __ICCARM__ ) /* Enter low optimization region - place directly above function definition */ #if defined ( ARM_MATH_CM4 ) || defined ( ARM_MATH_CM7 ) #define LOW_OPTIMIZATION_ENTER \ _Pragma ("optimize=low") #else #define LOW_OPTIMIZATION_ENTER #endif /* Exit low optimization region - place directly after end of function definition */ #define LOW_OPTIMIZATION_EXIT /* Enter low optimization region - place directly above function definition */ #if defined ( ARM_MATH_CM4 ) || defined ( ARM_MATH_CM7 ) #define IAR_ONLY_LOW_OPTIMIZATION_ENTER \ _Pragma ("optimize=low") #else #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #endif /* Exit low optimization region - place directly after end of function definition */ #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined ( __TI_ARM__ ) #define LOW_OPTIMIZATION_ENTER #define LOW_OPTIMIZATION_EXIT #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined ( __CSMC__ ) #define LOW_OPTIMIZATION_ENTER #define LOW_OPTIMIZATION_EXIT #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #elif defined ( __TASKING__ ) #define LOW_OPTIMIZATION_ENTER #define LOW_OPTIMIZATION_EXIT #define IAR_ONLY_LOW_OPTIMIZATION_ENTER #define IAR_ONLY_LOW_OPTIMIZATION_EXIT #endif #ifdef __cplusplus } #endif /* Compiler specific diagnostic adjustment */ #if defined ( __CC_ARM ) #elif defined ( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ) #elif defined ( __GNUC__ ) #pragma GCC diagnostic pop #elif defined ( __ICCARM__ ) #elif defined ( __TI_ARM__ ) #elif defined ( __CSMC__ ) #elif defined ( __TASKING__ ) #else #error Unknown compiler #endif #endif /* _ARM_MATH_H */ /** * * End of file. */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/software_i2c/soft_i2c.c ================================================ #include "soft_i2c.h" I2C_HandleTypeDef hi2c0 = { .Instance = I2C_SOFT }; void delay_xus(__IO uint32_t nTime) { int old_val, new_val, val; if (nTime > 900) { for (old_val = 0; old_val < nTime / 900; old_val++) { delay_xus(900); } nTime = nTime % 900; } old_val = SysTick->VAL; new_val = old_val - CPU_FREQUENCY_MHZ * nTime; if (new_val >= 0) { do { val = SysTick->VAL; } while ((val < old_val) && (val >= new_val)); } else { new_val += CPU_FREQUENCY_MHZ * 1000; do { val = SysTick->VAL; } while ((val <= old_val) || (val > new_val)); } } //-------------------------------------------- void SDA_Output(void) { GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.Pin = MYI2C_SDA_PIN; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(MYI2C_SDA_PORT, &GPIO_InitStruct); } void SDA_Input(void) { GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.Pin = MYI2C_SDA_PIN; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(MYI2C_SDA_PORT, &GPIO_InitStruct); } void SCL_Output(void) { GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.Pin = MYI2C_SCL_PIN; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(MYI2C_SCL_PORT, &GPIO_InitStruct); } void SCL_Input(void) { GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.Pin = MYI2C_SCL_PIN; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(MYI2C_SCL_PORT, &GPIO_InitStruct); } void Soft_I2C_Init(void) { SCL_Output(); SDA_Output(); SCL_Dout_HIGH(); SDA_Dout_HIGH(); } //产生IIC起始信号 void Soft_I2C_Start(void) { SDA_Output(); SDA_Dout_HIGH(); SCL_Dout_HIGH(); Delay_us(4); SDA_Dout_LOW(); Delay_us(4); SCL_Dout_LOW(); } //产生IIC停止信号 void Soft_I2C_Stop(void) { SDA_Output(); SCL_Dout_LOW(); SDA_Dout_LOW(); Delay_us(4); SCL_Dout_HIGH(); SDA_Dout_HIGH(); Delay_us(4); } uint8_t Soft_I2C_Wait_Ack(void) { uint8_t ucErrTime = 0; SDA_Input(); SDA_Dout_HIGH(); Delay_us(1); SCL_Dout_HIGH(); Delay_us(1); while (SDA_Data_IN()) { ucErrTime++; if (ucErrTime > 250) { Soft_I2C_Stop(); return 1; } } SCL_Dout_LOW();//时钟输出0 return 0; } //产生ACK应答 void Soft_I2C_Ack(void) { SCL_Dout_LOW(); SDA_Output(); SDA_Dout_LOW(); Delay_us(2); SCL_Dout_HIGH(); Delay_us(2); SCL_Dout_LOW(); } //不产生ACK应答 void Soft_I2C_NAck(void) { SCL_Dout_LOW(); SDA_Output(); SDA_Dout_HIGH(); Delay_us(2); SCL_Dout_HIGH(); Delay_us(2); SCL_Dout_LOW(); } //IIC发送一个字节 //返回从机有无应答 //1,有应答 //0,无应答 void Soft_I2C_Send_Byte(uint8_t txd) { uint8_t t; //拉低时钟开始数据传输 SDA_Output(); SCL_Dout_LOW(); for (t = 0; t < 8; t++) { SDA_Write((txd & 0x80) >> 7); txd <<= 1; Delay_us(5); //对TEA5767这三个延时都是必须的 SCL_Dout_HIGH(); Delay_us(5); SCL_Dout_LOW(); //Delay_us(2); } } //读1个字节,ack=1时,发送ACK,ack=0,发送nACK uint8_t Soft_I2C_Read_Byte(uint8_t ack) { unsigned char i, receive = 0; //SDA设置为输入 SDA_Input(); for (i = 0; i < 8; i++) { SCL_Dout_LOW(); Delay_us(5); SCL_Dout_HIGH(); receive <<= 1; if (SDA_Data_IN())receive++; Delay_us(5); } if (!ack)Soft_I2C_NAck();//发送nACK else Soft_I2C_Ack(); //发送ACK return receive; } void SOFT_I2C_Master_Transmit(uint8_t daddr, uint8_t *buff, uint8_t len) { Soft_I2C_Start(); Soft_I2C_Send_Byte(daddr); Soft_I2C_Wait_Ack(); for (int i = 0; i < len; i++) { Soft_I2C_Send_Byte(*(buff + i)); Soft_I2C_Wait_Ack(); } Soft_I2C_Stop(); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/software_i2c/soft_i2c.h ================================================ #ifndef __MYI2C_H__ #define __MYI2C_H__ #ifdef __cplusplus extern "C" { #endif #include "stm32f4xx_hal.h" #include "gpio.h" #define CPU_FREQUENCY_MHZ 0 //4 #define MYI2C_SCL_PIN GPIO_PIN_10 #define MYI2C_SCL_PORT GPIOB #define MYI2C_SDA_PIN GPIO_PIN_11 #define MYI2C_SDA_PORT GPIOB #define SDA_Dout_LOW() HAL_GPIO_WritePin(MYI2C_SDA_PORT,MYI2C_SDA_PIN,GPIO_PIN_RESET) #define SDA_Dout_HIGH() HAL_GPIO_WritePin(MYI2C_SDA_PORT,MYI2C_SDA_PIN,GPIO_PIN_SET) #define SDA_Data_IN() HAL_GPIO_ReadPin(MYI2C_SDA_PORT,MYI2C_SDA_PIN) #define SCL_Dout_LOW() HAL_GPIO_WritePin(MYI2C_SCL_PORT,MYI2C_SCL_PIN,GPIO_PIN_RESET) #define SCL_Dout_HIGH() HAL_GPIO_WritePin(MYI2C_SCL_PORT,MYI2C_SCL_PIN,GPIO_PIN_SET) #define SCL_Data_IN() HAL_GPIO_ReadPin(MYI2C_SCL_PORT,MYI2C_SCL_PIN) #define SDA_Write(XX) HAL_GPIO_WritePin(MYI2C_SDA_PORT,MYI2C_SDA_PIN,(XX?GPIO_PIN_SET:GPIO_PIN_RESET)) #define I2C_SOFT ((I2C_TypeDef *) 0x00000000UL) extern I2C_HandleTypeDef hi2c0; void Soft_I2C_Init(void); void Soft_I2C_Start(void); void Soft_I2C_Stop(void); void Soft_I2C_Send_Byte(uint8_t txd); uint8_t Soft_I2C_Read_Byte(uint8_t ack); void Soft_I2C_NAck(void); void Soft_I2C_Ack(void); uint8_t Soft_I2C_Wait_Ack(void); void delay_xus(__IO uint32_t nTime); void SOFT_I2C_Master_Transmit(uint8_t daddr, uint8_t *buff, uint8_t len); #define Delay_us(xx) delay_xus(xx) #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/time_utils.c ================================================ #include "time_utils.h" __STATIC_INLINE uint32_t LL_SYSTICK_IsActiveCounterFlag(void) { //判断COUNTFLAG位是否为1,1则计数器已经递减到0了至少一次。读取该位后该位自动清零。 return ((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) == (SysTick_CTRL_COUNTFLAG_Msk)); } uint32_t micros(void) { /* Ensure COUNTFLAG is reset by reading SysTick control and status register */ LL_SYSTICK_IsActiveCounterFlag(); //清除计数器"溢出"标志位 uint32_t m = HAL_GetTick(); const uint32_t tms = SysTick->LOAD + 1; __IO uint32_t u = tms - SysTick->VAL; if (LL_SYSTICK_IsActiveCounterFlag()) { m = HAL_GetTick(); u = tms - SysTick->VAL; } return (m * 1000 + (u * 1000) / tms); } uint32_t millis(void) { return HAL_GetTick(); } void delayMicroseconds(uint32_t us) { us *= 23; while (us--) __NOP(); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/time_utils.h ================================================ #ifndef REF_STM32F4_TIME_UTILS_H #define REF_STM32F4_TIME_UTILS_H #ifdef __cplusplus extern "C" { #endif #include "main.h" uint32_t micros(void); uint32_t millis(void); void delayMicroseconds(uint32_t us); #ifdef __cplusplus } #endif #endif //REF_STM32F4_TIME_UTILS_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/timer.cpp ================================================ #include "timer.hpp" static TimerCallback_t timerCallbacks[5]; Timer::Timer(TIM_HandleTypeDef *_htim, uint32_t _freqHz) { htim7.Instance = TIM7; htim10.Instance = TIM10; htim11.Instance = TIM11; htim13.Instance = TIM13; htim14.Instance = TIM14; if (!(_htim->Instance == TIM7 || _htim->Instance == TIM10 || _htim->Instance == TIM11 || _htim->Instance == TIM13 || _htim->Instance == TIM14)) { Error_Handler(); } if (_freqHz < 1) _freqHz = 1; else if (_freqHz > 10000000) _freqHz = 10000000; htim = _htim; freq = _freqHz; CalcRegister(freq); HAL_TIM_Base_DeInit(_htim); _htim->Init.Prescaler = PSC - 1; _htim->Init.CounterMode = TIM_COUNTERMODE_UP; _htim->Init.Period = ARR - 1; _htim->Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; _htim->Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(_htim) != HAL_OK) { Error_Handler(); } } void Timer::Start() { HAL_TIM_Base_Start_IT(htim); } void Timer::CalcRegister(uint32_t _freq) { float psc = 0.5; float arr; do { psc *= 2; arr = 84000000.0f / psc / (float) _freq; } while (arr > 65535); if (htim->Instance == TIM7 || htim->Instance == TIM13 || htim->Instance == TIM14) // APB1 @84MHz { PSC = (uint16_t) round((double) psc); ARR = (uint16_t) (84000000.0f / (float) _freq / psc); } else if (htim->Instance == TIM10 || htim->Instance == TIM11) // APB2 @168MHz { PSC = (uint16_t) round((double) psc) * 2; ARR = (uint16_t) (84000000.0f / (float) _freq / psc); } } void Timer::SetCallback(TimerCallback_t _timerCallback) { if (htim->Instance == TIM7) { timerCallbacks[0] = _timerCallback; } else if (htim->Instance == TIM10) { timerCallbacks[1] = _timerCallback; } else if (htim->Instance == TIM11) { timerCallbacks[2] = _timerCallback; } else if (htim->Instance == TIM13) { timerCallbacks[3] = _timerCallback; } else if (htim->Instance == TIM14) { timerCallbacks[4] = _timerCallback; } } extern "C" void OnTimerCallback(TIM_TypeDef *timInstance) { if (timInstance == TIM7) { timerCallbacks[0](); } else if (timInstance == TIM10) { timerCallbacks[1](); } else if (timInstance == TIM11) { timerCallbacks[2](); } else if (timInstance == TIM13) { timerCallbacks[3](); } else if (timInstance == TIM14) { timerCallbacks[4](); } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Bsp/utils/timer.hpp ================================================ #ifndef REF_STM32F4_TIMER_HPP #define REF_STM32F4_TIMER_HPP #include #include "tim.h" typedef void (*TimerCallback_t)(); class Timer { private: TIM_HandleTypeDef *htim; uint32_t freq; uint16_t PSC = 83; uint16_t ARR = 9999; void CalcRegister(uint32_t _freqHz); public: explicit Timer(TIM_HandleTypeDef *_htim, uint32_t _freqHz = 100); void SetCallback(TimerCallback_t _timerCallback); void Start(); }; #endif //REF_STM32F4_TIMER_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/CMakeLists.txt ================================================ #THIS FILE IS AUTO GENERATED FROM THE TEMPLATE! DO NOT CHANGE! set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_VERSION 1) cmake_minimum_required(VERSION 3.19) # specify cross compilers and tools set(CMAKE_C_COMPILER arm-none-eabi-gcc) set(CMAKE_CXX_COMPILER arm-none-eabi-g++) set(CMAKE_ASM_COMPILER arm-none-eabi-gcc) set(CMAKE_AR arm-none-eabi-ar) set(CMAKE_OBJCOPY arm-none-eabi-objcopy) set(CMAKE_OBJDUMP arm-none-eabi-objdump) set(SIZE arm-none-eabi-size) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # project settings project(Core-STM32F4-fw C CXX ASM) set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_STANDARD 11) # for use printf & scanf with float set(COMMON_FLAGS "-specs=nosys.specs -specs=nano.specs -u _printf_float -u _scanf_float") #Uncomment for hardware floating point add_compile_definitions(ARM_MATH_CM4;ARM_MATH_MATRIX_CHECK;ARM_MATH_ROUNDING) add_compile_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) add_link_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #Uncomment for software floating point #add_compile_options(-mfloat-abi=soft) add_compile_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork) add_compile_options(-ffunction-sections -fdata-sections -fno-common -fmessage-length=0) # uncomment to mitigate c++17 absolute addresses warnings #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-register") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") message(STATUS "Maximum optimization for speed") add_compile_options(-Ofast) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") message(STATUS "Maximum optimization for speed, debug info included") add_compile_options(-Ofast -g) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel") message(STATUS "Maximum optimization for size") add_compile_options(-Os) else () message(STATUS "Minimal optimization, debug info included") add_compile_options(-Og -g) endif () include_directories( Core/Inc Drivers/STM32F4xx_HAL_Driver/Inc Drivers/STM32F4xx_HAL_Driver/Inc/Legacy Drivers/CMSIS/Device/ST/STM32F4xx/Include Drivers/CMSIS/Include Middlewares/Third_Party/FreeRTOS/Source/include Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F Middlewares/ST/STM32_USB_Device_Library/Core/Inc Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc USB_DEVICE/App USB_DEVICE/Target 3rdParty/fibre/cpp/include 3rdParty/u8g2 3rdParty/u8g2/cpp Bsp Bsp/imu Bsp/imu/filters Bsp/communication Bsp/memory Bsp/utils Bsp/gpio Bsp/utils/software_i2c Bsp/utils/arm_math Robot UserApp ) add_definitions(-DUSE_HAL_DRIVER -DSTM32F4 -DSTM32F4xx -DSTM32F405xx -DconfigAPPLICATION_ALLOCATED_HEAP) file(GLOB_RECURSE SOURCES "startup/*.*" "Drivers/*.*" "Core/*.*" "UserApp/*.*" "3rdParty/*.*" "Middlewares/*.*" "USB_DEVICE/*.*" "Robot/*.*" "Bsp/*.*" ) set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F405RGTx_FLASH.ld) add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map) add_link_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork) add_link_options(-T ${LINKER_SCRIPT}) link_directories("Drivers/CMSIS/Lib") link_libraries("arm_cortexM4lf_math.a") add_executable(${PROJECT_NAME}.elf ${SOURCES} ${LINKER_SCRIPT}) set(HEX_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.hex) set(BIN_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.bin) add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex $ ${HEX_FILE} COMMAND ${CMAKE_OBJCOPY} -Obinary $ ${BIN_FILE} COMMENT "Building ${HEX_FILE} Building ${BIN_FILE}") ================================================ FILE: 2.Firmware/Core-STM32F4-fw/CMakeLists_template.txt ================================================ #THIS FILE IS AUTO GENERATED FROM THE TEMPLATE! DO NOT CHANGE! set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_VERSION 1) cmake_minimum_required(VERSION 3.19) # specify cross compilers and tools set(CMAKE_C_COMPILER arm-none-eabi-gcc) set(CMAKE_CXX_COMPILER arm-none-eabi-g++) set(CMAKE_ASM_COMPILER arm-none-eabi-gcc) set(CMAKE_AR arm-none-eabi-ar) set(CMAKE_OBJCOPY arm-none-eabi-objcopy) set(CMAKE_OBJDUMP arm-none-eabi-objdump) set(SIZE arm-none-eabi-size) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # project settings project(Core-STM32F4-fw C CXX ASM) set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_STANDARD 11) # for use printf & scanf with float set(COMMON_FLAGS "-specs=nosys.specs -specs=nano.specs -u _printf_float -u _scanf_float") #Uncomment for hardware floating point add_compile_definitions(ARM_MATH_CM4;ARM_MATH_MATRIX_CHECK;ARM_MATH_ROUNDING) add_compile_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) add_link_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #Uncomment for software floating point #add_compile_options(-mfloat-abi=soft) add_compile_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork) add_compile_options(-ffunction-sections -fdata-sections -fno-common -fmessage-length=0) # uncomment to mitigate c++17 absolute addresses warnings #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-register") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") message(STATUS "Maximum optimization for speed") add_compile_options(-Ofast) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") message(STATUS "Maximum optimization for speed, debug info included") add_compile_options(-Ofast -g) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel") message(STATUS "Maximum optimization for size") add_compile_options(-Os) else () message(STATUS "Minimal optimization, debug info included") add_compile_options(-Og -g) endif () include_directories( Core/Inc Drivers/STM32F4xx_HAL_Driver/Inc Drivers/STM32F4xx_HAL_Driver/Inc/Legacy Drivers/CMSIS/Device/ST/STM32F4xx/Include Drivers/CMSIS/Include Middlewares/Third_Party/FreeRTOS/Source/include Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F Middlewares/ST/STM32_USB_Device_Library/Core/Inc Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc USB_DEVICE/App USB_DEVICE/Target 3rdParty/fibre/cpp/include 3rdParty/u8g2 3rdParty/u8g2/cpp Bsp Bsp/imu Bsp/imu/filters Bsp/communication Bsp/memory Bsp/utils Bsp/gpio Bsp/utils/software_i2c Bsp/utils/arm_math Robot UserApp ) add_definitions(-DUSE_HAL_DRIVER -DSTM32F4 -DSTM32F4xx -DSTM32F405xx -DconfigAPPLICATION_ALLOCATED_HEAP) file(GLOB_RECURSE SOURCES "startup/*.*" "Drivers/*.*" "Core/*.*" "UserApp/*.*" "3rdParty/*.*" "Middlewares/*.*" "USB_DEVICE/*.*" "Robot/*.*" "Bsp/*.*" ) set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F405RGTx_FLASH.ld) add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map) add_link_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork) add_link_options(-T ${LINKER_SCRIPT}) link_directories("Drivers/CMSIS/Lib") link_libraries("arm_cortexM4lf_math.a") add_executable(${PROJECT_NAME}.elf ${SOURCES} ${LINKER_SCRIPT}) set(HEX_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.hex) set(BIN_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.bin) add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex $ ${HEX_FILE} COMMAND ${CMAKE_OBJCOPY} -Obinary $ ${BIN_FILE} COMMENT "Building ${HEX_FILE} Building ${BIN_FILE}") ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/FreeRTOSConfig.h ================================================ /* USER CODE BEGIN Header */ /* * FreeRTOS Kernel V10.3.1 * Portion Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Portion Copyright (C) 2019 StMicroelectronics, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* USER CODE END Header */ #ifndef FREERTOS_CONFIG_H #define FREERTOS_CONFIG_H /*----------------------------------------------------------- * Application specific definitions. * * These definitions should be adjusted for your particular hardware and * application requirements. * * These parameters and more are described within the 'configuration' section of the * FreeRTOS API documentation available on the FreeRTOS.org web site. * * See http://www.freertos.org/a00110.html *----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* Section where include file can be added */ /* USER CODE END Includes */ /* Ensure definitions are only used by the compiler, and not by the assembler. */ #if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__) #include extern uint32_t SystemCoreClock; #endif #ifndef CMSIS_device_header #define CMSIS_device_header "stm32f4xx.h" #endif /* CMSIS_device_header */ #define configENABLE_FPU 1 #define configENABLE_MPU 0 #define configUSE_PREEMPTION 1 #define configSUPPORT_STATIC_ALLOCATION 1 #define configSUPPORT_DYNAMIC_ALLOCATION 1 #define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 0 #define configCPU_CLOCK_HZ ( SystemCoreClock ) #define configTICK_RATE_HZ ((TickType_t)1000) #define configMAX_PRIORITIES ( 56 ) #define configMINIMAL_STACK_SIZE ((uint16_t)128) #define configTOTAL_HEAP_SIZE ((size_t)65536) #define configMAX_TASK_NAME_LEN ( 16 ) #define configUSE_TRACE_FACILITY 1 #define configUSE_16_BIT_TICKS 0 #define configUSE_MUTEXES 1 #define configQUEUE_REGISTRY_SIZE 8 #define configUSE_RECURSIVE_MUTEXES 1 #define configUSE_COUNTING_SEMAPHORES 1 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 /* USER CODE BEGIN MESSAGE_BUFFER_LENGTH_TYPE */ /* Defaults to size_t for backward compatibility, but can be changed if lengths will always be less than the number of bytes in a size_t. */ #define configMESSAGE_BUFFER_LENGTH_TYPE size_t /* USER CODE END MESSAGE_BUFFER_LENGTH_TYPE */ /* Co-routine definitions. */ #define configUSE_CO_ROUTINES 0 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) /* Software timer definitions. */ #define configUSE_TIMERS 1 #define configTIMER_TASK_PRIORITY ( 2 ) #define configTIMER_QUEUE_LENGTH 10 #define configTIMER_TASK_STACK_DEPTH 256 /* CMSIS-RTOS V2 flags */ #define configUSE_OS2_THREAD_SUSPEND_RESUME 1 #define configUSE_OS2_THREAD_ENUMERATE 1 #define configUSE_OS2_EVENTFLAGS_FROM_ISR 1 #define configUSE_OS2_THREAD_FLAGS 1 #define configUSE_OS2_TIMER 1 #define configUSE_OS2_MUTEX 1 /* Set the following definitions to 1 to include the API function, or zero to exclude the API function. */ #define INCLUDE_vTaskPrioritySet 1 #define INCLUDE_uxTaskPriorityGet 1 #define INCLUDE_vTaskDelete 1 #define INCLUDE_vTaskCleanUpResources 0 #define INCLUDE_vTaskSuspend 1 #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 #define INCLUDE_xTaskGetSchedulerState 1 #define INCLUDE_xTimerPendFunctionCall 1 #define INCLUDE_xQueueGetMutexHolder 1 #define INCLUDE_uxTaskGetStackHighWaterMark 1 #define INCLUDE_xTaskGetCurrentTaskHandle 1 #define INCLUDE_eTaskGetState 1 /* * The CMSIS-RTOS V2 FreeRTOS wrapper is dependent on the heap implementation used * by the application thus the correct define need to be enabled below */ #define USE_FreeRTOS_HEAP_4 /* Cortex-M specific definitions. */ #ifdef __NVIC_PRIO_BITS /* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */ #define configPRIO_BITS __NVIC_PRIO_BITS #else #define configPRIO_BITS 4 #endif /* The lowest interrupt priority that can be used in a call to a "set priority" function. */ #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15 /* The highest interrupt priority that can be used by any interrupt service routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER PRIORITY THAN THIS! (higher priorities are lower numeric values. */ #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5 /* Interrupt priorities used by the kernel port layer itself. These are generic to all Cortex-M ports, and do not rely on any particular library functions. */ #define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) /* Normal assert() semantics without relying on the provision of an assert.h header file. */ /* USER CODE BEGIN 1 */ #define configASSERT(x) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );} /* USER CODE END 1 */ /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS standard names. */ #define vPortSVCHandler SVC_Handler #define xPortPendSVHandler PendSV_Handler /* IMPORTANT: After 10.3.1 update, Systick_Handler comes from NVIC (if SYS timebase = systick), otherwise from cmsis_os2.c */ #define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 0 /* USER CODE BEGIN Defines */ /* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */ /* USER CODE END Defines */ #endif /* FREERTOS_CONFIG_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/adc.h ================================================ /** ****************************************************************************** * @file adc.h * @brief This file contains all the function prototypes for * the adc.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __ADC_H__ #define __ADC_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern ADC_HandleTypeDef hadc1; /* USER CODE BEGIN Private defines */ #define ADC_CH1 ADC_CHANNEL_12 #define ADC_CH2 ADC_CHANNEL_13 #define ADC_CH3 ADC_CHANNEL_14 #define ADC_CH4 ADC_CHANNEL_15 #define ADC_CHANNEL_REF 5 #define ADC_CHANNEL_TEMP 4 extern uint16_t adc1ValBuf[ADC_CHANNEL_REF + 1]; /* USER CODE END Private defines */ void MX_ADC1_Init(void); /* USER CODE BEGIN Prototypes */ float AdcGetChipTemperature(); float AdcGetVoltage(uint32_t _channel); uint16_t AdcGetRaw(uint32_t _channel); /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __ADC_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/can.h ================================================ /** ****************************************************************************** * @file can.h * @brief This file contains all the function prototypes for * the can.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __CAN_H__ #define __CAN_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern CAN_HandleTypeDef hcan1; extern CAN_HandleTypeDef hcan2; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_CAN1_Init(void); void MX_CAN2_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __CAN_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/dma.h ================================================ /** ****************************************************************************** * @file dma.h * @brief This file contains all the function prototypes for * the dma.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __DMA_H__ #define __DMA_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* DMA memory to memory transfer handles -------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_DMA_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __DMA_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/gpio.h ================================================ /** ****************************************************************************** * @file gpio.h * @brief This file contains all the function prototypes for * the gpio.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __GPIO_H__ #define __GPIO_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_GPIO_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /*__ GPIO_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/i2c.h ================================================ /** ****************************************************************************** * @file i2c.h * @brief This file contains all the function prototypes for * the i2c.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __I2C_H__ #define __I2C_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern I2C_HandleTypeDef hi2c1; extern I2C_HandleTypeDef hi2c2; extern I2C_HandleTypeDef hi2c3; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_I2C1_Init(void); void MX_I2C2_Init(void); void MX_I2C3_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __I2C_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/main.h ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void Error_Handler(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ #define KEY_Pin GPIO_PIN_13 #define KEY_GPIO_Port GPIOC #define OLED_I2C2_SCL_Pin GPIO_PIN_10 #define OLED_I2C2_SCL_GPIO_Port GPIOB #define OLED_I2C2_SDA_Pin GPIO_PIN_11 #define OLED_I2C2_SDA_GPIO_Port GPIOB #define LED_Pin GPIO_PIN_8 #define LED_GPIO_Port GPIOC #define IMU_I2C1_SCL_Pin GPIO_PIN_6 #define IMU_I2C1_SCL_GPIO_Port GPIOB #define IMU_I2C1_SDA_Pin GPIO_PIN_7 #define IMU_I2C1_SDA_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/spi.h ================================================ /** ****************************************************************************** * @file spi.h * @brief This file contains all the function prototypes for * the spi.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __SPI_H__ #define __SPI_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern SPI_HandleTypeDef hspi1; extern SPI_HandleTypeDef hspi3; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_SPI1_Init(void); void MX_SPI3_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __SPI_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/stm32f4xx_hal_conf.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_conf_template.h * @author MCD Application Team * @brief HAL configuration template file. * This file should be copied to the application folder and renamed * to stm32f4xx_hal_conf.h. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_CONF_H #define __STM32F4xx_HAL_CONF_H #ifdef __cplusplus extern "C" { #endif /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* ########################## Module Selection ############################## */ /** * @brief This is the list of modules to be used in the HAL driver */ #define HAL_MODULE_ENABLED #define HAL_ADC_MODULE_ENABLED /* #define HAL_CRYP_MODULE_ENABLED */ #define HAL_CAN_MODULE_ENABLED /* #define HAL_CRC_MODULE_ENABLED */ /* #define HAL_CAN_LEGACY_MODULE_ENABLED */ /* #define HAL_CRYP_MODULE_ENABLED */ /* #define HAL_DAC_MODULE_ENABLED */ /* #define HAL_DCMI_MODULE_ENABLED */ /* #define HAL_DMA2D_MODULE_ENABLED */ /* #define HAL_ETH_MODULE_ENABLED */ /* #define HAL_NAND_MODULE_ENABLED */ /* #define HAL_NOR_MODULE_ENABLED */ /* #define HAL_PCCARD_MODULE_ENABLED */ /* #define HAL_SRAM_MODULE_ENABLED */ /* #define HAL_SDRAM_MODULE_ENABLED */ /* #define HAL_HASH_MODULE_ENABLED */ #define HAL_I2C_MODULE_ENABLED /* #define HAL_I2S_MODULE_ENABLED */ /* #define HAL_IWDG_MODULE_ENABLED */ /* #define HAL_LTDC_MODULE_ENABLED */ /* #define HAL_RNG_MODULE_ENABLED */ /* #define HAL_RTC_MODULE_ENABLED */ /* #define HAL_SAI_MODULE_ENABLED */ /* #define HAL_SD_MODULE_ENABLED */ /* #define HAL_MMC_MODULE_ENABLED */ #define HAL_SPI_MODULE_ENABLED #define HAL_TIM_MODULE_ENABLED #define HAL_UART_MODULE_ENABLED /* #define HAL_USART_MODULE_ENABLED */ /* #define HAL_IRDA_MODULE_ENABLED */ /* #define HAL_SMARTCARD_MODULE_ENABLED */ /* #define HAL_SMBUS_MODULE_ENABLED */ /* #define HAL_WWDG_MODULE_ENABLED */ #define HAL_PCD_MODULE_ENABLED /* #define HAL_HCD_MODULE_ENABLED */ /* #define HAL_DSI_MODULE_ENABLED */ /* #define HAL_QSPI_MODULE_ENABLED */ /* #define HAL_QSPI_MODULE_ENABLED */ /* #define HAL_CEC_MODULE_ENABLED */ /* #define HAL_FMPI2C_MODULE_ENABLED */ /* #define HAL_FMPSMBUS_MODULE_ENABLED */ /* #define HAL_SPDIFRX_MODULE_ENABLED */ /* #define HAL_DFSDM_MODULE_ENABLED */ /* #define HAL_LPTIM_MODULE_ENABLED */ #define HAL_GPIO_MODULE_ENABLED #define HAL_EXTI_MODULE_ENABLED #define HAL_DMA_MODULE_ENABLED #define HAL_RCC_MODULE_ENABLED #define HAL_FLASH_MODULE_ENABLED #define HAL_PWR_MODULE_ENABLED #define HAL_CORTEX_MODULE_ENABLED /* ########################## HSE/HSI Values adaptation ##################### */ /** * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. * This value is used by the RCC HAL module to compute the system frequency * (when HSE is used as system clock source, directly or through the PLL). */ #if !defined (HSE_VALUE) #define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */ #endif /* HSE_VALUE */ #if !defined (HSE_STARTUP_TIMEOUT) #define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */ #endif /* HSE_STARTUP_TIMEOUT */ /** * @brief Internal High Speed oscillator (HSI) value. * This value is used by the RCC HAL module to compute the system frequency * (when HSI is used as system clock source, directly or through the PLL). */ #if !defined (HSI_VALUE) #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ #endif /* HSI_VALUE */ /** * @brief Internal Low Speed oscillator (LSI) value. */ #if !defined (LSI_VALUE) #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/ #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz The real value may vary depending on the variations in voltage and temperature.*/ /** * @brief External Low Speed oscillator (LSE) value. */ #if !defined (LSE_VALUE) #define LSE_VALUE 32768U /*!< Value of the External Low Speed oscillator in Hz */ #endif /* LSE_VALUE */ #if !defined (LSE_STARTUP_TIMEOUT) #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */ #endif /* LSE_STARTUP_TIMEOUT */ /** * @brief External clock source for I2S peripheral * This value is used by the I2S HAL module to compute the I2S clock source * frequency, this source is inserted directly through I2S_CKIN pad. */ #if !defined (EXTERNAL_CLOCK_VALUE) #define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External audio frequency in Hz*/ #endif /* EXTERNAL_CLOCK_VALUE */ /* Tip: To avoid modifying this file each time you need to use different HSE, === you can define the HSE value in your toolchain compiler preprocessor. */ /* ########################### System Configuration ######################### */ /** * @brief This is the HAL system configuration section */ #define VDD_VALUE 3300U /*!< Value of VDD in mv */ #define TICK_INT_PRIORITY 0U /*!< tick interrupt priority */ #define USE_RTOS 0U #define PREFETCH_ENABLE 1U #define INSTRUCTION_CACHE_ENABLE 1U #define DATA_CACHE_ENABLE 1U #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */ #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */ #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */ #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */ #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */ #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U /* DFSDM register callback disabled */ #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */ #define USE_HAL_DSI_REGISTER_CALLBACKS 0U /* DSI register callback disabled */ #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */ #define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */ #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */ #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */ #define USE_HAL_FMPI2C_REGISTER_CALLBACKS 0U /* FMPI2C register callback disabled */ #define USE_HAL_FMPSMBUS_REGISTER_CALLBACKS 0U /* FMPSMBUS register callback disabled */ #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */ #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */ #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */ #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U /* LTDC register callback disabled */ #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */ #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */ #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */ #define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */ #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */ #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */ #define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */ #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */ #define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */ #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */ #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */ #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */ #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */ #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U /* SPDIFRX register callback disabled */ #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */ #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */ #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */ #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */ #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */ #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */ /* ########################## Assert Selection ############################## */ /** * @brief Uncomment the line below to expanse the "assert_param" macro in the * HAL drivers code */ /* #define USE_FULL_ASSERT 1U */ /* ################## Ethernet peripheral configuration ##################### */ /* Section 1 : Ethernet peripheral configuration */ /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */ #define MAC_ADDR0 2U #define MAC_ADDR1 0U #define MAC_ADDR2 0U #define MAC_ADDR3 0U #define MAC_ADDR4 0U #define MAC_ADDR5 0U /* Definition of the Ethernet driver buffers size and count */ #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ #define ETH_RXBUFNB 4U /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ #define ETH_TXBUFNB 4U /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ /* Section 2: PHY configuration section */ /* DP83848_PHY_ADDRESS Address*/ #define DP83848_PHY_ADDRESS 0x01U /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ #define PHY_RESET_DELAY 0x000000FFU /* PHY Configuration delay */ #define PHY_CONFIG_DELAY 0x00000FFFU #define PHY_READ_TO 0x0000FFFFU #define PHY_WRITE_TO 0x0000FFFFU /* Section 3: Common PHY Registers */ #define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */ #define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */ #define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */ #define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */ #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */ #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000U) /*!< Set the half-duplex mode at 100 Mb/s */ #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100U) /*!< Set the full-duplex mode at 10 Mb/s */ #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000U) /*!< Set the half-duplex mode at 10 Mb/s */ #define PHY_AUTONEGOTIATION ((uint16_t)0x1000U) /*!< Enable auto-negotiation function */ #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200U) /*!< Restart auto-negotiation function */ #define PHY_POWERDOWN ((uint16_t)0x0800U) /*!< Select the power down mode */ #define PHY_ISOLATE ((uint16_t)0x0400U) /*!< Isolate PHY from MII */ #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */ #define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */ #define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */ /* Section 4: Extended PHY Registers */ #define PHY_SR ((uint16_t)0x10U) /*!< PHY status register Offset */ #define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */ #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */ /* ################## SPI peripheral configuration ########################## */ /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver * Activated: CRC code is present inside driver * Deactivated: CRC code cleaned from driver */ #define USE_SPI_CRC 0U /* Includes ------------------------------------------------------------------*/ /** * @brief Include module's header file */ #ifdef HAL_RCC_MODULE_ENABLED #include "stm32f4xx_hal_rcc.h" #endif /* HAL_RCC_MODULE_ENABLED */ #ifdef HAL_GPIO_MODULE_ENABLED #include "stm32f4xx_hal_gpio.h" #endif /* HAL_GPIO_MODULE_ENABLED */ #ifdef HAL_EXTI_MODULE_ENABLED #include "stm32f4xx_hal_exti.h" #endif /* HAL_EXTI_MODULE_ENABLED */ #ifdef HAL_DMA_MODULE_ENABLED #include "stm32f4xx_hal_dma.h" #endif /* HAL_DMA_MODULE_ENABLED */ #ifdef HAL_CORTEX_MODULE_ENABLED #include "stm32f4xx_hal_cortex.h" #endif /* HAL_CORTEX_MODULE_ENABLED */ #ifdef HAL_ADC_MODULE_ENABLED #include "stm32f4xx_hal_adc.h" #endif /* HAL_ADC_MODULE_ENABLED */ #ifdef HAL_CAN_MODULE_ENABLED #include "stm32f4xx_hal_can.h" #endif /* HAL_CAN_MODULE_ENABLED */ #ifdef HAL_CAN_LEGACY_MODULE_ENABLED #include "stm32f4xx_hal_can_legacy.h" #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */ #ifdef HAL_CRC_MODULE_ENABLED #include "stm32f4xx_hal_crc.h" #endif /* HAL_CRC_MODULE_ENABLED */ #ifdef HAL_CRYP_MODULE_ENABLED #include "stm32f4xx_hal_cryp.h" #endif /* HAL_CRYP_MODULE_ENABLED */ #ifdef HAL_DMA2D_MODULE_ENABLED #include "stm32f4xx_hal_dma2d.h" #endif /* HAL_DMA2D_MODULE_ENABLED */ #ifdef HAL_DAC_MODULE_ENABLED #include "stm32f4xx_hal_dac.h" #endif /* HAL_DAC_MODULE_ENABLED */ #ifdef HAL_DCMI_MODULE_ENABLED #include "stm32f4xx_hal_dcmi.h" #endif /* HAL_DCMI_MODULE_ENABLED */ #ifdef HAL_ETH_MODULE_ENABLED #include "stm32f4xx_hal_eth.h" #endif /* HAL_ETH_MODULE_ENABLED */ #ifdef HAL_FLASH_MODULE_ENABLED #include "stm32f4xx_hal_flash.h" #endif /* HAL_FLASH_MODULE_ENABLED */ #ifdef HAL_SRAM_MODULE_ENABLED #include "stm32f4xx_hal_sram.h" #endif /* HAL_SRAM_MODULE_ENABLED */ #ifdef HAL_NOR_MODULE_ENABLED #include "stm32f4xx_hal_nor.h" #endif /* HAL_NOR_MODULE_ENABLED */ #ifdef HAL_NAND_MODULE_ENABLED #include "stm32f4xx_hal_nand.h" #endif /* HAL_NAND_MODULE_ENABLED */ #ifdef HAL_PCCARD_MODULE_ENABLED #include "stm32f4xx_hal_pccard.h" #endif /* HAL_PCCARD_MODULE_ENABLED */ #ifdef HAL_SDRAM_MODULE_ENABLED #include "stm32f4xx_hal_sdram.h" #endif /* HAL_SDRAM_MODULE_ENABLED */ #ifdef HAL_HASH_MODULE_ENABLED #include "stm32f4xx_hal_hash.h" #endif /* HAL_HASH_MODULE_ENABLED */ #ifdef HAL_I2C_MODULE_ENABLED #include "stm32f4xx_hal_i2c.h" #endif /* HAL_I2C_MODULE_ENABLED */ #ifdef HAL_SMBUS_MODULE_ENABLED #include "stm32f4xx_hal_smbus.h" #endif /* HAL_SMBUS_MODULE_ENABLED */ #ifdef HAL_I2S_MODULE_ENABLED #include "stm32f4xx_hal_i2s.h" #endif /* HAL_I2S_MODULE_ENABLED */ #ifdef HAL_IWDG_MODULE_ENABLED #include "stm32f4xx_hal_iwdg.h" #endif /* HAL_IWDG_MODULE_ENABLED */ #ifdef HAL_LTDC_MODULE_ENABLED #include "stm32f4xx_hal_ltdc.h" #endif /* HAL_LTDC_MODULE_ENABLED */ #ifdef HAL_PWR_MODULE_ENABLED #include "stm32f4xx_hal_pwr.h" #endif /* HAL_PWR_MODULE_ENABLED */ #ifdef HAL_RNG_MODULE_ENABLED #include "stm32f4xx_hal_rng.h" #endif /* HAL_RNG_MODULE_ENABLED */ #ifdef HAL_RTC_MODULE_ENABLED #include "stm32f4xx_hal_rtc.h" #endif /* HAL_RTC_MODULE_ENABLED */ #ifdef HAL_SAI_MODULE_ENABLED #include "stm32f4xx_hal_sai.h" #endif /* HAL_SAI_MODULE_ENABLED */ #ifdef HAL_SD_MODULE_ENABLED #include "stm32f4xx_hal_sd.h" #endif /* HAL_SD_MODULE_ENABLED */ #ifdef HAL_SPI_MODULE_ENABLED #include "stm32f4xx_hal_spi.h" #endif /* HAL_SPI_MODULE_ENABLED */ #ifdef HAL_TIM_MODULE_ENABLED #include "stm32f4xx_hal_tim.h" #endif /* HAL_TIM_MODULE_ENABLED */ #ifdef HAL_UART_MODULE_ENABLED #include "stm32f4xx_hal_uart.h" #endif /* HAL_UART_MODULE_ENABLED */ #ifdef HAL_USART_MODULE_ENABLED #include "stm32f4xx_hal_usart.h" #endif /* HAL_USART_MODULE_ENABLED */ #ifdef HAL_IRDA_MODULE_ENABLED #include "stm32f4xx_hal_irda.h" #endif /* HAL_IRDA_MODULE_ENABLED */ #ifdef HAL_SMARTCARD_MODULE_ENABLED #include "stm32f4xx_hal_smartcard.h" #endif /* HAL_SMARTCARD_MODULE_ENABLED */ #ifdef HAL_WWDG_MODULE_ENABLED #include "stm32f4xx_hal_wwdg.h" #endif /* HAL_WWDG_MODULE_ENABLED */ #ifdef HAL_PCD_MODULE_ENABLED #include "stm32f4xx_hal_pcd.h" #endif /* HAL_PCD_MODULE_ENABLED */ #ifdef HAL_HCD_MODULE_ENABLED #include "stm32f4xx_hal_hcd.h" #endif /* HAL_HCD_MODULE_ENABLED */ #ifdef HAL_DSI_MODULE_ENABLED #include "stm32f4xx_hal_dsi.h" #endif /* HAL_DSI_MODULE_ENABLED */ #ifdef HAL_QSPI_MODULE_ENABLED #include "stm32f4xx_hal_qspi.h" #endif /* HAL_QSPI_MODULE_ENABLED */ #ifdef HAL_CEC_MODULE_ENABLED #include "stm32f4xx_hal_cec.h" #endif /* HAL_CEC_MODULE_ENABLED */ #ifdef HAL_FMPI2C_MODULE_ENABLED #include "stm32f4xx_hal_fmpi2c.h" #endif /* HAL_FMPI2C_MODULE_ENABLED */ #ifdef HAL_FMPSMBUS_MODULE_ENABLED #include "stm32f4xx_hal_fmpsmbus.h" #endif /* HAL_FMPSMBUS_MODULE_ENABLED */ #ifdef HAL_SPDIFRX_MODULE_ENABLED #include "stm32f4xx_hal_spdifrx.h" #endif /* HAL_SPDIFRX_MODULE_ENABLED */ #ifdef HAL_DFSDM_MODULE_ENABLED #include "stm32f4xx_hal_dfsdm.h" #endif /* HAL_DFSDM_MODULE_ENABLED */ #ifdef HAL_LPTIM_MODULE_ENABLED #include "stm32f4xx_hal_lptim.h" #endif /* HAL_LPTIM_MODULE_ENABLED */ #ifdef HAL_MMC_MODULE_ENABLED #include "stm32f4xx_hal_mmc.h" #endif /* HAL_MMC_MODULE_ENABLED */ /* Exported macro ------------------------------------------------------------*/ #ifdef USE_FULL_ASSERT /** * @brief The assert_param macro is used for function's parameters check. * @param expr If expr is false, it calls assert_failed function * which reports the name of the source file and the source * line number of the call that failed. * If expr is true, it returns no value. * @retval None */ #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) /* Exported functions ------------------------------------------------------- */ void assert_failed(uint8_t* file, uint32_t line); #else #define assert_param(expr) ((void)0U) #endif /* USE_FULL_ASSERT */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_CONF_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/stm32f4xx_it.h ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_it.h * @brief This file contains the headers of the interrupt handlers. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_IT_H #define __STM32F4xx_IT_H #ifdef __cplusplus extern "C" { #endif /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void NMI_Handler(void); void HardFault_Handler(void); void MemManage_Handler(void); void BusFault_Handler(void); void UsageFault_Handler(void); void DebugMon_Handler(void); void DMA1_Stream0_IRQHandler(void); void DMA1_Stream2_IRQHandler(void); void DMA1_Stream4_IRQHandler(void); void ADC_IRQHandler(void); void CAN1_TX_IRQHandler(void); void CAN1_RX0_IRQHandler(void); void CAN1_RX1_IRQHandler(void); void CAN1_SCE_IRQHandler(void); void TIM1_UP_TIM10_IRQHandler(void); void TIM1_TRG_COM_TIM11_IRQHandler(void); void TIM2_IRQHandler(void); void TIM3_IRQHandler(void); void TIM8_UP_TIM13_IRQHandler(void); void TIM8_TRG_COM_TIM14_IRQHandler(void); void DMA1_Stream7_IRQHandler(void); void SPI3_IRQHandler(void); void UART4_IRQHandler(void); void UART5_IRQHandler(void); void TIM6_DAC_IRQHandler(void); void TIM7_IRQHandler(void); void DMA2_Stream0_IRQHandler(void); void CAN2_TX_IRQHandler(void); void CAN2_RX0_IRQHandler(void); void CAN2_RX1_IRQHandler(void); void CAN2_SCE_IRQHandler(void); void OTG_FS_IRQHandler(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_IT_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/tim.h ================================================ /** ****************************************************************************** * @file tim.h * @brief This file contains all the function prototypes for * the tim.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __TIM_H__ #define __TIM_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern TIM_HandleTypeDef htim2; extern TIM_HandleTypeDef htim3; extern TIM_HandleTypeDef htim7; extern TIM_HandleTypeDef htim9; extern TIM_HandleTypeDef htim10; extern TIM_HandleTypeDef htim11; extern TIM_HandleTypeDef htim12; extern TIM_HandleTypeDef htim13; extern TIM_HandleTypeDef htim14; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_TIM2_Init(void); void MX_TIM3_Init(void); void MX_TIM7_Init(void); void MX_TIM9_Init(void); void MX_TIM10_Init(void); void MX_TIM11_Init(void); void MX_TIM12_Init(void); void MX_TIM13_Init(void); void MX_TIM14_Init(void); void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); /* USER CODE BEGIN Prototypes */ int64_t GetEncoderCount(TIM_TypeDef *tim); int64_t GetCntLoop(TIM_TypeDef *tim); void ClearCntLoop(TIM_TypeDef *tim); /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __TIM_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Inc/usart.h ================================================ /** ****************************************************************************** * @file usart.h * @brief This file contains all the function prototypes for * the usart.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USART_H__ #define __USART_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern UART_HandleTypeDef huart4; extern UART_HandleTypeDef huart5; extern UART_HandleTypeDef huart1; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_UART4_Init(void); void MX_UART5_Init(void); void MX_USART1_UART_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __USART_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/adc.c ================================================ /** ****************************************************************************** * @file adc.c * @brief This file provides code for the configuration * of the ADC instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "adc.h" /* USER CODE BEGIN 0 */ uint16_t adc1ValBuf[ADC_CHANNEL_REF + 1] = {0}; /* USER CODE END 0 */ ADC_HandleTypeDef hadc1; DMA_HandleTypeDef hdma_adc1; /* ADC1 init function */ void MX_ADC1_Init(void) { /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC1_Init 1 */ /* USER CODE END ADC1_Init 1 */ /** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion) */ hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.ScanConvMode = ENABLE; hadc1.Init.ContinuousConvMode = ENABLE; hadc1.Init.DiscontinuousConvMode = DISABLE; hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.NbrOfConversion = 6; hadc1.Init.DMAContinuousRequests = ENABLE; hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV; if (HAL_ADC_Init(&hadc1) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_12; sConfig.Rank = 1; sConfig.SamplingTime = ADC_SAMPLETIME_28CYCLES; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_13; sConfig.Rank = 2; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_14; sConfig.Rank = 3; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_15; sConfig.Rank = 4; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_TEMPSENSOR; sConfig.Rank = 5; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ sConfig.Channel = ADC_CHANNEL_VREFINT; sConfig.Rank = 6; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN ADC1_Init 2 */ HAL_ADC_Start_DMA(&hadc1, (uint32_t *) &adc1ValBuf, hadc1.Init.NbrOfConversion); /* USER CODE END ADC1_Init 2 */ } void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(adcHandle->Instance==ADC1) { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); /**ADC1 GPIO Configuration PC2 ------> ADC1_IN12 PC3 ------> ADC1_IN13 PC4 ------> ADC1_IN14 PC5 ------> ADC1_IN15 */ GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); /* ADC1 DMA Init */ /* ADC1 Init */ hdma_adc1.Instance = DMA2_Stream0; hdma_adc1.Init.Channel = DMA_CHANNEL_0; hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY; hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE; hdma_adc1.Init.MemInc = DMA_MINC_ENABLE; hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; hdma_adc1.Init.Mode = DMA_CIRCULAR; hdma_adc1.Init.Priority = DMA_PRIORITY_LOW; hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_adc1) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(adcHandle,DMA_Handle,hdma_adc1); /* ADC1 interrupt Init */ HAL_NVIC_SetPriority(ADC_IRQn, 5, 0); HAL_NVIC_EnableIRQ(ADC_IRQn); /* USER CODE BEGIN ADC1_MspInit 1 */ /* USER CODE END ADC1_MspInit 1 */ } } void HAL_ADC_MspDeInit(ADC_HandleTypeDef* adcHandle) { if(adcHandle->Instance==ADC1) { /* USER CODE BEGIN ADC1_MspDeInit 0 */ /* USER CODE END ADC1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_ADC1_CLK_DISABLE(); /**ADC1 GPIO Configuration PC2 ------> ADC1_IN12 PC3 ------> ADC1_IN13 PC4 ------> ADC1_IN14 PC5 ------> ADC1_IN15 */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5); /* ADC1 DMA DeInit */ HAL_DMA_DeInit(adcHandle->DMA_Handle); /* ADC1 interrupt Deinit */ HAL_NVIC_DisableIRQ(ADC_IRQn); /* USER CODE BEGIN ADC1_MspDeInit 1 */ /* USER CODE END ADC1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ float AdcGetChipTemperature() { float tempVal = TEMPSENSOR_CAL1_TEMP + (float) (adc1ValBuf[ADC_CHANNEL_TEMP] - *(__IO uint16_t *) (TEMPSENSOR_CAL1_ADDR)) * (TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) / (float) (*(__IO uint16_t *) (TEMPSENSOR_CAL2_ADDR) - *(__IO uint16_t *) (TEMPSENSOR_CAL1_ADDR)); return tempVal; } float AdcGetVoltage(uint32_t _channel) { uint8_t index = 0; switch (_channel) { case ADC_CH1: index = 0; break; case ADC_CH2: index = 1; break; case ADC_CH3: index = 2; break; case ADC_CH4: index = 3; break; default: index = 0; } float val = (float) adc1ValBuf[ADC_CHANNEL_REF] / (float) (*(__IO uint16_t *) (VREFINT_CAL_ADDR)) * (float) adc1ValBuf[index] / 4095 * 3.3f; return val; } uint16_t AdcGetRaw(uint32_t _channel) { uint8_t index = 0; switch (_channel) { case ADC_CH1: index = 0; break; case ADC_CH2: index = 1; break; case ADC_CH3: index = 2; break; case ADC_CH4: index = 3; break; default: index = 0; } return adc1ValBuf[index]; } /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/can.c ================================================ /** ****************************************************************************** * @file can.c * @brief This file provides code for the configuration * of the CAN instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "can.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ CAN_HandleTypeDef hcan1; CAN_HandleTypeDef hcan2; /* CAN1 init function */ void MX_CAN1_Init(void) { /* USER CODE BEGIN CAN1_Init 0 */ /* USER CODE END CAN1_Init 0 */ /* USER CODE BEGIN CAN1_Init 1 */ /* USER CODE END CAN1_Init 1 */ hcan1.Instance = CAN1; hcan1.Init.Prescaler = 7; hcan1.Init.Mode = CAN_MODE_NORMAL; hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ; hcan1.Init.TimeSeg1 = CAN_BS1_3TQ; hcan1.Init.TimeSeg2 = CAN_BS2_2TQ; hcan1.Init.TimeTriggeredMode = DISABLE; hcan1.Init.AutoBusOff = DISABLE; hcan1.Init.AutoWakeUp = ENABLE; hcan1.Init.AutoRetransmission = DISABLE; hcan1.Init.ReceiveFifoLocked = DISABLE; hcan1.Init.TransmitFifoPriority = ENABLE; if (HAL_CAN_Init(&hcan1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN CAN1_Init 2 */ /* USER CODE END CAN1_Init 2 */ } /* CAN2 init function */ void MX_CAN2_Init(void) { /* USER CODE BEGIN CAN2_Init 0 */ /* USER CODE END CAN2_Init 0 */ /* USER CODE BEGIN CAN2_Init 1 */ /* USER CODE END CAN2_Init 1 */ hcan2.Instance = CAN2; hcan2.Init.Prescaler = 7; hcan2.Init.Mode = CAN_MODE_NORMAL; hcan2.Init.SyncJumpWidth = CAN_SJW_1TQ; hcan2.Init.TimeSeg1 = CAN_BS1_3TQ; hcan2.Init.TimeSeg2 = CAN_BS2_2TQ; hcan2.Init.TimeTriggeredMode = DISABLE; hcan2.Init.AutoBusOff = DISABLE; hcan2.Init.AutoWakeUp = ENABLE; hcan2.Init.AutoRetransmission = DISABLE; hcan2.Init.ReceiveFifoLocked = DISABLE; hcan2.Init.TransmitFifoPriority = DISABLE; if (HAL_CAN_Init(&hcan2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN CAN2_Init 2 */ /* USER CODE END CAN2_Init 2 */ } static uint32_t HAL_RCC_CAN1_CLK_ENABLED=0; void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(canHandle->Instance==CAN1) { /* USER CODE BEGIN CAN1_MspInit 0 */ /* USER CODE END CAN1_MspInit 0 */ /* CAN1 clock enable */ HAL_RCC_CAN1_CLK_ENABLED++; if(HAL_RCC_CAN1_CLK_ENABLED==1){ __HAL_RCC_CAN1_CLK_ENABLE(); } __HAL_RCC_GPIOB_CLK_ENABLE(); /**CAN1 GPIO Configuration PB8 ------> CAN1_RX PB9 ------> CAN1_TX */ GPIO_InitStruct.Pin = GPIO_PIN_8; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF9_CAN1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_9; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF9_CAN1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* CAN1 interrupt Init */ HAL_NVIC_SetPriority(CAN1_TX_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN1_TX_IRQn); HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn); HAL_NVIC_SetPriority(CAN1_RX1_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN1_RX1_IRQn); HAL_NVIC_SetPriority(CAN1_SCE_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN1_SCE_IRQn); /* USER CODE BEGIN CAN1_MspInit 1 */ /* USER CODE END CAN1_MspInit 1 */ } else if(canHandle->Instance==CAN2) { /* USER CODE BEGIN CAN2_MspInit 0 */ /* USER CODE END CAN2_MspInit 0 */ /* CAN2 clock enable */ __HAL_RCC_CAN2_CLK_ENABLE(); HAL_RCC_CAN1_CLK_ENABLED++; if(HAL_RCC_CAN1_CLK_ENABLED==1){ __HAL_RCC_CAN1_CLK_ENABLE(); } __HAL_RCC_GPIOB_CLK_ENABLE(); /**CAN2 GPIO Configuration PB12 ------> CAN2_RX PB13 ------> CAN2_TX */ GPIO_InitStruct.Pin = GPIO_PIN_12; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF9_CAN2; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_13; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF9_CAN2; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* CAN2 interrupt Init */ HAL_NVIC_SetPriority(CAN2_TX_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN2_TX_IRQn); HAL_NVIC_SetPriority(CAN2_RX0_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN2_RX0_IRQn); HAL_NVIC_SetPriority(CAN2_RX1_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); HAL_NVIC_SetPriority(CAN2_SCE_IRQn, 5, 0); HAL_NVIC_EnableIRQ(CAN2_SCE_IRQn); /* USER CODE BEGIN CAN2_MspInit 1 */ /* USER CODE END CAN2_MspInit 1 */ } } void HAL_CAN_MspDeInit(CAN_HandleTypeDef* canHandle) { if(canHandle->Instance==CAN1) { /* USER CODE BEGIN CAN1_MspDeInit 0 */ /* USER CODE END CAN1_MspDeInit 0 */ /* Peripheral clock disable */ HAL_RCC_CAN1_CLK_ENABLED--; if(HAL_RCC_CAN1_CLK_ENABLED==0){ __HAL_RCC_CAN1_CLK_DISABLE(); } /**CAN1 GPIO Configuration PB8 ------> CAN1_RX PB9 ------> CAN1_TX */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8|GPIO_PIN_9); /* CAN1 interrupt Deinit */ HAL_NVIC_DisableIRQ(CAN1_TX_IRQn); HAL_NVIC_DisableIRQ(CAN1_RX0_IRQn); HAL_NVIC_DisableIRQ(CAN1_RX1_IRQn); HAL_NVIC_DisableIRQ(CAN1_SCE_IRQn); /* USER CODE BEGIN CAN1_MspDeInit 1 */ /* USER CODE END CAN1_MspDeInit 1 */ } else if(canHandle->Instance==CAN2) { /* USER CODE BEGIN CAN2_MspDeInit 0 */ /* USER CODE END CAN2_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_CAN2_CLK_DISABLE(); HAL_RCC_CAN1_CLK_ENABLED--; if(HAL_RCC_CAN1_CLK_ENABLED==0){ __HAL_RCC_CAN1_CLK_DISABLE(); } /**CAN2 GPIO Configuration PB12 ------> CAN2_RX PB13 ------> CAN2_TX */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_12|GPIO_PIN_13); /* CAN2 interrupt Deinit */ HAL_NVIC_DisableIRQ(CAN2_TX_IRQn); HAL_NVIC_DisableIRQ(CAN2_RX0_IRQn); HAL_NVIC_DisableIRQ(CAN2_RX1_IRQn); HAL_NVIC_DisableIRQ(CAN2_SCE_IRQn); /* USER CODE BEGIN CAN2_MspDeInit 1 */ /* USER CODE END CAN2_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/dma.c ================================================ /** ****************************************************************************** * @file dma.c * @brief This file provides code for the configuration * of all the requested memory to memory DMA transfers. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "dma.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /*----------------------------------------------------------------------------*/ /* Configure DMA */ /*----------------------------------------------------------------------------*/ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /** * Enable DMA controller clock */ void MX_DMA_Init(void) { /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE(); __HAL_RCC_DMA2_CLK_ENABLE(); /* DMA interrupt init */ /* DMA1_Stream0_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 6, 0); HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); /* DMA1_Stream2_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 6, 0); HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn); /* DMA1_Stream4_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 6, 0); HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); /* DMA1_Stream7_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream7_IRQn, 6, 0); HAL_NVIC_EnableIRQ(DMA1_Stream7_IRQn); /* DMA2_Stream0_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA2_Stream0_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA2_Stream0_IRQn); } /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/freertos.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "FreeRTOS.h" #include "task.h" #include "main.h" #include "cmsis_os.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "common_inc.h" #include "communication.hpp" /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN Variables */ // List of semaphores osSemaphoreId sem_usb_irq; osSemaphoreId sem_uart4_dma; osSemaphoreId sem_uart5_dma; osSemaphoreId sem_usb_rx; osSemaphoreId sem_usb_tx; osSemaphoreId sem_can1_tx; osSemaphoreId sem_can2_tx; /* USER CODE END Variables */ /* Definitions for defaultTask */ osThreadId_t defaultTaskHandle; const osThreadAttr_t defaultTask_attributes = { .name = "defaultTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityNormal, }; /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN FunctionPrototypes */ /* USER CODE END FunctionPrototypes */ void StartDefaultTask(void *argument); extern void MX_USB_DEVICE_Init(void); void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */ /** * @brief FreeRTOS initialization * @param None * @retval None */ void MX_FREERTOS_Init(void) { /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* USER CODE BEGIN RTOS_MUTEX */ /* add mutexes, ... */ /* USER CODE END RTOS_MUTEX */ /* USER CODE BEGIN RTOS_SEMAPHORES */ // Init usb irq binary semaphore, and start with no tokens by removing the starting one. osSemaphoreDef(sem_usb_irq); sem_usb_irq = osSemaphoreNew(1, 0, osSemaphore(sem_usb_irq)); // Create a semaphore for UART DMA and remove a token osSemaphoreDef(sem_uart4_dma); sem_uart4_dma = osSemaphoreNew(1, 1, osSemaphore(sem_uart4_dma)); osSemaphoreDef(sem_uart5_dma); sem_uart5_dma = osSemaphoreNew(1, 1, osSemaphore(sem_uart5_dma)); // Create a semaphore for USB RX, and start with no tokens by removing the starting one. osSemaphoreDef(sem_usb_rx); sem_usb_rx = osSemaphoreNew(1, 0, osSemaphore(sem_usb_rx)); // Create a semaphore for USB TX osSemaphoreDef(sem_usb_tx); sem_usb_tx = osSemaphoreNew(1, 1, osSemaphore(sem_usb_tx)); // Create a semaphore for CAN TX osSemaphoreDef(sem_can1_tx); sem_can1_tx = osSemaphoreNew(1, 1, osSemaphore(sem_can1_tx)); osSemaphoreDef(sem_can2_tx); sem_can2_tx = osSemaphoreNew(1, 1, osSemaphore(sem_can2_tx)); /* USER CODE END RTOS_SEMAPHORES */ /* USER CODE BEGIN RTOS_TIMERS */ /* USER CODE END RTOS_TIMERS */ /* USER CODE BEGIN RTOS_QUEUES */ // This Task must run before MX_USB_DEVICE_Init(), so have to put it here. const osThreadAttr_t usbIrqTask_attributes = { .name = "usbIrqTask", .stack_size = 500, .priority = (osPriority_t) osPriorityAboveNormal, }; usbIrqTaskHandle = osThreadNew(UsbDeferredInterruptTask, NULL, &usbIrqTask_attributes); /* USER CODE END RTOS_QUEUES */ /* Create the thread(s) */ /* creation of defaultTask */ defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes); /* USER CODE BEGIN RTOS_THREADS */ /* add threads, ... */ /* USER CODE END RTOS_THREADS */ /* USER CODE BEGIN RTOS_EVENTS */ /* add events, ... */ /* USER CODE END RTOS_EVENTS */ } /* USER CODE BEGIN Header_StartDefaultTask */ /** * @brief Function implementing the defaultTask thread. * @param argument: Not used * @retval None */ /* USER CODE END Header_StartDefaultTask */ void StartDefaultTask(void *argument) { /* init code for USB_DEVICE */ MX_USB_DEVICE_Init(); /* USER CODE BEGIN StartDefaultTask */ // Invoke cpp-version main(). Main(); vTaskDelete(defaultTaskHandle); /* USER CODE END StartDefaultTask */ } /* Private application code --------------------------------------------------*/ /* USER CODE BEGIN Application */ /* USER CODE END Application */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/gpio.c ================================================ /** ****************************************************************************** * @file gpio.c * @brief This file provides code for the configuration * of all used GPIO pins. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "gpio.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /*----------------------------------------------------------------------------*/ /* Configure GPIO */ /*----------------------------------------------------------------------------*/ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /** Configure pins as * Analog * Input * Output * EVENT_OUT * EXTI */ void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = KEY_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(KEY_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = LED_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(LED_GPIO_Port, &GPIO_InitStruct); } /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/i2c.c ================================================ /** ****************************************************************************** * @file i2c.c * @brief This file provides code for the configuration * of the I2C instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "i2c.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ I2C_HandleTypeDef hi2c1; I2C_HandleTypeDef hi2c2; I2C_HandleTypeDef hi2c3; /* I2C1 init function */ void MX_I2C1_Init(void) { /* USER CODE BEGIN I2C1_Init 0 */ /* USER CODE END I2C1_Init 0 */ /* USER CODE BEGIN I2C1_Init 1 */ /* USER CODE END I2C1_Init 1 */ hi2c1.Instance = I2C1; hi2c1.Init.ClockSpeed = 400000; hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2; hi2c1.Init.OwnAddress1 = 0; hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; hi2c1.Init.OwnAddress2 = 0; hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; if (HAL_I2C_Init(&hi2c1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN I2C1_Init 2 */ /* USER CODE END I2C1_Init 2 */ } /* I2C2 init function */ void MX_I2C2_Init(void) { /* USER CODE BEGIN I2C2_Init 0 */ /* USER CODE END I2C2_Init 0 */ /* USER CODE BEGIN I2C2_Init 1 */ /* USER CODE END I2C2_Init 1 */ hi2c2.Instance = I2C2; hi2c2.Init.ClockSpeed = 400000; hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; hi2c2.Init.OwnAddress1 = 0; hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; hi2c2.Init.OwnAddress2 = 0; hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; if (HAL_I2C_Init(&hi2c2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN I2C2_Init 2 */ /* USER CODE END I2C2_Init 2 */ } /* I2C3 init function */ void MX_I2C3_Init(void) { /* USER CODE BEGIN I2C3_Init 0 */ /* USER CODE END I2C3_Init 0 */ /* USER CODE BEGIN I2C3_Init 1 */ /* USER CODE END I2C3_Init 1 */ hi2c3.Instance = I2C3; hi2c3.Init.ClockSpeed = 400000; hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2; hi2c3.Init.OwnAddress1 = 0; hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; hi2c3.Init.OwnAddress2 = 0; hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; if (HAL_I2C_Init(&hi2c3) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN I2C3_Init 2 */ /* USER CODE END I2C3_Init 2 */ } void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(i2cHandle->Instance==I2C1) { /* USER CODE BEGIN I2C1_MspInit 0 */ /* USER CODE END I2C1_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ GPIO_InitStruct.Pin = IMU_I2C1_SCL_Pin|IMU_I2C1_SDA_Pin; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF4_I2C1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* I2C1 clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); /* USER CODE BEGIN I2C1_MspInit 1 */ /* USER CODE END I2C1_MspInit 1 */ } else if(i2cHandle->Instance==I2C2) { /* USER CODE BEGIN I2C2_MspInit 0 */ /* USER CODE END I2C2_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); /**I2C2 GPIO Configuration PB10 ------> I2C2_SCL PB11 ------> I2C2_SDA */ GPIO_InitStruct.Pin = OLED_I2C2_SCL_Pin|OLED_I2C2_SDA_Pin; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF4_I2C2; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* I2C2 clock enable */ __HAL_RCC_I2C2_CLK_ENABLE(); /* USER CODE BEGIN I2C2_MspInit 1 */ /* USER CODE END I2C2_MspInit 1 */ } else if(i2cHandle->Instance==I2C3) { /* USER CODE BEGIN I2C3_MspInit 0 */ /* USER CODE END I2C3_MspInit 0 */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); /**I2C3 GPIO Configuration PC9 ------> I2C3_SDA PA8 ------> I2C3_SCL */ GPIO_InitStruct.Pin = GPIO_PIN_9; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF4_I2C3; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_8; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF4_I2C3; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* I2C3 clock enable */ __HAL_RCC_I2C3_CLK_ENABLE(); /* USER CODE BEGIN I2C3_MspInit 1 */ /* USER CODE END I2C3_MspInit 1 */ } } void HAL_I2C_MspDeInit(I2C_HandleTypeDef* i2cHandle) { if(i2cHandle->Instance==I2C1) { /* USER CODE BEGIN I2C1_MspDeInit 0 */ /* USER CODE END I2C1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C1_CLK_DISABLE(); /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ HAL_GPIO_DeInit(IMU_I2C1_SCL_GPIO_Port, IMU_I2C1_SCL_Pin); HAL_GPIO_DeInit(IMU_I2C1_SDA_GPIO_Port, IMU_I2C1_SDA_Pin); /* USER CODE BEGIN I2C1_MspDeInit 1 */ /* USER CODE END I2C1_MspDeInit 1 */ } else if(i2cHandle->Instance==I2C2) { /* USER CODE BEGIN I2C2_MspDeInit 0 */ /* USER CODE END I2C2_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C2_CLK_DISABLE(); /**I2C2 GPIO Configuration PB10 ------> I2C2_SCL PB11 ------> I2C2_SDA */ HAL_GPIO_DeInit(OLED_I2C2_SCL_GPIO_Port, OLED_I2C2_SCL_Pin); HAL_GPIO_DeInit(OLED_I2C2_SDA_GPIO_Port, OLED_I2C2_SDA_Pin); /* USER CODE BEGIN I2C2_MspDeInit 1 */ /* USER CODE END I2C2_MspDeInit 1 */ } else if(i2cHandle->Instance==I2C3) { /* USER CODE BEGIN I2C3_MspDeInit 0 */ /* USER CODE END I2C3_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C3_CLK_DISABLE(); /**I2C3 GPIO Configuration PC9 ------> I2C3_SDA PA8 ------> I2C3_SCL */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_9); HAL_GPIO_DeInit(GPIOA, GPIO_PIN_8); /* USER CODE BEGIN I2C3_MspDeInit 1 */ /* USER CODE END I2C3_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/main.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "cmsis_os.h" #include "adc.h" #include "can.h" #include "dma.h" #include "i2c.h" #include "spi.h" #include "tim.h" #include "usart.h" #include "usb_device.h" #include "gpio.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ uint64_t serialNumber; char serialNumberStr[13]; __attribute__((section(".ccmram"))) uint8_t ucHeap[configTOTAL_HEAP_SIZE]; /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); void MX_FREERTOS_Init(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /** * @brief The application entry point. * @retval int */ int main(void) { /* USER CODE BEGIN 1 */ // This procedure of building a USB serial number should be identical // to the way the STM's built-in USB bootloader does it. This means // that the device will have the same serial number in normal and DFU mode. uint32_t uuid0 = *(uint32_t *) (UID_BASE + 0); uint32_t uuid1 = *(uint32_t *) (UID_BASE + 4); uint32_t uuid2 = *(uint32_t *) (UID_BASE + 8); uint32_t uuid_mixed_part = uuid0 + uuid2; serialNumber = ((uint64_t) uuid_mixed_part << 16) | (uint64_t) (uuid1 >> 16); uint64_t val = serialNumber; for (size_t i = 0; i < 12; ++i) { serialNumberStr[i] = "0123456789ABCDEF"[(val >> (48 - 4)) & 0xf]; val <<= 4; } serialNumberStr[12] = 0; /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ HAL_RCC_DeInit(); /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_I2C1_Init(); MX_I2C2_Init(); MX_CAN1_Init(); MX_CAN2_Init(); MX_USART1_UART_Init(); MX_I2C3_Init(); MX_SPI1_Init(); MX_SPI3_Init(); MX_UART4_Init(); MX_ADC1_Init(); MX_UART5_Init(); MX_TIM2_Init(); MX_TIM3_Init(); /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /* Init scheduler */ osKernelInitialize(); /* Call init function for freertos objects (in freertos.c) */ MX_FREERTOS_Init(); /* Start scheduler */ osKernelStart(); /* We should never get here as control is now taken by the scheduler */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage */ __HAL_RCC_PWR_CLK_ENABLE(); __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1); /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLM = 4; RCC_OscInitStruct.PLL.PLLN = 168; RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; RCC_OscInitStruct.PLL.PLLQ = 7; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_5) != HAL_OK) { Error_Handler(); } } /* USER CODE BEGIN 4 */ void OnTimerCallback(TIM_TypeDef *timInstance); /* USER CODE END 4 */ /** * @brief Period elapsed callback in non blocking mode * @note This function is called when TIM6 interrupt took place, inside * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment * a global variable "uwTick" used as application time base. * @param htim : TIM handle * @retval None */ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { /* USER CODE BEGIN Callback 0 */ /* USER CODE END Callback 0 */ if (htim->Instance == TIM6) { HAL_IncTick(); } /* USER CODE BEGIN Callback 1 */ else { OnTimerCallback(htim->Instance); } /* USER CODE END Callback 1 */ } /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) { } /* USER CODE END Error_Handler_Debug */ } #ifdef USE_FULL_ASSERT /** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */ void assert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ /* User can add his own implementation to report the file name and line number, ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/spi.c ================================================ /** ****************************************************************************** * @file spi.c * @brief This file provides code for the configuration * of the SPI instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "spi.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ SPI_HandleTypeDef hspi1; SPI_HandleTypeDef hspi3; /* SPI1 init function */ void MX_SPI1_Init(void) { /* USER CODE BEGIN SPI1_Init 0 */ /* USER CODE END SPI1_Init 0 */ /* USER CODE BEGIN SPI1_Init 1 */ /* USER CODE END SPI1_Init 1 */ hspi1.Instance = SPI1; hspi1.Init.Mode = SPI_MODE_MASTER; hspi1.Init.Direction = SPI_DIRECTION_2LINES; hspi1.Init.DataSize = SPI_DATASIZE_8BIT; hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; hspi1.Init.CLKPhase = SPI_PHASE_1EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi1.Init.CRCPolynomial = 10; if (HAL_SPI_Init(&hspi1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI1_Init 2 */ /* USER CODE END SPI1_Init 2 */ } /* SPI3 init function */ void MX_SPI3_Init(void) { /* USER CODE BEGIN SPI3_Init 0 */ /* USER CODE END SPI3_Init 0 */ /* USER CODE BEGIN SPI3_Init 1 */ /* USER CODE END SPI3_Init 1 */ hspi3.Instance = SPI3; hspi3.Init.Mode = SPI_MODE_MASTER; hspi3.Init.Direction = SPI_DIRECTION_2LINES; hspi3.Init.DataSize = SPI_DATASIZE_8BIT; hspi3.Init.CLKPolarity = SPI_POLARITY_LOW; hspi3.Init.CLKPhase = SPI_PHASE_1EDGE; hspi3.Init.NSS = SPI_NSS_SOFT; hspi3.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; hspi3.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi3.Init.TIMode = SPI_TIMODE_DISABLE; hspi3.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi3.Init.CRCPolynomial = 10; if (HAL_SPI_Init(&hspi3) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI3_Init 2 */ /* USER CODE END SPI3_Init 2 */ } void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(spiHandle->Instance==SPI1) { /* USER CODE BEGIN SPI1_MspInit 0 */ /* USER CODE END SPI1_MspInit 0 */ /* SPI1 clock enable */ __HAL_RCC_SPI1_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**SPI1 GPIO Configuration PA5 ------> SPI1_SCK PA7 ------> SPI1_MOSI PB4 ------> SPI1_MISO */ GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF5_SPI1; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_4; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF5_SPI1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* USER CODE BEGIN SPI1_MspInit 1 */ /* USER CODE END SPI1_MspInit 1 */ } else if(spiHandle->Instance==SPI3) { /* USER CODE BEGIN SPI3_MspInit 0 */ /* USER CODE END SPI3_MspInit 0 */ /* SPI3 clock enable */ __HAL_RCC_SPI3_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**SPI3 GPIO Configuration PC10 ------> SPI3_SCK PC11 ------> SPI3_MISO PB5 ------> SPI3_MOSI */ GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF6_SPI3; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF6_SPI3; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* SPI3 interrupt Init */ HAL_NVIC_SetPriority(SPI3_IRQn, 5, 0); HAL_NVIC_EnableIRQ(SPI3_IRQn); /* USER CODE BEGIN SPI3_MspInit 1 */ /* USER CODE END SPI3_MspInit 1 */ } } void HAL_SPI_MspDeInit(SPI_HandleTypeDef* spiHandle) { if(spiHandle->Instance==SPI1) { /* USER CODE BEGIN SPI1_MspDeInit 0 */ /* USER CODE END SPI1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_SPI1_CLK_DISABLE(); /**SPI1 GPIO Configuration PA5 ------> SPI1_SCK PA7 ------> SPI1_MOSI PB4 ------> SPI1_MISO */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_5|GPIO_PIN_7); HAL_GPIO_DeInit(GPIOB, GPIO_PIN_4); /* USER CODE BEGIN SPI1_MspDeInit 1 */ /* USER CODE END SPI1_MspDeInit 1 */ } else if(spiHandle->Instance==SPI3) { /* USER CODE BEGIN SPI3_MspDeInit 0 */ /* USER CODE END SPI3_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_SPI3_CLK_DISABLE(); /**SPI3 GPIO Configuration PC10 ------> SPI3_SCK PC11 ------> SPI3_MISO PB5 ------> SPI3_MOSI */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_10|GPIO_PIN_11); HAL_GPIO_DeInit(GPIOB, GPIO_PIN_5); /* SPI3 interrupt Deinit */ HAL_NVIC_DisableIRQ(SPI3_IRQn); /* USER CODE BEGIN SPI3_MspDeInit 1 */ /* USER CODE END SPI3_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_hal_msp.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN TD */ /* USER CODE END TD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN Define */ /* USER CODE END Define */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN Macro */ /* USER CODE END Macro */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* External functions --------------------------------------------------------*/ /* USER CODE BEGIN ExternalFunctions */ /* USER CODE END ExternalFunctions */ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); __HAL_RCC_PWR_CLK_ENABLE(); /* System interrupt init*/ /* PendSV_IRQn interrupt configuration */ HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0); /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_hal_timebase_tim.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_hal_timebase_TIM.c * @brief HAL time base based on the hardware TIM. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_tim.h" /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ TIM_HandleTypeDef htim6; /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** * @brief This function configures the TIM6 as a time base source. * The time source is configured to have 1ms time base with a dedicated * Tick interrupt priority. * @note This function is called automatically at the beginning of program after * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig(). * @param TickPriority: Tick interrupt priority. * @retval HAL status */ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { RCC_ClkInitTypeDef clkconfig; uint32_t uwTimclock = 0; uint32_t uwPrescalerValue = 0; uint32_t pFLatency; /*Configure the TIM6 IRQ priority */ HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0); /* Enable the TIM6 global Interrupt */ HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn); /* Enable TIM6 clock */ __HAL_RCC_TIM6_CLK_ENABLE(); /* Get clock configuration */ HAL_RCC_GetClockConfig(&clkconfig, &pFLatency); /* Compute TIM6 clock */ uwTimclock = 2*HAL_RCC_GetPCLK1Freq(); /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */ uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U); /* Initialize TIM6 */ htim6.Instance = TIM6; /* Initialize TIMx peripheral as follow: + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock. + ClockDivision = 0 + Counter direction = Up */ htim6.Init.Period = (1000000U / 1000U) - 1U; htim6.Init.Prescaler = uwPrescalerValue; htim6.Init.ClockDivision = 0; htim6.Init.CounterMode = TIM_COUNTERMODE_UP; if(HAL_TIM_Base_Init(&htim6) == HAL_OK) { /* Start the TIM time Base generation in interrupt mode */ return HAL_TIM_Base_Start_IT(&htim6); } /* Return function status */ return HAL_ERROR; } /** * @brief Suspend Tick increment. * @note Disable the tick increment by disabling TIM6 update interrupt. * @param None * @retval None */ void HAL_SuspendTick(void) { /* Disable TIM6 update Interrupt */ __HAL_TIM_DISABLE_IT(&htim6, TIM_IT_UPDATE); } /** * @brief Resume Tick increment. * @note Enable the tick increment by Enabling TIM6 update interrupt. * @param None * @retval None */ void HAL_ResumeTick(void) { /* Enable TIM6 Update interrupt */ __HAL_TIM_ENABLE_IT(&htim6, TIM_IT_UPDATE); } /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/stm32f4xx_it.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f4xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32f4xx_it.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN TD */ /* USER CODE END TD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /* External variables --------------------------------------------------------*/ extern PCD_HandleTypeDef hpcd_USB_OTG_FS; extern DMA_HandleTypeDef hdma_adc1; extern ADC_HandleTypeDef hadc1; extern CAN_HandleTypeDef hcan1; extern CAN_HandleTypeDef hcan2; extern SPI_HandleTypeDef hspi3; extern TIM_HandleTypeDef htim2; extern TIM_HandleTypeDef htim3; extern TIM_HandleTypeDef htim7; extern TIM_HandleTypeDef htim10; extern TIM_HandleTypeDef htim11; extern TIM_HandleTypeDef htim13; extern TIM_HandleTypeDef htim14; extern DMA_HandleTypeDef hdma_uart4_rx; extern DMA_HandleTypeDef hdma_uart4_tx; extern DMA_HandleTypeDef hdma_uart5_rx; extern DMA_HandleTypeDef hdma_uart5_tx; extern UART_HandleTypeDef huart4; extern UART_HandleTypeDef huart5; extern TIM_HandleTypeDef htim6; /* USER CODE BEGIN EV */ /* USER CODE END EV */ /******************************************************************************/ /* Cortex-M4 Processor Interruption and Exception Handlers */ /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) { } /* USER CODE END NonMaskableInt_IRQn 1 */ } /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_HardFault_IRQn 0 */ /* USER CODE END W1_HardFault_IRQn 0 */ } } /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */ /* USER CODE END W1_MemoryManagement_IRQn 0 */ } } /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_BusFault_IRQn 0 */ /* USER CODE END W1_BusFault_IRQn 0 */ } } /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_UsageFault_IRQn 0 */ /* USER CODE END W1_UsageFault_IRQn 0 */ } } /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { /* USER CODE BEGIN DebugMonitor_IRQn 0 */ /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } /******************************************************************************/ /* STM32F4xx Peripheral Interrupt Handlers */ /* Add here the Interrupt Handlers for the used peripherals. */ /* For the available peripheral interrupt handler names, */ /* please refer to the startup file (startup_stm32f4xx.s). */ /******************************************************************************/ /** * @brief This function handles DMA1 stream0 global interrupt. */ void DMA1_Stream0_IRQHandler(void) { /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ /* USER CODE END DMA1_Stream0_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart5_rx); /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ /* USER CODE END DMA1_Stream0_IRQn 1 */ } /** * @brief This function handles DMA1 stream2 global interrupt. */ void DMA1_Stream2_IRQHandler(void) { /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */ /* USER CODE END DMA1_Stream2_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart4_rx); /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */ /* USER CODE END DMA1_Stream2_IRQn 1 */ } /** * @brief This function handles DMA1 stream4 global interrupt. */ void DMA1_Stream4_IRQHandler(void) { /* USER CODE BEGIN DMA1_Stream4_IRQn 0 */ /* USER CODE END DMA1_Stream4_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart4_tx); /* USER CODE BEGIN DMA1_Stream4_IRQn 1 */ /* USER CODE END DMA1_Stream4_IRQn 1 */ } /** * @brief This function handles ADC1, ADC2 and ADC3 global interrupts. */ void ADC_IRQHandler(void) { /* USER CODE BEGIN ADC_IRQn 0 */ /* USER CODE END ADC_IRQn 0 */ HAL_ADC_IRQHandler(&hadc1); /* USER CODE BEGIN ADC_IRQn 1 */ /* USER CODE END ADC_IRQn 1 */ } /** * @brief This function handles CAN1 TX interrupts. */ void CAN1_TX_IRQHandler(void) { /* USER CODE BEGIN CAN1_TX_IRQn 0 */ /* USER CODE END CAN1_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); /* USER CODE BEGIN CAN1_TX_IRQn 1 */ /* USER CODE END CAN1_TX_IRQn 1 */ } /** * @brief This function handles CAN1 RX0 interrupts. */ void CAN1_RX0_IRQHandler(void) { /* USER CODE BEGIN CAN1_RX0_IRQn 0 */ if (( READ_REG(hcan1.Instance->IER) & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) { /* Check if message is still pending */ if ((hcan1.Instance->RF0R & CAN_RF0R_FMP0) != 0U) { /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(&hcan1); } } return; /* USER CODE END CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); /* USER CODE BEGIN CAN1_RX0_IRQn 1 */ /* USER CODE END CAN1_RX0_IRQn 1 */ } /** * @brief This function handles CAN1 RX1 interrupt. */ void CAN1_RX1_IRQHandler(void) { /* USER CODE BEGIN CAN1_RX1_IRQn 0 */ /* USER CODE END CAN1_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); /* USER CODE BEGIN CAN1_RX1_IRQn 1 */ /* USER CODE END CAN1_RX1_IRQn 1 */ } /** * @brief This function handles CAN1 SCE interrupt. */ void CAN1_SCE_IRQHandler(void) { /* USER CODE BEGIN CAN1_SCE_IRQn 0 */ /* USER CODE END CAN1_SCE_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); /* USER CODE BEGIN CAN1_SCE_IRQn 1 */ /* USER CODE END CAN1_SCE_IRQn 1 */ } /** * @brief This function handles TIM1 update interrupt and TIM10 global interrupt. */ void TIM1_UP_TIM10_IRQHandler(void) { /* USER CODE BEGIN TIM1_UP_TIM10_IRQn 0 */ /* USER CODE END TIM1_UP_TIM10_IRQn 0 */ HAL_TIM_IRQHandler(&htim10); /* USER CODE BEGIN TIM1_UP_TIM10_IRQn 1 */ /* USER CODE END TIM1_UP_TIM10_IRQn 1 */ } /** * @brief This function handles TIM1 trigger and commutation interrupts and TIM11 global interrupt. */ void TIM1_TRG_COM_TIM11_IRQHandler(void) { /* USER CODE BEGIN TIM1_TRG_COM_TIM11_IRQn 0 */ /* USER CODE END TIM1_TRG_COM_TIM11_IRQn 0 */ HAL_TIM_IRQHandler(&htim11); /* USER CODE BEGIN TIM1_TRG_COM_TIM11_IRQn 1 */ /* USER CODE END TIM1_TRG_COM_TIM11_IRQn 1 */ } /** * @brief This function handles TIM2 global interrupt. */ void TIM2_IRQHandler(void) { /* USER CODE BEGIN TIM2_IRQn 0 */ /* USER CODE END TIM2_IRQn 0 */ HAL_TIM_IRQHandler(&htim2); /* USER CODE BEGIN TIM2_IRQn 1 */ /* USER CODE END TIM2_IRQn 1 */ } /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { /* USER CODE BEGIN TIM3_IRQn 0 */ /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); /* USER CODE BEGIN TIM3_IRQn 1 */ /* USER CODE END TIM3_IRQn 1 */ } /** * @brief This function handles TIM8 update interrupt and TIM13 global interrupt. */ void TIM8_UP_TIM13_IRQHandler(void) { /* USER CODE BEGIN TIM8_UP_TIM13_IRQn 0 */ /* USER CODE END TIM8_UP_TIM13_IRQn 0 */ HAL_TIM_IRQHandler(&htim13); /* USER CODE BEGIN TIM8_UP_TIM13_IRQn 1 */ /* USER CODE END TIM8_UP_TIM13_IRQn 1 */ } /** * @brief This function handles TIM8 trigger and commutation interrupts and TIM14 global interrupt. */ void TIM8_TRG_COM_TIM14_IRQHandler(void) { /* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 0 */ /* USER CODE END TIM8_TRG_COM_TIM14_IRQn 0 */ HAL_TIM_IRQHandler(&htim14); /* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 1 */ /* USER CODE END TIM8_TRG_COM_TIM14_IRQn 1 */ } /** * @brief This function handles DMA1 stream7 global interrupt. */ void DMA1_Stream7_IRQHandler(void) { /* USER CODE BEGIN DMA1_Stream7_IRQn 0 */ /* USER CODE END DMA1_Stream7_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart5_tx); /* USER CODE BEGIN DMA1_Stream7_IRQn 1 */ /* USER CODE END DMA1_Stream7_IRQn 1 */ } /** * @brief This function handles SPI3 global interrupt. */ void SPI3_IRQHandler(void) { /* USER CODE BEGIN SPI3_IRQn 0 */ /* USER CODE END SPI3_IRQn 0 */ HAL_SPI_IRQHandler(&hspi3); /* USER CODE BEGIN SPI3_IRQn 1 */ /* USER CODE END SPI3_IRQn 1 */ } /** * @brief This function handles UART4 global interrupt. */ void UART4_IRQHandler(void) { /* USER CODE BEGIN UART4_IRQn 0 */ /* USER CODE END UART4_IRQn 0 */ HAL_UART_IRQHandler(&huart4); /* USER CODE BEGIN UART4_IRQn 1 */ /* USER CODE END UART4_IRQn 1 */ } /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { /* USER CODE BEGIN UART5_IRQn 0 */ /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); /* USER CODE BEGIN UART5_IRQn 1 */ /* USER CODE END UART5_IRQn 1 */ } /** * @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts. */ void TIM6_DAC_IRQHandler(void) { /* USER CODE BEGIN TIM6_DAC_IRQn 0 */ /* USER CODE END TIM6_DAC_IRQn 0 */ HAL_TIM_IRQHandler(&htim6); /* USER CODE BEGIN TIM6_DAC_IRQn 1 */ /* USER CODE END TIM6_DAC_IRQn 1 */ } /** * @brief This function handles TIM7 global interrupt. */ void TIM7_IRQHandler(void) { /* USER CODE BEGIN TIM7_IRQn 0 */ /* USER CODE END TIM7_IRQn 0 */ HAL_TIM_IRQHandler(&htim7); /* USER CODE BEGIN TIM7_IRQn 1 */ /* USER CODE END TIM7_IRQn 1 */ } /** * @brief This function handles DMA2 stream0 global interrupt. */ void DMA2_Stream0_IRQHandler(void) { /* USER CODE BEGIN DMA2_Stream0_IRQn 0 */ /* USER CODE END DMA2_Stream0_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_adc1); /* USER CODE BEGIN DMA2_Stream0_IRQn 1 */ /* USER CODE END DMA2_Stream0_IRQn 1 */ } /** * @brief This function handles CAN2 TX interrupts. */ void CAN2_TX_IRQHandler(void) { /* USER CODE BEGIN CAN2_TX_IRQn 0 */ /* USER CODE END CAN2_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); /* USER CODE BEGIN CAN2_TX_IRQn 1 */ /* USER CODE END CAN2_TX_IRQn 1 */ } /** * @brief This function handles CAN2 RX0 interrupts. */ void CAN2_RX0_IRQHandler(void) { /* USER CODE BEGIN CAN2_RX0_IRQn 0 */ /* USER CODE END CAN2_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); /* USER CODE BEGIN CAN2_RX0_IRQn 1 */ /* USER CODE END CAN2_RX0_IRQn 1 */ } /** * @brief This function handles CAN2 RX1 interrupt. */ void CAN2_RX1_IRQHandler(void) { /* USER CODE BEGIN CAN2_RX1_IRQn 0 */ /* USER CODE END CAN2_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); /* USER CODE BEGIN CAN2_RX1_IRQn 1 */ /* USER CODE END CAN2_RX1_IRQn 1 */ } /** * @brief This function handles CAN2 SCE interrupt. */ void CAN2_SCE_IRQHandler(void) { /* USER CODE BEGIN CAN2_SCE_IRQn 0 */ /* USER CODE END CAN2_SCE_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); /* USER CODE BEGIN CAN2_SCE_IRQn 1 */ /* USER CODE END CAN2_SCE_IRQn 1 */ } /** * @brief This function handles USB On The Go FS global interrupt. */ void OTG_FS_IRQHandler(void) { /* USER CODE BEGIN OTG_FS_IRQn 0 */ /* USER CODE END OTG_FS_IRQn 0 */ HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS); /* USER CODE BEGIN OTG_FS_IRQn 1 */ /* USER CODE END OTG_FS_IRQn 1 */ } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/syscalls.c ================================================ /** ***************************************************************************** ** ** File : syscalls.c ** ** Author : Auto-generated by System workbench for STM32 ** ** Abstract : System Workbench Minimal System calls file ** ** For more information about which c-functions ** need which of these lowlevel functions ** please consult the Newlib libc-manual ** ** Target : STMicroelectronics STM32 ** ** Distribution: The file is distributed as is, without any warranty ** of any kind. ** ***************************************************************************** ** @attention ** **

© COPYRIGHT(c) 2019 STMicroelectronics

** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following conditions are met: ** 1. Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** 2. Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** 3. Neither the name of STMicroelectronics nor the names of its contributors ** may be used to endorse or promote products derived from this software ** without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ***************************************************************************** */ /* Includes */ #include #include #include #include #include #include #include #include /* Variables */ //#undef errno extern int errno; extern int __io_putchar(int ch) __attribute__((weak)); extern int __io_getchar(void) __attribute__((weak)); register char * stack_ptr asm("sp"); char *__env[1] = { 0 }; char **environ = __env; /* Functions */ void initialise_monitor_handles() { } int _getpid(void) { return 1; } int _kill(int pid, int sig) { errno = EINVAL; return -1; } void _exit (int status) { _kill(status, -1); while (1) {} /* Make sure we hang here */ } __attribute__((weak)) int _read(int file, char *ptr, int len) { int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) { *ptr++ = __io_getchar(); } return len; } __attribute__((weak)) int _write(int file, char *ptr, int len) { int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) { __io_putchar(*ptr++); } return len; } caddr_t _sbrk(int incr) { extern char end asm("end"); static char *heap_end; char *prev_heap_end; if (heap_end == 0) heap_end = &end; prev_heap_end = heap_end; if (heap_end + incr > stack_ptr) { // write(1, "Heap and stack collision\n", 25); // abort(); errno = ENOMEM; return (caddr_t) -1; } heap_end += incr; return (caddr_t) prev_heap_end; } int _close(int file) { return -1; } int _fstat(int file, struct stat *st) { st->st_mode = S_IFCHR; return 0; } int _isatty(int file) { return 1; } int _lseek(int file, int ptr, int dir) { return 0; } int _open(char *path, int flags, ...) { /* Pretend like we always fail */ return -1; } int _wait(int *status) { errno = ECHILD; return -1; } int _unlink(char *name) { errno = ENOENT; return -1; } int _times(struct tms *buf) { return -1; } int _stat(char *file, struct stat *st) { st->st_mode = S_IFCHR; return 0; } int _link(char *old, char *new) { errno = EMLINK; return -1; } int _fork(void) { errno = EAGAIN; return -1; } int _execve(char *name, char **argv, char **env) { errno = ENOMEM; return -1; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/system_stm32f4xx.c ================================================ /** ****************************************************************************** * @file system_stm32f4xx.c * @author MCD Application Team * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. * * This file provides two functions and one global variable to be called from * user application: * - SystemInit(): This function is called at startup just after reset and * before branch to main program. This call is made inside * the "startup_stm32f4xx.s" file. * * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used * by the user application to setup the SysTick * timer or configure other parameters. * * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed * during program execution. * * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f4xx_system * @{ */ /** @addtogroup STM32F4xx_System_Private_Includes * @{ */ #include "stm32f4xx.h" #if !defined (HSE_VALUE) #define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */ #endif /* HSE_VALUE */ #if !defined (HSI_VALUE) #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ #endif /* HSI_VALUE */ /** * @} */ /** @addtogroup STM32F4xx_System_Private_TypesDefinitions * @{ */ /** * @} */ /** @addtogroup STM32F4xx_System_Private_Defines * @{ */ /************************* Miscellaneous Configuration ************************/ /*!< Uncomment the following line if you need to use external SRAM or SDRAM as data memory */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)\ || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) /* #define DATA_IN_ExtSRAM */ #endif /* STM32F40xxx || STM32F41xxx || STM32F42xxx || STM32F43xxx || STM32F469xx || STM32F479xx ||\ STM32F412Zx || STM32F412Vx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /* #define DATA_IN_ExtSDRAM */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx ||\ STM32F479xx */ /* Note: Following vector table addresses must be defined in line with linker configuration. */ /*!< Uncomment the following line if you need to relocate the vector table anywhere in Flash or Sram, else the vector table is kept at the automatic remap of boot address selected */ /* #define USER_VECT_TAB_ADDRESS */ #if defined(USER_VECT_TAB_ADDRESS) /*!< Uncomment the following line if you need to relocate your vector Table in Sram else user remap will be done in Flash. */ /* #define VECT_TAB_SRAM */ #if defined(VECT_TAB_SRAM) #define VECT_TAB_BASE_ADDRESS SRAM_BASE /*!< Vector Table base address field. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #else #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #endif /* VECT_TAB_SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ /******************************************************************************/ /** * @} */ /** @addtogroup STM32F4xx_System_Private_Macros * @{ */ /** * @} */ /** @addtogroup STM32F4xx_System_Private_Variables * @{ */ /* This variable is updated in three ways: 1) by calling CMSIS function SystemCoreClockUpdate() 2) by calling HAL API function HAL_RCC_GetHCLKFreq() 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency Note: If you use this function to configure the system clock; then there is no need to call the 2 first functions listed above, since SystemCoreClock variable is updated automatically. */ uint32_t SystemCoreClock = 16000000; const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; /** * @} */ /** @addtogroup STM32F4xx_System_Private_FunctionPrototypes * @{ */ #if defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM) static void SystemInit_ExtMemCtl(void); #endif /* DATA_IN_ExtSRAM || DATA_IN_ExtSDRAM */ /** * @} */ /** @addtogroup STM32F4xx_System_Private_Functions * @{ */ /** * @brief Setup the microcontroller system * Initialize the FPU setting, vector table location and External memory * configuration. * @param None * @retval None */ void SystemInit(void) { /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ #endif #if defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM) SystemInit_ExtMemCtl(); #endif /* DATA_IN_ExtSRAM || DATA_IN_ExtSDRAM */ /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ } /** * @brief Update SystemCoreClock variable according to Clock Register Values. * The SystemCoreClock variable contains the core clock (HCLK), it can * be used by the user application to setup the SysTick timer or configure * other parameters. * * @note Each time the core clock (HCLK) changes, this function must be called * to update SystemCoreClock variable value. Otherwise, any configuration * based on this variable will be incorrect. * * @note - The system frequency computed by this function is not the real * frequency in the chip. It is calculated based on the predefined * constant and the selected clock source: * * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) * * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) * * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) * or HSI_VALUE(*) multiplied/divided by the PLL factors. * * (*) HSI_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value * 16 MHz) but the real value may vary depending on the variations * in voltage and temperature. * * (**) HSE_VALUE is a constant defined in stm32f4xx_hal_conf.h file (its value * depends on the application requirements), user has to ensure that HSE_VALUE * is same as the real frequency of the crystal used. Otherwise, this function * may have wrong result. * * - The result of this function could be not correct when using fractional * value for HSE crystal. * * @param None * @retval None */ void SystemCoreClockUpdate(void) { uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; /* Get SYSCLK source -------------------------------------------------------*/ tmp = RCC->CFGR & RCC_CFGR_SWS; switch (tmp) { case 0x00: /* HSI used as system clock source */ SystemCoreClock = HSI_VALUE; break; case 0x04: /* HSE used as system clock source */ SystemCoreClock = HSE_VALUE; break; case 0x08: /* PLL used as system clock source */ /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N SYSCLK = PLL_VCO / PLL_P */ pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22; pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; if (pllsource != 0) { /* HSE used as PLL clock source */ pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); } else { /* HSI used as PLL clock source */ pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); } pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2; SystemCoreClock = pllvco/pllp; break; default: SystemCoreClock = HSI_VALUE; break; } /* Compute HCLK frequency --------------------------------------------------*/ /* Get HCLK prescaler */ tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)]; /* HCLK frequency */ SystemCoreClock >>= tmp; } #if defined (DATA_IN_ExtSRAM) && defined (DATA_IN_ExtSDRAM) #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Setup the external memory controller. * Called in startup_stm32f4xx.s before jump to main. * This function configures the external memories (SRAM/SDRAM) * This SRAM/SDRAM will be used as program data memory (including heap and stack). * @param None * @retval None */ void SystemInit_ExtMemCtl(void) { __IO uint32_t tmp = 0x00; register uint32_t tmpreg = 0, timeout = 0xFFFF; register __IO uint32_t index; /* Enable GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH and GPIOI interface clock */ RCC->AHB1ENR |= 0x000001F8; /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN); /* Connect PDx pins to FMC Alternate function */ GPIOD->AFR[0] = 0x00CCC0CC; GPIOD->AFR[1] = 0xCCCCCCCC; /* Configure PDx pins in Alternate function mode */ GPIOD->MODER = 0xAAAA0A8A; /* Configure PDx pins speed to 100 MHz */ GPIOD->OSPEEDR = 0xFFFF0FCF; /* Configure PDx pins Output type to push-pull */ GPIOD->OTYPER = 0x00000000; /* No pull-up, pull-down for PDx pins */ GPIOD->PUPDR = 0x00000000; /* Connect PEx pins to FMC Alternate function */ GPIOE->AFR[0] = 0xC00CC0CC; GPIOE->AFR[1] = 0xCCCCCCCC; /* Configure PEx pins in Alternate function mode */ GPIOE->MODER = 0xAAAA828A; /* Configure PEx pins speed to 100 MHz */ GPIOE->OSPEEDR = 0xFFFFC3CF; /* Configure PEx pins Output type to push-pull */ GPIOE->OTYPER = 0x00000000; /* No pull-up, pull-down for PEx pins */ GPIOE->PUPDR = 0x00000000; /* Connect PFx pins to FMC Alternate function */ GPIOF->AFR[0] = 0xCCCCCCCC; GPIOF->AFR[1] = 0xCCCCCCCC; /* Configure PFx pins in Alternate function mode */ GPIOF->MODER = 0xAA800AAA; /* Configure PFx pins speed to 50 MHz */ GPIOF->OSPEEDR = 0xAA800AAA; /* Configure PFx pins Output type to push-pull */ GPIOF->OTYPER = 0x00000000; /* No pull-up, pull-down for PFx pins */ GPIOF->PUPDR = 0x00000000; /* Connect PGx pins to FMC Alternate function */ GPIOG->AFR[0] = 0xCCCCCCCC; GPIOG->AFR[1] = 0xCCCCCCCC; /* Configure PGx pins in Alternate function mode */ GPIOG->MODER = 0xAAAAAAAA; /* Configure PGx pins speed to 50 MHz */ GPIOG->OSPEEDR = 0xAAAAAAAA; /* Configure PGx pins Output type to push-pull */ GPIOG->OTYPER = 0x00000000; /* No pull-up, pull-down for PGx pins */ GPIOG->PUPDR = 0x00000000; /* Connect PHx pins to FMC Alternate function */ GPIOH->AFR[0] = 0x00C0CC00; GPIOH->AFR[1] = 0xCCCCCCCC; /* Configure PHx pins in Alternate function mode */ GPIOH->MODER = 0xAAAA08A0; /* Configure PHx pins speed to 50 MHz */ GPIOH->OSPEEDR = 0xAAAA08A0; /* Configure PHx pins Output type to push-pull */ GPIOH->OTYPER = 0x00000000; /* No pull-up, pull-down for PHx pins */ GPIOH->PUPDR = 0x00000000; /* Connect PIx pins to FMC Alternate function */ GPIOI->AFR[0] = 0xCCCCCCCC; GPIOI->AFR[1] = 0x00000CC0; /* Configure PIx pins in Alternate function mode */ GPIOI->MODER = 0x0028AAAA; /* Configure PIx pins speed to 50 MHz */ GPIOI->OSPEEDR = 0x0028AAAA; /* Configure PIx pins Output type to push-pull */ GPIOI->OTYPER = 0x00000000; /* No pull-up, pull-down for PIx pins */ GPIOI->PUPDR = 0x00000000; /*-- FMC Configuration -------------------------------------------------------*/ /* Enable the FMC interface clock */ RCC->AHB3ENR |= 0x00000001; /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN); FMC_Bank5_6->SDCR[0] = 0x000019E4; FMC_Bank5_6->SDTR[0] = 0x01115351; /* SDRAM initialization sequence */ /* Clock enable command */ FMC_Bank5_6->SDCMR = 0x00000011; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Delay */ for (index = 0; index<1000; index++); /* PALL command */ FMC_Bank5_6->SDCMR = 0x00000012; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Auto refresh command */ FMC_Bank5_6->SDCMR = 0x00000073; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* MRD register program */ FMC_Bank5_6->SDCMR = 0x00046014; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Set refresh count */ tmpreg = FMC_Bank5_6->SDRTR; FMC_Bank5_6->SDRTR = (tmpreg | (0x0000027C<<1)); /* Disable write protection */ tmpreg = FMC_Bank5_6->SDCR[0]; FMC_Bank5_6->SDCR[0] = (tmpreg & 0xFFFFFDFF); #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) /* Configure and enable Bank1_SRAM2 */ FMC_Bank1->BTCR[2] = 0x00001011; FMC_Bank1->BTCR[3] = 0x00000201; FMC_Bank1E->BWTR[2] = 0x0fffffff; #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /* Configure and enable Bank1_SRAM2 */ FMC_Bank1->BTCR[2] = 0x00001091; FMC_Bank1->BTCR[3] = 0x00110212; FMC_Bank1E->BWTR[2] = 0x0fffffff; #endif /* STM32F469xx || STM32F479xx */ (void)(tmp); } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #elif defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM) /** * @brief Setup the external memory controller. * Called in startup_stm32f4xx.s before jump to main. * This function configures the external memories (SRAM/SDRAM) * This SRAM/SDRAM will be used as program data memory (including heap and stack). * @param None * @retval None */ void SystemInit_ExtMemCtl(void) { __IO uint32_t tmp = 0x00; #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #if defined (DATA_IN_ExtSDRAM) register uint32_t tmpreg = 0, timeout = 0xFFFF; register __IO uint32_t index; #if defined(STM32F446xx) /* Enable GPIOA, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG interface clock */ RCC->AHB1ENR |= 0x0000007D; #else /* Enable GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH and GPIOI interface clock */ RCC->AHB1ENR |= 0x000001F8; #endif /* STM32F446xx */ /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN); #if defined(STM32F446xx) /* Connect PAx pins to FMC Alternate function */ GPIOA->AFR[0] |= 0xC0000000; GPIOA->AFR[1] |= 0x00000000; /* Configure PDx pins in Alternate function mode */ GPIOA->MODER |= 0x00008000; /* Configure PDx pins speed to 50 MHz */ GPIOA->OSPEEDR |= 0x00008000; /* Configure PDx pins Output type to push-pull */ GPIOA->OTYPER |= 0x00000000; /* No pull-up, pull-down for PDx pins */ GPIOA->PUPDR |= 0x00000000; /* Connect PCx pins to FMC Alternate function */ GPIOC->AFR[0] |= 0x00CC0000; GPIOC->AFR[1] |= 0x00000000; /* Configure PDx pins in Alternate function mode */ GPIOC->MODER |= 0x00000A00; /* Configure PDx pins speed to 50 MHz */ GPIOC->OSPEEDR |= 0x00000A00; /* Configure PDx pins Output type to push-pull */ GPIOC->OTYPER |= 0x00000000; /* No pull-up, pull-down for PDx pins */ GPIOC->PUPDR |= 0x00000000; #endif /* STM32F446xx */ /* Connect PDx pins to FMC Alternate function */ GPIOD->AFR[0] = 0x000000CC; GPIOD->AFR[1] = 0xCC000CCC; /* Configure PDx pins in Alternate function mode */ GPIOD->MODER = 0xA02A000A; /* Configure PDx pins speed to 50 MHz */ GPIOD->OSPEEDR = 0xA02A000A; /* Configure PDx pins Output type to push-pull */ GPIOD->OTYPER = 0x00000000; /* No pull-up, pull-down for PDx pins */ GPIOD->PUPDR = 0x00000000; /* Connect PEx pins to FMC Alternate function */ GPIOE->AFR[0] = 0xC00000CC; GPIOE->AFR[1] = 0xCCCCCCCC; /* Configure PEx pins in Alternate function mode */ GPIOE->MODER = 0xAAAA800A; /* Configure PEx pins speed to 50 MHz */ GPIOE->OSPEEDR = 0xAAAA800A; /* Configure PEx pins Output type to push-pull */ GPIOE->OTYPER = 0x00000000; /* No pull-up, pull-down for PEx pins */ GPIOE->PUPDR = 0x00000000; /* Connect PFx pins to FMC Alternate function */ GPIOF->AFR[0] = 0xCCCCCCCC; GPIOF->AFR[1] = 0xCCCCCCCC; /* Configure PFx pins in Alternate function mode */ GPIOF->MODER = 0xAA800AAA; /* Configure PFx pins speed to 50 MHz */ GPIOF->OSPEEDR = 0xAA800AAA; /* Configure PFx pins Output type to push-pull */ GPIOF->OTYPER = 0x00000000; /* No pull-up, pull-down for PFx pins */ GPIOF->PUPDR = 0x00000000; /* Connect PGx pins to FMC Alternate function */ GPIOG->AFR[0] = 0xCCCCCCCC; GPIOG->AFR[1] = 0xCCCCCCCC; /* Configure PGx pins in Alternate function mode */ GPIOG->MODER = 0xAAAAAAAA; /* Configure PGx pins speed to 50 MHz */ GPIOG->OSPEEDR = 0xAAAAAAAA; /* Configure PGx pins Output type to push-pull */ GPIOG->OTYPER = 0x00000000; /* No pull-up, pull-down for PGx pins */ GPIOG->PUPDR = 0x00000000; #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F469xx) || defined(STM32F479xx) /* Connect PHx pins to FMC Alternate function */ GPIOH->AFR[0] = 0x00C0CC00; GPIOH->AFR[1] = 0xCCCCCCCC; /* Configure PHx pins in Alternate function mode */ GPIOH->MODER = 0xAAAA08A0; /* Configure PHx pins speed to 50 MHz */ GPIOH->OSPEEDR = 0xAAAA08A0; /* Configure PHx pins Output type to push-pull */ GPIOH->OTYPER = 0x00000000; /* No pull-up, pull-down for PHx pins */ GPIOH->PUPDR = 0x00000000; /* Connect PIx pins to FMC Alternate function */ GPIOI->AFR[0] = 0xCCCCCCCC; GPIOI->AFR[1] = 0x00000CC0; /* Configure PIx pins in Alternate function mode */ GPIOI->MODER = 0x0028AAAA; /* Configure PIx pins speed to 50 MHz */ GPIOI->OSPEEDR = 0x0028AAAA; /* Configure PIx pins Output type to push-pull */ GPIOI->OTYPER = 0x00000000; /* No pull-up, pull-down for PIx pins */ GPIOI->PUPDR = 0x00000000; #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /*-- FMC Configuration -------------------------------------------------------*/ /* Enable the FMC interface clock */ RCC->AHB3ENR |= 0x00000001; /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN); /* Configure and enable SDRAM bank1 */ #if defined(STM32F446xx) FMC_Bank5_6->SDCR[0] = 0x00001954; #else FMC_Bank5_6->SDCR[0] = 0x000019E4; #endif /* STM32F446xx */ FMC_Bank5_6->SDTR[0] = 0x01115351; /* SDRAM initialization sequence */ /* Clock enable command */ FMC_Bank5_6->SDCMR = 0x00000011; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Delay */ for (index = 0; index<1000; index++); /* PALL command */ FMC_Bank5_6->SDCMR = 0x00000012; tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Auto refresh command */ #if defined(STM32F446xx) FMC_Bank5_6->SDCMR = 0x000000F3; #else FMC_Bank5_6->SDCMR = 0x00000073; #endif /* STM32F446xx */ tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* MRD register program */ #if defined(STM32F446xx) FMC_Bank5_6->SDCMR = 0x00044014; #else FMC_Bank5_6->SDCMR = 0x00046014; #endif /* STM32F446xx */ tmpreg = FMC_Bank5_6->SDSR & 0x00000020; timeout = 0xFFFF; while((tmpreg != 0) && (timeout-- > 0)) { tmpreg = FMC_Bank5_6->SDSR & 0x00000020; } /* Set refresh count */ tmpreg = FMC_Bank5_6->SDRTR; #if defined(STM32F446xx) FMC_Bank5_6->SDRTR = (tmpreg | (0x0000050C<<1)); #else FMC_Bank5_6->SDRTR = (tmpreg | (0x0000027C<<1)); #endif /* STM32F446xx */ /* Disable write protection */ tmpreg = FMC_Bank5_6->SDCR[0]; FMC_Bank5_6->SDCR[0] = (tmpreg & 0xFFFFFDFF); #endif /* DATA_IN_ExtSDRAM */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)\ || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) #if defined(DATA_IN_ExtSRAM) /*-- GPIOs Configuration -----------------------------------------------------*/ /* Enable GPIOD, GPIOE, GPIOF and GPIOG interface clock */ RCC->AHB1ENR |= 0x00000078; /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN); /* Connect PDx pins to FMC Alternate function */ GPIOD->AFR[0] = 0x00CCC0CC; GPIOD->AFR[1] = 0xCCCCCCCC; /* Configure PDx pins in Alternate function mode */ GPIOD->MODER = 0xAAAA0A8A; /* Configure PDx pins speed to 100 MHz */ GPIOD->OSPEEDR = 0xFFFF0FCF; /* Configure PDx pins Output type to push-pull */ GPIOD->OTYPER = 0x00000000; /* No pull-up, pull-down for PDx pins */ GPIOD->PUPDR = 0x00000000; /* Connect PEx pins to FMC Alternate function */ GPIOE->AFR[0] = 0xC00CC0CC; GPIOE->AFR[1] = 0xCCCCCCCC; /* Configure PEx pins in Alternate function mode */ GPIOE->MODER = 0xAAAA828A; /* Configure PEx pins speed to 100 MHz */ GPIOE->OSPEEDR = 0xFFFFC3CF; /* Configure PEx pins Output type to push-pull */ GPIOE->OTYPER = 0x00000000; /* No pull-up, pull-down for PEx pins */ GPIOE->PUPDR = 0x00000000; /* Connect PFx pins to FMC Alternate function */ GPIOF->AFR[0] = 0x00CCCCCC; GPIOF->AFR[1] = 0xCCCC0000; /* Configure PFx pins in Alternate function mode */ GPIOF->MODER = 0xAA000AAA; /* Configure PFx pins speed to 100 MHz */ GPIOF->OSPEEDR = 0xFF000FFF; /* Configure PFx pins Output type to push-pull */ GPIOF->OTYPER = 0x00000000; /* No pull-up, pull-down for PFx pins */ GPIOF->PUPDR = 0x00000000; /* Connect PGx pins to FMC Alternate function */ GPIOG->AFR[0] = 0x00CCCCCC; GPIOG->AFR[1] = 0x000000C0; /* Configure PGx pins in Alternate function mode */ GPIOG->MODER = 0x00085AAA; /* Configure PGx pins speed to 100 MHz */ GPIOG->OSPEEDR = 0x000CAFFF; /* Configure PGx pins Output type to push-pull */ GPIOG->OTYPER = 0x00000000; /* No pull-up, pull-down for PGx pins */ GPIOG->PUPDR = 0x00000000; /*-- FMC/FSMC Configuration --------------------------------------------------*/ /* Enable the FMC/FSMC interface clock */ RCC->AHB3ENR |= 0x00000001; #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN); /* Configure and enable Bank1_SRAM2 */ FMC_Bank1->BTCR[2] = 0x00001011; FMC_Bank1->BTCR[3] = 0x00000201; FMC_Bank1E->BWTR[2] = 0x0fffffff; #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN); /* Configure and enable Bank1_SRAM2 */ FMC_Bank1->BTCR[2] = 0x00001091; FMC_Bank1->BTCR[3] = 0x00110212; FMC_Bank1E->BWTR[2] = 0x0fffffff; #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx)\ || defined(STM32F412Zx) || defined(STM32F412Vx) /* Delay after an RCC peripheral clock enabling */ tmp = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FSMCEN); /* Configure and enable Bank1_SRAM2 */ FSMC_Bank1->BTCR[2] = 0x00001011; FSMC_Bank1->BTCR[3] = 0x00000201; FSMC_Bank1E->BWTR[2] = 0x0FFFFFFF; #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F412Zx || STM32F412Vx */ #endif /* DATA_IN_ExtSRAM */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||\ STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx */ (void)(tmp); } #endif /* DATA_IN_ExtSRAM && DATA_IN_ExtSDRAM */ /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/tim.c ================================================ /** ****************************************************************************** * @file tim.c * @brief This file provides code for the configuration * of the TIM instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "tim.h" /* USER CODE BEGIN 0 */ volatile int64_t encCntLoop[2]; /* USER CODE END 0 */ TIM_HandleTypeDef htim2; TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim7; TIM_HandleTypeDef htim9; TIM_HandleTypeDef htim10; TIM_HandleTypeDef htim11; TIM_HandleTypeDef htim12; TIM_HandleTypeDef htim13; TIM_HandleTypeDef htim14; /* TIM2 init function */ void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_Encoder_InitTypeDef sConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = 0; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = 65535; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; sConfig.EncoderMode = TIM_ENCODERMODE_TI12; sConfig.IC1Polarity = TIM_ICPOLARITY_RISING; sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI; sConfig.IC1Prescaler = TIM_ICPSC_DIV1; sConfig.IC1Filter = 4; sConfig.IC2Polarity = TIM_ICPOLARITY_RISING; sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI; sConfig.IC2Prescaler = TIM_ICPSC_DIV1; sConfig.IC2Filter = 4; if (HAL_TIM_Encoder_Init(&htim2, &sConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM2_Init 2 */ TIM2->CNT = 0; TIM2->SR = TIM2->SR & 0xFE; // clear flag /* USER CODE END TIM2_Init 2 */ } /* TIM3 init function */ void MX_TIM3_Init(void) { /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_Encoder_InitTypeDef sConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; htim3.Init.Prescaler = 0; htim3.Init.CounterMode = TIM_COUNTERMODE_UP; htim3.Init.Period = 65535; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; sConfig.EncoderMode = TIM_ENCODERMODE_TI12; sConfig.IC1Polarity = TIM_ICPOLARITY_RISING; sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI; sConfig.IC1Prescaler = TIM_ICPSC_DIV1; sConfig.IC1Filter = 4; sConfig.IC2Polarity = TIM_ICPOLARITY_RISING; sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI; sConfig.IC2Prescaler = TIM_ICPSC_DIV1; sConfig.IC2Filter = 4; if (HAL_TIM_Encoder_Init(&htim3, &sConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM3_Init 2 */ TIM3->CNT = 0; TIM3->SR = TIM3->SR & 0xFE; // clear flag /* USER CODE END TIM3_Init 2 */ } /* TIM7 init function */ void MX_TIM7_Init(void) { /* USER CODE BEGIN TIM7_Init 0 */ /* USER CODE END TIM7_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM7_Init 1 */ /* USER CODE END TIM7_Init 1 */ htim7.Instance = TIM7; htim7.Init.Prescaler = 83; htim7.Init.CounterMode = TIM_COUNTERMODE_UP; htim7.Init.Period = 9999; htim7.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(&htim7) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim7, &sMasterConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM7_Init 2 */ /* USER CODE END TIM7_Init 2 */ } /* TIM9 init function */ void MX_TIM9_Init(void) { /* USER CODE BEGIN TIM9_Init 0 */ /* USER CODE END TIM9_Init 0 */ TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM9_Init 1 */ /* USER CODE END TIM9_Init 1 */ htim9.Instance = TIM9; htim9.Init.Prescaler = 7; htim9.Init.CounterMode = TIM_COUNTERMODE_UP; htim9.Init.Period = 999; htim9.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim9.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_PWM_Init(&htim9) != HAL_OK) { Error_Handler(); } sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 0; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim9, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_ConfigChannel(&htim9, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM9_Init 2 */ /* USER CODE END TIM9_Init 2 */ HAL_TIM_MspPostInit(&htim9); } /* TIM10 init function */ void MX_TIM10_Init(void) { /* USER CODE BEGIN TIM10_Init 0 */ /* USER CODE END TIM10_Init 0 */ /* USER CODE BEGIN TIM10_Init 1 */ /* USER CODE END TIM10_Init 1 */ htim10.Instance = TIM10; htim10.Init.Prescaler = 167; htim10.Init.CounterMode = TIM_COUNTERMODE_UP; htim10.Init.Period = 9999; htim10.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim10.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(&htim10) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM10_Init 2 */ /* USER CODE END TIM10_Init 2 */ } /* TIM11 init function */ void MX_TIM11_Init(void) { /* USER CODE BEGIN TIM11_Init 0 */ /* USER CODE END TIM11_Init 0 */ /* USER CODE BEGIN TIM11_Init 1 */ /* USER CODE END TIM11_Init 1 */ htim11.Instance = TIM11; htim11.Init.Prescaler = 167; htim11.Init.CounterMode = TIM_COUNTERMODE_UP; htim11.Init.Period = 9999; htim11.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim11.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim11) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM11_Init 2 */ /* USER CODE END TIM11_Init 2 */ } /* TIM12 init function */ void MX_TIM12_Init(void) { /* USER CODE BEGIN TIM12_Init 0 */ /* USER CODE END TIM12_Init 0 */ TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM12_Init 1 */ /* USER CODE END TIM12_Init 1 */ htim12.Instance = TIM12; htim12.Init.Prescaler = 3; htim12.Init.CounterMode = TIM_COUNTERMODE_UP; htim12.Init.Period = 999; htim12.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim12.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_PWM_Init(&htim12) != HAL_OK) { Error_Handler(); } sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 0; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim12, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_ConfigChannel(&htim12, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM12_Init 2 */ /* USER CODE END TIM12_Init 2 */ HAL_TIM_MspPostInit(&htim12); } /* TIM13 init function */ void MX_TIM13_Init(void) { /* USER CODE BEGIN TIM13_Init 0 */ /* USER CODE END TIM13_Init 0 */ /* USER CODE BEGIN TIM13_Init 1 */ /* USER CODE END TIM13_Init 1 */ htim13.Instance = TIM13; htim13.Init.Prescaler = 83; htim13.Init.CounterMode = TIM_COUNTERMODE_UP; htim13.Init.Period = 9999; htim13.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim13.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim13) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM13_Init 2 */ /* USER CODE END TIM13_Init 2 */ } /* TIM14 init function */ void MX_TIM14_Init(void) { /* USER CODE BEGIN TIM14_Init 0 */ /* USER CODE END TIM14_Init 0 */ /* USER CODE BEGIN TIM14_Init 1 */ /* USER CODE END TIM14_Init 1 */ htim14.Instance = TIM14; htim14.Init.Prescaler = 83; htim14.Init.CounterMode = TIM_COUNTERMODE_UP; htim14.Init.Period = 9999; htim14.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim14.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim14) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM14_Init 2 */ /* USER CODE END TIM14_Init 2 */ } void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* tim_encoderHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(tim_encoderHandle->Instance==TIM2) { /* USER CODE BEGIN TIM2_MspInit 0 */ /* USER CODE END TIM2_MspInit 0 */ /* TIM2 clock enable */ __HAL_RCC_TIM2_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**TIM2 GPIO Configuration PA15 ------> TIM2_CH1 PB3 ------> TIM2_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_3; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* TIM2 interrupt Init */ HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM2_IRQn); /* USER CODE BEGIN TIM2_MspInit 1 */ /* USER CODE END TIM2_MspInit 1 */ } else if(tim_encoderHandle->Instance==TIM3) { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); /**TIM3 GPIO Configuration PC6 ------> TIM3_CH1 PC7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF2_TIM3; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); /* TIM3 interrupt Init */ HAL_NVIC_SetPriority(TIM3_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM3_IRQn); /* USER CODE BEGIN TIM3_MspInit 1 */ /* USER CODE END TIM3_MspInit 1 */ } } void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { if(tim_baseHandle->Instance==TIM7) { /* USER CODE BEGIN TIM7_MspInit 0 */ /* USER CODE END TIM7_MspInit 0 */ /* TIM7 clock enable */ __HAL_RCC_TIM7_CLK_ENABLE(); /* TIM7 interrupt Init */ HAL_NVIC_SetPriority(TIM7_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM7_IRQn); /* USER CODE BEGIN TIM7_MspInit 1 */ /* USER CODE END TIM7_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM10) { /* USER CODE BEGIN TIM10_MspInit 0 */ /* USER CODE END TIM10_MspInit 0 */ /* TIM10 clock enable */ __HAL_RCC_TIM10_CLK_ENABLE(); /* TIM10 interrupt Init */ HAL_NVIC_SetPriority(TIM1_UP_TIM10_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM1_UP_TIM10_IRQn); /* USER CODE BEGIN TIM10_MspInit 1 */ /* USER CODE END TIM10_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM11) { /* USER CODE BEGIN TIM11_MspInit 0 */ /* USER CODE END TIM11_MspInit 0 */ /* TIM11 clock enable */ __HAL_RCC_TIM11_CLK_ENABLE(); /* TIM11 interrupt Init */ HAL_NVIC_SetPriority(TIM1_TRG_COM_TIM11_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM1_TRG_COM_TIM11_IRQn); /* USER CODE BEGIN TIM11_MspInit 1 */ /* USER CODE END TIM11_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM13) { /* USER CODE BEGIN TIM13_MspInit 0 */ /* USER CODE END TIM13_MspInit 0 */ /* TIM13 clock enable */ __HAL_RCC_TIM13_CLK_ENABLE(); /* TIM13 interrupt Init */ HAL_NVIC_SetPriority(TIM8_UP_TIM13_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM8_UP_TIM13_IRQn); /* USER CODE BEGIN TIM13_MspInit 1 */ /* USER CODE END TIM13_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM14) { /* USER CODE BEGIN TIM14_MspInit 0 */ /* USER CODE END TIM14_MspInit 0 */ /* TIM14 clock enable */ __HAL_RCC_TIM14_CLK_ENABLE(); /* TIM14 interrupt Init */ HAL_NVIC_SetPriority(TIM8_TRG_COM_TIM14_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM8_TRG_COM_TIM14_IRQn); /* USER CODE BEGIN TIM14_MspInit 1 */ /* USER CODE END TIM14_MspInit 1 */ } } void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* tim_pwmHandle) { if(tim_pwmHandle->Instance==TIM9) { /* USER CODE BEGIN TIM9_MspInit 0 */ /* USER CODE END TIM9_MspInit 0 */ /* TIM9 clock enable */ __HAL_RCC_TIM9_CLK_ENABLE(); /* USER CODE BEGIN TIM9_MspInit 1 */ /* USER CODE END TIM9_MspInit 1 */ } else if(tim_pwmHandle->Instance==TIM12) { /* USER CODE BEGIN TIM12_MspInit 0 */ /* USER CODE END TIM12_MspInit 0 */ /* TIM12 clock enable */ __HAL_RCC_TIM12_CLK_ENABLE(); /* USER CODE BEGIN TIM12_MspInit 1 */ /* USER CODE END TIM12_MspInit 1 */ } } void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(timHandle->Instance==TIM9) { /* USER CODE BEGIN TIM9_MspPostInit 0 */ /* USER CODE END TIM9_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); /**TIM9 GPIO Configuration PA2 ------> TIM9_CH1 PA3 ------> TIM9_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF3_TIM9; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* USER CODE BEGIN TIM9_MspPostInit 1 */ /* USER CODE END TIM9_MspPostInit 1 */ } else if(timHandle->Instance==TIM12) { /* USER CODE BEGIN TIM12_MspPostInit 0 */ /* USER CODE END TIM12_MspPostInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); /**TIM12 GPIO Configuration PB14 ------> TIM12_CH1 PB15 ------> TIM12_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF9_TIM12; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /* USER CODE BEGIN TIM12_MspPostInit 1 */ /* USER CODE END TIM12_MspPostInit 1 */ } } void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef* tim_encoderHandle) { if(tim_encoderHandle->Instance==TIM2) { /* USER CODE BEGIN TIM2_MspDeInit 0 */ /* USER CODE END TIM2_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM2_CLK_DISABLE(); /**TIM2 GPIO Configuration PA15 ------> TIM2_CH1 PB3 ------> TIM2_CH2 */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_15); HAL_GPIO_DeInit(GPIOB, GPIO_PIN_3); /* TIM2 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM2_IRQn); /* USER CODE BEGIN TIM2_MspDeInit 1 */ /* USER CODE END TIM2_MspDeInit 1 */ } else if(tim_encoderHandle->Instance==TIM3) { /* USER CODE BEGIN TIM3_MspDeInit 0 */ /* USER CODE END TIM3_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM3_CLK_DISABLE(); /**TIM3 GPIO Configuration PC6 ------> TIM3_CH1 PC7 ------> TIM3_CH2 */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_6|GPIO_PIN_7); /* TIM3 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM3_IRQn); /* USER CODE BEGIN TIM3_MspDeInit 1 */ /* USER CODE END TIM3_MspDeInit 1 */ } } void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* tim_baseHandle) { if(tim_baseHandle->Instance==TIM7) { /* USER CODE BEGIN TIM7_MspDeInit 0 */ /* USER CODE END TIM7_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM7_CLK_DISABLE(); /* TIM7 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM7_IRQn); /* USER CODE BEGIN TIM7_MspDeInit 1 */ /* USER CODE END TIM7_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM10) { /* USER CODE BEGIN TIM10_MspDeInit 0 */ /* USER CODE END TIM10_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM10_CLK_DISABLE(); /* TIM10 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM1_UP_TIM10_IRQn); /* USER CODE BEGIN TIM10_MspDeInit 1 */ /* USER CODE END TIM10_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM11) { /* USER CODE BEGIN TIM11_MspDeInit 0 */ /* USER CODE END TIM11_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM11_CLK_DISABLE(); /* TIM11 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM1_TRG_COM_TIM11_IRQn); /* USER CODE BEGIN TIM11_MspDeInit 1 */ /* USER CODE END TIM11_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM13) { /* USER CODE BEGIN TIM13_MspDeInit 0 */ /* USER CODE END TIM13_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM13_CLK_DISABLE(); /* TIM13 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM8_UP_TIM13_IRQn); /* USER CODE BEGIN TIM13_MspDeInit 1 */ /* USER CODE END TIM13_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM14) { /* USER CODE BEGIN TIM14_MspDeInit 0 */ /* USER CODE END TIM14_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM14_CLK_DISABLE(); /* TIM14 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM8_TRG_COM_TIM14_IRQn); /* USER CODE BEGIN TIM14_MspDeInit 1 */ /* USER CODE END TIM14_MspDeInit 1 */ } } void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef* tim_pwmHandle) { if(tim_pwmHandle->Instance==TIM9) { /* USER CODE BEGIN TIM9_MspDeInit 0 */ /* USER CODE END TIM9_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM9_CLK_DISABLE(); /* USER CODE BEGIN TIM9_MspDeInit 1 */ /* USER CODE END TIM9_MspDeInit 1 */ } else if(tim_pwmHandle->Instance==TIM12) { /* USER CODE BEGIN TIM12_MspDeInit 0 */ /* USER CODE END TIM12_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM12_CLK_DISABLE(); /* USER CODE BEGIN TIM12_MspDeInit 1 */ /* USER CODE END TIM12_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { if (htim->Instance->SR & 0x01) // count overflow { if (htim->Instance->CR1 & 0x10) // count up { if (htim->Instance == TIM2) encCntLoop[0]--; else if (htim->Instance == TIM3) encCntLoop[1]--; } else // count down { if (htim->Instance == TIM2) encCntLoop[0]++; else if (htim->Instance == TIM3) encCntLoop[1]++; } htim->Instance->SR = htim->Instance->SR & 0xFE; // clear flag } } int64_t GetCntLoop(TIM_TypeDef *tim) { if (tim == TIM2) { return encCntLoop[0]; } else if (tim == TIM3) { return encCntLoop[1]; } } void ClearCntLoop(TIM_TypeDef *tim) { if (tim == TIM2) { encCntLoop[0] = 0; } else if (tim == TIM3) { encCntLoop[1] = 0; } } int64_t GetEncoderCount(TIM_TypeDef *tim) { if (tim == TIM2) { return encCntLoop[0] * 65536 + TIM2->CNT; } else if (tim == TIM3) { return encCntLoop[1] * 65536 + TIM3->CNT; } } /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Core/Src/usart.c ================================================ /** ****************************************************************************** * @file usart.c * @brief This file provides code for the configuration * of the USART instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usart.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ UART_HandleTypeDef huart4; UART_HandleTypeDef huart5; UART_HandleTypeDef huart1; DMA_HandleTypeDef hdma_uart4_rx; DMA_HandleTypeDef hdma_uart4_tx; DMA_HandleTypeDef hdma_uart5_rx; DMA_HandleTypeDef hdma_uart5_tx; /* UART4 init function */ void MX_UART4_Init(void) { /* USER CODE BEGIN UART4_Init 0 */ /* USER CODE END UART4_Init 0 */ /* USER CODE BEGIN UART4_Init 1 */ /* USER CODE END UART4_Init 1 */ huart4.Instance = UART4; huart4.Init.BaudRate = 115200; huart4.Init.WordLength = UART_WORDLENGTH_8B; huart4.Init.StopBits = UART_STOPBITS_1; huart4.Init.Parity = UART_PARITY_NONE; huart4.Init.Mode = UART_MODE_TX_RX; huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart4.Init.OverSampling = UART_OVERSAMPLING_16; if (HAL_UART_Init(&huart4) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN UART4_Init 2 */ /* USER CODE END UART4_Init 2 */ } /* UART5 init function */ void MX_UART5_Init(void) { /* USER CODE BEGIN UART5_Init 0 */ /* USER CODE END UART5_Init 0 */ /* USER CODE BEGIN UART5_Init 1 */ /* USER CODE END UART5_Init 1 */ huart5.Instance = UART5; huart5.Init.BaudRate = 115200; huart5.Init.WordLength = UART_WORDLENGTH_8B; huart5.Init.StopBits = UART_STOPBITS_1; huart5.Init.Parity = UART_PARITY_NONE; huart5.Init.Mode = UART_MODE_TX_RX; huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart5.Init.OverSampling = UART_OVERSAMPLING_16; if (HAL_UART_Init(&huart5) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } /* USART1 init function */ void MX_USART1_UART_Init(void) { /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; huart1.Init.BaudRate = 115200; huart1.Init.WordLength = UART_WORDLENGTH_8B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_NONE; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART_OVERSAMPLING_16; if (HAL_UART_Init(&huart1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(uartHandle->Instance==UART4) { /* USER CODE BEGIN UART4_MspInit 0 */ /* USER CODE END UART4_MspInit 0 */ /* UART4 clock enable */ __HAL_RCC_UART4_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); /**UART4 GPIO Configuration PA0-WKUP ------> UART4_TX PA1 ------> UART4_RX */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF8_UART4; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* UART4 DMA Init */ /* UART4_RX Init */ hdma_uart4_rx.Instance = DMA1_Stream2; hdma_uart4_rx.Init.Channel = DMA_CHANNEL_4; hdma_uart4_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; hdma_uart4_rx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_uart4_rx.Init.MemInc = DMA_MINC_ENABLE; hdma_uart4_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_uart4_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_uart4_rx.Init.Mode = DMA_CIRCULAR; hdma_uart4_rx.Init.Priority = DMA_PRIORITY_LOW; hdma_uart4_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_uart4_rx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart4_rx); /* UART4_TX Init */ hdma_uart4_tx.Instance = DMA1_Stream4; hdma_uart4_tx.Init.Channel = DMA_CHANNEL_4; hdma_uart4_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; hdma_uart4_tx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_uart4_tx.Init.MemInc = DMA_MINC_ENABLE; hdma_uart4_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_uart4_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_uart4_tx.Init.Mode = DMA_NORMAL; hdma_uart4_tx.Init.Priority = DMA_PRIORITY_LOW; hdma_uart4_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_uart4_tx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart4_tx); /* UART4 interrupt Init */ HAL_NVIC_SetPriority(UART4_IRQn, 6, 0); HAL_NVIC_EnableIRQ(UART4_IRQn); /* USER CODE BEGIN UART4_MspInit 1 */ /* USER CODE END UART4_MspInit 1 */ } else if(uartHandle->Instance==UART5) { /* USER CODE BEGIN UART5_MspInit 0 */ /* USER CODE END UART5_MspInit 0 */ /* UART5 clock enable */ __HAL_RCC_UART5_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ GPIO_InitStruct.Pin = GPIO_PIN_12; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF8_UART5; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_2; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF8_UART5; HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); /* UART5 DMA Init */ /* UART5_RX Init */ hdma_uart5_rx.Instance = DMA1_Stream0; hdma_uart5_rx.Init.Channel = DMA_CHANNEL_4; hdma_uart5_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; hdma_uart5_rx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_uart5_rx.Init.MemInc = DMA_MINC_ENABLE; hdma_uart5_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_uart5_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_uart5_rx.Init.Mode = DMA_CIRCULAR; hdma_uart5_rx.Init.Priority = DMA_PRIORITY_LOW; hdma_uart5_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_uart5_rx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart5_rx); /* UART5_TX Init */ hdma_uart5_tx.Instance = DMA1_Stream7; hdma_uart5_tx.Init.Channel = DMA_CHANNEL_4; hdma_uart5_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; hdma_uart5_tx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_uart5_tx.Init.MemInc = DMA_MINC_ENABLE; hdma_uart5_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_uart5_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_uart5_tx.Init.Mode = DMA_NORMAL; hdma_uart5_tx.Init.Priority = DMA_PRIORITY_LOW; hdma_uart5_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; if (HAL_DMA_Init(&hdma_uart5_tx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx); /* UART5 interrupt Init */ HAL_NVIC_SetPriority(UART5_IRQn, 6, 0); HAL_NVIC_EnableIRQ(UART5_IRQn); /* USER CODE BEGIN UART5_MspInit 1 */ /* USER CODE END UART5_MspInit 1 */ } else if(uartHandle->Instance==USART1) { /* USER CODE BEGIN USART1_MspInit 0 */ /* USER CODE END USART1_MspInit 0 */ /* USART1 clock enable */ __HAL_RCC_USART1_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); /**USART1 GPIO Configuration PA9 ------> USART1_TX PA10 ------> USART1_RX */ GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF7_USART1; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* USER CODE BEGIN USART1_MspInit 1 */ /* USER CODE END USART1_MspInit 1 */ } } void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle) { if(uartHandle->Instance==UART4) { /* USER CODE BEGIN UART4_MspDeInit 0 */ /* USER CODE END UART4_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_UART4_CLK_DISABLE(); /**UART4 GPIO Configuration PA0-WKUP ------> UART4_TX PA1 ------> UART4_RX */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0|GPIO_PIN_1); /* UART4 DMA DeInit */ HAL_DMA_DeInit(uartHandle->hdmarx); HAL_DMA_DeInit(uartHandle->hdmatx); /* UART4 interrupt Deinit */ HAL_NVIC_DisableIRQ(UART4_IRQn); /* USER CODE BEGIN UART4_MspDeInit 1 */ /* USER CODE END UART4_MspDeInit 1 */ } else if(uartHandle->Instance==UART5) { /* USER CODE BEGIN UART5_MspDeInit 0 */ /* USER CODE END UART5_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_UART5_CLK_DISABLE(); /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_12); HAL_GPIO_DeInit(GPIOD, GPIO_PIN_2); /* UART5 DMA DeInit */ HAL_DMA_DeInit(uartHandle->hdmarx); HAL_DMA_DeInit(uartHandle->hdmatx); /* UART5 interrupt Deinit */ HAL_NVIC_DisableIRQ(UART5_IRQn); /* USER CODE BEGIN UART5_MspDeInit 1 */ /* USER CODE END UART5_MspDeInit 1 */ } else if(uartHandle->Instance==USART1) { /* USER CODE BEGIN USART1_MspDeInit 0 */ /* USER CODE END USART1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_USART1_CLK_DISABLE(); /**USART1 GPIO Configuration PA9 ------> USART1_TX PA10 ------> USART1_RX */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_9|GPIO_PIN_10); /* USER CODE BEGIN USART1_MspDeInit 1 */ /* USER CODE END USART1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f405xx.h ================================================ /** ****************************************************************************** * @file stm32f405xx.h * @author MCD Application Team * @brief CMSIS STM32F405xx Device Peripheral Access Layer Header File. * * This file contains: * - Data structures and the address mapping for all peripherals * - peripherals registers declarations and bits definition * - Macros to access peripheral’s registers hardware * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS_Device * @{ */ /** @addtogroup stm32f405xx * @{ */ #ifndef __STM32F405xx_H #define __STM32F405xx_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** @addtogroup Configuration_section_for_CMSIS * @{ */ /** * @brief Configuration of the Cortex-M4 Processor and Core Peripherals */ #define __CM4_REV 0x0001U /*!< Core revision r0p1 */ #define __MPU_PRESENT 1U /*!< STM32F4XX provides an MPU */ #define __NVIC_PRIO_BITS 4U /*!< STM32F4XX uses 4 Bits for the Priority Levels */ #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */ #define __FPU_PRESENT 1U /*!< FPU present */ /** * @} */ /** @addtogroup Peripheral_interrupt_number_definition * @{ */ /** * @brief STM32F4XX Interrupt Number Definition, according to the selected device * in @ref Library_configuration_section */ typedef enum { /****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/ NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */ BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */ UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */ SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */ DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */ PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */ SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */ /****** STM32 specific Interrupt Numbers **********************************************************************/ WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */ RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */ FLASH_IRQn = 4, /*!< FLASH global Interrupt */ RCC_IRQn = 5, /*!< RCC global Interrupt */ EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */ DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */ DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */ DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */ DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */ DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */ DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */ ADC_IRQn = 18, /*!< ADC1, ADC2 and ADC3 global Interrupts */ CAN1_TX_IRQn = 19, /*!< CAN1 TX Interrupt */ CAN1_RX0_IRQn = 20, /*!< CAN1 RX0 Interrupt */ CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ TIM1_BRK_TIM9_IRQn = 24, /*!< TIM1 Break interrupt and TIM9 global interrupt */ TIM1_UP_TIM10_IRQn = 25, /*!< TIM1 Update Interrupt and TIM10 global interrupt */ TIM1_TRG_COM_TIM11_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt and TIM11 global interrupt */ TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ TIM4_IRQn = 30, /*!< TIM4 global Interrupt */ I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ USART1_IRQn = 37, /*!< USART1 global Interrupt */ USART2_IRQn = 38, /*!< USART2 global Interrupt */ USART3_IRQn = 39, /*!< USART3 global Interrupt */ EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */ OTG_FS_WKUP_IRQn = 42, /*!< USB OTG FS Wakeup through EXTI line interrupt */ TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */ TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */ TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */ TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare global interrupt */ DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */ FSMC_IRQn = 48, /*!< FSMC global Interrupt */ SDIO_IRQn = 49, /*!< SDIO global Interrupt */ TIM5_IRQn = 50, /*!< TIM5 global Interrupt */ SPI3_IRQn = 51, /*!< SPI3 global Interrupt */ UART4_IRQn = 52, /*!< UART4 global Interrupt */ UART5_IRQn = 53, /*!< UART5 global Interrupt */ TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */ TIM7_IRQn = 55, /*!< TIM7 global interrupt */ DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */ DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */ DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */ DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */ DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */ CAN2_TX_IRQn = 63, /*!< CAN2 TX Interrupt */ CAN2_RX0_IRQn = 64, /*!< CAN2 RX0 Interrupt */ CAN2_RX1_IRQn = 65, /*!< CAN2 RX1 Interrupt */ CAN2_SCE_IRQn = 66, /*!< CAN2 SCE Interrupt */ OTG_FS_IRQn = 67, /*!< USB OTG FS global Interrupt */ DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */ DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */ DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */ USART6_IRQn = 71, /*!< USART6 global interrupt */ I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */ I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */ OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */ OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */ OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */ OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */ RNG_IRQn = 80, /*!< RNG global Interrupt */ FPU_IRQn = 81 /*!< FPU global interrupt */ } IRQn_Type; /* Legacy define */ #define HASH_RNG_IRQn RNG_IRQn /** * @} */ #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */ #include "system_stm32f4xx.h" #include /** @addtogroup Peripheral_registers_structures * @{ */ /** * @brief Analog to Digital Converter */ typedef struct { __IO uint32_t SR; /*!< ADC status register, Address offset: 0x00 */ __IO uint32_t CR1; /*!< ADC control register 1, Address offset: 0x04 */ __IO uint32_t CR2; /*!< ADC control register 2, Address offset: 0x08 */ __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x0C */ __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x10 */ __IO uint32_t JOFR1; /*!< ADC injected channel data offset register 1, Address offset: 0x14 */ __IO uint32_t JOFR2; /*!< ADC injected channel data offset register 2, Address offset: 0x18 */ __IO uint32_t JOFR3; /*!< ADC injected channel data offset register 3, Address offset: 0x1C */ __IO uint32_t JOFR4; /*!< ADC injected channel data offset register 4, Address offset: 0x20 */ __IO uint32_t HTR; /*!< ADC watchdog higher threshold register, Address offset: 0x24 */ __IO uint32_t LTR; /*!< ADC watchdog lower threshold register, Address offset: 0x28 */ __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x2C */ __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x30 */ __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x34 */ __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x38*/ __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x3C */ __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x40 */ __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x44 */ __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x48 */ __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x4C */ } ADC_TypeDef; typedef struct { __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1 base address + 0x300 */ __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1 base address + 0x304 */ __IO uint32_t CDR; /*!< ADC common regular data register for dual AND triple modes, Address offset: ADC1 base address + 0x308 */ } ADC_Common_TypeDef; /** * @brief Controller Area Network TxMailBox */ typedef struct { __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */ __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */ __IO uint32_t TDLR; /*!< CAN mailbox data low register */ __IO uint32_t TDHR; /*!< CAN mailbox data high register */ } CAN_TxMailBox_TypeDef; /** * @brief Controller Area Network FIFOMailBox */ typedef struct { __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */ __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */ __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */ __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */ } CAN_FIFOMailBox_TypeDef; /** * @brief Controller Area Network FilterRegister */ typedef struct { __IO uint32_t FR1; /*!< CAN Filter bank register 1 */ __IO uint32_t FR2; /*!< CAN Filter bank register 1 */ } CAN_FilterRegister_TypeDef; /** * @brief Controller Area Network */ typedef struct { __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */ __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */ __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */ __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */ __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */ __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */ __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */ __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */ uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */ CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */ CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */ uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */ __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */ __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */ uint32_t RESERVED2; /*!< Reserved, 0x208 */ __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */ uint32_t RESERVED3; /*!< Reserved, 0x210 */ __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */ uint32_t RESERVED4; /*!< Reserved, 0x218 */ __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */ uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */ CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */ } CAN_TypeDef; /** * @brief CRC calculation unit */ typedef struct { __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ uint8_t RESERVED0; /*!< Reserved, 0x05 */ uint16_t RESERVED1; /*!< Reserved, 0x06 */ __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ } CRC_TypeDef; /** * @brief Digital to Analog Converter */ typedef struct { __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */ __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */ __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */ __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */ __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */ __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */ __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */ __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */ __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */ __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */ __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */ __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */ __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */ __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */ } DAC_TypeDef; /** * @brief Debug MCU */ typedef struct { __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */ __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */ __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */ __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */ }DBGMCU_TypeDef; /** * @brief DMA Controller */ typedef struct { __IO uint32_t CR; /*!< DMA stream x configuration register */ __IO uint32_t NDTR; /*!< DMA stream x number of data register */ __IO uint32_t PAR; /*!< DMA stream x peripheral address register */ __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */ __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */ __IO uint32_t FCR; /*!< DMA stream x FIFO control register */ } DMA_Stream_TypeDef; typedef struct { __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */ __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */ __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */ __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */ } DMA_TypeDef; /** * @brief External Interrupt/Event Controller */ typedef struct { __IO uint32_t IMR; /*!< EXTI Interrupt mask register, Address offset: 0x00 */ __IO uint32_t EMR; /*!< EXTI Event mask register, Address offset: 0x04 */ __IO uint32_t RTSR; /*!< EXTI Rising trigger selection register, Address offset: 0x08 */ __IO uint32_t FTSR; /*!< EXTI Falling trigger selection register, Address offset: 0x0C */ __IO uint32_t SWIER; /*!< EXTI Software interrupt event register, Address offset: 0x10 */ __IO uint32_t PR; /*!< EXTI Pending register, Address offset: 0x14 */ } EXTI_TypeDef; /** * @brief FLASH Registers */ typedef struct { __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */ __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */ __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */ __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */ __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */ __IO uint32_t OPTCR; /*!< FLASH option control register , Address offset: 0x14 */ __IO uint32_t OPTCR1; /*!< FLASH option control register 1, Address offset: 0x18 */ } FLASH_TypeDef; /** * @brief Flexible Static Memory Controller */ typedef struct { __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */ } FSMC_Bank1_TypeDef; /** * @brief Flexible Static Memory Controller Bank1E */ typedef struct { __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */ } FSMC_Bank1E_TypeDef; /** * @brief Flexible Static Memory Controller Bank2 */ typedef struct { __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */ __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */ __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */ __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */ uint32_t RESERVED0; /*!< Reserved, 0x70 */ __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */ uint32_t RESERVED1; /*!< Reserved, 0x78 */ uint32_t RESERVED2; /*!< Reserved, 0x7C */ __IO uint32_t PCR3; /*!< NAND Flash control register 3, Address offset: 0x80 */ __IO uint32_t SR3; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */ __IO uint32_t PMEM3; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */ __IO uint32_t PATT3; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */ uint32_t RESERVED3; /*!< Reserved, 0x90 */ __IO uint32_t ECCR3; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */ } FSMC_Bank2_3_TypeDef; /** * @brief Flexible Static Memory Controller Bank4 */ typedef struct { __IO uint32_t PCR4; /*!< PC Card control register 4, Address offset: 0xA0 */ __IO uint32_t SR4; /*!< PC Card FIFO status and interrupt register 4, Address offset: 0xA4 */ __IO uint32_t PMEM4; /*!< PC Card Common memory space timing register 4, Address offset: 0xA8 */ __IO uint32_t PATT4; /*!< PC Card Attribute memory space timing register 4, Address offset: 0xAC */ __IO uint32_t PIO4; /*!< PC Card I/O space timing register 4, Address offset: 0xB0 */ } FSMC_Bank4_TypeDef; /** * @brief General Purpose I/O */ typedef struct { __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */ __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */ __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */ __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */ __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */ __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */ __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x18 */ __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */ __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */ } GPIO_TypeDef; /** * @brief System configuration controller */ typedef struct { __IO uint32_t MEMRMP; /*!< SYSCFG memory remap register, Address offset: 0x00 */ __IO uint32_t PMC; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */ __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */ uint32_t RESERVED[2]; /*!< Reserved, 0x18-0x1C */ __IO uint32_t CMPCR; /*!< SYSCFG Compensation cell control register, Address offset: 0x20 */ } SYSCFG_TypeDef; /** * @brief Inter-integrated Circuit Interface */ typedef struct { __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */ __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */ __IO uint32_t OAR1; /*!< I2C Own address register 1, Address offset: 0x08 */ __IO uint32_t OAR2; /*!< I2C Own address register 2, Address offset: 0x0C */ __IO uint32_t DR; /*!< I2C Data register, Address offset: 0x10 */ __IO uint32_t SR1; /*!< I2C Status register 1, Address offset: 0x14 */ __IO uint32_t SR2; /*!< I2C Status register 2, Address offset: 0x18 */ __IO uint32_t CCR; /*!< I2C Clock control register, Address offset: 0x1C */ __IO uint32_t TRISE; /*!< I2C TRISE register, Address offset: 0x20 */ } I2C_TypeDef; /** * @brief Independent WATCHDOG */ typedef struct { __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */ __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */ __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */ __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */ } IWDG_TypeDef; /** * @brief Power Control */ typedef struct { __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */ __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */ } PWR_TypeDef; /** * @brief Reset and Clock Control */ typedef struct { __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */ __IO uint32_t PLLCFGR; /*!< RCC PLL configuration register, Address offset: 0x04 */ __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */ __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x0C */ __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x10 */ __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x14 */ __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x18 */ uint32_t RESERVED0; /*!< Reserved, 0x1C */ __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x20 */ __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x24 */ uint32_t RESERVED1[2]; /*!< Reserved, 0x28-0x2C */ __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0x30 */ __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0x34 */ __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0x38 */ uint32_t RESERVED2; /*!< Reserved, 0x3C */ __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x40 */ __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x44 */ uint32_t RESERVED3[2]; /*!< Reserved, 0x48-0x4C */ __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral clock enable in low power mode register, Address offset: 0x50 */ __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral clock enable in low power mode register, Address offset: 0x54 */ __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral clock enable in low power mode register, Address offset: 0x58 */ uint32_t RESERVED4; /*!< Reserved, 0x5C */ __IO uint32_t APB1LPENR; /*!< RCC APB1 peripheral clock enable in low power mode register, Address offset: 0x60 */ __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral clock enable in low power mode register, Address offset: 0x64 */ uint32_t RESERVED5[2]; /*!< Reserved, 0x68-0x6C */ __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x70 */ __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */ uint32_t RESERVED6[2]; /*!< Reserved, 0x78-0x7C */ __IO uint32_t SSCGR; /*!< RCC spread spectrum clock generation register, Address offset: 0x80 */ __IO uint32_t PLLI2SCFGR; /*!< RCC PLLI2S configuration register, Address offset: 0x84 */ } RCC_TypeDef; /** * @brief Real-Time Clock */ typedef struct { __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */ __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */ __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */ __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */ __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */ __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */ __IO uint32_t CALIBR; /*!< RTC calibration register, Address offset: 0x18 */ __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */ __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */ __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */ __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */ __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */ __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */ __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */ __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */ __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */ __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */ __IO uint32_t ALRMASSR;/*!< RTC alarm A sub second register, Address offset: 0x44 */ __IO uint32_t ALRMBSSR;/*!< RTC alarm B sub second register, Address offset: 0x48 */ uint32_t RESERVED7; /*!< Reserved, 0x4C */ __IO uint32_t BKP0R; /*!< RTC backup register 1, Address offset: 0x50 */ __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */ __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */ __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */ __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */ __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */ __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */ __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */ __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */ __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */ __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */ __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */ __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */ __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */ __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */ __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */ __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */ __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */ __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */ __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */ } RTC_TypeDef; /** * @brief SD host Interface */ typedef struct { __IO uint32_t POWER; /*!< SDIO power control register, Address offset: 0x00 */ __IO uint32_t CLKCR; /*!< SDI clock control register, Address offset: 0x04 */ __IO uint32_t ARG; /*!< SDIO argument register, Address offset: 0x08 */ __IO uint32_t CMD; /*!< SDIO command register, Address offset: 0x0C */ __IO const uint32_t RESPCMD; /*!< SDIO command response register, Address offset: 0x10 */ __IO const uint32_t RESP1; /*!< SDIO response 1 register, Address offset: 0x14 */ __IO const uint32_t RESP2; /*!< SDIO response 2 register, Address offset: 0x18 */ __IO const uint32_t RESP3; /*!< SDIO response 3 register, Address offset: 0x1C */ __IO const uint32_t RESP4; /*!< SDIO response 4 register, Address offset: 0x20 */ __IO uint32_t DTIMER; /*!< SDIO data timer register, Address offset: 0x24 */ __IO uint32_t DLEN; /*!< SDIO data length register, Address offset: 0x28 */ __IO uint32_t DCTRL; /*!< SDIO data control register, Address offset: 0x2C */ __IO const uint32_t DCOUNT; /*!< SDIO data counter register, Address offset: 0x30 */ __IO const uint32_t STA; /*!< SDIO status register, Address offset: 0x34 */ __IO uint32_t ICR; /*!< SDIO interrupt clear register, Address offset: 0x38 */ __IO uint32_t MASK; /*!< SDIO mask register, Address offset: 0x3C */ uint32_t RESERVED0[2]; /*!< Reserved, 0x40-0x44 */ __IO const uint32_t FIFOCNT; /*!< SDIO FIFO counter register, Address offset: 0x48 */ uint32_t RESERVED1[13]; /*!< Reserved, 0x4C-0x7C */ __IO uint32_t FIFO; /*!< SDIO data FIFO register, Address offset: 0x80 */ } SDIO_TypeDef; /** * @brief Serial Peripheral Interface */ typedef struct { __IO uint32_t CR1; /*!< SPI control register 1 (not used in I2S mode), Address offset: 0x00 */ __IO uint32_t CR2; /*!< SPI control register 2, Address offset: 0x04 */ __IO uint32_t SR; /*!< SPI status register, Address offset: 0x08 */ __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */ __IO uint32_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */ __IO uint32_t RXCRCR; /*!< SPI RX CRC register (not used in I2S mode), Address offset: 0x14 */ __IO uint32_t TXCRCR; /*!< SPI TX CRC register (not used in I2S mode), Address offset: 0x18 */ __IO uint32_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */ __IO uint32_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */ } SPI_TypeDef; /** * @brief TIM */ typedef struct { __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */ __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */ __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */ __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */ __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */ } TIM_TypeDef; /** * @brief Universal Synchronous Asynchronous Receiver Transmitter */ typedef struct { __IO uint32_t SR; /*!< USART Status register, Address offset: 0x00 */ __IO uint32_t DR; /*!< USART Data register, Address offset: 0x04 */ __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x08 */ __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x0C */ __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x10 */ __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x14 */ __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x18 */ } USART_TypeDef; /** * @brief Window WATCHDOG */ typedef struct { __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ } WWDG_TypeDef; /** * @brief RNG */ typedef struct { __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */ __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */ __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */ } RNG_TypeDef; /** * @brief USB_OTG_Core_Registers */ typedef struct { __IO uint32_t GOTGCTL; /*!< USB_OTG Control and Status Register 000h */ __IO uint32_t GOTGINT; /*!< USB_OTG Interrupt Register 004h */ __IO uint32_t GAHBCFG; /*!< Core AHB Configuration Register 008h */ __IO uint32_t GUSBCFG; /*!< Core USB Configuration Register 00Ch */ __IO uint32_t GRSTCTL; /*!< Core Reset Register 010h */ __IO uint32_t GINTSTS; /*!< Core Interrupt Register 014h */ __IO uint32_t GINTMSK; /*!< Core Interrupt Mask Register 018h */ __IO uint32_t GRXSTSR; /*!< Receive Sts Q Read Register 01Ch */ __IO uint32_t GRXSTSP; /*!< Receive Sts Q Read & POP Register 020h */ __IO uint32_t GRXFSIZ; /*!< Receive FIFO Size Register 024h */ __IO uint32_t DIEPTXF0_HNPTXFSIZ; /*!< EP0 / Non Periodic Tx FIFO Size Register 028h */ __IO uint32_t HNPTXSTS; /*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch */ uint32_t Reserved30[2]; /*!< Reserved 030h */ __IO uint32_t GCCFG; /*!< General Purpose IO Register 038h */ __IO uint32_t CID; /*!< User ID Register 03Ch */ uint32_t Reserved40[48]; /*!< Reserved 0x40-0xFF */ __IO uint32_t HPTXFSIZ; /*!< Host Periodic Tx FIFO Size Reg 100h */ __IO uint32_t DIEPTXF[0x0F]; /*!< dev Periodic Transmit FIFO */ } USB_OTG_GlobalTypeDef; /** * @brief USB_OTG_device_Registers */ typedef struct { __IO uint32_t DCFG; /*!< dev Configuration Register 800h */ __IO uint32_t DCTL; /*!< dev Control Register 804h */ __IO uint32_t DSTS; /*!< dev Status Register (RO) 808h */ uint32_t Reserved0C; /*!< Reserved 80Ch */ __IO uint32_t DIEPMSK; /*!< dev IN Endpoint Mask 810h */ __IO uint32_t DOEPMSK; /*!< dev OUT Endpoint Mask 814h */ __IO uint32_t DAINT; /*!< dev All Endpoints Itr Reg 818h */ __IO uint32_t DAINTMSK; /*!< dev All Endpoints Itr Mask 81Ch */ uint32_t Reserved20; /*!< Reserved 820h */ uint32_t Reserved9; /*!< Reserved 824h */ __IO uint32_t DVBUSDIS; /*!< dev VBUS discharge Register 828h */ __IO uint32_t DVBUSPULSE; /*!< dev VBUS Pulse Register 82Ch */ __IO uint32_t DTHRCTL; /*!< dev threshold 830h */ __IO uint32_t DIEPEMPMSK; /*!< dev empty msk 834h */ __IO uint32_t DEACHINT; /*!< dedicated EP interrupt 838h */ __IO uint32_t DEACHMSK; /*!< dedicated EP msk 83Ch */ uint32_t Reserved40; /*!< dedicated EP mask 840h */ __IO uint32_t DINEP1MSK; /*!< dedicated EP mask 844h */ uint32_t Reserved44[15]; /*!< Reserved 844-87Ch */ __IO uint32_t DOUTEP1MSK; /*!< dedicated EP msk 884h */ } USB_OTG_DeviceTypeDef; /** * @brief USB_OTG_IN_Endpoint-Specific_Register */ typedef struct { __IO uint32_t DIEPCTL; /*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h */ uint32_t Reserved04; /*!< Reserved 900h + (ep_num * 20h) + 04h */ __IO uint32_t DIEPINT; /*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h */ uint32_t Reserved0C; /*!< Reserved 900h + (ep_num * 20h) + 0Ch */ __IO uint32_t DIEPTSIZ; /*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h */ __IO uint32_t DIEPDMA; /*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h */ __IO uint32_t DTXFSTS; /*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h */ uint32_t Reserved18; /*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch */ } USB_OTG_INEndpointTypeDef; /** * @brief USB_OTG_OUT_Endpoint-Specific_Registers */ typedef struct { __IO uint32_t DOEPCTL; /*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h */ uint32_t Reserved04; /*!< Reserved B00h + (ep_num * 20h) + 04h */ __IO uint32_t DOEPINT; /*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h */ uint32_t Reserved0C; /*!< Reserved B00h + (ep_num * 20h) + 0Ch */ __IO uint32_t DOEPTSIZ; /*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h */ __IO uint32_t DOEPDMA; /*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h */ uint32_t Reserved18[2]; /*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch */ } USB_OTG_OUTEndpointTypeDef; /** * @brief USB_OTG_Host_Mode_Register_Structures */ typedef struct { __IO uint32_t HCFG; /*!< Host Configuration Register 400h */ __IO uint32_t HFIR; /*!< Host Frame Interval Register 404h */ __IO uint32_t HFNUM; /*!< Host Frame Nbr/Frame Remaining 408h */ uint32_t Reserved40C; /*!< Reserved 40Ch */ __IO uint32_t HPTXSTS; /*!< Host Periodic Tx FIFO/ Queue Status 410h */ __IO uint32_t HAINT; /*!< Host All Channels Interrupt Register 414h */ __IO uint32_t HAINTMSK; /*!< Host All Channels Interrupt Mask 418h */ } USB_OTG_HostTypeDef; /** * @brief USB_OTG_Host_Channel_Specific_Registers */ typedef struct { __IO uint32_t HCCHAR; /*!< Host Channel Characteristics Register 500h */ __IO uint32_t HCSPLT; /*!< Host Channel Split Control Register 504h */ __IO uint32_t HCINT; /*!< Host Channel Interrupt Register 508h */ __IO uint32_t HCINTMSK; /*!< Host Channel Interrupt Mask Register 50Ch */ __IO uint32_t HCTSIZ; /*!< Host Channel Transfer Size Register 510h */ __IO uint32_t HCDMA; /*!< Host Channel DMA Address Register 514h */ uint32_t Reserved[2]; /*!< Reserved */ } USB_OTG_HostChannelTypeDef; /** * @} */ /** @addtogroup Peripheral_memory_map * @{ */ #define FLASH_BASE 0x08000000UL /*!< FLASH(up to 1 MB) base address in the alias region */ #define CCMDATARAM_BASE 0x10000000UL /*!< CCM(core coupled memory) data RAM(64 KB) base address in the alias region */ #define SRAM1_BASE 0x20000000UL /*!< SRAM1(112 KB) base address in the alias region */ #define SRAM2_BASE 0x2001C000UL /*!< SRAM2(16 KB) base address in the alias region */ #define PERIPH_BASE 0x40000000UL /*!< Peripheral base address in the alias region */ #define BKPSRAM_BASE 0x40024000UL /*!< Backup SRAM(4 KB) base address in the alias region */ #define FSMC_R_BASE 0xA0000000UL /*!< FSMC registers base address */ #define SRAM1_BB_BASE 0x22000000UL /*!< SRAM1(112 KB) base address in the bit-band region */ #define SRAM2_BB_BASE 0x22380000UL /*!< SRAM2(16 KB) base address in the bit-band region */ #define PERIPH_BB_BASE 0x42000000UL /*!< Peripheral base address in the bit-band region */ #define BKPSRAM_BB_BASE 0x42480000UL /*!< Backup SRAM(4 KB) base address in the bit-band region */ #define FLASH_END 0x080FFFFFUL /*!< FLASH end address */ #define FLASH_OTP_BASE 0x1FFF7800UL /*!< Base address of : (up to 528 Bytes) embedded FLASH OTP Area */ #define FLASH_OTP_END 0x1FFF7A0FUL /*!< End address of : (up to 528 Bytes) embedded FLASH OTP Area */ #define CCMDATARAM_END 0x1000FFFFUL /*!< CCM data RAM end address */ /* Legacy defines */ #define SRAM_BASE SRAM1_BASE #define SRAM_BB_BASE SRAM1_BB_BASE /*!< Peripheral memory map */ #define APB1PERIPH_BASE PERIPH_BASE #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL) #define AHB2PERIPH_BASE (PERIPH_BASE + 0x10000000UL) /*!< APB1 peripherals */ #define TIM2_BASE (APB1PERIPH_BASE + 0x0000UL) #define TIM3_BASE (APB1PERIPH_BASE + 0x0400UL) #define TIM4_BASE (APB1PERIPH_BASE + 0x0800UL) #define TIM5_BASE (APB1PERIPH_BASE + 0x0C00UL) #define TIM6_BASE (APB1PERIPH_BASE + 0x1000UL) #define TIM7_BASE (APB1PERIPH_BASE + 0x1400UL) #define TIM12_BASE (APB1PERIPH_BASE + 0x1800UL) #define TIM13_BASE (APB1PERIPH_BASE + 0x1C00UL) #define TIM14_BASE (APB1PERIPH_BASE + 0x2000UL) #define RTC_BASE (APB1PERIPH_BASE + 0x2800UL) #define WWDG_BASE (APB1PERIPH_BASE + 0x2C00UL) #define IWDG_BASE (APB1PERIPH_BASE + 0x3000UL) #define I2S2ext_BASE (APB1PERIPH_BASE + 0x3400UL) #define SPI2_BASE (APB1PERIPH_BASE + 0x3800UL) #define SPI3_BASE (APB1PERIPH_BASE + 0x3C00UL) #define I2S3ext_BASE (APB1PERIPH_BASE + 0x4000UL) #define USART2_BASE (APB1PERIPH_BASE + 0x4400UL) #define USART3_BASE (APB1PERIPH_BASE + 0x4800UL) #define UART4_BASE (APB1PERIPH_BASE + 0x4C00UL) #define UART5_BASE (APB1PERIPH_BASE + 0x5000UL) #define I2C1_BASE (APB1PERIPH_BASE + 0x5400UL) #define I2C2_BASE (APB1PERIPH_BASE + 0x5800UL) #define I2C3_BASE (APB1PERIPH_BASE + 0x5C00UL) #define CAN1_BASE (APB1PERIPH_BASE + 0x6400UL) #define CAN2_BASE (APB1PERIPH_BASE + 0x6800UL) #define PWR_BASE (APB1PERIPH_BASE + 0x7000UL) #define DAC_BASE (APB1PERIPH_BASE + 0x7400UL) /*!< APB2 peripherals */ #define TIM1_BASE (APB2PERIPH_BASE + 0x0000UL) #define TIM8_BASE (APB2PERIPH_BASE + 0x0400UL) #define USART1_BASE (APB2PERIPH_BASE + 0x1000UL) #define USART6_BASE (APB2PERIPH_BASE + 0x1400UL) #define ADC1_BASE (APB2PERIPH_BASE + 0x2000UL) #define ADC2_BASE (APB2PERIPH_BASE + 0x2100UL) #define ADC3_BASE (APB2PERIPH_BASE + 0x2200UL) #define ADC123_COMMON_BASE (APB2PERIPH_BASE + 0x2300UL) /* Legacy define */ #define ADC_BASE ADC123_COMMON_BASE #define SDIO_BASE (APB2PERIPH_BASE + 0x2C00UL) #define SPI1_BASE (APB2PERIPH_BASE + 0x3000UL) #define SYSCFG_BASE (APB2PERIPH_BASE + 0x3800UL) #define EXTI_BASE (APB2PERIPH_BASE + 0x3C00UL) #define TIM9_BASE (APB2PERIPH_BASE + 0x4000UL) #define TIM10_BASE (APB2PERIPH_BASE + 0x4400UL) #define TIM11_BASE (APB2PERIPH_BASE + 0x4800UL) /*!< AHB1 peripherals */ #define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000UL) #define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400UL) #define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800UL) #define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00UL) #define GPIOE_BASE (AHB1PERIPH_BASE + 0x1000UL) #define GPIOF_BASE (AHB1PERIPH_BASE + 0x1400UL) #define GPIOG_BASE (AHB1PERIPH_BASE + 0x1800UL) #define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00UL) #define GPIOI_BASE (AHB1PERIPH_BASE + 0x2000UL) #define CRC_BASE (AHB1PERIPH_BASE + 0x3000UL) #define RCC_BASE (AHB1PERIPH_BASE + 0x3800UL) #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x3C00UL) #define DMA1_BASE (AHB1PERIPH_BASE + 0x6000UL) #define DMA1_Stream0_BASE (DMA1_BASE + 0x010UL) #define DMA1_Stream1_BASE (DMA1_BASE + 0x028UL) #define DMA1_Stream2_BASE (DMA1_BASE + 0x040UL) #define DMA1_Stream3_BASE (DMA1_BASE + 0x058UL) #define DMA1_Stream4_BASE (DMA1_BASE + 0x070UL) #define DMA1_Stream5_BASE (DMA1_BASE + 0x088UL) #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0UL) #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8UL) #define DMA2_BASE (AHB1PERIPH_BASE + 0x6400UL) #define DMA2_Stream0_BASE (DMA2_BASE + 0x010UL) #define DMA2_Stream1_BASE (DMA2_BASE + 0x028UL) #define DMA2_Stream2_BASE (DMA2_BASE + 0x040UL) #define DMA2_Stream3_BASE (DMA2_BASE + 0x058UL) #define DMA2_Stream4_BASE (DMA2_BASE + 0x070UL) #define DMA2_Stream5_BASE (DMA2_BASE + 0x088UL) #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0UL) #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8UL) /*!< AHB2 peripherals */ #define RNG_BASE (AHB2PERIPH_BASE + 0x60800UL) /*!< FSMC Bankx registers base address */ #define FSMC_Bank1_R_BASE (FSMC_R_BASE + 0x0000UL) #define FSMC_Bank1E_R_BASE (FSMC_R_BASE + 0x0104UL) #define FSMC_Bank2_3_R_BASE (FSMC_R_BASE + 0x0060UL) #define FSMC_Bank4_R_BASE (FSMC_R_BASE + 0x00A0UL) /*!< Debug MCU registers base address */ #define DBGMCU_BASE 0xE0042000UL /*!< USB registers base address */ #define USB_OTG_HS_PERIPH_BASE 0x40040000UL #define USB_OTG_FS_PERIPH_BASE 0x50000000UL #define USB_OTG_GLOBAL_BASE 0x000UL #define USB_OTG_DEVICE_BASE 0x800UL #define USB_OTG_IN_ENDPOINT_BASE 0x900UL #define USB_OTG_OUT_ENDPOINT_BASE 0xB00UL #define USB_OTG_EP_REG_SIZE 0x20UL #define USB_OTG_HOST_BASE 0x400UL #define USB_OTG_HOST_PORT_BASE 0x440UL #define USB_OTG_HOST_CHANNEL_BASE 0x500UL #define USB_OTG_HOST_CHANNEL_SIZE 0x20UL #define USB_OTG_PCGCCTL_BASE 0xE00UL #define USB_OTG_FIFO_BASE 0x1000UL #define USB_OTG_FIFO_SIZE 0x1000UL #define UID_BASE 0x1FFF7A10UL /*!< Unique device ID register base address */ #define FLASHSIZE_BASE 0x1FFF7A22UL /*!< FLASH Size register base address */ #define PACKAGE_BASE 0x1FFF7BF0UL /*!< Package size register base address */ /** * @} */ /** @addtogroup Peripheral_declaration * @{ */ #define TIM2 ((TIM_TypeDef *) TIM2_BASE) #define TIM3 ((TIM_TypeDef *) TIM3_BASE) #define TIM4 ((TIM_TypeDef *) TIM4_BASE) #define TIM5 ((TIM_TypeDef *) TIM5_BASE) #define TIM6 ((TIM_TypeDef *) TIM6_BASE) #define TIM7 ((TIM_TypeDef *) TIM7_BASE) #define TIM12 ((TIM_TypeDef *) TIM12_BASE) #define TIM13 ((TIM_TypeDef *) TIM13_BASE) #define TIM14 ((TIM_TypeDef *) TIM14_BASE) #define RTC ((RTC_TypeDef *) RTC_BASE) #define WWDG ((WWDG_TypeDef *) WWDG_BASE) #define IWDG ((IWDG_TypeDef *) IWDG_BASE) #define I2S2ext ((SPI_TypeDef *) I2S2ext_BASE) #define SPI2 ((SPI_TypeDef *) SPI2_BASE) #define SPI3 ((SPI_TypeDef *) SPI3_BASE) #define I2S3ext ((SPI_TypeDef *) I2S3ext_BASE) #define USART2 ((USART_TypeDef *) USART2_BASE) #define USART3 ((USART_TypeDef *) USART3_BASE) #define UART4 ((USART_TypeDef *) UART4_BASE) #define UART5 ((USART_TypeDef *) UART5_BASE) #define I2C1 ((I2C_TypeDef *) I2C1_BASE) #define I2C2 ((I2C_TypeDef *) I2C2_BASE) #define I2C3 ((I2C_TypeDef *) I2C3_BASE) #define CAN1 ((CAN_TypeDef *) CAN1_BASE) #define CAN2 ((CAN_TypeDef *) CAN2_BASE) #define PWR ((PWR_TypeDef *) PWR_BASE) #define DAC1 ((DAC_TypeDef *) DAC_BASE) #define DAC ((DAC_TypeDef *) DAC_BASE) /* Kept for legacy purpose */ #define TIM1 ((TIM_TypeDef *) TIM1_BASE) #define TIM8 ((TIM_TypeDef *) TIM8_BASE) #define USART1 ((USART_TypeDef *) USART1_BASE) #define USART6 ((USART_TypeDef *) USART6_BASE) #define ADC1 ((ADC_TypeDef *) ADC1_BASE) #define ADC2 ((ADC_TypeDef *) ADC2_BASE) #define ADC3 ((ADC_TypeDef *) ADC3_BASE) #define ADC123_COMMON ((ADC_Common_TypeDef *) ADC123_COMMON_BASE) /* Legacy define */ #define ADC ADC123_COMMON #define SDIO ((SDIO_TypeDef *) SDIO_BASE) #define SPI1 ((SPI_TypeDef *) SPI1_BASE) #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) #define EXTI ((EXTI_TypeDef *) EXTI_BASE) #define TIM9 ((TIM_TypeDef *) TIM9_BASE) #define TIM10 ((TIM_TypeDef *) TIM10_BASE) #define TIM11 ((TIM_TypeDef *) TIM11_BASE) #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE) #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE) #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE) #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE) #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE) #define GPIOG ((GPIO_TypeDef *) GPIOG_BASE) #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE) #define GPIOI ((GPIO_TypeDef *) GPIOI_BASE) #define CRC ((CRC_TypeDef *) CRC_BASE) #define RCC ((RCC_TypeDef *) RCC_BASE) #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE) #define DMA1 ((DMA_TypeDef *) DMA1_BASE) #define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE) #define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE) #define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE) #define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE) #define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE) #define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE) #define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE) #define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE) #define DMA2 ((DMA_TypeDef *) DMA2_BASE) #define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE) #define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE) #define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE) #define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE) #define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE) #define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE) #define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE) #define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE) #define RNG ((RNG_TypeDef *) RNG_BASE) #define FSMC_Bank1 ((FSMC_Bank1_TypeDef *) FSMC_Bank1_R_BASE) #define FSMC_Bank1E ((FSMC_Bank1E_TypeDef *) FSMC_Bank1E_R_BASE) #define FSMC_Bank2_3 ((FSMC_Bank2_3_TypeDef *) FSMC_Bank2_3_R_BASE) #define FSMC_Bank4 ((FSMC_Bank4_TypeDef *) FSMC_Bank4_R_BASE) #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE) #define USB_OTG_FS ((USB_OTG_GlobalTypeDef *) USB_OTG_FS_PERIPH_BASE) #define USB_OTG_HS ((USB_OTG_GlobalTypeDef *) USB_OTG_HS_PERIPH_BASE) /** * @} */ /** @addtogroup Exported_constants * @{ */ /** @addtogroup Peripheral_Registers_Bits_Definition * @{ */ /******************************************************************************/ /* Peripheral Registers_Bits_Definition */ /******************************************************************************/ /******************************************************************************/ /* */ /* Analog to Digital Converter */ /* */ /******************************************************************************/ /* * @brief Specific device feature definitions (not present on all devices in the STM32F4 serie) */ #define ADC_MULTIMODE_SUPPORT /*!
© Copyright (c) 2017 STMicroelectronics. * All rights reserved.
* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f4xx * @{ */ #ifndef __STM32F4xx_H #define __STM32F4xx_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** @addtogroup Library_configuration_section * @{ */ /** * @brief STM32 Family */ #if !defined (STM32F4) #define STM32F4 #endif /* STM32F4 */ /* Uncomment the line below according to the target STM32 device used in your application */ #if !defined (STM32F405xx) && !defined (STM32F415xx) && !defined (STM32F407xx) && !defined (STM32F417xx) && \ !defined (STM32F427xx) && !defined (STM32F437xx) && !defined (STM32F429xx) && !defined (STM32F439xx) && \ !defined (STM32F401xC) && !defined (STM32F401xE) && !defined (STM32F410Tx) && !defined (STM32F410Cx) && \ !defined (STM32F410Rx) && !defined (STM32F411xE) && !defined (STM32F446xx) && !defined (STM32F469xx) && \ !defined (STM32F479xx) && !defined (STM32F412Cx) && !defined (STM32F412Rx) && !defined (STM32F412Vx) && \ !defined (STM32F412Zx) && !defined (STM32F413xx) && !defined (STM32F423xx) /* #define STM32F405xx */ /*!< STM32F405RG, STM32F405VG and STM32F405ZG Devices */ /* #define STM32F415xx */ /*!< STM32F415RG, STM32F415VG and STM32F415ZG Devices */ /* #define STM32F407xx */ /*!< STM32F407VG, STM32F407VE, STM32F407ZG, STM32F407ZE, STM32F407IG and STM32F407IE Devices */ /* #define STM32F417xx */ /*!< STM32F417VG, STM32F417VE, STM32F417ZG, STM32F417ZE, STM32F417IG and STM32F417IE Devices */ /* #define STM32F427xx */ /*!< STM32F427VG, STM32F427VI, STM32F427ZG, STM32F427ZI, STM32F427IG and STM32F427II Devices */ /* #define STM32F437xx */ /*!< STM32F437VG, STM32F437VI, STM32F437ZG, STM32F437ZI, STM32F437IG and STM32F437II Devices */ /* #define STM32F429xx */ /*!< STM32F429VG, STM32F429VI, STM32F429ZG, STM32F429ZI, STM32F429BG, STM32F429BI, STM32F429NG, STM32F439NI, STM32F429IG and STM32F429II Devices */ /* #define STM32F439xx */ /*!< STM32F439VG, STM32F439VI, STM32F439ZG, STM32F439ZI, STM32F439BG, STM32F439BI, STM32F439NG, STM32F439NI, STM32F439IG and STM32F439II Devices */ /* #define STM32F401xC */ /*!< STM32F401CB, STM32F401CC, STM32F401RB, STM32F401RC, STM32F401VB and STM32F401VC Devices */ /* #define STM32F401xE */ /*!< STM32F401CD, STM32F401RD, STM32F401VD, STM32F401CE, STM32F401RE and STM32F401VE Devices */ /* #define STM32F410Tx */ /*!< STM32F410T8 and STM32F410TB Devices */ /* #define STM32F410Cx */ /*!< STM32F410C8 and STM32F410CB Devices */ /* #define STM32F410Rx */ /*!< STM32F410R8 and STM32F410RB Devices */ /* #define STM32F411xE */ /*!< STM32F411CC, STM32F411RC, STM32F411VC, STM32F411CE, STM32F411RE and STM32F411VE Devices */ /* #define STM32F446xx */ /*!< STM32F446MC, STM32F446ME, STM32F446RC, STM32F446RE, STM32F446VC, STM32F446VE, STM32F446ZC, and STM32F446ZE Devices */ /* #define STM32F469xx */ /*!< STM32F469AI, STM32F469II, STM32F469BI, STM32F469NI, STM32F469AG, STM32F469IG, STM32F469BG, STM32F469NG, STM32F469AE, STM32F469IE, STM32F469BE and STM32F469NE Devices */ /* #define STM32F479xx */ /*!< STM32F479AI, STM32F479II, STM32F479BI, STM32F479NI, STM32F479AG, STM32F479IG, STM32F479BG and STM32F479NG Devices */ /* #define STM32F412Cx */ /*!< STM32F412CEU and STM32F412CGU Devices */ /* #define STM32F412Zx */ /*!< STM32F412ZET, STM32F412ZGT, STM32F412ZEJ and STM32F412ZGJ Devices */ /* #define STM32F412Vx */ /*!< STM32F412VET, STM32F412VGT, STM32F412VEH and STM32F412VGH Devices */ /* #define STM32F412Rx */ /*!< STM32F412RET, STM32F412RGT, STM32F412REY and STM32F412RGY Devices */ /* #define STM32F413xx */ /*!< STM32F413CH, STM32F413MH, STM32F413RH, STM32F413VH, STM32F413ZH, STM32F413CG, STM32F413MG, STM32F413RG, STM32F413VG and STM32F413ZG Devices */ /* #define STM32F423xx */ /*!< STM32F423CH, STM32F423RH, STM32F423VH and STM32F423ZH Devices */ #endif /* Tip: To avoid modifying this file each time you need to switch between these devices, you can define the device in your toolchain compiler preprocessor. */ #if !defined (USE_HAL_DRIVER) /** * @brief Comment the line below if you will not use the peripherals drivers. In this case, these drivers will not be included and the application code will be based on direct access to peripherals registers */ /*#define USE_HAL_DRIVER */ #endif /* USE_HAL_DRIVER */ /** * @brief CMSIS version number V2.6.6 */ #define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */ #define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */ #define __STM32F4xx_CMSIS_VERSION_SUB2 (0x06U) /*!< [15:8] sub2 version */ #define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */ #define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\ |(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\ |(__STM32F4xx_CMSIS_VERSION_SUB2 << 8 )\ |(__STM32F4xx_CMSIS_VERSION)) /** * @} */ /** @addtogroup Device_Included * @{ */ #if defined(STM32F405xx) #include "stm32f405xx.h" #elif defined(STM32F415xx) #include "stm32f415xx.h" #elif defined(STM32F407xx) #include "stm32f407xx.h" #elif defined(STM32F417xx) #include "stm32f417xx.h" #elif defined(STM32F427xx) #include "stm32f427xx.h" #elif defined(STM32F437xx) #include "stm32f437xx.h" #elif defined(STM32F429xx) #include "stm32f429xx.h" #elif defined(STM32F439xx) #include "stm32f439xx.h" #elif defined(STM32F401xC) #include "stm32f401xc.h" #elif defined(STM32F401xE) #include "stm32f401xe.h" #elif defined(STM32F410Tx) #include "stm32f410tx.h" #elif defined(STM32F410Cx) #include "stm32f410cx.h" #elif defined(STM32F410Rx) #include "stm32f410rx.h" #elif defined(STM32F411xE) #include "stm32f411xe.h" #elif defined(STM32F446xx) #include "stm32f446xx.h" #elif defined(STM32F469xx) #include "stm32f469xx.h" #elif defined(STM32F479xx) #include "stm32f479xx.h" #elif defined(STM32F412Cx) #include "stm32f412cx.h" #elif defined(STM32F412Zx) #include "stm32f412zx.h" #elif defined(STM32F412Rx) #include "stm32f412rx.h" #elif defined(STM32F412Vx) #include "stm32f412vx.h" #elif defined(STM32F413xx) #include "stm32f413xx.h" #elif defined(STM32F423xx) #include "stm32f423xx.h" #else #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)" #endif /** * @} */ /** @addtogroup Exported_types * @{ */ typedef enum { RESET = 0U, SET = !RESET } FlagStatus, ITStatus; typedef enum { DISABLE = 0U, ENABLE = !DISABLE } FunctionalState; #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) typedef enum { SUCCESS = 0U, ERROR = !SUCCESS } ErrorStatus; /** * @} */ /** @addtogroup Exported_macro * @{ */ #define SET_BIT(REG, BIT) ((REG) |= (BIT)) #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) #define READ_BIT(REG, BIT) ((REG) & (BIT)) #define CLEAR_REG(REG) ((REG) = (0x0)) #define WRITE_REG(REG, VAL) ((REG) = (VAL)) #define READ_REG(REG) ((REG)) #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) /** * @} */ #if defined (USE_HAL_DRIVER) #include "stm32f4xx_hal.h" #endif /* USE_HAL_DRIVER */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __STM32F4xx_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h ================================================ /** ****************************************************************************** * @file system_stm32f4xx.h * @author MCD Application Team * @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices. ****************************************************************************** * @attention * *

© COPYRIGHT(c) 2017 STMicroelectronics

* * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f4xx_system * @{ */ /** * @brief Define to prevent recursive inclusion */ #ifndef __SYSTEM_STM32F4XX_H #define __SYSTEM_STM32F4XX_H #ifdef __cplusplus extern "C" { #endif /** @addtogroup STM32F4xx_System_Includes * @{ */ /** * @} */ /** @addtogroup STM32F4xx_System_Exported_types * @{ */ /* This variable is updated in three ways: 1) by calling CMSIS function SystemCoreClockUpdate() 2) by calling HAL API function HAL_RCC_GetSysClockFreq() 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency Note: If you use this function to configure the system clock; then there is no need to call the 2 first functions listed above, since SystemCoreClock variable is updated automatically. */ extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ /** * @} */ /** @addtogroup STM32F4xx_System_Exported_Constants * @{ */ /** * @} */ /** @addtogroup STM32F4xx_System_Exported_Macros * @{ */ /** * @} */ /** @addtogroup STM32F4xx_System_Exported_Functions * @{ */ extern void SystemInit(void); extern void SystemCoreClockUpdate(void); /** * @} */ #ifdef __cplusplus } #endif #endif /*__SYSTEM_STM32F4XX_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_armcc.h ================================================ /**************************************************************************//** * @file cmsis_armcc.h * @brief CMSIS compiler ARMCC (Arm Compiler 5) header file * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __CMSIS_ARMCC_H #define __CMSIS_ARMCC_H #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 400677) #error "Please use Arm Compiler Toolchain V4.0.677 or later!" #endif /* CMSIS compiler control architecture macros */ #if ((defined (__TARGET_ARCH_6_M ) && (__TARGET_ARCH_6_M == 1)) || \ (defined (__TARGET_ARCH_6S_M ) && (__TARGET_ARCH_6S_M == 1)) ) #define __ARM_ARCH_6M__ 1 #endif #if (defined (__TARGET_ARCH_7_M ) && (__TARGET_ARCH_7_M == 1)) #define __ARM_ARCH_7M__ 1 #endif #if (defined (__TARGET_ARCH_7E_M) && (__TARGET_ARCH_7E_M == 1)) #define __ARM_ARCH_7EM__ 1 #endif /* __ARM_ARCH_8M_BASE__ not applicable */ /* __ARM_ARCH_8M_MAIN__ not applicable */ /* CMSIS compiler specific defines */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE __inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static __inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE static __forceinline #endif #ifndef __NO_RETURN #define __NO_RETURN __declspec(noreturn) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed)) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT __packed struct #endif #ifndef __PACKED_UNION #define __PACKED_UNION __packed union #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #define __UNALIGNED_UINT32(x) (*((__packed uint32_t *)(x))) #endif #ifndef __UNALIGNED_UINT16_WRITE #define __UNALIGNED_UINT16_WRITE(addr, val) ((*((__packed uint16_t *)(addr))) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ #define __UNALIGNED_UINT16_READ(addr) (*((const __packed uint16_t *)(addr))) #endif #ifndef __UNALIGNED_UINT32_WRITE #define __UNALIGNED_UINT32_WRITE(addr, val) ((*((__packed uint32_t *)(addr))) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ #define __UNALIGNED_UINT32_READ(addr) (*((const __packed uint32_t *)(addr))) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions @{ */ /** \brief Enable IRQ Interrupts \details Enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __enable_irq(); */ /** \brief Disable IRQ Interrupts \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __disable_irq(); */ /** \brief Get Control Register \details Returns the content of the Control Register. \return Control Register value */ __STATIC_INLINE uint32_t __get_CONTROL(void) { register uint32_t __regControl __ASM("control"); return(__regControl); } /** \brief Set Control Register \details Writes the given value to the Control Register. \param [in] control Control Register value to set */ __STATIC_INLINE void __set_CONTROL(uint32_t control) { register uint32_t __regControl __ASM("control"); __regControl = control; } /** \brief Get IPSR Register \details Returns the content of the IPSR Register. \return IPSR Register value */ __STATIC_INLINE uint32_t __get_IPSR(void) { register uint32_t __regIPSR __ASM("ipsr"); return(__regIPSR); } /** \brief Get APSR Register \details Returns the content of the APSR Register. \return APSR Register value */ __STATIC_INLINE uint32_t __get_APSR(void) { register uint32_t __regAPSR __ASM("apsr"); return(__regAPSR); } /** \brief Get xPSR Register \details Returns the content of the xPSR Register. \return xPSR Register value */ __STATIC_INLINE uint32_t __get_xPSR(void) { register uint32_t __regXPSR __ASM("xpsr"); return(__regXPSR); } /** \brief Get Process Stack Pointer \details Returns the current value of the Process Stack Pointer (PSP). \return PSP Register value */ __STATIC_INLINE uint32_t __get_PSP(void) { register uint32_t __regProcessStackPointer __ASM("psp"); return(__regProcessStackPointer); } /** \brief Set Process Stack Pointer \details Assigns the given value to the Process Stack Pointer (PSP). \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) { register uint32_t __regProcessStackPointer __ASM("psp"); __regProcessStackPointer = topOfProcStack; } /** \brief Get Main Stack Pointer \details Returns the current value of the Main Stack Pointer (MSP). \return MSP Register value */ __STATIC_INLINE uint32_t __get_MSP(void) { register uint32_t __regMainStackPointer __ASM("msp"); return(__regMainStackPointer); } /** \brief Set Main Stack Pointer \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) { register uint32_t __regMainStackPointer __ASM("msp"); __regMainStackPointer = topOfMainStack; } /** \brief Get Priority Mask \details Returns the current state of the priority mask bit from the Priority Mask Register. \return Priority Mask value */ __STATIC_INLINE uint32_t __get_PRIMASK(void) { register uint32_t __regPriMask __ASM("primask"); return(__regPriMask); } /** \brief Set Priority Mask \details Assigns the given value to the Priority Mask Register. \param [in] priMask Priority Mask */ __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) { register uint32_t __regPriMask __ASM("primask"); __regPriMask = (priMask); } #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) /** \brief Enable FIQ \details Enables FIQ interrupts by clearing the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __enable_fault_irq __enable_fiq /** \brief Disable FIQ \details Disables FIQ interrupts by setting the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __disable_fault_irq __disable_fiq /** \brief Get Base Priority \details Returns the current value of the Base Priority register. \return Base Priority register value */ __STATIC_INLINE uint32_t __get_BASEPRI(void) { register uint32_t __regBasePri __ASM("basepri"); return(__regBasePri); } /** \brief Set Base Priority \details Assigns the given value to the Base Priority register. \param [in] basePri Base Priority value to set */ __STATIC_INLINE void __set_BASEPRI(uint32_t basePri) { register uint32_t __regBasePri __ASM("basepri"); __regBasePri = (basePri & 0xFFU); } /** \brief Set Base Priority with condition \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. \param [in] basePri Base Priority value to set */ __STATIC_INLINE void __set_BASEPRI_MAX(uint32_t basePri) { register uint32_t __regBasePriMax __ASM("basepri_max"); __regBasePriMax = (basePri & 0xFFU); } /** \brief Get Fault Mask \details Returns the current value of the Fault Mask register. \return Fault Mask register value */ __STATIC_INLINE uint32_t __get_FAULTMASK(void) { register uint32_t __regFaultMask __ASM("faultmask"); return(__regFaultMask); } /** \brief Set Fault Mask \details Assigns the given value to the Fault Mask register. \param [in] faultMask Fault Mask value to set */ __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) { register uint32_t __regFaultMask __ASM("faultmask"); __regFaultMask = (faultMask & (uint32_t)1U); } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ /** \brief Get FPSCR \details Returns the current value of the Floating Point Status/Control register. \return Floating Point Status/Control register value */ __STATIC_INLINE uint32_t __get_FPSCR(void) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) register uint32_t __regfpscr __ASM("fpscr"); return(__regfpscr); #else return(0U); #endif } /** \brief Set FPSCR \details Assigns the given value to the Floating Point Status/Control register. \param [in] fpscr Floating Point Status/Control value to set */ __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) register uint32_t __regfpscr __ASM("fpscr"); __regfpscr = (fpscr); #else (void)fpscr; #endif } /*@} end of CMSIS_Core_RegAccFunctions */ /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface Access to dedicated instructions @{ */ /** \brief No Operation \details No Operation does nothing. This instruction can be used for code alignment purposes. */ #define __NOP __nop /** \brief Wait For Interrupt \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. */ #define __WFI __wfi /** \brief Wait For Event \details Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs. */ #define __WFE __wfe /** \brief Send Event \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. */ #define __SEV __sev /** \brief Instruction Synchronization Barrier \details Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. */ #define __ISB() do {\ __schedule_barrier();\ __isb(0xF);\ __schedule_barrier();\ } while (0U) /** \brief Data Synchronization Barrier \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ #define __DSB() do {\ __schedule_barrier();\ __dsb(0xF);\ __schedule_barrier();\ } while (0U) /** \brief Data Memory Barrier \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ #define __DMB() do {\ __schedule_barrier();\ __dmb(0xF);\ __schedule_barrier();\ } while (0U) /** \brief Reverse byte order (32 bit) \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. \param [in] value Value to reverse \return Reversed value */ #define __REV __rev /** \brief Reverse byte order (16 bit) \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. \param [in] value Value to reverse \return Reversed value */ #ifndef __NO_EMBEDDED_ASM __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) { rev16 r0, r0 bx lr } #endif /** \brief Reverse byte order (16 bit) \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. \param [in] value Value to reverse \return Reversed value */ #ifndef __NO_EMBEDDED_ASM __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int16_t __REVSH(int16_t value) { revsh r0, r0 bx lr } #endif /** \brief Rotate Right in unsigned value (32 bit) \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. \param [in] op1 Value to rotate \param [in] op2 Number of Bits to rotate \return Rotated value */ #define __ROR __ror /** \brief Breakpoint \details Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached. \param [in] value is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint. */ #define __BKPT(value) __breakpoint(value) /** \brief Reverse bit order of value \details Reverses the bit order of the given value. \param [in] value Value to reverse \return Reversed value */ #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) #define __RBIT __rbit #else __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value) { uint32_t result; uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */ result = value; /* r will be reversed bits of v; first get LSB of v */ for (value >>= 1U; value != 0U; value >>= 1U) { result <<= 1U; result |= value & 1U; s--; } result <<= s; /* shift when v's highest bits are zero */ return result; } #endif /** \brief Count leading zeros \details Counts the number of leading zeros of a data value. \param [in] value Value to count the leading zeros \return number of leading zeros in value */ #define __CLZ __clz #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) /** \brief LDR Exclusive (8 bit) \details Executes a exclusive LDR instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) #else #define __LDREXB(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint8_t ) __ldrex(ptr)) _Pragma("pop") #endif /** \brief LDR Exclusive (16 bit) \details Executes a exclusive LDR instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) #else #define __LDREXH(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint16_t) __ldrex(ptr)) _Pragma("pop") #endif /** \brief LDR Exclusive (32 bit) \details Executes a exclusive LDR instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) #else #define __LDREXW(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint32_t ) __ldrex(ptr)) _Pragma("pop") #endif /** \brief STR Exclusive (8 bit) \details Executes a exclusive STR instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __STREXB(value, ptr) __strex(value, ptr) #else #define __STREXB(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") #endif /** \brief STR Exclusive (16 bit) \details Executes a exclusive STR instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __STREXH(value, ptr) __strex(value, ptr) #else #define __STREXH(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") #endif /** \brief STR Exclusive (32 bit) \details Executes a exclusive STR instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) #define __STREXW(value, ptr) __strex(value, ptr) #else #define __STREXW(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") #endif /** \brief Remove the exclusive lock \details Removes the exclusive lock which is created by LDREX. */ #define __CLREX __clrex /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ #define __SSAT __ssat /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ #define __USAT __usat /** \brief Rotate Right with Extend (32 bit) \details Moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring. \param [in] value Value to rotate \return Rotated value */ #ifndef __NO_EMBEDDED_ASM __attribute__((section(".rrx_text"))) __STATIC_INLINE __ASM uint32_t __RRX(uint32_t value) { rrx r0, r0 bx lr } #endif /** \brief LDRT Unprivileged (8 bit) \details Executes a Unprivileged LDRT instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #define __LDRBT(ptr) ((uint8_t ) __ldrt(ptr)) /** \brief LDRT Unprivileged (16 bit) \details Executes a Unprivileged LDRT instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #define __LDRHT(ptr) ((uint16_t) __ldrt(ptr)) /** \brief LDRT Unprivileged (32 bit) \details Executes a Unprivileged LDRT instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #define __LDRT(ptr) ((uint32_t ) __ldrt(ptr)) /** \brief STRT Unprivileged (8 bit) \details Executes a Unprivileged STRT instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ #define __STRBT(value, ptr) __strt(value, ptr) /** \brief STRT Unprivileged (16 bit) \details Executes a Unprivileged STRT instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ #define __STRHT(value, ptr) __strt(value, ptr) /** \brief STRT Unprivileged (32 bit) \details Executes a Unprivileged STRT instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ #define __STRT(value, ptr) __strt(value, ptr) #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ __attribute__((always_inline)) __STATIC_INLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ __attribute__((always_inline)) __STATIC_INLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /* ################### Compiler specific Intrinsics ########################### */ /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics Access to dedicated SIMD instructions @{ */ #if ((defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) #define __SADD8 __sadd8 #define __QADD8 __qadd8 #define __SHADD8 __shadd8 #define __UADD8 __uadd8 #define __UQADD8 __uqadd8 #define __UHADD8 __uhadd8 #define __SSUB8 __ssub8 #define __QSUB8 __qsub8 #define __SHSUB8 __shsub8 #define __USUB8 __usub8 #define __UQSUB8 __uqsub8 #define __UHSUB8 __uhsub8 #define __SADD16 __sadd16 #define __QADD16 __qadd16 #define __SHADD16 __shadd16 #define __UADD16 __uadd16 #define __UQADD16 __uqadd16 #define __UHADD16 __uhadd16 #define __SSUB16 __ssub16 #define __QSUB16 __qsub16 #define __SHSUB16 __shsub16 #define __USUB16 __usub16 #define __UQSUB16 __uqsub16 #define __UHSUB16 __uhsub16 #define __SASX __sasx #define __QASX __qasx #define __SHASX __shasx #define __UASX __uasx #define __UQASX __uqasx #define __UHASX __uhasx #define __SSAX __ssax #define __QSAX __qsax #define __SHSAX __shsax #define __USAX __usax #define __UQSAX __uqsax #define __UHSAX __uhsax #define __USAD8 __usad8 #define __USADA8 __usada8 #define __SSAT16 __ssat16 #define __USAT16 __usat16 #define __UXTB16 __uxtb16 #define __UXTAB16 __uxtab16 #define __SXTB16 __sxtb16 #define __SXTAB16 __sxtab16 #define __SMUAD __smuad #define __SMUADX __smuadx #define __SMLAD __smlad #define __SMLADX __smladx #define __SMLALD __smlald #define __SMLALDX __smlaldx #define __SMUSD __smusd #define __SMUSDX __smusdx #define __SMLSD __smlsd #define __SMLSDX __smlsdx #define __SMLSLD __smlsld #define __SMLSLDX __smlsldx #define __SEL __sel #define __QADD __qadd #define __QSUB __qsub #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) #define __SMMLA(ARG1,ARG2,ARG3) ( (int32_t)((((int64_t)(ARG1) * (ARG2)) + \ ((int64_t)(ARG3) << 32U) ) >> 32U)) #endif /* ((defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ /*@} end of group CMSIS_SIMD_intrinsics */ #endif /* __CMSIS_ARMCC_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_armclang.h ================================================ /**************************************************************************//** * @file cmsis_armclang.h * @brief CMSIS compiler armclang (Arm Compiler 6) header file * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*lint -esym(9058, IRQn)*/ /* disable MISRA 2012 Rule 2.4 for IRQn */ #ifndef __CMSIS_ARMCLANG_H #define __CMSIS_ARMCLANG_H #pragma clang system_header /* treat file as system include file */ #ifndef __ARM_COMPAT_H #include /* Compatibility header for Arm Compiler 5 intrinsics */ #endif /* CMSIS compiler specific defines */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE __inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static __inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((__noreturn__)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed, aligned(1))) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32 */ struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT16_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_WRITE */ __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT16_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_READ */ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_WRITE */ __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_READ */ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions @{ */ /** \brief Enable IRQ Interrupts \details Enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __enable_irq(); see arm_compat.h */ /** \brief Disable IRQ Interrupts \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __disable_irq(); see arm_compat.h */ /** \brief Get Control Register \details Returns the content of the Control Register. \return Control Register value */ __STATIC_FORCEINLINE uint32_t __get_CONTROL(void) { uint32_t result; __ASM volatile ("MRS %0, control" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Control Register (non-secure) \details Returns the content of the non-secure Control Register when in secure mode. \return non-secure Control Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) { uint32_t result; __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Control Register \details Writes the given value to the Control Register. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) { __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Control Register (non-secure) \details Writes the given value to the non-secure Control Register when in secure state. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) { __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); } #endif /** \brief Get IPSR Register \details Returns the content of the IPSR Register. \return IPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_IPSR(void) { uint32_t result; __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); return(result); } /** \brief Get APSR Register \details Returns the content of the APSR Register. \return APSR Register value */ __STATIC_FORCEINLINE uint32_t __get_APSR(void) { uint32_t result; __ASM volatile ("MRS %0, apsr" : "=r" (result) ); return(result); } /** \brief Get xPSR Register \details Returns the content of the xPSR Register. \return xPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_xPSR(void) { uint32_t result; __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); return(result); } /** \brief Get Process Stack Pointer \details Returns the current value of the Process Stack Pointer (PSP). \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __get_PSP(void) { uint32_t result; __ASM volatile ("MRS %0, psp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer (non-secure) \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Process Stack Pointer \details Assigns the given value to the Process Stack Pointer (PSP). \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) { __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) { __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); } #endif /** \brief Get Main Stack Pointer \details Returns the current value of the Main Stack Pointer (MSP). \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __get_MSP(void) { uint32_t result; __ASM volatile ("MRS %0, msp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer (non-secure) \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Main Stack Pointer \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) { __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer (non-secure) \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) { __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); } #endif #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Stack Pointer (non-secure) \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. \return SP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); return(result); } /** \brief Set Stack Pointer (non-secure) \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. \param [in] topOfStack Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) { __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); } #endif /** \brief Get Priority Mask \details Returns the current state of the priority mask bit from the Priority Mask Register. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) { uint32_t result; __ASM volatile ("MRS %0, primask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Priority Mask (non-secure) \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, primask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Priority Mask \details Assigns the given value to the Priority Mask Register. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) { __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Priority Mask (non-secure) \details Assigns the given value to the non-secure Priority Mask Register when in secure state. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) { __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); } #endif #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Enable FIQ \details Enables FIQ interrupts by clearing the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __enable_fault_irq __enable_fiq /* see arm_compat.h */ /** \brief Disable FIQ \details Disables FIQ interrupts by setting the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __disable_fault_irq __disable_fiq /* see arm_compat.h */ /** \brief Get Base Priority \details Returns the current value of the Base Priority register. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) { uint32_t result; __ASM volatile ("MRS %0, basepri" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Base Priority (non-secure) \details Returns the current value of the non-secure Base Priority register when in secure state. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) { uint32_t result; __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Base Priority \details Assigns the given value to the Base Priority register. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) { __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Base Priority (non-secure) \details Assigns the given value to the non-secure Base Priority register when in secure state. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) { __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); } #endif /** \brief Set Base Priority with condition \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) { __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); } /** \brief Get Fault Mask \details Returns the current value of the Fault Mask register. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Fault Mask (non-secure) \details Returns the current value of the non-secure Fault Mask register when in secure state. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Fault Mask \details Assigns the given value to the Fault Mask register. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) { __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Fault Mask (non-secure) \details Assigns the given value to the non-secure Fault Mask register when in secure state. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) { __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); } #endif #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Get Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); #endif } #endif /** \brief Get Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. \param [in] MainStackPtrLimit Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); #endif } #endif #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /** \brief Get FPSCR \details Returns the current value of the Floating Point Status/Control register. \return Floating Point Status/Control register value */ #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #define __get_FPSCR (uint32_t)__builtin_arm_get_fpscr #else #define __get_FPSCR() ((uint32_t)0U) #endif /** \brief Set FPSCR \details Assigns the given value to the Floating Point Status/Control register. \param [in] fpscr Floating Point Status/Control value to set */ #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #define __set_FPSCR __builtin_arm_set_fpscr #else #define __set_FPSCR(x) ((void)(x)) #endif /*@} end of CMSIS_Core_RegAccFunctions */ /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface Access to dedicated instructions @{ */ /* Define macros for porting to both thumb1 and thumb2. * For thumb1, use low register (r0-r7), specified by constraint "l" * Otherwise, use general registers, specified by constraint "r" */ #if defined (__thumb__) && !defined (__thumb2__) #define __CMSIS_GCC_OUT_REG(r) "=l" (r) #define __CMSIS_GCC_USE_REG(r) "l" (r) #else #define __CMSIS_GCC_OUT_REG(r) "=r" (r) #define __CMSIS_GCC_USE_REG(r) "r" (r) #endif /** \brief No Operation \details No Operation does nothing. This instruction can be used for code alignment purposes. */ #define __NOP __builtin_arm_nop /** \brief Wait For Interrupt \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. */ #define __WFI __builtin_arm_wfi /** \brief Wait For Event \details Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs. */ #define __WFE __builtin_arm_wfe /** \brief Send Event \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. */ #define __SEV __builtin_arm_sev /** \brief Instruction Synchronization Barrier \details Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. */ #define __ISB() __builtin_arm_isb(0xF); /** \brief Data Synchronization Barrier \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ #define __DSB() __builtin_arm_dsb(0xF); /** \brief Data Memory Barrier \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ #define __DMB() __builtin_arm_dmb(0xF); /** \brief Reverse byte order (32 bit) \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. \param [in] value Value to reverse \return Reversed value */ #define __REV(value) __builtin_bswap32(value) /** \brief Reverse byte order (16 bit) \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. \param [in] value Value to reverse \return Reversed value */ #define __REV16(value) __ROR(__REV(value), 16) /** \brief Reverse byte order (16 bit) \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. \param [in] value Value to reverse \return Reversed value */ #define __REVSH(value) (int16_t)__builtin_bswap16(value) /** \brief Rotate Right in unsigned value (32 bit) \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. \param [in] op1 Value to rotate \param [in] op2 Number of Bits to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) { op2 %= 32U; if (op2 == 0U) { return op1; } return (op1 >> op2) | (op1 << (32U - op2)); } /** \brief Breakpoint \details Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached. \param [in] value is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint. */ #define __BKPT(value) __ASM volatile ("bkpt "#value) /** \brief Reverse bit order of value \details Reverses the bit order of the given value. \param [in] value Value to reverse \return Reversed value */ #define __RBIT __builtin_arm_rbit /** \brief Count leading zeros \details Counts the number of leading zeros of a data value. \param [in] value Value to count the leading zeros \return number of leading zeros in value */ #define __CLZ (uint8_t)__builtin_clz #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief LDR Exclusive (8 bit) \details Executes a exclusive LDR instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #define __LDREXB (uint8_t)__builtin_arm_ldrex /** \brief LDR Exclusive (16 bit) \details Executes a exclusive LDR instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #define __LDREXH (uint16_t)__builtin_arm_ldrex /** \brief LDR Exclusive (32 bit) \details Executes a exclusive LDR instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #define __LDREXW (uint32_t)__builtin_arm_ldrex /** \brief STR Exclusive (8 bit) \details Executes a exclusive STR instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXB (uint32_t)__builtin_arm_strex /** \brief STR Exclusive (16 bit) \details Executes a exclusive STR instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXH (uint32_t)__builtin_arm_strex /** \brief STR Exclusive (32 bit) \details Executes a exclusive STR instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXW (uint32_t)__builtin_arm_strex /** \brief Remove the exclusive lock \details Removes the exclusive lock which is created by LDREX. */ #define __CLREX __builtin_arm_clrex #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ #define __SSAT __builtin_arm_ssat /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ #define __USAT __builtin_arm_usat /** \brief Rotate Right with Extend (32 bit) \details Moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring. \param [in] value Value to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) { uint32_t result; __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return(result); } /** \brief LDRT Unprivileged (8 bit) \details Executes a Unprivileged LDRT instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (16 bit) \details Executes a Unprivileged LDRT instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (32 bit) \details Executes a Unprivileged LDRT instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief STRT Unprivileged (8 bit) \details Executes a Unprivileged STRT instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (16 bit) \details Executes a Unprivileged STRT instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (32 bit) \details Executes a Unprivileged STRT instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); } #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Load-Acquire (8 bit) \details Executes a LDAB instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire (16 bit) \details Executes a LDAH instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire (32 bit) \details Executes a LDA instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release (8 bit) \details Executes a STLB instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (16 bit) \details Executes a STLH instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (32 bit) \details Executes a STL instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Load-Acquire Exclusive (8 bit) \details Executes a LDAB exclusive instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #define __LDAEXB (uint8_t)__builtin_arm_ldaex /** \brief Load-Acquire Exclusive (16 bit) \details Executes a LDAH exclusive instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #define __LDAEXH (uint16_t)__builtin_arm_ldaex /** \brief Load-Acquire Exclusive (32 bit) \details Executes a LDA exclusive instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #define __LDAEX (uint32_t)__builtin_arm_ldaex /** \brief Store-Release Exclusive (8 bit) \details Executes a STLB exclusive instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEXB (uint32_t)__builtin_arm_stlex /** \brief Store-Release Exclusive (16 bit) \details Executes a STLH exclusive instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEXH (uint32_t)__builtin_arm_stlex /** \brief Store-Release Exclusive (32 bit) \details Executes a STL exclusive instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEX (uint32_t)__builtin_arm_stlex #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /* ################### Compiler specific Intrinsics ########################### */ /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics Access to dedicated SIMD instructions @{ */ #if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) __STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } #define __SSAT16(ARG1,ARG2) \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) #define __USAT16(ARG1,ARG2) \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) __STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } #if 0 #define __PKHBT(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #define __PKHTB(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ if (ARG3 == 0) \ __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ else \ __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #endif #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) { int32_t result; __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); return(result); } #endif /* (__ARM_FEATURE_DSP == 1) */ /*@} end of group CMSIS_SIMD_intrinsics */ #endif /* __CMSIS_ARMCLANG_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_compiler.h ================================================ /**************************************************************************//** * @file cmsis_compiler.h * @brief CMSIS compiler generic header file * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __CMSIS_COMPILER_H #define __CMSIS_COMPILER_H #include /* * Arm Compiler 4/5 */ #if defined ( __CC_ARM ) #include "cmsis_armcc.h" /* * Arm Compiler 6 (armclang) */ #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #include "cmsis_armclang.h" /* * GNU Compiler */ #elif defined ( __GNUC__ ) #include "cmsis_gcc.h" /* * IAR Compiler */ #elif defined ( __ICCARM__ ) #include /* * TI Arm Compiler */ #elif defined ( __TI_ARM__ ) #include #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((noreturn)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed)) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed)) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed)) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif /* * TASKING Compiler */ #elif defined ( __TASKING__ ) /* * The CMSIS functions have been implemented as intrinsics in the compiler. * Please use "carm -?i" to get an up to date list of all intrinsics, * Including the CMSIS ones. */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((noreturn)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __packed__ #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __packed__ #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __packed__ #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ struct __packed__ T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __align(x) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif /* * COSMIC Compiler */ #elif defined ( __CSMC__ ) #include #ifndef __ASM #define __ASM _asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN // NO RETURN is automatically detected hence no warning here #define __NO_RETURN #endif #ifndef __USED #warning No compiler specific solution for __USED. __USED is ignored. #define __USED #endif #ifndef __WEAK #define __WEAK __weak #endif #ifndef __PACKED #define __PACKED @packed #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT @packed struct #endif #ifndef __PACKED_UNION #define __PACKED_UNION @packed union #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ @packed struct T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored. #define __ALIGNED(x) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif #else #error Unknown compiler. #endif #endif /* __CMSIS_COMPILER_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_gcc.h ================================================ /**************************************************************************//** * @file cmsis_gcc.h * @brief CMSIS compiler GCC header file * @version V5.0.4 * @date 09. April 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __CMSIS_GCC_H #define __CMSIS_GCC_H /* ignore some GCC warnings */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsign-conversion" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wunused-parameter" /* Fallback for __has_builtin */ #ifndef __has_builtin #define __has_builtin(x) (0) #endif /* CMSIS compiler specific defines */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((__noreturn__)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed, aligned(1))) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions @{ */ /** \brief Enable IRQ Interrupts \details Enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __enable_irq(void) { __ASM volatile ("cpsie i" : : : "memory"); } /** \brief Disable IRQ Interrupts \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); } /** \brief Get Control Register \details Returns the content of the Control Register. \return Control Register value */ __STATIC_FORCEINLINE uint32_t __get_CONTROL(void) { uint32_t result; __ASM volatile ("MRS %0, control" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Control Register (non-secure) \details Returns the content of the non-secure Control Register when in secure mode. \return non-secure Control Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) { uint32_t result; __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Control Register \details Writes the given value to the Control Register. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) { __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Control Register (non-secure) \details Writes the given value to the non-secure Control Register when in secure state. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) { __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); } #endif /** \brief Get IPSR Register \details Returns the content of the IPSR Register. \return IPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_IPSR(void) { uint32_t result; __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); return(result); } /** \brief Get APSR Register \details Returns the content of the APSR Register. \return APSR Register value */ __STATIC_FORCEINLINE uint32_t __get_APSR(void) { uint32_t result; __ASM volatile ("MRS %0, apsr" : "=r" (result) ); return(result); } /** \brief Get xPSR Register \details Returns the content of the xPSR Register. \return xPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_xPSR(void) { uint32_t result; __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); return(result); } /** \brief Get Process Stack Pointer \details Returns the current value of the Process Stack Pointer (PSP). \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __get_PSP(void) { uint32_t result; __ASM volatile ("MRS %0, psp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer (non-secure) \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Process Stack Pointer \details Assigns the given value to the Process Stack Pointer (PSP). \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) { __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) { __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); } #endif /** \brief Get Main Stack Pointer \details Returns the current value of the Main Stack Pointer (MSP). \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __get_MSP(void) { uint32_t result; __ASM volatile ("MRS %0, msp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer (non-secure) \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Main Stack Pointer \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) { __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer (non-secure) \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) { __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); } #endif #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Stack Pointer (non-secure) \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. \return SP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); return(result); } /** \brief Set Stack Pointer (non-secure) \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. \param [in] topOfStack Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) { __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); } #endif /** \brief Get Priority Mask \details Returns the current state of the priority mask bit from the Priority Mask Register. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) { uint32_t result; __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory"); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Priority Mask (non-secure) \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory"); return(result); } #endif /** \brief Set Priority Mask \details Assigns the given value to the Priority Mask Register. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) { __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Priority Mask (non-secure) \details Assigns the given value to the non-secure Priority Mask Register when in secure state. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) { __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); } #endif #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Enable FIQ \details Enables FIQ interrupts by clearing the F-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __enable_fault_irq(void) { __ASM volatile ("cpsie f" : : : "memory"); } /** \brief Disable FIQ \details Disables FIQ interrupts by setting the F-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_fault_irq(void) { __ASM volatile ("cpsid f" : : : "memory"); } /** \brief Get Base Priority \details Returns the current value of the Base Priority register. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) { uint32_t result; __ASM volatile ("MRS %0, basepri" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Base Priority (non-secure) \details Returns the current value of the non-secure Base Priority register when in secure state. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) { uint32_t result; __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Base Priority \details Assigns the given value to the Base Priority register. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) { __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Base Priority (non-secure) \details Assigns the given value to the non-secure Base Priority register when in secure state. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) { __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); } #endif /** \brief Set Base Priority with condition \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) { __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); } /** \brief Get Fault Mask \details Returns the current value of the Fault Mask register. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Fault Mask (non-secure) \details Returns the current value of the non-secure Fault Mask register when in secure state. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Fault Mask \details Assigns the given value to the Fault Mask register. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) { __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Fault Mask (non-secure) \details Assigns the given value to the non-secure Fault Mask register when in secure state. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) { __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); } #endif #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Get Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); #endif } #endif /** \brief Get Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. \param [in] MainStackPtrLimit Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); #endif } #endif #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /** \brief Get FPSCR \details Returns the current value of the Floating Point Status/Control register. \return Floating Point Status/Control register value */ __STATIC_FORCEINLINE uint32_t __get_FPSCR(void) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #if __has_builtin(__builtin_arm_get_fpscr) // Re-enable using built-in when GCC has been fixed // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ return __builtin_arm_get_fpscr(); #else uint32_t result; __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); return(result); #endif #else return(0U); #endif } /** \brief Set FPSCR \details Assigns the given value to the Floating Point Status/Control register. \param [in] fpscr Floating Point Status/Control value to set */ __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #if __has_builtin(__builtin_arm_set_fpscr) // Re-enable using built-in when GCC has been fixed // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ __builtin_arm_set_fpscr(fpscr); #else __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory"); #endif #else (void)fpscr; #endif } /*@} end of CMSIS_Core_RegAccFunctions */ /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface Access to dedicated instructions @{ */ /* Define macros for porting to both thumb1 and thumb2. * For thumb1, use low register (r0-r7), specified by constraint "l" * Otherwise, use general registers, specified by constraint "r" */ #if defined (__thumb__) && !defined (__thumb2__) #define __CMSIS_GCC_OUT_REG(r) "=l" (r) #define __CMSIS_GCC_RW_REG(r) "+l" (r) #define __CMSIS_GCC_USE_REG(r) "l" (r) #else #define __CMSIS_GCC_OUT_REG(r) "=r" (r) #define __CMSIS_GCC_RW_REG(r) "+r" (r) #define __CMSIS_GCC_USE_REG(r) "r" (r) #endif /** \brief No Operation \details No Operation does nothing. This instruction can be used for code alignment purposes. */ #define __NOP() __ASM volatile ("nop") /** \brief Wait For Interrupt \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. */ #define __WFI() __ASM volatile ("wfi") /** \brief Wait For Event \details Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs. */ #define __WFE() __ASM volatile ("wfe") /** \brief Send Event \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. */ #define __SEV() __ASM volatile ("sev") /** \brief Instruction Synchronization Barrier \details Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. */ __STATIC_FORCEINLINE void __ISB(void) { __ASM volatile ("isb 0xF":::"memory"); } /** \brief Data Synchronization Barrier \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ __STATIC_FORCEINLINE void __DSB(void) { __ASM volatile ("dsb 0xF":::"memory"); } /** \brief Data Memory Barrier \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ __STATIC_FORCEINLINE void __DMB(void) { __ASM volatile ("dmb 0xF":::"memory"); } /** \brief Reverse byte order (32 bit) \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __REV(uint32_t value) { #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) return __builtin_bswap32(value); #else uint32_t result; __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; #endif } /** \brief Reverse byte order (16 bit) \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value) { uint32_t result; __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; } /** \brief Reverse byte order (16 bit) \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE int16_t __REVSH(int16_t value) { #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) return (int16_t)__builtin_bswap16(value); #else int16_t result; __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; #endif } /** \brief Rotate Right in unsigned value (32 bit) \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. \param [in] op1 Value to rotate \param [in] op2 Number of Bits to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) { op2 %= 32U; if (op2 == 0U) { return op1; } return (op1 >> op2) | (op1 << (32U - op2)); } /** \brief Breakpoint \details Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached. \param [in] value is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint. */ #define __BKPT(value) __ASM volatile ("bkpt "#value) /** \brief Reverse bit order of value \details Reverses the bit order of the given value. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value) { uint32_t result; #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); #else uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */ result = value; /* r will be reversed bits of v; first get LSB of v */ for (value >>= 1U; value != 0U; value >>= 1U) { result <<= 1U; result |= value & 1U; s--; } result <<= s; /* shift when v's highest bits are zero */ #endif return result; } /** \brief Count leading zeros \details Counts the number of leading zeros of a data value. \param [in] value Value to count the leading zeros \return number of leading zeros in value */ #define __CLZ (uint8_t)__builtin_clz #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief LDR Exclusive (8 bit) \details Executes a exclusive LDR instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); #endif return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDR Exclusive (16 bit) \details Executes a exclusive LDR instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); #endif return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDR Exclusive (32 bit) \details Executes a exclusive LDR instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) { uint32_t result; __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); return(result); } /** \brief STR Exclusive (8 bit) \details Executes a exclusive STR instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) { uint32_t result; __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); return(result); } /** \brief STR Exclusive (16 bit) \details Executes a exclusive STR instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) { uint32_t result; __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); return(result); } /** \brief STR Exclusive (32 bit) \details Executes a exclusive STR instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) { uint32_t result; __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); return(result); } /** \brief Remove the exclusive lock \details Removes the exclusive lock which is created by LDREX. */ __STATIC_FORCEINLINE void __CLREX(void) { __ASM volatile ("clrex" ::: "memory"); } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Signed Saturate \details Saturates a signed value. \param [in] ARG1 Value to be saturated \param [in] ARG2 Bit position to saturate to (1..32) \return Saturated value */ #define __SSAT(ARG1,ARG2) \ __extension__ \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] ARG1 Value to be saturated \param [in] ARG2 Bit position to saturate to (0..31) \return Saturated value */ #define __USAT(ARG1,ARG2) \ __extension__ \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) /** \brief Rotate Right with Extend (32 bit) \details Moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring. \param [in] value Value to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) { uint32_t result; __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return(result); } /** \brief LDRT Unprivileged (8 bit) \details Executes a Unprivileged LDRT instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrbt %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); #endif return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (16 bit) \details Executes a Unprivileged LDRT instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrht %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); #endif return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (32 bit) \details Executes a Unprivileged LDRT instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief STRT Unprivileged (8 bit) \details Executes a Unprivileged STRT instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (16 bit) \details Executes a Unprivileged STRT instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (32 bit) \details Executes a Unprivileged STRT instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); } #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Load-Acquire (8 bit) \details Executes a LDAB instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire (16 bit) \details Executes a LDAH instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire (32 bit) \details Executes a LDA instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release (8 bit) \details Executes a STLB instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (16 bit) \details Executes a STLH instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (32 bit) \details Executes a STL instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Load-Acquire Exclusive (8 bit) \details Executes a LDAB exclusive instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAEXB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldaexb %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire Exclusive (16 bit) \details Executes a LDAH exclusive instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAEXH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldaexh %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire Exclusive (32 bit) \details Executes a LDA exclusive instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDAEX(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldaex %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release Exclusive (8 bit) \details Executes a STLB exclusive instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("stlexb %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } /** \brief Store-Release Exclusive (16 bit) \details Executes a STLH exclusive instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("stlexh %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } /** \brief Store-Release Exclusive (32 bit) \details Executes a STL exclusive instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("stlex %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /* ################### Compiler specific Intrinsics ########################### */ /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics Access to dedicated SIMD instructions @{ */ #if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) __STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } #define __SSAT16(ARG1,ARG2) \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) #define __USAT16(ARG1,ARG2) \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) __STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } #if 0 #define __PKHBT(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #define __PKHTB(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ if (ARG3 == 0) \ __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ else \ __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #endif #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) { int32_t result; __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); return(result); } #endif /* (__ARM_FEATURE_DSP == 1) */ /*@} end of group CMSIS_SIMD_intrinsics */ #pragma GCC diagnostic pop #endif /* __CMSIS_GCC_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_iccarm.h ================================================ /**************************************************************************//** * @file cmsis_iccarm.h * @brief CMSIS compiler ICCARM (IAR Compiler for Arm) header file * @version V5.0.7 * @date 19. June 2018 ******************************************************************************/ //------------------------------------------------------------------------------ // // Copyright (c) 2017-2018 IAR Systems // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //------------------------------------------------------------------------------ #ifndef __CMSIS_ICCARM_H__ #define __CMSIS_ICCARM_H__ #ifndef __ICCARM__ #error This file should only be compiled by ICCARM #endif #pragma system_include #define __IAR_FT _Pragma("inline=forced") __intrinsic #if (__VER__ >= 8000000) #define __ICCARM_V8 1 #else #define __ICCARM_V8 0 #endif #ifndef __ALIGNED #if __ICCARM_V8 #define __ALIGNED(x) __attribute__((aligned(x))) #elif (__VER__ >= 7080000) /* Needs IAR language extensions */ #define __ALIGNED(x) __attribute__((aligned(x))) #else #warning No compiler specific solution for __ALIGNED.__ALIGNED is ignored. #define __ALIGNED(x) #endif #endif /* Define compiler macros for CPU architecture, used in CMSIS 5. */ #if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__ || __ARM_ARCH_8M_BASE__ || __ARM_ARCH_8M_MAIN__ /* Macros already defined */ #else #if defined(__ARM8M_MAINLINE__) || defined(__ARM8EM_MAINLINE__) #define __ARM_ARCH_8M_MAIN__ 1 #elif defined(__ARM8M_BASELINE__) #define __ARM_ARCH_8M_BASE__ 1 #elif defined(__ARM_ARCH_PROFILE) && __ARM_ARCH_PROFILE == 'M' #if __ARM_ARCH == 6 #define __ARM_ARCH_6M__ 1 #elif __ARM_ARCH == 7 #if __ARM_FEATURE_DSP #define __ARM_ARCH_7EM__ 1 #else #define __ARM_ARCH_7M__ 1 #endif #endif /* __ARM_ARCH */ #endif /* __ARM_ARCH_PROFILE == 'M' */ #endif /* Alternativ core deduction for older ICCARM's */ #if !defined(__ARM_ARCH_6M__) && !defined(__ARM_ARCH_7M__) && !defined(__ARM_ARCH_7EM__) && \ !defined(__ARM_ARCH_8M_BASE__) && !defined(__ARM_ARCH_8M_MAIN__) #if defined(__ARM6M__) && (__CORE__ == __ARM6M__) #define __ARM_ARCH_6M__ 1 #elif defined(__ARM7M__) && (__CORE__ == __ARM7M__) #define __ARM_ARCH_7M__ 1 #elif defined(__ARM7EM__) && (__CORE__ == __ARM7EM__) #define __ARM_ARCH_7EM__ 1 #elif defined(__ARM8M_BASELINE__) && (__CORE == __ARM8M_BASELINE__) #define __ARM_ARCH_8M_BASE__ 1 #elif defined(__ARM8M_MAINLINE__) && (__CORE == __ARM8M_MAINLINE__) #define __ARM_ARCH_8M_MAIN__ 1 #elif defined(__ARM8EM_MAINLINE__) && (__CORE == __ARM8EM_MAINLINE__) #define __ARM_ARCH_8M_MAIN__ 1 #else #error "Unknown target." #endif #endif #if defined(__ARM_ARCH_6M__) && __ARM_ARCH_6M__==1 #define __IAR_M0_FAMILY 1 #elif defined(__ARM_ARCH_8M_BASE__) && __ARM_ARCH_8M_BASE__==1 #define __IAR_M0_FAMILY 1 #else #define __IAR_M0_FAMILY 0 #endif #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __NO_RETURN #if __ICCARM_V8 #define __NO_RETURN __attribute__((__noreturn__)) #else #define __NO_RETURN _Pragma("object_attribute=__noreturn") #endif #endif #ifndef __PACKED #if __ICCARM_V8 #define __PACKED __attribute__((packed, aligned(1))) #else /* Needs IAR language extensions */ #define __PACKED __packed #endif #endif #ifndef __PACKED_STRUCT #if __ICCARM_V8 #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) #else /* Needs IAR language extensions */ #define __PACKED_STRUCT __packed struct #endif #endif #ifndef __PACKED_UNION #if __ICCARM_V8 #define __PACKED_UNION union __attribute__((packed, aligned(1))) #else /* Needs IAR language extensions */ #define __PACKED_UNION __packed union #endif #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __FORCEINLINE #define __FORCEINLINE _Pragma("inline=forced") #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __FORCEINLINE __STATIC_INLINE #endif #ifndef __UNALIGNED_UINT16_READ #pragma language=save #pragma language=extended __IAR_FT uint16_t __iar_uint16_read(void const *ptr) { return *(__packed uint16_t*)(ptr); } #pragma language=restore #define __UNALIGNED_UINT16_READ(PTR) __iar_uint16_read(PTR) #endif #ifndef __UNALIGNED_UINT16_WRITE #pragma language=save #pragma language=extended __IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val) { *(__packed uint16_t*)(ptr) = val;; } #pragma language=restore #define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL) #endif #ifndef __UNALIGNED_UINT32_READ #pragma language=save #pragma language=extended __IAR_FT uint32_t __iar_uint32_read(void const *ptr) { return *(__packed uint32_t*)(ptr); } #pragma language=restore #define __UNALIGNED_UINT32_READ(PTR) __iar_uint32_read(PTR) #endif #ifndef __UNALIGNED_UINT32_WRITE #pragma language=save #pragma language=extended __IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val) { *(__packed uint32_t*)(ptr) = val;; } #pragma language=restore #define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #pragma language=save #pragma language=extended __packed struct __iar_u32 { uint32_t v; }; #pragma language=restore #define __UNALIGNED_UINT32(PTR) (((struct __iar_u32 *)(PTR))->v) #endif #ifndef __USED #if __ICCARM_V8 #define __USED __attribute__((used)) #else #define __USED _Pragma("__root") #endif #endif #ifndef __WEAK #if __ICCARM_V8 #define __WEAK __attribute__((weak)) #else #define __WEAK _Pragma("__weak") #endif #endif #ifndef __ICCARM_INTRINSICS_VERSION__ #define __ICCARM_INTRINSICS_VERSION__ 0 #endif #if __ICCARM_INTRINSICS_VERSION__ == 2 #if defined(__CLZ) #undef __CLZ #endif #if defined(__REVSH) #undef __REVSH #endif #if defined(__RBIT) #undef __RBIT #endif #if defined(__SSAT) #undef __SSAT #endif #if defined(__USAT) #undef __USAT #endif #include "iccarm_builtin.h" #define __disable_fault_irq __iar_builtin_disable_fiq #define __disable_irq __iar_builtin_disable_interrupt #define __enable_fault_irq __iar_builtin_enable_fiq #define __enable_irq __iar_builtin_enable_interrupt #define __arm_rsr __iar_builtin_rsr #define __arm_wsr __iar_builtin_wsr #define __get_APSR() (__arm_rsr("APSR")) #define __get_BASEPRI() (__arm_rsr("BASEPRI")) #define __get_CONTROL() (__arm_rsr("CONTROL")) #define __get_FAULTMASK() (__arm_rsr("FAULTMASK")) #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #define __get_FPSCR() (__arm_rsr("FPSCR")) #define __set_FPSCR(VALUE) (__arm_wsr("FPSCR", (VALUE))) #else #define __get_FPSCR() ( 0 ) #define __set_FPSCR(VALUE) ((void)VALUE) #endif #define __get_IPSR() (__arm_rsr("IPSR")) #define __get_MSP() (__arm_rsr("MSP")) #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI #define __get_MSPLIM() (0U) #else #define __get_MSPLIM() (__arm_rsr("MSPLIM")) #endif #define __get_PRIMASK() (__arm_rsr("PRIMASK")) #define __get_PSP() (__arm_rsr("PSP")) #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI #define __get_PSPLIM() (0U) #else #define __get_PSPLIM() (__arm_rsr("PSPLIM")) #endif #define __get_xPSR() (__arm_rsr("xPSR")) #define __set_BASEPRI(VALUE) (__arm_wsr("BASEPRI", (VALUE))) #define __set_BASEPRI_MAX(VALUE) (__arm_wsr("BASEPRI_MAX", (VALUE))) #define __set_CONTROL(VALUE) (__arm_wsr("CONTROL", (VALUE))) #define __set_FAULTMASK(VALUE) (__arm_wsr("FAULTMASK", (VALUE))) #define __set_MSP(VALUE) (__arm_wsr("MSP", (VALUE))) #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI #define __set_MSPLIM(VALUE) ((void)(VALUE)) #else #define __set_MSPLIM(VALUE) (__arm_wsr("MSPLIM", (VALUE))) #endif #define __set_PRIMASK(VALUE) (__arm_wsr("PRIMASK", (VALUE))) #define __set_PSP(VALUE) (__arm_wsr("PSP", (VALUE))) #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI #define __set_PSPLIM(VALUE) ((void)(VALUE)) #else #define __set_PSPLIM(VALUE) (__arm_wsr("PSPLIM", (VALUE))) #endif #define __TZ_get_CONTROL_NS() (__arm_rsr("CONTROL_NS")) #define __TZ_set_CONTROL_NS(VALUE) (__arm_wsr("CONTROL_NS", (VALUE))) #define __TZ_get_PSP_NS() (__arm_rsr("PSP_NS")) #define __TZ_set_PSP_NS(VALUE) (__arm_wsr("PSP_NS", (VALUE))) #define __TZ_get_MSP_NS() (__arm_rsr("MSP_NS")) #define __TZ_set_MSP_NS(VALUE) (__arm_wsr("MSP_NS", (VALUE))) #define __TZ_get_SP_NS() (__arm_rsr("SP_NS")) #define __TZ_set_SP_NS(VALUE) (__arm_wsr("SP_NS", (VALUE))) #define __TZ_get_PRIMASK_NS() (__arm_rsr("PRIMASK_NS")) #define __TZ_set_PRIMASK_NS(VALUE) (__arm_wsr("PRIMASK_NS", (VALUE))) #define __TZ_get_BASEPRI_NS() (__arm_rsr("BASEPRI_NS")) #define __TZ_set_BASEPRI_NS(VALUE) (__arm_wsr("BASEPRI_NS", (VALUE))) #define __TZ_get_FAULTMASK_NS() (__arm_rsr("FAULTMASK_NS")) #define __TZ_set_FAULTMASK_NS(VALUE)(__arm_wsr("FAULTMASK_NS", (VALUE))) #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI #define __TZ_get_PSPLIM_NS() (0U) #define __TZ_set_PSPLIM_NS(VALUE) ((void)(VALUE)) #else #define __TZ_get_PSPLIM_NS() (__arm_rsr("PSPLIM_NS")) #define __TZ_set_PSPLIM_NS(VALUE) (__arm_wsr("PSPLIM_NS", (VALUE))) #endif #define __TZ_get_MSPLIM_NS() (__arm_rsr("MSPLIM_NS")) #define __TZ_set_MSPLIM_NS(VALUE) (__arm_wsr("MSPLIM_NS", (VALUE))) #define __NOP __iar_builtin_no_operation #define __CLZ __iar_builtin_CLZ #define __CLREX __iar_builtin_CLREX #define __DMB __iar_builtin_DMB #define __DSB __iar_builtin_DSB #define __ISB __iar_builtin_ISB #define __LDREXB __iar_builtin_LDREXB #define __LDREXH __iar_builtin_LDREXH #define __LDREXW __iar_builtin_LDREX #define __RBIT __iar_builtin_RBIT #define __REV __iar_builtin_REV #define __REV16 __iar_builtin_REV16 __IAR_FT int16_t __REVSH(int16_t val) { return (int16_t) __iar_builtin_REVSH(val); } #define __ROR __iar_builtin_ROR #define __RRX __iar_builtin_RRX #define __SEV __iar_builtin_SEV #if !__IAR_M0_FAMILY #define __SSAT __iar_builtin_SSAT #endif #define __STREXB __iar_builtin_STREXB #define __STREXH __iar_builtin_STREXH #define __STREXW __iar_builtin_STREX #if !__IAR_M0_FAMILY #define __USAT __iar_builtin_USAT #endif #define __WFE __iar_builtin_WFE #define __WFI __iar_builtin_WFI #if __ARM_MEDIA__ #define __SADD8 __iar_builtin_SADD8 #define __QADD8 __iar_builtin_QADD8 #define __SHADD8 __iar_builtin_SHADD8 #define __UADD8 __iar_builtin_UADD8 #define __UQADD8 __iar_builtin_UQADD8 #define __UHADD8 __iar_builtin_UHADD8 #define __SSUB8 __iar_builtin_SSUB8 #define __QSUB8 __iar_builtin_QSUB8 #define __SHSUB8 __iar_builtin_SHSUB8 #define __USUB8 __iar_builtin_USUB8 #define __UQSUB8 __iar_builtin_UQSUB8 #define __UHSUB8 __iar_builtin_UHSUB8 #define __SADD16 __iar_builtin_SADD16 #define __QADD16 __iar_builtin_QADD16 #define __SHADD16 __iar_builtin_SHADD16 #define __UADD16 __iar_builtin_UADD16 #define __UQADD16 __iar_builtin_UQADD16 #define __UHADD16 __iar_builtin_UHADD16 #define __SSUB16 __iar_builtin_SSUB16 #define __QSUB16 __iar_builtin_QSUB16 #define __SHSUB16 __iar_builtin_SHSUB16 #define __USUB16 __iar_builtin_USUB16 #define __UQSUB16 __iar_builtin_UQSUB16 #define __UHSUB16 __iar_builtin_UHSUB16 #define __SASX __iar_builtin_SASX #define __QASX __iar_builtin_QASX #define __SHASX __iar_builtin_SHASX #define __UASX __iar_builtin_UASX #define __UQASX __iar_builtin_UQASX #define __UHASX __iar_builtin_UHASX #define __SSAX __iar_builtin_SSAX #define __QSAX __iar_builtin_QSAX #define __SHSAX __iar_builtin_SHSAX #define __USAX __iar_builtin_USAX #define __UQSAX __iar_builtin_UQSAX #define __UHSAX __iar_builtin_UHSAX #define __USAD8 __iar_builtin_USAD8 #define __USADA8 __iar_builtin_USADA8 #define __SSAT16 __iar_builtin_SSAT16 #define __USAT16 __iar_builtin_USAT16 #define __UXTB16 __iar_builtin_UXTB16 #define __UXTAB16 __iar_builtin_UXTAB16 #define __SXTB16 __iar_builtin_SXTB16 #define __SXTAB16 __iar_builtin_SXTAB16 #define __SMUAD __iar_builtin_SMUAD #define __SMUADX __iar_builtin_SMUADX #define __SMMLA __iar_builtin_SMMLA #define __SMLAD __iar_builtin_SMLAD #define __SMLADX __iar_builtin_SMLADX #define __SMLALD __iar_builtin_SMLALD #define __SMLALDX __iar_builtin_SMLALDX #define __SMUSD __iar_builtin_SMUSD #define __SMUSDX __iar_builtin_SMUSDX #define __SMLSD __iar_builtin_SMLSD #define __SMLSDX __iar_builtin_SMLSDX #define __SMLSLD __iar_builtin_SMLSLD #define __SMLSLDX __iar_builtin_SMLSLDX #define __SEL __iar_builtin_SEL #define __QADD __iar_builtin_QADD #define __QSUB __iar_builtin_QSUB #define __PKHBT __iar_builtin_PKHBT #define __PKHTB __iar_builtin_PKHTB #endif #else /* __ICCARM_INTRINSICS_VERSION__ == 2 */ #if __IAR_M0_FAMILY /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ #define __CLZ __cmsis_iar_clz_not_active #define __SSAT __cmsis_iar_ssat_not_active #define __USAT __cmsis_iar_usat_not_active #define __RBIT __cmsis_iar_rbit_not_active #define __get_APSR __cmsis_iar_get_APSR_not_active #endif #if (!((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) )) #define __get_FPSCR __cmsis_iar_get_FPSR_not_active #define __set_FPSCR __cmsis_iar_set_FPSR_not_active #endif #ifdef __INTRINSICS_INCLUDED #error intrinsics.h is already included previously! #endif #include #if __IAR_M0_FAMILY /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ #undef __CLZ #undef __SSAT #undef __USAT #undef __RBIT #undef __get_APSR __STATIC_INLINE uint8_t __CLZ(uint32_t data) { if (data == 0U) { return 32U; } uint32_t count = 0U; uint32_t mask = 0x80000000U; while ((data & mask) == 0U) { count += 1U; mask = mask >> 1U; } return count; } __STATIC_INLINE uint32_t __RBIT(uint32_t v) { uint8_t sc = 31U; uint32_t r = v; for (v >>= 1U; v; v >>= 1U) { r <<= 1U; r |= v & 1U; sc--; } return (r << sc); } __STATIC_INLINE uint32_t __get_APSR(void) { uint32_t res; __asm("MRS %0,APSR" : "=r" (res)); return res; } #endif #if (!((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) )) #undef __get_FPSCR #undef __set_FPSCR #define __get_FPSCR() (0) #define __set_FPSCR(VALUE) ((void)VALUE) #endif #pragma diag_suppress=Pe940 #pragma diag_suppress=Pe177 #define __enable_irq __enable_interrupt #define __disable_irq __disable_interrupt #define __NOP __no_operation #define __get_xPSR __get_PSR #if (!defined(__ARM_ARCH_6M__) || __ARM_ARCH_6M__==0) __IAR_FT uint32_t __LDREXW(uint32_t volatile *ptr) { return __LDREX((unsigned long *)ptr); } __IAR_FT uint32_t __STREXW(uint32_t value, uint32_t volatile *ptr) { return __STREX(value, (unsigned long *)ptr); } #endif /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ #if (__CORTEX_M >= 0x03) __IAR_FT uint32_t __RRX(uint32_t value) { uint32_t result; __ASM("RRX %0, %1" : "=r"(result) : "r" (value) : "cc"); return(result); } __IAR_FT void __set_BASEPRI_MAX(uint32_t value) { __asm volatile("MSR BASEPRI_MAX,%0"::"r" (value)); } #define __enable_fault_irq __enable_fiq #define __disable_fault_irq __disable_fiq #endif /* (__CORTEX_M >= 0x03) */ __IAR_FT uint32_t __ROR(uint32_t op1, uint32_t op2) { return (op1 >> op2) | (op1 << ((sizeof(op1)*8)-op2)); } #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) __IAR_FT uint32_t __get_MSPLIM(void) { uint32_t res; #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI res = 0U; #else __asm volatile("MRS %0,MSPLIM" : "=r" (res)); #endif return res; } __IAR_FT void __set_MSPLIM(uint32_t value) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)value; #else __asm volatile("MSR MSPLIM,%0" :: "r" (value)); #endif } __IAR_FT uint32_t __get_PSPLIM(void) { uint32_t res; #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI res = 0U; #else __asm volatile("MRS %0,PSPLIM" : "=r" (res)); #endif return res; } __IAR_FT void __set_PSPLIM(uint32_t value) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)value; #else __asm volatile("MSR PSPLIM,%0" :: "r" (value)); #endif } __IAR_FT uint32_t __TZ_get_CONTROL_NS(void) { uint32_t res; __asm volatile("MRS %0,CONTROL_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_CONTROL_NS(uint32_t value) { __asm volatile("MSR CONTROL_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_PSP_NS(void) { uint32_t res; __asm volatile("MRS %0,PSP_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_PSP_NS(uint32_t value) { __asm volatile("MSR PSP_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_MSP_NS(void) { uint32_t res; __asm volatile("MRS %0,MSP_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_MSP_NS(uint32_t value) { __asm volatile("MSR MSP_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_SP_NS(void) { uint32_t res; __asm volatile("MRS %0,SP_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_SP_NS(uint32_t value) { __asm volatile("MSR SP_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_PRIMASK_NS(void) { uint32_t res; __asm volatile("MRS %0,PRIMASK_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_PRIMASK_NS(uint32_t value) { __asm volatile("MSR PRIMASK_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_BASEPRI_NS(void) { uint32_t res; __asm volatile("MRS %0,BASEPRI_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_BASEPRI_NS(uint32_t value) { __asm volatile("MSR BASEPRI_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_FAULTMASK_NS(void) { uint32_t res; __asm volatile("MRS %0,FAULTMASK_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_FAULTMASK_NS(uint32_t value) { __asm volatile("MSR FAULTMASK_NS,%0" :: "r" (value)); } __IAR_FT uint32_t __TZ_get_PSPLIM_NS(void) { uint32_t res; #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI res = 0U; #else __asm volatile("MRS %0,PSPLIM_NS" : "=r" (res)); #endif return res; } __IAR_FT void __TZ_set_PSPLIM_NS(uint32_t value) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)value; #else __asm volatile("MSR PSPLIM_NS,%0" :: "r" (value)); #endif } __IAR_FT uint32_t __TZ_get_MSPLIM_NS(void) { uint32_t res; __asm volatile("MRS %0,MSPLIM_NS" : "=r" (res)); return res; } __IAR_FT void __TZ_set_MSPLIM_NS(uint32_t value) { __asm volatile("MSR MSPLIM_NS,%0" :: "r" (value)); } #endif /* __ARM_ARCH_8M_MAIN__ or __ARM_ARCH_8M_BASE__ */ #endif /* __ICCARM_INTRINSICS_VERSION__ == 2 */ #define __BKPT(value) __asm volatile ("BKPT %0" : : "i"(value)) #if __IAR_M0_FAMILY __STATIC_INLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } __STATIC_INLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif #if (__CORTEX_M >= 0x03) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ __IAR_FT uint8_t __LDRBT(volatile uint8_t *addr) { uint32_t res; __ASM("LDRBT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); return ((uint8_t)res); } __IAR_FT uint16_t __LDRHT(volatile uint16_t *addr) { uint32_t res; __ASM("LDRHT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); return ((uint16_t)res); } __IAR_FT uint32_t __LDRT(volatile uint32_t *addr) { uint32_t res; __ASM("LDRT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); return res; } __IAR_FT void __STRBT(uint8_t value, volatile uint8_t *addr) { __ASM("STRBT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); } __IAR_FT void __STRHT(uint16_t value, volatile uint16_t *addr) { __ASM("STRHT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); } __IAR_FT void __STRT(uint32_t value, volatile uint32_t *addr) { __ASM("STRT %1, [%0]" : : "r" (addr), "r" (value) : "memory"); } #endif /* (__CORTEX_M >= 0x03) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) __IAR_FT uint8_t __LDAB(volatile uint8_t *ptr) { uint32_t res; __ASM volatile ("LDAB %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return ((uint8_t)res); } __IAR_FT uint16_t __LDAH(volatile uint16_t *ptr) { uint32_t res; __ASM volatile ("LDAH %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return ((uint16_t)res); } __IAR_FT uint32_t __LDA(volatile uint32_t *ptr) { uint32_t res; __ASM volatile ("LDA %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return res; } __IAR_FT void __STLB(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("STLB %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); } __IAR_FT void __STLH(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("STLH %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); } __IAR_FT void __STL(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("STL %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); } __IAR_FT uint8_t __LDAEXB(volatile uint8_t *ptr) { uint32_t res; __ASM volatile ("LDAEXB %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return ((uint8_t)res); } __IAR_FT uint16_t __LDAEXH(volatile uint16_t *ptr) { uint32_t res; __ASM volatile ("LDAEXH %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return ((uint16_t)res); } __IAR_FT uint32_t __LDAEX(volatile uint32_t *ptr) { uint32_t res; __ASM volatile ("LDAEX %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); return res; } __IAR_FT uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) { uint32_t res; __ASM volatile ("STLEXB %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); return res; } __IAR_FT uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) { uint32_t res; __ASM volatile ("STLEXH %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); return res; } __IAR_FT uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) { uint32_t res; __ASM volatile ("STLEX %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); return res; } #endif /* __ARM_ARCH_8M_MAIN__ or __ARM_ARCH_8M_BASE__ */ #undef __IAR_FT #undef __IAR_M0_FAMILY #undef __ICCARM_V8 #pragma diag_default=Pe940 #pragma diag_default=Pe177 #endif /* __CMSIS_ICCARM_H__ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/cmsis_version.h ================================================ /**************************************************************************//** * @file cmsis_version.h * @brief CMSIS Core(M) Version definitions * @version V5.0.2 * @date 19. April 2017 ******************************************************************************/ /* * Copyright (c) 2009-2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CMSIS_VERSION_H #define __CMSIS_VERSION_H /* CMSIS Version definitions */ #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */ #define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */ #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \ __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */ #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_armv8mbl.h ================================================ /**************************************************************************//** * @file core_armv8mbl.h * @brief CMSIS Armv8-M Baseline Core Peripheral Access Layer Header File * @version V5.0.7 * @date 22. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_ARMV8MBL_H_GENERIC #define __CORE_ARMV8MBL_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_ARMv8MBL @{ */ #include "cmsis_version.h" /* CMSIS definitions */ #define __ARMv8MBL_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __ARMv8MBL_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __ARMv8MBL_CMSIS_VERSION ((__ARMv8MBL_CMSIS_VERSION_MAIN << 16U) | \ __ARMv8MBL_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M ( 2U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_ARMV8MBL_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_ARMV8MBL_H_DEPENDANT #define __CORE_ARMV8MBL_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __ARMv8MBL_REV #define __ARMv8MBL_REV 0x0000U #warning "__ARMv8MBL_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT 0U #warning "__SAUREGION_PRESENT not defined in device header file; using default!" #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT 0U #warning "__VTOR_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #ifndef __ETM_PRESENT #define __ETM_PRESENT 0U #warning "__ETM_PRESENT not defined in device header file; using default!" #endif #ifndef __MTB_PRESENT #define __MTB_PRESENT 0U #warning "__MTB_PRESENT not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group ARMv8MBL */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core SAU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[16U]; __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[16U]; __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[16U]; __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[16U]; __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[16U]; __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ uint32_t RESERVED5[16U]; __IOM uint32_t IPR[124U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ #else uint32_t RESERVED0; #endif __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHPR[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ #define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ #define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ #define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ #define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ #define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ #define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ #define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ #define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ #define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ #define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ #define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ #define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ #define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ #define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ #define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ #define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ #define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ #define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ uint32_t RESERVED0[6U]; __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ uint32_t RESERVED1[1U]; __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ uint32_t RESERVED3[1U]; __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED4[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ uint32_t RESERVED5[1U]; __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED6[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ uint32_t RESERVED7[1U]; __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED8[1U]; __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ uint32_t RESERVED9[1U]; __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ uint32_t RESERVED10[1U]; __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ uint32_t RESERVED11[1U]; __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ uint32_t RESERVED12[1U]; __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ uint32_t RESERVED13[1U]; __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ uint32_t RESERVED14[1U]; __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ uint32_t RESERVED15[1U]; __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ uint32_t RESERVED16[1U]; __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ uint32_t RESERVED17[1U]; __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ uint32_t RESERVED18[1U]; __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ uint32_t RESERVED19[1U]; __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ uint32_t RESERVED20[1U]; __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ uint32_t RESERVED21[1U]; __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ uint32_t RESERVED22[1U]; __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ uint32_t RESERVED23[1U]; __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ uint32_t RESERVED24[1U]; __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ uint32_t RESERVED25[1U]; __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ uint32_t RESERVED26[1U]; __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ uint32_t RESERVED27[1U]; __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ uint32_t RESERVED28[1U]; __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ uint32_t RESERVED29[1U]; __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ uint32_t RESERVED30[1U]; __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ uint32_t RESERVED31[1U]; __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ #define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ #define DWT_FUNCTION_ACTION_Msk (0x3UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ #define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ #define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Sizes Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Sizes Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ uint32_t RESERVED3[809U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) Software Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) Software Lock Status Register */ uint32_t RESERVED4[4U]; __IM uint32_t TYPE; /*!< Offset: 0xFC8 (R/ ) Device Identifier Register */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Register */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_SWOSCALER_Pos 0U /*!< TPI ACPR: SWOSCALER Position */ #define TPI_ACPR_SWOSCALER_Msk (0xFFFFUL /*<< TPI_ACPR_SWOSCALER_Pos*/) /*!< TPI ACPR: SWOSCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ #define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI Periodic Synchronization Control Register Definitions */ #define TPI_PSCR_PSCount_Pos 0U /*!< TPI PSCR: PSCount Position */ #define TPI_PSCR_PSCount_Msk (0x1FUL /*<< TPI_PSCR_PSCount_Pos*/) /*!< TPI PSCR: TPSCount Mask */ /* TPI Software Lock Status Register Definitions */ #define TPI_LSR_nTT_Pos 1U /*!< TPI LSR: Not thirty-two bit. Position */ #define TPI_LSR_nTT_Msk (0x1UL << TPI_LSR_nTT_Pos) /*!< TPI LSR: Not thirty-two bit. Mask */ #define TPI_LSR_SLK_Pos 1U /*!< TPI LSR: Software Lock status Position */ #define TPI_LSR_SLK_Msk (0x1UL << TPI_LSR_SLK_Pos) /*!< TPI LSR: Software Lock status Mask */ #define TPI_LSR_SLI_Pos 0U /*!< TPI LSR: Software Lock implemented Position */ #define TPI_LSR_SLI_Msk (0x1UL /*<< TPI_LSR_SLI_Pos*/) /*!< TPI LSR: Software Lock implemented Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFO depth Position */ #define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFO depth Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ uint32_t RESERVED0[7U]; union { __IOM uint32_t MAIR[2]; struct { __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ }; }; } MPU_Type; #define MPU_TYPE_RALIASES 1U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ #define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ #define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ #define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ #define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ #define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ #define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ #define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ /* MPU Region Limit Address Register Definitions */ #define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ #define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ #define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ #define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ #define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: EN Position */ #define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: EN Mask */ /* MPU Memory Attribute Indirection Register 0 Definitions */ #define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ #define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ #define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ #define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ #define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ #define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ #define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ #define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ /* MPU Memory Attribute Indirection Register 1 Definitions */ #define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ #define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ #define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ #define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ #define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ #define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ #define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ #define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ /*@} end of group CMSIS_MPU */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \ingroup CMSIS_core_register \defgroup CMSIS_SAU Security Attribution Unit (SAU) \brief Type definitions for the Security Attribution Unit (SAU) @{ */ /** \brief Structure type to access the Security Attribution Unit (SAU). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ #endif } SAU_Type; /* SAU Control Register Definitions */ #define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ #define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ #define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ #define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ /* SAU Type Register Definitions */ #define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ #define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) /* SAU Region Number Register Definitions */ #define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ #define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ /* SAU Region Base Address Register Definitions */ #define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ #define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ /* SAU Region Limit Address Register Definitions */ #define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ #define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ #define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ #define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ #define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ #define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ /*@} end of group CMSIS_SAU */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ uint32_t RESERVED4[1U]; __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ #define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register */ #define CoreDebug_DEMCR_DWTENA_Pos 24U /*!< CoreDebug DEMCR: DWTENA Position */ #define CoreDebug_DEMCR_DWTENA_Msk (1UL << CoreDebug_DEMCR_DWTENA_Pos) /*!< CoreDebug DEMCR: DWTENA Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /* Debug Authentication Control Register Definitions */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ /* Debug Security Control and Status Register Definitions */ #define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ #define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ #define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ #define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ #define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ #define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ #endif #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* Special LR values for Secure/Non-Secure call handling and exception handling */ /* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ #define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ /* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ #define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ #define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ #define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ #define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ #define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ #define EXC_RETURN_SPSEL (0x00000002UL) /* bit [1] stack pointer used to restore context: 0=MSP 1=PSP */ #define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ /* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ #define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ #else #define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ #endif /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Get Interrupt Target State \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure \return 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Target State \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Clear Interrupt Target State \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable Interrupt (non-secure) \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status (non-secure) \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt (non-secure) \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Pending Interrupt (non-secure) \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt (non-secure) \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt (non-secure) \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt (non-secure) \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority (non-secure) \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every non-secure processor exception. */ __STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC_NS->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB_NS->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB_NS->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority (non-secure) \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB_NS->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } #endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv8.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## SAU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SAUFunctions SAU Functions \brief Functions that configure the SAU. @{ */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable SAU \details Enables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Enable(void) { SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); } /** \brief Disable SAU \details Disables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Disable(void) { SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_SAUFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief System Tick Configuration (non-secure) \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function TZ_SysTick_Config_NS is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_ARMV8MBL_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_armv8mml.h ================================================ /**************************************************************************//** * @file core_armv8mml.h * @brief CMSIS Armv8-M Mainline Core Peripheral Access Layer Header File * @version V5.0.7 * @date 06. July 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_ARMV8MML_H_GENERIC #define __CORE_ARMV8MML_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_ARMv8MML @{ */ #include "cmsis_version.h" /* CMSIS Armv8MML definitions */ #define __ARMv8MML_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __ARMv8MML_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __ARMv8MML_CMSIS_VERSION ((__ARMv8MML_CMSIS_VERSION_MAIN << 16U) | \ __ARMv8MML_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (81U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. */ #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined(__ARM_FEATURE_DSP) #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined(__ARM_FEATURE_DSP) #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined(__ARM_FEATURE_DSP) #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined(__ARM_FEATURE_DSP) #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_ARMV8MML_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_ARMV8MML_H_DEPENDANT #define __CORE_ARMV8MML_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __ARMv8MML_REV #define __ARMv8MML_REV 0x0000U #warning "__ARMv8MML_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT 0U #warning "__SAUREGION_PRESENT not defined in device header file; using default!" #endif #ifndef __DSP_PRESENT #define __DSP_PRESENT 0U #warning "__DSP_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group ARMv8MML */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core SAU Register - Core FPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ #define APSR_GE_Pos 16U /*!< APSR: GE Position */ #define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ #define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ #define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ #define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ #define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ #define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[16U]; __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[16U]; __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[16U]; __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[16U]; __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[16U]; __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ uint32_t RESERVED5[16U]; __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED6[580U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ uint32_t RESERVED3[92U]; __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ uint32_t RESERVED4[15U]; __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ uint32_t RESERVED5[1U]; __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ uint32_t RESERVED6[1U]; __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ uint32_t RESERVED7[6U]; __IOM uint32_t ITCMCR; /*!< Offset: 0x290 (R/W) Instruction Tightly-Coupled Memory Control Register */ __IOM uint32_t DTCMCR; /*!< Offset: 0x294 (R/W) Data Tightly-Coupled Memory Control Registers */ __IOM uint32_t AHBPCR; /*!< Offset: 0x298 (R/W) AHBP Control Register */ __IOM uint32_t CACR; /*!< Offset: 0x29C (R/W) L1 Cache Control Register */ __IOM uint32_t AHBSCR; /*!< Offset: 0x2A0 (R/W) AHB Slave Control Register */ uint32_t RESERVED8[1U]; __IOM uint32_t ABFSR; /*!< Offset: 0x2A8 (R/W) Auxiliary Bus Fault Status Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ #define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ #define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ #define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ #define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ #define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ #define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ #define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ #define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ #define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ #define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ #define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ #define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ #define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ #define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ #define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ #define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ #define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ #define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ #define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ #define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ #define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ #define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ #define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ #define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ #define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /* SCB Non-Secure Access Control Register Definitions */ #define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ #define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ #define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ #define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ #define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ #define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ /* SCB Cache Level ID Register Definitions */ #define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ #define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ #define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ #define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ /* SCB Cache Type Register Definitions */ #define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ #define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ #define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ #define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ #define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ #define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ #define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ #define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ #define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ #define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ /* SCB Cache Size ID Register Definitions */ #define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ #define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ #define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ #define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ #define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ #define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ #define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ #define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ #define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ #define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ #define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ #define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ #define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ #define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ /* SCB Cache Size Selection Register Definitions */ #define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ #define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ #define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ #define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ /* SCB Software Triggered Interrupt Register Definitions */ #define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ #define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ /* SCB D-Cache Invalidate by Set-way Register Definitions */ #define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ #define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ #define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ #define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ /* SCB D-Cache Clean by Set-way Register Definitions */ #define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ #define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ #define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ #define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ /* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ #define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ #define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ #define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ #define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ /* Instruction Tightly-Coupled Memory Control Register Definitions */ #define SCB_ITCMCR_SZ_Pos 3U /*!< SCB ITCMCR: SZ Position */ #define SCB_ITCMCR_SZ_Msk (0xFUL << SCB_ITCMCR_SZ_Pos) /*!< SCB ITCMCR: SZ Mask */ #define SCB_ITCMCR_RETEN_Pos 2U /*!< SCB ITCMCR: RETEN Position */ #define SCB_ITCMCR_RETEN_Msk (1UL << SCB_ITCMCR_RETEN_Pos) /*!< SCB ITCMCR: RETEN Mask */ #define SCB_ITCMCR_RMW_Pos 1U /*!< SCB ITCMCR: RMW Position */ #define SCB_ITCMCR_RMW_Msk (1UL << SCB_ITCMCR_RMW_Pos) /*!< SCB ITCMCR: RMW Mask */ #define SCB_ITCMCR_EN_Pos 0U /*!< SCB ITCMCR: EN Position */ #define SCB_ITCMCR_EN_Msk (1UL /*<< SCB_ITCMCR_EN_Pos*/) /*!< SCB ITCMCR: EN Mask */ /* Data Tightly-Coupled Memory Control Register Definitions */ #define SCB_DTCMCR_SZ_Pos 3U /*!< SCB DTCMCR: SZ Position */ #define SCB_DTCMCR_SZ_Msk (0xFUL << SCB_DTCMCR_SZ_Pos) /*!< SCB DTCMCR: SZ Mask */ #define SCB_DTCMCR_RETEN_Pos 2U /*!< SCB DTCMCR: RETEN Position */ #define SCB_DTCMCR_RETEN_Msk (1UL << SCB_DTCMCR_RETEN_Pos) /*!< SCB DTCMCR: RETEN Mask */ #define SCB_DTCMCR_RMW_Pos 1U /*!< SCB DTCMCR: RMW Position */ #define SCB_DTCMCR_RMW_Msk (1UL << SCB_DTCMCR_RMW_Pos) /*!< SCB DTCMCR: RMW Mask */ #define SCB_DTCMCR_EN_Pos 0U /*!< SCB DTCMCR: EN Position */ #define SCB_DTCMCR_EN_Msk (1UL /*<< SCB_DTCMCR_EN_Pos*/) /*!< SCB DTCMCR: EN Mask */ /* AHBP Control Register Definitions */ #define SCB_AHBPCR_SZ_Pos 1U /*!< SCB AHBPCR: SZ Position */ #define SCB_AHBPCR_SZ_Msk (7UL << SCB_AHBPCR_SZ_Pos) /*!< SCB AHBPCR: SZ Mask */ #define SCB_AHBPCR_EN_Pos 0U /*!< SCB AHBPCR: EN Position */ #define SCB_AHBPCR_EN_Msk (1UL /*<< SCB_AHBPCR_EN_Pos*/) /*!< SCB AHBPCR: EN Mask */ /* L1 Cache Control Register Definitions */ #define SCB_CACR_FORCEWT_Pos 2U /*!< SCB CACR: FORCEWT Position */ #define SCB_CACR_FORCEWT_Msk (1UL << SCB_CACR_FORCEWT_Pos) /*!< SCB CACR: FORCEWT Mask */ #define SCB_CACR_ECCEN_Pos 1U /*!< SCB CACR: ECCEN Position */ #define SCB_CACR_ECCEN_Msk (1UL << SCB_CACR_ECCEN_Pos) /*!< SCB CACR: ECCEN Mask */ #define SCB_CACR_SIWT_Pos 0U /*!< SCB CACR: SIWT Position */ #define SCB_CACR_SIWT_Msk (1UL /*<< SCB_CACR_SIWT_Pos*/) /*!< SCB CACR: SIWT Mask */ /* AHBS Control Register Definitions */ #define SCB_AHBSCR_INITCOUNT_Pos 11U /*!< SCB AHBSCR: INITCOUNT Position */ #define SCB_AHBSCR_INITCOUNT_Msk (0x1FUL << SCB_AHBPCR_INITCOUNT_Pos) /*!< SCB AHBSCR: INITCOUNT Mask */ #define SCB_AHBSCR_TPRI_Pos 2U /*!< SCB AHBSCR: TPRI Position */ #define SCB_AHBSCR_TPRI_Msk (0x1FFUL << SCB_AHBPCR_TPRI_Pos) /*!< SCB AHBSCR: TPRI Mask */ #define SCB_AHBSCR_CTL_Pos 0U /*!< SCB AHBSCR: CTL Position*/ #define SCB_AHBSCR_CTL_Msk (3UL /*<< SCB_AHBPCR_CTL_Pos*/) /*!< SCB AHBSCR: CTL Mask */ /* Auxiliary Bus Fault Status Register Definitions */ #define SCB_ABFSR_AXIMTYPE_Pos 8U /*!< SCB ABFSR: AXIMTYPE Position*/ #define SCB_ABFSR_AXIMTYPE_Msk (3UL << SCB_ABFSR_AXIMTYPE_Pos) /*!< SCB ABFSR: AXIMTYPE Mask */ #define SCB_ABFSR_EPPB_Pos 4U /*!< SCB ABFSR: EPPB Position*/ #define SCB_ABFSR_EPPB_Msk (1UL << SCB_ABFSR_EPPB_Pos) /*!< SCB ABFSR: EPPB Mask */ #define SCB_ABFSR_AXIM_Pos 3U /*!< SCB ABFSR: AXIM Position*/ #define SCB_ABFSR_AXIM_Msk (1UL << SCB_ABFSR_AXIM_Pos) /*!< SCB ABFSR: AXIM Mask */ #define SCB_ABFSR_AHBP_Pos 2U /*!< SCB ABFSR: AHBP Position*/ #define SCB_ABFSR_AHBP_Msk (1UL << SCB_ABFSR_AHBP_Pos) /*!< SCB ABFSR: AHBP Mask */ #define SCB_ABFSR_DTCM_Pos 1U /*!< SCB ABFSR: DTCM Position*/ #define SCB_ABFSR_DTCM_Msk (1UL << SCB_ABFSR_DTCM_Pos) /*!< SCB ABFSR: DTCM Mask */ #define SCB_ABFSR_ITCM_Pos 0U /*!< SCB ABFSR: ITCM Position*/ #define SCB_ABFSR_ITCM_Msk (1UL /*<< SCB_ABFSR_ITCM_Pos*/) /*!< SCB ABFSR: ITCM Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[1U]; __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ uint32_t RESERVED6[4U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Stimulus Port Register Definitions */ #define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ #define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ #define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ #define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ #define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ #define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ #define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ uint32_t RESERVED1[1U]; __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ uint32_t RESERVED3[1U]; __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED4[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ uint32_t RESERVED5[1U]; __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED6[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ uint32_t RESERVED7[1U]; __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED8[1U]; __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ uint32_t RESERVED9[1U]; __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ uint32_t RESERVED10[1U]; __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ uint32_t RESERVED11[1U]; __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ uint32_t RESERVED12[1U]; __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ uint32_t RESERVED13[1U]; __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ uint32_t RESERVED14[1U]; __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ uint32_t RESERVED15[1U]; __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ uint32_t RESERVED16[1U]; __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ uint32_t RESERVED17[1U]; __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ uint32_t RESERVED18[1U]; __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ uint32_t RESERVED19[1U]; __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ uint32_t RESERVED20[1U]; __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ uint32_t RESERVED21[1U]; __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ uint32_t RESERVED22[1U]; __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ uint32_t RESERVED23[1U]; __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ uint32_t RESERVED24[1U]; __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ uint32_t RESERVED25[1U]; __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ uint32_t RESERVED26[1U]; __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ uint32_t RESERVED27[1U]; __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ uint32_t RESERVED28[1U]; __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ uint32_t RESERVED29[1U]; __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ uint32_t RESERVED30[1U]; __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ uint32_t RESERVED31[1U]; __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ uint32_t RESERVED32[934U]; __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ uint32_t RESERVED33[1U]; __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ #define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ #define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ #define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ #define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ #define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Sizes Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Sizes Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ uint32_t RESERVED3[809U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) Software Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) Software Lock Status Register */ uint32_t RESERVED4[4U]; __IM uint32_t TYPE; /*!< Offset: 0xFC8 (R/ ) Device Identifier Register */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Register */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_SWOSCALER_Pos 0U /*!< TPI ACPR: SWOSCALER Position */ #define TPI_ACPR_SWOSCALER_Msk (0xFFFFUL /*<< TPI_ACPR_SWOSCALER_Pos*/) /*!< TPI ACPR: SWOSCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ #define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI Periodic Synchronization Control Register Definitions */ #define TPI_PSCR_PSCount_Pos 0U /*!< TPI PSCR: PSCount Position */ #define TPI_PSCR_PSCount_Msk (0x1FUL /*<< TPI_PSCR_PSCount_Pos*/) /*!< TPI PSCR: TPSCount Mask */ /* TPI Software Lock Status Register Definitions */ #define TPI_LSR_nTT_Pos 1U /*!< TPI LSR: Not thirty-two bit. Position */ #define TPI_LSR_nTT_Msk (0x1UL << TPI_LSR_nTT_Pos) /*!< TPI LSR: Not thirty-two bit. Mask */ #define TPI_LSR_SLK_Pos 1U /*!< TPI LSR: Software Lock status Position */ #define TPI_LSR_SLK_Msk (0x1UL << TPI_LSR_SLK_Pos) /*!< TPI LSR: Software Lock status Mask */ #define TPI_LSR_SLI_Pos 0U /*!< TPI LSR: Software Lock implemented Position */ #define TPI_LSR_SLI_Msk (0x1UL /*<< TPI_LSR_SLI_Pos*/) /*!< TPI LSR: Software Lock implemented Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFO depth Position */ #define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFO depth Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ uint32_t RESERVED0[1]; union { __IOM uint32_t MAIR[2]; struct { __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ }; }; } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ #define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ #define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ #define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ #define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ #define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ #define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ #define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ /* MPU Region Limit Address Register Definitions */ #define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ #define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ #define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ #define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ #define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ #define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ /* MPU Memory Attribute Indirection Register 0 Definitions */ #define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ #define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ #define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ #define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ #define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ #define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ #define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ #define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ /* MPU Memory Attribute Indirection Register 1 Definitions */ #define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ #define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ #define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ #define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ #define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ #define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ #define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ #define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ /*@} end of group CMSIS_MPU */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \ingroup CMSIS_core_register \defgroup CMSIS_SAU Security Attribution Unit (SAU) \brief Type definitions for the Security Attribution Unit (SAU) @{ */ /** \brief Structure type to access the Security Attribution Unit (SAU). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ #else uint32_t RESERVED0[3]; #endif __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ } SAU_Type; /* SAU Control Register Definitions */ #define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ #define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ #define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ #define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ /* SAU Type Register Definitions */ #define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ #define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) /* SAU Region Number Register Definitions */ #define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ #define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ /* SAU Region Base Address Register Definitions */ #define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ #define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ /* SAU Region Limit Address Register Definitions */ #define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ #define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ #define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ #define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ #define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ #define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ /* Secure Fault Status Register Definitions */ #define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ #define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ #define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ #define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ #define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ #define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ #define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ #define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ #define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ #define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ #define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ #define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ #define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ #define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ #define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ #define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ /*@} end of group CMSIS_SAU */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_FPU Floating Point Unit (FPU) \brief Type definitions for the Floating Point Unit (FPU) @{ */ /** \brief Structure type to access the Floating Point Unit (FPU). */ typedef struct { uint32_t RESERVED0[1U]; __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ } FPU_Type; /* Floating-Point Context Control Register Definitions */ #define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ #define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ #define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ #define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ #define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ #define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ #define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ #define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ #define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ #define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ #define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ #define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ #define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ #define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ #define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ #define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ #define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ #define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ #define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ #define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ #define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ #define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ #define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ #define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ #define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ #define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ #define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ #define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ #define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ #define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ #define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ #define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ #define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ #define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ /* Floating-Point Context Address Register Definitions */ #define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ #define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ /* Floating-Point Default Status Control Register Definitions */ #define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ #define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ #define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ #define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ #define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ #define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ #define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ #define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ /* Media and FP Feature Register 0 Definitions */ #define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ #define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ #define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ #define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ #define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ #define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ #define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ #define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ #define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ #define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ #define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ #define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ #define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ #define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ #define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ #define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ /* Media and FP Feature Register 1 Definitions */ #define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ #define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ #define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ #define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ #define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ #define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ #define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ #define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ /*@} end of group CMSIS_FPU */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ uint32_t RESERVED4[1U]; __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ #define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /* Debug Authentication Control Register Definitions */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ /* Debug Security Control and Status Register Definitions */ #define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ #define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ #define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ #define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ #define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ #define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ #endif #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ #endif #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* Special LR values for Secure/Non-Secure call handling and exception handling */ /* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ #define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ /* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ #define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ #define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ #define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ #define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ #define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ #define EXC_RETURN_SPSEL (0x00000002UL) /* bit [1] stack pointer used to restore context: 0=MSP 1=PSP */ #define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ /* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ #define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ #else #define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ #endif /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Get Interrupt Target State \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure \return 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Target State \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Clear Interrupt Target State \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Set Priority Grouping (non-secure) \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB_NS->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */ SCB_NS->AIRCR = reg_value; } /** \brief Get Priority Grouping (non-secure) \details Reads the priority grouping field from the non-secure NVIC when in secure state. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) { return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt (non-secure) \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status (non-secure) \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt (non-secure) \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Pending Interrupt (non-secure) \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt (non-secure) \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt (non-secure) \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt (non-secure) \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority (non-secure) \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every non-secure processor exception. */ __STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority (non-secure) \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } #endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv8.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { uint32_t mvfr0; mvfr0 = FPU->MVFR0; if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) { return 2U; /* Double + Single precision FPU */ } else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) { return 1U; /* Single precision FPU */ } else { return 0U; /* No FPU */ } } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## SAU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SAUFunctions SAU Functions \brief Functions that configure the SAU. @{ */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable SAU \details Enables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Enable(void) { SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); } /** \brief Disable SAU \details Disables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Disable(void) { SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_SAUFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief System Tick Configuration (non-secure) \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function TZ_SysTick_Config_NS is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_ARMV8MML_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm0.h ================================================ /**************************************************************************//** * @file core_cm0.h * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File * @version V5.0.5 * @date 28. May 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM0_H_GENERIC #define __CORE_CM0_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M0 @{ */ #include "cmsis_version.h" /* CMSIS CM0 definitions */ #define __CM0_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM0_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16U) | \ __CM0_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (0U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM0_H_DEPENDANT #define __CORE_CM0_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM0_REV #define __CM0_REV 0x0000U #warning "__CM0_REV not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M0 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t _reserved0:1; /*!< bit: 0 Reserved */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ uint32_t RESERVED0; __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M0 header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0 */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. Address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)0x0U; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)0x0U; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm0plus.h ================================================ /**************************************************************************//** * @file core_cm0plus.h * @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File * @version V5.0.6 * @date 28. May 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM0PLUS_H_GENERIC #define __CORE_CM0PLUS_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex-M0+ @{ */ #include "cmsis_version.h" /* CMSIS CM0+ definitions */ #define __CM0PLUS_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM0PLUS_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM0PLUS_CMSIS_VERSION ((__CM0PLUS_CMSIS_VERSION_MAIN << 16U) | \ __CM0PLUS_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (0U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0PLUS_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM0PLUS_H_DEPENDANT #define __CORE_CM0PLUS_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM0PLUS_REV #define __CM0PLUS_REV 0x0000U #warning "__CM0PLUS_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT 0U #warning "__VTOR_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex-M0+ */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ #else uint32_t RESERVED0; #endif __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) /* SCB Interrupt Control State Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 8U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0xFFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 1U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 8U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M0+ Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M0+ header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0+ */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0PLUS_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm1.h ================================================ /**************************************************************************//** * @file core_cm1.h * @brief CMSIS Cortex-M1 Core Peripheral Access Layer Header File * @version V1.0.0 * @date 23. July 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM1_H_GENERIC #define __CORE_CM1_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M1 @{ */ #include "cmsis_version.h" /* CMSIS CM1 definitions */ #define __CM1_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM1_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM1_CMSIS_VERSION ((__CM1_CMSIS_VERSION_MAIN << 16U) | \ __CM1_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (1U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM1_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM1_H_DEPENDANT #define __CORE_CM1_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM1_REV #define __CM1_REV 0x0100U #warning "__CM1_REV not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M1 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t _reserved0:1; /*!< bit: 0 Reserved */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ uint32_t RESERVED0; __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[2U]; __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ } SCnSCB_Type; /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_ITCMUAEN_Pos 4U /*!< ACTLR: Instruction TCM Upper Alias Enable Position */ #define SCnSCB_ACTLR_ITCMUAEN_Msk (1UL << SCnSCB_ACTLR_ITCMUAEN_Pos) /*!< ACTLR: Instruction TCM Upper Alias Enable Mask */ #define SCnSCB_ACTLR_ITCMLAEN_Pos 3U /*!< ACTLR: Instruction TCM Lower Alias Enable Position */ #define SCnSCB_ACTLR_ITCMLAEN_Msk (1UL << SCnSCB_ACTLR_ITCMLAEN_Pos) /*!< ACTLR: Instruction TCM Lower Alias Enable Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M1 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M1 header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M1 */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. Address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)0x0U; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)0x0U; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM1_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm23.h ================================================ /**************************************************************************//** * @file core_cm23.h * @brief CMSIS Cortex-M23 Core Peripheral Access Layer Header File * @version V5.0.7 * @date 22. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM23_H_GENERIC #define __CORE_CM23_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M23 @{ */ #include "cmsis_version.h" /* CMSIS definitions */ #define __CM23_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM23_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM23_CMSIS_VERSION ((__CM23_CMSIS_VERSION_MAIN << 16U) | \ __CM23_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (23U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM23_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM23_H_DEPENDANT #define __CORE_CM23_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM23_REV #define __CM23_REV 0x0000U #warning "__CM23_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT 0U #warning "__SAUREGION_PRESENT not defined in device header file; using default!" #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT 0U #warning "__VTOR_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #ifndef __ETM_PRESENT #define __ETM_PRESENT 0U #warning "__ETM_PRESENT not defined in device header file; using default!" #endif #ifndef __MTB_PRESENT #define __MTB_PRESENT 0U #warning "__MTB_PRESENT not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M23 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core SAU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[16U]; __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[16U]; __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[16U]; __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[16U]; __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[16U]; __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ uint32_t RESERVED5[16U]; __IOM uint32_t IPR[124U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ #else uint32_t RESERVED0; #endif __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHPR[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ #define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ #define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ #define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ #define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ #define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ #define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ #define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ #define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ #define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ #define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ #define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ #define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ #define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ #define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ #define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ #define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ #define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ #define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ uint32_t RESERVED0[6U]; __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ uint32_t RESERVED1[1U]; __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ uint32_t RESERVED3[1U]; __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED4[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ uint32_t RESERVED5[1U]; __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED6[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ uint32_t RESERVED7[1U]; __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED8[1U]; __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ uint32_t RESERVED9[1U]; __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ uint32_t RESERVED10[1U]; __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ uint32_t RESERVED11[1U]; __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ uint32_t RESERVED12[1U]; __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ uint32_t RESERVED13[1U]; __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ uint32_t RESERVED14[1U]; __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ uint32_t RESERVED15[1U]; __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ uint32_t RESERVED16[1U]; __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ uint32_t RESERVED17[1U]; __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ uint32_t RESERVED18[1U]; __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ uint32_t RESERVED19[1U]; __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ uint32_t RESERVED20[1U]; __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ uint32_t RESERVED21[1U]; __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ uint32_t RESERVED22[1U]; __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ uint32_t RESERVED23[1U]; __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ uint32_t RESERVED24[1U]; __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ uint32_t RESERVED25[1U]; __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ uint32_t RESERVED26[1U]; __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ uint32_t RESERVED27[1U]; __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ uint32_t RESERVED28[1U]; __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ uint32_t RESERVED29[1U]; __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ uint32_t RESERVED30[1U]; __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ uint32_t RESERVED31[1U]; __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ #define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ #define DWT_FUNCTION_ACTION_Msk (0x3UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ #define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ #define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ #define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration Test FIFO Test Data 0 Register Definitions */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ #define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ #define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ #define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ #define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ #define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ /* TPI Integration Test ATB Control Register 2 Register Definitions */ #define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ #define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ #define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ #define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ #define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ #define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ #define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ #define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ /* TPI Integration Test FIFO Test Data 1 Register Definitions */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ #define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ #define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ #define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ #define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ #define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ /* TPI Integration Test ATB Control Register 0 Definitions */ #define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ #define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ #define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ #define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ #define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ #define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ #define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ #define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ #define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ uint32_t RESERVED0[7U]; union { __IOM uint32_t MAIR[2]; struct { __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ }; }; } MPU_Type; #define MPU_TYPE_RALIASES 1U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ #define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ #define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ #define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ #define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ #define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ #define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ #define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ /* MPU Region Limit Address Register Definitions */ #define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ #define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ #define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ #define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ #define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: EN Position */ #define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: EN Mask */ /* MPU Memory Attribute Indirection Register 0 Definitions */ #define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ #define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ #define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ #define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ #define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ #define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ #define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ #define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ /* MPU Memory Attribute Indirection Register 1 Definitions */ #define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ #define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ #define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ #define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ #define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ #define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ #define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ #define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ /*@} end of group CMSIS_MPU */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \ingroup CMSIS_core_register \defgroup CMSIS_SAU Security Attribution Unit (SAU) \brief Type definitions for the Security Attribution Unit (SAU) @{ */ /** \brief Structure type to access the Security Attribution Unit (SAU). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ #endif } SAU_Type; /* SAU Control Register Definitions */ #define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ #define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ #define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ #define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ /* SAU Type Register Definitions */ #define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ #define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) /* SAU Region Number Register Definitions */ #define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ #define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ /* SAU Region Base Address Register Definitions */ #define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ #define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ /* SAU Region Limit Address Register Definitions */ #define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ #define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ #define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ #define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ #define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ #define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ /*@} end of group CMSIS_SAU */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ uint32_t RESERVED4[1U]; __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ #define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register */ #define CoreDebug_DEMCR_DWTENA_Pos 24U /*!< CoreDebug DEMCR: DWTENA Position */ #define CoreDebug_DEMCR_DWTENA_Msk (1UL << CoreDebug_DEMCR_DWTENA_Pos) /*!< CoreDebug DEMCR: DWTENA Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /* Debug Authentication Control Register Definitions */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ /* Debug Security Control and Status Register Definitions */ #define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ #define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ #define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ #define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ #define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ #define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ #endif #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else /*#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping not available for Cortex-M23 */ /*#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping not available for Cortex-M23 */ #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* Special LR values for Secure/Non-Secure call handling and exception handling */ /* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ #define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ /* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ #define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ #define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ #define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ #define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ #define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ #define EXC_RETURN_SPSEL (0x00000002UL) /* bit [1] stack pointer used to restore context: 0=MSP 1=PSP */ #define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ /* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ #define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ #else #define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ #endif /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Get Interrupt Target State \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure \return 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Target State \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Clear Interrupt Target State \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable Interrupt (non-secure) \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status (non-secure) \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt (non-secure) \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Pending Interrupt (non-secure) \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt (non-secure) \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt (non-secure) \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt (non-secure) \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority (non-secure) \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every non-secure processor exception. */ __STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC_NS->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB_NS->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB_NS->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority (non-secure) \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB_NS->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } #endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv8.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## SAU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SAUFunctions SAU Functions \brief Functions that configure the SAU. @{ */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable SAU \details Enables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Enable(void) { SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); } /** \brief Disable SAU \details Disables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Disable(void) { SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_SAUFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief System Tick Configuration (non-secure) \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function TZ_SysTick_Config_NS is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM23_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm3.h ================================================ /**************************************************************************//** * @file core_cm3.h * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File * @version V5.0.8 * @date 04. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM3_H_GENERIC #define __CORE_CM3_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M3 @{ */ #include "cmsis_version.h" /* CMSIS CM3 definitions */ #define __CM3_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM3_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16U) | \ __CM3_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (3U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM3_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM3_H_DEPENDANT #define __CORE_CM3_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM3_REV #define __CM3_REV 0x0200U #warning "__CM3_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M3 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:1; /*!< bit: 9 Reserved */ uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ uint32_t _reserved1:8; /*!< bit: 16..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit */ uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ #define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ #define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[24U]; __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[24U]; __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[24U]; __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[24U]; __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[56U]; __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED5[644U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ uint32_t RESERVED0[5U]; __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #if defined (__CM3_REV) && (__CM3_REV < 0x0201U) /* core r2p1 */ #define SCB_VTOR_TBLBASE_Pos 29U /*!< SCB VTOR: TBLBASE Position */ #define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #else #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ #define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ #define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ #define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ #define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ #if defined (__CM3_REV) && (__CM3_REV >= 0x200U) __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ #else uint32_t RESERVED1[1U]; #endif } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ #define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ #define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ #define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ #define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ #define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[6U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ #define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED0[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED1[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Mask Register Definitions */ #define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ #define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ #define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ #define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ #define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ #define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ #define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ #define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ #define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ #define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ #define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ #define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ #define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ #define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration ETM Data Register Definitions (FIFO0) */ #define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ #define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ #define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ #define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ #define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ #define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ #define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ #define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ #define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ #define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ #define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ #define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ #define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ #define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ /* TPI ITATBCTR2 Register Definitions */ #define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ #define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ #define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ #define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ /* TPI Integration ITM Data Register Definitions (FIFO1) */ #define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ #define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ #define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ #define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ #define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ #define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ #define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ #define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ #define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ #define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ #define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ #define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ #define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ #define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ /* TPI ITATBCTR0 Register Definitions */ #define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ #define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ #define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ #define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ #define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ #define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ #define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM3_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm33.h ================================================ /**************************************************************************//** * @file core_cm33.h * @brief CMSIS Cortex-M33 Core Peripheral Access Layer Header File * @version V5.0.9 * @date 06. July 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM33_H_GENERIC #define __CORE_CM33_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M33 @{ */ #include "cmsis_version.h" /* CMSIS CM33 definitions */ #define __CM33_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM33_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM33_CMSIS_VERSION ((__CM33_CMSIS_VERSION_MAIN << 16U) | \ __CM33_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (33U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. */ #if defined ( __CC_ARM ) #if defined (__TARGET_FPU_VFP) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined (__ARM_PCS_VFP) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __ICCARM__ ) #if defined (__ARMVFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) #define __DSP_USED 1U #else #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" #define __DSP_USED 0U #endif #else #define __DSP_USED 0U #endif #elif defined ( __TI_ARM__ ) #if defined (__TI_VFP_SUPPORT__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TASKING__ ) #if defined (__FPU_VFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM33_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM33_H_DEPENDANT #define __CORE_CM33_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM33_REV #define __CM33_REV 0x0000U #warning "__CM33_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT 0U #warning "__SAUREGION_PRESENT not defined in device header file; using default!" #endif #ifndef __DSP_PRESENT #define __DSP_PRESENT 0U #warning "__DSP_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M33 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core SAU Register - Core FPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ #define APSR_GE_Pos 16U /*!< APSR: GE Position */ #define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ #define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ #define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ #define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ #define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ #define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[16U]; __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[16U]; __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[16U]; __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[16U]; __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[16U]; __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ uint32_t RESERVED5[16U]; __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED6[580U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ uint32_t RESERVED3[92U]; __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ uint32_t RESERVED4[15U]; __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ uint32_t RESERVED5[1U]; __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ uint32_t RESERVED6[1U]; __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ uint32_t RESERVED7[6U]; __IOM uint32_t ITCMCR; /*!< Offset: 0x290 (R/W) Instruction Tightly-Coupled Memory Control Register */ __IOM uint32_t DTCMCR; /*!< Offset: 0x294 (R/W) Data Tightly-Coupled Memory Control Registers */ __IOM uint32_t AHBPCR; /*!< Offset: 0x298 (R/W) AHBP Control Register */ __IOM uint32_t CACR; /*!< Offset: 0x29C (R/W) L1 Cache Control Register */ __IOM uint32_t AHBSCR; /*!< Offset: 0x2A0 (R/W) AHB Slave Control Register */ uint32_t RESERVED8[1U]; __IOM uint32_t ABFSR; /*!< Offset: 0x2A8 (R/W) Auxiliary Bus Fault Status Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ #define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ #define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ #define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ #define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ #define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ #define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ #define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ #define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ #define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ #define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ #define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ #define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ #define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ #define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ #define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ #define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ #define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ #define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ #define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ #define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ #define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ #define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ #define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ #define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ #define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /* SCB Non-Secure Access Control Register Definitions */ #define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ #define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ #define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ #define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ #define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ #define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ /* SCB Cache Level ID Register Definitions */ #define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ #define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ #define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ #define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ /* SCB Cache Type Register Definitions */ #define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ #define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ #define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ #define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ #define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ #define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ #define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ #define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ #define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ #define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ /* SCB Cache Size ID Register Definitions */ #define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ #define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ #define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ #define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ #define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ #define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ #define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ #define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ #define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ #define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ #define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ #define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ #define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ #define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ /* SCB Cache Size Selection Register Definitions */ #define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ #define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ #define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ #define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ /* SCB Software Triggered Interrupt Register Definitions */ #define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ #define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ /* SCB D-Cache Invalidate by Set-way Register Definitions */ #define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ #define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ #define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ #define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ /* SCB D-Cache Clean by Set-way Register Definitions */ #define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ #define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ #define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ #define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ /* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ #define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ #define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ #define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ #define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ /* Instruction Tightly-Coupled Memory Control Register Definitions */ #define SCB_ITCMCR_SZ_Pos 3U /*!< SCB ITCMCR: SZ Position */ #define SCB_ITCMCR_SZ_Msk (0xFUL << SCB_ITCMCR_SZ_Pos) /*!< SCB ITCMCR: SZ Mask */ #define SCB_ITCMCR_RETEN_Pos 2U /*!< SCB ITCMCR: RETEN Position */ #define SCB_ITCMCR_RETEN_Msk (1UL << SCB_ITCMCR_RETEN_Pos) /*!< SCB ITCMCR: RETEN Mask */ #define SCB_ITCMCR_RMW_Pos 1U /*!< SCB ITCMCR: RMW Position */ #define SCB_ITCMCR_RMW_Msk (1UL << SCB_ITCMCR_RMW_Pos) /*!< SCB ITCMCR: RMW Mask */ #define SCB_ITCMCR_EN_Pos 0U /*!< SCB ITCMCR: EN Position */ #define SCB_ITCMCR_EN_Msk (1UL /*<< SCB_ITCMCR_EN_Pos*/) /*!< SCB ITCMCR: EN Mask */ /* Data Tightly-Coupled Memory Control Register Definitions */ #define SCB_DTCMCR_SZ_Pos 3U /*!< SCB DTCMCR: SZ Position */ #define SCB_DTCMCR_SZ_Msk (0xFUL << SCB_DTCMCR_SZ_Pos) /*!< SCB DTCMCR: SZ Mask */ #define SCB_DTCMCR_RETEN_Pos 2U /*!< SCB DTCMCR: RETEN Position */ #define SCB_DTCMCR_RETEN_Msk (1UL << SCB_DTCMCR_RETEN_Pos) /*!< SCB DTCMCR: RETEN Mask */ #define SCB_DTCMCR_RMW_Pos 1U /*!< SCB DTCMCR: RMW Position */ #define SCB_DTCMCR_RMW_Msk (1UL << SCB_DTCMCR_RMW_Pos) /*!< SCB DTCMCR: RMW Mask */ #define SCB_DTCMCR_EN_Pos 0U /*!< SCB DTCMCR: EN Position */ #define SCB_DTCMCR_EN_Msk (1UL /*<< SCB_DTCMCR_EN_Pos*/) /*!< SCB DTCMCR: EN Mask */ /* AHBP Control Register Definitions */ #define SCB_AHBPCR_SZ_Pos 1U /*!< SCB AHBPCR: SZ Position */ #define SCB_AHBPCR_SZ_Msk (7UL << SCB_AHBPCR_SZ_Pos) /*!< SCB AHBPCR: SZ Mask */ #define SCB_AHBPCR_EN_Pos 0U /*!< SCB AHBPCR: EN Position */ #define SCB_AHBPCR_EN_Msk (1UL /*<< SCB_AHBPCR_EN_Pos*/) /*!< SCB AHBPCR: EN Mask */ /* L1 Cache Control Register Definitions */ #define SCB_CACR_FORCEWT_Pos 2U /*!< SCB CACR: FORCEWT Position */ #define SCB_CACR_FORCEWT_Msk (1UL << SCB_CACR_FORCEWT_Pos) /*!< SCB CACR: FORCEWT Mask */ #define SCB_CACR_ECCEN_Pos 1U /*!< SCB CACR: ECCEN Position */ #define SCB_CACR_ECCEN_Msk (1UL << SCB_CACR_ECCEN_Pos) /*!< SCB CACR: ECCEN Mask */ #define SCB_CACR_SIWT_Pos 0U /*!< SCB CACR: SIWT Position */ #define SCB_CACR_SIWT_Msk (1UL /*<< SCB_CACR_SIWT_Pos*/) /*!< SCB CACR: SIWT Mask */ /* AHBS Control Register Definitions */ #define SCB_AHBSCR_INITCOUNT_Pos 11U /*!< SCB AHBSCR: INITCOUNT Position */ #define SCB_AHBSCR_INITCOUNT_Msk (0x1FUL << SCB_AHBPCR_INITCOUNT_Pos) /*!< SCB AHBSCR: INITCOUNT Mask */ #define SCB_AHBSCR_TPRI_Pos 2U /*!< SCB AHBSCR: TPRI Position */ #define SCB_AHBSCR_TPRI_Msk (0x1FFUL << SCB_AHBPCR_TPRI_Pos) /*!< SCB AHBSCR: TPRI Mask */ #define SCB_AHBSCR_CTL_Pos 0U /*!< SCB AHBSCR: CTL Position*/ #define SCB_AHBSCR_CTL_Msk (3UL /*<< SCB_AHBPCR_CTL_Pos*/) /*!< SCB AHBSCR: CTL Mask */ /* Auxiliary Bus Fault Status Register Definitions */ #define SCB_ABFSR_AXIMTYPE_Pos 8U /*!< SCB ABFSR: AXIMTYPE Position*/ #define SCB_ABFSR_AXIMTYPE_Msk (3UL << SCB_ABFSR_AXIMTYPE_Pos) /*!< SCB ABFSR: AXIMTYPE Mask */ #define SCB_ABFSR_EPPB_Pos 4U /*!< SCB ABFSR: EPPB Position*/ #define SCB_ABFSR_EPPB_Msk (1UL << SCB_ABFSR_EPPB_Pos) /*!< SCB ABFSR: EPPB Mask */ #define SCB_ABFSR_AXIM_Pos 3U /*!< SCB ABFSR: AXIM Position*/ #define SCB_ABFSR_AXIM_Msk (1UL << SCB_ABFSR_AXIM_Pos) /*!< SCB ABFSR: AXIM Mask */ #define SCB_ABFSR_AHBP_Pos 2U /*!< SCB ABFSR: AHBP Position*/ #define SCB_ABFSR_AHBP_Msk (1UL << SCB_ABFSR_AHBP_Pos) /*!< SCB ABFSR: AHBP Mask */ #define SCB_ABFSR_DTCM_Pos 1U /*!< SCB ABFSR: DTCM Position*/ #define SCB_ABFSR_DTCM_Msk (1UL << SCB_ABFSR_DTCM_Pos) /*!< SCB ABFSR: DTCM Mask */ #define SCB_ABFSR_ITCM_Pos 0U /*!< SCB ABFSR: ITCM Position*/ #define SCB_ABFSR_ITCM_Msk (1UL /*<< SCB_ABFSR_ITCM_Pos*/) /*!< SCB ABFSR: ITCM Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[1U]; __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ uint32_t RESERVED6[4U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Stimulus Port Register Definitions */ #define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ #define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ #define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ #define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ #define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ #define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ #define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ uint32_t RESERVED1[1U]; __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ uint32_t RESERVED3[1U]; __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED4[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ uint32_t RESERVED5[1U]; __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED6[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ uint32_t RESERVED7[1U]; __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED8[1U]; __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ uint32_t RESERVED9[1U]; __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ uint32_t RESERVED10[1U]; __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ uint32_t RESERVED11[1U]; __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ uint32_t RESERVED12[1U]; __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ uint32_t RESERVED13[1U]; __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ uint32_t RESERVED14[1U]; __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ uint32_t RESERVED15[1U]; __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ uint32_t RESERVED16[1U]; __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ uint32_t RESERVED17[1U]; __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ uint32_t RESERVED18[1U]; __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ uint32_t RESERVED19[1U]; __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ uint32_t RESERVED20[1U]; __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ uint32_t RESERVED21[1U]; __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ uint32_t RESERVED22[1U]; __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ uint32_t RESERVED23[1U]; __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ uint32_t RESERVED24[1U]; __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ uint32_t RESERVED25[1U]; __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ uint32_t RESERVED26[1U]; __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ uint32_t RESERVED27[1U]; __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ uint32_t RESERVED28[1U]; __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ uint32_t RESERVED29[1U]; __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ uint32_t RESERVED30[1U]; __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ uint32_t RESERVED31[1U]; __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ uint32_t RESERVED32[934U]; __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ uint32_t RESERVED33[1U]; __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ #define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ #define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ #define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ #define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ #define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ #define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration Test FIFO Test Data 0 Register Definitions */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ #define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ #define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ #define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ #define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ #define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ /* TPI Integration Test ATB Control Register 2 Register Definitions */ #define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ #define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ #define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ #define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ #define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ #define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ #define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ #define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ /* TPI Integration Test FIFO Test Data 1 Register Definitions */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ #define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ #define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ #define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ #define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ #define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ /* TPI Integration Test ATB Control Register 0 Definitions */ #define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ #define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ #define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ #define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ #define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ #define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ #define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ #define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ #define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ uint32_t RESERVED0[1]; union { __IOM uint32_t MAIR[2]; struct { __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ }; }; } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ #define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ #define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ #define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ #define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ #define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ #define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ #define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ /* MPU Region Limit Address Register Definitions */ #define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ #define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ #define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ #define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ #define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ #define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ /* MPU Memory Attribute Indirection Register 0 Definitions */ #define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ #define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ #define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ #define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ #define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ #define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ #define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ #define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ /* MPU Memory Attribute Indirection Register 1 Definitions */ #define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ #define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ #define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ #define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ #define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ #define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ #define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ #define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ /*@} end of group CMSIS_MPU */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \ingroup CMSIS_core_register \defgroup CMSIS_SAU Security Attribution Unit (SAU) \brief Type definitions for the Security Attribution Unit (SAU) @{ */ /** \brief Structure type to access the Security Attribution Unit (SAU). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ #else uint32_t RESERVED0[3]; #endif __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ } SAU_Type; /* SAU Control Register Definitions */ #define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ #define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ #define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ #define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ /* SAU Type Register Definitions */ #define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ #define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) /* SAU Region Number Register Definitions */ #define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ #define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ /* SAU Region Base Address Register Definitions */ #define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ #define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ /* SAU Region Limit Address Register Definitions */ #define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ #define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ #define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ #define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ #define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ #define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ /* Secure Fault Status Register Definitions */ #define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ #define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ #define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ #define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ #define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ #define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ #define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ #define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ #define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ #define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ #define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ #define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ #define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ #define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ #define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ #define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ /*@} end of group CMSIS_SAU */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_FPU Floating Point Unit (FPU) \brief Type definitions for the Floating Point Unit (FPU) @{ */ /** \brief Structure type to access the Floating Point Unit (FPU). */ typedef struct { uint32_t RESERVED0[1U]; __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ } FPU_Type; /* Floating-Point Context Control Register Definitions */ #define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ #define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ #define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ #define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ #define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ #define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ #define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ #define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ #define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ #define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ #define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ #define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ #define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ #define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ #define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ #define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ #define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ #define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ #define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ #define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ #define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ #define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ #define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ #define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ #define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ #define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ #define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ #define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ #define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ #define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ #define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ #define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ #define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ #define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ /* Floating-Point Context Address Register Definitions */ #define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ #define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ /* Floating-Point Default Status Control Register Definitions */ #define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ #define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ #define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ #define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ #define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ #define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ #define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ #define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ /* Media and FP Feature Register 0 Definitions */ #define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ #define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ #define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ #define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ #define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ #define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ #define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ #define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ #define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ #define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ #define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ #define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ #define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ #define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ #define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ #define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ /* Media and FP Feature Register 1 Definitions */ #define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ #define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ #define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ #define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ #define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ #define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ #define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ #define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ /*@} end of group CMSIS_FPU */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ uint32_t RESERVED4[1U]; __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ #define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /* Debug Authentication Control Register Definitions */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ /* Debug Security Control and Status Register Definitions */ #define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ #define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ #define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ #define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ #define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ #define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ #endif #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ #endif #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* Special LR values for Secure/Non-Secure call handling and exception handling */ /* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ #define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ /* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ #define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ #define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ #define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ #define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ #define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ #define EXC_RETURN_SPSEL (0x00000002UL) /* bit [1] stack pointer used to restore context: 0=MSP 1=PSP */ #define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ /* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ #define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ #else #define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ #endif /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << 8U) ); /* Insert write key and priority group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Get Interrupt Target State \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure \return 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Target State \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Clear Interrupt Target State \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Set Priority Grouping (non-secure) \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB_NS->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ SCB_NS->AIRCR = reg_value; } /** \brief Get Priority Grouping (non-secure) \details Reads the priority grouping field from the non-secure NVIC when in secure state. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) { return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt (non-secure) \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status (non-secure) \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt (non-secure) \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Pending Interrupt (non-secure) \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt (non-secure) \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt (non-secure) \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt (non-secure) \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority (non-secure) \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every non-secure processor exception. */ __STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority (non-secure) \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } #endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv8.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { uint32_t mvfr0; mvfr0 = FPU->MVFR0; if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) { return 2U; /* Double + Single precision FPU */ } else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) { return 1U; /* Single precision FPU */ } else { return 0U; /* No FPU */ } } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## SAU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SAUFunctions SAU Functions \brief Functions that configure the SAU. @{ */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable SAU \details Enables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Enable(void) { SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); } /** \brief Disable SAU \details Disables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Disable(void) { SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_SAUFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief System Tick Configuration (non-secure) \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function TZ_SysTick_Config_NS is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM33_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm4.h ================================================ /**************************************************************************//** * @file core_cm4.h * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File * @version V5.0.8 * @date 04. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM4_H_GENERIC #define __CORE_CM4_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M4 @{ */ #include "cmsis_version.h" /* CMSIS CM4 definitions */ #define __CM4_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM4_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16U) | \ __CM4_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (4U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. */ #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM4_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM4_H_DEPENDANT #define __CORE_CM4_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM4_REV #define __CM4_REV 0x0000U #warning "__CM4_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M4 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core FPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ #define APSR_GE_Pos 16U /*!< APSR: GE Position */ #define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:1; /*!< bit: 9 Reserved */ uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit */ uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ #define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ #define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ #define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ #define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ #define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[24U]; __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[24U]; __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[24U]; __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[24U]; __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[56U]; __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED5[644U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ uint32_t RESERVED0[5U]; __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ #define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ #define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ #define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ #define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ #define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ #define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_DISOOFP_Pos 9U /*!< ACTLR: DISOOFP Position */ #define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ #define SCnSCB_ACTLR_DISFPCA_Pos 8U /*!< ACTLR: DISFPCA Position */ #define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ #define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ #define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ #define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ #define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ #define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ #define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[6U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ #define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED0[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED1[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Mask Register Definitions */ #define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ #define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ #define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ #define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ #define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ #define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ #define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ #define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ #define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ #define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ #define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ #define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ #define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ #define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration ETM Data Register Definitions (FIFO0) */ #define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ #define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ #define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ #define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ #define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ #define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ #define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ #define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ #define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ #define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ #define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ #define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ #define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ #define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ /* TPI ITATBCTR2 Register Definitions */ #define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ #define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ #define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ #define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ /* TPI Integration ITM Data Register Definitions (FIFO1) */ #define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ #define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ #define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ #define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ #define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ #define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ #define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ #define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ #define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ #define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ #define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ #define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ #define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ #define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ /* TPI ITATBCTR0 Register Definitions */ #define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ #define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ #define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ #define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ #define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ #define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ #define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /* defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_FPU Floating Point Unit (FPU) \brief Type definitions for the Floating Point Unit (FPU) @{ */ /** \brief Structure type to access the Floating Point Unit (FPU). */ typedef struct { uint32_t RESERVED0[1U]; __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ } FPU_Type; /* Floating-Point Context Control Register Definitions */ #define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ #define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ #define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ #define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ #define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ #define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ #define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ #define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ #define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ #define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ #define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ #define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ #define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ #define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ #define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ #define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ #define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ #define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ /* Floating-Point Context Address Register Definitions */ #define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ #define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ /* Floating-Point Default Status Control Register Definitions */ #define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ #define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ #define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ #define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ #define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ #define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ #define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ #define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ /* Media and FP Feature Register 0 Definitions */ #define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ #define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ #define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ #define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ #define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ #define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ #define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ #define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ #define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ #define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ #define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ #define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ #define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ #define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ #define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ #define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ /* Media and FP Feature Register 1 Definitions */ #define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ #define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ #define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ #define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ #define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ #define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ #define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ #define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ /*@} end of group CMSIS_FPU */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ #define EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */ #define EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */ #define EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */ /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { uint32_t mvfr0; mvfr0 = FPU->MVFR0; if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) { return 1U; /* Single precision FPU */ } else { return 0U; /* No FPU */ } } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM4_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_cm7.h ================================================ /**************************************************************************//** * @file core_cm7.h * @brief CMSIS Cortex-M7 Core Peripheral Access Layer Header File * @version V5.0.8 * @date 04. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM7_H_GENERIC #define __CORE_CM7_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M7 @{ */ #include "cmsis_version.h" /* CMSIS CM7 definitions */ #define __CM7_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM7_CMSIS_VERSION_SUB ( __CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM7_CMSIS_VERSION ((__CM7_CMSIS_VERSION_MAIN << 16U) | \ __CM7_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (7U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. */ #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) #define __FPU_USED 1U #else #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #define __FPU_USED 0U #endif #else #define __FPU_USED 0U #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM7_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM7_H_DEPENDANT #define __CORE_CM7_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM7_REV #define __CM7_REV 0x0000U #warning "__CM7_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __ICACHE_PRESENT #define __ICACHE_PRESENT 0U #warning "__ICACHE_PRESENT not defined in device header file; using default!" #endif #ifndef __DCACHE_PRESENT #define __DCACHE_PRESENT 0U #warning "__DCACHE_PRESENT not defined in device header file; using default!" #endif #ifndef __DTCM_PRESENT #define __DTCM_PRESENT 0U #warning "__DTCM_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M7 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core FPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ #define APSR_GE_Pos 16U /*!< APSR: GE Position */ #define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:1; /*!< bit: 9 Reserved */ uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit */ uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ #define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ #define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ #define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ #define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ #define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[24U]; __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[24U]; __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[24U]; __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[24U]; __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[56U]; __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED5[644U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ID_AFR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t ID_MFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ID_ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ uint32_t RESERVED0[1U]; __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ uint32_t RESERVED3[93U]; __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ uint32_t RESERVED4[15U]; __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ uint32_t RESERVED5[1U]; __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ uint32_t RESERVED6[1U]; __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ uint32_t RESERVED7[6U]; __IOM uint32_t ITCMCR; /*!< Offset: 0x290 (R/W) Instruction Tightly-Coupled Memory Control Register */ __IOM uint32_t DTCMCR; /*!< Offset: 0x294 (R/W) Data Tightly-Coupled Memory Control Registers */ __IOM uint32_t AHBPCR; /*!< Offset: 0x298 (R/W) AHBP Control Register */ __IOM uint32_t CACR; /*!< Offset: 0x29C (R/W) L1 Cache Control Register */ __IOM uint32_t AHBSCR; /*!< Offset: 0x2A0 (R/W) AHB Slave Control Register */ uint32_t RESERVED8[1U]; __IOM uint32_t ABFSR; /*!< Offset: 0x2A8 (R/W) Auxiliary Bus Fault Status Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ #define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ #define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: Branch prediction enable bit Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: Branch prediction enable bit Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: Instruction cache enable bit Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: Instruction cache enable bit Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: Cache enable bit Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: Cache enable bit Mask */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ #define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ #define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ #define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ #define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /* SCB Cache Level ID Register Definitions */ #define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ #define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ #define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ #define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ /* SCB Cache Type Register Definitions */ #define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ #define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ #define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ #define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ #define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ #define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ #define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ #define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ #define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ #define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ /* SCB Cache Size ID Register Definitions */ #define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ #define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ #define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ #define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ #define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ #define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ #define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ #define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ #define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ #define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ #define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ #define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ #define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ #define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ /* SCB Cache Size Selection Register Definitions */ #define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ #define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ #define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ #define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ /* SCB Software Triggered Interrupt Register Definitions */ #define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ #define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ /* SCB D-Cache Invalidate by Set-way Register Definitions */ #define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ #define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ #define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ #define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ /* SCB D-Cache Clean by Set-way Register Definitions */ #define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ #define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ #define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ #define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ /* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ #define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ #define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ #define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ #define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ /* Instruction Tightly-Coupled Memory Control Register Definitions */ #define SCB_ITCMCR_SZ_Pos 3U /*!< SCB ITCMCR: SZ Position */ #define SCB_ITCMCR_SZ_Msk (0xFUL << SCB_ITCMCR_SZ_Pos) /*!< SCB ITCMCR: SZ Mask */ #define SCB_ITCMCR_RETEN_Pos 2U /*!< SCB ITCMCR: RETEN Position */ #define SCB_ITCMCR_RETEN_Msk (1UL << SCB_ITCMCR_RETEN_Pos) /*!< SCB ITCMCR: RETEN Mask */ #define SCB_ITCMCR_RMW_Pos 1U /*!< SCB ITCMCR: RMW Position */ #define SCB_ITCMCR_RMW_Msk (1UL << SCB_ITCMCR_RMW_Pos) /*!< SCB ITCMCR: RMW Mask */ #define SCB_ITCMCR_EN_Pos 0U /*!< SCB ITCMCR: EN Position */ #define SCB_ITCMCR_EN_Msk (1UL /*<< SCB_ITCMCR_EN_Pos*/) /*!< SCB ITCMCR: EN Mask */ /* Data Tightly-Coupled Memory Control Register Definitions */ #define SCB_DTCMCR_SZ_Pos 3U /*!< SCB DTCMCR: SZ Position */ #define SCB_DTCMCR_SZ_Msk (0xFUL << SCB_DTCMCR_SZ_Pos) /*!< SCB DTCMCR: SZ Mask */ #define SCB_DTCMCR_RETEN_Pos 2U /*!< SCB DTCMCR: RETEN Position */ #define SCB_DTCMCR_RETEN_Msk (1UL << SCB_DTCMCR_RETEN_Pos) /*!< SCB DTCMCR: RETEN Mask */ #define SCB_DTCMCR_RMW_Pos 1U /*!< SCB DTCMCR: RMW Position */ #define SCB_DTCMCR_RMW_Msk (1UL << SCB_DTCMCR_RMW_Pos) /*!< SCB DTCMCR: RMW Mask */ #define SCB_DTCMCR_EN_Pos 0U /*!< SCB DTCMCR: EN Position */ #define SCB_DTCMCR_EN_Msk (1UL /*<< SCB_DTCMCR_EN_Pos*/) /*!< SCB DTCMCR: EN Mask */ /* AHBP Control Register Definitions */ #define SCB_AHBPCR_SZ_Pos 1U /*!< SCB AHBPCR: SZ Position */ #define SCB_AHBPCR_SZ_Msk (7UL << SCB_AHBPCR_SZ_Pos) /*!< SCB AHBPCR: SZ Mask */ #define SCB_AHBPCR_EN_Pos 0U /*!< SCB AHBPCR: EN Position */ #define SCB_AHBPCR_EN_Msk (1UL /*<< SCB_AHBPCR_EN_Pos*/) /*!< SCB AHBPCR: EN Mask */ /* L1 Cache Control Register Definitions */ #define SCB_CACR_FORCEWT_Pos 2U /*!< SCB CACR: FORCEWT Position */ #define SCB_CACR_FORCEWT_Msk (1UL << SCB_CACR_FORCEWT_Pos) /*!< SCB CACR: FORCEWT Mask */ #define SCB_CACR_ECCEN_Pos 1U /*!< SCB CACR: ECCEN Position */ #define SCB_CACR_ECCEN_Msk (1UL << SCB_CACR_ECCEN_Pos) /*!< SCB CACR: ECCEN Mask */ #define SCB_CACR_SIWT_Pos 0U /*!< SCB CACR: SIWT Position */ #define SCB_CACR_SIWT_Msk (1UL /*<< SCB_CACR_SIWT_Pos*/) /*!< SCB CACR: SIWT Mask */ /* AHBS Control Register Definitions */ #define SCB_AHBSCR_INITCOUNT_Pos 11U /*!< SCB AHBSCR: INITCOUNT Position */ #define SCB_AHBSCR_INITCOUNT_Msk (0x1FUL << SCB_AHBPCR_INITCOUNT_Pos) /*!< SCB AHBSCR: INITCOUNT Mask */ #define SCB_AHBSCR_TPRI_Pos 2U /*!< SCB AHBSCR: TPRI Position */ #define SCB_AHBSCR_TPRI_Msk (0x1FFUL << SCB_AHBPCR_TPRI_Pos) /*!< SCB AHBSCR: TPRI Mask */ #define SCB_AHBSCR_CTL_Pos 0U /*!< SCB AHBSCR: CTL Position*/ #define SCB_AHBSCR_CTL_Msk (3UL /*<< SCB_AHBPCR_CTL_Pos*/) /*!< SCB AHBSCR: CTL Mask */ /* Auxiliary Bus Fault Status Register Definitions */ #define SCB_ABFSR_AXIMTYPE_Pos 8U /*!< SCB ABFSR: AXIMTYPE Position*/ #define SCB_ABFSR_AXIMTYPE_Msk (3UL << SCB_ABFSR_AXIMTYPE_Pos) /*!< SCB ABFSR: AXIMTYPE Mask */ #define SCB_ABFSR_EPPB_Pos 4U /*!< SCB ABFSR: EPPB Position*/ #define SCB_ABFSR_EPPB_Msk (1UL << SCB_ABFSR_EPPB_Pos) /*!< SCB ABFSR: EPPB Mask */ #define SCB_ABFSR_AXIM_Pos 3U /*!< SCB ABFSR: AXIM Position*/ #define SCB_ABFSR_AXIM_Msk (1UL << SCB_ABFSR_AXIM_Pos) /*!< SCB ABFSR: AXIM Mask */ #define SCB_ABFSR_AHBP_Pos 2U /*!< SCB ABFSR: AHBP Position*/ #define SCB_ABFSR_AHBP_Msk (1UL << SCB_ABFSR_AHBP_Pos) /*!< SCB ABFSR: AHBP Mask */ #define SCB_ABFSR_DTCM_Pos 1U /*!< SCB ABFSR: DTCM Position*/ #define SCB_ABFSR_DTCM_Msk (1UL << SCB_ABFSR_DTCM_Pos) /*!< SCB ABFSR: DTCM Mask */ #define SCB_ABFSR_ITCM_Pos 0U /*!< SCB ABFSR: ITCM Position*/ #define SCB_ABFSR_ITCM_Msk (1UL /*<< SCB_ABFSR_ITCM_Pos*/) /*!< SCB ABFSR: ITCM Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_DISITMATBFLUSH_Pos 12U /*!< ACTLR: DISITMATBFLUSH Position */ #define SCnSCB_ACTLR_DISITMATBFLUSH_Msk (1UL << SCnSCB_ACTLR_DISITMATBFLUSH_Pos) /*!< ACTLR: DISITMATBFLUSH Mask */ #define SCnSCB_ACTLR_DISRAMODE_Pos 11U /*!< ACTLR: DISRAMODE Position */ #define SCnSCB_ACTLR_DISRAMODE_Msk (1UL << SCnSCB_ACTLR_DISRAMODE_Pos) /*!< ACTLR: DISRAMODE Mask */ #define SCnSCB_ACTLR_FPEXCODIS_Pos 10U /*!< ACTLR: FPEXCODIS Position */ #define SCnSCB_ACTLR_FPEXCODIS_Msk (1UL << SCnSCB_ACTLR_FPEXCODIS_Pos) /*!< ACTLR: FPEXCODIS Mask */ #define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ #define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ #define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ #define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[6U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ #define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED0[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED1[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED3[981U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( W) Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Mask Register Definitions */ #define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ #define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ #define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ #define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ #define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ #define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ #define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ #define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ #define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ #define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ #define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ #define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ #define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ #define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration ETM Data Register Definitions (FIFO0) */ #define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ #define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ #define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ #define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ #define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ #define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ #define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ #define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ #define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ #define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ #define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ #define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ #define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ #define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ /* TPI ITATBCTR2 Register Definitions */ #define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ #define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ #define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ #define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ /* TPI Integration ITM Data Register Definitions (FIFO1) */ #define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ #define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ #define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ #define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ #define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ #define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ #define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ #define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ #define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ #define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ #define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ #define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ #define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ #define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ /* TPI ITATBCTR0 Register Definitions */ #define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ #define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ #define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ #define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ #define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ #define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ #define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /* defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_FPU Floating Point Unit (FPU) \brief Type definitions for the Floating Point Unit (FPU) @{ */ /** \brief Structure type to access the Floating Point Unit (FPU). */ typedef struct { uint32_t RESERVED0[1U]; __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ __IM uint32_t MVFR2; /*!< Offset: 0x018 (R/ ) Media and FP Feature Register 2 */ } FPU_Type; /* Floating-Point Context Control Register Definitions */ #define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ #define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ #define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ #define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ #define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ #define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ #define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ #define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ #define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ #define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ #define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ #define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ #define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ #define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ #define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ #define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ #define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ #define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ /* Floating-Point Context Address Register Definitions */ #define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ #define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ /* Floating-Point Default Status Control Register Definitions */ #define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ #define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ #define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ #define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ #define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ #define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ #define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ #define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ /* Media and FP Feature Register 0 Definitions */ #define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ #define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ #define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ #define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ #define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ #define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ #define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ #define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ #define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ #define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ #define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ #define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ #define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ #define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ #define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ #define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ /* Media and FP Feature Register 1 Definitions */ #define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ #define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ #define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ #define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ #define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ #define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ #define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ #define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ /* Media and FP Feature Register 2 Definitions */ /*@} end of group CMSIS_FPU */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ #define EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */ #define EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */ #define EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */ /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { uint32_t mvfr0; mvfr0 = SCB->MVFR0; if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) { return 2U; /* Double + Single precision FPU */ } else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) { return 1U; /* Single precision FPU */ } else { return 0U; /* No FPU */ } } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## Cache functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_CacheFunctions Cache Functions \brief Functions that configure Instruction and Data cache. @{ */ /* Cache Size ID Register Macros */ #define CCSIDR_WAYS(x) (((x) & SCB_CCSIDR_ASSOCIATIVITY_Msk) >> SCB_CCSIDR_ASSOCIATIVITY_Pos) #define CCSIDR_SETS(x) (((x) & SCB_CCSIDR_NUMSETS_Msk ) >> SCB_CCSIDR_NUMSETS_Pos ) /** \brief Enable I-Cache \details Turns on I-Cache */ __STATIC_INLINE void SCB_EnableICache (void) { #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) __DSB(); __ISB(); SCB->ICIALLU = 0UL; /* invalidate I-Cache */ __DSB(); __ISB(); SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */ __DSB(); __ISB(); #endif } /** \brief Disable I-Cache \details Turns off I-Cache */ __STATIC_INLINE void SCB_DisableICache (void) { #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) __DSB(); __ISB(); SCB->CCR &= ~(uint32_t)SCB_CCR_IC_Msk; /* disable I-Cache */ SCB->ICIALLU = 0UL; /* invalidate I-Cache */ __DSB(); __ISB(); #endif } /** \brief Invalidate I-Cache \details Invalidates I-Cache */ __STATIC_INLINE void SCB_InvalidateICache (void) { #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) __DSB(); __ISB(); SCB->ICIALLU = 0UL; __DSB(); __ISB(); #endif } /** \brief Enable D-Cache \details Turns on D-Cache */ __STATIC_INLINE void SCB_EnableDCache (void) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) uint32_t ccsidr; uint32_t sets; uint32_t ways; SCB->CSSELR = 0U; /*(0U << 1U) | 0U;*/ /* Level 1 data cache */ __DSB(); ccsidr = SCB->CCSIDR; /* invalidate D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB(); SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */ __DSB(); __ISB(); #endif } /** \brief Disable D-Cache \details Turns off D-Cache */ __STATIC_INLINE void SCB_DisableDCache (void) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) uint32_t ccsidr; uint32_t sets; uint32_t ways; SCB->CSSELR = 0U; /*(0U << 1U) | 0U;*/ /* Level 1 data cache */ __DSB(); SCB->CCR &= ~(uint32_t)SCB_CCR_DC_Msk; /* disable D-Cache */ __DSB(); ccsidr = SCB->CCSIDR; /* clean & invalidate D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCCISW = (((sets << SCB_DCCISW_SET_Pos) & SCB_DCCISW_SET_Msk) | ((ways << SCB_DCCISW_WAY_Pos) & SCB_DCCISW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB(); __ISB(); #endif } /** \brief Invalidate D-Cache \details Invalidates D-Cache */ __STATIC_INLINE void SCB_InvalidateDCache (void) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) uint32_t ccsidr; uint32_t sets; uint32_t ways; SCB->CSSELR = 0U; /*(0U << 1U) | 0U;*/ /* Level 1 data cache */ __DSB(); ccsidr = SCB->CCSIDR; /* invalidate D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB(); __ISB(); #endif } /** \brief Clean D-Cache \details Cleans D-Cache */ __STATIC_INLINE void SCB_CleanDCache (void) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) uint32_t ccsidr; uint32_t sets; uint32_t ways; SCB->CSSELR = 0U; /*(0U << 1U) | 0U;*/ /* Level 1 data cache */ __DSB(); ccsidr = SCB->CCSIDR; /* clean D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCCSW = (((sets << SCB_DCCSW_SET_Pos) & SCB_DCCSW_SET_Msk) | ((ways << SCB_DCCSW_WAY_Pos) & SCB_DCCSW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB(); __ISB(); #endif } /** \brief Clean & Invalidate D-Cache \details Cleans and Invalidates D-Cache */ __STATIC_INLINE void SCB_CleanInvalidateDCache (void) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) uint32_t ccsidr; uint32_t sets; uint32_t ways; SCB->CSSELR = 0U; /*(0U << 1U) | 0U;*/ /* Level 1 data cache */ __DSB(); ccsidr = SCB->CCSIDR; /* clean & invalidate D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCCISW = (((sets << SCB_DCCISW_SET_Pos) & SCB_DCCISW_SET_Msk) | ((ways << SCB_DCCISW_WAY_Pos) & SCB_DCCISW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB(); __ISB(); #endif } /** \brief D-Cache Invalidate by address \details Invalidates D-Cache for the given address \param[in] addr address (aligned to 32-byte boundary) \param[in] dsize size of memory block (in number of bytes) */ __STATIC_INLINE void SCB_InvalidateDCache_by_Addr (uint32_t *addr, int32_t dsize) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) int32_t op_size = dsize; uint32_t op_addr = (uint32_t)addr; int32_t linesize = 32; /* in Cortex-M7 size of cache line is fixed to 8 words (32 bytes) */ __DSB(); while (op_size > 0) { SCB->DCIMVAC = op_addr; op_addr += (uint32_t)linesize; op_size -= linesize; } __DSB(); __ISB(); #endif } /** \brief D-Cache Clean by address \details Cleans D-Cache for the given address \param[in] addr address (aligned to 32-byte boundary) \param[in] dsize size of memory block (in number of bytes) */ __STATIC_INLINE void SCB_CleanDCache_by_Addr (uint32_t *addr, int32_t dsize) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) int32_t op_size = dsize; uint32_t op_addr = (uint32_t) addr; int32_t linesize = 32; /* in Cortex-M7 size of cache line is fixed to 8 words (32 bytes) */ __DSB(); while (op_size > 0) { SCB->DCCMVAC = op_addr; op_addr += (uint32_t)linesize; op_size -= linesize; } __DSB(); __ISB(); #endif } /** \brief D-Cache Clean and Invalidate by address \details Cleans and invalidates D_Cache for the given address \param[in] addr address (aligned to 32-byte boundary) \param[in] dsize size of memory block (in number of bytes) */ __STATIC_INLINE void SCB_CleanInvalidateDCache_by_Addr (uint32_t *addr, int32_t dsize) { #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) int32_t op_size = dsize; uint32_t op_addr = (uint32_t) addr; int32_t linesize = 32; /* in Cortex-M7 size of cache line is fixed to 8 words (32 bytes) */ __DSB(); while (op_size > 0) { SCB->DCCIMVAC = op_addr; op_addr += (uint32_t)linesize; op_size -= linesize; } __DSB(); __ISB(); #endif } /*@} end of CMSIS_Core_CacheFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM7_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_sc000.h ================================================ /**************************************************************************//** * @file core_sc000.h * @brief CMSIS SC000 Core Peripheral Access Layer Header File * @version V5.0.5 * @date 28. May 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_SC000_H_GENERIC #define __CORE_SC000_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup SC000 @{ */ #include "cmsis_version.h" /* CMSIS SC000 definitions */ #define __SC000_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __SC000_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __SC000_CMSIS_VERSION ((__SC000_CMSIS_VERSION_MAIN << 16U) | \ __SC000_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_SC (000U) /*!< Cortex secure core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_SC000_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_SC000_H_DEPENDANT #define __CORE_SC000_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __SC000_REV #define __SC000_REV 0x0000U #warning "__SC000_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group SC000 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t _reserved0:1; /*!< bit: 0 Reserved */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED0[1U]; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ uint32_t RESERVED1[154U]; __IOM uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Control Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[2U]; __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ } SCnSCB_Type; /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ #define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ } MPU_Type; /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 8U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief SC000 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the SC000 header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else /*#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping not available for SC000 */ /*#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping not available for SC000 */ #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for SC000 */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_SC000_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/core_sc300.h ================================================ /**************************************************************************//** * @file core_sc300.h * @brief CMSIS SC300 Core Peripheral Access Layer Header File * @version V5.0.6 * @date 04. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_SC300_H_GENERIC #define __CORE_SC300_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup SC3000 @{ */ #include "cmsis_version.h" /* CMSIS SC300 definitions */ #define __SC300_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __SC300_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __SC300_CMSIS_VERSION ((__SC300_CMSIS_VERSION_MAIN << 16U) | \ __SC300_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_SC (300U) /*!< Cortex secure core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_SC300_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_SC300_H_DEPENDANT #define __CORE_SC300_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __SC300_REV #define __SC300_REV 0x0000U #warning "__SC300_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group SC300 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:1; /*!< bit: 9 Reserved */ uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ uint32_t _reserved1:8; /*!< bit: 16..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit */ uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ #define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ #define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[24U]; __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[24U]; __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[24U]; __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[24U]; __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[56U]; __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED5[644U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ uint32_t RESERVED0[5U]; __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ uint32_t RESERVED1[129U]; __IOM uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Control Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLBASE_Pos 29U /*!< SCB VTOR: TBLBASE Position */ #define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ #define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ #define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ #define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ #define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ uint32_t RESERVED1[1U]; } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[6U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ #define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED0[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED1[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Mask Register Definitions */ #define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ #define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ #define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ #define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ #define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ #define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ #define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ #define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ #define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ #define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ #define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ #define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ #define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ #define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration ETM Data Register Definitions (FIFO0) */ #define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ #define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ #define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ #define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ #define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ #define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ #define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ #define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ #define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ #define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ #define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ #define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ #define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ #define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ /* TPI ITATBCTR2 Register Definitions */ #define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ #define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ #define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ #define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ /* TPI Integration ITM Data Register Definitions (FIFO1) */ #define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ #define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ #define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ #define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ #define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ #define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ #define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ #define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ #define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ #define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ #define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ #define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ #define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ #define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ /* TPI ITATBCTR0 Register Definitions */ #define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ #define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ #define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ #define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ #define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ #define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ #define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ } MPU_Type; /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_SC300_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/mpu_armv7.h ================================================ /****************************************************************************** * @file mpu_armv7.h * @brief CMSIS MPU API for Armv7-M MPU * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2017-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef ARM_MPU_ARMV7_H #define ARM_MPU_ARMV7_H #define ARM_MPU_REGION_SIZE_32B ((uint8_t)0x04U) ///!< MPU Region Size 32 Bytes #define ARM_MPU_REGION_SIZE_64B ((uint8_t)0x05U) ///!< MPU Region Size 64 Bytes #define ARM_MPU_REGION_SIZE_128B ((uint8_t)0x06U) ///!< MPU Region Size 128 Bytes #define ARM_MPU_REGION_SIZE_256B ((uint8_t)0x07U) ///!< MPU Region Size 256 Bytes #define ARM_MPU_REGION_SIZE_512B ((uint8_t)0x08U) ///!< MPU Region Size 512 Bytes #define ARM_MPU_REGION_SIZE_1KB ((uint8_t)0x09U) ///!< MPU Region Size 1 KByte #define ARM_MPU_REGION_SIZE_2KB ((uint8_t)0x0AU) ///!< MPU Region Size 2 KBytes #define ARM_MPU_REGION_SIZE_4KB ((uint8_t)0x0BU) ///!< MPU Region Size 4 KBytes #define ARM_MPU_REGION_SIZE_8KB ((uint8_t)0x0CU) ///!< MPU Region Size 8 KBytes #define ARM_MPU_REGION_SIZE_16KB ((uint8_t)0x0DU) ///!< MPU Region Size 16 KBytes #define ARM_MPU_REGION_SIZE_32KB ((uint8_t)0x0EU) ///!< MPU Region Size 32 KBytes #define ARM_MPU_REGION_SIZE_64KB ((uint8_t)0x0FU) ///!< MPU Region Size 64 KBytes #define ARM_MPU_REGION_SIZE_128KB ((uint8_t)0x10U) ///!< MPU Region Size 128 KBytes #define ARM_MPU_REGION_SIZE_256KB ((uint8_t)0x11U) ///!< MPU Region Size 256 KBytes #define ARM_MPU_REGION_SIZE_512KB ((uint8_t)0x12U) ///!< MPU Region Size 512 KBytes #define ARM_MPU_REGION_SIZE_1MB ((uint8_t)0x13U) ///!< MPU Region Size 1 MByte #define ARM_MPU_REGION_SIZE_2MB ((uint8_t)0x14U) ///!< MPU Region Size 2 MBytes #define ARM_MPU_REGION_SIZE_4MB ((uint8_t)0x15U) ///!< MPU Region Size 4 MBytes #define ARM_MPU_REGION_SIZE_8MB ((uint8_t)0x16U) ///!< MPU Region Size 8 MBytes #define ARM_MPU_REGION_SIZE_16MB ((uint8_t)0x17U) ///!< MPU Region Size 16 MBytes #define ARM_MPU_REGION_SIZE_32MB ((uint8_t)0x18U) ///!< MPU Region Size 32 MBytes #define ARM_MPU_REGION_SIZE_64MB ((uint8_t)0x19U) ///!< MPU Region Size 64 MBytes #define ARM_MPU_REGION_SIZE_128MB ((uint8_t)0x1AU) ///!< MPU Region Size 128 MBytes #define ARM_MPU_REGION_SIZE_256MB ((uint8_t)0x1BU) ///!< MPU Region Size 256 MBytes #define ARM_MPU_REGION_SIZE_512MB ((uint8_t)0x1CU) ///!< MPU Region Size 512 MBytes #define ARM_MPU_REGION_SIZE_1GB ((uint8_t)0x1DU) ///!< MPU Region Size 1 GByte #define ARM_MPU_REGION_SIZE_2GB ((uint8_t)0x1EU) ///!< MPU Region Size 2 GBytes #define ARM_MPU_REGION_SIZE_4GB ((uint8_t)0x1FU) ///!< MPU Region Size 4 GBytes #define ARM_MPU_AP_NONE 0U ///!< MPU Access Permission no access #define ARM_MPU_AP_PRIV 1U ///!< MPU Access Permission privileged access only #define ARM_MPU_AP_URO 2U ///!< MPU Access Permission unprivileged access read-only #define ARM_MPU_AP_FULL 3U ///!< MPU Access Permission full access #define ARM_MPU_AP_PRO 5U ///!< MPU Access Permission privileged access read-only #define ARM_MPU_AP_RO 6U ///!< MPU Access Permission read-only access /** MPU Region Base Address Register Value * * \param Region The region to be configured, number 0 to 15. * \param BaseAddress The base address for the region. */ #define ARM_MPU_RBAR(Region, BaseAddress) \ (((BaseAddress) & MPU_RBAR_ADDR_Msk) | \ ((Region) & MPU_RBAR_REGION_Msk) | \ (MPU_RBAR_VALID_Msk)) /** * MPU Memory Access Attributes * * \param TypeExtField Type extension field, allows you to configure memory access type, for example strongly ordered, peripheral. * \param IsShareable Region is shareable between multiple bus masters. * \param IsCacheable Region is cacheable, i.e. its value may be kept in cache. * \param IsBufferable Region is bufferable, i.e. using write-back caching. Cacheable but non-bufferable regions use write-through policy. */ #define ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable) \ ((((TypeExtField ) << MPU_RASR_TEX_Pos) & MPU_RASR_TEX_Msk) | \ (((IsShareable ) << MPU_RASR_S_Pos) & MPU_RASR_S_Msk) | \ (((IsCacheable ) << MPU_RASR_C_Pos) & MPU_RASR_C_Msk) | \ (((IsBufferable ) << MPU_RASR_B_Pos) & MPU_RASR_B_Msk)) /** * MPU Region Attribute and Size Register Value * * \param DisableExec Instruction access disable bit, 1= disable instruction fetches. * \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode. * \param AccessAttributes Memory access attribution, see \ref ARM_MPU_ACCESS_. * \param SubRegionDisable Sub-region disable field. * \param Size Region size of the region to be configured, for example 4K, 8K. */ #define ARM_MPU_RASR_EX(DisableExec, AccessPermission, AccessAttributes, SubRegionDisable, Size) \ ((((DisableExec ) << MPU_RASR_XN_Pos) & MPU_RASR_XN_Msk) | \ (((AccessPermission) << MPU_RASR_AP_Pos) & MPU_RASR_AP_Msk) | \ (((AccessAttributes) ) & (MPU_RASR_TEX_Msk | MPU_RASR_S_Msk | MPU_RASR_C_Msk | MPU_RASR_B_Msk))) /** * MPU Region Attribute and Size Register Value * * \param DisableExec Instruction access disable bit, 1= disable instruction fetches. * \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode. * \param TypeExtField Type extension field, allows you to configure memory access type, for example strongly ordered, peripheral. * \param IsShareable Region is shareable between multiple bus masters. * \param IsCacheable Region is cacheable, i.e. its value may be kept in cache. * \param IsBufferable Region is bufferable, i.e. using write-back caching. Cacheable but non-bufferable regions use write-through policy. * \param SubRegionDisable Sub-region disable field. * \param Size Region size of the region to be configured, for example 4K, 8K. */ #define ARM_MPU_RASR(DisableExec, AccessPermission, TypeExtField, IsShareable, IsCacheable, IsBufferable, SubRegionDisable, Size) \ ARM_MPU_RASR_EX(DisableExec, AccessPermission, ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable), SubRegionDisable, Size) /** * MPU Memory Access Attribute for strongly ordered memory. * - TEX: 000b * - Shareable * - Non-cacheable * - Non-bufferable */ #define ARM_MPU_ACCESS_ORDERED ARM_MPU_ACCESS_(0U, 1U, 0U, 0U) /** * MPU Memory Access Attribute for device memory. * - TEX: 000b (if non-shareable) or 010b (if shareable) * - Shareable or non-shareable * - Non-cacheable * - Bufferable (if shareable) or non-bufferable (if non-shareable) * * \param IsShareable Configures the device memory as shareable or non-shareable. */ #define ARM_MPU_ACCESS_DEVICE(IsShareable) ((IsShareable) ? ARM_MPU_ACCESS_(0U, 1U, 0U, 1U) : ARM_MPU_ACCESS_(2U, 0U, 0U, 0U)) /** * MPU Memory Access Attribute for normal memory. * - TEX: 1BBb (reflecting outer cacheability rules) * - Shareable or non-shareable * - Cacheable or non-cacheable (reflecting inner cacheability rules) * - Bufferable or non-bufferable (reflecting inner cacheability rules) * * \param OuterCp Configures the outer cache policy. * \param InnerCp Configures the inner cache policy. * \param IsShareable Configures the memory as shareable or non-shareable. */ #define ARM_MPU_ACCESS_NORMAL(OuterCp, InnerCp, IsShareable) ARM_MPU_ACCESS_((4U | (OuterCp)), IsShareable, ((InnerCp) & 2U), ((InnerCp) & 1U)) /** * MPU Memory Access Attribute non-cacheable policy. */ #define ARM_MPU_CACHEP_NOCACHE 0U /** * MPU Memory Access Attribute write-back, write and read allocate policy. */ #define ARM_MPU_CACHEP_WB_WRA 1U /** * MPU Memory Access Attribute write-through, no write allocate policy. */ #define ARM_MPU_CACHEP_WT_NWA 2U /** * MPU Memory Access Attribute write-back, no write allocate policy. */ #define ARM_MPU_CACHEP_WB_NWA 3U /** * Struct for a single MPU Region */ typedef struct { uint32_t RBAR; //!< The region base address register value (RBAR) uint32_t RASR; //!< The region attribute and size register value (RASR) \ref MPU_RASR } ARM_MPU_Region_t; /** Enable the MPU. * \param MPU_Control Default access permissions for unconfigured regions. */ __STATIC_INLINE void ARM_MPU_Enable(uint32_t MPU_Control) { __DSB(); __ISB(); MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; #endif } /** Disable the MPU. */ __STATIC_INLINE void ARM_MPU_Disable(void) { __DSB(); __ISB(); #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; #endif MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk; } /** Clear and disable the given MPU region. * \param rnr Region number to be cleared. */ __STATIC_INLINE void ARM_MPU_ClrRegion(uint32_t rnr) { MPU->RNR = rnr; MPU->RASR = 0U; } /** Configure an MPU region. * \param rbar Value for RBAR register. * \param rsar Value for RSAR register. */ __STATIC_INLINE void ARM_MPU_SetRegion(uint32_t rbar, uint32_t rasr) { MPU->RBAR = rbar; MPU->RASR = rasr; } /** Configure the given MPU region. * \param rnr Region number to be configured. * \param rbar Value for RBAR register. * \param rsar Value for RSAR register. */ __STATIC_INLINE void ARM_MPU_SetRegionEx(uint32_t rnr, uint32_t rbar, uint32_t rasr) { MPU->RNR = rnr; MPU->RBAR = rbar; MPU->RASR = rasr; } /** Memcopy with strictly ordered memory access, e.g. for register targets. * \param dst Destination data is copied to. * \param src Source data is copied from. * \param len Amount of data words to be copied. */ __STATIC_INLINE void orderedCpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len) { uint32_t i; for (i = 0U; i < len; ++i) { dst[i] = src[i]; } } /** Load the given number of MPU regions from a table. * \param table Pointer to the MPU configuration table. * \param cnt Amount of regions to be configured. */ __STATIC_INLINE void ARM_MPU_Load(ARM_MPU_Region_t const* table, uint32_t cnt) { const uint32_t rowWordSize = sizeof(ARM_MPU_Region_t)/4U; while (cnt > MPU_TYPE_RALIASES) { orderedCpy(&(MPU->RBAR), &(table->RBAR), MPU_TYPE_RALIASES*rowWordSize); table += MPU_TYPE_RALIASES; cnt -= MPU_TYPE_RALIASES; } orderedCpy(&(MPU->RBAR), &(table->RBAR), cnt*rowWordSize); } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/mpu_armv8.h ================================================ /****************************************************************************** * @file mpu_armv8.h * @brief CMSIS MPU API for Armv8-M MPU * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2017-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef ARM_MPU_ARMV8_H #define ARM_MPU_ARMV8_H /** \brief Attribute for device memory (outer only) */ #define ARM_MPU_ATTR_DEVICE ( 0U ) /** \brief Attribute for non-cacheable, normal memory */ #define ARM_MPU_ATTR_NON_CACHEABLE ( 4U ) /** \brief Attribute for normal memory (outer and inner) * \param NT Non-Transient: Set to 1 for non-transient data. * \param WB Write-Back: Set to 1 to use write-back update policy. * \param RA Read Allocation: Set to 1 to use cache allocation on read miss. * \param WA Write Allocation: Set to 1 to use cache allocation on write miss. */ #define ARM_MPU_ATTR_MEMORY_(NT, WB, RA, WA) \ (((NT & 1U) << 3U) | ((WB & 1U) << 2U) | ((RA & 1U) << 1U) | (WA & 1U)) /** \brief Device memory type non Gathering, non Re-ordering, non Early Write Acknowledgement */ #define ARM_MPU_ATTR_DEVICE_nGnRnE (0U) /** \brief Device memory type non Gathering, non Re-ordering, Early Write Acknowledgement */ #define ARM_MPU_ATTR_DEVICE_nGnRE (1U) /** \brief Device memory type non Gathering, Re-ordering, Early Write Acknowledgement */ #define ARM_MPU_ATTR_DEVICE_nGRE (2U) /** \brief Device memory type Gathering, Re-ordering, Early Write Acknowledgement */ #define ARM_MPU_ATTR_DEVICE_GRE (3U) /** \brief Memory Attribute * \param O Outer memory attributes * \param I O == ARM_MPU_ATTR_DEVICE: Device memory attributes, else: Inner memory attributes */ #define ARM_MPU_ATTR(O, I) (((O & 0xFU) << 4U) | (((O & 0xFU) != 0U) ? (I & 0xFU) : ((I & 0x3U) << 2U))) /** \brief Normal memory non-shareable */ #define ARM_MPU_SH_NON (0U) /** \brief Normal memory outer shareable */ #define ARM_MPU_SH_OUTER (2U) /** \brief Normal memory inner shareable */ #define ARM_MPU_SH_INNER (3U) /** \brief Memory access permissions * \param RO Read-Only: Set to 1 for read-only memory. * \param NP Non-Privileged: Set to 1 for non-privileged memory. */ #define ARM_MPU_AP_(RO, NP) (((RO & 1U) << 1U) | (NP & 1U)) /** \brief Region Base Address Register value * \param BASE The base address bits [31:5] of a memory region. The value is zero extended. Effective address gets 32 byte aligned. * \param SH Defines the Shareability domain for this memory region. * \param RO Read-Only: Set to 1 for a read-only memory region. * \param NP Non-Privileged: Set to 1 for a non-privileged memory region. * \oaram XN eXecute Never: Set to 1 for a non-executable memory region. */ #define ARM_MPU_RBAR(BASE, SH, RO, NP, XN) \ ((BASE & MPU_RBAR_BASE_Msk) | \ ((SH << MPU_RBAR_SH_Pos) & MPU_RBAR_SH_Msk) | \ ((ARM_MPU_AP_(RO, NP) << MPU_RBAR_AP_Pos) & MPU_RBAR_AP_Msk) | \ ((XN << MPU_RBAR_XN_Pos) & MPU_RBAR_XN_Msk)) /** \brief Region Limit Address Register value * \param LIMIT The limit address bits [31:5] for this memory region. The value is one extended. * \param IDX The attribute index to be associated with this memory region. */ #define ARM_MPU_RLAR(LIMIT, IDX) \ ((LIMIT & MPU_RLAR_LIMIT_Msk) | \ ((IDX << MPU_RLAR_AttrIndx_Pos) & MPU_RLAR_AttrIndx_Msk) | \ (MPU_RLAR_EN_Msk)) /** * Struct for a single MPU Region */ typedef struct { uint32_t RBAR; /*!< Region Base Address Register value */ uint32_t RLAR; /*!< Region Limit Address Register value */ } ARM_MPU_Region_t; /** Enable the MPU. * \param MPU_Control Default access permissions for unconfigured regions. */ __STATIC_INLINE void ARM_MPU_Enable(uint32_t MPU_Control) { __DSB(); __ISB(); MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; #endif } /** Disable the MPU. */ __STATIC_INLINE void ARM_MPU_Disable(void) { __DSB(); __ISB(); #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; #endif MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk; } #ifdef MPU_NS /** Enable the Non-secure MPU. * \param MPU_Control Default access permissions for unconfigured regions. */ __STATIC_INLINE void ARM_MPU_Enable_NS(uint32_t MPU_Control) { __DSB(); __ISB(); MPU_NS->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB_NS->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; #endif } /** Disable the Non-secure MPU. */ __STATIC_INLINE void ARM_MPU_Disable_NS(void) { __DSB(); __ISB(); #ifdef SCB_SHCSR_MEMFAULTENA_Msk SCB_NS->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; #endif MPU_NS->CTRL &= ~MPU_CTRL_ENABLE_Msk; } #endif /** Set the memory attribute encoding to the given MPU. * \param mpu Pointer to the MPU to be configured. * \param idx The attribute index to be set [0-7] * \param attr The attribute value to be set. */ __STATIC_INLINE void ARM_MPU_SetMemAttrEx(MPU_Type* mpu, uint8_t idx, uint8_t attr) { const uint8_t reg = idx / 4U; const uint32_t pos = ((idx % 4U) * 8U); const uint32_t mask = 0xFFU << pos; if (reg >= (sizeof(mpu->MAIR) / sizeof(mpu->MAIR[0]))) { return; // invalid index } mpu->MAIR[reg] = ((mpu->MAIR[reg] & ~mask) | ((attr << pos) & mask)); } /** Set the memory attribute encoding. * \param idx The attribute index to be set [0-7] * \param attr The attribute value to be set. */ __STATIC_INLINE void ARM_MPU_SetMemAttr(uint8_t idx, uint8_t attr) { ARM_MPU_SetMemAttrEx(MPU, idx, attr); } #ifdef MPU_NS /** Set the memory attribute encoding to the Non-secure MPU. * \param idx The attribute index to be set [0-7] * \param attr The attribute value to be set. */ __STATIC_INLINE void ARM_MPU_SetMemAttr_NS(uint8_t idx, uint8_t attr) { ARM_MPU_SetMemAttrEx(MPU_NS, idx, attr); } #endif /** Clear and disable the given MPU region of the given MPU. * \param mpu Pointer to MPU to be used. * \param rnr Region number to be cleared. */ __STATIC_INLINE void ARM_MPU_ClrRegionEx(MPU_Type* mpu, uint32_t rnr) { mpu->RNR = rnr; mpu->RLAR = 0U; } /** Clear and disable the given MPU region. * \param rnr Region number to be cleared. */ __STATIC_INLINE void ARM_MPU_ClrRegion(uint32_t rnr) { ARM_MPU_ClrRegionEx(MPU, rnr); } #ifdef MPU_NS /** Clear and disable the given Non-secure MPU region. * \param rnr Region number to be cleared. */ __STATIC_INLINE void ARM_MPU_ClrRegion_NS(uint32_t rnr) { ARM_MPU_ClrRegionEx(MPU_NS, rnr); } #endif /** Configure the given MPU region of the given MPU. * \param mpu Pointer to MPU to be used. * \param rnr Region number to be configured. * \param rbar Value for RBAR register. * \param rlar Value for RLAR register. */ __STATIC_INLINE void ARM_MPU_SetRegionEx(MPU_Type* mpu, uint32_t rnr, uint32_t rbar, uint32_t rlar) { mpu->RNR = rnr; mpu->RBAR = rbar; mpu->RLAR = rlar; } /** Configure the given MPU region. * \param rnr Region number to be configured. * \param rbar Value for RBAR register. * \param rlar Value for RLAR register. */ __STATIC_INLINE void ARM_MPU_SetRegion(uint32_t rnr, uint32_t rbar, uint32_t rlar) { ARM_MPU_SetRegionEx(MPU, rnr, rbar, rlar); } #ifdef MPU_NS /** Configure the given Non-secure MPU region. * \param rnr Region number to be configured. * \param rbar Value for RBAR register. * \param rlar Value for RLAR register. */ __STATIC_INLINE void ARM_MPU_SetRegion_NS(uint32_t rnr, uint32_t rbar, uint32_t rlar) { ARM_MPU_SetRegionEx(MPU_NS, rnr, rbar, rlar); } #endif /** Memcopy with strictly ordered memory access, e.g. for register targets. * \param dst Destination data is copied to. * \param src Source data is copied from. * \param len Amount of data words to be copied. */ __STATIC_INLINE void orderedCpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len) { uint32_t i; for (i = 0U; i < len; ++i) { dst[i] = src[i]; } } /** Load the given number of MPU regions from a table to the given MPU. * \param mpu Pointer to the MPU registers to be used. * \param rnr First region number to be configured. * \param table Pointer to the MPU configuration table. * \param cnt Amount of regions to be configured. */ __STATIC_INLINE void ARM_MPU_LoadEx(MPU_Type* mpu, uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) { const uint32_t rowWordSize = sizeof(ARM_MPU_Region_t)/4U; if (cnt == 1U) { mpu->RNR = rnr; orderedCpy(&(mpu->RBAR), &(table->RBAR), rowWordSize); } else { uint32_t rnrBase = rnr & ~(MPU_TYPE_RALIASES-1U); uint32_t rnrOffset = rnr % MPU_TYPE_RALIASES; mpu->RNR = rnrBase; while ((rnrOffset + cnt) > MPU_TYPE_RALIASES) { uint32_t c = MPU_TYPE_RALIASES - rnrOffset; orderedCpy(&(mpu->RBAR)+(rnrOffset*2U), &(table->RBAR), c*rowWordSize); table += c; cnt -= c; rnrOffset = 0U; rnrBase += MPU_TYPE_RALIASES; mpu->RNR = rnrBase; } orderedCpy(&(mpu->RBAR)+(rnrOffset*2U), &(table->RBAR), cnt*rowWordSize); } } /** Load the given number of MPU regions from a table. * \param rnr First region number to be configured. * \param table Pointer to the MPU configuration table. * \param cnt Amount of regions to be configured. */ __STATIC_INLINE void ARM_MPU_Load(uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) { ARM_MPU_LoadEx(MPU, rnr, table, cnt); } #ifdef MPU_NS /** Load the given number of MPU regions from a table to the Non-secure MPU. * \param rnr First region number to be configured. * \param table Pointer to the MPU configuration table. * \param cnt Amount of regions to be configured. */ __STATIC_INLINE void ARM_MPU_Load_NS(uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) { ARM_MPU_LoadEx(MPU_NS, rnr, table, cnt); } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/CMSIS/Include/tz_context.h ================================================ /****************************************************************************** * @file tz_context.h * @brief Context Management for Armv8-M TrustZone * @version V1.0.1 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2017-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef TZ_CONTEXT_H #define TZ_CONTEXT_H #include #ifndef TZ_MODULEID_T #define TZ_MODULEID_T /// \details Data type that identifies secure software modules called by a process. typedef uint32_t TZ_ModuleId_t; #endif /// \details TZ Memory ID identifies an allocated memory slot. typedef uint32_t TZ_MemoryId_t; /// Initialize secure context memory system /// \return execution status (1: success, 0: error) uint32_t TZ_InitContextSystem_S (void); /// Allocate context memory for calling secure software modules in TrustZone /// \param[in] module identifies software modules called from non-secure mode /// \return value != 0 id TrustZone memory slot identifier /// \return value 0 no memory available or internal error TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module); /// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S /// \param[in] id TrustZone memory slot identifier /// \return execution status (1: success, 0: error) uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id); /// Load secure context (called on RTOS thread context switch) /// \param[in] id TrustZone memory slot identifier /// \return execution status (1: success, 0: error) uint32_t TZ_LoadContext_S (TZ_MemoryId_t id); /// Store secure context (called on RTOS thread context switch) /// \param[in] id TrustZone memory slot identifier /// \return execution status (1: success, 0: error) uint32_t TZ_StoreContext_S (TZ_MemoryId_t id); #endif // TZ_CONTEXT_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h ================================================ /** ****************************************************************************** * @file stm32_hal_legacy.h * @author MCD Application Team * @brief This file contains aliases definition for the STM32Cube HAL constants * macros and functions maintained for legacy purpose. ****************************************************************************** * @attention * *

© Copyright (c) 2019 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32_HAL_LEGACY #define STM32_HAL_LEGACY #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup HAL_AES_Aliased_Defines HAL CRYP Aliased Defines maintained for legacy purpose * @{ */ #define AES_FLAG_RDERR CRYP_FLAG_RDERR #define AES_FLAG_WRERR CRYP_FLAG_WRERR #define AES_CLEARFLAG_CCF CRYP_CLEARFLAG_CCF #define AES_CLEARFLAG_RDERR CRYP_CLEARFLAG_RDERR #define AES_CLEARFLAG_WRERR CRYP_CLEARFLAG_WRERR /** * @} */ /** @defgroup HAL_ADC_Aliased_Defines HAL ADC Aliased Defines maintained for legacy purpose * @{ */ #define ADC_RESOLUTION12b ADC_RESOLUTION_12B #define ADC_RESOLUTION10b ADC_RESOLUTION_10B #define ADC_RESOLUTION8b ADC_RESOLUTION_8B #define ADC_RESOLUTION6b ADC_RESOLUTION_6B #define OVR_DATA_OVERWRITTEN ADC_OVR_DATA_OVERWRITTEN #define OVR_DATA_PRESERVED ADC_OVR_DATA_PRESERVED #define EOC_SINGLE_CONV ADC_EOC_SINGLE_CONV #define EOC_SEQ_CONV ADC_EOC_SEQ_CONV #define EOC_SINGLE_SEQ_CONV ADC_EOC_SINGLE_SEQ_CONV #define REGULAR_GROUP ADC_REGULAR_GROUP #define INJECTED_GROUP ADC_INJECTED_GROUP #define REGULAR_INJECTED_GROUP ADC_REGULAR_INJECTED_GROUP #define AWD_EVENT ADC_AWD_EVENT #define AWD1_EVENT ADC_AWD1_EVENT #define AWD2_EVENT ADC_AWD2_EVENT #define AWD3_EVENT ADC_AWD3_EVENT #define OVR_EVENT ADC_OVR_EVENT #define JQOVF_EVENT ADC_JQOVF_EVENT #define ALL_CHANNELS ADC_ALL_CHANNELS #define REGULAR_CHANNELS ADC_REGULAR_CHANNELS #define INJECTED_CHANNELS ADC_INJECTED_CHANNELS #define SYSCFG_FLAG_SENSOR_ADC ADC_FLAG_SENSOR #define SYSCFG_FLAG_VREF_ADC ADC_FLAG_VREFINT #define ADC_CLOCKPRESCALER_PCLK_DIV1 ADC_CLOCK_SYNC_PCLK_DIV1 #define ADC_CLOCKPRESCALER_PCLK_DIV2 ADC_CLOCK_SYNC_PCLK_DIV2 #define ADC_CLOCKPRESCALER_PCLK_DIV4 ADC_CLOCK_SYNC_PCLK_DIV4 #define ADC_CLOCKPRESCALER_PCLK_DIV6 ADC_CLOCK_SYNC_PCLK_DIV6 #define ADC_CLOCKPRESCALER_PCLK_DIV8 ADC_CLOCK_SYNC_PCLK_DIV8 #define ADC_EXTERNALTRIG0_T6_TRGO ADC_EXTERNALTRIGCONV_T6_TRGO #define ADC_EXTERNALTRIG1_T21_CC2 ADC_EXTERNALTRIGCONV_T21_CC2 #define ADC_EXTERNALTRIG2_T2_TRGO ADC_EXTERNALTRIGCONV_T2_TRGO #define ADC_EXTERNALTRIG3_T2_CC4 ADC_EXTERNALTRIGCONV_T2_CC4 #define ADC_EXTERNALTRIG4_T22_TRGO ADC_EXTERNALTRIGCONV_T22_TRGO #define ADC_EXTERNALTRIG7_EXT_IT11 ADC_EXTERNALTRIGCONV_EXT_IT11 #define ADC_CLOCK_ASYNC ADC_CLOCK_ASYNC_DIV1 #define ADC_EXTERNALTRIG_EDGE_NONE ADC_EXTERNALTRIGCONVEDGE_NONE #define ADC_EXTERNALTRIG_EDGE_RISING ADC_EXTERNALTRIGCONVEDGE_RISING #define ADC_EXTERNALTRIG_EDGE_FALLING ADC_EXTERNALTRIGCONVEDGE_FALLING #define ADC_EXTERNALTRIG_EDGE_RISINGFALLING ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING #define ADC_SAMPLETIME_2CYCLE_5 ADC_SAMPLETIME_2CYCLES_5 #define HAL_ADC_STATE_BUSY_REG HAL_ADC_STATE_REG_BUSY #define HAL_ADC_STATE_BUSY_INJ HAL_ADC_STATE_INJ_BUSY #define HAL_ADC_STATE_EOC_REG HAL_ADC_STATE_REG_EOC #define HAL_ADC_STATE_EOC_INJ HAL_ADC_STATE_INJ_EOC #define HAL_ADC_STATE_ERROR HAL_ADC_STATE_ERROR_INTERNAL #define HAL_ADC_STATE_BUSY HAL_ADC_STATE_BUSY_INTERNAL #define HAL_ADC_STATE_AWD HAL_ADC_STATE_AWD1 #if defined(STM32H7) #define ADC_CHANNEL_VBAT_DIV4 ADC_CHANNEL_VBAT #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_CEC_Aliased_Defines HAL CEC Aliased Defines maintained for legacy purpose * @{ */ #define __HAL_CEC_GET_IT __HAL_CEC_GET_FLAG /** * @} */ /** @defgroup HAL_COMP_Aliased_Defines HAL COMP Aliased Defines maintained for legacy purpose * @{ */ #define COMP_WINDOWMODE_DISABLED COMP_WINDOWMODE_DISABLE #define COMP_WINDOWMODE_ENABLED COMP_WINDOWMODE_ENABLE #define COMP_EXTI_LINE_COMP1_EVENT COMP_EXTI_LINE_COMP1 #define COMP_EXTI_LINE_COMP2_EVENT COMP_EXTI_LINE_COMP2 #define COMP_EXTI_LINE_COMP3_EVENT COMP_EXTI_LINE_COMP3 #define COMP_EXTI_LINE_COMP4_EVENT COMP_EXTI_LINE_COMP4 #define COMP_EXTI_LINE_COMP5_EVENT COMP_EXTI_LINE_COMP5 #define COMP_EXTI_LINE_COMP6_EVENT COMP_EXTI_LINE_COMP6 #define COMP_EXTI_LINE_COMP7_EVENT COMP_EXTI_LINE_COMP7 #if defined(STM32L0) #define COMP_LPTIMCONNECTION_ENABLED ((uint32_t)0x00000003U) /*!< COMPX output generic naming: connected to LPTIM input 1 for COMP1, LPTIM input 2 for COMP2 */ #endif #define COMP_OUTPUT_COMP6TIM2OCREFCLR COMP_OUTPUT_COMP6_TIM2OCREFCLR #if defined(STM32F373xC) || defined(STM32F378xx) #define COMP_OUTPUT_TIM3IC1 COMP_OUTPUT_COMP1_TIM3IC1 #define COMP_OUTPUT_TIM3OCREFCLR COMP_OUTPUT_COMP1_TIM3OCREFCLR #endif /* STM32F373xC || STM32F378xx */ #if defined(STM32L0) || defined(STM32L4) #define COMP_WINDOWMODE_ENABLE COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON #define COMP_NONINVERTINGINPUT_IO1 COMP_INPUT_PLUS_IO1 #define COMP_NONINVERTINGINPUT_IO2 COMP_INPUT_PLUS_IO2 #define COMP_NONINVERTINGINPUT_IO3 COMP_INPUT_PLUS_IO3 #define COMP_NONINVERTINGINPUT_IO4 COMP_INPUT_PLUS_IO4 #define COMP_NONINVERTINGINPUT_IO5 COMP_INPUT_PLUS_IO5 #define COMP_NONINVERTINGINPUT_IO6 COMP_INPUT_PLUS_IO6 #define COMP_INVERTINGINPUT_1_4VREFINT COMP_INPUT_MINUS_1_4VREFINT #define COMP_INVERTINGINPUT_1_2VREFINT COMP_INPUT_MINUS_1_2VREFINT #define COMP_INVERTINGINPUT_3_4VREFINT COMP_INPUT_MINUS_3_4VREFINT #define COMP_INVERTINGINPUT_VREFINT COMP_INPUT_MINUS_VREFINT #define COMP_INVERTINGINPUT_DAC1_CH1 COMP_INPUT_MINUS_DAC1_CH1 #define COMP_INVERTINGINPUT_DAC1_CH2 COMP_INPUT_MINUS_DAC1_CH2 #define COMP_INVERTINGINPUT_DAC1 COMP_INPUT_MINUS_DAC1_CH1 #define COMP_INVERTINGINPUT_DAC2 COMP_INPUT_MINUS_DAC1_CH2 #define COMP_INVERTINGINPUT_IO1 COMP_INPUT_MINUS_IO1 #if defined(STM32L0) /* Issue fixed on STM32L0 COMP driver: only 2 dedicated IO (IO1 and IO2), */ /* IO2 was wrongly assigned to IO shared with DAC and IO3 was corresponding */ /* to the second dedicated IO (only for COMP2). */ #define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_DAC1_CH2 #define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO2 #else #define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_IO2 #define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO3 #endif #define COMP_INVERTINGINPUT_IO4 COMP_INPUT_MINUS_IO4 #define COMP_INVERTINGINPUT_IO5 COMP_INPUT_MINUS_IO5 #define COMP_OUTPUTLEVEL_LOW COMP_OUTPUT_LEVEL_LOW #define COMP_OUTPUTLEVEL_HIGH COMP_OUTPUT_LEVEL_HIGH /* Note: Literal "COMP_FLAG_LOCK" kept for legacy purpose. */ /* To check COMP lock state, use macro "__HAL_COMP_IS_LOCKED()". */ #if defined(COMP_CSR_LOCK) #define COMP_FLAG_LOCK COMP_CSR_LOCK #elif defined(COMP_CSR_COMP1LOCK) #define COMP_FLAG_LOCK COMP_CSR_COMP1LOCK #elif defined(COMP_CSR_COMPxLOCK) #define COMP_FLAG_LOCK COMP_CSR_COMPxLOCK #endif #if defined(STM32L4) #define COMP_BLANKINGSRCE_TIM1OC5 COMP_BLANKINGSRC_TIM1_OC5_COMP1 #define COMP_BLANKINGSRCE_TIM2OC3 COMP_BLANKINGSRC_TIM2_OC3_COMP1 #define COMP_BLANKINGSRCE_TIM3OC3 COMP_BLANKINGSRC_TIM3_OC3_COMP1 #define COMP_BLANKINGSRCE_TIM3OC4 COMP_BLANKINGSRC_TIM3_OC4_COMP2 #define COMP_BLANKINGSRCE_TIM8OC5 COMP_BLANKINGSRC_TIM8_OC5_COMP2 #define COMP_BLANKINGSRCE_TIM15OC1 COMP_BLANKINGSRC_TIM15_OC1_COMP2 #define COMP_BLANKINGSRCE_NONE COMP_BLANKINGSRC_NONE #endif #if defined(STM32L0) #define COMP_MODE_HIGHSPEED COMP_POWERMODE_MEDIUMSPEED #define COMP_MODE_LOWSPEED COMP_POWERMODE_ULTRALOWPOWER #else #define COMP_MODE_HIGHSPEED COMP_POWERMODE_HIGHSPEED #define COMP_MODE_MEDIUMSPEED COMP_POWERMODE_MEDIUMSPEED #define COMP_MODE_LOWPOWER COMP_POWERMODE_LOWPOWER #define COMP_MODE_ULTRALOWPOWER COMP_POWERMODE_ULTRALOWPOWER #endif #endif /** * @} */ /** @defgroup HAL_CORTEX_Aliased_Defines HAL CORTEX Aliased Defines maintained for legacy purpose * @{ */ #define __HAL_CORTEX_SYSTICKCLK_CONFIG HAL_SYSTICK_CLKSourceConfig /** * @} */ /** @defgroup HAL_CRC_Aliased_Defines HAL CRC Aliased Defines maintained for legacy purpose * @{ */ #define CRC_OUTPUTDATA_INVERSION_DISABLED CRC_OUTPUTDATA_INVERSION_DISABLE #define CRC_OUTPUTDATA_INVERSION_ENABLED CRC_OUTPUTDATA_INVERSION_ENABLE /** * @} */ /** @defgroup HAL_DAC_Aliased_Defines HAL DAC Aliased Defines maintained for legacy purpose * @{ */ #define DAC1_CHANNEL_1 DAC_CHANNEL_1 #define DAC1_CHANNEL_2 DAC_CHANNEL_2 #define DAC2_CHANNEL_1 DAC_CHANNEL_1 #define DAC_WAVE_NONE 0x00000000U #define DAC_WAVE_NOISE DAC_CR_WAVE1_0 #define DAC_WAVE_TRIANGLE DAC_CR_WAVE1_1 #define DAC_WAVEGENERATION_NONE DAC_WAVE_NONE #define DAC_WAVEGENERATION_NOISE DAC_WAVE_NOISE #define DAC_WAVEGENERATION_TRIANGLE DAC_WAVE_TRIANGLE #if defined(STM32G4) || defined(STM32H7) #define DAC_CHIPCONNECT_DISABLE DAC_CHIPCONNECT_EXTERNAL #define DAC_CHIPCONNECT_ENABLE DAC_CHIPCONNECT_INTERNAL #endif #if defined(STM32L1) || defined(STM32L4) || defined(STM32G0) || defined(STM32L5) || defined(STM32H7) || defined(STM32F4) || defined(STM32G4) #define HAL_DAC_MSP_INIT_CB_ID HAL_DAC_MSPINIT_CB_ID #define HAL_DAC_MSP_DEINIT_CB_ID HAL_DAC_MSPDEINIT_CB_ID #endif /** * @} */ /** @defgroup HAL_DMA_Aliased_Defines HAL DMA Aliased Defines maintained for legacy purpose * @{ */ #define HAL_REMAPDMA_ADC_DMA_CH2 DMA_REMAP_ADC_DMA_CH2 #define HAL_REMAPDMA_USART1_TX_DMA_CH4 DMA_REMAP_USART1_TX_DMA_CH4 #define HAL_REMAPDMA_USART1_RX_DMA_CH5 DMA_REMAP_USART1_RX_DMA_CH5 #define HAL_REMAPDMA_TIM16_DMA_CH4 DMA_REMAP_TIM16_DMA_CH4 #define HAL_REMAPDMA_TIM17_DMA_CH2 DMA_REMAP_TIM17_DMA_CH2 #define HAL_REMAPDMA_USART3_DMA_CH32 DMA_REMAP_USART3_DMA_CH32 #define HAL_REMAPDMA_TIM16_DMA_CH6 DMA_REMAP_TIM16_DMA_CH6 #define HAL_REMAPDMA_TIM17_DMA_CH7 DMA_REMAP_TIM17_DMA_CH7 #define HAL_REMAPDMA_SPI2_DMA_CH67 DMA_REMAP_SPI2_DMA_CH67 #define HAL_REMAPDMA_USART2_DMA_CH67 DMA_REMAP_USART2_DMA_CH67 #define HAL_REMAPDMA_I2C1_DMA_CH76 DMA_REMAP_I2C1_DMA_CH76 #define HAL_REMAPDMA_TIM1_DMA_CH6 DMA_REMAP_TIM1_DMA_CH6 #define HAL_REMAPDMA_TIM2_DMA_CH7 DMA_REMAP_TIM2_DMA_CH7 #define HAL_REMAPDMA_TIM3_DMA_CH6 DMA_REMAP_TIM3_DMA_CH6 #define IS_HAL_REMAPDMA IS_DMA_REMAP #define __HAL_REMAPDMA_CHANNEL_ENABLE __HAL_DMA_REMAP_CHANNEL_ENABLE #define __HAL_REMAPDMA_CHANNEL_DISABLE __HAL_DMA_REMAP_CHANNEL_DISABLE #if defined(STM32L4) #define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0 #define HAL_DMAMUX1_REQUEST_GEN_EXTI1 HAL_DMAMUX1_REQ_GEN_EXTI1 #define HAL_DMAMUX1_REQUEST_GEN_EXTI2 HAL_DMAMUX1_REQ_GEN_EXTI2 #define HAL_DMAMUX1_REQUEST_GEN_EXTI3 HAL_DMAMUX1_REQ_GEN_EXTI3 #define HAL_DMAMUX1_REQUEST_GEN_EXTI4 HAL_DMAMUX1_REQ_GEN_EXTI4 #define HAL_DMAMUX1_REQUEST_GEN_EXTI5 HAL_DMAMUX1_REQ_GEN_EXTI5 #define HAL_DMAMUX1_REQUEST_GEN_EXTI6 HAL_DMAMUX1_REQ_GEN_EXTI6 #define HAL_DMAMUX1_REQUEST_GEN_EXTI7 HAL_DMAMUX1_REQ_GEN_EXTI7 #define HAL_DMAMUX1_REQUEST_GEN_EXTI8 HAL_DMAMUX1_REQ_GEN_EXTI8 #define HAL_DMAMUX1_REQUEST_GEN_EXTI9 HAL_DMAMUX1_REQ_GEN_EXTI9 #define HAL_DMAMUX1_REQUEST_GEN_EXTI10 HAL_DMAMUX1_REQ_GEN_EXTI10 #define HAL_DMAMUX1_REQUEST_GEN_EXTI11 HAL_DMAMUX1_REQ_GEN_EXTI11 #define HAL_DMAMUX1_REQUEST_GEN_EXTI12 HAL_DMAMUX1_REQ_GEN_EXTI12 #define HAL_DMAMUX1_REQUEST_GEN_EXTI13 HAL_DMAMUX1_REQ_GEN_EXTI13 #define HAL_DMAMUX1_REQUEST_GEN_EXTI14 HAL_DMAMUX1_REQ_GEN_EXTI14 #define HAL_DMAMUX1_REQUEST_GEN_EXTI15 HAL_DMAMUX1_REQ_GEN_EXTI15 #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH3_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH3_EVT #define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT #define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT #define HAL_DMAMUX1_REQUEST_GEN_DSI_TE HAL_DMAMUX1_REQ_GEN_DSI_TE #define HAL_DMAMUX1_REQUEST_GEN_DSI_EOT HAL_DMAMUX1_REQ_GEN_DSI_EOT #define HAL_DMAMUX1_REQUEST_GEN_DMA2D_EOT HAL_DMAMUX1_REQ_GEN_DMA2D_EOT #define HAL_DMAMUX1_REQUEST_GEN_LTDC_IT HAL_DMAMUX1_REQ_GEN_LTDC_IT #define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT #define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING #define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING #define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING #if defined(STM32L4R5xx) || defined(STM32L4R9xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx) #define DMA_REQUEST_DCMI_PSSI DMA_REQUEST_DCMI #endif #endif /* STM32L4 */ #if defined(STM32G0) #define DMA_REQUEST_DAC1_CHANNEL1 DMA_REQUEST_DAC1_CH1 #define DMA_REQUEST_DAC1_CHANNEL2 DMA_REQUEST_DAC1_CH2 #define DMA_REQUEST_TIM16_TRIG_COM DMA_REQUEST_TIM16_COM #define DMA_REQUEST_TIM17_TRIG_COM DMA_REQUEST_TIM17_COM #define LL_DMAMUX_REQ_TIM16_TRIG_COM LL_DMAMUX_REQ_TIM16_COM #define LL_DMAMUX_REQ_TIM17_TRIG_COM LL_DMAMUX_REQ_TIM17_COM #endif #if defined(STM32H7) #define DMA_REQUEST_DAC1 DMA_REQUEST_DAC1_CH1 #define DMA_REQUEST_DAC2 DMA_REQUEST_DAC1_CH2 #define BDMA_REQUEST_LP_UART1_RX BDMA_REQUEST_LPUART1_RX #define BDMA_REQUEST_LP_UART1_TX BDMA_REQUEST_LPUART1_TX #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT #define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT #define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT #define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT #define HAL_DMAMUX1_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX1_REQ_GEN_LPTIM3_OUT #define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0 #define HAL_DMAMUX1_REQUEST_GEN_TIM12_TRGO HAL_DMAMUX1_REQ_GEN_TIM12_TRGO #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH0_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH1_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH2_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH3_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH4_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH5_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT #define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH6_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP #define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM2_WKUP #define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX2_REQ_GEN_LPTIM2_OUT #define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM3_WKUP #define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX2_REQ_GEN_LPTIM3_OUT #define HAL_DMAMUX2_REQUEST_GEN_LPTIM4_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM4_WKUP #define HAL_DMAMUX2_REQUEST_GEN_LPTIM5_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM5_WKUP #define HAL_DMAMUX2_REQUEST_GEN_I2C4_WKUP HAL_DMAMUX2_REQ_GEN_I2C4_WKUP #define HAL_DMAMUX2_REQUEST_GEN_SPI6_WKUP HAL_DMAMUX2_REQ_GEN_SPI6_WKUP #define HAL_DMAMUX2_REQUEST_GEN_COMP1_OUT HAL_DMAMUX2_REQ_GEN_COMP1_OUT #define HAL_DMAMUX2_REQUEST_GEN_COMP2_OUT HAL_DMAMUX2_REQ_GEN_COMP2_OUT #define HAL_DMAMUX2_REQUEST_GEN_RTC_WKUP HAL_DMAMUX2_REQ_GEN_RTC_WKUP #define HAL_DMAMUX2_REQUEST_GEN_EXTI0 HAL_DMAMUX2_REQ_GEN_EXTI0 #define HAL_DMAMUX2_REQUEST_GEN_EXTI2 HAL_DMAMUX2_REQ_GEN_EXTI2 #define HAL_DMAMUX2_REQUEST_GEN_I2C4_IT_EVT HAL_DMAMUX2_REQ_GEN_I2C4_IT_EVT #define HAL_DMAMUX2_REQUEST_GEN_SPI6_IT HAL_DMAMUX2_REQ_GEN_SPI6_IT #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_TX_IT #define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_RX_IT #define HAL_DMAMUX2_REQUEST_GEN_ADC3_IT HAL_DMAMUX2_REQ_GEN_ADC3_IT #define HAL_DMAMUX2_REQUEST_GEN_ADC3_AWD1_OUT HAL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT #define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH0_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH0_IT #define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH1_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT #define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT #define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING #define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING #define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING #define DFSDM_FILTER_EXT_TRIG_LPTIM1 DFSDM_FILTER_EXT_TRIG_LPTIM1_OUT #define DFSDM_FILTER_EXT_TRIG_LPTIM2 DFSDM_FILTER_EXT_TRIG_LPTIM2_OUT #define DFSDM_FILTER_EXT_TRIG_LPTIM3 DFSDM_FILTER_EXT_TRIG_LPTIM3_OUT #define DAC_TRIGGER_LP1_OUT DAC_TRIGGER_LPTIM1_OUT #define DAC_TRIGGER_LP2_OUT DAC_TRIGGER_LPTIM2_OUT #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_FLASH_Aliased_Defines HAL FLASH Aliased Defines maintained for legacy purpose * @{ */ #define TYPEPROGRAM_BYTE FLASH_TYPEPROGRAM_BYTE #define TYPEPROGRAM_HALFWORD FLASH_TYPEPROGRAM_HALFWORD #define TYPEPROGRAM_WORD FLASH_TYPEPROGRAM_WORD #define TYPEPROGRAM_DOUBLEWORD FLASH_TYPEPROGRAM_DOUBLEWORD #define TYPEERASE_SECTORS FLASH_TYPEERASE_SECTORS #define TYPEERASE_PAGES FLASH_TYPEERASE_PAGES #define TYPEERASE_PAGEERASE FLASH_TYPEERASE_PAGES #define TYPEERASE_MASSERASE FLASH_TYPEERASE_MASSERASE #define WRPSTATE_DISABLE OB_WRPSTATE_DISABLE #define WRPSTATE_ENABLE OB_WRPSTATE_ENABLE #define HAL_FLASH_TIMEOUT_VALUE FLASH_TIMEOUT_VALUE #define OBEX_PCROP OPTIONBYTE_PCROP #define OBEX_BOOTCONFIG OPTIONBYTE_BOOTCONFIG #define PCROPSTATE_DISABLE OB_PCROP_STATE_DISABLE #define PCROPSTATE_ENABLE OB_PCROP_STATE_ENABLE #define TYPEERASEDATA_BYTE FLASH_TYPEERASEDATA_BYTE #define TYPEERASEDATA_HALFWORD FLASH_TYPEERASEDATA_HALFWORD #define TYPEERASEDATA_WORD FLASH_TYPEERASEDATA_WORD #define TYPEPROGRAMDATA_BYTE FLASH_TYPEPROGRAMDATA_BYTE #define TYPEPROGRAMDATA_HALFWORD FLASH_TYPEPROGRAMDATA_HALFWORD #define TYPEPROGRAMDATA_WORD FLASH_TYPEPROGRAMDATA_WORD #define TYPEPROGRAMDATA_FASTBYTE FLASH_TYPEPROGRAMDATA_FASTBYTE #define TYPEPROGRAMDATA_FASTHALFWORD FLASH_TYPEPROGRAMDATA_FASTHALFWORD #define TYPEPROGRAMDATA_FASTWORD FLASH_TYPEPROGRAMDATA_FASTWORD #define PAGESIZE FLASH_PAGE_SIZE #define TYPEPROGRAM_FASTBYTE FLASH_TYPEPROGRAM_BYTE #define TYPEPROGRAM_FASTHALFWORD FLASH_TYPEPROGRAM_HALFWORD #define TYPEPROGRAM_FASTWORD FLASH_TYPEPROGRAM_WORD #define VOLTAGE_RANGE_1 FLASH_VOLTAGE_RANGE_1 #define VOLTAGE_RANGE_2 FLASH_VOLTAGE_RANGE_2 #define VOLTAGE_RANGE_3 FLASH_VOLTAGE_RANGE_3 #define VOLTAGE_RANGE_4 FLASH_VOLTAGE_RANGE_4 #define TYPEPROGRAM_FAST FLASH_TYPEPROGRAM_FAST #define TYPEPROGRAM_FAST_AND_LAST FLASH_TYPEPROGRAM_FAST_AND_LAST #define WRPAREA_BANK1_AREAA OB_WRPAREA_BANK1_AREAA #define WRPAREA_BANK1_AREAB OB_WRPAREA_BANK1_AREAB #define WRPAREA_BANK2_AREAA OB_WRPAREA_BANK2_AREAA #define WRPAREA_BANK2_AREAB OB_WRPAREA_BANK2_AREAB #define IWDG_STDBY_FREEZE OB_IWDG_STDBY_FREEZE #define IWDG_STDBY_ACTIVE OB_IWDG_STDBY_RUN #define IWDG_STOP_FREEZE OB_IWDG_STOP_FREEZE #define IWDG_STOP_ACTIVE OB_IWDG_STOP_RUN #define FLASH_ERROR_NONE HAL_FLASH_ERROR_NONE #define FLASH_ERROR_RD HAL_FLASH_ERROR_RD #define FLASH_ERROR_PG HAL_FLASH_ERROR_PROG #define FLASH_ERROR_PGP HAL_FLASH_ERROR_PGS #define FLASH_ERROR_WRP HAL_FLASH_ERROR_WRP #define FLASH_ERROR_OPTV HAL_FLASH_ERROR_OPTV #define FLASH_ERROR_OPTVUSR HAL_FLASH_ERROR_OPTVUSR #define FLASH_ERROR_PROG HAL_FLASH_ERROR_PROG #define FLASH_ERROR_OP HAL_FLASH_ERROR_OPERATION #define FLASH_ERROR_PGA HAL_FLASH_ERROR_PGA #define FLASH_ERROR_SIZE HAL_FLASH_ERROR_SIZE #define FLASH_ERROR_SIZ HAL_FLASH_ERROR_SIZE #define FLASH_ERROR_PGS HAL_FLASH_ERROR_PGS #define FLASH_ERROR_MIS HAL_FLASH_ERROR_MIS #define FLASH_ERROR_FAST HAL_FLASH_ERROR_FAST #define FLASH_ERROR_FWWERR HAL_FLASH_ERROR_FWWERR #define FLASH_ERROR_NOTZERO HAL_FLASH_ERROR_NOTZERO #define FLASH_ERROR_OPERATION HAL_FLASH_ERROR_OPERATION #define FLASH_ERROR_ERS HAL_FLASH_ERROR_ERS #define OB_WDG_SW OB_IWDG_SW #define OB_WDG_HW OB_IWDG_HW #define OB_SDADC12_VDD_MONITOR_SET OB_SDACD_VDD_MONITOR_SET #define OB_SDADC12_VDD_MONITOR_RESET OB_SDACD_VDD_MONITOR_RESET #define OB_RAM_PARITY_CHECK_SET OB_SRAM_PARITY_SET #define OB_RAM_PARITY_CHECK_RESET OB_SRAM_PARITY_RESET #define IS_OB_SDADC12_VDD_MONITOR IS_OB_SDACD_VDD_MONITOR #define OB_RDP_LEVEL0 OB_RDP_LEVEL_0 #define OB_RDP_LEVEL1 OB_RDP_LEVEL_1 #define OB_RDP_LEVEL2 OB_RDP_LEVEL_2 #if defined(STM32G0) #define OB_BOOT_LOCK_DISABLE OB_BOOT_ENTRY_FORCED_NONE #define OB_BOOT_LOCK_ENABLE OB_BOOT_ENTRY_FORCED_FLASH #else #define OB_BOOT_ENTRY_FORCED_NONE OB_BOOT_LOCK_DISABLE #define OB_BOOT_ENTRY_FORCED_FLASH OB_BOOT_LOCK_ENABLE #endif #if defined(STM32H7) #define FLASH_FLAG_SNECCE_BANK1RR FLASH_FLAG_SNECCERR_BANK1 #define FLASH_FLAG_DBECCE_BANK1RR FLASH_FLAG_DBECCERR_BANK1 #define FLASH_FLAG_STRBER_BANK1R FLASH_FLAG_STRBERR_BANK1 #define FLASH_FLAG_SNECCE_BANK2RR FLASH_FLAG_SNECCERR_BANK2 #define FLASH_FLAG_DBECCE_BANK2RR FLASH_FLAG_DBECCERR_BANK2 #define FLASH_FLAG_STRBER_BANK2R FLASH_FLAG_STRBERR_BANK2 #define FLASH_FLAG_WDW FLASH_FLAG_WBNE #define OB_WRP_SECTOR_All OB_WRP_SECTOR_ALL #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_JPEG_Aliased_Macros HAL JPEG Aliased Macros maintained for legacy purpose * @{ */ #if defined(STM32H7) #define __HAL_RCC_JPEG_CLK_ENABLE __HAL_RCC_JPGDECEN_CLK_ENABLE #define __HAL_RCC_JPEG_CLK_DISABLE __HAL_RCC_JPGDECEN_CLK_DISABLE #define __HAL_RCC_JPEG_FORCE_RESET __HAL_RCC_JPGDECRST_FORCE_RESET #define __HAL_RCC_JPEG_RELEASE_RESET __HAL_RCC_JPGDECRST_RELEASE_RESET #define __HAL_RCC_JPEG_CLK_SLEEP_ENABLE __HAL_RCC_JPGDEC_CLK_SLEEP_ENABLE #define __HAL_RCC_JPEG_CLK_SLEEP_DISABLE __HAL_RCC_JPGDEC_CLK_SLEEP_DISABLE #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_SYSCFG_Aliased_Defines HAL SYSCFG Aliased Defines maintained for legacy purpose * @{ */ #define HAL_SYSCFG_FASTMODEPLUS_I2C_PA9 I2C_FASTMODEPLUS_PA9 #define HAL_SYSCFG_FASTMODEPLUS_I2C_PA10 I2C_FASTMODEPLUS_PA10 #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB6 I2C_FASTMODEPLUS_PB6 #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB7 I2C_FASTMODEPLUS_PB7 #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB8 I2C_FASTMODEPLUS_PB8 #define HAL_SYSCFG_FASTMODEPLUS_I2C_PB9 I2C_FASTMODEPLUS_PB9 #define HAL_SYSCFG_FASTMODEPLUS_I2C1 I2C_FASTMODEPLUS_I2C1 #define HAL_SYSCFG_FASTMODEPLUS_I2C2 I2C_FASTMODEPLUS_I2C2 #define HAL_SYSCFG_FASTMODEPLUS_I2C3 I2C_FASTMODEPLUS_I2C3 #if defined(STM32G4) #define HAL_SYSCFG_EnableIOAnalogSwitchBooster HAL_SYSCFG_EnableIOSwitchBooster #define HAL_SYSCFG_DisableIOAnalogSwitchBooster HAL_SYSCFG_DisableIOSwitchBooster #define HAL_SYSCFG_EnableIOAnalogSwitchVDD HAL_SYSCFG_EnableIOSwitchVDD #define HAL_SYSCFG_DisableIOAnalogSwitchVDD HAL_SYSCFG_DisableIOSwitchVDD #endif /* STM32G4 */ /** * @} */ /** @defgroup LL_FMC_Aliased_Defines LL FMC Aliased Defines maintained for compatibility purpose * @{ */ #if defined(STM32L4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4) #define FMC_NAND_PCC_WAIT_FEATURE_DISABLE FMC_NAND_WAIT_FEATURE_DISABLE #define FMC_NAND_PCC_WAIT_FEATURE_ENABLE FMC_NAND_WAIT_FEATURE_ENABLE #define FMC_NAND_PCC_MEM_BUS_WIDTH_8 FMC_NAND_MEM_BUS_WIDTH_8 #define FMC_NAND_PCC_MEM_BUS_WIDTH_16 FMC_NAND_MEM_BUS_WIDTH_16 #elif defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) #define FMC_NAND_WAIT_FEATURE_DISABLE FMC_NAND_PCC_WAIT_FEATURE_DISABLE #define FMC_NAND_WAIT_FEATURE_ENABLE FMC_NAND_PCC_WAIT_FEATURE_ENABLE #define FMC_NAND_MEM_BUS_WIDTH_8 FMC_NAND_PCC_MEM_BUS_WIDTH_8 #define FMC_NAND_MEM_BUS_WIDTH_16 FMC_NAND_PCC_MEM_BUS_WIDTH_16 #endif /** * @} */ /** @defgroup LL_FSMC_Aliased_Defines LL FSMC Aliased Defines maintained for legacy purpose * @{ */ #define FSMC_NORSRAM_TYPEDEF FSMC_NORSRAM_TypeDef #define FSMC_NORSRAM_EXTENDED_TYPEDEF FSMC_NORSRAM_EXTENDED_TypeDef /** * @} */ /** @defgroup HAL_GPIO_Aliased_Macros HAL GPIO Aliased Macros maintained for legacy purpose * @{ */ #define GET_GPIO_SOURCE GPIO_GET_INDEX #define GET_GPIO_INDEX GPIO_GET_INDEX #if defined(STM32F4) #define GPIO_AF12_SDMMC GPIO_AF12_SDIO #define GPIO_AF12_SDMMC1 GPIO_AF12_SDIO #endif #if defined(STM32F7) #define GPIO_AF12_SDIO GPIO_AF12_SDMMC1 #define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1 #endif #if defined(STM32L4) #define GPIO_AF12_SDIO GPIO_AF12_SDMMC1 #define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1 #endif #if defined(STM32H7) #define GPIO_AF7_SDIO1 GPIO_AF7_SDMMC1 #define GPIO_AF8_SDIO1 GPIO_AF8_SDMMC1 #define GPIO_AF12_SDIO1 GPIO_AF12_SDMMC1 #define GPIO_AF9_SDIO2 GPIO_AF9_SDMMC2 #define GPIO_AF10_SDIO2 GPIO_AF10_SDMMC2 #define GPIO_AF11_SDIO2 GPIO_AF11_SDMMC2 #if defined (STM32H743xx) || defined (STM32H753xx) || defined (STM32H750xx) || defined (STM32H742xx) || \ defined (STM32H745xx) || defined (STM32H755xx) || defined (STM32H747xx) || defined (STM32H757xx) #define GPIO_AF10_OTG2_HS GPIO_AF10_OTG2_FS #define GPIO_AF10_OTG1_FS GPIO_AF10_OTG1_HS #define GPIO_AF12_OTG2_FS GPIO_AF12_OTG1_FS #endif /*STM32H743xx || STM32H753xx || STM32H750xx || STM32H742xx || STM32H745xx || STM32H755xx || STM32H747xx || STM32H757xx */ #endif /* STM32H7 */ #define GPIO_AF0_LPTIM GPIO_AF0_LPTIM1 #define GPIO_AF1_LPTIM GPIO_AF1_LPTIM1 #define GPIO_AF2_LPTIM GPIO_AF2_LPTIM1 #if defined(STM32L0) || defined(STM32L4) || defined(STM32F4) || defined(STM32F2) || defined(STM32F7) || defined(STM32G4) || defined(STM32H7) || defined(STM32WB) #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM #define GPIO_SPEED_FAST GPIO_SPEED_FREQ_HIGH #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH #endif /* STM32L0 || STM32L4 || STM32F4 || STM32F2 || STM32F7 || STM32G4 || STM32H7 || STM32WB*/ #if defined(STM32L1) #define GPIO_SPEED_VERY_LOW GPIO_SPEED_FREQ_LOW #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_MEDIUM #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_HIGH #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH #endif /* STM32L1 */ #if defined(STM32F0) || defined(STM32F3) || defined(STM32F1) #define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW #define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM #define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_HIGH #endif /* STM32F0 || STM32F3 || STM32F1 */ #define GPIO_AF6_DFSDM GPIO_AF6_DFSDM1 /** * @} */ /** @defgroup HAL_HRTIM_Aliased_Macros HAL HRTIM Aliased Macros maintained for legacy purpose * @{ */ #define HRTIM_TIMDELAYEDPROTECTION_DISABLED HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6 #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6 #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6 #define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6 #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7 #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7 #define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7 #define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7 #define __HAL_HRTIM_SetCounter __HAL_HRTIM_SETCOUNTER #define __HAL_HRTIM_GetCounter __HAL_HRTIM_GETCOUNTER #define __HAL_HRTIM_SetPeriod __HAL_HRTIM_SETPERIOD #define __HAL_HRTIM_GetPeriod __HAL_HRTIM_GETPERIOD #define __HAL_HRTIM_SetClockPrescaler __HAL_HRTIM_SETCLOCKPRESCALER #define __HAL_HRTIM_GetClockPrescaler __HAL_HRTIM_GETCLOCKPRESCALER #define __HAL_HRTIM_SetCompare __HAL_HRTIM_SETCOMPARE #define __HAL_HRTIM_GetCompare __HAL_HRTIM_GETCOMPARE #if defined(STM32G4) #define HAL_HRTIM_ExternalEventCounterConfig HAL_HRTIM_ExtEventCounterConfig #define HAL_HRTIM_ExternalEventCounterEnable HAL_HRTIM_ExtEventCounterEnable #define HAL_HRTIM_ExternalEventCounterDisable HAL_HRTIM_ExtEventCounterDisable #define HAL_HRTIM_ExternalEventCounterReset HAL_HRTIM_ExtEventCounterReset #define HRTIM_TIMEEVENT_A HRTIM_EVENTCOUNTER_A #define HRTIM_TIMEEVENT_B HRTIM_EVENTCOUNTER_B #define HRTIM_TIMEEVENTRESETMODE_UNCONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_UNCONDITIONAL #define HRTIM_TIMEEVENTRESETMODE_CONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_CONDITIONAL #endif /* STM32G4 */ #if defined(STM32H7) #define HRTIM_OUTPUTSET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTSET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTSET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTSET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTSET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTSET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTSET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTSET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTSET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTSET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTSET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTSET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTSET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTSET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 #define HRTIM_OUTPUTRESET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1 #define HRTIM_OUTPUTRESET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2 #define HRTIM_OUTPUTRESET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 #define HRTIM_OUTPUTRESET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 #define HRTIM_OUTPUTRESET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 #define HRTIM_OUTPUTRESET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6 #define HRTIM_OUTPUTRESET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7 #define HRTIM_OUTPUTRESET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 #define HRTIM_OUTPUTRESET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9 #endif /* STM32H7 */ #if defined(STM32F3) /** @brief Constants defining available sources associated to external events. */ #define HRTIM_EVENTSRC_1 (0x00000000U) #define HRTIM_EVENTSRC_2 (HRTIM_EECR1_EE1SRC_0) #define HRTIM_EVENTSRC_3 (HRTIM_EECR1_EE1SRC_1) #define HRTIM_EVENTSRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0) /** @brief Constants defining the DLL calibration periods (in micro seconds) */ #define HRTIM_CALIBRATIONRATE_7300 0x00000000U #define HRTIM_CALIBRATIONRATE_910 (HRTIM_DLLCR_CALRTE_0) #define HRTIM_CALIBRATIONRATE_114 (HRTIM_DLLCR_CALRTE_1) #define HRTIM_CALIBRATIONRATE_14 (HRTIM_DLLCR_CALRTE_1 | HRTIM_DLLCR_CALRTE_0) #endif /* STM32F3 */ /** * @} */ /** @defgroup HAL_I2C_Aliased_Defines HAL I2C Aliased Defines maintained for legacy purpose * @{ */ #define I2C_DUALADDRESS_DISABLED I2C_DUALADDRESS_DISABLE #define I2C_DUALADDRESS_ENABLED I2C_DUALADDRESS_ENABLE #define I2C_GENERALCALL_DISABLED I2C_GENERALCALL_DISABLE #define I2C_GENERALCALL_ENABLED I2C_GENERALCALL_ENABLE #define I2C_NOSTRETCH_DISABLED I2C_NOSTRETCH_DISABLE #define I2C_NOSTRETCH_ENABLED I2C_NOSTRETCH_ENABLE #define I2C_ANALOGFILTER_ENABLED I2C_ANALOGFILTER_ENABLE #define I2C_ANALOGFILTER_DISABLED I2C_ANALOGFILTER_DISABLE #if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32G0) || defined(STM32L4) || defined(STM32L1) || defined(STM32F7) #define HAL_I2C_STATE_MEM_BUSY_TX HAL_I2C_STATE_BUSY_TX #define HAL_I2C_STATE_MEM_BUSY_RX HAL_I2C_STATE_BUSY_RX #define HAL_I2C_STATE_MASTER_BUSY_TX HAL_I2C_STATE_BUSY_TX #define HAL_I2C_STATE_MASTER_BUSY_RX HAL_I2C_STATE_BUSY_RX #define HAL_I2C_STATE_SLAVE_BUSY_TX HAL_I2C_STATE_BUSY_TX #define HAL_I2C_STATE_SLAVE_BUSY_RX HAL_I2C_STATE_BUSY_RX #endif /** * @} */ /** @defgroup HAL_IRDA_Aliased_Defines HAL IRDA Aliased Defines maintained for legacy purpose * @{ */ #define IRDA_ONE_BIT_SAMPLE_DISABLED IRDA_ONE_BIT_SAMPLE_DISABLE #define IRDA_ONE_BIT_SAMPLE_ENABLED IRDA_ONE_BIT_SAMPLE_ENABLE /** * @} */ /** @defgroup HAL_IWDG_Aliased_Defines HAL IWDG Aliased Defines maintained for legacy purpose * @{ */ #define KR_KEY_RELOAD IWDG_KEY_RELOAD #define KR_KEY_ENABLE IWDG_KEY_ENABLE #define KR_KEY_EWA IWDG_KEY_WRITE_ACCESS_ENABLE #define KR_KEY_DWA IWDG_KEY_WRITE_ACCESS_DISABLE /** * @} */ /** @defgroup HAL_LPTIM_Aliased_Defines HAL LPTIM Aliased Defines maintained for legacy purpose * @{ */ #define LPTIM_CLOCKSAMPLETIME_DIRECTTRANSISTION LPTIM_CLOCKSAMPLETIME_DIRECTTRANSITION #define LPTIM_CLOCKSAMPLETIME_2TRANSISTIONS LPTIM_CLOCKSAMPLETIME_2TRANSITIONS #define LPTIM_CLOCKSAMPLETIME_4TRANSISTIONS LPTIM_CLOCKSAMPLETIME_4TRANSITIONS #define LPTIM_CLOCKSAMPLETIME_8TRANSISTIONS LPTIM_CLOCKSAMPLETIME_8TRANSITIONS #define LPTIM_CLOCKPOLARITY_RISINGEDGE LPTIM_CLOCKPOLARITY_RISING #define LPTIM_CLOCKPOLARITY_FALLINGEDGE LPTIM_CLOCKPOLARITY_FALLING #define LPTIM_CLOCKPOLARITY_BOTHEDGES LPTIM_CLOCKPOLARITY_RISING_FALLING #define LPTIM_TRIGSAMPLETIME_DIRECTTRANSISTION LPTIM_TRIGSAMPLETIME_DIRECTTRANSITION #define LPTIM_TRIGSAMPLETIME_2TRANSISTIONS LPTIM_TRIGSAMPLETIME_2TRANSITIONS #define LPTIM_TRIGSAMPLETIME_4TRANSISTIONS LPTIM_TRIGSAMPLETIME_4TRANSITIONS #define LPTIM_TRIGSAMPLETIME_8TRANSISTIONS LPTIM_TRIGSAMPLETIME_8TRANSITIONS /* The following 3 definition have also been present in a temporary version of lptim.h */ /* They need to be renamed also to the right name, just in case */ #define LPTIM_TRIGSAMPLETIME_2TRANSITION LPTIM_TRIGSAMPLETIME_2TRANSITIONS #define LPTIM_TRIGSAMPLETIME_4TRANSITION LPTIM_TRIGSAMPLETIME_4TRANSITIONS #define LPTIM_TRIGSAMPLETIME_8TRANSITION LPTIM_TRIGSAMPLETIME_8TRANSITIONS /** * @} */ /** @defgroup HAL_NAND_Aliased_Defines HAL NAND Aliased Defines maintained for legacy purpose * @{ */ #define HAL_NAND_Read_Page HAL_NAND_Read_Page_8b #define HAL_NAND_Write_Page HAL_NAND_Write_Page_8b #define HAL_NAND_Read_SpareArea HAL_NAND_Read_SpareArea_8b #define HAL_NAND_Write_SpareArea HAL_NAND_Write_SpareArea_8b #define NAND_AddressTypedef NAND_AddressTypeDef #define __ARRAY_ADDRESS ARRAY_ADDRESS #define __ADDR_1st_CYCLE ADDR_1ST_CYCLE #define __ADDR_2nd_CYCLE ADDR_2ND_CYCLE #define __ADDR_3rd_CYCLE ADDR_3RD_CYCLE #define __ADDR_4th_CYCLE ADDR_4TH_CYCLE /** * @} */ /** @defgroup HAL_NOR_Aliased_Defines HAL NOR Aliased Defines maintained for legacy purpose * @{ */ #define NOR_StatusTypedef HAL_NOR_StatusTypeDef #define NOR_SUCCESS HAL_NOR_STATUS_SUCCESS #define NOR_ONGOING HAL_NOR_STATUS_ONGOING #define NOR_ERROR HAL_NOR_STATUS_ERROR #define NOR_TIMEOUT HAL_NOR_STATUS_TIMEOUT #define __NOR_WRITE NOR_WRITE #define __NOR_ADDR_SHIFT NOR_ADDR_SHIFT /** * @} */ /** @defgroup HAL_OPAMP_Aliased_Defines HAL OPAMP Aliased Defines maintained for legacy purpose * @{ */ #define OPAMP_NONINVERTINGINPUT_VP0 OPAMP_NONINVERTINGINPUT_IO0 #define OPAMP_NONINVERTINGINPUT_VP1 OPAMP_NONINVERTINGINPUT_IO1 #define OPAMP_NONINVERTINGINPUT_VP2 OPAMP_NONINVERTINGINPUT_IO2 #define OPAMP_NONINVERTINGINPUT_VP3 OPAMP_NONINVERTINGINPUT_IO3 #define OPAMP_SEC_NONINVERTINGINPUT_VP0 OPAMP_SEC_NONINVERTINGINPUT_IO0 #define OPAMP_SEC_NONINVERTINGINPUT_VP1 OPAMP_SEC_NONINVERTINGINPUT_IO1 #define OPAMP_SEC_NONINVERTINGINPUT_VP2 OPAMP_SEC_NONINVERTINGINPUT_IO2 #define OPAMP_SEC_NONINVERTINGINPUT_VP3 OPAMP_SEC_NONINVERTINGINPUT_IO3 #define OPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0 #define OPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1 #define IOPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0 #define IOPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1 #define OPAMP_SEC_INVERTINGINPUT_VM0 OPAMP_SEC_INVERTINGINPUT_IO0 #define OPAMP_SEC_INVERTINGINPUT_VM1 OPAMP_SEC_INVERTINGINPUT_IO1 #define OPAMP_INVERTINGINPUT_VINM OPAMP_SEC_INVERTINGINPUT_IO1 #define OPAMP_PGACONNECT_NO OPAMP_PGA_CONNECT_INVERTINGINPUT_NO #define OPAMP_PGACONNECT_VM0 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0 #define OPAMP_PGACONNECT_VM1 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO1 #if defined(STM32L1) || defined(STM32L4) || defined(STM32L5) || defined(STM32H7) || defined(STM32G4) #define HAL_OPAMP_MSP_INIT_CB_ID HAL_OPAMP_MSPINIT_CB_ID #define HAL_OPAMP_MSP_DEINIT_CB_ID HAL_OPAMP_MSPDEINIT_CB_ID #endif #if defined(STM32L4) || defined(STM32L5) #define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALPOWER #elif defined(STM32G4) #define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALSPEED #endif /** * @} */ /** @defgroup HAL_I2S_Aliased_Defines HAL I2S Aliased Defines maintained for legacy purpose * @{ */ #define I2S_STANDARD_PHILLIPS I2S_STANDARD_PHILIPS #if defined(STM32H7) #define I2S_IT_TXE I2S_IT_TXP #define I2S_IT_RXNE I2S_IT_RXP #define I2S_FLAG_TXE I2S_FLAG_TXP #define I2S_FLAG_RXNE I2S_FLAG_RXP #endif #if defined(STM32F7) #define I2S_CLOCK_SYSCLK I2S_CLOCK_PLL #endif /** * @} */ /** @defgroup HAL_PCCARD_Aliased_Defines HAL PCCARD Aliased Defines maintained for legacy purpose * @{ */ /* Compact Flash-ATA registers description */ #define CF_DATA ATA_DATA #define CF_SECTOR_COUNT ATA_SECTOR_COUNT #define CF_SECTOR_NUMBER ATA_SECTOR_NUMBER #define CF_CYLINDER_LOW ATA_CYLINDER_LOW #define CF_CYLINDER_HIGH ATA_CYLINDER_HIGH #define CF_CARD_HEAD ATA_CARD_HEAD #define CF_STATUS_CMD ATA_STATUS_CMD #define CF_STATUS_CMD_ALTERNATE ATA_STATUS_CMD_ALTERNATE #define CF_COMMON_DATA_AREA ATA_COMMON_DATA_AREA /* Compact Flash-ATA commands */ #define CF_READ_SECTOR_CMD ATA_READ_SECTOR_CMD #define CF_WRITE_SECTOR_CMD ATA_WRITE_SECTOR_CMD #define CF_ERASE_SECTOR_CMD ATA_ERASE_SECTOR_CMD #define CF_IDENTIFY_CMD ATA_IDENTIFY_CMD #define PCCARD_StatusTypedef HAL_PCCARD_StatusTypeDef #define PCCARD_SUCCESS HAL_PCCARD_STATUS_SUCCESS #define PCCARD_ONGOING HAL_PCCARD_STATUS_ONGOING #define PCCARD_ERROR HAL_PCCARD_STATUS_ERROR #define PCCARD_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT /** * @} */ /** @defgroup HAL_RTC_Aliased_Defines HAL RTC Aliased Defines maintained for legacy purpose * @{ */ #define FORMAT_BIN RTC_FORMAT_BIN #define FORMAT_BCD RTC_FORMAT_BCD #define RTC_ALARMSUBSECONDMASK_None RTC_ALARMSUBSECONDMASK_NONE #define RTC_TAMPERERASEBACKUP_DISABLED RTC_TAMPER_ERASE_BACKUP_DISABLE #define RTC_TAMPERMASK_FLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE #define RTC_TAMPERMASK_FLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE #define RTC_MASKTAMPERFLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE #define RTC_MASKTAMPERFLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE #define RTC_TAMPERERASEBACKUP_ENABLED RTC_TAMPER_ERASE_BACKUP_ENABLE #define RTC_TAMPER1_2_INTERRUPT RTC_ALL_TAMPER_INTERRUPT #define RTC_TAMPER1_2_3_INTERRUPT RTC_ALL_TAMPER_INTERRUPT #define RTC_TIMESTAMPPIN_PC13 RTC_TIMESTAMPPIN_DEFAULT #define RTC_TIMESTAMPPIN_PA0 RTC_TIMESTAMPPIN_POS1 #define RTC_TIMESTAMPPIN_PI8 RTC_TIMESTAMPPIN_POS1 #define RTC_TIMESTAMPPIN_PC1 RTC_TIMESTAMPPIN_POS2 #define RTC_OUTPUT_REMAP_PC13 RTC_OUTPUT_REMAP_NONE #define RTC_OUTPUT_REMAP_PB14 RTC_OUTPUT_REMAP_POS1 #define RTC_OUTPUT_REMAP_PB2 RTC_OUTPUT_REMAP_POS1 #define RTC_TAMPERPIN_PC13 RTC_TAMPERPIN_DEFAULT #define RTC_TAMPERPIN_PA0 RTC_TAMPERPIN_POS1 #define RTC_TAMPERPIN_PI8 RTC_TAMPERPIN_POS1 #if defined(STM32H7) #define RTC_TAMPCR_TAMPXE RTC_TAMPER_X #define RTC_TAMPCR_TAMPXIE RTC_TAMPER_X_INTERRUPT #define RTC_TAMPER1_INTERRUPT RTC_IT_TAMP1 #define RTC_TAMPER2_INTERRUPT RTC_IT_TAMP2 #define RTC_TAMPER3_INTERRUPT RTC_IT_TAMP3 #define RTC_ALL_TAMPER_INTERRUPT RTC_IT_TAMPALL #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_SMARTCARD_Aliased_Defines HAL SMARTCARD Aliased Defines maintained for legacy purpose * @{ */ #define SMARTCARD_NACK_ENABLED SMARTCARD_NACK_ENABLE #define SMARTCARD_NACK_DISABLED SMARTCARD_NACK_DISABLE #define SMARTCARD_ONEBIT_SAMPLING_DISABLED SMARTCARD_ONE_BIT_SAMPLE_DISABLE #define SMARTCARD_ONEBIT_SAMPLING_ENABLED SMARTCARD_ONE_BIT_SAMPLE_ENABLE #define SMARTCARD_ONEBIT_SAMPLING_DISABLE SMARTCARD_ONE_BIT_SAMPLE_DISABLE #define SMARTCARD_ONEBIT_SAMPLING_ENABLE SMARTCARD_ONE_BIT_SAMPLE_ENABLE #define SMARTCARD_TIMEOUT_DISABLED SMARTCARD_TIMEOUT_DISABLE #define SMARTCARD_TIMEOUT_ENABLED SMARTCARD_TIMEOUT_ENABLE #define SMARTCARD_LASTBIT_DISABLED SMARTCARD_LASTBIT_DISABLE #define SMARTCARD_LASTBIT_ENABLED SMARTCARD_LASTBIT_ENABLE /** * @} */ /** @defgroup HAL_SMBUS_Aliased_Defines HAL SMBUS Aliased Defines maintained for legacy purpose * @{ */ #define SMBUS_DUALADDRESS_DISABLED SMBUS_DUALADDRESS_DISABLE #define SMBUS_DUALADDRESS_ENABLED SMBUS_DUALADDRESS_ENABLE #define SMBUS_GENERALCALL_DISABLED SMBUS_GENERALCALL_DISABLE #define SMBUS_GENERALCALL_ENABLED SMBUS_GENERALCALL_ENABLE #define SMBUS_NOSTRETCH_DISABLED SMBUS_NOSTRETCH_DISABLE #define SMBUS_NOSTRETCH_ENABLED SMBUS_NOSTRETCH_ENABLE #define SMBUS_ANALOGFILTER_ENABLED SMBUS_ANALOGFILTER_ENABLE #define SMBUS_ANALOGFILTER_DISABLED SMBUS_ANALOGFILTER_DISABLE #define SMBUS_PEC_DISABLED SMBUS_PEC_DISABLE #define SMBUS_PEC_ENABLED SMBUS_PEC_ENABLE #define HAL_SMBUS_STATE_SLAVE_LISTEN HAL_SMBUS_STATE_LISTEN /** * @} */ /** @defgroup HAL_SPI_Aliased_Defines HAL SPI Aliased Defines maintained for legacy purpose * @{ */ #define SPI_TIMODE_DISABLED SPI_TIMODE_DISABLE #define SPI_TIMODE_ENABLED SPI_TIMODE_ENABLE #define SPI_CRCCALCULATION_DISABLED SPI_CRCCALCULATION_DISABLE #define SPI_CRCCALCULATION_ENABLED SPI_CRCCALCULATION_ENABLE #define SPI_NSS_PULSE_DISABLED SPI_NSS_PULSE_DISABLE #define SPI_NSS_PULSE_ENABLED SPI_NSS_PULSE_ENABLE #if defined(STM32H7) #define SPI_FLAG_TXE SPI_FLAG_TXP #define SPI_FLAG_RXNE SPI_FLAG_RXP #define SPI_IT_TXE SPI_IT_TXP #define SPI_IT_RXNE SPI_IT_RXP #define SPI_FRLVL_EMPTY SPI_RX_FIFO_0PACKET #define SPI_FRLVL_QUARTER_FULL SPI_RX_FIFO_1PACKET #define SPI_FRLVL_HALF_FULL SPI_RX_FIFO_2PACKET #define SPI_FRLVL_FULL SPI_RX_FIFO_3PACKET #endif /* STM32H7 */ /** * @} */ /** @defgroup HAL_TIM_Aliased_Defines HAL TIM Aliased Defines maintained for legacy purpose * @{ */ #define CCER_CCxE_MASK TIM_CCER_CCxE_MASK #define CCER_CCxNE_MASK TIM_CCER_CCxNE_MASK #define TIM_DMABase_CR1 TIM_DMABASE_CR1 #define TIM_DMABase_CR2 TIM_DMABASE_CR2 #define TIM_DMABase_SMCR TIM_DMABASE_SMCR #define TIM_DMABase_DIER TIM_DMABASE_DIER #define TIM_DMABase_SR TIM_DMABASE_SR #define TIM_DMABase_EGR TIM_DMABASE_EGR #define TIM_DMABase_CCMR1 TIM_DMABASE_CCMR1 #define TIM_DMABase_CCMR2 TIM_DMABASE_CCMR2 #define TIM_DMABase_CCER TIM_DMABASE_CCER #define TIM_DMABase_CNT TIM_DMABASE_CNT #define TIM_DMABase_PSC TIM_DMABASE_PSC #define TIM_DMABase_ARR TIM_DMABASE_ARR #define TIM_DMABase_RCR TIM_DMABASE_RCR #define TIM_DMABase_CCR1 TIM_DMABASE_CCR1 #define TIM_DMABase_CCR2 TIM_DMABASE_CCR2 #define TIM_DMABase_CCR3 TIM_DMABASE_CCR3 #define TIM_DMABase_CCR4 TIM_DMABASE_CCR4 #define TIM_DMABase_BDTR TIM_DMABASE_BDTR #define TIM_DMABase_DCR TIM_DMABASE_DCR #define TIM_DMABase_DMAR TIM_DMABASE_DMAR #define TIM_DMABase_OR1 TIM_DMABASE_OR1 #define TIM_DMABase_CCMR3 TIM_DMABASE_CCMR3 #define TIM_DMABase_CCR5 TIM_DMABASE_CCR5 #define TIM_DMABase_CCR6 TIM_DMABASE_CCR6 #define TIM_DMABase_OR2 TIM_DMABASE_OR2 #define TIM_DMABase_OR3 TIM_DMABASE_OR3 #define TIM_DMABase_OR TIM_DMABASE_OR #define TIM_EventSource_Update TIM_EVENTSOURCE_UPDATE #define TIM_EventSource_CC1 TIM_EVENTSOURCE_CC1 #define TIM_EventSource_CC2 TIM_EVENTSOURCE_CC2 #define TIM_EventSource_CC3 TIM_EVENTSOURCE_CC3 #define TIM_EventSource_CC4 TIM_EVENTSOURCE_CC4 #define TIM_EventSource_COM TIM_EVENTSOURCE_COM #define TIM_EventSource_Trigger TIM_EVENTSOURCE_TRIGGER #define TIM_EventSource_Break TIM_EVENTSOURCE_BREAK #define TIM_EventSource_Break2 TIM_EVENTSOURCE_BREAK2 #define TIM_DMABurstLength_1Transfer TIM_DMABURSTLENGTH_1TRANSFER #define TIM_DMABurstLength_2Transfers TIM_DMABURSTLENGTH_2TRANSFERS #define TIM_DMABurstLength_3Transfers TIM_DMABURSTLENGTH_3TRANSFERS #define TIM_DMABurstLength_4Transfers TIM_DMABURSTLENGTH_4TRANSFERS #define TIM_DMABurstLength_5Transfers TIM_DMABURSTLENGTH_5TRANSFERS #define TIM_DMABurstLength_6Transfers TIM_DMABURSTLENGTH_6TRANSFERS #define TIM_DMABurstLength_7Transfers TIM_DMABURSTLENGTH_7TRANSFERS #define TIM_DMABurstLength_8Transfers TIM_DMABURSTLENGTH_8TRANSFERS #define TIM_DMABurstLength_9Transfers TIM_DMABURSTLENGTH_9TRANSFERS #define TIM_DMABurstLength_10Transfers TIM_DMABURSTLENGTH_10TRANSFERS #define TIM_DMABurstLength_11Transfers TIM_DMABURSTLENGTH_11TRANSFERS #define TIM_DMABurstLength_12Transfers TIM_DMABURSTLENGTH_12TRANSFERS #define TIM_DMABurstLength_13Transfers TIM_DMABURSTLENGTH_13TRANSFERS #define TIM_DMABurstLength_14Transfers TIM_DMABURSTLENGTH_14TRANSFERS #define TIM_DMABurstLength_15Transfers TIM_DMABURSTLENGTH_15TRANSFERS #define TIM_DMABurstLength_16Transfers TIM_DMABURSTLENGTH_16TRANSFERS #define TIM_DMABurstLength_17Transfers TIM_DMABURSTLENGTH_17TRANSFERS #define TIM_DMABurstLength_18Transfers TIM_DMABURSTLENGTH_18TRANSFERS #if defined(STM32L0) #define TIM22_TI1_GPIO1 TIM22_TI1_GPIO #define TIM22_TI1_GPIO2 TIM22_TI1_GPIO #endif #if defined(STM32F3) #define IS_TIM_HALL_INTERFACE_INSTANCE IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE #endif #if defined(STM32H7) #define TIM_TIM1_ETR_COMP1_OUT TIM_TIM1_ETR_COMP1 #define TIM_TIM1_ETR_COMP2_OUT TIM_TIM1_ETR_COMP2 #define TIM_TIM8_ETR_COMP1_OUT TIM_TIM8_ETR_COMP1 #define TIM_TIM8_ETR_COMP2_OUT TIM_TIM8_ETR_COMP2 #define TIM_TIM2_ETR_COMP1_OUT TIM_TIM2_ETR_COMP1 #define TIM_TIM2_ETR_COMP2_OUT TIM_TIM2_ETR_COMP2 #define TIM_TIM3_ETR_COMP1_OUT TIM_TIM3_ETR_COMP1 #define TIM_TIM1_TI1_COMP1_OUT TIM_TIM1_TI1_COMP1 #define TIM_TIM8_TI1_COMP2_OUT TIM_TIM8_TI1_COMP2 #define TIM_TIM2_TI4_COMP1_OUT TIM_TIM2_TI4_COMP1 #define TIM_TIM2_TI4_COMP2_OUT TIM_TIM2_TI4_COMP2 #define TIM_TIM2_TI4_COMP1COMP2_OUT TIM_TIM2_TI4_COMP1_COMP2 #define TIM_TIM3_TI1_COMP1_OUT TIM_TIM3_TI1_COMP1 #define TIM_TIM3_TI1_COMP2_OUT TIM_TIM3_TI1_COMP2 #define TIM_TIM3_TI1_COMP1COMP2_OUT TIM_TIM3_TI1_COMP1_COMP2 #endif /** * @} */ /** @defgroup HAL_TSC_Aliased_Defines HAL TSC Aliased Defines maintained for legacy purpose * @{ */ #define TSC_SYNC_POL_FALL TSC_SYNC_POLARITY_FALLING #define TSC_SYNC_POL_RISE_HIGH TSC_SYNC_POLARITY_RISING /** * @} */ /** @defgroup HAL_UART_Aliased_Defines HAL UART Aliased Defines maintained for legacy purpose * @{ */ #define UART_ONEBIT_SAMPLING_DISABLED UART_ONE_BIT_SAMPLE_DISABLE #define UART_ONEBIT_SAMPLING_ENABLED UART_ONE_BIT_SAMPLE_ENABLE #define UART_ONE_BIT_SAMPLE_DISABLED UART_ONE_BIT_SAMPLE_DISABLE #define UART_ONE_BIT_SAMPLE_ENABLED UART_ONE_BIT_SAMPLE_ENABLE #define __HAL_UART_ONEBIT_ENABLE __HAL_UART_ONE_BIT_SAMPLE_ENABLE #define __HAL_UART_ONEBIT_DISABLE __HAL_UART_ONE_BIT_SAMPLE_DISABLE #define __DIV_SAMPLING16 UART_DIV_SAMPLING16 #define __DIVMANT_SAMPLING16 UART_DIVMANT_SAMPLING16 #define __DIVFRAQ_SAMPLING16 UART_DIVFRAQ_SAMPLING16 #define __UART_BRR_SAMPLING16 UART_BRR_SAMPLING16 #define __DIV_SAMPLING8 UART_DIV_SAMPLING8 #define __DIVMANT_SAMPLING8 UART_DIVMANT_SAMPLING8 #define __DIVFRAQ_SAMPLING8 UART_DIVFRAQ_SAMPLING8 #define __UART_BRR_SAMPLING8 UART_BRR_SAMPLING8 #define __DIV_LPUART UART_DIV_LPUART #define UART_WAKEUPMETHODE_IDLELINE UART_WAKEUPMETHOD_IDLELINE #define UART_WAKEUPMETHODE_ADDRESSMARK UART_WAKEUPMETHOD_ADDRESSMARK /** * @} */ /** @defgroup HAL_USART_Aliased_Defines HAL USART Aliased Defines maintained for legacy purpose * @{ */ #define USART_CLOCK_DISABLED USART_CLOCK_DISABLE #define USART_CLOCK_ENABLED USART_CLOCK_ENABLE #define USARTNACK_ENABLED USART_NACK_ENABLE #define USARTNACK_DISABLED USART_NACK_DISABLE /** * @} */ /** @defgroup HAL_WWDG_Aliased_Defines HAL WWDG Aliased Defines maintained for legacy purpose * @{ */ #define CFR_BASE WWDG_CFR_BASE /** * @} */ /** @defgroup HAL_CAN_Aliased_Defines HAL CAN Aliased Defines maintained for legacy purpose * @{ */ #define CAN_FilterFIFO0 CAN_FILTER_FIFO0 #define CAN_FilterFIFO1 CAN_FILTER_FIFO1 #define CAN_IT_RQCP0 CAN_IT_TME #define CAN_IT_RQCP1 CAN_IT_TME #define CAN_IT_RQCP2 CAN_IT_TME #define INAK_TIMEOUT CAN_TIMEOUT_VALUE #define SLAK_TIMEOUT CAN_TIMEOUT_VALUE #define CAN_TXSTATUS_FAILED ((uint8_t)0x00U) #define CAN_TXSTATUS_OK ((uint8_t)0x01U) #define CAN_TXSTATUS_PENDING ((uint8_t)0x02U) /** * @} */ /** @defgroup HAL_ETH_Aliased_Defines HAL ETH Aliased Defines maintained for legacy purpose * @{ */ #define VLAN_TAG ETH_VLAN_TAG #define MIN_ETH_PAYLOAD ETH_MIN_ETH_PAYLOAD #define MAX_ETH_PAYLOAD ETH_MAX_ETH_PAYLOAD #define JUMBO_FRAME_PAYLOAD ETH_JUMBO_FRAME_PAYLOAD #define MACMIIAR_CR_MASK ETH_MACMIIAR_CR_MASK #define MACCR_CLEAR_MASK ETH_MACCR_CLEAR_MASK #define MACFCR_CLEAR_MASK ETH_MACFCR_CLEAR_MASK #define DMAOMR_CLEAR_MASK ETH_DMAOMR_CLEAR_MASK #define ETH_MMCCR 0x00000100U #define ETH_MMCRIR 0x00000104U #define ETH_MMCTIR 0x00000108U #define ETH_MMCRIMR 0x0000010CU #define ETH_MMCTIMR 0x00000110U #define ETH_MMCTGFSCCR 0x0000014CU #define ETH_MMCTGFMSCCR 0x00000150U #define ETH_MMCTGFCR 0x00000168U #define ETH_MMCRFCECR 0x00000194U #define ETH_MMCRFAECR 0x00000198U #define ETH_MMCRGUFCR 0x000001C4U #define ETH_MAC_TXFIFO_FULL 0x02000000U /* Tx FIFO full */ #define ETH_MAC_TXFIFONOT_EMPTY 0x01000000U /* Tx FIFO not empty */ #define ETH_MAC_TXFIFO_WRITE_ACTIVE 0x00400000U /* Tx FIFO write active */ #define ETH_MAC_TXFIFO_IDLE 0x00000000U /* Tx FIFO read status: Idle */ #define ETH_MAC_TXFIFO_READ 0x00100000U /* Tx FIFO read status: Read (transferring data to the MAC transmitter) */ #define ETH_MAC_TXFIFO_WAITING 0x00200000U /* Tx FIFO read status: Waiting for TxStatus from MAC transmitter */ #define ETH_MAC_TXFIFO_WRITING 0x00300000U /* Tx FIFO read status: Writing the received TxStatus or flushing the TxFIFO */ #define ETH_MAC_TRANSMISSION_PAUSE 0x00080000U /* MAC transmitter in pause */ #define ETH_MAC_TRANSMITFRAMECONTROLLER_IDLE 0x00000000U /* MAC transmit frame controller: Idle */ #define ETH_MAC_TRANSMITFRAMECONTROLLER_WAITING 0x00020000U /* MAC transmit frame controller: Waiting for Status of previous frame or IFG/backoff period to be over */ #define ETH_MAC_TRANSMITFRAMECONTROLLER_GENRATING_PCF 0x00040000U /* MAC transmit frame controller: Generating and transmitting a Pause control frame (in full duplex mode) */ #define ETH_MAC_TRANSMITFRAMECONTROLLER_TRANSFERRING 0x00060000U /* MAC transmit frame controller: Transferring input frame for transmission */ #define ETH_MAC_MII_TRANSMIT_ACTIVE 0x00010000U /* MAC MII transmit engine active */ #define ETH_MAC_RXFIFO_EMPTY 0x00000000U /* Rx FIFO fill level: empty */ #define ETH_MAC_RXFIFO_BELOW_THRESHOLD 0x00000100U /* Rx FIFO fill level: fill-level below flow-control de-activate threshold */ #define ETH_MAC_RXFIFO_ABOVE_THRESHOLD 0x00000200U /* Rx FIFO fill level: fill-level above flow-control activate threshold */ #define ETH_MAC_RXFIFO_FULL 0x00000300U /* Rx FIFO fill level: full */ #if defined(STM32F1) #else #define ETH_MAC_READCONTROLLER_IDLE 0x00000000U /* Rx FIFO read controller IDLE state */ #define ETH_MAC_READCONTROLLER_READING_DATA 0x00000020U /* Rx FIFO read controller Reading frame data */ #define ETH_MAC_READCONTROLLER_READING_STATUS 0x00000040U /* Rx FIFO read controller Reading frame status (or time-stamp) */ #endif #define ETH_MAC_READCONTROLLER_FLUSHING 0x00000060U /* Rx FIFO read controller Flushing the frame data and status */ #define ETH_MAC_RXFIFO_WRITE_ACTIVE 0x00000010U /* Rx FIFO write controller active */ #define ETH_MAC_SMALL_FIFO_NOTACTIVE 0x00000000U /* MAC small FIFO read / write controllers not active */ #define ETH_MAC_SMALL_FIFO_READ_ACTIVE 0x00000002U /* MAC small FIFO read controller active */ #define ETH_MAC_SMALL_FIFO_WRITE_ACTIVE 0x00000004U /* MAC small FIFO write controller active */ #define ETH_MAC_SMALL_FIFO_RW_ACTIVE 0x00000006U /* MAC small FIFO read / write controllers active */ #define ETH_MAC_MII_RECEIVE_PROTOCOL_ACTIVE 0x00000001U /* MAC MII receive protocol engine active */ /** * @} */ /** @defgroup HAL_DCMI_Aliased_Defines HAL DCMI Aliased Defines maintained for legacy purpose * @{ */ #define HAL_DCMI_ERROR_OVF HAL_DCMI_ERROR_OVR #define DCMI_IT_OVF DCMI_IT_OVR #define DCMI_FLAG_OVFRI DCMI_FLAG_OVRRI #define DCMI_FLAG_OVFMI DCMI_FLAG_OVRMI #define HAL_DCMI_ConfigCROP HAL_DCMI_ConfigCrop #define HAL_DCMI_EnableCROP HAL_DCMI_EnableCrop #define HAL_DCMI_DisableCROP HAL_DCMI_DisableCrop /** * @} */ #if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \ || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \ || defined(STM32H7) /** @defgroup HAL_DMA2D_Aliased_Defines HAL DMA2D Aliased Defines maintained for legacy purpose * @{ */ #define DMA2D_ARGB8888 DMA2D_OUTPUT_ARGB8888 #define DMA2D_RGB888 DMA2D_OUTPUT_RGB888 #define DMA2D_RGB565 DMA2D_OUTPUT_RGB565 #define DMA2D_ARGB1555 DMA2D_OUTPUT_ARGB1555 #define DMA2D_ARGB4444 DMA2D_OUTPUT_ARGB4444 #define CM_ARGB8888 DMA2D_INPUT_ARGB8888 #define CM_RGB888 DMA2D_INPUT_RGB888 #define CM_RGB565 DMA2D_INPUT_RGB565 #define CM_ARGB1555 DMA2D_INPUT_ARGB1555 #define CM_ARGB4444 DMA2D_INPUT_ARGB4444 #define CM_L8 DMA2D_INPUT_L8 #define CM_AL44 DMA2D_INPUT_AL44 #define CM_AL88 DMA2D_INPUT_AL88 #define CM_L4 DMA2D_INPUT_L4 #define CM_A8 DMA2D_INPUT_A8 #define CM_A4 DMA2D_INPUT_A4 /** * @} */ #endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 */ /** @defgroup HAL_PPP_Aliased_Defines HAL PPP Aliased Defines maintained for legacy purpose * @{ */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup HAL_CRYP_Aliased_Functions HAL CRYP Aliased Functions maintained for legacy purpose * @{ */ #define HAL_CRYP_ComputationCpltCallback HAL_CRYPEx_ComputationCpltCallback /** * @} */ /** @defgroup HAL_HASH_Aliased_Functions HAL HASH Aliased Functions maintained for legacy purpose * @{ */ #define HAL_HASH_STATETypeDef HAL_HASH_StateTypeDef #define HAL_HASHPhaseTypeDef HAL_HASH_PhaseTypeDef #define HAL_HMAC_MD5_Finish HAL_HASH_MD5_Finish #define HAL_HMAC_SHA1_Finish HAL_HASH_SHA1_Finish #define HAL_HMAC_SHA224_Finish HAL_HASH_SHA224_Finish #define HAL_HMAC_SHA256_Finish HAL_HASH_SHA256_Finish /*HASH Algorithm Selection*/ #define HASH_AlgoSelection_SHA1 HASH_ALGOSELECTION_SHA1 #define HASH_AlgoSelection_SHA224 HASH_ALGOSELECTION_SHA224 #define HASH_AlgoSelection_SHA256 HASH_ALGOSELECTION_SHA256 #define HASH_AlgoSelection_MD5 HASH_ALGOSELECTION_MD5 #define HASH_AlgoMode_HASH HASH_ALGOMODE_HASH #define HASH_AlgoMode_HMAC HASH_ALGOMODE_HMAC #define HASH_HMACKeyType_ShortKey HASH_HMAC_KEYTYPE_SHORTKEY #define HASH_HMACKeyType_LongKey HASH_HMAC_KEYTYPE_LONGKEY #if defined(STM32L4) || defined(STM32L5) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7) #define HAL_HASH_MD5_Accumulate HAL_HASH_MD5_Accmlt #define HAL_HASH_MD5_Accumulate_End HAL_HASH_MD5_Accmlt_End #define HAL_HASH_MD5_Accumulate_IT HAL_HASH_MD5_Accmlt_IT #define HAL_HASH_MD5_Accumulate_End_IT HAL_HASH_MD5_Accmlt_End_IT #define HAL_HASH_SHA1_Accumulate HAL_HASH_SHA1_Accmlt #define HAL_HASH_SHA1_Accumulate_End HAL_HASH_SHA1_Accmlt_End #define HAL_HASH_SHA1_Accumulate_IT HAL_HASH_SHA1_Accmlt_IT #define HAL_HASH_SHA1_Accumulate_End_IT HAL_HASH_SHA1_Accmlt_End_IT #define HAL_HASHEx_SHA224_Accumulate HAL_HASHEx_SHA224_Accmlt #define HAL_HASHEx_SHA224_Accumulate_End HAL_HASHEx_SHA224_Accmlt_End #define HAL_HASHEx_SHA224_Accumulate_IT HAL_HASHEx_SHA224_Accmlt_IT #define HAL_HASHEx_SHA224_Accumulate_End_IT HAL_HASHEx_SHA224_Accmlt_End_IT #define HAL_HASHEx_SHA256_Accumulate HAL_HASHEx_SHA256_Accmlt #define HAL_HASHEx_SHA256_Accumulate_End HAL_HASHEx_SHA256_Accmlt_End #define HAL_HASHEx_SHA256_Accumulate_IT HAL_HASHEx_SHA256_Accmlt_IT #define HAL_HASHEx_SHA256_Accumulate_End_IT HAL_HASHEx_SHA256_Accmlt_End_IT #endif /* STM32L4 || STM32L5 || STM32F2 || STM32F4 || STM32F7 || STM32H7 */ /** * @} */ /** @defgroup HAL_Aliased_Functions HAL Generic Aliased Functions maintained for legacy purpose * @{ */ #define HAL_EnableDBGSleepMode HAL_DBGMCU_EnableDBGSleepMode #define HAL_DisableDBGSleepMode HAL_DBGMCU_DisableDBGSleepMode #define HAL_EnableDBGStopMode HAL_DBGMCU_EnableDBGStopMode #define HAL_DisableDBGStopMode HAL_DBGMCU_DisableDBGStopMode #define HAL_EnableDBGStandbyMode HAL_DBGMCU_EnableDBGStandbyMode #define HAL_DisableDBGStandbyMode HAL_DBGMCU_DisableDBGStandbyMode #define HAL_DBG_LowPowerConfig(Periph, cmd) (((cmd\ )==ENABLE)? HAL_DBGMCU_DBG_EnableLowPowerConfig(Periph) : HAL_DBGMCU_DBG_DisableLowPowerConfig(Periph)) #define HAL_VREFINT_OutputSelect HAL_SYSCFG_VREFINT_OutputSelect #define HAL_Lock_Cmd(cmd) (((cmd)==ENABLE) ? HAL_SYSCFG_Enable_Lock_VREFINT() : HAL_SYSCFG_Disable_Lock_VREFINT()) #if defined(STM32L0) #else #define HAL_VREFINT_Cmd(cmd) (((cmd)==ENABLE)? HAL_SYSCFG_EnableVREFINT() : HAL_SYSCFG_DisableVREFINT()) #endif #define HAL_ADC_EnableBuffer_Cmd(cmd) (((cmd)==ENABLE) ? HAL_ADCEx_EnableVREFINT() : HAL_ADCEx_DisableVREFINT()) #define HAL_ADC_EnableBufferSensor_Cmd(cmd) (((cmd\ )==ENABLE) ? HAL_ADCEx_EnableVREFINTTempSensor() : HAL_ADCEx_DisableVREFINTTempSensor()) #if defined(STM32H7A3xx) || defined(STM32H7B3xx) || defined(STM32H7B0xx) || defined(STM32H7A3xxQ) || defined(STM32H7B3xxQ) || defined(STM32H7B0xxQ) #define HAL_EnableSRDomainDBGStopMode HAL_EnableDomain3DBGStopMode #define HAL_DisableSRDomainDBGStopMode HAL_DisableDomain3DBGStopMode #define HAL_EnableSRDomainDBGStandbyMode HAL_EnableDomain3DBGStandbyMode #define HAL_DisableSRDomainDBGStandbyMode HAL_DisableDomain3DBGStandbyMode #endif /* STM32H7A3xx || STM32H7B3xx || STM32H7B0xx || STM32H7A3xxQ || STM32H7B3xxQ || STM32H7B0xxQ */ /** * @} */ /** @defgroup HAL_FLASH_Aliased_Functions HAL FLASH Aliased Functions maintained for legacy purpose * @{ */ #define FLASH_HalfPageProgram HAL_FLASHEx_HalfPageProgram #define FLASH_EnableRunPowerDown HAL_FLASHEx_EnableRunPowerDown #define FLASH_DisableRunPowerDown HAL_FLASHEx_DisableRunPowerDown #define HAL_DATA_EEPROMEx_Unlock HAL_FLASHEx_DATAEEPROM_Unlock #define HAL_DATA_EEPROMEx_Lock HAL_FLASHEx_DATAEEPROM_Lock #define HAL_DATA_EEPROMEx_Erase HAL_FLASHEx_DATAEEPROM_Erase #define HAL_DATA_EEPROMEx_Program HAL_FLASHEx_DATAEEPROM_Program /** * @} */ /** @defgroup HAL_I2C_Aliased_Functions HAL I2C Aliased Functions maintained for legacy purpose * @{ */ #define HAL_I2CEx_AnalogFilter_Config HAL_I2CEx_ConfigAnalogFilter #define HAL_I2CEx_DigitalFilter_Config HAL_I2CEx_ConfigDigitalFilter #define HAL_FMPI2CEx_AnalogFilter_Config HAL_FMPI2CEx_ConfigAnalogFilter #define HAL_FMPI2CEx_DigitalFilter_Config HAL_FMPI2CEx_ConfigDigitalFilter #define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) (((cmd\ )==ENABLE)? HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus)) #if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4) || defined(STM32L1) #define HAL_I2C_Master_Sequential_Transmit_IT HAL_I2C_Master_Seq_Transmit_IT #define HAL_I2C_Master_Sequential_Receive_IT HAL_I2C_Master_Seq_Receive_IT #define HAL_I2C_Slave_Sequential_Transmit_IT HAL_I2C_Slave_Seq_Transmit_IT #define HAL_I2C_Slave_Sequential_Receive_IT HAL_I2C_Slave_Seq_Receive_IT #endif /* STM32H7 || STM32WB || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */ #if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4)|| defined(STM32L1) #define HAL_I2C_Master_Sequential_Transmit_DMA HAL_I2C_Master_Seq_Transmit_DMA #define HAL_I2C_Master_Sequential_Receive_DMA HAL_I2C_Master_Seq_Receive_DMA #define HAL_I2C_Slave_Sequential_Transmit_DMA HAL_I2C_Slave_Seq_Transmit_DMA #define HAL_I2C_Slave_Sequential_Receive_DMA HAL_I2C_Slave_Seq_Receive_DMA #endif /* STM32H7 || STM32WB || STM32G0 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */ #if defined(STM32F4) #define HAL_FMPI2C_Master_Sequential_Transmit_IT HAL_FMPI2C_Master_Seq_Transmit_IT #define HAL_FMPI2C_Master_Sequential_Receive_IT HAL_FMPI2C_Master_Seq_Receive_IT #define HAL_FMPI2C_Slave_Sequential_Transmit_IT HAL_FMPI2C_Slave_Seq_Transmit_IT #define HAL_FMPI2C_Slave_Sequential_Receive_IT HAL_FMPI2C_Slave_Seq_Receive_IT #define HAL_FMPI2C_Master_Sequential_Transmit_DMA HAL_FMPI2C_Master_Seq_Transmit_DMA #define HAL_FMPI2C_Master_Sequential_Receive_DMA HAL_FMPI2C_Master_Seq_Receive_DMA #define HAL_FMPI2C_Slave_Sequential_Transmit_DMA HAL_FMPI2C_Slave_Seq_Transmit_DMA #define HAL_FMPI2C_Slave_Sequential_Receive_DMA HAL_FMPI2C_Slave_Seq_Receive_DMA #endif /* STM32F4 */ /** * @} */ /** @defgroup HAL_PWR_Aliased HAL PWR Aliased maintained for legacy purpose * @{ */ #if defined(STM32G0) #define HAL_PWR_ConfigPVD HAL_PWREx_ConfigPVD #define HAL_PWR_EnablePVD HAL_PWREx_EnablePVD #define HAL_PWR_DisablePVD HAL_PWREx_DisablePVD #define HAL_PWR_PVD_IRQHandler HAL_PWREx_PVD_IRQHandler #endif #define HAL_PWR_PVDConfig HAL_PWR_ConfigPVD #define HAL_PWR_DisableBkUpReg HAL_PWREx_DisableBkUpReg #define HAL_PWR_DisableFlashPowerDown HAL_PWREx_DisableFlashPowerDown #define HAL_PWR_DisableVddio2Monitor HAL_PWREx_DisableVddio2Monitor #define HAL_PWR_EnableBkUpReg HAL_PWREx_EnableBkUpReg #define HAL_PWR_EnableFlashPowerDown HAL_PWREx_EnableFlashPowerDown #define HAL_PWR_EnableVddio2Monitor HAL_PWREx_EnableVddio2Monitor #define HAL_PWR_PVD_PVM_IRQHandler HAL_PWREx_PVD_PVM_IRQHandler #define HAL_PWR_PVDLevelConfig HAL_PWR_ConfigPVD #define HAL_PWR_Vddio2Monitor_IRQHandler HAL_PWREx_Vddio2Monitor_IRQHandler #define HAL_PWR_Vddio2MonitorCallback HAL_PWREx_Vddio2MonitorCallback #define HAL_PWREx_ActivateOverDrive HAL_PWREx_EnableOverDrive #define HAL_PWREx_DeactivateOverDrive HAL_PWREx_DisableOverDrive #define HAL_PWREx_DisableSDADCAnalog HAL_PWREx_DisableSDADC #define HAL_PWREx_EnableSDADCAnalog HAL_PWREx_EnableSDADC #define HAL_PWREx_PVMConfig HAL_PWREx_ConfigPVM #define PWR_MODE_NORMAL PWR_PVD_MODE_NORMAL #define PWR_MODE_IT_RISING PWR_PVD_MODE_IT_RISING #define PWR_MODE_IT_FALLING PWR_PVD_MODE_IT_FALLING #define PWR_MODE_IT_RISING_FALLING PWR_PVD_MODE_IT_RISING_FALLING #define PWR_MODE_EVENT_RISING PWR_PVD_MODE_EVENT_RISING #define PWR_MODE_EVENT_FALLING PWR_PVD_MODE_EVENT_FALLING #define PWR_MODE_EVENT_RISING_FALLING PWR_PVD_MODE_EVENT_RISING_FALLING #define CR_OFFSET_BB PWR_CR_OFFSET_BB #define CSR_OFFSET_BB PWR_CSR_OFFSET_BB #define PMODE_BIT_NUMBER VOS_BIT_NUMBER #define CR_PMODE_BB CR_VOS_BB #define DBP_BitNumber DBP_BIT_NUMBER #define PVDE_BitNumber PVDE_BIT_NUMBER #define PMODE_BitNumber PMODE_BIT_NUMBER #define EWUP_BitNumber EWUP_BIT_NUMBER #define FPDS_BitNumber FPDS_BIT_NUMBER #define ODEN_BitNumber ODEN_BIT_NUMBER #define ODSWEN_BitNumber ODSWEN_BIT_NUMBER #define MRLVDS_BitNumber MRLVDS_BIT_NUMBER #define LPLVDS_BitNumber LPLVDS_BIT_NUMBER #define BRE_BitNumber BRE_BIT_NUMBER #define PWR_MODE_EVT PWR_PVD_MODE_NORMAL /** * @} */ /** @defgroup HAL_SMBUS_Aliased_Functions HAL SMBUS Aliased Functions maintained for legacy purpose * @{ */ #define HAL_SMBUS_Slave_Listen_IT HAL_SMBUS_EnableListen_IT #define HAL_SMBUS_SlaveAddrCallback HAL_SMBUS_AddrCallback #define HAL_SMBUS_SlaveListenCpltCallback HAL_SMBUS_ListenCpltCallback /** * @} */ /** @defgroup HAL_SPI_Aliased_Functions HAL SPI Aliased Functions maintained for legacy purpose * @{ */ #define HAL_SPI_FlushRxFifo HAL_SPIEx_FlushRxFifo /** * @} */ /** @defgroup HAL_TIM_Aliased_Functions HAL TIM Aliased Functions maintained for legacy purpose * @{ */ #define HAL_TIM_DMADelayPulseCplt TIM_DMADelayPulseCplt #define HAL_TIM_DMAError TIM_DMAError #define HAL_TIM_DMACaptureCplt TIM_DMACaptureCplt #define HAL_TIMEx_DMACommutationCplt TIMEx_DMACommutationCplt #if defined(STM32H7) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) #define HAL_TIM_SlaveConfigSynchronization HAL_TIM_SlaveConfigSynchro #define HAL_TIM_SlaveConfigSynchronization_IT HAL_TIM_SlaveConfigSynchro_IT #define HAL_TIMEx_CommutationCallback HAL_TIMEx_CommutCallback #define HAL_TIMEx_ConfigCommutationEvent HAL_TIMEx_ConfigCommutEvent #define HAL_TIMEx_ConfigCommutationEvent_IT HAL_TIMEx_ConfigCommutEvent_IT #define HAL_TIMEx_ConfigCommutationEvent_DMA HAL_TIMEx_ConfigCommutEvent_DMA #endif /* STM32H7 || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 */ /** * @} */ /** @defgroup HAL_UART_Aliased_Functions HAL UART Aliased Functions maintained for legacy purpose * @{ */ #define HAL_UART_WakeupCallback HAL_UARTEx_WakeupCallback /** * @} */ /** @defgroup HAL_LTDC_Aliased_Functions HAL LTDC Aliased Functions maintained for legacy purpose * @{ */ #define HAL_LTDC_LineEvenCallback HAL_LTDC_LineEventCallback #define HAL_LTDC_Relaod HAL_LTDC_Reload #define HAL_LTDC_StructInitFromVideoConfig HAL_LTDCEx_StructInitFromVideoConfig #define HAL_LTDC_StructInitFromAdaptedCommandConfig HAL_LTDCEx_StructInitFromAdaptedCommandConfig /** * @} */ /** @defgroup HAL_PPP_Aliased_Functions HAL PPP Aliased Functions maintained for legacy purpose * @{ */ /** * @} */ /* Exported macros ------------------------------------------------------------*/ /** @defgroup HAL_AES_Aliased_Macros HAL CRYP Aliased Macros maintained for legacy purpose * @{ */ #define AES_IT_CC CRYP_IT_CC #define AES_IT_ERR CRYP_IT_ERR #define AES_FLAG_CCF CRYP_FLAG_CCF /** * @} */ /** @defgroup HAL_Aliased_Macros HAL Generic Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_GET_BOOT_MODE __HAL_SYSCFG_GET_BOOT_MODE #define __HAL_REMAPMEMORY_FLASH __HAL_SYSCFG_REMAPMEMORY_FLASH #define __HAL_REMAPMEMORY_SYSTEMFLASH __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH #define __HAL_REMAPMEMORY_SRAM __HAL_SYSCFG_REMAPMEMORY_SRAM #define __HAL_REMAPMEMORY_FMC __HAL_SYSCFG_REMAPMEMORY_FMC #define __HAL_REMAPMEMORY_FMC_SDRAM __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM #define __HAL_REMAPMEMORY_FSMC __HAL_SYSCFG_REMAPMEMORY_FSMC #define __HAL_REMAPMEMORY_QUADSPI __HAL_SYSCFG_REMAPMEMORY_QUADSPI #define __HAL_FMC_BANK __HAL_SYSCFG_FMC_BANK #define __HAL_GET_FLAG __HAL_SYSCFG_GET_FLAG #define __HAL_CLEAR_FLAG __HAL_SYSCFG_CLEAR_FLAG #define __HAL_VREFINT_OUT_ENABLE __HAL_SYSCFG_VREFINT_OUT_ENABLE #define __HAL_VREFINT_OUT_DISABLE __HAL_SYSCFG_VREFINT_OUT_DISABLE #define __HAL_SYSCFG_SRAM2_WRP_ENABLE __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE #define SYSCFG_FLAG_VREF_READY SYSCFG_FLAG_VREFINT_READY #define SYSCFG_FLAG_RC48 RCC_FLAG_HSI48 #define IS_SYSCFG_FASTMODEPLUS_CONFIG IS_I2C_FASTMODEPLUS #define UFB_MODE_BitNumber UFB_MODE_BIT_NUMBER #define CMP_PD_BitNumber CMP_PD_BIT_NUMBER /** * @} */ /** @defgroup HAL_ADC_Aliased_Macros HAL ADC Aliased Macros maintained for legacy purpose * @{ */ #define __ADC_ENABLE __HAL_ADC_ENABLE #define __ADC_DISABLE __HAL_ADC_DISABLE #define __HAL_ADC_ENABLING_CONDITIONS ADC_ENABLING_CONDITIONS #define __HAL_ADC_DISABLING_CONDITIONS ADC_DISABLING_CONDITIONS #define __HAL_ADC_IS_ENABLED ADC_IS_ENABLE #define __ADC_IS_ENABLED ADC_IS_ENABLE #define __HAL_ADC_IS_SOFTWARE_START_REGULAR ADC_IS_SOFTWARE_START_REGULAR #define __HAL_ADC_IS_SOFTWARE_START_INJECTED ADC_IS_SOFTWARE_START_INJECTED #define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED #define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR ADC_IS_CONVERSION_ONGOING_REGULAR #define __HAL_ADC_IS_CONVERSION_ONGOING_INJECTED ADC_IS_CONVERSION_ONGOING_INJECTED #define __HAL_ADC_IS_CONVERSION_ONGOING ADC_IS_CONVERSION_ONGOING #define __HAL_ADC_CLEAR_ERRORCODE ADC_CLEAR_ERRORCODE #define __HAL_ADC_GET_RESOLUTION ADC_GET_RESOLUTION #define __HAL_ADC_JSQR_RK ADC_JSQR_RK #define __HAL_ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_SHIFT #define __HAL_ADC_CFGR_AWD23CR ADC_CFGR_AWD23CR #define __HAL_ADC_CFGR_INJECT_AUTO_CONVERSION ADC_CFGR_INJECT_AUTO_CONVERSION #define __HAL_ADC_CFGR_INJECT_CONTEXT_QUEUE ADC_CFGR_INJECT_CONTEXT_QUEUE #define __HAL_ADC_CFGR_INJECT_DISCCONTINUOUS ADC_CFGR_INJECT_DISCCONTINUOUS #define __HAL_ADC_CFGR_REG_DISCCONTINUOUS ADC_CFGR_REG_DISCCONTINUOUS #define __HAL_ADC_CFGR_DISCONTINUOUS_NUM ADC_CFGR_DISCONTINUOUS_NUM #define __HAL_ADC_CFGR_AUTOWAIT ADC_CFGR_AUTOWAIT #define __HAL_ADC_CFGR_CONTINUOUS ADC_CFGR_CONTINUOUS #define __HAL_ADC_CFGR_OVERRUN ADC_CFGR_OVERRUN #define __HAL_ADC_CFGR_DMACONTREQ ADC_CFGR_DMACONTREQ #define __HAL_ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_SET #define __HAL_ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_SET #define __HAL_ADC_OFR_CHANNEL ADC_OFR_CHANNEL #define __HAL_ADC_DIFSEL_CHANNEL ADC_DIFSEL_CHANNEL #define __HAL_ADC_CALFACT_DIFF_SET ADC_CALFACT_DIFF_SET #define __HAL_ADC_CALFACT_DIFF_GET ADC_CALFACT_DIFF_GET #define __HAL_ADC_TRX_HIGHTHRESHOLD ADC_TRX_HIGHTHRESHOLD #define __HAL_ADC_OFFSET_SHIFT_RESOLUTION ADC_OFFSET_SHIFT_RESOLUTION #define __HAL_ADC_AWD1THRESHOLD_SHIFT_RESOLUTION ADC_AWD1THRESHOLD_SHIFT_RESOLUTION #define __HAL_ADC_AWD23THRESHOLD_SHIFT_RESOLUTION ADC_AWD23THRESHOLD_SHIFT_RESOLUTION #define __HAL_ADC_COMMON_REGISTER ADC_COMMON_REGISTER #define __HAL_ADC_COMMON_CCR_MULTI ADC_COMMON_CCR_MULTI #define __HAL_ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE #define __ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE #define __HAL_ADC_NONMULTIMODE_OR_MULTIMODEMASTER ADC_NONMULTIMODE_OR_MULTIMODEMASTER #define __HAL_ADC_COMMON_ADC_OTHER ADC_COMMON_ADC_OTHER #define __HAL_ADC_MULTI_SLAVE ADC_MULTI_SLAVE #define __HAL_ADC_SQR1_L ADC_SQR1_L_SHIFT #define __HAL_ADC_JSQR_JL ADC_JSQR_JL_SHIFT #define __HAL_ADC_JSQR_RK_JL ADC_JSQR_RK_JL #define __HAL_ADC_CR1_DISCONTINUOUS_NUM ADC_CR1_DISCONTINUOUS_NUM #define __HAL_ADC_CR1_SCAN ADC_CR1_SCAN_SET #define __HAL_ADC_CONVCYCLES_MAX_RANGE ADC_CONVCYCLES_MAX_RANGE #define __HAL_ADC_CLOCK_PRESCALER_RANGE ADC_CLOCK_PRESCALER_RANGE #define __HAL_ADC_GET_CLOCK_PRESCALER ADC_GET_CLOCK_PRESCALER #define __HAL_ADC_SQR1 ADC_SQR1 #define __HAL_ADC_SMPR1 ADC_SMPR1 #define __HAL_ADC_SMPR2 ADC_SMPR2 #define __HAL_ADC_SQR3_RK ADC_SQR3_RK #define __HAL_ADC_SQR2_RK ADC_SQR2_RK #define __HAL_ADC_SQR1_RK ADC_SQR1_RK #define __HAL_ADC_CR2_CONTINUOUS ADC_CR2_CONTINUOUS #define __HAL_ADC_CR1_DISCONTINUOUS ADC_CR1_DISCONTINUOUS #define __HAL_ADC_CR1_SCANCONV ADC_CR1_SCANCONV #define __HAL_ADC_CR2_EOCSelection ADC_CR2_EOCSelection #define __HAL_ADC_CR2_DMAContReq ADC_CR2_DMAContReq #define __HAL_ADC_JSQR ADC_JSQR #define __HAL_ADC_CHSELR_CHANNEL ADC_CHSELR_CHANNEL #define __HAL_ADC_CFGR1_REG_DISCCONTINUOUS ADC_CFGR1_REG_DISCCONTINUOUS #define __HAL_ADC_CFGR1_AUTOOFF ADC_CFGR1_AUTOOFF #define __HAL_ADC_CFGR1_AUTOWAIT ADC_CFGR1_AUTOWAIT #define __HAL_ADC_CFGR1_CONTINUOUS ADC_CFGR1_CONTINUOUS #define __HAL_ADC_CFGR1_OVERRUN ADC_CFGR1_OVERRUN #define __HAL_ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR #define __HAL_ADC_CFGR1_DMACONTREQ ADC_CFGR1_DMACONTREQ /** * @} */ /** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_DHR12R1_ALIGNEMENT DAC_DHR12R1_ALIGNMENT #define __HAL_DHR12R2_ALIGNEMENT DAC_DHR12R2_ALIGNMENT #define __HAL_DHR12RD_ALIGNEMENT DAC_DHR12RD_ALIGNMENT #define IS_DAC_GENERATE_WAVE IS_DAC_WAVE /** * @} */ /** @defgroup HAL_DBGMCU_Aliased_Macros HAL DBGMCU Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_FREEZE_TIM1_DBGMCU __HAL_DBGMCU_FREEZE_TIM1 #define __HAL_UNFREEZE_TIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM1 #define __HAL_FREEZE_TIM2_DBGMCU __HAL_DBGMCU_FREEZE_TIM2 #define __HAL_UNFREEZE_TIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM2 #define __HAL_FREEZE_TIM3_DBGMCU __HAL_DBGMCU_FREEZE_TIM3 #define __HAL_UNFREEZE_TIM3_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM3 #define __HAL_FREEZE_TIM4_DBGMCU __HAL_DBGMCU_FREEZE_TIM4 #define __HAL_UNFREEZE_TIM4_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM4 #define __HAL_FREEZE_TIM5_DBGMCU __HAL_DBGMCU_FREEZE_TIM5 #define __HAL_UNFREEZE_TIM5_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM5 #define __HAL_FREEZE_TIM6_DBGMCU __HAL_DBGMCU_FREEZE_TIM6 #define __HAL_UNFREEZE_TIM6_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM6 #define __HAL_FREEZE_TIM7_DBGMCU __HAL_DBGMCU_FREEZE_TIM7 #define __HAL_UNFREEZE_TIM7_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM7 #define __HAL_FREEZE_TIM8_DBGMCU __HAL_DBGMCU_FREEZE_TIM8 #define __HAL_UNFREEZE_TIM8_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM8 #define __HAL_FREEZE_TIM9_DBGMCU __HAL_DBGMCU_FREEZE_TIM9 #define __HAL_UNFREEZE_TIM9_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM9 #define __HAL_FREEZE_TIM10_DBGMCU __HAL_DBGMCU_FREEZE_TIM10 #define __HAL_UNFREEZE_TIM10_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM10 #define __HAL_FREEZE_TIM11_DBGMCU __HAL_DBGMCU_FREEZE_TIM11 #define __HAL_UNFREEZE_TIM11_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM11 #define __HAL_FREEZE_TIM12_DBGMCU __HAL_DBGMCU_FREEZE_TIM12 #define __HAL_UNFREEZE_TIM12_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM12 #define __HAL_FREEZE_TIM13_DBGMCU __HAL_DBGMCU_FREEZE_TIM13 #define __HAL_UNFREEZE_TIM13_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM13 #define __HAL_FREEZE_TIM14_DBGMCU __HAL_DBGMCU_FREEZE_TIM14 #define __HAL_UNFREEZE_TIM14_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM14 #define __HAL_FREEZE_CAN2_DBGMCU __HAL_DBGMCU_FREEZE_CAN2 #define __HAL_UNFREEZE_CAN2_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN2 #define __HAL_FREEZE_TIM15_DBGMCU __HAL_DBGMCU_FREEZE_TIM15 #define __HAL_UNFREEZE_TIM15_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM15 #define __HAL_FREEZE_TIM16_DBGMCU __HAL_DBGMCU_FREEZE_TIM16 #define __HAL_UNFREEZE_TIM16_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM16 #define __HAL_FREEZE_TIM17_DBGMCU __HAL_DBGMCU_FREEZE_TIM17 #define __HAL_UNFREEZE_TIM17_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM17 #define __HAL_FREEZE_RTC_DBGMCU __HAL_DBGMCU_FREEZE_RTC #define __HAL_UNFREEZE_RTC_DBGMCU __HAL_DBGMCU_UNFREEZE_RTC #if defined(STM32H7) #define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG1 #define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UnFreeze_WWDG1 #define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG1 #define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UnFreeze_IWDG1 #else #define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG #define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_WWDG #define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG #define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_IWDG #endif /* STM32H7 */ #define __HAL_FREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT #define __HAL_UNFREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT #define __HAL_FREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT #define __HAL_UNFREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT #define __HAL_FREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT #define __HAL_UNFREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT #define __HAL_FREEZE_CAN1_DBGMCU __HAL_DBGMCU_FREEZE_CAN1 #define __HAL_UNFREEZE_CAN1_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN1 #define __HAL_FREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM1 #define __HAL_UNFREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM1 #define __HAL_FREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM2 #define __HAL_UNFREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM2 /** * @} */ /** @defgroup HAL_COMP_Aliased_Macros HAL COMP Aliased Macros maintained for legacy purpose * @{ */ #if defined(STM32F3) #define COMP_START __HAL_COMP_ENABLE #define COMP_STOP __HAL_COMP_DISABLE #define COMP_LOCK __HAL_COMP_LOCK #if defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) || defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx) #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ __HAL_COMP_COMP6_EXTI_ENABLE_IT()) #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ __HAL_COMP_COMP6_EXTI_DISABLE_IT()) #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ __HAL_COMP_COMP6_EXTI_GET_FLAG()) #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ __HAL_COMP_COMP6_EXTI_CLEAR_FLAG()) # endif # if defined(STM32F302xE) || defined(STM32F302xC) #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ __HAL_COMP_COMP6_EXTI_ENABLE_IT()) #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ __HAL_COMP_COMP6_EXTI_DISABLE_IT()) #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ __HAL_COMP_COMP6_EXTI_GET_FLAG()) #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ __HAL_COMP_COMP6_EXTI_CLEAR_FLAG()) # endif # if defined(STM32F303xE) || defined(STM32F398xx) || defined(STM32F303xC) || defined(STM32F358xx) #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE() : \ __HAL_COMP_COMP7_EXTI_ENABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_RISING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE() : \ __HAL_COMP_COMP7_EXTI_DISABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE() : \ __HAL_COMP_COMP7_EXTI_ENABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_FALLING_EDGE() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE() : \ __HAL_COMP_COMP7_EXTI_DISABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_IT() : \ __HAL_COMP_COMP7_EXTI_ENABLE_IT()) #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_IT() : \ ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_IT() : \ __HAL_COMP_COMP7_EXTI_DISABLE_IT()) #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_GET_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_GET_FLAG() : \ __HAL_COMP_COMP7_EXTI_GET_FLAG()) #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_CLEAR_FLAG() : \ ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_CLEAR_FLAG() : \ __HAL_COMP_COMP7_EXTI_CLEAR_FLAG()) # endif # if defined(STM32F373xC) ||defined(STM32F378xx) #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ __HAL_COMP_COMP2_EXTI_ENABLE_IT()) #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ __HAL_COMP_COMP2_EXTI_DISABLE_IT()) #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ __HAL_COMP_COMP2_EXTI_GET_FLAG()) #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ __HAL_COMP_COMP2_EXTI_CLEAR_FLAG()) # endif #else #define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE()) #define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ __HAL_COMP_COMP2_EXTI_ENABLE_IT()) #define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ __HAL_COMP_COMP2_EXTI_DISABLE_IT()) #define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ __HAL_COMP_COMP2_EXTI_GET_FLAG()) #define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ __HAL_COMP_COMP2_EXTI_CLEAR_FLAG()) #endif #define __HAL_COMP_GET_EXTI_LINE COMP_GET_EXTI_LINE #if defined(STM32L0) || defined(STM32L4) /* Note: On these STM32 families, the only argument of this macro */ /* is COMP_FLAG_LOCK. */ /* This macro is replaced by __HAL_COMP_IS_LOCKED with only HAL handle */ /* argument. */ #define __HAL_COMP_GET_FLAG(__HANDLE__, __FLAG__) (__HAL_COMP_IS_LOCKED(__HANDLE__)) #endif /** * @} */ #if defined(STM32L0) || defined(STM32L4) /** @defgroup HAL_COMP_Aliased_Functions HAL COMP Aliased Functions maintained for legacy purpose * @{ */ #define HAL_COMP_Start_IT HAL_COMP_Start /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */ #define HAL_COMP_Stop_IT HAL_COMP_Stop /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */ /** * @} */ #endif /** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose * @{ */ #define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_WAVE_NONE) || \ ((WAVE) == DAC_WAVE_NOISE)|| \ ((WAVE) == DAC_WAVE_TRIANGLE)) /** * @} */ /** @defgroup HAL_FLASH_Aliased_Macros HAL FLASH Aliased Macros maintained for legacy purpose * @{ */ #define IS_WRPAREA IS_OB_WRPAREA #define IS_TYPEPROGRAM IS_FLASH_TYPEPROGRAM #define IS_TYPEPROGRAMFLASH IS_FLASH_TYPEPROGRAM #define IS_TYPEERASE IS_FLASH_TYPEERASE #define IS_NBSECTORS IS_FLASH_NBSECTORS #define IS_OB_WDG_SOURCE IS_OB_IWDG_SOURCE /** * @} */ /** @defgroup HAL_I2C_Aliased_Macros HAL I2C Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_I2C_RESET_CR2 I2C_RESET_CR2 #define __HAL_I2C_GENERATE_START I2C_GENERATE_START #if defined(STM32F1) #define __HAL_I2C_FREQ_RANGE I2C_FREQRANGE #else #define __HAL_I2C_FREQ_RANGE I2C_FREQ_RANGE #endif /* STM32F1 */ #define __HAL_I2C_RISE_TIME I2C_RISE_TIME #define __HAL_I2C_SPEED_STANDARD I2C_SPEED_STANDARD #define __HAL_I2C_SPEED_FAST I2C_SPEED_FAST #define __HAL_I2C_SPEED I2C_SPEED #define __HAL_I2C_7BIT_ADD_WRITE I2C_7BIT_ADD_WRITE #define __HAL_I2C_7BIT_ADD_READ I2C_7BIT_ADD_READ #define __HAL_I2C_10BIT_ADDRESS I2C_10BIT_ADDRESS #define __HAL_I2C_10BIT_HEADER_WRITE I2C_10BIT_HEADER_WRITE #define __HAL_I2C_10BIT_HEADER_READ I2C_10BIT_HEADER_READ #define __HAL_I2C_MEM_ADD_MSB I2C_MEM_ADD_MSB #define __HAL_I2C_MEM_ADD_LSB I2C_MEM_ADD_LSB #define __HAL_I2C_FREQRANGE I2C_FREQRANGE /** * @} */ /** @defgroup HAL_I2S_Aliased_Macros HAL I2S Aliased Macros maintained for legacy purpose * @{ */ #define IS_I2S_INSTANCE IS_I2S_ALL_INSTANCE #define IS_I2S_INSTANCE_EXT IS_I2S_ALL_INSTANCE_EXT #if defined(STM32H7) #define __HAL_I2S_CLEAR_FREFLAG __HAL_I2S_CLEAR_TIFREFLAG #endif /** * @} */ /** @defgroup HAL_IRDA_Aliased_Macros HAL IRDA Aliased Macros maintained for legacy purpose * @{ */ #define __IRDA_DISABLE __HAL_IRDA_DISABLE #define __IRDA_ENABLE __HAL_IRDA_ENABLE #define __HAL_IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE #define __HAL_IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION #define __IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE #define __IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION #define IS_IRDA_ONEBIT_SAMPLE IS_IRDA_ONE_BIT_SAMPLE /** * @} */ /** @defgroup HAL_IWDG_Aliased_Macros HAL IWDG Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_IWDG_ENABLE_WRITE_ACCESS IWDG_ENABLE_WRITE_ACCESS #define __HAL_IWDG_DISABLE_WRITE_ACCESS IWDG_DISABLE_WRITE_ACCESS /** * @} */ /** @defgroup HAL_LPTIM_Aliased_Macros HAL LPTIM Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_LPTIM_ENABLE_INTERRUPT __HAL_LPTIM_ENABLE_IT #define __HAL_LPTIM_DISABLE_INTERRUPT __HAL_LPTIM_DISABLE_IT #define __HAL_LPTIM_GET_ITSTATUS __HAL_LPTIM_GET_IT_SOURCE /** * @} */ /** @defgroup HAL_OPAMP_Aliased_Macros HAL OPAMP Aliased Macros maintained for legacy purpose * @{ */ #define __OPAMP_CSR_OPAXPD OPAMP_CSR_OPAXPD #define __OPAMP_CSR_S3SELX OPAMP_CSR_S3SELX #define __OPAMP_CSR_S4SELX OPAMP_CSR_S4SELX #define __OPAMP_CSR_S5SELX OPAMP_CSR_S5SELX #define __OPAMP_CSR_S6SELX OPAMP_CSR_S6SELX #define __OPAMP_CSR_OPAXCAL_L OPAMP_CSR_OPAXCAL_L #define __OPAMP_CSR_OPAXCAL_H OPAMP_CSR_OPAXCAL_H #define __OPAMP_CSR_OPAXLPM OPAMP_CSR_OPAXLPM #define __OPAMP_CSR_ALL_SWITCHES OPAMP_CSR_ALL_SWITCHES #define __OPAMP_CSR_ANAWSELX OPAMP_CSR_ANAWSELX #define __OPAMP_CSR_OPAXCALOUT OPAMP_CSR_OPAXCALOUT #define __OPAMP_OFFSET_TRIM_BITSPOSITION OPAMP_OFFSET_TRIM_BITSPOSITION #define __OPAMP_OFFSET_TRIM_SET OPAMP_OFFSET_TRIM_SET /** * @} */ /** @defgroup HAL_PWR_Aliased_Macros HAL PWR Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_PVD_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT #define __HAL_PVD_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT #define __HAL_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE #define __HAL_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE #define __HAL_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE #define __HAL_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE #define __HAL_PVM_EVENT_DISABLE __HAL_PWR_PVM_EVENT_DISABLE #define __HAL_PVM_EVENT_ENABLE __HAL_PWR_PVM_EVENT_ENABLE #define __HAL_PVM_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_DISABLE #define __HAL_PVM_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_ENABLE #define __HAL_PVM_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_DISABLE #define __HAL_PVM_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_ENABLE #define __HAL_PWR_INTERNALWAKEUP_DISABLE HAL_PWREx_DisableInternalWakeUpLine #define __HAL_PWR_INTERNALWAKEUP_ENABLE HAL_PWREx_EnableInternalWakeUpLine #define __HAL_PWR_PULL_UP_DOWN_CONFIG_DISABLE HAL_PWREx_DisablePullUpPullDownConfig #define __HAL_PWR_PULL_UP_DOWN_CONFIG_ENABLE HAL_PWREx_EnablePullUpPullDownConfig #define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() do { __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); } while(0) #define __HAL_PWR_PVD_EXTI_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT #define __HAL_PWR_PVD_EXTI_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT #define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE #define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE #define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE #define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE #define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE #define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE #define __HAL_PWR_PVM_DISABLE() do { HAL_PWREx_DisablePVM1();HAL_PWREx_DisablePVM2();HAL_PWREx_DisablePVM3();HAL_PWREx_DisablePVM4(); } while(0) #define __HAL_PWR_PVM_ENABLE() do { HAL_PWREx_EnablePVM1();HAL_PWREx_EnablePVM2();HAL_PWREx_EnablePVM3();HAL_PWREx_EnablePVM4(); } while(0) #define __HAL_PWR_SRAM2CONTENT_PRESERVE_DISABLE HAL_PWREx_DisableSRAM2ContentRetention #define __HAL_PWR_SRAM2CONTENT_PRESERVE_ENABLE HAL_PWREx_EnableSRAM2ContentRetention #define __HAL_PWR_VDDIO2_DISABLE HAL_PWREx_DisableVddIO2 #define __HAL_PWR_VDDIO2_ENABLE HAL_PWREx_EnableVddIO2 #define __HAL_PWR_VDDIO2_EXTI_CLEAR_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE #define __HAL_PWR_VDDIO2_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE #define __HAL_PWR_VDDUSB_DISABLE HAL_PWREx_DisableVddUSB #define __HAL_PWR_VDDUSB_ENABLE HAL_PWREx_EnableVddUSB #if defined (STM32F4) #define __HAL_PVD_EXTI_ENABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_ENABLE_IT() #define __HAL_PVD_EXTI_DISABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_DISABLE_IT() #define __HAL_PVD_EXTI_GET_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GET_FLAG() #define __HAL_PVD_EXTI_CLEAR_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_CLEAR_FLAG() #define __HAL_PVD_EXTI_GENERATE_SWIT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GENERATE_SWIT() #else #define __HAL_PVD_EXTI_CLEAR_FLAG __HAL_PWR_PVD_EXTI_CLEAR_FLAG #define __HAL_PVD_EXTI_DISABLE_IT __HAL_PWR_PVD_EXTI_DISABLE_IT #define __HAL_PVD_EXTI_ENABLE_IT __HAL_PWR_PVD_EXTI_ENABLE_IT #define __HAL_PVD_EXTI_GENERATE_SWIT __HAL_PWR_PVD_EXTI_GENERATE_SWIT #define __HAL_PVD_EXTI_GET_FLAG __HAL_PWR_PVD_EXTI_GET_FLAG #endif /* STM32F4 */ /** * @} */ /** @defgroup HAL_RCC_Aliased HAL RCC Aliased maintained for legacy purpose * @{ */ #define RCC_StopWakeUpClock_MSI RCC_STOP_WAKEUPCLOCK_MSI #define RCC_StopWakeUpClock_HSI RCC_STOP_WAKEUPCLOCK_HSI #define HAL_RCC_CCSCallback HAL_RCC_CSSCallback #define HAL_RC48_EnableBuffer_Cmd(cmd) (((cmd\ )==ENABLE) ? HAL_RCCEx_EnableHSI48_VREFINT() : HAL_RCCEx_DisableHSI48_VREFINT()) #define __ADC_CLK_DISABLE __HAL_RCC_ADC_CLK_DISABLE #define __ADC_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE #define __ADC_CLK_SLEEP_DISABLE __HAL_RCC_ADC_CLK_SLEEP_DISABLE #define __ADC_CLK_SLEEP_ENABLE __HAL_RCC_ADC_CLK_SLEEP_ENABLE #define __ADC_FORCE_RESET __HAL_RCC_ADC_FORCE_RESET #define __ADC_RELEASE_RESET __HAL_RCC_ADC_RELEASE_RESET #define __ADC1_CLK_DISABLE __HAL_RCC_ADC1_CLK_DISABLE #define __ADC1_CLK_ENABLE __HAL_RCC_ADC1_CLK_ENABLE #define __ADC1_FORCE_RESET __HAL_RCC_ADC1_FORCE_RESET #define __ADC1_RELEASE_RESET __HAL_RCC_ADC1_RELEASE_RESET #define __ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC1_CLK_SLEEP_ENABLE #define __ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC1_CLK_SLEEP_DISABLE #define __ADC2_CLK_DISABLE __HAL_RCC_ADC2_CLK_DISABLE #define __ADC2_CLK_ENABLE __HAL_RCC_ADC2_CLK_ENABLE #define __ADC2_FORCE_RESET __HAL_RCC_ADC2_FORCE_RESET #define __ADC2_RELEASE_RESET __HAL_RCC_ADC2_RELEASE_RESET #define __ADC3_CLK_DISABLE __HAL_RCC_ADC3_CLK_DISABLE #define __ADC3_CLK_ENABLE __HAL_RCC_ADC3_CLK_ENABLE #define __ADC3_FORCE_RESET __HAL_RCC_ADC3_FORCE_RESET #define __ADC3_RELEASE_RESET __HAL_RCC_ADC3_RELEASE_RESET #define __AES_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE #define __AES_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE #define __AES_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE #define __AES_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE #define __AES_FORCE_RESET __HAL_RCC_AES_FORCE_RESET #define __AES_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET #define __CRYP_CLK_SLEEP_ENABLE __HAL_RCC_CRYP_CLK_SLEEP_ENABLE #define __CRYP_CLK_SLEEP_DISABLE __HAL_RCC_CRYP_CLK_SLEEP_DISABLE #define __CRYP_CLK_ENABLE __HAL_RCC_CRYP_CLK_ENABLE #define __CRYP_CLK_DISABLE __HAL_RCC_CRYP_CLK_DISABLE #define __CRYP_FORCE_RESET __HAL_RCC_CRYP_FORCE_RESET #define __CRYP_RELEASE_RESET __HAL_RCC_CRYP_RELEASE_RESET #define __AFIO_CLK_DISABLE __HAL_RCC_AFIO_CLK_DISABLE #define __AFIO_CLK_ENABLE __HAL_RCC_AFIO_CLK_ENABLE #define __AFIO_FORCE_RESET __HAL_RCC_AFIO_FORCE_RESET #define __AFIO_RELEASE_RESET __HAL_RCC_AFIO_RELEASE_RESET #define __AHB_FORCE_RESET __HAL_RCC_AHB_FORCE_RESET #define __AHB_RELEASE_RESET __HAL_RCC_AHB_RELEASE_RESET #define __AHB1_FORCE_RESET __HAL_RCC_AHB1_FORCE_RESET #define __AHB1_RELEASE_RESET __HAL_RCC_AHB1_RELEASE_RESET #define __AHB2_FORCE_RESET __HAL_RCC_AHB2_FORCE_RESET #define __AHB2_RELEASE_RESET __HAL_RCC_AHB2_RELEASE_RESET #define __AHB3_FORCE_RESET __HAL_RCC_AHB3_FORCE_RESET #define __AHB3_RELEASE_RESET __HAL_RCC_AHB3_RELEASE_RESET #define __APB1_FORCE_RESET __HAL_RCC_APB1_FORCE_RESET #define __APB1_RELEASE_RESET __HAL_RCC_APB1_RELEASE_RESET #define __APB2_FORCE_RESET __HAL_RCC_APB2_FORCE_RESET #define __APB2_RELEASE_RESET __HAL_RCC_APB2_RELEASE_RESET #define __BKP_CLK_DISABLE __HAL_RCC_BKP_CLK_DISABLE #define __BKP_CLK_ENABLE __HAL_RCC_BKP_CLK_ENABLE #define __BKP_FORCE_RESET __HAL_RCC_BKP_FORCE_RESET #define __BKP_RELEASE_RESET __HAL_RCC_BKP_RELEASE_RESET #define __CAN1_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE #define __CAN1_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE #define __CAN1_CLK_SLEEP_DISABLE __HAL_RCC_CAN1_CLK_SLEEP_DISABLE #define __CAN1_CLK_SLEEP_ENABLE __HAL_RCC_CAN1_CLK_SLEEP_ENABLE #define __CAN1_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET #define __CAN1_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET #define __CAN_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE #define __CAN_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE #define __CAN_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET #define __CAN_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET #define __CAN2_CLK_DISABLE __HAL_RCC_CAN2_CLK_DISABLE #define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE #define __CAN2_FORCE_RESET __HAL_RCC_CAN2_FORCE_RESET #define __CAN2_RELEASE_RESET __HAL_RCC_CAN2_RELEASE_RESET #define __CEC_CLK_DISABLE __HAL_RCC_CEC_CLK_DISABLE #define __CEC_CLK_ENABLE __HAL_RCC_CEC_CLK_ENABLE #define __COMP_CLK_DISABLE __HAL_RCC_COMP_CLK_DISABLE #define __COMP_CLK_ENABLE __HAL_RCC_COMP_CLK_ENABLE #define __COMP_FORCE_RESET __HAL_RCC_COMP_FORCE_RESET #define __COMP_RELEASE_RESET __HAL_RCC_COMP_RELEASE_RESET #define __COMP_CLK_SLEEP_ENABLE __HAL_RCC_COMP_CLK_SLEEP_ENABLE #define __COMP_CLK_SLEEP_DISABLE __HAL_RCC_COMP_CLK_SLEEP_DISABLE #define __CEC_FORCE_RESET __HAL_RCC_CEC_FORCE_RESET #define __CEC_RELEASE_RESET __HAL_RCC_CEC_RELEASE_RESET #define __CRC_CLK_DISABLE __HAL_RCC_CRC_CLK_DISABLE #define __CRC_CLK_ENABLE __HAL_RCC_CRC_CLK_ENABLE #define __CRC_CLK_SLEEP_DISABLE __HAL_RCC_CRC_CLK_SLEEP_DISABLE #define __CRC_CLK_SLEEP_ENABLE __HAL_RCC_CRC_CLK_SLEEP_ENABLE #define __CRC_FORCE_RESET __HAL_RCC_CRC_FORCE_RESET #define __CRC_RELEASE_RESET __HAL_RCC_CRC_RELEASE_RESET #define __DAC_CLK_DISABLE __HAL_RCC_DAC_CLK_DISABLE #define __DAC_CLK_ENABLE __HAL_RCC_DAC_CLK_ENABLE #define __DAC_FORCE_RESET __HAL_RCC_DAC_FORCE_RESET #define __DAC_RELEASE_RESET __HAL_RCC_DAC_RELEASE_RESET #define __DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE #define __DAC1_CLK_ENABLE __HAL_RCC_DAC1_CLK_ENABLE #define __DAC1_CLK_SLEEP_DISABLE __HAL_RCC_DAC1_CLK_SLEEP_DISABLE #define __DAC1_CLK_SLEEP_ENABLE __HAL_RCC_DAC1_CLK_SLEEP_ENABLE #define __DAC1_FORCE_RESET __HAL_RCC_DAC1_FORCE_RESET #define __DAC1_RELEASE_RESET __HAL_RCC_DAC1_RELEASE_RESET #define __DBGMCU_CLK_ENABLE __HAL_RCC_DBGMCU_CLK_ENABLE #define __DBGMCU_CLK_DISABLE __HAL_RCC_DBGMCU_CLK_DISABLE #define __DBGMCU_FORCE_RESET __HAL_RCC_DBGMCU_FORCE_RESET #define __DBGMCU_RELEASE_RESET __HAL_RCC_DBGMCU_RELEASE_RESET #define __DFSDM_CLK_DISABLE __HAL_RCC_DFSDM_CLK_DISABLE #define __DFSDM_CLK_ENABLE __HAL_RCC_DFSDM_CLK_ENABLE #define __DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE #define __DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE #define __DFSDM_FORCE_RESET __HAL_RCC_DFSDM_FORCE_RESET #define __DFSDM_RELEASE_RESET __HAL_RCC_DFSDM_RELEASE_RESET #define __DMA1_CLK_DISABLE __HAL_RCC_DMA1_CLK_DISABLE #define __DMA1_CLK_ENABLE __HAL_RCC_DMA1_CLK_ENABLE #define __DMA1_CLK_SLEEP_DISABLE __HAL_RCC_DMA1_CLK_SLEEP_DISABLE #define __DMA1_CLK_SLEEP_ENABLE __HAL_RCC_DMA1_CLK_SLEEP_ENABLE #define __DMA1_FORCE_RESET __HAL_RCC_DMA1_FORCE_RESET #define __DMA1_RELEASE_RESET __HAL_RCC_DMA1_RELEASE_RESET #define __DMA2_CLK_DISABLE __HAL_RCC_DMA2_CLK_DISABLE #define __DMA2_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE #define __DMA2_CLK_SLEEP_DISABLE __HAL_RCC_DMA2_CLK_SLEEP_DISABLE #define __DMA2_CLK_SLEEP_ENABLE __HAL_RCC_DMA2_CLK_SLEEP_ENABLE #define __DMA2_FORCE_RESET __HAL_RCC_DMA2_FORCE_RESET #define __DMA2_RELEASE_RESET __HAL_RCC_DMA2_RELEASE_RESET #define __ETHMAC_CLK_DISABLE __HAL_RCC_ETHMAC_CLK_DISABLE #define __ETHMAC_CLK_ENABLE __HAL_RCC_ETHMAC_CLK_ENABLE #define __ETHMAC_FORCE_RESET __HAL_RCC_ETHMAC_FORCE_RESET #define __ETHMAC_RELEASE_RESET __HAL_RCC_ETHMAC_RELEASE_RESET #define __ETHMACRX_CLK_DISABLE __HAL_RCC_ETHMACRX_CLK_DISABLE #define __ETHMACRX_CLK_ENABLE __HAL_RCC_ETHMACRX_CLK_ENABLE #define __ETHMACTX_CLK_DISABLE __HAL_RCC_ETHMACTX_CLK_DISABLE #define __ETHMACTX_CLK_ENABLE __HAL_RCC_ETHMACTX_CLK_ENABLE #define __FIREWALL_CLK_DISABLE __HAL_RCC_FIREWALL_CLK_DISABLE #define __FIREWALL_CLK_ENABLE __HAL_RCC_FIREWALL_CLK_ENABLE #define __FLASH_CLK_DISABLE __HAL_RCC_FLASH_CLK_DISABLE #define __FLASH_CLK_ENABLE __HAL_RCC_FLASH_CLK_ENABLE #define __FLASH_CLK_SLEEP_DISABLE __HAL_RCC_FLASH_CLK_SLEEP_DISABLE #define __FLASH_CLK_SLEEP_ENABLE __HAL_RCC_FLASH_CLK_SLEEP_ENABLE #define __FLASH_FORCE_RESET __HAL_RCC_FLASH_FORCE_RESET #define __FLASH_RELEASE_RESET __HAL_RCC_FLASH_RELEASE_RESET #define __FLITF_CLK_DISABLE __HAL_RCC_FLITF_CLK_DISABLE #define __FLITF_CLK_ENABLE __HAL_RCC_FLITF_CLK_ENABLE #define __FLITF_FORCE_RESET __HAL_RCC_FLITF_FORCE_RESET #define __FLITF_RELEASE_RESET __HAL_RCC_FLITF_RELEASE_RESET #define __FLITF_CLK_SLEEP_ENABLE __HAL_RCC_FLITF_CLK_SLEEP_ENABLE #define __FLITF_CLK_SLEEP_DISABLE __HAL_RCC_FLITF_CLK_SLEEP_DISABLE #define __FMC_CLK_DISABLE __HAL_RCC_FMC_CLK_DISABLE #define __FMC_CLK_ENABLE __HAL_RCC_FMC_CLK_ENABLE #define __FMC_CLK_SLEEP_DISABLE __HAL_RCC_FMC_CLK_SLEEP_DISABLE #define __FMC_CLK_SLEEP_ENABLE __HAL_RCC_FMC_CLK_SLEEP_ENABLE #define __FMC_FORCE_RESET __HAL_RCC_FMC_FORCE_RESET #define __FMC_RELEASE_RESET __HAL_RCC_FMC_RELEASE_RESET #define __FSMC_CLK_DISABLE __HAL_RCC_FSMC_CLK_DISABLE #define __FSMC_CLK_ENABLE __HAL_RCC_FSMC_CLK_ENABLE #define __GPIOA_CLK_DISABLE __HAL_RCC_GPIOA_CLK_DISABLE #define __GPIOA_CLK_ENABLE __HAL_RCC_GPIOA_CLK_ENABLE #define __GPIOA_CLK_SLEEP_DISABLE __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE #define __GPIOA_CLK_SLEEP_ENABLE __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE #define __GPIOA_FORCE_RESET __HAL_RCC_GPIOA_FORCE_RESET #define __GPIOA_RELEASE_RESET __HAL_RCC_GPIOA_RELEASE_RESET #define __GPIOB_CLK_DISABLE __HAL_RCC_GPIOB_CLK_DISABLE #define __GPIOB_CLK_ENABLE __HAL_RCC_GPIOB_CLK_ENABLE #define __GPIOB_CLK_SLEEP_DISABLE __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE #define __GPIOB_CLK_SLEEP_ENABLE __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE #define __GPIOB_FORCE_RESET __HAL_RCC_GPIOB_FORCE_RESET #define __GPIOB_RELEASE_RESET __HAL_RCC_GPIOB_RELEASE_RESET #define __GPIOC_CLK_DISABLE __HAL_RCC_GPIOC_CLK_DISABLE #define __GPIOC_CLK_ENABLE __HAL_RCC_GPIOC_CLK_ENABLE #define __GPIOC_CLK_SLEEP_DISABLE __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE #define __GPIOC_CLK_SLEEP_ENABLE __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE #define __GPIOC_FORCE_RESET __HAL_RCC_GPIOC_FORCE_RESET #define __GPIOC_RELEASE_RESET __HAL_RCC_GPIOC_RELEASE_RESET #define __GPIOD_CLK_DISABLE __HAL_RCC_GPIOD_CLK_DISABLE #define __GPIOD_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE #define __GPIOD_CLK_SLEEP_DISABLE __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE #define __GPIOD_CLK_SLEEP_ENABLE __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE #define __GPIOD_FORCE_RESET __HAL_RCC_GPIOD_FORCE_RESET #define __GPIOD_RELEASE_RESET __HAL_RCC_GPIOD_RELEASE_RESET #define __GPIOE_CLK_DISABLE __HAL_RCC_GPIOE_CLK_DISABLE #define __GPIOE_CLK_ENABLE __HAL_RCC_GPIOE_CLK_ENABLE #define __GPIOE_CLK_SLEEP_DISABLE __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE #define __GPIOE_CLK_SLEEP_ENABLE __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE #define __GPIOE_FORCE_RESET __HAL_RCC_GPIOE_FORCE_RESET #define __GPIOE_RELEASE_RESET __HAL_RCC_GPIOE_RELEASE_RESET #define __GPIOF_CLK_DISABLE __HAL_RCC_GPIOF_CLK_DISABLE #define __GPIOF_CLK_ENABLE __HAL_RCC_GPIOF_CLK_ENABLE #define __GPIOF_CLK_SLEEP_DISABLE __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE #define __GPIOF_CLK_SLEEP_ENABLE __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE #define __GPIOF_FORCE_RESET __HAL_RCC_GPIOF_FORCE_RESET #define __GPIOF_RELEASE_RESET __HAL_RCC_GPIOF_RELEASE_RESET #define __GPIOG_CLK_DISABLE __HAL_RCC_GPIOG_CLK_DISABLE #define __GPIOG_CLK_ENABLE __HAL_RCC_GPIOG_CLK_ENABLE #define __GPIOG_CLK_SLEEP_DISABLE __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE #define __GPIOG_CLK_SLEEP_ENABLE __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE #define __GPIOG_FORCE_RESET __HAL_RCC_GPIOG_FORCE_RESET #define __GPIOG_RELEASE_RESET __HAL_RCC_GPIOG_RELEASE_RESET #define __GPIOH_CLK_DISABLE __HAL_RCC_GPIOH_CLK_DISABLE #define __GPIOH_CLK_ENABLE __HAL_RCC_GPIOH_CLK_ENABLE #define __GPIOH_CLK_SLEEP_DISABLE __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE #define __GPIOH_CLK_SLEEP_ENABLE __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE #define __GPIOH_FORCE_RESET __HAL_RCC_GPIOH_FORCE_RESET #define __GPIOH_RELEASE_RESET __HAL_RCC_GPIOH_RELEASE_RESET #define __I2C1_CLK_DISABLE __HAL_RCC_I2C1_CLK_DISABLE #define __I2C1_CLK_ENABLE __HAL_RCC_I2C1_CLK_ENABLE #define __I2C1_CLK_SLEEP_DISABLE __HAL_RCC_I2C1_CLK_SLEEP_DISABLE #define __I2C1_CLK_SLEEP_ENABLE __HAL_RCC_I2C1_CLK_SLEEP_ENABLE #define __I2C1_FORCE_RESET __HAL_RCC_I2C1_FORCE_RESET #define __I2C1_RELEASE_RESET __HAL_RCC_I2C1_RELEASE_RESET #define __I2C2_CLK_DISABLE __HAL_RCC_I2C2_CLK_DISABLE #define __I2C2_CLK_ENABLE __HAL_RCC_I2C2_CLK_ENABLE #define __I2C2_CLK_SLEEP_DISABLE __HAL_RCC_I2C2_CLK_SLEEP_DISABLE #define __I2C2_CLK_SLEEP_ENABLE __HAL_RCC_I2C2_CLK_SLEEP_ENABLE #define __I2C2_FORCE_RESET __HAL_RCC_I2C2_FORCE_RESET #define __I2C2_RELEASE_RESET __HAL_RCC_I2C2_RELEASE_RESET #define __I2C3_CLK_DISABLE __HAL_RCC_I2C3_CLK_DISABLE #define __I2C3_CLK_ENABLE __HAL_RCC_I2C3_CLK_ENABLE #define __I2C3_CLK_SLEEP_DISABLE __HAL_RCC_I2C3_CLK_SLEEP_DISABLE #define __I2C3_CLK_SLEEP_ENABLE __HAL_RCC_I2C3_CLK_SLEEP_ENABLE #define __I2C3_FORCE_RESET __HAL_RCC_I2C3_FORCE_RESET #define __I2C3_RELEASE_RESET __HAL_RCC_I2C3_RELEASE_RESET #define __LCD_CLK_DISABLE __HAL_RCC_LCD_CLK_DISABLE #define __LCD_CLK_ENABLE __HAL_RCC_LCD_CLK_ENABLE #define __LCD_CLK_SLEEP_DISABLE __HAL_RCC_LCD_CLK_SLEEP_DISABLE #define __LCD_CLK_SLEEP_ENABLE __HAL_RCC_LCD_CLK_SLEEP_ENABLE #define __LCD_FORCE_RESET __HAL_RCC_LCD_FORCE_RESET #define __LCD_RELEASE_RESET __HAL_RCC_LCD_RELEASE_RESET #define __LPTIM1_CLK_DISABLE __HAL_RCC_LPTIM1_CLK_DISABLE #define __LPTIM1_CLK_ENABLE __HAL_RCC_LPTIM1_CLK_ENABLE #define __LPTIM1_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE #define __LPTIM1_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE #define __LPTIM1_FORCE_RESET __HAL_RCC_LPTIM1_FORCE_RESET #define __LPTIM1_RELEASE_RESET __HAL_RCC_LPTIM1_RELEASE_RESET #define __LPTIM2_CLK_DISABLE __HAL_RCC_LPTIM2_CLK_DISABLE #define __LPTIM2_CLK_ENABLE __HAL_RCC_LPTIM2_CLK_ENABLE #define __LPTIM2_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM2_CLK_SLEEP_DISABLE #define __LPTIM2_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM2_CLK_SLEEP_ENABLE #define __LPTIM2_FORCE_RESET __HAL_RCC_LPTIM2_FORCE_RESET #define __LPTIM2_RELEASE_RESET __HAL_RCC_LPTIM2_RELEASE_RESET #define __LPUART1_CLK_DISABLE __HAL_RCC_LPUART1_CLK_DISABLE #define __LPUART1_CLK_ENABLE __HAL_RCC_LPUART1_CLK_ENABLE #define __LPUART1_CLK_SLEEP_DISABLE __HAL_RCC_LPUART1_CLK_SLEEP_DISABLE #define __LPUART1_CLK_SLEEP_ENABLE __HAL_RCC_LPUART1_CLK_SLEEP_ENABLE #define __LPUART1_FORCE_RESET __HAL_RCC_LPUART1_FORCE_RESET #define __LPUART1_RELEASE_RESET __HAL_RCC_LPUART1_RELEASE_RESET #define __OPAMP_CLK_DISABLE __HAL_RCC_OPAMP_CLK_DISABLE #define __OPAMP_CLK_ENABLE __HAL_RCC_OPAMP_CLK_ENABLE #define __OPAMP_CLK_SLEEP_DISABLE __HAL_RCC_OPAMP_CLK_SLEEP_DISABLE #define __OPAMP_CLK_SLEEP_ENABLE __HAL_RCC_OPAMP_CLK_SLEEP_ENABLE #define __OPAMP_FORCE_RESET __HAL_RCC_OPAMP_FORCE_RESET #define __OPAMP_RELEASE_RESET __HAL_RCC_OPAMP_RELEASE_RESET #define __OTGFS_CLK_DISABLE __HAL_RCC_OTGFS_CLK_DISABLE #define __OTGFS_CLK_ENABLE __HAL_RCC_OTGFS_CLK_ENABLE #define __OTGFS_CLK_SLEEP_DISABLE __HAL_RCC_OTGFS_CLK_SLEEP_DISABLE #define __OTGFS_CLK_SLEEP_ENABLE __HAL_RCC_OTGFS_CLK_SLEEP_ENABLE #define __OTGFS_FORCE_RESET __HAL_RCC_OTGFS_FORCE_RESET #define __OTGFS_RELEASE_RESET __HAL_RCC_OTGFS_RELEASE_RESET #define __PWR_CLK_DISABLE __HAL_RCC_PWR_CLK_DISABLE #define __PWR_CLK_ENABLE __HAL_RCC_PWR_CLK_ENABLE #define __PWR_CLK_SLEEP_DISABLE __HAL_RCC_PWR_CLK_SLEEP_DISABLE #define __PWR_CLK_SLEEP_ENABLE __HAL_RCC_PWR_CLK_SLEEP_ENABLE #define __PWR_FORCE_RESET __HAL_RCC_PWR_FORCE_RESET #define __PWR_RELEASE_RESET __HAL_RCC_PWR_RELEASE_RESET #define __QSPI_CLK_DISABLE __HAL_RCC_QSPI_CLK_DISABLE #define __QSPI_CLK_ENABLE __HAL_RCC_QSPI_CLK_ENABLE #define __QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QSPI_CLK_SLEEP_DISABLE #define __QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QSPI_CLK_SLEEP_ENABLE #define __QSPI_FORCE_RESET __HAL_RCC_QSPI_FORCE_RESET #define __QSPI_RELEASE_RESET __HAL_RCC_QSPI_RELEASE_RESET #if defined(STM32WB) #define __HAL_RCC_QSPI_CLK_DISABLE __HAL_RCC_QUADSPI_CLK_DISABLE #define __HAL_RCC_QSPI_CLK_ENABLE __HAL_RCC_QUADSPI_CLK_ENABLE #define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QUADSPI_CLK_SLEEP_DISABLE #define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QUADSPI_CLK_SLEEP_ENABLE #define __HAL_RCC_QSPI_FORCE_RESET __HAL_RCC_QUADSPI_FORCE_RESET #define __HAL_RCC_QSPI_RELEASE_RESET __HAL_RCC_QUADSPI_RELEASE_RESET #define __HAL_RCC_QSPI_IS_CLK_ENABLED __HAL_RCC_QUADSPI_IS_CLK_ENABLED #define __HAL_RCC_QSPI_IS_CLK_DISABLED __HAL_RCC_QUADSPI_IS_CLK_DISABLED #define __HAL_RCC_QSPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_ENABLED #define __HAL_RCC_QSPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_DISABLED #define QSPI_IRQHandler QUADSPI_IRQHandler #endif /* __HAL_RCC_QUADSPI_CLK_ENABLE */ #define __RNG_CLK_DISABLE __HAL_RCC_RNG_CLK_DISABLE #define __RNG_CLK_ENABLE __HAL_RCC_RNG_CLK_ENABLE #define __RNG_CLK_SLEEP_DISABLE __HAL_RCC_RNG_CLK_SLEEP_DISABLE #define __RNG_CLK_SLEEP_ENABLE __HAL_RCC_RNG_CLK_SLEEP_ENABLE #define __RNG_FORCE_RESET __HAL_RCC_RNG_FORCE_RESET #define __RNG_RELEASE_RESET __HAL_RCC_RNG_RELEASE_RESET #define __SAI1_CLK_DISABLE __HAL_RCC_SAI1_CLK_DISABLE #define __SAI1_CLK_ENABLE __HAL_RCC_SAI1_CLK_ENABLE #define __SAI1_CLK_SLEEP_DISABLE __HAL_RCC_SAI1_CLK_SLEEP_DISABLE #define __SAI1_CLK_SLEEP_ENABLE __HAL_RCC_SAI1_CLK_SLEEP_ENABLE #define __SAI1_FORCE_RESET __HAL_RCC_SAI1_FORCE_RESET #define __SAI1_RELEASE_RESET __HAL_RCC_SAI1_RELEASE_RESET #define __SAI2_CLK_DISABLE __HAL_RCC_SAI2_CLK_DISABLE #define __SAI2_CLK_ENABLE __HAL_RCC_SAI2_CLK_ENABLE #define __SAI2_CLK_SLEEP_DISABLE __HAL_RCC_SAI2_CLK_SLEEP_DISABLE #define __SAI2_CLK_SLEEP_ENABLE __HAL_RCC_SAI2_CLK_SLEEP_ENABLE #define __SAI2_FORCE_RESET __HAL_RCC_SAI2_FORCE_RESET #define __SAI2_RELEASE_RESET __HAL_RCC_SAI2_RELEASE_RESET #define __SDIO_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE #define __SDIO_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE #define __SDMMC_CLK_DISABLE __HAL_RCC_SDMMC_CLK_DISABLE #define __SDMMC_CLK_ENABLE __HAL_RCC_SDMMC_CLK_ENABLE #define __SDMMC_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC_CLK_SLEEP_DISABLE #define __SDMMC_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC_CLK_SLEEP_ENABLE #define __SDMMC_FORCE_RESET __HAL_RCC_SDMMC_FORCE_RESET #define __SDMMC_RELEASE_RESET __HAL_RCC_SDMMC_RELEASE_RESET #define __SPI1_CLK_DISABLE __HAL_RCC_SPI1_CLK_DISABLE #define __SPI1_CLK_ENABLE __HAL_RCC_SPI1_CLK_ENABLE #define __SPI1_CLK_SLEEP_DISABLE __HAL_RCC_SPI1_CLK_SLEEP_DISABLE #define __SPI1_CLK_SLEEP_ENABLE __HAL_RCC_SPI1_CLK_SLEEP_ENABLE #define __SPI1_FORCE_RESET __HAL_RCC_SPI1_FORCE_RESET #define __SPI1_RELEASE_RESET __HAL_RCC_SPI1_RELEASE_RESET #define __SPI2_CLK_DISABLE __HAL_RCC_SPI2_CLK_DISABLE #define __SPI2_CLK_ENABLE __HAL_RCC_SPI2_CLK_ENABLE #define __SPI2_CLK_SLEEP_DISABLE __HAL_RCC_SPI2_CLK_SLEEP_DISABLE #define __SPI2_CLK_SLEEP_ENABLE __HAL_RCC_SPI2_CLK_SLEEP_ENABLE #define __SPI2_FORCE_RESET __HAL_RCC_SPI2_FORCE_RESET #define __SPI2_RELEASE_RESET __HAL_RCC_SPI2_RELEASE_RESET #define __SPI3_CLK_DISABLE __HAL_RCC_SPI3_CLK_DISABLE #define __SPI3_CLK_ENABLE __HAL_RCC_SPI3_CLK_ENABLE #define __SPI3_CLK_SLEEP_DISABLE __HAL_RCC_SPI3_CLK_SLEEP_DISABLE #define __SPI3_CLK_SLEEP_ENABLE __HAL_RCC_SPI3_CLK_SLEEP_ENABLE #define __SPI3_FORCE_RESET __HAL_RCC_SPI3_FORCE_RESET #define __SPI3_RELEASE_RESET __HAL_RCC_SPI3_RELEASE_RESET #define __SRAM_CLK_DISABLE __HAL_RCC_SRAM_CLK_DISABLE #define __SRAM_CLK_ENABLE __HAL_RCC_SRAM_CLK_ENABLE #define __SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE #define __SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE #define __SRAM2_CLK_SLEEP_DISABLE __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE #define __SRAM2_CLK_SLEEP_ENABLE __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE #define __SWPMI1_CLK_DISABLE __HAL_RCC_SWPMI1_CLK_DISABLE #define __SWPMI1_CLK_ENABLE __HAL_RCC_SWPMI1_CLK_ENABLE #define __SWPMI1_CLK_SLEEP_DISABLE __HAL_RCC_SWPMI1_CLK_SLEEP_DISABLE #define __SWPMI1_CLK_SLEEP_ENABLE __HAL_RCC_SWPMI1_CLK_SLEEP_ENABLE #define __SWPMI1_FORCE_RESET __HAL_RCC_SWPMI1_FORCE_RESET #define __SWPMI1_RELEASE_RESET __HAL_RCC_SWPMI1_RELEASE_RESET #define __SYSCFG_CLK_DISABLE __HAL_RCC_SYSCFG_CLK_DISABLE #define __SYSCFG_CLK_ENABLE __HAL_RCC_SYSCFG_CLK_ENABLE #define __SYSCFG_CLK_SLEEP_DISABLE __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE #define __SYSCFG_CLK_SLEEP_ENABLE __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE #define __SYSCFG_FORCE_RESET __HAL_RCC_SYSCFG_FORCE_RESET #define __SYSCFG_RELEASE_RESET __HAL_RCC_SYSCFG_RELEASE_RESET #define __TIM1_CLK_DISABLE __HAL_RCC_TIM1_CLK_DISABLE #define __TIM1_CLK_ENABLE __HAL_RCC_TIM1_CLK_ENABLE #define __TIM1_CLK_SLEEP_DISABLE __HAL_RCC_TIM1_CLK_SLEEP_DISABLE #define __TIM1_CLK_SLEEP_ENABLE __HAL_RCC_TIM1_CLK_SLEEP_ENABLE #define __TIM1_FORCE_RESET __HAL_RCC_TIM1_FORCE_RESET #define __TIM1_RELEASE_RESET __HAL_RCC_TIM1_RELEASE_RESET #define __TIM10_CLK_DISABLE __HAL_RCC_TIM10_CLK_DISABLE #define __TIM10_CLK_ENABLE __HAL_RCC_TIM10_CLK_ENABLE #define __TIM10_FORCE_RESET __HAL_RCC_TIM10_FORCE_RESET #define __TIM10_RELEASE_RESET __HAL_RCC_TIM10_RELEASE_RESET #define __TIM11_CLK_DISABLE __HAL_RCC_TIM11_CLK_DISABLE #define __TIM11_CLK_ENABLE __HAL_RCC_TIM11_CLK_ENABLE #define __TIM11_FORCE_RESET __HAL_RCC_TIM11_FORCE_RESET #define __TIM11_RELEASE_RESET __HAL_RCC_TIM11_RELEASE_RESET #define __TIM12_CLK_DISABLE __HAL_RCC_TIM12_CLK_DISABLE #define __TIM12_CLK_ENABLE __HAL_RCC_TIM12_CLK_ENABLE #define __TIM12_FORCE_RESET __HAL_RCC_TIM12_FORCE_RESET #define __TIM12_RELEASE_RESET __HAL_RCC_TIM12_RELEASE_RESET #define __TIM13_CLK_DISABLE __HAL_RCC_TIM13_CLK_DISABLE #define __TIM13_CLK_ENABLE __HAL_RCC_TIM13_CLK_ENABLE #define __TIM13_FORCE_RESET __HAL_RCC_TIM13_FORCE_RESET #define __TIM13_RELEASE_RESET __HAL_RCC_TIM13_RELEASE_RESET #define __TIM14_CLK_DISABLE __HAL_RCC_TIM14_CLK_DISABLE #define __TIM14_CLK_ENABLE __HAL_RCC_TIM14_CLK_ENABLE #define __TIM14_FORCE_RESET __HAL_RCC_TIM14_FORCE_RESET #define __TIM14_RELEASE_RESET __HAL_RCC_TIM14_RELEASE_RESET #define __TIM15_CLK_DISABLE __HAL_RCC_TIM15_CLK_DISABLE #define __TIM15_CLK_ENABLE __HAL_RCC_TIM15_CLK_ENABLE #define __TIM15_CLK_SLEEP_DISABLE __HAL_RCC_TIM15_CLK_SLEEP_DISABLE #define __TIM15_CLK_SLEEP_ENABLE __HAL_RCC_TIM15_CLK_SLEEP_ENABLE #define __TIM15_FORCE_RESET __HAL_RCC_TIM15_FORCE_RESET #define __TIM15_RELEASE_RESET __HAL_RCC_TIM15_RELEASE_RESET #define __TIM16_CLK_DISABLE __HAL_RCC_TIM16_CLK_DISABLE #define __TIM16_CLK_ENABLE __HAL_RCC_TIM16_CLK_ENABLE #define __TIM16_CLK_SLEEP_DISABLE __HAL_RCC_TIM16_CLK_SLEEP_DISABLE #define __TIM16_CLK_SLEEP_ENABLE __HAL_RCC_TIM16_CLK_SLEEP_ENABLE #define __TIM16_FORCE_RESET __HAL_RCC_TIM16_FORCE_RESET #define __TIM16_RELEASE_RESET __HAL_RCC_TIM16_RELEASE_RESET #define __TIM17_CLK_DISABLE __HAL_RCC_TIM17_CLK_DISABLE #define __TIM17_CLK_ENABLE __HAL_RCC_TIM17_CLK_ENABLE #define __TIM17_CLK_SLEEP_DISABLE __HAL_RCC_TIM17_CLK_SLEEP_DISABLE #define __TIM17_CLK_SLEEP_ENABLE __HAL_RCC_TIM17_CLK_SLEEP_ENABLE #define __TIM17_FORCE_RESET __HAL_RCC_TIM17_FORCE_RESET #define __TIM17_RELEASE_RESET __HAL_RCC_TIM17_RELEASE_RESET #define __TIM2_CLK_DISABLE __HAL_RCC_TIM2_CLK_DISABLE #define __TIM2_CLK_ENABLE __HAL_RCC_TIM2_CLK_ENABLE #define __TIM2_CLK_SLEEP_DISABLE __HAL_RCC_TIM2_CLK_SLEEP_DISABLE #define __TIM2_CLK_SLEEP_ENABLE __HAL_RCC_TIM2_CLK_SLEEP_ENABLE #define __TIM2_FORCE_RESET __HAL_RCC_TIM2_FORCE_RESET #define __TIM2_RELEASE_RESET __HAL_RCC_TIM2_RELEASE_RESET #define __TIM3_CLK_DISABLE __HAL_RCC_TIM3_CLK_DISABLE #define __TIM3_CLK_ENABLE __HAL_RCC_TIM3_CLK_ENABLE #define __TIM3_CLK_SLEEP_DISABLE __HAL_RCC_TIM3_CLK_SLEEP_DISABLE #define __TIM3_CLK_SLEEP_ENABLE __HAL_RCC_TIM3_CLK_SLEEP_ENABLE #define __TIM3_FORCE_RESET __HAL_RCC_TIM3_FORCE_RESET #define __TIM3_RELEASE_RESET __HAL_RCC_TIM3_RELEASE_RESET #define __TIM4_CLK_DISABLE __HAL_RCC_TIM4_CLK_DISABLE #define __TIM4_CLK_ENABLE __HAL_RCC_TIM4_CLK_ENABLE #define __TIM4_CLK_SLEEP_DISABLE __HAL_RCC_TIM4_CLK_SLEEP_DISABLE #define __TIM4_CLK_SLEEP_ENABLE __HAL_RCC_TIM4_CLK_SLEEP_ENABLE #define __TIM4_FORCE_RESET __HAL_RCC_TIM4_FORCE_RESET #define __TIM4_RELEASE_RESET __HAL_RCC_TIM4_RELEASE_RESET #define __TIM5_CLK_DISABLE __HAL_RCC_TIM5_CLK_DISABLE #define __TIM5_CLK_ENABLE __HAL_RCC_TIM5_CLK_ENABLE #define __TIM5_CLK_SLEEP_DISABLE __HAL_RCC_TIM5_CLK_SLEEP_DISABLE #define __TIM5_CLK_SLEEP_ENABLE __HAL_RCC_TIM5_CLK_SLEEP_ENABLE #define __TIM5_FORCE_RESET __HAL_RCC_TIM5_FORCE_RESET #define __TIM5_RELEASE_RESET __HAL_RCC_TIM5_RELEASE_RESET #define __TIM6_CLK_DISABLE __HAL_RCC_TIM6_CLK_DISABLE #define __TIM6_CLK_ENABLE __HAL_RCC_TIM6_CLK_ENABLE #define __TIM6_CLK_SLEEP_DISABLE __HAL_RCC_TIM6_CLK_SLEEP_DISABLE #define __TIM6_CLK_SLEEP_ENABLE __HAL_RCC_TIM6_CLK_SLEEP_ENABLE #define __TIM6_FORCE_RESET __HAL_RCC_TIM6_FORCE_RESET #define __TIM6_RELEASE_RESET __HAL_RCC_TIM6_RELEASE_RESET #define __TIM7_CLK_DISABLE __HAL_RCC_TIM7_CLK_DISABLE #define __TIM7_CLK_ENABLE __HAL_RCC_TIM7_CLK_ENABLE #define __TIM7_CLK_SLEEP_DISABLE __HAL_RCC_TIM7_CLK_SLEEP_DISABLE #define __TIM7_CLK_SLEEP_ENABLE __HAL_RCC_TIM7_CLK_SLEEP_ENABLE #define __TIM7_FORCE_RESET __HAL_RCC_TIM7_FORCE_RESET #define __TIM7_RELEASE_RESET __HAL_RCC_TIM7_RELEASE_RESET #define __TIM8_CLK_DISABLE __HAL_RCC_TIM8_CLK_DISABLE #define __TIM8_CLK_ENABLE __HAL_RCC_TIM8_CLK_ENABLE #define __TIM8_CLK_SLEEP_DISABLE __HAL_RCC_TIM8_CLK_SLEEP_DISABLE #define __TIM8_CLK_SLEEP_ENABLE __HAL_RCC_TIM8_CLK_SLEEP_ENABLE #define __TIM8_FORCE_RESET __HAL_RCC_TIM8_FORCE_RESET #define __TIM8_RELEASE_RESET __HAL_RCC_TIM8_RELEASE_RESET #define __TIM9_CLK_DISABLE __HAL_RCC_TIM9_CLK_DISABLE #define __TIM9_CLK_ENABLE __HAL_RCC_TIM9_CLK_ENABLE #define __TIM9_FORCE_RESET __HAL_RCC_TIM9_FORCE_RESET #define __TIM9_RELEASE_RESET __HAL_RCC_TIM9_RELEASE_RESET #define __TSC_CLK_DISABLE __HAL_RCC_TSC_CLK_DISABLE #define __TSC_CLK_ENABLE __HAL_RCC_TSC_CLK_ENABLE #define __TSC_CLK_SLEEP_DISABLE __HAL_RCC_TSC_CLK_SLEEP_DISABLE #define __TSC_CLK_SLEEP_ENABLE __HAL_RCC_TSC_CLK_SLEEP_ENABLE #define __TSC_FORCE_RESET __HAL_RCC_TSC_FORCE_RESET #define __TSC_RELEASE_RESET __HAL_RCC_TSC_RELEASE_RESET #define __UART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE #define __UART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE #define __UART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE #define __UART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE #define __UART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET #define __UART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET #define __UART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE #define __UART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE #define __UART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE #define __UART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE #define __UART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET #define __UART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET #define __USART1_CLK_DISABLE __HAL_RCC_USART1_CLK_DISABLE #define __USART1_CLK_ENABLE __HAL_RCC_USART1_CLK_ENABLE #define __USART1_CLK_SLEEP_DISABLE __HAL_RCC_USART1_CLK_SLEEP_DISABLE #define __USART1_CLK_SLEEP_ENABLE __HAL_RCC_USART1_CLK_SLEEP_ENABLE #define __USART1_FORCE_RESET __HAL_RCC_USART1_FORCE_RESET #define __USART1_RELEASE_RESET __HAL_RCC_USART1_RELEASE_RESET #define __USART2_CLK_DISABLE __HAL_RCC_USART2_CLK_DISABLE #define __USART2_CLK_ENABLE __HAL_RCC_USART2_CLK_ENABLE #define __USART2_CLK_SLEEP_DISABLE __HAL_RCC_USART2_CLK_SLEEP_DISABLE #define __USART2_CLK_SLEEP_ENABLE __HAL_RCC_USART2_CLK_SLEEP_ENABLE #define __USART2_FORCE_RESET __HAL_RCC_USART2_FORCE_RESET #define __USART2_RELEASE_RESET __HAL_RCC_USART2_RELEASE_RESET #define __USART3_CLK_DISABLE __HAL_RCC_USART3_CLK_DISABLE #define __USART3_CLK_ENABLE __HAL_RCC_USART3_CLK_ENABLE #define __USART3_CLK_SLEEP_DISABLE __HAL_RCC_USART3_CLK_SLEEP_DISABLE #define __USART3_CLK_SLEEP_ENABLE __HAL_RCC_USART3_CLK_SLEEP_ENABLE #define __USART3_FORCE_RESET __HAL_RCC_USART3_FORCE_RESET #define __USART3_RELEASE_RESET __HAL_RCC_USART3_RELEASE_RESET #define __USART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE #define __USART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE #define __USART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE #define __USART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE #define __USART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET #define __USART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET #define __USART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE #define __USART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE #define __USART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE #define __USART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE #define __USART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET #define __USART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET #define __USART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE #define __USART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE #define __USART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET #define __USART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET #define __USART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE #define __USART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE #define __USART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET #define __USART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET #define __USB_CLK_DISABLE __HAL_RCC_USB_CLK_DISABLE #define __USB_CLK_ENABLE __HAL_RCC_USB_CLK_ENABLE #define __USB_FORCE_RESET __HAL_RCC_USB_FORCE_RESET #define __USB_CLK_SLEEP_ENABLE __HAL_RCC_USB_CLK_SLEEP_ENABLE #define __USB_CLK_SLEEP_DISABLE __HAL_RCC_USB_CLK_SLEEP_DISABLE #define __USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB_OTG_FS_CLK_DISABLE #define __USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB_OTG_FS_CLK_ENABLE #define __USB_RELEASE_RESET __HAL_RCC_USB_RELEASE_RESET #if defined(STM32H7) #define __HAL_RCC_WWDG_CLK_DISABLE __HAL_RCC_WWDG1_CLK_DISABLE #define __HAL_RCC_WWDG_CLK_ENABLE __HAL_RCC_WWDG1_CLK_ENABLE #define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG1_CLK_SLEEP_DISABLE #define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG1_CLK_SLEEP_ENABLE #define __HAL_RCC_WWDG_FORCE_RESET ((void)0U) /* Not available on the STM32H7*/ #define __HAL_RCC_WWDG_RELEASE_RESET ((void)0U) /* Not available on the STM32H7*/ #define __HAL_RCC_WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG1_IS_CLK_ENABLED #define __HAL_RCC_WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG1_IS_CLK_DISABLED #endif #define __WWDG_CLK_DISABLE __HAL_RCC_WWDG_CLK_DISABLE #define __WWDG_CLK_ENABLE __HAL_RCC_WWDG_CLK_ENABLE #define __WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG_CLK_SLEEP_DISABLE #define __WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG_CLK_SLEEP_ENABLE #define __WWDG_FORCE_RESET __HAL_RCC_WWDG_FORCE_RESET #define __WWDG_RELEASE_RESET __HAL_RCC_WWDG_RELEASE_RESET #define __TIM21_CLK_ENABLE __HAL_RCC_TIM21_CLK_ENABLE #define __TIM21_CLK_DISABLE __HAL_RCC_TIM21_CLK_DISABLE #define __TIM21_FORCE_RESET __HAL_RCC_TIM21_FORCE_RESET #define __TIM21_RELEASE_RESET __HAL_RCC_TIM21_RELEASE_RESET #define __TIM21_CLK_SLEEP_ENABLE __HAL_RCC_TIM21_CLK_SLEEP_ENABLE #define __TIM21_CLK_SLEEP_DISABLE __HAL_RCC_TIM21_CLK_SLEEP_DISABLE #define __TIM22_CLK_ENABLE __HAL_RCC_TIM22_CLK_ENABLE #define __TIM22_CLK_DISABLE __HAL_RCC_TIM22_CLK_DISABLE #define __TIM22_FORCE_RESET __HAL_RCC_TIM22_FORCE_RESET #define __TIM22_RELEASE_RESET __HAL_RCC_TIM22_RELEASE_RESET #define __TIM22_CLK_SLEEP_ENABLE __HAL_RCC_TIM22_CLK_SLEEP_ENABLE #define __TIM22_CLK_SLEEP_DISABLE __HAL_RCC_TIM22_CLK_SLEEP_DISABLE #define __CRS_CLK_DISABLE __HAL_RCC_CRS_CLK_DISABLE #define __CRS_CLK_ENABLE __HAL_RCC_CRS_CLK_ENABLE #define __CRS_CLK_SLEEP_DISABLE __HAL_RCC_CRS_CLK_SLEEP_DISABLE #define __CRS_CLK_SLEEP_ENABLE __HAL_RCC_CRS_CLK_SLEEP_ENABLE #define __CRS_FORCE_RESET __HAL_RCC_CRS_FORCE_RESET #define __CRS_RELEASE_RESET __HAL_RCC_CRS_RELEASE_RESET #define __RCC_BACKUPRESET_FORCE __HAL_RCC_BACKUPRESET_FORCE #define __RCC_BACKUPRESET_RELEASE __HAL_RCC_BACKUPRESET_RELEASE #define __USB_OTG_FS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET #define __USB_OTG_FS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET #define __USB_OTG_FS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE #define __USB_OTG_FS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE #define __USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE #define __USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE #define __USB_OTG_HS_ULPI_CLK_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE #define __USB_OTG_HS_ULPI_CLK_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE #define __TIM9_CLK_SLEEP_ENABLE __HAL_RCC_TIM9_CLK_SLEEP_ENABLE #define __TIM9_CLK_SLEEP_DISABLE __HAL_RCC_TIM9_CLK_SLEEP_DISABLE #define __TIM10_CLK_SLEEP_ENABLE __HAL_RCC_TIM10_CLK_SLEEP_ENABLE #define __TIM10_CLK_SLEEP_DISABLE __HAL_RCC_TIM10_CLK_SLEEP_DISABLE #define __TIM11_CLK_SLEEP_ENABLE __HAL_RCC_TIM11_CLK_SLEEP_ENABLE #define __TIM11_CLK_SLEEP_DISABLE __HAL_RCC_TIM11_CLK_SLEEP_DISABLE #define __ETHMACPTP_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE #define __ETHMACPTP_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE #define __ETHMACPTP_CLK_ENABLE __HAL_RCC_ETHMACPTP_CLK_ENABLE #define __ETHMACPTP_CLK_DISABLE __HAL_RCC_ETHMACPTP_CLK_DISABLE #define __HASH_CLK_ENABLE __HAL_RCC_HASH_CLK_ENABLE #define __HASH_FORCE_RESET __HAL_RCC_HASH_FORCE_RESET #define __HASH_RELEASE_RESET __HAL_RCC_HASH_RELEASE_RESET #define __HASH_CLK_SLEEP_ENABLE __HAL_RCC_HASH_CLK_SLEEP_ENABLE #define __HASH_CLK_SLEEP_DISABLE __HAL_RCC_HASH_CLK_SLEEP_DISABLE #define __HASH_CLK_DISABLE __HAL_RCC_HASH_CLK_DISABLE #define __SPI5_CLK_ENABLE __HAL_RCC_SPI5_CLK_ENABLE #define __SPI5_CLK_DISABLE __HAL_RCC_SPI5_CLK_DISABLE #define __SPI5_FORCE_RESET __HAL_RCC_SPI5_FORCE_RESET #define __SPI5_RELEASE_RESET __HAL_RCC_SPI5_RELEASE_RESET #define __SPI5_CLK_SLEEP_ENABLE __HAL_RCC_SPI5_CLK_SLEEP_ENABLE #define __SPI5_CLK_SLEEP_DISABLE __HAL_RCC_SPI5_CLK_SLEEP_DISABLE #define __SPI6_CLK_ENABLE __HAL_RCC_SPI6_CLK_ENABLE #define __SPI6_CLK_DISABLE __HAL_RCC_SPI6_CLK_DISABLE #define __SPI6_FORCE_RESET __HAL_RCC_SPI6_FORCE_RESET #define __SPI6_RELEASE_RESET __HAL_RCC_SPI6_RELEASE_RESET #define __SPI6_CLK_SLEEP_ENABLE __HAL_RCC_SPI6_CLK_SLEEP_ENABLE #define __SPI6_CLK_SLEEP_DISABLE __HAL_RCC_SPI6_CLK_SLEEP_DISABLE #define __LTDC_CLK_ENABLE __HAL_RCC_LTDC_CLK_ENABLE #define __LTDC_CLK_DISABLE __HAL_RCC_LTDC_CLK_DISABLE #define __LTDC_FORCE_RESET __HAL_RCC_LTDC_FORCE_RESET #define __LTDC_RELEASE_RESET __HAL_RCC_LTDC_RELEASE_RESET #define __LTDC_CLK_SLEEP_ENABLE __HAL_RCC_LTDC_CLK_SLEEP_ENABLE #define __ETHMAC_CLK_SLEEP_ENABLE __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE #define __ETHMAC_CLK_SLEEP_DISABLE __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE #define __ETHMACTX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE #define __ETHMACTX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE #define __ETHMACRX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE #define __ETHMACRX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE #define __TIM12_CLK_SLEEP_ENABLE __HAL_RCC_TIM12_CLK_SLEEP_ENABLE #define __TIM12_CLK_SLEEP_DISABLE __HAL_RCC_TIM12_CLK_SLEEP_DISABLE #define __TIM13_CLK_SLEEP_ENABLE __HAL_RCC_TIM13_CLK_SLEEP_ENABLE #define __TIM13_CLK_SLEEP_DISABLE __HAL_RCC_TIM13_CLK_SLEEP_DISABLE #define __TIM14_CLK_SLEEP_ENABLE __HAL_RCC_TIM14_CLK_SLEEP_ENABLE #define __TIM14_CLK_SLEEP_DISABLE __HAL_RCC_TIM14_CLK_SLEEP_DISABLE #define __BKPSRAM_CLK_ENABLE __HAL_RCC_BKPSRAM_CLK_ENABLE #define __BKPSRAM_CLK_DISABLE __HAL_RCC_BKPSRAM_CLK_DISABLE #define __BKPSRAM_CLK_SLEEP_ENABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE #define __BKPSRAM_CLK_SLEEP_DISABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE #define __CCMDATARAMEN_CLK_ENABLE __HAL_RCC_CCMDATARAMEN_CLK_ENABLE #define __CCMDATARAMEN_CLK_DISABLE __HAL_RCC_CCMDATARAMEN_CLK_DISABLE #define __USART6_CLK_ENABLE __HAL_RCC_USART6_CLK_ENABLE #define __USART6_CLK_DISABLE __HAL_RCC_USART6_CLK_DISABLE #define __USART6_FORCE_RESET __HAL_RCC_USART6_FORCE_RESET #define __USART6_RELEASE_RESET __HAL_RCC_USART6_RELEASE_RESET #define __USART6_CLK_SLEEP_ENABLE __HAL_RCC_USART6_CLK_SLEEP_ENABLE #define __USART6_CLK_SLEEP_DISABLE __HAL_RCC_USART6_CLK_SLEEP_DISABLE #define __SPI4_CLK_ENABLE __HAL_RCC_SPI4_CLK_ENABLE #define __SPI4_CLK_DISABLE __HAL_RCC_SPI4_CLK_DISABLE #define __SPI4_FORCE_RESET __HAL_RCC_SPI4_FORCE_RESET #define __SPI4_RELEASE_RESET __HAL_RCC_SPI4_RELEASE_RESET #define __SPI4_CLK_SLEEP_ENABLE __HAL_RCC_SPI4_CLK_SLEEP_ENABLE #define __SPI4_CLK_SLEEP_DISABLE __HAL_RCC_SPI4_CLK_SLEEP_DISABLE #define __GPIOI_CLK_ENABLE __HAL_RCC_GPIOI_CLK_ENABLE #define __GPIOI_CLK_DISABLE __HAL_RCC_GPIOI_CLK_DISABLE #define __GPIOI_FORCE_RESET __HAL_RCC_GPIOI_FORCE_RESET #define __GPIOI_RELEASE_RESET __HAL_RCC_GPIOI_RELEASE_RESET #define __GPIOI_CLK_SLEEP_ENABLE __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE #define __GPIOI_CLK_SLEEP_DISABLE __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE #define __GPIOJ_CLK_ENABLE __HAL_RCC_GPIOJ_CLK_ENABLE #define __GPIOJ_CLK_DISABLE __HAL_RCC_GPIOJ_CLK_DISABLE #define __GPIOJ_FORCE_RESET __HAL_RCC_GPIOJ_FORCE_RESET #define __GPIOJ_RELEASE_RESET __HAL_RCC_GPIOJ_RELEASE_RESET #define __GPIOJ_CLK_SLEEP_ENABLE __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE #define __GPIOJ_CLK_SLEEP_DISABLE __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE #define __GPIOK_CLK_ENABLE __HAL_RCC_GPIOK_CLK_ENABLE #define __GPIOK_CLK_DISABLE __HAL_RCC_GPIOK_CLK_DISABLE #define __GPIOK_RELEASE_RESET __HAL_RCC_GPIOK_RELEASE_RESET #define __GPIOK_CLK_SLEEP_ENABLE __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE #define __GPIOK_CLK_SLEEP_DISABLE __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE #define __ETH_CLK_ENABLE __HAL_RCC_ETH_CLK_ENABLE #define __ETH_CLK_DISABLE __HAL_RCC_ETH_CLK_DISABLE #define __DCMI_CLK_ENABLE __HAL_RCC_DCMI_CLK_ENABLE #define __DCMI_CLK_DISABLE __HAL_RCC_DCMI_CLK_DISABLE #define __DCMI_FORCE_RESET __HAL_RCC_DCMI_FORCE_RESET #define __DCMI_RELEASE_RESET __HAL_RCC_DCMI_RELEASE_RESET #define __DCMI_CLK_SLEEP_ENABLE __HAL_RCC_DCMI_CLK_SLEEP_ENABLE #define __DCMI_CLK_SLEEP_DISABLE __HAL_RCC_DCMI_CLK_SLEEP_DISABLE #define __UART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE #define __UART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE #define __UART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET #define __UART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET #define __UART7_CLK_SLEEP_ENABLE __HAL_RCC_UART7_CLK_SLEEP_ENABLE #define __UART7_CLK_SLEEP_DISABLE __HAL_RCC_UART7_CLK_SLEEP_DISABLE #define __UART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE #define __UART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE #define __UART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET #define __UART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET #define __UART8_CLK_SLEEP_ENABLE __HAL_RCC_UART8_CLK_SLEEP_ENABLE #define __UART8_CLK_SLEEP_DISABLE __HAL_RCC_UART8_CLK_SLEEP_DISABLE #define __OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE #define __OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE #define __OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET #define __OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET #define __OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE #define __OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE #define __HAL_RCC_OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE #define __HAL_RCC_OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE #define __HAL_RCC_OTGHS_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_ENABLED #define __HAL_RCC_OTGHS_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_DISABLED #define __HAL_RCC_OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET #define __HAL_RCC_OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET #define __HAL_RCC_OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE #define __HAL_RCC_OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE #define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_ENABLED #define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_DISABLED #define __SRAM3_CLK_SLEEP_ENABLE __HAL_RCC_SRAM3_CLK_SLEEP_ENABLE #define __CAN2_CLK_SLEEP_ENABLE __HAL_RCC_CAN2_CLK_SLEEP_ENABLE #define __CAN2_CLK_SLEEP_DISABLE __HAL_RCC_CAN2_CLK_SLEEP_DISABLE #define __DAC_CLK_SLEEP_ENABLE __HAL_RCC_DAC_CLK_SLEEP_ENABLE #define __DAC_CLK_SLEEP_DISABLE __HAL_RCC_DAC_CLK_SLEEP_DISABLE #define __ADC2_CLK_SLEEP_ENABLE __HAL_RCC_ADC2_CLK_SLEEP_ENABLE #define __ADC2_CLK_SLEEP_DISABLE __HAL_RCC_ADC2_CLK_SLEEP_DISABLE #define __ADC3_CLK_SLEEP_ENABLE __HAL_RCC_ADC3_CLK_SLEEP_ENABLE #define __ADC3_CLK_SLEEP_DISABLE __HAL_RCC_ADC3_CLK_SLEEP_DISABLE #define __FSMC_FORCE_RESET __HAL_RCC_FSMC_FORCE_RESET #define __FSMC_RELEASE_RESET __HAL_RCC_FSMC_RELEASE_RESET #define __FSMC_CLK_SLEEP_ENABLE __HAL_RCC_FSMC_CLK_SLEEP_ENABLE #define __FSMC_CLK_SLEEP_DISABLE __HAL_RCC_FSMC_CLK_SLEEP_DISABLE #define __SDIO_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET #define __SDIO_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET #define __SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE #define __SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE #define __DMA2D_CLK_ENABLE __HAL_RCC_DMA2D_CLK_ENABLE #define __DMA2D_CLK_DISABLE __HAL_RCC_DMA2D_CLK_DISABLE #define __DMA2D_FORCE_RESET __HAL_RCC_DMA2D_FORCE_RESET #define __DMA2D_RELEASE_RESET __HAL_RCC_DMA2D_RELEASE_RESET #define __DMA2D_CLK_SLEEP_ENABLE __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE #define __DMA2D_CLK_SLEEP_DISABLE __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE /* alias define maintained for legacy */ #define __HAL_RCC_OTGFS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET #define __HAL_RCC_OTGFS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET #define __ADC12_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE #define __ADC12_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE #define __ADC34_CLK_ENABLE __HAL_RCC_ADC34_CLK_ENABLE #define __ADC34_CLK_DISABLE __HAL_RCC_ADC34_CLK_DISABLE #define __DAC2_CLK_ENABLE __HAL_RCC_DAC2_CLK_ENABLE #define __DAC2_CLK_DISABLE __HAL_RCC_DAC2_CLK_DISABLE #define __TIM18_CLK_ENABLE __HAL_RCC_TIM18_CLK_ENABLE #define __TIM18_CLK_DISABLE __HAL_RCC_TIM18_CLK_DISABLE #define __TIM19_CLK_ENABLE __HAL_RCC_TIM19_CLK_ENABLE #define __TIM19_CLK_DISABLE __HAL_RCC_TIM19_CLK_DISABLE #define __TIM20_CLK_ENABLE __HAL_RCC_TIM20_CLK_ENABLE #define __TIM20_CLK_DISABLE __HAL_RCC_TIM20_CLK_DISABLE #define __HRTIM1_CLK_ENABLE __HAL_RCC_HRTIM1_CLK_ENABLE #define __HRTIM1_CLK_DISABLE __HAL_RCC_HRTIM1_CLK_DISABLE #define __SDADC1_CLK_ENABLE __HAL_RCC_SDADC1_CLK_ENABLE #define __SDADC2_CLK_ENABLE __HAL_RCC_SDADC2_CLK_ENABLE #define __SDADC3_CLK_ENABLE __HAL_RCC_SDADC3_CLK_ENABLE #define __SDADC1_CLK_DISABLE __HAL_RCC_SDADC1_CLK_DISABLE #define __SDADC2_CLK_DISABLE __HAL_RCC_SDADC2_CLK_DISABLE #define __SDADC3_CLK_DISABLE __HAL_RCC_SDADC3_CLK_DISABLE #define __ADC12_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET #define __ADC12_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET #define __ADC34_FORCE_RESET __HAL_RCC_ADC34_FORCE_RESET #define __ADC34_RELEASE_RESET __HAL_RCC_ADC34_RELEASE_RESET #define __DAC2_FORCE_RESET __HAL_RCC_DAC2_FORCE_RESET #define __DAC2_RELEASE_RESET __HAL_RCC_DAC2_RELEASE_RESET #define __TIM18_FORCE_RESET __HAL_RCC_TIM18_FORCE_RESET #define __TIM18_RELEASE_RESET __HAL_RCC_TIM18_RELEASE_RESET #define __TIM19_FORCE_RESET __HAL_RCC_TIM19_FORCE_RESET #define __TIM19_RELEASE_RESET __HAL_RCC_TIM19_RELEASE_RESET #define __TIM20_FORCE_RESET __HAL_RCC_TIM20_FORCE_RESET #define __TIM20_RELEASE_RESET __HAL_RCC_TIM20_RELEASE_RESET #define __HRTIM1_FORCE_RESET __HAL_RCC_HRTIM1_FORCE_RESET #define __HRTIM1_RELEASE_RESET __HAL_RCC_HRTIM1_RELEASE_RESET #define __SDADC1_FORCE_RESET __HAL_RCC_SDADC1_FORCE_RESET #define __SDADC2_FORCE_RESET __HAL_RCC_SDADC2_FORCE_RESET #define __SDADC3_FORCE_RESET __HAL_RCC_SDADC3_FORCE_RESET #define __SDADC1_RELEASE_RESET __HAL_RCC_SDADC1_RELEASE_RESET #define __SDADC2_RELEASE_RESET __HAL_RCC_SDADC2_RELEASE_RESET #define __SDADC3_RELEASE_RESET __HAL_RCC_SDADC3_RELEASE_RESET #define __ADC1_IS_CLK_ENABLED __HAL_RCC_ADC1_IS_CLK_ENABLED #define __ADC1_IS_CLK_DISABLED __HAL_RCC_ADC1_IS_CLK_DISABLED #define __ADC12_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED #define __ADC12_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED #define __ADC34_IS_CLK_ENABLED __HAL_RCC_ADC34_IS_CLK_ENABLED #define __ADC34_IS_CLK_DISABLED __HAL_RCC_ADC34_IS_CLK_DISABLED #define __CEC_IS_CLK_ENABLED __HAL_RCC_CEC_IS_CLK_ENABLED #define __CEC_IS_CLK_DISABLED __HAL_RCC_CEC_IS_CLK_DISABLED #define __CRC_IS_CLK_ENABLED __HAL_RCC_CRC_IS_CLK_ENABLED #define __CRC_IS_CLK_DISABLED __HAL_RCC_CRC_IS_CLK_DISABLED #define __DAC1_IS_CLK_ENABLED __HAL_RCC_DAC1_IS_CLK_ENABLED #define __DAC1_IS_CLK_DISABLED __HAL_RCC_DAC1_IS_CLK_DISABLED #define __DAC2_IS_CLK_ENABLED __HAL_RCC_DAC2_IS_CLK_ENABLED #define __DAC2_IS_CLK_DISABLED __HAL_RCC_DAC2_IS_CLK_DISABLED #define __DMA1_IS_CLK_ENABLED __HAL_RCC_DMA1_IS_CLK_ENABLED #define __DMA1_IS_CLK_DISABLED __HAL_RCC_DMA1_IS_CLK_DISABLED #define __DMA2_IS_CLK_ENABLED __HAL_RCC_DMA2_IS_CLK_ENABLED #define __DMA2_IS_CLK_DISABLED __HAL_RCC_DMA2_IS_CLK_DISABLED #define __FLITF_IS_CLK_ENABLED __HAL_RCC_FLITF_IS_CLK_ENABLED #define __FLITF_IS_CLK_DISABLED __HAL_RCC_FLITF_IS_CLK_DISABLED #define __FMC_IS_CLK_ENABLED __HAL_RCC_FMC_IS_CLK_ENABLED #define __FMC_IS_CLK_DISABLED __HAL_RCC_FMC_IS_CLK_DISABLED #define __GPIOA_IS_CLK_ENABLED __HAL_RCC_GPIOA_IS_CLK_ENABLED #define __GPIOA_IS_CLK_DISABLED __HAL_RCC_GPIOA_IS_CLK_DISABLED #define __GPIOB_IS_CLK_ENABLED __HAL_RCC_GPIOB_IS_CLK_ENABLED #define __GPIOB_IS_CLK_DISABLED __HAL_RCC_GPIOB_IS_CLK_DISABLED #define __GPIOC_IS_CLK_ENABLED __HAL_RCC_GPIOC_IS_CLK_ENABLED #define __GPIOC_IS_CLK_DISABLED __HAL_RCC_GPIOC_IS_CLK_DISABLED #define __GPIOD_IS_CLK_ENABLED __HAL_RCC_GPIOD_IS_CLK_ENABLED #define __GPIOD_IS_CLK_DISABLED __HAL_RCC_GPIOD_IS_CLK_DISABLED #define __GPIOE_IS_CLK_ENABLED __HAL_RCC_GPIOE_IS_CLK_ENABLED #define __GPIOE_IS_CLK_DISABLED __HAL_RCC_GPIOE_IS_CLK_DISABLED #define __GPIOF_IS_CLK_ENABLED __HAL_RCC_GPIOF_IS_CLK_ENABLED #define __GPIOF_IS_CLK_DISABLED __HAL_RCC_GPIOF_IS_CLK_DISABLED #define __GPIOG_IS_CLK_ENABLED __HAL_RCC_GPIOG_IS_CLK_ENABLED #define __GPIOG_IS_CLK_DISABLED __HAL_RCC_GPIOG_IS_CLK_DISABLED #define __GPIOH_IS_CLK_ENABLED __HAL_RCC_GPIOH_IS_CLK_ENABLED #define __GPIOH_IS_CLK_DISABLED __HAL_RCC_GPIOH_IS_CLK_DISABLED #define __HRTIM1_IS_CLK_ENABLED __HAL_RCC_HRTIM1_IS_CLK_ENABLED #define __HRTIM1_IS_CLK_DISABLED __HAL_RCC_HRTIM1_IS_CLK_DISABLED #define __I2C1_IS_CLK_ENABLED __HAL_RCC_I2C1_IS_CLK_ENABLED #define __I2C1_IS_CLK_DISABLED __HAL_RCC_I2C1_IS_CLK_DISABLED #define __I2C2_IS_CLK_ENABLED __HAL_RCC_I2C2_IS_CLK_ENABLED #define __I2C2_IS_CLK_DISABLED __HAL_RCC_I2C2_IS_CLK_DISABLED #define __I2C3_IS_CLK_ENABLED __HAL_RCC_I2C3_IS_CLK_ENABLED #define __I2C3_IS_CLK_DISABLED __HAL_RCC_I2C3_IS_CLK_DISABLED #define __PWR_IS_CLK_ENABLED __HAL_RCC_PWR_IS_CLK_ENABLED #define __PWR_IS_CLK_DISABLED __HAL_RCC_PWR_IS_CLK_DISABLED #define __SYSCFG_IS_CLK_ENABLED __HAL_RCC_SYSCFG_IS_CLK_ENABLED #define __SYSCFG_IS_CLK_DISABLED __HAL_RCC_SYSCFG_IS_CLK_DISABLED #define __SPI1_IS_CLK_ENABLED __HAL_RCC_SPI1_IS_CLK_ENABLED #define __SPI1_IS_CLK_DISABLED __HAL_RCC_SPI1_IS_CLK_DISABLED #define __SPI2_IS_CLK_ENABLED __HAL_RCC_SPI2_IS_CLK_ENABLED #define __SPI2_IS_CLK_DISABLED __HAL_RCC_SPI2_IS_CLK_DISABLED #define __SPI3_IS_CLK_ENABLED __HAL_RCC_SPI3_IS_CLK_ENABLED #define __SPI3_IS_CLK_DISABLED __HAL_RCC_SPI3_IS_CLK_DISABLED #define __SPI4_IS_CLK_ENABLED __HAL_RCC_SPI4_IS_CLK_ENABLED #define __SPI4_IS_CLK_DISABLED __HAL_RCC_SPI4_IS_CLK_DISABLED #define __SDADC1_IS_CLK_ENABLED __HAL_RCC_SDADC1_IS_CLK_ENABLED #define __SDADC1_IS_CLK_DISABLED __HAL_RCC_SDADC1_IS_CLK_DISABLED #define __SDADC2_IS_CLK_ENABLED __HAL_RCC_SDADC2_IS_CLK_ENABLED #define __SDADC2_IS_CLK_DISABLED __HAL_RCC_SDADC2_IS_CLK_DISABLED #define __SDADC3_IS_CLK_ENABLED __HAL_RCC_SDADC3_IS_CLK_ENABLED #define __SDADC3_IS_CLK_DISABLED __HAL_RCC_SDADC3_IS_CLK_DISABLED #define __SRAM_IS_CLK_ENABLED __HAL_RCC_SRAM_IS_CLK_ENABLED #define __SRAM_IS_CLK_DISABLED __HAL_RCC_SRAM_IS_CLK_DISABLED #define __TIM1_IS_CLK_ENABLED __HAL_RCC_TIM1_IS_CLK_ENABLED #define __TIM1_IS_CLK_DISABLED __HAL_RCC_TIM1_IS_CLK_DISABLED #define __TIM2_IS_CLK_ENABLED __HAL_RCC_TIM2_IS_CLK_ENABLED #define __TIM2_IS_CLK_DISABLED __HAL_RCC_TIM2_IS_CLK_DISABLED #define __TIM3_IS_CLK_ENABLED __HAL_RCC_TIM3_IS_CLK_ENABLED #define __TIM3_IS_CLK_DISABLED __HAL_RCC_TIM3_IS_CLK_DISABLED #define __TIM4_IS_CLK_ENABLED __HAL_RCC_TIM4_IS_CLK_ENABLED #define __TIM4_IS_CLK_DISABLED __HAL_RCC_TIM4_IS_CLK_DISABLED #define __TIM5_IS_CLK_ENABLED __HAL_RCC_TIM5_IS_CLK_ENABLED #define __TIM5_IS_CLK_DISABLED __HAL_RCC_TIM5_IS_CLK_DISABLED #define __TIM6_IS_CLK_ENABLED __HAL_RCC_TIM6_IS_CLK_ENABLED #define __TIM6_IS_CLK_DISABLED __HAL_RCC_TIM6_IS_CLK_DISABLED #define __TIM7_IS_CLK_ENABLED __HAL_RCC_TIM7_IS_CLK_ENABLED #define __TIM7_IS_CLK_DISABLED __HAL_RCC_TIM7_IS_CLK_DISABLED #define __TIM8_IS_CLK_ENABLED __HAL_RCC_TIM8_IS_CLK_ENABLED #define __TIM8_IS_CLK_DISABLED __HAL_RCC_TIM8_IS_CLK_DISABLED #define __TIM12_IS_CLK_ENABLED __HAL_RCC_TIM12_IS_CLK_ENABLED #define __TIM12_IS_CLK_DISABLED __HAL_RCC_TIM12_IS_CLK_DISABLED #define __TIM13_IS_CLK_ENABLED __HAL_RCC_TIM13_IS_CLK_ENABLED #define __TIM13_IS_CLK_DISABLED __HAL_RCC_TIM13_IS_CLK_DISABLED #define __TIM14_IS_CLK_ENABLED __HAL_RCC_TIM14_IS_CLK_ENABLED #define __TIM14_IS_CLK_DISABLED __HAL_RCC_TIM14_IS_CLK_DISABLED #define __TIM15_IS_CLK_ENABLED __HAL_RCC_TIM15_IS_CLK_ENABLED #define __TIM15_IS_CLK_DISABLED __HAL_RCC_TIM15_IS_CLK_DISABLED #define __TIM16_IS_CLK_ENABLED __HAL_RCC_TIM16_IS_CLK_ENABLED #define __TIM16_IS_CLK_DISABLED __HAL_RCC_TIM16_IS_CLK_DISABLED #define __TIM17_IS_CLK_ENABLED __HAL_RCC_TIM17_IS_CLK_ENABLED #define __TIM17_IS_CLK_DISABLED __HAL_RCC_TIM17_IS_CLK_DISABLED #define __TIM18_IS_CLK_ENABLED __HAL_RCC_TIM18_IS_CLK_ENABLED #define __TIM18_IS_CLK_DISABLED __HAL_RCC_TIM18_IS_CLK_DISABLED #define __TIM19_IS_CLK_ENABLED __HAL_RCC_TIM19_IS_CLK_ENABLED #define __TIM19_IS_CLK_DISABLED __HAL_RCC_TIM19_IS_CLK_DISABLED #define __TIM20_IS_CLK_ENABLED __HAL_RCC_TIM20_IS_CLK_ENABLED #define __TIM20_IS_CLK_DISABLED __HAL_RCC_TIM20_IS_CLK_DISABLED #define __TSC_IS_CLK_ENABLED __HAL_RCC_TSC_IS_CLK_ENABLED #define __TSC_IS_CLK_DISABLED __HAL_RCC_TSC_IS_CLK_DISABLED #define __UART4_IS_CLK_ENABLED __HAL_RCC_UART4_IS_CLK_ENABLED #define __UART4_IS_CLK_DISABLED __HAL_RCC_UART4_IS_CLK_DISABLED #define __UART5_IS_CLK_ENABLED __HAL_RCC_UART5_IS_CLK_ENABLED #define __UART5_IS_CLK_DISABLED __HAL_RCC_UART5_IS_CLK_DISABLED #define __USART1_IS_CLK_ENABLED __HAL_RCC_USART1_IS_CLK_ENABLED #define __USART1_IS_CLK_DISABLED __HAL_RCC_USART1_IS_CLK_DISABLED #define __USART2_IS_CLK_ENABLED __HAL_RCC_USART2_IS_CLK_ENABLED #define __USART2_IS_CLK_DISABLED __HAL_RCC_USART2_IS_CLK_DISABLED #define __USART3_IS_CLK_ENABLED __HAL_RCC_USART3_IS_CLK_ENABLED #define __USART3_IS_CLK_DISABLED __HAL_RCC_USART3_IS_CLK_DISABLED #define __USB_IS_CLK_ENABLED __HAL_RCC_USB_IS_CLK_ENABLED #define __USB_IS_CLK_DISABLED __HAL_RCC_USB_IS_CLK_DISABLED #define __WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG_IS_CLK_ENABLED #define __WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG_IS_CLK_DISABLED #if defined(STM32L1) #define __HAL_RCC_CRYP_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE #define __HAL_RCC_CRYP_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE #define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE #define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE #define __HAL_RCC_CRYP_FORCE_RESET __HAL_RCC_AES_FORCE_RESET #define __HAL_RCC_CRYP_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET #endif /* STM32L1 */ #if defined(STM32F4) #define __HAL_RCC_SDMMC1_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET #define __HAL_RCC_SDMMC1_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET #define __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE #define __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE #define __HAL_RCC_SDMMC1_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE #define __HAL_RCC_SDMMC1_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE #define __HAL_RCC_SDMMC1_IS_CLK_ENABLED __HAL_RCC_SDIO_IS_CLK_ENABLED #define __HAL_RCC_SDMMC1_IS_CLK_DISABLED __HAL_RCC_SDIO_IS_CLK_DISABLED #define Sdmmc1ClockSelection SdioClockSelection #define RCC_PERIPHCLK_SDMMC1 RCC_PERIPHCLK_SDIO #define RCC_SDMMC1CLKSOURCE_CLK48 RCC_SDIOCLKSOURCE_CK48 #define RCC_SDMMC1CLKSOURCE_SYSCLK RCC_SDIOCLKSOURCE_SYSCLK #define __HAL_RCC_SDMMC1_CONFIG __HAL_RCC_SDIO_CONFIG #define __HAL_RCC_GET_SDMMC1_SOURCE __HAL_RCC_GET_SDIO_SOURCE #endif #if defined(STM32F7) || defined(STM32L4) #define __HAL_RCC_SDIO_FORCE_RESET __HAL_RCC_SDMMC1_FORCE_RESET #define __HAL_RCC_SDIO_RELEASE_RESET __HAL_RCC_SDMMC1_RELEASE_RESET #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE #define __HAL_RCC_SDIO_CLK_ENABLE __HAL_RCC_SDMMC1_CLK_ENABLE #define __HAL_RCC_SDIO_CLK_DISABLE __HAL_RCC_SDMMC1_CLK_DISABLE #define __HAL_RCC_SDIO_IS_CLK_ENABLED __HAL_RCC_SDMMC1_IS_CLK_ENABLED #define __HAL_RCC_SDIO_IS_CLK_DISABLED __HAL_RCC_SDMMC1_IS_CLK_DISABLED #define SdioClockSelection Sdmmc1ClockSelection #define RCC_PERIPHCLK_SDIO RCC_PERIPHCLK_SDMMC1 #define __HAL_RCC_SDIO_CONFIG __HAL_RCC_SDMMC1_CONFIG #define __HAL_RCC_GET_SDIO_SOURCE __HAL_RCC_GET_SDMMC1_SOURCE #endif #if defined(STM32F7) #define RCC_SDIOCLKSOURCE_CLK48 RCC_SDMMC1CLKSOURCE_CLK48 #define RCC_SDIOCLKSOURCE_SYSCLK RCC_SDMMC1CLKSOURCE_SYSCLK #endif #if defined(STM32H7) #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_ENABLE() #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE() #define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_DISABLE() #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_DISABLE() #define __HAL_RCC_USB_OTG_HS_FORCE_RESET() __HAL_RCC_USB1_OTG_HS_FORCE_RESET() #define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() __HAL_RCC_USB1_OTG_HS_RELEASE_RESET() #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_ENABLE() #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE() #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_DISABLE() #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE() #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_ENABLE() #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE() #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_DISABLE() #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_DISABLE() #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() __HAL_RCC_USB2_OTG_FS_FORCE_RESET() #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() __HAL_RCC_USB2_OTG_FS_RELEASE_RESET() #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_ENABLE() #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE() #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_DISABLE() #define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE() #endif #define __HAL_RCC_I2SCLK __HAL_RCC_I2S_CONFIG #define __HAL_RCC_I2SCLK_CONFIG __HAL_RCC_I2S_CONFIG #define __RCC_PLLSRC RCC_GET_PLL_OSCSOURCE #define IS_RCC_MSIRANGE IS_RCC_MSI_CLOCK_RANGE #define IS_RCC_RTCCLK_SOURCE IS_RCC_RTCCLKSOURCE #define IS_RCC_SYSCLK_DIV IS_RCC_HCLK #define IS_RCC_HCLK_DIV IS_RCC_PCLK #define IS_RCC_PERIPHCLK IS_RCC_PERIPHCLOCK #define RCC_IT_HSI14 RCC_IT_HSI14RDY #define RCC_IT_CSSLSE RCC_IT_LSECSS #define RCC_IT_CSSHSE RCC_IT_CSS #define RCC_PLLMUL_3 RCC_PLL_MUL3 #define RCC_PLLMUL_4 RCC_PLL_MUL4 #define RCC_PLLMUL_6 RCC_PLL_MUL6 #define RCC_PLLMUL_8 RCC_PLL_MUL8 #define RCC_PLLMUL_12 RCC_PLL_MUL12 #define RCC_PLLMUL_16 RCC_PLL_MUL16 #define RCC_PLLMUL_24 RCC_PLL_MUL24 #define RCC_PLLMUL_32 RCC_PLL_MUL32 #define RCC_PLLMUL_48 RCC_PLL_MUL48 #define RCC_PLLDIV_2 RCC_PLL_DIV2 #define RCC_PLLDIV_3 RCC_PLL_DIV3 #define RCC_PLLDIV_4 RCC_PLL_DIV4 #define IS_RCC_MCOSOURCE IS_RCC_MCO1SOURCE #define __HAL_RCC_MCO_CONFIG __HAL_RCC_MCO1_CONFIG #define RCC_MCO_NODIV RCC_MCODIV_1 #define RCC_MCO_DIV1 RCC_MCODIV_1 #define RCC_MCO_DIV2 RCC_MCODIV_2 #define RCC_MCO_DIV4 RCC_MCODIV_4 #define RCC_MCO_DIV8 RCC_MCODIV_8 #define RCC_MCO_DIV16 RCC_MCODIV_16 #define RCC_MCO_DIV32 RCC_MCODIV_32 #define RCC_MCO_DIV64 RCC_MCODIV_64 #define RCC_MCO_DIV128 RCC_MCODIV_128 #define RCC_MCOSOURCE_NONE RCC_MCO1SOURCE_NOCLOCK #define RCC_MCOSOURCE_LSI RCC_MCO1SOURCE_LSI #define RCC_MCOSOURCE_LSE RCC_MCO1SOURCE_LSE #define RCC_MCOSOURCE_SYSCLK RCC_MCO1SOURCE_SYSCLK #define RCC_MCOSOURCE_HSI RCC_MCO1SOURCE_HSI #define RCC_MCOSOURCE_HSI14 RCC_MCO1SOURCE_HSI14 #define RCC_MCOSOURCE_HSI48 RCC_MCO1SOURCE_HSI48 #define RCC_MCOSOURCE_HSE RCC_MCO1SOURCE_HSE #define RCC_MCOSOURCE_PLLCLK_DIV1 RCC_MCO1SOURCE_PLLCLK #define RCC_MCOSOURCE_PLLCLK_NODIV RCC_MCO1SOURCE_PLLCLK #define RCC_MCOSOURCE_PLLCLK_DIV2 RCC_MCO1SOURCE_PLLCLK_DIV2 #if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || defined(STM32WL) #define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE #else #define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK #endif #define RCC_USBCLK_PLLSAI1 RCC_USBCLKSOURCE_PLLSAI1 #define RCC_USBCLK_PLL RCC_USBCLKSOURCE_PLL #define RCC_USBCLK_MSI RCC_USBCLKSOURCE_MSI #define RCC_USBCLKSOURCE_PLLCLK RCC_USBCLKSOURCE_PLL #define RCC_USBPLLCLK_DIV1 RCC_USBCLKSOURCE_PLL #define RCC_USBPLLCLK_DIV1_5 RCC_USBCLKSOURCE_PLL_DIV1_5 #define RCC_USBPLLCLK_DIV2 RCC_USBCLKSOURCE_PLL_DIV2 #define RCC_USBPLLCLK_DIV3 RCC_USBCLKSOURCE_PLL_DIV3 #define HSION_BitNumber RCC_HSION_BIT_NUMBER #define HSION_BITNUMBER RCC_HSION_BIT_NUMBER #define HSEON_BitNumber RCC_HSEON_BIT_NUMBER #define HSEON_BITNUMBER RCC_HSEON_BIT_NUMBER #define MSION_BITNUMBER RCC_MSION_BIT_NUMBER #define CSSON_BitNumber RCC_CSSON_BIT_NUMBER #define CSSON_BITNUMBER RCC_CSSON_BIT_NUMBER #define PLLON_BitNumber RCC_PLLON_BIT_NUMBER #define PLLON_BITNUMBER RCC_PLLON_BIT_NUMBER #define PLLI2SON_BitNumber RCC_PLLI2SON_BIT_NUMBER #define I2SSRC_BitNumber RCC_I2SSRC_BIT_NUMBER #define RTCEN_BitNumber RCC_RTCEN_BIT_NUMBER #define RTCEN_BITNUMBER RCC_RTCEN_BIT_NUMBER #define BDRST_BitNumber RCC_BDRST_BIT_NUMBER #define BDRST_BITNUMBER RCC_BDRST_BIT_NUMBER #define RTCRST_BITNUMBER RCC_RTCRST_BIT_NUMBER #define LSION_BitNumber RCC_LSION_BIT_NUMBER #define LSION_BITNUMBER RCC_LSION_BIT_NUMBER #define LSEON_BitNumber RCC_LSEON_BIT_NUMBER #define LSEON_BITNUMBER RCC_LSEON_BIT_NUMBER #define LSEBYP_BITNUMBER RCC_LSEBYP_BIT_NUMBER #define PLLSAION_BitNumber RCC_PLLSAION_BIT_NUMBER #define TIMPRE_BitNumber RCC_TIMPRE_BIT_NUMBER #define RMVF_BitNumber RCC_RMVF_BIT_NUMBER #define RMVF_BITNUMBER RCC_RMVF_BIT_NUMBER #define RCC_CR2_HSI14TRIM_BitNumber RCC_HSI14TRIM_BIT_NUMBER #define CR_BYTE2_ADDRESS RCC_CR_BYTE2_ADDRESS #define CIR_BYTE1_ADDRESS RCC_CIR_BYTE1_ADDRESS #define CIR_BYTE2_ADDRESS RCC_CIR_BYTE2_ADDRESS #define BDCR_BYTE0_ADDRESS RCC_BDCR_BYTE0_ADDRESS #define DBP_TIMEOUT_VALUE RCC_DBP_TIMEOUT_VALUE #define LSE_TIMEOUT_VALUE RCC_LSE_TIMEOUT_VALUE #define CR_HSION_BB RCC_CR_HSION_BB #define CR_CSSON_BB RCC_CR_CSSON_BB #define CR_PLLON_BB RCC_CR_PLLON_BB #define CR_PLLI2SON_BB RCC_CR_PLLI2SON_BB #define CR_MSION_BB RCC_CR_MSION_BB #define CSR_LSION_BB RCC_CSR_LSION_BB #define CSR_LSEON_BB RCC_CSR_LSEON_BB #define CSR_LSEBYP_BB RCC_CSR_LSEBYP_BB #define CSR_RTCEN_BB RCC_CSR_RTCEN_BB #define CSR_RTCRST_BB RCC_CSR_RTCRST_BB #define CFGR_I2SSRC_BB RCC_CFGR_I2SSRC_BB #define BDCR_RTCEN_BB RCC_BDCR_RTCEN_BB #define BDCR_BDRST_BB RCC_BDCR_BDRST_BB #define CR_HSEON_BB RCC_CR_HSEON_BB #define CSR_RMVF_BB RCC_CSR_RMVF_BB #define CR_PLLSAION_BB RCC_CR_PLLSAION_BB #define DCKCFGR_TIMPRE_BB RCC_DCKCFGR_TIMPRE_BB #define __HAL_RCC_CRS_ENABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE #define __HAL_RCC_CRS_DISABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE #define __HAL_RCC_CRS_ENABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE #define __HAL_RCC_CRS_DISABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE #define __HAL_RCC_CRS_CALCULATE_RELOADVALUE __HAL_RCC_CRS_RELOADVALUE_CALCULATE #define __HAL_RCC_GET_IT_SOURCE __HAL_RCC_GET_IT #define RCC_CRS_SYNCWARM RCC_CRS_SYNCWARN #define RCC_CRS_TRIMOV RCC_CRS_TRIMOVF #define RCC_PERIPHCLK_CK48 RCC_PERIPHCLK_CLK48 #define RCC_CK48CLKSOURCE_PLLQ RCC_CLK48CLKSOURCE_PLLQ #define RCC_CK48CLKSOURCE_PLLSAIP RCC_CLK48CLKSOURCE_PLLSAIP #define RCC_CK48CLKSOURCE_PLLI2SQ RCC_CLK48CLKSOURCE_PLLI2SQ #define IS_RCC_CK48CLKSOURCE IS_RCC_CLK48CLKSOURCE #define RCC_SDIOCLKSOURCE_CK48 RCC_SDIOCLKSOURCE_CLK48 #define __HAL_RCC_DFSDM_CLK_ENABLE __HAL_RCC_DFSDM1_CLK_ENABLE #define __HAL_RCC_DFSDM_CLK_DISABLE __HAL_RCC_DFSDM1_CLK_DISABLE #define __HAL_RCC_DFSDM_IS_CLK_ENABLED __HAL_RCC_DFSDM1_IS_CLK_ENABLED #define __HAL_RCC_DFSDM_IS_CLK_DISABLED __HAL_RCC_DFSDM1_IS_CLK_DISABLED #define __HAL_RCC_DFSDM_FORCE_RESET __HAL_RCC_DFSDM1_FORCE_RESET #define __HAL_RCC_DFSDM_RELEASE_RESET __HAL_RCC_DFSDM1_RELEASE_RESET #define __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE #define __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE #define __HAL_RCC_DFSDM_IS_CLK_SLEEP_ENABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_ENABLED #define __HAL_RCC_DFSDM_IS_CLK_SLEEP_DISABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_DISABLED #define DfsdmClockSelection Dfsdm1ClockSelection #define RCC_PERIPHCLK_DFSDM RCC_PERIPHCLK_DFSDM1 #define RCC_DFSDMCLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2 #define RCC_DFSDMCLKSOURCE_SYSCLK RCC_DFSDM1CLKSOURCE_SYSCLK #define __HAL_RCC_DFSDM_CONFIG __HAL_RCC_DFSDM1_CONFIG #define __HAL_RCC_GET_DFSDM_SOURCE __HAL_RCC_GET_DFSDM1_SOURCE #define RCC_DFSDM1CLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2 #define RCC_SWPMI1CLKSOURCE_PCLK RCC_SWPMI1CLKSOURCE_PCLK1 #define RCC_LPTIM1CLKSOURCE_PCLK RCC_LPTIM1CLKSOURCE_PCLK1 #define RCC_LPTIM2CLKSOURCE_PCLK RCC_LPTIM2CLKSOURCE_PCLK1 #define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM1AUDIOCLKSOURCE_I2S1 #define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM1AUDIOCLKSOURCE_I2S2 #define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM2AUDIOCLKSOURCE_I2S1 #define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM2AUDIOCLKSOURCE_I2S2 #define RCC_DFSDM1CLKSOURCE_APB2 RCC_DFSDM1CLKSOURCE_PCLK2 #define RCC_DFSDM2CLKSOURCE_APB2 RCC_DFSDM2CLKSOURCE_PCLK2 #define RCC_FMPI2C1CLKSOURCE_APB RCC_FMPI2C1CLKSOURCE_PCLK1 /** * @} */ /** @defgroup HAL_RNG_Aliased_Macros HAL RNG Aliased Macros maintained for legacy purpose * @{ */ #define HAL_RNG_ReadyCallback(__HANDLE__) HAL_RNG_ReadyDataCallback((__HANDLE__), uint32_t random32bit) /** * @} */ /** @defgroup HAL_RTC_Aliased_Macros HAL RTC Aliased Macros maintained for legacy purpose * @{ */ #if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || defined (STM32L4P5xx) || defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) #else #define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG #endif #define __HAL_RTC_DISABLE_IT __HAL_RTC_EXTI_DISABLE_IT #define __HAL_RTC_ENABLE_IT __HAL_RTC_EXTI_ENABLE_IT #if defined (STM32F1) #define __HAL_RTC_EXTI_CLEAR_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() #define __HAL_RTC_EXTI_ENABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_ENABLE_IT() #define __HAL_RTC_EXTI_DISABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_DISABLE_IT() #define __HAL_RTC_EXTI_GET_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GET_FLAG() #define __HAL_RTC_EXTI_GENERATE_SWIT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() #else #define __HAL_RTC_EXTI_CLEAR_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() : \ (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() : \ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG())) #define __HAL_RTC_EXTI_ENABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_ENABLE_IT() : \ (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() : \ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT())) #define __HAL_RTC_EXTI_DISABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_DISABLE_IT() : \ (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() : \ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT())) #define __HAL_RTC_EXTI_GET_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GET_FLAG() : \ (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() : \ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG())) #define __HAL_RTC_EXTI_GENERATE_SWIT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() : \ (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() : \ __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT())) #endif /* STM32F1 */ #define IS_ALARM IS_RTC_ALARM #define IS_ALARM_MASK IS_RTC_ALARM_MASK #define IS_TAMPER IS_RTC_TAMPER #define IS_TAMPER_ERASE_MODE IS_RTC_TAMPER_ERASE_MODE #define IS_TAMPER_FILTER IS_RTC_TAMPER_FILTER #define IS_TAMPER_INTERRUPT IS_RTC_TAMPER_INTERRUPT #define IS_TAMPER_MASKFLAG_STATE IS_RTC_TAMPER_MASKFLAG_STATE #define IS_TAMPER_PRECHARGE_DURATION IS_RTC_TAMPER_PRECHARGE_DURATION #define IS_TAMPER_PULLUP_STATE IS_RTC_TAMPER_PULLUP_STATE #define IS_TAMPER_SAMPLING_FREQ IS_RTC_TAMPER_SAMPLING_FREQ #define IS_TAMPER_TIMESTAMPONTAMPER_DETECTION IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION #define IS_TAMPER_TRIGGER IS_RTC_TAMPER_TRIGGER #define IS_WAKEUP_CLOCK IS_RTC_WAKEUP_CLOCK #define IS_WAKEUP_COUNTER IS_RTC_WAKEUP_COUNTER #define __RTC_WRITEPROTECTION_ENABLE __HAL_RTC_WRITEPROTECTION_ENABLE #define __RTC_WRITEPROTECTION_DISABLE __HAL_RTC_WRITEPROTECTION_DISABLE /** * @} */ /** @defgroup HAL_SD_Aliased_Macros HAL SD Aliased Macros maintained for legacy purpose * @{ */ #define SD_OCR_CID_CSD_OVERWRIETE SD_OCR_CID_CSD_OVERWRITE #define SD_CMD_SD_APP_STAUS SD_CMD_SD_APP_STATUS #if defined(STM32F4) || defined(STM32F2) #define SD_SDMMC_DISABLED SD_SDIO_DISABLED #define SD_SDMMC_FUNCTION_BUSY SD_SDIO_FUNCTION_BUSY #define SD_SDMMC_FUNCTION_FAILED SD_SDIO_FUNCTION_FAILED #define SD_SDMMC_UNKNOWN_FUNCTION SD_SDIO_UNKNOWN_FUNCTION #define SD_CMD_SDMMC_SEN_OP_COND SD_CMD_SDIO_SEN_OP_COND #define SD_CMD_SDMMC_RW_DIRECT SD_CMD_SDIO_RW_DIRECT #define SD_CMD_SDMMC_RW_EXTENDED SD_CMD_SDIO_RW_EXTENDED #define __HAL_SD_SDMMC_ENABLE __HAL_SD_SDIO_ENABLE #define __HAL_SD_SDMMC_DISABLE __HAL_SD_SDIO_DISABLE #define __HAL_SD_SDMMC_DMA_ENABLE __HAL_SD_SDIO_DMA_ENABLE #define __HAL_SD_SDMMC_DMA_DISABLE __HAL_SD_SDIO_DMA_DISABL #define __HAL_SD_SDMMC_ENABLE_IT __HAL_SD_SDIO_ENABLE_IT #define __HAL_SD_SDMMC_DISABLE_IT __HAL_SD_SDIO_DISABLE_IT #define __HAL_SD_SDMMC_GET_FLAG __HAL_SD_SDIO_GET_FLAG #define __HAL_SD_SDMMC_CLEAR_FLAG __HAL_SD_SDIO_CLEAR_FLAG #define __HAL_SD_SDMMC_GET_IT __HAL_SD_SDIO_GET_IT #define __HAL_SD_SDMMC_CLEAR_IT __HAL_SD_SDIO_CLEAR_IT #define SDMMC_STATIC_FLAGS SDIO_STATIC_FLAGS #define SDMMC_CMD0TIMEOUT SDIO_CMD0TIMEOUT #define SD_SDMMC_SEND_IF_COND SD_SDIO_SEND_IF_COND /* alias CMSIS */ #define SDMMC1_IRQn SDIO_IRQn #define SDMMC1_IRQHandler SDIO_IRQHandler #endif #if defined(STM32F7) || defined(STM32L4) #define SD_SDIO_DISABLED SD_SDMMC_DISABLED #define SD_SDIO_FUNCTION_BUSY SD_SDMMC_FUNCTION_BUSY #define SD_SDIO_FUNCTION_FAILED SD_SDMMC_FUNCTION_FAILED #define SD_SDIO_UNKNOWN_FUNCTION SD_SDMMC_UNKNOWN_FUNCTION #define SD_CMD_SDIO_SEN_OP_COND SD_CMD_SDMMC_SEN_OP_COND #define SD_CMD_SDIO_RW_DIRECT SD_CMD_SDMMC_RW_DIRECT #define SD_CMD_SDIO_RW_EXTENDED SD_CMD_SDMMC_RW_EXTENDED #define __HAL_SD_SDIO_ENABLE __HAL_SD_SDMMC_ENABLE #define __HAL_SD_SDIO_DISABLE __HAL_SD_SDMMC_DISABLE #define __HAL_SD_SDIO_DMA_ENABLE __HAL_SD_SDMMC_DMA_ENABLE #define __HAL_SD_SDIO_DMA_DISABL __HAL_SD_SDMMC_DMA_DISABLE #define __HAL_SD_SDIO_ENABLE_IT __HAL_SD_SDMMC_ENABLE_IT #define __HAL_SD_SDIO_DISABLE_IT __HAL_SD_SDMMC_DISABLE_IT #define __HAL_SD_SDIO_GET_FLAG __HAL_SD_SDMMC_GET_FLAG #define __HAL_SD_SDIO_CLEAR_FLAG __HAL_SD_SDMMC_CLEAR_FLAG #define __HAL_SD_SDIO_GET_IT __HAL_SD_SDMMC_GET_IT #define __HAL_SD_SDIO_CLEAR_IT __HAL_SD_SDMMC_CLEAR_IT #define SDIO_STATIC_FLAGS SDMMC_STATIC_FLAGS #define SDIO_CMD0TIMEOUT SDMMC_CMD0TIMEOUT #define SD_SDIO_SEND_IF_COND SD_SDMMC_SEND_IF_COND /* alias CMSIS for compatibilities */ #define SDIO_IRQn SDMMC1_IRQn #define SDIO_IRQHandler SDMMC1_IRQHandler #endif #if defined(STM32F7) || defined(STM32F4) || defined(STM32F2) || defined(STM32L4) || defined(STM32H7) #define HAL_SD_CardCIDTypedef HAL_SD_CardCIDTypeDef #define HAL_SD_CardCSDTypedef HAL_SD_CardCSDTypeDef #define HAL_SD_CardStatusTypedef HAL_SD_CardStatusTypeDef #define HAL_SD_CardStateTypedef HAL_SD_CardStateTypeDef #endif #if defined(STM32H7) || defined(STM32L5) #define HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback HAL_MMCEx_Read_DMADoubleBuf0CpltCallback #define HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback HAL_MMCEx_Read_DMADoubleBuf1CpltCallback #define HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback HAL_MMCEx_Write_DMADoubleBuf0CpltCallback #define HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback HAL_MMCEx_Write_DMADoubleBuf1CpltCallback #define HAL_SDEx_Read_DMADoubleBuffer0CpltCallback HAL_SDEx_Read_DMADoubleBuf0CpltCallback #define HAL_SDEx_Read_DMADoubleBuffer1CpltCallback HAL_SDEx_Read_DMADoubleBuf1CpltCallback #define HAL_SDEx_Write_DMADoubleBuffer0CpltCallback HAL_SDEx_Write_DMADoubleBuf0CpltCallback #define HAL_SDEx_Write_DMADoubleBuffer1CpltCallback HAL_SDEx_Write_DMADoubleBuf1CpltCallback #define HAL_SD_DriveTransciver_1_8V_Callback HAL_SD_DriveTransceiver_1_8V_Callback #endif /** * @} */ /** @defgroup HAL_SMARTCARD_Aliased_Macros HAL SMARTCARD Aliased Macros maintained for legacy purpose * @{ */ #define __SMARTCARD_ENABLE_IT __HAL_SMARTCARD_ENABLE_IT #define __SMARTCARD_DISABLE_IT __HAL_SMARTCARD_DISABLE_IT #define __SMARTCARD_ENABLE __HAL_SMARTCARD_ENABLE #define __SMARTCARD_DISABLE __HAL_SMARTCARD_DISABLE #define __SMARTCARD_DMA_REQUEST_ENABLE __HAL_SMARTCARD_DMA_REQUEST_ENABLE #define __SMARTCARD_DMA_REQUEST_DISABLE __HAL_SMARTCARD_DMA_REQUEST_DISABLE #define __HAL_SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE #define __SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE #define IS_SMARTCARD_ONEBIT_SAMPLING IS_SMARTCARD_ONE_BIT_SAMPLE /** * @} */ /** @defgroup HAL_SMBUS_Aliased_Macros HAL SMBUS Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_SMBUS_RESET_CR1 SMBUS_RESET_CR1 #define __HAL_SMBUS_RESET_CR2 SMBUS_RESET_CR2 #define __HAL_SMBUS_GENERATE_START SMBUS_GENERATE_START #define __HAL_SMBUS_GET_ADDR_MATCH SMBUS_GET_ADDR_MATCH #define __HAL_SMBUS_GET_DIR SMBUS_GET_DIR #define __HAL_SMBUS_GET_STOP_MODE SMBUS_GET_STOP_MODE #define __HAL_SMBUS_GET_PEC_MODE SMBUS_GET_PEC_MODE #define __HAL_SMBUS_GET_ALERT_ENABLED SMBUS_GET_ALERT_ENABLED /** * @} */ /** @defgroup HAL_SPI_Aliased_Macros HAL SPI Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_SPI_1LINE_TX SPI_1LINE_TX #define __HAL_SPI_1LINE_RX SPI_1LINE_RX #define __HAL_SPI_RESET_CRC SPI_RESET_CRC /** * @} */ /** @defgroup HAL_UART_Aliased_Macros HAL UART Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE #define __HAL_UART_MASK_COMPUTATION UART_MASK_COMPUTATION #define __UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE #define __UART_MASK_COMPUTATION UART_MASK_COMPUTATION #define IS_UART_WAKEUPMETHODE IS_UART_WAKEUPMETHOD #define IS_UART_ONEBIT_SAMPLE IS_UART_ONE_BIT_SAMPLE #define IS_UART_ONEBIT_SAMPLING IS_UART_ONE_BIT_SAMPLE /** * @} */ /** @defgroup HAL_USART_Aliased_Macros HAL USART Aliased Macros maintained for legacy purpose * @{ */ #define __USART_ENABLE_IT __HAL_USART_ENABLE_IT #define __USART_DISABLE_IT __HAL_USART_DISABLE_IT #define __USART_ENABLE __HAL_USART_ENABLE #define __USART_DISABLE __HAL_USART_DISABLE #define __HAL_USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE #define __USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE #if defined(STM32F0) || defined(STM32F3) || defined(STM32F7) #define USART_OVERSAMPLING_16 0x00000000U #define USART_OVERSAMPLING_8 USART_CR1_OVER8 #define IS_USART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == USART_OVERSAMPLING_16) || \ ((__SAMPLING__) == USART_OVERSAMPLING_8)) #endif /* STM32F0 || STM32F3 || STM32F7 */ /** * @} */ /** @defgroup HAL_USB_Aliased_Macros HAL USB Aliased Macros maintained for legacy purpose * @{ */ #define USB_EXTI_LINE_WAKEUP USB_WAKEUP_EXTI_LINE #define USB_FS_EXTI_TRIGGER_RISING_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_EDGE #define USB_FS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_FS_WAKEUP_EXTI_FALLING_EDGE #define USB_FS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_FALLING_EDGE #define USB_FS_EXTI_LINE_WAKEUP USB_OTG_FS_WAKEUP_EXTI_LINE #define USB_HS_EXTI_TRIGGER_RISING_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_EDGE #define USB_HS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_HS_WAKEUP_EXTI_FALLING_EDGE #define USB_HS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_FALLING_EDGE #define USB_HS_EXTI_LINE_WAKEUP USB_OTG_HS_WAKEUP_EXTI_LINE #define __HAL_USB_EXTI_ENABLE_IT __HAL_USB_WAKEUP_EXTI_ENABLE_IT #define __HAL_USB_EXTI_DISABLE_IT __HAL_USB_WAKEUP_EXTI_DISABLE_IT #define __HAL_USB_EXTI_GET_FLAG __HAL_USB_WAKEUP_EXTI_GET_FLAG #define __HAL_USB_EXTI_CLEAR_FLAG __HAL_USB_WAKEUP_EXTI_CLEAR_FLAG #define __HAL_USB_EXTI_SET_RISING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE #define __HAL_USB_EXTI_SET_FALLING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_FALLING_EDGE #define __HAL_USB_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE #define __HAL_USB_FS_EXTI_ENABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT #define __HAL_USB_FS_EXTI_DISABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_DISABLE_IT #define __HAL_USB_FS_EXTI_GET_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_GET_FLAG #define __HAL_USB_FS_EXTI_CLEAR_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG #define __HAL_USB_FS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE #define __HAL_USB_FS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_FALLING_EDGE #define __HAL_USB_FS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE #define __HAL_USB_FS_EXTI_GENERATE_SWIT __HAL_USB_OTG_FS_WAKEUP_EXTI_GENERATE_SWIT #define __HAL_USB_HS_EXTI_ENABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT #define __HAL_USB_HS_EXTI_DISABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_DISABLE_IT #define __HAL_USB_HS_EXTI_GET_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_GET_FLAG #define __HAL_USB_HS_EXTI_CLEAR_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG #define __HAL_USB_HS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE #define __HAL_USB_HS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_FALLING_EDGE #define __HAL_USB_HS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE #define __HAL_USB_HS_EXTI_GENERATE_SWIT __HAL_USB_OTG_HS_WAKEUP_EXTI_GENERATE_SWIT #define HAL_PCD_ActiveRemoteWakeup HAL_PCD_ActivateRemoteWakeup #define HAL_PCD_DeActiveRemoteWakeup HAL_PCD_DeActivateRemoteWakeup #define HAL_PCD_SetTxFiFo HAL_PCDEx_SetTxFiFo #define HAL_PCD_SetRxFiFo HAL_PCDEx_SetRxFiFo /** * @} */ /** @defgroup HAL_TIM_Aliased_Macros HAL TIM Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_TIM_SetICPrescalerValue TIM_SET_ICPRESCALERVALUE #define __HAL_TIM_ResetICPrescalerValue TIM_RESET_ICPRESCALERVALUE #define TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE #define TIM_GET_CLEAR_IT __HAL_TIM_CLEAR_IT #define __HAL_TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE #define __HAL_TIM_DIRECTION_STATUS __HAL_TIM_IS_TIM_COUNTING_DOWN #define __HAL_TIM_PRESCALER __HAL_TIM_SET_PRESCALER #define __HAL_TIM_SetCounter __HAL_TIM_SET_COUNTER #define __HAL_TIM_GetCounter __HAL_TIM_GET_COUNTER #define __HAL_TIM_SetAutoreload __HAL_TIM_SET_AUTORELOAD #define __HAL_TIM_GetAutoreload __HAL_TIM_GET_AUTORELOAD #define __HAL_TIM_SetClockDivision __HAL_TIM_SET_CLOCKDIVISION #define __HAL_TIM_GetClockDivision __HAL_TIM_GET_CLOCKDIVISION #define __HAL_TIM_SetICPrescaler __HAL_TIM_SET_ICPRESCALER #define __HAL_TIM_GetICPrescaler __HAL_TIM_GET_ICPRESCALER #define __HAL_TIM_SetCompare __HAL_TIM_SET_COMPARE #define __HAL_TIM_GetCompare __HAL_TIM_GET_COMPARE #define TIM_BREAKINPUTSOURCE_DFSDM TIM_BREAKINPUTSOURCE_DFSDM1 /** * @} */ /** @defgroup HAL_ETH_Aliased_Macros HAL ETH Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_ETH_EXTI_ENABLE_IT __HAL_ETH_WAKEUP_EXTI_ENABLE_IT #define __HAL_ETH_EXTI_DISABLE_IT __HAL_ETH_WAKEUP_EXTI_DISABLE_IT #define __HAL_ETH_EXTI_GET_FLAG __HAL_ETH_WAKEUP_EXTI_GET_FLAG #define __HAL_ETH_EXTI_CLEAR_FLAG __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG #define __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE_TRIGGER #define __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE_TRIGGER #define __HAL_ETH_EXTI_SET_FALLINGRISING_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER #define ETH_PROMISCIOUSMODE_ENABLE ETH_PROMISCUOUS_MODE_ENABLE #define ETH_PROMISCIOUSMODE_DISABLE ETH_PROMISCUOUS_MODE_DISABLE #define IS_ETH_PROMISCIOUS_MODE IS_ETH_PROMISCUOUS_MODE /** * @} */ /** @defgroup HAL_LTDC_Aliased_Macros HAL LTDC Aliased Macros maintained for legacy purpose * @{ */ #define __HAL_LTDC_LAYER LTDC_LAYER #define __HAL_LTDC_RELOAD_CONFIG __HAL_LTDC_RELOAD_IMMEDIATE_CONFIG /** * @} */ /** @defgroup HAL_SAI_Aliased_Macros HAL SAI Aliased Macros maintained for legacy purpose * @{ */ #define SAI_OUTPUTDRIVE_DISABLED SAI_OUTPUTDRIVE_DISABLE #define SAI_OUTPUTDRIVE_ENABLED SAI_OUTPUTDRIVE_ENABLE #define SAI_MASTERDIVIDER_ENABLED SAI_MASTERDIVIDER_ENABLE #define SAI_MASTERDIVIDER_DISABLED SAI_MASTERDIVIDER_DISABLE #define SAI_STREOMODE SAI_STEREOMODE #define SAI_FIFOStatus_Empty SAI_FIFOSTATUS_EMPTY #define SAI_FIFOStatus_Less1QuarterFull SAI_FIFOSTATUS_LESS1QUARTERFULL #define SAI_FIFOStatus_1QuarterFull SAI_FIFOSTATUS_1QUARTERFULL #define SAI_FIFOStatus_HalfFull SAI_FIFOSTATUS_HALFFULL #define SAI_FIFOStatus_3QuartersFull SAI_FIFOSTATUS_3QUARTERFULL #define SAI_FIFOStatus_Full SAI_FIFOSTATUS_FULL #define IS_SAI_BLOCK_MONO_STREO_MODE IS_SAI_BLOCK_MONO_STEREO_MODE #define SAI_SYNCHRONOUS_EXT SAI_SYNCHRONOUS_EXT_SAI1 #define SAI_SYNCEXT_IN_ENABLE SAI_SYNCEXT_OUTBLOCKA_ENABLE /** * @} */ /** @defgroup HAL_SPDIFRX_Aliased_Macros HAL SPDIFRX Aliased Macros maintained for legacy purpose * @{ */ #if defined(STM32H7) #define HAL_SPDIFRX_ReceiveControlFlow HAL_SPDIFRX_ReceiveCtrlFlow #define HAL_SPDIFRX_ReceiveControlFlow_IT HAL_SPDIFRX_ReceiveCtrlFlow_IT #define HAL_SPDIFRX_ReceiveControlFlow_DMA HAL_SPDIFRX_ReceiveCtrlFlow_DMA #endif /** * @} */ /** @defgroup HAL_HRTIM_Aliased_Functions HAL HRTIM Aliased Functions maintained for legacy purpose * @{ */ #if defined (STM32H7) || defined (STM32G4) || defined (STM32F3) #define HAL_HRTIM_WaveformCounterStart_IT HAL_HRTIM_WaveformCountStart_IT #define HAL_HRTIM_WaveformCounterStart_DMA HAL_HRTIM_WaveformCountStart_DMA #define HAL_HRTIM_WaveformCounterStart HAL_HRTIM_WaveformCountStart #define HAL_HRTIM_WaveformCounterStop_IT HAL_HRTIM_WaveformCountStop_IT #define HAL_HRTIM_WaveformCounterStop_DMA HAL_HRTIM_WaveformCountStop_DMA #define HAL_HRTIM_WaveformCounterStop HAL_HRTIM_WaveformCountStop #endif /** * @} */ /** @defgroup HAL_QSPI_Aliased_Macros HAL QSPI Aliased Macros maintained for legacy purpose * @{ */ #if defined (STM32L4) || defined (STM32F4) || defined (STM32F7) || defined(STM32H7) #define HAL_QPSI_TIMEOUT_DEFAULT_VALUE HAL_QSPI_TIMEOUT_DEFAULT_VALUE #endif /* STM32L4 || STM32F4 || STM32F7 */ /** * @} */ /** @defgroup HAL_PPP_Aliased_Macros HAL PPP Aliased Macros maintained for legacy purpose * @{ */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32_HAL_LEGACY */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the HAL * module driver. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_H #define __STM32F4xx_HAL_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_conf.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup HAL * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup HAL_Exported_Constants HAL Exported Constants * @{ */ /** @defgroup HAL_TICK_FREQ Tick Frequency * @{ */ typedef enum { HAL_TICK_FREQ_10HZ = 100U, HAL_TICK_FREQ_100HZ = 10U, HAL_TICK_FREQ_1KHZ = 1U, HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ } HAL_TickFreqTypeDef; /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup HAL_Exported_Macros HAL Exported Macros * @{ */ /** @brief Freeze/Unfreeze Peripherals in Debug mode */ #define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP)) #define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP)) #define __HAL_DBGMCU_FREEZE_TIM4() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM4_STOP)) #define __HAL_DBGMCU_FREEZE_TIM5() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM5_STOP)) #define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM6_STOP)) #define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM7_STOP)) #define __HAL_DBGMCU_FREEZE_TIM12() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM12_STOP)) #define __HAL_DBGMCU_FREEZE_TIM13() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM13_STOP)) #define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM14_STOP)) #define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_RTC_STOP)) #define __HAL_DBGMCU_FREEZE_WWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_WWDG_STOP)) #define __HAL_DBGMCU_FREEZE_IWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_IWDG_STOP)) #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_FREEZE_CAN1() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN1_STOP)) #define __HAL_DBGMCU_FREEZE_CAN2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN2_STOP)) #define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM1_STOP)) #define __HAL_DBGMCU_FREEZE_TIM8() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM8_STOP)) #define __HAL_DBGMCU_FREEZE_TIM9() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM9_STOP)) #define __HAL_DBGMCU_FREEZE_TIM10() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM10_STOP)) #define __HAL_DBGMCU_FREEZE_TIM11() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM11_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM2_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM3() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM3_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM4() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM4_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM5() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM5_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM6() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM6_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM7() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM7_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM12() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM12_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM13() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM13_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM14() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM14_STOP)) #define __HAL_DBGMCU_UNFREEZE_RTC() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_RTC_STOP)) #define __HAL_DBGMCU_UNFREEZE_WWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_WWDG_STOP)) #define __HAL_DBGMCU_UNFREEZE_IWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_IWDG_STOP)) #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) #define __HAL_DBGMCU_UNFREEZE_CAN1() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN1_STOP)) #define __HAL_DBGMCU_UNFREEZE_CAN2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN2_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM1() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM1_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM8() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM8_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM9() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM9_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM10() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM10_STOP)) #define __HAL_DBGMCU_UNFREEZE_TIM11() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM11_STOP)) /** @brief Main Flash memory mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_FLASH() (SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE)) /** @brief System Flash memory mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ SYSCFG->MEMRMP |= SYSCFG_MEMRMP_MEM_MODE_0;\ }while(0); /** @brief Embedded SRAM mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_SRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_0 | SYSCFG_MEMRMP_MEM_MODE_1);\ }while(0); #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) /** @brief FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_FSMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ }while(0); #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) /** @brief FMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_FMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ }while(0); /** @brief FMC/SDRAM Bank 1 and 2 mapped at 0x00000000 */ #define __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_2);\ }while(0); #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup Cortex_Lockup_Enable Cortex Lockup Enable * @{ */ /** @brief SYSCFG Break Lockup lock * Enables and locks the connection of Cortex-M4 LOCKUP (Hardfault) output to TIM1/8 input * @note The selected configuration is locked and can be unlocked by system reset */ #define __HAL_SYSCFG_BREAK_PVD_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_PVD_LOCK); \ SYSCFG->CFGR2 |= SYSCFG_CFGR2_PVD_LOCK; \ }while(0) /** * @} */ /** @defgroup PVD_Lock_Enable PVD Lock * @{ */ /** @brief SYSCFG Break PVD lock * Enables and locks the PVD connection with Timer1/8 Break Input, , as well as the PVDE and PLS[2:0] in the PWR_CR register * @note The selected configuration is locked and can be unlocked by system reset */ #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_LOCKUP_LOCK); \ SYSCFG->CFGR2 |= SYSCFG_CFGR2_LOCKUP_LOCK; \ }while(0) /** * @} */ #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx || STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup HAL_Private_Macros HAL Private Macros * @{ */ #define IS_TICKFREQ(FREQ) (((FREQ) == HAL_TICK_FREQ_10HZ) || \ ((FREQ) == HAL_TICK_FREQ_100HZ) || \ ((FREQ) == HAL_TICK_FREQ_1KHZ)) /** * @} */ /* Exported variables --------------------------------------------------------*/ /** @addtogroup HAL_Exported_Variables * @{ */ extern __IO uint32_t uwTick; extern uint32_t uwTickPrio; extern HAL_TickFreqTypeDef uwTickFreq; /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup HAL_Exported_Functions * @{ */ /** @addtogroup HAL_Exported_Functions_Group1 * @{ */ /* Initialization and Configuration functions ******************************/ HAL_StatusTypeDef HAL_Init(void); HAL_StatusTypeDef HAL_DeInit(void); void HAL_MspInit(void); void HAL_MspDeInit(void); HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); /** * @} */ /** @addtogroup HAL_Exported_Functions_Group2 * @{ */ /* Peripheral Control functions ************************************************/ void HAL_IncTick(void); void HAL_Delay(uint32_t Delay); uint32_t HAL_GetTick(void); uint32_t HAL_GetTickPrio(void); HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq); HAL_TickFreqTypeDef HAL_GetTickFreq(void); void HAL_SuspendTick(void); void HAL_ResumeTick(void); uint32_t HAL_GetHalVersion(void); uint32_t HAL_GetREVID(void); uint32_t HAL_GetDEVID(void); void HAL_DBGMCU_EnableDBGSleepMode(void); void HAL_DBGMCU_DisableDBGSleepMode(void); void HAL_DBGMCU_EnableDBGStopMode(void); void HAL_DBGMCU_DisableDBGStopMode(void); void HAL_DBGMCU_EnableDBGStandbyMode(void); void HAL_DBGMCU_DisableDBGStandbyMode(void); void HAL_EnableCompensationCell(void); void HAL_DisableCompensationCell(void); uint32_t HAL_GetUIDw0(void); uint32_t HAL_GetUIDw1(void); uint32_t HAL_GetUIDw2(void); #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) void HAL_EnableMemorySwappingBank(void); void HAL_DisableMemorySwappingBank(void); #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @defgroup HAL_Private_Variables HAL Private Variables * @{ */ /** * @} */ /* Private constants ---------------------------------------------------------*/ /** @defgroup HAL_Private_Constants HAL Private Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_adc.h * @author MCD Application Team * @brief Header file containing functions prototypes of ADC HAL library. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_ADC_H #define __STM32F4xx_ADC_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /* Include low level driver */ #include "stm32f4xx_ll_adc.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup ADC * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup ADC_Exported_Types ADC Exported Types * @{ */ /** * @brief Structure definition of ADC and regular group initialization * @note Parameters of this structure are shared within 2 scopes: * - Scope entire ADC (affects regular and injected groups): ClockPrescaler, Resolution, ScanConvMode, DataAlign, ScanConvMode, EOCSelection, LowPowerAutoWait, LowPowerAutoPowerOff, ChannelsBank. * - Scope regular group: ContinuousConvMode, NbrOfConversion, DiscontinuousConvMode, NbrOfDiscConversion, ExternalTrigConvEdge, ExternalTrigConv. * @note The setting of these parameters with function HAL_ADC_Init() is conditioned to ADC state. * ADC state can be either: * - For all parameters: ADC disabled * - For all parameters except 'Resolution', 'ScanConvMode', 'DiscontinuousConvMode', 'NbrOfDiscConversion' : ADC enabled without conversion on going on regular group. * - For parameters 'ExternalTrigConv' and 'ExternalTrigConvEdge': ADC enabled, even with conversion on going. * If ADC is not in the appropriate state to modify some parameters, these parameters setting is bypassed * without error reporting (as it can be the expected behaviour in case of intended action to update another parameter (which fulfills the ADC state condition) on the fly). */ typedef struct { uint32_t ClockPrescaler; /*!< Select ADC clock prescaler. The clock is common for all the ADCs. This parameter can be a value of @ref ADC_ClockPrescaler */ uint32_t Resolution; /*!< Configures the ADC resolution. This parameter can be a value of @ref ADC_Resolution */ uint32_t DataAlign; /*!< Specifies ADC data alignment to right (MSB on register bit 11 and LSB on register bit 0) (default setting) or to left (if regular group: MSB on register bit 15 and LSB on register bit 4, if injected group (MSB kept as signed value due to potential negative value after offset application): MSB on register bit 14 and LSB on register bit 3). This parameter can be a value of @ref ADC_Data_align */ uint32_t ScanConvMode; /*!< Configures the sequencer of regular and injected groups. This parameter can be associated to parameter 'DiscontinuousConvMode' to have main sequence subdivided in successive parts. If disabled: Conversion is performed in single mode (one channel converted, the one defined in rank 1). Parameters 'NbrOfConversion' and 'InjectedNbrOfConversion' are discarded (equivalent to set to 1). If enabled: Conversions are performed in sequence mode (multiple ranks defined by 'NbrOfConversion'/'InjectedNbrOfConversion' and each channel rank). Scan direction is upward: from rank1 to rank 'n'. This parameter can be set to ENABLE or DISABLE */ uint32_t EOCSelection; /*!< Specifies what EOC (End Of Conversion) flag is used for conversion by polling and interruption: end of conversion of each rank or complete sequence. This parameter can be a value of @ref ADC_EOCSelection. Note: For injected group, end of conversion (flag&IT) is raised only at the end of the sequence. Therefore, if end of conversion is set to end of each conversion, injected group should not be used with interruption (HAL_ADCEx_InjectedStart_IT) or polling (HAL_ADCEx_InjectedStart and HAL_ADCEx_InjectedPollForConversion). By the way, polling is still possible since driver will use an estimated timing for end of injected conversion. Note: If overrun feature is intended to be used, use ADC in mode 'interruption' (function HAL_ADC_Start_IT() ) with parameter EOCSelection set to end of each conversion or in mode 'transfer by DMA' (function HAL_ADC_Start_DMA()). If overrun feature is intended to be bypassed, use ADC in mode 'polling' or 'interruption' with parameter EOCSelection must be set to end of sequence */ FunctionalState ContinuousConvMode; /*!< Specifies whether the conversion is performed in single mode (one conversion) or continuous mode for regular group, after the selected trigger occurred (software start or external trigger). This parameter can be set to ENABLE or DISABLE. */ uint32_t NbrOfConversion; /*!< Specifies the number of ranks that will be converted within the regular group sequencer. To use regular group sequencer and convert several ranks, parameter 'ScanConvMode' must be enabled. This parameter must be a number between Min_Data = 1 and Max_Data = 16. */ FunctionalState DiscontinuousConvMode; /*!< Specifies whether the conversions sequence of regular group is performed in Complete-sequence/Discontinuous-sequence (main sequence subdivided in successive parts). Discontinuous mode is used only if sequencer is enabled (parameter 'ScanConvMode'). If sequencer is disabled, this parameter is discarded. Discontinuous mode can be enabled only if continuous mode is disabled. If continuous mode is enabled, this parameter setting is discarded. This parameter can be set to ENABLE or DISABLE. */ uint32_t NbrOfDiscConversion; /*!< Specifies the number of discontinuous conversions in which the main sequence of regular group (parameter NbrOfConversion) will be subdivided. If parameter 'DiscontinuousConvMode' is disabled, this parameter is discarded. This parameter must be a number between Min_Data = 1 and Max_Data = 8. */ uint32_t ExternalTrigConv; /*!< Selects the external event used to trigger the conversion start of regular group. If set to ADC_SOFTWARE_START, external triggers are disabled. If set to external trigger source, triggering is on event rising edge by default. This parameter can be a value of @ref ADC_External_trigger_Source_Regular */ uint32_t ExternalTrigConvEdge; /*!< Selects the external trigger edge of regular group. If trigger is set to ADC_SOFTWARE_START, this parameter is discarded. This parameter can be a value of @ref ADC_External_trigger_edge_Regular */ FunctionalState DMAContinuousRequests; /*!< Specifies whether the DMA requests are performed in one shot mode (DMA transfer stop when number of conversions is reached) or in Continuous mode (DMA transfer unlimited, whatever number of conversions). Note: In continuous mode, DMA must be configured in circular mode. Otherwise an overrun will be triggered when DMA buffer maximum pointer is reached. Note: This parameter must be modified when no conversion is on going on both regular and injected groups (ADC disabled, or ADC enabled without continuous mode or external trigger that could launch a conversion). This parameter can be set to ENABLE or DISABLE. */ }ADC_InitTypeDef; /** * @brief Structure definition of ADC channel for regular group * @note The setting of these parameters with function HAL_ADC_ConfigChannel() is conditioned to ADC state. * ADC can be either disabled or enabled without conversion on going on regular group. */ typedef struct { uint32_t Channel; /*!< Specifies the channel to configure into ADC regular group. This parameter can be a value of @ref ADC_channels */ uint32_t Rank; /*!< Specifies the rank in the regular group sequencer. This parameter must be a number between Min_Data = 1 and Max_Data = 16 */ uint32_t SamplingTime; /*!< Sampling time value to be set for the selected channel. Unit: ADC clock cycles Conversion time is the addition of sampling time and processing time (12 ADC clock cycles at ADC resolution 12 bits, 11 cycles at 10 bits, 9 cycles at 8 bits, 7 cycles at 6 bits). This parameter can be a value of @ref ADC_sampling_times Caution: This parameter updates the parameter property of the channel, that can be used into regular and/or injected groups. If this same channel has been previously configured in the other group (regular/injected), it will be updated to last setting. Note: In case of usage of internal measurement channels (VrefInt/Vbat/TempSensor), sampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting) Refer to device datasheet for timings values, parameters TS_vrefint, TS_temp (values rough order: 4us min). */ uint32_t Offset; /*!< Reserved for future use, can be set to 0 */ }ADC_ChannelConfTypeDef; /** * @brief ADC Configuration multi-mode structure definition */ typedef struct { uint32_t WatchdogMode; /*!< Configures the ADC analog watchdog mode. This parameter can be a value of @ref ADC_analog_watchdog_selection */ uint32_t HighThreshold; /*!< Configures the ADC analog watchdog High threshold value. This parameter must be a 12-bit value. */ uint32_t LowThreshold; /*!< Configures the ADC analog watchdog High threshold value. This parameter must be a 12-bit value. */ uint32_t Channel; /*!< Configures ADC channel for the analog watchdog. This parameter has an effect only if watchdog mode is configured on single channel This parameter can be a value of @ref ADC_channels */ FunctionalState ITMode; /*!< Specifies whether the analog watchdog is configured is interrupt mode or in polling mode. This parameter can be set to ENABLE or DISABLE */ uint32_t WatchdogNumber; /*!< Reserved for future use, can be set to 0 */ }ADC_AnalogWDGConfTypeDef; /** * @brief HAL ADC state machine: ADC states definition (bitfields) */ /* States of ADC global scope */ #define HAL_ADC_STATE_RESET 0x00000000U /*!< ADC not yet initialized or disabled */ #define HAL_ADC_STATE_READY 0x00000001U /*!< ADC peripheral ready for use */ #define HAL_ADC_STATE_BUSY_INTERNAL 0x00000002U /*!< ADC is busy to internal process (initialization, calibration) */ #define HAL_ADC_STATE_TIMEOUT 0x00000004U /*!< TimeOut occurrence */ /* States of ADC errors */ #define HAL_ADC_STATE_ERROR_INTERNAL 0x00000010U /*!< Internal error occurrence */ #define HAL_ADC_STATE_ERROR_CONFIG 0x00000020U /*!< Configuration error occurrence */ #define HAL_ADC_STATE_ERROR_DMA 0x00000040U /*!< DMA error occurrence */ /* States of ADC group regular */ #define HAL_ADC_STATE_REG_BUSY 0x00000100U /*!< A conversion on group regular is ongoing or can occur (either by continuous mode, external trigger, low power auto power-on (if feature available), multimode ADC master control (if feature available)) */ #define HAL_ADC_STATE_REG_EOC 0x00000200U /*!< Conversion data available on group regular */ #define HAL_ADC_STATE_REG_OVR 0x00000400U /*!< Overrun occurrence */ /* States of ADC group injected */ #define HAL_ADC_STATE_INJ_BUSY 0x00001000U /*!< A conversion on group injected is ongoing or can occur (either by auto-injection mode, external trigger, low power auto power-on (if feature available), multimode ADC master control (if feature available)) */ #define HAL_ADC_STATE_INJ_EOC 0x00002000U /*!< Conversion data available on group injected */ /* States of ADC analog watchdogs */ #define HAL_ADC_STATE_AWD1 0x00010000U /*!< Out-of-window occurrence of analog watchdog 1 */ #define HAL_ADC_STATE_AWD2 0x00020000U /*!< Not available on STM32F4 device: Out-of-window occurrence of analog watchdog 2 */ #define HAL_ADC_STATE_AWD3 0x00040000U /*!< Not available on STM32F4 device: Out-of-window occurrence of analog watchdog 3 */ /* States of ADC multi-mode */ #define HAL_ADC_STATE_MULTIMODE_SLAVE 0x00100000U /*!< Not available on STM32F4 device: ADC in multimode slave state, controlled by another ADC master ( */ /** * @brief ADC handle Structure definition */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) typedef struct __ADC_HandleTypeDef #else typedef struct #endif { ADC_TypeDef *Instance; /*!< Register base address */ ADC_InitTypeDef Init; /*!< ADC required parameters */ __IO uint32_t NbrOfCurrentConversionRank; /*!< ADC number of current conversion rank */ DMA_HandleTypeDef *DMA_Handle; /*!< Pointer DMA Handler */ HAL_LockTypeDef Lock; /*!< ADC locking object */ __IO uint32_t State; /*!< ADC communication state */ __IO uint32_t ErrorCode; /*!< ADC Error code */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) void (* ConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion complete callback */ void (* ConvHalfCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion DMA half-transfer callback */ void (* LevelOutOfWindowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog 1 callback */ void (* ErrorCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC error callback */ void (* InjectedConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected conversion complete callback */ void (* MspInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp Init callback */ void (* MspDeInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp DeInit callback */ #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ }ADC_HandleTypeDef; #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) /** * @brief HAL ADC Callback ID enumeration definition */ typedef enum { HAL_ADC_CONVERSION_COMPLETE_CB_ID = 0x00U, /*!< ADC conversion complete callback ID */ HAL_ADC_CONVERSION_HALF_CB_ID = 0x01U, /*!< ADC conversion DMA half-transfer callback ID */ HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID = 0x02U, /*!< ADC analog watchdog 1 callback ID */ HAL_ADC_ERROR_CB_ID = 0x03U, /*!< ADC error callback ID */ HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID = 0x04U, /*!< ADC group injected conversion complete callback ID */ HAL_ADC_MSPINIT_CB_ID = 0x05U, /*!< ADC Msp Init callback ID */ HAL_ADC_MSPDEINIT_CB_ID = 0x06U /*!< ADC Msp DeInit callback ID */ } HAL_ADC_CallbackIDTypeDef; /** * @brief HAL ADC Callback pointer definition */ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to a ADC callback function */ #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup ADC_Exported_Constants ADC Exported Constants * @{ */ /** @defgroup ADC_Error_Code ADC Error Code * @{ */ #define HAL_ADC_ERROR_NONE 0x00U /*!< No error */ #define HAL_ADC_ERROR_INTERNAL 0x01U /*!< ADC IP internal error: if problem of clocking, enable/disable, erroneous state */ #define HAL_ADC_ERROR_OVR 0x02U /*!< Overrun error */ #define HAL_ADC_ERROR_DMA 0x04U /*!< DMA transfer error */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) #define HAL_ADC_ERROR_INVALID_CALLBACK (0x10U) /*!< Invalid Callback error */ #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup ADC_ClockPrescaler ADC Clock Prescaler * @{ */ #define ADC_CLOCK_SYNC_PCLK_DIV2 0x00000000U #define ADC_CLOCK_SYNC_PCLK_DIV4 ((uint32_t)ADC_CCR_ADCPRE_0) #define ADC_CLOCK_SYNC_PCLK_DIV6 ((uint32_t)ADC_CCR_ADCPRE_1) #define ADC_CLOCK_SYNC_PCLK_DIV8 ((uint32_t)ADC_CCR_ADCPRE) /** * @} */ /** @defgroup ADC_delay_between_2_sampling_phases ADC Delay Between 2 Sampling Phases * @{ */ #define ADC_TWOSAMPLINGDELAY_5CYCLES 0x00000000U #define ADC_TWOSAMPLINGDELAY_6CYCLES ((uint32_t)ADC_CCR_DELAY_0) #define ADC_TWOSAMPLINGDELAY_7CYCLES ((uint32_t)ADC_CCR_DELAY_1) #define ADC_TWOSAMPLINGDELAY_8CYCLES ((uint32_t)(ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_9CYCLES ((uint32_t)ADC_CCR_DELAY_2) #define ADC_TWOSAMPLINGDELAY_10CYCLES ((uint32_t)(ADC_CCR_DELAY_2 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_11CYCLES ((uint32_t)(ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1)) #define ADC_TWOSAMPLINGDELAY_12CYCLES ((uint32_t)(ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_13CYCLES ((uint32_t)ADC_CCR_DELAY_3) #define ADC_TWOSAMPLINGDELAY_14CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_15CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1)) #define ADC_TWOSAMPLINGDELAY_16CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_17CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2)) #define ADC_TWOSAMPLINGDELAY_18CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 | ADC_CCR_DELAY_0)) #define ADC_TWOSAMPLINGDELAY_19CYCLES ((uint32_t)(ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1)) #define ADC_TWOSAMPLINGDELAY_20CYCLES ((uint32_t)ADC_CCR_DELAY) /** * @} */ /** @defgroup ADC_Resolution ADC Resolution * @{ */ #define ADC_RESOLUTION_12B 0x00000000U #define ADC_RESOLUTION_10B ((uint32_t)ADC_CR1_RES_0) #define ADC_RESOLUTION_8B ((uint32_t)ADC_CR1_RES_1) #define ADC_RESOLUTION_6B ((uint32_t)ADC_CR1_RES) /** * @} */ /** @defgroup ADC_External_trigger_edge_Regular ADC External Trigger Edge Regular * @{ */ #define ADC_EXTERNALTRIGCONVEDGE_NONE 0x00000000U #define ADC_EXTERNALTRIGCONVEDGE_RISING ((uint32_t)ADC_CR2_EXTEN_0) #define ADC_EXTERNALTRIGCONVEDGE_FALLING ((uint32_t)ADC_CR2_EXTEN_1) #define ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING ((uint32_t)ADC_CR2_EXTEN) /** * @} */ /** @defgroup ADC_External_trigger_Source_Regular ADC External Trigger Source Regular * @{ */ /* Note: Parameter ADC_SOFTWARE_START is a software parameter used for */ /* compatibility with other STM32 devices. */ #define ADC_EXTERNALTRIGCONV_T1_CC1 0x00000000U #define ADC_EXTERNALTRIGCONV_T1_CC2 ((uint32_t)ADC_CR2_EXTSEL_0) #define ADC_EXTERNALTRIGCONV_T1_CC3 ((uint32_t)ADC_CR2_EXTSEL_1) #define ADC_EXTERNALTRIGCONV_T2_CC2 ((uint32_t)(ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T2_CC3 ((uint32_t)ADC_CR2_EXTSEL_2) #define ADC_EXTERNALTRIGCONV_T2_CC4 ((uint32_t)(ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T2_TRGO ((uint32_t)(ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1)) #define ADC_EXTERNALTRIGCONV_T3_CC1 ((uint32_t)(ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T3_TRGO ((uint32_t)ADC_CR2_EXTSEL_3) #define ADC_EXTERNALTRIGCONV_T4_CC4 ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T5_CC1 ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_1)) #define ADC_EXTERNALTRIGCONV_T5_CC2 ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T5_CC3 ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2)) #define ADC_EXTERNALTRIGCONV_T8_CC1 ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_0)) #define ADC_EXTERNALTRIGCONV_T8_TRGO ((uint32_t)(ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1)) #define ADC_EXTERNALTRIGCONV_Ext_IT11 ((uint32_t)ADC_CR2_EXTSEL) #define ADC_SOFTWARE_START ((uint32_t)ADC_CR2_EXTSEL + 1U) /** * @} */ /** @defgroup ADC_Data_align ADC Data Align * @{ */ #define ADC_DATAALIGN_RIGHT 0x00000000U #define ADC_DATAALIGN_LEFT ((uint32_t)ADC_CR2_ALIGN) /** * @} */ /** @defgroup ADC_channels ADC Common Channels * @{ */ #define ADC_CHANNEL_0 0x00000000U #define ADC_CHANNEL_1 ((uint32_t)ADC_CR1_AWDCH_0) #define ADC_CHANNEL_2 ((uint32_t)ADC_CR1_AWDCH_1) #define ADC_CHANNEL_3 ((uint32_t)(ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_4 ((uint32_t)ADC_CR1_AWDCH_2) #define ADC_CHANNEL_5 ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_6 ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1)) #define ADC_CHANNEL_7 ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_8 ((uint32_t)ADC_CR1_AWDCH_3) #define ADC_CHANNEL_9 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_10 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1)) #define ADC_CHANNEL_11 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_12 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2)) #define ADC_CHANNEL_13 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_14 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1)) #define ADC_CHANNEL_15 ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_16 ((uint32_t)ADC_CR1_AWDCH_4) #define ADC_CHANNEL_17 ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_0)) #define ADC_CHANNEL_18 ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_1)) #define ADC_CHANNEL_VREFINT ((uint32_t)ADC_CHANNEL_17) #define ADC_CHANNEL_VBAT ((uint32_t)ADC_CHANNEL_18) /** * @} */ /** @defgroup ADC_sampling_times ADC Sampling Times * @{ */ #define ADC_SAMPLETIME_3CYCLES 0x00000000U #define ADC_SAMPLETIME_15CYCLES ((uint32_t)ADC_SMPR1_SMP10_0) #define ADC_SAMPLETIME_28CYCLES ((uint32_t)ADC_SMPR1_SMP10_1) #define ADC_SAMPLETIME_56CYCLES ((uint32_t)(ADC_SMPR1_SMP10_1 | ADC_SMPR1_SMP10_0)) #define ADC_SAMPLETIME_84CYCLES ((uint32_t)ADC_SMPR1_SMP10_2) #define ADC_SAMPLETIME_112CYCLES ((uint32_t)(ADC_SMPR1_SMP10_2 | ADC_SMPR1_SMP10_0)) #define ADC_SAMPLETIME_144CYCLES ((uint32_t)(ADC_SMPR1_SMP10_2 | ADC_SMPR1_SMP10_1)) #define ADC_SAMPLETIME_480CYCLES ((uint32_t)ADC_SMPR1_SMP10) /** * @} */ /** @defgroup ADC_EOCSelection ADC EOC Selection * @{ */ #define ADC_EOC_SEQ_CONV 0x00000000U #define ADC_EOC_SINGLE_CONV 0x00000001U #define ADC_EOC_SINGLE_SEQ_CONV 0x00000002U /*!< reserved for future use */ /** * @} */ /** @defgroup ADC_Event_type ADC Event Type * @{ */ #define ADC_AWD_EVENT ((uint32_t)ADC_FLAG_AWD) #define ADC_OVR_EVENT ((uint32_t)ADC_FLAG_OVR) /** * @} */ /** @defgroup ADC_analog_watchdog_selection ADC Analog Watchdog Selection * @{ */ #define ADC_ANALOGWATCHDOG_SINGLE_REG ((uint32_t)(ADC_CR1_AWDSGL | ADC_CR1_AWDEN)) #define ADC_ANALOGWATCHDOG_SINGLE_INJEC ((uint32_t)(ADC_CR1_AWDSGL | ADC_CR1_JAWDEN)) #define ADC_ANALOGWATCHDOG_SINGLE_REGINJEC ((uint32_t)(ADC_CR1_AWDSGL | ADC_CR1_AWDEN | ADC_CR1_JAWDEN)) #define ADC_ANALOGWATCHDOG_ALL_REG ((uint32_t)ADC_CR1_AWDEN) #define ADC_ANALOGWATCHDOG_ALL_INJEC ((uint32_t)ADC_CR1_JAWDEN) #define ADC_ANALOGWATCHDOG_ALL_REGINJEC ((uint32_t)(ADC_CR1_AWDEN | ADC_CR1_JAWDEN)) #define ADC_ANALOGWATCHDOG_NONE 0x00000000U /** * @} */ /** @defgroup ADC_interrupts_definition ADC Interrupts Definition * @{ */ #define ADC_IT_EOC ((uint32_t)ADC_CR1_EOCIE) #define ADC_IT_AWD ((uint32_t)ADC_CR1_AWDIE) #define ADC_IT_JEOC ((uint32_t)ADC_CR1_JEOCIE) #define ADC_IT_OVR ((uint32_t)ADC_CR1_OVRIE) /** * @} */ /** @defgroup ADC_flags_definition ADC Flags Definition * @{ */ #define ADC_FLAG_AWD ((uint32_t)ADC_SR_AWD) #define ADC_FLAG_EOC ((uint32_t)ADC_SR_EOC) #define ADC_FLAG_JEOC ((uint32_t)ADC_SR_JEOC) #define ADC_FLAG_JSTRT ((uint32_t)ADC_SR_JSTRT) #define ADC_FLAG_STRT ((uint32_t)ADC_SR_STRT) #define ADC_FLAG_OVR ((uint32_t)ADC_SR_OVR) /** * @} */ /** @defgroup ADC_channels_type ADC Channels Type * @{ */ #define ADC_ALL_CHANNELS 0x00000001U #define ADC_REGULAR_CHANNELS 0x00000002U /*!< reserved for future use */ #define ADC_INJECTED_CHANNELS 0x00000003U /*!< reserved for future use */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup ADC_Exported_Macros ADC Exported Macros * @{ */ /** @brief Reset ADC handle state * @param __HANDLE__ ADC handle * @retval None */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) #define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__) \ do{ \ (__HANDLE__)->State = HAL_ADC_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0) #else #define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__) \ ((__HANDLE__)->State = HAL_ADC_STATE_RESET) #endif /** * @brief Enable the ADC peripheral. * @param __HANDLE__ ADC handle * @retval None */ #define __HAL_ADC_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR2 |= ADC_CR2_ADON) /** * @brief Disable the ADC peripheral. * @param __HANDLE__ ADC handle * @retval None */ #define __HAL_ADC_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR2 &= ~ADC_CR2_ADON) /** * @brief Enable the ADC end of conversion interrupt. * @param __HANDLE__ specifies the ADC Handle. * @param __INTERRUPT__ ADC Interrupt. * @retval None */ #define __HAL_ADC_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR1) |= (__INTERRUPT__)) /** * @brief Disable the ADC end of conversion interrupt. * @param __HANDLE__ specifies the ADC Handle. * @param __INTERRUPT__ ADC interrupt. * @retval None */ #define __HAL_ADC_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR1) &= ~(__INTERRUPT__)) /** @brief Check if the specified ADC interrupt source is enabled or disabled. * @param __HANDLE__ specifies the ADC Handle. * @param __INTERRUPT__ specifies the ADC interrupt source to check. * @retval The new state of __IT__ (TRUE or FALSE). */ #define __HAL_ADC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) /** * @brief Clear the ADC's pending flags. * @param __HANDLE__ specifies the ADC Handle. * @param __FLAG__ ADC flag. * @retval None */ #define __HAL_ADC_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) /** * @brief Get the selected ADC's flag status. * @param __HANDLE__ specifies the ADC Handle. * @param __FLAG__ ADC flag. * @retval None */ #define __HAL_ADC_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) /** * @} */ /* Include ADC HAL Extension module */ #include "stm32f4xx_hal_adc_ex.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup ADC_Exported_Functions * @{ */ /** @addtogroup ADC_Exported_Functions_Group1 * @{ */ /* Initialization/de-initialization functions ***********************************/ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc); void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc); void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc); #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) /* Callbacks Register/UnRegister functions ***********************************/ HAL_StatusTypeDef HAL_ADC_RegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID, pADC_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_ADC_UnRegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /** * @} */ /** @addtogroup ADC_Exported_Functions_Group2 * @{ */ /* I/O operation functions ******************************************************/ HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout); HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t Timeout); HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc); void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length); HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc); uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef* hadc); void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc); void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc); void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc); void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc); /** * @} */ /** @addtogroup ADC_Exported_Functions_Group3 * @{ */ /* Peripheral Control functions *************************************************/ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig); HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef* hadc, ADC_AnalogWDGConfTypeDef* AnalogWDGConfig); /** * @} */ /** @addtogroup ADC_Exported_Functions_Group4 * @{ */ /* Peripheral State functions ***************************************************/ uint32_t HAL_ADC_GetState(ADC_HandleTypeDef* hadc); uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup ADC_Private_Constants ADC Private Constants * @{ */ /* Delay for ADC stabilization time. */ /* Maximum delay is 1us (refer to device datasheet, parameter tSTAB). */ /* Unit: us */ #define ADC_STAB_DELAY_US 3U /* Delay for temperature sensor stabilization time. */ /* Maximum delay is 10us (refer to device datasheet, parameter tSTART). */ /* Unit: us */ #define ADC_TEMPSENSOR_DELAY_US 10U /** * @} */ /* Private macro ------------------------------------------------------------*/ /** @defgroup ADC_Private_Macros ADC Private Macros * @{ */ /* Macro reserved for internal HAL driver usage, not intended to be used in code of final user */ /** * @brief Verification of ADC state: enabled or disabled * @param __HANDLE__ ADC handle * @retval SET (ADC enabled) or RESET (ADC disabled) */ #define ADC_IS_ENABLE(__HANDLE__) \ ((( ((__HANDLE__)->Instance->SR & ADC_SR_ADONS) == ADC_SR_ADONS ) \ ) ? SET : RESET) /** * @brief Test if conversion trigger of regular group is software start * or external trigger. * @param __HANDLE__ ADC handle * @retval SET (software start) or RESET (external trigger) */ #define ADC_IS_SOFTWARE_START_REGULAR(__HANDLE__) \ (((__HANDLE__)->Instance->CR2 & ADC_CR2_EXTEN) == RESET) /** * @brief Test if conversion trigger of injected group is software start * or external trigger. * @param __HANDLE__ ADC handle * @retval SET (software start) or RESET (external trigger) */ #define ADC_IS_SOFTWARE_START_INJECTED(__HANDLE__) \ (((__HANDLE__)->Instance->CR2 & ADC_CR2_JEXTEN) == RESET) /** * @brief Simultaneously clears and sets specific bits of the handle State * @note: ADC_STATE_CLR_SET() macro is merely aliased to generic macro MODIFY_REG(), * the first parameter is the ADC handle State, the second parameter is the * bit field to clear, the third and last parameter is the bit field to set. * @retval None */ #define ADC_STATE_CLR_SET MODIFY_REG /** * @brief Clear ADC error code (set it to error code: "no error") * @param __HANDLE__ ADC handle * @retval None */ #define ADC_CLEAR_ERRORCODE(__HANDLE__) \ ((__HANDLE__)->ErrorCode = HAL_ADC_ERROR_NONE) #define IS_ADC_CLOCKPRESCALER(ADC_CLOCK) (((ADC_CLOCK) == ADC_CLOCK_SYNC_PCLK_DIV2) || \ ((ADC_CLOCK) == ADC_CLOCK_SYNC_PCLK_DIV4) || \ ((ADC_CLOCK) == ADC_CLOCK_SYNC_PCLK_DIV6) || \ ((ADC_CLOCK) == ADC_CLOCK_SYNC_PCLK_DIV8)) #define IS_ADC_SAMPLING_DELAY(DELAY) (((DELAY) == ADC_TWOSAMPLINGDELAY_5CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_6CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_7CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_8CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_9CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_10CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_11CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_12CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_13CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_14CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_15CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_16CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_17CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_18CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_19CYCLES) || \ ((DELAY) == ADC_TWOSAMPLINGDELAY_20CYCLES)) #define IS_ADC_RESOLUTION(RESOLUTION) (((RESOLUTION) == ADC_RESOLUTION_12B) || \ ((RESOLUTION) == ADC_RESOLUTION_10B) || \ ((RESOLUTION) == ADC_RESOLUTION_8B) || \ ((RESOLUTION) == ADC_RESOLUTION_6B)) #define IS_ADC_EXT_TRIG_EDGE(EDGE) (((EDGE) == ADC_EXTERNALTRIGCONVEDGE_NONE) || \ ((EDGE) == ADC_EXTERNALTRIGCONVEDGE_RISING) || \ ((EDGE) == ADC_EXTERNALTRIGCONVEDGE_FALLING) || \ ((EDGE) == ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING)) #define IS_ADC_EXT_TRIG(REGTRIG) (((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC1) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC2) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC3) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_CC2) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_CC3) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_CC4) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_TRGO) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_CC1) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_TRGO) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T4_CC4) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T5_CC1) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T5_CC2) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T5_CC3) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T8_CC1) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_T8_TRGO) || \ ((REGTRIG) == ADC_EXTERNALTRIGCONV_Ext_IT11)|| \ ((REGTRIG) == ADC_SOFTWARE_START)) #define IS_ADC_DATA_ALIGN(ALIGN) (((ALIGN) == ADC_DATAALIGN_RIGHT) || \ ((ALIGN) == ADC_DATAALIGN_LEFT)) #define IS_ADC_SAMPLE_TIME(TIME) (((TIME) == ADC_SAMPLETIME_3CYCLES) || \ ((TIME) == ADC_SAMPLETIME_15CYCLES) || \ ((TIME) == ADC_SAMPLETIME_28CYCLES) || \ ((TIME) == ADC_SAMPLETIME_56CYCLES) || \ ((TIME) == ADC_SAMPLETIME_84CYCLES) || \ ((TIME) == ADC_SAMPLETIME_112CYCLES) || \ ((TIME) == ADC_SAMPLETIME_144CYCLES) || \ ((TIME) == ADC_SAMPLETIME_480CYCLES)) #define IS_ADC_EOCSelection(EOCSelection) (((EOCSelection) == ADC_EOC_SINGLE_CONV) || \ ((EOCSelection) == ADC_EOC_SEQ_CONV) || \ ((EOCSelection) == ADC_EOC_SINGLE_SEQ_CONV)) #define IS_ADC_EVENT_TYPE(EVENT) (((EVENT) == ADC_AWD_EVENT) || \ ((EVENT) == ADC_OVR_EVENT)) #define IS_ADC_ANALOG_WATCHDOG(WATCHDOG) (((WATCHDOG) == ADC_ANALOGWATCHDOG_SINGLE_REG) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_SINGLE_REGINJEC) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_ALL_REG) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_ALL_INJEC) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_ALL_REGINJEC) || \ ((WATCHDOG) == ADC_ANALOGWATCHDOG_NONE)) #define IS_ADC_CHANNELS_TYPE(CHANNEL_TYPE) (((CHANNEL_TYPE) == ADC_ALL_CHANNELS) || \ ((CHANNEL_TYPE) == ADC_REGULAR_CHANNELS) || \ ((CHANNEL_TYPE) == ADC_INJECTED_CHANNELS)) #define IS_ADC_THRESHOLD(THRESHOLD) ((THRESHOLD) <= 0xFFFU) #define IS_ADC_REGULAR_LENGTH(LENGTH) (((LENGTH) >= 1U) && ((LENGTH) <= 16U)) #define IS_ADC_REGULAR_RANK(RANK) (((RANK) >= 1U) && ((RANK) <= (16U))) #define IS_ADC_REGULAR_DISC_NUMBER(NUMBER) (((NUMBER) >= 1U) && ((NUMBER) <= 8U)) #define IS_ADC_RANGE(RESOLUTION, ADC_VALUE) \ ((((RESOLUTION) == ADC_RESOLUTION_12B) && ((ADC_VALUE) <= 0x0FFFU)) || \ (((RESOLUTION) == ADC_RESOLUTION_10B) && ((ADC_VALUE) <= 0x03FFU)) || \ (((RESOLUTION) == ADC_RESOLUTION_8B) && ((ADC_VALUE) <= 0x00FFU)) || \ (((RESOLUTION) == ADC_RESOLUTION_6B) && ((ADC_VALUE) <= 0x003FU))) /** * @brief Set ADC Regular channel sequence length. * @param _NbrOfConversion_ Regular channel sequence length. * @retval None */ #define ADC_SQR1(_NbrOfConversion_) (((_NbrOfConversion_) - (uint8_t)1U) << 20U) /** * @brief Set the ADC's sample time for channel numbers between 10 and 18. * @param _SAMPLETIME_ Sample time parameter. * @param _CHANNELNB_ Channel number. * @retval None */ #define ADC_SMPR1(_SAMPLETIME_, _CHANNELNB_) ((_SAMPLETIME_) << (3U * (((uint32_t)((uint16_t)(_CHANNELNB_))) - 10U))) /** * @brief Set the ADC's sample time for channel numbers between 0 and 9. * @param _SAMPLETIME_ Sample time parameter. * @param _CHANNELNB_ Channel number. * @retval None */ #define ADC_SMPR2(_SAMPLETIME_, _CHANNELNB_) ((_SAMPLETIME_) << (3U * ((uint32_t)((uint16_t)(_CHANNELNB_))))) /** * @brief Set the selected regular channel rank for rank between 1 and 6. * @param _CHANNELNB_ Channel number. * @param _RANKNB_ Rank number. * @retval None */ #define ADC_SQR3_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * ((_RANKNB_) - 1U))) /** * @brief Set the selected regular channel rank for rank between 7 and 12. * @param _CHANNELNB_ Channel number. * @param _RANKNB_ Rank number. * @retval None */ #define ADC_SQR2_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * ((_RANKNB_) - 7U))) /** * @brief Set the selected regular channel rank for rank between 13 and 16. * @param _CHANNELNB_ Channel number. * @param _RANKNB_ Rank number. * @retval None */ #define ADC_SQR1_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * ((_RANKNB_) - 13U))) /** * @brief Enable ADC continuous conversion mode. * @param _CONTINUOUS_MODE_ Continuous mode. * @retval None */ #define ADC_CR2_CONTINUOUS(_CONTINUOUS_MODE_) ((_CONTINUOUS_MODE_) << 1U) /** * @brief Configures the number of discontinuous conversions for the regular group channels. * @param _NBR_DISCONTINUOUSCONV_ Number of discontinuous conversions. * @retval None */ #define ADC_CR1_DISCONTINUOUS(_NBR_DISCONTINUOUSCONV_) (((_NBR_DISCONTINUOUSCONV_) - 1U) << ADC_CR1_DISCNUM_Pos) /** * @brief Enable ADC scan mode. * @param _SCANCONV_MODE_ Scan conversion mode. * @retval None */ #define ADC_CR1_SCANCONV(_SCANCONV_MODE_) ((_SCANCONV_MODE_) << 8U) /** * @brief Enable the ADC end of conversion selection. * @param _EOCSelection_MODE_ End of conversion selection mode. * @retval None */ #define ADC_CR2_EOCSelection(_EOCSelection_MODE_) ((_EOCSelection_MODE_) << 10U) /** * @brief Enable the ADC DMA continuous request. * @param _DMAContReq_MODE_ DMA continuous request mode. * @retval None */ #define ADC_CR2_DMAContReq(_DMAContReq_MODE_) ((_DMAContReq_MODE_) << 9U) /** * @brief Return resolution bits in CR1 register. * @param __HANDLE__ ADC handle * @retval None */ #define ADC_GET_RESOLUTION(__HANDLE__) (((__HANDLE__)->Instance->CR1) & ADC_CR1_RES) /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup ADC_Private_Functions ADC Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /*__STM32F4xx_ADC_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_adc_ex.h * @author MCD Application Team * @brief Header file of ADC HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_ADC_EX_H #define __STM32F4xx_ADC_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup ADCEx * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup ADCEx_Exported_Types ADC Exported Types * @{ */ /** * @brief ADC Configuration injected Channel structure definition * @note Parameters of this structure are shared within 2 scopes: * - Scope channel: InjectedChannel, InjectedRank, InjectedSamplingTime, InjectedOffset * - Scope injected group (affects all channels of injected group): InjectedNbrOfConversion, InjectedDiscontinuousConvMode, * AutoInjectedConv, ExternalTrigInjecConvEdge, ExternalTrigInjecConv. * @note The setting of these parameters with function HAL_ADCEx_InjectedConfigChannel() is conditioned to ADC state. * ADC state can be either: * - For all parameters: ADC disabled * - For all except parameters 'InjectedDiscontinuousConvMode' and 'AutoInjectedConv': ADC enabled without conversion on going on injected group. * - For parameters 'ExternalTrigInjecConv' and 'ExternalTrigInjecConvEdge': ADC enabled, even with conversion on going on injected group. */ typedef struct { uint32_t InjectedChannel; /*!< Selection of ADC channel to configure This parameter can be a value of @ref ADC_channels Note: Depending on devices, some channels may not be available on package pins. Refer to device datasheet for channels availability. */ uint32_t InjectedRank; /*!< Rank in the injected group sequencer This parameter must be a value of @ref ADCEx_injected_rank Note: In case of need to disable a channel or change order of conversion sequencer, rank containing a previous channel setting can be overwritten by the new channel setting (or parameter number of conversions can be adjusted) */ uint32_t InjectedSamplingTime; /*!< Sampling time value to be set for the selected channel. Unit: ADC clock cycles Conversion time is the addition of sampling time and processing time (12 ADC clock cycles at ADC resolution 12 bits, 11 cycles at 10 bits, 9 cycles at 8 bits, 7 cycles at 6 bits). This parameter can be a value of @ref ADC_sampling_times Caution: This parameter updates the parameter property of the channel, that can be used into regular and/or injected groups. If this same channel has been previously configured in the other group (regular/injected), it will be updated to last setting. Note: In case of usage of internal measurement channels (VrefInt/Vbat/TempSensor), sampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting) Refer to device datasheet for timings values, parameters TS_vrefint, TS_temp (values rough order: 4us min). */ uint32_t InjectedOffset; /*!< Defines the offset to be subtracted from the raw converted data (for channels set on injected group only). Offset value must be a positive number. Depending of ADC resolution selected (12, 10, 8 or 6 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF, 0x3FF, 0xFF or 0x3F respectively. */ uint32_t InjectedNbrOfConversion; /*!< Specifies the number of ranks that will be converted within the injected group sequencer. To use the injected group sequencer and convert several ranks, parameter 'ScanConvMode' must be enabled. This parameter must be a number between Min_Data = 1 and Max_Data = 4. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. */ FunctionalState InjectedDiscontinuousConvMode; /*!< Specifies whether the conversions sequence of injected group is performed in Complete-sequence/Discontinuous-sequence (main sequence subdivided in successive parts). Discontinuous mode is used only if sequencer is enabled (parameter 'ScanConvMode'). If sequencer is disabled, this parameter is discarded. Discontinuous mode can be enabled only if continuous mode is disabled. If continuous mode is enabled, this parameter setting is discarded. This parameter can be set to ENABLE or DISABLE. Note: For injected group, number of discontinuous ranks increment is fixed to one-by-one. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. */ FunctionalState AutoInjectedConv; /*!< Enables or disables the selected ADC automatic injected group conversion after regular one This parameter can be set to ENABLE or DISABLE. Note: To use Automatic injected conversion, discontinuous mode must be disabled ('DiscontinuousConvMode' and 'InjectedDiscontinuousConvMode' set to DISABLE) Note: To use Automatic injected conversion, injected group external triggers must be disabled ('ExternalTrigInjecConv' set to ADC_SOFTWARE_START) Note: In case of DMA used with regular group: if DMA configured in normal mode (single shot) JAUTO will be stopped upon DMA transfer complete. To maintain JAUTO always enabled, DMA must be configured in circular mode. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. */ uint32_t ExternalTrigInjecConv; /*!< Selects the external event used to trigger the conversion start of injected group. If set to ADC_INJECTED_SOFTWARE_START, external triggers are disabled. If set to external trigger source, triggering is on event rising edge. This parameter can be a value of @ref ADCEx_External_trigger_Source_Injected Note: This parameter must be modified when ADC is disabled (before ADC start conversion or after ADC stop conversion). If ADC is enabled, this parameter setting is bypassed without error reporting (as it can be the expected behaviour in case of another parameter update on the fly) Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. */ uint32_t ExternalTrigInjecConvEdge; /*!< Selects the external trigger edge of injected group. This parameter can be a value of @ref ADCEx_External_trigger_edge_Injected. If trigger is set to ADC_INJECTED_SOFTWARE_START, this parameter is discarded. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. */ }ADC_InjectionConfTypeDef; /** * @brief ADC Configuration multi-mode structure definition */ typedef struct { uint32_t Mode; /*!< Configures the ADC to operate in independent or multi mode. This parameter can be a value of @ref ADCEx_Common_mode */ uint32_t DMAAccessMode; /*!< Configures the Direct memory access mode for multi ADC mode. This parameter can be a value of @ref ADCEx_Direct_memory_access_mode_for_multi_mode */ uint32_t TwoSamplingDelay; /*!< Configures the Delay between 2 sampling phases. This parameter can be a value of @ref ADC_delay_between_2_sampling_phases */ }ADC_MultiModeTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup ADCEx_Exported_Constants ADC Exported Constants * @{ */ /** @defgroup ADCEx_Common_mode ADC Common Mode * @{ */ #define ADC_MODE_INDEPENDENT 0x00000000U #define ADC_DUALMODE_REGSIMULT_INJECSIMULT ((uint32_t)ADC_CCR_MULTI_0) #define ADC_DUALMODE_REGSIMULT_ALTERTRIG ((uint32_t)ADC_CCR_MULTI_1) #define ADC_DUALMODE_INJECSIMULT ((uint32_t)(ADC_CCR_MULTI_2 | ADC_CCR_MULTI_0)) #define ADC_DUALMODE_REGSIMULT ((uint32_t)(ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1)) #define ADC_DUALMODE_INTERL ((uint32_t)(ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 | ADC_CCR_MULTI_0)) #define ADC_DUALMODE_ALTERTRIG ((uint32_t)(ADC_CCR_MULTI_3 | ADC_CCR_MULTI_0)) #define ADC_TRIPLEMODE_REGSIMULT_INJECSIMULT ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_0)) #define ADC_TRIPLEMODE_REGSIMULT_AlterTrig ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_1)) #define ADC_TRIPLEMODE_INJECSIMULT ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_0)) #define ADC_TRIPLEMODE_REGSIMULT ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1)) #define ADC_TRIPLEMODE_INTERL ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 | ADC_CCR_MULTI_0)) #define ADC_TRIPLEMODE_ALTERTRIG ((uint32_t)(ADC_CCR_MULTI_4 | ADC_CCR_MULTI_3 | ADC_CCR_MULTI_0)) /** * @} */ /** @defgroup ADCEx_Direct_memory_access_mode_for_multi_mode ADC Direct Memory Access Mode For Multi Mode * @{ */ #define ADC_DMAACCESSMODE_DISABLED 0x00000000U /*!< DMA mode disabled */ #define ADC_DMAACCESSMODE_1 ((uint32_t)ADC_CCR_DMA_0) /*!< DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3)*/ #define ADC_DMAACCESSMODE_2 ((uint32_t)ADC_CCR_DMA_1) /*!< DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)*/ #define ADC_DMAACCESSMODE_3 ((uint32_t)ADC_CCR_DMA) /*!< DMA mode 3 enabled (2 / 3 bytes by pairs - 2&1 then 1&3 then 3&2) */ /** * @} */ /** @defgroup ADCEx_External_trigger_edge_Injected ADC External Trigger Edge Injected * @{ */ #define ADC_EXTERNALTRIGINJECCONVEDGE_NONE 0x00000000U #define ADC_EXTERNALTRIGINJECCONVEDGE_RISING ((uint32_t)ADC_CR2_JEXTEN_0) #define ADC_EXTERNALTRIGINJECCONVEDGE_FALLING ((uint32_t)ADC_CR2_JEXTEN_1) #define ADC_EXTERNALTRIGINJECCONVEDGE_RISINGFALLING ((uint32_t)ADC_CR2_JEXTEN) /** * @} */ /** @defgroup ADCEx_External_trigger_Source_Injected ADC External Trigger Source Injected * @{ */ #define ADC_EXTERNALTRIGINJECCONV_T1_CC4 0x00000000U #define ADC_EXTERNALTRIGINJECCONV_T1_TRGO ((uint32_t)ADC_CR2_JEXTSEL_0) #define ADC_EXTERNALTRIGINJECCONV_T2_CC1 ((uint32_t)ADC_CR2_JEXTSEL_1) #define ADC_EXTERNALTRIGINJECCONV_T2_TRGO ((uint32_t)(ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T3_CC2 ((uint32_t)ADC_CR2_JEXTSEL_2) #define ADC_EXTERNALTRIGINJECCONV_T3_CC4 ((uint32_t)(ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T4_CC1 ((uint32_t)(ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1)) #define ADC_EXTERNALTRIGINJECCONV_T4_CC2 ((uint32_t)(ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T4_CC3 ((uint32_t)ADC_CR2_JEXTSEL_3) #define ADC_EXTERNALTRIGINJECCONV_T4_TRGO ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T5_CC4 ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_1)) #define ADC_EXTERNALTRIGINJECCONV_T5_TRGO ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T8_CC2 ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2)) #define ADC_EXTERNALTRIGINJECCONV_T8_CC3 ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_0)) #define ADC_EXTERNALTRIGINJECCONV_T8_CC4 ((uint32_t)(ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1)) #define ADC_EXTERNALTRIGINJECCONV_EXT_IT15 ((uint32_t)ADC_CR2_JEXTSEL) #define ADC_INJECTED_SOFTWARE_START ((uint32_t)ADC_CR2_JEXTSEL + 1U) /** * @} */ /** @defgroup ADCEx_injected_rank ADC Injected Rank * @{ */ #define ADC_INJECTED_RANK_1 0x00000001U #define ADC_INJECTED_RANK_2 0x00000002U #define ADC_INJECTED_RANK_3 0x00000003U #define ADC_INJECTED_RANK_4 0x00000004U /** * @} */ /** @defgroup ADCEx_channels ADC Specific Channels * @{ */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || \ defined(STM32F410Rx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || \ defined(STM32F412Cx) #define ADC_CHANNEL_TEMPSENSOR ((uint32_t)ADC_CHANNEL_16) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F410xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F411xE) || defined(STM32F413xx) || defined(STM32F423xx) || defined(STM32F427xx) || defined(STM32F437xx) ||\ defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define ADC_CHANNEL_DIFFERENCIATION_TEMPSENSOR_VBAT 0x10000000U /* Dummy bit for driver internal usage, not used in ADC channel setting registers CR1 or SQRx */ #define ADC_CHANNEL_TEMPSENSOR ((uint32_t)ADC_CHANNEL_18 | ADC_CHANNEL_DIFFERENCIATION_TEMPSENSOR_VBAT) #endif /* STM32F411xE || STM32F413xx || STM32F423xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup ADC_Exported_Macros ADC Exported Macros * @{ */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) /** * @brief Disable internal path of ADC channel Vbat * @note Use case of this macro: * On devices STM32F42x and STM32F43x, ADC internal channels * Vbat and VrefInt share the same internal path, only * one of them can be enabled.This macro is to be used when ADC * channels Vbat and VrefInt are selected, and must be called * before starting conversion of ADC channel VrefInt in order * to disable ADC channel Vbat. * @retval None */ #define __HAL_ADC_PATH_INTERNAL_VBAT_DISABLE() (ADC->CCR &= ~(ADC_CCR_VBATE)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup ADCEx_Exported_Functions * @{ */ /** @addtogroup ADCEx_Exported_Functions_Group1 * @{ */ /* I/O operation functions ******************************************************/ HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout); HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc); HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc); uint32_t HAL_ADCEx_InjectedGetValue(ADC_HandleTypeDef* hadc, uint32_t InjectedRank); HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length); HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc); uint32_t HAL_ADCEx_MultiModeGetValue(ADC_HandleTypeDef* hadc); void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc); /* Peripheral Control functions *************************************************/ HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel(ADC_HandleTypeDef* hadc,ADC_InjectionConfTypeDef* sConfigInjected); HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef* hadc, ADC_MultiModeTypeDef* multimode); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup ADCEx_Private_Constants ADC Private Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup ADCEx_Private_Macros ADC Private Macros * @{ */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || \ defined(STM32F410Rx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || \ defined(STM32F412Cx) #define IS_ADC_CHANNEL(CHANNEL) ((CHANNEL) <= ADC_CHANNEL_18) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F410xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F411xE) || defined(STM32F413xx) || defined(STM32F423xx) || defined(STM32F427xx) || \ defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) #define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) <= ADC_CHANNEL_18) || \ ((CHANNEL) == ADC_CHANNEL_TEMPSENSOR)) #endif /* STM32F411xE || STM32F413xx || STM32F423xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #define IS_ADC_MODE(MODE) (((MODE) == ADC_MODE_INDEPENDENT) || \ ((MODE) == ADC_DUALMODE_REGSIMULT_INJECSIMULT) || \ ((MODE) == ADC_DUALMODE_REGSIMULT_ALTERTRIG) || \ ((MODE) == ADC_DUALMODE_INJECSIMULT) || \ ((MODE) == ADC_DUALMODE_REGSIMULT) || \ ((MODE) == ADC_DUALMODE_INTERL) || \ ((MODE) == ADC_DUALMODE_ALTERTRIG) || \ ((MODE) == ADC_TRIPLEMODE_REGSIMULT_INJECSIMULT) || \ ((MODE) == ADC_TRIPLEMODE_REGSIMULT_AlterTrig) || \ ((MODE) == ADC_TRIPLEMODE_INJECSIMULT) || \ ((MODE) == ADC_TRIPLEMODE_REGSIMULT) || \ ((MODE) == ADC_TRIPLEMODE_INTERL) || \ ((MODE) == ADC_TRIPLEMODE_ALTERTRIG)) #define IS_ADC_DMA_ACCESS_MODE(MODE) (((MODE) == ADC_DMAACCESSMODE_DISABLED) || \ ((MODE) == ADC_DMAACCESSMODE_1) || \ ((MODE) == ADC_DMAACCESSMODE_2) || \ ((MODE) == ADC_DMAACCESSMODE_3)) #define IS_ADC_EXT_INJEC_TRIG_EDGE(EDGE) (((EDGE) == ADC_EXTERNALTRIGINJECCONVEDGE_NONE) || \ ((EDGE) == ADC_EXTERNALTRIGINJECCONVEDGE_RISING) || \ ((EDGE) == ADC_EXTERNALTRIGINJECCONVEDGE_FALLING) || \ ((EDGE) == ADC_EXTERNALTRIGINJECCONVEDGE_RISINGFALLING)) #define IS_ADC_EXT_INJEC_TRIG(INJTRIG) (((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T1_CC4) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T1_TRGO) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T2_CC1) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T2_TRGO) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T3_CC2) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T3_CC4) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T4_CC1) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T4_CC2) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T4_CC3) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T4_TRGO) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T5_CC4) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T5_TRGO) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T8_CC2) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T8_CC3) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_T8_CC4) || \ ((INJTRIG) == ADC_EXTERNALTRIGINJECCONV_EXT_IT15)|| \ ((INJTRIG) == ADC_INJECTED_SOFTWARE_START)) #define IS_ADC_INJECTED_LENGTH(LENGTH) (((LENGTH) >= 1U) && ((LENGTH) <= 4U)) #define IS_ADC_INJECTED_RANK(RANK) (((RANK) >= 1U) && ((RANK) <= 4U)) /** * @brief Set the selected injected Channel rank. * @param _CHANNELNB_ Channel number. * @param _RANKNB_ Rank number. * @param _JSQR_JL_ Sequence length. * @retval None */ #define ADC_JSQR(_CHANNELNB_, _RANKNB_, _JSQR_JL_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * (uint8_t)(((_RANKNB_) + 3U) - (_JSQR_JL_)))) /** * @brief Defines if the selected ADC is within ADC common register ADC123 or ADC1 * if available (ADC2, ADC3 availability depends on STM32 product) * @param __HANDLE__ ADC handle * @retval Common control register ADC123 or ADC1 */ #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F429xx) || defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define ADC_COMMON_REGISTER(__HANDLE__) ADC123_COMMON #else #define ADC_COMMON_REGISTER(__HANDLE__) ADC1_COMMON #endif /* STM32F405xx || STM32F407xx || STM32F415xx || STM32F417xx || STM32F427xx || STM32F429xx || STM32F437xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup ADCEx_Private_Functions ADC Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /*__STM32F4xx_ADC_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_can.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_can.h * @author MCD Application Team * @brief Header file of CAN HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_CAN_H #define STM32F4xx_HAL_CAN_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ #if defined (CAN1) /** @addtogroup CAN * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup CAN_Exported_Types CAN Exported Types * @{ */ /** * @brief HAL State structures definition */ typedef enum { HAL_CAN_STATE_RESET = 0x00U, /*!< CAN not yet initialized or disabled */ HAL_CAN_STATE_READY = 0x01U, /*!< CAN initialized and ready for use */ HAL_CAN_STATE_LISTENING = 0x02U, /*!< CAN receive process is ongoing */ HAL_CAN_STATE_SLEEP_PENDING = 0x03U, /*!< CAN sleep request is pending */ HAL_CAN_STATE_SLEEP_ACTIVE = 0x04U, /*!< CAN sleep mode is active */ HAL_CAN_STATE_ERROR = 0x05U /*!< CAN error state */ } HAL_CAN_StateTypeDef; /** * @brief CAN init structure definition */ typedef struct { uint32_t Prescaler; /*!< Specifies the length of a time quantum. This parameter must be a number between Min_Data = 1 and Max_Data = 1024. */ uint32_t Mode; /*!< Specifies the CAN operating mode. This parameter can be a value of @ref CAN_operating_mode */ uint32_t SyncJumpWidth; /*!< Specifies the maximum number of time quanta the CAN hardware is allowed to lengthen or shorten a bit to perform resynchronization. This parameter can be a value of @ref CAN_synchronisation_jump_width */ uint32_t TimeSeg1; /*!< Specifies the number of time quanta in Bit Segment 1. This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_1 */ uint32_t TimeSeg2; /*!< Specifies the number of time quanta in Bit Segment 2. This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_2 */ FunctionalState TimeTriggeredMode; /*!< Enable or disable the time triggered communication mode. This parameter can be set to ENABLE or DISABLE. */ FunctionalState AutoBusOff; /*!< Enable or disable the automatic bus-off management. This parameter can be set to ENABLE or DISABLE. */ FunctionalState AutoWakeUp; /*!< Enable or disable the automatic wake-up mode. This parameter can be set to ENABLE or DISABLE. */ FunctionalState AutoRetransmission; /*!< Enable or disable the non-automatic retransmission mode. This parameter can be set to ENABLE or DISABLE. */ FunctionalState ReceiveFifoLocked; /*!< Enable or disable the Receive FIFO Locked mode. This parameter can be set to ENABLE or DISABLE. */ FunctionalState TransmitFifoPriority;/*!< Enable or disable the transmit FIFO priority. This parameter can be set to ENABLE or DISABLE. */ } CAN_InitTypeDef; /** * @brief CAN filter configuration structure definition */ typedef struct { uint32_t FilterIdHigh; /*!< Specifies the filter identification number (MSBs for a 32-bit configuration, first one for a 16-bit configuration). This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t FilterIdLow; /*!< Specifies the filter identification number (LSBs for a 32-bit configuration, second one for a 16-bit configuration). This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t FilterMaskIdHigh; /*!< Specifies the filter mask number or identification number, according to the mode (MSBs for a 32-bit configuration, first one for a 16-bit configuration). This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t FilterMaskIdLow; /*!< Specifies the filter mask number or identification number, according to the mode (LSBs for a 32-bit configuration, second one for a 16-bit configuration). This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t FilterFIFOAssignment; /*!< Specifies the FIFO (0 or 1U) which will be assigned to the filter. This parameter can be a value of @ref CAN_filter_FIFO */ uint32_t FilterBank; /*!< Specifies the filter bank which will be initialized. For single CAN instance(14 dedicated filter banks), this parameter must be a number between Min_Data = 0 and Max_Data = 13. For dual CAN instances(28 filter banks shared), this parameter must be a number between Min_Data = 0 and Max_Data = 27. */ uint32_t FilterMode; /*!< Specifies the filter mode to be initialized. This parameter can be a value of @ref CAN_filter_mode */ uint32_t FilterScale; /*!< Specifies the filter scale. This parameter can be a value of @ref CAN_filter_scale */ uint32_t FilterActivation; /*!< Enable or disable the filter. This parameter can be a value of @ref CAN_filter_activation */ uint32_t SlaveStartFilterBank; /*!< Select the start filter bank for the slave CAN instance. For single CAN instances, this parameter is meaningless. For dual CAN instances, all filter banks with lower index are assigned to master CAN instance, whereas all filter banks with greater index are assigned to slave CAN instance. This parameter must be a number between Min_Data = 0 and Max_Data = 27. */ } CAN_FilterTypeDef; /** * @brief CAN Tx message header structure definition */ typedef struct { uint32_t StdId; /*!< Specifies the standard identifier. This parameter must be a number between Min_Data = 0 and Max_Data = 0x7FF. */ uint32_t ExtId; /*!< Specifies the extended identifier. This parameter must be a number between Min_Data = 0 and Max_Data = 0x1FFFFFFF. */ uint32_t IDE; /*!< Specifies the type of identifier for the message that will be transmitted. This parameter can be a value of @ref CAN_identifier_type */ uint32_t RTR; /*!< Specifies the type of frame for the message that will be transmitted. This parameter can be a value of @ref CAN_remote_transmission_request */ uint32_t DLC; /*!< Specifies the length of the frame that will be transmitted. This parameter must be a number between Min_Data = 0 and Max_Data = 8. */ FunctionalState TransmitGlobalTime; /*!< Specifies whether the timestamp counter value captured on start of frame transmission, is sent in DATA6 and DATA7 replacing pData[6] and pData[7]. @note: Time Triggered Communication Mode must be enabled. @note: DLC must be programmed as 8 bytes, in order these 2 bytes are sent. This parameter can be set to ENABLE or DISABLE. */ } CAN_TxHeaderTypeDef; /** * @brief CAN Rx message header structure definition */ typedef struct { uint32_t StdId; /*!< Specifies the standard identifier. This parameter must be a number between Min_Data = 0 and Max_Data = 0x7FF. */ uint32_t ExtId; /*!< Specifies the extended identifier. This parameter must be a number between Min_Data = 0 and Max_Data = 0x1FFFFFFF. */ uint32_t IDE; /*!< Specifies the type of identifier for the message that will be transmitted. This parameter can be a value of @ref CAN_identifier_type */ uint32_t RTR; /*!< Specifies the type of frame for the message that will be transmitted. This parameter can be a value of @ref CAN_remote_transmission_request */ uint32_t DLC; /*!< Specifies the length of the frame that will be transmitted. This parameter must be a number between Min_Data = 0 and Max_Data = 8. */ uint32_t Timestamp; /*!< Specifies the timestamp counter value captured on start of frame reception. @note: Time Triggered Communication Mode must be enabled. This parameter must be a number between Min_Data = 0 and Max_Data = 0xFFFF. */ uint32_t FilterMatchIndex; /*!< Specifies the index of matching acceptance filter element. This parameter must be a number between Min_Data = 0 and Max_Data = 0xFF. */ } CAN_RxHeaderTypeDef; /** * @brief CAN handle Structure definition */ typedef struct __CAN_HandleTypeDef { CAN_TypeDef *Instance; /*!< Register base address */ CAN_InitTypeDef Init; /*!< CAN required parameters */ __IO HAL_CAN_StateTypeDef State; /*!< CAN communication state */ __IO uint32_t ErrorCode; /*!< CAN Error code. This parameter can be a value of @ref CAN_Error_Code */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 void (* TxMailbox0CompleteCallback)(struct __CAN_HandleTypeDef *hcan);/*!< CAN Tx Mailbox 0 complete callback */ void (* TxMailbox1CompleteCallback)(struct __CAN_HandleTypeDef *hcan);/*!< CAN Tx Mailbox 1 complete callback */ void (* TxMailbox2CompleteCallback)(struct __CAN_HandleTypeDef *hcan);/*!< CAN Tx Mailbox 2 complete callback */ void (* TxMailbox0AbortCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Tx Mailbox 0 abort callback */ void (* TxMailbox1AbortCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Tx Mailbox 1 abort callback */ void (* TxMailbox2AbortCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Tx Mailbox 2 abort callback */ void (* RxFifo0MsgPendingCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Rx FIFO 0 msg pending callback */ void (* RxFifo0FullCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Rx FIFO 0 full callback */ void (* RxFifo1MsgPendingCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Rx FIFO 1 msg pending callback */ void (* RxFifo1FullCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Rx FIFO 1 full callback */ void (* SleepCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Sleep callback */ void (* WakeUpFromRxMsgCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Wake Up from Rx msg callback */ void (* ErrorCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Error callback */ void (* MspInitCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Msp Init callback */ void (* MspDeInitCallback)(struct __CAN_HandleTypeDef *hcan); /*!< CAN Msp DeInit callback */ #endif /* (USE_HAL_CAN_REGISTER_CALLBACKS) */ } CAN_HandleTypeDef; #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /** * @brief HAL CAN common Callback ID enumeration definition */ typedef enum { HAL_CAN_TX_MAILBOX0_COMPLETE_CB_ID = 0x00U, /*!< CAN Tx Mailbox 0 complete callback ID */ HAL_CAN_TX_MAILBOX1_COMPLETE_CB_ID = 0x01U, /*!< CAN Tx Mailbox 1 complete callback ID */ HAL_CAN_TX_MAILBOX2_COMPLETE_CB_ID = 0x02U, /*!< CAN Tx Mailbox 2 complete callback ID */ HAL_CAN_TX_MAILBOX0_ABORT_CB_ID = 0x03U, /*!< CAN Tx Mailbox 0 abort callback ID */ HAL_CAN_TX_MAILBOX1_ABORT_CB_ID = 0x04U, /*!< CAN Tx Mailbox 1 abort callback ID */ HAL_CAN_TX_MAILBOX2_ABORT_CB_ID = 0x05U, /*!< CAN Tx Mailbox 2 abort callback ID */ HAL_CAN_RX_FIFO0_MSG_PENDING_CB_ID = 0x06U, /*!< CAN Rx FIFO 0 message pending callback ID */ HAL_CAN_RX_FIFO0_FULL_CB_ID = 0x07U, /*!< CAN Rx FIFO 0 full callback ID */ HAL_CAN_RX_FIFO1_MSG_PENDING_CB_ID = 0x08U, /*!< CAN Rx FIFO 1 message pending callback ID */ HAL_CAN_RX_FIFO1_FULL_CB_ID = 0x09U, /*!< CAN Rx FIFO 1 full callback ID */ HAL_CAN_SLEEP_CB_ID = 0x0AU, /*!< CAN Sleep callback ID */ HAL_CAN_WAKEUP_FROM_RX_MSG_CB_ID = 0x0BU, /*!< CAN Wake Up from Rx msg callback ID */ HAL_CAN_ERROR_CB_ID = 0x0CU, /*!< CAN Error callback ID */ HAL_CAN_MSPINIT_CB_ID = 0x0DU, /*!< CAN MspInit callback ID */ HAL_CAN_MSPDEINIT_CB_ID = 0x0EU, /*!< CAN MspDeInit callback ID */ } HAL_CAN_CallbackIDTypeDef; /** * @brief HAL CAN Callback pointer definition */ typedef void (*pCAN_CallbackTypeDef)(CAN_HandleTypeDef *hcan); /*!< pointer to a CAN callback function */ #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup CAN_Exported_Constants CAN Exported Constants * @{ */ /** @defgroup CAN_Error_Code CAN Error Code * @{ */ #define HAL_CAN_ERROR_NONE (0x00000000U) /*!< No error */ #define HAL_CAN_ERROR_EWG (0x00000001U) /*!< Protocol Error Warning */ #define HAL_CAN_ERROR_EPV (0x00000002U) /*!< Error Passive */ #define HAL_CAN_ERROR_BOF (0x00000004U) /*!< Bus-off error */ #define HAL_CAN_ERROR_STF (0x00000008U) /*!< Stuff error */ #define HAL_CAN_ERROR_FOR (0x00000010U) /*!< Form error */ #define HAL_CAN_ERROR_ACK (0x00000020U) /*!< Acknowledgment error */ #define HAL_CAN_ERROR_BR (0x00000040U) /*!< Bit recessive error */ #define HAL_CAN_ERROR_BD (0x00000080U) /*!< Bit dominant error */ #define HAL_CAN_ERROR_CRC (0x00000100U) /*!< CRC error */ #define HAL_CAN_ERROR_RX_FOV0 (0x00000200U) /*!< Rx FIFO0 overrun error */ #define HAL_CAN_ERROR_RX_FOV1 (0x00000400U) /*!< Rx FIFO1 overrun error */ #define HAL_CAN_ERROR_TX_ALST0 (0x00000800U) /*!< TxMailbox 0 transmit failure due to arbitration lost */ #define HAL_CAN_ERROR_TX_TERR0 (0x00001000U) /*!< TxMailbox 0 transmit failure due to transmit error */ #define HAL_CAN_ERROR_TX_ALST1 (0x00002000U) /*!< TxMailbox 1 transmit failure due to arbitration lost */ #define HAL_CAN_ERROR_TX_TERR1 (0x00004000U) /*!< TxMailbox 1 transmit failure due to transmit error */ #define HAL_CAN_ERROR_TX_ALST2 (0x00008000U) /*!< TxMailbox 2 transmit failure due to arbitration lost */ #define HAL_CAN_ERROR_TX_TERR2 (0x00010000U) /*!< TxMailbox 2 transmit failure due to transmit error */ #define HAL_CAN_ERROR_TIMEOUT (0x00020000U) /*!< Timeout error */ #define HAL_CAN_ERROR_NOT_INITIALIZED (0x00040000U) /*!< Peripheral not initialized */ #define HAL_CAN_ERROR_NOT_READY (0x00080000U) /*!< Peripheral not ready */ #define HAL_CAN_ERROR_NOT_STARTED (0x00100000U) /*!< Peripheral not started */ #define HAL_CAN_ERROR_PARAM (0x00200000U) /*!< Parameter error */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 #define HAL_CAN_ERROR_INVALID_CALLBACK (0x00400000U) /*!< Invalid Callback error */ #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ #define HAL_CAN_ERROR_INTERNAL (0x00800000U) /*!< Internal error */ /** * @} */ /** @defgroup CAN_InitStatus CAN InitStatus * @{ */ #define CAN_INITSTATUS_FAILED (0x00000000U) /*!< CAN initialization failed */ #define CAN_INITSTATUS_SUCCESS (0x00000001U) /*!< CAN initialization OK */ /** * @} */ /** @defgroup CAN_operating_mode CAN Operating Mode * @{ */ #define CAN_MODE_NORMAL (0x00000000U) /*!< Normal mode */ #define CAN_MODE_LOOPBACK ((uint32_t)CAN_BTR_LBKM) /*!< Loopback mode */ #define CAN_MODE_SILENT ((uint32_t)CAN_BTR_SILM) /*!< Silent mode */ #define CAN_MODE_SILENT_LOOPBACK ((uint32_t)(CAN_BTR_LBKM | CAN_BTR_SILM)) /*!< Loopback combined with silent mode */ /** * @} */ /** @defgroup CAN_synchronisation_jump_width CAN Synchronization Jump Width * @{ */ #define CAN_SJW_1TQ (0x00000000U) /*!< 1 time quantum */ #define CAN_SJW_2TQ ((uint32_t)CAN_BTR_SJW_0) /*!< 2 time quantum */ #define CAN_SJW_3TQ ((uint32_t)CAN_BTR_SJW_1) /*!< 3 time quantum */ #define CAN_SJW_4TQ ((uint32_t)CAN_BTR_SJW) /*!< 4 time quantum */ /** * @} */ /** @defgroup CAN_time_quantum_in_bit_segment_1 CAN Time Quantum in Bit Segment 1 * @{ */ #define CAN_BS1_1TQ (0x00000000U) /*!< 1 time quantum */ #define CAN_BS1_2TQ ((uint32_t)CAN_BTR_TS1_0) /*!< 2 time quantum */ #define CAN_BS1_3TQ ((uint32_t)CAN_BTR_TS1_1) /*!< 3 time quantum */ #define CAN_BS1_4TQ ((uint32_t)(CAN_BTR_TS1_1 | CAN_BTR_TS1_0)) /*!< 4 time quantum */ #define CAN_BS1_5TQ ((uint32_t)CAN_BTR_TS1_2) /*!< 5 time quantum */ #define CAN_BS1_6TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_0)) /*!< 6 time quantum */ #define CAN_BS1_7TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_1)) /*!< 7 time quantum */ #define CAN_BS1_8TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_1 | CAN_BTR_TS1_0)) /*!< 8 time quantum */ #define CAN_BS1_9TQ ((uint32_t)CAN_BTR_TS1_3) /*!< 9 time quantum */ #define CAN_BS1_10TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_0)) /*!< 10 time quantum */ #define CAN_BS1_11TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_1)) /*!< 11 time quantum */ #define CAN_BS1_12TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_1 | CAN_BTR_TS1_0)) /*!< 12 time quantum */ #define CAN_BS1_13TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2)) /*!< 13 time quantum */ #define CAN_BS1_14TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2 | CAN_BTR_TS1_0)) /*!< 14 time quantum */ #define CAN_BS1_15TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2 | CAN_BTR_TS1_1)) /*!< 15 time quantum */ #define CAN_BS1_16TQ ((uint32_t)CAN_BTR_TS1) /*!< 16 time quantum */ /** * @} */ /** @defgroup CAN_time_quantum_in_bit_segment_2 CAN Time Quantum in Bit Segment 2 * @{ */ #define CAN_BS2_1TQ (0x00000000U) /*!< 1 time quantum */ #define CAN_BS2_2TQ ((uint32_t)CAN_BTR_TS2_0) /*!< 2 time quantum */ #define CAN_BS2_3TQ ((uint32_t)CAN_BTR_TS2_1) /*!< 3 time quantum */ #define CAN_BS2_4TQ ((uint32_t)(CAN_BTR_TS2_1 | CAN_BTR_TS2_0)) /*!< 4 time quantum */ #define CAN_BS2_5TQ ((uint32_t)CAN_BTR_TS2_2) /*!< 5 time quantum */ #define CAN_BS2_6TQ ((uint32_t)(CAN_BTR_TS2_2 | CAN_BTR_TS2_0)) /*!< 6 time quantum */ #define CAN_BS2_7TQ ((uint32_t)(CAN_BTR_TS2_2 | CAN_BTR_TS2_1)) /*!< 7 time quantum */ #define CAN_BS2_8TQ ((uint32_t)CAN_BTR_TS2) /*!< 8 time quantum */ /** * @} */ /** @defgroup CAN_filter_mode CAN Filter Mode * @{ */ #define CAN_FILTERMODE_IDMASK (0x00000000U) /*!< Identifier mask mode */ #define CAN_FILTERMODE_IDLIST (0x00000001U) /*!< Identifier list mode */ /** * @} */ /** @defgroup CAN_filter_scale CAN Filter Scale * @{ */ #define CAN_FILTERSCALE_16BIT (0x00000000U) /*!< Two 16-bit filters */ #define CAN_FILTERSCALE_32BIT (0x00000001U) /*!< One 32-bit filter */ /** * @} */ /** @defgroup CAN_filter_activation CAN Filter Activation * @{ */ #define CAN_FILTER_DISABLE (0x00000000U) /*!< Disable filter */ #define CAN_FILTER_ENABLE (0x00000001U) /*!< Enable filter */ /** * @} */ /** @defgroup CAN_filter_FIFO CAN Filter FIFO * @{ */ #define CAN_FILTER_FIFO0 (0x00000000U) /*!< Filter FIFO 0 assignment for filter x */ #define CAN_FILTER_FIFO1 (0x00000001U) /*!< Filter FIFO 1 assignment for filter x */ /** * @} */ /** @defgroup CAN_identifier_type CAN Identifier Type * @{ */ #define CAN_ID_STD (0x00000000U) /*!< Standard Id */ #define CAN_ID_EXT (0x00000004U) /*!< Extended Id */ /** * @} */ /** @defgroup CAN_remote_transmission_request CAN Remote Transmission Request * @{ */ #define CAN_RTR_DATA (0x00000000U) /*!< Data frame */ #define CAN_RTR_REMOTE (0x00000002U) /*!< Remote frame */ /** * @} */ /** @defgroup CAN_receive_FIFO_number CAN Receive FIFO Number * @{ */ #define CAN_RX_FIFO0 (0x00000000U) /*!< CAN receive FIFO 0 */ #define CAN_RX_FIFO1 (0x00000001U) /*!< CAN receive FIFO 1 */ /** * @} */ /** @defgroup CAN_Tx_Mailboxes CAN Tx Mailboxes * @{ */ #define CAN_TX_MAILBOX0 (0x00000001U) /*!< Tx Mailbox 0 */ #define CAN_TX_MAILBOX1 (0x00000002U) /*!< Tx Mailbox 1 */ #define CAN_TX_MAILBOX2 (0x00000004U) /*!< Tx Mailbox 2 */ /** * @} */ /** @defgroup CAN_flags CAN Flags * @{ */ /* Transmit Flags */ #define CAN_FLAG_RQCP0 (0x00000500U) /*!< Request complete MailBox 0 flag */ #define CAN_FLAG_TXOK0 (0x00000501U) /*!< Transmission OK MailBox 0 flag */ #define CAN_FLAG_ALST0 (0x00000502U) /*!< Arbitration Lost MailBox 0 flag */ #define CAN_FLAG_TERR0 (0x00000503U) /*!< Transmission error MailBox 0 flag */ #define CAN_FLAG_RQCP1 (0x00000508U) /*!< Request complete MailBox1 flag */ #define CAN_FLAG_TXOK1 (0x00000509U) /*!< Transmission OK MailBox 1 flag */ #define CAN_FLAG_ALST1 (0x0000050AU) /*!< Arbitration Lost MailBox 1 flag */ #define CAN_FLAG_TERR1 (0x0000050BU) /*!< Transmission error MailBox 1 flag */ #define CAN_FLAG_RQCP2 (0x00000510U) /*!< Request complete MailBox2 flag */ #define CAN_FLAG_TXOK2 (0x00000511U) /*!< Transmission OK MailBox 2 flag */ #define CAN_FLAG_ALST2 (0x00000512U) /*!< Arbitration Lost MailBox 2 flag */ #define CAN_FLAG_TERR2 (0x00000513U) /*!< Transmission error MailBox 2 flag */ #define CAN_FLAG_TME0 (0x0000051AU) /*!< Transmit mailbox 0 empty flag */ #define CAN_FLAG_TME1 (0x0000051BU) /*!< Transmit mailbox 1 empty flag */ #define CAN_FLAG_TME2 (0x0000051CU) /*!< Transmit mailbox 2 empty flag */ #define CAN_FLAG_LOW0 (0x0000051DU) /*!< Lowest priority mailbox 0 flag */ #define CAN_FLAG_LOW1 (0x0000051EU) /*!< Lowest priority mailbox 1 flag */ #define CAN_FLAG_LOW2 (0x0000051FU) /*!< Lowest priority mailbox 2 flag */ /* Receive Flags */ #define CAN_FLAG_FF0 (0x00000203U) /*!< RX FIFO 0 Full flag */ #define CAN_FLAG_FOV0 (0x00000204U) /*!< RX FIFO 0 Overrun flag */ #define CAN_FLAG_FF1 (0x00000403U) /*!< RX FIFO 1 Full flag */ #define CAN_FLAG_FOV1 (0x00000404U) /*!< RX FIFO 1 Overrun flag */ /* Operating Mode Flags */ #define CAN_FLAG_INAK (0x00000100U) /*!< Initialization acknowledge flag */ #define CAN_FLAG_SLAK (0x00000101U) /*!< Sleep acknowledge flag */ #define CAN_FLAG_ERRI (0x00000102U) /*!< Error flag */ #define CAN_FLAG_WKU (0x00000103U) /*!< Wake up interrupt flag */ #define CAN_FLAG_SLAKI (0x00000104U) /*!< Sleep acknowledge interrupt flag */ /* Error Flags */ #define CAN_FLAG_EWG (0x00000300U) /*!< Error warning flag */ #define CAN_FLAG_EPV (0x00000301U) /*!< Error passive flag */ #define CAN_FLAG_BOF (0x00000302U) /*!< Bus-Off flag */ /** * @} */ /** @defgroup CAN_Interrupts CAN Interrupts * @{ */ /* Transmit Interrupt */ #define CAN_IT_TX_MAILBOX_EMPTY ((uint32_t)CAN_IER_TMEIE) /*!< Transmit mailbox empty interrupt */ /* Receive Interrupts */ #define CAN_IT_RX_FIFO0_MSG_PENDING ((uint32_t)CAN_IER_FMPIE0) /*!< FIFO 0 message pending interrupt */ #define CAN_IT_RX_FIFO0_FULL ((uint32_t)CAN_IER_FFIE0) /*!< FIFO 0 full interrupt */ #define CAN_IT_RX_FIFO0_OVERRUN ((uint32_t)CAN_IER_FOVIE0) /*!< FIFO 0 overrun interrupt */ #define CAN_IT_RX_FIFO1_MSG_PENDING ((uint32_t)CAN_IER_FMPIE1) /*!< FIFO 1 message pending interrupt */ #define CAN_IT_RX_FIFO1_FULL ((uint32_t)CAN_IER_FFIE1) /*!< FIFO 1 full interrupt */ #define CAN_IT_RX_FIFO1_OVERRUN ((uint32_t)CAN_IER_FOVIE1) /*!< FIFO 1 overrun interrupt */ /* Operating Mode Interrupts */ #define CAN_IT_WAKEUP ((uint32_t)CAN_IER_WKUIE) /*!< Wake-up interrupt */ #define CAN_IT_SLEEP_ACK ((uint32_t)CAN_IER_SLKIE) /*!< Sleep acknowledge interrupt */ /* Error Interrupts */ #define CAN_IT_ERROR_WARNING ((uint32_t)CAN_IER_EWGIE) /*!< Error warning interrupt */ #define CAN_IT_ERROR_PASSIVE ((uint32_t)CAN_IER_EPVIE) /*!< Error passive interrupt */ #define CAN_IT_BUSOFF ((uint32_t)CAN_IER_BOFIE) /*!< Bus-off interrupt */ #define CAN_IT_LAST_ERROR_CODE ((uint32_t)CAN_IER_LECIE) /*!< Last error code interrupt */ #define CAN_IT_ERROR ((uint32_t)CAN_IER_ERRIE) /*!< Error Interrupt */ /** * @} */ /** * @} */ /* Exported macros -----------------------------------------------------------*/ /** @defgroup CAN_Exported_Macros CAN Exported Macros * @{ */ /** @brief Reset CAN handle state * @param __HANDLE__ CAN handle. * @retval None */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 #define __HAL_CAN_RESET_HANDLE_STATE(__HANDLE__) do{ \ (__HANDLE__)->State = HAL_CAN_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0) #else #define __HAL_CAN_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CAN_STATE_RESET) #endif /*USE_HAL_CAN_REGISTER_CALLBACKS */ /** * @brief Enable the specified CAN interrupts. * @param __HANDLE__ CAN handle. * @param __INTERRUPT__ CAN Interrupt sources to enable. * This parameter can be any combination of @arg CAN_Interrupts * @retval None */ #define __HAL_CAN_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) |= (__INTERRUPT__)) /** * @brief Disable the specified CAN interrupts. * @param __HANDLE__ CAN handle. * @param __INTERRUPT__ CAN Interrupt sources to disable. * This parameter can be any combination of @arg CAN_Interrupts * @retval None */ #define __HAL_CAN_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__)) /** @brief Check if the specified CAN interrupt source is enabled or disabled. * @param __HANDLE__ specifies the CAN Handle. * @param __INTERRUPT__ specifies the CAN interrupt source to check. * This parameter can be a value of @arg CAN_Interrupts * @retval The state of __IT__ (TRUE or FALSE). */ #define __HAL_CAN_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) & (__INTERRUPT__)) /** @brief Check whether the specified CAN flag is set or not. * @param __HANDLE__ specifies the CAN Handle. * @param __FLAG__ specifies the flag to check. * This parameter can be one of @arg CAN_flags * @retval The state of __FLAG__ (TRUE or FALSE). */ #define __HAL_CAN_GET_FLAG(__HANDLE__, __FLAG__) \ ((((__FLAG__) >> 8U) == 5U)? ((((__HANDLE__)->Instance->TSR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 2U)? ((((__HANDLE__)->Instance->RF0R) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 4U)? ((((__HANDLE__)->Instance->RF1R) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 1U)? ((((__HANDLE__)->Instance->MSR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 3U)? ((((__HANDLE__)->Instance->ESR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): 0U) /** @brief Clear the specified CAN pending flag. * @param __HANDLE__ specifies the CAN Handle. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg CAN_FLAG_RQCP0: Request complete MailBox 0 Flag * @arg CAN_FLAG_TXOK0: Transmission OK MailBox 0 Flag * @arg CAN_FLAG_ALST0: Arbitration Lost MailBox 0 Flag * @arg CAN_FLAG_TERR0: Transmission error MailBox 0 Flag * @arg CAN_FLAG_RQCP1: Request complete MailBox 1 Flag * @arg CAN_FLAG_TXOK1: Transmission OK MailBox 1 Flag * @arg CAN_FLAG_ALST1: Arbitration Lost MailBox 1 Flag * @arg CAN_FLAG_TERR1: Transmission error MailBox 1 Flag * @arg CAN_FLAG_RQCP2: Request complete MailBox 2 Flag * @arg CAN_FLAG_TXOK2: Transmission OK MailBox 2 Flag * @arg CAN_FLAG_ALST2: Arbitration Lost MailBox 2 Flag * @arg CAN_FLAG_TERR2: Transmission error MailBox 2 Flag * @arg CAN_FLAG_FF0: RX FIFO 0 Full Flag * @arg CAN_FLAG_FOV0: RX FIFO 0 Overrun Flag * @arg CAN_FLAG_FF1: RX FIFO 1 Full Flag * @arg CAN_FLAG_FOV1: RX FIFO 1 Overrun Flag * @arg CAN_FLAG_WKUI: Wake up Interrupt Flag * @arg CAN_FLAG_SLAKI: Sleep acknowledge Interrupt Flag * @retval None */ #define __HAL_CAN_CLEAR_FLAG(__HANDLE__, __FLAG__) \ ((((__FLAG__) >> 8U) == 5U)? (((__HANDLE__)->Instance->TSR) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 2U)? (((__HANDLE__)->Instance->RF0R) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 4U)? (((__HANDLE__)->Instance->RF1R) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \ (((__FLAG__) >> 8U) == 1U)? (((__HANDLE__)->Instance->MSR) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): 0U) /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup CAN_Exported_Functions CAN Exported Functions * @{ */ /** @addtogroup CAN_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @{ */ /* Initialization and de-initialization functions *****************************/ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_DeInit(CAN_HandleTypeDef *hcan); void HAL_CAN_MspInit(CAN_HandleTypeDef *hcan); void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan); #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Callbacks Register/UnRegister functions ***********************************/ HAL_StatusTypeDef HAL_CAN_RegisterCallback(CAN_HandleTypeDef *hcan, HAL_CAN_CallbackIDTypeDef CallbackID, void (* pCallback)(CAN_HandleTypeDef *_hcan)); HAL_StatusTypeDef HAL_CAN_UnRegisterCallback(CAN_HandleTypeDef *hcan, HAL_CAN_CallbackIDTypeDef CallbackID); #endif /* (USE_HAL_CAN_REGISTER_CALLBACKS) */ /** * @} */ /** @addtogroup CAN_Exported_Functions_Group2 Configuration functions * @brief Configuration functions * @{ */ /* Configuration functions ****************************************************/ HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, CAN_FilterTypeDef *sFilterConfig); /** * @} */ /** @addtogroup CAN_Exported_Functions_Group3 Control functions * @brief Control functions * @{ */ /* Control functions **********************************************************/ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_Stop(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_RequestSleep(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_WakeUp(CAN_HandleTypeDef *hcan); uint32_t HAL_CAN_IsSleepActive(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, CAN_TxHeaderTypeDef *pHeader, uint8_t aData[], uint32_t *pTxMailbox); HAL_StatusTypeDef HAL_CAN_AbortTxRequest(CAN_HandleTypeDef *hcan, uint32_t TxMailboxes); uint32_t HAL_CAN_GetTxMailboxesFreeLevel(CAN_HandleTypeDef *hcan); uint32_t HAL_CAN_IsTxMessagePending(CAN_HandleTypeDef *hcan, uint32_t TxMailboxes); uint32_t HAL_CAN_GetTxTimestamp(CAN_HandleTypeDef *hcan, uint32_t TxMailbox); HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]); uint32_t HAL_CAN_GetRxFifoFillLevel(CAN_HandleTypeDef *hcan, uint32_t RxFifo); /** * @} */ /** @addtogroup CAN_Exported_Functions_Group4 Interrupts management * @brief Interrupts management * @{ */ /* Interrupts management ******************************************************/ HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t ActiveITs); HAL_StatusTypeDef HAL_CAN_DeactivateNotification(CAN_HandleTypeDef *hcan, uint32_t InactiveITs); void HAL_CAN_IRQHandler(CAN_HandleTypeDef *hcan); /** * @} */ /** @addtogroup CAN_Exported_Functions_Group5 Callback functions * @brief Callback functions * @{ */ /* Callbacks functions ********************************************************/ void HAL_CAN_TxMailbox0CompleteCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_TxMailbox1CompleteCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_TxMailbox2CompleteCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_TxMailbox0AbortCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_TxMailbox1AbortCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_TxMailbox2AbortCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_RxFifo0FullCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_RxFifo1FullCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_SleepCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_WakeUpFromRxMsgCallback(CAN_HandleTypeDef *hcan); void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan); /** * @} */ /** @addtogroup CAN_Exported_Functions_Group6 Peripheral State and Error functions * @brief CAN Peripheral State functions * @{ */ /* Peripheral State and Error functions ***************************************/ HAL_CAN_StateTypeDef HAL_CAN_GetState(CAN_HandleTypeDef *hcan); uint32_t HAL_CAN_GetError(CAN_HandleTypeDef *hcan); HAL_StatusTypeDef HAL_CAN_ResetError(CAN_HandleTypeDef *hcan); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /** @defgroup CAN_Private_Types CAN Private Types * @{ */ /** * @} */ /* Private variables ---------------------------------------------------------*/ /** @defgroup CAN_Private_Variables CAN Private Variables * @{ */ /** * @} */ /* Private constants ---------------------------------------------------------*/ /** @defgroup CAN_Private_Constants CAN Private Constants * @{ */ #define CAN_FLAG_MASK (0x000000FFU) /** * @} */ /* Private Macros -----------------------------------------------------------*/ /** @defgroup CAN_Private_Macros CAN Private Macros * @{ */ #define IS_CAN_MODE(MODE) (((MODE) == CAN_MODE_NORMAL) || \ ((MODE) == CAN_MODE_LOOPBACK)|| \ ((MODE) == CAN_MODE_SILENT) || \ ((MODE) == CAN_MODE_SILENT_LOOPBACK)) #define IS_CAN_SJW(SJW) (((SJW) == CAN_SJW_1TQ) || ((SJW) == CAN_SJW_2TQ) || \ ((SJW) == CAN_SJW_3TQ) || ((SJW) == CAN_SJW_4TQ)) #define IS_CAN_BS1(BS1) (((BS1) == CAN_BS1_1TQ) || ((BS1) == CAN_BS1_2TQ) || \ ((BS1) == CAN_BS1_3TQ) || ((BS1) == CAN_BS1_4TQ) || \ ((BS1) == CAN_BS1_5TQ) || ((BS1) == CAN_BS1_6TQ) || \ ((BS1) == CAN_BS1_7TQ) || ((BS1) == CAN_BS1_8TQ) || \ ((BS1) == CAN_BS1_9TQ) || ((BS1) == CAN_BS1_10TQ)|| \ ((BS1) == CAN_BS1_11TQ)|| ((BS1) == CAN_BS1_12TQ)|| \ ((BS1) == CAN_BS1_13TQ)|| ((BS1) == CAN_BS1_14TQ)|| \ ((BS1) == CAN_BS1_15TQ)|| ((BS1) == CAN_BS1_16TQ)) #define IS_CAN_BS2(BS2) (((BS2) == CAN_BS2_1TQ) || ((BS2) == CAN_BS2_2TQ) || \ ((BS2) == CAN_BS2_3TQ) || ((BS2) == CAN_BS2_4TQ) || \ ((BS2) == CAN_BS2_5TQ) || ((BS2) == CAN_BS2_6TQ) || \ ((BS2) == CAN_BS2_7TQ) || ((BS2) == CAN_BS2_8TQ)) #define IS_CAN_PRESCALER(PRESCALER) (((PRESCALER) >= 1U) && ((PRESCALER) <= 1024U)) #define IS_CAN_FILTER_ID_HALFWORD(HALFWORD) ((HALFWORD) <= 0xFFFFU) #define IS_CAN_FILTER_BANK_DUAL(BANK) ((BANK) <= 27U) #define IS_CAN_FILTER_BANK_SINGLE(BANK) ((BANK) <= 13U) #define IS_CAN_FILTER_MODE(MODE) (((MODE) == CAN_FILTERMODE_IDMASK) || \ ((MODE) == CAN_FILTERMODE_IDLIST)) #define IS_CAN_FILTER_SCALE(SCALE) (((SCALE) == CAN_FILTERSCALE_16BIT) || \ ((SCALE) == CAN_FILTERSCALE_32BIT)) #define IS_CAN_FILTER_ACTIVATION(ACTIVATION) (((ACTIVATION) == CAN_FILTER_DISABLE) || \ ((ACTIVATION) == CAN_FILTER_ENABLE)) #define IS_CAN_FILTER_FIFO(FIFO) (((FIFO) == CAN_FILTER_FIFO0) || \ ((FIFO) == CAN_FILTER_FIFO1)) #define IS_CAN_TX_MAILBOX(TRANSMITMAILBOX) (((TRANSMITMAILBOX) == CAN_TX_MAILBOX0 ) || \ ((TRANSMITMAILBOX) == CAN_TX_MAILBOX1 ) || \ ((TRANSMITMAILBOX) == CAN_TX_MAILBOX2 )) #define IS_CAN_TX_MAILBOX_LIST(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= (CAN_TX_MAILBOX0 | CAN_TX_MAILBOX1 | CAN_TX_MAILBOX2)) #define IS_CAN_STDID(STDID) ((STDID) <= 0x7FFU) #define IS_CAN_EXTID(EXTID) ((EXTID) <= 0x1FFFFFFFU) #define IS_CAN_DLC(DLC) ((DLC) <= 8U) #define IS_CAN_IDTYPE(IDTYPE) (((IDTYPE) == CAN_ID_STD) || \ ((IDTYPE) == CAN_ID_EXT)) #define IS_CAN_RTR(RTR) (((RTR) == CAN_RTR_DATA) || ((RTR) == CAN_RTR_REMOTE)) #define IS_CAN_RX_FIFO(FIFO) (((FIFO) == CAN_RX_FIFO0) || ((FIFO) == CAN_RX_FIFO1)) #define IS_CAN_IT(IT) ((IT) <= (CAN_IT_TX_MAILBOX_EMPTY | CAN_IT_RX_FIFO0_MSG_PENDING | \ CAN_IT_RX_FIFO0_FULL | CAN_IT_RX_FIFO0_OVERRUN | \ CAN_IT_RX_FIFO1_MSG_PENDING | CAN_IT_RX_FIFO1_FULL | \ CAN_IT_RX_FIFO1_OVERRUN | CAN_IT_WAKEUP | \ CAN_IT_SLEEP_ACK | CAN_IT_ERROR_WARNING | \ CAN_IT_ERROR_PASSIVE | CAN_IT_BUSOFF | \ CAN_IT_LAST_ERROR_CODE | CAN_IT_ERROR)) /** * @} */ /* End of private macros -----------------------------------------------------*/ /** * @} */ #endif /* CAN1 */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_CAN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_cortex.h * @author MCD Application Team * @brief Header file of CORTEX HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_CORTEX_H #define __STM32F4xx_HAL_CORTEX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup CORTEX * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup CORTEX_Exported_Types Cortex Exported Types * @{ */ #if (__MPU_PRESENT == 1U) /** @defgroup CORTEX_MPU_Region_Initialization_Structure_definition MPU Region Initialization Structure Definition * @brief MPU Region initialization structure * @{ */ typedef struct { uint8_t Enable; /*!< Specifies the status of the region. This parameter can be a value of @ref CORTEX_MPU_Region_Enable */ uint8_t Number; /*!< Specifies the number of the region to protect. This parameter can be a value of @ref CORTEX_MPU_Region_Number */ uint32_t BaseAddress; /*!< Specifies the base address of the region to protect. */ uint8_t Size; /*!< Specifies the size of the region to protect. This parameter can be a value of @ref CORTEX_MPU_Region_Size */ uint8_t SubRegionDisable; /*!< Specifies the number of the subregion protection to disable. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF */ uint8_t TypeExtField; /*!< Specifies the TEX field level. This parameter can be a value of @ref CORTEX_MPU_TEX_Levels */ uint8_t AccessPermission; /*!< Specifies the region access permission type. This parameter can be a value of @ref CORTEX_MPU_Region_Permission_Attributes */ uint8_t DisableExec; /*!< Specifies the instruction access status. This parameter can be a value of @ref CORTEX_MPU_Instruction_Access */ uint8_t IsShareable; /*!< Specifies the shareability status of the protected region. This parameter can be a value of @ref CORTEX_MPU_Access_Shareable */ uint8_t IsCacheable; /*!< Specifies the cacheable status of the region protected. This parameter can be a value of @ref CORTEX_MPU_Access_Cacheable */ uint8_t IsBufferable; /*!< Specifies the bufferable status of the protected region. This parameter can be a value of @ref CORTEX_MPU_Access_Bufferable */ }MPU_Region_InitTypeDef; /** * @} */ #endif /* __MPU_PRESENT */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup CORTEX_Exported_Constants CORTEX Exported Constants * @{ */ /** @defgroup CORTEX_Preemption_Priority_Group CORTEX Preemption Priority Group * @{ */ #define NVIC_PRIORITYGROUP_0 0x00000007U /*!< 0 bits for pre-emption priority 4 bits for subpriority */ #define NVIC_PRIORITYGROUP_1 0x00000006U /*!< 1 bits for pre-emption priority 3 bits for subpriority */ #define NVIC_PRIORITYGROUP_2 0x00000005U /*!< 2 bits for pre-emption priority 2 bits for subpriority */ #define NVIC_PRIORITYGROUP_3 0x00000004U /*!< 3 bits for pre-emption priority 1 bits for subpriority */ #define NVIC_PRIORITYGROUP_4 0x00000003U /*!< 4 bits for pre-emption priority 0 bits for subpriority */ /** * @} */ /** @defgroup CORTEX_SysTick_clock_source CORTEX _SysTick clock source * @{ */ #define SYSTICK_CLKSOURCE_HCLK_DIV8 0x00000000U #define SYSTICK_CLKSOURCE_HCLK 0x00000004U /** * @} */ #if (__MPU_PRESENT == 1) /** @defgroup CORTEX_MPU_HFNMI_PRIVDEF_Control MPU HFNMI and PRIVILEGED Access control * @{ */ #define MPU_HFNMI_PRIVDEF_NONE 0x00000000U #define MPU_HARDFAULT_NMI MPU_CTRL_HFNMIENA_Msk #define MPU_PRIVILEGED_DEFAULT MPU_CTRL_PRIVDEFENA_Msk #define MPU_HFNMI_PRIVDEF (MPU_CTRL_HFNMIENA_Msk | MPU_CTRL_PRIVDEFENA_Msk) /** * @} */ /** @defgroup CORTEX_MPU_Region_Enable CORTEX MPU Region Enable * @{ */ #define MPU_REGION_ENABLE ((uint8_t)0x01) #define MPU_REGION_DISABLE ((uint8_t)0x00) /** * @} */ /** @defgroup CORTEX_MPU_Instruction_Access CORTEX MPU Instruction Access * @{ */ #define MPU_INSTRUCTION_ACCESS_ENABLE ((uint8_t)0x00) #define MPU_INSTRUCTION_ACCESS_DISABLE ((uint8_t)0x01) /** * @} */ /** @defgroup CORTEX_MPU_Access_Shareable CORTEX MPU Instruction Access Shareable * @{ */ #define MPU_ACCESS_SHAREABLE ((uint8_t)0x01) #define MPU_ACCESS_NOT_SHAREABLE ((uint8_t)0x00) /** * @} */ /** @defgroup CORTEX_MPU_Access_Cacheable CORTEX MPU Instruction Access Cacheable * @{ */ #define MPU_ACCESS_CACHEABLE ((uint8_t)0x01) #define MPU_ACCESS_NOT_CACHEABLE ((uint8_t)0x00) /** * @} */ /** @defgroup CORTEX_MPU_Access_Bufferable CORTEX MPU Instruction Access Bufferable * @{ */ #define MPU_ACCESS_BUFFERABLE ((uint8_t)0x01) #define MPU_ACCESS_NOT_BUFFERABLE ((uint8_t)0x00) /** * @} */ /** @defgroup CORTEX_MPU_TEX_Levels MPU TEX Levels * @{ */ #define MPU_TEX_LEVEL0 ((uint8_t)0x00) #define MPU_TEX_LEVEL1 ((uint8_t)0x01) #define MPU_TEX_LEVEL2 ((uint8_t)0x02) /** * @} */ /** @defgroup CORTEX_MPU_Region_Size CORTEX MPU Region Size * @{ */ #define MPU_REGION_SIZE_32B ((uint8_t)0x04) #define MPU_REGION_SIZE_64B ((uint8_t)0x05) #define MPU_REGION_SIZE_128B ((uint8_t)0x06) #define MPU_REGION_SIZE_256B ((uint8_t)0x07) #define MPU_REGION_SIZE_512B ((uint8_t)0x08) #define MPU_REGION_SIZE_1KB ((uint8_t)0x09) #define MPU_REGION_SIZE_2KB ((uint8_t)0x0A) #define MPU_REGION_SIZE_4KB ((uint8_t)0x0B) #define MPU_REGION_SIZE_8KB ((uint8_t)0x0C) #define MPU_REGION_SIZE_16KB ((uint8_t)0x0D) #define MPU_REGION_SIZE_32KB ((uint8_t)0x0E) #define MPU_REGION_SIZE_64KB ((uint8_t)0x0F) #define MPU_REGION_SIZE_128KB ((uint8_t)0x10) #define MPU_REGION_SIZE_256KB ((uint8_t)0x11) #define MPU_REGION_SIZE_512KB ((uint8_t)0x12) #define MPU_REGION_SIZE_1MB ((uint8_t)0x13) #define MPU_REGION_SIZE_2MB ((uint8_t)0x14) #define MPU_REGION_SIZE_4MB ((uint8_t)0x15) #define MPU_REGION_SIZE_8MB ((uint8_t)0x16) #define MPU_REGION_SIZE_16MB ((uint8_t)0x17) #define MPU_REGION_SIZE_32MB ((uint8_t)0x18) #define MPU_REGION_SIZE_64MB ((uint8_t)0x19) #define MPU_REGION_SIZE_128MB ((uint8_t)0x1A) #define MPU_REGION_SIZE_256MB ((uint8_t)0x1B) #define MPU_REGION_SIZE_512MB ((uint8_t)0x1C) #define MPU_REGION_SIZE_1GB ((uint8_t)0x1D) #define MPU_REGION_SIZE_2GB ((uint8_t)0x1E) #define MPU_REGION_SIZE_4GB ((uint8_t)0x1F) /** * @} */ /** @defgroup CORTEX_MPU_Region_Permission_Attributes CORTEX MPU Region Permission Attributes * @{ */ #define MPU_REGION_NO_ACCESS ((uint8_t)0x00) #define MPU_REGION_PRIV_RW ((uint8_t)0x01) #define MPU_REGION_PRIV_RW_URO ((uint8_t)0x02) #define MPU_REGION_FULL_ACCESS ((uint8_t)0x03) #define MPU_REGION_PRIV_RO ((uint8_t)0x05) #define MPU_REGION_PRIV_RO_URO ((uint8_t)0x06) /** * @} */ /** @defgroup CORTEX_MPU_Region_Number CORTEX MPU Region Number * @{ */ #define MPU_REGION_NUMBER0 ((uint8_t)0x00) #define MPU_REGION_NUMBER1 ((uint8_t)0x01) #define MPU_REGION_NUMBER2 ((uint8_t)0x02) #define MPU_REGION_NUMBER3 ((uint8_t)0x03) #define MPU_REGION_NUMBER4 ((uint8_t)0x04) #define MPU_REGION_NUMBER5 ((uint8_t)0x05) #define MPU_REGION_NUMBER6 ((uint8_t)0x06) #define MPU_REGION_NUMBER7 ((uint8_t)0x07) /** * @} */ #endif /* __MPU_PRESENT */ /** * @} */ /* Exported Macros -----------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup CORTEX_Exported_Functions * @{ */ /** @addtogroup CORTEX_Exported_Functions_Group1 * @{ */ /* Initialization and de-initialization functions *****************************/ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup); void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority); void HAL_NVIC_EnableIRQ(IRQn_Type IRQn); void HAL_NVIC_DisableIRQ(IRQn_Type IRQn); void HAL_NVIC_SystemReset(void); uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb); /** * @} */ /** @addtogroup CORTEX_Exported_Functions_Group2 * @{ */ /* Peripheral Control functions ***********************************************/ uint32_t HAL_NVIC_GetPriorityGrouping(void); void HAL_NVIC_GetPriority(IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority); uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn); void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn); void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn); uint32_t HAL_NVIC_GetActive(IRQn_Type IRQn); void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource); void HAL_SYSTICK_IRQHandler(void); void HAL_SYSTICK_Callback(void); #if (__MPU_PRESENT == 1U) void HAL_MPU_Enable(uint32_t MPU_Control); void HAL_MPU_Disable(void); void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init); #endif /* __MPU_PRESENT */ /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @defgroup CORTEX_Private_Macros CORTEX Private Macros * @{ */ #define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PRIORITYGROUP_0) || \ ((GROUP) == NVIC_PRIORITYGROUP_1) || \ ((GROUP) == NVIC_PRIORITYGROUP_2) || \ ((GROUP) == NVIC_PRIORITYGROUP_3) || \ ((GROUP) == NVIC_PRIORITYGROUP_4)) #define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x10U) #define IS_NVIC_SUB_PRIORITY(PRIORITY) ((PRIORITY) < 0x10U) #define IS_NVIC_DEVICE_IRQ(IRQ) ((IRQ) >= (IRQn_Type)0x00U) #define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SYSTICK_CLKSOURCE_HCLK) || \ ((SOURCE) == SYSTICK_CLKSOURCE_HCLK_DIV8)) #if (__MPU_PRESENT == 1U) #define IS_MPU_REGION_ENABLE(STATE) (((STATE) == MPU_REGION_ENABLE) || \ ((STATE) == MPU_REGION_DISABLE)) #define IS_MPU_INSTRUCTION_ACCESS(STATE) (((STATE) == MPU_INSTRUCTION_ACCESS_ENABLE) || \ ((STATE) == MPU_INSTRUCTION_ACCESS_DISABLE)) #define IS_MPU_ACCESS_SHAREABLE(STATE) (((STATE) == MPU_ACCESS_SHAREABLE) || \ ((STATE) == MPU_ACCESS_NOT_SHAREABLE)) #define IS_MPU_ACCESS_CACHEABLE(STATE) (((STATE) == MPU_ACCESS_CACHEABLE) || \ ((STATE) == MPU_ACCESS_NOT_CACHEABLE)) #define IS_MPU_ACCESS_BUFFERABLE(STATE) (((STATE) == MPU_ACCESS_BUFFERABLE) || \ ((STATE) == MPU_ACCESS_NOT_BUFFERABLE)) #define IS_MPU_TEX_LEVEL(TYPE) (((TYPE) == MPU_TEX_LEVEL0) || \ ((TYPE) == MPU_TEX_LEVEL1) || \ ((TYPE) == MPU_TEX_LEVEL2)) #define IS_MPU_REGION_PERMISSION_ATTRIBUTE(TYPE) (((TYPE) == MPU_REGION_NO_ACCESS) || \ ((TYPE) == MPU_REGION_PRIV_RW) || \ ((TYPE) == MPU_REGION_PRIV_RW_URO) || \ ((TYPE) == MPU_REGION_FULL_ACCESS) || \ ((TYPE) == MPU_REGION_PRIV_RO) || \ ((TYPE) == MPU_REGION_PRIV_RO_URO)) #define IS_MPU_REGION_NUMBER(NUMBER) (((NUMBER) == MPU_REGION_NUMBER0) || \ ((NUMBER) == MPU_REGION_NUMBER1) || \ ((NUMBER) == MPU_REGION_NUMBER2) || \ ((NUMBER) == MPU_REGION_NUMBER3) || \ ((NUMBER) == MPU_REGION_NUMBER4) || \ ((NUMBER) == MPU_REGION_NUMBER5) || \ ((NUMBER) == MPU_REGION_NUMBER6) || \ ((NUMBER) == MPU_REGION_NUMBER7)) #define IS_MPU_REGION_SIZE(SIZE) (((SIZE) == MPU_REGION_SIZE_32B) || \ ((SIZE) == MPU_REGION_SIZE_64B) || \ ((SIZE) == MPU_REGION_SIZE_128B) || \ ((SIZE) == MPU_REGION_SIZE_256B) || \ ((SIZE) == MPU_REGION_SIZE_512B) || \ ((SIZE) == MPU_REGION_SIZE_1KB) || \ ((SIZE) == MPU_REGION_SIZE_2KB) || \ ((SIZE) == MPU_REGION_SIZE_4KB) || \ ((SIZE) == MPU_REGION_SIZE_8KB) || \ ((SIZE) == MPU_REGION_SIZE_16KB) || \ ((SIZE) == MPU_REGION_SIZE_32KB) || \ ((SIZE) == MPU_REGION_SIZE_64KB) || \ ((SIZE) == MPU_REGION_SIZE_128KB) || \ ((SIZE) == MPU_REGION_SIZE_256KB) || \ ((SIZE) == MPU_REGION_SIZE_512KB) || \ ((SIZE) == MPU_REGION_SIZE_1MB) || \ ((SIZE) == MPU_REGION_SIZE_2MB) || \ ((SIZE) == MPU_REGION_SIZE_4MB) || \ ((SIZE) == MPU_REGION_SIZE_8MB) || \ ((SIZE) == MPU_REGION_SIZE_16MB) || \ ((SIZE) == MPU_REGION_SIZE_32MB) || \ ((SIZE) == MPU_REGION_SIZE_64MB) || \ ((SIZE) == MPU_REGION_SIZE_128MB) || \ ((SIZE) == MPU_REGION_SIZE_256MB) || \ ((SIZE) == MPU_REGION_SIZE_512MB) || \ ((SIZE) == MPU_REGION_SIZE_1GB) || \ ((SIZE) == MPU_REGION_SIZE_2GB) || \ ((SIZE) == MPU_REGION_SIZE_4GB)) #define IS_MPU_SUB_REGION_DISABLE(SUBREGION) ((SUBREGION) < (uint16_t)0x00FF) #endif /* __MPU_PRESENT */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_CORTEX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_def.h * @author MCD Application Team * @brief This file contains HAL common defines, enumeration, macros and * structures definitions. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_DEF #define __STM32F4xx_HAL_DEF #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "Legacy/stm32_hal_legacy.h" #include /* Exported types ------------------------------------------------------------*/ /** * @brief HAL Status structures definition */ typedef enum { HAL_OK = 0x00U, HAL_ERROR = 0x01U, HAL_BUSY = 0x02U, HAL_TIMEOUT = 0x03U } HAL_StatusTypeDef; /** * @brief HAL Lock structures definition */ typedef enum { HAL_UNLOCKED = 0x00U, HAL_LOCKED = 0x01U } HAL_LockTypeDef; /* Exported macro ------------------------------------------------------------*/ #define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */ #define HAL_MAX_DELAY 0xFFFFFFFFU #define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == (BIT)) #define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U) #define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \ do{ \ (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \ (__DMA_HANDLE__).Parent = (__HANDLE__); \ } while(0U) /** @brief Reset the Handle's State field. * @param __HANDLE__ specifies the Peripheral Handle. * @note This macro can be used for the following purpose: * - When the Handle is declared as local variable; before passing it as parameter * to HAL_PPP_Init() for the first time, it is mandatory to use this macro * to set to 0 the Handle's "State" field. * Otherwise, "State" field may have any random value and the first time the function * HAL_PPP_Init() is called, the low level hardware initialization will be missed * (i.e. HAL_PPP_MspInit() will not be executed). * - When there is a need to reconfigure the low level hardware: instead of calling * HAL_PPP_DeInit() then HAL_PPP_Init(), user can make a call to this macro then HAL_PPP_Init(). * In this later function, when the Handle's "State" field is set to 0, it will execute the function * HAL_PPP_MspInit() which will reconfigure the low level hardware. * @retval None */ #define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U) #if (USE_RTOS == 1U) /* Reserved for future use */ #error "USE_RTOS should be 0 in the current HAL release" #else #define __HAL_LOCK(__HANDLE__) \ do{ \ if((__HANDLE__)->Lock == HAL_LOCKED) \ { \ return HAL_BUSY; \ } \ else \ { \ (__HANDLE__)->Lock = HAL_LOCKED; \ } \ }while (0U) #define __HAL_UNLOCK(__HANDLE__) \ do{ \ (__HANDLE__)->Lock = HAL_UNLOCKED; \ }while (0U) #endif /* USE_RTOS */ #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */ #ifndef __weak #define __weak __attribute__((weak)) #endif #ifndef __packed #define __packed __attribute__((packed)) #endif #elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */ #ifndef __weak #define __weak __attribute__((weak)) #endif /* __weak */ #ifndef __packed #define __packed __attribute__((__packed__)) #endif /* __packed */ #endif /* __GNUC__ */ /* Macro to get variable aligned on 4-bytes, for __ICCARM__ the directive "#pragma data_alignment=4" must be used instead */ #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */ #ifndef __ALIGN_BEGIN #define __ALIGN_BEGIN #endif #ifndef __ALIGN_END #define __ALIGN_END __attribute__ ((aligned (4))) #endif #elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */ #ifndef __ALIGN_END #define __ALIGN_END __attribute__ ((aligned (4))) #endif /* __ALIGN_END */ #ifndef __ALIGN_BEGIN #define __ALIGN_BEGIN #endif /* __ALIGN_BEGIN */ #else #ifndef __ALIGN_END #define __ALIGN_END #endif /* __ALIGN_END */ #ifndef __ALIGN_BEGIN #if defined (__CC_ARM) /* ARM Compiler V5*/ #define __ALIGN_BEGIN __align(4) #elif defined (__ICCARM__) /* IAR Compiler */ #define __ALIGN_BEGIN #endif /* __CC_ARM */ #endif /* __ALIGN_BEGIN */ #endif /* __GNUC__ */ /** * @brief __RAM_FUNC definition */ #if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) /* ARM Compiler V4/V5 and V6 -------------------------- RAM functions are defined using the toolchain options. Functions that are executed in RAM should reside in a separate source module. Using the 'Options for File' dialog you can simply change the 'Code / Const' area of a module to a memory space in physical RAM. Available memory areas are declared in the 'Target' tab of the 'Options for Target' dialog. */ #define __RAM_FUNC #elif defined ( __ICCARM__ ) /* ICCARM Compiler --------------- RAM functions are defined using a specific toolchain keyword "__ramfunc". */ #define __RAM_FUNC __ramfunc #elif defined ( __GNUC__ ) /* GNU Compiler ------------ RAM functions are defined using a specific toolchain attribute "__attribute__((section(".RamFunc")))". */ #define __RAM_FUNC __attribute__((section(".RamFunc"))) #endif /** * @brief __NOINLINE definition */ #if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined ( __GNUC__ ) /* ARM V4/V5 and V6 & GNU Compiler ------------------------------- */ #define __NOINLINE __attribute__ ( (noinline) ) #elif defined ( __ICCARM__ ) /* ICCARM Compiler --------------- */ #define __NOINLINE _Pragma("optimize = no_inline") #endif #ifdef __cplusplus } #endif #endif /* ___STM32F4xx_HAL_DEF */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_dma.h * @author MCD Application Team * @brief Header file of DMA HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_DMA_H #define __STM32F4xx_HAL_DMA_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup DMA * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup DMA_Exported_Types DMA Exported Types * @brief DMA Exported Types * @{ */ /** * @brief DMA Configuration Structure definition */ typedef struct { uint32_t Channel; /*!< Specifies the channel used for the specified stream. This parameter can be a value of @ref DMA_Channel_selection */ uint32_t Direction; /*!< Specifies if the data will be transferred from memory to peripheral, from memory to memory or from peripheral to memory. This parameter can be a value of @ref DMA_Data_transfer_direction */ uint32_t PeriphInc; /*!< Specifies whether the Peripheral address register should be incremented or not. This parameter can be a value of @ref DMA_Peripheral_incremented_mode */ uint32_t MemInc; /*!< Specifies whether the memory address register should be incremented or not. This parameter can be a value of @ref DMA_Memory_incremented_mode */ uint32_t PeriphDataAlignment; /*!< Specifies the Peripheral data width. This parameter can be a value of @ref DMA_Peripheral_data_size */ uint32_t MemDataAlignment; /*!< Specifies the Memory data width. This parameter can be a value of @ref DMA_Memory_data_size */ uint32_t Mode; /*!< Specifies the operation mode of the DMAy Streamx. This parameter can be a value of @ref DMA_mode @note The circular buffer mode cannot be used if the memory-to-memory data transfer is configured on the selected Stream */ uint32_t Priority; /*!< Specifies the software priority for the DMAy Streamx. This parameter can be a value of @ref DMA_Priority_level */ uint32_t FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified stream. This parameter can be a value of @ref DMA_FIFO_direct_mode @note The Direct mode (FIFO mode disabled) cannot be used if the memory-to-memory data transfer is configured on the selected stream */ uint32_t FIFOThreshold; /*!< Specifies the FIFO threshold level. This parameter can be a value of @ref DMA_FIFO_threshold_level */ uint32_t MemBurst; /*!< Specifies the Burst transfer configuration for the memory transfers. It specifies the amount of data to be transferred in a single non interruptible transaction. This parameter can be a value of @ref DMA_Memory_burst @note The burst mode is possible only if the address Increment mode is enabled. */ uint32_t PeriphBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers. It specifies the amount of data to be transferred in a single non interruptible transaction. This parameter can be a value of @ref DMA_Peripheral_burst @note The burst mode is possible only if the address Increment mode is enabled. */ }DMA_InitTypeDef; /** * @brief HAL DMA State structures definition */ typedef enum { HAL_DMA_STATE_RESET = 0x00U, /*!< DMA not yet initialized or disabled */ HAL_DMA_STATE_READY = 0x01U, /*!< DMA initialized and ready for use */ HAL_DMA_STATE_BUSY = 0x02U, /*!< DMA process is ongoing */ HAL_DMA_STATE_TIMEOUT = 0x03U, /*!< DMA timeout state */ HAL_DMA_STATE_ERROR = 0x04U, /*!< DMA error state */ HAL_DMA_STATE_ABORT = 0x05U, /*!< DMA Abort state */ }HAL_DMA_StateTypeDef; /** * @brief HAL DMA Error Code structure definition */ typedef enum { HAL_DMA_FULL_TRANSFER = 0x00U, /*!< Full transfer */ HAL_DMA_HALF_TRANSFER = 0x01U /*!< Half Transfer */ }HAL_DMA_LevelCompleteTypeDef; /** * @brief HAL DMA Error Code structure definition */ typedef enum { HAL_DMA_XFER_CPLT_CB_ID = 0x00U, /*!< Full transfer */ HAL_DMA_XFER_HALFCPLT_CB_ID = 0x01U, /*!< Half Transfer */ HAL_DMA_XFER_M1CPLT_CB_ID = 0x02U, /*!< M1 Full Transfer */ HAL_DMA_XFER_M1HALFCPLT_CB_ID = 0x03U, /*!< M1 Half Transfer */ HAL_DMA_XFER_ERROR_CB_ID = 0x04U, /*!< Error */ HAL_DMA_XFER_ABORT_CB_ID = 0x05U, /*!< Abort */ HAL_DMA_XFER_ALL_CB_ID = 0x06U /*!< All */ }HAL_DMA_CallbackIDTypeDef; /** * @brief DMA handle Structure definition */ typedef struct __DMA_HandleTypeDef { DMA_Stream_TypeDef *Instance; /*!< Register base address */ DMA_InitTypeDef Init; /*!< DMA communication parameters */ HAL_LockTypeDef Lock; /*!< DMA locking object */ __IO HAL_DMA_StateTypeDef State; /*!< DMA transfer state */ void *Parent; /*!< Parent object state */ void (* XferCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer complete callback */ void (* XferHalfCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA Half transfer complete callback */ void (* XferM1CpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer complete Memory1 callback */ void (* XferM1HalfCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer Half complete Memory1 callback */ void (* XferErrorCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer error callback */ void (* XferAbortCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer Abort callback */ __IO uint32_t ErrorCode; /*!< DMA Error code */ uint32_t StreamBaseAddress; /*!< DMA Stream Base Address */ uint32_t StreamIndex; /*!< DMA Stream Index */ }DMA_HandleTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup DMA_Exported_Constants DMA Exported Constants * @brief DMA Exported constants * @{ */ /** @defgroup DMA_Error_Code DMA Error Code * @brief DMA Error Code * @{ */ #define HAL_DMA_ERROR_NONE 0x00000000U /*!< No error */ #define HAL_DMA_ERROR_TE 0x00000001U /*!< Transfer error */ #define HAL_DMA_ERROR_FE 0x00000002U /*!< FIFO error */ #define HAL_DMA_ERROR_DME 0x00000004U /*!< Direct Mode error */ #define HAL_DMA_ERROR_TIMEOUT 0x00000020U /*!< Timeout error */ #define HAL_DMA_ERROR_PARAM 0x00000040U /*!< Parameter error */ #define HAL_DMA_ERROR_NO_XFER 0x00000080U /*!< Abort requested with no Xfer ongoing */ #define HAL_DMA_ERROR_NOT_SUPPORTED 0x00000100U /*!< Not supported mode */ /** * @} */ /** @defgroup DMA_Channel_selection DMA Channel selection * @brief DMA channel selection * @{ */ #define DMA_CHANNEL_0 0x00000000U /*!< DMA Channel 0 */ #define DMA_CHANNEL_1 0x02000000U /*!< DMA Channel 1 */ #define DMA_CHANNEL_2 0x04000000U /*!< DMA Channel 2 */ #define DMA_CHANNEL_3 0x06000000U /*!< DMA Channel 3 */ #define DMA_CHANNEL_4 0x08000000U /*!< DMA Channel 4 */ #define DMA_CHANNEL_5 0x0A000000U /*!< DMA Channel 5 */ #define DMA_CHANNEL_6 0x0C000000U /*!< DMA Channel 6 */ #define DMA_CHANNEL_7 0x0E000000U /*!< DMA Channel 7 */ #if defined (DMA_SxCR_CHSEL_3) #define DMA_CHANNEL_8 0x10000000U /*!< DMA Channel 8 */ #define DMA_CHANNEL_9 0x12000000U /*!< DMA Channel 9 */ #define DMA_CHANNEL_10 0x14000000U /*!< DMA Channel 10 */ #define DMA_CHANNEL_11 0x16000000U /*!< DMA Channel 11 */ #define DMA_CHANNEL_12 0x18000000U /*!< DMA Channel 12 */ #define DMA_CHANNEL_13 0x1A000000U /*!< DMA Channel 13 */ #define DMA_CHANNEL_14 0x1C000000U /*!< DMA Channel 14 */ #define DMA_CHANNEL_15 0x1E000000U /*!< DMA Channel 15 */ #endif /* DMA_SxCR_CHSEL_3 */ /** * @} */ /** @defgroup DMA_Data_transfer_direction DMA Data transfer direction * @brief DMA data transfer direction * @{ */ #define DMA_PERIPH_TO_MEMORY 0x00000000U /*!< Peripheral to memory direction */ #define DMA_MEMORY_TO_PERIPH ((uint32_t)DMA_SxCR_DIR_0) /*!< Memory to peripheral direction */ #define DMA_MEMORY_TO_MEMORY ((uint32_t)DMA_SxCR_DIR_1) /*!< Memory to memory direction */ /** * @} */ /** @defgroup DMA_Peripheral_incremented_mode DMA Peripheral incremented mode * @brief DMA peripheral incremented mode * @{ */ #define DMA_PINC_ENABLE ((uint32_t)DMA_SxCR_PINC) /*!< Peripheral increment mode enable */ #define DMA_PINC_DISABLE 0x00000000U /*!< Peripheral increment mode disable */ /** * @} */ /** @defgroup DMA_Memory_incremented_mode DMA Memory incremented mode * @brief DMA memory incremented mode * @{ */ #define DMA_MINC_ENABLE ((uint32_t)DMA_SxCR_MINC) /*!< Memory increment mode enable */ #define DMA_MINC_DISABLE 0x00000000U /*!< Memory increment mode disable */ /** * @} */ /** @defgroup DMA_Peripheral_data_size DMA Peripheral data size * @brief DMA peripheral data size * @{ */ #define DMA_PDATAALIGN_BYTE 0x00000000U /*!< Peripheral data alignment: Byte */ #define DMA_PDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_PSIZE_0) /*!< Peripheral data alignment: HalfWord */ #define DMA_PDATAALIGN_WORD ((uint32_t)DMA_SxCR_PSIZE_1) /*!< Peripheral data alignment: Word */ /** * @} */ /** @defgroup DMA_Memory_data_size DMA Memory data size * @brief DMA memory data size * @{ */ #define DMA_MDATAALIGN_BYTE 0x00000000U /*!< Memory data alignment: Byte */ #define DMA_MDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_MSIZE_0) /*!< Memory data alignment: HalfWord */ #define DMA_MDATAALIGN_WORD ((uint32_t)DMA_SxCR_MSIZE_1) /*!< Memory data alignment: Word */ /** * @} */ /** @defgroup DMA_mode DMA mode * @brief DMA mode * @{ */ #define DMA_NORMAL 0x00000000U /*!< Normal mode */ #define DMA_CIRCULAR ((uint32_t)DMA_SxCR_CIRC) /*!< Circular mode */ #define DMA_PFCTRL ((uint32_t)DMA_SxCR_PFCTRL) /*!< Peripheral flow control mode */ /** * @} */ /** @defgroup DMA_Priority_level DMA Priority level * @brief DMA priority levels * @{ */ #define DMA_PRIORITY_LOW 0x00000000U /*!< Priority level: Low */ #define DMA_PRIORITY_MEDIUM ((uint32_t)DMA_SxCR_PL_0) /*!< Priority level: Medium */ #define DMA_PRIORITY_HIGH ((uint32_t)DMA_SxCR_PL_1) /*!< Priority level: High */ #define DMA_PRIORITY_VERY_HIGH ((uint32_t)DMA_SxCR_PL) /*!< Priority level: Very High */ /** * @} */ /** @defgroup DMA_FIFO_direct_mode DMA FIFO direct mode * @brief DMA FIFO direct mode * @{ */ #define DMA_FIFOMODE_DISABLE 0x00000000U /*!< FIFO mode disable */ #define DMA_FIFOMODE_ENABLE ((uint32_t)DMA_SxFCR_DMDIS) /*!< FIFO mode enable */ /** * @} */ /** @defgroup DMA_FIFO_threshold_level DMA FIFO threshold level * @brief DMA FIFO level * @{ */ #define DMA_FIFO_THRESHOLD_1QUARTERFULL 0x00000000U /*!< FIFO threshold 1 quart full configuration */ #define DMA_FIFO_THRESHOLD_HALFFULL ((uint32_t)DMA_SxFCR_FTH_0) /*!< FIFO threshold half full configuration */ #define DMA_FIFO_THRESHOLD_3QUARTERSFULL ((uint32_t)DMA_SxFCR_FTH_1) /*!< FIFO threshold 3 quarts full configuration */ #define DMA_FIFO_THRESHOLD_FULL ((uint32_t)DMA_SxFCR_FTH) /*!< FIFO threshold full configuration */ /** * @} */ /** @defgroup DMA_Memory_burst DMA Memory burst * @brief DMA memory burst * @{ */ #define DMA_MBURST_SINGLE 0x00000000U #define DMA_MBURST_INC4 ((uint32_t)DMA_SxCR_MBURST_0) #define DMA_MBURST_INC8 ((uint32_t)DMA_SxCR_MBURST_1) #define DMA_MBURST_INC16 ((uint32_t)DMA_SxCR_MBURST) /** * @} */ /** @defgroup DMA_Peripheral_burst DMA Peripheral burst * @brief DMA peripheral burst * @{ */ #define DMA_PBURST_SINGLE 0x00000000U #define DMA_PBURST_INC4 ((uint32_t)DMA_SxCR_PBURST_0) #define DMA_PBURST_INC8 ((uint32_t)DMA_SxCR_PBURST_1) #define DMA_PBURST_INC16 ((uint32_t)DMA_SxCR_PBURST) /** * @} */ /** @defgroup DMA_interrupt_enable_definitions DMA interrupt enable definitions * @brief DMA interrupts definition * @{ */ #define DMA_IT_TC ((uint32_t)DMA_SxCR_TCIE) #define DMA_IT_HT ((uint32_t)DMA_SxCR_HTIE) #define DMA_IT_TE ((uint32_t)DMA_SxCR_TEIE) #define DMA_IT_DME ((uint32_t)DMA_SxCR_DMEIE) #define DMA_IT_FE 0x00000080U /** * @} */ /** @defgroup DMA_flag_definitions DMA flag definitions * @brief DMA flag definitions * @{ */ #define DMA_FLAG_FEIF0_4 0x00000001U #define DMA_FLAG_DMEIF0_4 0x00000004U #define DMA_FLAG_TEIF0_4 0x00000008U #define DMA_FLAG_HTIF0_4 0x00000010U #define DMA_FLAG_TCIF0_4 0x00000020U #define DMA_FLAG_FEIF1_5 0x00000040U #define DMA_FLAG_DMEIF1_5 0x00000100U #define DMA_FLAG_TEIF1_5 0x00000200U #define DMA_FLAG_HTIF1_5 0x00000400U #define DMA_FLAG_TCIF1_5 0x00000800U #define DMA_FLAG_FEIF2_6 0x00010000U #define DMA_FLAG_DMEIF2_6 0x00040000U #define DMA_FLAG_TEIF2_6 0x00080000U #define DMA_FLAG_HTIF2_6 0x00100000U #define DMA_FLAG_TCIF2_6 0x00200000U #define DMA_FLAG_FEIF3_7 0x00400000U #define DMA_FLAG_DMEIF3_7 0x01000000U #define DMA_FLAG_TEIF3_7 0x02000000U #define DMA_FLAG_HTIF3_7 0x04000000U #define DMA_FLAG_TCIF3_7 0x08000000U /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @brief Reset DMA handle state * @param __HANDLE__ specifies the DMA handle. * @retval None */ #define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET) /** * @brief Return the current DMA Stream FIFO filled level. * @param __HANDLE__ DMA handle * @retval The FIFO filling state. * - DMA_FIFOStatus_Less1QuarterFull: when FIFO is less than 1 quarter-full * and not empty. * - DMA_FIFOStatus_1QuarterFull: if more than 1 quarter-full. * - DMA_FIFOStatus_HalfFull: if more than 1 half-full. * - DMA_FIFOStatus_3QuartersFull: if more than 3 quarters-full. * - DMA_FIFOStatus_Empty: when FIFO is empty * - DMA_FIFOStatus_Full: when FIFO is full */ #define __HAL_DMA_GET_FS(__HANDLE__) (((__HANDLE__)->Instance->FCR & (DMA_SxFCR_FS))) /** * @brief Enable the specified DMA Stream. * @param __HANDLE__ DMA handle * @retval None */ #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DMA_SxCR_EN) /** * @brief Disable the specified DMA Stream. * @param __HANDLE__ DMA handle * @retval None */ #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~DMA_SxCR_EN) /* Interrupt & Flag management */ /** * @brief Return the current DMA Stream transfer complete flag. * @param __HANDLE__ DMA handle * @retval The specified transfer complete flag index. */ #define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \ (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TCIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TCIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TCIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TCIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TCIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TCIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TCIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TCIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TCIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TCIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TCIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TCIF2_6 :\ DMA_FLAG_TCIF3_7) /** * @brief Return the current DMA Stream half transfer complete flag. * @param __HANDLE__ DMA handle * @retval The specified half transfer complete flag index. */ #define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\ (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_HTIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_HTIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_HTIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_HTIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_HTIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_HTIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_HTIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_HTIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_HTIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_HTIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_HTIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_HTIF2_6 :\ DMA_FLAG_HTIF3_7) /** * @brief Return the current DMA Stream transfer error flag. * @param __HANDLE__ DMA handle * @retval The specified transfer error flag index. */ #define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\ (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TEIF2_6 :\ DMA_FLAG_TEIF3_7) /** * @brief Return the current DMA Stream FIFO error flag. * @param __HANDLE__ DMA handle * @retval The specified FIFO error flag index. */ #define __HAL_DMA_GET_FE_FLAG_INDEX(__HANDLE__)\ (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_FEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_FEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_FEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_FEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_FEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_FEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_FEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_FEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_FEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_FEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_FEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_FEIF2_6 :\ DMA_FLAG_FEIF3_7) /** * @brief Return the current DMA Stream direct mode error flag. * @param __HANDLE__ DMA handle * @retval The specified direct mode error flag index. */ #define __HAL_DMA_GET_DME_FLAG_INDEX(__HANDLE__)\ (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_DMEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_DMEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_DMEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_DMEIF0_4 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_DMEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_DMEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_DMEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_DMEIF1_5 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_DMEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_DMEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_DMEIF2_6 :\ ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_DMEIF2_6 :\ DMA_FLAG_DMEIF3_7) /** * @brief Get the DMA Stream pending flags. * @param __HANDLE__ DMA handle * @param __FLAG__ Get the specified flag. * This parameter can be any combination of the following values: * @arg DMA_FLAG_TCIFx: Transfer complete flag. * @arg DMA_FLAG_HTIFx: Half transfer complete flag. * @arg DMA_FLAG_TEIFx: Transfer error flag. * @arg DMA_FLAG_DMEIFx: Direct mode error flag. * @arg DMA_FLAG_FEIFx: FIFO error flag. * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Stream flag. * @retval The state of FLAG (SET or RESET). */ #define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__)\ (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HISR & (__FLAG__)) :\ ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LISR & (__FLAG__)) :\ ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HISR & (__FLAG__)) : (DMA1->LISR & (__FLAG__))) /** * @brief Clear the DMA Stream pending flags. * @param __HANDLE__ DMA handle * @param __FLAG__ specifies the flag to clear. * This parameter can be any combination of the following values: * @arg DMA_FLAG_TCIFx: Transfer complete flag. * @arg DMA_FLAG_HTIFx: Half transfer complete flag. * @arg DMA_FLAG_TEIFx: Transfer error flag. * @arg DMA_FLAG_DMEIFx: Direct mode error flag. * @arg DMA_FLAG_FEIFx: FIFO error flag. * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Stream flag. * @retval None */ #define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) \ (((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HIFCR = (__FLAG__)) :\ ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LIFCR = (__FLAG__)) :\ ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HIFCR = (__FLAG__)) : (DMA1->LIFCR = (__FLAG__))) /** * @brief Enable the specified DMA Stream interrupts. * @param __HANDLE__ DMA handle * @param __INTERRUPT__ specifies the DMA interrupt sources to be enabled or disabled. * This parameter can be any combination of the following values: * @arg DMA_IT_TC: Transfer complete interrupt mask. * @arg DMA_IT_HT: Half transfer complete interrupt mask. * @arg DMA_IT_TE: Transfer error interrupt mask. * @arg DMA_IT_FE: FIFO error interrupt mask. * @arg DMA_IT_DME: Direct mode error interrupt. * @retval None */ #define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) : ((__HANDLE__)->Instance->FCR |= (__INTERRUPT__))) /** * @brief Disable the specified DMA Stream interrupts. * @param __HANDLE__ DMA handle * @param __INTERRUPT__ specifies the DMA interrupt sources to be enabled or disabled. * This parameter can be any combination of the following values: * @arg DMA_IT_TC: Transfer complete interrupt mask. * @arg DMA_IT_HT: Half transfer complete interrupt mask. * @arg DMA_IT_TE: Transfer error interrupt mask. * @arg DMA_IT_FE: FIFO error interrupt mask. * @arg DMA_IT_DME: Direct mode error interrupt. * @retval None */ #define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) : ((__HANDLE__)->Instance->FCR &= ~(__INTERRUPT__))) /** * @brief Check whether the specified DMA Stream interrupt is enabled or disabled. * @param __HANDLE__ DMA handle * @param __INTERRUPT__ specifies the DMA interrupt source to check. * This parameter can be one of the following values: * @arg DMA_IT_TC: Transfer complete interrupt mask. * @arg DMA_IT_HT: Half transfer complete interrupt mask. * @arg DMA_IT_TE: Transfer error interrupt mask. * @arg DMA_IT_FE: FIFO error interrupt mask. * @arg DMA_IT_DME: Direct mode error interrupt. * @retval The state of DMA_IT. */ #define __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ ((__HANDLE__)->Instance->CR & (__INTERRUPT__)) : \ ((__HANDLE__)->Instance->FCR & (__INTERRUPT__))) /** * @brief Writes the number of data units to be transferred on the DMA Stream. * @param __HANDLE__ DMA handle * @param __COUNTER__ Number of data units to be transferred (from 0 to 65535) * Number of data items depends only on the Peripheral data format. * * @note If Peripheral data format is Bytes: number of data units is equal * to total number of bytes to be transferred. * * @note If Peripheral data format is Half-Word: number of data units is * equal to total number of bytes to be transferred / 2. * * @note If Peripheral data format is Word: number of data units is equal * to total number of bytes to be transferred / 4. * * @retval The number of remaining data units in the current DMAy Streamx transfer. */ #define __HAL_DMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->NDTR = (uint16_t)(__COUNTER__)) /** * @brief Returns the number of remaining data units in the current DMAy Streamx transfer. * @param __HANDLE__ DMA handle * * @retval The number of remaining data units in the current DMA Stream transfer. */ #define __HAL_DMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->NDTR) /* Include DMA HAL Extension module */ #include "stm32f4xx_hal_dma_ex.h" /* Exported functions --------------------------------------------------------*/ /** @defgroup DMA_Exported_Functions DMA Exported Functions * @brief DMA Exported functions * @{ */ /** @defgroup DMA_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and de-initialization functions * @{ */ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma); HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma); /** * @} */ /** @defgroup DMA_Exported_Functions_Group2 I/O operation functions * @brief I/O operation functions * @{ */ HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma); HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma); HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout); void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma); HAL_StatusTypeDef HAL_DMA_CleanCallbacks(DMA_HandleTypeDef *hdma); HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma)); HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID); /** * @} */ /** @defgroup DMA_Exported_Functions_Group3 Peripheral State functions * @brief Peripheral State functions * @{ */ HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma); uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma); /** * @} */ /** * @} */ /* Private Constants -------------------------------------------------------------*/ /** @defgroup DMA_Private_Constants DMA Private Constants * @brief DMA private defines and constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup DMA_Private_Macros DMA Private Macros * @brief DMA private macros * @{ */ #if defined (DMA_SxCR_CHSEL_3) #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \ ((CHANNEL) == DMA_CHANNEL_1) || \ ((CHANNEL) == DMA_CHANNEL_2) || \ ((CHANNEL) == DMA_CHANNEL_3) || \ ((CHANNEL) == DMA_CHANNEL_4) || \ ((CHANNEL) == DMA_CHANNEL_5) || \ ((CHANNEL) == DMA_CHANNEL_6) || \ ((CHANNEL) == DMA_CHANNEL_7) || \ ((CHANNEL) == DMA_CHANNEL_8) || \ ((CHANNEL) == DMA_CHANNEL_9) || \ ((CHANNEL) == DMA_CHANNEL_10)|| \ ((CHANNEL) == DMA_CHANNEL_11)|| \ ((CHANNEL) == DMA_CHANNEL_12)|| \ ((CHANNEL) == DMA_CHANNEL_13)|| \ ((CHANNEL) == DMA_CHANNEL_14)|| \ ((CHANNEL) == DMA_CHANNEL_15)) #else #define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_CHANNEL_0) || \ ((CHANNEL) == DMA_CHANNEL_1) || \ ((CHANNEL) == DMA_CHANNEL_2) || \ ((CHANNEL) == DMA_CHANNEL_3) || \ ((CHANNEL) == DMA_CHANNEL_4) || \ ((CHANNEL) == DMA_CHANNEL_5) || \ ((CHANNEL) == DMA_CHANNEL_6) || \ ((CHANNEL) == DMA_CHANNEL_7)) #endif /* DMA_SxCR_CHSEL_3 */ #define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_PERIPH_TO_MEMORY ) || \ ((DIRECTION) == DMA_MEMORY_TO_PERIPH) || \ ((DIRECTION) == DMA_MEMORY_TO_MEMORY)) #define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x01U) && ((SIZE) < 0x10000U)) #define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PINC_ENABLE) || \ ((STATE) == DMA_PINC_DISABLE)) #define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MINC_ENABLE) || \ ((STATE) == DMA_MINC_DISABLE)) #define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PDATAALIGN_BYTE) || \ ((SIZE) == DMA_PDATAALIGN_HALFWORD) || \ ((SIZE) == DMA_PDATAALIGN_WORD)) #define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MDATAALIGN_BYTE) || \ ((SIZE) == DMA_MDATAALIGN_HALFWORD) || \ ((SIZE) == DMA_MDATAALIGN_WORD )) #define IS_DMA_MODE(MODE) (((MODE) == DMA_NORMAL ) || \ ((MODE) == DMA_CIRCULAR) || \ ((MODE) == DMA_PFCTRL)) #define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_PRIORITY_LOW ) || \ ((PRIORITY) == DMA_PRIORITY_MEDIUM) || \ ((PRIORITY) == DMA_PRIORITY_HIGH) || \ ((PRIORITY) == DMA_PRIORITY_VERY_HIGH)) #define IS_DMA_FIFO_MODE_STATE(STATE) (((STATE) == DMA_FIFOMODE_DISABLE ) || \ ((STATE) == DMA_FIFOMODE_ENABLE)) #define IS_DMA_FIFO_THRESHOLD(THRESHOLD) (((THRESHOLD) == DMA_FIFO_THRESHOLD_1QUARTERFULL ) || \ ((THRESHOLD) == DMA_FIFO_THRESHOLD_HALFFULL) || \ ((THRESHOLD) == DMA_FIFO_THRESHOLD_3QUARTERSFULL) || \ ((THRESHOLD) == DMA_FIFO_THRESHOLD_FULL)) #define IS_DMA_MEMORY_BURST(BURST) (((BURST) == DMA_MBURST_SINGLE) || \ ((BURST) == DMA_MBURST_INC4) || \ ((BURST) == DMA_MBURST_INC8) || \ ((BURST) == DMA_MBURST_INC16)) #define IS_DMA_PERIPHERAL_BURST(BURST) (((BURST) == DMA_PBURST_SINGLE) || \ ((BURST) == DMA_PBURST_INC4) || \ ((BURST) == DMA_PBURST_INC8) || \ ((BURST) == DMA_PBURST_INC16)) /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup DMA_Private_Functions DMA Private Functions * @brief DMA private functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_DMA_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_dma_ex.h * @author MCD Application Team * @brief Header file of DMA HAL extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_DMA_EX_H #define __STM32F4xx_HAL_DMA_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup DMAEx * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup DMAEx_Exported_Types DMAEx Exported Types * @brief DMAEx Exported types * @{ */ /** * @brief HAL DMA Memory definition */ typedef enum { MEMORY0 = 0x00U, /*!< Memory 0 */ MEMORY1 = 0x01U /*!< Memory 1 */ }HAL_DMA_MemoryTypeDef; /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup DMAEx_Exported_Functions DMAEx Exported Functions * @brief DMAEx Exported functions * @{ */ /** @defgroup DMAEx_Exported_Functions_Group1 Extended features functions * @brief Extended features functions * @{ */ /* IO operation functions *******************************************************/ HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory); /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup DMAEx_Private_Functions DMAEx Private Functions * @brief DMAEx Private functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /*__STM32F4xx_HAL_DMA_EX_H*/ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_exti.h * @author MCD Application Team * @brief Header file of EXTI HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2018 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32f4xx_HAL_EXTI_H #define STM32f4xx_HAL_EXTI_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup EXTI EXTI * @brief EXTI HAL module driver * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup EXTI_Exported_Types EXTI Exported Types * @{ */ typedef enum { HAL_EXTI_COMMON_CB_ID = 0x00U } EXTI_CallbackIDTypeDef; /** * @brief EXTI Handle structure definition */ typedef struct { uint32_t Line; /*!< Exti line number */ void (* PendingCallback)(void); /*!< Exti pending callback */ } EXTI_HandleTypeDef; /** * @brief EXTI Configuration structure definition */ typedef struct { uint32_t Line; /*!< The Exti line to be configured. This parameter can be a value of @ref EXTI_Line */ uint32_t Mode; /*!< The Exit Mode to be configured for a core. This parameter can be a combination of @ref EXTI_Mode */ uint32_t Trigger; /*!< The Exti Trigger to be configured. This parameter can be a value of @ref EXTI_Trigger */ uint32_t GPIOSel; /*!< The Exti GPIO multiplexer selection to be configured. This parameter is only possible for line 0 to 15. It can be a value of @ref EXTI_GPIOSel */ } EXTI_ConfigTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup EXTI_Exported_Constants EXTI Exported Constants * @{ */ /** @defgroup EXTI_Line EXTI Line * @{ */ #define EXTI_LINE_0 (EXTI_GPIO | 0x00u) /*!< External interrupt line 0 */ #define EXTI_LINE_1 (EXTI_GPIO | 0x01u) /*!< External interrupt line 1 */ #define EXTI_LINE_2 (EXTI_GPIO | 0x02u) /*!< External interrupt line 2 */ #define EXTI_LINE_3 (EXTI_GPIO | 0x03u) /*!< External interrupt line 3 */ #define EXTI_LINE_4 (EXTI_GPIO | 0x04u) /*!< External interrupt line 4 */ #define EXTI_LINE_5 (EXTI_GPIO | 0x05u) /*!< External interrupt line 5 */ #define EXTI_LINE_6 (EXTI_GPIO | 0x06u) /*!< External interrupt line 6 */ #define EXTI_LINE_7 (EXTI_GPIO | 0x07u) /*!< External interrupt line 7 */ #define EXTI_LINE_8 (EXTI_GPIO | 0x08u) /*!< External interrupt line 8 */ #define EXTI_LINE_9 (EXTI_GPIO | 0x09u) /*!< External interrupt line 9 */ #define EXTI_LINE_10 (EXTI_GPIO | 0x0Au) /*!< External interrupt line 10 */ #define EXTI_LINE_11 (EXTI_GPIO | 0x0Bu) /*!< External interrupt line 11 */ #define EXTI_LINE_12 (EXTI_GPIO | 0x0Cu) /*!< External interrupt line 12 */ #define EXTI_LINE_13 (EXTI_GPIO | 0x0Du) /*!< External interrupt line 13 */ #define EXTI_LINE_14 (EXTI_GPIO | 0x0Eu) /*!< External interrupt line 14 */ #define EXTI_LINE_15 (EXTI_GPIO | 0x0Fu) /*!< External interrupt line 15 */ #define EXTI_LINE_16 (EXTI_CONFIG | 0x10u) /*!< External interrupt line 16 Connected to the PVD Output */ #define EXTI_LINE_17 (EXTI_CONFIG | 0x11u) /*!< External interrupt line 17 Connected to the RTC Alarm event */ #if defined(EXTI_IMR_IM18) #define EXTI_LINE_18 (EXTI_CONFIG | 0x12u) /*!< External interrupt line 18 Connected to the USB OTG FS Wakeup from suspend event */ #else #define EXTI_LINE_18 (EXTI_RESERVED | 0x12u) /*!< No interrupt supported in this line */ #endif /* EXTI_IMR_IM18 */ #if defined(EXTI_IMR_IM19) #define EXTI_LINE_19 (EXTI_CONFIG | 0x13u) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */ #else #define EXTI_LINE_19 (EXTI_RESERVED | 0x13u) /*!< No interrupt supported in this line */ #endif /* EXTI_IMR_IM19 */ #if defined(EXTI_IMR_IM20) #define EXTI_LINE_20 (EXTI_CONFIG | 0x14u) /*!< External interrupt line 20 Connected to the USB OTG HS (configured in FS) Wakeup event */ #else #define EXTI_LINE_20 (EXTI_RESERVED | 0x14u) /*!< No interrupt supported in this line */ #endif /* EXTI_IMR_IM20 */ #define EXTI_LINE_21 (EXTI_CONFIG | 0x15u) /*!< External interrupt line 21 Connected to the RTC Tamper and Time Stamp events */ #define EXTI_LINE_22 (EXTI_CONFIG | 0x16u) /*!< External interrupt line 22 Connected to the RTC Wakeup event */ #if defined(EXTI_IMR_IM23) #define EXTI_LINE_23 (EXTI_CONFIG | 0x17u) /*!< External interrupt line 23 Connected to the LPTIM1 asynchronous event */ #endif /* EXTI_IMR_IM23 */ /** * @} */ /** @defgroup EXTI_Mode EXTI Mode * @{ */ #define EXTI_MODE_NONE 0x00000000u #define EXTI_MODE_INTERRUPT 0x00000001u #define EXTI_MODE_EVENT 0x00000002u /** * @} */ /** @defgroup EXTI_Trigger EXTI Trigger * @{ */ #define EXTI_TRIGGER_NONE 0x00000000u #define EXTI_TRIGGER_RISING 0x00000001u #define EXTI_TRIGGER_FALLING 0x00000002u #define EXTI_TRIGGER_RISING_FALLING (EXTI_TRIGGER_RISING | EXTI_TRIGGER_FALLING) /** * @} */ /** @defgroup EXTI_GPIOSel EXTI GPIOSel * @brief * @{ */ #define EXTI_GPIOA 0x00000000u #define EXTI_GPIOB 0x00000001u #define EXTI_GPIOC 0x00000002u #if defined (GPIOD) #define EXTI_GPIOD 0x00000003u #endif /* GPIOD */ #if defined (GPIOE) #define EXTI_GPIOE 0x00000004u #endif /* GPIOE */ #if defined (GPIOF) #define EXTI_GPIOF 0x00000005u #endif /* GPIOF */ #if defined (GPIOG) #define EXTI_GPIOG 0x00000006u #endif /* GPIOG */ #if defined (GPIOH) #define EXTI_GPIOH 0x00000007u #endif /* GPIOH */ #if defined (GPIOI) #define EXTI_GPIOI 0x00000008u #endif /* GPIOI */ #if defined (GPIOJ) #define EXTI_GPIOJ 0x00000009u #endif /* GPIOJ */ #if defined (GPIOK) #define EXTI_GPIOK 0x0000000Au #endif /* GPIOK */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup EXTI_Exported_Macros EXTI Exported Macros * @{ */ /** * @} */ /* Private constants --------------------------------------------------------*/ /** @defgroup EXTI_Private_Constants EXTI Private Constants * @{ */ /** * @brief EXTI Line property definition */ #define EXTI_PROPERTY_SHIFT 24u #define EXTI_CONFIG (0x02uL << EXTI_PROPERTY_SHIFT) #define EXTI_GPIO ((0x04uL << EXTI_PROPERTY_SHIFT) | EXTI_CONFIG) #define EXTI_RESERVED (0x08uL << EXTI_PROPERTY_SHIFT) #define EXTI_PROPERTY_MASK (EXTI_CONFIG | EXTI_GPIO) /** * @brief EXTI bit usage */ #define EXTI_PIN_MASK 0x0000001Fu /** * @brief EXTI Mask for interrupt & event mode */ #define EXTI_MODE_MASK (EXTI_MODE_EVENT | EXTI_MODE_INTERRUPT) /** * @brief EXTI Mask for trigger possibilities */ #define EXTI_TRIGGER_MASK (EXTI_TRIGGER_RISING | EXTI_TRIGGER_FALLING) /** * @brief EXTI Line number */ #if defined(EXTI_IMR_IM23) #define EXTI_LINE_NB 24UL #else #define EXTI_LINE_NB 23UL #endif /* EXTI_IMR_IM23 */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup EXTI_Private_Macros EXTI Private Macros * @{ */ #define IS_EXTI_LINE(__EXTI_LINE__) ((((__EXTI_LINE__) & ~(EXTI_PROPERTY_MASK | EXTI_PIN_MASK)) == 0x00u) && \ ((((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_CONFIG) || \ (((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_GPIO)) && \ (((__EXTI_LINE__) & EXTI_PIN_MASK) < EXTI_LINE_NB)) #define IS_EXTI_MODE(__EXTI_LINE__) ((((__EXTI_LINE__) & EXTI_MODE_MASK) != 0x00u) && \ (((__EXTI_LINE__) & ~EXTI_MODE_MASK) == 0x00u)) #define IS_EXTI_TRIGGER(__EXTI_LINE__) (((__EXTI_LINE__) & ~EXTI_TRIGGER_MASK) == 0x00u) #define IS_EXTI_PENDING_EDGE(__EXTI_LINE__) ((__EXTI_LINE__) == EXTI_TRIGGER_RISING_FALLING) #define IS_EXTI_CONFIG_LINE(__EXTI_LINE__) (((__EXTI_LINE__) & EXTI_CONFIG) != 0x00u) #if !defined (GPIOD) #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOH)) #elif !defined (GPIOE) #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOD) || \ ((__PORT__) == EXTI_GPIOH)) #elif !defined (GPIOF) #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOD) || \ ((__PORT__) == EXTI_GPIOE) || \ ((__PORT__) == EXTI_GPIOH)) #elif !defined (GPIOI) #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOD) || \ ((__PORT__) == EXTI_GPIOE) || \ ((__PORT__) == EXTI_GPIOF) || \ ((__PORT__) == EXTI_GPIOG) || \ ((__PORT__) == EXTI_GPIOH)) #elif !defined (GPIOJ) #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOD) || \ ((__PORT__) == EXTI_GPIOE) || \ ((__PORT__) == EXTI_GPIOF) || \ ((__PORT__) == EXTI_GPIOG) || \ ((__PORT__) == EXTI_GPIOH) || \ ((__PORT__) == EXTI_GPIOI)) #else #define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ ((__PORT__) == EXTI_GPIOB) || \ ((__PORT__) == EXTI_GPIOC) || \ ((__PORT__) == EXTI_GPIOD) || \ ((__PORT__) == EXTI_GPIOE) || \ ((__PORT__) == EXTI_GPIOF) || \ ((__PORT__) == EXTI_GPIOG) || \ ((__PORT__) == EXTI_GPIOH) || \ ((__PORT__) == EXTI_GPIOI) || \ ((__PORT__) == EXTI_GPIOJ) || \ ((__PORT__) == EXTI_GPIOK)) #endif /* GPIOD */ #define IS_EXTI_GPIO_PIN(__PIN__) ((__PIN__) < 16U) /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup EXTI_Exported_Functions EXTI Exported Functions * @brief EXTI Exported Functions * @{ */ /** @defgroup EXTI_Exported_Functions_Group1 Configuration functions * @brief Configuration functions * @{ */ /* Configuration functions ****************************************************/ HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig); HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig); HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti); HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef CallbackID, void (*pPendingCbfn)(void)); HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine); /** * @} */ /** @defgroup EXTI_Exported_Functions_Group2 IO operation functions * @brief IO operation functions * @{ */ /* IO operation functions *****************************************************/ void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti); uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge); void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge); void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti); /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32f4xx_HAL_EXTI_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash.h * @author MCD Application Team * @brief Header file of FLASH HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_FLASH_H #define __STM32F4xx_HAL_FLASH_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup FLASH * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup FLASH_Exported_Types FLASH Exported Types * @{ */ /** * @brief FLASH Procedure structure definition */ typedef enum { FLASH_PROC_NONE = 0U, FLASH_PROC_SECTERASE, FLASH_PROC_MASSERASE, FLASH_PROC_PROGRAM } FLASH_ProcedureTypeDef; /** * @brief FLASH handle Structure definition */ typedef struct { __IO FLASH_ProcedureTypeDef ProcedureOnGoing; /*Internal variable to indicate which procedure is ongoing or not in IT context*/ __IO uint32_t NbSectorsToErase; /*Internal variable to save the remaining sectors to erase in IT context*/ __IO uint8_t VoltageForErase; /*Internal variable to provide voltage range selected by user in IT context*/ __IO uint32_t Sector; /*Internal variable to define the current sector which is erasing*/ __IO uint32_t Bank; /*Internal variable to save current bank selected during mass erase*/ __IO uint32_t Address; /*Internal variable to save address selected for program*/ HAL_LockTypeDef Lock; /* FLASH locking object */ __IO uint32_t ErrorCode; /* FLASH error code */ }FLASH_ProcessTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup FLASH_Exported_Constants FLASH Exported Constants * @{ */ /** @defgroup FLASH_Error_Code FLASH Error Code * @brief FLASH Error Code * @{ */ #define HAL_FLASH_ERROR_NONE 0x00000000U /*!< No error */ #define HAL_FLASH_ERROR_RD 0x00000001U /*!< Read Protection error */ #define HAL_FLASH_ERROR_PGS 0x00000002U /*!< Programming Sequence error */ #define HAL_FLASH_ERROR_PGP 0x00000004U /*!< Programming Parallelism error */ #define HAL_FLASH_ERROR_PGA 0x00000008U /*!< Programming Alignment error */ #define HAL_FLASH_ERROR_WRP 0x00000010U /*!< Write protection error */ #define HAL_FLASH_ERROR_OPERATION 0x00000020U /*!< Operation Error */ /** * @} */ /** @defgroup FLASH_Type_Program FLASH Type Program * @{ */ #define FLASH_TYPEPROGRAM_BYTE 0x00000000U /*!< Program byte (8-bit) at a specified address */ #define FLASH_TYPEPROGRAM_HALFWORD 0x00000001U /*!< Program a half-word (16-bit) at a specified address */ #define FLASH_TYPEPROGRAM_WORD 0x00000002U /*!< Program a word (32-bit) at a specified address */ #define FLASH_TYPEPROGRAM_DOUBLEWORD 0x00000003U /*!< Program a double word (64-bit) at a specified address */ /** * @} */ /** @defgroup FLASH_Flag_definition FLASH Flag definition * @brief Flag definition * @{ */ #define FLASH_FLAG_EOP FLASH_SR_EOP /*!< FLASH End of Operation flag */ #define FLASH_FLAG_OPERR FLASH_SR_SOP /*!< FLASH operation Error flag */ #define FLASH_FLAG_WRPERR FLASH_SR_WRPERR /*!< FLASH Write protected error flag */ #define FLASH_FLAG_PGAERR FLASH_SR_PGAERR /*!< FLASH Programming Alignment error flag */ #define FLASH_FLAG_PGPERR FLASH_SR_PGPERR /*!< FLASH Programming Parallelism error flag */ #define FLASH_FLAG_PGSERR FLASH_SR_PGSERR /*!< FLASH Programming Sequence error flag */ #if defined(FLASH_SR_RDERR) #define FLASH_FLAG_RDERR FLASH_SR_RDERR /*!< Read Protection error flag (PCROP) */ #endif /* FLASH_SR_RDERR */ #define FLASH_FLAG_BSY FLASH_SR_BSY /*!< FLASH Busy flag */ /** * @} */ /** @defgroup FLASH_Interrupt_definition FLASH Interrupt definition * @brief FLASH Interrupt definition * @{ */ #define FLASH_IT_EOP FLASH_CR_EOPIE /*!< End of FLASH Operation Interrupt source */ #define FLASH_IT_ERR 0x02000000U /*!< Error Interrupt source */ /** * @} */ /** @defgroup FLASH_Program_Parallelism FLASH Program Parallelism * @{ */ #define FLASH_PSIZE_BYTE 0x00000000U #define FLASH_PSIZE_HALF_WORD 0x00000100U #define FLASH_PSIZE_WORD 0x00000200U #define FLASH_PSIZE_DOUBLE_WORD 0x00000300U #define CR_PSIZE_MASK 0xFFFFFCFFU /** * @} */ /** @defgroup FLASH_Keys FLASH Keys * @{ */ #define RDP_KEY ((uint16_t)0x00A5) #define FLASH_KEY1 0x45670123U #define FLASH_KEY2 0xCDEF89ABU #define FLASH_OPT_KEY1 0x08192A3BU #define FLASH_OPT_KEY2 0x4C5D6E7FU /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup FLASH_Exported_Macros FLASH Exported Macros * @{ */ /** * @brief Set the FLASH Latency. * @param __LATENCY__ FLASH Latency * The value of this parameter depend on device used within the same series * @retval none */ #define __HAL_FLASH_SET_LATENCY(__LATENCY__) (*(__IO uint8_t *)ACR_BYTE0_ADDRESS = (uint8_t)(__LATENCY__)) /** * @brief Get the FLASH Latency. * @retval FLASH Latency * The value of this parameter depend on device used within the same series */ #define __HAL_FLASH_GET_LATENCY() (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)) /** * @brief Enable the FLASH prefetch buffer. * @retval none */ #define __HAL_FLASH_PREFETCH_BUFFER_ENABLE() (FLASH->ACR |= FLASH_ACR_PRFTEN) /** * @brief Disable the FLASH prefetch buffer. * @retval none */ #define __HAL_FLASH_PREFETCH_BUFFER_DISABLE() (FLASH->ACR &= (~FLASH_ACR_PRFTEN)) /** * @brief Enable the FLASH instruction cache. * @retval none */ #define __HAL_FLASH_INSTRUCTION_CACHE_ENABLE() (FLASH->ACR |= FLASH_ACR_ICEN) /** * @brief Disable the FLASH instruction cache. * @retval none */ #define __HAL_FLASH_INSTRUCTION_CACHE_DISABLE() (FLASH->ACR &= (~FLASH_ACR_ICEN)) /** * @brief Enable the FLASH data cache. * @retval none */ #define __HAL_FLASH_DATA_CACHE_ENABLE() (FLASH->ACR |= FLASH_ACR_DCEN) /** * @brief Disable the FLASH data cache. * @retval none */ #define __HAL_FLASH_DATA_CACHE_DISABLE() (FLASH->ACR &= (~FLASH_ACR_DCEN)) /** * @brief Resets the FLASH instruction Cache. * @note This function must be used only when the Instruction Cache is disabled. * @retval None */ #define __HAL_FLASH_INSTRUCTION_CACHE_RESET() do {FLASH->ACR |= FLASH_ACR_ICRST; \ FLASH->ACR &= ~FLASH_ACR_ICRST; \ }while(0U) /** * @brief Resets the FLASH data Cache. * @note This function must be used only when the data Cache is disabled. * @retval None */ #define __HAL_FLASH_DATA_CACHE_RESET() do {FLASH->ACR |= FLASH_ACR_DCRST; \ FLASH->ACR &= ~FLASH_ACR_DCRST; \ }while(0U) /** * @brief Enable the specified FLASH interrupt. * @param __INTERRUPT__ FLASH interrupt * This parameter can be any combination of the following values: * @arg FLASH_IT_EOP: End of FLASH Operation Interrupt * @arg FLASH_IT_ERR: Error Interrupt * @retval none */ #define __HAL_FLASH_ENABLE_IT(__INTERRUPT__) (FLASH->CR |= (__INTERRUPT__)) /** * @brief Disable the specified FLASH interrupt. * @param __INTERRUPT__ FLASH interrupt * This parameter can be any combination of the following values: * @arg FLASH_IT_EOP: End of FLASH Operation Interrupt * @arg FLASH_IT_ERR: Error Interrupt * @retval none */ #define __HAL_FLASH_DISABLE_IT(__INTERRUPT__) (FLASH->CR &= ~(uint32_t)(__INTERRUPT__)) /** * @brief Get the specified FLASH flag status. * @param __FLAG__ specifies the FLASH flags to check. * This parameter can be any combination of the following values: * @arg FLASH_FLAG_EOP : FLASH End of Operation flag * @arg FLASH_FLAG_OPERR : FLASH operation Error flag * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag * @arg FLASH_FLAG_RDERR : FLASH Read Protection error flag (PCROP) (*) * @arg FLASH_FLAG_BSY : FLASH Busy flag * (*) FLASH_FLAG_RDERR is not available for STM32F405xx/407xx/415xx/417xx devices * @retval The new state of __FLAG__ (SET or RESET). */ #define __HAL_FLASH_GET_FLAG(__FLAG__) ((FLASH->SR & (__FLAG__))) /** * @brief Clear the specified FLASH flags. * @param __FLAG__ specifies the FLASH flags to clear. * This parameter can be any combination of the following values: * @arg FLASH_FLAG_EOP : FLASH End of Operation flag * @arg FLASH_FLAG_OPERR : FLASH operation Error flag * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag * @arg FLASH_FLAG_RDERR : FLASH Read Protection error flag (PCROP) (*) * (*) FLASH_FLAG_RDERR is not available for STM32F405xx/407xx/415xx/417xx devices * @retval none */ #define __HAL_FLASH_CLEAR_FLAG(__FLAG__) (FLASH->SR = (__FLAG__)) /** * @} */ /* Include FLASH HAL Extension module */ #include "stm32f4xx_hal_flash_ex.h" #include "stm32f4xx_hal_flash_ramfunc.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup FLASH_Exported_Functions * @{ */ /** @addtogroup FLASH_Exported_Functions_Group1 * @{ */ /* Program operation functions ***********************************************/ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data); HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data); /* FLASH IRQ handler method */ void HAL_FLASH_IRQHandler(void); /* Callbacks in non blocking modes */ void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue); void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue); /** * @} */ /** @addtogroup FLASH_Exported_Functions_Group2 * @{ */ /* Peripheral Control functions **********************************************/ HAL_StatusTypeDef HAL_FLASH_Unlock(void); HAL_StatusTypeDef HAL_FLASH_Lock(void); HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void); HAL_StatusTypeDef HAL_FLASH_OB_Lock(void); /* Option bytes control */ HAL_StatusTypeDef HAL_FLASH_OB_Launch(void); /** * @} */ /** @addtogroup FLASH_Exported_Functions_Group3 * @{ */ /* Peripheral State functions ************************************************/ uint32_t HAL_FLASH_GetError(void); HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @defgroup FLASH_Private_Variables FLASH Private Variables * @{ */ /** * @} */ /* Private constants ---------------------------------------------------------*/ /** @defgroup FLASH_Private_Constants FLASH Private Constants * @{ */ /** * @brief ACR register byte 0 (Bits[7:0]) base address */ #define ACR_BYTE0_ADDRESS 0x40023C00U /** * @brief OPTCR register byte 0 (Bits[7:0]) base address */ #define OPTCR_BYTE0_ADDRESS 0x40023C14U /** * @brief OPTCR register byte 1 (Bits[15:8]) base address */ #define OPTCR_BYTE1_ADDRESS 0x40023C15U /** * @brief OPTCR register byte 2 (Bits[23:16]) base address */ #define OPTCR_BYTE2_ADDRESS 0x40023C16U /** * @brief OPTCR register byte 3 (Bits[31:24]) base address */ #define OPTCR_BYTE3_ADDRESS 0x40023C17U /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup FLASH_Private_Macros FLASH Private Macros * @{ */ /** @defgroup FLASH_IS_FLASH_Definitions FLASH Private macros to check input parameters * @{ */ #define IS_FLASH_TYPEPROGRAM(VALUE)(((VALUE) == FLASH_TYPEPROGRAM_BYTE) || \ ((VALUE) == FLASH_TYPEPROGRAM_HALFWORD) || \ ((VALUE) == FLASH_TYPEPROGRAM_WORD) || \ ((VALUE) == FLASH_TYPEPROGRAM_DOUBLEWORD)) /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup FLASH_Private_Functions FLASH Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_FLASH_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash_ex.h * @author MCD Application Team * @brief Header file of FLASH HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_FLASH_EX_H #define __STM32F4xx_HAL_FLASH_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup FLASHEx * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup FLASHEx_Exported_Types FLASH Exported Types * @{ */ /** * @brief FLASH Erase structure definition */ typedef struct { uint32_t TypeErase; /*!< Mass erase or sector Erase. This parameter can be a value of @ref FLASHEx_Type_Erase */ uint32_t Banks; /*!< Select banks to erase when Mass erase is enabled. This parameter must be a value of @ref FLASHEx_Banks */ uint32_t Sector; /*!< Initial FLASH sector to erase when Mass erase is disabled This parameter must be a value of @ref FLASHEx_Sectors */ uint32_t NbSectors; /*!< Number of sectors to be erased. This parameter must be a value between 1 and (max number of sectors - value of Initial sector)*/ uint32_t VoltageRange;/*!< The device voltage range which defines the erase parallelism This parameter must be a value of @ref FLASHEx_Voltage_Range */ } FLASH_EraseInitTypeDef; /** * @brief FLASH Option Bytes Program structure definition */ typedef struct { uint32_t OptionType; /*!< Option byte to be configured. This parameter can be a value of @ref FLASHEx_Option_Type */ uint32_t WRPState; /*!< Write protection activation or deactivation. This parameter can be a value of @ref FLASHEx_WRP_State */ uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series */ uint32_t Banks; /*!< Select banks for WRP activation/deactivation of all sectors. This parameter must be a value of @ref FLASHEx_Banks */ uint32_t RDPLevel; /*!< Set the read protection level. This parameter can be a value of @ref FLASHEx_Option_Bytes_Read_Protection */ uint32_t BORLevel; /*!< Set the BOR Level. This parameter can be a value of @ref FLASHEx_BOR_Reset_Level */ uint8_t USERConfig; /*!< Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. */ } FLASH_OBProgramInitTypeDef; /** * @brief FLASH Advanced Option Bytes Program structure definition */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) typedef struct { uint32_t OptionType; /*!< Option byte to be configured for extension. This parameter can be a value of @ref FLASHEx_Advanced_Option_Type */ uint32_t PCROPState; /*!< PCROP activation or deactivation. This parameter can be a value of @ref FLASHEx_PCROP_State */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) uint16_t Sectors; /*!< specifies the sector(s) set for PCROP. This parameter can be a value of @ref FLASHEx_Option_Bytes_PC_ReadWrite_Protection */ #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx ||\ STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) uint32_t Banks; /*!< Select banks for PCROP activation/deactivation of all sectors. This parameter must be a value of @ref FLASHEx_Banks */ uint16_t SectorsBank1; /*!< Specifies the sector(s) set for PCROP for Bank1. This parameter can be a value of @ref FLASHEx_Option_Bytes_PC_ReadWrite_Protection */ uint16_t SectorsBank2; /*!< Specifies the sector(s) set for PCROP for Bank2. This parameter can be a value of @ref FLASHEx_Option_Bytes_PC_ReadWrite_Protection */ uint8_t BootConfig; /*!< Specifies Option bytes for boot config. This parameter can be a value of @ref FLASHEx_Dual_Boot */ #endif /*STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ }FLASH_AdvOBProgramInitTypeDef; #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup FLASHEx_Exported_Constants FLASH Exported Constants * @{ */ /** @defgroup FLASHEx_Type_Erase FLASH Type Erase * @{ */ #define FLASH_TYPEERASE_SECTORS 0x00000000U /*!< Sectors erase only */ #define FLASH_TYPEERASE_MASSERASE 0x00000001U /*!< Flash Mass erase activation */ /** * @} */ /** @defgroup FLASHEx_Voltage_Range FLASH Voltage Range * @{ */ #define FLASH_VOLTAGE_RANGE_1 0x00000000U /*!< Device operating range: 1.8V to 2.1V */ #define FLASH_VOLTAGE_RANGE_2 0x00000001U /*!< Device operating range: 2.1V to 2.7V */ #define FLASH_VOLTAGE_RANGE_3 0x00000002U /*!< Device operating range: 2.7V to 3.6V */ #define FLASH_VOLTAGE_RANGE_4 0x00000003U /*!< Device operating range: 2.7V to 3.6V + External Vpp */ /** * @} */ /** @defgroup FLASHEx_WRP_State FLASH WRP State * @{ */ #define OB_WRPSTATE_DISABLE 0x00000000U /*!< Disable the write protection of the desired bank 1 sectors */ #define OB_WRPSTATE_ENABLE 0x00000001U /*!< Enable the write protection of the desired bank 1 sectors */ /** * @} */ /** @defgroup FLASHEx_Option_Type FLASH Option Type * @{ */ #define OPTIONBYTE_WRP 0x00000001U /*!< WRP option byte configuration */ #define OPTIONBYTE_RDP 0x00000002U /*!< RDP option byte configuration */ #define OPTIONBYTE_USER 0x00000004U /*!< USER option byte configuration */ #define OPTIONBYTE_BOR 0x00000008U /*!< BOR option byte configuration */ /** * @} */ /** @defgroup FLASHEx_Option_Bytes_Read_Protection FLASH Option Bytes Read Protection * @{ */ #define OB_RDP_LEVEL_0 ((uint8_t)0xAA) #define OB_RDP_LEVEL_1 ((uint8_t)0x55) #define OB_RDP_LEVEL_2 ((uint8_t)0xCC) /*!< Warning: When enabling read protection level 2 it s no more possible to go back to level 1 or 0 */ /** * @} */ /** @defgroup FLASHEx_Option_Bytes_IWatchdog FLASH Option Bytes IWatchdog * @{ */ #define OB_IWDG_SW ((uint8_t)0x20) /*!< Software IWDG selected */ #define OB_IWDG_HW ((uint8_t)0x00) /*!< Hardware IWDG selected */ /** * @} */ /** @defgroup FLASHEx_Option_Bytes_nRST_STOP FLASH Option Bytes nRST_STOP * @{ */ #define OB_STOP_NO_RST ((uint8_t)0x40) /*!< No reset generated when entering in STOP */ #define OB_STOP_RST ((uint8_t)0x00) /*!< Reset generated when entering in STOP */ /** * @} */ /** @defgroup FLASHEx_Option_Bytes_nRST_STDBY FLASH Option Bytes nRST_STDBY * @{ */ #define OB_STDBY_NO_RST ((uint8_t)0x80) /*!< No reset generated when entering in STANDBY */ #define OB_STDBY_RST ((uint8_t)0x00) /*!< Reset generated when entering in STANDBY */ /** * @} */ /** @defgroup FLASHEx_BOR_Reset_Level FLASH BOR Reset Level * @{ */ #define OB_BOR_LEVEL3 ((uint8_t)0x00) /*!< Supply voltage ranges from 2.70 to 3.60 V */ #define OB_BOR_LEVEL2 ((uint8_t)0x04) /*!< Supply voltage ranges from 2.40 to 2.70 V */ #define OB_BOR_LEVEL1 ((uint8_t)0x08) /*!< Supply voltage ranges from 2.10 to 2.40 V */ #define OB_BOR_OFF ((uint8_t)0x0C) /*!< Supply voltage ranges from 1.62 to 2.10 V */ /** * @} */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup FLASHEx_PCROP_State FLASH PCROP State * @{ */ #define OB_PCROP_STATE_DISABLE 0x00000000U /*!< Disable PCROP */ #define OB_PCROP_STATE_ENABLE 0x00000001U /*!< Enable PCROP */ /** * @} */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE ||\ STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx ||\ STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** @defgroup FLASHEx_Advanced_Option_Type FLASH Advanced Option Type * @{ */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) #define OPTIONBYTE_PCROP 0x00000001U /*!< PCROP option byte configuration */ #define OPTIONBYTE_BOOTCONFIG 0x00000002U /*!< BOOTConfig option byte configuration */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) #define OPTIONBYTE_PCROP 0x00000001U /*!= FLASH_BASE) && ((ADDRESS) <= FLASH_END)) || \ (((ADDRESS) >= FLASH_OTP_BASE) && ((ADDRESS) <= FLASH_OTP_END))) #define IS_FLASH_NBSECTORS(NBSECTORS) (((NBSECTORS) != 0) && ((NBSECTORS) <= FLASH_SECTOR_TOTAL)) #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFF000000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F413xx) || defined(STM32F423xx) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFFFF8000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F413xx || STM32F423xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F401xC) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F401xC */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||\ defined(STM32F412Rx) || defined(STM32F412Cx) #define IS_OB_WRP_SECTOR(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F401xE || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define IS_OB_PCROP(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F413xx) || defined(STM32F423xx) #define IS_OB_PCROP(SECTOR)((((SECTOR) & 0xFFFF8000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F413xx || STM32F423xx */ #if defined(STM32F401xC) #define IS_OB_PCROP(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F401xC */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_OB_PCROP(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||\ defined(STM32F412Rx) || defined(STM32F412Cx) #define IS_OB_PCROP(SECTOR)((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) #endif /* STM32F401xE || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) #define IS_OB_BOOT(BOOT) (((BOOT) == OB_DUAL_BOOT_ENABLE) || ((BOOT) == OB_DUAL_BOOT_DISABLE)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) #define IS_OB_PCROP_SELECT(PCROP) (((PCROP) == OB_PCROP_SELECTED) || ((PCROP) == OB_PCROP_DESELECTED)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE ||\ STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx ||\ STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup FLASHEx_Private_Functions FLASH Private Functions * @{ */ void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange); void FLASH_FlushCaches(void); /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_FLASH_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash_ramfunc.h * @author MCD Application Team * @brief Header file of FLASH RAMFUNC driver. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_FLASH_RAMFUNC_H #define __STM32F4xx_FLASH_RAMFUNC_H #ifdef __cplusplus extern "C" { #endif #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup FLASH_RAMFUNC * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup FLASH_RAMFUNC_Exported_Functions * @{ */ /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group1 * @{ */ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StopFlashInterfaceClk(void); __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StartFlashInterfaceClk(void); __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableFlashSleepMode(void); __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableFlashSleepMode(void); /** * @} */ /** * @} */ /** * @} */ /** * @} */ #endif /* STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_FLASH_RAMFUNC_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_gpio.h * @author MCD Application Team * @brief Header file of GPIO HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_GPIO_H #define __STM32F4xx_HAL_GPIO_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup GPIO * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup GPIO_Exported_Types GPIO Exported Types * @{ */ /** * @brief GPIO Init structure definition */ typedef struct { uint32_t Pin; /*!< Specifies the GPIO pins to be configured. This parameter can be any value of @ref GPIO_pins_define */ uint32_t Mode; /*!< Specifies the operating mode for the selected pins. This parameter can be a value of @ref GPIO_mode_define */ uint32_t Pull; /*!< Specifies the Pull-up or Pull-Down activation for the selected pins. This parameter can be a value of @ref GPIO_pull_define */ uint32_t Speed; /*!< Specifies the speed for the selected pins. This parameter can be a value of @ref GPIO_speed_define */ uint32_t Alternate; /*!< Peripheral to be connected to the selected pins. This parameter can be a value of @ref GPIO_Alternate_function_selection */ }GPIO_InitTypeDef; /** * @brief GPIO Bit SET and Bit RESET enumeration */ typedef enum { GPIO_PIN_RESET = 0, GPIO_PIN_SET }GPIO_PinState; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup GPIO_Exported_Constants GPIO Exported Constants * @{ */ /** @defgroup GPIO_pins_define GPIO pins define * @{ */ #define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */ #define GPIO_PIN_1 ((uint16_t)0x0002) /* Pin 1 selected */ #define GPIO_PIN_2 ((uint16_t)0x0004) /* Pin 2 selected */ #define GPIO_PIN_3 ((uint16_t)0x0008) /* Pin 3 selected */ #define GPIO_PIN_4 ((uint16_t)0x0010) /* Pin 4 selected */ #define GPIO_PIN_5 ((uint16_t)0x0020) /* Pin 5 selected */ #define GPIO_PIN_6 ((uint16_t)0x0040) /* Pin 6 selected */ #define GPIO_PIN_7 ((uint16_t)0x0080) /* Pin 7 selected */ #define GPIO_PIN_8 ((uint16_t)0x0100) /* Pin 8 selected */ #define GPIO_PIN_9 ((uint16_t)0x0200) /* Pin 9 selected */ #define GPIO_PIN_10 ((uint16_t)0x0400) /* Pin 10 selected */ #define GPIO_PIN_11 ((uint16_t)0x0800) /* Pin 11 selected */ #define GPIO_PIN_12 ((uint16_t)0x1000) /* Pin 12 selected */ #define GPIO_PIN_13 ((uint16_t)0x2000) /* Pin 13 selected */ #define GPIO_PIN_14 ((uint16_t)0x4000) /* Pin 14 selected */ #define GPIO_PIN_15 ((uint16_t)0x8000) /* Pin 15 selected */ #define GPIO_PIN_All ((uint16_t)0xFFFF) /* All pins selected */ #define GPIO_PIN_MASK 0x0000FFFFU /* PIN mask for assert test */ /** * @} */ /** @defgroup GPIO_mode_define GPIO mode define * @brief GPIO Configuration Mode * Elements values convention: 0xX0yz00YZ * - X : GPIO mode or EXTI Mode * - y : External IT or Event trigger detection * - z : IO configuration on External IT or Event * - Y : Output type (Push Pull or Open Drain) * - Z : IO Direction mode (Input, Output, Alternate or Analog) * @{ */ #define GPIO_MODE_INPUT MODE_INPUT /*!< Input Floating Mode */ #define GPIO_MODE_OUTPUT_PP (MODE_PP | MODE_OUTPUT) /*!< Output Push Pull Mode */ #define GPIO_MODE_OUTPUT_OD (MODE_OD | MODE_OUTPUT) /*!< Output Open Drain Mode */ #define GPIO_MODE_AF_PP (MODE_PP | MODE_AF) /*!< Alternate Function Push Pull Mode */ #define GPIO_MODE_AF_OD (MODE_OD | MODE_AF) /*!< Alternate Function Open Drain Mode */ #define GPIO_MODE_ANALOG MODE_ANALOG /*!< Analog Mode */ #define GPIO_MODE_IT_RISING (EXTI_MODE | GPIO_MODE_IT | RISING_EDGE) /*!< External Interrupt Mode with Rising edge trigger detection */ #define GPIO_MODE_IT_FALLING (EXTI_MODE | GPIO_MODE_IT | FALLING_EDGE) /*!< External Interrupt Mode with Falling edge trigger detection */ #define GPIO_MODE_IT_RISING_FALLING (EXTI_MODE | GPIO_MODE_IT | RISING_EDGE | FALLING_EDGE) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ #define GPIO_MODE_EVT_RISING (EXTI_MODE | GPIO_MODE_EVT | RISING_EDGE) /*!< External Event Mode with Rising edge trigger detection */ #define GPIO_MODE_EVT_FALLING (EXTI_MODE | GPIO_MODE_EVT | FALLING_EDGE) /*!< External Event Mode with Falling edge trigger detection */ #define GPIO_MODE_EVT_RISING_FALLING (EXTI_MODE | GPIO_MODE_EVT | RISING_EDGE | FALLING_EDGE) /*!< External Event Mode with Rising/Falling edge trigger detection */ /** * @} */ /** @defgroup GPIO_speed_define GPIO speed define * @brief GPIO Output Maximum frequency * @{ */ #define GPIO_SPEED_FREQ_LOW 0x00000000U /*!< IO works at 2 MHz, please refer to the product datasheet */ #define GPIO_SPEED_FREQ_MEDIUM 0x00000001U /*!< range 12,5 MHz to 50 MHz, please refer to the product datasheet */ #define GPIO_SPEED_FREQ_HIGH 0x00000002U /*!< range 25 MHz to 100 MHz, please refer to the product datasheet */ #define GPIO_SPEED_FREQ_VERY_HIGH 0x00000003U /*!< range 50 MHz to 200 MHz, please refer to the product datasheet */ /** * @} */ /** @defgroup GPIO_pull_define GPIO pull define * @brief GPIO Pull-Up or Pull-Down Activation * @{ */ #define GPIO_NOPULL 0x00000000U /*!< No Pull-up or Pull-down activation */ #define GPIO_PULLUP 0x00000001U /*!< Pull-up activation */ #define GPIO_PULLDOWN 0x00000002U /*!< Pull-down activation */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup GPIO_Exported_Macros GPIO Exported Macros * @{ */ /** * @brief Checks whether the specified EXTI line flag is set or not. * @param __EXTI_LINE__ specifies the EXTI line flag to check. * This parameter can be GPIO_PIN_x where x can be(0..15) * @retval The new state of __EXTI_LINE__ (SET or RESET). */ #define __HAL_GPIO_EXTI_GET_FLAG(__EXTI_LINE__) (EXTI->PR & (__EXTI_LINE__)) /** * @brief Clears the EXTI's line pending flags. * @param __EXTI_LINE__ specifies the EXTI lines flags to clear. * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) * @retval None */ #define __HAL_GPIO_EXTI_CLEAR_FLAG(__EXTI_LINE__) (EXTI->PR = (__EXTI_LINE__)) /** * @brief Checks whether the specified EXTI line is asserted or not. * @param __EXTI_LINE__ specifies the EXTI line to check. * This parameter can be GPIO_PIN_x where x can be(0..15) * @retval The new state of __EXTI_LINE__ (SET or RESET). */ #define __HAL_GPIO_EXTI_GET_IT(__EXTI_LINE__) (EXTI->PR & (__EXTI_LINE__)) /** * @brief Clears the EXTI's line pending bits. * @param __EXTI_LINE__ specifies the EXTI lines to clear. * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) * @retval None */ #define __HAL_GPIO_EXTI_CLEAR_IT(__EXTI_LINE__) (EXTI->PR = (__EXTI_LINE__)) /** * @brief Generates a Software interrupt on selected EXTI line. * @param __EXTI_LINE__ specifies the EXTI line to check. * This parameter can be GPIO_PIN_x where x can be(0..15) * @retval None */ #define __HAL_GPIO_EXTI_GENERATE_SWIT(__EXTI_LINE__) (EXTI->SWIER |= (__EXTI_LINE__)) /** * @} */ /* Include GPIO HAL Extension module */ #include "stm32f4xx_hal_gpio_ex.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup GPIO_Exported_Functions * @{ */ /** @addtogroup GPIO_Exported_Functions_Group1 * @{ */ /* Initialization and de-initialization functions *****************************/ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init); void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin); /** * @} */ /** @addtogroup GPIO_Exported_Functions_Group2 * @{ */ /* IO operation functions *****************************************************/ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState); void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin); void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup GPIO_Private_Constants GPIO Private Constants * @{ */ #define GPIO_MODE 0x00000003U #define EXTI_MODE 0x10000000U #define GPIO_MODE_IT 0x00010000U #define GPIO_MODE_EVT 0x00020000U #define RISING_EDGE 0x00100000U #define FALLING_EDGE 0x00200000U #define GPIO_OUTPUT_TYPE 0x00000010U #define MODE_INPUT 0x00000000U /*!< Input Mode */ #define MODE_OUTPUT 0x00000001U /*!< Output Mode */ #define MODE_AF 0x00000002U /*!< Alternate Function Mode */ #define MODE_ANALOG 0x00000003U /*!< Analog Mode */ #define MODE_PP 0x00000000U /*!< Push Pull Mode */ #define MODE_OD 0x00000010U /*!< Open Drain Mode */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup GPIO_Private_Macros GPIO Private Macros * @{ */ #define IS_GPIO_PIN_ACTION(ACTION) (((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET)) #define IS_GPIO_PIN(PIN) (((((uint32_t)PIN) & GPIO_PIN_MASK ) != 0x00U) && ((((uint32_t)PIN) & ~GPIO_PIN_MASK) == 0x00U)) #define IS_GPIO_MODE(MODE) (((MODE) == GPIO_MODE_INPUT) ||\ ((MODE) == GPIO_MODE_OUTPUT_PP) ||\ ((MODE) == GPIO_MODE_OUTPUT_OD) ||\ ((MODE) == GPIO_MODE_AF_PP) ||\ ((MODE) == GPIO_MODE_AF_OD) ||\ ((MODE) == GPIO_MODE_IT_RISING) ||\ ((MODE) == GPIO_MODE_IT_FALLING) ||\ ((MODE) == GPIO_MODE_IT_RISING_FALLING) ||\ ((MODE) == GPIO_MODE_EVT_RISING) ||\ ((MODE) == GPIO_MODE_EVT_FALLING) ||\ ((MODE) == GPIO_MODE_EVT_RISING_FALLING) ||\ ((MODE) == GPIO_MODE_ANALOG)) #define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_SPEED_FREQ_LOW) || ((SPEED) == GPIO_SPEED_FREQ_MEDIUM) || \ ((SPEED) == GPIO_SPEED_FREQ_HIGH) || ((SPEED) == GPIO_SPEED_FREQ_VERY_HIGH)) #define IS_GPIO_PULL(PULL) (((PULL) == GPIO_NOPULL) || ((PULL) == GPIO_PULLUP) || \ ((PULL) == GPIO_PULLDOWN)) /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup GPIO_Private_Functions GPIO Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_GPIO_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_gpio_ex.h * @author MCD Application Team * @brief Header file of GPIO HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_GPIO_EX_H #define __STM32F4xx_HAL_GPIO_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup GPIOEx GPIOEx * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup GPIOEx_Exported_Constants GPIO Exported Constants * @{ */ /** @defgroup GPIO_Alternate_function_selection GPIO Alternate Function Selection * @{ */ /*------------------------------------------ STM32F429xx/STM32F439xx ---------*/ #if defined(STM32F429xx) || defined(STM32F439xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_SPI5 ((uint8_t)0x05) /* SPI5 Alternate Function mapping */ #define GPIO_AF5_SPI6 ((uint8_t)0x05) /* SPI6 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ #define GPIO_AF6_SAI1 ((uint8_t)0x06) /* SAI1 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_UART7 ((uint8_t)0x08) /* UART7 Alternate Function mapping */ #define GPIO_AF8_UART8 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_LTDC ((uint8_t)0x09) /* LCD-TFT Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 13 selection */ #define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ /** * @brief AF 14 selection */ #define GPIO_AF14_LTDC ((uint8_t)0x0E) /* LCD-TFT Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F429xx || STM32F439xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F427xx/STM32F437xx------------------*/ #if defined(STM32F427xx) || defined(STM32F437xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_SPI5 ((uint8_t)0x05) /* SPI5 Alternate Function mapping */ #define GPIO_AF5_SPI6 ((uint8_t)0x05) /* SPI6 Alternate Function mapping */ /** @brief GPIO_Legacy */ #define GPIO_AF5_I2S3ext GPIO_AF5_SPI3 /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ #define GPIO_AF6_SAI1 ((uint8_t)0x06) /* SAI1 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_UART7 ((uint8_t)0x08) /* UART7 Alternate Function mapping */ #define GPIO_AF8_UART8 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 13 selection */ #define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F427xx || STM32F437xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F407xx/STM32F417xx------------------*/ #if defined(STM32F407xx) || defined(STM32F417xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FSMC ((uint8_t)0x0C) /* FSMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 13 selection */ #define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F407xx || STM32F417xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F405xx/STM32F415xx------------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FSMC ((uint8_t)0x0C) /* FSMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F405xx || STM32F415xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------------- STM32F401xx------------------------*/ #if defined(STM32F401xC) || defined(STM32F401xE) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_I2C2 ((uint8_t)0x09) /* I2C2 Alternate Function mapping */ #define GPIO_AF9_I2C3 ((uint8_t)0x09) /* I2C3 Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F401xC || STM32F401xE */ /*----------------------------------------------------------------------------*/ /*--------------- STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx-------------*/ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ #define GPIO_AF4_FMPI2C1 ((uint8_t)0x04) /* FMPI2C1 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1/I2S1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4/I2S4 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI2 ((uint8_t)0x06) /* I2S2 Alternate Function mapping */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_SPI4 ((uint8_t)0x06) /* SPI4/I2S4 Alternate Function mapping */ #define GPIO_AF6_SPI5 ((uint8_t)0x06) /* SPI5/I2S5 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ #define GPIO_AF6_DFSDM1 ((uint8_t)0x06) /* DFSDM1 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_SPI3 ((uint8_t)0x07) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_USART3 ((uint8_t)0x08) /* USART3 Alternate Function mapping */ #define GPIO_AF8_DFSDM1 ((uint8_t)0x08) /* DFSDM1 Alternate Function mapping */ #define GPIO_AF8_CAN1 ((uint8_t)0x08) /* CAN1 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_I2C2 ((uint8_t)0x09) /* I2C2 Alternate Function mapping */ #define GPIO_AF9_I2C3 ((uint8_t)0x09) /* I2C3 Alternate Function mapping */ #define GPIO_AF9_FMPI2C1 ((uint8_t)0x09) /* FMPI2C1 Alternate Function mapping */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_QSPI ((uint8_t)0x09) /* QSPI Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_DFSDM1 ((uint8_t)0x0A) /* DFSDM1 Alternate Function mapping */ #define GPIO_AF10_QSPI ((uint8_t)0x0A) /* QSPI Alternate Function mapping */ #define GPIO_AF10_FMC ((uint8_t)0x0A) /* FMC Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ #define GPIO_AF12_FSMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ /*----------------------------------------------------------------------------*/ /*--------------- STM32F413xx/STM32F423xx-------------------------------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ #define GPIO_AF1_LPTIM1 ((uint8_t)0x01) /* LPTIM1 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ #define GPIO_AF3_DFSDM2 ((uint8_t)0x03) /* DFSDM2 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ #define GPIO_AF4_FMPI2C1 ((uint8_t)0x04) /* FMPI2C1 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1/I2S1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4/I2S4 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI2 ((uint8_t)0x06) /* I2S2 Alternate Function mapping */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_SPI4 ((uint8_t)0x06) /* SPI4/I2S4 Alternate Function mapping */ #define GPIO_AF6_SPI5 ((uint8_t)0x06) /* SPI5/I2S5 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ #define GPIO_AF6_DFSDM1 ((uint8_t)0x06) /* DFSDM1 Alternate Function mapping */ #define GPIO_AF6_DFSDM2 ((uint8_t)0x06) /* DFSDM2 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_SPI3 ((uint8_t)0x07) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF7_SAI1 ((uint8_t)0x07) /* SAI1 Alternate Function mapping */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ #define GPIO_AF7_DFSDM2 ((uint8_t)0x07) /* DFSDM2 Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_USART3 ((uint8_t)0x08) /* USART3 Alternate Function mapping */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_UART7 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ #define GPIO_AF8_UART8 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ #define GPIO_AF8_DFSDM1 ((uint8_t)0x08) /* DFSDM1 Alternate Function mapping */ #define GPIO_AF8_CAN1 ((uint8_t)0x08) /* CAN1 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_I2C2 ((uint8_t)0x09) /* I2C2 Alternate Function mapping */ #define GPIO_AF9_I2C3 ((uint8_t)0x09) /* I2C3 Alternate Function mapping */ #define GPIO_AF9_FMPI2C1 ((uint8_t)0x09) /* FMPI2C1 Alternate Function mapping */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_QSPI ((uint8_t)0x09) /* QSPI Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_SAI1 ((uint8_t)0x0A) /* SAI1 Alternate Function mapping */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_DFSDM1 ((uint8_t)0x0A) /* DFSDM1 Alternate Function mapping */ #define GPIO_AF10_DFSDM2 ((uint8_t)0x0A) /* DFSDM2 Alternate Function mapping */ #define GPIO_AF10_QSPI ((uint8_t)0x0A) /* QSPI Alternate Function mapping */ #define GPIO_AF10_FSMC ((uint8_t)0x0A) /* FSMC Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_UART4 ((uint8_t)0x0B) /* UART4 Alternate Function mapping */ #define GPIO_AF11_UART5 ((uint8_t)0x0B) /* UART5 Alternate Function mapping */ #define GPIO_AF11_UART9 ((uint8_t)0x0B) /* UART9 Alternate Function mapping */ #define GPIO_AF11_UART10 ((uint8_t)0x0B) /* UART10 Alternate Function mapping */ #define GPIO_AF11_CAN3 ((uint8_t)0x0B) /* CAN3 Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ #define GPIO_AF12_FSMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ /** * @brief AF 14 selection */ #define GPIO_AF14_RNG ((uint8_t)0x0E) /* RNG Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F413xx || STM32F423xx */ /*---------------------------------------- STM32F411xx------------------------*/ #if defined(STM32F411xE) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1/I2S1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI2 ((uint8_t)0x06) /* I2S2 Alternate Function mapping */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_SPI4 ((uint8_t)0x06) /* SPI4/I2S4 Alternate Function mapping */ #define GPIO_AF6_SPI5 ((uint8_t)0x06) /* SPI5/I2S5 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_SPI3 ((uint8_t)0x07) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_I2C2 ((uint8_t)0x09) /* I2C2 Alternate Function mapping */ #define GPIO_AF9_I2C3 ((uint8_t)0x09) /* I2C3 Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F411xE */ /*---------------------------------------- STM32F410xx------------------------*/ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_LPTIM1 ((uint8_t)0x01) /* LPTIM1 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_FMPI2C1 ((uint8_t)0x04) /* FMPI2C1 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1/I2S1 Alternate Function mapping */ #if defined(STM32F410Cx) || defined(STM32F410Rx) #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #endif /* STM32F410Cx || STM32F410Rx */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI1 ((uint8_t)0x06) /* SPI1 Alternate Function mapping */ #if defined(STM32F410Cx) || defined(STM32F410Rx) #define GPIO_AF6_SPI2 ((uint8_t)0x06) /* I2S2 Alternate Function mapping */ #endif /* STM32F410Cx || STM32F410Rx */ #define GPIO_AF6_SPI5 ((uint8_t)0x06) /* SPI5/I2S5 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_I2C2 ((uint8_t)0x09) /* I2C2 Alternate Function mapping */ #define GPIO_AF9_FMPI2C1 ((uint8_t)0x09) /* FMPI2C1 Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /*---------------------------------------- STM32F446xx -----------------------*/ #if defined(STM32F446xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ #define GPIO_AF3_CEC ((uint8_t)0x03) /* CEC Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ #define GPIO_AF4_FMPI2C1 ((uint8_t)0x04) /* FMPI2C1 Alternate Function mapping */ #define GPIO_AF4_CEC ((uint8_t)0x04) /* CEC Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1/I2S1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI2 ((uint8_t)0x06) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_SPI4 ((uint8_t)0x06) /* SPI4 Alternate Function mapping */ #define GPIO_AF6_SAI1 ((uint8_t)0x06) /* SAI1 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_UART5 ((uint8_t)0x07) /* UART5 Alternate Function mapping */ #define GPIO_AF7_SPI2 ((uint8_t)0x07) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF7_SPI3 ((uint8_t)0x07) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF7_SPDIFRX ((uint8_t)0x07) /* SPDIFRX Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_SPDIFRX ((uint8_t)0x08) /* SPDIFRX Alternate Function mapping */ #define GPIO_AF8_SAI2 ((uint8_t)0x08) /* SAI2 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_QSPI ((uint8_t)0x09) /* QSPI Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ #define GPIO_AF10_SAI2 ((uint8_t)0x0A) /* SAI2 Alternate Function mapping */ #define GPIO_AF10_QSPI ((uint8_t)0x0A) /* QSPI Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 13 selection */ #define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F446xx */ /*----------------------------------------------------------------------------*/ /*-------------------------------- STM32F469xx/STM32F479xx--------------------*/ #if defined(STM32F469xx) || defined(STM32F479xx) /** * @brief AF 0 selection */ #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ #define GPIO_AF0_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ #define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ #define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ /** * @brief AF 1 selection */ #define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ #define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ /** * @brief AF 2 selection */ #define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ #define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ #define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ /** * @brief AF 3 selection */ #define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ #define GPIO_AF3_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ #define GPIO_AF3_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ #define GPIO_AF3_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ /** * @brief AF 4 selection */ #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ #define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ #define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ /** * @brief AF 5 selection */ #define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ #define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ #define GPIO_AF5_SPI5 ((uint8_t)0x05) /* SPI5 Alternate Function mapping */ #define GPIO_AF5_SPI6 ((uint8_t)0x05) /* SPI6 Alternate Function mapping */ #define GPIO_AF5_I2S3ext ((uint8_t)0x05) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 6 selection */ #define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ #define GPIO_AF6_I2S2ext ((uint8_t)0x06) /* I2S2ext_SD Alternate Function mapping */ #define GPIO_AF6_SAI1 ((uint8_t)0x06) /* SAI1 Alternate Function mapping */ /** * @brief AF 7 selection */ #define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ #define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ #define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ #define GPIO_AF7_I2S3ext ((uint8_t)0x07) /* I2S3ext_SD Alternate Function mapping */ /** * @brief AF 8 selection */ #define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ #define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ #define GPIO_AF8_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ #define GPIO_AF8_UART7 ((uint8_t)0x08) /* UART7 Alternate Function mapping */ #define GPIO_AF8_UART8 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ /** * @brief AF 9 selection */ #define GPIO_AF9_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ #define GPIO_AF9_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ #define GPIO_AF9_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ #define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ #define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ #define GPIO_AF9_LTDC ((uint8_t)0x09) /* LCD-TFT Alternate Function mapping */ #define GPIO_AF9_QSPI ((uint8_t)0x09) /* QSPI Alternate Function mapping */ /** * @brief AF 10 selection */ #define GPIO_AF10_OTG_FS ((uint8_t)0x0A) /* OTG_FS Alternate Function mapping */ #define GPIO_AF10_OTG_HS ((uint8_t)0x0A) /* OTG_HS Alternate Function mapping */ #define GPIO_AF10_QSPI ((uint8_t)0x0A) /* QSPI Alternate Function mapping */ /** * @brief AF 11 selection */ #define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ /** * @brief AF 12 selection */ #define GPIO_AF12_FMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ #define GPIO_AF12_OTG_HS_FS ((uint8_t)0x0C) /* OTG HS configured in FS, Alternate Function mapping */ #define GPIO_AF12_SDIO ((uint8_t)0x0C) /* SDIO Alternate Function mapping */ /** * @brief AF 13 selection */ #define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ #define GPIO_AF13_DSI ((uint8_t)0x0D) /* DSI Alternate Function mapping */ /** * @brief AF 14 selection */ #define GPIO_AF14_LTDC ((uint8_t)0x0E) /* LCD-TFT Alternate Function mapping */ /** * @brief AF 15 selection */ #define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ #endif /* STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup GPIOEx_Exported_Macros GPIO Exported Macros * @{ */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup GPIOEx_Exported_Functions GPIO Exported Functions * @{ */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup GPIOEx_Private_Constants GPIO Private Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup GPIOEx_Private_Macros GPIO Private Macros * @{ */ /** @defgroup GPIOEx_Get_Port_Index GPIO Get Port Index * @{ */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U :\ ((__GPIOx__) == (GPIOE))? 4U :\ ((__GPIOx__) == (GPIOF))? 5U :\ ((__GPIOx__) == (GPIOG))? 6U :\ ((__GPIOx__) == (GPIOH))? 7U : 8U) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U :\ ((__GPIOx__) == (GPIOE))? 4U :\ ((__GPIOx__) == (GPIOF))? 5U :\ ((__GPIOx__) == (GPIOG))? 6U :\ ((__GPIOx__) == (GPIOH))? 7U :\ ((__GPIOx__) == (GPIOI))? 8U :\ ((__GPIOx__) == (GPIOJ))? 9U : 10U) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U : 7U) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U :\ ((__GPIOx__) == (GPIOE))? 4U : 7U) #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ #if defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U :\ ((__GPIOx__) == (GPIOE))? 4U :\ ((__GPIOx__) == (GPIOF))? 5U :\ ((__GPIOx__) == (GPIOG))? 6U : 7U) #endif /* STM32F446xx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U :\ ((__GPIOx__) == (GPIOE))? 4U : 7U) #endif /* STM32F412Vx */ #if defined(STM32F412Rx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U :\ ((__GPIOx__) == (GPIOD))? 3U : 7U) #endif /* STM32F412Rx */ #if defined(STM32F412Cx) #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\ ((__GPIOx__) == (GPIOB))? 1U :\ ((__GPIOx__) == (GPIOC))? 2U : 7U) #endif /* STM32F412Cx */ /** * @} */ /** @defgroup GPIOEx_IS_Alternat_function_selection GPIO Check Alternate Function * @{ */ /*------------------------- STM32F429xx/STM32F439xx---------------------------*/ #if defined(STM32F429xx) || defined(STM32F439xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \ ((AF) == GPIO_AF15_EVENTOUT) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF5_SPI5) || ((AF) == GPIO_AF5_SPI6) || \ ((AF) == GPIO_AF8_UART7) || ((AF) == GPIO_AF8_UART8) || \ ((AF) == GPIO_AF12_FMC) || ((AF) == GPIO_AF6_SAI1) || \ ((AF) == GPIO_AF14_LTDC)) #endif /* STM32F429xx || STM32F439xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F427xx/STM32F437xx------------------*/ #if defined(STM32F427xx) || defined(STM32F437xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \ ((AF) == GPIO_AF15_EVENTOUT) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF5_SPI5) || ((AF) == GPIO_AF5_SPI6) || \ ((AF) == GPIO_AF8_UART7) || ((AF) == GPIO_AF8_UART8) || \ ((AF) == GPIO_AF12_FMC) || ((AF) == GPIO_AF6_SAI1)) #endif /* STM32F427xx || STM32F437xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F407xx/STM32F417xx------------------*/ #if defined(STM32F407xx) || defined(STM32F417xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \ ((AF) == GPIO_AF12_FSMC) || ((AF) == GPIO_AF15_EVENTOUT)) #endif /* STM32F407xx || STM32F417xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F405xx/STM32F415xx------------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF12_OTG_HS_FS) || ((AF) == GPIO_AF12_SDIO) || \ ((AF) == GPIO_AF12_FSMC) || ((AF) == GPIO_AF15_EVENTOUT)) #endif /* STM32F405xx || STM32F415xx */ /*----------------------------------------------------------------------------*/ /*---------------------------------------- STM32F401xx------------------------*/ #if defined(STM32F401xC) || defined(STM32F401xE) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF12_SDIO) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM9) || \ ((AF) == GPIO_AF3_TIM10) || ((AF) == GPIO_AF3_TIM11) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF7_USART1) || \ ((AF) == GPIO_AF7_USART2) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_I2C2) || ((AF) == GPIO_AF9_I2C3) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF15_EVENTOUT)) #endif /* STM32F401xC || STM32F401xE */ /*----------------------------------------------------------------------------*/ /*---------------------------------------- STM32F410xx------------------------*/ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_GPIO_AF(AF) (((AF) < 10U) || ((AF) == 15U)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /*---------------------------------------- STM32F411xx------------------------*/ #if defined(STM32F411xE) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF4_I2C1) || \ ((AF) == GPIO_AF4_I2C2) || ((AF) == GPIO_AF4_I2C3) || \ ((AF) == GPIO_AF5_SPI1) || ((AF) == GPIO_AF5_SPI2) || \ ((AF) == GPIO_AF5_SPI3) || ((AF) == GPIO_AF6_SPI4) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF6_SPI5) || ((AF) == GPIO_AF7_SPI3) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF8_USART6) || ((AF) == GPIO_AF10_OTG_FS) || \ ((AF) == GPIO_AF9_I2C2) || ((AF) == GPIO_AF9_I2C3) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF15_EVENTOUT)) #endif /* STM32F411xE */ /*----------------------------------------------------------------------------*/ /*----------------------------------------------- STM32F446xx ----------------*/ #if defined(STM32F446xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \ ((AF) == GPIO_AF15_EVENTOUT) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF12_FMC) || ((AF) == GPIO_AF6_SAI1) || \ ((AF) == GPIO_AF3_CEC) || ((AF) == GPIO_AF4_CEC) || \ ((AF) == GPIO_AF5_SPI3) || ((AF) == GPIO_AF6_SPI2) || \ ((AF) == GPIO_AF6_SPI4) || ((AF) == GPIO_AF7_UART5) || \ ((AF) == GPIO_AF7_SPI2) || ((AF) == GPIO_AF7_SPI3) || \ ((AF) == GPIO_AF7_SPDIFRX) || ((AF) == GPIO_AF8_SPDIFRX) || \ ((AF) == GPIO_AF8_SAI2) || ((AF) == GPIO_AF9_QSPI) || \ ((AF) == GPIO_AF10_SAI2) || ((AF) == GPIO_AF10_QSPI)) #endif /* STM32F446xx */ /*----------------------------------------------------------------------------*/ /*------------------------------------------- STM32F469xx/STM32F479xx --------*/ #if defined(STM32F469xx) || defined(STM32F479xx) #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \ ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \ ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \ ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \ ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \ ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \ ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \ ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \ ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \ ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \ ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \ ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \ ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \ ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \ ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \ ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \ ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \ ((AF) == GPIO_AF15_EVENTOUT) || ((AF) == GPIO_AF5_SPI4) || \ ((AF) == GPIO_AF5_SPI5) || ((AF) == GPIO_AF5_SPI6) || \ ((AF) == GPIO_AF8_UART7) || ((AF) == GPIO_AF8_UART8) || \ ((AF) == GPIO_AF12_FMC) || ((AF) == GPIO_AF6_SAI1) || \ ((AF) == GPIO_AF14_LTDC) || ((AF) == GPIO_AF13_DSI) || \ ((AF) == GPIO_AF9_QSPI) || ((AF) == GPIO_AF10_QSPI)) #endif /* STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*------------------STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx-----------*/ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) #define IS_GPIO_AF(AF) (((AF) < 16U) && ((AF) != 11U) && ((AF) != 14U) && ((AF) != 13U)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ /*----------------------------------------------------------------------------*/ /*------------------STM32F413xx/STM32F423xx-----------------------------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) #define IS_GPIO_AF(AF) (((AF) < 16U) && ((AF) != 13U)) #endif /* STM32F413xx || STM32F423xx */ /*----------------------------------------------------------------------------*/ /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup GPIOEx_Private_Functions GPIO Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_GPIO_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_i2c.h * @author MCD Application Team * @brief Header file of I2C HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_I2C_H #define __STM32F4xx_HAL_I2C_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup I2C * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup I2C_Exported_Types I2C Exported Types * @{ */ /** @defgroup I2C_Configuration_Structure_definition I2C Configuration Structure definition * @brief I2C Configuration Structure definition * @{ */ typedef struct { uint32_t ClockSpeed; /*!< Specifies the clock frequency. This parameter must be set to a value lower than 400kHz */ uint32_t DutyCycle; /*!< Specifies the I2C fast mode duty cycle. This parameter can be a value of @ref I2C_duty_cycle_in_fast_mode */ uint32_t OwnAddress1; /*!< Specifies the first device own address. This parameter can be a 7-bit or 10-bit address. */ uint32_t AddressingMode; /*!< Specifies if 7-bit or 10-bit addressing mode is selected. This parameter can be a value of @ref I2C_addressing_mode */ uint32_t DualAddressMode; /*!< Specifies if dual addressing mode is selected. This parameter can be a value of @ref I2C_dual_addressing_mode */ uint32_t OwnAddress2; /*!< Specifies the second device own address if dual addressing mode is selected This parameter can be a 7-bit address. */ uint32_t GeneralCallMode; /*!< Specifies if general call mode is selected. This parameter can be a value of @ref I2C_general_call_addressing_mode */ uint32_t NoStretchMode; /*!< Specifies if nostretch mode is selected. This parameter can be a value of @ref I2C_nostretch_mode */ } I2C_InitTypeDef; /** * @} */ /** @defgroup HAL_state_structure_definition HAL state structure definition * @brief HAL State structure definition * @note HAL I2C State value coding follow below described bitmap : * b7-b6 Error information * 00 : No Error * 01 : Abort (Abort user request on going) * 10 : Timeout * 11 : Error * b5 Peripheral initialization status * 0 : Reset (Peripheral not initialized) * 1 : Init done (Peripheral initialized and ready to use. HAL I2C Init function called) * b4 (not used) * x : Should be set to 0 * b3 * 0 : Ready or Busy (No Listen mode ongoing) * 1 : Listen (Peripheral in Address Listen Mode) * b2 Intrinsic process state * 0 : Ready * 1 : Busy (Peripheral busy with some configuration or internal operations) * b1 Rx state * 0 : Ready (no Rx operation ongoing) * 1 : Busy (Rx operation ongoing) * b0 Tx state * 0 : Ready (no Tx operation ongoing) * 1 : Busy (Tx operation ongoing) * @{ */ typedef enum { HAL_I2C_STATE_RESET = 0x00U, /*!< Peripheral is not yet Initialized */ HAL_I2C_STATE_READY = 0x20U, /*!< Peripheral Initialized and ready for use */ HAL_I2C_STATE_BUSY = 0x24U, /*!< An internal process is ongoing */ HAL_I2C_STATE_BUSY_TX = 0x21U, /*!< Data Transmission process is ongoing */ HAL_I2C_STATE_BUSY_RX = 0x22U, /*!< Data Reception process is ongoing */ HAL_I2C_STATE_LISTEN = 0x28U, /*!< Address Listen Mode is ongoing */ HAL_I2C_STATE_BUSY_TX_LISTEN = 0x29U, /*!< Address Listen Mode and Data Transmission process is ongoing */ HAL_I2C_STATE_BUSY_RX_LISTEN = 0x2AU, /*!< Address Listen Mode and Data Reception process is ongoing */ HAL_I2C_STATE_ABORT = 0x60U, /*!< Abort user request ongoing */ HAL_I2C_STATE_TIMEOUT = 0xA0U, /*!< Timeout state */ HAL_I2C_STATE_ERROR = 0xE0U /*!< Error */ } HAL_I2C_StateTypeDef; /** * @} */ /** @defgroup HAL_mode_structure_definition HAL mode structure definition * @brief HAL Mode structure definition * @note HAL I2C Mode value coding follow below described bitmap :\n * b7 (not used)\n * x : Should be set to 0\n * b6\n * 0 : None\n * 1 : Memory (HAL I2C communication is in Memory Mode)\n * b5\n * 0 : None\n * 1 : Slave (HAL I2C communication is in Slave Mode)\n * b4\n * 0 : None\n * 1 : Master (HAL I2C communication is in Master Mode)\n * b3-b2-b1-b0 (not used)\n * xxxx : Should be set to 0000 * @{ */ typedef enum { HAL_I2C_MODE_NONE = 0x00U, /*!< No I2C communication on going */ HAL_I2C_MODE_MASTER = 0x10U, /*!< I2C communication is in Master Mode */ HAL_I2C_MODE_SLAVE = 0x20U, /*!< I2C communication is in Slave Mode */ HAL_I2C_MODE_MEM = 0x40U /*!< I2C communication is in Memory Mode */ } HAL_I2C_ModeTypeDef; /** * @} */ /** @defgroup I2C_Error_Code_definition I2C Error Code definition * @brief I2C Error Code definition * @{ */ #define HAL_I2C_ERROR_NONE 0x00000000U /*!< No error */ #define HAL_I2C_ERROR_BERR 0x00000001U /*!< BERR error */ #define HAL_I2C_ERROR_ARLO 0x00000002U /*!< ARLO error */ #define HAL_I2C_ERROR_AF 0x00000004U /*!< AF error */ #define HAL_I2C_ERROR_OVR 0x00000008U /*!< OVR error */ #define HAL_I2C_ERROR_DMA 0x00000010U /*!< DMA transfer error */ #define HAL_I2C_ERROR_TIMEOUT 0x00000020U /*!< Timeout Error */ #define HAL_I2C_ERROR_SIZE 0x00000040U /*!< Size Management error */ #define HAL_I2C_ERROR_DMA_PARAM 0x00000080U /*!< DMA Parameter Error */ #define HAL_I2C_WRONG_START 0x00000200U /*!< Wrong start Error */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) #define HAL_I2C_ERROR_INVALID_CALLBACK 0x00000100U /*!< Invalid Callback error */ #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup I2C_handle_Structure_definition I2C handle Structure definition * @brief I2C handle Structure definition * @{ */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) typedef struct __I2C_HandleTypeDef #else typedef struct #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ { I2C_TypeDef *Instance; /*!< I2C registers base address */ I2C_InitTypeDef Init; /*!< I2C communication parameters */ uint8_t *pBuffPtr; /*!< Pointer to I2C transfer buffer */ uint16_t XferSize; /*!< I2C transfer size */ __IO uint16_t XferCount; /*!< I2C transfer counter */ __IO uint32_t XferOptions; /*!< I2C transfer options */ __IO uint32_t PreviousState; /*!< I2C communication Previous state and mode context for internal usage */ DMA_HandleTypeDef *hdmatx; /*!< I2C Tx DMA handle parameters */ DMA_HandleTypeDef *hdmarx; /*!< I2C Rx DMA handle parameters */ HAL_LockTypeDef Lock; /*!< I2C locking object */ __IO HAL_I2C_StateTypeDef State; /*!< I2C communication state */ __IO HAL_I2C_ModeTypeDef Mode; /*!< I2C communication mode */ __IO uint32_t ErrorCode; /*!< I2C Error code */ __IO uint32_t Devaddress; /*!< I2C Target device address */ __IO uint32_t Memaddress; /*!< I2C Target memory address */ __IO uint32_t MemaddSize; /*!< I2C Target memory address size */ __IO uint32_t EventCount; /*!< I2C Event counter */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) void (* MasterTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Tx Transfer completed callback */ void (* MasterRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Rx Transfer completed callback */ void (* SlaveTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Slave Tx Transfer completed callback */ void (* SlaveRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Slave Rx Transfer completed callback */ void (* ListenCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Listen Complete callback */ void (* MemTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Memory Tx Transfer completed callback */ void (* MemRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Memory Rx Transfer completed callback */ void (* ErrorCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Error callback */ void (* AbortCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Abort callback */ void (* AddrCallback)(struct __I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); /*!< I2C Slave Address Match callback */ void (* MspInitCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Msp Init callback */ void (* MspDeInitCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Msp DeInit callback */ #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } I2C_HandleTypeDef; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) /** * @brief HAL I2C Callback ID enumeration definition */ typedef enum { HAL_I2C_MASTER_TX_COMPLETE_CB_ID = 0x00U, /*!< I2C Master Tx Transfer completed callback ID */ HAL_I2C_MASTER_RX_COMPLETE_CB_ID = 0x01U, /*!< I2C Master Rx Transfer completed callback ID */ HAL_I2C_SLAVE_TX_COMPLETE_CB_ID = 0x02U, /*!< I2C Slave Tx Transfer completed callback ID */ HAL_I2C_SLAVE_RX_COMPLETE_CB_ID = 0x03U, /*!< I2C Slave Rx Transfer completed callback ID */ HAL_I2C_LISTEN_COMPLETE_CB_ID = 0x04U, /*!< I2C Listen Complete callback ID */ HAL_I2C_MEM_TX_COMPLETE_CB_ID = 0x05U, /*!< I2C Memory Tx Transfer callback ID */ HAL_I2C_MEM_RX_COMPLETE_CB_ID = 0x06U, /*!< I2C Memory Rx Transfer completed callback ID */ HAL_I2C_ERROR_CB_ID = 0x07U, /*!< I2C Error callback ID */ HAL_I2C_ABORT_CB_ID = 0x08U, /*!< I2C Abort callback ID */ HAL_I2C_MSPINIT_CB_ID = 0x09U, /*!< I2C Msp Init callback ID */ HAL_I2C_MSPDEINIT_CB_ID = 0x0AU /*!< I2C Msp DeInit callback ID */ } HAL_I2C_CallbackIDTypeDef; /** * @brief HAL I2C Callback pointer definition */ typedef void (*pI2C_CallbackTypeDef)(I2C_HandleTypeDef *hi2c); /*!< pointer to an I2C callback function */ typedef void (*pI2C_AddrCallbackTypeDef)(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); /*!< pointer to an I2C Address Match callback function */ #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ /** * @} */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup I2C_Exported_Constants I2C Exported Constants * @{ */ /** @defgroup I2C_duty_cycle_in_fast_mode I2C duty cycle in fast mode * @{ */ #define I2C_DUTYCYCLE_2 0x00000000U #define I2C_DUTYCYCLE_16_9 I2C_CCR_DUTY /** * @} */ /** @defgroup I2C_addressing_mode I2C addressing mode * @{ */ #define I2C_ADDRESSINGMODE_7BIT 0x00004000U #define I2C_ADDRESSINGMODE_10BIT (I2C_OAR1_ADDMODE | 0x00004000U) /** * @} */ /** @defgroup I2C_dual_addressing_mode I2C dual addressing mode * @{ */ #define I2C_DUALADDRESS_DISABLE 0x00000000U #define I2C_DUALADDRESS_ENABLE I2C_OAR2_ENDUAL /** * @} */ /** @defgroup I2C_general_call_addressing_mode I2C general call addressing mode * @{ */ #define I2C_GENERALCALL_DISABLE 0x00000000U #define I2C_GENERALCALL_ENABLE I2C_CR1_ENGC /** * @} */ /** @defgroup I2C_nostretch_mode I2C nostretch mode * @{ */ #define I2C_NOSTRETCH_DISABLE 0x00000000U #define I2C_NOSTRETCH_ENABLE I2C_CR1_NOSTRETCH /** * @} */ /** @defgroup I2C_Memory_Address_Size I2C Memory Address Size * @{ */ #define I2C_MEMADD_SIZE_8BIT 0x00000001U #define I2C_MEMADD_SIZE_16BIT 0x00000010U /** * @} */ /** @defgroup I2C_XferDirection_definition I2C XferDirection definition * @{ */ #define I2C_DIRECTION_RECEIVE 0x00000000U #define I2C_DIRECTION_TRANSMIT 0x00000001U /** * @} */ /** @defgroup I2C_XferOptions_definition I2C XferOptions definition * @{ */ #define I2C_FIRST_FRAME 0x00000001U #define I2C_FIRST_AND_NEXT_FRAME 0x00000002U #define I2C_NEXT_FRAME 0x00000004U #define I2C_FIRST_AND_LAST_FRAME 0x00000008U #define I2C_LAST_FRAME_NO_STOP 0x00000010U #define I2C_LAST_FRAME 0x00000020U /* List of XferOptions in usage of : * 1- Restart condition in all use cases (direction change or not) */ #define I2C_OTHER_FRAME (0x00AA0000U) #define I2C_OTHER_AND_LAST_FRAME (0xAA000000U) /** * @} */ /** @defgroup I2C_Interrupt_configuration_definition I2C Interrupt configuration definition * @brief I2C Interrupt definition * Elements values convention: 0xXXXXXXXX * - XXXXXXXX : Interrupt control mask * @{ */ #define I2C_IT_BUF I2C_CR2_ITBUFEN #define I2C_IT_EVT I2C_CR2_ITEVTEN #define I2C_IT_ERR I2C_CR2_ITERREN /** * @} */ /** @defgroup I2C_Flag_definition I2C Flag definition * @{ */ #define I2C_FLAG_OVR 0x00010800U #define I2C_FLAG_AF 0x00010400U #define I2C_FLAG_ARLO 0x00010200U #define I2C_FLAG_BERR 0x00010100U #define I2C_FLAG_TXE 0x00010080U #define I2C_FLAG_RXNE 0x00010040U #define I2C_FLAG_STOPF 0x00010010U #define I2C_FLAG_ADD10 0x00010008U #define I2C_FLAG_BTF 0x00010004U #define I2C_FLAG_ADDR 0x00010002U #define I2C_FLAG_SB 0x00010001U #define I2C_FLAG_DUALF 0x00100080U #define I2C_FLAG_GENCALL 0x00100010U #define I2C_FLAG_TRA 0x00100004U #define I2C_FLAG_BUSY 0x00100002U #define I2C_FLAG_MSL 0x00100001U /** * @} */ /** * @} */ /* Exported macros -----------------------------------------------------------*/ /** @defgroup I2C_Exported_Macros I2C Exported Macros * @{ */ /** @brief Reset I2C handle state. * @param __HANDLE__ specifies the I2C Handle. * @retval None */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) #define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) do{ \ (__HANDLE__)->State = HAL_I2C_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0) #else #define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_I2C_STATE_RESET) #endif /** @brief Enable or disable the specified I2C interrupts. * @param __HANDLE__ specifies the I2C Handle. * @param __INTERRUPT__ specifies the interrupt source to enable or disable. * This parameter can be one of the following values: * @arg I2C_IT_BUF: Buffer interrupt enable * @arg I2C_IT_EVT: Event interrupt enable * @arg I2C_IT_ERR: Error interrupt enable * @retval None */ #define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) #define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) /** @brief Checks if the specified I2C interrupt source is enabled or disabled. * @param __HANDLE__ specifies the I2C Handle. * @param __INTERRUPT__ specifies the I2C interrupt source to check. * This parameter can be one of the following values: * @arg I2C_IT_BUF: Buffer interrupt enable * @arg I2C_IT_EVT: Event interrupt enable * @arg I2C_IT_ERR: Error interrupt enable * @retval The new state of __INTERRUPT__ (TRUE or FALSE). */ #define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) /** @brief Checks whether the specified I2C flag is set or not. * @param __HANDLE__ specifies the I2C Handle. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg I2C_FLAG_OVR: Overrun/Underrun flag * @arg I2C_FLAG_AF: Acknowledge failure flag * @arg I2C_FLAG_ARLO: Arbitration lost flag * @arg I2C_FLAG_BERR: Bus error flag * @arg I2C_FLAG_TXE: Data register empty flag * @arg I2C_FLAG_RXNE: Data register not empty flag * @arg I2C_FLAG_STOPF: Stop detection flag * @arg I2C_FLAG_ADD10: 10-bit header sent flag * @arg I2C_FLAG_BTF: Byte transfer finished flag * @arg I2C_FLAG_ADDR: Address sent flag * Address matched flag * @arg I2C_FLAG_SB: Start bit flag * @arg I2C_FLAG_DUALF: Dual flag * @arg I2C_FLAG_GENCALL: General call header flag * @arg I2C_FLAG_TRA: Transmitter/Receiver flag * @arg I2C_FLAG_BUSY: Bus busy flag * @arg I2C_FLAG_MSL: Master/Slave flag * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__) ((((uint8_t)((__FLAG__) >> 16U)) == 0x01U) ? \ (((((__HANDLE__)->Instance->SR1) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) : \ (((((__HANDLE__)->Instance->SR2) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)) /** @brief Clears the I2C pending flags which are cleared by writing 0 in a specific bit. * @param __HANDLE__ specifies the I2C Handle. * @param __FLAG__ specifies the flag to clear. * This parameter can be any combination of the following values: * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) * @arg I2C_FLAG_AF: Acknowledge failure flag * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) * @arg I2C_FLAG_BERR: Bus error flag * @retval None */ #define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK)) /** @brief Clears the I2C ADDR pending flag. * @param __HANDLE__ specifies the I2C Handle. * This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. * @retval None */ #define __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg = 0x00U; \ tmpreg = (__HANDLE__)->Instance->SR1; \ tmpreg = (__HANDLE__)->Instance->SR2; \ UNUSED(tmpreg); \ } while(0) /** @brief Clears the I2C STOPF pending flag. * @param __HANDLE__ specifies the I2C Handle. * @retval None */ #define __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg = 0x00U; \ tmpreg = (__HANDLE__)->Instance->SR1; \ SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE); \ UNUSED(tmpreg); \ } while(0) /** @brief Enable the specified I2C peripheral. * @param __HANDLE__ specifies the I2C Handle. * @retval None */ #define __HAL_I2C_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) /** @brief Disable the specified I2C peripheral. * @param __HANDLE__ specifies the I2C Handle. * @retval None */ #define __HAL_I2C_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) /** * @} */ /* Include I2C HAL Extension module */ #include "stm32f4xx_hal_i2c_ex.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup I2C_Exported_Functions * @{ */ /** @addtogroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions * @{ */ /* Initialization and de-initialization functions******************************/ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c); HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c); void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c); void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c); /* Callbacks Register/UnRegister functions ***********************************/ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, pI2C_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID); HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ /** * @} */ /** @addtogroup I2C_Exported_Functions_Group2 Input and Output operation functions * @{ */ /* IO operation functions ****************************************************/ /******* Blocking mode: Polling */ HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout); /******* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c); HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c); HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress); /******* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); /** * @} */ /** @addtogroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks * @{ */ /******* I2C IRQHandler and Callbacks used in non blocking modes (Interrupt and DMA) */ void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c); void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c); void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c); void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c); /** * @} */ /** @addtogroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions * @{ */ /* Peripheral State, Mode and Error functions *********************************/ HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c); HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c); uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup I2C_Private_Constants I2C Private Constants * @{ */ #define I2C_FLAG_MASK 0x0000FFFFU #define I2C_MIN_PCLK_FREQ_STANDARD 2000000U /*!< 2 MHz */ #define I2C_MIN_PCLK_FREQ_FAST 4000000U /*!< 4 MHz */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup I2C_Private_Macros I2C Private Macros * @{ */ #define I2C_MIN_PCLK_FREQ(__PCLK__, __SPEED__) (((__SPEED__) <= 100000U) ? ((__PCLK__) < I2C_MIN_PCLK_FREQ_STANDARD) : ((__PCLK__) < I2C_MIN_PCLK_FREQ_FAST)) #define I2C_CCR_CALCULATION(__PCLK__, __SPEED__, __COEFF__) (((((__PCLK__) - 1U)/((__SPEED__) * (__COEFF__))) + 1U) & I2C_CCR_CCR) #define I2C_FREQRANGE(__PCLK__) ((__PCLK__)/1000000U) #define I2C_RISE_TIME(__FREQRANGE__, __SPEED__) (((__SPEED__) <= 100000U) ? ((__FREQRANGE__) + 1U) : ((((__FREQRANGE__) * 300U) / 1000U) + 1U)) #define I2C_SPEED_STANDARD(__PCLK__, __SPEED__) ((I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 2U) < 4U)? 4U:I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 2U)) #define I2C_SPEED_FAST(__PCLK__, __SPEED__, __DUTYCYCLE__) (((__DUTYCYCLE__) == I2C_DUTYCYCLE_2)? I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 3U) : (I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 25U) | I2C_DUTYCYCLE_16_9)) #define I2C_SPEED(__PCLK__, __SPEED__, __DUTYCYCLE__) (((__SPEED__) <= 100000U)? (I2C_SPEED_STANDARD((__PCLK__), (__SPEED__))) : \ ((I2C_SPEED_FAST((__PCLK__), (__SPEED__), (__DUTYCYCLE__)) & I2C_CCR_CCR) == 0U)? 1U : \ ((I2C_SPEED_FAST((__PCLK__), (__SPEED__), (__DUTYCYCLE__))) | I2C_CCR_FS)) #define I2C_7BIT_ADD_WRITE(__ADDRESS__) ((uint8_t)((__ADDRESS__) & (uint8_t)(~I2C_OAR1_ADD0))) #define I2C_7BIT_ADD_READ(__ADDRESS__) ((uint8_t)((__ADDRESS__) | I2C_OAR1_ADD0)) #define I2C_10BIT_ADDRESS(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) #define I2C_10BIT_HEADER_WRITE(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)0x00F0))) #define I2C_10BIT_HEADER_READ(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)(0x00F1)))) #define I2C_MEM_ADD_MSB(__ADDRESS__) ((uint8_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0xFF00)) >> 8))) #define I2C_MEM_ADD_LSB(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) /** @defgroup I2C_IS_RTC_Definitions I2C Private macros to check input parameters * @{ */ #define IS_I2C_DUTY_CYCLE(CYCLE) (((CYCLE) == I2C_DUTYCYCLE_2) || \ ((CYCLE) == I2C_DUTYCYCLE_16_9)) #define IS_I2C_ADDRESSING_MODE(ADDRESS) (((ADDRESS) == I2C_ADDRESSINGMODE_7BIT) || \ ((ADDRESS) == I2C_ADDRESSINGMODE_10BIT)) #define IS_I2C_DUAL_ADDRESS(ADDRESS) (((ADDRESS) == I2C_DUALADDRESS_DISABLE) || \ ((ADDRESS) == I2C_DUALADDRESS_ENABLE)) #define IS_I2C_GENERAL_CALL(CALL) (((CALL) == I2C_GENERALCALL_DISABLE) || \ ((CALL) == I2C_GENERALCALL_ENABLE)) #define IS_I2C_NO_STRETCH(STRETCH) (((STRETCH) == I2C_NOSTRETCH_DISABLE) || \ ((STRETCH) == I2C_NOSTRETCH_ENABLE)) #define IS_I2C_MEMADD_SIZE(SIZE) (((SIZE) == I2C_MEMADD_SIZE_8BIT) || \ ((SIZE) == I2C_MEMADD_SIZE_16BIT)) #define IS_I2C_CLOCK_SPEED(SPEED) (((SPEED) > 0U) && ((SPEED) <= 400000U)) #define IS_I2C_OWN_ADDRESS1(ADDRESS1) (((ADDRESS1) & 0xFFFFFC00U) == 0U) #define IS_I2C_OWN_ADDRESS2(ADDRESS2) (((ADDRESS2) & 0xFFFFFF01U) == 0U) #define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_FIRST_FRAME) || \ ((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \ ((REQUEST) == I2C_NEXT_FRAME) || \ ((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \ ((REQUEST) == I2C_LAST_FRAME) || \ ((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \ IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)) #define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_OTHER_FRAME) || \ ((REQUEST) == I2C_OTHER_AND_LAST_FRAME)) #define I2C_CHECK_FLAG(__ISR__, __FLAG__) ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) #define I2C_CHECK_IT_SOURCE(__CR1__, __IT__) ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET) /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup I2C_Private_Functions I2C Private Functions * @{ */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_I2C_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_i2c_ex.h * @author MCD Application Team * @brief Header file of I2C HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_I2C_EX_H #define __STM32F4xx_HAL_I2C_EX_H #ifdef __cplusplus extern "C" { #endif #if defined(I2C_FLTR_ANOFF)&&defined(I2C_FLTR_DNF) /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup I2CEx * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup I2CEx_Exported_Constants I2C Exported Constants * @{ */ /** @defgroup I2CEx_Analog_Filter I2C Analog Filter * @{ */ #define I2C_ANALOGFILTER_ENABLE 0x00000000U #define I2C_ANALOGFILTER_DISABLE I2C_FLTR_ANOFF /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup I2CEx_Exported_Functions * @{ */ /** @addtogroup I2CEx_Exported_Functions_Group1 * @{ */ /* Peripheral Control functions ************************************************/ HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter); HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup I2CEx_Private_Constants I2C Private Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup I2CEx_Private_Macros I2C Private Macros * @{ */ #define IS_I2C_ANALOG_FILTER(FILTER) (((FILTER) == I2C_ANALOGFILTER_ENABLE) || \ ((FILTER) == I2C_ANALOGFILTER_DISABLE)) #define IS_I2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000FU) /** * @} */ /** * @} */ /** * @} */ #endif #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_I2C_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pcd.h * @author MCD Application Team * @brief Header file of PCD HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_PCD_H #define STM32F4xx_HAL_PCD_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_ll_usb.h" #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup PCD * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup PCD_Exported_Types PCD Exported Types * @{ */ /** * @brief PCD State structure definition */ typedef enum { HAL_PCD_STATE_RESET = 0x00, HAL_PCD_STATE_READY = 0x01, HAL_PCD_STATE_ERROR = 0x02, HAL_PCD_STATE_BUSY = 0x03, HAL_PCD_STATE_TIMEOUT = 0x04 } PCD_StateTypeDef; /* Device LPM suspend state */ typedef enum { LPM_L0 = 0x00, /* on */ LPM_L1 = 0x01, /* LPM L1 sleep */ LPM_L2 = 0x02, /* suspend */ LPM_L3 = 0x03, /* off */ } PCD_LPM_StateTypeDef; typedef enum { PCD_LPM_L0_ACTIVE = 0x00, /* on */ PCD_LPM_L1_ACTIVE = 0x01, /* LPM L1 sleep */ } PCD_LPM_MsgTypeDef; typedef enum { PCD_BCD_ERROR = 0xFF, PCD_BCD_CONTACT_DETECTION = 0xFE, PCD_BCD_STD_DOWNSTREAM_PORT = 0xFD, PCD_BCD_CHARGING_DOWNSTREAM_PORT = 0xFC, PCD_BCD_DEDICATED_CHARGING_PORT = 0xFB, PCD_BCD_DISCOVERY_COMPLETED = 0x00, } PCD_BCD_MsgTypeDef; #if defined (USB_OTG_FS) || defined (USB_OTG_HS) typedef USB_OTG_GlobalTypeDef PCD_TypeDef; typedef USB_OTG_CfgTypeDef PCD_InitTypeDef; typedef USB_OTG_EPTypeDef PCD_EPTypeDef; #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @brief PCD Handle Structure definition */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) typedef struct __PCD_HandleTypeDef #else typedef struct #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { PCD_TypeDef *Instance; /*!< Register base address */ PCD_InitTypeDef Init; /*!< PCD required parameters */ __IO uint8_t USB_Address; /*!< USB Address */ PCD_EPTypeDef IN_ep[16]; /*!< IN endpoint parameters */ PCD_EPTypeDef OUT_ep[16]; /*!< OUT endpoint parameters */ HAL_LockTypeDef Lock; /*!< PCD peripheral status */ __IO PCD_StateTypeDef State; /*!< PCD communication state */ __IO uint32_t ErrorCode; /*!< PCD Error code */ uint32_t Setup[12]; /*!< Setup packet buffer */ PCD_LPM_StateTypeDef LPM_State; /*!< LPM State */ uint32_t BESL; uint32_t lpm_active; /*!< Enable or disable the Link Power Management . This parameter can be set to ENABLE or DISABLE */ uint32_t battery_charging_active; /*!< Enable or disable Battery charging. This parameter can be set to ENABLE or DISABLE */ void *pData; /*!< Pointer to upper stack Handler */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) void (* SOFCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD SOF callback */ void (* SetupStageCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Setup Stage callback */ void (* ResetCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Reset callback */ void (* SuspendCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Suspend callback */ void (* ResumeCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Resume callback */ void (* ConnectCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Connect callback */ void (* DisconnectCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Disconnect callback */ void (* DataOutStageCallback)(struct __PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< USB OTG PCD Data OUT Stage callback */ void (* DataInStageCallback)(struct __PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< USB OTG PCD Data IN Stage callback */ void (* ISOOUTIncompleteCallback)(struct __PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< USB OTG PCD ISO OUT Incomplete callback */ void (* ISOINIncompleteCallback)(struct __PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< USB OTG PCD ISO IN Incomplete callback */ void (* BCDCallback)(struct __PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); /*!< USB OTG PCD BCD callback */ void (* LPMCallback)(struct __PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); /*!< USB OTG PCD LPM callback */ void (* MspInitCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Msp Init callback */ void (* MspDeInitCallback)(struct __PCD_HandleTypeDef *hpcd); /*!< USB OTG PCD Msp DeInit callback */ #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } PCD_HandleTypeDef; /** * @} */ /* Include PCD HAL Extended module */ #include "stm32f4xx_hal_pcd_ex.h" /* Exported constants --------------------------------------------------------*/ /** @defgroup PCD_Exported_Constants PCD Exported Constants * @{ */ /** @defgroup PCD_Speed PCD Speed * @{ */ #define PCD_SPEED_HIGH USBD_HS_SPEED #define PCD_SPEED_HIGH_IN_FULL USBD_HSINFS_SPEED #define PCD_SPEED_FULL USBD_FS_SPEED /** * @} */ /** @defgroup PCD_PHY_Module PCD PHY Module * @{ */ #define PCD_PHY_ULPI 1U #define PCD_PHY_EMBEDDED 2U #define PCD_PHY_UTMI 3U /** * @} */ /** @defgroup PCD_Error_Code_definition PCD Error Code definition * @brief PCD Error Code definition * @{ */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) #define HAL_PCD_ERROR_INVALID_CALLBACK (0x00000010U) /*!< Invalid Callback error */ #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ /** * @} */ /** * @} */ /* Exported macros -----------------------------------------------------------*/ /** @defgroup PCD_Exported_Macros PCD Exported Macros * @brief macros to handle interrupts and specific clock configurations * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) #define __HAL_PCD_ENABLE(__HANDLE__) (void)USB_EnableGlobalInt ((__HANDLE__)->Instance) #define __HAL_PCD_DISABLE(__HANDLE__) (void)USB_DisableGlobalInt ((__HANDLE__)->Instance) #define __HAL_PCD_GET_FLAG(__HANDLE__, __INTERRUPT__) ((USB_ReadInterrupts((__HANDLE__)->Instance) & (__INTERRUPT__)) == (__INTERRUPT__)) #define __HAL_PCD_CLEAR_FLAG(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->GINTSTS) &= (__INTERRUPT__)) #define __HAL_PCD_IS_INVALID_INTERRUPT(__HANDLE__) (USB_ReadInterrupts((__HANDLE__)->Instance) == 0U) #define __HAL_PCD_UNGATE_PHYCLOCK(__HANDLE__) *(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE) &= ~(USB_OTG_PCGCCTL_STOPCLK) #define __HAL_PCD_GATE_PHYCLOCK(__HANDLE__) *(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE) |= USB_OTG_PCGCCTL_STOPCLK #define __HAL_PCD_IS_PHY_SUSPENDED(__HANDLE__) ((*(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE)) & 0x10U) #define __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT() EXTI->IMR |= (USB_OTG_HS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_HS_WAKEUP_EXTI_DISABLE_IT() EXTI->IMR &= ~(USB_OTG_HS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_HS_WAKEUP_EXTI_GET_FLAG() EXTI->PR & (USB_OTG_HS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG() EXTI->PR = (USB_OTG_HS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE() \ do { \ EXTI->FTSR &= ~(USB_OTG_HS_WAKEUP_EXTI_LINE); \ EXTI->RTSR |= USB_OTG_HS_WAKEUP_EXTI_LINE; \ } while(0U) #define __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT() EXTI->IMR |= USB_OTG_FS_WAKEUP_EXTI_LINE #define __HAL_USB_OTG_FS_WAKEUP_EXTI_DISABLE_IT() EXTI->IMR &= ~(USB_OTG_FS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_FS_WAKEUP_EXTI_GET_FLAG() EXTI->PR & (USB_OTG_FS_WAKEUP_EXTI_LINE) #define __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG() EXTI->PR = USB_OTG_FS_WAKEUP_EXTI_LINE #define __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE() \ do { \ EXTI->FTSR &= ~(USB_OTG_FS_WAKEUP_EXTI_LINE); \ EXTI->RTSR |= USB_OTG_FS_WAKEUP_EXTI_LINE; \ } while(0U) #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup PCD_Exported_Functions PCD Exported Functions * @{ */ /* Initialization/de-initialization functions ********************************/ /** @addtogroup PCD_Exported_Functions_Group1 Initialization and de-initialization functions * @{ */ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_DeInit(PCD_HandleTypeDef *hpcd); void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd); void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd); #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) /** @defgroup HAL_PCD_Callback_ID_enumeration_definition HAL USB OTG PCD Callback ID enumeration definition * @brief HAL USB OTG PCD Callback ID enumeration definition * @{ */ typedef enum { HAL_PCD_SOF_CB_ID = 0x01, /*!< USB PCD SOF callback ID */ HAL_PCD_SETUPSTAGE_CB_ID = 0x02, /*!< USB PCD Setup Stage callback ID */ HAL_PCD_RESET_CB_ID = 0x03, /*!< USB PCD Reset callback ID */ HAL_PCD_SUSPEND_CB_ID = 0x04, /*!< USB PCD Suspend callback ID */ HAL_PCD_RESUME_CB_ID = 0x05, /*!< USB PCD Resume callback ID */ HAL_PCD_CONNECT_CB_ID = 0x06, /*!< USB PCD Connect callback ID */ HAL_PCD_DISCONNECT_CB_ID = 0x07, /*!< USB PCD Disconnect callback ID */ HAL_PCD_MSPINIT_CB_ID = 0x08, /*!< USB PCD MspInit callback ID */ HAL_PCD_MSPDEINIT_CB_ID = 0x09 /*!< USB PCD MspDeInit callback ID */ } HAL_PCD_CallbackIDTypeDef; /** * @} */ /** @defgroup HAL_PCD_Callback_pointer_definition HAL USB OTG PCD Callback pointer definition * @brief HAL USB OTG PCD Callback pointer definition * @{ */ typedef void (*pPCD_CallbackTypeDef)(PCD_HandleTypeDef *hpcd); /*!< pointer to a common USB OTG PCD callback function */ typedef void (*pPCD_DataOutStageCallbackTypeDef)(PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< pointer to USB OTG PCD Data OUT Stage callback */ typedef void (*pPCD_DataInStageCallbackTypeDef)(PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< pointer to USB OTG PCD Data IN Stage callback */ typedef void (*pPCD_IsoOutIncpltCallbackTypeDef)(PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< pointer to USB OTG PCD ISO OUT Incomplete callback */ typedef void (*pPCD_IsoInIncpltCallbackTypeDef)(PCD_HandleTypeDef *hpcd, uint8_t epnum); /*!< pointer to USB OTG PCD ISO IN Incomplete callback */ typedef void (*pPCD_LpmCallbackTypeDef)(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); /*!< pointer to USB OTG PCD LPM callback */ typedef void (*pPCD_BcdCallbackTypeDef)(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); /*!< pointer to USB OTG PCD BCD callback */ /** * @} */ HAL_StatusTypeDef HAL_PCD_RegisterCallback(PCD_HandleTypeDef *hpcd, HAL_PCD_CallbackIDTypeDef CallbackID, pPCD_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterCallback(PCD_HandleTypeDef *hpcd, HAL_PCD_CallbackIDTypeDef CallbackID); HAL_StatusTypeDef HAL_PCD_RegisterDataOutStageCallback(PCD_HandleTypeDef *hpcd, pPCD_DataOutStageCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterDataOutStageCallback(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_RegisterDataInStageCallback(PCD_HandleTypeDef *hpcd, pPCD_DataInStageCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterDataInStageCallback(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_RegisterIsoOutIncpltCallback(PCD_HandleTypeDef *hpcd, pPCD_IsoOutIncpltCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterIsoOutIncpltCallback(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_RegisterIsoInIncpltCallback(PCD_HandleTypeDef *hpcd, pPCD_IsoInIncpltCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterIsoInIncpltCallback(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_RegisterBcdCallback(PCD_HandleTypeDef *hpcd, pPCD_BcdCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterBcdCallback(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_RegisterLpmCallback(PCD_HandleTypeDef *hpcd, pPCD_LpmCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_PCD_UnRegisterLpmCallback(PCD_HandleTypeDef *hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ /** * @} */ /* I/O operation functions ***************************************************/ /* Non-Blocking mode: Interrupt */ /** @addtogroup PCD_Exported_Functions_Group2 Input and Output operation functions * @{ */ HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd); void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd); void HAL_PCD_WKUP_IRQHandler(PCD_HandleTypeDef *hpcd); void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd); void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum); void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum); void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum); void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum); /** * @} */ /* Peripheral Control functions **********************************************/ /** @addtogroup PCD_Exported_Functions_Group3 Peripheral Control functions * @{ */ HAL_StatusTypeDef HAL_PCD_DevConnect(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_DevDisconnect(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address); HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type); HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len); HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len); HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); HAL_StatusTypeDef HAL_PCD_EP_Flush(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); HAL_StatusTypeDef HAL_PCD_ActivateRemoteWakeup(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCD_DeActivateRemoteWakeup(PCD_HandleTypeDef *hpcd); uint32_t HAL_PCD_EP_GetRxCount(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); /** * @} */ /* Peripheral State functions ************************************************/ /** @addtogroup PCD_Exported_Functions_Group4 Peripheral State functions * @{ */ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef *hpcd); /** * @} */ /** * @} */ /* Private constants ---------------------------------------------------------*/ /** @defgroup PCD_Private_Constants PCD Private Constants * @{ */ /** @defgroup USB_EXTI_Line_Interrupt USB EXTI line interrupt * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) #define USB_OTG_FS_WAKEUP_EXTI_LINE (0x1U << 18) /*!< USB FS EXTI Line WakeUp Interrupt */ #define USB_OTG_HS_WAKEUP_EXTI_LINE (0x1U << 20) /*!< USB HS EXTI Line WakeUp Interrupt */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /** * @} */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) #ifndef USB_OTG_DOEPINT_OTEPSPR #define USB_OTG_DOEPINT_OTEPSPR (0x1UL << 5) /*!< Status Phase Received interrupt */ #endif #ifndef USB_OTG_DOEPMSK_OTEPSPRM #define USB_OTG_DOEPMSK_OTEPSPRM (0x1UL << 5) /*!< Setup Packet Received interrupt mask */ #endif #ifndef USB_OTG_DOEPINT_NAK #define USB_OTG_DOEPINT_NAK (0x1UL << 13) /*!< NAK interrupt */ #endif #ifndef USB_OTG_DOEPMSK_NAKM #define USB_OTG_DOEPMSK_NAKM (0x1UL << 13) /*!< OUT Packet NAK interrupt mask */ #endif #ifndef USB_OTG_DOEPINT_STPKTRX #define USB_OTG_DOEPINT_STPKTRX (0x1UL << 15) /*!< Setup Packet Received interrupt */ #endif #ifndef USB_OTG_DOEPMSK_NYETM #define USB_OTG_DOEPMSK_NYETM (0x1UL << 14) /*!< Setup Packet Received interrupt mask */ #endif #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /* Private macros ------------------------------------------------------------*/ /** @defgroup PCD_Private_Macros PCD Private Macros * @{ */ /** * @} */ /** * @} */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_PCD_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pcd_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pcd_ex.h * @author MCD Application Team * @brief Header file of PCD HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_PCD_EX_H #define STM32F4xx_HAL_PCD_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup PCDEx * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Exported macros -----------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions * @{ */ /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size); HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size); #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd); #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd); HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd); void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd); #endif /* defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); /** * @} */ /** * @} */ /** * @} */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_PCD_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pwr.h * @author MCD Application Team * @brief Header file of PWR HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_PWR_H #define __STM32F4xx_HAL_PWR_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup PWR * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup PWR_Exported_Types PWR Exported Types * @{ */ /** * @brief PWR PVD configuration structure definition */ typedef struct { uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level. This parameter can be a value of @ref PWR_PVD_detection_level */ uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins. This parameter can be a value of @ref PWR_PVD_Mode */ }PWR_PVDTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup PWR_Exported_Constants PWR Exported Constants * @{ */ /** @defgroup PWR_WakeUp_Pins PWR WakeUp Pins * @{ */ #define PWR_WAKEUP_PIN1 0x00000100U /** * @} */ /** @defgroup PWR_PVD_detection_level PWR PVD detection level * @{ */ #define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0 #define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1 #define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2 #define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3 #define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4 #define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5 #define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6 #define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7/* External input analog voltage (Compare internally to VREFINT) */ /** * @} */ /** @defgroup PWR_PVD_Mode PWR PVD Mode * @{ */ #define PWR_PVD_MODE_NORMAL 0x00000000U /*!< basic mode is used */ #define PWR_PVD_MODE_IT_RISING 0x00010001U /*!< External Interrupt Mode with Rising edge trigger detection */ #define PWR_PVD_MODE_IT_FALLING 0x00010002U /*!< External Interrupt Mode with Falling edge trigger detection */ #define PWR_PVD_MODE_IT_RISING_FALLING 0x00010003U /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ #define PWR_PVD_MODE_EVENT_RISING 0x00020001U /*!< Event Mode with Rising edge trigger detection */ #define PWR_PVD_MODE_EVENT_FALLING 0x00020002U /*!< Event Mode with Falling edge trigger detection */ #define PWR_PVD_MODE_EVENT_RISING_FALLING 0x00020003U /*!< Event Mode with Rising/Falling edge trigger detection */ /** * @} */ /** @defgroup PWR_Regulator_state_in_STOP_mode PWR Regulator state in SLEEP/STOP mode * @{ */ #define PWR_MAINREGULATOR_ON 0x00000000U #define PWR_LOWPOWERREGULATOR_ON PWR_CR_LPDS /** * @} */ /** @defgroup PWR_SLEEP_mode_entry PWR SLEEP mode entry * @{ */ #define PWR_SLEEPENTRY_WFI ((uint8_t)0x01) #define PWR_SLEEPENTRY_WFE ((uint8_t)0x02) /** * @} */ /** @defgroup PWR_STOP_mode_entry PWR STOP mode entry * @{ */ #define PWR_STOPENTRY_WFI ((uint8_t)0x01) #define PWR_STOPENTRY_WFE ((uint8_t)0x02) /** * @} */ /** @defgroup PWR_Flag PWR Flag * @{ */ #define PWR_FLAG_WU PWR_CSR_WUF #define PWR_FLAG_SB PWR_CSR_SBF #define PWR_FLAG_PVDO PWR_CSR_PVDO #define PWR_FLAG_BRR PWR_CSR_BRR #define PWR_FLAG_VOSRDY PWR_CSR_VOSRDY /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup PWR_Exported_Macro PWR Exported Macro * @{ */ /** @brief Check PWR flag is set or not. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event * was received from the WKUP pin or from the RTC alarm (Alarm A * or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup. * An additional wakeup event is detected if the WKUP pin is enabled * (by setting the EWUP bit) when the WKUP pin level is already high. * @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was * resumed from StandBy mode. * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled * by the HAL_PWR_EnablePVD() function. The PVD is stopped by Standby mode * For this reason, this bit is equal to 0 after Standby or reset * until the PVDE bit is set. * @arg PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset * when the device wakes up from Standby mode or by a system reset * or power reset. * @arg PWR_FLAG_VOSRDY: This flag indicates that the Regulator voltage * scaling output selection is ready. * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_PWR_GET_FLAG(__FLAG__) ((PWR->CSR & (__FLAG__)) == (__FLAG__)) /** @brief Clear the PWR's pending flags. * @param __FLAG__ specifies the flag to clear. * This parameter can be one of the following values: * @arg PWR_FLAG_WU: Wake Up flag * @arg PWR_FLAG_SB: StandBy flag */ #define __HAL_PWR_CLEAR_FLAG(__FLAG__) (PWR->CR |= (__FLAG__) << 2U) /** * @brief Enable the PVD Exti Line 16. * @retval None. */ #define __HAL_PWR_PVD_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_PVD)) /** * @brief Disable the PVD EXTI Line 16. * @retval None. */ #define __HAL_PWR_PVD_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD)) /** * @brief Enable event on PVD Exti Line 16. * @retval None. */ #define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() (EXTI->EMR |= (PWR_EXTI_LINE_PVD)) /** * @brief Disable event on PVD Exti Line 16. * @retval None. */ #define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD)) /** * @brief Enable the PVD Extended Interrupt Rising Trigger. * @retval None. */ #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD) /** * @brief Disable the PVD Extended Interrupt Rising Trigger. * @retval None. */ #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD) /** * @brief Enable the PVD Extended Interrupt Falling Trigger. * @retval None. */ #define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD) /** * @brief Disable the PVD Extended Interrupt Falling Trigger. * @retval None. */ #define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD) /** * @brief PVD EXTI line configuration: set rising & falling edge trigger. * @retval None. */ #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() do{__HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();\ __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();\ }while(0U) /** * @brief Disable the PVD Extended Interrupt Rising & Falling Trigger. * This parameter can be: * @retval None. */ #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() do{__HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();\ __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();\ }while(0U) /** * @brief checks whether the specified PVD Exti interrupt flag is set or not. * @retval EXTI PVD Line Status. */ #define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD)) /** * @brief Clear the PVD Exti flag. * @retval None. */ #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD)) /** * @brief Generates a Software interrupt on PVD EXTI line. * @retval None */ #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_PVD)) /** * @} */ /* Include PWR HAL Extension module */ #include "stm32f4xx_hal_pwr_ex.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup PWR_Exported_Functions PWR Exported Functions * @{ */ /** @addtogroup PWR_Exported_Functions_Group1 Initialization and de-initialization functions * @{ */ /* Initialization and de-initialization functions *****************************/ void HAL_PWR_DeInit(void); void HAL_PWR_EnableBkUpAccess(void); void HAL_PWR_DisableBkUpAccess(void); /** * @} */ /** @addtogroup PWR_Exported_Functions_Group2 Peripheral Control functions * @{ */ /* Peripheral Control functions **********************************************/ /* PVD configuration */ void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD); void HAL_PWR_EnablePVD(void); void HAL_PWR_DisablePVD(void); /* WakeUp pins configuration */ void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx); void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx); /* Low Power modes entry */ void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry); void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry); void HAL_PWR_EnterSTANDBYMode(void); /* Power PVD IRQ Handler */ void HAL_PWR_PVD_IRQHandler(void); void HAL_PWR_PVDCallback(void); /* Cortex System Control functions *******************************************/ void HAL_PWR_EnableSleepOnExit(void); void HAL_PWR_DisableSleepOnExit(void); void HAL_PWR_EnableSEVOnPend(void); void HAL_PWR_DisableSEVOnPend(void); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup PWR_Private_Constants PWR Private Constants * @{ */ /** @defgroup PWR_PVD_EXTI_Line PWR PVD EXTI Line * @{ */ #define PWR_EXTI_LINE_PVD ((uint32_t)EXTI_IMR_MR16) /*!< External interrupt line 16 Connected to the PVD EXTI Line */ /** * @} */ /** @defgroup PWR_register_alias_address PWR Register alias address * @{ */ /* ------------- PWR registers bit address in the alias region ---------------*/ #define PWR_OFFSET (PWR_BASE - PERIPH_BASE) #define PWR_CR_OFFSET 0x00U #define PWR_CSR_OFFSET 0x04U #define PWR_CR_OFFSET_BB (PWR_OFFSET + PWR_CR_OFFSET) #define PWR_CSR_OFFSET_BB (PWR_OFFSET + PWR_CSR_OFFSET) /** * @} */ /** @defgroup PWR_CR_register_alias PWR CR Register alias address * @{ */ /* --- CR Register ---*/ /* Alias word address of DBP bit */ #define DBP_BIT_NUMBER PWR_CR_DBP_Pos #define CR_DBP_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (DBP_BIT_NUMBER * 4U)) /* Alias word address of PVDE bit */ #define PVDE_BIT_NUMBER PWR_CR_PVDE_Pos #define CR_PVDE_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (PVDE_BIT_NUMBER * 4U)) /* Alias word address of VOS bit */ #define VOS_BIT_NUMBER PWR_CR_VOS_Pos #define CR_VOS_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (VOS_BIT_NUMBER * 4U)) /** * @} */ /** @defgroup PWR_CSR_register_alias PWR CSR Register alias address * @{ */ /* --- CSR Register ---*/ /* Alias word address of EWUP bit */ #define EWUP_BIT_NUMBER PWR_CSR_EWUP_Pos #define CSR_EWUP_BB (PERIPH_BB_BASE + (PWR_CSR_OFFSET_BB * 32U) + (EWUP_BIT_NUMBER * 4U)) /** * @} */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup PWR_Private_Macros PWR Private Macros * @{ */ /** @defgroup PWR_IS_PWR_Definitions PWR Private macros to check input parameters * @{ */ #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \ ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \ ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \ ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7)) #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \ ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \ ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \ ((MODE) == PWR_PVD_MODE_NORMAL)) #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_ON) || \ ((REGULATOR) == PWR_LOWPOWERREGULATOR_ON)) #define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE)) #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE)) /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_PWR_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pwr_ex.h * @author MCD Application Team * @brief Header file of PWR HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_PWR_EX_H #define __STM32F4xx_HAL_PWR_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup PWREx * @{ */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup PWREx_Exported_Constants PWREx Exported Constants * @{ */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @defgroup PWREx_Regulator_state_in_UnderDrive_mode PWREx Regulator state in UnderDrive mode * @{ */ #define PWR_MAINREGULATOR_UNDERDRIVE_ON PWR_CR_MRUDS #define PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON ((uint32_t)(PWR_CR_LPDS | PWR_CR_LPUDS)) /** * @} */ /** @defgroup PWREx_Over_Under_Drive_Flag PWREx Over Under Drive Flag * @{ */ #define PWR_FLAG_ODRDY PWR_CSR_ODRDY #define PWR_FLAG_ODSWRDY PWR_CSR_ODSWRDY #define PWR_FLAG_UDRDY PWR_CSR_UDSWRDY /** * @} */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** @defgroup PWREx_Regulator_Voltage_Scale PWREx Regulator Voltage Scale * @{ */ #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx) #define PWR_REGULATOR_VOLTAGE_SCALE1 PWR_CR_VOS /* Scale 1 mode(default value at reset): the maximum value of fHCLK = 168 MHz. */ #define PWR_REGULATOR_VOLTAGE_SCALE2 0x00000000U /* Scale 2 mode: the maximum value of fHCLK = 144 MHz. */ #else #define PWR_REGULATOR_VOLTAGE_SCALE1 PWR_CR_VOS /* Scale 1 mode(default value at reset): the maximum value of fHCLK is 168 MHz. It can be extended to 180 MHz by activating the over-drive mode. */ #define PWR_REGULATOR_VOLTAGE_SCALE2 PWR_CR_VOS_1 /* Scale 2 mode: the maximum value of fHCLK is 144 MHz. It can be extended to 168 MHz by activating the over-drive mode. */ #define PWR_REGULATOR_VOLTAGE_SCALE3 PWR_CR_VOS_0 /* Scale 3 mode: the maximum value of fHCLK is 120 MHz. */ #endif /* STM32F405xx || STM32F407xx || STM32F415xx || STM32F417xx */ /** * @} */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup PWREx_WakeUp_Pins PWREx WakeUp Pins * @{ */ #define PWR_WAKEUP_PIN2 0x00000080U #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) #define PWR_WAKEUP_PIN3 0x00000040U #endif /* STM32F410xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Zx || STM32F412Vx || \ STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** * @} */ #endif /* STM32F410xx || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup PWREx_Exported_Constants PWREx Exported Constants * @{ */ #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx) /** @brief macros configure the main internal regulator output voltage. * @param __REGULATOR__ specifies the regulator output voltage to achieve * a tradeoff between performance and power consumption when the device does * not operate at the maximum frequency (refer to the datasheets for more details). * This parameter can be one of the following values: * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode * @retval None */ #define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) do { \ __IO uint32_t tmpreg = 0x00U; \ MODIFY_REG(PWR->CR, PWR_CR_VOS, (__REGULATOR__)); \ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(PWR->CR, PWR_CR_VOS); \ UNUSED(tmpreg); \ } while(0U) #else /** @brief macros configure the main internal regulator output voltage. * @param __REGULATOR__ specifies the regulator output voltage to achieve * a tradeoff between performance and power consumption when the device does * not operate at the maximum frequency (refer to the datasheets for more details). * This parameter can be one of the following values: * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode * @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode * @retval None */ #define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) do { \ __IO uint32_t tmpreg = 0x00U; \ MODIFY_REG(PWR->CR, PWR_CR_VOS, (__REGULATOR__)); \ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(PWR->CR, PWR_CR_VOS); \ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F405xx || STM32F407xx || STM32F415xx || STM32F417xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macros to enable or disable the Over drive mode. * @note These macros can be used only for STM32F42xx/STM3243xx devices. */ #define __HAL_PWR_OVERDRIVE_ENABLE() (*(__IO uint32_t *) CR_ODEN_BB = ENABLE) #define __HAL_PWR_OVERDRIVE_DISABLE() (*(__IO uint32_t *) CR_ODEN_BB = DISABLE) /** @brief Macros to enable or disable the Over drive switching. * @note These macros can be used only for STM32F42xx/STM3243xx devices. */ #define __HAL_PWR_OVERDRIVESWITCHING_ENABLE() (*(__IO uint32_t *) CR_ODSWEN_BB = ENABLE) #define __HAL_PWR_OVERDRIVESWITCHING_DISABLE() (*(__IO uint32_t *) CR_ODSWEN_BB = DISABLE) /** @brief Macros to enable or disable the Under drive mode. * @note This mode is enabled only with STOP low power mode. * In this mode, the 1.2V domain is preserved in reduced leakage mode. This * mode is only available when the main regulator or the low power regulator * is in low voltage mode. * @note If the Under-drive mode was enabled, it is automatically disabled after * exiting Stop mode. * When the voltage regulator operates in Under-drive mode, an additional * startup delay is induced when waking up from Stop mode. */ #define __HAL_PWR_UNDERDRIVE_ENABLE() (PWR->CR |= (uint32_t)PWR_CR_UDEN) #define __HAL_PWR_UNDERDRIVE_DISABLE() (PWR->CR &= (uint32_t)(~PWR_CR_UDEN)) /** @brief Check PWR flag is set or not. * @note These macros can be used only for STM32F42xx/STM3243xx devices. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg PWR_FLAG_ODRDY: This flag indicates that the Over-drive mode * is ready * @arg PWR_FLAG_ODSWRDY: This flag indicates that the Over-drive mode * switching is ready * @arg PWR_FLAG_UDRDY: This flag indicates that the Under-drive mode * is enabled in Stop mode * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_PWR_GET_ODRUDR_FLAG(__FLAG__) ((PWR->CSR & (__FLAG__)) == (__FLAG__)) /** @brief Clear the Under-Drive Ready flag. * @note These macros can be used only for STM32F42xx/STM3243xx devices. */ #define __HAL_PWR_CLEAR_ODRUDR_FLAG() (PWR->CSR |= PWR_FLAG_UDRDY) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup PWREx_Exported_Functions PWREx Exported Functions * @{ */ /** @addtogroup PWREx_Exported_Functions_Group1 * @{ */ void HAL_PWREx_EnableFlashPowerDown(void); void HAL_PWREx_DisableFlashPowerDown(void); HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void); HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void); uint32_t HAL_PWREx_GetVoltageRange(void); HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling); #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F401xC) ||\ defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F412Zx) || defined(STM32F412Vx) ||\ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) void HAL_PWREx_EnableMainRegulatorLowVoltage(void); void HAL_PWREx_DisableMainRegulatorLowVoltage(void); void HAL_PWREx_EnableLowRegulatorLowVoltage(void); void HAL_PWREx_DisableLowRegulatorLowVoltage(void); #endif /* STM32F410xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F412Zx || STM32F412Vx ||\ STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void); HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void); HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry); #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup PWREx_Private_Constants PWREx Private Constants * @{ */ /** @defgroup PWREx_register_alias_address PWREx Register alias address * @{ */ /* ------------- PWR registers bit address in the alias region ---------------*/ /* --- CR Register ---*/ /* Alias word address of FPDS bit */ #define FPDS_BIT_NUMBER PWR_CR_FPDS_Pos #define CR_FPDS_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (FPDS_BIT_NUMBER * 4U)) /* Alias word address of ODEN bit */ #define ODEN_BIT_NUMBER PWR_CR_ODEN_Pos #define CR_ODEN_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (ODEN_BIT_NUMBER * 4U)) /* Alias word address of ODSWEN bit */ #define ODSWEN_BIT_NUMBER PWR_CR_ODSWEN_Pos #define CR_ODSWEN_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (ODSWEN_BIT_NUMBER * 4U)) /* Alias word address of MRLVDS bit */ #define MRLVDS_BIT_NUMBER PWR_CR_MRLVDS_Pos #define CR_MRLVDS_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (MRLVDS_BIT_NUMBER * 4U)) /* Alias word address of LPLVDS bit */ #define LPLVDS_BIT_NUMBER PWR_CR_LPLVDS_Pos #define CR_LPLVDS_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32U) + (LPLVDS_BIT_NUMBER * 4U)) /** * @} */ /** @defgroup PWREx_CSR_register_alias PWRx CSR Register alias address * @{ */ /* --- CSR Register ---*/ /* Alias word address of BRE bit */ #define BRE_BIT_NUMBER PWR_CSR_BRE_Pos #define CSR_BRE_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CSR_OFFSET_BB * 32U) + (BRE_BIT_NUMBER * 4U)) /** * @} */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup PWREx_Private_Macros PWREx Private Macros * @{ */ /** @defgroup PWREx_IS_PWR_Definitions PWREx Private macros to check input parameters * @{ */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_UNDERDRIVE_ON) || \ ((REGULATOR) == PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx) #define IS_PWR_VOLTAGE_SCALING_RANGE(VOLTAGE) (((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE1) || \ ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE2)) #else #define IS_PWR_VOLTAGE_SCALING_RANGE(VOLTAGE) (((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE1) || \ ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE2) || \ ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE3)) #endif /* STM32F405xx || STM32F407xx || STM32F415xx || STM32F417xx */ #if defined(STM32F446xx) #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || ((PIN) == PWR_WAKEUP_PIN2)) #elif defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || ((PIN) == PWR_WAKEUP_PIN2) || \ ((PIN) == PWR_WAKEUP_PIN3)) #else #define IS_PWR_WAKEUP_PIN(PIN) ((PIN) == PWR_WAKEUP_PIN1) #endif /* STM32F446xx */ /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_PWR_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_rcc.h * @author MCD Application Team * @brief Header file of RCC HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_RCC_H #define __STM32F4xx_HAL_RCC_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /* Include RCC HAL Extended module */ /* (include on top of file since RCC structures are defined in extended file) */ #include "stm32f4xx_hal_rcc_ex.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup RCC * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup RCC_Exported_Types RCC Exported Types * @{ */ /** * @brief RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition */ typedef struct { uint32_t OscillatorType; /*!< The oscillators to be configured. This parameter can be a value of @ref RCC_Oscillator_Type */ uint32_t HSEState; /*!< The new state of the HSE. This parameter can be a value of @ref RCC_HSE_Config */ uint32_t LSEState; /*!< The new state of the LSE. This parameter can be a value of @ref RCC_LSE_Config */ uint32_t HSIState; /*!< The new state of the HSI. This parameter can be a value of @ref RCC_HSI_Config */ uint32_t HSICalibrationValue; /*!< The HSI calibration trimming value (default is RCC_HSICALIBRATION_DEFAULT). This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x1F */ uint32_t LSIState; /*!< The new state of the LSI. This parameter can be a value of @ref RCC_LSI_Config */ RCC_PLLInitTypeDef PLL; /*!< PLL structure parameters */ }RCC_OscInitTypeDef; /** * @brief RCC System, AHB and APB busses clock configuration structure definition */ typedef struct { uint32_t ClockType; /*!< The clock to be configured. This parameter can be a value of @ref RCC_System_Clock_Type */ uint32_t SYSCLKSource; /*!< The clock source (SYSCLKS) used as system clock. This parameter can be a value of @ref RCC_System_Clock_Source */ uint32_t AHBCLKDivider; /*!< The AHB clock (HCLK) divider. This clock is derived from the system clock (SYSCLK). This parameter can be a value of @ref RCC_AHB_Clock_Source */ uint32_t APB1CLKDivider; /*!< The APB1 clock (PCLK1) divider. This clock is derived from the AHB clock (HCLK). This parameter can be a value of @ref RCC_APB1_APB2_Clock_Source */ uint32_t APB2CLKDivider; /*!< The APB2 clock (PCLK2) divider. This clock is derived from the AHB clock (HCLK). This parameter can be a value of @ref RCC_APB1_APB2_Clock_Source */ }RCC_ClkInitTypeDef; /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup RCC_Exported_Constants RCC Exported Constants * @{ */ /** @defgroup RCC_Oscillator_Type Oscillator Type * @{ */ #define RCC_OSCILLATORTYPE_NONE 0x00000000U #define RCC_OSCILLATORTYPE_HSE 0x00000001U #define RCC_OSCILLATORTYPE_HSI 0x00000002U #define RCC_OSCILLATORTYPE_LSE 0x00000004U #define RCC_OSCILLATORTYPE_LSI 0x00000008U /** * @} */ /** @defgroup RCC_HSE_Config HSE Config * @{ */ #define RCC_HSE_OFF 0x00000000U #define RCC_HSE_ON RCC_CR_HSEON #define RCC_HSE_BYPASS ((uint32_t)(RCC_CR_HSEBYP | RCC_CR_HSEON)) /** * @} */ /** @defgroup RCC_LSE_Config LSE Config * @{ */ #define RCC_LSE_OFF 0x00000000U #define RCC_LSE_ON RCC_BDCR_LSEON #define RCC_LSE_BYPASS ((uint32_t)(RCC_BDCR_LSEBYP | RCC_BDCR_LSEON)) /** * @} */ /** @defgroup RCC_HSI_Config HSI Config * @{ */ #define RCC_HSI_OFF ((uint8_t)0x00) #define RCC_HSI_ON ((uint8_t)0x01) #define RCC_HSICALIBRATION_DEFAULT 0x10U /* Default HSI calibration trimming value */ /** * @} */ /** @defgroup RCC_LSI_Config LSI Config * @{ */ #define RCC_LSI_OFF ((uint8_t)0x00) #define RCC_LSI_ON ((uint8_t)0x01) /** * @} */ /** @defgroup RCC_PLL_Config PLL Config * @{ */ #define RCC_PLL_NONE ((uint8_t)0x00) #define RCC_PLL_OFF ((uint8_t)0x01) #define RCC_PLL_ON ((uint8_t)0x02) /** * @} */ /** @defgroup RCC_PLLP_Clock_Divider PLLP Clock Divider * @{ */ #define RCC_PLLP_DIV2 0x00000002U #define RCC_PLLP_DIV4 0x00000004U #define RCC_PLLP_DIV6 0x00000006U #define RCC_PLLP_DIV8 0x00000008U /** * @} */ /** @defgroup RCC_PLL_Clock_Source PLL Clock Source * @{ */ #define RCC_PLLSOURCE_HSI RCC_PLLCFGR_PLLSRC_HSI #define RCC_PLLSOURCE_HSE RCC_PLLCFGR_PLLSRC_HSE /** * @} */ /** @defgroup RCC_System_Clock_Type System Clock Type * @{ */ #define RCC_CLOCKTYPE_SYSCLK 0x00000001U #define RCC_CLOCKTYPE_HCLK 0x00000002U #define RCC_CLOCKTYPE_PCLK1 0x00000004U #define RCC_CLOCKTYPE_PCLK2 0x00000008U /** * @} */ /** @defgroup RCC_System_Clock_Source System Clock Source * @note The RCC_SYSCLKSOURCE_PLLRCLK parameter is available only for * STM32F446xx devices. * @{ */ #define RCC_SYSCLKSOURCE_HSI RCC_CFGR_SW_HSI #define RCC_SYSCLKSOURCE_HSE RCC_CFGR_SW_HSE #define RCC_SYSCLKSOURCE_PLLCLK RCC_CFGR_SW_PLL #define RCC_SYSCLKSOURCE_PLLRCLK ((uint32_t)(RCC_CFGR_SW_0 | RCC_CFGR_SW_1)) /** * @} */ /** @defgroup RCC_System_Clock_Source_Status System Clock Source Status * @note The RCC_SYSCLKSOURCE_STATUS_PLLRCLK parameter is available only for * STM32F446xx devices. * @{ */ #define RCC_SYSCLKSOURCE_STATUS_HSI RCC_CFGR_SWS_HSI /*!< HSI used as system clock */ #define RCC_SYSCLKSOURCE_STATUS_HSE RCC_CFGR_SWS_HSE /*!< HSE used as system clock */ #define RCC_SYSCLKSOURCE_STATUS_PLLCLK RCC_CFGR_SWS_PLL /*!< PLL used as system clock */ #define RCC_SYSCLKSOURCE_STATUS_PLLRCLK ((uint32_t)(RCC_CFGR_SWS_0 | RCC_CFGR_SWS_1)) /*!< PLLR used as system clock */ /** * @} */ /** @defgroup RCC_AHB_Clock_Source AHB Clock Source * @{ */ #define RCC_SYSCLK_DIV1 RCC_CFGR_HPRE_DIV1 #define RCC_SYSCLK_DIV2 RCC_CFGR_HPRE_DIV2 #define RCC_SYSCLK_DIV4 RCC_CFGR_HPRE_DIV4 #define RCC_SYSCLK_DIV8 RCC_CFGR_HPRE_DIV8 #define RCC_SYSCLK_DIV16 RCC_CFGR_HPRE_DIV16 #define RCC_SYSCLK_DIV64 RCC_CFGR_HPRE_DIV64 #define RCC_SYSCLK_DIV128 RCC_CFGR_HPRE_DIV128 #define RCC_SYSCLK_DIV256 RCC_CFGR_HPRE_DIV256 #define RCC_SYSCLK_DIV512 RCC_CFGR_HPRE_DIV512 /** * @} */ /** @defgroup RCC_APB1_APB2_Clock_Source APB1/APB2 Clock Source * @{ */ #define RCC_HCLK_DIV1 RCC_CFGR_PPRE1_DIV1 #define RCC_HCLK_DIV2 RCC_CFGR_PPRE1_DIV2 #define RCC_HCLK_DIV4 RCC_CFGR_PPRE1_DIV4 #define RCC_HCLK_DIV8 RCC_CFGR_PPRE1_DIV8 #define RCC_HCLK_DIV16 RCC_CFGR_PPRE1_DIV16 /** * @} */ /** @defgroup RCC_RTC_Clock_Source RTC Clock Source * @{ */ #define RCC_RTCCLKSOURCE_NO_CLK 0x00000000U #define RCC_RTCCLKSOURCE_LSE 0x00000100U #define RCC_RTCCLKSOURCE_LSI 0x00000200U #define RCC_RTCCLKSOURCE_HSE_DIVX 0x00000300U #define RCC_RTCCLKSOURCE_HSE_DIV2 0x00020300U #define RCC_RTCCLKSOURCE_HSE_DIV3 0x00030300U #define RCC_RTCCLKSOURCE_HSE_DIV4 0x00040300U #define RCC_RTCCLKSOURCE_HSE_DIV5 0x00050300U #define RCC_RTCCLKSOURCE_HSE_DIV6 0x00060300U #define RCC_RTCCLKSOURCE_HSE_DIV7 0x00070300U #define RCC_RTCCLKSOURCE_HSE_DIV8 0x00080300U #define RCC_RTCCLKSOURCE_HSE_DIV9 0x00090300U #define RCC_RTCCLKSOURCE_HSE_DIV10 0x000A0300U #define RCC_RTCCLKSOURCE_HSE_DIV11 0x000B0300U #define RCC_RTCCLKSOURCE_HSE_DIV12 0x000C0300U #define RCC_RTCCLKSOURCE_HSE_DIV13 0x000D0300U #define RCC_RTCCLKSOURCE_HSE_DIV14 0x000E0300U #define RCC_RTCCLKSOURCE_HSE_DIV15 0x000F0300U #define RCC_RTCCLKSOURCE_HSE_DIV16 0x00100300U #define RCC_RTCCLKSOURCE_HSE_DIV17 0x00110300U #define RCC_RTCCLKSOURCE_HSE_DIV18 0x00120300U #define RCC_RTCCLKSOURCE_HSE_DIV19 0x00130300U #define RCC_RTCCLKSOURCE_HSE_DIV20 0x00140300U #define RCC_RTCCLKSOURCE_HSE_DIV21 0x00150300U #define RCC_RTCCLKSOURCE_HSE_DIV22 0x00160300U #define RCC_RTCCLKSOURCE_HSE_DIV23 0x00170300U #define RCC_RTCCLKSOURCE_HSE_DIV24 0x00180300U #define RCC_RTCCLKSOURCE_HSE_DIV25 0x00190300U #define RCC_RTCCLKSOURCE_HSE_DIV26 0x001A0300U #define RCC_RTCCLKSOURCE_HSE_DIV27 0x001B0300U #define RCC_RTCCLKSOURCE_HSE_DIV28 0x001C0300U #define RCC_RTCCLKSOURCE_HSE_DIV29 0x001D0300U #define RCC_RTCCLKSOURCE_HSE_DIV30 0x001E0300U #define RCC_RTCCLKSOURCE_HSE_DIV31 0x001F0300U /** * @} */ /** @defgroup RCC_MCO_Index MCO Index * @{ */ #define RCC_MCO1 0x00000000U #define RCC_MCO2 0x00000001U /** * @} */ /** @defgroup RCC_MCO1_Clock_Source MCO1 Clock Source * @{ */ #define RCC_MCO1SOURCE_HSI 0x00000000U #define RCC_MCO1SOURCE_LSE RCC_CFGR_MCO1_0 #define RCC_MCO1SOURCE_HSE RCC_CFGR_MCO1_1 #define RCC_MCO1SOURCE_PLLCLK RCC_CFGR_MCO1 /** * @} */ /** @defgroup RCC_MCOx_Clock_Prescaler MCOx Clock Prescaler * @{ */ #define RCC_MCODIV_1 0x00000000U #define RCC_MCODIV_2 RCC_CFGR_MCO1PRE_2 #define RCC_MCODIV_3 ((uint32_t)RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_2) #define RCC_MCODIV_4 ((uint32_t)RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_2) #define RCC_MCODIV_5 RCC_CFGR_MCO1PRE /** * @} */ /** @defgroup RCC_Interrupt Interrupts * @{ */ #define RCC_IT_LSIRDY ((uint8_t)0x01) #define RCC_IT_LSERDY ((uint8_t)0x02) #define RCC_IT_HSIRDY ((uint8_t)0x04) #define RCC_IT_HSERDY ((uint8_t)0x08) #define RCC_IT_PLLRDY ((uint8_t)0x10) #define RCC_IT_PLLI2SRDY ((uint8_t)0x20) #define RCC_IT_CSS ((uint8_t)0x80) /** * @} */ /** @defgroup RCC_Flag Flags * Elements values convention: 0XXYYYYYb * - YYYYY : Flag position in the register * - 0XX : Register index * - 01: CR register * - 10: BDCR register * - 11: CSR register * @{ */ /* Flags in the CR register */ #define RCC_FLAG_HSIRDY ((uint8_t)0x21) #define RCC_FLAG_HSERDY ((uint8_t)0x31) #define RCC_FLAG_PLLRDY ((uint8_t)0x39) #define RCC_FLAG_PLLI2SRDY ((uint8_t)0x3B) /* Flags in the BDCR register */ #define RCC_FLAG_LSERDY ((uint8_t)0x41) /* Flags in the CSR register */ #define RCC_FLAG_LSIRDY ((uint8_t)0x61) #define RCC_FLAG_BORRST ((uint8_t)0x79) #define RCC_FLAG_PINRST ((uint8_t)0x7A) #define RCC_FLAG_PORRST ((uint8_t)0x7B) #define RCC_FLAG_SFTRST ((uint8_t)0x7C) #define RCC_FLAG_IWDGRST ((uint8_t)0x7D) #define RCC_FLAG_WWDGRST ((uint8_t)0x7E) #define RCC_FLAG_LPWRRST ((uint8_t)0x7F) /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup RCC_Exported_Macros RCC Exported Macros * @{ */ /** @defgroup RCC_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enable or disable the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOA_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOAEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOAEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOB_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOBEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOBEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOH_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOHEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOHEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DMA1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DMA2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOA_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOAEN)) #define __HAL_RCC_GPIOB_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOBEN)) #define __HAL_RCC_GPIOC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOCEN)) #define __HAL_RCC_GPIOH_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOHEN)) #define __HAL_RCC_DMA1_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA1EN)) #define __HAL_RCC_DMA2_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA2EN)) /** * @} */ /** @defgroup RCC_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOA_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOAEN)) != RESET) #define __HAL_RCC_GPIOB_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOBEN)) != RESET) #define __HAL_RCC_GPIOC_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOCEN)) != RESET) #define __HAL_RCC_GPIOH_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOHEN)) != RESET) #define __HAL_RCC_DMA1_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA1EN)) != RESET) #define __HAL_RCC_DMA2_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA2EN)) != RESET) #define __HAL_RCC_GPIOA_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOAEN)) == RESET) #define __HAL_RCC_GPIOB_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOBEN)) == RESET) #define __HAL_RCC_GPIOC_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOCEN)) == RESET) #define __HAL_RCC_GPIOH_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOHEN)) == RESET) #define __HAL_RCC_DMA1_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA1EN)) == RESET) #define __HAL_RCC_DMA2_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA2EN)) == RESET) /** * @} */ /** @defgroup RCC_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_WWDG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_WWDGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_WWDGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_USART2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_PWR_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_PWREN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_PWREN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM5EN)) #define __HAL_RCC_WWDG_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_WWDGEN)) #define __HAL_RCC_SPI2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI2EN)) #define __HAL_RCC_USART2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART2EN)) #define __HAL_RCC_I2C1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C1EN)) #define __HAL_RCC_I2C2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C2EN)) #define __HAL_RCC_PWR_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_PWREN)) /** * @} */ /** @defgroup RCC_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM5EN)) != RESET) #define __HAL_RCC_WWDG_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_WWDGEN)) != RESET) #define __HAL_RCC_SPI2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) != RESET) #define __HAL_RCC_USART2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART2EN)) != RESET) #define __HAL_RCC_I2C1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C1EN)) != RESET) #define __HAL_RCC_I2C2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) != RESET) #define __HAL_RCC_PWR_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_PWREN)) != RESET) #define __HAL_RCC_TIM5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM5EN)) == RESET) #define __HAL_RCC_WWDG_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_WWDGEN)) == RESET) #define __HAL_RCC_SPI2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) == RESET) #define __HAL_RCC_USART2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART2EN)) == RESET) #define __HAL_RCC_I2C1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C1EN)) == RESET) #define __HAL_RCC_I2C2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) == RESET) #define __HAL_RCC_PWR_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_PWREN)) == RESET) /** * @} */ /** @defgroup RCC_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SYSCFG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM9_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM9EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM9EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM11_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM11EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM11EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM1EN)) #define __HAL_RCC_USART1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_USART1EN)) #define __HAL_RCC_USART6_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_USART6EN)) #define __HAL_RCC_ADC1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC1EN)) #define __HAL_RCC_SPI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI1EN)) #define __HAL_RCC_SYSCFG_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SYSCFGEN)) #define __HAL_RCC_TIM9_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM9EN)) #define __HAL_RCC_TIM11_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM11EN)) /** * @} */ /** @defgroup RCC_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) != RESET) #define __HAL_RCC_USART1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) != RESET) #define __HAL_RCC_USART6_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) != RESET) #define __HAL_RCC_ADC1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) != RESET) #define __HAL_RCC_SPI1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) != RESET) #define __HAL_RCC_SYSCFG_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) != RESET) #define __HAL_RCC_TIM9_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) != RESET) #define __HAL_RCC_TIM11_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) != RESET) #define __HAL_RCC_TIM1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) == RESET) #define __HAL_RCC_USART1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) == RESET) #define __HAL_RCC_USART6_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) == RESET) #define __HAL_RCC_ADC1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) == RESET) #define __HAL_RCC_SPI1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) == RESET) #define __HAL_RCC_SYSCFG_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) == RESET) #define __HAL_RCC_TIM9_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) == RESET) #define __HAL_RCC_TIM11_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) == RESET) /** * @} */ /** @defgroup RCC_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0xFFFFFFFFU) #define __HAL_RCC_GPIOA_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOARST)) #define __HAL_RCC_GPIOB_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOBRST)) #define __HAL_RCC_GPIOC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOCRST)) #define __HAL_RCC_GPIOH_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOHRST)) #define __HAL_RCC_DMA1_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA1RST)) #define __HAL_RCC_DMA2_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA2RST)) #define __HAL_RCC_AHB1_RELEASE_RESET() (RCC->AHB1RSTR = 0x00U) #define __HAL_RCC_GPIOA_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOARST)) #define __HAL_RCC_GPIOB_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOBRST)) #define __HAL_RCC_GPIOC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOCRST)) #define __HAL_RCC_GPIOH_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOHRST)) #define __HAL_RCC_DMA1_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_DMA1RST)) #define __HAL_RCC_DMA2_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_DMA2RST)) /** * @} */ /** @defgroup RCC_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_APB1_FORCE_RESET() (RCC->APB1RSTR = 0xFFFFFFFFU) #define __HAL_RCC_TIM5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM5RST)) #define __HAL_RCC_WWDG_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_WWDGRST)) #define __HAL_RCC_SPI2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI2RST)) #define __HAL_RCC_USART2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART2RST)) #define __HAL_RCC_I2C1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C1RST)) #define __HAL_RCC_I2C2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C2RST)) #define __HAL_RCC_PWR_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_PWRRST)) #define __HAL_RCC_APB1_RELEASE_RESET() (RCC->APB1RSTR = 0x00U) #define __HAL_RCC_TIM5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM5RST)) #define __HAL_RCC_WWDG_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_WWDGRST)) #define __HAL_RCC_SPI2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI2RST)) #define __HAL_RCC_USART2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART2RST)) #define __HAL_RCC_I2C1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C1RST)) #define __HAL_RCC_I2C2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C2RST)) #define __HAL_RCC_PWR_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_PWRRST)) /** * @} */ /** @defgroup RCC_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_TIM1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM1RST)) #define __HAL_RCC_USART1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_USART1RST)) #define __HAL_RCC_USART6_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_USART6RST)) #define __HAL_RCC_ADC_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_ADCRST)) #define __HAL_RCC_SPI1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI1RST)) #define __HAL_RCC_SYSCFG_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SYSCFGRST)) #define __HAL_RCC_TIM9_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM9RST)) #define __HAL_RCC_TIM11_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM11RST)) #define __HAL_RCC_APB2_RELEASE_RESET() (RCC->APB2RSTR = 0x00U) #define __HAL_RCC_TIM1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM1RST)) #define __HAL_RCC_USART1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART1RST)) #define __HAL_RCC_USART6_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART6RST)) #define __HAL_RCC_ADC_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_ADCRST)) #define __HAL_RCC_SPI1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI1RST)) #define __HAL_RCC_SYSCFG_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SYSCFGRST)) #define __HAL_RCC_TIM9_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM9RST)) #define __HAL_RCC_TIM11_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM11RST)) /** * @} */ /** @defgroup RCC_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOALPEN)) #define __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOBLPEN)) #define __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOCLPEN)) #define __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOHLPEN)) #define __HAL_RCC_DMA1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) #define __HAL_RCC_DMA2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) #define __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOALPEN)) #define __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOBLPEN)) #define __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOCLPEN)) #define __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOHLPEN)) #define __HAL_RCC_DMA1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA1LPEN)) #define __HAL_RCC_DMA2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA2LPEN)) /** * @} */ /** @defgroup RCC_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM5LPEN)) #define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_WWDGLPEN)) #define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI2LPEN)) #define __HAL_RCC_USART2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART2LPEN)) #define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C1LPEN)) #define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C2LPEN)) #define __HAL_RCC_PWR_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_PWRLPEN)) #define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM5LPEN)) #define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_WWDGLPEN)) #define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI2LPEN)) #define __HAL_RCC_USART2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART2LPEN)) #define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C1LPEN)) #define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C2LPEN)) #define __HAL_RCC_PWR_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_PWRLPEN)) /** * @} */ /** @defgroup RCC_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN)) #define __HAL_RCC_USART1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN)) #define __HAL_RCC_USART6_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN)) #define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN)) #define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN)) #define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN)) #define __HAL_RCC_TIM9_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN)) #define __HAL_RCC_TIM11_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN)) #define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN)) #define __HAL_RCC_USART1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN)) #define __HAL_RCC_USART6_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN)) #define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN)) #define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN)) #define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN)) #define __HAL_RCC_TIM9_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN)) #define __HAL_RCC_TIM11_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN)) /** * @} */ /** @defgroup RCC_HSI_Configuration HSI Configuration * @{ */ /** @brief Macros to enable or disable the Internal High Speed oscillator (HSI). * @note The HSI is stopped by hardware when entering STOP and STANDBY modes. * It is used (enabled by hardware) as system clock source after startup * from Reset, wake-up from STOP and STANDBY mode, or in case of failure * of the HSE used directly or indirectly as system clock (if the Clock * Security System CSS is enabled). * @note HSI can not be stopped if it is used as system clock source. In this case, * you have to select another source of the system clock then stop the HSI. * @note After enabling the HSI, the application software should wait on HSIRDY * flag to be set indicating that HSI clock is stable and can be used as * system clock source. * This parameter can be: ENABLE or DISABLE. * @note When the HSI is stopped, HSIRDY flag goes low after 6 HSI oscillator * clock cycles. */ #define __HAL_RCC_HSI_ENABLE() (*(__IO uint32_t *) RCC_CR_HSION_BB = ENABLE) #define __HAL_RCC_HSI_DISABLE() (*(__IO uint32_t *) RCC_CR_HSION_BB = DISABLE) /** @brief Macro to adjust the Internal High Speed oscillator (HSI) calibration value. * @note The calibration is used to compensate for the variations in voltage * and temperature that influence the frequency of the internal HSI RC. * @param __HSICalibrationValue__ specifies the calibration trimming value. * (default is RCC_HSICALIBRATION_DEFAULT). * This parameter must be a number between 0 and 0x1F. */ #define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) (MODIFY_REG(RCC->CR,\ RCC_CR_HSITRIM, (uint32_t)(__HSICalibrationValue__) << RCC_CR_HSITRIM_Pos)) /** * @} */ /** @defgroup RCC_LSI_Configuration LSI Configuration * @{ */ /** @brief Macros to enable or disable the Internal Low Speed oscillator (LSI). * @note After enabling the LSI, the application software should wait on * LSIRDY flag to be set indicating that LSI clock is stable and can * be used to clock the IWDG and/or the RTC. * @note LSI can not be disabled if the IWDG is running. * @note When the LSI is stopped, LSIRDY flag goes low after 6 LSI oscillator * clock cycles. */ #define __HAL_RCC_LSI_ENABLE() (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE) #define __HAL_RCC_LSI_DISABLE() (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE) /** * @} */ /** @defgroup RCC_HSE_Configuration HSE Configuration * @{ */ /** * @brief Macro to configure the External High Speed oscillator (HSE). * @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not supported by this macro. * User should request a transition to HSE Off first and then HSE On or HSE Bypass. * @note After enabling the HSE (RCC_HSE_ON or RCC_HSE_Bypass), the application * software should wait on HSERDY flag to be set indicating that HSE clock * is stable and can be used to clock the PLL and/or system clock. * @note HSE state can not be changed if it is used directly or through the * PLL as system clock. In this case, you have to select another source * of the system clock then change the HSE state (ex. disable it). * @note The HSE is stopped by hardware when entering STOP and STANDBY modes. * @note This function reset the CSSON bit, so if the clock security system(CSS) * was previously enabled you have to enable it again after calling this * function. * @param __STATE__ specifies the new state of the HSE. * This parameter can be one of the following values: * @arg RCC_HSE_OFF: turn OFF the HSE oscillator, HSERDY flag goes low after * 6 HSE oscillator clock cycles. * @arg RCC_HSE_ON: turn ON the HSE oscillator. * @arg RCC_HSE_BYPASS: HSE oscillator bypassed with external clock. */ #define __HAL_RCC_HSE_CONFIG(__STATE__) \ do { \ if ((__STATE__) == RCC_HSE_ON) \ { \ SET_BIT(RCC->CR, RCC_CR_HSEON); \ } \ else if ((__STATE__) == RCC_HSE_BYPASS) \ { \ SET_BIT(RCC->CR, RCC_CR_HSEBYP); \ SET_BIT(RCC->CR, RCC_CR_HSEON); \ } \ else \ { \ CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ } \ } while(0U) /** * @} */ /** @defgroup RCC_LSE_Configuration LSE Configuration * @{ */ /** * @brief Macro to configure the External Low Speed oscillator (LSE). * @note Transition LSE Bypass to LSE On and LSE On to LSE Bypass are not supported by this macro. * User should request a transition to LSE Off first and then LSE On or LSE Bypass. * @note As the LSE is in the Backup domain and write access is denied to * this domain after reset, you have to enable write access using * HAL_PWR_EnableBkUpAccess() function before to configure the LSE * (to be done once after reset). * @note After enabling the LSE (RCC_LSE_ON or RCC_LSE_BYPASS), the application * software should wait on LSERDY flag to be set indicating that LSE clock * is stable and can be used to clock the RTC. * @param __STATE__ specifies the new state of the LSE. * This parameter can be one of the following values: * @arg RCC_LSE_OFF: turn OFF the LSE oscillator, LSERDY flag goes low after * 6 LSE oscillator clock cycles. * @arg RCC_LSE_ON: turn ON the LSE oscillator. * @arg RCC_LSE_BYPASS: LSE oscillator bypassed with external clock. */ #define __HAL_RCC_LSE_CONFIG(__STATE__) \ do { \ if((__STATE__) == RCC_LSE_ON) \ { \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ } \ else if((__STATE__) == RCC_LSE_BYPASS) \ { \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ } \ else \ { \ CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ } \ } while(0U) /** * @} */ /** @defgroup RCC_Internal_RTC_Clock_Configuration RTC Clock Configuration * @{ */ /** @brief Macros to enable or disable the RTC clock. * @note These macros must be used only after the RTC clock source was selected. */ #define __HAL_RCC_RTC_ENABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) #define __HAL_RCC_RTC_DISABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = DISABLE) /** @brief Macros to configure the RTC clock (RTCCLK). * @note As the RTC clock configuration bits are in the Backup domain and write * access is denied to this domain after reset, you have to enable write * access using the Power Backup Access macro before to configure * the RTC clock source (to be done once after reset). * @note Once the RTC clock is configured it can't be changed unless the * Backup domain is reset using __HAL_RCC_BackupReset_RELEASE() macro, or by * a Power On Reset (POR). * @param __RTCCLKSource__ specifies the RTC clock source. * This parameter can be one of the following values: * @arg @ref RCC_RTCCLKSOURCE_NO_CLK : No clock selected as RTC clock. * @arg @ref RCC_RTCCLKSOURCE_LSE : LSE selected as RTC clock. * @arg @ref RCC_RTCCLKSOURCE_LSI : LSI selected as RTC clock. * @arg @ref RCC_RTCCLKSOURCE_HSE_DIVX HSE divided by X selected as RTC clock (X can be retrieved thanks to @ref __HAL_RCC_GET_RTC_HSE_PRESCALER() * @note If the LSE or LSI is used as RTC clock source, the RTC continues to * work in STOP and STANDBY modes, and can be used as wake-up source. * However, when the HSE clock is used as RTC clock source, the RTC * cannot be used in STOP and STANDBY modes. * @note The maximum input clock frequency for RTC is 1MHz (when using HSE as * RTC clock source). */ #define __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) (((__RTCCLKSource__) & RCC_BDCR_RTCSEL) == RCC_BDCR_RTCSEL) ? \ MODIFY_REG(RCC->CFGR, RCC_CFGR_RTCPRE, ((__RTCCLKSource__) & 0xFFFFCFFU)) : CLEAR_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) #define __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) do { __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__); \ RCC->BDCR |= ((__RTCCLKSource__) & 0x00000FFFU); \ } while(0U) /** @brief Macro to get the RTC clock source. * @retval The clock source can be one of the following values: * @arg @ref RCC_RTCCLKSOURCE_NO_CLK No clock selected as RTC clock * @arg @ref RCC_RTCCLKSOURCE_LSE LSE selected as RTC clock * @arg @ref RCC_RTCCLKSOURCE_LSI LSI selected as RTC clock * @arg @ref RCC_RTCCLKSOURCE_HSE_DIVX HSE divided by X selected as RTC clock (X can be retrieved thanks to @ref __HAL_RCC_GET_RTC_HSE_PRESCALER() */ #define __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) /** * @brief Get the RTC and HSE clock divider (RTCPRE). * @retval Returned value can be one of the following values: * @arg @ref RCC_RTCCLKSOURCE_HSE_DIVX HSE divided by X selected as RTC clock (X can be retrieved thanks to @ref __HAL_RCC_GET_RTC_HSE_PRESCALER() */ #define __HAL_RCC_GET_RTC_HSE_PRESCALER() (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) /** @brief Macros to force or release the Backup domain reset. * @note This function resets the RTC peripheral (including the backup registers) * and the RTC clock source selection in RCC_CSR register. * @note The BKPSRAM is not affected by this reset. */ #define __HAL_RCC_BACKUPRESET_FORCE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) #define __HAL_RCC_BACKUPRESET_RELEASE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = DISABLE) /** * @} */ /** @defgroup RCC_PLL_Configuration PLL Configuration * @{ */ /** @brief Macros to enable or disable the main PLL. * @note After enabling the main PLL, the application software should wait on * PLLRDY flag to be set indicating that PLL clock is stable and can * be used as system clock source. * @note The main PLL can not be disabled if it is used as system clock source * @note The main PLL is disabled by hardware when entering STOP and STANDBY modes. */ #define __HAL_RCC_PLL_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) #define __HAL_RCC_PLL_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE) /** @brief Macro to configure the PLL clock source. * @note This function must be used only when the main PLL is disabled. * @param __PLLSOURCE__ specifies the PLL entry clock source. * This parameter can be one of the following values: * @arg RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry * @arg RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry * */ #define __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) /** @brief Macro to configure the PLL multiplication factor. * @note This function must be used only when the main PLL is disabled. * @param __PLLM__ specifies the division factor for PLL VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 2 MHz to limit PLL jitter. * */ #define __HAL_RCC_PLL_PLLM_CONFIG(__PLLM__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) /** * @} */ /** @defgroup RCC_Get_Clock_source Get Clock source * @{ */ /** * @brief Macro to configure the system clock source. * @param __RCC_SYSCLKSOURCE__ specifies the system clock source. * This parameter can be one of the following values: * - RCC_SYSCLKSOURCE_HSI: HSI oscillator is used as system clock source. * - RCC_SYSCLKSOURCE_HSE: HSE oscillator is used as system clock source. * - RCC_SYSCLKSOURCE_PLLCLK: PLL output is used as system clock source. * - RCC_SYSCLKSOURCE_PLLRCLK: PLLR output is used as system clock source. This * parameter is available only for STM32F446xx devices. */ #define __HAL_RCC_SYSCLK_CONFIG(__RCC_SYSCLKSOURCE__) MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, (__RCC_SYSCLKSOURCE__)) /** @brief Macro to get the clock source used as system clock. * @retval The clock source used as system clock. The returned value can be one * of the following: * - RCC_SYSCLKSOURCE_STATUS_HSI: HSI used as system clock. * - RCC_SYSCLKSOURCE_STATUS_HSE: HSE used as system clock. * - RCC_SYSCLKSOURCE_STATUS_PLLCLK: PLL used as system clock. * - RCC_SYSCLKSOURCE_STATUS_PLLRCLK: PLLR used as system clock. This parameter * is available only for STM32F446xx devices. */ #define __HAL_RCC_GET_SYSCLK_SOURCE() (RCC->CFGR & RCC_CFGR_SWS) /** @brief Macro to get the oscillator used as PLL clock source. * @retval The oscillator used as PLL clock source. The returned value can be one * of the following: * - RCC_PLLSOURCE_HSI: HSI oscillator is used as PLL clock source. * - RCC_PLLSOURCE_HSE: HSE oscillator is used as PLL clock source. */ #define __HAL_RCC_GET_PLL_OSCSOURCE() ((uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC)) /** * @} */ /** @defgroup RCCEx_MCOx_Clock_Config RCC Extended MCOx Clock Config * @{ */ /** @brief Macro to configure the MCO1 clock. * @param __MCOCLKSOURCE__ specifies the MCO clock source. * This parameter can be one of the following values: * @arg RCC_MCO1SOURCE_HSI: HSI clock selected as MCO1 source * @arg RCC_MCO1SOURCE_LSE: LSE clock selected as MCO1 source * @arg RCC_MCO1SOURCE_HSE: HSE clock selected as MCO1 source * @arg RCC_MCO1SOURCE_PLLCLK: main PLL clock selected as MCO1 source * @param __MCODIV__ specifies the MCO clock prescaler. * This parameter can be one of the following values: * @arg RCC_MCODIV_1: no division applied to MCOx clock * @arg RCC_MCODIV_2: division by 2 applied to MCOx clock * @arg RCC_MCODIV_3: division by 3 applied to MCOx clock * @arg RCC_MCODIV_4: division by 4 applied to MCOx clock * @arg RCC_MCODIV_5: division by 5 applied to MCOx clock */ #define __HAL_RCC_MCO1_CONFIG(__MCOCLKSOURCE__, __MCODIV__) \ MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO1 | RCC_CFGR_MCO1PRE), ((__MCOCLKSOURCE__) | (__MCODIV__))) /** @brief Macro to configure the MCO2 clock. * @param __MCOCLKSOURCE__ specifies the MCO clock source. * This parameter can be one of the following values: * @arg RCC_MCO2SOURCE_SYSCLK: System clock (SYSCLK) selected as MCO2 source * @arg RCC_MCO2SOURCE_PLLI2SCLK: PLLI2S clock selected as MCO2 source, available for all STM32F4 devices except STM32F410xx * @arg RCC_MCO2SOURCE_I2SCLK: I2SCLK clock selected as MCO2 source, available only for STM32F410Rx devices * @arg RCC_MCO2SOURCE_HSE: HSE clock selected as MCO2 source * @arg RCC_MCO2SOURCE_PLLCLK: main PLL clock selected as MCO2 source * @param __MCODIV__ specifies the MCO clock prescaler. * This parameter can be one of the following values: * @arg RCC_MCODIV_1: no division applied to MCOx clock * @arg RCC_MCODIV_2: division by 2 applied to MCOx clock * @arg RCC_MCODIV_3: division by 3 applied to MCOx clock * @arg RCC_MCODIV_4: division by 4 applied to MCOx clock * @arg RCC_MCODIV_5: division by 5 applied to MCOx clock * @note For STM32F410Rx devices, to output I2SCLK clock on MCO2, you should have * at least one of the SPI clocks enabled (SPI1, SPI2 or SPI5). */ #define __HAL_RCC_MCO2_CONFIG(__MCOCLKSOURCE__, __MCODIV__) \ MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO2 | RCC_CFGR_MCO2PRE), ((__MCOCLKSOURCE__) | ((__MCODIV__) << 3U))); /** * @} */ /** @defgroup RCC_Flags_Interrupts_Management Flags Interrupts Management * @brief macros to manage the specified RCC Flags and interrupts. * @{ */ /** @brief Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable * the selected interrupts). * @param __INTERRUPT__ specifies the RCC interrupt sources to be enabled. * This parameter can be any combination of the following values: * @arg RCC_IT_LSIRDY: LSI ready interrupt. * @arg RCC_IT_LSERDY: LSE ready interrupt. * @arg RCC_IT_HSIRDY: HSI ready interrupt. * @arg RCC_IT_HSERDY: HSE ready interrupt. * @arg RCC_IT_PLLRDY: Main PLL ready interrupt. * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt. */ #define __HAL_RCC_ENABLE_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__)) /** @brief Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable * the selected interrupts). * @param __INTERRUPT__ specifies the RCC interrupt sources to be disabled. * This parameter can be any combination of the following values: * @arg RCC_IT_LSIRDY: LSI ready interrupt. * @arg RCC_IT_LSERDY: LSE ready interrupt. * @arg RCC_IT_HSIRDY: HSI ready interrupt. * @arg RCC_IT_HSERDY: HSE ready interrupt. * @arg RCC_IT_PLLRDY: Main PLL ready interrupt. * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt. */ #define __HAL_RCC_DISABLE_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__))) /** @brief Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] * bits to clear the selected interrupt pending bits. * @param __INTERRUPT__ specifies the interrupt pending bit to clear. * This parameter can be any combination of the following values: * @arg RCC_IT_LSIRDY: LSI ready interrupt. * @arg RCC_IT_LSERDY: LSE ready interrupt. * @arg RCC_IT_HSIRDY: HSI ready interrupt. * @arg RCC_IT_HSERDY: HSE ready interrupt. * @arg RCC_IT_PLLRDY: Main PLL ready interrupt. * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt. * @arg RCC_IT_CSS: Clock Security System interrupt */ #define __HAL_RCC_CLEAR_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__)) /** @brief Check the RCC's interrupt has occurred or not. * @param __INTERRUPT__ specifies the RCC interrupt source to check. * This parameter can be one of the following values: * @arg RCC_IT_LSIRDY: LSI ready interrupt. * @arg RCC_IT_LSERDY: LSE ready interrupt. * @arg RCC_IT_HSIRDY: HSI ready interrupt. * @arg RCC_IT_HSERDY: HSE ready interrupt. * @arg RCC_IT_PLLRDY: Main PLL ready interrupt. * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt. * @arg RCC_IT_CSS: Clock Security System interrupt * @retval The new state of __INTERRUPT__ (TRUE or FALSE). */ #define __HAL_RCC_GET_IT(__INTERRUPT__) ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__)) /** @brief Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, * RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST. */ #define __HAL_RCC_CLEAR_RESET_FLAGS() (RCC->CSR |= RCC_CSR_RMVF) /** @brief Check RCC flag is set or not. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg RCC_FLAG_HSIRDY: HSI oscillator clock ready. * @arg RCC_FLAG_HSERDY: HSE oscillator clock ready. * @arg RCC_FLAG_PLLRDY: Main PLL clock ready. * @arg RCC_FLAG_PLLI2SRDY: PLLI2S clock ready. * @arg RCC_FLAG_LSERDY: LSE oscillator clock ready. * @arg RCC_FLAG_LSIRDY: LSI oscillator clock ready. * @arg RCC_FLAG_BORRST: POR/PDR or BOR reset. * @arg RCC_FLAG_PINRST: Pin reset. * @arg RCC_FLAG_PORRST: POR/PDR reset. * @arg RCC_FLAG_SFTRST: Software reset. * @arg RCC_FLAG_IWDGRST: Independent Watchdog reset. * @arg RCC_FLAG_WWDGRST: Window Watchdog reset. * @arg RCC_FLAG_LPWRRST: Low Power reset. * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define RCC_FLAG_MASK ((uint8_t)0x1FU) #define __HAL_RCC_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR :((((__FLAG__) >> 5U) == 3U)? RCC->CSR :RCC->CIR))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) /** * @} */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup RCC_Exported_Functions * @{ */ /** @addtogroup RCC_Exported_Functions_Group1 * @{ */ /* Initialization and de-initialization functions ******************************/ HAL_StatusTypeDef HAL_RCC_DeInit(void); HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct); HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency); /** * @} */ /** @addtogroup RCC_Exported_Functions_Group2 * @{ */ /* Peripheral Control functions ************************************************/ void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv); void HAL_RCC_EnableCSS(void); void HAL_RCC_DisableCSS(void); uint32_t HAL_RCC_GetSysClockFreq(void); uint32_t HAL_RCC_GetHCLKFreq(void); uint32_t HAL_RCC_GetPCLK1Freq(void); uint32_t HAL_RCC_GetPCLK2Freq(void); void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct); void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency); /* CSS NMI IRQ handler */ void HAL_RCC_NMI_IRQHandler(void); /* User Callbacks in non blocking mode (IT mode) */ void HAL_RCC_CSSCallback(void); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup RCC_Private_Constants RCC Private Constants * @{ */ /** @defgroup RCC_BitAddress_AliasRegion RCC BitAddress AliasRegion * @brief RCC registers bit address in the alias region * @{ */ #define RCC_OFFSET (RCC_BASE - PERIPH_BASE) /* --- CR Register --- */ /* Alias word address of HSION bit */ #define RCC_CR_OFFSET (RCC_OFFSET + 0x00U) #define RCC_HSION_BIT_NUMBER 0x00U #define RCC_CR_HSION_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_HSION_BIT_NUMBER * 4U)) /* Alias word address of CSSON bit */ #define RCC_CSSON_BIT_NUMBER 0x13U #define RCC_CR_CSSON_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_CSSON_BIT_NUMBER * 4U)) /* Alias word address of PLLON bit */ #define RCC_PLLON_BIT_NUMBER 0x18U #define RCC_CR_PLLON_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLON_BIT_NUMBER * 4U)) /* --- BDCR Register --- */ /* Alias word address of RTCEN bit */ #define RCC_BDCR_OFFSET (RCC_OFFSET + 0x70U) #define RCC_RTCEN_BIT_NUMBER 0x0FU #define RCC_BDCR_RTCEN_BB (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_RTCEN_BIT_NUMBER * 4U)) /* Alias word address of BDRST bit */ #define RCC_BDRST_BIT_NUMBER 0x10U #define RCC_BDCR_BDRST_BB (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_BDRST_BIT_NUMBER * 4U)) /* --- CSR Register --- */ /* Alias word address of LSION bit */ #define RCC_CSR_OFFSET (RCC_OFFSET + 0x74U) #define RCC_LSION_BIT_NUMBER 0x00U #define RCC_CSR_LSION_BB (PERIPH_BB_BASE + (RCC_CSR_OFFSET * 32U) + (RCC_LSION_BIT_NUMBER * 4U)) /* CR register byte 3 (Bits[23:16]) base address */ #define RCC_CR_BYTE2_ADDRESS 0x40023802U /* CIR register byte 2 (Bits[15:8]) base address */ #define RCC_CIR_BYTE1_ADDRESS ((uint32_t)(RCC_BASE + 0x0CU + 0x01U)) /* CIR register byte 3 (Bits[23:16]) base address */ #define RCC_CIR_BYTE2_ADDRESS ((uint32_t)(RCC_BASE + 0x0CU + 0x02U)) /* BDCR register base address */ #define RCC_BDCR_BYTE0_ADDRESS (PERIPH_BASE + RCC_BDCR_OFFSET) #define RCC_DBP_TIMEOUT_VALUE 2U #define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT #define HSE_TIMEOUT_VALUE HSE_STARTUP_TIMEOUT #define HSI_TIMEOUT_VALUE 2U /* 2 ms */ #define LSI_TIMEOUT_VALUE 2U /* 2 ms */ #define CLOCKSWITCH_TIMEOUT_VALUE 5000U /* 5 s */ /** * @} */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup RCC_Private_Macros RCC Private Macros * @{ */ /** @defgroup RCC_IS_RCC_Definitions RCC Private macros to check input parameters * @{ */ #define IS_RCC_OSCILLATORTYPE(OSCILLATOR) ((OSCILLATOR) <= 15U) #define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \ ((HSE) == RCC_HSE_BYPASS)) #define IS_RCC_LSE(LSE) (((LSE) == RCC_LSE_OFF) || ((LSE) == RCC_LSE_ON) || \ ((LSE) == RCC_LSE_BYPASS)) #define IS_RCC_HSI(HSI) (((HSI) == RCC_HSI_OFF) || ((HSI) == RCC_HSI_ON)) #define IS_RCC_LSI(LSI) (((LSI) == RCC_LSI_OFF) || ((LSI) == RCC_LSI_ON)) #define IS_RCC_PLL(PLL) (((PLL) == RCC_PLL_NONE) ||((PLL) == RCC_PLL_OFF) || ((PLL) == RCC_PLL_ON)) #define IS_RCC_PLLSOURCE(SOURCE) (((SOURCE) == RCC_PLLSOURCE_HSI) || \ ((SOURCE) == RCC_PLLSOURCE_HSE)) #define IS_RCC_SYSCLKSOURCE(SOURCE) (((SOURCE) == RCC_SYSCLKSOURCE_HSI) || \ ((SOURCE) == RCC_SYSCLKSOURCE_HSE) || \ ((SOURCE) == RCC_SYSCLKSOURCE_PLLCLK) || \ ((SOURCE) == RCC_SYSCLKSOURCE_PLLRCLK)) #define IS_RCC_RTCCLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_RTCCLKSOURCE_LSE) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_LSI) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV2) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV3) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV4) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV5) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV6) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV7) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV8) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV9) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV10) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV11) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV12) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV13) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV14) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV15) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV16) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV17) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV18) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV19) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV20) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV21) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV22) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV23) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV24) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV25) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV26) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV27) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV28) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV29) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV30) || \ ((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV31)) #define IS_RCC_PLLM_VALUE(VALUE) ((VALUE) <= 63U) #define IS_RCC_PLLP_VALUE(VALUE) (((VALUE) == 2U) || ((VALUE) == 4U) || ((VALUE) == 6U) || ((VALUE) == 8U)) #define IS_RCC_PLLQ_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 15U)) #define IS_RCC_HCLK(HCLK) (((HCLK) == RCC_SYSCLK_DIV1) || ((HCLK) == RCC_SYSCLK_DIV2) || \ ((HCLK) == RCC_SYSCLK_DIV4) || ((HCLK) == RCC_SYSCLK_DIV8) || \ ((HCLK) == RCC_SYSCLK_DIV16) || ((HCLK) == RCC_SYSCLK_DIV64) || \ ((HCLK) == RCC_SYSCLK_DIV128) || ((HCLK) == RCC_SYSCLK_DIV256) || \ ((HCLK) == RCC_SYSCLK_DIV512)) #define IS_RCC_CLOCKTYPE(CLK) ((1U <= (CLK)) && ((CLK) <= 15U)) #define IS_RCC_PCLK(PCLK) (((PCLK) == RCC_HCLK_DIV1) || ((PCLK) == RCC_HCLK_DIV2) || \ ((PCLK) == RCC_HCLK_DIV4) || ((PCLK) == RCC_HCLK_DIV8) || \ ((PCLK) == RCC_HCLK_DIV16)) #define IS_RCC_MCO(MCOx) (((MCOx) == RCC_MCO1) || ((MCOx) == RCC_MCO2)) #define IS_RCC_MCO1SOURCE(SOURCE) (((SOURCE) == RCC_MCO1SOURCE_HSI) || ((SOURCE) == RCC_MCO1SOURCE_LSE) || \ ((SOURCE) == RCC_MCO1SOURCE_HSE) || ((SOURCE) == RCC_MCO1SOURCE_PLLCLK)) #define IS_RCC_MCODIV(DIV) (((DIV) == RCC_MCODIV_1) || ((DIV) == RCC_MCODIV_2) || \ ((DIV) == RCC_MCODIV_3) || ((DIV) == RCC_MCODIV_4) || \ ((DIV) == RCC_MCODIV_5)) #define IS_RCC_CALIBRATION_VALUE(VALUE) ((VALUE) <= 0x1FU) /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_RCC_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_rcc_ex.h * @author MCD Application Team * @brief Header file of RCC HAL Extension module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_RCC_EX_H #define __STM32F4xx_HAL_RCC_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup RCCEx * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup RCCEx_Exported_Types RCCEx Exported Types * @{ */ /** * @brief RCC PLL configuration structure definition */ typedef struct { uint32_t PLLState; /*!< The new state of the PLL. This parameter can be a value of @ref RCC_PLL_Config */ uint32_t PLLSource; /*!< RCC_PLLSource: PLL entry clock source. This parameter must be a value of @ref RCC_PLL_Clock_Source */ uint32_t PLLM; /*!< PLLM: Division factor for PLL VCO input clock. This parameter must be a number between Min_Data = 0 and Max_Data = 63 */ uint32_t PLLN; /*!< PLLN: Multiplication factor for PLL VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432 except for STM32F411xE devices where the Min_Data = 192 */ uint32_t PLLP; /*!< PLLP: Division factor for main system clock (SYSCLK). This parameter must be a value of @ref RCC_PLLP_Clock_Divider */ uint32_t PLLQ; /*!< PLLQ: Division factor for OTG FS, SDIO and RNG clocks. This parameter must be a number between Min_Data = 2 and Max_Data = 15 */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) uint32_t PLLR; /*!< PLLR: PLL division factor for I2S, SAI, SYSTEM, SPDIFRX clocks. This parameter is only available in STM32F410xx/STM32F446xx/STM32F469xx/STM32F479xx and STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx/STM32F413xx/STM32F423xx devices. This parameter must be a number between Min_Data = 2 and Max_Data = 7 */ #endif /* STM32F410xx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ }RCC_PLLInitTypeDef; #if defined(STM32F446xx) /** * @brief PLLI2S Clock structure definition */ typedef struct { uint32_t PLLI2SM; /*!< Specifies division factor for PLL VCO input clock. This parameter must be a number between Min_Data = 2 and Max_Data = 63 */ uint32_t PLLI2SN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432 */ uint32_t PLLI2SP; /*!< Specifies division factor for SPDIFRX Clock. This parameter must be a value of @ref RCCEx_PLLI2SP_Clock_Divider */ uint32_t PLLI2SQ; /*!< Specifies the division factor for SAI clock. This parameter must be a number between Min_Data = 2 and Max_Data = 15. This parameter will be used only when PLLI2S is selected as Clock Source SAI */ uint32_t PLLI2SR; /*!< Specifies the division factor for I2S clock. This parameter must be a number between Min_Data = 2 and Max_Data = 7. This parameter will be used only when PLLI2S is selected as Clock Source I2S */ }RCC_PLLI2SInitTypeDef; /** * @brief PLLSAI Clock structure definition */ typedef struct { uint32_t PLLSAIM; /*!< Specifies division factor for PLL VCO input clock. This parameter must be a number between Min_Data = 2 and Max_Data = 63 */ uint32_t PLLSAIN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432 */ uint32_t PLLSAIP; /*!< Specifies division factor for OTG FS, SDIO and RNG clocks. This parameter must be a value of @ref RCCEx_PLLSAIP_Clock_Divider */ uint32_t PLLSAIQ; /*!< Specifies the division factor for SAI clock. This parameter must be a number between Min_Data = 2 and Max_Data = 15. This parameter will be used only when PLLSAI is selected as Clock Source SAI */ }RCC_PLLSAIInitTypeDef; /** * @brief RCC extended clocks structure definition */ typedef struct { uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */ RCC_PLLI2SInitTypeDef PLLI2S; /*!< PLL I2S structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ RCC_PLLSAIInitTypeDef PLLSAI; /*!< PLL SAI structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source SAI or LTDC */ uint32_t PLLI2SDivQ; /*!< Specifies the PLLI2S division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLLI2S is selected as Clock Source SAI */ uint32_t PLLSAIDivQ; /*!< Specifies the PLLI2S division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLLSAI is selected as Clock Source SAI */ uint32_t Sai1ClockSelection; /*!< Specifies SAI1 Clock Source Selection. This parameter can be a value of @ref RCCEx_SAI1_Clock_Source */ uint32_t Sai2ClockSelection; /*!< Specifies SAI2 Clock Source Selection. This parameter can be a value of @ref RCCEx_SAI2_Clock_Source */ uint32_t I2sApb1ClockSelection; /*!< Specifies I2S APB1 Clock Source Selection. This parameter can be a value of @ref RCCEx_I2SAPB1_Clock_Source */ uint32_t I2sApb2ClockSelection; /*!< Specifies I2S APB2 Clock Source Selection. This parameter can be a value of @ref RCCEx_I2SAPB2_Clock_Source */ uint32_t RTCClockSelection; /*!< Specifies RTC Clock Source Selection. This parameter can be a value of @ref RCC_RTC_Clock_Source */ uint32_t SdioClockSelection; /*!< Specifies SDIO Clock Source Selection. This parameter can be a value of @ref RCCEx_SDIO_Clock_Source */ uint32_t CecClockSelection; /*!< Specifies CEC Clock Source Selection. This parameter can be a value of @ref RCCEx_CEC_Clock_Source */ uint32_t Fmpi2c1ClockSelection; /*!< Specifies FMPI2C1 Clock Source Selection. This parameter can be a value of @ref RCCEx_FMPI2C1_Clock_Source */ uint32_t SpdifClockSelection; /*!< Specifies SPDIFRX Clock Source Selection. This parameter can be a value of @ref RCCEx_SPDIFRX_Clock_Source */ uint32_t Clk48ClockSelection; /*!< Specifies CLK48 Clock Selection this clock used OTG FS, SDIO and RNG clocks. This parameter can be a value of @ref RCCEx_CLK48_Clock_Source */ uint8_t TIMPresSelection; /*!< Specifies TIM Clock Source Selection. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */ }RCC_PeriphCLKInitTypeDef; #endif /* STM32F446xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** * @brief RCC extended clocks structure definition */ typedef struct { uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */ uint32_t I2SClockSelection; /*!< Specifies RTC Clock Source Selection. This parameter can be a value of @ref RCCEx_I2S_APB_Clock_Source */ uint32_t RTCClockSelection; /*!< Specifies RTC Clock Source Selection. This parameter can be a value of @ref RCC_RTC_Clock_Source */ uint32_t Lptim1ClockSelection; /*!< Specifies LPTIM1 Clock Source Selection. This parameter can be a value of @ref RCCEx_LPTIM1_Clock_Source */ uint32_t Fmpi2c1ClockSelection; /*!< Specifies FMPI2C1 Clock Source Selection. This parameter can be a value of @ref RCCEx_FMPI2C1_Clock_Source */ uint8_t TIMPresSelection; /*!< Specifies TIM Clock Source Selection. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */ }RCC_PeriphCLKInitTypeDef; #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief PLLI2S Clock structure definition */ typedef struct { uint32_t PLLI2SM; /*!< Specifies division factor for PLL VCO input clock. This parameter must be a number between Min_Data = 2 and Max_Data = 63 */ uint32_t PLLI2SN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432 */ uint32_t PLLI2SQ; /*!< Specifies the division factor for SAI clock. This parameter must be a number between Min_Data = 2 and Max_Data = 15. This parameter will be used only when PLLI2S is selected as Clock Source SAI */ uint32_t PLLI2SR; /*!< Specifies the division factor for I2S clock. This parameter must be a number between Min_Data = 2 and Max_Data = 7. This parameter will be used only when PLLI2S is selected as Clock Source I2S */ }RCC_PLLI2SInitTypeDef; /** * @brief RCC extended clocks structure definition */ typedef struct { uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */ RCC_PLLI2SInitTypeDef PLLI2S; /*!< PLL I2S structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source I2S */ #if defined(STM32F413xx) || defined(STM32F423xx) uint32_t PLLDivR; /*!< Specifies the PLL division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLL is selected as Clock Source SAI */ uint32_t PLLI2SDivR; /*!< Specifies the PLLI2S division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLLI2S is selected as Clock Source SAI */ #endif /* STM32F413xx || STM32F423xx */ uint32_t I2sApb1ClockSelection; /*!< Specifies I2S APB1 Clock Source Selection. This parameter can be a value of @ref RCCEx_I2SAPB1_Clock_Source */ uint32_t I2sApb2ClockSelection; /*!< Specifies I2S APB2 Clock Source Selection. This parameter can be a value of @ref RCCEx_I2SAPB2_Clock_Source */ uint32_t RTCClockSelection; /*!< Specifies RTC Clock Source Selection. This parameter can be a value of @ref RCC_RTC_Clock_Source */ uint32_t SdioClockSelection; /*!< Specifies SDIO Clock Source Selection. This parameter can be a value of @ref RCCEx_SDIO_Clock_Source */ uint32_t Fmpi2c1ClockSelection; /*!< Specifies FMPI2C1 Clock Source Selection. This parameter can be a value of @ref RCCEx_FMPI2C1_Clock_Source */ uint32_t Clk48ClockSelection; /*!< Specifies CLK48 Clock Selection this clock used OTG FS, SDIO and RNG clocks. This parameter can be a value of @ref RCCEx_CLK48_Clock_Source */ uint32_t Dfsdm1ClockSelection; /*!< Specifies DFSDM1 Clock Selection. This parameter can be a value of @ref RCCEx_DFSDM1_Kernel_Clock_Source */ uint32_t Dfsdm1AudioClockSelection;/*!< Specifies DFSDM1 Audio Clock Selection. This parameter can be a value of @ref RCCEx_DFSDM1_Audio_Clock_Source */ #if defined(STM32F413xx) || defined(STM32F423xx) uint32_t Dfsdm2ClockSelection; /*!< Specifies DFSDM2 Clock Selection. This parameter can be a value of @ref RCCEx_DFSDM2_Kernel_Clock_Source */ uint32_t Dfsdm2AudioClockSelection;/*!< Specifies DFSDM2 Audio Clock Selection. This parameter can be a value of @ref RCCEx_DFSDM2_Audio_Clock_Source */ uint32_t Lptim1ClockSelection; /*!< Specifies LPTIM1 Clock Source Selection. This parameter can be a value of @ref RCCEx_LPTIM1_Clock_Source */ uint32_t SaiAClockSelection; /*!< Specifies SAI1_A Clock Prescalers Selection This parameter can be a value of @ref RCCEx_SAI1_BlockA_Clock_Source */ uint32_t SaiBClockSelection; /*!< Specifies SAI1_B Clock Prescalers Selection This parameter can be a value of @ref RCCEx_SAI1_BlockB_Clock_Source */ #endif /* STM32F413xx || STM32F423xx */ uint32_t PLLI2SSelection; /*!< Specifies PLL I2S Clock Source Selection. This parameter can be a value of @ref RCCEx_PLL_I2S_Clock_Source */ uint8_t TIMPresSelection; /*!< Specifies TIM Clock Source Selection. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */ }RCC_PeriphCLKInitTypeDef; #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** * @brief PLLI2S Clock structure definition */ typedef struct { uint32_t PLLI2SN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ uint32_t PLLI2SR; /*!< Specifies the division factor for I2S clock. This parameter must be a number between Min_Data = 2 and Max_Data = 7. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ uint32_t PLLI2SQ; /*!< Specifies the division factor for SAI1 clock. This parameter must be a number between Min_Data = 2 and Max_Data = 15. This parameter will be used only when PLLI2S is selected as Clock Source SAI */ }RCC_PLLI2SInitTypeDef; /** * @brief PLLSAI Clock structure definition */ typedef struct { uint32_t PLLSAIN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432. This parameter will be used only when PLLSAI is selected as Clock Source SAI or LTDC */ #if defined(STM32F469xx) || defined(STM32F479xx) uint32_t PLLSAIP; /*!< Specifies division factor for OTG FS and SDIO clocks. This parameter is only available in STM32F469xx/STM32F479xx devices. This parameter must be a value of @ref RCCEx_PLLSAIP_Clock_Divider */ #endif /* STM32F469xx || STM32F479xx */ uint32_t PLLSAIQ; /*!< Specifies the division factor for SAI1 clock. This parameter must be a number between Min_Data = 2 and Max_Data = 15. This parameter will be used only when PLLSAI is selected as Clock Source SAI or LTDC */ uint32_t PLLSAIR; /*!< specifies the division factor for LTDC clock This parameter must be a number between Min_Data = 2 and Max_Data = 7. This parameter will be used only when PLLSAI is selected as Clock Source LTDC */ }RCC_PLLSAIInitTypeDef; /** * @brief RCC extended clocks structure definition */ typedef struct { uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */ RCC_PLLI2SInitTypeDef PLLI2S; /*!< PLL I2S structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ RCC_PLLSAIInitTypeDef PLLSAI; /*!< PLL SAI structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source SAI or LTDC */ uint32_t PLLI2SDivQ; /*!< Specifies the PLLI2S division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLLI2S is selected as Clock Source SAI */ uint32_t PLLSAIDivQ; /*!< Specifies the PLLI2S division factor for SAI1 clock. This parameter must be a number between Min_Data = 1 and Max_Data = 32 This parameter will be used only when PLLSAI is selected as Clock Source SAI */ uint32_t PLLSAIDivR; /*!< Specifies the PLLSAI division factor for LTDC clock. This parameter must be one value of @ref RCCEx_PLLSAI_DIVR */ uint32_t RTCClockSelection; /*!< Specifies RTC Clock Prescalers Selection. This parameter can be a value of @ref RCC_RTC_Clock_Source */ uint8_t TIMPresSelection; /*!< Specifies TIM Clock Prescalers Selection. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */ #if defined(STM32F469xx) || defined(STM32F479xx) uint32_t Clk48ClockSelection; /*!< Specifies CLK48 Clock Selection this clock used OTG FS, SDIO and RNG clocks. This parameter can be a value of @ref RCCEx_CLK48_Clock_Source */ uint32_t SdioClockSelection; /*!< Specifies SDIO Clock Source Selection. This parameter can be a value of @ref RCCEx_SDIO_Clock_Source */ #endif /* STM32F469xx || STM32F479xx */ }RCC_PeriphCLKInitTypeDef; #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) /** * @brief PLLI2S Clock structure definition */ typedef struct { #if defined(STM32F411xE) uint32_t PLLI2SM; /*!< PLLM: Division factor for PLLI2S VCO input clock. This parameter must be a number between Min_Data = 2 and Max_Data = 62 */ #endif /* STM32F411xE */ uint32_t PLLI2SN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock. This parameter must be a number between Min_Data = 50 and Max_Data = 432 Except for STM32F411xE devices where the Min_Data = 192. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ uint32_t PLLI2SR; /*!< Specifies the division factor for I2S clock. This parameter must be a number between Min_Data = 2 and Max_Data = 7. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ }RCC_PLLI2SInitTypeDef; /** * @brief RCC extended clocks structure definition */ typedef struct { uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */ RCC_PLLI2SInitTypeDef PLLI2S; /*!< PLL I2S structure parameters. This parameter will be used only when PLLI2S is selected as Clock Source I2S or SAI */ uint32_t RTCClockSelection; /*!< Specifies RTC Clock Prescalers Selection. This parameter can be a value of @ref RCC_RTC_Clock_Source */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) uint8_t TIMPresSelection; /*!< Specifies TIM Clock Source Selection. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */ #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ }RCC_PeriphCLKInitTypeDef; #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F411xE */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup RCCEx_Exported_Constants RCCEx Exported Constants * @{ */ /** @defgroup RCCEx_Periph_Clock_Selection RCC Periph Clock Selection * @{ */ /* Peripheral Clock source for STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) #define RCC_PERIPHCLK_I2S_APB1 0x00000001U #define RCC_PERIPHCLK_I2S_APB2 0x00000002U #define RCC_PERIPHCLK_TIM 0x00000004U #define RCC_PERIPHCLK_RTC 0x00000008U #define RCC_PERIPHCLK_FMPI2C1 0x00000010U #define RCC_PERIPHCLK_CLK48 0x00000020U #define RCC_PERIPHCLK_SDIO 0x00000040U #define RCC_PERIPHCLK_PLLI2S 0x00000080U #define RCC_PERIPHCLK_DFSDM1 0x00000100U #define RCC_PERIPHCLK_DFSDM1_AUDIO 0x00000200U #endif /* STM32F412Zx || STM32F412Vx) || STM32F412Rx || STM32F412Cx */ #if defined(STM32F413xx) || defined(STM32F423xx) #define RCC_PERIPHCLK_DFSDM2 0x00000400U #define RCC_PERIPHCLK_DFSDM2_AUDIO 0x00000800U #define RCC_PERIPHCLK_LPTIM1 0x00001000U #define RCC_PERIPHCLK_SAIA 0x00002000U #define RCC_PERIPHCLK_SAIB 0x00004000U #endif /* STM32F413xx || STM32F423xx */ /*----------------------------------------------------------------------------*/ /*------------------- Peripheral Clock source for STM32F410xx ----------------*/ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define RCC_PERIPHCLK_I2S 0x00000001U #define RCC_PERIPHCLK_TIM 0x00000002U #define RCC_PERIPHCLK_RTC 0x00000004U #define RCC_PERIPHCLK_FMPI2C1 0x00000008U #define RCC_PERIPHCLK_LPTIM1 0x00000010U #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /*----------------------------------------------------------------------------*/ /*------------------- Peripheral Clock source for STM32F446xx ----------------*/ #if defined(STM32F446xx) #define RCC_PERIPHCLK_I2S_APB1 0x00000001U #define RCC_PERIPHCLK_I2S_APB2 0x00000002U #define RCC_PERIPHCLK_SAI1 0x00000004U #define RCC_PERIPHCLK_SAI2 0x00000008U #define RCC_PERIPHCLK_TIM 0x00000010U #define RCC_PERIPHCLK_RTC 0x00000020U #define RCC_PERIPHCLK_CEC 0x00000040U #define RCC_PERIPHCLK_FMPI2C1 0x00000080U #define RCC_PERIPHCLK_CLK48 0x00000100U #define RCC_PERIPHCLK_SDIO 0x00000200U #define RCC_PERIPHCLK_SPDIFRX 0x00000400U #define RCC_PERIPHCLK_PLLI2S 0x00000800U #endif /* STM32F446xx */ /*-----------------------------------------------------------------------------*/ /*----------- Peripheral Clock source for STM32F469xx/STM32F479xx -------------*/ #if defined(STM32F469xx) || defined(STM32F479xx) #define RCC_PERIPHCLK_I2S 0x00000001U #define RCC_PERIPHCLK_SAI_PLLI2S 0x00000002U #define RCC_PERIPHCLK_SAI_PLLSAI 0x00000004U #define RCC_PERIPHCLK_LTDC 0x00000008U #define RCC_PERIPHCLK_TIM 0x00000010U #define RCC_PERIPHCLK_RTC 0x00000020U #define RCC_PERIPHCLK_PLLI2S 0x00000040U #define RCC_PERIPHCLK_CLK48 0x00000080U #define RCC_PERIPHCLK_SDIO 0x00000100U #endif /* STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*-------- Peripheral Clock source for STM32F42xxx/STM32F43xxx ---------------*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) #define RCC_PERIPHCLK_I2S 0x00000001U #define RCC_PERIPHCLK_SAI_PLLI2S 0x00000002U #define RCC_PERIPHCLK_SAI_PLLSAI 0x00000004U #define RCC_PERIPHCLK_LTDC 0x00000008U #define RCC_PERIPHCLK_TIM 0x00000010U #define RCC_PERIPHCLK_RTC 0x00000020U #define RCC_PERIPHCLK_PLLI2S 0x00000040U #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ /*----------------------------------------------------------------------------*/ /*-------- Peripheral Clock source for STM32F40xxx/STM32F41xxx ---------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) #define RCC_PERIPHCLK_I2S 0x00000001U #define RCC_PERIPHCLK_RTC 0x00000002U #define RCC_PERIPHCLK_PLLI2S 0x00000004U #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F411xE */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) #define RCC_PERIPHCLK_TIM 0x00000008U #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ /*----------------------------------------------------------------------------*/ /** * @} */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F469xx) || \ defined(STM32F479xx) /** @defgroup RCCEx_I2S_Clock_Source I2S Clock Source * @{ */ #define RCC_I2SCLKSOURCE_PLLI2S 0x00000000U #define RCC_I2SCLKSOURCE_EXT 0x00000001U /** * @} */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F469xx || STM32F479xx */ /** @defgroup RCCEx_PLLSAI_DIVR RCC PLLSAI DIVR * @{ */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) #define RCC_PLLSAIDIVR_2 0x00000000U #define RCC_PLLSAIDIVR_4 0x00010000U #define RCC_PLLSAIDIVR_8 0x00020000U #define RCC_PLLSAIDIVR_16 0x00030000U #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_PLLI2SP_Clock_Divider RCC PLLI2SP Clock Divider * @{ */ #if defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) #define RCC_PLLI2SP_DIV2 0x00000002U #define RCC_PLLI2SP_DIV4 0x00000004U #define RCC_PLLI2SP_DIV6 0x00000006U #define RCC_PLLI2SP_DIV8 0x00000008U #endif /* STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ /** * @} */ /** @defgroup RCCEx_PLLSAIP_Clock_Divider RCC PLLSAIP Clock Divider * @{ */ #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define RCC_PLLSAIP_DIV2 0x00000002U #define RCC_PLLSAIP_DIV4 0x00000004U #define RCC_PLLSAIP_DIV6 0x00000006U #define RCC_PLLSAIP_DIV8 0x00000008U #endif /* STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @defgroup RCCEx_SAI_BlockA_Clock_Source RCC SAI BlockA Clock Source * @{ */ #define RCC_SAIACLKSOURCE_PLLSAI 0x00000000U #define RCC_SAIACLKSOURCE_PLLI2S 0x00100000U #define RCC_SAIACLKSOURCE_EXT 0x00200000U /** * @} */ /** @defgroup RCCEx_SAI_BlockB_Clock_Source RCC SAI BlockB Clock Source * @{ */ #define RCC_SAIBCLKSOURCE_PLLSAI 0x00000000U #define RCC_SAIBCLKSOURCE_PLLI2S 0x00400000U #define RCC_SAIBCLKSOURCE_EXT 0x00800000U /** * @} */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /** @defgroup RCCEx_CLK48_Clock_Source RCC CLK48 Clock Source * @{ */ #define RCC_CLK48CLKSOURCE_PLLQ 0x00000000U #define RCC_CLK48CLKSOURCE_PLLSAIP ((uint32_t)RCC_DCKCFGR_CK48MSEL) /** * @} */ /** @defgroup RCCEx_SDIO_Clock_Source RCC SDIO Clock Source * @{ */ #define RCC_SDIOCLKSOURCE_CLK48 0x00000000U #define RCC_SDIOCLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR_SDIOSEL) /** * @} */ /** @defgroup RCCEx_DSI_Clock_Source RCC DSI Clock Source * @{ */ #define RCC_DSICLKSOURCE_DSIPHY 0x00000000U #define RCC_DSICLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_DSISEL) /** * @} */ #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F446xx) /** @defgroup RCCEx_SAI1_Clock_Source RCC SAI1 Clock Source * @{ */ #define RCC_SAI1CLKSOURCE_PLLSAI 0x00000000U #define RCC_SAI1CLKSOURCE_PLLI2S ((uint32_t)RCC_DCKCFGR_SAI1SRC_0) #define RCC_SAI1CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_SAI1SRC_1) #define RCC_SAI1CLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_SAI1SRC) /** * @} */ /** @defgroup RCCEx_SAI2_Clock_Source RCC SAI2 Clock Source * @{ */ #define RCC_SAI2CLKSOURCE_PLLSAI 0x00000000U #define RCC_SAI2CLKSOURCE_PLLI2S ((uint32_t)RCC_DCKCFGR_SAI2SRC_0) #define RCC_SAI2CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_SAI2SRC_1) #define RCC_SAI2CLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_SAI2SRC) /** * @} */ /** @defgroup RCCEx_I2SAPB1_Clock_Source RCC I2S APB1 Clock Source * @{ */ #define RCC_I2SAPB1CLKSOURCE_PLLI2S 0x00000000U #define RCC_I2SAPB1CLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_I2S1SRC_0) #define RCC_I2SAPB1CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_I2S1SRC_1) #define RCC_I2SAPB1CLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_I2S1SRC) /** * @} */ /** @defgroup RCCEx_I2SAPB2_Clock_Source RCC I2S APB2 Clock Source * @{ */ #define RCC_I2SAPB2CLKSOURCE_PLLI2S 0x00000000U #define RCC_I2SAPB2CLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_I2S2SRC_0) #define RCC_I2SAPB2CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_I2S2SRC_1) #define RCC_I2SAPB2CLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_I2S2SRC) /** * @} */ /** @defgroup RCCEx_FMPI2C1_Clock_Source RCC FMPI2C1 Clock Source * @{ */ #define RCC_FMPI2C1CLKSOURCE_PCLK1 0x00000000U #define RCC_FMPI2C1CLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_0) #define RCC_FMPI2C1CLKSOURCE_HSI ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_1) /** * @} */ /** @defgroup RCCEx_CEC_Clock_Source RCC CEC Clock Source * @{ */ #define RCC_CECCLKSOURCE_HSI 0x00000000U #define RCC_CECCLKSOURCE_LSE ((uint32_t)RCC_DCKCFGR2_CECSEL) /** * @} */ /** @defgroup RCCEx_CLK48_Clock_Source RCC CLK48 Clock Source * @{ */ #define RCC_CLK48CLKSOURCE_PLLQ 0x00000000U #define RCC_CLK48CLKSOURCE_PLLSAIP ((uint32_t)RCC_DCKCFGR2_CK48MSEL) /** * @} */ /** @defgroup RCCEx_SDIO_Clock_Source RCC SDIO Clock Source * @{ */ #define RCC_SDIOCLKSOURCE_CLK48 0x00000000U #define RCC_SDIOCLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR2_SDIOSEL) /** * @} */ /** @defgroup RCCEx_SPDIFRX_Clock_Source RCC SPDIFRX Clock Source * @{ */ #define RCC_SPDIFRXCLKSOURCE_PLLR 0x00000000U #define RCC_SPDIFRXCLKSOURCE_PLLI2SP ((uint32_t)RCC_DCKCFGR2_SPDIFRXSEL) /** * @} */ #endif /* STM32F446xx */ #if defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup RCCEx_SAI1_BlockA_Clock_Source RCC SAI BlockA Clock Source * @{ */ #define RCC_SAIACLKSOURCE_PLLI2SR 0x00000000U #define RCC_SAIACLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_SAI1ASRC_0) #define RCC_SAIACLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_SAI1ASRC_1) #define RCC_SAIACLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_SAI1ASRC_0 | RCC_DCKCFGR_SAI1ASRC_1) /** * @} */ /** @defgroup RCCEx_SAI1_BlockB_Clock_Source RCC SAI BlockB Clock Source * @{ */ #define RCC_SAIBCLKSOURCE_PLLI2SR 0x00000000U #define RCC_SAIBCLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_SAI1BSRC_0) #define RCC_SAIBCLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_SAI1BSRC_1) #define RCC_SAIBCLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_SAI1BSRC_0 | RCC_DCKCFGR_SAI1BSRC_1) /** * @} */ /** @defgroup RCCEx_LPTIM1_Clock_Source RCC LPTIM1 Clock Source * @{ */ #define RCC_LPTIM1CLKSOURCE_PCLK1 0x00000000U #define RCC_LPTIM1CLKSOURCE_HSI ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_0) #define RCC_LPTIM1CLKSOURCE_LSI ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_1) #define RCC_LPTIM1CLKSOURCE_LSE ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_0 | RCC_DCKCFGR2_LPTIM1SEL_1) /** * @} */ /** @defgroup RCCEx_DFSDM2_Audio_Clock_Source RCC DFSDM2 Audio Clock Source * @{ */ #define RCC_DFSDM2AUDIOCLKSOURCE_I2S1 0x00000000U #define RCC_DFSDM2AUDIOCLKSOURCE_I2S2 ((uint32_t)RCC_DCKCFGR_CKDFSDM2ASEL) /** * @} */ /** @defgroup RCCEx_DFSDM2_Kernel_Clock_Source RCC DFSDM2 Kernel Clock Source * @{ */ #define RCC_DFSDM2CLKSOURCE_PCLK2 0x00000000U #define RCC_DFSDM2CLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR_CKDFSDM1SEL) /** * @} */ #endif /* STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup RCCEx_PLL_I2S_Clock_Source PLL I2S Clock Source * @{ */ #define RCC_PLLI2SCLKSOURCE_PLLSRC 0x00000000U #define RCC_PLLI2SCLKSOURCE_EXT ((uint32_t)RCC_PLLI2SCFGR_PLLI2SSRC) /** * @} */ /** @defgroup RCCEx_DFSDM1_Audio_Clock_Source RCC DFSDM1 Audio Clock Source * @{ */ #define RCC_DFSDM1AUDIOCLKSOURCE_I2S1 0x00000000U #define RCC_DFSDM1AUDIOCLKSOURCE_I2S2 ((uint32_t)RCC_DCKCFGR_CKDFSDM1ASEL) /** * @} */ /** @defgroup RCCEx_DFSDM1_Kernel_Clock_Source RCC DFSDM1 Kernel Clock Source * @{ */ #define RCC_DFSDM1CLKSOURCE_PCLK2 0x00000000U #define RCC_DFSDM1CLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR_CKDFSDM1SEL) /** * @} */ /** @defgroup RCCEx_I2SAPB1_Clock_Source RCC I2S APB1 Clock Source * @{ */ #define RCC_I2SAPB1CLKSOURCE_PLLI2S 0x00000000U #define RCC_I2SAPB1CLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_I2S1SRC_0) #define RCC_I2SAPB1CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_I2S1SRC_1) #define RCC_I2SAPB1CLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_I2S1SRC) /** * @} */ /** @defgroup RCCEx_I2SAPB2_Clock_Source RCC I2S APB2 Clock Source * @{ */ #define RCC_I2SAPB2CLKSOURCE_PLLI2S 0x00000000U #define RCC_I2SAPB2CLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_I2S2SRC_0) #define RCC_I2SAPB2CLKSOURCE_PLLR ((uint32_t)RCC_DCKCFGR_I2S2SRC_1) #define RCC_I2SAPB2CLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_I2S2SRC) /** * @} */ /** @defgroup RCCEx_FMPI2C1_Clock_Source RCC FMPI2C1 Clock Source * @{ */ #define RCC_FMPI2C1CLKSOURCE_PCLK1 0x00000000U #define RCC_FMPI2C1CLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_0) #define RCC_FMPI2C1CLKSOURCE_HSI ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_1) /** * @} */ /** @defgroup RCCEx_CLK48_Clock_Source RCC CLK48 Clock Source * @{ */ #define RCC_CLK48CLKSOURCE_PLLQ 0x00000000U #define RCC_CLK48CLKSOURCE_PLLI2SQ ((uint32_t)RCC_DCKCFGR2_CK48MSEL) /** * @} */ /** @defgroup RCCEx_SDIO_Clock_Source RCC SDIO Clock Source * @{ */ #define RCC_SDIOCLKSOURCE_CLK48 0x00000000U #define RCC_SDIOCLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR2_SDIOSEL) /** * @} */ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** @defgroup RCCEx_I2S_APB_Clock_Source RCC I2S APB Clock Source * @{ */ #define RCC_I2SAPBCLKSOURCE_PLLR 0x00000000U #define RCC_I2SAPBCLKSOURCE_EXT ((uint32_t)RCC_DCKCFGR_I2SSRC_0) #define RCC_I2SAPBCLKSOURCE_PLLSRC ((uint32_t)RCC_DCKCFGR_I2SSRC_1) /** * @} */ /** @defgroup RCCEx_FMPI2C1_Clock_Source RCC FMPI2C1 Clock Source * @{ */ #define RCC_FMPI2C1CLKSOURCE_PCLK1 0x00000000U #define RCC_FMPI2C1CLKSOURCE_SYSCLK ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_0) #define RCC_FMPI2C1CLKSOURCE_HSI ((uint32_t)RCC_DCKCFGR2_FMPI2C1SEL_1) /** * @} */ /** @defgroup RCCEx_LPTIM1_Clock_Source RCC LPTIM1 Clock Source * @{ */ #define RCC_LPTIM1CLKSOURCE_PCLK1 0x00000000U #define RCC_LPTIM1CLKSOURCE_HSI ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_0) #define RCC_LPTIM1CLKSOURCE_LSI ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_1) #define RCC_LPTIM1CLKSOURCE_LSE ((uint32_t)RCC_DCKCFGR2_LPTIM1SEL_0 | RCC_DCKCFGR2_LPTIM1SEL_1) /** * @} */ #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup RCCEx_TIM_PRescaler_Selection RCC TIM PRescaler Selection * @{ */ #define RCC_TIMPRES_DESACTIVATED ((uint8_t)0x00) #define RCC_TIMPRES_ACTIVATED ((uint8_t)0x01) /** * @} */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE ||\ STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx ||\ STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) /** @defgroup RCCEx_LSE_Dual_Mode_Selection RCC LSE Dual Mode Selection * @{ */ #define RCC_LSE_LOWPOWER_MODE ((uint8_t)0x00) #define RCC_LSE_HIGHDRIVE_MODE ((uint8_t)0x01) /** * @} */ #endif /* STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx ||\ STM32F412Rx || STM32F412Cx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup RCC_MCO2_Clock_Source MCO2 Clock Source * @{ */ #define RCC_MCO2SOURCE_SYSCLK 0x00000000U #define RCC_MCO2SOURCE_PLLI2SCLK RCC_CFGR_MCO2_0 #define RCC_MCO2SOURCE_HSE RCC_CFGR_MCO2_1 #define RCC_MCO2SOURCE_PLLCLK RCC_CFGR_MCO2 /** * @} */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx | STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** @defgroup RCC_MCO2_Clock_Source MCO2 Clock Source * @{ */ #define RCC_MCO2SOURCE_SYSCLK 0x00000000U #define RCC_MCO2SOURCE_I2SCLK RCC_CFGR_MCO2_0 #define RCC_MCO2SOURCE_HSE RCC_CFGR_MCO2_1 #define RCC_MCO2SOURCE_PLLCLK RCC_CFGR_MCO2 /** * @} */ #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup RCCEx_Exported_Macros RCCEx Exported Macros * @{ */ /*------------------- STM32F42xxx/STM32F43xxx/STM32F469xx/STM32F479xx --------*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_BKPSRAM_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CCMDATARAMEN_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOF_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOJ_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOJEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOJEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOK_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOKEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOKEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DMA2D_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2DEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2DEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACTX_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACRX_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACPTP_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #define __HAL_RCC_GPIOF_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOFEN)) #define __HAL_RCC_GPIOG_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOGEN)) #define __HAL_RCC_GPIOI_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOIEN)) #define __HAL_RCC_GPIOJ_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOJEN)) #define __HAL_RCC_GPIOK_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOKEN)) #define __HAL_RCC_DMA2D_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA2DEN)) #define __HAL_RCC_ETHMAC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACEN)) #define __HAL_RCC_ETHMACTX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACTXEN)) #define __HAL_RCC_ETHMACRX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACRXEN)) #define __HAL_RCC_ETHMACPTP_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACPTPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSULPIEN)) #define __HAL_RCC_BKPSRAM_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_BKPSRAMEN)) #define __HAL_RCC_CCMDATARAMEN_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CCMDATARAMEN)) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) /** * @brief Enable ETHERNET clock. */ #define __HAL_RCC_ETH_CLK_ENABLE() do { \ __HAL_RCC_ETHMAC_CLK_ENABLE(); \ __HAL_RCC_ETHMACTX_CLK_ENABLE(); \ __HAL_RCC_ETHMACRX_CLK_ENABLE(); \ } while(0U) /** * @brief Disable ETHERNET clock. */ #define __HAL_RCC_ETH_CLK_DISABLE() do { \ __HAL_RCC_ETHMACTX_CLK_DISABLE(); \ __HAL_RCC_ETHMACRX_CLK_DISABLE(); \ __HAL_RCC_ETHMAC_CLK_DISABLE(); \ } while(0U) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #define __HAL_RCC_GPIOF_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) != RESET) #define __HAL_RCC_GPIOG_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) != RESET) #define __HAL_RCC_GPIOI_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOIEN)) != RESET) #define __HAL_RCC_GPIOJ_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOJEN)) != RESET) #define __HAL_RCC_GPIOK_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOKEN)) != RESET) #define __HAL_RCC_DMA2D_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_DMA2DEN)) != RESET) #define __HAL_RCC_ETHMAC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACEN)) != RESET) #define __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACTXEN)) != RESET) #define __HAL_RCC_ETHMACRX_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACRXEN)) != RESET) #define __HAL_RCC_ETHMACPTP_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACPTPEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN)) != RESET) #define __HAL_RCC_BKPSRAM_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) != RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) != RESET) #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_ETH_IS_CLK_ENABLED() (__HAL_RCC_ETHMAC_IS_CLK_ENABLED() && \ __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() && \ __HAL_RCC_ETHMACRX_IS_CLK_ENABLED()) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #define __HAL_RCC_GPIOF_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) == RESET) #define __HAL_RCC_GPIOG_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) == RESET) #define __HAL_RCC_GPIOI_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOIEN)) == RESET) #define __HAL_RCC_GPIOJ_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOJEN)) == RESET) #define __HAL_RCC_GPIOK_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOKEN)) == RESET) #define __HAL_RCC_DMA2D_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_DMA2DEN)) == RESET) #define __HAL_RCC_ETHMAC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACEN)) == RESET) #define __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACTXEN)) == RESET) #define __HAL_RCC_ETHMACRX_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACRXEN)) == RESET) #define __HAL_RCC_ETHMACPTP_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACPTPEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN)) == RESET) #define __HAL_RCC_BKPSRAM_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) == RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) == RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) #define __HAL_RCC_ETH_IS_CLK_DISABLED() (__HAL_RCC_ETHMAC_IS_CLK_DISABLED() && \ __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() && \ __HAL_RCC_ETHMACRX_IS_CLK_DISABLED()) /** * @} */ /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_DCMI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DCMI_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_DCMIEN)) #if defined(STM32F437xx)|| defined(STM32F439xx) || defined(STM32F479xx) #define __HAL_RCC_CRYP_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_HASH_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRYP_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_CRYPEN)) #define __HAL_RCC_HASH_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_HASHEN)) #endif /* STM32F437xx || STM32F439xx || STM32F479xx */ #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) #define __HAL_RCC_RNG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_RNGEN)) /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_DCMI_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) != RESET) #define __HAL_RCC_DCMI_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) == RESET) #if defined(STM32F437xx)|| defined(STM32F439xx) || defined(STM32F479xx) #define __HAL_RCC_CRYP_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_CRYPEN)) != RESET) #define __HAL_RCC_CRYP_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_CRYPEN)) == RESET) #define __HAL_RCC_HASH_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_HASHEN)) != RESET) #define __HAL_RCC_HASH_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_HASHEN)) == RESET) #endif /* STM32F437xx || STM32F439xx || STM32F479xx */ #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) #define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) != RESET) #define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB3_Clock_Enable_Disable AHB3 Peripheral Clock Enable Disable * @brief Enables or disables the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FMC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FMC_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_FMCEN)) #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_QSPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_QSPI_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_QSPIEN)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_AHB3_Peripheral_Clock_Enable_Disable_Status AHB3 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FMC_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FMCEN)) != RESET) #define __HAL_RCC_FMC_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FMCEN)) == RESET) #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_QSPI_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) != RESET) #define __HAL_RCC_QSPI_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) == RESET) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM12_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM13_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM14_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM14_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART8EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) #define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM6EN)) #define __HAL_RCC_TIM7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM7EN)) #define __HAL_RCC_TIM12_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM12EN)) #define __HAL_RCC_TIM13_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM13EN)) #define __HAL_RCC_TIM14_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM14EN)) #define __HAL_RCC_USART3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART3EN)) #define __HAL_RCC_UART4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART4EN)) #define __HAL_RCC_UART5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART5EN)) #define __HAL_RCC_CAN1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN1EN)) #define __HAL_RCC_CAN2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN2EN)) #define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN)) #define __HAL_RCC_UART7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART7EN)) #define __HAL_RCC_UART8_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART8EN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) != RESET) #define __HAL_RCC_TIM7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) != RESET) #define __HAL_RCC_TIM12_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) != RESET) #define __HAL_RCC_TIM13_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) != RESET) #define __HAL_RCC_TIM14_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) != RESET) #define __HAL_RCC_USART3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET) #define __HAL_RCC_UART4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) != RESET) #define __HAL_RCC_UART5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) != RESET) #define __HAL_RCC_CAN1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) != RESET) #define __HAL_RCC_CAN2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) != RESET) #define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET) #define __HAL_RCC_UART7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART7EN)) != RESET) #define __HAL_RCC_UART8_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART8EN)) != RESET) #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) #define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) == RESET) #define __HAL_RCC_TIM7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) == RESET) #define __HAL_RCC_TIM12_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) == RESET) #define __HAL_RCC_TIM13_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) == RESET) #define __HAL_RCC_TIM14_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) == RESET) #define __HAL_RCC_USART3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET) #define __HAL_RCC_UART4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) == RESET) #define __HAL_RCC_UART5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) == RESET) #define __HAL_RCC_CAN1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET) #define __HAL_RCC_CAN2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) == RESET) #define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET) #define __HAL_RCC_UART7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART7EN)) == RESET) #define __HAL_RCC_UART8_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART8EN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SAI1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) #define __HAL_RCC_TIM8_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM8EN)) #define __HAL_RCC_ADC2_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC2EN)) #define __HAL_RCC_ADC3_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC3EN)) #define __HAL_RCC_SPI5_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI5EN)) #define __HAL_RCC_SPI6_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI6EN)) #define __HAL_RCC_SAI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SAI1EN)) #if defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_LTDC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_LTDCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_LTDCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_LTDC_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_LTDCEN)) #endif /* STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_DSI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_DSIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DSIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DSI_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_DSIEN)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET) #define __HAL_RCC_ADC2_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET) #define __HAL_RCC_ADC3_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) != RESET) #define __HAL_RCC_SPI5_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET) #define __HAL_RCC_SPI6_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) != RESET) #define __HAL_RCC_SAI1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) != RESET) #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))!= RESET) #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN))== RESET) #define __HAL_RCC_TIM8_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET) #define __HAL_RCC_ADC2_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET) #define __HAL_RCC_ADC3_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) == RESET) #define __HAL_RCC_SPI5_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET) #define __HAL_RCC_SPI6_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI6EN)) == RESET) #define __HAL_RCC_SAI1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) == RESET) #if defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_LTDC_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) != RESET) #define __HAL_RCC_LTDC_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_LTDCEN)) == RESET) #endif /* STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_DSI_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DSIEN)) != RESET) #define __HAL_RCC_DSI_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DSIEN)) == RESET) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_GPIOI_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOIRST)) #define __HAL_RCC_ETHMAC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ETHMACRST)) #define __HAL_RCC_USB_OTG_HS_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_GPIOJ_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOJRST)) #define __HAL_RCC_GPIOK_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOKRST)) #define __HAL_RCC_DMA2D_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA2DRST)) #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_GPIOI_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOIRST)) #define __HAL_RCC_ETHMAC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_ETHMACRST)) #define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_GPIOJ_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOJRST)) #define __HAL_RCC_GPIOK_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOKRST)) #define __HAL_RCC_DMA2D_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_DMA2DRST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_DCMI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMIRST)) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_DCMI_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_DCMIRST)) #if defined(STM32F437xx)|| defined(STM32F439xx) || defined(STM32F479xx) #define __HAL_RCC_CRYP_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_CRYPRST)) #define __HAL_RCC_HASH_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_HASHRST)) #define __HAL_RCC_CRYP_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_CRYPRST)) #define __HAL_RCC_HASH_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_HASHRST)) #endif /* STM32F437xx || STM32F439xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) #define __HAL_RCC_FMC_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_FMCRST)) #define __HAL_RCC_FMC_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_FMCRST)) #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_QSPI_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_QSPIRST)) #define __HAL_RCC_QSPI_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_QSPIRST)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_USART3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_CAN1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST)) #define __HAL_RCC_UART7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART7RST)) #define __HAL_RCC_UART8_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART8RST)) #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_USART3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_CAN1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST)) #define __HAL_RCC_UART7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART7RST)) #define __HAL_RCC_UART8_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART8RST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_TIM8_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM8RST)) #define __HAL_RCC_SPI5_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI5RST)) #define __HAL_RCC_SPI6_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI6RST)) #define __HAL_RCC_SAI1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SAI1RST)) #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET()(RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_TIM8_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM8RST)) #define __HAL_RCC_SPI5_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI5RST)) #define __HAL_RCC_SPI6_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI6RST)) #define __HAL_RCC_SAI1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SAI1RST)) #if defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_LTDC_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_LTDCRST)) #define __HAL_RCC_LTDC_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_LTDCRST)) #endif /* STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_DSI_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_DSIRST)) #define __HAL_RCC_DSI_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_DSIRST)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOILPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACLPEN)) #define __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACTXLPEN)) #define __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACRXLPEN)) #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACPTPLPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOJLPEN)) #define __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOKLPEN)) #define __HAL_RCC_SRAM3_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM3LPEN)) #define __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2DLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_BKPSRAMLPEN)) #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOILPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACLPEN)) #define __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACTXLPEN)) #define __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACRXLPEN)) #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACPTPLPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOJLPEN)) #define __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOKLPEN)) #define __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA2DLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_BKPSRAMLPEN)) /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) #define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_DCMILPEN)) #if defined(STM32F437xx)|| defined(STM32F439xx) || defined(STM32F479xx) #define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN)) #define __HAL_RCC_HASH_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN)) #define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_CRYPLPEN)) #define __HAL_RCC_HASH_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_HASHLPEN)) #endif /* STM32F437xx || STM32F439xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_AHB3_LowPower_Enable_Disable AHB3 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_FMC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FMCLPEN)) #define __HAL_RCC_FMC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_FMCLPEN)) #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) #define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_QSPILPEN)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_UART7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART7LPEN)) #define __HAL_RCC_UART8_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART8LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_UART7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART7LPEN)) #define __HAL_RCC_UART8_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART8LPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN)) #define __HAL_RCC_SPI6_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI6LPEN)) #define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE()(RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE()(RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN)) #define __HAL_RCC_SPI6_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI6LPEN)) #define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN)) #if defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_LTDC_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_LTDCLPEN)) #define __HAL_RCC_LTDC_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_LTDCLPEN)) #endif /* STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define __HAL_RCC_DSI_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_DSILPEN)) #define __HAL_RCC_DSI_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_DSILPEN)) #endif /* STM32F469xx || STM32F479xx */ /** * @} */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*----------------------------------- STM32F40xxx/STM32F41xxx-----------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_BKPSRAM_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CCMDATARAMEN_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOF_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #define __HAL_RCC_GPIOF_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOFEN)) #define __HAL_RCC_GPIOG_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOGEN)) #define __HAL_RCC_GPIOI_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOIEN)) #define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSULPIEN)) #define __HAL_RCC_BKPSRAM_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_BKPSRAMEN)) #define __HAL_RCC_CCMDATARAMEN_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CCMDATARAMEN)) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) #if defined(STM32F407xx)|| defined(STM32F417xx) /** * @brief Enable ETHERNET clock. */ #define __HAL_RCC_ETHMAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACTX_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACRX_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETHMACPTP_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ETH_CLK_ENABLE() do { \ __HAL_RCC_ETHMAC_CLK_ENABLE(); \ __HAL_RCC_ETHMACTX_CLK_ENABLE(); \ __HAL_RCC_ETHMACRX_CLK_ENABLE(); \ } while(0U) /** * @brief Disable ETHERNET clock. */ #define __HAL_RCC_ETHMAC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACEN)) #define __HAL_RCC_ETHMACTX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACTXEN)) #define __HAL_RCC_ETHMACRX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACRXEN)) #define __HAL_RCC_ETHMACPTP_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACPTPEN)) #define __HAL_RCC_ETH_CLK_DISABLE() do { \ __HAL_RCC_ETHMACTX_CLK_DISABLE(); \ __HAL_RCC_ETHMACRX_CLK_DISABLE(); \ __HAL_RCC_ETHMAC_CLK_DISABLE(); \ } while(0U) #endif /* STM32F407xx || STM32F417xx */ /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_BKPSRAM_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) != RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) != RESET) #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #define __HAL_RCC_GPIOI_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOIEN)) != RESET) #define __HAL_RCC_GPIOF_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) != RESET) #define __HAL_RCC_GPIOG_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN)) != RESET) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #define __HAL_RCC_GPIOF_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) == RESET) #define __HAL_RCC_GPIOG_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) == RESET) #define __HAL_RCC_GPIOI_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOIEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN))== RESET) #define __HAL_RCC_BKPSRAM_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) == RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) == RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) #if defined(STM32F407xx)|| defined(STM32F417xx) /** * @brief Enable ETHERNET clock. */ #define __HAL_RCC_ETHMAC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACEN)) != RESET) #define __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACTXEN)) != RESET) #define __HAL_RCC_ETHMACRX_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACRXEN)) != RESET) #define __HAL_RCC_ETHMACPTP_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACPTPEN)) != RESET) #define __HAL_RCC_ETH_IS_CLK_ENABLED() (__HAL_RCC_ETHMAC_IS_CLK_ENABLED() && \ __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() && \ __HAL_RCC_ETHMACRX_IS_CLK_ENABLED()) /** * @brief Disable ETHERNET clock. */ #define __HAL_RCC_ETHMAC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACEN)) == RESET) #define __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACTXEN)) == RESET) #define __HAL_RCC_ETHMACRX_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACRXEN)) == RESET) #define __HAL_RCC_ETHMACPTP_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_ETHMACPTPEN)) == RESET) #define __HAL_RCC_ETH_IS_CLK_DISABLED() (__HAL_RCC_ETHMAC_IS_CLK_DISABLED() && \ __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() && \ __HAL_RCC_ETHMACRX_IS_CLK_DISABLED()) #endif /* STM32F407xx || STM32F417xx */ /** * @} */ /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) #define __HAL_RCC_RNG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_RNGEN)) #if defined(STM32F407xx)|| defined(STM32F417xx) #define __HAL_RCC_DCMI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DCMI_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_DCMIEN)) #endif /* STM32F407xx || STM32F417xx */ #if defined(STM32F415xx) || defined(STM32F417xx) #define __HAL_RCC_CRYP_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_HASH_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRYP_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_CRYPEN)) #define __HAL_RCC_HASH_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_HASHEN)) #endif /* STM32F415xx || STM32F417xx */ /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) #define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) != RESET) #define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) == RESET) #if defined(STM32F407xx)|| defined(STM32F417xx) #define __HAL_RCC_DCMI_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) != RESET) #define __HAL_RCC_DCMI_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) == RESET) #endif /* STM32F407xx || STM32F417xx */ #if defined(STM32F415xx) || defined(STM32F417xx) #define __HAL_RCC_CRYP_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_CRYPEN)) != RESET) #define __HAL_RCC_HASH_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_HASHEN)) != RESET) #define __HAL_RCC_CRYP_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_CRYPEN)) == RESET) #define __HAL_RCC_HASH_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_HASHEN)) == RESET) #endif /* STM32F415xx || STM32F417xx */ /** * @} */ /** @defgroup RCCEx_AHB3_Clock_Enable_Disable AHB3 Peripheral Clock Enable Disable * @brief Enables or disables the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FSMC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FSMCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FSMCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FSMC_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_FSMCEN)) /** * @} */ /** @defgroup RCCEx_AHB3_Peripheral_Clock_Enable_Disable_Status AHB3 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FSMC_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FSMCEN)) != RESET) #define __HAL_RCC_FSMC_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FSMCEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM12_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM13_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM14_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) #define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM6EN)) #define __HAL_RCC_TIM7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM7EN)) #define __HAL_RCC_TIM12_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM12EN)) #define __HAL_RCC_TIM13_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM13EN)) #define __HAL_RCC_TIM14_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM14EN)) #define __HAL_RCC_USART3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART3EN)) #define __HAL_RCC_UART4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART4EN)) #define __HAL_RCC_UART5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART5EN)) #define __HAL_RCC_CAN1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN1EN)) #define __HAL_RCC_CAN2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN2EN)) #define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) != RESET) #define __HAL_RCC_TIM7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) != RESET) #define __HAL_RCC_TIM12_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) != RESET) #define __HAL_RCC_TIM13_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) != RESET) #define __HAL_RCC_TIM14_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) != RESET) #define __HAL_RCC_USART3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET) #define __HAL_RCC_UART4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) != RESET) #define __HAL_RCC_UART5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) != RESET) #define __HAL_RCC_CAN1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) != RESET) #define __HAL_RCC_CAN2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) != RESET) #define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET) #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) #define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) == RESET) #define __HAL_RCC_TIM7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) == RESET) #define __HAL_RCC_TIM12_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) == RESET) #define __HAL_RCC_TIM13_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) == RESET) #define __HAL_RCC_TIM14_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) == RESET) #define __HAL_RCC_USART3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET) #define __HAL_RCC_UART4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) == RESET) #define __HAL_RCC_UART5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) == RESET) #define __HAL_RCC_CAN1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET) #define __HAL_RCC_CAN2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) == RESET) #define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) #define __HAL_RCC_TIM8_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM8EN)) #define __HAL_RCC_ADC2_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC2EN)) #define __HAL_RCC_ADC3_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC3EN)) /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) != RESET) #define __HAL_RCC_TIM8_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET) #define __HAL_RCC_ADC2_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET) #define __HAL_RCC_ADC3_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) != RESET) #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) == RESET) #define __HAL_RCC_TIM8_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET) #define __HAL_RCC_ADC2_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET) #define __HAL_RCC_ADC3_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_GPIOI_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOIRST)) #define __HAL_RCC_ETHMAC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ETHMACRST)) #define __HAL_RCC_USB_OTG_HS_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_GPIOI_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOIRST)) #define __HAL_RCC_ETHMAC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_ETHMACRST)) #define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #if defined(STM32F407xx)|| defined(STM32F417xx) #define __HAL_RCC_DCMI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMIRST)) #define __HAL_RCC_DCMI_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_DCMIRST)) #endif /* STM32F407xx || STM32F417xx */ #if defined(STM32F415xx) || defined(STM32F417xx) #define __HAL_RCC_CRYP_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_CRYPRST)) #define __HAL_RCC_HASH_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_HASHRST)) #define __HAL_RCC_CRYP_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_CRYPRST)) #define __HAL_RCC_HASH_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_HASHRST)) #endif /* STM32F415xx || STM32F417xx */ #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_RNGRST)) /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) #define __HAL_RCC_FSMC_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_FSMCRST)) #define __HAL_RCC_FSMC_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_FSMCRST)) /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_USART3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_CAN1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST)) #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_USART3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_CAN1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_TIM8_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM8RST)) #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET()(RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_TIM8_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM8RST)) /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOILPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACLPEN)) #define __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACTXLPEN)) #define __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACRXLPEN)) #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACPTPLPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_BKPSRAMLPEN)) #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOILPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACLPEN)) #define __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACTXLPEN)) #define __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACRXLPEN)) #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACPTPLPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_BKPSRAMLPEN)) /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_RNGLPEN)) #if defined(STM32F407xx)|| defined(STM32F417xx) #define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) #define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_DCMILPEN)) #endif /* STM32F407xx || STM32F417xx */ #if defined(STM32F415xx) || defined(STM32F417xx) #define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN)) #define __HAL_RCC_HASH_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN)) #define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_CRYPLPEN)) #define __HAL_RCC_HASH_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_HASHLPEN)) #endif /* STM32F415xx || STM32F417xx */ /** * @} */ /** @defgroup RCCEx_AHB3_LowPower_Enable_Disable AHB3 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_FSMC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FSMCLPEN)) #define __HAL_RCC_FSMC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_FSMCLPEN)) /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE()(RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE()(RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN)) /** * @} */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ /*----------------------------------------------------------------------------*/ /*------------------------- STM32F401xE/STM32F401xC --------------------------*/ #if defined(STM32F401xC) || defined(STM32F401xE) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enable or disable the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CCMDATARAMEN_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) #define __HAL_RCC_CCMDATARAMEN_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CCMDATARAMEN)) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) != RESET) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) /** * @} */ /** @defgroup RCC_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) != RESET) #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0xFFFFFFFFU) #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_AHB1_RELEASE_RESET() (RCC->AHB1RSTR = 0x00U) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_APB1_FORCE_RESET() (RCC->APB1RSTR = 0xFFFFFFFFU) #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_APB1_RELEASE_RESET() (RCC->APB1RSTR = 0x00U) #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_APB2_RELEASE_RESET() (RCC->APB2RSTR = 0x00U) #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) /** * @} */ #endif /* STM32F401xC || STM32F401xE*/ /*----------------------------------------------------------------------------*/ /*-------------------------------- STM32F410xx -------------------------------*/ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RNG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_RNGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_RNGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) #define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_RNGEN)) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_RNGEN)) != RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) #define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_RNGEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB1) peripheral clock. * @{ */ #define __HAL_RCC_TIM6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_LPTIM1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_LPTIM1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_LPTIM1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RTCAPB_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_RTCAPBEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_RTCAPBEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FMPI2C1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM6EN)) #define __HAL_RCC_RTCAPB_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_RTCAPBEN)) #define __HAL_RCC_LPTIM1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_LPTIM1EN)) #define __HAL_RCC_FMPI2C1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_FMPI2C1EN)) #define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) != RESET) #define __HAL_RCC_RTCAPB_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) != RESET) #define __HAL_RCC_LPTIM1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_LPTIM1EN)) != RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) != RESET) #define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET) #define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) == RESET) #define __HAL_RCC_RTCAPB_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) == RESET) #define __HAL_RCC_LPTIM1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_LPTIM1EN)) == RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) == RESET) #define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @{ */ #define __HAL_RCC_SPI5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_EXTIT_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_EXTITEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_EXTITEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI5_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI5EN)) #define __HAL_RCC_EXTIT_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_EXTITEN)) /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SPI5_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET) #define __HAL_RCC_EXTIT_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_EXTITEN)) != RESET) #define __HAL_RCC_SPI5_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET) #define __HAL_RCC_EXTIT_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_EXTITEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_RNGRST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_RNGRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() #define __HAL_RCC_AHB2_RELEASE_RESET() /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() #define __HAL_RCC_AHB3_RELEASE_RESET() /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_LPTIM1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_LPTIM1RST)) #define __HAL_RCC_FMPI2C1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST)) #define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_LPTIM1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_LPTIM1RST)) #define __HAL_RCC_FMPI2C1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_SPI5_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI5RST)) #define __HAL_RCC_SPI5_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI5RST)) /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_RNGLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_RNGLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @{ */ #define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_LPTIM1LPEN)) #define __HAL_RCC_RTCAPB_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_RTCAPBLPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_LPTIM1LPEN)) #define __HAL_RCC_RTCAPB_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_RTCAPBLPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @{ */ #define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN)) #define __HAL_RCC_EXTIT_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_EXTITLPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN)) #define __HAL_RCC_EXTIT_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_EXTITLPEN)) /** * @} */ #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /*----------------------------------------------------------------------------*/ /*-------------------------------- STM32F411xx -------------------------------*/ #if defined(STM32F411xE) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_CCMDATARAMEN_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #define __HAL_RCC_CCMDATARAMEN_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CCMDATARAMEN)) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) != RESET) #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) == RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) /** * @} */ /** @defgroup RCCEX_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @{ */ #define __HAL_RCC_SPI5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) #define __HAL_RCC_SPI5_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI5EN)) /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) != RESET) #define __HAL_RCC_SPI5_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET) #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) == RESET) #define __HAL_RCC_SPI5_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_SPI5_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI5RST)) #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SPI5_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI5RST)) /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @{ */ #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @{ */ #define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN)) /** * @} */ #endif /* STM32F411xE */ /*----------------------------------------------------------------------------*/ /*---------------------------------- STM32F446xx -----------------------------*/ #if defined(STM32F446xx) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_BKPSRAM_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_BKPSRAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CCMDATARAMEN_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CCMDATARAMEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOF_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_OTGHSULPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #define __HAL_RCC_GPIOF_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOFEN)) #define __HAL_RCC_GPIOG_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOGEN)) #define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_OTGHSULPIEN)) #define __HAL_RCC_BKPSRAM_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_BKPSRAMEN)) #define __HAL_RCC_CCMDATARAMEN_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CCMDATARAMEN)) #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #define __HAL_RCC_GPIOF_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) != RESET) #define __HAL_RCC_GPIOG_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) != RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN)) != RESET) #define __HAL_RCC_BKPSRAM_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) != RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN))!= RESET) #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #define __HAL_RCC_GPIOF_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) == RESET) #define __HAL_RCC_GPIOG_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSEN)) == RESET) #define __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_OTGHSULPIEN)) == RESET) #define __HAL_RCC_BKPSRAM_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_BKPSRAMEN)) == RESET) #define __HAL_RCC_CCMDATARAMEN_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CCMDATARAMEN)) == RESET) #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_DCMI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DCMI_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_DCMIEN)) #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) #define __HAL_RCC_RNG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_RNGEN)) /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_DCMI_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) != RESET) #define __HAL_RCC_DCMI_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_DCMIEN)) == RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) #define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) != RESET) #define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB3_Clock_Enable_Disable AHB3 Peripheral Clock Enable Disable * @brief Enables or disables the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FMC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_QSPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FMC_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_FMCEN)) #define __HAL_RCC_QSPI_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_QSPIEN)) /** * @} */ /** @defgroup RCCEx_AHB3_Peripheral_Clock_Enable_Disable_Status AHB3 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_FMC_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FMCEN)) != RESET) #define __HAL_RCC_QSPI_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) != RESET) #define __HAL_RCC_FMC_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FMCEN)) == RESET) #define __HAL_RCC_QSPI_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM12_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM13_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM14_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPDIFRX_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPDIFRXEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPDIFRXEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FMPI2C1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CEC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CECEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CECEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_DAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) #define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM6EN)) #define __HAL_RCC_TIM7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM7EN)) #define __HAL_RCC_TIM12_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM12EN)) #define __HAL_RCC_TIM13_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM13EN)) #define __HAL_RCC_TIM14_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM14EN)) #define __HAL_RCC_SPDIFRX_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPDIFRXEN)) #define __HAL_RCC_USART3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART3EN)) #define __HAL_RCC_UART4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART4EN)) #define __HAL_RCC_UART5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART5EN)) #define __HAL_RCC_FMPI2C1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_FMPI2C1EN)) #define __HAL_RCC_CAN1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN1EN)) #define __HAL_RCC_CAN2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN2EN)) #define __HAL_RCC_CEC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CECEN)) #define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN)) /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) != RESET) #define __HAL_RCC_TIM7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) != RESET) #define __HAL_RCC_TIM12_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) != RESET) #define __HAL_RCC_TIM13_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) != RESET) #define __HAL_RCC_TIM14_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) != RESET) #define __HAL_RCC_SPDIFRX_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPDIFRXEN)) != RESET) #define __HAL_RCC_USART3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET) #define __HAL_RCC_UART4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) != RESET) #define __HAL_RCC_UART5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) != RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) != RESET) #define __HAL_RCC_CAN1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) != RESET) #define __HAL_RCC_CAN2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) != RESET) #define __HAL_RCC_CEC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CECEN)) != RESET) #define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET) #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) #define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) == RESET) #define __HAL_RCC_TIM7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) == RESET) #define __HAL_RCC_TIM12_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) == RESET) #define __HAL_RCC_TIM13_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) == RESET) #define __HAL_RCC_TIM14_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) == RESET) #define __HAL_RCC_SPDIFRX_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPDIFRXEN)) == RESET) #define __HAL_RCC_USART3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET) #define __HAL_RCC_UART4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) == RESET) #define __HAL_RCC_UART5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) == RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) == RESET) #define __HAL_RCC_CAN1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET) #define __HAL_RCC_CAN2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) == RESET) #define __HAL_RCC_CEC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CECEN)) == RESET) #define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET) /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_ADC3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_ADC3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SAI1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SAI2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) #define __HAL_RCC_TIM8_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM8EN)) #define __HAL_RCC_ADC2_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC2EN)) #define __HAL_RCC_ADC3_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC3EN)) #define __HAL_RCC_SAI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SAI1EN)) #define __HAL_RCC_SAI2_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SAI2EN)) /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) != RESET) #define __HAL_RCC_TIM8_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET) #define __HAL_RCC_ADC2_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) != RESET) #define __HAL_RCC_ADC3_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) != RESET) #define __HAL_RCC_SAI1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) != RESET) #define __HAL_RCC_SAI2_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI2EN)) != RESET) #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) == RESET) #define __HAL_RCC_TIM8_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET) #define __HAL_RCC_ADC2_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC2EN)) == RESET) #define __HAL_RCC_ADC3_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC3EN)) == RESET) #define __HAL_RCC_SAI1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) == RESET) #define __HAL_RCC_SAI2_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI2EN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_USB_OTG_HS_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #define __HAL_RCC_GPIOF_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOGRST)) #define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_OTGHRST)) #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_DCMI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMIRST)) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_DCMI_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_DCMIRST)) /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) #define __HAL_RCC_FMC_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_FMCRST)) #define __HAL_RCC_QSPI_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_QSPIRST)) #define __HAL_RCC_FMC_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_FMCRST)) #define __HAL_RCC_QSPI_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_QSPIRST)) /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_SPDIFRX_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPDIFRXRST)) #define __HAL_RCC_USART3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_FMPI2C1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_CAN1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_CEC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CECRST)) #define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST)) #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM14RST)) #define __HAL_RCC_SPDIFRX_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPDIFRXRST)) #define __HAL_RCC_USART3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART3RST)) #define __HAL_RCC_UART4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART5RST)) #define __HAL_RCC_FMPI2C1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_CAN1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN2RST)) #define __HAL_RCC_CEC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CECRST)) #define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST)) /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_TIM8_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM8RST)) #define __HAL_RCC_SAI1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SAI1RST)) #define __HAL_RCC_SAI2_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SAI2RST)) #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_TIM8_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM8RST)) #define __HAL_RCC_SAI1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SAI1RST)) #define __HAL_RCC_SAI2_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SAI2RST)) /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_BKPSRAMLPEN)) #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM2LPEN)) #define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSLPEN)) #define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_OTGHSULPILPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) #define __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_BKPSRAMLPEN)) /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) #define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_DCMILPEN)) /** * @} */ /** @defgroup RCCEx_AHB3_LowPower_Enable_Disable AHB3 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_FMC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FMCLPEN)) #define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) #define __HAL_RCC_FMC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_FMCLPEN)) #define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_QSPILPEN)) /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_SPDIFRX_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPDIFRXLPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_CEC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CECLPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN)) #define __HAL_RCC_SPDIFRX_CLK_SLEEP_DISABLE()(RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPDIFRXLPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN)) #define __HAL_RCC_UART4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE()(RCC->APB1LPENR &= ~(RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN)) #define __HAL_RCC_CEC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CECLPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN)) /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC3LPEN)) #define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN)) #define __HAL_RCC_SAI2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI2LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE()(RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE()(RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN)) #define __HAL_RCC_ADC2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC2LPEN)) #define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC3LPEN)) #define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN)) #define __HAL_RCC_SAI2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI2LPEN)) /** * @} */ #endif /* STM32F446xx */ /*----------------------------------------------------------------------------*/ /*-------STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx-------*/ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable * @brief Enables or disables the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIODEN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOEEN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOFEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_GPIOG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_GPIOGEN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIODEN)) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOEEN)) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOFEN)) #define __HAL_RCC_GPIOG_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOGEN)) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_CRCEN)) /** * @} */ /** @defgroup RCCEx_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) != RESET) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) != RESET) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) != RESET) #define __HAL_RCC_GPIOG_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) != RESET) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) != RESET) #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIODEN)) == RESET) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOEEN)) == RESET) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOFEN)) == RESET) #define __HAL_RCC_GPIOG_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOGEN)) == RESET) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & (RCC_AHB1ENR_CRCEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable * @brief Enable or disable the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F423xx) #define __HAL_RCC_AES_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AESEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_AES_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_AESEN)) #endif /* STM32F423xx */ #define __HAL_RCC_RNG_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_RNGEN)) #define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\ __HAL_RCC_SYSCFG_CLK_ENABLE();\ }while(0U) #define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN)) /** * @} */ /** @defgroup RCCEx_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F423xx) #define __HAL_RCC_AES_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_AESEN)) != RESET) #define __HAL_RCC_AES_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_AESEN)) == RESET) #endif /* STM32F423xx */ #define __HAL_RCC_USB_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) != RESET) #define __HAL_RCC_USB_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_OTGFSEN)) == RESET) #define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) != RESET) #define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB2ENR & (RCC_AHB2ENR_RNGEN)) == RESET) /** * @} */ /** @defgroup RCCEx_AHB3_Clock_Enable_Disable AHB3 Peripheral Clock Enable Disable * @brief Enables or disables the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_FSMC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FSMCEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FSMCEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_QSPI_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_FSMC_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_FSMCEN)) #define __HAL_RCC_QSPI_CLK_DISABLE() (RCC->AHB3ENR &= ~(RCC_AHB3ENR_QSPIEN)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_AHB3_Peripheral_Clock_Enable_Disable_Status AHB3 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the AHB3 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_FSMC_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FSMCEN)) != RESET) #define __HAL_RCC_QSPI_IS_CLK_ENABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) != RESET) #define __HAL_RCC_FSMC_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_FSMCEN)) == RESET) #define __HAL_RCC_QSPI_IS_CLK_DISABLED() ((RCC->AHB3ENR & (RCC_AHB3ENR_QSPIEN)) == RESET) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB1_Clock_Enable_Disable APB1 Peripheral Clock Enable Disable * @brief Enable or disable the Low Speed APB (APB1) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM6_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM6EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM12_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM12EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM13_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM13EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM14_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM14EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_LPTIM1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_LPTIM1EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_RTCAPBEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_RTCAPBEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_USART3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART5EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_FMPI2C1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_FMPI2C1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN1EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_CAN2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN2EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_CAN3EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM2EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_TIM4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_SPI3EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_I2C3_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_I2C3EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DAC_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_DACEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART7_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART7EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART7EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB1ENR, RCC_APB1ENR_UART8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB1ENR, RCC_APB1ENR_UART8EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM2EN)) #define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM3EN)) #define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM4EN)) #define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM6EN)) #define __HAL_RCC_TIM7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM7EN)) #define __HAL_RCC_TIM12_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM12EN)) #define __HAL_RCC_TIM13_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM13EN)) #define __HAL_RCC_TIM14_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM14EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_LPTIM1EN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_RTCAPBEN)) #define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN)) #define __HAL_RCC_USART3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART3EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART4EN)) #define __HAL_RCC_UART5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART5EN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C3EN)) #define __HAL_RCC_FMPI2C1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_FMPI2C1EN)) #define __HAL_RCC_CAN1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN1EN)) #define __HAL_RCC_CAN2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN2EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_CAN3EN)) #define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN)) #define __HAL_RCC_UART7_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART7EN)) #define __HAL_RCC_UART8_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_UART8EN)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB1_Peripheral_Clock_Enable_Disable_Status APB1 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB1 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) != RESET) #define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) != RESET) #define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET) #define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) != RESET) #define __HAL_RCC_TIM7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) != RESET) #define __HAL_RCC_TIM12_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) != RESET) #define __HAL_RCC_TIM13_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) != RESET) #define __HAL_RCC_TIM14_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_LPTIM1EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) != RESET) #define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET) #define __HAL_RCC_USART3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) != RESET) #define __HAL_RCC_UART5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) != RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) != RESET) #define __HAL_RCC_CAN1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN))!= RESET) #define __HAL_RCC_CAN2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN3EN)) != RESET) #define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET) #define __HAL_RCC_UART7_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART7EN)) != RESET) #define __HAL_RCC_UART8_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART8EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM2EN)) == RESET) #define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM3EN)) == RESET) #define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET) #define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM6EN)) == RESET) #define __HAL_RCC_TIM7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM7EN)) == RESET) #define __HAL_RCC_TIM12_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM12EN)) == RESET) #define __HAL_RCC_TIM13_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM13EN)) == RESET) #define __HAL_RCC_TIM14_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM14EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_LPTIM1EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) == RESET) #define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET) #define __HAL_RCC_USART3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) == RESET) #define __HAL_RCC_UART5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C3EN)) == RESET) #define __HAL_RCC_FMPI2C1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_FMPI2C1EN)) == RESET) #define __HAL_RCC_CAN1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET) #define __HAL_RCC_CAN2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN2EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_CAN3EN)) == RESET) #define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET) #define __HAL_RCC_UART7_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART7EN)) == RESET) #define __HAL_RCC_UART8_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_UART8EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB2_Clock_Enable_Disable APB2 Peripheral Clock Enable Disable * @brief Enable or disable the High Speed APB (APB2) peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_UART9EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_UART9EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_UART10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_UART10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_UART10EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SDIOEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI4_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_EXTIT_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_EXTITEN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_EXTITEN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_TIM10_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM10EN);\ UNUSED(tmpreg); \ } while(0U) #define __HAL_RCC_SPI5_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ UNUSED(tmpreg); \ } while(0U) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_CLK_ENABLE() do { \ __IO uint32_t tmpreg = 0x00U; \ SET_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM2EN);\ /* Delay after an RCC peripheral clock enabling */ \ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM2EN);\ UNUSED(tmpreg); \ } while(0U) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM8_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM8EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_UART9EN)) #define __HAL_RCC_UART10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_UART10EN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SDIOEN)) #define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI4EN)) #define __HAL_RCC_EXTIT_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_EXTITEN)) #define __HAL_RCC_TIM10_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM10EN)) #define __HAL_RCC_SPI5_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI5EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SAI1EN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_DFSDM1EN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_DFSDM2EN)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB2_Peripheral_Clock_Enable_Disable_Status APB2 Peripheral Clock Enable Disable Status * @brief Get the enable or disable status of the APB2 peripheral clock. * @note After reset, the peripheral clock (used for registers read/write access) * is disabled and the application software has to enable this clock before * using it. * @{ */ #define __HAL_RCC_TIM8_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_UART9EN)) != RESET) #define __HAL_RCC_UART10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_UART10EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) != RESET) #define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) != RESET) #define __HAL_RCC_EXTIT_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_EXTITEN)) != RESET) #define __HAL_RCC_TIM10_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) != RESET) #define __HAL_RCC_SPI5_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DFSDM1EN)) != RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DFSDM2EN)) != RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM8_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM8EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_UART9EN)) == RESET) #define __HAL_RCC_UART10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_UART10EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SDIOEN)) == RESET) #define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI4EN)) == RESET) #define __HAL_RCC_EXTIT_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_EXTITEN)) == RESET) #define __HAL_RCC_TIM10_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM10EN)) == RESET) #define __HAL_RCC_SPI5_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI5EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SAI1EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DFSDM1EN)) == RESET) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_DFSDM2EN)) == RESET) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset * @brief Force or release AHB1 peripheral reset. * @{ */ #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIODRST)) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOERST)) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOGRST)) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) #if defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIODRST)) #endif /* STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOERST)) #endif /* STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_GPIOF_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOFRST)) #define __HAL_RCC_GPIOG_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOGRST)) #endif /* STM32F412Zx || STM32F413xx || STM32F423xx */ #define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_CRCRST)) /** * @} */ /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset * @brief Force or release AHB2 peripheral reset. * @{ */ #define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) #if defined(STM32F423xx) #define __HAL_RCC_AES_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_AESRST)) #define __HAL_RCC_AES_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_AESRST)) #endif /* STM32F423xx */ #define __HAL_RCC_USB_OTG_FS_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_OTGFSRST)) #define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_RNGRST)) #define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_RNGRST)) /** * @} */ /** @defgroup RCCEx_AHB3_Force_Release_Reset AHB3 Force Release Reset * @brief Force or release AHB3 peripheral reset. * @{ */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0xFFFFFFFFU) #define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00U) #define __HAL_RCC_FSMC_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_FSMCRST)) #define __HAL_RCC_QSPI_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_QSPIRST)) #define __HAL_RCC_FSMC_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_FSMCRST)) #define __HAL_RCC_QSPI_RELEASE_RESET() (RCC->AHB3RSTR &= ~(RCC_AHB3RSTR_QSPIRST)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */ #if defined(STM32F412Cx) #define __HAL_RCC_AHB3_FORCE_RESET() #define __HAL_RCC_AHB3_RELEASE_RESET() #define __HAL_RCC_FSMC_FORCE_RESET() #define __HAL_RCC_QSPI_FORCE_RESET() #define __HAL_RCC_FSMC_RELEASE_RESET() #define __HAL_RCC_QSPI_RELEASE_RESET() #endif /* STM32F412Cx */ /** * @} */ /** @defgroup RCCEx_APB1_Force_Release_Reset APB1 Force Release Reset * @brief Force or release APB1 peripheral reset. * @{ */ #define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM14RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_LPTIM1RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_USART3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART3RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART5RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_FMPI2C1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_CAN1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN2RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_CAN3RST)) #define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST)) #define __HAL_RCC_UART7_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART7RST)) #define __HAL_RCC_UART8_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_UART8RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST)) #define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST)) #define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM4RST)) #define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM6RST)) #define __HAL_RCC_TIM7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM7RST)) #define __HAL_RCC_TIM12_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM12RST)) #define __HAL_RCC_TIM13_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM13RST)) #define __HAL_RCC_TIM14_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM14RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_LPTIM1RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST)) #define __HAL_RCC_USART3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART3RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART4RST)) #define __HAL_RCC_UART5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART5RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C3RST)) #define __HAL_RCC_FMPI2C1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_FMPI2C1RST)) #define __HAL_RCC_CAN1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN1RST)) #define __HAL_RCC_CAN2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN2RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_CAN3RST)) #define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST)) #define __HAL_RCC_UART7_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART7RST)) #define __HAL_RCC_UART8_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART8RST)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB2_Force_Release_Reset APB2 Force Release Reset * @brief Force or release APB2 peripheral reset. * @{ */ #define __HAL_RCC_TIM8_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM8RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_UART9RST)) #define __HAL_RCC_UART10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_UART10RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SPI5_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI5RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SAI1RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_DFSDM1RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_DFSDM2RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM8_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM8RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_UART9RST)) #define __HAL_RCC_UART10_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_UART10RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SDIORST)) #define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI4RST)) #define __HAL_RCC_TIM10_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM10RST)) #define __HAL_RCC_SPI5_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI5RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SAI1RST)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_DFSDM1RST)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_DFSDM2RST)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM1LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_SRAM2LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIODLPEN)) #define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOELPEN)) #define __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOFLPEN)) #define __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOGLPEN)) #define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_CRCLPEN)) #define __HAL_RCC_FLITF_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_FLITFLPEN)) #define __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM1LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_SRAM2LPEN)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #if defined(STM32F423xx) #define __HAL_RCC_AES_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_AESLPEN)) #define __HAL_RCC_AES_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_AESLPEN)) #endif /* STM32F423xx */ #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_OTGFSLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) #define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_RNGLPEN)) /** * @} */ /** @defgroup RCCEx_AHB3_LowPower_Enable_Disable AHB3 Peripheral Low Power Enable Disable * @brief Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_FSMC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FSMCLPEN)) #define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) #define __HAL_RCC_FSMC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_FSMCLPEN)) #define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~(RCC_AHB3LPENR_QSPILPEN)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB1_LowPower_Enable_Disable APB1 Peripheral Low Power Enable Disable * @brief Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM14LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_LPTIM1LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_RTCAPBLPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN2LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_CAN3LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_UART7_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART7LPEN)) #define __HAL_RCC_UART8_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_UART8LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM2LPEN)) #define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM3LPEN)) #define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM4LPEN)) #define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM6LPEN)) #define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM7LPEN)) #define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM12LPEN)) #define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM13LPEN)) #define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM14LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_LPTIM1LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_RTCAPB_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_RTCAPBLPEN)) #define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN)) #define __HAL_RCC_USART3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART4_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN)) #define __HAL_RCC_UART5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C3LPEN)) #define __HAL_RCC_FMPI2C1_CLK_SLEEP_DISABLE()(RCC->APB1LPENR &= ~(RCC_APB1LPENR_FMPI2C1LPEN)) #define __HAL_RCC_CAN1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN1LPEN)) #define __HAL_RCC_CAN2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN2LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_CAN3_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_CAN3LPEN)) #define __HAL_RCC_DAC_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_DACLPEN)) #define __HAL_RCC_UART7_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART7LPEN)) #define __HAL_RCC_UART8_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART8LPEN)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ /** @defgroup RCCEx_APB2_LowPower_Enable_Disable APB2 Peripheral Low Power Enable Disable * @brief Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. * @note Peripheral clock gating in SLEEP mode can be used to further reduce * power consumption. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. * @note By default, all peripheral clocks are enabled during SLEEP mode. * @{ */ #define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM8LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_UART9LPEN)) #define __HAL_RCC_UART10_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_UART10LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_EXTIT_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_EXTITLPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI5LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SAI1LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_DFSDM1LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_DFSDM2LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM8LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_UART9_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_UART9LPEN)) #define __HAL_RCC_UART10_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_UART10LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SDIOLPEN)) #define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI4LPEN)) #define __HAL_RCC_EXTIT_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_EXTITLPEN)) #define __HAL_RCC_TIM10_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM10LPEN)) #define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI5LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SAI1LPEN)) #endif /* STM32F413xx || STM32F423xx */ #define __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_DFSDM1LPEN)) #if defined(STM32F413xx) || defined(STM32F423xx) #define __HAL_RCC_DFSDM2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_DFSDM2LPEN)) #endif /* STM32F413xx || STM32F423xx */ /** * @} */ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /*----------------------------------------------------------------------------*/ /*------------------------------- PLL Configuration --------------------------*/ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F446xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the main PLL clock source, multiplication and division factors. * @note This function must be used only when the main PLL is disabled. * @param __RCC_PLLSource__ specifies the PLL entry clock source. * This parameter can be one of the following values: * @arg RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry * @arg RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry * @note This clock source (RCC_PLLSource) is common for the main PLL and PLLI2S. * @param __PLLM__ specifies the division factor for PLL VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 2 MHz to limit PLL jitter. * @param __PLLN__ specifies the multiplication factor for PLL VCO output clock * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLN parameter correctly to ensure that the VCO * output frequency is between 100 and 432 MHz. * * @param __PLLP__ specifies the division factor for main system clock (SYSCLK) * This parameter must be a number in the range {2, 4, 6, or 8}. * * @param __PLLQ__ specifies the division factor for OTG FS, SDIO and RNG clocks * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * @note If the USB OTG FS is used in your application, you have to set the * PLLQ parameter correctly to have 48 MHz clock for the USB. However, * the SDIO and RNG need a frequency lower than or equal to 48 MHz to work * correctly. * * @param __PLLR__ PLL division factor for I2S, SAI, SYSTEM, SPDIFRX clocks. * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note This parameter is only available in STM32F446xx/STM32F469xx/STM32F479xx/ STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx/STM32F413xx/STM32F423xx devices. * */ #define __HAL_RCC_PLL_CONFIG(__RCC_PLLSource__, __PLLM__, __PLLN__, __PLLP__, __PLLQ__,__PLLR__) \ (RCC->PLLCFGR = ((__RCC_PLLSource__) | (__PLLM__) | \ ((__PLLN__) << RCC_PLLCFGR_PLLN_Pos) | \ ((((__PLLP__) >> 1U) -1U) << RCC_PLLCFGR_PLLP_Pos) | \ ((__PLLQ__) << RCC_PLLCFGR_PLLQ_Pos) | \ ((__PLLR__) << RCC_PLLCFGR_PLLR_Pos))) #else /** @brief Macro to configure the main PLL clock source, multiplication and division factors. * @note This function must be used only when the main PLL is disabled. * @param __RCC_PLLSource__ specifies the PLL entry clock source. * This parameter can be one of the following values: * @arg RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry * @arg RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry * @note This clock source (RCC_PLLSource) is common for the main PLL and PLLI2S. * @param __PLLM__ specifies the division factor for PLL VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 2 MHz to limit PLL jitter. * @param __PLLN__ specifies the multiplication factor for PLL VCO output clock * This parameter must be a number between Min_Data = 50 and Max_Data = 432 * Except for STM32F411xE devices where Min_Data = 192. * @note You have to set the PLLN parameter correctly to ensure that the VCO * output frequency is between 100 and 432 MHz, Except for STM32F411xE devices * where frequency is between 192 and 432 MHz. * @param __PLLP__ specifies the division factor for main system clock (SYSCLK) * This parameter must be a number in the range {2, 4, 6, or 8}. * * @param __PLLQ__ specifies the division factor for OTG FS, SDIO and RNG clocks * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * @note If the USB OTG FS is used in your application, you have to set the * PLLQ parameter correctly to have 48 MHz clock for the USB. However, * the SDIO and RNG need a frequency lower than or equal to 48 MHz to work * correctly. * */ #define __HAL_RCC_PLL_CONFIG(__RCC_PLLSource__, __PLLM__, __PLLN__, __PLLP__, __PLLQ__) \ (RCC->PLLCFGR = (0x20000000U | (__RCC_PLLSource__) | (__PLLM__)| \ ((__PLLN__) << RCC_PLLCFGR_PLLN_Pos) | \ ((((__PLLP__) >> 1U) -1U) << RCC_PLLCFGR_PLLP_Pos) | \ ((__PLLQ__) << RCC_PLLCFGR_PLLQ_Pos))) #endif /* STM32F410xx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ /*----------------------------------------------------------------------------*/ /*----------------------------PLLI2S Configuration ---------------------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macros to enable or disable the PLLI2S. * @note The PLLI2S is disabled by hardware when entering STOP and STANDBY modes. */ #define __HAL_RCC_PLLI2S_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLI2SON_BB = ENABLE) #define __HAL_RCC_PLLI2S_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLI2SON_BB = DISABLE) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F446xx) /** @brief Macro to configure the PLLI2S clock multiplication and division factors . * @note This macro must be used only when the PLLI2S is disabled. * @note PLLI2S clock source is common with the main PLL (configured in * HAL_RCC_ClockConfig() API). * @param __PLLI2SM__ specifies the division factor for PLLI2S VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLI2SM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 1 MHz to limit PLLI2S jitter. * * @param __PLLI2SN__ specifies the multiplication factor for PLLI2S VCO output clock * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLI2SP__ specifies division factor for SPDIFRX Clock. * This parameter must be a number in the range {2, 4, 6, or 8}. * @note the PLLI2SP parameter is only available with STM32F446xx Devices * * @param __PLLI2SR__ specifies the division factor for I2S clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz * on the I2S clock frequency. * * @param __PLLI2SQ__ specifies the division factor for SAI clock * This parameter must be a number between Min_Data = 2 and Max_Data = 15. */ #define __HAL_RCC_PLLI2S_CONFIG(__PLLI2SM__, __PLLI2SN__, __PLLI2SP__, __PLLI2SQ__, __PLLI2SR__) \ (RCC->PLLI2SCFGR = ((__PLLI2SM__) |\ ((__PLLI2SN__) << RCC_PLLI2SCFGR_PLLI2SN_Pos) |\ ((((__PLLI2SP__) >> 1U) -1U) << RCC_PLLI2SCFGR_PLLI2SP_Pos) |\ ((__PLLI2SQ__) << RCC_PLLI2SCFGR_PLLI2SQ_Pos) |\ ((__PLLI2SR__) << RCC_PLLI2SCFGR_PLLI2SR_Pos))) #elif defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the PLLI2S clock multiplication and division factors . * @note This macro must be used only when the PLLI2S is disabled. * @note PLLI2S clock source is common with the main PLL (configured in * HAL_RCC_ClockConfig() API). * @param __PLLI2SM__ specifies the division factor for PLLI2S VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLI2SM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 1 MHz to limit PLLI2S jitter. * * @param __PLLI2SN__ specifies the multiplication factor for PLLI2S VCO output clock * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLI2SR__ specifies the division factor for I2S clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz * on the I2S clock frequency. * * @param __PLLI2SQ__ specifies the division factor for SAI clock * This parameter must be a number between Min_Data = 2 and Max_Data = 15. */ #define __HAL_RCC_PLLI2S_CONFIG(__PLLI2SM__, __PLLI2SN__, __PLLI2SQ__, __PLLI2SR__) \ (RCC->PLLI2SCFGR = ((__PLLI2SM__) |\ ((__PLLI2SN__) << RCC_PLLI2SCFGR_PLLI2SN_Pos) |\ ((__PLLI2SQ__) << RCC_PLLI2SCFGR_PLLI2SQ_Pos) |\ ((__PLLI2SR__) << RCC_PLLI2SCFGR_PLLI2SR_Pos))) #else /** @brief Macro to configure the PLLI2S clock multiplication and division factors . * @note This macro must be used only when the PLLI2S is disabled. * @note PLLI2S clock source is common with the main PLL (configured in * HAL_RCC_ClockConfig() API). * @param __PLLI2SN__ specifies the multiplication factor for PLLI2S VCO output clock * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLI2SR__ specifies the division factor for I2S clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz * on the I2S clock frequency. * */ #define __HAL_RCC_PLLI2S_CONFIG(__PLLI2SN__, __PLLI2SR__) \ (RCC->PLLI2SCFGR = (((__PLLI2SN__) << RCC_PLLI2SCFGR_PLLI2SN_Pos) |\ ((__PLLI2SR__) << RCC_PLLI2SCFGR_PLLI2SR_Pos))) #endif /* STM32F446xx */ #if defined(STM32F411xE) /** @brief Macro to configure the PLLI2S clock multiplication and division factors . * @note This macro must be used only when the PLLI2S is disabled. * @note This macro must be used only when the PLLI2S is disabled. * @note PLLI2S clock source is common with the main PLL (configured in * HAL_RCC_ClockConfig() API). * @param __PLLI2SM__ specifies the division factor for PLLI2S VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note The PLLI2SM parameter is only used with STM32F411xE/STM32F410xx Devices * @note You have to set the PLLI2SM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 2 MHz to limit PLLI2S jitter. * @param __PLLI2SN__ specifies the multiplication factor for PLLI2S VCO output clock * This parameter must be a number between Min_Data = 192 and Max_Data = 432. * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 192 and Max_Data = 432 MHz. * @param __PLLI2SR__ specifies the division factor for I2S clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz * on the I2S clock frequency. */ #define __HAL_RCC_PLLI2S_I2SCLK_CONFIG(__PLLI2SM__, __PLLI2SN__, __PLLI2SR__) (RCC->PLLI2SCFGR = ((__PLLI2SM__) |\ ((__PLLI2SN__) << RCC_PLLI2SCFGR_PLLI2SN_Pos) |\ ((__PLLI2SR__) << RCC_PLLI2SCFGR_PLLI2SR_Pos))) #endif /* STM32F411xE */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro used by the SAI HAL driver to configure the PLLI2S clock multiplication and division factors. * @note This macro must be used only when the PLLI2S is disabled. * @note PLLI2S clock source is common with the main PLL (configured in * HAL_RCC_ClockConfig() API) * @param __PLLI2SN__ specifies the multiplication factor for PLLI2S VCO output clock. * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * @param __PLLI2SQ__ specifies the division factor for SAI1 clock. * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * @note the PLLI2SQ parameter is only available with STM32F427xx/437xx/429xx/439xx/469xx/479xx * Devices and can be configured using the __HAL_RCC_PLLI2S_PLLSAICLK_CONFIG() macro * @param __PLLI2SR__ specifies the division factor for I2S clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz * on the I2S clock frequency. */ #define __HAL_RCC_PLLI2S_SAICLK_CONFIG(__PLLI2SN__, __PLLI2SQ__, __PLLI2SR__) (RCC->PLLI2SCFGR = ((__PLLI2SN__) << 6U) |\ ((__PLLI2SQ__) << 24U) |\ ((__PLLI2SR__) << 28U)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*------------------------------ PLLSAI Configuration ------------------------*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macros to Enable or Disable the PLLISAI. * @note The PLLSAI is only available with STM32F429x/439x Devices. * @note The PLLSAI is disabled by hardware when entering STOP and STANDBY modes. */ #define __HAL_RCC_PLLSAI_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLSAION_BB = ENABLE) #define __HAL_RCC_PLLSAI_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLSAION_BB = DISABLE) #if defined(STM32F446xx) /** @brief Macro to configure the PLLSAI clock multiplication and division factors. * * @param __PLLSAIM__ specifies the division factor for PLLSAI VCO input clock * This parameter must be a number between Min_Data = 2 and Max_Data = 63. * @note You have to set the PLLSAIM parameter correctly to ensure that the VCO input * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency * of 1 MHz to limit PLLI2S jitter. * @note The PLLSAIM parameter is only used with STM32F446xx Devices * * @param __PLLSAIN__ specifies the multiplication factor for PLLSAI VCO output clock. * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLSAIN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLSAIP__ specifies division factor for OTG FS, SDIO and RNG clocks. * This parameter must be a number in the range {2, 4, 6, or 8}. * @note the PLLSAIP parameter is only available with STM32F446xx Devices * * @param __PLLSAIQ__ specifies the division factor for SAI clock * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * * @param __PLLSAIR__ specifies the division factor for LTDC clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note the PLLI2SR parameter is only available with STM32F427/437/429/439xx Devices */ #define __HAL_RCC_PLLSAI_CONFIG(__PLLSAIM__, __PLLSAIN__, __PLLSAIP__, __PLLSAIQ__, __PLLSAIR__) \ (RCC->PLLSAICFGR = ((__PLLSAIM__) | \ ((__PLLSAIN__) << RCC_PLLSAICFGR_PLLSAIN_Pos) | \ ((((__PLLSAIP__) >> 1U) -1U) << RCC_PLLSAICFGR_PLLSAIP_Pos) | \ ((__PLLSAIQ__) << RCC_PLLSAICFGR_PLLSAIQ_Pos))) #endif /* STM32F446xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro to configure the PLLSAI clock multiplication and division factors. * * @param __PLLSAIN__ specifies the multiplication factor for PLLSAI VCO output clock. * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLSAIN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLSAIP__ specifies division factor for SDIO and CLK48 clocks. * This parameter must be a number in the range {2, 4, 6, or 8}. * * @param __PLLSAIQ__ specifies the division factor for SAI clock * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * * @param __PLLSAIR__ specifies the division factor for LTDC clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. */ #define __HAL_RCC_PLLSAI_CONFIG(__PLLSAIN__, __PLLSAIP__, __PLLSAIQ__, __PLLSAIR__) \ (RCC->PLLSAICFGR = (((__PLLSAIN__) << RCC_PLLSAICFGR_PLLSAIN_Pos) |\ ((((__PLLSAIP__) >> 1U) -1U) << RCC_PLLSAICFGR_PLLSAIP_Pos) |\ ((__PLLSAIQ__) << RCC_PLLSAICFGR_PLLSAIQ_Pos) |\ ((__PLLSAIR__) << RCC_PLLSAICFGR_PLLSAIR_Pos))) #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) /** @brief Macro to configure the PLLSAI clock multiplication and division factors. * * @param __PLLSAIN__ specifies the multiplication factor for PLLSAI VCO output clock. * This parameter must be a number between Min_Data = 50 and Max_Data = 432. * @note You have to set the PLLSAIN parameter correctly to ensure that the VCO * output frequency is between Min_Data = 100 and Max_Data = 432 MHz. * * @param __PLLSAIQ__ specifies the division factor for SAI clock * This parameter must be a number between Min_Data = 2 and Max_Data = 15. * * @param __PLLSAIR__ specifies the division factor for LTDC clock * This parameter must be a number between Min_Data = 2 and Max_Data = 7. * @note the PLLI2SR parameter is only available with STM32F427/437/429/439xx Devices */ #define __HAL_RCC_PLLSAI_CONFIG(__PLLSAIN__, __PLLSAIQ__, __PLLSAIR__) \ (RCC->PLLSAICFGR = (((__PLLSAIN__) << RCC_PLLSAICFGR_PLLSAIN_Pos) | \ ((__PLLSAIQ__) << RCC_PLLSAICFGR_PLLSAIQ_Pos) | \ ((__PLLSAIR__) << RCC_PLLSAICFGR_PLLSAIR_Pos))) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*------------------- PLLSAI/PLLI2S Dividers Configuration -------------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the SAI clock Divider coming from PLLI2S. * @note This function must be called before enabling the PLLI2S. * @param __PLLI2SDivR__ specifies the PLLI2S division factor for SAI1 clock. * This parameter must be a number between 1 and 32. * SAI1 clock frequency = f(PLLI2SR) / __PLLI2SDivR__ */ #define __HAL_RCC_PLLI2S_PLLSAICLKDIVR_CONFIG(__PLLI2SDivR__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_PLLI2SDIVR, (__PLLI2SDivR__)-1U)) /** @brief Macro to configure the SAI clock Divider coming from PLL. * @param __PLLDivR__ specifies the PLL division factor for SAI1 clock. * This parameter must be a number between 1 and 32. * SAI1 clock frequency = f(PLLR) / __PLLDivR__ */ #define __HAL_RCC_PLL_PLLSAICLKDIVR_CONFIG(__PLLDivR__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_PLLDIVR, ((__PLLDivR__)-1U)<<8U)) #endif /* STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro to configure the SAI clock Divider coming from PLLI2S. * @note This function must be called before enabling the PLLI2S. * @param __PLLI2SDivQ__ specifies the PLLI2S division factor for SAI1 clock. * This parameter must be a number between 1 and 32. * SAI1 clock frequency = f(PLLI2SQ) / __PLLI2SDivQ__ */ #define __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(__PLLI2SDivQ__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_PLLI2SDIVQ, (__PLLI2SDivQ__)-1U)) /** @brief Macro to configure the SAI clock Divider coming from PLLSAI. * @note This function must be called before enabling the PLLSAI. * @param __PLLSAIDivQ__ specifies the PLLSAI division factor for SAI1 clock . * This parameter must be a number between Min_Data = 1 and Max_Data = 32. * SAI1 clock frequency = f(PLLSAIQ) / __PLLSAIDivQ__ */ #define __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(__PLLSAIDivQ__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_PLLSAIDIVQ, ((__PLLSAIDivQ__)-1U)<<8U)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro to configure the LTDC clock Divider coming from PLLSAI. * * @note The LTDC peripheral is only available with STM32F427/437/429/439/469/479xx Devices. * @note This function must be called before enabling the PLLSAI. * @param __PLLSAIDivR__ specifies the PLLSAI division factor for LTDC clock . * This parameter must be a number between Min_Data = 2 and Max_Data = 16. * LTDC clock frequency = f(PLLSAIR) / __PLLSAIDivR__ */ #define __HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(__PLLSAIDivR__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_PLLSAIDIVR, (__PLLSAIDivR__))) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /*----------------------------------------------------------------------------*/ /*------------------------- Peripheral Clock selection -----------------------*/ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F469xx) ||\ defined(STM32F479xx) /** @brief Macro to configure the I2S clock source (I2SCLK). * @note This function must be called before enabling the I2S APB clock. * @param __SOURCE__ specifies the I2S clock source. * This parameter can be one of the following values: * @arg RCC_I2SCLKSOURCE_PLLI2S: PLLI2S clock used as I2S clock source. * @arg RCC_I2SCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin * used as I2S clock source. */ #define __HAL_RCC_I2S_CONFIG(__SOURCE__) (*(__IO uint32_t *) RCC_CFGR_I2SSRC_BB = (__SOURCE__)) /** @brief Macro to get the I2S clock source (I2SCLK). * @retval The clock source can be one of the following values: * @arg @ref RCC_I2SCLKSOURCE_PLLI2S: PLLI2S clock used as I2S clock source. * @arg @ref RCC_I2SCLKSOURCE_EXT External clock mapped on the I2S_CKIN pin * used as I2S clock source */ #define __HAL_RCC_GET_I2S_SOURCE() ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_I2SSRC))) #endif /* STM32F40xxx || STM32F41xxx || STM32F42xxx || STM32F43xxx || STM32F469xx || STM32F479xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro to configure SAI1BlockA clock source selection. * @note The SAI peripheral is only available with STM32F427/437/429/439/469/479xx Devices. * @note This function must be called before enabling PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI Block A clock source. * This parameter can be one of the following values: * @arg RCC_SAIACLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used * as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used * as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_Ext: External clock mapped on the I2S_CKIN pin * used as SAI1 Block A clock. */ #define __HAL_RCC_SAI_BLOCKACLKSOURCE_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI1ASRC, (__SOURCE__))) /** @brief Macro to configure SAI1BlockB clock source selection. * @note The SAI peripheral is only available with STM32F427/437/429/439/469/479xx Devices. * @note This function must be called before enabling PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI Block B clock source. * This parameter can be one of the following values: * @arg RCC_SAIBCLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used * as SAI1 Block B clock. * @arg RCC_SAIBCLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used * as SAI1 Block B clock. * @arg RCC_SAIBCLKSOURCE_Ext: External clock mapped on the I2S_CKIN pin * used as SAI1 Block B clock. */ #define __HAL_RCC_SAI_BLOCKBCLKSOURCE_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI1BSRC, (__SOURCE__))) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F446xx) /** @brief Macro to configure SAI1 clock source selection. * @note This configuration is only available with STM32F446xx Devices. * @note This function must be called before enabling PLL, PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI1 clock source. * This parameter can be one of the following values: * @arg RCC_SAI1CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as SAI1 clock. */ #define __HAL_RCC_SAI1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI1SRC, (__SOURCE__))) /** @brief Macro to Get SAI1 clock source selection. * @note This configuration is only available with STM32F446xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_SAI1CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI1 clock. * @arg RCC_SAI1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as SAI1 clock. */ #define __HAL_RCC_GET_SAI1_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI1SRC)) /** @brief Macro to configure SAI2 clock source selection. * @note This configuration is only available with STM32F446xx Devices. * @note This function must be called before enabling PLL, PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI2 clock source. * This parameter can be one of the following values: * @arg RCC_SAI2CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL Source clock used as SAI2 clock. */ #define __HAL_RCC_SAI2_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC, (__SOURCE__))) /** @brief Macro to Get SAI2 clock source selection. * @note This configuration is only available with STM32F446xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_SAI2CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI2 clock. * @arg RCC_SAI2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL Source clock used as SAI2 clock. */ #define __HAL_RCC_GET_SAI2_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC)) /** @brief Macro to configure I2S APB1 clock source selection. * @note This function must be called before enabling PLL, PLLI2S and the I2S clock. * @param __SOURCE__ specifies the I2S APB1 clock source. * This parameter can be one of the following values: * @arg RCC_I2SAPB1CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR used as I2S clock. * @arg RCC_I2SAPB1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as I2S APB1 clock. * @arg RCC_I2SAPB1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as I2S APB1 clock. * @arg RCC_I2SAPB1CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_I2S_APB1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_I2S1SRC, (__SOURCE__))) /** @brief Macro to Get I2S APB1 clock source selection. * @retval The clock source can be one of the following values: * @arg RCC_I2SAPB1CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR used as I2S clock. * @arg RCC_I2SAPB1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as I2S APB1 clock. * @arg RCC_I2SAPB1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as I2S APB1 clock. * @arg RCC_I2SAPB1CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_I2S_APB1_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_I2S1SRC)) /** @brief Macro to configure I2S APB2 clock source selection. * @note This function must be called before enabling PLL, PLLI2S and the I2S clock. * @param __SOURCE__ specifies the SAI Block A clock source. * This parameter can be one of the following values: * @arg RCC_I2SAPB2CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR used as I2S clock. * @arg RCC_I2SAPB2CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as I2S APB2 clock. * @arg RCC_I2SAPB2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as I2S APB2 clock. * @arg RCC_I2SAPB2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_I2S_APB2_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_I2S2SRC, (__SOURCE__))) /** @brief Macro to Get I2S APB2 clock source selection. * @retval The clock source can be one of the following values: * @arg RCC_I2SAPB2CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR used as I2S clock. * @arg RCC_I2SAPB2CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as I2S APB2 clock. * @arg RCC_I2SAPB2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as I2S APB2 clock. * @arg RCC_I2SAPB2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_I2S_APB2_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_I2S2SRC)) /** @brief Macro to configure the CEC clock. * @param __SOURCE__ specifies the CEC clock source. * This parameter can be one of the following values: * @arg RCC_CECCLKSOURCE_HSI: HSI selected as CEC clock * @arg RCC_CECCLKSOURCE_LSE: LSE selected as CEC clock */ #define __HAL_RCC_CEC_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CECSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the CEC clock. * @retval The clock source can be one of the following values: * @arg RCC_CECCLKSOURCE_HSI488: HSI selected as CEC clock * @arg RCC_CECCLKSOURCE_LSE: LSE selected as CEC clock */ #define __HAL_RCC_GET_CEC_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_CECSEL)) /** @brief Macro to configure the FMPI2C1 clock. * @param __SOURCE__ specifies the FMPI2C1 clock source. * This parameter can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_FMPI2C1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the FMPI2C1 clock. * @retval The clock source can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_GET_FMPI2C1_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL)) /** @brief Macro to configure the CLK48 clock. * @param __SOURCE__ specifies the CLK48 clock source. * This parameter can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLSAIP: PLLSAI VCO Output divided by PLLSAIP used as CLK48 clock. */ #define __HAL_RCC_CLK48_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the CLK48 clock. * @retval The clock source can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLSAIP: PLLSAI VCO Output divided by PLLSAIP used as CLK48 clock. */ #define __HAL_RCC_GET_CLK48_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL)) /** @brief Macro to configure the SDIO clock. * @param __SOURCE__ specifies the SDIO clock source. * This parameter can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_SDIO_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_SDIOSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the SDIO clock. * @retval The clock source can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_GET_SDIO_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_SDIOSEL)) /** @brief Macro to configure the SPDIFRX clock. * @param __SOURCE__ specifies the SPDIFRX clock source. * This parameter can be one of the following values: * @arg RCC_SPDIFRXCLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SPDIFRX clock. * @arg RCC_SPDIFRXCLKSOURCE_PLLI2SP: PLLI2S VCO Output divided by PLLI2SP used as SPDIFRX clock. */ #define __HAL_RCC_SPDIFRX_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_SPDIFRXSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the SPDIFRX clock. * @retval The clock source can be one of the following values: * @arg RCC_SPDIFRXCLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SPDIFRX clock. * @arg RCC_SPDIFRXCLKSOURCE_PLLI2SP: PLLI2S VCO Output divided by PLLI2SP used as SPDIFRX clock. */ #define __HAL_RCC_GET_SPDIFRX_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_SPDIFRXSEL)) #endif /* STM32F446xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /** @brief Macro to configure the CLK48 clock. * @param __SOURCE__ specifies the CLK48 clock source. * This parameter can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLSAIP: PLLSAI VCO Output divided by PLLSAIP used as CLK48 clock. */ #define __HAL_RCC_CLK48_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_CK48MSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the CLK48 clock. * @retval The clock source can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLSAIP: PLLSAI VCO Output divided by PLLSAIP used as CLK48 clock. */ #define __HAL_RCC_GET_CLK48_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_CK48MSEL)) /** @brief Macro to configure the SDIO clock. * @param __SOURCE__ specifies the SDIO clock source. * This parameter can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_SDIO_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SDIOSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the SDIO clock. * @retval The clock source can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_GET_SDIO_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SDIOSEL)) /** @brief Macro to configure the DSI clock. * @param __SOURCE__ specifies the DSI clock source. * This parameter can be one of the following values: * @arg RCC_DSICLKSOURCE_PLLR: PLLR output used as DSI clock. * @arg RCC_DSICLKSOURCE_DSIPHY: DSI-PHY output used as DSI clock. */ #define __HAL_RCC_DSI_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_DSISEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the DSI clock. * @retval The clock source can be one of the following values: * @arg RCC_DSICLKSOURCE_PLLR: PLLR output used as DSI clock. * @arg RCC_DSICLKSOURCE_DSIPHY: DSI-PHY output used as DSI clock. */ #define __HAL_RCC_GET_DSI_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_DSISEL)) #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the DFSDM1 clock. * @param __DFSDM1_CLKSOURCE__ specifies the DFSDM1 clock source. * This parameter can be one of the following values: * @arg RCC_DFSDM1CLKSOURCE_PCLK2: PCLK2 clock used as kernel clock. * @arg RCC_DFSDM1CLKSOURCE_SYSCLK: System clock used as kernel clock. * @retval None */ #define __HAL_RCC_DFSDM1_CONFIG(__DFSDM1_CLKSOURCE__) MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1SEL, (__DFSDM1_CLKSOURCE__)) /** @brief Macro to get the DFSDM1 clock source. * @retval The clock source can be one of the following values: * @arg RCC_DFSDM1CLKSOURCE_PCLK2: PCLK2 clock used as kernel clock. * @arg RCC_DFSDM1CLKSOURCE_SYSCLK: System clock used as kernel clock. */ #define __HAL_RCC_GET_DFSDM1_SOURCE() ((uint32_t)(READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1SEL))) /** @brief Macro to configure DFSDM1 Audio clock source selection. * @note This configuration is only available with STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx/ STM32F413xx/STM32F423xx Devices. * @param __SOURCE__ specifies the DFSDM1 Audio clock source. * This parameter can be one of the following values: * @arg RCC_DFSDM1AUDIOCLKSOURCE_I2S1: CK_I2S_PCLK1 selected as audio clock * @arg RCC_DFSDM1AUDIOCLKSOURCE_I2S2: CK_I2S_PCLK2 selected as audio clock */ #define __HAL_RCC_DFSDM1AUDIO_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1ASEL, (__SOURCE__))) /** @brief Macro to Get DFSDM1 Audio clock source selection. * @note This configuration is only available with STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx/ STM32F413xx/STM32F423xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_DFSDM1AUDIOCLKSOURCE_I2S1: CK_I2S_PCLK1 selected as audio clock * @arg RCC_DFSDM1AUDIOCLKSOURCE_I2S2: CK_I2S_PCLK2 selected as audio clock */ #define __HAL_RCC_GET_DFSDM1AUDIO_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1ASEL)) #if defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the DFSDM2 clock. * @param __DFSDM2_CLKSOURCE__ specifies the DFSDM1 clock source. * This parameter can be one of the following values: * @arg RCC_DFSDM2CLKSOURCE_PCLK2: PCLK2 clock used as kernel clock. * @arg RCC_DFSDM2CLKSOURCE_SYSCLK: System clock used as kernel clock. * @retval None */ #define __HAL_RCC_DFSDM2_CONFIG(__DFSDM2_CLKSOURCE__) MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1SEL, (__DFSDM2_CLKSOURCE__)) /** @brief Macro to get the DFSDM2 clock source. * @retval The clock source can be one of the following values: * @arg RCC_DFSDM2CLKSOURCE_PCLK2: PCLK2 clock used as kernel clock. * @arg RCC_DFSDM2CLKSOURCE_SYSCLK: System clock used as kernel clock. */ #define __HAL_RCC_GET_DFSDM2_SOURCE() ((uint32_t)(READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM1SEL))) /** @brief Macro to configure DFSDM1 Audio clock source selection. * @note This configuration is only available with STM32F413xx/STM32F423xx Devices. * @param __SOURCE__ specifies the DFSDM2 Audio clock source. * This parameter can be one of the following values: * @arg RCC_DFSDM2AUDIOCLKSOURCE_I2S1: CK_I2S_PCLK1 selected as audio clock * @arg RCC_DFSDM2AUDIOCLKSOURCE_I2S2: CK_I2S_PCLK2 selected as audio clock */ #define __HAL_RCC_DFSDM2AUDIO_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM2ASEL, (__SOURCE__))) /** @brief Macro to Get DFSDM2 Audio clock source selection. * @note This configuration is only available with STM32F413xx/STM32F423xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_DFSDM2AUDIOCLKSOURCE_I2S1: CK_I2S_PCLK1 selected as audio clock * @arg RCC_DFSDM2AUDIOCLKSOURCE_I2S2: CK_I2S_PCLK2 selected as audio clock */ #define __HAL_RCC_GET_DFSDM2AUDIO_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_CKDFSDM2ASEL)) /** @brief Macro to configure SAI1BlockA clock source selection. * @note The SAI peripheral is only available with STM32F413xx/STM32F423xx Devices. * @note This function must be called before enabling PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI Block A clock source. * This parameter can be one of the following values: * @arg RCC_SAIACLKSOURCE_PLLI2SR: PLLI2S_R clock divided (R2) used as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_EXT: External clock mapped on the I2S_CKIN pinused as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_PLLR: PLL_R clock divided (R1) used as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_SAI_BLOCKACLKSOURCE_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI1ASRC, (__SOURCE__))) /** @brief Macro to Get SAI1 BlockA clock source selection. * @note This configuration is only available with STM32F413xx/STM32F423xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_SAIACLKSOURCE_PLLI2SR: PLLI2S_R clock divided (R2) used as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_EXT: External clock mapped on the I2S_CKIN pinused as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_PLLR: PLL_R clock divided (R1) used as SAI1 Block A clock. * @arg RCC_SAIACLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_SAI_BLOCKA_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI1ASRC)) /** @brief Macro to configure SAI1 BlockB clock source selection. * @note The SAI peripheral is only available with STM32F413xx/STM32F423xx Devices. * @note This function must be called before enabling PLLSAI, PLLI2S and * the SAI clock. * @param __SOURCE__ specifies the SAI Block B clock source. * This parameter can be one of the following values: * @arg RCC_SAIBCLKSOURCE_PLLI2SR: PLLI2S_R clock divided (R2) used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_PLLR: PLL_R clock divided (R1) used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_SAI_BLOCKBCLKSOURCE_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI1BSRC, (__SOURCE__))) /** @brief Macro to Get SAI1 BlockB clock source selection. * @note This configuration is only available with STM32F413xx/STM32F423xx Devices. * @retval The clock source can be one of the following values: * @arg RCC_SAIBCLKSOURCE_PLLI2SR: PLLI2S_R clock divided (R2) used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_PLLR: PLL_R clock divided (R1) used as SAI1 Block A clock. * @arg RCC_SAIBCLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_SAI_BLOCKB_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_SAI1BSRC)) /** @brief Macro to configure the LPTIM1 clock. * @param __SOURCE__ specifies the LPTIM1 clock source. * This parameter can be one of the following values: * @arg RCC_LPTIM1CLKSOURCE_PCLK1: PCLK selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_HSI: HSI clock selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock */ #define __HAL_RCC_LPTIM1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the LPTIM1 clock. * @retval The clock source can be one of the following values: * @arg RCC_LPTIM1CLKSOURCE_PCLK1: PCLK selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_HSI: HSI clock selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock */ #define __HAL_RCC_GET_LPTIM1_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL)) #endif /* STM32F413xx || STM32F423xx */ /** @brief Macro to configure I2S APB1 clock source selection. * @param __SOURCE__ specifies the I2S APB1 clock source. * This parameter can be one of the following values: * @arg RCC_I2SAPB1CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR. * @arg RCC_I2SAPB1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPB1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR. * @arg RCC_I2SAPB1CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_I2S_APB1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_I2S1SRC, (__SOURCE__))) /** @brief Macro to Get I2S APB1 clock source selection. * @retval The clock source can be one of the following values: * @arg RCC_I2SAPB1CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR. * @arg RCC_I2SAPB1CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPB1CLKSOURCE_PLLR: PLL VCO Output divided by PLLR. * @arg RCC_I2SAPB1CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_I2S_APB1_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_I2S1SRC)) /** @brief Macro to configure I2S APB2 clock source selection. * @param __SOURCE__ specifies the I2S APB2 clock source. * This parameter can be one of the following values: * @arg RCC_I2SAPB2CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR. * @arg RCC_I2SAPB2CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPB2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR. * @arg RCC_I2SAPB2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_I2S_APB2_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_I2S2SRC, (__SOURCE__))) /** @brief Macro to Get I2S APB2 clock source selection. * @retval The clock source can be one of the following values: * @arg RCC_I2SAPB2CLKSOURCE_PLLI2S: PLLI2S VCO output clock divided by PLLI2SR. * @arg RCC_I2SAPB2CLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPB2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR. * @arg RCC_I2SAPB2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. */ #define __HAL_RCC_GET_I2S_APB2_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_I2S2SRC)) /** @brief Macro to configure the PLL I2S clock source (PLLI2SCLK). * @note This macro must be called before enabling the I2S APB clock. * @param __SOURCE__ specifies the I2S clock source. * This parameter can be one of the following values: * @arg RCC_PLLI2SCLKSOURCE_PLLSRC: HSI or HSE depending from PLL source Clock. * @arg RCC_PLLI2SCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin * used as I2S clock source. */ #define __HAL_RCC_PLL_I2S_CONFIG(__SOURCE__) (*(__IO uint32_t *) RCC_PLLI2SCFGR_PLLI2SSRC_BB = (__SOURCE__)) /** @brief Macro to configure the FMPI2C1 clock. * @param __SOURCE__ specifies the FMPI2C1 clock source. * This parameter can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_FMPI2C1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the FMPI2C1 clock. * @retval The clock source can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_GET_FMPI2C1_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL)) /** @brief Macro to configure the CLK48 clock. * @param __SOURCE__ specifies the CLK48 clock source. * This parameter can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLI2SQ: PLLI2S VCO Output divided by PLLI2SQ used as CLK48 clock. */ #define __HAL_RCC_CLK48_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the CLK48 clock. * @retval The clock source can be one of the following values: * @arg RCC_CLK48CLKSOURCE_PLLQ: PLL VCO Output divided by PLLQ used as CLK48 clock. * @arg RCC_CLK48CLKSOURCE_PLLI2SQ: PLLI2S VCO Output divided by PLLI2SQ used as CLK48 clock */ #define __HAL_RCC_GET_CLK48_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_CK48MSEL)) /** @brief Macro to configure the SDIO clock. * @param __SOURCE__ specifies the SDIO clock source. * This parameter can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_SDIO_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_SDIOSEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the SDIO clock. * @retval The clock source can be one of the following values: * @arg RCC_SDIOCLKSOURCE_CLK48: CLK48 output used as SDIO clock. * @arg RCC_SDIOCLKSOURCE_SYSCLK: System clock output used as SDIO clock. */ #define __HAL_RCC_GET_SDIO_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_SDIOSEL)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** @brief Macro to configure I2S clock source selection. * @param __SOURCE__ specifies the I2S clock source. * This parameter can be one of the following values: * @arg RCC_I2SAPBCLKSOURCE_PLLR: PLL VCO output clock divided by PLLR. * @arg RCC_I2SAPBCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPBCLKSOURCE_PLLSRC: HSI/HSE depends on PLLSRC. */ #define __HAL_RCC_I2S_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_I2SSRC, (__SOURCE__))) /** @brief Macro to Get I2S clock source selection. * @retval The clock source can be one of the following values: * @arg RCC_I2SAPBCLKSOURCE_PLLR: PLL VCO output clock divided by PLLR. * @arg RCC_I2SAPBCLKSOURCE_EXT: External clock mapped on the I2S_CKIN pin. * @arg RCC_I2SAPBCLKSOURCE_PLLSRC: HSI/HSE depends on PLLSRC. */ #define __HAL_RCC_GET_I2S_SOURCE() (READ_BIT(RCC->DCKCFGR, RCC_DCKCFGR_I2SSRC)) /** @brief Macro to configure the FMPI2C1 clock. * @param __SOURCE__ specifies the FMPI2C1 clock source. * This parameter can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_FMPI2C1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the FMPI2C1 clock. * @retval The clock source can be one of the following values: * @arg RCC_FMPI2C1CLKSOURCE_PCLK1: PCLK1 selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_SYSCLK: SYS clock selected as FMPI2C1 clock * @arg RCC_FMPI2C1CLKSOURCE_HSI: HSI selected as FMPI2C1 clock */ #define __HAL_RCC_GET_FMPI2C1_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_FMPI2C1SEL)) /** @brief Macro to configure the LPTIM1 clock. * @param __SOURCE__ specifies the LPTIM1 clock source. * This parameter can be one of the following values: * @arg RCC_LPTIM1CLKSOURCE_PCLK1: PCLK1 selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_HSI: HSI clock selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock */ #define __HAL_RCC_LPTIM1_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL, (uint32_t)(__SOURCE__))) /** @brief Macro to Get the LPTIM1 clock. * @retval The clock source can be one of the following values: * @arg RCC_LPTIM1CLKSOURCE_PCLK1: PCLK1 selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_HSI: HSI clock selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI selected as LPTIM1 clock * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock */ #define __HAL_RCC_GET_LPTIM1_SOURCE() (READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** @brief Macro to configure the Timers clocks prescalers * @note This feature is only available with STM32F429x/439x Devices. * @param __PRESC__ specifies the Timers clocks prescalers selection * This parameter can be one of the following values: * @arg RCC_TIMPRES_DESACTIVATED: The Timers kernels clocks prescaler is * equal to HPRE if PPREx is corresponding to division by 1 or 2, * else it is equal to [(HPRE * PPREx) / 2] if PPREx is corresponding to * division by 4 or more. * @arg RCC_TIMPRES_ACTIVATED: The Timers kernels clocks prescaler is * equal to HPRE if PPREx is corresponding to division by 1, 2 or 4, * else it is equal to [(HPRE * PPREx) / 4] if PPREx is corresponding * to division by 8 or more. */ #define __HAL_RCC_TIMCLKPRESCALER(__PRESC__) (*(__IO uint32_t *) RCC_DCKCFGR_TIMPRE_BB = (__PRESC__)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx) || STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE ||\ STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx ||\ STM32F423xx */ /*----------------------------------------------------------------------------*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /** @brief Enable PLLSAI_RDY interrupt. */ #define __HAL_RCC_PLLSAI_ENABLE_IT() (RCC->CIR |= (RCC_CIR_PLLSAIRDYIE)) /** @brief Disable PLLSAI_RDY interrupt. */ #define __HAL_RCC_PLLSAI_DISABLE_IT() (RCC->CIR &= ~(RCC_CIR_PLLSAIRDYIE)) /** @brief Clear the PLLSAI RDY interrupt pending bits. */ #define __HAL_RCC_PLLSAI_CLEAR_IT() (RCC->CIR |= (RCC_CIR_PLLSAIRDYF)) /** @brief Check the PLLSAI RDY interrupt has occurred or not. * @retval The new state (TRUE or FALSE). */ #define __HAL_RCC_PLLSAI_GET_IT() ((RCC->CIR & (RCC_CIR_PLLSAIRDYIE)) == (RCC_CIR_PLLSAIRDYIE)) /** @brief Check PLLSAI RDY flag is set or not. * @retval The new state (TRUE or FALSE). */ #define __HAL_RCC_PLLSAI_GET_FLAG() ((RCC->CR & (RCC_CR_PLLSAIRDY)) == (RCC_CR_PLLSAIRDY)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** @brief Macros to enable or disable the RCC MCO1 feature. */ #define __HAL_RCC_MCO1_ENABLE() (*(__IO uint32_t *) RCC_CFGR_MCO1EN_BB = ENABLE) #define __HAL_RCC_MCO1_DISABLE() (*(__IO uint32_t *) RCC_CFGR_MCO1EN_BB = DISABLE) /** @brief Macros to enable or disable the RCC MCO2 feature. */ #define __HAL_RCC_MCO2_ENABLE() (*(__IO uint32_t *) RCC_CFGR_MCO2EN_BB = ENABLE) #define __HAL_RCC_MCO2_DISABLE() (*(__IO uint32_t *) RCC_CFGR_MCO2EN_BB = DISABLE) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup RCCEx_Exported_Functions * @{ */ /** @addtogroup RCCEx_Exported_Functions_Group1 * @{ */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit); void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit); uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk); #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) void HAL_RCCEx_SelectLSEMode(uint8_t Mode); #endif /* STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(RCC_PLLI2S_SUPPORT) HAL_StatusTypeDef HAL_RCCEx_EnablePLLI2S(RCC_PLLI2SInitTypeDef *PLLI2SInit); HAL_StatusTypeDef HAL_RCCEx_DisablePLLI2S(void); #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_PLLSAI_SUPPORT) HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI(RCC_PLLSAIInitTypeDef *PLLSAIInit); HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI(void); #endif /* RCC_PLLSAI_SUPPORT */ /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup RCCEx_Private_Constants RCCEx Private Constants * @{ */ /** @defgroup RCCEx_BitAddress_AliasRegion RCC BitAddress AliasRegion * @brief RCC registers bit address in the alias region * @{ */ /* --- CR Register ---*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /* Alias word address of PLLSAION bit */ #define RCC_PLLSAION_BIT_NUMBER 0x1CU #define RCC_CR_PLLSAION_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLSAION_BIT_NUMBER * 4U)) #define PLLSAI_TIMEOUT_VALUE 2U /* Timeout value fixed to 2 ms */ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Alias word address of PLLI2SON bit */ #define RCC_PLLI2SON_BIT_NUMBER 0x1AU #define RCC_CR_PLLI2SON_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLI2SON_BIT_NUMBER * 4U)) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /* --- DCKCFGR Register ---*/ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F401xC) ||\ defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Alias word address of TIMPRE bit */ #define RCC_DCKCFGR_OFFSET (RCC_OFFSET + 0x8CU) #define RCC_TIMPRE_BIT_NUMBER 0x18U #define RCC_DCKCFGR_TIMPRE_BB (PERIPH_BB_BASE + (RCC_DCKCFGR_OFFSET * 32U) + (RCC_TIMPRE_BIT_NUMBER * 4U)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F410xx || STM32F401xC ||\ STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx ||\ STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /* --- CFGR Register ---*/ #define RCC_CFGR_OFFSET (RCC_OFFSET + 0x08U) #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) /* Alias word address of I2SSRC bit */ #define RCC_I2SSRC_BIT_NUMBER 0x17U #define RCC_CFGR_I2SSRC_BB (PERIPH_BB_BASE + (RCC_CFGR_OFFSET * 32U) + (RCC_I2SSRC_BIT_NUMBER * 4U)) #define PLLI2S_TIMEOUT_VALUE 2U /* Timeout value fixed to 2 ms */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) /* --- PLLI2SCFGR Register ---*/ #define RCC_PLLI2SCFGR_OFFSET (RCC_OFFSET + 0x84U) /* Alias word address of PLLI2SSRC bit */ #define RCC_PLLI2SSRC_BIT_NUMBER 0x16U #define RCC_PLLI2SCFGR_PLLI2SSRC_BB (PERIPH_BB_BASE + (RCC_PLLI2SCFGR_OFFSET * 32U) + (RCC_PLLI2SSRC_BIT_NUMBER * 4U)) #define PLLI2S_TIMEOUT_VALUE 2U /* Timeout value fixed to 2 ms */ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx | STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /* Alias word address of MCO1EN bit */ #define RCC_MCO1EN_BIT_NUMBER 0x8U #define RCC_CFGR_MCO1EN_BB (PERIPH_BB_BASE + (RCC_CFGR_OFFSET * 32U) + (RCC_MCO1EN_BIT_NUMBER * 4U)) /* Alias word address of MCO2EN bit */ #define RCC_MCO2EN_BIT_NUMBER 0x9U #define RCC_CFGR_MCO2EN_BB (PERIPH_BB_BASE + (RCC_CFGR_OFFSET * 32U) + (RCC_MCO2EN_BIT_NUMBER * 4U)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #define PLL_TIMEOUT_VALUE 2U /* 2 ms */ /** * @} */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup RCCEx_Private_Macros RCCEx Private Macros * @{ */ /** @defgroup RCCEx_IS_RCC_Definitions RCC Private macros to check input parameters * @{ */ #define IS_RCC_PLLN_VALUE(VALUE) ((50U <= (VALUE)) && ((VALUE) <= 432U)) #define IS_RCC_PLLI2SN_VALUE(VALUE) ((50U <= (VALUE)) && ((VALUE) <= 432U)) #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x0000007FU)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x00000007U)) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x0000000FU)) #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x0000001FU)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F446xx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x00000FFFU)) #endif /* STM32F446xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x000001FFU)) #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x000003FFU)) #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #if defined(STM32F413xx) || defined(STM32F423xx) #define IS_RCC_PERIPHCLOCK(SELECTION) ((1U <= (SELECTION)) && ((SELECTION) <= 0x00007FFFU)) #endif /* STM32F413xx || STM32F423xx */ #define IS_RCC_PLLI2SR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define IS_RCC_PLLI2SQ_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 15U)) #define IS_RCC_PLLSAIN_VALUE(VALUE) ((50U <= (VALUE)) && ((VALUE) <= 432U)) #define IS_RCC_PLLSAIQ_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 15U)) #define IS_RCC_PLLSAIR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #define IS_RCC_PLLSAI_DIVQ_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 32U)) #define IS_RCC_PLLI2S_DIVQ_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 32U)) #define IS_RCC_PLLSAI_DIVR_VALUE(VALUE) (((VALUE) == RCC_PLLSAIDIVR_2) ||\ ((VALUE) == RCC_PLLSAIDIVR_4) ||\ ((VALUE) == RCC_PLLSAIDIVR_8) ||\ ((VALUE) == RCC_PLLSAIDIVR_16)) #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ #if defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) #define IS_RCC_PLLI2SM_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 63U)) #define IS_RCC_LSE_MODE(MODE) (((MODE) == RCC_LSE_LOWPOWER_MODE) ||\ ((MODE) == RCC_LSE_HIGHDRIVE_MODE)) #endif /* STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_RCC_PLLR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #define IS_RCC_LSE_MODE(MODE) (((MODE) == RCC_LSE_LOWPOWER_MODE) ||\ ((MODE) == RCC_LSE_HIGHDRIVE_MODE)) #define IS_RCC_FMPI2C1CLKSOURCE(SOURCE) (((SOURCE) == RCC_FMPI2C1CLKSOURCE_PCLK1) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_SYSCLK) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_HSI)) #define IS_RCC_LPTIM1CLKSOURCE(SOURCE) (((SOURCE) == RCC_LPTIM1CLKSOURCE_PCLK1) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_HSI) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSI) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSE)) #define IS_RCC_I2SAPBCLKSOURCE(SOURCE) (((SOURCE) == RCC_I2SAPBCLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_I2SAPBCLKSOURCE_EXT) ||\ ((SOURCE) == RCC_I2SAPBCLKSOURCE_PLLSRC)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F446xx) #define IS_RCC_PLLR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #define IS_RCC_PLLI2SP_VALUE(VALUE) (((VALUE) == RCC_PLLI2SP_DIV2) ||\ ((VALUE) == RCC_PLLI2SP_DIV4) ||\ ((VALUE) == RCC_PLLI2SP_DIV6) ||\ ((VALUE) == RCC_PLLI2SP_DIV8)) #define IS_RCC_PLLSAIM_VALUE(VALUE) ((VALUE) <= 63U) #define IS_RCC_PLLSAIP_VALUE(VALUE) (((VALUE) == RCC_PLLSAIP_DIV2) ||\ ((VALUE) == RCC_PLLSAIP_DIV4) ||\ ((VALUE) == RCC_PLLSAIP_DIV6) ||\ ((VALUE) == RCC_PLLSAIP_DIV8)) #define IS_RCC_SAI1CLKSOURCE(SOURCE) (((SOURCE) == RCC_SAI1CLKSOURCE_PLLSAI) ||\ ((SOURCE) == RCC_SAI1CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_SAI1CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_SAI1CLKSOURCE_EXT)) #define IS_RCC_SAI2CLKSOURCE(SOURCE) (((SOURCE) == RCC_SAI2CLKSOURCE_PLLSAI) ||\ ((SOURCE) == RCC_SAI2CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_SAI2CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_SAI2CLKSOURCE_PLLSRC)) #define IS_RCC_I2SAPB1CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_EXT) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLSRC)) #define IS_RCC_I2SAPB2CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_EXT) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLSRC)) #define IS_RCC_FMPI2C1CLKSOURCE(SOURCE) (((SOURCE) == RCC_FMPI2C1CLKSOURCE_PCLK1) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_SYSCLK) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_HSI)) #define IS_RCC_CECCLKSOURCE(SOURCE) (((SOURCE) == RCC_CECCLKSOURCE_HSI) ||\ ((SOURCE) == RCC_CECCLKSOURCE_LSE)) #define IS_RCC_CLK48CLKSOURCE(SOURCE) (((SOURCE) == RCC_CLK48CLKSOURCE_PLLQ) ||\ ((SOURCE) == RCC_CLK48CLKSOURCE_PLLSAIP)) #define IS_RCC_SDIOCLKSOURCE(SOURCE) (((SOURCE) == RCC_SDIOCLKSOURCE_CLK48) ||\ ((SOURCE) == RCC_SDIOCLKSOURCE_SYSCLK)) #define IS_RCC_SPDIFRXCLKSOURCE(SOURCE) (((SOURCE) == RCC_SPDIFRXCLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_SPDIFRXCLKSOURCE_PLLI2SP)) #endif /* STM32F446xx */ #if defined(STM32F469xx) || defined(STM32F479xx) #define IS_RCC_PLLR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #define IS_RCC_PLLSAIP_VALUE(VALUE) (((VALUE) == RCC_PLLSAIP_DIV2) ||\ ((VALUE) == RCC_PLLSAIP_DIV4) ||\ ((VALUE) == RCC_PLLSAIP_DIV6) ||\ ((VALUE) == RCC_PLLSAIP_DIV8)) #define IS_RCC_CLK48CLKSOURCE(SOURCE) (((SOURCE) == RCC_CLK48CLKSOURCE_PLLQ) ||\ ((SOURCE) == RCC_CLK48CLKSOURCE_PLLSAIP)) #define IS_RCC_SDIOCLKSOURCE(SOURCE) (((SOURCE) == RCC_SDIOCLKSOURCE_CLK48) ||\ ((SOURCE) == RCC_SDIOCLKSOURCE_SYSCLK)) #define IS_RCC_DSIBYTELANECLKSOURCE(SOURCE) (((SOURCE) == RCC_DSICLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_DSICLKSOURCE_DSIPHY)) #define IS_RCC_LSE_MODE(MODE) (((MODE) == RCC_LSE_LOWPOWER_MODE) ||\ ((MODE) == RCC_LSE_HIGHDRIVE_MODE)) #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) #define IS_RCC_PLLI2SQ_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 15U)) #define IS_RCC_PLLR_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 7U)) #define IS_RCC_PLLI2SCLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_PLLI2SCLKSOURCE_PLLSRC) || \ ((__SOURCE__) == RCC_PLLI2SCLKSOURCE_EXT)) #define IS_RCC_I2SAPB1CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_EXT) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_I2SAPB1CLKSOURCE_PLLSRC)) #define IS_RCC_I2SAPB2CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLI2S) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_EXT) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_I2SAPB2CLKSOURCE_PLLSRC)) #define IS_RCC_FMPI2C1CLKSOURCE(SOURCE) (((SOURCE) == RCC_FMPI2C1CLKSOURCE_PCLK1) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_SYSCLK) ||\ ((SOURCE) == RCC_FMPI2C1CLKSOURCE_HSI)) #define IS_RCC_CLK48CLKSOURCE(SOURCE) (((SOURCE) == RCC_CLK48CLKSOURCE_PLLQ) ||\ ((SOURCE) == RCC_CLK48CLKSOURCE_PLLI2SQ)) #define IS_RCC_SDIOCLKSOURCE(SOURCE) (((SOURCE) == RCC_SDIOCLKSOURCE_CLK48) ||\ ((SOURCE) == RCC_SDIOCLKSOURCE_SYSCLK)) #define IS_RCC_DFSDM1CLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_DFSDM1CLKSOURCE_PCLK2) || \ ((__SOURCE__) == RCC_DFSDM1CLKSOURCE_SYSCLK)) #define IS_RCC_DFSDM1AUDIOCLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_DFSDM1AUDIOCLKSOURCE_I2S1) || \ ((__SOURCE__) == RCC_DFSDM1AUDIOCLKSOURCE_I2S2)) #if defined(STM32F413xx) || defined(STM32F423xx) #define IS_RCC_DFSDM2CLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_DFSDM2CLKSOURCE_PCLK2) || \ ((__SOURCE__) == RCC_DFSDM2CLKSOURCE_SYSCLK)) #define IS_RCC_DFSDM2AUDIOCLKSOURCE(__SOURCE__) (((__SOURCE__) == RCC_DFSDM2AUDIOCLKSOURCE_I2S1) || \ ((__SOURCE__) == RCC_DFSDM2AUDIOCLKSOURCE_I2S2)) #define IS_RCC_LPTIM1CLKSOURCE(SOURCE) (((SOURCE) == RCC_LPTIM1CLKSOURCE_PCLK1) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_HSI) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSI) ||\ ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSE)) #define IS_RCC_SAIACLKSOURCE(SOURCE) (((SOURCE) == RCC_SAIACLKSOURCE_PLLI2SR) ||\ ((SOURCE) == RCC_SAIACLKSOURCE_EXT) ||\ ((SOURCE) == RCC_SAIACLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_SAIACLKSOURCE_PLLSRC)) #define IS_RCC_SAIBCLKSOURCE(SOURCE) (((SOURCE) == RCC_SAIBCLKSOURCE_PLLI2SR) ||\ ((SOURCE) == RCC_SAIBCLKSOURCE_EXT) ||\ ((SOURCE) == RCC_SAIBCLKSOURCE_PLLR) ||\ ((SOURCE) == RCC_SAIBCLKSOURCE_PLLSRC)) #define IS_RCC_PLL_DIVR_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 32U)) #define IS_RCC_PLLI2S_DIVR_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 32U)) #endif /* STM32F413xx || STM32F423xx */ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \ defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \ defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F413xx) || defined(STM32F423xx) #define IS_RCC_MCO2SOURCE(SOURCE) (((SOURCE) == RCC_MCO2SOURCE_SYSCLK) || ((SOURCE) == RCC_MCO2SOURCE_PLLI2SCLK)|| \ ((SOURCE) == RCC_MCO2SOURCE_HSE) || ((SOURCE) == RCC_MCO2SOURCE_PLLCLK)) #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || \ STM32F412Rx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) #define IS_RCC_MCO2SOURCE(SOURCE) (((SOURCE) == RCC_MCO2SOURCE_SYSCLK) || ((SOURCE) == RCC_MCO2SOURCE_I2SCLK)|| \ ((SOURCE) == RCC_MCO2SOURCE_HSE) || ((SOURCE) == RCC_MCO2SOURCE_PLLCLK)) #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_RCC_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_spi.h * @author MCD Application Team * @brief Header file of SPI HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_SPI_H #define STM32F4xx_HAL_SPI_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup SPI * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup SPI_Exported_Types SPI Exported Types * @{ */ /** * @brief SPI Configuration Structure definition */ typedef struct { uint32_t Mode; /*!< Specifies the SPI operating mode. This parameter can be a value of @ref SPI_Mode */ uint32_t Direction; /*!< Specifies the SPI bidirectional mode state. This parameter can be a value of @ref SPI_Direction */ uint32_t DataSize; /*!< Specifies the SPI data size. This parameter can be a value of @ref SPI_Data_Size */ uint32_t CLKPolarity; /*!< Specifies the serial clock steady state. This parameter can be a value of @ref SPI_Clock_Polarity */ uint32_t CLKPhase; /*!< Specifies the clock active edge for the bit capture. This parameter can be a value of @ref SPI_Clock_Phase */ uint32_t NSS; /*!< Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of @ref SPI_Slave_Select_management */ uint32_t BaudRatePrescaler; /*!< Specifies the Baud Rate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of @ref SPI_BaudRate_Prescaler @note The communication clock is derived from the master clock. The slave clock does not need to be set. */ uint32_t FirstBit; /*!< Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of @ref SPI_MSB_LSB_transmission */ uint32_t TIMode; /*!< Specifies if the TI mode is enabled or not. This parameter can be a value of @ref SPI_TI_mode */ uint32_t CRCCalculation; /*!< Specifies if the CRC calculation is enabled or not. This parameter can be a value of @ref SPI_CRC_Calculation */ uint32_t CRCPolynomial; /*!< Specifies the polynomial used for the CRC calculation. This parameter must be an odd number between Min_Data = 1 and Max_Data = 65535 */ } SPI_InitTypeDef; /** * @brief HAL SPI State structure definition */ typedef enum { HAL_SPI_STATE_RESET = 0x00U, /*!< Peripheral not Initialized */ HAL_SPI_STATE_READY = 0x01U, /*!< Peripheral Initialized and ready for use */ HAL_SPI_STATE_BUSY = 0x02U, /*!< an internal process is ongoing */ HAL_SPI_STATE_BUSY_TX = 0x03U, /*!< Data Transmission process is ongoing */ HAL_SPI_STATE_BUSY_RX = 0x04U, /*!< Data Reception process is ongoing */ HAL_SPI_STATE_BUSY_TX_RX = 0x05U, /*!< Data Transmission and Reception process is ongoing */ HAL_SPI_STATE_ERROR = 0x06U, /*!< SPI error state */ HAL_SPI_STATE_ABORT = 0x07U /*!< SPI abort is ongoing */ } HAL_SPI_StateTypeDef; /** * @brief SPI handle Structure definition */ typedef struct __SPI_HandleTypeDef { SPI_TypeDef *Instance; /*!< SPI registers base address */ SPI_InitTypeDef Init; /*!< SPI communication parameters */ uint8_t *pTxBuffPtr; /*!< Pointer to SPI Tx transfer Buffer */ uint16_t TxXferSize; /*!< SPI Tx Transfer size */ __IO uint16_t TxXferCount; /*!< SPI Tx Transfer Counter */ uint8_t *pRxBuffPtr; /*!< Pointer to SPI Rx transfer Buffer */ uint16_t RxXferSize; /*!< SPI Rx Transfer size */ __IO uint16_t RxXferCount; /*!< SPI Rx Transfer Counter */ void (*RxISR)(struct __SPI_HandleTypeDef *hspi); /*!< function pointer on Rx ISR */ void (*TxISR)(struct __SPI_HandleTypeDef *hspi); /*!< function pointer on Tx ISR */ DMA_HandleTypeDef *hdmatx; /*!< SPI Tx DMA Handle parameters */ DMA_HandleTypeDef *hdmarx; /*!< SPI Rx DMA Handle parameters */ HAL_LockTypeDef Lock; /*!< Locking object */ __IO HAL_SPI_StateTypeDef State; /*!< SPI communication state */ __IO uint32_t ErrorCode; /*!< SPI Error code */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) void (* TxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Tx Completed callback */ void (* RxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Rx Completed callback */ void (* TxRxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI TxRx Completed callback */ void (* TxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Tx Half Completed callback */ void (* RxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Rx Half Completed callback */ void (* TxRxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI TxRx Half Completed callback */ void (* ErrorCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Error callback */ void (* AbortCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Abort callback */ void (* MspInitCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Msp Init callback */ void (* MspDeInitCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Msp DeInit callback */ #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } SPI_HandleTypeDef; #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) /** * @brief HAL SPI Callback ID enumeration definition */ typedef enum { HAL_SPI_TX_COMPLETE_CB_ID = 0x00U, /*!< SPI Tx Completed callback ID */ HAL_SPI_RX_COMPLETE_CB_ID = 0x01U, /*!< SPI Rx Completed callback ID */ HAL_SPI_TX_RX_COMPLETE_CB_ID = 0x02U, /*!< SPI TxRx Completed callback ID */ HAL_SPI_TX_HALF_COMPLETE_CB_ID = 0x03U, /*!< SPI Tx Half Completed callback ID */ HAL_SPI_RX_HALF_COMPLETE_CB_ID = 0x04U, /*!< SPI Rx Half Completed callback ID */ HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID = 0x05U, /*!< SPI TxRx Half Completed callback ID */ HAL_SPI_ERROR_CB_ID = 0x06U, /*!< SPI Error callback ID */ HAL_SPI_ABORT_CB_ID = 0x07U, /*!< SPI Abort callback ID */ HAL_SPI_MSPINIT_CB_ID = 0x08U, /*!< SPI Msp Init callback ID */ HAL_SPI_MSPDEINIT_CB_ID = 0x09U /*!< SPI Msp DeInit callback ID */ } HAL_SPI_CallbackIDTypeDef; /** * @brief HAL SPI Callback pointer definition */ typedef void (*pSPI_CallbackTypeDef)(SPI_HandleTypeDef *hspi); /*!< pointer to an SPI callback function */ #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup SPI_Exported_Constants SPI Exported Constants * @{ */ /** @defgroup SPI_Error_Code SPI Error Code * @{ */ #define HAL_SPI_ERROR_NONE (0x00000000U) /*!< No error */ #define HAL_SPI_ERROR_MODF (0x00000001U) /*!< MODF error */ #define HAL_SPI_ERROR_CRC (0x00000002U) /*!< CRC error */ #define HAL_SPI_ERROR_OVR (0x00000004U) /*!< OVR error */ #define HAL_SPI_ERROR_FRE (0x00000008U) /*!< FRE error */ #define HAL_SPI_ERROR_DMA (0x00000010U) /*!< DMA transfer error */ #define HAL_SPI_ERROR_FLAG (0x00000020U) /*!< Error on RXNE/TXE/BSY Flag */ #define HAL_SPI_ERROR_ABORT (0x00000040U) /*!< Error during SPI Abort procedure */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) #define HAL_SPI_ERROR_INVALID_CALLBACK (0x00000080U) /*!< Invalid Callback error */ #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup SPI_Mode SPI Mode * @{ */ #define SPI_MODE_SLAVE (0x00000000U) #define SPI_MODE_MASTER (SPI_CR1_MSTR | SPI_CR1_SSI) /** * @} */ /** @defgroup SPI_Direction SPI Direction Mode * @{ */ #define SPI_DIRECTION_2LINES (0x00000000U) #define SPI_DIRECTION_2LINES_RXONLY SPI_CR1_RXONLY #define SPI_DIRECTION_1LINE SPI_CR1_BIDIMODE /** * @} */ /** @defgroup SPI_Data_Size SPI Data Size * @{ */ #define SPI_DATASIZE_8BIT (0x00000000U) #define SPI_DATASIZE_16BIT SPI_CR1_DFF /** * @} */ /** @defgroup SPI_Clock_Polarity SPI Clock Polarity * @{ */ #define SPI_POLARITY_LOW (0x00000000U) #define SPI_POLARITY_HIGH SPI_CR1_CPOL /** * @} */ /** @defgroup SPI_Clock_Phase SPI Clock Phase * @{ */ #define SPI_PHASE_1EDGE (0x00000000U) #define SPI_PHASE_2EDGE SPI_CR1_CPHA /** * @} */ /** @defgroup SPI_Slave_Select_management SPI Slave Select Management * @{ */ #define SPI_NSS_SOFT SPI_CR1_SSM #define SPI_NSS_HARD_INPUT (0x00000000U) #define SPI_NSS_HARD_OUTPUT (SPI_CR2_SSOE << 16U) /** * @} */ /** @defgroup SPI_BaudRate_Prescaler SPI BaudRate Prescaler * @{ */ #define SPI_BAUDRATEPRESCALER_2 (0x00000000U) #define SPI_BAUDRATEPRESCALER_4 (SPI_CR1_BR_0) #define SPI_BAUDRATEPRESCALER_8 (SPI_CR1_BR_1) #define SPI_BAUDRATEPRESCALER_16 (SPI_CR1_BR_1 | SPI_CR1_BR_0) #define SPI_BAUDRATEPRESCALER_32 (SPI_CR1_BR_2) #define SPI_BAUDRATEPRESCALER_64 (SPI_CR1_BR_2 | SPI_CR1_BR_0) #define SPI_BAUDRATEPRESCALER_128 (SPI_CR1_BR_2 | SPI_CR1_BR_1) #define SPI_BAUDRATEPRESCALER_256 (SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_BR_0) /** * @} */ /** @defgroup SPI_MSB_LSB_transmission SPI MSB LSB Transmission * @{ */ #define SPI_FIRSTBIT_MSB (0x00000000U) #define SPI_FIRSTBIT_LSB SPI_CR1_LSBFIRST /** * @} */ /** @defgroup SPI_TI_mode SPI TI Mode * @{ */ #define SPI_TIMODE_DISABLE (0x00000000U) #define SPI_TIMODE_ENABLE SPI_CR2_FRF /** * @} */ /** @defgroup SPI_CRC_Calculation SPI CRC Calculation * @{ */ #define SPI_CRCCALCULATION_DISABLE (0x00000000U) #define SPI_CRCCALCULATION_ENABLE SPI_CR1_CRCEN /** * @} */ /** @defgroup SPI_Interrupt_definition SPI Interrupt Definition * @{ */ #define SPI_IT_TXE SPI_CR2_TXEIE #define SPI_IT_RXNE SPI_CR2_RXNEIE #define SPI_IT_ERR SPI_CR2_ERRIE /** * @} */ /** @defgroup SPI_Flags_definition SPI Flags Definition * @{ */ #define SPI_FLAG_RXNE SPI_SR_RXNE /* SPI status flag: Rx buffer not empty flag */ #define SPI_FLAG_TXE SPI_SR_TXE /* SPI status flag: Tx buffer empty flag */ #define SPI_FLAG_BSY SPI_SR_BSY /* SPI status flag: Busy flag */ #define SPI_FLAG_CRCERR SPI_SR_CRCERR /* SPI Error flag: CRC error flag */ #define SPI_FLAG_MODF SPI_SR_MODF /* SPI Error flag: Mode fault flag */ #define SPI_FLAG_OVR SPI_SR_OVR /* SPI Error flag: Overrun flag */ #define SPI_FLAG_FRE SPI_SR_FRE /* SPI Error flag: TI mode frame format error flag */ #define SPI_FLAG_MASK (SPI_SR_RXNE | SPI_SR_TXE | SPI_SR_BSY | SPI_SR_CRCERR\ | SPI_SR_MODF | SPI_SR_OVR | SPI_SR_FRE) /** * @} */ /** * @} */ /* Exported macros -----------------------------------------------------------*/ /** @defgroup SPI_Exported_Macros SPI Exported Macros * @{ */ /** @brief Reset SPI handle state. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) #define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__) do{ \ (__HANDLE__)->State = HAL_SPI_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0) #else #define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SPI_STATE_RESET) #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ /** @brief Enable the specified SPI interrupts. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @param __INTERRUPT__ specifies the interrupt source to enable. * This parameter can be one of the following values: * @arg SPI_IT_TXE: Tx buffer empty interrupt enable * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable * @arg SPI_IT_ERR: Error interrupt enable * @retval None */ #define __HAL_SPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) /** @brief Disable the specified SPI interrupts. * @param __HANDLE__ specifies the SPI handle. * This parameter can be SPIx where x: 1, 2, or 3 to select the SPI peripheral. * @param __INTERRUPT__ specifies the interrupt source to disable. * This parameter can be one of the following values: * @arg SPI_IT_TXE: Tx buffer empty interrupt enable * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable * @arg SPI_IT_ERR: Error interrupt enable * @retval None */ #define __HAL_SPI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) /** @brief Check whether the specified SPI interrupt source is enabled or not. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @param __INTERRUPT__ specifies the SPI interrupt source to check. * This parameter can be one of the following values: * @arg SPI_IT_TXE: Tx buffer empty interrupt enable * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable * @arg SPI_IT_ERR: Error interrupt enable * @retval The new state of __IT__ (TRUE or FALSE). */ #define __HAL_SPI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2\ & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) /** @brief Check whether the specified SPI flag is set or not. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg SPI_FLAG_RXNE: Receive buffer not empty flag * @arg SPI_FLAG_TXE: Transmit buffer empty flag * @arg SPI_FLAG_CRCERR: CRC error flag * @arg SPI_FLAG_MODF: Mode fault flag * @arg SPI_FLAG_OVR: Overrun flag * @arg SPI_FLAG_BSY: Busy flag * @arg SPI_FLAG_FRE: Frame format error flag * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_SPI_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) /** @brief Clear the SPI CRCERR pending flag. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_CLEAR_CRCERRFLAG(__HANDLE__) ((__HANDLE__)->Instance->SR = (uint16_t)(~SPI_FLAG_CRCERR)) /** @brief Clear the SPI MODF pending flag. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_CLEAR_MODFFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg_modf = 0x00U; \ tmpreg_modf = (__HANDLE__)->Instance->SR; \ CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE); \ UNUSED(tmpreg_modf); \ } while(0U) /** @brief Clear the SPI OVR pending flag. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_CLEAR_OVRFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg_ovr = 0x00U; \ tmpreg_ovr = (__HANDLE__)->Instance->DR; \ tmpreg_ovr = (__HANDLE__)->Instance->SR; \ UNUSED(tmpreg_ovr); \ } while(0U) /** @brief Clear the SPI FRE pending flag. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_CLEAR_FREFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg_fre = 0x00U; \ tmpreg_fre = (__HANDLE__)->Instance->SR; \ UNUSED(tmpreg_fre); \ }while(0U) /** @brief Enable the SPI peripheral. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE) /** @brief Disable the SPI peripheral. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define __HAL_SPI_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE) /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup SPI_Private_Macros SPI Private Macros * @{ */ /** @brief Set the SPI transmit-only mode. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) /** @brief Set the SPI receive-only mode. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) /** @brief Reset the CRC calculation of the SPI. * @param __HANDLE__ specifies the SPI Handle. * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. * @retval None */ #define SPI_RESET_CRC(__HANDLE__) do{CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_CRCEN);\ SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_CRCEN);}while(0U) /** @brief Check whether the specified SPI flag is set or not. * @param __SR__ copy of SPI SR register. * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg SPI_FLAG_RXNE: Receive buffer not empty flag * @arg SPI_FLAG_TXE: Transmit buffer empty flag * @arg SPI_FLAG_CRCERR: CRC error flag * @arg SPI_FLAG_MODF: Mode fault flag * @arg SPI_FLAG_OVR: Overrun flag * @arg SPI_FLAG_BSY: Busy flag * @arg SPI_FLAG_FRE: Frame format error flag * @retval SET or RESET. */ #define SPI_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == \ ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) /** @brief Check whether the specified SPI Interrupt is set or not. * @param __CR2__ copy of SPI CR2 register. * @param __INTERRUPT__ specifies the SPI interrupt source to check. * This parameter can be one of the following values: * @arg SPI_IT_TXE: Tx buffer empty interrupt enable * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable * @arg SPI_IT_ERR: Error interrupt enable * @retval SET or RESET. */ #define SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == \ (__INTERRUPT__)) ? SET : RESET) /** @brief Checks if SPI Mode parameter is in allowed range. * @param __MODE__ specifies the SPI Mode. * This parameter can be a value of @ref SPI_Mode * @retval None */ #define IS_SPI_MODE(__MODE__) (((__MODE__) == SPI_MODE_SLAVE) || \ ((__MODE__) == SPI_MODE_MASTER)) /** @brief Checks if SPI Direction Mode parameter is in allowed range. * @param __MODE__ specifies the SPI Direction Mode. * This parameter can be a value of @ref SPI_Direction * @retval None */ #define IS_SPI_DIRECTION(__MODE__) (((__MODE__) == SPI_DIRECTION_2LINES) || \ ((__MODE__) == SPI_DIRECTION_2LINES_RXONLY) || \ ((__MODE__) == SPI_DIRECTION_1LINE)) /** @brief Checks if SPI Direction Mode parameter is 2 lines. * @param __MODE__ specifies the SPI Direction Mode. * @retval None */ #define IS_SPI_DIRECTION_2LINES(__MODE__) ((__MODE__) == SPI_DIRECTION_2LINES) /** @brief Checks if SPI Direction Mode parameter is 1 or 2 lines. * @param __MODE__ specifies the SPI Direction Mode. * @retval None */ #define IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) (((__MODE__) == SPI_DIRECTION_2LINES) || \ ((__MODE__) == SPI_DIRECTION_1LINE)) /** @brief Checks if SPI Data Size parameter is in allowed range. * @param __DATASIZE__ specifies the SPI Data Size. * This parameter can be a value of @ref SPI_Data_Size * @retval None */ #define IS_SPI_DATASIZE(__DATASIZE__) (((__DATASIZE__) == SPI_DATASIZE_16BIT) || \ ((__DATASIZE__) == SPI_DATASIZE_8BIT)) /** @brief Checks if SPI Serial clock steady state parameter is in allowed range. * @param __CPOL__ specifies the SPI serial clock steady state. * This parameter can be a value of @ref SPI_Clock_Polarity * @retval None */ #define IS_SPI_CPOL(__CPOL__) (((__CPOL__) == SPI_POLARITY_LOW) || \ ((__CPOL__) == SPI_POLARITY_HIGH)) /** @brief Checks if SPI Clock Phase parameter is in allowed range. * @param __CPHA__ specifies the SPI Clock Phase. * This parameter can be a value of @ref SPI_Clock_Phase * @retval None */ #define IS_SPI_CPHA(__CPHA__) (((__CPHA__) == SPI_PHASE_1EDGE) || \ ((__CPHA__) == SPI_PHASE_2EDGE)) /** @brief Checks if SPI Slave Select parameter is in allowed range. * @param __NSS__ specifies the SPI Slave Select management parameter. * This parameter can be a value of @ref SPI_Slave_Select_management * @retval None */ #define IS_SPI_NSS(__NSS__) (((__NSS__) == SPI_NSS_SOFT) || \ ((__NSS__) == SPI_NSS_HARD_INPUT) || \ ((__NSS__) == SPI_NSS_HARD_OUTPUT)) /** @brief Checks if SPI Baudrate prescaler parameter is in allowed range. * @param __PRESCALER__ specifies the SPI Baudrate prescaler. * This parameter can be a value of @ref SPI_BaudRate_Prescaler * @retval None */ #define IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) (((__PRESCALER__) == SPI_BAUDRATEPRESCALER_2) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_4) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_8) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_16) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_32) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_64) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_128) || \ ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_256)) /** @brief Checks if SPI MSB LSB transmission parameter is in allowed range. * @param __BIT__ specifies the SPI MSB LSB transmission (whether data transfer starts from MSB or LSB bit). * This parameter can be a value of @ref SPI_MSB_LSB_transmission * @retval None */ #define IS_SPI_FIRST_BIT(__BIT__) (((__BIT__) == SPI_FIRSTBIT_MSB) || \ ((__BIT__) == SPI_FIRSTBIT_LSB)) /** @brief Checks if SPI TI mode parameter is in allowed range. * @param __MODE__ specifies the SPI TI mode. * This parameter can be a value of @ref SPI_TI_mode * @retval None */ #define IS_SPI_TIMODE(__MODE__) (((__MODE__) == SPI_TIMODE_DISABLE) || \ ((__MODE__) == SPI_TIMODE_ENABLE)) /** @brief Checks if SPI CRC calculation enabled state is in allowed range. * @param __CALCULATION__ specifies the SPI CRC calculation enable state. * This parameter can be a value of @ref SPI_CRC_Calculation * @retval None */ #define IS_SPI_CRC_CALCULATION(__CALCULATION__) (((__CALCULATION__) == SPI_CRCCALCULATION_DISABLE) || \ ((__CALCULATION__) == SPI_CRCCALCULATION_ENABLE)) /** @brief Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. * @param __POLYNOMIAL__ specifies the SPI polynomial value to be used for the CRC calculation. * This parameter must be a number between Min_Data = 0 and Max_Data = 65535 * @retval None */ #define IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) (((__POLYNOMIAL__) >= 0x1U) && \ ((__POLYNOMIAL__) <= 0xFFFFU) && \ (((__POLYNOMIAL__)&0x1U) != 0U)) /** @brief Checks if DMA handle is valid. * @param __HANDLE__ specifies a DMA Handle. * @retval None */ #define IS_SPI_DMA_HANDLE(__HANDLE__) ((__HANDLE__) != NULL) /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup SPI_Exported_Functions * @{ */ /** @addtogroup SPI_Exported_Functions_Group1 * @{ */ /* Initialization/de-initialization functions ********************************/ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi); HAL_StatusTypeDef HAL_SPI_DeInit(SPI_HandleTypeDef *hspi); void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi); void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi); /* Callbacks Register/UnRegister functions ***********************************/ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) HAL_StatusTypeDef HAL_SPI_RegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID, pSPI_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_SPI_UnRegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ /** * @} */ /** @addtogroup SPI_Exported_Functions_Group2 * @{ */ /* I/O operation functions ***************************************************/ HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_SPI_Transmit_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_Receive_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size); HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi); HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi); HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi); /* Transfer Abort functions */ HAL_StatusTypeDef HAL_SPI_Abort(SPI_HandleTypeDef *hspi); HAL_StatusTypeDef HAL_SPI_Abort_IT(SPI_HandleTypeDef *hspi); void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi); void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi); void HAL_SPI_AbortCpltCallback(SPI_HandleTypeDef *hspi); /** * @} */ /** @addtogroup SPI_Exported_Functions_Group3 * @{ */ /* Peripheral State and Error functions ***************************************/ HAL_SPI_StateTypeDef HAL_SPI_GetState(SPI_HandleTypeDef *hspi); uint32_t HAL_SPI_GetError(SPI_HandleTypeDef *hspi); /** * @} */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_SPI_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_tim.h * @author MCD Application Team * @brief Header file of TIM HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_TIM_H #define STM32F4xx_HAL_TIM_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup TIM * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup TIM_Exported_Types TIM Exported Types * @{ */ /** * @brief TIM Time base Configuration Structure definition */ typedef struct { uint32_t Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ uint32_t CounterMode; /*!< Specifies the counter mode. This parameter can be a value of @ref TIM_Counter_Mode */ uint32_t Period; /*!< Specifies the period value to be loaded into the active Auto-Reload Register at the next update event. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t ClockDivision; /*!< Specifies the clock division. This parameter can be a value of @ref TIM_ClockDivision */ uint32_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter reaches zero, an update event is generated and counting restarts from the RCR value (N). This means in PWM mode that (N+1) corresponds to: - the number of PWM periods in edge-aligned mode - the number of half PWM period in center-aligned mode GP timers: this parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. Advanced timers: this parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ uint32_t AutoReloadPreload; /*!< Specifies the auto-reload preload. This parameter can be a value of @ref TIM_AutoReloadPreload */ } TIM_Base_InitTypeDef; /** * @brief TIM Output Compare Configuration Structure definition */ typedef struct { uint32_t OCMode; /*!< Specifies the TIM mode. This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ uint32_t Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ uint32_t OCPolarity; /*!< Specifies the output polarity. This parameter can be a value of @ref TIM_Output_Compare_Polarity */ uint32_t OCNPolarity; /*!< Specifies the complementary output polarity. This parameter can be a value of @ref TIM_Output_Compare_N_Polarity @note This parameter is valid only for timer instances supporting break feature. */ uint32_t OCFastMode; /*!< Specifies the Fast mode state. This parameter can be a value of @ref TIM_Output_Fast_State @note This parameter is valid only in PWM1 and PWM2 mode. */ uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_Idle_State @note This parameter is valid only for timer instances supporting break feature. */ uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State @note This parameter is valid only for timer instances supporting break feature. */ } TIM_OC_InitTypeDef; /** * @brief TIM One Pulse Mode Configuration Structure definition */ typedef struct { uint32_t OCMode; /*!< Specifies the TIM mode. This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ uint32_t Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ uint32_t OCPolarity; /*!< Specifies the output polarity. This parameter can be a value of @ref TIM_Output_Compare_Polarity */ uint32_t OCNPolarity; /*!< Specifies the complementary output polarity. This parameter can be a value of @ref TIM_Output_Compare_N_Polarity @note This parameter is valid only for timer instances supporting break feature. */ uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_Idle_State @note This parameter is valid only for timer instances supporting break feature. */ uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State @note This parameter is valid only for timer instances supporting break feature. */ uint32_t ICPolarity; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Input_Capture_Polarity */ uint32_t ICSelection; /*!< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection */ uint32_t ICFilter; /*!< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_OnePulse_InitTypeDef; /** * @brief TIM Input Capture Configuration Structure definition */ typedef struct { uint32_t ICPolarity; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Input_Capture_Polarity */ uint32_t ICSelection; /*!< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection */ uint32_t ICPrescaler; /*!< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ uint32_t ICFilter; /*!< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_IC_InitTypeDef; /** * @brief TIM Encoder Configuration Structure definition */ typedef struct { uint32_t EncoderMode; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Mode */ uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Input_Polarity */ uint32_t IC1Selection; /*!< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection */ uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ uint32_t IC1Filter; /*!< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ uint32_t IC2Polarity; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Input_Polarity */ uint32_t IC2Selection; /*!< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection */ uint32_t IC2Prescaler; /*!< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ uint32_t IC2Filter; /*!< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_Encoder_InitTypeDef; /** * @brief Clock Configuration Handle Structure definition */ typedef struct { uint32_t ClockSource; /*!< TIM clock sources This parameter can be a value of @ref TIM_Clock_Source */ uint32_t ClockPolarity; /*!< TIM clock polarity This parameter can be a value of @ref TIM_Clock_Polarity */ uint32_t ClockPrescaler; /*!< TIM clock prescaler This parameter can be a value of @ref TIM_Clock_Prescaler */ uint32_t ClockFilter; /*!< TIM clock filter This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_ClockConfigTypeDef; /** * @brief TIM Clear Input Configuration Handle Structure definition */ typedef struct { uint32_t ClearInputState; /*!< TIM clear Input state This parameter can be ENABLE or DISABLE */ uint32_t ClearInputSource; /*!< TIM clear Input sources This parameter can be a value of @ref TIM_ClearInput_Source */ uint32_t ClearInputPolarity; /*!< TIM Clear Input polarity This parameter can be a value of @ref TIM_ClearInput_Polarity */ uint32_t ClearInputPrescaler; /*!< TIM Clear Input prescaler This parameter must be 0: When OCRef clear feature is used with ETR source, ETR prescaler must be off */ uint32_t ClearInputFilter; /*!< TIM Clear Input filter This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_ClearInputConfigTypeDef; /** * @brief TIM Master configuration Structure definition */ typedef struct { uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection This parameter can be a value of @ref TIM_Master_Mode_Selection */ uint32_t MasterSlaveMode; /*!< Master/slave mode selection This parameter can be a value of @ref TIM_Master_Slave_Mode @note When the Master/slave mode is enabled, the effect of an event on the trigger input (TRGI) is delayed to allow a perfect synchronization between the current timer and its slaves (through TRGO). It is not mandatory in case of timer synchronization mode. */ } TIM_MasterConfigTypeDef; /** * @brief TIM Slave configuration Structure definition */ typedef struct { uint32_t SlaveMode; /*!< Slave mode selection This parameter can be a value of @ref TIM_Slave_Mode */ uint32_t InputTrigger; /*!< Input Trigger source This parameter can be a value of @ref TIM_Trigger_Selection */ uint32_t TriggerPolarity; /*!< Input Trigger polarity This parameter can be a value of @ref TIM_Trigger_Polarity */ uint32_t TriggerPrescaler; /*!< Input trigger prescaler This parameter can be a value of @ref TIM_Trigger_Prescaler */ uint32_t TriggerFilter; /*!< Input trigger filter This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ } TIM_SlaveConfigTypeDef; /** * @brief TIM Break input(s) and Dead time configuration Structure definition * @note 2 break inputs can be configured (BKIN and BKIN2) with configurable * filter and polarity. */ typedef struct { uint32_t OffStateRunMode; /*!< TIM off state in run mode This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ uint32_t LockLevel; /*!< TIM Lock level This parameter can be a value of @ref TIM_Lock_level */ uint32_t DeadTime; /*!< TIM dead Time This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */ uint32_t BreakState; /*!< TIM Break State This parameter can be a value of @ref TIM_Break_Input_enable_disable */ uint32_t BreakPolarity; /*!< TIM Break input polarity This parameter can be a value of @ref TIM_Break_Polarity */ uint32_t BreakFilter; /*!< Specifies the break input filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ } TIM_BreakDeadTimeConfigTypeDef; /** * @brief HAL State structures definition */ typedef enum { HAL_TIM_STATE_RESET = 0x00U, /*!< Peripheral not yet initialized or disabled */ HAL_TIM_STATE_READY = 0x01U, /*!< Peripheral Initialized and ready for use */ HAL_TIM_STATE_BUSY = 0x02U, /*!< An internal process is ongoing */ HAL_TIM_STATE_TIMEOUT = 0x03U, /*!< Timeout state */ HAL_TIM_STATE_ERROR = 0x04U /*!< Reception process is ongoing */ } HAL_TIM_StateTypeDef; /** * @brief TIM Channel States definition */ typedef enum { HAL_TIM_CHANNEL_STATE_RESET = 0x00U, /*!< TIM Channel initial state */ HAL_TIM_CHANNEL_STATE_READY = 0x01U, /*!< TIM Channel ready for use */ HAL_TIM_CHANNEL_STATE_BUSY = 0x02U, /*!< An internal process is ongoing on the TIM channel */ } HAL_TIM_ChannelStateTypeDef; /** * @brief DMA Burst States definition */ typedef enum { HAL_DMA_BURST_STATE_RESET = 0x00U, /*!< DMA Burst initial state */ HAL_DMA_BURST_STATE_READY = 0x01U, /*!< DMA Burst ready for use */ HAL_DMA_BURST_STATE_BUSY = 0x02U, /*!< Ongoing DMA Burst */ } HAL_TIM_DMABurstStateTypeDef; /** * @brief HAL Active channel structures definition */ typedef enum { HAL_TIM_ACTIVE_CHANNEL_1 = 0x01U, /*!< The active channel is 1 */ HAL_TIM_ACTIVE_CHANNEL_2 = 0x02U, /*!< The active channel is 2 */ HAL_TIM_ACTIVE_CHANNEL_3 = 0x04U, /*!< The active channel is 3 */ HAL_TIM_ACTIVE_CHANNEL_4 = 0x08U, /*!< The active channel is 4 */ HAL_TIM_ACTIVE_CHANNEL_CLEARED = 0x00U /*!< All active channels cleared */ } HAL_TIM_ActiveChannel; /** * @brief TIM Time Base Handle Structure definition */ #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) typedef struct __TIM_HandleTypeDef #else typedef struct #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ { TIM_TypeDef *Instance; /*!< Register base address */ TIM_Base_InitTypeDef Init; /*!< TIM Time Base required parameters */ HAL_TIM_ActiveChannel Channel; /*!< Active channel */ DMA_HandleTypeDef *hdma[7]; /*!< DMA Handlers array This array is accessed by a @ref DMA_Handle_index */ HAL_LockTypeDef Lock; /*!< Locking object */ __IO HAL_TIM_StateTypeDef State; /*!< TIM operation state */ __IO HAL_TIM_ChannelStateTypeDef ChannelState[4]; /*!< TIM channel operation state */ __IO HAL_TIM_ChannelStateTypeDef ChannelNState[4]; /*!< TIM complementary channel operation state */ __IO HAL_TIM_DMABurstStateTypeDef DMABurstState; /*!< DMA burst operation state */ #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) void (* Base_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Base Msp Init Callback */ void (* Base_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Base Msp DeInit Callback */ void (* IC_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM IC Msp Init Callback */ void (* IC_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM IC Msp DeInit Callback */ void (* OC_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM OC Msp Init Callback */ void (* OC_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM OC Msp DeInit Callback */ void (* PWM_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Msp Init Callback */ void (* PWM_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Msp DeInit Callback */ void (* OnePulse_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM One Pulse Msp Init Callback */ void (* OnePulse_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM One Pulse Msp DeInit Callback */ void (* Encoder_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Encoder Msp Init Callback */ void (* Encoder_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Encoder Msp DeInit Callback */ void (* HallSensor_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Hall Sensor Msp Init Callback */ void (* HallSensor_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Hall Sensor Msp DeInit Callback */ void (* PeriodElapsedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Period Elapsed Callback */ void (* PeriodElapsedHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Period Elapsed half complete Callback */ void (* TriggerCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Trigger Callback */ void (* TriggerHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Trigger half complete Callback */ void (* IC_CaptureCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Input Capture Callback */ void (* IC_CaptureHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Input Capture half complete Callback */ void (* OC_DelayElapsedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Output Compare Delay Elapsed Callback */ void (* PWM_PulseFinishedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Pulse Finished Callback */ void (* PWM_PulseFinishedHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Pulse Finished half complete Callback */ void (* ErrorCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Error Callback */ void (* CommutationCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Commutation Callback */ void (* CommutationHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Commutation half complete Callback */ void (* BreakCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Break Callback */ #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } TIM_HandleTypeDef; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /** * @brief HAL TIM Callback ID enumeration definition */ typedef enum { HAL_TIM_BASE_MSPINIT_CB_ID = 0x00U /*!< TIM Base MspInit Callback ID */ , HAL_TIM_BASE_MSPDEINIT_CB_ID = 0x01U /*!< TIM Base MspDeInit Callback ID */ , HAL_TIM_IC_MSPINIT_CB_ID = 0x02U /*!< TIM IC MspInit Callback ID */ , HAL_TIM_IC_MSPDEINIT_CB_ID = 0x03U /*!< TIM IC MspDeInit Callback ID */ , HAL_TIM_OC_MSPINIT_CB_ID = 0x04U /*!< TIM OC MspInit Callback ID */ , HAL_TIM_OC_MSPDEINIT_CB_ID = 0x05U /*!< TIM OC MspDeInit Callback ID */ , HAL_TIM_PWM_MSPINIT_CB_ID = 0x06U /*!< TIM PWM MspInit Callback ID */ , HAL_TIM_PWM_MSPDEINIT_CB_ID = 0x07U /*!< TIM PWM MspDeInit Callback ID */ , HAL_TIM_ONE_PULSE_MSPINIT_CB_ID = 0x08U /*!< TIM One Pulse MspInit Callback ID */ , HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID = 0x09U /*!< TIM One Pulse MspDeInit Callback ID */ , HAL_TIM_ENCODER_MSPINIT_CB_ID = 0x0AU /*!< TIM Encoder MspInit Callback ID */ , HAL_TIM_ENCODER_MSPDEINIT_CB_ID = 0x0BU /*!< TIM Encoder MspDeInit Callback ID */ , HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID = 0x0CU /*!< TIM Hall Sensor MspDeInit Callback ID */ , HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID = 0x0DU /*!< TIM Hall Sensor MspDeInit Callback ID */ , HAL_TIM_PERIOD_ELAPSED_CB_ID = 0x0EU /*!< TIM Period Elapsed Callback ID */ , HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID = 0x0FU /*!< TIM Period Elapsed half complete Callback ID */ , HAL_TIM_TRIGGER_CB_ID = 0x10U /*!< TIM Trigger Callback ID */ , HAL_TIM_TRIGGER_HALF_CB_ID = 0x11U /*!< TIM Trigger half complete Callback ID */ , HAL_TIM_IC_CAPTURE_CB_ID = 0x12U /*!< TIM Input Capture Callback ID */ , HAL_TIM_IC_CAPTURE_HALF_CB_ID = 0x13U /*!< TIM Input Capture half complete Callback ID */ , HAL_TIM_OC_DELAY_ELAPSED_CB_ID = 0x14U /*!< TIM Output Compare Delay Elapsed Callback ID */ , HAL_TIM_PWM_PULSE_FINISHED_CB_ID = 0x15U /*!< TIM PWM Pulse Finished Callback ID */ , HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID = 0x16U /*!< TIM PWM Pulse Finished half complete Callback ID */ , HAL_TIM_ERROR_CB_ID = 0x17U /*!< TIM Error Callback ID */ , HAL_TIM_COMMUTATION_CB_ID = 0x18U /*!< TIM Commutation Callback ID */ , HAL_TIM_COMMUTATION_HALF_CB_ID = 0x19U /*!< TIM Commutation half complete Callback ID */ , HAL_TIM_BREAK_CB_ID = 0x1AU /*!< TIM Break Callback ID */ } HAL_TIM_CallbackIDTypeDef; /** * @brief HAL TIM Callback pointer definition */ typedef void (*pTIM_CallbackTypeDef)(TIM_HandleTypeDef *htim); /*!< pointer to the TIM callback function */ #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @} */ /* End of exported types -----------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup TIM_Exported_Constants TIM Exported Constants * @{ */ /** @defgroup TIM_ClearInput_Source TIM Clear Input Source * @{ */ #define TIM_CLEARINPUTSOURCE_NONE 0x00000000U /*!< OCREF_CLR is disabled */ #define TIM_CLEARINPUTSOURCE_ETR 0x00000001U /*!< OCREF_CLR is connected to ETRF input */ /** * @} */ /** @defgroup TIM_DMA_Base_address TIM DMA Base Address * @{ */ #define TIM_DMABASE_CR1 0x00000000U #define TIM_DMABASE_CR2 0x00000001U #define TIM_DMABASE_SMCR 0x00000002U #define TIM_DMABASE_DIER 0x00000003U #define TIM_DMABASE_SR 0x00000004U #define TIM_DMABASE_EGR 0x00000005U #define TIM_DMABASE_CCMR1 0x00000006U #define TIM_DMABASE_CCMR2 0x00000007U #define TIM_DMABASE_CCER 0x00000008U #define TIM_DMABASE_CNT 0x00000009U #define TIM_DMABASE_PSC 0x0000000AU #define TIM_DMABASE_ARR 0x0000000BU #define TIM_DMABASE_RCR 0x0000000CU #define TIM_DMABASE_CCR1 0x0000000DU #define TIM_DMABASE_CCR2 0x0000000EU #define TIM_DMABASE_CCR3 0x0000000FU #define TIM_DMABASE_CCR4 0x00000010U #define TIM_DMABASE_BDTR 0x00000011U #define TIM_DMABASE_DCR 0x00000012U #define TIM_DMABASE_DMAR 0x00000013U /** * @} */ /** @defgroup TIM_Event_Source TIM Event Source * @{ */ #define TIM_EVENTSOURCE_UPDATE TIM_EGR_UG /*!< Reinitialize the counter and generates an update of the registers */ #define TIM_EVENTSOURCE_CC1 TIM_EGR_CC1G /*!< A capture/compare event is generated on channel 1 */ #define TIM_EVENTSOURCE_CC2 TIM_EGR_CC2G /*!< A capture/compare event is generated on channel 2 */ #define TIM_EVENTSOURCE_CC3 TIM_EGR_CC3G /*!< A capture/compare event is generated on channel 3 */ #define TIM_EVENTSOURCE_CC4 TIM_EGR_CC4G /*!< A capture/compare event is generated on channel 4 */ #define TIM_EVENTSOURCE_COM TIM_EGR_COMG /*!< A commutation event is generated */ #define TIM_EVENTSOURCE_TRIGGER TIM_EGR_TG /*!< A trigger event is generated */ #define TIM_EVENTSOURCE_BREAK TIM_EGR_BG /*!< A break event is generated */ /** * @} */ /** @defgroup TIM_Input_Channel_Polarity TIM Input Channel polarity * @{ */ #define TIM_INPUTCHANNELPOLARITY_RISING 0x00000000U /*!< Polarity for TIx source */ #define TIM_INPUTCHANNELPOLARITY_FALLING TIM_CCER_CC1P /*!< Polarity for TIx source */ #define TIM_INPUTCHANNELPOLARITY_BOTHEDGE (TIM_CCER_CC1P | TIM_CCER_CC1NP) /*!< Polarity for TIx source */ /** * @} */ /** @defgroup TIM_ETR_Polarity TIM ETR Polarity * @{ */ #define TIM_ETRPOLARITY_INVERTED TIM_SMCR_ETP /*!< Polarity for ETR source */ #define TIM_ETRPOLARITY_NONINVERTED 0x00000000U /*!< Polarity for ETR source */ /** * @} */ /** @defgroup TIM_ETR_Prescaler TIM ETR Prescaler * @{ */ #define TIM_ETRPRESCALER_DIV1 0x00000000U /*!< No prescaler is used */ #define TIM_ETRPRESCALER_DIV2 TIM_SMCR_ETPS_0 /*!< ETR input source is divided by 2 */ #define TIM_ETRPRESCALER_DIV4 TIM_SMCR_ETPS_1 /*!< ETR input source is divided by 4 */ #define TIM_ETRPRESCALER_DIV8 TIM_SMCR_ETPS /*!< ETR input source is divided by 8 */ /** * @} */ /** @defgroup TIM_Counter_Mode TIM Counter Mode * @{ */ #define TIM_COUNTERMODE_UP 0x00000000U /*!< Counter used as up-counter */ #define TIM_COUNTERMODE_DOWN TIM_CR1_DIR /*!< Counter used as down-counter */ #define TIM_COUNTERMODE_CENTERALIGNED1 TIM_CR1_CMS_0 /*!< Center-aligned mode 1 */ #define TIM_COUNTERMODE_CENTERALIGNED2 TIM_CR1_CMS_1 /*!< Center-aligned mode 2 */ #define TIM_COUNTERMODE_CENTERALIGNED3 TIM_CR1_CMS /*!< Center-aligned mode 3 */ /** * @} */ /** @defgroup TIM_ClockDivision TIM Clock Division * @{ */ #define TIM_CLOCKDIVISION_DIV1 0x00000000U /*!< Clock division: tDTS=tCK_INT */ #define TIM_CLOCKDIVISION_DIV2 TIM_CR1_CKD_0 /*!< Clock division: tDTS=2*tCK_INT */ #define TIM_CLOCKDIVISION_DIV4 TIM_CR1_CKD_1 /*!< Clock division: tDTS=4*tCK_INT */ /** * @} */ /** @defgroup TIM_Output_Compare_State TIM Output Compare State * @{ */ #define TIM_OUTPUTSTATE_DISABLE 0x00000000U /*!< Capture/Compare 1 output disabled */ #define TIM_OUTPUTSTATE_ENABLE TIM_CCER_CC1E /*!< Capture/Compare 1 output enabled */ /** * @} */ /** @defgroup TIM_AutoReloadPreload TIM Auto-Reload Preload * @{ */ #define TIM_AUTORELOAD_PRELOAD_DISABLE 0x00000000U /*!< TIMx_ARR register is not buffered */ #define TIM_AUTORELOAD_PRELOAD_ENABLE TIM_CR1_ARPE /*!< TIMx_ARR register is buffered */ /** * @} */ /** @defgroup TIM_Output_Fast_State TIM Output Fast State * @{ */ #define TIM_OCFAST_DISABLE 0x00000000U /*!< Output Compare fast disable */ #define TIM_OCFAST_ENABLE TIM_CCMR1_OC1FE /*!< Output Compare fast enable */ /** * @} */ /** @defgroup TIM_Output_Compare_N_State TIM Complementary Output Compare State * @{ */ #define TIM_OUTPUTNSTATE_DISABLE 0x00000000U /*!< OCxN is disabled */ #define TIM_OUTPUTNSTATE_ENABLE TIM_CCER_CC1NE /*!< OCxN is enabled */ /** * @} */ /** @defgroup TIM_Output_Compare_Polarity TIM Output Compare Polarity * @{ */ #define TIM_OCPOLARITY_HIGH 0x00000000U /*!< Capture/Compare output polarity */ #define TIM_OCPOLARITY_LOW TIM_CCER_CC1P /*!< Capture/Compare output polarity */ /** * @} */ /** @defgroup TIM_Output_Compare_N_Polarity TIM Complementary Output Compare Polarity * @{ */ #define TIM_OCNPOLARITY_HIGH 0x00000000U /*!< Capture/Compare complementary output polarity */ #define TIM_OCNPOLARITY_LOW TIM_CCER_CC1NP /*!< Capture/Compare complementary output polarity */ /** * @} */ /** @defgroup TIM_Output_Compare_Idle_State TIM Output Compare Idle State * @{ */ #define TIM_OCIDLESTATE_SET TIM_CR2_OIS1 /*!< Output Idle state: OCx=1 when MOE=0 */ #define TIM_OCIDLESTATE_RESET 0x00000000U /*!< Output Idle state: OCx=0 when MOE=0 */ /** * @} */ /** @defgroup TIM_Output_Compare_N_Idle_State TIM Complementary Output Compare Idle State * @{ */ #define TIM_OCNIDLESTATE_SET TIM_CR2_OIS1N /*!< Complementary output Idle state: OCxN=1 when MOE=0 */ #define TIM_OCNIDLESTATE_RESET 0x00000000U /*!< Complementary output Idle state: OCxN=0 when MOE=0 */ /** * @} */ /** @defgroup TIM_Input_Capture_Polarity TIM Input Capture Polarity * @{ */ #define TIM_ICPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Capture triggered by rising edge on timer input */ #define TIM_ICPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Capture triggered by falling edge on timer input */ #define TIM_ICPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Capture triggered by both rising and falling edges on timer input*/ /** * @} */ /** @defgroup TIM_Encoder_Input_Polarity TIM Encoder Input Polarity * @{ */ #define TIM_ENCODERINPUTPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Encoder input with rising edge polarity */ #define TIM_ENCODERINPUTPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Encoder input with falling edge polarity */ /** * @} */ /** @defgroup TIM_Input_Capture_Selection TIM Input Capture Selection * @{ */ #define TIM_ICSELECTION_DIRECTTI TIM_CCMR1_CC1S_0 /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to IC1, IC2, IC3 or IC4, respectively */ #define TIM_ICSELECTION_INDIRECTTI TIM_CCMR1_CC1S_1 /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to IC2, IC1, IC4 or IC3, respectively */ #define TIM_ICSELECTION_TRC TIM_CCMR1_CC1S /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to TRC */ /** * @} */ /** @defgroup TIM_Input_Capture_Prescaler TIM Input Capture Prescaler * @{ */ #define TIM_ICPSC_DIV1 0x00000000U /*!< Capture performed each time an edge is detected on the capture input */ #define TIM_ICPSC_DIV2 TIM_CCMR1_IC1PSC_0 /*!< Capture performed once every 2 events */ #define TIM_ICPSC_DIV4 TIM_CCMR1_IC1PSC_1 /*!< Capture performed once every 4 events */ #define TIM_ICPSC_DIV8 TIM_CCMR1_IC1PSC /*!< Capture performed once every 8 events */ /** * @} */ /** @defgroup TIM_One_Pulse_Mode TIM One Pulse Mode * @{ */ #define TIM_OPMODE_SINGLE TIM_CR1_OPM /*!< Counter stops counting at the next update event */ #define TIM_OPMODE_REPETITIVE 0x00000000U /*!< Counter is not stopped at update event */ /** * @} */ /** @defgroup TIM_Encoder_Mode TIM Encoder Mode * @{ */ #define TIM_ENCODERMODE_TI1 TIM_SMCR_SMS_0 /*!< Quadrature encoder mode 1, x2 mode, counts up/down on TI1FP1 edge depending on TI2FP2 level */ #define TIM_ENCODERMODE_TI2 TIM_SMCR_SMS_1 /*!< Quadrature encoder mode 2, x2 mode, counts up/down on TI2FP2 edge depending on TI1FP1 level. */ #define TIM_ENCODERMODE_TI12 (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0) /*!< Quadrature encoder mode 3, x4 mode, counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input. */ /** * @} */ /** @defgroup TIM_Interrupt_definition TIM interrupt Definition * @{ */ #define TIM_IT_UPDATE TIM_DIER_UIE /*!< Update interrupt */ #define TIM_IT_CC1 TIM_DIER_CC1IE /*!< Capture/Compare 1 interrupt */ #define TIM_IT_CC2 TIM_DIER_CC2IE /*!< Capture/Compare 2 interrupt */ #define TIM_IT_CC3 TIM_DIER_CC3IE /*!< Capture/Compare 3 interrupt */ #define TIM_IT_CC4 TIM_DIER_CC4IE /*!< Capture/Compare 4 interrupt */ #define TIM_IT_COM TIM_DIER_COMIE /*!< Commutation interrupt */ #define TIM_IT_TRIGGER TIM_DIER_TIE /*!< Trigger interrupt */ #define TIM_IT_BREAK TIM_DIER_BIE /*!< Break interrupt */ /** * @} */ /** @defgroup TIM_Commutation_Source TIM Commutation Source * @{ */ #define TIM_COMMUTATION_TRGI TIM_CR2_CCUS /*!< When Capture/compare control bits are preloaded, they are updated by setting the COMG bit or when an rising edge occurs on trigger input */ #define TIM_COMMUTATION_SOFTWARE 0x00000000U /*!< When Capture/compare control bits are preloaded, they are updated by setting the COMG bit */ /** * @} */ /** @defgroup TIM_DMA_sources TIM DMA Sources * @{ */ #define TIM_DMA_UPDATE TIM_DIER_UDE /*!< DMA request is triggered by the update event */ #define TIM_DMA_CC1 TIM_DIER_CC1DE /*!< DMA request is triggered by the capture/compare macth 1 event */ #define TIM_DMA_CC2 TIM_DIER_CC2DE /*!< DMA request is triggered by the capture/compare macth 2 event event */ #define TIM_DMA_CC3 TIM_DIER_CC3DE /*!< DMA request is triggered by the capture/compare macth 3 event event */ #define TIM_DMA_CC4 TIM_DIER_CC4DE /*!< DMA request is triggered by the capture/compare macth 4 event event */ #define TIM_DMA_COM TIM_DIER_COMDE /*!< DMA request is triggered by the commutation event */ #define TIM_DMA_TRIGGER TIM_DIER_TDE /*!< DMA request is triggered by the trigger event */ /** * @} */ /** @defgroup TIM_Flag_definition TIM Flag Definition * @{ */ #define TIM_FLAG_UPDATE TIM_SR_UIF /*!< Update interrupt flag */ #define TIM_FLAG_CC1 TIM_SR_CC1IF /*!< Capture/Compare 1 interrupt flag */ #define TIM_FLAG_CC2 TIM_SR_CC2IF /*!< Capture/Compare 2 interrupt flag */ #define TIM_FLAG_CC3 TIM_SR_CC3IF /*!< Capture/Compare 3 interrupt flag */ #define TIM_FLAG_CC4 TIM_SR_CC4IF /*!< Capture/Compare 4 interrupt flag */ #define TIM_FLAG_COM TIM_SR_COMIF /*!< Commutation interrupt flag */ #define TIM_FLAG_TRIGGER TIM_SR_TIF /*!< Trigger interrupt flag */ #define TIM_FLAG_BREAK TIM_SR_BIF /*!< Break interrupt flag */ #define TIM_FLAG_CC1OF TIM_SR_CC1OF /*!< Capture 1 overcapture flag */ #define TIM_FLAG_CC2OF TIM_SR_CC2OF /*!< Capture 2 overcapture flag */ #define TIM_FLAG_CC3OF TIM_SR_CC3OF /*!< Capture 3 overcapture flag */ #define TIM_FLAG_CC4OF TIM_SR_CC4OF /*!< Capture 4 overcapture flag */ /** * @} */ /** @defgroup TIM_Channel TIM Channel * @{ */ #define TIM_CHANNEL_1 0x00000000U /*!< Capture/compare channel 1 identifier */ #define TIM_CHANNEL_2 0x00000004U /*!< Capture/compare channel 2 identifier */ #define TIM_CHANNEL_3 0x00000008U /*!< Capture/compare channel 3 identifier */ #define TIM_CHANNEL_4 0x0000000CU /*!< Capture/compare channel 4 identifier */ #define TIM_CHANNEL_ALL 0x0000003CU /*!< Global Capture/compare channel identifier */ /** * @} */ /** @defgroup TIM_Clock_Source TIM Clock Source * @{ */ #define TIM_CLOCKSOURCE_ETRMODE2 TIM_SMCR_ETPS_1 /*!< External clock source mode 2 */ #define TIM_CLOCKSOURCE_INTERNAL TIM_SMCR_ETPS_0 /*!< Internal clock source */ #define TIM_CLOCKSOURCE_ITR0 TIM_TS_ITR0 /*!< External clock source mode 1 (ITR0) */ #define TIM_CLOCKSOURCE_ITR1 TIM_TS_ITR1 /*!< External clock source mode 1 (ITR1) */ #define TIM_CLOCKSOURCE_ITR2 TIM_TS_ITR2 /*!< External clock source mode 1 (ITR2) */ #define TIM_CLOCKSOURCE_ITR3 TIM_TS_ITR3 /*!< External clock source mode 1 (ITR3) */ #define TIM_CLOCKSOURCE_TI1ED TIM_TS_TI1F_ED /*!< External clock source mode 1 (TTI1FP1 + edge detect.) */ #define TIM_CLOCKSOURCE_TI1 TIM_TS_TI1FP1 /*!< External clock source mode 1 (TTI1FP1) */ #define TIM_CLOCKSOURCE_TI2 TIM_TS_TI2FP2 /*!< External clock source mode 1 (TTI2FP2) */ #define TIM_CLOCKSOURCE_ETRMODE1 TIM_TS_ETRF /*!< External clock source mode 1 (ETRF) */ /** * @} */ /** @defgroup TIM_Clock_Polarity TIM Clock Polarity * @{ */ #define TIM_CLOCKPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx clock sources */ #define TIM_CLOCKPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx clock sources */ #define TIM_CLOCKPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Polarity for TIx clock sources */ #define TIM_CLOCKPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Polarity for TIx clock sources */ #define TIM_CLOCKPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Polarity for TIx clock sources */ /** * @} */ /** @defgroup TIM_Clock_Prescaler TIM Clock Prescaler * @{ */ #define TIM_CLOCKPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ #define TIM_CLOCKPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR Clock: Capture performed once every 2 events. */ #define TIM_CLOCKPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR Clock: Capture performed once every 4 events. */ #define TIM_CLOCKPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR Clock: Capture performed once every 8 events. */ /** * @} */ /** @defgroup TIM_ClearInput_Polarity TIM Clear Input Polarity * @{ */ #define TIM_CLEARINPUTPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx pin */ #define TIM_CLEARINPUTPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx pin */ /** * @} */ /** @defgroup TIM_ClearInput_Prescaler TIM Clear Input Prescaler * @{ */ #define TIM_CLEARINPUTPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ #define TIM_CLEARINPUTPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR pin: Capture performed once every 2 events. */ #define TIM_CLEARINPUTPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR pin: Capture performed once every 4 events. */ #define TIM_CLEARINPUTPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR pin: Capture performed once every 8 events. */ /** * @} */ /** @defgroup TIM_OSSR_Off_State_Selection_for_Run_mode_state TIM OSSR OffState Selection for Run mode state * @{ */ #define TIM_OSSR_ENABLE TIM_BDTR_OSSR /*!< When inactive, OC/OCN outputs are enabled (still controlled by the timer) */ #define TIM_OSSR_DISABLE 0x00000000U /*!< When inactive, OC/OCN outputs are disabled (not controlled any longer by the timer) */ /** * @} */ /** @defgroup TIM_OSSI_Off_State_Selection_for_Idle_mode_state TIM OSSI OffState Selection for Idle mode state * @{ */ #define TIM_OSSI_ENABLE TIM_BDTR_OSSI /*!< When inactive, OC/OCN outputs are enabled (still controlled by the timer) */ #define TIM_OSSI_DISABLE 0x00000000U /*!< When inactive, OC/OCN outputs are disabled (not controlled any longer by the timer) */ /** * @} */ /** @defgroup TIM_Lock_level TIM Lock level * @{ */ #define TIM_LOCKLEVEL_OFF 0x00000000U /*!< LOCK OFF */ #define TIM_LOCKLEVEL_1 TIM_BDTR_LOCK_0 /*!< LOCK Level 1 */ #define TIM_LOCKLEVEL_2 TIM_BDTR_LOCK_1 /*!< LOCK Level 2 */ #define TIM_LOCKLEVEL_3 TIM_BDTR_LOCK /*!< LOCK Level 3 */ /** * @} */ /** @defgroup TIM_Break_Input_enable_disable TIM Break Input Enable * @{ */ #define TIM_BREAK_ENABLE TIM_BDTR_BKE /*!< Break input BRK is enabled */ #define TIM_BREAK_DISABLE 0x00000000U /*!< Break input BRK is disabled */ /** * @} */ /** @defgroup TIM_Break_Polarity TIM Break Input Polarity * @{ */ #define TIM_BREAKPOLARITY_LOW 0x00000000U /*!< Break input BRK is active low */ #define TIM_BREAKPOLARITY_HIGH TIM_BDTR_BKP /*!< Break input BRK is active high */ /** * @} */ /** @defgroup TIM_AOE_Bit_Set_Reset TIM Automatic Output Enable * @{ */ #define TIM_AUTOMATICOUTPUT_DISABLE 0x00000000U /*!< MOE can be set only by software */ #define TIM_AUTOMATICOUTPUT_ENABLE TIM_BDTR_AOE /*!< MOE can be set by software or automatically at the next update event (if none of the break inputs BRK and BRK2 is active) */ /** * @} */ /** @defgroup TIM_Master_Mode_Selection TIM Master Mode Selection * @{ */ #define TIM_TRGO_RESET 0x00000000U /*!< TIMx_EGR.UG bit is used as trigger output (TRGO) */ #define TIM_TRGO_ENABLE TIM_CR2_MMS_0 /*!< TIMx_CR1.CEN bit is used as trigger output (TRGO) */ #define TIM_TRGO_UPDATE TIM_CR2_MMS_1 /*!< Update event is used as trigger output (TRGO) */ #define TIM_TRGO_OC1 (TIM_CR2_MMS_1 | TIM_CR2_MMS_0) /*!< Capture or a compare match 1 is used as trigger output (TRGO) */ #define TIM_TRGO_OC1REF TIM_CR2_MMS_2 /*!< OC1REF signal is used as trigger output (TRGO) */ #define TIM_TRGO_OC2REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_0) /*!< OC2REF signal is used as trigger output(TRGO) */ #define TIM_TRGO_OC3REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1) /*!< OC3REF signal is used as trigger output(TRGO) */ #define TIM_TRGO_OC4REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0) /*!< OC4REF signal is used as trigger output(TRGO) */ /** * @} */ /** @defgroup TIM_Master_Slave_Mode TIM Master/Slave Mode * @{ */ #define TIM_MASTERSLAVEMODE_ENABLE TIM_SMCR_MSM /*!< No action */ #define TIM_MASTERSLAVEMODE_DISABLE 0x00000000U /*!< Master/slave mode is selected */ /** * @} */ /** @defgroup TIM_Slave_Mode TIM Slave mode * @{ */ #define TIM_SLAVEMODE_DISABLE 0x00000000U /*!< Slave mode disabled */ #define TIM_SLAVEMODE_RESET TIM_SMCR_SMS_2 /*!< Reset Mode */ #define TIM_SLAVEMODE_GATED (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_0) /*!< Gated Mode */ #define TIM_SLAVEMODE_TRIGGER (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1) /*!< Trigger Mode */ #define TIM_SLAVEMODE_EXTERNAL1 (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0) /*!< External Clock Mode 1 */ /** * @} */ /** @defgroup TIM_Output_Compare_and_PWM_modes TIM Output Compare and PWM Modes * @{ */ #define TIM_OCMODE_TIMING 0x00000000U /*!< Frozen */ #define TIM_OCMODE_ACTIVE TIM_CCMR1_OC1M_0 /*!< Set channel to active level on match */ #define TIM_OCMODE_INACTIVE TIM_CCMR1_OC1M_1 /*!< Set channel to inactive level on match */ #define TIM_OCMODE_TOGGLE (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0) /*!< Toggle */ #define TIM_OCMODE_PWM1 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1) /*!< PWM mode 1 */ #define TIM_OCMODE_PWM2 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0) /*!< PWM mode 2 */ #define TIM_OCMODE_FORCED_ACTIVE (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_0) /*!< Force active level */ #define TIM_OCMODE_FORCED_INACTIVE TIM_CCMR1_OC1M_2 /*!< Force inactive level */ /** * @} */ /** @defgroup TIM_Trigger_Selection TIM Trigger Selection * @{ */ #define TIM_TS_ITR0 0x00000000U /*!< Internal Trigger 0 (ITR0) */ #define TIM_TS_ITR1 TIM_SMCR_TS_0 /*!< Internal Trigger 1 (ITR1) */ #define TIM_TS_ITR2 TIM_SMCR_TS_1 /*!< Internal Trigger 2 (ITR2) */ #define TIM_TS_ITR3 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1) /*!< Internal Trigger 3 (ITR3) */ #define TIM_TS_TI1F_ED TIM_SMCR_TS_2 /*!< TI1 Edge Detector (TI1F_ED) */ #define TIM_TS_TI1FP1 (TIM_SMCR_TS_0 | TIM_SMCR_TS_2) /*!< Filtered Timer Input 1 (TI1FP1) */ #define TIM_TS_TI2FP2 (TIM_SMCR_TS_1 | TIM_SMCR_TS_2) /*!< Filtered Timer Input 2 (TI2FP2) */ #define TIM_TS_ETRF (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_2) /*!< Filtered External Trigger input (ETRF) */ #define TIM_TS_NONE 0x0000FFFFU /*!< No trigger selected */ /** * @} */ /** @defgroup TIM_Trigger_Polarity TIM Trigger Polarity * @{ */ #define TIM_TRIGGERPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx trigger sources */ #define TIM_TRIGGERPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx trigger sources */ #define TIM_TRIGGERPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Polarity for TIxFPx or TI1_ED trigger sources */ #define TIM_TRIGGERPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Polarity for TIxFPx or TI1_ED trigger sources */ #define TIM_TRIGGERPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Polarity for TIxFPx or TI1_ED trigger sources */ /** * @} */ /** @defgroup TIM_Trigger_Prescaler TIM Trigger Prescaler * @{ */ #define TIM_TRIGGERPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ #define TIM_TRIGGERPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR Trigger: Capture performed once every 2 events. */ #define TIM_TRIGGERPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR Trigger: Capture performed once every 4 events. */ #define TIM_TRIGGERPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR Trigger: Capture performed once every 8 events. */ /** * @} */ /** @defgroup TIM_TI1_Selection TIM TI1 Input Selection * @{ */ #define TIM_TI1SELECTION_CH1 0x00000000U /*!< The TIMx_CH1 pin is connected to TI1 input */ #define TIM_TI1SELECTION_XORCOMBINATION TIM_CR2_TI1S /*!< The TIMx_CH1, CH2 and CH3 pins are connected to the TI1 input (XOR combination) */ /** * @} */ /** @defgroup TIM_DMA_Burst_Length TIM DMA Burst Length * @{ */ #define TIM_DMABURSTLENGTH_1TRANSFER 0x00000000U /*!< The transfer is done to 1 register starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_2TRANSFERS 0x00000100U /*!< The transfer is done to 2 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_3TRANSFERS 0x00000200U /*!< The transfer is done to 3 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_4TRANSFERS 0x00000300U /*!< The transfer is done to 4 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_5TRANSFERS 0x00000400U /*!< The transfer is done to 5 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_6TRANSFERS 0x00000500U /*!< The transfer is done to 6 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_7TRANSFERS 0x00000600U /*!< The transfer is done to 7 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_8TRANSFERS 0x00000700U /*!< The transfer is done to 8 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_9TRANSFERS 0x00000800U /*!< The transfer is done to 9 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_10TRANSFERS 0x00000900U /*!< The transfer is done to 10 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_11TRANSFERS 0x00000A00U /*!< The transfer is done to 11 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_12TRANSFERS 0x00000B00U /*!< The transfer is done to 12 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_13TRANSFERS 0x00000C00U /*!< The transfer is done to 13 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_14TRANSFERS 0x00000D00U /*!< The transfer is done to 14 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_15TRANSFERS 0x00000E00U /*!< The transfer is done to 15 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_16TRANSFERS 0x00000F00U /*!< The transfer is done to 16 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_17TRANSFERS 0x00001000U /*!< The transfer is done to 17 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ #define TIM_DMABURSTLENGTH_18TRANSFERS 0x00001100U /*!< The transfer is done to 18 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ /** * @} */ /** @defgroup DMA_Handle_index TIM DMA Handle Index * @{ */ #define TIM_DMA_ID_UPDATE ((uint16_t) 0x0000) /*!< Index of the DMA handle used for Update DMA requests */ #define TIM_DMA_ID_CC1 ((uint16_t) 0x0001) /*!< Index of the DMA handle used for Capture/Compare 1 DMA requests */ #define TIM_DMA_ID_CC2 ((uint16_t) 0x0002) /*!< Index of the DMA handle used for Capture/Compare 2 DMA requests */ #define TIM_DMA_ID_CC3 ((uint16_t) 0x0003) /*!< Index of the DMA handle used for Capture/Compare 3 DMA requests */ #define TIM_DMA_ID_CC4 ((uint16_t) 0x0004) /*!< Index of the DMA handle used for Capture/Compare 4 DMA requests */ #define TIM_DMA_ID_COMMUTATION ((uint16_t) 0x0005) /*!< Index of the DMA handle used for Commutation DMA requests */ #define TIM_DMA_ID_TRIGGER ((uint16_t) 0x0006) /*!< Index of the DMA handle used for Trigger DMA requests */ /** * @} */ /** @defgroup Channel_CC_State TIM Capture/Compare Channel State * @{ */ #define TIM_CCx_ENABLE 0x00000001U /*!< Input or output channel is enabled */ #define TIM_CCx_DISABLE 0x00000000U /*!< Input or output channel is disabled */ #define TIM_CCxN_ENABLE 0x00000004U /*!< Complementary output channel is enabled */ #define TIM_CCxN_DISABLE 0x00000000U /*!< Complementary output channel is enabled */ /** * @} */ /** * @} */ /* End of exported constants -------------------------------------------------*/ /* Exported macros -----------------------------------------------------------*/ /** @defgroup TIM_Exported_Macros TIM Exported Macros * @{ */ /** @brief Reset TIM handle state. * @param __HANDLE__ TIM handle. * @retval None */ #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) #define __HAL_TIM_RESET_HANDLE_STATE(__HANDLE__) do { \ (__HANDLE__)->State = HAL_TIM_STATE_RESET; \ (__HANDLE__)->ChannelState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->DMABurstState = HAL_DMA_BURST_STATE_RESET; \ (__HANDLE__)->Base_MspInitCallback = NULL; \ (__HANDLE__)->Base_MspDeInitCallback = NULL; \ (__HANDLE__)->IC_MspInitCallback = NULL; \ (__HANDLE__)->IC_MspDeInitCallback = NULL; \ (__HANDLE__)->OC_MspInitCallback = NULL; \ (__HANDLE__)->OC_MspDeInitCallback = NULL; \ (__HANDLE__)->PWM_MspInitCallback = NULL; \ (__HANDLE__)->PWM_MspDeInitCallback = NULL; \ (__HANDLE__)->OnePulse_MspInitCallback = NULL; \ (__HANDLE__)->OnePulse_MspDeInitCallback = NULL; \ (__HANDLE__)->Encoder_MspInitCallback = NULL; \ (__HANDLE__)->Encoder_MspDeInitCallback = NULL; \ (__HANDLE__)->HallSensor_MspInitCallback = NULL; \ (__HANDLE__)->HallSensor_MspDeInitCallback = NULL; \ } while(0) #else #define __HAL_TIM_RESET_HANDLE_STATE(__HANDLE__) do { \ (__HANDLE__)->State = HAL_TIM_STATE_RESET; \ (__HANDLE__)->ChannelState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->ChannelNState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ (__HANDLE__)->DMABurstState = HAL_DMA_BURST_STATE_RESET; \ } while(0) #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @brief Enable the TIM peripheral. * @param __HANDLE__ TIM handle * @retval None */ #define __HAL_TIM_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1|=(TIM_CR1_CEN)) /** * @brief Enable the TIM main Output. * @param __HANDLE__ TIM handle * @retval None */ #define __HAL_TIM_MOE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->BDTR|=(TIM_BDTR_MOE)) /** * @brief Disable the TIM peripheral. * @param __HANDLE__ TIM handle * @retval None */ #define __HAL_TIM_DISABLE(__HANDLE__) \ do { \ if (((__HANDLE__)->Instance->CCER & TIM_CCER_CCxE_MASK) == 0UL) \ { \ if(((__HANDLE__)->Instance->CCER & TIM_CCER_CCxNE_MASK) == 0UL) \ { \ (__HANDLE__)->Instance->CR1 &= ~(TIM_CR1_CEN); \ } \ } \ } while(0) /** * @brief Disable the TIM main Output. * @param __HANDLE__ TIM handle * @retval None * @note The Main Output Enable of a timer instance is disabled only if all the CCx and CCxN channels have been disabled */ #define __HAL_TIM_MOE_DISABLE(__HANDLE__) \ do { \ if (((__HANDLE__)->Instance->CCER & TIM_CCER_CCxE_MASK) == 0UL) \ { \ if(((__HANDLE__)->Instance->CCER & TIM_CCER_CCxNE_MASK) == 0UL) \ { \ (__HANDLE__)->Instance->BDTR &= ~(TIM_BDTR_MOE); \ } \ } \ } while(0) /** * @brief Disable the TIM main Output. * @param __HANDLE__ TIM handle * @retval None * @note The Main Output Enable of a timer instance is disabled unconditionally */ #define __HAL_TIM_MOE_DISABLE_UNCONDITIONALLY(__HANDLE__) (__HANDLE__)->Instance->BDTR &= ~(TIM_BDTR_MOE) /** @brief Enable the specified TIM interrupt. * @param __HANDLE__ specifies the TIM Handle. * @param __INTERRUPT__ specifies the TIM interrupt source to enable. * This parameter can be one of the following values: * @arg TIM_IT_UPDATE: Update interrupt * @arg TIM_IT_CC1: Capture/Compare 1 interrupt * @arg TIM_IT_CC2: Capture/Compare 2 interrupt * @arg TIM_IT_CC3: Capture/Compare 3 interrupt * @arg TIM_IT_CC4: Capture/Compare 4 interrupt * @arg TIM_IT_COM: Commutation interrupt * @arg TIM_IT_TRIGGER: Trigger interrupt * @arg TIM_IT_BREAK: Break interrupt * @retval None */ #define __HAL_TIM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DIER |= (__INTERRUPT__)) /** @brief Disable the specified TIM interrupt. * @param __HANDLE__ specifies the TIM Handle. * @param __INTERRUPT__ specifies the TIM interrupt source to disable. * This parameter can be one of the following values: * @arg TIM_IT_UPDATE: Update interrupt * @arg TIM_IT_CC1: Capture/Compare 1 interrupt * @arg TIM_IT_CC2: Capture/Compare 2 interrupt * @arg TIM_IT_CC3: Capture/Compare 3 interrupt * @arg TIM_IT_CC4: Capture/Compare 4 interrupt * @arg TIM_IT_COM: Commutation interrupt * @arg TIM_IT_TRIGGER: Trigger interrupt * @arg TIM_IT_BREAK: Break interrupt * @retval None */ #define __HAL_TIM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DIER &= ~(__INTERRUPT__)) /** @brief Enable the specified DMA request. * @param __HANDLE__ specifies the TIM Handle. * @param __DMA__ specifies the TIM DMA request to enable. * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: Update DMA request * @arg TIM_DMA_CC1: Capture/Compare 1 DMA request * @arg TIM_DMA_CC2: Capture/Compare 2 DMA request * @arg TIM_DMA_CC3: Capture/Compare 3 DMA request * @arg TIM_DMA_CC4: Capture/Compare 4 DMA request * @arg TIM_DMA_COM: Commutation DMA request * @arg TIM_DMA_TRIGGER: Trigger DMA request * @retval None */ #define __HAL_TIM_ENABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->DIER |= (__DMA__)) /** @brief Disable the specified DMA request. * @param __HANDLE__ specifies the TIM Handle. * @param __DMA__ specifies the TIM DMA request to disable. * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: Update DMA request * @arg TIM_DMA_CC1: Capture/Compare 1 DMA request * @arg TIM_DMA_CC2: Capture/Compare 2 DMA request * @arg TIM_DMA_CC3: Capture/Compare 3 DMA request * @arg TIM_DMA_CC4: Capture/Compare 4 DMA request * @arg TIM_DMA_COM: Commutation DMA request * @arg TIM_DMA_TRIGGER: Trigger DMA request * @retval None */ #define __HAL_TIM_DISABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->DIER &= ~(__DMA__)) /** @brief Check whether the specified TIM interrupt flag is set or not. * @param __HANDLE__ specifies the TIM Handle. * @param __FLAG__ specifies the TIM interrupt flag to check. * This parameter can be one of the following values: * @arg TIM_FLAG_UPDATE: Update interrupt flag * @arg TIM_FLAG_CC1: Capture/Compare 1 interrupt flag * @arg TIM_FLAG_CC2: Capture/Compare 2 interrupt flag * @arg TIM_FLAG_CC3: Capture/Compare 3 interrupt flag * @arg TIM_FLAG_CC4: Capture/Compare 4 interrupt flag * @arg TIM_FLAG_COM: Commutation interrupt flag * @arg TIM_FLAG_TRIGGER: Trigger interrupt flag * @arg TIM_FLAG_BREAK: Break interrupt flag * @arg TIM_FLAG_CC1OF: Capture/Compare 1 overcapture flag * @arg TIM_FLAG_CC2OF: Capture/Compare 2 overcapture flag * @arg TIM_FLAG_CC3OF: Capture/Compare 3 overcapture flag * @arg TIM_FLAG_CC4OF: Capture/Compare 4 overcapture flag * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_TIM_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR &(__FLAG__)) == (__FLAG__)) /** @brief Clear the specified TIM interrupt flag. * @param __HANDLE__ specifies the TIM Handle. * @param __FLAG__ specifies the TIM interrupt flag to clear. * This parameter can be one of the following values: * @arg TIM_FLAG_UPDATE: Update interrupt flag * @arg TIM_FLAG_CC1: Capture/Compare 1 interrupt flag * @arg TIM_FLAG_CC2: Capture/Compare 2 interrupt flag * @arg TIM_FLAG_CC3: Capture/Compare 3 interrupt flag * @arg TIM_FLAG_CC4: Capture/Compare 4 interrupt flag * @arg TIM_FLAG_COM: Commutation interrupt flag * @arg TIM_FLAG_TRIGGER: Trigger interrupt flag * @arg TIM_FLAG_BREAK: Break interrupt flag * @arg TIM_FLAG_CC1OF: Capture/Compare 1 overcapture flag * @arg TIM_FLAG_CC2OF: Capture/Compare 2 overcapture flag * @arg TIM_FLAG_CC3OF: Capture/Compare 3 overcapture flag * @arg TIM_FLAG_CC4OF: Capture/Compare 4 overcapture flag * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_TIM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) /** * @brief Check whether the specified TIM interrupt source is enabled or not. * @param __HANDLE__ TIM handle * @param __INTERRUPT__ specifies the TIM interrupt source to check. * This parameter can be one of the following values: * @arg TIM_IT_UPDATE: Update interrupt * @arg TIM_IT_CC1: Capture/Compare 1 interrupt * @arg TIM_IT_CC2: Capture/Compare 2 interrupt * @arg TIM_IT_CC3: Capture/Compare 3 interrupt * @arg TIM_IT_CC4: Capture/Compare 4 interrupt * @arg TIM_IT_COM: Commutation interrupt * @arg TIM_IT_TRIGGER: Trigger interrupt * @arg TIM_IT_BREAK: Break interrupt * @retval The state of TIM_IT (SET or RESET). */ #define __HAL_TIM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->DIER & (__INTERRUPT__)) \ == (__INTERRUPT__)) ? SET : RESET) /** @brief Clear the TIM interrupt pending bits. * @param __HANDLE__ TIM handle * @param __INTERRUPT__ specifies the interrupt pending bit to clear. * This parameter can be one of the following values: * @arg TIM_IT_UPDATE: Update interrupt * @arg TIM_IT_CC1: Capture/Compare 1 interrupt * @arg TIM_IT_CC2: Capture/Compare 2 interrupt * @arg TIM_IT_CC3: Capture/Compare 3 interrupt * @arg TIM_IT_CC4: Capture/Compare 4 interrupt * @arg TIM_IT_COM: Commutation interrupt * @arg TIM_IT_TRIGGER: Trigger interrupt * @arg TIM_IT_BREAK: Break interrupt * @retval None */ #define __HAL_TIM_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->SR = ~(__INTERRUPT__)) /** * @brief Indicates whether or not the TIM Counter is used as downcounter. * @param __HANDLE__ TIM handle. * @retval False (Counter used as upcounter) or True (Counter used as downcounter) * @note This macro is particularly useful to get the counting mode when the timer operates in Center-aligned mode or Encoder mode. */ #define __HAL_TIM_IS_TIM_COUNTING_DOWN(__HANDLE__) (((__HANDLE__)->Instance->CR1 &(TIM_CR1_DIR)) == (TIM_CR1_DIR)) /** * @brief Set the TIM Prescaler on runtime. * @param __HANDLE__ TIM handle. * @param __PRESC__ specifies the Prescaler new value. * @retval None */ #define __HAL_TIM_SET_PRESCALER(__HANDLE__, __PRESC__) ((__HANDLE__)->Instance->PSC = (__PRESC__)) /** * @brief Set the TIM Counter Register value on runtime. * @param __HANDLE__ TIM handle. * @param __COUNTER__ specifies the Counter register new value. * @retval None */ #define __HAL_TIM_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->CNT = (__COUNTER__)) /** * @brief Get the TIM Counter Register value on runtime. * @param __HANDLE__ TIM handle. * @retval 16-bit or 32-bit value of the timer counter register (TIMx_CNT) */ #define __HAL_TIM_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->CNT) /** * @brief Set the TIM Autoreload Register value on runtime without calling another time any Init function. * @param __HANDLE__ TIM handle. * @param __AUTORELOAD__ specifies the Counter register new value. * @retval None */ #define __HAL_TIM_SET_AUTORELOAD(__HANDLE__, __AUTORELOAD__) \ do{ \ (__HANDLE__)->Instance->ARR = (__AUTORELOAD__); \ (__HANDLE__)->Init.Period = (__AUTORELOAD__); \ } while(0) /** * @brief Get the TIM Autoreload Register value on runtime. * @param __HANDLE__ TIM handle. * @retval 16-bit or 32-bit value of the timer auto-reload register(TIMx_ARR) */ #define __HAL_TIM_GET_AUTORELOAD(__HANDLE__) ((__HANDLE__)->Instance->ARR) /** * @brief Set the TIM Clock Division value on runtime without calling another time any Init function. * @param __HANDLE__ TIM handle. * @param __CKD__ specifies the clock division value. * This parameter can be one of the following value: * @arg TIM_CLOCKDIVISION_DIV1: tDTS=tCK_INT * @arg TIM_CLOCKDIVISION_DIV2: tDTS=2*tCK_INT * @arg TIM_CLOCKDIVISION_DIV4: tDTS=4*tCK_INT * @retval None */ #define __HAL_TIM_SET_CLOCKDIVISION(__HANDLE__, __CKD__) \ do{ \ (__HANDLE__)->Instance->CR1 &= (~TIM_CR1_CKD); \ (__HANDLE__)->Instance->CR1 |= (__CKD__); \ (__HANDLE__)->Init.ClockDivision = (__CKD__); \ } while(0) /** * @brief Get the TIM Clock Division value on runtime. * @param __HANDLE__ TIM handle. * @retval The clock division can be one of the following values: * @arg TIM_CLOCKDIVISION_DIV1: tDTS=tCK_INT * @arg TIM_CLOCKDIVISION_DIV2: tDTS=2*tCK_INT * @arg TIM_CLOCKDIVISION_DIV4: tDTS=4*tCK_INT */ #define __HAL_TIM_GET_CLOCKDIVISION(__HANDLE__) ((__HANDLE__)->Instance->CR1 & TIM_CR1_CKD) /** * @brief Set the TIM Input Capture prescaler on runtime without calling another time HAL_TIM_IC_ConfigChannel() function. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param __ICPSC__ specifies the Input Capture4 prescaler new value. * This parameter can be one of the following values: * @arg TIM_ICPSC_DIV1: no prescaler * @arg TIM_ICPSC_DIV2: capture is done once every 2 events * @arg TIM_ICPSC_DIV4: capture is done once every 4 events * @arg TIM_ICPSC_DIV8: capture is done once every 8 events * @retval None */ #define __HAL_TIM_SET_ICPRESCALER(__HANDLE__, __CHANNEL__, __ICPSC__) \ do{ \ TIM_RESET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__)); \ TIM_SET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__), (__ICPSC__)); \ } while(0) /** * @brief Get the TIM Input Capture prescaler on runtime. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: get input capture 1 prescaler value * @arg TIM_CHANNEL_2: get input capture 2 prescaler value * @arg TIM_CHANNEL_3: get input capture 3 prescaler value * @arg TIM_CHANNEL_4: get input capture 4 prescaler value * @retval The input capture prescaler can be one of the following values: * @arg TIM_ICPSC_DIV1: no prescaler * @arg TIM_ICPSC_DIV2: capture is done once every 2 events * @arg TIM_ICPSC_DIV4: capture is done once every 4 events * @arg TIM_ICPSC_DIV8: capture is done once every 8 events */ #define __HAL_TIM_GET_ICPRESCALER(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC1PSC) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? (((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC2PSC) >> 8U) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 & TIM_CCMR2_IC3PSC) :\ (((__HANDLE__)->Instance->CCMR2 & TIM_CCMR2_IC4PSC)) >> 8U) /** * @brief Set the TIM Capture Compare Register value on runtime without calling another time ConfigChannel function. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param __COMPARE__ specifies the Capture Compare register new value. * @retval None */ #define __HAL_TIM_SET_COMPARE(__HANDLE__, __CHANNEL__, __COMPARE__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCR1 = (__COMPARE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCR2 = (__COMPARE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCR3 = (__COMPARE__)) :\ ((__HANDLE__)->Instance->CCR4 = (__COMPARE__))) /** * @brief Get the TIM Capture Compare Register value on runtime. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channel associated with the capture compare register * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: get capture/compare 1 register value * @arg TIM_CHANNEL_2: get capture/compare 2 register value * @arg TIM_CHANNEL_3: get capture/compare 3 register value * @arg TIM_CHANNEL_4: get capture/compare 4 register value * @retval 16-bit or 32-bit value of the capture/compare register (TIMx_CCRy) */ #define __HAL_TIM_GET_COMPARE(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCR1) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCR2) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCR3) :\ ((__HANDLE__)->Instance->CCR4)) /** * @brief Set the TIM Output compare preload. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval None */ #define __HAL_TIM_ENABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC1PE) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC2PE) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC3PE) :\ ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC4PE)) /** * @brief Reset the TIM Output compare preload. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval None */ #define __HAL_TIM_DISABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC1PE) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC2PE) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC3PE) :\ ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC4PE)) /** * @brief Enable fast mode for a given channel. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @note When fast mode is enabled an active edge on the trigger input acts * like a compare match on CCx output. Delay to sample the trigger * input and to activate CCx output is reduced to 3 clock cycles. * @note Fast mode acts only if the channel is configured in PWM1 or PWM2 mode. * @retval None */ #define __HAL_TIM_ENABLE_OCxFAST(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC1FE) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC2FE) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC3FE) :\ ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC4FE)) /** * @brief Disable fast mode for a given channel. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @note When fast mode is disabled CCx output behaves normally depending * on counter and CCRx values even when the trigger is ON. The minimum * delay to activate CCx output when an active edge occurs on the * trigger input is 5 clock cycles. * @retval None */ #define __HAL_TIM_DISABLE_OCxFAST(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE) :\ ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE)) /** * @brief Set the Update Request Source (URS) bit of the TIMx_CR1 register. * @param __HANDLE__ TIM handle. * @note When the URS bit of the TIMx_CR1 register is set, only counter * overflow/underflow generates an update interrupt or DMA request (if * enabled) * @retval None */ #define __HAL_TIM_URS_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1|= TIM_CR1_URS) /** * @brief Reset the Update Request Source (URS) bit of the TIMx_CR1 register. * @param __HANDLE__ TIM handle. * @note When the URS bit of the TIMx_CR1 register is reset, any of the * following events generate an update interrupt or DMA request (if * enabled): * _ Counter overflow underflow * _ Setting the UG bit * _ Update generation through the slave mode controller * @retval None */ #define __HAL_TIM_URS_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1&=~TIM_CR1_URS) /** * @brief Set the TIM Capture x input polarity on runtime. * @param __HANDLE__ TIM handle. * @param __CHANNEL__ TIM Channels to be configured. * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param __POLARITY__ Polarity for TIx source * @arg TIM_INPUTCHANNELPOLARITY_RISING: Rising Edge * @arg TIM_INPUTCHANNELPOLARITY_FALLING: Falling Edge * @arg TIM_INPUTCHANNELPOLARITY_BOTHEDGE: Rising and Falling Edge * @retval None */ #define __HAL_TIM_SET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__, __POLARITY__) \ do{ \ TIM_RESET_CAPTUREPOLARITY((__HANDLE__), (__CHANNEL__)); \ TIM_SET_CAPTUREPOLARITY((__HANDLE__), (__CHANNEL__), (__POLARITY__)); \ }while(0) /** * @} */ /* End of exported macros ----------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup TIM_Private_Constants TIM Private Constants * @{ */ /* The counter of a timer instance is disabled only if all the CCx and CCxN channels have been disabled */ #define TIM_CCER_CCxE_MASK ((uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E | TIM_CCER_CC3E | TIM_CCER_CC4E)) #define TIM_CCER_CCxNE_MASK ((uint32_t)(TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) /** * @} */ /* End of private constants --------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @defgroup TIM_Private_Macros TIM Private Macros * @{ */ #define IS_TIM_CLEARINPUT_SOURCE(__MODE__) (((__MODE__) == TIM_CLEARINPUTSOURCE_NONE) || \ ((__MODE__) == TIM_CLEARINPUTSOURCE_ETR)) #define IS_TIM_DMA_BASE(__BASE__) (((__BASE__) == TIM_DMABASE_CR1) || \ ((__BASE__) == TIM_DMABASE_CR2) || \ ((__BASE__) == TIM_DMABASE_SMCR) || \ ((__BASE__) == TIM_DMABASE_DIER) || \ ((__BASE__) == TIM_DMABASE_SR) || \ ((__BASE__) == TIM_DMABASE_EGR) || \ ((__BASE__) == TIM_DMABASE_CCMR1) || \ ((__BASE__) == TIM_DMABASE_CCMR2) || \ ((__BASE__) == TIM_DMABASE_CCER) || \ ((__BASE__) == TIM_DMABASE_CNT) || \ ((__BASE__) == TIM_DMABASE_PSC) || \ ((__BASE__) == TIM_DMABASE_ARR) || \ ((__BASE__) == TIM_DMABASE_RCR) || \ ((__BASE__) == TIM_DMABASE_CCR1) || \ ((__BASE__) == TIM_DMABASE_CCR2) || \ ((__BASE__) == TIM_DMABASE_CCR3) || \ ((__BASE__) == TIM_DMABASE_CCR4) || \ ((__BASE__) == TIM_DMABASE_BDTR)) #define IS_TIM_EVENT_SOURCE(__SOURCE__) ((((__SOURCE__) & 0xFFFFFF00U) == 0x00000000U) && ((__SOURCE__) != 0x00000000U)) #define IS_TIM_COUNTER_MODE(__MODE__) (((__MODE__) == TIM_COUNTERMODE_UP) || \ ((__MODE__) == TIM_COUNTERMODE_DOWN) || \ ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED1) || \ ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED2) || \ ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED3)) #define IS_TIM_CLOCKDIVISION_DIV(__DIV__) (((__DIV__) == TIM_CLOCKDIVISION_DIV1) || \ ((__DIV__) == TIM_CLOCKDIVISION_DIV2) || \ ((__DIV__) == TIM_CLOCKDIVISION_DIV4)) #define IS_TIM_AUTORELOAD_PRELOAD(PRELOAD) (((PRELOAD) == TIM_AUTORELOAD_PRELOAD_DISABLE) || \ ((PRELOAD) == TIM_AUTORELOAD_PRELOAD_ENABLE)) #define IS_TIM_FAST_STATE(__STATE__) (((__STATE__) == TIM_OCFAST_DISABLE) || \ ((__STATE__) == TIM_OCFAST_ENABLE)) #define IS_TIM_OC_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_OCPOLARITY_HIGH) || \ ((__POLARITY__) == TIM_OCPOLARITY_LOW)) #define IS_TIM_OCN_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_OCNPOLARITY_HIGH) || \ ((__POLARITY__) == TIM_OCNPOLARITY_LOW)) #define IS_TIM_OCIDLE_STATE(__STATE__) (((__STATE__) == TIM_OCIDLESTATE_SET) || \ ((__STATE__) == TIM_OCIDLESTATE_RESET)) #define IS_TIM_OCNIDLE_STATE(__STATE__) (((__STATE__) == TIM_OCNIDLESTATE_SET) || \ ((__STATE__) == TIM_OCNIDLESTATE_RESET)) #define IS_TIM_ENCODERINPUT_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_ENCODERINPUTPOLARITY_RISING) || \ ((__POLARITY__) == TIM_ENCODERINPUTPOLARITY_FALLING)) #define IS_TIM_IC_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_ICPOLARITY_RISING) || \ ((__POLARITY__) == TIM_ICPOLARITY_FALLING) || \ ((__POLARITY__) == TIM_ICPOLARITY_BOTHEDGE)) #define IS_TIM_IC_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_ICSELECTION_DIRECTTI) || \ ((__SELECTION__) == TIM_ICSELECTION_INDIRECTTI) || \ ((__SELECTION__) == TIM_ICSELECTION_TRC)) #define IS_TIM_IC_PRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_ICPSC_DIV1) || \ ((__PRESCALER__) == TIM_ICPSC_DIV2) || \ ((__PRESCALER__) == TIM_ICPSC_DIV4) || \ ((__PRESCALER__) == TIM_ICPSC_DIV8)) #define IS_TIM_OPM_MODE(__MODE__) (((__MODE__) == TIM_OPMODE_SINGLE) || \ ((__MODE__) == TIM_OPMODE_REPETITIVE)) #define IS_TIM_ENCODER_MODE(__MODE__) (((__MODE__) == TIM_ENCODERMODE_TI1) || \ ((__MODE__) == TIM_ENCODERMODE_TI2) || \ ((__MODE__) == TIM_ENCODERMODE_TI12)) #define IS_TIM_DMA_SOURCE(__SOURCE__) ((((__SOURCE__) & 0xFFFF80FFU) == 0x00000000U) && ((__SOURCE__) != 0x00000000U)) #define IS_TIM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ ((__CHANNEL__) == TIM_CHANNEL_2) || \ ((__CHANNEL__) == TIM_CHANNEL_3) || \ ((__CHANNEL__) == TIM_CHANNEL_4) || \ ((__CHANNEL__) == TIM_CHANNEL_ALL)) #define IS_TIM_OPM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ ((__CHANNEL__) == TIM_CHANNEL_2)) #define IS_TIM_COMPLEMENTARY_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ ((__CHANNEL__) == TIM_CHANNEL_2) || \ ((__CHANNEL__) == TIM_CHANNEL_3)) #define IS_TIM_CLOCKSOURCE(__CLOCK__) (((__CLOCK__) == TIM_CLOCKSOURCE_INTERNAL) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ETRMODE2) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ITR0) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ITR1) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ITR2) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ITR3) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_TI1ED) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_TI1) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_TI2) || \ ((__CLOCK__) == TIM_CLOCKSOURCE_ETRMODE1)) #define IS_TIM_CLOCKPOLARITY(__POLARITY__) (((__POLARITY__) == TIM_CLOCKPOLARITY_INVERTED) || \ ((__POLARITY__) == TIM_CLOCKPOLARITY_NONINVERTED) || \ ((__POLARITY__) == TIM_CLOCKPOLARITY_RISING) || \ ((__POLARITY__) == TIM_CLOCKPOLARITY_FALLING) || \ ((__POLARITY__) == TIM_CLOCKPOLARITY_BOTHEDGE)) #define IS_TIM_CLOCKPRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV1) || \ ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV2) || \ ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV4) || \ ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV8)) #define IS_TIM_CLOCKFILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) #define IS_TIM_CLEARINPUT_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_CLEARINPUTPOLARITY_INVERTED) || \ ((__POLARITY__) == TIM_CLEARINPUTPOLARITY_NONINVERTED)) #define IS_TIM_CLEARINPUT_PRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV1) || \ ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV2) || \ ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV4) || \ ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV8)) #define IS_TIM_CLEARINPUT_FILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) #define IS_TIM_OSSR_STATE(__STATE__) (((__STATE__) == TIM_OSSR_ENABLE) || \ ((__STATE__) == TIM_OSSR_DISABLE)) #define IS_TIM_OSSI_STATE(__STATE__) (((__STATE__) == TIM_OSSI_ENABLE) || \ ((__STATE__) == TIM_OSSI_DISABLE)) #define IS_TIM_LOCK_LEVEL(__LEVEL__) (((__LEVEL__) == TIM_LOCKLEVEL_OFF) || \ ((__LEVEL__) == TIM_LOCKLEVEL_1) || \ ((__LEVEL__) == TIM_LOCKLEVEL_2) || \ ((__LEVEL__) == TIM_LOCKLEVEL_3)) #define IS_TIM_BREAK_FILTER(__BRKFILTER__) ((__BRKFILTER__) <= 0xFUL) #define IS_TIM_BREAK_STATE(__STATE__) (((__STATE__) == TIM_BREAK_ENABLE) || \ ((__STATE__) == TIM_BREAK_DISABLE)) #define IS_TIM_BREAK_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_BREAKPOLARITY_LOW) || \ ((__POLARITY__) == TIM_BREAKPOLARITY_HIGH)) #define IS_TIM_AUTOMATIC_OUTPUT_STATE(__STATE__) (((__STATE__) == TIM_AUTOMATICOUTPUT_ENABLE) || \ ((__STATE__) == TIM_AUTOMATICOUTPUT_DISABLE)) #define IS_TIM_TRGO_SOURCE(__SOURCE__) (((__SOURCE__) == TIM_TRGO_RESET) || \ ((__SOURCE__) == TIM_TRGO_ENABLE) || \ ((__SOURCE__) == TIM_TRGO_UPDATE) || \ ((__SOURCE__) == TIM_TRGO_OC1) || \ ((__SOURCE__) == TIM_TRGO_OC1REF) || \ ((__SOURCE__) == TIM_TRGO_OC2REF) || \ ((__SOURCE__) == TIM_TRGO_OC3REF) || \ ((__SOURCE__) == TIM_TRGO_OC4REF)) #define IS_TIM_MSM_STATE(__STATE__) (((__STATE__) == TIM_MASTERSLAVEMODE_ENABLE) || \ ((__STATE__) == TIM_MASTERSLAVEMODE_DISABLE)) #define IS_TIM_SLAVE_MODE(__MODE__) (((__MODE__) == TIM_SLAVEMODE_DISABLE) || \ ((__MODE__) == TIM_SLAVEMODE_RESET) || \ ((__MODE__) == TIM_SLAVEMODE_GATED) || \ ((__MODE__) == TIM_SLAVEMODE_TRIGGER) || \ ((__MODE__) == TIM_SLAVEMODE_EXTERNAL1)) #define IS_TIM_PWM_MODE(__MODE__) (((__MODE__) == TIM_OCMODE_PWM1) || \ ((__MODE__) == TIM_OCMODE_PWM2)) #define IS_TIM_OC_MODE(__MODE__) (((__MODE__) == TIM_OCMODE_TIMING) || \ ((__MODE__) == TIM_OCMODE_ACTIVE) || \ ((__MODE__) == TIM_OCMODE_INACTIVE) || \ ((__MODE__) == TIM_OCMODE_TOGGLE) || \ ((__MODE__) == TIM_OCMODE_FORCED_ACTIVE) || \ ((__MODE__) == TIM_OCMODE_FORCED_INACTIVE)) #define IS_TIM_TRIGGER_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_TS_ITR0) || \ ((__SELECTION__) == TIM_TS_ITR1) || \ ((__SELECTION__) == TIM_TS_ITR2) || \ ((__SELECTION__) == TIM_TS_ITR3) || \ ((__SELECTION__) == TIM_TS_TI1F_ED) || \ ((__SELECTION__) == TIM_TS_TI1FP1) || \ ((__SELECTION__) == TIM_TS_TI2FP2) || \ ((__SELECTION__) == TIM_TS_ETRF)) #define IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_TS_ITR0) || \ ((__SELECTION__) == TIM_TS_ITR1) || \ ((__SELECTION__) == TIM_TS_ITR2) || \ ((__SELECTION__) == TIM_TS_ITR3) || \ ((__SELECTION__) == TIM_TS_NONE)) #define IS_TIM_TRIGGERPOLARITY(__POLARITY__) (((__POLARITY__) == TIM_TRIGGERPOLARITY_INVERTED ) || \ ((__POLARITY__) == TIM_TRIGGERPOLARITY_NONINVERTED) || \ ((__POLARITY__) == TIM_TRIGGERPOLARITY_RISING ) || \ ((__POLARITY__) == TIM_TRIGGERPOLARITY_FALLING ) || \ ((__POLARITY__) == TIM_TRIGGERPOLARITY_BOTHEDGE )) #define IS_TIM_TRIGGERPRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV1) || \ ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV2) || \ ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV4) || \ ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV8)) #define IS_TIM_TRIGGERFILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) #define IS_TIM_TI1SELECTION(__TI1SELECTION__) (((__TI1SELECTION__) == TIM_TI1SELECTION_CH1) || \ ((__TI1SELECTION__) == TIM_TI1SELECTION_XORCOMBINATION)) #define IS_TIM_DMA_LENGTH(__LENGTH__) (((__LENGTH__) == TIM_DMABURSTLENGTH_1TRANSFER) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_2TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_3TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_4TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_5TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_6TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_7TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_8TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_9TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_10TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_11TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_12TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_13TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_14TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_15TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_16TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_17TRANSFERS) || \ ((__LENGTH__) == TIM_DMABURSTLENGTH_18TRANSFERS)) #define IS_TIM_DMA_DATA_LENGTH(LENGTH) (((LENGTH) >= 0x1U) && ((LENGTH) < 0x10000U)) #define IS_TIM_IC_FILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) #define IS_TIM_DEADTIME(__DEADTIME__) ((__DEADTIME__) <= 0xFFU) #define IS_TIM_SLAVEMODE_TRIGGER_ENABLED(__TRIGGER__) ((__TRIGGER__) == TIM_SLAVEMODE_TRIGGER) #define TIM_SET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__, __ICPSC__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= (__ICPSC__)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= ((__ICPSC__) << 8U)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= (__ICPSC__)) :\ ((__HANDLE__)->Instance->CCMR2 |= ((__ICPSC__) << 8U))) #define TIM_RESET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC) :\ ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC)) #define TIM_SET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__, __POLARITY__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCER |= (__POLARITY__)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCER |= ((__POLARITY__) << 4U)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCER |= ((__POLARITY__) << 8U)) :\ ((__HANDLE__)->Instance->CCER |= (((__POLARITY__) << 12U)))) #define TIM_RESET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP)) :\ ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP))) #define TIM_CHANNEL_STATE_GET(__HANDLE__, __CHANNEL__)\ (((__CHANNEL__) == TIM_CHANNEL_1) ? (__HANDLE__)->ChannelState[0] :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? (__HANDLE__)->ChannelState[1] :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? (__HANDLE__)->ChannelState[2] :\ (__HANDLE__)->ChannelState[3]) #define TIM_CHANNEL_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->ChannelState[0] = (__CHANNEL_STATE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->ChannelState[1] = (__CHANNEL_STATE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->ChannelState[2] = (__CHANNEL_STATE__)) :\ ((__HANDLE__)->ChannelState[3] = (__CHANNEL_STATE__))) #define TIM_CHANNEL_STATE_SET_ALL(__HANDLE__, __CHANNEL_STATE__) do { \ (__HANDLE__)->ChannelState[0] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelState[1] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelState[2] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelState[3] = (__CHANNEL_STATE__); \ } while(0) #define TIM_CHANNEL_N_STATE_GET(__HANDLE__, __CHANNEL__)\ (((__CHANNEL__) == TIM_CHANNEL_1) ? (__HANDLE__)->ChannelNState[0] :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? (__HANDLE__)->ChannelNState[1] :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? (__HANDLE__)->ChannelNState[2] :\ (__HANDLE__)->ChannelNState[3]) #define TIM_CHANNEL_N_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__) \ (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->ChannelNState[0] = (__CHANNEL_STATE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->ChannelNState[1] = (__CHANNEL_STATE__)) :\ ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->ChannelNState[2] = (__CHANNEL_STATE__)) :\ ((__HANDLE__)->ChannelNState[3] = (__CHANNEL_STATE__))) #define TIM_CHANNEL_N_STATE_SET_ALL(__HANDLE__, __CHANNEL_STATE__) do { \ (__HANDLE__)->ChannelNState[0] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelNState[1] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelNState[2] = (__CHANNEL_STATE__); \ (__HANDLE__)->ChannelNState[3] = (__CHANNEL_STATE__); \ } while(0) /** * @} */ /* End of private macros -----------------------------------------------------*/ /* Include TIM HAL Extended module */ #include "stm32f4xx_hal_tim_ex.h" /* Exported functions --------------------------------------------------------*/ /** @addtogroup TIM_Exported_Functions TIM Exported Functions * @{ */ /** @addtogroup TIM_Exported_Functions_Group1 TIM Time Base functions * @brief Time Base functions * @{ */ /* Time Base functions ********************************************************/ HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_Base_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIM_Base_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA(TIM_HandleTypeDef *htim); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group2 TIM Output Compare functions * @brief TIM Output Compare functions * @{ */ /* Timer Output Compare functions *********************************************/ HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_OC_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_OC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_OC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_OC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIM_OC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIM_OC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group3 TIM PWM functions * @brief TIM PWM functions * @{ */ /* Timer PWM functions ********************************************************/ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_PWM_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_PWM_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group4 TIM Input Capture functions * @brief TIM Input Capture functions * @{ */ /* Timer Input Capture functions **********************************************/ HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIM_IC_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_IC_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_IC_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_IC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_IC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group5 TIM One Pulse functions * @brief TIM One Pulse functions * @{ */ /* Timer One Pulse functions **************************************************/ HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode); HAL_StatusTypeDef HAL_TIM_OnePulse_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group6 TIM Encoder functions * @brief TIM Encoder functions * @{ */ /* Timer Encoder functions ****************************************************/ HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig); HAL_StatusTypeDef HAL_TIM_Encoder_DeInit(TIM_HandleTypeDef *htim); void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim); void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_Encoder_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData1, uint32_t *pData2, uint16_t Length); HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIM_Exported_Functions_Group7 TIM IRQ handler management * @brief IRQ handler management * @{ */ /* Interrupt Handler functions ***********************************************/ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim); /** * @} */ /** @defgroup TIM_Exported_Functions_Group8 TIM Peripheral Control functions * @brief Peripheral Control functions * @{ */ /* Control functions *********************************************************/ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_IC_InitTypeDef *sConfig, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, uint32_t OutputChannel, uint32_t InputChannel); HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, TIM_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel); HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig); HAL_StatusTypeDef HAL_TIM_ConfigTI1Input(TIM_HandleTypeDef *htim, uint32_t TI1_Selection); HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig); HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro_IT(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig); HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength); HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength); HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc); HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength); HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength); HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc); HAL_StatusTypeDef HAL_TIM_GenerateEvent(TIM_HandleTypeDef *htim, uint32_t EventSource); uint32_t HAL_TIM_ReadCapturedValue(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions * @brief TIM Callbacks functions * @{ */ /* Callback in non blocking modes (Interrupt and DMA) *************************/ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim); void HAL_TIM_PeriodElapsedHalfCpltCallback(TIM_HandleTypeDef *htim); void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim); void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim); void HAL_TIM_IC_CaptureHalfCpltCallback(TIM_HandleTypeDef *htim); void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim); void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim); void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim); void HAL_TIM_TriggerHalfCpltCallback(TIM_HandleTypeDef *htim); void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim); /* Callbacks Register/UnRegister functions ***********************************/ #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) HAL_StatusTypeDef HAL_TIM_RegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, pTIM_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_TIM_UnRegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup TIM_Exported_Functions_Group10 TIM Peripheral State functions * @brief Peripheral State functions * @{ */ /* Peripheral State functions ************************************************/ HAL_TIM_StateTypeDef HAL_TIM_Base_GetState(TIM_HandleTypeDef *htim); HAL_TIM_StateTypeDef HAL_TIM_OC_GetState(TIM_HandleTypeDef *htim); HAL_TIM_StateTypeDef HAL_TIM_PWM_GetState(TIM_HandleTypeDef *htim); HAL_TIM_StateTypeDef HAL_TIM_IC_GetState(TIM_HandleTypeDef *htim); HAL_TIM_StateTypeDef HAL_TIM_OnePulse_GetState(TIM_HandleTypeDef *htim); HAL_TIM_StateTypeDef HAL_TIM_Encoder_GetState(TIM_HandleTypeDef *htim); /* Peripheral Channel state functions ************************************************/ HAL_TIM_ActiveChannel HAL_TIM_GetActiveChannel(TIM_HandleTypeDef *htim); HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_TIM_DMABurstStateTypeDef HAL_TIM_DMABurstState(TIM_HandleTypeDef *htim); /** * @} */ /** * @} */ /* End of exported functions -------------------------------------------------*/ /* Private functions----------------------------------------------------------*/ /** @defgroup TIM_Private_Functions TIM Private Functions * @{ */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure); void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter); void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter); void TIM_DMADelayPulseHalfCplt(DMA_HandleTypeDef *hdma); void TIM_DMAError(DMA_HandleTypeDef *hdma); void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma); void TIM_DMACaptureHalfCplt(DMA_HandleTypeDef *hdma); void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) void TIM_ResetCallback(TIM_HandleTypeDef *htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @} */ /* End of private functions --------------------------------------------------*/ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_TIM_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_tim_ex.h * @author MCD Application Team * @brief Header file of TIM HAL Extended module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_HAL_TIM_EX_H #define STM32F4xx_HAL_TIM_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup TIMEx * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup TIMEx_Exported_Types TIM Extended Exported Types * @{ */ /** * @brief TIM Hall sensor Configuration Structure definition */ typedef struct { uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Input_Capture_Polarity */ uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ uint32_t IC1Filter; /*!< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ } TIM_HallSensor_InitTypeDef; /** * @} */ /* End of exported types -----------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /** @defgroup TIMEx_Exported_Constants TIM Extended Exported Constants * @{ */ /** @defgroup TIMEx_Remap TIM Extended Remapping * @{ */ #if defined (TIM2) #if defined(TIM8) #define TIM_TIM2_TIM8_TRGO 0x00000000U /*!< TIM2 ITR1 is connected to TIM8 TRGO */ #else #define TIM_TIM2_ETH_PTP TIM_OR_ITR1_RMP_0 /*!< TIM2 ITR1 is connected to PTP trigger output */ #endif /* TIM8 */ #define TIM_TIM2_USBFS_SOF TIM_OR_ITR1_RMP_1 /*!< TIM2 ITR1 is connected to OTG FS SOF */ #define TIM_TIM2_USBHS_SOF (TIM_OR_ITR1_RMP_1 | TIM_OR_ITR1_RMP_0) /*!< TIM2 ITR1 is connected to OTG HS SOF */ #endif /* TIM2 */ #define TIM_TIM5_GPIO 0x00000000U /*!< TIM5 TI4 is connected to GPIO */ #define TIM_TIM5_LSI TIM_OR_TI4_RMP_0 /*!< TIM5 TI4 is connected to LSI */ #define TIM_TIM5_LSE TIM_OR_TI4_RMP_1 /*!< TIM5 TI4 is connected to LSE */ #define TIM_TIM5_RTC (TIM_OR_TI4_RMP_1 | TIM_OR_TI4_RMP_0) /*!< TIM5 TI4 is connected to the RTC wakeup interrupt */ #define TIM_TIM11_GPIO 0x00000000U /*!< TIM11 TI1 is connected to GPIO */ #define TIM_TIM11_HSE TIM_OR_TI1_RMP_1 /*!< TIM11 TI1 is connected to HSE_RTC clock */ #if defined(SPDIFRX) #define TIM_TIM11_SPDIFRX TIM_OR_TI1_RMP_0 /*!< TIM11 TI1 is connected to SPDIFRX_FRAME_SYNC */ #endif /* SPDIFRX*/ #if defined(LPTIM_OR_TIM1_ITR2_RMP) && defined(LPTIM_OR_TIM5_ITR1_RMP) && defined(LPTIM_OR_TIM5_ITR1_RMP) #define LPTIM_REMAP_MASK 0x10000000U #define TIM_TIM9_TIM3_TRGO LPTIM_REMAP_MASK /*!< TIM9 ITR1 is connected to TIM3 TRGO */ #define TIM_TIM9_LPTIM (LPTIM_REMAP_MASK | LPTIM_OR_TIM9_ITR1_RMP) /*!< TIM9 ITR1 is connected to LPTIM1 output */ #define TIM_TIM5_TIM3_TRGO LPTIM_REMAP_MASK /*!< TIM5 ITR1 is connected to TIM3 TRGO */ #define TIM_TIM5_LPTIM (LPTIM_REMAP_MASK | LPTIM_OR_TIM5_ITR1_RMP) /*!< TIM5 ITR1 is connected to LPTIM1 output */ #define TIM_TIM1_TIM3_TRGO LPTIM_REMAP_MASK /*!< TIM1 ITR2 is connected to TIM3 TRGO */ #define TIM_TIM1_LPTIM (LPTIM_REMAP_MASK | LPTIM_OR_TIM1_ITR2_RMP) /*!< TIM1 ITR2 is connected to LPTIM1 output */ #endif /* LPTIM_OR_TIM1_ITR2_RMP && LPTIM_OR_TIM5_ITR1_RMP && LPTIM_OR_TIM5_ITR1_RMP */ /** * @} */ /** * @} */ /* End of exported constants -------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /** @defgroup TIMEx_Exported_Macros TIM Extended Exported Macros * @{ */ /** * @} */ /* End of exported macro -----------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /** @defgroup TIMEx_Private_Macros TIM Extended Private Macros * @{ */ #if defined(SPDIFRX) #define IS_TIM_REMAP(INSTANCE, TIM_REMAP) \ ((((INSTANCE) == TIM2) && (((TIM_REMAP) == TIM_TIM2_TIM8_TRGO) || \ ((TIM_REMAP) == TIM_TIM2_USBFS_SOF) || \ ((TIM_REMAP) == TIM_TIM2_USBHS_SOF))) || \ (((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_GPIO) || \ ((TIM_REMAP) == TIM_TIM5_LSI) || \ ((TIM_REMAP) == TIM_TIM5_LSE) || \ ((TIM_REMAP) == TIM_TIM5_RTC))) || \ (((INSTANCE) == TIM11) && (((TIM_REMAP) == TIM_TIM11_GPIO) || \ ((TIM_REMAP) == TIM_TIM11_SPDIFRX) || \ ((TIM_REMAP) == TIM_TIM11_HSE)))) #elif defined(TIM2) #if defined(LPTIM_OR_TIM1_ITR2_RMP) && defined(LPTIM_OR_TIM5_ITR1_RMP) && defined(LPTIM_OR_TIM5_ITR1_RMP) #define IS_TIM_REMAP(INSTANCE, TIM_REMAP) \ ((((INSTANCE) == TIM2) && (((TIM_REMAP) == TIM_TIM2_TIM8_TRGO) || \ ((TIM_REMAP) == TIM_TIM2_USBFS_SOF) || \ ((TIM_REMAP) == TIM_TIM2_USBHS_SOF))) || \ (((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_GPIO) || \ ((TIM_REMAP) == TIM_TIM5_LSI) || \ ((TIM_REMAP) == TIM_TIM5_LSE) || \ ((TIM_REMAP) == TIM_TIM5_RTC))) || \ (((INSTANCE) == TIM11) && (((TIM_REMAP) == TIM_TIM11_GPIO) || \ ((TIM_REMAP) == TIM_TIM11_HSE))) || \ (((INSTANCE) == TIM1) && (((TIM_REMAP) == TIM_TIM1_TIM3_TRGO) || \ ((TIM_REMAP) == TIM_TIM1_LPTIM))) || \ (((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_TIM3_TRGO) || \ ((TIM_REMAP) == TIM_TIM5_LPTIM))) || \ (((INSTANCE) == TIM9) && (((TIM_REMAP) == TIM_TIM9_TIM3_TRGO) || \ ((TIM_REMAP) == TIM_TIM9_LPTIM)))) #elif defined(TIM8) #define IS_TIM_REMAP(INSTANCE, TIM_REMAP) \ ((((INSTANCE) == TIM2) && (((TIM_REMAP) == TIM_TIM2_TIM8_TRGO) || \ ((TIM_REMAP) == TIM_TIM2_USBFS_SOF) || \ ((TIM_REMAP) == TIM_TIM2_USBHS_SOF))) || \ (((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_GPIO) || \ ((TIM_REMAP) == TIM_TIM5_LSI) || \ ((TIM_REMAP) == TIM_TIM5_LSE) || \ ((TIM_REMAP) == TIM_TIM5_RTC))) || \ (((INSTANCE) == TIM11) && (((TIM_REMAP) == TIM_TIM11_GPIO) || \ ((TIM_REMAP) == TIM_TIM11_HSE)))) #else #define IS_TIM_REMAP(INSTANCE, TIM_REMAP) \ ((((INSTANCE) == TIM2) && (((TIM_REMAP) == TIM_TIM2_ETH_PTP) || \ ((TIM_REMAP) == TIM_TIM2_USBFS_SOF) || \ ((TIM_REMAP) == TIM_TIM2_USBHS_SOF))) || \ (((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_GPIO) || \ ((TIM_REMAP) == TIM_TIM5_LSI) || \ ((TIM_REMAP) == TIM_TIM5_LSE) || \ ((TIM_REMAP) == TIM_TIM5_RTC))) || \ (((INSTANCE) == TIM11) && (((TIM_REMAP) == TIM_TIM11_GPIO) || \ ((TIM_REMAP) == TIM_TIM11_HSE)))) #endif /* LPTIM_OR_TIM1_ITR2_RMP && LPTIM_OR_TIM5_ITR1_RMP && LPTIM_OR_TIM5_ITR1_RMP */ #else #define IS_TIM_REMAP(INSTANCE, TIM_REMAP) \ ((((INSTANCE) == TIM5) && (((TIM_REMAP) == TIM_TIM5_GPIO) || \ ((TIM_REMAP) == TIM_TIM5_LSI) || \ ((TIM_REMAP) == TIM_TIM5_LSE) || \ ((TIM_REMAP) == TIM_TIM5_RTC))) || \ (((INSTANCE) == TIM11) && (((TIM_REMAP) == TIM_TIM11_GPIO) || \ ((TIM_REMAP) == TIM_TIM11_HSE)))) #endif /* SPDIFRX */ /** * @} */ /* End of private macro ------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup TIMEx_Exported_Functions TIM Extended Exported Functions * @{ */ /** @addtogroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions * @brief Timer Hall Sensor functions * @{ */ /* Timer Hall Sensor functions **********************************************/ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef *sConfig); HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim); void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim); void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim); /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim); HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions * @brief Timer Complementary Output Compare functions * @{ */ /* Timer Complementary Output Compare functions *****************************/ /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions * @brief Timer Complementary PWM functions * @{ */ /* Timer Complementary PWM functions ****************************************/ /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); /* Non-Blocking mode: DMA */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions * @brief Timer Complementary One Pulse functions * @{ */ /* Timer Complementary One Pulse functions **********************************/ /* Blocking mode: Polling */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); /* Non-Blocking mode: Interrupt */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions * @brief Peripheral Control functions * @{ */ /* Extended Control functions ************************************************/ HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource); HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig); HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions * @brief Extended Callbacks functions * @{ */ /* Extended Callback **********************************************************/ void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim); void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim); void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); /** * @} */ /** @addtogroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions * @brief Extended Peripheral State functions * @{ */ /* Extended Peripheral State functions ***************************************/ HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim); HAL_TIM_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(TIM_HandleTypeDef *htim, uint32_t ChannelN); /** * @} */ /** * @} */ /* End of exported functions -------------------------------------------------*/ /* Private functions----------------------------------------------------------*/ /** @addtogroup TIMEx_Private_Functions TIMEx Private Functions * @{ */ void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma); /** * @} */ /* End of private functions --------------------------------------------------*/ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_HAL_TIM_EX_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_uart.h * @author MCD Application Team * @brief Header file of UART HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_UART_H #define __STM32F4xx_HAL_UART_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup UART * @{ */ /* Exported types ------------------------------------------------------------*/ /** @defgroup UART_Exported_Types UART Exported Types * @{ */ /** * @brief UART Init Structure definition */ typedef struct { uint32_t BaudRate; /*!< This member configures the UART communication baud rate. The baud rate is computed using the following formula: - IntegerDivider = ((PCLKx) / (8 * (OVR8+1) * (huart->Init.BaudRate))) - FractionalDivider = ((IntegerDivider - ((uint32_t) IntegerDivider)) * 8 * (OVR8+1)) + 0.5 Where OVR8 is the "oversampling by 8 mode" configuration bit in the CR1 register. */ uint32_t WordLength; /*!< Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of @ref UART_Word_Length */ uint32_t StopBits; /*!< Specifies the number of stop bits transmitted. This parameter can be a value of @ref UART_Stop_Bits */ uint32_t Parity; /*!< Specifies the parity mode. This parameter can be a value of @ref UART_Parity @note When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits). */ uint32_t Mode; /*!< Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of @ref UART_Mode */ uint32_t HwFlowCtl; /*!< Specifies whether the hardware flow control mode is enabled or disabled. This parameter can be a value of @ref UART_Hardware_Flow_Control */ uint32_t OverSampling; /*!< Specifies whether the Over sampling 8 is enabled or disabled, to achieve higher speed (up to fPCLK/8). This parameter can be a value of @ref UART_Over_Sampling */ } UART_InitTypeDef; /** * @brief HAL UART State structures definition * @note HAL UART State value is a combination of 2 different substates: gState and RxState. * - gState contains UART state information related to global Handle management * and also information related to Tx operations. * gState value coding follow below described bitmap : * b7-b6 Error information * 00 : No Error * 01 : (Not Used) * 10 : Timeout * 11 : Error * b5 Peripheral initialization status * 0 : Reset (Peripheral not initialized) * 1 : Init done (Peripheral initialized. HAL UART Init function already called) * b4-b3 (not used) * xx : Should be set to 00 * b2 Intrinsic process state * 0 : Ready * 1 : Busy (Peripheral busy with some configuration or internal operations) * b1 (not used) * x : Should be set to 0 * b0 Tx state * 0 : Ready (no Tx operation ongoing) * 1 : Busy (Tx operation ongoing) * - RxState contains information related to Rx operations. * RxState value coding follow below described bitmap : * b7-b6 (not used) * xx : Should be set to 00 * b5 Peripheral initialization status * 0 : Reset (Peripheral not initialized) * 1 : Init done (Peripheral initialized) * b4-b2 (not used) * xxx : Should be set to 000 * b1 Rx state * 0 : Ready (no Rx operation ongoing) * 1 : Busy (Rx operation ongoing) * b0 (not used) * x : Should be set to 0. */ typedef enum { HAL_UART_STATE_RESET = 0x00U, /*!< Peripheral is not yet Initialized Value is allowed for gState and RxState */ HAL_UART_STATE_READY = 0x20U, /*!< Peripheral Initialized and ready for use Value is allowed for gState and RxState */ HAL_UART_STATE_BUSY = 0x24U, /*!< an internal process is ongoing Value is allowed for gState only */ HAL_UART_STATE_BUSY_TX = 0x21U, /*!< Data Transmission process is ongoing Value is allowed for gState only */ HAL_UART_STATE_BUSY_RX = 0x22U, /*!< Data Reception process is ongoing Value is allowed for RxState only */ HAL_UART_STATE_BUSY_TX_RX = 0x23U, /*!< Data Transmission and Reception process is ongoing Not to be used for neither gState nor RxState. Value is result of combination (Or) between gState and RxState values */ HAL_UART_STATE_TIMEOUT = 0xA0U, /*!< Timeout state Value is allowed for gState only */ HAL_UART_STATE_ERROR = 0xE0U /*!< Error Value is allowed for gState only */ } HAL_UART_StateTypeDef; /** * @brief HAL UART Reception type definition * @note HAL UART Reception type value aims to identify which type of Reception is ongoing. * It is expected to admit following values : * HAL_UART_RECEPTION_STANDARD = 0x00U, * HAL_UART_RECEPTION_TOIDLE = 0x01U, */ typedef uint32_t HAL_UART_RxTypeTypeDef; /** * @brief UART handle Structure definition */ typedef struct __UART_HandleTypeDef { USART_TypeDef *Instance; /*!< UART registers base address */ UART_InitTypeDef Init; /*!< UART communication parameters */ uint8_t *pTxBuffPtr; /*!< Pointer to UART Tx transfer Buffer */ uint16_t TxXferSize; /*!< UART Tx Transfer size */ __IO uint16_t TxXferCount; /*!< UART Tx Transfer Counter */ uint8_t *pRxBuffPtr; /*!< Pointer to UART Rx transfer Buffer */ uint16_t RxXferSize; /*!< UART Rx Transfer size */ __IO uint16_t RxXferCount; /*!< UART Rx Transfer Counter */ __IO HAL_UART_RxTypeTypeDef ReceptionType; /*!< Type of ongoing reception */ DMA_HandleTypeDef *hdmatx; /*!< UART Tx DMA Handle parameters */ DMA_HandleTypeDef *hdmarx; /*!< UART Rx DMA Handle parameters */ HAL_LockTypeDef Lock; /*!< Locking object */ __IO HAL_UART_StateTypeDef gState; /*!< UART state information related to global Handle management and also related to Tx operations. This parameter can be a value of @ref HAL_UART_StateTypeDef */ __IO HAL_UART_StateTypeDef RxState; /*!< UART state information related to Rx operations. This parameter can be a value of @ref HAL_UART_StateTypeDef */ __IO uint32_t ErrorCode; /*!< UART Error code */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) void (* TxHalfCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Tx Half Complete Callback */ void (* TxCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Tx Complete Callback */ void (* RxHalfCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Rx Half Complete Callback */ void (* RxCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Rx Complete Callback */ void (* ErrorCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Error Callback */ void (* AbortCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Complete Callback */ void (* AbortTransmitCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Transmit Complete Callback */ void (* AbortReceiveCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Receive Complete Callback */ void (* WakeupCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Wakeup Callback */ void (* RxEventCallback)(struct __UART_HandleTypeDef *huart, uint16_t Pos); /*!< UART Reception Event Callback */ void (* MspInitCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Msp Init callback */ void (* MspDeInitCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Msp DeInit callback */ #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } UART_HandleTypeDef; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /** * @brief HAL UART Callback ID enumeration definition */ typedef enum { HAL_UART_TX_HALFCOMPLETE_CB_ID = 0x00U, /*!< UART Tx Half Complete Callback ID */ HAL_UART_TX_COMPLETE_CB_ID = 0x01U, /*!< UART Tx Complete Callback ID */ HAL_UART_RX_HALFCOMPLETE_CB_ID = 0x02U, /*!< UART Rx Half Complete Callback ID */ HAL_UART_RX_COMPLETE_CB_ID = 0x03U, /*!< UART Rx Complete Callback ID */ HAL_UART_ERROR_CB_ID = 0x04U, /*!< UART Error Callback ID */ HAL_UART_ABORT_COMPLETE_CB_ID = 0x05U, /*!< UART Abort Complete Callback ID */ HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U, /*!< UART Abort Transmit Complete Callback ID */ HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U, /*!< UART Abort Receive Complete Callback ID */ HAL_UART_WAKEUP_CB_ID = 0x08U, /*!< UART Wakeup Callback ID */ HAL_UART_MSPINIT_CB_ID = 0x0BU, /*!< UART MspInit callback ID */ HAL_UART_MSPDEINIT_CB_ID = 0x0CU /*!< UART MspDeInit callback ID */ } HAL_UART_CallbackIDTypeDef; /** * @brief HAL UART Callback pointer definition */ typedef void (*pUART_CallbackTypeDef)(UART_HandleTypeDef *huart); /*!< pointer to an UART callback function */ typedef void (*pUART_RxEventCallbackTypeDef)(struct __UART_HandleTypeDef *huart, uint16_t Pos); /*!< pointer to a UART Rx Event specific callback function */ #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ /** * @} */ /* Exported constants --------------------------------------------------------*/ /** @defgroup UART_Exported_Constants UART Exported Constants * @{ */ /** @defgroup UART_Error_Code UART Error Code * @{ */ #define HAL_UART_ERROR_NONE 0x00000000U /*!< No error */ #define HAL_UART_ERROR_PE 0x00000001U /*!< Parity error */ #define HAL_UART_ERROR_NE 0x00000002U /*!< Noise error */ #define HAL_UART_ERROR_FE 0x00000004U /*!< Frame error */ #define HAL_UART_ERROR_ORE 0x00000008U /*!< Overrun error */ #define HAL_UART_ERROR_DMA 0x00000010U /*!< DMA transfer error */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) #define HAL_UART_ERROR_INVALID_CALLBACK 0x00000020U /*!< Invalid Callback error */ #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup UART_Word_Length UART Word Length * @{ */ #define UART_WORDLENGTH_8B 0x00000000U #define UART_WORDLENGTH_9B ((uint32_t)USART_CR1_M) /** * @} */ /** @defgroup UART_Stop_Bits UART Number of Stop Bits * @{ */ #define UART_STOPBITS_1 0x00000000U #define UART_STOPBITS_2 ((uint32_t)USART_CR2_STOP_1) /** * @} */ /** @defgroup UART_Parity UART Parity * @{ */ #define UART_PARITY_NONE 0x00000000U #define UART_PARITY_EVEN ((uint32_t)USART_CR1_PCE) #define UART_PARITY_ODD ((uint32_t)(USART_CR1_PCE | USART_CR1_PS)) /** * @} */ /** @defgroup UART_Hardware_Flow_Control UART Hardware Flow Control * @{ */ #define UART_HWCONTROL_NONE 0x00000000U #define UART_HWCONTROL_RTS ((uint32_t)USART_CR3_RTSE) #define UART_HWCONTROL_CTS ((uint32_t)USART_CR3_CTSE) #define UART_HWCONTROL_RTS_CTS ((uint32_t)(USART_CR3_RTSE | USART_CR3_CTSE)) /** * @} */ /** @defgroup UART_Mode UART Transfer Mode * @{ */ #define UART_MODE_RX ((uint32_t)USART_CR1_RE) #define UART_MODE_TX ((uint32_t)USART_CR1_TE) #define UART_MODE_TX_RX ((uint32_t)(USART_CR1_TE | USART_CR1_RE)) /** * @} */ /** @defgroup UART_State UART State * @{ */ #define UART_STATE_DISABLE 0x00000000U #define UART_STATE_ENABLE ((uint32_t)USART_CR1_UE) /** * @} */ /** @defgroup UART_Over_Sampling UART Over Sampling * @{ */ #define UART_OVERSAMPLING_16 0x00000000U #define UART_OVERSAMPLING_8 ((uint32_t)USART_CR1_OVER8) /** * @} */ /** @defgroup UART_LIN_Break_Detection_Length UART LIN Break Detection Length * @{ */ #define UART_LINBREAKDETECTLENGTH_10B 0x00000000U #define UART_LINBREAKDETECTLENGTH_11B ((uint32_t)USART_CR2_LBDL) /** * @} */ /** @defgroup UART_WakeUp_functions UART Wakeup Functions * @{ */ #define UART_WAKEUPMETHOD_IDLELINE 0x00000000U #define UART_WAKEUPMETHOD_ADDRESSMARK ((uint32_t)USART_CR1_WAKE) /** * @} */ /** @defgroup UART_Flags UART FLags * Elements values convention: 0xXXXX * - 0xXXXX : Flag mask in the SR register * @{ */ #define UART_FLAG_CTS ((uint32_t)USART_SR_CTS) #define UART_FLAG_LBD ((uint32_t)USART_SR_LBD) #define UART_FLAG_TXE ((uint32_t)USART_SR_TXE) #define UART_FLAG_TC ((uint32_t)USART_SR_TC) #define UART_FLAG_RXNE ((uint32_t)USART_SR_RXNE) #define UART_FLAG_IDLE ((uint32_t)USART_SR_IDLE) #define UART_FLAG_ORE ((uint32_t)USART_SR_ORE) #define UART_FLAG_NE ((uint32_t)USART_SR_NE) #define UART_FLAG_FE ((uint32_t)USART_SR_FE) #define UART_FLAG_PE ((uint32_t)USART_SR_PE) /** * @} */ /** @defgroup UART_Interrupt_definition UART Interrupt Definitions * Elements values convention: 0xY000XXXX * - XXXX : Interrupt mask (16 bits) in the Y register * - Y : Interrupt source register (2bits) * - 0001: CR1 register * - 0010: CR2 register * - 0011: CR3 register * @{ */ #define UART_IT_PE ((uint32_t)(UART_CR1_REG_INDEX << 28U | USART_CR1_PEIE)) #define UART_IT_TXE ((uint32_t)(UART_CR1_REG_INDEX << 28U | USART_CR1_TXEIE)) #define UART_IT_TC ((uint32_t)(UART_CR1_REG_INDEX << 28U | USART_CR1_TCIE)) #define UART_IT_RXNE ((uint32_t)(UART_CR1_REG_INDEX << 28U | USART_CR1_RXNEIE)) #define UART_IT_IDLE ((uint32_t)(UART_CR1_REG_INDEX << 28U | USART_CR1_IDLEIE)) #define UART_IT_LBD ((uint32_t)(UART_CR2_REG_INDEX << 28U | USART_CR2_LBDIE)) #define UART_IT_CTS ((uint32_t)(UART_CR3_REG_INDEX << 28U | USART_CR3_CTSIE)) #define UART_IT_ERR ((uint32_t)(UART_CR3_REG_INDEX << 28U | USART_CR3_EIE)) /** * @} */ /** @defgroup UART_RECEPTION_TYPE_Values UART Reception type values * @{ */ #define HAL_UART_RECEPTION_STANDARD (0x00000000U) /*!< Standard reception */ #define HAL_UART_RECEPTION_TOIDLE (0x00000001U) /*!< Reception till completion or IDLE event */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup UART_Exported_Macros UART Exported Macros * @{ */ /** @brief Reset UART handle gstate & RxState * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) #define __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) do{ \ (__HANDLE__)->gState = HAL_UART_STATE_RESET; \ (__HANDLE__)->RxState = HAL_UART_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0U) #else #define __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) do{ \ (__HANDLE__)->gState = HAL_UART_STATE_RESET; \ (__HANDLE__)->RxState = HAL_UART_STATE_RESET; \ } while(0U) #endif /*USE_HAL_UART_REGISTER_CALLBACKS */ /** @brief Flushes the UART DR register * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). */ #define __HAL_UART_FLUSH_DRREGISTER(__HANDLE__) ((__HANDLE__)->Instance->DR) /** @brief Checks whether the specified UART flag is set or not. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @param __FLAG__ specifies the flag to check. * This parameter can be one of the following values: * @arg UART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5) * @arg UART_FLAG_LBD: LIN Break detection flag * @arg UART_FLAG_TXE: Transmit data register empty flag * @arg UART_FLAG_TC: Transmission Complete flag * @arg UART_FLAG_RXNE: Receive data register not empty flag * @arg UART_FLAG_IDLE: Idle Line detection flag * @arg UART_FLAG_ORE: Overrun Error flag * @arg UART_FLAG_NE: Noise Error flag * @arg UART_FLAG_FE: Framing Error flag * @arg UART_FLAG_PE: Parity Error flag * @retval The new state of __FLAG__ (TRUE or FALSE). */ #define __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) /** @brief Clears the specified UART pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @param __FLAG__ specifies the flag to check. * This parameter can be any combination of the following values: * @arg UART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5). * @arg UART_FLAG_LBD: LIN Break detection flag. * @arg UART_FLAG_TC: Transmission Complete flag. * @arg UART_FLAG_RXNE: Receive data register not empty flag. * * @note PE (Parity error), FE (Framing error), NE (Noise error), ORE (Overrun * error) and IDLE (Idle line detected) flags are cleared by software * sequence: a read operation to USART_SR register followed by a read * operation to USART_DR register. * @note RXNE flag can be also cleared by a read to the USART_DR register. * @note TC flag can be also cleared by software sequence: a read operation to * USART_SR register followed by a write operation to USART_DR register. * @note TXE flag is cleared only by a write to the USART_DR register. * * @retval None */ #define __HAL_UART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) /** @brief Clears the UART PE pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #define __HAL_UART_CLEAR_PEFLAG(__HANDLE__) \ do{ \ __IO uint32_t tmpreg = 0x00U; \ tmpreg = (__HANDLE__)->Instance->SR; \ tmpreg = (__HANDLE__)->Instance->DR; \ UNUSED(tmpreg); \ } while(0U) /** @brief Clears the UART FE pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #define __HAL_UART_CLEAR_FEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) /** @brief Clears the UART NE pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #define __HAL_UART_CLEAR_NEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) /** @brief Clears the UART ORE pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #define __HAL_UART_CLEAR_OREFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) /** @brief Clears the UART IDLE pending flag. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @retval None */ #define __HAL_UART_CLEAR_IDLEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) /** @brief Enable the specified UART interrupt. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @param __INTERRUPT__ specifies the UART interrupt source to enable. * This parameter can be one of the following values: * @arg UART_IT_CTS: CTS change interrupt * @arg UART_IT_LBD: LIN Break detection interrupt * @arg UART_IT_TXE: Transmit Data Register empty interrupt * @arg UART_IT_TC: Transmission complete interrupt * @arg UART_IT_RXNE: Receive Data register not empty interrupt * @arg UART_IT_IDLE: Idle line detection interrupt * @arg UART_IT_PE: Parity Error interrupt * @arg UART_IT_ERR: Error interrupt(Frame error, noise error, overrun error) * @retval None */ #define __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == UART_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & UART_IT_MASK)): \ (((__INTERRUPT__) >> 28U) == UART_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 |= ((__INTERRUPT__) & UART_IT_MASK)): \ ((__HANDLE__)->Instance->CR3 |= ((__INTERRUPT__) & UART_IT_MASK))) /** @brief Disable the specified UART interrupt. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @param __INTERRUPT__ specifies the UART interrupt source to disable. * This parameter can be one of the following values: * @arg UART_IT_CTS: CTS change interrupt * @arg UART_IT_LBD: LIN Break detection interrupt * @arg UART_IT_TXE: Transmit Data Register empty interrupt * @arg UART_IT_TC: Transmission complete interrupt * @arg UART_IT_RXNE: Receive Data register not empty interrupt * @arg UART_IT_IDLE: Idle line detection interrupt * @arg UART_IT_PE: Parity Error interrupt * @arg UART_IT_ERR: Error interrupt(Frame error, noise error, overrun error) * @retval None */ #define __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == UART_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 &= ~((__INTERRUPT__) & UART_IT_MASK)): \ (((__INTERRUPT__) >> 28U) == UART_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 &= ~((__INTERRUPT__) & UART_IT_MASK)): \ ((__HANDLE__)->Instance->CR3 &= ~ ((__INTERRUPT__) & UART_IT_MASK))) /** @brief Checks whether the specified UART interrupt source is enabled or not. * @param __HANDLE__ specifies the UART Handle. * UART Handle selects the USARTx or UARTy peripheral * (USART,UART availability and x,y values depending on device). * @param __IT__ specifies the UART interrupt source to check. * This parameter can be one of the following values: * @arg UART_IT_CTS: CTS change interrupt (not available for UART4 and UART5) * @arg UART_IT_LBD: LIN Break detection interrupt * @arg UART_IT_TXE: Transmit Data Register empty interrupt * @arg UART_IT_TC: Transmission complete interrupt * @arg UART_IT_RXNE: Receive Data register not empty interrupt * @arg UART_IT_IDLE: Idle line detection interrupt * @arg UART_IT_ERR: Error interrupt * @retval The new state of __IT__ (TRUE or FALSE). */ #define __HAL_UART_GET_IT_SOURCE(__HANDLE__, __IT__) (((((__IT__) >> 28U) == UART_CR1_REG_INDEX)? (__HANDLE__)->Instance->CR1:(((((uint32_t)(__IT__)) >> 28U) == UART_CR2_REG_INDEX)? \ (__HANDLE__)->Instance->CR2 : (__HANDLE__)->Instance->CR3)) & (((uint32_t)(__IT__)) & UART_IT_MASK)) /** @brief Enable CTS flow control * @note This macro allows to enable CTS hardware flow control for a given UART instance, * without need to call HAL_UART_Init() function. * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. * @note As macro is expected to be used for modifying CTS Hw flow control feature activation, without need * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : * - UART instance should have already been initialised (through call of HAL_UART_Init() ) * - macro could only be called when corresponding UART instance is disabled (i.e __HAL_UART_DISABLE(__HANDLE__)) * and should be followed by an Enable macro (i.e __HAL_UART_ENABLE(__HANDLE__)). * @param __HANDLE__ specifies the UART Handle. * The Handle Instance can be any USARTx (supporting the HW Flow control feature). * It is used to select the USART peripheral (USART availability and x value depending on device). * @retval None */ #define __HAL_UART_HWCONTROL_CTS_ENABLE(__HANDLE__) \ do{ \ SET_BIT((__HANDLE__)->Instance->CR3, USART_CR3_CTSE); \ (__HANDLE__)->Init.HwFlowCtl |= USART_CR3_CTSE; \ } while(0U) /** @brief Disable CTS flow control * @note This macro allows to disable CTS hardware flow control for a given UART instance, * without need to call HAL_UART_Init() function. * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. * @note As macro is expected to be used for modifying CTS Hw flow control feature activation, without need * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : * - UART instance should have already been initialised (through call of HAL_UART_Init() ) * - macro could only be called when corresponding UART instance is disabled (i.e __HAL_UART_DISABLE(__HANDLE__)) * and should be followed by an Enable macro (i.e __HAL_UART_ENABLE(__HANDLE__)). * @param __HANDLE__ specifies the UART Handle. * The Handle Instance can be any USARTx (supporting the HW Flow control feature). * It is used to select the USART peripheral (USART availability and x value depending on device). * @retval None */ #define __HAL_UART_HWCONTROL_CTS_DISABLE(__HANDLE__) \ do{ \ CLEAR_BIT((__HANDLE__)->Instance->CR3, USART_CR3_CTSE); \ (__HANDLE__)->Init.HwFlowCtl &= ~(USART_CR3_CTSE); \ } while(0U) /** @brief Enable RTS flow control * This macro allows to enable RTS hardware flow control for a given UART instance, * without need to call HAL_UART_Init() function. * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. * @note As macro is expected to be used for modifying RTS Hw flow control feature activation, without need * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : * - UART instance should have already been initialised (through call of HAL_UART_Init() ) * - macro could only be called when corresponding UART instance is disabled (i.e __HAL_UART_DISABLE(__HANDLE__)) * and should be followed by an Enable macro (i.e __HAL_UART_ENABLE(__HANDLE__)). * @param __HANDLE__ specifies the UART Handle. * The Handle Instance can be any USARTx (supporting the HW Flow control feature). * It is used to select the USART peripheral (USART availability and x value depending on device). * @retval None */ #define __HAL_UART_HWCONTROL_RTS_ENABLE(__HANDLE__) \ do{ \ SET_BIT((__HANDLE__)->Instance->CR3, USART_CR3_RTSE); \ (__HANDLE__)->Init.HwFlowCtl |= USART_CR3_RTSE; \ } while(0U) /** @brief Disable RTS flow control * This macro allows to disable RTS hardware flow control for a given UART instance, * without need to call HAL_UART_Init() function. * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. * @note As macro is expected to be used for modifying RTS Hw flow control feature activation, without need * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : * - UART instance should have already been initialised (through call of HAL_UART_Init() ) * - macro could only be called when corresponding UART instance is disabled (i.e __HAL_UART_DISABLE(__HANDLE__)) * and should be followed by an Enable macro (i.e __HAL_UART_ENABLE(__HANDLE__)). * @param __HANDLE__ specifies the UART Handle. * The Handle Instance can be any USARTx (supporting the HW Flow control feature). * It is used to select the USART peripheral (USART availability and x value depending on device). * @retval None */ #define __HAL_UART_HWCONTROL_RTS_DISABLE(__HANDLE__) \ do{ \ CLEAR_BIT((__HANDLE__)->Instance->CR3, USART_CR3_RTSE);\ (__HANDLE__)->Init.HwFlowCtl &= ~(USART_CR3_RTSE); \ } while(0U) /** @brief Macro to enable the UART's one bit sample method * @param __HANDLE__ specifies the UART Handle. * @retval None */ #define __HAL_UART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) /** @brief Macro to disable the UART's one bit sample method * @param __HANDLE__ specifies the UART Handle. * @retval None */ #define __HAL_UART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) /** @brief Enable UART * @param __HANDLE__ specifies the UART Handle. * @retval None */ #define __HAL_UART_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) /** @brief Disable UART * @param __HANDLE__ specifies the UART Handle. * @retval None */ #define __HAL_UART_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup UART_Exported_Functions * @{ */ /** @addtogroup UART_Exported_Functions_Group1 Initialization and de-initialization functions * @{ */ /* Initialization/de-initialization functions **********************************/ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_HalfDuplex_Init(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_LIN_Init(UART_HandleTypeDef *huart, uint32_t BreakDetectLength); HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Address, uint32_t WakeUpMethod); HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart); void HAL_UART_MspInit(UART_HandleTypeDef *huart); void HAL_UART_MspDeInit(UART_HandleTypeDef *huart); /* Callbacks Register/UnRegister functions ***********************************/ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) HAL_StatusTypeDef HAL_UART_RegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID, pUART_CallbackTypeDef pCallback); HAL_StatusTypeDef HAL_UART_UnRegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID); HAL_StatusTypeDef HAL_UART_RegisterRxEventCallback(UART_HandleTypeDef *huart, pUART_RxEventCallbackTypeDef pCallback); HAL_StatusTypeDef HAL_UART_UnRegisterRxEventCallback(UART_HandleTypeDef *huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ /** * @} */ /** @addtogroup UART_Exported_Functions_Group2 IO operation functions * @{ */ /* IO operation functions *******************************************************/ HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout); HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_UART_DMAPause(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_DMAResume(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_DMAStop(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint16_t *RxLen, uint32_t Timeout); HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); /* Transfer Abort functions */ HAL_StatusTypeDef HAL_UART_Abort(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_AbortTransmit(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_Abort_IT(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_AbortTransmit_IT(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_UART_AbortReceive_IT(UART_HandleTypeDef *huart); void HAL_UART_IRQHandler(UART_HandleTypeDef *huart); void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart); void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_AbortTransmitCpltCallback(UART_HandleTypeDef *huart); void HAL_UART_AbortReceiveCpltCallback(UART_HandleTypeDef *huart); void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size); /** * @} */ /** @addtogroup UART_Exported_Functions_Group3 * @{ */ /* Peripheral Control functions ************************************************/ HAL_StatusTypeDef HAL_LIN_SendBreak(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_MultiProcessor_EnterMuteMode(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_MultiProcessor_ExitMuteMode(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_HalfDuplex_EnableTransmitter(UART_HandleTypeDef *huart); HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver(UART_HandleTypeDef *huart); /** * @} */ /** @addtogroup UART_Exported_Functions_Group4 * @{ */ /* Peripheral State functions **************************************************/ HAL_UART_StateTypeDef HAL_UART_GetState(UART_HandleTypeDef *huart); uint32_t HAL_UART_GetError(UART_HandleTypeDef *huart); /** * @} */ /** * @} */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup UART_Private_Constants UART Private Constants * @{ */ /** @brief UART interruptions flag mask * */ #define UART_IT_MASK 0x0000FFFFU #define UART_CR1_REG_INDEX 1U #define UART_CR2_REG_INDEX 2U #define UART_CR3_REG_INDEX 3U /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup UART_Private_Macros UART Private Macros * @{ */ #define IS_UART_WORD_LENGTH(LENGTH) (((LENGTH) == UART_WORDLENGTH_8B) || \ ((LENGTH) == UART_WORDLENGTH_9B)) #define IS_UART_LIN_WORD_LENGTH(LENGTH) (((LENGTH) == UART_WORDLENGTH_8B)) #define IS_UART_STOPBITS(STOPBITS) (((STOPBITS) == UART_STOPBITS_1) || \ ((STOPBITS) == UART_STOPBITS_2)) #define IS_UART_PARITY(PARITY) (((PARITY) == UART_PARITY_NONE) || \ ((PARITY) == UART_PARITY_EVEN) || \ ((PARITY) == UART_PARITY_ODD)) #define IS_UART_HARDWARE_FLOW_CONTROL(CONTROL)\ (((CONTROL) == UART_HWCONTROL_NONE) || \ ((CONTROL) == UART_HWCONTROL_RTS) || \ ((CONTROL) == UART_HWCONTROL_CTS) || \ ((CONTROL) == UART_HWCONTROL_RTS_CTS)) #define IS_UART_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00U)) #define IS_UART_STATE(STATE) (((STATE) == UART_STATE_DISABLE) || \ ((STATE) == UART_STATE_ENABLE)) #define IS_UART_OVERSAMPLING(SAMPLING) (((SAMPLING) == UART_OVERSAMPLING_16) || \ ((SAMPLING) == UART_OVERSAMPLING_8)) #define IS_UART_LIN_OVERSAMPLING(SAMPLING) (((SAMPLING) == UART_OVERSAMPLING_16)) #define IS_UART_LIN_BREAK_DETECT_LENGTH(LENGTH) (((LENGTH) == UART_LINBREAKDETECTLENGTH_10B) || \ ((LENGTH) == UART_LINBREAKDETECTLENGTH_11B)) #define IS_UART_WAKEUPMETHOD(WAKEUP) (((WAKEUP) == UART_WAKEUPMETHOD_IDLELINE) || \ ((WAKEUP) == UART_WAKEUPMETHOD_ADDRESSMARK)) #define IS_UART_BAUDRATE(BAUDRATE) ((BAUDRATE) <= 10500000U) #define IS_UART_ADDRESS(ADDRESS) ((ADDRESS) <= 0x0FU) #define UART_DIV_SAMPLING16(_PCLK_, _BAUD_) ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(4U*((uint64_t)(_BAUD_))))) #define UART_DIVMANT_SAMPLING16(_PCLK_, _BAUD_) (UART_DIV_SAMPLING16((_PCLK_), (_BAUD_))/100U) #define UART_DIVFRAQ_SAMPLING16(_PCLK_, _BAUD_) ((((UART_DIV_SAMPLING16((_PCLK_), (_BAUD_)) - (UART_DIVMANT_SAMPLING16((_PCLK_), (_BAUD_)) * 100U)) * 16U) + 50U) / 100U) /* UART BRR = mantissa + overflow + fraction = (UART DIVMANT << 4) + (UART DIVFRAQ & 0xF0) + (UART DIVFRAQ & 0x0FU) */ #define UART_BRR_SAMPLING16(_PCLK_, _BAUD_) ((UART_DIVMANT_SAMPLING16((_PCLK_), (_BAUD_)) << 4U) + \ (UART_DIVFRAQ_SAMPLING16((_PCLK_), (_BAUD_)) & 0xF0U) + \ (UART_DIVFRAQ_SAMPLING16((_PCLK_), (_BAUD_)) & 0x0FU)) #define UART_DIV_SAMPLING8(_PCLK_, _BAUD_) ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(2U*((uint64_t)(_BAUD_))))) #define UART_DIVMANT_SAMPLING8(_PCLK_, _BAUD_) (UART_DIV_SAMPLING8((_PCLK_), (_BAUD_))/100U) #define UART_DIVFRAQ_SAMPLING8(_PCLK_, _BAUD_) ((((UART_DIV_SAMPLING8((_PCLK_), (_BAUD_)) - (UART_DIVMANT_SAMPLING8((_PCLK_), (_BAUD_)) * 100U)) * 8U) + 50U) / 100U) /* UART BRR = mantissa + overflow + fraction = (UART DIVMANT << 4) + ((UART DIVFRAQ & 0xF8) << 1) + (UART DIVFRAQ & 0x07U) */ #define UART_BRR_SAMPLING8(_PCLK_, _BAUD_) ((UART_DIVMANT_SAMPLING8((_PCLK_), (_BAUD_)) << 4U) + \ ((UART_DIVFRAQ_SAMPLING8((_PCLK_), (_BAUD_)) & 0xF8U) << 1U) + \ (UART_DIVFRAQ_SAMPLING8((_PCLK_), (_BAUD_)) & 0x07U)) /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup UART_Private_Functions UART Private Functions * @{ */ HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_HAL_UART_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_adc.h ================================================ /** ****************************************************************************** * @file stm32f4xx_ll_adc.h * @author MCD Application Team * @brief Header file of ADC LL module. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_LL_ADC_H #define __STM32F4xx_LL_ADC_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" /** @addtogroup STM32F4xx_LL_Driver * @{ */ #if defined (ADC1) || defined (ADC2) || defined (ADC3) /** @defgroup ADC_LL ADC * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @defgroup ADC_LL_Private_Constants ADC Private Constants * @{ */ /* Internal mask for ADC group regular sequencer: */ /* To select into literal LL_ADC_REG_RANK_x the relevant bits for: */ /* - sequencer register offset */ /* - sequencer rank bits position into the selected register */ /* Internal register offset for ADC group regular sequencer configuration */ /* (offset placed into a spare area of literal definition) */ #define ADC_SQR1_REGOFFSET 0x00000000UL #define ADC_SQR2_REGOFFSET 0x00000100UL #define ADC_SQR3_REGOFFSET 0x00000200UL #define ADC_SQR4_REGOFFSET 0x00000300UL #define ADC_REG_SQRX_REGOFFSET_MASK (ADC_SQR1_REGOFFSET | ADC_SQR2_REGOFFSET | ADC_SQR3_REGOFFSET | ADC_SQR4_REGOFFSET) #define ADC_REG_RANK_ID_SQRX_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) /* Definition of ADC group regular sequencer bits information to be inserted */ /* into ADC group regular sequencer ranks literals definition. */ #define ADC_REG_RANK_1_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ1) */ #define ADC_REG_RANK_2_SQRX_BITOFFSET_POS ( 5UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ2) */ #define ADC_REG_RANK_3_SQRX_BITOFFSET_POS (10UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ3) */ #define ADC_REG_RANK_4_SQRX_BITOFFSET_POS (15UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ4) */ #define ADC_REG_RANK_5_SQRX_BITOFFSET_POS (20UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ5) */ #define ADC_REG_RANK_6_SQRX_BITOFFSET_POS (25UL) /* Value equivalent to POSITION_VAL(ADC_SQR3_SQ6) */ #define ADC_REG_RANK_7_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ7) */ #define ADC_REG_RANK_8_SQRX_BITOFFSET_POS ( 5UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ8) */ #define ADC_REG_RANK_9_SQRX_BITOFFSET_POS (10UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ9) */ #define ADC_REG_RANK_10_SQRX_BITOFFSET_POS (15UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ10) */ #define ADC_REG_RANK_11_SQRX_BITOFFSET_POS (20UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ11) */ #define ADC_REG_RANK_12_SQRX_BITOFFSET_POS (25UL) /* Value equivalent to POSITION_VAL(ADC_SQR2_SQ12) */ #define ADC_REG_RANK_13_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to POSITION_VAL(ADC_SQR1_SQ13) */ #define ADC_REG_RANK_14_SQRX_BITOFFSET_POS ( 5UL) /* Value equivalent to POSITION_VAL(ADC_SQR1_SQ14) */ #define ADC_REG_RANK_15_SQRX_BITOFFSET_POS (10UL) /* Value equivalent to POSITION_VAL(ADC_SQR1_SQ15) */ #define ADC_REG_RANK_16_SQRX_BITOFFSET_POS (15UL) /* Value equivalent to POSITION_VAL(ADC_SQR1_SQ16) */ /* Internal mask for ADC group injected sequencer: */ /* To select into literal LL_ADC_INJ_RANK_x the relevant bits for: */ /* - data register offset */ /* - offset register offset */ /* - sequencer rank bits position into the selected register */ /* Internal register offset for ADC group injected data register */ /* (offset placed into a spare area of literal definition) */ #define ADC_JDR1_REGOFFSET 0x00000000UL #define ADC_JDR2_REGOFFSET 0x00000100UL #define ADC_JDR3_REGOFFSET 0x00000200UL #define ADC_JDR4_REGOFFSET 0x00000300UL /* Internal register offset for ADC group injected offset configuration */ /* (offset placed into a spare area of literal definition) */ #define ADC_JOFR1_REGOFFSET 0x00000000UL #define ADC_JOFR2_REGOFFSET 0x00001000UL #define ADC_JOFR3_REGOFFSET 0x00002000UL #define ADC_JOFR4_REGOFFSET 0x00003000UL #define ADC_INJ_JDRX_REGOFFSET_MASK (ADC_JDR1_REGOFFSET | ADC_JDR2_REGOFFSET | ADC_JDR3_REGOFFSET | ADC_JDR4_REGOFFSET) #define ADC_INJ_JOFRX_REGOFFSET_MASK (ADC_JOFR1_REGOFFSET | ADC_JOFR2_REGOFFSET | ADC_JOFR3_REGOFFSET | ADC_JOFR4_REGOFFSET) #define ADC_INJ_RANK_ID_JSQR_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) /* Internal mask for ADC group regular trigger: */ /* To select into literal LL_ADC_REG_TRIG_x the relevant bits for: */ /* - regular trigger source */ /* - regular trigger edge */ #define ADC_REG_TRIG_EXT_EDGE_DEFAULT (ADC_CR2_EXTEN_0) /* Trigger edge set to rising edge (default setting for compatibility with some ADC on other STM32 families having this setting set by HW default value) */ /* Mask containing trigger source masks for each of possible */ /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ #define ADC_REG_TRIG_SOURCE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CR2_EXTSEL) >> (4UL * 0UL)) | \ ((ADC_CR2_EXTSEL) >> (4UL * 1UL)) | \ ((ADC_CR2_EXTSEL) >> (4UL * 2UL)) | \ ((ADC_CR2_EXTSEL) >> (4UL * 3UL))) /* Mask containing trigger edge masks for each of possible */ /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ #define ADC_REG_TRIG_EDGE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CR2_EXTEN) >> (4UL * 0UL)) | \ ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 1UL)) | \ ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 2UL)) | \ ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 3UL))) /* Definition of ADC group regular trigger bits information. */ #define ADC_REG_TRIG_EXTSEL_BITOFFSET_POS (24UL) /* Value equivalent to POSITION_VAL(ADC_CR2_EXTSEL) */ #define ADC_REG_TRIG_EXTEN_BITOFFSET_POS (28UL) /* Value equivalent to POSITION_VAL(ADC_CR2_EXTEN) */ /* Internal mask for ADC group injected trigger: */ /* To select into literal LL_ADC_INJ_TRIG_x the relevant bits for: */ /* - injected trigger source */ /* - injected trigger edge */ #define ADC_INJ_TRIG_EXT_EDGE_DEFAULT (ADC_CR2_JEXTEN_0) /* Trigger edge set to rising edge (default setting for compatibility with some ADC on other STM32 families having this setting set by HW default value) */ /* Mask containing trigger source masks for each of possible */ /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ #define ADC_INJ_TRIG_SOURCE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CR2_JEXTSEL) >> (4UL * 0UL)) | \ ((ADC_CR2_JEXTSEL) >> (4UL * 1UL)) | \ ((ADC_CR2_JEXTSEL) >> (4UL * 2UL)) | \ ((ADC_CR2_JEXTSEL) >> (4UL * 3UL))) /* Mask containing trigger edge masks for each of possible */ /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ #define ADC_INJ_TRIG_EDGE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_CR2_JEXTEN) >> (4UL * 0UL)) | \ ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 1UL)) | \ ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 2UL)) | \ ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) >> (4UL * 3UL))) /* Definition of ADC group injected trigger bits information. */ #define ADC_INJ_TRIG_EXTSEL_BITOFFSET_POS (16UL) /* Value equivalent to POSITION_VAL(ADC_CR2_JEXTSEL) */ #define ADC_INJ_TRIG_EXTEN_BITOFFSET_POS (20UL) /* Value equivalent to POSITION_VAL(ADC_CR2_JEXTEN) */ /* Internal mask for ADC channel: */ /* To select into literal LL_ADC_CHANNEL_x the relevant bits for: */ /* - channel identifier defined by number */ /* - channel differentiation between external channels (connected to */ /* GPIO pins) and internal channels (connected to internal paths) */ /* - channel sampling time defined by SMPRx register offset */ /* and SMPx bits positions into SMPRx register */ #define ADC_CHANNEL_ID_NUMBER_MASK (ADC_CR1_AWDCH) #define ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS ( 0UL)/* Value equivalent to POSITION_VAL(ADC_CHANNEL_ID_NUMBER_MASK) */ #define ADC_CHANNEL_ID_MASK (ADC_CHANNEL_ID_NUMBER_MASK | ADC_CHANNEL_ID_INTERNAL_CH_MASK) /* Equivalent mask of ADC_CHANNEL_NUMBER_MASK aligned on register LSB (bit 0) */ #define ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 0x0000001FU /* Equivalent to shift: (ADC_CHANNEL_NUMBER_MASK >> POSITION_VAL(ADC_CHANNEL_NUMBER_MASK)) */ /* Channel differentiation between external and internal channels */ #define ADC_CHANNEL_ID_INTERNAL_CH 0x80000000UL /* Marker of internal channel */ #define ADC_CHANNEL_ID_INTERNAL_CH_2 0x40000000UL /* Marker of internal channel for other ADC instances, in case of different ADC internal channels mapped on same channel number on different ADC instances */ #define ADC_CHANNEL_DIFFERENCIATION_TEMPSENSOR_VBAT 0x10000000U /* Dummy bit for driver internal usage, not used in ADC channel setting registers CR1 or SQRx */ #define ADC_CHANNEL_ID_INTERNAL_CH_MASK (ADC_CHANNEL_ID_INTERNAL_CH | ADC_CHANNEL_ID_INTERNAL_CH_2 | ADC_CHANNEL_DIFFERENCIATION_TEMPSENSOR_VBAT) /* Internal register offset for ADC channel sampling time configuration */ /* (offset placed into a spare area of literal definition) */ #define ADC_SMPR1_REGOFFSET 0x00000000UL #define ADC_SMPR2_REGOFFSET 0x02000000UL #define ADC_CHANNEL_SMPRX_REGOFFSET_MASK (ADC_SMPR1_REGOFFSET | ADC_SMPR2_REGOFFSET) #define ADC_CHANNEL_SMPx_BITOFFSET_MASK 0x01F00000UL #define ADC_CHANNEL_SMPx_BITOFFSET_POS (20UL) /* Value equivalent to POSITION_VAL(ADC_CHANNEL_SMPx_BITOFFSET_MASK) */ /* Definition of channels ID number information to be inserted into */ /* channels literals definition. */ #define ADC_CHANNEL_0_NUMBER 0x00000000UL #define ADC_CHANNEL_1_NUMBER ( ADC_CR1_AWDCH_0) #define ADC_CHANNEL_2_NUMBER ( ADC_CR1_AWDCH_1 ) #define ADC_CHANNEL_3_NUMBER ( ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_4_NUMBER ( ADC_CR1_AWDCH_2 ) #define ADC_CHANNEL_5_NUMBER ( ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_6_NUMBER ( ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 ) #define ADC_CHANNEL_7_NUMBER ( ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_8_NUMBER ( ADC_CR1_AWDCH_3 ) #define ADC_CHANNEL_9_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_10_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1 ) #define ADC_CHANNEL_11_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_12_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 ) #define ADC_CHANNEL_13_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_14_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 ) #define ADC_CHANNEL_15_NUMBER ( ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_16_NUMBER (ADC_CR1_AWDCH_4 ) #define ADC_CHANNEL_17_NUMBER (ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_0) #define ADC_CHANNEL_18_NUMBER (ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_1 ) /* Definition of channels sampling time information to be inserted into */ /* channels literals definition. */ #define ADC_CHANNEL_0_SMP (ADC_SMPR2_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP0) */ #define ADC_CHANNEL_1_SMP (ADC_SMPR2_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP1) */ #define ADC_CHANNEL_2_SMP (ADC_SMPR2_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP2) */ #define ADC_CHANNEL_3_SMP (ADC_SMPR2_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP3) */ #define ADC_CHANNEL_4_SMP (ADC_SMPR2_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP4) */ #define ADC_CHANNEL_5_SMP (ADC_SMPR2_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP5) */ #define ADC_CHANNEL_6_SMP (ADC_SMPR2_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP6) */ #define ADC_CHANNEL_7_SMP (ADC_SMPR2_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP7) */ #define ADC_CHANNEL_8_SMP (ADC_SMPR2_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP8) */ #define ADC_CHANNEL_9_SMP (ADC_SMPR2_REGOFFSET | ((27UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR2_SMP9) */ #define ADC_CHANNEL_10_SMP (ADC_SMPR1_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP10) */ #define ADC_CHANNEL_11_SMP (ADC_SMPR1_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP11) */ #define ADC_CHANNEL_12_SMP (ADC_SMPR1_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP12) */ #define ADC_CHANNEL_13_SMP (ADC_SMPR1_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP13) */ #define ADC_CHANNEL_14_SMP (ADC_SMPR1_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP14) */ #define ADC_CHANNEL_15_SMP (ADC_SMPR1_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP15) */ #define ADC_CHANNEL_16_SMP (ADC_SMPR1_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP16) */ #define ADC_CHANNEL_17_SMP (ADC_SMPR1_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP17) */ #define ADC_CHANNEL_18_SMP (ADC_SMPR1_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) /* Value shifted is equivalent to POSITION_VAL(ADC_SMPR1_SMP18) */ /* Internal mask for ADC analog watchdog: */ /* To select into literals LL_ADC_AWD_CHANNELx_xxx the relevant bits for: */ /* (concatenation of multiple bits used in different analog watchdogs, */ /* (feature of several watchdogs not available on all STM32 families)). */ /* - analog watchdog 1: monitored channel defined by number, */ /* selection of ADC group (ADC groups regular and-or injected). */ /* Internal register offset for ADC analog watchdog channel configuration */ #define ADC_AWD_CR1_REGOFFSET 0x00000000UL #define ADC_AWD_CRX_REGOFFSET_MASK (ADC_AWD_CR1_REGOFFSET) #define ADC_AWD_CR1_CHANNEL_MASK (ADC_CR1_AWDCH | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) #define ADC_AWD_CR_ALL_CHANNEL_MASK (ADC_AWD_CR1_CHANNEL_MASK) /* Internal register offset for ADC analog watchdog threshold configuration */ #define ADC_AWD_TR1_HIGH_REGOFFSET 0x00000000UL #define ADC_AWD_TR1_LOW_REGOFFSET 0x00000001UL #define ADC_AWD_TRX_REGOFFSET_MASK (ADC_AWD_TR1_HIGH_REGOFFSET | ADC_AWD_TR1_LOW_REGOFFSET) /* ADC registers bits positions */ #define ADC_CR1_RES_BITOFFSET_POS (24UL) /* Value equivalent to POSITION_VAL(ADC_CR1_RES) */ #define ADC_TR_HT_BITOFFSET_POS (16UL) /* Value equivalent to POSITION_VAL(ADC_TR_HT) */ /* ADC internal channels related definitions */ /* Internal voltage reference VrefInt */ #define VREFINT_CAL_ADDR ((uint16_t*) (0x1FFF7A2AU)) /* Internal voltage reference, address of parameter VREFINT_CAL: VrefInt ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.3 V (tolerance: +-10 mV). */ #define VREFINT_CAL_VREF ( 3300UL) /* Analog voltage reference (Vref+) value with which temperature sensor has been calibrated in production (tolerance: +-10 mV) (unit: mV). */ /* Temperature sensor */ #define TEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x1FFF7A2CU)) /* Internal temperature sensor, address of parameter TS_CAL1: On STM32F4, temperature sensor ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.3 V (tolerance: +-10 mV). */ #define TEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x1FFF7A2EU)) /* Internal temperature sensor, address of parameter TS_CAL2: On STM32F4, temperature sensor ADC raw data acquired at temperature 110 DegC (tolerance: +-5 DegC), Vref+ = 3.3 V (tolerance: +-10 mV). */ #define TEMPSENSOR_CAL1_TEMP (( int32_t) 30) /* Internal temperature sensor, temperature at which temperature sensor has been calibrated in production for data into TEMPSENSOR_CAL1_ADDR (tolerance: +-5 DegC) (unit: DegC). */ #define TEMPSENSOR_CAL2_TEMP (( int32_t) 110) /* Internal temperature sensor, temperature at which temperature sensor has been calibrated in production for data into TEMPSENSOR_CAL2_ADDR (tolerance: +-5 DegC) (unit: DegC). */ #define TEMPSENSOR_CAL_VREFANALOG ( 3300UL) /* Analog voltage reference (Vref+) voltage with which temperature sensor has been calibrated in production (+-10 mV) (unit: mV). */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @defgroup ADC_LL_Private_Macros ADC Private Macros * @{ */ /** * @brief Driver macro reserved for internal use: isolate bits with the * selected mask and shift them to the register LSB * (shift mask on register position bit 0). * @param __BITS__ Bits in register 32 bits * @param __MASK__ Mask in register 32 bits * @retval Bits in register 32 bits */ #define __ADC_MASK_SHIFT(__BITS__, __MASK__) \ (((__BITS__) & (__MASK__)) >> POSITION_VAL((__MASK__))) /** * @brief Driver macro reserved for internal use: set a pointer to * a register from a register basis from which an offset * is applied. * @param __REG__ Register basis from which the offset is applied. * @param __REG_OFFFSET__ Offset to be applied (unit number of registers). * @retval Pointer to register address */ #define __ADC_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__) \ ((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL)))) /** * @} */ /* Exported types ------------------------------------------------------------*/ #if defined(USE_FULL_LL_DRIVER) /** @defgroup ADC_LL_ES_INIT ADC Exported Init structure * @{ */ /** * @brief Structure definition of some features of ADC common parameters * and multimode * (all ADC instances belonging to the same ADC common instance). * @note The setting of these parameters by function @ref LL_ADC_CommonInit() * is conditioned to ADC instances state (all ADC instances * sharing the same ADC common instance): * All ADC instances sharing the same ADC common instance must be * disabled. */ typedef struct { uint32_t CommonClock; /*!< Set parameter common to several ADC: Clock source and prescaler. This parameter can be a value of @ref ADC_LL_EC_COMMON_CLOCK_SOURCE This feature can be modified afterwards using unitary function @ref LL_ADC_SetCommonClock(). */ #if defined(ADC_MULTIMODE_SUPPORT) uint32_t Multimode; /*!< Set ADC multimode configuration to operate in independent mode or multimode (for devices with several ADC instances). This parameter can be a value of @ref ADC_LL_EC_MULTI_MODE This feature can be modified afterwards using unitary function @ref LL_ADC_SetMultimode(). */ uint32_t MultiDMATransfer; /*!< Set ADC multimode conversion data transfer: no transfer or transfer by DMA. This parameter can be a value of @ref ADC_LL_EC_MULTI_DMA_TRANSFER This feature can be modified afterwards using unitary function @ref LL_ADC_SetMultiDMATransfer(). */ uint32_t MultiTwoSamplingDelay; /*!< Set ADC multimode delay between 2 sampling phases. This parameter can be a value of @ref ADC_LL_EC_MULTI_TWOSMP_DELAY This feature can be modified afterwards using unitary function @ref LL_ADC_SetMultiTwoSamplingDelay(). */ #endif /* ADC_MULTIMODE_SUPPORT */ } LL_ADC_CommonInitTypeDef; /** * @brief Structure definition of some features of ADC instance. * @note These parameters have an impact on ADC scope: ADC instance. * Affects both group regular and group injected (availability * of ADC group injected depends on STM32 families). * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Instance . * @note The setting of these parameters by function @ref LL_ADC_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. */ typedef struct { uint32_t Resolution; /*!< Set ADC resolution. This parameter can be a value of @ref ADC_LL_EC_RESOLUTION This feature can be modified afterwards using unitary function @ref LL_ADC_SetResolution(). */ uint32_t DataAlignment; /*!< Set ADC conversion data alignment. This parameter can be a value of @ref ADC_LL_EC_DATA_ALIGN This feature can be modified afterwards using unitary function @ref LL_ADC_SetDataAlignment(). */ uint32_t SequencersScanMode; /*!< Set ADC scan selection. This parameter can be a value of @ref ADC_LL_EC_SCAN_SELECTION This feature can be modified afterwards using unitary function @ref LL_ADC_SetSequencersScanMode(). */ } LL_ADC_InitTypeDef; /** * @brief Structure definition of some features of ADC group regular. * @note These parameters have an impact on ADC scope: ADC group regular. * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Group_Regular * (functions with prefix "REG"). * @note The setting of these parameters by function @ref LL_ADC_REG_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. */ typedef struct { uint32_t TriggerSource; /*!< Set ADC group regular conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). This parameter can be a value of @ref ADC_LL_EC_REG_TRIGGER_SOURCE @note On this STM32 series, setting of external trigger edge is performed using function @ref LL_ADC_REG_StartConversionExtTrig(). This feature can be modified afterwards using unitary function @ref LL_ADC_REG_SetTriggerSource(). */ uint32_t SequencerLength; /*!< Set ADC group regular sequencer length. This parameter can be a value of @ref ADC_LL_EC_REG_SEQ_SCAN_LENGTH @note This parameter is discarded if scan mode is disabled (refer to parameter 'ADC_SequencersScanMode'). This feature can be modified afterwards using unitary function @ref LL_ADC_REG_SetSequencerLength(). */ uint32_t SequencerDiscont; /*!< Set ADC group regular sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. This parameter can be a value of @ref ADC_LL_EC_REG_SEQ_DISCONT_MODE @note This parameter has an effect only if group regular sequencer is enabled (scan length of 2 ranks or more). This feature can be modified afterwards using unitary function @ref LL_ADC_REG_SetSequencerDiscont(). */ uint32_t ContinuousMode; /*!< Set ADC continuous conversion mode on ADC group regular, whether ADC conversions are performed in single mode (one conversion per trigger) or in continuous mode (after the first trigger, following conversions launched successively automatically). This parameter can be a value of @ref ADC_LL_EC_REG_CONTINUOUS_MODE Note: It is not possible to enable both ADC group regular continuous mode and discontinuous mode. This feature can be modified afterwards using unitary function @ref LL_ADC_REG_SetContinuousMode(). */ uint32_t DMATransfer; /*!< Set ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode. This parameter can be a value of @ref ADC_LL_EC_REG_DMA_TRANSFER This feature can be modified afterwards using unitary function @ref LL_ADC_REG_SetDMATransfer(). */ } LL_ADC_REG_InitTypeDef; /** * @brief Structure definition of some features of ADC group injected. * @note These parameters have an impact on ADC scope: ADC group injected. * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Group_Regular * (functions with prefix "INJ"). * @note The setting of these parameters by function @ref LL_ADC_INJ_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. */ typedef struct { uint32_t TriggerSource; /*!< Set ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). This parameter can be a value of @ref ADC_LL_EC_INJ_TRIGGER_SOURCE @note On this STM32 series, setting of external trigger edge is performed using function @ref LL_ADC_INJ_StartConversionExtTrig(). This feature can be modified afterwards using unitary function @ref LL_ADC_INJ_SetTriggerSource(). */ uint32_t SequencerLength; /*!< Set ADC group injected sequencer length. This parameter can be a value of @ref ADC_LL_EC_INJ_SEQ_SCAN_LENGTH @note This parameter is discarded if scan mode is disabled (refer to parameter 'ADC_SequencersScanMode'). This feature can be modified afterwards using unitary function @ref LL_ADC_INJ_SetSequencerLength(). */ uint32_t SequencerDiscont; /*!< Set ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. This parameter can be a value of @ref ADC_LL_EC_INJ_SEQ_DISCONT_MODE @note This parameter has an effect only if group injected sequencer is enabled (scan length of 2 ranks or more). This feature can be modified afterwards using unitary function @ref LL_ADC_INJ_SetSequencerDiscont(). */ uint32_t TrigAuto; /*!< Set ADC group injected conversion trigger: independent or from ADC group regular. This parameter can be a value of @ref ADC_LL_EC_INJ_TRIG_AUTO Note: This parameter must be set to set to independent trigger if injected trigger source is set to an external trigger. This feature can be modified afterwards using unitary function @ref LL_ADC_INJ_SetTrigAuto(). */ } LL_ADC_INJ_InitTypeDef; /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /* Exported constants --------------------------------------------------------*/ /** @defgroup ADC_LL_Exported_Constants ADC Exported Constants * @{ */ /** @defgroup ADC_LL_EC_FLAG ADC flags * @brief Flags defines which can be used with LL_ADC_ReadReg function * @{ */ #define LL_ADC_FLAG_STRT ADC_SR_STRT /*!< ADC flag ADC group regular conversion start */ #define LL_ADC_FLAG_EOCS ADC_SR_EOC /*!< ADC flag ADC group regular end of unitary conversion or sequence conversions (to configure flag of end of conversion, use function @ref LL_ADC_REG_SetFlagEndOfConversion() ) */ #define LL_ADC_FLAG_OVR ADC_SR_OVR /*!< ADC flag ADC group regular overrun */ #define LL_ADC_FLAG_JSTRT ADC_SR_JSTRT /*!< ADC flag ADC group injected conversion start */ #define LL_ADC_FLAG_JEOS ADC_SR_JEOC /*!< ADC flag ADC group injected end of sequence conversions (Note: on this STM32 series, there is no flag ADC group injected end of unitary conversion. Flag noted as "JEOC" is corresponding to flag "JEOS" in other STM32 families) */ #define LL_ADC_FLAG_AWD1 ADC_SR_AWD /*!< ADC flag ADC analog watchdog 1 */ #if defined(ADC_MULTIMODE_SUPPORT) #define LL_ADC_FLAG_EOCS_MST ADC_CSR_EOC1 /*!< ADC flag ADC multimode master group regular end of unitary conversion or sequence conversions (to configure flag of end of conversion, use function @ref LL_ADC_REG_SetFlagEndOfConversion() ) */ #define LL_ADC_FLAG_EOCS_SLV1 ADC_CSR_EOC2 /*!< ADC flag ADC multimode slave 1 group regular end of unitary conversion or sequence conversions (to configure flag of end of conversion, use function @ref LL_ADC_REG_SetFlagEndOfConversion() ) */ #define LL_ADC_FLAG_EOCS_SLV2 ADC_CSR_EOC3 /*!< ADC flag ADC multimode slave 2 group regular end of unitary conversion or sequence conversions (to configure flag of end of conversion, use function @ref LL_ADC_REG_SetFlagEndOfConversion() ) */ #define LL_ADC_FLAG_OVR_MST ADC_CSR_OVR1 /*!< ADC flag ADC multimode master group regular overrun */ #define LL_ADC_FLAG_OVR_SLV1 ADC_CSR_OVR2 /*!< ADC flag ADC multimode slave 1 group regular overrun */ #define LL_ADC_FLAG_OVR_SLV2 ADC_CSR_OVR3 /*!< ADC flag ADC multimode slave 2 group regular overrun */ #define LL_ADC_FLAG_JEOS_MST ADC_CSR_JEOC1 /*!< ADC flag ADC multimode master group injected end of sequence conversions (Note: on this STM32 series, there is no flag ADC group injected end of unitary conversion. Flag noted as "JEOC" is corresponding to flag "JEOS" in other STM32 families) */ #define LL_ADC_FLAG_JEOS_SLV1 ADC_CSR_JEOC2 /*!< ADC flag ADC multimode slave 1 group injected end of sequence conversions (Note: on this STM32 series, there is no flag ADC group injected end of unitary conversion. Flag noted as "JEOC" is corresponding to flag "JEOS" in other STM32 families) */ #define LL_ADC_FLAG_JEOS_SLV2 ADC_CSR_JEOC3 /*!< ADC flag ADC multimode slave 2 group injected end of sequence conversions (Note: on this STM32 series, there is no flag ADC group injected end of unitary conversion. Flag noted as "JEOC" is corresponding to flag "JEOS" in other STM32 families) */ #define LL_ADC_FLAG_AWD1_MST ADC_CSR_AWD1 /*!< ADC flag ADC multimode master analog watchdog 1 of the ADC master */ #define LL_ADC_FLAG_AWD1_SLV1 ADC_CSR_AWD2 /*!< ADC flag ADC multimode slave 1 analog watchdog 1 */ #define LL_ADC_FLAG_AWD1_SLV2 ADC_CSR_AWD3 /*!< ADC flag ADC multimode slave 2 analog watchdog 1 */ #endif /** * @} */ /** @defgroup ADC_LL_EC_IT ADC interruptions for configuration (interruption enable or disable) * @brief IT defines which can be used with LL_ADC_ReadReg and LL_ADC_WriteReg functions * @{ */ #define LL_ADC_IT_EOCS ADC_CR1_EOCIE /*!< ADC interruption ADC group regular end of unitary conversion or sequence conversions (to configure flag of end of conversion, use function @ref LL_ADC_REG_SetFlagEndOfConversion() ) */ #define LL_ADC_IT_OVR ADC_CR1_OVRIE /*!< ADC interruption ADC group regular overrun */ #define LL_ADC_IT_JEOS ADC_CR1_JEOCIE /*!< ADC interruption ADC group injected end of sequence conversions (Note: on this STM32 series, there is no flag ADC group injected end of unitary conversion. Flag noted as "JEOC" is corresponding to flag "JEOS" in other STM32 families) */ #define LL_ADC_IT_AWD1 ADC_CR1_AWDIE /*!< ADC interruption ADC analog watchdog 1 */ /** * @} */ /** @defgroup ADC_LL_EC_REGISTERS ADC registers compliant with specific purpose * @{ */ /* List of ADC registers intended to be used (most commonly) with */ /* DMA transfer. */ /* Refer to function @ref LL_ADC_DMA_GetRegAddr(). */ #define LL_ADC_DMA_REG_REGULAR_DATA 0x00000000UL /* ADC group regular conversion data register (corresponding to register DR) to be used with ADC configured in independent mode. Without DMA transfer, register accessed by LL function @ref LL_ADC_REG_ReadConversionData32() and other functions @ref LL_ADC_REG_ReadConversionDatax() */ #if defined(ADC_MULTIMODE_SUPPORT) #define LL_ADC_DMA_REG_REGULAR_DATA_MULTI 0x00000001UL /* ADC group regular conversion data register (corresponding to register CDR) to be used with ADC configured in multimode (available on STM32 devices with several ADC instances). Without DMA transfer, register accessed by LL function @ref LL_ADC_REG_ReadMultiConversionData32() */ #endif /** * @} */ /** @defgroup ADC_LL_EC_COMMON_CLOCK_SOURCE ADC common - Clock source * @{ */ #define LL_ADC_CLOCK_SYNC_PCLK_DIV2 0x00000000UL /*!< ADC synchronous clock derived from AHB clock with prescaler division by 2 */ #define LL_ADC_CLOCK_SYNC_PCLK_DIV4 ( ADC_CCR_ADCPRE_0) /*!< ADC synchronous clock derived from AHB clock with prescaler division by 4 */ #define LL_ADC_CLOCK_SYNC_PCLK_DIV6 (ADC_CCR_ADCPRE_1 ) /*!< ADC synchronous clock derived from AHB clock with prescaler division by 6 */ #define LL_ADC_CLOCK_SYNC_PCLK_DIV8 (ADC_CCR_ADCPRE_1 | ADC_CCR_ADCPRE_0) /*!< ADC synchronous clock derived from AHB clock with prescaler division by 8 */ /** * @} */ /** @defgroup ADC_LL_EC_COMMON_PATH_INTERNAL ADC common - Measurement path to internal channels * @{ */ /* Note: Other measurement paths to internal channels may be available */ /* (connections to other peripherals). */ /* If they are not listed below, they do not require any specific */ /* path enable. In this case, Access to measurement path is done */ /* only by selecting the corresponding ADC internal channel. */ #define LL_ADC_PATH_INTERNAL_NONE 0x00000000UL /*!< ADC measurement paths all disabled */ #define LL_ADC_PATH_INTERNAL_VREFINT (ADC_CCR_TSVREFE) /*!< ADC measurement path to internal channel VrefInt */ #define LL_ADC_PATH_INTERNAL_TEMPSENSOR (ADC_CCR_TSVREFE) /*!< ADC measurement path to internal channel temperature sensor */ #define LL_ADC_PATH_INTERNAL_VBAT (ADC_CCR_VBATE) /*!< ADC measurement path to internal channel Vbat */ /** * @} */ /** @defgroup ADC_LL_EC_RESOLUTION ADC instance - Resolution * @{ */ #define LL_ADC_RESOLUTION_12B 0x00000000UL /*!< ADC resolution 12 bits */ #define LL_ADC_RESOLUTION_10B ( ADC_CR1_RES_0) /*!< ADC resolution 10 bits */ #define LL_ADC_RESOLUTION_8B (ADC_CR1_RES_1 ) /*!< ADC resolution 8 bits */ #define LL_ADC_RESOLUTION_6B (ADC_CR1_RES_1 | ADC_CR1_RES_0) /*!< ADC resolution 6 bits */ /** * @} */ /** @defgroup ADC_LL_EC_DATA_ALIGN ADC instance - Data alignment * @{ */ #define LL_ADC_DATA_ALIGN_RIGHT 0x00000000UL /*!< ADC conversion data alignment: right aligned (alignment on data register LSB bit 0)*/ #define LL_ADC_DATA_ALIGN_LEFT (ADC_CR2_ALIGN) /*!< ADC conversion data alignment: left aligned (alignment on data register MSB bit 15)*/ /** * @} */ /** @defgroup ADC_LL_EC_SCAN_SELECTION ADC instance - Scan selection * @{ */ #define LL_ADC_SEQ_SCAN_DISABLE 0x00000000UL /*!< ADC conversion is performed in unitary conversion mode (one channel converted, that defined in rank 1). Configuration of both groups regular and injected sequencers (sequence length, ...) is discarded: equivalent to length of 1 rank.*/ #define LL_ADC_SEQ_SCAN_ENABLE (ADC_CR1_SCAN) /*!< ADC conversions are performed in sequence conversions mode, according to configuration of both groups regular and injected sequencers (sequence length, ...). */ /** * @} */ /** @defgroup ADC_LL_EC_GROUPS ADC instance - Groups * @{ */ #define LL_ADC_GROUP_REGULAR 0x00000001UL /*!< ADC group regular (available on all STM32 devices) */ #define LL_ADC_GROUP_INJECTED 0x00000002UL /*!< ADC group injected (not available on all STM32 devices)*/ #define LL_ADC_GROUP_REGULAR_INJECTED 0x00000003UL /*!< ADC both groups regular and injected */ /** * @} */ /** @defgroup ADC_LL_EC_CHANNEL ADC instance - Channel number * @{ */ #define LL_ADC_CHANNEL_0 (ADC_CHANNEL_0_NUMBER | ADC_CHANNEL_0_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN0 */ #define LL_ADC_CHANNEL_1 (ADC_CHANNEL_1_NUMBER | ADC_CHANNEL_1_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN1 */ #define LL_ADC_CHANNEL_2 (ADC_CHANNEL_2_NUMBER | ADC_CHANNEL_2_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN2 */ #define LL_ADC_CHANNEL_3 (ADC_CHANNEL_3_NUMBER | ADC_CHANNEL_3_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN3 */ #define LL_ADC_CHANNEL_4 (ADC_CHANNEL_4_NUMBER | ADC_CHANNEL_4_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN4 */ #define LL_ADC_CHANNEL_5 (ADC_CHANNEL_5_NUMBER | ADC_CHANNEL_5_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN5 */ #define LL_ADC_CHANNEL_6 (ADC_CHANNEL_6_NUMBER | ADC_CHANNEL_6_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN6 */ #define LL_ADC_CHANNEL_7 (ADC_CHANNEL_7_NUMBER | ADC_CHANNEL_7_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN7 */ #define LL_ADC_CHANNEL_8 (ADC_CHANNEL_8_NUMBER | ADC_CHANNEL_8_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN8 */ #define LL_ADC_CHANNEL_9 (ADC_CHANNEL_9_NUMBER | ADC_CHANNEL_9_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN9 */ #define LL_ADC_CHANNEL_10 (ADC_CHANNEL_10_NUMBER | ADC_CHANNEL_10_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN10 */ #define LL_ADC_CHANNEL_11 (ADC_CHANNEL_11_NUMBER | ADC_CHANNEL_11_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN11 */ #define LL_ADC_CHANNEL_12 (ADC_CHANNEL_12_NUMBER | ADC_CHANNEL_12_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN12 */ #define LL_ADC_CHANNEL_13 (ADC_CHANNEL_13_NUMBER | ADC_CHANNEL_13_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN13 */ #define LL_ADC_CHANNEL_14 (ADC_CHANNEL_14_NUMBER | ADC_CHANNEL_14_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN14 */ #define LL_ADC_CHANNEL_15 (ADC_CHANNEL_15_NUMBER | ADC_CHANNEL_15_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN15 */ #define LL_ADC_CHANNEL_16 (ADC_CHANNEL_16_NUMBER | ADC_CHANNEL_16_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN16 */ #define LL_ADC_CHANNEL_17 (ADC_CHANNEL_17_NUMBER | ADC_CHANNEL_17_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN17 */ #define LL_ADC_CHANNEL_18 (ADC_CHANNEL_18_NUMBER | ADC_CHANNEL_18_SMP) /*!< ADC external channel (channel connected to GPIO pin) ADCx_IN18 */ #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< ADC internal channel connected to VrefInt: Internal voltage reference. On STM32F4, ADC channel available only on ADC instance: ADC1. */ #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< ADC internal channel connected to Vbat/3: Vbat voltage through a divider ladder of factor 1/3 to have Vbat always below Vdda. On STM32F4, ADC channel available only on ADC instance: ADC1. */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F415xx) || defined(STM32F417xx) #define LL_ADC_CHANNEL_TEMPSENSOR (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< ADC internal channel connected to Temperature sensor. On STM32F4, ADC channel available only on ADC instance: ADC1. */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F410xx */ #if defined(STM32F411xE) || defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define LL_ADC_CHANNEL_TEMPSENSOR (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH | ADC_CHANNEL_DIFFERENCIATION_TEMPSENSOR_VBAT) /*!< ADC internal channel connected to Temperature sensor. On STM32F4, ADC channel available only on ADC instance: ADC1. This internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. */ #endif /* STM32F411xE || STM32F412Cx || STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup ADC_LL_EC_REG_TRIGGER_SOURCE ADC group regular - Trigger source * @{ */ #define LL_ADC_REG_TRIG_SOFTWARE 0x00000000UL /*!< ADC group regular conversion trigger internal: SW start. */ #define LL_ADC_REG_TRIG_EXT_TIM1_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM1 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM1_CH2 (ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM1 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM1_CH3 (ADC_CR2_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM1 channel 3 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM2_CH2 (ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM2 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM2_CH3 (ADC_CR2_EXTSEL_2 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM2 channel 3 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM2_CH4 (ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM2 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM2_TRGO (ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM2 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM3_CH1 (ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM3 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM3_TRGO (ADC_CR2_EXTSEL_3 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM3 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM4_CH4 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM4 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM5_CH1 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM5 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM5_CH2 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM5 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM5_CH3 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM5 channel 3 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM8_CH1 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM8 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_TIM8_TRGO (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: TIM8 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (ADC_CR2_EXTSEL_3 | ADC_CR2_EXTSEL_2 | ADC_CR2_EXTSEL_1 | ADC_CR2_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group regular conversion trigger from external IP: external interrupt line 11. Trigger edge set to rising edge (default setting). */ /** * @} */ /** @defgroup ADC_LL_EC_REG_TRIGGER_EDGE ADC group regular - Trigger edge * @{ */ #define LL_ADC_REG_TRIG_EXT_RISING ( ADC_CR2_EXTEN_0) /*!< ADC group regular conversion trigger polarity set to rising edge */ #define LL_ADC_REG_TRIG_EXT_FALLING (ADC_CR2_EXTEN_1 ) /*!< ADC group regular conversion trigger polarity set to falling edge */ #define LL_ADC_REG_TRIG_EXT_RISINGFALLING (ADC_CR2_EXTEN_1 | ADC_CR2_EXTEN_0) /*!< ADC group regular conversion trigger polarity set to both rising and falling edges */ /** * @} */ /** @defgroup ADC_LL_EC_REG_CONTINUOUS_MODE ADC group regular - Continuous mode * @{ */ #define LL_ADC_REG_CONV_SINGLE 0x00000000UL /*!< ADC conversions are performed in single mode: one conversion per trigger */ #define LL_ADC_REG_CONV_CONTINUOUS (ADC_CR2_CONT) /*!< ADC conversions are performed in continuous mode: after the first trigger, following conversions launched successively automatically */ /** * @} */ /** @defgroup ADC_LL_EC_REG_DMA_TRANSFER ADC group regular - DMA transfer of ADC conversion data * @{ */ #define LL_ADC_REG_DMA_TRANSFER_NONE 0x00000000UL /*!< ADC conversions are not transferred by DMA */ #define LL_ADC_REG_DMA_TRANSFER_LIMITED ( ADC_CR2_DMA) /*!< ADC conversion data are transferred by DMA, in limited mode (one shot mode): DMA transfer requests are stopped when number of DMA data transfers (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. */ #define LL_ADC_REG_DMA_TRANSFER_UNLIMITED (ADC_CR2_DDS | ADC_CR2_DMA) /*!< ADC conversion data are transferred by DMA, in unlimited mode: DMA transfer requests are unlimited, whatever number of DMA data transferred (number of ADC conversions). This ADC mode is intended to be used with DMA mode circular. */ /** * @} */ /** @defgroup ADC_LL_EC_REG_FLAG_EOC_SELECTION ADC group regular - Flag EOC selection (unitary or sequence conversions) * @{ */ #define LL_ADC_REG_FLAG_EOC_SEQUENCE_CONV 0x00000000UL /*!< ADC flag EOC (end of unitary conversion) selected */ #define LL_ADC_REG_FLAG_EOC_UNITARY_CONV (ADC_CR2_EOCS) /*!< ADC flag EOS (end of sequence conversions) selected */ /** * @} */ /** @defgroup ADC_LL_EC_REG_SEQ_SCAN_LENGTH ADC group regular - Sequencer scan length * @{ */ #define LL_ADC_REG_SEQ_SCAN_DISABLE 0x00000000UL /*!< ADC group regular sequencer disable (equivalent to sequencer of 1 rank: ADC conversion on only 1 channel) */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS ( ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 2 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS ( ADC_SQR1_L_1 ) /*!< ADC group regular sequencer enable with 3 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS ( ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 4 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS ( ADC_SQR1_L_2 ) /*!< ADC group regular sequencer enable with 5 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 6 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 ) /*!< ADC group regular sequencer enable with 7 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 8 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS (ADC_SQR1_L_3 ) /*!< ADC group regular sequencer enable with 9 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 10 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 ) /*!< ADC group regular sequencer enable with 11 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 12 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 ) /*!< ADC group regular sequencer enable with 13 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 14 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_1 ) /*!< ADC group regular sequencer enable with 15 ranks in the sequence */ #define LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular sequencer enable with 16 ranks in the sequence */ /** * @} */ /** @defgroup ADC_LL_EC_REG_SEQ_DISCONT_MODE ADC group regular - Sequencer discontinuous mode * @{ */ #define LL_ADC_REG_SEQ_DISCONT_DISABLE 0x00000000UL /*!< ADC group regular sequencer discontinuous mode disable */ #define LL_ADC_REG_SEQ_DISCONT_1RANK ( ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every rank */ #define LL_ADC_REG_SEQ_DISCONT_2RANKS ( ADC_CR1_DISCNUM_0 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enabled with sequence interruption every 2 ranks */ #define LL_ADC_REG_SEQ_DISCONT_3RANKS ( ADC_CR1_DISCNUM_1 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 3 ranks */ #define LL_ADC_REG_SEQ_DISCONT_4RANKS ( ADC_CR1_DISCNUM_1 | ADC_CR1_DISCNUM_0 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 4 ranks */ #define LL_ADC_REG_SEQ_DISCONT_5RANKS (ADC_CR1_DISCNUM_2 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 5 ranks */ #define LL_ADC_REG_SEQ_DISCONT_6RANKS (ADC_CR1_DISCNUM_2 | ADC_CR1_DISCNUM_0 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 6 ranks */ #define LL_ADC_REG_SEQ_DISCONT_7RANKS (ADC_CR1_DISCNUM_2 | ADC_CR1_DISCNUM_1 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 7 ranks */ #define LL_ADC_REG_SEQ_DISCONT_8RANKS (ADC_CR1_DISCNUM_2 | ADC_CR1_DISCNUM_1 | ADC_CR1_DISCNUM_0 | ADC_CR1_DISCEN) /*!< ADC group regular sequencer discontinuous mode enable with sequence interruption every 8 ranks */ /** * @} */ /** @defgroup ADC_LL_EC_REG_SEQ_RANKS ADC group regular - Sequencer ranks * @{ */ #define LL_ADC_REG_RANK_1 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_1_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 1 */ #define LL_ADC_REG_RANK_2 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_2_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 2 */ #define LL_ADC_REG_RANK_3 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_3_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 3 */ #define LL_ADC_REG_RANK_4 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_4_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 4 */ #define LL_ADC_REG_RANK_5 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_5_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 5 */ #define LL_ADC_REG_RANK_6 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_6_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 6 */ #define LL_ADC_REG_RANK_7 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_7_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 7 */ #define LL_ADC_REG_RANK_8 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_8_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 8 */ #define LL_ADC_REG_RANK_9 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_9_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 9 */ #define LL_ADC_REG_RANK_10 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_10_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 10 */ #define LL_ADC_REG_RANK_11 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_11_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 11 */ #define LL_ADC_REG_RANK_12 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_12_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 12 */ #define LL_ADC_REG_RANK_13 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_13_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 13 */ #define LL_ADC_REG_RANK_14 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_14_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 14 */ #define LL_ADC_REG_RANK_15 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_15_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 15 */ #define LL_ADC_REG_RANK_16 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_16_SQRX_BITOFFSET_POS) /*!< ADC group regular sequencer rank 16 */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_TRIGGER_SOURCE ADC group injected - Trigger source * @{ */ #define LL_ADC_INJ_TRIG_SOFTWARE 0x00000000UL /*!< ADC group injected conversion trigger internal: SW start. */ #define LL_ADC_INJ_TRIG_EXT_TIM1_CH4 (ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM1 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO (ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM1 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (ADC_CR2_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM2 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM2_TRGO (ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM2 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM3_CH2 (ADC_CR2_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM3 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM3 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM4_CH1 (ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM4 channel 1 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM4_CH2 (ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM4 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (ADC_CR2_JEXTSEL_3 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM4 channel 3 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM4_TRGO (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM4 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM5_CH4 (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM5 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM5_TRGO (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM5 TRGO. Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM8 channel 2 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM8_CH3 (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM8 channel 3 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_TIM8_CH4 (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: TIM8 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */ #define LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (ADC_CR2_JEXTSEL_3 | ADC_CR2_JEXTSEL_2 | ADC_CR2_JEXTSEL_1 | ADC_CR2_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) /*!< ADC group injected conversion trigger from external IP: external interrupt line 15. Trigger edge set to rising edge (default setting). */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_TRIGGER_EDGE ADC group injected - Trigger edge * @{ */ #define LL_ADC_INJ_TRIG_EXT_RISING ( ADC_CR2_JEXTEN_0) /*!< ADC group injected conversion trigger polarity set to rising edge */ #define LL_ADC_INJ_TRIG_EXT_FALLING (ADC_CR2_JEXTEN_1 ) /*!< ADC group injected conversion trigger polarity set to falling edge */ #define LL_ADC_INJ_TRIG_EXT_RISINGFALLING (ADC_CR2_JEXTEN_1 | ADC_CR2_JEXTEN_0) /*!< ADC group injected conversion trigger polarity set to both rising and falling edges */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_TRIG_AUTO ADC group injected - Automatic trigger mode * @{ */ #define LL_ADC_INJ_TRIG_INDEPENDENT 0x00000000UL /*!< ADC group injected conversion trigger independent. Setting mandatory if ADC group injected injected trigger source is set to an external trigger. */ #define LL_ADC_INJ_TRIG_FROM_GRP_REGULAR (ADC_CR1_JAUTO) /*!< ADC group injected conversion trigger from ADC group regular. Setting compliant only with group injected trigger source set to SW start, without any further action on ADC group injected conversion start or stop: in this case, ADC group injected is controlled only from ADC group regular. */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_SEQ_SCAN_LENGTH ADC group injected - Sequencer scan length * @{ */ #define LL_ADC_INJ_SEQ_SCAN_DISABLE 0x00000000UL /*!< ADC group injected sequencer disable (equivalent to sequencer of 1 rank: ADC conversion on only 1 channel) */ #define LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS ( ADC_JSQR_JL_0) /*!< ADC group injected sequencer enable with 2 ranks in the sequence */ #define LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS (ADC_JSQR_JL_1 ) /*!< ADC group injected sequencer enable with 3 ranks in the sequence */ #define LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS (ADC_JSQR_JL_1 | ADC_JSQR_JL_0) /*!< ADC group injected sequencer enable with 4 ranks in the sequence */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_SEQ_DISCONT_MODE ADC group injected - Sequencer discontinuous mode * @{ */ #define LL_ADC_INJ_SEQ_DISCONT_DISABLE 0x00000000UL /*!< ADC group injected sequencer discontinuous mode disable */ #define LL_ADC_INJ_SEQ_DISCONT_1RANK (ADC_CR1_JDISCEN) /*!< ADC group injected sequencer discontinuous mode enable with sequence interruption every rank */ /** * @} */ /** @defgroup ADC_LL_EC_INJ_SEQ_RANKS ADC group injected - Sequencer ranks * @{ */ #define LL_ADC_INJ_RANK_1 (ADC_JDR1_REGOFFSET | ADC_JOFR1_REGOFFSET | 0x00000001UL) /*!< ADC group injected sequencer rank 1 */ #define LL_ADC_INJ_RANK_2 (ADC_JDR2_REGOFFSET | ADC_JOFR2_REGOFFSET | 0x00000002UL) /*!< ADC group injected sequencer rank 2 */ #define LL_ADC_INJ_RANK_3 (ADC_JDR3_REGOFFSET | ADC_JOFR3_REGOFFSET | 0x00000003UL) /*!< ADC group injected sequencer rank 3 */ #define LL_ADC_INJ_RANK_4 (ADC_JDR4_REGOFFSET | ADC_JOFR4_REGOFFSET | 0x00000004UL) /*!< ADC group injected sequencer rank 4 */ /** * @} */ /** @defgroup ADC_LL_EC_CHANNEL_SAMPLINGTIME Channel - Sampling time * @{ */ #define LL_ADC_SAMPLINGTIME_3CYCLES 0x00000000UL /*!< Sampling time 3 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_15CYCLES (ADC_SMPR1_SMP10_0) /*!< Sampling time 15 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_28CYCLES (ADC_SMPR1_SMP10_1) /*!< Sampling time 28 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_56CYCLES (ADC_SMPR1_SMP10_1 | ADC_SMPR1_SMP10_0) /*!< Sampling time 56 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_84CYCLES (ADC_SMPR1_SMP10_2) /*!< Sampling time 84 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_112CYCLES (ADC_SMPR1_SMP10_2 | ADC_SMPR1_SMP10_0) /*!< Sampling time 112 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_144CYCLES (ADC_SMPR1_SMP10_2 | ADC_SMPR1_SMP10_1) /*!< Sampling time 144 ADC clock cycles */ #define LL_ADC_SAMPLINGTIME_480CYCLES (ADC_SMPR1_SMP10) /*!< Sampling time 480 ADC clock cycles */ /** * @} */ /** @defgroup ADC_LL_EC_AWD_NUMBER Analog watchdog - Analog watchdog number * @{ */ #define LL_ADC_AWD1 (ADC_AWD_CR1_CHANNEL_MASK | ADC_AWD_CR1_REGOFFSET) /*!< ADC analog watchdog number 1 */ /** * @} */ /** @defgroup ADC_LL_EC_AWD_CHANNELS Analog watchdog - Monitored channels * @{ */ #define LL_ADC_AWD_DISABLE 0x00000000UL /*!< ADC analog watchdog monitoring disabled */ #define LL_ADC_AWD_ALL_CHANNELS_REG ( ADC_CR1_AWDEN ) /*!< ADC analog watchdog monitoring of all channels, converted by group regular only */ #define LL_ADC_AWD_ALL_CHANNELS_INJ ( ADC_CR1_JAWDEN ) /*!< ADC analog watchdog monitoring of all channels, converted by group injected only */ #define LL_ADC_AWD_ALL_CHANNELS_REG_INJ ( ADC_CR1_JAWDEN | ADC_CR1_AWDEN ) /*!< ADC analog watchdog monitoring of all channels, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_0_REG ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN0, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_0_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN0, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_0_REG_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN0, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_1_REG ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN1, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_1_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN1, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_1_REG_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN1, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_2_REG ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN2, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_2_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN2, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_2_REG_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN2, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_3_REG ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN3, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_3_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN3, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_3_REG_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN3, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_4_REG ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN4, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_4_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN4, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_4_REG_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN4, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_5_REG ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN5, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_5_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN5, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_5_REG_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN5, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_6_REG ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN6, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_6_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN6, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_6_REG_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN6, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_7_REG ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN7, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_7_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN7, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_7_REG_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN7, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_8_REG ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN8, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_8_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN8, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_8_REG_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN8, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_9_REG ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN9, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_9_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN9, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_9_REG_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN9, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_10_REG ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN10, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_10_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN10, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_10_REG_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN10, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_11_REG ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN11, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_11_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN11, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_11_REG_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN11, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_12_REG ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN12, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_12_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN12, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_12_REG_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN12, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_13_REG ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN13, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_13_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN13, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_13_REG_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN13, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_14_REG ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN14, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_14_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN14, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_14_REG_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN14, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_15_REG ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN15, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_15_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN15, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_15_REG_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN15, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_16_REG ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN16, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_16_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN16, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_16_REG_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN16, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_17_REG ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN17, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_17_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN17, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_17_REG_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN17, converted by either group regular or injected */ #define LL_ADC_AWD_CHANNEL_18_REG ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN18, converted by group regular only */ #define LL_ADC_AWD_CHANNEL_18_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN18, converted by group injected only */ #define LL_ADC_AWD_CHANNEL_18_REG_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC external channel (channel connected to GPIO pin) ADCx_IN18, converted by either group regular or injected */ #define LL_ADC_AWD_CH_VREFINT_REG ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to VrefInt: Internal voltage reference, converted by group regular only */ #define LL_ADC_AWD_CH_VREFINT_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to VrefInt: Internal voltage reference, converted by group injected only */ #define LL_ADC_AWD_CH_VREFINT_REG_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to VrefInt: Internal voltage reference, converted by either group regular or injected */ #define LL_ADC_AWD_CH_VBAT_REG ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Vbat/3: Vbat voltage through a divider ladder of factor 1/3 to have Vbat always below Vdda, converted by group regular only */ #define LL_ADC_AWD_CH_VBAT_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Vbat/3: Vbat voltage through a divider ladder of factor 1/3 to have Vbat always below Vdda, converted by group injected only */ #define LL_ADC_AWD_CH_VBAT_REG_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Vbat/3: Vbat voltage through a divider ladder of factor 1/3 to have Vbat always below Vdda */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F415xx) || defined(STM32F417xx) #define LL_ADC_AWD_CH_TEMPSENSOR_REG ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by group regular only */ #define LL_ADC_AWD_CH_TEMPSENSOR_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by group injected only */ #define LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by either group regular or injected */ #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F410xx */ #if defined(STM32F411xE) || defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || defined(STM32F423xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) #define LL_ADC_AWD_CH_TEMPSENSOR_REG ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by group regular only. This internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. */ #define LL_ADC_AWD_CH_TEMPSENSOR_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by group injected only. This internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. */ #define LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) /*!< ADC analog watchdog monitoring of ADC internal channel connected to Temperature sensor, converted by either group regular or injected. This internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. */ #endif /* STM32F411xE || STM32F412Cx || STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** @defgroup ADC_LL_EC_AWD_THRESHOLDS Analog watchdog - Thresholds * @{ */ #define LL_ADC_AWD_THRESHOLD_HIGH (ADC_AWD_TR1_HIGH_REGOFFSET) /*!< ADC analog watchdog threshold high */ #define LL_ADC_AWD_THRESHOLD_LOW (ADC_AWD_TR1_LOW_REGOFFSET) /*!< ADC analog watchdog threshold low */ /** * @} */ #if defined(ADC_MULTIMODE_SUPPORT) /** @defgroup ADC_LL_EC_MULTI_MODE Multimode - Mode * @{ */ #define LL_ADC_MULTI_INDEPENDENT 0x00000000UL /*!< ADC dual mode disabled (ADC independent mode) */ #define LL_ADC_MULTI_DUAL_REG_SIMULT ( ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 ) /*!< ADC dual mode enabled: group regular simultaneous */ #define LL_ADC_MULTI_DUAL_REG_INTERL ( ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 | ADC_CCR_MULTI_0) /*!< ADC dual mode enabled: Combined group regular interleaved */ #define LL_ADC_MULTI_DUAL_INJ_SIMULT ( ADC_CCR_MULTI_2 | ADC_CCR_MULTI_0) /*!< ADC dual mode enabled: group injected simultaneous */ #define LL_ADC_MULTI_DUAL_INJ_ALTERN (ADC_CCR_MULTI_3 | ADC_CCR_MULTI_0) /*!< ADC dual mode enabled: group injected alternate trigger. Works only with external triggers (not internal SW start) */ #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM ( ADC_CCR_MULTI_0) /*!< ADC dual mode enabled: Combined group regular simultaneous + group injected simultaneous */ #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT ( ADC_CCR_MULTI_1 ) /*!< ADC dual mode enabled: Combined group regular simultaneous + group injected alternate trigger */ #define LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM ( ADC_CCR_MULTI_1 | ADC_CCR_MULTI_0) /*!< ADC dual mode enabled: Combined group regular interleaved + group injected simultaneous */ #if defined(ADC3) #define LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_SIM (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_0) /*!< ADC triple mode enabled: Combined group regular simultaneous + group injected simultaneous */ #define LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_ALT (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_1 ) /*!< ADC triple mode enabled: Combined group regular simultaneous + group injected alternate trigger */ #define LL_ADC_MULTI_TRIPLE_INJ_SIMULT (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_0) /*!< ADC triple mode enabled: group injected simultaneous */ #define LL_ADC_MULTI_TRIPLE_REG_SIMULT (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 ) /*!< ADC triple mode enabled: group regular simultaneous */ #define LL_ADC_MULTI_TRIPLE_REG_INTERL (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_2 | ADC_CCR_MULTI_1 | ADC_CCR_MULTI_0) /*!< ADC triple mode enabled: Combined group regular interleaved */ #define LL_ADC_MULTI_TRIPLE_INJ_ALTERN (ADC_CCR_MULTI_4 | ADC_CCR_MULTI_0) /*!< ADC triple mode enabled: group injected alternate trigger. Works only with external triggers (not internal SW start) */ #endif /** * @} */ /** @defgroup ADC_LL_EC_MULTI_DMA_TRANSFER Multimode - DMA transfer * @{ */ #define LL_ADC_MULTI_REG_DMA_EACH_ADC 0x00000000UL /*!< ADC multimode group regular conversions are transferred by DMA: each ADC uses its own DMA channel, with its individual DMA transfer settings */ #define LL_ADC_MULTI_REG_DMA_LIMIT_1 ( ADC_CCR_DMA_0) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in limited mode (one shot mode): DMA transfer requests are stopped when number of DMA data transfers (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 1: 2 or 3 (dual or triple mode) half-words one by one, ADC1 then ADC2 then ADC3. */ #define LL_ADC_MULTI_REG_DMA_LIMIT_2 ( ADC_CCR_DMA_1 ) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in limited mode (one shot mode): DMA transfer requests are stopped when number of DMA data transfers (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 2: 2 or 3 (dual or triple mode) half-words one by one, ADC2&1 then ADC1&3 then ADC3&2. */ #define LL_ADC_MULTI_REG_DMA_LIMIT_3 ( ADC_CCR_DMA_1 | ADC_CCR_DMA_0) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in limited mode (one shot mode): DMA transfer requests are stopped when number of DMA data transfers (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 3: 2 or 3 (dual or triple mode) bytes one by one, ADC2&1 then ADC1&3 then ADC3&2. */ #define LL_ADC_MULTI_REG_DMA_UNLMT_1 (ADC_CCR_DDS | ADC_CCR_DMA_0) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in unlimited mode: DMA transfer requests are unlimited, whatever number of DMA data transferred (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 1: 2 or 3 (dual or triple mode) half-words one by one, ADC1 then ADC2 then ADC3. */ #define LL_ADC_MULTI_REG_DMA_UNLMT_2 (ADC_CCR_DDS | ADC_CCR_DMA_1 ) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in unlimited mode: DMA transfer requests are unlimited, whatever number of DMA data transferred (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 2: 2 or 3 (dual or triple mode) half-words by pairs, ADC2&1 then ADC1&3 then ADC3&2. */ #define LL_ADC_MULTI_REG_DMA_UNLMT_3 (ADC_CCR_DDS | ADC_CCR_DMA_1 | ADC_CCR_DMA_0) /*!< ADC multimode group regular conversions are transferred by DMA, one DMA channel for all ADC instances (DMA of ADC master), in unlimited mode: DMA transfer requests are unlimited, whatever number of DMA data transferred (number of ADC conversions) is reached. This ADC mode is intended to be used with DMA mode non-circular. Setting of DMA mode 3: 2 or 3 (dual or triple mode) bytes one by one, ADC2&1 then ADC1&3 then ADC3&2. */ /** * @} */ /** @defgroup ADC_LL_EC_MULTI_TWOSMP_DELAY Multimode - Delay between two sampling phases * @{ */ #define LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES 0x00000000UL /*!< ADC multimode delay between two sampling phases: 5 ADC clock cycles*/ #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES ( ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 6 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES ( ADC_CCR_DELAY_1 ) /*!< ADC multimode delay between two sampling phases: 7 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES ( ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 8 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES ( ADC_CCR_DELAY_2 ) /*!< ADC multimode delay between two sampling phases: 9 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES ( ADC_CCR_DELAY_2 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 10 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES ( ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 ) /*!< ADC multimode delay between two sampling phases: 11 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES ( ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 12 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_13CYCLES (ADC_CCR_DELAY_3 ) /*!< ADC multimode delay between two sampling phases: 13 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_14CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 14 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_15CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 ) /*!< ADC multimode delay between two sampling phases: 15 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_16CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 16 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_17CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 ) /*!< ADC multimode delay between two sampling phases: 17 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_18CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 18 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_19CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 ) /*!< ADC multimode delay between two sampling phases: 19 ADC clock cycles */ #define LL_ADC_MULTI_TWOSMP_DELAY_20CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0) /*!< ADC multimode delay between two sampling phases: 20 ADC clock cycles */ /** * @} */ /** @defgroup ADC_LL_EC_MULTI_MASTER_SLAVE Multimode - ADC master or slave * @{ */ #define LL_ADC_MULTI_MASTER ( ADC_CDR_RDATA_MST) /*!< In multimode, selection among several ADC instances: ADC master */ #define LL_ADC_MULTI_SLAVE (ADC_CDR_RDATA_SLV ) /*!< In multimode, selection among several ADC instances: ADC slave */ #define LL_ADC_MULTI_MASTER_SLAVE (ADC_CDR_RDATA_SLV | ADC_CDR_RDATA_MST) /*!< In multimode, selection among several ADC instances: both ADC master and ADC slave */ /** * @} */ #endif /* ADC_MULTIMODE_SUPPORT */ /** @defgroup ADC_LL_EC_HW_DELAYS Definitions of ADC hardware constraints delays * @note Only ADC IP HW delays are defined in ADC LL driver driver, * not timeout values. * For details on delays values, refer to descriptions in source code * above each literal definition. * @{ */ /* Note: Only ADC IP HW delays are defined in ADC LL driver driver, */ /* not timeout values. */ /* Timeout values for ADC operations are dependent to device clock */ /* configuration (system clock versus ADC clock), */ /* and therefore must be defined in user application. */ /* Indications for estimation of ADC timeout delays, for this */ /* STM32 series: */ /* - ADC enable time: maximum delay is 2us */ /* (refer to device datasheet, parameter "tSTAB") */ /* - ADC conversion time: duration depending on ADC clock and ADC */ /* configuration. */ /* (refer to device reference manual, section "Timing") */ /* Delay for internal voltage reference stabilization time. */ /* Delay set to maximum value (refer to device datasheet, */ /* parameter "tSTART"). */ /* Unit: us */ #define LL_ADC_DELAY_VREFINT_STAB_US ( 10UL) /*!< Delay for internal voltage reference stabilization time */ /* Delay for temperature sensor stabilization time. */ /* Literal set to maximum value (refer to device datasheet, */ /* parameter "tSTART"). */ /* Unit: us */ #define LL_ADC_DELAY_TEMPSENSOR_STAB_US ( 10UL) /*!< Delay for internal voltage reference stabilization time */ /** * @} */ /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup ADC_LL_Exported_Macros ADC Exported Macros * @{ */ /** @defgroup ADC_LL_EM_WRITE_READ Common write and read registers Macros * @{ */ /** * @brief Write a value in ADC register * @param __INSTANCE__ ADC Instance * @param __REG__ Register to be written * @param __VALUE__ Value to be written in the register * @retval None */ #define LL_ADC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) /** * @brief Read a value in ADC register * @param __INSTANCE__ ADC Instance * @param __REG__ Register to be read * @retval Register value */ #define LL_ADC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) /** * @} */ /** @defgroup ADC_LL_EM_HELPER_MACRO ADC helper macro * @{ */ /** * @brief Helper macro to get ADC channel number in decimal format * from literals LL_ADC_CHANNEL_x. * @note Example: * __LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_CHANNEL_4) * will return decimal number "4". * @note The input can be a value from functions where a channel * number is returned, either defined with number * or with bitfield (only one bit must be set). * @param __CHANNEL__ This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval Value between Min_Data=0 and Max_Data=18 */ #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ (((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) /** * @brief Helper macro to get ADC channel in literal format LL_ADC_CHANNEL_x * from number in decimal format. * @note Example: * __LL_ADC_DECIMAL_NB_TO_CHANNEL(4) * will return a data equivalent to "LL_ADC_CHANNEL_4". * @param __DECIMAL_NB__ Value between Min_Data=0 and Max_Data=18 * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled.\n * (1) For ADC channel read back from ADC register, * comparison with internal channel parameter to be done * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). */ #define __LL_ADC_DECIMAL_NB_TO_CHANNEL(__DECIMAL_NB__) \ (((__DECIMAL_NB__) <= 9UL) \ ? ( \ ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) | \ (ADC_SMPR2_REGOFFSET | (((uint32_t) (3UL * (__DECIMAL_NB__))) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) \ ) \ : \ ( \ ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) | \ (ADC_SMPR1_REGOFFSET | (((uint32_t) (3UL * ((__DECIMAL_NB__) - 10UL))) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) \ ) \ ) /** * @brief Helper macro to determine whether the selected channel * corresponds to literal definitions of driver. * @note The different literal definitions of ADC channels are: * - ADC internal channel: * LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ... * - ADC external channel (channel connected to a GPIO pin): * LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ... * @note The channel parameter must be a value defined from literal * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, * LL_ADC_CHANNEL_TEMPSENSOR, ...), * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...), * must not be a value from functions where a channel number is * returned from ADC registers, * because internal and external channels share the same channel * number in ADC registers. The differentiation is made only with * parameters definitions of driver. * @param __CHANNEL__ This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval Value "0" if the channel corresponds to a parameter definition of a ADC external channel (channel connected to a GPIO pin). * Value "1" if the channel corresponds to a parameter definition of a ADC internal channel. */ #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0UL) /** * @brief Helper macro to convert a channel defined from parameter * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, * LL_ADC_CHANNEL_TEMPSENSOR, ...), * to its equivalent parameter definition of a ADC external channel * (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...). * @note The channel parameter can be, additionally to a value * defined from parameter definition of a ADC internal channel * (LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ...), * a value defined from parameter definition of * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) * or a value from functions where a channel number is returned * from ADC registers. * @param __CHANNEL__ This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 */ #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) /** * @brief Helper macro to determine whether the internal channel * selected is available on the ADC instance selected. * @note The channel parameter must be a value defined from parameter * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, * LL_ADC_CHANNEL_TEMPSENSOR, ...), * must not be a value defined from parameter definition of * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) * or a value from functions where a channel number is * returned from ADC registers, * because internal and external channels share the same channel * number in ADC registers. The differentiation is made only with * parameters definitions of driver. * @param __ADC_INSTANCE__ ADC instance * @param __CHANNEL__ This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1. * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval Value "0" if the internal channel selected is not available on the ADC instance selected. * Value "1" if the internal channel selected is available on the ADC instance selected. */ #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ ( \ ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) || \ ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR) || \ ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) \ ) /** * @brief Helper macro to define ADC analog watchdog parameter: * define a single channel to monitor with analog watchdog * from sequencer channel and groups definition. * @note To be used with function @ref LL_ADC_SetAnalogWDMonitChannels(). * Example: * LL_ADC_SetAnalogWDMonitChannels( * ADC1, LL_ADC_AWD1, * __LL_ADC_ANALOGWD_CHANNEL_GROUP(LL_ADC_CHANNEL4, LL_ADC_GROUP_REGULAR)) * @param __CHANNEL__ This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled.\n * (1) For ADC channel read back from ADC register, * comparison with internal channel parameter to be done * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). * @param __GROUP__ This parameter can be one of the following values: * @arg @ref LL_ADC_GROUP_REGULAR * @arg @ref LL_ADC_GROUP_INJECTED * @arg @ref LL_ADC_GROUP_REGULAR_INJECTED * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_AWD_DISABLE * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (1) * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (1) * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ (1) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG (1)(2) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_INJ (1)(2) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ (1)(2) * @arg @ref LL_ADC_AWD_CH_VBAT_REG (1) * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (1) * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. */ #define __LL_ADC_ANALOGWD_CHANNEL_GROUP(__CHANNEL__, __GROUP__) \ (((__GROUP__) == LL_ADC_GROUP_REGULAR) \ ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) \ : \ ((__GROUP__) == LL_ADC_GROUP_INJECTED) \ ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL) \ : \ (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CR1_JAWDEN | ADC_CR1_AWDEN | ADC_CR1_AWDSGL) \ ) /** * @brief Helper macro to set the value of ADC analog watchdog threshold high * or low in function of ADC resolution, when ADC resolution is * different of 12 bits. * @note To be used with function @ref LL_ADC_SetAnalogWDThresholds(). * Example, with a ADC resolution of 8 bits, to set the value of * analog watchdog threshold high (on 8 bits): * LL_ADC_SetAnalogWDThresholds * (< ADCx param >, * __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(LL_ADC_RESOLUTION_8B, ) * ); * @param __ADC_RESOLUTION__ This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @param __AWD_THRESHOLD__ Value between Min_Data=0x000 and Max_Data=0xFFF * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ #define __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(__ADC_RESOLUTION__, __AWD_THRESHOLD__) \ ((__AWD_THRESHOLD__) << ((__ADC_RESOLUTION__) >> (ADC_CR1_RES_BITOFFSET_POS - 1UL ))) /** * @brief Helper macro to get the value of ADC analog watchdog threshold high * or low in function of ADC resolution, when ADC resolution is * different of 12 bits. * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). * Example, with a ADC resolution of 8 bits, to get the value of * analog watchdog threshold high (on 8 bits): * < threshold_value_6_bits > = __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION * (LL_ADC_RESOLUTION_8B, * LL_ADC_GetAnalogWDThresholds(, LL_ADC_AWD_THRESHOLD_HIGH) * ); * @param __ADC_RESOLUTION__ This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @param __AWD_THRESHOLD_12_BITS__ Value between Min_Data=0x000 and Max_Data=0xFFF * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ #define __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(__ADC_RESOLUTION__, __AWD_THRESHOLD_12_BITS__) \ ((__AWD_THRESHOLD_12_BITS__) >> ((__ADC_RESOLUTION__) >> (ADC_CR1_RES_BITOFFSET_POS - 1UL ))) #if defined(ADC_MULTIMODE_SUPPORT) /** * @brief Helper macro to get the ADC multimode conversion data of ADC master * or ADC slave from raw value with both ADC conversion data concatenated. * @note This macro is intended to be used when multimode transfer by DMA * is enabled: refer to function @ref LL_ADC_SetMultiDMATransfer(). * In this case the transferred data need to processed with this macro * to separate the conversion data of ADC master and ADC slave. * @param __ADC_MULTI_MASTER_SLAVE__ This parameter can be one of the following values: * @arg @ref LL_ADC_MULTI_MASTER * @arg @ref LL_ADC_MULTI_SLAVE * @param __ADC_MULTI_CONV_DATA__ Value between Min_Data=0x000 and Max_Data=0xFFF * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ #define __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(__ADC_MULTI_MASTER_SLAVE__, __ADC_MULTI_CONV_DATA__) \ (((__ADC_MULTI_CONV_DATA__) >> POSITION_VAL((__ADC_MULTI_MASTER_SLAVE__))) & ADC_CDR_RDATA_MST) #endif /** * @brief Helper macro to select the ADC common instance * to which is belonging the selected ADC instance. * @note ADC common register instance can be used for: * - Set parameters common to several ADC instances * - Multimode (for devices with several ADC instances) * Refer to functions having argument "ADCxy_COMMON" as parameter. * @param __ADCx__ ADC instance * @retval ADC common register instance */ #if defined(ADC1) && defined(ADC2) && defined(ADC3) #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ (ADC123_COMMON) #elif defined(ADC1) && defined(ADC2) #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ (ADC12_COMMON) #else #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ (ADC1_COMMON) #endif /** * @brief Helper macro to check if all ADC instances sharing the same * ADC common instance are disabled. * @note This check is required by functions with setting conditioned to * ADC state: * All ADC instances of the ADC common group must be disabled. * Refer to functions having argument "ADCxy_COMMON" as parameter. * @note On devices with only 1 ADC common instance, parameter of this macro * is useless and can be ignored (parameter kept for compatibility * with devices featuring several ADC common instances). * @param __ADCXY_COMMON__ ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Value "0" if all ADC instances sharing the same ADC common instance * are disabled. * Value "1" if at least one ADC instance sharing the same ADC common instance * is enabled. */ #if defined(ADC1) && defined(ADC2) && defined(ADC3) #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ (LL_ADC_IsEnabled(ADC1) | \ LL_ADC_IsEnabled(ADC2) | \ LL_ADC_IsEnabled(ADC3) ) #elif defined(ADC1) && defined(ADC2) #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ (LL_ADC_IsEnabled(ADC1) | \ LL_ADC_IsEnabled(ADC2) ) #else #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ (LL_ADC_IsEnabled(ADC1)) #endif /** * @brief Helper macro to define the ADC conversion data full-scale digital * value corresponding to the selected ADC resolution. * @note ADC conversion data full-scale corresponds to voltage range * determined by analog voltage references Vref+ and Vref- * (refer to reference manual). * @param __ADC_RESOLUTION__ This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval ADC conversion data equivalent voltage value (unit: mVolt) */ #define __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ (0xFFFU >> ((__ADC_RESOLUTION__) >> (ADC_CR1_RES_BITOFFSET_POS - 1UL))) /** * @brief Helper macro to convert the ADC conversion data from * a resolution to another resolution. * @param __DATA__ ADC conversion data to be converted * @param __ADC_RESOLUTION_CURRENT__ Resolution of to the data to be converted * This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @param __ADC_RESOLUTION_TARGET__ Resolution of the data after conversion * This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval ADC conversion data to the requested resolution */ #define __LL_ADC_CONVERT_DATA_RESOLUTION(__DATA__, __ADC_RESOLUTION_CURRENT__, __ADC_RESOLUTION_TARGET__) \ (((__DATA__) \ << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CR1_RES_BITOFFSET_POS - 1UL))) \ >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CR1_RES_BITOFFSET_POS - 1UL)) \ ) /** * @brief Helper macro to calculate the voltage (unit: mVolt) * corresponding to a ADC conversion data (unit: digital value). * @note Analog reference voltage (Vref+) must be either known from * user board environment or can be calculated using ADC measurement * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit mV) * @param __ADC_DATA__ ADC conversion data (resolution 12 bits) * (unit: digital value). * @param __ADC_RESOLUTION__ This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval ADC conversion data equivalent voltage value (unit: mVolt) */ #define __LL_ADC_CALC_DATA_TO_VOLTAGE(__VREFANALOG_VOLTAGE__,\ __ADC_DATA__,\ __ADC_RESOLUTION__) \ ((__ADC_DATA__) * (__VREFANALOG_VOLTAGE__) \ / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ ) /** * @brief Helper macro to calculate analog reference voltage (Vref+) * (unit: mVolt) from ADC conversion data of internal voltage * reference VrefInt. * @note Computation is using VrefInt calibration value * stored in system memory for each device during production. * @note This voltage depends on user board environment: voltage level * connected to pin Vref+. * On devices with small package, the pin Vref+ is not present * and internally bonded to pin Vdda. * @note On this STM32 series, calibration data of internal voltage reference * VrefInt corresponds to a resolution of 12 bits, * this is the recommended ADC resolution to convert voltage of * internal voltage reference VrefInt. * Otherwise, this macro performs the processing to scale * ADC conversion data to 12 bits. * @param __VREFINT_ADC_DATA__ ADC conversion data (resolution 12 bits) * of internal voltage reference VrefInt (unit: digital value). * @param __ADC_RESOLUTION__ This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval Analog reference voltage (unit: mV) */ #define __LL_ADC_CALC_VREFANALOG_VOLTAGE(__VREFINT_ADC_DATA__,\ __ADC_RESOLUTION__) \ (((uint32_t)(*VREFINT_CAL_ADDR) * VREFINT_CAL_VREF) \ / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ (__ADC_RESOLUTION__), \ LL_ADC_RESOLUTION_12B)) /* Note: On device STM32F4x9, calibration parameter TS_CAL2 is not available. */ /* Therefore, helper macro __LL_ADC_CALC_TEMPERATURE() is not available.*/ /* Use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). */ #if !defined(STM32F469) && !defined(STM32F479xx) && !defined(STM32F429xx) && !defined(STM32F439xx) /** * @brief Helper macro to calculate the temperature (unit: degree Celsius) * from ADC conversion data of internal temperature sensor. * @note Computation is using temperature sensor calibration values * stored in system memory for each device during production. * @note Calculation formula: * Temperature = ((TS_ADC_DATA - TS_CAL1) * * (TS_CAL2_TEMP - TS_CAL1_TEMP)) * / (TS_CAL2 - TS_CAL1) + TS_CAL1_TEMP * with TS_ADC_DATA = temperature sensor raw data measured by ADC * Avg_Slope = (TS_CAL2 - TS_CAL1) * / (TS_CAL2_TEMP - TS_CAL1_TEMP) * TS_CAL1 = equivalent TS_ADC_DATA at temperature * TEMP_DEGC_CAL1 (calibrated in factory) * TS_CAL2 = equivalent TS_ADC_DATA at temperature * TEMP_DEGC_CAL2 (calibrated in factory) * Caution: Calculation relevancy under reserve that calibration * parameters are correct (address and data). * To calculate temperature using temperature sensor * datasheet typical values (generic values less, therefore * less accurate than calibrated values), * use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). * @note As calculation input, the analog reference voltage (Vref+) must be * defined as it impacts the ADC LSB equivalent voltage. * @note Analog reference voltage (Vref+) must be either known from * user board environment or can be calculated using ADC measurement * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). * @note On this STM32 series, calibration data of temperature sensor * corresponds to a resolution of 12 bits, * this is the recommended ADC resolution to convert voltage of * temperature sensor. * Otherwise, this macro performs the processing to scale * ADC conversion data to 12 bits. * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit mV) * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal * temperature sensor (unit: digital value). * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature * sensor voltage has been measured. * This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval Temperature (unit: degree Celsius) */ #define __LL_ADC_CALC_TEMPERATURE(__VREFANALOG_VOLTAGE__,\ __TEMPSENSOR_ADC_DATA__,\ __ADC_RESOLUTION__) \ (((( ((int32_t)((__LL_ADC_CONVERT_DATA_RESOLUTION((__TEMPSENSOR_ADC_DATA__), \ (__ADC_RESOLUTION__), \ LL_ADC_RESOLUTION_12B) \ * (__VREFANALOG_VOLTAGE__)) \ / TEMPSENSOR_CAL_VREFANALOG) \ - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ ) + TEMPSENSOR_CAL1_TEMP \ ) #endif /** * @brief Helper macro to calculate the temperature (unit: degree Celsius) * from ADC conversion data of internal temperature sensor. * @note Computation is using temperature sensor typical values * (refer to device datasheet). * @note Calculation formula: * Temperature = (TS_TYP_CALx_VOLT(uV) - TS_ADC_DATA * Conversion_uV) * / Avg_Slope + CALx_TEMP * with TS_ADC_DATA = temperature sensor raw data measured by ADC * (unit: digital value) * Avg_Slope = temperature sensor slope * (unit: uV/Degree Celsius) * TS_TYP_CALx_VOLT = temperature sensor digital value at * temperature CALx_TEMP (unit: mV) * Caution: Calculation relevancy under reserve the temperature sensor * of the current device has characteristics in line with * datasheet typical values. * If temperature sensor calibration values are available on * on this device (presence of macro __LL_ADC_CALC_TEMPERATURE()), * temperature calculation will be more accurate using * helper macro @ref __LL_ADC_CALC_TEMPERATURE(). * @note As calculation input, the analog reference voltage (Vref+) must be * defined as it impacts the ADC LSB equivalent voltage. * @note Analog reference voltage (Vref+) must be either known from * user board environment or can be calculated using ADC measurement * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). * @note ADC measurement data must correspond to a resolution of 12bits * (full scale digital value 4095). If not the case, the data must be * preliminarily rescaled to an equivalent resolution of 12 bits. * @param __TEMPSENSOR_TYP_AVGSLOPE__ Device datasheet data Temperature sensor slope typical value (unit uV/DegCelsius). * On STM32F4, refer to device datasheet parameter "Avg_Slope". * @param __TEMPSENSOR_TYP_CALX_V__ Device datasheet data Temperature sensor voltage typical value (at temperature and Vref+ defined in parameters below) (unit mV). * On STM32F4, refer to device datasheet parameter "V25". * @param __TEMPSENSOR_CALX_TEMP__ Device datasheet data Temperature at which temperature sensor voltage (see parameter above) is corresponding (unit mV) * @param __VREFANALOG_VOLTAGE__ Analog voltage reference (Vref+) voltage (unit mV) * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal temperature sensor (unit digital value). * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature sensor voltage has been measured. * This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval Temperature (unit: degree Celsius) */ #define __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(__TEMPSENSOR_TYP_AVGSLOPE__,\ __TEMPSENSOR_TYP_CALX_V__,\ __TEMPSENSOR_CALX_TEMP__,\ __VREFANALOG_VOLTAGE__,\ __TEMPSENSOR_ADC_DATA__,\ __ADC_RESOLUTION__) \ ((( ( \ (int32_t)(((__TEMPSENSOR_TYP_CALX_V__)) \ * 1000) \ - \ (int32_t)((((__TEMPSENSOR_ADC_DATA__) * (__VREFANALOG_VOLTAGE__)) \ / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__)) \ * 1000) \ ) \ ) / (__TEMPSENSOR_TYP_AVGSLOPE__) \ ) + (__TEMPSENSOR_CALX_TEMP__) \ ) /** * @} */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup ADC_LL_Exported_Functions ADC Exported Functions * @{ */ /** @defgroup ADC_LL_EF_DMA_Management ADC DMA management * @{ */ /* Note: LL ADC functions to set DMA transfer are located into sections of */ /* configuration of ADC instance, groups and multimode (if available): */ /* @ref LL_ADC_REG_SetDMATransfer(), ... */ /** * @brief Function to help to configure DMA transfer from ADC: retrieve the * ADC register address from ADC instance and a list of ADC registers * intended to be used (most commonly) with DMA transfer. * @note These ADC registers are data registers: * when ADC conversion data is available in ADC data registers, * ADC generates a DMA transfer request. * @note This macro is intended to be used with LL DMA driver, refer to * function "LL_DMA_ConfigAddresses()". * Example: * LL_DMA_ConfigAddresses(DMA1, * LL_DMA_CHANNEL_1, * LL_ADC_DMA_GetRegAddr(ADC1, LL_ADC_DMA_REG_REGULAR_DATA), * (uint32_t)&< array or variable >, * LL_DMA_DIRECTION_PERIPH_TO_MEMORY); * @note For devices with several ADC: in multimode, some devices * use a different data register outside of ADC instance scope * (common data register). This macro manages this register difference, * only ADC instance has to be set as parameter. * @rmtoll DR RDATA LL_ADC_DMA_GetRegAddr\n * CDR RDATA_MST LL_ADC_DMA_GetRegAddr\n * CDR RDATA_SLV LL_ADC_DMA_GetRegAddr * @param ADCx ADC instance * @param Register This parameter can be one of the following values: * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA_MULTI (1) * * (1) Available on devices with several ADC instances. * @retval ADC register address */ #if defined(ADC_MULTIMODE_SUPPORT) __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) { uint32_t data_reg_addr = 0UL; if (Register == LL_ADC_DMA_REG_REGULAR_DATA) { /* Retrieve address of register DR */ data_reg_addr = (uint32_t)&(ADCx->DR); } else /* (Register == LL_ADC_DMA_REG_REGULAR_DATA_MULTI) */ { /* Retrieve address of register CDR */ data_reg_addr = (uint32_t)&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); } return data_reg_addr; } #else __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) { /* Retrieve address of register DR */ return (uint32_t)&(ADCx->DR); } #endif /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_Common Configuration of ADC hierarchical scope: common to several ADC instances * @{ */ /** * @brief Set parameter common to several ADC: Clock source and prescaler. * @rmtoll CCR ADCPRE LL_ADC_SetCommonClock * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param CommonClock This parameter can be one of the following values: * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV6 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV8 * @retval None */ __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_ADCPRE, CommonClock); } /** * @brief Get parameter common to several ADC: Clock source and prescaler. * @rmtoll CCR ADCPRE LL_ADC_GetCommonClock * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV6 * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV8 */ __STATIC_INLINE uint32_t LL_ADC_GetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_ADCPRE)); } /** * @brief Set parameter common to several ADC: measurement path to internal * channels (VrefInt, temperature sensor, ...). * @note One or several values can be selected. * Example: (LL_ADC_PATH_INTERNAL_VREFINT | * LL_ADC_PATH_INTERNAL_TEMPSENSOR) * @note Stabilization time of measurement path to internal channel: * After enabling internal paths, before starting ADC conversion, * a delay is required for internal voltage reference and * temperature sensor stabilization time. * Refer to device datasheet. * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. * Refer to literal @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US. * @note ADC internal channel sampling time constraint: * For ADC conversion of internal channels, * a sampling time minimum value is required. * Refer to device datasheet. * @rmtoll CCR TSVREFE LL_ADC_SetCommonPathInternalCh\n * CCR VBATE LL_ADC_SetCommonPathInternalCh * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param PathInternal This parameter can be a combination of the following values: * @arg @ref LL_ADC_PATH_INTERNAL_NONE * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR * @arg @ref LL_ADC_PATH_INTERNAL_VBAT * @retval None */ __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_TSVREFE | ADC_CCR_VBATE, PathInternal); } /** * @brief Get parameter common to several ADC: measurement path to internal * channels (VrefInt, temperature sensor, ...). * @note One or several values can be selected. * Example: (LL_ADC_PATH_INTERNAL_VREFINT | * LL_ADC_PATH_INTERNAL_TEMPSENSOR) * @rmtoll CCR TSVREFE LL_ADC_GetCommonPathInternalCh\n * CCR VBATE LL_ADC_GetCommonPathInternalCh * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Returned value can be a combination of the following values: * @arg @ref LL_ADC_PATH_INTERNAL_NONE * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR * @arg @ref LL_ADC_PATH_INTERNAL_VBAT */ __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_TSVREFE | ADC_CCR_VBATE)); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_Instance Configuration of ADC hierarchical scope: ADC instance * @{ */ /** * @brief Set ADC resolution. * Refer to reference manual for alignments formats * dependencies to ADC resolutions. * @rmtoll CR1 RES LL_ADC_SetResolution * @param ADCx ADC instance * @param Resolution This parameter can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B * @retval None */ __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) { MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); } /** * @brief Get ADC resolution. * Refer to reference manual for alignments formats * dependencies to ADC resolutions. * @rmtoll CR1 RES LL_ADC_GetResolution * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_RESOLUTION_12B * @arg @ref LL_ADC_RESOLUTION_10B * @arg @ref LL_ADC_RESOLUTION_8B * @arg @ref LL_ADC_RESOLUTION_6B */ __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); } /** * @brief Set ADC conversion data alignment. * @note Refer to reference manual for alignments formats * dependencies to ADC resolutions. * @rmtoll CR2 ALIGN LL_ADC_SetDataAlignment * @param ADCx ADC instance * @param DataAlignment This parameter can be one of the following values: * @arg @ref LL_ADC_DATA_ALIGN_RIGHT * @arg @ref LL_ADC_DATA_ALIGN_LEFT * @retval None */ __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) { MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); } /** * @brief Get ADC conversion data alignment. * @note Refer to reference manual for alignments formats * dependencies to ADC resolutions. * @rmtoll CR2 ALIGN LL_ADC_SetDataAlignment * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_DATA_ALIGN_RIGHT * @arg @ref LL_ADC_DATA_ALIGN_LEFT */ __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_ALIGN)); } /** * @brief Set ADC sequencers scan mode, for all ADC groups * (group regular, group injected). * @note According to sequencers scan mode : * - If disabled: ADC conversion is performed in unitary conversion * mode (one channel converted, that defined in rank 1). * Configuration of sequencers of all ADC groups * (sequencer scan length, ...) is discarded: equivalent to * scan length of 1 rank. * - If enabled: ADC conversions are performed in sequence conversions * mode, according to configuration of sequencers of * each ADC group (sequencer scan length, ...). * Refer to function @ref LL_ADC_REG_SetSequencerLength() * and to function @ref LL_ADC_INJ_SetSequencerLength(). * @rmtoll CR1 SCAN LL_ADC_SetSequencersScanMode * @param ADCx ADC instance * @param ScanMode This parameter can be one of the following values: * @arg @ref LL_ADC_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_SEQ_SCAN_ENABLE * @retval None */ __STATIC_INLINE void LL_ADC_SetSequencersScanMode(ADC_TypeDef *ADCx, uint32_t ScanMode) { MODIFY_REG(ADCx->CR1, ADC_CR1_SCAN, ScanMode); } /** * @brief Get ADC sequencers scan mode, for all ADC groups * (group regular, group injected). * @note According to sequencers scan mode : * - If disabled: ADC conversion is performed in unitary conversion * mode (one channel converted, that defined in rank 1). * Configuration of sequencers of all ADC groups * (sequencer scan length, ...) is discarded: equivalent to * scan length of 1 rank. * - If enabled: ADC conversions are performed in sequence conversions * mode, according to configuration of sequencers of * each ADC group (sequencer scan length, ...). * Refer to function @ref LL_ADC_REG_SetSequencerLength() * and to function @ref LL_ADC_INJ_SetSequencerLength(). * @rmtoll CR1 SCAN LL_ADC_GetSequencersScanMode * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_SEQ_SCAN_ENABLE */ __STATIC_INLINE uint32_t LL_ADC_GetSequencersScanMode(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_SCAN)); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Regular Configuration of ADC hierarchical scope: group regular * @{ */ /** * @brief Set ADC group regular conversion trigger source: * internal (SW start) or from external IP (timer event, * external interrupt line). * @note On this STM32 series, setting of external trigger edge is performed * using function @ref LL_ADC_REG_StartConversionExtTrig(). * @note Availability of parameters of trigger sources from timer * depends on timers availability on the selected device. * @rmtoll CR2 EXTSEL LL_ADC_REG_SetTriggerSource\n * CR2 EXTEN LL_ADC_REG_SetTriggerSource * @param ADCx ADC instance * @param TriggerSource This parameter can be one of the following values: * @arg @ref LL_ADC_REG_TRIG_SOFTWARE * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH4 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) { /* Note: On this STM32 series, ADC group regular external trigger edge */ /* is used to perform a ADC conversion start. */ /* This function does not set external trigger edge. */ /* This feature is set using function */ /* @ref LL_ADC_REG_StartConversionExtTrig(). */ MODIFY_REG(ADCx->CR2, ADC_CR2_EXTSEL, (TriggerSource & ADC_CR2_EXTSEL)); } /** * @brief Get ADC group regular conversion trigger source: * internal (SW start) or from external IP (timer event, * external interrupt line). * @note To determine whether group regular trigger source is * internal (SW start) or external, without detail * of which peripheral is selected as external trigger, * (equivalent to * "if(LL_ADC_REG_GetTriggerSource(ADC1) == LL_ADC_REG_TRIG_SOFTWARE)") * use function @ref LL_ADC_REG_IsTriggerSourceSWStart. * @note Availability of parameters of trigger sources from timer * depends on timers availability on the selected device. * @rmtoll CR2 EXTSEL LL_ADC_REG_GetTriggerSource\n * CR2 EXTEN LL_ADC_REG_GetTriggerSource * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_TRIG_SOFTWARE * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH4 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH2 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM5_CH3 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 */ __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerSource(ADC_TypeDef *ADCx) { uint32_t TriggerSource = READ_BIT(ADCx->CR2, ADC_CR2_EXTSEL | ADC_CR2_EXTEN); /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ /* corresponding to ADC_CR2_EXTEN {0; 1; 2; 3}. */ uint32_t ShiftExten = ((TriggerSource & ADC_CR2_EXTEN) >> (ADC_REG_TRIG_EXTEN_BITOFFSET_POS - 2UL)); /* Set bitfield corresponding to ADC_CR2_EXTEN and ADC_CR2_EXTSEL */ /* to match with triggers literals definition. */ return ((TriggerSource & (ADC_REG_TRIG_SOURCE_MASK << ShiftExten) & ADC_CR2_EXTSEL) | ((ADC_REG_TRIG_EDGE_MASK << ShiftExten) & ADC_CR2_EXTEN) ); } /** * @brief Get ADC group regular conversion trigger source internal (SW start) or external. * @note In case of group regular trigger source set to external trigger, * to determine which peripheral is selected as external trigger, * use function @ref LL_ADC_REG_GetTriggerSource(). * @rmtoll CR2 EXTEN LL_ADC_REG_IsTriggerSourceSWStart * @param ADCx ADC instance * @retval Value "0" if trigger source external trigger * Value "1" if trigger source SW start. */ __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR2, ADC_CR2_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CR2_EXTEN)); } /** * @brief Get ADC group regular conversion trigger polarity. * @note Applicable only for trigger source set to external trigger. * @note On this STM32 series, setting of external trigger edge is performed * using function @ref LL_ADC_REG_StartConversionExtTrig(). * @rmtoll CR2 EXTEN LL_ADC_REG_GetTriggerEdge * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_TRIG_EXT_RISING * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING */ __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerEdge(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_EXTEN)); } /** * @brief Set ADC group regular sequencer length and scan direction. * @note Description of ADC group regular sequencer features: * - For devices with sequencer fully configurable * (function "LL_ADC_REG_SetSequencerRanks()" available): * sequencer length and each rank affectation to a channel * are configurable. * This function performs configuration of: * - Sequence length: Number of ranks in the scan sequence. * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from rank 1 to rank n). * Sequencer ranks are selected using * function "LL_ADC_REG_SetSequencerRanks()". * - For devices with sequencer not fully configurable * (function "LL_ADC_REG_SetSequencerChannels()" available): * sequencer length and each rank affectation to a channel * are defined by channel number. * This function performs configuration of: * - Sequence length: Number of ranks in the scan sequence is * defined by number of channels set in the sequence, * rank of each channel is fixed by channel HW number. * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from lowest channel number to * highest channel number). * Sequencer ranks are selected using * function "LL_ADC_REG_SetSequencerChannels()". * @note On this STM32 series, group regular sequencer configuration * is conditioned to ADC instance sequencer mode. * If ADC instance sequencer mode is disabled, sequencers of * all groups (group regular, group injected) can be configured * but their execution is disabled (limited to rank 1). * Refer to function @ref LL_ADC_SetSequencersScanMode(). * @note Sequencer disabled is equivalent to sequencer of 1 rank: * ADC conversion on only 1 channel. * @rmtoll SQR1 L LL_ADC_REG_SetSequencerLength * @param ADCx ADC instance * @param SequencerNbRanks This parameter can be one of the following values: * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) { MODIFY_REG(ADCx->SQR1, ADC_SQR1_L, SequencerNbRanks); } /** * @brief Get ADC group regular sequencer length and scan direction. * @note Description of ADC group regular sequencer features: * - For devices with sequencer fully configurable * (function "LL_ADC_REG_SetSequencerRanks()" available): * sequencer length and each rank affectation to a channel * are configurable. * This function retrieves: * - Sequence length: Number of ranks in the scan sequence. * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from rank 1 to rank n). * Sequencer ranks are selected using * function "LL_ADC_REG_SetSequencerRanks()". * - For devices with sequencer not fully configurable * (function "LL_ADC_REG_SetSequencerChannels()" available): * sequencer length and each rank affectation to a channel * are defined by channel number. * This function retrieves: * - Sequence length: Number of ranks in the scan sequence is * defined by number of channels set in the sequence, * rank of each channel is fixed by channel HW number. * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from lowest channel number to * highest channel number). * Sequencer ranks are selected using * function "LL_ADC_REG_SetSequencerChannels()". * @note On this STM32 series, group regular sequencer configuration * is conditioned to ADC instance sequencer mode. * If ADC instance sequencer mode is disabled, sequencers of * all groups (group regular, group injected) can be configured * but their execution is disabled (limited to rank 1). * Refer to function @ref LL_ADC_SetSequencersScanMode(). * @note Sequencer disabled is equivalent to sequencer of 1 rank: * ADC conversion on only 1 channel. * @rmtoll SQR1 L LL_ADC_REG_SetSequencerLength * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS */ __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerLength(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->SQR1, ADC_SQR1_L)); } /** * @brief Set ADC group regular sequencer discontinuous mode: * sequence subdivided and scan conversions interrupted every selected * number of ranks. * @note It is not possible to enable both ADC group regular * continuous mode and sequencer discontinuous mode. * @note It is not possible to enable both ADC auto-injected mode * and ADC group regular sequencer discontinuous mode. * @rmtoll CR1 DISCEN LL_ADC_REG_SetSequencerDiscont\n * CR1 DISCNUM LL_ADC_REG_SetSequencerDiscont * @param ADCx ADC instance * @param SeqDiscont This parameter can be one of the following values: * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) { MODIFY_REG(ADCx->CR1, ADC_CR1_DISCEN | ADC_CR1_DISCNUM, SeqDiscont); } /** * @brief Get ADC group regular sequencer discontinuous mode: * sequence subdivided and scan conversions interrupted every selected * number of ranks. * @rmtoll CR1 DISCEN LL_ADC_REG_GetSequencerDiscont\n * CR1 DISCNUM LL_ADC_REG_GetSequencerDiscont * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS */ __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerDiscont(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_DISCEN | ADC_CR1_DISCNUM)); } /** * @brief Set ADC group regular sequence: channel on the selected * scan sequence rank. * @note This function performs configuration of: * - Channels ordering into each rank of scan sequence: * whatever channel can be placed into whatever rank. * @note On this STM32 series, ADC group regular sequencer is * fully configurable: sequencer length and each rank * affectation to a channel are configurable. * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). * @note Depending on devices and packages, some channels may not be available. * Refer to device datasheet for channels availability. * @note On this STM32 series, to measure internal channels (VrefInt, * TempSensor, ...), measurement paths to internal channels must be * enabled separately. * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). * @rmtoll SQR3 SQ1 LL_ADC_REG_SetSequencerRanks\n * SQR3 SQ2 LL_ADC_REG_SetSequencerRanks\n * SQR3 SQ3 LL_ADC_REG_SetSequencerRanks\n * SQR3 SQ4 LL_ADC_REG_SetSequencerRanks\n * SQR3 SQ5 LL_ADC_REG_SetSequencerRanks\n * SQR3 SQ6 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ7 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ8 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ9 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ10 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ11 LL_ADC_REG_SetSequencerRanks\n * SQR2 SQ12 LL_ADC_REG_SetSequencerRanks\n * SQR1 SQ13 LL_ADC_REG_SetSequencerRanks\n * SQR1 SQ14 LL_ADC_REG_SetSequencerRanks\n * SQR1 SQ15 LL_ADC_REG_SetSequencerRanks\n * SQR1 SQ16 LL_ADC_REG_SetSequencerRanks * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_REG_RANK_1 * @arg @ref LL_ADC_REG_RANK_2 * @arg @ref LL_ADC_REG_RANK_3 * @arg @ref LL_ADC_REG_RANK_4 * @arg @ref LL_ADC_REG_RANK_5 * @arg @ref LL_ADC_REG_RANK_6 * @arg @ref LL_ADC_REG_RANK_7 * @arg @ref LL_ADC_REG_RANK_8 * @arg @ref LL_ADC_REG_RANK_9 * @arg @ref LL_ADC_REG_RANK_10 * @arg @ref LL_ADC_REG_RANK_11 * @arg @ref LL_ADC_REG_RANK_12 * @arg @ref LL_ADC_REG_RANK_13 * @arg @ref LL_ADC_REG_RANK_14 * @arg @ref LL_ADC_REG_RANK_15 * @arg @ref LL_ADC_REG_RANK_16 * @param Channel This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel) { /* Set bits with content of parameter "Channel" with bits position */ /* in register and register position depending on parameter "Rank". */ /* Parameters "Rank" and "Channel" are used with masks because containing */ /* other bits reserved for other purpose. */ __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, __ADC_MASK_SHIFT(Rank, ADC_REG_SQRX_REGOFFSET_MASK)); MODIFY_REG(*preg, ADC_CHANNEL_ID_NUMBER_MASK << (Rank & ADC_REG_RANK_ID_SQRX_MASK), (Channel & ADC_CHANNEL_ID_NUMBER_MASK) << (Rank & ADC_REG_RANK_ID_SQRX_MASK)); } /** * @brief Get ADC group regular sequence: channel on the selected * scan sequence rank. * @note On this STM32 series, ADC group regular sequencer is * fully configurable: sequencer length and each rank * affectation to a channel are configurable. * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). * @note Depending on devices and packages, some channels may not be available. * Refer to device datasheet for channels availability. * @note Usage of the returned channel number: * - To reinject this channel into another function LL_ADC_xxx: * the returned channel number is only partly formatted on definition * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared * with parts of literals LL_ADC_CHANNEL_x or using * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * Then the selected literal LL_ADC_CHANNEL_x can be used * as parameter for another function. * - To get the channel number in decimal format: * process the returned value with the helper macro * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * @rmtoll SQR3 SQ1 LL_ADC_REG_GetSequencerRanks\n * SQR3 SQ2 LL_ADC_REG_GetSequencerRanks\n * SQR3 SQ3 LL_ADC_REG_GetSequencerRanks\n * SQR3 SQ4 LL_ADC_REG_GetSequencerRanks\n * SQR3 SQ5 LL_ADC_REG_GetSequencerRanks\n * SQR3 SQ6 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ7 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ8 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ9 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ10 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ11 LL_ADC_REG_GetSequencerRanks\n * SQR2 SQ12 LL_ADC_REG_GetSequencerRanks\n * SQR1 SQ13 LL_ADC_REG_GetSequencerRanks\n * SQR1 SQ14 LL_ADC_REG_GetSequencerRanks\n * SQR1 SQ15 LL_ADC_REG_GetSequencerRanks\n * SQR1 SQ16 LL_ADC_REG_GetSequencerRanks * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_REG_RANK_1 * @arg @ref LL_ADC_REG_RANK_2 * @arg @ref LL_ADC_REG_RANK_3 * @arg @ref LL_ADC_REG_RANK_4 * @arg @ref LL_ADC_REG_RANK_5 * @arg @ref LL_ADC_REG_RANK_6 * @arg @ref LL_ADC_REG_RANK_7 * @arg @ref LL_ADC_REG_RANK_8 * @arg @ref LL_ADC_REG_RANK_9 * @arg @ref LL_ADC_REG_RANK_10 * @arg @ref LL_ADC_REG_RANK_11 * @arg @ref LL_ADC_REG_RANK_12 * @arg @ref LL_ADC_REG_RANK_13 * @arg @ref LL_ADC_REG_RANK_14 * @arg @ref LL_ADC_REG_RANK_15 * @arg @ref LL_ADC_REG_RANK_16 * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled.\n * (1) For ADC channel read back from ADC register, * comparison with internal channel parameter to be done * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). */ __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, __ADC_MASK_SHIFT(Rank, ADC_REG_SQRX_REGOFFSET_MASK)); return (uint32_t) (READ_BIT(*preg, ADC_CHANNEL_ID_NUMBER_MASK << (Rank & ADC_REG_RANK_ID_SQRX_MASK)) >> (Rank & ADC_REG_RANK_ID_SQRX_MASK) ); } /** * @brief Set ADC continuous conversion mode on ADC group regular. * @note Description of ADC continuous conversion mode: * - single mode: one conversion per trigger * - continuous mode: after the first trigger, following * conversions launched successively automatically. * @note It is not possible to enable both ADC group regular * continuous mode and sequencer discontinuous mode. * @rmtoll CR2 CONT LL_ADC_REG_SetContinuousMode * @param ADCx ADC instance * @param Continuous This parameter can be one of the following values: * @arg @ref LL_ADC_REG_CONV_SINGLE * @arg @ref LL_ADC_REG_CONV_CONTINUOUS * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetContinuousMode(ADC_TypeDef *ADCx, uint32_t Continuous) { MODIFY_REG(ADCx->CR2, ADC_CR2_CONT, Continuous); } /** * @brief Get ADC continuous conversion mode on ADC group regular. * @note Description of ADC continuous conversion mode: * - single mode: one conversion per trigger * - continuous mode: after the first trigger, following * conversions launched successively automatically. * @rmtoll CR2 CONT LL_ADC_REG_GetContinuousMode * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_CONV_SINGLE * @arg @ref LL_ADC_REG_CONV_CONTINUOUS */ __STATIC_INLINE uint32_t LL_ADC_REG_GetContinuousMode(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_CONT)); } /** * @brief Set ADC group regular conversion data transfer: no transfer or * transfer by DMA, and DMA requests mode. * @note If transfer by DMA selected, specifies the DMA requests * mode: * - Limited mode (One shot mode): DMA transfer requests are stopped * when number of DMA data transfers (number of * ADC conversions) is reached. * This ADC mode is intended to be used with DMA mode non-circular. * - Unlimited mode: DMA transfer requests are unlimited, * whatever number of DMA data transfers (number of * ADC conversions). * This ADC mode is intended to be used with DMA mode circular. * @note If ADC DMA requests mode is set to unlimited and DMA is set to * mode non-circular: * when DMA transfers size will be reached, DMA will stop transfers of * ADC conversions data ADC will raise an overrun error * (overrun flag and interruption if enabled). * @note For devices with several ADC instances: ADC multimode DMA * settings are available using function @ref LL_ADC_SetMultiDMATransfer(). * @note To configure DMA source address (peripheral address), * use function @ref LL_ADC_DMA_GetRegAddr(). * @rmtoll CR2 DMA LL_ADC_REG_SetDMATransfer\n * CR2 DDS LL_ADC_REG_SetDMATransfer * @param ADCx ADC instance * @param DMATransfer This parameter can be one of the following values: * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetDMATransfer(ADC_TypeDef *ADCx, uint32_t DMATransfer) { MODIFY_REG(ADCx->CR2, ADC_CR2_DMA | ADC_CR2_DDS, DMATransfer); } /** * @brief Get ADC group regular conversion data transfer: no transfer or * transfer by DMA, and DMA requests mode. * @note If transfer by DMA selected, specifies the DMA requests * mode: * - Limited mode (One shot mode): DMA transfer requests are stopped * when number of DMA data transfers (number of * ADC conversions) is reached. * This ADC mode is intended to be used with DMA mode non-circular. * - Unlimited mode: DMA transfer requests are unlimited, * whatever number of DMA data transfers (number of * ADC conversions). * This ADC mode is intended to be used with DMA mode circular. * @note If ADC DMA requests mode is set to unlimited and DMA is set to * mode non-circular: * when DMA transfers size will be reached, DMA will stop transfers of * ADC conversions data ADC will raise an overrun error * (overrun flag and interruption if enabled). * @note For devices with several ADC instances: ADC multimode DMA * settings are available using function @ref LL_ADC_GetMultiDMATransfer(). * @note To configure DMA source address (peripheral address), * use function @ref LL_ADC_DMA_GetRegAddr(). * @rmtoll CR2 DMA LL_ADC_REG_GetDMATransfer\n * CR2 DDS LL_ADC_REG_GetDMATransfer * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED */ __STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransfer(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_DMA | ADC_CR2_DDS)); } /** * @brief Specify which ADC flag between EOC (end of unitary conversion) * or EOS (end of sequence conversions) is used to indicate * the end of conversion. * @note This feature is aimed to be set when using ADC with * programming model by polling or interruption * (programming model by DMA usually uses DMA interruptions * to indicate end of conversion and data transfer). * @note For ADC group injected, end of conversion (flag&IT) is raised * only at the end of the sequence. * @rmtoll CR2 EOCS LL_ADC_REG_SetFlagEndOfConversion * @param ADCx ADC instance * @param EocSelection This parameter can be one of the following values: * @arg @ref LL_ADC_REG_FLAG_EOC_SEQUENCE_CONV * @arg @ref LL_ADC_REG_FLAG_EOC_UNITARY_CONV * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetFlagEndOfConversion(ADC_TypeDef *ADCx, uint32_t EocSelection) { MODIFY_REG(ADCx->CR2, ADC_CR2_EOCS, EocSelection); } /** * @brief Get which ADC flag between EOC (end of unitary conversion) * or EOS (end of sequence conversions) is used to indicate * the end of conversion. * @rmtoll CR2 EOCS LL_ADC_REG_GetFlagEndOfConversion * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_REG_FLAG_EOC_SEQUENCE_CONV * @arg @ref LL_ADC_REG_FLAG_EOC_UNITARY_CONV */ __STATIC_INLINE uint32_t LL_ADC_REG_GetFlagEndOfConversion(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_EOCS)); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Injected Configuration of ADC hierarchical scope: group injected * @{ */ /** * @brief Set ADC group injected conversion trigger source: * internal (SW start) or from external IP (timer event, * external interrupt line). * @note On this STM32 series, setting of external trigger edge is performed * using function @ref LL_ADC_INJ_StartConversionExtTrig(). * @note Availability of parameters of trigger sources from timer * depends on timers availability on the selected device. * @rmtoll CR2 JEXTSEL LL_ADC_INJ_SetTriggerSource\n * CR2 JEXTEN LL_ADC_INJ_SetTriggerSource * @param ADCx ADC instance * @param TriggerSource This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH1 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM5_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM5_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH3 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) { /* Note: On this STM32 series, ADC group injected external trigger edge */ /* is used to perform a ADC conversion start. */ /* This function does not set external trigger edge. */ /* This feature is set using function */ /* @ref LL_ADC_INJ_StartConversionExtTrig(). */ MODIFY_REG(ADCx->CR2, ADC_CR2_JEXTSEL, (TriggerSource & ADC_CR2_JEXTSEL)); } /** * @brief Get ADC group injected conversion trigger source: * internal (SW start) or from external IP (timer event, * external interrupt line). * @note To determine whether group injected trigger source is * internal (SW start) or external, without detail * of which peripheral is selected as external trigger, * (equivalent to * "if(LL_ADC_INJ_GetTriggerSource(ADC1) == LL_ADC_INJ_TRIG_SOFTWARE)") * use function @ref LL_ADC_INJ_IsTriggerSourceSWStart. * @note Availability of parameters of trigger sources from timer * depends on timers availability on the selected device. * @rmtoll CR2 JEXTSEL LL_ADC_INJ_GetTriggerSource\n * CR2 JEXTEN LL_ADC_INJ_GetTriggerSource * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH1 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM5_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM5_TRGO * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH3 * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerSource(ADC_TypeDef *ADCx) { uint32_t TriggerSource = READ_BIT(ADCx->CR2, ADC_CR2_JEXTSEL | ADC_CR2_JEXTEN); /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ /* corresponding to ADC_CR2_JEXTEN {0; 1; 2; 3}. */ uint32_t ShiftExten = ((TriggerSource & ADC_CR2_JEXTEN) >> (ADC_INJ_TRIG_EXTEN_BITOFFSET_POS - 2UL)); /* Set bitfield corresponding to ADC_CR2_JEXTEN and ADC_CR2_JEXTSEL */ /* to match with triggers literals definition. */ return ((TriggerSource & (ADC_INJ_TRIG_SOURCE_MASK << ShiftExten) & ADC_CR2_JEXTSEL) | ((ADC_INJ_TRIG_EDGE_MASK << ShiftExten) & ADC_CR2_JEXTEN) ); } /** * @brief Get ADC group injected conversion trigger source internal (SW start) or external * @note In case of group injected trigger source set to external trigger, * to determine which peripheral is selected as external trigger, * use function @ref LL_ADC_INJ_GetTriggerSource. * @rmtoll CR2 JEXTEN LL_ADC_INJ_IsTriggerSourceSWStart * @param ADCx ADC instance * @retval Value "0" if trigger source external trigger * Value "1" if trigger source SW start. */ __STATIC_INLINE uint32_t LL_ADC_INJ_IsTriggerSourceSWStart(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR2, ADC_CR2_JEXTEN) == (LL_ADC_INJ_TRIG_SOFTWARE & ADC_CR2_JEXTEN)); } /** * @brief Get ADC group injected conversion trigger polarity. * Applicable only for trigger source set to external trigger. * @rmtoll CR2 JEXTEN LL_ADC_INJ_GetTriggerEdge * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerEdge(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_JEXTEN)); } /** * @brief Set ADC group injected sequencer length and scan direction. * @note This function performs configuration of: * - Sequence length: Number of ranks in the scan sequence. * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from rank 1 to rank n). * @note On this STM32 series, group injected sequencer configuration * is conditioned to ADC instance sequencer mode. * If ADC instance sequencer mode is disabled, sequencers of * all groups (group regular, group injected) can be configured * but their execution is disabled (limited to rank 1). * Refer to function @ref LL_ADC_SetSequencersScanMode(). * @note Sequencer disabled is equivalent to sequencer of 1 rank: * ADC conversion on only 1 channel. * @rmtoll JSQR JL LL_ADC_INJ_SetSequencerLength * @param ADCx ADC instance * @param SequencerNbRanks This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) { MODIFY_REG(ADCx->JSQR, ADC_JSQR_JL, SequencerNbRanks); } /** * @brief Get ADC group injected sequencer length and scan direction. * @note This function retrieves: * - Sequence length: Number of ranks in the scan sequence. * - Sequence direction: Unless specified in parameters, sequencer * scan direction is forward (from rank 1 to rank n). * @note On this STM32 series, group injected sequencer configuration * is conditioned to ADC instance sequencer mode. * If ADC instance sequencer mode is disabled, sequencers of * all groups (group regular, group injected) can be configured * but their execution is disabled (limited to rank 1). * Refer to function @ref LL_ADC_SetSequencersScanMode(). * @note Sequencer disabled is equivalent to sequencer of 1 rank: * ADC conversion on only 1 channel. * @rmtoll JSQR JL LL_ADC_INJ_GetSequencerLength * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerLength(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JL)); } /** * @brief Set ADC group injected sequencer discontinuous mode: * sequence subdivided and scan conversions interrupted every selected * number of ranks. * @note It is not possible to enable both ADC group injected * auto-injected mode and sequencer discontinuous mode. * @rmtoll CR1 DISCEN LL_ADC_INJ_SetSequencerDiscont * @param ADCx ADC instance * @param SeqDiscont This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) { MODIFY_REG(ADCx->CR1, ADC_CR1_JDISCEN, SeqDiscont); } /** * @brief Get ADC group injected sequencer discontinuous mode: * sequence subdivided and scan conversions interrupted every selected * number of ranks. * @rmtoll CR1 DISCEN LL_ADC_REG_GetSequencerDiscont * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerDiscont(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_JDISCEN)); } /** * @brief Set ADC group injected sequence: channel on the selected * sequence rank. * @note Depending on devices and packages, some channels may not be available. * Refer to device datasheet for channels availability. * @note On this STM32 series, to measure internal channels (VrefInt, * TempSensor, ...), measurement paths to internal channels must be * enabled separately. * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). * @rmtoll JSQR JSQ1 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @param Channel This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel) { /* Set bits with content of parameter "Channel" with bits position */ /* in register depending on parameter "Rank". */ /* Parameters "Rank" and "Channel" are used with masks because containing */ /* other bits reserved for other purpose. */ uint32_t tmpreg1 = (READ_BIT(ADCx->JSQR, ADC_JSQR_JL) >> ADC_JSQR_JL_Pos) + 1UL; MODIFY_REG(ADCx->JSQR, ADC_CHANNEL_ID_NUMBER_MASK << (5UL * (uint8_t)(((Rank) + 3UL) - (tmpreg1))), (Channel & ADC_CHANNEL_ID_NUMBER_MASK) << (5UL * (uint8_t)(((Rank) + 3UL) - (tmpreg1)))); } /** * @brief Get ADC group injected sequence: channel on the selected * sequence rank. * @note Depending on devices and packages, some channels may not be available. * Refer to device datasheet for channels availability. * @note Usage of the returned channel number: * - To reinject this channel into another function LL_ADC_xxx: * the returned channel number is only partly formatted on definition * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared * with parts of literals LL_ADC_CHANNEL_x or using * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * Then the selected literal LL_ADC_CHANNEL_x can be used * as parameter for another function. * - To get the channel number in decimal format: * process the returned value with the helper macro * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * @rmtoll JSQR JSQ1 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n * JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled.\n * (1) For ADC channel read back from ADC register, * comparison with internal channel parameter to be done * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank) { uint32_t tmpreg1 = (READ_BIT(ADCx->JSQR, ADC_JSQR_JL) >> ADC_JSQR_JL_Pos) + 1UL; return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_CHANNEL_ID_NUMBER_MASK << (5UL * (uint8_t)(((Rank) + 3UL) - (tmpreg1)))) >> (5UL * (uint8_t)(((Rank) + 3UL) - (tmpreg1))) ); } /** * @brief Set ADC group injected conversion trigger: * independent or from ADC group regular. * @note This mode can be used to extend number of data registers * updated after one ADC conversion trigger and with data * permanently kept (not erased by successive conversions of scan of * ADC sequencer ranks), up to 5 data registers: * 1 data register on ADC group regular, 4 data registers * on ADC group injected. * @note If ADC group injected injected trigger source is set to an * external trigger, this feature must be must be set to * independent trigger. * ADC group injected automatic trigger is compliant only with * group injected trigger source set to SW start, without any * further action on ADC group injected conversion start or stop: * in this case, ADC group injected is controlled only * from ADC group regular. * @note It is not possible to enable both ADC group injected * auto-injected mode and sequencer discontinuous mode. * @rmtoll CR1 JAUTO LL_ADC_INJ_SetTrigAuto * @param ADCx ADC instance * @param TrigAuto This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetTrigAuto(ADC_TypeDef *ADCx, uint32_t TrigAuto) { MODIFY_REG(ADCx->CR1, ADC_CR1_JAUTO, TrigAuto); } /** * @brief Get ADC group injected conversion trigger: * independent or from ADC group regular. * @rmtoll CR1 JAUTO LL_ADC_INJ_GetTrigAuto * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetTrigAuto(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_JAUTO)); } /** * @brief Set ADC group injected offset. * @note It sets: * - ADC group injected rank to which the offset programmed * will be applied * - Offset level (offset to be subtracted from the raw * converted data). * Caution: Offset format is dependent to ADC resolution: * offset has to be left-aligned on bit 11, the LSB (right bits) * are set to 0. * @note Offset cannot be enabled or disabled. * To emulate offset disabled, set an offset value equal to 0. * @rmtoll JOFR1 JOFFSET1 LL_ADC_INJ_SetOffset\n * JOFR2 JOFFSET2 LL_ADC_INJ_SetOffset\n * JOFR3 JOFFSET3 LL_ADC_INJ_SetOffset\n * JOFR4 JOFFSET4 LL_ADC_INJ_SetOffset * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0xFFF * @retval None */ __STATIC_INLINE void LL_ADC_INJ_SetOffset(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t OffsetLevel) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JOFR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JOFRX_REGOFFSET_MASK)); MODIFY_REG(*preg, ADC_JOFR1_JOFFSET1, OffsetLevel); } /** * @brief Get ADC group injected offset. * @note It gives offset level (offset to be subtracted from the raw converted data). * Caution: Offset format is dependent to ADC resolution: * offset has to be left-aligned on bit 11, the LSB (right bits) * are set to 0. * @rmtoll JOFR1 JOFFSET1 LL_ADC_INJ_GetOffset\n * JOFR2 JOFFSET2 LL_ADC_INJ_GetOffset\n * JOFR3 JOFFSET3 LL_ADC_INJ_GetOffset\n * JOFR4 JOFFSET4 LL_ADC_INJ_GetOffset * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ __STATIC_INLINE uint32_t LL_ADC_INJ_GetOffset(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JOFR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JOFRX_REGOFFSET_MASK)); return (uint32_t)(READ_BIT(*preg, ADC_JOFR1_JOFFSET1) ); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_Channels Configuration of ADC hierarchical scope: channels * @{ */ /** * @brief Set sampling time of the selected ADC channel * Unit: ADC clock cycles. * @note On this device, sampling time is on channel scope: independently * of channel mapped on ADC group regular or injected. * @note In case of internal channel (VrefInt, TempSensor, ...) to be * converted: * sampling time constraints must be respected (sampling time can be * adjusted in function of ADC clock frequency and sampling time * setting). * Refer to device datasheet for timings values (parameters TS_vrefint, * TS_temp, ...). * @note Conversion time is the addition of sampling time and processing time. * Refer to reference manual for ADC processing time of * this STM32 series. * @note In case of ADC conversion of internal channel (VrefInt, * temperature sensor, ...), a sampling time minimum value * is required. * Refer to device datasheet. * @rmtoll SMPR1 SMP18 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP17 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP16 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP15 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP14 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP13 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP12 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP11 LL_ADC_SetChannelSamplingTime\n * SMPR1 SMP10 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP9 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP8 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP7 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP6 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP5 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP4 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP3 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP2 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP1 LL_ADC_SetChannelSamplingTime\n * SMPR2 SMP0 LL_ADC_SetChannelSamplingTime * @param ADCx ADC instance * @param Channel This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @param SamplingTime This parameter can be one of the following values: * @arg @ref LL_ADC_SAMPLINGTIME_3CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_15CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_28CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_56CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_84CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_112CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_144CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_480CYCLES * @retval None */ __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime) { /* Set bits with content of parameter "SamplingTime" with bits position */ /* in register and register position depending on parameter "Channel". */ /* Parameter "Channel" is used with masks because containing */ /* other bits reserved for other purpose. */ __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPRX_REGOFFSET_MASK)); MODIFY_REG(*preg, ADC_SMPR2_SMP0 << __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPx_BITOFFSET_MASK), SamplingTime << __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPx_BITOFFSET_MASK)); } /** * @brief Get sampling time of the selected ADC channel * Unit: ADC clock cycles. * @note On this device, sampling time is on channel scope: independently * of channel mapped on ADC group regular or injected. * @note Conversion time is the addition of sampling time and processing time. * Refer to reference manual for ADC processing time of * this STM32 series. * @rmtoll SMPR1 SMP18 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP17 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP16 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP15 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP14 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP13 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP12 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP11 LL_ADC_GetChannelSamplingTime\n * SMPR1 SMP10 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP9 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP8 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP7 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP6 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP5 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP4 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP3 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP2 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP1 LL_ADC_GetChannelSamplingTime\n * SMPR2 SMP0 LL_ADC_GetChannelSamplingTime * @param ADCx ADC instance * @param Channel This parameter can be one of the following values: * @arg @ref LL_ADC_CHANNEL_0 * @arg @ref LL_ADC_CHANNEL_1 * @arg @ref LL_ADC_CHANNEL_2 * @arg @ref LL_ADC_CHANNEL_3 * @arg @ref LL_ADC_CHANNEL_4 * @arg @ref LL_ADC_CHANNEL_5 * @arg @ref LL_ADC_CHANNEL_6 * @arg @ref LL_ADC_CHANNEL_7 * @arg @ref LL_ADC_CHANNEL_8 * @arg @ref LL_ADC_CHANNEL_9 * @arg @ref LL_ADC_CHANNEL_10 * @arg @ref LL_ADC_CHANNEL_11 * @arg @ref LL_ADC_CHANNEL_12 * @arg @ref LL_ADC_CHANNEL_13 * @arg @ref LL_ADC_CHANNEL_14 * @arg @ref LL_ADC_CHANNEL_15 * @arg @ref LL_ADC_CHANNEL_16 * @arg @ref LL_ADC_CHANNEL_17 * @arg @ref LL_ADC_CHANNEL_18 * @arg @ref LL_ADC_CHANNEL_VREFINT (1) * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1)(2) * @arg @ref LL_ADC_CHANNEL_VBAT (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_SAMPLINGTIME_3CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_15CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_28CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_56CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_84CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_112CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_144CYCLES * @arg @ref LL_ADC_SAMPLINGTIME_480CYCLES */ __STATIC_INLINE uint32_t LL_ADC_GetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPRX_REGOFFSET_MASK)); return (uint32_t)(READ_BIT(*preg, ADC_SMPR2_SMP0 << __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPx_BITOFFSET_MASK)) >> __ADC_MASK_SHIFT(Channel, ADC_CHANNEL_SMPx_BITOFFSET_MASK) ); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_AnalogWatchdog Configuration of ADC transversal scope: analog watchdog * @{ */ /** * @brief Set ADC analog watchdog monitored channels: * a single channel or all channels, * on ADC groups regular and-or injected. * @note Once monitored channels are selected, analog watchdog * is enabled. * @note In case of need to define a single channel to monitor * with analog watchdog from sequencer channel definition, * use helper macro @ref __LL_ADC_ANALOGWD_CHANNEL_GROUP(). * @note On this STM32 series, there is only 1 kind of analog watchdog * instance: * - AWD standard (instance AWD1): * - channels monitored: can monitor 1 channel or all channels. * - groups monitored: ADC groups regular and-or injected. * - resolution: resolution is not limited (corresponds to * ADC resolution configured). * @rmtoll CR1 AWD1CH LL_ADC_SetAnalogWDMonitChannels\n * CR1 AWD1SGL LL_ADC_SetAnalogWDMonitChannels\n * CR1 AWD1EN LL_ADC_SetAnalogWDMonitChannels * @param ADCx ADC instance * @param AWDChannelGroup This parameter can be one of the following values: * @arg @ref LL_ADC_AWD_DISABLE * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (1) * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (1) * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ (1) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG (1)(2) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_INJ (1)(2) * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ (1)(2) * @arg @ref LL_ADC_AWD_CH_VBAT_REG (1) * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (1) * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (1) * * (1) On STM32F4, parameter available only on ADC instance: ADC1.\n * (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled. * @retval None */ __STATIC_INLINE void LL_ADC_SetAnalogWDMonitChannels(ADC_TypeDef *ADCx, uint32_t AWDChannelGroup) { MODIFY_REG(ADCx->CR1, (ADC_CR1_AWDEN | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL | ADC_CR1_AWDCH), AWDChannelGroup); } /** * @brief Get ADC analog watchdog monitored channel. * @note Usage of the returned channel number: * - To reinject this channel into another function LL_ADC_xxx: * the returned channel number is only partly formatted on definition * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared * with parts of literals LL_ADC_CHANNEL_x or using * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * Then the selected literal LL_ADC_CHANNEL_x can be used * as parameter for another function. * - To get the channel number in decimal format: * process the returned value with the helper macro * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). * Applicable only when the analog watchdog is set to monitor * one channel. * @note On this STM32 series, there is only 1 kind of analog watchdog * instance: * - AWD standard (instance AWD1): * - channels monitored: can monitor 1 channel or all channels. * - groups monitored: ADC groups regular and-or injected. * - resolution: resolution is not limited (corresponds to * ADC resolution configured). * @rmtoll CR1 AWD1CH LL_ADC_GetAnalogWDMonitChannels\n * CR1 AWD1SGL LL_ADC_GetAnalogWDMonitChannels\n * CR1 AWD1EN LL_ADC_GetAnalogWDMonitChannels * @param ADCx ADC instance * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_AWD_DISABLE * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ */ __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDMonitChannels(ADC_TypeDef *ADCx) { return (uint32_t)(READ_BIT(ADCx->CR1, (ADC_CR1_AWDEN | ADC_CR1_JAWDEN | ADC_CR1_AWDSGL | ADC_CR1_AWDCH))); } /** * @brief Set ADC analog watchdog threshold value of threshold * high or low. * @note In case of ADC resolution different of 12 bits, * analog watchdog thresholds data require a specific shift. * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). * @note On this STM32 series, there is only 1 kind of analog watchdog * instance: * - AWD standard (instance AWD1): * - channels monitored: can monitor 1 channel or all channels. * - groups monitored: ADC groups regular and-or injected. * - resolution: resolution is not limited (corresponds to * ADC resolution configured). * @rmtoll HTR HT LL_ADC_SetAnalogWDThresholds\n * LTR LT LL_ADC_SetAnalogWDThresholds * @param ADCx ADC instance * @param AWDThresholdsHighLow This parameter can be one of the following values: * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH * @arg @ref LL_ADC_AWD_THRESHOLD_LOW * @param AWDThresholdValue Value between Min_Data=0x000 and Max_Data=0xFFF * @retval None */ __STATIC_INLINE void LL_ADC_SetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDThresholdsHighLow, uint32_t AWDThresholdValue) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->HTR, AWDThresholdsHighLow); MODIFY_REG(*preg, ADC_HTR_HT, AWDThresholdValue); } /** * @brief Get ADC analog watchdog threshold value of threshold high or * threshold low. * @note In case of ADC resolution different of 12 bits, * analog watchdog thresholds data require a specific shift. * Use helper macro @ref __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(). * @rmtoll HTR HT LL_ADC_GetAnalogWDThresholds\n * LTR LT LL_ADC_GetAnalogWDThresholds * @param ADCx ADC instance * @param AWDThresholdsHighLow This parameter can be one of the following values: * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH * @arg @ref LL_ADC_AWD_THRESHOLD_LOW * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDThresholdsHighLow) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->HTR, AWDThresholdsHighLow); return (uint32_t)(READ_BIT(*preg, ADC_HTR_HT)); } /** * @} */ /** @defgroup ADC_LL_EF_Configuration_ADC_Multimode Configuration of ADC hierarchical scope: multimode * @{ */ #if defined(ADC_MULTIMODE_SUPPORT) /** * @brief Set ADC multimode configuration to operate in independent mode * or multimode (for devices with several ADC instances). * @note If multimode configuration: the selected ADC instance is * either master or slave depending on hardware. * Refer to reference manual. * @rmtoll CCR MULTI LL_ADC_SetMultimode * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param Multimode This parameter can be one of the following values: * @arg @ref LL_ADC_MULTI_INDEPENDENT * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_SIM * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_ALT * @arg @ref LL_ADC_MULTI_TRIPLE_INJ_SIMULT * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIMULT * @arg @ref LL_ADC_MULTI_TRIPLE_REG_INTERL * @arg @ref LL_ADC_MULTI_TRIPLE_INJ_ALTERN * @retval None */ __STATIC_INLINE void LL_ADC_SetMultimode(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Multimode) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_MULTI, Multimode); } /** * @brief Get ADC multimode configuration to operate in independent mode * or multimode (for devices with several ADC instances). * @note If multimode configuration: the selected ADC instance is * either master or slave depending on hardware. * Refer to reference manual. * @rmtoll CCR MULTI LL_ADC_GetMultimode * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_MULTI_INDEPENDENT * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_SIM * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_ALT * @arg @ref LL_ADC_MULTI_TRIPLE_INJ_SIMULT * @arg @ref LL_ADC_MULTI_TRIPLE_REG_SIMULT * @arg @ref LL_ADC_MULTI_TRIPLE_REG_INTERL * @arg @ref LL_ADC_MULTI_TRIPLE_INJ_ALTERN */ __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_MULTI)); } /** * @brief Set ADC multimode conversion data transfer: no transfer * or transfer by DMA. * @note If ADC multimode transfer by DMA is not selected: * each ADC uses its own DMA channel, with its individual * DMA transfer settings. * If ADC multimode transfer by DMA is selected: * One DMA channel is used for both ADC (DMA of ADC master) * Specifies the DMA requests mode: * - Limited mode (One shot mode): DMA transfer requests are stopped * when number of DMA data transfers (number of * ADC conversions) is reached. * This ADC mode is intended to be used with DMA mode non-circular. * - Unlimited mode: DMA transfer requests are unlimited, * whatever number of DMA data transfers (number of * ADC conversions). * This ADC mode is intended to be used with DMA mode circular. * @note If ADC DMA requests mode is set to unlimited and DMA is set to * mode non-circular: * when DMA transfers size will be reached, DMA will stop transfers of * ADC conversions data ADC will raise an overrun error * (overrun flag and interruption if enabled). * @note How to retrieve multimode conversion data: * Whatever multimode transfer by DMA setting: using function * @ref LL_ADC_REG_ReadMultiConversionData32(). * If ADC multimode transfer by DMA is selected: conversion data * is a raw data with ADC master and slave concatenated. * A macro is available to get the conversion data of * ADC master or ADC slave: see helper macro * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). * @rmtoll CCR MDMA LL_ADC_SetMultiDMATransfer\n * CCR DDS LL_ADC_SetMultiDMATransfer * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param MultiDMATransfer This parameter can be one of the following values: * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_1 * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_2 * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_3 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_1 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_2 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_3 * @retval None */ __STATIC_INLINE void LL_ADC_SetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t MultiDMATransfer) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DMA | ADC_CCR_DDS, MultiDMATransfer); } /** * @brief Get ADC multimode conversion data transfer: no transfer * or transfer by DMA. * @note If ADC multimode transfer by DMA is not selected: * each ADC uses its own DMA channel, with its individual * DMA transfer settings. * If ADC multimode transfer by DMA is selected: * One DMA channel is used for both ADC (DMA of ADC master) * Specifies the DMA requests mode: * - Limited mode (One shot mode): DMA transfer requests are stopped * when number of DMA data transfers (number of * ADC conversions) is reached. * This ADC mode is intended to be used with DMA mode non-circular. * - Unlimited mode: DMA transfer requests are unlimited, * whatever number of DMA data transfers (number of * ADC conversions). * This ADC mode is intended to be used with DMA mode circular. * @note If ADC DMA requests mode is set to unlimited and DMA is set to * mode non-circular: * when DMA transfers size will be reached, DMA will stop transfers of * ADC conversions data ADC will raise an overrun error * (overrun flag and interruption if enabled). * @note How to retrieve multimode conversion data: * Whatever multimode transfer by DMA setting: using function * @ref LL_ADC_REG_ReadMultiConversionData32(). * If ADC multimode transfer by DMA is selected: conversion data * is a raw data with ADC master and slave concatenated. * A macro is available to get the conversion data of * ADC master or ADC slave: see helper macro * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). * @rmtoll CCR MDMA LL_ADC_GetMultiDMATransfer\n * CCR DDS LL_ADC_GetMultiDMATransfer * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_1 * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_2 * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_3 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_1 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_2 * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_3 */ __STATIC_INLINE uint32_t LL_ADC_GetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DMA | ADC_CCR_DDS)); } /** * @brief Set ADC multimode delay between 2 sampling phases. * @note The sampling delay range depends on ADC resolution: * - ADC resolution 12 bits can have maximum delay of 12 cycles. * - ADC resolution 10 bits can have maximum delay of 10 cycles. * - ADC resolution 8 bits can have maximum delay of 8 cycles. * - ADC resolution 6 bits can have maximum delay of 6 cycles. * @rmtoll CCR DELAY LL_ADC_SetMultiTwoSamplingDelay * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param MultiTwoSamplingDelay This parameter can be one of the following values: * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_13CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_14CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_15CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_16CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_17CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_18CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_19CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_20CYCLES * @retval None */ __STATIC_INLINE void LL_ADC_SetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t MultiTwoSamplingDelay) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DELAY, MultiTwoSamplingDelay); } /** * @brief Get ADC multimode delay between 2 sampling phases. * @rmtoll CCR DELAY LL_ADC_GetMultiTwoSamplingDelay * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval Returned value can be one of the following values: * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_13CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_14CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_15CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_16CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_17CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_18CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_19CYCLES * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_20CYCLES */ __STATIC_INLINE uint32_t LL_ADC_GetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DELAY)); } #endif /* ADC_MULTIMODE_SUPPORT */ /** * @} */ /** @defgroup ADC_LL_EF_Operation_ADC_Instance Operation on ADC hierarchical scope: ADC instance * @{ */ /** * @brief Enable the selected ADC instance. * @note On this STM32 series, after ADC enable, a delay for * ADC internal analog stabilization is required before performing a * ADC conversion start. * Refer to device datasheet, parameter tSTAB. * @rmtoll CR2 ADON LL_ADC_Enable * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR2, ADC_CR2_ADON); } /** * @brief Disable the selected ADC instance. * @rmtoll CR2 ADON LL_ADC_Disable * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR2, ADC_CR2_ADON); } /** * @brief Get the selected ADC instance enable state. * @rmtoll CR2 ADON LL_ADC_IsEnabled * @param ADCx ADC instance * @retval 0: ADC is disabled, 1: ADC is enabled. */ __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR2, ADC_CR2_ADON) == (ADC_CR2_ADON)); } /** * @} */ /** @defgroup ADC_LL_EF_Operation_ADC_Group_Regular Operation on ADC hierarchical scope: group regular * @{ */ /** * @brief Start ADC group regular conversion. * @note On this STM32 series, this function is relevant only for * internal trigger (SW start), not for external trigger: * - If ADC trigger has been set to software start, ADC conversion * starts immediately. * - If ADC trigger has been set to external trigger, ADC conversion * start must be performed using function * @ref LL_ADC_REG_StartConversionExtTrig(). * (if external trigger edge would have been set during ADC other * settings, ADC conversion would start at trigger event * as soon as ADC is enabled). * @rmtoll CR2 SWSTART LL_ADC_REG_StartConversionSWStart * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_REG_StartConversionSWStart(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR2, ADC_CR2_SWSTART); } /** * @brief Start ADC group regular conversion from external trigger. * @note ADC conversion will start at next trigger event (on the selected * trigger edge) following the ADC start conversion command. * @note On this STM32 series, this function is relevant for * ADC conversion start from external trigger. * If internal trigger (SW start) is needed, perform ADC conversion * start using function @ref LL_ADC_REG_StartConversionSWStart(). * @rmtoll CR2 EXTEN LL_ADC_REG_StartConversionExtTrig * @param ExternalTriggerEdge This parameter can be one of the following values: * @arg @ref LL_ADC_REG_TRIG_EXT_RISING * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_REG_StartConversionExtTrig(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) { SET_BIT(ADCx->CR2, ExternalTriggerEdge); } /** * @brief Stop ADC group regular conversion from external trigger. * @note No more ADC conversion will start at next trigger event * following the ADC stop conversion command. * If a conversion is on-going, it will be completed. * @note On this STM32 series, there is no specific command * to stop a conversion on-going or to stop ADC converting * in continuous mode. These actions can be performed * using function @ref LL_ADC_Disable(). * @rmtoll CR2 EXTEN LL_ADC_REG_StopConversionExtTrig * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_REG_StopConversionExtTrig(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR2, ADC_CR2_EXTEN); } /** * @brief Get ADC group regular conversion data, range fit for * all ADC configurations: all ADC resolutions and * all oversampling increased data width (for devices * with feature oversampling). * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData32 * @param ADCx ADC instance * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF */ __STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32(ADC_TypeDef *ADCx) { return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_DATA)); } /** * @brief Get ADC group regular conversion data, range fit for * ADC resolution 12 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_REG_ReadConversionData32. * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData12 * @param ADCx ADC instance * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12(ADC_TypeDef *ADCx) { return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_DATA)); } /** * @brief Get ADC group regular conversion data, range fit for * ADC resolution 10 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_REG_ReadConversionData32. * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData10 * @param ADCx ADC instance * @retval Value between Min_Data=0x000 and Max_Data=0x3FF */ __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10(ADC_TypeDef *ADCx) { return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_DATA)); } /** * @brief Get ADC group regular conversion data, range fit for * ADC resolution 8 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_REG_ReadConversionData32. * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData8 * @param ADCx ADC instance * @retval Value between Min_Data=0x00 and Max_Data=0xFF */ __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8(ADC_TypeDef *ADCx) { return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_DATA)); } /** * @brief Get ADC group regular conversion data, range fit for * ADC resolution 6 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_REG_ReadConversionData32. * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData6 * @param ADCx ADC instance * @retval Value between Min_Data=0x00 and Max_Data=0x3F */ __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData6(ADC_TypeDef *ADCx) { return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_DATA)); } #if defined(ADC_MULTIMODE_SUPPORT) /** * @brief Get ADC multimode conversion data of ADC master, ADC slave * or raw data with ADC master and slave concatenated. * @note If raw data with ADC master and slave concatenated is retrieved, * a macro is available to get the conversion data of * ADC master or ADC slave: see helper macro * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). * (however this macro is mainly intended for multimode * transfer by DMA, because this function can do the same * by getting multimode conversion data of ADC master or ADC slave * separately). * @rmtoll CDR DATA1 LL_ADC_REG_ReadMultiConversionData32\n * CDR DATA2 LL_ADC_REG_ReadMultiConversionData32 * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param ConversionData This parameter can be one of the following values: * @arg @ref LL_ADC_MULTI_MASTER * @arg @ref LL_ADC_MULTI_SLAVE * @arg @ref LL_ADC_MULTI_MASTER_SLAVE * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF */ __STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t ConversionData) { return (uint32_t)(READ_BIT(ADCxy_COMMON->CDR, ADC_DR_ADC2DATA) >> POSITION_VAL(ConversionData) ); } #endif /* ADC_MULTIMODE_SUPPORT */ /** * @} */ /** @defgroup ADC_LL_EF_Operation_ADC_Group_Injected Operation on ADC hierarchical scope: group injected * @{ */ /** * @brief Start ADC group injected conversion. * @note On this STM32 series, this function is relevant only for * internal trigger (SW start), not for external trigger: * - If ADC trigger has been set to software start, ADC conversion * starts immediately. * - If ADC trigger has been set to external trigger, ADC conversion * start must be performed using function * @ref LL_ADC_INJ_StartConversionExtTrig(). * (if external trigger edge would have been set during ADC other * settings, ADC conversion would start at trigger event * as soon as ADC is enabled). * @rmtoll CR2 JSWSTART LL_ADC_INJ_StartConversionSWStart * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_INJ_StartConversionSWStart(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR2, ADC_CR2_JSWSTART); } /** * @brief Start ADC group injected conversion from external trigger. * @note ADC conversion will start at next trigger event (on the selected * trigger edge) following the ADC start conversion command. * @note On this STM32 series, this function is relevant for * ADC conversion start from external trigger. * If internal trigger (SW start) is needed, perform ADC conversion * start using function @ref LL_ADC_INJ_StartConversionSWStart(). * @rmtoll CR2 JEXTEN LL_ADC_INJ_StartConversionExtTrig * @param ExternalTriggerEdge This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_INJ_StartConversionExtTrig(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) { SET_BIT(ADCx->CR2, ExternalTriggerEdge); } /** * @brief Stop ADC group injected conversion from external trigger. * @note No more ADC conversion will start at next trigger event * following the ADC stop conversion command. * If a conversion is on-going, it will be completed. * @note On this STM32 series, there is no specific command * to stop a conversion on-going or to stop ADC converting * in continuous mode. These actions can be performed * using function @ref LL_ADC_Disable(). * @rmtoll CR2 JEXTEN LL_ADC_INJ_StopConversionExtTrig * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_INJ_StopConversionExtTrig(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR2, ADC_CR2_JEXTEN); } /** * @brief Get ADC group regular conversion data, range fit for * all ADC configurations: all ADC resolutions and * all oversampling increased data width (for devices * with feature oversampling). * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32\n * JDR2 JDATA LL_ADC_INJ_ReadConversionData32\n * JDR3 JDATA LL_ADC_INJ_ReadConversionData32\n * JDR4 JDATA LL_ADC_INJ_ReadConversionData32 * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF */ __STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JDRX_REGOFFSET_MASK)); return (uint32_t)(READ_BIT(*preg, ADC_JDR1_JDATA) ); } /** * @brief Get ADC group injected conversion data, range fit for * ADC resolution 12 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_INJ_ReadConversionData32. * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData12\n * JDR2 JDATA LL_ADC_INJ_ReadConversionData12\n * JDR3 JDATA LL_ADC_INJ_ReadConversionData12\n * JDR4 JDATA LL_ADC_INJ_ReadConversionData12 * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x000 and Max_Data=0xFFF */ __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JDRX_REGOFFSET_MASK)); return (uint16_t)(READ_BIT(*preg, ADC_JDR1_JDATA) ); } /** * @brief Get ADC group injected conversion data, range fit for * ADC resolution 10 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_INJ_ReadConversionData32. * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData10\n * JDR2 JDATA LL_ADC_INJ_ReadConversionData10\n * JDR3 JDATA LL_ADC_INJ_ReadConversionData10\n * JDR4 JDATA LL_ADC_INJ_ReadConversionData10 * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x000 and Max_Data=0x3FF */ __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JDRX_REGOFFSET_MASK)); return (uint16_t)(READ_BIT(*preg, ADC_JDR1_JDATA) ); } /** * @brief Get ADC group injected conversion data, range fit for * ADC resolution 8 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_INJ_ReadConversionData32. * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData8\n * JDR2 JDATA LL_ADC_INJ_ReadConversionData8\n * JDR3 JDATA LL_ADC_INJ_ReadConversionData8\n * JDR4 JDATA LL_ADC_INJ_ReadConversionData8 * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x00 and Max_Data=0xFF */ __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JDRX_REGOFFSET_MASK)); return (uint8_t)(READ_BIT(*preg, ADC_JDR1_JDATA) ); } /** * @brief Get ADC group injected conversion data, range fit for * ADC resolution 6 bits. * @note For devices with feature oversampling: Oversampling * can increase data width, function for extended range * may be needed: @ref LL_ADC_INJ_ReadConversionData32. * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData6\n * JDR2 JDATA LL_ADC_INJ_ReadConversionData6\n * JDR3 JDATA LL_ADC_INJ_ReadConversionData6\n * JDR4 JDATA LL_ADC_INJ_ReadConversionData6 * @param ADCx ADC instance * @param Rank This parameter can be one of the following values: * @arg @ref LL_ADC_INJ_RANK_1 * @arg @ref LL_ADC_INJ_RANK_2 * @arg @ref LL_ADC_INJ_RANK_3 * @arg @ref LL_ADC_INJ_RANK_4 * @retval Value between Min_Data=0x00 and Max_Data=0x3F */ __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData6(ADC_TypeDef *ADCx, uint32_t Rank) { __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, __ADC_MASK_SHIFT(Rank, ADC_INJ_JDRX_REGOFFSET_MASK)); return (uint8_t)(READ_BIT(*preg, ADC_JDR1_JDATA) ); } /** * @} */ /** @defgroup ADC_LL_EF_FLAG_Management ADC flag management * @{ */ /** * @brief Get flag ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll SR EOC LL_ADC_IsActiveFlag_EOCS * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOCS(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->SR, LL_ADC_FLAG_EOCS) == (LL_ADC_FLAG_EOCS)); } /** * @brief Get flag ADC group regular overrun. * @rmtoll SR OVR LL_ADC_IsActiveFlag_OVR * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_OVR(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->SR, LL_ADC_FLAG_OVR) == (LL_ADC_FLAG_OVR)); } /** * @brief Get flag ADC group injected end of sequence conversions. * @rmtoll SR JEOC LL_ADC_IsActiveFlag_JEOS * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOS(ADC_TypeDef *ADCx) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ return (READ_BIT(ADCx->SR, LL_ADC_FLAG_JEOS) == (LL_ADC_FLAG_JEOS)); } /** * @brief Get flag ADC analog watchdog 1 flag * @rmtoll SR AWD LL_ADC_IsActiveFlag_AWD1 * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD1(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->SR, LL_ADC_FLAG_AWD1) == (LL_ADC_FLAG_AWD1)); } /** * @brief Clear flag ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll SR EOC LL_ADC_ClearFlag_EOCS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_ClearFlag_EOCS(ADC_TypeDef *ADCx) { WRITE_REG(ADCx->SR, ~LL_ADC_FLAG_EOCS); } /** * @brief Clear flag ADC group regular overrun. * @rmtoll SR OVR LL_ADC_ClearFlag_OVR * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_ClearFlag_OVR(ADC_TypeDef *ADCx) { WRITE_REG(ADCx->SR, ~LL_ADC_FLAG_OVR); } /** * @brief Clear flag ADC group injected end of sequence conversions. * @rmtoll SR JEOC LL_ADC_ClearFlag_JEOS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_ClearFlag_JEOS(ADC_TypeDef *ADCx) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ WRITE_REG(ADCx->SR, ~LL_ADC_FLAG_JEOS); } /** * @brief Clear flag ADC analog watchdog 1. * @rmtoll SR AWD LL_ADC_ClearFlag_AWD1 * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx) { WRITE_REG(ADCx->SR, ~LL_ADC_FLAG_AWD1); } #if defined(ADC_MULTIMODE_SUPPORT) /** * @brief Get flag multimode ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration, of the ADC master. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll CSR EOC1 LL_ADC_IsActiveFlag_MST_EOCS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOCS(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADC1->SR, LL_ADC_FLAG_EOCS) == (LL_ADC_FLAG_EOCS)); } /** * @brief Get flag multimode ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration, of the ADC slave 1. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll CSR EOC2 LL_ADC_IsActiveFlag_SLV1_EOCS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV1_EOCS(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOCS_SLV1) == (LL_ADC_FLAG_EOCS_SLV1)); } /** * @brief Get flag multimode ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration, of the ADC slave 2. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll CSR EOC3 LL_ADC_IsActiveFlag_SLV2_EOCS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV2_EOCS(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOCS_SLV2) == (LL_ADC_FLAG_EOCS_SLV2)); } /** * @brief Get flag multimode ADC group regular overrun of the ADC master. * @rmtoll CSR OVR1 LL_ADC_IsActiveFlag_MST_OVR * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_OVR(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_MST) == (LL_ADC_FLAG_OVR_MST)); } /** * @brief Get flag multimode ADC group regular overrun of the ADC slave 1. * @rmtoll CSR OVR2 LL_ADC_IsActiveFlag_SLV1_OVR * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV1_OVR(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_SLV1) == (LL_ADC_FLAG_OVR_SLV1)); } /** * @brief Get flag multimode ADC group regular overrun of the ADC slave 2. * @rmtoll CSR OVR3 LL_ADC_IsActiveFlag_SLV2_OVR * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV2_OVR(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_SLV2) == (LL_ADC_FLAG_OVR_SLV2)); } /** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC master. * @rmtoll CSR JEOC LL_ADC_IsActiveFlag_MST_EOCS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOS(ADC_Common_TypeDef *ADCxy_COMMON) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ return (READ_BIT(ADCxy_COMMON->CSR, ADC_CSR_JEOC1) == (ADC_CSR_JEOC1)); } /** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC slave 1. * @rmtoll CSR JEOC2 LL_ADC_IsActiveFlag_SLV1_JEOS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV1_JEOS(ADC_Common_TypeDef *ADCxy_COMMON) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ return (READ_BIT(ADCxy_COMMON->CSR, ADC_CSR_JEOC2) == (ADC_CSR_JEOC2)); } /** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC slave 2. * @rmtoll CSR JEOC3 LL_ADC_IsActiveFlag_SLV2_JEOS * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV2_JEOS(ADC_Common_TypeDef *ADCxy_COMMON) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ return (READ_BIT(ADCxy_COMMON->CSR, ADC_CSR_JEOC3) == (ADC_CSR_JEOC3)); } /** * @brief Get flag multimode ADC analog watchdog 1 of the ADC master. * @rmtoll CSR AWD1 LL_ADC_IsActiveFlag_MST_AWD1 * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD1(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_MST) == (LL_ADC_FLAG_AWD1_MST)); } /** * @brief Get flag multimode analog watchdog 1 of the ADC slave 1. * @rmtoll CSR AWD2 LL_ADC_IsActiveFlag_SLV1_AWD1 * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV1_AWD1(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_SLV1) == (LL_ADC_FLAG_AWD1_SLV1)); } /** * @brief Get flag multimode analog watchdog 1 of the ADC slave 2. * @rmtoll CSR AWD3 LL_ADC_IsActiveFlag_SLV2_AWD1 * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV2_AWD1(ADC_Common_TypeDef *ADCxy_COMMON) { return (READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_SLV2) == (LL_ADC_FLAG_AWD1_SLV2)); } #endif /* ADC_MULTIMODE_SUPPORT */ /** * @} */ /** @defgroup ADC_LL_EF_IT_Management ADC IT management * @{ */ /** * @brief Enable interruption ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll CR1 EOCIE LL_ADC_EnableIT_EOCS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_EnableIT_EOCS(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR1, LL_ADC_IT_EOCS); } /** * @brief Enable ADC group regular interruption overrun. * @rmtoll CR1 OVRIE LL_ADC_EnableIT_OVR * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_EnableIT_OVR(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR1, LL_ADC_IT_OVR); } /** * @brief Enable interruption ADC group injected end of sequence conversions. * @rmtoll CR1 JEOCIE LL_ADC_EnableIT_JEOS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_EnableIT_JEOS(ADC_TypeDef *ADCx) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ SET_BIT(ADCx->CR1, LL_ADC_IT_JEOS); } /** * @brief Enable interruption ADC analog watchdog 1. * @rmtoll CR1 AWDIE LL_ADC_EnableIT_AWD1 * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_EnableIT_AWD1(ADC_TypeDef *ADCx) { SET_BIT(ADCx->CR1, LL_ADC_IT_AWD1); } /** * @brief Disable interruption ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * @rmtoll CR1 EOCIE LL_ADC_DisableIT_EOCS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_DisableIT_EOCS(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR1, LL_ADC_IT_EOCS); } /** * @brief Disable interruption ADC group regular overrun. * @rmtoll CR1 OVRIE LL_ADC_DisableIT_OVR * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_DisableIT_OVR(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR1, LL_ADC_IT_OVR); } /** * @brief Disable interruption ADC group injected end of sequence conversions. * @rmtoll CR1 JEOCIE LL_ADC_EnableIT_JEOS * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_DisableIT_JEOS(ADC_TypeDef *ADCx) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ CLEAR_BIT(ADCx->CR1, LL_ADC_IT_JEOS); } /** * @brief Disable interruption ADC analog watchdog 1. * @rmtoll CR1 AWDIE LL_ADC_EnableIT_AWD1 * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_DisableIT_AWD1(ADC_TypeDef *ADCx) { CLEAR_BIT(ADCx->CR1, LL_ADC_IT_AWD1); } /** * @brief Get state of interruption ADC group regular end of unitary conversion * or end of sequence conversions, depending on * ADC configuration. * @note To configure flag of end of conversion, * use function @ref LL_ADC_REG_SetFlagEndOfConversion(). * (0: interrupt disabled, 1: interrupt enabled) * @rmtoll CR1 EOCIE LL_ADC_IsEnabledIT_EOCS * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsEnabledIT_EOCS(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR1, LL_ADC_IT_EOCS) == (LL_ADC_IT_EOCS)); } /** * @brief Get state of interruption ADC group regular overrun * (0: interrupt disabled, 1: interrupt enabled). * @rmtoll CR1 OVRIE LL_ADC_IsEnabledIT_OVR * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsEnabledIT_OVR(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR1, LL_ADC_IT_OVR) == (LL_ADC_IT_OVR)); } /** * @brief Get state of interruption ADC group injected end of sequence conversions * (0: interrupt disabled, 1: interrupt enabled). * @rmtoll CR1 JEOCIE LL_ADC_EnableIT_JEOS * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsEnabledIT_JEOS(ADC_TypeDef *ADCx) { /* Note: on this STM32 series, there is no flag ADC group injected */ /* end of unitary conversion. */ /* Flag noted as "JEOC" is corresponding to flag "JEOS" */ /* in other STM32 families). */ return (READ_BIT(ADCx->CR1, LL_ADC_IT_JEOS) == (LL_ADC_IT_JEOS)); } /** * @brief Get state of interruption ADC analog watchdog 1 * (0: interrupt disabled, 1: interrupt enabled). * @rmtoll CR1 AWDIE LL_ADC_EnableIT_AWD1 * @param ADCx ADC instance * @retval State of bit (1 or 0). */ __STATIC_INLINE uint32_t LL_ADC_IsEnabledIT_AWD1(ADC_TypeDef *ADCx) { return (READ_BIT(ADCx->CR1, LL_ADC_IT_AWD1) == (LL_ADC_IT_AWD1)); } /** * @} */ #if defined(USE_FULL_LL_DRIVER) /** @defgroup ADC_LL_EF_Init Initialization and de-initialization functions * @{ */ /* Initialization of some features of ADC common parameters and multimode */ ErrorStatus LL_ADC_CommonDeInit(ADC_Common_TypeDef *ADCxy_COMMON); ErrorStatus LL_ADC_CommonInit(ADC_Common_TypeDef *ADCxy_COMMON, LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct); void LL_ADC_CommonStructInit(LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct); /* De-initialization of ADC instance, ADC group regular and ADC group injected */ /* (availability of ADC group injected depends on STM32 families) */ ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx); /* Initialization of some features of ADC instance */ ErrorStatus LL_ADC_Init(ADC_TypeDef *ADCx, LL_ADC_InitTypeDef *ADC_InitStruct); void LL_ADC_StructInit(LL_ADC_InitTypeDef *ADC_InitStruct); /* Initialization of some features of ADC instance and ADC group regular */ ErrorStatus LL_ADC_REG_Init(ADC_TypeDef *ADCx, LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct); void LL_ADC_REG_StructInit(LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct); /* Initialization of some features of ADC instance and ADC group injected */ ErrorStatus LL_ADC_INJ_Init(ADC_TypeDef *ADCx, LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct); void LL_ADC_INJ_StructInit(LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct); /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /** * @} */ /** * @} */ #endif /* ADC1 || ADC2 || ADC3 */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __STM32F4xx_LL_ADC_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h ================================================ /** ****************************************************************************** * @file stm32f4xx_ll_usb.h * @author MCD Application Team * @brief Header file of USB Low Layer HAL module. ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32F4xx_LL_USB_H #define STM32F4xx_LL_USB_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal_def.h" #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup USB_LL * @{ */ /* Exported types ------------------------------------------------------------*/ /** * @brief USB Mode definition */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) typedef enum { USB_DEVICE_MODE = 0, USB_HOST_MODE = 1, USB_DRD_MODE = 2 } USB_OTG_ModeTypeDef; /** * @brief URB States definition */ typedef enum { URB_IDLE = 0, URB_DONE, URB_NOTREADY, URB_NYET, URB_ERROR, URB_STALL } USB_OTG_URBStateTypeDef; /** * @brief Host channel States definition */ typedef enum { HC_IDLE = 0, HC_XFRC, HC_HALTED, HC_NAK, HC_NYET, HC_STALL, HC_XACTERR, HC_BBLERR, HC_DATATGLERR } USB_OTG_HCStateTypeDef; /** * @brief USB Instance Initialization Structure definition */ typedef struct { uint32_t dev_endpoints; /*!< Device Endpoints number. This parameter depends on the used USB core. This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint32_t Host_channels; /*!< Host Channels number. This parameter Depends on the used USB core. This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint32_t speed; /*!< USB Core speed. This parameter can be any value of @ref USB_Core_Speed */ uint32_t dma_enable; /*!< Enable or disable of the USB embedded DMA used only for OTG HS. */ uint32_t ep0_mps; /*!< Set the Endpoint 0 Max Packet size. */ uint32_t phy_itface; /*!< Select the used PHY interface. This parameter can be any value of @ref USB_Core_PHY */ uint32_t Sof_enable; /*!< Enable or disable the output of the SOF signal. */ uint32_t low_power_enable; /*!< Enable or disable the low power mode. */ uint32_t lpm_enable; /*!< Enable or disable Link Power Management. */ uint32_t battery_charging_enable; /*!< Enable or disable Battery charging. */ uint32_t vbus_sensing_enable; /*!< Enable or disable the VBUS Sensing feature. */ uint32_t use_dedicated_ep1; /*!< Enable or disable the use of the dedicated EP1 interrupt. */ uint32_t use_external_vbus; /*!< Enable or disable the use of the external VBUS. */ } USB_OTG_CfgTypeDef; typedef struct { uint8_t num; /*!< Endpoint number This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint8_t is_in; /*!< Endpoint direction This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t is_stall; /*!< Endpoint stall condition This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t type; /*!< Endpoint type This parameter can be any value of @ref USB_EP_Type_ */ uint8_t data_pid_start; /*!< Initial data PID This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t even_odd_frame; /*!< IFrame parity This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint16_t tx_fifo_num; /*!< Transmission FIFO number This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint32_t maxpacket; /*!< Endpoint Max packet size This parameter must be a number between Min_Data = 0 and Max_Data = 64KB */ uint8_t *xfer_buff; /*!< Pointer to transfer buffer */ uint32_t dma_addr; /*!< 32 bits aligned transfer buffer address */ uint32_t xfer_len; /*!< Current transfer length */ uint32_t xfer_count; /*!< Partial transfer length in case of multi packet transfer */ } USB_OTG_EPTypeDef; typedef struct { uint8_t dev_addr; /*!< USB device address. This parameter must be a number between Min_Data = 1 and Max_Data = 255 */ uint8_t ch_num; /*!< Host channel number. This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint8_t ep_num; /*!< Endpoint number. This parameter must be a number between Min_Data = 1 and Max_Data = 15 */ uint8_t ep_is_in; /*!< Endpoint direction This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t speed; /*!< USB Host speed. This parameter can be any value of @ref USB_Core_Speed_ */ uint8_t do_ping; /*!< Enable or disable the use of the PING protocol for HS mode. */ uint8_t process_ping; /*!< Execute the PING protocol for HS mode. */ uint8_t ep_type; /*!< Endpoint Type. This parameter can be any value of @ref USB_EP_Type_ */ uint16_t max_packet; /*!< Endpoint Max packet size. This parameter must be a number between Min_Data = 0 and Max_Data = 64KB */ uint8_t data_pid; /*!< Initial data PID. This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t *xfer_buff; /*!< Pointer to transfer buffer. */ uint32_t XferSize; /*!< OTG Channel transfer size. */ uint32_t xfer_len; /*!< Current transfer length. */ uint32_t xfer_count; /*!< Partial transfer length in case of multi packet transfer. */ uint8_t toggle_in; /*!< IN transfer current toggle flag. This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint8_t toggle_out; /*!< OUT transfer current toggle flag This parameter must be a number between Min_Data = 0 and Max_Data = 1 */ uint32_t dma_addr; /*!< 32 bits aligned transfer buffer address. */ uint32_t ErrCnt; /*!< Host channel error count. */ USB_OTG_URBStateTypeDef urb_state; /*!< URB state. This parameter can be any value of @ref USB_OTG_URBStateTypeDef */ USB_OTG_HCStateTypeDef state; /*!< Host Channel state. This parameter can be any value of @ref USB_OTG_HCStateTypeDef */ } USB_OTG_HCTypeDef; #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /* Exported constants --------------------------------------------------------*/ /** @defgroup PCD_Exported_Constants PCD Exported Constants * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** @defgroup USB_OTG_CORE VERSION ID * @{ */ #define USB_OTG_CORE_ID_300A 0x4F54300AU #define USB_OTG_CORE_ID_310A 0x4F54310AU /** * @} */ /** @defgroup USB_Core_Mode_ USB Core Mode * @{ */ #define USB_OTG_MODE_DEVICE 0U #define USB_OTG_MODE_HOST 1U #define USB_OTG_MODE_DRD 2U /** * @} */ /** @defgroup USB_LL Device Speed * @{ */ #define USBD_HS_SPEED 0U #define USBD_HSINFS_SPEED 1U #define USBH_HS_SPEED 0U #define USBD_FS_SPEED 2U #define USBH_FSLS_SPEED 1U /** * @} */ /** @defgroup USB_LL_Core_Speed USB Low Layer Core Speed * @{ */ #define USB_OTG_SPEED_HIGH 0U #define USB_OTG_SPEED_HIGH_IN_FULL 1U #define USB_OTG_SPEED_FULL 3U /** * @} */ /** @defgroup USB_LL_Core_PHY USB Low Layer Core PHY * @{ */ #define USB_OTG_ULPI_PHY 1U #define USB_OTG_EMBEDDED_PHY 2U /** * @} */ /** @defgroup USB_LL_Turnaround_Timeout Turnaround Timeout Value * @{ */ #ifndef USBD_HS_TRDT_VALUE #define USBD_HS_TRDT_VALUE 9U #endif /* USBD_HS_TRDT_VALUE */ #ifndef USBD_FS_TRDT_VALUE #define USBD_FS_TRDT_VALUE 5U #define USBD_DEFAULT_TRDT_VALUE 9U #endif /* USBD_HS_TRDT_VALUE */ /** * @} */ /** @defgroup USB_LL_Core_MPS USB Low Layer Core MPS * @{ */ #define USB_OTG_HS_MAX_PACKET_SIZE 512U #define USB_OTG_FS_MAX_PACKET_SIZE 64U #define USB_OTG_MAX_EP0_SIZE 64U /** * @} */ /** @defgroup USB_LL_Core_PHY_Frequency USB Low Layer Core PHY Frequency * @{ */ #define DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ (0U << 1) #define DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ (1U << 1) #define DSTS_ENUMSPD_FS_PHY_48MHZ (3U << 1) /** * @} */ /** @defgroup USB_LL_CORE_Frame_Interval USB Low Layer Core Frame Interval * @{ */ #define DCFG_FRAME_INTERVAL_80 0U #define DCFG_FRAME_INTERVAL_85 1U #define DCFG_FRAME_INTERVAL_90 2U #define DCFG_FRAME_INTERVAL_95 3U /** * @} */ /** @defgroup USB_LL_EP0_MPS USB Low Layer EP0 MPS * @{ */ #define EP_MPS_64 0U #define EP_MPS_32 1U #define EP_MPS_16 2U #define EP_MPS_8 3U /** * @} */ /** @defgroup USB_LL_EP_Speed USB Low Layer EP Speed * @{ */ #define EP_SPEED_LOW 0U #define EP_SPEED_FULL 1U #define EP_SPEED_HIGH 2U /** * @} */ /** @defgroup USB_LL_EP_Type USB Low Layer EP Type * @{ */ #define EP_TYPE_CTRL 0U #define EP_TYPE_ISOC 1U #define EP_TYPE_BULK 2U #define EP_TYPE_INTR 3U #define EP_TYPE_MSK 3U /** * @} */ /** @defgroup USB_LL_STS_Defines USB Low Layer STS Defines * @{ */ #define STS_GOUT_NAK 1U #define STS_DATA_UPDT 2U #define STS_XFER_COMP 3U #define STS_SETUP_COMP 4U #define STS_SETUP_UPDT 6U /** * @} */ /** @defgroup USB_LL_HCFG_SPEED_Defines USB Low Layer HCFG Speed Defines * @{ */ #define HCFG_30_60_MHZ 0U #define HCFG_48_MHZ 1U #define HCFG_6_MHZ 2U /** * @} */ /** @defgroup USB_LL_HPRT0_PRTSPD_SPEED_Defines USB Low Layer HPRT0 PRTSPD Speed Defines * @{ */ #define HPRT0_PRTSPD_HIGH_SPEED 0U #define HPRT0_PRTSPD_FULL_SPEED 1U #define HPRT0_PRTSPD_LOW_SPEED 2U /** * @} */ #define HCCHAR_CTRL 0U #define HCCHAR_ISOC 1U #define HCCHAR_BULK 2U #define HCCHAR_INTR 3U #define HC_PID_DATA0 0U #define HC_PID_DATA2 1U #define HC_PID_DATA1 2U #define HC_PID_SETUP 3U #define GRXSTS_PKTSTS_IN 2U #define GRXSTS_PKTSTS_IN_XFER_COMP 3U #define GRXSTS_PKTSTS_DATA_TOGGLE_ERR 5U #define GRXSTS_PKTSTS_CH_HALTED 7U #define USBx_PCGCCTL *(__IO uint32_t *)((uint32_t)USBx_BASE + USB_OTG_PCGCCTL_BASE) #define USBx_HPRT0 *(__IO uint32_t *)((uint32_t)USBx_BASE + USB_OTG_HOST_PORT_BASE) #define USBx_DEVICE ((USB_OTG_DeviceTypeDef *)(USBx_BASE + USB_OTG_DEVICE_BASE)) #define USBx_INEP(i) ((USB_OTG_INEndpointTypeDef *)(USBx_BASE + USB_OTG_IN_ENDPOINT_BASE + ((i) * USB_OTG_EP_REG_SIZE))) #define USBx_OUTEP(i) ((USB_OTG_OUTEndpointTypeDef *)(USBx_BASE + USB_OTG_OUT_ENDPOINT_BASE + ((i) * USB_OTG_EP_REG_SIZE))) #define USBx_DFIFO(i) *(__IO uint32_t *)(USBx_BASE + USB_OTG_FIFO_BASE + ((i) * USB_OTG_FIFO_SIZE)) #define USBx_HOST ((USB_OTG_HostTypeDef *)(USBx_BASE + USB_OTG_HOST_BASE)) #define USBx_HC(i) ((USB_OTG_HostChannelTypeDef *)(USBx_BASE + USB_OTG_HOST_CHANNEL_BASE + ((i) * USB_OTG_HOST_CHANNEL_SIZE))) #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #define EP_ADDR_MSK 0xFU /** * @} */ /* Exported macro ------------------------------------------------------------*/ /** @defgroup USB_LL_Exported_Macros USB Low Layer Exported Macros * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) #define USB_MASK_INTERRUPT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->GINTMSK &= ~(__INTERRUPT__)) #define USB_UNMASK_INTERRUPT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->GINTMSK |= (__INTERRUPT__)) #define CLEAR_IN_EP_INTR(__EPNUM__, __INTERRUPT__) (USBx_INEP(__EPNUM__)->DIEPINT = (__INTERRUPT__)) #define CLEAR_OUT_EP_INTR(__EPNUM__, __INTERRUPT__) (USBx_OUTEP(__EPNUM__)->DOEPINT = (__INTERRUPT__)) #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup USB_LL_Exported_Functions USB Low Layer Exported Functions * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg); HAL_StatusTypeDef USB_DevInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg); HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_DisableGlobalInt(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx, uint32_t hclk, uint8_t speed); HAL_StatusTypeDef USB_SetCurrentMode(USB_OTG_GlobalTypeDef *USBx, USB_OTG_ModeTypeDef mode); HAL_StatusTypeDef USB_SetDevSpeed(USB_OTG_GlobalTypeDef *USBx, uint8_t speed); HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_FlushTxFifo(USB_OTG_GlobalTypeDef *USBx, uint32_t num); HAL_StatusTypeDef USB_ActivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_DeactivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_ActivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_EPStartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma); HAL_StatusTypeDef USB_EP0StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma); HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma); void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len); HAL_StatusTypeDef USB_EPSetStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_EPClearStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep); HAL_StatusTypeDef USB_SetDevAddress(USB_OTG_GlobalTypeDef *USBx, uint8_t address); HAL_StatusTypeDef USB_DevConnect(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_DevDisconnect(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_StopDevice(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_ActivateSetup(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_EP0_OutStart(USB_OTG_GlobalTypeDef *USBx, uint8_t dma, uint8_t *psetup); uint8_t USB_GetDevSpeed(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_GetMode(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_ReadInterrupts(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_ReadDevAllOutEpInterrupt(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_ReadDevOutEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum); uint32_t USB_ReadDevAllInEpInterrupt(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_ReadDevInEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum); void USB_ClearInterrupts(USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt); HAL_StatusTypeDef USB_HostInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg); HAL_StatusTypeDef USB_InitFSLSPClkSel(USB_OTG_GlobalTypeDef *USBx, uint8_t freq); HAL_StatusTypeDef USB_ResetPort(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_DriveVbus(USB_OTG_GlobalTypeDef *USBx, uint8_t state); uint32_t USB_GetHostSpeed(USB_OTG_GlobalTypeDef *USBx); uint32_t USB_GetCurrentFrame(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_HC_Init(USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps); HAL_StatusTypeDef USB_HC_StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_HCTypeDef *hc, uint8_t dma); uint32_t USB_HC_ReadInterrupt(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_HC_Halt(USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num); HAL_StatusTypeDef USB_DoPing(USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num); HAL_StatusTypeDef USB_StopHost(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_ActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx); HAL_StatusTypeDef USB_DeActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx); #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /** * @} */ /** * @} */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #ifdef __cplusplus } #endif #endif /* STM32F4xx_LL_USB_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal.c * @author MCD Application Team * @brief HAL module driver. * This is the common part of the HAL initialization * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The common HAL driver contains a set of generic and common APIs that can be used by the PPP peripheral drivers and the user to start using the HAL. [..] The HAL contains two APIs' categories: (+) Common HAL APIs (+) Services HAL APIs @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup HAL HAL * @brief HAL module driver. * @{ */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup HAL_Private_Constants * @{ */ /** * @brief STM32F4xx HAL Driver version number V1.7.12 */ #define __STM32F4xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */ #define __STM32F4xx_HAL_VERSION_SUB1 (0x07U) /*!< [23:16] sub1 version */ #define __STM32F4xx_HAL_VERSION_SUB2 (0x0CU) /*!< [15:8] sub2 version */ #define __STM32F4xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */ #define __STM32F4xx_HAL_VERSION ((__STM32F4xx_HAL_VERSION_MAIN << 24U)\ |(__STM32F4xx_HAL_VERSION_SUB1 << 16U)\ |(__STM32F4xx_HAL_VERSION_SUB2 << 8U )\ |(__STM32F4xx_HAL_VERSION_RC)) #define IDCODE_DEVID_MASK 0x00000FFFU /* ------------ RCC registers bit address in the alias region ----------- */ #define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE) /* --- MEMRMP Register ---*/ /* Alias word address of UFB_MODE bit */ #define MEMRMP_OFFSET SYSCFG_OFFSET #define UFB_MODE_BIT_NUMBER SYSCFG_MEMRMP_UFB_MODE_Pos #define UFB_MODE_BB (uint32_t)(PERIPH_BB_BASE + (MEMRMP_OFFSET * 32U) + (UFB_MODE_BIT_NUMBER * 4U)) /* --- CMPCR Register ---*/ /* Alias word address of CMP_PD bit */ #define CMPCR_OFFSET (SYSCFG_OFFSET + 0x20U) #define CMP_PD_BIT_NUMBER SYSCFG_CMPCR_CMP_PD_Pos #define CMPCR_CMP_PD_BB (uint32_t)(PERIPH_BB_BASE + (CMPCR_OFFSET * 32U) + (CMP_PD_BIT_NUMBER * 4U)) /* --- MCHDLYCR Register ---*/ /* Alias word address of BSCKSEL bit */ #define MCHDLYCR_OFFSET (SYSCFG_OFFSET + 0x30U) #define BSCKSEL_BIT_NUMBER SYSCFG_MCHDLYCR_BSCKSEL_Pos #define MCHDLYCR_BSCKSEL_BB (uint32_t)(PERIPH_BB_BASE + (MCHDLYCR_OFFSET * 32U) + (BSCKSEL_BIT_NUMBER * 4U)) /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @addtogroup HAL_Private_Variables * @{ */ __IO uint32_t uwTick; uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */ HAL_TickFreqTypeDef uwTickFreq = HAL_TICK_FREQ_DEFAULT; /* 1KHz */ /** * @} */ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @defgroup HAL_Exported_Functions HAL Exported Functions * @{ */ /** @defgroup HAL_Exported_Functions_Group1 Initialization and de-initialization Functions * @brief Initialization and de-initialization functions * @verbatim =============================================================================== ##### Initialization and Configuration functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initializes the Flash interface the NVIC allocation and initial clock configuration. It initializes the systick also when timeout is needed and the backup domain when enabled. (+) De-Initializes common part of the HAL. (+) Configure the time base source to have 1ms time base with a dedicated Tick interrupt priority. (++) SysTick timer is used by default as source of time base, but user can eventually implement his proper time base source (a general purpose timer for example or other time source), keeping in mind that Time base duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and handled in milliseconds basis. (++) Time base configuration function (HAL_InitTick ()) is called automatically at the beginning of the program after reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig(). (++) Source of time base is configured to generate interrupts at regular time intervals. Care must be taken if HAL_Delay() is called from a peripheral ISR process, the Tick interrupt line must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. (++) functions affecting time base configurations are declared as __weak to make override possible in case of other implementations in user file. @endverbatim * @{ */ /** * @brief This function is used to initialize the HAL Library; it must be the first * instruction to be executed in the main program (before to call any other * HAL function), it performs the following: * Configure the Flash prefetch, instruction and Data caches. * Configures the SysTick to generate an interrupt each 1 millisecond, * which is clocked by the HSI (at this stage, the clock is not yet * configured and thus the system is running from the internal HSI at 16 MHz). * Set NVIC Group Priority to 4. * Calls the HAL_MspInit() callback function defined in user file * "stm32f4xx_hal_msp.c" to do the global low level hardware initialization * * @note SysTick is used as time base for the HAL_Delay() function, the application * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { /* Configure Flash prefetch, Instruction cache, Data cache */ #if (INSTRUCTION_CACHE_ENABLE != 0U) __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); #endif /* INSTRUCTION_CACHE_ENABLE */ #if (DATA_CACHE_ENABLE != 0U) __HAL_FLASH_DATA_CACHE_ENABLE(); #endif /* DATA_CACHE_ENABLE */ #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); /* Init the low level hardware */ HAL_MspInit(); /* Return function status */ return HAL_OK; } /** * @brief This function de-Initializes common part of the HAL and stops the systick. * This function is optional. * @retval HAL status */ HAL_StatusTypeDef HAL_DeInit(void) { /* Reset of all peripherals */ __HAL_RCC_APB1_FORCE_RESET(); __HAL_RCC_APB1_RELEASE_RESET(); __HAL_RCC_APB2_FORCE_RESET(); __HAL_RCC_APB2_RELEASE_RESET(); __HAL_RCC_AHB1_FORCE_RESET(); __HAL_RCC_AHB1_RELEASE_RESET(); __HAL_RCC_AHB2_FORCE_RESET(); __HAL_RCC_AHB2_RELEASE_RESET(); __HAL_RCC_AHB3_FORCE_RESET(); __HAL_RCC_AHB3_RELEASE_RESET(); /* De-Init the low level hardware */ HAL_MspDeInit(); /* Return function status */ return HAL_OK; } /** * @brief Initialize the MSP. * @retval None */ __weak void HAL_MspInit(void) { /* NOTE : This function should not be modified, when the callback is needed, the HAL_MspInit could be implemented in the user file */ } /** * @brief DeInitializes the MSP. * @retval None */ __weak void HAL_MspDeInit(void) { /* NOTE : This function should not be modified, when the callback is needed, the HAL_MspDeInit could be implemented in the user file */ } /** * @brief This function configures the source of the time base. * The time source is configured to have 1ms time base with a dedicated * Tick interrupt priority. * @note This function is called automatically at the beginning of program after * reset by HAL_Init() or at any time when clock is reconfigured by HAL_RCC_ClockConfig(). * @note In the default implementation, SysTick timer is the source of time base. * It is used to generate interrupts at regular time intervals. * Care must be taken if HAL_Delay() is called from a peripheral ISR process, * The SysTick interrupt must have higher priority (numerically lower) * than the peripheral interrupt. Otherwise the caller ISR process will be blocked. * The function is declared as __weak to be overwritten in case of other * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) { return HAL_ERROR; } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); uwTickPrio = TickPriority; } else { return HAL_ERROR; } /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup HAL_Exported_Functions_Group2 HAL Control functions * @brief HAL Control functions * @verbatim =============================================================================== ##### HAL Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Provide a tick value in millisecond (+) Provide a blocking delay in millisecond (+) Suspend the time base source interrupt (+) Resume the time base source interrupt (+) Get the HAL API driver version (+) Get the device identifier (+) Get the device revision identifier (+) Enable/Disable Debug module during SLEEP mode (+) Enable/Disable Debug module during STOP mode (+) Enable/Disable Debug module during STANDBY mode @endverbatim * @{ */ /** * @brief This function is called to increment a global variable "uwTick" * used as application time base. * @note In the default implementation, this variable is incremented each 1ms * in SysTick ISR. * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { uwTick += uwTickFreq; } /** * @brief Provides a tick value in millisecond. * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { return uwTick; } /** * @brief This function returns a tick priority. * @retval tick priority */ uint32_t HAL_GetTickPrio(void) { return uwTickPrio; } /** * @brief Set new tick Freq. * @retval Status */ HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq) { HAL_StatusTypeDef status = HAL_OK; HAL_TickFreqTypeDef prevTickFreq; assert_param(IS_TICKFREQ(Freq)); if (uwTickFreq != Freq) { /* Back up uwTickFreq frequency */ prevTickFreq = uwTickFreq; /* Update uwTickFreq global variable used by HAL_InitTick() */ uwTickFreq = Freq; /* Apply the new tick Freq */ status = HAL_InitTick(uwTickPrio); if (status != HAL_OK) { /* Restore previous tick frequency */ uwTickFreq = prevTickFreq; } } return status; } /** * @brief Return tick frequency. * @retval tick period in Hz */ HAL_TickFreqTypeDef HAL_GetTickFreq(void) { return uwTickFreq; } /** * @brief This function provides minimum delay (in milliseconds) based * on variable incremented. * @note In the default implementation , SysTick timer is the source of time base. * It is used to generate interrupts at regular time intervals where uwTick * is incremented. * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { uint32_t tickstart = HAL_GetTick(); uint32_t wait = Delay; /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) { wait += (uint32_t)(uwTickFreq); } while((HAL_GetTick() - tickstart) < wait) { } } /** * @brief Suspend Tick increment. * @note In the default implementation , SysTick timer is the source of time base. It is * used to generate interrupts at regular time intervals. Once HAL_SuspendTick() * is called, the SysTick interrupt will be disabled and so Tick increment * is suspended. * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_SuspendTick(void) { /* Disable SysTick Interrupt */ SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk; } /** * @brief Resume Tick increment. * @note In the default implementation , SysTick timer is the source of time base. It is * used to generate interrupts at regular time intervals. Once HAL_ResumeTick() * is called, the SysTick interrupt will be enabled and so Tick increment * is resumed. * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_ResumeTick(void) { /* Enable SysTick Interrupt */ SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk; } /** * @brief Returns the HAL revision * @retval version : 0xXYZR (8bits for each decimal, R for RC) */ uint32_t HAL_GetHalVersion(void) { return __STM32F4xx_HAL_VERSION; } /** * @brief Returns the device revision identifier. * @retval Device revision identifier */ uint32_t HAL_GetREVID(void) { return((DBGMCU->IDCODE) >> 16U); } /** * @brief Returns the device identifier. * @retval Device identifier */ uint32_t HAL_GetDEVID(void) { return((DBGMCU->IDCODE) & IDCODE_DEVID_MASK); } /** * @brief Enable the Debug Module during SLEEP mode * @retval None */ void HAL_DBGMCU_EnableDBGSleepMode(void) { SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP); } /** * @brief Disable the Debug Module during SLEEP mode * @retval None */ void HAL_DBGMCU_DisableDBGSleepMode(void) { CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP); } /** * @brief Enable the Debug Module during STOP mode * @retval None */ void HAL_DBGMCU_EnableDBGStopMode(void) { SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP); } /** * @brief Disable the Debug Module during STOP mode * @retval None */ void HAL_DBGMCU_DisableDBGStopMode(void) { CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP); } /** * @brief Enable the Debug Module during STANDBY mode * @retval None */ void HAL_DBGMCU_EnableDBGStandbyMode(void) { SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY); } /** * @brief Disable the Debug Module during STANDBY mode * @retval None */ void HAL_DBGMCU_DisableDBGStandbyMode(void) { CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY); } /** * @brief Enables the I/O Compensation Cell. * @note The I/O compensation cell can be used only when the device supply * voltage ranges from 2.4 to 3.6 V. * @retval None */ void HAL_EnableCompensationCell(void) { *(__IO uint32_t *)CMPCR_CMP_PD_BB = (uint32_t)ENABLE; } /** * @brief Power-down the I/O Compensation Cell. * @note The I/O compensation cell can be used only when the device supply * voltage ranges from 2.4 to 3.6 V. * @retval None */ void HAL_DisableCompensationCell(void) { *(__IO uint32_t *)CMPCR_CMP_PD_BB = (uint32_t)DISABLE; } /** * @brief Returns first word of the unique device identifier (UID based on 96 bits) * @retval Device identifier */ uint32_t HAL_GetUIDw0(void) { return (READ_REG(*((uint32_t *)UID_BASE))); } /** * @brief Returns second word of the unique device identifier (UID based on 96 bits) * @retval Device identifier */ uint32_t HAL_GetUIDw1(void) { return (READ_REG(*((uint32_t *)(UID_BASE + 4U)))); } /** * @brief Returns third word of the unique device identifier (UID based on 96 bits) * @retval Device identifier */ uint32_t HAL_GetUIDw2(void) { return (READ_REG(*((uint32_t *)(UID_BASE + 8U)))); } #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Enables the Internal FLASH Bank Swapping. * * @note This function can be used only for STM32F42xxx/43xxx/469xx/479xx devices. * * @note Flash Bank2 mapped at 0x08000000 (and aliased @0x00000000) * and Flash Bank1 mapped at 0x08100000 (and aliased at 0x00100000) * * @retval None */ void HAL_EnableMemorySwappingBank(void) { *(__IO uint32_t *)UFB_MODE_BB = (uint32_t)ENABLE; } /** * @brief Disables the Internal FLASH Bank Swapping. * * @note This function can be used only for STM32F42xxx/43xxx/469xx/479xx devices. * * @note The default state : Flash Bank1 mapped at 0x08000000 (and aliased @0x00000000) * and Flash Bank2 mapped at 0x08100000 (and aliased at 0x00100000) * * @retval None */ void HAL_DisableMemorySwappingBank(void) { *(__IO uint32_t *)UFB_MODE_BB = (uint32_t)DISABLE; } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /** * @} */ /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_adc.c * @author MCD Application Team * @brief This file provides firmware functions to manage the following * functionalities of the Analog to Digital Converter (ADC) peripheral: * + Initialization and de-initialization functions * + IO operation functions * + State and errors functions * @verbatim ============================================================================== ##### ADC Peripheral features ##### ============================================================================== [..] (#) 12-bit, 10-bit, 8-bit or 6-bit configurable resolution. (#) Interrupt generation at the end of conversion, end of injected conversion, and in case of analog watchdog or overrun events (#) Single and continuous conversion modes. (#) Scan mode for automatic conversion of channel 0 to channel x. (#) Data alignment with in-built data coherency. (#) Channel-wise programmable sampling time. (#) External trigger option with configurable polarity for both regular and injected conversion. (#) Dual/Triple mode (on devices with 2 ADCs or more). (#) Configurable DMA data storage in Dual/Triple ADC mode. (#) Configurable delay between conversions in Dual/Triple interleaved mode. (#) ADC conversion type (refer to the datasheets). (#) ADC supply requirements: 2.4 V to 3.6 V at full speed and down to 1.8 V at slower speed. (#) ADC input range: VREF(minus) = VIN = VREF(plus). (#) DMA request generation during regular channel conversion. ##### How to use this driver ##### ============================================================================== [..] (#)Initialize the ADC low level resources by implementing the HAL_ADC_MspInit(): (##) Enable the ADC interface clock using __HAL_RCC_ADC_CLK_ENABLE() (##) ADC pins configuration (+++) Enable the clock for the ADC GPIOs using the following function: __HAL_RCC_GPIOx_CLK_ENABLE() (+++) Configure these ADC pins in analog mode using HAL_GPIO_Init() (##) In case of using interrupts (e.g. HAL_ADC_Start_IT()) (+++) Configure the ADC interrupt priority using HAL_NVIC_SetPriority() (+++) Enable the ADC IRQ handler using HAL_NVIC_EnableIRQ() (+++) In ADC IRQ handler, call HAL_ADC_IRQHandler() (##) In case of using DMA to control data transfer (e.g. HAL_ADC_Start_DMA()) (+++) Enable the DMAx interface clock using __HAL_RCC_DMAx_CLK_ENABLE() (+++) Configure and enable two DMA streams stream for managing data transfer from peripheral to memory (output stream) (+++) Associate the initialized DMA handle to the CRYP DMA handle using __HAL_LINKDMA() (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the two DMA Streams. The output stream should have higher priority than the input stream. *** Configuration of ADC, groups regular/injected, channels parameters *** ============================================================================== [..] (#) Configure the ADC parameters (resolution, data alignment, ...) and regular group parameters (conversion trigger, sequencer, ...) using function HAL_ADC_Init(). (#) Configure the channels for regular group parameters (channel number, channel rank into sequencer, ..., into regular group) using function HAL_ADC_ConfigChannel(). (#) Optionally, configure the injected group parameters (conversion trigger, sequencer, ..., of injected group) and the channels for injected group parameters (channel number, channel rank into sequencer, ..., into injected group) using function HAL_ADCEx_InjectedConfigChannel(). (#) Optionally, configure the analog watchdog parameters (channels monitored, thresholds, ...) using function HAL_ADC_AnalogWDGConfig(). (#) Optionally, for devices with several ADC instances: configure the multimode parameters using function HAL_ADCEx_MultiModeConfigChannel(). *** Execution of ADC conversions *** ============================================================================== [..] (#) ADC driver can be used among three modes: polling, interruption, transfer by DMA. *** Polling mode IO operation *** ================================= [..] (+) Start the ADC peripheral using HAL_ADC_Start() (+) Wait for end of conversion using HAL_ADC_PollForConversion(), at this stage user can specify the value of timeout according to his end application (+) To read the ADC converted values, use the HAL_ADC_GetValue() function. (+) Stop the ADC peripheral using HAL_ADC_Stop() *** Interrupt mode IO operation *** =================================== [..] (+) Start the ADC peripheral using HAL_ADC_Start_IT() (+) Use HAL_ADC_IRQHandler() called under ADC_IRQHandler() Interrupt subroutine (+) At ADC end of conversion HAL_ADC_ConvCpltCallback() function is executed and user can add his own code by customization of function pointer HAL_ADC_ConvCpltCallback (+) In case of ADC Error, HAL_ADC_ErrorCallback() function is executed and user can add his own code by customization of function pointer HAL_ADC_ErrorCallback (+) Stop the ADC peripheral using HAL_ADC_Stop_IT() *** DMA mode IO operation *** ============================== [..] (+) Start the ADC peripheral using HAL_ADC_Start_DMA(), at this stage the user specify the length of data to be transferred at each end of conversion (+) At The end of data transfer by HAL_ADC_ConvCpltCallback() function is executed and user can add his own code by customization of function pointer HAL_ADC_ConvCpltCallback (+) In case of transfer Error, HAL_ADC_ErrorCallback() function is executed and user can add his own code by customization of function pointer HAL_ADC_ErrorCallback (+) Stop the ADC peripheral using HAL_ADC_Stop_DMA() *** ADC HAL driver macros list *** ============================================= [..] Below the list of most used macros in ADC HAL driver. (+) __HAL_ADC_ENABLE : Enable the ADC peripheral (+) __HAL_ADC_DISABLE : Disable the ADC peripheral (+) __HAL_ADC_ENABLE_IT: Enable the ADC end of conversion interrupt (+) __HAL_ADC_DISABLE_IT: Disable the ADC end of conversion interrupt (+) __HAL_ADC_GET_IT_SOURCE: Check if the specified ADC interrupt source is enabled or disabled (+) __HAL_ADC_CLEAR_FLAG: Clear the ADC's pending flags (+) __HAL_ADC_GET_FLAG: Get the selected ADC's flag status (+) ADC_GET_RESOLUTION: Return resolution bits in CR1 register [..] (@) You can refer to the ADC HAL driver header file for more useful macros *** Deinitialization of ADC *** ============================================================================== [..] (#) Disable the ADC interface (++) ADC clock can be hard reset and disabled at RCC top level. (++) Hard reset of ADC peripherals using macro __HAL_RCC_ADC_FORCE_RESET(), __HAL_RCC_ADC_RELEASE_RESET(). (++) ADC clock disable using the equivalent macro/functions as configuration step. (+++) Example: Into HAL_ADC_MspDeInit() (recommended code location) or with other device clock parameters configuration: (+++) HAL_RCC_GetOscConfig(&RCC_OscInitStructure); (+++) RCC_OscInitStructure.OscillatorType = RCC_OSCILLATORTYPE_HSI; (+++) RCC_OscInitStructure.HSIState = RCC_HSI_OFF; (if not used for system clock) (+++) HAL_RCC_OscConfig(&RCC_OscInitStructure); (#) ADC pins configuration (++) Disable the clock for the ADC GPIOs using macro __HAL_RCC_GPIOx_CLK_DISABLE() (#) Optionally, in case of usage of ADC with interruptions: (++) Disable the NVIC for ADC using function HAL_NVIC_DisableIRQ(ADCx_IRQn) (#) Optionally, in case of usage of DMA: (++) Deinitialize the DMA using function HAL_DMA_DeInit(). (++) Disable the NVIC for DMA using function HAL_NVIC_DisableIRQ(DMAx_Channelx_IRQn) *** Callback registration *** ============================================================================== [..] The compilation flag USE_HAL_ADC_REGISTER_CALLBACKS, when set to 1, allows the user to configure dynamically the driver callbacks. Use Functions @ref HAL_ADC_RegisterCallback() to register an interrupt callback. [..] Function @ref HAL_ADC_RegisterCallback() allows to register following callbacks: (+) ConvCpltCallback : ADC conversion complete callback (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback (+) ErrorCallback : ADC error callback (+) InjectedConvCpltCallback : ADC group injected conversion complete callback (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback (+) EndOfSamplingCallback : ADC end of sampling callback (+) MspInitCallback : ADC Msp Init callback (+) MspDeInitCallback : ADC Msp DeInit callback This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. [..] Use function @ref HAL_ADC_UnRegisterCallback to reset a callback to the default weak function. [..] @ref HAL_ADC_UnRegisterCallback takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (+) ConvCpltCallback : ADC conversion complete callback (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback (+) ErrorCallback : ADC error callback (+) InjectedConvCpltCallback : ADC group injected conversion complete callback (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback (+) EndOfSamplingCallback : ADC end of sampling callback (+) MspInitCallback : ADC Msp Init callback (+) MspDeInitCallback : ADC Msp DeInit callback [..] By default, after the @ref HAL_ADC_Init() and when the state is @ref HAL_ADC_STATE_RESET all callbacks are set to the corresponding weak functions: examples @ref HAL_ADC_ConvCpltCallback(), @ref HAL_ADC_ErrorCallback(). Exception done for MspInit and MspDeInit functions that are reset to the legacy weak functions in the @ref HAL_ADC_Init()/ @ref HAL_ADC_DeInit() only when these callbacks are null (not registered beforehand). [..] If MspInit or MspDeInit are not null, the @ref HAL_ADC_Init()/ @ref HAL_ADC_DeInit() keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. [..] Callbacks can be registered/unregistered in @ref HAL_ADC_STATE_READY state only. Exception done MspInit/MspDeInit functions that can be registered/unregistered in @ref HAL_ADC_STATE_READY or @ref HAL_ADC_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. [..] Then, the user first registers the MspInit/MspDeInit user callbacks using @ref HAL_ADC_RegisterCallback() before calling @ref HAL_ADC_DeInit() or @ref HAL_ADC_Init() function. [..] When the compilation flag USE_HAL_ADC_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and all callbacks are set to the corresponding weak functions. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup ADC ADC * @brief ADC driver modules * @{ */ #ifdef HAL_ADC_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @addtogroup ADC_Private_Functions * @{ */ /* Private function prototypes -----------------------------------------------*/ static void ADC_Init(ADC_HandleTypeDef* hadc); static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma); static void ADC_DMAError(DMA_HandleTypeDef *hdma); static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup ADC_Exported_Functions ADC Exported Functions * @{ */ /** @defgroup ADC_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the ADC. (+) De-initialize the ADC. @endverbatim * @{ */ /** * @brief Initializes the ADCx peripheral according to the specified parameters * in the ADC_InitStruct and initializes the ADC MSP. * * @note This function is used to configure the global features of the ADC ( * ClockPrescaler, Resolution, Data Alignment and number of conversion), however, * the rest of the configuration parameters are specific to the regular * channels group (scan mode activation, continuous mode activation, * External trigger source and edge, DMA continuous request after the * last transfer and End of conversion selection). * * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; /* Check ADC handle */ if(hadc == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ScanConvMode)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG(hadc->Init.ExternalTrigConv)); assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); assert_param(IS_ADC_REGULAR_LENGTH(hadc->Init.NbrOfConversion)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); assert_param(IS_ADC_EOCSelection(hadc->Init.EOCSelection)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); if(hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) { assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); } if(hadc->State == HAL_ADC_STATE_RESET) { #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) /* Init the ADC Callback settings */ hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; /* Legacy weak callback */ hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; /* Legacy weak callback */ hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; /* Legacy weak callback */ hadc->ErrorCallback = HAL_ADC_ErrorCallback; /* Legacy weak callback */ hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; /* Legacy weak callback */ if (hadc->MspInitCallback == NULL) { hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ } /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; } /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_BUSY_INTERNAL); /* Set ADC parameters */ ADC_Init(hadc); /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } else { tmp_hal_status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } /** * @brief Deinitializes the ADCx peripheral registers to their default reset values. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; /* Check ADC handle */ if(hadc == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL); /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) if (hadc->MspDeInitCallback == NULL) { hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware: RCC clock, NVIC */ hadc->MspDeInitCallback(hadc); #else /* DeInit the low level hardware: RCC clock, NVIC */ HAL_ADC_MspDeInit(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); /* Set ADC state */ hadc->State = HAL_ADC_STATE_RESET; } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) /** * @brief Register a User ADC Callback * To be used instead of the weak predefined callback * @param hadc Pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer callback ID * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complete callback ID * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_RegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID, pADC_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; return HAL_ERROR; } if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) { switch (CallbackID) { case HAL_ADC_CONVERSION_COMPLETE_CB_ID : hadc->ConvCpltCallback = pCallback; break; case HAL_ADC_CONVERSION_HALF_CB_ID : hadc->ConvHalfCpltCallback = pCallback; break; case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : hadc->LevelOutOfWindowCallback = pCallback; break; case HAL_ADC_ERROR_CB_ID : hadc->ErrorCallback = pCallback; break; case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : hadc->InjectedConvCpltCallback = pCallback; break; case HAL_ADC_MSPINIT_CB_ID : hadc->MspInitCallback = pCallback; break; case HAL_ADC_MSPDEINIT_CB_ID : hadc->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_ADC_STATE_RESET == hadc->State) { switch (CallbackID) { case HAL_ADC_MSPINIT_CB_ID : hadc->MspInitCallback = pCallback; break; case HAL_ADC_MSPDEINIT_CB_ID : hadc->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } return status; } /** * @brief Unregister a ADC Callback * ADC callback is redirected to the weak predefined callback * @param hadc Pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer callback ID * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complete callback ID * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_UnRegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) { switch (CallbackID) { case HAL_ADC_CONVERSION_COMPLETE_CB_ID : hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; break; case HAL_ADC_CONVERSION_HALF_CB_ID : hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; break; case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; break; case HAL_ADC_ERROR_CB_ID : hadc->ErrorCallback = HAL_ADC_ErrorCallback; break; case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; break; case HAL_ADC_MSPINIT_CB_ID : hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ break; case HAL_ADC_MSPDEINIT_CB_ID : hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_ADC_STATE_RESET == hadc->State) { switch (CallbackID) { case HAL_ADC_MSPINIT_CB_ID : hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ break; case HAL_ADC_MSPDEINIT_CB_ID : hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } return status; } #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /** * @brief Initializes the ADC MSP. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_MspInit could be implemented in the user file */ } /** * @brief DeInitializes the ADC MSP. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_MspDeInit could be implemented in the user file */ } /** * @} */ /** @defgroup ADC_Exported_Functions_Group2 IO operation functions * @brief IO operation functions * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Start conversion of regular channel. (+) Stop conversion of regular channel. (+) Start conversion of regular channel and enable interrupt. (+) Stop conversion of regular channel and disable interrupt. (+) Start conversion of regular channel and enable DMA transfer. (+) Stop conversion of regular channel and disable DMA transfer. (+) Handle ADC interrupt request. @endverbatim * @{ */ /** * @brief Enables ADC and starts conversion of the regular channels. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc) { __IO uint32_t counter = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); /* Process locked */ __HAL_LOCK(hadc); /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular group operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR, HAL_ADC_STATE_REG_BUSY); /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR); /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(tmpADC_Common->CCR, ADC_CCR_MULTI)) { #if defined(ADC2) && defined(ADC3) if((hadc->Instance == ADC1) || ((hadc->Instance == ADC2) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_0)) \ || ((hadc->Instance == ADC3) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_4))) { #endif /* ADC2 || ADC3 */ /* if no external trigger present enable software conversion of regular channels */ if((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } #if defined(ADC2) && defined(ADC3) } #endif /* ADC2 || ADC3 */ } else { /* if instance of handle correspond to ADC1 and no external trigger present enable software conversion of regular channels */ if((hadc->Instance == ADC1) && ((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET)) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Disables ADC and stop conversion of regular channels. * * @note Caution: This function will stop also injected channels. * * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * * @retval HAL status. */ HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc) { /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @brief Poll for regular conversion complete * @note ADC conversion flags EOS (end of sequence) and EOC (end of * conversion) are cleared by this function. * @note This function cannot be used in a particular setup: ADC configured * in DMA mode and polling for end of each conversion (ADC init * parameter "EOCSelection" set to ADC_EOC_SINGLE_CONV). * In this case, DMA resets the flag EOC and polling cannot be * performed on each conversion. Nevertheless, polling can still * be performed on the complete sequence. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param Timeout Timeout value in millisecond. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout) { uint32_t tickstart = 0U; /* Verification that ADC configuration is compliant with polling for */ /* each conversion: */ /* Particular case is ADC configured in DMA mode and ADC sequencer with */ /* several ranks and polling for end of each conversion. */ /* For code simplicity sake, this particular case is generalized to */ /* ADC configured in DMA mode and polling for end of each conversion. */ if (HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_EOCS) && HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_DMA) ) { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); /* Process unlocked */ __HAL_UNLOCK(hadc); return HAL_ERROR; } /* Get tick */ tickstart = HAL_GetTick(); /* Check End of conversion flag */ while(!(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC))) { /* Check if timeout is disabled (set to infinite wait) */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U) || ((HAL_GetTick() - tickstart ) > Timeout)) { /* New check to avoid false timeout detection in case of preemption */ if(!(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC))) { /* Update ADC state machine to timeout */ SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); /* Process unlocked */ __HAL_UNLOCK(hadc); return HAL_TIMEOUT; } } } } /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) && (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) ) { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Return ADC state */ return HAL_OK; } /** * @brief Poll for conversion event * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param EventType the ADC event type. * This parameter can be one of the following values: * @arg ADC_AWD_EVENT: ADC Analog watch Dog event. * @arg ADC_OVR_EVENT: ADC Overrun event. * @param Timeout Timeout value in millisecond. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t Timeout) { uint32_t tickstart = 0U; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); assert_param(IS_ADC_EVENT_TYPE(EventType)); /* Get tick */ tickstart = HAL_GetTick(); /* Check selected event flag */ while(!(__HAL_ADC_GET_FLAG(hadc,EventType))) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U) || ((HAL_GetTick() - tickstart ) > Timeout)) { /* New check to avoid false timeout detection in case of preemption */ if(!(__HAL_ADC_GET_FLAG(hadc,EventType))) { /* Update ADC state machine to timeout */ SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); /* Process unlocked */ __HAL_UNLOCK(hadc); return HAL_TIMEOUT; } } } } /* Analog watchdog (level out of window) event */ if(EventType == ADC_AWD_EVENT) { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); /* Clear ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); } /* Overrun event */ else { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); /* Set ADC error code to overrun */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); /* Clear ADC overrun flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); } /* Return ADC state */ return HAL_OK; } /** * @brief Enables the interrupt and starts ADC conversion of regular channels. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status. */ HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc) { __IO uint32_t counter = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); /* Process locked */ __HAL_LOCK(hadc); /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular group operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR, HAL_ADC_STATE_REG_BUSY); /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR); /* Enable end of conversion interrupt for regular group */ __HAL_ADC_ENABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_OVR)); /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(tmpADC_Common->CCR, ADC_CCR_MULTI)) { #if defined(ADC2) && defined(ADC3) if((hadc->Instance == ADC1) || ((hadc->Instance == ADC2) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_0)) \ || ((hadc->Instance == ADC3) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_4))) { #endif /* ADC2 || ADC3 */ /* if no external trigger present enable software conversion of regular channels */ if((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } #if defined(ADC2) && defined(ADC3) } #endif /* ADC2 || ADC3 */ } else { /* if instance of handle correspond to ADC1 and no external trigger present enable software conversion of regular channels */ if((hadc->Instance == ADC1) && ((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET)) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Disables the interrupt and stop ADC conversion of regular channels. * * @note Caution: This function will stop also injected channels. * * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status. */ HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc) { /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Disable ADC end of conversion interrupt for regular group */ __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_OVR)); /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @brief Handles ADC interrupt request * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc) { uint32_t tmp1 = 0U, tmp2 = 0U; /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_REGULAR_LENGTH(hadc->Init.NbrOfConversion)); assert_param(IS_ADC_EOCSelection(hadc->Init.EOCSelection)); tmp1 = __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC); tmp2 = __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC); /* Check End of conversion flag for regular channels */ if(tmp1 && tmp2) { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); } /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) && (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) ) { /* Disable ADC end of single conversion interrupt on group regular */ /* Note: Overrun interrupt was enabled with EOC interrupt in */ /* HAL_ADC_Start_IT(), but is not disabled here because can be used */ /* by overrun IRQ process below. */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); } tmp1 = __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC); tmp2 = __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_JEOC); /* Check End of conversion flag for injected channels */ if(tmp1 && tmp2) { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); } /* Determine whether any further conversion upcoming on group injected */ /* by external trigger, scan sequence on going or by automatic injected */ /* conversion from group regular (same conditions as group regular */ /* interruption disabling above). */ if(ADC_IS_SOFTWARE_START_INJECTED(hadc) && (HAL_IS_BIT_CLR(hadc->Instance->JSQR, ADC_JSQR_JL) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) && (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && (ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) ) ) ) { /* Disable ADC end of single conversion interrupt on group injected */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Conversion complete callback */ /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->InjectedConvCpltCallback(hadc); #else HAL_ADCEx_InjectedConvCpltCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC)); } tmp1 = __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD); tmp2 = __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD); /* Check Analog watchdog flag */ if(tmp1 && tmp2) { if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD)) { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); /* Level out of window callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->LevelOutOfWindowCallback(hadc); #else HAL_ADC_LevelOutOfWindowCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); } } tmp1 = __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_OVR); tmp2 = __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_OVR); /* Check Overrun flag */ if(tmp1 && tmp2) { /* Note: On STM32F4, ADC overrun can be set through other parameters */ /* refer to description of parameter "EOCSelection" for more */ /* details. */ /* Set ADC error code to overrun */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); /* Clear ADC overrun flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the Overrun flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); } } /** * @brief Enables ADC DMA request after last transfer (Single-ADC mode) and enables ADC peripheral * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param pData The destination Buffer address. * @param Length The length of data to be transferred from ADC peripheral to memory. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length) { __IO uint32_t counter = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); /* Process locked */ __HAL_LOCK(hadc); /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Check ADC DMA Mode */ /* - disable the DMA Mode if it is already enabled */ if((hadc->Instance->CR2 & ADC_CR2_DMA) == ADC_CR2_DMA) { CLEAR_BIT(hadc->Instance->CR2, ADC_CR2_DMA); } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular group operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR, HAL_ADC_STATE_REG_BUSY); /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Set the DMA transfer complete callback */ hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; /* Set the DMA half transfer complete callback */ hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; /* Set the DMA error callback */ hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */ /* start (in case of SW start): */ /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR); /* Enable ADC overrun interrupt */ __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); /* Enable ADC DMA mode */ hadc->Instance->CR2 |= ADC_CR2_DMA; /* Start the DMA channel */ HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length); /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(tmpADC_Common->CCR, ADC_CCR_MULTI)) { #if defined(ADC2) && defined(ADC3) if((hadc->Instance == ADC1) || ((hadc->Instance == ADC2) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_0)) \ || ((hadc->Instance == ADC3) && ((ADC->CCR & ADC_CCR_MULTI_Msk) < ADC_CCR_MULTI_4))) { #endif /* ADC2 || ADC3 */ /* if no external trigger present enable software conversion of regular channels */ if((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } #if defined(ADC2) && defined(ADC3) } #endif /* ADC2 || ADC3 */ } else { /* if instance of handle correspond to ADC1 and no external trigger present enable software conversion of regular channels */ if((hadc->Instance == ADC1) && ((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET)) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Disables ADC DMA (Single-ADC mode) and disables ADC peripheral * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Disable the selected ADC DMA mode */ hadc->Instance->CR2 &= ~ADC_CR2_DMA; /* Disable the DMA channel (in case of DMA in circular mode or stop while */ /* DMA transfer is on going) */ if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY) { tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); /* Check if DMA channel effectively disabled */ if (tmp_hal_status != HAL_OK) { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); } } /* Disable ADC overrun interrupt */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } /** * @brief Gets the converted value from data register of regular channel. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval Converted value */ uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef* hadc) { /* Return the selected ADC converted value */ return hadc->Instance->DR; } /** * @brief Regular conversion complete callback in non blocking mode * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_ConvCpltCallback could be implemented in the user file */ } /** * @brief Regular conversion half DMA transfer callback in non blocking mode * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_ConvHalfCpltCallback could be implemented in the user file */ } /** * @brief Analog watchdog callback in non blocking mode * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_LevelOoutOfWindowCallback could be implemented in the user file */ } /** * @brief Error ADC callback. * @note In case of error due to overrun when using ADC with DMA transfer * (HAL ADC handle paramater "ErrorCode" to state "HAL_ADC_ERROR_OVR"): * - Reinitialize the DMA using function "HAL_ADC_Stop_DMA()". * - If needed, restart a new ADC conversion using function * "HAL_ADC_Start_DMA()" * (this function is also clearing overrun flag) * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_ErrorCallback could be implemented in the user file */ } /** * @} */ /** @defgroup ADC_Exported_Functions_Group3 Peripheral Control functions * @brief Peripheral Control functions * @verbatim =============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure regular channels. (+) Configure injected channels. (+) Configure multimode. (+) Configure the analog watch dog. @endverbatim * @{ */ /** * @brief Configures for the selected ADC regular channel its corresponding * rank in the sequencer and its sample time. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param sConfig ADC configuration structure. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) { __IO uint32_t counter = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_ADC_CHANNEL(sConfig->Channel)); assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); /* Process locked */ __HAL_LOCK(hadc); /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ if (sConfig->Channel > ADC_CHANNEL_9) { /* Clear the old sample time */ hadc->Instance->SMPR1 &= ~ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel); /* Set the new sample time */ hadc->Instance->SMPR1 |= ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel); } else /* ADC_Channel include in ADC_Channel_[0..9] */ { /* Clear the old sample time */ hadc->Instance->SMPR2 &= ~ADC_SMPR2(ADC_SMPR2_SMP0, sConfig->Channel); /* Set the new sample time */ hadc->Instance->SMPR2 |= ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel); } /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR3 &= ~ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank); /* Set the SQx bits for the selected rank */ hadc->Instance->SQR3 |= ADC_SQR3_RK(sConfig->Channel, sConfig->Rank); } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13U) { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR2 &= ~ADC_SQR2_RK(ADC_SQR2_SQ7, sConfig->Rank); /* Set the SQx bits for the selected rank */ hadc->Instance->SQR2 |= ADC_SQR2_RK(sConfig->Channel, sConfig->Rank); } /* For Rank 13 to 16 */ else { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR1 &= ~ADC_SQR1_RK(ADC_SQR1_SQ13, sConfig->Rank); /* Set the SQx bits for the selected rank */ hadc->Instance->SQR1 |= ADC_SQR1_RK(sConfig->Channel, sConfig->Rank); } /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* if ADC1 Channel_18 is selected for VBAT Channel ennable VBATE */ if ((hadc->Instance == ADC1) && (sConfig->Channel == ADC_CHANNEL_VBAT)) { /* Disable the TEMPSENSOR channel in case of using board with multiplixed ADC_CHANNEL_VBAT & ADC_CHANNEL_TEMPSENSOR*/ if ((uint16_t)ADC_CHANNEL_TEMPSENSOR == (uint16_t)ADC_CHANNEL_VBAT) { tmpADC_Common->CCR &= ~ADC_CCR_TSVREFE; } /* Enable the VBAT channel*/ tmpADC_Common->CCR |= ADC_CCR_VBATE; } /* if ADC1 Channel_16 or Channel_18 is selected for Temperature sensor or Channel_17 is selected for VREFINT enable TSVREFE */ if ((hadc->Instance == ADC1) && ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || (sConfig->Channel == ADC_CHANNEL_VREFINT))) { /* Disable the VBAT channel in case of using board with multiplixed ADC_CHANNEL_VBAT & ADC_CHANNEL_TEMPSENSOR*/ if ((uint16_t)ADC_CHANNEL_TEMPSENSOR == (uint16_t)ADC_CHANNEL_VBAT) { tmpADC_Common->CCR &= ~ADC_CCR_VBATE; } /* Enable the Temperature sensor and VREFINT channel*/ tmpADC_Common->CCR |= ADC_CCR_TSVREFE; if((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR)) { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @brief Configures the analog watchdog. * @note Analog watchdog thresholds can be modified while ADC conversion * is on going. * In this case, some constraints must be taken into account: * The programmed threshold values are effective from the next * ADC EOC (end of unitary conversion). * Considering that registers write delay may happen due to * bus activity, this might cause an uncertainty on the * effective timing of the new programmed threshold values. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param AnalogWDGConfig pointer to an ADC_AnalogWDGConfTypeDef structure * that contains the configuration information of ADC analog watchdog. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef* hadc, ADC_AnalogWDGConfTypeDef* AnalogWDGConfig) { #ifdef USE_FULL_ASSERT uint32_t tmp = 0U; #endif /* USE_FULL_ASSERT */ /* Check the parameters */ assert_param(IS_ADC_ANALOG_WATCHDOG(AnalogWDGConfig->WatchdogMode)); assert_param(IS_ADC_CHANNEL(AnalogWDGConfig->Channel)); assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); #ifdef USE_FULL_ASSERT tmp = ADC_GET_RESOLUTION(hadc); assert_param(IS_ADC_RANGE(tmp, AnalogWDGConfig->HighThreshold)); assert_param(IS_ADC_RANGE(tmp, AnalogWDGConfig->LowThreshold)); #endif /* USE_FULL_ASSERT */ /* Process locked */ __HAL_LOCK(hadc); if(AnalogWDGConfig->ITMode == ENABLE) { /* Enable the ADC Analog watchdog interrupt */ __HAL_ADC_ENABLE_IT(hadc, ADC_IT_AWD); } else { /* Disable the ADC Analog watchdog interrupt */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_AWD); } /* Clear AWDEN, JAWDEN and AWDSGL bits */ hadc->Instance->CR1 &= ~(ADC_CR1_AWDSGL | ADC_CR1_JAWDEN | ADC_CR1_AWDEN); /* Set the analog watchdog enable mode */ hadc->Instance->CR1 |= AnalogWDGConfig->WatchdogMode; /* Set the high threshold */ hadc->Instance->HTR = AnalogWDGConfig->HighThreshold; /* Set the low threshold */ hadc->Instance->LTR = AnalogWDGConfig->LowThreshold; /* Clear the Analog watchdog channel select bits */ hadc->Instance->CR1 &= ~ADC_CR1_AWDCH; /* Set the Analog watchdog channel */ hadc->Instance->CR1 |= (uint32_t)((uint16_t)(AnalogWDGConfig->Channel)); /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup ADC_Exported_Functions_Group4 ADC Peripheral State functions * @brief ADC Peripheral State functions * @verbatim =============================================================================== ##### Peripheral State and errors functions ##### =============================================================================== [..] This subsection provides functions allowing to (+) Check the ADC state (+) Check the ADC Error @endverbatim * @{ */ /** * @brief return the ADC state * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL state */ uint32_t HAL_ADC_GetState(ADC_HandleTypeDef* hadc) { /* Return ADC state */ return hadc->State; } /** * @brief Return the ADC error code * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval ADC Error Code */ uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc) { return hadc->ErrorCode; } /** * @} */ /** @addtogroup ADC_Private_Functions * @{ */ /** * @brief Initializes the ADCx peripheral according to the specified parameters * in the ADC_InitStruct without initializing the ADC MSP. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ static void ADC_Init(ADC_HandleTypeDef* hadc) { ADC_Common_TypeDef *tmpADC_Common; /* Set ADC parameters */ /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Set the ADC clock prescaler */ tmpADC_Common->CCR &= ~(ADC_CCR_ADCPRE); tmpADC_Common->CCR |= hadc->Init.ClockPrescaler; /* Set ADC scan mode */ hadc->Instance->CR1 &= ~(ADC_CR1_SCAN); hadc->Instance->CR1 |= ADC_CR1_SCANCONV(hadc->Init.ScanConvMode); /* Set ADC resolution */ hadc->Instance->CR1 &= ~(ADC_CR1_RES); hadc->Instance->CR1 |= hadc->Init.Resolution; /* Set ADC data alignment */ hadc->Instance->CR2 &= ~(ADC_CR2_ALIGN); hadc->Instance->CR2 |= hadc->Init.DataAlign; /* Enable external trigger if trigger selection is different of software */ /* start. */ /* Note: This configuration keeps the hardware feature of parameter */ /* ExternalTrigConvEdge "trigger edge none" equivalent to */ /* software start. */ if(hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) { /* Select external trigger to start conversion */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); hadc->Instance->CR2 |= hadc->Init.ExternalTrigConv; /* Select external trigger polarity */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); hadc->Instance->CR2 |= hadc->Init.ExternalTrigConvEdge; } else { /* Reset the external trigger */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); } /* Enable or disable ADC continuous conversion mode */ hadc->Instance->CR2 &= ~(ADC_CR2_CONT); hadc->Instance->CR2 |= ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode); if(hadc->Init.DiscontinuousConvMode != DISABLE) { assert_param(IS_ADC_REGULAR_DISC_NUMBER(hadc->Init.NbrOfDiscConversion)); /* Enable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 |= (uint32_t)ADC_CR1_DISCEN; /* Set the number of channels to be converted in discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCNUM); hadc->Instance->CR1 |= ADC_CR1_DISCONTINUOUS(hadc->Init.NbrOfDiscConversion); } else { /* Disable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCEN); } /* Set ADC number of conversion */ hadc->Instance->SQR1 &= ~(ADC_SQR1_L); hadc->Instance->SQR1 |= ADC_SQR1(hadc->Init.NbrOfConversion); /* Enable or disable ADC DMA continuous request */ hadc->Instance->CR2 &= ~(ADC_CR2_DDS); hadc->Instance->CR2 |= ADC_CR2_DMAContReq((uint32_t)hadc->Init.DMAContinuousRequests); /* Enable or disable ADC end of conversion selection */ hadc->Instance->CR2 &= ~(ADC_CR2_EOCS); hadc->Instance->CR2 |= ADC_CR2_EOCSelection(hadc->Init.EOCSelection); } /** * @brief DMA transfer complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) { /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) { /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) && (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) ) { /* Disable ADC end of single conversion interrupt on group regular */ /* Note: Overrun interrupt was enabled with EOC interrupt in */ /* HAL_ADC_Start_IT(), but is not disabled here because can be used */ /* by overrun IRQ process below. */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } else /* DMA and-or internal error occurred */ { if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL) { /* Call HAL ADC Error Callback function */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } else { /* Call DMA error callback */ hadc->DMA_Handle->XferErrorCallback(hdma); } } } /** * @brief DMA half transfer complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) { ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; /* Half conversion callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvHalfCpltCallback(hadc); #else HAL_ADC_ConvHalfCpltCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } /** * @brief DMA error callback * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_DMAError(DMA_HandleTypeDef *hdma) { ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; hadc->State= HAL_ADC_STATE_ERROR_DMA; /* Set ADC error code to DMA error */ hadc->ErrorCode |= HAL_ADC_ERROR_DMA; /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } /** * @} */ /** * @} */ #endif /* HAL_ADC_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_adc_ex.c * @author MCD Application Team * @brief This file provides firmware functions to manage the following * functionalities of the ADC extension peripheral: * + Extended features functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#)Initialize the ADC low level resources by implementing the HAL_ADC_MspInit(): (##) Enable the ADC interface clock using __HAL_RCC_ADC_CLK_ENABLE() (##) ADC pins configuration (+++) Enable the clock for the ADC GPIOs using the following function: __HAL_RCC_GPIOx_CLK_ENABLE() (+++) Configure these ADC pins in analog mode using HAL_GPIO_Init() (##) In case of using interrupts (e.g. HAL_ADC_Start_IT()) (+++) Configure the ADC interrupt priority using HAL_NVIC_SetPriority() (+++) Enable the ADC IRQ handler using HAL_NVIC_EnableIRQ() (+++) In ADC IRQ handler, call HAL_ADC_IRQHandler() (##) In case of using DMA to control data transfer (e.g. HAL_ADC_Start_DMA()) (+++) Enable the DMAx interface clock using __HAL_RCC_DMAx_CLK_ENABLE() (+++) Configure and enable two DMA streams stream for managing data transfer from peripheral to memory (output stream) (+++) Associate the initialized DMA handle to the ADC DMA handle using __HAL_LINKDMA() (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the two DMA Streams. The output stream should have higher priority than the input stream. (#) Configure the ADC Prescaler, conversion resolution and data alignment using the HAL_ADC_Init() function. (#) Configure the ADC Injected channels group features, use HAL_ADC_Init() and HAL_ADC_ConfigChannel() functions. (#) Three operation modes are available within this driver: *** Polling mode IO operation *** ================================= [..] (+) Start the ADC peripheral using HAL_ADCEx_InjectedStart() (+) Wait for end of conversion using HAL_ADC_PollForConversion(), at this stage user can specify the value of timeout according to his end application (+) To read the ADC converted values, use the HAL_ADCEx_InjectedGetValue() function. (+) Stop the ADC peripheral using HAL_ADCEx_InjectedStop() *** Interrupt mode IO operation *** =================================== [..] (+) Start the ADC peripheral using HAL_ADCEx_InjectedStart_IT() (+) Use HAL_ADC_IRQHandler() called under ADC_IRQHandler() Interrupt subroutine (+) At ADC end of conversion HAL_ADCEx_InjectedConvCpltCallback() function is executed and user can add his own code by customization of function pointer HAL_ADCEx_InjectedConvCpltCallback (+) In case of ADC Error, HAL_ADCEx_InjectedErrorCallback() function is executed and user can add his own code by customization of function pointer HAL_ADCEx_InjectedErrorCallback (+) Stop the ADC peripheral using HAL_ADCEx_InjectedStop_IT() *** Multi mode ADCs Regular channels configuration *** ====================================================== [..] (+) Select the Multi mode ADC regular channels features (dual or triple mode) and configure the DMA mode using HAL_ADCEx_MultiModeConfigChannel() functions. (+) Start the ADC peripheral using HAL_ADCEx_MultiModeStart_DMA(), at this stage the user specify the length of data to be transferred at each end of conversion (+) Read the ADCs converted values using the HAL_ADCEx_MultiModeGetValue() function. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup ADCEx ADCEx * @brief ADC Extended driver modules * @{ */ #ifdef HAL_ADC_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @addtogroup ADCEx_Private_Functions * @{ */ /* Private function prototypes -----------------------------------------------*/ static void ADC_MultiModeDMAConvCplt(DMA_HandleTypeDef *hdma); static void ADC_MultiModeDMAError(DMA_HandleTypeDef *hdma); static void ADC_MultiModeDMAHalfConvCplt(DMA_HandleTypeDef *hdma); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup ADCEx_Exported_Functions ADC Exported Functions * @{ */ /** @defgroup ADCEx_Exported_Functions_Group1 Extended features functions * @brief Extended features functions * @verbatim =============================================================================== ##### Extended features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Start conversion of injected channel. (+) Stop conversion of injected channel. (+) Start multimode and enable DMA transfer. (+) Stop multimode and disable DMA transfer. (+) Get result of injected channel conversion. (+) Get result of multimode conversion. (+) Configure injected channels. (+) Configure multimode. @endverbatim * @{ */ /** * @brief Enables the selected ADC software start conversion of the injected channels. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc) { __IO uint32_t counter = 0U; uint32_t tmp1 = 0U, tmp2 = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Process locked */ __HAL_LOCK(hadc); /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to injected group conversion results */ /* - Set state bitfield related to injected operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); /* Check if a regular conversion is ongoing */ /* Note: On this device, there is no ADC error code fields related to */ /* conversions on group injected only. In case of conversion on */ /* going on group regular, no error code is reset. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Clear injected group conversion flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(tmpADC_Common->CCR, ADC_CCR_MULTI)) { tmp1 = HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_JEXTEN); tmp2 = HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO); if(tmp1 && tmp2) { /* Enable the selected ADC software conversion for injected group */ hadc->Instance->CR2 |= ADC_CR2_JSWSTART; } } else { tmp1 = HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_JEXTEN); tmp2 = HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO); if((hadc->Instance == ADC1) && tmp1 && tmp2) { /* Enable the selected ADC software conversion for injected group */ hadc->Instance->CR2 |= ADC_CR2_JSWSTART; } } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Enables the interrupt and starts ADC conversion of injected channels. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * * @retval HAL status. */ HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc) { __IO uint32_t counter = 0U; uint32_t tmp1 = 0U, tmp2 = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Process locked */ __HAL_LOCK(hadc); /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to injected group conversion results */ /* - Set state bitfield related to injected operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); /* Check if a regular conversion is ongoing */ /* Note: On this device, there is no ADC error code fields related to */ /* conversions on group injected only. In case of conversion on */ /* going on group regular, no error code is reset. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Clear injected group conversion flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC); /* Enable end of conversion interrupt for injected channels */ __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(tmpADC_Common->CCR, ADC_CCR_MULTI)) { tmp1 = HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_JEXTEN); tmp2 = HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO); if(tmp1 && tmp2) { /* Enable the selected ADC software conversion for injected group */ hadc->Instance->CR2 |= ADC_CR2_JSWSTART; } } else { tmp1 = HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_JEXTEN); tmp2 = HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO); if((hadc->Instance == ADC1) && tmp1 && tmp2) { /* Enable the selected ADC software conversion for injected group */ hadc->Instance->CR2 |= ADC_CR2_JSWSTART; } } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Stop conversion of injected channels. Disable ADC peripheral if * no regular conversion is on going. * @note If ADC must be disabled and if conversion is on going on * regular group, function HAL_ADC_Stop must be used to stop both * injected and regular groups, and disable the ADC. * @note If injected group mode auto-injection is enabled, * function HAL_ADC_Stop must be used. * @note In case of auto-injection mode, HAL_ADC_Stop must be used. * @param hadc ADC handle * @retval None */ HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion and disable ADC peripheral */ /* Conditioned to: */ /* - No conversion on the other group (regular group) is intended to */ /* continue (injected and regular groups stop conversion and ADC disable */ /* are common) */ /* - In case of auto-injection mode, HAL_ADC_Stop must be used. */ if(((hadc->State & HAL_ADC_STATE_REG_BUSY) == RESET) && HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) ) { /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); tmp_hal_status = HAL_ERROR; } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } /** * @brief Poll for injected conversion complete * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param Timeout Timeout value in millisecond. * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout) { uint32_t tickstart = 0U; /* Get tick */ tickstart = HAL_GetTick(); /* Check End of conversion flag */ while(!(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))) { /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* New check to avoid false timeout detection in case of preemption */ if(!(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOC))) { hadc->State= HAL_ADC_STATE_TIMEOUT; /* Process unlocked */ __HAL_UNLOCK(hadc); return HAL_TIMEOUT; } } } } /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JSTRT | ADC_FLAG_JEOC); /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); /* Determine whether any further conversion upcoming on group injected */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if(ADC_IS_SOFTWARE_START_INJECTED(hadc) && (HAL_IS_BIT_CLR(hadc->Instance->JSQR, ADC_JSQR_JL) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) && (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && (ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) ) ) ) { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Return ADC state */ return HAL_OK; } /** * @brief Stop conversion of injected channels, disable interruption of * end-of-conversion. Disable ADC peripheral if no regular conversion * is on going. * @note If ADC must be disabled and if conversion is on going on * regular group, function HAL_ADC_Stop must be used to stop both * injected and regular groups, and disable the ADC. * @note If injected group mode auto-injection is enabled, * function HAL_ADC_Stop must be used. * @param hadc ADC handle * @retval None */ HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion and disable ADC peripheral */ /* Conditioned to: */ /* - No conversion on the other group (regular group) is intended to */ /* continue (injected and regular groups stop conversion and ADC disable */ /* are common) */ /* - In case of auto-injection mode, HAL_ADC_Stop must be used. */ if(((hadc->State & HAL_ADC_STATE_REG_BUSY) == RESET) && HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) ) { /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Disable ADC end of conversion interrupt for injected channels */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); tmp_hal_status = HAL_ERROR; } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } /** * @brief Gets the converted value from data register of injected channel. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param InjectedRank the ADC injected rank. * This parameter can be one of the following values: * @arg ADC_INJECTED_RANK_1: Injected Channel1 selected * @arg ADC_INJECTED_RANK_2: Injected Channel2 selected * @arg ADC_INJECTED_RANK_3: Injected Channel3 selected * @arg ADC_INJECTED_RANK_4: Injected Channel4 selected * @retval None */ uint32_t HAL_ADCEx_InjectedGetValue(ADC_HandleTypeDef* hadc, uint32_t InjectedRank) { __IO uint32_t tmp = 0U; /* Check the parameters */ assert_param(IS_ADC_INJECTED_RANK(InjectedRank)); /* Clear injected group conversion flag to have similar behaviour as */ /* regular group: reading data register also clears end of conversion flag. */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC); /* Return the selected ADC converted value */ switch(InjectedRank) { case ADC_INJECTED_RANK_4: { tmp = hadc->Instance->JDR4; } break; case ADC_INJECTED_RANK_3: { tmp = hadc->Instance->JDR3; } break; case ADC_INJECTED_RANK_2: { tmp = hadc->Instance->JDR2; } break; case ADC_INJECTED_RANK_1: { tmp = hadc->Instance->JDR1; } break; default: break; } return tmp; } /** * @brief Enables ADC DMA request after last transfer (Multi-ADC mode) and enables ADC peripheral * * @note Caution: This function must be used only with the ADC master. * * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param pData Pointer to buffer in which transferred from ADC peripheral to memory will be stored. * @param Length The length of data to be transferred from ADC peripheral to memory. * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length) { __IO uint32_t counter = 0U; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); /* Process locked */ __HAL_LOCK(hadc); /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); while(counter != 0U) { counter--; } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular group operation */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR, HAL_ADC_STATE_REG_BUSY); /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); /* Set the DMA transfer complete callback */ hadc->DMA_Handle->XferCpltCallback = ADC_MultiModeDMAConvCplt; /* Set the DMA half transfer complete callback */ hadc->DMA_Handle->XferHalfCpltCallback = ADC_MultiModeDMAHalfConvCplt; /* Set the DMA error callback */ hadc->DMA_Handle->XferErrorCallback = ADC_MultiModeDMAError ; /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */ /* start (in case of SW start): */ /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC); /* Enable ADC overrun interrupt */ __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); if (hadc->Init.DMAContinuousRequests != DISABLE) { /* Enable the selected ADC DMA request after last transfer */ tmpADC_Common->CCR |= ADC_CCR_DDS; } else { /* Disable the selected ADC EOC rising on each regular channel conversion */ tmpADC_Common->CCR &= ~ADC_CCR_DDS; } /* Enable the DMA Stream */ HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&tmpADC_Common->CDR, (uint32_t)pData, Length); /* if no external trigger present enable software conversion of regular channels */ if((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET) { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); } /* Return function status */ return HAL_OK; } /** * @brief Disables ADC DMA (multi-ADC mode) and disables ADC peripheral * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc) { HAL_StatusTypeDef tmp_hal_status = HAL_OK; ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ __HAL_ADC_DISABLE(hadc); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Check if ADC is effectively disabled */ if(HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_ADON)) { /* Disable the selected ADC DMA mode for multimode */ tmpADC_Common->CCR &= ~ADC_CCR_DDS; /* Disable the DMA channel (in case of DMA in circular mode or stop while */ /* DMA transfer is on going) */ tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); /* Disable ADC overrun interrupt */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return tmp_hal_status; } /** * @brief Returns the last ADC1, ADC2 and ADC3 regular conversions results * data in the selected multi mode. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval The converted data value. */ uint32_t HAL_ADCEx_MultiModeGetValue(ADC_HandleTypeDef* hadc) { ADC_Common_TypeDef *tmpADC_Common; /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Return the multi mode conversion value */ return tmpADC_Common->CDR; } /** * @brief Injected conversion complete callback in non blocking mode * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_InjectedConvCpltCallback could be implemented in the user file */ } /** * @brief Configures for the selected ADC injected channel its corresponding * rank in the sequencer and its sample time. * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param sConfigInjected ADC configuration structure for injected channel. * @retval None */ HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel(ADC_HandleTypeDef* hadc, ADC_InjectionConfTypeDef* sConfigInjected) { #ifdef USE_FULL_ASSERT uint32_t tmp = 0U; #endif /* USE_FULL_ASSERT */ ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_ADC_CHANNEL(sConfigInjected->InjectedChannel)); assert_param(IS_ADC_INJECTED_RANK(sConfigInjected->InjectedRank)); assert_param(IS_ADC_SAMPLE_TIME(sConfigInjected->InjectedSamplingTime)); assert_param(IS_ADC_EXT_INJEC_TRIG(sConfigInjected->ExternalTrigInjecConv)); assert_param(IS_ADC_INJECTED_LENGTH(sConfigInjected->InjectedNbrOfConversion)); assert_param(IS_FUNCTIONAL_STATE(sConfigInjected->AutoInjectedConv)); assert_param(IS_FUNCTIONAL_STATE(sConfigInjected->InjectedDiscontinuousConvMode)); #ifdef USE_FULL_ASSERT tmp = ADC_GET_RESOLUTION(hadc); assert_param(IS_ADC_RANGE(tmp, sConfigInjected->InjectedOffset)); #endif /* USE_FULL_ASSERT */ if(sConfigInjected->ExternalTrigInjecConv != ADC_INJECTED_SOFTWARE_START) { assert_param(IS_ADC_EXT_INJEC_TRIG_EDGE(sConfigInjected->ExternalTrigInjecConvEdge)); } /* Process locked */ __HAL_LOCK(hadc); /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ if (sConfigInjected->InjectedChannel > ADC_CHANNEL_9) { /* Clear the old sample time */ hadc->Instance->SMPR1 &= ~ADC_SMPR1(ADC_SMPR1_SMP10, sConfigInjected->InjectedChannel); /* Set the new sample time */ hadc->Instance->SMPR1 |= ADC_SMPR1(sConfigInjected->InjectedSamplingTime, sConfigInjected->InjectedChannel); } else /* ADC_Channel include in ADC_Channel_[0..9] */ { /* Clear the old sample time */ hadc->Instance->SMPR2 &= ~ADC_SMPR2(ADC_SMPR2_SMP0, sConfigInjected->InjectedChannel); /* Set the new sample time */ hadc->Instance->SMPR2 |= ADC_SMPR2(sConfigInjected->InjectedSamplingTime, sConfigInjected->InjectedChannel); } /*---------------------------- ADCx JSQR Configuration -----------------*/ hadc->Instance->JSQR &= ~(ADC_JSQR_JL); hadc->Instance->JSQR |= ADC_SQR1(sConfigInjected->InjectedNbrOfConversion); /* Rank configuration */ /* Clear the old SQx bits for the selected rank */ hadc->Instance->JSQR &= ~ADC_JSQR(ADC_JSQR_JSQ1, sConfigInjected->InjectedRank,sConfigInjected->InjectedNbrOfConversion); /* Set the SQx bits for the selected rank */ hadc->Instance->JSQR |= ADC_JSQR(sConfigInjected->InjectedChannel, sConfigInjected->InjectedRank,sConfigInjected->InjectedNbrOfConversion); /* Enable external trigger if trigger selection is different of software */ /* start. */ /* Note: This configuration keeps the hardware feature of parameter */ /* ExternalTrigConvEdge "trigger edge none" equivalent to */ /* software start. */ if(sConfigInjected->ExternalTrigInjecConv != ADC_INJECTED_SOFTWARE_START) { /* Select external trigger to start conversion */ hadc->Instance->CR2 &= ~(ADC_CR2_JEXTSEL); hadc->Instance->CR2 |= sConfigInjected->ExternalTrigInjecConv; /* Select external trigger polarity */ hadc->Instance->CR2 &= ~(ADC_CR2_JEXTEN); hadc->Instance->CR2 |= sConfigInjected->ExternalTrigInjecConvEdge; } else { /* Reset the external trigger */ hadc->Instance->CR2 &= ~(ADC_CR2_JEXTSEL); hadc->Instance->CR2 &= ~(ADC_CR2_JEXTEN); } if (sConfigInjected->AutoInjectedConv != DISABLE) { /* Enable the selected ADC automatic injected group conversion */ hadc->Instance->CR1 |= ADC_CR1_JAUTO; } else { /* Disable the selected ADC automatic injected group conversion */ hadc->Instance->CR1 &= ~(ADC_CR1_JAUTO); } if (sConfigInjected->InjectedDiscontinuousConvMode != DISABLE) { /* Enable the selected ADC injected discontinuous mode */ hadc->Instance->CR1 |= ADC_CR1_JDISCEN; } else { /* Disable the selected ADC injected discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_JDISCEN); } switch(sConfigInjected->InjectedRank) { case 1U: /* Set injected channel 1 offset */ hadc->Instance->JOFR1 &= ~(ADC_JOFR1_JOFFSET1); hadc->Instance->JOFR1 |= sConfigInjected->InjectedOffset; break; case 2U: /* Set injected channel 2 offset */ hadc->Instance->JOFR2 &= ~(ADC_JOFR2_JOFFSET2); hadc->Instance->JOFR2 |= sConfigInjected->InjectedOffset; break; case 3U: /* Set injected channel 3 offset */ hadc->Instance->JOFR3 &= ~(ADC_JOFR3_JOFFSET3); hadc->Instance->JOFR3 |= sConfigInjected->InjectedOffset; break; default: /* Set injected channel 4 offset */ hadc->Instance->JOFR4 &= ~(ADC_JOFR4_JOFFSET4); hadc->Instance->JOFR4 |= sConfigInjected->InjectedOffset; break; } /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* if ADC1 Channel_18 is selected enable VBAT Channel */ if ((hadc->Instance == ADC1) && (sConfigInjected->InjectedChannel == ADC_CHANNEL_VBAT)) { /* Enable the VBAT channel*/ tmpADC_Common->CCR |= ADC_CCR_VBATE; } /* if ADC1 Channel_16 or Channel_17 is selected enable TSVREFE Channel(Temperature sensor and VREFINT) */ if ((hadc->Instance == ADC1) && ((sConfigInjected->InjectedChannel == ADC_CHANNEL_TEMPSENSOR) || (sConfigInjected->InjectedChannel == ADC_CHANNEL_VREFINT))) { /* Enable the TSVREFE channel*/ tmpADC_Common->CCR |= ADC_CCR_TSVREFE; } /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @brief Configures the ADC multi-mode * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @param multimode pointer to an ADC_MultiModeTypeDef structure that contains * the configuration information for multimode. * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef* hadc, ADC_MultiModeTypeDef* multimode) { ADC_Common_TypeDef *tmpADC_Common; /* Check the parameters */ assert_param(IS_ADC_MODE(multimode->Mode)); assert_param(IS_ADC_DMA_ACCESS_MODE(multimode->DMAAccessMode)); assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay)); /* Process locked */ __HAL_LOCK(hadc); /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADC and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); /* Set ADC mode */ tmpADC_Common->CCR &= ~(ADC_CCR_MULTI); tmpADC_Common->CCR |= multimode->Mode; /* Set the ADC DMA access mode */ tmpADC_Common->CCR &= ~(ADC_CCR_DMA); tmpADC_Common->CCR |= multimode->DMAAccessMode; /* Set delay between two sampling phases */ tmpADC_Common->CCR &= ~(ADC_CCR_DELAY); tmpADC_Common->CCR |= multimode->TwoSamplingDelay; /* Process unlocked */ __HAL_UNLOCK(hadc); /* Return function status */ return HAL_OK; } /** * @} */ /** * @brief DMA transfer complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_MultiModeDMAConvCplt(DMA_HandleTypeDef *hdma) { /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) { /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && (hadc->Init.ContinuousConvMode == DISABLE) && (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) ) { /* Disable ADC end of single conversion interrupt on group regular */ /* Note: Overrun interrupt was enabled with EOC interrupt in */ /* HAL_ADC_Start_IT(), but is not disabled here because can be used */ /* by overrun IRQ process below. */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) { SET_BIT(hadc->State, HAL_ADC_STATE_READY); } } /* Conversion complete callback */ HAL_ADC_ConvCpltCallback(hadc); } else { /* Call DMA error callback */ hadc->DMA_Handle->XferErrorCallback(hdma); } } /** * @brief DMA half transfer complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_MultiModeDMAHalfConvCplt(DMA_HandleTypeDef *hdma) { ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; /* Conversion complete callback */ HAL_ADC_ConvHalfCpltCallback(hadc); } /** * @brief DMA error callback * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void ADC_MultiModeDMAError(DMA_HandleTypeDef *hdma) { ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; hadc->State= HAL_ADC_STATE_ERROR_DMA; /* Set ADC error code to DMA error */ hadc->ErrorCode |= HAL_ADC_ERROR_DMA; HAL_ADC_ErrorCallback(hadc); } /** * @} */ #endif /* HAL_ADC_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_can.c * @author MCD Application Team * @brief CAN HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Controller Area Network (CAN) peripheral: * + Initialization and de-initialization functions * + Configuration functions * + Control functions * + Interrupts management * + Callbacks functions * + Peripheral State and Error functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#) Initialize the CAN low level resources by implementing the HAL_CAN_MspInit(): (++) Enable the CAN interface clock using __HAL_RCC_CANx_CLK_ENABLE() (++) Configure CAN pins (+++) Enable the clock for the CAN GPIOs (+++) Configure CAN pins as alternate function open-drain (++) In case of using interrupts (e.g. HAL_CAN_ActivateNotification()) (+++) Configure the CAN interrupt priority using HAL_NVIC_SetPriority() (+++) Enable the CAN IRQ handler using HAL_NVIC_EnableIRQ() (+++) In CAN IRQ handler, call HAL_CAN_IRQHandler() (#) Initialize the CAN peripheral using HAL_CAN_Init() function. This function resorts to HAL_CAN_MspInit() for low-level initialization. (#) Configure the reception filters using the following configuration functions: (++) HAL_CAN_ConfigFilter() (#) Start the CAN module using HAL_CAN_Start() function. At this level the node is active on the bus: it receive messages, and can send messages. (#) To manage messages transmission, the following Tx control functions can be used: (++) HAL_CAN_AddTxMessage() to request transmission of a new message. (++) HAL_CAN_AbortTxRequest() to abort transmission of a pending message. (++) HAL_CAN_GetTxMailboxesFreeLevel() to get the number of free Tx mailboxes. (++) HAL_CAN_IsTxMessagePending() to check if a message is pending in a Tx mailbox. (++) HAL_CAN_GetTxTimestamp() to get the timestamp of Tx message sent, if time triggered communication mode is enabled. (#) When a message is received into the CAN Rx FIFOs, it can be retrieved using the HAL_CAN_GetRxMessage() function. The function HAL_CAN_GetRxFifoFillLevel() allows to know how many Rx message are stored in the Rx Fifo. (#) Calling the HAL_CAN_Stop() function stops the CAN module. (#) The deinitialization is achieved with HAL_CAN_DeInit() function. *** Polling mode operation *** ============================== [..] (#) Reception: (++) Monitor reception of message using HAL_CAN_GetRxFifoFillLevel() until at least one message is received. (++) Then get the message using HAL_CAN_GetRxMessage(). (#) Transmission: (++) Monitor the Tx mailboxes availability until at least one Tx mailbox is free, using HAL_CAN_GetTxMailboxesFreeLevel(). (++) Then request transmission of a message using HAL_CAN_AddTxMessage(). *** Interrupt mode operation *** ================================ [..] (#) Notifications are activated using HAL_CAN_ActivateNotification() function. Then, the process can be controlled through the available user callbacks: HAL_CAN_xxxCallback(), using same APIs HAL_CAN_GetRxMessage() and HAL_CAN_AddTxMessage(). (#) Notifications can be deactivated using HAL_CAN_DeactivateNotification() function. (#) Special care should be taken for CAN_IT_RX_FIFO0_MSG_PENDING and CAN_IT_RX_FIFO1_MSG_PENDING notifications. These notifications trig the callbacks HAL_CAN_RxFIFO0MsgPendingCallback() and HAL_CAN_RxFIFO1MsgPendingCallback(). User has two possible options here. (++) Directly get the Rx message in the callback, using HAL_CAN_GetRxMessage(). (++) Or deactivate the notification in the callback without getting the Rx message. The Rx message can then be got later using HAL_CAN_GetRxMessage(). Once the Rx message have been read, the notification can be activated again. *** Sleep mode *** ================== [..] (#) The CAN peripheral can be put in sleep mode (low power), using HAL_CAN_RequestSleep(). The sleep mode will be entered as soon as the current CAN activity (transmission or reception of a CAN frame) will be completed. (#) A notification can be activated to be informed when the sleep mode will be entered. (#) It can be checked if the sleep mode is entered using HAL_CAN_IsSleepActive(). Note that the CAN state (accessible from the API HAL_CAN_GetState()) is HAL_CAN_STATE_SLEEP_PENDING as soon as the sleep mode request is submitted (the sleep mode is not yet entered), and become HAL_CAN_STATE_SLEEP_ACTIVE when the sleep mode is effective. (#) The wake-up from sleep mode can be triggered by two ways: (++) Using HAL_CAN_WakeUp(). When returning from this function, the sleep mode is exited (if return status is HAL_OK). (++) When a start of Rx CAN frame is detected by the CAN peripheral, if automatic wake up mode is enabled. *** Callback registration *** ============================================= The compilation define USE_HAL_CAN_REGISTER_CALLBACKS when set to 1 allows the user to configure dynamically the driver callbacks. Use Function @ref HAL_CAN_RegisterCallback() to register an interrupt callback. Function @ref HAL_CAN_RegisterCallback() allows to register following callbacks: (+) TxMailbox0CompleteCallback : Tx Mailbox 0 Complete Callback. (+) TxMailbox1CompleteCallback : Tx Mailbox 1 Complete Callback. (+) TxMailbox2CompleteCallback : Tx Mailbox 2 Complete Callback. (+) TxMailbox0AbortCallback : Tx Mailbox 0 Abort Callback. (+) TxMailbox1AbortCallback : Tx Mailbox 1 Abort Callback. (+) TxMailbox2AbortCallback : Tx Mailbox 2 Abort Callback. (+) RxFifo0MsgPendingCallback : Rx Fifo 0 Message Pending Callback. (+) RxFifo0FullCallback : Rx Fifo 0 Full Callback. (+) RxFifo1MsgPendingCallback : Rx Fifo 1 Message Pending Callback. (+) RxFifo1FullCallback : Rx Fifo 1 Full Callback. (+) SleepCallback : Sleep Callback. (+) WakeUpFromRxMsgCallback : Wake Up From Rx Message Callback. (+) ErrorCallback : Error Callback. (+) MspInitCallback : CAN MspInit. (+) MspDeInitCallback : CAN MspDeInit. This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. Use function @ref HAL_CAN_UnRegisterCallback() to reset a callback to the default weak function. @ref HAL_CAN_UnRegisterCallback takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (+) TxMailbox0CompleteCallback : Tx Mailbox 0 Complete Callback. (+) TxMailbox1CompleteCallback : Tx Mailbox 1 Complete Callback. (+) TxMailbox2CompleteCallback : Tx Mailbox 2 Complete Callback. (+) TxMailbox0AbortCallback : Tx Mailbox 0 Abort Callback. (+) TxMailbox1AbortCallback : Tx Mailbox 1 Abort Callback. (+) TxMailbox2AbortCallback : Tx Mailbox 2 Abort Callback. (+) RxFifo0MsgPendingCallback : Rx Fifo 0 Message Pending Callback. (+) RxFifo0FullCallback : Rx Fifo 0 Full Callback. (+) RxFifo1MsgPendingCallback : Rx Fifo 1 Message Pending Callback. (+) RxFifo1FullCallback : Rx Fifo 1 Full Callback. (+) SleepCallback : Sleep Callback. (+) WakeUpFromRxMsgCallback : Wake Up From Rx Message Callback. (+) ErrorCallback : Error Callback. (+) MspInitCallback : CAN MspInit. (+) MspDeInitCallback : CAN MspDeInit. By default, after the @ref HAL_CAN_Init() and when the state is HAL_CAN_STATE_RESET, all callbacks are set to the corresponding weak functions: example @ref HAL_CAN_ErrorCallback(). Exception done for MspInit and MspDeInit functions that are reset to the legacy weak function in the @ref HAL_CAN_Init()/ @ref HAL_CAN_DeInit() only when these callbacks are null (not registered beforehand). if not, MspInit or MspDeInit are not null, the @ref HAL_CAN_Init()/ @ref HAL_CAN_DeInit() keep and use the user MspInit/MspDeInit callbacks (registered beforehand) Callbacks can be registered/unregistered in HAL_CAN_STATE_READY state only. Exception done MspInit/MspDeInit that can be registered/unregistered in HAL_CAN_STATE_READY or HAL_CAN_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. In that case first register the MspInit/MspDeInit user callbacks using @ref HAL_CAN_RegisterCallback() before calling @ref HAL_CAN_DeInit() or @ref HAL_CAN_Init() function. When The compilation define USE_HAL_CAN_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and all callbacks are set to the corresponding weak functions. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ #if defined(CAN1) /** @defgroup CAN CAN * @brief CAN driver modules * @{ */ #ifdef HAL_CAN_MODULE_ENABLED #ifdef HAL_CAN_LEGACY_MODULE_ENABLED #error "The CAN driver cannot be used with its legacy, Please enable only one CAN module at once" #endif /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @defgroup CAN_Private_Constants CAN Private Constants * @{ */ #define CAN_TIMEOUT_VALUE 10U /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup CAN_Exported_Functions CAN Exported Functions * @{ */ /** @defgroup CAN_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim ============================================================================== ##### Initialization and de-initialization functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_CAN_Init : Initialize and configure the CAN. (+) HAL_CAN_DeInit : De-initialize the CAN. (+) HAL_CAN_MspInit : Initialize the CAN MSP. (+) HAL_CAN_MspDeInit : DeInitialize the CAN MSP. @endverbatim * @{ */ /** * @brief Initializes the CAN peripheral according to the specified * parameters in the CAN_InitStruct. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan) { uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_CAN_ALL_INSTANCE(hcan->Instance)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.TimeTriggeredMode)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.AutoBusOff)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.AutoWakeUp)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.AutoRetransmission)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.ReceiveFifoLocked)); assert_param(IS_FUNCTIONAL_STATE(hcan->Init.TransmitFifoPriority)); assert_param(IS_CAN_MODE(hcan->Init.Mode)); assert_param(IS_CAN_SJW(hcan->Init.SyncJumpWidth)); assert_param(IS_CAN_BS1(hcan->Init.TimeSeg1)); assert_param(IS_CAN_BS2(hcan->Init.TimeSeg2)); assert_param(IS_CAN_PRESCALER(hcan->Init.Prescaler)); #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 if (hcan->State == HAL_CAN_STATE_RESET) { /* Reset callbacks to legacy functions */ hcan->RxFifo0MsgPendingCallback = HAL_CAN_RxFifo0MsgPendingCallback; /* Legacy weak RxFifo0MsgPendingCallback */ hcan->RxFifo0FullCallback = HAL_CAN_RxFifo0FullCallback; /* Legacy weak RxFifo0FullCallback */ hcan->RxFifo1MsgPendingCallback = HAL_CAN_RxFifo1MsgPendingCallback; /* Legacy weak RxFifo1MsgPendingCallback */ hcan->RxFifo1FullCallback = HAL_CAN_RxFifo1FullCallback; /* Legacy weak RxFifo1FullCallback */ hcan->TxMailbox0CompleteCallback = HAL_CAN_TxMailbox0CompleteCallback; /* Legacy weak TxMailbox0CompleteCallback */ hcan->TxMailbox1CompleteCallback = HAL_CAN_TxMailbox1CompleteCallback; /* Legacy weak TxMailbox1CompleteCallback */ hcan->TxMailbox2CompleteCallback = HAL_CAN_TxMailbox2CompleteCallback; /* Legacy weak TxMailbox2CompleteCallback */ hcan->TxMailbox0AbortCallback = HAL_CAN_TxMailbox0AbortCallback; /* Legacy weak TxMailbox0AbortCallback */ hcan->TxMailbox1AbortCallback = HAL_CAN_TxMailbox1AbortCallback; /* Legacy weak TxMailbox1AbortCallback */ hcan->TxMailbox2AbortCallback = HAL_CAN_TxMailbox2AbortCallback; /* Legacy weak TxMailbox2AbortCallback */ hcan->SleepCallback = HAL_CAN_SleepCallback; /* Legacy weak SleepCallback */ hcan->WakeUpFromRxMsgCallback = HAL_CAN_WakeUpFromRxMsgCallback; /* Legacy weak WakeUpFromRxMsgCallback */ hcan->ErrorCallback = HAL_CAN_ErrorCallback; /* Legacy weak ErrorCallback */ if (hcan->MspInitCallback == NULL) { hcan->MspInitCallback = HAL_CAN_MspInit; /* Legacy weak MspInit */ } /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); } #endif /* (USE_HAL_CAN_REGISTER_CALLBACKS) */ /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); /* Get tick */ tickstart = HAL_GetTick(); /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; return HAL_ERROR; } } /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); /* Get tick */ tickstart = HAL_GetTick(); /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; return HAL_ERROR; } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | hcan->Init.SyncJumpWidth | hcan->Init.TimeSeg1 | hcan->Init.TimeSeg2 | (hcan->Init.Prescaler - 1U))); /* Initialize the error code */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; /* Return function status */ return HAL_OK; } /** * @brief Deinitializes the CAN peripheral registers to their default * reset values. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_DeInit(CAN_HandleTypeDef *hcan) { /* Check CAN handle */ if (hcan == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_CAN_ALL_INSTANCE(hcan->Instance)); /* Stop the CAN module */ (void)HAL_CAN_Stop(hcan); #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 if (hcan->MspDeInitCallback == NULL) { hcan->MspDeInitCallback = HAL_CAN_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware: CLOCK, NVIC */ hcan->MspDeInitCallback(hcan); #else /* DeInit the low level hardware: CLOCK, NVIC */ HAL_CAN_MspDeInit(hcan); #endif /* (USE_HAL_CAN_REGISTER_CALLBACKS) */ /* Reset the CAN peripheral */ SET_BIT(hcan->Instance->MCR, CAN_MCR_RESET); /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; /* Change CAN state */ hcan->State = HAL_CAN_STATE_RESET; /* Return function status */ return HAL_OK; } /** * @brief Initializes the CAN MSP. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_MspInit(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_MspInit could be implemented in the user file */ } /** * @brief DeInitializes the CAN MSP. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_MspDeInit could be implemented in the user file */ } #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /** * @brief Register a CAN CallBack. * To be used instead of the weak predefined callback * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for CAN module * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_CAN_TX_MAILBOX0_COMPLETE_CALLBACK_CB_ID Tx Mailbox 0 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX1_COMPLETE_CALLBACK_CB_ID Tx Mailbox 1 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX2_COMPLETE_CALLBACK_CB_ID Tx Mailbox 2 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX0_ABORT_CALLBACK_CB_ID Tx Mailbox 0 Abort callback ID * @arg @ref HAL_CAN_TX_MAILBOX1_ABORT_CALLBACK_CB_ID Tx Mailbox 1 Abort callback ID * @arg @ref HAL_CAN_TX_MAILBOX2_ABORT_CALLBACK_CB_ID Tx Mailbox 2 Abort callback ID * @arg @ref HAL_CAN_RX_FIFO0_MSG_PENDING_CALLBACK_CB_ID Rx Fifo 0 message pending callback ID * @arg @ref HAL_CAN_RX_FIFO0_FULL_CALLBACK_CB_ID Rx Fifo 0 full callback ID * @arg @ref HAL_CAN_RX_FIFO1_MSGPENDING_CALLBACK_CB_ID Rx Fifo 1 message pending callback ID * @arg @ref HAL_CAN_RX_FIFO1_FULL_CALLBACK_CB_ID Rx Fifo 1 full callback ID * @arg @ref HAL_CAN_SLEEP_CALLBACK_CB_ID Sleep callback ID * @arg @ref HAL_CAN_WAKEUP_FROM_RX_MSG_CALLBACK_CB_ID Wake Up from Rx message callback ID * @arg @ref HAL_CAN_ERROR_CALLBACK_CB_ID Error callback ID * @arg @ref HAL_CAN_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_CAN_MSPDEINIT_CB_ID MspDeInit callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_RegisterCallback(CAN_HandleTypeDef *hcan, HAL_CAN_CallbackIDTypeDef CallbackID, void (* pCallback)(CAN_HandleTypeDef *_hcan)) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; return HAL_ERROR; } if (hcan->State == HAL_CAN_STATE_READY) { switch (CallbackID) { case HAL_CAN_TX_MAILBOX0_COMPLETE_CB_ID : hcan->TxMailbox0CompleteCallback = pCallback; break; case HAL_CAN_TX_MAILBOX1_COMPLETE_CB_ID : hcan->TxMailbox1CompleteCallback = pCallback; break; case HAL_CAN_TX_MAILBOX2_COMPLETE_CB_ID : hcan->TxMailbox2CompleteCallback = pCallback; break; case HAL_CAN_TX_MAILBOX0_ABORT_CB_ID : hcan->TxMailbox0AbortCallback = pCallback; break; case HAL_CAN_TX_MAILBOX1_ABORT_CB_ID : hcan->TxMailbox1AbortCallback = pCallback; break; case HAL_CAN_TX_MAILBOX2_ABORT_CB_ID : hcan->TxMailbox2AbortCallback = pCallback; break; case HAL_CAN_RX_FIFO0_MSG_PENDING_CB_ID : hcan->RxFifo0MsgPendingCallback = pCallback; break; case HAL_CAN_RX_FIFO0_FULL_CB_ID : hcan->RxFifo0FullCallback = pCallback; break; case HAL_CAN_RX_FIFO1_MSG_PENDING_CB_ID : hcan->RxFifo1MsgPendingCallback = pCallback; break; case HAL_CAN_RX_FIFO1_FULL_CB_ID : hcan->RxFifo1FullCallback = pCallback; break; case HAL_CAN_SLEEP_CB_ID : hcan->SleepCallback = pCallback; break; case HAL_CAN_WAKEUP_FROM_RX_MSG_CB_ID : hcan->WakeUpFromRxMsgCallback = pCallback; break; case HAL_CAN_ERROR_CB_ID : hcan->ErrorCallback = pCallback; break; case HAL_CAN_MSPINIT_CB_ID : hcan->MspInitCallback = pCallback; break; case HAL_CAN_MSPDEINIT_CB_ID : hcan->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (hcan->State == HAL_CAN_STATE_RESET) { switch (CallbackID) { case HAL_CAN_MSPINIT_CB_ID : hcan->MspInitCallback = pCallback; break; case HAL_CAN_MSPDEINIT_CB_ID : hcan->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } return status; } /** * @brief Unregister a CAN CallBack. * CAN callabck is redirected to the weak predefined callback * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for CAN module * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * @arg @ref HAL_CAN_TX_MAILBOX0_COMPLETE_CALLBACK_CB_ID Tx Mailbox 0 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX1_COMPLETE_CALLBACK_CB_ID Tx Mailbox 1 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX2_COMPLETE_CALLBACK_CB_ID Tx Mailbox 2 Complete callback ID * @arg @ref HAL_CAN_TX_MAILBOX0_ABORT_CALLBACK_CB_ID Tx Mailbox 0 Abort callback ID * @arg @ref HAL_CAN_TX_MAILBOX1_ABORT_CALLBACK_CB_ID Tx Mailbox 1 Abort callback ID * @arg @ref HAL_CAN_TX_MAILBOX2_ABORT_CALLBACK_CB_ID Tx Mailbox 2 Abort callback ID * @arg @ref HAL_CAN_RX_FIFO0_MSG_PENDING_CALLBACK_CB_ID Rx Fifo 0 message pending callback ID * @arg @ref HAL_CAN_RX_FIFO0_FULL_CALLBACK_CB_ID Rx Fifo 0 full callback ID * @arg @ref HAL_CAN_RX_FIFO1_MSGPENDING_CALLBACK_CB_ID Rx Fifo 1 message pending callback ID * @arg @ref HAL_CAN_RX_FIFO1_FULL_CALLBACK_CB_ID Rx Fifo 1 full callback ID * @arg @ref HAL_CAN_SLEEP_CALLBACK_CB_ID Sleep callback ID * @arg @ref HAL_CAN_WAKEUP_FROM_RX_MSG_CALLBACK_CB_ID Wake Up from Rx message callback ID * @arg @ref HAL_CAN_ERROR_CALLBACK_CB_ID Error callback ID * @arg @ref HAL_CAN_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_CAN_MSPDEINIT_CB_ID MspDeInit callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_UnRegisterCallback(CAN_HandleTypeDef *hcan, HAL_CAN_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; if (hcan->State == HAL_CAN_STATE_READY) { switch (CallbackID) { case HAL_CAN_TX_MAILBOX0_COMPLETE_CB_ID : hcan->TxMailbox0CompleteCallback = HAL_CAN_TxMailbox0CompleteCallback; break; case HAL_CAN_TX_MAILBOX1_COMPLETE_CB_ID : hcan->TxMailbox1CompleteCallback = HAL_CAN_TxMailbox1CompleteCallback; break; case HAL_CAN_TX_MAILBOX2_COMPLETE_CB_ID : hcan->TxMailbox2CompleteCallback = HAL_CAN_TxMailbox2CompleteCallback; break; case HAL_CAN_TX_MAILBOX0_ABORT_CB_ID : hcan->TxMailbox0AbortCallback = HAL_CAN_TxMailbox0AbortCallback; break; case HAL_CAN_TX_MAILBOX1_ABORT_CB_ID : hcan->TxMailbox1AbortCallback = HAL_CAN_TxMailbox1AbortCallback; break; case HAL_CAN_TX_MAILBOX2_ABORT_CB_ID : hcan->TxMailbox2AbortCallback = HAL_CAN_TxMailbox2AbortCallback; break; case HAL_CAN_RX_FIFO0_MSG_PENDING_CB_ID : hcan->RxFifo0MsgPendingCallback = HAL_CAN_RxFifo0MsgPendingCallback; break; case HAL_CAN_RX_FIFO0_FULL_CB_ID : hcan->RxFifo0FullCallback = HAL_CAN_RxFifo0FullCallback; break; case HAL_CAN_RX_FIFO1_MSG_PENDING_CB_ID : hcan->RxFifo1MsgPendingCallback = HAL_CAN_RxFifo1MsgPendingCallback; break; case HAL_CAN_RX_FIFO1_FULL_CB_ID : hcan->RxFifo1FullCallback = HAL_CAN_RxFifo1FullCallback; break; case HAL_CAN_SLEEP_CB_ID : hcan->SleepCallback = HAL_CAN_SleepCallback; break; case HAL_CAN_WAKEUP_FROM_RX_MSG_CB_ID : hcan->WakeUpFromRxMsgCallback = HAL_CAN_WakeUpFromRxMsgCallback; break; case HAL_CAN_ERROR_CB_ID : hcan->ErrorCallback = HAL_CAN_ErrorCallback; break; case HAL_CAN_MSPINIT_CB_ID : hcan->MspInitCallback = HAL_CAN_MspInit; break; case HAL_CAN_MSPDEINIT_CB_ID : hcan->MspDeInitCallback = HAL_CAN_MspDeInit; break; default : /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (hcan->State == HAL_CAN_STATE_RESET) { switch (CallbackID) { case HAL_CAN_MSPINIT_CB_ID : hcan->MspInitCallback = HAL_CAN_MspInit; break; case HAL_CAN_MSPDEINIT_CB_ID : hcan->MspDeInitCallback = HAL_CAN_MspDeInit; break; default : /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } return status; } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup CAN_Exported_Functions_Group2 Configuration functions * @brief Configuration functions. * @verbatim ============================================================================== ##### Configuration functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_CAN_ConfigFilter : Configure the CAN reception filters @endverbatim * @{ */ /** * @brief Configures the CAN reception filter according to the specified * parameters in the CAN_FilterInitStruct. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param sFilterConfig pointer to a CAN_FilterTypeDef structure that * contains the filter configuration information. * @retval None */ HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, CAN_FilterTypeDef *sFilterConfig) { uint32_t filternbrbitpos; CAN_TypeDef *can_ip = hcan->Instance; HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check the parameters */ assert_param(IS_CAN_FILTER_ID_HALFWORD(sFilterConfig->FilterIdHigh)); assert_param(IS_CAN_FILTER_ID_HALFWORD(sFilterConfig->FilterIdLow)); assert_param(IS_CAN_FILTER_ID_HALFWORD(sFilterConfig->FilterMaskIdHigh)); assert_param(IS_CAN_FILTER_ID_HALFWORD(sFilterConfig->FilterMaskIdLow)); assert_param(IS_CAN_FILTER_MODE(sFilterConfig->FilterMode)); assert_param(IS_CAN_FILTER_SCALE(sFilterConfig->FilterScale)); assert_param(IS_CAN_FILTER_FIFO(sFilterConfig->FilterFIFOAssignment)); assert_param(IS_CAN_FILTER_ACTIVATION(sFilterConfig->FilterActivation)); #if defined(CAN3) /* Check the CAN instance */ if (hcan->Instance == CAN3) { /* CAN3 is single instance with 14 dedicated filters banks */ /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank)); } else { /* CAN1 and CAN2 are dual instances with 28 common filters banks */ /* Select master instance to access the filter banks */ can_ip = CAN1; /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->FilterBank)); assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->SlaveStartFilterBank)); } #elif defined(CAN2) /* CAN1 and CAN2 are dual instances with 28 common filters banks */ /* Select master instance to access the filter banks */ can_ip = CAN1; /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->FilterBank)); assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->SlaveStartFilterBank)); #else /* CAN1 is single instance with 14 dedicated filters banks */ /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank)); #endif /* Initialisation mode for the filter */ SET_BIT(can_ip->FMR, CAN_FMR_FINIT); #if defined(CAN3) /* Check the CAN instance */ if (can_ip == CAN1) { /* Select the start filter number of CAN2 slave instance */ CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB); SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); } #elif defined(CAN2) /* Select the start filter number of CAN2 slave instance */ CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB); SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); #endif /* Convert filter number into bit position */ filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); /* Filter Deactivation */ CLEAR_BIT(can_ip->FA1R, filternbrbitpos); /* Filter Scale */ if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) { /* 16-bit scale for the filter */ CLEAR_BIT(can_ip->FS1R, filternbrbitpos); /* First 16-bit identifier and First 16-bit mask */ /* Or First 16-bit identifier and Second 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); /* Second 16-bit identifier and Second 16-bit mask */ /* Or Third 16-bit identifier and Fourth 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); } if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) { /* 32-bit scale for the filter */ SET_BIT(can_ip->FS1R, filternbrbitpos); /* 32-bit identifier or First 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); /* 32-bit mask or Second 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); } /* Filter Mode */ if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) { /* Id/Mask mode for the filter*/ CLEAR_BIT(can_ip->FM1R, filternbrbitpos); } else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ { /* Identifier list mode for the filter*/ SET_BIT(can_ip->FM1R, filternbrbitpos); } /* Filter FIFO assignment */ if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) { /* FIFO 0 assignation for the filter */ CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); } else { /* FIFO 1 assignation for the filter */ SET_BIT(can_ip->FFA1R, filternbrbitpos); } /* Filter activation */ if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) { SET_BIT(can_ip->FA1R, filternbrbitpos); } /* Leave the initialisation mode for the filter */ CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @} */ /** @defgroup CAN_Exported_Functions_Group3 Control functions * @brief Control functions * @verbatim ============================================================================== ##### Control functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_CAN_Start : Start the CAN module (+) HAL_CAN_Stop : Stop the CAN module (+) HAL_CAN_RequestSleep : Request sleep mode entry. (+) HAL_CAN_WakeUp : Wake up from sleep mode. (+) HAL_CAN_IsSleepActive : Check is sleep mode is active. (+) HAL_CAN_AddTxMessage : Add a message to the Tx mailboxes and activate the corresponding transmission request (+) HAL_CAN_AbortTxRequest : Abort transmission request (+) HAL_CAN_GetTxMailboxesFreeLevel : Return Tx mailboxes free level (+) HAL_CAN_IsTxMessagePending : Check if a transmission request is pending on the selected Tx mailbox (+) HAL_CAN_GetRxMessage : Get a CAN frame from the Rx FIFO (+) HAL_CAN_GetRxFifoFillLevel : Return Rx FIFO fill level @endverbatim * @{ */ /** * @brief Start the CAN module. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan) { uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); /* Get tick */ tickstart = HAL_GetTick(); /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; return HAL_ERROR; } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; return HAL_ERROR; } } /** * @brief Stop the CAN module and enable access to configuration registers. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Stop(CAN_HandleTypeDef *hcan) { uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_LISTENING) { /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); /* Get tick */ tickstart = HAL_GetTick(); /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; return HAL_ERROR; } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_READY; /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_STARTED; return HAL_ERROR; } } /** * @brief Request the sleep mode (low power) entry. * When returning from this function, Sleep mode will be entered * as soon as the current CAN activity (transmission or reception * of a CAN frame) has been completed. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status. */ HAL_StatusTypeDef HAL_CAN_RequestSleep(CAN_HandleTypeDef *hcan) { HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Request Sleep mode */ SET_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; /* Return function status */ return HAL_ERROR; } } /** * @brief Wake up from sleep mode. * When returning with HAL_OK status from this function, Sleep mode * is exited. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status. */ HAL_StatusTypeDef HAL_CAN_WakeUp(CAN_HandleTypeDef *hcan) { __IO uint32_t count = 0; uint32_t timeout = 1000000U; HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Wake up request */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); /* Wait sleep mode is exited */ do { /* Increment counter */ count++; /* Check if timeout is reached */ if (count > timeout) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; return HAL_ERROR; } } while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Check is sleep mode is active. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval Status * - 0 : Sleep mode is not active. * - 1 : Sleep mode is active. */ uint32_t HAL_CAN_IsSleepActive(CAN_HandleTypeDef *hcan) { uint32_t status = 0U; HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check Sleep mode */ if ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) { status = 1U; } } /* Return function status */ return status; } /** * @brief Add a message to the first free Tx mailbox and activate the * corresponding transmission request. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param pHeader pointer to a CAN_TxHeaderTypeDef structure. * @param aData array containing the payload of the Tx frame. * @param pTxMailbox pointer to a variable where the function will return * the TxMailbox used to store the Tx message. * This parameter can be a value of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, CAN_TxHeaderTypeDef *pHeader, uint8_t aData[], uint32_t *pTxMailbox) { uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; uint32_t tsr = READ_REG(hcan->Instance->TSR); /* Check the parameters */ assert_param(IS_CAN_IDTYPE(pHeader->IDE)); assert_param(IS_CAN_RTR(pHeader->RTR)); assert_param(IS_CAN_DLC(pHeader->DLC)); if (pHeader->IDE == CAN_ID_STD) { assert_param(IS_CAN_STDID(pHeader->StdId)); } else { assert_param(IS_CAN_EXTID(pHeader->ExtId)); } assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || ((tsr & CAN_TSR_TME1) != 0U) || ((tsr & CAN_TSR_TME2) != 0U)) { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; /* Check transmit mailbox value */ if (transmitmailbox > 2U) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INTERNAL; return HAL_ERROR; } /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | pHeader->RTR); } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | pHeader->IDE | pHeader->RTR); } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, ((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) | ((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) | ((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) | ((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos)); WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR, ((uint32_t)aData[3] << CAN_TDL0R_DATA3_Pos) | ((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) | ((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) | ((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos)); /* Request transmission */ SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; return HAL_ERROR; } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Abort transmission requests * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param TxMailboxes List of the Tx Mailboxes to abort. * This parameter can be any combination of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AbortTxRequest(CAN_HandleTypeDef *hcan, uint32_t TxMailboxes) { HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_TX_MAILBOX_LIST(TxMailboxes)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 */ if ((TxMailboxes & CAN_TX_MAILBOX0) != 0U) { /* Add cancellation request for Tx Mailbox 0 */ SET_BIT(hcan->Instance->TSR, CAN_TSR_ABRQ0); } /* Check Tx Mailbox 1 */ if ((TxMailboxes & CAN_TX_MAILBOX1) != 0U) { /* Add cancellation request for Tx Mailbox 1 */ SET_BIT(hcan->Instance->TSR, CAN_TSR_ABRQ1); } /* Check Tx Mailbox 2 */ if ((TxMailboxes & CAN_TX_MAILBOX2) != 0U) { /* Add cancellation request for Tx Mailbox 2 */ SET_BIT(hcan->Instance->TSR, CAN_TSR_ABRQ2); } /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Return Tx Mailboxes free level: number of free Tx Mailboxes. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval Number of free Tx Mailboxes. */ uint32_t HAL_CAN_GetTxMailboxesFreeLevel(CAN_HandleTypeDef *hcan) { uint32_t freelevel = 0U; HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 status */ if ((hcan->Instance->TSR & CAN_TSR_TME0) != 0U) { freelevel++; } /* Check Tx Mailbox 1 status */ if ((hcan->Instance->TSR & CAN_TSR_TME1) != 0U) { freelevel++; } /* Check Tx Mailbox 2 status */ if ((hcan->Instance->TSR & CAN_TSR_TME2) != 0U) { freelevel++; } } /* Return Tx Mailboxes free level */ return freelevel; } /** * @brief Check if a transmission request is pending on the selected Tx * Mailboxes. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param TxMailboxes List of Tx Mailboxes to check. * This parameter can be any combination of @arg CAN_Tx_Mailboxes. * @retval Status * - 0 : No pending transmission request on any selected Tx Mailboxes. * - 1 : Pending transmission request on at least one of the selected * Tx Mailbox. */ uint32_t HAL_CAN_IsTxMessagePending(CAN_HandleTypeDef *hcan, uint32_t TxMailboxes) { uint32_t status = 0U; HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_TX_MAILBOX_LIST(TxMailboxes)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check pending transmission request on the selected Tx Mailboxes */ if ((hcan->Instance->TSR & (TxMailboxes << CAN_TSR_TME0_Pos)) != (TxMailboxes << CAN_TSR_TME0_Pos)) { status = 1U; } } /* Return status */ return status; } /** * @brief Return timestamp of Tx message sent, if time triggered communication mode is enabled. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param TxMailbox Tx Mailbox where the timestamp of message sent will be * read. * This parameter can be one value of @arg CAN_Tx_Mailboxes. * @retval Timestamp of message sent from Tx Mailbox. */ uint32_t HAL_CAN_GetTxTimestamp(CAN_HandleTypeDef *hcan, uint32_t TxMailbox) { uint32_t timestamp = 0U; uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_TX_MAILBOX(TxMailbox)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Select the Tx mailbox */ transmitmailbox = POSITION_VAL(TxMailbox); /* Get timestamp */ timestamp = (hcan->Instance->sTxMailBox[transmitmailbox].TDTR & CAN_TDT0R_TIME) >> CAN_TDT0R_TIME_Pos; } /* Return the timestamp */ return timestamp; } /** * @brief Get an CAN frame from the Rx FIFO zone into the message RAM. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param RxFifo Fifo number of the received message to be read. * This parameter can be a value of @arg CAN_receive_FIFO_number. * @param pHeader pointer to a CAN_RxHeaderTypeDef structure where the header * of the Rx frame will be stored. * @param aData array where the payload of the Rx frame will be stored. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]) { HAL_CAN_StateTypeDef state = hcan->State; assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check the Rx FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ { /* Check that the Rx FIFO 0 is not empty */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; return HAL_ERROR; } } else /* Rx element is assigned to Rx FIFO 1 */ { /* Check that the Rx FIFO 1 is not empty */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U) { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; return HAL_ERROR; } } /* Get the header */ pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; if (pHeader->IDE == CAN_ID_STD) { pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; } else { pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; } pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; /* Get the data */ aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); /* Release the FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ { /* Release RX FIFO 0 */ SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); } else /* Rx element is assigned to Rx FIFO 1 */ { /* Release RX FIFO 1 */ SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); } /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Return Rx FIFO fill level. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param RxFifo Rx FIFO. * This parameter can be a value of @arg CAN_receive_FIFO_number. * @retval Number of messages available in Rx FIFO. */ uint32_t HAL_CAN_GetRxFifoFillLevel(CAN_HandleTypeDef *hcan, uint32_t RxFifo) { uint32_t filllevel = 0U; HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { if (RxFifo == CAN_RX_FIFO0) { filllevel = hcan->Instance->RF0R & CAN_RF0R_FMP0; } else /* RxFifo == CAN_RX_FIFO1 */ { filllevel = hcan->Instance->RF1R & CAN_RF1R_FMP1; } } /* Return Rx FIFO fill level */ return filllevel; } /** * @} */ /** @defgroup CAN_Exported_Functions_Group4 Interrupts management * @brief Interrupts management * @verbatim ============================================================================== ##### Interrupts management ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_CAN_ActivateNotification : Enable interrupts (+) HAL_CAN_DeactivateNotification : Disable interrupts (+) HAL_CAN_IRQHandler : Handles CAN interrupt request @endverbatim * @{ */ /** * @brief Enable interrupts. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param ActiveITs indicates which interrupts will be enabled. * This parameter can be any combination of @arg CAN_Interrupts. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t ActiveITs) { HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_IT(ActiveITs)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Enable the selected interrupts */ __HAL_CAN_ENABLE_IT(hcan, ActiveITs); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Disable interrupts. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @param InactiveITs indicates which interrupts will be disabled. * This parameter can be any combination of @arg CAN_Interrupts. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_DeactivateNotification(CAN_HandleTypeDef *hcan, uint32_t InactiveITs) { HAL_CAN_StateTypeDef state = hcan->State; /* Check function parameters */ assert_param(IS_CAN_IT(InactiveITs)); if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Disable the selected interrupts */ __HAL_CAN_DISABLE_IT(hcan, InactiveITs); /* Return function status */ return HAL_OK; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; return HAL_ERROR; } } /** * @brief Handles CAN interrupt request * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ void HAL_CAN_IRQHandler(CAN_HandleTypeDef *hcan) { uint32_t errorcode = HAL_CAN_ERROR_NONE; uint32_t interrupts = READ_REG(hcan->Instance->IER); uint32_t msrflags = READ_REG(hcan->Instance->MSR); uint32_t tsrflags = READ_REG(hcan->Instance->TSR); uint32_t rf0rflags = READ_REG(hcan->Instance->RF0R); uint32_t rf1rflags = READ_REG(hcan->Instance->RF1R); uint32_t esrflags = READ_REG(hcan->Instance->ESR); /* Transmit Mailbox empty interrupt management *****************************/ if ((interrupts & CAN_IT_TX_MAILBOX_EMPTY) != 0U) { /* Transmit Mailbox 0 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP0) != 0U) { /* Clear the Transmission Complete flag (and TXOK0,ALST0,TERR0 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP0); if ((tsrflags & CAN_TSR_TXOK0) != 0U) { /* Transmission Mailbox 0 complete callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0CompleteCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST0) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST0; } else if ((tsrflags & CAN_TSR_TERR0) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR0; } else { /* Transmission Mailbox 0 abort callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0AbortCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } } /* Transmit Mailbox 1 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP1) != 0U) { /* Clear the Transmission Complete flag (and TXOK1,ALST1,TERR1 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP1); if ((tsrflags & CAN_TSR_TXOK1) != 0U) { /* Transmission Mailbox 1 complete callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1CompleteCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST1) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST1; } else if ((tsrflags & CAN_TSR_TERR1) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR1; } else { /* Transmission Mailbox 1 abort callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1AbortCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } } /* Transmit Mailbox 2 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP2) != 0U) { /* Clear the Transmission Complete flag (and TXOK2,ALST2,TERR2 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP2); if ((tsrflags & CAN_TSR_TXOK2) != 0U) { /* Transmission Mailbox 2 complete callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2CompleteCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST2) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST2; } else if ((tsrflags & CAN_TSR_TERR2) != 0U) { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR2; } else { /* Transmission Mailbox 2 abort callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2AbortCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } } } /* Receive FIFO 0 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO0_OVERRUN) != 0U) { if ((rf0rflags & CAN_RF0R_FOVR0) != 0U) { /* Set CAN error code to Rx Fifo 0 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV0; /* Clear FIFO0 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV0); } } /* Receive FIFO 0 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U) { if ((rf0rflags & CAN_RF0R_FULL0) != 0U) { /* Clear FIFO 0 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF0); /* Receive FIFO 0 full Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0FullCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 0 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) { /* Check if message is still pending */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U) { /* Receive FIFO 0 message pending Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO1_OVERRUN) != 0U) { if ((rf1rflags & CAN_RF1R_FOVR1) != 0U) { /* Set CAN error code to Rx Fifo 1 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV1; /* Clear FIFO1 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV1); } } /* Receive FIFO 1 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO1_FULL) != 0U) { if ((rf1rflags & CAN_RF1R_FULL1) != 0U) { /* Clear FIFO 1 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF1); /* Receive FIFO 1 full Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1FullCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO1_MSG_PENDING) != 0U) { /* Check if message is still pending */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) != 0U) { /* Receive FIFO 1 message pending Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1MsgPendingCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Sleep interrupt management *********************************************/ if ((interrupts & CAN_IT_SLEEP_ACK) != 0U) { if ((msrflags & CAN_MSR_SLAKI) != 0U) { /* Clear Sleep interrupt Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_SLAKI); /* Sleep Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->SleepCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_SleepCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* WakeUp interrupt management *********************************************/ if ((interrupts & CAN_IT_WAKEUP) != 0U) { if ((msrflags & CAN_MSR_WKUI) != 0U) { /* Clear WakeUp Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_WKU); /* WakeUp Callback */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->WakeUpFromRxMsgCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_WakeUpFromRxMsgCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Error interrupts management *********************************************/ if ((interrupts & CAN_IT_ERROR) != 0U) { if ((msrflags & CAN_MSR_ERRI) != 0U) { /* Check Error Warning Flag */ if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && ((esrflags & CAN_ESR_EWGF) != 0U)) { /* Set CAN error code to Error Warning */ errorcode |= HAL_CAN_ERROR_EWG; /* No need for clear of Error Warning Flag as read-only */ } /* Check Error Passive Flag */ if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && ((esrflags & CAN_ESR_EPVF) != 0U)) { /* Set CAN error code to Error Passive */ errorcode |= HAL_CAN_ERROR_EPV; /* No need for clear of Error Passive Flag as read-only */ } /* Check Bus-off Flag */ if (((interrupts & CAN_IT_BUSOFF) != 0U) && ((esrflags & CAN_ESR_BOFF) != 0U)) { /* Set CAN error code to Bus-Off */ errorcode |= HAL_CAN_ERROR_BOF; /* No need for clear of Error Bus-Off as read-only */ } /* Check Last Error Code Flag */ if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && ((esrflags & CAN_ESR_LEC) != 0U)) { switch (esrflags & CAN_ESR_LEC) { case (CAN_ESR_LEC_0): /* Set CAN error code to Stuff error */ errorcode |= HAL_CAN_ERROR_STF; break; case (CAN_ESR_LEC_1): /* Set CAN error code to Form error */ errorcode |= HAL_CAN_ERROR_FOR; break; case (CAN_ESR_LEC_1 | CAN_ESR_LEC_0): /* Set CAN error code to Acknowledgement error */ errorcode |= HAL_CAN_ERROR_ACK; break; case (CAN_ESR_LEC_2): /* Set CAN error code to Bit recessive error */ errorcode |= HAL_CAN_ERROR_BR; break; case (CAN_ESR_LEC_2 | CAN_ESR_LEC_0): /* Set CAN error code to Bit Dominant error */ errorcode |= HAL_CAN_ERROR_BD; break; case (CAN_ESR_LEC_2 | CAN_ESR_LEC_1): /* Set CAN error code to CRC error */ errorcode |= HAL_CAN_ERROR_CRC; break; default: break; } /* Clear Last error code Flag */ CLEAR_BIT(hcan->Instance->ESR, CAN_ESR_LEC); } } /* Clear ERRI Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_ERRI); } /* Call the Error call Back in case of Errors */ if (errorcode != HAL_CAN_ERROR_NONE) { /* Update error code in handle */ hcan->ErrorCode |= errorcode; /* Call Error callback function */ #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->ErrorCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_ErrorCallback(hcan); #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /** * @} */ /** @defgroup CAN_Exported_Functions_Group5 Callback functions * @brief CAN Callback functions * @verbatim ============================================================================== ##### Callback functions ##### ============================================================================== [..] This subsection provides the following callback functions: (+) HAL_CAN_TxMailbox0CompleteCallback (+) HAL_CAN_TxMailbox1CompleteCallback (+) HAL_CAN_TxMailbox2CompleteCallback (+) HAL_CAN_TxMailbox0AbortCallback (+) HAL_CAN_TxMailbox1AbortCallback (+) HAL_CAN_TxMailbox2AbortCallback (+) HAL_CAN_RxFifo0MsgPendingCallback (+) HAL_CAN_RxFifo0FullCallback (+) HAL_CAN_RxFifo1MsgPendingCallback (+) HAL_CAN_RxFifo1FullCallback (+) HAL_CAN_SleepCallback (+) HAL_CAN_WakeUpFromRxMsgCallback (+) HAL_CAN_ErrorCallback @endverbatim * @{ */ /** * @brief Transmission Mailbox 0 complete callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox0CompleteCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox0CompleteCallback could be implemented in the user file */ } /** * @brief Transmission Mailbox 1 complete callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox1CompleteCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox1CompleteCallback could be implemented in the user file */ } /** * @brief Transmission Mailbox 2 complete callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox2CompleteCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox2CompleteCallback could be implemented in the user file */ } /** * @brief Transmission Mailbox 0 Cancellation callback. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox0AbortCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox0AbortCallback could be implemented in the user file */ } /** * @brief Transmission Mailbox 1 Cancellation callback. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox1AbortCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox1AbortCallback could be implemented in the user file */ } /** * @brief Transmission Mailbox 2 Cancellation callback. * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox2AbortCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox2AbortCallback could be implemented in the user file */ } /** * @brief Rx FIFO 0 message pending callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo0MsgPendingCallback could be implemented in the user file */ } /** * @brief Rx FIFO 0 full callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo0FullCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo0FullCallback could be implemented in the user file */ } /** * @brief Rx FIFO 1 message pending callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo1MsgPendingCallback could be implemented in the user file */ } /** * @brief Rx FIFO 1 full callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo1FullCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo1FullCallback could be implemented in the user file */ } /** * @brief Sleep callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_SleepCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_SleepCallback could be implemented in the user file */ } /** * @brief WakeUp from Rx message callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_WakeUpFromRxMsgCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_WakeUpFromRxMsgCallback could be implemented in the user file */ } /** * @brief Error CAN callback. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan) { /* Prevent unused argument(s) compilation warning */ UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_ErrorCallback could be implemented in the user file */ } /** * @} */ /** @defgroup CAN_Exported_Functions_Group6 Peripheral State and Error functions * @brief CAN Peripheral State functions * @verbatim ============================================================================== ##### Peripheral State and Error functions ##### ============================================================================== [..] This subsection provides functions allowing to : (+) HAL_CAN_GetState() : Return the CAN state. (+) HAL_CAN_GetError() : Return the CAN error codes if any. (+) HAL_CAN_ResetError(): Reset the CAN error codes if any. @endverbatim * @{ */ /** * @brief Return the CAN state. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL state */ HAL_CAN_StateTypeDef HAL_CAN_GetState(CAN_HandleTypeDef *hcan) { HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Check sleep mode acknowledge flag */ if ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) { /* Sleep mode is active */ state = HAL_CAN_STATE_SLEEP_ACTIVE; } /* Check sleep mode request flag */ else if ((hcan->Instance->MCR & CAN_MCR_SLEEP) != 0U) { /* Sleep mode request is pending */ state = HAL_CAN_STATE_SLEEP_PENDING; } else { /* Neither sleep mode request nor sleep mode acknowledge */ } } /* Return CAN state */ return state; } /** * @brief Return the CAN error code. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval CAN Error Code */ uint32_t HAL_CAN_GetError(CAN_HandleTypeDef *hcan) { /* Return CAN error code */ return hcan->ErrorCode; } /** * @brief Reset the CAN error code. * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_ResetError(CAN_HandleTypeDef *hcan) { HAL_StatusTypeDef status = HAL_OK; HAL_CAN_StateTypeDef state = hcan->State; if ((state == HAL_CAN_STATE_READY) || (state == HAL_CAN_STATE_LISTENING)) { /* Reset CAN error code */ hcan->ErrorCode = 0U; } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; status = HAL_ERROR; } /* Return the status */ return status; } /** * @} */ /** * @} */ #endif /* HAL_CAN_MODULE_ENABLED */ /** * @} */ #endif /* CAN1 */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_cortex.c * @author MCD Application Team * @brief CORTEX HAL module driver. * This file provides firmware functions to manage the following * functionalities of the CORTEX: * + Initialization and de-initialization functions * + Peripheral Control functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] *** How to configure Interrupts using CORTEX HAL driver *** =========================================================== [..] This section provides functions allowing to configure the NVIC interrupts (IRQ). The Cortex-M4 exceptions are managed by CMSIS functions. (#) Configure the NVIC Priority Grouping using HAL_NVIC_SetPriorityGrouping() function according to the following table. (#) Configure the priority of the selected IRQ Channels using HAL_NVIC_SetPriority(). (#) Enable the selected IRQ Channels using HAL_NVIC_EnableIRQ(). (#) please refer to programming manual for details in how to configure priority. -@- When the NVIC_PRIORITYGROUP_0 is selected, IRQ preemption is no more possible. The pending IRQ priority will be managed only by the sub priority. -@- IRQ priority order (sorted by highest to lowest priority): (+@) Lowest preemption priority (+@) Lowest sub priority (+@) Lowest hardware priority (IRQ number) [..] *** How to configure Systick using CORTEX HAL driver *** ======================================================== [..] Setup SysTick Timer for time base. (+) The HAL_SYSTICK_Config() function calls the SysTick_Config() function which is a CMSIS function that: (++) Configures the SysTick Reload register with value passed as function parameter. (++) Configures the SysTick IRQ priority to the lowest value 0x0F. (++) Resets the SysTick Counter register. (++) Configures the SysTick Counter clock source to be Core Clock Source (HCLK). (++) Enables the SysTick Interrupt. (++) Starts the SysTick Counter. (+) You can change the SysTick Clock source to be HCLK_Div8 by calling the macro __HAL_CORTEX_SYSTICKCLK_CONFIG(SYSTICK_CLKSOURCE_HCLK_DIV8) just after the HAL_SYSTICK_Config() function call. The __HAL_CORTEX_SYSTICKCLK_CONFIG() macro is defined inside the stm32f4xx_hal_cortex.h file. (+) You can change the SysTick IRQ priority by calling the HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the HAL_SYSTICK_Config() function call. The HAL_NVIC_SetPriority() call the NVIC_SetPriority() function which is a CMSIS function. (+) To adjust the SysTick time base, use the following formula: Reload Value = SysTick Counter Clock (Hz) x Desired Time base (s) (++) Reload Value is the parameter to be passed for HAL_SYSTICK_Config() function (++) Reload Value should not exceed 0xFFFFFF @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup CORTEX CORTEX * @brief CORTEX HAL module driver * @{ */ #ifdef HAL_CORTEX_MODULE_ENABLED /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup CORTEX_Exported_Functions CORTEX Exported Functions * @{ */ /** @defgroup CORTEX_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim ============================================================================== ##### Initialization and de-initialization functions ##### ============================================================================== [..] This section provides the CORTEX HAL driver functions allowing to configure Interrupts Systick functionalities @endverbatim * @{ */ /** * @brief Sets the priority grouping field (preemption priority and subpriority) * using the required unlock sequence. * @param PriorityGroup The priority grouping bits length. * This parameter can be one of the following values: * @arg NVIC_PRIORITYGROUP_0: 0 bits for preemption priority * 4 bits for subpriority * @arg NVIC_PRIORITYGROUP_1: 1 bits for preemption priority * 3 bits for subpriority * @arg NVIC_PRIORITYGROUP_2: 2 bits for preemption priority * 2 bits for subpriority * @arg NVIC_PRIORITYGROUP_3: 3 bits for preemption priority * 1 bits for subpriority * @arg NVIC_PRIORITYGROUP_4: 4 bits for preemption priority * 0 bits for subpriority * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); } /** * @brief Sets the priority of an interrupt. * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @param PreemptPriority The preemption priority for the IRQn channel. * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority * @param SubPriority the subpriority level for the IRQ channel. * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t prioritygroup = 0x00U; /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); } /** * @brief Enables a device specific interrupt in the NVIC interrupt controller. * @note To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() * function should be called before. * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); } /** * @brief Disables a device specific interrupt in the NVIC interrupt controller. * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval None */ void HAL_NVIC_DisableIRQ(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Disable interrupt */ NVIC_DisableIRQ(IRQn); } /** * @brief Initiates a system reset request to reset the MCU. * @retval None */ void HAL_NVIC_SystemReset(void) { /* System Reset */ NVIC_SystemReset(); } /** * @brief Initializes the System Timer and its interrupt, and starts the System Tick Timer. * Counter is in free running mode to generate periodic interrupts. * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { return SysTick_Config(TicksNumb); } /** * @} */ /** @defgroup CORTEX_Exported_Functions_Group2 Peripheral Control functions * @brief Cortex control functions * @verbatim ============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to control the CORTEX (NVIC, SYSTICK, MPU) functionalities. @endverbatim * @{ */ #if (__MPU_PRESENT == 1U) /** * @brief Disables the MPU * @retval None */ void HAL_MPU_Disable(void) { /* Make sure outstanding transfers are done */ __DMB(); /* Disable fault exceptions */ SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; /* Disable the MPU and clear the control register*/ MPU->CTRL = 0U; } /** * @brief Enable the MPU. * @param MPU_Control Specifies the control mode of the MPU during hard fault, * NMI, FAULTMASK and privileged access to the default memory * This parameter can be one of the following values: * @arg MPU_HFNMI_PRIVDEF_NONE * @arg MPU_HARDFAULT_NMI * @arg MPU_PRIVILEGED_DEFAULT * @arg MPU_HFNMI_PRIVDEF * @retval None */ void HAL_MPU_Enable(uint32_t MPU_Control) { /* Enable the MPU */ MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; /* Enable fault exceptions */ SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; /* Ensure MPU setting take effects */ __DSB(); __ISB(); } /** * @brief Initializes and configures the Region and the memory to be protected. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains * the initialization and configuration information. * @retval None */ void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init) { /* Check the parameters */ assert_param(IS_MPU_REGION_NUMBER(MPU_Init->Number)); assert_param(IS_MPU_REGION_ENABLE(MPU_Init->Enable)); /* Set the Region number */ MPU->RNR = MPU_Init->Number; if ((MPU_Init->Enable) != RESET) { /* Check the parameters */ assert_param(IS_MPU_INSTRUCTION_ACCESS(MPU_Init->DisableExec)); assert_param(IS_MPU_REGION_PERMISSION_ATTRIBUTE(MPU_Init->AccessPermission)); assert_param(IS_MPU_TEX_LEVEL(MPU_Init->TypeExtField)); assert_param(IS_MPU_ACCESS_SHAREABLE(MPU_Init->IsShareable)); assert_param(IS_MPU_ACCESS_CACHEABLE(MPU_Init->IsCacheable)); assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable)); assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable)); assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size)); MPU->RBAR = MPU_Init->BaseAddress; MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) | ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) | ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) | ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) | ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) | ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) | ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) | ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos); } else { MPU->RBAR = 0x00U; MPU->RASR = 0x00U; } } #endif /* __MPU_PRESENT */ /** * @brief Gets the priority grouping field from the NVIC Interrupt Controller. * @retval Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field) */ uint32_t HAL_NVIC_GetPriorityGrouping(void) { /* Get the PRIGROUP[10:8] field value */ return NVIC_GetPriorityGrouping(); } /** * @brief Gets the priority of an interrupt. * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @param PriorityGroup the priority grouping bits length. * This parameter can be one of the following values: * @arg NVIC_PRIORITYGROUP_0: 0 bits for preemption priority * 4 bits for subpriority * @arg NVIC_PRIORITYGROUP_1: 1 bits for preemption priority * 3 bits for subpriority * @arg NVIC_PRIORITYGROUP_2: 2 bits for preemption priority * 2 bits for subpriority * @arg NVIC_PRIORITYGROUP_3: 3 bits for preemption priority * 1 bits for subpriority * @arg NVIC_PRIORITYGROUP_4: 4 bits for preemption priority * 0 bits for subpriority * @param pPreemptPriority Pointer on the Preemptive priority value (starting from 0). * @param pSubPriority Pointer on the Subpriority value (starting from 0). * @retval None */ void HAL_NVIC_GetPriority(IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority) { /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Get priority for Cortex-M system or device specific interrupts */ NVIC_DecodePriority(NVIC_GetPriority(IRQn), PriorityGroup, pPreemptPriority, pSubPriority); } /** * @brief Sets Pending bit of an external interrupt. * @param IRQn External interrupt number * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval None */ void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Set interrupt pending */ NVIC_SetPendingIRQ(IRQn); } /** * @brief Gets Pending Interrupt (reads the pending register in the NVIC * and returns the pending bit for the specified interrupt). * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval status: - 0 Interrupt status is not pending. * - 1 Interrupt status is pending. */ uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Return 1 if pending else 0 */ return NVIC_GetPendingIRQ(IRQn); } /** * @brief Clears the pending bit of an external interrupt. * @param IRQn External interrupt number. * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval None */ void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Clear pending interrupt */ NVIC_ClearPendingIRQ(IRQn); } /** * @brief Gets active interrupt ( reads the active register in NVIC and returns the active bit). * @param IRQn External interrupt number * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) * @retval status: - 0 Interrupt status is not pending. * - 1 Interrupt status is pending. */ uint32_t HAL_NVIC_GetActive(IRQn_Type IRQn) { /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Return 1 if active else 0 */ return NVIC_GetActive(IRQn); } /** * @brief Configures the SysTick clock source. * @param CLKSource specifies the SysTick clock source. * This parameter can be one of the following values: * @arg SYSTICK_CLKSOURCE_HCLK_DIV8: AHB clock divided by 8 selected as SysTick clock source. * @arg SYSTICK_CLKSOURCE_HCLK: AHB clock selected as SysTick clock source. * @retval None */ void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource) { /* Check the parameters */ assert_param(IS_SYSTICK_CLK_SOURCE(CLKSource)); if (CLKSource == SYSTICK_CLKSOURCE_HCLK) { SysTick->CTRL |= SYSTICK_CLKSOURCE_HCLK; } else { SysTick->CTRL &= ~SYSTICK_CLKSOURCE_HCLK; } } /** * @brief This function handles SYSTICK interrupt request. * @retval None */ void HAL_SYSTICK_IRQHandler(void) { HAL_SYSTICK_Callback(); } /** * @brief SYSTICK callback. * @retval None */ __weak void HAL_SYSTICK_Callback(void) { /* NOTE : This function Should not be modified, when the callback is needed, the HAL_SYSTICK_Callback could be implemented in the user file */ } /** * @} */ /** * @} */ #endif /* HAL_CORTEX_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_dma.c * @author MCD Application Team * @brief DMA HAL module driver. * * This file provides firmware functions to manage the following * functionalities of the Direct Memory Access (DMA) peripheral: * + Initialization and de-initialization functions * + IO operation functions * + Peripheral State and errors functions @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#) Enable and configure the peripheral to be connected to the DMA Stream (except for internal SRAM/FLASH memories: no initialization is necessary) please refer to Reference manual for connection between peripherals and DMA requests. (#) For a given Stream, program the required configuration through the following parameters: Transfer Direction, Source and Destination data formats, Circular, Normal or peripheral flow control mode, Stream Priority level, Source and Destination Increment mode, FIFO mode and its Threshold (if needed), Burst mode for Source and/or Destination (if needed) using HAL_DMA_Init() function. -@- Prior to HAL_DMA_Init() the clock must be enabled for DMA through the following macros: __HAL_RCC_DMA1_CLK_ENABLE() or __HAL_RCC_DMA2_CLK_ENABLE(). *** Polling mode IO operation *** ================================= [..] (+) Use HAL_DMA_Start() to start DMA transfer after the configuration of Source address and destination address and the Length of data to be transferred. (+) Use HAL_DMA_PollForTransfer() to poll for the end of current transfer, in this case a fixed Timeout can be configured by User depending from his application. (+) Use HAL_DMA_Abort() function to abort the current transfer. *** Interrupt mode IO operation *** =================================== [..] (+) Configure the DMA interrupt priority using HAL_NVIC_SetPriority() (+) Enable the DMA IRQ handler using HAL_NVIC_EnableIRQ() (+) Use HAL_DMA_Start_IT() to start DMA transfer after the configuration of Source address and destination address and the Length of data to be transferred. In this case the DMA interrupt is configured (+) Use HAL_DMA_IRQHandler() called under DMA_IRQHandler() Interrupt subroutine (+) At the end of data transfer HAL_DMA_IRQHandler() function is executed and user can add his own function by customization of function pointer XferCpltCallback and XferErrorCallback (i.e a member of DMA handle structure). [..] (#) Use HAL_DMA_GetState() function to return the DMA state and HAL_DMA_GetError() in case of error detection. (#) Use HAL_DMA_Abort_IT() function to abort the current transfer -@- In Memory-to-Memory transfer mode, Circular mode is not allowed. -@- The FIFO is used mainly to reduce bus usage and to allow data packing/unpacking: it is possible to set different Data Sizes for the Peripheral and the Memory (ie. you can set Half-Word data size for the peripheral to access its data register and set Word data size for the Memory to gain in access time. Each two half words will be packed and written in a single access to a Word in the Memory). -@- When FIFO is disabled, it is not allowed to configure different Data Sizes for Source and Destination. In this case the Peripheral Data Size will be applied to both Source and Destination. *** DMA HAL driver macros list *** ============================================= [..] Below the list of most used macros in DMA HAL driver. (+) __HAL_DMA_ENABLE: Enable the specified DMA Stream. (+) __HAL_DMA_DISABLE: Disable the specified DMA Stream. (+) __HAL_DMA_GET_IT_SOURCE: Check whether the specified DMA Stream interrupt has occurred or not. [..] (@) You can refer to the DMA HAL driver header file for more useful macros @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup DMA DMA * @brief DMA HAL module driver * @{ */ #ifdef HAL_DMA_MODULE_ENABLED /* Private types -------------------------------------------------------------*/ typedef struct { __IO uint32_t ISR; /*!< DMA interrupt status register */ __IO uint32_t Reserved0; __IO uint32_t IFCR; /*!< DMA interrupt flag clear register */ } DMA_Base_Registers; /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @addtogroup DMA_Private_Constants * @{ */ #define HAL_TIMEOUT_DMA_ABORT 5U /* 5 ms */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @addtogroup DMA_Private_Functions * @{ */ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); /** * @} */ /* Exported functions ---------------------------------------------------------*/ /** @addtogroup DMA_Exported_Functions * @{ */ /** @addtogroup DMA_Exported_Functions_Group1 * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to initialize the DMA Stream source and destination addresses, incrementation and data sizes, transfer direction, circular/normal mode selection, memory-to-memory mode selection and Stream priority value. [..] The HAL_DMA_Init() function follows the DMA configuration procedures as described in reference manual. @endverbatim * @{ */ /** * @brief Initialize the DMA according to the specified * parameters in the DMA_InitTypeDef and create the associated handle. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) { uint32_t tmp = 0U; uint32_t tickstart = HAL_GetTick(); DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); assert_param(IS_DMA_CHANNEL(hdma->Init.Channel)); assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); assert_param(IS_DMA_MODE(hdma->Init.Mode)); assert_param(IS_DMA_PRIORITY(hdma->Init.Priority)); assert_param(IS_DMA_FIFO_MODE_STATE(hdma->Init.FIFOMode)); /* Check the memory burst, peripheral burst and FIFO threshold parameters only when FIFO mode is enabled */ if(hdma->Init.FIFOMode != DMA_FIFOMODE_DISABLE) { assert_param(IS_DMA_FIFO_THRESHOLD(hdma->Init.FIFOThreshold)); assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst)); assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst)); } /* Allocate lock resource */ __HAL_UNLOCK(hdma); /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; return HAL_TIMEOUT; } } /* Get the CR register value */ tmp = hdma->Instance->CR; /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */ tmp &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \ DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \ DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM)); /* Prepare the DMA Stream configuration */ tmp |= hdma->Init.Channel | hdma->Init.Direction | hdma->Init.PeriphInc | hdma->Init.MemInc | hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | hdma->Init.Mode | hdma->Init.Priority; /* the Memory burst and peripheral burst are not used when the FIFO is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) { /* Get memory burst and peripheral burst */ tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; } /* Write to DMA Stream CR register */ hdma->Instance->CR = tmp; /* Get the FCR register value */ tmp = hdma->Instance->FCR; /* Clear Direct mode and FIFO threshold bits */ tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); /* Prepare the DMA Stream FIFO configuration */ tmp |= hdma->Init.FIFOMode; /* The FIFO threshold is not used when the FIFO mode is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) { /* Get the FIFO threshold */ tmp |= hdma->Init.FIFOThreshold; /* Check compatibility between FIFO threshold level and size of the memory burst */ /* for INCR4, INCR8, INCR16 bursts */ if (hdma->Init.MemBurst != DMA_MBURST_SINGLE) { if (DMA_CheckFifoParam(hdma) != HAL_OK) { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_PARAM; /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; return HAL_ERROR; } } } /* Write to DMA Stream FCR */ hdma->Instance->FCR = tmp; /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); /* Clear all interrupt flags */ regs->IFCR = 0x3FU << hdma->StreamIndex; /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; /* Initialize the DMA state */ hdma->State = HAL_DMA_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the DMA peripheral * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) { DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) { return HAL_ERROR; } /* Check the DMA peripheral state */ if(hdma->State == HAL_DMA_STATE_BUSY) { /* Return error status */ return HAL_BUSY; } /* Check the parameters */ assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); /* Disable the selected DMA Streamx */ __HAL_DMA_DISABLE(hdma); /* Reset DMA Streamx control register */ hdma->Instance->CR = 0U; /* Reset DMA Streamx number of data to transfer register */ hdma->Instance->NDTR = 0U; /* Reset DMA Streamx peripheral address register */ hdma->Instance->PAR = 0U; /* Reset DMA Streamx memory 0 address register */ hdma->Instance->M0AR = 0U; /* Reset DMA Streamx memory 1 address register */ hdma->Instance->M1AR = 0U; /* Reset DMA Streamx FIFO control register */ hdma->Instance->FCR = 0x00000021U; /* Get DMA steam Base Address */ regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); /* Clean all callbacks */ hdma->XferCpltCallback = NULL; hdma->XferHalfCpltCallback = NULL; hdma->XferM1CpltCallback = NULL; hdma->XferM1HalfCpltCallback = NULL; hdma->XferErrorCallback = NULL; hdma->XferAbortCallback = NULL; /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; /* Reset the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; /* Reset the DMA state */ hdma->State = HAL_DMA_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(hdma); return HAL_OK; } /** * @} */ /** @addtogroup DMA_Exported_Functions_Group2 * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure the source, destination address and data length and Start DMA transfer (+) Configure the source, destination address and data length and Start DMA transfer with interrupt (+) Abort DMA transfer (+) Poll for transfer complete (+) Handle DMA interrupt request @endverbatim * @{ */ /** * @brief Starts the DMA Transfer. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Start(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; /* Configure the source, destination address and the data length */ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); } else { /* Process unlocked */ __HAL_UNLOCK(hdma); /* Return error status */ status = HAL_BUSY; } return status; } /** * @brief Start the DMA Transfer with interrupt enabled. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { HAL_StatusTypeDef status = HAL_OK; /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; /* Configure the source, destination address and the data length */ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; /* Enable Common interrupts*/ hdma->Instance->CR |= DMA_IT_TC | DMA_IT_TE | DMA_IT_DME; if(hdma->XferHalfCpltCallback != NULL) { hdma->Instance->CR |= DMA_IT_HT; } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); } else { /* Process unlocked */ __HAL_UNLOCK(hdma); /* Return error status */ status = HAL_BUSY; } return status; } /** * @brief Aborts the DMA Transfer. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * * @note After disabling a DMA Stream, a check for wait until the DMA Stream is * effectively disabled is added. If a Stream is disabled * while a data transfer is ongoing, the current data will be transferred * and the Stream will be effectively disabled only after the transfer of * this single data is finished. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; uint32_t tickstart = HAL_GetTick(); if(hdma->State != HAL_DMA_STATE_BUSY) { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; /* Process Unlocked */ __HAL_UNLOCK(hdma); return HAL_ERROR; } else { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); hdma->Instance->FCR &= ~(DMA_IT_FE); if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) { hdma->Instance->CR &= ~(DMA_IT_HT); } /* Disable the stream */ __HAL_DMA_DISABLE(hdma); /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; return HAL_TIMEOUT; } } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state*/ hdma->State = HAL_DMA_STATE_READY; } return HAL_OK; } /** * @brief Aborts the DMA Transfer in Interrupt mode. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { if(hdma->State != HAL_DMA_STATE_BUSY) { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; return HAL_ERROR; } else { /* Set Abort State */ hdma->State = HAL_DMA_STATE_ABORT; /* Disable the stream */ __HAL_DMA_DISABLE(hdma); } return HAL_OK; } /** * @brief Polling for transfer complete. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param CompleteLevel Specifies the DMA level complete. * @note The polling mode is kept in this version for legacy. it is recommanded to use the IT model instead. * This model could be used for debug purpose. * @note The HAL_DMA_PollForTransfer API cannot be used in circular and double buffering mode (automatic circular mode). * @param Timeout Timeout duration. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout) { HAL_StatusTypeDef status = HAL_OK; uint32_t mask_cpltlevel; uint32_t tickstart = HAL_GetTick(); uint32_t tmpisr; /* calculate DMA base and stream number */ DMA_Base_Registers *regs; if(HAL_DMA_STATE_BUSY != hdma->State) { /* No transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; __HAL_UNLOCK(hdma); return HAL_ERROR; } /* Polling mode not supported in circular mode and double buffering mode */ if ((hdma->Instance->CR & DMA_SxCR_CIRC) != RESET) { hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; return HAL_ERROR; } /* Get the level transfer complete flag */ if(CompleteLevel == HAL_DMA_FULL_TRANSFER) { /* Transfer Complete flag */ mask_cpltlevel = DMA_FLAG_TCIF0_4 << hdma->StreamIndex; } else { /* Half Transfer Complete flag */ mask_cpltlevel = DMA_FLAG_HTIF0_4 << hdma->StreamIndex; } regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; tmpisr = regs->ISR; while(((tmpisr & mask_cpltlevel) == RESET) && ((hdma->ErrorCode & HAL_DMA_ERROR_TE) == RESET)) { /* Check for the Timeout (Not applicable in circular mode)*/ if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; return HAL_TIMEOUT; } } /* Get the ISR register value */ tmpisr = regs->ISR; if((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET) { /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_TE; /* Clear the transfer error flag */ regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex; } if((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET) { /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_FE; /* Clear the FIFO error flag */ regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex; } if((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET) { /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_DME; /* Clear the Direct Mode error flag */ regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; } } if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) { if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET) { HAL_DMA_Abort(hdma); /* Clear the half transfer and transfer complete flags */ regs->IFCR = (DMA_FLAG_HTIF0_4 | DMA_FLAG_TCIF0_4) << hdma->StreamIndex; /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State= HAL_DMA_STATE_READY; return HAL_ERROR; } } /* Get the level transfer complete flag */ if(CompleteLevel == HAL_DMA_FULL_TRANSFER) { /* Clear the half transfer and transfer complete flags */ regs->IFCR = (DMA_FLAG_HTIF0_4 | DMA_FLAG_TCIF0_4) << hdma->StreamIndex; /* Process Unlocked */ __HAL_UNLOCK(hdma); hdma->State = HAL_DMA_STATE_READY; } else { /* Clear the half transfer and transfer complete flags */ regs->IFCR = (DMA_FLAG_HTIF0_4) << hdma->StreamIndex; } return status; } /** * @brief Handles DMA interrupt request. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval None */ void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) { uint32_t tmpisr; __IO uint32_t count = 0U; uint32_t timeout = SystemCoreClock / 9600U; /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; tmpisr = regs->ISR; /* Transfer Error Interrupt management ***************************************/ if ((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET) { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != RESET) { /* Disable the transfer error interrupt */ hdma->Instance->CR &= ~(DMA_IT_TE); /* Clear the transfer error flag */ regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex; /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_TE; } } /* FIFO Error Interrupt management ******************************************/ if ((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET) { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != RESET) { /* Clear the FIFO error flag */ regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex; /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_FE; } } /* Direct Mode Error Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET) { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != RESET) { /* Clear the direct mode error flag */ regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_DME; } } /* Half Transfer Complete Interrupt management ******************************/ if ((tmpisr & (DMA_FLAG_HTIF0_4 << hdma->StreamIndex)) != RESET) { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != RESET) { /* Clear the half transfer complete flag */ regs->IFCR = DMA_FLAG_HTIF0_4 << hdma->StreamIndex; /* Multi_Buffering mode enabled */ if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) { if(hdma->XferHalfCpltCallback != NULL) { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferM1HalfCpltCallback != NULL) { /* Half transfer callback */ hdma->XferM1HalfCpltCallback(hdma); } } } else { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) { /* Disable the half transfer interrupt */ hdma->Instance->CR &= ~(DMA_IT_HT); } if(hdma->XferHalfCpltCallback != NULL) { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); } } } } /* Transfer Complete Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_TCIF0_4 << hdma->StreamIndex)) != RESET) { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != RESET) { /* Clear the transfer complete flag */ regs->IFCR = DMA_FLAG_TCIF0_4 << hdma->StreamIndex; if(HAL_DMA_STATE_ABORT == hdma->State) { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); hdma->Instance->FCR &= ~(DMA_IT_FE); if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) { hdma->Instance->CR &= ~(DMA_IT_HT); } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; if(hdma->XferAbortCallback != NULL) { hdma->XferAbortCallback(hdma); } return; } if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) { if(hdma->XferM1CpltCallback != NULL) { /* Transfer complete Callback for memory1 */ hdma->XferM1CpltCallback(hdma); } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferCpltCallback != NULL) { /* Transfer complete Callback for memory0 */ hdma->XferCpltCallback(hdma); } } } /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ else { if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) { /* Disable the transfer complete interrupt */ hdma->Instance->CR &= ~(DMA_IT_TC); /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; } if(hdma->XferCpltCallback != NULL) { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); } } } } /* manage error case */ if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) { if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET) { hdma->State = HAL_DMA_STATE_ABORT; /* Disable the stream */ __HAL_DMA_DISABLE(hdma); do { if (++count > timeout) { break; } } while((hdma->Instance->CR & DMA_SxCR_EN) != RESET); /* Process Unlocked */ __HAL_UNLOCK(hdma); /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; } if(hdma->XferErrorCallback != NULL) { /* Transfer error callback */ hdma->XferErrorCallback(hdma); } } } /** * @brief Register callbacks * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param CallbackID User Callback identifer * a DMA_HandleTypeDef structure as parameter. * @param pCallback pointer to private callbacsk function which has pointer to * a DMA_HandleTypeDef structure as parameter. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma)) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { switch (CallbackID) { case HAL_DMA_XFER_CPLT_CB_ID: hdma->XferCpltCallback = pCallback; break; case HAL_DMA_XFER_HALFCPLT_CB_ID: hdma->XferHalfCpltCallback = pCallback; break; case HAL_DMA_XFER_M1CPLT_CB_ID: hdma->XferM1CpltCallback = pCallback; break; case HAL_DMA_XFER_M1HALFCPLT_CB_ID: hdma->XferM1HalfCpltCallback = pCallback; break; case HAL_DMA_XFER_ERROR_CB_ID: hdma->XferErrorCallback = pCallback; break; case HAL_DMA_XFER_ABORT_CB_ID: hdma->XferAbortCallback = pCallback; break; default: break; } } else { /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hdma); return status; } /** * @brief UnRegister callbacks * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param CallbackID User Callback identifer * a HAL_DMA_CallbackIDTypeDef ENUM as parameter. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { switch (CallbackID) { case HAL_DMA_XFER_CPLT_CB_ID: hdma->XferCpltCallback = NULL; break; case HAL_DMA_XFER_HALFCPLT_CB_ID: hdma->XferHalfCpltCallback = NULL; break; case HAL_DMA_XFER_M1CPLT_CB_ID: hdma->XferM1CpltCallback = NULL; break; case HAL_DMA_XFER_M1HALFCPLT_CB_ID: hdma->XferM1HalfCpltCallback = NULL; break; case HAL_DMA_XFER_ERROR_CB_ID: hdma->XferErrorCallback = NULL; break; case HAL_DMA_XFER_ABORT_CB_ID: hdma->XferAbortCallback = NULL; break; case HAL_DMA_XFER_ALL_CB_ID: hdma->XferCpltCallback = NULL; hdma->XferHalfCpltCallback = NULL; hdma->XferM1CpltCallback = NULL; hdma->XferM1HalfCpltCallback = NULL; hdma->XferErrorCallback = NULL; hdma->XferAbortCallback = NULL; break; default: status = HAL_ERROR; break; } } else { status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hdma); return status; } /** * @} */ /** @addtogroup DMA_Exported_Functions_Group3 * @verbatim =============================================================================== ##### State and Errors functions ##### =============================================================================== [..] This subsection provides functions allowing to (+) Check the DMA state (+) Get error code @endverbatim * @{ */ /** * @brief Returns the DMA state. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL state */ HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma) { return hdma->State; } /** * @brief Return the DMA error code * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval DMA Error Code */ uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma) { return hdma->ErrorCode; } /** * @} */ /** * @} */ /** @addtogroup DMA_Private_Functions * @{ */ /** * @brief Sets the DMA Transfer parameter. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { /* Clear DBM bit */ hdma->Instance->CR &= (uint32_t)(~DMA_SxCR_DBM); /* Configure DMA Stream data length */ hdma->Instance->NDTR = DataLength; /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) { /* Configure DMA Stream destination address */ hdma->Instance->PAR = DstAddress; /* Configure DMA Stream source address */ hdma->Instance->M0AR = SrcAddress; } /* Peripheral to Memory */ else { /* Configure DMA Stream source address */ hdma->Instance->PAR = SrcAddress; /* Configure DMA Stream destination address */ hdma->Instance->M0AR = DstAddress; } } /** * @brief Returns the DMA Stream base address depending on stream number * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval Stream base address */ static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) { uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; /* lookup table for necessary bitshift of flags within status registers */ static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U}; hdma->StreamIndex = flagBitshiftOffset[stream_number]; if (stream_number > 3U) { /* return pointer to HISR and HIFCR */ hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U); } else { /* return pointer to LISR and LIFCR */ hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)); } return hdma->StreamBaseAddress; } /** * @brief Check compatibility between FIFO threshold level and size of the memory burst * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma) { HAL_StatusTypeDef status = HAL_OK; uint32_t tmp = hdma->Init.FIFOThreshold; /* Memory Data size equal to Byte */ if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) { switch (tmp) { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) { status = HAL_ERROR; } break; case DMA_FIFO_THRESHOLD_HALFFULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) { status = HAL_ERROR; } break; case DMA_FIFO_THRESHOLD_FULL: break; default: break; } } /* Memory Data size equal to Half-Word */ else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) { switch (tmp) { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: status = HAL_ERROR; break; case DMA_FIFO_THRESHOLD_HALFFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) { status = HAL_ERROR; } break; case DMA_FIFO_THRESHOLD_FULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) { status = HAL_ERROR; } break; default: break; } } /* Memory Data size equal to Word */ else { switch (tmp) { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_HALFFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: status = HAL_ERROR; break; case DMA_FIFO_THRESHOLD_FULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) { status = HAL_ERROR; } break; default: break; } } return status; } /** * @} */ #endif /* HAL_DMA_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_dma_ex.c * @author MCD Application Team * @brief DMA Extension HAL module driver * This file provides firmware functions to manage the following * functionalities of the DMA Extension peripheral: * + Extended features functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The DMA Extension HAL driver can be used as follows: (#) Start a multi buffer transfer using the HAL_DMA_MultiBufferStart() function for polling mode or HAL_DMA_MultiBufferStart_IT() for interrupt mode. -@- In Memory-to-Memory transfer mode, Multi (Double) Buffer mode is not allowed. -@- When Multi (Double) Buffer mode is enabled the, transfer is circular by default. -@- In Multi (Double) buffer mode, it is possible to update the base address for the AHB memory port on the fly (DMA_SxM0AR or DMA_SxM1AR) when the stream is enabled. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup DMAEx DMAEx * @brief DMA Extended HAL module driver * @{ */ #ifdef HAL_DMA_MODULE_ENABLED /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private Constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @addtogroup DMAEx_Private_Functions * @{ */ static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); /** * @} */ /* Exported functions ---------------------------------------------------------*/ /** @addtogroup DMAEx_Exported_Functions * @{ */ /** @addtogroup DMAEx_Exported_Functions_Group1 * @verbatim =============================================================================== ##### Extended features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure the source, destination address and data length and Start MultiBuffer DMA transfer (+) Configure the source, destination address and data length and Start MultiBuffer DMA transfer with interrupt (+) Change on the fly the memory0 or memory1 address. @endverbatim * @{ */ /** * @brief Starts the multi_buffer DMA Transfer. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param SecondMemAddress The second memory Buffer address in case of multi buffer Transfer * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Memory-to-memory transfer not supported in double buffering mode */ if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) { hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; status = HAL_ERROR; } else { /* Process Locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; /* Enable the double buffer mode */ hdma->Instance->CR |= (uint32_t)DMA_SxCR_DBM; /* Configure DMA Stream destination address */ hdma->Instance->M1AR = SecondMemAddress; /* Configure the source, destination address and the data length */ DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); /* Enable the peripheral */ __HAL_DMA_ENABLE(hdma); } else { /* Return error status */ status = HAL_BUSY; } } return status; } /** * @brief Starts the multi_buffer DMA Transfer with interrupt enabled. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param SecondMemAddress The second memory Buffer address in case of multi buffer Transfer * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Memory-to-memory transfer not supported in double buffering mode */ if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) { hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; return HAL_ERROR; } /* Check callback functions */ if ((NULL == hdma->XferCpltCallback) || (NULL == hdma->XferM1CpltCallback) || (NULL == hdma->XferErrorCallback)) { hdma->ErrorCode = HAL_DMA_ERROR_PARAM; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hdma); if(HAL_DMA_STATE_READY == hdma->State) { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; /* Enable the Double buffer mode */ hdma->Instance->CR |= (uint32_t)DMA_SxCR_DBM; /* Configure DMA Stream destination address */ hdma->Instance->M1AR = SecondMemAddress; /* Configure the source, destination address and the data length */ DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); /* Clear all flags */ __HAL_DMA_CLEAR_FLAG (hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma)); __HAL_DMA_CLEAR_FLAG (hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma)); __HAL_DMA_CLEAR_FLAG (hdma, __HAL_DMA_GET_TE_FLAG_INDEX(hdma)); __HAL_DMA_CLEAR_FLAG (hdma, __HAL_DMA_GET_DME_FLAG_INDEX(hdma)); __HAL_DMA_CLEAR_FLAG (hdma, __HAL_DMA_GET_FE_FLAG_INDEX(hdma)); /* Enable Common interrupts*/ hdma->Instance->CR |= DMA_IT_TC | DMA_IT_TE | DMA_IT_DME; hdma->Instance->FCR |= DMA_IT_FE; if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) { hdma->Instance->CR |= DMA_IT_HT; } /* Enable the peripheral */ __HAL_DMA_ENABLE(hdma); } else { /* Process unlocked */ __HAL_UNLOCK(hdma); /* Return error status */ status = HAL_BUSY; } return status; } /** * @brief Change the memory0 or memory1 address on the fly. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param Address The new address * @param memory the memory to be changed, This parameter can be one of * the following values: * MEMORY0 / * MEMORY1 * @note The MEMORY0 address can be changed only when the current transfer use * MEMORY1 and the MEMORY1 address can be changed only when the current * transfer use MEMORY0. * @retval HAL status */ HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory) { if(memory == MEMORY0) { /* change the memory0 address */ hdma->Instance->M0AR = Address; } else { /* change the memory1 address */ hdma->Instance->M1AR = Address; } return HAL_OK; } /** * @} */ /** * @} */ /** @addtogroup DMAEx_Private_Functions * @{ */ /** * @brief Set the DMA Transfer parameter. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @param SrcAddress The source memory Buffer address * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { /* Configure DMA Stream data length */ hdma->Instance->NDTR = DataLength; /* Peripheral to Memory */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) { /* Configure DMA Stream destination address */ hdma->Instance->PAR = DstAddress; /* Configure DMA Stream source address */ hdma->Instance->M0AR = SrcAddress; } /* Memory to Peripheral */ else { /* Configure DMA Stream source address */ hdma->Instance->PAR = SrcAddress; /* Configure DMA Stream destination address */ hdma->Instance->M0AR = DstAddress; } } /** * @} */ #endif /* HAL_DMA_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_exti.c * @author MCD Application Team * @brief EXTI HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Extended Interrupts and events controller (EXTI) peripheral: * + Initialization and de-initialization functions * + IO operation functions * @verbatim ============================================================================== ##### EXTI Peripheral features ##### ============================================================================== [..] (+) Each Exti line can be configured within this driver. (+) Exti line can be configured in 3 different modes (++) Interrupt (++) Event (++) Both of them (+) Configurable Exti lines can be configured with 3 different triggers (++) Rising (++) Falling (++) Both of them (+) When set in interrupt mode, configurable Exti lines have two different interrupts pending registers which allow to distinguish which transition occurs: (++) Rising edge pending interrupt (++) Falling (+) Exti lines 0 to 15 are linked to gpio pin number 0 to 15. Gpio port can be selected through multiplexer. ##### How to use this driver ##### ============================================================================== [..] (#) Configure the EXTI line using HAL_EXTI_SetConfigLine(). (++) Choose the interrupt line number by setting "Line" member from EXTI_ConfigTypeDef structure. (++) Configure the interrupt and/or event mode using "Mode" member from EXTI_ConfigTypeDef structure. (++) For configurable lines, configure rising and/or falling trigger "Trigger" member from EXTI_ConfigTypeDef structure. (++) For Exti lines linked to gpio, choose gpio port using "GPIOSel" member from GPIO_InitTypeDef structure. (#) Get current Exti configuration of a dedicated line using HAL_EXTI_GetConfigLine(). (++) Provide exiting handle as parameter. (++) Provide pointer on EXTI_ConfigTypeDef structure as second parameter. (#) Clear Exti configuration of a dedicated line using HAL_EXTI_GetConfigLine(). (++) Provide exiting handle as parameter. (#) Register callback to treat Exti interrupts using HAL_EXTI_RegisterCallback(). (++) Provide exiting handle as first parameter. (++) Provide which callback will be registered using one value from EXTI_CallbackIDTypeDef. (++) Provide callback function pointer. (#) Get interrupt pending bit using HAL_EXTI_GetPending(). (#) Clear interrupt pending bit using HAL_EXTI_GetPending(). (#) Generate software interrupt using HAL_EXTI_GenerateSWI(). @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2018 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @addtogroup EXTI * @{ */ /** MISRA C:2012 deviation rule has been granted for following rule: * Rule-18.1_b - Medium: Array `EXTICR' 1st subscript interval [0,7] may be out * of bounds [0,3] in following API : * HAL_EXTI_SetConfigLine * HAL_EXTI_GetConfigLine * HAL_EXTI_ClearConfigLine */ #ifdef HAL_EXTI_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private defines -----------------------------------------------------------*/ /** @defgroup EXTI_Private_Constants EXTI Private Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup EXTI_Exported_Functions * @{ */ /** @addtogroup EXTI_Exported_Functions_Group1 * @brief Configuration functions * @verbatim =============================================================================== ##### Configuration functions ##### =============================================================================== @endverbatim * @{ */ /** * @brief Set configuration of a dedicated Exti line. * @param hexti Exti handle. * @param pExtiConfig Pointer on EXTI configuration to be set. * @retval HAL Status. */ HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig) { uint32_t regval; uint32_t linepos; uint32_t maskline; /* Check null pointer */ if ((hexti == NULL) || (pExtiConfig == NULL)) { return HAL_ERROR; } /* Check parameters */ assert_param(IS_EXTI_LINE(pExtiConfig->Line)); assert_param(IS_EXTI_MODE(pExtiConfig->Mode)); /* Assign line number to handle */ hexti->Line = pExtiConfig->Line; /* Compute line mask */ linepos = (pExtiConfig->Line & EXTI_PIN_MASK); maskline = (1uL << linepos); /* Configure triggers for configurable lines */ if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00u) { assert_param(IS_EXTI_TRIGGER(pExtiConfig->Trigger)); /* Configure rising trigger */ /* Mask or set line */ if ((pExtiConfig->Trigger & EXTI_TRIGGER_RISING) != 0x00u) { EXTI->RTSR |= maskline; } else { EXTI->RTSR &= ~maskline; } /* Configure falling trigger */ /* Mask or set line */ if ((pExtiConfig->Trigger & EXTI_TRIGGER_FALLING) != 0x00u) { EXTI->FTSR |= maskline; } else { EXTI->FTSR &= ~maskline; } /* Configure gpio port selection in case of gpio exti line */ if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO) { assert_param(IS_EXTI_GPIO_PORT(pExtiConfig->GPIOSel)); assert_param(IS_EXTI_GPIO_PIN(linepos)); regval = SYSCFG->EXTICR[linepos >> 2u]; regval &= ~(SYSCFG_EXTICR1_EXTI0 << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03u))); regval |= (pExtiConfig->GPIOSel << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03u))); SYSCFG->EXTICR[linepos >> 2u] = regval; } } /* Configure interrupt mode : read current mode */ /* Mask or set line */ if ((pExtiConfig->Mode & EXTI_MODE_INTERRUPT) != 0x00u) { EXTI->IMR |= maskline; } else { EXTI->IMR &= ~maskline; } /* Configure event mode : read current mode */ /* Mask or set line */ if ((pExtiConfig->Mode & EXTI_MODE_EVENT) != 0x00u) { EXTI->EMR |= maskline; } else { EXTI->EMR &= ~maskline; } return HAL_OK; } /** * @brief Get configuration of a dedicated Exti line. * @param hexti Exti handle. * @param pExtiConfig Pointer on structure to store Exti configuration. * @retval HAL Status. */ HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig) { uint32_t regval; uint32_t linepos; uint32_t maskline; /* Check null pointer */ if ((hexti == NULL) || (pExtiConfig == NULL)) { return HAL_ERROR; } /* Check the parameter */ assert_param(IS_EXTI_LINE(hexti->Line)); /* Store handle line number to configuration structure */ pExtiConfig->Line = hexti->Line; /* Compute line mask */ linepos = (pExtiConfig->Line & EXTI_PIN_MASK); maskline = (1uL << linepos); /* 1] Get core mode : interrupt */ /* Check if selected line is enable */ if ((EXTI->IMR & maskline) != 0x00u) { pExtiConfig->Mode = EXTI_MODE_INTERRUPT; } else { pExtiConfig->Mode = EXTI_MODE_NONE; } /* Get event mode */ /* Check if selected line is enable */ if ((EXTI->EMR & maskline) != 0x00u) { pExtiConfig->Mode |= EXTI_MODE_EVENT; } /* 2] Get trigger for configurable lines : rising */ if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00u) { /* Check if configuration of selected line is enable */ if ((EXTI->RTSR & maskline) != 0x00u) { pExtiConfig->Trigger = EXTI_TRIGGER_RISING; } else { pExtiConfig->Trigger = EXTI_TRIGGER_NONE; } /* Get falling configuration */ /* Check if configuration of selected line is enable */ if ((EXTI->FTSR & maskline) != 0x00u) { pExtiConfig->Trigger |= EXTI_TRIGGER_FALLING; } /* Get Gpio port selection for gpio lines */ if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO) { assert_param(IS_EXTI_GPIO_PIN(linepos)); regval = SYSCFG->EXTICR[linepos >> 2u]; pExtiConfig->GPIOSel = ((regval << (SYSCFG_EXTICR1_EXTI1_Pos * (3uL - (linepos & 0x03u)))) >> 24); } else { pExtiConfig->GPIOSel = 0x00u; } } else { /* No Trigger selected */ pExtiConfig->Trigger = EXTI_TRIGGER_NONE; pExtiConfig->GPIOSel = 0x00u; } return HAL_OK; } /** * @brief Clear whole configuration of a dedicated Exti line. * @param hexti Exti handle. * @retval HAL Status. */ HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti) { uint32_t regval; uint32_t linepos; uint32_t maskline; /* Check null pointer */ if (hexti == NULL) { return HAL_ERROR; } /* Check the parameter */ assert_param(IS_EXTI_LINE(hexti->Line)); /* compute line mask */ linepos = (hexti->Line & EXTI_PIN_MASK); maskline = (1uL << linepos); /* 1] Clear interrupt mode */ EXTI->IMR = (EXTI->IMR & ~maskline); /* 2] Clear event mode */ EXTI->EMR = (EXTI->EMR & ~maskline); /* 3] Clear triggers in case of configurable lines */ if ((hexti->Line & EXTI_CONFIG) != 0x00u) { EXTI->RTSR = (EXTI->RTSR & ~maskline); EXTI->FTSR = (EXTI->FTSR & ~maskline); /* Get Gpio port selection for gpio lines */ if ((hexti->Line & EXTI_GPIO) == EXTI_GPIO) { assert_param(IS_EXTI_GPIO_PIN(linepos)); regval = SYSCFG->EXTICR[linepos >> 2u]; regval &= ~(SYSCFG_EXTICR1_EXTI0 << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03u))); SYSCFG->EXTICR[linepos >> 2u] = regval; } } return HAL_OK; } /** * @brief Register callback for a dedicated Exti line. * @param hexti Exti handle. * @param CallbackID User callback identifier. * This parameter can be one of @arg @ref EXTI_CallbackIDTypeDef values. * @param pPendingCbfn function pointer to be stored as callback. * @retval HAL Status. */ HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef CallbackID, void (*pPendingCbfn)(void)) { HAL_StatusTypeDef status = HAL_OK; switch (CallbackID) { case HAL_EXTI_COMMON_CB_ID: hexti->PendingCallback = pPendingCbfn; break; default: status = HAL_ERROR; break; } return status; } /** * @brief Store line number as handle private field. * @param hexti Exti handle. * @param ExtiLine Exti line number. * This parameter can be from 0 to @ref EXTI_LINE_NB. * @retval HAL Status. */ HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine) { /* Check the parameters */ assert_param(IS_EXTI_LINE(ExtiLine)); /* Check null pointer */ if (hexti == NULL) { return HAL_ERROR; } else { /* Store line number as handle private field */ hexti->Line = ExtiLine; return HAL_OK; } } /** * @} */ /** @addtogroup EXTI_Exported_Functions_Group2 * @brief EXTI IO functions. * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== @endverbatim * @{ */ /** * @brief Handle EXTI interrupt request. * @param hexti Exti handle. * @retval none. */ void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti) { uint32_t regval; uint32_t maskline; /* Compute line mask */ maskline = (1uL << (hexti->Line & EXTI_PIN_MASK)); /* Get pending bit */ regval = (EXTI->PR & maskline); if (regval != 0x00u) { /* Clear pending bit */ EXTI->PR = maskline; /* Call callback */ if (hexti->PendingCallback != NULL) { hexti->PendingCallback(); } } } /** * @brief Get interrupt pending bit of a dedicated line. * @param hexti Exti handle. * @param Edge Specify which pending edge as to be checked. * This parameter can be one of the following values: * @arg @ref EXTI_TRIGGER_RISING_FALLING * This parameter is kept for compatibility with other series. * @retval 1 if interrupt is pending else 0. */ uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge) { uint32_t regval; uint32_t linepos; uint32_t maskline; /* Check parameters */ assert_param(IS_EXTI_LINE(hexti->Line)); assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); assert_param(IS_EXTI_PENDING_EDGE(Edge)); /* Compute line mask */ linepos = (hexti->Line & EXTI_PIN_MASK); maskline = (1uL << linepos); /* return 1 if bit is set else 0 */ regval = ((EXTI->PR & maskline) >> linepos); return regval; } /** * @brief Clear interrupt pending bit of a dedicated line. * @param hexti Exti handle. * @param Edge Specify which pending edge as to be clear. * This parameter can be one of the following values: * @arg @ref EXTI_TRIGGER_RISING_FALLING * This parameter is kept for compatibility with other series. * @retval None. */ void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge) { uint32_t maskline; /* Check parameters */ assert_param(IS_EXTI_LINE(hexti->Line)); assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); assert_param(IS_EXTI_PENDING_EDGE(Edge)); /* Compute line mask */ maskline = (1uL << (hexti->Line & EXTI_PIN_MASK)); /* Clear Pending bit */ EXTI->PR = maskline; } /** * @brief Generate a software interrupt for a dedicated line. * @param hexti Exti handle. * @retval None. */ void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti) { uint32_t maskline; /* Check parameters */ assert_param(IS_EXTI_LINE(hexti->Line)); assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); /* Compute line mask */ maskline = (1uL << (hexti->Line & EXTI_PIN_MASK)); /* Generate Software interrupt */ EXTI->SWIER = maskline; } /** * @} */ /** * @} */ #endif /* HAL_EXTI_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash.c * @author MCD Application Team * @brief FLASH HAL module driver. * This file provides firmware functions to manage the following * functionalities of the internal FLASH memory: * + Program operations functions * + Memory Control functions * + Peripheral Errors functions * @verbatim ============================================================================== ##### FLASH peripheral features ##### ============================================================================== [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses to the Flash memory. It implements the erase and program Flash memory operations and the read and write protection mechanisms. [..] The Flash memory interface accelerates code execution with a system of instruction prefetch and cache lines. [..] The FLASH main features are: (+) Flash memory read operations (+) Flash memory program/erase operations (+) Read / write protections (+) Prefetch on I-Code (+) 64 cache lines of 128 bits on I-Code (+) 8 cache lines of 128 bits on D-Code ##### How to use this driver ##### ============================================================================== [..] This driver provides functions and macros to configure and program the FLASH memory of all STM32F4xx devices. (#) FLASH Memory IO Programming functions: (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and HAL_FLASH_Lock() functions (++) Program functions: byte, half word, word and double word (++) There Two modes of programming : (+++) Polling mode using HAL_FLASH_Program() function (+++) Interrupt mode using HAL_FLASH_Program_IT() function (#) Interrupts and flags management functions : (++) Handle FLASH interrupts by calling HAL_FLASH_IRQHandler() (++) Wait for last FLASH operation according to its status (++) Get error flag status by calling HAL_SetErrorCode() [..] In addition to these functions, this driver includes a set of macros allowing to handle the following operations: (+) Set the latency (+) Enable/Disable the prefetch buffer (+) Enable/Disable the Instruction cache and the Data cache (+) Reset the Instruction cache and the Data cache (+) Enable/Disable the FLASH interrupts (+) Monitor the FLASH flags status @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup FLASH FLASH * @brief FLASH HAL module driver * @{ */ #ifdef HAL_FLASH_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup FLASH_Private_Constants * @{ */ #define FLASH_TIMEOUT_VALUE 50000U /* 50 s */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @addtogroup FLASH_Private_Variables * @{ */ /* Variable used for Erase sectors under interruption */ FLASH_ProcessTypeDef pFlash; /** * @} */ /* Private function prototypes -----------------------------------------------*/ /** @addtogroup FLASH_Private_Functions * @{ */ /* Program operations */ static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data); static void FLASH_Program_Word(uint32_t Address, uint32_t Data); static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data); static void FLASH_Program_Byte(uint32_t Address, uint8_t Data); static void FLASH_SetErrorCode(void); HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup FLASH_Exported_Functions FLASH Exported Functions * @{ */ /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions * @brief Programming operation functions * @verbatim =============================================================================== ##### Programming operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the FLASH program operations. @endverbatim * @{ */ /** * @brief Program byte, halfword, word or double word at a specified address * @param TypeProgram Indicate the way to program at a specified address. * This parameter can be a value of @ref FLASH_Type_Program * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed * * @retval HAL_StatusTypeDef HAL Status */ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) { HAL_StatusTypeDef status = HAL_ERROR; /* Process Locked */ __HAL_LOCK(&pFlash); /* Check the parameters */ assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { if(TypeProgram == FLASH_TYPEPROGRAM_BYTE) { /*Program byte (8-bit) at a specified address.*/ FLASH_Program_Byte(Address, (uint8_t) Data); } else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) { /*Program halfword (16-bit) at a specified address.*/ FLASH_Program_HalfWord(Address, (uint16_t) Data); } else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) { /*Program word (32-bit) at a specified address.*/ FLASH_Program_Word(Address, (uint32_t) Data); } else { /*Program double word (64-bit) at a specified address.*/ FLASH_Program_DoubleWord(Address, Data); } /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); /* If the program operation is completed, disable the PG Bit */ FLASH->CR &= (~FLASH_CR_PG); } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); return status; } /** * @brief Program byte, halfword, word or double word at a specified address with interrupt enabled. * @param TypeProgram Indicate the way to program at a specified address. * This parameter can be a value of @ref FLASH_Type_Program * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data) { HAL_StatusTypeDef status = HAL_OK; /* Process Locked */ __HAL_LOCK(&pFlash); /* Check the parameters */ assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); /* Enable End of FLASH Operation interrupt */ __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP); /* Enable Error source interrupt */ __HAL_FLASH_ENABLE_IT(FLASH_IT_ERR); pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM; pFlash.Address = Address; if(TypeProgram == FLASH_TYPEPROGRAM_BYTE) { /*Program byte (8-bit) at a specified address.*/ FLASH_Program_Byte(Address, (uint8_t) Data); } else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) { /*Program halfword (16-bit) at a specified address.*/ FLASH_Program_HalfWord(Address, (uint16_t) Data); } else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) { /*Program word (32-bit) at a specified address.*/ FLASH_Program_Word(Address, (uint32_t) Data); } else { /*Program double word (64-bit) at a specified address.*/ FLASH_Program_DoubleWord(Address, Data); } return status; } /** * @brief This function handles FLASH interrupt request. * @retval None */ void HAL_FLASH_IRQHandler(void) { uint32_t addresstmp = 0U; /* Check FLASH operation error flags */ #if defined(FLASH_SR_RDERR) if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET) #else if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET) #endif /* FLASH_SR_RDERR */ { if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE) { /*return the faulty sector*/ addresstmp = pFlash.Sector; pFlash.Sector = 0xFFFFFFFFU; } else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) { /*return the faulty bank*/ addresstmp = pFlash.Bank; } else { /*return the faulty address*/ addresstmp = pFlash.Address; } /*Save the Error code*/ FLASH_SetErrorCode(); /* FLASH error interrupt user callback */ HAL_FLASH_OperationErrorCallback(addresstmp); /*Stop the procedure ongoing*/ pFlash.ProcedureOnGoing = FLASH_PROC_NONE; } /* Check FLASH End of Operation flag */ if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET) { /* Clear FLASH End of Operation pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE) { /*Nb of sector to erased can be decreased*/ pFlash.NbSectorsToErase--; /* Check if there are still sectors to erase*/ if(pFlash.NbSectorsToErase != 0U) { addresstmp = pFlash.Sector; /*Indicate user which sector has been erased*/ HAL_FLASH_EndOfOperationCallback(addresstmp); /*Increment sector number*/ pFlash.Sector++; addresstmp = pFlash.Sector; FLASH_Erase_Sector(addresstmp, pFlash.VoltageForErase); } else { /*No more sectors to Erase, user callback can be called.*/ /*Reset Sector and stop Erase sectors procedure*/ pFlash.Sector = addresstmp = 0xFFFFFFFFU; pFlash.ProcedureOnGoing = FLASH_PROC_NONE; /* Flush the caches to be sure of the data consistency */ FLASH_FlushCaches() ; /* FLASH EOP interrupt user callback */ HAL_FLASH_EndOfOperationCallback(addresstmp); } } else { if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) { /* MassErase ended. Return the selected bank */ /* Flush the caches to be sure of the data consistency */ FLASH_FlushCaches() ; /* FLASH EOP interrupt user callback */ HAL_FLASH_EndOfOperationCallback(pFlash.Bank); } else { /*Program ended. Return the selected address*/ /* FLASH EOP interrupt user callback */ HAL_FLASH_EndOfOperationCallback(pFlash.Address); } pFlash.ProcedureOnGoing = FLASH_PROC_NONE; } } if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE) { /* Operation is completed, disable the PG, SER, SNB and MER Bits */ CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_SER | FLASH_CR_SNB | FLASH_MER_BIT)); /* Disable End of FLASH Operation interrupt */ __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP); /* Disable Error source interrupt */ __HAL_FLASH_DISABLE_IT(FLASH_IT_ERR); /* Process Unlocked */ __HAL_UNLOCK(&pFlash); } } /** * @brief FLASH end of operation interrupt callback * @param ReturnValue The value saved in this parameter depends on the ongoing procedure * Mass Erase: Bank number which has been requested to erase * Sectors Erase: Sector which has been erased * (if 0xFFFFFFFFU, it means that all the selected sectors have been erased) * Program: Address which was selected for data program * @retval None */ __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue) { /* Prevent unused argument(s) compilation warning */ UNUSED(ReturnValue); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_FLASH_EndOfOperationCallback could be implemented in the user file */ } /** * @brief FLASH operation error interrupt callback * @param ReturnValue The value saved in this parameter depends on the ongoing procedure * Mass Erase: Bank number which has been requested to erase * Sectors Erase: Sector number which returned an error * Program: Address which was selected for data program * @retval None */ __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue) { /* Prevent unused argument(s) compilation warning */ UNUSED(ReturnValue); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_FLASH_OperationErrorCallback could be implemented in the user file */ } /** * @} */ /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions * @brief management functions * @verbatim =============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the FLASH memory operations. @endverbatim * @{ */ /** * @brief Unlock the FLASH control register access * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_Unlock(void) { HAL_StatusTypeDef status = HAL_OK; if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) { /* Authorize the FLASH Registers access */ WRITE_REG(FLASH->KEYR, FLASH_KEY1); WRITE_REG(FLASH->KEYR, FLASH_KEY2); /* Verify Flash is unlocked */ if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) { status = HAL_ERROR; } } return status; } /** * @brief Locks the FLASH control register access * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_Lock(void) { /* Set the LOCK Bit to lock the FLASH Registers access */ FLASH->CR |= FLASH_CR_LOCK; return HAL_OK; } /** * @brief Unlock the FLASH Option Control Registers access. * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void) { if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET) { /* Authorizes the Option Byte register programming */ FLASH->OPTKEYR = FLASH_OPT_KEY1; FLASH->OPTKEYR = FLASH_OPT_KEY2; } else { return HAL_ERROR; } return HAL_OK; } /** * @brief Lock the FLASH Option Control Registers access. * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_OB_Lock(void) { /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */ FLASH->OPTCR |= FLASH_OPTCR_OPTLOCK; return HAL_OK; } /** * @brief Launch the option byte loading. * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_OB_Launch(void) { /* Set the OPTSTRT bit in OPTCR register */ *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= FLASH_OPTCR_OPTSTRT; /* Wait for last operation to be completed */ return(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE)); } /** * @} */ /** @defgroup FLASH_Exported_Functions_Group3 Peripheral State and Errors functions * @brief Peripheral Errors functions * @verbatim =============================================================================== ##### Peripheral Errors functions ##### =============================================================================== [..] This subsection permits to get in run-time Errors of the FLASH peripheral. @endverbatim * @{ */ /** * @brief Get the specific FLASH error flag. * @retval FLASH_ErrorCode: The returned value can be a combination of: * @arg HAL_FLASH_ERROR_RD: FLASH Read Protection error flag (PCROP) * @arg HAL_FLASH_ERROR_PGS: FLASH Programming Sequence error flag * @arg HAL_FLASH_ERROR_PGP: FLASH Programming Parallelism error flag * @arg HAL_FLASH_ERROR_PGA: FLASH Programming Alignment error flag * @arg HAL_FLASH_ERROR_WRP: FLASH Write protected error flag * @arg HAL_FLASH_ERROR_OPERATION: FLASH operation Error flag */ uint32_t HAL_FLASH_GetError(void) { return pFlash.ErrorCode; } /** * @} */ /** * @brief Wait for a FLASH operation to complete. * @param Timeout maximum flash operationtimeout * @retval HAL Status */ HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) { uint32_t tickstart = 0U; /* Clear Error Code */ pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. Even if the FLASH operation fails, the BUSY flag will be reset and an error flag will be set */ /* Get tick */ tickstart = HAL_GetTick(); while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY) != RESET) { if(Timeout != HAL_MAX_DELAY) { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) { return HAL_TIMEOUT; } } } /* Check FLASH End of Operation flag */ if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET) { /* Clear FLASH End of Operation pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); } #if defined(FLASH_SR_RDERR) if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET) #else if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET) #endif /* FLASH_SR_RDERR */ { /*Save the error code*/ FLASH_SetErrorCode(); return HAL_ERROR; } /* If there is no error flag set */ return HAL_OK; } /** * @brief Program a double word (64-bit) at a specified address. * @note This function must be used when the device voltage range is from * 2.7V to 3.6V and Vpp in the range 7V to 9V. * * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data) { /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD; FLASH->CR |= FLASH_CR_PG; /* Program first word */ *(__IO uint32_t*)Address = (uint32_t)Data; /* Barrier to ensure programming is performed in 2 steps, in right order (independently of compiler optimization behavior) */ __ISB(); /* Program second word */ *(__IO uint32_t*)(Address+4) = (uint32_t)(Data >> 32); } /** * @brief Program word (32-bit) at a specified address. * @note This function must be used when the device voltage range is from * 2.7V to 3.6V. * * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_Word(uint32_t Address, uint32_t Data) { /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= FLASH_PSIZE_WORD; FLASH->CR |= FLASH_CR_PG; *(__IO uint32_t*)Address = Data; } /** * @brief Program a half-word (16-bit) at a specified address. * @note This function must be used when the device voltage range is from * 2.1V to 3.6V. * * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) { /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= FLASH_PSIZE_HALF_WORD; FLASH->CR |= FLASH_CR_PG; *(__IO uint16_t*)Address = Data; } /** * @brief Program byte (8-bit) at a specified address. * @note This function must be used when the device voltage range is from * 1.8V to 3.6V. * * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_Byte(uint32_t Address, uint8_t Data) { /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= FLASH_PSIZE_BYTE; FLASH->CR |= FLASH_CR_PG; *(__IO uint8_t*)Address = Data; } /** * @brief Set the specific FLASH error flag. * @retval None */ static void FLASH_SetErrorCode(void) { if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; /* Clear FLASH write protection error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_WRPERR); } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGAERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGA; /* Clear FLASH Programming alignment error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGAERR); } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGPERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGP; /* Clear FLASH Programming parallelism error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGPERR); } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGSERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGS; /* Clear FLASH Programming sequence error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGSERR); } #if defined(FLASH_SR_RDERR) if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_RDERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_RD; /* Clear FLASH Proprietary readout protection error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_RDERR); } #endif /* FLASH_SR_RDERR */ if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPERR) != RESET) { pFlash.ErrorCode |= HAL_FLASH_ERROR_OPERATION; /* Clear FLASH Operation error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPERR); } } /** * @} */ #endif /* HAL_FLASH_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash_ex.c * @author MCD Application Team * @brief Extended FLASH HAL module driver. * This file provides firmware functions to manage the following * functionalities of the FLASH extension peripheral: * + Extended programming operations functions * @verbatim ============================================================================== ##### Flash Extension features ##### ============================================================================== [..] Comparing to other previous devices, the FLASH interface for STM32F427xx/437xx and STM32F429xx/439xx devices contains the following additional features (+) Capacity up to 2 Mbyte with dual bank architecture supporting read-while-write capability (RWW) (+) Dual bank memory organization (+) PCROP protection for all banks ##### How to use this driver ##### ============================================================================== [..] This driver provides functions to configure and program the FLASH memory of all STM32F427xx/437xx, STM32F429xx/439xx, STM32F469xx/479xx and STM32F446xx devices. It includes (#) FLASH Memory Erase functions: (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and HAL_FLASH_Lock() functions (++) Erase function: Erase sector, erase all sectors (++) There are two modes of erase : (+++) Polling Mode using HAL_FLASHEx_Erase() (+++) Interrupt Mode using HAL_FLASHEx_Erase_IT() (#) Option Bytes Programming functions: Use HAL_FLASHEx_OBProgram() to : (++) Set/Reset the write protection (++) Set the Read protection Level (++) Set the BOR level (++) Program the user Option Bytes (#) Advanced Option Bytes Programming functions: Use HAL_FLASHEx_AdvOBProgram() to : (++) Extended space (bank 2) erase function (++) Full FLASH space (2 Mo) erase (bank 1 and bank 2) (++) Dual Boot activation (++) Write protection configuration for bank 2 (++) PCROP protection configuration and control for both banks @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup FLASHEx FLASHEx * @brief FLASH HAL Extension module driver * @{ */ #ifdef HAL_FLASH_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup FLASHEx_Private_Constants * @{ */ #define FLASH_TIMEOUT_VALUE 50000U /* 50 s */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /** @addtogroup FLASHEx_Private_Variables * @{ */ extern FLASH_ProcessTypeDef pFlash; /** * @} */ /* Private function prototypes -----------------------------------------------*/ /** @addtogroup FLASHEx_Private_Functions * @{ */ /* Option bytes control */ static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks); static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks); static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level); static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t Iwdg, uint8_t Stop, uint8_t Stdby); static HAL_StatusTypeDef FLASH_OB_BOR_LevelConfig(uint8_t Level); static uint8_t FLASH_OB_GetUser(void); static uint16_t FLASH_OB_GetWRP(void); static uint8_t FLASH_OB_GetRDP(void); static uint8_t FLASH_OB_GetBOR(void); #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) ||\ defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t Sector); static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t Sector); #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks); static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks); static HAL_StatusTypeDef FLASH_OB_BootConfig(uint8_t BootConfig); #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ extern HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup FLASHEx_Exported_Functions FLASHEx Exported Functions * @{ */ /** @defgroup FLASHEx_Exported_Functions_Group1 Extended IO operation functions * @brief Extended IO operation functions * @verbatim =============================================================================== ##### Extended programming operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the Extension FLASH programming operations. @endverbatim * @{ */ /** * @brief Perform a mass erase or erase the specified FLASH memory sectors * @param[in] pEraseInit pointer to an FLASH_EraseInitTypeDef structure that * contains the configuration information for the erasing. * * @param[out] SectorError pointer to variable that * contains the configuration information on faulty sector in case of error * (0xFFFFFFFFU means that all the sectors have been correctly erased) * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError) { HAL_StatusTypeDef status = HAL_ERROR; uint32_t index = 0U; /* Process Locked */ __HAL_LOCK(&pFlash); /* Check the parameters */ assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { /*Initialization of SectorError variable*/ *SectorError = 0xFFFFFFFFU; if(pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) { /*Mass erase to be done*/ FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); /* if the erase operation is completed, disable the MER Bit */ FLASH->CR &= (~FLASH_MER_BIT); } else { /* Check the parameters */ assert_param(IS_FLASH_NBSECTORS(pEraseInit->NbSectors + pEraseInit->Sector)); /* Erase by sector by sector to be done*/ for(index = pEraseInit->Sector; index < (pEraseInit->NbSectors + pEraseInit->Sector); index++) { FLASH_Erase_Sector(index, (uint8_t) pEraseInit->VoltageRange); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); /* If the erase operation is completed, disable the SER and SNB Bits */ CLEAR_BIT(FLASH->CR, (FLASH_CR_SER | FLASH_CR_SNB)); if(status != HAL_OK) { /* In case of error, stop erase procedure and return the faulty sector*/ *SectorError = index; break; } } } /* Flush the caches to be sure of the data consistency */ FLASH_FlushCaches(); } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); return status; } /** * @brief Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled * @param pEraseInit pointer to an FLASH_EraseInitTypeDef structure that * contains the configuration information for the erasing. * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit) { HAL_StatusTypeDef status = HAL_OK; /* Process Locked */ __HAL_LOCK(&pFlash); /* Check the parameters */ assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); /* Enable End of FLASH Operation interrupt */ __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP); /* Enable Error source interrupt */ __HAL_FLASH_ENABLE_IT(FLASH_IT_ERR); /* Clear pending flags (if any) */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR |\ FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR| FLASH_FLAG_PGSERR); if(pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) { /*Mass erase to be done*/ pFlash.ProcedureOnGoing = FLASH_PROC_MASSERASE; pFlash.Bank = pEraseInit->Banks; FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks); } else { /* Erase by sector to be done*/ /* Check the parameters */ assert_param(IS_FLASH_NBSECTORS(pEraseInit->NbSectors + pEraseInit->Sector)); pFlash.ProcedureOnGoing = FLASH_PROC_SECTERASE; pFlash.NbSectorsToErase = pEraseInit->NbSectors; pFlash.Sector = pEraseInit->Sector; pFlash.VoltageForErase = (uint8_t)pEraseInit->VoltageRange; /*Erase 1st sector and wait for IT*/ FLASH_Erase_Sector(pEraseInit->Sector, pEraseInit->VoltageRange); } return status; } /** * @brief Program option bytes * @param pOBInit pointer to an FLASH_OBInitStruct structure that * contains the configuration information for the programming. * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit) { HAL_StatusTypeDef status = HAL_ERROR; /* Process Locked */ __HAL_LOCK(&pFlash); /* Check the parameters */ assert_param(IS_OPTIONBYTE(pOBInit->OptionType)); /*Write protection configuration*/ if((pOBInit->OptionType & OPTIONBYTE_WRP) == OPTIONBYTE_WRP) { assert_param(IS_WRPSTATE(pOBInit->WRPState)); if(pOBInit->WRPState == OB_WRPSTATE_ENABLE) { /*Enable of Write protection on the selected Sector*/ status = FLASH_OB_EnableWRP(pOBInit->WRPSector, pOBInit->Banks); } else { /*Disable of Write protection on the selected Sector*/ status = FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); } } /*Read protection configuration*/ if((pOBInit->OptionType & OPTIONBYTE_RDP) == OPTIONBYTE_RDP) { status = FLASH_OB_RDP_LevelConfig(pOBInit->RDPLevel); } /*USER configuration*/ if((pOBInit->OptionType & OPTIONBYTE_USER) == OPTIONBYTE_USER) { status = FLASH_OB_UserConfig(pOBInit->USERConfig&OB_IWDG_SW, pOBInit->USERConfig&OB_STOP_NO_RST, pOBInit->USERConfig&OB_STDBY_NO_RST); } /*BOR Level configuration*/ if((pOBInit->OptionType & OPTIONBYTE_BOR) == OPTIONBYTE_BOR) { status = FLASH_OB_BOR_LevelConfig(pOBInit->BORLevel); } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); return status; } /** * @brief Get the Option byte configuration * @param pOBInit pointer to an FLASH_OBInitStruct structure that * contains the configuration information for the programming. * * @retval None */ void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit) { pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_BOR; /*Get WRP*/ pOBInit->WRPSector = (uint32_t)FLASH_OB_GetWRP(); /*Get RDP Level*/ pOBInit->RDPLevel = (uint32_t)FLASH_OB_GetRDP(); /*Get USER*/ pOBInit->USERConfig = (uint8_t)FLASH_OB_GetUser(); /*Get BOR Level*/ pOBInit->BORLevel = (uint32_t)FLASH_OB_GetBOR(); } #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||\ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Program option bytes * @param pAdvOBInit pointer to an FLASH_AdvOBProgramInitTypeDef structure that * contains the configuration information for the programming. * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit) { HAL_StatusTypeDef status = HAL_ERROR; /* Check the parameters */ assert_param(IS_OBEX(pAdvOBInit->OptionType)); /*Program PCROP option byte*/ if(((pAdvOBInit->OptionType) & OPTIONBYTE_PCROP) == OPTIONBYTE_PCROP) { /* Check the parameters */ assert_param(IS_PCROPSTATE(pAdvOBInit->PCROPState)); if((pAdvOBInit->PCROPState) == OB_PCROP_STATE_ENABLE) { /*Enable of Write protection on the selected Sector*/ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\ defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) status = FLASH_OB_EnablePCROP(pAdvOBInit->Sectors); #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */ status = FLASH_OB_EnablePCROP(pAdvOBInit->SectorsBank1, pAdvOBInit->SectorsBank2, pAdvOBInit->Banks); #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ } else { /*Disable of Write protection on the selected Sector*/ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\ defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) status = FLASH_OB_DisablePCROP(pAdvOBInit->Sectors); #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */ status = FLASH_OB_DisablePCROP(pAdvOBInit->SectorsBank1, pAdvOBInit->SectorsBank2, pAdvOBInit->Banks); #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ } } #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /*Program BOOT config option byte*/ if(((pAdvOBInit->OptionType) & OPTIONBYTE_BOOTCONFIG) == OPTIONBYTE_BOOTCONFIG) { status = FLASH_OB_BootConfig(pAdvOBInit->BootConfig); } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ return status; } /** * @brief Get the OBEX byte configuration * @param pAdvOBInit pointer to an FLASH_AdvOBProgramInitTypeDef structure that * contains the configuration information for the programming. * * @retval None */ void HAL_FLASHEx_AdvOBGetConfig(FLASH_AdvOBProgramInitTypeDef *pAdvOBInit) { #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\ defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /*Get Sector*/ pAdvOBInit->Sectors = (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS)); #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */ /*Get Sector for Bank1*/ pAdvOBInit->SectorsBank1 = (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS)); /*Get Sector for Bank2*/ pAdvOBInit->SectorsBank2 = (*(__IO uint16_t *)(OPTCR1_BYTE2_ADDRESS)); /*Get Boot config OB*/ pAdvOBInit->BootConfig = *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS; #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ } /** * @brief Select the Protection Mode * * @note After PCROP activated Option Byte modification NOT POSSIBLE! excepted * Global Read Out Protection modification (from level1 to level0) * @note Once SPRMOD bit is active unprotection of a protected sector is not possible * @note Read a protected sector will set RDERR Flag and write a protected sector will set WRPERR Flag * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM32F446xx/ * STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices. * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP(void) { uint8_t optiontmp = 0xFF; /* Mask SPRMOD bit */ optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE3_ADDRESS) & (uint8_t)0x7F); /* Update Option Byte */ *(__IO uint8_t *)OPTCR_BYTE3_ADDRESS = (uint8_t)(OB_PCROP_SELECTED | optiontmp); return HAL_OK; } /** * @brief Deselect the Protection Mode * * @note After PCROP activated Option Byte modification NOT POSSIBLE! excepted * Global Read Out Protection modification (from level1 to level0) * @note Once SPRMOD bit is active unprotection of a protected sector is not possible * @note Read a protected sector will set RDERR Flag and write a protected sector will set WRPERR Flag * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM32F446xx/ * STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices. * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP(void) { uint8_t optiontmp = 0xFF; /* Mask SPRMOD bit */ optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE3_ADDRESS) & (uint8_t)0x7F); /* Update Option Byte */ *(__IO uint8_t *)OPTCR_BYTE3_ADDRESS = (uint8_t)(OB_PCROP_DESELECTED | optiontmp); return HAL_OK; } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F410xx ||\ STM32F411xE || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Returns the FLASH Write Protection Option Bytes value for Bank 2 * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F469xx/STM32F479xx devices. * @retval The FLASH Write Protection Option Bytes value */ uint16_t HAL_FLASHEx_OB_GetBank2WRP(void) { /* Return the FLASH write protection Register value */ return (*(__IO uint16_t *)(OPTCR1_BYTE2_ADDRESS)); } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ /** * @} */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Full erase of FLASH memory sectors * @param VoltageRange The device voltage range which defines the erase parallelism. * This parameter can be one of the following values: * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V, * the operation will be done by byte (8-bit) * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V, * the operation will be done by half word (16-bit) * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V, * the operation will be done by word (32-bit) * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External Vpp, * the operation will be done by double word (64-bit) * * @param Banks Banks to be erased * This parameter can be one of the following values: * @arg FLASH_BANK_1: Bank1 to be erased * @arg FLASH_BANK_2: Bank2 to be erased * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased * * @retval HAL Status */ static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks) { /* Check the parameters */ assert_param(IS_VOLTAGERANGE(VoltageRange)); assert_param(IS_FLASH_BANK(Banks)); /* if the previous operation is completed, proceed to erase all sectors */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); if(Banks == FLASH_BANK_BOTH) { /* bank1 & bank2 will be erased*/ FLASH->CR |= FLASH_MER_BIT; } else if(Banks == FLASH_BANK_1) { /*Only bank1 will be erased*/ FLASH->CR |= FLASH_CR_MER1; } else { /*Only bank2 will be erased*/ FLASH->CR |= FLASH_CR_MER2; } FLASH->CR |= FLASH_CR_STRT | ((uint32_t)VoltageRange <<8U); } /** * @brief Erase the specified FLASH memory sector * @param Sector FLASH sector to erase * The value of this parameter depend on device used within the same series * @param VoltageRange The device voltage range which defines the erase parallelism. * This parameter can be one of the following values: * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V, * the operation will be done by byte (8-bit) * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V, * the operation will be done by half word (16-bit) * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V, * the operation will be done by word (32-bit) * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External Vpp, * the operation will be done by double word (64-bit) * * @retval None */ void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange) { uint32_t tmp_psize = 0U; /* Check the parameters */ assert_param(IS_FLASH_SECTOR(Sector)); assert_param(IS_VOLTAGERANGE(VoltageRange)); if(VoltageRange == FLASH_VOLTAGE_RANGE_1) { tmp_psize = FLASH_PSIZE_BYTE; } else if(VoltageRange == FLASH_VOLTAGE_RANGE_2) { tmp_psize = FLASH_PSIZE_HALF_WORD; } else if(VoltageRange == FLASH_VOLTAGE_RANGE_3) { tmp_psize = FLASH_PSIZE_WORD; } else { tmp_psize = FLASH_PSIZE_DOUBLE_WORD; } /* Need to add offset of 4 when sector higher than FLASH_SECTOR_11 */ if(Sector > FLASH_SECTOR_11) { Sector += 4U; } /* If the previous operation is completed, proceed to erase the sector */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= tmp_psize; CLEAR_BIT(FLASH->CR, FLASH_CR_SNB); FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos); FLASH->CR |= FLASH_CR_STRT; } /** * @brief Enable the write protection of the desired bank1 or bank 2 sectors * * @note When the memory read protection level is selected (RDP level = 1), * it is not possible to program or erase the flash sector i if CortexM4 * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1). * * @param WRPSector specifies the sector(s) to be write protected. * This parameter can be one of the following values: * @arg WRPSector: A value between OB_WRP_SECTOR_0 and OB_WRP_SECTOR_23 * @arg OB_WRP_SECTOR_All * @note BANK2 starts from OB_WRP_SECTOR_12 * * @param Banks Enable write protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: WRP on all sectors of bank1 * @arg FLASH_BANK_2: WRP on all sectors of bank2 * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2 * * @retval HAL FLASH State */ static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_WRP_SECTOR(WRPSector)); assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { if(((WRPSector == OB_WRP_SECTOR_All) && ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH))) || (WRPSector < OB_WRP_SECTOR_12)) { if(WRPSector == OB_WRP_SECTOR_All) { /*Write protection on all sector of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~(WRPSector>>12)); } else { /*Write protection done on sectors of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~WRPSector); } } else { /*Write protection done on sectors of BANK2*/ *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS &= (~(WRPSector>>12)); } /*Write protection on all sector of BANK2*/ if((WRPSector == OB_WRP_SECTOR_All) && (Banks == FLASH_BANK_BOTH)) { /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS &= (~(WRPSector>>12)); } } } return status; } /** * @brief Disable the write protection of the desired bank1 or bank 2 sectors * * @note When the memory read protection level is selected (RDP level = 1), * it is not possible to program or erase the flash sector i if CortexM4 * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1). * * @param WRPSector specifies the sector(s) to be write protected. * This parameter can be one of the following values: * @arg WRPSector: A value between OB_WRP_SECTOR_0 and OB_WRP_SECTOR_23 * @arg OB_WRP_Sector_All * @note BANK2 starts from OB_WRP_SECTOR_12 * * @param Banks Disable write protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: Bank1 to be erased * @arg FLASH_BANK_2: Bank2 to be erased * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_WRP_SECTOR(WRPSector)); assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { if(((WRPSector == OB_WRP_SECTOR_All) && ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH))) || (WRPSector < OB_WRP_SECTOR_12)) { if(WRPSector == OB_WRP_SECTOR_All) { /*Write protection on all sector of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)(WRPSector>>12); } else { /*Write protection done on sectors of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)WRPSector; } } else { /*Write protection done on sectors of BANK2*/ *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS |= (uint16_t)(WRPSector>>12); } /*Write protection on all sector of BANK2*/ if((WRPSector == OB_WRP_SECTOR_All) && (Banks == FLASH_BANK_BOTH)) { /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS |= (uint16_t)(WRPSector>>12); } } } return status; } /** * @brief Configure the Dual Bank Boot. * * @note This function can be used only for STM32F42xxx/43xxx devices. * * @param BootConfig specifies the Dual Bank Boot Option byte. * This parameter can be one of the following values: * @arg OB_Dual_BootEnabled: Dual Bank Boot Enable * @arg OB_Dual_BootDisabled: Dual Bank Boot Disabled * @retval None */ static HAL_StatusTypeDef FLASH_OB_BootConfig(uint8_t BootConfig) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_BOOT(BootConfig)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { /* Set Dual Bank Boot */ *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BFB2); *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= BootConfig; } return status; } /** * @brief Enable the read/write protection (PCROP) of the desired * sectors of Bank 1 and/or Bank 2. * @note This function can be used only for STM32F42xxx/43xxx devices. * @param SectorBank1 Specifies the sector(s) to be read/write protected or unprotected for bank1. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_SECTOR_0 and OB_PCROP_SECTOR_11 * @arg OB_PCROP_SECTOR__All * @param SectorBank2 Specifies the sector(s) to be read/write protected or unprotected for bank2. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_SECTOR_12 and OB_PCROP_SECTOR_23 * @arg OB_PCROP_SECTOR__All * @param Banks Enable PCROP protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: WRP on all sectors of bank1 * @arg FLASH_BANK_2: WRP on all sectors of bank2 * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2 * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { if((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH)) { assert_param(IS_OB_PCROP(SectorBank1)); /*Write protection done on sectors of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)SectorBank1; } else { assert_param(IS_OB_PCROP(SectorBank2)); /*Write protection done on sectors of BANK2*/ *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS |= (uint16_t)SectorBank2; } /*Write protection on all sector of BANK2*/ if(Banks == FLASH_BANK_BOTH) { assert_param(IS_OB_PCROP(SectorBank2)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { /*Write protection done on sectors of BANK2*/ *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS |= (uint16_t)SectorBank2; } } } return status; } /** * @brief Disable the read/write protection (PCROP) of the desired * sectors of Bank 1 and/or Bank 2. * @note This function can be used only for STM32F42xxx/43xxx devices. * @param SectorBank1 specifies the sector(s) to be read/write protected or unprotected for bank1. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_SECTOR_0 and OB_PCROP_SECTOR_11 * @arg OB_PCROP_SECTOR__All * @param SectorBank2 Specifies the sector(s) to be read/write protected or unprotected for bank2. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_SECTOR_12 and OB_PCROP_SECTOR_23 * @arg OB_PCROP_SECTOR__All * @param Banks Disable PCROP protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: WRP on all sectors of bank1 * @arg FLASH_BANK_2: WRP on all sectors of bank2 * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2 * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { if((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH)) { assert_param(IS_OB_PCROP(SectorBank1)); /*Write protection done on sectors of BANK1*/ *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~SectorBank1); } else { /*Write protection done on sectors of BANK2*/ assert_param(IS_OB_PCROP(SectorBank2)); *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS &= (~SectorBank2); } /*Write protection on all sector of BANK2*/ if(Banks == FLASH_BANK_BOTH) { assert_param(IS_OB_PCROP(SectorBank2)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { /*Write protection done on sectors of BANK2*/ *(__IO uint16_t*)OPTCR1_BYTE2_ADDRESS &= (~SectorBank2); } } } return status; } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||\ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||\ defined(STM32F423xx) /** * @brief Mass erase of FLASH memory * @param VoltageRange The device voltage range which defines the erase parallelism. * This parameter can be one of the following values: * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V, * the operation will be done by byte (8-bit) * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V, * the operation will be done by half word (16-bit) * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V, * the operation will be done by word (32-bit) * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External Vpp, * the operation will be done by double word (64-bit) * * @param Banks Banks to be erased * This parameter can be one of the following values: * @arg FLASH_BANK_1: Bank1 to be erased * * @retval None */ static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks) { /* Check the parameters */ assert_param(IS_VOLTAGERANGE(VoltageRange)); assert_param(IS_FLASH_BANK(Banks)); /* If the previous operation is completed, proceed to erase all sectors */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= FLASH_CR_MER; FLASH->CR |= FLASH_CR_STRT | ((uint32_t)VoltageRange <<8U); } /** * @brief Erase the specified FLASH memory sector * @param Sector FLASH sector to erase * The value of this parameter depend on device used within the same series * @param VoltageRange The device voltage range which defines the erase parallelism. * This parameter can be one of the following values: * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V, * the operation will be done by byte (8-bit) * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V, * the operation will be done by half word (16-bit) * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V, * the operation will be done by word (32-bit) * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External Vpp, * the operation will be done by double word (64-bit) * * @retval None */ void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange) { uint32_t tmp_psize = 0U; /* Check the parameters */ assert_param(IS_FLASH_SECTOR(Sector)); assert_param(IS_VOLTAGERANGE(VoltageRange)); if(VoltageRange == FLASH_VOLTAGE_RANGE_1) { tmp_psize = FLASH_PSIZE_BYTE; } else if(VoltageRange == FLASH_VOLTAGE_RANGE_2) { tmp_psize = FLASH_PSIZE_HALF_WORD; } else if(VoltageRange == FLASH_VOLTAGE_RANGE_3) { tmp_psize = FLASH_PSIZE_WORD; } else { tmp_psize = FLASH_PSIZE_DOUBLE_WORD; } /* If the previous operation is completed, proceed to erase the sector */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); FLASH->CR |= tmp_psize; CLEAR_BIT(FLASH->CR, FLASH_CR_SNB); FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos); FLASH->CR |= FLASH_CR_STRT; } /** * @brief Enable the write protection of the desired bank 1 sectors * * @note When the memory read protection level is selected (RDP level = 1), * it is not possible to program or erase the flash sector i if CortexM4 * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1). * * @param WRPSector specifies the sector(s) to be write protected. * The value of this parameter depend on device used within the same series * * @param Banks Enable write protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: WRP on all sectors of bank1 * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_WRP_SECTOR(WRPSector)); assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~WRPSector); } return status; } /** * @brief Disable the write protection of the desired bank 1 sectors * * @note When the memory read protection level is selected (RDP level = 1), * it is not possible to program or erase the flash sector i if CortexM4 * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1). * * @param WRPSector specifies the sector(s) to be write protected. * The value of this parameter depend on device used within the same series * * @param Banks Enable write protection on all the sectors for the specific bank * This parameter can be one of the following values: * @arg FLASH_BANK_1: WRP on all sectors of bank1 * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_WRP_SECTOR(WRPSector)); assert_param(IS_FLASH_BANK(Banks)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)WRPSector; } return status; } #endif /* STM32F40xxx || STM32F41xxx || STM32F401xx || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx STM32F413xx || STM32F423xx */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\ defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||\ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Enable the read/write protection (PCROP) of the desired sectors. * @note This function can be used only for STM32F401xx devices. * @param Sector specifies the sector(s) to be read/write protected or unprotected. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_Sector0 and OB_PCROP_Sector5 * @arg OB_PCROP_Sector_All * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t Sector) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_PCROP(Sector)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)Sector; } return status; } /** * @brief Disable the read/write protection (PCROP) of the desired sectors. * @note This function can be used only for STM32F401xx devices. * @param Sector specifies the sector(s) to be read/write protected or unprotected. * This parameter can be one of the following values: * @arg OB_PCROP: A value between OB_PCROP_Sector0 and OB_PCROP_Sector5 * @arg OB_PCROP_Sector_All * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t Sector) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_PCROP(Sector)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~Sector); } return status; } #endif /* STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx STM32F413xx || STM32F423xx */ /** * @brief Set the read protection level. * @param Level specifies the read protection level. * This parameter can be one of the following values: * @arg OB_RDP_LEVEL_0: No protection * @arg OB_RDP_LEVEL_1: Read protection of the memory * @arg OB_RDP_LEVEL_2: Full chip protection * * @note WARNING: When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0 * * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level) { HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_RDP_LEVEL(Level)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { *(__IO uint8_t*)OPTCR_BYTE1_ADDRESS = Level; } return status; } /** * @brief Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. * @param Iwdg Selects the IWDG mode * This parameter can be one of the following values: * @arg OB_IWDG_SW: Software IWDG selected * @arg OB_IWDG_HW: Hardware IWDG selected * @param Stop Reset event when entering STOP mode. * This parameter can be one of the following values: * @arg OB_STOP_NO_RST: No reset generated when entering in STOP * @arg OB_STOP_RST: Reset generated when entering in STOP * @param Stdby Reset event when entering Standby mode. * This parameter can be one of the following values: * @arg OB_STDBY_NO_RST: No reset generated when entering in STANDBY * @arg OB_STDBY_RST: Reset generated when entering in STANDBY * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t Iwdg, uint8_t Stop, uint8_t Stdby) { uint8_t optiontmp = 0xFF; HAL_StatusTypeDef status = HAL_OK; /* Check the parameters */ assert_param(IS_OB_IWDG_SOURCE(Iwdg)); assert_param(IS_OB_STOP_SOURCE(Stop)); assert_param(IS_OB_STDBY_SOURCE(Stdby)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); if(status == HAL_OK) { /* Mask OPTLOCK, OPTSTRT, BOR_LEV and BFB2 bits */ optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE0_ADDRESS) & (uint8_t)0x1F); /* Update User Option Byte */ *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS = Iwdg | (uint8_t)(Stdby | (uint8_t)(Stop | ((uint8_t)optiontmp))); } return status; } /** * @brief Set the BOR Level. * @param Level specifies the Option Bytes BOR Reset Level. * This parameter can be one of the following values: * @arg OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V * @arg OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V * @arg OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V * @arg OB_BOR_OFF: Supply voltage ranges from 1.62 to 2.1 V * @retval HAL Status */ static HAL_StatusTypeDef FLASH_OB_BOR_LevelConfig(uint8_t Level) { /* Check the parameters */ assert_param(IS_OB_BOR_LEVEL(Level)); /* Set the BOR Level */ *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BOR_LEV); *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= Level; return HAL_OK; } /** * @brief Return the FLASH User Option Byte value. * @retval uint8_t FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1) * and RST_STDBY(Bit2). */ static uint8_t FLASH_OB_GetUser(void) { /* Return the User Option Byte */ return ((uint8_t)(FLASH->OPTCR & 0xE0)); } /** * @brief Return the FLASH Write Protection Option Bytes value. * @retval uint16_t FLASH Write Protection Option Bytes value */ static uint16_t FLASH_OB_GetWRP(void) { /* Return the FLASH write protection Register value */ return (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS)); } /** * @brief Returns the FLASH Read Protection level. * @retval FLASH ReadOut Protection Status: * This parameter can be one of the following values: * @arg OB_RDP_LEVEL_0: No protection * @arg OB_RDP_LEVEL_1: Read protection of the memory * @arg OB_RDP_LEVEL_2: Full chip protection */ static uint8_t FLASH_OB_GetRDP(void) { uint8_t readstatus = OB_RDP_LEVEL_0; if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2)) { readstatus = OB_RDP_LEVEL_2; } else if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_0)) { readstatus = OB_RDP_LEVEL_0; } else { readstatus = OB_RDP_LEVEL_1; } return readstatus; } /** * @brief Returns the FLASH BOR level. * @retval uint8_t The FLASH BOR level: * - OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V * - OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V * - OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V * - OB_BOR_OFF : Supply voltage ranges from 1.62 to 2.1 V */ static uint8_t FLASH_OB_GetBOR(void) { /* Return the FLASH BOR level */ return (uint8_t)(*(__IO uint8_t *)(OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0C); } /** * @brief Flush the instruction and data caches * @retval None */ void FLASH_FlushCaches(void) { /* Flush instruction cache */ if(READ_BIT(FLASH->ACR, FLASH_ACR_ICEN)!= RESET) { /* Disable instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_DISABLE(); /* Reset instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_RESET(); /* Enable instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); } /* Flush data cache */ if(READ_BIT(FLASH->ACR, FLASH_ACR_DCEN) != RESET) { /* Disable data cache */ __HAL_FLASH_DATA_CACHE_DISABLE(); /* Reset data cache */ __HAL_FLASH_DATA_CACHE_RESET(); /* Enable data cache */ __HAL_FLASH_DATA_CACHE_ENABLE(); } } /** * @} */ #endif /* HAL_FLASH_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_flash_ramfunc.c * @author MCD Application Team * @brief FLASH RAMFUNC module driver. * This file provides a FLASH firmware functions which should be * executed from internal SRAM * + Stop/Start the flash interface while System Run * + Enable/Disable the flash sleep while System Run @verbatim ============================================================================== ##### APIs executed from Internal RAM ##### ============================================================================== [..] *** ARM Compiler *** -------------------- [..] RAM functions are defined using the toolchain options. Functions that are be executed in RAM should reside in a separate source module. Using the 'Options for File' dialog you can simply change the 'Code / Const' area of a module to a memory space in physical RAM. Available memory areas are declared in the 'Target' tab of the Options for Target' dialog. *** ICCARM Compiler *** ----------------------- [..] RAM functions are defined using a specific toolchain keyword "__ramfunc". *** GNU Compiler *** -------------------- [..] RAM functions are defined using a specific toolchain attribute "__attribute__((section(".RamFunc")))". @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup FLASH_RAMFUNC FLASH RAMFUNC * @brief FLASH functions executed from RAM * @{ */ #ifdef HAL_FLASH_MODULE_ENABLED #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \ defined(STM32F412Rx) || defined(STM32F412Cx) /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup FLASH_RAMFUNC_Exported_Functions FLASH RAMFUNC Exported Functions * @{ */ /** @defgroup FLASH_RAMFUNC_Exported_Functions_Group1 Peripheral features functions executed from internal RAM * @brief Peripheral Extended features functions * @verbatim =============================================================================== ##### ramfunc functions ##### =============================================================================== [..] This subsection provides a set of functions that should be executed from RAM transfers. @endverbatim * @{ */ /** * @brief Stop the flash interface while System Run * @note This mode is only available for STM32F41xxx/STM32F446xx devices. * @note This mode couldn't be set while executing with the flash itself. * It should be done with specific routine executed from RAM. * @retval HAL status */ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StopFlashInterfaceClk(void) { /* Enable Power ctrl clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* Stop the flash interface while System Run */ SET_BIT(PWR->CR, PWR_CR_FISSR); return HAL_OK; } /** * @brief Start the flash interface while System Run * @note This mode is only available for STM32F411xx/STM32F446xx devices. * @note This mode couldn't be set while executing with the flash itself. * It should be done with specific routine executed from RAM. * @retval HAL status */ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StartFlashInterfaceClk(void) { /* Enable Power ctrl clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* Start the flash interface while System Run */ CLEAR_BIT(PWR->CR, PWR_CR_FISSR); return HAL_OK; } /** * @brief Enable the flash sleep while System Run * @note This mode is only available for STM32F41xxx/STM32F446xx devices. * @note This mode could n't be set while executing with the flash itself. * It should be done with specific routine executed from RAM. * @retval HAL status */ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableFlashSleepMode(void) { /* Enable Power ctrl clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable the flash sleep while System Run */ SET_BIT(PWR->CR, PWR_CR_FMSSR); return HAL_OK; } /** * @brief Disable the flash sleep while System Run * @note This mode is only available for STM32F41xxx/STM32F446xx devices. * @note This mode couldn't be set while executing with the flash itself. * It should be done with specific routine executed from RAM. * @retval HAL status */ __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableFlashSleepMode(void) { /* Enable Power ctrl clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* Disable the flash sleep while System Run */ CLEAR_BIT(PWR->CR, PWR_CR_FMSSR); return HAL_OK; } /** * @} */ /** * @} */ #endif /* STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ #endif /* HAL_FLASH_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_gpio.c * @author MCD Application Team * @brief GPIO HAL module driver. * This file provides firmware functions to manage the following * functionalities of the General Purpose Input/Output (GPIO) peripheral: * + Initialization and de-initialization functions * + IO operation functions * @verbatim ============================================================================== ##### GPIO Peripheral features ##### ============================================================================== [..] Subject to the specific hardware characteristics of each I/O port listed in the datasheet, each port bit of the General Purpose IO (GPIO) Ports, can be individually configured by software in several modes: (+) Input mode (+) Analog mode (+) Output mode (+) Alternate function mode (+) External interrupt/event lines [..] During and just after reset, the alternate functions and external interrupt lines are not active and the I/O ports are configured in input floating mode. [..] All GPIO pins have weak internal pull-up and pull-down resistors, which can be activated or not. [..] In Output or Alternate mode, each IO can be configured on open-drain or push-pull type and the IO speed can be selected depending on the VDD value. [..] All ports have external interrupt/event capability. To use external interrupt lines, the port must be configured in input mode. All available GPIO pins are connected to the 16 external interrupt/event lines from EXTI0 to EXTI15. [..] The external interrupt/event controller consists of up to 23 edge detectors (16 lines are connected to GPIO) for generating event/interrupt requests (each input line can be independently configured to select the type (interrupt or event) and the corresponding trigger event (rising or falling or both). Each line can also be masked independently. ##### How to use this driver ##### ============================================================================== [..] (#) Enable the GPIO AHB clock using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(). (#) Configure the GPIO pin(s) using HAL_GPIO_Init(). (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef structure. (++) In case of Output or alternate function mode selection: the speed is configured through "Speed" member from GPIO_InitTypeDef structure. (++) In alternate mode is selection, the alternate function connected to the IO is configured through "Alternate" member from GPIO_InitTypeDef structure. (++) Analog mode is required when a pin is to be used as ADC channel or DAC output. (++) In case of external interrupt/event selection the "Mode" member from GPIO_InitTypeDef structure select the type (interrupt or event) and the corresponding trigger event (rising or falling or both). (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using HAL_NVIC_EnableIRQ(). (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin(). (#) To set/reset the level of a pin configured in output mode use HAL_GPIO_WritePin()/HAL_GPIO_TogglePin(). (#) To lock pin configuration until next reset use HAL_GPIO_LockPin(). (#) During and just after reset, the alternate functions are not active and the GPIO pins are configured in input floating mode (except JTAG pins). (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has priority over the GPIO function. (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as general purpose PH0 and PH1, respectively, when the HSE oscillator is off. The HSE has priority over the GPIO function. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup GPIO GPIO * @brief GPIO HAL module driver * @{ */ #ifdef HAL_GPIO_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup GPIO_Private_Constants GPIO Private Constants * @{ */ #define GPIO_NUMBER 16U /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup GPIO_Exported_Functions GPIO Exported Functions * @{ */ /** @defgroup GPIO_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to initialize and de-initialize the GPIOs to be ready for use. @endverbatim * @{ */ /** * @brief Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init. * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { uint32_t position; uint32_t ioposition = 0x00U; uint32_t iocurrent = 0x00U; uint32_t temp = 0x00U; /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Configure the port pins */ for(position = 0U; position < GPIO_NUMBER; position++) { /* Get the IO position */ ioposition = 0x01U << position; /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; if(iocurrent == ioposition) { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); temp |= (GPIO_Init->Speed << (position * 2U)); GPIOx->OSPEEDR = temp; /* Configure the IO Output Type */ temp = GPIOx->OTYPER; temp &= ~(GPIO_OTYPER_OT_0 << position) ; temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4U) << position); GPIOx->OTYPER = temp; } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) { /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); temp |= ((GPIO_Init->Pull) << (position * 2U)); GPIOx->PUPDR = temp; } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) { /* Check the Alternate function parameter */ assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3U]; temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); GPIOx->AFR[position >> 3U] = temp; } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); GPIOx->MODER = temp; /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); temp = SYSCFG->EXTICR[position >> 2U]; temp &= ~(0x0FU << (4U * (position & 0x03U))); temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); SYSCFG->EXTICR[position >> 2U] = temp; /* Clear EXTI line configuration */ temp = EXTI->IMR; temp &= ~((uint32_t)iocurrent); if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) { temp |= iocurrent; } EXTI->IMR = temp; temp = EXTI->EMR; temp &= ~((uint32_t)iocurrent); if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) { temp |= iocurrent; } EXTI->EMR = temp; /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; temp &= ~((uint32_t)iocurrent); if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) { temp |= iocurrent; } EXTI->RTSR = temp; temp = EXTI->FTSR; temp &= ~((uint32_t)iocurrent); if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) { temp |= iocurrent; } EXTI->FTSR = temp; } } } } /** * @brief De-initializes the GPIOx peripheral registers to their default reset values. * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. * @param GPIO_Pin specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @retval None */ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) { uint32_t position; uint32_t ioposition = 0x00U; uint32_t iocurrent = 0x00U; uint32_t tmp = 0x00U; /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); /* Configure the port pins */ for(position = 0U; position < GPIO_NUMBER; position++) { /* Get the IO position */ ioposition = 0x01U << position; /* Get the current IO position */ iocurrent = (GPIO_Pin) & ioposition; if(iocurrent == ioposition) { /*------------------------- EXTI Mode Configuration --------------------*/ tmp = SYSCFG->EXTICR[position >> 2U]; tmp &= (0x0FU << (4U * (position & 0x03U))); if(tmp == ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)))) { /* Clear EXTI line configuration */ EXTI->IMR &= ~((uint32_t)iocurrent); EXTI->EMR &= ~((uint32_t)iocurrent); /* Clear Rising Falling edge configuration */ EXTI->RTSR &= ~((uint32_t)iocurrent); EXTI->FTSR &= ~((uint32_t)iocurrent); /* Configure the External Interrupt or event for the current IO */ tmp = 0x0FU << (4U * (position & 0x03U)); SYSCFG->EXTICR[position >> 2U] &= ~tmp; } /*------------------------- GPIO Mode Configuration --------------------*/ /* Configure IO Direction in Input Floating Mode */ GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2U)); /* Configure the default Alternate Function in current IO */ GPIOx->AFR[position >> 3U] &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; /* Deactivate the Pull-up and Pull-down resistor for the current IO */ GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); /* Configure the default value IO Output Type */ GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; /* Configure the default value for IO Speed */ GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); } } } /** * @} */ /** @defgroup GPIO_Exported_Functions_Group2 IO operation functions * @brief GPIO Read and Write * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== @endverbatim * @{ */ /** * @brief Reads the specified input port pin. * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. * @param GPIO_Pin specifies the port bit to read. * This parameter can be GPIO_PIN_x where x can be (0..15). * @retval The input port pin value. */ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) { GPIO_PinState bitstatus; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); if((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) { bitstatus = GPIO_PIN_SET; } else { bitstatus = GPIO_PIN_RESET; } return bitstatus; } /** * @brief Sets or clears the selected data port bit. * * @note This function uses GPIOx_BSRR register to allow atomic read/modify * accesses. In this way, there is no risk of an IRQ occurring between * the read and the modify access. * * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. * @param GPIO_Pin specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @param PinState specifies the value to be written to the selected bit. * This parameter can be one of the GPIO_PinState enum values: * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if(PinState != GPIO_PIN_RESET) { GPIOx->BSRR = GPIO_Pin; } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; } } /** * @brief Toggles the specified GPIO pins. * @param GPIOx Where x can be (A..K) to select the GPIO peripheral for STM32F429X device or * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. * @param GPIO_Pin Specifies the pins to be toggled. * @retval None */ void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) { uint32_t odr; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); /* get current Ouput Data Register value */ odr = GPIOx->ODR; /* Set selected pins that were at low level, and reset ones that were high */ GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin); } /** * @brief Locks GPIO Pins configuration registers. * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. * @note The configuration of the locked GPIO pins can no longer be modified * until the next reset. * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F4 family * @param GPIO_Pin specifies the port bit to be locked. * This parameter can be any combination of GPIO_PIN_x where x can be (0..15). * @retval None */ HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) { __IO uint32_t tmp = GPIO_LCKR_LCKK; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); /* Apply lock key write sequence */ tmp |= GPIO_Pin; /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ GPIOx->LCKR = tmp; /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */ GPIOx->LCKR = GPIO_Pin; /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ GPIOx->LCKR = tmp; /* Read LCKR register. This read is mandatory to complete key lock sequence */ tmp = GPIOx->LCKR; /* Read again in order to confirm lock is active */ if((GPIOx->LCKR & GPIO_LCKR_LCKK) != RESET) { return HAL_OK; } else { return HAL_ERROR; } } /** * @brief This function handles EXTI interrupt request. * @param GPIO_Pin Specifies the pins connected EXTI line * @retval None */ void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin) { /* EXTI line interrupt detected */ if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET) { __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin); HAL_GPIO_EXTI_Callback(GPIO_Pin); } } /** * @brief EXTI line detection callbacks. * @param GPIO_Pin Specifies the pins connected EXTI line * @retval None */ __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { /* Prevent unused argument(s) compilation warning */ UNUSED(GPIO_Pin); /* NOTE: This function Should not be modified, when the callback is needed, the HAL_GPIO_EXTI_Callback could be implemented in the user file */ } /** * @} */ /** * @} */ #endif /* HAL_GPIO_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_i2c.c * @author MCD Application Team * @brief I2C HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Inter Integrated Circuit (I2C) peripheral: * + Initialization and de-initialization functions * + IO operation functions * + Peripheral State, Mode and Error functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The I2C HAL driver can be used as follows: (#) Declare a I2C_HandleTypeDef handle structure, for example: I2C_HandleTypeDef hi2c; (#)Initialize the I2C low level resources by implementing the @ref HAL_I2C_MspInit() API: (##) Enable the I2Cx interface clock (##) I2C pins configuration (+++) Enable the clock for the I2C GPIOs (+++) Configure I2C pins as alternate function open-drain (##) NVIC configuration if you need to use interrupt process (+++) Configure the I2Cx interrupt priority (+++) Enable the NVIC I2C IRQ Channel (##) DMA Configuration if you need to use DMA process (+++) Declare a DMA_HandleTypeDef handle structure for the transmit or receive stream (+++) Enable the DMAx interface clock using (+++) Configure the DMA handle parameters (+++) Configure the DMA Tx or Rx stream (+++) Associate the initialized DMA handle to the hi2c DMA Tx or Rx handle (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Tx or Rx stream (#) Configure the Communication Speed, Duty cycle, Addressing mode, Own Address1, Dual Addressing mode, Own Address2, General call and Nostretch mode in the hi2c Init structure. (#) Initialize the I2C registers by calling the @ref HAL_I2C_Init(), configures also the low level Hardware (GPIO, CLOCK, NVIC...etc) by calling the customized @ref HAL_I2C_MspInit() API. (#) To check if target device is ready for communication, use the function @ref HAL_I2C_IsDeviceReady() (#) For I2C IO and IO MEM operations, three operation modes are available within this driver : *** Polling mode IO operation *** ================================= [..] (+) Transmit in master mode an amount of data in blocking mode using @ref HAL_I2C_Master_Transmit() (+) Receive in master mode an amount of data in blocking mode using @ref HAL_I2C_Master_Receive() (+) Transmit in slave mode an amount of data in blocking mode using @ref HAL_I2C_Slave_Transmit() (+) Receive in slave mode an amount of data in blocking mode using @ref HAL_I2C_Slave_Receive() *** Polling mode IO MEM operation *** ===================================== [..] (+) Write an amount of data in blocking mode to a specific memory address using @ref HAL_I2C_Mem_Write() (+) Read an amount of data in blocking mode from a specific memory address using @ref HAL_I2C_Mem_Read() *** Interrupt mode IO operation *** =================================== [..] (+) Transmit in master mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Transmit_IT() (+) At transmission end of transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() (+) Receive in master mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Receive_IT() (+) At reception end of transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() (+) Transmit in slave mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Transmit_IT() (+) At transmission end of transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() (+) Receive in slave mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Receive_IT() (+) At reception end of transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() (+) Abort a master I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() (+) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() *** Interrupt mode or DMA mode IO sequential operation *** ========================================================== [..] (@) These interfaces allow to manage a sequential transfer with a repeated start condition when a direction change during transfer [..] (+) A specific option field manage the different steps of a sequential transfer (+) Option field values are defined through @ref I2C_XferOptions_definition and are listed below: (++) I2C_FIRST_AND_LAST_FRAME: No sequential usage, functional is same as associated interfaces in no sequential mode (++) I2C_FIRST_FRAME: Sequential usage, this option allow to manage a sequence with start condition, address and data to transfer without a final stop condition (++) I2C_FIRST_AND_NEXT_FRAME: Sequential usage (Master only), this option allow to manage a sequence with start condition, address and data to transfer without a final stop condition, an then permit a call the same master sequential interface several times (like @ref HAL_I2C_Master_Seq_Transmit_IT() then @ref HAL_I2C_Master_Seq_Transmit_IT() or @ref HAL_I2C_Master_Seq_Transmit_DMA() then @ref HAL_I2C_Master_Seq_Transmit_DMA()) (++) I2C_NEXT_FRAME: Sequential usage, this option allow to manage a sequence with a restart condition, address and with new data to transfer if the direction change or manage only the new data to transfer if no direction change and without a final stop condition in both cases (++) I2C_LAST_FRAME: Sequential usage, this option allow to manage a sequance with a restart condition, address and with new data to transfer if the direction change or manage only the new data to transfer if no direction change and with a final stop condition in both cases (++) I2C_LAST_FRAME_NO_STOP: Sequential usage (Master only), this option allow to manage a restart condition after several call of the same master sequential interface several times (link with option I2C_FIRST_AND_NEXT_FRAME). Usage can, transfer several bytes one by one using HAL_I2C_Master_Seq_Transmit_IT(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) or HAL_I2C_Master_Seq_Receive_IT(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) or HAL_I2C_Master_Seq_Transmit_DMA(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) or HAL_I2C_Master_Seq_Receive_DMA(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME). Then usage of this option I2C_LAST_FRAME_NO_STOP at the last Transmit or Receive sequence permit to call the opposite interface Receive or Transmit without stopping the communication and so generate a restart condition. (++) I2C_OTHER_FRAME: Sequential usage (Master only), this option allow to manage a restart condition after each call of the same master sequential interface. Usage can, transfer several bytes one by one with a restart with slave address between each bytes using HAL_I2C_Master_Seq_Transmit_IT(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) or HAL_I2C_Master_Seq_Receive_IT(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) or HAL_I2C_Master_Seq_Transmit_DMA(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) or HAL_I2C_Master_Seq_Receive_DMA(option I2C_FIRST_FRAME then I2C_OTHER_FRAME). Then usage of this option I2C_OTHER_AND_LAST_FRAME at the last frame to help automatic generation of STOP condition. (+) Different sequential I2C interfaces are listed below: (++) Sequential transmit in master I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Seq_Transmit_IT() or using @ref HAL_I2C_Master_Seq_Transmit_DMA() (+++) At transmission end of current frame transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() (++) Sequential receive in master I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Seq_Receive_IT() or using @ref HAL_I2C_Master_Seq_Receive_DMA() (+++) At reception end of current frame transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() (++) Abort a master IT or DMA I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() (+++) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() (++) Enable/disable the Address listen mode in slave I2C mode using @ref HAL_I2C_EnableListen_IT() @ref HAL_I2C_DisableListen_IT() (+++) When address slave I2C match, @ref HAL_I2C_AddrCallback() is executed and user can add his own code to check the Address Match Code and the transmission direction request by master (Write/Read). (+++) At Listen mode end @ref HAL_I2C_ListenCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ListenCpltCallback() (++) Sequential transmit in slave I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Seq_Transmit_IT() or using @ref HAL_I2C_Slave_Seq_Transmit_DMA() (+++) At transmission end of current frame transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() (++) Sequential receive in slave I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Seq_Receive_IT() or using @ref HAL_I2C_Slave_Seq_Receive_DMA() (+++) At reception end of current frame transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() (++) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() *** Interrupt mode IO MEM operation *** ======================================= [..] (+) Write an amount of data in non-blocking mode with Interrupt to a specific memory address using @ref HAL_I2C_Mem_Write_IT() (+) At Memory end of write transfer, @ref HAL_I2C_MemTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MemTxCpltCallback() (+) Read an amount of data in non-blocking mode with Interrupt from a specific memory address using @ref HAL_I2C_Mem_Read_IT() (+) At Memory end of read transfer, @ref HAL_I2C_MemRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MemRxCpltCallback() (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() *** DMA mode IO operation *** ============================== [..] (+) Transmit in master mode an amount of data in non-blocking mode (DMA) using @ref HAL_I2C_Master_Transmit_DMA() (+) At transmission end of transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() (+) Receive in master mode an amount of data in non-blocking mode (DMA) using @ref HAL_I2C_Master_Receive_DMA() (+) At reception end of transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() (+) Transmit in slave mode an amount of data in non-blocking mode (DMA) using @ref HAL_I2C_Slave_Transmit_DMA() (+) At transmission end of transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() (+) Receive in slave mode an amount of data in non-blocking mode (DMA) using @ref HAL_I2C_Slave_Receive_DMA() (+) At reception end of transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() (+) Abort a master I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() (+) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() *** DMA mode IO MEM operation *** ================================= [..] (+) Write an amount of data in non-blocking mode with DMA to a specific memory address using @ref HAL_I2C_Mem_Write_DMA() (+) At Memory end of write transfer, @ref HAL_I2C_MemTxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MemTxCpltCallback() (+) Read an amount of data in non-blocking mode with DMA from a specific memory address using @ref HAL_I2C_Mem_Read_DMA() (+) At Memory end of read transfer, @ref HAL_I2C_MemRxCpltCallback() is executed and user can add his own code by customization of function pointer @ref HAL_I2C_MemRxCpltCallback() (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() *** I2C HAL driver macros list *** ================================== [..] Below the list of most used macros in I2C HAL driver. (+) @ref __HAL_I2C_ENABLE: Enable the I2C peripheral (+) @ref __HAL_I2C_DISABLE: Disable the I2C peripheral (+) @ref __HAL_I2C_GET_FLAG: Checks whether the specified I2C flag is set or not (+) @ref __HAL_I2C_CLEAR_FLAG: Clear the specified I2C pending flag (+) @ref __HAL_I2C_ENABLE_IT: Enable the specified I2C interrupt (+) @ref __HAL_I2C_DISABLE_IT: Disable the specified I2C interrupt *** Callback registration *** ============================================= [..] The compilation flag USE_HAL_I2C_REGISTER_CALLBACKS when set to 1 allows the user to configure dynamically the driver callbacks. Use Functions @ref HAL_I2C_RegisterCallback() or @ref HAL_I2C_RegisterAddrCallback() to register an interrupt callback. [..] Function @ref HAL_I2C_RegisterCallback() allows to register following callbacks: (+) MasterTxCpltCallback : callback for Master transmission end of transfer. (+) MasterRxCpltCallback : callback for Master reception end of transfer. (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. (+) ListenCpltCallback : callback for end of listen mode. (+) MemTxCpltCallback : callback for Memory transmission end of transfer. (+) MemRxCpltCallback : callback for Memory reception end of transfer. (+) ErrorCallback : callback for error detection. (+) AbortCpltCallback : callback for abort completion process. (+) MspInitCallback : callback for Msp Init. (+) MspDeInitCallback : callback for Msp DeInit. This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. [..] For specific callback AddrCallback use dedicated register callbacks : @ref HAL_I2C_RegisterAddrCallback(). [..] Use function @ref HAL_I2C_UnRegisterCallback to reset a callback to the default weak function. @ref HAL_I2C_UnRegisterCallback takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (+) MasterTxCpltCallback : callback for Master transmission end of transfer. (+) MasterRxCpltCallback : callback for Master reception end of transfer. (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. (+) ListenCpltCallback : callback for end of listen mode. (+) MemTxCpltCallback : callback for Memory transmission end of transfer. (+) MemRxCpltCallback : callback for Memory reception end of transfer. (+) ErrorCallback : callback for error detection. (+) AbortCpltCallback : callback for abort completion process. (+) MspInitCallback : callback for Msp Init. (+) MspDeInitCallback : callback for Msp DeInit. [..] For callback AddrCallback use dedicated register callbacks : @ref HAL_I2C_UnRegisterAddrCallback(). [..] By default, after the @ref HAL_I2C_Init() and when the state is @ref HAL_I2C_STATE_RESET all callbacks are set to the corresponding weak functions: examples @ref HAL_I2C_MasterTxCpltCallback(), @ref HAL_I2C_MasterRxCpltCallback(). Exception done for MspInit and MspDeInit functions that are reset to the legacy weak functions in the @ref HAL_I2C_Init()/ @ref HAL_I2C_DeInit() only when these callbacks are null (not registered beforehand). If MspInit or MspDeInit are not null, the @ref HAL_I2C_Init()/ @ref HAL_I2C_DeInit() keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. [..] Callbacks can be registered/unregistered in @ref HAL_I2C_STATE_READY state only. Exception done MspInit/MspDeInit functions that can be registered/unregistered in @ref HAL_I2C_STATE_READY or @ref HAL_I2C_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. Then, the user first registers the MspInit/MspDeInit user callbacks using @ref HAL_I2C_RegisterCallback() before calling @ref HAL_I2C_DeInit() or @ref HAL_I2C_Init() function. [..] When the compilation flag USE_HAL_I2C_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and all callbacks are set to the corresponding weak functions. [..] (@) You can refer to the I2C HAL driver header file for more useful macros @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup I2C I2C * @brief I2C HAL module driver * @{ */ #ifdef HAL_I2C_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup I2C_Private_Define * @{ */ #define I2C_TIMEOUT_FLAG 35U /*!< Timeout 35 ms */ #define I2C_TIMEOUT_BUSY_FLAG 25U /*!< Timeout 25 ms */ #define I2C_TIMEOUT_STOP_FLAG 5U /*!< Timeout 5 ms */ #define I2C_NO_OPTION_FRAME 0xFFFF0000U /*!< XferOptions default value */ /* Private define for @ref PreviousState usage */ #define I2C_STATE_MSK ((uint32_t)((uint32_t)((uint32_t)HAL_I2C_STATE_BUSY_TX | (uint32_t)HAL_I2C_STATE_BUSY_RX) & (uint32_t)(~((uint32_t)HAL_I2C_STATE_READY)))) /*!< Mask State define, keep only RX and TX bits */ #define I2C_STATE_NONE ((uint32_t)(HAL_I2C_MODE_NONE)) /*!< Default Value */ #define I2C_STATE_MASTER_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_MASTER)) /*!< Master Busy TX, combinaison of State LSB and Mode enum */ #define I2C_STATE_MASTER_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_MASTER)) /*!< Master Busy RX, combinaison of State LSB and Mode enum */ #define I2C_STATE_SLAVE_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_SLAVE)) /*!< Slave Busy TX, combinaison of State LSB and Mode enum */ #define I2C_STATE_SLAVE_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_SLAVE)) /*!< Slave Busy RX, combinaison of State LSB and Mode enum */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /** @defgroup I2C_Private_Functions I2C Private Functions * @{ */ /* Private functions to handle DMA transfer */ static void I2C_DMAXferCplt(DMA_HandleTypeDef *hdma); static void I2C_DMAError(DMA_HandleTypeDef *hdma); static void I2C_DMAAbort(DMA_HandleTypeDef *hdma); static void I2C_ITError(I2C_HandleTypeDef *hi2c); static HAL_StatusTypeDef I2C_MasterRequestWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_MasterRequestRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart); /* Private functions to handle flags during polling transfer */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef I2C_WaitOnSTOPRequestThroughIT(I2C_HandleTypeDef *hi2c); static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c); /* Private functions for I2C transfer IRQ handler */ static void I2C_MasterTransmit_TXE(I2C_HandleTypeDef *hi2c); static void I2C_MasterTransmit_BTF(I2C_HandleTypeDef *hi2c); static void I2C_MasterReceive_RXNE(I2C_HandleTypeDef *hi2c); static void I2C_MasterReceive_BTF(I2C_HandleTypeDef *hi2c); static void I2C_Master_SB(I2C_HandleTypeDef *hi2c); static void I2C_Master_ADD10(I2C_HandleTypeDef *hi2c); static void I2C_Master_ADDR(I2C_HandleTypeDef *hi2c); static void I2C_SlaveTransmit_TXE(I2C_HandleTypeDef *hi2c); static void I2C_SlaveTransmit_BTF(I2C_HandleTypeDef *hi2c); static void I2C_SlaveReceive_RXNE(I2C_HandleTypeDef *hi2c); static void I2C_SlaveReceive_BTF(I2C_HandleTypeDef *hi2c); static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags); static void I2C_Slave_STOPF(I2C_HandleTypeDef *hi2c); static void I2C_Slave_AF(I2C_HandleTypeDef *hi2c); static void I2C_MemoryTransmit_TXE_BTF(I2C_HandleTypeDef *hi2c); /* Private function to Convert Specific options */ static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup I2C_Exported_Functions I2C Exported Functions * @{ */ /** @defgroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize and deinitialize the I2Cx peripheral: (+) User must Implement HAL_I2C_MspInit() function in which he configures all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC). (+) Call the function HAL_I2C_Init() to configure the selected device with the selected configuration: (++) Communication Speed (++) Duty cycle (++) Addressing mode (++) Own Address 1 (++) Dual Addressing mode (++) Own Address 2 (++) General call mode (++) Nostretch mode (+) Call the function HAL_I2C_DeInit() to restore the default configuration of the selected I2Cx peripheral. @endverbatim * @{ */ /** * @brief Initializes the I2C according to the specified parameters * in the I2C_InitTypeDef and initialize the associated handle. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_CLOCK_SPEED(hi2c->Init.ClockSpeed)); assert_param(IS_I2C_DUTY_CYCLE(hi2c->Init.DutyCycle)); assert_param(IS_I2C_OWN_ADDRESS1(hi2c->Init.OwnAddress1)); assert_param(IS_I2C_ADDRESSING_MODE(hi2c->Init.AddressingMode)); assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) /* Init the I2C Callback settings */ hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ if (hi2c->MspInitCallback == NULL) { hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ } /* Init the low level hardware : GPIO, CLOCK, NVIC */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_I2C_MspInit(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) { return HAL_ERROR; } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); /*---------------------------- I2Cx TRISE Configuration --------------------*/ /* Configure I2Cx: Rise Time */ MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); /*---------------------------- I2Cx CCR Configuration ----------------------*/ /* Configure I2Cx: Speed */ MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Configure I2Cx: Own Address1 and addressing mode */ MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Configure I2Cx: Dual mode and Own Address2 */ MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); hi2c->ErrorCode = HAL_I2C_ERROR_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->PreviousState = I2C_STATE_NONE; hi2c->Mode = HAL_I2C_MODE_NONE; return HAL_OK; } /** * @brief DeInitialize the I2C peripheral. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) { /* Check the I2C handle allocation */ if (hi2c == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); hi2c->State = HAL_I2C_STATE_BUSY; /* Disable the I2C Peripheral Clock */ __HAL_I2C_DISABLE(hi2c); #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) if (hi2c->MspDeInitCallback == NULL) { hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ hi2c->MspDeInitCallback(hi2c); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_I2C_MspDeInit(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ hi2c->ErrorCode = HAL_I2C_ERROR_NONE; hi2c->State = HAL_I2C_STATE_RESET; hi2c->PreviousState = I2C_STATE_NONE; hi2c->Mode = HAL_I2C_MODE_NONE; /* Release Lock */ __HAL_UNLOCK(hi2c); return HAL_OK; } /** * @brief Initialize the I2C MSP. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MspInit could be implemented in the user file */ } /** * @brief DeInitialize the I2C MSP. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MspDeInit could be implemented in the user file */ } #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) /** * @brief Register a User I2C Callback * To be used instead of the weak predefined callback * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, pI2C_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hi2c); if (HAL_I2C_STATE_READY == hi2c->State) { switch (CallbackID) { case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : hi2c->MasterTxCpltCallback = pCallback; break; case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : hi2c->MasterRxCpltCallback = pCallback; break; case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : hi2c->SlaveTxCpltCallback = pCallback; break; case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : hi2c->SlaveRxCpltCallback = pCallback; break; case HAL_I2C_LISTEN_COMPLETE_CB_ID : hi2c->ListenCpltCallback = pCallback; break; case HAL_I2C_MEM_TX_COMPLETE_CB_ID : hi2c->MemTxCpltCallback = pCallback; break; case HAL_I2C_MEM_RX_COMPLETE_CB_ID : hi2c->MemRxCpltCallback = pCallback; break; case HAL_I2C_ERROR_CB_ID : hi2c->ErrorCallback = pCallback; break; case HAL_I2C_ABORT_CB_ID : hi2c->AbortCpltCallback = pCallback; break; case HAL_I2C_MSPINIT_CB_ID : hi2c->MspInitCallback = pCallback; break; case HAL_I2C_MSPDEINIT_CB_ID : hi2c->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_I2C_STATE_RESET == hi2c->State) { switch (CallbackID) { case HAL_I2C_MSPINIT_CB_ID : hi2c->MspInitCallback = pCallback; break; case HAL_I2C_MSPDEINIT_CB_ID : hi2c->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hi2c); return status; } /** * @brief Unregister an I2C Callback * I2C callback is redirected to the weak predefined callback * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * This parameter can be one of the following values: * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hi2c); if (HAL_I2C_STATE_READY == hi2c->State) { switch (CallbackID) { case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ break; case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ break; case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ break; case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ break; case HAL_I2C_LISTEN_COMPLETE_CB_ID : hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ break; case HAL_I2C_MEM_TX_COMPLETE_CB_ID : hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ break; case HAL_I2C_MEM_RX_COMPLETE_CB_ID : hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ break; case HAL_I2C_ERROR_CB_ID : hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ break; case HAL_I2C_ABORT_CB_ID : hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ break; case HAL_I2C_MSPINIT_CB_ID : hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ break; case HAL_I2C_MSPDEINIT_CB_ID : hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_I2C_STATE_RESET == hi2c->State) { switch (CallbackID) { case HAL_I2C_MSPINIT_CB_ID : hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ break; case HAL_I2C_MSPDEINIT_CB_ID : hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hi2c); return status; } /** * @brief Register the Slave Address Match I2C Callback * To be used instead of the weak HAL_I2C_AddrCallback() predefined callback * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pCallback pointer to the Address Match Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hi2c); if (HAL_I2C_STATE_READY == hi2c->State) { hi2c->AddrCallback = pCallback; } else { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hi2c); return status; } /** * @brief UnRegister the Slave Address Match I2C Callback * Info Ready I2C Callback is redirected to the weak HAL_I2C_AddrCallback() predefined callback * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hi2c); if (HAL_I2C_STATE_READY == hi2c->State) { hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ } else { /* Update the error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hi2c); return status; } #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup I2C_Exported_Functions_Group2 Input and Output operation functions * @brief Data transfers functions * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the I2C data transfers. (#) There are two modes of transfer: (++) Blocking mode : The communication is performed in the polling mode. The status of all data processing is returned by the same function after finishing transfer. (++) No-Blocking mode : The communication is performed using Interrupts or DMA. These functions return the status of the transfer startup. The end of the data processing will be indicated through the dedicated I2C IRQ when using Interrupt mode or the DMA IRQ when using DMA mode. (#) Blocking mode functions are : (++) HAL_I2C_Master_Transmit() (++) HAL_I2C_Master_Receive() (++) HAL_I2C_Slave_Transmit() (++) HAL_I2C_Slave_Receive() (++) HAL_I2C_Mem_Write() (++) HAL_I2C_Mem_Read() (++) HAL_I2C_IsDeviceReady() (#) No-Blocking mode functions with Interrupt are : (++) HAL_I2C_Master_Transmit_IT() (++) HAL_I2C_Master_Receive_IT() (++) HAL_I2C_Slave_Transmit_IT() (++) HAL_I2C_Slave_Receive_IT() (++) HAL_I2C_Mem_Write_IT() (++) HAL_I2C_Mem_Read_IT() (++) HAL_I2C_Master_Seq_Transmit_IT() (++) HAL_I2C_Master_Seq_Receive_IT() (++) HAL_I2C_Slave_Seq_Transmit_IT() (++) HAL_I2C_Slave_Seq_Receive_IT() (++) HAL_I2C_EnableListen_IT() (++) HAL_I2C_DisableListen_IT() (++) HAL_I2C_Master_Abort_IT() (#) No-Blocking mode functions with DMA are : (++) HAL_I2C_Master_Transmit_DMA() (++) HAL_I2C_Master_Receive_DMA() (++) HAL_I2C_Slave_Transmit_DMA() (++) HAL_I2C_Slave_Receive_DMA() (++) HAL_I2C_Mem_Write_DMA() (++) HAL_I2C_Mem_Read_DMA() (++) HAL_I2C_Master_Seq_Transmit_DMA() (++) HAL_I2C_Master_Seq_Receive_DMA() (++) HAL_I2C_Slave_Seq_Transmit_DMA() (++) HAL_I2C_Slave_Seq_Receive_DMA() (#) A set of Transfer Complete Callbacks are provided in non Blocking mode: (++) HAL_I2C_MasterTxCpltCallback() (++) HAL_I2C_MasterRxCpltCallback() (++) HAL_I2C_SlaveTxCpltCallback() (++) HAL_I2C_SlaveRxCpltCallback() (++) HAL_I2C_MemTxCpltCallback() (++) HAL_I2C_MemRxCpltCallback() (++) HAL_I2C_AddrCallback() (++) HAL_I2C_ListenCpltCallback() (++) HAL_I2C_ErrorCallback() (++) HAL_I2C_AbortCpltCallback() @endverbatim * @{ */ /** * @brief Transmits in master mode an amount of data in blocking mode. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_BUSY; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Send Slave Address */ if (I2C_MasterRequestWrite(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); while (hi2c->XferSize > 0U) { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->XferSize--; if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->XferSize--; } /* Wait until BTF flag is set */ if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receives in master mode an amount of data in blocking mode. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_BUSY; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Send Slave Address */ if (I2C_MasterRequestRead(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } if (hi2c->XferSize == 0U) { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else if (hi2c->XferSize == 1U) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else if (hi2c->XferSize == 2U) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } while (hi2c->XferSize > 0U) { if (hi2c->XferSize <= 3U) { /* One byte */ if (hi2c->XferSize == 1U) { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } /* Two bytes */ else if (hi2c->XferSize == 2U) { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } /* 3 Last bytes */ else { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } else { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } } hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Transmits in slave mode an amount of data in blocking mode. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Wait until ADDR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* If 10bit addressing mode is selected */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) { /* Wait until ADDR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } while (hi2c->XferSize > 0U) { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); return HAL_ERROR; } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->XferSize--; if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->XferSize--; } } /* Wait until AF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_AF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear AF flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receive in slave mode an amount of data in blocking mode * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == (uint16_t)0)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Wait until ADDR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); while (hi2c->XferSize > 0U) { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); return HAL_ERROR; } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } /* Wait until STOP flag is set */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); return HAL_ERROR; } /* Clear STOP flag */ __HAL_I2C_CLEAR_STOPFLAG(hi2c); /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Transmit in master mode an amount of data in non-blocking mode with Interrupt * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receive in master mode an amount of data in non-blocking mode with Interrupt * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Transmit in slave mode an amount of data in non-blocking mode with Interrupt * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) { if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receive in slave mode an amount of data in non-blocking mode with Interrupt * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) { if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Transmit in master mode an amount of data in non-blocking mode with DMA * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; HAL_StatusTypeDef dmaxferstatus; if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; if (hi2c->XferSize > 0U) { if (hi2c->hdmatx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmatx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmatx->XferHalfCpltCallback = NULL; hi2c->hdmatx->XferM1CpltCallback = NULL; hi2c->hdmatx->XferM1HalfCpltCallback = NULL; hi2c->hdmatx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receive in master mode an amount of data in non-blocking mode with DMA * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; HAL_StatusTypeDef dmaxferstatus; if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; if (hi2c->XferSize > 0U) { if (hi2c->hdmarx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmarx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmarx->XferHalfCpltCallback = NULL; hi2c->hdmarx->XferM1CpltCallback = NULL; hi2c->hdmarx->XferM1HalfCpltCallback = NULL; hi2c->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Transmit in slave mode an amount of data in non-blocking mode with DMA * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef dmaxferstatus; if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; if (hi2c->hdmatx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmatx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmatx->XferHalfCpltCallback = NULL; hi2c->hdmatx->XferM1CpltCallback = NULL; hi2c->hdmatx->XferM1HalfCpltCallback = NULL; hi2c->hdmatx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_LISTEN; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Enable DMA Request */ hi2c->Instance->CR2 |= I2C_CR2_DMAEN; return HAL_OK; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { return HAL_BUSY; } } /** * @brief Receive in slave mode an amount of data in non-blocking mode with DMA * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef dmaxferstatus; if (hi2c->State == HAL_I2C_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; if (hi2c->hdmarx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmarx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmarx->XferHalfCpltCallback = NULL; hi2c->hdmarx->XferM1CpltCallback = NULL; hi2c->hdmarx->XferM1HalfCpltCallback = NULL; hi2c->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_LISTEN; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); return HAL_OK; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { return HAL_BUSY; } } /** * @brief Write an amount of data in blocking mode to a specific memory address * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_BUSY; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } while (hi2c->XferSize > 0U) { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } /* Wait until BTF flag is set */ if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Read an amount of data in blocking mode from a specific memory address * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_BUSY; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } if (hi2c->XferSize == 0U) { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else if (hi2c->XferSize == 1U) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else if (hi2c->XferSize == 2U) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } while (hi2c->XferSize > 0U) { if (hi2c->XferSize <= 3U) { /* One byte */ if (hi2c->XferSize == 1U) { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } /* Two bytes */ else if (hi2c->XferSize == 2U) { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } /* 3 Last bytes */ else { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } else { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) { return HAL_ERROR; } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferSize--; hi2c->XferCount--; } } } hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Write an amount of data in non-blocking mode with Interrupt to a specific memory address * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; hi2c->Memaddress = MemAddress; hi2c->MemaddSize = MemAddSize; hi2c->EventCount = 0U; /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Read an amount of data in non-blocking mode with Interrupt from a specific memory address * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->Devaddress = DevAddress; hi2c->Memaddress = MemAddress; hi2c->MemaddSize = MemAddSize; hi2c->EventCount = 0U; /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Process Unlocked */ __HAL_UNLOCK(hi2c); if (hi2c->XferSize > 0U) { /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Write an amount of data in non-blocking mode with DMA to a specific memory address * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) { __IO uint32_t count = 0U; HAL_StatusTypeDef dmaxferstatus; /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; if (hi2c->XferSize > 0U) { if (hi2c->hdmatx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmatx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmatx->XferHalfCpltCallback = NULL; hi2c->hdmatx->XferM1CpltCallback = NULL; hi2c->hdmatx->XferM1HalfCpltCallback = NULL; hi2c->hdmatx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) { /* Abort the ongoing DMA */ dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmatx); /* Prevent unused argument(s) compilation and MISRA warning */ UNUSED(dmaxferstatus); /* Set the unused I2C DMA transfer complete callback to NULL */ hi2c->hdmatx->XferCpltCallback = NULL; /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->XferSize = 0U; hi2c->XferCount = 0U; /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_ERR); /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); return HAL_OK; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_SIZE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { return HAL_BUSY; } } /** * @brief Reads an amount of data in non-blocking mode with DMA from a specific memory address. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param pData Pointer to data buffer * @param Size Amount of data to be read * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) { /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); __IO uint32_t count = 0U; HAL_StatusTypeDef dmaxferstatus; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MEM; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = I2C_NO_OPTION_FRAME; if (hi2c->XferSize > 0U) { if (hi2c->hdmarx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmarx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmarx->XferHalfCpltCallback = NULL; hi2c->hdmarx->XferM1CpltCallback = NULL; hi2c->hdmarx->XferM1HalfCpltCallback = NULL; hi2c->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) { /* Abort the ongoing DMA */ dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmarx); /* Prevent unused argument(s) compilation and MISRA warning */ UNUSED(dmaxferstatus); /* Set the unused I2C DMA transfer complete callback to NULL */ hi2c->hdmarx->XferCpltCallback = NULL; /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->XferSize = 0U; hi2c->XferCount = 0U; /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); return HAL_ERROR; } if (hi2c->XferSize == 1U) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } else { /* Enable Last DMA bit */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_ERR); /* Enable DMA Request */ hi2c->Instance->CR2 |= I2C_CR2_DMAEN; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->State = HAL_I2C_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hi2c); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Checks if target device is ready for communication. * @note This function is used with Memory devices * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param Trials Number of trials * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout) { /* Get tick */ uint32_t tickstart = HAL_GetTick(); uint32_t I2C_Trials = 1U; FlagStatus tmp1; FlagStatus tmp2; if (hi2c->State == HAL_I2C_STATE_READY) { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_BUSY; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; hi2c->XferOptions = I2C_NO_OPTION_FRAME; do { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); /* Wait until ADDR or AF flag are set */ /* Get tick */ tickstart = HAL_GetTick(); tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); while ((hi2c->State != HAL_I2C_STATE_TIMEOUT) && (tmp1 == RESET) && (tmp2 == RESET)) { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) { hi2c->State = HAL_I2C_STATE_TIMEOUT; } tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); } hi2c->State = HAL_I2C_STATE_READY; /* Check if the ADDR flag has been set */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR) == SET) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Clear ADDR Flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_ERROR; } hi2c->State = HAL_I2C_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_OK; } else { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Clear AF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) { return HAL_ERROR; } } /* Increment Trials */ I2C_Trials++; } while (I2C_Trials < Trials); hi2c->State = HAL_I2C_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } else { return HAL_BUSY; } } /** * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with Interrupt. * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { __IO uint32_t Prev_State = 0x00U; __IO uint32_t count = 0x00U; /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Check Busy Flag only if FIRST call of Master interface */ if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; hi2c->Devaddress = DevAddress; Prev_State = hi2c->PreviousState; /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with DMA. * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { __IO uint32_t Prev_State = 0x00U; __IO uint32_t count = 0x00U; HAL_StatusTypeDef dmaxferstatus; /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Check Busy Flag only if FIRST call of Master interface */ if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; hi2c->Devaddress = DevAddress; Prev_State = hi2c->PreviousState; if (hi2c->XferSize > 0U) { if (hi2c->hdmatx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmatx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmatx->XferHalfCpltCallback = NULL; hi2c->hdmatx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* If XferOptions is not associated to a new frame, mean no start bit is request, enable directly the DMA request */ /* In other cases, DMA request is enabled after Slave address treatment in IRQHandler */ if ((XferOptions == I2C_NEXT_FRAME) || (XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) { /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential receive in master I2C mode an amount of data in non-blocking mode with Interrupt * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { __IO uint32_t Prev_State = 0x00U; __IO uint32_t count = 0U; uint32_t enableIT = (I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Check Busy Flag only if FIRST call of Master interface */ if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; hi2c->Devaddress = DevAddress; Prev_State = hi2c->PreviousState; if ((hi2c->XferCount == 2U) && ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP))) { if (Prev_State == I2C_STATE_MASTER_BUSY_RX) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); /* Remove Enabling of IT_BUF, mean RXNE treatment, treat the 2 bytes through BTF */ enableIT &= ~I2C_IT_BUF; } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable interrupts */ __HAL_I2C_ENABLE_IT(hi2c, enableIT); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential receive in master mode an amount of data in non-blocking mode with DMA * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { __IO uint32_t Prev_State = 0x00U; __IO uint32_t count = 0U; uint32_t enableIT = (I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); HAL_StatusTypeDef dmaxferstatus; /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (hi2c->State == HAL_I2C_STATE_READY) { /* Check Busy Flag only if FIRST call of Master interface */ if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) { /* Wait until BUSY flag is reset */ count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); /* Clear Last DMA bit */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); hi2c->State = HAL_I2C_STATE_BUSY_RX; hi2c->Mode = HAL_I2C_MODE_MASTER; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; hi2c->Devaddress = DevAddress; Prev_State = hi2c->PreviousState; if (hi2c->XferSize > 0U) { if ((hi2c->XferCount == 2U) && ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP))) { if (Prev_State == I2C_STATE_MASTER_BUSY_RX) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); /* Enable Last DMA bit */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); if ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_OTHER_AND_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) { /* Enable Last DMA bit */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); } } if (hi2c->hdmarx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmarx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmarx->XferHalfCpltCallback = NULL; hi2c->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Update interrupt for only EVT and ERR */ enableIT = (I2C_IT_EVT | I2C_IT_ERR); } else { /* Update interrupt for only ERR */ enableIT = I2C_IT_ERR; } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* If XferOptions is not associated to a new frame, mean no start bit is request, enable directly the DMA request */ /* In other cases, DMA request is enabled after Slave address treatment in IRQHandler */ if ((XferOptions == I2C_NEXT_FRAME) || (XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) { /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, enableIT); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ /* Mean Previous state is same as current state */ if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable interrupts */ __HAL_I2C_ENABLE_IT(hi2c, enableIT); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential transmit in slave mode an amount of data in non-blocking mode with Interrupt * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential transmit in slave mode an amount of data in non-blocking mode with DMA * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { HAL_StatusTypeDef dmaxferstatus; /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ /* and then toggle the HAL slave RX state to TX state */ if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) { if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { /* Abort DMA Xfer if any */ if (hi2c->hdmarx != NULL) { CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA RX */ if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); } } } } else if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) { if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Abort DMA Xfer if any */ if (hi2c->hdmatx != NULL) { /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA TX */ if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); } } } } else { /* Nothing to do */ } /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; if (hi2c->hdmatx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmatx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmatx->XferHalfCpltCallback = NULL; hi2c->hdmatx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_LISTEN; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Enable DMA Request */ hi2c->Instance->CR2 |= I2C_CR2_DMAEN; return HAL_OK; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { return HAL_BUSY; } } /** * @brief Sequential receive in slave mode an amount of data in non-blocking mode with Interrupt * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT, BUF and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sequential receive in slave mode an amount of data in non-blocking mode with DMA * @note This interface allow to manage repeated start condition when a direction change during transfer * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param pData Pointer to data buffer * @param Size Amount of data to be sent * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) { HAL_StatusTypeDef dmaxferstatus; /* Check the parameters */ assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hi2c); /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ /* and then toggle the HAL slave RX state to TX state */ if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) { if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { /* Abort DMA Xfer if any */ if (hi2c->hdmarx != NULL) { CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA RX */ if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); } } } } else if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) { if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Abort DMA Xfer if any */ if (hi2c->hdmatx != NULL) { /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA TX */ if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); } } } } else { /* Nothing to do */ } /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; hi2c->Mode = HAL_I2C_MODE_SLAVE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; hi2c->XferCount = Size; hi2c->XferSize = hi2c->XferCount; hi2c->XferOptions = XferOptions; if (hi2c->hdmarx != NULL) { /* Set the I2C DMA transfer complete callback */ hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; /* Set the DMA error callback */ hi2c->hdmarx->XferErrorCallback = I2C_DMAError; /* Set the unused DMA callbacks to NULL */ hi2c->hdmarx->XferHalfCpltCallback = NULL; hi2c->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_LISTEN; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } if (dmaxferstatus == HAL_OK) { /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Note : The I2C interrupts must be enabled after unlocking current process to avoid the risk of I2C interrupt handle execution before current process unlock */ /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); return HAL_OK; } else { /* Update I2C state */ hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Update I2C error code */ hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } else { return HAL_BUSY; } } /** * @brief Enable the Address listen mode with Interrupt. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c) { if (hi2c->State == HAL_I2C_STATE_READY) { hi2c->State = HAL_I2C_STATE_LISTEN; /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); } /* Enable Address Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable EVT and ERR interrupt */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Disable the Address listen mode with Interrupt. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c) { /* Declaration of tmp to prevent undefined behavior of volatile usage */ uint32_t tmp; /* Disable Address listen mode only if a transfer is not ongoing */ if (hi2c->State == HAL_I2C_STATE_LISTEN) { tmp = (uint32_t)(hi2c->State) & I2C_STATE_MSK; hi2c->PreviousState = tmp | (uint32_t)(hi2c->Mode); hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Disable Address Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Disable EVT and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Abort a master I2C IT or DMA process communication with Interrupt. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; /* Prevent unused argument(s) compilation warning */ UNUSED(DevAddress); /* Abort Master transfer during Receive or Transmit process */ if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET) && (CurrentMode == HAL_I2C_MODE_MASTER)) { /* Process Locked */ __HAL_LOCK(hi2c); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_ABORT; /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->XferCount = 0U; /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Call the corresponding callback to inform upper layer of End of Transfer */ I2C_ITError(hi2c); return HAL_OK; } else { /* Wrong usage of abort function */ /* This function should be used only in case of abort monitored by master device */ /* Or periphal is not in busy state, mean there is no active sequence to be abort */ return HAL_ERROR; } } /** * @} */ /** @defgroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks * @{ */ /** * @brief This function handles I2C event interrupt request. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c) { uint32_t sr1itflags; uint32_t sr2itflags = 0U; uint32_t itsources = READ_REG(hi2c->Instance->CR2); uint32_t CurrentXferOptions = hi2c->XferOptions; HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; HAL_I2C_StateTypeDef CurrentState = hi2c->State; /* Master or Memory mode selected */ if ((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) { sr2itflags = READ_REG(hi2c->Instance->SR2); sr1itflags = READ_REG(hi2c->Instance->SR1); /* Exit IRQ event until Start Bit detected in case of Other frame requested */ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_SB) == RESET) && (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(CurrentXferOptions) == 1U)) { return; } /* SB Set ----------------------------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_SB) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { /* Convert OTHER_xxx XferOptions if any */ I2C_ConvertOtherXferOptions(hi2c); I2C_Master_SB(hi2c); } /* ADD10 Set -------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADD10) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_Master_ADD10(hi2c); } /* ADDR Set --------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADDR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_Master_ADDR(hi2c); } /* I2C in mode Transmitter -----------------------------------------------*/ else if (I2C_CHECK_FLAG(sr2itflags, I2C_FLAG_TRA) != RESET) { /* Do not check buffer and BTF flag if a Xfer DMA is on going */ if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) { /* TXE set and BTF reset -----------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_TXE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) { I2C_MasterTransmit_TXE(hi2c); } /* BTF set -------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { if (CurrentMode == HAL_I2C_MODE_MASTER) { I2C_MasterTransmit_BTF(hi2c); } else /* HAL_I2C_MODE_MEM */ { I2C_MemoryTransmit_TXE_BTF(hi2c); } } else { /* Do nothing */ } } } /* I2C in mode Receiver --------------------------------------------------*/ else { /* Do not check buffer and BTF flag if a Xfer DMA is on going */ if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) { /* RXNE set and BTF reset -----------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_RXNE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) { I2C_MasterReceive_RXNE(hi2c); } /* BTF set -------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_MasterReceive_BTF(hi2c); } else { /* Do nothing */ } } } } /* Slave mode selected */ else { /* If an error is detected, read only SR1 register to prevent */ /* a clear of ADDR flags by reading SR2 after reading SR1 in Error treatment */ if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) { sr1itflags = READ_REG(hi2c->Instance->SR1); } else { sr2itflags = READ_REG(hi2c->Instance->SR2); sr1itflags = READ_REG(hi2c->Instance->SR1); } /* ADDR set --------------------------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADDR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { /* Now time to read SR2, this will clear ADDR flag automatically */ if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) { sr2itflags = READ_REG(hi2c->Instance->SR2); } I2C_Slave_ADDR(hi2c, sr2itflags); } /* STOPF set --------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_STOPF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_Slave_STOPF(hi2c); } /* I2C in mode Transmitter -----------------------------------------------*/ else if ((CurrentState == HAL_I2C_STATE_BUSY_TX) || (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN)) { /* TXE set and BTF reset -----------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_TXE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) { I2C_SlaveTransmit_TXE(hi2c); } /* BTF set -------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_SlaveTransmit_BTF(hi2c); } else { /* Do nothing */ } } /* I2C in mode Receiver --------------------------------------------------*/ else { /* RXNE set and BTF reset ----------------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_RXNE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) { I2C_SlaveReceive_RXNE(hi2c); } /* BTF set -------------------------------------------------------------*/ else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) { I2C_SlaveReceive_BTF(hi2c); } else { /* Do nothing */ } } } } /** * @brief This function handles I2C error interrupt request. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c) { HAL_I2C_ModeTypeDef tmp1; uint32_t tmp2; HAL_I2C_StateTypeDef tmp3; uint32_t tmp4; uint32_t sr1itflags = READ_REG(hi2c->Instance->SR1); uint32_t itsources = READ_REG(hi2c->Instance->CR2); uint32_t error = HAL_I2C_ERROR_NONE; HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; /* I2C Bus error interrupt occurred ----------------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BERR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) { error |= HAL_I2C_ERROR_BERR; /* Clear BERR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); } /* I2C Arbitration Lost error interrupt occurred ---------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ARLO) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) { error |= HAL_I2C_ERROR_ARLO; /* Clear ARLO flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); } /* I2C Acknowledge failure error interrupt occurred ------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_AF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) { tmp1 = CurrentMode; tmp2 = hi2c->XferCount; tmp3 = hi2c->State; tmp4 = hi2c->PreviousState; if ((tmp1 == HAL_I2C_MODE_SLAVE) && (tmp2 == 0U) && \ ((tmp3 == HAL_I2C_STATE_BUSY_TX) || (tmp3 == HAL_I2C_STATE_BUSY_TX_LISTEN) || \ ((tmp3 == HAL_I2C_STATE_LISTEN) && (tmp4 == I2C_STATE_SLAVE_BUSY_TX)))) { I2C_Slave_AF(hi2c); } else { /* Clear AF flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); error |= HAL_I2C_ERROR_AF; /* Do not generate a STOP in case of Slave receive non acknowledge during transfer (mean not at the end of transfer) */ if ((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } } } /* I2C Over-Run/Under-Run interrupt occurred -------------------------------*/ if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_OVR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) { error |= HAL_I2C_ERROR_OVR; /* Clear OVR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); } /* Call the Error Callback in case of Error detected -----------------------*/ if (error != HAL_I2C_ERROR_NONE) { hi2c->ErrorCode |= error; I2C_ITError(hi2c); } } /** * @brief Master Tx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MasterTxCpltCallback could be implemented in the user file */ } /** * @brief Master Rx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MasterRxCpltCallback could be implemented in the user file */ } /** @brief Slave Tx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_SlaveTxCpltCallback could be implemented in the user file */ } /** * @brief Slave Rx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_SlaveRxCpltCallback could be implemented in the user file */ } /** * @brief Slave Address Match callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param TransferDirection Master request Transfer Direction (Write/Read), value of @ref I2C_XferDirection_definition * @param AddrMatchCode Address Match Code * @retval None */ __weak void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); UNUSED(TransferDirection); UNUSED(AddrMatchCode); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_AddrCallback() could be implemented in the user file */ } /** * @brief Listen Complete callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_ListenCpltCallback() could be implemented in the user file */ } /** * @brief Memory Tx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MemTxCpltCallback could be implemented in the user file */ } /** * @brief Memory Rx Transfer completed callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_MemRxCpltCallback could be implemented in the user file */ } /** * @brief I2C error callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_ErrorCallback could be implemented in the user file */ } /** * @brief I2C abort callback. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval None */ __weak void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c) { /* Prevent unused argument(s) compilation warning */ UNUSED(hi2c); /* NOTE : This function should not be modified, when the callback is needed, the HAL_I2C_AbortCpltCallback could be implemented in the user file */ } /** * @} */ /** @defgroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions * @brief Peripheral State, Mode and Error functions * @verbatim =============================================================================== ##### Peripheral State, Mode and Error functions ##### =============================================================================== [..] This subsection permit to get in run-time the status of the peripheral and the data flow. @endverbatim * @{ */ /** * @brief Return the I2C handle state. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL state */ HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c) { /* Return I2C handle state */ return hi2c->State; } /** * @brief Returns the I2C Master, Slave, Memory or no mode. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval HAL mode */ HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c) { return hi2c->Mode; } /** * @brief Return the I2C error code. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval I2C Error Code */ uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c) { return hi2c->ErrorCode; } /** * @} */ /** * @} */ /** @addtogroup I2C_Private_Functions * @{ */ /** * @brief Handle TXE flag for Master * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_MasterTransmit_TXE(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; uint32_t CurrentXferOptions = hi2c->XferOptions; if ((hi2c->XferSize == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) { /* Call TxCpltCallback() directly if no stop mode is set */ if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) && (CurrentXferOptions != I2C_NO_OPTION_FRAME)) { __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->State = HAL_I2C_STATE_READY; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterTxCpltCallback(hi2c); #else HAL_I2C_MasterTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else /* Generate Stop condition then Call TxCpltCallback() */ { /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; if (hi2c->Mode == HAL_I2C_MODE_MEM) { hi2c->Mode = HAL_I2C_MODE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MemTxCpltCallback(hi2c); #else HAL_I2C_MemTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { hi2c->Mode = HAL_I2C_MODE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterTxCpltCallback(hi2c); #else HAL_I2C_MasterTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } else if ((CurrentState == HAL_I2C_STATE_BUSY_TX) || \ ((CurrentMode == HAL_I2C_MODE_MEM) && (CurrentState == HAL_I2C_STATE_BUSY_RX))) { if (hi2c->XferCount == 0U) { /* Disable BUF interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); } else { if (hi2c->Mode == HAL_I2C_MODE_MEM) { I2C_MemoryTransmit_TXE_BTF(hi2c); } else { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } } } else { /* Do nothing */ } } /** * @brief Handle BTF flag for Master transmitter * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_MasterTransmit_BTF(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; if (hi2c->State == HAL_I2C_STATE_BUSY_TX) { if (hi2c->XferCount != 0U) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } else { /* Call TxCpltCallback() directly if no stop mode is set */ if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) && (CurrentXferOptions != I2C_NO_OPTION_FRAME)) { __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->State = HAL_I2C_STATE_READY; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterTxCpltCallback(hi2c); #else HAL_I2C_MasterTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else /* Generate Stop condition then Call TxCpltCallback() */ { /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterTxCpltCallback(hi2c); #else HAL_I2C_MasterTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } else { /* Do nothing */ } } /** * @brief Handle TXE and BTF flag for Memory transmitter * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_MemoryTransmit_TXE_BTF(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; if (hi2c->EventCount == 0U) { /* If Memory address size is 8Bit */ if (hi2c->MemaddSize == I2C_MEMADD_SIZE_8BIT) { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(hi2c->Memaddress); hi2c->EventCount += 2U; } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(hi2c->Memaddress); hi2c->EventCount++; } } else if (hi2c->EventCount == 1U) { /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(hi2c->Memaddress); hi2c->EventCount++; } else if (hi2c->EventCount == 2U) { if (CurrentState == HAL_I2C_STATE_BUSY_RX) { /* Generate Restart */ hi2c->Instance->CR1 |= I2C_CR1_START; } else if ((hi2c->XferCount > 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } else if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) { /* Generate Stop condition then Call TxCpltCallback() */ /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MemTxCpltCallback(hi2c); #else HAL_I2C_MemTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { /* Do nothing */ } } else { /* Do nothing */ } } /** * @brief Handle RXNE flag for Master * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_MasterReceive_RXNE(I2C_HandleTypeDef *hi2c) { if (hi2c->State == HAL_I2C_STATE_BUSY_RX) { uint32_t tmp; tmp = hi2c->XferCount; if (tmp > 3U) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; if (hi2c->XferCount == (uint16_t)3) { /* Disable BUF interrupt, this help to treat correctly the last 4 bytes on BTF subroutine */ /* Disable BUF interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); } } else if ((hi2c->XferOptions != I2C_FIRST_AND_NEXT_FRAME) && ((tmp == 1U) || (tmp == 0U))) { if (I2C_WaitOnSTOPRequestThroughIT(hi2c) == HAL_OK) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->State = HAL_I2C_STATE_READY; if (hi2c->Mode == HAL_I2C_MODE_MEM) { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MemRxCpltCallback(hi2c); #else HAL_I2C_MemRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterRxCpltCallback(hi2c); #else HAL_I2C_MasterRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } else { /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Call user error callback */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ErrorCallback(hi2c); #else HAL_I2C_ErrorCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } else { /* Do nothing */ } } } /** * @brief Handle BTF flag for Master receiver * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_MasterReceive_BTF(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; if (hi2c->XferCount == 4U) { /* Disable BUF interrupt, this help to treat correctly the last 2 bytes on BTF subroutine if there is a reception delay between N-1 and N byte */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } else if (hi2c->XferCount == 3U) { /* Disable BUF interrupt, this help to treat correctly the last 2 bytes on BTF subroutine if there is a reception delay between N-1 and N byte */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME)) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } else if (hi2c->XferCount == 2U) { /* Prepare next transfer or stop current transfer */ if ((CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP)) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } else if ((CurrentXferOptions == I2C_NEXT_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_NEXT_FRAME)) { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } else if (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else { /* Do nothing */ } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; /* Disable EVT and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); hi2c->State = HAL_I2C_STATE_READY; if (hi2c->Mode == HAL_I2C_MODE_MEM) { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MemRxCpltCallback(hi2c); #else HAL_I2C_MemRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterRxCpltCallback(hi2c); #else HAL_I2C_MasterRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } else { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } } /** * @brief Handle SB flag for Master * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_Master_SB(I2C_HandleTypeDef *hi2c) { if (hi2c->Mode == HAL_I2C_MODE_MEM) { if (hi2c->EventCount == 0U) { /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(hi2c->Devaddress); } else { hi2c->Instance->DR = I2C_7BIT_ADD_READ(hi2c->Devaddress); } } else { if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) { /* Send slave 7 Bits address */ if (hi2c->State == HAL_I2C_STATE_BUSY_TX) { hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(hi2c->Devaddress); } else { hi2c->Instance->DR = I2C_7BIT_ADD_READ(hi2c->Devaddress); } if (((hi2c->hdmatx != NULL) && (hi2c->hdmatx->XferCpltCallback != NULL)) || ((hi2c->hdmarx != NULL) && (hi2c->hdmarx->XferCpltCallback != NULL))) { /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } } else { if (hi2c->EventCount == 0U) { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(hi2c->Devaddress); } else if (hi2c->EventCount == 1U) { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_READ(hi2c->Devaddress); } else { /* Do nothing */ } } } } /** * @brief Handle ADD10 flag for Master * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_Master_ADD10(I2C_HandleTypeDef *hi2c) { /* Send slave address */ hi2c->Instance->DR = I2C_10BIT_ADDRESS(hi2c->Devaddress); if (((hi2c->hdmatx != NULL) && (hi2c->hdmatx->XferCpltCallback != NULL)) || ((hi2c->hdmarx != NULL) && (hi2c->hdmarx->XferCpltCallback != NULL))) { /* Enable DMA Request */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); } } /** * @brief Handle ADDR flag for Master * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_Master_ADDR(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; uint32_t CurrentXferOptions = hi2c->XferOptions; uint32_t Prev_State = hi2c->PreviousState; if (hi2c->State == HAL_I2C_STATE_BUSY_RX) { if ((hi2c->EventCount == 0U) && (CurrentMode == HAL_I2C_MODE_MEM)) { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else if ((hi2c->EventCount == 0U) && (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT)) { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); hi2c->EventCount++; } else { if (hi2c->XferCount == 0U) { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } else if (hi2c->XferCount == 1U) { if (CurrentXferOptions == I2C_NO_OPTION_FRAME) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } } /* Prepare next transfer or stop current transfer */ else if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) \ && ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (CurrentXferOptions == I2C_FIRST_FRAME))) { if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP)) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } } else if (hi2c->XferCount == 2U) { if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP)) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } if (((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) && ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP) || (CurrentXferOptions == I2C_LAST_FRAME))) { /* Enable Last DMA bit */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); if (((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) && ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP) || (CurrentXferOptions == I2C_LAST_FRAME))) { /* Enable Last DMA bit */ SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } /* Reset Event counter */ hi2c->EventCount = 0U; } } else { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); } } /** * @brief Handle TXE flag for Slave * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_SlaveTransmit_TXE(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; if (hi2c->XferCount != 0U) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN)) { /* Last Byte is received, disable Interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); /* Set state at HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; hi2c->State = HAL_I2C_STATE_LISTEN; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveTxCpltCallback(hi2c); #else HAL_I2C_SlaveTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } /** * @brief Handle BTF flag for Slave transmitter * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_SlaveTransmit_BTF(I2C_HandleTypeDef *hi2c) { if (hi2c->XferCount != 0U) { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } } /** * @brief Handle RXNE flag for Slave * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_SlaveReceive_RXNE(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; if (hi2c->XferCount != 0U) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN)) { /* Last Byte is received, disable Interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); /* Set state at HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; hi2c->State = HAL_I2C_STATE_LISTEN; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveRxCpltCallback(hi2c); #else HAL_I2C_SlaveRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } /** * @brief Handle BTF flag for Slave receiver * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_SlaveReceive_BTF(I2C_HandleTypeDef *hi2c) { if (hi2c->XferCount != 0U) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } } /** * @brief Handle ADD flag for Slave * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param IT2Flags Interrupt2 flags to handle. * @retval None */ static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags) { uint8_t TransferDirection = I2C_DIRECTION_RECEIVE; uint16_t SlaveAddrCode; if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { /* Disable BUF interrupt, BUF enabling is manage through slave specific interface */ __HAL_I2C_DISABLE_IT(hi2c, (I2C_IT_BUF)); /* Transfer Direction requested by Master */ if (I2C_CHECK_FLAG(IT2Flags, I2C_FLAG_TRA) == RESET) { TransferDirection = I2C_DIRECTION_TRANSMIT; } if (I2C_CHECK_FLAG(IT2Flags, I2C_FLAG_DUALF) == RESET) { SlaveAddrCode = (uint16_t)hi2c->Init.OwnAddress1; } else { SlaveAddrCode = (uint16_t)hi2c->Init.OwnAddress2; } /* Process Unlocked */ __HAL_UNLOCK(hi2c); /* Call Slave Addr callback */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->AddrCallback(hi2c, TransferDirection, SlaveAddrCode); #else HAL_I2C_AddrCallback(hi2c, TransferDirection, SlaveAddrCode); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { /* Clear ADDR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); /* Process Unlocked */ __HAL_UNLOCK(hi2c); } } /** * @brief Handle STOPF flag for Slave * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_Slave_STOPF(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Clear STOPF flag */ __HAL_I2C_CLEAR_STOPFLAG(hi2c); /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* If a DMA is ongoing, Update handle size context */ if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { if ((CurrentState == HAL_I2C_STATE_BUSY_RX) || (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN)) { hi2c->XferCount = (uint16_t)(__HAL_DMA_GET_COUNTER(hi2c->hdmarx)); if (hi2c->XferCount != 0U) { /* Set ErrorCode corresponding to a Non-Acknowledge */ hi2c->ErrorCode |= HAL_I2C_ERROR_AF; } /* Disable, stop the current DMA */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Abort DMA Xfer if any */ if (HAL_DMA_GetState(hi2c->hdmarx) != HAL_DMA_STATE_READY) { /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA RX */ if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); } } } else { hi2c->XferCount = (uint16_t)(__HAL_DMA_GET_COUNTER(hi2c->hdmatx)); if (hi2c->XferCount != 0U) { /* Set ErrorCode corresponding to a Non-Acknowledge */ hi2c->ErrorCode |= HAL_I2C_ERROR_AF; } /* Disable, stop the current DMA */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); /* Abort DMA Xfer if any */ if (HAL_DMA_GetState(hi2c->hdmatx) != HAL_DMA_STATE_READY) { /* Set the I2C DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; /* Abort DMA TX */ if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); } } } } /* All data are not transferred, so set error code accordingly */ if (hi2c->XferCount != 0U) { /* Store Last receive data if any */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } /* Store Last receive data if any */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; /* Update counter */ hi2c->XferCount--; } if (hi2c->XferCount != 0U) { /* Set ErrorCode corresponding to a Non-Acknowledge */ hi2c->ErrorCode |= HAL_I2C_ERROR_AF; } } if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) { /* Call the corresponding callback to inform upper layer of End of Transfer */ I2C_ITError(hi2c); } else { if (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN) { /* Set state at HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_LISTEN; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveRxCpltCallback(hi2c); #else HAL_I2C_SlaveRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } if (hi2c->State == HAL_I2C_STATE_LISTEN) { hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ListenCpltCallback(hi2c); #else HAL_I2C_ListenCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { if ((hi2c->PreviousState == I2C_STATE_SLAVE_BUSY_RX) || (CurrentState == HAL_I2C_STATE_BUSY_RX)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveRxCpltCallback(hi2c); #else HAL_I2C_SlaveRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } } /** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @retval None */ static void I2C_Slave_AF(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; uint32_t CurrentXferOptions = hi2c->XferOptions; if (((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME)) && \ (CurrentState == HAL_I2C_STATE_LISTEN)) { hi2c->XferOptions = I2C_NO_OPTION_FRAME; /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Clear AF flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ListenCpltCallback(hi2c); #else HAL_I2C_ListenCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else if (CurrentState == HAL_I2C_STATE_BUSY_TX) { hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); /* Clear AF flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveTxCpltCallback(hi2c); #else HAL_I2C_SlaveTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { /* Clear AF flag only */ /* State Listen, but XferOptions == FIRST or NEXT */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); } } /** * @brief I2C interrupts error process * @param hi2c I2C handle. * @retval None */ static void I2C_ITError(I2C_HandleTypeDef *hi2c) { /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; uint32_t CurrentError; if (((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) && (CurrentState == HAL_I2C_STATE_BUSY_RX)) { /* Disable Pos bit in I2C CR1 when error occurred in Master/Mem Receive IT Process */ hi2c->Instance->CR1 &= ~I2C_CR1_POS; } if (((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { /* keep HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_LISTEN; } else { /* If state is an abort treatment on going, don't change state */ /* This change will be do later */ if ((READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) && (CurrentState != HAL_I2C_STATE_ABORT)) { hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; } hi2c->PreviousState = I2C_STATE_NONE; } /* Abort DMA transfer */ if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) == I2C_CR2_DMAEN) { hi2c->Instance->CR2 &= ~I2C_CR2_DMAEN; if (hi2c->hdmatx->State != HAL_DMA_STATE_READY) { /* Set the DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) { /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); hi2c->State = HAL_I2C_STATE_READY; /* Call Directly XferAbortCallback function in case of error */ hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); } } else { /* Set the DMA Abort callback : will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) { /* Store Last receive data if any */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; } /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); hi2c->State = HAL_I2C_STATE_READY; /* Call Directly hi2c->hdmarx->XferAbortCallback function in case of error */ hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); } } } else if (hi2c->State == HAL_I2C_STATE_ABORT) { hi2c->State = HAL_I2C_STATE_READY; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Store Last receive data if any */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; } /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->AbortCpltCallback(hi2c); #else HAL_I2C_AbortCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { /* Store Last receive data if any */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; /* Increment Buffer pointer */ hi2c->pBuffPtr++; } /* Call user error callback */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ErrorCallback(hi2c); #else HAL_I2C_ErrorCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } /* STOP Flag is not set after a NACK reception, BusError, ArbitrationLost, OverRun */ CurrentError = hi2c->ErrorCode; if (((CurrentError & HAL_I2C_ERROR_BERR) == HAL_I2C_ERROR_BERR) || \ ((CurrentError & HAL_I2C_ERROR_ARLO) == HAL_I2C_ERROR_ARLO) || \ ((CurrentError & HAL_I2C_ERROR_AF) == HAL_I2C_ERROR_AF) || \ ((CurrentError & HAL_I2C_ERROR_OVR) == HAL_I2C_ERROR_OVR)) { /* Disable EVT, BUF and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); } /* So may inform upper layer that listen phase is stopped */ /* during NACK error treatment */ CurrentState = hi2c->State; if (((hi2c->ErrorCode & HAL_I2C_ERROR_AF) == HAL_I2C_ERROR_AF) && (CurrentState == HAL_I2C_STATE_LISTEN)) { hi2c->XferOptions = I2C_NO_OPTION_FRAME; hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ListenCpltCallback(hi2c); #else HAL_I2C_ListenCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } /** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_MasterRequestWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) { /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; /* Generate Start condition if first transfer */ if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) { /* Generate ReStart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } else { /* Do nothing */ } /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) { /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); } else { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); /* Wait until ADD10 flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } /* Send slave address */ hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); } /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } return HAL_OK; } /** * @brief Master sends target device address for read request. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_MasterRequestRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) { /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start condition if first transfer */ if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) { /* Generate ReStart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); } else { /* Do nothing */ } /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) { /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); } else { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); /* Wait until ADD10 flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } /* Send slave address */ hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_READ(DevAddress); } /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } return HAL_OK; } /** * @brief Master sends target device address followed by internal memory address for write request. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); } return HAL_OK; } /** * @brief Master sends target device address followed by internal memory address for read request. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param DevAddress Target device address: The device 7 bits address value * in datasheet must be shifted to the left before calling the interface * @param MemAddress Internal memory address * @param MemAddSize Size of internal memory address * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); } /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } return HAL_ERROR; } /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) { hi2c->ErrorCode = HAL_I2C_WRONG_START; } return HAL_TIMEOUT; } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) { return HAL_ERROR; } return HAL_OK; } /** * @brief DMA I2C process complete callback. * @param hdma DMA handle * @retval None */ static void I2C_DMAXferCplt(DMA_HandleTypeDef *hdma) { I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; uint32_t CurrentXferOptions = hi2c->XferOptions; /* Disable EVT and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Clear Complete callback */ if (hi2c->hdmatx != NULL) { hi2c->hdmatx->XferCpltCallback = NULL; } if (hi2c->hdmarx != NULL) { hi2c->hdmarx->XferCpltCallback = NULL; } if ((((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_BUSY_TX) == (uint32_t)HAL_I2C_STATE_BUSY_TX) || ((((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_BUSY_RX) == (uint32_t)HAL_I2C_STATE_BUSY_RX) && (CurrentMode == HAL_I2C_MODE_SLAVE))) { /* Disable DMA Request */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); hi2c->XferCount = 0U; if (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN) { /* Set state at HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; hi2c->State = HAL_I2C_STATE_LISTEN; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveTxCpltCallback(hi2c); #else HAL_I2C_SlaveTxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else if (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN) { /* Set state at HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; hi2c->State = HAL_I2C_STATE_LISTEN; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->SlaveRxCpltCallback(hi2c); #else HAL_I2C_SlaveRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { /* Do nothing */ } /* Enable EVT and ERR interrupt to treat end of transfer in IRQ handler */ __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); } /* Check current Mode, in case of treatment DMA handler have been preempted by a prior interrupt */ else if (hi2c->Mode != HAL_I2C_MODE_NONE) { if (hi2c->XferCount == (uint16_t)1) { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); } /* Disable EVT and ERR interrupt */ __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); /* Prepare next transfer or stop current transfer */ if ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_OTHER_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME)) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); } /* Disable Last DMA */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); /* Disable DMA Request */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); hi2c->XferCount = 0U; /* Check if Errors has been detected during transfer */ if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) { #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ErrorCallback(hi2c); #else HAL_I2C_ErrorCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { hi2c->State = HAL_I2C_STATE_READY; if (hi2c->Mode == HAL_I2C_MODE_MEM) { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_NONE; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MemRxCpltCallback(hi2c); #else HAL_I2C_MemRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->MasterRxCpltCallback(hi2c); #else HAL_I2C_MasterRxCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } } else { /* Do nothing */ } } /** * @brief DMA I2C communication error callback. * @param hdma DMA handle * @retval None */ static void I2C_DMAError(DMA_HandleTypeDef *hdma) { I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ /* Clear Complete callback */ if (hi2c->hdmatx != NULL) { hi2c->hdmatx->XferCpltCallback = NULL; } if (hi2c->hdmarx != NULL) { hi2c->hdmarx->XferCpltCallback = NULL; } /* Ignore DMA FIFO error */ if (HAL_DMA_GetError(hdma) != HAL_DMA_ERROR_FE) { /* Disable Acknowledge */ hi2c->Instance->CR1 &= ~I2C_CR1_ACK; hi2c->XferCount = 0U; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ErrorCallback(hi2c); #else HAL_I2C_ErrorCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } /** * @brief DMA I2C communication abort callback * (To be called at end of DMA Abort procedure). * @param hdma DMA handle. * @retval None */ static void I2C_DMAAbort(DMA_HandleTypeDef *hdma) { __IO uint32_t count = 0U; I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ HAL_I2C_StateTypeDef CurrentState = hi2c->State; /* During abort treatment, check that there is no pending STOP request */ /* Wait until STOP flag is reset */ count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); do { if (count == 0U) { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; break; } count--; } while (READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP); /* Clear Complete callback */ if (hi2c->hdmatx != NULL) { hi2c->hdmatx->XferCpltCallback = NULL; } if (hi2c->hdmarx != NULL) { hi2c->hdmarx->XferCpltCallback = NULL; } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); hi2c->XferCount = 0U; /* Reset XferAbortCallback */ if (hi2c->hdmatx != NULL) { hi2c->hdmatx->XferAbortCallback = NULL; } if (hi2c->hdmarx != NULL) { hi2c->hdmarx->XferAbortCallback = NULL; } /* Disable I2C peripheral to prevent dummy data in buffer */ __HAL_I2C_DISABLE(hi2c); /* Check if come from abort from user */ if (hi2c->State == HAL_I2C_STATE_ABORT) { hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode = HAL_I2C_ERROR_NONE; /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->AbortCpltCallback(hi2c); #else HAL_I2C_AbortCpltCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } else { if (((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) { /* Renable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); /* keep HAL_I2C_STATE_LISTEN */ hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_LISTEN; } else { hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; } /* Call the corresponding callback to inform upper layer of End of Transfer */ #if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) hi2c->ErrorCallback(hi2c); #else HAL_I2C_ErrorCallback(hi2c); #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } } /** * @brief This function handles I2C Communication Timeout. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param Flag specifies the I2C flag to check. * @param Status The new Flag status (SET or RESET). * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { /* Wait until flag is set */ while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } } return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for Master addressing phase. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for I2C module * @param Flag specifies the I2C flag to check. * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart) { while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) { if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); /* Clear AF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_AF; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } } return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for specific usage of TXE flag. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) { return HAL_ERROR; } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } } return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for specific usage of BTF flag. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) { return HAL_ERROR; } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } } return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for specific usage of STOP flag. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) { return HAL_ERROR; } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for specific usage of STOP request through Interrupt. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnSTOPRequestThroughIT(I2C_HandleTypeDef *hi2c) { __IO uint32_t count = 0U; /* Wait until STOP flag is reset */ count = I2C_TIMEOUT_STOP_FLAG * (SystemCoreClock / 25U / 1000U); do { count--; if (count == 0U) { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; return HAL_ERROR; } } while (READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP); return HAL_OK; } /** * @brief This function handles I2C Communication Timeout for specific usage of RXNE flag. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) { /* Check if a STOPF is detected */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) { hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } } return HAL_OK; } /** * @brief This function handles Acknowledge failed detection during an I2C Communication. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c) { if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); hi2c->PreviousState = I2C_STATE_NONE; hi2c->State = HAL_I2C_STATE_READY; hi2c->Mode = HAL_I2C_MODE_NONE; hi2c->ErrorCode |= HAL_I2C_ERROR_AF; /* Process Unlocked */ __HAL_UNLOCK(hi2c); return HAL_ERROR; } return HAL_OK; } /** * @brief Convert I2Cx OTHER_xxx XferOptions to functional XferOptions. * @param hi2c I2C handle. * @retval None */ static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c) { /* if user set XferOptions to I2C_OTHER_FRAME */ /* it request implicitly to generate a restart condition */ /* set XferOptions to I2C_FIRST_FRAME */ if (hi2c->XferOptions == I2C_OTHER_FRAME) { hi2c->XferOptions = I2C_FIRST_FRAME; } /* else if user set XferOptions to I2C_OTHER_AND_LAST_FRAME */ /* it request implicitly to generate a restart condition */ /* then generate a stop condition at the end of transfer */ /* set XferOptions to I2C_FIRST_AND_LAST_FRAME */ else if (hi2c->XferOptions == I2C_OTHER_AND_LAST_FRAME) { hi2c->XferOptions = I2C_FIRST_AND_LAST_FRAME; } else { /* Nothing to do */ } } /** * @} */ #endif /* HAL_I2C_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_i2c_ex.c * @author MCD Application Team * @brief I2C Extension HAL module driver. * This file provides firmware functions to manage the following * functionalities of I2C extension peripheral: * + Extension features functions * @verbatim ============================================================================== ##### I2C peripheral extension features ##### ============================================================================== [..] Comparing to other previous devices, the I2C interface for STM32F427xx/437xx/ 429xx/439xx devices contains the following additional features : (+) Possibility to disable or enable Analog Noise Filter (+) Use of a configured Digital Noise Filter ##### How to use this driver ##### ============================================================================== [..] This driver provides functions to configure Noise Filter (#) Configure I2C Analog noise filter using the function HAL_I2C_AnalogFilter_Config() (#) Configure I2C Digital noise filter using the function HAL_I2C_DigitalFilter_Config() @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup I2CEx I2CEx * @brief I2C HAL module driver * @{ */ #ifdef HAL_I2C_MODULE_ENABLED #if defined(I2C_FLTR_ANOFF)&&defined(I2C_FLTR_DNF) /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup I2CEx_Exported_Functions I2C Exported Functions * @{ */ /** @defgroup I2CEx_Exported_Functions_Group1 Extension features functions * @brief Extension features functions * @verbatim =============================================================================== ##### Extension features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure Noise Filters @endverbatim * @{ */ /** * @brief Configures I2C Analog noise filter. * @param hi2c pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2Cx peripheral. * @param AnalogFilter new state of the Analog filter. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) { /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter)); if (hi2c->State == HAL_I2C_STATE_READY) { hi2c->State = HAL_I2C_STATE_BUSY; /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); /* Reset I2Cx ANOFF bit */ hi2c->Instance->FLTR &= ~(I2C_FLTR_ANOFF); /* Disable the analog filter */ hi2c->Instance->FLTR |= AnalogFilter; __HAL_I2C_ENABLE(hi2c); hi2c->State = HAL_I2C_STATE_READY; return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Configures I2C Digital noise filter. * @param hi2c pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2Cx peripheral. * @param DigitalFilter Coefficient of digital noise filter between 0x00 and 0x0F. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) { uint16_t tmpreg = 0; /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter)); if (hi2c->State == HAL_I2C_STATE_READY) { hi2c->State = HAL_I2C_STATE_BUSY; /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); /* Get the old register value */ tmpreg = hi2c->Instance->FLTR; /* Reset I2Cx DNF bit [3:0] */ tmpreg &= ~(I2C_FLTR_DNF); /* Set I2Cx DNF coefficient */ tmpreg |= DigitalFilter; /* Store the new register value */ hi2c->Instance->FLTR = tmpreg; __HAL_I2C_ENABLE(hi2c); hi2c->State = HAL_I2C_STATE_READY; return HAL_OK; } else { return HAL_BUSY; } } /** * @} */ /** * @} */ #endif #endif /* HAL_I2C_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pcd.c * @author MCD Application Team * @brief PCD HAL module driver. * This file provides firmware functions to manage the following * functionalities of the USB Peripheral Controller: * + Initialization and de-initialization functions * + IO operation functions * + Peripheral Control functions * + Peripheral State functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The PCD HAL driver can be used as follows: (#) Declare a PCD_HandleTypeDef handle structure, for example: PCD_HandleTypeDef hpcd; (#) Fill parameters of Init structure in HCD handle (#) Call HAL_PCD_Init() API to initialize the PCD peripheral (Core, Device core, ...) (#) Initialize the PCD low level resources through the HAL_PCD_MspInit() API: (##) Enable the PCD/USB Low Level interface clock using (+++) __HAL_RCC_USB_OTG_FS_CLK_ENABLE(); (+++) __HAL_RCC_USB_OTG_HS_CLK_ENABLE(); (For High Speed Mode) (##) Initialize the related GPIO clocks (##) Configure PCD pin-out (##) Configure PCD NVIC interrupt (#)Associate the Upper USB device stack to the HAL PCD Driver: (##) hpcd.pData = pdev; (#)Enable PCD transmission and reception: (##) HAL_PCD_Start(); @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup PCD PCD * @brief PCD HAL module driver * @{ */ #ifdef HAL_PCD_MODULE_ENABLED #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @defgroup PCD_Private_Macros PCD Private Macros * @{ */ #define PCD_MIN(a, b) (((a) < (b)) ? (a) : (b)) #define PCD_MAX(a, b) (((a) > (b)) ? (a) : (b)) /** * @} */ /* Private functions prototypes ----------------------------------------------*/ /** @defgroup PCD_Private_Functions PCD Private Functions * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum); static HAL_StatusTypeDef PCD_EP_OutXfrComplete_int(PCD_HandleTypeDef *hpcd, uint32_t epnum); static HAL_StatusTypeDef PCD_EP_OutSetupPacket_int(PCD_HandleTypeDef *hpcd, uint32_t epnum); #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup PCD_Exported_Functions PCD Exported Functions * @{ */ /** @defgroup PCD_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to: @endverbatim * @{ */ /** * @brief Initializes the PCD according to the specified * parameters in the PCD_InitTypeDef and initialize the associated handle. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx; uint8_t i; /* Check the PCD handle allocation */ if (hpcd == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); USBx = hpcd->Instance; if (hpcd->State == HAL_PCD_STATE_RESET) { /* Allocate lock resource and initialize it */ hpcd->Lock = HAL_UNLOCKED; #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SOFCallback = HAL_PCD_SOFCallback; hpcd->SetupStageCallback = HAL_PCD_SetupStageCallback; hpcd->ResetCallback = HAL_PCD_ResetCallback; hpcd->SuspendCallback = HAL_PCD_SuspendCallback; hpcd->ResumeCallback = HAL_PCD_ResumeCallback; hpcd->ConnectCallback = HAL_PCD_ConnectCallback; hpcd->DisconnectCallback = HAL_PCD_DisconnectCallback; hpcd->DataOutStageCallback = HAL_PCD_DataOutStageCallback; hpcd->DataInStageCallback = HAL_PCD_DataInStageCallback; hpcd->ISOOUTIncompleteCallback = HAL_PCD_ISOOUTIncompleteCallback; hpcd->ISOINIncompleteCallback = HAL_PCD_ISOINIncompleteCallback; hpcd->LPMCallback = HAL_PCDEx_LPM_Callback; hpcd->BCDCallback = HAL_PCDEx_BCD_Callback; if (hpcd->MspInitCallback == NULL) { hpcd->MspInitCallback = HAL_PCD_MspInit; } /* Init the low level hardware */ hpcd->MspInitCallback(hpcd); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_PCD_MspInit(hpcd); #endif /* (USE_HAL_PCD_REGISTER_CALLBACKS) */ } hpcd->State = HAL_PCD_STATE_BUSY; /* Disable DMA mode for FS instance */ if ((USBx->CID & (0x1U << 8)) == 0U) { hpcd->Init.dma_enable = 0U; } /* Disable the Interrupts */ __HAL_PCD_DISABLE(hpcd); /*Init the Core (common init.) */ if (USB_CoreInit(hpcd->Instance, hpcd->Init) != HAL_OK) { hpcd->State = HAL_PCD_STATE_ERROR; return HAL_ERROR; } /* Force Device Mode*/ (void)USB_SetCurrentMode(hpcd->Instance, USB_DEVICE_MODE); /* Init endpoints structures */ for (i = 0U; i < hpcd->Init.dev_endpoints; i++) { /* Init ep structure */ hpcd->IN_ep[i].is_in = 1U; hpcd->IN_ep[i].num = i; hpcd->IN_ep[i].tx_fifo_num = i; /* Control until ep is activated */ hpcd->IN_ep[i].type = EP_TYPE_CTRL; hpcd->IN_ep[i].maxpacket = 0U; hpcd->IN_ep[i].xfer_buff = 0U; hpcd->IN_ep[i].xfer_len = 0U; } for (i = 0U; i < hpcd->Init.dev_endpoints; i++) { hpcd->OUT_ep[i].is_in = 0U; hpcd->OUT_ep[i].num = i; /* Control until ep is activated */ hpcd->OUT_ep[i].type = EP_TYPE_CTRL; hpcd->OUT_ep[i].maxpacket = 0U; hpcd->OUT_ep[i].xfer_buff = 0U; hpcd->OUT_ep[i].xfer_len = 0U; } /* Init Device */ if (USB_DevInit(hpcd->Instance, hpcd->Init) != HAL_OK) { hpcd->State = HAL_PCD_STATE_ERROR; return HAL_ERROR; } hpcd->USB_Address = 0U; hpcd->State = HAL_PCD_STATE_READY; #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Activate LPM */ if (hpcd->Init.lpm_enable == 1U) { (void)HAL_PCDEx_ActivateLPM(hpcd); } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ (void)USB_DevDisconnect(hpcd->Instance); return HAL_OK; } /** * @brief DeInitializes the PCD peripheral. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_DeInit(PCD_HandleTypeDef *hpcd) { /* Check the PCD handle allocation */ if (hpcd == NULL) { return HAL_ERROR; } hpcd->State = HAL_PCD_STATE_BUSY; /* Stop Device */ if (USB_StopDevice(hpcd->Instance) != HAL_OK) { return HAL_ERROR; } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) if (hpcd->MspDeInitCallback == NULL) { hpcd->MspDeInitCallback = HAL_PCD_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware */ hpcd->MspDeInitCallback(hpcd); #else /* DeInit the low level hardware: CLOCK, NVIC.*/ HAL_PCD_MspDeInit(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ hpcd->State = HAL_PCD_STATE_RESET; return HAL_OK; } /** * @brief Initializes the PCD MSP. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_MspInit could be implemented in the user file */ } /** * @brief DeInitializes PCD MSP. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_MspDeInit could be implemented in the user file */ } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) /** * @brief Register a User USB PCD Callback * To be used instead of the weak predefined callback * @param hpcd USB PCD handle * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_PCD_SOF_CB_ID USB PCD SOF callback ID * @arg @ref HAL_PCD_SETUPSTAGE_CB_ID USB PCD Setup callback ID * @arg @ref HAL_PCD_RESET_CB_ID USB PCD Reset callback ID * @arg @ref HAL_PCD_SUSPEND_CB_ID USB PCD Suspend callback ID * @arg @ref HAL_PCD_RESUME_CB_ID USB PCD Resume callback ID * @arg @ref HAL_PCD_CONNECT_CB_ID USB PCD Connect callback ID * @arg @ref HAL_PCD_DISCONNECT_CB_ID OTG PCD Disconnect callback ID * @arg @ref HAL_PCD_MSPINIT_CB_ID MspDeInit callback ID * @arg @ref HAL_PCD_MSPDEINIT_CB_ID MspDeInit callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterCallback(PCD_HandleTypeDef *hpcd, HAL_PCD_CallbackIDTypeDef CallbackID, pPCD_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { switch (CallbackID) { case HAL_PCD_SOF_CB_ID : hpcd->SOFCallback = pCallback; break; case HAL_PCD_SETUPSTAGE_CB_ID : hpcd->SetupStageCallback = pCallback; break; case HAL_PCD_RESET_CB_ID : hpcd->ResetCallback = pCallback; break; case HAL_PCD_SUSPEND_CB_ID : hpcd->SuspendCallback = pCallback; break; case HAL_PCD_RESUME_CB_ID : hpcd->ResumeCallback = pCallback; break; case HAL_PCD_CONNECT_CB_ID : hpcd->ConnectCallback = pCallback; break; case HAL_PCD_DISCONNECT_CB_ID : hpcd->DisconnectCallback = pCallback; break; case HAL_PCD_MSPINIT_CB_ID : hpcd->MspInitCallback = pCallback; break; case HAL_PCD_MSPDEINIT_CB_ID : hpcd->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (hpcd->State == HAL_PCD_STATE_RESET) { switch (CallbackID) { case HAL_PCD_MSPINIT_CB_ID : hpcd->MspInitCallback = pCallback; break; case HAL_PCD_MSPDEINIT_CB_ID : hpcd->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister an USB PCD Callback * USB PCD callabck is redirected to the weak predefined callback * @param hpcd USB PCD handle * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * @arg @ref HAL_PCD_SOF_CB_ID USB PCD SOF callback ID * @arg @ref HAL_PCD_SETUPSTAGE_CB_ID USB PCD Setup callback ID * @arg @ref HAL_PCD_RESET_CB_ID USB PCD Reset callback ID * @arg @ref HAL_PCD_SUSPEND_CB_ID USB PCD Suspend callback ID * @arg @ref HAL_PCD_RESUME_CB_ID USB PCD Resume callback ID * @arg @ref HAL_PCD_CONNECT_CB_ID USB PCD Connect callback ID * @arg @ref HAL_PCD_DISCONNECT_CB_ID OTG PCD Disconnect callback ID * @arg @ref HAL_PCD_MSPINIT_CB_ID MspDeInit callback ID * @arg @ref HAL_PCD_MSPDEINIT_CB_ID MspDeInit callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterCallback(PCD_HandleTypeDef *hpcd, HAL_PCD_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); /* Setup Legacy weak Callbacks */ if (hpcd->State == HAL_PCD_STATE_READY) { switch (CallbackID) { case HAL_PCD_SOF_CB_ID : hpcd->SOFCallback = HAL_PCD_SOFCallback; break; case HAL_PCD_SETUPSTAGE_CB_ID : hpcd->SetupStageCallback = HAL_PCD_SetupStageCallback; break; case HAL_PCD_RESET_CB_ID : hpcd->ResetCallback = HAL_PCD_ResetCallback; break; case HAL_PCD_SUSPEND_CB_ID : hpcd->SuspendCallback = HAL_PCD_SuspendCallback; break; case HAL_PCD_RESUME_CB_ID : hpcd->ResumeCallback = HAL_PCD_ResumeCallback; break; case HAL_PCD_CONNECT_CB_ID : hpcd->ConnectCallback = HAL_PCD_ConnectCallback; break; case HAL_PCD_DISCONNECT_CB_ID : hpcd->DisconnectCallback = HAL_PCD_DisconnectCallback; break; case HAL_PCD_MSPINIT_CB_ID : hpcd->MspInitCallback = HAL_PCD_MspInit; break; case HAL_PCD_MSPDEINIT_CB_ID : hpcd->MspDeInitCallback = HAL_PCD_MspDeInit; break; default : /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (hpcd->State == HAL_PCD_STATE_RESET) { switch (CallbackID) { case HAL_PCD_MSPINIT_CB_ID : hpcd->MspInitCallback = HAL_PCD_MspInit; break; case HAL_PCD_MSPDEINIT_CB_ID : hpcd->MspDeInitCallback = HAL_PCD_MspDeInit; break; default : /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD Data OUT Stage Callback * To be used instead of the weak HAL_PCD_DataOutStageCallback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD Data OUT Stage Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterDataOutStageCallback(PCD_HandleTypeDef *hpcd, pPCD_DataOutStageCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->DataOutStageCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD Data OUT Stage Callback * USB PCD Data OUT Stage Callback is redirected to the weak HAL_PCD_DataOutStageCallback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterDataOutStageCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->DataOutStageCallback = HAL_PCD_DataOutStageCallback; /* Legacy weak DataOutStageCallback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD Data IN Stage Callback * To be used instead of the weak HAL_PCD_DataInStageCallback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD Data IN Stage Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterDataInStageCallback(PCD_HandleTypeDef *hpcd, pPCD_DataInStageCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->DataInStageCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD Data IN Stage Callback * USB PCD Data OUT Stage Callback is redirected to the weak HAL_PCD_DataInStageCallback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterDataInStageCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->DataInStageCallback = HAL_PCD_DataInStageCallback; /* Legacy weak DataInStageCallback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD Iso OUT incomplete Callback * To be used instead of the weak HAL_PCD_ISOOUTIncompleteCallback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD Iso OUT incomplete Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterIsoOutIncpltCallback(PCD_HandleTypeDef *hpcd, pPCD_IsoOutIncpltCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->ISOOUTIncompleteCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD Iso OUT incomplete Callback * USB PCD Iso OUT incomplete Callback is redirected to the weak HAL_PCD_ISOOUTIncompleteCallback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterIsoOutIncpltCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->ISOOUTIncompleteCallback = HAL_PCD_ISOOUTIncompleteCallback; /* Legacy weak ISOOUTIncompleteCallback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD Iso IN incomplete Callback * To be used instead of the weak HAL_PCD_ISOINIncompleteCallback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD Iso IN incomplete Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterIsoInIncpltCallback(PCD_HandleTypeDef *hpcd, pPCD_IsoInIncpltCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->ISOINIncompleteCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD Iso IN incomplete Callback * USB PCD Iso IN incomplete Callback is redirected to the weak HAL_PCD_ISOINIncompleteCallback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterIsoInIncpltCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->ISOINIncompleteCallback = HAL_PCD_ISOINIncompleteCallback; /* Legacy weak ISOINIncompleteCallback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD BCD Callback * To be used instead of the weak HAL_PCDEx_BCD_Callback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD BCD Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterBcdCallback(PCD_HandleTypeDef *hpcd, pPCD_BcdCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->BCDCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD BCD Callback * USB BCD Callback is redirected to the weak HAL_PCDEx_BCD_Callback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterBcdCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->BCDCallback = HAL_PCDEx_BCD_Callback; /* Legacy weak HAL_PCDEx_BCD_Callback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Register USB PCD LPM Callback * To be used instead of the weak HAL_PCDEx_LPM_Callback() predefined callback * @param hpcd PCD handle * @param pCallback pointer to the USB PCD LPM Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_RegisterLpmCallback(PCD_HandleTypeDef *hpcd, pPCD_LpmCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->LPMCallback = pCallback; } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } /** * @brief Unregister the USB PCD LPM Callback * USB LPM Callback is redirected to the weak HAL_PCDEx_LPM_Callback() predefined callback * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_UnRegisterLpmCallback(PCD_HandleTypeDef *hpcd) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hpcd); if (hpcd->State == HAL_PCD_STATE_READY) { hpcd->LPMCallback = HAL_PCDEx_LPM_Callback; /* Legacy weak HAL_PCDEx_LPM_Callback */ } else { /* Update the error code */ hpcd->ErrorCode |= HAL_PCD_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hpcd); return status; } #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup PCD_Exported_Functions_Group2 Input and Output operation functions * @brief Data transfers functions * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the PCD data transfers. @endverbatim * @{ */ /** * @brief Start the USB device * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; __HAL_LOCK(hpcd); if ((hpcd->Init.battery_charging_enable == 1U) && (hpcd->Init.phy_itface != USB_OTG_ULPI_PHY)) { /* Enable USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; } __HAL_PCD_ENABLE(hpcd); (void)USB_DevConnect(hpcd->Instance); __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Stop the USB device. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; __HAL_LOCK(hpcd); __HAL_PCD_DISABLE(hpcd); (void)USB_DevDisconnect(hpcd->Instance); (void)USB_FlushTxFifo(hpcd->Instance, 0x10U); if ((hpcd->Init.battery_charging_enable == 1U) && (hpcd->Init.phy_itface != USB_OTG_ULPI_PHY)) { /* Disable USB Transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); } __HAL_UNLOCK(hpcd); return HAL_OK; } #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** * @brief Handles PCD interrupt request. * @param hpcd PCD handle * @retval HAL status */ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t i, ep_intr, epint, epnum; uint32_t fifoemptymsk, temp; USB_OTG_EPTypeDef *ep; /* ensure that we are in device mode */ if (USB_GetMode(hpcd->Instance) == USB_OTG_MODE_DEVICE) { /* avoid spurious interrupt */ if (__HAL_PCD_IS_INVALID_INTERRUPT(hpcd)) { return; } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_MMIS)) { /* incorrect mode, acknowledge the interrupt */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_MMIS); } /* Handle RxQLevel Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_RXFLVL)) { USB_MASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); temp = USBx->GRXSTSP; ep = &hpcd->OUT_ep[temp & USB_OTG_GRXSTSP_EPNUM]; if (((temp & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_DATA_UPDT) { if ((temp & USB_OTG_GRXSTSP_BCNT) != 0U) { (void)USB_ReadPacket(USBx, ep->xfer_buff, (uint16_t)((temp & USB_OTG_GRXSTSP_BCNT) >> 4)); ep->xfer_buff += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; } } else if (((temp & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_SETUP_UPDT) { (void)USB_ReadPacket(USBx, (uint8_t *)hpcd->Setup, 8U); ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; } else { /* ... */ } USB_UNMASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OEPINT)) { epnum = 0U; /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllOutEpInterrupt(hpcd->Instance); while (ep_intr != 0U) { if ((ep_intr & 0x1U) != 0U) { epint = USB_ReadDevOutEPInterrupt(hpcd->Instance, (uint8_t)epnum); if ((epint & USB_OTG_DOEPINT_XFRC) == USB_OTG_DOEPINT_XFRC) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_XFRC); (void)PCD_EP_OutXfrComplete_int(hpcd, epnum); } if ((epint & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STUP); /* Class B setup phase done for previous decoded setup */ (void)PCD_EP_OutSetupPacket_int(hpcd, epnum); } if ((epint & USB_OTG_DOEPINT_OTEPDIS) == USB_OTG_DOEPINT_OTEPDIS) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPDIS); } /* Clear Status Phase Received interrupt */ if ((epint & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); } /* Clear OUT NAK interrupt */ if ((epint & USB_OTG_DOEPINT_NAK) == USB_OTG_DOEPINT_NAK) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_NAK); } } epnum++; ep_intr >>= 1U; } } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IEPINT)) { /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllInEpInterrupt(hpcd->Instance); epnum = 0U; while (ep_intr != 0U) { if ((ep_intr & 0x1U) != 0U) /* In ITR */ { epint = USB_ReadDevInEPInterrupt(hpcd->Instance, (uint8_t)epnum); if ((epint & USB_OTG_DIEPINT_XFRC) == USB_OTG_DIEPINT_XFRC) { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_XFRC); if (hpcd->Init.dma_enable == 1U) { hpcd->IN_ep[epnum].xfer_buff += hpcd->IN_ep[epnum].maxpacket; /* this is ZLP, so prepare EP0 for next setup */ if ((epnum == 0U) && (hpcd->IN_ep[epnum].xfer_len == 0U)) { /* prepare to rx more setup packets */ (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); } } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataInStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataInStageCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } if ((epint & USB_OTG_DIEPINT_TOC) == USB_OTG_DIEPINT_TOC) { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_TOC); } if ((epint & USB_OTG_DIEPINT_ITTXFE) == USB_OTG_DIEPINT_ITTXFE) { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_ITTXFE); } if ((epint & USB_OTG_DIEPINT_INEPNE) == USB_OTG_DIEPINT_INEPNE) { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_INEPNE); } if ((epint & USB_OTG_DIEPINT_EPDISD) == USB_OTG_DIEPINT_EPDISD) { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_EPDISD); } if ((epint & USB_OTG_DIEPINT_TXFE) == USB_OTG_DIEPINT_TXFE) { (void)PCD_WriteEmptyTxFifo(hpcd, epnum); } } epnum++; ep_intr >>= 1U; } } /* Handle Resume Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT)) { /* Clear the Remote Wake-up Signaling */ USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; if (hpcd->LPM_State == LPM_L1) { hpcd->LPM_State = LPM_L0; #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->LPMCallback(hpcd, PCD_LPM_L0_ACTIVE); #else HAL_PCDEx_LPM_Callback(hpcd, PCD_LPM_L0_ACTIVE); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResumeCallback(hpcd); #else HAL_PCD_ResumeCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT); } /* Handle Suspend Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP)) { if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP); } #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Handle LPM Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT)) { __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT); if (hpcd->LPM_State == LPM_L0) { hpcd->LPM_State = LPM_L1; hpcd->BESL = (hpcd->Instance->GLPMCFG & USB_OTG_GLPMCFG_BESL) >> 2U; #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->LPMCallback(hpcd, PCD_LPM_L1_ACTIVE); #else HAL_PCDEx_LPM_Callback(hpcd, PCD_LPM_L1_ACTIVE); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ /* Handle Reset Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBRST)) { USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; (void)USB_FlushTxFifo(hpcd->Instance, 0x10U); for (i = 0U; i < hpcd->Init.dev_endpoints; i++) { USBx_INEP(i)->DIEPINT = 0xFB7FU; USBx_INEP(i)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; USBx_INEP(i)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; USBx_OUTEP(i)->DOEPINT = 0xFB7FU; USBx_OUTEP(i)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; USBx_OUTEP(i)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; } USBx_DEVICE->DAINTMSK |= 0x10001U; if (hpcd->Init.use_dedicated_ep1 != 0U) { USBx_DEVICE->DOUTEP1MSK |= USB_OTG_DOEPMSK_STUPM | USB_OTG_DOEPMSK_XFRCM | USB_OTG_DOEPMSK_EPDM; USBx_DEVICE->DINEP1MSK |= USB_OTG_DIEPMSK_TOM | USB_OTG_DIEPMSK_XFRCM | USB_OTG_DIEPMSK_EPDM; } else { USBx_DEVICE->DOEPMSK |= USB_OTG_DOEPMSK_STUPM | USB_OTG_DOEPMSK_XFRCM | USB_OTG_DOEPMSK_EPDM | USB_OTG_DOEPMSK_OTEPSPRM | USB_OTG_DOEPMSK_NAKM; USBx_DEVICE->DIEPMSK |= USB_OTG_DIEPMSK_TOM | USB_OTG_DIEPMSK_XFRCM | USB_OTG_DIEPMSK_EPDM; } /* Set Default Address to 0 */ USBx_DEVICE->DCFG &= ~USB_OTG_DCFG_DAD; /* setup EP0 to receive SETUP packets */ (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, (uint8_t *)hpcd->Setup); __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBRST); } /* Handle Enumeration done Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE)) { (void)USB_ActivateSetup(hpcd->Instance); hpcd->Init.speed = USB_GetDevSpeed(hpcd->Instance); /* Set USB Turnaround time */ (void)USB_SetTurnaroundTime(hpcd->Instance, HAL_RCC_GetHCLKFreq(), (uint8_t)hpcd->Init.speed); #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResetCallback(hpcd); #else HAL_PCD_ResetCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE); } /* Handle SOF Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SOF)) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SOFCallback(hpcd); #else HAL_PCD_SOFCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SOF); } /* Handle Incomplete ISO IN Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR)) { /* Keep application checking the corresponding Iso IN endpoint causing the incomplete Interrupt */ epnum = 0U; #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ISOINIncompleteCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_ISOINIncompleteCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR); } /* Handle Incomplete ISO OUT Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT)) { /* Keep application checking the corresponding Iso OUT endpoint causing the incomplete Interrupt */ epnum = 0U; #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ISOOUTIncompleteCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_ISOOUTIncompleteCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT); } /* Handle Connection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT)) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ConnectCallback(hpcd); #else HAL_PCD_ConnectCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT); } /* Handle Disconnection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OTGINT)) { temp = hpcd->Instance->GOTGINT; if ((temp & USB_OTG_GOTGINT_SEDET) == USB_OTG_GOTGINT_SEDET) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DisconnectCallback(hpcd); #else HAL_PCD_DisconnectCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } hpcd->Instance->GOTGINT |= temp; } } } /** * @brief Handles PCD Wakeup interrupt request. * @param hpcd PCD handle * @retval HAL status */ void HAL_PCD_WKUP_IRQHandler(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx; USBx = hpcd->Instance; if ((USBx->CID & (0x1U << 8)) == 0U) { /* Clear EXTI pending Bit */ __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG(); } else { /* Clear EXTI pending Bit */ __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG(); } } #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @brief Data OUT stage callback. * @param hpcd PCD handle * @param epnum endpoint number * @retval None */ __weak void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(epnum); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_DataOutStageCallback could be implemented in the user file */ } /** * @brief Data IN stage callback * @param hpcd PCD handle * @param epnum endpoint number * @retval None */ __weak void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(epnum); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_DataInStageCallback could be implemented in the user file */ } /** * @brief Setup stage callback * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_SetupStageCallback could be implemented in the user file */ } /** * @brief USB Start Of Frame callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_SOFCallback could be implemented in the user file */ } /** * @brief USB Reset callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_ResetCallback could be implemented in the user file */ } /** * @brief Suspend event callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_SuspendCallback could be implemented in the user file */ } /** * @brief Resume event callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_ResumeCallback could be implemented in the user file */ } /** * @brief Incomplete ISO OUT callback. * @param hpcd PCD handle * @param epnum endpoint number * @retval None */ __weak void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(epnum); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_ISOOUTIncompleteCallback could be implemented in the user file */ } /** * @brief Incomplete ISO IN callback. * @param hpcd PCD handle * @param epnum endpoint number * @retval None */ __weak void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(epnum); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_ISOINIncompleteCallback could be implemented in the user file */ } /** * @brief Connection event callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_ConnectCallback could be implemented in the user file */ } /** * @brief Disconnection event callback. * @param hpcd PCD handle * @retval None */ __weak void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCD_DisconnectCallback could be implemented in the user file */ } /** * @} */ /** @defgroup PCD_Exported_Functions_Group3 Peripheral Control functions * @brief management functions * @verbatim =============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the PCD data transfers. @endverbatim * @{ */ /** * @brief Connect the USB device * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_DevConnect(PCD_HandleTypeDef *hpcd) { #if defined (USB_OTG_FS) || defined (USB_OTG_HS) USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ __HAL_LOCK(hpcd); #if defined (USB_OTG_FS) || defined (USB_OTG_HS) if ((hpcd->Init.battery_charging_enable == 1U) && (hpcd->Init.phy_itface != USB_OTG_ULPI_PHY)) { /* Enable USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; } #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ (void)USB_DevConnect(hpcd->Instance); __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Disconnect the USB device. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_DevDisconnect(PCD_HandleTypeDef *hpcd) { #if defined (USB_OTG_FS) || defined (USB_OTG_HS) USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ __HAL_LOCK(hpcd); (void)USB_DevDisconnect(hpcd->Instance); #if defined (USB_OTG_FS) || defined (USB_OTG_HS) if ((hpcd->Init.battery_charging_enable == 1U) && (hpcd->Init.phy_itface != USB_OTG_ULPI_PHY)) { /* Disable USB Transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); } #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Set the USB Device address. * @param hpcd PCD handle * @param address new device address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address) { __HAL_LOCK(hpcd); hpcd->USB_Address = address; (void)USB_SetDevAddress(hpcd->Instance, address); __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Open and configure an endpoint. * @param hpcd PCD handle * @param ep_addr endpoint address * @param ep_mps endpoint max packet size * @param ep_type endpoint type * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type) { HAL_StatusTypeDef ret = HAL_OK; PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 1U; } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 0U; } ep->num = ep_addr & EP_ADDR_MSK; ep->maxpacket = ep_mps; ep->type = ep_type; if (ep->is_in != 0U) { /* Assign a Tx FIFO */ ep->tx_fifo_num = ep->num; } /* Set initial data PID. */ if (ep_type == EP_TYPE_BULK) { ep->data_pid_start = 0U; } __HAL_LOCK(hpcd); (void)USB_ActivateEndpoint(hpcd->Instance, ep); __HAL_UNLOCK(hpcd); return ret; } /** * @brief Deactivate an endpoint. * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 1U; } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 0U; } ep->num = ep_addr & EP_ADDR_MSK; __HAL_LOCK(hpcd); (void)USB_DeactivateEndpoint(hpcd->Instance, ep); __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Receive an amount of data. * @param hpcd PCD handle * @param ep_addr endpoint address * @param pBuf pointer to the reception buffer * @param len amount of data to be received * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) { PCD_EPTypeDef *ep; ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; /*setup and start the Xfer */ ep->xfer_buff = pBuf; ep->xfer_len = len; ep->xfer_count = 0U; ep->is_in = 0U; ep->num = ep_addr & EP_ADDR_MSK; if (hpcd->Init.dma_enable == 1U) { ep->dma_addr = (uint32_t)pBuf; } if ((ep_addr & EP_ADDR_MSK) == 0U) { (void)USB_EP0StartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); } else { (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); } return HAL_OK; } /** * @brief Get Received Data Size * @param hpcd PCD handle * @param ep_addr endpoint address * @retval Data Size */ uint32_t HAL_PCD_EP_GetRxCount(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { return hpcd->OUT_ep[ep_addr & EP_ADDR_MSK].xfer_count; } /** * @brief Send an amount of data * @param hpcd PCD handle * @param ep_addr endpoint address * @param pBuf pointer to the transmission buffer * @param len amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) { PCD_EPTypeDef *ep; ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; /*setup and start the Xfer */ ep->xfer_buff = pBuf; ep->xfer_len = len; ep->xfer_count = 0U; ep->is_in = 1U; ep->num = ep_addr & EP_ADDR_MSK; if (hpcd->Init.dma_enable == 1U) { ep->dma_addr = (uint32_t)pBuf; } if ((ep_addr & EP_ADDR_MSK) == 0U) { (void)USB_EP0StartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); } else { (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); } return HAL_OK; } /** * @brief Set a STALL condition over an endpoint * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & EP_ADDR_MSK) > hpcd->Init.dev_endpoints) { return HAL_ERROR; } if ((0x80U & ep_addr) == 0x80U) { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 1U; } else { ep = &hpcd->OUT_ep[ep_addr]; ep->is_in = 0U; } ep->is_stall = 1U; ep->num = ep_addr & EP_ADDR_MSK; __HAL_LOCK(hpcd); (void)USB_EPSetStall(hpcd->Instance, ep); if ((ep_addr & EP_ADDR_MSK) == 0U) { (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, (uint8_t *)hpcd->Setup); } __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Clear a STALL condition over in an endpoint * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & 0x0FU) > hpcd->Init.dev_endpoints) { return HAL_ERROR; } if ((0x80U & ep_addr) == 0x80U) { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 1U; } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; ep->is_in = 0U; } ep->is_stall = 0U; ep->num = ep_addr & EP_ADDR_MSK; __HAL_LOCK(hpcd); (void)USB_EPClearStall(hpcd->Instance, ep); __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Flush an endpoint * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Flush(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { __HAL_LOCK(hpcd); if ((ep_addr & 0x80U) == 0x80U) { (void)USB_FlushTxFifo(hpcd->Instance, (uint32_t)ep_addr & EP_ADDR_MSK); } else { (void)USB_FlushRxFifo(hpcd->Instance); } __HAL_UNLOCK(hpcd); return HAL_OK; } /** * @brief Activate remote wakeup signalling * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_ActivateRemoteWakeup(PCD_HandleTypeDef *hpcd) { return (USB_ActivateRemoteWakeup(hpcd->Instance)); } /** * @brief De-activate remote wakeup signalling. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_DeActivateRemoteWakeup(PCD_HandleTypeDef *hpcd) { return (USB_DeActivateRemoteWakeup(hpcd->Instance)); } /** * @} */ /** @defgroup PCD_Exported_Functions_Group4 Peripheral State functions * @brief Peripheral State functions * @verbatim =============================================================================== ##### Peripheral State functions ##### =============================================================================== [..] This subsection permits to get in run-time the status of the peripheral and the data flow. @endverbatim * @{ */ /** * @brief Return the PCD handle state. * @param hpcd PCD handle * @retval HAL state */ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef *hpcd) { return hpcd->State; } /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @addtogroup PCD_Private_Functions * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** * @brief Check FIFO for the next packet to be loaded. * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; uint32_t USBx_BASE = (uint32_t)USBx; USB_OTG_EPTypeDef *ep; uint32_t len; uint32_t len32b; uint32_t fifoemptymsk; ep = &hpcd->IN_ep[epnum]; if (ep->xfer_count > ep->xfer_len) { return HAL_ERROR; } len = ep->xfer_len - ep->xfer_count; if (len > ep->maxpacket) { len = ep->maxpacket; } len32b = (len + 3U) / 4U; while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) { /* Write the FIFO */ len = ep->xfer_len - ep->xfer_count; if (len > ep->maxpacket) { len = ep->maxpacket; } len32b = (len + 3U) / 4U; (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, (uint8_t)hpcd->Init.dma_enable); ep->xfer_buff += len; ep->xfer_count += len; } if (ep->xfer_len <= ep->xfer_count) { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; } return HAL_OK; } /** * @brief process EP OUT transfer complete interrupt. * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutXfrComplete_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t gSNPSiD = *(__IO uint32_t *)(&USBx->CID + 0x1U); uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; if (hpcd->Init.dma_enable == 1U) { if ((DoepintReg & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) /* Class C */ { /* StupPktRcvd = 1 this is a setup packet */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); } } else if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) /* Class E */ { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); } else if ((DoepintReg & (USB_OTG_DOEPINT_STUP | USB_OTG_DOEPINT_OTEPSPR)) == 0U) { /* StupPktRcvd = 1 this is a setup packet */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); } else { /* out data packet received over EP0 */ hpcd->OUT_ep[epnum].xfer_count = hpcd->OUT_ep[epnum].maxpacket - (USBx_OUTEP(epnum)->DOEPTSIZ & USB_OTG_DOEPTSIZ_XFRSIZ); hpcd->OUT_ep[epnum].xfer_buff += hpcd->OUT_ep[epnum].maxpacket; if ((epnum == 0U) && (hpcd->OUT_ep[epnum].xfer_len == 0U)) { /* this is ZLP, so prepare EP0 for next setup */ (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } else { /* ... */ } } else { if (gSNPSiD == USB_OTG_CORE_ID_310A) { /* StupPktRcvd = 1 this is a setup packet */ if ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); } else { if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } else { if ((epnum == 0U) && (hpcd->OUT_ep[epnum].xfer_len == 0U)) { /* this is ZLP, so prepare EP0 for next setup */ (void)USB_EP0_OutStart(hpcd->Instance, 0U, (uint8_t *)hpcd->Setup); } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } return HAL_OK; } /** * @brief process EP OUT setup packet received interrupt. * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutSetupPacket_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t gSNPSiD = *(__IO uint32_t *)(&USBx->CID + 0x1U); uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; if ((gSNPSiD > USB_OTG_CORE_ID_300A) && ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); } /* Inform the upper layer that a setup packet is available */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SetupStageCallback(hpcd); #else HAL_PCD_SetupStageCallback(hpcd); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && (hpcd->Init.dma_enable == 1U)) { (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); } return HAL_OK; } #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #endif /* HAL_PCD_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pcd_ex.c * @author MCD Application Team * @brief PCD Extended HAL module driver. * This file provides firmware functions to manage the following * functionalities of the USB Peripheral Controller: * + Extended features functions * ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup PCDEx PCDEx * @brief PCD Extended HAL module driver * @{ */ #ifdef HAL_PCD_MODULE_ENABLED #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @defgroup PCDEx_Exported_Functions PCDEx Exported Functions * @{ */ /** @defgroup PCDEx_Exported_Functions_Group1 Peripheral Control functions * @brief PCDEx control functions * @verbatim =============================================================================== ##### Extended features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Update FIFO configuration @endverbatim * @{ */ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /** * @brief Set Tx FIFO * @param hpcd PCD handle * @param fifo The number of Tx fifo * @param size Fifo size * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size) { uint8_t i; uint32_t Tx_Offset; /* TXn min size = 16 words. (n : Transmit FIFO index) When a TxFIFO is not used, the Configuration should be as follows: case 1 : n > m and Txn is not used (n,m : Transmit FIFO indexes) --> Txm can use the space allocated for Txn. case2 : n < m and Txn is not used (n,m : Transmit FIFO indexes) --> Txn should be configured with the minimum space of 16 words The FIFO is used optimally when used TxFIFOs are allocated in the top of the FIFO.Ex: use EP1 and EP2 as IN instead of EP1 and EP3 as IN ones. When DMA is used 3n * FIFO locations should be reserved for internal DMA registers */ Tx_Offset = hpcd->Instance->GRXFSIZ; if (fifo == 0U) { hpcd->Instance->DIEPTXF0_HNPTXFSIZ = ((uint32_t)size << 16) | Tx_Offset; } else { Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; for (i = 0U; i < (fifo - 1U); i++) { Tx_Offset += (hpcd->Instance->DIEPTXF[i] >> 16); } /* Multiply Tx_Size by 2 to get higher performance */ hpcd->Instance->DIEPTXF[fifo - 1U] = ((uint32_t)size << 16) | Tx_Offset; } return HAL_OK; } /** * @brief Set Rx FIFO * @param hpcd PCD handle * @param size Size of Rx fifo * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) { hpcd->Instance->GRXFSIZ = size; return HAL_OK; } #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Activate LPM feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; hpcd->lpm_active = 1U; hpcd->LPM_State = LPM_L0; USBx->GINTMSK |= USB_OTG_GINTMSK_LPMINTM; USBx->GLPMCFG |= (USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL); return HAL_OK; } /** * @brief Deactivate LPM feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; hpcd->lpm_active = 0U; USBx->GINTMSK &= ~USB_OTG_GINTMSK_LPMINTM; USBx->GLPMCFG &= ~(USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL); return HAL_OK; } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Handle BatteryCharging Process. * @param hpcd PCD handle * @retval HAL status */ void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; uint32_t tickstart = HAL_GetTick(); /* Enable DCD : Data Contact Detect */ USBx->GCCFG |= USB_OTG_GCCFG_DCDEN; /* Wait Detect flag or a timeout is happen*/ while ((USBx->GCCFG & USB_OTG_GCCFG_DCDET) == 0U) { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > 1000U) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_ERROR); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_ERROR); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ return; } } /* Right response got */ HAL_Delay(200U); /* Check Detect flag*/ if ((USBx->GCCFG & USB_OTG_GCCFG_DCDET) == USB_OTG_GCCFG_DCDET) { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_CONTACT_DETECTION); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_CONTACT_DETECTION); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } /*Primary detection: checks if connected to Standard Downstream Port (without charging capability) */ USBx->GCCFG &= ~ USB_OTG_GCCFG_DCDEN; HAL_Delay(50U); USBx->GCCFG |= USB_OTG_GCCFG_PDEN; HAL_Delay(50U); if ((USBx->GCCFG & USB_OTG_GCCFG_PDET) == 0U) { /* Case of Standard Downstream Port */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_STD_DOWNSTREAM_PORT); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_STD_DOWNSTREAM_PORT); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } else { /* start secondary detection to check connection to Charging Downstream Port or Dedicated Charging Port */ USBx->GCCFG &= ~ USB_OTG_GCCFG_PDEN; HAL_Delay(50U); USBx->GCCFG |= USB_OTG_GCCFG_SDEN; HAL_Delay(50U); if ((USBx->GCCFG & USB_OTG_GCCFG_SDET) == USB_OTG_GCCFG_SDET) { /* case Dedicated Charging Port */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_DEDICATED_CHARGING_PORT); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_DEDICATED_CHARGING_PORT); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } else { /* case Charging Downstream Port */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_CHARGING_DOWNSTREAM_PORT); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_CHARGING_DOWNSTREAM_PORT); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } /* Battery Charging capability discovery finished */ (void)HAL_PCDEx_DeActivateBCD(hpcd); #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->BCDCallback(hpcd, PCD_BCD_DISCOVERY_COMPLETED); #else HAL_PCDEx_BCD_Callback(hpcd, PCD_BCD_DISCOVERY_COMPLETED); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } /** * @brief Activate BatteryCharging feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; USBx->GCCFG &= ~(USB_OTG_GCCFG_PDEN); USBx->GCCFG &= ~(USB_OTG_GCCFG_SDEN); /* Power Down USB transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); /* Enable Battery charging */ USBx->GCCFG |= USB_OTG_GCCFG_BCDEN; hpcd->battery_charging_active = 1U; return HAL_OK; } /** * @brief Deactivate BatteryCharging feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd) { USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; USBx->GCCFG &= ~(USB_OTG_GCCFG_SDEN); USBx->GCCFG &= ~(USB_OTG_GCCFG_PDEN); /* Disable Battery charging */ USBx->GCCFG &= ~(USB_OTG_GCCFG_BCDEN); hpcd->battery_charging_active = 0U; return HAL_OK; } #endif /* defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @brief Send LPM message to user layer callback. * @param hpcd PCD handle * @param msg LPM message * @retval HAL status */ __weak void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(msg); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCDEx_LPM_Callback could be implemented in the user file */ } /** * @brief Send BatteryCharging message to user layer callback. * @param hpcd PCD handle * @param msg LPM message * @retval HAL status */ __weak void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hpcd); UNUSED(msg); /* NOTE : This function should not be modified, when the callback is needed, the HAL_PCDEx_BCD_Callback could be implemented in the user file */ } /** * @} */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #endif /* HAL_PCD_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pwr.c * @author MCD Application Team * @brief PWR HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Power Controller (PWR) peripheral: * + Initialization and de-initialization functions * + Peripheral Control functions * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup PWR PWR * @brief PWR HAL module driver * @{ */ #ifdef HAL_PWR_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup PWR_Private_Constants * @{ */ /** @defgroup PWR_PVD_Mode_Mask PWR PVD Mode Mask * @{ */ #define PVD_MODE_IT 0x00010000U #define PVD_MODE_EVT 0x00020000U #define PVD_RISING_EDGE 0x00000001U #define PVD_FALLING_EDGE 0x00000002U /** * @} */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @defgroup PWR_Exported_Functions PWR Exported Functions * @{ */ /** @defgroup PWR_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and de-initialization functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] After reset, the backup domain (RTC registers, RTC backup data registers and backup SRAM) is protected against possible unwanted write accesses. To enable access to the RTC Domain and RTC registers, proceed as follows: (+) Enable the Power Controller (PWR) APB1 interface clock using the __HAL_RCC_PWR_CLK_ENABLE() macro. (+) Enable access to RTC domain using the HAL_PWR_EnableBkUpAccess() function. @endverbatim * @{ */ /** * @brief Deinitializes the HAL PWR peripheral registers to their default reset values. * @retval None */ void HAL_PWR_DeInit(void) { __HAL_RCC_PWR_FORCE_RESET(); __HAL_RCC_PWR_RELEASE_RESET(); } /** * @brief Enables access to the backup domain (RTC registers, RTC * backup data registers and backup SRAM). * @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the * Backup Domain Access should be kept enabled. * @note The following sequence is required to bypass the delay between * DBP bit programming and the effective enabling of the backup domain. * Please check the Errata Sheet for more details under "Possible delay * in backup domain protection disabling/enabling after programming the * DBP bit" section. * @retval None */ void HAL_PWR_EnableBkUpAccess(void) { __IO uint32_t dummyread; *(__IO uint32_t *) CR_DBP_BB = (uint32_t)ENABLE; dummyread = PWR->CR; UNUSED(dummyread); } /** * @brief Disables access to the backup domain (RTC registers, RTC * backup data registers and backup SRAM). * @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the * Backup Domain Access should be kept enabled. * @note The following sequence is required to bypass the delay between * DBP bit programming and the effective disabling of the backup domain. * Please check the Errata Sheet for more details under "Possible delay * in backup domain protection disabling/enabling after programming the * DBP bit" section. * @retval None */ void HAL_PWR_DisableBkUpAccess(void) { __IO uint32_t dummyread; *(__IO uint32_t *) CR_DBP_BB = (uint32_t)DISABLE; dummyread = PWR->CR; UNUSED(dummyread); } /** * @} */ /** @defgroup PWR_Exported_Functions_Group2 Peripheral Control functions * @brief Low Power modes configuration functions * @verbatim =============================================================================== ##### Peripheral Control functions ##### =============================================================================== *** PVD configuration *** ========================= [..] (+) The PVD is used to monitor the VDD power supply by comparing it to a threshold selected by the PVD Level (PLS[2:0] bits in the PWR_CR). (+) A PVDO flag is available to indicate if VDD/VDDA is higher or lower than the PVD threshold. This event is internally connected to the EXTI line16 and can generate an interrupt if enabled. This is done through __HAL_PWR_PVD_EXTI_ENABLE_IT() macro. (+) The PVD is stopped in Standby mode. *** Wake-up pin configuration *** ================================ [..] (+) Wake-up pin is used to wake up the system from Standby mode. This pin is forced in input pull-down configuration and is active on rising edges. (+) There is one Wake-up pin: Wake-up Pin 1 on PA.00. (++) For STM32F446xx there are two Wake-Up pins: Pin1 on PA.00 and Pin2 on PC.13 (++) For STM32F410xx/STM32F412xx/STM32F413xx/STM32F423xx there are three Wake-Up pins: Pin1 on PA.00, Pin2 on PC.00 and Pin3 on PC.01 *** Low Power modes configuration *** ===================================== [..] The devices feature 3 low-power modes: (+) Sleep mode: Cortex-M4 core stopped, peripherals kept running. (+) Stop mode: all clocks are stopped, regulator running, regulator in low power mode (+) Standby mode: 1.2V domain powered off. *** Sleep mode *** ================== [..] (+) Entry: The Sleep mode is entered by using the HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI) functions with (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction -@@- The Regulator parameter is not used for the STM32F4 family and is kept as parameter just to maintain compatibility with the lower power families (STM32L). (+) Exit: Any peripheral interrupt acknowledged by the nested vectored interrupt controller (NVIC) can wake up the device from Sleep mode. *** Stop mode *** ================= [..] In Stop mode, all clocks in the 1.2V domain are stopped, the PLL, the HSI, and the HSE RC oscillators are disabled. Internal SRAM and register contents are preserved. The voltage regulator can be configured either in normal or low-power mode. To minimize the consumption In Stop mode, FLASH can be powered off before entering the Stop mode using the HAL_PWREx_EnableFlashPowerDown() function. It can be switched on again by software after exiting the Stop mode using the HAL_PWREx_DisableFlashPowerDown() function. (+) Entry: The Stop mode is entered using the HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON) function with: (++) Main regulator ON. (++) Low Power regulator ON. (+) Exit: Any EXTI Line (Internal or External) configured in Interrupt/Event mode. *** Standby mode *** ==================== [..] (+) The Standby mode allows to achieve the lowest power consumption. It is based on the Cortex-M4 deep sleep mode, with the voltage regulator disabled. The 1.2V domain is consequently powered off. The PLL, the HSI oscillator and the HSE oscillator are also switched off. SRAM and register contents are lost except for the RTC registers, RTC backup registers, backup SRAM and Standby circuitry. The voltage regulator is OFF. (++) Entry: (+++) The Standby mode is entered using the HAL_PWR_EnterSTANDBYMode() function. (++) Exit: (+++) WKUP pin rising edge, RTC alarm (Alarm A and Alarm B), RTC wake-up, tamper event, time-stamp event, external reset in NRST pin, IWDG reset. *** Auto-wake-up (AWU) from low-power mode *** ============================================= [..] (+) The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC Wake-up event, a tamper event or a time-stamp event, without depending on an external interrupt (Auto-wake-up mode). (+) RTC auto-wake-up (AWU) from the Stop and Standby modes (++) To wake up from the Stop mode with an RTC alarm event, it is necessary to configure the RTC to generate the RTC alarm using the HAL_RTC_SetAlarm_IT() function. (++) To wake up from the Stop mode with an RTC Tamper or time stamp event, it is necessary to configure the RTC to detect the tamper or time stamp event using the HAL_RTCEx_SetTimeStamp_IT() or HAL_RTCEx_SetTamper_IT() functions. (++) To wake up from the Stop mode with an RTC Wake-up event, it is necessary to configure the RTC to generate the RTC Wake-up event using the HAL_RTCEx_SetWakeUpTimer_IT() function. @endverbatim * @{ */ /** * @brief Configures the voltage threshold detected by the Power Voltage Detector(PVD). * @param sConfigPVD pointer to an PWR_PVDTypeDef structure that contains the configuration * information for the PVD. * @note Refer to the electrical characteristics of your device datasheet for * more details about the voltage threshold corresponding to each * detection level. * @retval None */ void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD) { /* Check the parameters */ assert_param(IS_PWR_PVD_LEVEL(sConfigPVD->PVDLevel)); assert_param(IS_PWR_PVD_MODE(sConfigPVD->Mode)); /* Set PLS[7:5] bits according to PVDLevel value */ MODIFY_REG(PWR->CR, PWR_CR_PLS, sConfigPVD->PVDLevel); /* Clear any previous config. Keep it clear if no event or IT mode is selected */ __HAL_PWR_PVD_EXTI_DISABLE_EVENT(); __HAL_PWR_PVD_EXTI_DISABLE_IT(); __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(); __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); /* Configure interrupt mode */ if((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT) { __HAL_PWR_PVD_EXTI_ENABLE_IT(); } /* Configure event mode */ if((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT) { __HAL_PWR_PVD_EXTI_ENABLE_EVENT(); } /* Configure the edge */ if((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE) { __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE(); } if((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE) { __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE(); } } /** * @brief Enables the Power Voltage Detector(PVD). * @retval None */ void HAL_PWR_EnablePVD(void) { *(__IO uint32_t *) CR_PVDE_BB = (uint32_t)ENABLE; } /** * @brief Disables the Power Voltage Detector(PVD). * @retval None */ void HAL_PWR_DisablePVD(void) { *(__IO uint32_t *) CR_PVDE_BB = (uint32_t)DISABLE; } /** * @brief Enables the Wake-up PINx functionality. * @param WakeUpPinx Specifies the Power Wake-Up pin to enable. * This parameter can be one of the following values: * @arg PWR_WAKEUP_PIN1 * @arg PWR_WAKEUP_PIN2 available only on STM32F410xx/STM32F446xx/STM32F412xx/STM32F413xx/STM32F423xx devices * @arg PWR_WAKEUP_PIN3 available only on STM32F410xx/STM32F412xx/STM32F413xx/STM32F423xx devices * @retval None */ void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx) { /* Check the parameter */ assert_param(IS_PWR_WAKEUP_PIN(WakeUpPinx)); /* Enable the wake up pin */ SET_BIT(PWR->CSR, WakeUpPinx); } /** * @brief Disables the Wake-up PINx functionality. * @param WakeUpPinx Specifies the Power Wake-Up pin to disable. * This parameter can be one of the following values: * @arg PWR_WAKEUP_PIN1 * @arg PWR_WAKEUP_PIN2 available only on STM32F410xx/STM32F446xx/STM32F412xx/STM32F413xx/STM32F423xx devices * @arg PWR_WAKEUP_PIN3 available only on STM32F410xx/STM32F412xx/STM32F413xx/STM32F423xx devices * @retval None */ void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx) { /* Check the parameter */ assert_param(IS_PWR_WAKEUP_PIN(WakeUpPinx)); /* Disable the wake up pin */ CLEAR_BIT(PWR->CSR, WakeUpPinx); } /** * @brief Enters Sleep mode. * * @note In Sleep mode, all I/O pins keep the same state as in Run mode. * * @note In Sleep mode, the systick is stopped to avoid exit from this mode with * systick interrupt when used as time base for Timeout * * @param Regulator Specifies the regulator state in SLEEP mode. * This parameter can be one of the following values: * @arg PWR_MAINREGULATOR_ON: SLEEP mode with regulator ON * @arg PWR_LOWPOWERREGULATOR_ON: SLEEP mode with low power regulator ON * @note This parameter is not used for the STM32F4 family and is kept as parameter * just to maintain compatibility with the lower power families. * @param SLEEPEntry Specifies if SLEEP mode in entered with WFI or WFE instruction. * This parameter can be one of the following values: * @arg PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction * @arg PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction * @retval None */ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry) { /* Check the parameters */ assert_param(IS_PWR_REGULATOR(Regulator)); assert_param(IS_PWR_SLEEP_ENTRY(SLEEPEntry)); /* Clear SLEEPDEEP bit of Cortex System Control Register */ CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); /* Select SLEEP mode entry -------------------------------------------------*/ if(SLEEPEntry == PWR_SLEEPENTRY_WFI) { /* Request Wait For Interrupt */ __WFI(); } else { /* Request Wait For Event */ __SEV(); __WFE(); __WFE(); } } /** * @brief Enters Stop mode. * @note In Stop mode, all I/O pins keep the same state as in Run mode. * @note When exiting Stop mode by issuing an interrupt or a wake-up event, * the HSI RC oscillator is selected as system clock. * @note When the voltage regulator operates in low power mode, an additional * startup delay is incurred when waking up from Stop mode. * By keeping the internal regulator ON during Stop mode, the consumption * is higher although the startup time is reduced. * @param Regulator Specifies the regulator state in Stop mode. * This parameter can be one of the following values: * @arg PWR_MAINREGULATOR_ON: Stop mode with regulator ON * @arg PWR_LOWPOWERREGULATOR_ON: Stop mode with low power regulator ON * @param STOPEntry Specifies if Stop mode in entered with WFI or WFE instruction. * This parameter can be one of the following values: * @arg PWR_STOPENTRY_WFI: Enter Stop mode with WFI instruction * @arg PWR_STOPENTRY_WFE: Enter Stop mode with WFE instruction * @retval None */ void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry) { /* Check the parameters */ assert_param(IS_PWR_REGULATOR(Regulator)); assert_param(IS_PWR_STOP_ENTRY(STOPEntry)); /* Select the regulator state in Stop mode: Set PDDS and LPDS bits according to PWR_Regulator value */ MODIFY_REG(PWR->CR, (PWR_CR_PDDS | PWR_CR_LPDS), Regulator); /* Set SLEEPDEEP bit of Cortex System Control Register */ SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); /* Select Stop mode entry --------------------------------------------------*/ if(STOPEntry == PWR_STOPENTRY_WFI) { /* Request Wait For Interrupt */ __WFI(); } else { /* Request Wait For Event */ __SEV(); __WFE(); __WFE(); } /* Reset SLEEPDEEP bit of Cortex System Control Register */ CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); } /** * @brief Enters Standby mode. * @note In Standby mode, all I/O pins are high impedance except for: * - Reset pad (still available) * - RTC_AF1 pin (PC13) if configured for tamper, time-stamp, RTC * Alarm out, or RTC clock calibration out. * - RTC_AF2 pin (PI8) if configured for tamper or time-stamp. * - WKUP pin 1 (PA0) if enabled. * @retval None */ void HAL_PWR_EnterSTANDBYMode(void) { /* Select Standby mode */ SET_BIT(PWR->CR, PWR_CR_PDDS); /* Set SLEEPDEEP bit of Cortex System Control Register */ SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); /* This option is used to ensure that store operations are completed */ #if defined ( __CC_ARM) __force_stores(); #endif /* Request Wait For Interrupt */ __WFI(); } /** * @brief This function handles the PWR PVD interrupt request. * @note This API should be called under the PVD_IRQHandler(). * @retval None */ void HAL_PWR_PVD_IRQHandler(void) { /* Check PWR Exti flag */ if(__HAL_PWR_PVD_EXTI_GET_FLAG() != RESET) { /* PWR PVD interrupt user callback */ HAL_PWR_PVDCallback(); /* Clear PWR Exti pending bit */ __HAL_PWR_PVD_EXTI_CLEAR_FLAG(); } } /** * @brief PWR PVD interrupt callback * @retval None */ __weak void HAL_PWR_PVDCallback(void) { /* NOTE : This function Should not be modified, when the callback is needed, the HAL_PWR_PVDCallback could be implemented in the user file */ } /** * @brief Indicates Sleep-On-Exit when returning from Handler mode to Thread mode. * @note Set SLEEPONEXIT bit of SCR register. When this bit is set, the processor * re-enters SLEEP mode when an interruption handling is over. * Setting this bit is useful when the processor is expected to run only on * interruptions handling. * @retval None */ void HAL_PWR_EnableSleepOnExit(void) { /* Set SLEEPONEXIT bit of Cortex System Control Register */ SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk)); } /** * @brief Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode. * @note Clears SLEEPONEXIT bit of SCR register. When this bit is set, the processor * re-enters SLEEP mode when an interruption handling is over. * @retval None */ void HAL_PWR_DisableSleepOnExit(void) { /* Clear SLEEPONEXIT bit of Cortex System Control Register */ CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk)); } /** * @brief Enables CORTEX M4 SEVONPEND bit. * @note Sets SEVONPEND bit of SCR register. When this bit is set, this causes * WFE to wake up when an interrupt moves from inactive to pended. * @retval None */ void HAL_PWR_EnableSEVOnPend(void) { /* Set SEVONPEND bit of Cortex System Control Register */ SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk)); } /** * @brief Disables CORTEX M4 SEVONPEND bit. * @note Clears SEVONPEND bit of SCR register. When this bit is set, this causes * WFE to wake up when an interrupt moves from inactive to pended. * @retval None */ void HAL_PWR_DisableSEVOnPend(void) { /* Clear SEVONPEND bit of Cortex System Control Register */ CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk)); } /** * @} */ /** * @} */ #endif /* HAL_PWR_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_pwr_ex.c * @author MCD Application Team * @brief Extended PWR HAL module driver. * This file provides firmware functions to manage the following * functionalities of PWR extension peripheral: * + Peripheral Extended features functions * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup PWREx PWREx * @brief PWR HAL module driver * @{ */ #ifdef HAL_PWR_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup PWREx_Private_Constants * @{ */ #define PWR_OVERDRIVE_TIMEOUT_VALUE 1000U #define PWR_UDERDRIVE_TIMEOUT_VALUE 1000U #define PWR_BKPREG_TIMEOUT_VALUE 1000U #define PWR_VOSRDY_TIMEOUT_VALUE 1000U /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @defgroup PWREx_Exported_Functions PWREx Exported Functions * @{ */ /** @defgroup PWREx_Exported_Functions_Group1 Peripheral Extended features functions * @brief Peripheral Extended features functions * @verbatim =============================================================================== ##### Peripheral extended features functions ##### =============================================================================== *** Main and Backup Regulators configuration *** ================================================ [..] (+) The backup domain includes 4 Kbytes of backup SRAM accessible only from the CPU, and address in 32-bit, 16-bit or 8-bit mode. Its content is retained even in Standby or VBAT mode when the low power backup regulator is enabled. It can be considered as an internal EEPROM when VBAT is always present. You can use the HAL_PWREx_EnableBkUpReg() function to enable the low power backup regulator. (+) When the backup domain is supplied by VDD (analog switch connected to VDD) the backup SRAM is powered from VDD which replaces the VBAT power supply to save battery life. (+) The backup SRAM is not mass erased by a tamper event. It is read protected to prevent confidential data, such as cryptographic private key, from being accessed. The backup SRAM can be erased only through the Flash interface when a protection level change from level 1 to level 0 is requested. -@- Refer to the description of Read protection (RDP) in the Flash programming manual. (+) The main internal regulator can be configured to have a tradeoff between performance and power consumption when the device does not operate at the maximum frequency. This is done through __HAL_PWR_MAINREGULATORMODE_CONFIG() macro which configure VOS bit in PWR_CR register Refer to the product datasheets for more details. *** FLASH Power Down configuration **** ======================================= [..] (+) By setting the FPDS bit in the PWR_CR register by using the HAL_PWREx_EnableFlashPowerDown() function, the Flash memory also enters power down mode when the device enters Stop mode. When the Flash memory is in power down mode, an additional startup delay is incurred when waking up from Stop mode. (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, the scale can be modified only when the PLL is OFF and the HSI or HSE clock source is selected as system clock. The new value programmed is active only when the PLL is ON. When the PLL is OFF, the voltage scale 3 is automatically selected. Refer to the datasheets for more details. *** Over-Drive and Under-Drive configuration **** ================================================= [..] (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Run mode: the main regulator has 2 operating modes available: (++) Normal mode: The CPU and core logic operate at maximum frequency at a given voltage scaling (scale 1, scale 2 or scale 3) (++) Over-drive mode: This mode allows the CPU and the core logic to operate at a higher frequency than the normal mode for a given voltage scaling (scale 1, scale 2 or scale 3). This mode is enabled through HAL_PWREx_EnableOverDrive() function and disabled by HAL_PWREx_DisableOverDrive() function, to enter or exit from Over-drive mode please follow the sequence described in Reference manual. (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Stop mode: the main regulator or low power regulator supplies a low power voltage to the 1.2V domain, thus preserving the content of registers and internal SRAM. 2 operating modes are available: (++) Normal mode: the 1.2V domain is preserved in nominal leakage mode. This mode is only available when the main regulator or the low power regulator is used in Scale 3 or low voltage mode. (++) Under-drive mode: the 1.2V domain is preserved in reduced leakage mode. This mode is only available when the main regulator or the low power regulator is in low voltage mode. @endverbatim * @{ */ /** * @brief Enables the Backup Regulator. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void) { uint32_t tickstart = 0U; *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)ENABLE; /* Get tick */ tickstart = HAL_GetTick(); /* Wait till Backup regulator ready flag is set */ while(__HAL_PWR_GET_FLAG(PWR_FLAG_BRR) == RESET) { if((HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Disables the Backup Regulator. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void) { uint32_t tickstart = 0U; *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)DISABLE; /* Get tick */ tickstart = HAL_GetTick(); /* Wait till Backup regulator ready flag is set */ while(__HAL_PWR_GET_FLAG(PWR_FLAG_BRR) != RESET) { if((HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Enables the Flash Power Down in Stop mode. * @retval None */ void HAL_PWREx_EnableFlashPowerDown(void) { *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)ENABLE; } /** * @brief Disables the Flash Power Down in Stop mode. * @retval None */ void HAL_PWREx_DisableFlashPowerDown(void) { *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)DISABLE; } /** * @brief Return Voltage Scaling Range. * @retval The configured scale for the regulator voltage(VOS bit field). * The returned value can be one of the following: * - @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode * - @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode * - @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode */ uint32_t HAL_PWREx_GetVoltageRange(void) { return (PWR->CR & PWR_CR_VOS); } #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) /** * @brief Configures the main internal regulator output voltage. * @param VoltageScaling specifies the regulator output voltage to achieve * a tradeoff between performance and power consumption. * This parameter can be one of the following values: * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output range 1 mode, * the maximum value of fHCLK = 168 MHz. * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output range 2 mode, * the maximum value of fHCLK = 144 MHz. * @note When moving from Range 1 to Range 2, the system frequency must be decreased to * a value below 144 MHz before calling HAL_PWREx_ConfigVoltageScaling() API. * When moving from Range 2 to Range 1, the system frequency can be increased to * a value up to 168 MHz after calling HAL_PWREx_ConfigVoltageScaling() API. * @retval HAL Status */ HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling) { uint32_t tickstart = 0U; assert_param(IS_PWR_VOLTAGE_SCALING_RANGE(VoltageScaling)); /* Enable PWR RCC Clock Peripheral */ __HAL_RCC_PWR_CLK_ENABLE(); /* Set Range */ __HAL_PWR_VOLTAGESCALING_CONFIG(VoltageScaling); /* Get Start Tick*/ tickstart = HAL_GetTick(); while((__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY) == RESET)) { if((HAL_GetTick() - tickstart ) > PWR_VOSRDY_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } return HAL_OK; } #elif defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || \ defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) || \ defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || \ defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Configures the main internal regulator output voltage. * @param VoltageScaling specifies the regulator output voltage to achieve * a tradeoff between performance and power consumption. * This parameter can be one of the following values: * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output range 1 mode, * the maximum value of fHCLK is 168 MHz. It can be extended to * 180 MHz by activating the over-drive mode. * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output range 2 mode, * the maximum value of fHCLK is 144 MHz. It can be extended to, * 168 MHz by activating the over-drive mode. * @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output range 3 mode, * the maximum value of fHCLK is 120 MHz. * @note To update the system clock frequency(SYSCLK): * - Set the HSI or HSE as system clock frequency using the HAL_RCC_ClockConfig(). * - Call the HAL_RCC_OscConfig() to configure the PLL. * - Call HAL_PWREx_ConfigVoltageScaling() API to adjust the voltage scale. * - Set the new system clock frequency using the HAL_RCC_ClockConfig(). * @note The scale can be modified only when the HSI or HSE clock source is selected * as system clock source, otherwise the API returns HAL_ERROR. * @note When the PLL is OFF, the voltage scale 3 is automatically selected and the VOS bits * value in the PWR_CR1 register are not taken in account. * @note This API forces the PLL state ON to allow the possibility to configure the voltage scale 1 or 2. * @note The new voltage scale is active only when the PLL is ON. * @retval HAL Status */ HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling) { uint32_t tickstart = 0U; assert_param(IS_PWR_VOLTAGE_SCALING_RANGE(VoltageScaling)); /* Enable PWR RCC Clock Peripheral */ __HAL_RCC_PWR_CLK_ENABLE(); /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) { /* Disable the main PLL */ __HAL_RCC_PLL_DISABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Set Range */ __HAL_PWR_VOLTAGESCALING_CONFIG(VoltageScaling); /* Enable the main PLL */ __HAL_RCC_PLL_ENABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Get Start Tick */ tickstart = HAL_GetTick(); while((__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY) == RESET)) { if((HAL_GetTick() - tickstart ) > PWR_VOSRDY_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { return HAL_ERROR; } return HAL_OK; } #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) ||\ defined(STM32F411xE) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Enables Main Regulator low voltage mode. * @note This mode is only available for STM32F401xx/STM32F410xx/STM32F411xx/STM32F412Zx/STM32F412Rx/STM32F412Vx/STM32F412Cx/ * STM32F413xx/STM32F423xx devices. * @retval None */ void HAL_PWREx_EnableMainRegulatorLowVoltage(void) { *(__IO uint32_t *) CR_MRLVDS_BB = (uint32_t)ENABLE; } /** * @brief Disables Main Regulator low voltage mode. * @note This mode is only available for STM32F401xx/STM32F410xx/STM32F411xx/STM32F412Zx/STM32F412Rx/STM32F412Vx/STM32F412Cx/ * STM32F413xx/STM32F423xxdevices. * @retval None */ void HAL_PWREx_DisableMainRegulatorLowVoltage(void) { *(__IO uint32_t *) CR_MRLVDS_BB = (uint32_t)DISABLE; } /** * @brief Enables Low Power Regulator low voltage mode. * @note This mode is only available for STM32F401xx/STM32F410xx/STM32F411xx/STM32F412Zx/STM32F412Rx/STM32F412Vx/STM32F412Cx/ * STM32F413xx/STM32F423xx devices. * @retval None */ void HAL_PWREx_EnableLowRegulatorLowVoltage(void) { *(__IO uint32_t *) CR_LPLVDS_BB = (uint32_t)ENABLE; } /** * @brief Disables Low Power Regulator low voltage mode. * @note This mode is only available for STM32F401xx/STM32F410xx/STM32F411xx/STM32F412Zx/STM32F412Rx/STM32F412Vx/STM32F412Cx/ * STM32F413xx/STM32F423xx devices. * @retval None */ void HAL_PWREx_DisableLowRegulatorLowVoltage(void) { *(__IO uint32_t *) CR_LPLVDS_BB = (uint32_t)DISABLE; } #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F412Zx || STM32F412Rx || STM32F412Vx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Activates the Over-Drive mode. * @note This function can be used only for STM32F42xx/STM32F43xx/STM32F446xx/STM32F469xx/STM32F479xx devices. * This mode allows the CPU and the core logic to operate at a higher frequency * than the normal mode for a given voltage scaling (scale 1, scale 2 or scale 3). * @note It is recommended to enter or exit Over-drive mode when the application is not running * critical tasks and when the system clock source is either HSI or HSE. * During the Over-drive switch activation, no peripheral clocks should be enabled. * The peripheral clocks must be enabled once the Over-drive mode is activated. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void) { uint32_t tickstart = 0U; __HAL_RCC_PWR_CLK_ENABLE(); /* Enable the Over-drive to extend the clock frequency to 180 Mhz */ __HAL_PWR_OVERDRIVE_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) { if((HAL_GetTick() - tickstart) > PWR_OVERDRIVE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Enable the Over-drive switch */ __HAL_PWR_OVERDRIVESWITCHING_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) { if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Deactivates the Over-Drive mode. * @note This function can be used only for STM32F42xx/STM32F43xx/STM32F446xx/STM32F469xx/STM32F479xx devices. * This mode allows the CPU and the core logic to operate at a higher frequency * than the normal mode for a given voltage scaling (scale 1, scale 2 or scale 3). * @note It is recommended to enter or exit Over-drive mode when the application is not running * critical tasks and when the system clock source is either HSI or HSE. * During the Over-drive switch activation, no peripheral clocks should be enabled. * The peripheral clocks must be enabled once the Over-drive mode is activated. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void) { uint32_t tickstart = 0U; __HAL_RCC_PWR_CLK_ENABLE(); /* Disable the Over-drive switch */ __HAL_PWR_OVERDRIVESWITCHING_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); while(__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) { if((HAL_GetTick() - tickstart) > PWR_OVERDRIVE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Disable the Over-drive */ __HAL_PWR_OVERDRIVE_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); while(__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) { if((HAL_GetTick() - tickstart) > PWR_OVERDRIVE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Enters in Under-Drive STOP mode. * * @note This mode is only available for STM32F42xxx/STM32F43xxx/STM32F446xx/STM32F469xx/STM32F479xx devices. * * @note This mode can be selected only when the Under-Drive is already active * * @note This mode is enabled only with STOP low power mode. * In this mode, the 1.2V domain is preserved in reduced leakage mode. This * mode is only available when the main regulator or the low power regulator * is in low voltage mode * * @note If the Under-drive mode was enabled, it is automatically disabled after * exiting Stop mode. * When the voltage regulator operates in Under-drive mode, an additional * startup delay is induced when waking up from Stop mode. * * @note In Stop mode, all I/O pins keep the same state as in Run mode. * * @note When exiting Stop mode by issuing an interrupt or a wake-up event, * the HSI RC oscillator is selected as system clock. * * @note When the voltage regulator operates in low power mode, an additional * startup delay is incurred when waking up from Stop mode. * By keeping the internal regulator ON during Stop mode, the consumption * is higher although the startup time is reduced. * * @param Regulator specifies the regulator state in STOP mode. * This parameter can be one of the following values: * @arg PWR_MAINREGULATOR_UNDERDRIVE_ON: Main Regulator in under-drive mode * and Flash memory in power-down when the device is in Stop under-drive mode * @arg PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON: Low Power Regulator in under-drive mode * and Flash memory in power-down when the device is in Stop under-drive mode * @param STOPEntry specifies if STOP mode in entered with WFI or WFE instruction. * This parameter can be one of the following values: * @arg PWR_SLEEPENTRY_WFI: enter STOP mode with WFI instruction * @arg PWR_SLEEPENTRY_WFE: enter STOP mode with WFE instruction * @retval None */ HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry) { uint32_t tmpreg1 = 0U; /* Check the parameters */ assert_param(IS_PWR_REGULATOR_UNDERDRIVE(Regulator)); assert_param(IS_PWR_STOP_ENTRY(STOPEntry)); /* Enable Power ctrl clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable the Under-drive Mode ---------------------------------------------*/ /* Clear Under-drive flag */ __HAL_PWR_CLEAR_ODRUDR_FLAG(); /* Enable the Under-drive */ __HAL_PWR_UNDERDRIVE_ENABLE(); /* Select the regulator state in STOP mode ---------------------------------*/ tmpreg1 = PWR->CR; /* Clear PDDS, LPDS, MRLUDS and LPLUDS bits */ tmpreg1 &= (uint32_t)~(PWR_CR_PDDS | PWR_CR_LPDS | PWR_CR_LPUDS | PWR_CR_MRUDS); /* Set LPDS, MRLUDS and LPLUDS bits according to PWR_Regulator value */ tmpreg1 |= Regulator; /* Store the new value */ PWR->CR = tmpreg1; /* Set SLEEPDEEP bit of Cortex System Control Register */ SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; /* Select STOP mode entry --------------------------------------------------*/ if(STOPEntry == PWR_SLEEPENTRY_WFI) { /* Request Wait For Interrupt */ __WFI(); } else { /* Request Wait For Event */ __WFE(); } /* Reset SLEEPDEEP bit of Cortex System Control Register */ SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); return HAL_OK; } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ /** * @} */ /** * @} */ #endif /* HAL_PWR_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_rcc.c * @author MCD Application Team * @brief RCC HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Reset and Clock Control (RCC) peripheral: * + Initialization and de-initialization functions * + Peripheral Control functions * @verbatim ============================================================================== ##### RCC specific features ##### ============================================================================== [..] After reset the device is running from Internal High Speed oscillator (HSI 16MHz) with Flash 0 wait state, Flash prefetch buffer, D-Cache and I-Cache are disabled, and all peripherals are off except internal SRAM, Flash and JTAG. (+) There is no prescaler on High speed (AHB) and Low speed (APB) busses; all peripherals mapped on these busses are running at HSI speed. (+) The clock for all peripherals is switched off, except the SRAM and FLASH. (+) All GPIOs are in input floating state, except the JTAG pins which are assigned to be used for debug purpose. [..] Once the device started from reset, the user application has to: (+) Configure the clock source to be used to drive the System clock (if the application needs higher frequency/performance) (+) Configure the System clock frequency and Flash settings (+) Configure the AHB and APB busses prescalers (+) Enable the clock for the peripheral(s) to be used (+) Configure the clock source(s) for peripherals which clocks are not derived from the System clock (I2S, RTC, ADC, USB OTG FS/SDIO/RNG) ##### RCC Limitations ##### ============================================================================== [..] A delay between an RCC peripheral clock enable and the effective peripheral enabling should be taken into account in order to manage the peripheral read/write from/to registers. (+) This delay depends on the peripheral mapping. (+) If peripheral is mapped on AHB: the delay is 2 AHB clock cycle after the clock enable bit is set on the hardware register (+) If peripheral is mapped on APB: the delay is 2 APB clock cycle after the clock enable bit is set on the hardware register [..] Implemented Workaround: (+) For AHB & APB peripherals, a dummy read to the peripheral register has been inserted in each __HAL_RCC_PPP_CLK_ENABLE() macro. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup RCC RCC * @brief RCC HAL module driver * @{ */ #ifdef HAL_RCC_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup RCC_Private_Constants * @{ */ /* Private macro -------------------------------------------------------------*/ #define __MCO1_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() #define MCO1_GPIO_PORT GPIOA #define MCO1_PIN GPIO_PIN_8 #define __MCO2_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() #define MCO2_GPIO_PORT GPIOC #define MCO2_PIN GPIO_PIN_9 /** * @} */ /* Private variables ---------------------------------------------------------*/ /** @defgroup RCC_Private_Variables RCC Private Variables * @{ */ /** * @} */ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @defgroup RCC_Exported_Functions RCC Exported Functions * @{ */ /** @defgroup RCC_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to configure the internal/external oscillators (HSE, HSI, LSE, LSI, PLL, CSS and MCO) and the System busses clocks (SYSCLK, AHB, APB1 and APB2). [..] Internal/external clock and PLL configuration (#) HSI (high-speed internal), 16 MHz factory-trimmed RC used directly or through the PLL as System clock source. (#) LSI (low-speed internal), 32 KHz low consumption RC used as IWDG and/or RTC clock source. (#) HSE (high-speed external), 4 to 26 MHz crystal oscillator used directly or through the PLL as System clock source. Can be used also as RTC clock source. (#) LSE (low-speed external), 32 KHz oscillator used as RTC clock source. (#) PLL (clocked by HSI or HSE), featuring two different output clocks: (++) The first output is used to generate the high speed system clock (up to 168 MHz) (++) The second output is used to generate the clock for the USB OTG FS (48 MHz), the random analog generator (<=48 MHz) and the SDIO (<= 48 MHz). (#) CSS (Clock security system), once enable using the macro __HAL_RCC_CSS_ENABLE() and if a HSE clock failure occurs(HSE used directly or through PLL as System clock source), the System clocks automatically switched to HSI and an interrupt is generated if enabled. The interrupt is linked to the Cortex-M4 NMI (Non-Maskable Interrupt) exception vector. (#) MCO1 (microcontroller clock output), used to output HSI, LSE, HSE or PLL clock (through a configurable prescaler) on PA8 pin. (#) MCO2 (microcontroller clock output), used to output HSE, PLL, SYSCLK or PLLI2S clock (through a configurable prescaler) on PC9 pin. [..] System, AHB and APB busses clocks configuration (#) Several clock sources can be used to drive the System clock (SYSCLK): HSI, HSE and PLL. The AHB clock (HCLK) is derived from System clock through configurable prescaler and used to clock the CPU, memory and peripherals mapped on AHB bus (DMA, GPIO...). APB1 (PCLK1) and APB2 (PCLK2) clocks are derived from AHB clock through configurable prescalers and used to clock the peripherals mapped on these busses. You can use "HAL_RCC_GetSysClockFreq()" function to retrieve the frequencies of these clocks. (#) For the STM32F405xx/07xx and STM32F415xx/17xx devices, the maximum frequency of the SYSCLK and HCLK is 168 MHz, PCLK2 84 MHz and PCLK1 42 MHz. Depending on the device voltage range, the maximum frequency should be adapted accordingly (refer to the product datasheets for more details). (#) For the STM32F42xxx, STM32F43xxx, STM32F446xx, STM32F469xx and STM32F479xx devices, the maximum frequency of the SYSCLK and HCLK is 180 MHz, PCLK2 90 MHz and PCLK1 45 MHz. Depending on the device voltage range, the maximum frequency should be adapted accordingly (refer to the product datasheets for more details). (#) For the STM32F401xx, the maximum frequency of the SYSCLK and HCLK is 84 MHz, PCLK2 84 MHz and PCLK1 42 MHz. Depending on the device voltage range, the maximum frequency should be adapted accordingly (refer to the product datasheets for more details). (#) For the STM32F41xxx, the maximum frequency of the SYSCLK and HCLK is 100 MHz, PCLK2 100 MHz and PCLK1 50 MHz. Depending on the device voltage range, the maximum frequency should be adapted accordingly (refer to the product datasheets for more details). @endverbatim * @{ */ /** * @brief Resets the RCC clock configuration to the default reset state. * @note The default reset state of the clock configuration is given below: * - HSI ON and used as system clock source * - HSE and PLL OFF * - AHB, APB1 and APB2 prescaler set to 1. * - CSS, MCO1 and MCO2 OFF * - All interrupts disabled * @note This function doesn't modify the configuration of the * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval HAL status */ __weak HAL_StatusTypeDef HAL_RCC_DeInit(void) { return HAL_OK; } /** * @brief Initializes the RCC Oscillators according to the specified parameters in the * RCC_OscInitTypeDef. * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that * contains the configuration information for the RCC Oscillators. * @note The PLL is not disabled when used as system clock. * @note Transitions LSE Bypass to LSE On and LSE On to LSE Bypass are not * supported by this API. User should request a transition to LSE Off * first and then LSE On or LSE Bypass. * @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not * supported by this API. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { uint32_t tickstart, pll_config; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) { return HAL_ERROR; } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); /* Check the HSE State */ if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) { /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till HSE is bypassed or disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) { /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) { return HAL_ERROR; } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); } } else { /* Check the HSI State */ if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF) { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value. */ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF) { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) { FlagStatus pwrclkchanged = RESET; /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) { __HAL_RCC_PWR_CLK_ENABLE(); pwrclkchanged = SET; } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); /* Check the LSE State */ if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } /* Restore clock configuration if changed */ if(pwrclkchanged == SET) { __HAL_RCC_PWR_CLK_DISABLE(); } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) { /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLLM_VALUE(RCC_OscInitStruct->PLL.PLLM)); assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN)); assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ RCC_OscInitStruct->PLL.PLLM | \ (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \ (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \ (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) { return HAL_ERROR; } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; #if defined (RCC_PLLCFGR_PLLR) if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) #else if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) #endif { return HAL_ERROR; } } } } return HAL_OK; } /** * @brief Initializes the CPU, AHB and APB busses clocks according to the specified * parameters in the RCC_ClkInitStruct. * @param RCC_ClkInitStruct pointer to an RCC_OscInitTypeDef structure that * contains the configuration information for the RCC peripheral. * @param FLatency FLASH Latency, this parameter depend on device selected * * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated by HAL_RCC_GetHCLKFreq() function called within this function * * @note The HSI is used (enabled by hardware) as system clock source after * startup from Reset, wake-up from STOP and STANDBY mode, or in case * of failure of the HSE used directly or indirectly as system clock * (if the Clock Security System CSS is enabled). * * @note A switch from one clock source to another occurs only if the target * clock source is ready (clock stable after startup delay or PLL locked). * If a clock source which is not yet ready is selected, the switch will * occur when the clock source will be ready. * * @note Depending on the device voltage range, the software has to set correctly * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency * (for more details refer to section above "Initialization/de-initialization functions") * @retval None */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); assert_param(IS_FLASH_LATENCY(FLatency)); /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) and the supply voltage of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if(FLatency > __HAL_FLASH_GET_LATENCY()) { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) { return HAL_ERROR; } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) { /* Set the highest APBx dividers in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); } if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); } assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) { return HAL_ERROR; } } /* PLL is selected as System Clock Source */ else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) { return HAL_ERROR; } } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) { return HAL_ERROR; } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); /* Get Start Tick */ tickstart = HAL_GetTick(); while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) { return HAL_ERROR; } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); } /*-------------------------- PCLK2 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos]; /* Configure the source of time base considering new system clocks settings */ HAL_InitTick (uwTickPrio); return HAL_OK; } /** * @} */ /** @defgroup RCC_Exported_Functions_Group2 Peripheral Control functions * @brief RCC clocks control functions * @verbatim =============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the RCC Clocks frequencies. @endverbatim * @{ */ /** * @brief Selects the clock source to output on MCO1 pin(PA8) or on MCO2 pin(PC9). * @note PA8/PC9 should be configured in alternate function mode. * @param RCC_MCOx specifies the output direction for the clock source. * This parameter can be one of the following values: * @arg RCC_MCO1: Clock source to output on MCO1 pin(PA8). * @arg RCC_MCO2: Clock source to output on MCO2 pin(PC9). * @param RCC_MCOSource specifies the clock source to output. * This parameter can be one of the following values: * @arg RCC_MCO1SOURCE_HSI: HSI clock selected as MCO1 source * @arg RCC_MCO1SOURCE_LSE: LSE clock selected as MCO1 source * @arg RCC_MCO1SOURCE_HSE: HSE clock selected as MCO1 source * @arg RCC_MCO1SOURCE_PLLCLK: main PLL clock selected as MCO1 source * @arg RCC_MCO2SOURCE_SYSCLK: System clock (SYSCLK) selected as MCO2 source * @arg RCC_MCO2SOURCE_PLLI2SCLK: PLLI2S clock selected as MCO2 source, available for all STM32F4 devices except STM32F410xx * @arg RCC_MCO2SOURCE_I2SCLK: I2SCLK clock selected as MCO2 source, available only for STM32F410Rx devices * @arg RCC_MCO2SOURCE_HSE: HSE clock selected as MCO2 source * @arg RCC_MCO2SOURCE_PLLCLK: main PLL clock selected as MCO2 source * @param RCC_MCODiv specifies the MCOx prescaler. * This parameter can be one of the following values: * @arg RCC_MCODIV_1: no division applied to MCOx clock * @arg RCC_MCODIV_2: division by 2 applied to MCOx clock * @arg RCC_MCODIV_3: division by 3 applied to MCOx clock * @arg RCC_MCODIV_4: division by 4 applied to MCOx clock * @arg RCC_MCODIV_5: division by 5 applied to MCOx clock * @note For STM32F410Rx devices to output I2SCLK clock on MCO2 you should have * at last one of the SPI clocks enabled (SPI1, SPI2 or SPI5). * @retval None */ void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv) { GPIO_InitTypeDef GPIO_InitStruct; /* Check the parameters */ assert_param(IS_RCC_MCO(RCC_MCOx)); assert_param(IS_RCC_MCODIV(RCC_MCODiv)); /* RCC_MCO1 */ if(RCC_MCOx == RCC_MCO1) { assert_param(IS_RCC_MCO1SOURCE(RCC_MCOSource)); /* MCO1 Clock Enable */ __MCO1_CLK_ENABLE(); /* Configure the MCO1 pin in alternate function mode */ GPIO_InitStruct.Pin = MCO1_PIN; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Alternate = GPIO_AF0_MCO; HAL_GPIO_Init(MCO1_GPIO_PORT, &GPIO_InitStruct); /* Mask MCO1 and MCO1PRE[2:0] bits then Select MCO1 clock source and prescaler */ MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO1 | RCC_CFGR_MCO1PRE), (RCC_MCOSource | RCC_MCODiv)); /* This RCC MCO1 enable feature is available only on STM32F410xx devices */ #if defined(RCC_CFGR_MCO1EN) __HAL_RCC_MCO1_ENABLE(); #endif /* RCC_CFGR_MCO1EN */ } #if defined(RCC_CFGR_MCO2) else { assert_param(IS_RCC_MCO2SOURCE(RCC_MCOSource)); /* MCO2 Clock Enable */ __MCO2_CLK_ENABLE(); /* Configure the MCO2 pin in alternate function mode */ GPIO_InitStruct.Pin = MCO2_PIN; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Alternate = GPIO_AF0_MCO; HAL_GPIO_Init(MCO2_GPIO_PORT, &GPIO_InitStruct); /* Mask MCO2 and MCO2PRE[2:0] bits then Select MCO2 clock source and prescaler */ MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO2 | RCC_CFGR_MCO2PRE), (RCC_MCOSource | (RCC_MCODiv << 3U))); /* This RCC MCO2 enable feature is available only on STM32F410Rx devices */ #if defined(RCC_CFGR_MCO2EN) __HAL_RCC_MCO2_ENABLE(); #endif /* RCC_CFGR_MCO2EN */ } #endif /* RCC_CFGR_MCO2 */ } /** * @brief Enables the Clock Security System. * @note If a failure is detected on the HSE oscillator clock, this oscillator * is automatically disabled and an interrupt is generated to inform the * software about the failure (Clock Security System Interrupt, CSSI), * allowing the MCU to perform rescue operations. The CSSI is linked to * the Cortex-M4 NMI (Non-Maskable Interrupt) exception vector. * @retval None */ void HAL_RCC_EnableCSS(void) { *(__IO uint32_t *) RCC_CR_CSSON_BB = (uint32_t)ENABLE; } /** * @brief Disables the Clock Security System. * @retval None */ void HAL_RCC_DisableCSS(void) { *(__IO uint32_t *) RCC_CR_CSSON_BB = (uint32_t)DISABLE; } /** * @brief Returns the SYSCLK frequency * * @note The system frequency computed by this function is not the real * frequency in the chip. It is calculated based on the predefined * constant and the selected clock source: * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(*) * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(**) * @note If SYSCLK source is PLL, function returns values based on HSE_VALUE(**) * or HSI_VALUE(*) multiplied/divided by the PLL factors. * @note (*) HSI_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value * 16 MHz) but the real value may vary depending on the variations * in voltage and temperature. * @note (**) HSE_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value * 25 MHz), user has to ensure that HSE_VALUE is same as the real * frequency of the crystal used. Otherwise, this function may * have wrong result. * * @note The result of this function could be not correct when using fractional * value for HSE crystal. * * @note This function can be used by the user application to compute the * baudrate for the communication peripherals or configure other parameters. * * @note Each time SYSCLK changes, this function must be called to update the * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * * @retval SYSCLK frequency */ __weak uint32_t HAL_RCC_GetSysClockFreq(void) { uint32_t pllm = 0U, pllvco = 0U, pllp = 0U; uint32_t sysclockfreq = 0U; /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; break; } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; break; } case RCC_CFGR_SWS_PLL: /* PLL used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) *2U); sysclockfreq = pllvco/pllp; break; } default: { sysclockfreq = HSI_VALUE; break; } } return sysclockfreq; } /** * @brief Returns the HCLK frequency * @note Each time HCLK changes, this function must be called to update the * right HCLK value. Otherwise, any configuration based on this function will be incorrect. * * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { return SystemCoreClock; } /** * @brief Returns the PCLK1 frequency * @note Each time PCLK1 changes, this function must be called to update the * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK1 frequency */ uint32_t HAL_RCC_GetPCLK1Freq(void) { /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1)>> RCC_CFGR_PPRE1_Pos]); } /** * @brief Returns the PCLK2 frequency * @note Each time PCLK2 changes, this function must be called to update the * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK2 frequency */ uint32_t HAL_RCC_GetPCLK2Freq(void) { /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> RCC_CFGR_PPRE2_Pos]); } /** * @brief Configures the RCC_OscInitStruct according to the internal * RCC configuration registers. * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that * will be configured. * @retval None */ __weak void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { /* Set all possible values for the Oscillator type parameter ---------------*/ RCC_OscInitStruct->OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_LSE | RCC_OSCILLATORTYPE_LSI; /* Get the HSE configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_HSEBYP) == RCC_CR_HSEBYP) { RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS; } else if((RCC->CR &RCC_CR_HSEON) == RCC_CR_HSEON) { RCC_OscInitStruct->HSEState = RCC_HSE_ON; } else { RCC_OscInitStruct->HSEState = RCC_HSE_OFF; } /* Get the HSI configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_HSION) == RCC_CR_HSION) { RCC_OscInitStruct->HSIState = RCC_HSI_ON; } else { RCC_OscInitStruct->HSIState = RCC_HSI_OFF; } RCC_OscInitStruct->HSICalibrationValue = (uint32_t)((RCC->CR &RCC_CR_HSITRIM) >> RCC_CR_HSITRIM_Pos); /* Get the LSE configuration -----------------------------------------------*/ if((RCC->BDCR &RCC_BDCR_LSEBYP) == RCC_BDCR_LSEBYP) { RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS; } else if((RCC->BDCR &RCC_BDCR_LSEON) == RCC_BDCR_LSEON) { RCC_OscInitStruct->LSEState = RCC_LSE_ON; } else { RCC_OscInitStruct->LSEState = RCC_LSE_OFF; } /* Get the LSI configuration -----------------------------------------------*/ if((RCC->CSR &RCC_CSR_LSION) == RCC_CSR_LSION) { RCC_OscInitStruct->LSIState = RCC_LSI_ON; } else { RCC_OscInitStruct->LSIState = RCC_LSI_OFF; } /* Get the PLL configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_PLLON) == RCC_CR_PLLON) { RCC_OscInitStruct->PLL.PLLState = RCC_PLL_ON; } else { RCC_OscInitStruct->PLL.PLLState = RCC_PLL_OFF; } RCC_OscInitStruct->PLL.PLLSource = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC); RCC_OscInitStruct->PLL.PLLM = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM); RCC_OscInitStruct->PLL.PLLN = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); RCC_OscInitStruct->PLL.PLLP = (uint32_t)((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) + RCC_PLLCFGR_PLLP_0) << 1U) >> RCC_PLLCFGR_PLLP_Pos); RCC_OscInitStruct->PLL.PLLQ = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos); } /** * @brief Configures the RCC_ClkInitStruct according to the internal * RCC configuration registers. * @param RCC_ClkInitStruct pointer to an RCC_ClkInitTypeDef structure that * will be configured. * @param pFLatency Pointer on the Flash Latency. * @retval None */ void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) { /* Set all possible values for the Clock type parameter --------------------*/ RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2; /* Get the SYSCLK configuration --------------------------------------------*/ RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); /* Get the HCLK configuration ----------------------------------------------*/ RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE); /* Get the APB1 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1); /* Get the APB2 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3U); /* Get the Flash Wait State (Latency) configuration ------------------------*/ *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); } /** * @brief This function handles the RCC CSS interrupt request. * @note This API should be called under the NMI_Handler(). * @retval None */ void HAL_RCC_NMI_IRQHandler(void) { /* Check RCC CSSF flag */ if(__HAL_RCC_GET_IT(RCC_IT_CSS)) { /* RCC Clock Security System interrupt user callback */ HAL_RCC_CSSCallback(); /* Clear RCC CSS pending bit */ __HAL_RCC_CLEAR_IT(RCC_IT_CSS); } } /** * @brief RCC Clock Security System interrupt callback * @retval None */ __weak void HAL_RCC_CSSCallback(void) { /* NOTE : This function Should not be modified, when the callback is needed, the HAL_RCC_CSSCallback could be implemented in the user file */ } /** * @} */ /** * @} */ #endif /* HAL_RCC_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_rcc_ex.c * @author MCD Application Team * @brief Extension RCC HAL module driver. * This file provides firmware functions to manage the following * functionalities RCC extension peripheral: * + Extended Peripheral Control functions * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup RCCEx RCCEx * @brief RCCEx HAL module driver * @{ */ #ifdef HAL_RCC_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup RCCEx_Private_Constants * @{ */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** @defgroup RCCEx_Exported_Functions RCCEx Exported Functions * @{ */ /** @defgroup RCCEx_Exported_Functions_Group1 Extended Peripheral Control functions * @brief Extended Peripheral Control functions * @verbatim =============================================================================== ##### Extended Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the RCC Clocks frequencies. [..] (@) Important note: Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select the RTC clock source; in this case the Backup domain will be reset in order to modify the RTC Clock source, as consequence RTC registers (including the backup registers) and RCC_BDCR register are set to their reset values. @endverbatim * @{ */ #if defined(STM32F446xx) /** * @brief Initializes the RCC extended peripherals clocks according to the specified * parameters in the RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals * clocks(I2S, SAI, LTDC RTC and TIM). * * @note Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select * the RTC clock source; in this case the Backup domain will be reset in * order to modify the RTC Clock source, as consequence RTC registers (including * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; uint32_t plli2sp = 0U; uint32_t plli2sq = 0U; uint32_t plli2sr = 0U; uint32_t pllsaip = 0U; uint32_t pllsaiq = 0U; uint32_t plli2sused = 0U; uint32_t pllsaiused = 0U; /* Check the peripheral clock selection parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*------------------------ I2S APB1 configuration --------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == (RCC_PERIPHCLK_I2S_APB1)) { /* Check the parameters */ assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); /* Enable the PLLI2S when it's used as clock source for I2S */ if(PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ /*---------------------------- I2S APB2 configuration ----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) { /* Check the parameters */ assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); /* Enable the PLLI2S when it's used as clock source for I2S */ if(PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ /*--------------------------- SAI1 configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) { /* Check the parameters */ assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S) { plli2sused = 1U; } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI) { pllsaiused = 1U; } } /*--------------------------------------------------------------------------*/ /*-------------------------- SAI2 configuration ----------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2)) { /* Check the parameters */ assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection)); /* Configure SAI2 Clock source */ __HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection); /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S) { plli2sused = 1U; } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI) { pllsaiused = 1U; } } /*--------------------------------------------------------------------------*/ /*----------------------------- RTC configuration --------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { /* Configure Timer Prescaler */ __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- FMPI2C1 Configuration -----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) { /* Check the parameters */ assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); /* Configure the FMPI2C1 clock source */ __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------ CEC Configuration -------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); } /*--------------------------------------------------------------------------*/ /*----------------------------- CLK48 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) { /* Check the parameters */ assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the CLK48 clock source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); /* Enable the PLLSAI when it's used as clock source for CLK48 */ if(PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP) { pllsaiused = 1U; } } /*--------------------------------------------------------------------------*/ /*----------------------------- SDIO Configuration -------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) { /* Check the parameters */ assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------ SPDIFRX Configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) { /* Check the parameters */ assert_param(IS_RCC_SPDIFRXCLKSOURCE(PeriphClkInit->SpdifClockSelection)); /* Configure the SPDIFRX clock source */ __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifClockSelection); /* Enable the PLLI2S when it's used as clock source for SPDIFRX */ if(PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ /*---------------------------- PLLI2S Configuration ------------------------*/ /* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2, I2S on APB1, I2S on APB2 or SPDIFRX */ if((plli2sused == 1U) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) { /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /* check for common PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SM_VALUE(PeriphClkInit->PLLI2S.PLLI2SM)); assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /*------ In Case of PLLI2S is selected as source clock for I2S -----------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == RCC_PERIPHCLK_I2S_APB1) && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Read PLLI2SP/PLLI2SQ value from PLLI2SCFGR register (this value is not needed for I2S configuration) */ plli2sp = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); plli2sq = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , plli2sp, plli2sq, PeriphClkInit->PLLI2S.PLLI2SR); } /*------- In Case of PLLI2S is selected as source clock for SAI ----------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) { /* Check for PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Check for PLLI2S/DIVQ parameters */ assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ)); /* Read PLLI2SP/PLLI2SR value from PLLI2SCFGR register (this value is not needed for SAI configuration) */ plli2sp = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , plli2sp, PeriphClkInit->PLLI2S.PLLI2SQ, plli2sr); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ); } /*------ In Case of PLLI2S is selected as source clock for SPDIFRX -------*/ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) && (PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SP_VALUE(PeriphClkInit->PLLI2S.PLLI2SP)); /* Read PLLI2SR value from PLLI2SCFGR register (this value is not need for SAI configuration) */ plli2sq = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* SPDIFRXCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, plli2sq, plli2sr); } /*----------------- In Case of PLLI2S is just selected -----------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) { /* Check for Parameters */ assert_param(IS_RCC_PLLI2SP_VALUE(PeriphClkInit->PLLI2S.PLLI2SP)); assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*----------------------------- PLLSAI Configuration -----------------------*/ /* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, CLK48 or SDIO */ if(pllsaiused == 1U) { /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is disabled */ while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /* Check the PLLSAI division factors */ assert_param(IS_RCC_PLLSAIM_VALUE(PeriphClkInit->PLLSAI.PLLSAIM)); assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN)); /*------ In Case of PLLSAI is selected as source clock for SAI -----------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) { /* check for PLLSAIQ Parameter */ assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ)); /* check for PLLSAI/DIVQ Parameter */ assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ)); /* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */ pllsaip = ((((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) << 1U); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIM, PeriphClkInit->PLLSAI.PLLSAIN , pllsaip, PeriphClkInit->PLLSAI.PLLSAIQ, 0U); /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ); } /*------ In Case of PLLSAI is selected as source clock for CLK48 ---------*/ /* In Case of PLLI2S is selected as source clock for CLK48 */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP)) { /* check for Parameters */ assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP)); /* Read PLLSAIQ value from PLLI2SCFGR register (this value is not need for SAI configuration) */ pllsaiq = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* Configure the PLLSAI division factors */ /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) * (PLLI2SN/PLLSAIM) */ /* 48CLK = f(PLLSAI clock output) = f(VCO clock) / PLLSAIP */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIM, PeriphClkInit->PLLSAI.PLLSAIN , PeriphClkInit->PLLSAI.PLLSAIP, pllsaiq, 0U); } /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is ready */ while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } return HAL_OK; } /** * @brief Get the RCC_PeriphCLKInitTypeDef according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S_APB1 | RCC_PERIPHCLK_I2S_APB2 |\ RCC_PERIPHCLK_SAI1 | RCC_PERIPHCLK_SAI2 |\ RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC |\ RCC_PERIPHCLK_CEC | RCC_PERIPHCLK_FMPI2C1 |\ RCC_PERIPHCLK_CLK48 | RCC_PERIPHCLK_SDIO |\ RCC_PERIPHCLK_SPDIFRX; /* Get the PLLI2S Clock configuration --------------------------------------*/ PeriphClkInit->PLLI2S.PLLI2SM = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM) >> RCC_PLLI2SCFGR_PLLI2SM_Pos); PeriphClkInit->PLLI2S.PLLI2SN = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos); PeriphClkInit->PLLI2S.PLLI2SP = (uint32_t)((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); PeriphClkInit->PLLI2S.PLLI2SQ = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); PeriphClkInit->PLLI2S.PLLI2SR = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); /* Get the PLLSAI Clock configuration --------------------------------------*/ PeriphClkInit->PLLSAI.PLLSAIM = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIM) >> RCC_PLLSAICFGR_PLLSAIM_Pos); PeriphClkInit->PLLSAI.PLLSAIN = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> RCC_PLLSAICFGR_PLLSAIN_Pos); PeriphClkInit->PLLSAI.PLLSAIP = (uint32_t)((((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) << 1U); PeriphClkInit->PLLSAI.PLLSAIQ = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* Get the PLLSAI/PLLI2S division factors ----------------------------------*/ PeriphClkInit->PLLI2SDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLI2SDIVQ) >> RCC_DCKCFGR_PLLI2SDIVQ_Pos); PeriphClkInit->PLLSAIDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> RCC_DCKCFGR_PLLSAIDIVQ_Pos); /* Get the SAI1 clock configuration ----------------------------------------*/ PeriphClkInit->Sai1ClockSelection = __HAL_RCC_GET_SAI1_SOURCE(); /* Get the SAI2 clock configuration ----------------------------------------*/ PeriphClkInit->Sai2ClockSelection = __HAL_RCC_GET_SAI2_SOURCE(); /* Get the I2S APB1 clock configuration ------------------------------------*/ PeriphClkInit->I2sApb1ClockSelection = __HAL_RCC_GET_I2S_APB1_SOURCE(); /* Get the I2S APB2 clock configuration ------------------------------------*/ PeriphClkInit->I2sApb2ClockSelection = __HAL_RCC_GET_I2S_APB2_SOURCE(); /* Get the RTC Clock configuration -----------------------------------------*/ tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); /* Get the CEC clock configuration -----------------------------------------*/ PeriphClkInit->CecClockSelection = __HAL_RCC_GET_CEC_SOURCE(); /* Get the FMPI2C1 clock configuration -------------------------------------*/ PeriphClkInit->Fmpi2c1ClockSelection = __HAL_RCC_GET_FMPI2C1_SOURCE(); /* Get the CLK48 clock configuration ----------------------------------------*/ PeriphClkInit->Clk48ClockSelection = __HAL_RCC_GET_CLK48_SOURCE(); /* Get the SDIO clock configuration ----------------------------------------*/ PeriphClkInit->SdioClockSelection = __HAL_RCC_GET_SDIO_SOURCE(); /* Get the SPDIFRX clock configuration -------------------------------------*/ PeriphClkInit->SpdifClockSelection = __HAL_RCC_GET_SPDIFRX_SOURCE(); /* Get the TIM Prescaler configuration -------------------------------------*/ if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } } /** * @brief Return the peripheral clock frequency for a given peripheral(SAI..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_SAI1: SAI1 peripheral clock * @arg RCC_PERIPHCLK_SAI2: SAI2 peripheral clock * @arg RCC_PERIPHCLK_I2S_APB1: I2S APB1 peripheral clock * @arg RCC_PERIPHCLK_I2S_APB2: I2S APB2 peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { uint32_t tmpreg1 = 0U; /* This variable used to store the SAI clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; /* This variable used to store the SAI clock source */ uint32_t saiclocksource = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_SAI1: case RCC_PERIPHCLK_SAI2: { saiclocksource = RCC->DCKCFGR; saiclocksource &= (RCC_DCKCFGR_SAI1SRC | RCC_DCKCFGR_SAI2SRC); switch (saiclocksource) { case 0U: /* PLLSAI is the clock source for SAI*/ { /* Configure the PLLSAI division factor */ /* PLLSAI_VCO Input = PLL_SOURCE/PLLSAIM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSI) { /* In Case the PLL Source is HSI (Internal Clock) */ vcoinput = (HSI_VALUE / (uint32_t)(RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIM)); } else { /* In Case the PLL Source is HSE (External Clock) */ vcoinput = ((HSE_VALUE / (uint32_t)(RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIM))); } /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ tmpreg1 = (RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> 24U; frequency = (vcoinput * ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> 6U))/(tmpreg1); /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ tmpreg1 = (((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> 8U) + 1U); frequency = frequency/(tmpreg1); break; } case RCC_DCKCFGR_SAI1SRC_0: /* PLLI2S is the clock source for SAI*/ case RCC_DCKCFGR_SAI2SRC_0: /* PLLI2S is the clock source for SAI*/ { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSI) { /* In Case the PLL Source is HSI (Internal Clock) */ vcoinput = (HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* In Case the PLL Source is HSE (External Clock) */ vcoinput = ((HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM))); } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ tmpreg1 = (RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> 24U; frequency = (vcoinput * ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U))/(tmpreg1); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ tmpreg1 = ((RCC->DCKCFGR & RCC_DCKCFGR_PLLI2SDIVQ) + 1U); frequency = frequency/(tmpreg1); break; } case RCC_DCKCFGR_SAI1SRC_1: /* PLLR is the clock source for SAI*/ case RCC_DCKCFGR_SAI2SRC_1: /* PLLR is the clock source for SAI*/ { /* Configure the PLLI2S division factor */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSI) { /* In Case the PLL Source is HSI (Internal Clock) */ vcoinput = (HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* In Case the PLL Source is HSE (External Clock) */ vcoinput = ((HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM))); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ /* SAI_CLK_x = PLL_VCO Output/PLLR */ tmpreg1 = (RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U; frequency = (vcoinput * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U))/(tmpreg1); break; } case RCC_DCKCFGR_SAI1SRC: /* External clock is the clock source for SAI*/ { frequency = EXTERNAL_CLOCK_VALUE; break; } case RCC_DCKCFGR_SAI2SRC: /* PLLSRC(HSE or HSI) is the clock source for SAI*/ { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSI) { /* In Case the PLL Source is HSI (Internal Clock) */ frequency = (uint32_t)(HSI_VALUE); } else { /* In Case the PLL Source is HSE (External Clock) */ frequency = (uint32_t)(HSE_VALUE); } break; } default : { break; } } break; } case RCC_PERIPHCLK_I2S_APB1: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_APB1_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_PLLI2S: { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Check if I2S clock selection is PLL VCO Output divided by PLLR used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_PLLR: { /* Configure the PLL division factor R */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U) & (RCC_PLLCFGR_PLLN >> 6U))); /* I2S_CLK = PLL_VCO Output/PLLR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U) & (RCC_PLLCFGR_PLLR >> 28U))); break; } /* Check if I2S clock selection is HSI or HSE depending from PLL source Clock */ case RCC_I2SAPB1CLKSOURCE_PLLSRC: { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { frequency = HSE_VALUE; } else { frequency = HSI_VALUE; } break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } case RCC_PERIPHCLK_I2S_APB2: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_APB2_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_PLLI2S: { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Check if I2S clock selection is PLL VCO Output divided by PLLR used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_PLLR: { /* Configure the PLL division factor R */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U) & (RCC_PLLCFGR_PLLN >> 6U))); /* I2S_CLK = PLL_VCO Output/PLLR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U) & (RCC_PLLCFGR_PLLR >> 28U))); break; } /* Check if I2S clock selection is HSI or HSE depending from PLL source Clock */ case RCC_I2SAPB2CLKSOURCE_PLLSRC: { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { frequency = HSE_VALUE; } else { frequency = HSI_VALUE; } break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F446xx */ #if defined(STM32F469xx) || defined(STM32F479xx) /** * @brief Initializes the RCC extended peripherals clocks according to the specified * parameters in the RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals * clocks(I2S, SAI, LTDC, RTC and TIM). * * @note Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select * the RTC clock source; in this case the Backup domain will be reset in * order to modify the RTC Clock source, as consequence RTC registers (including * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; uint32_t pllsaip = 0U; uint32_t pllsaiq = 0U; uint32_t pllsair = 0U; /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*--------------------------- CLK48 Configuration --------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) { /* Check the parameters */ assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the CLK48 clock source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------ SDIO Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) { /* Check the parameters */ assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); } /*--------------------------------------------------------------------------*/ /*----------------------- SAI/I2S Configuration (PLLI2S) -------------------*/ /*------------------- Common configuration SAI/I2S -------------------------*/ /* In Case of SAI or I2S Clock Configuration through PLLI2S, PLLI2SN division factor is common parameters for both peripherals */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == RCC_PERIPHCLK_SAI_PLLI2S) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /*---------------------- I2S configuration -------------------------------*/ /* In Case of I2S Clock Configuration through PLLI2S, PLLI2SR must be added only for I2S configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SR); } /*---------------------------- SAI configuration -------------------------*/ /* In Case of SAI Clock Configuration through PLLI2S, PLLI2SQ and PLLI2S_DIVQ must be added only for SAI configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == (RCC_PERIPHCLK_SAI_PLLI2S)) { /* Check the PLLI2S division factors */ assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ)); /* Read PLLI2SR value from PLLI2SCFGR register (this value is not need for SAI configuration) */ tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SQ , tmpreg1); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ); } /*----------------- In Case of PLLI2S is just selected -----------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) { /* Check for Parameters */ assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Configure the PLLI2S multiplication and division factors */ __HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*----------------------- SAI/LTDC Configuration (PLLSAI) ------------------*/ /*----------------------- Common configuration SAI/LTDC --------------------*/ /* In Case of SAI, LTDC or CLK48 Clock Configuration through PLLSAI, PLLSAIN division factor is common parameters for these peripherals */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == RCC_PERIPHCLK_SAI_PLLSAI) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP))) { /* Check the PLLSAI division factors */ assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN)); /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is disabled */ while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /*---------------------------- SAI configuration -------------------------*/ /* In Case of SAI Clock Configuration through PLLSAI, PLLSAIQ and PLLSAI_DIVQ must be added only for SAI configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == (RCC_PERIPHCLK_SAI_PLLSAI)) { assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ)); assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ)); /* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */ pllsaip = ((((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) << 1U); /* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */ pllsair = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN, pllsaip, PeriphClkInit->PLLSAI.PLLSAIQ, pllsair); /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ); } /*---------------------------- LTDC configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == (RCC_PERIPHCLK_LTDC)) { assert_param(IS_RCC_PLLSAIR_VALUE(PeriphClkInit->PLLSAI.PLLSAIR)); assert_param(IS_RCC_PLLSAI_DIVR_VALUE(PeriphClkInit->PLLSAIDivR)); /* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */ pllsaip = ((((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) << 1U); /* Read PLLSAIQ value from PLLSAICFGR register (this value is not need for SAI configuration) */ pllsaiq = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* LTDC_CLK(first level) = PLLSAI_VCO Output/PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN, pllsaip, pllsaiq, PeriphClkInit->PLLSAI.PLLSAIR); /* LTDC_CLK = LTDC_CLK(first level)/PLLSAIDIVR */ __HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLSAIDivR); } /*---------------------------- CLK48 configuration ------------------------*/ /* Configure the PLLSAI when it is used as clock source for CLK48 */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == (RCC_PERIPHCLK_CLK48)) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP)) { assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP)); /* Read PLLSAIQ value from PLLSAICFGR register (this value is not need for SAI configuration) */ pllsaiq = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */ pllsair = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* CLK48_CLK(first level) = PLLSAI_VCO Output/PLLSAIP */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN, PeriphClkInit->PLLSAI.PLLSAIP, pllsaiq, pllsair); } /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is ready */ while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*---------------------------- RTC configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } return HAL_OK; } /** * @brief Configures the RCC_PeriphCLKInitTypeDef according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S | RCC_PERIPHCLK_SAI_PLLSAI |\ RCC_PERIPHCLK_SAI_PLLI2S | RCC_PERIPHCLK_LTDC |\ RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC |\ RCC_PERIPHCLK_CLK48 | RCC_PERIPHCLK_SDIO; /* Get the PLLI2S Clock configuration --------------------------------------*/ PeriphClkInit->PLLI2S.PLLI2SN = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos); PeriphClkInit->PLLI2S.PLLI2SR = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); PeriphClkInit->PLLI2S.PLLI2SQ = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); /* Get the PLLSAI Clock configuration --------------------------------------*/ PeriphClkInit->PLLSAI.PLLSAIN = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> RCC_PLLSAICFGR_PLLSAIN_Pos); PeriphClkInit->PLLSAI.PLLSAIR = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); PeriphClkInit->PLLSAI.PLLSAIQ = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* Get the PLLSAI/PLLI2S division factors ----------------------------------*/ PeriphClkInit->PLLI2SDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLI2SDIVQ) >> RCC_DCKCFGR_PLLI2SDIVQ_Pos); PeriphClkInit->PLLSAIDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> RCC_DCKCFGR_PLLSAIDIVQ_Pos); PeriphClkInit->PLLSAIDivR = (uint32_t)(RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVR); /* Get the RTC Clock configuration -----------------------------------------*/ tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); /* Get the CLK48 clock configuration -------------------------------------*/ PeriphClkInit->Clk48ClockSelection = __HAL_RCC_GET_CLK48_SOURCE(); /* Get the SDIO clock configuration ----------------------------------------*/ PeriphClkInit->SdioClockSelection = __HAL_RCC_GET_SDIO_SOURCE(); if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } } /** * @brief Return the peripheral clock frequency for a given peripheral(SAI..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_I2S: I2S peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { /* This variable used to store the I2S clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_I2S: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SCLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SCLKSOURCE_PLLI2S: { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F469xx || STM32F479xx */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Initializes the RCC extended peripherals clocks according to the specified * parameters in the RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals * clocks(I2S, LTDC RTC and TIM). * * @note Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select * the RTC clock source; in this case the Backup domain will be reset in * order to modify the RTC Clock source, as consequence RTC registers (including * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; #if defined(STM32F413xx) || defined(STM32F423xx) uint32_t plli2sq = 0U; #endif /* STM32F413xx || STM32F423xx */ uint32_t plli2sused = 0U; /* Check the peripheral clock selection parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*----------------------------------- I2S APB1 configuration ---------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == (RCC_PERIPHCLK_I2S_APB1)) { /* Check the parameters */ assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); /* Enable the PLLI2S when it's used as clock source for I2S */ if(PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ /*----------------------------------- I2S APB2 configuration ---------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) { /* Check the parameters */ assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); /* Enable the PLLI2S when it's used as clock source for I2S */ if(PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) /*----------------------- SAI1 Block A configuration -----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAIA) == (RCC_PERIPHCLK_SAIA)) { /* Check the parameters */ assert_param(IS_RCC_SAIACLKSOURCE(PeriphClkInit->SaiAClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI_BLOCKACLKSOURCE_CONFIG(PeriphClkInit->SaiAClockSelection); /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->SaiAClockSelection == RCC_SAIACLKSOURCE_PLLI2SR) { plli2sused = 1U; } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->SaiAClockSelection == RCC_SAIACLKSOURCE_PLLR) { /* Check for PLL/DIVR parameters */ assert_param(IS_RCC_PLL_DIVR_VALUE(PeriphClkInit->PLLDivR)); /* SAI_CLK_x = SAI_CLK(first level)/PLLDIVR */ __HAL_RCC_PLL_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLDivR); } } /*--------------------------------------------------------------------------*/ /*---------------------- SAI1 Block B configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAIB) == (RCC_PERIPHCLK_SAIB)) { /* Check the parameters */ assert_param(IS_RCC_SAIBCLKSOURCE(PeriphClkInit->SaiBClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI_BLOCKBCLKSOURCE_CONFIG(PeriphClkInit->SaiBClockSelection); /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->SaiBClockSelection == RCC_SAIBCLKSOURCE_PLLI2SR) { plli2sused = 1U; } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->SaiBClockSelection == RCC_SAIBCLKSOURCE_PLLR) { /* Check for PLL/DIVR parameters */ assert_param(IS_RCC_PLL_DIVR_VALUE(PeriphClkInit->PLLDivR)); /* SAI_CLK_x = SAI_CLK(first level)/PLLDIVR */ __HAL_RCC_PLL_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLDivR); } } /*--------------------------------------------------------------------------*/ #endif /* STM32F413xx || STM32F423xx */ /*------------------------------------ RTC configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------------ TIM configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { /* Configure Timer Prescaler */ __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------------- FMPI2C1 Configuration --------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) { /* Check the parameters */ assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); /* Configure the FMPI2C1 clock source */ __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); } /*--------------------------------------------------------------------------*/ /*------------------------------------- CLK48 Configuration ----------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) { /* Check the parameters */ assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); /* Enable the PLLI2S when it's used as clock source for CLK48 */ if(PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLI2SQ) { plli2sused = 1U; } } /*--------------------------------------------------------------------------*/ /*------------------------------------- SDIO Configuration -----------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) { /* Check the parameters */ assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); } /*--------------------------------------------------------------------------*/ /*-------------------------------------- PLLI2S Configuration --------------*/ /* PLLI2S is configured when a peripheral will use it as source clock : I2S on APB1 or I2S on APB2*/ if((plli2sused == 1U) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) { /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /* check for common PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SCLKSOURCE(PeriphClkInit->PLLI2SSelection)); assert_param(IS_RCC_PLLI2SM_VALUE(PeriphClkInit->PLLI2S.PLLI2SM)); assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /*-------------------- Set the PLL I2S clock -----------------------------*/ __HAL_RCC_PLL_I2S_CONFIG(PeriphClkInit->PLLI2SSelection); /*------- In Case of PLLI2S is selected as source clock for I2S ----------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == RCC_PERIPHCLK_I2S_APB1) && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLI2SQ)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) && (PeriphClkInit->SdioClockSelection == RCC_SDIOCLKSOURCE_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLI2SQ))) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM)*/ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } #if defined(STM32F413xx) || defined(STM32F423xx) /*------- In Case of PLLI2S is selected as source clock for SAI ----------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAIA) == RCC_PERIPHCLK_SAIA) && (PeriphClkInit->SaiAClockSelection == RCC_SAIACLKSOURCE_PLLI2SR)) || ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAIB) == RCC_PERIPHCLK_SAIB) && (PeriphClkInit->SaiBClockSelection == RCC_SAIBCLKSOURCE_PLLI2SR))) { /* Check for PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Check for PLLI2S/DIVR parameters */ assert_param(IS_RCC_PLLI2S_DIVR_VALUE(PeriphClkInit->PLLI2SDivR)); /* Read PLLI2SQ value from PLLI2SCFGR register (this value is not needed for SAI configuration) */ plli2sq = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, plli2sq, PeriphClkInit->PLLI2S.PLLI2SR); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVR */ __HAL_RCC_PLLI2S_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLI2SDivR); } #endif /* STM32F413xx || STM32F423xx */ /*----------------- In Case of PLLI2S is just selected ------------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) { /* Check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM)*/ /* SPDIFRXCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*-------------------- DFSDM1 clock source configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1) { /* Check the parameters */ assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection)); /* Configure the DFSDM1 interface clock source */ __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection); } /*--------------------------------------------------------------------------*/ /*-------------------- DFSDM1 Audio clock source configuration -------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1_AUDIO) == RCC_PERIPHCLK_DFSDM1_AUDIO) { /* Check the parameters */ assert_param(IS_RCC_DFSDM1AUDIOCLKSOURCE(PeriphClkInit->Dfsdm1AudioClockSelection)); /* Configure the DFSDM1 Audio interface clock source */ __HAL_RCC_DFSDM1AUDIO_CONFIG(PeriphClkInit->Dfsdm1AudioClockSelection); } /*--------------------------------------------------------------------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) /*-------------------- DFSDM2 clock source configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM2) == RCC_PERIPHCLK_DFSDM2) { /* Check the parameters */ assert_param(IS_RCC_DFSDM2CLKSOURCE(PeriphClkInit->Dfsdm2ClockSelection)); /* Configure the DFSDM1 interface clock source */ __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection); } /*--------------------------------------------------------------------------*/ /*-------------------- DFSDM2 Audio clock source configuration -------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM2_AUDIO) == RCC_PERIPHCLK_DFSDM2_AUDIO) { /* Check the parameters */ assert_param(IS_RCC_DFSDM2AUDIOCLKSOURCE(PeriphClkInit->Dfsdm2AudioClockSelection)); /* Configure the DFSDM1 Audio interface clock source */ __HAL_RCC_DFSDM2AUDIO_CONFIG(PeriphClkInit->Dfsdm2AudioClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- LPTIM1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) { /* Check the parameters */ assert_param(IS_RCC_LPTIM1CLKSOURCE(PeriphClkInit->Lptim1ClockSelection)); /* Configure the LPTIM1 clock source */ __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); } /*--------------------------------------------------------------------------*/ #endif /* STM32F413xx || STM32F423xx */ return HAL_OK; } /** * @brief Get the RCC_PeriphCLKInitTypeDef according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ #if defined(STM32F413xx) || defined(STM32F423xx) PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S_APB1 | RCC_PERIPHCLK_I2S_APB2 |\ RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC |\ RCC_PERIPHCLK_FMPI2C1 | RCC_PERIPHCLK_CLK48 |\ RCC_PERIPHCLK_SDIO | RCC_PERIPHCLK_DFSDM1 |\ RCC_PERIPHCLK_DFSDM1_AUDIO | RCC_PERIPHCLK_DFSDM2 |\ RCC_PERIPHCLK_DFSDM2_AUDIO | RCC_PERIPHCLK_LPTIM1 |\ RCC_PERIPHCLK_SAIA | RCC_PERIPHCLK_SAIB; #else /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx */ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S_APB1 | RCC_PERIPHCLK_I2S_APB2 |\ RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC |\ RCC_PERIPHCLK_FMPI2C1 | RCC_PERIPHCLK_CLK48 |\ RCC_PERIPHCLK_SDIO | RCC_PERIPHCLK_DFSDM1 |\ RCC_PERIPHCLK_DFSDM1_AUDIO; #endif /* STM32F413xx || STM32F423xx */ /* Get the PLLI2S Clock configuration --------------------------------------*/ PeriphClkInit->PLLI2S.PLLI2SM = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM) >> RCC_PLLI2SCFGR_PLLI2SM_Pos); PeriphClkInit->PLLI2S.PLLI2SN = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos); PeriphClkInit->PLLI2S.PLLI2SQ = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); PeriphClkInit->PLLI2S.PLLI2SR = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); #if defined(STM32F413xx) || defined(STM32F423xx) /* Get the PLL/PLLI2S division factors -------------------------------------*/ PeriphClkInit->PLLI2SDivR = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLI2SDIVR) >> RCC_DCKCFGR_PLLI2SDIVR_Pos); PeriphClkInit->PLLDivR = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLDIVR) >> RCC_DCKCFGR_PLLDIVR_Pos); #endif /* STM32F413xx || STM32F423xx */ /* Get the I2S APB1 clock configuration ------------------------------------*/ PeriphClkInit->I2sApb1ClockSelection = __HAL_RCC_GET_I2S_APB1_SOURCE(); /* Get the I2S APB2 clock configuration ------------------------------------*/ PeriphClkInit->I2sApb2ClockSelection = __HAL_RCC_GET_I2S_APB2_SOURCE(); /* Get the RTC Clock configuration -----------------------------------------*/ tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); /* Get the FMPI2C1 clock configuration -------------------------------------*/ PeriphClkInit->Fmpi2c1ClockSelection = __HAL_RCC_GET_FMPI2C1_SOURCE(); /* Get the CLK48 clock configuration ---------------------------------------*/ PeriphClkInit->Clk48ClockSelection = __HAL_RCC_GET_CLK48_SOURCE(); /* Get the SDIO clock configuration ----------------------------------------*/ PeriphClkInit->SdioClockSelection = __HAL_RCC_GET_SDIO_SOURCE(); /* Get the DFSDM1 clock configuration --------------------------------------*/ PeriphClkInit->Dfsdm1ClockSelection = __HAL_RCC_GET_DFSDM1_SOURCE(); /* Get the DFSDM1 Audio clock configuration --------------------------------*/ PeriphClkInit->Dfsdm1AudioClockSelection = __HAL_RCC_GET_DFSDM1AUDIO_SOURCE(); #if defined(STM32F413xx) || defined(STM32F423xx) /* Get the DFSDM2 clock configuration --------------------------------------*/ PeriphClkInit->Dfsdm2ClockSelection = __HAL_RCC_GET_DFSDM2_SOURCE(); /* Get the DFSDM2 Audio clock configuration --------------------------------*/ PeriphClkInit->Dfsdm2AudioClockSelection = __HAL_RCC_GET_DFSDM2AUDIO_SOURCE(); /* Get the LPTIM1 clock configuration --------------------------------------*/ PeriphClkInit->Lptim1ClockSelection = __HAL_RCC_GET_LPTIM1_SOURCE(); /* Get the SAI1 Block Aclock configuration ---------------------------------*/ PeriphClkInit->SaiAClockSelection = __HAL_RCC_GET_SAI_BLOCKA_SOURCE(); /* Get the SAI1 Block B clock configuration --------------------------------*/ PeriphClkInit->SaiBClockSelection = __HAL_RCC_GET_SAI_BLOCKB_SOURCE(); #endif /* STM32F413xx || STM32F423xx */ /* Get the TIM Prescaler configuration -------------------------------------*/ if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } } /** * @brief Return the peripheral clock frequency for a given peripheral(I2S..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_I2S_APB1: I2S APB1 peripheral clock * @arg RCC_PERIPHCLK_I2S_APB2: I2S APB2 peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { /* This variable used to store the I2S clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_I2S_APB1: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_APB1_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_PLLI2S: { if((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SSRC) == RCC_PLLI2SCFGR_PLLI2SSRC) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(EXTERNAL_CLOCK_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Check if I2S clock selection is PLL VCO Output divided by PLLR used as I2S clock */ case RCC_I2SAPB1CLKSOURCE_PLLR: { /* Configure the PLL division factor R */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U) & (RCC_PLLCFGR_PLLN >> 6U))); /* I2S_CLK = PLL_VCO Output/PLLR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U) & (RCC_PLLCFGR_PLLR >> 28U))); break; } /* Check if I2S clock selection is HSI or HSE depending from PLL source Clock */ case RCC_I2SAPB1CLKSOURCE_PLLSRC: { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { frequency = HSE_VALUE; } else { frequency = HSI_VALUE; } break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } case RCC_PERIPHCLK_I2S_APB2: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_APB2_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_PLLI2S: { if((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SSRC) == RCC_PLLI2SCFGR_PLLI2SSRC) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(EXTERNAL_CLOCK_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Check if I2S clock selection is PLL VCO Output divided by PLLR used as I2S clock */ case RCC_I2SAPB2CLKSOURCE_PLLR: { /* Configure the PLL division factor R */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U) & (RCC_PLLCFGR_PLLN >> 6U))); /* I2S_CLK = PLL_VCO Output/PLLR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U) & (RCC_PLLCFGR_PLLR >> 28U))); break; } /* Check if I2S clock selection is HSI or HSE depending from PLL source Clock */ case RCC_I2SAPB2CLKSOURCE_PLLSRC: { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { frequency = HSE_VALUE; } else { frequency = HSI_VALUE; } break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) /** * @brief Initializes the RCC extended peripherals clocks according to the specified parameters in the * RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals clocks(I2S and RTC clocks). * * @note A caution to be taken when HAL_RCCEx_PeriphCLKConfig() is used to select RTC clock selection, in this case * the Reset of Backup domain will be applied in order to modify the RTC Clock source as consequence all backup * domain (RTC and RCC_BDCR register expect BKPSRAM) will be reset * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*---------------------------- RTC configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- FMPI2C1 Configuration -----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) { /* Check the parameters */ assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); /* Configure the FMPI2C1 clock source */ __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- LPTIM1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) { /* Check the parameters */ assert_param(IS_RCC_LPTIM1CLKSOURCE(PeriphClkInit->Lptim1ClockSelection)); /* Configure the LPTIM1 clock source */ __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); } /*---------------------------- I2S Configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) { /* Check the parameters */ assert_param(IS_RCC_I2SAPBCLKSOURCE(PeriphClkInit->I2SClockSelection)); /* Configure the I2S clock source */ __HAL_RCC_I2S_CONFIG(PeriphClkInit->I2SClockSelection); } return HAL_OK; } /** * @brief Configures the RCC_OscInitStruct according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_FMPI2C1 | RCC_PERIPHCLK_LPTIM1 | RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC; tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } /* Get the FMPI2C1 clock configuration -------------------------------------*/ PeriphClkInit->Fmpi2c1ClockSelection = __HAL_RCC_GET_FMPI2C1_SOURCE(); /* Get the I2S clock configuration -----------------------------------------*/ PeriphClkInit->I2SClockSelection = __HAL_RCC_GET_I2S_SOURCE(); } /** * @brief Return the peripheral clock frequency for a given peripheral(SAI..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_I2S: I2S peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { /* This variable used to store the I2S clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_I2S: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SAPBCLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLL VCO Output divided by PLLR used as I2S clock */ case RCC_I2SAPBCLKSOURCE_PLLR: { /* Configure the PLL division factor R */ /* PLL_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLL_VCO Output = PLL_VCO Input * PLLN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6U) & (RCC_PLLCFGR_PLLN >> 6U))); /* I2S_CLK = PLL_VCO Output/PLLR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> 28U) & (RCC_PLLCFGR_PLLR >> 28U))); break; } /* Check if I2S clock selection is HSI or HSE depending from PLL source Clock */ case RCC_I2SAPBCLKSOURCE_PLLSRC: { if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { frequency = HSE_VALUE; } else { frequency = HSI_VALUE; } break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) /** * @brief Initializes the RCC extended peripherals clocks according to the specified * parameters in the RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals * clocks(I2S, SAI, LTDC RTC and TIM). * * @note Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select * the RTC clock source; in this case the Backup domain will be reset in * order to modify the RTC Clock source, as consequence RTC registers (including * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*----------------------- SAI/I2S Configuration (PLLI2S) -------------------*/ /*----------------------- Common configuration SAI/I2S ---------------------*/ /* In Case of SAI or I2S Clock Configuration through PLLI2S, PLLI2SN division factor is common parameters for both peripherals */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == RCC_PERIPHCLK_SAI_PLLI2S) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /*---------------------------- I2S configuration -------------------------*/ /* In Case of I2S Clock Configuration through PLLI2S, PLLI2SR must be added only for I2S configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SR); } /*---------------------------- SAI configuration -------------------------*/ /* In Case of SAI Clock Configuration through PLLI2S, PLLI2SQ and PLLI2S_DIVQ must be added only for SAI configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == (RCC_PERIPHCLK_SAI_PLLI2S)) { /* Check the PLLI2S division factors */ assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ)); /* Read PLLI2SR value from PLLI2SCFGR register (this value is not need for SAI configuration) */ tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SQ , tmpreg1); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ); } /*----------------- In Case of PLLI2S is just selected -----------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) { /* Check for Parameters */ assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Configure the PLLI2S multiplication and division factors */ __HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*----------------------- SAI/LTDC Configuration (PLLSAI) ------------------*/ /*----------------------- Common configuration SAI/LTDC --------------------*/ /* In Case of SAI or LTDC Clock Configuration through PLLSAI, PLLSAIN division factor is common parameters for both peripherals */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == RCC_PERIPHCLK_SAI_PLLSAI) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC)) { /* Check the PLLSAI division factors */ assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN)); /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is disabled */ while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /*---------------------------- SAI configuration -------------------------*/ /* In Case of SAI Clock Configuration through PLLSAI, PLLSAIQ and PLLSAI_DIVQ must be added only for SAI configuration */ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == (RCC_PERIPHCLK_SAI_PLLSAI)) { assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ)); assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ)); /* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */ tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , PeriphClkInit->PLLSAI.PLLSAIQ, tmpreg1); /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ); } /*---------------------------- LTDC configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == (RCC_PERIPHCLK_LTDC)) { assert_param(IS_RCC_PLLSAIR_VALUE(PeriphClkInit->PLLSAI.PLLSAIR)); assert_param(IS_RCC_PLLSAI_DIVR_VALUE(PeriphClkInit->PLLSAIDivR)); /* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */ tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* LTDC_CLK(first level) = PLLSAI_VCO Output/PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg1, PeriphClkInit->PLLSAI.PLLSAIR); /* LTDC_CLK = LTDC_CLK(first level)/PLLSAIDIVR */ __HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLSAIDivR); } /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLSAI is ready */ while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*--------------------------------------------------------------------------*/ /*---------------------------- RTC configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } return HAL_OK; } /** * @brief Configures the PeriphClkInit according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S | RCC_PERIPHCLK_SAI_PLLSAI | RCC_PERIPHCLK_SAI_PLLI2S | RCC_PERIPHCLK_LTDC | RCC_PERIPHCLK_TIM | RCC_PERIPHCLK_RTC; /* Get the PLLI2S Clock configuration -----------------------------------------------*/ PeriphClkInit->PLLI2S.PLLI2SN = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos); PeriphClkInit->PLLI2S.PLLI2SR = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); PeriphClkInit->PLLI2S.PLLI2SQ = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); /* Get the PLLSAI Clock configuration -----------------------------------------------*/ PeriphClkInit->PLLSAI.PLLSAIN = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIN) >> RCC_PLLSAICFGR_PLLSAIN_Pos); PeriphClkInit->PLLSAI.PLLSAIR = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); PeriphClkInit->PLLSAI.PLLSAIQ = (uint32_t)((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); /* Get the PLLSAI/PLLI2S division factors -----------------------------------------------*/ PeriphClkInit->PLLI2SDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLI2SDIVQ) >> RCC_DCKCFGR_PLLI2SDIVQ_Pos); PeriphClkInit->PLLSAIDivQ = (uint32_t)((RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVQ) >> RCC_DCKCFGR_PLLSAIDIVQ_Pos); PeriphClkInit->PLLSAIDivR = (uint32_t)(RCC->DCKCFGR & RCC_DCKCFGR_PLLSAIDIVR); /* Get the RTC Clock configuration -----------------------------------------------*/ tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } } /** * @brief Return the peripheral clock frequency for a given peripheral(SAI..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_I2S: I2S peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { /* This variable used to store the I2S clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_I2S: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SCLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SCLKSOURCE_PLLI2S: { /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) ||\ defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) /** * @brief Initializes the RCC extended peripherals clocks according to the specified parameters in the * RCC_PeriphCLKInitTypeDef. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * contains the configuration information for the Extended Peripherals clocks(I2S and RTC clocks). * * @note A caution to be taken when HAL_RCCEx_PeriphCLKConfig() is used to select RTC clock selection, in this case * the Reset of Backup domain will be applied in order to modify the RTC Clock source as consequence all backup * domain (RTC and RCC_BDCR register expect BKPSRAM) will be reset * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tickstart = 0U; uint32_t tmpreg1 = 0U; /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*---------------------------- I2S configuration ---------------------------*/ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) || (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)) { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); #if defined(STM32F411xE) assert_param(IS_RCC_PLLI2SM_VALUE(PeriphClkInit->PLLI2S.PLLI2SM)); #endif /* STM32F411xE */ /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } #if defined(STM32F411xE) /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_I2SCLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SR); #else /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SR); #endif /* STM32F411xE */ /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Get tick */ tickstart = HAL_GetTick(); /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } } /*---------------------------- RTC configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; /* Get tick */ tickstart = HAL_GetTick(); while((PWR->CR & PWR_CR_DBP) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); if((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if(HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) { /* Get tick */ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); } #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) /*---------------------------- TIM configuration ---------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) { __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); } #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ return HAL_OK; } /** * @brief Configures the RCC_OscInitStruct according to the internal * RCC configuration registers. * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that * will be configured. * @retval None */ void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { uint32_t tempreg; /* Set all possible values for the extended clock type parameter------------*/ PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_I2S | RCC_PERIPHCLK_RTC; /* Get the PLLI2S Clock configuration --------------------------------------*/ PeriphClkInit->PLLI2S.PLLI2SN = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> RCC_PLLI2SCFGR_PLLI2SN_Pos); PeriphClkInit->PLLI2S.PLLI2SR = (uint32_t)((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); #if defined(STM32F411xE) PeriphClkInit->PLLI2S.PLLI2SM = (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM); #endif /* STM32F411xE */ /* Get the RTC Clock configuration -----------------------------------------*/ tempreg = (RCC->CFGR & RCC_CFGR_RTCPRE); PeriphClkInit->RTCClockSelection = (uint32_t)((tempreg) | (RCC->BDCR & RCC_BDCR_RTCSEL)); #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) /* Get the TIM Prescaler configuration -------------------------------------*/ if ((RCC->DCKCFGR & RCC_DCKCFGR_TIMPRE) == RESET) { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; } else { PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; } #endif /* STM32F401xC || STM32F401xE || STM32F411xE */ } /** * @brief Return the peripheral clock frequency for a given peripheral(SAI..) * @note Return 0 if peripheral clock identifier not managed by this API * @param PeriphClk Peripheral clock identifier * This parameter can be one of the following values: * @arg RCC_PERIPHCLK_I2S: I2S peripheral clock * @retval Frequency in KHz */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { /* This variable used to store the I2S clock frequency (value in Hz) */ uint32_t frequency = 0U; /* This variable used to store the VCO Input (value in Hz) */ uint32_t vcoinput = 0U; uint32_t srcclk = 0U; /* This variable used to store the VCO Output (value in Hz) */ uint32_t vcooutput = 0U; switch (PeriphClk) { case RCC_PERIPHCLK_I2S: { /* Get the current I2S source */ srcclk = __HAL_RCC_GET_I2S_SOURCE(); switch (srcclk) { /* Check if I2S clock selection is External clock mapped on the I2S_CKIN pin used as I2S clock */ case RCC_I2SCLKSOURCE_EXT: { /* Set the I2S clock to the external clock value */ frequency = EXTERNAL_CLOCK_VALUE; break; } /* Check if I2S clock selection is PLLI2S VCO output clock divided by PLLI2SR used as I2S clock */ case RCC_I2SCLKSOURCE_PLLI2S: { #if defined(STM32F411xE) /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SM)); } #else /* Configure the PLLI2S division factor */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLM */ if((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLSOURCE_HSE) { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSE_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } else { /* Get the I2S source clock value */ vcoinput = (uint32_t)(HSI_VALUE / (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM)); } #endif /* STM32F411xE */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ vcooutput = (uint32_t)(vcoinput * (((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6U) & (RCC_PLLI2SCFGR_PLLI2SN >> 6U))); /* I2S_CLK = PLLI2S_VCO Output/PLLI2SR */ frequency = (uint32_t)(vcooutput /(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28U) & (RCC_PLLI2SCFGR_PLLI2SR >> 28U))); break; } /* Clock not enabled for I2S*/ default: { frequency = 0U; break; } } break; } } return frequency; } #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F411xE */ #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Select LSE mode * * @note This mode is only available for STM32F410xx/STM32F411xx/STM32F446xx/STM32F469xx/STM32F479xx/STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx devices. * * @param Mode specifies the LSE mode. * This parameter can be one of the following values: * @arg RCC_LSE_LOWPOWER_MODE: LSE oscillator in low power mode selection * @arg RCC_LSE_HIGHDRIVE_MODE: LSE oscillator in High Drive mode selection * @retval None */ void HAL_RCCEx_SelectLSEMode(uint8_t Mode) { /* Check the parameters */ assert_param(IS_RCC_LSE_MODE(Mode)); if(Mode == RCC_LSE_HIGHDRIVE_MODE) { SET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD); } else { CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD); } } #endif /* STM32F410xx || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ /** @defgroup RCCEx_Exported_Functions_Group2 Extended Clock management functions * @brief Extended Clock management functions * @verbatim =============================================================================== ##### Extended clock management functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the activation or deactivation of PLLI2S, PLLSAI. @endverbatim * @{ */ #if defined(RCC_PLLI2S_SUPPORT) /** * @brief Enable PLLI2S. * @param PLLI2SInit pointer to an RCC_PLLI2SInitTypeDef structure that * contains the configuration information for the PLLI2S * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_EnablePLLI2S(RCC_PLLI2SInitTypeDef *PLLI2SInit) { uint32_t tickstart; /* Check for parameters */ assert_param(IS_RCC_PLLI2SN_VALUE(PLLI2SInit->PLLI2SN)); assert_param(IS_RCC_PLLI2SR_VALUE(PLLI2SInit->PLLI2SR)); #if defined(RCC_PLLI2SCFGR_PLLI2SM) assert_param(IS_RCC_PLLI2SM_VALUE(PLLI2SInit->PLLI2SM)); #endif /* RCC_PLLI2SCFGR_PLLI2SM */ #if defined(RCC_PLLI2SCFGR_PLLI2SP) assert_param(IS_RCC_PLLI2SP_VALUE(PLLI2SInit->PLLI2SP)); #endif /* RCC_PLLI2SCFGR_PLLI2SP */ #if defined(RCC_PLLI2SCFGR_PLLI2SQ) assert_param(IS_RCC_PLLI2SQ_VALUE(PLLI2SInit->PLLI2SQ)); #endif /* RCC_PLLI2SCFGR_PLLI2SQ */ /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Wait till PLLI2S is disabled */ tickstart = HAL_GetTick(); while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /* Configure the PLLI2S division factors */ #if defined(STM32F446xx) /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* I2SPCLK = PLLI2S_VCO / PLLI2SP */ /* I2SQCLK = PLLI2S_VCO / PLLI2SQ */ /* I2SRCLK = PLLI2S_VCO / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PLLI2SInit->PLLI2SM, PLLI2SInit->PLLI2SN, \ PLLI2SInit->PLLI2SP, PLLI2SInit->PLLI2SQ, PLLI2SInit->PLLI2SR); #elif defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) ||\ defined(STM32F413xx) || defined(STM32F423xx) /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM)*/ /* I2SQCLK = PLLI2S_VCO / PLLI2SQ */ /* I2SRCLK = PLLI2S_VCO / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PLLI2SInit->PLLI2SM, PLLI2SInit->PLLI2SN, \ PLLI2SInit->PLLI2SQ, PLLI2SInit->PLLI2SR); #elif defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\ defined(STM32F469xx) || defined(STM32F479xx) /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * PLLI2SN */ /* I2SQCLK = PLLI2S_VCO / PLLI2SQ */ /* I2SRCLK = PLLI2S_VCO / PLLI2SR */ __HAL_RCC_PLLI2S_SAICLK_CONFIG(PLLI2SInit->PLLI2SN, PLLI2SInit->PLLI2SQ, PLLI2SInit->PLLI2SR); #elif defined(STM32F411xE) /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* I2SRCLK = PLLI2S_VCO / PLLI2SR */ __HAL_RCC_PLLI2S_I2SCLK_CONFIG(PLLI2SInit->PLLI2SM, PLLI2SInit->PLLI2SN, PLLI2SInit->PLLI2SR); #else /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x PLLI2SN */ /* I2SRCLK = PLLI2S_VCO / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PLLI2SInit->PLLI2SN, PLLI2SInit->PLLI2SR); #endif /* STM32F446xx */ /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); /* Wait till PLLI2S is ready */ tickstart = HAL_GetTick(); while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Disable PLLI2S. * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_DisablePLLI2S(void) { uint32_t tickstart; /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); /* Wait till PLLI2S is disabled */ tickstart = HAL_GetTick(); while(READ_BIT(RCC->CR, RCC_CR_PLLI2SRDY) != RESET) { if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } return HAL_OK; } #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_PLLSAI_SUPPORT) /** * @brief Enable PLLSAI. * @param PLLSAIInit pointer to an RCC_PLLSAIInitTypeDef structure that * contains the configuration information for the PLLSAI * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI(RCC_PLLSAIInitTypeDef *PLLSAIInit) { uint32_t tickstart; /* Check for parameters */ assert_param(IS_RCC_PLLSAIN_VALUE(PLLSAIInit->PLLSAIN)); assert_param(IS_RCC_PLLSAIQ_VALUE(PLLSAIInit->PLLSAIQ)); #if defined(RCC_PLLSAICFGR_PLLSAIM) assert_param(IS_RCC_PLLSAIM_VALUE(PLLSAIInit->PLLSAIM)); #endif /* RCC_PLLSAICFGR_PLLSAIM */ #if defined(RCC_PLLSAICFGR_PLLSAIP) assert_param(IS_RCC_PLLSAIP_VALUE(PLLSAIInit->PLLSAIP)); #endif /* RCC_PLLSAICFGR_PLLSAIP */ #if defined(RCC_PLLSAICFGR_PLLSAIR) assert_param(IS_RCC_PLLSAIR_VALUE(PLLSAIInit->PLLSAIR)); #endif /* RCC_PLLSAICFGR_PLLSAIR */ /* Disable the PLLSAI */ __HAL_RCC_PLLSAI_DISABLE(); /* Wait till PLLSAI is disabled */ tickstart = HAL_GetTick(); while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } /* Configure the PLLSAI division factors */ #if defined(STM32F446xx) /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) * (PLLSAIN/PLLSAIM) */ /* SAIPCLK = PLLSAI_VCO / PLLSAIP */ /* SAIQCLK = PLLSAI_VCO / PLLSAIQ */ /* SAIRCLK = PLLSAI_VCO / PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PLLSAIInit->PLLSAIM, PLLSAIInit->PLLSAIN, \ PLLSAIInit->PLLSAIP, PLLSAIInit->PLLSAIQ, 0U); #elif defined(STM32F469xx) || defined(STM32F479xx) /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) * PLLSAIN */ /* SAIPCLK = PLLSAI_VCO / PLLSAIP */ /* SAIQCLK = PLLSAI_VCO / PLLSAIQ */ /* SAIRCLK = PLLSAI_VCO / PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PLLSAIInit->PLLSAIN, PLLSAIInit->PLLSAIP, \ PLLSAIInit->PLLSAIQ, PLLSAIInit->PLLSAIR); #else /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) x PLLSAIN */ /* SAIQCLK = PLLSAI_VCO / PLLSAIQ */ /* SAIRCLK = PLLSAI_VCO / PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PLLSAIInit->PLLSAIN, PLLSAIInit->PLLSAIQ, PLLSAIInit->PLLSAIR); #endif /* STM32F446xx */ /* Enable the PLLSAI */ __HAL_RCC_PLLSAI_ENABLE(); /* Wait till PLLSAI is ready */ tickstart = HAL_GetTick(); while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) { if((HAL_GetTick() - tickstart ) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Disable PLLSAI. * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI(void) { uint32_t tickstart; /* Disable the PLLSAI */ __HAL_RCC_PLLSAI_DISABLE(); /* Wait till PLLSAI is disabled */ tickstart = HAL_GetTick(); while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) { if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) { /* return in case of Timeout detected */ return HAL_TIMEOUT; } } return HAL_OK; } #endif /* RCC_PLLSAI_SUPPORT */ /** * @} */ #if defined(STM32F446xx) /** * @brief Returns the SYSCLK frequency * * @note This function implementation is valid only for STM32F446xx devices. * @note This function add the PLL/PLLR System clock source * * @note The system frequency computed by this function is not the real * frequency in the chip. It is calculated based on the predefined * constant and the selected clock source: * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(*) * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(**) * @note If SYSCLK source is PLL or PLLR, function returns values based on HSE_VALUE(**) * or HSI_VALUE(*) multiplied/divided by the PLL factors. * @note (*) HSI_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value * 16 MHz) but the real value may vary depending on the variations * in voltage and temperature. * @note (**) HSE_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value * 25 MHz), user has to ensure that HSE_VALUE is same as the real * frequency of the crystal used. Otherwise, this function may * have wrong result. * * @note The result of this function could be not correct when using fractional * value for HSE crystal. * * @note This function can be used by the user application to compute the * baudrate for the communication peripherals or configure other parameters. * * @note Each time SYSCLK changes, this function must be called to update the * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { uint32_t pllm = 0U; uint32_t pllvco = 0U; uint32_t pllp = 0U; uint32_t pllr = 0U; uint32_t sysclockfreq = 0U; /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; break; } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; break; } case RCC_CFGR_SWS_PLL: /* PLL/PLLP used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) *2U); sysclockfreq = pllvco/pllp; break; } case RCC_CFGR_SWS_PLLR: /* PLL/PLLR used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLR */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); } pllr = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); sysclockfreq = pllvco/pllr; break; } default: { sysclockfreq = HSI_VALUE; break; } } return sysclockfreq; } #endif /* STM32F446xx */ /** * @} */ /** * @} */ /** * @brief Resets the RCC clock configuration to the default reset state. * @note The default reset state of the clock configuration is given below: * - HSI ON and used as system clock source * - HSE, PLL, PLLI2S and PLLSAI OFF * - AHB, APB1 and APB2 prescaler set to 1. * - CSS, MCO1 and MCO2 OFF * - All interrupts disabled * @note This function doesn't modify the configuration of the * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_DeInit(void) { uint32_t tickstart; /* Get Start Tick */ tickstart = HAL_GetTick(); /* Set HSION bit to the reset value */ SET_BIT(RCC->CR, RCC_CR_HSION); /* Wait till HSI is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Set HSITRIM[4:0] bits to the reset value */ SET_BIT(RCC->CR, RCC_CR_HSITRIM_4); /* Get Start Tick */ tickstart = HAL_GetTick(); /* Reset CFGR register */ CLEAR_REG(RCC->CFGR); /* Wait till clock switch is ready */ while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Get Start Tick */ tickstart = HAL_GetTick(); /* Clear HSEON, HSEBYP and CSSON bits */ CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_HSEBYP | RCC_CR_CSSON); /* Wait till HSE is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Get Start Tick */ tickstart = HAL_GetTick(); /* Clear PLLON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLON); /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } #if defined(RCC_PLLI2S_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); /* Reset PLLI2SON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLI2SON); /* Wait till PLLI2S is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLI2SRDY) != RESET) { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_PLLSAI_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); /* Reset PLLSAI bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLSAION); /* Wait till PLLSAI is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLSAIRDY) != RESET) { if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } #endif /* RCC_PLLSAI_SUPPORT */ /* Once PLL, PLLI2S and PLLSAI are OFF, reset PLLCFGR register to default value */ #if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || \ defined(STM32F423xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) RCC->PLLCFGR = RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLN_6 | RCC_PLLCFGR_PLLN_7 | RCC_PLLCFGR_PLLQ_2 | RCC_PLLCFGR_PLLR_1; #elif defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) RCC->PLLCFGR = RCC_PLLCFGR_PLLR_0 | RCC_PLLCFGR_PLLR_1 | RCC_PLLCFGR_PLLR_2 | RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLN_6 | RCC_PLLCFGR_PLLN_7 | RCC_PLLCFGR_PLLQ_0 | RCC_PLLCFGR_PLLQ_1 | RCC_PLLCFGR_PLLQ_2 | RCC_PLLCFGR_PLLQ_3; #else RCC->PLLCFGR = RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLN_6 | RCC_PLLCFGR_PLLN_7 | RCC_PLLCFGR_PLLQ_2; #endif /* STM32F412Cx || STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx || STM32F446xx || STM32F469xx || STM32F479xx */ /* Reset PLLI2SCFGR register to default value */ #if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || \ defined(STM32F423xx) || defined(STM32F446xx) RCC->PLLI2SCFGR = RCC_PLLI2SCFGR_PLLI2SM_4 | RCC_PLLI2SCFGR_PLLI2SN_6 | RCC_PLLI2SCFGR_PLLI2SN_7 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SR_1; #elif defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) RCC->PLLI2SCFGR = RCC_PLLI2SCFGR_PLLI2SN_6 | RCC_PLLI2SCFGR_PLLI2SN_7 | RCC_PLLI2SCFGR_PLLI2SR_1; #elif defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) RCC->PLLI2SCFGR = RCC_PLLI2SCFGR_PLLI2SN_6 | RCC_PLLI2SCFGR_PLLI2SN_7 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SR_1; #elif defined(STM32F411xE) RCC->PLLI2SCFGR = RCC_PLLI2SCFGR_PLLI2SM_4 | RCC_PLLI2SCFGR_PLLI2SN_6 | RCC_PLLI2SCFGR_PLLI2SN_7 | RCC_PLLI2SCFGR_PLLI2SR_1; #endif /* STM32F412Cx || STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx || STM32F446xx */ /* Reset PLLSAICFGR register */ #if defined(STM32F427xx) || defined(STM32F429xx) || defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) RCC->PLLSAICFGR = RCC_PLLSAICFGR_PLLSAIN_6 | RCC_PLLSAICFGR_PLLSAIN_7 | RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIR_1; #elif defined(STM32F446xx) RCC->PLLSAICFGR = RCC_PLLSAICFGR_PLLSAIM_4 | RCC_PLLSAICFGR_PLLSAIN_6 | RCC_PLLSAICFGR_PLLSAIN_7 | RCC_PLLSAICFGR_PLLSAIQ_2; #endif /* STM32F427xx || STM32F429xx || STM32F437xx || STM32F439xx || STM32F469xx || STM32F479xx */ /* Disable all interrupts */ CLEAR_BIT(RCC->CIR, RCC_CIR_LSIRDYIE | RCC_CIR_LSERDYIE | RCC_CIR_HSIRDYIE | RCC_CIR_HSERDYIE | RCC_CIR_PLLRDYIE); #if defined(RCC_CIR_PLLI2SRDYIE) CLEAR_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYIE); #endif /* RCC_CIR_PLLI2SRDYIE */ #if defined(RCC_CIR_PLLSAIRDYIE) CLEAR_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYIE); #endif /* RCC_CIR_PLLSAIRDYIE */ /* Clear all interrupt flags */ SET_BIT(RCC->CIR, RCC_CIR_LSIRDYC | RCC_CIR_LSERDYC | RCC_CIR_HSIRDYC | RCC_CIR_HSERDYC | RCC_CIR_PLLRDYC | RCC_CIR_CSSC); #if defined(RCC_CIR_PLLI2SRDYC) SET_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYC); #endif /* RCC_CIR_PLLI2SRDYC */ #if defined(RCC_CIR_PLLSAIRDYC) SET_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYC); #endif /* RCC_CIR_PLLSAIRDYC */ /* Clear LSION bit */ CLEAR_BIT(RCC->CSR, RCC_CSR_LSION); /* Reset all CSR flags */ SET_BIT(RCC->CSR, RCC_CSR_RMVF); /* Update the SystemCoreClock global variable */ SystemCoreClock = HSI_VALUE; /* Adapt Systick interrupt period */ if(HAL_InitTick(uwTickPrio) != HAL_OK) { return HAL_ERROR; } else { return HAL_OK; } } #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) ||\ defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /** * @brief Initializes the RCC Oscillators according to the specified parameters in the * RCC_OscInitTypeDef. * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that * contains the configuration information for the RCC Oscillators. * @note The PLL is not disabled when used as system clock. * @note Transitions LSE Bypass to LSE On and LSE On to LSE Bypass are not * supported by this API. User should request a transition to LSE Off * first and then LSE On or LSE Bypass. * @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not * supported by this API. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @note This function add the PLL/PLLR factor management during PLL configuration this feature * is only available in STM32F410xx/STM32F446xx/STM32F469xx/STM32F479xx/STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx devices * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { uint32_t tickstart, pll_config; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ #if defined(STM32F446xx) if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) #else if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) #endif /* STM32F446xx */ { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) { return HAL_ERROR; } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); /* Check the HSE State */ if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSE is bypassed or disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) { /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ #if defined(STM32F446xx) if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) #else if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) #endif /* STM32F446xx */ { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) { return HAL_ERROR; } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); } } else { /* Check the HSI State */ if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF) { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF) { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) { FlagStatus pwrclkchanged = RESET; /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) { __HAL_RCC_PWR_CLK_ENABLE(); pwrclkchanged = SET; } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); /* Check the LSE State */ if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } /* Restore clock configuration if changed */ if(pwrclkchanged == SET) { __HAL_RCC_PWR_CLK_DISABLE(); } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) { /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLLM_VALUE(RCC_OscInitStruct->PLL.PLLM)); assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN)); assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ RCC_OscInitStruct->PLL.PLLM | \ (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \ (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \ (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos) | \ (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) { return HAL_ERROR; } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; #if defined (RCC_PLLCFGR_PLLR) if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) #else if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) #endif { return HAL_ERROR; } } } } return HAL_OK; } /** * @brief Configures the RCC_OscInitStruct according to the internal * RCC configuration registers. * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that will be configured. * * @note This function is only available in case of STM32F410xx/STM32F446xx/STM32F469xx/STM32F479xx/STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx devices. * @note This function add the PLL/PLLR factor management * @retval None */ void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { /* Set all possible values for the Oscillator type parameter ---------------*/ RCC_OscInitStruct->OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_LSE | RCC_OSCILLATORTYPE_LSI; /* Get the HSE configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_HSEBYP) == RCC_CR_HSEBYP) { RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS; } else if((RCC->CR &RCC_CR_HSEON) == RCC_CR_HSEON) { RCC_OscInitStruct->HSEState = RCC_HSE_ON; } else { RCC_OscInitStruct->HSEState = RCC_HSE_OFF; } /* Get the HSI configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_HSION) == RCC_CR_HSION) { RCC_OscInitStruct->HSIState = RCC_HSI_ON; } else { RCC_OscInitStruct->HSIState = RCC_HSI_OFF; } RCC_OscInitStruct->HSICalibrationValue = (uint32_t)((RCC->CR &RCC_CR_HSITRIM) >> RCC_CR_HSITRIM_Pos); /* Get the LSE configuration -----------------------------------------------*/ if((RCC->BDCR &RCC_BDCR_LSEBYP) == RCC_BDCR_LSEBYP) { RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS; } else if((RCC->BDCR &RCC_BDCR_LSEON) == RCC_BDCR_LSEON) { RCC_OscInitStruct->LSEState = RCC_LSE_ON; } else { RCC_OscInitStruct->LSEState = RCC_LSE_OFF; } /* Get the LSI configuration -----------------------------------------------*/ if((RCC->CSR &RCC_CSR_LSION) == RCC_CSR_LSION) { RCC_OscInitStruct->LSIState = RCC_LSI_ON; } else { RCC_OscInitStruct->LSIState = RCC_LSI_OFF; } /* Get the PLL configuration -----------------------------------------------*/ if((RCC->CR &RCC_CR_PLLON) == RCC_CR_PLLON) { RCC_OscInitStruct->PLL.PLLState = RCC_PLL_ON; } else { RCC_OscInitStruct->PLL.PLLState = RCC_PLL_OFF; } RCC_OscInitStruct->PLL.PLLSource = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC); RCC_OscInitStruct->PLL.PLLM = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM); RCC_OscInitStruct->PLL.PLLN = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); RCC_OscInitStruct->PLL.PLLP = (uint32_t)((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) + RCC_PLLCFGR_PLLP_0) << 1U) >> RCC_PLLCFGR_PLLP_Pos); RCC_OscInitStruct->PLL.PLLQ = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLQ) >> RCC_PLLCFGR_PLLQ_Pos); RCC_OscInitStruct->PLL.PLLR = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); } #endif /* STM32F410xx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F412Cx || STM32F413xx || STM32F423xx */ #endif /* HAL_RCC_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_spi.c * @author MCD Application Team * @brief SPI HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Serial Peripheral Interface (SPI) peripheral: * + Initialization and de-initialization functions * + IO operation functions * + Peripheral Control functions * + Peripheral State functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The SPI HAL driver can be used as follows: (#) Declare a SPI_HandleTypeDef handle structure, for example: SPI_HandleTypeDef hspi; (#)Initialize the SPI low level resources by implementing the HAL_SPI_MspInit() API: (##) Enable the SPIx interface clock (##) SPI pins configuration (+++) Enable the clock for the SPI GPIOs (+++) Configure these SPI pins as alternate function push-pull (##) NVIC configuration if you need to use interrupt process (+++) Configure the SPIx interrupt priority (+++) Enable the NVIC SPI IRQ handle (##) DMA Configuration if you need to use DMA process (+++) Declare a DMA_HandleTypeDef handle structure for the transmit or receive Stream/Channel (+++) Enable the DMAx clock (+++) Configure the DMA handle parameters (+++) Configure the DMA Tx or Rx Stream/Channel (+++) Associate the initialized hdma_tx(or _rx) handle to the hspi DMA Tx or Rx handle (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Tx or Rx Stream/Channel (#) Program the Mode, BidirectionalMode , Data size, Baudrate Prescaler, NSS management, Clock polarity and phase, FirstBit and CRC configuration in the hspi Init structure. (#) Initialize the SPI registers by calling the HAL_SPI_Init() API: (++) This API configures also the low level Hardware GPIO, CLOCK, CORTEX...etc) by calling the customized HAL_SPI_MspInit() API. [..] Circular mode restriction: (#) The DMA circular mode cannot be used when the SPI is configured in these modes: (##) Master 2Lines RxOnly (##) Master 1Line Rx (#) The CRC feature is not managed when the DMA circular mode is enabled (#) When the SPI DMA Pause/Stop features are used, we must use the following APIs the HAL_SPI_DMAPause()/ HAL_SPI_DMAStop() only under the SPI callbacks [..] Master Receive mode restriction: (#) In Master unidirectional receive-only mode (MSTR =1, BIDIMODE=0, RXONLY=1) or bidirectional receive mode (MSTR=1, BIDIMODE=1, BIDIOE=0), to ensure that the SPI does not initiate a new transfer the following procedure has to be respected: (##) HAL_SPI_DeInit() (##) HAL_SPI_Init() [..] Callback registration: (#) The compilation flag USE_HAL_SPI_REGISTER_CALLBACKS when set to 1U allows the user to configure dynamically the driver callbacks. Use Functions HAL_SPI_RegisterCallback() to register an interrupt callback. Function HAL_SPI_RegisterCallback() allows to register following callbacks: (++) TxCpltCallback : SPI Tx Completed callback (++) RxCpltCallback : SPI Rx Completed callback (++) TxRxCpltCallback : SPI TxRx Completed callback (++) TxHalfCpltCallback : SPI Tx Half Completed callback (++) RxHalfCpltCallback : SPI Rx Half Completed callback (++) TxRxHalfCpltCallback : SPI TxRx Half Completed callback (++) ErrorCallback : SPI Error callback (++) AbortCpltCallback : SPI Abort callback (++) MspInitCallback : SPI Msp Init callback (++) MspDeInitCallback : SPI Msp DeInit callback This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. (#) Use function HAL_SPI_UnRegisterCallback to reset a callback to the default weak function. HAL_SPI_UnRegisterCallback takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (++) TxCpltCallback : SPI Tx Completed callback (++) RxCpltCallback : SPI Rx Completed callback (++) TxRxCpltCallback : SPI TxRx Completed callback (++) TxHalfCpltCallback : SPI Tx Half Completed callback (++) RxHalfCpltCallback : SPI Rx Half Completed callback (++) TxRxHalfCpltCallback : SPI TxRx Half Completed callback (++) ErrorCallback : SPI Error callback (++) AbortCpltCallback : SPI Abort callback (++) MspInitCallback : SPI Msp Init callback (++) MspDeInitCallback : SPI Msp DeInit callback [..] By default, after the HAL_SPI_Init() and when the state is HAL_SPI_STATE_RESET all callbacks are set to the corresponding weak functions: examples HAL_SPI_MasterTxCpltCallback(), HAL_SPI_MasterRxCpltCallback(). Exception done for MspInit and MspDeInit functions that are reset to the legacy weak functions in the HAL_SPI_Init()/ HAL_SPI_DeInit() only when these callbacks are null (not registered beforehand). If MspInit or MspDeInit are not null, the HAL_SPI_Init()/ HAL_SPI_DeInit() keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. [..] Callbacks can be registered/unregistered in HAL_SPI_STATE_READY state only. Exception done MspInit/MspDeInit functions that can be registered/unregistered in HAL_SPI_STATE_READY or HAL_SPI_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. Then, the user first registers the MspInit/MspDeInit user callbacks using HAL_SPI_RegisterCallback() before calling HAL_SPI_DeInit() or HAL_SPI_Init() function. [..] When the compilation define USE_HAL_PPP_REGISTER_CALLBACKS is set to 0 or not defined, the callback registering feature is not available and weak (surcharged) callbacks are used. [..] Using the HAL it is not possible to reach all supported SPI frequency with the different SPI Modes, the following table resume the max SPI frequency reached with data size 8bits/16bits, according to frequency of the APBx Peripheral Clock (fPCLK) used by the SPI instance. @endverbatim Additional table : DataSize = SPI_DATASIZE_8BIT: +----------------------------------------------------------------------------------------------+ | | | 2Lines Fullduplex | 2Lines RxOnly | 1Line | | Process | Transfer mode |---------------------|----------------------|----------------------| | | | Master | Slave | Master | Slave | Master | Slave | |==============================================================================================| | T | Polling | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | | X |----------------|----------|----------|-----------|----------|-----------|----------| | / | Interrupt | Fpclk/4 | Fpclk/8 | NA | NA | NA | NA | | R |----------------|----------|----------|-----------|----------|-----------|----------| | X | DMA | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | |=========|================|==========|==========|===========|==========|===========|==========| | | Polling | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | | |----------------|----------|----------|-----------|----------|-----------|----------| | R | Interrupt | Fpclk/8 | Fpclk/8 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | | X |----------------|----------|----------|-----------|----------|-----------|----------| | | DMA | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/128 | Fpclk/2 | |=========|================|==========|==========|===========|==========|===========|==========| | | Polling | Fpclk/2 | Fpclk/4 | NA | NA | Fpclk/2 | Fpclk/64 | | |----------------|----------|----------|-----------|----------|-----------|----------| | T | Interrupt | Fpclk/2 | Fpclk/4 | NA | NA | Fpclk/2 | Fpclk/64 | | X |----------------|----------|----------|-----------|----------|-----------|----------| | | DMA | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/128| +----------------------------------------------------------------------------------------------+ DataSize = SPI_DATASIZE_16BIT: +----------------------------------------------------------------------------------------------+ | | | 2Lines Fullduplex | 2Lines RxOnly | 1Line | | Process | Transfer mode |---------------------|----------------------|----------------------| | | | Master | Slave | Master | Slave | Master | Slave | |==============================================================================================| | T | Polling | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | | X |----------------|----------|----------|-----------|----------|-----------|----------| | / | Interrupt | Fpclk/4 | Fpclk/4 | NA | NA | NA | NA | | R |----------------|----------|----------|-----------|----------|-----------|----------| | X | DMA | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | |=========|================|==========|==========|===========|==========|===========|==========| | | Polling | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/32 | Fpclk/2 | | |----------------|----------|----------|-----------|----------|-----------|----------| | R | Interrupt | Fpclk/4 | Fpclk/4 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | | X |----------------|----------|----------|-----------|----------|-----------|----------| | | DMA | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/128 | Fpclk/2 | |=========|================|==========|==========|===========|==========|===========|==========| | | Polling | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/32 | | |----------------|----------|----------|-----------|----------|-----------|----------| | T | Interrupt | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/64 | | X |----------------|----------|----------|-----------|----------|-----------|----------| | | DMA | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/128| +----------------------------------------------------------------------------------------------+ @note The max SPI frequency depend on SPI data size (8bits, 16bits), SPI mode(2 Lines fullduplex, 2 lines RxOnly, 1 line TX/RX) and Process mode (Polling, IT, DMA). @note (#) TX/RX processes are HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_IT() and HAL_SPI_TransmitReceive_DMA() (#) RX processes are HAL_SPI_Receive(), HAL_SPI_Receive_IT() and HAL_SPI_Receive_DMA() (#) TX processes are HAL_SPI_Transmit(), HAL_SPI_Transmit_IT() and HAL_SPI_Transmit_DMA() ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup SPI SPI * @brief SPI HAL module driver * @{ */ #ifdef HAL_SPI_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private defines -----------------------------------------------------------*/ /** @defgroup SPI_Private_Constants SPI Private Constants * @{ */ #define SPI_DEFAULT_TIMEOUT 100U #define SPI_BSY_FLAG_WORKAROUND_TIMEOUT 1000U /*!< Timeout 1000 µs */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /** @defgroup SPI_Private_Functions SPI Private Functions * @{ */ static void SPI_DMATransmitCplt(DMA_HandleTypeDef *hdma); static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma); static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma); static void SPI_DMAHalfTransmitCplt(DMA_HandleTypeDef *hdma); static void SPI_DMAHalfReceiveCplt(DMA_HandleTypeDef *hdma); static void SPI_DMAHalfTransmitReceiveCplt(DMA_HandleTypeDef *hdma); static void SPI_DMAError(DMA_HandleTypeDef *hdma); static void SPI_DMAAbortOnError(DMA_HandleTypeDef *hdma); static void SPI_DMATxAbortCallback(DMA_HandleTypeDef *hdma); static void SPI_DMARxAbortCallback(DMA_HandleTypeDef *hdma); static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, uint32_t Timeout, uint32_t Tickstart); static void SPI_TxISR_8BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_TxISR_16BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_RxISR_8BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_RxISR_16BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesRxISR_8BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesTxISR_8BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesTxISR_16BIT(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesRxISR_16BIT(struct __SPI_HandleTypeDef *hspi); #if (USE_SPI_CRC != 0U) static void SPI_RxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi); static void SPI_RxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesRxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi); static void SPI_2linesRxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi); #endif /* USE_SPI_CRC */ static void SPI_AbortRx_ISR(SPI_HandleTypeDef *hspi); static void SPI_AbortTx_ISR(SPI_HandleTypeDef *hspi); static void SPI_CloseRxTx_ISR(SPI_HandleTypeDef *hspi); static void SPI_CloseRx_ISR(SPI_HandleTypeDef *hspi); static void SPI_CloseTx_ISR(SPI_HandleTypeDef *hspi); static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart); static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup SPI_Exported_Functions SPI Exported Functions * @{ */ /** @defgroup SPI_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize and de-initialize the SPIx peripheral: (+) User must implement HAL_SPI_MspInit() function in which he configures all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). (+) Call the function HAL_SPI_Init() to configure the selected device with the selected configuration: (++) Mode (++) Direction (++) Data Size (++) Clock Polarity and Phase (++) NSS Management (++) BaudRate Prescaler (++) FirstBit (++) TIMode (++) CRC Calculation (++) CRC Polynomial if CRC enabled (+) Call the function HAL_SPI_DeInit() to restore the default configuration of the selected SPIx peripheral. @endverbatim * @{ */ /** * @brief Initialize the SPI according to the specified parameters * in the SPI_InitTypeDef and initialize the associated handle. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) { /* Check the SPI handle allocation */ if (hspi == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_SPI_ALL_INSTANCE(hspi->Instance)); assert_param(IS_SPI_MODE(hspi->Init.Mode)); assert_param(IS_SPI_DIRECTION(hspi->Init.Direction)); assert_param(IS_SPI_DATASIZE(hspi->Init.DataSize)); assert_param(IS_SPI_NSS(hspi->Init.NSS)); assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) { assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); if (hspi->Init.Mode == SPI_MODE_MASTER) { assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); } else { /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */ hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; } } else { assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); /* Force polarity and phase to TI protocaol requirements */ hspi->Init.CLKPolarity = SPI_POLARITY_LOW; hspi->Init.CLKPhase = SPI_PHASE_1EDGE; } #if (USE_SPI_CRC != 0U) assert_param(IS_SPI_CRC_CALCULATION(hspi->Init.CRCCalculation)); if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); } #else hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; #endif /* USE_SPI_CRC */ if (hspi->State == HAL_SPI_STATE_RESET) { /* Allocate lock resource and initialize it */ hspi->Lock = HAL_UNLOCKED; #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) /* Init the SPI Callback settings */ hspi->TxCpltCallback = HAL_SPI_TxCpltCallback; /* Legacy weak TxCpltCallback */ hspi->RxCpltCallback = HAL_SPI_RxCpltCallback; /* Legacy weak RxCpltCallback */ hspi->TxRxCpltCallback = HAL_SPI_TxRxCpltCallback; /* Legacy weak TxRxCpltCallback */ hspi->TxHalfCpltCallback = HAL_SPI_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ hspi->RxHalfCpltCallback = HAL_SPI_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ hspi->TxRxHalfCpltCallback = HAL_SPI_TxRxHalfCpltCallback; /* Legacy weak TxRxHalfCpltCallback */ hspi->ErrorCallback = HAL_SPI_ErrorCallback; /* Legacy weak ErrorCallback */ hspi->AbortCpltCallback = HAL_SPI_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ if (hspi->MspInitCallback == NULL) { hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ } /* Init the low level hardware : GPIO, CLOCK, NVIC... */ hspi->MspInitCallback(hspi); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_SPI_MspInit(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } hspi->State = HAL_SPI_STATE_BUSY; /* Disable the selected SPI peripheral */ __HAL_SPI_DISABLE(hspi); /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management, Communication speed, First bit and CRC calculation state */ WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) | (hspi->Init.Direction & (SPI_CR1_RXONLY | SPI_CR1_BIDIMODE)) | (hspi->Init.DataSize & SPI_CR1_DFF) | (hspi->Init.CLKPolarity & SPI_CR1_CPOL) | (hspi->Init.CLKPhase & SPI_CR1_CPHA) | (hspi->Init.NSS & SPI_CR1_SSM) | (hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) | (hspi->Init.FirstBit & SPI_CR1_LSBFIRST) | (hspi->Init.CRCCalculation & SPI_CR1_CRCEN))); /* Configure : NSS management, TI Mode */ WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | (hspi->Init.TIMode & SPI_CR2_FRF))); #if (USE_SPI_CRC != 0U) /*---------------------------- SPIx CRCPOLY Configuration ------------------*/ /* Configure : CRC Polynomial */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { WRITE_REG(hspi->Instance->CRCPR, (hspi->Init.CRCPolynomial & SPI_CRCPR_CRCPOLY_Msk)); } #endif /* USE_SPI_CRC */ #if defined(SPI_I2SCFGR_I2SMOD) /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); #endif /* SPI_I2SCFGR_I2SMOD */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->State = HAL_SPI_STATE_READY; return HAL_OK; } /** * @brief De-Initialize the SPI peripheral. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_DeInit(SPI_HandleTypeDef *hspi) { /* Check the SPI handle allocation */ if (hspi == NULL) { return HAL_ERROR; } /* Check SPI Instance parameter */ assert_param(IS_SPI_ALL_INSTANCE(hspi->Instance)); hspi->State = HAL_SPI_STATE_BUSY; /* Disable the SPI Peripheral Clock */ __HAL_SPI_DISABLE(hspi); #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) if (hspi->MspDeInitCallback == NULL) { hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware: GPIO, CLOCK, NVIC... */ hspi->MspDeInitCallback(hspi); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC... */ HAL_SPI_MspDeInit(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->State = HAL_SPI_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(hspi); return HAL_OK; } /** * @brief Initialize the SPI MSP. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_MspInit should be implemented in the user file */ } /** * @brief De-Initialize the SPI MSP. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_MspDeInit should be implemented in the user file */ } #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) /** * @brief Register a User SPI Callback * To be used instead of the weak predefined callback * @param hspi Pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI. * @param CallbackID ID of the callback to be registered * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_RegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID, pSPI_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hspi->ErrorCode |= HAL_SPI_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hspi); if (HAL_SPI_STATE_READY == hspi->State) { switch (CallbackID) { case HAL_SPI_TX_COMPLETE_CB_ID : hspi->TxCpltCallback = pCallback; break; case HAL_SPI_RX_COMPLETE_CB_ID : hspi->RxCpltCallback = pCallback; break; case HAL_SPI_TX_RX_COMPLETE_CB_ID : hspi->TxRxCpltCallback = pCallback; break; case HAL_SPI_TX_HALF_COMPLETE_CB_ID : hspi->TxHalfCpltCallback = pCallback; break; case HAL_SPI_RX_HALF_COMPLETE_CB_ID : hspi->RxHalfCpltCallback = pCallback; break; case HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID : hspi->TxRxHalfCpltCallback = pCallback; break; case HAL_SPI_ERROR_CB_ID : hspi->ErrorCallback = pCallback; break; case HAL_SPI_ABORT_CB_ID : hspi->AbortCpltCallback = pCallback; break; case HAL_SPI_MSPINIT_CB_ID : hspi->MspInitCallback = pCallback; break; case HAL_SPI_MSPDEINIT_CB_ID : hspi->MspDeInitCallback = pCallback; break; default : /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_SPI_STATE_RESET == hspi->State) { switch (CallbackID) { case HAL_SPI_MSPINIT_CB_ID : hspi->MspInitCallback = pCallback; break; case HAL_SPI_MSPDEINIT_CB_ID : hspi->MspDeInitCallback = pCallback; break; default : /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hspi); return status; } /** * @brief Unregister an SPI Callback * SPI callback is redirected to the weak predefined callback * @param hspi Pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI. * @param CallbackID ID of the callback to be unregistered * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_UnRegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hspi); if (HAL_SPI_STATE_READY == hspi->State) { switch (CallbackID) { case HAL_SPI_TX_COMPLETE_CB_ID : hspi->TxCpltCallback = HAL_SPI_TxCpltCallback; /* Legacy weak TxCpltCallback */ break; case HAL_SPI_RX_COMPLETE_CB_ID : hspi->RxCpltCallback = HAL_SPI_RxCpltCallback; /* Legacy weak RxCpltCallback */ break; case HAL_SPI_TX_RX_COMPLETE_CB_ID : hspi->TxRxCpltCallback = HAL_SPI_TxRxCpltCallback; /* Legacy weak TxRxCpltCallback */ break; case HAL_SPI_TX_HALF_COMPLETE_CB_ID : hspi->TxHalfCpltCallback = HAL_SPI_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ break; case HAL_SPI_RX_HALF_COMPLETE_CB_ID : hspi->RxHalfCpltCallback = HAL_SPI_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ break; case HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID : hspi->TxRxHalfCpltCallback = HAL_SPI_TxRxHalfCpltCallback; /* Legacy weak TxRxHalfCpltCallback */ break; case HAL_SPI_ERROR_CB_ID : hspi->ErrorCallback = HAL_SPI_ErrorCallback; /* Legacy weak ErrorCallback */ break; case HAL_SPI_ABORT_CB_ID : hspi->AbortCpltCallback = HAL_SPI_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ break; case HAL_SPI_MSPINIT_CB_ID : hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ break; case HAL_SPI_MSPDEINIT_CB_ID : hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_SPI_STATE_RESET == hspi->State) { switch (CallbackID) { case HAL_SPI_MSPINIT_CB_ID : hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ break; case HAL_SPI_MSPDEINIT_CB_ID : hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hspi); return status; } #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup SPI_Exported_Functions_Group2 IO operation functions * @brief Data transfers functions * @verbatim ============================================================================== ##### IO operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the SPI data transfers. [..] The SPI supports master and slave mode : (#) There are two modes of transfer: (++) Blocking mode: The communication is performed in polling mode. The HAL status of all data processing is returned by the same function after finishing transfer. (++) No-Blocking mode: The communication is performed using Interrupts or DMA, These APIs return the HAL status. The end of the data processing will be indicated through the dedicated SPI IRQ when using Interrupt mode or the DMA IRQ when using DMA mode. The HAL_SPI_TxCpltCallback(), HAL_SPI_RxCpltCallback() and HAL_SPI_TxRxCpltCallback() user callbacks will be executed respectively at the end of the transmit or Receive process The HAL_SPI_ErrorCallback()user callback will be executed when a communication error is detected (#) APIs provided for these 2 transfer modes (Blocking mode or Non blocking mode using either Interrupt or DMA) exist for 1Line (simplex) and 2Lines (full duplex) modes. @endverbatim * @{ */ /** * @brief Transmit an amount of data in blocking mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @param Size amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) { uint32_t tickstart; HAL_StatusTypeDef errorcode = HAL_OK; uint16_t initial_TxXferCount; /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); initial_TxXferCount = Size; if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_TX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pTxBuffPtr = (uint8_t *)pData; hspi->TxXferSize = Size; hspi->TxXferCount = Size; /*Init field not used in handle to zero */ hspi->pRxBuffPtr = (uint8_t *)NULL; hspi->RxXferSize = 0U; hspi->RxXferCount = 0U; hspi->TxISR = NULL; hspi->RxISR = NULL; /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_TX(hspi); } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Transmit data in 16 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; } /* Transmit data in 16 Bit mode */ while (hspi->TxXferCount > 0U) { /* Wait until TXE flag is set to send data */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) { errorcode = HAL_TIMEOUT; goto error; } } } } /* Transmit data in 8 Bit mode */ else { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint8_t); hspi->TxXferCount--; } while (hspi->TxXferCount > 0U) { /* Wait until TXE flag is set to send data */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint8_t); hspi->TxXferCount--; } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) { errorcode = HAL_TIMEOUT; goto error; } } } } #if (USE_SPI_CRC != 0U) /* Enable CRC Transmission */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) { hspi->ErrorCode = HAL_SPI_ERROR_FLAG; } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { errorcode = HAL_ERROR; } error: hspi->State = HAL_SPI_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Receive an amount of data in blocking mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @param Size amount of data to be received * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) { #if (USE_SPI_CRC != 0U) __IO uint32_t tmpreg = 0U; #endif /* USE_SPI_CRC */ uint32_t tickstart; HAL_StatusTypeDef errorcode = HAL_OK; if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES)) { hspi->State = HAL_SPI_STATE_BUSY_RX; /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ return HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout); } /* Process Locked */ __HAL_LOCK(hspi); /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_RX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pRxBuffPtr = (uint8_t *)pData; hspi->RxXferSize = Size; hspi->RxXferCount = Size; /*Init field not used in handle to zero */ hspi->pTxBuffPtr = (uint8_t *)NULL; hspi->TxXferSize = 0U; hspi->TxXferCount = 0U; hspi->RxISR = NULL; hspi->TxISR = NULL; #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); /* this is done to handle the CRCNEXT before the latest data */ hspi->RxXferCount--; } #endif /* USE_SPI_CRC */ /* Configure communication direction: 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_RX(hspi); } /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Receive data in 8 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_8BIT) { /* Transfer loop */ while (hspi->RxXferCount > 0U) { /* Check the RXNE flag */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) { /* read the received data */ (* (uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; hspi->pRxBuffPtr += sizeof(uint8_t); hspi->RxXferCount--; } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) { errorcode = HAL_TIMEOUT; goto error; } } } } else { /* Transfer loop */ while (hspi->RxXferCount > 0U) { /* Check the RXNE flag */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; hspi->pRxBuffPtr += sizeof(uint16_t); hspi->RxXferCount--; } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) { errorcode = HAL_TIMEOUT; goto error; } } } } #if (USE_SPI_CRC != 0U) /* Handle the CRC Transmission */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* freeze the CRC before the latest data */ SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); /* Read the latest data */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) { /* the latest data has not been received */ errorcode = HAL_TIMEOUT; goto error; } /* Receive last data in 16 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; } /* Receive last data in 8 Bit mode */ else { (*(uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; } /* Wait the CRC data */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); errorcode = HAL_TIMEOUT; goto error; } /* Read CRC to Flush DR and RXNE flag */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTransaction(hspi, Timeout, tickstart) != HAL_OK) { hspi->ErrorCode = HAL_SPI_ERROR_FLAG; } #if (USE_SPI_CRC != 0U) /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); __HAL_SPI_CLEAR_CRCERRFLAG(hspi); } #endif /* USE_SPI_CRC */ if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { errorcode = HAL_ERROR; } error : hspi->State = HAL_SPI_STATE_READY; __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Transmit and Receive an amount of data in blocking mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pTxData pointer to transmission data buffer * @param pRxData pointer to reception data buffer * @param Size amount of data to be sent and received * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout) { #if (USE_SPI_CRC != 0U) __IO uint32_t tmpreg = 0U; #endif /* USE_SPI_CRC */ uint16_t initial_TxXferCount; uint32_t tmp_mode; HAL_SPI_StateTypeDef tmp_state; uint32_t tickstart; /* Variable used to alternate Rx and Tx during transfer */ uint32_t txallowed = 1U; HAL_StatusTypeDef errorcode = HAL_OK; /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); /* Init temporary variables */ tmp_state = hspi->State; tmp_mode = hspi->Init.Mode; initial_TxXferCount = Size; if (!((tmp_state == HAL_SPI_STATE_READY) || \ ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) { errorcode = HAL_BUSY; goto error; } if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ if (hspi->State != HAL_SPI_STATE_BUSY_RX) { hspi->State = HAL_SPI_STATE_BUSY_TX_RX; } /* Set the transaction information */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pRxBuffPtr = (uint8_t *)pRxData; hspi->RxXferCount = Size; hspi->RxXferSize = Size; hspi->pTxBuffPtr = (uint8_t *)pTxData; hspi->TxXferCount = Size; hspi->TxXferSize = Size; /*Init field not used in handle to zero */ hspi->RxISR = NULL; hspi->TxISR = NULL; #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Transmit and Receive data in 16 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; } while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) { /* Check TXE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; /* Next Data is a reception (Rx). Tx not allowed */ txallowed = 0U; #if (USE_SPI_CRC != 0U) /* Enable CRC Transmission */ if ((hspi->TxXferCount == 0U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) { SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ } /* Check RXNE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; hspi->pRxBuffPtr += sizeof(uint16_t); hspi->RxXferCount--; /* Next Data is a Transmission (Tx). Tx is allowed */ txallowed = 1U; } if (((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) { errorcode = HAL_TIMEOUT; goto error; } } } /* Transmit and Receive data in 8 Bit mode */ else { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint8_t); hspi->TxXferCount--; } while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) { /* Check TXE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) { *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr++; hspi->TxXferCount--; /* Next Data is a reception (Rx). Tx not allowed */ txallowed = 0U; #if (USE_SPI_CRC != 0U) /* Enable CRC Transmission */ if ((hspi->TxXferCount == 0U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) { SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ } /* Wait until RXNE flag is reset */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) { (*(uint8_t *)hspi->pRxBuffPtr) = hspi->Instance->DR; hspi->pRxBuffPtr++; hspi->RxXferCount--; /* Next Data is a Transmission (Tx). Tx is allowed */ txallowed = 1U; } if ((((HAL_GetTick() - tickstart) >= Timeout) && ((Timeout != HAL_MAX_DELAY))) || (Timeout == 0U)) { errorcode = HAL_TIMEOUT; goto error; } } } #if (USE_SPI_CRC != 0U) /* Read CRC from DR to close CRC calculation process */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Wait until TXE flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) { /* Error on the CRC reception */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); errorcode = HAL_TIMEOUT; goto error; } /* Read CRC */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); } /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); /* Clear CRC Flag */ __HAL_SPI_CLEAR_CRCERRFLAG(hspi); errorcode = HAL_ERROR; } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) { errorcode = HAL_ERROR; hspi->ErrorCode = HAL_SPI_ERROR_FLAG; goto error; } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } error : hspi->State = HAL_SPI_STATE_READY; __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Transmit an amount of data in non-blocking mode with Interrupt. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @param Size amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Transmit_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef errorcode = HAL_OK; /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_TX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pTxBuffPtr = (uint8_t *)pData; hspi->TxXferSize = Size; hspi->TxXferCount = Size; /* Init field not used in handle to zero */ hspi->pRxBuffPtr = (uint8_t *)NULL; hspi->RxXferSize = 0U; hspi->RxXferCount = 0U; hspi->RxISR = NULL; /* Set the function for IT treatment */ if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) { hspi->TxISR = SPI_TxISR_16BIT; } else { hspi->TxISR = SPI_TxISR_8BIT; } /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_TX(hspi); } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Enable TXE and ERR interrupt */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_ERR)); /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } error : __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Receive an amount of data in non-blocking mode with Interrupt. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @param Size amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Receive_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef errorcode = HAL_OK; if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) { hspi->State = HAL_SPI_STATE_BUSY_RX; /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ return HAL_SPI_TransmitReceive_IT(hspi, pData, pData, Size); } /* Process Locked */ __HAL_LOCK(hspi); if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_RX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pRxBuffPtr = (uint8_t *)pData; hspi->RxXferSize = Size; hspi->RxXferCount = Size; /* Init field not used in handle to zero */ hspi->pTxBuffPtr = (uint8_t *)NULL; hspi->TxXferSize = 0U; hspi->TxXferCount = 0U; hspi->TxISR = NULL; /* Set the function for IT treatment */ if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) { hspi->RxISR = SPI_RxISR_16BIT; } else { hspi->RxISR = SPI_RxISR_8BIT; } /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_RX(hspi); } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Enable TXE and ERR interrupt */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); /* Note : The SPI must be enabled after unlocking current process to avoid the risk of SPI interrupt handle execution before current process unlock */ /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } error : /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Transmit and Receive an amount of data in non-blocking mode with Interrupt. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pTxData pointer to transmission data buffer * @param pRxData pointer to reception data buffer * @param Size amount of data to be sent and received * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size) { uint32_t tmp_mode; HAL_SPI_StateTypeDef tmp_state; HAL_StatusTypeDef errorcode = HAL_OK; /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); /* Process locked */ __HAL_LOCK(hspi); /* Init temporary variables */ tmp_state = hspi->State; tmp_mode = hspi->Init.Mode; if (!((tmp_state == HAL_SPI_STATE_READY) || \ ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) { errorcode = HAL_BUSY; goto error; } if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ if (hspi->State != HAL_SPI_STATE_BUSY_RX) { hspi->State = HAL_SPI_STATE_BUSY_TX_RX; } /* Set the transaction information */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pTxBuffPtr = (uint8_t *)pTxData; hspi->TxXferSize = Size; hspi->TxXferCount = Size; hspi->pRxBuffPtr = (uint8_t *)pRxData; hspi->RxXferSize = Size; hspi->RxXferCount = Size; /* Set the function for IT treatment */ if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) { hspi->RxISR = SPI_2linesRxISR_16BIT; hspi->TxISR = SPI_2linesTxISR_16BIT; } else { hspi->RxISR = SPI_2linesRxISR_8BIT; hspi->TxISR = SPI_2linesTxISR_8BIT; } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Enable TXE, RXNE and ERR interrupt */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } error : /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Transmit an amount of data in non-blocking mode with DMA. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @param Size amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef errorcode = HAL_OK; /* Check tx dma handle */ assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_TX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pTxBuffPtr = (uint8_t *)pData; hspi->TxXferSize = Size; hspi->TxXferCount = Size; /* Init field not used in handle to zero */ hspi->pRxBuffPtr = (uint8_t *)NULL; hspi->TxISR = NULL; hspi->RxISR = NULL; hspi->RxXferSize = 0U; hspi->RxXferCount = 0U; /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_TX(hspi); } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Set the SPI TxDMA Half transfer complete callback */ hspi->hdmatx->XferHalfCpltCallback = SPI_DMAHalfTransmitCplt; /* Set the SPI TxDMA transfer complete callback */ hspi->hdmatx->XferCpltCallback = SPI_DMATransmitCplt; /* Set the DMA error callback */ hspi->hdmatx->XferErrorCallback = SPI_DMAError; /* Set the DMA AbortCpltCallback */ hspi->hdmatx->XferAbortCallback = NULL; /* Enable the Tx DMA Stream/Channel */ if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmatx, (uint32_t)hspi->pTxBuffPtr, (uint32_t)&hspi->Instance->DR, hspi->TxXferCount)) { /* Update SPI error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; hspi->State = HAL_SPI_STATE_READY; goto error; } /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Enable the SPI Error Interrupt Bit */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); /* Enable Tx DMA Request */ SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); error : /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Receive an amount of data in non-blocking mode with DMA. * @note In case of MASTER mode and SPI_DIRECTION_2LINES direction, hdmatx shall be defined. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pData pointer to data buffer * @note When the CRC feature is enabled the pData Length must be Size + 1. * @param Size amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef errorcode = HAL_OK; /* Check rx dma handle */ assert_param(IS_SPI_DMA_HANDLE(hspi->hdmarx)); if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) { hspi->State = HAL_SPI_STATE_BUSY_RX; /* Check tx dma handle */ assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ return HAL_SPI_TransmitReceive_DMA(hspi, pData, pData, Size); } /* Process Locked */ __HAL_LOCK(hspi); if (hspi->State != HAL_SPI_STATE_READY) { errorcode = HAL_BUSY; goto error; } if ((pData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_RX; hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pRxBuffPtr = (uint8_t *)pData; hspi->RxXferSize = Size; hspi->RxXferCount = Size; /*Init field not used in handle to zero */ hspi->RxISR = NULL; hspi->TxISR = NULL; hspi->TxXferSize = 0U; hspi->TxXferCount = 0U; /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); SPI_1LINE_RX(hspi); } #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Set the SPI RxDMA Half transfer complete callback */ hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfReceiveCplt; /* Set the SPI Rx DMA transfer complete callback */ hspi->hdmarx->XferCpltCallback = SPI_DMAReceiveCplt; /* Set the DMA error callback */ hspi->hdmarx->XferErrorCallback = SPI_DMAError; /* Set the DMA AbortCpltCallback */ hspi->hdmarx->XferAbortCallback = NULL; /* Enable the Rx DMA Stream/Channel */ if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmarx, (uint32_t)&hspi->Instance->DR, (uint32_t)hspi->pRxBuffPtr, hspi->RxXferCount)) { /* Update SPI error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; hspi->State = HAL_SPI_STATE_READY; goto error; } /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Enable the SPI Error Interrupt Bit */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); /* Enable Rx DMA Request */ SET_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); error: /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Transmit and Receive an amount of data in non-blocking mode with DMA. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pTxData pointer to transmission data buffer * @param pRxData pointer to reception data buffer * @note When the CRC feature is enabled the pRxData Length must be Size + 1 * @param Size amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size) { uint32_t tmp_mode; HAL_SPI_StateTypeDef tmp_state; HAL_StatusTypeDef errorcode = HAL_OK; /* Check rx & tx dma handles */ assert_param(IS_SPI_DMA_HANDLE(hspi->hdmarx)); assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); /* Process locked */ __HAL_LOCK(hspi); /* Init temporary variables */ tmp_state = hspi->State; tmp_mode = hspi->Init.Mode; if (!((tmp_state == HAL_SPI_STATE_READY) || ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) { errorcode = HAL_BUSY; goto error; } if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) { errorcode = HAL_ERROR; goto error; } /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ if (hspi->State != HAL_SPI_STATE_BUSY_RX) { hspi->State = HAL_SPI_STATE_BUSY_TX_RX; } /* Set the transaction information */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; hspi->pTxBuffPtr = (uint8_t *)pTxData; hspi->TxXferSize = Size; hspi->TxXferCount = Size; hspi->pRxBuffPtr = (uint8_t *)pRxData; hspi->RxXferSize = Size; hspi->RxXferCount = Size; /* Init field not used in handle to zero */ hspi->RxISR = NULL; hspi->TxISR = NULL; #if (USE_SPI_CRC != 0U) /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Check if we are in Rx only or in Rx/Tx Mode and configure the DMA transfer complete callback */ if (hspi->State == HAL_SPI_STATE_BUSY_RX) { /* Set the SPI Rx DMA Half transfer complete callback */ hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfReceiveCplt; hspi->hdmarx->XferCpltCallback = SPI_DMAReceiveCplt; } else { /* Set the SPI Tx/Rx DMA Half transfer complete callback */ hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfTransmitReceiveCplt; hspi->hdmarx->XferCpltCallback = SPI_DMATransmitReceiveCplt; } /* Set the DMA error callback */ hspi->hdmarx->XferErrorCallback = SPI_DMAError; /* Set the DMA AbortCpltCallback */ hspi->hdmarx->XferAbortCallback = NULL; /* Enable the Rx DMA Stream/Channel */ if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmarx, (uint32_t)&hspi->Instance->DR, (uint32_t)hspi->pRxBuffPtr, hspi->RxXferCount)) { /* Update SPI error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; hspi->State = HAL_SPI_STATE_READY; goto error; } /* Enable Rx DMA Request */ SET_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); /* Set the SPI Tx DMA transfer complete callback as NULL because the communication closing is performed in DMA reception complete callback */ hspi->hdmatx->XferHalfCpltCallback = NULL; hspi->hdmatx->XferCpltCallback = NULL; hspi->hdmatx->XferErrorCallback = NULL; hspi->hdmatx->XferAbortCallback = NULL; /* Enable the Tx DMA Stream/Channel */ if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmatx, (uint32_t)hspi->pTxBuffPtr, (uint32_t)&hspi->Instance->DR, hspi->TxXferCount)) { /* Update SPI error code */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; hspi->State = HAL_SPI_STATE_READY; goto error; } /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); } /* Enable the SPI Error Interrupt Bit */ __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); /* Enable Tx DMA Request */ SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); error : /* Process Unlocked */ __HAL_UNLOCK(hspi); return errorcode; } /** * @brief Abort ongoing transfer (blocking mode). * @param hspi SPI handle. * @note This procedure could be used for aborting any ongoing transfer (Tx and Rx), * started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable SPI Interrupts (depending of transfer direction) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Abort(SPI_HandleTypeDef *hspi) { HAL_StatusTypeDef errorcode; __IO uint32_t count; __IO uint32_t resetcount; /* Initialized local variable */ errorcode = HAL_OK; resetcount = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); count = resetcount; /* Clear ERRIE interrupt to avoid error interrupts generation during Abort procedure */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_ERRIE); /* Disable TXEIE, RXNEIE and ERRIE(mode fault event, overrun error, TI frame error) interrupts */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXEIE)) { hspi->TxISR = SPI_AbortTx_ISR; /* Wait HAL_SPI_STATE_ABORT state */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while (hspi->State != HAL_SPI_STATE_ABORT); /* Reset Timeout Counter */ count = resetcount; } if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXNEIE)) { hspi->RxISR = SPI_AbortRx_ISR; /* Wait HAL_SPI_STATE_ABORT state */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while (hspi->State != HAL_SPI_STATE_ABORT); /* Reset Timeout Counter */ count = resetcount; } /* Disable the SPI DMA Tx request if enabled */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) { /* Abort the SPI DMA Tx Stream/Channel : use blocking DMA Abort API (no callback) */ if (hspi->hdmatx != NULL) { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_AbortCpltCallback() at end of DMA abort procedure */ hspi->hdmatx->XferAbortCallback = NULL; /* Abort DMA Tx Handle linked to SPI Peripheral */ if (HAL_DMA_Abort(hspi->hdmatx) != HAL_OK) { hspi->ErrorCode = HAL_SPI_ERROR_ABORT; } /* Disable Tx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXDMAEN)); /* Wait until TXE flag is set */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); } } /* Disable the SPI DMA Rx request if enabled */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) { /* Abort the SPI DMA Rx Stream/Channel : use blocking DMA Abort API (no callback) */ if (hspi->hdmarx != NULL) { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_AbortCpltCallback() at end of DMA abort procedure */ hspi->hdmarx->XferAbortCallback = NULL; /* Abort DMA Rx Handle linked to SPI Peripheral */ if (HAL_DMA_Abort(hspi->hdmarx) != HAL_OK) { hspi->ErrorCode = HAL_SPI_ERROR_ABORT; } /* Disable peripheral */ __HAL_SPI_DISABLE(hspi); /* Disable Rx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_RXDMAEN)); } } /* Reset Tx and Rx transfer counters */ hspi->RxXferCount = 0U; hspi->TxXferCount = 0U; /* Check error during Abort procedure */ if (hspi->ErrorCode == HAL_SPI_ERROR_ABORT) { /* return HAL_Error in case of error during Abort procedure */ errorcode = HAL_ERROR; } else { /* Reset errorCode */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; } /* Clear the Error flags in the SR register */ __HAL_SPI_CLEAR_OVRFLAG(hspi); __HAL_SPI_CLEAR_FREFLAG(hspi); /* Restore hspi->state to ready */ hspi->State = HAL_SPI_STATE_READY; return errorcode; } /** * @brief Abort ongoing transfer (Interrupt mode). * @param hspi SPI handle. * @note This procedure could be used for aborting any ongoing transfer (Tx and Rx), * started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable SPI Interrupts (depending of transfer direction) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) * - Set handle State to READY * - At abort completion, call user abort complete callback * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be * considered as completed only when user abort complete callback is executed (not when exiting function). * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Abort_IT(SPI_HandleTypeDef *hspi) { HAL_StatusTypeDef errorcode; uint32_t abortcplt ; __IO uint32_t count; __IO uint32_t resetcount; /* Initialized local variable */ errorcode = HAL_OK; abortcplt = 1U; resetcount = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); count = resetcount; /* Clear ERRIE interrupt to avoid error interrupts generation during Abort procedure */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_ERRIE); /* Change Rx and Tx Irq Handler to Disable TXEIE, RXNEIE and ERRIE interrupts */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXEIE)) { hspi->TxISR = SPI_AbortTx_ISR; /* Wait HAL_SPI_STATE_ABORT state */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while (hspi->State != HAL_SPI_STATE_ABORT); /* Reset Timeout Counter */ count = resetcount; } if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXNEIE)) { hspi->RxISR = SPI_AbortRx_ISR; /* Wait HAL_SPI_STATE_ABORT state */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while (hspi->State != HAL_SPI_STATE_ABORT); /* Reset Timeout Counter */ count = resetcount; } /* If DMA Tx and/or DMA Rx Handles are associated to SPI Handle, DMA Abort complete callbacks should be initialised before any call to DMA Abort functions */ /* DMA Tx Handle is valid */ if (hspi->hdmatx != NULL) { /* Set DMA Abort Complete callback if UART DMA Tx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) { hspi->hdmatx->XferAbortCallback = SPI_DMATxAbortCallback; } else { hspi->hdmatx->XferAbortCallback = NULL; } } /* DMA Rx Handle is valid */ if (hspi->hdmarx != NULL) { /* Set DMA Abort Complete callback if UART DMA Rx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) { hspi->hdmarx->XferAbortCallback = SPI_DMARxAbortCallback; } else { hspi->hdmarx->XferAbortCallback = NULL; } } /* Disable the SPI DMA Tx request if enabled */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) { /* Abort the SPI DMA Tx Stream/Channel */ if (hspi->hdmatx != NULL) { /* Abort DMA Tx Handle linked to SPI Peripheral */ if (HAL_DMA_Abort_IT(hspi->hdmatx) != HAL_OK) { hspi->hdmatx->XferAbortCallback = NULL; hspi->ErrorCode = HAL_SPI_ERROR_ABORT; } else { abortcplt = 0U; } } } /* Disable the SPI DMA Rx request if enabled */ if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) { /* Abort the SPI DMA Rx Stream/Channel */ if (hspi->hdmarx != NULL) { /* Abort DMA Rx Handle linked to SPI Peripheral */ if (HAL_DMA_Abort_IT(hspi->hdmarx) != HAL_OK) { hspi->hdmarx->XferAbortCallback = NULL; hspi->ErrorCode = HAL_SPI_ERROR_ABORT; } else { abortcplt = 0U; } } } if (abortcplt == 1U) { /* Reset Tx and Rx transfer counters */ hspi->RxXferCount = 0U; hspi->TxXferCount = 0U; /* Check error during Abort procedure */ if (hspi->ErrorCode == HAL_SPI_ERROR_ABORT) { /* return HAL_Error in case of error during Abort procedure */ errorcode = HAL_ERROR; } else { /* Reset errorCode */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; } /* Clear the Error flags in the SR register */ __HAL_SPI_CLEAR_OVRFLAG(hspi); __HAL_SPI_CLEAR_FREFLAG(hspi); /* Restore hspi->State to Ready */ hspi->State = HAL_SPI_STATE_READY; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->AbortCpltCallback(hspi); #else HAL_SPI_AbortCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } return errorcode; } /** * @brief Pause the DMA Transfer. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi) { /* Process Locked */ __HAL_LOCK(hspi); /* Disable the SPI DMA Tx & Rx requests */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); /* Process Unlocked */ __HAL_UNLOCK(hspi); return HAL_OK; } /** * @brief Resume the DMA Transfer. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi) { /* Process Locked */ __HAL_LOCK(hspi); /* Enable the SPI DMA Tx & Rx requests */ SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); /* Process Unlocked */ __HAL_UNLOCK(hspi); return HAL_OK; } /** * @brief Stop the DMA Transfer. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi) { HAL_StatusTypeDef errorcode = HAL_OK; /* The Lock is not implemented on this API to allow the user application to call the HAL SPI API under callbacks HAL_SPI_TxCpltCallback() or HAL_SPI_RxCpltCallback() or HAL_SPI_TxRxCpltCallback(): when calling HAL_DMA_Abort() API the DMA TX/RX Transfer complete interrupt is generated and the correspond call back is executed HAL_SPI_TxCpltCallback() or HAL_SPI_RxCpltCallback() or HAL_SPI_TxRxCpltCallback() */ /* Abort the SPI DMA tx Stream/Channel */ if (hspi->hdmatx != NULL) { if (HAL_OK != HAL_DMA_Abort(hspi->hdmatx)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; } } /* Abort the SPI DMA rx Stream/Channel */ if (hspi->hdmarx != NULL) { if (HAL_OK != HAL_DMA_Abort(hspi->hdmarx)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); errorcode = HAL_ERROR; } } /* Disable the SPI DMA Tx & Rx requests */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); hspi->State = HAL_SPI_STATE_READY; return errorcode; } /** * @brief Handle SPI interrupt request. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI module. * @retval None */ void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi) { uint32_t itsource = hspi->Instance->CR2; uint32_t itflag = hspi->Instance->SR; /* SPI in mode Receiver ----------------------------------------------------*/ if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) == RESET) && (SPI_CHECK_FLAG(itflag, SPI_FLAG_RXNE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_RXNE) != RESET)) { hspi->RxISR(hspi); return; } /* SPI in mode Transmitter -------------------------------------------------*/ if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_TXE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_TXE) != RESET)) { hspi->TxISR(hspi); return; } /* SPI in Error Treatment --------------------------------------------------*/ if (((SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) || (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET) || (SPI_CHECK_FLAG(itflag, SPI_FLAG_FRE) != RESET)) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_ERR) != RESET)) { /* SPI Overrun error interrupt occurred ----------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET) { if (hspi->State != HAL_SPI_STATE_BUSY_TX) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_OVR); __HAL_SPI_CLEAR_OVRFLAG(hspi); } else { __HAL_SPI_CLEAR_OVRFLAG(hspi); return; } } /* SPI Mode Fault error interrupt occurred -------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_MODF); __HAL_SPI_CLEAR_MODFFLAG(hspi); } /* SPI Frame error interrupt occurred ------------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_FRE) != RESET) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FRE); __HAL_SPI_CLEAR_FREFLAG(hspi); } if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { /* Disable all interrupts */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE | SPI_IT_TXE | SPI_IT_ERR); hspi->State = HAL_SPI_STATE_READY; /* Disable the SPI DMA requests if enabled */ if ((HAL_IS_BIT_SET(itsource, SPI_CR2_TXDMAEN)) || (HAL_IS_BIT_SET(itsource, SPI_CR2_RXDMAEN))) { CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN)); /* Abort the SPI DMA Rx channel */ if (hspi->hdmarx != NULL) { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ hspi->hdmarx->XferAbortCallback = SPI_DMAAbortOnError; if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmarx)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); } } /* Abort the SPI DMA Tx channel */ if (hspi->hdmatx != NULL) { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ hspi->hdmatx->XferAbortCallback = SPI_DMAAbortOnError; if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmatx)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); } } } else { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } } return; } } /** * @brief Tx Transfer completed callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_TxCpltCallback should be implemented in the user file */ } /** * @brief Rx Transfer completed callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_RxCpltCallback should be implemented in the user file */ } /** * @brief Tx and Rx Transfer completed callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_TxRxCpltCallback should be implemented in the user file */ } /** * @brief Tx Half Transfer completed callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_TxHalfCpltCallback should be implemented in the user file */ } /** * @brief Rx Half Transfer completed callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_RxHalfCpltCallback() should be implemented in the user file */ } /** * @brief Tx and Rx Half Transfer callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_TxRxHalfCpltCallback() should be implemented in the user file */ } /** * @brief SPI error callback. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_ErrorCallback should be implemented in the user file */ /* NOTE : The ErrorCode parameter in the hspi handle is updated by the SPI processes and user can use HAL_SPI_GetError() API to check the latest error occurred */ } /** * @brief SPI Abort Complete callback. * @param hspi SPI handle. * @retval None */ __weak void HAL_SPI_AbortCpltCallback(SPI_HandleTypeDef *hspi) { /* Prevent unused argument(s) compilation warning */ UNUSED(hspi); /* NOTE : This function should not be modified, when the callback is needed, the HAL_SPI_AbortCpltCallback can be implemented in the user file. */ } /** * @} */ /** @defgroup SPI_Exported_Functions_Group3 Peripheral State and Errors functions * @brief SPI control functions * @verbatim =============================================================================== ##### Peripheral State and Errors functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the SPI. (+) HAL_SPI_GetState() API can be helpful to check in run-time the state of the SPI peripheral (+) HAL_SPI_GetError() check in run-time Errors occurring during communication @endverbatim * @{ */ /** * @brief Return the SPI handle state. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval SPI state */ HAL_SPI_StateTypeDef HAL_SPI_GetState(SPI_HandleTypeDef *hspi) { /* Return SPI handle state */ return hspi->State; } /** * @brief Return the SPI error code. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval SPI error code in bitmap format */ uint32_t HAL_SPI_GetError(SPI_HandleTypeDef *hspi) { /* Return SPI ErrorCode */ return hspi->ErrorCode; } /** * @} */ /** * @} */ /** @addtogroup SPI_Private_Functions * @brief Private functions * @{ */ /** * @brief DMA SPI transmit process complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMATransmitCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ uint32_t tickstart; /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); /* DMA Normal Mode */ if ((hdma->Instance->CR & DMA_SxCR_CIRC) != DMA_SxCR_CIRC) { /* Disable ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); /* Disable Tx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); } /* Clear overrun flag in 2 Lines communication mode because received data is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } hspi->TxXferCount = 0U; hspi->State = HAL_SPI_STATE_READY; if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ return; } } /* Call user Tx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxCpltCallback(hspi); #else HAL_SPI_TxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI receive process complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ uint32_t tickstart; #if (USE_SPI_CRC != 0U) __IO uint32_t tmpreg = 0U; #endif /* USE_SPI_CRC */ /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); /* DMA Normal Mode */ if ((hdma->Instance->CR & DMA_SxCR_CIRC) != DMA_SxCR_CIRC) { /* Disable ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); #if (USE_SPI_CRC != 0U) /* CRC handling */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Wait until RXNE flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { /* Error on the CRC reception */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); } /* Read CRC */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); } #endif /* USE_SPI_CRC */ /* Check if we are in Master RX 2 line mode */ if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) { /* Disable Rx/Tx DMA Request (done by default to handle the case master rx direction 2 lines) */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); } else { /* Normal case */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); } /* Check the end of the transaction */ if (SPI_EndRxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { hspi->ErrorCode = HAL_SPI_ERROR_FLAG; } hspi->RxXferCount = 0U; hspi->State = HAL_SPI_STATE_READY; #if (USE_SPI_CRC != 0U) /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); __HAL_SPI_CLEAR_CRCERRFLAG(hspi); } #endif /* USE_SPI_CRC */ if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ return; } } /* Call user Rx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->RxCpltCallback(hspi); #else HAL_SPI_RxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI transmit receive process complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ uint32_t tickstart; #if (USE_SPI_CRC != 0U) __IO uint32_t tmpreg = 0U; #endif /* USE_SPI_CRC */ /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); /* DMA Normal Mode */ if ((hdma->Instance->CR & DMA_SxCR_CIRC) != DMA_SxCR_CIRC) { /* Disable ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); #if (USE_SPI_CRC != 0U) /* CRC handling */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Wait the CRC data */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); } /* Read CRC to Flush DR and RXNE flag */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); } /* Disable Rx/Tx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); hspi->TxXferCount = 0U; hspi->RxXferCount = 0U; hspi->State = HAL_SPI_STATE_READY; #if (USE_SPI_CRC != 0U) /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR)) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); __HAL_SPI_CLEAR_CRCERRFLAG(hspi); } #endif /* USE_SPI_CRC */ if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ return; } } /* Call user TxRx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxRxCpltCallback(hspi); #else HAL_SPI_TxRxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI half transmit process complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMAHalfTransmitCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ /* Call user Tx half complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxHalfCpltCallback(hspi); #else HAL_SPI_TxHalfCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI half receive process complete callback * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMAHalfReceiveCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ /* Call user Rx half complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->RxHalfCpltCallback(hspi); #else HAL_SPI_RxHalfCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI half transmit receive process complete callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMAHalfTransmitReceiveCplt(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ /* Call user TxRx half complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxRxHalfCpltCallback(hspi); #else HAL_SPI_TxRxHalfCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI communication error callback. * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void SPI_DMAError(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ /* Stop the disable DMA transfer on SPI side */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); hspi->State = HAL_SPI_STATE_READY; /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI communication abort callback, when initiated by HAL services on Error * (To be called at end of DMA Abort procedure following error occurrence). * @param hdma DMA handle. * @retval None */ static void SPI_DMAAbortOnError(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ hspi->RxXferCount = 0U; hspi->TxXferCount = 0U; /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI Tx communication abort callback, when initiated by user * (To be called at end of DMA Tx Abort procedure following user abort request). * @note When this callback is executed, User Abort complete call back is called only if no * Abort still ongoing for Rx DMA Handle. * @param hdma DMA handle. * @retval None */ static void SPI_DMATxAbortCallback(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ __IO uint32_t count; hspi->hdmatx->XferAbortCallback = NULL; count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); /* Disable Tx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); /* Wait until TXE flag is set */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); /* Check if an Abort process is still ongoing */ if (hspi->hdmarx != NULL) { if (hspi->hdmarx->XferAbortCallback != NULL) { return; } } /* No Abort process still ongoing : All DMA Stream/Channel are aborted, call user Abort Complete callback */ hspi->RxXferCount = 0U; hspi->TxXferCount = 0U; /* Check no error during Abort procedure */ if (hspi->ErrorCode != HAL_SPI_ERROR_ABORT) { /* Reset errorCode */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; } /* Clear the Error flags in the SR register */ __HAL_SPI_CLEAR_OVRFLAG(hspi); __HAL_SPI_CLEAR_FREFLAG(hspi); /* Restore hspi->State to Ready */ hspi->State = HAL_SPI_STATE_READY; /* Call user Abort complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->AbortCpltCallback(hspi); #else HAL_SPI_AbortCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief DMA SPI Rx communication abort callback, when initiated by user * (To be called at end of DMA Rx Abort procedure following user abort request). * @note When this callback is executed, User Abort complete call back is called only if no * Abort still ongoing for Tx DMA Handle. * @param hdma DMA handle. * @retval None */ static void SPI_DMARxAbortCallback(DMA_HandleTypeDef *hdma) { SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ /* Disable SPI Peripheral */ __HAL_SPI_DISABLE(hspi); hspi->hdmarx->XferAbortCallback = NULL; /* Disable Rx DMA Request */ CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); /* Check Busy flag */ if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, HAL_GetTick()) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); } /* Check if an Abort process is still ongoing */ if (hspi->hdmatx != NULL) { if (hspi->hdmatx->XferAbortCallback != NULL) { return; } } /* No Abort process still ongoing : All DMA Stream/Channel are aborted, call user Abort Complete callback */ hspi->RxXferCount = 0U; hspi->TxXferCount = 0U; /* Check no error during Abort procedure */ if (hspi->ErrorCode != HAL_SPI_ERROR_ABORT) { /* Reset errorCode */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; } /* Clear the Error flags in the SR register */ __HAL_SPI_CLEAR_OVRFLAG(hspi); __HAL_SPI_CLEAR_FREFLAG(hspi); /* Restore hspi->State to Ready */ hspi->State = HAL_SPI_STATE_READY; /* Call user Abort complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->AbortCpltCallback(hspi); #else HAL_SPI_AbortCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } /** * @brief Rx 8-bit handler for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesRxISR_8BIT(struct __SPI_HandleTypeDef *hspi) { /* Receive data in 8bit mode */ *hspi->pRxBuffPtr = *((__IO uint8_t *)&hspi->Instance->DR); hspi->pRxBuffPtr++; hspi->RxXferCount--; /* Check end of the reception */ if (hspi->RxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { hspi->RxISR = SPI_2linesRxISR_8BITCRC; return; } #endif /* USE_SPI_CRC */ /* Disable RXNE and ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); if (hspi->TxXferCount == 0U) { SPI_CloseRxTx_ISR(hspi); } } } #if (USE_SPI_CRC != 0U) /** * @brief Rx 8-bit handler for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesRxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi) { __IO uint32_t tmpreg = 0U; /* Read 8bit CRC to flush Data Register */ tmpreg = READ_REG(*(__IO uint8_t *)&hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); /* Disable RXNE and ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); if (hspi->TxXferCount == 0U) { SPI_CloseRxTx_ISR(hspi); } } #endif /* USE_SPI_CRC */ /** * @brief Tx 8-bit handler for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesTxISR_8BIT(struct __SPI_HandleTypeDef *hspi) { *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr++; hspi->TxXferCount--; /* Check the end of the transmission */ if (hspi->TxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Set CRC Next Bit to send CRC */ SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); /* Disable TXE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); return; } #endif /* USE_SPI_CRC */ /* Disable TXE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); if (hspi->RxXferCount == 0U) { SPI_CloseRxTx_ISR(hspi); } } } /** * @brief Rx 16-bit handler for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesRxISR_16BIT(struct __SPI_HandleTypeDef *hspi) { /* Receive data in 16 Bit mode */ *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)(hspi->Instance->DR); hspi->pRxBuffPtr += sizeof(uint16_t); hspi->RxXferCount--; if (hspi->RxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { hspi->RxISR = SPI_2linesRxISR_16BITCRC; return; } #endif /* USE_SPI_CRC */ /* Disable RXNE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE); if (hspi->TxXferCount == 0U) { SPI_CloseRxTx_ISR(hspi); } } } #if (USE_SPI_CRC != 0U) /** * @brief Manage the CRC 16-bit receive for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesRxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi) { __IO uint32_t tmpreg = 0U; /* Read 16bit CRC to flush Data Register */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); /* Disable RXNE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE); SPI_CloseRxTx_ISR(hspi); } #endif /* USE_SPI_CRC */ /** * @brief Tx 16-bit handler for Transmit and Receive in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_2linesTxISR_16BIT(struct __SPI_HandleTypeDef *hspi) { /* Transmit data in 16 Bit mode */ hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; /* Enable CRC Transmission */ if (hspi->TxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Set CRC Next Bit to send CRC */ SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); /* Disable TXE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); return; } #endif /* USE_SPI_CRC */ /* Disable TXE interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); if (hspi->RxXferCount == 0U) { SPI_CloseRxTx_ISR(hspi); } } } #if (USE_SPI_CRC != 0U) /** * @brief Manage the CRC 8-bit receive in Interrupt context. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_RxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi) { __IO uint32_t tmpreg = 0U; /* Read 8bit CRC to flush Data Register */ tmpreg = READ_REG(*(__IO uint8_t *)&hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); SPI_CloseRx_ISR(hspi); } #endif /* USE_SPI_CRC */ /** * @brief Manage the receive 8-bit in Interrupt context. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_RxISR_8BIT(struct __SPI_HandleTypeDef *hspi) { *hspi->pRxBuffPtr = (*(__IO uint8_t *)&hspi->Instance->DR); hspi->pRxBuffPtr++; hspi->RxXferCount--; #if (USE_SPI_CRC != 0U) /* Enable CRC Transmission */ if ((hspi->RxXferCount == 1U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) { SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ if (hspi->RxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { hspi->RxISR = SPI_RxISR_8BITCRC; return; } #endif /* USE_SPI_CRC */ SPI_CloseRx_ISR(hspi); } } #if (USE_SPI_CRC != 0U) /** * @brief Manage the CRC 16-bit receive in Interrupt context. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_RxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi) { __IO uint32_t tmpreg = 0U; /* Read 16bit CRC to flush Data Register */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); /* Disable RXNE and ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); SPI_CloseRx_ISR(hspi); } #endif /* USE_SPI_CRC */ /** * @brief Manage the 16-bit receive in Interrupt context. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_RxISR_16BIT(struct __SPI_HandleTypeDef *hspi) { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)(hspi->Instance->DR); hspi->pRxBuffPtr += sizeof(uint16_t); hspi->RxXferCount--; #if (USE_SPI_CRC != 0U) /* Enable CRC Transmission */ if ((hspi->RxXferCount == 1U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) { SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ if (hspi->RxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { hspi->RxISR = SPI_RxISR_16BITCRC; return; } #endif /* USE_SPI_CRC */ SPI_CloseRx_ISR(hspi); } } /** * @brief Handle the data 8-bit transmit in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_TxISR_8BIT(struct __SPI_HandleTypeDef *hspi) { *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); hspi->pTxBuffPtr++; hspi->TxXferCount--; if (hspi->TxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Enable CRC Transmission */ SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ SPI_CloseTx_ISR(hspi); } } /** * @brief Handle the data 16-bit transmit in Interrupt mode. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_TxISR_16BIT(struct __SPI_HandleTypeDef *hspi) { /* Transmit data in 16 Bit mode */ hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); hspi->pTxBuffPtr += sizeof(uint16_t); hspi->TxXferCount--; if (hspi->TxXferCount == 0U) { #if (USE_SPI_CRC != 0U) if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Enable CRC Transmission */ SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ SPI_CloseTx_ISR(hspi); } } /** * @brief Handle SPI Communication Timeout. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param Flag SPI flag to check * @param State flag state to check * @param Timeout Timeout duration * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, uint32_t Timeout, uint32_t Tickstart) { __IO uint32_t count; uint32_t tmp_timeout; uint32_t tmp_tickstart; /* Adjust Timeout value in case of end of transfer */ tmp_timeout = Timeout - (HAL_GetTick() - Tickstart); tmp_tickstart = HAL_GetTick(); /* Calculate Timeout based on a software loop to avoid blocking issue if Systick is disabled */ count = tmp_timeout * ((SystemCoreClock * 32U) >> 20U); while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) { if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - tmp_tickstart) >= tmp_timeout) || (tmp_timeout == 0U)) { /* Disable the SPI and reset the CRC: the CRC value should be cleared on both master and slave sides in order to resynchronize the master and slave for their respective CRC calculation */ /* Disable TXE, RXNE and ERR interrupts for the interrupt process */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) { /* Disable SPI peripheral */ __HAL_SPI_DISABLE(hspi); } /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { SPI_RESET_CRC(hspi); } hspi->State = HAL_SPI_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hspi); return HAL_TIMEOUT; } /* If Systick is disabled or not incremented, deactivate timeout to go in disable loop procedure */ if(count == 0U) { tmp_timeout = 0U; } count--; } } return HAL_OK; } /** * @brief Handle the check of the RX transaction complete. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param Timeout Timeout duration * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) { if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) { /* Disable SPI peripheral */ __HAL_SPI_DISABLE(hspi); } /* Erratasheet: BSY bit may stay high at the end of a data transfer in Slave mode */ if (hspi->Init.Mode == SPI_MODE_MASTER) { if (hspi->Init.Direction != SPI_DIRECTION_2LINES_RXONLY) { /* Control the BSY flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); return HAL_TIMEOUT; } } else { /* Wait the RXNE reset */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, RESET, Timeout, Tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); return HAL_TIMEOUT; } } } else { /* Wait the RXNE reset */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, RESET, Timeout, Tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); return HAL_TIMEOUT; } } return HAL_OK; } /** * @brief Handle the check of the RXTX or TX transaction complete. * @param hspi SPI handle * @param Timeout Timeout duration * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) { /* Timeout in µs */ __IO uint32_t count = SPI_BSY_FLAG_WORKAROUND_TIMEOUT * (SystemCoreClock / 24U / 1000000U); /* Erratasheet: BSY bit may stay high at the end of a data transfer in Slave mode */ if (hspi->Init.Mode == SPI_MODE_MASTER) { /* Control the BSY flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); return HAL_TIMEOUT; } } else { /* Wait BSY flag during 1 Byte time transfer in case of Full-Duplex and Tx transfer * If Timeout is reached, the transfer is considered as finish. * User have to calculate the timeout value to fit with the time of 1 byte transfer. * This time is directly link with the SPI clock from Master device. */ do { if (count == 0U) { break; } count--; } while (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_BSY) != RESET); } return HAL_OK; } /** * @brief Handle the end of the RXTX transaction. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_CloseRxTx_ISR(SPI_HandleTypeDef *hspi) { uint32_t tickstart; __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); /* Disable ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); /* Wait until TXE flag is set */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); break; } count--; } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } #if (USE_SPI_CRC != 0U) /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) { hspi->State = HAL_SPI_STATE_READY; SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); __HAL_SPI_CLEAR_CRCERRFLAG(hspi); /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } else { #endif /* USE_SPI_CRC */ if (hspi->ErrorCode == HAL_SPI_ERROR_NONE) { if (hspi->State == HAL_SPI_STATE_BUSY_RX) { hspi->State = HAL_SPI_STATE_READY; /* Call user Rx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->RxCpltCallback(hspi); #else HAL_SPI_RxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } else { hspi->State = HAL_SPI_STATE_READY; /* Call user TxRx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxRxCpltCallback(hspi); #else HAL_SPI_TxRxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } } else { hspi->State = HAL_SPI_STATE_READY; /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } #if (USE_SPI_CRC != 0U) } #endif /* USE_SPI_CRC */ } /** * @brief Handle the end of the RX transaction. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_CloseRx_ISR(SPI_HandleTypeDef *hspi) { /* Disable RXNE and ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); /* Check the end of the transaction */ if (SPI_EndRxTransaction(hspi, SPI_DEFAULT_TIMEOUT, HAL_GetTick()) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } hspi->State = HAL_SPI_STATE_READY; #if (USE_SPI_CRC != 0U) /* Check if CRC error occurred */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); __HAL_SPI_CLEAR_CRCERRFLAG(hspi); /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } else { #endif /* USE_SPI_CRC */ if (hspi->ErrorCode == HAL_SPI_ERROR_NONE) { /* Call user Rx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->RxCpltCallback(hspi); #else HAL_SPI_RxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } else { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } #if (USE_SPI_CRC != 0U) } #endif /* USE_SPI_CRC */ } /** * @brief Handle the end of the TX transaction. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_CloseTx_ISR(SPI_HandleTypeDef *hspi) { uint32_t tickstart; __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); /* Wait until TXE flag is set */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); break; } count--; } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); /* Disable TXE and ERR interrupt */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_ERR)); /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) { __HAL_SPI_CLEAR_OVRFLAG(hspi); } hspi->State = HAL_SPI_STATE_READY; if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } else { /* Call user Rx complete callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->TxCpltCallback(hspi); #else HAL_SPI_TxCpltCallback(hspi); #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } } /** * @brief Handle abort a Rx transaction. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_AbortRx_ISR(SPI_HandleTypeDef *hspi) { __IO uint32_t tmpreg = 0U; __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); /* Wait until TXE flag is set */ do { if (count == 0U) { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); break; } count--; } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); /* Disable SPI Peripheral */ __HAL_SPI_DISABLE(hspi); /* Disable TXEIE, RXNEIE and ERRIE(mode fault event, overrun error, TI frame error) interrupts */ CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXEIE | SPI_CR2_RXNEIE | SPI_CR2_ERRIE)); /* Flush Data Register by a blank read */ tmpreg = READ_REG(hspi->Instance->DR); /* To avoid GCC warning */ UNUSED(tmpreg); hspi->State = HAL_SPI_STATE_ABORT; } /** * @brief Handle abort a Tx or Rx/Tx transaction. * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ static void SPI_AbortTx_ISR(SPI_HandleTypeDef *hspi) { /* Disable TXEIE interrupt */ CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXEIE)); /* Disable SPI Peripheral */ __HAL_SPI_DISABLE(hspi); hspi->State = HAL_SPI_STATE_ABORT; } /** * @} */ #endif /* HAL_SPI_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_tim.c * @author MCD Application Team * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer (TIM) peripheral: * + TIM Time Base Initialization * + TIM Time Base Start * + TIM Time Base Start Interruption * + TIM Time Base Start DMA * + TIM Output Compare/PWM Initialization * + TIM Output Compare/PWM Channel Configuration * + TIM Output Compare/PWM Start * + TIM Output Compare/PWM Start Interruption * + TIM Output Compare/PWM Start DMA * + TIM Input Capture Initialization * + TIM Input Capture Channel Configuration * + TIM Input Capture Start * + TIM Input Capture Start Interruption * + TIM Input Capture Start DMA * + TIM One Pulse Initialization * + TIM One Pulse Channel Configuration * + TIM One Pulse Start * + TIM Encoder Interface Initialization * + TIM Encoder Interface Start * + TIM Encoder Interface Start Interruption * + TIM Encoder Interface Start DMA * + Commutation Event configuration with Interruption and DMA * + TIM OCRef clear configuration * + TIM External Clock configuration @verbatim ============================================================================== ##### TIMER Generic features ##### ============================================================================== [..] The Timer features include: (#) 16-bit up, down, up/down auto-reload counter. (#) 16-bit programmable prescaler allowing dividing (also on the fly) the counter clock frequency either by any factor between 1 and 65536. (#) Up to 4 independent channels for: (++) Input Capture (++) Output Compare (++) PWM generation (Edge and Center-aligned Mode) (++) One-pulse mode output (#) Synchronization circuit to control the timer with external signals and to interconnect several timers together. (#) Supports incremental encoder for positioning purposes ##### How to use this driver ##### ============================================================================== [..] (#) Initialize the TIM low level resources by implementing the following functions depending on the selected feature: (++) Time Base : HAL_TIM_Base_MspInit() (++) Input Capture : HAL_TIM_IC_MspInit() (++) Output Compare : HAL_TIM_OC_MspInit() (++) PWM generation : HAL_TIM_PWM_MspInit() (++) One-pulse mode output : HAL_TIM_OnePulse_MspInit() (++) Encoder mode output : HAL_TIM_Encoder_MspInit() (#) Initialize the TIM low level resources : (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); (##) TIM pins configuration (+++) Enable the clock for the TIM GPIOs using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(); (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); (#) The external Clock can be configured, if needed (the default clock is the internal clock from the APBx), using the following function: HAL_TIM_ConfigClockSource, the clock configuration should be done before any start function. (#) Configure the TIM in the desired functioning mode using one of the Initialization function of this driver: (++) HAL_TIM_Base_Init: to use the Timer to generate a simple time base (++) HAL_TIM_OC_Init and HAL_TIM_OC_ConfigChannel: to use the Timer to generate an Output Compare signal. (++) HAL_TIM_PWM_Init and HAL_TIM_PWM_ConfigChannel: to use the Timer to generate a PWM signal. (++) HAL_TIM_IC_Init and HAL_TIM_IC_ConfigChannel: to use the Timer to measure an external signal. (++) HAL_TIM_OnePulse_Init and HAL_TIM_OnePulse_ConfigChannel: to use the Timer in One Pulse Mode. (++) HAL_TIM_Encoder_Init: to use the Timer Encoder Interface. (#) Activate the TIM peripheral using one of the start functions depending from the feature used: (++) Time Base : HAL_TIM_Base_Start(), HAL_TIM_Base_Start_DMA(), HAL_TIM_Base_Start_IT() (++) Input Capture : HAL_TIM_IC_Start(), HAL_TIM_IC_Start_DMA(), HAL_TIM_IC_Start_IT() (++) Output Compare : HAL_TIM_OC_Start(), HAL_TIM_OC_Start_DMA(), HAL_TIM_OC_Start_IT() (++) PWM generation : HAL_TIM_PWM_Start(), HAL_TIM_PWM_Start_DMA(), HAL_TIM_PWM_Start_IT() (++) One-pulse mode output : HAL_TIM_OnePulse_Start(), HAL_TIM_OnePulse_Start_IT() (++) Encoder mode output : HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_Encoder_Start_IT(). (#) The DMA Burst is managed with the two following functions: HAL_TIM_DMABurst_WriteStart() HAL_TIM_DMABurst_ReadStart() *** Callback registration *** ============================================= [..] The compilation define USE_HAL_TIM_REGISTER_CALLBACKS when set to 1 allows the user to configure dynamically the driver callbacks. [..] Use Function @ref HAL_TIM_RegisterCallback() to register a callback. @ref HAL_TIM_RegisterCallback() takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. [..] Use function @ref HAL_TIM_UnRegisterCallback() to reset a callback to the default weak function. @ref HAL_TIM_UnRegisterCallback takes as parameters the HAL peripheral handle, and the Callback ID. [..] These functions allow to register/unregister following callbacks: (+) Base_MspInitCallback : TIM Base Msp Init Callback. (+) Base_MspDeInitCallback : TIM Base Msp DeInit Callback. (+) IC_MspInitCallback : TIM IC Msp Init Callback. (+) IC_MspDeInitCallback : TIM IC Msp DeInit Callback. (+) OC_MspInitCallback : TIM OC Msp Init Callback. (+) OC_MspDeInitCallback : TIM OC Msp DeInit Callback. (+) PWM_MspInitCallback : TIM PWM Msp Init Callback. (+) PWM_MspDeInitCallback : TIM PWM Msp DeInit Callback. (+) OnePulse_MspInitCallback : TIM One Pulse Msp Init Callback. (+) OnePulse_MspDeInitCallback : TIM One Pulse Msp DeInit Callback. (+) Encoder_MspInitCallback : TIM Encoder Msp Init Callback. (+) Encoder_MspDeInitCallback : TIM Encoder Msp DeInit Callback. (+) HallSensor_MspInitCallback : TIM Hall Sensor Msp Init Callback. (+) HallSensor_MspDeInitCallback : TIM Hall Sensor Msp DeInit Callback. (+) PeriodElapsedCallback : TIM Period Elapsed Callback. (+) PeriodElapsedHalfCpltCallback : TIM Period Elapsed half complete Callback. (+) TriggerCallback : TIM Trigger Callback. (+) TriggerHalfCpltCallback : TIM Trigger half complete Callback. (+) IC_CaptureCallback : TIM Input Capture Callback. (+) IC_CaptureHalfCpltCallback : TIM Input Capture half complete Callback. (+) OC_DelayElapsedCallback : TIM Output Compare Delay Elapsed Callback. (+) PWM_PulseFinishedCallback : TIM PWM Pulse Finished Callback. (+) PWM_PulseFinishedHalfCpltCallback : TIM PWM Pulse Finished half complete Callback. (+) ErrorCallback : TIM Error Callback. (+) CommutationCallback : TIM Commutation Callback. (+) CommutationHalfCpltCallback : TIM Commutation half complete Callback. (+) BreakCallback : TIM Break Callback. [..] By default, after the Init and when the state is HAL_TIM_STATE_RESET all interrupt callbacks are set to the corresponding weak functions: examples @ref HAL_TIM_TriggerCallback(), @ref HAL_TIM_ErrorCallback(). [..] Exception done for MspInit and MspDeInit functions that are reset to the legacy weak functionalities in the Init / DeInit only when these callbacks are null (not registered beforehand). If not, MspInit or MspDeInit are not null, the Init / DeInit keep and use the user MspInit / MspDeInit callbacks(registered beforehand) [..] Callbacks can be registered / unregistered in HAL_TIM_STATE_READY state only. Exception done MspInit / MspDeInit that can be registered / unregistered in HAL_TIM_STATE_READY or HAL_TIM_STATE_RESET state, thus registered(user) MspInit / DeInit callbacks can be used during the Init / DeInit. In that case first register the MspInit/MspDeInit user callbacks using @ref HAL_TIM_RegisterCallback() before calling DeInit or Init function. [..] When The compilation define USE_HAL_TIM_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and all callbacks are set to the corresponding weak functions. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup TIM TIM * @brief TIM HAL module driver * @{ */ #ifdef HAL_TIM_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /** @addtogroup TIM_Private_Functions * @{ */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter); static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter); static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter); static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter); static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter); static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource); static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma); static void TIM_DMAPeriodElapsedHalfCplt(DMA_HandleTypeDef *hdma); static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma); static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma); static void TIM_DMATriggerHalfCplt(DMA_HandleTypeDef *hdma); static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @defgroup TIM_Exported_Functions TIM Exported Functions * @{ */ /** @defgroup TIM_Exported_Functions_Group1 TIM Time Base functions * @brief Time Base functions * @verbatim ============================================================================== ##### Time Base functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM base. (+) De-initialize the TIM base. (+) Start the Time Base. (+) Stop the Time Base. (+) Start the Time Base and enable interrupt. (+) Stop the Time Base and disable interrupt. (+) Start the Time Base and enable DMA transfer. (+) Stop the Time Base and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM Time base Unit according to the specified * parameters in the TIM_HandleTypeDef and initialize the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init() * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim) { /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->Base_MspInitCallback == NULL) { htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Base_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_TIM_Base_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM Base peripheral * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->Base_MspDeInitCallback == NULL) { htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; } /* DeInit the low level hardware */ htim->Base_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_TIM_Base_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Change the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Base MSP. * @param htim TIM Base handle * @retval None */ __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_Base_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM Base MSP. * @param htim TIM Base handle * @retval None */ __weak void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_Base_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM Base generation. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Check the TIM state */ if (htim->State != HAL_TIM_STATE_READY) { return HAL_ERROR; } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Base generation. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM state */ htim->State = HAL_TIM_STATE_READY; /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Check the TIM state */ if (htim->State != HAL_TIM_STATE_READY) { return HAL_ERROR; } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Enable the TIM Update interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Disable the TIM Update interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_UPDATE); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM state */ htim->State = HAL_TIM_STATE_READY; /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Base generation in DMA mode. * @param htim TIM Base handle * @param pData The source Buffer address. * @param Length The length of data to be transferred from memory to peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); /* Set the TIM state */ if (htim->State == HAL_TIM_STATE_BUSY) { return HAL_BUSY; } else if (htim->State == HAL_TIM_STATE_READY) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { htim->State = HAL_TIM_STATE_BUSY; } } else { return HAL_ERROR; } /* Set the DMA Period elapsed callbacks */ htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->ARR, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Update DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_UPDATE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Base generation in DMA mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); /* Disable the TIM Update DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_UPDATE); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM state */ htim->State = HAL_TIM_STATE_READY; /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group2 TIM Output Compare functions * @brief TIM Output Compare functions * @verbatim ============================================================================== ##### TIM Output Compare functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM Output Compare. (+) De-initialize the TIM Output Compare. (+) Start the TIM Output Compare. (+) Stop the TIM Output Compare. (+) Start the TIM Output Compare and enable interrupt. (+) Stop the TIM Output Compare and disable interrupt. (+) Start the TIM Output Compare and enable DMA transfer. (+) Stop the TIM Output Compare and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM Output Compare according to the specified * parameters in the TIM_HandleTypeDef and initializes the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_OC_DeInit() before HAL_TIM_OC_Init() * @param htim TIM Output Compare handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim) { /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->OC_MspInitCallback == NULL) { htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->OC_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_OC_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Init the base time for the Output Compare */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM peripheral * @param htim TIM Output Compare handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->OC_MspDeInitCallback == NULL) { htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; } /* DeInit the low level hardware */ htim->OC_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ HAL_TIM_OC_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Change the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Output Compare MSP. * @param htim TIM Output Compare handle * @retval None */ __weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM Output Compare MSP. * @param htim TIM Output Compare handle * @retval None */ __weak void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM Output Compare signal generation. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Disable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Output Compare signal generation in interrupt mode. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); switch (Channel) { case TIM_CHANNEL_1: { /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Enable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Enable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation in interrupt mode. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Disable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Output Compare signal generation in DMA mode. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param pData The source Buffer address. * @param Length The length of data to be transferred from memory to TIM peripheral * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Set the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) { return HAL_BUSY; } else if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); break; } case TIM_CHANNEL_2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } case TIM_CHANNEL_3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); break; } case TIM_CHANNEL_4: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 4 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); break; } default: break; } /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation in DMA mode. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); break; } default: break; } /* Disable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group3 TIM PWM functions * @brief TIM PWM functions * @verbatim ============================================================================== ##### TIM PWM functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM PWM. (+) De-initialize the TIM PWM. (+) Start the TIM PWM. (+) Stop the TIM PWM. (+) Start the TIM PWM and enable interrupt. (+) Stop the TIM PWM and disable interrupt. (+) Start the TIM PWM and enable DMA transfer. (+) Stop the TIM PWM and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM PWM Time Base according to the specified * parameters in the TIM_HandleTypeDef and initializes the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) { /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->PWM_MspInitCallback == NULL) { htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->PWM_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM peripheral * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->PWM_MspDeInitCallback == NULL) { htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; } /* DeInit the low level hardware */ htim->PWM_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Change the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspDeInit could be implemented in the user file */ } /** * @brief Starts the PWM signal generation. * @param htim TIM handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the PWM signal generation. * @param htim TIM PWM handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Disable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the PWM signal generation in interrupt mode. * @param htim TIM PWM handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); switch (Channel) { case TIM_CHANNEL_1: { /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Enable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Enable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the PWM signal generation in interrupt mode. * @param htim TIM PWM handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Disable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM PWM signal generation in DMA mode. * @param htim TIM PWM handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param pData The source Buffer address. * @param Length The length of data to be transferred from memory to TIM peripheral * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Set the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) { return HAL_BUSY; } else if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); break; } case TIM_CHANNEL_2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } case TIM_CHANNEL_3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Output Capture/Compare 3 request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); break; } case TIM_CHANNEL_4: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 4 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); break; } default: break; } /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM PWM signal generation in DMA mode. * @param htim TIM PWM handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); break; } default: break; } /* Disable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group4 TIM Input Capture functions * @brief TIM Input Capture functions * @verbatim ============================================================================== ##### TIM Input Capture functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM Input Capture. (+) De-initialize the TIM Input Capture. (+) Start the TIM Input Capture. (+) Stop the TIM Input Capture. (+) Start the TIM Input Capture and enable interrupt. (+) Stop the TIM Input Capture and disable interrupt. (+) Start the TIM Input Capture and enable DMA transfer. (+) Stop the TIM Input Capture and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM Input Capture Time base according to the specified * parameters in the TIM_HandleTypeDef and initializes the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init() * @param htim TIM Input Capture handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim) { /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->IC_MspInitCallback == NULL) { htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->IC_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_IC_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Init the base time for the input capture */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM peripheral * @param htim TIM Input Capture handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->IC_MspDeInitCallback == NULL) { htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; } /* DeInit the low level hardware */ htim->IC_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ HAL_TIM_IC_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Change the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Input Capture MSP. * @param htim TIM Input Capture handle * @retval None */ __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM Input Capture MSP. * @param htim TIM handle * @retval None */ __weak void HAL_TIM_IC_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM Input Capture measurement. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if ((channel_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Input Capture measurement. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Disable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Input Capture measurement in interrupt mode. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if ((channel_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); switch (Channel) { case TIM_CHANNEL_1: { /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Enable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Enable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Enable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Input Capture measurement in interrupt mode. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); break; } default: break; } /* Disable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Input Capture measurement in DMA mode. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @param pData The destination Buffer address. * @param Length The length of data to be transferred from TIM peripheral to memory. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); /* Set the TIM channel state */ if ((channel_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_state == HAL_TIM_CHANNEL_STATE_BUSY)) { return HAL_BUSY; } else if ((channel_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_state == HAL_TIM_CHANNEL_STATE_READY)) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); break; } case TIM_CHANNEL_2: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } case TIM_CHANNEL_3: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->CCR3, (uint32_t)pData, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); break; } case TIM_CHANNEL_4: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->CCR4, (uint32_t)pData, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 4 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); break; } default: break; } /* Enable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Input Capture measurement in DMA mode. * @param htim TIM Input Capture handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); /* Disable the Input Capture channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); break; } default: break; } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group5 TIM One Pulse functions * @brief TIM One Pulse functions * @verbatim ============================================================================== ##### TIM One Pulse functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM One Pulse. (+) De-initialize the TIM One Pulse. (+) Start the TIM One Pulse. (+) Stop the TIM One Pulse. (+) Start the TIM One Pulse and enable interrupt. (+) Stop the TIM One Pulse and disable interrupt. (+) Start the TIM One Pulse and enable DMA transfer. (+) Stop the TIM One Pulse and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM One Pulse Time Base according to the specified * parameters in the TIM_HandleTypeDef and initializes the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_OnePulse_DeInit() before HAL_TIM_OnePulse_Init() * @note When the timer instance is initialized in One Pulse mode, timer * channels 1 and channel 2 are reserved and cannot be used for other * purpose. * @param htim TIM One Pulse handle * @param OnePulseMode Select the One pulse mode. * This parameter can be one of the following values: * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated. * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses will be generated. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode) { /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_OPM_MODE(OnePulseMode)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->OnePulse_MspInitCallback == NULL) { htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->OnePulse_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_OnePulse_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Configure the Time base in the One Pulse Mode */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Reset the OPM Bit */ htim->Instance->CR1 &= ~TIM_CR1_OPM; /* Configure the OPM Mode */ htim->Instance->CR1 |= OnePulseMode; /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM One Pulse * @param htim TIM One Pulse handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->OnePulse_MspDeInitCallback == NULL) { htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; } /* DeInit the low level hardware */ htim->OnePulse_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_TIM_OnePulse_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM One Pulse MSP. * @param htim TIM One Pulse handle * @retval None */ __weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OnePulse_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM One Pulse MSP. * @param htim TIM One Pulse handle * @retval None */ __weak void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OnePulse_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM One Pulse signal generation. * @note Though OutputChannel parameter is deprecated and ignored by the function * it has been kept to avoid HAL_TIM API compatibility break. * @note The pulse output channel is determined when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel See note above * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Prevent unused argument(s) compilation warning */ UNUSED(OutputChannel); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Capture compare and the Input Capture channels (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together No need to enable the counter, it's enabled automatically by hardware (the counter starts in response to a stimulus and generate a pulse */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM One Pulse signal generation. * @note Though OutputChannel parameter is deprecated and ignored by the function * it has been kept to avoid HAL_TIM API compatibility break. * @note The pulse output channel is determined when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel See note above * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { /* Prevent unused argument(s) compilation warning */ UNUSED(OutputChannel); /* Disable the Capture compare and the Input Capture channels (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM One Pulse signal generation in interrupt mode. * @note Though OutputChannel parameter is deprecated and ignored by the function * it has been kept to avoid HAL_TIM API compatibility break. * @note The pulse output channel is determined when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel See note above * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Prevent unused argument(s) compilation warning */ UNUSED(OutputChannel); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Capture compare and the Input Capture channels (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together No need to enable the counter, it's enabled automatically by hardware (the counter starts in response to a stimulus and generate a pulse */ /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM One Pulse signal generation in interrupt mode. * @note Though OutputChannel parameter is deprecated and ignored by the function * it has been kept to avoid HAL_TIM API compatibility break. * @note The pulse output channel is determined when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel See note above * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { /* Prevent unused argument(s) compilation warning */ UNUSED(OutputChannel); /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); /* Disable the Capture compare and the Input Capture channels (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group6 TIM Encoder functions * @brief TIM Encoder functions * @verbatim ============================================================================== ##### TIM Encoder functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the TIM Encoder. (+) De-initialize the TIM Encoder. (+) Start the TIM Encoder. (+) Stop the TIM Encoder. (+) Start the TIM Encoder and enable interrupt. (+) Stop the TIM Encoder and disable interrupt. (+) Start the TIM Encoder and enable DMA transfer. (+) Stop the TIM Encoder and disable DMA transfer. @endverbatim * @{ */ /** * @brief Initializes the TIM Encoder Interface and initialize the associated handle. * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) * requires a timer reset to avoid unexpected direction * due to DIR bit readonly in center aligned mode. * Ex: call @ref HAL_TIM_Encoder_DeInit() before HAL_TIM_Encoder_Init() * @note Encoder mode and External clock mode 2 are not compatible and must not be selected together * Ex: A call for @ref HAL_TIM_Encoder_Init will erase the settings of @ref HAL_TIM_ConfigClockSource * using TIM_CLOCKSOURCE_ETRMODE2 and vice versa * @note When the timer instance is initialized in Encoder mode, timer * channels 1 and channel 2 are reserved and cannot be used for other * purpose. * @param htim TIM Encoder Interface handle * @param sConfig TIM Encoder Interface configuration structure * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig) { uint32_t tmpsmcr; uint32_t tmpccmr1; uint32_t tmpccer; /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); assert_param(IS_TIM_ENCODER_MODE(sConfig->EncoderMode)); assert_param(IS_TIM_IC_SELECTION(sConfig->IC1Selection)); assert_param(IS_TIM_IC_SELECTION(sConfig->IC2Selection)); assert_param(IS_TIM_ENCODERINPUT_POLARITY(sConfig->IC1Polarity)); assert_param(IS_TIM_ENCODERINPUT_POLARITY(sConfig->IC2Polarity)); assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); assert_param(IS_TIM_IC_PRESCALER(sConfig->IC2Prescaler)); assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); assert_param(IS_TIM_IC_FILTER(sConfig->IC2Filter)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy weak callbacks */ TIM_ResetCallback(htim); if (htim->Encoder_MspInitCallback == NULL) { htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Encoder_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_Encoder_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Reset the SMS and ECE bits */ htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE); /* Configure the Time base in the Encoder Mode */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; /* Get the TIMx CCMR1 register value */ tmpccmr1 = htim->Instance->CCMR1; /* Get the TIMx CCER register value */ tmpccer = htim->Instance->CCER; /* Set the encoder Mode */ tmpsmcr |= sConfig->EncoderMode; /* Select the Capture Compare 1 and the Capture Compare 2 as input */ tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); /* Set the Capture Compare 1 and the Capture Compare 2 prescalers and filters */ tmpccmr1 &= ~(TIM_CCMR1_IC1PSC | TIM_CCMR1_IC2PSC); tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); /* Set the TI1 and the TI2 Polarities */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; /* Write to TIMx CCMR1 */ htim->Instance->CCMR1 = tmpccmr1; /* Write to TIMx CCER */ htim->Instance->CCER = tmpccer; /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM Encoder interface * @param htim TIM Encoder Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->Encoder_MspDeInitCallback == NULL) { htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; } /* DeInit the low level hardware */ htim->Encoder_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_TIM_Encoder_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Encoder Interface MSP. * @param htim TIM Encoder Interface handle * @retval None */ __weak void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_Encoder_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM Encoder Interface MSP. * @param htim TIM Encoder Interface handle * @retval None */ __weak void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_Encoder_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM Encoder Interface. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Set the TIM channel(s) state */ if (Channel == TIM_CHANNEL_1) { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); } } else if (Channel == TIM_CHANNEL_2) { if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } else { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } /* Enable the encoder interface channels */ switch (Channel) { case TIM_CHANNEL_1: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); break; } case TIM_CHANNEL_2: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); break; } default : { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); break; } } /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Encoder Interface. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channels 1 and 2 (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ switch (Channel) { case TIM_CHANNEL_1: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); break; } case TIM_CHANNEL_2: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); break; } default : { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); break; } } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel(s) state */ if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Encoder Interface in interrupt mode. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Set the TIM channel(s) state */ if (Channel == TIM_CHANNEL_1) { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); } } else if (Channel == TIM_CHANNEL_2) { if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } else { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } /* Enable the encoder interface channels */ /* Enable the capture compare Interrupts 1 and/or 2 */ switch (Channel) { case TIM_CHANNEL_1: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } default : { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } } /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Encoder Interface in interrupt mode. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channels 1 and 2 (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ if (Channel == TIM_CHANNEL_1) { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); /* Disable the capture compare Interrupts 1 */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); } else if (Channel == TIM_CHANNEL_2) { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); /* Disable the capture compare Interrupts 2 */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); } else { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); /* Disable the capture compare Interrupts 1 and 2 */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel(s) state */ if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Encoder Interface in DMA mode. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @param pData1 The destination Buffer address for IC1. * @param pData2 The destination Buffer address for IC2. * @param Length The length of data to be transferred from TIM peripheral to memory. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData1, uint32_t *pData2, uint16_t Length) { HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Set the TIM channel(s) state */ if (Channel == TIM_CHANNEL_1) { if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY)) { return HAL_BUSY; } else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY)) { if ((pData1 == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } } else if (Channel == TIM_CHANNEL_2) { if ((channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY)) { return HAL_BUSY; } else if ((channel_2_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_READY)) { if ((pData2 == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } } else { if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) || (channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY)) { return HAL_BUSY; } else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) && (channel_2_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_READY)) { if ((((pData1 == NULL) || (pData2 == NULL))) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Input Capture DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); break; } case TIM_CHANNEL_2: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Input Capture DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); break; } case TIM_CHANNEL_ALL: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); /* Enable the TIM Input Capture DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); /* Enable the TIM Input Capture DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } default: break; } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Encoder Interface in DMA mode. * @param htim TIM Encoder Interface handle * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channels 1 and 2 (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ if (Channel == TIM_CHANNEL_1) { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); /* Disable the capture compare DMA Request 1 */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); } else if (Channel == TIM_CHANNEL_2) { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); /* Disable the capture compare DMA Request 2 */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); } else { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); /* Disable the capture compare DMA Request 1 and 2 */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel(s) state */ if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group7 TIM IRQ handler management * @brief TIM IRQ handler management * @verbatim ============================================================================== ##### IRQ handler management ##### ============================================================================== [..] This section provides Timer IRQ handler function. @endverbatim * @{ */ /** * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { /* Capture compare 1 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) { { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Output compare event */ else { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } } } /* Capture compare 2 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Output compare event */ else { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } } /* Capture compare 3 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Output compare event */ else { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } } /* Capture compare 4 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Output compare event */ else { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } } /* TIM Update event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) { __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } /** * @} */ /** @defgroup TIM_Exported_Functions_Group8 TIM Peripheral Control functions * @brief TIM Peripheral Control functions * @verbatim ============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Configure The Input Output channels for OC, PWM, IC or One Pulse mode. (+) Configure External Clock source. (+) Configure Complementary channels, break features and dead time. (+) Configure Master and the Slave synchronization. (+) Configure the DMA Burst Mode. @endverbatim * @{ */ /** * @brief Initializes the TIM Output Compare Channels according to the specified * parameters in the TIM_OC_InitTypeDef. * @param htim TIM Output Compare handle * @param sConfig TIM Output Compare configuration structure * @param Channel TIM Channels to configure * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CHANNELS(Channel)); assert_param(IS_TIM_OC_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); /* Process Locked */ __HAL_LOCK(htim); switch (Channel) { case TIM_CHANNEL_1: { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the TIM Channel 1 in Output Compare */ TIM_OC1_SetConfig(htim->Instance, sConfig); break; } case TIM_CHANNEL_2: { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the TIM Channel 2 in Output Compare */ TIM_OC2_SetConfig(htim->Instance, sConfig); break; } case TIM_CHANNEL_3: { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the TIM Channel 3 in Output Compare */ TIM_OC3_SetConfig(htim->Instance, sConfig); break; } case TIM_CHANNEL_4: { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the TIM Channel 4 in Output Compare */ TIM_OC4_SetConfig(htim->Instance, sConfig); break; } default: break; } __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Input Capture Channels according to the specified * parameters in the TIM_IC_InitTypeDef. * @param htim TIM IC handle * @param sConfig TIM Input Capture configuration structure * @param Channel TIM Channel to configure * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_IC_InitTypeDef *sConfig, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); assert_param(IS_TIM_IC_POLARITY(sConfig->ICPolarity)); assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection)); assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler)); assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter)); /* Process Locked */ __HAL_LOCK(htim); if (Channel == TIM_CHANNEL_1) { /* TI1 Configuration */ TIM_TI1_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC1PSC Bits */ htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; /* Set the IC1PSC value */ htim->Instance->CCMR1 |= sConfig->ICPrescaler; } else if (Channel == TIM_CHANNEL_2) { /* TI2 Configuration */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); TIM_TI2_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC2PSC Bits */ htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; /* Set the IC2PSC value */ htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U); } else if (Channel == TIM_CHANNEL_3) { /* TI3 Configuration */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); TIM_TI3_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC3PSC Bits */ htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC; /* Set the IC3PSC value */ htim->Instance->CCMR2 |= sConfig->ICPrescaler; } else { /* TI4 Configuration */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); TIM_TI4_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC4PSC Bits */ htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC; /* Set the IC4PSC value */ htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U); } __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM PWM channels according to the specified * parameters in the TIM_OC_InitTypeDef. * @param htim TIM PWM handle * @param sConfig TIM PWM configuration structure * @param Channel TIM Channels to be configured * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CHANNELS(Channel)); assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); switch (Channel) { case TIM_CHANNEL_1: { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; htim->Instance->CCMR1 |= sConfig->OCFastMode; break; } case TIM_CHANNEL_2: { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; break; } case TIM_CHANNEL_3: { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; htim->Instance->CCMR2 |= sConfig->OCFastMode; break; } case TIM_CHANNEL_4: { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; break; } default: break; } __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM One Pulse Channels according to the specified * parameters in the TIM_OnePulse_InitTypeDef. * @param htim TIM One Pulse handle * @param sConfig TIM One Pulse configuration structure * @param OutputChannel TIM output channel to configure * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @param InputChannel TIM input Channel to configure * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @note To output a waveform with a minimum delay user can enable the fast * mode by calling the @ref __HAL_TIM_ENABLE_OCxFAST macro. Then CCx * output is forced in response to the edge detection on TIx input, * without taking in account the comparison. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, uint32_t OutputChannel, uint32_t InputChannel) { TIM_OC_InitTypeDef temp1; /* Check the parameters */ assert_param(IS_TIM_OPM_CHANNELS(OutputChannel)); assert_param(IS_TIM_OPM_CHANNELS(InputChannel)); if (OutputChannel != InputChannel) { /* Process Locked */ __HAL_LOCK(htim); htim->State = HAL_TIM_STATE_BUSY; /* Extract the Output compare configuration from sConfig structure */ temp1.OCMode = sConfig->OCMode; temp1.Pulse = sConfig->Pulse; temp1.OCPolarity = sConfig->OCPolarity; temp1.OCNPolarity = sConfig->OCNPolarity; temp1.OCIdleState = sConfig->OCIdleState; temp1.OCNIdleState = sConfig->OCNIdleState; switch (OutputChannel) { case TIM_CHANNEL_1: { assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); TIM_OC1_SetConfig(htim->Instance, &temp1); break; } case TIM_CHANNEL_2: { assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); TIM_OC2_SetConfig(htim->Instance, &temp1); break; } default: break; } switch (InputChannel) { case TIM_CHANNEL_1: { assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); TIM_TI1_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC1PSC Bits */ htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; /* Select the Trigger source */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= TIM_TS_TI1FP1; /* Select the Slave Mode */ htim->Instance->SMCR &= ~TIM_SMCR_SMS; htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; break; } case TIM_CHANNEL_2: { assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); TIM_TI2_SetConfig(htim->Instance, sConfig->ICPolarity, sConfig->ICSelection, sConfig->ICFilter); /* Reset the IC2PSC Bits */ htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; /* Select the Trigger source */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= TIM_TS_TI2FP2; /* Select the Slave Mode */ htim->Instance->SMCR &= ~TIM_SMCR_SMS; htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; break; } default: break; } htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } else { return HAL_ERROR; } } /** * @brief Configure the DMA Burst to transfer Data from the memory to the TIM peripheral * @param htim TIM handle * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write * This parameter can be one of the following values: * @arg TIM_DMABASE_CR1 * @arg TIM_DMABASE_CR2 * @arg TIM_DMABASE_SMCR * @arg TIM_DMABASE_DIER * @arg TIM_DMABASE_SR * @arg TIM_DMABASE_EGR * @arg TIM_DMABASE_CCMR1 * @arg TIM_DMABASE_CCMR2 * @arg TIM_DMABASE_CCER * @arg TIM_DMABASE_CNT * @arg TIM_DMABASE_PSC * @arg TIM_DMABASE_ARR * @arg TIM_DMABASE_RCR * @arg TIM_DMABASE_CCR1 * @arg TIM_DMABASE_CCR2 * @arg TIM_DMABASE_CCR3 * @arg TIM_DMABASE_CCR4 * @arg TIM_DMABASE_BDTR * @param BurstRequestSrc TIM DMA Request sources * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: TIM update Interrupt source * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source * @arg TIM_DMA_COM: TIM Commutation DMA source * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source * @param BurstBuffer The Buffer address. * @param BurstLength DMA Burst length. This parameter can be one value * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. * @note This function should be used only when BurstLength is equal to DMA data transfer length. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) { return HAL_TIM_DMABurst_MultiWriteStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstLength, ((BurstLength) >> 8U) + 1U); } /** * @brief Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral * @param htim TIM handle * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write * This parameter can be one of the following values: * @arg TIM_DMABASE_CR1 * @arg TIM_DMABASE_CR2 * @arg TIM_DMABASE_SMCR * @arg TIM_DMABASE_DIER * @arg TIM_DMABASE_SR * @arg TIM_DMABASE_EGR * @arg TIM_DMABASE_CCMR1 * @arg TIM_DMABASE_CCMR2 * @arg TIM_DMABASE_CCER * @arg TIM_DMABASE_CNT * @arg TIM_DMABASE_PSC * @arg TIM_DMABASE_ARR * @arg TIM_DMABASE_RCR * @arg TIM_DMABASE_CCR1 * @arg TIM_DMABASE_CCR2 * @arg TIM_DMABASE_CCR3 * @arg TIM_DMABASE_CCR4 * @arg TIM_DMABASE_BDTR * @param BurstRequestSrc TIM DMA Request sources * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: TIM update Interrupt source * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source * @arg TIM_DMA_COM: TIM Commutation DMA source * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source * @param BurstBuffer The Buffer address. * @param BurstLength DMA Burst length. This parameter can be one value * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. * @param DataLength Data length. This parameter can be one value * between 1 and 0xFFFF. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) { /* Check the parameters */ assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); assert_param(IS_TIM_DMA_LENGTH(BurstLength)); assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); if (htim->DMABurstState == HAL_DMA_BURST_STATE_BUSY) { return HAL_BUSY; } else if (htim->DMABurstState == HAL_DMA_BURST_STATE_READY) { if ((BurstBuffer == NULL) && (BurstLength > 0U)) { return HAL_ERROR; } else { htim->DMABurstState = HAL_DMA_BURST_STATE_BUSY; } } else { /* nothing to do */ } switch (BurstRequestSrc) { case TIM_DMA_UPDATE: { /* Set the DMA Period elapsed callbacks */ htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC4: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_COM: { /* Set the DMA commutation callbacks */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_TRIGGER: { /* Set the DMA trigger callbacks */ htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; htim->hdma[TIM_DMA_ID_TRIGGER]->XferHalfCpltCallback = TIM_DMATriggerHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } default: break; } /* Configure the DMA Burst Mode */ htim->Instance->DCR = (BurstBaseAddress | BurstLength); /* Enable the TIM DMA Request */ __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM DMA Burst mode * @param htim TIM handle * @param BurstRequestSrc TIM DMA Request sources to disable * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) { /* Check the parameters */ assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); /* Abort the DMA transfer (at least disable the DMA stream) */ switch (BurstRequestSrc) { case TIM_DMA_UPDATE: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); break; } case TIM_DMA_CC1: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_DMA_CC2: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_DMA_CC3: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } case TIM_DMA_CC4: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); break; } case TIM_DMA_COM: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_COMMUTATION]); break; } case TIM_DMA_TRIGGER: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_TRIGGER]); break; } default: break; } /* Disable the TIM Update DMA request */ __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Return function status */ return HAL_OK; } /** * @brief Configure the DMA Burst to transfer Data from the TIM peripheral to the memory * @param htim TIM handle * @param BurstBaseAddress TIM Base address from where the DMA will start the Data read * This parameter can be one of the following values: * @arg TIM_DMABASE_CR1 * @arg TIM_DMABASE_CR2 * @arg TIM_DMABASE_SMCR * @arg TIM_DMABASE_DIER * @arg TIM_DMABASE_SR * @arg TIM_DMABASE_EGR * @arg TIM_DMABASE_CCMR1 * @arg TIM_DMABASE_CCMR2 * @arg TIM_DMABASE_CCER * @arg TIM_DMABASE_CNT * @arg TIM_DMABASE_PSC * @arg TIM_DMABASE_ARR * @arg TIM_DMABASE_RCR * @arg TIM_DMABASE_CCR1 * @arg TIM_DMABASE_CCR2 * @arg TIM_DMABASE_CCR3 * @arg TIM_DMABASE_CCR4 * @arg TIM_DMABASE_BDTR * @param BurstRequestSrc TIM DMA Request sources * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: TIM update Interrupt source * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source * @arg TIM_DMA_COM: TIM Commutation DMA source * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source * @param BurstBuffer The Buffer address. * @param BurstLength DMA Burst length. This parameter can be one value * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. * @note This function should be used only when BurstLength is equal to DMA data transfer length. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) { return HAL_TIM_DMABurst_MultiReadStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstLength, ((BurstLength) >> 8U) + 1U); } /** * @brief Configure the DMA Burst to transfer Data from the TIM peripheral to the memory * @param htim TIM handle * @param BurstBaseAddress TIM Base address from where the DMA will start the Data read * This parameter can be one of the following values: * @arg TIM_DMABASE_CR1 * @arg TIM_DMABASE_CR2 * @arg TIM_DMABASE_SMCR * @arg TIM_DMABASE_DIER * @arg TIM_DMABASE_SR * @arg TIM_DMABASE_EGR * @arg TIM_DMABASE_CCMR1 * @arg TIM_DMABASE_CCMR2 * @arg TIM_DMABASE_CCER * @arg TIM_DMABASE_CNT * @arg TIM_DMABASE_PSC * @arg TIM_DMABASE_ARR * @arg TIM_DMABASE_RCR * @arg TIM_DMABASE_CCR1 * @arg TIM_DMABASE_CCR2 * @arg TIM_DMABASE_CCR3 * @arg TIM_DMABASE_CCR4 * @arg TIM_DMABASE_BDTR * @param BurstRequestSrc TIM DMA Request sources * This parameter can be one of the following values: * @arg TIM_DMA_UPDATE: TIM update Interrupt source * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source * @arg TIM_DMA_COM: TIM Commutation DMA source * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source * @param BurstBuffer The Buffer address. * @param BurstLength DMA Burst length. This parameter can be one value * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. * @param DataLength Data length. This parameter can be one value * between 1 and 0xFFFF. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) { /* Check the parameters */ assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); assert_param(IS_TIM_DMA_LENGTH(BurstLength)); assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); if (htim->DMABurstState == HAL_DMA_BURST_STATE_BUSY) { return HAL_BUSY; } else if (htim->DMABurstState == HAL_DMA_BURST_STATE_READY) { if ((BurstBuffer == NULL) && (BurstLength > 0U)) { return HAL_ERROR; } else { htim->DMABurstState = HAL_DMA_BURST_STATE_BUSY; } } else { /* nothing to do */ } switch (BurstRequestSrc) { case TIM_DMA_UPDATE: { /* Set the DMA Period elapsed callbacks */ htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC1: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC2: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC3: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_CC4: { /* Set the DMA capture callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_COM: { /* Set the DMA commutation callbacks */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } case TIM_DMA_TRIGGER: { /* Set the DMA trigger callbacks */ htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; htim->hdma[TIM_DMA_ID_TRIGGER]->XferHalfCpltCallback = TIM_DMATriggerHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, DataLength) != HAL_OK) { /* Return error status */ return HAL_ERROR; } break; } default: break; } /* Configure the DMA Burst Mode */ htim->Instance->DCR = (BurstBaseAddress | BurstLength); /* Enable the TIM DMA Request */ __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); /* Return function status */ return HAL_OK; } /** * @brief Stop the DMA burst reading * @param htim TIM handle * @param BurstRequestSrc TIM DMA Request sources to disable. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) { /* Check the parameters */ assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); /* Abort the DMA transfer (at least disable the DMA stream) */ switch (BurstRequestSrc) { case TIM_DMA_UPDATE: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); break; } case TIM_DMA_CC1: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_DMA_CC2: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_DMA_CC3: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } case TIM_DMA_CC4: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); break; } case TIM_DMA_COM: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_COMMUTATION]); break; } case TIM_DMA_TRIGGER: { (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_TRIGGER]); break; } default: break; } /* Disable the TIM Update DMA request */ __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Return function status */ return HAL_OK; } /** * @brief Generate a software event * @param htim TIM handle * @param EventSource specifies the event source. * This parameter can be one of the following values: * @arg TIM_EVENTSOURCE_UPDATE: Timer update Event source * @arg TIM_EVENTSOURCE_CC1: Timer Capture Compare 1 Event source * @arg TIM_EVENTSOURCE_CC2: Timer Capture Compare 2 Event source * @arg TIM_EVENTSOURCE_CC3: Timer Capture Compare 3 Event source * @arg TIM_EVENTSOURCE_CC4: Timer Capture Compare 4 Event source * @arg TIM_EVENTSOURCE_COM: Timer COM event source * @arg TIM_EVENTSOURCE_TRIGGER: Timer Trigger Event source * @arg TIM_EVENTSOURCE_BREAK: Timer Break event source * @note Basic timers can only generate an update event. * @note TIM_EVENTSOURCE_COM is relevant only with advanced timer instances. * @note TIM_EVENTSOURCE_BREAK are relevant only for timer instances * supporting a break input. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_GenerateEvent(TIM_HandleTypeDef *htim, uint32_t EventSource) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_EVENT_SOURCE(EventSource)); /* Process Locked */ __HAL_LOCK(htim); /* Change the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Set the event sources */ htim->Instance->EGR = EventSource; /* Change the TIM state */ htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); /* Return function status */ return HAL_OK; } /** * @brief Configures the OCRef clear feature * @param htim TIM handle * @param sClearInputConfig pointer to a TIM_ClearInputConfigTypeDef structure that * contains the OCREF clear feature and parameters for the TIM peripheral. * @param Channel specifies the TIM Channel * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 * @arg TIM_CHANNEL_2: TIM Channel 2 * @arg TIM_CHANNEL_3: TIM Channel 3 * @arg TIM_CHANNEL_4: TIM Channel 4 * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, TIM_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_OCXREF_CLEAR_INSTANCE(htim->Instance)); assert_param(IS_TIM_CLEARINPUT_SOURCE(sClearInputConfig->ClearInputSource)); /* Process Locked */ __HAL_LOCK(htim); htim->State = HAL_TIM_STATE_BUSY; switch (sClearInputConfig->ClearInputSource) { case TIM_CLEARINPUTSOURCE_NONE: { /* Clear the OCREF clear selection bit and the the ETR Bits */ CLEAR_BIT(htim->Instance->SMCR, (TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP)); break; } case TIM_CLEARINPUTSOURCE_ETR: { /* Check the parameters */ assert_param(IS_TIM_CLEARINPUT_POLARITY(sClearInputConfig->ClearInputPolarity)); assert_param(IS_TIM_CLEARINPUT_PRESCALER(sClearInputConfig->ClearInputPrescaler)); assert_param(IS_TIM_CLEARINPUT_FILTER(sClearInputConfig->ClearInputFilter)); /* When OCRef clear feature is used with ETR source, ETR prescaler must be off */ if (sClearInputConfig->ClearInputPrescaler != TIM_CLEARINPUTPRESCALER_DIV1) { htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_ERROR; } TIM_ETR_SetConfig(htim->Instance, sClearInputConfig->ClearInputPrescaler, sClearInputConfig->ClearInputPolarity, sClearInputConfig->ClearInputFilter); break; } default: break; } switch (Channel) { case TIM_CHANNEL_1: { if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) { /* Enable the OCREF clear feature for Channel 1 */ SET_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC1CE); } else { /* Disable the OCREF clear feature for Channel 1 */ CLEAR_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC1CE); } break; } case TIM_CHANNEL_2: { if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) { /* Enable the OCREF clear feature for Channel 2 */ SET_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC2CE); } else { /* Disable the OCREF clear feature for Channel 2 */ CLEAR_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC2CE); } break; } case TIM_CHANNEL_3: { if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) { /* Enable the OCREF clear feature for Channel 3 */ SET_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC3CE); } else { /* Disable the OCREF clear feature for Channel 3 */ CLEAR_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC3CE); } break; } case TIM_CHANNEL_4: { if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) { /* Enable the OCREF clear feature for Channel 4 */ SET_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC4CE); } else { /* Disable the OCREF clear feature for Channel 4 */ CLEAR_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC4CE); } break; } default: break; } htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configures the clock source to be used * @param htim TIM handle * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that * contains the clock source information for the TIM peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig) { uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); htim->State = HAL_TIM_STATE_BUSY; /* Check the parameters */ assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ tmpsmcr = htim->Instance->SMCR; tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); htim->Instance->SMCR = tmpsmcr; switch (sClockSourceConfig->ClockSource) { case TIM_CLOCKSOURCE_INTERNAL: { assert_param(IS_TIM_INSTANCE(htim->Instance)); break; } case TIM_CLOCKSOURCE_ETRMODE1: { /* Check whether or not the timer instance supports external trigger input mode 1 (ETRF)*/ assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); /* Check ETR input conditioning related parameters */ assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, sClockSourceConfig->ClockPrescaler, sClockSourceConfig->ClockPolarity, sClockSourceConfig->ClockFilter); /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; break; } case TIM_CLOCKSOURCE_ETRMODE2: { /* Check whether or not the timer instance supports external trigger input mode 2 (ETRF)*/ assert_param(IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(htim->Instance)); /* Check ETR input conditioning related parameters */ assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, sClockSourceConfig->ClockPrescaler, sClockSourceConfig->ClockPolarity, sClockSourceConfig->ClockFilter); /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; break; } case TIM_CLOCKSOURCE_TI1: { /* Check whether or not the timer instance supports external clock mode 1 */ assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, sClockSourceConfig->ClockPolarity, sClockSourceConfig->ClockFilter); TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); break; } case TIM_CLOCKSOURCE_TI2: { /* Check whether or not the timer instance supports external clock mode 1 (ETRF)*/ assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); /* Check TI2 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI2_ConfigInputStage(htim->Instance, sClockSourceConfig->ClockPolarity, sClockSourceConfig->ClockFilter); TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); break; } case TIM_CLOCKSOURCE_TI1ED: { /* Check whether or not the timer instance supports external clock mode 1 */ assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, sClockSourceConfig->ClockPolarity, sClockSourceConfig->ClockFilter); TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); break; } case TIM_CLOCKSOURCE_ITR0: case TIM_CLOCKSOURCE_ITR1: case TIM_CLOCKSOURCE_ITR2: case TIM_CLOCKSOURCE_ITR3: { /* Check whether or not the timer instance supports internal trigger input */ assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); break; } default: break; } htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Selects the signal connected to the TI1 input: direct from CH1_input * or a XOR combination between CH1_input, CH2_input & CH3_input * @param htim TIM handle. * @param TI1_Selection Indicate whether or not channel 1 is connected to the * output of a XOR gate. * This parameter can be one of the following values: * @arg TIM_TI1SELECTION_CH1: The TIMx_CH1 pin is connected to TI1 input * @arg TIM_TI1SELECTION_XORCOMBINATION: The TIMx_CH1, CH2 and CH3 * pins are connected to the TI1 input (XOR combination) * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigTI1Input(TIM_HandleTypeDef *htim, uint32_t TI1_Selection) { uint32_t tmpcr2; /* Check the parameters */ assert_param(IS_TIM_XOR_INSTANCE(htim->Instance)); assert_param(IS_TIM_TI1SELECTION(TI1_Selection)); /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; /* Reset the TI1 selection */ tmpcr2 &= ~TIM_CR2_TI1S; /* Set the TI1 selection */ tmpcr2 |= TI1_Selection; /* Write to TIMxCR2 */ htim->Instance->CR2 = tmpcr2; return HAL_OK; } /** * @brief Configures the TIM in Slave mode * @param htim TIM handle. * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that * contains the selected trigger (internal trigger input, filtered * timer input or external trigger input) and the Slave mode * (Disable, Reset, Gated, Trigger, External clock mode 1). * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) { /* Check the parameters */ assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance)); assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode)); assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger)); __HAL_LOCK(htim); htim->State = HAL_TIM_STATE_BUSY; if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK) { htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_ERROR; } /* Disable Trigger Interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER); /* Disable Trigger DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configures the TIM in Slave mode in interrupt mode * @param htim TIM handle. * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that * contains the selected trigger (internal trigger input, filtered * timer input or external trigger input) and the Slave mode * (Disable, Reset, Gated, Trigger, External clock mode 1). * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro_IT(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) { /* Check the parameters */ assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance)); assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode)); assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger)); __HAL_LOCK(htim); htim->State = HAL_TIM_STATE_BUSY; if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK) { htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_ERROR; } /* Enable Trigger Interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_TRIGGER); /* Disable Trigger DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Read the captured value from Capture Compare unit * @param htim TIM handle. * @param Channel TIM Channels to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval Captured value */ uint32_t HAL_TIM_ReadCapturedValue(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpreg = 0U; switch (Channel) { case TIM_CHANNEL_1: { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Return the capture 1 value */ tmpreg = htim->Instance->CCR1; break; } case TIM_CHANNEL_2: { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Return the capture 2 value */ tmpreg = htim->Instance->CCR2; break; } case TIM_CHANNEL_3: { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Return the capture 3 value */ tmpreg = htim->Instance->CCR3; break; } case TIM_CHANNEL_4: { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Return the capture 4 value */ tmpreg = htim->Instance->CCR4; break; } default: break; } return tmpreg; } /** * @} */ /** @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions * @brief TIM Callbacks functions * @verbatim ============================================================================== ##### TIM Callbacks functions ##### ============================================================================== [..] This section provides TIM callback functions: (+) TIM Period elapsed callback (+) TIM Output Compare callback (+) TIM Input capture callback (+) TIM Trigger callback (+) TIM Error callback @endverbatim * @{ */ /** * @brief Period elapsed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PeriodElapsedCallback could be implemented in the user file */ } /** * @brief Period elapsed half complete callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedHalfCpltCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PeriodElapsedHalfCpltCallback could be implemented in the user file */ } /** * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file */ } /** * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_CaptureCallback could be implemented in the user file */ } /** * @brief Input Capture half complete callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureHalfCpltCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_CaptureHalfCpltCallback could be implemented in the user file */ } /** * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file */ } /** * @brief PWM Pulse finished half complete callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedHalfCpltCallback could be implemented in the user file */ } /** * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_TriggerCallback could be implemented in the user file */ } /** * @brief Hall Trigger detection half complete callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerHalfCpltCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_TriggerHalfCpltCallback could be implemented in the user file */ } /** * @brief Timer error callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_ErrorCallback could be implemented in the user file */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /** * @brief Register a User TIM callback to be used instead of the weak predefined callback * @param htim tim handle * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_TIM_BASE_MSPINIT_CB_ID Base MspInit Callback ID * @arg @ref HAL_TIM_BASE_MSPDEINIT_CB_ID Base MspDeInit Callback ID * @arg @ref HAL_TIM_IC_MSPINIT_CB_ID IC MspInit Callback ID * @arg @ref HAL_TIM_IC_MSPDEINIT_CB_ID IC MspDeInit Callback ID * @arg @ref HAL_TIM_OC_MSPINIT_CB_ID OC MspInit Callback ID * @arg @ref HAL_TIM_OC_MSPDEINIT_CB_ID OC MspDeInit Callback ID * @arg @ref HAL_TIM_PWM_MSPINIT_CB_ID PWM MspInit Callback ID * @arg @ref HAL_TIM_PWM_MSPDEINIT_CB_ID PWM MspDeInit Callback ID * @arg @ref HAL_TIM_ONE_PULSE_MSPINIT_CB_ID One Pulse MspInit Callback ID * @arg @ref HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID One Pulse MspDeInit Callback ID * @arg @ref HAL_TIM_ENCODER_MSPINIT_CB_ID Encoder MspInit Callback ID * @arg @ref HAL_TIM_ENCODER_MSPDEINIT_CB_ID Encoder MspDeInit Callback ID * @arg @ref HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID Hall Sensor MspInit Callback ID * @arg @ref HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID Hall Sensor MspDeInit Callback ID * @arg @ref HAL_TIM_PERIOD_ELAPSED_CB_ID Period Elapsed Callback ID * @arg @ref HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID Period Elapsed half complete Callback ID * @arg @ref HAL_TIM_TRIGGER_CB_ID Trigger Callback ID * @arg @ref HAL_TIM_TRIGGER_HALF_CB_ID Trigger half complete Callback ID * @arg @ref HAL_TIM_IC_CAPTURE_CB_ID Input Capture Callback ID * @arg @ref HAL_TIM_IC_CAPTURE_HALF_CB_ID Input Capture half complete Callback ID * @arg @ref HAL_TIM_OC_DELAY_ELAPSED_CB_ID Output Compare Delay Elapsed Callback ID * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_CB_ID PWM Pulse Finished Callback ID * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID PWM Pulse Finished half complete Callback ID * @arg @ref HAL_TIM_ERROR_CB_ID Error Callback ID * @arg @ref HAL_TIM_COMMUTATION_CB_ID Commutation Callback ID * @arg @ref HAL_TIM_COMMUTATION_HALF_CB_ID Commutation half complete Callback ID * @arg @ref HAL_TIM_BREAK_CB_ID Break Callback ID * @param pCallback pointer to the callback function * @retval status */ HAL_StatusTypeDef HAL_TIM_RegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, pTIM_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { return HAL_ERROR; } /* Process locked */ __HAL_LOCK(htim); if (htim->State == HAL_TIM_STATE_READY) { switch (CallbackID) { case HAL_TIM_BASE_MSPINIT_CB_ID : htim->Base_MspInitCallback = pCallback; break; case HAL_TIM_BASE_MSPDEINIT_CB_ID : htim->Base_MspDeInitCallback = pCallback; break; case HAL_TIM_IC_MSPINIT_CB_ID : htim->IC_MspInitCallback = pCallback; break; case HAL_TIM_IC_MSPDEINIT_CB_ID : htim->IC_MspDeInitCallback = pCallback; break; case HAL_TIM_OC_MSPINIT_CB_ID : htim->OC_MspInitCallback = pCallback; break; case HAL_TIM_OC_MSPDEINIT_CB_ID : htim->OC_MspDeInitCallback = pCallback; break; case HAL_TIM_PWM_MSPINIT_CB_ID : htim->PWM_MspInitCallback = pCallback; break; case HAL_TIM_PWM_MSPDEINIT_CB_ID : htim->PWM_MspDeInitCallback = pCallback; break; case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : htim->OnePulse_MspInitCallback = pCallback; break; case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : htim->OnePulse_MspDeInitCallback = pCallback; break; case HAL_TIM_ENCODER_MSPINIT_CB_ID : htim->Encoder_MspInitCallback = pCallback; break; case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : htim->Encoder_MspDeInitCallback = pCallback; break; case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : htim->HallSensor_MspInitCallback = pCallback; break; case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : htim->HallSensor_MspDeInitCallback = pCallback; break; case HAL_TIM_PERIOD_ELAPSED_CB_ID : htim->PeriodElapsedCallback = pCallback; break; case HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID : htim->PeriodElapsedHalfCpltCallback = pCallback; break; case HAL_TIM_TRIGGER_CB_ID : htim->TriggerCallback = pCallback; break; case HAL_TIM_TRIGGER_HALF_CB_ID : htim->TriggerHalfCpltCallback = pCallback; break; case HAL_TIM_IC_CAPTURE_CB_ID : htim->IC_CaptureCallback = pCallback; break; case HAL_TIM_IC_CAPTURE_HALF_CB_ID : htim->IC_CaptureHalfCpltCallback = pCallback; break; case HAL_TIM_OC_DELAY_ELAPSED_CB_ID : htim->OC_DelayElapsedCallback = pCallback; break; case HAL_TIM_PWM_PULSE_FINISHED_CB_ID : htim->PWM_PulseFinishedCallback = pCallback; break; case HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID : htim->PWM_PulseFinishedHalfCpltCallback = pCallback; break; case HAL_TIM_ERROR_CB_ID : htim->ErrorCallback = pCallback; break; case HAL_TIM_COMMUTATION_CB_ID : htim->CommutationCallback = pCallback; break; case HAL_TIM_COMMUTATION_HALF_CB_ID : htim->CommutationHalfCpltCallback = pCallback; break; case HAL_TIM_BREAK_CB_ID : htim->BreakCallback = pCallback; break; default : /* Return error status */ status = HAL_ERROR; break; } } else if (htim->State == HAL_TIM_STATE_RESET) { switch (CallbackID) { case HAL_TIM_BASE_MSPINIT_CB_ID : htim->Base_MspInitCallback = pCallback; break; case HAL_TIM_BASE_MSPDEINIT_CB_ID : htim->Base_MspDeInitCallback = pCallback; break; case HAL_TIM_IC_MSPINIT_CB_ID : htim->IC_MspInitCallback = pCallback; break; case HAL_TIM_IC_MSPDEINIT_CB_ID : htim->IC_MspDeInitCallback = pCallback; break; case HAL_TIM_OC_MSPINIT_CB_ID : htim->OC_MspInitCallback = pCallback; break; case HAL_TIM_OC_MSPDEINIT_CB_ID : htim->OC_MspDeInitCallback = pCallback; break; case HAL_TIM_PWM_MSPINIT_CB_ID : htim->PWM_MspInitCallback = pCallback; break; case HAL_TIM_PWM_MSPDEINIT_CB_ID : htim->PWM_MspDeInitCallback = pCallback; break; case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : htim->OnePulse_MspInitCallback = pCallback; break; case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : htim->OnePulse_MspDeInitCallback = pCallback; break; case HAL_TIM_ENCODER_MSPINIT_CB_ID : htim->Encoder_MspInitCallback = pCallback; break; case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : htim->Encoder_MspDeInitCallback = pCallback; break; case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : htim->HallSensor_MspInitCallback = pCallback; break; case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : htim->HallSensor_MspDeInitCallback = pCallback; break; default : /* Return error status */ status = HAL_ERROR; break; } } else { /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(htim); return status; } /** * @brief Unregister a TIM callback * TIM callback is redirected to the weak predefined callback * @param htim tim handle * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * @arg @ref HAL_TIM_BASE_MSPINIT_CB_ID Base MspInit Callback ID * @arg @ref HAL_TIM_BASE_MSPDEINIT_CB_ID Base MspDeInit Callback ID * @arg @ref HAL_TIM_IC_MSPINIT_CB_ID IC MspInit Callback ID * @arg @ref HAL_TIM_IC_MSPDEINIT_CB_ID IC MspDeInit Callback ID * @arg @ref HAL_TIM_OC_MSPINIT_CB_ID OC MspInit Callback ID * @arg @ref HAL_TIM_OC_MSPDEINIT_CB_ID OC MspDeInit Callback ID * @arg @ref HAL_TIM_PWM_MSPINIT_CB_ID PWM MspInit Callback ID * @arg @ref HAL_TIM_PWM_MSPDEINIT_CB_ID PWM MspDeInit Callback ID * @arg @ref HAL_TIM_ONE_PULSE_MSPINIT_CB_ID One Pulse MspInit Callback ID * @arg @ref HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID One Pulse MspDeInit Callback ID * @arg @ref HAL_TIM_ENCODER_MSPINIT_CB_ID Encoder MspInit Callback ID * @arg @ref HAL_TIM_ENCODER_MSPDEINIT_CB_ID Encoder MspDeInit Callback ID * @arg @ref HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID Hall Sensor MspInit Callback ID * @arg @ref HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID Hall Sensor MspDeInit Callback ID * @arg @ref HAL_TIM_PERIOD_ELAPSED_CB_ID Period Elapsed Callback ID * @arg @ref HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID Period Elapsed half complete Callback ID * @arg @ref HAL_TIM_TRIGGER_CB_ID Trigger Callback ID * @arg @ref HAL_TIM_TRIGGER_HALF_CB_ID Trigger half complete Callback ID * @arg @ref HAL_TIM_IC_CAPTURE_CB_ID Input Capture Callback ID * @arg @ref HAL_TIM_IC_CAPTURE_HALF_CB_ID Input Capture half complete Callback ID * @arg @ref HAL_TIM_OC_DELAY_ELAPSED_CB_ID Output Compare Delay Elapsed Callback ID * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_CB_ID PWM Pulse Finished Callback ID * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID PWM Pulse Finished half complete Callback ID * @arg @ref HAL_TIM_ERROR_CB_ID Error Callback ID * @arg @ref HAL_TIM_COMMUTATION_CB_ID Commutation Callback ID * @arg @ref HAL_TIM_COMMUTATION_HALF_CB_ID Commutation half complete Callback ID * @arg @ref HAL_TIM_BREAK_CB_ID Break Callback ID * @retval status */ HAL_StatusTypeDef HAL_TIM_UnRegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(htim); if (htim->State == HAL_TIM_STATE_READY) { switch (CallbackID) { case HAL_TIM_BASE_MSPINIT_CB_ID : htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; /* Legacy weak Base MspInit Callback */ break; case HAL_TIM_BASE_MSPDEINIT_CB_ID : htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; /* Legacy weak Base Msp DeInit Callback */ break; case HAL_TIM_IC_MSPINIT_CB_ID : htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; /* Legacy weak IC Msp Init Callback */ break; case HAL_TIM_IC_MSPDEINIT_CB_ID : htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; /* Legacy weak IC Msp DeInit Callback */ break; case HAL_TIM_OC_MSPINIT_CB_ID : htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; /* Legacy weak OC Msp Init Callback */ break; case HAL_TIM_OC_MSPDEINIT_CB_ID : htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; /* Legacy weak OC Msp DeInit Callback */ break; case HAL_TIM_PWM_MSPINIT_CB_ID : htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; /* Legacy weak PWM Msp Init Callback */ break; case HAL_TIM_PWM_MSPDEINIT_CB_ID : htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; /* Legacy weak PWM Msp DeInit Callback */ break; case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; /* Legacy weak One Pulse Msp Init Callback */ break; case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; /* Legacy weak One Pulse Msp DeInit Callback */ break; case HAL_TIM_ENCODER_MSPINIT_CB_ID : htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; /* Legacy weak Encoder Msp Init Callback */ break; case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; /* Legacy weak Encoder Msp DeInit Callback */ break; case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; /* Legacy weak Hall Sensor Msp Init Callback */ break; case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; /* Legacy weak Hall Sensor Msp DeInit Callback */ break; case HAL_TIM_PERIOD_ELAPSED_CB_ID : htim->PeriodElapsedCallback = HAL_TIM_PeriodElapsedCallback; /* Legacy weak Period Elapsed Callback */ break; case HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID : htim->PeriodElapsedHalfCpltCallback = HAL_TIM_PeriodElapsedHalfCpltCallback; /* Legacy weak Period Elapsed half complete Callback */ break; case HAL_TIM_TRIGGER_CB_ID : htim->TriggerCallback = HAL_TIM_TriggerCallback; /* Legacy weak Trigger Callback */ break; case HAL_TIM_TRIGGER_HALF_CB_ID : htim->TriggerHalfCpltCallback = HAL_TIM_TriggerHalfCpltCallback; /* Legacy weak Trigger half complete Callback */ break; case HAL_TIM_IC_CAPTURE_CB_ID : htim->IC_CaptureCallback = HAL_TIM_IC_CaptureCallback; /* Legacy weak IC Capture Callback */ break; case HAL_TIM_IC_CAPTURE_HALF_CB_ID : htim->IC_CaptureHalfCpltCallback = HAL_TIM_IC_CaptureHalfCpltCallback; /* Legacy weak IC Capture half complete Callback */ break; case HAL_TIM_OC_DELAY_ELAPSED_CB_ID : htim->OC_DelayElapsedCallback = HAL_TIM_OC_DelayElapsedCallback; /* Legacy weak OC Delay Elapsed Callback */ break; case HAL_TIM_PWM_PULSE_FINISHED_CB_ID : htim->PWM_PulseFinishedCallback = HAL_TIM_PWM_PulseFinishedCallback; /* Legacy weak PWM Pulse Finished Callback */ break; case HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID : htim->PWM_PulseFinishedHalfCpltCallback = HAL_TIM_PWM_PulseFinishedHalfCpltCallback; /* Legacy weak PWM Pulse Finished half complete Callback */ break; case HAL_TIM_ERROR_CB_ID : htim->ErrorCallback = HAL_TIM_ErrorCallback; /* Legacy weak Error Callback */ break; case HAL_TIM_COMMUTATION_CB_ID : htim->CommutationCallback = HAL_TIMEx_CommutCallback; /* Legacy weak Commutation Callback */ break; case HAL_TIM_COMMUTATION_HALF_CB_ID : htim->CommutationHalfCpltCallback = HAL_TIMEx_CommutHalfCpltCallback; /* Legacy weak Commutation half complete Callback */ break; case HAL_TIM_BREAK_CB_ID : htim->BreakCallback = HAL_TIMEx_BreakCallback; /* Legacy weak Break Callback */ break; default : /* Return error status */ status = HAL_ERROR; break; } } else if (htim->State == HAL_TIM_STATE_RESET) { switch (CallbackID) { case HAL_TIM_BASE_MSPINIT_CB_ID : htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; /* Legacy weak Base MspInit Callback */ break; case HAL_TIM_BASE_MSPDEINIT_CB_ID : htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; /* Legacy weak Base Msp DeInit Callback */ break; case HAL_TIM_IC_MSPINIT_CB_ID : htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; /* Legacy weak IC Msp Init Callback */ break; case HAL_TIM_IC_MSPDEINIT_CB_ID : htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; /* Legacy weak IC Msp DeInit Callback */ break; case HAL_TIM_OC_MSPINIT_CB_ID : htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; /* Legacy weak OC Msp Init Callback */ break; case HAL_TIM_OC_MSPDEINIT_CB_ID : htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; /* Legacy weak OC Msp DeInit Callback */ break; case HAL_TIM_PWM_MSPINIT_CB_ID : htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; /* Legacy weak PWM Msp Init Callback */ break; case HAL_TIM_PWM_MSPDEINIT_CB_ID : htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; /* Legacy weak PWM Msp DeInit Callback */ break; case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; /* Legacy weak One Pulse Msp Init Callback */ break; case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; /* Legacy weak One Pulse Msp DeInit Callback */ break; case HAL_TIM_ENCODER_MSPINIT_CB_ID : htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; /* Legacy weak Encoder Msp Init Callback */ break; case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; /* Legacy weak Encoder Msp DeInit Callback */ break; case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; /* Legacy weak Hall Sensor Msp Init Callback */ break; case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; /* Legacy weak Hall Sensor Msp DeInit Callback */ break; default : /* Return error status */ status = HAL_ERROR; break; } } else { /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(htim); return status; } #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup TIM_Exported_Functions_Group10 TIM Peripheral State functions * @brief TIM Peripheral State functions * @verbatim ============================================================================== ##### Peripheral State functions ##### ============================================================================== [..] This subsection permits to get in run-time the status of the peripheral and the data flow. @endverbatim * @{ */ /** * @brief Return the TIM Base handle state. * @param htim TIM Base handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_Base_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM OC handle state. * @param htim TIM Output Compare handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_OC_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM PWM handle state. * @param htim TIM handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_PWM_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM Input Capture handle state. * @param htim TIM IC handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_IC_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM One Pulse Mode handle state. * @param htim TIM OPM handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_OnePulse_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM Encoder Mode handle state. * @param htim TIM Encoder Interface handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIM_Encoder_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return the TIM Encoder Mode handle state. * @param htim TIM handle * @retval Active channel */ HAL_TIM_ActiveChannel HAL_TIM_GetActiveChannel(TIM_HandleTypeDef *htim) { return htim->Channel; } /** * @brief Return actual state of the TIM channel. * @param htim TIM handle * @param Channel TIM Channel * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 * @arg TIM_CHANNEL_2: TIM Channel 2 * @arg TIM_CHANNEL_3: TIM Channel 3 * @arg TIM_CHANNEL_4: TIM Channel 4 * @arg TIM_CHANNEL_5: TIM Channel 5 * @arg TIM_CHANNEL_6: TIM Channel 6 * @retval TIM Channel state */ HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(TIM_HandleTypeDef *htim, uint32_t Channel) { HAL_TIM_ChannelStateTypeDef channel_state; /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); return channel_state; } /** * @brief Return actual state of a DMA burst operation. * @param htim TIM handle * @retval DMA burst state */ HAL_TIM_DMABurstStateTypeDef HAL_TIM_DMABurstState(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); return htim->DMABurstState; } /** * @} */ /** * @} */ /** @defgroup TIM_Private_Functions TIM Private Functions * @{ */ /** * @brief TIM DMA error callback * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMAError(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); } else { htim->State = HAL_TIM_STATE_READY; } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->ErrorCallback(htim); #else HAL_TIM_ErrorCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA Delay Pulse complete callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); } } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA Delay Pulse half complete callback. * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMADelayPulseHalfCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PWM_PulseFinishedHalfCpltCallback(htim); #else HAL_TIM_PWM_PulseFinishedHalfCpltCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA Capture complete callback. * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); } } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA Capture half complete callback. * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMACaptureHalfCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureHalfCpltCallback(htim); #else HAL_TIM_IC_CaptureHalfCpltCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA Period Elapse complete callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (htim->hdma[TIM_DMA_ID_UPDATE]->Init.Mode == DMA_NORMAL) { htim->State = HAL_TIM_STATE_READY; } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief TIM DMA Period Elapse half complete callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMAPeriodElapsedHalfCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedHalfCpltCallback(htim); #else HAL_TIM_PeriodElapsedHalfCpltCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief TIM DMA Trigger callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (htim->hdma[TIM_DMA_ID_TRIGGER]->Init.Mode == DMA_NORMAL) { htim->State = HAL_TIM_STATE_READY; } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief TIM DMA Trigger half complete callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMATriggerHalfCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerHalfCpltCallback(htim); #else HAL_TIM_TriggerHalfCpltCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief Time Base configuration * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) { uint32_t tmpcr1; tmpcr1 = TIMx->CR1; /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); tmpcr1 |= Structure->CounterMode; } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; tmpcr1 |= (uint32_t)Structure->ClockDivision; } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); TIMx->CR1 = tmpcr1; /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; } /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; } /** * @brief Timer Output Compare 1 configuration * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; tmpccmrx &= ~TIM_CCMR1_CC1S; /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; } if (IS_TIM_BREAK_INSTANCE(TIMx)) { /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS1; tmpcr2 &= ~TIM_CR2_OIS1N; /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; /* Write to TIMx CCER */ TIMx->CCER = tmpccer; } /** * @brief Timer Output Compare 2 configuration * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; tmpccmrx &= ~TIM_CCMR1_CC2S; /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; } if (IS_TIM_BREAK_INSTANCE(TIMx)) { /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS2; tmpcr2 &= ~TIM_CR2_OIS2N; /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; /* Write to TIMx CCER */ TIMx->CCER = tmpccer; } /** * @brief Timer Output Compare 3 configuration * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; tmpccmrx &= ~TIM_CCMR2_CC3S; /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; } if (IS_TIM_BREAK_INSTANCE(TIMx)) { /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS3; tmpcr2 &= ~TIM_CR2_OIS3N; /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; /* Write to TIMx CCER */ TIMx->CCER = tmpccer; } /** * @brief Timer Output Compare 4 configuration * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; tmpccmrx &= ~TIM_CCMR2_CC4S; /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; /* Write to TIMx CCER */ TIMx->CCER = tmpccer; } /** * @brief Slave Timer configuration function * @param htim TIM handle * @param sSlaveConfig Slave timer configuration * @retval None */ static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) { uint32_t tmpsmcr; uint32_t tmpccmr1; uint32_t tmpccer; /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; /* Reset the Trigger Selection Bits */ tmpsmcr &= ~TIM_SMCR_TS; /* Set the Input Trigger source */ tmpsmcr |= sSlaveConfig->InputTrigger; /* Reset the slave mode Bits */ tmpsmcr &= ~TIM_SMCR_SMS; /* Set the slave mode */ tmpsmcr |= sSlaveConfig->SlaveMode; /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; /* Configure the trigger prescaler, filter, and polarity */ switch (sSlaveConfig->InputTrigger) { case TIM_TS_ETRF: { /* Check the parameters */ assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRIGGERPRESCALER(sSlaveConfig->TriggerPrescaler)); assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); /* Configure the ETR Trigger source */ TIM_ETR_SetConfig(htim->Instance, sSlaveConfig->TriggerPrescaler, sSlaveConfig->TriggerPolarity, sSlaveConfig->TriggerFilter); break; } case TIM_TS_TI1F_ED: { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); if (sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED) { return HAL_ERROR; } /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = htim->Instance->CCER; htim->Instance->CCER &= ~TIM_CCER_CC1E; tmpccmr1 = htim->Instance->CCMR1; /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U); /* Write to TIMx CCMR1 and CCER registers */ htim->Instance->CCMR1 = tmpccmr1; htim->Instance->CCER = tmpccer; break; } case TIM_TS_TI1FP1: { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); /* Configure TI1 Filter and Polarity */ TIM_TI1_ConfigInputStage(htim->Instance, sSlaveConfig->TriggerPolarity, sSlaveConfig->TriggerFilter); break; } case TIM_TS_TI2FP2: { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); /* Configure TI2 Filter and Polarity */ TIM_TI2_ConfigInputStage(htim->Instance, sSlaveConfig->TriggerPolarity, sSlaveConfig->TriggerFilter); break; } case TIM_TS_ITR0: case TIM_TS_ITR1: case TIM_TS_ITR2: case TIM_TS_ITR3: { /* Check the parameter */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); break; } default: break; } return HAL_OK; } /** * @brief Configure the TI1 as Input. * @param TIMx to select the TIM peripheral. * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICSelection specifies the input to be used. * This parameter can be one of the following values: * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 1 is selected to be connected to IC1. * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 1 is selected to be connected to IC2. * @arg TIM_ICSELECTION_TRC: TIM Input 1 is selected to be connected to TRC. * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI2FP1 * (on channel2 path) is used as the input signal. Therefore CCMR1 must be * protected against un-initialized filter and polarity values. */ void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) { uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; tmpccmr1 = TIMx->CCMR1; tmpccer = TIMx->CCER; /* Select the Input */ if (IS_TIM_CC2_INSTANCE(TIMx) != RESET) { tmpccmr1 &= ~TIM_CCMR1_CC1S; tmpccmr1 |= TIM_ICSelection; } else { tmpccmr1 |= TIM_CCMR1_CC1S_0; } /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F); /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP)); /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; TIMx->CCER = tmpccer; } /** * @brief Configure the Polarity and Filter for TI1. * @param TIMx to select the TIM peripheral. * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; TIMx->CCER &= ~TIM_CCER_CC1E; tmpccmr1 = TIMx->CCMR1; /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; tmpccmr1 |= (TIM_ICFilter << 4U); /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); tmpccer |= TIM_ICPolarity; /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; TIMx->CCER = tmpccer; } /** * @brief Configure the TI2 as Input. * @param TIMx to select the TIM peripheral * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICSelection specifies the input to be used. * This parameter can be one of the following values: * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 2 is selected to be connected to IC2. * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 2 is selected to be connected to IC1. * @arg TIM_ICSELECTION_TRC: TIM Input 2 is selected to be connected to TRC. * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI1FP2 * (on channel1 path) is used as the input signal. Therefore CCMR1 must be * protected against un-initialized filter and polarity values. */ static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) { uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; tmpccmr1 = TIMx->CCMR1; tmpccer = TIMx->CCER; /* Select the Input */ tmpccmr1 &= ~TIM_CCMR1_CC2S; tmpccmr1 |= (TIM_ICSelection << 8U); /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F); /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP)); /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; TIMx->CCER = tmpccer; } /** * @brief Configure the Polarity and Filter for TI2. * @param TIMx to select the TIM peripheral. * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; tmpccmr1 = TIMx->CCMR1; tmpccer = TIMx->CCER; /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; tmpccmr1 |= (TIM_ICFilter << 12U); /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); tmpccer |= (TIM_ICPolarity << 4U); /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; TIMx->CCER = tmpccer; } /** * @brief Configure the TI3 as Input. * @param TIMx to select the TIM peripheral * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICSelection specifies the input to be used. * This parameter can be one of the following values: * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 3 is selected to be connected to IC3. * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 3 is selected to be connected to IC4. * @arg TIM_ICSELECTION_TRC: TIM Input 3 is selected to be connected to TRC. * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI3FP4 * (on channel1 path) is used as the input signal. Therefore CCMR2 must be * protected against un-initialized filter and polarity values. */ static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) { uint32_t tmpccmr2; uint32_t tmpccer; /* Disable the Channel 3: Reset the CC3E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; tmpccmr2 = TIMx->CCMR2; tmpccer = TIMx->CCER; /* Select the Input */ tmpccmr2 &= ~TIM_CCMR2_CC3S; tmpccmr2 |= TIM_ICSelection; /* Set the filter */ tmpccmr2 &= ~TIM_CCMR2_IC3F; tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F); /* Select the Polarity and set the CC3E Bit */ tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP); tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP)); /* Write to TIMx CCMR2 and CCER registers */ TIMx->CCMR2 = tmpccmr2; TIMx->CCER = tmpccer; } /** * @brief Configure the TI4 as Input. * @param TIMx to select the TIM peripheral * @param TIM_ICPolarity The Input Polarity. * This parameter can be one of the following values: * @arg TIM_ICPOLARITY_RISING * @arg TIM_ICPOLARITY_FALLING * @arg TIM_ICPOLARITY_BOTHEDGE * @param TIM_ICSelection specifies the input to be used. * This parameter can be one of the following values: * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 4 is selected to be connected to IC4. * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 4 is selected to be connected to IC3. * @arg TIM_ICSELECTION_TRC: TIM Input 4 is selected to be connected to TRC. * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI4FP3 * (on channel1 path) is used as the input signal. Therefore CCMR2 must be * protected against un-initialized filter and polarity values. * @retval None */ static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) { uint32_t tmpccmr2; uint32_t tmpccer; /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; tmpccmr2 = TIMx->CCMR2; tmpccer = TIMx->CCER; /* Select the Input */ tmpccmr2 &= ~TIM_CCMR2_CC4S; tmpccmr2 |= (TIM_ICSelection << 8U); /* Set the filter */ tmpccmr2 &= ~TIM_CCMR2_IC4F; tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F); /* Select the Polarity and set the CC4E Bit */ tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP); tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP)); /* Write to TIMx CCMR2 and CCER registers */ TIMx->CCMR2 = tmpccmr2; TIMx->CCER = tmpccer ; } /** * @brief Selects the Input Trigger source * @param TIMx to select the TIM peripheral * @param InputTriggerSource The Input Trigger source. * This parameter can be one of the following values: * @arg TIM_TS_ITR0: Internal Trigger 0 * @arg TIM_TS_ITR1: Internal Trigger 1 * @arg TIM_TS_ITR2: Internal Trigger 2 * @arg TIM_TS_ITR3: Internal Trigger 3 * @arg TIM_TS_TI1F_ED: TI1 Edge Detector * @arg TIM_TS_TI1FP1: Filtered Timer Input 1 * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 * @arg TIM_TS_ETRF: External Trigger input * @retval None */ static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) { uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; } /** * @brief Configures the TIMx External Trigger (ETR). * @param TIMx to select the TIM peripheral * @param TIM_ExtTRGPrescaler The external Trigger Prescaler. * This parameter can be one of the following values: * @arg TIM_ETRPRESCALER_DIV1: ETRP Prescaler OFF. * @arg TIM_ETRPRESCALER_DIV2: ETRP frequency divided by 2. * @arg TIM_ETRPRESCALER_DIV4: ETRP frequency divided by 4. * @arg TIM_ETRPRESCALER_DIV8: ETRP frequency divided by 8. * @param TIM_ExtTRGPolarity The external Trigger Polarity. * This parameter can be one of the following values: * @arg TIM_ETRPOLARITY_INVERTED: active low or falling edge active. * @arg TIM_ETRPOLARITY_NONINVERTED: active high or rising edge active. * @param ExtTRGFilter External Trigger Filter. * This parameter must be a value between 0x00 and 0x0F * @retval None */ void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) { uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; } /** * @brief Enables or disables the TIM Capture Compare Channel x. * @param TIMx to select the TIM peripheral * @param Channel specifies the TIM Channel * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 * @arg TIM_CHANNEL_2: TIM Channel 2 * @arg TIM_CHANNEL_3: TIM Channel 3 * @arg TIM_CHANNEL_4: TIM Channel 4 * @param ChannelState specifies the TIM Channel CCxE bit new state. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE. * @retval None */ void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) { uint32_t tmp; /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(TIMx)); assert_param(IS_TIM_CHANNELS(Channel)); tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /** * @brief Reset interrupt callbacks to the legacy weak callbacks. * @param htim pointer to a TIM_HandleTypeDef structure that contains * the configuration information for TIM module. * @retval None */ void TIM_ResetCallback(TIM_HandleTypeDef *htim) { /* Reset the TIM callback to the legacy weak callbacks */ htim->PeriodElapsedCallback = HAL_TIM_PeriodElapsedCallback; /* Legacy weak PeriodElapsedCallback */ htim->PeriodElapsedHalfCpltCallback = HAL_TIM_PeriodElapsedHalfCpltCallback; /* Legacy weak PeriodElapsedHalfCpltCallback */ htim->TriggerCallback = HAL_TIM_TriggerCallback; /* Legacy weak TriggerCallback */ htim->TriggerHalfCpltCallback = HAL_TIM_TriggerHalfCpltCallback; /* Legacy weak TriggerHalfCpltCallback */ htim->IC_CaptureCallback = HAL_TIM_IC_CaptureCallback; /* Legacy weak IC_CaptureCallback */ htim->IC_CaptureHalfCpltCallback = HAL_TIM_IC_CaptureHalfCpltCallback; /* Legacy weak IC_CaptureHalfCpltCallback */ htim->OC_DelayElapsedCallback = HAL_TIM_OC_DelayElapsedCallback; /* Legacy weak OC_DelayElapsedCallback */ htim->PWM_PulseFinishedCallback = HAL_TIM_PWM_PulseFinishedCallback; /* Legacy weak PWM_PulseFinishedCallback */ htim->PWM_PulseFinishedHalfCpltCallback = HAL_TIM_PWM_PulseFinishedHalfCpltCallback; /* Legacy weak PWM_PulseFinishedHalfCpltCallback */ htim->ErrorCallback = HAL_TIM_ErrorCallback; /* Legacy weak ErrorCallback */ htim->CommutationCallback = HAL_TIMEx_CommutCallback; /* Legacy weak CommutationCallback */ htim->CommutationHalfCpltCallback = HAL_TIMEx_CommutHalfCpltCallback; /* Legacy weak CommutationHalfCpltCallback */ htim->BreakCallback = HAL_TIMEx_BreakCallback; /* Legacy weak BreakCallback */ } #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /** * @} */ #endif /* HAL_TIM_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_tim_ex.c * @author MCD Application Team * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer Extended peripheral: * + Time Hall Sensor Interface Initialization * + Time Hall Sensor Interface Start * + Time Complementary signal break and dead time configuration * + Time Master and Slave synchronization configuration * + Timer remapping capabilities configuration @verbatim ============================================================================== ##### TIMER Extended features ##### ============================================================================== [..] The Timer Extended features include: (#) Complementary outputs with programmable dead-time for : (++) Output Compare (++) PWM generation (Edge and Center-aligned Mode) (++) One-pulse mode output (#) Synchronization circuit to control the timer with external signals and to interconnect several timers together. (#) Break input to put the timer output signals in reset state or in a known state. (#) Supports incremental (quadrature) encoder and hall-sensor circuitry for positioning purposes ##### How to use this driver ##### ============================================================================== [..] (#) Initialize the TIM low level resources by implementing the following functions depending on the selected feature: (++) Hall Sensor output : HAL_TIMEx_HallSensor_MspInit() (#) Initialize the TIM low level resources : (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); (##) TIM pins configuration (+++) Enable the clock for the TIM GPIOs using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(); (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); (#) The external Clock can be configured, if needed (the default clock is the internal clock from the APBx), using the following function: HAL_TIM_ConfigClockSource, the clock configuration should be done before any start function. (#) Configure the TIM in the desired functioning mode using one of the initialization function of this driver: (++) HAL_TIMEx_HallSensor_Init() and HAL_TIMEx_ConfigCommutEvent(): to use the Timer Hall Sensor Interface and the commutation event with the corresponding Interrupt and DMA request if needed (Note that One Timer is used to interface with the Hall sensor Interface and another Timer should be used to use the commutation event). (#) Activate the TIM peripheral using one of the start functions: (++) Complementary Output Compare : HAL_TIMEx_OCN_Start(), HAL_TIMEx_OCN_Start_DMA(), HAL_TIMEx_OCN_Start_IT() (++) Complementary PWM generation : HAL_TIMEx_PWMN_Start(), HAL_TIMEx_PWMN_Start_DMA(), HAL_TIMEx_PWMN_Start_IT() (++) Complementary One-pulse mode output : HAL_TIMEx_OnePulseN_Start(), HAL_TIMEx_OnePulseN_Start_IT() (++) Hall Sensor output : HAL_TIMEx_HallSensor_Start(), HAL_TIMEx_HallSensor_Start_DMA(), HAL_TIMEx_HallSensor_Start_IT(). @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup TIMEx TIMEx * @brief TIM Extended HAL module driver * @{ */ #ifdef HAL_TIM_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ static void TIM_DMADelayPulseNCplt(DMA_HandleTypeDef *hdma); static void TIM_DMAErrorCCxN(DMA_HandleTypeDef *hdma); static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState); /* Exported functions --------------------------------------------------------*/ /** @defgroup TIMEx_Exported_Functions TIM Extended Exported Functions * @{ */ /** @defgroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions * @brief Timer Hall Sensor functions * @verbatim ============================================================================== ##### Timer Hall Sensor functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure TIM HAL Sensor. (+) De-initialize TIM HAL Sensor. (+) Start the Hall Sensor Interface. (+) Stop the Hall Sensor Interface. (+) Start the Hall Sensor Interface and enable interrupts. (+) Stop the Hall Sensor Interface and disable interrupts. (+) Start the Hall Sensor Interface and enable DMA transfers. (+) Stop the Hall Sensor Interface and disable DMA transfers. @endverbatim * @{ */ /** * @brief Initializes the TIM Hall Sensor Interface and initialize the associated handle. * @note When the timer instance is initialized in Hall Sensor Interface mode, * timer channels 1 and channel 2 are reserved and cannot be used for * other purpose. * @param htim TIM Hall Sensor Interface handle * @param sConfig TIM Hall Sensor configuration structure * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef *sConfig) { TIM_OC_InitTypeDef OC_Config; /* Check the TIM handle allocation */ if (htim == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); assert_param(IS_TIM_IC_POLARITY(sConfig->IC1Polarity)); assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); if (htim->State == HAL_TIM_STATE_RESET) { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) /* Reset interrupt callbacks to legacy week callbacks */ TIM_ResetCallback(htim); if (htim->HallSensor_MspInitCallback == NULL) { htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->HallSensor_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIMEx_HallSensor_MspInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; /* Configure the Time base in the Encoder Mode */ TIM_Base_SetConfig(htim->Instance, &htim->Init); /* Configure the Channel 1 as Input Channel to interface with the three Outputs of the Hall sensor */ TIM_TI1_SetConfig(htim->Instance, sConfig->IC1Polarity, TIM_ICSELECTION_TRC, sConfig->IC1Filter); /* Reset the IC1PSC Bits */ htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; /* Set the IC1PSC value */ htim->Instance->CCMR1 |= sConfig->IC1Prescaler; /* Enable the Hall sensor interface (XOR function of the three inputs) */ htim->Instance->CR2 |= TIM_CR2_TI1S; /* Select the TIM_TS_TI1F_ED signal as Input trigger for the TIM */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= TIM_TS_TI1F_ED; /* Use the TIM_TS_TI1F_ED signal to reset the TIM counter each edge detection */ htim->Instance->SMCR &= ~TIM_SMCR_SMS; htim->Instance->SMCR |= TIM_SLAVEMODE_RESET; /* Program channel 2 in PWM 2 mode with the desired Commutation_Delay*/ OC_Config.OCFastMode = TIM_OCFAST_DISABLE; OC_Config.OCIdleState = TIM_OCIDLESTATE_RESET; OC_Config.OCMode = TIM_OCMODE_PWM2; OC_Config.OCNIdleState = TIM_OCNIDLESTATE_RESET; OC_Config.OCNPolarity = TIM_OCNPOLARITY_HIGH; OC_Config.OCPolarity = TIM_OCPOLARITY_HIGH; OC_Config.Pulse = sConfig->Commutation_Delay; TIM_OC2_SetConfig(htim->Instance, &OC_Config); /* Select OC2REF as trigger output on TRGO: write the MMS bits in the TIMx_CR2 register to 101 */ htim->Instance->CR2 &= ~TIM_CR2_MMS; htim->Instance->CR2 |= TIM_TRGO_OC2REF; /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the TIM Hall Sensor interface * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); htim->State = HAL_TIM_STATE_BUSY; /* Disable the TIM Peripheral Clock */ __HAL_TIM_DISABLE(htim); #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) if (htim->HallSensor_MspDeInitCallback == NULL) { htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; } /* DeInit the low level hardware */ htim->HallSensor_MspDeInitCallback(htim); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_TIMEx_HallSensor_MspDeInit(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ /* Change the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; /* Change the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; /* Release Lock */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Initializes the TIM Hall Sensor MSP. * @param htim TIM Hall Sensor Interface handle * @retval None */ __weak void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_HallSensor_MspInit could be implemented in the user file */ } /** * @brief DeInitializes TIM Hall Sensor MSP. * @param htim TIM Hall Sensor Interface handle * @retval None */ __weak void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_HallSensor_MspDeInit could be implemented in the user file */ } /** * @brief Starts the TIM Hall Sensor Interface. * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Input Capture channel 1 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Hall sensor Interface. * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channels 1, 2 and 3 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Hall Sensor Interface in interrupt mode. * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the capture compare Interrupts 1 event */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); /* Enable the Input Capture channel 1 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Hall Sensor Interface in interrupt mode. * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channel 1 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); /* Disable the capture compare Interrupts event */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Hall Sensor Interface in DMA mode. * @param htim TIM Hall Sensor Interface handle * @param pData The destination Buffer address. * @param Length The length of data to be transferred from TIM peripheral to memory. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Set the TIM channel state */ if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY)) { return HAL_BUSY; } else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY)) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } /* Enable the Input Capture channel 1 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); /* Set the DMA Input Capture 1 Callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; /* Enable the DMA stream for Capture 1*/ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the capture compare 1 Interrupt */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Hall Sensor Interface in DMA mode. * @param htim TIM Hall Sensor Interface handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim) { /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); /* Disable the Input Capture channel 1 (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, TIM_CHANNEL_2 and TIM_CHANNEL_3) */ TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); /* Disable the capture compare Interrupts 1 event */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions * @brief Timer Complementary Output Compare functions * @verbatim ============================================================================== ##### Timer Complementary Output Compare functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Start the Complementary Output Compare/PWM. (+) Stop the Complementary Output Compare/PWM. (+) Start the Complementary Output Compare/PWM and enable interrupts. (+) Stop the Complementary Output Compare/PWM and disable interrupts. (+) Start the Complementary Output Compare/PWM and enable DMA transfers. (+) Stop the Complementary Output Compare/PWM and disable DMA transfers. @endverbatim * @{ */ /** * @brief Starts the TIM Output Compare signal generation on the complementary * output. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Check the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation on the complementary * output. * @param htim TIM handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Disable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Output Compare signal generation in interrupt mode * on the complementary output. * @param htim TIM OC handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Check the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); switch (Channel) { case TIM_CHANNEL_1: { /* Enable the TIM Output Compare interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Enable the TIM Output Compare interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Enable the TIM Output Compare interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); break; } default: break; } /* Enable the TIM Break interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); /* Enable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation in interrupt mode * on the complementary output. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpccer; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Output Compare interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Disable the TIM Output Compare interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Disable the TIM Output Compare interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); break; } default: break; } /* Disable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the TIM Break interrupt (only if no more channel is active) */ tmpccer = htim->Instance->CCER; if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == (uint32_t)RESET) { __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); } /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM Output Compare signal generation in DMA mode * on the complementary output. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @param pData The source Buffer address. * @param Length The length of data to be transferred from memory to TIM peripheral * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Set the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) { return HAL_BUSY; } else if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Output Compare DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); break; } case TIM_CHANNEL_2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Output Compare DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } case TIM_CHANNEL_3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Output Compare DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); break; } default: break; } /* Enable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM Output Compare signal generation in DMA mode * on the complementary output. * @param htim TIM Output Compare handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Output Compare DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_CHANNEL_2: { /* Disable the TIM Output Compare DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_CHANNEL_3: { /* Disable the TIM Output Compare DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } default: break; } /* Disable the Capture compare channel N */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions * @brief Timer Complementary PWM functions * @verbatim ============================================================================== ##### Timer Complementary PWM functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Start the Complementary PWM. (+) Stop the Complementary PWM. (+) Start the Complementary PWM and enable interrupts. (+) Stop the Complementary PWM and disable interrupts. (+) Start the Complementary PWM and enable DMA transfers. (+) Stop the Complementary PWM and disable DMA transfers. (+) Start the Complementary Input Capture measurement. (+) Stop the Complementary Input Capture. (+) Start the Complementary Input Capture and enable interrupts. (+) Stop the Complementary Input Capture and disable interrupts. (+) Start the Complementary Input Capture and enable DMA transfers. (+) Stop the Complementary Input Capture and disable DMA transfers. (+) Start the Complementary One Pulse generation. (+) Stop the Complementary One Pulse. (+) Start the Complementary One Pulse and enable interrupts. (+) Stop the Complementary One Pulse and disable interrupts. @endverbatim * @{ */ /** * @brief Starts the PWM signal generation on the complementary output. * @param htim TIM handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Check the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the PWM signal generation on the complementary output. * @param htim TIM handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Disable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the PWM signal generation in interrupt mode on the * complementary output. * @param htim TIM handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Check the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) { return HAL_ERROR; } /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); switch (Channel) { case TIM_CHANNEL_1: { /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Enable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); break; } default: break; } /* Enable the TIM Break interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); /* Enable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the PWM signal generation in interrupt mode on the * complementary output. * @param htim TIM handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) { uint32_t tmpccer; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); break; } default: break; } /* Disable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the TIM Break interrupt (only if no more channel is active) */ tmpccer = htim->Instance->CCER; if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == (uint32_t)RESET) { __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); } /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM PWM signal generation in DMA mode on the * complementary output * @param htim TIM handle * @param Channel TIM Channel to be enabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @param pData The source Buffer address. * @param Length The length of data to be transferred from memory to TIM peripheral * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) { uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); /* Set the TIM complementary channel state */ if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) { return HAL_BUSY; } else if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) { if ((pData == NULL) && (Length > 0U)) { return HAL_ERROR; } else { TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); } } else { return HAL_ERROR; } switch (Channel) { case TIM_CHANNEL_1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); break; } case TIM_CHANNEL_2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); break; } case TIM_CHANNEL_3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseNCplt; htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAErrorCCxN ; /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; } /* Enable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); break; } default: break; } /* Enable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) { __HAL_TIM_ENABLE(htim); } } else { __HAL_TIM_ENABLE(htim); } /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM PWM signal generation in DMA mode on the complementary * output * @param htim TIM handle * @param Channel TIM Channel to be disabled * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); switch (Channel) { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); break; } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); break; } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); break; } default: break; } /* Disable the complementary PWM output */ TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM complementary channel state */ TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions * @brief Timer Complementary One Pulse functions * @verbatim ============================================================================== ##### Timer Complementary One Pulse functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Start the Complementary One Pulse generation. (+) Stop the Complementary One Pulse. (+) Start the Complementary One Pulse and enable interrupts. (+) Stop the Complementary One Pulse and disable interrupts. @endverbatim * @{ */ /** * @brief Starts the TIM One Pulse signal generation on the complementary * output. * @note OutputChannel must match the pulse output channel chosen when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel pulse output channel to enable * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the complementary One Pulse output channel and the Input Capture channel */ TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM One Pulse signal generation on the complementary * output. * @note OutputChannel must match the pulse output channel chosen when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel pulse output channel to disable * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); /* Disable the complementary One Pulse output channel and the Input Capture channel */ TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @brief Starts the TIM One Pulse signal generation in interrupt mode on the * complementary channel. * @note OutputChannel must match the pulse output channel chosen when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel pulse output channel to enable * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); /* Check the TIM channels state */ if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) { return HAL_ERROR; } /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); /* Enable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); /* Enable the complementary One Pulse output channel and the Input Capture channel */ TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_ENABLE); /* Enable the Main Output */ __HAL_TIM_MOE_ENABLE(htim); /* Return function status */ return HAL_OK; } /** * @brief Stops the TIM One Pulse signal generation in interrupt mode on the * complementary channel. * @note OutputChannel must match the pulse output channel chosen when calling * @ref HAL_TIM_OnePulse_ConfigChannel(). * @param htim TIM One Pulse handle * @param OutputChannel pulse output channel to disable * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 selected * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); /* Disable the TIM Capture/Compare 2 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); /* Disable the complementary One Pulse output channel and the Input Capture channel */ TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_DISABLE); /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); /* Return function status */ return HAL_OK; } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions * @brief Peripheral Control functions * @verbatim ============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Configure the commutation event in case of use of the Hall sensor interface. (+) Configure Output channels for OC and PWM mode. (+) Configure Complementary channels, break features and dead time. (+) Configure Master synchronization. (+) Configure timer remapping capabilities. @endverbatim * @{ */ /** * @brief Configure the TIM commutation event sequence. * @note This function is mandatory to use the commutation event in order to * update the configuration at each commutation detection on the TRGI input of the Timer, * the typical use of this feature is with the use of another Timer(interface Timer) * configured in Hall sensor interface, this interface Timer will generate the * commutation at its TRGO output (connected to Timer used in this function) each time * the TI1 of the Interface Timer detect a commutation at its input TI1. * @param htim TIM handle * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor * This parameter can be one of the following values: * @arg TIM_TS_ITR0: Internal trigger 0 selected * @arg TIM_TS_ITR1: Internal trigger 1 selected * @arg TIM_TS_ITR2: Internal trigger 2 selected * @arg TIM_TS_ITR3: Internal trigger 3 selected * @arg TIM_TS_NONE: No trigger is needed * @param CommutationSource the Commutation Event source * This parameter can be one of the following values: * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) { /* Check the parameters */ assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); __HAL_LOCK(htim); if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) { /* Select the Input trigger */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= InputTrigger; } /* Select the Capture Compare preload feature */ htim->Instance->CR2 |= TIM_CR2_CCPC; /* Select the Commutation event source */ htim->Instance->CR2 &= ~TIM_CR2_CCUS; htim->Instance->CR2 |= CommutationSource; /* Disable Commutation Interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_COM); /* Disable Commutation DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_COM); __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configure the TIM commutation event sequence with interrupt. * @note This function is mandatory to use the commutation event in order to * update the configuration at each commutation detection on the TRGI input of the Timer, * the typical use of this feature is with the use of another Timer(interface Timer) * configured in Hall sensor interface, this interface Timer will generate the * commutation at its TRGO output (connected to Timer used in this function) each time * the TI1 of the Interface Timer detect a commutation at its input TI1. * @param htim TIM handle * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor * This parameter can be one of the following values: * @arg TIM_TS_ITR0: Internal trigger 0 selected * @arg TIM_TS_ITR1: Internal trigger 1 selected * @arg TIM_TS_ITR2: Internal trigger 2 selected * @arg TIM_TS_ITR3: Internal trigger 3 selected * @arg TIM_TS_NONE: No trigger is needed * @param CommutationSource the Commutation Event source * This parameter can be one of the following values: * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) { /* Check the parameters */ assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); __HAL_LOCK(htim); if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) { /* Select the Input trigger */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= InputTrigger; } /* Select the Capture Compare preload feature */ htim->Instance->CR2 |= TIM_CR2_CCPC; /* Select the Commutation event source */ htim->Instance->CR2 &= ~TIM_CR2_CCUS; htim->Instance->CR2 |= CommutationSource; /* Disable Commutation DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_COM); /* Enable the Commutation Interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_COM); __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configure the TIM commutation event sequence with DMA. * @note This function is mandatory to use the commutation event in order to * update the configuration at each commutation detection on the TRGI input of the Timer, * the typical use of this feature is with the use of another Timer(interface Timer) * configured in Hall sensor interface, this interface Timer will generate the * commutation at its TRGO output (connected to Timer used in this function) each time * the TI1 of the Interface Timer detect a commutation at its input TI1. * @note The user should configure the DMA in his own software, in This function only the COMDE bit is set * @param htim TIM handle * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor * This parameter can be one of the following values: * @arg TIM_TS_ITR0: Internal trigger 0 selected * @arg TIM_TS_ITR1: Internal trigger 1 selected * @arg TIM_TS_ITR2: Internal trigger 2 selected * @arg TIM_TS_ITR3: Internal trigger 3 selected * @arg TIM_TS_NONE: No trigger is needed * @param CommutationSource the Commutation Event source * This parameter can be one of the following values: * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) { /* Check the parameters */ assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); __HAL_LOCK(htim); if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) { /* Select the Input trigger */ htim->Instance->SMCR &= ~TIM_SMCR_TS; htim->Instance->SMCR |= InputTrigger; } /* Select the Capture Compare preload feature */ htim->Instance->CR2 |= TIM_CR2_CCPC; /* Select the Commutation event source */ htim->Instance->CR2 &= ~TIM_CR2_CCUS; htim->Instance->CR2 |= CommutationSource; /* Enable the Commutation DMA Request */ /* Set the DMA Commutation Callback */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError; /* Disable Commutation Interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_COM); /* Enable the Commutation DMA Request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_COM); __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configures the TIM in master mode. * @param htim TIM handle. * @param sMasterConfig pointer to a TIM_MasterConfigTypeDef structure that * contains the selected trigger output (TRGO) and the Master/Slave * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig) { uint32_t tmpcr2; uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configures the Break feature, dead time, Lock level, OSSI/OSSR State * and the AOE(automatic output enable). * @param htim TIM handle * @param sBreakDeadTimeConfig pointer to a TIM_ConfigBreakDeadConfigTypeDef structure that * contains the BDTR Register configuration information for the TIM peripheral. * @note Interrupts can be generated when an active level is detected on the * break input, the break 2 input or the system break input. Break * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) { /* Keep this variable initialized to 0 as it is used to configure BDTR register */ uint32_t tmpbdtr = 0U; /* Check the parameters */ assert_param(IS_TIM_BREAK_INSTANCE(htim->Instance)); assert_param(IS_TIM_OSSR_STATE(sBreakDeadTimeConfig->OffStateRunMode)); assert_param(IS_TIM_OSSI_STATE(sBreakDeadTimeConfig->OffStateIDLEMode)); assert_param(IS_TIM_LOCK_LEVEL(sBreakDeadTimeConfig->LockLevel)); assert_param(IS_TIM_DEADTIME(sBreakDeadTimeConfig->DeadTime)); assert_param(IS_TIM_BREAK_STATE(sBreakDeadTimeConfig->BreakState)); assert_param(IS_TIM_BREAK_POLARITY(sBreakDeadTimeConfig->BreakPolarity)); assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(sBreakDeadTimeConfig->AutomaticOutput)); /* Check input state */ __HAL_LOCK(htim); /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, the OSSI State, the dead time value and the Automatic Output Enable Bit */ /* Set the BDTR bits */ MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime); MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel); MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); /* Set TIMx_BDTR */ htim->Instance->BDTR = tmpbdtr; __HAL_UNLOCK(htim); return HAL_OK; } /** * @brief Configures the TIMx Remapping input capabilities. * @param htim TIM handle. * @param Remap specifies the TIM remapping source. * For TIM1, the parameter can have the following values: (**) * @arg TIM_TIM1_TIM3_TRGO: TIM1 ITR2 is connected to TIM3 TRGO * @arg TIM_TIM1_LPTIM: TIM1 ITR2 is connected to LPTIM1 output * * For TIM2, the parameter can have the following values: (**) * @arg TIM_TIM2_TIM8_TRGO: TIM2 ITR1 is connected to TIM8 TRGO (*) * @arg TIM_TIM2_ETH_PTP: TIM2 ITR1 is connected to PTP trigger output (*) * @arg TIM_TIM2_USBFS_SOF: TIM2 ITR1 is connected to OTG FS SOF * @arg TIM_TIM2_USBHS_SOF: TIM2 ITR1 is connected to OTG FS SOF * * For TIM5, the parameter can have the following values: * @arg TIM_TIM5_GPIO: TIM5 TI4 is connected to GPIO * @arg TIM_TIM5_LSI: TIM5 TI4 is connected to LSI * @arg TIM_TIM5_LSE: TIM5 TI4 is connected to LSE * @arg TIM_TIM5_RTC: TIM5 TI4 is connected to the RTC wakeup interrupt * @arg TIM_TIM5_TIM3_TRGO: TIM5 ITR1 is connected to TIM3 TRGO (*) * @arg TIM_TIM5_LPTIM: TIM5 ITR1 is connected to LPTIM1 output (*) * * For TIM9, the parameter can have the following values: (**) * @arg TIM_TIM9_TIM3_TRGO: TIM9 ITR1 is connected to TIM3 TRGO * @arg TIM_TIM9_LPTIM: TIM9 ITR1 is connected to LPTIM1 output * * For TIM11, the parameter can have the following values: * @arg TIM_TIM11_GPIO: TIM11 TI1 is connected to GPIO * @arg TIM_TIM11_HSE: TIM11 TI1 is connected to HSE_RTC clock * @arg TIM_TIM11_SPDIFRX: TIM11 TI1 is connected to SPDIFRX_FRAME_SYNC (*) * * (*) Value not defined in all devices. \n * (**) Register not available in all devices. * * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap) { __HAL_LOCK(htim); /* Check parameters */ assert_param(IS_TIM_REMAP(htim->Instance, Remap)); #if defined(LPTIM_OR_TIM1_ITR2_RMP) && defined(LPTIM_OR_TIM5_ITR1_RMP) && defined(LPTIM_OR_TIM9_ITR1_RMP) if ((Remap & LPTIM_REMAP_MASK) == LPTIM_REMAP_MASK) { /* Connect TIMx internal trigger to LPTIM1 output */ __HAL_RCC_LPTIM1_CLK_ENABLE(); MODIFY_REG(LPTIM1->OR, (LPTIM_OR_TIM1_ITR2_RMP | LPTIM_OR_TIM5_ITR1_RMP | LPTIM_OR_TIM9_ITR1_RMP), Remap & ~(LPTIM_REMAP_MASK)); } else { /* Set the Timer remapping configuration */ WRITE_REG(htim->Instance->OR, Remap); } #else /* Set the Timer remapping configuration */ WRITE_REG(htim->Instance->OR, Remap); #endif /* LPTIM_OR_TIM1_ITR2_RMP && LPTIM_OR_TIM5_ITR1_RMP && LPTIM_OR_TIM9_ITR1_RMP */ __HAL_UNLOCK(htim); return HAL_OK; } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions * @brief Extended Callbacks functions * @verbatim ============================================================================== ##### Extended Callbacks functions ##### ============================================================================== [..] This section provides Extended TIM callback functions: (+) Timer Commutation callback (+) Timer Break callback @endverbatim * @{ */ /** * @brief Hall commutation changed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_CommutCallback could be implemented in the user file */ } /** * @brief Hall commutation changed half complete callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_CommutHalfCpltCallback could be implemented in the user file */ } /** * @brief Hall Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { /* Prevent unused argument(s) compilation warning */ UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_BreakCallback could be implemented in the user file */ } /** * @} */ /** @defgroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions * @brief Extended Peripheral State functions * @verbatim ============================================================================== ##### Extended Peripheral State functions ##### ============================================================================== [..] This subsection permits to get in run-time the status of the peripheral and the data flow. @endverbatim * @{ */ /** * @brief Return the TIM Hall Sensor interface handle state. * @param htim TIM Hall Sensor handle * @retval HAL state */ HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim) { return htim->State; } /** * @brief Return actual state of the TIM complementary channel. * @param htim TIM handle * @param ChannelN TIM Complementary channel * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 * @arg TIM_CHANNEL_2: TIM Channel 2 * @arg TIM_CHANNEL_3: TIM Channel 3 * @retval TIM Complementary channel state */ HAL_TIM_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(TIM_HandleTypeDef *htim, uint32_t ChannelN) { HAL_TIM_ChannelStateTypeDef channel_state; /* Check the parameters */ assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, ChannelN)); channel_state = TIM_CHANNEL_N_STATE_GET(htim, ChannelN); return channel_state; } /** * @} */ /** * @} */ /* Private functions ---------------------------------------------------------*/ /** @defgroup TIMEx_Private_Functions TIMEx Private Functions * @{ */ /** * @brief TIM DMA Commutation callback. * @param hdma pointer to DMA handle. * @retval None */ void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief TIM DMA Commutation half complete callback. * @param hdma pointer to DMA handle. * @retval None */ void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationHalfCpltCallback(htim); #else HAL_TIMEx_CommutHalfCpltCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /** * @brief TIM DMA Delay Pulse complete callback (complementary channel). * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMADelayPulseNCplt(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); } } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; if (hdma->Init.Mode == DMA_NORMAL) { TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); } } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_PWM_PulseFinishedCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief TIM DMA error callback (complementary channel) * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMAErrorCCxN(DMA_HandleTypeDef *hdma) { TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if (hdma == htim->hdma[TIM_DMA_ID_CC1]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); } else { /* nothing to do */ } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->ErrorCallback(htim); #else HAL_TIM_ErrorCallback(htim); #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; } /** * @brief Enables or disables the TIM Capture Compare Channel xN. * @param TIMx to select the TIM peripheral * @param Channel specifies the TIM Channel * This parameter can be one of the following values: * @arg TIM_CHANNEL_1: TIM Channel 1 * @arg TIM_CHANNEL_2: TIM Channel 2 * @arg TIM_CHANNEL_3: TIM Channel 3 * @param ChannelNState specifies the TIM Channel CCxNE bit new state. * This parameter can be: TIM_CCxN_ENABLE or TIM_CCxN_Disable. * @retval None */ static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState) { uint32_t tmp; tmp = TIM_CCER_CC1NE << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ /* Reset the CCxNE Bit */ TIMx->CCER &= ~tmp; /* Set or reset the CCxNE Bit */ TIMx->CCER |= (uint32_t)(ChannelNState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ } /** * @} */ #endif /* HAL_TIM_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c ================================================ /** ****************************************************************************** * @file stm32f4xx_hal_uart.c * @author MCD Application Team * @brief UART HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART). * + Initialization and de-initialization functions * + IO operation functions * + Peripheral Control functions * + Peripheral State and Errors functions @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] The UART HAL driver can be used as follows: (#) Declare a UART_HandleTypeDef handle structure (eg. UART_HandleTypeDef huart). (#) Initialize the UART low level resources by implementing the HAL_UART_MspInit() API: (##) Enable the USARTx interface clock. (##) UART pins configuration: (+++) Enable the clock for the UART GPIOs. (+++) Configure these UART pins (TX as alternate function pull-up, RX as alternate function Input). (##) NVIC configuration if you need to use interrupt process (HAL_UART_Transmit_IT() and HAL_UART_Receive_IT() APIs): (+++) Configure the USARTx interrupt priority. (+++) Enable the NVIC USART IRQ handle. (##) DMA Configuration if you need to use DMA process (HAL_UART_Transmit_DMA() and HAL_UART_Receive_DMA() APIs): (+++) Declare a DMA handle structure for the Tx/Rx stream. (+++) Enable the DMAx interface clock. (+++) Configure the declared DMA handle structure with the required Tx/Rx parameters. (+++) Configure the DMA Tx/Rx stream. (+++) Associate the initialized DMA handle to the UART DMA Tx/Rx handle. (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Tx/Rx stream. (+++) Configure the USARTx interrupt priority and enable the NVIC USART IRQ handle (used for last byte sending completion detection in DMA non circular mode) (#) Program the Baud Rate, Word Length, Stop Bit, Parity, Hardware flow control and Mode(Receiver/Transmitter) in the huart Init structure. (#) For the UART asynchronous mode, initialize the UART registers by calling the HAL_UART_Init() API. (#) For the UART Half duplex mode, initialize the UART registers by calling the HAL_HalfDuplex_Init() API. (#) For the LIN mode, initialize the UART registers by calling the HAL_LIN_Init() API. (#) For the Multi-Processor mode, initialize the UART registers by calling the HAL_MultiProcessor_Init() API. [..] (@) The specific UART interrupts (Transmission complete interrupt, RXNE interrupt and Error Interrupts) will be managed using the macros __HAL_UART_ENABLE_IT() and __HAL_UART_DISABLE_IT() inside the transmit and receive process. [..] (@) These APIs (HAL_UART_Init() and HAL_HalfDuplex_Init()) configure also the low level Hardware GPIO, CLOCK, CORTEX...etc) by calling the customized HAL_UART_MspInit() API. ##### Callback registration ##### ================================== [..] The compilation define USE_HAL_UART_REGISTER_CALLBACKS when set to 1 allows the user to configure dynamically the driver callbacks. [..] Use Function @ref HAL_UART_RegisterCallback() to register a user callback. Function @ref HAL_UART_RegisterCallback() allows to register following callbacks: (+) TxHalfCpltCallback : Tx Half Complete Callback. (+) TxCpltCallback : Tx Complete Callback. (+) RxHalfCpltCallback : Rx Half Complete Callback. (+) RxCpltCallback : Rx Complete Callback. (+) ErrorCallback : Error Callback. (+) AbortCpltCallback : Abort Complete Callback. (+) AbortTransmitCpltCallback : Abort Transmit Complete Callback. (+) AbortReceiveCpltCallback : Abort Receive Complete Callback. (+) MspInitCallback : UART MspInit. (+) MspDeInitCallback : UART MspDeInit. This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. [..] Use function @ref HAL_UART_UnRegisterCallback() to reset a callback to the default weak (surcharged) function. @ref HAL_UART_UnRegisterCallback() takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (+) TxHalfCpltCallback : Tx Half Complete Callback. (+) TxCpltCallback : Tx Complete Callback. (+) RxHalfCpltCallback : Rx Half Complete Callback. (+) RxCpltCallback : Rx Complete Callback. (+) ErrorCallback : Error Callback. (+) AbortCpltCallback : Abort Complete Callback. (+) AbortTransmitCpltCallback : Abort Transmit Complete Callback. (+) AbortReceiveCpltCallback : Abort Receive Complete Callback. (+) MspInitCallback : UART MspInit. (+) MspDeInitCallback : UART MspDeInit. [..] For specific callback RxEventCallback, use dedicated registration/reset functions: respectively @ref HAL_UART_RegisterRxEventCallback() , @ref HAL_UART_UnRegisterRxEventCallback(). [..] By default, after the @ref HAL_UART_Init() and when the state is HAL_UART_STATE_RESET all callbacks are set to the corresponding weak (surcharged) functions: examples @ref HAL_UART_TxCpltCallback(), @ref HAL_UART_RxHalfCpltCallback(). Exception done for MspInit and MspDeInit functions that are respectively reset to the legacy weak (surcharged) functions in the @ref HAL_UART_Init() and @ref HAL_UART_DeInit() only when these callbacks are null (not registered beforehand). If not, MspInit or MspDeInit are not null, the @ref HAL_UART_Init() and @ref HAL_UART_DeInit() keep and use the user MspInit/MspDeInit callbacks (registered beforehand). [..] Callbacks can be registered/unregistered in HAL_UART_STATE_READY state only. Exception done MspInit/MspDeInit that can be registered/unregistered in HAL_UART_STATE_READY or HAL_UART_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. In that case first register the MspInit/MspDeInit user callbacks using @ref HAL_UART_RegisterCallback() before calling @ref HAL_UART_DeInit() or @ref HAL_UART_Init() function. [..] When The compilation define USE_HAL_UART_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and weak (surcharged) callbacks are used. [..] Three operation modes are available within this driver : *** Polling mode IO operation *** ================================= [..] (+) Send an amount of data in blocking mode using HAL_UART_Transmit() (+) Receive an amount of data in blocking mode using HAL_UART_Receive() *** Interrupt mode IO operation *** =================================== [..] (+) Send an amount of data in non blocking mode using HAL_UART_Transmit_IT() (+) At transmission end of transfer HAL_UART_TxCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_TxCpltCallback (+) Receive an amount of data in non blocking mode using HAL_UART_Receive_IT() (+) At reception end of transfer HAL_UART_RxCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_RxCpltCallback (+) In case of transfer Error, HAL_UART_ErrorCallback() function is executed and user can add his own code by customization of function pointer HAL_UART_ErrorCallback *** DMA mode IO operation *** ============================== [..] (+) Send an amount of data in non blocking mode (DMA) using HAL_UART_Transmit_DMA() (+) At transmission end of half transfer HAL_UART_TxHalfCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_TxHalfCpltCallback (+) At transmission end of transfer HAL_UART_TxCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_TxCpltCallback (+) Receive an amount of data in non blocking mode (DMA) using HAL_UART_Receive_DMA() (+) At reception end of half transfer HAL_UART_RxHalfCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_RxHalfCpltCallback (+) At reception end of transfer HAL_UART_RxCpltCallback is executed and user can add his own code by customization of function pointer HAL_UART_RxCpltCallback (+) In case of transfer Error, HAL_UART_ErrorCallback() function is executed and user can add his own code by customization of function pointer HAL_UART_ErrorCallback (+) Pause the DMA Transfer using HAL_UART_DMAPause() (+) Resume the DMA Transfer using HAL_UART_DMAResume() (+) Stop the DMA Transfer using HAL_UART_DMAStop() [..] This subsection also provides a set of additional functions providing enhanced reception services to user. (For example, these functions allow application to handle use cases where number of data to be received is unknown). (#) Compared to standard reception services which only consider number of received data elements as reception completion criteria, these functions also consider additional events as triggers for updating reception status to caller : (+) Detection of inactivity period (RX line has not been active for a given period). (++) RX inactivity detected by IDLE event, i.e. RX line has been in idle state (normally high state) for 1 frame time, after last received byte. (#) There are two mode of transfer: (+) Blocking mode: The reception is performed in polling mode, until either expected number of data is received, or till IDLE event occurs. Reception is handled only during function execution. When function exits, no data reception could occur. HAL status and number of actually received data elements, are returned by function after finishing transfer. (+) Non-Blocking mode: The reception is performed using Interrupts or DMA. These API's return the HAL status. The end of the data processing will be indicated through the dedicated UART IRQ when using Interrupt mode or the DMA IRQ when using DMA mode. The HAL_UARTEx_RxEventCallback() user callback will be executed during Receive process The HAL_UART_ErrorCallback()user callback will be executed when a reception error is detected. (#) Blocking mode API: (+) HAL_UARTEx_ReceiveToIdle() (#) Non-Blocking mode API with Interrupt: (+) HAL_UARTEx_ReceiveToIdle_IT() (#) Non-Blocking mode API with DMA: (+) HAL_UARTEx_ReceiveToIdle_DMA() *** UART HAL driver macros list *** ============================================= [..] Below the list of most used macros in UART HAL driver. (+) __HAL_UART_ENABLE: Enable the UART peripheral (+) __HAL_UART_DISABLE: Disable the UART peripheral (+) __HAL_UART_GET_FLAG : Check whether the specified UART flag is set or not (+) __HAL_UART_CLEAR_FLAG : Clear the specified UART pending flag (+) __HAL_UART_ENABLE_IT: Enable the specified UART interrupt (+) __HAL_UART_DISABLE_IT: Disable the specified UART interrupt (+) __HAL_UART_GET_IT_SOURCE: Check whether the specified UART interrupt has occurred or not [..] (@) You can refer to the UART HAL driver header file for more useful macros @endverbatim [..] (@) Additional remark: If the parity is enabled, then the MSB bit of the data written in the data register is transmitted but is changed by the parity bit. Depending on the frame length defined by the M bit (8-bits or 9-bits), the possible UART frame formats are as listed in the following table: +-------------------------------------------------------------+ | M bit | PCE bit | UART frame | |---------------------|---------------------------------------| | 0 | 0 | | SB | 8 bit data | STB | | |---------|-----------|---------------------------------------| | 0 | 1 | | SB | 7 bit data | PB | STB | | |---------|-----------|---------------------------------------| | 1 | 0 | | SB | 9 bit data | STB | | |---------|-----------|---------------------------------------| | 1 | 1 | | SB | 8 bit data | PB | STB | | +-------------------------------------------------------------+ ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_HAL_Driver * @{ */ /** @defgroup UART UART * @brief HAL UART module driver * @{ */ #ifdef HAL_UART_MODULE_ENABLED /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /** @addtogroup UART_Private_Constants * @{ */ /** * @} */ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /** @addtogroup UART_Private_Functions UART Private Functions * @{ */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) void UART_InitCallbacksToDefault(UART_HandleTypeDef *huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ static void UART_EndTxTransfer(UART_HandleTypeDef *huart); static void UART_EndRxTransfer(UART_HandleTypeDef *huart); static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma); static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma); static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma); static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma); static void UART_DMAError(DMA_HandleTypeDef *hdma); static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma); static void UART_DMATxAbortCallback(DMA_HandleTypeDef *hdma); static void UART_DMARxAbortCallback(DMA_HandleTypeDef *hdma); static void UART_DMATxOnlyAbortCallback(DMA_HandleTypeDef *hdma); static void UART_DMARxOnlyAbortCallback(DMA_HandleTypeDef *hdma); static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart); static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart); static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart); static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout); static void UART_SetConfig(UART_HandleTypeDef *huart); /** * @} */ /* Exported functions ---------------------------------------------------------*/ /** @defgroup UART_Exported_Functions UART Exported Functions * @{ */ /** @defgroup UART_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization and Configuration functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize the USARTx or the UARTy in asynchronous mode. (+) For the asynchronous mode only these parameters can be configured: (++) Baud Rate (++) Word Length (++) Stop Bit (++) Parity: If the parity is enabled, then the MSB bit of the data written in the data register is transmitted but is changed by the parity bit. Depending on the frame length defined by the M bit (8-bits or 9-bits), please refer to Reference manual for possible UART frame formats. (++) Hardware flow control (++) Receiver/transmitter modes (++) Over Sampling Method [..] The HAL_UART_Init(), HAL_HalfDuplex_Init(), HAL_LIN_Init() and HAL_MultiProcessor_Init() APIs follow respectively the UART asynchronous, UART Half duplex, LIN and Multi-Processor configuration procedures (details for the procedures are available in reference manual (RM0430 for STM32F4X3xx MCUs and RM0402 for STM32F412xx MCUs RM0383 for STM32F411xC/E MCUs and RM0401 for STM32F410xx MCUs RM0090 for STM32F4X5xx/STM32F4X7xx/STM32F429xx/STM32F439xx MCUs RM0390 for STM32F446xx MCUs and RM0386 for STM32F469xx/STM32F479xx MCUs)). @endverbatim * @{ */ /** * @brief Initializes the UART mode according to the specified parameters in * the UART_InitTypeDef and create the associated handle. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { /* Check the UART handle allocation */ if (huart == NULL) { return HAL_ERROR; } /* Check the parameters */ if (huart->Init.HwFlowCtl != UART_HWCONTROL_NONE) { /* The hardware flow control is available only for USART1, USART2, USART3 and USART6. Except for STM32F446xx devices, that is available for USART1, USART2, USART3, USART6, UART4 and UART5. */ assert_param(IS_UART_HWFLOW_INSTANCE(huart->Instance)); assert_param(IS_UART_HARDWARE_FLOW_CONTROL(huart->Init.HwFlowCtl)); } else { assert_param(IS_UART_INSTANCE(huart->Instance)); } assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) UART_InitCallbacksToDefault(huart); if (huart->MspInitCallback == NULL) { huart->MspInitCallback = HAL_UART_MspInit; } /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; /* Disable the peripheral */ __HAL_UART_DISABLE(huart); /* Set the UART Communication parameters */ UART_SetConfig(huart); /* In asynchronous mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); /* Enable the peripheral */ __HAL_UART_ENABLE(huart); /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } /** * @brief Initializes the half-duplex mode according to the specified * parameters in the UART_InitTypeDef and create the associated handle. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_HalfDuplex_Init(UART_HandleTypeDef *huart) { /* Check the UART handle allocation */ if (huart == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_UART_HALFDUPLEX_INSTANCE(huart->Instance)); assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) UART_InitCallbacksToDefault(huart); if (huart->MspInitCallback == NULL) { huart->MspInitCallback = HAL_UART_MspInit; } /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; /* Disable the peripheral */ __HAL_UART_DISABLE(huart); /* Set the UART Communication parameters */ UART_SetConfig(huart); /* In half-duplex mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); CLEAR_BIT(huart->Instance->CR3, (USART_CR3_IREN | USART_CR3_SCEN)); /* Enable the Half-Duplex mode by setting the HDSEL bit in the CR3 register */ SET_BIT(huart->Instance->CR3, USART_CR3_HDSEL); /* Enable the peripheral */ __HAL_UART_ENABLE(huart); /* Initialize the UART state*/ huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } /** * @brief Initializes the LIN mode according to the specified * parameters in the UART_InitTypeDef and create the associated handle. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param BreakDetectLength Specifies the LIN break detection length. * This parameter can be one of the following values: * @arg UART_LINBREAKDETECTLENGTH_10B: 10-bit break detection * @arg UART_LINBREAKDETECTLENGTH_11B: 11-bit break detection * @retval HAL status */ HAL_StatusTypeDef HAL_LIN_Init(UART_HandleTypeDef *huart, uint32_t BreakDetectLength) { /* Check the UART handle allocation */ if (huart == NULL) { return HAL_ERROR; } /* Check the LIN UART instance */ assert_param(IS_UART_LIN_INSTANCE(huart->Instance)); /* Check the Break detection length parameter */ assert_param(IS_UART_LIN_BREAK_DETECT_LENGTH(BreakDetectLength)); assert_param(IS_UART_LIN_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_LIN_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) UART_InitCallbacksToDefault(huart); if (huart->MspInitCallback == NULL) { huart->MspInitCallback = HAL_UART_MspInit; } /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; /* Disable the peripheral */ __HAL_UART_DISABLE(huart); /* Set the UART Communication parameters */ UART_SetConfig(huart); /* In LIN mode, the following bits must be kept cleared: - CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_CLKEN)); CLEAR_BIT(huart->Instance->CR3, (USART_CR3_HDSEL | USART_CR3_IREN | USART_CR3_SCEN)); /* Enable the LIN mode by setting the LINEN bit in the CR2 register */ SET_BIT(huart->Instance->CR2, USART_CR2_LINEN); /* Set the USART LIN Break detection length. */ CLEAR_BIT(huart->Instance->CR2, USART_CR2_LBDL); SET_BIT(huart->Instance->CR2, BreakDetectLength); /* Enable the peripheral */ __HAL_UART_ENABLE(huart); /* Initialize the UART state*/ huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } /** * @brief Initializes the Multi-Processor mode according to the specified * parameters in the UART_InitTypeDef and create the associated handle. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param Address USART address * @param WakeUpMethod specifies the USART wake-up method. * This parameter can be one of the following values: * @arg UART_WAKEUPMETHOD_IDLELINE: Wake-up by an idle line detection * @arg UART_WAKEUPMETHOD_ADDRESSMARK: Wake-up by an address mark * @retval HAL status */ HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Address, uint32_t WakeUpMethod) { /* Check the UART handle allocation */ if (huart == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); /* Check the Address & wake up method parameters */ assert_param(IS_UART_WAKEUPMETHOD(WakeUpMethod)); assert_param(IS_UART_ADDRESS(Address)); assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) UART_InitCallbacksToDefault(huart); if (huart->MspInitCallback == NULL) { huart->MspInitCallback = HAL_UART_MspInit; } /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; /* Disable the peripheral */ __HAL_UART_DISABLE(huart); /* Set the UART Communication parameters */ UART_SetConfig(huart); /* In Multi-Processor mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register */ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); /* Set the USART address node */ CLEAR_BIT(huart->Instance->CR2, USART_CR2_ADD); SET_BIT(huart->Instance->CR2, Address); /* Set the wake up method by setting the WAKE bit in the CR1 register */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_WAKE); SET_BIT(huart->Instance->CR1, WakeUpMethod); /* Enable the peripheral */ __HAL_UART_ENABLE(huart); /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } /** * @brief DeInitializes the UART peripheral. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart) { /* Check the UART handle allocation */ if (huart == NULL) { return HAL_ERROR; } /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); huart->gState = HAL_UART_STATE_BUSY; /* Disable the Peripheral */ __HAL_UART_DISABLE(huart); #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) if (huart->MspDeInitCallback == NULL) { huart->MspDeInitCallback = HAL_UART_MspDeInit; } /* DeInit the low level hardware */ huart->MspDeInitCallback(huart); #else /* DeInit the low level hardware */ HAL_UART_MspDeInit(huart); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_RESET; huart->RxState = HAL_UART_STATE_RESET; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* Process Unlock */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief UART MSP Init. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_MspInit(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_MspInit could be implemented in the user file */ } /** * @brief UART MSP DeInit. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_MspDeInit(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_MspDeInit could be implemented in the user file */ } #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /** * @brief Register a User UART Callback * To be used instead of the weak predefined callback * @param huart uart handle * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_UART_TX_HALFCOMPLETE_CB_ID Tx Half Complete Callback ID * @arg @ref HAL_UART_TX_COMPLETE_CB_ID Tx Complete Callback ID * @arg @ref HAL_UART_RX_HALFCOMPLETE_CB_ID Rx Half Complete Callback ID * @arg @ref HAL_UART_RX_COMPLETE_CB_ID Rx Complete Callback ID * @arg @ref HAL_UART_ERROR_CB_ID Error Callback ID * @arg @ref HAL_UART_ABORT_COMPLETE_CB_ID Abort Complete Callback ID * @arg @ref HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID Abort Transmit Complete Callback ID * @arg @ref HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID Abort Receive Complete Callback ID * @arg @ref HAL_UART_MSPINIT_CB_ID MspInit Callback ID * @arg @ref HAL_UART_MSPDEINIT_CB_ID MspDeInit Callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_UART_RegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID, pUART_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(huart); if (huart->gState == HAL_UART_STATE_READY) { switch (CallbackID) { case HAL_UART_TX_HALFCOMPLETE_CB_ID : huart->TxHalfCpltCallback = pCallback; break; case HAL_UART_TX_COMPLETE_CB_ID : huart->TxCpltCallback = pCallback; break; case HAL_UART_RX_HALFCOMPLETE_CB_ID : huart->RxHalfCpltCallback = pCallback; break; case HAL_UART_RX_COMPLETE_CB_ID : huart->RxCpltCallback = pCallback; break; case HAL_UART_ERROR_CB_ID : huart->ErrorCallback = pCallback; break; case HAL_UART_ABORT_COMPLETE_CB_ID : huart->AbortCpltCallback = pCallback; break; case HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID : huart->AbortTransmitCpltCallback = pCallback; break; case HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID : huart->AbortReceiveCpltCallback = pCallback; break; case HAL_UART_MSPINIT_CB_ID : huart->MspInitCallback = pCallback; break; case HAL_UART_MSPDEINIT_CB_ID : huart->MspDeInitCallback = pCallback; break; default : /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (huart->gState == HAL_UART_STATE_RESET) { switch (CallbackID) { case HAL_UART_MSPINIT_CB_ID : huart->MspInitCallback = pCallback; break; case HAL_UART_MSPDEINIT_CB_ID : huart->MspDeInitCallback = pCallback; break; default : /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(huart); return status; } /** * @brief Unregister an UART Callback * UART callaback is redirected to the weak predefined callback * @param huart uart handle * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * @arg @ref HAL_UART_TX_HALFCOMPLETE_CB_ID Tx Half Complete Callback ID * @arg @ref HAL_UART_TX_COMPLETE_CB_ID Tx Complete Callback ID * @arg @ref HAL_UART_RX_HALFCOMPLETE_CB_ID Rx Half Complete Callback ID * @arg @ref HAL_UART_RX_COMPLETE_CB_ID Rx Complete Callback ID * @arg @ref HAL_UART_ERROR_CB_ID Error Callback ID * @arg @ref HAL_UART_ABORT_COMPLETE_CB_ID Abort Complete Callback ID * @arg @ref HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID Abort Transmit Complete Callback ID * @arg @ref HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID Abort Receive Complete Callback ID * @arg @ref HAL_UART_MSPINIT_CB_ID MspInit Callback ID * @arg @ref HAL_UART_MSPDEINIT_CB_ID MspDeInit Callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_UART_UnRegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(huart); if (HAL_UART_STATE_READY == huart->gState) { switch (CallbackID) { case HAL_UART_TX_HALFCOMPLETE_CB_ID : huart->TxHalfCpltCallback = HAL_UART_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ break; case HAL_UART_TX_COMPLETE_CB_ID : huart->TxCpltCallback = HAL_UART_TxCpltCallback; /* Legacy weak TxCpltCallback */ break; case HAL_UART_RX_HALFCOMPLETE_CB_ID : huart->RxHalfCpltCallback = HAL_UART_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ break; case HAL_UART_RX_COMPLETE_CB_ID : huart->RxCpltCallback = HAL_UART_RxCpltCallback; /* Legacy weak RxCpltCallback */ break; case HAL_UART_ERROR_CB_ID : huart->ErrorCallback = HAL_UART_ErrorCallback; /* Legacy weak ErrorCallback */ break; case HAL_UART_ABORT_COMPLETE_CB_ID : huart->AbortCpltCallback = HAL_UART_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ break; case HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID : huart->AbortTransmitCpltCallback = HAL_UART_AbortTransmitCpltCallback; /* Legacy weak AbortTransmitCpltCallback */ break; case HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID : huart->AbortReceiveCpltCallback = HAL_UART_AbortReceiveCpltCallback; /* Legacy weak AbortReceiveCpltCallback */ break; case HAL_UART_MSPINIT_CB_ID : huart->MspInitCallback = HAL_UART_MspInit; /* Legacy weak MspInitCallback */ break; case HAL_UART_MSPDEINIT_CB_ID : huart->MspDeInitCallback = HAL_UART_MspDeInit; /* Legacy weak MspDeInitCallback */ break; default : /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_UART_STATE_RESET == huart->gState) { switch (CallbackID) { case HAL_UART_MSPINIT_CB_ID : huart->MspInitCallback = HAL_UART_MspInit; break; case HAL_UART_MSPDEINIT_CB_ID : huart->MspDeInitCallback = HAL_UART_MspDeInit; break; default : /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(huart); return status; } /** * @brief Register a User UART Rx Event Callback * To be used instead of the weak predefined callback * @param huart Uart handle * @param pCallback Pointer to the Rx Event Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_UART_RegisterRxEventCallback(UART_HandleTypeDef *huart, pUART_RxEventCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(huart); if (huart->gState == HAL_UART_STATE_READY) { huart->RxEventCallback = pCallback; } else { huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(huart); return status; } /** * @brief UnRegister the UART Rx Event Callback * UART Rx Event Callback is redirected to the weak HAL_UARTEx_RxEventCallback() predefined callback * @param huart Uart handle * @retval HAL status */ HAL_StatusTypeDef HAL_UART_UnRegisterRxEventCallback(UART_HandleTypeDef *huart) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(huart); if (huart->gState == HAL_UART_STATE_READY) { huart->RxEventCallback = HAL_UARTEx_RxEventCallback; /* Legacy weak UART Rx Event Callback */ } else { huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(huart); return status; } #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup UART_Exported_Functions_Group2 IO operation functions * @brief UART Transmit and Receive functions * @verbatim =============================================================================== ##### IO operation functions ##### =============================================================================== This subsection provides a set of functions allowing to manage the UART asynchronous and Half duplex data transfers. (#) There are two modes of transfer: (+) Blocking mode: The communication is performed in polling mode. The HAL status of all data processing is returned by the same function after finishing transfer. (+) Non-Blocking mode: The communication is performed using Interrupts or DMA, these API's return the HAL status. The end of the data processing will be indicated through the dedicated UART IRQ when using Interrupt mode or the DMA IRQ when using DMA mode. The HAL_UART_TxCpltCallback(), HAL_UART_RxCpltCallback() user callbacks will be executed respectively at the end of the transmit or receive process The HAL_UART_ErrorCallback()user callback will be executed when a communication error is detected. (#) Blocking mode API's are : (+) HAL_UART_Transmit() (+) HAL_UART_Receive() (#) Non-Blocking mode API's with Interrupt are : (+) HAL_UART_Transmit_IT() (+) HAL_UART_Receive_IT() (+) HAL_UART_IRQHandler() (#) Non-Blocking mode API's with DMA are : (+) HAL_UART_Transmit_DMA() (+) HAL_UART_Receive_DMA() (+) HAL_UART_DMAPause() (+) HAL_UART_DMAResume() (+) HAL_UART_DMAStop() (#) A set of Transfer Complete Callbacks are provided in Non_Blocking mode: (+) HAL_UART_TxHalfCpltCallback() (+) HAL_UART_TxCpltCallback() (+) HAL_UART_RxHalfCpltCallback() (+) HAL_UART_RxCpltCallback() (+) HAL_UART_ErrorCallback() (#) Non-Blocking mode transfers could be aborted using Abort API's : (+) HAL_UART_Abort() (+) HAL_UART_AbortTransmit() (+) HAL_UART_AbortReceive() (+) HAL_UART_Abort_IT() (+) HAL_UART_AbortTransmit_IT() (+) HAL_UART_AbortReceive_IT() (#) For Abort services based on interrupts (HAL_UART_Abortxxx_IT), a set of Abort Complete Callbacks are provided: (+) HAL_UART_AbortCpltCallback() (+) HAL_UART_AbortTransmitCpltCallback() (+) HAL_UART_AbortReceiveCpltCallback() (#) A Rx Event Reception Callback (Rx event notification) is available for Non_Blocking modes of enhanced reception services: (+) HAL_UARTEx_RxEventCallback() (#) In Non-Blocking mode transfers, possible errors are split into 2 categories. Errors are handled as follows : (+) Error is considered as Recoverable and non blocking : Transfer could go till end, but error severity is to be evaluated by user : this concerns Frame Error, Parity Error or Noise Error in Interrupt mode reception . Received character is then retrieved and stored in Rx buffer, Error code is set to allow user to identify error type, and HAL_UART_ErrorCallback() user callback is executed. Transfer is kept ongoing on UART side. If user wants to abort it, Abort services should be called by user. (+) Error is considered as Blocking : Transfer could not be completed properly and is aborted. This concerns Overrun Error In Interrupt mode reception and all errors in DMA mode. Error code is set to allow user to identify error type, and HAL_UART_ErrorCallback() user callback is executed. -@- In the Half duplex communication, it is forbidden to run the transmit and receive process in parallel, the UART state HAL_UART_STATE_BUSY_TX_RX can't be useful. @endverbatim * @{ */ /** * @brief Sends an amount of data in blocking mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the sent data is handled as a set of u16. In this case, Size must indicate the number * of u16 provided through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout) { uint8_t *pdata8bits; uint16_t *pdata16bits; uint32_t tickstart = 0U; /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_BUSY_TX; /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); huart->TxXferSize = Size; huart->TxXferCount = Size; /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) { pdata8bits = NULL; pdata16bits = (uint16_t *) pData; } else { pdata8bits = pData; pdata16bits = NULL; } /* Process Unlocked */ __HAL_UNLOCK(huart); while (huart->TxXferCount > 0U) { if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK) { return HAL_TIMEOUT; } if (pdata8bits == NULL) { huart->Instance->DR = (uint16_t)(*pdata16bits & 0x01FFU); pdata16bits++; } else { huart->Instance->DR = (uint8_t)(*pdata8bits & 0xFFU); pdata8bits++; } huart->TxXferCount--; } if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK) { return HAL_TIMEOUT; } /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receives an amount of data in blocking mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the received data is handled as a set of u16. In this case, Size must indicate the number * of u16 available through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout) { uint8_t *pdata8bits; uint16_t *pdata16bits; uint32_t tickstart = 0U; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); huart->ErrorCode = HAL_UART_ERROR_NONE; huart->RxState = HAL_UART_STATE_BUSY_RX; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); huart->RxXferSize = Size; huart->RxXferCount = Size; /* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) { pdata8bits = NULL; pdata16bits = (uint16_t *) pData; } else { pdata8bits = pData; pdata16bits = NULL; } /* Process Unlocked */ __HAL_UNLOCK(huart); /* Check the remain data to be received */ while (huart->RxXferCount > 0U) { if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_RXNE, RESET, tickstart, Timeout) != HAL_OK) { return HAL_TIMEOUT; } if (pdata8bits == NULL) { *pdata16bits = (uint16_t)(huart->Instance->DR & 0x01FF); pdata16bits++; } else { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); } pdata8bits++; } huart->RxXferCount--; } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Sends an amount of data in non blocking mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the sent data is handled as a set of u16. In this case, Size must indicate the number * of u16 provided through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); huart->pTxBuffPtr = pData; huart->TxXferSize = Size; huart->TxXferCount = Size; huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_BUSY_TX; /* Process Unlocked */ __HAL_UNLOCK(huart); /* Enable the UART Transmit data register empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TXE); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receives an amount of data in non blocking mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the received data is handled as a set of u16. In this case, Size must indicate the number * of u16 available through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); /* Set Reception type to Standard reception */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; return(UART_Start_Receive_IT(huart, pData, Size)); } else { return HAL_BUSY; } } /** * @brief Sends an amount of data in DMA mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the sent data is handled as a set of u16. In this case, Size must indicate the number * of u16 provided through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { uint32_t *tmp; /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); huart->pTxBuffPtr = pData; huart->TxXferSize = Size; huart->TxXferCount = Size; huart->ErrorCode = HAL_UART_ERROR_NONE; huart->gState = HAL_UART_STATE_BUSY_TX; /* Set the UART DMA transfer complete callback */ huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; /* Set the UART DMA Half transfer complete callback */ huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; /* Set the DMA error callback */ huart->hdmatx->XferErrorCallback = UART_DMAError; /* Set the DMA abort callback */ huart->hdmatx->XferAbortCallback = NULL; /* Enable the UART transmit DMA stream */ tmp = (uint32_t *)&pData; HAL_DMA_Start_IT(huart->hdmatx, *(uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size); /* Clear the TC flag in the SR register by writing 0 to it */ __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC); /* Process Unlocked */ __HAL_UNLOCK(huart); /* Enable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receives an amount of data in DMA mode. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), * the received data is handled as a set of u16. In this case, Size must indicate the number * of u16 available through pData. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @note When the UART parity is enabled (PCE = 1) the received data contains the parity bit. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(huart); /* Set Reception type to Standard reception */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; return(UART_Start_Receive_DMA(huart, pData, Size)); } else { return HAL_BUSY; } } /** * @brief Pauses the DMA Transfer. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_DMAPause(UART_HandleTypeDef *huart) { uint32_t dmarequest = 0x00U; /* Process Locked */ __HAL_LOCK(huart); dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) { /* Disable the UART DMA Tx request */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); } dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) { /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Disable the UART DMA Rx request */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); } /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Resumes the DMA Transfer. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_DMAResume(UART_HandleTypeDef *huart) { /* Process Locked */ __HAL_LOCK(huart); if (huart->gState == HAL_UART_STATE_BUSY_TX) { /* Enable the UART DMA Tx request */ SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); } if (huart->RxState == HAL_UART_STATE_BUSY_RX) { /* Clear the Overrun flag before resuming the Rx transfer*/ __HAL_UART_CLEAR_OREFLAG(huart); /* Re-enable PE and ERR (Frame error, noise error, overrun error) interrupts */ SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); SET_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Enable the UART DMA Rx request */ SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); } /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Stops the DMA Transfer. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_DMAStop(UART_HandleTypeDef *huart) { uint32_t dmarequest = 0x00U; /* The Lock is not implemented on this API to allow the user application to call the HAL UART API under callbacks HAL_UART_TxCpltCallback() / HAL_UART_RxCpltCallback(): when calling HAL_DMA_Abort() API the DMA TX/RX Transfer complete interrupt is generated and the correspond call back is executed HAL_UART_TxCpltCallback() / HAL_UART_RxCpltCallback() */ /* Stop UART DMA Tx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Abort the UART DMA Tx stream */ if (huart->hdmatx != NULL) { HAL_DMA_Abort(huart->hdmatx); } UART_EndTxTransfer(huart); } /* Stop UART DMA Rx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream */ if (huart->hdmarx != NULL) { HAL_DMA_Abort(huart->hdmarx); } UART_EndRxTransfer(huart); } return HAL_OK; } /** * @brief Receive an amount of data in blocking mode till either the expected number of data is received or an IDLE event occurs. * @note HAL_OK is returned if reception is completed (expected number of data has been received) * or if reception is stopped after IDLE event (less than the expected number of data has been received) * In this case, RxLen output parameter indicates number of data available in reception buffer. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M = 01), * the received data is handled as a set of uint16_t. In this case, Size must indicate the number * of uint16_t available through pData. * @param huart UART handle. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). * @param Size Amount of data elements (uint8_t or uint16_t) to be received. * @param RxLen Number of data elements finally received (could be lower than Size, in case reception ends on IDLE event) * @param Timeout Timeout duration expressed in ms (covers the whole reception sequence). * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint16_t *RxLen, uint32_t Timeout) { uint8_t *pdata8bits; uint16_t *pdata16bits; uint32_t tickstart; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } __HAL_LOCK(huart); huart->ErrorCode = HAL_UART_ERROR_NONE; huart->RxState = HAL_UART_STATE_BUSY_RX; huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); huart->RxXferSize = Size; huart->RxXferCount = Size; /* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) { pdata8bits = NULL; pdata16bits = (uint16_t *) pData; } else { pdata8bits = pData; pdata16bits = NULL; } __HAL_UNLOCK(huart); /* Initialize output number of received elements */ *RxLen = 0U; /* as long as data have to be received */ while (huart->RxXferCount > 0U) { /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); /* If Set, but no data ever received, clear flag without exiting loop */ /* If Set, and data has already been received, this means Idle Event is valid : End reception */ if (*RxLen > 0U) { huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } } /* Check if RXNE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RXNE)) { if (pdata8bits == NULL) { *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); pdata16bits++; } else { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); } pdata8bits++; } /* Increment number of received elements */ *RxLen += 1U; huart->RxXferCount--; } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) { huart->RxState = HAL_UART_STATE_READY; return HAL_TIMEOUT; } } } /* Set number of received elements in output parameter : RxLen */ *RxLen = huart->RxXferSize - huart->RxXferCount; /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Receive an amount of data in interrupt mode till either the expected number of data is received or an IDLE event occurs. * @note Reception is initiated by this function call. Further progress of reception is achieved thanks * to UART interrupts raised by RXNE and IDLE events. Callback is called at end of reception indicating * number of received data elements. * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M = 01), * the received data is handled as a set of uint16_t. In this case, Size must indicate the number * of uint16_t available through pData. * @param huart UART handle. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). * @param Size Amount of data elements (uint8_t or uint16_t) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } __HAL_LOCK(huart); /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; status = UART_Start_Receive_IT(huart, pData, Size); /* Check Rx process has been successfully started */ if (status == HAL_OK) { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { __HAL_UART_CLEAR_IDLEFLAG(huart); SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); } else { /* In case of errors already pending when reception is started, Interrupts may have already been raised and lead to reception abortion. (Overrun error for instance). In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ status = HAL_ERROR; } } return status; } else { return HAL_BUSY; } } /** * @brief Receive an amount of data in DMA mode till either the expected number of data is received or an IDLE event occurs. * @note Reception is initiated by this function call. Further progress of reception is achieved thanks * to DMA services, transferring automatically received data elements in user reception buffer and * calling registered callbacks at half/end of reception. UART IDLE events are also used to consider * reception phase as ended. In all cases, callback execution will indicate number of received data elements. * @note When the UART parity is enabled (PCE = 1), the received data contain * the parity bit (MSB position). * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M = 01), * the received data is handled as a set of uint16_t. In this case, Size must indicate the number * of uint16_t available through pData. * @param huart UART handle. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). * @param Size Amount of data elements (uint8_t or uint16_t) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) { if ((pData == NULL) || (Size == 0U)) { return HAL_ERROR; } __HAL_LOCK(huart); /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; status = UART_Start_Receive_DMA(huart, pData, Size); /* Check Rx process has been successfully started */ if (status == HAL_OK) { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { __HAL_UART_CLEAR_IDLEFLAG(huart); SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); } else { /* In case of errors already pending when reception is started, Interrupts may have already been raised and lead to reception abortion. (Overrun error for instance). In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ status = HAL_ERROR; } } return status; } else { return HAL_BUSY; } } /** * @brief Abort ongoing transfers (blocking mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Tx and Rx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Abort(UART_HandleTypeDef *huart) { /* Disable TXEIE, TCIE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_TCIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); } /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Abort the UART DMA Tx stream: use blocking DMA Abort API (no callback) */ if (huart->hdmatx != NULL) { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmatx->XferAbortCallback = NULL; if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) { if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; return HAL_TIMEOUT; } } } } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream: use blocking DMA Abort API (no callback) */ if (huart->hdmarx != NULL) { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = NULL; if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) { if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; return HAL_TIMEOUT; } } } } /* Reset Tx and Rx transfer counters */ huart->TxXferCount = 0x00U; huart->RxXferCount = 0x00U; /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; /* Restore huart->RxState and huart->gState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->gState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; return HAL_OK; } /** * @brief Abort ongoing Transmit transfer (blocking mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing Tx transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Tx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortTransmit(UART_HandleTypeDef *huart) { /* Disable TXEIE and TCIE interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Abort the UART DMA Tx stream : use blocking DMA Abort API (no callback) */ if (huart->hdmatx != NULL) { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmatx->XferAbortCallback = NULL; if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) { if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; return HAL_TIMEOUT; } } } } /* Reset Tx transfer counter */ huart->TxXferCount = 0x00U; /* Restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; return HAL_OK; } /** * @brief Abort ongoing Receive transfer (blocking mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing Rx transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Rx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart) { /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream : use blocking DMA Abort API (no callback) */ if (huart->hdmarx != NULL) { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = NULL; if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) { if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; return HAL_TIMEOUT; } } } } /* Reset Rx transfer counter */ huart->RxXferCount = 0x00U; /* Restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; return HAL_OK; } /** * @brief Abort ongoing transfers (Interrupt mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Tx and Rx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) * - Set handle State to READY * - At abort completion, call user abort complete callback * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be * considered as completed only when user abort complete callback is executed (not when exiting function). * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Abort_IT(UART_HandleTypeDef *huart) { uint32_t AbortCplt = 0x01U; /* Disable TXEIE, TCIE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_TCIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); } /* If DMA Tx and/or DMA Rx Handles are associated to UART Handle, DMA Abort complete callbacks should be initialised before any call to DMA Abort functions */ /* DMA Tx Handle is valid */ if (huart->hdmatx != NULL) { /* Set DMA Abort Complete callback if UART DMA Tx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) { huart->hdmatx->XferAbortCallback = UART_DMATxAbortCallback; } else { huart->hdmatx->XferAbortCallback = NULL; } } /* DMA Rx Handle is valid */ if (huart->hdmarx != NULL) { /* Set DMA Abort Complete callback if UART DMA Rx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { huart->hdmarx->XferAbortCallback = UART_DMARxAbortCallback; } else { huart->hdmarx->XferAbortCallback = NULL; } } /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) { /* Disable DMA Tx at UART level */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Abort the UART DMA Tx stream : use non blocking DMA Abort API (callback) */ if (huart->hdmatx != NULL) { /* UART Tx DMA Abort callback has already been initialised : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ /* Abort DMA TX */ if (HAL_DMA_Abort_IT(huart->hdmatx) != HAL_OK) { huart->hdmatx->XferAbortCallback = NULL; } else { AbortCplt = 0x00U; } } } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream : use non blocking DMA Abort API (callback) */ if (huart->hdmarx != NULL) { /* UART Rx DMA Abort callback has already been initialised : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ /* Abort DMA RX */ if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) { huart->hdmarx->XferAbortCallback = NULL; AbortCplt = 0x01U; } else { AbortCplt = 0x00U; } } } /* if no DMA abort complete callback execution is required => call user Abort Complete callback */ if (AbortCplt == 0x01U) { /* Reset Tx and Rx transfer counters */ huart->TxXferCount = 0x00U; huart->RxXferCount = 0x00U; /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; } /** * @brief Abort ongoing Transmit transfer (Interrupt mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing Tx transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Tx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) * - Set handle State to READY * - At abort completion, call user abort complete callback * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be * considered as completed only when user abort complete callback is executed (not when exiting function). * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortTransmit_IT(UART_HandleTypeDef *huart) { /* Disable TXEIE and TCIE interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Abort the UART DMA Tx stream : use blocking DMA Abort API (no callback) */ if (huart->hdmatx != NULL) { /* Set the UART DMA Abort callback : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ huart->hdmatx->XferAbortCallback = UART_DMATxOnlyAbortCallback; /* Abort DMA TX */ if (HAL_DMA_Abort_IT(huart->hdmatx) != HAL_OK) { /* Call Directly huart->hdmatx->XferAbortCallback function in case of error */ huart->hdmatx->XferAbortCallback(huart->hdmatx); } } else { /* Reset Tx transfer counter */ huart->TxXferCount = 0x00U; /* Restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Transmit Complete Callback */ huart->AbortTransmitCpltCallback(huart); #else /* Call legacy weak Abort Transmit Complete Callback */ HAL_UART_AbortTransmitCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } else { /* Reset Tx transfer counter */ huart->TxXferCount = 0x00U; /* Restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Transmit Complete Callback */ huart->AbortTransmitCpltCallback(huart); #else /* Call legacy weak Abort Transmit Complete Callback */ HAL_UART_AbortTransmitCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; } /** * @brief Abort ongoing Receive transfer (Interrupt mode). * @param huart UART handle. * @note This procedure could be used for aborting any ongoing Rx transfer started in Interrupt or DMA mode. * This procedure performs following operations : * - Disable UART Interrupts (Rx) * - Disable the DMA transfer in the peripheral register (if enabled) * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) * - Set handle State to READY * - At abort completion, call user abort complete callback * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be * considered as completed only when user abort complete callback is executed (not when exiting function). * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortReceive_IT(UART_HandleTypeDef *huart) { /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream : use blocking DMA Abort API (no callback) */ if (huart->hdmarx != NULL) { /* Set the UART DMA Abort callback : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMARxOnlyAbortCallback; /* Abort DMA RX */ if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) { /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); } } else { /* Reset Rx transfer counter */ huart->RxXferCount = 0x00U; /* Restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Receive Complete Callback */ huart->AbortReceiveCpltCallback(huart); #else /* Call legacy weak Abort Receive Complete Callback */ HAL_UART_AbortReceiveCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } else { /* Reset Rx transfer counter */ huart->RxXferCount = 0x00U; /* Restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* As no DMA to be aborted, call directly user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Receive Complete Callback */ huart->AbortReceiveCpltCallback(huart); #else /* Call legacy weak Abort Receive Complete Callback */ HAL_UART_AbortReceiveCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; } /** * @brief This function handles UART interrupt request. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { uint32_t isrflags = READ_REG(huart->Instance->SR); uint32_t cr1its = READ_REG(huart->Instance->CR1); uint32_t cr3its = READ_REG(huart->Instance->CR3); uint32_t errorflags = 0x00U; uint32_t dmarequest = 0x00U; /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE)); if (errorflags == RESET) { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) { UART_Receive_IT(huart); return; } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) { huart->ErrorCode |= HAL_UART_ERROR_PE; } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) { huart->ErrorCode |= HAL_UART_ERROR_NE; } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) { huart->ErrorCode |= HAL_UART_ERROR_FE; } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) || ((cr3its & USART_CR3_EIE) != RESET))) { huart->ErrorCode |= HAL_UART_ERROR_ORE; } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) { UART_Receive_IT(huart); } /* If Overrun error occurs, or if any error occurs in DMA mode reception, consider error as blocking */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) { /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ UART_EndRxTransfer(huart); /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* Abort the UART DMA Rx stream */ if (huart->hdmarx != NULL) { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); } } else { /* Call user error callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } else { /* Call user error callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } else { /* Non Blocking error : transfer could go on. Error is notified to user through user error callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; } } return; } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ( (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) &&((isrflags & USART_SR_IDLE) != 0U) &&((cr1its & USART_SR_IDLE) != 0U)) { __HAL_UART_CLEAR_IDLEFLAG(huart); /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); if ( (nb_remaining_rx_data > 0U) &&(nb_remaining_rx_data < huart->RxXferSize)) { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); } #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #endif } return; } else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; if ( (huart->RxXferCount > 0U) &&(nb_rx_data > 0U) ) { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); #endif } return; } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) { UART_Transmit_IT(huart); return; } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) { UART_EndTransmit_IT(huart); return; } } /** * @brief Tx Transfer completed callbacks. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxCpltCallback could be implemented in the user file */ } /** * @brief Tx Half Transfer completed callbacks. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxHalfCpltCallback could be implemented in the user file */ } /** * @brief Rx Transfer completed callbacks. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxCpltCallback could be implemented in the user file */ } /** * @brief Rx Half Transfer completed callbacks. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxHalfCpltCallback could be implemented in the user file */ } /** * @brief UART error callbacks. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_ErrorCallback could be implemented in the user file */ } /** * @brief UART Abort Complete callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UART_AbortCpltCallback can be implemented in the user file. */ } /** * @brief UART Abort Complete callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_AbortTransmitCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UART_AbortTransmitCpltCallback can be implemented in the user file. */ } /** * @brief UART Abort Receive Complete callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_AbortReceiveCpltCallback(UART_HandleTypeDef *huart) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UART_AbortReceiveCpltCallback can be implemented in the user file. */ } /** * @brief Reception Event Callback (Rx event notification called after use of advanced reception service). * @param huart UART handle * @param Size Number of data available in application reception buffer (indicates a position in * reception buffer until which, data are available) * @retval None */ __weak void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { /* Prevent unused argument(s) compilation warning */ UNUSED(huart); UNUSED(Size); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_RxEventCallback can be implemented in the user file. */ } /** * @} */ /** @defgroup UART_Exported_Functions_Group3 Peripheral Control functions * @brief UART control functions * @verbatim ============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to control the UART: (+) HAL_LIN_SendBreak() API can be helpful to transmit the break character. (+) HAL_MultiProcessor_EnterMuteMode() API can be helpful to enter the UART in mute mode. (+) HAL_MultiProcessor_ExitMuteMode() API can be helpful to exit the UART mute mode by software. (+) HAL_HalfDuplex_EnableTransmitter() API to enable the UART transmitter and disables the UART receiver in Half Duplex mode (+) HAL_HalfDuplex_EnableReceiver() API to enable the UART receiver and disables the UART transmitter in Half Duplex mode @endverbatim * @{ */ /** * @brief Transmits break characters. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_LIN_SendBreak(UART_HandleTypeDef *huart) { /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); /* Process Locked */ __HAL_LOCK(huart); huart->gState = HAL_UART_STATE_BUSY; /* Send break characters */ SET_BIT(huart->Instance->CR1, USART_CR1_SBK); huart->gState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Enters the UART in mute mode. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_MultiProcessor_EnterMuteMode(UART_HandleTypeDef *huart) { /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); /* Process Locked */ __HAL_LOCK(huart); huart->gState = HAL_UART_STATE_BUSY; /* Enable the USART mute mode by setting the RWU bit in the CR1 register */ SET_BIT(huart->Instance->CR1, USART_CR1_RWU); huart->gState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Exits the UART mute mode: wake up software. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_MultiProcessor_ExitMuteMode(UART_HandleTypeDef *huart) { /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); /* Process Locked */ __HAL_LOCK(huart); huart->gState = HAL_UART_STATE_BUSY; /* Disable the USART mute mode by clearing the RWU bit in the CR1 register */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_RWU); huart->gState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Enables the UART transmitter and disables the UART receiver. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_HalfDuplex_EnableTransmitter(UART_HandleTypeDef *huart) { uint32_t tmpreg = 0x00U; /* Process Locked */ __HAL_LOCK(huart); huart->gState = HAL_UART_STATE_BUSY; /*-------------------------- USART CR1 Configuration -----------------------*/ tmpreg = huart->Instance->CR1; /* Clear TE and RE bits */ tmpreg &= (uint32_t)~((uint32_t)(USART_CR1_TE | USART_CR1_RE)); /* Enable the USART's transmit interface by setting the TE bit in the USART CR1 register */ tmpreg |= (uint32_t)USART_CR1_TE; /* Write to USART CR1 */ WRITE_REG(huart->Instance->CR1, (uint32_t)tmpreg); huart->gState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @brief Enables the UART receiver and disables the UART transmitter. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver(UART_HandleTypeDef *huart) { uint32_t tmpreg = 0x00U; /* Process Locked */ __HAL_LOCK(huart); huart->gState = HAL_UART_STATE_BUSY; /*-------------------------- USART CR1 Configuration -----------------------*/ tmpreg = huart->Instance->CR1; /* Clear TE and RE bits */ tmpreg &= (uint32_t)~((uint32_t)(USART_CR1_TE | USART_CR1_RE)); /* Enable the USART's receive interface by setting the RE bit in the USART CR1 register */ tmpreg |= (uint32_t)USART_CR1_RE; /* Write to USART CR1 */ WRITE_REG(huart->Instance->CR1, (uint32_t)tmpreg); huart->gState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_OK; } /** * @} */ /** @defgroup UART_Exported_Functions_Group4 Peripheral State and Errors functions * @brief UART State and Errors functions * @verbatim ============================================================================== ##### Peripheral State and Errors functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to return the State of UART communication process, return Peripheral Errors occurred during communication process (+) HAL_UART_GetState() API can be helpful to check in run-time the state of the UART peripheral. (+) HAL_UART_GetError() check in run-time errors that could be occurred during communication. @endverbatim * @{ */ /** * @brief Returns the UART state. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL state */ HAL_UART_StateTypeDef HAL_UART_GetState(UART_HandleTypeDef *huart) { uint32_t temp1 = 0x00U, temp2 = 0x00U; temp1 = huart->gState; temp2 = huart->RxState; return (HAL_UART_StateTypeDef)(temp1 | temp2); } /** * @brief Return the UART error code * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART. * @retval UART Error Code */ uint32_t HAL_UART_GetError(UART_HandleTypeDef *huart) { return huart->ErrorCode; } /** * @} */ /** * @} */ /** @defgroup UART_Private_Functions UART Private Functions * @{ */ /** * @brief Initialize the callbacks to their default values. * @param huart UART handle. * @retval none */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) void UART_InitCallbacksToDefault(UART_HandleTypeDef *huart) { /* Init the UART Callback settings */ huart->TxHalfCpltCallback = HAL_UART_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ huart->TxCpltCallback = HAL_UART_TxCpltCallback; /* Legacy weak TxCpltCallback */ huart->RxHalfCpltCallback = HAL_UART_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ huart->RxCpltCallback = HAL_UART_RxCpltCallback; /* Legacy weak RxCpltCallback */ huart->ErrorCallback = HAL_UART_ErrorCallback; /* Legacy weak ErrorCallback */ huart->AbortCpltCallback = HAL_UART_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ huart->AbortTransmitCpltCallback = HAL_UART_AbortTransmitCpltCallback; /* Legacy weak AbortTransmitCpltCallback */ huart->AbortReceiveCpltCallback = HAL_UART_AbortReceiveCpltCallback; /* Legacy weak AbortReceiveCpltCallback */ huart->RxEventCallback = HAL_UARTEx_RxEventCallback; /* Legacy weak RxEventCallback */ } #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ /** * @brief DMA UART transmit process complete callback. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) { huart->TxXferCount = 0x00U; /* Disable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); /* Enable the UART Transmit Complete Interrupt */ SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); } /* DMA Circular mode */ else { #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } /** * @brief DMA UART transmit process half complete callback * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxHalfCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxHalfCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief DMA UART receive process complete callback. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) { huart->RxXferCount = 0U; /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Disable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; /* If Reception till IDLE event has been selected, Disable IDLE Interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); } } /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } else { /* In other cases : use Rx Complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxCpltCallback(huart); #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } /** * @brief DMA UART receive process half complete callback * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize/2U); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize/2U); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } else { /* In other cases : use Rx Half Complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Half complete callback*/ huart->RxHalfCpltCallback(huart); #else /*Call legacy weak Rx Half complete callback*/ HAL_UART_RxHalfCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } /** * @brief DMA UART communication error callback. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAError(DMA_HandleTypeDef *hdma) { uint32_t dmarequest = 0x00U; UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Stop UART DMA Tx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) { huart->TxXferCount = 0x00U; UART_EndTxTransfer(huart); } /* Stop UART DMA Rx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) { huart->RxXferCount = 0x00U; UART_EndRxTransfer(huart); } huart->ErrorCode |= HAL_UART_ERROR_DMA; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief This function handles UART Communication Timeout. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param Flag specifies the UART flag to check. * @param Status The new Flag status (SET or RESET). * @param Tickstart Tick start value * @param Timeout Timeout duration * @retval HAL status */ static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) { /* Wait until flag is set */ while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) { if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) { /* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(huart); return HAL_TIMEOUT; } } } return HAL_OK; } /** * @brief Start Receive operation in interrupt mode. * @note This function could be called by all HAL UART API providing reception in Interrupt mode. * @note When calling this function, parameters validity is considered as already checked, * i.e. Rx State, buffer address, ... * UART Handle is assumed as Locked. * @param huart UART handle. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { huart->pRxBuffPtr = pData; huart->RxXferSize = Size; huart->RxXferCount = Size; huart->ErrorCode = HAL_UART_ERROR_NONE; huart->RxState = HAL_UART_STATE_BUSY_RX; /* Process Unlocked */ __HAL_UNLOCK(huart); /* Enable the UART Parity Error Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_PE); /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); /* Enable the UART Data Register not empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE); return HAL_OK; } /** * @brief Start Receive operation in DMA mode. * @note This function could be called by all HAL UART API providing reception in DMA mode. * @note When calling this function, parameters validity is considered as already checked, * i.e. Rx State, buffer address, ... * UART Handle is assumed as Locked. * @param huart UART handle. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { uint32_t *tmp; huart->pRxBuffPtr = pData; huart->RxXferSize = Size; huart->ErrorCode = HAL_UART_ERROR_NONE; huart->RxState = HAL_UART_STATE_BUSY_RX; /* Set the UART DMA transfer complete callback */ huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; /* Set the UART DMA Half transfer complete callback */ huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; /* Set the DMA error callback */ huart->hdmarx->XferErrorCallback = UART_DMAError; /* Set the DMA abort callback */ huart->hdmarx->XferAbortCallback = NULL; /* Enable the DMA stream */ tmp = (uint32_t *)&pData; HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size); /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */ __HAL_UART_CLEAR_OREFLAG(huart); /* Process Unlocked */ __HAL_UNLOCK(huart); /* Enable the UART Parity Error Interrupt */ SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ SET_BIT(huart->Instance->CR3, USART_CR3_EIE); /* Enable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); return HAL_OK; } /** * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion). * @param huart UART handle. * @retval None */ static void UART_EndTxTransfer(UART_HandleTypeDef *huart) { /* Disable TXEIE and TCIE interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; } /** * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). * @param huart UART handle. * @retval None */ static void UART_EndRxTransfer(UART_HandleTypeDef *huart) { /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; } /** * @brief DMA UART communication abort callback, when initiated by HAL services on Error * (To be called at end of DMA Abort procedure following error occurrence). * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; huart->RxXferCount = 0x00U; huart->TxXferCount = 0x00U; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief DMA UART Tx communication abort callback, when initiated by user * (To be called at end of DMA Tx Abort procedure following user abort request). * @note When this callback is executed, User Abort complete call back is called only if no * Abort still ongoing for Rx DMA Handle. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxAbortCallback(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; huart->hdmatx->XferAbortCallback = NULL; /* Check if an Abort process is still ongoing */ if (huart->hdmarx != NULL) { if (huart->hdmarx->XferAbortCallback != NULL) { return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; huart->RxXferCount = 0x00U; /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* Call user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief DMA UART Rx communication abort callback, when initiated by user * (To be called at end of DMA Rx Abort procedure following user abort request). * @note When this callback is executed, User Abort complete call back is called only if no * Abort still ongoing for Tx DMA Handle. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxAbortCallback(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; huart->hdmarx->XferAbortCallback = NULL; /* Check if an Abort process is still ongoing */ if (huart->hdmatx != NULL) { if (huart->hdmatx->XferAbortCallback != NULL) { return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; huart->RxXferCount = 0x00U; /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* Call user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief DMA UART Tx communication abort callback, when initiated by user by a call to * HAL_UART_AbortTransmit_IT API (Abort only Tx transfer) * (This callback is executed at end of DMA Tx Abort procedure following user abort request, * and leads to user Tx Abort Complete callback execution). * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxOnlyAbortCallback(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; huart->TxXferCount = 0x00U; /* Restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; /* Call user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Transmit Complete Callback */ huart->AbortTransmitCpltCallback(huart); #else /* Call legacy weak Abort Transmit Complete Callback */ HAL_UART_AbortTransmitCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief DMA UART Rx communication abort callback, when initiated by user by a call to * HAL_UART_AbortReceive_IT API (Abort only Rx transfer) * (This callback is executed at end of DMA Rx Abort procedure following user abort request, * and leads to user Rx Abort Complete callback execution). * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxOnlyAbortCallback(DMA_HandleTypeDef *hdma) { UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; huart->RxXferCount = 0x00U; /* Restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; /* Call user Abort complete callback */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort Receive Complete Callback */ huart->AbortReceiveCpltCallback(huart); #else /* Call legacy weak Abort Receive Complete Callback */ HAL_UART_AbortReceiveCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } /** * @brief Sends an amount of data in non blocking mode. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart) { uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) { tmp = (uint16_t *) huart->pTxBuffPtr; huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); huart->pTxBuffPtr += 2U; } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); } if (--huart->TxXferCount == 0U) { /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Wraps up transmission in non blocking mode. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart) { /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; } /** * @brief Receives an amount of data in non blocking mode * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart) { uint8_t *pdata8bits; uint16_t *pdata16bits; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) { pdata8bits = NULL; pdata16bits = (uint16_t *) huart->pRxBuffPtr; *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); huart->pRxBuffPtr += 2U; } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; pdata16bits = NULL; if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); } huart->pRxBuffPtr += 1U; } if (--huart->RxXferCount == 0U) { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) { /* Disable IDLE interrupt */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); #endif } else { /* Standard reception API called */ #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxCpltCallback(huart); #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; return HAL_OK; } return HAL_OK; } else { return HAL_BUSY; } } /** * @brief Configures the UART peripheral. * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { uint32_t tmpreg; uint32_t pclk; /* Check the parameters */ assert_param(IS_UART_BAUDRATE(huart->Init.BaudRate)); assert_param(IS_UART_STOPBITS(huart->Init.StopBits)); assert_param(IS_UART_PARITY(huart->Init.Parity)); assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); /*-------------------------- USART CR1 Configuration -----------------------*/ /* Configure the UART Word Length, Parity and mode: Set the M bits according to huart->Init.WordLength value Set PCE and PS bits according to huart->Init.Parity value Set TE and RE bits according to huart->Init.Mode value Set OVER8 bit according to huart->Init.OverSampling value */ tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling; MODIFY_REG(huart->Instance->CR1, (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); #if defined(USART6) && defined(UART9) && defined(UART10) if ((huart->Instance == USART1) || (huart->Instance == USART6) || (huart->Instance == UART9) || (huart->Instance == UART10)) { pclk = HAL_RCC_GetPCLK2Freq(); } #elif defined(USART6) if ((huart->Instance == USART1) || (huart->Instance == USART6)) { pclk = HAL_RCC_GetPCLK2Freq(); } #else if (huart->Instance == USART1) { pclk = HAL_RCC_GetPCLK2Freq(); } #endif /* USART6 */ else { pclk = HAL_RCC_GetPCLK1Freq(); } /*-------------------------- USART BRR Configuration ---------------------*/ if (huart->Init.OverSampling == UART_OVERSAMPLING_8) { huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate); } else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } } /** * @} */ #endif /* HAL_UART_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c ================================================ /** ****************************************************************************** * @file stm32f4xx_ll_adc.c * @author MCD Application Team * @brief ADC LL module driver ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ #if defined(USE_FULL_LL_DRIVER) /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_ll_adc.h" #include "stm32f4xx_ll_bus.h" #ifdef USE_FULL_ASSERT #include "stm32_assert.h" #else #define assert_param(expr) ((void)0U) #endif /** @addtogroup STM32F4xx_LL_Driver * @{ */ #if defined (ADC1) || defined (ADC2) || defined (ADC3) /** @addtogroup ADC_LL ADC * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @addtogroup ADC_LL_Private_Macros * @{ */ /* Check of parameters for configuration of ADC hierarchical scope: */ /* common to several ADC instances. */ #define IS_LL_ADC_COMMON_CLOCK(__CLOCK__) \ ( ((__CLOCK__) == LL_ADC_CLOCK_SYNC_PCLK_DIV2) \ || ((__CLOCK__) == LL_ADC_CLOCK_SYNC_PCLK_DIV4) \ || ((__CLOCK__) == LL_ADC_CLOCK_SYNC_PCLK_DIV6) \ || ((__CLOCK__) == LL_ADC_CLOCK_SYNC_PCLK_DIV8) \ ) /* Check of parameters for configuration of ADC hierarchical scope: */ /* ADC instance. */ #define IS_LL_ADC_RESOLUTION(__RESOLUTION__) \ ( ((__RESOLUTION__) == LL_ADC_RESOLUTION_12B) \ || ((__RESOLUTION__) == LL_ADC_RESOLUTION_10B) \ || ((__RESOLUTION__) == LL_ADC_RESOLUTION_8B) \ || ((__RESOLUTION__) == LL_ADC_RESOLUTION_6B) \ ) #define IS_LL_ADC_DATA_ALIGN(__DATA_ALIGN__) \ ( ((__DATA_ALIGN__) == LL_ADC_DATA_ALIGN_RIGHT) \ || ((__DATA_ALIGN__) == LL_ADC_DATA_ALIGN_LEFT) \ ) #define IS_LL_ADC_SCAN_SELECTION(__SCAN_SELECTION__) \ ( ((__SCAN_SELECTION__) == LL_ADC_SEQ_SCAN_DISABLE) \ || ((__SCAN_SELECTION__) == LL_ADC_SEQ_SCAN_ENABLE) \ ) #define IS_LL_ADC_SEQ_SCAN_MODE(__SEQ_SCAN_MODE__) \ ( ((__SCAN_MODE__) == LL_ADC_SEQ_SCAN_DISABLE) \ || ((__SCAN_MODE__) == LL_ADC_SEQ_SCAN_ENABLE) \ ) /* Check of parameters for configuration of ADC hierarchical scope: */ /* ADC group regular */ #define IS_LL_ADC_REG_TRIG_SOURCE(__REG_TRIG_SOURCE__) \ ( ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_SOFTWARE) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM1_CH1) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM1_CH2) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM1_CH3) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM2_CH2) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM2_CH3) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM2_CH4) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM2_TRGO) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM3_CH1) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM3_TRGO) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM4_CH4) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM5_CH1) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM5_CH2) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM5_CH3) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM8_CH1) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_TIM8_TRGO) \ || ((__REG_TRIG_SOURCE__) == LL_ADC_REG_TRIG_EXT_EXTI_LINE11) \ ) #define IS_LL_ADC_REG_CONTINUOUS_MODE(__REG_CONTINUOUS_MODE__) \ ( ((__REG_CONTINUOUS_MODE__) == LL_ADC_REG_CONV_SINGLE) \ || ((__REG_CONTINUOUS_MODE__) == LL_ADC_REG_CONV_CONTINUOUS) \ ) #define IS_LL_ADC_REG_DMA_TRANSFER(__REG_DMA_TRANSFER__) \ ( ((__REG_DMA_TRANSFER__) == LL_ADC_REG_DMA_TRANSFER_NONE) \ || ((__REG_DMA_TRANSFER__) == LL_ADC_REG_DMA_TRANSFER_LIMITED) \ || ((__REG_DMA_TRANSFER__) == LL_ADC_REG_DMA_TRANSFER_UNLIMITED) \ ) #define IS_LL_ADC_REG_FLAG_EOC_SELECTION(__REG_FLAG_EOC_SELECTION__) \ ( ((__REG_FLAG_EOC_SELECTION__) == LL_ADC_REG_FLAG_EOC_SEQUENCE_CONV) \ || ((__REG_FLAG_EOC_SELECTION__) == LL_ADC_REG_FLAG_EOC_UNITARY_CONV) \ ) #define IS_LL_ADC_REG_SEQ_SCAN_LENGTH(__REG_SEQ_SCAN_LENGTH__) \ ( ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_DISABLE) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS) \ || ((__REG_SEQ_SCAN_LENGTH__) == LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS) \ ) #define IS_LL_ADC_REG_SEQ_SCAN_DISCONT_MODE(__REG_SEQ_DISCONT_MODE__) \ ( ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_DISABLE) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_1RANK) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_2RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_3RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_4RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_5RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_6RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_7RANKS) \ || ((__REG_SEQ_DISCONT_MODE__) == LL_ADC_REG_SEQ_DISCONT_8RANKS) \ ) /* Check of parameters for configuration of ADC hierarchical scope: */ /* ADC group injected */ #define IS_LL_ADC_INJ_TRIG_SOURCE(__INJ_TRIG_SOURCE__) \ ( ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_SOFTWARE) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM1_CH4) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM1_TRGO) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM2_CH1) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM2_TRGO) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM3_CH2) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM3_CH4) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM4_CH1) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM4_CH2) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM4_CH3) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM4_TRGO) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM5_CH4) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM5_TRGO) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM8_CH2) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM8_CH3) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_TIM8_CH4) \ || ((__INJ_TRIG_SOURCE__) == LL_ADC_INJ_TRIG_EXT_EXTI_LINE15) \ ) #define IS_LL_ADC_INJ_TRIG_EXT_EDGE(__INJ_TRIG_EXT_EDGE__) \ ( ((__INJ_TRIG_EXT_EDGE__) == LL_ADC_INJ_TRIG_EXT_RISING) \ || ((__INJ_TRIG_EXT_EDGE__) == LL_ADC_INJ_TRIG_EXT_FALLING) \ || ((__INJ_TRIG_EXT_EDGE__) == LL_ADC_INJ_TRIG_EXT_RISINGFALLING) \ ) #define IS_LL_ADC_INJ_TRIG_AUTO(__INJ_TRIG_AUTO__) \ ( ((__INJ_TRIG_AUTO__) == LL_ADC_INJ_TRIG_INDEPENDENT) \ || ((__INJ_TRIG_AUTO__) == LL_ADC_INJ_TRIG_FROM_GRP_REGULAR) \ ) #define IS_LL_ADC_INJ_SEQ_SCAN_LENGTH(__INJ_SEQ_SCAN_LENGTH__) \ ( ((__INJ_SEQ_SCAN_LENGTH__) == LL_ADC_INJ_SEQ_SCAN_DISABLE) \ || ((__INJ_SEQ_SCAN_LENGTH__) == LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS) \ || ((__INJ_SEQ_SCAN_LENGTH__) == LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS) \ || ((__INJ_SEQ_SCAN_LENGTH__) == LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS) \ ) #define IS_LL_ADC_INJ_SEQ_SCAN_DISCONT_MODE(__INJ_SEQ_DISCONT_MODE__) \ ( ((__INJ_SEQ_DISCONT_MODE__) == LL_ADC_INJ_SEQ_DISCONT_DISABLE) \ || ((__INJ_SEQ_DISCONT_MODE__) == LL_ADC_INJ_SEQ_DISCONT_1RANK) \ ) #if defined(ADC_MULTIMODE_SUPPORT) /* Check of parameters for configuration of ADC hierarchical scope: */ /* multimode. */ #if defined(ADC3) #define IS_LL_ADC_MULTI_MODE(__MULTI_MODE__) \ ( ((__MULTI_MODE__) == LL_ADC_MULTI_INDEPENDENT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_INTERL) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_INJ_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_INJ_ALTERN) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_SIM) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_REG_SIM_INJ_ALT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_INJ_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_REG_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_REG_INTERL) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_TRIPLE_INJ_ALTERN) \ ) #else #define IS_LL_ADC_MULTI_MODE(__MULTI_MODE__) \ ( ((__MULTI_MODE__) == LL_ADC_MULTI_INDEPENDENT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_INTERL) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_INJ_SIMULT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_INJ_ALTERN) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT) \ || ((__MULTI_MODE__) == LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM) \ ) #endif #define IS_LL_ADC_MULTI_DMA_TRANSFER(__MULTI_DMA_TRANSFER__) \ ( ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_EACH_ADC) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_LIMIT_1) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_LIMIT_2) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_LIMIT_3) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_UNLMT_1) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_UNLMT_2) \ || ((__MULTI_DMA_TRANSFER__) == LL_ADC_MULTI_REG_DMA_UNLMT_3) \ ) #define IS_LL_ADC_MULTI_TWOSMP_DELAY(__MULTI_TWOSMP_DELAY__) \ ( ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_13CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_14CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_15CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_16CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_17CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_18CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_19CYCLES) \ || ((__MULTI_TWOSMP_DELAY__) == LL_ADC_MULTI_TWOSMP_DELAY_20CYCLES) \ ) #define IS_LL_ADC_MULTI_MASTER_SLAVE(__MULTI_MASTER_SLAVE__) \ ( ((__MULTI_MASTER_SLAVE__) == LL_ADC_MULTI_MASTER) \ || ((__MULTI_MASTER_SLAVE__) == LL_ADC_MULTI_SLAVE) \ || ((__MULTI_MASTER_SLAVE__) == LL_ADC_MULTI_MASTER_SLAVE) \ ) #endif /* ADC_MULTIMODE_SUPPORT */ /** * @} */ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup ADC_LL_Exported_Functions * @{ */ /** @addtogroup ADC_LL_EF_Init * @{ */ /** * @brief De-initialize registers of all ADC instances belonging to * the same ADC common instance to their default reset values. * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC common registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_ADC_CommonDeInit(ADC_Common_TypeDef *ADCxy_COMMON) { /* Check the parameters */ assert_param(IS_ADC_COMMON_INSTANCE(ADCxy_COMMON)); /* Force reset of ADC clock (core clock) */ LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_ADC); /* Release reset of ADC clock (core clock) */ LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_ADC); return SUCCESS; } /** * @brief Initialize some features of ADC common parameters * (all ADC instances belonging to the same ADC common instance) * and multimode (for devices with several ADC instances available). * @note The setting of ADC common parameters is conditioned to * ADC instances state: * All ADC instances belonging to the same ADC common instance * must be disabled. * @param ADCxy_COMMON ADC common instance * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMON_INSTANCE() ) * @param ADC_CommonInitStruct Pointer to a @ref LL_ADC_CommonInitTypeDef structure * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC common registers are initialized * - ERROR: ADC common registers are not initialized */ ErrorStatus LL_ADC_CommonInit(ADC_Common_TypeDef *ADCxy_COMMON, LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_ADC_COMMON_INSTANCE(ADCxy_COMMON)); assert_param(IS_LL_ADC_COMMON_CLOCK(ADC_CommonInitStruct->CommonClock)); #if defined(ADC_MULTIMODE_SUPPORT) assert_param(IS_LL_ADC_MULTI_MODE(ADC_CommonInitStruct->Multimode)); if(ADC_CommonInitStruct->Multimode != LL_ADC_MULTI_INDEPENDENT) { assert_param(IS_LL_ADC_MULTI_DMA_TRANSFER(ADC_CommonInitStruct->MultiDMATransfer)); assert_param(IS_LL_ADC_MULTI_TWOSMP_DELAY(ADC_CommonInitStruct->MultiTwoSamplingDelay)); } #endif /* ADC_MULTIMODE_SUPPORT */ /* Note: Hardware constraint (refer to description of functions */ /* "LL_ADC_SetCommonXXX()" and "LL_ADC_SetMultiXXX()"): */ /* On this STM32 series, setting of these features is conditioned to */ /* ADC state: */ /* All ADC instances of the ADC common group must be disabled. */ if(__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(ADCxy_COMMON) == 0UL) { /* Configuration of ADC hierarchical scope: */ /* - common to several ADC */ /* (all ADC instances belonging to the same ADC common instance) */ /* - Set ADC clock (conversion clock) */ /* - multimode (if several ADC instances available on the */ /* selected device) */ /* - Set ADC multimode configuration */ /* - Set ADC multimode DMA transfer */ /* - Set ADC multimode: delay between 2 sampling phases */ #if defined(ADC_MULTIMODE_SUPPORT) if(ADC_CommonInitStruct->Multimode != LL_ADC_MULTI_INDEPENDENT) { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_ADCPRE | ADC_CCR_MULTI | ADC_CCR_DMA | ADC_CCR_DDS | ADC_CCR_DELAY , ADC_CommonInitStruct->CommonClock | ADC_CommonInitStruct->Multimode | ADC_CommonInitStruct->MultiDMATransfer | ADC_CommonInitStruct->MultiTwoSamplingDelay ); } else { MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_ADCPRE | ADC_CCR_MULTI | ADC_CCR_DMA | ADC_CCR_DDS | ADC_CCR_DELAY , ADC_CommonInitStruct->CommonClock | LL_ADC_MULTI_INDEPENDENT ); } #else LL_ADC_SetCommonClock(ADCxy_COMMON, ADC_CommonInitStruct->CommonClock); #endif } else { /* Initialization error: One or several ADC instances belonging to */ /* the same ADC common instance are not disabled. */ status = ERROR; } return status; } /** * @brief Set each @ref LL_ADC_CommonInitTypeDef field to default value. * @param ADC_CommonInitStruct Pointer to a @ref LL_ADC_CommonInitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_ADC_CommonStructInit(LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct) { /* Set ADC_CommonInitStruct fields to default values */ /* Set fields of ADC common */ /* (all ADC instances belonging to the same ADC common instance) */ ADC_CommonInitStruct->CommonClock = LL_ADC_CLOCK_SYNC_PCLK_DIV2; #if defined(ADC_MULTIMODE_SUPPORT) /* Set fields of ADC multimode */ ADC_CommonInitStruct->Multimode = LL_ADC_MULTI_INDEPENDENT; ADC_CommonInitStruct->MultiDMATransfer = LL_ADC_MULTI_REG_DMA_EACH_ADC; ADC_CommonInitStruct->MultiTwoSamplingDelay = LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES; #endif /* ADC_MULTIMODE_SUPPORT */ } /** * @brief De-initialize registers of the selected ADC instance * to their default reset values. * @note To reset all ADC instances quickly (perform a hard reset), * use function @ref LL_ADC_CommonDeInit(). * @param ADCx ADC instance * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC registers are de-initialized * - ERROR: ADC registers are not de-initialized */ ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(ADCx)); /* Disable ADC instance if not already disabled. */ if(LL_ADC_IsEnabled(ADCx) == 1UL) { /* Set ADC group regular trigger source to SW start to ensure to not */ /* have an external trigger event occurring during the conversion stop */ /* ADC disable process. */ LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); /* Set ADC group injected trigger source to SW start to ensure to not */ /* have an external trigger event occurring during the conversion stop */ /* ADC disable process. */ LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); /* Disable the ADC instance */ LL_ADC_Disable(ADCx); } /* Check whether ADC state is compliant with expected state */ /* (hardware requirements of bits state to reset registers below) */ if(READ_BIT(ADCx->CR2, ADC_CR2_ADON) == 0UL) { /* ========== Reset ADC registers ========== */ /* Reset register SR */ CLEAR_BIT(ADCx->SR, ( LL_ADC_FLAG_STRT | LL_ADC_FLAG_JSTRT | LL_ADC_FLAG_EOCS | LL_ADC_FLAG_OVR | LL_ADC_FLAG_JEOS | LL_ADC_FLAG_AWD1 ) ); /* Reset register CR1 */ CLEAR_BIT(ADCx->CR1, ( ADC_CR1_OVRIE | ADC_CR1_RES | ADC_CR1_AWDEN | ADC_CR1_JAWDEN | ADC_CR1_DISCNUM | ADC_CR1_JDISCEN | ADC_CR1_DISCEN | ADC_CR1_JAUTO | ADC_CR1_AWDSGL | ADC_CR1_SCAN | ADC_CR1_JEOCIE | ADC_CR1_AWDIE | ADC_CR1_EOCIE | ADC_CR1_AWDCH ) ); /* Reset register CR2 */ CLEAR_BIT(ADCx->CR2, ( ADC_CR2_SWSTART | ADC_CR2_EXTEN | ADC_CR2_EXTSEL | ADC_CR2_JSWSTART | ADC_CR2_JEXTEN | ADC_CR2_JEXTSEL | ADC_CR2_ALIGN | ADC_CR2_EOCS | ADC_CR2_DDS | ADC_CR2_DMA | ADC_CR2_CONT | ADC_CR2_ADON ) ); /* Reset register SMPR1 */ CLEAR_BIT(ADCx->SMPR1, ( ADC_SMPR1_SMP18 | ADC_SMPR1_SMP17 | ADC_SMPR1_SMP16 | ADC_SMPR1_SMP15 | ADC_SMPR1_SMP14 | ADC_SMPR1_SMP13 | ADC_SMPR1_SMP12 | ADC_SMPR1_SMP11 | ADC_SMPR1_SMP10) ); /* Reset register SMPR2 */ CLEAR_BIT(ADCx->SMPR2, ( ADC_SMPR2_SMP9 | ADC_SMPR2_SMP8 | ADC_SMPR2_SMP7 | ADC_SMPR2_SMP6 | ADC_SMPR2_SMP5 | ADC_SMPR2_SMP4 | ADC_SMPR2_SMP3 | ADC_SMPR2_SMP2 | ADC_SMPR2_SMP1 | ADC_SMPR2_SMP0) ); /* Reset register JOFR1 */ CLEAR_BIT(ADCx->JOFR1, ADC_JOFR1_JOFFSET1); /* Reset register JOFR2 */ CLEAR_BIT(ADCx->JOFR2, ADC_JOFR2_JOFFSET2); /* Reset register JOFR3 */ CLEAR_BIT(ADCx->JOFR3, ADC_JOFR3_JOFFSET3); /* Reset register JOFR4 */ CLEAR_BIT(ADCx->JOFR4, ADC_JOFR4_JOFFSET4); /* Reset register HTR */ SET_BIT(ADCx->HTR, ADC_HTR_HT); /* Reset register LTR */ CLEAR_BIT(ADCx->LTR, ADC_LTR_LT); /* Reset register SQR1 */ CLEAR_BIT(ADCx->SQR1, ( ADC_SQR1_L | ADC_SQR1_SQ16 | ADC_SQR1_SQ15 | ADC_SQR1_SQ14 | ADC_SQR1_SQ13) ); /* Reset register SQR2 */ CLEAR_BIT(ADCx->SQR2, ( ADC_SQR2_SQ12 | ADC_SQR2_SQ11 | ADC_SQR2_SQ10 | ADC_SQR2_SQ9 | ADC_SQR2_SQ8 | ADC_SQR2_SQ7) ); /* Reset register JSQR */ CLEAR_BIT(ADCx->JSQR, ( ADC_JSQR_JL | ADC_JSQR_JSQ4 | ADC_JSQR_JSQ3 | ADC_JSQR_JSQ2 | ADC_JSQR_JSQ1 ) ); /* Reset register DR */ /* bits in access mode read only, no direct reset applicable */ /* Reset registers JDR1, JDR2, JDR3, JDR4 */ /* bits in access mode read only, no direct reset applicable */ /* Reset register CCR */ CLEAR_BIT(ADC->CCR, ADC_CCR_TSVREFE | ADC_CCR_ADCPRE); } return status; } /** * @brief Initialize some features of ADC instance. * @note These parameters have an impact on ADC scope: ADC instance. * Affects both group regular and group injected (availability * of ADC group injected depends on STM32 families). * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Instance . * @note The setting of these parameters by function @ref LL_ADC_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. * @note After using this function, some other features must be configured * using LL unitary functions. * The minimum configuration remaining to be done is: * - Set ADC group regular or group injected sequencer: * map channel on the selected sequencer rank. * Refer to function @ref LL_ADC_REG_SetSequencerRanks(). * - Set ADC channel sampling time * Refer to function LL_ADC_SetChannelSamplingTime(); * @param ADCx ADC instance * @param ADC_InitStruct Pointer to a @ref LL_ADC_REG_InitTypeDef structure * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC registers are initialized * - ERROR: ADC registers are not initialized */ ErrorStatus LL_ADC_Init(ADC_TypeDef *ADCx, LL_ADC_InitTypeDef *ADC_InitStruct) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(ADCx)); assert_param(IS_LL_ADC_RESOLUTION(ADC_InitStruct->Resolution)); assert_param(IS_LL_ADC_DATA_ALIGN(ADC_InitStruct->DataAlignment)); assert_param(IS_LL_ADC_SCAN_SELECTION(ADC_InitStruct->SequencersScanMode)); /* Note: Hardware constraint (refer to description of this function): */ /* ADC instance must be disabled. */ if(LL_ADC_IsEnabled(ADCx) == 0UL) { /* Configuration of ADC hierarchical scope: */ /* - ADC instance */ /* - Set ADC data resolution */ /* - Set ADC conversion data alignment */ MODIFY_REG(ADCx->CR1, ADC_CR1_RES | ADC_CR1_SCAN , ADC_InitStruct->Resolution | ADC_InitStruct->SequencersScanMode ); MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN , ADC_InitStruct->DataAlignment ); } else { /* Initialization error: ADC instance is not disabled. */ status = ERROR; } return status; } /** * @brief Set each @ref LL_ADC_InitTypeDef field to default value. * @param ADC_InitStruct Pointer to a @ref LL_ADC_InitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_ADC_StructInit(LL_ADC_InitTypeDef *ADC_InitStruct) { /* Set ADC_InitStruct fields to default values */ /* Set fields of ADC instance */ ADC_InitStruct->Resolution = LL_ADC_RESOLUTION_12B; ADC_InitStruct->DataAlignment = LL_ADC_DATA_ALIGN_RIGHT; /* Enable scan mode to have a generic behavior with ADC of other */ /* STM32 families, without this setting available: */ /* ADC group regular sequencer and ADC group injected sequencer depend */ /* only of their own configuration. */ ADC_InitStruct->SequencersScanMode = LL_ADC_SEQ_SCAN_ENABLE; } /** * @brief Initialize some features of ADC group regular. * @note These parameters have an impact on ADC scope: ADC group regular. * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Group_Regular * (functions with prefix "REG"). * @note The setting of these parameters by function @ref LL_ADC_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. * @note After using this function, other features must be configured * using LL unitary functions. * The minimum configuration remaining to be done is: * - Set ADC group regular or group injected sequencer: * map channel on the selected sequencer rank. * Refer to function @ref LL_ADC_REG_SetSequencerRanks(). * - Set ADC channel sampling time * Refer to function LL_ADC_SetChannelSamplingTime(); * @param ADCx ADC instance * @param ADC_REG_InitStruct Pointer to a @ref LL_ADC_REG_InitTypeDef structure * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC registers are initialized * - ERROR: ADC registers are not initialized */ ErrorStatus LL_ADC_REG_Init(ADC_TypeDef *ADCx, LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(ADCx)); assert_param(IS_LL_ADC_REG_TRIG_SOURCE(ADC_REG_InitStruct->TriggerSource)); assert_param(IS_LL_ADC_REG_SEQ_SCAN_LENGTH(ADC_REG_InitStruct->SequencerLength)); if(ADC_REG_InitStruct->SequencerLength != LL_ADC_REG_SEQ_SCAN_DISABLE) { assert_param(IS_LL_ADC_REG_SEQ_SCAN_DISCONT_MODE(ADC_REG_InitStruct->SequencerDiscont)); } assert_param(IS_LL_ADC_REG_CONTINUOUS_MODE(ADC_REG_InitStruct->ContinuousMode)); assert_param(IS_LL_ADC_REG_DMA_TRANSFER(ADC_REG_InitStruct->DMATransfer)); /* ADC group regular continuous mode and discontinuous mode */ /* can not be enabled simultenaeously */ assert_param((ADC_REG_InitStruct->ContinuousMode == LL_ADC_REG_CONV_SINGLE) || (ADC_REG_InitStruct->SequencerDiscont == LL_ADC_REG_SEQ_DISCONT_DISABLE)); /* Note: Hardware constraint (refer to description of this function): */ /* ADC instance must be disabled. */ if(LL_ADC_IsEnabled(ADCx) == 0UL) { /* Configuration of ADC hierarchical scope: */ /* - ADC group regular */ /* - Set ADC group regular trigger source */ /* - Set ADC group regular sequencer length */ /* - Set ADC group regular sequencer discontinuous mode */ /* - Set ADC group regular continuous mode */ /* - Set ADC group regular conversion data transfer: no transfer or */ /* transfer by DMA, and DMA requests mode */ /* Note: On this STM32 series, ADC trigger edge is set when starting */ /* ADC conversion. */ /* Refer to function @ref LL_ADC_REG_StartConversionExtTrig(). */ if(ADC_REG_InitStruct->SequencerLength != LL_ADC_REG_SEQ_SCAN_DISABLE) { MODIFY_REG(ADCx->CR1, ADC_CR1_DISCEN | ADC_CR1_DISCNUM , ADC_REG_InitStruct->SequencerDiscont ); } else { MODIFY_REG(ADCx->CR1, ADC_CR1_DISCEN | ADC_CR1_DISCNUM , LL_ADC_REG_SEQ_DISCONT_DISABLE ); } MODIFY_REG(ADCx->CR2, ADC_CR2_EXTSEL | ADC_CR2_EXTEN | ADC_CR2_CONT | ADC_CR2_DMA | ADC_CR2_DDS , (ADC_REG_InitStruct->TriggerSource & ADC_CR2_EXTSEL) | ADC_REG_InitStruct->ContinuousMode | ADC_REG_InitStruct->DMATransfer ); /* Set ADC group regular sequencer length and scan direction */ /* Note: Hardware constraint (refer to description of this function): */ /* Note: If ADC instance feature scan mode is disabled */ /* (refer to ADC instance initialization structure */ /* parameter @ref SequencersScanMode */ /* or function @ref LL_ADC_SetSequencersScanMode() ), */ /* this parameter is discarded. */ LL_ADC_REG_SetSequencerLength(ADCx, ADC_REG_InitStruct->SequencerLength); } else { /* Initialization error: ADC instance is not disabled. */ status = ERROR; } return status; } /** * @brief Set each @ref LL_ADC_REG_InitTypeDef field to default value. * @param ADC_REG_InitStruct Pointer to a @ref LL_ADC_REG_InitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_ADC_REG_StructInit(LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct) { /* Set ADC_REG_InitStruct fields to default values */ /* Set fields of ADC group regular */ /* Note: On this STM32 series, ADC trigger edge is set when starting */ /* ADC conversion. */ /* Refer to function @ref LL_ADC_REG_StartConversionExtTrig(). */ ADC_REG_InitStruct->TriggerSource = LL_ADC_REG_TRIG_SOFTWARE; ADC_REG_InitStruct->SequencerLength = LL_ADC_REG_SEQ_SCAN_DISABLE; ADC_REG_InitStruct->SequencerDiscont = LL_ADC_REG_SEQ_DISCONT_DISABLE; ADC_REG_InitStruct->ContinuousMode = LL_ADC_REG_CONV_SINGLE; ADC_REG_InitStruct->DMATransfer = LL_ADC_REG_DMA_TRANSFER_NONE; } /** * @brief Initialize some features of ADC group injected. * @note These parameters have an impact on ADC scope: ADC group injected. * Refer to corresponding unitary functions into * @ref ADC_LL_EF_Configuration_ADC_Group_Regular * (functions with prefix "INJ"). * @note The setting of these parameters by function @ref LL_ADC_Init() * is conditioned to ADC state: * ADC instance must be disabled. * This condition is applied to all ADC features, for efficiency * and compatibility over all STM32 families. However, the different * features can be set under different ADC state conditions * (setting possible with ADC enabled without conversion on going, * ADC enabled with conversion on going, ...) * Each feature can be updated afterwards with a unitary function * and potentially with ADC in a different state than disabled, * refer to description of each function for setting * conditioned to ADC state. * @note After using this function, other features must be configured * using LL unitary functions. * The minimum configuration remaining to be done is: * - Set ADC group injected sequencer: * map channel on the selected sequencer rank. * Refer to function @ref LL_ADC_INJ_SetSequencerRanks(). * - Set ADC channel sampling time * Refer to function LL_ADC_SetChannelSamplingTime(); * @param ADCx ADC instance * @param ADC_INJ_InitStruct Pointer to a @ref LL_ADC_INJ_InitTypeDef structure * @retval An ErrorStatus enumeration value: * - SUCCESS: ADC registers are initialized * - ERROR: ADC registers are not initialized */ ErrorStatus LL_ADC_INJ_Init(ADC_TypeDef *ADCx, LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(ADCx)); assert_param(IS_LL_ADC_INJ_TRIG_SOURCE(ADC_INJ_InitStruct->TriggerSource)); assert_param(IS_LL_ADC_INJ_SEQ_SCAN_LENGTH(ADC_INJ_InitStruct->SequencerLength)); if(ADC_INJ_InitStruct->SequencerLength != LL_ADC_INJ_SEQ_SCAN_DISABLE) { assert_param(IS_LL_ADC_INJ_SEQ_SCAN_DISCONT_MODE(ADC_INJ_InitStruct->SequencerDiscont)); } assert_param(IS_LL_ADC_INJ_TRIG_AUTO(ADC_INJ_InitStruct->TrigAuto)); /* Note: Hardware constraint (refer to description of this function): */ /* ADC instance must be disabled. */ if(LL_ADC_IsEnabled(ADCx) == 0UL) { /* Configuration of ADC hierarchical scope: */ /* - ADC group injected */ /* - Set ADC group injected trigger source */ /* - Set ADC group injected sequencer length */ /* - Set ADC group injected sequencer discontinuous mode */ /* - Set ADC group injected conversion trigger: independent or */ /* from ADC group regular */ /* Note: On this STM32 series, ADC trigger edge is set when starting */ /* ADC conversion. */ /* Refer to function @ref LL_ADC_INJ_StartConversionExtTrig(). */ if(ADC_INJ_InitStruct->SequencerLength != LL_ADC_REG_SEQ_SCAN_DISABLE) { MODIFY_REG(ADCx->CR1, ADC_CR1_JDISCEN | ADC_CR1_JAUTO , ADC_INJ_InitStruct->SequencerDiscont | ADC_INJ_InitStruct->TrigAuto ); } else { MODIFY_REG(ADCx->CR1, ADC_CR1_JDISCEN | ADC_CR1_JAUTO , LL_ADC_REG_SEQ_DISCONT_DISABLE | ADC_INJ_InitStruct->TrigAuto ); } MODIFY_REG(ADCx->CR2, ADC_CR2_JEXTSEL | ADC_CR2_JEXTEN , (ADC_INJ_InitStruct->TriggerSource & ADC_CR2_JEXTSEL) ); /* Note: Hardware constraint (refer to description of this function): */ /* Note: If ADC instance feature scan mode is disabled */ /* (refer to ADC instance initialization structure */ /* parameter @ref SequencersScanMode */ /* or function @ref LL_ADC_SetSequencersScanMode() ), */ /* this parameter is discarded. */ LL_ADC_INJ_SetSequencerLength(ADCx, ADC_INJ_InitStruct->SequencerLength); } else { /* Initialization error: ADC instance is not disabled. */ status = ERROR; } return status; } /** * @brief Set each @ref LL_ADC_INJ_InitTypeDef field to default value. * @param ADC_INJ_InitStruct Pointer to a @ref LL_ADC_INJ_InitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_ADC_INJ_StructInit(LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct) { /* Set ADC_INJ_InitStruct fields to default values */ /* Set fields of ADC group injected */ ADC_INJ_InitStruct->TriggerSource = LL_ADC_INJ_TRIG_SOFTWARE; ADC_INJ_InitStruct->SequencerLength = LL_ADC_INJ_SEQ_SCAN_DISABLE; ADC_INJ_InitStruct->SequencerDiscont = LL_ADC_INJ_SEQ_DISCONT_DISABLE; ADC_INJ_InitStruct->TrigAuto = LL_ADC_INJ_TRIG_INDEPENDENT; } /** * @} */ /** * @} */ /** * @} */ #endif /* ADC1 || ADC2 || ADC3 */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c ================================================ /** ****************************************************************************** * @file stm32f4xx_ll_usb.c * @author MCD Application Team * @brief USB Low Layer HAL module driver. * * This file provides firmware functions to manage the following * functionalities of the USB Peripheral Controller: * + Initialization/de-initialization functions * + I/O operation functions * + Peripheral Control functions * + Peripheral State functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#) Fill parameters of Init structure in USB_OTG_CfgTypeDef structure. (#) Call USB_CoreInit() API to initialize the USB Core peripheral. (#) The upper HAL HCD/PCD driver will call the right routines for its internal processes. @endverbatim ****************************************************************************** * @attention * *

© Copyright (c) 2016 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /** @addtogroup STM32F4xx_LL_USB_DRIVER * @{ */ #if defined (HAL_PCD_MODULE_ENABLED) || defined (HAL_HCD_MODULE_ENABLED) #if defined (USB_OTG_FS) || defined (USB_OTG_HS) /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ #if defined (USB_OTG_FS) || defined (USB_OTG_HS) static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx); /* Exported functions --------------------------------------------------------*/ /** @defgroup USB_LL_Exported_Functions USB Low Layer Exported Functions * @{ */ /** @defgroup USB_LL_Exported_Functions_Group1 Initialization/de-initialization functions * @brief Initialization and Configuration functions * @verbatim =============================================================================== ##### Initialization/de-initialization functions ##### =============================================================================== @endverbatim * @{ */ /** * @brief Initializes the USB Core * @param USBx USB Instance * @param cfg pointer to a USB_OTG_CfgTypeDef structure that contains * the configuration information for the specified USBx peripheral. * @retval HAL status */ HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) { HAL_StatusTypeDef ret; if (cfg.phy_itface == USB_OTG_ULPI_PHY) { USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); /* Init The ULPI Interface */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS | USB_OTG_GUSBCFG_ULPIFSLS | USB_OTG_GUSBCFG_PHYSEL); /* Select vbus source */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_ULPIEVBUSD | USB_OTG_GUSBCFG_ULPIEVBUSI); if (cfg.use_external_vbus == 1U) { USBx->GUSBCFG |= USB_OTG_GUSBCFG_ULPIEVBUSD; } /* Reset after a PHY select */ ret = USB_CoreReset(USBx); } else /* FS interface (embedded Phy) */ { /* Select FS Embedded PHY */ USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; /* Reset after a PHY select */ ret = USB_CoreReset(USBx); if (cfg.battery_charging_enable == 0U) { /* Activate the USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; } else { /* Deactivate the USB Transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); } } if (cfg.dma_enable == 1U) { USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; } return ret; } /** * @brief Set the USB turnaround time * @param USBx USB Instance * @param hclk: AHB clock frequency * @retval USB turnaround time In PHY Clocks number */ HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx, uint32_t hclk, uint8_t speed) { uint32_t UsbTrd; /* The USBTRD is configured according to the tables below, depending on AHB frequency used by application. In the low AHB frequency range it is used to stretch enough the USB response time to IN tokens, the USB turnaround time, so to compensate for the longer AHB read access latency to the Data FIFO */ if (speed == USBD_FS_SPEED) { if ((hclk >= 14200000U) && (hclk < 15000000U)) { /* hclk Clock Range between 14.2-15 MHz */ UsbTrd = 0xFU; } else if ((hclk >= 15000000U) && (hclk < 16000000U)) { /* hclk Clock Range between 15-16 MHz */ UsbTrd = 0xEU; } else if ((hclk >= 16000000U) && (hclk < 17200000U)) { /* hclk Clock Range between 16-17.2 MHz */ UsbTrd = 0xDU; } else if ((hclk >= 17200000U) && (hclk < 18500000U)) { /* hclk Clock Range between 17.2-18.5 MHz */ UsbTrd = 0xCU; } else if ((hclk >= 18500000U) && (hclk < 20000000U)) { /* hclk Clock Range between 18.5-20 MHz */ UsbTrd = 0xBU; } else if ((hclk >= 20000000U) && (hclk < 21800000U)) { /* hclk Clock Range between 20-21.8 MHz */ UsbTrd = 0xAU; } else if ((hclk >= 21800000U) && (hclk < 24000000U)) { /* hclk Clock Range between 21.8-24 MHz */ UsbTrd = 0x9U; } else if ((hclk >= 24000000U) && (hclk < 27700000U)) { /* hclk Clock Range between 24-27.7 MHz */ UsbTrd = 0x8U; } else if ((hclk >= 27700000U) && (hclk < 32000000U)) { /* hclk Clock Range between 27.7-32 MHz */ UsbTrd = 0x7U; } else /* if(hclk >= 32000000) */ { /* hclk Clock Range between 32-200 MHz */ UsbTrd = 0x6U; } } else if (speed == USBD_HS_SPEED) { UsbTrd = USBD_HS_TRDT_VALUE; } else { UsbTrd = USBD_DEFAULT_TRDT_VALUE; } USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); return HAL_OK; } /** * @brief USB_EnableGlobalInt * Enables the controller's Global Int in the AHB Config reg * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx) { USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT; return HAL_OK; } /** * @brief USB_DisableGlobalInt * Disable the controller's Global Int in the AHB Config reg * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DisableGlobalInt(USB_OTG_GlobalTypeDef *USBx) { USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT; return HAL_OK; } /** * @brief USB_SetCurrentMode Set functional mode * @param USBx Selected device * @param mode current core mode * This parameter can be one of these values: * @arg USB_DEVICE_MODE Peripheral mode * @arg USB_HOST_MODE Host mode * @retval HAL status */ HAL_StatusTypeDef USB_SetCurrentMode(USB_OTG_GlobalTypeDef *USBx, USB_OTG_ModeTypeDef mode) { USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_FHMOD | USB_OTG_GUSBCFG_FDMOD); if (mode == USB_HOST_MODE) { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FHMOD; } else if (mode == USB_DEVICE_MODE) { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FDMOD; } else { return HAL_ERROR; } HAL_Delay(50U); return HAL_OK; } /** * @brief USB_DevInit Initializes the USB_OTG controller registers * for device mode * @param USBx Selected device * @param cfg pointer to a USB_OTG_CfgTypeDef structure that contains * the configuration information for the specified USBx peripheral. * @retval HAL status */ HAL_StatusTypeDef USB_DevInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) { HAL_StatusTypeDef ret = HAL_OK; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t i; for (i = 0U; i < 15U; i++) { USBx->DIEPTXF[i] = 0U; } #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* VBUS Sensing setup */ if (cfg.vbus_sensing_enable == 0U) { USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; /* Deactivate VBUS Sensing B */ USBx->GCCFG &= ~USB_OTG_GCCFG_VBDEN; /* B-peripheral session valid override enable */ USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOEN; USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL; } else { /* Enable HW VBUS sensing */ USBx->GCCFG |= USB_OTG_GCCFG_VBDEN; } #else /* VBUS Sensing setup */ if (cfg.vbus_sensing_enable == 0U) { /* * Disable HW VBUS sensing. VBUS is internally considered to be always * at VBUS-Valid level (5V). */ USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; USBx->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS; USBx->GCCFG &= ~USB_OTG_GCCFG_VBUSBSEN; USBx->GCCFG &= ~USB_OTG_GCCFG_VBUSASEN; } else { /* Enable HW VBUS sensing */ USBx->GCCFG &= ~USB_OTG_GCCFG_NOVBUSSENS; USBx->GCCFG |= USB_OTG_GCCFG_VBUSBSEN; } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ /* Restart the Phy Clock */ USBx_PCGCCTL = 0U; /* Device mode configuration */ USBx_DEVICE->DCFG |= DCFG_FRAME_INTERVAL_80; if (cfg.phy_itface == USB_OTG_ULPI_PHY) { if (cfg.speed == USBD_HS_SPEED) { /* Set Core speed to High speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH); } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH_IN_FULL); } } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_FULL); } /* Flush the FIFOs */ if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */ { ret = HAL_ERROR; } if (USB_FlushRxFifo(USBx) != HAL_OK) { ret = HAL_ERROR; } /* Clear all pending Device Interrupts */ USBx_DEVICE->DIEPMSK = 0U; USBx_DEVICE->DOEPMSK = 0U; USBx_DEVICE->DAINTMSK = 0U; for (i = 0U; i < cfg.dev_endpoints; i++) { if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) { if (i == 0U) { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; } else { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; } } else { USBx_INEP(i)->DIEPCTL = 0U; } USBx_INEP(i)->DIEPTSIZ = 0U; USBx_INEP(i)->DIEPINT = 0xFB7FU; } for (i = 0U; i < cfg.dev_endpoints; i++) { if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) { if (i == 0U) { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; } else { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; } } else { USBx_OUTEP(i)->DOEPCTL = 0U; } USBx_OUTEP(i)->DOEPTSIZ = 0U; USBx_OUTEP(i)->DOEPINT = 0xFB7FU; } USBx_DEVICE->DIEPMSK &= ~(USB_OTG_DIEPMSK_TXFURM); /* Disable all interrupts. */ USBx->GINTMSK = 0U; /* Clear any pending interrupts */ USBx->GINTSTS = 0xBFFFFFFFU; /* Enable the common interrupts */ if (cfg.dma_enable == 0U) { USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM; } /* Enable interrupts matching to the Device mode ONLY */ USBx->GINTMSK |= USB_OTG_GINTMSK_USBSUSPM | USB_OTG_GINTMSK_USBRST | USB_OTG_GINTMSK_ENUMDNEM | USB_OTG_GINTMSK_IEPINT | USB_OTG_GINTMSK_OEPINT | USB_OTG_GINTMSK_IISOIXFRM | USB_OTG_GINTMSK_PXFRM_IISOOXFRM | USB_OTG_GINTMSK_WUIM; if (cfg.Sof_enable != 0U) { USBx->GINTMSK |= USB_OTG_GINTMSK_SOFM; } if (cfg.vbus_sensing_enable == 1U) { USBx->GINTMSK |= (USB_OTG_GINTMSK_SRQIM | USB_OTG_GINTMSK_OTGINT); } return ret; } /** * @brief USB_OTG_FlushTxFifo : Flush a Tx FIFO * @param USBx Selected device * @param num FIFO number * This parameter can be a value from 1 to 15 15 means Flush all Tx FIFOs * @retval HAL status */ HAL_StatusTypeDef USB_FlushTxFifo(USB_OTG_GlobalTypeDef *USBx, uint32_t num) { uint32_t count = 0U; USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6)); do { if (++count > 200000U) { return HAL_TIMEOUT; } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH); return HAL_OK; } /** * @brief USB_FlushRxFifo : Flush Rx FIFO * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx) { uint32_t count = 0; USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH; do { if (++count > 200000U) { return HAL_TIMEOUT; } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH); return HAL_OK; } /** * @brief USB_SetDevSpeed Initializes the DevSpd field of DCFG register * depending the PHY type and the enumeration speed of the device. * @param USBx Selected device * @param speed device speed * This parameter can be one of these values: * @arg USB_OTG_SPEED_HIGH: High speed mode * @arg USB_OTG_SPEED_HIGH_IN_FULL: High speed core in Full Speed mode * @arg USB_OTG_SPEED_FULL: Full speed mode * @retval Hal status */ HAL_StatusTypeDef USB_SetDevSpeed(USB_OTG_GlobalTypeDef *USBx, uint8_t speed) { uint32_t USBx_BASE = (uint32_t)USBx; USBx_DEVICE->DCFG |= speed; return HAL_OK; } /** * @brief USB_GetDevSpeed Return the Dev Speed * @param USBx Selected device * @retval speed device speed * This parameter can be one of these values: * @arg USBD_HS_SPEED: High speed mode * @arg USBD_FS_SPEED: Full speed mode */ uint8_t USB_GetDevSpeed(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; uint8_t speed; uint32_t DevEnumSpeed = USBx_DEVICE->DSTS & USB_OTG_DSTS_ENUMSPD; if (DevEnumSpeed == DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ) { speed = USBD_HS_SPEED; } else if ((DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ) || (DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_48MHZ)) { speed = USBD_FS_SPEED; } else { speed = 0xFU; } return speed; } /** * @brief Activate and configure an endpoint * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_ActivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; if (ep->is_in == 1U) { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_USBAEP) == 0U) { USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | ((uint32_t)ep->type << 18) | (epnum << 22) | USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DIEPCTL_USBAEP; } } else { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16); if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U) { USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | ((uint32_t)ep->type << 18) | USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_USBAEP; } } return HAL_OK; } /** * @brief Activate and configure a dedicated endpoint * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_ActivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; /* Read DEPCTLn register */ if (ep->is_in == 1U) { if (((USBx_INEP(epnum)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0U) { USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | ((uint32_t)ep->type << 18) | (epnum << 22) | USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DIEPCTL_USBAEP; } USBx_DEVICE->DEACHMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); } else { if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U) { USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | ((uint32_t)ep->type << 18) | (epnum << 22) | USB_OTG_DOEPCTL_USBAEP; } USBx_DEVICE->DEACHMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16); } return HAL_OK; } /** * @brief De-activate and de-initialize an endpoint * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_DeactivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; /* Read DEPCTLn register */ if (ep->is_in == 1U) { if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS; } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_USBAEP | USB_OTG_DIEPCTL_MPSIZ | USB_OTG_DIEPCTL_TXFNUM | USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DIEPCTL_EPTYP); } else { if ((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_EPDIS; } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_USBAEP | USB_OTG_DOEPCTL_MPSIZ | USB_OTG_DOEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_EPTYP); } return HAL_OK; } /** * @brief De-activate and de-initialize a dedicated endpoint * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; /* Read DEPCTLn register */ if (ep->is_in == 1U) { if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS; } USBx_INEP(epnum)->DIEPCTL &= ~ USB_OTG_DIEPCTL_USBAEP; USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); } else { if ((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_EPDIS; } USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_USBAEP; USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); } return HAL_OK; } /** * @brief USB_EPStartXfer : setup and starts a transfer over an EP * @param USBx Selected device * @param ep pointer to endpoint structure * @param dma USB dma enabled or disabled * This parameter can be one of these values: * 0 : DMA feature not used * 1 : DMA feature used * @retval HAL status */ HAL_StatusTypeDef USB_EPStartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; uint16_t pktcnt; /* IN endpoint */ if (ep->is_in == 1U) { /* Zero Length Packet? */ if (ep->xfer_len == 0U) { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); } else { /* Program the transfer size and packet count * as follows: xfersize = N * maxpacket + * short_packet pktcnt = N + (short_packet * exist ? 1 : 0) */ USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); if (ep->type == EP_TYPE_ISOC) { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_MULCNT); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_MULCNT & (1U << 29)); } } if (dma == 1U) { if ((uint32_t)ep->dma_addr != 0U) { USBx_INEP(epnum)->DIEPDMA = (uint32_t)(ep->dma_addr); } if (ep->type == EP_TYPE_ISOC) { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; } } /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); } else { /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); if (ep->type != EP_TYPE_ISOC) { /* Enable the Tx FIFO Empty Interrupt for this EP */ if (ep->xfer_len > 0U) { USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK); } } else { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; } (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); } } } else /* OUT endpoint */ { /* Program the transfer size and packet count as follows: * pktcnt = N * xfersize = N * maxpacket */ USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ); USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); if (ep->xfer_len == 0U) { USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket); USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); } else { pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19); USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & (ep->maxpacket * pktcnt); } if (dma == 1U) { if ((uint32_t)ep->xfer_buff != 0U) { USBx_OUTEP(epnum)->DOEPDMA = (uint32_t)(ep->xfer_buff); } } if (ep->type == EP_TYPE_ISOC) { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SODDFRM; } else { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; } } /* EP enable */ USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA); } return HAL_OK; } /** * @brief USB_EP0StartXfer : setup and starts a transfer over the EP 0 * @param USBx Selected device * @param ep pointer to endpoint structure * @param dma USB dma enabled or disabled * This parameter can be one of these values: * 0 : DMA feature not used * 1 : DMA feature used * @retval HAL status */ HAL_StatusTypeDef USB_EP0StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; /* IN endpoint */ if (ep->is_in == 1U) { /* Zero Length Packet? */ if (ep->xfer_len == 0U) { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); } else { /* Program the transfer size and packet count * as follows: xfersize = N * maxpacket + * short_packet pktcnt = N + (short_packet * exist ? 1 : 0) */ USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); if (ep->xfer_len > ep->maxpacket) { ep->xfer_len = ep->maxpacket; } USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); } if (dma == 1U) { if ((uint32_t)ep->dma_addr != 0U) { USBx_INEP(epnum)->DIEPDMA = (uint32_t)(ep->dma_addr); } /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); } else { /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); /* Enable the Tx FIFO Empty Interrupt for this EP */ if (ep->xfer_len > 0U) { USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK); } } } else /* OUT endpoint */ { /* Program the transfer size and packet count as follows: * pktcnt = N * xfersize = N * maxpacket */ USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ); USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); if (ep->xfer_len > 0U) { ep->xfer_len = ep->maxpacket; } USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & (ep->maxpacket)); if (dma == 1U) { if ((uint32_t)ep->xfer_buff != 0U) { USBx_OUTEP(epnum)->DOEPDMA = (uint32_t)(ep->xfer_buff); } } /* EP enable */ USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA); } return HAL_OK; } /** * @brief USB_WritePacket : Writes a packet into the Tx FIFO associated * with the EP/channel * @param USBx Selected device * @param src pointer to source buffer * @param ch_ep_num endpoint or host channel number * @param len Number of bytes to write * @param dma USB dma enabled or disabled * This parameter can be one of these values: * 0 : DMA feature not used * 1 : DMA feature used * @retval HAL status */ HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t *pSrc = (uint32_t *)src; uint32_t count32b, i; if (dma == 0U) { count32b = ((uint32_t)len + 3U) / 4U; for (i = 0U; i < count32b; i++) { USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc); pSrc++; } } return HAL_OK; } /** * @brief USB_ReadPacket : read a packet from the RX FIFO * @param USBx Selected device * @param dest source pointer * @param len Number of bytes to read * @retval pointer to destination buffer */ void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t *pDest = (uint32_t *)dest; uint32_t i; uint32_t count32b = ((uint32_t)len + 3U) / 4U; for (i = 0U; i < count32b; i++) { __UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U)); pDest++; } return ((void *)pDest); } /** * @brief USB_EPSetStall : set a stall condition over an EP * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_EPSetStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; if (ep->is_in == 1U) { if (((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == 0U) && (epnum != 0U)) { USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS); } USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_STALL; } else { if (((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == 0U) && (epnum != 0U)) { USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_EPDIS); } USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_STALL; } return HAL_OK; } /** * @brief USB_EPClearStall : Clear a stall condition over an EP * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_EPClearStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t epnum = (uint32_t)ep->num; if (ep->is_in == 1U) { USBx_INEP(epnum)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; /* DATA0 */ } } else { USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; /* DATA0 */ } } return HAL_OK; } /** * @brief USB_StopDevice : Stop the usb device mode * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_StopDevice(USB_OTG_GlobalTypeDef *USBx) { HAL_StatusTypeDef ret; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t i; /* Clear Pending interrupt */ for (i = 0U; i < 15U; i++) { USBx_INEP(i)->DIEPINT = 0xFB7FU; USBx_OUTEP(i)->DOEPINT = 0xFB7FU; } /* Clear interrupt masks */ USBx_DEVICE->DIEPMSK = 0U; USBx_DEVICE->DOEPMSK = 0U; USBx_DEVICE->DAINTMSK = 0U; /* Flush the FIFO */ ret = USB_FlushRxFifo(USBx); if (ret != HAL_OK) { return ret; } ret = USB_FlushTxFifo(USBx, 0x10U); if (ret != HAL_OK) { return ret; } return ret; } /** * @brief USB_SetDevAddress : Stop the usb device mode * @param USBx Selected device * @param address new device address to be assigned * This parameter can be a value from 0 to 255 * @retval HAL status */ HAL_StatusTypeDef USB_SetDevAddress(USB_OTG_GlobalTypeDef *USBx, uint8_t address) { uint32_t USBx_BASE = (uint32_t)USBx; USBx_DEVICE->DCFG &= ~(USB_OTG_DCFG_DAD); USBx_DEVICE->DCFG |= ((uint32_t)address << 4) & USB_OTG_DCFG_DAD; return HAL_OK; } /** * @brief USB_DevConnect : Connect the USB device by enabling Rpu * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DevConnect(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; /* In case phy is stopped, ensure to ungate and restore the phy CLK */ USBx_PCGCCTL &= ~(USB_OTG_PCGCCTL_STOPCLK | USB_OTG_PCGCCTL_GATECLK); USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_SDIS; return HAL_OK; } /** * @brief USB_DevDisconnect : Disconnect the USB device by disabling Rpu * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DevDisconnect(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; /* In case phy is stopped, ensure to ungate and restore the phy CLK */ USBx_PCGCCTL &= ~(USB_OTG_PCGCCTL_STOPCLK | USB_OTG_PCGCCTL_GATECLK); USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; return HAL_OK; } /** * @brief USB_ReadInterrupts: return the global USB interrupt status * @param USBx Selected device * @retval HAL status */ uint32_t USB_ReadInterrupts(USB_OTG_GlobalTypeDef *USBx) { uint32_t tmpreg; tmpreg = USBx->GINTSTS; tmpreg &= USBx->GINTMSK; return tmpreg; } /** * @brief USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status * @param USBx Selected device * @retval HAL status */ uint32_t USB_ReadDevAllOutEpInterrupt(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; tmpreg &= USBx_DEVICE->DAINTMSK; return ((tmpreg & 0xffff0000U) >> 16); } /** * @brief USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status * @param USBx Selected device * @retval HAL status */ uint32_t USB_ReadDevAllInEpInterrupt(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; tmpreg &= USBx_DEVICE->DAINTMSK; return ((tmpreg & 0xFFFFU)); } /** * @brief Returns Device OUT EP Interrupt register * @param USBx Selected device * @param epnum endpoint number * This parameter can be a value from 0 to 15 * @retval Device OUT EP Interrupt register */ uint32_t USB_ReadDevOutEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t tmpreg; tmpreg = USBx_OUTEP((uint32_t)epnum)->DOEPINT; tmpreg &= USBx_DEVICE->DOEPMSK; return tmpreg; } /** * @brief Returns Device IN EP Interrupt register * @param USBx Selected device * @param epnum endpoint number * This parameter can be a value from 0 to 15 * @retval Device IN EP Interrupt register */ uint32_t USB_ReadDevInEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t tmpreg, msk, emp; msk = USBx_DEVICE->DIEPMSK; emp = USBx_DEVICE->DIEPEMPMSK; msk |= ((emp >> (epnum & EP_ADDR_MSK)) & 0x1U) << 7; tmpreg = USBx_INEP((uint32_t)epnum)->DIEPINT & msk; return tmpreg; } /** * @brief USB_ClearInterrupts: clear a USB interrupt * @param USBx Selected device * @param interrupt flag * @retval None */ void USB_ClearInterrupts(USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt) { USBx->GINTSTS |= interrupt; } /** * @brief Returns USB core mode * @param USBx Selected device * @retval return core mode : Host or Device * This parameter can be one of these values: * 0 : Host * 1 : Device */ uint32_t USB_GetMode(USB_OTG_GlobalTypeDef *USBx) { return ((USBx->GINTSTS) & 0x1U); } /** * @brief Activate EP0 for Setup transactions * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_ActivateSetup(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; /* Set the MPS of the IN EP0 to 64 bytes */ USBx_INEP(0U)->DIEPCTL &= ~USB_OTG_DIEPCTL_MPSIZ; USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGINAK; return HAL_OK; } /** * @brief Prepare the EP0 to start the first control setup * @param USBx Selected device * @param dma USB dma enabled or disabled * This parameter can be one of these values: * 0 : DMA feature not used * 1 : DMA feature used * @param psetup pointer to setup packet * @retval HAL status */ HAL_StatusTypeDef USB_EP0_OutStart(USB_OTG_GlobalTypeDef *USBx, uint8_t dma, uint8_t *psetup) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t gSNPSiD = *(__IO uint32_t *)(&USBx->CID + 0x1U); if (gSNPSiD > USB_OTG_CORE_ID_300A) { if ((USBx_OUTEP(0U)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) { return HAL_OK; } } USBx_OUTEP(0U)->DOEPTSIZ = 0U; USBx_OUTEP(0U)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); USBx_OUTEP(0U)->DOEPTSIZ |= (3U * 8U); USBx_OUTEP(0U)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_STUPCNT; if (dma == 1U) { USBx_OUTEP(0U)->DOEPDMA = (uint32_t)psetup; /* EP enable */ USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_EPENA | USB_OTG_DOEPCTL_USBAEP; } return HAL_OK; } /** * @brief Reset the USB Core (needed after USB clock settings change) * @param USBx Selected device * @retval HAL status */ static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx) { uint32_t count = 0U; /* Wait for AHB master IDLE state. */ do { if (++count > 200000U) { return HAL_TIMEOUT; } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); /* Core Soft Reset */ count = 0U; USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; do { if (++count > 200000U) { return HAL_TIMEOUT; } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST); return HAL_OK; } /** * @brief USB_HostInit : Initializes the USB OTG controller registers * for Host mode * @param USBx Selected device * @param cfg pointer to a USB_OTG_CfgTypeDef structure that contains * the configuration information for the specified USBx peripheral. * @retval HAL status */ HAL_StatusTypeDef USB_HostInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t i; /* Restart the Phy Clock */ USBx_PCGCCTL = 0U; #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Disable HW VBUS sensing */ USBx->GCCFG &= ~(USB_OTG_GCCFG_VBDEN); #else /* * Disable HW VBUS sensing. VBUS is internally considered to be always * at VBUS-Valid level (5V). */ USBx->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS; USBx->GCCFG &= ~USB_OTG_GCCFG_VBUSBSEN; USBx->GCCFG &= ~USB_OTG_GCCFG_VBUSASEN; #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) /* Disable Battery chargin detector */ USBx->GCCFG &= ~(USB_OTG_GCCFG_BCDEN); #endif /* defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ if ((USBx->CID & (0x1U << 8)) != 0U) { if (cfg.speed == USBH_FSLS_SPEED) { /* Force Device Enumeration to FS/LS mode only */ USBx_HOST->HCFG |= USB_OTG_HCFG_FSLSS; } else { /* Set default Max speed support */ USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSS); } } else { /* Set default Max speed support */ USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSS); } /* Make sure the FIFOs are flushed. */ (void)USB_FlushTxFifo(USBx, 0x10U); /* all Tx FIFOs */ (void)USB_FlushRxFifo(USBx); /* Clear all pending HC Interrupts */ for (i = 0U; i < cfg.Host_channels; i++) { USBx_HC(i)->HCINT = 0xFFFFFFFFU; USBx_HC(i)->HCINTMSK = 0U; } /* Enable VBUS driving */ (void)USB_DriveVbus(USBx, 1U); HAL_Delay(200U); /* Disable all interrupts. */ USBx->GINTMSK = 0U; /* Clear any pending interrupts */ USBx->GINTSTS = 0xFFFFFFFFU; if ((USBx->CID & (0x1U << 8)) != 0U) { /* set Rx FIFO size */ USBx->GRXFSIZ = 0x200U; USBx->DIEPTXF0_HNPTXFSIZ = (uint32_t)(((0x100U << 16) & USB_OTG_NPTXFD) | 0x200U); USBx->HPTXFSIZ = (uint32_t)(((0xE0U << 16) & USB_OTG_HPTXFSIZ_PTXFD) | 0x300U); } else { /* set Rx FIFO size */ USBx->GRXFSIZ = 0x80U; USBx->DIEPTXF0_HNPTXFSIZ = (uint32_t)(((0x60U << 16) & USB_OTG_NPTXFD) | 0x80U); USBx->HPTXFSIZ = (uint32_t)(((0x40U << 16)& USB_OTG_HPTXFSIZ_PTXFD) | 0xE0U); } /* Enable the common interrupts */ if (cfg.dma_enable == 0U) { USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM; } /* Enable interrupts matching to the Host mode ONLY */ USBx->GINTMSK |= (USB_OTG_GINTMSK_PRTIM | USB_OTG_GINTMSK_HCIM | \ USB_OTG_GINTMSK_SOFM | USB_OTG_GINTSTS_DISCINT | \ USB_OTG_GINTMSK_PXFRM_IISOOXFRM | USB_OTG_GINTMSK_WUIM); return HAL_OK; } /** * @brief USB_InitFSLSPClkSel : Initializes the FSLSPClkSel field of the * HCFG register on the PHY type and set the right frame interval * @param USBx Selected device * @param freq clock frequency * This parameter can be one of these values: * HCFG_48_MHZ : Full Speed 48 MHz Clock * HCFG_6_MHZ : Low Speed 6 MHz Clock * @retval HAL status */ HAL_StatusTypeDef USB_InitFSLSPClkSel(USB_OTG_GlobalTypeDef *USBx, uint8_t freq) { uint32_t USBx_BASE = (uint32_t)USBx; USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSPCS); USBx_HOST->HCFG |= (uint32_t)freq & USB_OTG_HCFG_FSLSPCS; if (freq == HCFG_48_MHZ) { USBx_HOST->HFIR = 48000U; } else if (freq == HCFG_6_MHZ) { USBx_HOST->HFIR = 6000U; } else { /* ... */ } return HAL_OK; } /** * @brief USB_OTG_ResetPort : Reset Host Port * @param USBx Selected device * @retval HAL status * @note (1)The application must wait at least 10 ms * before clearing the reset bit. */ HAL_StatusTypeDef USB_ResetPort(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; __IO uint32_t hprt0 = 0U; hprt0 = USBx_HPRT0; hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG); USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); HAL_Delay(100U); /* See Note #1 */ USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); HAL_Delay(10U); return HAL_OK; } /** * @brief USB_DriveVbus : activate or de-activate vbus * @param state VBUS state * This parameter can be one of these values: * 0 : Deactivate VBUS * 1 : Activate VBUS * @retval HAL status */ HAL_StatusTypeDef USB_DriveVbus(USB_OTG_GlobalTypeDef *USBx, uint8_t state) { uint32_t USBx_BASE = (uint32_t)USBx; __IO uint32_t hprt0 = 0U; hprt0 = USBx_HPRT0; hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG); if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) { USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); } if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) { USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); } return HAL_OK; } /** * @brief Return Host Core speed * @param USBx Selected device * @retval speed : Host speed * This parameter can be one of these values: * @arg HCD_SPEED_HIGH: High speed mode * @arg HCD_SPEED_FULL: Full speed mode * @arg HCD_SPEED_LOW: Low speed mode */ uint32_t USB_GetHostSpeed(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; __IO uint32_t hprt0 = 0U; hprt0 = USBx_HPRT0; return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); } /** * @brief Return Host Current Frame number * @param USBx Selected device * @retval current frame number */ uint32_t USB_GetCurrentFrame(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; return (USBx_HOST->HFNUM & USB_OTG_HFNUM_FRNUM); } /** * @brief Initialize a host channel * @param USBx Selected device * @param ch_num Channel number * This parameter can be a value from 1 to 15 * @param epnum Endpoint number * This parameter can be a value from 1 to 15 * @param dev_address Current device address * This parameter can be a value from 0 to 255 * @param speed Current device speed * This parameter can be one of these values: * @arg USB_OTG_SPEED_HIGH: High speed mode * @arg USB_OTG_SPEED_FULL: Full speed mode * @arg USB_OTG_SPEED_LOW: Low speed mode * @param ep_type Endpoint Type * This parameter can be one of these values: * @arg EP_TYPE_CTRL: Control type * @arg EP_TYPE_ISOC: Isochronous type * @arg EP_TYPE_BULK: Bulk type * @arg EP_TYPE_INTR: Interrupt type * @param mps Max Packet Size * This parameter can be a value from 0 to 32K * @retval HAL state */ HAL_StatusTypeDef USB_HC_Init(USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps) { HAL_StatusTypeDef ret = HAL_OK; uint32_t USBx_BASE = (uint32_t)USBx; uint32_t HCcharEpDir, HCcharLowSpeed; uint32_t HostCoreSpeed; /* Clear old interrupt conditions for this host channel. */ USBx_HC((uint32_t)ch_num)->HCINT = 0xFFFFFFFFU; /* Enable channel interrupts required for this transfer. */ switch (ep_type) { case EP_TYPE_CTRL: case EP_TYPE_BULK: USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM | USB_OTG_HCINTMSK_STALLM | USB_OTG_HCINTMSK_TXERRM | USB_OTG_HCINTMSK_DTERRM | USB_OTG_HCINTMSK_AHBERR | USB_OTG_HCINTMSK_NAKM; if ((epnum & 0x80U) == 0x80U) { USBx_HC((uint32_t)ch_num)->HCINTMSK |= USB_OTG_HCINTMSK_BBERRM; } else { if ((USBx->CID & (0x1U << 8)) != 0U) { USBx_HC((uint32_t)ch_num)->HCINTMSK |= USB_OTG_HCINTMSK_NYET | USB_OTG_HCINTMSK_ACKM; } } break; case EP_TYPE_INTR: USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM | USB_OTG_HCINTMSK_STALLM | USB_OTG_HCINTMSK_TXERRM | USB_OTG_HCINTMSK_DTERRM | USB_OTG_HCINTMSK_NAKM | USB_OTG_HCINTMSK_AHBERR | USB_OTG_HCINTMSK_FRMORM; if ((epnum & 0x80U) == 0x80U) { USBx_HC((uint32_t)ch_num)->HCINTMSK |= USB_OTG_HCINTMSK_BBERRM; } break; case EP_TYPE_ISOC: USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM | USB_OTG_HCINTMSK_ACKM | USB_OTG_HCINTMSK_AHBERR | USB_OTG_HCINTMSK_FRMORM; if ((epnum & 0x80U) == 0x80U) { USBx_HC((uint32_t)ch_num)->HCINTMSK |= (USB_OTG_HCINTMSK_TXERRM | USB_OTG_HCINTMSK_BBERRM); } break; default: ret = HAL_ERROR; break; } /* Enable the top level host channel interrupt. */ USBx_HOST->HAINTMSK |= 1UL << (ch_num & 0xFU); /* Make sure host channel interrupts are enabled. */ USBx->GINTMSK |= USB_OTG_GINTMSK_HCIM; /* Program the HCCHAR register */ if ((epnum & 0x80U) == 0x80U) { HCcharEpDir = (0x1U << 15) & USB_OTG_HCCHAR_EPDIR; } else { HCcharEpDir = 0U; } HostCoreSpeed = USB_GetHostSpeed(USBx); /* LS device plugged to HUB */ if ((speed == HPRT0_PRTSPD_LOW_SPEED) && (HostCoreSpeed != HPRT0_PRTSPD_LOW_SPEED)) { HCcharLowSpeed = (0x1U << 17) & USB_OTG_HCCHAR_LSDEV; } else { HCcharLowSpeed = 0U; } USBx_HC((uint32_t)ch_num)->HCCHAR = (((uint32_t)dev_address << 22) & USB_OTG_HCCHAR_DAD) | ((((uint32_t)epnum & 0x7FU) << 11) & USB_OTG_HCCHAR_EPNUM) | (((uint32_t)ep_type << 18) & USB_OTG_HCCHAR_EPTYP) | ((uint32_t)mps & USB_OTG_HCCHAR_MPSIZ) | HCcharEpDir | HCcharLowSpeed; if (ep_type == EP_TYPE_INTR) { USBx_HC((uint32_t)ch_num)->HCCHAR |= USB_OTG_HCCHAR_ODDFRM ; } return ret; } /** * @brief Start a transfer over a host channel * @param USBx Selected device * @param hc pointer to host channel structure * @param dma USB dma enabled or disabled * This parameter can be one of these values: * 0 : DMA feature not used * 1 : DMA feature used * @retval HAL state */ HAL_StatusTypeDef USB_HC_StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_HCTypeDef *hc, uint8_t dma) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t ch_num = (uint32_t)hc->ch_num; __IO uint32_t tmpreg; uint8_t is_oddframe; uint16_t len_words; uint16_t num_packets; uint16_t max_hc_pkt_count = 256U; if (((USBx->CID & (0x1U << 8)) != 0U) && (hc->speed == USBH_HS_SPEED)) { /* in DMA mode host Core automatically issues ping in case of NYET/NAK */ if ((dma == 1U) && ((hc->ep_type == EP_TYPE_CTRL) || (hc->ep_type == EP_TYPE_BULK))) { USBx_HC((uint32_t)ch_num)->HCINTMSK &= ~(USB_OTG_HCINTMSK_NYET | USB_OTG_HCINTMSK_ACKM | USB_OTG_HCINTMSK_NAKM); } if ((dma == 0U) && (hc->do_ping == 1U)) { (void)USB_DoPing(USBx, hc->ch_num); return HAL_OK; } } /* Compute the expected number of packets associated to the transfer */ if (hc->xfer_len > 0U) { num_packets = (uint16_t)((hc->xfer_len + hc->max_packet - 1U) / hc->max_packet); if (num_packets > max_hc_pkt_count) { num_packets = max_hc_pkt_count; hc->XferSize = (uint32_t)num_packets * hc->max_packet; } } else { num_packets = 1U; } /* * For IN channel HCTSIZ.XferSize is expected to be an integer multiple of * max_packet size. */ if (hc->ep_is_in != 0U) { hc->XferSize = (uint32_t)num_packets * hc->max_packet; } else { hc->XferSize = hc->xfer_len; } /* Initialize the HCTSIZn register */ USBx_HC(ch_num)->HCTSIZ = (hc->XferSize & USB_OTG_HCTSIZ_XFRSIZ) | (((uint32_t)num_packets << 19) & USB_OTG_HCTSIZ_PKTCNT) | (((uint32_t)hc->data_pid << 29) & USB_OTG_HCTSIZ_DPID); if (dma != 0U) { /* xfer_buff MUST be 32-bits aligned */ USBx_HC(ch_num)->HCDMA = (uint32_t)hc->xfer_buff; } is_oddframe = (((uint32_t)USBx_HOST->HFNUM & 0x01U) != 0U) ? 0U : 1U; USBx_HC(ch_num)->HCCHAR &= ~USB_OTG_HCCHAR_ODDFRM; USBx_HC(ch_num)->HCCHAR |= (uint32_t)is_oddframe << 29; /* Set host channel enable */ tmpreg = USBx_HC(ch_num)->HCCHAR; tmpreg &= ~USB_OTG_HCCHAR_CHDIS; /* make sure to set the correct ep direction */ if (hc->ep_is_in != 0U) { tmpreg |= USB_OTG_HCCHAR_EPDIR; } else { tmpreg &= ~USB_OTG_HCCHAR_EPDIR; } tmpreg |= USB_OTG_HCCHAR_CHENA; USBx_HC(ch_num)->HCCHAR = tmpreg; if (dma != 0U) /* dma mode */ { return HAL_OK; } if ((hc->ep_is_in == 0U) && (hc->xfer_len > 0U)) { switch (hc->ep_type) { /* Non periodic transfer */ case EP_TYPE_CTRL: case EP_TYPE_BULK: len_words = (uint16_t)((hc->xfer_len + 3U) / 4U); /* check if there is enough space in FIFO space */ if (len_words > (USBx->HNPTXSTS & 0xFFFFU)) { /* need to process data in nptxfempty interrupt */ USBx->GINTMSK |= USB_OTG_GINTMSK_NPTXFEM; } break; /* Periodic transfer */ case EP_TYPE_INTR: case EP_TYPE_ISOC: len_words = (uint16_t)((hc->xfer_len + 3U) / 4U); /* check if there is enough space in FIFO space */ if (len_words > (USBx_HOST->HPTXSTS & 0xFFFFU)) /* split the transfer */ { /* need to process data in ptxfempty interrupt */ USBx->GINTMSK |= USB_OTG_GINTMSK_PTXFEM; } break; default: break; } /* Write packet into the Tx FIFO. */ (void)USB_WritePacket(USBx, hc->xfer_buff, hc->ch_num, (uint16_t)hc->xfer_len, 0); } return HAL_OK; } /** * @brief Read all host channel interrupts status * @param USBx Selected device * @retval HAL state */ uint32_t USB_HC_ReadInterrupt(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; return ((USBx_HOST->HAINT) & 0xFFFFU); } /** * @brief Halt a host channel * @param USBx Selected device * @param hc_num Host Channel number * This parameter can be a value from 1 to 15 * @retval HAL state */ HAL_StatusTypeDef USB_HC_Halt(USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t hcnum = (uint32_t)hc_num; uint32_t count = 0U; uint32_t HcEpType = (USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_EPTYP) >> 18; uint32_t ChannelEna = (USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) >> 31; if (((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == USB_OTG_GAHBCFG_DMAEN) && (ChannelEna == 0U)) { return HAL_OK; } /* Check for space in the request queue to issue the halt. */ if ((HcEpType == HCCHAR_CTRL) || (HcEpType == HCCHAR_BULK)) { USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS; if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U) { if ((USBx->HNPTXSTS & (0xFFU << 16)) == 0U) { USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA; USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_EPDIR; do { if (++count > 1000U) { break; } } while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA); } else { USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; } } } else { USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS; if ((USBx_HOST->HPTXSTS & (0xFFU << 16)) == 0U) { USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA; USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_EPDIR; do { if (++count > 1000U) { break; } } while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA); } else { USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA; } } return HAL_OK; } /** * @brief Initiate Do Ping protocol * @param USBx Selected device * @param hc_num Host Channel number * This parameter can be a value from 1 to 15 * @retval HAL state */ HAL_StatusTypeDef USB_DoPing(USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t chnum = (uint32_t)ch_num; uint32_t num_packets = 1U; uint32_t tmpreg; USBx_HC(chnum)->HCTSIZ = ((num_packets << 19) & USB_OTG_HCTSIZ_PKTCNT) | USB_OTG_HCTSIZ_DOPING; /* Set host channel enable */ tmpreg = USBx_HC(chnum)->HCCHAR; tmpreg &= ~USB_OTG_HCCHAR_CHDIS; tmpreg |= USB_OTG_HCCHAR_CHENA; USBx_HC(chnum)->HCCHAR = tmpreg; return HAL_OK; } /** * @brief Stop Host Core * @param USBx Selected device * @retval HAL state */ HAL_StatusTypeDef USB_StopHost(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; uint32_t count = 0U; uint32_t value; uint32_t i; (void)USB_DisableGlobalInt(USBx); /* Flush FIFO */ (void)USB_FlushTxFifo(USBx, 0x10U); (void)USB_FlushRxFifo(USBx); /* Flush out any leftover queued requests. */ for (i = 0U; i <= 15U; i++) { value = USBx_HC(i)->HCCHAR; value |= USB_OTG_HCCHAR_CHDIS; value &= ~USB_OTG_HCCHAR_CHENA; value &= ~USB_OTG_HCCHAR_EPDIR; USBx_HC(i)->HCCHAR = value; } /* Halt all channels to put them into a known state. */ for (i = 0U; i <= 15U; i++) { value = USBx_HC(i)->HCCHAR; value |= USB_OTG_HCCHAR_CHDIS; value |= USB_OTG_HCCHAR_CHENA; value &= ~USB_OTG_HCCHAR_EPDIR; USBx_HC(i)->HCCHAR = value; do { if (++count > 1000U) { break; } } while ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA); } /* Clear any pending Host interrupts */ USBx_HOST->HAINT = 0xFFFFFFFFU; USBx->GINTSTS = 0xFFFFFFFFU; (void)USB_EnableGlobalInt(USBx); return HAL_OK; } /** * @brief USB_ActivateRemoteWakeup active remote wakeup signalling * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_ActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS) { /* active Remote wakeup signalling */ USBx_DEVICE->DCTL |= USB_OTG_DCTL_RWUSIG; } return HAL_OK; } /** * @brief USB_DeActivateRemoteWakeup de-active remote wakeup signalling * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DeActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; /* active Remote wakeup signalling */ USBx_DEVICE->DCTL &= ~(USB_OTG_DCTL_RWUSIG); return HAL_OK; } #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ /** * @} */ /** * @} */ #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */ #endif /* defined (HAL_PCD_MODULE_ENABLED) || defined (HAL_HCD_MODULE_ENABLED) */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h ================================================ /** ****************************************************************************** * @file usbd_cdc.h * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief header file for the usbd_cdc.c file. ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USB_CDC_H #define __USB_CDC_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_ioreq.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup usbd_cdc * @brief This file is the Header file for usbd_cdc.c * @{ */ /** @defgroup usbd_cdc_Exported_Defines * @{ */ #define CDC_IN_EP 0x81 /* EP1 for data IN */ #define CDC_OUT_EP 0x01 /* EP1 for data OUT */ #define CDC_CMD_EP 0x82 /* EP2 for CDC commands */ #define ODRIVE_IN_EP 0x83 /* EP3 IN: ODrive device TX endpoint */ #define ODRIVE_OUT_EP 0x03 /* EP3 OUT: ODrive device RX endpoint */ /* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */ #define CDC_DATA_HS_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */ #define CDC_DATA_FS_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */ #define CDC_CMD_PACKET_SIZE 8 /* Control Endpoint Packet size */ #define USB_CDC_CONFIG_DESC_SIZ (67 + 39) #define CDC_DATA_HS_IN_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE #define CDC_DATA_HS_OUT_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE #define CDC_DATA_FS_IN_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE #define CDC_DATA_FS_OUT_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE /*---------------------------------------------------------------------*/ /* CDC definitions */ /*---------------------------------------------------------------------*/ #define CDC_SEND_ENCAPSULATED_COMMAND 0x00 #define CDC_GET_ENCAPSULATED_RESPONSE 0x01 #define CDC_SET_COMM_FEATURE 0x02 #define CDC_GET_COMM_FEATURE 0x03 #define CDC_CLEAR_COMM_FEATURE 0x04 #define CDC_SET_LINE_CODING 0x20 #define CDC_GET_LINE_CODING 0x21 #define CDC_SET_CONTROL_LINE_STATE 0x22 #define CDC_SEND_BREAK 0x23 /** * @} */ /** @defgroup USBD_CORE_Exported_TypesDefinitions * @{ */ /** * @} */ typedef struct { uint32_t bitrate; uint8_t format; uint8_t paritytype; uint8_t datatype; }USBD_CDC_LineCodingTypeDef; typedef struct _USBD_CDC_Itf { int8_t (* Init) (void); int8_t (* DeInit) (void); int8_t (* Control) (uint8_t, uint8_t * , uint16_t); int8_t (* Receive) (uint8_t *, uint32_t *, uint8_t); }USBD_CDC_ItfTypeDef; typedef struct { uint8_t* Buffer; uint32_t Length; volatile uint8_t State; } USBD_CDC_EP_HandleTypeDef; typedef struct { uint32_t data[CDC_DATA_HS_MAX_PACKET_SIZE/4]; /* Force 32bits alignment */ uint8_t CmdOpCode; uint8_t CmdLength; USBD_CDC_EP_HandleTypeDef CDC_Tx; USBD_CDC_EP_HandleTypeDef CDC_Rx; USBD_CDC_EP_HandleTypeDef REF_Tx; USBD_CDC_EP_HandleTypeDef ODRIVE_Rx; } USBD_CDC_HandleTypeDef; /** @defgroup USBD_CORE_Exported_Macros * @{ */ /** * @} */ /** @defgroup USBD_CORE_Exported_Variables * @{ */ extern USBD_ClassTypeDef USBD_CDC; #define USBD_CDC_CLASS &USBD_CDC /** * @} */ /** @defgroup USB_CORE_Exported_Functions * @{ */ uint8_t USBD_CDC_RegisterInterface (USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops); uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length, uint8_t endpoint_pair); uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint8_t endpoint_pair); uint8_t USBD_CDC_ReceivePacket (USBD_HandleTypeDef *pdev, uint8_t endpoint_pair); uint8_t USBD_CDC_TransmitPacket (USBD_HandleTypeDef *pdev, uint8_t endpoint_pair); /** * @} */ #ifdef __cplusplus } #endif #endif /* __USB_CDC_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c ================================================ /** ****************************************************************************** * @file usbd_cdc.c * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief This file provides the high layer firmware functions to manage the * following functionalities of the USB CDC Class: * - Initialization and Configuration of high and low layer * - Enumeration as CDC Device (and enumeration for each implemented memory interface) * - OUT/IN data transfer * - Command IN transfer (class requests management) * - Error management * * @verbatim * * =================================================================== * CDC Class Driver Description * =================================================================== * This driver manages the "Universal Serial Bus Class Definitions for Communications Devices * Revision 1.2 November 16, 2007" and the sub-protocol specification of "Universal Serial Bus * Communications Class Subclass Specification for PSTN Devices Revision 1.2 February 9, 2007" * This driver implements the following aspects of the specification: * - Device descriptor management * - Configuration descriptor management * - Enumeration as CDC device with 2 data endpoints (IN and OUT) and 1 command endpoint (IN) * - Requests management (as described in section 6.2 in specification) * - Abstract Control Model compliant * - Union Functional collection (using 1 IN endpoint for control) * - Data interface class * * These aspects may be enriched or modified for a specific user application. * * This driver doesn't implement the following aspects of the specification * (but it is possible to manage these features with some modifications on this driver): * - Any class-specific aspect relative to communication classes should be managed by user application. * - All communication classes other than PSTN are not managed * * @endverbatim * ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_cdc.h" #include "usbd_desc.h" #include "usbd_ctlreq.h" #include #include /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_CDC * @brief usbd core module * @{ */ /** @defgroup USBD_CDC_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup USBD_CDC_Private_Defines * @{ */ /** * @} */ /** @defgroup USBD_CDC_Private_Macros * @{ */ /** * @} */ /** @defgroup USBD_CDC_Private_FunctionPrototypes * @{ */ static uint8_t USBD_CDC_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx); static uint8_t USBD_CDC_DeInit (USBD_HandleTypeDef *pdev, uint8_t cfgidx); static uint8_t USBD_CDC_Setup (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); static uint8_t USBD_CDC_DataIn (USBD_HandleTypeDef *pdev, uint8_t epnum); static uint8_t USBD_CDC_DataOut (USBD_HandleTypeDef *pdev, uint8_t epnum); static uint8_t USBD_CDC_EP0_RxReady (USBD_HandleTypeDef *pdev); static uint8_t *USBD_CDC_GetFSCfgDesc (uint16_t *length); static uint8_t *USBD_CDC_GetHSCfgDesc (uint16_t *length); static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length); static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length); uint8_t *USBD_CDC_GetDeviceQualifierDescriptor (uint16_t *length); static uint8_t USBD_WinUSBComm_SetupVendor(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); //static uint8_t * USBD_GetUsrStrDescriptor(struct _USBD_HandleTypeDef *pdev, uint8_t index, uint16_t *length); /* USB Standard Device Descriptor */ __ALIGN_BEGIN static uint8_t USBD_CDC_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END = { USB_LEN_DEV_QUALIFIER_DESC, USB_DESC_TYPE_DEVICE_QUALIFIER, 0x00, 0x02, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, }; /** * @} */ /** @defgroup USBD_CDC_Private_Variables * @{ */ /* CDC interface class callbacks structure */ USBD_ClassTypeDef USBD_CDC = { USBD_CDC_Init, USBD_CDC_DeInit, USBD_CDC_Setup, NULL, /* EP0_TxSent, */ USBD_CDC_EP0_RxReady, USBD_CDC_DataIn, USBD_CDC_DataOut, NULL, NULL, NULL, USBD_CDC_GetHSCfgDesc, USBD_CDC_GetFSCfgDesc, USBD_CDC_GetOtherSpeedCfgDesc, USBD_CDC_GetDeviceQualifierDescriptor, USBD_UsrStrDescriptor }; /* USB CDC device Configuration Descriptor */ __ALIGN_BEGIN uint8_t USBD_CDC_CfgDesc[USB_CDC_CONFIG_DESC_SIZ] __ALIGN_END = { /*Configuration Descriptor*/ 0x09, /* bLength: Configuration Descriptor size */ USB_DESC_TYPE_CONFIGURATION, /* bDescriptorType: Configuration */ USB_CDC_CONFIG_DESC_SIZ, /* wTotalLength:no of returned bytes */ 0x00, 0x03, /* bNumInterfaces: 3 interfaces (2 for CDC, 1 custom) */ 0x01, /* bConfigurationValue: Configuration value */ 0x00, /* iConfiguration: Index of string descriptor describing the configuration */ 0xC0, /* bmAttributes: self powered */ 0x32, /* MaxPower 0 mA */ /////////////////////////////////////////////////////////////////////////////// /* Interface Association Descriptor: CDC device (virtual com port) */ 0x08, /* bLength: IAD size */ 0x0B, /* bDescriptorType: Interface Association Descriptor */ 0x00, /* bFirstInterface */ 0x02, /* bInterfaceCount */ 0x02, /* bFunctionClass: Communication Interface Class */ 0x02, /* bFunctionSubClass: Abstract Control Model */ 0x01, /* bFunctionProtocol: Common AT commands */ 0x00, /* iFunction */ /*---------------------------------------------------------------------------*/ /*Interface Descriptor */ 0x09, /* bLength: Interface Descriptor size */ USB_DESC_TYPE_INTERFACE, /* bDescriptorType: Interface */ /* Interface descriptor type */ 0x00, /* bInterfaceNumber: Number of Interface */ 0x00, /* bAlternateSetting: Alternate setting */ 0x01, /* bNumEndpoints: One endpoints used */ 0x02, /* bInterfaceClass: Communication Interface Class */ 0x02, /* bInterfaceSubClass: Abstract Control Model */ 0x01, /* bInterfaceProtocol: Common AT commands */ 0x00, /* iInterface: */ /*Header Functional Descriptor*/ 0x05, /* bLength: Endpoint Descriptor size */ 0x24, /* bDescriptorType: CS_INTERFACE */ 0x00, /* bDescriptorSubtype: Header Func Desc */ 0x10, /* bcdCDC: spec release number */ 0x01, /*Call Management Functional Descriptor*/ 0x05, /* bFunctionLength */ 0x24, /* bDescriptorType: CS_INTERFACE */ 0x01, /* bDescriptorSubtype: Call Management Func Desc */ 0x00, /* bmCapabilities: D0+D1 */ 0x01, /* bDataInterface: 1 */ /*ACM Functional Descriptor*/ 0x04, /* bFunctionLength */ 0x24, /* bDescriptorType: CS_INTERFACE */ 0x02, /* bDescriptorSubtype: Abstract Control Management desc */ 0x02, /* bmCapabilities */ /*Union Functional Descriptor*/ 0x05, /* bFunctionLength */ 0x24, /* bDescriptorType: CS_INTERFACE */ 0x06, /* bDescriptorSubtype: Union func desc */ 0x00, /* bMasterInterface: Communication class interface */ 0x01, /* bSlaveInterface0: Data Class Interface */ /*Endpoint 2 Descriptor*/ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: Endpoint */ CDC_CMD_EP, /* bEndpointAddress */ 0x03, /* bmAttributes: Interrupt */ LOBYTE(CDC_CMD_PACKET_SIZE), /* wMaxPacketSize: */ HIBYTE(CDC_CMD_PACKET_SIZE), 0x10, /* bInterval: */ /*---------------------------------------------------------------------------*/ /*Data class interface descriptor*/ 0x09, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_INTERFACE, /* bDescriptorType: */ 0x01, /* bInterfaceNumber: Number of Interface */ 0x00, /* bAlternateSetting: Alternate setting */ 0x02, /* bNumEndpoints: Two endpoints used */ 0x0A, /* bInterfaceClass: CDC */ 0x00, /* bInterfaceSubClass: */ 0x00, /* bInterfaceProtocol: */ 0x00, /* iInterface: */ /*Endpoint OUT Descriptor*/ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: Endpoint */ CDC_OUT_EP, /* bEndpointAddress */ 0x02, /* bmAttributes: Bulk */ LOBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), /* wMaxPacketSize: */ HIBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), 0x00, /* bInterval: ignore for Bulk transfer */ /*Endpoint IN Descriptor*/ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: Endpoint */ CDC_IN_EP, /* bEndpointAddress */ 0x02, /* bmAttributes: Bulk */ LOBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), /* wMaxPacketSize: */ HIBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), 0x00, /* bInterval: ignore for Bulk transfer */ /////////////////////////////////////////////////////////////////////////////// /* Interface Association Descriptor: custom device */ 0x08, /* bLength: IAD size */ 0x0B, /* bDescriptorType: Interface Association Descriptor */ 0x02, /* bFirstInterface */ 0x01, /* bInterfaceCount */ 0x00, /* bFunctionClass: */ 0x00, /* bFunctionSubClass: */ 0x00, /* bFunctionProtocol: */ 0x06, /* iFunction */ /*---------------------------------------------------------------------------*/ /*Data class interface descriptor*/ 0x09, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_INTERFACE, /* bDescriptorType: */ 0x02, /* bInterfaceNumber: Number of Interface */ 0x00, /* bAlternateSetting: Alternate setting */ 0x02, /* bNumEndpoints: Two endpoints used */ 0x00, /* bInterfaceClass: vendor specific */ 0x01, /* bInterfaceSubClass: ODrive Communication */ 0x00, /* bInterfaceProtocol: */ 0x00, /* iInterface: */ /*Endpoint OUT Descriptor*/ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: Endpoint */ ODRIVE_OUT_EP, /* bEndpointAddress */ 0x02, /* bmAttributes: Bulk */ LOBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), /* wMaxPacketSize: */ HIBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), 0x00, /* bInterval: ignore for Bulk transfer */ /*Endpoint IN Descriptor*/ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: Endpoint */ ODRIVE_IN_EP, /* bEndpointAddress */ 0x02, /* bmAttributes: Bulk */ LOBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), /* wMaxPacketSize: */ HIBYTE(CDC_DATA_HS_MAX_PACKET_SIZE), 0x00, /* bInterval: ignore for Bulk transfer */ } ; /** * @} */ /** @defgroup USBD_CDC_Private_Functions * @{ */ /** * @brief USBD_CDC_Init * Initialize the CDC interface * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_CDC_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx) { uint8_t ret = 0; USBD_CDC_HandleTypeDef *hcdc; if(pdev->dev_speed == USBD_SPEED_HIGH ) { /* Open EP IN */ USBD_LL_OpenEP(pdev, CDC_IN_EP, USBD_EP_TYPE_BULK, CDC_DATA_HS_IN_PACKET_SIZE); /* Open EP OUT */ USBD_LL_OpenEP(pdev, CDC_OUT_EP, USBD_EP_TYPE_BULK, CDC_DATA_HS_OUT_PACKET_SIZE); } else { /* Open EP IN */ USBD_LL_OpenEP(pdev, CDC_IN_EP, USBD_EP_TYPE_BULK, CDC_DATA_FS_IN_PACKET_SIZE); /* Open EP OUT */ USBD_LL_OpenEP(pdev, CDC_OUT_EP, USBD_EP_TYPE_BULK, CDC_DATA_FS_OUT_PACKET_SIZE); } /* Open ODrive IN endpoint */ USBD_LL_OpenEP(pdev, ODRIVE_IN_EP, USBD_EP_TYPE_BULK, pdev->dev_speed == USBD_SPEED_HIGH ? CDC_DATA_HS_IN_PACKET_SIZE : CDC_DATA_FS_IN_PACKET_SIZE); /* Open ODrive OUT endpoint */ USBD_LL_OpenEP(pdev, ODRIVE_OUT_EP, USBD_EP_TYPE_BULK, pdev->dev_speed == USBD_SPEED_HIGH ? CDC_DATA_HS_OUT_PACKET_SIZE : CDC_DATA_FS_OUT_PACKET_SIZE); /* Open Command IN EP */ USBD_LL_OpenEP(pdev, CDC_CMD_EP, USBD_EP_TYPE_INTR, CDC_CMD_PACKET_SIZE); pdev->pClassData = USBD_malloc(sizeof (USBD_CDC_HandleTypeDef)); if(pdev->pClassData == NULL) { ret = 1; } else { hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; /* Init physical Interface components */ ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Init(); /* Init Xfer states */ hcdc->CDC_Tx.State =0; hcdc->CDC_Rx.State =0; hcdc->REF_Tx.State =0; hcdc->ODRIVE_Rx.State =0; if(pdev->dev_speed == USBD_SPEED_HIGH ) { /* Prepare Out endpoint to receive next packet */ USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, hcdc->CDC_Rx.Buffer, CDC_DATA_HS_OUT_PACKET_SIZE); } else { /* Prepare Out endpoint to receive next packet */ USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, hcdc->CDC_Rx.Buffer, CDC_DATA_FS_OUT_PACKET_SIZE); } /* Prepare ODrive Out endpoint to receive next packet */ USBD_LL_PrepareReceive(pdev, ODRIVE_OUT_EP, hcdc->ODRIVE_Rx.Buffer, CDC_DATA_FS_OUT_PACKET_SIZE); } return ret; } /** * @brief USBD_CDC_Init * DeInitialize the CDC layer * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_CDC_DeInit (USBD_HandleTypeDef *pdev, uint8_t cfgidx) { uint8_t ret = 0; /* Close EP IN */ USBD_LL_CloseEP(pdev, CDC_IN_EP); /* Close EP OUT */ USBD_LL_CloseEP(pdev, CDC_OUT_EP); /* Close Command IN EP */ USBD_LL_CloseEP(pdev, CDC_CMD_EP); /* Close EP IN */ USBD_LL_CloseEP(pdev, ODRIVE_IN_EP); /* Close EP OUT */ USBD_LL_CloseEP(pdev, ODRIVE_OUT_EP); /* DeInit physical Interface components */ if(pdev->pClassData != NULL) { ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->DeInit(); USBD_free(pdev->pClassData); pdev->pClassData = NULL; } return ret; } /** * @brief USBD_CDC_Setup * Handle the CDC specific requests * @param pdev: instance * @param req: usb requests * @retval status */ static uint8_t USBD_CDC_Setup (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; static uint8_t ifalt = 0; switch (req->bmRequest & USB_REQ_TYPE_MASK) { case USB_REQ_TYPE_CLASS : if (req->wLength) { if (req->bmRequest & 0x80) { ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Control(req->bRequest, (uint8_t *)hcdc->data, req->wLength); USBD_CtlSendData (pdev, (uint8_t *)hcdc->data, req->wLength); } else { hcdc->CmdOpCode = req->bRequest; hcdc->CmdLength = req->wLength; USBD_CtlPrepareRx (pdev, (uint8_t *)hcdc->data, req->wLength); } } else { ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Control(req->bRequest, (uint8_t*)req, 0); } break; case USB_REQ_TYPE_STANDARD: switch (req->bRequest) { case USB_REQ_GET_INTERFACE : USBD_CtlSendData (pdev, &ifalt, 1); break; case USB_REQ_SET_INTERFACE : break; } case USB_REQ_TYPE_VENDOR: return USBD_WinUSBComm_SetupVendor(pdev, req); default: break; } return USBD_OK; } /** * @brief USBD_CDC_DataIn * Data sent on non-control IN endpoint * @param pdev: device instance * @param epnum: endpoint number * @retval status */ static uint8_t USBD_CDC_DataIn (USBD_HandleTypeDef *pdev, uint8_t epnum) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; if(pdev->pClassData != NULL) { // NOTE: We would logically expect xx_IN_EP here, but we actually get the xx_OUT_EP if (epnum == CDC_OUT_EP) hcdc->CDC_Tx.State = 0; if (epnum == ODRIVE_OUT_EP) hcdc->REF_Tx.State = 0; //Note: We could use independent semaphores for simoultainous USB transmission. osSemaphoreRelease(sem_usb_tx); return USBD_OK; } else { return USBD_FAIL; } } /** * @brief USBD_CDC_DataOut * Data received on non-control Out endpoint * @param pdev: device instance * @param epnum: endpoint number * @retval status */ static uint8_t USBD_CDC_DataOut (USBD_HandleTypeDef *pdev, uint8_t epnum) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; USBD_CDC_EP_HandleTypeDef* hEP_Rx; if (epnum == CDC_OUT_EP) { hEP_Rx = &hcdc->CDC_Rx; } else if (epnum == ODRIVE_OUT_EP) { hEP_Rx = &hcdc->ODRIVE_Rx; } else { return USBD_FAIL; } /* Get the received data length */ hEP_Rx->Length = USBD_LL_GetRxDataSize (pdev, epnum); /* USB data will be immediately processed, this allow next USB traffic being NAKed till the end of the application Xfer */ if(pdev->pClassData != NULL) { ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Receive(hEP_Rx->Buffer, &hEP_Rx->Length, epnum); return USBD_OK; } else { return USBD_FAIL; } } /** * @brief USBD_CDC_DataOut * Data received on non-control Out endpoint * @param pdev: device instance * @param epnum: endpoint number * @retval status */ static uint8_t USBD_CDC_EP0_RxReady (USBD_HandleTypeDef *pdev) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; if((pdev->pUserData != NULL) && (hcdc->CmdOpCode != 0xFF)) { ((USBD_CDC_ItfTypeDef *)pdev->pUserData)->Control(hcdc->CmdOpCode, (uint8_t *)hcdc->data, hcdc->CmdLength); hcdc->CmdOpCode = 0xFF; } return USBD_OK; } /** * @brief USBD_CDC_GetFSCfgDesc * Return configuration descriptor * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_CDC_GetFSCfgDesc (uint16_t *length) { *length = sizeof (USBD_CDC_CfgDesc); return USBD_CDC_CfgDesc; } /** * @brief USBD_CDC_GetHSCfgDesc * Return configuration descriptor * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_CDC_GetHSCfgDesc (uint16_t *length) { *length = sizeof (USBD_CDC_CfgDesc); return USBD_CDC_CfgDesc; } /** * @brief USBD_CDC_GetCfgDesc * Return configuration descriptor * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length) { *length = sizeof (USBD_CDC_CfgDesc); return USBD_CDC_CfgDesc; } /** * @brief DeviceQualifierDescriptor * return Device Qualifier descriptor * @param length : pointer data length * @retval pointer to descriptor buffer */ uint8_t *USBD_CDC_GetDeviceQualifierDescriptor (uint16_t *length) { *length = sizeof (USBD_CDC_DeviceQualifierDesc); return USBD_CDC_DeviceQualifierDesc; } /** * @brief USBD_CDC_RegisterInterface * @param pdev: device instance * @param fops: CD Interface callback * @retval status */ uint8_t USBD_CDC_RegisterInterface (USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops) { uint8_t ret = USBD_FAIL; if(fops != NULL) { pdev->pUserData= fops; ret = USBD_OK; } return ret; } /** * @brief USBD_CDC_SetTxBuffer * @param pdev: device instance * @param pbuff: Tx Buffer * @retval status */ uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length, uint8_t endpoint_pair) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; USBD_CDC_EP_HandleTypeDef* hEP_Tx; if (endpoint_pair == CDC_OUT_EP) { hEP_Tx = &hcdc->CDC_Tx; } else if (endpoint_pair == ODRIVE_OUT_EP) { hEP_Tx = &hcdc->REF_Tx; } else { return USBD_FAIL; } hEP_Tx->Buffer = pbuff; hEP_Tx->Length = length; return USBD_OK; } /** * @brief USBD_CDC_SetRxBuffer * @param pdev: device instance * @param pbuff: Rx Buffer * @retval status */ uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint8_t endpoint_pair) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; USBD_CDC_EP_HandleTypeDef* hEP_Rx; if (endpoint_pair == CDC_OUT_EP) { hEP_Rx = &hcdc->CDC_Rx; } else if (endpoint_pair == ODRIVE_OUT_EP) { hEP_Rx = &hcdc->ODRIVE_Rx; } else { return USBD_FAIL; } hEP_Rx->Buffer = pbuff; return USBD_OK; } /** * @brief USBD_CDC_DataOut * Data received on non-control Out endpoint * @param pdev: device instance * @param epnum: endpoint number * @retval status */ uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev, uint8_t endpoint_pair) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; if(pdev->pClassData != NULL) { // Select Endpoint USBD_CDC_EP_HandleTypeDef* hEP_Tx; uint8_t in_ep; if (endpoint_pair == CDC_OUT_EP) { hEP_Tx = &hcdc->CDC_Tx; in_ep = CDC_IN_EP; } else if (endpoint_pair == ODRIVE_OUT_EP) { hEP_Tx = &hcdc->REF_Tx; in_ep = ODRIVE_IN_EP; } else { return USBD_FAIL; } if(hEP_Tx->State == 0) { /* Tx Transfer in progress */ hEP_Tx->State = 1; /* Transmit next packet */ USBD_LL_Transmit(pdev, in_ep, hEP_Tx->Buffer, hEP_Tx->Length); return USBD_OK; } else { return USBD_BUSY; } } else { return USBD_FAIL; } } /** * @brief USBD_CDC_ReceivePacket * prepare OUT Endpoint for reception * @param pdev: device instance * @retval status */ uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev, uint8_t endpoint_pair) { USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*) pdev->pClassData; /* Suspend or Resume USB Out process */ if(pdev->pClassData != NULL) { // Select Endpoint USBD_CDC_EP_HandleTypeDef* hEP_Rx; uint8_t out_ep; if (endpoint_pair == CDC_OUT_EP) { hEP_Rx = &hcdc->CDC_Rx; out_ep = CDC_OUT_EP; } else if (endpoint_pair == ODRIVE_OUT_EP) { hEP_Rx = &hcdc->ODRIVE_Rx; out_ep = ODRIVE_OUT_EP; } else { return USBD_FAIL; } /* Prepare Out endpoint to receive next packet */ USBD_LL_PrepareReceive(pdev, out_ep, hEP_Rx->Buffer, pdev->dev_speed == USBD_SPEED_HIGH ? CDC_DATA_HS_OUT_PACKET_SIZE : CDC_DATA_FS_OUT_PACKET_SIZE); return USBD_OK; } else { return USBD_FAIL; } } /* WinUSB support ------------------------------------------------------------*/ /* * This section tells Windows that it should automatically load the WinUSB driver * for the device (more specifically, interface 2 because it's a composite device). * This allows for driverless communication with the device. */ #define NUM_INTERFACES 1 #if NUM_INTERFACES == 2 #define USB_WINUSBCOMM_COMPAT_ID_OS_DESC_SIZ (16 + 24 + 24) #else #define USB_WINUSBCOMM_COMPAT_ID_OS_DESC_SIZ (16 + 24) #endif // This associates winusb driver with the device __ALIGN_BEGIN uint8_t USBD_WinUSBComm_Extended_Compat_ID_OS_Desc[USB_WINUSBCOMM_COMPAT_ID_OS_DESC_SIZ] __ALIGN_END = { // +-- Offset in descriptor // | +-- Size // v v USB_WINUSBCOMM_COMPAT_ID_OS_DESC_SIZ, 0, 0, 0, // 0 dwLength 4 DWORD The length, in bytes, of the complete extended compat ID descriptor 0x00, 0x01, // 4 bcdVersion 2 BCD The descriptor’s version number, in binary coded decimal (BCD) format 0x04, 0x00, // 6 wIndex 2 WORD An index that identifies the particular OS feature descriptor NUM_INTERFACES, // 8 bCount 1 BYTE The number of custom property sections 0, 0, 0, 0, 0, 0, 0, // 9 RESERVED 7 BYTEs Reserved // ===================== // 16 // +-- Offset from function section start // | +-- Size // v v 2, // 0 bFirstInterfaceNumber 1 BYTE The interface or function number 0, // 1 RESERVED 1 BYTE Reserved 0x57, 0x49, 0x4E, 0x55, 0x53, 0x42, 0x00, 0x00, // 2 compatibleID 8 BYTEs The function’s compatible ID ("WINUSB") 0, 0, 0, 0, 0, 0, 0, 0, // 10 subCompatibleID 8 BYTEs The function’s subcompatible ID 0, 0, 0, 0, 0, 0, // 18 RESERVED 6 BYTEs Reserved // ================================= // 24 #if NUM_INTERFACES == 2 // +-- Offset from function section start // | +-- Size // v v 2, // 0 bFirstInterfaceNumber 1 BYTE The interface or function number 0, // 1 RESERVED 1 BYTE Reserved 0x57, 0x49, 0x4E, 0x55, 0x53, 0x42, 0x00, 0x00, // 2 compatibleID 8 BYTEs The function’s compatible ID ("WINUSB") 0, 0, 0, 0, 0, 0, 0, 0, // 10 subCompatibleID 8 BYTEs The function’s subcompatible ID 0, 0, 0, 0, 0, 0, // 18 RESERVED 6 BYTEs Reserved // ================================= // 24 #endif }; // Properties are added to: // HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_xxxx&PID_xxxx\sssssssss\Device Parameters // Use USBDeview or similar to uninstall __ALIGN_BEGIN uint8_t USBD_WinUSBComm_Extended_Properties_OS_Desc[0xB6] __ALIGN_END = { 0xB6, 0x00, 0x00, 0x00, // 0 dwLength 4 DWORD The length, in bytes, of the complete extended properties descriptor 0x00, 0x01, // 4 bcdVersion 2 BCD The descriptor’s version number, in binary coded decimal (BCD) format 0x05, 0x00, // 6 wIndex 2 WORD The index for extended properties OS descriptors 0x02, 0x00, // 8 wCount 2 WORD The number of custom property sections that follow the header section // ==================== // 10 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 0x84, 0x00, 0x00, 0x00, // 0 dwSize 4 DWORD The size of this custom properties section 0x01, 0x00, 0x00, 0x00, // 4 dwPropertyDataType 4 DWORD Property data format 0x28, 0x00, // 8 wPropertyNameLength 2 DWORD Property name length // ======================================== // 10 // 10 bPropertyName PNL WCHAR[] The property name 'D',0, 'e',0, 'v',0, 'i',0, 'c',0, 'e',0, 'I',0, 'n',0, 't',0, 'e',0, 'r',0, 'f',0, 'a',0, 'c',0, 'e',0, 'G',0, 'U',0, 'I',0, 'D',0, 0,0, // ======================================== // 40 (0x28) 0x4E, 0x00, 0x00, 0x00, // 10 + PNL dwPropertyDataLength 4 DWORD Length of the buffer holding the property data // ======================================== // 4 // 14 + PNL bPropertyData PDL Format-dependent Property data '{',0, 'E',0, 'A',0, '0',0, 'B',0, 'D',0, '5',0, 'C',0, '3',0, '-',0, '5',0, '0',0, 'F',0, '3',0, '-',0, '4',0, '8',0, '8',0, '8',0, '-',0, '8',0, '4',0, 'B',0, '4',0, '-',0, '7',0, '4',0, 'E',0, '5',0, '0',0, 'E',0, '1',0, '6',0, '4',0, '9',0, 'D',0, 'B',0, '}',0, 0 ,0, // ======================================== // 78 (0x4E) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 0x3E, 0x00, 0x00, 0x00, // 0 dwSize 0x00000030 (62 bytes) 0x01, 0x00, 0x00, 0x00, // 4 dwPropertyDataType 0x00000001 (Unicode string) 0x0C, 0x00, // 8 wPropertyNameLength 0x000C (12 bytes) // ======================================== // 10 'L',0, 'a',0, 'b',0, 'e',0, 'l',0, 0,0, // 10 bPropertyName “Label” // ======================================== // 12 0x24, 0x00, 0x00, 0x00, // 22 dwPropertyDataLength 0x00000016 (36 bytes) // ======================================== // 4 'O',0, 'D',0, 'r',0, 'i',0, 'v',0, 'e',0, 0,0 // 26 bPropertyData “ODrive” // ======================================== // 14 }; static uint8_t USBD_WinUSBComm_GetMSExtendedCompatIDOSDescriptor (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { switch (req->wIndex) { case 0x04: USBD_CtlSendData (pdev, USBD_WinUSBComm_Extended_Compat_ID_OS_Desc, req->wLength); break; default: USBD_CtlError(pdev , req); return USBD_FAIL; } return USBD_OK; } static uint8_t USBD_WinUSBComm_GetMSExtendedPropertiesOSDescriptor (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { uint8_t byInterfaceIndex = (uint8_t)req->wValue; if ( req->wIndex != 0x05 ) { USBD_CtlError(pdev , req); return USBD_FAIL; } switch ( byInterfaceIndex ) { case 0: #if NUM_INTERFACES == 2 case 1: #endif USBD_CtlSendData (pdev, USBD_WinUSBComm_Extended_Properties_OS_Desc, req->wLength); break; default: USBD_CtlError(pdev , req); return USBD_FAIL; } return USBD_OK; } static uint8_t USBD_WinUSBComm_SetupVendorDevice(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { USBD_CtlError(pdev , req); return USBD_FAIL; } static uint8_t USBD_WinUSBComm_SetupVendorInterface(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { USBD_CtlError(pdev , req); // TODO: check if this is important return USBD_FAIL; } static uint8_t USBD_WinUSBComm_SetupVendor(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { switch ( req->bmRequest & USB_REQ_RECIPIENT_MASK ) { case USB_REQ_RECIPIENT_DEVICE: return ( MS_VendorCode == req->bRequest ) ? USBD_WinUSBComm_GetMSExtendedCompatIDOSDescriptor(pdev, req) : USBD_WinUSBComm_SetupVendorDevice(pdev, req); case USB_REQ_RECIPIENT_INTERFACE: return ( MS_VendorCode == req->bRequest ) ? USBD_WinUSBComm_GetMSExtendedPropertiesOSDescriptor(pdev, req) : USBD_WinUSBComm_SetupVendorInterface(pdev, req); case USB_REQ_RECIPIENT_ENDPOINT: // fall through default: break; } USBD_CtlError(pdev , req); return USBD_FAIL; } /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h ================================================ /** ****************************************************************************** * @file usbd_core.h * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief Header file for usbd_core.c file ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_CORE_H #define __USBD_CORE_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_conf.h" #include "usbd_def.h" #include "usbd_ioreq.h" #include "usbd_ctlreq.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_CORE * @brief This file is the Header file for usbd_core.c file * @{ */ /** @defgroup USBD_CORE_Exported_Defines * @{ */ /** * @} */ /** @defgroup USBD_CORE_Exported_TypesDefinitions * @{ */ /** * @} */ /** @defgroup USBD_CORE_Exported_Macros * @{ */ /** * @} */ /** @defgroup USBD_CORE_Exported_Variables * @{ */ #define USBD_SOF USBD_LL_SOF /** * @} */ /** @defgroup USBD_CORE_Exported_FunctionsPrototype * @{ */ USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id); USBD_StatusTypeDef USBD_DeInit(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_Start (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_Stop (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass); USBD_StatusTypeDef USBD_RunTestMode (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx); USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx); USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup); USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev , uint8_t epnum, uint8_t *pdata); USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev , uint8_t epnum, uint8_t *pdata); USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed); USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum); USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum); USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev); /* USBD Low Level Driver */ USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_DeInit (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Stop (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_OpenEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps); USBD_StatusTypeDef USBD_LL_CloseEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_FlushEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_StallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_ClearStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr); uint8_t USBD_LL_IsStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_SetUSBAddress (USBD_HandleTypeDef *pdev, uint8_t dev_addr); USBD_StatusTypeDef USBD_LL_Transmit (USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size); USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size); uint32_t USBD_LL_GetRxDataSize (USBD_HandleTypeDef *pdev, uint8_t ep_addr); void USBD_LL_Delay (uint32_t Delay); /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_CORE_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h ================================================ /** ****************************************************************************** * @file usbd_req.h * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief Header file for the usbd_req.c file ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USB_REQUEST_H #define __USB_REQUEST_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_def.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_REQ * @brief header file for the usbd_req.c file * @{ */ /** @defgroup USBD_REQ_Exported_Defines * @{ */ /** * @} */ /** @defgroup USBD_REQ_Exported_Types * @{ */ /** * @} */ /** @defgroup USBD_REQ_Exported_Macros * @{ */ /** * @} */ /** @defgroup USBD_REQ_Exported_Variables * @{ */ /** * @} */ /** @defgroup USBD_REQ_Exported_FunctionsPrototype * @{ */ USBD_StatusTypeDef USBD_StdDevReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); USBD_StatusTypeDef USBD_StdItfReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); USBD_StatusTypeDef USBD_StdEPReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); void USBD_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata); void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len); /** * @} */ #ifdef __cplusplus } #endif #endif /* __USB_REQUEST_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h ================================================ /** ****************************************************************************** * @file usbd_def.h * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief General defines for the usb device library ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_DEF_H #define __USBD_DEF_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_conf.h" /** @addtogroup STM32_USBD_DEVICE_LIBRARY * @{ */ /** @defgroup USB_DEF * @brief general defines for the usb device library file * @{ */ /** @defgroup USB_DEF_Exported_Defines * @{ */ #ifndef NULL #define NULL 0 #endif #define USB_LEN_DEV_QUALIFIER_DESC 0x0A #define USB_LEN_DEV_DESC 0x12 #define USB_LEN_CFG_DESC 0x09 #define USB_LEN_IF_DESC 0x09 #define USB_LEN_EP_DESC 0x07 #define USB_LEN_OTG_DESC 0x03 #define USB_LEN_LANGID_STR_DESC 0x04 #define USB_LEN_OTHER_SPEED_DESC_SIZ 0x09 #define USBD_IDX_LANGID_STR 0x00 #define USBD_IDX_MFC_STR 0x01 #define USBD_IDX_PRODUCT_STR 0x02 #define USBD_IDX_SERIAL_STR 0x03 #define USBD_IDX_CONFIG_STR 0x04 #define USBD_IDX_INTERFACE_STR 0x05 #define USBD_IDX_REF_INTF_STR 0x06 #define USBD_IDX_MICROSOFT_DESC_STR 0xEE #define USB_REQ_TYPE_STANDARD 0x00 #define USB_REQ_TYPE_CLASS 0x20 #define USB_REQ_TYPE_VENDOR 0x40 #define USB_REQ_TYPE_MASK 0x60 #define USB_REQ_RECIPIENT_DEVICE 0x00 #define USB_REQ_RECIPIENT_INTERFACE 0x01 #define USB_REQ_RECIPIENT_ENDPOINT 0x02 #define USB_REQ_RECIPIENT_MASK 0x03 #define USB_REQ_GET_STATUS 0x00 #define USB_REQ_CLEAR_FEATURE 0x01 #define USB_REQ_SET_FEATURE 0x03 #define USB_REQ_SET_ADDRESS 0x05 #define USB_REQ_GET_DESCRIPTOR 0x06 #define USB_REQ_SET_DESCRIPTOR 0x07 #define USB_REQ_GET_CONFIGURATION 0x08 #define USB_REQ_SET_CONFIGURATION 0x09 #define USB_REQ_GET_INTERFACE 0x0A #define USB_REQ_SET_INTERFACE 0x0B #define USB_REQ_SYNCH_FRAME 0x0C #define USB_DESC_TYPE_DEVICE 1 #define USB_DESC_TYPE_CONFIGURATION 2 #define USB_DESC_TYPE_STRING 3 #define USB_DESC_TYPE_INTERFACE 4 #define USB_DESC_TYPE_ENDPOINT 5 #define USB_DESC_TYPE_DEVICE_QUALIFIER 6 #define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION 7 #define USB_DESC_TYPE_BOS 0x0F #define USB_CONFIG_REMOTE_WAKEUP 2 #define USB_CONFIG_SELF_POWERED 1 #define USB_FEATURE_EP_HALT 0 #define USB_FEATURE_REMOTE_WAKEUP 1 #define USB_FEATURE_TEST_MODE 2 #define USB_DEVICE_CAPABITY_TYPE 0x10 #define USB_HS_MAX_PACKET_SIZE 512 #define USB_FS_MAX_PACKET_SIZE 64 #define USB_MAX_EP0_SIZE 64 /* Device Status */ #define USBD_STATE_DEFAULT 1 #define USBD_STATE_ADDRESSED 2 #define USBD_STATE_CONFIGURED 3 #define USBD_STATE_SUSPENDED 4 /* EP0 State */ #define USBD_EP0_IDLE 0 #define USBD_EP0_SETUP 1 #define USBD_EP0_DATA_IN 2 #define USBD_EP0_DATA_OUT 3 #define USBD_EP0_STATUS_IN 4 #define USBD_EP0_STATUS_OUT 5 #define USBD_EP0_STALL 6 #define USBD_EP_TYPE_CTRL 0 #define USBD_EP_TYPE_ISOC 1 #define USBD_EP_TYPE_BULK 2 #define USBD_EP_TYPE_INTR 3 /** * @} */ /** @defgroup USBD_DEF_Exported_TypesDefinitions * @{ */ typedef struct usb_setup_req { uint8_t bmRequest; uint8_t bRequest; uint16_t wValue; uint16_t wIndex; uint16_t wLength; }USBD_SetupReqTypedef; struct _USBD_HandleTypeDef; typedef struct _Device_cb { uint8_t (*Init) (struct _USBD_HandleTypeDef *pdev , uint8_t cfgidx); uint8_t (*DeInit) (struct _USBD_HandleTypeDef *pdev , uint8_t cfgidx); /* Control Endpoints*/ uint8_t (*Setup) (struct _USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); uint8_t (*EP0_TxSent) (struct _USBD_HandleTypeDef *pdev ); uint8_t (*EP0_RxReady) (struct _USBD_HandleTypeDef *pdev ); /* Class Specific Endpoints*/ uint8_t (*DataIn) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum); uint8_t (*DataOut) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum); uint8_t (*SOF) (struct _USBD_HandleTypeDef *pdev); uint8_t (*IsoINIncomplete) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum); uint8_t (*IsoOUTIncomplete) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum); uint8_t *(*GetHSConfigDescriptor)(uint16_t *length); uint8_t *(*GetFSConfigDescriptor)(uint16_t *length); uint8_t *(*GetOtherSpeedConfigDescriptor)(uint16_t *length); uint8_t *(*GetDeviceQualifierDescriptor)(uint16_t *length); #if (USBD_SUPPORT_USER_STRING == 1) uint8_t *(*GetUsrStrDescriptor)(struct _USBD_HandleTypeDef *pdev ,uint8_t index, uint16_t *length); #endif } USBD_ClassTypeDef; /* Following USB Device Speed */ typedef enum { USBD_SPEED_HIGH = 0, USBD_SPEED_FULL = 1, USBD_SPEED_LOW = 2, }USBD_SpeedTypeDef; /* Following USB Device status */ typedef enum { USBD_OK = 0, USBD_BUSY, USBD_FAIL, }USBD_StatusTypeDef; /* USB Device descriptors structure */ typedef struct { uint8_t *(*GetDeviceDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetLangIDStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetManufacturerStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetProductStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetSerialStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetConfigurationStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); uint8_t *(*GetInterfaceStrDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); #if (USBD_LPM_ENABLED == 1) uint8_t *(*GetBOSDescriptor)( USBD_SpeedTypeDef speed , uint16_t *length); #endif } USBD_DescriptorsTypeDef; /* USB Device handle structure */ typedef struct { uint32_t status; uint32_t total_length; uint32_t rem_length; uint32_t maxpacket; } USBD_EndpointTypeDef; /* USB Device handle structure */ typedef struct _USBD_HandleTypeDef { uint8_t id; uint32_t dev_config; uint32_t dev_default_config; uint32_t dev_config_status; USBD_SpeedTypeDef dev_speed; USBD_EndpointTypeDef ep_in[15]; USBD_EndpointTypeDef ep_out[15]; uint32_t ep0_state; uint32_t ep0_data_len; uint8_t dev_state; uint8_t dev_old_state; uint8_t dev_address; uint8_t dev_connection_status; uint8_t dev_test_mode; uint32_t dev_remote_wakeup; USBD_SetupReqTypedef request; USBD_DescriptorsTypeDef *pDesc; USBD_ClassTypeDef *pClass; void *pClassData; void *pUserData; void *pData; } USBD_HandleTypeDef; /** * @} */ /** @defgroup USBD_DEF_Exported_Macros * @{ */ #define SWAPBYTE(addr) (((uint16_t)(*((uint8_t *)(addr)))) + \ (((uint16_t)(*(((uint8_t *)(addr)) + 1))) << 8)) #define LOBYTE(x) ((uint8_t)(x & 0x00FF)) #define HIBYTE(x) ((uint8_t)((x & 0xFF00) >>8)) #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #if defined ( __GNUC__ ) #ifndef __weak #define __weak __attribute__((weak)) #endif /* __weak */ #ifndef __packed #define __packed __attribute__((__packed__)) #endif /* __packed */ #endif /* __GNUC__ */ /* In HS mode and when the DMA is used, all variables and data structures dealing with the DMA during the transaction process should be 4-bytes aligned */ #if defined (__GNUC__) /* GNU Compiler */ #define __ALIGN_END __attribute__ ((aligned (4))) #define __ALIGN_BEGIN #else #define __ALIGN_END #if defined (__CC_ARM) /* ARM Compiler */ #define __ALIGN_BEGIN __align(4) #elif defined (__ICCARM__) /* IAR Compiler */ #define __ALIGN_BEGIN #elif defined (__TASKING__) /* TASKING Compiler */ #define __ALIGN_BEGIN __align(4) #endif /* __CC_ARM */ #endif /* __GNUC__ */ /** * @} */ /** @defgroup USBD_DEF_Exported_Variables * @{ */ /** * @} */ /** @defgroup USBD_DEF_Exported_FunctionsPrototype * @{ */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_DEF_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h ================================================ /** ****************************************************************************** * @file usbd_ioreq.h * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief Header file for the usbd_ioreq.c file ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_IOREQ_H #define __USBD_IOREQ_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_def.h" #include "usbd_core.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_IOREQ * @brief header file for the usbd_ioreq.c file * @{ */ /** @defgroup USBD_IOREQ_Exported_Defines * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Exported_Types * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Exported_Macros * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Exported_Variables * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype * @{ */ USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len); USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len); USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len); USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len); USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev); uint16_t USBD_GetRxCount (USBD_HandleTypeDef *pdev , uint8_t epnum); /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_IOREQ_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c ================================================ /** ****************************************************************************** * @file usbd_core.c * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief This file provides all the USBD core functions. ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_core.h" /** @addtogroup STM32_USBD_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_CORE * @brief usbd core module * @{ */ /** @defgroup USBD_CORE_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup USBD_CORE_Private_Defines * @{ */ /** * @} */ /** @defgroup USBD_CORE_Private_Macros * @{ */ /** * @} */ /** @defgroup USBD_CORE_Private_FunctionPrototypes * @{ */ /** * @} */ /** @defgroup USBD_CORE_Private_Variables * @{ */ /** * @} */ /** @defgroup USBD_CORE_Private_Functions * @{ */ /** * @brief USBD_Init * Initializes the device stack and load the class driver * @param pdev: device instance * @param pdesc: Descriptor structure address * @param id: Low level core index * @retval None */ USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id) { /* Check whether the USB Host handle is valid */ if(pdev == NULL) { USBD_ErrLog("Invalid Device handle"); return USBD_FAIL; } /* Unlink previous class*/ if(pdev->pClass != NULL) { pdev->pClass = NULL; } /* Assign USBD Descriptors */ if(pdesc != NULL) { pdev->pDesc = pdesc; } /* Set Device initial State */ pdev->dev_state = USBD_STATE_DEFAULT; pdev->id = id; /* Initialize low level driver */ USBD_LL_Init(pdev); return USBD_OK; } /** * @brief USBD_DeInit * Re-Initialize th device library * @param pdev: device instance * @retval status: status */ USBD_StatusTypeDef USBD_DeInit(USBD_HandleTypeDef *pdev) { /* Set Default State */ pdev->dev_state = USBD_STATE_DEFAULT; /* Free Class Resources */ pdev->pClass->DeInit(pdev, pdev->dev_config); /* Stop the low level driver */ USBD_LL_Stop(pdev); /* Initialize low level driver */ USBD_LL_DeInit(pdev); return USBD_OK; } /** * @brief USBD_RegisterClass * Link class driver to Device Core. * @param pDevice : Device Handle * @param pclass: Class handle * @retval USBD Status */ USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass) { USBD_StatusTypeDef status = USBD_OK; if(pclass != 0) { /* link the class to the USB Device handle */ pdev->pClass = pclass; status = USBD_OK; } else { USBD_ErrLog("Invalid Class handle"); status = USBD_FAIL; } return status; } /** * @brief USBD_Start * Start the USB Device Core. * @param pdev: Device Handle * @retval USBD Status */ USBD_StatusTypeDef USBD_Start (USBD_HandleTypeDef *pdev) { /* Start the low level driver */ USBD_LL_Start(pdev); return USBD_OK; } /** * @brief USBD_Stop * Stop the USB Device Core. * @param pdev: Device Handle * @retval USBD Status */ USBD_StatusTypeDef USBD_Stop (USBD_HandleTypeDef *pdev) { /* Free Class Resources */ pdev->pClass->DeInit(pdev, pdev->dev_config); /* Stop the low level driver */ USBD_LL_Stop(pdev); return USBD_OK; } /** * @brief USBD_RunTestMode * Launch test mode process * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_RunTestMode (USBD_HandleTypeDef *pdev) { return USBD_OK; } /** * @brief USBD_SetClassConfig * Configure device and start the interface * @param pdev: device instance * @param cfgidx: configuration index * @retval status */ USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { USBD_StatusTypeDef ret = USBD_FAIL; if(pdev->pClass != NULL) { /* Set configuration and Start the Class*/ if(pdev->pClass->Init(pdev, cfgidx) == 0) { ret = USBD_OK; } } return ret; } /** * @brief USBD_ClrClassConfig * Clear current configuration * @param pdev: device instance * @param cfgidx: configuration index * @retval status: USBD_StatusTypeDef */ USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { /* Clear configuration and De-initialize the Class process*/ pdev->pClass->DeInit(pdev, cfgidx); return USBD_OK; } /** * @brief USBD_SetupStage * Handle the setup stage * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup) { USBD_ParseSetupRequest(&pdev->request, psetup); pdev->ep0_state = USBD_EP0_SETUP; pdev->ep0_data_len = pdev->request.wLength; switch (pdev->request.bmRequest & 0x1F) { case USB_REQ_RECIPIENT_DEVICE: USBD_StdDevReq (pdev, &pdev->request); break; case USB_REQ_RECIPIENT_INTERFACE: USBD_StdItfReq(pdev, &pdev->request); break; case USB_REQ_RECIPIENT_ENDPOINT: USBD_StdEPReq(pdev, &pdev->request); break; default: USBD_LL_StallEP(pdev , pdev->request.bmRequest & 0x80); break; } return USBD_OK; } /** * @brief USBD_DataOutStage * Handle data OUT stage * @param pdev: device instance * @param epnum: endpoint index * @retval status */ USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev , uint8_t epnum, uint8_t *pdata) { USBD_EndpointTypeDef *pep; if(epnum == 0) { pep = &pdev->ep_out[0]; if ( pdev->ep0_state == USBD_EP0_DATA_OUT) { if(pep->rem_length > pep->maxpacket) { pep->rem_length -= pep->maxpacket; USBD_CtlContinueRx (pdev, pdata, MIN(pep->rem_length ,pep->maxpacket)); } else { if((pdev->pClass->EP0_RxReady != NULL)&& (pdev->dev_state == USBD_STATE_CONFIGURED)) { pdev->pClass->EP0_RxReady(pdev); } USBD_CtlSendStatus(pdev); } } } else if((pdev->pClass->DataOut != NULL)&& (pdev->dev_state == USBD_STATE_CONFIGURED)) { pdev->pClass->DataOut(pdev, epnum); } return USBD_OK; } /** * @brief USBD_DataInStage * Handle data in stage * @param pdev: device instance * @param epnum: endpoint index * @retval status */ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev ,uint8_t epnum, uint8_t *pdata) { USBD_EndpointTypeDef *pep; if(epnum == 0) { pep = &pdev->ep_in[0]; if ( pdev->ep0_state == USBD_EP0_DATA_IN) { if(pep->rem_length > pep->maxpacket) { pep->rem_length -= pep->maxpacket; USBD_CtlContinueSendData (pdev, pdata, pep->rem_length); /* Prepare endpoint for premature end of transfer */ USBD_LL_PrepareReceive (pdev, 0, NULL, 0); } else { /* last packet is MPS multiple, so send ZLP packet */ if((pep->total_length % pep->maxpacket == 0) && (pep->total_length >= pep->maxpacket) && (pep->total_length < pdev->ep0_data_len )) { USBD_CtlContinueSendData(pdev , NULL, 0); pdev->ep0_data_len = 0; /* Prepare endpoint for premature end of transfer */ USBD_LL_PrepareReceive (pdev, 0, NULL, 0); } else { if((pdev->pClass->EP0_TxSent != NULL)&& (pdev->dev_state == USBD_STATE_CONFIGURED)) { pdev->pClass->EP0_TxSent(pdev); } USBD_CtlReceiveStatus(pdev); } } } if (pdev->dev_test_mode == 1) { USBD_RunTestMode(pdev); pdev->dev_test_mode = 0; } } else if((pdev->pClass->DataIn != NULL)&& (pdev->dev_state == USBD_STATE_CONFIGURED)) { pdev->pClass->DataIn(pdev, epnum); } return USBD_OK; } /** * @brief USBD_LL_Reset * Handle Reset event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev) { /* Open EP0 OUT */ USBD_LL_OpenEP(pdev, 0x00, USBD_EP_TYPE_CTRL, USB_MAX_EP0_SIZE); pdev->ep_out[0].maxpacket = USB_MAX_EP0_SIZE; /* Open EP0 IN */ USBD_LL_OpenEP(pdev, 0x80, USBD_EP_TYPE_CTRL, USB_MAX_EP0_SIZE); pdev->ep_in[0].maxpacket = USB_MAX_EP0_SIZE; /* Upon Reset call user call back */ pdev->dev_state = USBD_STATE_DEFAULT; if (pdev->pClassData) pdev->pClass->DeInit(pdev, pdev->dev_config); return USBD_OK; } /** * @brief USBD_LL_Reset * Handle Reset event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed) { pdev->dev_speed = speed; return USBD_OK; } /** * @brief USBD_Suspend * Handle Suspend event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev) { pdev->dev_old_state = pdev->dev_state; pdev->dev_state = USBD_STATE_SUSPENDED; return USBD_OK; } /** * @brief USBD_Resume * Handle Resume event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev) { pdev->dev_state = pdev->dev_old_state; return USBD_OK; } /** * @brief USBD_SOF * Handle SOF event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev) { if(pdev->dev_state == USBD_STATE_CONFIGURED) { if(pdev->pClass->SOF != NULL) { pdev->pClass->SOF(pdev); } } return USBD_OK; } /** * @brief USBD_IsoINIncomplete * Handle iso in incomplete event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { return USBD_OK; } /** * @brief USBD_IsoOUTIncomplete * Handle iso out incomplete event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { return USBD_OK; } /** * @brief USBD_DevConnected * Handle device connection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev) { return USBD_OK; } /** * @brief USBD_DevDisconnected * Handle device disconnection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev) { /* Free Class Resources */ pdev->dev_state = USBD_STATE_DEFAULT; pdev->pClass->DeInit(pdev, pdev->dev_config); return USBD_OK; } /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c ================================================ /** ****************************************************************************** * @file usbd_req.c * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief This file provides the standard USB requests following chapter 9. ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_ctlreq.h" #include "usbd_ioreq.h" /** @addtogroup STM32_USBD_STATE_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_REQ * @brief USB standard requests module * @{ */ /** @defgroup USBD_REQ_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup USBD_REQ_Private_Defines * @{ */ /** * @} */ /** @defgroup USBD_REQ_Private_Macros * @{ */ /** * @} */ /** @defgroup USBD_REQ_Private_Variables * @{ */ /** * @} */ /** @defgroup USBD_REQ_Private_FunctionPrototypes * @{ */ static void USBD_GetDescriptor(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_SetAddress(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_SetConfig(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_GetConfig(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_GetStatus(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_SetFeature(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static void USBD_ClrFeature(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req); static uint8_t USBD_GetLen(uint8_t *buf); /** * @} */ /** @defgroup USBD_REQ_Private_Functions * @{ */ /** * @brief USBD_StdDevReq * Handle standard usb device requests * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdDevReq (USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { USBD_StatusTypeDef ret = USBD_OK; switch (req->bRequest) { case USB_REQ_GET_DESCRIPTOR: USBD_GetDescriptor (pdev, req) ; break; case USB_REQ_SET_ADDRESS: USBD_SetAddress(pdev, req); break; case USB_REQ_SET_CONFIGURATION: USBD_SetConfig (pdev , req); break; case USB_REQ_GET_CONFIGURATION: USBD_GetConfig (pdev , req); break; case USB_REQ_GET_STATUS: USBD_GetStatus (pdev , req); break; case USB_REQ_SET_FEATURE: USBD_SetFeature (pdev , req); break; case USB_REQ_CLEAR_FEATURE: USBD_ClrFeature (pdev , req); break; default: USBD_CtlError(pdev , req); break; } return ret; } /** * @brief USBD_StdItfReq * Handle standard usb interface requests * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdItfReq (USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { USBD_StatusTypeDef ret = USBD_OK; switch (pdev->dev_state) { case USBD_STATE_CONFIGURED: if (LOBYTE(req->wIndex) <= USBD_MAX_NUM_INTERFACES) { pdev->pClass->Setup (pdev, req); if((req->wLength == 0)&& (ret == USBD_OK)) { USBD_CtlSendStatus(pdev); } } else { USBD_CtlError(pdev , req); } break; default: USBD_CtlError(pdev , req); break; } return USBD_OK; } /** * @brief USBD_StdEPReq * Handle standard usb endpoint requests * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdEPReq (USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { uint8_t ep_addr; USBD_StatusTypeDef ret = USBD_OK; USBD_EndpointTypeDef *pep; ep_addr = LOBYTE(req->wIndex); /* Check if it is a class request */ if ((req->bmRequest & 0x60) == 0x20) { pdev->pClass->Setup (pdev, req); return USBD_OK; } switch (req->bRequest) { case USB_REQ_SET_FEATURE : switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00) && (ep_addr != 0x80)) { USBD_LL_StallEP(pdev , ep_addr); } break; case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_EP_HALT) { if ((ep_addr != 0x00) && (ep_addr != 0x80)) { USBD_LL_StallEP(pdev , ep_addr); } } pdev->pClass->Setup (pdev, req); USBD_CtlSendStatus(pdev); break; default: USBD_CtlError(pdev , req); break; } break; case USB_REQ_CLEAR_FEATURE : switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00) && (ep_addr != 0x80)) { USBD_LL_StallEP(pdev , ep_addr); } break; case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_EP_HALT) { if ((ep_addr & 0x7F) != 0x00) { USBD_LL_ClearStallEP(pdev , ep_addr); pdev->pClass->Setup (pdev, req); } USBD_CtlSendStatus(pdev); } break; default: USBD_CtlError(pdev , req); break; } break; case USB_REQ_GET_STATUS: switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: if ((ep_addr & 0x7F) != 0x00) { USBD_LL_StallEP(pdev , ep_addr); } break; case USBD_STATE_CONFIGURED: pep = ((ep_addr & 0x80) == 0x80) ? &pdev->ep_in[ep_addr & 0x7F]:\ &pdev->ep_out[ep_addr & 0x7F]; if(USBD_LL_IsStallEP(pdev, ep_addr)) { pep->status = 0x0001; } else { pep->status = 0x0000; } USBD_CtlSendData (pdev, (uint8_t *)&pep->status, 2); break; default: USBD_CtlError(pdev , req); break; } break; default: break; } return ret; } /** * @brief USBD_GetDescriptor * Handle Get Descriptor requests * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_GetDescriptor(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { uint16_t len; uint8_t *pbuf; switch (req->wValue >> 8) { #if (USBD_LPM_ENABLED == 1) case USB_DESC_TYPE_BOS: pbuf = pdev->pDesc->GetBOSDescriptor(pdev->dev_speed, &len); break; #endif case USB_DESC_TYPE_DEVICE: pbuf = pdev->pDesc->GetDeviceDescriptor(pdev->dev_speed, &len); break; case USB_DESC_TYPE_CONFIGURATION: if(pdev->dev_speed == USBD_SPEED_HIGH ) { pbuf = (uint8_t *)pdev->pClass->GetHSConfigDescriptor(&len); pbuf[1] = USB_DESC_TYPE_CONFIGURATION; } else { pbuf = (uint8_t *)pdev->pClass->GetFSConfigDescriptor(&len); pbuf[1] = USB_DESC_TYPE_CONFIGURATION; } break; case USB_DESC_TYPE_STRING: switch ((uint8_t)(req->wValue)) { case USBD_IDX_LANGID_STR: pbuf = pdev->pDesc->GetLangIDStrDescriptor(pdev->dev_speed, &len); break; case USBD_IDX_MFC_STR: pbuf = pdev->pDesc->GetManufacturerStrDescriptor(pdev->dev_speed, &len); break; case USBD_IDX_PRODUCT_STR: pbuf = pdev->pDesc->GetProductStrDescriptor(pdev->dev_speed, &len); break; case USBD_IDX_SERIAL_STR: pbuf = pdev->pDesc->GetSerialStrDescriptor(pdev->dev_speed, &len); break; case USBD_IDX_CONFIG_STR: pbuf = pdev->pDesc->GetConfigurationStrDescriptor(pdev->dev_speed, &len); break; case USBD_IDX_INTERFACE_STR: pbuf = pdev->pDesc->GetInterfaceStrDescriptor(pdev->dev_speed, &len); break; default: #if (USBD_SUPPORT_USER_STRING == 1) pbuf = pdev->pClass->GetUsrStrDescriptor(pdev, (req->wValue) , &len); break; #else USBD_CtlError(pdev , req); return; #endif } break; case USB_DESC_TYPE_DEVICE_QUALIFIER: if(pdev->dev_speed == USBD_SPEED_HIGH ) { pbuf = (uint8_t *)pdev->pClass->GetDeviceQualifierDescriptor(&len); break; } else { USBD_CtlError(pdev , req); return; } case USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION: if(pdev->dev_speed == USBD_SPEED_HIGH ) { pbuf = (uint8_t *)pdev->pClass->GetOtherSpeedConfigDescriptor(&len); pbuf[1] = USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION; break; } else { USBD_CtlError(pdev , req); return; } default: USBD_CtlError(pdev , req); return; } if((len != 0)&& (req->wLength != 0)) { len = MIN(len , req->wLength); USBD_CtlSendData (pdev, pbuf, len); } } /** * @brief USBD_SetAddress * Set device address * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_SetAddress(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { uint8_t dev_addr; if ((req->wIndex == 0) && (req->wLength == 0)) { dev_addr = (uint8_t)(req->wValue) & 0x7F; if (pdev->dev_state == USBD_STATE_CONFIGURED) { USBD_CtlError(pdev , req); } else { pdev->dev_address = dev_addr; USBD_LL_SetUSBAddress(pdev, dev_addr); USBD_CtlSendStatus(pdev); if (dev_addr != 0) { pdev->dev_state = USBD_STATE_ADDRESSED; } else { pdev->dev_state = USBD_STATE_DEFAULT; } } } else { USBD_CtlError(pdev , req); } } /** * @brief USBD_SetConfig * Handle Set device configuration request * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_SetConfig(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { static uint8_t cfgidx; cfgidx = (uint8_t)(req->wValue); if (cfgidx > USBD_MAX_NUM_CONFIGURATION ) { USBD_CtlError(pdev , req); } else { switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: if (cfgidx) { pdev->dev_config = cfgidx; pdev->dev_state = USBD_STATE_CONFIGURED; if(USBD_SetClassConfig(pdev , cfgidx) == USBD_FAIL) { USBD_CtlError(pdev , req); return; } USBD_CtlSendStatus(pdev); } else { USBD_CtlSendStatus(pdev); } break; case USBD_STATE_CONFIGURED: if (cfgidx == 0) { pdev->dev_state = USBD_STATE_ADDRESSED; pdev->dev_config = cfgidx; USBD_ClrClassConfig(pdev , cfgidx); USBD_CtlSendStatus(pdev); } else if (cfgidx != pdev->dev_config) { /* Clear old configuration */ USBD_ClrClassConfig(pdev , pdev->dev_config); /* set new configuration */ pdev->dev_config = cfgidx; if(USBD_SetClassConfig(pdev , cfgidx) == USBD_FAIL) { USBD_CtlError(pdev , req); return; } USBD_CtlSendStatus(pdev); } else { USBD_CtlSendStatus(pdev); } break; default: USBD_CtlError(pdev , req); break; } } } /** * @brief USBD_GetConfig * Handle Get device configuration request * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_GetConfig(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { if (req->wLength != 1) { USBD_CtlError(pdev , req); } else { switch (pdev->dev_state ) { case USBD_STATE_ADDRESSED: pdev->dev_default_config = 0; USBD_CtlSendData (pdev, (uint8_t *)&pdev->dev_default_config, 1); break; case USBD_STATE_CONFIGURED: USBD_CtlSendData (pdev, (uint8_t *)&pdev->dev_config, 1); break; default: USBD_CtlError(pdev , req); break; } } } /** * @brief USBD_GetStatus * Handle Get Status request * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_GetStatus(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: #if ( USBD_SELF_POWERED == 1) pdev->dev_config_status = USB_CONFIG_SELF_POWERED; #else pdev->dev_config_status = 0; #endif if (pdev->dev_remote_wakeup) { pdev->dev_config_status |= USB_CONFIG_REMOTE_WAKEUP; } USBD_CtlSendData (pdev, (uint8_t *)& pdev->dev_config_status, 2); break; default : USBD_CtlError(pdev , req); break; } } /** * @brief USBD_SetFeature * Handle Set device feature request * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_SetFeature(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) { pdev->dev_remote_wakeup = 1; pdev->pClass->Setup (pdev, req); USBD_CtlSendStatus(pdev); } } /** * @brief USBD_ClrFeature * Handle clear device feature request * @param pdev: device instance * @param req: usb request * @retval status */ static void USBD_ClrFeature(USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { switch (pdev->dev_state) { case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) { pdev->dev_remote_wakeup = 0; pdev->pClass->Setup (pdev, req); USBD_CtlSendStatus(pdev); } break; default : USBD_CtlError(pdev , req); break; } } /** * @brief USBD_ParseSetupRequest * Copy buffer into setup structure * @param pdev: device instance * @param req: usb request * @retval None */ void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata) { req->bmRequest = *(uint8_t *) (pdata); req->bRequest = *(uint8_t *) (pdata + 1); req->wValue = SWAPBYTE (pdata + 2); req->wIndex = SWAPBYTE (pdata + 4); req->wLength = SWAPBYTE (pdata + 6); } /** * @brief USBD_CtlError * Handle USB low level Error * @param pdev: device instance * @param req: usb request * @retval None */ void USBD_CtlError( USBD_HandleTypeDef *pdev , USBD_SetupReqTypedef *req) { USBD_LL_StallEP(pdev , 0x80); USBD_LL_StallEP(pdev , 0); } /** * @brief USBD_GetString * Convert Ascii string into unicode one * @param desc : descriptor buffer * @param unicode : Formatted string buffer (unicode) * @param len : descriptor length * @retval None */ void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len) { uint8_t idx = 0; if (desc != NULL) { *len = USBD_GetLen(desc) * 2 + 2; unicode[idx++] = *len; unicode[idx++] = USB_DESC_TYPE_STRING; while (*desc != '\0') { unicode[idx++] = *desc++; unicode[idx++] = 0x00; } } } /** * @brief USBD_GetLen * return the string length * @param buf : pointer to the ascii string buffer * @retval string length */ static uint8_t USBD_GetLen(uint8_t *buf) { uint8_t len = 0; while (*buf != '\0') { len++; buf++; } return len; } /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c ================================================ /** ****************************************************************************** * @file usbd_ioreq.c * @author MCD Application Team * @version V2.4.2 * @date 11-December-2015 * @brief This file provides the IO requests APIs for control endpoints. ****************************************************************************** * @attention * *

© COPYRIGHT 2015 STMicroelectronics

* * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_ioreq.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_IOREQ * @brief control I/O requests module * @{ */ /** @defgroup USBD_IOREQ_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Private_Defines * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Private_Macros * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Private_Variables * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Private_FunctionPrototypes * @{ */ /** * @} */ /** @defgroup USBD_IOREQ_Private_Functions * @{ */ /** * @brief USBD_CtlSendData * send data on the ctl pipe * @param pdev: device instance * @param buff: pointer to data buffer * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len) { /* Set EP0 State */ pdev->ep0_state = USBD_EP0_DATA_IN; pdev->ep_in[0].total_length = len; pdev->ep_in[0].rem_length = len; /* Start the transfer */ USBD_LL_Transmit (pdev, 0x00, pbuf, len); return USBD_OK; } /** * @brief USBD_CtlContinueSendData * continue sending data on the ctl pipe * @param pdev: device instance * @param buff: pointer to data buffer * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len) { /* Start the next transfer */ USBD_LL_Transmit (pdev, 0x00, pbuf, len); return USBD_OK; } /** * @brief USBD_CtlPrepareRx * receive data on the ctl pipe * @param pdev: device instance * @param buff: pointer to data buffer * @param len: length of data to be received * @retval status */ USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len) { /* Set EP0 State */ pdev->ep0_state = USBD_EP0_DATA_OUT; pdev->ep_out[0].total_length = len; pdev->ep_out[0].rem_length = len; /* Start the transfer */ USBD_LL_PrepareReceive (pdev, 0, pbuf, len); return USBD_OK; } /** * @brief USBD_CtlContinueRx * continue receive data on the ctl pipe * @param pdev: device instance * @param buff: pointer to data buffer * @param len: length of data to be received * @retval status */ USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len) { USBD_LL_PrepareReceive (pdev, 0, pbuf, len); return USBD_OK; } /** * @brief USBD_CtlSendStatus * send zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev) { /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_IN; /* Start the transfer */ USBD_LL_Transmit (pdev, 0x00, NULL, 0); return USBD_OK; } /** * @brief USBD_CtlReceiveStatus * receive zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev) { /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_OUT; /* Start the transfer */ USBD_LL_PrepareReceive ( pdev, 0, NULL, 0); return USBD_OK; } /** * @brief USBD_GetRxCount * returns the received data length * @param pdev: device instance * @param ep_addr: endpoint address * @retval Rx Data blength */ uint16_t USBD_GetRxCount (USBD_HandleTypeDef *pdev , uint8_t ep_addr) { return USBD_LL_GetRxDataSize(pdev, ep_addr); } /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h ================================================ /* * Copyright (c) 2013-2019 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ---------------------------------------------------------------------- * * $Date: 10. January 2017 * $Revision: V2.1.0 * * Project: CMSIS-RTOS API * Title: cmsis_os.h FreeRTOS header file * * Version 0.02 * Initial Proposal Phase * Version 0.03 * osKernelStart added, optional feature: main started as thread * osSemaphores have standard behavior * osTimerCreate does not start the timer, added osTimerStart * osThreadPass is renamed to osThreadYield * Version 1.01 * Support for C++ interface * - const attribute removed from the osXxxxDef_t typedefs * - const attribute added to the osXxxxDef macros * Added: osTimerDelete, osMutexDelete, osSemaphoreDelete * Added: osKernelInitialize * Version 1.02 * Control functions for short timeouts in microsecond resolution: * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec * Removed: osSignalGet * Version 2.0.0 * OS objects creation without macros (dynamic creation and resource allocation): * - added: osXxxxNew functions which replace osXxxxCreate * - added: osXxxxAttr_t structures * - deprecated: osXxxxCreate functions, osXxxxDef_t structures * - deprecated: osXxxxDef and osXxxx macros * osStatus codes simplified and renamed to osStatus_t * osEvent return structure deprecated * Kernel: * - added: osKernelInfo_t and osKernelGetInfo * - added: osKernelState_t and osKernelGetState (replaces osKernelRunning) * - added: osKernelLock, osKernelUnlock * - added: osKernelSuspend, osKernelResume * - added: osKernelGetTickCount, osKernelGetTickFreq * - renamed osKernelSysTick to osKernelGetSysTimerCount * - replaced osKernelSysTickFrequency with osKernelGetSysTimerFreq * - deprecated osKernelSysTickMicroSec * Thread: * - extended number of thread priorities * - renamed osPrioriry to osPrioriry_t * - replaced osThreadCreate with osThreadNew * - added: osThreadGetName * - added: osThreadState_t and osThreadGetState * - added: osThreadGetStackSize, osThreadGetStackSpace * - added: osThreadSuspend, osThreadResume * - added: osThreadJoin, osThreadDetach, osThreadExit * - added: osThreadGetCount, osThreadEnumerate * - added: Thread Flags (moved from Signals) * Signals: * - renamed osSignals to osThreadFlags (moved to Thread Flags) * - changed return value of Set/Clear/Wait functions * - Clear function limited to current running thread * - extended Wait function (options) * - added: osThreadFlagsGet * Event Flags: * - added new independent object for handling Event Flags * Delay and Wait functions: * - added: osDelayUntil * - deprecated: osWait * Timer: * - replaced osTimerCreate with osTimerNew * - added: osTimerGetName, osTimerIsRunning * Mutex: * - extended: attributes (Recursive, Priority Inherit, Robust) * - replaced osMutexCreate with osMutexNew * - renamed osMutexWait to osMutexAcquire * - added: osMutexGetName, osMutexGetOwner * Semaphore: * - extended: maximum and initial token count * - replaced osSemaphoreCreate with osSemaphoreNew * - renamed osSemaphoreWait to osSemaphoreAcquire (changed return value) * - added: osSemaphoreGetName, osSemaphoreGetCount * Memory Pool: * - using osMemoryPool prefix instead of osPool * - replaced osPoolCreate with osMemoryPoolNew * - extended osMemoryPoolAlloc (timeout) * - added: osMemoryPoolGetName * - added: osMemoryPoolGetCapacity, osMemoryPoolGetBlockSize * - added: osMemoryPoolGetCount, osMemoryPoolGetSpace * - added: osMemoryPoolDelete * - deprecated: osPoolCAlloc * Message Queue: * - extended: fixed size message instead of a single 32-bit value * - using osMessageQueue prefix instead of osMessage * - replaced osMessageCreate with osMessageQueueNew * - updated: osMessageQueuePut, osMessageQueueGet * - added: osMessageQueueGetName * - added: osMessageQueueGetCapacity, osMessageQueueGetMsgSize * - added: osMessageQueueGetCount, osMessageQueueGetSpace * - added: osMessageQueueReset, osMessageQueueDelete * Mail Queue: * - deprecated (superseded by extended Message Queue functionality) * Version 2.1.0 * Support for critical and uncritical sections (nesting safe): * - updated: osKernelLock, osKernelUnlock * - added: osKernelRestoreLock * Updated Thread and Event Flags: * - changed flags parameter and return type from int32_t to uint32_t *---------------------------------------------------------------------------*/ #ifndef CMSIS_OS_H_ #define CMSIS_OS_H_ #include "FreeRTOS.h" #include "task.h" #define RTOS_ID_n ((tskKERNEL_VERSION_MAJOR << 16) | (tskKERNEL_VERSION_MINOR)) #define RTOS_ID_s ("FreeRTOS " tskKERNEL_VERSION_NUMBER) #define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0]) #define osCMSIS_FreeRTOS RTOS_ID_n ///< RTOS identification and version (main[31:16].sub[15:0]) #define osKernelSystemId RTOS_ID_s ///< RTOS identification string #define osFeature_MainThread 0 ///< main thread 1=main can be thread, 0=not available #define osFeature_Signals 24U ///< maximum number of Signal Flags available per thread #define osFeature_Semaphore 65535U ///< maximum count for \ref osSemaphoreCreate function #define osFeature_Wait 0 ///< osWait function: 1=available, 0=not available #define osFeature_SysTick 1 ///< osKernelSysTick functions: 1=available, 0=not available #define osFeature_Pool 0 ///< Memory Pools: 1=available, 0=not available #define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available #define osFeature_MailQ 0 ///< Mail Queues: 1=available, 0=not available #if defined(__CC_ARM) #define os_InRegs __value_in_regs #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #define os_InRegs __attribute__((value_in_regs)) #else #define os_InRegs #endif #include "cmsis_os2.h" #ifdef __cplusplus extern "C" { #endif // ==== Enumerations, structures, defines ==== /// Priority values. #if (osCMSIS < 0x20000U) typedef enum { osPriorityIdle = -3, ///< Priority: idle (lowest) osPriorityLow = -2, ///< Priority: low osPriorityBelowNormal = -1, ///< Priority: below normal osPriorityNormal = 0, ///< Priority: normal (default) osPriorityAboveNormal = +1, ///< Priority: above normal osPriorityHigh = +2, ///< Priority: high osPriorityRealtime = +3, ///< Priority: realtime (highest) osPriorityError = 0x84, ///< System cannot determine priority or illegal priority. osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osPriority; #else #define osPriority osPriority_t #endif /// Entry point of a thread. typedef void (*os_pthread) (void const *argument); /// Entry point of a timer call back function. typedef void (*os_ptimer) (void const *argument); /// Timer type. #if (osCMSIS < 0x20000U) typedef enum { osTimerOnce = 0, ///< One-shot timer. osTimerPeriodic = 1 ///< Repeating timer. } os_timer_type; #else #define os_timer_type osTimerType_t #endif /// Timeout value. #define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. /// Status code values returned by CMSIS-RTOS functions. #if (osCMSIS < 0x20000U) typedef enum { osOK = 0, ///< Function completed; no error or event occurred. osEventSignal = 0x08, ///< Function completed; signal event occurred. osEventMessage = 0x10, ///< Function completed; message event occurred. osEventMail = 0x20, ///< Function completed; mail event occurred. osEventTimeout = 0x40, ///< Function completed; timeout occurred. osErrorParameter = 0x80, ///< Parameter error: a mandatory parameter was missing or specified an incorrect object. osErrorResource = 0x81, ///< Resource not available: a specified resource was not available. osErrorTimeoutResource = 0xC1, ///< Resource not available within given time: a specified resource was not available within the timeout period. osErrorISR = 0x82, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines. osErrorISRRecursive = 0x83, ///< Function called multiple times from ISR with same object. osErrorPriority = 0x84, ///< System cannot determine priority or thread has illegal priority. osErrorNoMemory = 0x85, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation. osErrorValue = 0x86, ///< Value of a parameter is out of range. osErrorOS = 0xFF, ///< Unspecified RTOS error: run-time error but no other error message fits. osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osStatus; #else typedef int32_t osStatus; #define osEventSignal (0x08) #define osEventMessage (0x10) #define osEventMail (0x20) #define osEventTimeout (0x40) #define osErrorOS osError #define osErrorTimeoutResource osErrorTimeout #define osErrorISRRecursive (-126) #define osErrorValue (-127) #define osErrorPriority (-128) #endif // >>> the following data type definitions may be adapted towards a specific RTOS /// Thread ID identifies the thread. #if (osCMSIS < 0x20000U) typedef void *osThreadId; #else #define osThreadId osThreadId_t #endif /// Timer ID identifies the timer. #if (osCMSIS < 0x20000U) typedef void *osTimerId; #else #define osTimerId osTimerId_t #endif /// Mutex ID identifies the mutex. #if (osCMSIS < 0x20000U) typedef void *osMutexId; #else #define osMutexId osMutexId_t #endif /// Semaphore ID identifies the semaphore. #if (osCMSIS < 0x20000U) typedef void *osSemaphoreId; #else #define osSemaphoreId osSemaphoreId_t #endif /// Pool ID identifies the memory pool. typedef void *osPoolId; /// Message ID identifies the message queue. typedef void *osMessageQId; /// Mail ID identifies the mail queue. typedef void *osMailQId; /// Thread Definition structure contains startup information of a thread. #if (osCMSIS < 0x20000U) typedef struct os_thread_def { os_pthread pthread; ///< start address of thread function osPriority tpriority; ///< initial thread priority uint32_t instances; ///< maximum number of instances of that thread function uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size } osThreadDef_t; #else typedef struct os_thread_def { os_pthread pthread; ///< start address of thread function osThreadAttr_t attr; ///< thread attributes } osThreadDef_t; #endif /// Timer Definition structure contains timer parameters. #if (osCMSIS < 0x20000U) typedef struct os_timer_def { os_ptimer ptimer; ///< start address of a timer function } osTimerDef_t; #else typedef struct os_timer_def { os_ptimer ptimer; ///< start address of a timer function osTimerAttr_t attr; ///< timer attributes } osTimerDef_t; #endif /// Mutex Definition structure contains setup information for a mutex. #if (osCMSIS < 0x20000U) typedef struct os_mutex_def { uint32_t dummy; ///< dummy value } osMutexDef_t; #else #define osMutexDef_t osMutexAttr_t #endif /// Semaphore Definition structure contains setup information for a semaphore. #if (osCMSIS < 0x20000U) typedef struct os_semaphore_def { uint32_t dummy; ///< dummy value } osSemaphoreDef_t; #else #define osSemaphoreDef_t osSemaphoreAttr_t #endif /// Definition structure for memory block allocation. #if (osCMSIS < 0x20000U) typedef struct os_pool_def { uint32_t pool_sz; ///< number of items (elements) in the pool uint32_t item_sz; ///< size of an item void *pool; ///< pointer to memory for pool } osPoolDef_t; #else typedef struct os_pool_def { uint32_t pool_sz; ///< number of items (elements) in the pool uint32_t item_sz; ///< size of an item osMemoryPoolAttr_t attr; ///< memory pool attributes } osPoolDef_t; #endif /// Definition structure for message queue. #if (osCMSIS < 0x20000U) typedef struct os_messageQ_def { uint32_t queue_sz; ///< number of elements in the queue void *pool; ///< memory array for messages } osMessageQDef_t; #else typedef struct os_messageQ_def { uint32_t queue_sz; ///< number of elements in the queue osMessageQueueAttr_t attr; ///< message queue attributes } osMessageQDef_t; #endif /// Definition structure for mail queue. #if (osCMSIS < 0x20000U) typedef struct os_mailQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *pool; ///< memory array for mail } osMailQDef_t; #else typedef struct os_mailQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *mail; ///< pointer to mail osMemoryPoolAttr_t mp_attr; ///< memory pool attributes osMessageQueueAttr_t mq_attr; ///< message queue attributes } osMailQDef_t; #endif /// Event structure contains detailed information about an event. typedef struct { osStatus status; ///< status code: event or error information union { uint32_t v; ///< message as 32-bit value void *p; ///< message or mail as void pointer int32_t signals; ///< signal flags } value; ///< event value union { osMailQId mail_id; ///< mail id obtained by \ref osMailCreate osMessageQId message_id; ///< message id obtained by \ref osMessageCreate } def; ///< event definition } osEvent; // ==== Kernel Management Functions ==== /// Initialize the RTOS Kernel for creating objects. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osKernelInitialize (void); #endif /// Start the RTOS Kernel scheduler. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osKernelStart (void); #endif /// Check if the RTOS kernel is already started. /// \return 0 RTOS is not started, 1 RTOS is started. #if (osCMSIS < 0x20000U) int32_t osKernelRunning(void); #endif #if (defined(osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available /// Get the RTOS kernel system timer counter. /// \return RTOS kernel system timer as 32-bit value #if (osCMSIS < 0x20000U) uint32_t osKernelSysTick (void); #else #define osKernelSysTick osKernelGetSysTimerCount #endif /// The RTOS kernel system timer frequency in Hz. /// \note Reflects the system timer setting and is typically defined in a configuration file. #if (osCMSIS < 0x20000U) #define osKernelSysTickFrequency 100000000 #endif /// Convert a microseconds value to a RTOS kernel system timer value. /// \param microsec time value in microseconds. /// \return time value normalized to the \ref osKernelSysTickFrequency #if (osCMSIS < 0x20000U) #define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * (osKernelSysTickFrequency)) / 1000000) #else #define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * osKernelGetSysTimerFreq()) / 1000000) #endif #endif // System Timer available // ==== Thread Management Functions ==== /// Create a Thread Definition with function, priority, and stack requirements. /// \param name name of the thread function. /// \param priority initial priority of the thread function. /// \param instances number of possible thread instances. /// \param stacksz stack size (in bytes) requirements for the thread function. #if defined (osObjectsExternal) // object is external #define osThreadDef(name, priority, instances, stacksz) \ extern const osThreadDef_t os_thread_def_##name #else // define the object #define osThreadDef(name, priority, instances, stacksz) \ static uint64_t os_thread_stack##name[(stacksz)?(((stacksz+7)/8)):1]; \ static StaticTask_t os_thread_cb_##name; \ const osThreadDef_t os_thread_def_##name = \ { (name), \ { NULL, osThreadDetached, \ (instances == 1) ? (&os_thread_cb_##name) : NULL,\ (instances == 1) ? sizeof(StaticTask_t) : 0U, \ ((stacksz) && (instances == 1)) ? (&os_thread_stack##name) : NULL, \ 8*((stacksz+7)/8), \ (priority), 0U, 0U } } #endif /// Access a Thread definition. /// \param name name of the thread definition object. #define osThread(name) \ &os_thread_def_##name /// Create a thread and add it to Active Threads and set it to state READY. /// \param[in] thread_def thread definition referenced with \ref osThread. /// \param[in] argument pointer that is passed to the thread function as start argument. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument); /// Return the thread ID of the current running thread. /// \return thread ID for reference by other functions or NULL in case of error. #if (osCMSIS < 0x20000U) osThreadId osThreadGetId (void); #endif /// Change priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] priority new priority value for the thread function. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); #endif /// Get current priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return current priority value of the specified thread. #if (osCMSIS < 0x20000U) osPriority osThreadGetPriority (osThreadId thread_id); #endif /// Pass control to next thread that is in state \b READY. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadYield (void); #endif /// Terminate execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadTerminate (osThreadId thread_id); #endif // ==== Signal Management ==== /// Set the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that should be set. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. int32_t osSignalSet (osThreadId thread_id, int32_t signals); /// Clear the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that shall be cleared. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters or call from ISR. int32_t osSignalClear (osThreadId thread_id, int32_t signals); /// Wait for one or more Signal Flags to become signaled for the current \b RUNNING thread. /// \param[in] signals wait until all specified signal flags set or 0 for any single signal flag. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event flag information or error code. os_InRegs osEvent osSignalWait (int32_t signals, uint32_t millisec); // ==== Generic Wait Functions ==== /// Wait for Timeout (Time Delay). /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osDelay (uint32_t millisec); #endif #if (defined (osFeature_Wait) && (osFeature_Wait != 0)) // Generic Wait available /// Wait for Signal, Message, Mail, or Timeout. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return event that contains signal, message, or mail information or error code. os_InRegs osEvent osWait (uint32_t millisec); #endif // Generic Wait available // ==== Timer Management Functions ==== /// Define a Timer object. /// \param name name of the timer object. /// \param function name of the timer call back function. #if defined (osObjectsExternal) // object is external #define osTimerDef(name, function) \ extern const osTimerDef_t os_timer_def_##name #else // define the object #define osTimerDef(name, function) \ static StaticTimer_t os_timer_cb_##name; \ const osTimerDef_t os_timer_def_##name = \ { (function), { NULL, 0U, (&os_timer_cb_##name), sizeof(StaticTimer_t) } } #endif /// Access a Timer definition. /// \param name name of the timer object. #define osTimer(name) \ &os_timer_def_##name /// Create and Initialize a timer. /// \param[in] timer_def timer object referenced with \ref osTimer. /// \param[in] type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. /// \param[in] argument argument to the timer call back function. /// \return timer ID for reference by other functions or NULL in case of error. osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument); /// Start or restart a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value of the timer. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerStart (osTimerId timer_id, uint32_t millisec); #endif /// Stop a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerStop (osTimerId timer_id); #endif /// Delete a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerDelete (osTimerId timer_id); #endif // ==== Mutex Management Functions ==== /// Define a Mutex. /// \param name name of the mutex object. #if defined (osObjectsExternal) // object is external #define osMutexDef(name) \ extern const osMutexDef_t os_mutex_def_##name #else // define the object #define osMutexDef(name) \ static StaticSemaphore_t os_mutex_cb_##name; \ const osMutexDef_t os_mutex_def_##name = \ { NULL, osMutexRecursive | osMutexPrioInherit, (&os_mutex_cb_##name), sizeof(StaticSemaphore_t) } #endif /// Access a Mutex definition. /// \param name name of the mutex object. #define osMutex(name) \ &os_mutex_def_##name /// Create and Initialize a Mutex object. /// \param[in] mutex_def mutex definition referenced with \ref osMutex. /// \return mutex ID for reference by other functions or NULL in case of error. osMutexId osMutexCreate (const osMutexDef_t *mutex_def); /// Wait until a Mutex becomes available. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec); #else #define osMutexWait osMutexAcquire #endif /// Release a Mutex that was obtained by \ref osMutexWait. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexRelease (osMutexId mutex_id); #endif /// Delete a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexDelete (osMutexId mutex_id); #endif // ==== Semaphore Management Functions ==== #if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0U)) // Semaphore available /// Define a Semaphore object. /// \param name name of the semaphore object. #if defined (osObjectsExternal) // object is external #define osSemaphoreDef(name) \ extern const osSemaphoreDef_t os_semaphore_def_##name #else // define the object #define osSemaphoreDef(name) \ static StaticSemaphore_t os_semaphore_cb_##name; \ const osSemaphoreDef_t os_semaphore_def_##name = \ { NULL, 0U, (&os_semaphore_cb_##name), sizeof(StaticSemaphore_t) } #endif /// Access a Semaphore definition. /// \param name name of the semaphore object. #define osSemaphore(name) \ &os_semaphore_def_##name /// Create and Initialize a Semaphore object. /// \param[in] semaphore_def semaphore definition referenced with \ref osSemaphore. /// \param[in] count maximum and initial number of available tokens. /// \return semaphore ID for reference by other functions or NULL in case of error. osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t count); /// Wait until a Semaphore token becomes available. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return number of available tokens, or -1 in case of incorrect parameters. int32_t osSemaphoreWait (osSemaphoreId semaphore_id, uint32_t millisec); /// Release a Semaphore token. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osSemaphoreRelease (osSemaphoreId semaphore_id); #endif /// Delete a Semaphore object. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osSemaphoreDelete (osSemaphoreId semaphore_id); #endif #endif // Semaphore available // ==== Memory Pool Management Functions ==== #if (defined(osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool available /// \brief Define a Memory Pool. /// \param name name of the memory pool. /// \param no maximum number of blocks (objects) in the memory pool. /// \param type data type of a single block (object). #if defined (osObjectsExternal) // object is external #define osPoolDef(name, no, type) \ extern const osPoolDef_t os_pool_def_##name #else // define the object #define osPoolDef(name, no, type) \ const osPoolDef_t os_pool_def_##name = \ { (no), sizeof(type), {NULL} } #endif /// \brief Access a Memory Pool definition. /// \param name name of the memory pool #define osPool(name) \ &os_pool_def_##name /// Create and Initialize a Memory Pool object. /// \param[in] pool_def memory pool definition referenced with \ref osPool. /// \return memory pool ID for reference by other functions or NULL in case of error. osPoolId osPoolCreate (const osPoolDef_t *pool_def); /// Allocate a memory block from a Memory Pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. void *osPoolAlloc (osPoolId pool_id); /// Allocate a memory block from a Memory Pool and set memory block to zero. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. void *osPoolCAlloc (osPoolId pool_id); /// Return an allocated memory block back to a Memory Pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \param[in] block address of the allocated memory block to be returned to the memory pool. /// \return status code that indicates the execution status of the function. osStatus osPoolFree (osPoolId pool_id, void *block); #endif // Memory Pool available // ==== Message Queue Management Functions ==== #if (defined(osFeature_MessageQ) && (osFeature_MessageQ != 0)) // Message Queue available /// \brief Create a Message Queue Definition. /// \param name name of the queue. /// \param queue_sz maximum number of messages in the queue. /// \param type data type of a single message element (for debugger). #if defined (osObjectsExternal) // object is external #define osMessageQDef(name, queue_sz, type) \ extern const osMessageQDef_t os_messageQ_def_##name #else // define the object #define osMessageQDef(name, queue_sz, type) \ static StaticQueue_t os_mq_cb_##name; \ static uint32_t os_mq_data_##name[(queue_sz) * sizeof(type)]; \ const osMessageQDef_t os_messageQ_def_##name = \ { (queue_sz), \ { NULL, 0U, (&os_mq_cb_##name), sizeof(StaticQueue_t), \ (&os_mq_data_##name), sizeof(os_mq_data_##name) } } #endif /// \brief Access a Message Queue Definition. /// \param name name of the queue #define osMessageQ(name) \ &os_messageQ_def_##name /// Create and Initialize a Message Queue object. /// \param[in] queue_def message queue definition referenced with \ref osMessageQ. /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return message queue ID for reference by other functions or NULL in case of error. osMessageQId osMessageCreate (const osMessageQDef_t *queue_def, osThreadId thread_id); /// Put a Message to a Queue. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] info message information. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec); /// Get a Message from a Queue or timeout if Queue is empty. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event information that includes status code. os_InRegs osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec); #endif // Message Queue available // ==== Mail Queue Management Functions ==== #if (defined(osFeature_MailQ) && (osFeature_MailQ != 0)) // Mail Queue available /// \brief Create a Mail Queue Definition. /// \param name name of the queue. /// \param queue_sz maximum number of mails in the queue. /// \param type data type of a single mail element. #if defined (osObjectsExternal) // object is external #define osMailQDef(name, queue_sz, type) \ extern const osMailQDef_t os_mailQ_def_##name #else // define the object #define osMailQDef(name, queue_sz, type) \ const osMailQDef_t os_mailQ_def_##name = \ { (queue_sz), sizeof(type), NULL } #endif /// \brief Access a Mail Queue Definition. /// \param name name of the queue #define osMailQ(name) \ &os_mailQ_def_##name /// Create and Initialize a Mail Queue object. /// \param[in] queue_def mail queue definition referenced with \ref osMailQ. /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return mail queue ID for reference by other functions or NULL in case of error. osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id); /// Allocate a memory block for mail from a mail memory pool. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. void *osMailAlloc (osMailQId queue_id, uint32_t millisec); /// Allocate a memory block for mail from a mail memory pool and set memory block to zero. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. void *osMailCAlloc (osMailQId queue_id, uint32_t millisec); /// Put a Mail into a Queue. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail pointer to memory with mail to put into a queue. /// \return status code that indicates the execution status of the function. osStatus osMailPut (osMailQId queue_id, const void *mail); /// Get a Mail from a Queue or timeout if Queue is empty. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event information that includes status code. os_InRegs osEvent osMailGet (osMailQId queue_id, uint32_t millisec); /// Free a memory block by returning it to a mail memory pool. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail pointer to memory block that was obtained with \ref osMailGet. /// \return status code that indicates the execution status of the function. osStatus osMailFree (osMailQId queue_id, void *mail); #endif // Mail Queue available #ifdef __cplusplus } #endif #endif // CMSIS_OS_H_ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c ================================================ /* -------------------------------------------------------------------------- * Copyright (c) 2013-2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Name: cmsis_os2.c * Purpose: CMSIS RTOS2 wrapper for FreeRTOS * *---------------------------------------------------------------------------*/ #include #include "cmsis_os2.h" // ::CMSIS:RTOS2 #include "cmsis_compiler.h" // Compiler agnostic definitions #include "FreeRTOS.h" // ARM.FreeRTOS::RTOS:Core #include "task.h" // ARM.FreeRTOS::RTOS:Core #include "event_groups.h" // ARM.FreeRTOS::RTOS:Event Groups #include "semphr.h" // ARM.FreeRTOS::RTOS:Core #include "freertos_mpool.h" // osMemoryPool definitions #include "freertos_os2.h" // Configuration check and setup /*---------------------------------------------------------------------------*/ #ifndef __ARM_ARCH_6M__ #define __ARM_ARCH_6M__ 0 #endif #ifndef __ARM_ARCH_7M__ #define __ARM_ARCH_7M__ 0 #endif #ifndef __ARM_ARCH_7EM__ #define __ARM_ARCH_7EM__ 0 #endif #ifndef __ARM_ARCH_8M_MAIN__ #define __ARM_ARCH_8M_MAIN__ 0 #endif #ifndef __ARM_ARCH_7A__ #define __ARM_ARCH_7A__ 0 #endif #if ((__ARM_ARCH_7M__ == 1U) || \ (__ARM_ARCH_7EM__ == 1U) || \ (__ARM_ARCH_8M_MAIN__ == 1U)) #define IS_IRQ_MASKED() ((__get_PRIMASK() != 0U) || (__get_BASEPRI() != 0U)) #elif (__ARM_ARCH_6M__ == 1U) #define IS_IRQ_MASKED() (__get_PRIMASK() != 0U) #elif (__ARM_ARCH_7A__ == 1U) /* CPSR mask bits */ #define CPSR_MASKBIT_I 0x80U #define IS_IRQ_MASKED() ((__get_CPSR() & CPSR_MASKBIT_I) != 0U) #else #define IS_IRQ_MASKED() (__get_PRIMASK() != 0U) #endif #if (__ARM_ARCH_7A__ == 1U) /* CPSR mode bitmasks */ #define CPSR_MODE_USER 0x10U #define CPSR_MODE_SYSTEM 0x1FU #define IS_IRQ_MODE() ((__get_mode() != CPSR_MODE_USER) && (__get_mode() != CPSR_MODE_SYSTEM)) #else #define IS_IRQ_MODE() (__get_IPSR() != 0U) #endif #define IS_IRQ() IS_IRQ_MODE() #define SVCall_IRQ_NBR (IRQn_Type) -5 /* SVCall_IRQ_NBR added as SV_Call handler name is not the same for CM0 and for all other CMx */ /* Limits */ #define MAX_BITS_TASK_NOTIFY 31U #define MAX_BITS_EVENT_GROUPS 24U #define THREAD_FLAGS_INVALID_BITS (~((1UL << MAX_BITS_TASK_NOTIFY) - 1U)) #define EVENT_FLAGS_INVALID_BITS (~((1UL << MAX_BITS_EVENT_GROUPS) - 1U)) /* Kernel version and identification string definition (major.minor.rev: mmnnnrrrr dec) */ #define KERNEL_VERSION (((uint32_t)tskKERNEL_VERSION_MAJOR * 10000000UL) | \ ((uint32_t)tskKERNEL_VERSION_MINOR * 10000UL) | \ ((uint32_t)tskKERNEL_VERSION_BUILD * 1UL)) #define KERNEL_ID ("FreeRTOS " tskKERNEL_VERSION_NUMBER) /* Timer callback information structure definition */ typedef struct { osTimerFunc_t func; void *arg; } TimerCallback_t; /* Kernel initialization state */ static osKernelState_t KernelState = osKernelInactive; /* Heap region definition used by heap_5 variant Define configAPPLICATION_ALLOCATED_HEAP as nonzero value in FreeRTOSConfig.h if heap regions are already defined and vPortDefineHeapRegions is called in application. Otherwise vPortDefineHeapRegions will be called by osKernelInitialize using definition configHEAP_5_REGIONS as parameter. Overriding configHEAP_5_REGIONS is possible by defining it globally or in FreeRTOSConfig.h. */ #if defined(USE_FreeRTOS_HEAP_5) #if (configAPPLICATION_ALLOCATED_HEAP == 0) /* FreeRTOS heap is not defined by the application. Single region of size configTOTAL_HEAP_SIZE (defined in FreeRTOSConfig.h) is provided by default. Define configHEAP_5_REGIONS to provide custom HeapRegion_t array. */ #define HEAP_5_REGION_SETUP 1 #ifndef configHEAP_5_REGIONS #define configHEAP_5_REGIONS xHeapRegions static uint8_t ucHeap[configTOTAL_HEAP_SIZE]; static HeapRegion_t xHeapRegions[] = { { ucHeap, configTOTAL_HEAP_SIZE }, { NULL, 0 } }; #else /* Global definition is provided to override default heap array */ extern HeapRegion_t configHEAP_5_REGIONS[]; #endif #else /* The application already defined the array used for the FreeRTOS heap and called vPortDefineHeapRegions to initialize heap. */ #define HEAP_5_REGION_SETUP 0 #endif /* configAPPLICATION_ALLOCATED_HEAP */ #endif /* USE_FreeRTOS_HEAP_5 */ #if defined(SysTick) #undef SysTick_Handler /* CMSIS SysTick interrupt handler prototype */ extern void SysTick_Handler (void); /* FreeRTOS tick timer interrupt handler prototype */ extern void xPortSysTickHandler (void); /* SysTick handler implementation that also clears overflow flag. */ #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0) void SysTick_Handler (void) { /* Clear overflow flag */ SysTick->CTRL; if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) { /* Call tick handler */ xPortSysTickHandler(); } } #endif #endif /* SysTick */ /* Setup SVC to reset value. */ __STATIC_INLINE void SVC_Setup (void) { #if (__ARM_ARCH_7A__ == 0U) /* Service Call interrupt might be configured before kernel start */ /* and when its priority is lower or equal to BASEPRI, svc intruction */ /* causes a Hard Fault. */ NVIC_SetPriority (SVCall_IRQ_NBR, 0U); #endif } /* Function macro used to retrieve semaphore count from ISR */ #ifndef uxSemaphoreGetCountFromISR #define uxSemaphoreGetCountFromISR( xSemaphore ) uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) ) #endif /* Get OS Tick count value */ static uint32_t OS_Tick_GetCount (void); /* Get OS Tick overflow status */ static uint32_t OS_Tick_GetOverflow (void); /* Get OS Tick interval */ static uint32_t OS_Tick_GetInterval (void); /*---------------------------------------------------------------------------*/ osStatus_t osKernelInitialize (void) { osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else { if (KernelState == osKernelInactive) { #if defined(USE_TRACE_EVENT_RECORDER) EvrFreeRTOSSetup(0U); #endif #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1) vPortDefineHeapRegions (configHEAP_5_REGIONS); #endif KernelState = osKernelReady; stat = osOK; } else { stat = osError; } } return (stat); } osStatus_t osKernelGetInfo (osVersion_t *version, char *id_buf, uint32_t id_size) { if (version != NULL) { /* Version encoding is major.minor.rev: mmnnnrrrr dec */ version->api = KERNEL_VERSION; version->kernel = KERNEL_VERSION; } if ((id_buf != NULL) && (id_size != 0U)) { if (id_size > sizeof(KERNEL_ID)) { id_size = sizeof(KERNEL_ID); } memcpy(id_buf, KERNEL_ID, id_size); } return (osOK); } osKernelState_t osKernelGetState (void) { osKernelState_t state; switch (xTaskGetSchedulerState()) { case taskSCHEDULER_RUNNING: state = osKernelRunning; break; case taskSCHEDULER_SUSPENDED: state = osKernelLocked; break; case taskSCHEDULER_NOT_STARTED: default: if (KernelState == osKernelReady) { state = osKernelReady; } else { state = osKernelInactive; } break; } return (state); } osStatus_t osKernelStart (void) { osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else { if (KernelState == osKernelReady) { /* Ensure SVC priority is at the reset value */ SVC_Setup(); /* Change state to enable IRQ masking check */ KernelState = osKernelRunning; /* Start the kernel scheduler */ vTaskStartScheduler(); stat = osOK; } else { stat = osError; } } return (stat); } int32_t osKernelLock (void) { int32_t lock; if (IS_IRQ()) { lock = (int32_t)osErrorISR; } else { switch (xTaskGetSchedulerState()) { case taskSCHEDULER_SUSPENDED: lock = 1; break; case taskSCHEDULER_RUNNING: vTaskSuspendAll(); lock = 0; break; case taskSCHEDULER_NOT_STARTED: default: lock = (int32_t)osError; break; } } return (lock); } int32_t osKernelUnlock (void) { int32_t lock; if (IS_IRQ()) { lock = (int32_t)osErrorISR; } else { switch (xTaskGetSchedulerState()) { case taskSCHEDULER_SUSPENDED: lock = 1; if (xTaskResumeAll() != pdTRUE) { if (xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED) { lock = (int32_t)osError; } } break; case taskSCHEDULER_RUNNING: lock = 0; break; case taskSCHEDULER_NOT_STARTED: default: lock = (int32_t)osError; break; } } return (lock); } int32_t osKernelRestoreLock (int32_t lock) { if (IS_IRQ()) { lock = (int32_t)osErrorISR; } else { switch (xTaskGetSchedulerState()) { case taskSCHEDULER_SUSPENDED: case taskSCHEDULER_RUNNING: if (lock == 1) { vTaskSuspendAll(); } else { if (lock != 0) { lock = (int32_t)osError; } else { if (xTaskResumeAll() != pdTRUE) { if (xTaskGetSchedulerState() != taskSCHEDULER_RUNNING) { lock = (int32_t)osError; } } } } break; case taskSCHEDULER_NOT_STARTED: default: lock = (int32_t)osError; break; } } return (lock); } uint32_t osKernelGetTickCount (void) { TickType_t ticks; if (IS_IRQ()) { ticks = xTaskGetTickCountFromISR(); } else { ticks = xTaskGetTickCount(); } return (ticks); } uint32_t osKernelGetTickFreq (void) { return (configTICK_RATE_HZ); } /* Get OS Tick count value */ static uint32_t OS_Tick_GetCount (void) { uint32_t load = SysTick->LOAD; return (load - SysTick->VAL); } /* Get OS Tick overflow status */ static uint32_t OS_Tick_GetOverflow (void) { return ((SysTick->CTRL >> 16) & 1U); } /* Get OS Tick interval */ static uint32_t OS_Tick_GetInterval (void) { return (SysTick->LOAD + 1U); } uint32_t osKernelGetSysTimerCount (void) { uint32_t irqmask = IS_IRQ_MASKED(); TickType_t ticks; uint32_t val; __disable_irq(); ticks = xTaskGetTickCount(); val = OS_Tick_GetCount(); if (OS_Tick_GetOverflow() != 0U) { val = OS_Tick_GetCount(); ticks++; } val += ticks * OS_Tick_GetInterval(); if (irqmask == 0U) { __enable_irq(); } return (val); } uint32_t osKernelGetSysTimerFreq (void) { return (configCPU_CLOCK_HZ); } /*---------------------------------------------------------------------------*/ osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) { const char *name; uint32_t stack; TaskHandle_t hTask; UBaseType_t prio; int32_t mem; hTask = NULL; if (!IS_IRQ() && (func != NULL)) { stack = configMINIMAL_STACK_SIZE; prio = (UBaseType_t)osPriorityNormal; name = NULL; mem = -1; if (attr != NULL) { if (attr->name != NULL) { name = attr->name; } if (attr->priority != osPriorityNone) { prio = (UBaseType_t)attr->priority; } if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) { return (NULL); } if (attr->stack_size > 0U) { /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */ /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */ stack = attr->stack_size / sizeof(StackType_t); } if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) && (attr->stack_mem != NULL) && (attr->stack_size > 0U)) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) { mem = 0; } } } else { mem = 0; } if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem, (StaticTask_t *)attr->cb_mem); #endif } else { if (mem == 0) { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) { hTask = NULL; } #endif } } } return ((osThreadId_t)hTask); } const char *osThreadGetName (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; const char *name; if (IS_IRQ() || (hTask == NULL)) { name = NULL; } else { name = pcTaskGetName (hTask); } return (name); } osThreadId_t osThreadGetId (void) { osThreadId_t id; id = (osThreadId_t)xTaskGetCurrentTaskHandle(); return (id); } osThreadState_t osThreadGetState (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osThreadState_t state; if (IS_IRQ() || (hTask == NULL)) { state = osThreadError; } else { switch (eTaskGetState (hTask)) { case eRunning: state = osThreadRunning; break; case eReady: state = osThreadReady; break; case eBlocked: case eSuspended: state = osThreadBlocked; break; case eDeleted: state = osThreadTerminated; break; case eInvalid: default: state = osThreadError; break; } } return (state); } uint32_t osThreadGetStackSpace (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; uint32_t sz; if (IS_IRQ() || (hTask == NULL)) { sz = 0U; } else { sz = (uint32_t)(uxTaskGetStackHighWaterMark(hTask) * sizeof(StackType_t)); } return (sz); } osStatus_t osThreadSetPriority (osThreadId_t thread_id, osPriority_t priority) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if ((hTask == NULL) || (priority < osPriorityIdle) || (priority > osPriorityISR)) { stat = osErrorParameter; } else { stat = osOK; vTaskPrioritySet (hTask, (UBaseType_t)priority); } return (stat); } osPriority_t osThreadGetPriority (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osPriority_t prio; if (IS_IRQ() || (hTask == NULL)) { prio = osPriorityError; } else { prio = (osPriority_t)((int32_t)uxTaskPriorityGet (hTask)); } return (prio); } osStatus_t osThreadYield (void) { osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else { stat = osOK; taskYIELD(); } return (stat); } #if (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) osStatus_t osThreadSuspend (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if (hTask == NULL) { stat = osErrorParameter; } else { stat = osOK; vTaskSuspend (hTask); } return (stat); } osStatus_t osThreadResume (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if (hTask == NULL) { stat = osErrorParameter; } else { stat = osOK; vTaskResume (hTask); } return (stat); } #endif /* (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) */ __NO_RETURN void osThreadExit (void) { #ifndef USE_FreeRTOS_HEAP_1 vTaskDelete (NULL); #endif for (;;); } osStatus_t osThreadTerminate (osThreadId_t thread_id) { TaskHandle_t hTask = (TaskHandle_t)thread_id; osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 eTaskState tstate; if (IS_IRQ()) { stat = osErrorISR; } else if (hTask == NULL) { stat = osErrorParameter; } else { tstate = eTaskGetState (hTask); if (tstate != eDeleted) { stat = osOK; vTaskDelete (hTask); } else { stat = osErrorResource; } } #else stat = osError; #endif return (stat); } uint32_t osThreadGetCount (void) { uint32_t count; if (IS_IRQ()) { count = 0U; } else { count = uxTaskGetNumberOfTasks(); } return (count); } #if (configUSE_OS2_THREAD_ENUMERATE == 1) uint32_t osThreadEnumerate (osThreadId_t *thread_array, uint32_t array_items) { uint32_t i, count; TaskStatus_t *task; if (IS_IRQ() || (thread_array == NULL) || (array_items == 0U)) { count = 0U; } else { vTaskSuspendAll(); count = uxTaskGetNumberOfTasks(); task = pvPortMalloc (count * sizeof(TaskStatus_t)); if (task != NULL) { count = uxTaskGetSystemState (task, count, NULL); for (i = 0U; (i < count) && (i < array_items); i++) { thread_array[i] = (osThreadId_t)task[i].xHandle; } count = i; } (void)xTaskResumeAll(); vPortFree (task); } return (count); } #endif /* (configUSE_OS2_THREAD_ENUMERATE == 1) */ #if (configUSE_OS2_THREAD_FLAGS == 1) uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags) { TaskHandle_t hTask = (TaskHandle_t)thread_id; uint32_t rflags; BaseType_t yield; if ((hTask == NULL) || ((flags & THREAD_FLAGS_INVALID_BITS) != 0U)) { rflags = (uint32_t)osErrorParameter; } else { rflags = (uint32_t)osError; if (IS_IRQ()) { yield = pdFALSE; (void)xTaskNotifyFromISR (hTask, flags, eSetBits, &yield); (void)xTaskNotifyAndQueryFromISR (hTask, 0, eNoAction, &rflags, NULL); portYIELD_FROM_ISR (yield); } else { (void)xTaskNotify (hTask, flags, eSetBits); (void)xTaskNotifyAndQuery (hTask, 0, eNoAction, &rflags); } } /* Return flags after setting */ return (rflags); } uint32_t osThreadFlagsClear (uint32_t flags) { TaskHandle_t hTask; uint32_t rflags, cflags; if (IS_IRQ()) { rflags = (uint32_t)osErrorISR; } else if ((flags & THREAD_FLAGS_INVALID_BITS) != 0U) { rflags = (uint32_t)osErrorParameter; } else { hTask = xTaskGetCurrentTaskHandle(); if (xTaskNotifyAndQuery (hTask, 0, eNoAction, &cflags) == pdPASS) { rflags = cflags; cflags &= ~flags; if (xTaskNotify (hTask, cflags, eSetValueWithOverwrite) != pdPASS) { rflags = (uint32_t)osError; } } else { rflags = (uint32_t)osError; } } /* Return flags before clearing */ return (rflags); } uint32_t osThreadFlagsGet (void) { TaskHandle_t hTask; uint32_t rflags; if (IS_IRQ()) { rflags = (uint32_t)osErrorISR; } else { hTask = xTaskGetCurrentTaskHandle(); if (xTaskNotifyAndQuery (hTask, 0, eNoAction, &rflags) != pdPASS) { rflags = (uint32_t)osError; } } return (rflags); } uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout) { uint32_t rflags, nval; uint32_t clear; TickType_t t0, td, tout; BaseType_t rval; if (IS_IRQ()) { rflags = (uint32_t)osErrorISR; } else if ((flags & THREAD_FLAGS_INVALID_BITS) != 0U) { rflags = (uint32_t)osErrorParameter; } else { if ((options & osFlagsNoClear) == osFlagsNoClear) { clear = 0U; } else { clear = flags; } rflags = 0U; tout = timeout; t0 = xTaskGetTickCount(); do { rval = xTaskNotifyWait (0, clear, &nval, tout); if (rval == pdPASS) { rflags &= flags; rflags |= nval; if ((options & osFlagsWaitAll) == osFlagsWaitAll) { if ((flags & rflags) == flags) { break; } else { if (timeout == 0U) { rflags = (uint32_t)osErrorResource; break; } } } else { if ((flags & rflags) != 0) { break; } else { if (timeout == 0U) { rflags = (uint32_t)osErrorResource; break; } } } /* Update timeout */ td = xTaskGetTickCount() - t0; if (td > tout) { tout = 0; } else { tout -= td; } } else { if (timeout == 0) { rflags = (uint32_t)osErrorResource; } else { rflags = (uint32_t)osErrorTimeout; } } } while (rval != pdFAIL); } /* Return flags before clearing */ return (rflags); } #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */ osStatus_t osDelay (uint32_t ticks) { osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else { stat = osOK; if (ticks != 0U) { vTaskDelay(ticks); } } return (stat); } osStatus_t osDelayUntil (uint32_t ticks) { TickType_t tcnt, delay; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else { stat = osOK; tcnt = xTaskGetTickCount(); /* Determine remaining number of ticks to delay */ delay = (TickType_t)ticks - tcnt; /* Check if target tick has not expired */ if((delay != 0U) && (0 == (delay >> (8 * sizeof(TickType_t) - 1)))) { vTaskDelayUntil (&tcnt, delay); } else { /* No delay or already expired */ stat = osErrorParameter; } } return (stat); } /*---------------------------------------------------------------------------*/ #if (configUSE_OS2_TIMER == 1) static void TimerCallback (TimerHandle_t hTimer) { TimerCallback_t *callb; callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer); if (callb != NULL) { callb->func (callb->arg); } } osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) { const char *name; TimerHandle_t hTimer; TimerCallback_t *callb; UBaseType_t reload; int32_t mem; hTimer = NULL; if (!IS_IRQ() && (func != NULL)) { /* Allocate memory to store callback function and argument */ callb = pvPortMalloc (sizeof(TimerCallback_t)); if (callb != NULL) { callb->func = func; callb->arg = argument; if (type == osTimerOnce) { reload = pdFALSE; } else { reload = pdTRUE; } mem = -1; name = NULL; if (attr != NULL) { if (attr->name != NULL) { name = attr->name; } if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { mem = 0; } } } else { mem = 0; } if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem); #endif } else { if (mem == 0) { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback); #endif } } if ((hTimer == NULL) && (callb != NULL)) { vPortFree (callb); } } } return ((osTimerId_t)hTimer); } const char *osTimerGetName (osTimerId_t timer_id) { TimerHandle_t hTimer = (TimerHandle_t)timer_id; const char *p; if (IS_IRQ() || (hTimer == NULL)) { p = NULL; } else { p = pcTimerGetName (hTimer); } return (p); } osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) { TimerHandle_t hTimer = (TimerHandle_t)timer_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if (hTimer == NULL) { stat = osErrorParameter; } else { if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) { stat = osOK; } else { stat = osErrorResource; } } return (stat); } osStatus_t osTimerStop (osTimerId_t timer_id) { TimerHandle_t hTimer = (TimerHandle_t)timer_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if (hTimer == NULL) { stat = osErrorParameter; } else { if (xTimerIsTimerActive (hTimer) == pdFALSE) { stat = osErrorResource; } else { if (xTimerStop (hTimer, 0) == pdPASS) { stat = osOK; } else { stat = osError; } } } return (stat); } uint32_t osTimerIsRunning (osTimerId_t timer_id) { TimerHandle_t hTimer = (TimerHandle_t)timer_id; uint32_t running; if (IS_IRQ() || (hTimer == NULL)) { running = 0U; } else { running = (uint32_t)xTimerIsTimerActive (hTimer); } return (running); } osStatus_t osTimerDelete (osTimerId_t timer_id) { TimerHandle_t hTimer = (TimerHandle_t)timer_id; osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 TimerCallback_t *callb; if (IS_IRQ()) { stat = osErrorISR; } else if (hTimer == NULL) { stat = osErrorParameter; } else { callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer); if (xTimerDelete (hTimer, 0) == pdPASS) { vPortFree (callb); stat = osOK; } else { stat = osErrorResource; } } #else stat = osError; #endif return (stat); } #endif /* (configUSE_OS2_TIMER == 1) */ /*---------------------------------------------------------------------------*/ osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr) { EventGroupHandle_t hEventGroup; int32_t mem; hEventGroup = NULL; if (!IS_IRQ()) { mem = -1; if (attr != NULL) { if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticEventGroup_t))) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { mem = 0; } } } else { mem = 0; } if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hEventGroup = xEventGroupCreateStatic (attr->cb_mem); #endif } else { if (mem == 0) { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) hEventGroup = xEventGroupCreate(); #endif } } } return ((osEventFlagsId_t)hEventGroup); } uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags) { EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; uint32_t rflags; BaseType_t yield; if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { rflags = (uint32_t)osErrorParameter; } else if (IS_IRQ()) { #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0) (void)yield; /* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */ rflags = (uint32_t)osErrorResource; #else yield = pdFALSE; if (xEventGroupSetBitsFromISR (hEventGroup, (EventBits_t)flags, &yield) == pdFAIL) { rflags = (uint32_t)osErrorResource; } else { rflags = flags; portYIELD_FROM_ISR (yield); } #endif } else { rflags = xEventGroupSetBits (hEventGroup, (EventBits_t)flags); } return (rflags); } uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags) { EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; uint32_t rflags; if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { rflags = (uint32_t)osErrorParameter; } else if (IS_IRQ()) { #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0) /* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */ rflags = (uint32_t)osErrorResource; #else rflags = xEventGroupGetBitsFromISR (hEventGroup); if (xEventGroupClearBitsFromISR (hEventGroup, (EventBits_t)flags) == pdFAIL) { rflags = (uint32_t)osErrorResource; } #endif } else { rflags = xEventGroupClearBits (hEventGroup, (EventBits_t)flags); } return (rflags); } uint32_t osEventFlagsGet (osEventFlagsId_t ef_id) { EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; uint32_t rflags; if (ef_id == NULL) { rflags = 0U; } else if (IS_IRQ()) { rflags = xEventGroupGetBitsFromISR (hEventGroup); } else { rflags = xEventGroupGetBits (hEventGroup); } return (rflags); } uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout) { EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; BaseType_t wait_all; BaseType_t exit_clr; uint32_t rflags; if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { rflags = (uint32_t)osErrorParameter; } else if (IS_IRQ()) { rflags = (uint32_t)osErrorISR; } else { if (options & osFlagsWaitAll) { wait_all = pdTRUE; } else { wait_all = pdFAIL; } if (options & osFlagsNoClear) { exit_clr = pdFAIL; } else { exit_clr = pdTRUE; } rflags = xEventGroupWaitBits (hEventGroup, (EventBits_t)flags, exit_clr, wait_all, (TickType_t)timeout); if (options & osFlagsWaitAll) { if ((flags & rflags) != flags) { if (timeout > 0U) { rflags = (uint32_t)osErrorTimeout; } else { rflags = (uint32_t)osErrorResource; } } } else { if ((flags & rflags) == 0U) { if (timeout > 0U) { rflags = (uint32_t)osErrorTimeout; } else { rflags = (uint32_t)osErrorResource; } } } } return (rflags); } osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id) { EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 if (IS_IRQ()) { stat = osErrorISR; } else if (hEventGroup == NULL) { stat = osErrorParameter; } else { stat = osOK; vEventGroupDelete (hEventGroup); } #else stat = osError; #endif return (stat); } /*---------------------------------------------------------------------------*/ #if (configUSE_OS2_MUTEX == 1) osMutexId_t osMutexNew (const osMutexAttr_t *attr) { SemaphoreHandle_t hMutex; uint32_t type; uint32_t rmtx; int32_t mem; #if (configQUEUE_REGISTRY_SIZE > 0) const char *name; #endif hMutex = NULL; if (!IS_IRQ()) { if (attr != NULL) { type = attr->attr_bits; } else { type = 0U; } if ((type & osMutexRecursive) == osMutexRecursive) { rmtx = 1U; } else { rmtx = 0U; } if ((type & osMutexRobust) != osMutexRobust) { mem = -1; if (attr != NULL) { if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { mem = 0; } } } else { mem = 0; } if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) if (rmtx != 0U) { #if (configUSE_RECURSIVE_MUTEXES == 1) hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem); #endif } else { hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem); } #endif } else { if (mem == 0) { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) if (rmtx != 0U) { #if (configUSE_RECURSIVE_MUTEXES == 1) hMutex = xSemaphoreCreateRecursiveMutex (); #endif } else { hMutex = xSemaphoreCreateMutex (); } #endif } } #if (configQUEUE_REGISTRY_SIZE > 0) if (hMutex != NULL) { if (attr != NULL) { name = attr->name; } else { name = NULL; } vQueueAddToRegistry (hMutex, name); } #endif if ((hMutex != NULL) && (rmtx != 0U)) { hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U); } } } return ((osMutexId_t)hMutex); } osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) { SemaphoreHandle_t hMutex; osStatus_t stat; uint32_t rmtx; hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); rmtx = (uint32_t)mutex_id & 1U; stat = osOK; if (IS_IRQ()) { stat = osErrorISR; } else if (hMutex == NULL) { stat = osErrorParameter; } else { if (rmtx != 0U) { #if (configUSE_RECURSIVE_MUTEXES == 1) if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) { if (timeout != 0U) { stat = osErrorTimeout; } else { stat = osErrorResource; } } #endif } else { if (xSemaphoreTake (hMutex, timeout) != pdPASS) { if (timeout != 0U) { stat = osErrorTimeout; } else { stat = osErrorResource; } } } } return (stat); } osStatus_t osMutexRelease (osMutexId_t mutex_id) { SemaphoreHandle_t hMutex; osStatus_t stat; uint32_t rmtx; hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); rmtx = (uint32_t)mutex_id & 1U; stat = osOK; if (IS_IRQ()) { stat = osErrorISR; } else if (hMutex == NULL) { stat = osErrorParameter; } else { if (rmtx != 0U) { #if (configUSE_RECURSIVE_MUTEXES == 1) if (xSemaphoreGiveRecursive (hMutex) != pdPASS) { stat = osErrorResource; } #endif } else { if (xSemaphoreGive (hMutex) != pdPASS) { stat = osErrorResource; } } } return (stat); } osThreadId_t osMutexGetOwner (osMutexId_t mutex_id) { SemaphoreHandle_t hMutex; osThreadId_t owner; hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); if (IS_IRQ() || (hMutex == NULL)) { owner = NULL; } else { owner = (osThreadId_t)xSemaphoreGetMutexHolder (hMutex); } return (owner); } osStatus_t osMutexDelete (osMutexId_t mutex_id) { osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 SemaphoreHandle_t hMutex; hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); if (IS_IRQ()) { stat = osErrorISR; } else if (hMutex == NULL) { stat = osErrorParameter; } else { #if (configQUEUE_REGISTRY_SIZE > 0) vQueueUnregisterQueue (hMutex); #endif stat = osOK; vSemaphoreDelete (hMutex); } #else stat = osError; #endif return (stat); } #endif /* (configUSE_OS2_MUTEX == 1) */ /*---------------------------------------------------------------------------*/ osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) { SemaphoreHandle_t hSemaphore; int32_t mem; #if (configQUEUE_REGISTRY_SIZE > 0) const char *name; #endif hSemaphore = NULL; if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) { mem = -1; if (attr != NULL) { if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { mem = 0; } } } else { mem = 0; } if (mem != -1) { if (max_count == 1U) { if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem); #endif } else { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) hSemaphore = xSemaphoreCreateBinary(); #endif } if ((hSemaphore != NULL) && (initial_count != 0U)) { if (xSemaphoreGive (hSemaphore) != pdPASS) { vSemaphoreDelete (hSemaphore); hSemaphore = NULL; } } } else { if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem); #endif } else { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) hSemaphore = xSemaphoreCreateCounting (max_count, initial_count); #endif } } #if (configQUEUE_REGISTRY_SIZE > 0) if (hSemaphore != NULL) { if (attr != NULL) { name = attr->name; } else { name = NULL; } vQueueAddToRegistry (hSemaphore, name); } #endif } } return ((osSemaphoreId_t)hSemaphore); } osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) { SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; osStatus_t stat; BaseType_t yield; stat = osOK; if (hSemaphore == NULL) { stat = osErrorParameter; } else if (IS_IRQ()) { if (timeout != 0U) { stat = osErrorParameter; } else { yield = pdFALSE; if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) { stat = osErrorResource; } else { portYIELD_FROM_ISR (yield); } } } else { if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) { if (timeout != 0U) { stat = osErrorTimeout; } else { stat = osErrorResource; } } } return (stat); } osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) { SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; osStatus_t stat; BaseType_t yield; stat = osOK; if (hSemaphore == NULL) { stat = osErrorParameter; } else if (IS_IRQ()) { yield = pdFALSE; if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) { stat = osErrorResource; } else { portYIELD_FROM_ISR (yield); } } else { if (xSemaphoreGive (hSemaphore) != pdPASS) { stat = osErrorResource; } } return (stat); } uint32_t osSemaphoreGetCount (osSemaphoreId_t semaphore_id) { SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; uint32_t count; if (hSemaphore == NULL) { count = 0U; } else if (IS_IRQ()) { count = uxQueueMessagesWaitingFromISR (hSemaphore); } else { count = (uint32_t)uxSemaphoreGetCount (hSemaphore); } return (count); } osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) { SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 if (IS_IRQ()) { stat = osErrorISR; } else if (hSemaphore == NULL) { stat = osErrorParameter; } else { #if (configQUEUE_REGISTRY_SIZE > 0) vQueueUnregisterQueue (hSemaphore); #endif stat = osOK; vSemaphoreDelete (hSemaphore); } #else stat = osError; #endif return (stat); } /*---------------------------------------------------------------------------*/ osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) { QueueHandle_t hQueue; int32_t mem; #if (configQUEUE_REGISTRY_SIZE > 0) const char *name; #endif hQueue = NULL; if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) { mem = -1; if (attr != NULL) { if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) && (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) { mem = 1; } else { if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->mq_mem == NULL) && (attr->mq_size == 0U)) { mem = 0; } } } else { mem = 0; } if (mem == 1) { #if (configSUPPORT_STATIC_ALLOCATION == 1) hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem); #endif } else { if (mem == 0) { #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) hQueue = xQueueCreate (msg_count, msg_size); #endif } } #if (configQUEUE_REGISTRY_SIZE > 0) if (hQueue != NULL) { if (attr != NULL) { name = attr->name; } else { name = NULL; } vQueueAddToRegistry (hQueue, name); } #endif } return ((osMessageQueueId_t)hQueue); } osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) { QueueHandle_t hQueue = (QueueHandle_t)mq_id; osStatus_t stat; BaseType_t yield; (void)msg_prio; /* Message priority is ignored */ stat = osOK; if (IS_IRQ()) { if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) { stat = osErrorParameter; } else { yield = pdFALSE; if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) { stat = osErrorResource; } else { portYIELD_FROM_ISR (yield); } } } else { if ((hQueue == NULL) || (msg_ptr == NULL)) { stat = osErrorParameter; } else { if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) { if (timeout != 0U) { stat = osErrorTimeout; } else { stat = osErrorResource; } } } } return (stat); } osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) { QueueHandle_t hQueue = (QueueHandle_t)mq_id; osStatus_t stat; BaseType_t yield; (void)msg_prio; /* Message priority is ignored */ stat = osOK; if (IS_IRQ()) { if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) { stat = osErrorParameter; } else { yield = pdFALSE; if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) { stat = osErrorResource; } else { portYIELD_FROM_ISR (yield); } } } else { if ((hQueue == NULL) || (msg_ptr == NULL)) { stat = osErrorParameter; } else { if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) { if (timeout != 0U) { stat = osErrorTimeout; } else { stat = osErrorResource; } } } } return (stat); } uint32_t osMessageQueueGetCapacity (osMessageQueueId_t mq_id) { StaticQueue_t *mq = (StaticQueue_t *)mq_id; uint32_t capacity; if (mq == NULL) { capacity = 0U; } else { /* capacity = pxQueue->uxLength */ capacity = mq->uxDummy4[1]; } return (capacity); } uint32_t osMessageQueueGetMsgSize (osMessageQueueId_t mq_id) { StaticQueue_t *mq = (StaticQueue_t *)mq_id; uint32_t size; if (mq == NULL) { size = 0U; } else { /* size = pxQueue->uxItemSize */ size = mq->uxDummy4[2]; } return (size); } uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) { QueueHandle_t hQueue = (QueueHandle_t)mq_id; UBaseType_t count; if (hQueue == NULL) { count = 0U; } else if (IS_IRQ()) { count = uxQueueMessagesWaitingFromISR (hQueue); } else { count = uxQueueMessagesWaiting (hQueue); } return ((uint32_t)count); } uint32_t osMessageQueueGetSpace (osMessageQueueId_t mq_id) { StaticQueue_t *mq = (StaticQueue_t *)mq_id; uint32_t space; uint32_t isrm; if (mq == NULL) { space = 0U; } else if (IS_IRQ()) { isrm = taskENTER_CRITICAL_FROM_ISR(); /* space = pxQueue->uxLength - pxQueue->uxMessagesWaiting; */ space = mq->uxDummy4[1] - mq->uxDummy4[0]; taskEXIT_CRITICAL_FROM_ISR(isrm); } else { space = (uint32_t)uxQueueSpacesAvailable ((QueueHandle_t)mq); } return (space); } osStatus_t osMessageQueueReset (osMessageQueueId_t mq_id) { QueueHandle_t hQueue = (QueueHandle_t)mq_id; osStatus_t stat; if (IS_IRQ()) { stat = osErrorISR; } else if (hQueue == NULL) { stat = osErrorParameter; } else { stat = osOK; (void)xQueueReset (hQueue); } return (stat); } osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) { QueueHandle_t hQueue = (QueueHandle_t)mq_id; osStatus_t stat; #ifndef USE_FreeRTOS_HEAP_1 if (IS_IRQ()) { stat = osErrorISR; } else if (hQueue == NULL) { stat = osErrorParameter; } else { #if (configQUEUE_REGISTRY_SIZE > 0) vQueueUnregisterQueue (hQueue); #endif stat = osOK; vQueueDelete (hQueue); } #else stat = osError; #endif return (stat); } /*---------------------------------------------------------------------------*/ #ifdef FREERTOS_MPOOL_H_ /* Static memory pool functions */ static void FreeBlock (MemPool_t *mp, void *block); static void *AllocBlock (MemPool_t *mp); static void *CreateBlock (MemPool_t *mp); osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr) { MemPool_t *mp; const char *name; int32_t mem_cb, mem_mp; uint32_t sz; if (IS_IRQ()) { mp = NULL; } else if ((block_count == 0U) || (block_size == 0U)) { mp = NULL; } else { mp = NULL; sz = MEMPOOL_ARR_SIZE (block_count, block_size); name = NULL; mem_cb = -1; mem_mp = -1; if (attr != NULL) { if (attr->name != NULL) { name = attr->name; } if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(MemPool_t))) { /* Static control block is provided */ mem_cb = 1; } else if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { /* Allocate control block memory on heap */ mem_cb = 0; } if ((attr->mp_mem == NULL) && (attr->mp_size == 0U)) { /* Allocate memory array on heap */ mem_mp = 0; } else { if (attr->mp_mem != NULL) { /* Check if array is 4-byte aligned */ if (((uint32_t)attr->mp_mem & 3U) == 0U) { /* Check if array big enough */ if (attr->mp_size >= sz) { /* Static memory pool array is provided */ mem_mp = 1; } } } } } else { /* Attributes not provided, allocate memory on heap */ mem_cb = 0; mem_mp = 0; } if (mem_cb == 0) { mp = pvPortMalloc (sizeof(MemPool_t)); } else { mp = attr->cb_mem; } if (mp != NULL) { /* Create a semaphore (max count == initial count == block_count) */ #if (configSUPPORT_STATIC_ALLOCATION == 1) mp->sem = xSemaphoreCreateCountingStatic (block_count, block_count, &mp->mem_sem); #elif (configSUPPORT_DYNAMIC_ALLOCATION == 1) mp->sem = xSemaphoreCreateCounting (block_count, block_count); #else mp->sem == NULL; #endif if (mp->sem != NULL) { /* Setup memory array */ if (mem_mp == 0) { mp->mem_arr = pvPortMalloc (sz); } else { mp->mem_arr = attr->mp_mem; } } } if ((mp != NULL) && (mp->mem_arr != NULL)) { /* Memory pool can be created */ mp->head = NULL; mp->mem_sz = sz; mp->name = name; mp->bl_sz = block_size; mp->bl_cnt = block_count; mp->n = 0U; /* Set heap allocated memory flags */ mp->status = MPOOL_STATUS; if (mem_cb == 0) { /* Control block on heap */ mp->status |= 1U; } if (mem_mp == 0) { /* Memory array on heap */ mp->status |= 2U; } } else { /* Memory pool cannot be created, release allocated resources */ if ((mem_cb == 0) && (mp != NULL)) { /* Free control block memory */ vPortFree (mp); } mp = NULL; } } return (mp); } const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id) { MemPool_t *mp = (osMemoryPoolId_t)mp_id; const char *p; if (IS_IRQ()) { p = NULL; } else if (mp_id == NULL) { p = NULL; } else { p = mp->name; } return (p); } void *osMemoryPoolAlloc (osMemoryPoolId_t mp_id, uint32_t timeout) { MemPool_t *mp; void *block; uint32_t isrm; if (mp_id == NULL) { /* Invalid input parameters */ block = NULL; } else { block = NULL; mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { if (IS_IRQ()) { if (timeout == 0U) { if (xSemaphoreTakeFromISR (mp->sem, NULL) == pdTRUE) { if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { isrm = taskENTER_CRITICAL_FROM_ISR(); /* Get a block from the free-list */ block = AllocBlock(mp); if (block == NULL) { /* List of free blocks is empty, 'create' new block */ block = CreateBlock(mp); } taskEXIT_CRITICAL_FROM_ISR(isrm); } } } } else { if (xSemaphoreTake (mp->sem, (TickType_t)timeout) == pdTRUE) { if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { taskENTER_CRITICAL(); /* Get a block from the free-list */ block = AllocBlock(mp); if (block == NULL) { /* List of free blocks is empty, 'create' new block */ block = CreateBlock(mp); } taskEXIT_CRITICAL(); } } } } } return (block); } osStatus_t osMemoryPoolFree (osMemoryPoolId_t mp_id, void *block) { MemPool_t *mp; osStatus_t stat; uint32_t isrm; BaseType_t yield; if ((mp_id == NULL) || (block == NULL)) { /* Invalid input parameters */ stat = osErrorParameter; } else { mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { /* Invalid object status */ stat = osErrorResource; } else if ((block < (void *)&mp->mem_arr[0]) || (block > (void*)&mp->mem_arr[mp->mem_sz-1])) { /* Block pointer outside of memory array area */ stat = osErrorParameter; } else { stat = osOK; if (IS_IRQ()) { if (uxSemaphoreGetCountFromISR (mp->sem) == mp->bl_cnt) { stat = osErrorResource; } else { isrm = taskENTER_CRITICAL_FROM_ISR(); /* Add block to the list of free blocks */ FreeBlock(mp, block); taskEXIT_CRITICAL_FROM_ISR(isrm); yield = pdFALSE; xSemaphoreGiveFromISR (mp->sem, &yield); portYIELD_FROM_ISR (yield); } } else { if (uxSemaphoreGetCount (mp->sem) == mp->bl_cnt) { stat = osErrorResource; } else { taskENTER_CRITICAL(); /* Add block to the list of free blocks */ FreeBlock(mp, block); taskEXIT_CRITICAL(); xSemaphoreGive (mp->sem); } } } } return (stat); } uint32_t osMemoryPoolGetCapacity (osMemoryPoolId_t mp_id) { MemPool_t *mp; uint32_t n; if (mp_id == NULL) { /* Invalid input parameters */ n = 0U; } else { mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { /* Invalid object status */ n = 0U; } else { n = mp->bl_cnt; } } /* Return maximum number of memory blocks */ return (n); } uint32_t osMemoryPoolGetBlockSize (osMemoryPoolId_t mp_id) { MemPool_t *mp; uint32_t sz; if (mp_id == NULL) { /* Invalid input parameters */ sz = 0U; } else { mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { /* Invalid object status */ sz = 0U; } else { sz = mp->bl_sz; } } /* Return memory block size in bytes */ return (sz); } uint32_t osMemoryPoolGetCount (osMemoryPoolId_t mp_id) { MemPool_t *mp; uint32_t n; if (mp_id == NULL) { /* Invalid input parameters */ n = 0U; } else { mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { /* Invalid object status */ n = 0U; } else { if (IS_IRQ()) { n = uxSemaphoreGetCountFromISR (mp->sem); } else { n = uxSemaphoreGetCount (mp->sem); } n = mp->bl_cnt - n; } } /* Return number of memory blocks used */ return (n); } uint32_t osMemoryPoolGetSpace (osMemoryPoolId_t mp_id) { MemPool_t *mp; uint32_t n; if (mp_id == NULL) { /* Invalid input parameters */ n = 0U; } else { mp = (MemPool_t *)mp_id; if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { /* Invalid object status */ n = 0U; } else { if (IS_IRQ()) { n = uxSemaphoreGetCountFromISR (mp->sem); } else { n = uxSemaphoreGetCount (mp->sem); } } } /* Return number of memory blocks available */ return (n); } osStatus_t osMemoryPoolDelete (osMemoryPoolId_t mp_id) { MemPool_t *mp; osStatus_t stat; if (mp_id == NULL) { /* Invalid input parameters */ stat = osErrorParameter; } else if (IS_IRQ()) { stat = osErrorISR; } else { mp = (MemPool_t *)mp_id; taskENTER_CRITICAL(); /* Invalidate control block status */ mp->status = mp->status & 3U; /* Wake-up tasks waiting for pool semaphore */ while (xSemaphoreGive (mp->sem) == pdTRUE); mp->head = NULL; mp->bl_sz = 0U; mp->bl_cnt = 0U; if ((mp->status & 2U) != 0U) { /* Memory pool array allocated on heap */ vPortFree (mp->mem_arr); } if ((mp->status & 1U) != 0U) { /* Memory pool control block allocated on heap */ vPortFree (mp); } taskEXIT_CRITICAL(); stat = osOK; } return (stat); } /* Create new block given according to the current block index. */ static void *CreateBlock (MemPool_t *mp) { MemPoolBlock_t *p = NULL; if (mp->n < mp->bl_cnt) { /* Unallocated blocks exist, set pointer to new block */ p = (void *)(mp->mem_arr + (mp->bl_sz * mp->n)); /* Increment block index */ mp->n += 1U; } return (p); } /* Allocate a block by reading the list of free blocks. */ static void *AllocBlock (MemPool_t *mp) { MemPoolBlock_t *p = NULL; if (mp->head != NULL) { /* List of free block exists, get head block */ p = mp->head; /* Head block is now next on the list */ mp->head = p->next; } return (p); } /* Free block by putting it to the list of free blocks. */ static void FreeBlock (MemPool_t *mp, void *block) { MemPoolBlock_t *p = block; /* Store current head into block memory space */ p->next = mp->head; /* Store current block as new head */ mp->head = p; } #endif /* FREERTOS_MPOOL_H_ */ /*---------------------------------------------------------------------------*/ /* Callback function prototypes */ extern void vApplicationIdleHook (void); extern void vApplicationTickHook (void); extern void vApplicationMallocFailedHook (void); extern void vApplicationDaemonTaskStartupHook (void); extern void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName); /** Dummy implementation of the callback function vApplicationIdleHook(). */ #if (configUSE_IDLE_HOOK == 1) __WEAK void vApplicationIdleHook (void){} #endif /** Dummy implementation of the callback function vApplicationTickHook(). */ #if (configUSE_TICK_HOOK == 1) __WEAK void vApplicationTickHook (void){} #endif /** Dummy implementation of the callback function vApplicationMallocFailedHook(). */ #if (configUSE_MALLOC_FAILED_HOOK == 1) __WEAK void vApplicationMallocFailedHook (void){} #endif /** Dummy implementation of the callback function vApplicationDaemonTaskStartupHook(). */ #if (configUSE_DAEMON_TASK_STARTUP_HOOK == 1) __WEAK void vApplicationDaemonTaskStartupHook (void){} #endif /** Dummy implementation of the callback function vApplicationStackOverflowHook(). */ #if (configCHECK_FOR_STACK_OVERFLOW > 0) __WEAK void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName) { (void)xTask; (void)pcTaskName; configASSERT(0); } #endif /*---------------------------------------------------------------------------*/ #if (configSUPPORT_STATIC_ALLOCATION == 1) /* External Idle and Timer task static memory allocation functions */ extern void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize); extern void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize); /* vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION equals to 1 and is required for static memory allocation support. */ __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) { /* Idle task control block and stack */ static StaticTask_t Idle_TCB; static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE]; *ppxIdleTaskTCBBuffer = &Idle_TCB; *ppxIdleTaskStackBuffer = &Idle_Stack[0]; *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE; } /* vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION equals to 1 and is required for static memory allocation support. */ __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) { /* Timer task control block and stack */ static StaticTask_t Timer_TCB; static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH]; *ppxTimerTaskTCBBuffer = &Timer_TCB; *ppxTimerTaskStackBuffer = &Timer_Stack[0]; *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH; } #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h ================================================ /* -------------------------------------------------------------------------- * Portions Copyright © 2017 STMicroelectronics International N.V. All rights reserved. * Portions Copyright (c) 2013-2017 ARM Limited. All rights reserved. * -------------------------------------------------------------------------- * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Name: cmsis_os2.h * Purpose: CMSIS RTOS2 wrapper for FreeRTOS * *---------------------------------------------------------------------------*/ #ifndef CMSIS_OS2_H_ #define CMSIS_OS2_H_ #ifndef __NO_RETURN #if defined(__CC_ARM) #define __NO_RETURN __declspec(noreturn) #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #define __NO_RETURN __attribute__((__noreturn__)) #elif defined(__GNUC__) #define __NO_RETURN __attribute__((__noreturn__)) #elif defined(__ICCARM__) #define __NO_RETURN __noreturn #else #define __NO_RETURN #endif #endif #include #include #ifdef __cplusplus extern "C" { #endif // ==== Enumerations, structures, defines ==== /// Version information. typedef struct { uint32_t api; ///< API version (major.minor.rev: mmnnnrrrr dec). uint32_t kernel; ///< Kernel version (major.minor.rev: mmnnnrrrr dec). } osVersion_t; /// Kernel state. typedef enum { osKernelInactive = 0, ///< Inactive. osKernelReady = 1, ///< Ready. osKernelRunning = 2, ///< Running. osKernelLocked = 3, ///< Locked. osKernelSuspended = 4, ///< Suspended. osKernelError = -1, ///< Error. osKernelReserved = 0x7FFFFFFFU ///< Prevents enum down-size compiler optimization. } osKernelState_t; /// Thread state. typedef enum { osThreadInactive = 0, ///< Inactive. osThreadReady = 1, ///< Ready. osThreadRunning = 2, ///< Running. osThreadBlocked = 3, ///< Blocked. osThreadTerminated = 4, ///< Terminated. osThreadError = -1, ///< Error. osThreadReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osThreadState_t; /// Priority values. typedef enum { osPriorityNone = 0, ///< No priority (not initialized). osPriorityIdle = 1, ///< Reserved for Idle thread. osPriorityLow = 8, ///< Priority: low osPriorityLow1 = 8+1, ///< Priority: low + 1 osPriorityLow2 = 8+2, ///< Priority: low + 2 osPriorityLow3 = 8+3, ///< Priority: low + 3 osPriorityLow4 = 8+4, ///< Priority: low + 4 osPriorityLow5 = 8+5, ///< Priority: low + 5 osPriorityLow6 = 8+6, ///< Priority: low + 6 osPriorityLow7 = 8+7, ///< Priority: low + 7 osPriorityBelowNormal = 16, ///< Priority: below normal osPriorityBelowNormal1 = 16+1, ///< Priority: below normal + 1 osPriorityBelowNormal2 = 16+2, ///< Priority: below normal + 2 osPriorityBelowNormal3 = 16+3, ///< Priority: below normal + 3 osPriorityBelowNormal4 = 16+4, ///< Priority: below normal + 4 osPriorityBelowNormal5 = 16+5, ///< Priority: below normal + 5 osPriorityBelowNormal6 = 16+6, ///< Priority: below normal + 6 osPriorityBelowNormal7 = 16+7, ///< Priority: below normal + 7 osPriorityNormal = 24, ///< Priority: normal osPriorityNormal1 = 24+1, ///< Priority: normal + 1 osPriorityNormal2 = 24+2, ///< Priority: normal + 2 osPriorityNormal3 = 24+3, ///< Priority: normal + 3 osPriorityNormal4 = 24+4, ///< Priority: normal + 4 osPriorityNormal5 = 24+5, ///< Priority: normal + 5 osPriorityNormal6 = 24+6, ///< Priority: normal + 6 osPriorityNormal7 = 24+7, ///< Priority: normal + 7 osPriorityAboveNormal = 32, ///< Priority: above normal osPriorityAboveNormal1 = 32+1, ///< Priority: above normal + 1 osPriorityAboveNormal2 = 32+2, ///< Priority: above normal + 2 osPriorityAboveNormal3 = 32+3, ///< Priority: above normal + 3 osPriorityAboveNormal4 = 32+4, ///< Priority: above normal + 4 osPriorityAboveNormal5 = 32+5, ///< Priority: above normal + 5 osPriorityAboveNormal6 = 32+6, ///< Priority: above normal + 6 osPriorityAboveNormal7 = 32+7, ///< Priority: above normal + 7 osPriorityHigh = 40, ///< Priority: high osPriorityHigh1 = 40+1, ///< Priority: high + 1 osPriorityHigh2 = 40+2, ///< Priority: high + 2 osPriorityHigh3 = 40+3, ///< Priority: high + 3 osPriorityHigh4 = 40+4, ///< Priority: high + 4 osPriorityHigh5 = 40+5, ///< Priority: high + 5 osPriorityHigh6 = 40+6, ///< Priority: high + 6 osPriorityHigh7 = 40+7, ///< Priority: high + 7 osPriorityRealtime = 48, ///< Priority: realtime osPriorityRealtime1 = 48+1, ///< Priority: realtime + 1 osPriorityRealtime2 = 48+2, ///< Priority: realtime + 2 osPriorityRealtime3 = 48+3, ///< Priority: realtime + 3 osPriorityRealtime4 = 48+4, ///< Priority: realtime + 4 osPriorityRealtime5 = 48+5, ///< Priority: realtime + 5 osPriorityRealtime6 = 48+6, ///< Priority: realtime + 6 osPriorityRealtime7 = 48+7, ///< Priority: realtime + 7 osPriorityISR = 56, ///< Reserved for ISR deferred thread. osPriorityError = -1, ///< System cannot determine priority or illegal priority. osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osPriority_t; /// Entry point of a thread. typedef void (*osThreadFunc_t) (void *argument); /// Timer callback function. typedef void (*osTimerFunc_t) (void *argument); /// Timer type. typedef enum { osTimerOnce = 0, ///< One-shot timer. osTimerPeriodic = 1 ///< Repeating timer. } osTimerType_t; // Timeout value. #define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. // Flags options (\ref osThreadFlagsWait and \ref osEventFlagsWait). #define osFlagsWaitAny 0x00000000U ///< Wait for any flag (default). #define osFlagsWaitAll 0x00000001U ///< Wait for all flags. #define osFlagsNoClear 0x00000002U ///< Do not clear flags which have been specified to wait for. // Flags errors (returned by osThreadFlagsXxxx and osEventFlagsXxxx). #define osFlagsError 0x80000000U ///< Error indicator. #define osFlagsErrorUnknown 0xFFFFFFFFU ///< osError (-1). #define osFlagsErrorTimeout 0xFFFFFFFEU ///< osErrorTimeout (-2). #define osFlagsErrorResource 0xFFFFFFFDU ///< osErrorResource (-3). #define osFlagsErrorParameter 0xFFFFFFFCU ///< osErrorParameter (-4). #define osFlagsErrorISR 0xFFFFFFFAU ///< osErrorISR (-6). // Thread attributes (attr_bits in \ref osThreadAttr_t). #define osThreadDetached 0x00000000U ///< Thread created in detached mode (default) #define osThreadJoinable 0x00000001U ///< Thread created in joinable mode // Mutex attributes (attr_bits in \ref osMutexAttr_t). #define osMutexRecursive 0x00000001U ///< Recursive mutex. #define osMutexPrioInherit 0x00000002U ///< Priority inherit protocol. #define osMutexRobust 0x00000008U ///< Robust mutex. /// Status code values returned by CMSIS-RTOS functions. typedef enum { osOK = 0, ///< Operation completed successfully. osError = -1, ///< Unspecified RTOS error: run-time error but no other error message fits. osErrorTimeout = -2, ///< Operation not completed within the timeout period. osErrorResource = -3, ///< Resource not available. osErrorParameter = -4, ///< Parameter error. osErrorNoMemory = -5, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation. osErrorISR = -6, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines. osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osStatus_t; /// \details Thread ID identifies the thread. typedef void *osThreadId_t; /// \details Timer ID identifies the timer. typedef void *osTimerId_t; /// \details Event Flags ID identifies the event flags. typedef void *osEventFlagsId_t; /// \details Mutex ID identifies the mutex. typedef void *osMutexId_t; /// \details Semaphore ID identifies the semaphore. typedef void *osSemaphoreId_t; /// \details Memory Pool ID identifies the memory pool. typedef void *osMemoryPoolId_t; /// \details Message Queue ID identifies the message queue. typedef void *osMessageQueueId_t; #ifndef TZ_MODULEID_T #define TZ_MODULEID_T /// \details Data type that identifies secure software modules called by a process. typedef uint32_t TZ_ModuleId_t; #endif /// Attributes structure for thread. typedef struct { const char *name; ///< name of the thread uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *stack_mem; ///< memory for stack uint32_t stack_size; ///< size of stack osPriority_t priority; ///< initial thread priority (default: osPriorityNormal) TZ_ModuleId_t tz_module; ///< TrustZone module identifier uint32_t reserved; ///< reserved (must be 0) } osThreadAttr_t; /// Attributes structure for timer. typedef struct { const char *name; ///< name of the timer uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osTimerAttr_t; /// Attributes structure for event flags. typedef struct { const char *name; ///< name of the event flags uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osEventFlagsAttr_t; /// Attributes structure for mutex. typedef struct { const char *name; ///< name of the mutex uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osMutexAttr_t; /// Attributes structure for semaphore. typedef struct { const char *name; ///< name of the semaphore uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osSemaphoreAttr_t; /// Attributes structure for memory pool. typedef struct { const char *name; ///< name of the memory pool uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *mp_mem; ///< memory for data storage uint32_t mp_size; ///< size of provided memory for data storage } osMemoryPoolAttr_t; /// Attributes structure for message queue. typedef struct { const char *name; ///< name of the message queue uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *mq_mem; ///< memory for data storage uint32_t mq_size; ///< size of provided memory for data storage } osMessageQueueAttr_t; // ==== Kernel Management Functions ==== /// Initialize the RTOS Kernel. /// \return status code that indicates the execution status of the function. osStatus_t osKernelInitialize (void); /// Get RTOS Kernel Information. /// \param[out] version pointer to buffer for retrieving version information. /// \param[out] id_buf pointer to buffer for retrieving kernel identification string. /// \param[in] id_size size of buffer for kernel identification string. /// \return status code that indicates the execution status of the function. osStatus_t osKernelGetInfo (osVersion_t *version, char *id_buf, uint32_t id_size); /// Get the current RTOS Kernel state. /// \return current RTOS Kernel state. osKernelState_t osKernelGetState (void); /// Start the RTOS Kernel scheduler. /// \return status code that indicates the execution status of the function. osStatus_t osKernelStart (void); /// Lock the RTOS Kernel scheduler. /// \return previous lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelLock (void); /// Unlock the RTOS Kernel scheduler. /// \return previous lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelUnlock (void); /// Restore the RTOS Kernel scheduler lock state. /// \param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock. /// \return new lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelRestoreLock (int32_t lock); /// Suspend the RTOS Kernel scheduler. /// \return time in ticks, for how long the system can sleep or power-down. uint32_t osKernelSuspend (void); /// Resume the RTOS Kernel scheduler. /// \param[in] sleep_ticks time in ticks for how long the system was in sleep or power-down mode. void osKernelResume (uint32_t sleep_ticks); /// Get the RTOS kernel tick count. /// \return RTOS kernel current tick count. uint32_t osKernelGetTickCount (void); /// Get the RTOS kernel tick frequency. /// \return frequency of the kernel tick in hertz, i.e. kernel ticks per second. uint32_t osKernelGetTickFreq (void); /// Get the RTOS kernel system timer count. /// \return RTOS kernel current system timer count as 32-bit value. uint32_t osKernelGetSysTimerCount (void); /// Get the RTOS kernel system timer frequency. /// \return frequency of the system timer in hertz, i.e. timer ticks per second. uint32_t osKernelGetSysTimerFreq (void); // ==== Thread Management Functions ==== /// Create a thread and add it to Active Threads. /// \param[in] func thread function. /// \param[in] argument pointer that is passed to the thread function as start argument. /// \param[in] attr thread attributes; NULL: default values. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr); /// Get name of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return name as NULL terminated string. const char *osThreadGetName (osThreadId_t thread_id); /// Return the thread ID of the current running thread. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId_t osThreadGetId (void); /// Get current thread state of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return current thread state of the specified thread. osThreadState_t osThreadGetState (osThreadId_t thread_id); /// Get stack size of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return stack size in bytes. uint32_t osThreadGetStackSize (osThreadId_t thread_id); /// Get available stack space of a thread based on stack watermark recording during execution. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return remaining stack space in bytes. uint32_t osThreadGetStackSpace (osThreadId_t thread_id); /// Change priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \param[in] priority new priority value for the thread function. /// \return status code that indicates the execution status of the function. osStatus_t osThreadSetPriority (osThreadId_t thread_id, osPriority_t priority); /// Get current priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return current priority value of the specified thread. osPriority_t osThreadGetPriority (osThreadId_t thread_id); /// Pass control to next thread that is in state \b READY. /// \return status code that indicates the execution status of the function. osStatus_t osThreadYield (void); /// Suspend execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadSuspend (osThreadId_t thread_id); /// Resume execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadResume (osThreadId_t thread_id); /// Detach a thread (thread storage can be reclaimed when thread terminates). /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadDetach (osThreadId_t thread_id); /// Wait for specified thread to terminate. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadJoin (osThreadId_t thread_id); /// Terminate execution of current running thread. __NO_RETURN void osThreadExit (void); /// Terminate execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadTerminate (osThreadId_t thread_id); /// Get number of active threads. /// \return number of active threads. uint32_t osThreadGetCount (void); /// Enumerate active threads. /// \param[out] thread_array pointer to array for retrieving thread IDs. /// \param[in] array_items maximum number of items in array for retrieving thread IDs. /// \return number of enumerated threads. uint32_t osThreadEnumerate (osThreadId_t *thread_array, uint32_t array_items); // ==== Thread Flags Functions ==== /// Set the specified Thread Flags of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \param[in] flags specifies the flags of the thread that shall be set. /// \return thread flags after setting or error code if highest bit set. uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags); /// Clear the specified Thread Flags of current running thread. /// \param[in] flags specifies the flags of the thread that shall be cleared. /// \return thread flags before clearing or error code if highest bit set. uint32_t osThreadFlagsClear (uint32_t flags); /// Get the current Thread Flags of current running thread. /// \return current thread flags. uint32_t osThreadFlagsGet (void); /// Wait for one or more Thread Flags of the current running thread to become signaled. /// \param[in] flags specifies the flags to wait for. /// \param[in] options specifies flags options (osFlagsXxxx). /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return thread flags before clearing or error code if highest bit set. uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout); // ==== Generic Wait Functions ==== /// Wait for Timeout (Time Delay). /// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value /// \return status code that indicates the execution status of the function. osStatus_t osDelay (uint32_t ticks); /// Wait until specified time. /// \param[in] ticks absolute time in ticks /// \return status code that indicates the execution status of the function. osStatus_t osDelayUntil (uint32_t ticks); // ==== Timer Management Functions ==== /// Create and Initialize a timer. /// \param[in] func function pointer to callback function. /// \param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior. /// \param[in] argument argument to the timer callback function. /// \param[in] attr timer attributes; NULL: default values. /// \return timer ID for reference by other functions or NULL in case of error. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr); /// Get name of a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return name as NULL terminated string. const char *osTimerGetName (osTimerId_t timer_id); /// Start or restart a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value of the timer. /// \return status code that indicates the execution status of the function. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks); /// Stop a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return status code that indicates the execution status of the function. osStatus_t osTimerStop (osTimerId_t timer_id); /// Check if a timer is running. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return 0 not running, 1 running. uint32_t osTimerIsRunning (osTimerId_t timer_id); /// Delete a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return status code that indicates the execution status of the function. osStatus_t osTimerDelete (osTimerId_t timer_id); // ==== Event Flags Management Functions ==== /// Create and Initialize an Event Flags object. /// \param[in] attr event flags attributes; NULL: default values. /// \return event flags ID for reference by other functions or NULL in case of error. osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr); /// Get name of an Event Flags object. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return name as NULL terminated string. const char *osEventFlagsGetName (osEventFlagsId_t ef_id); /// Set the specified Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags that shall be set. /// \return event flags after setting or error code if highest bit set. uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags); /// Clear the specified Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags that shall be cleared. /// \return event flags before clearing or error code if highest bit set. uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags); /// Get the current Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return current event flags. uint32_t osEventFlagsGet (osEventFlagsId_t ef_id); /// Wait for one or more Event Flags to become signaled. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags to wait for. /// \param[in] options specifies flags options (osFlagsXxxx). /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event flags before clearing or error code if highest bit set. uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout); /// Delete an Event Flags object. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return status code that indicates the execution status of the function. osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id); // ==== Mutex Management Functions ==== /// Create and Initialize a Mutex object. /// \param[in] attr mutex attributes; NULL: default values. /// \return mutex ID for reference by other functions or NULL in case of error. osMutexId_t osMutexNew (const osMutexAttr_t *attr); /// Get name of a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return name as NULL terminated string. const char *osMutexGetName (osMutexId_t mutex_id); /// Acquire a Mutex or timeout if it is locked. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout); /// Release a Mutex that was acquired by \ref osMutexAcquire. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return status code that indicates the execution status of the function. osStatus_t osMutexRelease (osMutexId_t mutex_id); /// Get Thread which owns a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return thread ID of owner thread or NULL when mutex was not acquired. osThreadId_t osMutexGetOwner (osMutexId_t mutex_id); /// Delete a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return status code that indicates the execution status of the function. osStatus_t osMutexDelete (osMutexId_t mutex_id); // ==== Semaphore Management Functions ==== /// Create and Initialize a Semaphore object. /// \param[in] max_count maximum number of available tokens. /// \param[in] initial_count initial number of available tokens. /// \param[in] attr semaphore attributes; NULL: default values. /// \return semaphore ID for reference by other functions or NULL in case of error. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr); /// Get name of a Semaphore object. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return name as NULL terminated string. const char *osSemaphoreGetName (osSemaphoreId_t semaphore_id); /// Acquire a Semaphore token or timeout if no tokens are available. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout); /// Release a Semaphore token up to the initial maximum count. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id); /// Get current Semaphore token count. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return number of tokens available. uint32_t osSemaphoreGetCount (osSemaphoreId_t semaphore_id); /// Delete a Semaphore object. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id); // ==== Memory Pool Management Functions ==== /// Create and Initialize a Memory Pool object. /// \param[in] block_count maximum number of memory blocks in memory pool. /// \param[in] block_size memory block size in bytes. /// \param[in] attr memory pool attributes; NULL: default values. /// \return memory pool ID for reference by other functions or NULL in case of error. osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr); /// Get name of a Memory Pool object. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return name as NULL terminated string. const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id); /// Allocate a memory block from a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return address of the allocated memory block or NULL in case of no memory is available. void *osMemoryPoolAlloc (osMemoryPoolId_t mp_id, uint32_t timeout); /// Return an allocated memory block back to a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \param[in] block address of the allocated memory block to be returned to the memory pool. /// \return status code that indicates the execution status of the function. osStatus_t osMemoryPoolFree (osMemoryPoolId_t mp_id, void *block); /// Get maximum number of memory blocks in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return maximum number of memory blocks. uint32_t osMemoryPoolGetCapacity (osMemoryPoolId_t mp_id); /// Get memory block size in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return memory block size in bytes. uint32_t osMemoryPoolGetBlockSize (osMemoryPoolId_t mp_id); /// Get number of memory blocks used in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return number of memory blocks used. uint32_t osMemoryPoolGetCount (osMemoryPoolId_t mp_id); /// Get number of memory blocks available in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return number of memory blocks available. uint32_t osMemoryPoolGetSpace (osMemoryPoolId_t mp_id); /// Delete a Memory Pool object. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return status code that indicates the execution status of the function. osStatus_t osMemoryPoolDelete (osMemoryPoolId_t mp_id); // ==== Message Queue Management Functions ==== /// Create and Initialize a Message Queue object. /// \param[in] msg_count maximum number of messages in queue. /// \param[in] msg_size maximum message size in bytes. /// \param[in] attr message queue attributes; NULL: default values. /// \return message queue ID for reference by other functions or NULL in case of error. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr); /// Get name of a Message Queue object. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return name as NULL terminated string. const char *osMessageQueueGetName (osMessageQueueId_t mq_id); /// Put a Message into a Queue or timeout if Queue is full. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \param[in] msg_ptr pointer to buffer with message to put into a queue. /// \param[in] msg_prio message priority. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout); /// Get a Message from a Queue or timeout if Queue is empty. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \param[out] msg_ptr pointer to buffer for message to get from a queue. /// \param[out] msg_prio pointer to buffer for message priority or NULL. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout); /// Get maximum number of messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return maximum number of messages. uint32_t osMessageQueueGetCapacity (osMessageQueueId_t mq_id); /// Get maximum message size in a Memory Pool. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return maximum message size in bytes. uint32_t osMessageQueueGetMsgSize (osMessageQueueId_t mq_id); /// Get number of queued messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return number of queued messages. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id); /// Get number of available slots for messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return number of available slots for messages. uint32_t osMessageQueueGetSpace (osMessageQueueId_t mq_id); /// Reset a Message Queue to initial empty state. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueReset (osMessageQueueId_t mq_id); /// Delete a Message Queue object. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id); #ifdef __cplusplus } #endif #endif // CMSIS_OS2_H_ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h ================================================ /* -------------------------------------------------------------------------- * Copyright (c) 2013-2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Name: freertos_mpool.h * Purpose: CMSIS RTOS2 wrapper for FreeRTOS * *---------------------------------------------------------------------------*/ #ifndef FREERTOS_MPOOL_H_ #define FREERTOS_MPOOL_H_ #include #include "FreeRTOS.h" #include "semphr.h" /* Memory Pool implementation definitions */ #define MPOOL_STATUS 0x5EED0000U /* Memory Block header */ typedef struct { void *next; /* Pointer to next block */ } MemPoolBlock_t; /* Memory Pool control block */ typedef struct MemPoolDef_t { MemPoolBlock_t *head; /* Pointer to head block */ SemaphoreHandle_t sem; /* Pool semaphore handle */ uint8_t *mem_arr; /* Pool memory array */ uint32_t mem_sz; /* Pool memory array size */ const char *name; /* Pointer to name string */ uint32_t bl_sz; /* Size of a single block */ uint32_t bl_cnt; /* Number of blocks */ uint32_t n; /* Block allocation index */ volatile uint32_t status; /* Object status flags */ #if (configSUPPORT_STATIC_ALLOCATION == 1) StaticSemaphore_t mem_sem; /* Semaphore object memory */ #endif } MemPool_t; /* No need to hide static object type, just align to coding style */ #define StaticMemPool_t MemPool_t /* Define memory pool control block size */ #define MEMPOOL_CB_SIZE (sizeof(StaticMemPool_t)) /* Define size of the byte array required to create count of blocks of given size */ #define MEMPOOL_ARR_SIZE(bl_count, bl_size) (((((bl_size) + (4 - 1)) / 4) * 4)*(bl_count)) #endif /* FREERTOS_MPOOL_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h ================================================ /* -------------------------------------------------------------------------- * Copyright (c) 2013-2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Name: freertos_os2.h * Purpose: CMSIS RTOS2 wrapper for FreeRTOS * *---------------------------------------------------------------------------*/ #ifndef FREERTOS_OS2_H_ #define FREERTOS_OS2_H_ #include #include #include "FreeRTOS.h" // ARM.FreeRTOS::RTOS:Core #include CMSIS_device_header /* CMSIS-RTOS2 FreeRTOS image size optimization definitions. Note: Definitions configUSE_OS2 can be used to optimize FreeRTOS image size when certain functionality is not required when using CMSIS-RTOS2 API. In general optimization decisions are left to the tool chain but in cases when coding style prevents it to optimize the code following optional definitions can be used. */ /* Option to exclude CMSIS-RTOS2 functions osThreadSuspend and osThreadResume from the application image. */ #ifndef configUSE_OS2_THREAD_SUSPEND_RESUME #define configUSE_OS2_THREAD_SUSPEND_RESUME 1 #endif /* Option to exclude CMSIS-RTOS2 function osThreadEnumerate from the application image. */ #ifndef configUSE_OS2_THREAD_ENUMERATE #define configUSE_OS2_THREAD_ENUMERATE 1 #endif /* Option to disable CMSIS-RTOS2 function osEventFlagsSet and osEventFlagsClear operation from ISR. */ #ifndef configUSE_OS2_EVENTFLAGS_FROM_ISR #define configUSE_OS2_EVENTFLAGS_FROM_ISR 1 #endif /* Option to exclude CMSIS-RTOS2 Thread Flags API functions from the application image. */ #ifndef configUSE_OS2_THREAD_FLAGS #define configUSE_OS2_THREAD_FLAGS configUSE_TASK_NOTIFICATIONS #endif /* Option to exclude CMSIS-RTOS2 Timer API functions from the application image. */ #ifndef configUSE_OS2_TIMER #define configUSE_OS2_TIMER configUSE_TIMERS #endif /* Option to exclude CMSIS-RTOS2 Mutex API functions from the application image. */ #ifndef configUSE_OS2_MUTEX #define configUSE_OS2_MUTEX configUSE_MUTEXES #endif /* CMSIS-RTOS2 FreeRTOS configuration check (FreeRTOSConfig.h). Note: CMSIS-RTOS API requires functions included by using following definitions. In case if certain API function is not used compiler will optimize it away. */ #if (INCLUDE_xSemaphoreGetMutexHolder == 0) /* CMSIS-RTOS2 function osMutexGetOwner uses FreeRTOS function xSemaphoreGetMutexHolder. In case if osMutexGetOwner is not used in the application image, compiler will optimize it away. Set #define INCLUDE_xSemaphoreGetMutexHolder 1 to fix this error. */ #error "Definition INCLUDE_xSemaphoreGetMutexHolder must equal 1 to implement Mutex Management API." #endif #if (INCLUDE_vTaskDelay == 0) /* CMSIS-RTOS2 function osDelay uses FreeRTOS function vTaskDelay. In case if osDelay is not used in the application image, compiler will optimize it away. Set #define INCLUDE_vTaskDelay 1 to fix this error. */ #error "Definition INCLUDE_vTaskDelay must equal 1 to implement Generic Wait Functions API." #endif #if (INCLUDE_vTaskDelayUntil == 0) /* CMSIS-RTOS2 function osDelayUntil uses FreeRTOS function vTaskDelayUntil. In case if osDelayUntil is not used in the application image, compiler will optimize it away. Set #define INCLUDE_vTaskDelayUntil 1 to fix this error. */ #error "Definition INCLUDE_vTaskDelayUntil must equal 1 to implement Generic Wait Functions API." #endif #if (INCLUDE_vTaskDelete == 0) /* CMSIS-RTOS2 function osThreadTerminate and osThreadExit uses FreeRTOS function vTaskDelete. In case if they are not used in the application image, compiler will optimize them away. Set #define INCLUDE_vTaskDelete 1 to fix this error. */ #error "Definition INCLUDE_vTaskDelete must equal 1 to implement Thread Management API." #endif #if (INCLUDE_xTaskGetCurrentTaskHandle == 0) /* CMSIS-RTOS2 API uses FreeRTOS function xTaskGetCurrentTaskHandle to implement functions osThreadGetId, osThreadFlagsClear and osThreadFlagsGet. In case if these functions are not used in the application image, compiler will optimize them away. Set #define INCLUDE_xTaskGetCurrentTaskHandle 1 to fix this error. */ #error "Definition INCLUDE_xTaskGetCurrentTaskHandle must equal 1 to implement Thread Management API." #endif #if (INCLUDE_xTaskGetSchedulerState == 0) /* CMSIS-RTOS2 API uses FreeRTOS function xTaskGetSchedulerState to implement Kernel tick handling and therefore it is vital that xTaskGetSchedulerState is included into the application image. Set #define INCLUDE_xTaskGetSchedulerState 1 to fix this error. */ #error "Definition INCLUDE_xTaskGetSchedulerState must equal 1 to implement Kernel Information and Control API." #endif #if (INCLUDE_uxTaskGetStackHighWaterMark == 0) /* CMSIS-RTOS2 function osThreadGetStackSpace uses FreeRTOS function uxTaskGetStackHighWaterMark. In case if osThreadGetStackSpace is not used in the application image, compiler will optimize it away. Set #define INCLUDE_uxTaskGetStackHighWaterMark 1 to fix this error. */ #error "Definition INCLUDE_uxTaskGetStackHighWaterMark must equal 1 to implement Thread Management API." #endif #if (INCLUDE_uxTaskPriorityGet == 0) /* CMSIS-RTOS2 function osThreadGetPriority uses FreeRTOS function uxTaskPriorityGet. In case if osThreadGetPriority is not used in the application image, compiler will optimize it away. Set #define INCLUDE_uxTaskPriorityGet 1 to fix this error. */ #error "Definition INCLUDE_uxTaskPriorityGet must equal 1 to implement Thread Management API." #endif #if (INCLUDE_vTaskPrioritySet == 0) /* CMSIS-RTOS2 function osThreadSetPriority uses FreeRTOS function vTaskPrioritySet. In case if osThreadSetPriority is not used in the application image, compiler will optimize it away. Set #define INCLUDE_vTaskPrioritySet 1 to fix this error. */ #error "Definition INCLUDE_vTaskPrioritySet must equal 1 to implement Thread Management API." #endif #if (INCLUDE_eTaskGetState == 0) /* CMSIS-RTOS2 API uses FreeRTOS function vTaskDelayUntil to implement functions osThreadGetState and osThreadTerminate. In case if these functions are not used in the application image, compiler will optimize them away. Set #define INCLUDE_eTaskGetState 1 to fix this error. */ #error "Definition INCLUDE_eTaskGetState must equal 1 to implement Thread Management API." #endif #if (INCLUDE_vTaskSuspend == 0) /* CMSIS-RTOS2 API uses FreeRTOS functions vTaskSuspend and vTaskResume to implement functions osThreadSuspend and osThreadResume. In case if these functions are not used in the application image, compiler will optimize them away. Set #define INCLUDE_vTaskSuspend 1 to fix this error. Alternatively, if the application does not use osThreadSuspend and osThreadResume they can be excluded from the image code by setting: #define configUSE_OS2_THREAD_SUSPEND_RESUME 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) #error "Definition INCLUDE_vTaskSuspend must equal 1 to implement Kernel Information and Control API." #endif #endif #if (INCLUDE_xTimerPendFunctionCall == 0) /* CMSIS-RTOS2 function osEventFlagsSet and osEventFlagsClear, when called from the ISR, call FreeRTOS functions xEventGroupSetBitsFromISR and xEventGroupClearBitsFromISR which are only enabled if timers are operational and xTimerPendFunctionCall in enabled. Set #define INCLUDE_xTimerPendFunctionCall 1 and #define configUSE_TIMERS 1 to fix this error. Alternatively, if the application does not use osEventFlagsSet and osEventFlagsClear from the ISR their operation from ISR can be restricted by setting: #define configUSE_OS2_EVENTFLAGS_FROM_ISR 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 1) #error "Definition INCLUDE_xTimerPendFunctionCall must equal 1 to implement Event Flags API." #endif #endif #if (configUSE_TIMERS == 0) /* CMSIS-RTOS2 Timer Management API functions use FreeRTOS timer functions to implement timer management. In case if these functions are not used in the application image, compiler will optimize them away. Set #define configUSE_TIMERS 1 to fix this error. Alternatively, if the application does not use timer functions they can be excluded from the image code by setting: #define configUSE_OS2_TIMER 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_TIMER == 1) #error "Definition configUSE_TIMERS must equal 1 to implement Timer Management API." #endif #endif #if (configUSE_MUTEXES == 0) /* CMSIS-RTOS2 Mutex Management API functions use FreeRTOS mutex functions to implement mutex management. In case if these functions are not used in the application image, compiler will optimize them away. Set #define configUSE_MUTEXES 1 to fix this error. Alternatively, if the application does not use mutex functions they can be excluded from the image code by setting: #define configUSE_OS2_MUTEX 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_MUTEX == 1) #error "Definition configUSE_MUTEXES must equal 1 to implement Mutex Management API." #endif #endif #if (configUSE_COUNTING_SEMAPHORES == 0) /* CMSIS-RTOS2 Memory Pool functions use FreeRTOS function xSemaphoreCreateCounting to implement memory pools. In case if these functions are not used in the application image, compiler will optimize them away. Set #define configUSE_COUNTING_SEMAPHORES 1 to fix this error. */ #error "Definition configUSE_COUNTING_SEMAPHORES must equal 1 to implement Memory Pool API." #endif #if (configUSE_TASK_NOTIFICATIONS == 0) /* CMSIS-RTOS2 Thread Flags API functions use FreeRTOS Task Notification functions to implement thread flag management. In case if these functions are not used in the application image, compiler will optimize them away. Set #define configUSE_TASK_NOTIFICATIONS 1 to fix this error. Alternatively, if the application does not use thread flags functions they can be excluded from the image code by setting: #define configUSE_OS2_THREAD_FLAGS 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_THREAD_FLAGS == 1) #error "Definition configUSE_TASK_NOTIFICATIONS must equal 1 to implement Thread Flags API." #endif #endif #if (configUSE_TRACE_FACILITY == 0) /* CMSIS-RTOS2 function osThreadEnumerate requires FreeRTOS function uxTaskGetSystemState which is only enabled if configUSE_TRACE_FACILITY == 1. Set #define configUSE_TRACE_FACILITY 1 to fix this error. Alternatively, if the application does not use osThreadEnumerate it can be excluded from the image code by setting: #define configUSE_OS2_THREAD_ENUMERATE 0 (in FreeRTOSConfig.h) */ #if (configUSE_OS2_THREAD_ENUMERATE == 1) #error "Definition configUSE_TRACE_FACILITY must equal 1 to implement osThreadEnumerate." #endif #endif #if (configUSE_16_BIT_TICKS == 1) /* CMSIS-RTOS2 wrapper for FreeRTOS relies on 32-bit tick timer which is also optimal on a 32-bit CPU architectures. Set #define configUSE_16_BIT_TICKS 0 to fix this error. */ #error "Definition configUSE_16_BIT_TICKS must be zero to implement CMSIS-RTOS2 API." #endif #if (configMAX_PRIORITIES != 56) /* CMSIS-RTOS2 defines 56 different priorities (see osPriority_t) and portable CMSIS-RTOS2 implementation should implement the same number of priorities. Set #define configMAX_PRIORITIES 56 to fix this error. */ #error "Definition configMAX_PRIORITIES must equal 56 to implement Thread Management API." #endif #if (configUSE_PORT_OPTIMISED_TASK_SELECTION != 0) /* CMSIS-RTOS2 requires handling of 56 different priorities (see osPriority_t) while FreeRTOS port optimised selection for Cortex core only handles 32 different priorities. Set #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 to fix this error. */ #error "Definition configUSE_PORT_OPTIMISED_TASK_SELECTION must be zero to implement Thread Management API." #endif #endif /* FREERTOS_OS2_H_ */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/croutine.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #include "FreeRTOS.h" #include "task.h" #include "croutine.h" /* Remove the whole file is co-routines are not being used. */ #if( configUSE_CO_ROUTINES != 0 ) /* * Some kernel aware debuggers require data to be viewed to be global, rather * than file scope. */ #ifdef portREMOVE_STATIC_QUALIFIER #define static #endif /* Lists for ready and blocked co-routines. --------------------*/ static List_t pxReadyCoRoutineLists[ configMAX_CO_ROUTINE_PRIORITIES ]; /*< Prioritised ready co-routines. */ static List_t xDelayedCoRoutineList1; /*< Delayed co-routines. */ static List_t xDelayedCoRoutineList2; /*< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */ static List_t * pxDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used. */ static List_t * pxOverflowDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */ static List_t xPendingReadyCoRoutineList; /*< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */ /* Other file private variables. --------------------------------*/ CRCB_t * pxCurrentCoRoutine = NULL; static UBaseType_t uxTopCoRoutineReadyPriority = 0; static TickType_t xCoRoutineTickCount = 0, xLastTickCount = 0, xPassedTicks = 0; /* The initial state of the co-routine when it is created. */ #define corINITIAL_STATE ( 0 ) /* * Place the co-routine represented by pxCRCB into the appropriate ready queue * for the priority. It is inserted at the end of the list. * * This macro accesses the co-routine ready lists and therefore must not be * used from within an ISR. */ #define prvAddCoRoutineToReadyQueue( pxCRCB ) \ { \ if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \ { \ uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \ } \ vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \ } /* * Utility to ready all the lists used by the scheduler. This is called * automatically upon the creation of the first co-routine. */ static void prvInitialiseCoRoutineLists( void ); /* * Co-routines that are readied by an interrupt cannot be placed directly into * the ready lists (there is no mutual exclusion). Instead they are placed in * in the pending ready list in order that they can later be moved to the ready * list by the co-routine scheduler. */ static void prvCheckPendingReadyList( void ); /* * Macro that looks at the list of co-routines that are currently delayed to * see if any require waking. * * Co-routines are stored in the queue in the order of their wake time - * meaning once one co-routine has been found whose timer has not expired * we need not look any further down the list. */ static void prvCheckDelayedList( void ); /*-----------------------------------------------------------*/ BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex ) { BaseType_t xReturn; CRCB_t *pxCoRoutine; /* Allocate the memory that will store the co-routine control block. */ pxCoRoutine = ( CRCB_t * ) pvPortMalloc( sizeof( CRCB_t ) ); if( pxCoRoutine ) { /* If pxCurrentCoRoutine is NULL then this is the first co-routine to be created and the co-routine data structures need initialising. */ if( pxCurrentCoRoutine == NULL ) { pxCurrentCoRoutine = pxCoRoutine; prvInitialiseCoRoutineLists(); } /* Check the priority is within limits. */ if( uxPriority >= configMAX_CO_ROUTINE_PRIORITIES ) { uxPriority = configMAX_CO_ROUTINE_PRIORITIES - 1; } /* Fill out the co-routine control block from the function parameters. */ pxCoRoutine->uxState = corINITIAL_STATE; pxCoRoutine->uxPriority = uxPriority; pxCoRoutine->uxIndex = uxIndex; pxCoRoutine->pxCoRoutineFunction = pxCoRoutineCode; /* Initialise all the other co-routine control block parameters. */ vListInitialiseItem( &( pxCoRoutine->xGenericListItem ) ); vListInitialiseItem( &( pxCoRoutine->xEventListItem ) ); /* Set the co-routine control block as a link back from the ListItem_t. This is so we can get back to the containing CRCB from a generic item in a list. */ listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xGenericListItem ), pxCoRoutine ); listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xEventListItem ), pxCoRoutine ); /* Event lists are always in priority order. */ listSET_LIST_ITEM_VALUE( &( pxCoRoutine->xEventListItem ), ( ( TickType_t ) configMAX_CO_ROUTINE_PRIORITIES - ( TickType_t ) uxPriority ) ); /* Now the co-routine has been initialised it can be added to the ready list at the correct priority. */ prvAddCoRoutineToReadyQueue( pxCoRoutine ); xReturn = pdPASS; } else { xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; } return xReturn; } /*-----------------------------------------------------------*/ void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList ) { TickType_t xTimeToWake; /* Calculate the time to wake - this may overflow but this is not a problem. */ xTimeToWake = xCoRoutineTickCount + xTicksToDelay; /* We must remove ourselves from the ready list before adding ourselves to the blocked list as the same list item is used for both lists. */ ( void ) uxListRemove( ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); /* The list item will be inserted in wake time order. */ listSET_LIST_ITEM_VALUE( &( pxCurrentCoRoutine->xGenericListItem ), xTimeToWake ); if( xTimeToWake < xCoRoutineTickCount ) { /* Wake time has overflowed. Place this item in the overflow list. */ vListInsert( ( List_t * ) pxOverflowDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); } else { /* The wake time has not overflowed, so we can use the current block list. */ vListInsert( ( List_t * ) pxDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); } if( pxEventList ) { /* Also add the co-routine to an event list. If this is done then the function must be called with interrupts disabled. */ vListInsert( pxEventList, &( pxCurrentCoRoutine->xEventListItem ) ); } } /*-----------------------------------------------------------*/ static void prvCheckPendingReadyList( void ) { /* Are there any co-routines waiting to get moved to the ready list? These are co-routines that have been readied by an ISR. The ISR cannot access the ready lists itself. */ while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE ) { CRCB_t *pxUnblockedCRCB; /* The pending ready list can be accessed by an ISR. */ portDISABLE_INTERRUPTS(); { pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( (&xPendingReadyCoRoutineList) ); ( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) ); } portENABLE_INTERRUPTS(); ( void ) uxListRemove( &( pxUnblockedCRCB->xGenericListItem ) ); prvAddCoRoutineToReadyQueue( pxUnblockedCRCB ); } } /*-----------------------------------------------------------*/ static void prvCheckDelayedList( void ) { CRCB_t *pxCRCB; xPassedTicks = xTaskGetTickCount() - xLastTickCount; while( xPassedTicks ) { xCoRoutineTickCount++; xPassedTicks--; /* If the tick count has overflowed we need to swap the ready lists. */ if( xCoRoutineTickCount == 0 ) { List_t * pxTemp; /* Tick count has overflowed so we need to swap the delay lists. If there are any items in pxDelayedCoRoutineList here then there is an error! */ pxTemp = pxDelayedCoRoutineList; pxDelayedCoRoutineList = pxOverflowDelayedCoRoutineList; pxOverflowDelayedCoRoutineList = pxTemp; } /* See if this tick has made a timeout expire. */ while( listLIST_IS_EMPTY( pxDelayedCoRoutineList ) == pdFALSE ) { pxCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxDelayedCoRoutineList ); if( xCoRoutineTickCount < listGET_LIST_ITEM_VALUE( &( pxCRCB->xGenericListItem ) ) ) { /* Timeout not yet expired. */ break; } portDISABLE_INTERRUPTS(); { /* The event could have occurred just before this critical section. If this is the case then the generic list item will have been moved to the pending ready list and the following line is still valid. Also the pvContainer parameter will have been set to NULL so the following lines are also valid. */ ( void ) uxListRemove( &( pxCRCB->xGenericListItem ) ); /* Is the co-routine waiting on an event also? */ if( pxCRCB->xEventListItem.pxContainer ) { ( void ) uxListRemove( &( pxCRCB->xEventListItem ) ); } } portENABLE_INTERRUPTS(); prvAddCoRoutineToReadyQueue( pxCRCB ); } } xLastTickCount = xCoRoutineTickCount; } /*-----------------------------------------------------------*/ void vCoRoutineSchedule( void ) { /* See if any co-routines readied by events need moving to the ready lists. */ prvCheckPendingReadyList(); /* See if any delayed co-routines have timed out. */ prvCheckDelayedList(); /* Find the highest priority queue that contains ready co-routines. */ while( listLIST_IS_EMPTY( &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) ) ) { if( uxTopCoRoutineReadyPriority == 0 ) { /* No more co-routines to check. */ return; } --uxTopCoRoutineReadyPriority; } /* listGET_OWNER_OF_NEXT_ENTRY walks through the list, so the co-routines of the same priority get an equal share of the processor time. */ listGET_OWNER_OF_NEXT_ENTRY( pxCurrentCoRoutine, &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) ); /* Call the co-routine. */ ( pxCurrentCoRoutine->pxCoRoutineFunction )( pxCurrentCoRoutine, pxCurrentCoRoutine->uxIndex ); return; } /*-----------------------------------------------------------*/ static void prvInitialiseCoRoutineLists( void ) { UBaseType_t uxPriority; for( uxPriority = 0; uxPriority < configMAX_CO_ROUTINE_PRIORITIES; uxPriority++ ) { vListInitialise( ( List_t * ) &( pxReadyCoRoutineLists[ uxPriority ] ) ); } vListInitialise( ( List_t * ) &xDelayedCoRoutineList1 ); vListInitialise( ( List_t * ) &xDelayedCoRoutineList2 ); vListInitialise( ( List_t * ) &xPendingReadyCoRoutineList ); /* Start with pxDelayedCoRoutineList using list1 and the pxOverflowDelayedCoRoutineList using list2. */ pxDelayedCoRoutineList = &xDelayedCoRoutineList1; pxOverflowDelayedCoRoutineList = &xDelayedCoRoutineList2; } /*-----------------------------------------------------------*/ BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList ) { CRCB_t *pxUnblockedCRCB; BaseType_t xReturn; /* This function is called from within an interrupt. It can only access event lists and the pending ready list. This function assumes that a check has already been made to ensure pxEventList is not empty. */ pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); ( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) ); vListInsertEnd( ( List_t * ) &( xPendingReadyCoRoutineList ), &( pxUnblockedCRCB->xEventListItem ) ); if( pxUnblockedCRCB->uxPriority >= pxCurrentCoRoutine->uxPriority ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } #endif /* configUSE_CO_ROUTINES == 0 */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* Standard includes. */ #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE /* FreeRTOS includes. */ #include "FreeRTOS.h" #include "task.h" #include "timers.h" #include "event_groups.h" /* Lint e961, e750 and e9021 are suppressed as a MISRA exception justified because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the header files above, but not in this file, in order to generate the correct privileged Vs unprivileged linkage and placement. */ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021 See comment above. */ /* The following bit fields convey control information in a task's event list item value. It is important they don't clash with the taskEVENT_LIST_ITEM_VALUE_IN_USE definition. */ #if configUSE_16_BIT_TICKS == 1 #define eventCLEAR_EVENTS_ON_EXIT_BIT 0x0100U #define eventUNBLOCKED_DUE_TO_BIT_SET 0x0200U #define eventWAIT_FOR_ALL_BITS 0x0400U #define eventEVENT_BITS_CONTROL_BYTES 0xff00U #else #define eventCLEAR_EVENTS_ON_EXIT_BIT 0x01000000UL #define eventUNBLOCKED_DUE_TO_BIT_SET 0x02000000UL #define eventWAIT_FOR_ALL_BITS 0x04000000UL #define eventEVENT_BITS_CONTROL_BYTES 0xff000000UL #endif typedef struct EventGroupDef_t { EventBits_t uxEventBits; List_t xTasksWaitingForBits; /*< List of tasks waiting for a bit to be set. */ #if( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxEventGroupNumber; #endif #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the event group is statically allocated to ensure no attempt is made to free the memory. */ #endif } EventGroup_t; /*-----------------------------------------------------------*/ /* * Test the bits set in uxCurrentEventBits to see if the wait condition is met. * The wait condition is defined by xWaitForAllBits. If xWaitForAllBits is * pdTRUE then the wait condition is met if all the bits set in uxBitsToWaitFor * are also set in uxCurrentEventBits. If xWaitForAllBits is pdFALSE then the * wait condition is met if any of the bits set in uxBitsToWait for are also set * in uxCurrentEventBits. */ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits ) PRIVILEGED_FUNCTION; /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) { EventGroup_t *pxEventBits; /* A StaticEventGroup_t object must be provided. */ configASSERT( pxEventGroupBuffer ); #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticEventGroup_t equals the size of the real event group structure. */ volatile size_t xSize = sizeof( StaticEventGroup_t ); configASSERT( xSize == sizeof( EventGroup_t ) ); } /*lint !e529 xSize is referenced if configASSERT() is defined. */ #endif /* configASSERT_DEFINED */ /* The user has provided a statically allocated event group - use it. */ pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer; /*lint !e740 !e9087 EventGroup_t and StaticEventGroup_t are deliberately aliased for data hiding purposes and guaranteed to have the same size and alignment requirement - checked by configASSERT(). */ if( pxEventBits != NULL ) { pxEventBits->uxEventBits = 0; vListInitialise( &( pxEventBits->xTasksWaitingForBits ) ); #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) { /* Both static and dynamic allocation can be used, so note that this event group was created statically in case the event group is later deleted. */ pxEventBits->ucStaticallyAllocated = pdTRUE; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ traceEVENT_GROUP_CREATE( pxEventBits ); } else { /* xEventGroupCreateStatic should only ever be called with pxEventGroupBuffer pointing to a pre-allocated (compile time allocated) StaticEventGroup_t variable. */ traceEVENT_GROUP_CREATE_FAILED(); } return pxEventBits; } #endif /* configSUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) EventGroupHandle_t xEventGroupCreate( void ) { EventGroup_t *pxEventBits; /* Allocate the event group. Justification for MISRA deviation as follows: pvPortMalloc() always ensures returned memory blocks are aligned per the requirements of the MCU stack. In this case pvPortMalloc() must return a pointer that is guaranteed to meet the alignment requirements of the EventGroup_t structure - which (if you follow it through) is the alignment requirements of the TickType_t type (EventBits_t being of TickType_t itself). Therefore, whenever the stack alignment requirements are greater than or equal to the TickType_t alignment requirements the cast is safe. In other cases, where the natural word size of the architecture is less than sizeof( TickType_t ), the TickType_t variables will be accessed in two or more reads operations, and the alignment requirements is only that of each individual read. */ pxEventBits = ( EventGroup_t * ) pvPortMalloc( sizeof( EventGroup_t ) ); /*lint !e9087 !e9079 see comment above. */ if( pxEventBits != NULL ) { pxEventBits->uxEventBits = 0; vListInitialise( &( pxEventBits->xTasksWaitingForBits ) ); #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { /* Both static and dynamic allocation can be used, so note this event group was allocated statically in case the event group is later deleted. */ pxEventBits->ucStaticallyAllocated = pdFALSE; } #endif /* configSUPPORT_STATIC_ALLOCATION */ traceEVENT_GROUP_CREATE( pxEventBits ); } else { traceEVENT_GROUP_CREATE_FAILED(); /*lint !e9063 Else branch only exists to allow tracing and does not generate code if trace macros are not defined. */ } return pxEventBits; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ /*-----------------------------------------------------------*/ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) { EventBits_t uxOriginalBitValue, uxReturn; EventGroup_t *pxEventBits = xEventGroup; BaseType_t xAlreadyYielded; BaseType_t xTimeoutOccurred = pdFALSE; configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); configASSERT( uxBitsToWaitFor != 0 ); #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif vTaskSuspendAll(); { uxOriginalBitValue = pxEventBits->uxEventBits; ( void ) xEventGroupSetBits( xEventGroup, uxBitsToSet ); if( ( ( uxOriginalBitValue | uxBitsToSet ) & uxBitsToWaitFor ) == uxBitsToWaitFor ) { /* All the rendezvous bits are now set - no need to block. */ uxReturn = ( uxOriginalBitValue | uxBitsToSet ); /* Rendezvous always clear the bits. They will have been cleared already unless this is the only task in the rendezvous. */ pxEventBits->uxEventBits &= ~uxBitsToWaitFor; xTicksToWait = 0; } else { if( xTicksToWait != ( TickType_t ) 0 ) { traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor ); /* Store the bits that the calling task is waiting for in the task's event list item so the kernel knows when a match is found. Then enter the blocked state. */ vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | eventCLEAR_EVENTS_ON_EXIT_BIT | eventWAIT_FOR_ALL_BITS ), xTicksToWait ); /* This assignment is obsolete as uxReturn will get set after the task unblocks, but some compilers mistakenly generate a warning about uxReturn being returned without being set if the assignment is omitted. */ uxReturn = 0; } else { /* The rendezvous bits were not set, but no block time was specified - just return the current event bit value. */ uxReturn = pxEventBits->uxEventBits; xTimeoutOccurred = pdTRUE; } } } xAlreadyYielded = xTaskResumeAll(); if( xTicksToWait != ( TickType_t ) 0 ) { if( xAlreadyYielded == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } /* The task blocked to wait for its required bits to be set - at this point either the required bits were set or the block time expired. If the required bits were set they will have been stored in the task's event list item, and they should now be retrieved then cleared. */ uxReturn = uxTaskResetEventItemValue(); if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 ) { /* The task timed out, just return the current event bit value. */ taskENTER_CRITICAL(); { uxReturn = pxEventBits->uxEventBits; /* Although the task got here because it timed out before the bits it was waiting for were set, it is possible that since it unblocked another task has set the bits. If this is the case then it needs to clear the bits before exiting. */ if( ( uxReturn & uxBitsToWaitFor ) == uxBitsToWaitFor ) { pxEventBits->uxEventBits &= ~uxBitsToWaitFor; } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); xTimeoutOccurred = pdTRUE; } else { /* The task unblocked because the bits were set. */ } /* Control bits might be set as the task had blocked should not be returned. */ uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES; } traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ); /* Prevent compiler warnings when trace macros are not used. */ ( void ) xTimeoutOccurred; return uxReturn; } /*-----------------------------------------------------------*/ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) { EventGroup_t *pxEventBits = xEventGroup; EventBits_t uxReturn, uxControlBits = 0; BaseType_t xWaitConditionMet, xAlreadyYielded; BaseType_t xTimeoutOccurred = pdFALSE; /* Check the user is not attempting to wait on the bits used by the kernel itself, and that at least one bit is being requested. */ configASSERT( xEventGroup ); configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); configASSERT( uxBitsToWaitFor != 0 ); #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif vTaskSuspendAll(); { const EventBits_t uxCurrentEventBits = pxEventBits->uxEventBits; /* Check to see if the wait condition is already met or not. */ xWaitConditionMet = prvTestWaitCondition( uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits ); if( xWaitConditionMet != pdFALSE ) { /* The wait condition has already been met so there is no need to block. */ uxReturn = uxCurrentEventBits; xTicksToWait = ( TickType_t ) 0; /* Clear the wait bits if requested to do so. */ if( xClearOnExit != pdFALSE ) { pxEventBits->uxEventBits &= ~uxBitsToWaitFor; } else { mtCOVERAGE_TEST_MARKER(); } } else if( xTicksToWait == ( TickType_t ) 0 ) { /* The wait condition has not been met, but no block time was specified, so just return the current value. */ uxReturn = uxCurrentEventBits; xTimeoutOccurred = pdTRUE; } else { /* The task is going to block to wait for its required bits to be set. uxControlBits are used to remember the specified behaviour of this call to xEventGroupWaitBits() - for use when the event bits unblock the task. */ if( xClearOnExit != pdFALSE ) { uxControlBits |= eventCLEAR_EVENTS_ON_EXIT_BIT; } else { mtCOVERAGE_TEST_MARKER(); } if( xWaitForAllBits != pdFALSE ) { uxControlBits |= eventWAIT_FOR_ALL_BITS; } else { mtCOVERAGE_TEST_MARKER(); } /* Store the bits that the calling task is waiting for in the task's event list item so the kernel knows when a match is found. Then enter the blocked state. */ vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | uxControlBits ), xTicksToWait ); /* This is obsolete as it will get set after the task unblocks, but some compilers mistakenly generate a warning about the variable being returned without being set if it is not done. */ uxReturn = 0; traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor ); } } xAlreadyYielded = xTaskResumeAll(); if( xTicksToWait != ( TickType_t ) 0 ) { if( xAlreadyYielded == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } /* The task blocked to wait for its required bits to be set - at this point either the required bits were set or the block time expired. If the required bits were set they will have been stored in the task's event list item, and they should now be retrieved then cleared. */ uxReturn = uxTaskResetEventItemValue(); if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 ) { taskENTER_CRITICAL(); { /* The task timed out, just return the current event bit value. */ uxReturn = pxEventBits->uxEventBits; /* It is possible that the event bits were updated between this task leaving the Blocked state and running again. */ if( prvTestWaitCondition( uxReturn, uxBitsToWaitFor, xWaitForAllBits ) != pdFALSE ) { if( xClearOnExit != pdFALSE ) { pxEventBits->uxEventBits &= ~uxBitsToWaitFor; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } xTimeoutOccurred = pdTRUE; } taskEXIT_CRITICAL(); } else { /* The task unblocked because the bits were set. */ } /* The task blocked so control bits may have been set. */ uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES; } traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ); /* Prevent compiler warnings when trace macros are not used. */ ( void ) xTimeoutOccurred; return uxReturn; } /*-----------------------------------------------------------*/ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) { EventGroup_t *pxEventBits = xEventGroup; EventBits_t uxReturn; /* Check the user is not attempting to clear the bits used by the kernel itself. */ configASSERT( xEventGroup ); configASSERT( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); taskENTER_CRITICAL(); { traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear ); /* The value returned is the event group value prior to the bits being cleared. */ uxReturn = pxEventBits->uxEventBits; /* Clear the bits. */ pxEventBits->uxEventBits &= ~uxBitsToClear; } taskEXIT_CRITICAL(); return uxReturn; } /*-----------------------------------------------------------*/ #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) { BaseType_t xReturn; traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear ); xReturn = xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */ return xReturn; } #endif /*-----------------------------------------------------------*/ EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) { UBaseType_t uxSavedInterruptStatus; EventGroup_t const * const pxEventBits = xEventGroup; EventBits_t uxReturn; uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { uxReturn = pxEventBits->uxEventBits; } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return uxReturn; } /*lint !e818 EventGroupHandle_t is a typedef used in other functions to so can't be pointer to const. */ /*-----------------------------------------------------------*/ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) { ListItem_t *pxListItem, *pxNext; ListItem_t const *pxListEnd; List_t const * pxList; EventBits_t uxBitsToClear = 0, uxBitsWaitedFor, uxControlBits; EventGroup_t *pxEventBits = xEventGroup; BaseType_t xMatchFound = pdFALSE; /* Check the user is not attempting to set the bits used by the kernel itself. */ configASSERT( xEventGroup ); configASSERT( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); pxList = &( pxEventBits->xTasksWaitingForBits ); pxListEnd = listGET_END_MARKER( pxList ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ vTaskSuspendAll(); { traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet ); pxListItem = listGET_HEAD_ENTRY( pxList ); /* Set the bits. */ pxEventBits->uxEventBits |= uxBitsToSet; /* See if the new bit value should unblock any tasks. */ while( pxListItem != pxListEnd ) { pxNext = listGET_NEXT( pxListItem ); uxBitsWaitedFor = listGET_LIST_ITEM_VALUE( pxListItem ); xMatchFound = pdFALSE; /* Split the bits waited for from the control bits. */ uxControlBits = uxBitsWaitedFor & eventEVENT_BITS_CONTROL_BYTES; uxBitsWaitedFor &= ~eventEVENT_BITS_CONTROL_BYTES; if( ( uxControlBits & eventWAIT_FOR_ALL_BITS ) == ( EventBits_t ) 0 ) { /* Just looking for single bit being set. */ if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) != ( EventBits_t ) 0 ) { xMatchFound = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) == uxBitsWaitedFor ) { /* All bits are set. */ xMatchFound = pdTRUE; } else { /* Need all bits to be set, but not all the bits were set. */ } if( xMatchFound != pdFALSE ) { /* The bits match. Should the bits be cleared on exit? */ if( ( uxControlBits & eventCLEAR_EVENTS_ON_EXIT_BIT ) != ( EventBits_t ) 0 ) { uxBitsToClear |= uxBitsWaitedFor; } else { mtCOVERAGE_TEST_MARKER(); } /* Store the actual event flag value in the task's event list item before removing the task from the event list. The eventUNBLOCKED_DUE_TO_BIT_SET bit is set so the task knows that is was unblocked due to its required bits matching, rather than because it timed out. */ vTaskRemoveFromUnorderedEventList( pxListItem, pxEventBits->uxEventBits | eventUNBLOCKED_DUE_TO_BIT_SET ); } /* Move onto the next list item. Note pxListItem->pxNext is not used here as the list item may have been removed from the event list and inserted into the ready/pending reading list. */ pxListItem = pxNext; } /* Clear any bits that matched when the eventCLEAR_EVENTS_ON_EXIT_BIT bit was set in the control word. */ pxEventBits->uxEventBits &= ~uxBitsToClear; } ( void ) xTaskResumeAll(); return pxEventBits->uxEventBits; } /*-----------------------------------------------------------*/ void vEventGroupDelete( EventGroupHandle_t xEventGroup ) { EventGroup_t *pxEventBits = xEventGroup; const List_t *pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits ); vTaskSuspendAll(); { traceEVENT_GROUP_DELETE( xEventGroup ); while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 ) { /* Unblock the task, returning 0 as the event list is being deleted and cannot therefore have any bits set. */ configASSERT( pxTasksWaitingForBits->xListEnd.pxNext != ( const ListItem_t * ) &( pxTasksWaitingForBits->xListEnd ) ); vTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET ); } #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) ) { /* The event group can only have been allocated dynamically - free it again. */ vPortFree( pxEventBits ); } #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) { /* The event group could have been allocated statically or dynamically, so check before attempting to free the memory. */ if( pxEventBits->ucStaticallyAllocated == ( uint8_t ) pdFALSE ) { vPortFree( pxEventBits ); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ } ( void ) xTaskResumeAll(); } /*-----------------------------------------------------------*/ /* For internal use only - execute a 'set bits' command that was pended from an interrupt. */ void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet ) { ( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */ } /*-----------------------------------------------------------*/ /* For internal use only - execute a 'clear bits' command that was pended from an interrupt. */ void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear ) { ( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */ } /*-----------------------------------------------------------*/ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits ) { BaseType_t xWaitConditionMet = pdFALSE; if( xWaitForAllBits == pdFALSE ) { /* Task only has to wait for one bit within uxBitsToWaitFor to be set. Is one already set? */ if( ( uxCurrentEventBits & uxBitsToWaitFor ) != ( EventBits_t ) 0 ) { xWaitConditionMet = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { /* Task has to wait for all the bits in uxBitsToWaitFor to be set. Are they set already? */ if( ( uxCurrentEventBits & uxBitsToWaitFor ) == uxBitsToWaitFor ) { xWaitConditionMet = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } return xWaitConditionMet; } /*-----------------------------------------------------------*/ #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken ) { BaseType_t xReturn; traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet ); xReturn = xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */ return xReturn; } #endif /*-----------------------------------------------------------*/ #if (configUSE_TRACE_FACILITY == 1) UBaseType_t uxEventGroupGetNumber( void* xEventGroup ) { UBaseType_t xReturn; EventGroup_t const *pxEventBits = ( EventGroup_t * ) xEventGroup; /*lint !e9087 !e9079 EventGroupHandle_t is a pointer to an EventGroup_t, but EventGroupHandle_t is kept opaque outside of this file for data hiding purposes. */ if( xEventGroup == NULL ) { xReturn = 0; } else { xReturn = pxEventBits->uxEventGroupNumber; } return xReturn; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) void vEventGroupSetNumber( void * xEventGroup, UBaseType_t uxEventGroupNumber ) { ( ( EventGroup_t * ) xEventGroup )->uxEventGroupNumber = uxEventGroupNumber; /*lint !e9087 !e9079 EventGroupHandle_t is a pointer to an EventGroup_t, but EventGroupHandle_t is kept opaque outside of this file for data hiding purposes. */ } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef INC_FREERTOS_H #define INC_FREERTOS_H /* * Include the generic headers required for the FreeRTOS port being used. */ #include /* * If stdint.h cannot be located then: * + If using GCC ensure the -nostdint options is *not* being used. * + Ensure the project's include path includes the directory in which your * compiler stores stdint.h. * + Set any compiler options necessary for it to support C99, as technically * stdint.h is only mandatory with C99 (FreeRTOS does not require C99 in any * other way). * + The FreeRTOS download includes a simple stdint.h definition that can be * used in cases where none is provided by the compiler. The files only * contains the typedefs required to build FreeRTOS. Read the instructions * in FreeRTOS/source/stdint.readme for more information. */ #include /* READ COMMENT ABOVE. */ #ifdef __cplusplus extern "C" { #endif /* Application specific configuration options. */ #include "FreeRTOSConfig.h" /* Basic FreeRTOS definitions. */ #include "projdefs.h" /* Definitions specific to the port being used. */ #include "portable.h" /* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */ #ifndef configUSE_NEWLIB_REENTRANT #define configUSE_NEWLIB_REENTRANT 0 #endif /* Required if struct _reent is used. */ #if ( configUSE_NEWLIB_REENTRANT == 1 ) #include #endif /* * Check all the required application specific macros have been defined. * These macros are application specific and (as downloaded) are defined * within FreeRTOSConfig.h. */ #ifndef configMINIMAL_STACK_SIZE #error Missing definition: configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h. configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value. #endif #ifndef configMAX_PRIORITIES #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details. #endif #if configMAX_PRIORITIES < 1 #error configMAX_PRIORITIES must be defined to be greater than or equal to 1. #endif #ifndef configUSE_PREEMPTION #error Missing definition: configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. #endif #ifndef configUSE_IDLE_HOOK #error Missing definition: configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. #endif #ifndef configUSE_TICK_HOOK #error Missing definition: configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. #endif #ifndef configUSE_16_BIT_TICKS #error Missing definition: configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. #endif #ifndef configUSE_CO_ROUTINES #define configUSE_CO_ROUTINES 0 #endif #ifndef INCLUDE_vTaskPrioritySet #define INCLUDE_vTaskPrioritySet 0 #endif #ifndef INCLUDE_uxTaskPriorityGet #define INCLUDE_uxTaskPriorityGet 0 #endif #ifndef INCLUDE_vTaskDelete #define INCLUDE_vTaskDelete 0 #endif #ifndef INCLUDE_vTaskSuspend #define INCLUDE_vTaskSuspend 0 #endif #ifndef INCLUDE_vTaskDelayUntil #define INCLUDE_vTaskDelayUntil 0 #endif #ifndef INCLUDE_vTaskDelay #define INCLUDE_vTaskDelay 0 #endif #ifndef INCLUDE_xTaskGetIdleTaskHandle #define INCLUDE_xTaskGetIdleTaskHandle 0 #endif #ifndef INCLUDE_xTaskAbortDelay #define INCLUDE_xTaskAbortDelay 0 #endif #ifndef INCLUDE_xQueueGetMutexHolder #define INCLUDE_xQueueGetMutexHolder 0 #endif #ifndef INCLUDE_xSemaphoreGetMutexHolder #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder #endif #ifndef INCLUDE_xTaskGetHandle #define INCLUDE_xTaskGetHandle 0 #endif #ifndef INCLUDE_uxTaskGetStackHighWaterMark #define INCLUDE_uxTaskGetStackHighWaterMark 0 #endif #ifndef INCLUDE_uxTaskGetStackHighWaterMark2 #define INCLUDE_uxTaskGetStackHighWaterMark2 0 #endif #ifndef INCLUDE_eTaskGetState #define INCLUDE_eTaskGetState 0 #endif #ifndef INCLUDE_xTaskResumeFromISR #define INCLUDE_xTaskResumeFromISR 1 #endif #ifndef INCLUDE_xTimerPendFunctionCall #define INCLUDE_xTimerPendFunctionCall 0 #endif #ifndef INCLUDE_xTaskGetSchedulerState #define INCLUDE_xTaskGetSchedulerState 0 #endif #ifndef INCLUDE_xTaskGetCurrentTaskHandle #define INCLUDE_xTaskGetCurrentTaskHandle 0 #endif #if configUSE_CO_ROUTINES != 0 #ifndef configMAX_CO_ROUTINE_PRIORITIES #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1. #endif #endif #ifndef configUSE_DAEMON_TASK_STARTUP_HOOK #define configUSE_DAEMON_TASK_STARTUP_HOOK 0 #endif #ifndef configUSE_APPLICATION_TASK_TAG #define configUSE_APPLICATION_TASK_TAG 0 #endif #ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0 #endif #ifndef configUSE_RECURSIVE_MUTEXES #define configUSE_RECURSIVE_MUTEXES 0 #endif #ifndef configUSE_MUTEXES #define configUSE_MUTEXES 0 #endif #ifndef configUSE_TIMERS #define configUSE_TIMERS 0 #endif #ifndef configUSE_COUNTING_SEMAPHORES #define configUSE_COUNTING_SEMAPHORES 0 #endif #ifndef configUSE_ALTERNATIVE_API #define configUSE_ALTERNATIVE_API 0 #endif #ifndef portCRITICAL_NESTING_IN_TCB #define portCRITICAL_NESTING_IN_TCB 0 #endif #ifndef configMAX_TASK_NAME_LEN #define configMAX_TASK_NAME_LEN 16 #endif #ifndef configIDLE_SHOULD_YIELD #define configIDLE_SHOULD_YIELD 1 #endif #if configMAX_TASK_NAME_LEN < 1 #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h #endif #ifndef configASSERT #define configASSERT( x ) #define configASSERT_DEFINED 0 #else #define configASSERT_DEFINED 1 #endif /* configPRECONDITION should be defined as configASSERT. The CBMC proofs need a way to track assumptions and assertions. A configPRECONDITION statement should express an implicit invariant or assumption made. A configASSERT statement should express an invariant that must hold explicit before calling the code. */ #ifndef configPRECONDITION #define configPRECONDITION( X ) configASSERT(X) #define configPRECONDITION_DEFINED 0 #else #define configPRECONDITION_DEFINED 1 #endif #ifndef portMEMORY_BARRIER #define portMEMORY_BARRIER() #endif #ifndef portSOFTWARE_BARRIER #define portSOFTWARE_BARRIER() #endif /* The timers module relies on xTaskGetSchedulerState(). */ #if configUSE_TIMERS == 1 #ifndef configTIMER_TASK_PRIORITY #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined. #endif /* configTIMER_TASK_PRIORITY */ #ifndef configTIMER_QUEUE_LENGTH #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined. #endif /* configTIMER_QUEUE_LENGTH */ #ifndef configTIMER_TASK_STACK_DEPTH #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined. #endif /* configTIMER_TASK_STACK_DEPTH */ #endif /* configUSE_TIMERS */ #ifndef portSET_INTERRUPT_MASK_FROM_ISR #define portSET_INTERRUPT_MASK_FROM_ISR() 0 #endif #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) uxSavedStatusValue #endif #ifndef portCLEAN_UP_TCB #define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB #endif #ifndef portPRE_TASK_DELETE_HOOK #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending ) #endif #ifndef portSETUP_TCB #define portSETUP_TCB( pxTCB ) ( void ) pxTCB #endif #ifndef configQUEUE_REGISTRY_SIZE #define configQUEUE_REGISTRY_SIZE 0U #endif #if ( configQUEUE_REGISTRY_SIZE < 1 ) #define vQueueAddToRegistry( xQueue, pcName ) #define vQueueUnregisterQueue( xQueue ) #define pcQueueGetName( xQueue ) #endif #ifndef portPOINTER_SIZE_TYPE #define portPOINTER_SIZE_TYPE uint32_t #endif /* Remove any unused trace macros. */ #ifndef traceSTART /* Used to perform any necessary initialisation - for example, open a file into which trace is to be written. */ #define traceSTART() #endif #ifndef traceEND /* Use to close a trace, for example close a file into which trace has been written. */ #define traceEND() #endif #ifndef traceTASK_SWITCHED_IN /* Called after a task has been selected to run. pxCurrentTCB holds a pointer to the task control block of the selected task. */ #define traceTASK_SWITCHED_IN() #endif #ifndef traceINCREASE_TICK_COUNT /* Called before stepping the tick count after waking from tickless idle sleep. */ #define traceINCREASE_TICK_COUNT( x ) #endif #ifndef traceLOW_POWER_IDLE_BEGIN /* Called immediately before entering tickless idle. */ #define traceLOW_POWER_IDLE_BEGIN() #endif #ifndef traceLOW_POWER_IDLE_END /* Called when returning to the Idle task after a tickless idle. */ #define traceLOW_POWER_IDLE_END() #endif #ifndef traceTASK_SWITCHED_OUT /* Called before a task has been selected to run. pxCurrentTCB holds a pointer to the task control block of the task being switched out. */ #define traceTASK_SWITCHED_OUT() #endif #ifndef traceTASK_PRIORITY_INHERIT /* Called when a task attempts to take a mutex that is already held by a lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task that holds the mutex. uxInheritedPriority is the priority the mutex holder will inherit (the priority of the task that is attempting to obtain the muted. */ #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority ) #endif #ifndef traceTASK_PRIORITY_DISINHERIT /* Called when a task releases a mutex, the holding of which had resulted in the task inheriting the priority of a higher priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the mutex. uxOriginalPriority is the task's configured (base) priority. */ #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority ) #endif #ifndef traceBLOCKING_ON_QUEUE_RECEIVE /* Task is about to block because it cannot read from a queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore upon which the read was attempted. pxCurrentTCB points to the TCB of the task that attempted the read. */ #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ) #endif #ifndef traceBLOCKING_ON_QUEUE_PEEK /* Task is about to block because it cannot read from a queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore upon which the read was attempted. pxCurrentTCB points to the TCB of the task that attempted the read. */ #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue ) #endif #ifndef traceBLOCKING_ON_QUEUE_SEND /* Task is about to block because it cannot write to a queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore upon which the write was attempted. pxCurrentTCB points to the TCB of the task that attempted the write. */ #define traceBLOCKING_ON_QUEUE_SEND( pxQueue ) #endif #ifndef configCHECK_FOR_STACK_OVERFLOW #define configCHECK_FOR_STACK_OVERFLOW 0 #endif #ifndef configRECORD_STACK_HIGH_ADDRESS #define configRECORD_STACK_HIGH_ADDRESS 0 #endif #ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0 #endif /* The following event macros are embedded in the kernel API calls. */ #ifndef traceMOVED_TASK_TO_READY_STATE #define traceMOVED_TASK_TO_READY_STATE( pxTCB ) #endif #ifndef tracePOST_MOVED_TASK_TO_READY_STATE #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB ) #endif #ifndef traceQUEUE_CREATE #define traceQUEUE_CREATE( pxNewQueue ) #endif #ifndef traceQUEUE_CREATE_FAILED #define traceQUEUE_CREATE_FAILED( ucQueueType ) #endif #ifndef traceCREATE_MUTEX #define traceCREATE_MUTEX( pxNewQueue ) #endif #ifndef traceCREATE_MUTEX_FAILED #define traceCREATE_MUTEX_FAILED() #endif #ifndef traceGIVE_MUTEX_RECURSIVE #define traceGIVE_MUTEX_RECURSIVE( pxMutex ) #endif #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex ) #endif #ifndef traceTAKE_MUTEX_RECURSIVE #define traceTAKE_MUTEX_RECURSIVE( pxMutex ) #endif #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex ) #endif #ifndef traceCREATE_COUNTING_SEMAPHORE #define traceCREATE_COUNTING_SEMAPHORE() #endif #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED #define traceCREATE_COUNTING_SEMAPHORE_FAILED() #endif #ifndef traceQUEUE_SEND #define traceQUEUE_SEND( pxQueue ) #endif #ifndef traceQUEUE_SEND_FAILED #define traceQUEUE_SEND_FAILED( pxQueue ) #endif #ifndef traceQUEUE_RECEIVE #define traceQUEUE_RECEIVE( pxQueue ) #endif #ifndef traceQUEUE_PEEK #define traceQUEUE_PEEK( pxQueue ) #endif #ifndef traceQUEUE_PEEK_FAILED #define traceQUEUE_PEEK_FAILED( pxQueue ) #endif #ifndef traceQUEUE_PEEK_FROM_ISR #define traceQUEUE_PEEK_FROM_ISR( pxQueue ) #endif #ifndef traceQUEUE_RECEIVE_FAILED #define traceQUEUE_RECEIVE_FAILED( pxQueue ) #endif #ifndef traceQUEUE_SEND_FROM_ISR #define traceQUEUE_SEND_FROM_ISR( pxQueue ) #endif #ifndef traceQUEUE_SEND_FROM_ISR_FAILED #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ) #endif #ifndef traceQUEUE_RECEIVE_FROM_ISR #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue ) #endif #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ) #endif #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue ) #endif #ifndef traceQUEUE_DELETE #define traceQUEUE_DELETE( pxQueue ) #endif #ifndef traceTASK_CREATE #define traceTASK_CREATE( pxNewTCB ) #endif #ifndef traceTASK_CREATE_FAILED #define traceTASK_CREATE_FAILED() #endif #ifndef traceTASK_DELETE #define traceTASK_DELETE( pxTaskToDelete ) #endif #ifndef traceTASK_DELAY_UNTIL #define traceTASK_DELAY_UNTIL( x ) #endif #ifndef traceTASK_DELAY #define traceTASK_DELAY() #endif #ifndef traceTASK_PRIORITY_SET #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority ) #endif #ifndef traceTASK_SUSPEND #define traceTASK_SUSPEND( pxTaskToSuspend ) #endif #ifndef traceTASK_RESUME #define traceTASK_RESUME( pxTaskToResume ) #endif #ifndef traceTASK_RESUME_FROM_ISR #define traceTASK_RESUME_FROM_ISR( pxTaskToResume ) #endif #ifndef traceTASK_INCREMENT_TICK #define traceTASK_INCREMENT_TICK( xTickCount ) #endif #ifndef traceTIMER_CREATE #define traceTIMER_CREATE( pxNewTimer ) #endif #ifndef traceTIMER_CREATE_FAILED #define traceTIMER_CREATE_FAILED() #endif #ifndef traceTIMER_COMMAND_SEND #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn ) #endif #ifndef traceTIMER_EXPIRED #define traceTIMER_EXPIRED( pxTimer ) #endif #ifndef traceTIMER_COMMAND_RECEIVED #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue ) #endif #ifndef traceMALLOC #define traceMALLOC( pvAddress, uiSize ) #endif #ifndef traceFREE #define traceFREE( pvAddress, uiSize ) #endif #ifndef traceEVENT_GROUP_CREATE #define traceEVENT_GROUP_CREATE( xEventGroup ) #endif #ifndef traceEVENT_GROUP_CREATE_FAILED #define traceEVENT_GROUP_CREATE_FAILED() #endif #ifndef traceEVENT_GROUP_SYNC_BLOCK #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor ) #endif #ifndef traceEVENT_GROUP_SYNC_END #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred #endif #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor ) #endif #ifndef traceEVENT_GROUP_WAIT_BITS_END #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred #endif #ifndef traceEVENT_GROUP_CLEAR_BITS #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear ) #endif #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear ) #endif #ifndef traceEVENT_GROUP_SET_BITS #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet ) #endif #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet ) #endif #ifndef traceEVENT_GROUP_DELETE #define traceEVENT_GROUP_DELETE( xEventGroup ) #endif #ifndef tracePEND_FUNC_CALL #define tracePEND_FUNC_CALL(xFunctionToPend, pvParameter1, ulParameter2, ret) #endif #ifndef tracePEND_FUNC_CALL_FROM_ISR #define tracePEND_FUNC_CALL_FROM_ISR(xFunctionToPend, pvParameter1, ulParameter2, ret) #endif #ifndef traceQUEUE_REGISTRY_ADD #define traceQUEUE_REGISTRY_ADD(xQueue, pcQueueName) #endif #ifndef traceTASK_NOTIFY_TAKE_BLOCK #define traceTASK_NOTIFY_TAKE_BLOCK() #endif #ifndef traceTASK_NOTIFY_TAKE #define traceTASK_NOTIFY_TAKE() #endif #ifndef traceTASK_NOTIFY_WAIT_BLOCK #define traceTASK_NOTIFY_WAIT_BLOCK() #endif #ifndef traceTASK_NOTIFY_WAIT #define traceTASK_NOTIFY_WAIT() #endif #ifndef traceTASK_NOTIFY #define traceTASK_NOTIFY() #endif #ifndef traceTASK_NOTIFY_FROM_ISR #define traceTASK_NOTIFY_FROM_ISR() #endif #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR #define traceTASK_NOTIFY_GIVE_FROM_ISR() #endif #ifndef traceSTREAM_BUFFER_CREATE_FAILED #define traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer ) #endif #ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer ) #endif #ifndef traceSTREAM_BUFFER_CREATE #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer ) #endif #ifndef traceSTREAM_BUFFER_DELETE #define traceSTREAM_BUFFER_DELETE( xStreamBuffer ) #endif #ifndef traceSTREAM_BUFFER_RESET #define traceSTREAM_BUFFER_RESET( xStreamBuffer ) #endif #ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer ) #endif #ifndef traceSTREAM_BUFFER_SEND #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent ) #endif #ifndef traceSTREAM_BUFFER_SEND_FAILED #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer ) #endif #ifndef traceSTREAM_BUFFER_SEND_FROM_ISR #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent ) #endif #ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer ) #endif #ifndef traceSTREAM_BUFFER_RECEIVE #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength ) #endif #ifndef traceSTREAM_BUFFER_RECEIVE_FAILED #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer ) #endif #ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength ) #endif #ifndef configGENERATE_RUN_TIME_STATS #define configGENERATE_RUN_TIME_STATS 0 #endif #if ( configGENERATE_RUN_TIME_STATS == 1 ) #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS #error If configGENERATE_RUN_TIME_STATS is defined then portCONFIGURE_TIMER_FOR_RUN_TIME_STATS must also be defined. portCONFIGURE_TIMER_FOR_RUN_TIME_STATS should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base. #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */ #ifndef portGET_RUN_TIME_COUNTER_VALUE #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE #error If configGENERATE_RUN_TIME_STATS is defined then either portGET_RUN_TIME_COUNTER_VALUE or portALT_GET_RUN_TIME_COUNTER_VALUE must also be defined. See the examples provided and the FreeRTOS web site for more information. #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */ #endif /* portGET_RUN_TIME_COUNTER_VALUE */ #endif /* configGENERATE_RUN_TIME_STATS */ #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() #endif #ifndef configUSE_MALLOC_FAILED_HOOK #define configUSE_MALLOC_FAILED_HOOK 0 #endif #ifndef portPRIVILEGE_BIT #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 ) #endif #ifndef portYIELD_WITHIN_API #define portYIELD_WITHIN_API portYIELD #endif #ifndef portSUPPRESS_TICKS_AND_SLEEP #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) #endif #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2 #endif #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2 #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2 #endif #ifndef configUSE_TICKLESS_IDLE #define configUSE_TICKLESS_IDLE 0 #endif #ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x ) #endif #ifndef configPRE_SLEEP_PROCESSING #define configPRE_SLEEP_PROCESSING( x ) #endif #ifndef configPOST_SLEEP_PROCESSING #define configPOST_SLEEP_PROCESSING( x ) #endif #ifndef configUSE_QUEUE_SETS #define configUSE_QUEUE_SETS 0 #endif #ifndef portTASK_USES_FLOATING_POINT #define portTASK_USES_FLOATING_POINT() #endif #ifndef portALLOCATE_SECURE_CONTEXT #define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) #endif #ifndef portDONT_DISCARD #define portDONT_DISCARD #endif #ifndef configUSE_TIME_SLICING #define configUSE_TIME_SLICING 1 #endif #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 #endif #ifndef configUSE_STATS_FORMATTING_FUNCTIONS #define configUSE_STATS_FORMATTING_FUNCTIONS 0 #endif #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() #endif #ifndef configUSE_TRACE_FACILITY #define configUSE_TRACE_FACILITY 0 #endif #ifndef mtCOVERAGE_TEST_MARKER #define mtCOVERAGE_TEST_MARKER() #endif #ifndef mtCOVERAGE_TEST_DELAY #define mtCOVERAGE_TEST_DELAY() #endif #ifndef portASSERT_IF_IN_ISR #define portASSERT_IF_IN_ISR() #endif #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 #endif #ifndef configAPPLICATION_ALLOCATED_HEAP #define configAPPLICATION_ALLOCATED_HEAP 0 #endif #ifndef configUSE_TASK_NOTIFICATIONS #define configUSE_TASK_NOTIFICATIONS 1 #endif #ifndef configUSE_POSIX_ERRNO #define configUSE_POSIX_ERRNO 0 #endif #ifndef portTICK_TYPE_IS_ATOMIC #define portTICK_TYPE_IS_ATOMIC 0 #endif #ifndef configSUPPORT_STATIC_ALLOCATION /* Defaults to 0 for backward compatibility. */ #define configSUPPORT_STATIC_ALLOCATION 0 #endif #ifndef configSUPPORT_DYNAMIC_ALLOCATION /* Defaults to 1 for backward compatibility. */ #define configSUPPORT_DYNAMIC_ALLOCATION 1 #endif #ifndef configSTACK_DEPTH_TYPE /* Defaults to uint16_t for backward compatibility, but can be overridden in FreeRTOSConfig.h if uint16_t is too restrictive. */ #define configSTACK_DEPTH_TYPE uint16_t #endif #ifndef configMESSAGE_BUFFER_LENGTH_TYPE /* Defaults to size_t for backward compatibility, but can be overridden in FreeRTOSConfig.h if lengths will always be less than the number of bytes in a size_t. */ #define configMESSAGE_BUFFER_LENGTH_TYPE size_t #endif /* Sanity check the configuration. */ #if( configUSE_TICKLESS_IDLE != 0 ) #if( INCLUDE_vTaskSuspend != 1 ) #error INCLUDE_vTaskSuspend must be set to 1 if configUSE_TICKLESS_IDLE is not set to 0 #endif /* INCLUDE_vTaskSuspend */ #endif /* configUSE_TICKLESS_IDLE */ #if( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) ) #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1. #endif #if( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) ) #error configUSE_MUTEXES must be set to 1 to use recursive mutexes #endif #ifndef configINITIAL_TICK_COUNT #define configINITIAL_TICK_COUNT 0 #endif #if( portTICK_TYPE_IS_ATOMIC == 0 ) /* Either variables of tick type cannot be read atomically, or portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when the tick count is returned to the standard critical section macros. */ #define portTICK_TYPE_ENTER_CRITICAL() portENTER_CRITICAL() #define portTICK_TYPE_EXIT_CRITICAL() portEXIT_CRITICAL() #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR() #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) ) #else /* The tick type can be read atomically, so critical sections used when the tick count is returned can be defined away. */ #define portTICK_TYPE_ENTER_CRITICAL() #define portTICK_TYPE_EXIT_CRITICAL() #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() 0 #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) ( void ) x #endif /* Definitions to allow backward compatibility with FreeRTOS versions prior to V8 if desired. */ #ifndef configENABLE_BACKWARD_COMPATIBILITY #define configENABLE_BACKWARD_COMPATIBILITY 1 #endif #ifndef configPRINTF /* configPRINTF() was not defined, so define it away to nothing. To use configPRINTF() then define it as follows (where MyPrintFunction() is provided by the application writer): void MyPrintFunction(const char *pcFormat, ... ); #define configPRINTF( X ) MyPrintFunction X Then call like a standard printf() function, but placing brackets around all parameters so they are passed as a single parameter. For example: configPRINTF( ("Value = %d", MyVariable) ); */ #define configPRINTF( X ) #endif #ifndef configMAX /* The application writer has not provided their own MAX macro, so define the following generic implementation. */ #define configMAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) #endif #ifndef configMIN /* The application writer has not provided their own MAX macro, so define the following generic implementation. */ #define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) #endif #if configENABLE_BACKWARD_COMPATIBILITY == 1 #define eTaskStateGet eTaskGetState #define portTickType TickType_t #define xTaskHandle TaskHandle_t #define xQueueHandle QueueHandle_t #define xSemaphoreHandle SemaphoreHandle_t #define xQueueSetHandle QueueSetHandle_t #define xQueueSetMemberHandle QueueSetMemberHandle_t #define xTimeOutType TimeOut_t #define xMemoryRegion MemoryRegion_t #define xTaskParameters TaskParameters_t #define xTaskStatusType TaskStatus_t #define xTimerHandle TimerHandle_t #define xCoRoutineHandle CoRoutineHandle_t #define pdTASK_HOOK_CODE TaskHookFunction_t #define portTICK_RATE_MS portTICK_PERIOD_MS #define pcTaskGetTaskName pcTaskGetName #define pcTimerGetTimerName pcTimerGetName #define pcQueueGetQueueName pcQueueGetName #define vTaskGetTaskInfo vTaskGetInfo #define xTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter /* Backward compatibility within the scheduler code only - these definitions are not really required but are included for completeness. */ #define tmrTIMER_CALLBACK TimerCallbackFunction_t #define pdTASK_CODE TaskFunction_t #define xListItem ListItem_t #define xList List_t /* For libraries that break the list data hiding, and access list structure members directly (which is not supposed to be done). */ #define pxContainer pvContainer #endif /* configENABLE_BACKWARD_COMPATIBILITY */ #if( configUSE_ALTERNATIVE_API != 0 ) #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0 #endif /* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even if floating point hardware is otherwise supported by the FreeRTOS port in use. This constant is not supported by all FreeRTOS ports that include floating point support. */ #ifndef configUSE_TASK_FPU_SUPPORT #define configUSE_TASK_FPU_SUPPORT 1 #endif /* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is currently used in ARMv8M ports. */ #ifndef configENABLE_MPU #define configENABLE_MPU 0 #endif /* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is currently used in ARMv8M ports. */ #ifndef configENABLE_FPU #define configENABLE_FPU 1 #endif /* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it. This is currently used in ARMv8M ports. */ #ifndef configENABLE_TRUSTZONE #define configENABLE_TRUSTZONE 1 #endif /* Set configRUN_FREERTOS_SECURE_ONLY to 1 to run the FreeRTOS ARMv8M port on the Secure Side only. */ #ifndef configRUN_FREERTOS_SECURE_ONLY #define configRUN_FREERTOS_SECURE_ONLY 0 #endif /* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using * dynamically allocated RAM, in which case when any task is deleted it is known * that both the task's stack and TCB need to be freed. Sometimes the * FreeRTOSConfig.h settings only allow a task to be created using statically * allocated RAM, in which case when any task is deleted it is known that neither * the task's stack or TCB should be freed. Sometimes the FreeRTOSConfig.h * settings allow a task to be created using either statically or dynamically * allocated RAM, in which case a member of the TCB is used to record whether the * stack and/or TCB were allocated statically or dynamically, so when a task is * deleted the RAM that was allocated dynamically is freed again and no attempt is * made to free the RAM that was allocated statically. * tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE is only true if it is possible for a * task to be created using either statically or dynamically allocated RAM. Note * that if portUSING_MPU_WRAPPERS is 1 then a protected task can be created with * a statically allocated stack and a dynamically allocated TCB. * * The following table lists various combinations of portUSING_MPU_WRAPPERS, * configSUPPORT_DYNAMIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION and * when it is possible to have both static and dynamic allocation: * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ * | MPU | Dynamic | Static | Available Functions | Possible Allocations | Both Dynamic and | Need Free | * | | | | | | Static Possible | | * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ * | 0 | 0 | 1 | xTaskCreateStatic | TCB - Static, Stack - Static | No | No | * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| * | 0 | 1 | 0 | xTaskCreate | TCB - Dynamic, Stack - Dynamic | No | Yes | * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| * | 0 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | * | | | | xTaskCreateStatic | 2. TCB - Static, Stack - Static | | | * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| * | 1 | 0 | 1 | xTaskCreateStatic, | TCB - Static, Stack - Static | No | No | * | | | | xTaskCreateRestrictedStatic | | | | * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| * | 1 | 1 | 0 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | * | | | | xTaskCreateRestricted | 2. TCB - Dynamic, Stack - Static | | | * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| * | 1 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | * | | | | xTaskCreateStatic, | 2. TCB - Dynamic, Stack - Static | | | * | | | | xTaskCreateRestricted, | 3. TCB - Static, Stack - Static | | | * | | | | xTaskCreateRestrictedStatic | | | | * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ */ #define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE ( ( ( portUSING_MPU_WRAPPERS == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) || \ ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) ) /* * In line with software engineering best practice, FreeRTOS implements a strict * data hiding policy, so the real structures used by FreeRTOS to maintain the * state of tasks, queues, semaphores, etc. are not accessible to the application * code. However, if the application writer wants to statically allocate such * an object then the size of the object needs to be know. Dummy structures * that are guaranteed to have the same size and alignment requirements of the * real objects are used for this purpose. The dummy list and list item * structures below are used for inclusion in such a dummy structure. */ struct xSTATIC_LIST_ITEM { #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) TickType_t xDummy1; #endif TickType_t xDummy2; void *pvDummy3[ 4 ]; #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) TickType_t xDummy4; #endif }; typedef struct xSTATIC_LIST_ITEM StaticListItem_t; /* See the comments above the struct xSTATIC_LIST_ITEM definition. */ struct xSTATIC_MINI_LIST_ITEM { #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) TickType_t xDummy1; #endif TickType_t xDummy2; void *pvDummy3[ 2 ]; }; typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t; /* See the comments above the struct xSTATIC_LIST_ITEM definition. */ typedef struct xSTATIC_LIST { #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) TickType_t xDummy1; #endif UBaseType_t uxDummy2; void *pvDummy3; StaticMiniListItem_t xDummy4; #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) TickType_t xDummy5; #endif } StaticList_t; /* * In line with software engineering best practice, especially when supplying a * library that is likely to change in future versions, FreeRTOS implements a * strict data hiding policy. This means the Task structure used internally by * FreeRTOS is not accessible to application code. However, if the application * writer wants to statically allocate the memory required to create a task then * the size of the task object needs to be know. The StaticTask_t structure * below is provided for this purpose. Its sizes and alignment requirements are * guaranteed to match those of the genuine structure, no matter which * architecture is being used, and no matter how the values in FreeRTOSConfig.h * are set. Its contents are somewhat obfuscated in the hope users will * recognise that it would be unwise to make direct use of the structure members. */ typedef struct xSTATIC_TCB { void *pxDummy1; #if ( portUSING_MPU_WRAPPERS == 1 ) xMPU_SETTINGS xDummy2; #endif StaticListItem_t xDummy3[ 2 ]; UBaseType_t uxDummy5; void *pxDummy6; uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ]; #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) ) void *pxDummy8; #endif #if ( portCRITICAL_NESTING_IN_TCB == 1 ) UBaseType_t uxDummy9; #endif #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxDummy10[ 2 ]; #endif #if ( configUSE_MUTEXES == 1 ) UBaseType_t uxDummy12[ 2 ]; #endif #if ( configUSE_APPLICATION_TASK_TAG == 1 ) void *pxDummy14; #endif #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) void *pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ]; #endif #if ( configGENERATE_RUN_TIME_STATS == 1 ) uint32_t ulDummy16; #endif #if ( configUSE_NEWLIB_REENTRANT == 1 ) struct _reent xDummy17; #endif #if ( configUSE_TASK_NOTIFICATIONS == 1 ) uint32_t ulDummy18; uint8_t ucDummy19; #endif #if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) uint8_t uxDummy20; #endif #if( INCLUDE_xTaskAbortDelay == 1 ) uint8_t ucDummy21; #endif #if ( configUSE_POSIX_ERRNO == 1 ) int iDummy22; #endif } StaticTask_t; /* * In line with software engineering best practice, especially when supplying a * library that is likely to change in future versions, FreeRTOS implements a * strict data hiding policy. This means the Queue structure used internally by * FreeRTOS is not accessible to application code. However, if the application * writer wants to statically allocate the memory required to create a queue * then the size of the queue object needs to be know. The StaticQueue_t * structure below is provided for this purpose. Its sizes and alignment * requirements are guaranteed to match those of the genuine structure, no * matter which architecture is being used, and no matter how the values in * FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in the hope * users will recognise that it would be unwise to make direct use of the * structure members. */ typedef struct xSTATIC_QUEUE { void *pvDummy1[ 3 ]; union { void *pvDummy2; UBaseType_t uxDummy2; } u; StaticList_t xDummy3[ 2 ]; UBaseType_t uxDummy4[ 3 ]; uint8_t ucDummy5[ 2 ]; #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) uint8_t ucDummy6; #endif #if ( configUSE_QUEUE_SETS == 1 ) void *pvDummy7; #endif #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxDummy8; uint8_t ucDummy9; #endif } StaticQueue_t; typedef StaticQueue_t StaticSemaphore_t; /* * In line with software engineering best practice, especially when supplying a * library that is likely to change in future versions, FreeRTOS implements a * strict data hiding policy. This means the event group structure used * internally by FreeRTOS is not accessible to application code. However, if * the application writer wants to statically allocate the memory required to * create an event group then the size of the event group object needs to be * know. The StaticEventGroup_t structure below is provided for this purpose. * Its sizes and alignment requirements are guaranteed to match those of the * genuine structure, no matter which architecture is being used, and no matter * how the values in FreeRTOSConfig.h are set. Its contents are somewhat * obfuscated in the hope users will recognise that it would be unwise to make * direct use of the structure members. */ typedef struct xSTATIC_EVENT_GROUP { TickType_t xDummy1; StaticList_t xDummy2; #if( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxDummy3; #endif #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) uint8_t ucDummy4; #endif } StaticEventGroup_t; /* * In line with software engineering best practice, especially when supplying a * library that is likely to change in future versions, FreeRTOS implements a * strict data hiding policy. This means the software timer structure used * internally by FreeRTOS is not accessible to application code. However, if * the application writer wants to statically allocate the memory required to * create a software timer then the size of the queue object needs to be know. * The StaticTimer_t structure below is provided for this purpose. Its sizes * and alignment requirements are guaranteed to match those of the genuine * structure, no matter which architecture is being used, and no matter how the * values in FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in * the hope users will recognise that it would be unwise to make direct use of * the structure members. */ typedef struct xSTATIC_TIMER { void *pvDummy1; StaticListItem_t xDummy2; TickType_t xDummy3; void *pvDummy5; TaskFunction_t pvDummy6; #if( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxDummy7; #endif uint8_t ucDummy8; } StaticTimer_t; /* * In line with software engineering best practice, especially when supplying a * library that is likely to change in future versions, FreeRTOS implements a * strict data hiding policy. This means the stream buffer structure used * internally by FreeRTOS is not accessible to application code. However, if * the application writer wants to statically allocate the memory required to * create a stream buffer then the size of the stream buffer object needs to be * know. The StaticStreamBuffer_t structure below is provided for this purpose. * Its size and alignment requirements are guaranteed to match those of the * genuine structure, no matter which architecture is being used, and no matter * how the values in FreeRTOSConfig.h are set. Its contents are somewhat * obfuscated in the hope users will recognise that it would be unwise to make * direct use of the structure members. */ typedef struct xSTATIC_STREAM_BUFFER { size_t uxDummy1[ 4 ]; void * pvDummy2[ 3 ]; uint8_t ucDummy3; #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxDummy4; #endif } StaticStreamBuffer_t; /* Message buffers are built on stream buffers. */ typedef StaticStreamBuffer_t StaticMessageBuffer_t; #ifdef __cplusplus } #endif #endif /* INC_FREERTOS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef STACK_MACROS_H #define STACK_MACROS_H #ifndef _MSC_VER /* Visual Studio doesn't support #warning. */ #warning The name of this file has changed to stack_macros.h. Please update your code accordingly. This source file (which has the original name) will be removed in future released. #endif /* * Call the stack overflow hook function if the stack of the task being swapped * out is currently overflowed, or looks like it might have overflowed in the * past. * * Setting configCHECK_FOR_STACK_OVERFLOW to 1 will cause the macro to check * the current stack state only - comparing the current top of stack value to * the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1 * will also cause the last few stack bytes to be checked to ensure the value * to which the bytes were set when the task was created have not been * overwritten. Note this second test does not guarantee that an overflowed * stack will always be recognised. */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) ) /* Only the current stack state is to be checked. */ #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH > 0 ) ) /* Only the current stack state is to be checked. */ #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack >= pxCurrentTCB->pxEndOfStack ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) ) #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \ const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \ \ if( ( pulStack[ 0 ] != ulCheckValue ) || \ ( pulStack[ 1 ] != ulCheckValue ) || \ ( pulStack[ 2 ] != ulCheckValue ) || \ ( pulStack[ 3 ] != ulCheckValue ) ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH > 0 ) ) #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ int8_t *pcEndOfStack = ( int8_t * ) pxCurrentTCB->pxEndOfStack; \ static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE }; \ \ \ pcEndOfStack -= sizeof( ucExpectedStackBytes ); \ \ /* Has the extremity of the task stack ever been written over? */ \ if( memcmp( ( void * ) pcEndOfStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ /*-----------------------------------------------------------*/ /* Remove stack overflow macro if not being used. */ #ifndef taskCHECK_FOR_STACK_OVERFLOW #define taskCHECK_FOR_STACK_OVERFLOW() #endif #endif /* STACK_MACROS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /** * @file atomic.h * @brief FreeRTOS atomic operation support. * * This file implements atomic functions by disabling interrupts globally. * Implementations with architecture specific atomic instructions can be * provided under each compiler directory. */ #ifndef ATOMIC_H #define ATOMIC_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include atomic.h" #endif /* Standard includes. */ #include #ifdef __cplusplus extern "C" { #endif /* * Port specific definitions -- entering/exiting critical section. * Refer template -- ./lib/FreeRTOS/portable/Compiler/Arch/portmacro.h * * Every call to ATOMIC_EXIT_CRITICAL() must be closely paired with * ATOMIC_ENTER_CRITICAL(). * */ #if defined( portSET_INTERRUPT_MASK_FROM_ISR ) /* Nested interrupt scheme is supported in this port. */ #define ATOMIC_ENTER_CRITICAL() \ UBaseType_t uxCriticalSectionType = portSET_INTERRUPT_MASK_FROM_ISR() #define ATOMIC_EXIT_CRITICAL() \ portCLEAR_INTERRUPT_MASK_FROM_ISR( uxCriticalSectionType ) #else /* Nested interrupt scheme is NOT supported in this port. */ #define ATOMIC_ENTER_CRITICAL() portENTER_CRITICAL() #define ATOMIC_EXIT_CRITICAL() portEXIT_CRITICAL() #endif /* portSET_INTERRUPT_MASK_FROM_ISR() */ /* * Port specific definition -- "always inline". * Inline is compiler specific, and may not always get inlined depending on your * optimization level. Also, inline is considered as performance optimization * for atomic. Thus, if portFORCE_INLINE is not provided by portmacro.h, * instead of resulting error, simply define it away. */ #ifndef portFORCE_INLINE #define portFORCE_INLINE #endif #define ATOMIC_COMPARE_AND_SWAP_SUCCESS 0x1U /**< Compare and swap succeeded, swapped. */ #define ATOMIC_COMPARE_AND_SWAP_FAILURE 0x0U /**< Compare and swap failed, did not swap. */ /*----------------------------- Swap && CAS ------------------------------*/ /** * Atomic compare-and-swap * * @brief Performs an atomic compare-and-swap operation on the specified values. * * @param[in, out] pulDestination Pointer to memory location from where value is * to be loaded and checked. * @param[in] ulExchange If condition meets, write this value to memory. * @param[in] ulComparand Swap condition. * * @return Unsigned integer of value 1 or 0. 1 for swapped, 0 for not swapped. * * @note This function only swaps *pulDestination with ulExchange, if previous * *pulDestination value equals ulComparand. */ static portFORCE_INLINE uint32_t Atomic_CompareAndSwap_u32( uint32_t volatile * pulDestination, uint32_t ulExchange, uint32_t ulComparand ) { uint32_t ulReturnValue; ATOMIC_ENTER_CRITICAL(); { if( *pulDestination == ulComparand ) { *pulDestination = ulExchange; ulReturnValue = ATOMIC_COMPARE_AND_SWAP_SUCCESS; } else { ulReturnValue = ATOMIC_COMPARE_AND_SWAP_FAILURE; } } ATOMIC_EXIT_CRITICAL(); return ulReturnValue; } /*-----------------------------------------------------------*/ /** * Atomic swap (pointers) * * @brief Atomically sets the address pointed to by *ppvDestination to the value * of *pvExchange. * * @param[in, out] ppvDestination Pointer to memory location from where a pointer * value is to be loaded and written back to. * @param[in] pvExchange Pointer value to be written to *ppvDestination. * * @return The initial value of *ppvDestination. */ static portFORCE_INLINE void * Atomic_SwapPointers_p32( void * volatile * ppvDestination, void * pvExchange ) { void * pReturnValue; ATOMIC_ENTER_CRITICAL(); { pReturnValue = *ppvDestination; *ppvDestination = pvExchange; } ATOMIC_EXIT_CRITICAL(); return pReturnValue; } /*-----------------------------------------------------------*/ /** * Atomic compare-and-swap (pointers) * * @brief Performs an atomic compare-and-swap operation on the specified pointer * values. * * @param[in, out] ppvDestination Pointer to memory location from where a pointer * value is to be loaded and checked. * @param[in] pvExchange If condition meets, write this value to memory. * @param[in] pvComparand Swap condition. * * @return Unsigned integer of value 1 or 0. 1 for swapped, 0 for not swapped. * * @note This function only swaps *ppvDestination with pvExchange, if previous * *ppvDestination value equals pvComparand. */ static portFORCE_INLINE uint32_t Atomic_CompareAndSwapPointers_p32( void * volatile * ppvDestination, void * pvExchange, void * pvComparand ) { uint32_t ulReturnValue = ATOMIC_COMPARE_AND_SWAP_FAILURE; ATOMIC_ENTER_CRITICAL(); { if( *ppvDestination == pvComparand ) { *ppvDestination = pvExchange; ulReturnValue = ATOMIC_COMPARE_AND_SWAP_SUCCESS; } } ATOMIC_EXIT_CRITICAL(); return ulReturnValue; } /*----------------------------- Arithmetic ------------------------------*/ /** * Atomic add * * @brief Atomically adds count to the value of the specified pointer points to. * * @param[in,out] pulAddend Pointer to memory location from where value is to be * loaded and written back to. * @param[in] ulCount Value to be added to *pulAddend. * * @return previous *pulAddend value. */ static portFORCE_INLINE uint32_t Atomic_Add_u32( uint32_t volatile * pulAddend, uint32_t ulCount ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulAddend; *pulAddend += ulCount; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic subtract * * @brief Atomically subtracts count from the value of the specified pointer * pointers to. * * @param[in,out] pulAddend Pointer to memory location from where value is to be * loaded and written back to. * @param[in] ulCount Value to be subtract from *pulAddend. * * @return previous *pulAddend value. */ static portFORCE_INLINE uint32_t Atomic_Subtract_u32( uint32_t volatile * pulAddend, uint32_t ulCount ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulAddend; *pulAddend -= ulCount; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic increment * * @brief Atomically increments the value of the specified pointer points to. * * @param[in,out] pulAddend Pointer to memory location from where value is to be * loaded and written back to. * * @return *pulAddend value before increment. */ static portFORCE_INLINE uint32_t Atomic_Increment_u32( uint32_t volatile * pulAddend ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulAddend; *pulAddend += 1; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic decrement * * @brief Atomically decrements the value of the specified pointer points to * * @param[in,out] pulAddend Pointer to memory location from where value is to be * loaded and written back to. * * @return *pulAddend value before decrement. */ static portFORCE_INLINE uint32_t Atomic_Decrement_u32( uint32_t volatile * pulAddend ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulAddend; *pulAddend -= 1; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*----------------------------- Bitwise Logical ------------------------------*/ /** * Atomic OR * * @brief Performs an atomic OR operation on the specified values. * * @param [in, out] pulDestination Pointer to memory location from where value is * to be loaded and written back to. * @param [in] ulValue Value to be ORed with *pulDestination. * * @return The original value of *pulDestination. */ static portFORCE_INLINE uint32_t Atomic_OR_u32( uint32_t volatile * pulDestination, uint32_t ulValue ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulDestination; *pulDestination |= ulValue; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic AND * * @brief Performs an atomic AND operation on the specified values. * * @param [in, out] pulDestination Pointer to memory location from where value is * to be loaded and written back to. * @param [in] ulValue Value to be ANDed with *pulDestination. * * @return The original value of *pulDestination. */ static portFORCE_INLINE uint32_t Atomic_AND_u32( uint32_t volatile * pulDestination, uint32_t ulValue ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulDestination; *pulDestination &= ulValue; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic NAND * * @brief Performs an atomic NAND operation on the specified values. * * @param [in, out] pulDestination Pointer to memory location from where value is * to be loaded and written back to. * @param [in] ulValue Value to be NANDed with *pulDestination. * * @return The original value of *pulDestination. */ static portFORCE_INLINE uint32_t Atomic_NAND_u32( uint32_t volatile * pulDestination, uint32_t ulValue ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulDestination; *pulDestination = ~( ulCurrent & ulValue ); } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } /*-----------------------------------------------------------*/ /** * Atomic XOR * * @brief Performs an atomic XOR operation on the specified values. * * @param [in, out] pulDestination Pointer to memory location from where value is * to be loaded and written back to. * @param [in] ulValue Value to be XORed with *pulDestination. * * @return The original value of *pulDestination. */ static portFORCE_INLINE uint32_t Atomic_XOR_u32( uint32_t volatile * pulDestination, uint32_t ulValue ) { uint32_t ulCurrent; ATOMIC_ENTER_CRITICAL(); { ulCurrent = *pulDestination; *pulDestination ^= ulValue; } ATOMIC_EXIT_CRITICAL(); return ulCurrent; } #ifdef __cplusplus } #endif #endif /* ATOMIC_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef CO_ROUTINE_H #define CO_ROUTINE_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include croutine.h" #endif #include "list.h" #ifdef __cplusplus extern "C" { #endif /* Used to hide the implementation of the co-routine control block. The control block structure however has to be included in the header due to the macro implementation of the co-routine functionality. */ typedef void * CoRoutineHandle_t; /* Defines the prototype to which co-routine functions must conform. */ typedef void (*crCOROUTINE_CODE)( CoRoutineHandle_t, UBaseType_t ); typedef struct corCoRoutineControlBlock { crCOROUTINE_CODE pxCoRoutineFunction; ListItem_t xGenericListItem; /*< List item used to place the CRCB in ready and blocked queues. */ ListItem_t xEventListItem; /*< List item used to place the CRCB in event lists. */ UBaseType_t uxPriority; /*< The priority of the co-routine in relation to other co-routines. */ UBaseType_t uxIndex; /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */ uint16_t uxState; /*< Used internally by the co-routine implementation. */ } CRCB_t; /* Co-routine control block. Note must be identical in size down to uxPriority with TCB_t. */ /** * croutine. h *
 BaseType_t xCoRoutineCreate(
                                 crCOROUTINE_CODE pxCoRoutineCode,
                                 UBaseType_t uxPriority,
                                 UBaseType_t uxIndex
                               );
* * Create a new co-routine and add it to the list of co-routines that are * ready to run. * * @param pxCoRoutineCode Pointer to the co-routine function. Co-routine * functions require special syntax - see the co-routine section of the WEB * documentation for more information. * * @param uxPriority The priority with respect to other co-routines at which * the co-routine will run. * * @param uxIndex Used to distinguish between different co-routines that * execute the same function. See the example below and the co-routine section * of the WEB documentation for further information. * * @return pdPASS if the co-routine was successfully created and added to a ready * list, otherwise an error code defined with ProjDefs.h. * * Example usage:
 // Co-routine to be created.
 void vFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 // This may not be necessary for const variables.
 static const char cLedToFlash[ 2 ] = { 5, 6 };
 static const TickType_t uxFlashRates[ 2 ] = { 200, 400 };

     // Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
         // This co-routine just delays for a fixed period, then toggles
         // an LED.  Two co-routines are created using this function, so
         // the uxIndex parameter is used to tell the co-routine which
         // LED to flash and how int32_t to delay.  This assumes xQueue has
         // already been created.
         vParTestToggleLED( cLedToFlash[ uxIndex ] );
         crDELAY( xHandle, uxFlashRates[ uxIndex ] );
     }

     // Must end every co-routine with a call to crEND();
     crEND();
 }

 // Function that creates two co-routines.
 void vOtherFunction( void )
 {
 uint8_t ucParameterToPass;
 TaskHandle_t xHandle;

     // Create two co-routines at priority 0.  The first is given index 0
     // so (from the code above) toggles LED 5 every 200 ticks.  The second
     // is given index 1 so toggles LED 6 every 400 ticks.
     for( uxIndex = 0; uxIndex < 2; uxIndex++ )
     {
         xCoRoutineCreate( vFlashCoRoutine, 0, uxIndex );
     }
 }
   
* \defgroup xCoRoutineCreate xCoRoutineCreate * \ingroup Tasks */ BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex ); /** * croutine. h *
 void vCoRoutineSchedule( void );
* * Run a co-routine. * * vCoRoutineSchedule() executes the highest priority co-routine that is able * to run. The co-routine will execute until it either blocks, yields or is * preempted by a task. Co-routines execute cooperatively so one * co-routine cannot be preempted by another, but can be preempted by a task. * * If an application comprises of both tasks and co-routines then * vCoRoutineSchedule should be called from the idle task (in an idle task * hook). * * Example usage:
 // This idle task hook will schedule a co-routine each time it is called.
 // The rest of the idle task will execute between co-routine calls.
 void vApplicationIdleHook( void )
 {
	vCoRoutineSchedule();
 }

 // Alternatively, if you do not require any other part of the idle task to
 // execute, the idle task hook can call vCoRoutineSchedule() within an
 // infinite loop.
 void vApplicationIdleHook( void )
 {
    for( ;; )
    {
        vCoRoutineSchedule();
    }
 }
 
* \defgroup vCoRoutineSchedule vCoRoutineSchedule * \ingroup Tasks */ void vCoRoutineSchedule( void ); /** * croutine. h *
 crSTART( CoRoutineHandle_t xHandle );
* * This macro MUST always be called at the start of a co-routine function. * * Example usage:
 // Co-routine to be created.
 void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static int32_t ulAVariable;

     // Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
          // Co-routine functionality goes here.
     }

     // Must end every co-routine with a call to crEND();
     crEND();
 }
* \defgroup crSTART crSTART * \ingroup Tasks */ #define crSTART( pxCRCB ) switch( ( ( CRCB_t * )( pxCRCB ) )->uxState ) { case 0: /** * croutine. h *
 crEND();
* * This macro MUST always be called at the end of a co-routine function. * * Example usage:
 // Co-routine to be created.
 void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static int32_t ulAVariable;

     // Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
          // Co-routine functionality goes here.
     }

     // Must end every co-routine with a call to crEND();
     crEND();
 }
* \defgroup crSTART crSTART * \ingroup Tasks */ #define crEND() } /* * These macros are intended for internal use by the co-routine implementation * only. The macros should not be used directly by application writers. */ #define crSET_STATE0( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = (__LINE__ * 2); return; case (__LINE__ * 2): #define crSET_STATE1( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = ((__LINE__ * 2)+1); return; case ((__LINE__ * 2)+1): /** * croutine. h *
 crDELAY( CoRoutineHandle_t xHandle, TickType_t xTicksToDelay );
* * Delay a co-routine for a fixed period of time. * * crDELAY can only be called from the co-routine function itself - not * from within a function called by the co-routine function. This is because * co-routines do not maintain their own stack. * * @param xHandle The handle of the co-routine to delay. This is the xHandle * parameter of the co-routine function. * * @param xTickToDelay The number of ticks that the co-routine should delay * for. The actual amount of time this equates to is defined by * configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant portTICK_PERIOD_MS * can be used to convert ticks to milliseconds. * * Example usage:
 // Co-routine to be created.
 void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 // This may not be necessary for const variables.
 // We are to delay for 200ms.
 static const xTickType xDelayTime = 200 / portTICK_PERIOD_MS;

     // Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
        // Delay for 200ms.
        crDELAY( xHandle, xDelayTime );

        // Do something here.
     }

     // Must end every co-routine with a call to crEND();
     crEND();
 }
* \defgroup crDELAY crDELAY * \ingroup Tasks */ #define crDELAY( xHandle, xTicksToDelay ) \ if( ( xTicksToDelay ) > 0 ) \ { \ vCoRoutineAddToDelayedList( ( xTicksToDelay ), NULL ); \ } \ crSET_STATE0( ( xHandle ) ); /** *
 crQUEUE_SEND(
                  CoRoutineHandle_t xHandle,
                  QueueHandle_t pxQueue,
                  void *pvItemToQueue,
                  TickType_t xTicksToWait,
                  BaseType_t *pxResult
             )
* * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine * equivalent to the xQueueSend() and xQueueReceive() functions used by tasks. * * crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas * xQueueSend() and xQueueReceive() can only be used from tasks. * * crQUEUE_SEND can only be called from the co-routine function itself - not * from within a function called by the co-routine function. This is because * co-routines do not maintain their own stack. * * See the co-routine section of the WEB documentation for information on * passing data between tasks and co-routines and between ISR's and * co-routines. * * @param xHandle The handle of the calling co-routine. This is the xHandle * parameter of the co-routine function. * * @param pxQueue The handle of the queue on which the data will be posted. * The handle is obtained as the return value when the queue is created using * the xQueueCreate() API function. * * @param pvItemToQueue A pointer to the data being posted onto the queue. * The number of bytes of each queued item is specified when the queue is * created. This number of bytes is copied from pvItemToQueue into the queue * itself. * * @param xTickToDelay The number of ticks that the co-routine should block * to wait for space to become available on the queue, should space not be * available immediately. The actual amount of time this equates to is defined * by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see example * below). * * @param pxResult The variable pointed to by pxResult will be set to pdPASS if * data was successfully posted onto the queue, otherwise it will be set to an * error defined within ProjDefs.h. * * Example usage:
 // Co-routine function that blocks for a fixed period then posts a number onto
 // a queue.
 static void prvCoRoutineFlashTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static BaseType_t xNumberToPost = 0;
 static BaseType_t xResult;

    // Co-routines must begin with a call to crSTART().
    crSTART( xHandle );

    for( ;; )
    {
        // This assumes the queue has already been created.
        crQUEUE_SEND( xHandle, xCoRoutineQueue, &xNumberToPost, NO_DELAY, &xResult );

        if( xResult != pdPASS )
        {
            // The message was not posted!
        }

        // Increment the number to be posted onto the queue.
        xNumberToPost++;

        // Delay for 100 ticks.
        crDELAY( xHandle, 100 );
    }

    // Co-routines must end with a call to crEND().
    crEND();
 }
* \defgroup crQUEUE_SEND crQUEUE_SEND * \ingroup Tasks */ #define crQUEUE_SEND( xHandle, pxQueue, pvItemToQueue, xTicksToWait, pxResult ) \ { \ *( pxResult ) = xQueueCRSend( ( pxQueue) , ( pvItemToQueue) , ( xTicksToWait ) ); \ if( *( pxResult ) == errQUEUE_BLOCKED ) \ { \ crSET_STATE0( ( xHandle ) ); \ *pxResult = xQueueCRSend( ( pxQueue ), ( pvItemToQueue ), 0 ); \ } \ if( *pxResult == errQUEUE_YIELD ) \ { \ crSET_STATE1( ( xHandle ) ); \ *pxResult = pdPASS; \ } \ } /** * croutine. h *
  crQUEUE_RECEIVE(
                     CoRoutineHandle_t xHandle,
                     QueueHandle_t pxQueue,
                     void *pvBuffer,
                     TickType_t xTicksToWait,
                     BaseType_t *pxResult
                 )
* * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine * equivalent to the xQueueSend() and xQueueReceive() functions used by tasks. * * crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas * xQueueSend() and xQueueReceive() can only be used from tasks. * * crQUEUE_RECEIVE can only be called from the co-routine function itself - not * from within a function called by the co-routine function. This is because * co-routines do not maintain their own stack. * * See the co-routine section of the WEB documentation for information on * passing data between tasks and co-routines and between ISR's and * co-routines. * * @param xHandle The handle of the calling co-routine. This is the xHandle * parameter of the co-routine function. * * @param pxQueue The handle of the queue from which the data will be received. * The handle is obtained as the return value when the queue is created using * the xQueueCreate() API function. * * @param pvBuffer The buffer into which the received item is to be copied. * The number of bytes of each queued item is specified when the queue is * created. This number of bytes is copied into pvBuffer. * * @param xTickToDelay The number of ticks that the co-routine should block * to wait for data to become available from the queue, should data not be * available immediately. The actual amount of time this equates to is defined * by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see the * crQUEUE_SEND example). * * @param pxResult The variable pointed to by pxResult will be set to pdPASS if * data was successfully retrieved from the queue, otherwise it will be set to * an error code as defined within ProjDefs.h. * * Example usage:
 // A co-routine receives the number of an LED to flash from a queue.  It
 // blocks on the queue until the number is received.
 static void prvCoRoutineFlashWorkTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static BaseType_t xResult;
 static UBaseType_t uxLEDToFlash;

    // All co-routines must start with a call to crSTART().
    crSTART( xHandle );

    for( ;; )
    {
        // Wait for data to become available on the queue.
        crQUEUE_RECEIVE( xHandle, xCoRoutineQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );

        if( xResult == pdPASS )
        {
            // We received the LED to flash - flash it!
            vParTestToggleLED( uxLEDToFlash );
        }
    }

    crEND();
 }
* \defgroup crQUEUE_RECEIVE crQUEUE_RECEIVE * \ingroup Tasks */ #define crQUEUE_RECEIVE( xHandle, pxQueue, pvBuffer, xTicksToWait, pxResult ) \ { \ *( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), ( xTicksToWait ) ); \ if( *( pxResult ) == errQUEUE_BLOCKED ) \ { \ crSET_STATE0( ( xHandle ) ); \ *( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), 0 ); \ } \ if( *( pxResult ) == errQUEUE_YIELD ) \ { \ crSET_STATE1( ( xHandle ) ); \ *( pxResult ) = pdPASS; \ } \ } /** * croutine. h *
  crQUEUE_SEND_FROM_ISR(
                            QueueHandle_t pxQueue,
                            void *pvItemToQueue,
                            BaseType_t xCoRoutinePreviouslyWoken
                       )
* * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the * co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR() * functions used by tasks. * * crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to * pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and * xQueueReceiveFromISR() can only be used to pass data between a task and and * ISR. * * crQUEUE_SEND_FROM_ISR can only be called from an ISR to send data to a queue * that is being used from within a co-routine. * * See the co-routine section of the WEB documentation for information on * passing data between tasks and co-routines and between ISR's and * co-routines. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param xCoRoutinePreviouslyWoken This is included so an ISR can post onto * the same queue multiple times from a single interrupt. The first call * should always pass in pdFALSE. Subsequent calls should pass in * the value returned from the previous call. * * @return pdTRUE if a co-routine was woken by posting onto the queue. This is * used by the ISR to determine if a context switch may be required following * the ISR. * * Example usage:
 // A co-routine that blocks on a queue waiting for characters to be received.
 static void vReceivingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 char cRxedChar;
 BaseType_t xResult;

     // All co-routines must start with a call to crSTART().
     crSTART( xHandle );

     for( ;; )
     {
         // Wait for data to become available on the queue.  This assumes the
         // queue xCommsRxQueue has already been created!
         crQUEUE_RECEIVE( xHandle, xCommsRxQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );

         // Was a character received?
         if( xResult == pdPASS )
         {
             // Process the character here.
         }
     }

     // All co-routines must end with a call to crEND().
     crEND();
 }

 // An ISR that uses a queue to send characters received on a serial port to
 // a co-routine.
 void vUART_ISR( void )
 {
 char cRxedChar;
 BaseType_t xCRWokenByPost = pdFALSE;

     // We loop around reading characters until there are none left in the UART.
     while( UART_RX_REG_NOT_EMPTY() )
     {
         // Obtain the character from the UART.
         cRxedChar = UART_RX_REG;

         // Post the character onto a queue.  xCRWokenByPost will be pdFALSE
         // the first time around the loop.  If the post causes a co-routine
         // to be woken (unblocked) then xCRWokenByPost will be set to pdTRUE.
         // In this manner we can ensure that if more than one co-routine is
         // blocked on the queue only one is woken by this ISR no matter how
         // many characters are posted to the queue.
         xCRWokenByPost = crQUEUE_SEND_FROM_ISR( xCommsRxQueue, &cRxedChar, xCRWokenByPost );
     }
 }
* \defgroup crQUEUE_SEND_FROM_ISR crQUEUE_SEND_FROM_ISR * \ingroup Tasks */ #define crQUEUE_SEND_FROM_ISR( pxQueue, pvItemToQueue, xCoRoutinePreviouslyWoken ) xQueueCRSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( xCoRoutinePreviouslyWoken ) ) /** * croutine. h *
  crQUEUE_SEND_FROM_ISR(
                            QueueHandle_t pxQueue,
                            void *pvBuffer,
                            BaseType_t * pxCoRoutineWoken
                       )
* * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the * co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR() * functions used by tasks. * * crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to * pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and * xQueueReceiveFromISR() can only be used to pass data between a task and and * ISR. * * crQUEUE_RECEIVE_FROM_ISR can only be called from an ISR to receive data * from a queue that is being used from within a co-routine (a co-routine * posted to the queue). * * See the co-routine section of the WEB documentation for information on * passing data between tasks and co-routines and between ISR's and * co-routines. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvBuffer A pointer to a buffer into which the received item will be * placed. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from the queue into * pvBuffer. * * @param pxCoRoutineWoken A co-routine may be blocked waiting for space to become * available on the queue. If crQUEUE_RECEIVE_FROM_ISR causes such a * co-routine to unblock *pxCoRoutineWoken will get set to pdTRUE, otherwise * *pxCoRoutineWoken will remain unchanged. * * @return pdTRUE an item was successfully received from the queue, otherwise * pdFALSE. * * Example usage:
 // A co-routine that posts a character to a queue then blocks for a fixed
 // period.  The character is incremented each time.
 static void vSendingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
 {
 // cChar holds its value while this co-routine is blocked and must therefore
 // be declared static.
 static char cCharToTx = 'a';
 BaseType_t xResult;

     // All co-routines must start with a call to crSTART().
     crSTART( xHandle );

     for( ;; )
     {
         // Send the next character to the queue.
         crQUEUE_SEND( xHandle, xCoRoutineQueue, &cCharToTx, NO_DELAY, &xResult );

         if( xResult == pdPASS )
         {
             // The character was successfully posted to the queue.
         }
		 else
		 {
			// Could not post the character to the queue.
		 }

         // Enable the UART Tx interrupt to cause an interrupt in this
		 // hypothetical UART.  The interrupt will obtain the character
		 // from the queue and send it.
		 ENABLE_RX_INTERRUPT();

		 // Increment to the next character then block for a fixed period.
		 // cCharToTx will maintain its value across the delay as it is
		 // declared static.
		 cCharToTx++;
		 if( cCharToTx > 'x' )
		 {
			cCharToTx = 'a';
		 }
		 crDELAY( 100 );
     }

     // All co-routines must end with a call to crEND().
     crEND();
 }

 // An ISR that uses a queue to receive characters to send on a UART.
 void vUART_ISR( void )
 {
 char cCharToTx;
 BaseType_t xCRWokenByPost = pdFALSE;

     while( UART_TX_REG_EMPTY() )
     {
         // Are there any characters in the queue waiting to be sent?
		 // xCRWokenByPost will automatically be set to pdTRUE if a co-routine
		 // is woken by the post - ensuring that only a single co-routine is
		 // woken no matter how many times we go around this loop.
         if( crQUEUE_RECEIVE_FROM_ISR( pxQueue, &cCharToTx, &xCRWokenByPost ) )
		 {
			 SEND_CHARACTER( cCharToTx );
		 }
     }
 }
* \defgroup crQUEUE_RECEIVE_FROM_ISR crQUEUE_RECEIVE_FROM_ISR * \ingroup Tasks */ #define crQUEUE_RECEIVE_FROM_ISR( pxQueue, pvBuffer, pxCoRoutineWoken ) xQueueCRReceiveFromISR( ( pxQueue ), ( pvBuffer ), ( pxCoRoutineWoken ) ) /* * This function is intended for internal use by the co-routine macros only. * The macro nature of the co-routine implementation requires that the * prototype appears here. The function should not be used by application * writers. * * Removes the current co-routine from its ready list and places it in the * appropriate delayed list. */ void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList ); /* * This function is intended for internal use by the queue implementation only. * The function should not be used by application writers. * * Removes the highest priority co-routine from the event list and places it in * the pending ready list. */ BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList ); #ifdef __cplusplus } #endif #endif /* CO_ROUTINE_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef DEPRECATED_DEFINITIONS_H #define DEPRECATED_DEFINITIONS_H /* Each FreeRTOS port has a unique portmacro.h header file. Originally a pre-processor definition was used to ensure the pre-processor found the correct portmacro.h file for the port being used. That scheme was deprecated in favour of setting the compiler's include path such that it found the correct portmacro.h file - removing the need for the constant and allowing the portmacro.h file to be located anywhere in relation to the port being used. The definitions below remain in the code for backward compatibility only. New projects should not use them. */ #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT #include "..\..\Source\portable\owatcom\16bitdos\pc\portmacro.h" typedef void ( __interrupt __far *pxISR )(); #endif #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT #include "..\..\Source\portable\owatcom\16bitdos\flsh186\portmacro.h" typedef void ( __interrupt __far *pxISR )(); #endif #ifdef GCC_MEGA_AVR #include "../portable/GCC/ATMega323/portmacro.h" #endif #ifdef IAR_MEGA_AVR #include "../portable/IAR/ATMega323/portmacro.h" #endif #ifdef MPLAB_PIC24_PORT #include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h" #endif #ifdef MPLAB_DSPIC_PORT #include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h" #endif #ifdef MPLAB_PIC18F_PORT #include "../../Source/portable/MPLAB/PIC18F/portmacro.h" #endif #ifdef MPLAB_PIC32MX_PORT #include "../../Source/portable/MPLAB/PIC32MX/portmacro.h" #endif #ifdef _FEDPICC #include "libFreeRTOS/Include/portmacro.h" #endif #ifdef SDCC_CYGNAL #include "../../Source/portable/SDCC/Cygnal/portmacro.h" #endif #ifdef GCC_ARM7 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h" #endif #ifdef GCC_ARM7_ECLIPSE #include "portmacro.h" #endif #ifdef ROWLEY_LPC23xx #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h" #endif #ifdef IAR_MSP430 #include "..\..\Source\portable\IAR\MSP430\portmacro.h" #endif #ifdef GCC_MSP430 #include "../../Source/portable/GCC/MSP430F449/portmacro.h" #endif #ifdef ROWLEY_MSP430 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h" #endif #ifdef ARM7_LPC21xx_KEIL_RVDS #include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h" #endif #ifdef SAM7_GCC #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h" #endif #ifdef SAM7_IAR #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h" #endif #ifdef SAM9XE_IAR #include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h" #endif #ifdef LPC2000_IAR #include "..\..\Source\portable\IAR\LPC2000\portmacro.h" #endif #ifdef STR71X_IAR #include "..\..\Source\portable\IAR\STR71x\portmacro.h" #endif #ifdef STR75X_IAR #include "..\..\Source\portable\IAR\STR75x\portmacro.h" #endif #ifdef STR75X_GCC #include "..\..\Source\portable\GCC\STR75x\portmacro.h" #endif #ifdef STR91X_IAR #include "..\..\Source\portable\IAR\STR91x\portmacro.h" #endif #ifdef GCC_H8S #include "../../Source/portable/GCC/H8S2329/portmacro.h" #endif #ifdef GCC_AT91FR40008 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h" #endif #ifdef RVDS_ARMCM3_LM3S102 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h" #endif #ifdef GCC_ARMCM3_LM3S102 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h" #endif #ifdef GCC_ARMCM3 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h" #endif #ifdef IAR_ARM_CM3 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h" #endif #ifdef IAR_ARMCM3_LM #include "../../Source/portable/IAR/ARM_CM3/portmacro.h" #endif #ifdef HCS12_CODE_WARRIOR #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h" #endif #ifdef MICROBLAZE_GCC #include "../../Source/portable/GCC/MicroBlaze/portmacro.h" #endif #ifdef TERN_EE #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h" #endif #ifdef GCC_HCS12 #include "../../Source/portable/GCC/HCS12/portmacro.h" #endif #ifdef GCC_MCF5235 #include "../../Source/portable/GCC/MCF5235/portmacro.h" #endif #ifdef COLDFIRE_V2_GCC #include "../../../Source/portable/GCC/ColdFire_V2/portmacro.h" #endif #ifdef COLDFIRE_V2_CODEWARRIOR #include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h" #endif #ifdef GCC_PPC405 #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h" #endif #ifdef GCC_PPC440 #include "../../Source/portable/GCC/PPC440_Xilinx/portmacro.h" #endif #ifdef _16FX_SOFTUNE #include "..\..\Source\portable\Softune\MB96340\portmacro.h" #endif #ifdef BCC_INDUSTRIAL_PC_PORT /* A short file name has to be used in place of the normal FreeRTOSConfig.h when using the Borland compiler. */ #include "frconfig.h" #include "..\portable\BCC\16BitDOS\PC\prtmacro.h" typedef void ( __interrupt __far *pxISR )(); #endif #ifdef BCC_FLASH_LITE_186_PORT /* A short file name has to be used in place of the normal FreeRTOSConfig.h when using the Borland compiler. */ #include "frconfig.h" #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h" typedef void ( __interrupt __far *pxISR )(); #endif #ifdef __GNUC__ #ifdef __AVR32_AVR32A__ #include "portmacro.h" #endif #endif #ifdef __ICCAVR32__ #ifdef __CORE__ #if __CORE__ == __AVR32A__ #include "portmacro.h" #endif #endif #endif #ifdef __91467D #include "portmacro.h" #endif #ifdef __96340 #include "portmacro.h" #endif #ifdef __IAR_V850ES_Fx3__ #include "../../Source/portable/IAR/V850ES/portmacro.h" #endif #ifdef __IAR_V850ES_Jx3__ #include "../../Source/portable/IAR/V850ES/portmacro.h" #endif #ifdef __IAR_V850ES_Jx3_L__ #include "../../Source/portable/IAR/V850ES/portmacro.h" #endif #ifdef __IAR_V850ES_Jx2__ #include "../../Source/portable/IAR/V850ES/portmacro.h" #endif #ifdef __IAR_V850ES_Hx2__ #include "../../Source/portable/IAR/V850ES/portmacro.h" #endif #ifdef __IAR_78K0R_Kx3__ #include "../../Source/portable/IAR/78K0R/portmacro.h" #endif #ifdef __IAR_78K0R_Kx3L__ #include "../../Source/portable/IAR/78K0R/portmacro.h" #endif #endif /* DEPRECATED_DEFINITIONS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef EVENT_GROUPS_H #define EVENT_GROUPS_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h" must appear in source files before "include event_groups.h" #endif /* FreeRTOS includes. */ #include "timers.h" #ifdef __cplusplus extern "C" { #endif /** * An event group is a collection of bits to which an application can assign a * meaning. For example, an application may create an event group to convey * the status of various CAN bus related events in which bit 0 might mean "A CAN * message has been received and is ready for processing", bit 1 might mean "The * application has queued a message that is ready for sending onto the CAN * network", and bit 2 might mean "It is time to send a SYNC message onto the * CAN network" etc. A task can then test the bit values to see which events * are active, and optionally enter the Blocked state to wait for a specified * bit or a group of specified bits to be active. To continue the CAN bus * example, a CAN controlling task can enter the Blocked state (and therefore * not consume any processing time) until either bit 0, bit 1 or bit 2 are * active, at which time the bit that was actually active would inform the task * which action it had to take (process a received message, send a message, or * send a SYNC). * * The event groups implementation contains intelligence to avoid race * conditions that would otherwise occur were an application to use a simple * variable for the same purpose. This is particularly important with respect * to when a bit within an event group is to be cleared, and when bits have to * be set and then tested atomically - as is the case where event groups are * used to create a synchronisation point between multiple tasks (a * 'rendezvous'). * * \defgroup EventGroup */ /** * event_groups.h * * Type by which event groups are referenced. For example, a call to * xEventGroupCreate() returns an EventGroupHandle_t variable that can then * be used as a parameter to other event group functions. * * \defgroup EventGroupHandle_t EventGroupHandle_t * \ingroup EventGroup */ struct EventGroupDef_t; typedef struct EventGroupDef_t * EventGroupHandle_t; /* * The type that holds event bits always matches TickType_t - therefore the * number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1, * 32 bits if set to 0. * * \defgroup EventBits_t EventBits_t * \ingroup EventGroup */ typedef TickType_t EventBits_t; /** * event_groups.h *
 EventGroupHandle_t xEventGroupCreate( void );
 
* * Create a new event group. * * Internally, within the FreeRTOS implementation, event groups use a [small] * block of memory, in which the event group's structure is stored. If an event * groups is created using xEventGropuCreate() then the required memory is * automatically dynamically allocated inside the xEventGroupCreate() function. * (see http://www.freertos.org/a00111.html). If an event group is created * using xEventGropuCreateStatic() then the application writer must instead * provide the memory that will get used by the event group. * xEventGroupCreateStatic() therefore allows an event group to be created * without using any dynamic memory allocation. * * Although event groups are not related to ticks, for internal implementation * reasons the number of bits available for use in an event group is dependent * on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If * configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit * 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has * 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store * event bits within an event group. * * @return If the event group was created then a handle to the event group is * returned. If there was insufficient FreeRTOS heap available to create the * event group then NULL is returned. See http://www.freertos.org/a00111.html * * Example usage:
	// Declare a variable to hold the created event group.
	EventGroupHandle_t xCreatedEventGroup;

	// Attempt to create the event group.
	xCreatedEventGroup = xEventGroupCreate();

	// Was the event group created successfully?
	if( xCreatedEventGroup == NULL )
	{
		// The event group was not created because there was insufficient
		// FreeRTOS heap available.
	}
	else
	{
		// The event group was created.
	}
   
* \defgroup xEventGroupCreate xEventGroupCreate * \ingroup EventGroup */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) EventGroupHandle_t xEventGroupCreate( void ) PRIVILEGED_FUNCTION; #endif /** * event_groups.h *
 EventGroupHandle_t xEventGroupCreateStatic( EventGroupHandle_t * pxEventGroupBuffer );
 
* * Create a new event group. * * Internally, within the FreeRTOS implementation, event groups use a [small] * block of memory, in which the event group's structure is stored. If an event * groups is created using xEventGropuCreate() then the required memory is * automatically dynamically allocated inside the xEventGroupCreate() function. * (see http://www.freertos.org/a00111.html). If an event group is created * using xEventGropuCreateStatic() then the application writer must instead * provide the memory that will get used by the event group. * xEventGroupCreateStatic() therefore allows an event group to be created * without using any dynamic memory allocation. * * Although event groups are not related to ticks, for internal implementation * reasons the number of bits available for use in an event group is dependent * on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If * configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit * 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has * 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store * event bits within an event group. * * @param pxEventGroupBuffer pxEventGroupBuffer must point to a variable of type * StaticEventGroup_t, which will be then be used to hold the event group's data * structures, removing the need for the memory to be allocated dynamically. * * @return If the event group was created then a handle to the event group is * returned. If pxEventGroupBuffer was NULL then NULL is returned. * * Example usage:
	// StaticEventGroup_t is a publicly accessible structure that has the same
	// size and alignment requirements as the real event group structure.  It is
	// provided as a mechanism for applications to know the size of the event
	// group (which is dependent on the architecture and configuration file
	// settings) without breaking the strict data hiding policy by exposing the
	// real event group internals.  This StaticEventGroup_t variable is passed
	// into the xSemaphoreCreateEventGroupStatic() function and is used to store
	// the event group's data structures
	StaticEventGroup_t xEventGroupBuffer;

	// Create the event group without dynamically allocating any memory.
	xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
   
*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) PRIVILEGED_FUNCTION; #endif /** * event_groups.h *
	EventBits_t xEventGroupWaitBits( 	EventGroupHandle_t xEventGroup,
										const EventBits_t uxBitsToWaitFor,
										const BaseType_t xClearOnExit,
										const BaseType_t xWaitForAllBits,
										const TickType_t xTicksToWait );
 
* * [Potentially] block to wait for one or more bits to be set within a * previously created event group. * * This function cannot be called from an interrupt. * * @param xEventGroup The event group in which the bits are being tested. The * event group must have previously been created using a call to * xEventGroupCreate(). * * @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test * inside the event group. For example, to wait for bit 0 and/or bit 2 set * uxBitsToWaitFor to 0x05. To wait for bits 0 and/or bit 1 and/or bit 2 set * uxBitsToWaitFor to 0x07. Etc. * * @param xClearOnExit If xClearOnExit is set to pdTRUE then any bits within * uxBitsToWaitFor that are set within the event group will be cleared before * xEventGroupWaitBits() returns if the wait condition was met (if the function * returns for a reason other than a timeout). If xClearOnExit is set to * pdFALSE then the bits set in the event group are not altered when the call to * xEventGroupWaitBits() returns. * * @param xWaitForAllBits If xWaitForAllBits is set to pdTRUE then * xEventGroupWaitBits() will return when either all the bits in uxBitsToWaitFor * are set or the specified block time expires. If xWaitForAllBits is set to * pdFALSE then xEventGroupWaitBits() will return when any one of the bits set * in uxBitsToWaitFor is set or the specified block time expires. The block * time is specified by the xTicksToWait parameter. * * @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait * for one/all (depending on the xWaitForAllBits value) of the bits specified by * uxBitsToWaitFor to become set. * * @return The value of the event group at the time either the bits being waited * for became set, or the block time expired. Test the return value to know * which bits were set. If xEventGroupWaitBits() returned because its timeout * expired then not all the bits being waited for will be set. If * xEventGroupWaitBits() returned because the bits it was waiting for were set * then the returned value is the event group value before any bits were * automatically cleared in the case that xClearOnExit parameter was set to * pdTRUE. * * Example usage:
   #define BIT_0	( 1 << 0 )
   #define BIT_4	( 1 << 4 )

   void aFunction( EventGroupHandle_t xEventGroup )
   {
   EventBits_t uxBits;
   const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;

		// Wait a maximum of 100ms for either bit 0 or bit 4 to be set within
		// the event group.  Clear the bits before exiting.
		uxBits = xEventGroupWaitBits(
					xEventGroup,	// The event group being tested.
					BIT_0 | BIT_4,	// The bits within the event group to wait for.
					pdTRUE,			// BIT_0 and BIT_4 should be cleared before returning.
					pdFALSE,		// Don't wait for both bits, either bit will do.
					xTicksToWait );	// Wait a maximum of 100ms for either bit to be set.

		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
		{
			// xEventGroupWaitBits() returned because both bits were set.
		}
		else if( ( uxBits & BIT_0 ) != 0 )
		{
			// xEventGroupWaitBits() returned because just BIT_0 was set.
		}
		else if( ( uxBits & BIT_4 ) != 0 )
		{
			// xEventGroupWaitBits() returned because just BIT_4 was set.
		}
		else
		{
			// xEventGroupWaitBits() returned because xTicksToWait ticks passed
			// without either BIT_0 or BIT_4 becoming set.
		}
   }
   
* \defgroup xEventGroupWaitBits xEventGroupWaitBits * \ingroup EventGroup */ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * event_groups.h *
	EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
 
* * Clear bits within an event group. This function cannot be called from an * interrupt. * * @param xEventGroup The event group in which the bits are to be cleared. * * @param uxBitsToClear A bitwise value that indicates the bit or bits to clear * in the event group. For example, to clear bit 3 only, set uxBitsToClear to * 0x08. To clear bit 3 and bit 0 set uxBitsToClear to 0x09. * * @return The value of the event group before the specified bits were cleared. * * Example usage:
   #define BIT_0	( 1 << 0 )
   #define BIT_4	( 1 << 4 )

   void aFunction( EventGroupHandle_t xEventGroup )
   {
   EventBits_t uxBits;

		// Clear bit 0 and bit 4 in xEventGroup.
		uxBits = xEventGroupClearBits(
								xEventGroup,	// The event group being updated.
								BIT_0 | BIT_4 );// The bits being cleared.

		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
		{
			// Both bit 0 and bit 4 were set before xEventGroupClearBits() was
			// called.  Both will now be clear (not set).
		}
		else if( ( uxBits & BIT_0 ) != 0 )
		{
			// Bit 0 was set before xEventGroupClearBits() was called.  It will
			// now be clear.
		}
		else if( ( uxBits & BIT_4 ) != 0 )
		{
			// Bit 4 was set before xEventGroupClearBits() was called.  It will
			// now be clear.
		}
		else
		{
			// Neither bit 0 nor bit 4 were set in the first place.
		}
   }
   
* \defgroup xEventGroupClearBits xEventGroupClearBits * \ingroup EventGroup */ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION; /** * event_groups.h *
	BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
 
* * A version of xEventGroupClearBits() that can be called from an interrupt. * * Setting bits in an event group is not a deterministic operation because there * are an unknown number of tasks that may be waiting for the bit or bits being * set. FreeRTOS does not allow nondeterministic operations to be performed * while interrupts are disabled, so protects event groups that are accessed * from tasks by suspending the scheduler rather than disabling interrupts. As * a result event groups cannot be accessed directly from an interrupt service * routine. Therefore xEventGroupClearBitsFromISR() sends a message to the * timer task to have the clear operation performed in the context of the timer * task. * * @param xEventGroup The event group in which the bits are to be cleared. * * @param uxBitsToClear A bitwise value that indicates the bit or bits to clear. * For example, to clear bit 3 only, set uxBitsToClear to 0x08. To clear bit 3 * and bit 0 set uxBitsToClear to 0x09. * * @return If the request to execute the function was posted successfully then * pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned * if the timer service queue was full. * * Example usage:
   #define BIT_0	( 1 << 0 )
   #define BIT_4	( 1 << 4 )

   // An event group which it is assumed has already been created by a call to
   // xEventGroupCreate().
   EventGroupHandle_t xEventGroup;

   void anInterruptHandler( void )
   {
		// Clear bit 0 and bit 4 in xEventGroup.
		xResult = xEventGroupClearBitsFromISR(
							xEventGroup,	 // The event group being updated.
							BIT_0 | BIT_4 ); // The bits being set.

		if( xResult == pdPASS )
		{
			// The message was posted successfully.
		}
  }
   
* \defgroup xEventGroupClearBitsFromISR xEventGroupClearBitsFromISR * \ingroup EventGroup */ #if( configUSE_TRACE_FACILITY == 1 ) BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION; #else #define xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear ) xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL ) #endif /** * event_groups.h *
	EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
 
* * Set bits within an event group. * This function cannot be called from an interrupt. xEventGroupSetBitsFromISR() * is a version that can be called from an interrupt. * * Setting bits in an event group will automatically unblock tasks that are * blocked waiting for the bits. * * @param xEventGroup The event group in which the bits are to be set. * * @param uxBitsToSet A bitwise value that indicates the bit or bits to set. * For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3 * and bit 0 set uxBitsToSet to 0x09. * * @return The value of the event group at the time the call to * xEventGroupSetBits() returns. There are two reasons why the returned value * might have the bits specified by the uxBitsToSet parameter cleared. First, * if setting a bit results in a task that was waiting for the bit leaving the * blocked state then it is possible the bit will be cleared automatically * (see the xClearBitOnExit parameter of xEventGroupWaitBits()). Second, any * unblocked (or otherwise Ready state) task that has a priority above that of * the task that called xEventGroupSetBits() will execute and may change the * event group value before the call to xEventGroupSetBits() returns. * * Example usage:
   #define BIT_0	( 1 << 0 )
   #define BIT_4	( 1 << 4 )

   void aFunction( EventGroupHandle_t xEventGroup )
   {
   EventBits_t uxBits;

		// Set bit 0 and bit 4 in xEventGroup.
		uxBits = xEventGroupSetBits(
							xEventGroup,	// The event group being updated.
							BIT_0 | BIT_4 );// The bits being set.

		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
		{
			// Both bit 0 and bit 4 remained set when the function returned.
		}
		else if( ( uxBits & BIT_0 ) != 0 )
		{
			// Bit 0 remained set when the function returned, but bit 4 was
			// cleared.  It might be that bit 4 was cleared automatically as a
			// task that was waiting for bit 4 was removed from the Blocked
			// state.
		}
		else if( ( uxBits & BIT_4 ) != 0 )
		{
			// Bit 4 remained set when the function returned, but bit 0 was
			// cleared.  It might be that bit 0 was cleared automatically as a
			// task that was waiting for bit 0 was removed from the Blocked
			// state.
		}
		else
		{
			// Neither bit 0 nor bit 4 remained set.  It might be that a task
			// was waiting for both of the bits to be set, and the bits were
			// cleared as the task left the Blocked state.
		}
   }
   
* \defgroup xEventGroupSetBits xEventGroupSetBits * \ingroup EventGroup */ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION; /** * event_groups.h *
	BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken );
 
* * A version of xEventGroupSetBits() that can be called from an interrupt. * * Setting bits in an event group is not a deterministic operation because there * are an unknown number of tasks that may be waiting for the bit or bits being * set. FreeRTOS does not allow nondeterministic operations to be performed in * interrupts or from critical sections. Therefore xEventGroupSetBitsFromISR() * sends a message to the timer task to have the set operation performed in the * context of the timer task - where a scheduler lock is used in place of a * critical section. * * @param xEventGroup The event group in which the bits are to be set. * * @param uxBitsToSet A bitwise value that indicates the bit or bits to set. * For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3 * and bit 0 set uxBitsToSet to 0x09. * * @param pxHigherPriorityTaskWoken As mentioned above, calling this function * will result in a message being sent to the timer daemon task. If the * priority of the timer daemon task is higher than the priority of the * currently running task (the task the interrupt interrupted) then * *pxHigherPriorityTaskWoken will be set to pdTRUE by * xEventGroupSetBitsFromISR(), indicating that a context switch should be * requested before the interrupt exits. For that reason * *pxHigherPriorityTaskWoken must be initialised to pdFALSE. See the * example code below. * * @return If the request to execute the function was posted successfully then * pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned * if the timer service queue was full. * * Example usage:
   #define BIT_0	( 1 << 0 )
   #define BIT_4	( 1 << 4 )

   // An event group which it is assumed has already been created by a call to
   // xEventGroupCreate().
   EventGroupHandle_t xEventGroup;

   void anInterruptHandler( void )
   {
   BaseType_t xHigherPriorityTaskWoken, xResult;

		// xHigherPriorityTaskWoken must be initialised to pdFALSE.
		xHigherPriorityTaskWoken = pdFALSE;

		// Set bit 0 and bit 4 in xEventGroup.
		xResult = xEventGroupSetBitsFromISR(
							xEventGroup,	// The event group being updated.
							BIT_0 | BIT_4   // The bits being set.
							&xHigherPriorityTaskWoken );

		// Was the message posted successfully?
		if( xResult == pdPASS )
		{
			// If xHigherPriorityTaskWoken is now set to pdTRUE then a context
			// switch should be requested.  The macro used is port specific and
			// will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
			// refer to the documentation page for the port being used.
			portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
		}
  }
   
* \defgroup xEventGroupSetBitsFromISR xEventGroupSetBitsFromISR * \ingroup EventGroup */ #if( configUSE_TRACE_FACILITY == 1 ) BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; #else #define xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken ) xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken ) #endif /** * event_groups.h *
	EventBits_t xEventGroupSync(	EventGroupHandle_t xEventGroup,
									const EventBits_t uxBitsToSet,
									const EventBits_t uxBitsToWaitFor,
									TickType_t xTicksToWait );
 
* * Atomically set bits within an event group, then wait for a combination of * bits to be set within the same event group. This functionality is typically * used to synchronise multiple tasks, where each task has to wait for the other * tasks to reach a synchronisation point before proceeding. * * This function cannot be used from an interrupt. * * The function will return before its block time expires if the bits specified * by the uxBitsToWait parameter are set, or become set within that time. In * this case all the bits specified by uxBitsToWait will be automatically * cleared before the function returns. * * @param xEventGroup The event group in which the bits are being tested. The * event group must have previously been created using a call to * xEventGroupCreate(). * * @param uxBitsToSet The bits to set in the event group before determining * if, and possibly waiting for, all the bits specified by the uxBitsToWait * parameter are set. * * @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test * inside the event group. For example, to wait for bit 0 and bit 2 set * uxBitsToWaitFor to 0x05. To wait for bits 0 and bit 1 and bit 2 set * uxBitsToWaitFor to 0x07. Etc. * * @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait * for all of the bits specified by uxBitsToWaitFor to become set. * * @return The value of the event group at the time either the bits being waited * for became set, or the block time expired. Test the return value to know * which bits were set. If xEventGroupSync() returned because its timeout * expired then not all the bits being waited for will be set. If * xEventGroupSync() returned because all the bits it was waiting for were * set then the returned value is the event group value before any bits were * automatically cleared. * * Example usage:
 // Bits used by the three tasks.
 #define TASK_0_BIT		( 1 << 0 )
 #define TASK_1_BIT		( 1 << 1 )
 #define TASK_2_BIT		( 1 << 2 )

 #define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )

 // Use an event group to synchronise three tasks.  It is assumed this event
 // group has already been created elsewhere.
 EventGroupHandle_t xEventBits;

 void vTask0( void *pvParameters )
 {
 EventBits_t uxReturn;
 TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;

	 for( ;; )
	 {
		// Perform task functionality here.

		// Set bit 0 in the event flag to note this task has reached the
		// sync point.  The other two tasks will set the other two bits defined
		// by ALL_SYNC_BITS.  All three tasks have reached the synchronisation
		// point when all the ALL_SYNC_BITS are set.  Wait a maximum of 100ms
		// for this to happen.
		uxReturn = xEventGroupSync( xEventBits, TASK_0_BIT, ALL_SYNC_BITS, xTicksToWait );

		if( ( uxReturn & ALL_SYNC_BITS ) == ALL_SYNC_BITS )
		{
			// All three tasks reached the synchronisation point before the call
			// to xEventGroupSync() timed out.
		}
	}
 }

 void vTask1( void *pvParameters )
 {
	 for( ;; )
	 {
		// Perform task functionality here.

		// Set bit 1 in the event flag to note this task has reached the
		// synchronisation point.  The other two tasks will set the other two
		// bits defined by ALL_SYNC_BITS.  All three tasks have reached the
		// synchronisation point when all the ALL_SYNC_BITS are set.  Wait
		// indefinitely for this to happen.
		xEventGroupSync( xEventBits, TASK_1_BIT, ALL_SYNC_BITS, portMAX_DELAY );

		// xEventGroupSync() was called with an indefinite block time, so
		// this task will only reach here if the syncrhonisation was made by all
		// three tasks, so there is no need to test the return value.
	 }
 }

 void vTask2( void *pvParameters )
 {
	 for( ;; )
	 {
		// Perform task functionality here.

		// Set bit 2 in the event flag to note this task has reached the
		// synchronisation point.  The other two tasks will set the other two
		// bits defined by ALL_SYNC_BITS.  All three tasks have reached the
		// synchronisation point when all the ALL_SYNC_BITS are set.  Wait
		// indefinitely for this to happen.
		xEventGroupSync( xEventBits, TASK_2_BIT, ALL_SYNC_BITS, portMAX_DELAY );

		// xEventGroupSync() was called with an indefinite block time, so
		// this task will only reach here if the syncrhonisation was made by all
		// three tasks, so there is no need to test the return value.
	}
 }

 
* \defgroup xEventGroupSync xEventGroupSync * \ingroup EventGroup */ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * event_groups.h *
	EventBits_t xEventGroupGetBits( EventGroupHandle_t xEventGroup );
 
* * Returns the current value of the bits in an event group. This function * cannot be used from an interrupt. * * @param xEventGroup The event group being queried. * * @return The event group bits at the time xEventGroupGetBits() was called. * * \defgroup xEventGroupGetBits xEventGroupGetBits * \ingroup EventGroup */ #define xEventGroupGetBits( xEventGroup ) xEventGroupClearBits( xEventGroup, 0 ) /** * event_groups.h *
	EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup );
 
* * A version of xEventGroupGetBits() that can be called from an ISR. * * @param xEventGroup The event group being queried. * * @return The event group bits at the time xEventGroupGetBitsFromISR() was called. * * \defgroup xEventGroupGetBitsFromISR xEventGroupGetBitsFromISR * \ingroup EventGroup */ EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION; /** * event_groups.h *
	void xEventGroupDelete( EventGroupHandle_t xEventGroup );
 
* * Delete an event group that was previously created by a call to * xEventGroupCreate(). Tasks that are blocked on the event group will be * unblocked and obtain 0 as the event group's value. * * @param xEventGroup The event group being deleted. */ void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION; /* For internal use only. */ void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet ) PRIVILEGED_FUNCTION; void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear ) PRIVILEGED_FUNCTION; #if (configUSE_TRACE_FACILITY == 1) UBaseType_t uxEventGroupGetNumber( void* xEventGroup ) PRIVILEGED_FUNCTION; void vEventGroupSetNumber( void* xEventGroup, UBaseType_t uxEventGroupNumber ) PRIVILEGED_FUNCTION; #endif #ifdef __cplusplus } #endif #endif /* EVENT_GROUPS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/list.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * This is the list implementation used by the scheduler. While it is tailored * heavily for the schedulers needs, it is also available for use by * application code. * * list_ts can only store pointers to list_item_ts. Each ListItem_t contains a * numeric value (xItemValue). Most of the time the lists are sorted in * descending item value order. * * Lists are created already containing one list item. The value of this * item is the maximum possible that can be stored, it is therefore always at * the end of the list and acts as a marker. The list member pxHead always * points to this marker - even though it is at the tail of the list. This * is because the tail contains a wrap back pointer to the true head of * the list. * * In addition to it's value, each list item contains a pointer to the next * item in the list (pxNext), a pointer to the list it is in (pxContainer) * and a pointer to back to the object that contains it. These later two * pointers are included for efficiency of list manipulation. There is * effectively a two way link between the object containing the list item and * the list item itself. * * * \page ListIntroduction List Implementation * \ingroup FreeRTOSIntro */ #ifndef INC_FREERTOS_H #error FreeRTOS.h must be included before list.h #endif #ifndef LIST_H #define LIST_H /* * The list structure members are modified from within interrupts, and therefore * by rights should be declared volatile. However, they are only modified in a * functionally atomic way (within critical sections of with the scheduler * suspended) and are either passed by reference into a function or indexed via * a volatile variable. Therefore, in all use cases tested so far, the volatile * qualifier can be omitted in order to provide a moderate performance * improvement without adversely affecting functional behaviour. The assembly * instructions generated by the IAR, ARM and GCC compilers when the respective * compiler's options were set for maximum optimisation has been inspected and * deemed to be as intended. That said, as compiler technology advances, and * especially if aggressive cross module optimisation is used (a use case that * has not been exercised to any great extend) then it is feasible that the * volatile qualifier will be needed for correct optimisation. It is expected * that a compiler removing essential code because, without the volatile * qualifier on the list structure members and with aggressive cross module * optimisation, the compiler deemed the code unnecessary will result in * complete and obvious failure of the scheduler. If this is ever experienced * then the volatile qualifier can be inserted in the relevant places within the * list structures by simply defining configLIST_VOLATILE to volatile in * FreeRTOSConfig.h (as per the example at the bottom of this comment block). * If configLIST_VOLATILE is not defined then the preprocessor directives below * will simply #define configLIST_VOLATILE away completely. * * To use volatile list structure members then add the following line to * FreeRTOSConfig.h (without the quotes): * "#define configLIST_VOLATILE volatile" */ #ifndef configLIST_VOLATILE #define configLIST_VOLATILE #endif /* configSUPPORT_CROSS_MODULE_OPTIMISATION */ #ifdef __cplusplus extern "C" { #endif /* Macros that can be used to place known values within the list structures, then check that the known values do not get corrupted during the execution of the application. These may catch the list data structures being overwritten in memory. They will not catch data errors caused by incorrect configuration or use of FreeRTOS.*/ #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 0 ) /* Define the macros to do nothing. */ #define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE #define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE #define listFIRST_LIST_INTEGRITY_CHECK_VALUE #define listSECOND_LIST_INTEGRITY_CHECK_VALUE #define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) #define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) #define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ) #define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ) #define listTEST_LIST_ITEM_INTEGRITY( pxItem ) #define listTEST_LIST_INTEGRITY( pxList ) #else /* Define macros that add new members into the list structures. */ #define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue1; #define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue2; #define listFIRST_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue1; #define listSECOND_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue2; /* Define macros that set the new structure members to known values. */ #define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue1 = pdINTEGRITY_CHECK_VALUE #define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue2 = pdINTEGRITY_CHECK_VALUE #define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ) ( pxList )->xListIntegrityValue1 = pdINTEGRITY_CHECK_VALUE #define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ) ( pxList )->xListIntegrityValue2 = pdINTEGRITY_CHECK_VALUE /* Define macros that will assert if one of the structure members does not contain its expected value. */ #define listTEST_LIST_ITEM_INTEGRITY( pxItem ) configASSERT( ( ( pxItem )->xListItemIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxItem )->xListItemIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) ) #define listTEST_LIST_INTEGRITY( pxList ) configASSERT( ( ( pxList )->xListIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxList )->xListIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) ) #endif /* configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES */ /* * Definition of the only type of object that a list can contain. */ struct xLIST; struct xLIST_ITEM { listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ configLIST_VOLATILE TickType_t xItemValue; /*< The value being listed. In most cases this is used to sort the list in descending order. */ struct xLIST_ITEM * configLIST_VOLATILE pxNext; /*< Pointer to the next ListItem_t in the list. */ struct xLIST_ITEM * configLIST_VOLATILE pxPrevious; /*< Pointer to the previous ListItem_t in the list. */ void * pvOwner; /*< Pointer to the object (normally a TCB) that contains the list item. There is therefore a two way link between the object containing the list item and the list item itself. */ struct xLIST * configLIST_VOLATILE pxContainer; /*< Pointer to the list in which this list item is placed (if any). */ listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ }; typedef struct xLIST_ITEM ListItem_t; /* For some reason lint wants this as two separate definitions. */ struct xMINI_LIST_ITEM { listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ configLIST_VOLATILE TickType_t xItemValue; struct xLIST_ITEM * configLIST_VOLATILE pxNext; struct xLIST_ITEM * configLIST_VOLATILE pxPrevious; }; typedef struct xMINI_LIST_ITEM MiniListItem_t; /* * Definition of the type of queue used by the scheduler. */ typedef struct xLIST { listFIRST_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ volatile UBaseType_t uxNumberOfItems; ListItem_t * configLIST_VOLATILE pxIndex; /*< Used to walk through the list. Points to the last item returned by a call to listGET_OWNER_OF_NEXT_ENTRY (). */ MiniListItem_t xListEnd; /*< List item that contains the maximum possible item value meaning it is always at the end of the list and is therefore used as a marker. */ listSECOND_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ } List_t; /* * Access macro to set the owner of a list item. The owner of a list item * is the object (usually a TCB) that contains the list item. * * \page listSET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER * \ingroup LinkedList */ #define listSET_LIST_ITEM_OWNER( pxListItem, pxOwner ) ( ( pxListItem )->pvOwner = ( void * ) ( pxOwner ) ) /* * Access macro to get the owner of a list item. The owner of a list item * is the object (usually a TCB) that contains the list item. * * \page listGET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER * \ingroup LinkedList */ #define listGET_LIST_ITEM_OWNER( pxListItem ) ( ( pxListItem )->pvOwner ) /* * Access macro to set the value of the list item. In most cases the value is * used to sort the list in descending order. * * \page listSET_LIST_ITEM_VALUE listSET_LIST_ITEM_VALUE * \ingroup LinkedList */ #define listSET_LIST_ITEM_VALUE( pxListItem, xValue ) ( ( pxListItem )->xItemValue = ( xValue ) ) /* * Access macro to retrieve the value of the list item. The value can * represent anything - for example the priority of a task, or the time at * which a task should be unblocked. * * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE * \ingroup LinkedList */ #define listGET_LIST_ITEM_VALUE( pxListItem ) ( ( pxListItem )->xItemValue ) /* * Access macro to retrieve the value of the list item at the head of a given * list. * * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE * \ingroup LinkedList */ #define listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext->xItemValue ) /* * Return the list item at the head of the list. * * \page listGET_HEAD_ENTRY listGET_HEAD_ENTRY * \ingroup LinkedList */ #define listGET_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext ) /* * Return the next list item. * * \page listGET_NEXT listGET_NEXT * \ingroup LinkedList */ #define listGET_NEXT( pxListItem ) ( ( pxListItem )->pxNext ) /* * Return the list item that marks the end of the list * * \page listGET_END_MARKER listGET_END_MARKER * \ingroup LinkedList */ #define listGET_END_MARKER( pxList ) ( ( ListItem_t const * ) ( &( ( pxList )->xListEnd ) ) ) /* * Access macro to determine if a list contains any items. The macro will * only have the value true if the list is empty. * * \page listLIST_IS_EMPTY listLIST_IS_EMPTY * \ingroup LinkedList */ #define listLIST_IS_EMPTY( pxList ) ( ( ( pxList )->uxNumberOfItems == ( UBaseType_t ) 0 ) ? pdTRUE : pdFALSE ) /* * Access macro to return the number of items in the list. */ #define listCURRENT_LIST_LENGTH( pxList ) ( ( pxList )->uxNumberOfItems ) /* * Access function to obtain the owner of the next entry in a list. * * The list member pxIndex is used to walk through a list. Calling * listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list * and returns that entry's pxOwner parameter. Using multiple calls to this * function it is therefore possible to move through every item contained in * a list. * * The pxOwner parameter of a list item is a pointer to the object that owns * the list item. In the scheduler this is normally a task control block. * The pxOwner parameter effectively creates a two way link between the list * item and its owner. * * @param pxTCB pxTCB is set to the address of the owner of the next list item. * @param pxList The list from which the next item owner is to be returned. * * \page listGET_OWNER_OF_NEXT_ENTRY listGET_OWNER_OF_NEXT_ENTRY * \ingroup LinkedList */ #define listGET_OWNER_OF_NEXT_ENTRY( pxTCB, pxList ) \ { \ List_t * const pxConstList = ( pxList ); \ /* Increment the index to the next item and return the item, ensuring */ \ /* we don't return the marker used at the end of the list. */ \ ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \ { \ ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ } \ ( pxTCB ) = ( pxConstList )->pxIndex->pvOwner; \ } /* * Access function to obtain the owner of the first entry in a list. Lists * are normally sorted in ascending item value order. * * This function returns the pxOwner member of the first item in the list. * The pxOwner parameter of a list item is a pointer to the object that owns * the list item. In the scheduler this is normally a task control block. * The pxOwner parameter effectively creates a two way link between the list * item and its owner. * * @param pxList The list from which the owner of the head item is to be * returned. * * \page listGET_OWNER_OF_HEAD_ENTRY listGET_OWNER_OF_HEAD_ENTRY * \ingroup LinkedList */ #define listGET_OWNER_OF_HEAD_ENTRY( pxList ) ( (&( ( pxList )->xListEnd ))->pxNext->pvOwner ) /* * Check to see if a list item is within a list. The list item maintains a * "container" pointer that points to the list it is in. All this macro does * is check to see if the container and the list match. * * @param pxList The list we want to know if the list item is within. * @param pxListItem The list item we want to know if is in the list. * @return pdTRUE if the list item is in the list, otherwise pdFALSE. */ #define listIS_CONTAINED_WITHIN( pxList, pxListItem ) ( ( ( pxListItem )->pxContainer == ( pxList ) ) ? ( pdTRUE ) : ( pdFALSE ) ) /* * Return the list a list item is contained within (referenced from). * * @param pxListItem The list item being queried. * @return A pointer to the List_t object that references the pxListItem */ #define listLIST_ITEM_CONTAINER( pxListItem ) ( ( pxListItem )->pxContainer ) /* * This provides a crude means of knowing if a list has been initialised, as * pxList->xListEnd.xItemValue is set to portMAX_DELAY by the vListInitialise() * function. */ #define listLIST_IS_INITIALISED( pxList ) ( ( pxList )->xListEnd.xItemValue == portMAX_DELAY ) /* * Must be called before a list is used! This initialises all the members * of the list structure and inserts the xListEnd item into the list as a * marker to the back of the list. * * @param pxList Pointer to the list being initialised. * * \page vListInitialise vListInitialise * \ingroup LinkedList */ void vListInitialise( List_t * const pxList ) PRIVILEGED_FUNCTION; /* * Must be called before a list item is used. This sets the list container to * null so the item does not think that it is already contained in a list. * * @param pxItem Pointer to the list item being initialised. * * \page vListInitialiseItem vListInitialiseItem * \ingroup LinkedList */ void vListInitialiseItem( ListItem_t * const pxItem ) PRIVILEGED_FUNCTION; /* * Insert a list item into a list. The item will be inserted into the list in * a position determined by its item value (descending item value order). * * @param pxList The list into which the item is to be inserted. * * @param pxNewListItem The item that is to be placed in the list. * * \page vListInsert vListInsert * \ingroup LinkedList */ void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION; /* * Insert a list item into a list. The item will be inserted in a position * such that it will be the last item within the list returned by multiple * calls to listGET_OWNER_OF_NEXT_ENTRY. * * The list member pxIndex is used to walk through a list. Calling * listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list. * Placing an item in a list using vListInsertEnd effectively places the item * in the list position pointed to by pxIndex. This means that every other * item within the list will be returned by listGET_OWNER_OF_NEXT_ENTRY before * the pxIndex parameter again points to the item being inserted. * * @param pxList The list into which the item is to be inserted. * * @param pxNewListItem The list item to be inserted into the list. * * \page vListInsertEnd vListInsertEnd * \ingroup LinkedList */ void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION; /* * Remove an item from a list. The list item has a pointer to the list that * it is in, so only the list item need be passed into the function. * * @param uxListRemove The item to be removed. The item will remove itself from * the list pointed to by it's pxContainer parameter. * * @return The number of items that remain in the list after the list item has * been removed. * * \page uxListRemove uxListRemove * \ingroup LinkedList */ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) PRIVILEGED_FUNCTION; #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * Message buffers build functionality on top of FreeRTOS stream buffers. * Whereas stream buffers are used to send a continuous stream of data from one * task or interrupt to another, message buffers are used to send variable * length discrete messages from one task or interrupt to another. Their * implementation is light weight, making them particularly suited for interrupt * to task and core to core communication scenarios. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xMessageBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xMessageBufferRead()) inside a critical section and set the receive * timeout to 0. * * Message buffers hold variable length messages. To enable that, when a * message is written to the message buffer an additional sizeof( size_t ) bytes * are also written to store the message's length (that happens internally, with * the API function). sizeof( size_t ) is typically 4 bytes on a 32-bit * architecture, so writing a 10 byte message to a message buffer on a 32-bit * architecture will actually reduce the available space in the message buffer * by 14 bytes (10 byte are used by the message, and 4 bytes to hold the length * of the message). */ #ifndef FREERTOS_MESSAGE_BUFFER_H #define FREERTOS_MESSAGE_BUFFER_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include message_buffer.h" #endif /* Message buffers are built onto of stream buffers. */ #include "stream_buffer.h" #if defined( __cplusplus ) extern "C" { #endif /** * Type by which message buffers are referenced. For example, a call to * xMessageBufferCreate() returns an MessageBufferHandle_t variable that can * then be used as a parameter to xMessageBufferSend(), xMessageBufferReceive(), * etc. */ typedef void * MessageBufferHandle_t; /*-----------------------------------------------------------*/ /** * message_buffer.h *
MessageBufferHandle_t xMessageBufferCreate( size_t xBufferSizeBytes );
* * Creates a new message buffer using dynamically allocated memory. See * xMessageBufferCreateStatic() for a version that uses statically allocated * memory (memory that is allocated at compile time). * * configSUPPORT_DYNAMIC_ALLOCATION must be set to 1 or left undefined in * FreeRTOSConfig.h for xMessageBufferCreate() to be available. * * @param xBufferSizeBytes The total number of bytes (not messages) the message * buffer will be able to hold at any one time. When a message is written to * the message buffer an additional sizeof( size_t ) bytes are also written to * store the message's length. sizeof( size_t ) is typically 4 bytes on a * 32-bit architecture, so on most 32-bit architectures a 10 byte message will * take up 14 bytes of message buffer space. * * @return If NULL is returned, then the message buffer cannot be created * because there is insufficient heap memory available for FreeRTOS to allocate * the message buffer data structures and storage area. A non-NULL value being * returned indicates that the message buffer has been created successfully - * the returned value should be stored as the handle to the created message * buffer. * * Example use:

void vAFunction( void )
{
MessageBufferHandle_t xMessageBuffer;
const size_t xMessageBufferSizeBytes = 100;

    // Create a message buffer that can hold 100 bytes.  The memory used to hold
    // both the message buffer structure and the messages themselves is allocated
    // dynamically.  Each message added to the buffer consumes an additional 4
    // bytes which are used to hold the lengh of the message.
    xMessageBuffer = xMessageBufferCreate( xMessageBufferSizeBytes );

    if( xMessageBuffer == NULL )
    {
        // There was not enough heap memory space available to create the
        // message buffer.
    }
    else
    {
        // The message buffer was created successfully and can now be used.
    }

* \defgroup xMessageBufferCreate xMessageBufferCreate * \ingroup MessageBufferManagement */ #define xMessageBufferCreate( xBufferSizeBytes ) ( MessageBufferHandle_t ) xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE ) /** * message_buffer.h *
MessageBufferHandle_t xMessageBufferCreateStatic( size_t xBufferSizeBytes,
                                                  uint8_t *pucMessageBufferStorageArea,
                                                  StaticMessageBuffer_t *pxStaticMessageBuffer );
* Creates a new message buffer using statically allocated memory. See * xMessageBufferCreate() for a version that uses dynamically allocated memory. * * @param xBufferSizeBytes The size, in bytes, of the buffer pointed to by the * pucMessageBufferStorageArea parameter. When a message is written to the * message buffer an additional sizeof( size_t ) bytes are also written to store * the message's length. sizeof( size_t ) is typically 4 bytes on a 32-bit * architecture, so on most 32-bit architecture a 10 byte message will take up * 14 bytes of message buffer space. The maximum number of bytes that can be * stored in the message buffer is actually (xBufferSizeBytes - 1). * * @param pucMessageBufferStorageArea Must point to a uint8_t array that is at * least xBufferSizeBytes + 1 big. This is the array to which messages are * copied when they are written to the message buffer. * * @param pxStaticMessageBuffer Must point to a variable of type * StaticMessageBuffer_t, which will be used to hold the message buffer's data * structure. * * @return If the message buffer is created successfully then a handle to the * created message buffer is returned. If either pucMessageBufferStorageArea or * pxStaticmessageBuffer are NULL then NULL is returned. * * Example use:

// Used to dimension the array used to hold the messages.  The available space
// will actually be one less than this, so 999.
#define STORAGE_SIZE_BYTES 1000

// Defines the memory that will actually hold the messages within the message
// buffer.
static uint8_t ucStorageBuffer[ STORAGE_SIZE_BYTES ];

// The variable used to hold the message buffer structure.
StaticMessageBuffer_t xMessageBufferStruct;

void MyFunction( void )
{
MessageBufferHandle_t xMessageBuffer;

    xMessageBuffer = xMessageBufferCreateStatic( sizeof( ucBufferStorage ),
                                                 ucBufferStorage,
                                                 &xMessageBufferStruct );

    // As neither the pucMessageBufferStorageArea or pxStaticMessageBuffer
    // parameters were NULL, xMessageBuffer will not be NULL, and can be used to
    // reference the created message buffer in other message buffer API calls.

    // Other code that uses the message buffer can go here.
}

* \defgroup xMessageBufferCreateStatic xMessageBufferCreateStatic * \ingroup MessageBufferManagement */ #define xMessageBufferCreateStatic( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer ) ( MessageBufferHandle_t ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer ) /** * message_buffer.h *
size_t xMessageBufferSend( MessageBufferHandle_t xMessageBuffer,
                           const void *pvTxData,
                           size_t xDataLengthBytes,
                           TickType_t xTicksToWait );
 *
 * Sends a discrete message to the message buffer.  The message can be any
 * length that fits within the buffer's free space, and is copied into the
 * buffer.
 *
 * ***NOTE***:  Uniquely among FreeRTOS objects, the stream buffer
 * implementation (so also the message buffer implementation, as message buffers
 * are built on top of stream buffers) assumes there is only one task or
 * interrupt that will write to the buffer (the writer), and only one task or
 * interrupt that will read from the buffer (the reader).  It is safe for the
 * writer and reader to be different tasks or interrupts, but, unlike other
 * FreeRTOS objects, it is not safe to have multiple different writers or
 * multiple different readers.  If there are to be multiple different writers
 * then the application writer must place each call to a writing API function
 * (such as xMessageBufferSend()) inside a critical section and set the send
 * block time to 0.  Likewise, if there are to be multiple different readers
 * then the application writer must place each call to a reading API function
 * (such as xMessageBufferRead()) inside a critical section and set the receive
 * block time to 0.
 *
 * Use xMessageBufferSend() to write to a message buffer from a task.  Use
 * xMessageBufferSendFromISR() to write to a message buffer from an interrupt
 * service routine (ISR).
 *
 * @param xMessageBuffer The handle of the message buffer to which a message is
 * being sent.
 *
 * @param pvTxData A pointer to the message that is to be copied into the
 * message buffer.
 *
 * @param xDataLengthBytes The length of the message.  That is, the number of
 * bytes to copy from pvTxData into the message buffer.  When a message is
 * written to the message buffer an additional sizeof( size_t ) bytes are also
 * written to store the message's length.  sizeof( size_t ) is typically 4 bytes
 * on a 32-bit architecture, so on most 32-bit architecture setting
 * xDataLengthBytes to 20 will reduce the free space in the message buffer by 24
 * bytes (20 bytes of message data and 4 bytes to hold the message length).
 *
 * @param xTicksToWait The maximum amount of time the calling task should remain
 * in the Blocked state to wait for enough space to become available in the
 * message buffer, should the message buffer have insufficient space when
 * xMessageBufferSend() is called.  The calling task will never block if
 * xTicksToWait is zero.  The block time is specified in tick periods, so the
 * absolute time it represents is dependent on the tick frequency.  The macro
 * pdMS_TO_TICKS() can be used to convert a time specified in milliseconds into
 * a time specified in ticks.  Setting xTicksToWait to portMAX_DELAY will cause
 * the task to wait indefinitely (without timing out), provided
 * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h.  Tasks do not use any
 * CPU time when they are in the Blocked state.
 *
 * @return The number of bytes written to the message buffer.  If the call to
 * xMessageBufferSend() times out before there was enough space to write the
 * message into the message buffer then zero is returned.  If the call did not
 * time out then xDataLengthBytes is returned.
 *
 * Example use:
void vAFunction( MessageBufferHandle_t xMessageBuffer )
{
size_t xBytesSent;
uint8_t ucArrayToSend[] = { 0, 1, 2, 3 };
char *pcStringToSend = "String to send";
const TickType_t x100ms = pdMS_TO_TICKS( 100 );

    // Send an array to the message buffer, blocking for a maximum of 100ms to
    // wait for enough space to be available in the message buffer.
    xBytesSent = xMessageBufferSend( xMessageBuffer, ( void * ) ucArrayToSend, sizeof( ucArrayToSend ), x100ms );

    if( xBytesSent != sizeof( ucArrayToSend ) )
    {
        // The call to xMessageBufferSend() times out before there was enough
        // space in the buffer for the data to be written.
    }

    // Send the string to the message buffer.  Return immediately if there is
    // not enough space in the buffer.
    xBytesSent = xMessageBufferSend( xMessageBuffer, ( void * ) pcStringToSend, strlen( pcStringToSend ), 0 );

    if( xBytesSent != strlen( pcStringToSend ) )
    {
        // The string could not be added to the message buffer because there was
        // not enough free space in the buffer.
    }
}
* \defgroup xMessageBufferSend xMessageBufferSend * \ingroup MessageBufferManagement */ #define xMessageBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) xStreamBufferSend( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) /** * message_buffer.h *
size_t xMessageBufferSendFromISR( MessageBufferHandle_t xMessageBuffer,
                                  const void *pvTxData,
                                  size_t xDataLengthBytes,
                                  BaseType_t *pxHigherPriorityTaskWoken );
 *
 * Interrupt safe version of the API function that sends a discrete message to
 * the message buffer.  The message can be any length that fits within the
 * buffer's free space, and is copied into the buffer.
 *
 * ***NOTE***:  Uniquely among FreeRTOS objects, the stream buffer
 * implementation (so also the message buffer implementation, as message buffers
 * are built on top of stream buffers) assumes there is only one task or
 * interrupt that will write to the buffer (the writer), and only one task or
 * interrupt that will read from the buffer (the reader).  It is safe for the
 * writer and reader to be different tasks or interrupts, but, unlike other
 * FreeRTOS objects, it is not safe to have multiple different writers or
 * multiple different readers.  If there are to be multiple different writers
 * then the application writer must place each call to a writing API function
 * (such as xMessageBufferSend()) inside a critical section and set the send
 * block time to 0.  Likewise, if there are to be multiple different readers
 * then the application writer must place each call to a reading API function
 * (such as xMessageBufferRead()) inside a critical section and set the receive
 * block time to 0.
 *
 * Use xMessageBufferSend() to write to a message buffer from a task.  Use
 * xMessageBufferSendFromISR() to write to a message buffer from an interrupt
 * service routine (ISR).
 *
 * @param xMessageBuffer The handle of the message buffer to which a message is
 * being sent.
 *
 * @param pvTxData A pointer to the message that is to be copied into the
 * message buffer.
 *
 * @param xDataLengthBytes The length of the message.  That is, the number of
 * bytes to copy from pvTxData into the message buffer.  When a message is
 * written to the message buffer an additional sizeof( size_t ) bytes are also
 * written to store the message's length.  sizeof( size_t ) is typically 4 bytes
 * on a 32-bit architecture, so on most 32-bit architecture setting
 * xDataLengthBytes to 20 will reduce the free space in the message buffer by 24
 * bytes (20 bytes of message data and 4 bytes to hold the message length).
 *
 * @param pxHigherPriorityTaskWoken  It is possible that a message buffer will
 * have a task blocked on it waiting for data.  Calling
 * xMessageBufferSendFromISR() can make data available, and so cause a task that
 * was waiting for data to leave the Blocked state.  If calling
 * xMessageBufferSendFromISR() causes a task to leave the Blocked state, and the
 * unblocked task has a priority higher than the currently executing task (the
 * task that was interrupted), then, internally, xMessageBufferSendFromISR()
 * will set *pxHigherPriorityTaskWoken to pdTRUE.  If
 * xMessageBufferSendFromISR() sets this value to pdTRUE, then normally a
 * context switch should be performed before the interrupt is exited.  This will
 * ensure that the interrupt returns directly to the highest priority Ready
 * state task.  *pxHigherPriorityTaskWoken should be set to pdFALSE before it
 * is passed into the function.  See the code example below for an example.
 *
 * @return The number of bytes actually written to the message buffer.  If the
 * message buffer didn't have enough free space for the message to be stored
 * then 0 is returned, otherwise xDataLengthBytes is returned.
 *
 * Example use:
// A message buffer that has already been created.
MessageBufferHandle_t xMessageBuffer;

void vAnInterruptServiceRoutine( void )
{
size_t xBytesSent;
char *pcStringToSend = "String to send";
BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Initialised to pdFALSE.

    // Attempt to send the string to the message buffer.
    xBytesSent = xMessageBufferSendFromISR( xMessageBuffer,
                                            ( void * ) pcStringToSend,
                                            strlen( pcStringToSend ),
                                            &xHigherPriorityTaskWoken );

    if( xBytesSent != strlen( pcStringToSend ) )
    {
        // The string could not be added to the message buffer because there was
        // not enough free space in the buffer.
    }

    // If xHigherPriorityTaskWoken was set to pdTRUE inside
    // xMessageBufferSendFromISR() then a task that has a priority above the
    // priority of the currently executing task was unblocked and a context
    // switch should be performed to ensure the ISR returns to the unblocked
    // task.  In most FreeRTOS ports this is done by simply passing
    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the
    // variables value, and perform the context switch if necessary.  Check the
    // documentation for the port in use for port specific instructions.
    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
* \defgroup xMessageBufferSendFromISR xMessageBufferSendFromISR * \ingroup MessageBufferManagement */ #define xMessageBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) xStreamBufferSendFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) /** * message_buffer.h *
size_t xMessageBufferReceive( MessageBufferHandle_t xMessageBuffer,
                              void *pvRxData,
                              size_t xBufferLengthBytes,
                              TickType_t xTicksToWait );
* * Receives a discrete message from a message buffer. Messages can be of * variable length and are copied out of the buffer. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xMessageBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xMessageBufferRead()) inside a critical section and set the receive * block time to 0. * * Use xMessageBufferReceive() to read from a message buffer from a task. Use * xMessageBufferReceiveFromISR() to read from a message buffer from an * interrupt service routine (ISR). * * @param xMessageBuffer The handle of the message buffer from which a message * is being received. * * @param pvRxData A pointer to the buffer into which the received message is * to be copied. * * @param xBufferLengthBytes The length of the buffer pointed to by the pvRxData * parameter. This sets the maximum length of the message that can be received. * If xBufferLengthBytes is too small to hold the next message then the message * will be left in the message buffer and 0 will be returned. * * @param xTicksToWait The maximum amount of time the task should remain in the * Blocked state to wait for a message, should the message buffer be empty. * xMessageBufferReceive() will return immediately if xTicksToWait is zero and * the message buffer is empty. The block time is specified in tick periods, so * the absolute time it represents is dependent on the tick frequency. The * macro pdMS_TO_TICKS() can be used to convert a time specified in milliseconds * into a time specified in ticks. Setting xTicksToWait to portMAX_DELAY will * cause the task to wait indefinitely (without timing out), provided * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h. Tasks do not use any * CPU time when they are in the Blocked state. * * @return The length, in bytes, of the message read from the message buffer, if * any. If xMessageBufferReceive() times out before a message became available * then zero is returned. If the length of the message is greater than * xBufferLengthBytes then the message will be left in the message buffer and * zero is returned. * * Example use:
void vAFunction( MessageBuffer_t xMessageBuffer )
{
uint8_t ucRxData[ 20 ];
size_t xReceivedBytes;
const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );

    // Receive the next message from the message buffer.  Wait in the Blocked
    // state (so not using any CPU processing time) for a maximum of 100ms for
    // a message to become available.
    xReceivedBytes = xMessageBufferReceive( xMessageBuffer,
                                            ( void * ) ucRxData,
                                            sizeof( ucRxData ),
                                            xBlockTime );

    if( xReceivedBytes > 0 )
    {
        // A ucRxData contains a message that is xReceivedBytes long.  Process
        // the message here....
    }
}
* \defgroup xMessageBufferReceive xMessageBufferReceive * \ingroup MessageBufferManagement */ #define xMessageBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) xStreamBufferReceive( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) /** * message_buffer.h *
size_t xMessageBufferReceiveFromISR( MessageBufferHandle_t xMessageBuffer,
                                     void *pvRxData,
                                     size_t xBufferLengthBytes,
                                     BaseType_t *pxHigherPriorityTaskWoken );
* * An interrupt safe version of the API function that receives a discrete * message from a message buffer. Messages can be of variable length and are * copied out of the buffer. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xMessageBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xMessageBufferRead()) inside a critical section and set the receive * block time to 0. * * Use xMessageBufferReceive() to read from a message buffer from a task. Use * xMessageBufferReceiveFromISR() to read from a message buffer from an * interrupt service routine (ISR). * * @param xMessageBuffer The handle of the message buffer from which a message * is being received. * * @param pvRxData A pointer to the buffer into which the received message is * to be copied. * * @param xBufferLengthBytes The length of the buffer pointed to by the pvRxData * parameter. This sets the maximum length of the message that can be received. * If xBufferLengthBytes is too small to hold the next message then the message * will be left in the message buffer and 0 will be returned. * * @param pxHigherPriorityTaskWoken It is possible that a message buffer will * have a task blocked on it waiting for space to become available. Calling * xMessageBufferReceiveFromISR() can make space available, and so cause a task * that is waiting for space to leave the Blocked state. If calling * xMessageBufferReceiveFromISR() causes a task to leave the Blocked state, and * the unblocked task has a priority higher than the currently executing task * (the task that was interrupted), then, internally, * xMessageBufferReceiveFromISR() will set *pxHigherPriorityTaskWoken to pdTRUE. * If xMessageBufferReceiveFromISR() sets this value to pdTRUE, then normally a * context switch should be performed before the interrupt is exited. That will * ensure the interrupt returns directly to the highest priority Ready state * task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it is * passed into the function. See the code example below for an example. * * @return The length, in bytes, of the message read from the message buffer, if * any. * * Example use:
// A message buffer that has already been created.
MessageBuffer_t xMessageBuffer;

void vAnInterruptServiceRoutine( void )
{
uint8_t ucRxData[ 20 ];
size_t xReceivedBytes;
BaseType_t xHigherPriorityTaskWoken = pdFALSE;  // Initialised to pdFALSE.

    // Receive the next message from the message buffer.
    xReceivedBytes = xMessageBufferReceiveFromISR( xMessageBuffer,
                                                  ( void * ) ucRxData,
                                                  sizeof( ucRxData ),
                                                  &xHigherPriorityTaskWoken );

    if( xReceivedBytes > 0 )
    {
        // A ucRxData contains a message that is xReceivedBytes long.  Process
        // the message here....
    }

    // If xHigherPriorityTaskWoken was set to pdTRUE inside
    // xMessageBufferReceiveFromISR() then a task that has a priority above the
    // priority of the currently executing task was unblocked and a context
    // switch should be performed to ensure the ISR returns to the unblocked
    // task.  In most FreeRTOS ports this is done by simply passing
    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the
    // variables value, and perform the context switch if necessary.  Check the
    // documentation for the port in use for port specific instructions.
    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
* \defgroup xMessageBufferReceiveFromISR xMessageBufferReceiveFromISR * \ingroup MessageBufferManagement */ #define xMessageBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) xStreamBufferReceiveFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) /** * message_buffer.h *
void vMessageBufferDelete( MessageBufferHandle_t xMessageBuffer );
* * Deletes a message buffer that was previously created using a call to * xMessageBufferCreate() or xMessageBufferCreateStatic(). If the message * buffer was created using dynamic memory (that is, by xMessageBufferCreate()), * then the allocated memory is freed. * * A message buffer handle must not be used after the message buffer has been * deleted. * * @param xMessageBuffer The handle of the message buffer to be deleted. * */ #define vMessageBufferDelete( xMessageBuffer ) vStreamBufferDelete( ( StreamBufferHandle_t ) xMessageBuffer ) /** * message_buffer.h
BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer ) );
* * Tests to see if a message buffer is full. A message buffer is full if it * cannot accept any more messages, of any size, until space is made available * by a message being removed from the message buffer. * * @param xMessageBuffer The handle of the message buffer being queried. * * @return If the message buffer referenced by xMessageBuffer is full then * pdTRUE is returned. Otherwise pdFALSE is returned. */ #define xMessageBufferIsFull( xMessageBuffer ) xStreamBufferIsFull( ( StreamBufferHandle_t ) xMessageBuffer ) /** * message_buffer.h
BaseType_t xMessageBufferIsEmpty( MessageBufferHandle_t xMessageBuffer ) );
* * Tests to see if a message buffer is empty (does not contain any messages). * * @param xMessageBuffer The handle of the message buffer being queried. * * @return If the message buffer referenced by xMessageBuffer is empty then * pdTRUE is returned. Otherwise pdFALSE is returned. * */ #define xMessageBufferIsEmpty( xMessageBuffer ) xStreamBufferIsEmpty( ( StreamBufferHandle_t ) xMessageBuffer ) /** * message_buffer.h
BaseType_t xMessageBufferReset( MessageBufferHandle_t xMessageBuffer );
* * Resets a message buffer to its initial empty state, discarding any message it * contained. * * A message buffer can only be reset if there are no tasks blocked on it. * * @param xMessageBuffer The handle of the message buffer being reset. * * @return If the message buffer was reset then pdPASS is returned. If the * message buffer could not be reset because either there was a task blocked on * the message queue to wait for space to become available, or to wait for a * a message to be available, then pdFAIL is returned. * * \defgroup xMessageBufferReset xMessageBufferReset * \ingroup MessageBufferManagement */ #define xMessageBufferReset( xMessageBuffer ) xStreamBufferReset( ( StreamBufferHandle_t ) xMessageBuffer ) /** * message_buffer.h
size_t xMessageBufferSpaceAvailable( MessageBufferHandle_t xMessageBuffer ) );
* Returns the number of bytes of free space in the message buffer. * * @param xMessageBuffer The handle of the message buffer being queried. * * @return The number of bytes that can be written to the message buffer before * the message buffer would be full. When a message is written to the message * buffer an additional sizeof( size_t ) bytes are also written to store the * message's length. sizeof( size_t ) is typically 4 bytes on a 32-bit * architecture, so if xMessageBufferSpacesAvailable() returns 10, then the size * of the largest message that can be written to the message buffer is 6 bytes. * * \defgroup xMessageBufferSpaceAvailable xMessageBufferSpaceAvailable * \ingroup MessageBufferManagement */ #define xMessageBufferSpaceAvailable( xMessageBuffer ) xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) #define xMessageBufferSpacesAvailable( xMessageBuffer ) xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) /* Corrects typo in original macro name. */ /** * message_buffer.h
 size_t xMessageBufferNextLengthBytes( MessageBufferHandle_t xMessageBuffer ) );
 
* Returns the length (in bytes) of the next message in a message buffer. * Useful if xMessageBufferReceive() returned 0 because the size of the buffer * passed into xMessageBufferReceive() was too small to hold the next message. * * @param xMessageBuffer The handle of the message buffer being queried. * * @return The length (in bytes) of the next message in the message buffer, or 0 * if the message buffer is empty. * * \defgroup xMessageBufferNextLengthBytes xMessageBufferNextLengthBytes * \ingroup MessageBufferManagement */ #define xMessageBufferNextLengthBytes( xMessageBuffer ) xStreamBufferNextMessageLengthBytes( ( StreamBufferHandle_t ) xMessageBuffer ) PRIVILEGED_FUNCTION; /** * message_buffer.h *
BaseType_t xMessageBufferSendCompletedFromISR( MessageBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
* * For advanced users only. * * The sbSEND_COMPLETED() macro is called from within the FreeRTOS APIs when * data is sent to a message buffer or stream buffer. If there was a task that * was blocked on the message or stream buffer waiting for data to arrive then * the sbSEND_COMPLETED() macro sends a notification to the task to remove it * from the Blocked state. xMessageBufferSendCompletedFromISR() does the same * thing. It is provided to enable application writers to implement their own * version of sbSEND_COMPLETED(), and MUST NOT BE USED AT ANY OTHER TIME. * * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for * additional information. * * @param xStreamBuffer The handle of the stream buffer to which data was * written. * * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be * initialised to pdFALSE before it is passed into * xMessageBufferSendCompletedFromISR(). If calling * xMessageBufferSendCompletedFromISR() removes a task from the Blocked state, * and the task has a priority above the priority of the currently running task, * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a * context switch should be performed before exiting the ISR. * * @return If a task was removed from the Blocked state then pdTRUE is returned. * Otherwise pdFALSE is returned. * * \defgroup xMessageBufferSendCompletedFromISR xMessageBufferSendCompletedFromISR * \ingroup StreamBufferManagement */ #define xMessageBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) xStreamBufferSendCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) /** * message_buffer.h *
BaseType_t xMessageBufferReceiveCompletedFromISR( MessageBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
* * For advanced users only. * * The sbRECEIVE_COMPLETED() macro is called from within the FreeRTOS APIs when * data is read out of a message buffer or stream buffer. If there was a task * that was blocked on the message or stream buffer waiting for data to arrive * then the sbRECEIVE_COMPLETED() macro sends a notification to the task to * remove it from the Blocked state. xMessageBufferReceiveCompletedFromISR() * does the same thing. It is provided to enable application writers to * implement their own version of sbRECEIVE_COMPLETED(), and MUST NOT BE USED AT * ANY OTHER TIME. * * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for * additional information. * * @param xStreamBuffer The handle of the stream buffer from which data was * read. * * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be * initialised to pdFALSE before it is passed into * xMessageBufferReceiveCompletedFromISR(). If calling * xMessageBufferReceiveCompletedFromISR() removes a task from the Blocked state, * and the task has a priority above the priority of the currently running task, * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a * context switch should be performed before exiting the ISR. * * @return If a task was removed from the Blocked state then pdTRUE is returned. * Otherwise pdFALSE is returned. * * \defgroup xMessageBufferReceiveCompletedFromISR xMessageBufferReceiveCompletedFromISR * \ingroup StreamBufferManagement */ #define xMessageBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) xStreamBufferReceiveCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) #if defined( __cplusplus ) } /* extern "C" */ #endif #endif /* !defined( FREERTOS_MESSAGE_BUFFER_H ) */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * When the MPU is used the standard (non MPU) API functions are mapped to * equivalents that start "MPU_", the prototypes for which are defined in this * header files. This will cause the application code to call the MPU_ version * which wraps the non-MPU version with privilege promoting then demoting code, * so the kernel code always runs will full privileges. */ #ifndef MPU_PROTOTYPES_H #define MPU_PROTOTYPES_H /* MPU versions of tasks.h API functions. */ BaseType_t MPU_xTaskCreate( TaskFunction_t pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xTaskCreateStatic( TaskFunction_t pxTaskCode, const char * const pcName, const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) FREERTOS_SYSTEM_CALL; void MPU_vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions ) FREERTOS_SYSTEM_CALL; void MPU_vTaskDelete( TaskHandle_t xTaskToDelete ) FREERTOS_SYSTEM_CALL; void MPU_vTaskDelay( const TickType_t xTicksToDelay ) FREERTOS_SYSTEM_CALL; void MPU_vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskAbortDelay( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxTaskPriorityGet( const TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; eTaskState MPU_eTaskGetState( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; void MPU_vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) FREERTOS_SYSTEM_CALL; void MPU_vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) FREERTOS_SYSTEM_CALL; void MPU_vTaskSuspend( TaskHandle_t xTaskToSuspend ) FREERTOS_SYSTEM_CALL; void MPU_vTaskResume( TaskHandle_t xTaskToResume ) FREERTOS_SYSTEM_CALL; void MPU_vTaskStartScheduler( void ) FREERTOS_SYSTEM_CALL; void MPU_vTaskSuspendAll( void ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskResumeAll( void ) FREERTOS_SYSTEM_CALL; TickType_t MPU_xTaskGetTickCount( void ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxTaskGetNumberOfTasks( void ) FREERTOS_SYSTEM_CALL; char * MPU_pcTaskGetName( TaskHandle_t xTaskToQuery ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xTaskGetHandle( const char *pcNameToQuery ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; configSTACK_DEPTH_TYPE MPU_uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; void MPU_vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) FREERTOS_SYSTEM_CALL; TaskHookFunction_t MPU_xTaskGetApplicationTaskTag( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; void MPU_vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) FREERTOS_SYSTEM_CALL; void * MPU_pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xTaskGetIdleTaskHandle( void ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) FREERTOS_SYSTEM_CALL; uint32_t MPU_ulTaskGetIdleRunTimeCounter( void ) FREERTOS_SYSTEM_CALL; void MPU_vTaskList( char * pcWriteBuffer ) FREERTOS_SYSTEM_CALL; void MPU_vTaskGetRunTimeStats( char *pcWriteBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; uint32_t MPU_ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskNotifyStateClear( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; uint32_t MPU_ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskIncrementTick( void ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xTaskGetCurrentTaskHandle( void ) FREERTOS_SYSTEM_CALL; void MPU_vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) FREERTOS_SYSTEM_CALL; void MPU_vTaskMissedYield( void ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskGetSchedulerState( void ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) FREERTOS_SYSTEM_CALL; /* MPU versions of queue.h API functions. */ BaseType_t MPU_xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxQueueMessagesWaiting( const QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxQueueSpacesAvailable( const QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; void MPU_vQueueDelete( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueCreateMutex( const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueGiveMutexRecursive( QueueHandle_t pxMutex ) FREERTOS_SYSTEM_CALL; void MPU_vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcName ) FREERTOS_SYSTEM_CALL; void MPU_vQueueUnregisterQueue( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; const char * MPU_pcQueueGetName( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; QueueHandle_t MPU_xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; QueueSetHandle_t MPU_xQueueCreateSet( const UBaseType_t uxEventQueueLength ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) FREERTOS_SYSTEM_CALL; QueueSetMemberHandle_t MPU_xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) FREERTOS_SYSTEM_CALL; void MPU_vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxQueueGetQueueNumber( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; uint8_t MPU_ucQueueGetQueueType( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; /* MPU versions of timers.h API functions. */ TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction ) FREERTOS_SYSTEM_CALL; TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer ) FREERTOS_SYSTEM_CALL; void * MPU_pvTimerGetTimerID( const TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; void MPU_vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTimerIsTimerActive( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; TaskHandle_t MPU_xTimerGetTimerDaemonTaskHandle( void ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; const char * MPU_pcTimerGetName( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; void MPU_vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxTimerGetReloadMode( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; TickType_t MPU_xTimerGetPeriod( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; TickType_t MPU_xTimerGetExpiryTime( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTimerCreateTimerTask( void ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; /* MPU versions of event_group.h API functions. */ EventGroupHandle_t MPU_xEventGroupCreate( void ) FREERTOS_SYSTEM_CALL; EventGroupHandle_t MPU_xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) FREERTOS_SYSTEM_CALL; EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) FREERTOS_SYSTEM_CALL; EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) FREERTOS_SYSTEM_CALL; EventBits_t MPU_xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; void MPU_vEventGroupDelete( EventGroupHandle_t xEventGroup ) FREERTOS_SYSTEM_CALL; UBaseType_t MPU_uxEventGroupGetNumber( void* xEventGroup ) FREERTOS_SYSTEM_CALL; /* MPU versions of message/stream_buffer.h API functions. */ size_t MPU_xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; size_t MPU_xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; size_t MPU_xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; void MPU_vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; size_t MPU_xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; size_t MPU_xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; BaseType_t MPU_xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) FREERTOS_SYSTEM_CALL; StreamBufferHandle_t MPU_xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer ) FREERTOS_SYSTEM_CALL; StreamBufferHandle_t MPU_xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer, uint8_t * const pucStreamBufferStorageArea, StaticStreamBuffer_t * const pxStaticStreamBuffer ) FREERTOS_SYSTEM_CALL; #endif /* MPU_PROTOTYPES_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef MPU_WRAPPERS_H #define MPU_WRAPPERS_H /* This file redefines API functions to be called through a wrapper macro, but only for ports that are using the MPU. */ #ifdef portUSING_MPU_WRAPPERS /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is included from queue.c or task.c to prevent it from having an effect within those files. */ #ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /* * Map standard (non MPU) API functions to equivalents that start * "MPU_". This will cause the application code to call the MPU_ * version, which wraps the non-MPU version with privilege promoting * then demoting code, so the kernel code always runs will full * privileges. */ /* Map standard tasks.h API functions to the MPU equivalents. */ #define xTaskCreate MPU_xTaskCreate #define xTaskCreateStatic MPU_xTaskCreateStatic #define xTaskCreateRestricted MPU_xTaskCreateRestricted #define vTaskAllocateMPURegions MPU_vTaskAllocateMPURegions #define vTaskDelete MPU_vTaskDelete #define vTaskDelay MPU_vTaskDelay #define vTaskDelayUntil MPU_vTaskDelayUntil #define xTaskAbortDelay MPU_xTaskAbortDelay #define uxTaskPriorityGet MPU_uxTaskPriorityGet #define eTaskGetState MPU_eTaskGetState #define vTaskGetInfo MPU_vTaskGetInfo #define vTaskPrioritySet MPU_vTaskPrioritySet #define vTaskSuspend MPU_vTaskSuspend #define vTaskResume MPU_vTaskResume #define vTaskSuspendAll MPU_vTaskSuspendAll #define xTaskResumeAll MPU_xTaskResumeAll #define xTaskGetTickCount MPU_xTaskGetTickCount #define uxTaskGetNumberOfTasks MPU_uxTaskGetNumberOfTasks #define pcTaskGetName MPU_pcTaskGetName #define xTaskGetHandle MPU_xTaskGetHandle #define uxTaskGetStackHighWaterMark MPU_uxTaskGetStackHighWaterMark #define uxTaskGetStackHighWaterMark2 MPU_uxTaskGetStackHighWaterMark2 #define vTaskSetApplicationTaskTag MPU_vTaskSetApplicationTaskTag #define xTaskGetApplicationTaskTag MPU_xTaskGetApplicationTaskTag #define vTaskSetThreadLocalStoragePointer MPU_vTaskSetThreadLocalStoragePointer #define pvTaskGetThreadLocalStoragePointer MPU_pvTaskGetThreadLocalStoragePointer #define xTaskCallApplicationTaskHook MPU_xTaskCallApplicationTaskHook #define xTaskGetIdleTaskHandle MPU_xTaskGetIdleTaskHandle #define uxTaskGetSystemState MPU_uxTaskGetSystemState #define vTaskList MPU_vTaskList #define vTaskGetRunTimeStats MPU_vTaskGetRunTimeStats #define ulTaskGetIdleRunTimeCounter MPU_ulTaskGetIdleRunTimeCounter #define xTaskGenericNotify MPU_xTaskGenericNotify #define xTaskNotifyWait MPU_xTaskNotifyWait #define ulTaskNotifyTake MPU_ulTaskNotifyTake #define xTaskNotifyStateClear MPU_xTaskNotifyStateClear #define ulTaskNotifyValueClear MPU_ulTaskNotifyValueClear #define xTaskCatchUpTicks MPU_xTaskCatchUpTicks #define xTaskGetCurrentTaskHandle MPU_xTaskGetCurrentTaskHandle #define vTaskSetTimeOutState MPU_vTaskSetTimeOutState #define xTaskCheckForTimeOut MPU_xTaskCheckForTimeOut #define xTaskGetSchedulerState MPU_xTaskGetSchedulerState /* Map standard queue.h API functions to the MPU equivalents. */ #define xQueueGenericSend MPU_xQueueGenericSend #define xQueueReceive MPU_xQueueReceive #define xQueuePeek MPU_xQueuePeek #define xQueueSemaphoreTake MPU_xQueueSemaphoreTake #define uxQueueMessagesWaiting MPU_uxQueueMessagesWaiting #define uxQueueSpacesAvailable MPU_uxQueueSpacesAvailable #define vQueueDelete MPU_vQueueDelete #define xQueueCreateMutex MPU_xQueueCreateMutex #define xQueueCreateMutexStatic MPU_xQueueCreateMutexStatic #define xQueueCreateCountingSemaphore MPU_xQueueCreateCountingSemaphore #define xQueueCreateCountingSemaphoreStatic MPU_xQueueCreateCountingSemaphoreStatic #define xQueueGetMutexHolder MPU_xQueueGetMutexHolder #define xQueueTakeMutexRecursive MPU_xQueueTakeMutexRecursive #define xQueueGiveMutexRecursive MPU_xQueueGiveMutexRecursive #define xQueueGenericCreate MPU_xQueueGenericCreate #define xQueueGenericCreateStatic MPU_xQueueGenericCreateStatic #define xQueueCreateSet MPU_xQueueCreateSet #define xQueueAddToSet MPU_xQueueAddToSet #define xQueueRemoveFromSet MPU_xQueueRemoveFromSet #define xQueueSelectFromSet MPU_xQueueSelectFromSet #define xQueueGenericReset MPU_xQueueGenericReset #if( configQUEUE_REGISTRY_SIZE > 0 ) #define vQueueAddToRegistry MPU_vQueueAddToRegistry #define vQueueUnregisterQueue MPU_vQueueUnregisterQueue #define pcQueueGetName MPU_pcQueueGetName #endif /* Map standard timer.h API functions to the MPU equivalents. */ #define xTimerCreate MPU_xTimerCreate #define xTimerCreateStatic MPU_xTimerCreateStatic #define pvTimerGetTimerID MPU_pvTimerGetTimerID #define vTimerSetTimerID MPU_vTimerSetTimerID #define xTimerIsTimerActive MPU_xTimerIsTimerActive #define xTimerGetTimerDaemonTaskHandle MPU_xTimerGetTimerDaemonTaskHandle #define xTimerPendFunctionCall MPU_xTimerPendFunctionCall #define pcTimerGetName MPU_pcTimerGetName #define vTimerSetReloadMode MPU_vTimerSetReloadMode #define uxTimerGetReloadMode MPU_uxTimerGetReloadMode #define xTimerGetPeriod MPU_xTimerGetPeriod #define xTimerGetExpiryTime MPU_xTimerGetExpiryTime #define xTimerGenericCommand MPU_xTimerGenericCommand /* Map standard event_group.h API functions to the MPU equivalents. */ #define xEventGroupCreate MPU_xEventGroupCreate #define xEventGroupCreateStatic MPU_xEventGroupCreateStatic #define xEventGroupWaitBits MPU_xEventGroupWaitBits #define xEventGroupClearBits MPU_xEventGroupClearBits #define xEventGroupSetBits MPU_xEventGroupSetBits #define xEventGroupSync MPU_xEventGroupSync #define vEventGroupDelete MPU_vEventGroupDelete /* Map standard message/stream_buffer.h API functions to the MPU equivalents. */ #define xStreamBufferSend MPU_xStreamBufferSend #define xStreamBufferReceive MPU_xStreamBufferReceive #define xStreamBufferNextMessageLengthBytes MPU_xStreamBufferNextMessageLengthBytes #define vStreamBufferDelete MPU_vStreamBufferDelete #define xStreamBufferIsFull MPU_xStreamBufferIsFull #define xStreamBufferIsEmpty MPU_xStreamBufferIsEmpty #define xStreamBufferReset MPU_xStreamBufferReset #define xStreamBufferSpacesAvailable MPU_xStreamBufferSpacesAvailable #define xStreamBufferBytesAvailable MPU_xStreamBufferBytesAvailable #define xStreamBufferSetTriggerLevel MPU_xStreamBufferSetTriggerLevel #define xStreamBufferGenericCreate MPU_xStreamBufferGenericCreate #define xStreamBufferGenericCreateStatic MPU_xStreamBufferGenericCreateStatic /* Remove the privileged function macro, but keep the PRIVILEGED_DATA macro so applications can place data in privileged access sections (useful when using statically allocated objects). */ #define PRIVILEGED_FUNCTION #define PRIVILEGED_DATA __attribute__((section("privileged_data"))) #define FREERTOS_SYSTEM_CALL #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */ /* Ensure API functions go in the privileged execution section. */ #define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions"))) #define PRIVILEGED_DATA __attribute__((section("privileged_data"))) #define FREERTOS_SYSTEM_CALL __attribute__((section( "freertos_system_calls"))) #endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */ #else /* portUSING_MPU_WRAPPERS */ #define PRIVILEGED_FUNCTION #define PRIVILEGED_DATA #define FREERTOS_SYSTEM_CALL #define portUSING_MPU_WRAPPERS 0 #endif /* portUSING_MPU_WRAPPERS */ #endif /* MPU_WRAPPERS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/portable.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /*----------------------------------------------------------- * Portable layer API. Each function must be defined for each port. *----------------------------------------------------------*/ #ifndef PORTABLE_H #define PORTABLE_H /* Each FreeRTOS port has a unique portmacro.h header file. Originally a pre-processor definition was used to ensure the pre-processor found the correct portmacro.h file for the port being used. That scheme was deprecated in favour of setting the compiler's include path such that it found the correct portmacro.h file - removing the need for the constant and allowing the portmacro.h file to be located anywhere in relation to the port being used. Purely for reasons of backward compatibility the old method is still valid, but to make it clear that new projects should not use it, support for the port specific constants has been moved into the deprecated_definitions.h header file. */ #include "deprecated_definitions.h" /* If portENTER_CRITICAL is not defined then including deprecated_definitions.h did not result in a portmacro.h header file being included - and it should be included here. In this case the path to the correct portmacro.h header file must be set in the compiler's include path. */ #ifndef portENTER_CRITICAL #include "portmacro.h" #endif #if portBYTE_ALIGNMENT == 32 #define portBYTE_ALIGNMENT_MASK ( 0x001f ) #endif #if portBYTE_ALIGNMENT == 16 #define portBYTE_ALIGNMENT_MASK ( 0x000f ) #endif #if portBYTE_ALIGNMENT == 8 #define portBYTE_ALIGNMENT_MASK ( 0x0007 ) #endif #if portBYTE_ALIGNMENT == 4 #define portBYTE_ALIGNMENT_MASK ( 0x0003 ) #endif #if portBYTE_ALIGNMENT == 2 #define portBYTE_ALIGNMENT_MASK ( 0x0001 ) #endif #if portBYTE_ALIGNMENT == 1 #define portBYTE_ALIGNMENT_MASK ( 0x0000 ) #endif #ifndef portBYTE_ALIGNMENT_MASK #error "Invalid portBYTE_ALIGNMENT definition" #endif #ifndef portNUM_CONFIGURABLE_REGIONS #define portNUM_CONFIGURABLE_REGIONS 1 #endif #ifndef portHAS_STACK_OVERFLOW_CHECKING #define portHAS_STACK_OVERFLOW_CHECKING 0 #endif #ifndef portARCH_NAME #define portARCH_NAME NULL #endif #ifdef __cplusplus extern "C" { #endif #include "mpu_wrappers.h" /* * Setup the stack of a new task so it is ready to be placed under the * scheduler control. The registers have to be placed on the stack in * the order that the port expects to find them. * */ #if( portUSING_MPU_WRAPPERS == 1 ) #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION; #else StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION; #endif #else #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION; #else StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION; #endif #endif /* Used by heap_5.c to define the start address and size of each memory region that together comprise the total FreeRTOS heap space. */ typedef struct HeapRegion { uint8_t *pucStartAddress; size_t xSizeInBytes; } HeapRegion_t; /* Used to pass information about the heap out of vPortGetHeapStats(). */ typedef struct xHeapStats { size_t xAvailableHeapSpaceInBytes; /* The total heap size currently available - this is the sum of all the free blocks, not the largest block that can be allocated. */ size_t xSizeOfLargestFreeBlockInBytes; /* The maximum size, in bytes, of all the free blocks within the heap at the time vPortGetHeapStats() is called. */ size_t xSizeOfSmallestFreeBlockInBytes; /* The minimum size, in bytes, of all the free blocks within the heap at the time vPortGetHeapStats() is called. */ size_t xNumberOfFreeBlocks; /* The number of free memory blocks within the heap at the time vPortGetHeapStats() is called. */ size_t xMinimumEverFreeBytesRemaining; /* The minimum amount of total free memory (sum of all free blocks) there has been in the heap since the system booted. */ size_t xNumberOfSuccessfulAllocations; /* The number of calls to pvPortMalloc() that have returned a valid memory block. */ size_t xNumberOfSuccessfulFrees; /* The number of calls to vPortFree() that has successfully freed a block of memory. */ } HeapStats_t; /* * Used to define multiple heap regions for use by heap_5.c. This function * must be called before any calls to pvPortMalloc() - not creating a task, * queue, semaphore, mutex, software timer, event group, etc. will result in * pvPortMalloc being called. * * pxHeapRegions passes in an array of HeapRegion_t structures - each of which * defines a region of memory that can be used as the heap. The array is * terminated by a HeapRegions_t structure that has a size of 0. The region * with the lowest start address must appear first in the array. */ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEGED_FUNCTION; /* * Returns a HeapStats_t structure filled with information about the current * heap state. */ void vPortGetHeapStats( HeapStats_t *pxHeapStats ); /* * Map to the memory management routines required for the port. */ void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION; void vPortFree( void *pv ) PRIVILEGED_FUNCTION; void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION; size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION; size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION; /* * Setup the hardware ready for the scheduler to take control. This generally * sets up a tick interrupt and sets timers for the correct tick frequency. */ BaseType_t xPortStartScheduler( void ) PRIVILEGED_FUNCTION; /* * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so * the hardware is left in its original condition after the scheduler stops * executing. */ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION; /* * The structures and methods of manipulating the MPU are contained within the * port layer. * * Fills the xMPUSettings structure with the memory region information * contained in xRegions. */ #if( portUSING_MPU_WRAPPERS == 1 ) struct xMEMORY_REGION; void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t ulStackDepth ) PRIVILEGED_FUNCTION; #endif #ifdef __cplusplus } #endif #endif /* PORTABLE_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef PROJDEFS_H #define PROJDEFS_H /* * Defines the prototype to which task functions must conform. Defined in this * file to ensure the type is known before portable.h is included. */ typedef void (*TaskFunction_t)( void * ); /* Converts a time in milliseconds to a time in ticks. This macro can be overridden by a macro of the same name defined in FreeRTOSConfig.h in case the definition here is not suitable for your application. */ #ifndef pdMS_TO_TICKS #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) ) #endif #define pdFALSE ( ( BaseType_t ) 0 ) #define pdTRUE ( ( BaseType_t ) 1 ) #define pdPASS ( pdTRUE ) #define pdFAIL ( pdFALSE ) #define errQUEUE_EMPTY ( ( BaseType_t ) 0 ) #define errQUEUE_FULL ( ( BaseType_t ) 0 ) /* FreeRTOS error definitions. */ #define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 ) #define errQUEUE_BLOCKED ( -4 ) #define errQUEUE_YIELD ( -5 ) /* Macros used for basic data corruption checks. */ #ifndef configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES #define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0 #endif #if( configUSE_16_BIT_TICKS == 1 ) #define pdINTEGRITY_CHECK_VALUE 0x5a5a #else #define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL #endif /* The following errno values are used by FreeRTOS+ components, not FreeRTOS itself. */ #define pdFREERTOS_ERRNO_NONE 0 /* No errors */ #define pdFREERTOS_ERRNO_ENOENT 2 /* No such file or directory */ #define pdFREERTOS_ERRNO_EINTR 4 /* Interrupted system call */ #define pdFREERTOS_ERRNO_EIO 5 /* I/O error */ #define pdFREERTOS_ERRNO_ENXIO 6 /* No such device or address */ #define pdFREERTOS_ERRNO_EBADF 9 /* Bad file number */ #define pdFREERTOS_ERRNO_EAGAIN 11 /* No more processes */ #define pdFREERTOS_ERRNO_EWOULDBLOCK 11 /* Operation would block */ #define pdFREERTOS_ERRNO_ENOMEM 12 /* Not enough memory */ #define pdFREERTOS_ERRNO_EACCES 13 /* Permission denied */ #define pdFREERTOS_ERRNO_EFAULT 14 /* Bad address */ #define pdFREERTOS_ERRNO_EBUSY 16 /* Mount device busy */ #define pdFREERTOS_ERRNO_EEXIST 17 /* File exists */ #define pdFREERTOS_ERRNO_EXDEV 18 /* Cross-device link */ #define pdFREERTOS_ERRNO_ENODEV 19 /* No such device */ #define pdFREERTOS_ERRNO_ENOTDIR 20 /* Not a directory */ #define pdFREERTOS_ERRNO_EISDIR 21 /* Is a directory */ #define pdFREERTOS_ERRNO_EINVAL 22 /* Invalid argument */ #define pdFREERTOS_ERRNO_ENOSPC 28 /* No space left on device */ #define pdFREERTOS_ERRNO_ESPIPE 29 /* Illegal seek */ #define pdFREERTOS_ERRNO_EROFS 30 /* Read only file system */ #define pdFREERTOS_ERRNO_EUNATCH 42 /* Protocol driver not attached */ #define pdFREERTOS_ERRNO_EBADE 50 /* Invalid exchange */ #define pdFREERTOS_ERRNO_EFTYPE 79 /* Inappropriate file type or format */ #define pdFREERTOS_ERRNO_ENMFILE 89 /* No more files */ #define pdFREERTOS_ERRNO_ENOTEMPTY 90 /* Directory not empty */ #define pdFREERTOS_ERRNO_ENAMETOOLONG 91 /* File or path name too long */ #define pdFREERTOS_ERRNO_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ #define pdFREERTOS_ERRNO_ENOBUFS 105 /* No buffer space available */ #define pdFREERTOS_ERRNO_ENOPROTOOPT 109 /* Protocol not available */ #define pdFREERTOS_ERRNO_EADDRINUSE 112 /* Address already in use */ #define pdFREERTOS_ERRNO_ETIMEDOUT 116 /* Connection timed out */ #define pdFREERTOS_ERRNO_EINPROGRESS 119 /* Connection already in progress */ #define pdFREERTOS_ERRNO_EALREADY 120 /* Socket already connected */ #define pdFREERTOS_ERRNO_EADDRNOTAVAIL 125 /* Address not available */ #define pdFREERTOS_ERRNO_EISCONN 127 /* Socket is already connected */ #define pdFREERTOS_ERRNO_ENOTCONN 128 /* Socket is not connected */ #define pdFREERTOS_ERRNO_ENOMEDIUM 135 /* No medium inserted */ #define pdFREERTOS_ERRNO_EILSEQ 138 /* An invalid UTF-16 sequence was encountered. */ #define pdFREERTOS_ERRNO_ECANCELED 140 /* Operation canceled. */ /* The following endian values are used by FreeRTOS+ components, not FreeRTOS itself. */ #define pdFREERTOS_LITTLE_ENDIAN 0 #define pdFREERTOS_BIG_ENDIAN 1 /* Re-defining endian values for generic naming. */ #define pdLITTLE_ENDIAN pdFREERTOS_LITTLE_ENDIAN #define pdBIG_ENDIAN pdFREERTOS_BIG_ENDIAN #endif /* PROJDEFS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/queue.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef QUEUE_H #define QUEUE_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h" must appear in source files before "include queue.h" #endif #ifdef __cplusplus extern "C" { #endif #include "task.h" /** * Type by which queues are referenced. For example, a call to xQueueCreate() * returns an QueueHandle_t variable that can then be used as a parameter to * xQueueSend(), xQueueReceive(), etc. */ struct QueueDefinition; /* Using old naming convention so as not to break kernel aware debuggers. */ typedef struct QueueDefinition * QueueHandle_t; /** * Type by which queue sets are referenced. For example, a call to * xQueueCreateSet() returns an xQueueSet variable that can then be used as a * parameter to xQueueSelectFromSet(), xQueueAddToSet(), etc. */ typedef struct QueueDefinition * QueueSetHandle_t; /** * Queue sets can contain both queues and semaphores, so the * QueueSetMemberHandle_t is defined as a type to be used where a parameter or * return value can be either an QueueHandle_t or an SemaphoreHandle_t. */ typedef struct QueueDefinition * QueueSetMemberHandle_t; /* For internal use only. */ #define queueSEND_TO_BACK ( ( BaseType_t ) 0 ) #define queueSEND_TO_FRONT ( ( BaseType_t ) 1 ) #define queueOVERWRITE ( ( BaseType_t ) 2 ) /* For internal use only. These definitions *must* match those in queue.c. */ #define queueQUEUE_TYPE_BASE ( ( uint8_t ) 0U ) #define queueQUEUE_TYPE_SET ( ( uint8_t ) 0U ) #define queueQUEUE_TYPE_MUTEX ( ( uint8_t ) 1U ) #define queueQUEUE_TYPE_COUNTING_SEMAPHORE ( ( uint8_t ) 2U ) #define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U ) #define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U ) /** * queue. h *
 QueueHandle_t xQueueCreate(
							  UBaseType_t uxQueueLength,
							  UBaseType_t uxItemSize
						  );
 * 
* * Creates a new queue instance, and returns a handle by which the new queue * can be referenced. * * Internally, within the FreeRTOS implementation, queues use two blocks of * memory. The first block is used to hold the queue's data structures. The * second block is used to hold items placed into the queue. If a queue is * created using xQueueCreate() then both blocks of memory are automatically * dynamically allocated inside the xQueueCreate() function. (see * http://www.freertos.org/a00111.html). If a queue is created using * xQueueCreateStatic() then the application writer must provide the memory that * will get used by the queue. xQueueCreateStatic() therefore allows a queue to * be created without using any dynamic memory allocation. * * http://www.FreeRTOS.org/Embedded-RTOS-Queues.html * * @param uxQueueLength The maximum number of items that the queue can contain. * * @param uxItemSize The number of bytes each item in the queue will require. * Items are queued by copy, not by reference, so this is the number of bytes * that will be copied for each posted item. Each item on the queue must be * the same size. * * @return If the queue is successfully create then a handle to the newly * created queue is returned. If the queue cannot be created then 0 is * returned. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 };

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1, xQueue2;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
	if( xQueue1 == 0 )
	{
		// Queue was not created and must not be used.
	}

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
	if( xQueue2 == 0 )
	{
		// Queue was not created and must not be used.
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueCreate xQueueCreate * \ingroup QueueManagement */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) #define xQueueCreate( uxQueueLength, uxItemSize ) xQueueGenericCreate( ( uxQueueLength ), ( uxItemSize ), ( queueQUEUE_TYPE_BASE ) ) #endif /** * queue. h *
 QueueHandle_t xQueueCreateStatic(
							  UBaseType_t uxQueueLength,
							  UBaseType_t uxItemSize,
							  uint8_t *pucQueueStorageBuffer,
							  StaticQueue_t *pxQueueBuffer
						  );
 * 
* * Creates a new queue instance, and returns a handle by which the new queue * can be referenced. * * Internally, within the FreeRTOS implementation, queues use two blocks of * memory. The first block is used to hold the queue's data structures. The * second block is used to hold items placed into the queue. If a queue is * created using xQueueCreate() then both blocks of memory are automatically * dynamically allocated inside the xQueueCreate() function. (see * http://www.freertos.org/a00111.html). If a queue is created using * xQueueCreateStatic() then the application writer must provide the memory that * will get used by the queue. xQueueCreateStatic() therefore allows a queue to * be created without using any dynamic memory allocation. * * http://www.FreeRTOS.org/Embedded-RTOS-Queues.html * * @param uxQueueLength The maximum number of items that the queue can contain. * * @param uxItemSize The number of bytes each item in the queue will require. * Items are queued by copy, not by reference, so this is the number of bytes * that will be copied for each posted item. Each item on the queue must be * the same size. * * @param pucQueueStorageBuffer If uxItemSize is not zero then * pucQueueStorageBuffer must point to a uint8_t array that is at least large * enough to hold the maximum number of items that can be in the queue at any * one time - which is ( uxQueueLength * uxItemsSize ) bytes. If uxItemSize is * zero then pucQueueStorageBuffer can be NULL. * * @param pxQueueBuffer Must point to a variable of type StaticQueue_t, which * will be used to hold the queue's data structure. * * @return If the queue is created then a handle to the created queue is * returned. If pxQueueBuffer is NULL then NULL is returned. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 };

 #define QUEUE_LENGTH 10
 #define ITEM_SIZE sizeof( uint32_t )

 // xQueueBuffer will hold the queue structure.
 StaticQueue_t xQueueBuffer;

 // ucQueueStorage will hold the items posted to the queue.  Must be at least
 // [(queue length) * ( queue item size)] bytes long.
 uint8_t ucQueueStorage[ QUEUE_LENGTH * ITEM_SIZE ];

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( QUEUE_LENGTH, // The number of items the queue can hold.
							ITEM_SIZE	  // The size of each item in the queue
							&( ucQueueStorage[ 0 ] ), // The buffer that will hold the items in the queue.
							&xQueueBuffer ); // The buffer that will hold the queue structure.

	// The queue is guaranteed to be created successfully as no dynamic memory
	// allocation is used.  Therefore xQueue1 is now a handle to a valid queue.

	// ... Rest of task code.
 }
 
* \defgroup xQueueCreateStatic xQueueCreateStatic * \ingroup QueueManagement */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) #define xQueueCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxQueueBuffer ) xQueueGenericCreateStatic( ( uxQueueLength ), ( uxItemSize ), ( pucQueueStorage ), ( pxQueueBuffer ), ( queueQUEUE_TYPE_BASE ) ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * queue. h *
 BaseType_t xQueueSendToToFront(
								   QueueHandle_t	xQueue,
								   const void		*pvItemToQueue,
								   TickType_t		xTicksToWait
							   );
 * 
* * Post an item to the front of a queue. The item is queued by copy, not by * reference. This function must not be called from an interrupt service * routine. See xQueueSendFromISR () for an alternative which may be used * in an ISR. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param xTicksToWait The maximum amount of time the task should block * waiting for space to become available on the queue, should it already * be full. The call will return immediately if this is set to 0 and the * queue is full. The time is defined in tick periods so the constant * portTICK_PERIOD_MS should be used to convert to real time if this is required. * * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 uint32_t ulVar = 10UL;

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1, xQueue2;
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );

	// ...

	if( xQueue1 != 0 )
	{
		// Send an uint32_t.  Wait for 10 ticks for space to become
		// available if necessary.
		if( xQueueSendToFront( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
		{
			// Failed to post the message, even after 10 ticks.
		}
	}

	if( xQueue2 != 0 )
	{
		// Send a pointer to a struct AMessage object.  Don't block if the
		// queue is already full.
		pxMessage = & xMessage;
		xQueueSendToFront( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueSend xQueueSend * \ingroup QueueManagement */ #define xQueueSendToFront( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) /** * queue. h *
 BaseType_t xQueueSendToBack(
								   QueueHandle_t	xQueue,
								   const void		*pvItemToQueue,
								   TickType_t		xTicksToWait
							   );
 * 
* * This is a macro that calls xQueueGenericSend(). * * Post an item to the back of a queue. The item is queued by copy, not by * reference. This function must not be called from an interrupt service * routine. See xQueueSendFromISR () for an alternative which may be used * in an ISR. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param xTicksToWait The maximum amount of time the task should block * waiting for space to become available on the queue, should it already * be full. The call will return immediately if this is set to 0 and the queue * is full. The time is defined in tick periods so the constant * portTICK_PERIOD_MS should be used to convert to real time if this is required. * * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 uint32_t ulVar = 10UL;

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1, xQueue2;
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );

	// ...

	if( xQueue1 != 0 )
	{
		// Send an uint32_t.  Wait for 10 ticks for space to become
		// available if necessary.
		if( xQueueSendToBack( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
		{
			// Failed to post the message, even after 10 ticks.
		}
	}

	if( xQueue2 != 0 )
	{
		// Send a pointer to a struct AMessage object.  Don't block if the
		// queue is already full.
		pxMessage = & xMessage;
		xQueueSendToBack( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueSend xQueueSend * \ingroup QueueManagement */ #define xQueueSendToBack( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) /** * queue. h *
 BaseType_t xQueueSend(
							  QueueHandle_t xQueue,
							  const void * pvItemToQueue,
							  TickType_t xTicksToWait
						 );
 * 
* * This is a macro that calls xQueueGenericSend(). It is included for * backward compatibility with versions of FreeRTOS.org that did not * include the xQueueSendToFront() and xQueueSendToBack() macros. It is * equivalent to xQueueSendToBack(). * * Post an item on a queue. The item is queued by copy, not by reference. * This function must not be called from an interrupt service routine. * See xQueueSendFromISR () for an alternative which may be used in an ISR. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param xTicksToWait The maximum amount of time the task should block * waiting for space to become available on the queue, should it already * be full. The call will return immediately if this is set to 0 and the * queue is full. The time is defined in tick periods so the constant * portTICK_PERIOD_MS should be used to convert to real time if this is required. * * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 uint32_t ulVar = 10UL;

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1, xQueue2;
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );

	// ...

	if( xQueue1 != 0 )
	{
		// Send an uint32_t.  Wait for 10 ticks for space to become
		// available if necessary.
		if( xQueueSend( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
		{
			// Failed to post the message, even after 10 ticks.
		}
	}

	if( xQueue2 != 0 )
	{
		// Send a pointer to a struct AMessage object.  Don't block if the
		// queue is already full.
		pxMessage = & xMessage;
		xQueueSend( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueSend xQueueSend * \ingroup QueueManagement */ #define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) /** * queue. h *
 BaseType_t xQueueOverwrite(
							  QueueHandle_t xQueue,
							  const void * pvItemToQueue
						 );
 * 
* * Only for use with queues that have a length of one - so the queue is either * empty or full. * * Post an item on a queue. If the queue is already full then overwrite the * value held in the queue. The item is queued by copy, not by reference. * * This function must not be called from an interrupt service routine. * See xQueueOverwriteFromISR () for an alternative which may be used in an ISR. * * @param xQueue The handle of the queue to which the data is being sent. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @return xQueueOverwrite() is a macro that calls xQueueGenericSend(), and * therefore has the same return values as xQueueSendToFront(). However, pdPASS * is the only value that can be returned because xQueueOverwrite() will write * to the queue even when the queue is already full. * * Example usage:

 void vFunction( void *pvParameters )
 {
 QueueHandle_t xQueue;
 uint32_t ulVarToSend, ulValReceived;

	// Create a queue to hold one uint32_t value.  It is strongly
	// recommended *not* to use xQueueOverwrite() on queues that can
	// contain more than one value, and doing so will trigger an assertion
	// if configASSERT() is defined.
	xQueue = xQueueCreate( 1, sizeof( uint32_t ) );

	// Write the value 10 to the queue using xQueueOverwrite().
	ulVarToSend = 10;
	xQueueOverwrite( xQueue, &ulVarToSend );

	// Peeking the queue should now return 10, but leave the value 10 in
	// the queue.  A block time of zero is used as it is known that the
	// queue holds a value.
	ulValReceived = 0;
	xQueuePeek( xQueue, &ulValReceived, 0 );

	if( ulValReceived != 10 )
	{
		// Error unless the item was removed by a different task.
	}

	// The queue is still full.  Use xQueueOverwrite() to overwrite the
	// value held in the queue with 100.
	ulVarToSend = 100;
	xQueueOverwrite( xQueue, &ulVarToSend );

	// This time read from the queue, leaving the queue empty once more.
	// A block time of 0 is used again.
	xQueueReceive( xQueue, &ulValReceived, 0 );

	// The value read should be the last value written, even though the
	// queue was already full when the value was written.
	if( ulValReceived != 100 )
	{
		// Error!
	}

	// ...
}
 
* \defgroup xQueueOverwrite xQueueOverwrite * \ingroup QueueManagement */ #define xQueueOverwrite( xQueue, pvItemToQueue ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE ) /** * queue. h *
 BaseType_t xQueueGenericSend(
									QueueHandle_t xQueue,
									const void * pvItemToQueue,
									TickType_t xTicksToWait
									BaseType_t xCopyPosition
								);
 * 
* * It is preferred that the macros xQueueSend(), xQueueSendToFront() and * xQueueSendToBack() are used in place of calling this function directly. * * Post an item on a queue. The item is queued by copy, not by reference. * This function must not be called from an interrupt service routine. * See xQueueSendFromISR () for an alternative which may be used in an ISR. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param xTicksToWait The maximum amount of time the task should block * waiting for space to become available on the queue, should it already * be full. The call will return immediately if this is set to 0 and the * queue is full. The time is defined in tick periods so the constant * portTICK_PERIOD_MS should be used to convert to real time if this is required. * * @param xCopyPosition Can take the value queueSEND_TO_BACK to place the * item at the back of the queue, or queueSEND_TO_FRONT to place the item * at the front of the queue (for high priority messages). * * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 uint32_t ulVar = 10UL;

 void vATask( void *pvParameters )
 {
 QueueHandle_t xQueue1, xQueue2;
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 uint32_t values.
	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );

	// ...

	if( xQueue1 != 0 )
	{
		// Send an uint32_t.  Wait for 10 ticks for space to become
		// available if necessary.
		if( xQueueGenericSend( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10, queueSEND_TO_BACK ) != pdPASS )
		{
			// Failed to post the message, even after 10 ticks.
		}
	}

	if( xQueue2 != 0 )
	{
		// Send a pointer to a struct AMessage object.  Don't block if the
		// queue is already full.
		pxMessage = & xMessage;
		xQueueGenericSend( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0, queueSEND_TO_BACK );
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueSend xQueueSend * \ingroup QueueManagement */ BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; /** * queue. h *
 BaseType_t xQueuePeek(
							 QueueHandle_t xQueue,
							 void * const pvBuffer,
							 TickType_t xTicksToWait
						 );
* * Receive an item from a queue without removing the item from the queue. * The item is received by copy so a buffer of adequate size must be * provided. The number of bytes copied into the buffer was defined when * the queue was created. * * Successfully received items remain on the queue so will be returned again * by the next call, or a call to xQueueReceive(). * * This macro must not be used in an interrupt service routine. See * xQueuePeekFromISR() for an alternative that can be called from an interrupt * service routine. * * @param xQueue The handle to the queue from which the item is to be * received. * * @param pvBuffer Pointer to the buffer into which the received item will * be copied. * * @param xTicksToWait The maximum amount of time the task should block * waiting for an item to receive should the queue be empty at the time * of the call. The time is defined in tick periods so the constant * portTICK_PERIOD_MS should be used to convert to real time if this is required. * xQueuePeek() will return immediately if xTicksToWait is 0 and the queue * is empty. * * @return pdTRUE if an item was successfully received from the queue, * otherwise pdFALSE. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 QueueHandle_t xQueue;

 // Task to create a queue and post a value.
 void vATask( void *pvParameters )
 {
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue = xQueueCreate( 10, sizeof( struct AMessage * ) );
	if( xQueue == 0 )
	{
		// Failed to create the queue.
	}

	// ...

	// Send a pointer to a struct AMessage object.  Don't block if the
	// queue is already full.
	pxMessage = & xMessage;
	xQueueSend( xQueue, ( void * ) &pxMessage, ( TickType_t ) 0 );

	// ... Rest of task code.
 }

 // Task to peek the data from the queue.
 void vADifferentTask( void *pvParameters )
 {
 struct AMessage *pxRxedMessage;

	if( xQueue != 0 )
	{
		// Peek a message on the created queue.  Block for 10 ticks if a
		// message is not immediately available.
		if( xQueuePeek( xQueue, &( pxRxedMessage ), ( TickType_t ) 10 ) )
		{
			// pcRxedMessage now points to the struct AMessage variable posted
			// by vATask, but the item still remains on the queue.
		}
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueuePeek xQueuePeek * \ingroup QueueManagement */ BaseType_t xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * queue. h *
 BaseType_t xQueuePeekFromISR(
									QueueHandle_t xQueue,
									void *pvBuffer,
								);
* * A version of xQueuePeek() that can be called from an interrupt service * routine (ISR). * * Receive an item from a queue without removing the item from the queue. * The item is received by copy so a buffer of adequate size must be * provided. The number of bytes copied into the buffer was defined when * the queue was created. * * Successfully received items remain on the queue so will be returned again * by the next call, or a call to xQueueReceive(). * * @param xQueue The handle to the queue from which the item is to be * received. * * @param pvBuffer Pointer to the buffer into which the received item will * be copied. * * @return pdTRUE if an item was successfully received from the queue, * otherwise pdFALSE. * * \defgroup xQueuePeekFromISR xQueuePeekFromISR * \ingroup QueueManagement */ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) PRIVILEGED_FUNCTION; /** * queue. h *
 BaseType_t xQueueReceive(
								 QueueHandle_t xQueue,
								 void *pvBuffer,
								 TickType_t xTicksToWait
							);
* * Receive an item from a queue. The item is received by copy so a buffer of * adequate size must be provided. The number of bytes copied into the buffer * was defined when the queue was created. * * Successfully received items are removed from the queue. * * This function must not be used in an interrupt service routine. See * xQueueReceiveFromISR for an alternative that can. * * @param xQueue The handle to the queue from which the item is to be * received. * * @param pvBuffer Pointer to the buffer into which the received item will * be copied. * * @param xTicksToWait The maximum amount of time the task should block * waiting for an item to receive should the queue be empty at the time * of the call. xQueueReceive() will return immediately if xTicksToWait * is zero and the queue is empty. The time is defined in tick periods so the * constant portTICK_PERIOD_MS should be used to convert to real time if this is * required. * * @return pdTRUE if an item was successfully received from the queue, * otherwise pdFALSE. * * Example usage:
 struct AMessage
 {
	char ucMessageID;
	char ucData[ 20 ];
 } xMessage;

 QueueHandle_t xQueue;

 // Task to create a queue and post a value.
 void vATask( void *pvParameters )
 {
 struct AMessage *pxMessage;

	// Create a queue capable of containing 10 pointers to AMessage structures.
	// These should be passed by pointer as they contain a lot of data.
	xQueue = xQueueCreate( 10, sizeof( struct AMessage * ) );
	if( xQueue == 0 )
	{
		// Failed to create the queue.
	}

	// ...

	// Send a pointer to a struct AMessage object.  Don't block if the
	// queue is already full.
	pxMessage = & xMessage;
	xQueueSend( xQueue, ( void * ) &pxMessage, ( TickType_t ) 0 );

	// ... Rest of task code.
 }

 // Task to receive from the queue.
 void vADifferentTask( void *pvParameters )
 {
 struct AMessage *pxRxedMessage;

	if( xQueue != 0 )
	{
		// Receive a message on the created queue.  Block for 10 ticks if a
		// message is not immediately available.
		if( xQueueReceive( xQueue, &( pxRxedMessage ), ( TickType_t ) 10 ) )
		{
			// pcRxedMessage now points to the struct AMessage variable posted
			// by vATask.
		}
	}

	// ... Rest of task code.
 }
 
* \defgroup xQueueReceive xQueueReceive * \ingroup QueueManagement */ BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * queue. h *
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue );
* * Return the number of messages stored in a queue. * * @param xQueue A handle to the queue being queried. * * @return The number of messages available in the queue. * * \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting * \ingroup QueueManagement */ UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /** * queue. h *
UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue );
* * Return the number of free spaces available in a queue. This is equal to the * number of items that can be sent to the queue before the queue becomes full * if no items are removed. * * @param xQueue A handle to the queue being queried. * * @return The number of spaces available in the queue. * * \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting * \ingroup QueueManagement */ UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /** * queue. h *
void vQueueDelete( QueueHandle_t xQueue );
* * Delete a queue - freeing all the memory allocated for storing of items * placed on the queue. * * @param xQueue A handle to the queue to be deleted. * * \defgroup vQueueDelete vQueueDelete * \ingroup QueueManagement */ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /** * queue. h *
 BaseType_t xQueueSendToFrontFromISR(
										 QueueHandle_t xQueue,
										 const void *pvItemToQueue,
										 BaseType_t *pxHigherPriorityTaskWoken
									  );
 
* * This is a macro that calls xQueueGenericSendFromISR(). * * Post an item to the front of a queue. It is safe to use this macro from * within an interrupt service routine. * * Items are queued by copy not reference so it is preferable to only * queue small items, especially when called from an ISR. In most cases * it would be preferable to store a pointer to the item being queued. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param pxHigherPriorityTaskWoken xQueueSendToFrontFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xQueueSendToFromFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return pdTRUE if the data was successfully sent to the queue, otherwise * errQUEUE_FULL. * * Example usage for buffered IO (where the ISR can obtain more than one value * per call):
 void vBufferISR( void )
 {
 char cIn;
 BaseType_t xHigherPrioritTaskWoken;

	// We have not woken a task at the start of the ISR.
	xHigherPriorityTaskWoken = pdFALSE;

	// Loop until the buffer is empty.
	do
	{
		// Obtain a byte from the buffer.
		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );

		// Post the byte.
		xQueueSendToFrontFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );

	} while( portINPUT_BYTE( BUFFER_COUNT ) );

	// Now the buffer is empty we can switch context if necessary.
	if( xHigherPriorityTaskWoken )
	{
		taskYIELD ();
	}
 }
 
* * \defgroup xQueueSendFromISR xQueueSendFromISR * \ingroup QueueManagement */ #define xQueueSendToFrontFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT ) /** * queue. h *
 BaseType_t xQueueSendToBackFromISR(
										 QueueHandle_t xQueue,
										 const void *pvItemToQueue,
										 BaseType_t *pxHigherPriorityTaskWoken
									  );
 
* * This is a macro that calls xQueueGenericSendFromISR(). * * Post an item to the back of a queue. It is safe to use this macro from * within an interrupt service routine. * * Items are queued by copy not reference so it is preferable to only * queue small items, especially when called from an ISR. In most cases * it would be preferable to store a pointer to the item being queued. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param pxHigherPriorityTaskWoken xQueueSendToBackFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xQueueSendToBackFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return pdTRUE if the data was successfully sent to the queue, otherwise * errQUEUE_FULL. * * Example usage for buffered IO (where the ISR can obtain more than one value * per call):
 void vBufferISR( void )
 {
 char cIn;
 BaseType_t xHigherPriorityTaskWoken;

	// We have not woken a task at the start of the ISR.
	xHigherPriorityTaskWoken = pdFALSE;

	// Loop until the buffer is empty.
	do
	{
		// Obtain a byte from the buffer.
		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );

		// Post the byte.
		xQueueSendToBackFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );

	} while( portINPUT_BYTE( BUFFER_COUNT ) );

	// Now the buffer is empty we can switch context if necessary.
	if( xHigherPriorityTaskWoken )
	{
		taskYIELD ();
	}
 }
 
* * \defgroup xQueueSendFromISR xQueueSendFromISR * \ingroup QueueManagement */ #define xQueueSendToBackFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) /** * queue. h *
 BaseType_t xQueueOverwriteFromISR(
							  QueueHandle_t xQueue,
							  const void * pvItemToQueue,
							  BaseType_t *pxHigherPriorityTaskWoken
						 );
 * 
* * A version of xQueueOverwrite() that can be used in an interrupt service * routine (ISR). * * Only for use with queues that can hold a single item - so the queue is either * empty or full. * * Post an item on a queue. If the queue is already full then overwrite the * value held in the queue. The item is queued by copy, not by reference. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param pxHigherPriorityTaskWoken xQueueOverwriteFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xQueueOverwriteFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return xQueueOverwriteFromISR() is a macro that calls * xQueueGenericSendFromISR(), and therefore has the same return values as * xQueueSendToFrontFromISR(). However, pdPASS is the only value that can be * returned because xQueueOverwriteFromISR() will write to the queue even when * the queue is already full. * * Example usage:

 QueueHandle_t xQueue;

 void vFunction( void *pvParameters )
 {
 	// Create a queue to hold one uint32_t value.  It is strongly
	// recommended *not* to use xQueueOverwriteFromISR() on queues that can
	// contain more than one value, and doing so will trigger an assertion
	// if configASSERT() is defined.
	xQueue = xQueueCreate( 1, sizeof( uint32_t ) );
}

void vAnInterruptHandler( void )
{
// xHigherPriorityTaskWoken must be set to pdFALSE before it is used.
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
uint32_t ulVarToSend, ulValReceived;

	// Write the value 10 to the queue using xQueueOverwriteFromISR().
	ulVarToSend = 10;
	xQueueOverwriteFromISR( xQueue, &ulVarToSend, &xHigherPriorityTaskWoken );

	// The queue is full, but calling xQueueOverwriteFromISR() again will still
	// pass because the value held in the queue will be overwritten with the
	// new value.
	ulVarToSend = 100;
	xQueueOverwriteFromISR( xQueue, &ulVarToSend, &xHigherPriorityTaskWoken );

	// Reading from the queue will now return 100.

	// ...

	if( xHigherPrioritytaskWoken == pdTRUE )
	{
		// Writing to the queue caused a task to unblock and the unblocked task
		// has a priority higher than or equal to the priority of the currently
		// executing task (the task this interrupt interrupted).  Perform a context
		// switch so this interrupt returns directly to the unblocked task.
		portYIELD_FROM_ISR(); // or portEND_SWITCHING_ISR() depending on the port.
	}
}
 
* \defgroup xQueueOverwriteFromISR xQueueOverwriteFromISR * \ingroup QueueManagement */ #define xQueueOverwriteFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE ) /** * queue. h *
 BaseType_t xQueueSendFromISR(
									 QueueHandle_t xQueue,
									 const void *pvItemToQueue,
									 BaseType_t *pxHigherPriorityTaskWoken
								);
 
* * This is a macro that calls xQueueGenericSendFromISR(). It is included * for backward compatibility with versions of FreeRTOS.org that did not * include the xQueueSendToBackFromISR() and xQueueSendToFrontFromISR() * macros. * * Post an item to the back of a queue. It is safe to use this function from * within an interrupt service routine. * * Items are queued by copy not reference so it is preferable to only * queue small items, especially when called from an ISR. In most cases * it would be preferable to store a pointer to the item being queued. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param pxHigherPriorityTaskWoken xQueueSendFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xQueueSendFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return pdTRUE if the data was successfully sent to the queue, otherwise * errQUEUE_FULL. * * Example usage for buffered IO (where the ISR can obtain more than one value * per call):
 void vBufferISR( void )
 {
 char cIn;
 BaseType_t xHigherPriorityTaskWoken;

	// We have not woken a task at the start of the ISR.
	xHigherPriorityTaskWoken = pdFALSE;

	// Loop until the buffer is empty.
	do
	{
		// Obtain a byte from the buffer.
		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );

		// Post the byte.
		xQueueSendFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );

	} while( portINPUT_BYTE( BUFFER_COUNT ) );

	// Now the buffer is empty we can switch context if necessary.
	if( xHigherPriorityTaskWoken )
	{
		// Actual macro used here is port specific.
		portYIELD_FROM_ISR ();
	}
 }
 
* * \defgroup xQueueSendFromISR xQueueSendFromISR * \ingroup QueueManagement */ #define xQueueSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) /** * queue. h *
 BaseType_t xQueueGenericSendFromISR(
										   QueueHandle_t		xQueue,
										   const	void	*pvItemToQueue,
										   BaseType_t	*pxHigherPriorityTaskWoken,
										   BaseType_t	xCopyPosition
									   );
 
* * It is preferred that the macros xQueueSendFromISR(), * xQueueSendToFrontFromISR() and xQueueSendToBackFromISR() be used in place * of calling this function directly. xQueueGiveFromISR() is an * equivalent for use by semaphores that don't actually copy any data. * * Post an item on a queue. It is safe to use this function from within an * interrupt service routine. * * Items are queued by copy not reference so it is preferable to only * queue small items, especially when called from an ISR. In most cases * it would be preferable to store a pointer to the item being queued. * * @param xQueue The handle to the queue on which the item is to be posted. * * @param pvItemToQueue A pointer to the item that is to be placed on the * queue. The size of the items the queue will hold was defined when the * queue was created, so this many bytes will be copied from pvItemToQueue * into the queue storage area. * * @param pxHigherPriorityTaskWoken xQueueGenericSendFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xQueueGenericSendFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @param xCopyPosition Can take the value queueSEND_TO_BACK to place the * item at the back of the queue, or queueSEND_TO_FRONT to place the item * at the front of the queue (for high priority messages). * * @return pdTRUE if the data was successfully sent to the queue, otherwise * errQUEUE_FULL. * * Example usage for buffered IO (where the ISR can obtain more than one value * per call):
 void vBufferISR( void )
 {
 char cIn;
 BaseType_t xHigherPriorityTaskWokenByPost;

	// We have not woken a task at the start of the ISR.
	xHigherPriorityTaskWokenByPost = pdFALSE;

	// Loop until the buffer is empty.
	do
	{
		// Obtain a byte from the buffer.
		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );

		// Post each byte.
		xQueueGenericSendFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWokenByPost, queueSEND_TO_BACK );

	} while( portINPUT_BYTE( BUFFER_COUNT ) );

	// Now the buffer is empty we can switch context if necessary.  Note that the
	// name of the yield function required is port specific.
	if( xHigherPriorityTaskWokenByPost )
	{
		portYIELD_FROM_ISR();
	}
 }
 
* * \defgroup xQueueSendFromISR xQueueSendFromISR * \ingroup QueueManagement */ BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /** * queue. h *
 BaseType_t xQueueReceiveFromISR(
									   QueueHandle_t	xQueue,
									   void	*pvBuffer,
									   BaseType_t *pxTaskWoken
								   );
 * 
* * Receive an item from a queue. It is safe to use this function from within an * interrupt service routine. * * @param xQueue The handle to the queue from which the item is to be * received. * * @param pvBuffer Pointer to the buffer into which the received item will * be copied. * * @param pxTaskWoken A task may be blocked waiting for space to become * available on the queue. If xQueueReceiveFromISR causes such a task to * unblock *pxTaskWoken will get set to pdTRUE, otherwise *pxTaskWoken will * remain unchanged. * * @return pdTRUE if an item was successfully received from the queue, * otherwise pdFALSE. * * Example usage:

 QueueHandle_t xQueue;

 // Function to create a queue and post some values.
 void vAFunction( void *pvParameters )
 {
 char cValueToPost;
 const TickType_t xTicksToWait = ( TickType_t )0xff;

	// Create a queue capable of containing 10 characters.
	xQueue = xQueueCreate( 10, sizeof( char ) );
	if( xQueue == 0 )
	{
		// Failed to create the queue.
	}

	// ...

	// Post some characters that will be used within an ISR.  If the queue
	// is full then this task will block for xTicksToWait ticks.
	cValueToPost = 'a';
	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );
	cValueToPost = 'b';
	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );

	// ... keep posting characters ... this task may block when the queue
	// becomes full.

	cValueToPost = 'c';
	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );
 }

 // ISR that outputs all the characters received on the queue.
 void vISR_Routine( void )
 {
 BaseType_t xTaskWokenByReceive = pdFALSE;
 char cRxedChar;

	while( xQueueReceiveFromISR( xQueue, ( void * ) &cRxedChar, &xTaskWokenByReceive) )
	{
		// A character was received.  Output the character now.
		vOutputCharacter( cRxedChar );

		// If removing the character from the queue woke the task that was
		// posting onto the queue cTaskWokenByReceive will have been set to
		// pdTRUE.  No matter how many times this loop iterates only one
		// task will be woken.
	}

	if( cTaskWokenByPost != ( char ) pdFALSE;
	{
		taskYIELD ();
	}
 }
 
* \defgroup xQueueReceiveFromISR xQueueReceiveFromISR * \ingroup QueueManagement */ BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /* * Utilities to query queues that are safe to use from an ISR. These utilities * should be used only from witin an ISR, or within a critical section. */ BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /* * The functions defined above are for passing data to and from tasks. The * functions below are the equivalents for passing data to and from * co-routines. * * These functions are called from the co-routine macro implementation and * should not be called directly from application code. Instead use the macro * wrappers defined within croutine.h. */ BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ); BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxTaskWoken ); BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait ); BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait ); /* * For internal use only. Use xSemaphoreCreateMutex(), * xSemaphoreCreateCounting() or xSemaphoreGetMutexHolder() instead of calling * these functions directly. */ QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION; QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION; BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; TaskHandle_t xQueueGetMutexHolder( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; /* * For internal use only. Use xSemaphoreTakeMutexRecursive() or * xSemaphoreGiveMutexRecursive() instead of calling these functions directly. */ BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION; /* * Reset a queue back to its original empty state. The return value is now * obsolete and is always set to pdPASS. */ #define xQueueReset( xQueue ) xQueueGenericReset( xQueue, pdFALSE ) /* * The registry is provided as a means for kernel aware debuggers to * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add * a queue, semaphore or mutex handle to the registry if you want the handle * to be available to a kernel aware debugger. If you are not using a kernel * aware debugger then this function can be ignored. * * configQUEUE_REGISTRY_SIZE defines the maximum number of handles the * registry can hold. configQUEUE_REGISTRY_SIZE must be greater than 0 * within FreeRTOSConfig.h for the registry to be available. Its value * does not effect the number of queues, semaphores and mutexes that can be * created - just the number that the registry can hold. * * @param xQueue The handle of the queue being added to the registry. This * is the handle returned by a call to xQueueCreate(). Semaphore and mutex * handles can also be passed in here. * * @param pcName The name to be associated with the handle. This is the * name that the kernel aware debugger will display. The queue registry only * stores a pointer to the string - so the string must be persistent (global or * preferably in ROM/Flash), not on the stack. */ #if( configQUEUE_REGISTRY_SIZE > 0 ) void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ #endif /* * The registry is provided as a means for kernel aware debuggers to * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add * a queue, semaphore or mutex handle to the registry if you want the handle * to be available to a kernel aware debugger, and vQueueUnregisterQueue() to * remove the queue, semaphore or mutex from the register. If you are not using * a kernel aware debugger then this function can be ignored. * * @param xQueue The handle of the queue being removed from the registry. */ #if( configQUEUE_REGISTRY_SIZE > 0 ) void vQueueUnregisterQueue( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; #endif /* * The queue registry is provided as a means for kernel aware debuggers to * locate queues, semaphores and mutexes. Call pcQueueGetName() to look * up and return the name of a queue in the queue registry from the queue's * handle. * * @param xQueue The handle of the queue the name of which will be returned. * @return If the queue is in the registry then a pointer to the name of the * queue is returned. If the queue is not in the registry then NULL is * returned. */ #if( configQUEUE_REGISTRY_SIZE > 0 ) const char *pcQueueGetName( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ #endif /* * Generic version of the function used to creaet a queue using dynamic memory * allocation. This is called by other functions and macros that create other * RTOS objects that use the queue structure as their base. */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; #endif /* * Generic version of the function used to creaet a queue using dynamic memory * allocation. This is called by other functions and macros that create other * RTOS objects that use the queue structure as their base. */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; #endif /* * Queue sets provide a mechanism to allow a task to block (pend) on a read * operation from multiple queues or semaphores simultaneously. * * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this * function. * * A queue set must be explicitly created using a call to xQueueCreateSet() * before it can be used. Once created, standard FreeRTOS queues and semaphores * can be added to the set using calls to xQueueAddToSet(). * xQueueSelectFromSet() is then used to determine which, if any, of the queues * or semaphores contained in the set is in a state where a queue read or * semaphore take operation would be successful. * * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html * for reasons why queue sets are very rarely needed in practice as there are * simpler methods of blocking on multiple objects. * * Note 2: Blocking on a queue set that contains a mutex will not cause the * mutex holder to inherit the priority of the blocked task. * * Note 3: An additional 4 bytes of RAM is required for each space in a every * queue added to a queue set. Therefore counting semaphores that have a high * maximum count value should not be added to a queue set. * * Note 4: A receive (in the case of a queue) or take (in the case of a * semaphore) operation must not be performed on a member of a queue set unless * a call to xQueueSelectFromSet() has first returned a handle to that set member. * * @param uxEventQueueLength Queue sets store events that occur on * the queues and semaphores contained in the set. uxEventQueueLength specifies * the maximum number of events that can be queued at once. To be absolutely * certain that events are not lost uxEventQueueLength should be set to the * total sum of the length of the queues added to the set, where binary * semaphores and mutexes have a length of 1, and counting semaphores have a * length set by their maximum count value. Examples: * + If a queue set is to hold a queue of length 5, another queue of length 12, * and a binary semaphore, then uxEventQueueLength should be set to * (5 + 12 + 1), or 18. * + If a queue set is to hold three binary semaphores then uxEventQueueLength * should be set to (1 + 1 + 1 ), or 3. * + If a queue set is to hold a counting semaphore that has a maximum count of * 5, and a counting semaphore that has a maximum count of 3, then * uxEventQueueLength should be set to (5 + 3), or 8. * * @return If the queue set is created successfully then a handle to the created * queue set is returned. Otherwise NULL is returned. */ QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; /* * Adds a queue or semaphore to a queue set that was previously created by a * call to xQueueCreateSet(). * * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this * function. * * Note 1: A receive (in the case of a queue) or take (in the case of a * semaphore) operation must not be performed on a member of a queue set unless * a call to xQueueSelectFromSet() has first returned a handle to that set member. * * @param xQueueOrSemaphore The handle of the queue or semaphore being added to * the queue set (cast to an QueueSetMemberHandle_t type). * * @param xQueueSet The handle of the queue set to which the queue or semaphore * is being added. * * @return If the queue or semaphore was successfully added to the queue set * then pdPASS is returned. If the queue could not be successfully added to the * queue set because it is already a member of a different queue set then pdFAIL * is returned. */ BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; /* * Removes a queue or semaphore from a queue set. A queue or semaphore can only * be removed from a set if the queue or semaphore is empty. * * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this * function. * * @param xQueueOrSemaphore The handle of the queue or semaphore being removed * from the queue set (cast to an QueueSetMemberHandle_t type). * * @param xQueueSet The handle of the queue set in which the queue or semaphore * is included. * * @return If the queue or semaphore was successfully removed from the queue set * then pdPASS is returned. If the queue was not in the queue set, or the * queue (or semaphore) was not empty, then pdFAIL is returned. */ BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; /* * xQueueSelectFromSet() selects from the members of a queue set a queue or * semaphore that either contains data (in the case of a queue) or is available * to take (in the case of a semaphore). xQueueSelectFromSet() effectively * allows a task to block (pend) on a read operation on all the queues and * semaphores in a queue set simultaneously. * * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this * function. * * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html * for reasons why queue sets are very rarely needed in practice as there are * simpler methods of blocking on multiple objects. * * Note 2: Blocking on a queue set that contains a mutex will not cause the * mutex holder to inherit the priority of the blocked task. * * Note 3: A receive (in the case of a queue) or take (in the case of a * semaphore) operation must not be performed on a member of a queue set unless * a call to xQueueSelectFromSet() has first returned a handle to that set member. * * @param xQueueSet The queue set on which the task will (potentially) block. * * @param xTicksToWait The maximum time, in ticks, that the calling task will * remain in the Blocked state (with other tasks executing) to wait for a member * of the queue set to be ready for a successful queue read or semaphore take * operation. * * @return xQueueSelectFromSet() will return the handle of a queue (cast to * a QueueSetMemberHandle_t type) contained in the queue set that contains data, * or the handle of a semaphore (cast to a QueueSetMemberHandle_t type) contained * in the queue set that is available, or NULL if no such queue or semaphore * exists before before the specified block time expires. */ QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /* * A version of xQueueSelectFromSet() that can be used from an ISR. */ QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; /* Not public API functions. */ void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION; BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) PRIVILEGED_FUNCTION; void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; #ifdef __cplusplus } #endif #endif /* QUEUE_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef SEMAPHORE_H #define SEMAPHORE_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h" must appear in source files before "include semphr.h" #endif #include "queue.h" typedef QueueHandle_t SemaphoreHandle_t; #define semBINARY_SEMAPHORE_QUEUE_LENGTH ( ( uint8_t ) 1U ) #define semSEMAPHORE_QUEUE_ITEM_LENGTH ( ( uint8_t ) 0U ) #define semGIVE_BLOCK_TIME ( ( TickType_t ) 0U ) /** * semphr. h *
vSemaphoreCreateBinary( SemaphoreHandle_t xSemaphore )
* * In many usage scenarios it is faster and more memory efficient to use a * direct to task notification in place of a binary semaphore! * http://www.freertos.org/RTOS-task-notifications.html * * This old vSemaphoreCreateBinary() macro is now deprecated in favour of the * xSemaphoreCreateBinary() function. Note that binary semaphores created using * the vSemaphoreCreateBinary() macro are created in a state such that the * first call to 'take' the semaphore would pass, whereas binary semaphores * created using xSemaphoreCreateBinary() are created in a state such that the * the semaphore must first be 'given' before it can be 'taken'. * * Macro that implements a semaphore by using the existing queue mechanism. * The queue length is 1 as this is a binary semaphore. The data size is 0 * as we don't want to actually store any data - we just want to know if the * queue is empty or full. * * This type of semaphore can be used for pure synchronisation between tasks or * between an interrupt and a task. The semaphore need not be given back once * obtained, so one task/interrupt can continuously 'give' the semaphore while * another continuously 'takes' the semaphore. For this reason this type of * semaphore does not use a priority inheritance mechanism. For an alternative * that does use priority inheritance see xSemaphoreCreateMutex(). * * @param xSemaphore Handle to the created semaphore. Should be of type SemaphoreHandle_t. * * Example usage:
 SemaphoreHandle_t xSemaphore = NULL;

 void vATask( void * pvParameters )
 {
    // Semaphore cannot be used before a call to vSemaphoreCreateBinary ().
    // This is a macro so pass the variable in directly.
    vSemaphoreCreateBinary( xSemaphore );

    if( xSemaphore != NULL )
    {
        // The semaphore was created successfully.
        // The semaphore can now be used.
    }
 }
 
* \defgroup vSemaphoreCreateBinary vSemaphoreCreateBinary * \ingroup Semaphores */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) #define vSemaphoreCreateBinary( xSemaphore ) \ { \ ( xSemaphore ) = xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ); \ if( ( xSemaphore ) != NULL ) \ { \ ( void ) xSemaphoreGive( ( xSemaphore ) ); \ } \ } #endif /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateBinary( void )
* * Creates a new binary semaphore instance, and returns a handle by which the * new semaphore can be referenced. * * In many usage scenarios it is faster and more memory efficient to use a * direct to task notification in place of a binary semaphore! * http://www.freertos.org/RTOS-task-notifications.html * * Internally, within the FreeRTOS implementation, binary semaphores use a block * of memory, in which the semaphore structure is stored. If a binary semaphore * is created using xSemaphoreCreateBinary() then the required memory is * automatically dynamically allocated inside the xSemaphoreCreateBinary() * function. (see http://www.freertos.org/a00111.html). If a binary semaphore * is created using xSemaphoreCreateBinaryStatic() then the application writer * must provide the memory. xSemaphoreCreateBinaryStatic() therefore allows a * binary semaphore to be created without using any dynamic memory allocation. * * The old vSemaphoreCreateBinary() macro is now deprecated in favour of this * xSemaphoreCreateBinary() function. Note that binary semaphores created using * the vSemaphoreCreateBinary() macro are created in a state such that the * first call to 'take' the semaphore would pass, whereas binary semaphores * created using xSemaphoreCreateBinary() are created in a state such that the * the semaphore must first be 'given' before it can be 'taken'. * * This type of semaphore can be used for pure synchronisation between tasks or * between an interrupt and a task. The semaphore need not be given back once * obtained, so one task/interrupt can continuously 'give' the semaphore while * another continuously 'takes' the semaphore. For this reason this type of * semaphore does not use a priority inheritance mechanism. For an alternative * that does use priority inheritance see xSemaphoreCreateMutex(). * * @return Handle to the created semaphore, or NULL if the memory required to * hold the semaphore's data structures could not be allocated. * * Example usage:
 SemaphoreHandle_t xSemaphore = NULL;

 void vATask( void * pvParameters )
 {
    // Semaphore cannot be used before a call to xSemaphoreCreateBinary().
    // This is a macro so pass the variable in directly.
    xSemaphore = xSemaphoreCreateBinary();

    if( xSemaphore != NULL )
    {
        // The semaphore was created successfully.
        // The semaphore can now be used.
    }
 }
 
* \defgroup xSemaphoreCreateBinary xSemaphoreCreateBinary * \ingroup Semaphores */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) #define xSemaphoreCreateBinary() xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ) #endif /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateBinaryStatic( StaticSemaphore_t *pxSemaphoreBuffer )
* * Creates a new binary semaphore instance, and returns a handle by which the * new semaphore can be referenced. * * NOTE: In many usage scenarios it is faster and more memory efficient to use a * direct to task notification in place of a binary semaphore! * http://www.freertos.org/RTOS-task-notifications.html * * Internally, within the FreeRTOS implementation, binary semaphores use a block * of memory, in which the semaphore structure is stored. If a binary semaphore * is created using xSemaphoreCreateBinary() then the required memory is * automatically dynamically allocated inside the xSemaphoreCreateBinary() * function. (see http://www.freertos.org/a00111.html). If a binary semaphore * is created using xSemaphoreCreateBinaryStatic() then the application writer * must provide the memory. xSemaphoreCreateBinaryStatic() therefore allows a * binary semaphore to be created without using any dynamic memory allocation. * * This type of semaphore can be used for pure synchronisation between tasks or * between an interrupt and a task. The semaphore need not be given back once * obtained, so one task/interrupt can continuously 'give' the semaphore while * another continuously 'takes' the semaphore. For this reason this type of * semaphore does not use a priority inheritance mechanism. For an alternative * that does use priority inheritance see xSemaphoreCreateMutex(). * * @param pxSemaphoreBuffer Must point to a variable of type StaticSemaphore_t, * which will then be used to hold the semaphore's data structure, removing the * need for the memory to be allocated dynamically. * * @return If the semaphore is created then a handle to the created semaphore is * returned. If pxSemaphoreBuffer is NULL then NULL is returned. * * Example usage:
 SemaphoreHandle_t xSemaphore = NULL;
 StaticSemaphore_t xSemaphoreBuffer;

 void vATask( void * pvParameters )
 {
    // Semaphore cannot be used before a call to xSemaphoreCreateBinary().
    // The semaphore's data structures will be placed in the xSemaphoreBuffer
    // variable, the address of which is passed into the function.  The
    // function's parameter is not NULL, so the function will not attempt any
    // dynamic memory allocation, and therefore the function will not return
    // return NULL.
    xSemaphore = xSemaphoreCreateBinary( &xSemaphoreBuffer );

    // Rest of task code goes here.
 }
 
* \defgroup xSemaphoreCreateBinaryStatic xSemaphoreCreateBinaryStatic * \ingroup Semaphores */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) #define xSemaphoreCreateBinaryStatic( pxStaticSemaphore ) xQueueGenericCreateStatic( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticSemaphore, queueQUEUE_TYPE_BINARY_SEMAPHORE ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * semphr. h *
xSemaphoreTake(
 *                   SemaphoreHandle_t xSemaphore,
 *                   TickType_t xBlockTime
 *               )
* * Macro to obtain a semaphore. The semaphore must have previously been * created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or * xSemaphoreCreateCounting(). * * @param xSemaphore A handle to the semaphore being taken - obtained when * the semaphore was created. * * @param xBlockTime The time in ticks to wait for the semaphore to become * available. The macro portTICK_PERIOD_MS can be used to convert this to a * real time. A block time of zero can be used to poll the semaphore. A block * time of portMAX_DELAY can be used to block indefinitely (provided * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h). * * @return pdTRUE if the semaphore was obtained. pdFALSE * if xBlockTime expired without the semaphore becoming available. * * Example usage:
 SemaphoreHandle_t xSemaphore = NULL;

 // A task that creates a semaphore.
 void vATask( void * pvParameters )
 {
    // Create the semaphore to guard a shared resource.
    xSemaphore = xSemaphoreCreateBinary();
 }

 // A task that uses the semaphore.
 void vAnotherTask( void * pvParameters )
 {
    // ... Do other things.

    if( xSemaphore != NULL )
    {
        // See if we can obtain the semaphore.  If the semaphore is not available
        // wait 10 ticks to see if it becomes free.
        if( xSemaphoreTake( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
        {
            // We were able to obtain the semaphore and can now access the
            // shared resource.

            // ...

            // We have finished accessing the shared resource.  Release the
            // semaphore.
            xSemaphoreGive( xSemaphore );
        }
        else
        {
            // We could not obtain the semaphore and can therefore not access
            // the shared resource safely.
        }
    }
 }
 
* \defgroup xSemaphoreTake xSemaphoreTake * \ingroup Semaphores */ #define xSemaphoreTake( xSemaphore, xBlockTime ) xQueueSemaphoreTake( ( xSemaphore ), ( xBlockTime ) ) /** * semphr. h * xSemaphoreTakeRecursive( * SemaphoreHandle_t xMutex, * TickType_t xBlockTime * ) * * Macro to recursively obtain, or 'take', a mutex type semaphore. * The mutex must have previously been created using a call to * xSemaphoreCreateRecursiveMutex(); * * configUSE_RECURSIVE_MUTEXES must be set to 1 in FreeRTOSConfig.h for this * macro to be available. * * This macro must not be used on mutexes created using xSemaphoreCreateMutex(). * * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex * doesn't become available again until the owner has called * xSemaphoreGiveRecursive() for each successful 'take' request. For example, * if a task successfully 'takes' the same mutex 5 times then the mutex will * not be available to any other task until it has also 'given' the mutex back * exactly five times. * * @param xMutex A handle to the mutex being obtained. This is the * handle returned by xSemaphoreCreateRecursiveMutex(); * * @param xBlockTime The time in ticks to wait for the semaphore to become * available. The macro portTICK_PERIOD_MS can be used to convert this to a * real time. A block time of zero can be used to poll the semaphore. If * the task already owns the semaphore then xSemaphoreTakeRecursive() will * return immediately no matter what the value of xBlockTime. * * @return pdTRUE if the semaphore was obtained. pdFALSE if xBlockTime * expired without the semaphore becoming available. * * Example usage:
 SemaphoreHandle_t xMutex = NULL;

 // A task that creates a mutex.
 void vATask( void * pvParameters )
 {
    // Create the mutex to guard a shared resource.
    xMutex = xSemaphoreCreateRecursiveMutex();
 }

 // A task that uses the mutex.
 void vAnotherTask( void * pvParameters )
 {
    // ... Do other things.

    if( xMutex != NULL )
    {
        // See if we can obtain the mutex.  If the mutex is not available
        // wait 10 ticks to see if it becomes free.
        if( xSemaphoreTakeRecursive( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
        {
            // We were able to obtain the mutex and can now access the
            // shared resource.

            // ...
            // For some reason due to the nature of the code further calls to
            // xSemaphoreTakeRecursive() are made on the same mutex.  In real
            // code these would not be just sequential calls as this would make
            // no sense.  Instead the calls are likely to be buried inside
            // a more complex call structure.
            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );

            // The mutex has now been 'taken' three times, so will not be
            // available to another task until it has also been given back
            // three times.  Again it is unlikely that real code would have
            // these calls sequentially, but instead buried in a more complex
            // call structure.  This is just for illustrative purposes.
            xSemaphoreGiveRecursive( xMutex );
            xSemaphoreGiveRecursive( xMutex );
            xSemaphoreGiveRecursive( xMutex );

            // Now the mutex can be taken by other tasks.
        }
        else
        {
            // We could not obtain the mutex and can therefore not access
            // the shared resource safely.
        }
    }
 }
 
* \defgroup xSemaphoreTakeRecursive xSemaphoreTakeRecursive * \ingroup Semaphores */ #if( configUSE_RECURSIVE_MUTEXES == 1 ) #define xSemaphoreTakeRecursive( xMutex, xBlockTime ) xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) ) #endif /** * semphr. h *
xSemaphoreGive( SemaphoreHandle_t xSemaphore )
* * Macro to release a semaphore. The semaphore must have previously been * created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or * xSemaphoreCreateCounting(). and obtained using sSemaphoreTake(). * * This macro must not be used from an ISR. See xSemaphoreGiveFromISR () for * an alternative which can be used from an ISR. * * This macro must also not be used on semaphores created using * xSemaphoreCreateRecursiveMutex(). * * @param xSemaphore A handle to the semaphore being released. This is the * handle returned when the semaphore was created. * * @return pdTRUE if the semaphore was released. pdFALSE if an error occurred. * Semaphores are implemented using queues. An error can occur if there is * no space on the queue to post a message - indicating that the * semaphore was not first obtained correctly. * * Example usage:
 SemaphoreHandle_t xSemaphore = NULL;

 void vATask( void * pvParameters )
 {
    // Create the semaphore to guard a shared resource.
    xSemaphore = vSemaphoreCreateBinary();

    if( xSemaphore != NULL )
    {
        if( xSemaphoreGive( xSemaphore ) != pdTRUE )
        {
            // We would expect this call to fail because we cannot give
            // a semaphore without first "taking" it!
        }

        // Obtain the semaphore - don't block if the semaphore is not
        // immediately available.
        if( xSemaphoreTake( xSemaphore, ( TickType_t ) 0 ) )
        {
            // We now have the semaphore and can access the shared resource.

            // ...

            // We have finished accessing the shared resource so can free the
            // semaphore.
            if( xSemaphoreGive( xSemaphore ) != pdTRUE )
            {
                // We would not expect this call to fail because we must have
                // obtained the semaphore to get here.
            }
        }
    }
 }
 
* \defgroup xSemaphoreGive xSemaphoreGive * \ingroup Semaphores */ #define xSemaphoreGive( xSemaphore ) xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK ) /** * semphr. h *
xSemaphoreGiveRecursive( SemaphoreHandle_t xMutex )
* * Macro to recursively release, or 'give', a mutex type semaphore. * The mutex must have previously been created using a call to * xSemaphoreCreateRecursiveMutex(); * * configUSE_RECURSIVE_MUTEXES must be set to 1 in FreeRTOSConfig.h for this * macro to be available. * * This macro must not be used on mutexes created using xSemaphoreCreateMutex(). * * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex * doesn't become available again until the owner has called * xSemaphoreGiveRecursive() for each successful 'take' request. For example, * if a task successfully 'takes' the same mutex 5 times then the mutex will * not be available to any other task until it has also 'given' the mutex back * exactly five times. * * @param xMutex A handle to the mutex being released, or 'given'. This is the * handle returned by xSemaphoreCreateMutex(); * * @return pdTRUE if the semaphore was given. * * Example usage:
 SemaphoreHandle_t xMutex = NULL;

 // A task that creates a mutex.
 void vATask( void * pvParameters )
 {
    // Create the mutex to guard a shared resource.
    xMutex = xSemaphoreCreateRecursiveMutex();
 }

 // A task that uses the mutex.
 void vAnotherTask( void * pvParameters )
 {
    // ... Do other things.

    if( xMutex != NULL )
    {
        // See if we can obtain the mutex.  If the mutex is not available
        // wait 10 ticks to see if it becomes free.
        if( xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 ) == pdTRUE )
        {
            // We were able to obtain the mutex and can now access the
            // shared resource.

            // ...
            // For some reason due to the nature of the code further calls to
			// xSemaphoreTakeRecursive() are made on the same mutex.  In real
			// code these would not be just sequential calls as this would make
			// no sense.  Instead the calls are likely to be buried inside
			// a more complex call structure.
            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );

            // The mutex has now been 'taken' three times, so will not be
			// available to another task until it has also been given back
			// three times.  Again it is unlikely that real code would have
			// these calls sequentially, it would be more likely that the calls
			// to xSemaphoreGiveRecursive() would be called as a call stack
			// unwound.  This is just for demonstrative purposes.
            xSemaphoreGiveRecursive( xMutex );
			xSemaphoreGiveRecursive( xMutex );
			xSemaphoreGiveRecursive( xMutex );

			// Now the mutex can be taken by other tasks.
        }
        else
        {
            // We could not obtain the mutex and can therefore not access
            // the shared resource safely.
        }
    }
 }
 
* \defgroup xSemaphoreGiveRecursive xSemaphoreGiveRecursive * \ingroup Semaphores */ #if( configUSE_RECURSIVE_MUTEXES == 1 ) #define xSemaphoreGiveRecursive( xMutex ) xQueueGiveMutexRecursive( ( xMutex ) ) #endif /** * semphr. h *
 xSemaphoreGiveFromISR(
                          SemaphoreHandle_t xSemaphore,
                          BaseType_t *pxHigherPriorityTaskWoken
                      )
* * Macro to release a semaphore. The semaphore must have previously been * created with a call to xSemaphoreCreateBinary() or xSemaphoreCreateCounting(). * * Mutex type semaphores (those created using a call to xSemaphoreCreateMutex()) * must not be used with this macro. * * This macro can be used from an ISR. * * @param xSemaphore A handle to the semaphore being released. This is the * handle returned when the semaphore was created. * * @param pxHigherPriorityTaskWoken xSemaphoreGiveFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if giving the semaphore caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xSemaphoreGiveFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return pdTRUE if the semaphore was successfully given, otherwise errQUEUE_FULL. * * Example usage:
 \#define LONG_TIME 0xffff
 \#define TICKS_TO_WAIT	10
 SemaphoreHandle_t xSemaphore = NULL;

 // Repetitive task.
 void vATask( void * pvParameters )
 {
    for( ;; )
    {
        // We want this task to run every 10 ticks of a timer.  The semaphore
        // was created before this task was started.

        // Block waiting for the semaphore to become available.
        if( xSemaphoreTake( xSemaphore, LONG_TIME ) == pdTRUE )
        {
            // It is time to execute.

            // ...

            // We have finished our task.  Return to the top of the loop where
            // we will block on the semaphore until it is time to execute
            // again.  Note when using the semaphore for synchronisation with an
			// ISR in this manner there is no need to 'give' the semaphore back.
        }
    }
 }

 // Timer ISR
 void vTimerISR( void * pvParameters )
 {
 static uint8_t ucLocalTickCount = 0;
 static BaseType_t xHigherPriorityTaskWoken;

    // A timer tick has occurred.

    // ... Do other time functions.

    // Is it time for vATask () to run?
	xHigherPriorityTaskWoken = pdFALSE;
    ucLocalTickCount++;
    if( ucLocalTickCount >= TICKS_TO_WAIT )
    {
        // Unblock the task by releasing the semaphore.
        xSemaphoreGiveFromISR( xSemaphore, &xHigherPriorityTaskWoken );

        // Reset the count so we release the semaphore again in 10 ticks time.
        ucLocalTickCount = 0;
    }

    if( xHigherPriorityTaskWoken != pdFALSE )
    {
        // We can force a context switch here.  Context switching from an
        // ISR uses port specific syntax.  Check the demo task for your port
        // to find the syntax required.
    }
 }
 
* \defgroup xSemaphoreGiveFromISR xSemaphoreGiveFromISR * \ingroup Semaphores */ #define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) ) /** * semphr. h *
 xSemaphoreTakeFromISR(
                          SemaphoreHandle_t xSemaphore,
                          BaseType_t *pxHigherPriorityTaskWoken
                      )
* * Macro to take a semaphore from an ISR. The semaphore must have * previously been created with a call to xSemaphoreCreateBinary() or * xSemaphoreCreateCounting(). * * Mutex type semaphores (those created using a call to xSemaphoreCreateMutex()) * must not be used with this macro. * * This macro can be used from an ISR, however taking a semaphore from an ISR * is not a common operation. It is likely to only be useful when taking a * counting semaphore when an interrupt is obtaining an object from a resource * pool (when the semaphore count indicates the number of resources available). * * @param xSemaphore A handle to the semaphore being taken. This is the * handle returned when the semaphore was created. * * @param pxHigherPriorityTaskWoken xSemaphoreTakeFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if taking the semaphore caused a task * to unblock, and the unblocked task has a priority higher than the currently * running task. If xSemaphoreTakeFromISR() sets this value to pdTRUE then * a context switch should be requested before the interrupt is exited. * * @return pdTRUE if the semaphore was successfully taken, otherwise * pdFALSE */ #define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) ) /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateMutex( void )
* * Creates a new mutex type semaphore instance, and returns a handle by which * the new mutex can be referenced. * * Internally, within the FreeRTOS implementation, mutex semaphores use a block * of memory, in which the mutex structure is stored. If a mutex is created * using xSemaphoreCreateMutex() then the required memory is automatically * dynamically allocated inside the xSemaphoreCreateMutex() function. (see * http://www.freertos.org/a00111.html). If a mutex is created using * xSemaphoreCreateMutexStatic() then the application writer must provided the * memory. xSemaphoreCreateMutexStatic() therefore allows a mutex to be created * without using any dynamic memory allocation. * * Mutexes created using this function can be accessed using the xSemaphoreTake() * and xSemaphoreGive() macros. The xSemaphoreTakeRecursive() and * xSemaphoreGiveRecursive() macros must not be used. * * This type of semaphore uses a priority inheritance mechanism so a task * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the * semaphore it is no longer required. * * Mutex type semaphores cannot be used from within interrupt service routines. * * See xSemaphoreCreateBinary() for an alternative implementation that can be * used for pure synchronisation (where one task or interrupt always 'gives' the * semaphore and another always 'takes' the semaphore) and from within interrupt * service routines. * * @return If the mutex was successfully created then a handle to the created * semaphore is returned. If there was not enough heap to allocate the mutex * data structures then NULL is returned. * * Example usage:
 SemaphoreHandle_t xSemaphore;

 void vATask( void * pvParameters )
 {
    // Semaphore cannot be used before a call to xSemaphoreCreateMutex().
    // This is a macro so pass the variable in directly.
    xSemaphore = xSemaphoreCreateMutex();

    if( xSemaphore != NULL )
    {
        // The semaphore was created successfully.
        // The semaphore can now be used.
    }
 }
 
* \defgroup xSemaphoreCreateMutex xSemaphoreCreateMutex * \ingroup Semaphores */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) #define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX ) #endif /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateMutexStatic( StaticSemaphore_t *pxMutexBuffer )
* * Creates a new mutex type semaphore instance, and returns a handle by which * the new mutex can be referenced. * * Internally, within the FreeRTOS implementation, mutex semaphores use a block * of memory, in which the mutex structure is stored. If a mutex is created * using xSemaphoreCreateMutex() then the required memory is automatically * dynamically allocated inside the xSemaphoreCreateMutex() function. (see * http://www.freertos.org/a00111.html). If a mutex is created using * xSemaphoreCreateMutexStatic() then the application writer must provided the * memory. xSemaphoreCreateMutexStatic() therefore allows a mutex to be created * without using any dynamic memory allocation. * * Mutexes created using this function can be accessed using the xSemaphoreTake() * and xSemaphoreGive() macros. The xSemaphoreTakeRecursive() and * xSemaphoreGiveRecursive() macros must not be used. * * This type of semaphore uses a priority inheritance mechanism so a task * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the * semaphore it is no longer required. * * Mutex type semaphores cannot be used from within interrupt service routines. * * See xSemaphoreCreateBinary() for an alternative implementation that can be * used for pure synchronisation (where one task or interrupt always 'gives' the * semaphore and another always 'takes' the semaphore) and from within interrupt * service routines. * * @param pxMutexBuffer Must point to a variable of type StaticSemaphore_t, * which will be used to hold the mutex's data structure, removing the need for * the memory to be allocated dynamically. * * @return If the mutex was successfully created then a handle to the created * mutex is returned. If pxMutexBuffer was NULL then NULL is returned. * * Example usage:
 SemaphoreHandle_t xSemaphore;
 StaticSemaphore_t xMutexBuffer;

 void vATask( void * pvParameters )
 {
    // A mutex cannot be used before it has been created.  xMutexBuffer is
    // into xSemaphoreCreateMutexStatic() so no dynamic memory allocation is
    // attempted.
    xSemaphore = xSemaphoreCreateMutexStatic( &xMutexBuffer );

    // As no dynamic memory allocation was performed, xSemaphore cannot be NULL,
    // so there is no need to check it.
 }
 
* \defgroup xSemaphoreCreateMutexStatic xSemaphoreCreateMutexStatic * \ingroup Semaphores */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) #define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateRecursiveMutex( void )
* * Creates a new recursive mutex type semaphore instance, and returns a handle * by which the new recursive mutex can be referenced. * * Internally, within the FreeRTOS implementation, recursive mutexs use a block * of memory, in which the mutex structure is stored. If a recursive mutex is * created using xSemaphoreCreateRecursiveMutex() then the required memory is * automatically dynamically allocated inside the * xSemaphoreCreateRecursiveMutex() function. (see * http://www.freertos.org/a00111.html). If a recursive mutex is created using * xSemaphoreCreateRecursiveMutexStatic() then the application writer must * provide the memory that will get used by the mutex. * xSemaphoreCreateRecursiveMutexStatic() therefore allows a recursive mutex to * be created without using any dynamic memory allocation. * * Mutexes created using this macro can be accessed using the * xSemaphoreTakeRecursive() and xSemaphoreGiveRecursive() macros. The * xSemaphoreTake() and xSemaphoreGive() macros must not be used. * * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex * doesn't become available again until the owner has called * xSemaphoreGiveRecursive() for each successful 'take' request. For example, * if a task successfully 'takes' the same mutex 5 times then the mutex will * not be available to any other task until it has also 'given' the mutex back * exactly five times. * * This type of semaphore uses a priority inheritance mechanism so a task * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the * semaphore it is no longer required. * * Mutex type semaphores cannot be used from within interrupt service routines. * * See xSemaphoreCreateBinary() for an alternative implementation that can be * used for pure synchronisation (where one task or interrupt always 'gives' the * semaphore and another always 'takes' the semaphore) and from within interrupt * service routines. * * @return xSemaphore Handle to the created mutex semaphore. Should be of type * SemaphoreHandle_t. * * Example usage:
 SemaphoreHandle_t xSemaphore;

 void vATask( void * pvParameters )
 {
    // Semaphore cannot be used before a call to xSemaphoreCreateMutex().
    // This is a macro so pass the variable in directly.
    xSemaphore = xSemaphoreCreateRecursiveMutex();

    if( xSemaphore != NULL )
    {
        // The semaphore was created successfully.
        // The semaphore can now be used.
    }
 }
 
* \defgroup xSemaphoreCreateRecursiveMutex xSemaphoreCreateRecursiveMutex * \ingroup Semaphores */ #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) #define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX ) #endif /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateRecursiveMutexStatic( StaticSemaphore_t *pxMutexBuffer )
* * Creates a new recursive mutex type semaphore instance, and returns a handle * by which the new recursive mutex can be referenced. * * Internally, within the FreeRTOS implementation, recursive mutexs use a block * of memory, in which the mutex structure is stored. If a recursive mutex is * created using xSemaphoreCreateRecursiveMutex() then the required memory is * automatically dynamically allocated inside the * xSemaphoreCreateRecursiveMutex() function. (see * http://www.freertos.org/a00111.html). If a recursive mutex is created using * xSemaphoreCreateRecursiveMutexStatic() then the application writer must * provide the memory that will get used by the mutex. * xSemaphoreCreateRecursiveMutexStatic() therefore allows a recursive mutex to * be created without using any dynamic memory allocation. * * Mutexes created using this macro can be accessed using the * xSemaphoreTakeRecursive() and xSemaphoreGiveRecursive() macros. The * xSemaphoreTake() and xSemaphoreGive() macros must not be used. * * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex * doesn't become available again until the owner has called * xSemaphoreGiveRecursive() for each successful 'take' request. For example, * if a task successfully 'takes' the same mutex 5 times then the mutex will * not be available to any other task until it has also 'given' the mutex back * exactly five times. * * This type of semaphore uses a priority inheritance mechanism so a task * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the * semaphore it is no longer required. * * Mutex type semaphores cannot be used from within interrupt service routines. * * See xSemaphoreCreateBinary() for an alternative implementation that can be * used for pure synchronisation (where one task or interrupt always 'gives' the * semaphore and another always 'takes' the semaphore) and from within interrupt * service routines. * * @param pxMutexBuffer Must point to a variable of type StaticSemaphore_t, * which will then be used to hold the recursive mutex's data structure, * removing the need for the memory to be allocated dynamically. * * @return If the recursive mutex was successfully created then a handle to the * created recursive mutex is returned. If pxMutexBuffer was NULL then NULL is * returned. * * Example usage:
 SemaphoreHandle_t xSemaphore;
 StaticSemaphore_t xMutexBuffer;

 void vATask( void * pvParameters )
 {
    // A recursive semaphore cannot be used before it is created.  Here a
    // recursive mutex is created using xSemaphoreCreateRecursiveMutexStatic().
    // The address of xMutexBuffer is passed into the function, and will hold
    // the mutexes data structures - so no dynamic memory allocation will be
    // attempted.
    xSemaphore = xSemaphoreCreateRecursiveMutexStatic( &xMutexBuffer );

    // As no dynamic memory allocation was performed, xSemaphore cannot be NULL,
    // so there is no need to check it.
 }
 
* \defgroup xSemaphoreCreateRecursiveMutexStatic xSemaphoreCreateRecursiveMutexStatic * \ingroup Semaphores */ #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) #define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, pxStaticSemaphore ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateCounting( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount )
* * Creates a new counting semaphore instance, and returns a handle by which the * new counting semaphore can be referenced. * * In many usage scenarios it is faster and more memory efficient to use a * direct to task notification in place of a counting semaphore! * http://www.freertos.org/RTOS-task-notifications.html * * Internally, within the FreeRTOS implementation, counting semaphores use a * block of memory, in which the counting semaphore structure is stored. If a * counting semaphore is created using xSemaphoreCreateCounting() then the * required memory is automatically dynamically allocated inside the * xSemaphoreCreateCounting() function. (see * http://www.freertos.org/a00111.html). If a counting semaphore is created * using xSemaphoreCreateCountingStatic() then the application writer can * instead optionally provide the memory that will get used by the counting * semaphore. xSemaphoreCreateCountingStatic() therefore allows a counting * semaphore to be created without using any dynamic memory allocation. * * Counting semaphores are typically used for two things: * * 1) Counting events. * * In this usage scenario an event handler will 'give' a semaphore each time * an event occurs (incrementing the semaphore count value), and a handler * task will 'take' a semaphore each time it processes an event * (decrementing the semaphore count value). The count value is therefore * the difference between the number of events that have occurred and the * number that have been processed. In this case it is desirable for the * initial count value to be zero. * * 2) Resource management. * * In this usage scenario the count value indicates the number of resources * available. To obtain control of a resource a task must first obtain a * semaphore - decrementing the semaphore count value. When the count value * reaches zero there are no free resources. When a task finishes with the * resource it 'gives' the semaphore back - incrementing the semaphore count * value. In this case it is desirable for the initial count value to be * equal to the maximum count value, indicating that all resources are free. * * @param uxMaxCount The maximum count value that can be reached. When the * semaphore reaches this value it can no longer be 'given'. * * @param uxInitialCount The count value assigned to the semaphore when it is * created. * * @return Handle to the created semaphore. Null if the semaphore could not be * created. * * Example usage:
 SemaphoreHandle_t xSemaphore;

 void vATask( void * pvParameters )
 {
 SemaphoreHandle_t xSemaphore = NULL;

    // Semaphore cannot be used before a call to xSemaphoreCreateCounting().
    // The max value to which the semaphore can count should be 10, and the
    // initial value assigned to the count should be 0.
    xSemaphore = xSemaphoreCreateCounting( 10, 0 );

    if( xSemaphore != NULL )
    {
        // The semaphore was created successfully.
        // The semaphore can now be used.
    }
 }
 
* \defgroup xSemaphoreCreateCounting xSemaphoreCreateCounting * \ingroup Semaphores */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) #define xSemaphoreCreateCounting( uxMaxCount, uxInitialCount ) xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) ) #endif /** * semphr. h *
SemaphoreHandle_t xSemaphoreCreateCountingStatic( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount, StaticSemaphore_t *pxSemaphoreBuffer )
* * Creates a new counting semaphore instance, and returns a handle by which the * new counting semaphore can be referenced. * * In many usage scenarios it is faster and more memory efficient to use a * direct to task notification in place of a counting semaphore! * http://www.freertos.org/RTOS-task-notifications.html * * Internally, within the FreeRTOS implementation, counting semaphores use a * block of memory, in which the counting semaphore structure is stored. If a * counting semaphore is created using xSemaphoreCreateCounting() then the * required memory is automatically dynamically allocated inside the * xSemaphoreCreateCounting() function. (see * http://www.freertos.org/a00111.html). If a counting semaphore is created * using xSemaphoreCreateCountingStatic() then the application writer must * provide the memory. xSemaphoreCreateCountingStatic() therefore allows a * counting semaphore to be created without using any dynamic memory allocation. * * Counting semaphores are typically used for two things: * * 1) Counting events. * * In this usage scenario an event handler will 'give' a semaphore each time * an event occurs (incrementing the semaphore count value), and a handler * task will 'take' a semaphore each time it processes an event * (decrementing the semaphore count value). The count value is therefore * the difference between the number of events that have occurred and the * number that have been processed. In this case it is desirable for the * initial count value to be zero. * * 2) Resource management. * * In this usage scenario the count value indicates the number of resources * available. To obtain control of a resource a task must first obtain a * semaphore - decrementing the semaphore count value. When the count value * reaches zero there are no free resources. When a task finishes with the * resource it 'gives' the semaphore back - incrementing the semaphore count * value. In this case it is desirable for the initial count value to be * equal to the maximum count value, indicating that all resources are free. * * @param uxMaxCount The maximum count value that can be reached. When the * semaphore reaches this value it can no longer be 'given'. * * @param uxInitialCount The count value assigned to the semaphore when it is * created. * * @param pxSemaphoreBuffer Must point to a variable of type StaticSemaphore_t, * which will then be used to hold the semaphore's data structure, removing the * need for the memory to be allocated dynamically. * * @return If the counting semaphore was successfully created then a handle to * the created counting semaphore is returned. If pxSemaphoreBuffer was NULL * then NULL is returned. * * Example usage:
 SemaphoreHandle_t xSemaphore;
 StaticSemaphore_t xSemaphoreBuffer;

 void vATask( void * pvParameters )
 {
 SemaphoreHandle_t xSemaphore = NULL;

    // Counting semaphore cannot be used before they have been created.  Create
    // a counting semaphore using xSemaphoreCreateCountingStatic().  The max
    // value to which the semaphore can count is 10, and the initial value
    // assigned to the count will be 0.  The address of xSemaphoreBuffer is
    // passed in and will be used to hold the semaphore structure, so no dynamic
    // memory allocation will be used.
    xSemaphore = xSemaphoreCreateCounting( 10, 0, &xSemaphoreBuffer );

    // No memory allocation was attempted so xSemaphore cannot be NULL, so there
    // is no need to check its value.
 }
 
* \defgroup xSemaphoreCreateCountingStatic xSemaphoreCreateCountingStatic * \ingroup Semaphores */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) #define xSemaphoreCreateCountingStatic( uxMaxCount, uxInitialCount, pxSemaphoreBuffer ) xQueueCreateCountingSemaphoreStatic( ( uxMaxCount ), ( uxInitialCount ), ( pxSemaphoreBuffer ) ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * semphr. h *
void vSemaphoreDelete( SemaphoreHandle_t xSemaphore );
* * Delete a semaphore. This function must be used with care. For example, * do not delete a mutex type semaphore if the mutex is held by a task. * * @param xSemaphore A handle to the semaphore to be deleted. * * \defgroup vSemaphoreDelete vSemaphoreDelete * \ingroup Semaphores */ #define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) ) /** * semphr.h *
TaskHandle_t xSemaphoreGetMutexHolder( SemaphoreHandle_t xMutex );
* * If xMutex is indeed a mutex type semaphore, return the current mutex holder. * If xMutex is not a mutex type semaphore, or the mutex is available (not held * by a task), return NULL. * * Note: This is a good way of determining if the calling task is the mutex * holder, but not a good way of determining the identity of the mutex holder as * the holder may change between the function exiting and the returned value * being tested. */ #define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) ) /** * semphr.h *
TaskHandle_t xSemaphoreGetMutexHolderFromISR( SemaphoreHandle_t xMutex );
* * If xMutex is indeed a mutex type semaphore, return the current mutex holder. * If xMutex is not a mutex type semaphore, or the mutex is available (not held * by a task), return NULL. * */ #define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) ) /** * semphr.h *
UBaseType_t uxSemaphoreGetCount( SemaphoreHandle_t xSemaphore );
* * If the semaphore is a counting semaphore then uxSemaphoreGetCount() returns * its current count value. If the semaphore is a binary semaphore then * uxSemaphoreGetCount() returns 1 if the semaphore is available, and 0 if the * semaphore is not available. * */ #define uxSemaphoreGetCount( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) ) #endif /* SEMAPHORE_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef STACK_MACROS_H #define STACK_MACROS_H /* * Call the stack overflow hook function if the stack of the task being swapped * out is currently overflowed, or looks like it might have overflowed in the * past. * * Setting configCHECK_FOR_STACK_OVERFLOW to 1 will cause the macro to check * the current stack state only - comparing the current top of stack value to * the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1 * will also cause the last few stack bytes to be checked to ensure the value * to which the bytes were set when the task was created have not been * overwritten. Note this second test does not guarantee that an overflowed * stack will always be recognised. */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) ) /* Only the current stack state is to be checked. */ #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH > 0 ) ) /* Only the current stack state is to be checked. */ #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack >= pxCurrentTCB->pxEndOfStack ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) ) #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \ const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \ \ if( ( pulStack[ 0 ] != ulCheckValue ) || \ ( pulStack[ 1 ] != ulCheckValue ) || \ ( pulStack[ 2 ] != ulCheckValue ) || \ ( pulStack[ 3 ] != ulCheckValue ) ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ /*-----------------------------------------------------------*/ #if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH > 0 ) ) #define taskCHECK_FOR_STACK_OVERFLOW() \ { \ int8_t *pcEndOfStack = ( int8_t * ) pxCurrentTCB->pxEndOfStack; \ static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE }; \ \ \ pcEndOfStack -= sizeof( ucExpectedStackBytes ); \ \ /* Has the extremity of the task stack ever been written over? */ \ if( memcmp( ( void * ) pcEndOfStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ { \ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ /*-----------------------------------------------------------*/ /* Remove stack overflow macro if not being used. */ #ifndef taskCHECK_FOR_STACK_OVERFLOW #define taskCHECK_FOR_STACK_OVERFLOW() #endif #endif /* STACK_MACROS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * Stream buffers are used to send a continuous stream of data from one task or * interrupt to another. Their implementation is light weight, making them * particularly suited for interrupt to task and core to core communication * scenarios. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xStreamBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xStreamBufferReceive()) inside a critical section section and set the * receive block time to 0. * */ #ifndef STREAM_BUFFER_H #define STREAM_BUFFER_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include stream_buffer.h" #endif #if defined( __cplusplus ) extern "C" { #endif /** * Type by which stream buffers are referenced. For example, a call to * xStreamBufferCreate() returns an StreamBufferHandle_t variable that can * then be used as a parameter to xStreamBufferSend(), xStreamBufferReceive(), * etc. */ struct StreamBufferDef_t; typedef struct StreamBufferDef_t * StreamBufferHandle_t; /** * message_buffer.h *
StreamBufferHandle_t xStreamBufferCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes );
* * Creates a new stream buffer using dynamically allocated memory. See * xStreamBufferCreateStatic() for a version that uses statically allocated * memory (memory that is allocated at compile time). * * configSUPPORT_DYNAMIC_ALLOCATION must be set to 1 or left undefined in * FreeRTOSConfig.h for xStreamBufferCreate() to be available. * * @param xBufferSizeBytes The total number of bytes the stream buffer will be * able to hold at any one time. * * @param xTriggerLevelBytes The number of bytes that must be in the stream * buffer before a task that is blocked on the stream buffer to wait for data is * moved out of the blocked state. For example, if a task is blocked on a read * of an empty stream buffer that has a trigger level of 1 then the task will be * unblocked when a single byte is written to the buffer or the task's block * time expires. As another example, if a task is blocked on a read of an empty * stream buffer that has a trigger level of 10 then the task will not be * unblocked until the stream buffer contains at least 10 bytes or the task's * block time expires. If a reading task's block time expires before the * trigger level is reached then the task will still receive however many bytes * are actually available. Setting a trigger level of 0 will result in a * trigger level of 1 being used. It is not valid to specify a trigger level * that is greater than the buffer size. * * @return If NULL is returned, then the stream buffer cannot be created * because there is insufficient heap memory available for FreeRTOS to allocate * the stream buffer data structures and storage area. A non-NULL value being * returned indicates that the stream buffer has been created successfully - * the returned value should be stored as the handle to the created stream * buffer. * * Example use:

void vAFunction( void )
{
StreamBufferHandle_t xStreamBuffer;
const size_t xStreamBufferSizeBytes = 100, xTriggerLevel = 10;

    // Create a stream buffer that can hold 100 bytes.  The memory used to hold
    // both the stream buffer structure and the data in the stream buffer is
    // allocated dynamically.
    xStreamBuffer = xStreamBufferCreate( xStreamBufferSizeBytes, xTriggerLevel );

    if( xStreamBuffer == NULL )
    {
        // There was not enough heap memory space available to create the
        // stream buffer.
    }
    else
    {
        // The stream buffer was created successfully and can now be used.
    }
}
* \defgroup xStreamBufferCreate xStreamBufferCreate * \ingroup StreamBufferManagement */ #define xStreamBufferCreate( xBufferSizeBytes, xTriggerLevelBytes ) xStreamBufferGenericCreate( xBufferSizeBytes, xTriggerLevelBytes, pdFALSE ) /** * stream_buffer.h *
StreamBufferHandle_t xStreamBufferCreateStatic( size_t xBufferSizeBytes,
                                                size_t xTriggerLevelBytes,
                                                uint8_t *pucStreamBufferStorageArea,
                                                StaticStreamBuffer_t *pxStaticStreamBuffer );
* Creates a new stream buffer using statically allocated memory. See * xStreamBufferCreate() for a version that uses dynamically allocated memory. * * configSUPPORT_STATIC_ALLOCATION must be set to 1 in FreeRTOSConfig.h for * xStreamBufferCreateStatic() to be available. * * @param xBufferSizeBytes The size, in bytes, of the buffer pointed to by the * pucStreamBufferStorageArea parameter. * * @param xTriggerLevelBytes The number of bytes that must be in the stream * buffer before a task that is blocked on the stream buffer to wait for data is * moved out of the blocked state. For example, if a task is blocked on a read * of an empty stream buffer that has a trigger level of 1 then the task will be * unblocked when a single byte is written to the buffer or the task's block * time expires. As another example, if a task is blocked on a read of an empty * stream buffer that has a trigger level of 10 then the task will not be * unblocked until the stream buffer contains at least 10 bytes or the task's * block time expires. If a reading task's block time expires before the * trigger level is reached then the task will still receive however many bytes * are actually available. Setting a trigger level of 0 will result in a * trigger level of 1 being used. It is not valid to specify a trigger level * that is greater than the buffer size. * * @param pucStreamBufferStorageArea Must point to a uint8_t array that is at * least xBufferSizeBytes + 1 big. This is the array to which streams are * copied when they are written to the stream buffer. * * @param pxStaticStreamBuffer Must point to a variable of type * StaticStreamBuffer_t, which will be used to hold the stream buffer's data * structure. * * @return If the stream buffer is created successfully then a handle to the * created stream buffer is returned. If either pucStreamBufferStorageArea or * pxStaticstreamBuffer are NULL then NULL is returned. * * Example use:

// Used to dimension the array used to hold the streams.  The available space
// will actually be one less than this, so 999.
#define STORAGE_SIZE_BYTES 1000

// Defines the memory that will actually hold the streams within the stream
// buffer.
static uint8_t ucStorageBuffer[ STORAGE_SIZE_BYTES ];

// The variable used to hold the stream buffer structure.
StaticStreamBuffer_t xStreamBufferStruct;

void MyFunction( void )
{
StreamBufferHandle_t xStreamBuffer;
const size_t xTriggerLevel = 1;

    xStreamBuffer = xStreamBufferCreateStatic( sizeof( ucBufferStorage ),
                                               xTriggerLevel,
                                               ucBufferStorage,
                                               &xStreamBufferStruct );

    // As neither the pucStreamBufferStorageArea or pxStaticStreamBuffer
    // parameters were NULL, xStreamBuffer will not be NULL, and can be used to
    // reference the created stream buffer in other stream buffer API calls.

    // Other code that uses the stream buffer can go here.
}

* \defgroup xStreamBufferCreateStatic xStreamBufferCreateStatic * \ingroup StreamBufferManagement */ #define xStreamBufferCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pdFALSE, pucStreamBufferStorageArea, pxStaticStreamBuffer ) /** * stream_buffer.h *
size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
                          const void *pvTxData,
                          size_t xDataLengthBytes,
                          TickType_t xTicksToWait );
* * Sends bytes to a stream buffer. The bytes are copied into the stream buffer. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xStreamBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xStreamBufferReceive()) inside a critical section and set the receive * block time to 0. * * Use xStreamBufferSend() to write to a stream buffer from a task. Use * xStreamBufferSendFromISR() to write to a stream buffer from an interrupt * service routine (ISR). * * @param xStreamBuffer The handle of the stream buffer to which a stream is * being sent. * * @param pvTxData A pointer to the buffer that holds the bytes to be copied * into the stream buffer. * * @param xDataLengthBytes The maximum number of bytes to copy from pvTxData * into the stream buffer. * * @param xTicksToWait The maximum amount of time the task should remain in the * Blocked state to wait for enough space to become available in the stream * buffer, should the stream buffer contain too little space to hold the * another xDataLengthBytes bytes. The block time is specified in tick periods, * so the absolute time it represents is dependent on the tick frequency. The * macro pdMS_TO_TICKS() can be used to convert a time specified in milliseconds * into a time specified in ticks. Setting xTicksToWait to portMAX_DELAY will * cause the task to wait indefinitely (without timing out), provided * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h. If a task times out * before it can write all xDataLengthBytes into the buffer it will still write * as many bytes as possible. A task does not use any CPU time when it is in * the blocked state. * * @return The number of bytes written to the stream buffer. If a task times * out before it can write all xDataLengthBytes into the buffer it will still * write as many bytes as possible. * * Example use:
void vAFunction( StreamBufferHandle_t xStreamBuffer )
{
size_t xBytesSent;
uint8_t ucArrayToSend[] = { 0, 1, 2, 3 };
char *pcStringToSend = "String to send";
const TickType_t x100ms = pdMS_TO_TICKS( 100 );

    // Send an array to the stream buffer, blocking for a maximum of 100ms to
    // wait for enough space to be available in the stream buffer.
    xBytesSent = xStreamBufferSend( xStreamBuffer, ( void * ) ucArrayToSend, sizeof( ucArrayToSend ), x100ms );

    if( xBytesSent != sizeof( ucArrayToSend ) )
    {
        // The call to xStreamBufferSend() times out before there was enough
        // space in the buffer for the data to be written, but it did
        // successfully write xBytesSent bytes.
    }

    // Send the string to the stream buffer.  Return immediately if there is not
    // enough space in the buffer.
    xBytesSent = xStreamBufferSend( xStreamBuffer, ( void * ) pcStringToSend, strlen( pcStringToSend ), 0 );

    if( xBytesSent != strlen( pcStringToSend ) )
    {
        // The entire string could not be added to the stream buffer because
        // there was not enough free space in the buffer, but xBytesSent bytes
        // were sent.  Could try again to send the remaining bytes.
    }
}
* \defgroup xStreamBufferSend xStreamBufferSend * \ingroup StreamBufferManagement */ size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
                                 const void *pvTxData,
                                 size_t xDataLengthBytes,
                                 BaseType_t *pxHigherPriorityTaskWoken );
* * Interrupt safe version of the API function that sends a stream of bytes to * the stream buffer. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xStreamBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xStreamBufferReceive()) inside a critical section and set the receive * block time to 0. * * Use xStreamBufferSend() to write to a stream buffer from a task. Use * xStreamBufferSendFromISR() to write to a stream buffer from an interrupt * service routine (ISR). * * @param xStreamBuffer The handle of the stream buffer to which a stream is * being sent. * * @param pvTxData A pointer to the data that is to be copied into the stream * buffer. * * @param xDataLengthBytes The maximum number of bytes to copy from pvTxData * into the stream buffer. * * @param pxHigherPriorityTaskWoken It is possible that a stream buffer will * have a task blocked on it waiting for data. Calling * xStreamBufferSendFromISR() can make data available, and so cause a task that * was waiting for data to leave the Blocked state. If calling * xStreamBufferSendFromISR() causes a task to leave the Blocked state, and the * unblocked task has a priority higher than the currently executing task (the * task that was interrupted), then, internally, xStreamBufferSendFromISR() * will set *pxHigherPriorityTaskWoken to pdTRUE. If * xStreamBufferSendFromISR() sets this value to pdTRUE, then normally a * context switch should be performed before the interrupt is exited. This will * ensure that the interrupt returns directly to the highest priority Ready * state task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it * is passed into the function. See the example code below for an example. * * @return The number of bytes actually written to the stream buffer, which will * be less than xDataLengthBytes if the stream buffer didn't have enough free * space for all the bytes to be written. * * Example use:
// A stream buffer that has already been created.
StreamBufferHandle_t xStreamBuffer;

void vAnInterruptServiceRoutine( void )
{
size_t xBytesSent;
char *pcStringToSend = "String to send";
BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Initialised to pdFALSE.

    // Attempt to send the string to the stream buffer.
    xBytesSent = xStreamBufferSendFromISR( xStreamBuffer,
                                           ( void * ) pcStringToSend,
                                           strlen( pcStringToSend ),
                                           &xHigherPriorityTaskWoken );

    if( xBytesSent != strlen( pcStringToSend ) )
    {
        // There was not enough free space in the stream buffer for the entire
        // string to be written, ut xBytesSent bytes were written.
    }

    // If xHigherPriorityTaskWoken was set to pdTRUE inside
    // xStreamBufferSendFromISR() then a task that has a priority above the
    // priority of the currently executing task was unblocked and a context
    // switch should be performed to ensure the ISR returns to the unblocked
    // task.  In most FreeRTOS ports this is done by simply passing
    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the
    // variables value, and perform the context switch if necessary.  Check the
    // documentation for the port in use for port specific instructions.
    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
* \defgroup xStreamBufferSendFromISR xStreamBufferSendFromISR * \ingroup StreamBufferManagement */ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
                             void *pvRxData,
                             size_t xBufferLengthBytes,
                             TickType_t xTicksToWait );
* * Receives bytes from a stream buffer. * * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer * implementation (so also the message buffer implementation, as message buffers * are built on top of stream buffers) assumes there is only one task or * interrupt that will write to the buffer (the writer), and only one task or * interrupt that will read from the buffer (the reader). It is safe for the * writer and reader to be different tasks or interrupts, but, unlike other * FreeRTOS objects, it is not safe to have multiple different writers or * multiple different readers. If there are to be multiple different writers * then the application writer must place each call to a writing API function * (such as xStreamBufferSend()) inside a critical section and set the send * block time to 0. Likewise, if there are to be multiple different readers * then the application writer must place each call to a reading API function * (such as xStreamBufferReceive()) inside a critical section and set the receive * block time to 0. * * Use xStreamBufferReceive() to read from a stream buffer from a task. Use * xStreamBufferReceiveFromISR() to read from a stream buffer from an * interrupt service routine (ISR). * * @param xStreamBuffer The handle of the stream buffer from which bytes are to * be received. * * @param pvRxData A pointer to the buffer into which the received bytes will be * copied. * * @param xBufferLengthBytes The length of the buffer pointed to by the * pvRxData parameter. This sets the maximum number of bytes to receive in one * call. xStreamBufferReceive will return as many bytes as possible up to a * maximum set by xBufferLengthBytes. * * @param xTicksToWait The maximum amount of time the task should remain in the * Blocked state to wait for data to become available if the stream buffer is * empty. xStreamBufferReceive() will return immediately if xTicksToWait is * zero. The block time is specified in tick periods, so the absolute time it * represents is dependent on the tick frequency. The macro pdMS_TO_TICKS() can * be used to convert a time specified in milliseconds into a time specified in * ticks. Setting xTicksToWait to portMAX_DELAY will cause the task to wait * indefinitely (without timing out), provided INCLUDE_vTaskSuspend is set to 1 * in FreeRTOSConfig.h. A task does not use any CPU time when it is in the * Blocked state. * * @return The number of bytes actually read from the stream buffer, which will * be less than xBufferLengthBytes if the call to xStreamBufferReceive() timed * out before xBufferLengthBytes were available. * * Example use:
void vAFunction( StreamBuffer_t xStreamBuffer )
{
uint8_t ucRxData[ 20 ];
size_t xReceivedBytes;
const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );

    // Receive up to another sizeof( ucRxData ) bytes from the stream buffer.
    // Wait in the Blocked state (so not using any CPU processing time) for a
    // maximum of 100ms for the full sizeof( ucRxData ) number of bytes to be
    // available.
    xReceivedBytes = xStreamBufferReceive( xStreamBuffer,
                                           ( void * ) ucRxData,
                                           sizeof( ucRxData ),
                                           xBlockTime );

    if( xReceivedBytes > 0 )
    {
        // A ucRxData contains another xRecievedBytes bytes of data, which can
        // be processed here....
    }
}
* \defgroup xStreamBufferReceive xStreamBufferReceive * \ingroup StreamBufferManagement */ size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
                                    void *pvRxData,
                                    size_t xBufferLengthBytes,
                                    BaseType_t *pxHigherPriorityTaskWoken );
* * An interrupt safe version of the API function that receives bytes from a * stream buffer. * * Use xStreamBufferReceive() to read bytes from a stream buffer from a task. * Use xStreamBufferReceiveFromISR() to read bytes from a stream buffer from an * interrupt service routine (ISR). * * @param xStreamBuffer The handle of the stream buffer from which a stream * is being received. * * @param pvRxData A pointer to the buffer into which the received bytes are * copied. * * @param xBufferLengthBytes The length of the buffer pointed to by the * pvRxData parameter. This sets the maximum number of bytes to receive in one * call. xStreamBufferReceive will return as many bytes as possible up to a * maximum set by xBufferLengthBytes. * * @param pxHigherPriorityTaskWoken It is possible that a stream buffer will * have a task blocked on it waiting for space to become available. Calling * xStreamBufferReceiveFromISR() can make space available, and so cause a task * that is waiting for space to leave the Blocked state. If calling * xStreamBufferReceiveFromISR() causes a task to leave the Blocked state, and * the unblocked task has a priority higher than the currently executing task * (the task that was interrupted), then, internally, * xStreamBufferReceiveFromISR() will set *pxHigherPriorityTaskWoken to pdTRUE. * If xStreamBufferReceiveFromISR() sets this value to pdTRUE, then normally a * context switch should be performed before the interrupt is exited. That will * ensure the interrupt returns directly to the highest priority Ready state * task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it is * passed into the function. See the code example below for an example. * * @return The number of bytes read from the stream buffer, if any. * * Example use:
// A stream buffer that has already been created.
StreamBuffer_t xStreamBuffer;

void vAnInterruptServiceRoutine( void )
{
uint8_t ucRxData[ 20 ];
size_t xReceivedBytes;
BaseType_t xHigherPriorityTaskWoken = pdFALSE;  // Initialised to pdFALSE.

    // Receive the next stream from the stream buffer.
    xReceivedBytes = xStreamBufferReceiveFromISR( xStreamBuffer,
                                                  ( void * ) ucRxData,
                                                  sizeof( ucRxData ),
                                                  &xHigherPriorityTaskWoken );

    if( xReceivedBytes > 0 )
    {
        // ucRxData contains xReceivedBytes read from the stream buffer.
        // Process the stream here....
    }

    // If xHigherPriorityTaskWoken was set to pdTRUE inside
    // xStreamBufferReceiveFromISR() then a task that has a priority above the
    // priority of the currently executing task was unblocked and a context
    // switch should be performed to ensure the ISR returns to the unblocked
    // task.  In most FreeRTOS ports this is done by simply passing
    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the
    // variables value, and perform the context switch if necessary.  Check the
    // documentation for the port in use for port specific instructions.
    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
* \defgroup xStreamBufferReceiveFromISR xStreamBufferReceiveFromISR * \ingroup StreamBufferManagement */ size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer );
* * Deletes a stream buffer that was previously created using a call to * xStreamBufferCreate() or xStreamBufferCreateStatic(). If the stream * buffer was created using dynamic memory (that is, by xStreamBufferCreate()), * then the allocated memory is freed. * * A stream buffer handle must not be used after the stream buffer has been * deleted. * * @param xStreamBuffer The handle of the stream buffer to be deleted. * * \defgroup vStreamBufferDelete vStreamBufferDelete * \ingroup StreamBufferManagement */ void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer );
* * Queries a stream buffer to see if it is full. A stream buffer is full if it * does not have any free space, and therefore cannot accept any more data. * * @param xStreamBuffer The handle of the stream buffer being queried. * * @return If the stream buffer is full then pdTRUE is returned. Otherwise * pdFALSE is returned. * * \defgroup xStreamBufferIsFull xStreamBufferIsFull * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer );
* * Queries a stream buffer to see if it is empty. A stream buffer is empty if * it does not contain any data. * * @param xStreamBuffer The handle of the stream buffer being queried. * * @return If the stream buffer is empty then pdTRUE is returned. Otherwise * pdFALSE is returned. * * \defgroup xStreamBufferIsEmpty xStreamBufferIsEmpty * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer );
* * Resets a stream buffer to its initial, empty, state. Any data that was in * the stream buffer is discarded. A stream buffer can only be reset if there * are no tasks blocked waiting to either send to or receive from the stream * buffer. * * @param xStreamBuffer The handle of the stream buffer being reset. * * @return If the stream buffer is reset then pdPASS is returned. If there was * a task blocked waiting to send to or read from the stream buffer then the * stream buffer is not reset and pdFAIL is returned. * * \defgroup xStreamBufferReset xStreamBufferReset * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer );
* * Queries a stream buffer to see how much free space it contains, which is * equal to the amount of data that can be sent to the stream buffer before it * is full. * * @param xStreamBuffer The handle of the stream buffer being queried. * * @return The number of bytes that can be written to the stream buffer before * the stream buffer would be full. * * \defgroup xStreamBufferSpacesAvailable xStreamBufferSpacesAvailable * \ingroup StreamBufferManagement */ size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer );
* * Queries a stream buffer to see how much data it contains, which is equal to * the number of bytes that can be read from the stream buffer before the stream * buffer would be empty. * * @param xStreamBuffer The handle of the stream buffer being queried. * * @return The number of bytes that can be read from the stream buffer before * the stream buffer would be empty. * * \defgroup xStreamBufferBytesAvailable xStreamBufferBytesAvailable * \ingroup StreamBufferManagement */ size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel );
* * A stream buffer's trigger level is the number of bytes that must be in the * stream buffer before a task that is blocked on the stream buffer to * wait for data is moved out of the blocked state. For example, if a task is * blocked on a read of an empty stream buffer that has a trigger level of 1 * then the task will be unblocked when a single byte is written to the buffer * or the task's block time expires. As another example, if a task is blocked * on a read of an empty stream buffer that has a trigger level of 10 then the * task will not be unblocked until the stream buffer contains at least 10 bytes * or the task's block time expires. If a reading task's block time expires * before the trigger level is reached then the task will still receive however * many bytes are actually available. Setting a trigger level of 0 will result * in a trigger level of 1 being used. It is not valid to specify a trigger * level that is greater than the buffer size. * * A trigger level is set when the stream buffer is created, and can be modified * using xStreamBufferSetTriggerLevel(). * * @param xStreamBuffer The handle of the stream buffer being updated. * * @param xTriggerLevel The new trigger level for the stream buffer. * * @return If xTriggerLevel was less than or equal to the stream buffer's length * then the trigger level will be updated and pdTRUE is returned. Otherwise * pdFALSE is returned. * * \defgroup xStreamBufferSetTriggerLevel xStreamBufferSetTriggerLevel * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
* * For advanced users only. * * The sbSEND_COMPLETED() macro is called from within the FreeRTOS APIs when * data is sent to a message buffer or stream buffer. If there was a task that * was blocked on the message or stream buffer waiting for data to arrive then * the sbSEND_COMPLETED() macro sends a notification to the task to remove it * from the Blocked state. xStreamBufferSendCompletedFromISR() does the same * thing. It is provided to enable application writers to implement their own * version of sbSEND_COMPLETED(), and MUST NOT BE USED AT ANY OTHER TIME. * * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for * additional information. * * @param xStreamBuffer The handle of the stream buffer to which data was * written. * * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be * initialised to pdFALSE before it is passed into * xStreamBufferSendCompletedFromISR(). If calling * xStreamBufferSendCompletedFromISR() removes a task from the Blocked state, * and the task has a priority above the priority of the currently running task, * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a * context switch should be performed before exiting the ISR. * * @return If a task was removed from the Blocked state then pdTRUE is returned. * Otherwise pdFALSE is returned. * * \defgroup xStreamBufferSendCompletedFromISR xStreamBufferSendCompletedFromISR * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /** * stream_buffer.h *
BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
* * For advanced users only. * * The sbRECEIVE_COMPLETED() macro is called from within the FreeRTOS APIs when * data is read out of a message buffer or stream buffer. If there was a task * that was blocked on the message or stream buffer waiting for data to arrive * then the sbRECEIVE_COMPLETED() macro sends a notification to the task to * remove it from the Blocked state. xStreamBufferReceiveCompletedFromISR() * does the same thing. It is provided to enable application writers to * implement their own version of sbRECEIVE_COMPLETED(), and MUST NOT BE USED AT * ANY OTHER TIME. * * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for * additional information. * * @param xStreamBuffer The handle of the stream buffer from which data was * read. * * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be * initialised to pdFALSE before it is passed into * xStreamBufferReceiveCompletedFromISR(). If calling * xStreamBufferReceiveCompletedFromISR() removes a task from the Blocked state, * and the task has a priority above the priority of the currently running task, * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a * context switch should be performed before exiting the ISR. * * @return If a task was removed from the Blocked state then pdTRUE is returned. * Otherwise pdFALSE is returned. * * \defgroup xStreamBufferReceiveCompletedFromISR xStreamBufferReceiveCompletedFromISR * \ingroup StreamBufferManagement */ BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /* Functions below here are not part of the public API. */ StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer ) PRIVILEGED_FUNCTION; StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer, uint8_t * const pucStreamBufferStorageArea, StaticStreamBuffer_t * const pxStaticStreamBuffer ) PRIVILEGED_FUNCTION; size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; #if( configUSE_TRACE_FACILITY == 1 ) void vStreamBufferSetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer, UBaseType_t uxStreamBufferNumber ) PRIVILEGED_FUNCTION; UBaseType_t uxStreamBufferGetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; #endif #if defined( __cplusplus ) } #endif #endif /* !defined( STREAM_BUFFER_H ) */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/task.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef INC_TASK_H #define INC_TASK_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include task.h" #endif #include "list.h" #ifdef __cplusplus extern "C" { #endif /*----------------------------------------------------------- * MACROS AND DEFINITIONS *----------------------------------------------------------*/ #define tskKERNEL_VERSION_NUMBER "V10.3.1" #define tskKERNEL_VERSION_MAJOR 10 #define tskKERNEL_VERSION_MINOR 3 #define tskKERNEL_VERSION_BUILD 1 /* MPU region parameters passed in ulParameters * of MemoryRegion_t struct. */ #define tskMPU_REGION_READ_ONLY ( 1UL << 0UL ) #define tskMPU_REGION_READ_WRITE ( 1UL << 1UL ) #define tskMPU_REGION_EXECUTE_NEVER ( 1UL << 2UL ) #define tskMPU_REGION_NORMAL_MEMORY ( 1UL << 3UL ) #define tskMPU_REGION_DEVICE_MEMORY ( 1UL << 4UL ) /** * task. h * * Type by which tasks are referenced. For example, a call to xTaskCreate * returns (via a pointer parameter) an TaskHandle_t variable that can then * be used as a parameter to vTaskDelete to delete the task. * * \defgroup TaskHandle_t TaskHandle_t * \ingroup Tasks */ struct tskTaskControlBlock; /* The old naming convention is used to prevent breaking kernel aware debuggers. */ typedef struct tskTaskControlBlock* TaskHandle_t; /* * Defines the prototype to which the application task hook function must * conform. */ typedef BaseType_t (*TaskHookFunction_t)( void * ); /* Task states returned by eTaskGetState. */ typedef enum { eRunning = 0, /* A task is querying the state of itself, so must be running. */ eReady, /* The task being queried is in a read or pending ready list. */ eBlocked, /* The task being queried is in the Blocked state. */ eSuspended, /* The task being queried is in the Suspended state, or is in the Blocked state with an infinite time out. */ eDeleted, /* The task being queried has been deleted, but its TCB has not yet been freed. */ eInvalid /* Used as an 'invalid state' value. */ } eTaskState; /* Actions that can be performed when vTaskNotify() is called. */ typedef enum { eNoAction = 0, /* Notify the task without updating its notify value. */ eSetBits, /* Set bits in the task's notification value. */ eIncrement, /* Increment the task's notification value. */ eSetValueWithOverwrite, /* Set the task's notification value to a specific value even if the previous value has not yet been read by the task. */ eSetValueWithoutOverwrite /* Set the task's notification value if the previous value has been read by the task. */ } eNotifyAction; /* * Used internally only. */ typedef struct xTIME_OUT { BaseType_t xOverflowCount; TickType_t xTimeOnEntering; } TimeOut_t; /* * Defines the memory ranges allocated to the task when an MPU is used. */ typedef struct xMEMORY_REGION { void *pvBaseAddress; uint32_t ulLengthInBytes; uint32_t ulParameters; } MemoryRegion_t; /* * Parameters required to create an MPU protected task. */ typedef struct xTASK_PARAMETERS { TaskFunction_t pvTaskCode; const char * const pcName; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ configSTACK_DEPTH_TYPE usStackDepth; void *pvParameters; UBaseType_t uxPriority; StackType_t *puxStackBuffer; MemoryRegion_t xRegions[ portNUM_CONFIGURABLE_REGIONS ]; #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) StaticTask_t * const pxTaskBuffer; #endif } TaskParameters_t; /* Used with the uxTaskGetSystemState() function to return the state of each task in the system. */ typedef struct xTASK_STATUS { TaskHandle_t xHandle; /* The handle of the task to which the rest of the information in the structure relates. */ const char *pcTaskName; /* A pointer to the task's name. This value will be invalid if the task was deleted since the structure was populated! */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ UBaseType_t xTaskNumber; /* A number unique to the task. */ eTaskState eCurrentState; /* The state in which the task existed when the structure was populated. */ UBaseType_t uxCurrentPriority; /* The priority at which the task was running (may be inherited) when the structure was populated. */ UBaseType_t uxBasePriority; /* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */ uint32_t ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See http://www.freertos.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */ StackType_t *pxStackBase; /* Points to the lowest address of the task's stack area. */ configSTACK_DEPTH_TYPE usStackHighWaterMark; /* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */ } TaskStatus_t; /* Possible return values for eTaskConfirmSleepModeStatus(). */ typedef enum { eAbortSleep = 0, /* A task has been made ready or a context switch pended since portSUPPORESS_TICKS_AND_SLEEP() was called - abort entering a sleep mode. */ eStandardSleep, /* Enter a sleep mode that will not last any longer than the expected idle time. */ eNoTasksWaitingTimeout /* No tasks are waiting for a timeout so it is safe to enter a sleep mode that can only be exited by an external interrupt. */ } eSleepModeStatus; /** * Defines the priority used by the idle task. This must not be modified. * * \ingroup TaskUtils */ #define tskIDLE_PRIORITY ( ( UBaseType_t ) 0U ) /** * task. h * * Macro for forcing a context switch. * * \defgroup taskYIELD taskYIELD * \ingroup SchedulerControl */ #define taskYIELD() portYIELD() /** * task. h * * Macro to mark the start of a critical code region. Preemptive context * switches cannot occur when in a critical region. * * NOTE: This may alter the stack (depending on the portable implementation) * so must be used with care! * * \defgroup taskENTER_CRITICAL taskENTER_CRITICAL * \ingroup SchedulerControl */ #define taskENTER_CRITICAL() portENTER_CRITICAL() #define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR() /** * task. h * * Macro to mark the end of a critical code region. Preemptive context * switches cannot occur when in a critical region. * * NOTE: This may alter the stack (depending on the portable implementation) * so must be used with care! * * \defgroup taskEXIT_CRITICAL taskEXIT_CRITICAL * \ingroup SchedulerControl */ #define taskEXIT_CRITICAL() portEXIT_CRITICAL() #define taskEXIT_CRITICAL_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( x ) /** * task. h * * Macro to disable all maskable interrupts. * * \defgroup taskDISABLE_INTERRUPTS taskDISABLE_INTERRUPTS * \ingroup SchedulerControl */ #define taskDISABLE_INTERRUPTS() portDISABLE_INTERRUPTS() /** * task. h * * Macro to enable microcontroller interrupts. * * \defgroup taskENABLE_INTERRUPTS taskENABLE_INTERRUPTS * \ingroup SchedulerControl */ #define taskENABLE_INTERRUPTS() portENABLE_INTERRUPTS() /* Definitions returned by xTaskGetSchedulerState(). taskSCHEDULER_SUSPENDED is 0 to generate more optimal code when configASSERT() is defined as the constant is used in assert() statements. */ #define taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 ) #define taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 ) #define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 ) /*----------------------------------------------------------- * TASK CREATION API *----------------------------------------------------------*/ /** * task. h *
 BaseType_t xTaskCreate(
							  TaskFunction_t pvTaskCode,
							  const char * const pcName,
							  configSTACK_DEPTH_TYPE usStackDepth,
							  void *pvParameters,
							  UBaseType_t uxPriority,
							  TaskHandle_t *pvCreatedTask
						  );
* * Create a new task and add it to the list of tasks that are ready to run. * * Internally, within the FreeRTOS implementation, tasks use two blocks of * memory. The first block is used to hold the task's data structures. The * second block is used by the task as its stack. If a task is created using * xTaskCreate() then both blocks of memory are automatically dynamically * allocated inside the xTaskCreate() function. (see * http://www.freertos.org/a00111.html). If a task is created using * xTaskCreateStatic() then the application writer must provide the required * memory. xTaskCreateStatic() therefore allows a task to be created without * using any dynamic memory allocation. * * See xTaskCreateStatic() for a version that does not use any dynamic memory * allocation. * * xTaskCreate() can only be used to create a task that has unrestricted * access to the entire microcontroller memory map. Systems that include MPU * support can alternatively create an MPU constrained task using * xTaskCreateRestricted(). * * @param pvTaskCode Pointer to the task entry function. Tasks * must be implemented to never return (i.e. continuous loop). * * @param pcName A descriptive name for the task. This is mainly used to * facilitate debugging. Max length defined by configMAX_TASK_NAME_LEN - default * is 16. * * @param usStackDepth The size of the task stack specified as the number of * variables the stack can hold - not the number of bytes. For example, if * the stack is 16 bits wide and usStackDepth is defined as 100, 200 bytes * will be allocated for stack storage. * * @param pvParameters Pointer that will be used as the parameter for the task * being created. * * @param uxPriority The priority at which the task should run. Systems that * include MPU support can optionally create tasks in a privileged (system) * mode by setting bit portPRIVILEGE_BIT of the priority parameter. For * example, to create a privileged task at priority 2 the uxPriority parameter * should be set to ( 2 | portPRIVILEGE_BIT ). * * @param pvCreatedTask Used to pass back a handle by which the created task * can be referenced. * * @return pdPASS if the task was successfully created and added to a ready * list, otherwise an error code defined in the file projdefs.h * * Example usage:
 // Task to be created.
 void vTaskCode( void * pvParameters )
 {
	 for( ;; )
	 {
		 // Task code goes here.
	 }
 }

 // Function that creates a task.
 void vOtherFunction( void )
 {
 static uint8_t ucParameterToPass;
 TaskHandle_t xHandle = NULL;

	 // Create the task, storing the handle.  Note that the passed parameter ucParameterToPass
	 // must exist for the lifetime of the task, so in this case is declared static.  If it was just an
	 // an automatic stack variable it might no longer exist, or at least have been corrupted, by the time
	 // the new task attempts to access it.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, &ucParameterToPass, tskIDLE_PRIORITY, &xHandle );
	 configASSERT( xHandle );

	 // Use the handle to delete the task.
	 if( xHandle != NULL )
	 {
	 	vTaskDelete( xHandle );
	 }
 }
   
* \defgroup xTaskCreate xTaskCreate * \ingroup Tasks */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const configSTACK_DEPTH_TYPE usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION; #endif /** * task. h *
 TaskHandle_t xTaskCreateStatic( TaskFunction_t pvTaskCode,
								 const char * const pcName,
								 uint32_t ulStackDepth,
								 void *pvParameters,
								 UBaseType_t uxPriority,
								 StackType_t *pxStackBuffer,
								 StaticTask_t *pxTaskBuffer );
* * Create a new task and add it to the list of tasks that are ready to run. * * Internally, within the FreeRTOS implementation, tasks use two blocks of * memory. The first block is used to hold the task's data structures. The * second block is used by the task as its stack. If a task is created using * xTaskCreate() then both blocks of memory are automatically dynamically * allocated inside the xTaskCreate() function. (see * http://www.freertos.org/a00111.html). If a task is created using * xTaskCreateStatic() then the application writer must provide the required * memory. xTaskCreateStatic() therefore allows a task to be created without * using any dynamic memory allocation. * * @param pvTaskCode Pointer to the task entry function. Tasks * must be implemented to never return (i.e. continuous loop). * * @param pcName A descriptive name for the task. This is mainly used to * facilitate debugging. The maximum length of the string is defined by * configMAX_TASK_NAME_LEN in FreeRTOSConfig.h. * * @param ulStackDepth The size of the task stack specified as the number of * variables the stack can hold - not the number of bytes. For example, if * the stack is 32-bits wide and ulStackDepth is defined as 100 then 400 bytes * will be allocated for stack storage. * * @param pvParameters Pointer that will be used as the parameter for the task * being created. * * @param uxPriority The priority at which the task will run. * * @param pxStackBuffer Must point to a StackType_t array that has at least * ulStackDepth indexes - the array will then be used as the task's stack, * removing the need for the stack to be allocated dynamically. * * @param pxTaskBuffer Must point to a variable of type StaticTask_t, which will * then be used to hold the task's data structures, removing the need for the * memory to be allocated dynamically. * * @return If neither pxStackBuffer or pxTaskBuffer are NULL, then the task will * be created and a handle to the created task is returned. If either * pxStackBuffer or pxTaskBuffer are NULL then the task will not be created and * NULL is returned. * * Example usage:

    // Dimensions the buffer that the task being created will use as its stack.
    // NOTE:  This is the number of words the stack will hold, not the number of
    // bytes.  For example, if each stack item is 32-bits, and this is set to 100,
    // then 400 bytes (100 * 32-bits) will be allocated.
    #define STACK_SIZE 200

    // Structure that will hold the TCB of the task being created.
    StaticTask_t xTaskBuffer;

    // Buffer that the task being created will use as its stack.  Note this is
    // an array of StackType_t variables.  The size of StackType_t is dependent on
    // the RTOS port.
    StackType_t xStack[ STACK_SIZE ];

    // Function that implements the task being created.
    void vTaskCode( void * pvParameters )
    {
        // The parameter value is expected to be 1 as 1 is passed in the
        // pvParameters value in the call to xTaskCreateStatic().
        configASSERT( ( uint32_t ) pvParameters == 1UL );

        for( ;; )
        {
            // Task code goes here.
        }
    }

    // Function that creates a task.
    void vOtherFunction( void )
    {
        TaskHandle_t xHandle = NULL;

        // Create the task without using any dynamic memory allocation.
        xHandle = xTaskCreateStatic(
                      vTaskCode,       // Function that implements the task.
                      "NAME",          // Text name for the task.
                      STACK_SIZE,      // Stack size in words, not bytes.
                      ( void * ) 1,    // Parameter passed into the task.
                      tskIDLE_PRIORITY,// Priority at which the task is created.
                      xStack,          // Array to use as the task's stack.
                      &xTaskBuffer );  // Variable to hold the task's data structure.

        // puxStackBuffer and pxTaskBuffer were not NULL, so the task will have
        // been created, and xHandle will be the task's handle.  Use the handle
        // to suspend the task.
        vTaskSuspend( xHandle );
    }
   
* \defgroup xTaskCreateStatic xTaskCreateStatic * \ingroup Tasks */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer ) PRIVILEGED_FUNCTION; #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * task. h *
 BaseType_t xTaskCreateRestricted( TaskParameters_t *pxTaskDefinition, TaskHandle_t *pxCreatedTask );
* * Only available when configSUPPORT_DYNAMIC_ALLOCATION is set to 1. * * xTaskCreateRestricted() should only be used in systems that include an MPU * implementation. * * Create a new task and add it to the list of tasks that are ready to run. * The function parameters define the memory regions and associated access * permissions allocated to the task. * * See xTaskCreateRestrictedStatic() for a version that does not use any * dynamic memory allocation. * * @param pxTaskDefinition Pointer to a structure that contains a member * for each of the normal xTaskCreate() parameters (see the xTaskCreate() API * documentation) plus an optional stack buffer and the memory region * definitions. * * @param pxCreatedTask Used to pass back a handle by which the created task * can be referenced. * * @return pdPASS if the task was successfully created and added to a ready * list, otherwise an error code defined in the file projdefs.h * * Example usage:
// Create an TaskParameters_t structure that defines the task to be created.
static const TaskParameters_t xCheckTaskParameters =
{
	vATask,		// pvTaskCode - the function that implements the task.
	"ATask",	// pcName - just a text name for the task to assist debugging.
	100,		// usStackDepth	- the stack size DEFINED IN WORDS.
	NULL,		// pvParameters - passed into the task function as the function parameters.
	( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
	cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.

	// xRegions - Allocate up to three separate memory regions for access by
	// the task, with appropriate access permissions.  Different processors have
	// different memory alignment requirements - refer to the FreeRTOS documentation
	// for full information.
	{
		// Base address					Length	Parameters
		{ cReadWriteArray,				32,		portMPU_REGION_READ_WRITE },
		{ cReadOnlyArray,				32,		portMPU_REGION_READ_ONLY },
		{ cPrivilegedOnlyAccessArray,	128,	portMPU_REGION_PRIVILEGED_READ_WRITE }
	}
};

int main( void )
{
TaskHandle_t xHandle;

	// Create a task from the const structure defined above.  The task handle
	// is requested (the second parameter is not NULL) but in this case just for
	// demonstration purposes as its not actually used.
	xTaskCreateRestricted( &xRegTest1Parameters, &xHandle );

	// Start the scheduler.
	vTaskStartScheduler();

	// Will only get here if there was insufficient memory to create the idle
	// and/or timer task.
	for( ;; );
}
   
* \defgroup xTaskCreateRestricted xTaskCreateRestricted * \ingroup Tasks */ #if( portUSING_MPU_WRAPPERS == 1 ) BaseType_t xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) PRIVILEGED_FUNCTION; #endif /** * task. h *
 BaseType_t xTaskCreateRestrictedStatic( TaskParameters_t *pxTaskDefinition, TaskHandle_t *pxCreatedTask );
* * Only available when configSUPPORT_STATIC_ALLOCATION is set to 1. * * xTaskCreateRestrictedStatic() should only be used in systems that include an * MPU implementation. * * Internally, within the FreeRTOS implementation, tasks use two blocks of * memory. The first block is used to hold the task's data structures. The * second block is used by the task as its stack. If a task is created using * xTaskCreateRestricted() then the stack is provided by the application writer, * and the memory used to hold the task's data structure is automatically * dynamically allocated inside the xTaskCreateRestricted() function. If a task * is created using xTaskCreateRestrictedStatic() then the application writer * must provide the memory used to hold the task's data structures too. * xTaskCreateRestrictedStatic() therefore allows a memory protected task to be * created without using any dynamic memory allocation. * * @param pxTaskDefinition Pointer to a structure that contains a member * for each of the normal xTaskCreate() parameters (see the xTaskCreate() API * documentation) plus an optional stack buffer and the memory region * definitions. If configSUPPORT_STATIC_ALLOCATION is set to 1 the structure * contains an additional member, which is used to point to a variable of type * StaticTask_t - which is then used to hold the task's data structure. * * @param pxCreatedTask Used to pass back a handle by which the created task * can be referenced. * * @return pdPASS if the task was successfully created and added to a ready * list, otherwise an error code defined in the file projdefs.h * * Example usage:
// Create an TaskParameters_t structure that defines the task to be created.
// The StaticTask_t variable is only included in the structure when
// configSUPPORT_STATIC_ALLOCATION is set to 1.  The PRIVILEGED_DATA macro can
// be used to force the variable into the RTOS kernel's privileged data area.
static PRIVILEGED_DATA StaticTask_t xTaskBuffer;
static const TaskParameters_t xCheckTaskParameters =
{
	vATask,		// pvTaskCode - the function that implements the task.
	"ATask",	// pcName - just a text name for the task to assist debugging.
	100,		// usStackDepth	- the stack size DEFINED IN WORDS.
	NULL,		// pvParameters - passed into the task function as the function parameters.
	( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
	cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.

	// xRegions - Allocate up to three separate memory regions for access by
	// the task, with appropriate access permissions.  Different processors have
	// different memory alignment requirements - refer to the FreeRTOS documentation
	// for full information.
	{
		// Base address					Length	Parameters
		{ cReadWriteArray,				32,		portMPU_REGION_READ_WRITE },
		{ cReadOnlyArray,				32,		portMPU_REGION_READ_ONLY },
		{ cPrivilegedOnlyAccessArray,	128,	portMPU_REGION_PRIVILEGED_READ_WRITE }
	}

	&xTaskBuffer; // Holds the task's data structure.
};

int main( void )
{
TaskHandle_t xHandle;

	// Create a task from the const structure defined above.  The task handle
	// is requested (the second parameter is not NULL) but in this case just for
	// demonstration purposes as its not actually used.
	xTaskCreateRestricted( &xRegTest1Parameters, &xHandle );

	// Start the scheduler.
	vTaskStartScheduler();

	// Will only get here if there was insufficient memory to create the idle
	// and/or timer task.
	for( ;; );
}
   
* \defgroup xTaskCreateRestrictedStatic xTaskCreateRestrictedStatic * \ingroup Tasks */ #if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) BaseType_t xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) PRIVILEGED_FUNCTION; #endif /** * task. h *
 void vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions );
* * Memory regions are assigned to a restricted task when the task is created by * a call to xTaskCreateRestricted(). These regions can be redefined using * vTaskAllocateMPURegions(). * * @param xTask The handle of the task being updated. * * @param xRegions A pointer to an MemoryRegion_t structure that contains the * new memory region definitions. * * Example usage:
// Define an array of MemoryRegion_t structures that configures an MPU region
// allowing read/write access for 1024 bytes starting at the beginning of the
// ucOneKByte array.  The other two of the maximum 3 definable regions are
// unused so set to zero.
static const MemoryRegion_t xAltRegions[ portNUM_CONFIGURABLE_REGIONS ] =
{
	// Base address		Length		Parameters
	{ ucOneKByte,		1024,		portMPU_REGION_READ_WRITE },
	{ 0,				0,			0 },
	{ 0,				0,			0 }
};

void vATask( void *pvParameters )
{
	// This task was created such that it has access to certain regions of
	// memory as defined by the MPU configuration.  At some point it is
	// desired that these MPU regions are replaced with that defined in the
	// xAltRegions const struct above.  Use a call to vTaskAllocateMPURegions()
	// for this purpose.  NULL is used as the task handle to indicate that this
	// function should modify the MPU regions of the calling task.
	vTaskAllocateMPURegions( NULL, xAltRegions );

	// Now the task can continue its function, but from this point on can only
	// access its stack and the ucOneKByte array (unless any other statically
	// defined or shared regions have been declared elsewhere).
}
   
* \defgroup xTaskCreateRestricted xTaskCreateRestricted * \ingroup Tasks */ void vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskDelete( TaskHandle_t xTask );
* * INCLUDE_vTaskDelete must be defined as 1 for this function to be available. * See the configuration section for more information. * * Remove a task from the RTOS real time kernel's management. The task being * deleted will be removed from all ready, blocked, suspended and event lists. * * NOTE: The idle task is responsible for freeing the kernel allocated * memory from tasks that have been deleted. It is therefore important that * the idle task is not starved of microcontroller processing time if your * application makes any calls to vTaskDelete (). Memory allocated by the * task code is not automatically freed, and should be freed before the task * is deleted. * * See the demo application file death.c for sample code that utilises * vTaskDelete (). * * @param xTask The handle of the task to be deleted. Passing NULL will * cause the calling task to be deleted. * * Example usage:
 void vOtherFunction( void )
 {
 TaskHandle_t xHandle;

	 // Create the task, storing the handle.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

	 // Use the handle to delete the task.
	 vTaskDelete( xHandle );
 }
   
* \defgroup vTaskDelete vTaskDelete * \ingroup Tasks */ void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION; /*----------------------------------------------------------- * TASK CONTROL API *----------------------------------------------------------*/ /** * task. h *
void vTaskDelay( const TickType_t xTicksToDelay );
* * Delay a task for a given number of ticks. The actual time that the * task remains blocked depends on the tick rate. The constant * portTICK_PERIOD_MS can be used to calculate real time from the tick * rate - with the resolution of one tick period. * * INCLUDE_vTaskDelay must be defined as 1 for this function to be available. * See the configuration section for more information. * * * vTaskDelay() specifies a time at which the task wishes to unblock relative to * the time at which vTaskDelay() is called. For example, specifying a block * period of 100 ticks will cause the task to unblock 100 ticks after * vTaskDelay() is called. vTaskDelay() does not therefore provide a good method * of controlling the frequency of a periodic task as the path taken through the * code, as well as other task and interrupt activity, will effect the frequency * at which vTaskDelay() gets called and therefore the time at which the task * next executes. See vTaskDelayUntil() for an alternative API function designed * to facilitate fixed frequency execution. It does this by specifying an * absolute time (rather than a relative time) at which the calling task should * unblock. * * @param xTicksToDelay The amount of time, in tick periods, that * the calling task should block. * * Example usage: void vTaskFunction( void * pvParameters ) { // Block for 500ms. const TickType_t xDelay = 500 / portTICK_PERIOD_MS; for( ;; ) { // Simply toggle the LED every 500ms, blocking between each toggle. vToggleLED(); vTaskDelay( xDelay ); } } * \defgroup vTaskDelay vTaskDelay * \ingroup TaskCtrl */ void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskDelayUntil( TickType_t *pxPreviousWakeTime, const TickType_t xTimeIncrement );
* * INCLUDE_vTaskDelayUntil must be defined as 1 for this function to be available. * See the configuration section for more information. * * Delay a task until a specified time. This function can be used by periodic * tasks to ensure a constant execution frequency. * * This function differs from vTaskDelay () in one important aspect: vTaskDelay () will * cause a task to block for the specified number of ticks from the time vTaskDelay () is * called. It is therefore difficult to use vTaskDelay () by itself to generate a fixed * execution frequency as the time between a task starting to execute and that task * calling vTaskDelay () may not be fixed [the task may take a different path though the * code between calls, or may get interrupted or preempted a different number of times * each time it executes]. * * Whereas vTaskDelay () specifies a wake time relative to the time at which the function * is called, vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to * unblock. * * The constant portTICK_PERIOD_MS can be used to calculate real time from the tick * rate - with the resolution of one tick period. * * @param pxPreviousWakeTime Pointer to a variable that holds the time at which the * task was last unblocked. The variable must be initialised with the current time * prior to its first use (see the example below). Following this the variable is * automatically updated within vTaskDelayUntil (). * * @param xTimeIncrement The cycle time period. The task will be unblocked at * time *pxPreviousWakeTime + xTimeIncrement. Calling vTaskDelayUntil with the * same xTimeIncrement parameter value will cause the task to execute with * a fixed interface period. * * Example usage:
 // Perform an action every 10 ticks.
 void vTaskFunction( void * pvParameters )
 {
 TickType_t xLastWakeTime;
 const TickType_t xFrequency = 10;

	 // Initialise the xLastWakeTime variable with the current time.
	 xLastWakeTime = xTaskGetTickCount ();
	 for( ;; )
	 {
		 // Wait for the next cycle.
		 vTaskDelayUntil( &xLastWakeTime, xFrequency );

		 // Perform action here.
	 }
 }
   
* \defgroup vTaskDelayUntil vTaskDelayUntil * \ingroup TaskCtrl */ void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) PRIVILEGED_FUNCTION; /** * task. h *
BaseType_t xTaskAbortDelay( TaskHandle_t xTask );
* * INCLUDE_xTaskAbortDelay must be defined as 1 in FreeRTOSConfig.h for this * function to be available. * * A task will enter the Blocked state when it is waiting for an event. The * event it is waiting for can be a temporal event (waiting for a time), such * as when vTaskDelay() is called, or an event on an object, such as when * xQueueReceive() or ulTaskNotifyTake() is called. If the handle of a task * that is in the Blocked state is used in a call to xTaskAbortDelay() then the * task will leave the Blocked state, and return from whichever function call * placed the task into the Blocked state. * * There is no 'FromISR' version of this function as an interrupt would need to * know which object a task was blocked on in order to know which actions to * take. For example, if the task was blocked on a queue the interrupt handler * would then need to know if the queue was locked. * * @param xTask The handle of the task to remove from the Blocked state. * * @return If the task referenced by xTask was not in the Blocked state then * pdFAIL is returned. Otherwise pdPASS is returned. * * \defgroup xTaskAbortDelay xTaskAbortDelay * \ingroup TaskCtrl */ BaseType_t xTaskAbortDelay( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task. h *
UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask );
* * INCLUDE_uxTaskPriorityGet must be defined as 1 for this function to be available. * See the configuration section for more information. * * Obtain the priority of any task. * * @param xTask Handle of the task to be queried. Passing a NULL * handle results in the priority of the calling task being returned. * * @return The priority of xTask. * * Example usage:
 void vAFunction( void )
 {
 TaskHandle_t xHandle;

	 // Create a task, storing the handle.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

	 // ...

	 // Use the handle to obtain the priority of the created task.
	 // It was created with tskIDLE_PRIORITY, but may have changed
	 // it itself.
	 if( uxTaskPriorityGet( xHandle ) != tskIDLE_PRIORITY )
	 {
		 // The task has changed it's priority.
	 }

	 // ...

	 // Is our priority higher than the created task?
	 if( uxTaskPriorityGet( xHandle ) < uxTaskPriorityGet( NULL ) )
	 {
		 // Our priority (obtained using NULL handle) is higher.
	 }
 }
   
* \defgroup uxTaskPriorityGet uxTaskPriorityGet * \ingroup TaskCtrl */ UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task. h *
UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask );
* * A version of uxTaskPriorityGet() that can be used from an ISR. */ UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task. h *
eTaskState eTaskGetState( TaskHandle_t xTask );
* * INCLUDE_eTaskGetState must be defined as 1 for this function to be available. * See the configuration section for more information. * * Obtain the state of any task. States are encoded by the eTaskState * enumerated type. * * @param xTask Handle of the task to be queried. * * @return The state of xTask at the time the function was called. Note the * state of the task might change between the function being called, and the * functions return value being tested by the calling task. */ eTaskState eTaskGetState( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState );
* * configUSE_TRACE_FACILITY must be defined as 1 for this function to be * available. See the configuration section for more information. * * Populates a TaskStatus_t structure with information about a task. * * @param xTask Handle of the task being queried. If xTask is NULL then * information will be returned about the calling task. * * @param pxTaskStatus A pointer to the TaskStatus_t structure that will be * filled with information about the task referenced by the handle passed using * the xTask parameter. * * @xGetFreeStackSpace The TaskStatus_t structure contains a member to report * the stack high water mark of the task being queried. Calculating the stack * high water mark takes a relatively long time, and can make the system * temporarily unresponsive - so the xGetFreeStackSpace parameter is provided to * allow the high water mark checking to be skipped. The high watermark value * will only be written to the TaskStatus_t structure if xGetFreeStackSpace is * not set to pdFALSE; * * @param eState The TaskStatus_t structure contains a member to report the * state of the task being queried. Obtaining the task state is not as fast as * a simple assignment - so the eState parameter is provided to allow the state * information to be omitted from the TaskStatus_t structure. To obtain state * information then set eState to eInvalid - otherwise the value passed in * eState will be reported as the task state in the TaskStatus_t structure. * * Example usage:
 void vAFunction( void )
 {
 TaskHandle_t xHandle;
 TaskStatus_t xTaskDetails;

    // Obtain the handle of a task from its name.
    xHandle = xTaskGetHandle( "Task_Name" );

    // Check the handle is not NULL.
    configASSERT( xHandle );

    // Use the handle to obtain further information about the task.
    vTaskGetInfo( xHandle,
                  &xTaskDetails,
                  pdTRUE, // Include the high water mark in xTaskDetails.
                  eInvalid ); // Include the task state in xTaskDetails.
 }
   
* \defgroup vTaskGetInfo vTaskGetInfo * \ingroup TaskCtrl */ void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority );
* * INCLUDE_vTaskPrioritySet must be defined as 1 for this function to be available. * See the configuration section for more information. * * Set the priority of any task. * * A context switch will occur before the function returns if the priority * being set is higher than the currently executing task. * * @param xTask Handle to the task for which the priority is being set. * Passing a NULL handle results in the priority of the calling task being set. * * @param uxNewPriority The priority to which the task will be set. * * Example usage:
 void vAFunction( void )
 {
 TaskHandle_t xHandle;

	 // Create a task, storing the handle.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

	 // ...

	 // Use the handle to raise the priority of the created task.
	 vTaskPrioritySet( xHandle, tskIDLE_PRIORITY + 1 );

	 // ...

	 // Use a NULL handle to raise our priority to the same value.
	 vTaskPrioritySet( NULL, tskIDLE_PRIORITY + 1 );
 }
   
* \defgroup vTaskPrioritySet vTaskPrioritySet * \ingroup TaskCtrl */ void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskSuspend( TaskHandle_t xTaskToSuspend );
* * INCLUDE_vTaskSuspend must be defined as 1 for this function to be available. * See the configuration section for more information. * * Suspend any task. When suspended a task will never get any microcontroller * processing time, no matter what its priority. * * Calls to vTaskSuspend are not accumulative - * i.e. calling vTaskSuspend () twice on the same task still only requires one * call to vTaskResume () to ready the suspended task. * * @param xTaskToSuspend Handle to the task being suspended. Passing a NULL * handle will cause the calling task to be suspended. * * Example usage:
 void vAFunction( void )
 {
 TaskHandle_t xHandle;

	 // Create a task, storing the handle.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

	 // ...

	 // Use the handle to suspend the created task.
	 vTaskSuspend( xHandle );

	 // ...

	 // The created task will not run during this period, unless
	 // another task calls vTaskResume( xHandle ).

	 //...


	 // Suspend ourselves.
	 vTaskSuspend( NULL );

	 // We cannot get here unless another task calls vTaskResume
	 // with our handle as the parameter.
 }
   
* \defgroup vTaskSuspend vTaskSuspend * \ingroup TaskCtrl */ void vTaskSuspend( TaskHandle_t xTaskToSuspend ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskResume( TaskHandle_t xTaskToResume );
* * INCLUDE_vTaskSuspend must be defined as 1 for this function to be available. * See the configuration section for more information. * * Resumes a suspended task. * * A task that has been suspended by one or more calls to vTaskSuspend () * will be made available for running again by a single call to * vTaskResume (). * * @param xTaskToResume Handle to the task being readied. * * Example usage:
 void vAFunction( void )
 {
 TaskHandle_t xHandle;

	 // Create a task, storing the handle.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

	 // ...

	 // Use the handle to suspend the created task.
	 vTaskSuspend( xHandle );

	 // ...

	 // The created task will not run during this period, unless
	 // another task calls vTaskResume( xHandle ).

	 //...


	 // Resume the suspended task ourselves.
	 vTaskResume( xHandle );

	 // The created task will once again get microcontroller processing
	 // time in accordance with its priority within the system.
 }
   
* \defgroup vTaskResume vTaskResume * \ingroup TaskCtrl */ void vTaskResume( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION; /** * task. h *
void xTaskResumeFromISR( TaskHandle_t xTaskToResume );
* * INCLUDE_xTaskResumeFromISR must be defined as 1 for this function to be * available. See the configuration section for more information. * * An implementation of vTaskResume() that can be called from within an ISR. * * A task that has been suspended by one or more calls to vTaskSuspend () * will be made available for running again by a single call to * xTaskResumeFromISR (). * * xTaskResumeFromISR() should not be used to synchronise a task with an * interrupt if there is a chance that the interrupt could arrive prior to the * task being suspended - as this can lead to interrupts being missed. Use of a * semaphore as a synchronisation mechanism would avoid this eventuality. * * @param xTaskToResume Handle to the task being readied. * * @return pdTRUE if resuming the task should result in a context switch, * otherwise pdFALSE. This is used by the ISR to determine if a context switch * may be required following the ISR. * * \defgroup vTaskResumeFromISR vTaskResumeFromISR * \ingroup TaskCtrl */ BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION; /*----------------------------------------------------------- * SCHEDULER CONTROL *----------------------------------------------------------*/ /** * task. h *
void vTaskStartScheduler( void );
* * Starts the real time kernel tick processing. After calling the kernel * has control over which tasks are executed and when. * * See the demo application file main.c for an example of creating * tasks and starting the kernel. * * Example usage:
 void vAFunction( void )
 {
	 // Create at least one task before starting the kernel.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

	 // Start the real time kernel with preemption.
	 vTaskStartScheduler ();

	 // Will not get here unless a task calls vTaskEndScheduler ()
 }
   
* * \defgroup vTaskStartScheduler vTaskStartScheduler * \ingroup SchedulerControl */ void vTaskStartScheduler( void ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskEndScheduler( void );
* * NOTE: At the time of writing only the x86 real mode port, which runs on a PC * in place of DOS, implements this function. * * Stops the real time kernel tick. All created tasks will be automatically * deleted and multitasking (either preemptive or cooperative) will * stop. Execution then resumes from the point where vTaskStartScheduler () * was called, as if vTaskStartScheduler () had just returned. * * See the demo application file main. c in the demo/PC directory for an * example that uses vTaskEndScheduler (). * * vTaskEndScheduler () requires an exit function to be defined within the * portable layer (see vPortEndScheduler () in port. c for the PC port). This * performs hardware specific operations such as stopping the kernel tick. * * vTaskEndScheduler () will cause all of the resources allocated by the * kernel to be freed - but will not free resources allocated by application * tasks. * * Example usage:
 void vTaskCode( void * pvParameters )
 {
	 for( ;; )
	 {
		 // Task code goes here.

		 // At some point we want to end the real time kernel processing
		 // so call ...
		 vTaskEndScheduler ();
	 }
 }

 void vAFunction( void )
 {
	 // Create at least one task before starting the kernel.
	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

	 // Start the real time kernel with preemption.
	 vTaskStartScheduler ();

	 // Will only get here when the vTaskCode () task has called
	 // vTaskEndScheduler ().  When we get here we are back to single task
	 // execution.
 }
   
* * \defgroup vTaskEndScheduler vTaskEndScheduler * \ingroup SchedulerControl */ void vTaskEndScheduler( void ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskSuspendAll( void );
* * Suspends the scheduler without disabling interrupts. Context switches will * not occur while the scheduler is suspended. * * After calling vTaskSuspendAll () the calling task will continue to execute * without risk of being swapped out until a call to xTaskResumeAll () has been * made. * * API functions that have the potential to cause a context switch (for example, * vTaskDelayUntil(), xQueueSend(), etc.) must not be called while the scheduler * is suspended. * * Example usage:
 void vTask1( void * pvParameters )
 {
	 for( ;; )
	 {
		 // Task code goes here.

		 // ...

		 // At some point the task wants to perform a long operation during
		 // which it does not want to get swapped out.  It cannot use
		 // taskENTER_CRITICAL ()/taskEXIT_CRITICAL () as the length of the
		 // operation may cause interrupts to be missed - including the
		 // ticks.

		 // Prevent the real time kernel swapping out the task.
		 vTaskSuspendAll ();

		 // Perform the operation here.  There is no need to use critical
		 // sections as we have all the microcontroller processing time.
		 // During this time interrupts will still operate and the kernel
		 // tick count will be maintained.

		 // ...

		 // The operation is complete.  Restart the kernel.
		 xTaskResumeAll ();
	 }
 }
   
* \defgroup vTaskSuspendAll vTaskSuspendAll * \ingroup SchedulerControl */ void vTaskSuspendAll( void ) PRIVILEGED_FUNCTION; /** * task. h *
BaseType_t xTaskResumeAll( void );
* * Resumes scheduler activity after it was suspended by a call to * vTaskSuspendAll(). * * xTaskResumeAll() only resumes the scheduler. It does not unsuspend tasks * that were previously suspended by a call to vTaskSuspend(). * * @return If resuming the scheduler caused a context switch then pdTRUE is * returned, otherwise pdFALSE is returned. * * Example usage:
 void vTask1( void * pvParameters )
 {
	 for( ;; )
	 {
		 // Task code goes here.

		 // ...

		 // At some point the task wants to perform a long operation during
		 // which it does not want to get swapped out.  It cannot use
		 // taskENTER_CRITICAL ()/taskEXIT_CRITICAL () as the length of the
		 // operation may cause interrupts to be missed - including the
		 // ticks.

		 // Prevent the real time kernel swapping out the task.
		 vTaskSuspendAll ();

		 // Perform the operation here.  There is no need to use critical
		 // sections as we have all the microcontroller processing time.
		 // During this time interrupts will still operate and the real
		 // time kernel tick count will be maintained.

		 // ...

		 // The operation is complete.  Restart the kernel.  We want to force
		 // a context switch - but there is no point if resuming the scheduler
		 // caused a context switch already.
		 if( !xTaskResumeAll () )
		 {
			  taskYIELD ();
		 }
	 }
 }
   
* \defgroup xTaskResumeAll xTaskResumeAll * \ingroup SchedulerControl */ BaseType_t xTaskResumeAll( void ) PRIVILEGED_FUNCTION; /*----------------------------------------------------------- * TASK UTILITIES *----------------------------------------------------------*/ /** * task. h *
TickType_t xTaskGetTickCount( void );
* * @return The count of ticks since vTaskStartScheduler was called. * * \defgroup xTaskGetTickCount xTaskGetTickCount * \ingroup TaskUtils */ TickType_t xTaskGetTickCount( void ) PRIVILEGED_FUNCTION; /** * task. h *
TickType_t xTaskGetTickCountFromISR( void );
* * @return The count of ticks since vTaskStartScheduler was called. * * This is a version of xTaskGetTickCount() that is safe to be called from an * ISR - provided that TickType_t is the natural word size of the * microcontroller being used or interrupt nesting is either not supported or * not being used. * * \defgroup xTaskGetTickCountFromISR xTaskGetTickCountFromISR * \ingroup TaskUtils */ TickType_t xTaskGetTickCountFromISR( void ) PRIVILEGED_FUNCTION; /** * task. h *
uint16_t uxTaskGetNumberOfTasks( void );
* * @return The number of tasks that the real time kernel is currently managing. * This includes all ready, blocked and suspended tasks. A task that * has been deleted but not yet freed by the idle task will also be * included in the count. * * \defgroup uxTaskGetNumberOfTasks uxTaskGetNumberOfTasks * \ingroup TaskUtils */ UBaseType_t uxTaskGetNumberOfTasks( void ) PRIVILEGED_FUNCTION; /** * task. h *
char *pcTaskGetName( TaskHandle_t xTaskToQuery );
* * @return The text (human readable) name of the task referenced by the handle * xTaskToQuery. A task can query its own name by either passing in its own * handle, or by setting xTaskToQuery to NULL. * * \defgroup pcTaskGetName pcTaskGetName * \ingroup TaskUtils */ char *pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /** * task. h *
TaskHandle_t xTaskGetHandle( const char *pcNameToQuery );
* * NOTE: This function takes a relatively long time to complete and should be * used sparingly. * * @return The handle of the task that has the human readable name pcNameToQuery. * NULL is returned if no matching name is found. INCLUDE_xTaskGetHandle * must be set to 1 in FreeRTOSConfig.h for pcTaskGetHandle() to be available. * * \defgroup pcTaskGetHandle pcTaskGetHandle * \ingroup TaskUtils */ TaskHandle_t xTaskGetHandle( const char *pcNameToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /** * task.h *
UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask );
* * INCLUDE_uxTaskGetStackHighWaterMark must be set to 1 in FreeRTOSConfig.h for * this function to be available. * * Returns the high water mark of the stack associated with xTask. That is, * the minimum free stack space there has been (in words, so on a 32 bit machine * a value of 1 means 4 bytes) since the task started. The smaller the returned * number the closer the task has come to overflowing its stack. * * uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the * same except for their return type. Using configSTACK_DEPTH_TYPE allows the * user to determine the return type. It gets around the problem of the value * overflowing on 8-bit types without breaking backward compatibility for * applications that expect an 8-bit return type. * * @param xTask Handle of the task associated with the stack to be checked. * Set xTask to NULL to check the stack of the calling task. * * @return The smallest amount of free stack space there has been (in words, so * actual spaces on the stack rather than bytes) since the task referenced by * xTask was created. */ UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task.h *
configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask );
* * INCLUDE_uxTaskGetStackHighWaterMark2 must be set to 1 in FreeRTOSConfig.h for * this function to be available. * * Returns the high water mark of the stack associated with xTask. That is, * the minimum free stack space there has been (in words, so on a 32 bit machine * a value of 1 means 4 bytes) since the task started. The smaller the returned * number the closer the task has come to overflowing its stack. * * uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the * same except for their return type. Using configSTACK_DEPTH_TYPE allows the * user to determine the return type. It gets around the problem of the value * overflowing on 8-bit types without breaking backward compatibility for * applications that expect an 8-bit return type. * * @param xTask Handle of the task associated with the stack to be checked. * Set xTask to NULL to check the stack of the calling task. * * @return The smallest amount of free stack space there has been (in words, so * actual spaces on the stack rather than bytes) since the task referenced by * xTask was created. */ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /* When using trace macros it is sometimes necessary to include task.h before FreeRTOS.h. When this is done TaskHookFunction_t will not yet have been defined, so the following two prototypes will cause a compilation error. This can be fixed by simply guarding against the inclusion of these two prototypes unless they are explicitly required by the configUSE_APPLICATION_TASK_TAG configuration constant. */ #ifdef configUSE_APPLICATION_TASK_TAG #if configUSE_APPLICATION_TASK_TAG == 1 /** * task.h *
void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction );
* * Sets pxHookFunction to be the task hook function used by the task xTask. * Passing xTask as NULL has the effect of setting the calling tasks hook * function. */ void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) PRIVILEGED_FUNCTION; /** * task.h *
void xTaskGetApplicationTaskTag( TaskHandle_t xTask );
* * Returns the pxHookFunction value assigned to the task xTask. Do not * call from an interrupt service routine - call * xTaskGetApplicationTaskTagFromISR() instead. */ TaskHookFunction_t xTaskGetApplicationTaskTag( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /** * task.h *
void xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask );
* * Returns the pxHookFunction value assigned to the task xTask. Can * be called from an interrupt service routine. */ TaskHookFunction_t xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; #endif /* configUSE_APPLICATION_TASK_TAG ==1 */ #endif /* ifdef configUSE_APPLICATION_TASK_TAG */ #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) /* Each task contains an array of pointers that is dimensioned by the configNUM_THREAD_LOCAL_STORAGE_POINTERS setting in FreeRTOSConfig.h. The kernel does not use the pointers itself, so the application writer can use the pointers for any purpose they wish. The following two functions are used to set and query a pointer respectively. */ void vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) PRIVILEGED_FUNCTION; void *pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) PRIVILEGED_FUNCTION; #endif /** * task.h *
BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );
* * Calls the hook function associated with xTask. Passing xTask as NULL has * the effect of calling the Running tasks (the calling task) hook function. * * pvParameter is passed to the hook function for the task to interpret as it * wants. The return value is the value returned by the task hook function * registered by the user. */ BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) PRIVILEGED_FUNCTION; /** * xTaskGetIdleTaskHandle() is only available if * INCLUDE_xTaskGetIdleTaskHandle is set to 1 in FreeRTOSConfig.h. * * Simply returns the handle of the idle task. It is not valid to call * xTaskGetIdleTaskHandle() before the scheduler has been started. */ TaskHandle_t xTaskGetIdleTaskHandle( void ) PRIVILEGED_FUNCTION; /** * configUSE_TRACE_FACILITY must be defined as 1 in FreeRTOSConfig.h for * uxTaskGetSystemState() to be available. * * uxTaskGetSystemState() populates an TaskStatus_t structure for each task in * the system. TaskStatus_t structures contain, among other things, members * for the task handle, task name, task priority, task state, and total amount * of run time consumed by the task. See the TaskStatus_t structure * definition in this file for the full member list. * * NOTE: This function is intended for debugging use only as its use results in * the scheduler remaining suspended for an extended period. * * @param pxTaskStatusArray A pointer to an array of TaskStatus_t structures. * The array must contain at least one TaskStatus_t structure for each task * that is under the control of the RTOS. The number of tasks under the control * of the RTOS can be determined using the uxTaskGetNumberOfTasks() API function. * * @param uxArraySize The size of the array pointed to by the pxTaskStatusArray * parameter. The size is specified as the number of indexes in the array, or * the number of TaskStatus_t structures contained in the array, not by the * number of bytes in the array. * * @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in * FreeRTOSConfig.h then *pulTotalRunTime is set by uxTaskGetSystemState() to the * total run time (as defined by the run time stats clock, see * http://www.freertos.org/rtos-run-time-stats.html) since the target booted. * pulTotalRunTime can be set to NULL to omit the total run time information. * * @return The number of TaskStatus_t structures that were populated by * uxTaskGetSystemState(). This should equal the number returned by the * uxTaskGetNumberOfTasks() API function, but will be zero if the value passed * in the uxArraySize parameter was too small. * * Example usage:
    // This example demonstrates how a human readable table of run time stats
	// information is generated from raw data provided by uxTaskGetSystemState().
	// The human readable table is written to pcWriteBuffer
	void vTaskGetRunTimeStats( char *pcWriteBuffer )
	{
	TaskStatus_t *pxTaskStatusArray;
	volatile UBaseType_t uxArraySize, x;
	uint32_t ulTotalRunTime, ulStatsAsPercentage;

		// Make sure the write buffer does not contain a string.
		*pcWriteBuffer = 0x00;

		// Take a snapshot of the number of tasks in case it changes while this
		// function is executing.
		uxArraySize = uxTaskGetNumberOfTasks();

		// Allocate a TaskStatus_t structure for each task.  An array could be
		// allocated statically at compile time.
		pxTaskStatusArray = pvPortMalloc( uxArraySize * sizeof( TaskStatus_t ) );

		if( pxTaskStatusArray != NULL )
		{
			// Generate raw status information about each task.
			uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalRunTime );

			// For percentage calculations.
			ulTotalRunTime /= 100UL;

			// Avoid divide by zero errors.
			if( ulTotalRunTime > 0 )
			{
				// For each populated position in the pxTaskStatusArray array,
				// format the raw data as human readable ASCII data
				for( x = 0; x < uxArraySize; x++ )
				{
					// What percentage of the total run time has the task used?
					// This will always be rounded down to the nearest integer.
					// ulTotalRunTimeDiv100 has already been divided by 100.
					ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalRunTime;

					if( ulStatsAsPercentage > 0UL )
					{
						sprintf( pcWriteBuffer, "%s\t\t%lu\t\t%lu%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage );
					}
					else
					{
						// If the percentage is zero here then the task has
						// consumed less than 1% of the total run time.
						sprintf( pcWriteBuffer, "%s\t\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter );
					}

					pcWriteBuffer += strlen( ( char * ) pcWriteBuffer );
				}
			}

			// The array is no longer needed, free the memory it consumes.
			vPortFree( pxTaskStatusArray );
		}
	}
	
*/ UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) PRIVILEGED_FUNCTION; /** * task. h *
void vTaskList( char *pcWriteBuffer );
* * configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS must * both be defined as 1 for this function to be available. See the * configuration section of the FreeRTOS.org website for more information. * * NOTE 1: This function will disable interrupts for its duration. It is * not intended for normal application runtime use but as a debug aid. * * Lists all the current tasks, along with their current state and stack * usage high water mark. * * Tasks are reported as blocked ('B'), ready ('R'), deleted ('D') or * suspended ('S'). * * PLEASE NOTE: * * This function is provided for convenience only, and is used by many of the * demo applications. Do not consider it to be part of the scheduler. * * vTaskList() calls uxTaskGetSystemState(), then formats part of the * uxTaskGetSystemState() output into a human readable table that displays task * names, states and stack usage. * * vTaskList() has a dependency on the sprintf() C library function that might * bloat the code size, use a lot of stack, and provide different results on * different platforms. An alternative, tiny, third party, and limited * functionality implementation of sprintf() is provided in many of the * FreeRTOS/Demo sub-directories in a file called printf-stdarg.c (note * printf-stdarg.c does not provide a full snprintf() implementation!). * * It is recommended that production systems call uxTaskGetSystemState() * directly to get access to raw stats data, rather than indirectly through a * call to vTaskList(). * * @param pcWriteBuffer A buffer into which the above mentioned details * will be written, in ASCII form. This buffer is assumed to be large * enough to contain the generated report. Approximately 40 bytes per * task should be sufficient. * * \defgroup vTaskList vTaskList * \ingroup TaskUtils */ void vTaskList( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /** * task. h *
void vTaskGetRunTimeStats( char *pcWriteBuffer );
* * configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS * must both be defined as 1 for this function to be available. The application * must also then provide definitions for * portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and portGET_RUN_TIME_COUNTER_VALUE() * to configure a peripheral timer/counter and return the timers current count * value respectively. The counter should be at least 10 times the frequency of * the tick count. * * NOTE 1: This function will disable interrupts for its duration. It is * not intended for normal application runtime use but as a debug aid. * * Setting configGENERATE_RUN_TIME_STATS to 1 will result in a total * accumulated execution time being stored for each task. The resolution * of the accumulated time value depends on the frequency of the timer * configured by the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() macro. * Calling vTaskGetRunTimeStats() writes the total execution time of each * task into a buffer, both as an absolute count value and as a percentage * of the total system execution time. * * NOTE 2: * * This function is provided for convenience only, and is used by many of the * demo applications. Do not consider it to be part of the scheduler. * * vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats part of the * uxTaskGetSystemState() output into a human readable table that displays the * amount of time each task has spent in the Running state in both absolute and * percentage terms. * * vTaskGetRunTimeStats() has a dependency on the sprintf() C library function * that might bloat the code size, use a lot of stack, and provide different * results on different platforms. An alternative, tiny, third party, and * limited functionality implementation of sprintf() is provided in many of the * FreeRTOS/Demo sub-directories in a file called printf-stdarg.c (note * printf-stdarg.c does not provide a full snprintf() implementation!). * * It is recommended that production systems call uxTaskGetSystemState() directly * to get access to raw stats data, rather than indirectly through a call to * vTaskGetRunTimeStats(). * * @param pcWriteBuffer A buffer into which the execution times will be * written, in ASCII form. This buffer is assumed to be large enough to * contain the generated report. Approximately 40 bytes per task should * be sufficient. * * \defgroup vTaskGetRunTimeStats vTaskGetRunTimeStats * \ingroup TaskUtils */ void vTaskGetRunTimeStats( char *pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /** * task. h *
uint32_t ulTaskGetIdleRunTimeCounter( void );
* * configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS * must both be defined as 1 for this function to be available. The application * must also then provide definitions for * portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and portGET_RUN_TIME_COUNTER_VALUE() * to configure a peripheral timer/counter and return the timers current count * value respectively. The counter should be at least 10 times the frequency of * the tick count. * * Setting configGENERATE_RUN_TIME_STATS to 1 will result in a total * accumulated execution time being stored for each task. The resolution * of the accumulated time value depends on the frequency of the timer * configured by the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() macro. * While uxTaskGetSystemState() and vTaskGetRunTimeStats() writes the total * execution time of each task into a buffer, ulTaskGetIdleRunTimeCounter() * returns the total execution time of just the idle task. * * @return The total run time of the idle task. This is the amount of time the * idle task has actually been executing. The unit of time is dependent on the * frequency configured using the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and * portGET_RUN_TIME_COUNTER_VALUE() macros. * * \defgroup ulTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter * \ingroup TaskUtils */ uint32_t ulTaskGetIdleRunTimeCounter( void ) PRIVILEGED_FUNCTION; /** * task. h *
BaseType_t xTaskNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction );
* * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this * function to be available. * * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private * "notification value", which is a 32-bit unsigned integer (uint32_t). * * Events can be sent to a task using an intermediary object. Examples of such * objects are queues, semaphores, mutexes and event groups. Task notifications * are a method of sending an event directly to a task without the need for such * an intermediary object. * * A notification sent to a task can optionally perform an action, such as * update, overwrite or increment the task's notification value. In that way * task notifications can be used to send data to a task, or be used as light * weight and fast binary or counting semaphores. * * A notification sent to a task will remain pending until it is cleared by the * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was * already in the Blocked state to wait for a notification when the notification * arrives then the task will automatically be removed from the Blocked state * (unblocked) and the notification cleared. * * A task can use xTaskNotifyWait() to [optionally] block to wait for a * notification to be pending, or ulTaskNotifyTake() to [optionally] block * to wait for its notification value to have a non-zero value. The task does * not consume any CPU time while it is in the Blocked state. * * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. * * @param xTaskToNotify The handle of the task being notified. The handle to a * task can be returned from the xTaskCreate() API function used to create the * task, and the handle of the currently running task can be obtained by calling * xTaskGetCurrentTaskHandle(). * * @param ulValue Data that can be sent with the notification. How the data is * used depends on the value of the eAction parameter. * * @param eAction Specifies how the notification updates the task's notification * value, if at all. Valid values for eAction are as follows: * * eSetBits - * The task's notification value is bitwise ORed with ulValue. xTaskNofify() * always returns pdPASS in this case. * * eIncrement - * The task's notification value is incremented. ulValue is not used and * xTaskNotify() always returns pdPASS in this case. * * eSetValueWithOverwrite - * The task's notification value is set to the value of ulValue, even if the * task being notified had not yet processed the previous notification (the * task already had a notification pending). xTaskNotify() always returns * pdPASS in this case. * * eSetValueWithoutOverwrite - * If the task being notified did not already have a notification pending then * the task's notification value is set to ulValue and xTaskNotify() will * return pdPASS. If the task being notified already had a notification * pending then no action is performed and pdFAIL is returned. * * eNoAction - * The task receives a notification without its notification value being * updated. ulValue is not used and xTaskNotify() always returns pdPASS in * this case. * * pulPreviousNotificationValue - * Can be used to pass out the subject task's notification value before any * bits are modified by the notify function. * * @return Dependent on the value of eAction. See the description of the * eAction parameter. * * \defgroup xTaskNotify xTaskNotify * \ingroup TaskNotifications */ BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) PRIVILEGED_FUNCTION; #define xTaskNotify( xTaskToNotify, ulValue, eAction ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL ) #define xTaskNotifyAndQuery( xTaskToNotify, ulValue, eAction, pulPreviousNotifyValue ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) ) /** * task. h *
BaseType_t xTaskNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, BaseType_t *pxHigherPriorityTaskWoken );
* * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this * function to be available. * * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private * "notification value", which is a 32-bit unsigned integer (uint32_t). * * A version of xTaskNotify() that can be used from an interrupt service routine * (ISR). * * Events can be sent to a task using an intermediary object. Examples of such * objects are queues, semaphores, mutexes and event groups. Task notifications * are a method of sending an event directly to a task without the need for such * an intermediary object. * * A notification sent to a task can optionally perform an action, such as * update, overwrite or increment the task's notification value. In that way * task notifications can be used to send data to a task, or be used as light * weight and fast binary or counting semaphores. * * A notification sent to a task will remain pending until it is cleared by the * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was * already in the Blocked state to wait for a notification when the notification * arrives then the task will automatically be removed from the Blocked state * (unblocked) and the notification cleared. * * A task can use xTaskNotifyWait() to [optionally] block to wait for a * notification to be pending, or ulTaskNotifyTake() to [optionally] block * to wait for its notification value to have a non-zero value. The task does * not consume any CPU time while it is in the Blocked state. * * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. * * @param xTaskToNotify The handle of the task being notified. The handle to a * task can be returned from the xTaskCreate() API function used to create the * task, and the handle of the currently running task can be obtained by calling * xTaskGetCurrentTaskHandle(). * * @param ulValue Data that can be sent with the notification. How the data is * used depends on the value of the eAction parameter. * * @param eAction Specifies how the notification updates the task's notification * value, if at all. Valid values for eAction are as follows: * * eSetBits - * The task's notification value is bitwise ORed with ulValue. xTaskNofify() * always returns pdPASS in this case. * * eIncrement - * The task's notification value is incremented. ulValue is not used and * xTaskNotify() always returns pdPASS in this case. * * eSetValueWithOverwrite - * The task's notification value is set to the value of ulValue, even if the * task being notified had not yet processed the previous notification (the * task already had a notification pending). xTaskNotify() always returns * pdPASS in this case. * * eSetValueWithoutOverwrite - * If the task being notified did not already have a notification pending then * the task's notification value is set to ulValue and xTaskNotify() will * return pdPASS. If the task being notified already had a notification * pending then no action is performed and pdFAIL is returned. * * eNoAction - * The task receives a notification without its notification value being * updated. ulValue is not used and xTaskNotify() always returns pdPASS in * this case. * * @param pxHigherPriorityTaskWoken xTaskNotifyFromISR() will set * *pxHigherPriorityTaskWoken to pdTRUE if sending the notification caused the * task to which the notification was sent to leave the Blocked state, and the * unblocked task has a priority higher than the currently running task. If * xTaskNotifyFromISR() sets this value to pdTRUE then a context switch should * be requested before the interrupt is exited. How a context switch is * requested from an ISR is dependent on the port - see the documentation page * for the port in use. * * @return Dependent on the value of eAction. See the description of the * eAction parameter. * * \defgroup xTaskNotify xTaskNotify * \ingroup TaskNotifications */ BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; #define xTaskNotifyFromISR( xTaskToNotify, ulValue, eAction, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL, ( pxHigherPriorityTaskWoken ) ) #define xTaskNotifyAndQueryFromISR( xTaskToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotificationValue ), ( pxHigherPriorityTaskWoken ) ) /** * task. h *
BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait );
* * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this * function to be available. * * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private * "notification value", which is a 32-bit unsigned integer (uint32_t). * * Events can be sent to a task using an intermediary object. Examples of such * objects are queues, semaphores, mutexes and event groups. Task notifications * are a method of sending an event directly to a task without the need for such * an intermediary object. * * A notification sent to a task can optionally perform an action, such as * update, overwrite or increment the task's notification value. In that way * task notifications can be used to send data to a task, or be used as light * weight and fast binary or counting semaphores. * * A notification sent to a task will remain pending until it is cleared by the * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was * already in the Blocked state to wait for a notification when the notification * arrives then the task will automatically be removed from the Blocked state * (unblocked) and the notification cleared. * * A task can use xTaskNotifyWait() to [optionally] block to wait for a * notification to be pending, or ulTaskNotifyTake() to [optionally] block * to wait for its notification value to have a non-zero value. The task does * not consume any CPU time while it is in the Blocked state. * * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. * * @param ulBitsToClearOnEntry Bits that are set in ulBitsToClearOnEntry value * will be cleared in the calling task's notification value before the task * checks to see if any notifications are pending, and optionally blocks if no * notifications are pending. Setting ulBitsToClearOnEntry to ULONG_MAX (if * limits.h is included) or 0xffffffffUL (if limits.h is not included) will have * the effect of resetting the task's notification value to 0. Setting * ulBitsToClearOnEntry to 0 will leave the task's notification value unchanged. * * @param ulBitsToClearOnExit If a notification is pending or received before * the calling task exits the xTaskNotifyWait() function then the task's * notification value (see the xTaskNotify() API function) is passed out using * the pulNotificationValue parameter. Then any bits that are set in * ulBitsToClearOnExit will be cleared in the task's notification value (note * *pulNotificationValue is set before any bits are cleared). Setting * ulBitsToClearOnExit to ULONG_MAX (if limits.h is included) or 0xffffffffUL * (if limits.h is not included) will have the effect of resetting the task's * notification value to 0 before the function exits. Setting * ulBitsToClearOnExit to 0 will leave the task's notification value unchanged * when the function exits (in which case the value passed out in * pulNotificationValue will match the task's notification value). * * @param pulNotificationValue Used to pass the task's notification value out * of the function. Note the value passed out will not be effected by the * clearing of any bits caused by ulBitsToClearOnExit being non-zero. * * @param xTicksToWait The maximum amount of time that the task should wait in * the Blocked state for a notification to be received, should a notification * not already be pending when xTaskNotifyWait() was called. The task * will not consume any processing time while it is in the Blocked state. This * is specified in kernel ticks, the macro pdMS_TO_TICSK( value_in_ms ) can be * used to convert a time specified in milliseconds to a time specified in * ticks. * * @return If a notification was received (including notifications that were * already pending when xTaskNotifyWait was called) then pdPASS is * returned. Otherwise pdFAIL is returned. * * \defgroup xTaskNotifyWait xTaskNotifyWait * \ingroup TaskNotifications */ BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * task. h *
BaseType_t xTaskNotifyGive( TaskHandle_t xTaskToNotify );
* * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this macro * to be available. * * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private * "notification value", which is a 32-bit unsigned integer (uint32_t). * * Events can be sent to a task using an intermediary object. Examples of such * objects are queues, semaphores, mutexes and event groups. Task notifications * are a method of sending an event directly to a task without the need for such * an intermediary object. * * A notification sent to a task can optionally perform an action, such as * update, overwrite or increment the task's notification value. In that way * task notifications can be used to send data to a task, or be used as light * weight and fast binary or counting semaphores. * * xTaskNotifyGive() is a helper macro intended for use when task notifications * are used as light weight and faster binary or counting semaphore equivalents. * Actual FreeRTOS semaphores are given using the xSemaphoreGive() API function, * the equivalent action that instead uses a task notification is * xTaskNotifyGive(). * * When task notifications are being used as a binary or counting semaphore * equivalent then the task being notified should wait for the notification * using the ulTaskNotificationTake() API function rather than the * xTaskNotifyWait() API function. * * See http://www.FreeRTOS.org/RTOS-task-notifications.html for more details. * * @param xTaskToNotify The handle of the task being notified. The handle to a * task can be returned from the xTaskCreate() API function used to create the * task, and the handle of the currently running task can be obtained by calling * xTaskGetCurrentTaskHandle(). * * @return xTaskNotifyGive() is a macro that calls xTaskNotify() with the * eAction parameter set to eIncrement - so pdPASS is always returned. * * \defgroup xTaskNotifyGive xTaskNotifyGive * \ingroup TaskNotifications */ #define xTaskNotifyGive( xTaskToNotify ) xTaskGenericNotify( ( xTaskToNotify ), ( 0 ), eIncrement, NULL ) /** * task. h *
void vTaskNotifyGiveFromISR( TaskHandle_t xTaskHandle, BaseType_t *pxHigherPriorityTaskWoken );
 *
 * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this macro
 * to be available.
 *
 * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private
 * "notification value", which is a 32-bit unsigned integer (uint32_t).
 *
 * A version of xTaskNotifyGive() that can be called from an interrupt service
 * routine (ISR).
 *
 * Events can be sent to a task using an intermediary object.  Examples of such
 * objects are queues, semaphores, mutexes and event groups.  Task notifications
 * are a method of sending an event directly to a task without the need for such
 * an intermediary object.
 *
 * A notification sent to a task can optionally perform an action, such as
 * update, overwrite or increment the task's notification value.  In that way
 * task notifications can be used to send data to a task, or be used as light
 * weight and fast binary or counting semaphores.
 *
 * vTaskNotifyGiveFromISR() is intended for use when task notifications are
 * used as light weight and faster binary or counting semaphore equivalents.
 * Actual FreeRTOS semaphores are given from an ISR using the
 * xSemaphoreGiveFromISR() API function, the equivalent action that instead uses
 * a task notification is vTaskNotifyGiveFromISR().
 *
 * When task notifications are being used as a binary or counting semaphore
 * equivalent then the task being notified should wait for the notification
 * using the ulTaskNotificationTake() API function rather than the
 * xTaskNotifyWait() API function.
 *
 * See http://www.FreeRTOS.org/RTOS-task-notifications.html for more details.
 *
 * @param xTaskToNotify The handle of the task being notified.  The handle to a
 * task can be returned from the xTaskCreate() API function used to create the
 * task, and the handle of the currently running task can be obtained by calling
 * xTaskGetCurrentTaskHandle().
 *
 * @param pxHigherPriorityTaskWoken  vTaskNotifyGiveFromISR() will set
 * *pxHigherPriorityTaskWoken to pdTRUE if sending the notification caused the
 * task to which the notification was sent to leave the Blocked state, and the
 * unblocked task has a priority higher than the currently running task.  If
 * vTaskNotifyGiveFromISR() sets this value to pdTRUE then a context switch
 * should be requested before the interrupt is exited.  How a context switch is
 * requested from an ISR is dependent on the port - see the documentation page
 * for the port in use.
 *
 * \defgroup xTaskNotifyWait xTaskNotifyWait
 * \ingroup TaskNotifications
 */
void vTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;

/**
 * task. h
 * 
uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait );
* * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this * function to be available. * * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private * "notification value", which is a 32-bit unsigned integer (uint32_t). * * Events can be sent to a task using an intermediary object. Examples of such * objects are queues, semaphores, mutexes and event groups. Task notifications * are a method of sending an event directly to a task without the need for such * an intermediary object. * * A notification sent to a task can optionally perform an action, such as * update, overwrite or increment the task's notification value. In that way * task notifications can be used to send data to a task, or be used as light * weight and fast binary or counting semaphores. * * ulTaskNotifyTake() is intended for use when a task notification is used as a * faster and lighter weight binary or counting semaphore alternative. Actual * FreeRTOS semaphores are taken using the xSemaphoreTake() API function, the * equivalent action that instead uses a task notification is * ulTaskNotifyTake(). * * When a task is using its notification value as a binary or counting semaphore * other tasks should send notifications to it using the xTaskNotifyGive() * macro, or xTaskNotify() function with the eAction parameter set to * eIncrement. * * ulTaskNotifyTake() can either clear the task's notification value to * zero on exit, in which case the notification value acts like a binary * semaphore, or decrement the task's notification value on exit, in which case * the notification value acts like a counting semaphore. * * A task can use ulTaskNotifyTake() to [optionally] block to wait for a * the task's notification value to be non-zero. The task does not consume any * CPU time while it is in the Blocked state. * * Where as xTaskNotifyWait() will return when a notification is pending, * ulTaskNotifyTake() will return when the task's notification value is * not zero. * * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. * * @param xClearCountOnExit if xClearCountOnExit is pdFALSE then the task's * notification value is decremented when the function exits. In this way the * notification value acts like a counting semaphore. If xClearCountOnExit is * not pdFALSE then the task's notification value is cleared to zero when the * function exits. In this way the notification value acts like a binary * semaphore. * * @param xTicksToWait The maximum amount of time that the task should wait in * the Blocked state for the task's notification value to be greater than zero, * should the count not already be greater than zero when * ulTaskNotifyTake() was called. The task will not consume any processing * time while it is in the Blocked state. This is specified in kernel ticks, * the macro pdMS_TO_TICSK( value_in_ms ) can be used to convert a time * specified in milliseconds to a time specified in ticks. * * @return The task's notification count before it is either cleared to zero or * decremented (see the xClearCountOnExit parameter). * * \defgroup ulTaskNotifyTake ulTaskNotifyTake * \ingroup TaskNotifications */ uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * task. h *
BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask );
* * If the notification state of the task referenced by the handle xTask is * eNotified, then set the task's notification state to eNotWaitingNotification. * The task's notification value is not altered. Set xTask to NULL to clear the * notification state of the calling task. * * @return pdTRUE if the task's notification state was set to * eNotWaitingNotification, otherwise pdFALSE. * \defgroup xTaskNotifyStateClear xTaskNotifyStateClear * \ingroup TaskNotifications */ BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask ); /** * task. h *
uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear );
* * Clears the bits specified by the ulBitsToClear bit mask in the notification * value of the task referenced by xTask. * * Set ulBitsToClear to 0xffffffff (UINT_MAX on 32-bit architectures) to clear * the notification value to 0. Set ulBitsToClear to 0 to query the task's * notification value without clearing any bits. * * @return The value of the target task's notification value before the bits * specified by ulBitsToClear were cleared. * \defgroup ulTaskNotifyValueClear ulTaskNotifyValueClear * \ingroup TaskNotifications */ uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) PRIVILEGED_FUNCTION; /** * task.h *
void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
* * Capture the current time for future use with xTaskCheckForTimeOut(). * * @param pxTimeOut Pointer to a timeout object into which the current time * is to be captured. The captured time includes the tick count and the number * of times the tick count has overflowed since the system first booted. * \defgroup vTaskSetTimeOutState vTaskSetTimeOutState * \ingroup TaskCtrl */ void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION; /** * task.h *
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait );
* * Determines if pxTicksToWait ticks has passed since a time was captured * using a call to vTaskSetTimeOutState(). The captured time includes the tick * count and the number of times the tick count has overflowed. * * @param pxTimeOut The time status as captured previously using * vTaskSetTimeOutState. If the timeout has not yet occurred, it is updated * to reflect the current time status. * @param pxTicksToWait The number of ticks to check for timeout i.e. if * pxTicksToWait ticks have passed since pxTimeOut was last updated (either by * vTaskSetTimeOutState() or xTaskCheckForTimeOut()), the timeout has occurred. * If the timeout has not occurred, pxTIcksToWait is updated to reflect the * number of remaining ticks. * * @return If timeout has occurred, pdTRUE is returned. Otherwise pdFALSE is * returned and pxTicksToWait is updated to reflect the number of remaining * ticks. * * @see https://www.freertos.org/xTaskCheckForTimeOut.html * * Example Usage: *
	// Driver library function used to receive uxWantedBytes from an Rx buffer
	// that is filled by a UART interrupt. If there are not enough bytes in the
	// Rx buffer then the task enters the Blocked state until it is notified that
	// more data has been placed into the buffer. If there is still not enough
	// data then the task re-enters the Blocked state, and xTaskCheckForTimeOut()
	// is used to re-calculate the Block time to ensure the total amount of time
	// spent in the Blocked state does not exceed MAX_TIME_TO_WAIT. This
	// continues until either the buffer contains at least uxWantedBytes bytes,
	// or the total amount of time spent in the Blocked state reaches
	// MAX_TIME_TO_WAIT – at which point the task reads however many bytes are
	// available up to a maximum of uxWantedBytes.

	size_t xUART_Receive( uint8_t *pucBuffer, size_t uxWantedBytes )
	{
	size_t uxReceived = 0;
	TickType_t xTicksToWait = MAX_TIME_TO_WAIT;
	TimeOut_t xTimeOut;

		// Initialize xTimeOut.  This records the time at which this function
		// was entered.
		vTaskSetTimeOutState( &xTimeOut );

		// Loop until the buffer contains the wanted number of bytes, or a
		// timeout occurs.
		while( UART_bytes_in_rx_buffer( pxUARTInstance ) < uxWantedBytes )
		{
			// The buffer didn't contain enough data so this task is going to
			// enter the Blocked state. Adjusting xTicksToWait to account for
			// any time that has been spent in the Blocked state within this
			// function so far to ensure the total amount of time spent in the
			// Blocked state does not exceed MAX_TIME_TO_WAIT.
			if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) != pdFALSE )
			{
				//Timed out before the wanted number of bytes were available,
				// exit the loop.
				break;
			}

			// Wait for a maximum of xTicksToWait ticks to be notified that the
			// receive interrupt has placed more data into the buffer.
			ulTaskNotifyTake( pdTRUE, xTicksToWait );
		}

		// Attempt to read uxWantedBytes from the receive buffer into pucBuffer.
		// The actual number of bytes read (which might be less than
		// uxWantedBytes) is returned.
		uxReceived = UART_read_from_receive_buffer( pxUARTInstance,
													pucBuffer,
													uxWantedBytes );

		return uxReceived;
	}
 
* \defgroup xTaskCheckForTimeOut xTaskCheckForTimeOut * \ingroup TaskCtrl */ BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) PRIVILEGED_FUNCTION; /*----------------------------------------------------------- * SCHEDULER INTERNALS AVAILABLE FOR PORTING PURPOSES *----------------------------------------------------------*/ /* * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS ONLY * INTENDED FOR USE WHEN IMPLEMENTING A PORT OF THE SCHEDULER AND IS * AN INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. * * Called from the real time kernel tick (either preemptive or cooperative), * this increments the tick count and checks if any tasks that are blocked * for a finite period required removing from a blocked list and placing on * a ready list. If a non-zero value is returned then a context switch is * required because either: * + A task was removed from a blocked list because its timeout had expired, * or * + Time slicing is in use and there is a task of equal priority to the * currently running task. */ BaseType_t xTaskIncrementTick( void ) PRIVILEGED_FUNCTION; /* * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. * * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. * * Removes the calling task from the ready list and places it both * on the list of tasks waiting for a particular event, and the * list of delayed tasks. The task will be removed from both lists * and replaced on the ready list should either the event occur (and * there be no higher priority tasks waiting on the same event) or * the delay period expires. * * The 'unordered' version replaces the event list item value with the * xItemValue value, and inserts the list item at the end of the list. * * The 'ordered' version uses the existing event list item value (which is the * owning tasks priority) to insert the list item into the event list is task * priority order. * * @param pxEventList The list containing tasks that are blocked waiting * for the event to occur. * * @param xItemValue The item value to use for the event list item when the * event list is not ordered by task priority. * * @param xTicksToWait The maximum amount of time that the task should wait * for the event to occur. This is specified in kernel ticks,the constant * portTICK_PERIOD_MS can be used to convert kernel ticks into a real time * period. */ void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; void vTaskPlaceOnUnorderedEventList( List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /* * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. * * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. * * This function performs nearly the same function as vTaskPlaceOnEventList(). * The difference being that this function does not permit tasks to block * indefinitely, whereas vTaskPlaceOnEventList() does. * */ void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION; /* * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. * * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. * * Removes a task from both the specified event list and the list of blocked * tasks, and places it on a ready queue. * * xTaskRemoveFromEventList()/vTaskRemoveFromUnorderedEventList() will be called * if either an event occurs to unblock a task, or the block timeout period * expires. * * xTaskRemoveFromEventList() is used when the event list is in task priority * order. It removes the list item from the head of the event list as that will * have the highest priority owning task of all the tasks on the event list. * vTaskRemoveFromUnorderedEventList() is used when the event list is not * ordered and the event list items hold something other than the owning tasks * priority. In this case the event list item value is updated to the value * passed in the xItemValue parameter. * * @return pdTRUE if the task being removed has a higher priority than the task * making the call, otherwise pdFALSE. */ BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION; void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem, const TickType_t xItemValue ) PRIVILEGED_FUNCTION; /* * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS ONLY * INTENDED FOR USE WHEN IMPLEMENTING A PORT OF THE SCHEDULER AND IS * AN INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. * * Sets the pointer to the current TCB to the TCB of the highest priority task * that is ready to run. */ portDONT_DISCARD void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION; /* * THESE FUNCTIONS MUST NOT BE USED FROM APPLICATION CODE. THEY ARE USED BY * THE EVENT BITS MODULE. */ TickType_t uxTaskResetEventItemValue( void ) PRIVILEGED_FUNCTION; /* * Return the handle of the calling task. */ TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION; /* * Shortcut used by the queue implementation to prevent unnecessary call to * taskYIELD(); */ void vTaskMissedYield( void ) PRIVILEGED_FUNCTION; /* * Returns the scheduler state as taskSCHEDULER_RUNNING, * taskSCHEDULER_NOT_STARTED or taskSCHEDULER_SUSPENDED. */ BaseType_t xTaskGetSchedulerState( void ) PRIVILEGED_FUNCTION; /* * Raises the priority of the mutex holder to that of the calling task should * the mutex holder have a priority less than the calling task. */ BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; /* * Set the priority of a task back to its proper priority in the case that it * inherited a higher priority while it was holding a semaphore. */ BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; /* * If a higher priority task attempting to obtain a mutex caused a lower * priority task to inherit the higher priority task's priority - but the higher * priority task then timed out without obtaining the mutex, then the lower * priority task will disinherit the priority again - but only down as far as * the highest priority task that is still waiting for the mutex (if there were * more than one task waiting for the mutex). */ void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) PRIVILEGED_FUNCTION; /* * Get the uxTCBNumber assigned to the task referenced by the xTask parameter. */ UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; /* * Set the uxTaskNumber of the task referenced by the xTask parameter to * uxHandle. */ void vTaskSetTaskNumber( TaskHandle_t xTask, const UBaseType_t uxHandle ) PRIVILEGED_FUNCTION; /* * Only available when configUSE_TICKLESS_IDLE is set to 1. * If tickless mode is being used, or a low power mode is implemented, then * the tick interrupt will not execute during idle periods. When this is the * case, the tick count value maintained by the scheduler needs to be kept up * to date with the actual execution time by being skipped forward by a time * equal to the idle period. */ void vTaskStepTick( const TickType_t xTicksToJump ) PRIVILEGED_FUNCTION; /* Correct the tick count value after the application code has held interrupts disabled for an extended period. xTicksToCatchUp is the number of tick interrupts that have been missed due to interrupts being disabled. Its value is not computed automatically, so must be computed by the application writer. This function is similar to vTaskStepTick(), however, unlike vTaskStepTick(), xTaskCatchUpTicks() may move the tick count forward past a time at which a task should be removed from the blocked state. That means tasks may have to be removed from the blocked state as the tick count is moved. */ BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) PRIVILEGED_FUNCTION; /* * Only available when configUSE_TICKLESS_IDLE is set to 1. * Provided for use within portSUPPRESS_TICKS_AND_SLEEP() to allow the port * specific sleep function to determine if it is ok to proceed with the sleep, * and if it is ok to proceed, if it is ok to sleep indefinitely. * * This function is necessary because portSUPPRESS_TICKS_AND_SLEEP() is only * called with the scheduler suspended, not from within a critical section. It * is therefore possible for an interrupt to request a context switch between * portSUPPRESS_TICKS_AND_SLEEP() and the low power mode actually being * entered. eTaskConfirmSleepModeStatus() should be called from a short * critical section between the timer being stopped and the sleep mode being * entered to ensure it is ok to proceed into the sleep mode. */ eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION; /* * For internal use only. Increment the mutex held count when a mutex is * taken and return the handle of the task that has taken the mutex. */ TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION; /* * For internal use only. Same as vTaskSetTimeOutState(), but without a critial * section. */ void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION; #ifdef __cplusplus } #endif #endif /* INC_TASK_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/include/timers.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef TIMERS_H #define TIMERS_H #ifndef INC_FREERTOS_H #error "include FreeRTOS.h must appear in source files before include timers.h" #endif /*lint -save -e537 This headers are only multiply included if the application code happens to also be including task.h. */ #include "task.h" /*lint -restore */ #ifdef __cplusplus extern "C" { #endif /*----------------------------------------------------------- * MACROS AND DEFINITIONS *----------------------------------------------------------*/ /* IDs for commands that can be sent/received on the timer queue. These are to be used solely through the macros that make up the public software timer API, as defined below. The commands that are sent from interrupts must use the highest numbers as tmrFIRST_FROM_ISR_COMMAND is used to determine if the task or interrupt version of the queue send function should be used. */ #define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 ) #define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 ) #define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 ) #define tmrCOMMAND_START ( ( BaseType_t ) 1 ) #define tmrCOMMAND_RESET ( ( BaseType_t ) 2 ) #define tmrCOMMAND_STOP ( ( BaseType_t ) 3 ) #define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 ) #define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 ) #define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 ) #define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 ) #define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 ) #define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 ) #define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 ) /** * Type by which software timers are referenced. For example, a call to * xTimerCreate() returns an TimerHandle_t variable that can then be used to * reference the subject timer in calls to other software timer API functions * (for example, xTimerStart(), xTimerReset(), etc.). */ struct tmrTimerControl; /* The old naming convention is used to prevent breaking kernel aware debuggers. */ typedef struct tmrTimerControl * TimerHandle_t; /* * Defines the prototype to which timer callback functions must conform. */ typedef void (*TimerCallbackFunction_t)( TimerHandle_t xTimer ); /* * Defines the prototype to which functions used with the * xTimerPendFunctionCallFromISR() function must conform. */ typedef void (*PendedFunction_t)( void *, uint32_t ); /** * TimerHandle_t xTimerCreate( const char * const pcTimerName, * TickType_t xTimerPeriodInTicks, * UBaseType_t uxAutoReload, * void * pvTimerID, * TimerCallbackFunction_t pxCallbackFunction ); * * Creates a new software timer instance, and returns a handle by which the * created software timer can be referenced. * * Internally, within the FreeRTOS implementation, software timers use a block * of memory, in which the timer data structure is stored. If a software timer * is created using xTimerCreate() then the required memory is automatically * dynamically allocated inside the xTimerCreate() function. (see * http://www.freertos.org/a00111.html). If a software timer is created using * xTimerCreateStatic() then the application writer must provide the memory that * will get used by the software timer. xTimerCreateStatic() therefore allows a * software timer to be created without using any dynamic memory allocation. * * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and * xTimerChangePeriodFromISR() API functions can all be used to transition a * timer into the active state. * * @param pcTimerName A text name that is assigned to the timer. This is done * purely to assist debugging. The kernel itself only ever references a timer * by its handle, and never by its name. * * @param xTimerPeriodInTicks The timer period. The time is defined in tick * periods so the constant portTICK_PERIOD_MS can be used to convert a time that * has been specified in milliseconds. For example, if the timer must expire * after 100 ticks, then xTimerPeriodInTicks should be set to 100. * Alternatively, if the timer must expire after 500ms, then xPeriod can be set * to ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than or * equal to 1000. Time timer period must be greater than 0. * * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will * expire repeatedly with a frequency set by the xTimerPeriodInTicks parameter. * If uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and * enter the dormant state after it expires. * * @param pvTimerID An identifier that is assigned to the timer being created. * Typically this would be used in the timer callback function to identify which * timer expired when the same callback function is assigned to more than one * timer. * * @param pxCallbackFunction The function to call when the timer expires. * Callback functions must have the prototype defined by TimerCallbackFunction_t, * which is "void vCallbackFunction( TimerHandle_t xTimer );". * * @return If the timer is successfully created then a handle to the newly * created timer is returned. If the timer cannot be created because there is * insufficient FreeRTOS heap remaining to allocate the timer * structures then NULL is returned. * * Example usage: * @verbatim * #define NUM_TIMERS 5 * * // An array to hold handles to the created timers. * TimerHandle_t xTimers[ NUM_TIMERS ]; * * // An array to hold a count of the number of times each timer expires. * int32_t lExpireCounters[ NUM_TIMERS ] = { 0 }; * * // Define a callback function that will be used by multiple timer instances. * // The callback function does nothing but count the number of times the * // associated timer expires, and stop the timer once the timer has expired * // 10 times. * void vTimerCallback( TimerHandle_t pxTimer ) * { * int32_t lArrayIndex; * const int32_t xMaxExpiryCountBeforeStopping = 10; * * // Optionally do something if the pxTimer parameter is NULL. * configASSERT( pxTimer ); * * // Which timer expired? * lArrayIndex = ( int32_t ) pvTimerGetTimerID( pxTimer ); * * // Increment the number of times that pxTimer has expired. * lExpireCounters[ lArrayIndex ] += 1; * * // If the timer has expired 10 times then stop it from running. * if( lExpireCounters[ lArrayIndex ] == xMaxExpiryCountBeforeStopping ) * { * // Do not use a block time if calling a timer API function from a * // timer callback function, as doing so could cause a deadlock! * xTimerStop( pxTimer, 0 ); * } * } * * void main( void ) * { * int32_t x; * * // Create then start some timers. Starting the timers before the scheduler * // has been started means the timers will start running immediately that * // the scheduler starts. * for( x = 0; x < NUM_TIMERS; x++ ) * { * xTimers[ x ] = xTimerCreate( "Timer", // Just a text name, not used by the kernel. * ( 100 * x ), // The timer period in ticks. * pdTRUE, // The timers will auto-reload themselves when they expire. * ( void * ) x, // Assign each timer a unique id equal to its array index. * vTimerCallback // Each timer calls the same callback when it expires. * ); * * if( xTimers[ x ] == NULL ) * { * // The timer was not created. * } * else * { * // Start the timer. No block time is specified, and even if one was * // it would be ignored because the scheduler has not yet been * // started. * if( xTimerStart( xTimers[ x ], 0 ) != pdPASS ) * { * // The timer could not be set into the Active state. * } * } * } * * // ... * // Create tasks here. * // ... * * // Starting the scheduler will start the timers running as they have already * // been set into the active state. * vTaskStartScheduler(); * * // Should not reach here. * for( ;; ); * } * @endverbatim */ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction ) PRIVILEGED_FUNCTION; #endif /** * TimerHandle_t xTimerCreateStatic(const char * const pcTimerName, * TickType_t xTimerPeriodInTicks, * UBaseType_t uxAutoReload, * void * pvTimerID, * TimerCallbackFunction_t pxCallbackFunction, * StaticTimer_t *pxTimerBuffer ); * * Creates a new software timer instance, and returns a handle by which the * created software timer can be referenced. * * Internally, within the FreeRTOS implementation, software timers use a block * of memory, in which the timer data structure is stored. If a software timer * is created using xTimerCreate() then the required memory is automatically * dynamically allocated inside the xTimerCreate() function. (see * http://www.freertos.org/a00111.html). If a software timer is created using * xTimerCreateStatic() then the application writer must provide the memory that * will get used by the software timer. xTimerCreateStatic() therefore allows a * software timer to be created without using any dynamic memory allocation. * * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and * xTimerChangePeriodFromISR() API functions can all be used to transition a * timer into the active state. * * @param pcTimerName A text name that is assigned to the timer. This is done * purely to assist debugging. The kernel itself only ever references a timer * by its handle, and never by its name. * * @param xTimerPeriodInTicks The timer period. The time is defined in tick * periods so the constant portTICK_PERIOD_MS can be used to convert a time that * has been specified in milliseconds. For example, if the timer must expire * after 100 ticks, then xTimerPeriodInTicks should be set to 100. * Alternatively, if the timer must expire after 500ms, then xPeriod can be set * to ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than or * equal to 1000. The timer period must be greater than 0. * * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will * expire repeatedly with a frequency set by the xTimerPeriodInTicks parameter. * If uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and * enter the dormant state after it expires. * * @param pvTimerID An identifier that is assigned to the timer being created. * Typically this would be used in the timer callback function to identify which * timer expired when the same callback function is assigned to more than one * timer. * * @param pxCallbackFunction The function to call when the timer expires. * Callback functions must have the prototype defined by TimerCallbackFunction_t, * which is "void vCallbackFunction( TimerHandle_t xTimer );". * * @param pxTimerBuffer Must point to a variable of type StaticTimer_t, which * will be then be used to hold the software timer's data structures, removing * the need for the memory to be allocated dynamically. * * @return If the timer is created then a handle to the created timer is * returned. If pxTimerBuffer was NULL then NULL is returned. * * Example usage: * @verbatim * * // The buffer used to hold the software timer's data structure. * static StaticTimer_t xTimerBuffer; * * // A variable that will be incremented by the software timer's callback * // function. * UBaseType_t uxVariableToIncrement = 0; * * // A software timer callback function that increments a variable passed to * // it when the software timer was created. After the 5th increment the * // callback function stops the software timer. * static void prvTimerCallback( TimerHandle_t xExpiredTimer ) * { * UBaseType_t *puxVariableToIncrement; * BaseType_t xReturned; * * // Obtain the address of the variable to increment from the timer ID. * puxVariableToIncrement = ( UBaseType_t * ) pvTimerGetTimerID( xExpiredTimer ); * * // Increment the variable to show the timer callback has executed. * ( *puxVariableToIncrement )++; * * // If this callback has executed the required number of times, stop the * // timer. * if( *puxVariableToIncrement == 5 ) * { * // This is called from a timer callback so must not block. * xTimerStop( xExpiredTimer, staticDONT_BLOCK ); * } * } * * * void main( void ) * { * // Create the software time. xTimerCreateStatic() has an extra parameter * // than the normal xTimerCreate() API function. The parameter is a pointer * // to the StaticTimer_t structure that will hold the software timer * // structure. If the parameter is passed as NULL then the structure will be * // allocated dynamically, just as if xTimerCreate() had been called. * xTimer = xTimerCreateStatic( "T1", // Text name for the task. Helps debugging only. Not used by FreeRTOS. * xTimerPeriod, // The period of the timer in ticks. * pdTRUE, // This is an auto-reload timer. * ( void * ) &uxVariableToIncrement, // A variable incremented by the software timer's callback function * prvTimerCallback, // The function to execute when the timer expires. * &xTimerBuffer ); // The buffer that will hold the software timer structure. * * // The scheduler has not started yet so a block time is not used. * xReturned = xTimerStart( xTimer, 0 ); * * // ... * // Create tasks here. * // ... * * // Starting the scheduler will start the timers running as they have already * // been set into the active state. * vTaskStartScheduler(); * * // Should not reach here. * for( ;; ); * } * @endverbatim */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) TimerHandle_t xTimerCreateStatic( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer ) PRIVILEGED_FUNCTION; #endif /* configSUPPORT_STATIC_ALLOCATION */ /** * void *pvTimerGetTimerID( TimerHandle_t xTimer ); * * Returns the ID assigned to the timer. * * IDs are assigned to timers using the pvTimerID parameter of the call to * xTimerCreated() that was used to create the timer, and by calling the * vTimerSetTimerID() API function. * * If the same callback function is assigned to multiple timers then the timer * ID can be used as time specific (timer local) storage. * * @param xTimer The timer being queried. * * @return The ID assigned to the timer being queried. * * Example usage: * * See the xTimerCreate() API function example usage scenario. */ void *pvTimerGetTimerID( const TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /** * void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ); * * Sets the ID assigned to the timer. * * IDs are assigned to timers using the pvTimerID parameter of the call to * xTimerCreated() that was used to create the timer. * * If the same callback function is assigned to multiple timers then the timer * ID can be used as time specific (timer local) storage. * * @param xTimer The timer being updated. * * @param pvNewID The ID to assign to the timer. * * Example usage: * * See the xTimerCreate() API function example usage scenario. */ void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) PRIVILEGED_FUNCTION; /** * BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ); * * Queries a timer to see if it is active or dormant. * * A timer will be dormant if: * 1) It has been created but not started, or * 2) It is an expired one-shot timer that has not been restarted. * * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and * xTimerChangePeriodFromISR() API functions can all be used to transition a timer into the * active state. * * @param xTimer The timer being queried. * * @return pdFALSE will be returned if the timer is dormant. A value other than * pdFALSE will be returned if the timer is active. * * Example usage: * @verbatim * // This function assumes xTimer has already been created. * void vAFunction( TimerHandle_t xTimer ) * { * if( xTimerIsTimerActive( xTimer ) != pdFALSE ) // or more simply and equivalently "if( xTimerIsTimerActive( xTimer ) )" * { * // xTimer is active, do something. * } * else * { * // xTimer is not active, do something else. * } * } * @endverbatim */ BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /** * TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ); * * Simply returns the handle of the timer service/daemon task. It it not valid * to call xTimerGetTimerDaemonTaskHandle() before the scheduler has been started. */ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION; /** * BaseType_t xTimerStart( TimerHandle_t xTimer, TickType_t xTicksToWait ); * * Timer functionality is provided by a timer service/daemon task. Many of the * public FreeRTOS timer API functions send commands to the timer service task * through a queue called the timer command queue. The timer command queue is * private to the kernel itself and is not directly accessible to application * code. The length of the timer command queue is set by the * configTIMER_QUEUE_LENGTH configuration constant. * * xTimerStart() starts a timer that was previously created using the * xTimerCreate() API function. If the timer had already been started and was * already in the active state, then xTimerStart() has equivalent functionality * to the xTimerReset() API function. * * Starting a timer ensures the timer is in the active state. If the timer * is not stopped, deleted, or reset in the mean time, the callback function * associated with the timer will get called 'n' ticks after xTimerStart() was * called, where 'n' is the timers defined period. * * It is valid to call xTimerStart() before the scheduler has been started, but * when this is done the timer will not actually start until the scheduler is * started, and the timers expiry time will be relative to when the scheduler is * started, not relative to when xTimerStart() was called. * * The configUSE_TIMERS configuration constant must be set to 1 for xTimerStart() * to be available. * * @param xTimer The handle of the timer being started/restarted. * * @param xTicksToWait Specifies the time, in ticks, that the calling task should * be held in the Blocked state to wait for the start command to be successfully * sent to the timer command queue, should the queue already be full when * xTimerStart() was called. xTicksToWait is ignored if xTimerStart() is called * before the scheduler is started. * * @return pdFAIL will be returned if the start command could not be sent to * the timer command queue even after xTicksToWait ticks had passed. pdPASS will * be returned if the command was successfully sent to the timer command queue. * When the command is actually processed will depend on the priority of the * timer service/daemon task relative to other tasks in the system, although the * timers expiry time is relative to when xTimerStart() is actually called. The * timer service/daemon task priority is set by the configTIMER_TASK_PRIORITY * configuration constant. * * Example usage: * * See the xTimerCreate() API function example usage scenario. * */ #define xTimerStart( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) /** * BaseType_t xTimerStop( TimerHandle_t xTimer, TickType_t xTicksToWait ); * * Timer functionality is provided by a timer service/daemon task. Many of the * public FreeRTOS timer API functions send commands to the timer service task * through a queue called the timer command queue. The timer command queue is * private to the kernel itself and is not directly accessible to application * code. The length of the timer command queue is set by the * configTIMER_QUEUE_LENGTH configuration constant. * * xTimerStop() stops a timer that was previously started using either of the * The xTimerStart(), xTimerReset(), xTimerStartFromISR(), xTimerResetFromISR(), * xTimerChangePeriod() or xTimerChangePeriodFromISR() API functions. * * Stopping a timer ensures the timer is not in the active state. * * The configUSE_TIMERS configuration constant must be set to 1 for xTimerStop() * to be available. * * @param xTimer The handle of the timer being stopped. * * @param xTicksToWait Specifies the time, in ticks, that the calling task should * be held in the Blocked state to wait for the stop command to be successfully * sent to the timer command queue, should the queue already be full when * xTimerStop() was called. xTicksToWait is ignored if xTimerStop() is called * before the scheduler is started. * * @return pdFAIL will be returned if the stop command could not be sent to * the timer command queue even after xTicksToWait ticks had passed. pdPASS will * be returned if the command was successfully sent to the timer command queue. * When the command is actually processed will depend on the priority of the * timer service/daemon task relative to other tasks in the system. The timer * service/daemon task priority is set by the configTIMER_TASK_PRIORITY * configuration constant. * * Example usage: * * See the xTimerCreate() API function example usage scenario. * */ #define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) ) /** * BaseType_t xTimerChangePeriod( TimerHandle_t xTimer, * TickType_t xNewPeriod, * TickType_t xTicksToWait ); * * Timer functionality is provided by a timer service/daemon task. Many of the * public FreeRTOS timer API functions send commands to the timer service task * through a queue called the timer command queue. The timer command queue is * private to the kernel itself and is not directly accessible to application * code. The length of the timer command queue is set by the * configTIMER_QUEUE_LENGTH configuration constant. * * xTimerChangePeriod() changes the period of a timer that was previously * created using the xTimerCreate() API function. * * xTimerChangePeriod() can be called to change the period of an active or * dormant state timer. * * The configUSE_TIMERS configuration constant must be set to 1 for * xTimerChangePeriod() to be available. * * @param xTimer The handle of the timer that is having its period changed. * * @param xNewPeriod The new period for xTimer. Timer periods are specified in * tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time * that has been specified in milliseconds. For example, if the timer must * expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively, * if the timer must expire after 500ms, then xNewPeriod can be set to * ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than * or equal to 1000. * * @param xTicksToWait Specifies the time, in ticks, that the calling task should * be held in the Blocked state to wait for the change period command to be * successfully sent to the timer command queue, should the queue already be * full when xTimerChangePeriod() was called. xTicksToWait is ignored if * xTimerChangePeriod() is called before the scheduler is started. * * @return pdFAIL will be returned if the change period command could not be * sent to the timer command queue even after xTicksToWait ticks had passed. * pdPASS will be returned if the command was successfully sent to the timer * command queue. When the command is actually processed will depend on the * priority of the timer service/daemon task relative to other tasks in the * system. The timer service/daemon task priority is set by the * configTIMER_TASK_PRIORITY configuration constant. * * Example usage: * @verbatim * // This function assumes xTimer has already been created. If the timer * // referenced by xTimer is already active when it is called, then the timer * // is deleted. If the timer referenced by xTimer is not active when it is * // called, then the period of the timer is set to 500ms and the timer is * // started. * void vAFunction( TimerHandle_t xTimer ) * { * if( xTimerIsTimerActive( xTimer ) != pdFALSE ) // or more simply and equivalently "if( xTimerIsTimerActive( xTimer ) )" * { * // xTimer is already active - delete it. * xTimerDelete( xTimer ); * } * else * { * // xTimer is not active, change its period to 500ms. This will also * // cause the timer to start. Block for a maximum of 100 ticks if the * // change period command cannot immediately be sent to the timer * // command queue. * if( xTimerChangePeriod( xTimer, 500 / portTICK_PERIOD_MS, 100 ) == pdPASS ) * { * // The command was successfully sent. * } * else * { * // The command could not be sent, even after waiting for 100 ticks * // to pass. Take appropriate action here. * } * } * } * @endverbatim */ #define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) ) /** * BaseType_t xTimerDelete( TimerHandle_t xTimer, TickType_t xTicksToWait ); * * Timer functionality is provided by a timer service/daemon task. Many of the * public FreeRTOS timer API functions send commands to the timer service task * through a queue called the timer command queue. The timer command queue is * private to the kernel itself and is not directly accessible to application * code. The length of the timer command queue is set by the * configTIMER_QUEUE_LENGTH configuration constant. * * xTimerDelete() deletes a timer that was previously created using the * xTimerCreate() API function. * * The configUSE_TIMERS configuration constant must be set to 1 for * xTimerDelete() to be available. * * @param xTimer The handle of the timer being deleted. * * @param xTicksToWait Specifies the time, in ticks, that the calling task should * be held in the Blocked state to wait for the delete command to be * successfully sent to the timer command queue, should the queue already be * full when xTimerDelete() was called. xTicksToWait is ignored if xTimerDelete() * is called before the scheduler is started. * * @return pdFAIL will be returned if the delete command could not be sent to * the timer command queue even after xTicksToWait ticks had passed. pdPASS will * be returned if the command was successfully sent to the timer command queue. * When the command is actually processed will depend on the priority of the * timer service/daemon task relative to other tasks in the system. The timer * service/daemon task priority is set by the configTIMER_TASK_PRIORITY * configuration constant. * * Example usage: * * See the xTimerChangePeriod() API function example usage scenario. */ #define xTimerDelete( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) ) /** * BaseType_t xTimerReset( TimerHandle_t xTimer, TickType_t xTicksToWait ); * * Timer functionality is provided by a timer service/daemon task. Many of the * public FreeRTOS timer API functions send commands to the timer service task * through a queue called the timer command queue. The timer command queue is * private to the kernel itself and is not directly accessible to application * code. The length of the timer command queue is set by the * configTIMER_QUEUE_LENGTH configuration constant. * * xTimerReset() re-starts a timer that was previously created using the * xTimerCreate() API function. If the timer had already been started and was * already in the active state, then xTimerReset() will cause the timer to * re-evaluate its expiry time so that it is relative to when xTimerReset() was * called. If the timer was in the dormant state then xTimerReset() has * equivalent functionality to the xTimerStart() API function. * * Resetting a timer ensures the timer is in the active state. If the timer * is not stopped, deleted, or reset in the mean time, the callback function * associated with the timer will get called 'n' ticks after xTimerReset() was * called, where 'n' is the timers defined period. * * It is valid to call xTimerReset() before the scheduler has been started, but * when this is done the timer will not actually start until the scheduler is * started, and the timers expiry time will be relative to when the scheduler is * started, not relative to when xTimerReset() was called. * * The configUSE_TIMERS configuration constant must be set to 1 for xTimerReset() * to be available. * * @param xTimer The handle of the timer being reset/started/restarted. * * @param xTicksToWait Specifies the time, in ticks, that the calling task should * be held in the Blocked state to wait for the reset command to be successfully * sent to the timer command queue, should the queue already be full when * xTimerReset() was called. xTicksToWait is ignored if xTimerReset() is called * before the scheduler is started. * * @return pdFAIL will be returned if the reset command could not be sent to * the timer command queue even after xTicksToWait ticks had passed. pdPASS will * be returned if the command was successfully sent to the timer command queue. * When the command is actually processed will depend on the priority of the * timer service/daemon task relative to other tasks in the system, although the * timers expiry time is relative to when xTimerStart() is actually called. The * timer service/daemon task priority is set by the configTIMER_TASK_PRIORITY * configuration constant. * * Example usage: * @verbatim * // When a key is pressed, an LCD back-light is switched on. If 5 seconds pass * // without a key being pressed, then the LCD back-light is switched off. In * // this case, the timer is a one-shot timer. * * TimerHandle_t xBacklightTimer = NULL; * * // The callback function assigned to the one-shot timer. In this case the * // parameter is not used. * void vBacklightTimerCallback( TimerHandle_t pxTimer ) * { * // The timer expired, therefore 5 seconds must have passed since a key * // was pressed. Switch off the LCD back-light. * vSetBacklightState( BACKLIGHT_OFF ); * } * * // The key press event handler. * void vKeyPressEventHandler( char cKey ) * { * // Ensure the LCD back-light is on, then reset the timer that is * // responsible for turning the back-light off after 5 seconds of * // key inactivity. Wait 10 ticks for the command to be successfully sent * // if it cannot be sent immediately. * vSetBacklightState( BACKLIGHT_ON ); * if( xTimerReset( xBacklightTimer, 100 ) != pdPASS ) * { * // The reset command was not executed successfully. Take appropriate * // action here. * } * * // Perform the rest of the key processing here. * } * * void main( void ) * { * int32_t x; * * // Create then start the one-shot timer that is responsible for turning * // the back-light off if no keys are pressed within a 5 second period. * xBacklightTimer = xTimerCreate( "BacklightTimer", // Just a text name, not used by the kernel. * ( 5000 / portTICK_PERIOD_MS), // The timer period in ticks. * pdFALSE, // The timer is a one-shot timer. * 0, // The id is not used by the callback so can take any value. * vBacklightTimerCallback // The callback function that switches the LCD back-light off. * ); * * if( xBacklightTimer == NULL ) * { * // The timer was not created. * } * else * { * // Start the timer. No block time is specified, and even if one was * // it would be ignored because the scheduler has not yet been * // started. * if( xTimerStart( xBacklightTimer, 0 ) != pdPASS ) * { * // The timer could not be set into the Active state. * } * } * * // ... * // Create tasks here. * // ... * * // Starting the scheduler will start the timer running as it has already * // been set into the active state. * vTaskStartScheduler(); * * // Should not reach here. * for( ;; ); * } * @endverbatim */ #define xTimerReset( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) /** * BaseType_t xTimerStartFromISR( TimerHandle_t xTimer, * BaseType_t *pxHigherPriorityTaskWoken ); * * A version of xTimerStart() that can be called from an interrupt service * routine. * * @param xTimer The handle of the timer being started/restarted. * * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most * of its time in the Blocked state, waiting for messages to arrive on the timer * command queue. Calling xTimerStartFromISR() writes a message to the timer * command queue, so has the potential to transition the timer service/daemon * task out of the Blocked state. If calling xTimerStartFromISR() causes the * timer service/daemon task to leave the Blocked state, and the timer service/ * daemon task has a priority equal to or greater than the currently executing * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will * get set to pdTRUE internally within the xTimerStartFromISR() function. If * xTimerStartFromISR() sets this value to pdTRUE then a context switch should * be performed before the interrupt exits. * * @return pdFAIL will be returned if the start command could not be sent to * the timer command queue. pdPASS will be returned if the command was * successfully sent to the timer command queue. When the command is actually * processed will depend on the priority of the timer service/daemon task * relative to other tasks in the system, although the timers expiry time is * relative to when xTimerStartFromISR() is actually called. The timer * service/daemon task priority is set by the configTIMER_TASK_PRIORITY * configuration constant. * * Example usage: * @verbatim * // This scenario assumes xBacklightTimer has already been created. When a * // key is pressed, an LCD back-light is switched on. If 5 seconds pass * // without a key being pressed, then the LCD back-light is switched off. In * // this case, the timer is a one-shot timer, and unlike the example given for * // the xTimerReset() function, the key press event handler is an interrupt * // service routine. * * // The callback function assigned to the one-shot timer. In this case the * // parameter is not used. * void vBacklightTimerCallback( TimerHandle_t pxTimer ) * { * // The timer expired, therefore 5 seconds must have passed since a key * // was pressed. Switch off the LCD back-light. * vSetBacklightState( BACKLIGHT_OFF ); * } * * // The key press interrupt service routine. * void vKeyPressEventInterruptHandler( void ) * { * BaseType_t xHigherPriorityTaskWoken = pdFALSE; * * // Ensure the LCD back-light is on, then restart the timer that is * // responsible for turning the back-light off after 5 seconds of * // key inactivity. This is an interrupt service routine so can only * // call FreeRTOS API functions that end in "FromISR". * vSetBacklightState( BACKLIGHT_ON ); * * // xTimerStartFromISR() or xTimerResetFromISR() could be called here * // as both cause the timer to re-calculate its expiry time. * // xHigherPriorityTaskWoken was initialised to pdFALSE when it was * // declared (in this function). * if( xTimerStartFromISR( xBacklightTimer, &xHigherPriorityTaskWoken ) != pdPASS ) * { * // The start command was not executed successfully. Take appropriate * // action here. * } * * // Perform the rest of the key processing here. * * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch * // should be performed. The syntax required to perform a context switch * // from inside an ISR varies from port to port, and from compiler to * // compiler. Inspect the demos for the port you are using to find the * // actual syntax required. * if( xHigherPriorityTaskWoken != pdFALSE ) * { * // Call the interrupt safe yield function here (actual function * // depends on the FreeRTOS port being used). * } * } * @endverbatim */ #define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) /** * BaseType_t xTimerStopFromISR( TimerHandle_t xTimer, * BaseType_t *pxHigherPriorityTaskWoken ); * * A version of xTimerStop() that can be called from an interrupt service * routine. * * @param xTimer The handle of the timer being stopped. * * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most * of its time in the Blocked state, waiting for messages to arrive on the timer * command queue. Calling xTimerStopFromISR() writes a message to the timer * command queue, so has the potential to transition the timer service/daemon * task out of the Blocked state. If calling xTimerStopFromISR() causes the * timer service/daemon task to leave the Blocked state, and the timer service/ * daemon task has a priority equal to or greater than the currently executing * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will * get set to pdTRUE internally within the xTimerStopFromISR() function. If * xTimerStopFromISR() sets this value to pdTRUE then a context switch should * be performed before the interrupt exits. * * @return pdFAIL will be returned if the stop command could not be sent to * the timer command queue. pdPASS will be returned if the command was * successfully sent to the timer command queue. When the command is actually * processed will depend on the priority of the timer service/daemon task * relative to other tasks in the system. The timer service/daemon task * priority is set by the configTIMER_TASK_PRIORITY configuration constant. * * Example usage: * @verbatim * // This scenario assumes xTimer has already been created and started. When * // an interrupt occurs, the timer should be simply stopped. * * // The interrupt service routine that stops the timer. * void vAnExampleInterruptServiceRoutine( void ) * { * BaseType_t xHigherPriorityTaskWoken = pdFALSE; * * // The interrupt has occurred - simply stop the timer. * // xHigherPriorityTaskWoken was set to pdFALSE where it was defined * // (within this function). As this is an interrupt service routine, only * // FreeRTOS API functions that end in "FromISR" can be used. * if( xTimerStopFromISR( xTimer, &xHigherPriorityTaskWoken ) != pdPASS ) * { * // The stop command was not executed successfully. Take appropriate * // action here. * } * * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch * // should be performed. The syntax required to perform a context switch * // from inside an ISR varies from port to port, and from compiler to * // compiler. Inspect the demos for the port you are using to find the * // actual syntax required. * if( xHigherPriorityTaskWoken != pdFALSE ) * { * // Call the interrupt safe yield function here (actual function * // depends on the FreeRTOS port being used). * } * } * @endverbatim */ #define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U ) /** * BaseType_t xTimerChangePeriodFromISR( TimerHandle_t xTimer, * TickType_t xNewPeriod, * BaseType_t *pxHigherPriorityTaskWoken ); * * A version of xTimerChangePeriod() that can be called from an interrupt * service routine. * * @param xTimer The handle of the timer that is having its period changed. * * @param xNewPeriod The new period for xTimer. Timer periods are specified in * tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time * that has been specified in milliseconds. For example, if the timer must * expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively, * if the timer must expire after 500ms, then xNewPeriod can be set to * ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than * or equal to 1000. * * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most * of its time in the Blocked state, waiting for messages to arrive on the timer * command queue. Calling xTimerChangePeriodFromISR() writes a message to the * timer command queue, so has the potential to transition the timer service/ * daemon task out of the Blocked state. If calling xTimerChangePeriodFromISR() * causes the timer service/daemon task to leave the Blocked state, and the * timer service/daemon task has a priority equal to or greater than the * currently executing task (the task that was interrupted), then * *pxHigherPriorityTaskWoken will get set to pdTRUE internally within the * xTimerChangePeriodFromISR() function. If xTimerChangePeriodFromISR() sets * this value to pdTRUE then a context switch should be performed before the * interrupt exits. * * @return pdFAIL will be returned if the command to change the timers period * could not be sent to the timer command queue. pdPASS will be returned if the * command was successfully sent to the timer command queue. When the command * is actually processed will depend on the priority of the timer service/daemon * task relative to other tasks in the system. The timer service/daemon task * priority is set by the configTIMER_TASK_PRIORITY configuration constant. * * Example usage: * @verbatim * // This scenario assumes xTimer has already been created and started. When * // an interrupt occurs, the period of xTimer should be changed to 500ms. * * // The interrupt service routine that changes the period of xTimer. * void vAnExampleInterruptServiceRoutine( void ) * { * BaseType_t xHigherPriorityTaskWoken = pdFALSE; * * // The interrupt has occurred - change the period of xTimer to 500ms. * // xHigherPriorityTaskWoken was set to pdFALSE where it was defined * // (within this function). As this is an interrupt service routine, only * // FreeRTOS API functions that end in "FromISR" can be used. * if( xTimerChangePeriodFromISR( xTimer, &xHigherPriorityTaskWoken ) != pdPASS ) * { * // The command to change the timers period was not executed * // successfully. Take appropriate action here. * } * * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch * // should be performed. The syntax required to perform a context switch * // from inside an ISR varies from port to port, and from compiler to * // compiler. Inspect the demos for the port you are using to find the * // actual syntax required. * if( xHigherPriorityTaskWoken != pdFALSE ) * { * // Call the interrupt safe yield function here (actual function * // depends on the FreeRTOS port being used). * } * } * @endverbatim */ #define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U ) /** * BaseType_t xTimerResetFromISR( TimerHandle_t xTimer, * BaseType_t *pxHigherPriorityTaskWoken ); * * A version of xTimerReset() that can be called from an interrupt service * routine. * * @param xTimer The handle of the timer that is to be started, reset, or * restarted. * * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most * of its time in the Blocked state, waiting for messages to arrive on the timer * command queue. Calling xTimerResetFromISR() writes a message to the timer * command queue, so has the potential to transition the timer service/daemon * task out of the Blocked state. If calling xTimerResetFromISR() causes the * timer service/daemon task to leave the Blocked state, and the timer service/ * daemon task has a priority equal to or greater than the currently executing * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will * get set to pdTRUE internally within the xTimerResetFromISR() function. If * xTimerResetFromISR() sets this value to pdTRUE then a context switch should * be performed before the interrupt exits. * * @return pdFAIL will be returned if the reset command could not be sent to * the timer command queue. pdPASS will be returned if the command was * successfully sent to the timer command queue. When the command is actually * processed will depend on the priority of the timer service/daemon task * relative to other tasks in the system, although the timers expiry time is * relative to when xTimerResetFromISR() is actually called. The timer service/daemon * task priority is set by the configTIMER_TASK_PRIORITY configuration constant. * * Example usage: * @verbatim * // This scenario assumes xBacklightTimer has already been created. When a * // key is pressed, an LCD back-light is switched on. If 5 seconds pass * // without a key being pressed, then the LCD back-light is switched off. In * // this case, the timer is a one-shot timer, and unlike the example given for * // the xTimerReset() function, the key press event handler is an interrupt * // service routine. * * // The callback function assigned to the one-shot timer. In this case the * // parameter is not used. * void vBacklightTimerCallback( TimerHandle_t pxTimer ) * { * // The timer expired, therefore 5 seconds must have passed since a key * // was pressed. Switch off the LCD back-light. * vSetBacklightState( BACKLIGHT_OFF ); * } * * // The key press interrupt service routine. * void vKeyPressEventInterruptHandler( void ) * { * BaseType_t xHigherPriorityTaskWoken = pdFALSE; * * // Ensure the LCD back-light is on, then reset the timer that is * // responsible for turning the back-light off after 5 seconds of * // key inactivity. This is an interrupt service routine so can only * // call FreeRTOS API functions that end in "FromISR". * vSetBacklightState( BACKLIGHT_ON ); * * // xTimerStartFromISR() or xTimerResetFromISR() could be called here * // as both cause the timer to re-calculate its expiry time. * // xHigherPriorityTaskWoken was initialised to pdFALSE when it was * // declared (in this function). * if( xTimerResetFromISR( xBacklightTimer, &xHigherPriorityTaskWoken ) != pdPASS ) * { * // The reset command was not executed successfully. Take appropriate * // action here. * } * * // Perform the rest of the key processing here. * * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch * // should be performed. The syntax required to perform a context switch * // from inside an ISR varies from port to port, and from compiler to * // compiler. Inspect the demos for the port you are using to find the * // actual syntax required. * if( xHigherPriorityTaskWoken != pdFALSE ) * { * // Call the interrupt safe yield function here (actual function * // depends on the FreeRTOS port being used). * } * } * @endverbatim */ #define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) /** * BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, * void *pvParameter1, * uint32_t ulParameter2, * BaseType_t *pxHigherPriorityTaskWoken ); * * * Used from application interrupt service routines to defer the execution of a * function to the RTOS daemon task (the timer service task, hence this function * is implemented in timers.c and is prefixed with 'Timer'). * * Ideally an interrupt service routine (ISR) is kept as short as possible, but * sometimes an ISR either has a lot of processing to do, or needs to perform * processing that is not deterministic. In these cases * xTimerPendFunctionCallFromISR() can be used to defer processing of a function * to the RTOS daemon task. * * A mechanism is provided that allows the interrupt to return directly to the * task that will subsequently execute the pended callback function. This * allows the callback function to execute contiguously in time with the * interrupt - just as if the callback had executed in the interrupt itself. * * @param xFunctionToPend The function to execute from the timer service/ * daemon task. The function must conform to the PendedFunction_t * prototype. * * @param pvParameter1 The value of the callback function's first parameter. * The parameter has a void * type to allow it to be used to pass any type. * For example, unsigned longs can be cast to a void *, or the void * can be * used to point to a structure. * * @param ulParameter2 The value of the callback function's second parameter. * * @param pxHigherPriorityTaskWoken As mentioned above, calling this function * will result in a message being sent to the timer daemon task. If the * priority of the timer daemon task (which is set using * configTIMER_TASK_PRIORITY in FreeRTOSConfig.h) is higher than the priority of * the currently running task (the task the interrupt interrupted) then * *pxHigherPriorityTaskWoken will be set to pdTRUE within * xTimerPendFunctionCallFromISR(), indicating that a context switch should be * requested before the interrupt exits. For that reason * *pxHigherPriorityTaskWoken must be initialised to pdFALSE. See the * example code below. * * @return pdPASS is returned if the message was successfully sent to the * timer daemon task, otherwise pdFALSE is returned. * * Example usage: * @verbatim * * // The callback function that will execute in the context of the daemon task. * // Note callback functions must all use this same prototype. * void vProcessInterface( void *pvParameter1, uint32_t ulParameter2 ) * { * BaseType_t xInterfaceToService; * * // The interface that requires servicing is passed in the second * // parameter. The first parameter is not used in this case. * xInterfaceToService = ( BaseType_t ) ulParameter2; * * // ...Perform the processing here... * } * * // An ISR that receives data packets from multiple interfaces * void vAnISR( void ) * { * BaseType_t xInterfaceToService, xHigherPriorityTaskWoken; * * // Query the hardware to determine which interface needs processing. * xInterfaceToService = prvCheckInterfaces(); * * // The actual processing is to be deferred to a task. Request the * // vProcessInterface() callback function is executed, passing in the * // number of the interface that needs processing. The interface to * // service is passed in the second parameter. The first parameter is * // not used in this case. * xHigherPriorityTaskWoken = pdFALSE; * xTimerPendFunctionCallFromISR( vProcessInterface, NULL, ( uint32_t ) xInterfaceToService, &xHigherPriorityTaskWoken ); * * // If xHigherPriorityTaskWoken is now set to pdTRUE then a context * // switch should be requested. The macro used is port specific and will * // be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() - refer to * // the documentation page for the port being used. * portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); * * } * @endverbatim */ BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; /** * BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, * void *pvParameter1, * uint32_t ulParameter2, * TickType_t xTicksToWait ); * * * Used to defer the execution of a function to the RTOS daemon task (the timer * service task, hence this function is implemented in timers.c and is prefixed * with 'Timer'). * * @param xFunctionToPend The function to execute from the timer service/ * daemon task. The function must conform to the PendedFunction_t * prototype. * * @param pvParameter1 The value of the callback function's first parameter. * The parameter has a void * type to allow it to be used to pass any type. * For example, unsigned longs can be cast to a void *, or the void * can be * used to point to a structure. * * @param ulParameter2 The value of the callback function's second parameter. * * @param xTicksToWait Calling this function will result in a message being * sent to the timer daemon task on a queue. xTicksToWait is the amount of * time the calling task should remain in the Blocked state (so not using any * processing time) for space to become available on the timer queue if the * queue is found to be full. * * @return pdPASS is returned if the message was successfully sent to the * timer daemon task, otherwise pdFALSE is returned. * */ BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; /** * const char * const pcTimerGetName( TimerHandle_t xTimer ); * * Returns the name that was assigned to a timer when the timer was created. * * @param xTimer The handle of the timer being queried. * * @return The name assigned to the timer specified by the xTimer parameter. */ const char * pcTimerGetName( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /** * void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ); * * Updates a timer to be either an auto-reload timer, in which case the timer * automatically resets itself each time it expires, or a one-shot timer, in * which case the timer will only expire once unless it is manually restarted. * * @param xTimer The handle of the timer being updated. * * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will * expire repeatedly with a frequency set by the timer's period (see the * xTimerPeriodInTicks parameter of the xTimerCreate() API function). If * uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and * enter the dormant state after it expires. */ void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) PRIVILEGED_FUNCTION; /** * UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ); * * Queries a timer to determine if it is an auto-reload timer, in which case the timer * automatically resets itself each time it expires, or a one-shot timer, in * which case the timer will only expire once unless it is manually restarted. * * @param xTimer The handle of the timer being queried. * * @return If the timer is an auto-reload timer then pdTRUE is returned, otherwise * pdFALSE is returned. */ UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /** * TickType_t xTimerGetPeriod( TimerHandle_t xTimer ); * * Returns the period of a timer. * * @param xTimer The handle of the timer being queried. * * @return The period of the timer in ticks. */ TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /** * TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ); * * Returns the time in ticks at which the timer will expire. If this is less * than the current tick count then the expiry time has overflowed from the * current time. * * @param xTimer The handle of the timer being queried. * * @return If the timer is running then the time in ticks at which the timer * will next expire is returned. If the timer is not running then the return * value is undefined. */ TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /* * Functions beyond this part are not part of the public API and are intended * for use by the kernel only. */ BaseType_t xTimerCreateTimerTask( void ) PRIVILEGED_FUNCTION; BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; #if( configUSE_TRACE_FACILITY == 1 ) void vTimerSetTimerNumber( TimerHandle_t xTimer, UBaseType_t uxTimerNumber ) PRIVILEGED_FUNCTION; UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; #endif #ifdef __cplusplus } #endif #endif /* TIMERS_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/list.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #include #include "FreeRTOS.h" #include "list.h" /*----------------------------------------------------------- * PUBLIC LIST API documented in list.h *----------------------------------------------------------*/ void vListInitialise( List_t * const pxList ) { /* The list structure contains a list item which is used to mark the end of the list. To initialise the list the list end is inserted as the only list entry. */ pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ /* The list end value is the highest possible value in the list to ensure it remains at the end of the list. */ pxList->xListEnd.xItemValue = portMAX_DELAY; /* The list end next and previous pointers point to itself so we know when the list is empty. */ pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ pxList->uxNumberOfItems = ( UBaseType_t ) 0U; /* Write known values into the list if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ); listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ); } /*-----------------------------------------------------------*/ void vListInitialiseItem( ListItem_t * const pxItem ) { /* Make sure the list item is not recorded as being on a list. */ pxItem->pxContainer = NULL; /* Write known values into the list item if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ); listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ); } /*-----------------------------------------------------------*/ void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) { ListItem_t * const pxIndex = pxList->pxIndex; /* Only effective when configASSERT() is also defined, these tests may catch the list data structures being overwritten in memory. They will not catch data errors caused by incorrect configuration or use of FreeRTOS. */ listTEST_LIST_INTEGRITY( pxList ); listTEST_LIST_ITEM_INTEGRITY( pxNewListItem ); /* Insert a new list item into pxList, but rather than sort the list, makes the new list item the last item to be removed by a call to listGET_OWNER_OF_NEXT_ENTRY(). */ pxNewListItem->pxNext = pxIndex; pxNewListItem->pxPrevious = pxIndex->pxPrevious; /* Only used during decision coverage testing. */ mtCOVERAGE_TEST_DELAY(); pxIndex->pxPrevious->pxNext = pxNewListItem; pxIndex->pxPrevious = pxNewListItem; /* Remember which list the item is in. */ pxNewListItem->pxContainer = pxList; ( pxList->uxNumberOfItems )++; } /*-----------------------------------------------------------*/ void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) { ListItem_t *pxIterator; const TickType_t xValueOfInsertion = pxNewListItem->xItemValue; /* Only effective when configASSERT() is also defined, these tests may catch the list data structures being overwritten in memory. They will not catch data errors caused by incorrect configuration or use of FreeRTOS. */ listTEST_LIST_INTEGRITY( pxList ); listTEST_LIST_ITEM_INTEGRITY( pxNewListItem ); /* Insert the new list item into the list, sorted in xItemValue order. If the list already contains a list item with the same item value then the new list item should be placed after it. This ensures that TCBs which are stored in ready lists (all of which have the same xItemValue value) get a share of the CPU. However, if the xItemValue is the same as the back marker the iteration loop below will not end. Therefore the value is checked first, and the algorithm slightly modified if necessary. */ if( xValueOfInsertion == portMAX_DELAY ) { pxIterator = pxList->xListEnd.pxPrevious; } else { /* *** NOTE *********************************************************** If you find your application is crashing here then likely causes are listed below. In addition see https://www.freertos.org/FAQHelp.html for more tips, and ensure configASSERT() is defined! https://www.freertos.org/a00110.html#configASSERT 1) Stack overflow - see https://www.freertos.org/Stacks-and-stack-overflow-checking.html 2) Incorrect interrupt priority assignment, especially on Cortex-M parts where numerically high priority values denote low actual interrupt priorities, which can seem counter intuitive. See https://www.freertos.org/RTOS-Cortex-M3-M4.html and the definition of configMAX_SYSCALL_INTERRUPT_PRIORITY on https://www.freertos.org/a00110.html 3) Calling an API function from within a critical section or when the scheduler is suspended, or calling an API function that does not end in "FromISR" from an interrupt. 4) Using a queue or semaphore before it has been initialised or before the scheduler has been started (are interrupts firing before vTaskStartScheduler() has been called?). **********************************************************************/ for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */ { /* There is nothing to do here, just iterating to the wanted insertion position. */ } } pxNewListItem->pxNext = pxIterator->pxNext; pxNewListItem->pxNext->pxPrevious = pxNewListItem; pxNewListItem->pxPrevious = pxIterator; pxIterator->pxNext = pxNewListItem; /* Remember which list the item is in. This allows fast removal of the item later. */ pxNewListItem->pxContainer = pxList; ( pxList->uxNumberOfItems )++; } /*-----------------------------------------------------------*/ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) { /* The list item knows which list it is in. Obtain the list from the list item. */ List_t * const pxList = pxItemToRemove->pxContainer; pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious; pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext; /* Only used during decision coverage testing. */ mtCOVERAGE_TEST_DELAY(); /* Make sure the index is left pointing to a valid item. */ if( pxList->pxIndex == pxItemToRemove ) { pxList->pxIndex = pxItemToRemove->pxPrevious; } else { mtCOVERAGE_TEST_MARKER(); } pxItemToRemove->pxContainer = NULL; ( pxList->uxNumberOfItems )--; return pxList->uxNumberOfItems; } /*-----------------------------------------------------------*/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /*----------------------------------------------------------- * Implementation of functions defined in portable.h for the ARM CM4F port. *----------------------------------------------------------*/ /* Scheduler includes. */ #include "FreeRTOS.h" #include "task.h" #ifndef __VFP_FP__ #error This port can only be used when the project options are configured to enable hardware floating point support. #endif #ifndef configSYSTICK_CLOCK_HZ #define configSYSTICK_CLOCK_HZ configCPU_CLOCK_HZ /* Ensure the SysTick is clocked at the same frequency as the core. */ #define portNVIC_SYSTICK_CLK_BIT ( 1UL << 2UL ) #else /* The way the SysTick is clocked is not modified in case it is not the same as the core. */ #define portNVIC_SYSTICK_CLK_BIT ( 0 ) #endif /* Constants required to manipulate the core. Registers first... */ #define portNVIC_SYSTICK_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000e010 ) ) #define portNVIC_SYSTICK_LOAD_REG ( * ( ( volatile uint32_t * ) 0xe000e014 ) ) #define portNVIC_SYSTICK_CURRENT_VALUE_REG ( * ( ( volatile uint32_t * ) 0xe000e018 ) ) #define portNVIC_SYSPRI2_REG ( * ( ( volatile uint32_t * ) 0xe000ed20 ) ) /* ...then bits in the registers. */ #define portNVIC_SYSTICK_INT_BIT ( 1UL << 1UL ) #define portNVIC_SYSTICK_ENABLE_BIT ( 1UL << 0UL ) #define portNVIC_SYSTICK_COUNT_FLAG_BIT ( 1UL << 16UL ) #define portNVIC_PENDSVCLEAR_BIT ( 1UL << 27UL ) #define portNVIC_PEND_SYSTICK_CLEAR_BIT ( 1UL << 25UL ) /* Constants used to detect a Cortex-M7 r0p1 core, which should use the ARM_CM7 r0p1 port. */ #define portCPUID ( * ( ( volatile uint32_t * ) 0xE000ed00 ) ) #define portCORTEX_M7_r0p1_ID ( 0x410FC271UL ) #define portCORTEX_M7_r0p0_ID ( 0x410FC270UL ) #define portNVIC_PENDSV_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL ) #define portNVIC_SYSTICK_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL ) /* Constants required to check the validity of an interrupt priority. */ #define portFIRST_USER_INTERRUPT_NUMBER ( 16 ) #define portNVIC_IP_REGISTERS_OFFSET_16 ( 0xE000E3F0 ) #define portAIRCR_REG ( * ( ( volatile uint32_t * ) 0xE000ED0C ) ) #define portMAX_8_BIT_VALUE ( ( uint8_t ) 0xff ) #define portTOP_BIT_OF_BYTE ( ( uint8_t ) 0x80 ) #define portMAX_PRIGROUP_BITS ( ( uint8_t ) 7 ) #define portPRIORITY_GROUP_MASK ( 0x07UL << 8UL ) #define portPRIGROUP_SHIFT ( 8UL ) /* Masks off all bits but the VECTACTIVE bits in the ICSR register. */ #define portVECTACTIVE_MASK ( 0xFFUL ) /* Constants required to manipulate the VFP. */ #define portFPCCR ( ( volatile uint32_t * ) 0xe000ef34 ) /* Floating point context control register. */ #define portASPEN_AND_LSPEN_BITS ( 0x3UL << 30UL ) /* Constants required to set up the initial stack. */ #define portINITIAL_XPSR ( 0x01000000 ) #define portINITIAL_EXC_RETURN ( 0xfffffffd ) /* The systick is a 24-bit counter. */ #define portMAX_24_BIT_NUMBER ( 0xffffffUL ) /* For strict compliance with the Cortex-M spec the task start address should have bit-0 clear, as it is loaded into the PC on exit from an ISR. */ #define portSTART_ADDRESS_MASK ( ( StackType_t ) 0xfffffffeUL ) /* A fiddle factor to estimate the number of SysTick counts that would have occurred while the SysTick counter is stopped during tickless idle calculations. */ #define portMISSED_COUNTS_FACTOR ( 45UL ) /* Let the user override the pre-loading of the initial LR with the address of prvTaskExitError() in case it messes up unwinding of the stack in the debugger. */ #ifdef configTASK_RETURN_ADDRESS #define portTASK_RETURN_ADDRESS configTASK_RETURN_ADDRESS #else #define portTASK_RETURN_ADDRESS prvTaskExitError #endif /* * Setup the timer to generate the tick interrupts. The implementation in this * file is weak to allow application writers to change the timer used to * generate the tick interrupt. */ void vPortSetupTimerInterrupt( void ); /* * Exception handlers. */ void xPortPendSVHandler( void ) __attribute__ (( naked )); void xPortSysTickHandler( void ); void vPortSVCHandler( void ) __attribute__ (( naked )); /* * Start first task is a separate function so it can be tested in isolation. */ static void prvPortStartFirstTask( void ) __attribute__ (( naked )); /* * Function to enable the VFP. */ static void vPortEnableVFP( void ) __attribute__ (( naked )); /* * Used to catch tasks that attempt to return from their implementing function. */ static void prvTaskExitError( void ); /*-----------------------------------------------------------*/ /* Each task maintains its own interrupt status in the critical nesting variable. */ static UBaseType_t uxCriticalNesting = 0xaaaaaaaa; /* * The number of SysTick increments that make up one tick period. */ #if( configUSE_TICKLESS_IDLE == 1 ) static uint32_t ulTimerCountsForOneTick = 0; #endif /* configUSE_TICKLESS_IDLE */ /* * The maximum number of tick periods that can be suppressed is limited by the * 24 bit resolution of the SysTick timer. */ #if( configUSE_TICKLESS_IDLE == 1 ) static uint32_t xMaximumPossibleSuppressedTicks = 0; #endif /* configUSE_TICKLESS_IDLE */ /* * Compensate for the CPU cycles that pass while the SysTick is stopped (low * power functionality only. */ #if( configUSE_TICKLESS_IDLE == 1 ) static uint32_t ulStoppedTimerCompensation = 0; #endif /* configUSE_TICKLESS_IDLE */ /* * Used by the portASSERT_IF_INTERRUPT_PRIORITY_INVALID() macro to ensure * FreeRTOS API functions are not called from interrupts that have been assigned * a priority above configMAX_SYSCALL_INTERRUPT_PRIORITY. */ #if( configASSERT_DEFINED == 1 ) static uint8_t ucMaxSysCallPriority = 0; static uint32_t ulMaxPRIGROUPValue = 0; static const volatile uint8_t * const pcInterruptPriorityRegisters = ( const volatile uint8_t * const ) portNVIC_IP_REGISTERS_OFFSET_16; #endif /* configASSERT_DEFINED */ /*-----------------------------------------------------------*/ /* * See header file for description. */ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) { /* Simulate the stack frame as it would be created by a context switch interrupt. */ /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts, and to ensure alignment. */ pxTopOfStack--; *pxTopOfStack = portINITIAL_XPSR; /* xPSR */ pxTopOfStack--; *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */ pxTopOfStack--; *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */ /* Save code space by skipping register initialisation. */ pxTopOfStack -= 5; /* R12, R3, R2 and R1. */ *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ /* A save method is being used that requires each task to maintain its own exec return value. */ pxTopOfStack--; *pxTopOfStack = portINITIAL_EXC_RETURN; pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */ return pxTopOfStack; } /*-----------------------------------------------------------*/ static void prvTaskExitError( void ) { volatile uint32_t ulDummy = 0; /* A function that implements a task must not exit or attempt to return to its caller as there is nothing to return to. If a task wants to exit it should instead call vTaskDelete( NULL ). Artificially force an assert() to be triggered if configASSERT() is defined, then stop here so application writers can catch the error. */ configASSERT( uxCriticalNesting == ~0UL ); portDISABLE_INTERRUPTS(); while( ulDummy == 0 ) { /* This file calls prvTaskExitError() after the scheduler has been started to remove a compiler warning about the function being defined but never called. ulDummy is used purely to quieten other warnings about code appearing after this function is called - making ulDummy volatile makes the compiler think the function could return and therefore not output an 'unreachable code' warning for code that appears after it. */ } } /*-----------------------------------------------------------*/ void vPortSVCHandler( void ) { __asm volatile ( " ldr r3, pxCurrentTCBConst2 \n" /* Restore the context. */ " ldr r1, [r3] \n" /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */ " ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */ " ldmia r0!, {r4-r11, r14} \n" /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */ " msr psp, r0 \n" /* Restore the task stack pointer. */ " isb \n" " mov r0, #0 \n" " msr basepri, r0 \n" " bx r14 \n" " \n" " .align 4 \n" "pxCurrentTCBConst2: .word pxCurrentTCB \n" ); } /*-----------------------------------------------------------*/ static void prvPortStartFirstTask( void ) { /* Start the first task. This also clears the bit that indicates the FPU is in use in case the FPU was used before the scheduler was started - which would otherwise result in the unnecessary leaving of space in the SVC stack for lazy saving of FPU registers. */ __asm volatile( " ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */ " ldr r0, [r0] \n" " ldr r0, [r0] \n" " msr msp, r0 \n" /* Set the msp back to the start of the stack. */ " mov r0, #0 \n" /* Clear the bit that indicates the FPU is in use, see comment above. */ " msr control, r0 \n" " cpsie i \n" /* Globally enable interrupts. */ " cpsie f \n" " dsb \n" " isb \n" " svc 0 \n" /* System call to start first task. */ " nop \n" ); } /*-----------------------------------------------------------*/ /* * See header file for description. */ BaseType_t xPortStartScheduler( void ) { /* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0. See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */ configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY ); /* This port can be used on all revisions of the Cortex-M7 core other than the r0p1 parts. r0p1 parts should use the port from the /source/portable/GCC/ARM_CM7/r0p1 directory. */ configASSERT( portCPUID != portCORTEX_M7_r0p1_ID ); configASSERT( portCPUID != portCORTEX_M7_r0p0_ID ); #if( configASSERT_DEFINED == 1 ) { volatile uint32_t ulOriginalPriority; volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER ); volatile uint8_t ucMaxPriorityValue; /* Determine the maximum priority from which ISR safe FreeRTOS API functions can be called. ISR safe functions are those that end in "FromISR". FreeRTOS maintains separate thread and ISR API functions to ensure interrupt entry is as fast and simple as possible. Save the interrupt priority value that is about to be clobbered. */ ulOriginalPriority = *pucFirstUserPriorityRegister; /* Determine the number of priority bits available. First write to all possible bits. */ *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE; /* Read the value back to see how many bits stuck. */ ucMaxPriorityValue = *pucFirstUserPriorityRegister; /* Use the same mask on the maximum system call priority. */ ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue; /* Calculate the maximum acceptable priority group value for the number of bits read back. */ ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS; while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) { ulMaxPRIGROUPValue--; ucMaxPriorityValue <<= ( uint8_t ) 0x01; } #ifdef __NVIC_PRIO_BITS { /* Check the CMSIS configuration that defines the number of priority bits matches the number of priority bits actually queried from the hardware. */ configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == __NVIC_PRIO_BITS ); } #endif #ifdef configPRIO_BITS { /* Check the FreeRTOS configuration that defines the number of priority bits matches the number of priority bits actually queried from the hardware. */ configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS ); } #endif /* Shift the priority group value back to its position within the AIRCR register. */ ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT; ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK; /* Restore the clobbered interrupt priority register to its original value. */ *pucFirstUserPriorityRegister = ulOriginalPriority; } #endif /* conifgASSERT_DEFINED */ /* Make PendSV and SysTick the lowest priority interrupts. */ portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI; portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI; /* Start the timer that generates the tick ISR. Interrupts are disabled here already. */ vPortSetupTimerInterrupt(); /* Initialise the critical nesting count ready for the first task. */ uxCriticalNesting = 0; /* Ensure the VFP is enabled - it should be anyway. */ vPortEnableVFP(); /* Lazy save always. */ *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS; /* Start the first task. */ prvPortStartFirstTask(); /* Should never get here as the tasks will now be executing! Call the task exit error function to prevent compiler warnings about a static function not being called in the case that the application writer overrides this functionality by defining configTASK_RETURN_ADDRESS. Call vTaskSwitchContext() so link time optimisation does not remove the symbol. */ vTaskSwitchContext(); prvTaskExitError(); /* Should not get here! */ return 0; } /*-----------------------------------------------------------*/ void vPortEndScheduler( void ) { /* Not implemented in ports where there is nothing to return to. Artificially force an assert. */ configASSERT( uxCriticalNesting == 1000UL ); } /*-----------------------------------------------------------*/ void vPortEnterCritical( void ) { portDISABLE_INTERRUPTS(); uxCriticalNesting++; /* This is not the interrupt safe version of the enter critical function so assert() if it is being called from an interrupt context. Only API functions that end in "FromISR" can be used in an interrupt. Only assert if the critical nesting count is 1 to protect against recursive calls if the assert function also uses a critical section. */ if( uxCriticalNesting == 1 ) { configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 ); } } /*-----------------------------------------------------------*/ void vPortExitCritical( void ) { configASSERT( uxCriticalNesting ); uxCriticalNesting--; if( uxCriticalNesting == 0 ) { portENABLE_INTERRUPTS(); } } /*-----------------------------------------------------------*/ void xPortPendSVHandler( void ) { /* This is a naked function. */ __asm volatile ( " mrs r0, psp \n" " isb \n" " \n" " ldr r3, pxCurrentTCBConst \n" /* Get the location of the current TCB. */ " ldr r2, [r3] \n" " \n" " tst r14, #0x10 \n" /* Is the task using the FPU context? If so, push high vfp registers. */ " it eq \n" " vstmdbeq r0!, {s16-s31} \n" " \n" " stmdb r0!, {r4-r11, r14} \n" /* Save the core registers. */ " str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */ " \n" " stmdb sp!, {r0, r3} \n" " mov r0, %0 \n" " msr basepri, r0 \n" " dsb \n" " isb \n" " bl vTaskSwitchContext \n" " mov r0, #0 \n" " msr basepri, r0 \n" " ldmia sp!, {r0, r3} \n" " \n" " ldr r1, [r3] \n" /* The first item in pxCurrentTCB is the task top of stack. */ " ldr r0, [r1] \n" " \n" " ldmia r0!, {r4-r11, r14} \n" /* Pop the core registers. */ " \n" " tst r14, #0x10 \n" /* Is the task using the FPU context? If so, pop the high vfp registers too. */ " it eq \n" " vldmiaeq r0!, {s16-s31} \n" " \n" " msr psp, r0 \n" " isb \n" " \n" #ifdef WORKAROUND_PMU_CM001 /* XMC4000 specific errata workaround. */ #if WORKAROUND_PMU_CM001 == 1 " push { r14 } \n" " pop { pc } \n" #endif #endif " \n" " bx r14 \n" " \n" " .align 4 \n" "pxCurrentTCBConst: .word pxCurrentTCB \n" ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY) ); } /*-----------------------------------------------------------*/ void xPortSysTickHandler( void ) { /* The SysTick runs at the lowest interrupt priority, so when this interrupt executes all interrupts must be unmasked. There is therefore no need to save and then restore the interrupt mask value as its value is already known. */ portDISABLE_INTERRUPTS(); { /* Increment the RTOS tick. */ if( xTaskIncrementTick() != pdFALSE ) { /* A context switch is required. Context switching is performed in the PendSV interrupt. Pend the PendSV interrupt. */ portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; } } portENABLE_INTERRUPTS(); } /*-----------------------------------------------------------*/ #if( configUSE_TICKLESS_IDLE == 1 ) __attribute__((weak)) void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ) { uint32_t ulReloadValue, ulCompleteTickPeriods, ulCompletedSysTickDecrements; TickType_t xModifiableIdleTime; /* Make sure the SysTick reload value does not overflow the counter. */ if( xExpectedIdleTime > xMaximumPossibleSuppressedTicks ) { xExpectedIdleTime = xMaximumPossibleSuppressedTicks; } /* Stop the SysTick momentarily. The time the SysTick is stopped for is accounted for as best it can be, but using the tickless mode will inevitably result in some tiny drift of the time maintained by the kernel with respect to calendar time. */ portNVIC_SYSTICK_CTRL_REG &= ~portNVIC_SYSTICK_ENABLE_BIT; /* Calculate the reload value required to wait xExpectedIdleTime tick periods. -1 is used because this code will execute part way through one of the tick periods. */ ulReloadValue = portNVIC_SYSTICK_CURRENT_VALUE_REG + ( ulTimerCountsForOneTick * ( xExpectedIdleTime - 1UL ) ); if( ulReloadValue > ulStoppedTimerCompensation ) { ulReloadValue -= ulStoppedTimerCompensation; } /* Enter a critical section but don't use the taskENTER_CRITICAL() method as that will mask interrupts that should exit sleep mode. */ __asm volatile( "cpsid i" ::: "memory" ); __asm volatile( "dsb" ); __asm volatile( "isb" ); /* If a context switch is pending or a task is waiting for the scheduler to be unsuspended then abandon the low power entry. */ if( eTaskConfirmSleepModeStatus() == eAbortSleep ) { /* Restart from whatever is left in the count register to complete this tick period. */ portNVIC_SYSTICK_LOAD_REG = portNVIC_SYSTICK_CURRENT_VALUE_REG; /* Restart SysTick. */ portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; /* Reset the reload register to the value required for normal tick periods. */ portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL; /* Re-enable interrupts - see comments above the cpsid instruction() above. */ __asm volatile( "cpsie i" ::: "memory" ); } else { /* Set the new reload value. */ portNVIC_SYSTICK_LOAD_REG = ulReloadValue; /* Clear the SysTick count flag and set the count value back to zero. */ portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; /* Restart SysTick. */ portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; /* Sleep until something happens. configPRE_SLEEP_PROCESSING() can set its parameter to 0 to indicate that its implementation contains its own wait for interrupt or wait for event instruction, and so wfi should not be executed again. However, the original expected idle time variable must remain unmodified, so a copy is taken. */ xModifiableIdleTime = xExpectedIdleTime; configPRE_SLEEP_PROCESSING( xModifiableIdleTime ); if( xModifiableIdleTime > 0 ) { __asm volatile( "dsb" ::: "memory" ); __asm volatile( "wfi" ); __asm volatile( "isb" ); } configPOST_SLEEP_PROCESSING( xExpectedIdleTime ); /* Re-enable interrupts to allow the interrupt that brought the MCU out of sleep mode to execute immediately. see comments above __disable_interrupt() call above. */ __asm volatile( "cpsie i" ::: "memory" ); __asm volatile( "dsb" ); __asm volatile( "isb" ); /* Disable interrupts again because the clock is about to be stopped and interrupts that execute while the clock is stopped will increase any slippage between the time maintained by the RTOS and calendar time. */ __asm volatile( "cpsid i" ::: "memory" ); __asm volatile( "dsb" ); __asm volatile( "isb" ); /* Disable the SysTick clock without reading the portNVIC_SYSTICK_CTRL_REG register to ensure the portNVIC_SYSTICK_COUNT_FLAG_BIT is not cleared if it is set. Again, the time the SysTick is stopped for is accounted for as best it can be, but using the tickless mode will inevitably result in some tiny drift of the time maintained by the kernel with respect to calendar time*/ portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT ); /* Determine if the SysTick clock has already counted to zero and been set back to the current reload value (the reload back being correct for the entire expected idle time) or if the SysTick is yet to count to zero (in which case an interrupt other than the SysTick must have brought the system out of sleep mode). */ if( ( portNVIC_SYSTICK_CTRL_REG & portNVIC_SYSTICK_COUNT_FLAG_BIT ) != 0 ) { uint32_t ulCalculatedLoadValue; /* The tick interrupt is already pending, and the SysTick count reloaded with ulReloadValue. Reset the portNVIC_SYSTICK_LOAD_REG with whatever remains of this tick period. */ ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL ) - ( ulReloadValue - portNVIC_SYSTICK_CURRENT_VALUE_REG ); /* Don't allow a tiny value, or values that have somehow underflowed because the post sleep hook did something that took too long. */ if( ( ulCalculatedLoadValue < ulStoppedTimerCompensation ) || ( ulCalculatedLoadValue > ulTimerCountsForOneTick ) ) { ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL ); } portNVIC_SYSTICK_LOAD_REG = ulCalculatedLoadValue; /* As the pending tick will be processed as soon as this function exits, the tick value maintained by the tick is stepped forward by one less than the time spent waiting. */ ulCompleteTickPeriods = xExpectedIdleTime - 1UL; } else { /* Something other than the tick interrupt ended the sleep. Work out how long the sleep lasted rounded to complete tick periods (not the ulReload value which accounted for part ticks). */ ulCompletedSysTickDecrements = ( xExpectedIdleTime * ulTimerCountsForOneTick ) - portNVIC_SYSTICK_CURRENT_VALUE_REG; /* How many complete tick periods passed while the processor was waiting? */ ulCompleteTickPeriods = ulCompletedSysTickDecrements / ulTimerCountsForOneTick; /* The reload value is set to whatever fraction of a single tick period remains. */ portNVIC_SYSTICK_LOAD_REG = ( ( ulCompleteTickPeriods + 1UL ) * ulTimerCountsForOneTick ) - ulCompletedSysTickDecrements; } /* Restart SysTick so it runs from portNVIC_SYSTICK_LOAD_REG again, then set portNVIC_SYSTICK_LOAD_REG back to its standard value. */ portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; vTaskStepTick( ulCompleteTickPeriods ); portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL; /* Exit with interrupts enabled. */ __asm volatile( "cpsie i" ::: "memory" ); } } #endif /* #if configUSE_TICKLESS_IDLE */ /*-----------------------------------------------------------*/ /* * Setup the systick timer to generate the tick interrupts at the required * frequency. */ __attribute__(( weak )) void vPortSetupTimerInterrupt( void ) { /* Calculate the constants required to configure the tick interrupt. */ #if( configUSE_TICKLESS_IDLE == 1 ) { ulTimerCountsForOneTick = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ); xMaximumPossibleSuppressedTicks = portMAX_24_BIT_NUMBER / ulTimerCountsForOneTick; ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ ); } #endif /* configUSE_TICKLESS_IDLE */ /* Stop and clear the SysTick. */ portNVIC_SYSTICK_CTRL_REG = 0UL; portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; /* Configure SysTick to interrupt at the requested rate. */ portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL; portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT ); } /*-----------------------------------------------------------*/ /* This is a naked function. */ static void vPortEnableVFP( void ) { __asm volatile ( " ldr.w r0, =0xE000ED88 \n" /* The FPU enable bits are in the CPACR. */ " ldr r1, [r0] \n" " \n" " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */ " str r1, [r0] \n" " bx r14 " ); } /*-----------------------------------------------------------*/ #if( configASSERT_DEFINED == 1 ) void vPortValidateInterruptPriority( void ) { uint32_t ulCurrentInterrupt; uint8_t ucCurrentPriority; /* Obtain the number of the currently executing interrupt. */ __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); /* Is the interrupt number a user defined interrupt? */ if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) { /* Look up the interrupt's priority. */ ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ]; /* The following assertion will fail if a service routine (ISR) for an interrupt that has been assigned a priority above configMAX_SYSCALL_INTERRUPT_PRIORITY calls an ISR safe FreeRTOS API function. ISR safe FreeRTOS API functions must *only* be called from interrupts that have been assigned a priority at or below configMAX_SYSCALL_INTERRUPT_PRIORITY. Numerically low interrupt priority numbers represent logically high interrupt priorities, therefore the priority of the interrupt must be set to a value equal to or numerically *higher* than configMAX_SYSCALL_INTERRUPT_PRIORITY. Interrupts that use the FreeRTOS API must not be left at their default priority of zero as that is the highest possible priority, which is guaranteed to be above configMAX_SYSCALL_INTERRUPT_PRIORITY, and therefore also guaranteed to be invalid. FreeRTOS maintains separate thread and ISR API functions to ensure interrupt entry is as fast and simple as possible. The following links provide detailed information: http://www.freertos.org/RTOS-Cortex-M3-M4.html http://www.freertos.org/FAQHelp.html */ configASSERT( ucCurrentPriority >= ucMaxSysCallPriority ); } /* Priority grouping: The interrupt controller (NVIC) allows the bits that define each interrupt's priority to be split between bits that define the interrupt's pre-emption priority bits and bits that define the interrupt's sub-priority. For simplicity all bits must be defined to be pre-emption priority bits. The following assertion will fail if this is not the case (if some bits represent a sub-priority). If the application only uses CMSIS libraries for interrupt configuration then the correct setting can be achieved on all Cortex-M devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the scheduler. Note however that some vendor specific peripheral libraries assume a non-zero priority group setting, in which cases using a value of zero will result in unpredictable behaviour. */ configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue ); } #endif /* configASSERT_DEFINED */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #ifndef PORTMACRO_H #define PORTMACRO_H #ifdef __cplusplus extern "C" { #endif /*----------------------------------------------------------- * Port specific definitions. * * The settings in this file configure FreeRTOS correctly for the * given hardware and compiler. * * These settings should not be altered. *----------------------------------------------------------- */ /* Type definitions. */ #define portCHAR char #define portFLOAT float #define portDOUBLE double #define portLONG long #define portSHORT short #define portSTACK_TYPE uint32_t #define portBASE_TYPE long typedef portSTACK_TYPE StackType_t; typedef long BaseType_t; typedef unsigned long UBaseType_t; #if( configUSE_16_BIT_TICKS == 1 ) typedef uint16_t TickType_t; #define portMAX_DELAY ( TickType_t ) 0xffff #else typedef uint32_t TickType_t; #define portMAX_DELAY ( TickType_t ) 0xffffffffUL /* 32-bit tick type on a 32-bit architecture, so reads of the tick count do not need to be guarded with a critical section. */ #define portTICK_TYPE_IS_ATOMIC 1 #endif /*-----------------------------------------------------------*/ /* Architecture specifics. */ #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 /*-----------------------------------------------------------*/ /* Scheduler utilities. */ #define portYIELD() \ { \ /* Set a PendSV to request a context switch. */ \ portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; \ \ /* Barriers are normally not required but do ensure the code is completely \ within the specified behaviour for the architecture. */ \ __asm volatile( "dsb" ::: "memory" ); \ __asm volatile( "isb" ); \ } #define portNVIC_INT_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000ed04 ) ) #define portNVIC_PENDSVSET_BIT ( 1UL << 28UL ) #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) portYIELD() #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) /*-----------------------------------------------------------*/ /* Critical section management. */ extern void vPortEnterCritical( void ); extern void vPortExitCritical( void ); #define portSET_INTERRUPT_MASK_FROM_ISR() ulPortRaiseBASEPRI() #define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) vPortSetBASEPRI(x) #define portDISABLE_INTERRUPTS() vPortRaiseBASEPRI() #define portENABLE_INTERRUPTS() vPortSetBASEPRI(0) #define portENTER_CRITICAL() vPortEnterCritical() #define portEXIT_CRITICAL() vPortExitCritical() /*-----------------------------------------------------------*/ /* Task function macros as described on the FreeRTOS.org WEB site. These are not necessary for to use this port. They are defined so the common demo files (which build with all the ports) will build. */ #define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters ) #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters ) /*-----------------------------------------------------------*/ /* Tickless idle/low power functionality. */ #ifndef portSUPPRESS_TICKS_AND_SLEEP extern void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ); #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) vPortSuppressTicksAndSleep( xExpectedIdleTime ) #endif /*-----------------------------------------------------------*/ /* Architecture specific optimisations. */ #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 #endif #if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1 /* Generic helper function. */ __attribute__( ( always_inline ) ) static inline uint8_t ucPortCountLeadingZeros( uint32_t ulBitmap ) { uint8_t ucReturn; __asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" ); return ucReturn; } /* Check the configuration. */ #if( configMAX_PRIORITIES > 32 ) #error configUSE_PORT_OPTIMISED_TASK_SELECTION can only be set to 1 when configMAX_PRIORITIES is less than or equal to 32. It is very rare that a system requires more than 10 to 15 difference priorities as tasks that share a priority will time slice. #endif /* Store/clear the ready priorities in a bit map. */ #define portRECORD_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) ) #define portRESET_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) ) /*-----------------------------------------------------------*/ #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31UL - ( uint32_t ) ucPortCountLeadingZeros( ( uxReadyPriorities ) ) ) #endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ /*-----------------------------------------------------------*/ #ifdef configASSERT void vPortValidateInterruptPriority( void ); #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority() #endif /* portNOP() is not required by this port. */ #define portNOP() #define portINLINE __inline #ifndef portFORCE_INLINE #define portFORCE_INLINE inline __attribute__(( always_inline)) #endif portFORCE_INLINE static BaseType_t xPortIsInsideInterrupt( void ) { uint32_t ulCurrentInterrupt; BaseType_t xReturn; /* Obtain the number of the currently executing interrupt. */ __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); if( ulCurrentInterrupt == 0 ) { xReturn = pdFALSE; } else { xReturn = pdTRUE; } return xReturn; } /*-----------------------------------------------------------*/ portFORCE_INLINE static void vPortRaiseBASEPRI( void ) { uint32_t ulNewBASEPRI; __asm volatile ( " mov %0, %1 \n" \ " msr basepri, %0 \n" \ " isb \n" \ " dsb \n" \ :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory" ); } /*-----------------------------------------------------------*/ portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void ) { uint32_t ulOriginalBASEPRI, ulNewBASEPRI; __asm volatile ( " mrs %0, basepri \n" \ " mov %1, %2 \n" \ " msr basepri, %1 \n" \ " isb \n" \ " dsb \n" \ :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory" ); /* This return will not be reached but is necessary to prevent compiler warnings. */ return ulOriginalBASEPRI; } /*-----------------------------------------------------------*/ portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue ) { __asm volatile ( " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory" ); } /*-----------------------------------------------------------*/ #define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) #ifdef __cplusplus } #endif #endif /* PORTMACRO_H */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * A sample implementation of pvPortMalloc() and vPortFree() that combines * (coalescences) adjacent memory blocks as they are freed, and in so doing * limits memory fragmentation. * * See heap_1.c, heap_2.c and heap_3.c for alternative implementations, and the * memory management pages of http://www.FreeRTOS.org for more information. */ #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE #include "FreeRTOS.h" #include "task.h" #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE #if( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) #error This file must not be used if configSUPPORT_DYNAMIC_ALLOCATION is 0 #endif /* Block sizes must not get too small. */ #define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) /* Assumes 8bit bytes! */ #define heapBITS_PER_BYTE ( ( size_t ) 8 ) /* Allocate the memory for the heap. */ #if( configAPPLICATION_ALLOCATED_HEAP == 1 ) /* The application writer has already defined the array used for the RTOS heap - probably so it can be placed in a special segment or address. */ extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ]; #else static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ]; #endif /* configAPPLICATION_ALLOCATED_HEAP */ /* Define the linked list structure. This is used to link free blocks in order of their memory address. */ typedef struct A_BLOCK_LINK { struct A_BLOCK_LINK *pxNextFreeBlock; /*<< The next free block in the list. */ size_t xBlockSize; /*<< The size of the free block. */ } BlockLink_t; /*-----------------------------------------------------------*/ /* * Inserts a block of memory that is being freed into the correct position in * the list of free memory blocks. The block being freed will be merged with * the block in front it and/or the block behind it if the memory blocks are * adjacent to each other. */ static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ); /* * Called automatically to setup the required heap structures the first time * pvPortMalloc() is called. */ static void prvHeapInit( void ); /*-----------------------------------------------------------*/ /* The size of the structure placed at the beginning of each allocated memory block must by correctly byte aligned. */ static const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); /* Create a couple of list links to mark the start and end of the list. */ static BlockLink_t xStart, *pxEnd = NULL; /* Keeps track of the number of calls to allocate and free memory as well as the number of free bytes remaining, but says nothing about fragmentation. */ static size_t xFreeBytesRemaining = 0U; static size_t xMinimumEverFreeBytesRemaining = 0U; static size_t xNumberOfSuccessfulAllocations = 0; static size_t xNumberOfSuccessfulFrees = 0; /* Gets set to the top bit of an size_t type. When this bit in the xBlockSize member of an BlockLink_t structure is set then the block belongs to the application. When the bit is free the block is still part of the free heap space. */ static size_t xBlockAllocatedBit = 0; /*-----------------------------------------------------------*/ void *pvPortMalloc( size_t xWantedSize ) { BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink; void *pvReturn = NULL; vTaskSuspendAll(); { /* If this is the first call to malloc then the heap will require initialisation to setup the list of free blocks. */ if( pxEnd == NULL ) { prvHeapInit(); } else { mtCOVERAGE_TEST_MARKER(); } /* Check the requested block size is not so large that the top bit is set. The top bit of the block size member of the BlockLink_t structure is used to determine who owns the block - the application or the kernel, so it must be free. */ if( ( xWantedSize & xBlockAllocatedBit ) == 0 ) { /* The wanted size is increased so it can contain a BlockLink_t structure in addition to the requested amount of bytes. */ if( xWantedSize > 0 ) { xWantedSize += xHeapStructSize; /* Ensure that blocks are always aligned to the required number of bytes. */ if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) { /* Byte alignment required. */ xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ); configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 ); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) ) { /* Traverse the list from the start (lowest address) block until one of adequate size is found. */ pxPreviousBlock = &xStart; pxBlock = xStart.pxNextFreeBlock; while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) { pxPreviousBlock = pxBlock; pxBlock = pxBlock->pxNextFreeBlock; } /* If the end marker was reached then a block of adequate size was not found. */ if( pxBlock != pxEnd ) { /* Return the memory space pointed to - jumping over the BlockLink_t structure at its start. */ pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize ); /* This block is being returned for use so must be taken out of the list of free blocks. */ pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; /* If the block is larger than required it can be split into two. */ if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) { /* This block is to be split into two. Create a new block following the number of bytes requested. The void cast is used to prevent byte alignment warnings from the compiler. */ pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize ); configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 ); /* Calculate the sizes of two blocks split from the single block. */ pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; pxBlock->xBlockSize = xWantedSize; /* Insert the new block into the list of free blocks. */ prvInsertBlockIntoFreeList( pxNewBlockLink ); } else { mtCOVERAGE_TEST_MARKER(); } xFreeBytesRemaining -= pxBlock->xBlockSize; if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining ) { xMinimumEverFreeBytesRemaining = xFreeBytesRemaining; } else { mtCOVERAGE_TEST_MARKER(); } /* The block is being returned - it is allocated and owned by the application and has no "next" block. */ pxBlock->xBlockSize |= xBlockAllocatedBit; pxBlock->pxNextFreeBlock = NULL; xNumberOfSuccessfulAllocations++; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } traceMALLOC( pvReturn, xWantedSize ); } ( void ) xTaskResumeAll(); #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { if( pvReturn == NULL ) { extern void vApplicationMallocFailedHook( void ); vApplicationMallocFailedHook(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 ); return pvReturn; } /*-----------------------------------------------------------*/ void vPortFree( void *pv ) { uint8_t *puc = ( uint8_t * ) pv; BlockLink_t *pxLink; if( pv != NULL ) { /* The memory being freed will have an BlockLink_t structure immediately before it. */ puc -= xHeapStructSize; /* This casting is to keep the compiler from issuing warnings. */ pxLink = ( void * ) puc; /* Check the block is actually allocated. */ configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ); configASSERT( pxLink->pxNextFreeBlock == NULL ); if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ) { if( pxLink->pxNextFreeBlock == NULL ) { /* The block is being returned to the heap - it is no longer allocated. */ pxLink->xBlockSize &= ~xBlockAllocatedBit; vTaskSuspendAll(); { /* Add this block to the list of free blocks. */ xFreeBytesRemaining += pxLink->xBlockSize; traceFREE( pv, pxLink->xBlockSize ); prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); xNumberOfSuccessfulFrees++; } ( void ) xTaskResumeAll(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } } /*-----------------------------------------------------------*/ size_t xPortGetFreeHeapSize( void ) { return xFreeBytesRemaining; } /*-----------------------------------------------------------*/ size_t xPortGetMinimumEverFreeHeapSize( void ) { return xMinimumEverFreeBytesRemaining; } /*-----------------------------------------------------------*/ void vPortInitialiseBlocks( void ) { /* This just exists to keep the linker quiet. */ } /*-----------------------------------------------------------*/ static void prvHeapInit( void ) { BlockLink_t *pxFirstFreeBlock; uint8_t *pucAlignedHeap; size_t uxAddress; size_t xTotalHeapSize = configTOTAL_HEAP_SIZE; /* Ensure the heap starts on a correctly aligned boundary. */ uxAddress = ( size_t ) ucHeap; if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 ) { uxAddress += ( portBYTE_ALIGNMENT - 1 ); uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); xTotalHeapSize -= uxAddress - ( size_t ) ucHeap; } pucAlignedHeap = ( uint8_t * ) uxAddress; /* xStart is used to hold a pointer to the first item in the list of free blocks. The void cast is used to prevent compiler warnings. */ xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap; xStart.xBlockSize = ( size_t ) 0; /* pxEnd is used to mark the end of the list of free blocks and is inserted at the end of the heap space. */ uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize; uxAddress -= xHeapStructSize; uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); pxEnd = ( void * ) uxAddress; pxEnd->xBlockSize = 0; pxEnd->pxNextFreeBlock = NULL; /* To start with there is a single free block that is sized to take up the entire heap space, minus the space taken by pxEnd. */ pxFirstFreeBlock = ( void * ) pucAlignedHeap; pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock; pxFirstFreeBlock->pxNextFreeBlock = pxEnd; /* Only one block exists - and it covers the entire usable heap space. */ xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; /* Work out the position of the top bit in a size_t variable. */ xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ); } /*-----------------------------------------------------------*/ static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ) { BlockLink_t *pxIterator; uint8_t *puc; /* Iterate through the list until a block is found that has a higher address than the block being inserted. */ for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock ) { /* Nothing to do here, just iterate to the right position. */ } /* Do the block being inserted, and the block it is being inserted after make a contiguous block of memory? */ puc = ( uint8_t * ) pxIterator; if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) { pxIterator->xBlockSize += pxBlockToInsert->xBlockSize; pxBlockToInsert = pxIterator; } else { mtCOVERAGE_TEST_MARKER(); } /* Do the block being inserted, and the block it is being inserted before make a contiguous block of memory? */ puc = ( uint8_t * ) pxBlockToInsert; if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock ) { if( pxIterator->pxNextFreeBlock != pxEnd ) { /* Form one big block from the two blocks. */ pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize; pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock; } else { pxBlockToInsert->pxNextFreeBlock = pxEnd; } } else { pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock; } /* If the block being inserted plugged a gab, so was merged with the block before and the block after, then it's pxNextFreeBlock pointer will have already been set, and should not be set here as that would make it point to itself. */ if( pxIterator != pxBlockToInsert ) { pxIterator->pxNextFreeBlock = pxBlockToInsert; } else { mtCOVERAGE_TEST_MARKER(); } } /*-----------------------------------------------------------*/ void vPortGetHeapStats( HeapStats_t *pxHeapStats ) { BlockLink_t *pxBlock; size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY used as a portable way of getting the maximum value. */ vTaskSuspendAll(); { pxBlock = xStart.pxNextFreeBlock; /* pxBlock will be NULL if the heap has not been initialised. The heap is initialised automatically when the first allocation is made. */ if( pxBlock != NULL ) { do { /* Increment the number of blocks and record the largest block seen so far. */ xBlocks++; if( pxBlock->xBlockSize > xMaxSize ) { xMaxSize = pxBlock->xBlockSize; } if( pxBlock->xBlockSize < xMinSize ) { xMinSize = pxBlock->xBlockSize; } /* Move to the next block in the chain until the last block is reached. */ pxBlock = pxBlock->pxNextFreeBlock; } while( pxBlock != pxEnd ); } } xTaskResumeAll(); pxHeapStats->xSizeOfLargestFreeBlockInBytes = xMaxSize; pxHeapStats->xSizeOfSmallestFreeBlockInBytes = xMinSize; pxHeapStats->xNumberOfFreeBlocks = xBlocks; taskENTER_CRITICAL(); { pxHeapStats->xAvailableHeapSpaceInBytes = xFreeBytesRemaining; pxHeapStats->xNumberOfSuccessfulAllocations = xNumberOfSuccessfulAllocations; pxHeapStats->xNumberOfSuccessfulFrees = xNumberOfSuccessfulFrees; pxHeapStats->xMinimumEverFreeBytesRemaining = xMinimumEverFreeBytesRemaining; } taskEXIT_CRITICAL(); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/queue.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ #include #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE #include "FreeRTOS.h" #include "task.h" #include "queue.h" #if ( configUSE_CO_ROUTINES == 1 ) #include "croutine.h" #endif /* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the header files above, but not in this file, in order to generate the correct privileged Vs unprivileged linkage and placement. */ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ /* Constants used with the cRxLock and cTxLock structure members. */ #define queueUNLOCKED ( ( int8_t ) -1 ) #define queueLOCKED_UNMODIFIED ( ( int8_t ) 0 ) /* When the Queue_t structure is used to represent a base queue its pcHead and pcTail members are used as pointers into the queue storage area. When the Queue_t structure is used to represent a mutex pcHead and pcTail pointers are not necessary, and the pcHead pointer is set to NULL to indicate that the structure instead holds a pointer to the mutex holder (if any). Map alternative names to the pcHead and structure member to ensure the readability of the code is maintained. The QueuePointers_t and SemaphoreData_t types are used to form a union as their usage is mutually exclusive dependent on what the queue is being used for. */ #define uxQueueType pcHead #define queueQUEUE_IS_MUTEX NULL typedef struct QueuePointers { int8_t *pcTail; /*< Points to the byte at the end of the queue storage area. Once more byte is allocated than necessary to store the queue items, this is used as a marker. */ int8_t *pcReadFrom; /*< Points to the last place that a queued item was read from when the structure is used as a queue. */ } QueuePointers_t; typedef struct SemaphoreData { TaskHandle_t xMutexHolder; /*< The handle of the task that holds the mutex. */ UBaseType_t uxRecursiveCallCount;/*< Maintains a count of the number of times a recursive mutex has been recursively 'taken' when the structure is used as a mutex. */ } SemaphoreData_t; /* Semaphores do not actually store or copy data, so have an item size of zero. */ #define queueSEMAPHORE_QUEUE_ITEM_LENGTH ( ( UBaseType_t ) 0 ) #define queueMUTEX_GIVE_BLOCK_TIME ( ( TickType_t ) 0U ) #if( configUSE_PREEMPTION == 0 ) /* If the cooperative scheduler is being used then a yield should not be performed just because a higher priority task has been woken. */ #define queueYIELD_IF_USING_PREEMPTION() #else #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API() #endif /* * Definition of the queue used by the scheduler. * Items are queued by copy, not reference. See the following link for the * rationale: https://www.freertos.org/Embedded-RTOS-Queues.html */ typedef struct QueueDefinition /* The old naming convention is used to prevent breaking kernel aware debuggers. */ { int8_t *pcHead; /*< Points to the beginning of the queue storage area. */ int8_t *pcWriteTo; /*< Points to the free next place in the storage area. */ union { QueuePointers_t xQueue; /*< Data required exclusively when this structure is used as a queue. */ SemaphoreData_t xSemaphore; /*< Data required exclusively when this structure is used as a semaphore. */ } u; List_t xTasksWaitingToSend; /*< List of tasks that are blocked waiting to post onto this queue. Stored in priority order. */ List_t xTasksWaitingToReceive; /*< List of tasks that are blocked waiting to read from this queue. Stored in priority order. */ volatile UBaseType_t uxMessagesWaiting;/*< The number of items currently in the queue. */ UBaseType_t uxLength; /*< The length of the queue defined as the number of items it will hold, not the number of bytes. */ UBaseType_t uxItemSize; /*< The size of each items that the queue will hold. */ volatile int8_t cRxLock; /*< Stores the number of items received from the queue (removed from the queue) while the queue was locked. Set to queueUNLOCKED when the queue is not locked. */ volatile int8_t cTxLock; /*< Stores the number of items transmitted to the queue (added to the queue) while the queue was locked. Set to queueUNLOCKED when the queue is not locked. */ #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the memory used by the queue was statically allocated to ensure no attempt is made to free the memory. */ #endif #if ( configUSE_QUEUE_SETS == 1 ) struct QueueDefinition *pxQueueSetContainer; #endif #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxQueueNumber; uint8_t ucQueueType; #endif } xQUEUE; /* The old xQUEUE name is maintained above then typedefed to the new Queue_t name below to enable the use of older kernel aware debuggers. */ typedef xQUEUE Queue_t; /*-----------------------------------------------------------*/ /* * The queue registry is just a means for kernel aware debuggers to locate * queue structures. It has no other purpose so is an optional component. */ #if ( configQUEUE_REGISTRY_SIZE > 0 ) /* The type stored within the queue registry array. This allows a name to be assigned to each queue making kernel aware debugging a little more user friendly. */ typedef struct QUEUE_REGISTRY_ITEM { const char *pcQueueName; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ QueueHandle_t xHandle; } xQueueRegistryItem; /* The old xQueueRegistryItem name is maintained above then typedefed to the new xQueueRegistryItem name below to enable the use of older kernel aware debuggers. */ typedef xQueueRegistryItem QueueRegistryItem_t; /* The queue registry is simply an array of QueueRegistryItem_t structures. The pcQueueName member of a structure being NULL is indicative of the array position being vacant. */ PRIVILEGED_DATA QueueRegistryItem_t xQueueRegistry[ configQUEUE_REGISTRY_SIZE ]; #endif /* configQUEUE_REGISTRY_SIZE */ /* * Unlocks a queue locked by a call to prvLockQueue. Locking a queue does not * prevent an ISR from adding or removing items to the queue, but does prevent * an ISR from removing tasks from the queue event lists. If an ISR finds a * queue is locked it will instead increment the appropriate queue lock count * to indicate that a task may require unblocking. When the queue in unlocked * these lock counts are inspected, and the appropriate action taken. */ static void prvUnlockQueue( Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; /* * Uses a critical section to determine if there is any data in a queue. * * @return pdTRUE if the queue contains no items, otherwise pdFALSE. */ static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) PRIVILEGED_FUNCTION; /* * Uses a critical section to determine if there is any space in a queue. * * @return pdTRUE if there is no space, otherwise pdFALSE; */ static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) PRIVILEGED_FUNCTION; /* * Copies an item into the queue, either at the front of the queue or the * back of the queue. */ static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) PRIVILEGED_FUNCTION; /* * Copies an item out of a queue. */ static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) PRIVILEGED_FUNCTION; #if ( configUSE_QUEUE_SETS == 1 ) /* * Checks to see if a queue is a member of a queue set, and if so, notifies * the queue set that the queue contains data. */ static BaseType_t prvNotifyQueueSetContainer( const Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; #endif /* * Called after a Queue_t structure has been allocated either statically or * dynamically to fill in the structure's members. */ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) PRIVILEGED_FUNCTION; /* * Mutexes are a special type of queue. When a mutex is created, first the * queue is created, then prvInitialiseMutex() is called to configure the queue * as a mutex. */ #if( configUSE_MUTEXES == 1 ) static void prvInitialiseMutex( Queue_t *pxNewQueue ) PRIVILEGED_FUNCTION; #endif #if( configUSE_MUTEXES == 1 ) /* * If a task waiting for a mutex causes the mutex holder to inherit a * priority, but the waiting task times out, then the holder should * disinherit the priority - but only down to the highest priority of any * other tasks that are waiting for the same mutex. This function returns * that priority. */ static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; #endif /*-----------------------------------------------------------*/ /* * Macro to mark a queue as locked. Locking a queue prevents an ISR from * accessing the queue event lists. */ #define prvLockQueue( pxQueue ) \ taskENTER_CRITICAL(); \ { \ if( ( pxQueue )->cRxLock == queueUNLOCKED ) \ { \ ( pxQueue )->cRxLock = queueLOCKED_UNMODIFIED; \ } \ if( ( pxQueue )->cTxLock == queueUNLOCKED ) \ { \ ( pxQueue )->cTxLock = queueLOCKED_UNMODIFIED; \ } \ } \ taskEXIT_CRITICAL() /*-----------------------------------------------------------*/ BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) { Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); taskENTER_CRITICAL(); { pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U; pxQueue->pcWriteTo = pxQueue->pcHead; pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ pxQueue->cRxLock = queueUNLOCKED; pxQueue->cTxLock = queueUNLOCKED; if( xNewQueue == pdFALSE ) { /* If there are tasks blocked waiting to read from the queue, then the tasks will remain blocked as after this function exits the queue will still be empty. If there are tasks blocked waiting to write to the queue, then one should be unblocked as after this function exits it will be possible to write to it. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { /* Ensure the event queues start in the correct state. */ vListInitialise( &( pxQueue->xTasksWaitingToSend ) ); vListInitialise( &( pxQueue->xTasksWaitingToReceive ) ); } } taskEXIT_CRITICAL(); /* A value is returned for calling semantic consistency with previous versions. */ return pdPASS; } /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) { Queue_t *pxNewQueue; configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); /* The StaticQueue_t structure and the queue storage area must be supplied. */ configASSERT( pxStaticQueue != NULL ); /* A queue storage area should be provided if the item size is not 0, and should not be provided if the item size is 0. */ configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) ); configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) ); #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticQueue_t or StaticSemaphore_t equals the size of the real queue and semaphore structures. */ volatile size_t xSize = sizeof( StaticQueue_t ); configASSERT( xSize == sizeof( Queue_t ) ); ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ } #endif /* configASSERT_DEFINED */ /* The address of a statically allocated queue was passed in, use it. The address of a statically allocated storage area was also passed in but is already set. */ pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */ if( pxNewQueue != NULL ) { #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) { /* Queues can be allocated wither statically or dynamically, so note this queue was allocated statically in case the queue is later deleted. */ pxNewQueue->ucStaticallyAllocated = pdTRUE; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } else { traceQUEUE_CREATE_FAILED( ucQueueType ); mtCOVERAGE_TEST_MARKER(); } return pxNewQueue; } #endif /* configSUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) { Queue_t *pxNewQueue; size_t xQueueSizeInBytes; uint8_t *pucQueueStorage; configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); /* Allocate enough space to hold the maximum number of items that can be in the queue at any time. It is valid for uxItemSize to be zero in the case the queue is used as a semaphore. */ xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ /* Allocate the queue and storage area. Justification for MISRA deviation as follows: pvPortMalloc() always ensures returned memory blocks are aligned per the requirements of the MCU stack. In this case pvPortMalloc() must return a pointer that is guaranteed to meet the alignment requirements of the Queue_t structure - which in this case is an int8_t *. Therefore, whenever the stack alignment requirements are greater than or equal to the pointer to char requirements the cast is safe. In other cases alignment requirements are not strict (one or two bytes). */ pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */ if( pxNewQueue != NULL ) { /* Jump past the queue structure to find the location of the queue storage area. */ pucQueueStorage = ( uint8_t * ) pxNewQueue; pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { /* Queues can be created either statically or dynamically, so note this task was created dynamically in case it is later deleted. */ pxNewQueue->ucStaticallyAllocated = pdFALSE; } #endif /* configSUPPORT_STATIC_ALLOCATION */ prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } else { traceQUEUE_CREATE_FAILED( ucQueueType ); mtCOVERAGE_TEST_MARKER(); } return pxNewQueue; } #endif /* configSUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) { /* Remove compiler warnings about unused parameters should configUSE_TRACE_FACILITY not be set to 1. */ ( void ) ucQueueType; if( uxItemSize == ( UBaseType_t ) 0 ) { /* No RAM was allocated for the queue storage area, but PC head cannot be set to NULL because NULL is used as a key to say the queue is used as a mutex. Therefore just set pcHead to point to the queue as a benign value that is known to be within the memory map. */ pxNewQueue->pcHead = ( int8_t * ) pxNewQueue; } else { /* Set the head to the start of the queue storage area. */ pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage; } /* Initialise the queue members as described where the queue type is defined. */ pxNewQueue->uxLength = uxQueueLength; pxNewQueue->uxItemSize = uxItemSize; ( void ) xQueueGenericReset( pxNewQueue, pdTRUE ); #if ( configUSE_TRACE_FACILITY == 1 ) { pxNewQueue->ucQueueType = ucQueueType; } #endif /* configUSE_TRACE_FACILITY */ #if( configUSE_QUEUE_SETS == 1 ) { pxNewQueue->pxQueueSetContainer = NULL; } #endif /* configUSE_QUEUE_SETS */ traceQUEUE_CREATE( pxNewQueue ); } /*-----------------------------------------------------------*/ #if( configUSE_MUTEXES == 1 ) static void prvInitialiseMutex( Queue_t *pxNewQueue ) { if( pxNewQueue != NULL ) { /* The queue create function will set all the queue structure members correctly for a generic queue, but this function is creating a mutex. Overwrite those members that need to be set differently - in particular the information required for priority inheritance. */ pxNewQueue->u.xSemaphore.xMutexHolder = NULL; pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX; /* In case this is a recursive mutex. */ pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0; traceCREATE_MUTEX( pxNewQueue ); /* Start with the semaphore in the expected state. */ ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK ); } else { traceCREATE_MUTEX_FAILED(); } } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) { QueueHandle_t xNewQueue; const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType ); prvInitialiseMutex( ( Queue_t * ) xNewQueue ); return xNewQueue; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) { QueueHandle_t xNewQueue; const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; /* Prevent compiler warnings about unused parameters if configUSE_TRACE_FACILITY does not equal 1. */ ( void ) ucQueueType; xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType ); prvInitialiseMutex( ( Queue_t * ) xNewQueue ); return xNewQueue; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) TaskHandle_t xQueueGetMutexHolder( QueueHandle_t xSemaphore ) { TaskHandle_t pxReturn; Queue_t * const pxSemaphore = ( Queue_t * ) xSemaphore; /* This function is called by xSemaphoreGetMutexHolder(), and should not be called directly. Note: This is a good way of determining if the calling task is the mutex holder, but not a good way of determining the identity of the mutex holder, as the holder may change between the following critical section exiting and the function returning. */ taskENTER_CRITICAL(); { if( pxSemaphore->uxQueueType == queueQUEUE_IS_MUTEX ) { pxReturn = pxSemaphore->u.xSemaphore.xMutexHolder; } else { pxReturn = NULL; } } taskEXIT_CRITICAL(); return pxReturn; } /*lint !e818 xSemaphore cannot be a pointer to const because it is a typedef. */ #endif /*-----------------------------------------------------------*/ #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore ) { TaskHandle_t pxReturn; configASSERT( xSemaphore ); /* Mutexes cannot be used in interrupt service routines, so the mutex holder should not change in an ISR, and therefore a critical section is not required here. */ if( ( ( Queue_t * ) xSemaphore )->uxQueueType == queueQUEUE_IS_MUTEX ) { pxReturn = ( ( Queue_t * ) xSemaphore )->u.xSemaphore.xMutexHolder; } else { pxReturn = NULL; } return pxReturn; } /*lint !e818 xSemaphore cannot be a pointer to const because it is a typedef. */ #endif /*-----------------------------------------------------------*/ #if ( configUSE_RECURSIVE_MUTEXES == 1 ) BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) { BaseType_t xReturn; Queue_t * const pxMutex = ( Queue_t * ) xMutex; configASSERT( pxMutex ); /* If this is the task that holds the mutex then xMutexHolder will not change outside of this task. If this task does not hold the mutex then pxMutexHolder can never coincidentally equal the tasks handle, and as this is the only condition we are interested in it does not matter if pxMutexHolder is accessed simultaneously by another task. Therefore no mutual exclusion is required to test the pxMutexHolder variable. */ if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() ) { traceGIVE_MUTEX_RECURSIVE( pxMutex ); /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to the task handle, therefore no underflow check is required. Also, uxRecursiveCallCount is only modified by the mutex holder, and as there can only be one, no mutual exclusion is required to modify the uxRecursiveCallCount member. */ ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--; /* Has the recursive call count unwound to 0? */ if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 ) { /* Return the mutex. This will automatically unblock any other task that might be waiting to access the mutex. */ ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK ); } else { mtCOVERAGE_TEST_MARKER(); } xReturn = pdPASS; } else { /* The mutex cannot be given because the calling task is not the holder. */ xReturn = pdFAIL; traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex ); } return xReturn; } #endif /* configUSE_RECURSIVE_MUTEXES */ /*-----------------------------------------------------------*/ #if ( configUSE_RECURSIVE_MUTEXES == 1 ) BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) { BaseType_t xReturn; Queue_t * const pxMutex = ( Queue_t * ) xMutex; configASSERT( pxMutex ); /* Comments regarding mutual exclusion as per those within xQueueGiveMutexRecursive(). */ traceTAKE_MUTEX_RECURSIVE( pxMutex ); if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() ) { ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++; xReturn = pdPASS; } else { xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait ); /* pdPASS will only be returned if the mutex was successfully obtained. The calling task may have entered the Blocked state before reaching here. */ if( xReturn != pdFAIL ) { ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++; } else { traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex ); } } return xReturn; } #endif /* configUSE_RECURSIVE_MUTEXES */ /*-----------------------------------------------------------*/ #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) { QueueHandle_t xHandle; configASSERT( uxMaxCount != 0 ); configASSERT( uxInitialCount <= uxMaxCount ); xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); if( xHandle != NULL ) { ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; traceCREATE_COUNTING_SEMAPHORE(); } else { traceCREATE_COUNTING_SEMAPHORE_FAILED(); } return xHandle; } #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ /*-----------------------------------------------------------*/ #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) { QueueHandle_t xHandle; configASSERT( uxMaxCount != 0 ); configASSERT( uxInitialCount <= uxMaxCount ); xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); if( xHandle != NULL ) { ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; traceCREATE_COUNTING_SEMAPHORE(); } else { traceCREATE_COUNTING_SEMAPHORE_FAILED(); } return xHandle; } #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ /*-----------------------------------------------------------*/ BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) { BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired; TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); { /* Is there room on the queue now? The running task must be the highest priority task wanting to access the queue. If the head item in the queue is to be overwritten then it does not matter if the queue is full. */ if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) { traceQUEUE_SEND( pxQueue ); #if ( configUSE_QUEUE_SETS == 1 ) { const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting; xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); if( pxQueue->pxQueueSetContainer != NULL ) { if( ( xCopyPosition == queueOVERWRITE ) && ( uxPreviousMessagesWaiting != ( UBaseType_t ) 0 ) ) { /* Do not notify the queue set as an existing item was overwritten in the queue so the number of items in the queue has not changed. */ mtCOVERAGE_TEST_MARKER(); } else if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) { /* The queue is a member of a queue set, and posting to the queue set caused a higher priority task to unblock. A context switch is required. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* If there was a task waiting for data to arrive on the queue then unblock it now. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The unblocked task has a priority higher than our own so yield immediately. Yes it is ok to do this from within the critical section - the kernel takes care of that. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else if( xYieldRequired != pdFALSE ) { /* This path is a special case that will only get executed if the task was holding multiple mutexes and the mutexes were given back in an order that is different to that in which they were taken. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } } #else /* configUSE_QUEUE_SETS */ { xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); /* If there was a task waiting for data to arrive on the queue then unblock it now. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The unblocked task has a priority higher than our own so yield immediately. Yes it is ok to do this from within the critical section - the kernel takes care of that. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else if( xYieldRequired != pdFALSE ) { /* This path is a special case that will only get executed if the task was holding multiple mutexes and the mutexes were given back in an order that is different to that in which they were taken. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_QUEUE_SETS */ taskEXIT_CRITICAL(); return pdPASS; } else { if( xTicksToWait == ( TickType_t ) 0 ) { /* The queue was full and no block time is specified (or the block time has expired) so leave now. */ taskEXIT_CRITICAL(); /* Return to the original privilege level before exiting the function. */ traceQUEUE_SEND_FAILED( pxQueue ); return errQUEUE_FULL; } else if( xEntryTimeSet == pdFALSE ) { /* The queue was full and a block time was specified so configure the timeout structure. */ vTaskInternalSetTimeOutState( &xTimeOut ); xEntryTimeSet = pdTRUE; } else { /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); /* Interrupts and other tasks can send to and receive from the queue now the critical section has been exited. */ vTaskSuspendAll(); prvLockQueue( pxQueue ); /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) { if( prvIsQueueFull( pxQueue ) != pdFALSE ) { traceBLOCKING_ON_QUEUE_SEND( pxQueue ); vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait ); /* Unlocking the queue means queue events can effect the event list. It is possible that interrupts occurring now remove this task from the event list again - but as the scheduler is suspended the task will go onto the pending ready last instead of the actual ready list. */ prvUnlockQueue( pxQueue ); /* Resuming the scheduler will move tasks from the pending ready list into the ready list - so it is feasible that this task is already in a ready list before it yields - in which case the yield will not cause a context switch unless there is also a higher priority task in the pending ready list. */ if( xTaskResumeAll() == pdFALSE ) { portYIELD_WITHIN_API(); } } else { /* Try again. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); } } else { /* The timeout has expired. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); traceQUEUE_SEND_FAILED( pxQueue ); return errQUEUE_FULL; } } /*lint -restore */ } /*-----------------------------------------------------------*/ BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) { BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are kept permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); /* Similar to xQueueGenericSend, except without blocking if there is no room in the queue. Also don't directly wake a task that was blocked on a queue read, instead return a flag to say whether a context switch is required or not (i.e. has a task with a higher priority than us been woken by this post). */ uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) { const int8_t cTxLock = pxQueue->cTxLock; const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting; traceQUEUE_SEND_FROM_ISR( pxQueue ); /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a semaphore or mutex. That means prvCopyDataToQueue() cannot result in a task disinheriting a priority and prvCopyDataToQueue() can be called here even though the disinherit function does not check if the scheduler is suspended before accessing the ready lists. */ ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); /* The event list is not altered if the queue is locked. This will be done when the queue is unlocked later. */ if( cTxLock == queueUNLOCKED ) { #if ( configUSE_QUEUE_SETS == 1 ) { if( pxQueue->pxQueueSetContainer != NULL ) { if( ( xCopyPosition == queueOVERWRITE ) && ( uxPreviousMessagesWaiting != ( UBaseType_t ) 0 ) ) { /* Do not notify the queue set as an existing item was overwritten in the queue so the number of items in the queue has not changed. */ mtCOVERAGE_TEST_MARKER(); } else if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) { /* The queue is a member of a queue set, and posting to the queue set caused a higher priority task to unblock. A context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } } #else /* configUSE_QUEUE_SETS */ { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } /* Not used in this path. */ ( void ) uxPreviousMessagesWaiting; } #endif /* configUSE_QUEUE_SETS */ } else { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); } xReturn = pdPASS; } else { traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); xReturn = errQUEUE_FULL; } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) { BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; /* Similar to xQueueGenericSendFromISR() but used with semaphores where the item size is 0. Don't directly wake a task that was blocked on a queue read, instead return a flag to say whether a context switch is required or not (i.e. has a task with a higher priority than us been woken by this post). */ configASSERT( pxQueue ); /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR() if the item size is not 0. */ configASSERT( pxQueue->uxItemSize == 0 ); /* Normally a mutex would not be given from an interrupt, especially if there is a mutex holder, as priority inheritance makes no sense for an interrupts, only tasks. */ configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are kept permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; /* When the queue is used to implement a semaphore no data is ever moved through the queue but it is still valid to see if the queue 'has space'. */ if( uxMessagesWaiting < pxQueue->uxLength ) { const int8_t cTxLock = pxQueue->cTxLock; traceQUEUE_SEND_FROM_ISR( pxQueue ); /* A task can only have an inherited priority if it is a mutex holder - and if there is a mutex holder then the mutex cannot be given from an ISR. As this is the ISR version of the function it can be assumed there is no mutex holder and no need to determine if priority disinheritance is needed. Simply increase the count of messages (semaphores) available. */ pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; /* The event list is not altered if the queue is locked. This will be done when the queue is unlocked later. */ if( cTxLock == queueUNLOCKED ) { #if ( configUSE_QUEUE_SETS == 1 ) { if( pxQueue->pxQueueSetContainer != NULL ) { if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) { /* The semaphore is a member of a queue set, and posting to the queue set caused a higher priority task to unblock. A context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } } #else /* configUSE_QUEUE_SETS */ { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_QUEUE_SETS */ } else { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); } xReturn = pdPASS; } else { traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); xReturn = errQUEUE_FULL; } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) { BaseType_t xEntryTimeSet = pdFALSE; TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; /* Check the pointer is not NULL. */ configASSERT( ( pxQueue ) ); /* The buffer into which data is received can only be NULL if the data size is zero (so no data is copied into the buffer. */ configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) ); /* Cannot block if the scheduler is suspended. */ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; /* Is there data in the queue now? To be running the calling task must be the highest priority task wanting to access the queue. */ if( uxMessagesWaiting > ( UBaseType_t ) 0 ) { /* Data available, remove one item. */ prvCopyDataFromQueue( pxQueue, pvBuffer ); traceQUEUE_RECEIVE( pxQueue ); pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; /* There is now space in the queue, were any tasks waiting to post to the queue? If so, unblock the highest priority waiting task. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } taskEXIT_CRITICAL(); return pdPASS; } else { if( xTicksToWait == ( TickType_t ) 0 ) { /* The queue was empty and no block time is specified (or the block time has expired) so leave now. */ taskEXIT_CRITICAL(); traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; } else if( xEntryTimeSet == pdFALSE ) { /* The queue was empty and a block time was specified so configure the timeout structure. */ vTaskInternalSetTimeOutState( &xTimeOut ); xEntryTimeSet = pdTRUE; } else { /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); /* Interrupts and other tasks can send to and receive from the queue now the critical section has been exited. */ vTaskSuspendAll(); prvLockQueue( pxQueue ); /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) { /* The timeout has not expired. If the queue is still empty place the task on the list of tasks waiting to receive from the queue. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); prvUnlockQueue( pxQueue ); if( xTaskResumeAll() == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* The queue contains data again. Loop back to try and read the data. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); } } else { /* Timed out. If there is no data in the queue exit, otherwise loop back and attempt to read the data. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; } else { mtCOVERAGE_TEST_MARKER(); } } } /*lint -restore */ } /*-----------------------------------------------------------*/ BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) { BaseType_t xEntryTimeSet = pdFALSE; TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; #if( configUSE_MUTEXES == 1 ) BaseType_t xInheritanceOccurred = pdFALSE; #endif /* Check the queue pointer is not NULL. */ configASSERT( ( pxQueue ) ); /* Check this really is a semaphore, in which case the item size will be 0. */ configASSERT( pxQueue->uxItemSize == 0 ); /* Cannot block if the scheduler is suspended. */ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); { /* Semaphores are queues with an item size of 0, and where the number of messages in the queue is the semaphore's count value. */ const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting; /* Is there data in the queue now? To be running the calling task must be the highest priority task wanting to access the queue. */ if( uxSemaphoreCount > ( UBaseType_t ) 0 ) { traceQUEUE_RECEIVE( pxQueue ); /* Semaphores are queues with a data size of zero and where the messages waiting is the semaphore's count. Reduce the count. */ pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1; #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) { /* Record the information required to implement priority inheritance should it become necessary. */ pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_MUTEXES */ /* Check to see if other tasks are blocked waiting to give the semaphore, and if so, unblock the highest priority such task. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } taskEXIT_CRITICAL(); return pdPASS; } else { if( xTicksToWait == ( TickType_t ) 0 ) { /* For inheritance to have occurred there must have been an initial timeout, and an adjusted timeout cannot become 0, as if it were 0 the function would have exited. */ #if( configUSE_MUTEXES == 1 ) { configASSERT( xInheritanceOccurred == pdFALSE ); } #endif /* configUSE_MUTEXES */ /* The semaphore count was 0 and no block time is specified (or the block time has expired) so exit now. */ taskEXIT_CRITICAL(); traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; } else if( xEntryTimeSet == pdFALSE ) { /* The semaphore count was 0 and a block time was specified so configure the timeout structure ready to block. */ vTaskInternalSetTimeOutState( &xTimeOut ); xEntryTimeSet = pdTRUE; } else { /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); /* Interrupts and other tasks can give to and take from the semaphore now the critical section has been exited. */ vTaskSuspendAll(); prvLockQueue( pxQueue ); /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) { /* A block time is specified and not expired. If the semaphore count is 0 then enter the Blocked state to wait for a semaphore to become available. As semaphores are implemented with queues the queue being empty is equivalent to the semaphore count being 0. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) { taskENTER_CRITICAL(); { xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder ); } taskEXIT_CRITICAL(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); prvUnlockQueue( pxQueue ); if( xTaskResumeAll() == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* There was no timeout and the semaphore count was not 0, so attempt to take the semaphore again. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); } } else { /* Timed out. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); /* If the semaphore count is 0 exit now as the timeout has expired. Otherwise return to attempt to take the semaphore that is known to be available. As semaphores are implemented by queues the queue being empty is equivalent to the semaphore count being 0. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { #if ( configUSE_MUTEXES == 1 ) { /* xInheritanceOccurred could only have be set if pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to test the mutex type again to check it is actually a mutex. */ if( xInheritanceOccurred != pdFALSE ) { taskENTER_CRITICAL(); { UBaseType_t uxHighestWaitingPriority; /* This task blocking on the mutex caused another task to inherit this task's priority. Now this task has timed out the priority should be disinherited again, but only as low as the next highest priority task that is waiting for the same mutex. */ uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue ); vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority ); } taskEXIT_CRITICAL(); } } #endif /* configUSE_MUTEXES */ traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; } else { mtCOVERAGE_TEST_MARKER(); } } } /*lint -restore */ } /*-----------------------------------------------------------*/ BaseType_t xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) { BaseType_t xEntryTimeSet = pdFALSE; TimeOut_t xTimeOut; int8_t *pcOriginalReadPosition; Queue_t * const pxQueue = xQueue; /* Check the pointer is not NULL. */ configASSERT( ( pxQueue ) ); /* The buffer into which data is received can only be NULL if the data size is zero (so no data is copied into the buffer. */ configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) ); /* Cannot block if the scheduler is suspended. */ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); } #endif /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; /* Is there data in the queue now? To be running the calling task must be the highest priority task wanting to access the queue. */ if( uxMessagesWaiting > ( UBaseType_t ) 0 ) { /* Remember the read position so it can be reset after the data is read from the queue as this function is only peeking the data, not removing it. */ pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom; prvCopyDataFromQueue( pxQueue, pvBuffer ); traceQUEUE_PEEK( pxQueue ); /* The data is not being removed, so reset the read pointer. */ pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition; /* The data is being left in the queue, so see if there are any other tasks waiting for the data. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority than this task. */ queueYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } taskEXIT_CRITICAL(); return pdPASS; } else { if( xTicksToWait == ( TickType_t ) 0 ) { /* The queue was empty and no block time is specified (or the block time has expired) so leave now. */ taskEXIT_CRITICAL(); traceQUEUE_PEEK_FAILED( pxQueue ); return errQUEUE_EMPTY; } else if( xEntryTimeSet == pdFALSE ) { /* The queue was empty and a block time was specified so configure the timeout structure ready to enter the blocked state. */ vTaskInternalSetTimeOutState( &xTimeOut ); xEntryTimeSet = pdTRUE; } else { /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); /* Interrupts and other tasks can send to and receive from the queue now the critical section has been exited. */ vTaskSuspendAll(); prvLockQueue( pxQueue ); /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) { /* Timeout has not expired yet, check to see if there is data in the queue now, and if not enter the Blocked state to wait for data. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { traceBLOCKING_ON_QUEUE_PEEK( pxQueue ); vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); prvUnlockQueue( pxQueue ); if( xTaskResumeAll() == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* There is data in the queue now, so don't enter the blocked state, instead return to try and obtain the data. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); } } else { /* The timeout has expired. If there is still no data in the queue exit, otherwise go back and try to read the data again. */ prvUnlockQueue( pxQueue ); ( void ) xTaskResumeAll(); if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) { traceQUEUE_PEEK_FAILED( pxQueue ); return errQUEUE_EMPTY; } else { mtCOVERAGE_TEST_MARKER(); } } } /*lint -restore */ } /*-----------------------------------------------------------*/ BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) { BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are kept permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; /* Cannot block in an ISR, so check there is data available. */ if( uxMessagesWaiting > ( UBaseType_t ) 0 ) { const int8_t cRxLock = pxQueue->cRxLock; traceQUEUE_RECEIVE_FROM_ISR( pxQueue ); prvCopyDataFromQueue( pxQueue, pvBuffer ); pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; /* If the queue is locked the event list will not be modified. Instead update the lock count so the task that unlocks the queue will know that an ISR has removed data while the queue was locked. */ if( cRxLock == queueUNLOCKED ) { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { /* The task waiting has a higher priority than us so force a context switch. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { /* Increment the lock count so the task that unlocks the queue knows that data was removed while it was locked. */ pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 ); } xReturn = pdPASS; } else { xReturn = pdFAIL; traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ); } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) { BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; int8_t *pcOriginalReadPosition; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); configASSERT( pxQueue->uxItemSize != 0 ); /* Can't peek a semaphore. */ /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are kept permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { /* Cannot block in an ISR, so check there is data available. */ if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) { traceQUEUE_PEEK_FROM_ISR( pxQueue ); /* Remember the read position so it can be reset as nothing is actually being removed from the queue. */ pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom; prvCopyDataFromQueue( pxQueue, pvBuffer ); pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition; xReturn = pdPASS; } else { xReturn = pdFAIL; traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue ); } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) { UBaseType_t uxReturn; configASSERT( xQueue ); taskENTER_CRITICAL(); { uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting; } taskEXIT_CRITICAL(); return uxReturn; } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ /*-----------------------------------------------------------*/ UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) { UBaseType_t uxReturn; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); taskENTER_CRITICAL(); { uxReturn = pxQueue->uxLength - pxQueue->uxMessagesWaiting; } taskEXIT_CRITICAL(); return uxReturn; } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ /*-----------------------------------------------------------*/ UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) { UBaseType_t uxReturn; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); uxReturn = pxQueue->uxMessagesWaiting; return uxReturn; } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ /*-----------------------------------------------------------*/ void vQueueDelete( QueueHandle_t xQueue ) { Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); traceQUEUE_DELETE( pxQueue ); #if ( configQUEUE_REGISTRY_SIZE > 0 ) { vQueueUnregisterQueue( pxQueue ); } #endif #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) ) { /* The queue can only have been allocated dynamically - free it again. */ vPortFree( pxQueue ); } #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) { /* The queue could have been allocated statically or dynamically, so check before attempting to free the memory. */ if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE ) { vPortFree( pxQueue ); } else { mtCOVERAGE_TEST_MARKER(); } } #else { /* The queue must have been statically allocated, so is not going to be deleted. Avoid compiler warnings about the unused parameter. */ ( void ) pxQueue; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ } /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) { return ( ( Queue_t * ) xQueue )->uxQueueNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) { ( ( Queue_t * ) xQueue )->uxQueueNumber = uxQueueNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) { return ( ( Queue_t * ) xQueue )->ucQueueType; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if( configUSE_MUTEXES == 1 ) static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) { UBaseType_t uxHighestPriorityOfWaitingTasks; /* If a task waiting for a mutex causes the mutex holder to inherit a priority, but the waiting task times out, then the holder should disinherit the priority - but only down to the highest priority of any other tasks that are waiting for the same mutex. For this purpose, return the priority of the highest priority task that is waiting for the mutex. */ if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U ) { uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) ); } else { uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY; } return uxHighestPriorityOfWaitingTasks; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) { BaseType_t xReturn = pdFALSE; UBaseType_t uxMessagesWaiting; /* This function is called from a critical section. */ uxMessagesWaiting = pxQueue->uxMessagesWaiting; if( pxQueue->uxItemSize == ( UBaseType_t ) 0 ) { #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) { /* The mutex is no longer being held. */ xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder ); pxQueue->u.xSemaphore.xMutexHolder = NULL; } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_MUTEXES */ } else if( xPosition == queueSEND_TO_BACK ) { ( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */ pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */ if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ { pxQueue->pcWriteTo = pxQueue->pcHead; } else { mtCOVERAGE_TEST_MARKER(); } } else { ( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */ pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize; if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ { pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize ); } else { mtCOVERAGE_TEST_MARKER(); } if( xPosition == queueOVERWRITE ) { if( uxMessagesWaiting > ( UBaseType_t ) 0 ) { /* An item is not being added but overwritten, so subtract one from the recorded number of items in the queue so when one is added again below the number of recorded items remains correct. */ --uxMessagesWaiting; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; return xReturn; } /*-----------------------------------------------------------*/ static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) { if( pxQueue->uxItemSize != ( UBaseType_t ) 0 ) { pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */ if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */ { pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; } else { mtCOVERAGE_TEST_MARKER(); } ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */ } } /*-----------------------------------------------------------*/ static void prvUnlockQueue( Queue_t * const pxQueue ) { /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. */ /* The lock counts contains the number of extra data items placed or removed from the queue while the queue was locked. When a queue is locked items can be added or removed, but the event lists cannot be updated. */ taskENTER_CRITICAL(); { int8_t cTxLock = pxQueue->cTxLock; /* See if data was added to the queue while it was locked. */ while( cTxLock > queueLOCKED_UNMODIFIED ) { /* Data was posted while the queue was locked. Are any tasks blocked waiting for data to become available? */ #if ( configUSE_QUEUE_SETS == 1 ) { if( pxQueue->pxQueueSetContainer != NULL ) { if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) { /* The queue is a member of a queue set, and posting to the queue set caused a higher priority task to unblock. A context switch is required. */ vTaskMissedYield(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* Tasks that are removed from the event list will get added to the pending ready list as the scheduler is still suspended. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ vTaskMissedYield(); } else { mtCOVERAGE_TEST_MARKER(); } } else { break; } } } #else /* configUSE_QUEUE_SETS */ { /* Tasks that are removed from the event list will get added to the pending ready list as the scheduler is still suspended. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority so record that a context switch is required. */ vTaskMissedYield(); } else { mtCOVERAGE_TEST_MARKER(); } } else { break; } } #endif /* configUSE_QUEUE_SETS */ --cTxLock; } pxQueue->cTxLock = queueUNLOCKED; } taskEXIT_CRITICAL(); /* Do the same for the Rx lock. */ taskENTER_CRITICAL(); { int8_t cRxLock = pxQueue->cRxLock; while( cRxLock > queueLOCKED_UNMODIFIED ) { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { vTaskMissedYield(); } else { mtCOVERAGE_TEST_MARKER(); } --cRxLock; } else { break; } } pxQueue->cRxLock = queueUNLOCKED; } taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) { BaseType_t xReturn; taskENTER_CRITICAL(); { if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } } taskEXIT_CRITICAL(); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ /*-----------------------------------------------------------*/ static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) { BaseType_t xReturn; taskENTER_CRITICAL(); { if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } } taskEXIT_CRITICAL(); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ /*-----------------------------------------------------------*/ #if ( configUSE_CO_ROUTINES == 1 ) BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; /* If the queue is already full we may have to block. A critical section is required to prevent an interrupt removing something from the queue between the check to see if the queue is full and blocking on the queue. */ portDISABLE_INTERRUPTS(); { if( prvIsQueueFull( pxQueue ) != pdFALSE ) { /* The queue is full - do we want to block or just leave without posting? */ if( xTicksToWait > ( TickType_t ) 0 ) { /* As this is called from a coroutine we cannot block directly, but return indicating that we need to block. */ vCoRoutineAddToDelayedList( xTicksToWait, &( pxQueue->xTasksWaitingToSend ) ); portENABLE_INTERRUPTS(); return errQUEUE_BLOCKED; } else { portENABLE_INTERRUPTS(); return errQUEUE_FULL; } } } portENABLE_INTERRUPTS(); portDISABLE_INTERRUPTS(); { if( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) { /* There is room in the queue, copy the data into the queue. */ prvCopyDataToQueue( pxQueue, pvItemToQueue, queueSEND_TO_BACK ); xReturn = pdPASS; /* Were any co-routines waiting for data to become available? */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { /* In this instance the co-routine could be placed directly into the ready list as we are within a critical section. Instead the same pending ready list mechanism is used as if the event were caused from within an interrupt. */ if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The co-routine waiting has a higher priority so record that a yield might be appropriate. */ xReturn = errQUEUE_YIELD; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { xReturn = errQUEUE_FULL; } } portENABLE_INTERRUPTS(); return xReturn; } #endif /* configUSE_CO_ROUTINES */ /*-----------------------------------------------------------*/ #if ( configUSE_CO_ROUTINES == 1 ) BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; /* If the queue is already empty we may have to block. A critical section is required to prevent an interrupt adding something to the queue between the check to see if the queue is empty and blocking on the queue. */ portDISABLE_INTERRUPTS(); { if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) { /* There are no messages in the queue, do we want to block or just leave with nothing? */ if( xTicksToWait > ( TickType_t ) 0 ) { /* As this is a co-routine we cannot block directly, but return indicating that we need to block. */ vCoRoutineAddToDelayedList( xTicksToWait, &( pxQueue->xTasksWaitingToReceive ) ); portENABLE_INTERRUPTS(); return errQUEUE_BLOCKED; } else { portENABLE_INTERRUPTS(); return errQUEUE_FULL; } } else { mtCOVERAGE_TEST_MARKER(); } } portENABLE_INTERRUPTS(); portDISABLE_INTERRUPTS(); { if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) { /* Data is available from the queue. */ pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) { pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; } else { mtCOVERAGE_TEST_MARKER(); } --( pxQueue->uxMessagesWaiting ); ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( unsigned ) pxQueue->uxItemSize ); xReturn = pdPASS; /* Were any co-routines waiting for space to become available? */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { /* In this instance the co-routine could be placed directly into the ready list as we are within a critical section. Instead the same pending ready list mechanism is used as if the event were caused from within an interrupt. */ if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { xReturn = errQUEUE_YIELD; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { xReturn = pdFAIL; } } portENABLE_INTERRUPTS(); return xReturn; } #endif /* configUSE_CO_ROUTINES */ /*-----------------------------------------------------------*/ #if ( configUSE_CO_ROUTINES == 1 ) BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ) { Queue_t * const pxQueue = xQueue; /* Cannot block within an ISR so if there is no space on the queue then exit without doing anything. */ if( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) { prvCopyDataToQueue( pxQueue, pvItemToQueue, queueSEND_TO_BACK ); /* We only want to wake one co-routine per ISR, so check that a co-routine has not already been woken. */ if( xCoRoutinePreviouslyWoken == pdFALSE ) { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) { return pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } return xCoRoutinePreviouslyWoken; } #endif /* configUSE_CO_ROUTINES */ /*-----------------------------------------------------------*/ #if ( configUSE_CO_ROUTINES == 1 ) BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxCoRoutineWoken ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; /* We cannot block from an ISR, so check there is data available. If not then just leave without doing anything. */ if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) { /* Copy the data from the queue. */ pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) { pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; } else { mtCOVERAGE_TEST_MARKER(); } --( pxQueue->uxMessagesWaiting ); ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( unsigned ) pxQueue->uxItemSize ); if( ( *pxCoRoutineWoken ) == pdFALSE ) { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) { if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) { *pxCoRoutineWoken = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } xReturn = pdPASS; } else { xReturn = pdFAIL; } return xReturn; } #endif /* configUSE_CO_ROUTINES */ /*-----------------------------------------------------------*/ #if ( configQUEUE_REGISTRY_SIZE > 0 ) void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t ux; /* See if there is an empty space in the registry. A NULL name denotes a free slot. */ for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) { if( xQueueRegistry[ ux ].pcQueueName == NULL ) { /* Store the information on this queue. */ xQueueRegistry[ ux ].pcQueueName = pcQueueName; xQueueRegistry[ ux ].xHandle = xQueue; traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName ); break; } else { mtCOVERAGE_TEST_MARKER(); } } } #endif /* configQUEUE_REGISTRY_SIZE */ /*-----------------------------------------------------------*/ #if ( configQUEUE_REGISTRY_SIZE > 0 ) const char *pcQueueGetName( QueueHandle_t xQueue ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t ux; const char *pcReturn = NULL; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ /* Note there is nothing here to protect against another task adding or removing entries from the registry while it is being searched. */ for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) { if( xQueueRegistry[ ux ].xHandle == xQueue ) { pcReturn = xQueueRegistry[ ux ].pcQueueName; break; } else { mtCOVERAGE_TEST_MARKER(); } } return pcReturn; } /*lint !e818 xQueue cannot be a pointer to const because it is a typedef. */ #endif /* configQUEUE_REGISTRY_SIZE */ /*-----------------------------------------------------------*/ #if ( configQUEUE_REGISTRY_SIZE > 0 ) void vQueueUnregisterQueue( QueueHandle_t xQueue ) { UBaseType_t ux; /* See if the handle of the queue being unregistered in actually in the registry. */ for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) { if( xQueueRegistry[ ux ].xHandle == xQueue ) { /* Set the name to NULL to show that this slot if free again. */ xQueueRegistry[ ux ].pcQueueName = NULL; /* Set the handle to NULL to ensure the same queue handle cannot appear in the registry twice if it is added, removed, then added again. */ xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0; break; } else { mtCOVERAGE_TEST_MARKER(); } } } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ #endif /* configQUEUE_REGISTRY_SIZE */ /*-----------------------------------------------------------*/ #if ( configUSE_TIMERS == 1 ) void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) { Queue_t * const pxQueue = xQueue; /* This function should not be called by application code hence the 'Restricted' in its name. It is not part of the public API. It is designed for use by kernel code, and has special calling requirements. It can result in vListInsert() being called on a list that can only possibly ever have one item in it, so the list will be fast, but even so it should be called with the scheduler locked and not from a critical section. */ /* Only do anything if there are no messages in the queue. This function will not actually cause the task to block, just place it on a blocked list. It will not block until the scheduler is unlocked - at which time a yield will be performed. If an item is added to the queue while the queue is locked, and the calling task blocks on the queue, then the calling task will be immediately unblocked when the queue is unlocked. */ prvLockQueue( pxQueue ); if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U ) { /* There is nothing in the queue, block for the specified period. */ vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely ); } else { mtCOVERAGE_TEST_MARKER(); } prvUnlockQueue( pxQueue ); } #endif /* configUSE_TIMERS */ /*-----------------------------------------------------------*/ #if( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) { QueueSetHandle_t pxQueue; pxQueue = xQueueGenericCreate( uxEventQueueLength, ( UBaseType_t ) sizeof( Queue_t * ), queueQUEUE_TYPE_SET ); return pxQueue; } #endif /* configUSE_QUEUE_SETS */ /*-----------------------------------------------------------*/ #if ( configUSE_QUEUE_SETS == 1 ) BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) { BaseType_t xReturn; taskENTER_CRITICAL(); { if( ( ( Queue_t * ) xQueueOrSemaphore )->pxQueueSetContainer != NULL ) { /* Cannot add a queue/semaphore to more than one queue set. */ xReturn = pdFAIL; } else if( ( ( Queue_t * ) xQueueOrSemaphore )->uxMessagesWaiting != ( UBaseType_t ) 0 ) { /* Cannot add a queue/semaphore to a queue set if there are already items in the queue/semaphore. */ xReturn = pdFAIL; } else { ( ( Queue_t * ) xQueueOrSemaphore )->pxQueueSetContainer = xQueueSet; xReturn = pdPASS; } } taskEXIT_CRITICAL(); return xReturn; } #endif /* configUSE_QUEUE_SETS */ /*-----------------------------------------------------------*/ #if ( configUSE_QUEUE_SETS == 1 ) BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) { BaseType_t xReturn; Queue_t * const pxQueueOrSemaphore = ( Queue_t * ) xQueueOrSemaphore; if( pxQueueOrSemaphore->pxQueueSetContainer != xQueueSet ) { /* The queue was not a member of the set. */ xReturn = pdFAIL; } else if( pxQueueOrSemaphore->uxMessagesWaiting != ( UBaseType_t ) 0 ) { /* It is dangerous to remove a queue from a set when the queue is not empty because the queue set will still hold pending events for the queue. */ xReturn = pdFAIL; } else { taskENTER_CRITICAL(); { /* The queue is no longer contained in the set. */ pxQueueOrSemaphore->pxQueueSetContainer = NULL; } taskEXIT_CRITICAL(); xReturn = pdPASS; } return xReturn; } /*lint !e818 xQueueSet could not be declared as pointing to const as it is a typedef. */ #endif /* configUSE_QUEUE_SETS */ /*-----------------------------------------------------------*/ #if ( configUSE_QUEUE_SETS == 1 ) QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, TickType_t const xTicksToWait ) { QueueSetMemberHandle_t xReturn = NULL; ( void ) xQueueReceive( ( QueueHandle_t ) xQueueSet, &xReturn, xTicksToWait ); /*lint !e961 Casting from one typedef to another is not redundant. */ return xReturn; } #endif /* configUSE_QUEUE_SETS */ /*-----------------------------------------------------------*/ #if ( configUSE_QUEUE_SETS == 1 ) QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) { QueueSetMemberHandle_t xReturn = NULL; ( void ) xQueueReceiveFromISR( ( QueueHandle_t ) xQueueSet, &xReturn, NULL ); /*lint !e961 Casting from one typedef to another is not redundant. */ return xReturn; } #endif /* configUSE_QUEUE_SETS */ /*-----------------------------------------------------------*/ #if ( configUSE_QUEUE_SETS == 1 ) static BaseType_t prvNotifyQueueSetContainer( const Queue_t * const pxQueue ) { Queue_t *pxQueueSetContainer = pxQueue->pxQueueSetContainer; BaseType_t xReturn = pdFALSE; /* This function must be called form a critical section. */ configASSERT( pxQueueSetContainer ); configASSERT( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength ); if( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength ) { const int8_t cTxLock = pxQueueSetContainer->cTxLock; traceQUEUE_SEND( pxQueueSetContainer ); /* The data copied is the handle of the queue that contains data. */ xReturn = prvCopyDataToQueue( pxQueueSetContainer, &pxQueue, queueSEND_TO_BACK ); if( cTxLock == queueUNLOCKED ) { if( listLIST_IS_EMPTY( &( pxQueueSetContainer->xTasksWaitingToReceive ) ) == pdFALSE ) { if( xTaskRemoveFromEventList( &( pxQueueSetContainer->xTasksWaitingToReceive ) ) != pdFALSE ) { /* The task waiting has a higher priority. */ xReturn = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { pxQueueSetContainer->cTxLock = ( int8_t ) ( cTxLock + 1 ); } } else { mtCOVERAGE_TEST_MARKER(); } return xReturn; } #endif /* configUSE_QUEUE_SETS */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* Standard includes. */ #include #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE /* FreeRTOS includes. */ #include "FreeRTOS.h" #include "task.h" #include "stream_buffer.h" #if( configUSE_TASK_NOTIFICATIONS != 1 ) #error configUSE_TASK_NOTIFICATIONS must be set to 1 to build stream_buffer.c #endif /* Lint e961, e9021 and e750 are suppressed as a MISRA exception justified because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the header files above, but not in this file, in order to generate the correct privileged Vs unprivileged linkage and placement. */ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ /* If the user has not provided application specific Rx notification macros, or #defined the notification macros away, them provide default implementations that uses task notifications. */ /*lint -save -e9026 Function like macros allowed and needed here so they can be overidden. */ #ifndef sbRECEIVE_COMPLETED #define sbRECEIVE_COMPLETED( pxStreamBuffer ) \ vTaskSuspendAll(); \ { \ if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \ { \ ( void ) xTaskNotify( ( pxStreamBuffer )->xTaskWaitingToSend, \ ( uint32_t ) 0, \ eNoAction ); \ ( pxStreamBuffer )->xTaskWaitingToSend = NULL; \ } \ } \ ( void ) xTaskResumeAll(); #endif /* sbRECEIVE_COMPLETED */ #ifndef sbRECEIVE_COMPLETED_FROM_ISR #define sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, \ pxHigherPriorityTaskWoken ) \ { \ UBaseType_t uxSavedInterruptStatus; \ \ uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); \ { \ if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \ { \ ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToSend, \ ( uint32_t ) 0, \ eNoAction, \ pxHigherPriorityTaskWoken ); \ ( pxStreamBuffer )->xTaskWaitingToSend = NULL; \ } \ } \ portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \ } #endif /* sbRECEIVE_COMPLETED_FROM_ISR */ /* If the user has not provided an application specific Tx notification macro, or #defined the notification macro away, them provide a default implementation that uses task notifications. */ #ifndef sbSEND_COMPLETED #define sbSEND_COMPLETED( pxStreamBuffer ) \ vTaskSuspendAll(); \ { \ if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) \ { \ ( void ) xTaskNotify( ( pxStreamBuffer )->xTaskWaitingToReceive, \ ( uint32_t ) 0, \ eNoAction ); \ ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; \ } \ } \ ( void ) xTaskResumeAll(); #endif /* sbSEND_COMPLETED */ #ifndef sbSEND_COMPLETE_FROM_ISR #define sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ) \ { \ UBaseType_t uxSavedInterruptStatus; \ \ uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); \ { \ if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) \ { \ ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToReceive, \ ( uint32_t ) 0, \ eNoAction, \ pxHigherPriorityTaskWoken ); \ ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; \ } \ } \ portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \ } #endif /* sbSEND_COMPLETE_FROM_ISR */ /*lint -restore (9026) */ /* The number of bytes used to hold the length of a message in the buffer. */ #define sbBYTES_TO_STORE_MESSAGE_LENGTH ( sizeof( configMESSAGE_BUFFER_LENGTH_TYPE ) ) /* Bits stored in the ucFlags field of the stream buffer. */ #define sbFLAGS_IS_MESSAGE_BUFFER ( ( uint8_t ) 1 ) /* Set if the stream buffer was created as a message buffer, in which case it holds discrete messages rather than a stream. */ #define sbFLAGS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 2 ) /* Set if the stream buffer was created using statically allocated memory. */ /*-----------------------------------------------------------*/ /* Structure that hold state information on the buffer. */ typedef struct StreamBufferDef_t /*lint !e9058 Style convention uses tag. */ { volatile size_t xTail; /* Index to the next item to read within the buffer. */ volatile size_t xHead; /* Index to the next item to write within the buffer. */ size_t xLength; /* The length of the buffer pointed to by pucBuffer. */ size_t xTriggerLevelBytes; /* The number of bytes that must be in the stream buffer before a task that is waiting for data is unblocked. */ volatile TaskHandle_t xTaskWaitingToReceive; /* Holds the handle of a task waiting for data, or NULL if no tasks are waiting. */ volatile TaskHandle_t xTaskWaitingToSend; /* Holds the handle of a task waiting to send data to a message buffer that is full. */ uint8_t *pucBuffer; /* Points to the buffer itself - that is - the RAM that stores the data passed through the buffer. */ uint8_t ucFlags; #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxStreamBufferNumber; /* Used for tracing purposes. */ #endif } StreamBuffer_t; /* * The number of bytes available to be read from the buffer. */ static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) PRIVILEGED_FUNCTION; /* * Add xCount bytes from pucData into the pxStreamBuffer message buffer. * Returns the number of bytes written, which will either equal xCount in the * success case, or 0 if there was not enough space in the buffer (in which case * no data is written into the buffer). */ static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount ) PRIVILEGED_FUNCTION; /* * If the stream buffer is being used as a message buffer, then reads an entire * message out of the buffer. If the stream buffer is being used as a stream * buffer then read as many bytes as possible from the buffer. * prvReadBytesFromBuffer() is called to actually extract the bytes from the * buffer's data storage area. */ static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, size_t xBytesAvailable, size_t xBytesToStoreMessageLength ) PRIVILEGED_FUNCTION; /* * If the stream buffer is being used as a message buffer, then writes an entire * message to the buffer. If the stream buffer is being used as a stream * buffer then write as many bytes as possible to the buffer. * prvWriteBytestoBuffer() is called to actually send the bytes to the buffer's * data storage area. */ static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, size_t xSpace, size_t xRequiredSpace ) PRIVILEGED_FUNCTION; /* * Read xMaxCount bytes from the pxStreamBuffer message buffer and write them * to pucData. */ static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable ) PRIVILEGED_FUNCTION; /* * Called by both pxStreamBufferCreate() and pxStreamBufferCreateStatic() to * initialise the members of the newly created stream buffer structure. */ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags ) PRIVILEGED_FUNCTION; /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer ) { uint8_t *pucAllocatedMemory; uint8_t ucFlags; /* In case the stream buffer is going to be used as a message buffer (that is, it will hold discrete messages with a little meta data that says how big the next message is) check the buffer will be large enough to hold at least one message. */ if( xIsMessageBuffer == pdTRUE ) { /* Is a message buffer but not statically allocated. */ ucFlags = sbFLAGS_IS_MESSAGE_BUFFER; configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH ); } else { /* Not a message buffer and not statically allocated. */ ucFlags = 0; configASSERT( xBufferSizeBytes > 0 ); } configASSERT( xTriggerLevelBytes <= xBufferSizeBytes ); /* A trigger level of 0 would cause a waiting task to unblock even when the buffer was empty. */ if( xTriggerLevelBytes == ( size_t ) 0 ) { xTriggerLevelBytes = ( size_t ) 1; } /* A stream buffer requires a StreamBuffer_t structure and a buffer. Both are allocated in a single call to pvPortMalloc(). The StreamBuffer_t structure is placed at the start of the allocated memory and the buffer follows immediately after. The requested size is incremented so the free space is returned as the user would expect - this is a quirk of the implementation that means otherwise the free space would be reported as one byte smaller than would be logically expected. */ xBufferSizeBytes++; pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */ if( pucAllocatedMemory != NULL ) { prvInitialiseNewStreamBuffer( ( StreamBuffer_t * ) pucAllocatedMemory, /* Structure at the start of the allocated memory. */ /*lint !e9087 Safe cast as allocated memory is aligned. */ /*lint !e826 Area is not too small and alignment is guaranteed provided malloc() behaves as expected and returns aligned buffer. */ pucAllocatedMemory + sizeof( StreamBuffer_t ), /* Storage area follows. */ /*lint !e9016 Indexing past structure valid for uint8_t pointer, also storage area has no alignment requirement. */ xBufferSizeBytes, xTriggerLevelBytes, ucFlags ); traceSTREAM_BUFFER_CREATE( ( ( StreamBuffer_t * ) pucAllocatedMemory ), xIsMessageBuffer ); } else { traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer ); } return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */ } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer, uint8_t * const pucStreamBufferStorageArea, StaticStreamBuffer_t * const pxStaticStreamBuffer ) { StreamBuffer_t * const pxStreamBuffer = ( StreamBuffer_t * ) pxStaticStreamBuffer; /*lint !e740 !e9087 Safe cast as StaticStreamBuffer_t is opaque Streambuffer_t. */ StreamBufferHandle_t xReturn; uint8_t ucFlags; configASSERT( pucStreamBufferStorageArea ); configASSERT( pxStaticStreamBuffer ); configASSERT( xTriggerLevelBytes <= xBufferSizeBytes ); /* A trigger level of 0 would cause a waiting task to unblock even when the buffer was empty. */ if( xTriggerLevelBytes == ( size_t ) 0 ) { xTriggerLevelBytes = ( size_t ) 1; } if( xIsMessageBuffer != pdFALSE ) { /* Statically allocated message buffer. */ ucFlags = sbFLAGS_IS_MESSAGE_BUFFER | sbFLAGS_IS_STATICALLY_ALLOCATED; } else { /* Statically allocated stream buffer. */ ucFlags = sbFLAGS_IS_STATICALLY_ALLOCATED; } /* In case the stream buffer is going to be used as a message buffer (that is, it will hold discrete messages with a little meta data that says how big the next message is) check the buffer will be large enough to hold at least one message. */ configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH ); #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticStreamBuffer_t equals the size of the real message buffer structure. */ volatile size_t xSize = sizeof( StaticStreamBuffer_t ); configASSERT( xSize == sizeof( StreamBuffer_t ) ); } /*lint !e529 xSize is referenced is configASSERT() is defined. */ #endif /* configASSERT_DEFINED */ if( ( pucStreamBufferStorageArea != NULL ) && ( pxStaticStreamBuffer != NULL ) ) { prvInitialiseNewStreamBuffer( pxStreamBuffer, pucStreamBufferStorageArea, xBufferSizeBytes, xTriggerLevelBytes, ucFlags ); /* Remember this was statically allocated in case it is ever deleted again. */ pxStreamBuffer->ucFlags |= sbFLAGS_IS_STATICALLY_ALLOCATED; traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer ); xReturn = ( StreamBufferHandle_t ) pxStaticStreamBuffer; /*lint !e9087 Data hiding requires cast to opaque type. */ } else { xReturn = NULL; traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer ); } return xReturn; } #endif /* ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ /*-----------------------------------------------------------*/ void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) { StreamBuffer_t * pxStreamBuffer = xStreamBuffer; configASSERT( pxStreamBuffer ); traceSTREAM_BUFFER_DELETE( xStreamBuffer ); if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) pdFALSE ) { #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) { /* Both the structure and the buffer were allocated using a single call to pvPortMalloc(), hence only one call to vPortFree() is required. */ vPortFree( ( void * ) pxStreamBuffer ); /*lint !e9087 Standard free() semantics require void *, plus pxStreamBuffer was allocated by pvPortMalloc(). */ } #else { /* Should not be possible to get here, ucFlags must be corrupt. Force an assert. */ configASSERT( xStreamBuffer == ( StreamBufferHandle_t ) ~0 ); } #endif } else { /* The structure and buffer were not allocated dynamically and cannot be freed - just scrub the structure so future use will assert. */ ( void ) memset( pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); } } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; BaseType_t xReturn = pdFAIL; #if( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxStreamBufferNumber; #endif configASSERT( pxStreamBuffer ); #if( configUSE_TRACE_FACILITY == 1 ) { /* Store the stream buffer number so it can be restored after the reset. */ uxStreamBufferNumber = pxStreamBuffer->uxStreamBufferNumber; } #endif /* Can only reset a message buffer if there are no tasks blocked on it. */ taskENTER_CRITICAL(); { if( pxStreamBuffer->xTaskWaitingToReceive == NULL ) { if( pxStreamBuffer->xTaskWaitingToSend == NULL ) { prvInitialiseNewStreamBuffer( pxStreamBuffer, pxStreamBuffer->pucBuffer, pxStreamBuffer->xLength, pxStreamBuffer->xTriggerLevelBytes, pxStreamBuffer->ucFlags ); xReturn = pdPASS; #if( configUSE_TRACE_FACILITY == 1 ) { pxStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber; } #endif traceSTREAM_BUFFER_RESET( xStreamBuffer ); } } } taskEXIT_CRITICAL(); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; BaseType_t xReturn; configASSERT( pxStreamBuffer ); /* It is not valid for the trigger level to be 0. */ if( xTriggerLevel == ( size_t ) 0 ) { xTriggerLevel = ( size_t ) 1; } /* The trigger level is the number of bytes that must be in the stream buffer before a task that is waiting for data is unblocked. */ if( xTriggerLevel <= pxStreamBuffer->xLength ) { pxStreamBuffer->xTriggerLevelBytes = xTriggerLevel; xReturn = pdPASS; } else { xReturn = pdFALSE; } return xReturn; } /*-----------------------------------------------------------*/ size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) { const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xSpace; configASSERT( pxStreamBuffer ); xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail; xSpace -= pxStreamBuffer->xHead; xSpace -= ( size_t ) 1; if( xSpace >= pxStreamBuffer->xLength ) { xSpace -= pxStreamBuffer->xLength; } else { mtCOVERAGE_TEST_MARKER(); } return xSpace; } /*-----------------------------------------------------------*/ size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) { const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReturn; configASSERT( pxStreamBuffer ); xReturn = prvBytesInBuffer( pxStreamBuffer ); return xReturn; } /*-----------------------------------------------------------*/ size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReturn, xSpace = 0; size_t xRequiredSpace = xDataLengthBytes; TimeOut_t xTimeOut; configASSERT( pvTxData ); configASSERT( pxStreamBuffer ); /* This send function is used to write to both message buffers and stream buffers. If this is a message buffer then the space needed must be increased by the amount of bytes needed to store the length of the message. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH; /* Overflow? */ configASSERT( xRequiredSpace > xDataLengthBytes ); } else { mtCOVERAGE_TEST_MARKER(); } if( xTicksToWait != ( TickType_t ) 0 ) { vTaskSetTimeOutState( &xTimeOut ); do { /* Wait until the required number of bytes are free in the message buffer. */ taskENTER_CRITICAL(); { xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); if( xSpace < xRequiredSpace ) { /* Clear notification state as going to wait for space. */ ( void ) xTaskNotifyStateClear( NULL ); /* Should only be one writer. */ configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL ); pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle(); } else { taskEXIT_CRITICAL(); break; } } taskEXIT_CRITICAL(); traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer ); ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait ); pxStreamBuffer->xTaskWaitingToSend = NULL; } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ); } else { mtCOVERAGE_TEST_MARKER(); } if( xSpace == ( size_t ) 0 ) { xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); } else { mtCOVERAGE_TEST_MARKER(); } xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace ); if( xReturn > ( size_t ) 0 ) { traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn ); /* Was a task waiting for the data? */ if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes ) { sbSEND_COMPLETED( pxStreamBuffer ); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer ); } return xReturn; } /*-----------------------------------------------------------*/ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReturn, xSpace; size_t xRequiredSpace = xDataLengthBytes; configASSERT( pvTxData ); configASSERT( pxStreamBuffer ); /* This send function is used to write to both message buffers and stream buffers. If this is a message buffer then the space needed must be increased by the amount of bytes needed to store the length of the message. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH; } else { mtCOVERAGE_TEST_MARKER(); } xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace ); if( xReturn > ( size_t ) 0 ) { /* Was a task waiting for the data? */ if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes ) { sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xReturn ); return xReturn; } /*-----------------------------------------------------------*/ static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, size_t xSpace, size_t xRequiredSpace ) { BaseType_t xShouldWrite; size_t xReturn; if( xSpace == ( size_t ) 0 ) { /* Doesn't matter if this is a stream buffer or a message buffer, there is no space to write. */ xShouldWrite = pdFALSE; } else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 ) { /* This is a stream buffer, as opposed to a message buffer, so writing a stream of bytes rather than discrete messages. Write as many bytes as possible. */ xShouldWrite = pdTRUE; xDataLengthBytes = configMIN( xDataLengthBytes, xSpace ); } else if( xSpace >= xRequiredSpace ) { /* This is a message buffer, as opposed to a stream buffer, and there is enough space to write both the message length and the message itself into the buffer. Start by writing the length of the data, the data itself will be written later in this function. */ xShouldWrite = pdTRUE; ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH ); } else { /* There is space available, but not enough space. */ xShouldWrite = pdFALSE; } if( xShouldWrite != pdFALSE ) { /* Writes the data itself. */ xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */ } else { xReturn = 0; } return xReturn; } /*-----------------------------------------------------------*/ size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength; configASSERT( pvRxData ); configASSERT( pxStreamBuffer ); /* This receive function is used by both message buffers, which store discrete messages, and stream buffers, which store a continuous stream of bytes. Discrete messages include an additional sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the message. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; } else { xBytesToStoreMessageLength = 0; } if( xTicksToWait != ( TickType_t ) 0 ) { /* Checking if there is data and clearing the notification state must be performed atomically. */ taskENTER_CRITICAL(); { xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); /* If this function was invoked by a message buffer read then xBytesToStoreMessageLength holds the number of bytes used to hold the length of the next discrete message. If this function was invoked by a stream buffer read then xBytesToStoreMessageLength will be 0. */ if( xBytesAvailable <= xBytesToStoreMessageLength ) { /* Clear notification state as going to wait for data. */ ( void ) xTaskNotifyStateClear( NULL ); /* Should only be one reader. */ configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL ); pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle(); } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); if( xBytesAvailable <= xBytesToStoreMessageLength ) { /* Wait for data to be available. */ traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer ); ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait ); pxStreamBuffer->xTaskWaitingToReceive = NULL; /* Recheck the data available after blocking. */ xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); } else { mtCOVERAGE_TEST_MARKER(); } } else { xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); } /* Whether receiving a discrete message (where xBytesToStoreMessageLength holds the number of bytes used to store the message length) or a stream of bytes (where xBytesToStoreMessageLength is zero), the number of bytes available must be greater than xBytesToStoreMessageLength to be able to read bytes from the buffer. */ if( xBytesAvailable > xBytesToStoreMessageLength ) { xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength ); /* Was a task waiting for space in the buffer? */ if( xReceivedLength != ( size_t ) 0 ) { traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength ); sbRECEIVE_COMPLETED( pxStreamBuffer ); } else { mtCOVERAGE_TEST_MARKER(); } } else { traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer ); mtCOVERAGE_TEST_MARKER(); } return xReceivedLength; } /*-----------------------------------------------------------*/ size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReturn, xBytesAvailable, xOriginalTail; configMESSAGE_BUFFER_LENGTH_TYPE xTempReturn; configASSERT( pxStreamBuffer ); /* Ensure the stream buffer is being used as a message buffer. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); if( xBytesAvailable > sbBYTES_TO_STORE_MESSAGE_LENGTH ) { /* The number of bytes available is greater than the number of bytes required to hold the length of the next message, so another message is available. Return its length without removing the length bytes from the buffer. A copy of the tail is stored so the buffer can be returned to its prior state as the message is not actually being removed from the buffer. */ xOriginalTail = pxStreamBuffer->xTail; ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempReturn, sbBYTES_TO_STORE_MESSAGE_LENGTH, xBytesAvailable ); xReturn = ( size_t ) xTempReturn; pxStreamBuffer->xTail = xOriginalTail; } else { /* The minimum amount of bytes in a message buffer is ( sbBYTES_TO_STORE_MESSAGE_LENGTH + 1 ), so if xBytesAvailable is less than sbBYTES_TO_STORE_MESSAGE_LENGTH the only other valid value is 0. */ configASSERT( xBytesAvailable == 0 ); xReturn = 0; } } else { xReturn = 0; } return xReturn; } /*-----------------------------------------------------------*/ size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength; configASSERT( pvRxData ); configASSERT( pxStreamBuffer ); /* This receive function is used by both message buffers, which store discrete messages, and stream buffers, which store a continuous stream of bytes. Discrete messages include an additional sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the message. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; } else { xBytesToStoreMessageLength = 0; } xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); /* Whether receiving a discrete message (where xBytesToStoreMessageLength holds the number of bytes used to store the message length) or a stream of bytes (where xBytesToStoreMessageLength is zero), the number of bytes available must be greater than xBytesToStoreMessageLength to be able to read bytes from the buffer. */ if( xBytesAvailable > xBytesToStoreMessageLength ) { xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength ); /* Was a task waiting for space in the buffer? */ if( xReceivedLength != ( size_t ) 0 ) { sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength ); return xReceivedLength; } /*-----------------------------------------------------------*/ static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, size_t xBytesAvailable, size_t xBytesToStoreMessageLength ) { size_t xOriginalTail, xReceivedLength, xNextMessageLength; configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength; if( xBytesToStoreMessageLength != ( size_t ) 0 ) { /* A discrete message is being received. First receive the length of the message. A copy of the tail is stored so the buffer can be returned to its prior state if the length of the message is too large for the provided buffer. */ xOriginalTail = pxStreamBuffer->xTail; ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable ); xNextMessageLength = ( size_t ) xTempNextMessageLength; /* Reduce the number of bytes available by the number of bytes just read out. */ xBytesAvailable -= xBytesToStoreMessageLength; /* Check there is enough space in the buffer provided by the user. */ if( xNextMessageLength > xBufferLengthBytes ) { /* The user has provided insufficient space to read the message so return the buffer to its previous state (so the length of the message is in the buffer again). */ pxStreamBuffer->xTail = xOriginalTail; xNextMessageLength = 0; } else { mtCOVERAGE_TEST_MARKER(); } } else { /* A stream of bytes is being received (as opposed to a discrete message), so read as many bytes as possible. */ xNextMessageLength = xBufferLengthBytes; } /* Read the actual data. */ xReceivedLength = prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) pvRxData, xNextMessageLength, xBytesAvailable ); /*lint !e9079 Data storage area is implemented as uint8_t array for ease of sizing, indexing and alignment. */ return xReceivedLength; } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) { const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; BaseType_t xReturn; size_t xTail; configASSERT( pxStreamBuffer ); /* True if no bytes are available. */ xTail = pxStreamBuffer->xTail; if( pxStreamBuffer->xHead == xTail ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) { BaseType_t xReturn; size_t xBytesToStoreMessageLength; const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; configASSERT( pxStreamBuffer ); /* This generic version of the receive function is used by both message buffers, which store discrete messages, and stream buffers, which store a continuous stream of bytes. Discrete messages include an additional sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the message. */ if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) { xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; } else { xBytesToStoreMessageLength = 0; } /* True if the available space equals zero. */ if( xStreamBufferSpacesAvailable( xStreamBuffer ) <= xBytesToStoreMessageLength ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; configASSERT( pxStreamBuffer ); uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); { if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) { ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToReceive, ( uint32_t ) 0, eNoAction, pxHigherPriorityTaskWoken ); ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; xReturn = pdTRUE; } else { xReturn = pdFALSE; } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) { StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; configASSERT( pxStreamBuffer ); uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); { if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) { ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToSend, ( uint32_t ) 0, eNoAction, pxHigherPriorityTaskWoken ); ( pxStreamBuffer )->xTaskWaitingToSend = NULL; xReturn = pdTRUE; } else { xReturn = pdFALSE; } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount ) { size_t xNextHead, xFirstLength; configASSERT( xCount > ( size_t ) 0 ); xNextHead = pxStreamBuffer->xHead; /* Calculate the number of bytes that can be added in the first write - which may be less than the total number of bytes that need to be added if the buffer will wrap back to the beginning. */ xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount ); /* Write as many bytes as can be written in the first write. */ configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength ); ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */ /* If the number of bytes written was less than the number that could be written in the first write... */ if( xCount > xFirstLength ) { /* ...then write the remaining bytes to the start of the buffer. */ configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength ); ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */ } else { mtCOVERAGE_TEST_MARKER(); } xNextHead += xCount; if( xNextHead >= pxStreamBuffer->xLength ) { xNextHead -= pxStreamBuffer->xLength; } else { mtCOVERAGE_TEST_MARKER(); } pxStreamBuffer->xHead = xNextHead; return xCount; } /*-----------------------------------------------------------*/ static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable ) { size_t xCount, xFirstLength, xNextTail; /* Use the minimum of the wanted bytes and the available bytes. */ xCount = configMIN( xBytesAvailable, xMaxCount ); if( xCount > ( size_t ) 0 ) { xNextTail = pxStreamBuffer->xTail; /* Calculate the number of bytes that can be read - which may be less than the number wanted if the data wraps around to the start of the buffer. */ xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount ); /* Obtain the number of bytes it is possible to obtain in the first read. Asserts check bounds of read and write. */ configASSERT( xFirstLength <= xMaxCount ); configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength ); ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */ /* If the total number of wanted bytes is greater than the number that could be read in the first read... */ if( xCount > xFirstLength ) { /*...then read the remaining bytes from the start of the buffer. */ configASSERT( xCount <= xMaxCount ); ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */ } else { mtCOVERAGE_TEST_MARKER(); } /* Move the tail pointer to effectively remove the data read from the buffer. */ xNextTail += xCount; if( xNextTail >= pxStreamBuffer->xLength ) { xNextTail -= pxStreamBuffer->xLength; } pxStreamBuffer->xTail = xNextTail; } else { mtCOVERAGE_TEST_MARKER(); } return xCount; } /*-----------------------------------------------------------*/ static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) { /* Returns the distance between xTail and xHead. */ size_t xCount; xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead; xCount -= pxStreamBuffer->xTail; if ( xCount >= pxStreamBuffer->xLength ) { xCount -= pxStreamBuffer->xLength; } else { mtCOVERAGE_TEST_MARKER(); } return xCount; } /*-----------------------------------------------------------*/ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags ) { /* Assert here is deliberately writing to the entire buffer to ensure it can be written to without generating exceptions, and is setting the buffer to a known value to assist in development/debugging. */ #if( configASSERT_DEFINED == 1 ) { /* The value written just has to be identifiable when looking at the memory. Don't use 0xA5 as that is the stack fill value and could result in confusion as to what is actually being observed. */ const BaseType_t xWriteValue = 0x55; configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer ); } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */ #endif ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */ pxStreamBuffer->pucBuffer = pucBuffer; pxStreamBuffer->xLength = xBufferSizeBytes; pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes; pxStreamBuffer->ucFlags = ucFlags; } #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxStreamBufferGetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer ) { return xStreamBuffer->uxStreamBufferNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) void vStreamBufferSetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer, UBaseType_t uxStreamBufferNumber ) { xStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) { return ( xStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ); } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/tasks.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* Standard includes. */ #include #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE /* FreeRTOS includes. */ #include "FreeRTOS.h" #include "task.h" #include "timers.h" #include "stack_macros.h" /* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the header files above, but not in this file, in order to generate the correct privileged Vs unprivileged linkage and placement. */ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ /* Set configUSE_STATS_FORMATTING_FUNCTIONS to 2 to include the stats formatting functions but without including stdio.h here. */ #if ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) /* At the bottom of this file are two optional functions that can be used to generate human readable text from the raw data generated by the uxTaskGetSystemState() function. Note the formatting functions are provided for convenience only, and are NOT considered part of the kernel. */ #include #endif /* configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) */ #if( configUSE_PREEMPTION == 0 ) /* If the cooperative scheduler is being used then a yield should not be performed just because a higher priority task has been woken. */ #define taskYIELD_IF_USING_PREEMPTION() #else #define taskYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API() #endif /* Values that can be assigned to the ucNotifyState member of the TCB. */ #define taskNOT_WAITING_NOTIFICATION ( ( uint8_t ) 0 ) #define taskWAITING_NOTIFICATION ( ( uint8_t ) 1 ) #define taskNOTIFICATION_RECEIVED ( ( uint8_t ) 2 ) /* * The value used to fill the stack of a task when the task is created. This * is used purely for checking the high water mark for tasks. */ #define tskSTACK_FILL_BYTE ( 0xa5U ) /* Bits used to recored how a task's stack and TCB were allocated. */ #define tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 0 ) #define tskSTATICALLY_ALLOCATED_STACK_ONLY ( ( uint8_t ) 1 ) #define tskSTATICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 2 ) /* If any of the following are set then task stacks are filled with a known value so the high water mark can be determined. If none of the following are set then don't fill the stack so there is no unnecessary dependency on memset. */ #if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) || ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) #define tskSET_NEW_STACKS_TO_KNOWN_VALUE 1 #else #define tskSET_NEW_STACKS_TO_KNOWN_VALUE 0 #endif /* * Macros used by vListTask to indicate which state a task is in. */ #define tskRUNNING_CHAR ( 'X' ) #define tskBLOCKED_CHAR ( 'B' ) #define tskREADY_CHAR ( 'R' ) #define tskDELETED_CHAR ( 'D' ) #define tskSUSPENDED_CHAR ( 'S' ) /* * Some kernel aware debuggers require the data the debugger needs access to be * global, rather than file scope. */ #ifdef portREMOVE_STATIC_QUALIFIER #define static #endif /* The name allocated to the Idle task. This can be overridden by defining configIDLE_TASK_NAME in FreeRTOSConfig.h. */ #ifndef configIDLE_TASK_NAME #define configIDLE_TASK_NAME "IDLE" #endif #if ( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) /* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 0 then task selection is performed in a generic way that is not optimised to any particular microcontroller architecture. */ /* uxTopReadyPriority holds the priority of the highest priority ready state task. */ #define taskRECORD_READY_PRIORITY( uxPriority ) \ { \ if( ( uxPriority ) > uxTopReadyPriority ) \ { \ uxTopReadyPriority = ( uxPriority ); \ } \ } /* taskRECORD_READY_PRIORITY */ /*-----------------------------------------------------------*/ #define taskSELECT_HIGHEST_PRIORITY_TASK() \ { \ UBaseType_t uxTopPriority = uxTopReadyPriority; \ \ /* Find the highest priority queue that contains ready tasks. */ \ while( listLIST_IS_EMPTY( &( pxReadyTasksLists[ uxTopPriority ] ) ) ) \ { \ configASSERT( uxTopPriority ); \ --uxTopPriority; \ } \ \ /* listGET_OWNER_OF_NEXT_ENTRY indexes through the list, so the tasks of \ the same priority get an equal share of the processor time. */ \ listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \ uxTopReadyPriority = uxTopPriority; \ } /* taskSELECT_HIGHEST_PRIORITY_TASK */ /*-----------------------------------------------------------*/ /* Define away taskRESET_READY_PRIORITY() and portRESET_READY_PRIORITY() as they are only required when a port optimised method of task selection is being used. */ #define taskRESET_READY_PRIORITY( uxPriority ) #define portRESET_READY_PRIORITY( uxPriority, uxTopReadyPriority ) #else /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ /* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 1 then task selection is performed in a way that is tailored to the particular microcontroller architecture being used. */ /* A port optimised version is provided. Call the port defined macros. */ #define taskRECORD_READY_PRIORITY( uxPriority ) portRECORD_READY_PRIORITY( uxPriority, uxTopReadyPriority ) /*-----------------------------------------------------------*/ #define taskSELECT_HIGHEST_PRIORITY_TASK() \ { \ UBaseType_t uxTopPriority; \ \ /* Find the highest priority list that contains ready tasks. */ \ portGET_HIGHEST_PRIORITY( uxTopPriority, uxTopReadyPriority ); \ configASSERT( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ uxTopPriority ] ) ) > 0 ); \ listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \ } /* taskSELECT_HIGHEST_PRIORITY_TASK() */ /*-----------------------------------------------------------*/ /* A port optimised version is provided, call it only if the TCB being reset is being referenced from a ready list. If it is referenced from a delayed or suspended list then it won't be in a ready list. */ #define taskRESET_READY_PRIORITY( uxPriority ) \ { \ if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ ( uxPriority ) ] ) ) == ( UBaseType_t ) 0 ) \ { \ portRESET_READY_PRIORITY( ( uxPriority ), ( uxTopReadyPriority ) ); \ } \ } #endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ /*-----------------------------------------------------------*/ /* pxDelayedTaskList and pxOverflowDelayedTaskList are switched when the tick count overflows. */ #define taskSWITCH_DELAYED_LISTS() \ { \ List_t *pxTemp; \ \ /* The delayed tasks list should be empty when the lists are switched. */ \ configASSERT( ( listLIST_IS_EMPTY( pxDelayedTaskList ) ) ); \ \ pxTemp = pxDelayedTaskList; \ pxDelayedTaskList = pxOverflowDelayedTaskList; \ pxOverflowDelayedTaskList = pxTemp; \ xNumOfOverflows++; \ prvResetNextTaskUnblockTime(); \ } /*-----------------------------------------------------------*/ /* * Place the task represented by pxTCB into the appropriate ready list for * the task. It is inserted at the end of the list. */ #define prvAddTaskToReadyList( pxTCB ) \ traceMOVED_TASK_TO_READY_STATE( pxTCB ); \ taskRECORD_READY_PRIORITY( ( pxTCB )->uxPriority ); \ vListInsertEnd( &( pxReadyTasksLists[ ( pxTCB )->uxPriority ] ), &( ( pxTCB )->xStateListItem ) ); \ tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB ) /*-----------------------------------------------------------*/ /* * Several functions take an TaskHandle_t parameter that can optionally be NULL, * where NULL is used to indicate that the handle of the currently executing * task should be used in place of the parameter. This macro simply checks to * see if the parameter is NULL and returns a pointer to the appropriate TCB. */ #define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( pxHandle ) ) /* The item value of the event list item is normally used to hold the priority of the task to which it belongs (coded to allow it to be held in reverse priority order). However, it is occasionally borrowed for other purposes. It is important its value is not updated due to a task priority change while it is being used for another purpose. The following bit definition is used to inform the scheduler that the value should not be changed - in which case it is the responsibility of whichever module is using the value to ensure it gets set back to its original value when it is released. */ #if( configUSE_16_BIT_TICKS == 1 ) #define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x8000U #else #define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x80000000UL #endif /* * Task control block. A task control block (TCB) is allocated for each task, * and stores task state information, including a pointer to the task's context * (the task's run time environment, including register values) */ typedef struct tskTaskControlBlock /* The old naming convention is used to prevent breaking kernel aware debuggers. */ { volatile StackType_t *pxTopOfStack; /*< Points to the location of the last item placed on the tasks stack. THIS MUST BE THE FIRST MEMBER OF THE TCB STRUCT. */ #if ( portUSING_MPU_WRAPPERS == 1 ) xMPU_SETTINGS xMPUSettings; /*< The MPU settings are defined as part of the port layer. THIS MUST BE THE SECOND MEMBER OF THE TCB STRUCT. */ #endif ListItem_t xStateListItem; /*< The list that the state list item of a task is reference from denotes the state of that task (Ready, Blocked, Suspended ). */ ListItem_t xEventListItem; /*< Used to reference a task from an event list. */ UBaseType_t uxPriority; /*< The priority of the task. 0 is the lowest priority. */ StackType_t *pxStack; /*< Points to the start of the stack. */ char pcTaskName[ configMAX_TASK_NAME_LEN ];/*< Descriptive name given to the task when created. Facilitates debugging only. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) ) StackType_t *pxEndOfStack; /*< Points to the highest valid address for the stack. */ #endif #if ( portCRITICAL_NESTING_IN_TCB == 1 ) UBaseType_t uxCriticalNesting; /*< Holds the critical section nesting depth for ports that do not maintain their own count in the port layer. */ #endif #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxTCBNumber; /*< Stores a number that increments each time a TCB is created. It allows debuggers to determine when a task has been deleted and then recreated. */ UBaseType_t uxTaskNumber; /*< Stores a number specifically for use by third party trace code. */ #endif #if ( configUSE_MUTEXES == 1 ) UBaseType_t uxBasePriority; /*< The priority last assigned to the task - used by the priority inheritance mechanism. */ UBaseType_t uxMutexesHeld; #endif #if ( configUSE_APPLICATION_TASK_TAG == 1 ) TaskHookFunction_t pxTaskTag; #endif #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) void *pvThreadLocalStoragePointers[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ]; #endif #if( configGENERATE_RUN_TIME_STATS == 1 ) uint32_t ulRunTimeCounter; /*< Stores the amount of time the task has spent in the Running state. */ #endif #if ( configUSE_NEWLIB_REENTRANT == 1 ) /* Allocate a Newlib reent structure that is specific to this task. Note Newlib support has been included by popular demand, but is not used by the FreeRTOS maintainers themselves. FreeRTOS is not responsible for resulting newlib operation. User must be familiar with newlib and must provide system-wide implementations of the necessary stubs. Be warned that (at the time of writing) the current newlib design implements a system-wide malloc() that must be provided with locks. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html for additional information. */ struct _reent xNewLib_reent; #endif #if( configUSE_TASK_NOTIFICATIONS == 1 ) volatile uint32_t ulNotifiedValue; volatile uint8_t ucNotifyState; #endif /* See the comments in FreeRTOS.h with the definition of tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE. */ #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the task is a statically allocated to ensure no attempt is made to free the memory. */ #endif #if( INCLUDE_xTaskAbortDelay == 1 ) uint8_t ucDelayAborted; #endif #if( configUSE_POSIX_ERRNO == 1 ) int iTaskErrno; #endif } tskTCB; /* The old tskTCB name is maintained above then typedefed to the new TCB_t name below to enable the use of older kernel aware debuggers. */ typedef tskTCB TCB_t; /*lint -save -e956 A manual analysis and inspection has been used to determine which static variables must be declared volatile. */ PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB = NULL; /* Lists for ready and blocked tasks. -------------------- xDelayedTaskList1 and xDelayedTaskList2 could be move to function scople but doing so breaks some kernel aware debuggers and debuggers that rely on removing the static qualifier. */ PRIVILEGED_DATA static List_t pxReadyTasksLists[ configMAX_PRIORITIES ];/*< Prioritised ready tasks. */ PRIVILEGED_DATA static List_t xDelayedTaskList1; /*< Delayed tasks. */ PRIVILEGED_DATA static List_t xDelayedTaskList2; /*< Delayed tasks (two lists are used - one for delays that have overflowed the current tick count. */ PRIVILEGED_DATA static List_t * volatile pxDelayedTaskList; /*< Points to the delayed task list currently being used. */ PRIVILEGED_DATA static List_t * volatile pxOverflowDelayedTaskList; /*< Points to the delayed task list currently being used to hold tasks that have overflowed the current tick count. */ PRIVILEGED_DATA static List_t xPendingReadyList; /*< Tasks that have been readied while the scheduler was suspended. They will be moved to the ready list when the scheduler is resumed. */ #if( INCLUDE_vTaskDelete == 1 ) PRIVILEGED_DATA static List_t xTasksWaitingTermination; /*< Tasks that have been deleted - but their memory not yet freed. */ PRIVILEGED_DATA static volatile UBaseType_t uxDeletedTasksWaitingCleanUp = ( UBaseType_t ) 0U; #endif #if ( INCLUDE_vTaskSuspend == 1 ) PRIVILEGED_DATA static List_t xSuspendedTaskList; /*< Tasks that are currently suspended. */ #endif /* Global POSIX errno. Its value is changed upon context switching to match the errno of the currently running task. */ #if ( configUSE_POSIX_ERRNO == 1 ) int FreeRTOS_errno = 0; #endif /* Other file private variables. --------------------------------*/ PRIVILEGED_DATA static volatile UBaseType_t uxCurrentNumberOfTasks = ( UBaseType_t ) 0U; PRIVILEGED_DATA static volatile TickType_t xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; PRIVILEGED_DATA static volatile UBaseType_t uxTopReadyPriority = tskIDLE_PRIORITY; PRIVILEGED_DATA static volatile BaseType_t xSchedulerRunning = pdFALSE; PRIVILEGED_DATA static volatile TickType_t xPendedTicks = ( TickType_t ) 0U; PRIVILEGED_DATA static volatile BaseType_t xYieldPending = pdFALSE; PRIVILEGED_DATA static volatile BaseType_t xNumOfOverflows = ( BaseType_t ) 0; PRIVILEGED_DATA static UBaseType_t uxTaskNumber = ( UBaseType_t ) 0U; PRIVILEGED_DATA static volatile TickType_t xNextTaskUnblockTime = ( TickType_t ) 0U; /* Initialised to portMAX_DELAY before the scheduler starts. */ PRIVILEGED_DATA static TaskHandle_t xIdleTaskHandle = NULL; /*< Holds the handle of the idle task. The idle task is created automatically when the scheduler is started. */ /* Context switches are held pending while the scheduler is suspended. Also, interrupts must not manipulate the xStateListItem of a TCB, or any of the lists the xStateListItem can be referenced from, if the scheduler is suspended. If an interrupt needs to unblock a task while the scheduler is suspended then it moves the task's event list item into the xPendingReadyList, ready for the kernel to move the task from the pending ready list into the real ready list when the scheduler is unsuspended. The pending ready list itself can only be accessed from a critical section. */ PRIVILEGED_DATA static volatile UBaseType_t uxSchedulerSuspended = ( UBaseType_t ) pdFALSE; #if ( configGENERATE_RUN_TIME_STATS == 1 ) /* Do not move these variables to function scope as doing so prevents the code working with debuggers that need to remove the static qualifier. */ PRIVILEGED_DATA static uint32_t ulTaskSwitchedInTime = 0UL; /*< Holds the value of a timer/counter the last time a task was switched in. */ PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL; /*< Holds the total amount of execution time as defined by the run time counter clock. */ #endif /*lint -restore */ /*-----------------------------------------------------------*/ /* Callback function prototypes. --------------------------*/ #if( configCHECK_FOR_STACK_OVERFLOW > 0 ) extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); #endif #if( configUSE_TICK_HOOK > 0 ) extern void vApplicationTickHook( void ); /*lint !e526 Symbol not defined as it is an application callback. */ #endif #if( configSUPPORT_STATIC_ALLOCATION == 1 ) extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ); /*lint !e526 Symbol not defined as it is an application callback. */ #endif /* File private functions. --------------------------------*/ /** * Utility task that simply returns pdTRUE if the task referenced by xTask is * currently in the Suspended state, or pdFALSE if the task referenced by xTask * is in any other state. */ #if ( INCLUDE_vTaskSuspend == 1 ) static BaseType_t prvTaskIsTaskSuspended( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; #endif /* INCLUDE_vTaskSuspend */ /* * Utility to ready all the lists used by the scheduler. This is called * automatically upon the creation of the first task. */ static void prvInitialiseTaskLists( void ) PRIVILEGED_FUNCTION; /* * The idle task, which as all tasks is implemented as a never ending loop. * The idle task is automatically created and added to the ready lists upon * creation of the first user task. * * The portTASK_FUNCTION_PROTO() macro is used to allow port/compiler specific * language extensions. The equivalent prototype for this function is: * * void prvIdleTask( void *pvParameters ); * */ static portTASK_FUNCTION_PROTO( prvIdleTask, pvParameters ); /* * Utility to free all memory allocated by the scheduler to hold a TCB, * including the stack pointed to by the TCB. * * This does not free memory allocated by the task itself (i.e. memory * allocated by calls to pvPortMalloc from within the tasks application code). */ #if ( INCLUDE_vTaskDelete == 1 ) static void prvDeleteTCB( TCB_t *pxTCB ) PRIVILEGED_FUNCTION; #endif /* * Used only by the idle task. This checks to see if anything has been placed * in the list of tasks waiting to be deleted. If so the task is cleaned up * and its TCB deleted. */ static void prvCheckTasksWaitingTermination( void ) PRIVILEGED_FUNCTION; /* * The currently executing task is entering the Blocked state. Add the task to * either the current or the overflow delayed task list. */ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) PRIVILEGED_FUNCTION; /* * Fills an TaskStatus_t structure with information on each task that is * referenced from the pxList list (which may be a ready list, a delayed list, * a suspended list, etc.). * * THIS FUNCTION IS INTENDED FOR DEBUGGING ONLY, AND SHOULD NOT BE CALLED FROM * NORMAL APPLICATION CODE. */ #if ( configUSE_TRACE_FACILITY == 1 ) static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) PRIVILEGED_FUNCTION; #endif /* * Searches pxList for a task with name pcNameToQuery - returning a handle to * the task if it is found, or NULL if the task is not found. */ #if ( INCLUDE_xTaskGetHandle == 1 ) static TCB_t *prvSearchForNameWithinSingleList( List_t *pxList, const char pcNameToQuery[] ) PRIVILEGED_FUNCTION; #endif /* * When a task is created, the stack of the task is filled with a known value. * This function determines the 'high water mark' of the task stack by * determining how much of the stack remains at the original preset value. */ #if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace( const uint8_t * pucStackByte ) PRIVILEGED_FUNCTION; #endif /* * Return the amount of time, in ticks, that will pass before the kernel will * next move a task from the Blocked state to the Running state. * * This conditional compilation should use inequality to 0, not equality to 1. * This is to ensure portSUPPRESS_TICKS_AND_SLEEP() can be called when user * defined low power mode implementations require configUSE_TICKLESS_IDLE to be * set to a value other than 1. */ #if ( configUSE_TICKLESS_IDLE != 0 ) static TickType_t prvGetExpectedIdleTime( void ) PRIVILEGED_FUNCTION; #endif /* * Set xNextTaskUnblockTime to the time at which the next Blocked state task * will exit the Blocked state. */ static void prvResetNextTaskUnblockTime( void ); #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) ) /* * Helper function used to pad task names with spaces when printing out * human readable tables of task information. */ static char *prvWriteNameToBuffer( char *pcBuffer, const char *pcTaskName ) PRIVILEGED_FUNCTION; #endif /* * Called after a Task_t structure has been allocated either statically or * dynamically to fill in the structure's members. */ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask, TCB_t *pxNewTCB, const MemoryRegion_t * const xRegions ) PRIVILEGED_FUNCTION; /* * Called after a new task has been created and initialised to place the task * under the control of the scheduler. */ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) PRIVILEGED_FUNCTION; /* * freertos_tasks_c_additions_init() should only be called if the user definable * macro FREERTOS_TASKS_C_ADDITIONS_INIT() is defined, as that is the only macro * called by the function. */ #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT static void freertos_tasks_c_additions_init( void ) PRIVILEGED_FUNCTION; #endif /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer ) { TCB_t *pxNewTCB; TaskHandle_t xReturn; configASSERT( puxStackBuffer != NULL ); configASSERT( pxTaskBuffer != NULL ); #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticTask_t equals the size of the real task structure. */ volatile size_t xSize = sizeof( StaticTask_t ); configASSERT( xSize == sizeof( TCB_t ) ); ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */ } #endif /* configASSERT_DEFINED */ if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) ) { /* The memory used for the task's TCB and stack are passed into this function - use them. */ pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */ pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ { /* Tasks can be created statically or dynamically, so note this task was created statically in case the task is later deleted. */ pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL ); prvAddNewTaskToReadyList( pxNewTCB ); } else { xReturn = NULL; } return xReturn; } #endif /* SUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ #if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) BaseType_t xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) { TCB_t *pxNewTCB; BaseType_t xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; configASSERT( pxTaskDefinition->puxStackBuffer != NULL ); configASSERT( pxTaskDefinition->pxTaskBuffer != NULL ); if( ( pxTaskDefinition->puxStackBuffer != NULL ) && ( pxTaskDefinition->pxTaskBuffer != NULL ) ) { /* Allocate space for the TCB. Where the memory comes from depends on the implementation of the port malloc function and whether or not static allocation is being used. */ pxNewTCB = ( TCB_t * ) pxTaskDefinition->pxTaskBuffer; /* Store the stack location in the TCB. */ pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) { /* Tasks can be created statically or dynamically, so note this task was created statically in case the task is later deleted. */ pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskDefinition->pvTaskCode, pxTaskDefinition->pcName, ( uint32_t ) pxTaskDefinition->usStackDepth, pxTaskDefinition->pvParameters, pxTaskDefinition->uxPriority, pxCreatedTask, pxNewTCB, pxTaskDefinition->xRegions ); prvAddNewTaskToReadyList( pxNewTCB ); xReturn = pdPASS; } return xReturn; } #endif /* ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ /*-----------------------------------------------------------*/ #if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) BaseType_t xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) { TCB_t *pxNewTCB; BaseType_t xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; configASSERT( pxTaskDefinition->puxStackBuffer ); if( pxTaskDefinition->puxStackBuffer != NULL ) { /* Allocate space for the TCB. Where the memory comes from depends on the implementation of the port malloc function and whether or not static allocation is being used. */ pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); if( pxNewTCB != NULL ) { /* Store the stack location in the TCB. */ pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) { /* Tasks can be created statically or dynamically, so note this task had a statically allocated stack in case it is later deleted. The TCB was allocated dynamically. */ pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_ONLY; } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskDefinition->pvTaskCode, pxTaskDefinition->pcName, ( uint32_t ) pxTaskDefinition->usStackDepth, pxTaskDefinition->pvParameters, pxTaskDefinition->uxPriority, pxCreatedTask, pxNewTCB, pxTaskDefinition->xRegions ); prvAddNewTaskToReadyList( pxNewTCB ); xReturn = pdPASS; } } return xReturn; } #endif /* portUSING_MPU_WRAPPERS */ /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const configSTACK_DEPTH_TYPE usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask ) { TCB_t *pxNewTCB; BaseType_t xReturn; /* If the stack grows down then allocate the stack then the TCB so the stack does not grow into the TCB. Likewise if the stack grows up then allocate the TCB then the stack. */ #if( portSTACK_GROWTH > 0 ) { /* Allocate space for the TCB. Where the memory comes from depends on the implementation of the port malloc function and whether or not static allocation is being used. */ pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); if( pxNewTCB != NULL ) { /* Allocate space for the stack used by the task being created. The base of the stack memory stored in the TCB so the task can be deleted later if required. */ pxNewTCB->pxStack = ( StackType_t * ) pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ if( pxNewTCB->pxStack == NULL ) { /* Could not allocate the stack. Delete the allocated TCB. */ vPortFree( pxNewTCB ); pxNewTCB = NULL; } } } #else /* portSTACK_GROWTH */ { StackType_t *pxStack; /* Allocate space for the stack used by the task being created. */ pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */ if( pxStack != NULL ) { /* Allocate space for the TCB. */ pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */ if( pxNewTCB != NULL ) { /* Store the stack location in the TCB. */ pxNewTCB->pxStack = pxStack; } else { /* The stack cannot be used as the TCB was not created. Free it again. */ vPortFree( pxStack ); } } else { pxNewTCB = NULL; } } #endif /* portSTACK_GROWTH */ if( pxNewTCB != NULL ) { #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */ { /* Tasks can be created statically or dynamically, so note this task was created dynamically in case it is later deleted. */ pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB; } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); prvAddNewTaskToReadyList( pxNewTCB ); xReturn = pdPASS; } else { xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; } return xReturn; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ /*-----------------------------------------------------------*/ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask, TCB_t *pxNewTCB, const MemoryRegion_t * const xRegions ) { StackType_t *pxTopOfStack; UBaseType_t x; #if( portUSING_MPU_WRAPPERS == 1 ) /* Should the task be created in privileged mode? */ BaseType_t xRunPrivileged; if( ( uxPriority & portPRIVILEGE_BIT ) != 0U ) { xRunPrivileged = pdTRUE; } else { xRunPrivileged = pdFALSE; } uxPriority &= ~portPRIVILEGE_BIT; #endif /* portUSING_MPU_WRAPPERS == 1 */ /* Avoid dependency on memset() if it is not required. */ #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 ) { /* Fill the stack with a known value to assist debugging. */ ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) ); } #endif /* tskSET_NEW_STACKS_TO_KNOWN_VALUE */ /* Calculate the top of stack address. This depends on whether the stack grows from high memory to low (as per the 80x86) or vice versa. portSTACK_GROWTH is used to make the result positive or negative as required by the port. */ #if( portSTACK_GROWTH < 0 ) { pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] ); pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */ /* Check the alignment of the calculated top of stack is correct. */ configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) ); #if( configRECORD_STACK_HIGH_ADDRESS == 1 ) { /* Also record the stack's high address, which may assist debugging. */ pxNewTCB->pxEndOfStack = pxTopOfStack; } #endif /* configRECORD_STACK_HIGH_ADDRESS */ } #else /* portSTACK_GROWTH */ { pxTopOfStack = pxNewTCB->pxStack; /* Check the alignment of the stack buffer is correct. */ configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxNewTCB->pxStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) ); /* The other extreme of the stack space is required if stack checking is performed. */ pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 ); } #endif /* portSTACK_GROWTH */ /* Store the task name in the TCB. */ if( pcName != NULL ) { for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) { pxNewTCB->pcTaskName[ x ] = pcName[ x ]; /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than configMAX_TASK_NAME_LEN characters just in case the memory after the string is not accessible (extremely unlikely). */ if( pcName[ x ] == ( char ) 0x00 ) { break; } else { mtCOVERAGE_TEST_MARKER(); } } /* Ensure the name string is terminated in the case that the string length was greater or equal to configMAX_TASK_NAME_LEN. */ pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0'; } else { /* The task has not been given a name, so just ensure there is a NULL terminator when it is read out. */ pxNewTCB->pcTaskName[ 0 ] = 0x00; } /* This is used as an array index so must ensure it's not too large. First remove the privilege bit if one is present. */ if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES ) { uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; } else { mtCOVERAGE_TEST_MARKER(); } pxNewTCB->uxPriority = uxPriority; #if ( configUSE_MUTEXES == 1 ) { pxNewTCB->uxBasePriority = uxPriority; pxNewTCB->uxMutexesHeld = 0; } #endif /* configUSE_MUTEXES */ vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get back to the containing TCB from a generic item in a list. */ listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB ); /* Event lists are always in priority order. */ listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); #if ( portCRITICAL_NESTING_IN_TCB == 1 ) { pxNewTCB->uxCriticalNesting = ( UBaseType_t ) 0U; } #endif /* portCRITICAL_NESTING_IN_TCB */ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) { pxNewTCB->pxTaskTag = NULL; } #endif /* configUSE_APPLICATION_TASK_TAG */ #if ( configGENERATE_RUN_TIME_STATS == 1 ) { pxNewTCB->ulRunTimeCounter = 0UL; } #endif /* configGENERATE_RUN_TIME_STATS */ #if ( portUSING_MPU_WRAPPERS == 1 ) { vPortStoreTaskMPUSettings( &( pxNewTCB->xMPUSettings ), xRegions, pxNewTCB->pxStack, ulStackDepth ); } #else { /* Avoid compiler warning about unreferenced parameter. */ ( void ) xRegions; } #endif #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) { for( x = 0; x < ( UBaseType_t ) configNUM_THREAD_LOCAL_STORAGE_POINTERS; x++ ) { pxNewTCB->pvThreadLocalStoragePointers[ x ] = NULL; } } #endif #if ( configUSE_TASK_NOTIFICATIONS == 1 ) { pxNewTCB->ulNotifiedValue = 0; pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; } #endif #if ( configUSE_NEWLIB_REENTRANT == 1 ) { /* Initialise this task's Newlib reent structure. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html for additional information. */ _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) ); } #endif #if( INCLUDE_xTaskAbortDelay == 1 ) { pxNewTCB->ucDelayAborted = pdFALSE; } #endif /* Initialize the TCB stack to look as if the task was already running, but had been interrupted by the scheduler. The return address is set to the start of the task function. Once the stack has been initialised the top of stack variable is updated. */ #if( portUSING_MPU_WRAPPERS == 1 ) { /* If the port has capability to detect stack overflow, pass the stack end address to the stack initialization function as well. */ #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) { #if( portSTACK_GROWTH < 0 ) { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvParameters, xRunPrivileged ); } #else /* portSTACK_GROWTH */ { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, pvParameters, xRunPrivileged ); } #endif /* portSTACK_GROWTH */ } #else /* portHAS_STACK_OVERFLOW_CHECKING */ { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters, xRunPrivileged ); } #endif /* portHAS_STACK_OVERFLOW_CHECKING */ } #else /* portUSING_MPU_WRAPPERS */ { /* If the port has capability to detect stack overflow, pass the stack end address to the stack initialization function as well. */ #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) { #if( portSTACK_GROWTH < 0 ) { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvParameters ); } #else /* portSTACK_GROWTH */ { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, pvParameters ); } #endif /* portSTACK_GROWTH */ } #else /* portHAS_STACK_OVERFLOW_CHECKING */ { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); } #endif /* portHAS_STACK_OVERFLOW_CHECKING */ } #endif /* portUSING_MPU_WRAPPERS */ if( pxCreatedTask != NULL ) { /* Pass the handle out in an anonymous way. The handle can be used to change the created task's priority, delete the created task, etc.*/ *pxCreatedTask = ( TaskHandle_t ) pxNewTCB; } else { mtCOVERAGE_TEST_MARKER(); } } /*-----------------------------------------------------------*/ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) { /* Ensure interrupts don't access the task lists while the lists are being updated. */ taskENTER_CRITICAL(); { uxCurrentNumberOfTasks++; if( pxCurrentTCB == NULL ) { /* There are no other tasks, or all the other tasks are in the suspended state - make this the current task. */ pxCurrentTCB = pxNewTCB; if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 ) { /* This is the first task to be created so do the preliminary initialisation required. We will not recover if this call fails, but we will report the failure. */ prvInitialiseTaskLists(); } else { mtCOVERAGE_TEST_MARKER(); } } else { /* If the scheduler is not already running, make this task the current task if it is the highest priority task to be created so far. */ if( xSchedulerRunning == pdFALSE ) { if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) { pxCurrentTCB = pxNewTCB; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } uxTaskNumber++; #if ( configUSE_TRACE_FACILITY == 1 ) { /* Add a counter into the TCB for tracing only. */ pxNewTCB->uxTCBNumber = uxTaskNumber; } #endif /* configUSE_TRACE_FACILITY */ traceTASK_CREATE( pxNewTCB ); prvAddTaskToReadyList( pxNewTCB ); portSETUP_TCB( pxNewTCB ); } taskEXIT_CRITICAL(); if( xSchedulerRunning != pdFALSE ) { /* If the created task is of a higher priority than the current task then it should run now. */ if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority ) { taskYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelete == 1 ) void vTaskDelete( TaskHandle_t xTaskToDelete ) { TCB_t *pxTCB; taskENTER_CRITICAL(); { /* If null is passed in here then it is the calling task that is being deleted. */ pxTCB = prvGetTCBFromHandle( xTaskToDelete ); /* Remove task from the ready/delayed list. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { taskRESET_READY_PRIORITY( pxTCB->uxPriority ); } else { mtCOVERAGE_TEST_MARKER(); } /* Is the task waiting on an event also? */ if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) { ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); } else { mtCOVERAGE_TEST_MARKER(); } /* Increment the uxTaskNumber also so kernel aware debuggers can detect that the task lists need re-generating. This is done before portPRE_TASK_DELETE_HOOK() as in the Windows port that macro will not return. */ uxTaskNumber++; if( pxTCB == pxCurrentTCB ) { /* A task is deleting itself. This cannot complete within the task itself, as a context switch to another task is required. Place the task in the termination list. The idle task will check the termination list and free up any memory allocated by the scheduler for the TCB and stack of the deleted task. */ vListInsertEnd( &xTasksWaitingTermination, &( pxTCB->xStateListItem ) ); /* Increment the ucTasksDeleted variable so the idle task knows there is a task that has been deleted and that it should therefore check the xTasksWaitingTermination list. */ ++uxDeletedTasksWaitingCleanUp; /* Call the delete hook before portPRE_TASK_DELETE_HOOK() as portPRE_TASK_DELETE_HOOK() does not return in the Win32 port. */ traceTASK_DELETE( pxTCB ); /* The pre-delete hook is primarily for the Windows simulator, in which Windows specific clean up operations are performed, after which it is not possible to yield away from this task - hence xYieldPending is used to latch that a context switch is required. */ portPRE_TASK_DELETE_HOOK( pxTCB, &xYieldPending ); } else { --uxCurrentNumberOfTasks; traceTASK_DELETE( pxTCB ); prvDeleteTCB( pxTCB ); /* Reset the next expected unblock time in case it referred to the task that has just been deleted. */ prvResetNextTaskUnblockTime(); } } taskEXIT_CRITICAL(); /* Force a reschedule if it is the currently running task that has just been deleted. */ if( xSchedulerRunning != pdFALSE ) { if( pxTCB == pxCurrentTCB ) { configASSERT( uxSchedulerSuspended == 0 ); portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } } #endif /* INCLUDE_vTaskDelete */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelayUntil == 1 ) void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) { TickType_t xTimeToWake; BaseType_t xAlreadyYielded, xShouldDelay = pdFALSE; configASSERT( pxPreviousWakeTime ); configASSERT( ( xTimeIncrement > 0U ) ); configASSERT( uxSchedulerSuspended == 0 ); vTaskSuspendAll(); { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount; /* Generate the tick time at which the task wants to wake. */ xTimeToWake = *pxPreviousWakeTime + xTimeIncrement; if( xConstTickCount < *pxPreviousWakeTime ) { /* The tick count has overflowed since this function was lasted called. In this case the only time we should ever actually delay is if the wake time has also overflowed, and the wake time is greater than the tick time. When this is the case it is as if neither time had overflowed. */ if( ( xTimeToWake < *pxPreviousWakeTime ) && ( xTimeToWake > xConstTickCount ) ) { xShouldDelay = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { /* The tick time has not overflowed. In this case we will delay if either the wake time has overflowed, and/or the tick time is less than the wake time. */ if( ( xTimeToWake < *pxPreviousWakeTime ) || ( xTimeToWake > xConstTickCount ) ) { xShouldDelay = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } /* Update the wake time ready for the next call. */ *pxPreviousWakeTime = xTimeToWake; if( xShouldDelay != pdFALSE ) { traceTASK_DELAY_UNTIL( xTimeToWake ); /* prvAddCurrentTaskToDelayedList() needs the block time, not the time to wake, so subtract the current tick count. */ prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE ); } else { mtCOVERAGE_TEST_MARKER(); } } xAlreadyYielded = xTaskResumeAll(); /* Force a reschedule if xTaskResumeAll has not already done so, we may have put ourselves to sleep. */ if( xAlreadyYielded == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* INCLUDE_vTaskDelayUntil */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelay == 1 ) void vTaskDelay( const TickType_t xTicksToDelay ) { BaseType_t xAlreadyYielded = pdFALSE; /* A delay time of zero just forces a reschedule. */ if( xTicksToDelay > ( TickType_t ) 0U ) { configASSERT( uxSchedulerSuspended == 0 ); vTaskSuspendAll(); { traceTASK_DELAY(); /* A task that is removed from the event list while the scheduler is suspended will not get placed in the ready list or removed from the blocked list until the scheduler is resumed. This task cannot be in an event list as it is the currently executing task. */ prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE ); } xAlreadyYielded = xTaskResumeAll(); } else { mtCOVERAGE_TEST_MARKER(); } /* Force a reschedule if xTaskResumeAll has not already done so, we may have put ourselves to sleep. */ if( xAlreadyYielded == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* INCLUDE_vTaskDelay */ /*-----------------------------------------------------------*/ #if( ( INCLUDE_eTaskGetState == 1 ) || ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_xTaskAbortDelay == 1 ) ) eTaskState eTaskGetState( TaskHandle_t xTask ) { eTaskState eReturn; List_t const * pxStateList, *pxDelayedList, *pxOverflowedDelayedList; const TCB_t * const pxTCB = xTask; configASSERT( pxTCB ); if( pxTCB == pxCurrentTCB ) { /* The task calling this function is querying its own state. */ eReturn = eRunning; } else { taskENTER_CRITICAL(); { pxStateList = listLIST_ITEM_CONTAINER( &( pxTCB->xStateListItem ) ); pxDelayedList = pxDelayedTaskList; pxOverflowedDelayedList = pxOverflowDelayedTaskList; } taskEXIT_CRITICAL(); if( ( pxStateList == pxDelayedList ) || ( pxStateList == pxOverflowedDelayedList ) ) { /* The task being queried is referenced from one of the Blocked lists. */ eReturn = eBlocked; } #if ( INCLUDE_vTaskSuspend == 1 ) else if( pxStateList == &xSuspendedTaskList ) { /* The task being queried is referenced from the suspended list. Is it genuinely suspended or is it blocked indefinitely? */ if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ) { #if( configUSE_TASK_NOTIFICATIONS == 1 ) { /* The task does not appear on the event list item of and of the RTOS objects, but could still be in the blocked state if it is waiting on its notification rather than waiting on an object. */ if( pxTCB->ucNotifyState == taskWAITING_NOTIFICATION ) { eReturn = eBlocked; } else { eReturn = eSuspended; } } #else { eReturn = eSuspended; } #endif } else { eReturn = eBlocked; } } #endif #if ( INCLUDE_vTaskDelete == 1 ) else if( ( pxStateList == &xTasksWaitingTermination ) || ( pxStateList == NULL ) ) { /* The task being queried is referenced from the deleted tasks list, or it is not referenced from any lists at all. */ eReturn = eDeleted; } #endif else /*lint !e525 Negative indentation is intended to make use of pre-processor clearer. */ { /* If the task is not in any other state, it must be in the Ready (including pending ready) state. */ eReturn = eReady; } } return eReturn; } /*lint !e818 xTask cannot be a pointer to const because it is a typedef. */ #endif /* INCLUDE_eTaskGetState */ /*-----------------------------------------------------------*/ #if ( INCLUDE_uxTaskPriorityGet == 1 ) UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) { TCB_t const *pxTCB; UBaseType_t uxReturn; taskENTER_CRITICAL(); { /* If null is passed in here then it is the priority of the task that called uxTaskPriorityGet() that is being queried. */ pxTCB = prvGetTCBFromHandle( xTask ); uxReturn = pxTCB->uxPriority; } taskEXIT_CRITICAL(); return uxReturn; } #endif /* INCLUDE_uxTaskPriorityGet */ /*-----------------------------------------------------------*/ #if ( INCLUDE_uxTaskPriorityGet == 1 ) UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) { TCB_t const *pxTCB; UBaseType_t uxReturn, uxSavedInterruptState; /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are keep permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptState = portSET_INTERRUPT_MASK_FROM_ISR(); { /* If null is passed in here then it is the priority of the calling task that is being queried. */ pxTCB = prvGetTCBFromHandle( xTask ); uxReturn = pxTCB->uxPriority; } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptState ); return uxReturn; } #endif /* INCLUDE_uxTaskPriorityGet */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskPrioritySet == 1 ) void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) { TCB_t *pxTCB; UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry; BaseType_t xYieldRequired = pdFALSE; configASSERT( ( uxNewPriority < configMAX_PRIORITIES ) ); /* Ensure the new priority is valid. */ if( uxNewPriority >= ( UBaseType_t ) configMAX_PRIORITIES ) { uxNewPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; } else { mtCOVERAGE_TEST_MARKER(); } taskENTER_CRITICAL(); { /* If null is passed in here then it is the priority of the calling task that is being changed. */ pxTCB = prvGetTCBFromHandle( xTask ); traceTASK_PRIORITY_SET( pxTCB, uxNewPriority ); #if ( configUSE_MUTEXES == 1 ) { uxCurrentBasePriority = pxTCB->uxBasePriority; } #else { uxCurrentBasePriority = pxTCB->uxPriority; } #endif if( uxCurrentBasePriority != uxNewPriority ) { /* The priority change may have readied a task of higher priority than the calling task. */ if( uxNewPriority > uxCurrentBasePriority ) { if( pxTCB != pxCurrentTCB ) { /* The priority of a task other than the currently running task is being raised. Is the priority being raised above that of the running task? */ if( uxNewPriority >= pxCurrentTCB->uxPriority ) { xYieldRequired = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { /* The priority of the running task is being raised, but the running task must already be the highest priority task able to run so no yield is required. */ } } else if( pxTCB == pxCurrentTCB ) { /* Setting the priority of the running task down means there may now be another task of higher priority that is ready to execute. */ xYieldRequired = pdTRUE; } else { /* Setting the priority of any other task down does not require a yield as the running task must be above the new priority of the task being modified. */ } /* Remember the ready list the task might be referenced from before its uxPriority member is changed so the taskRESET_READY_PRIORITY() macro can function correctly. */ uxPriorityUsedOnEntry = pxTCB->uxPriority; #if ( configUSE_MUTEXES == 1 ) { /* Only change the priority being used if the task is not currently using an inherited priority. */ if( pxTCB->uxBasePriority == pxTCB->uxPriority ) { pxTCB->uxPriority = uxNewPriority; } else { mtCOVERAGE_TEST_MARKER(); } /* The base priority gets set whatever. */ pxTCB->uxBasePriority = uxNewPriority; } #else { pxTCB->uxPriority = uxNewPriority; } #endif /* Only reset the event list item value if the value is not being used for anything else. */ if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL ) { listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxNewPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ } else { mtCOVERAGE_TEST_MARKER(); } /* If the task is in the blocked or suspended list we need do nothing more than change its priority variable. However, if the task is in a ready list it needs to be removed and placed in the list appropriate to its new priority. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE ) { /* The task is currently in its ready list - remove before adding it to it's new ready list. As we are in a critical section we can do this even if the scheduler is suspended. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { /* It is known that the task is in its ready list so there is no need to check again and the port level reset macro can be called directly. */ portRESET_READY_PRIORITY( uxPriorityUsedOnEntry, uxTopReadyPriority ); } else { mtCOVERAGE_TEST_MARKER(); } prvAddTaskToReadyList( pxTCB ); } else { mtCOVERAGE_TEST_MARKER(); } if( xYieldRequired != pdFALSE ) { taskYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } /* Remove compiler warning about unused variables when the port optimised task selection is not being used. */ ( void ) uxPriorityUsedOnEntry; } } taskEXIT_CRITICAL(); } #endif /* INCLUDE_vTaskPrioritySet */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskSuspend == 1 ) void vTaskSuspend( TaskHandle_t xTaskToSuspend ) { TCB_t *pxTCB; taskENTER_CRITICAL(); { /* If null is passed in here then it is the running task that is being suspended. */ pxTCB = prvGetTCBFromHandle( xTaskToSuspend ); traceTASK_SUSPEND( pxTCB ); /* Remove task from the ready/delayed list and place in the suspended list. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { taskRESET_READY_PRIORITY( pxTCB->uxPriority ); } else { mtCOVERAGE_TEST_MARKER(); } /* Is the task waiting on an event also? */ if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) { ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); } else { mtCOVERAGE_TEST_MARKER(); } vListInsertEnd( &xSuspendedTaskList, &( pxTCB->xStateListItem ) ); #if( configUSE_TASK_NOTIFICATIONS == 1 ) { if( pxTCB->ucNotifyState == taskWAITING_NOTIFICATION ) { /* The task was blocked to wait for a notification, but is now suspended, so no notification was received. */ pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; } } #endif } taskEXIT_CRITICAL(); if( xSchedulerRunning != pdFALSE ) { /* Reset the next expected unblock time in case it referred to the task that is now in the Suspended state. */ taskENTER_CRITICAL(); { prvResetNextTaskUnblockTime(); } taskEXIT_CRITICAL(); } else { mtCOVERAGE_TEST_MARKER(); } if( pxTCB == pxCurrentTCB ) { if( xSchedulerRunning != pdFALSE ) { /* The current task has just been suspended. */ configASSERT( uxSchedulerSuspended == 0 ); portYIELD_WITHIN_API(); } else { /* The scheduler is not running, but the task that was pointed to by pxCurrentTCB has just been suspended and pxCurrentTCB must be adjusted to point to a different task. */ if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == uxCurrentNumberOfTasks ) /*lint !e931 Right has no side effect, just volatile. */ { /* No other tasks are ready, so set pxCurrentTCB back to NULL so when the next task is created pxCurrentTCB will be set to point to it no matter what its relative priority is. */ pxCurrentTCB = NULL; } else { vTaskSwitchContext(); } } } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* INCLUDE_vTaskSuspend */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskSuspend == 1 ) static BaseType_t prvTaskIsTaskSuspended( const TaskHandle_t xTask ) { BaseType_t xReturn = pdFALSE; const TCB_t * const pxTCB = xTask; /* Accesses xPendingReadyList so must be called from a critical section. */ /* It does not make sense to check if the calling task is suspended. */ configASSERT( xTask ); /* Is the task being resumed actually in the suspended list? */ if( listIS_CONTAINED_WITHIN( &xSuspendedTaskList, &( pxTCB->xStateListItem ) ) != pdFALSE ) { /* Has the task already been resumed from within an ISR? */ if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) == pdFALSE ) { /* Is it in the suspended list because it is in the Suspended state, or because is is blocked with no timeout? */ if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdFALSE ) /*lint !e961. The cast is only redundant when NULL is used. */ { xReturn = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } return xReturn; } /*lint !e818 xTask cannot be a pointer to const because it is a typedef. */ #endif /* INCLUDE_vTaskSuspend */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskSuspend == 1 ) void vTaskResume( TaskHandle_t xTaskToResume ) { TCB_t * const pxTCB = xTaskToResume; /* It does not make sense to resume the calling task. */ configASSERT( xTaskToResume ); /* The parameter cannot be NULL as it is impossible to resume the currently executing task. */ if( ( pxTCB != pxCurrentTCB ) && ( pxTCB != NULL ) ) { taskENTER_CRITICAL(); { if( prvTaskIsTaskSuspended( pxTCB ) != pdFALSE ) { traceTASK_RESUME( pxTCB ); /* The ready list can be accessed even if the scheduler is suspended because this is inside a critical section. */ ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); /* A higher priority task may have just been resumed. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) { /* This yield may not cause the task just resumed to run, but will leave the lists in the correct state for the next yield. */ taskYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* INCLUDE_vTaskSuspend */ /*-----------------------------------------------------------*/ #if ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) { BaseType_t xYieldRequired = pdFALSE; TCB_t * const pxTCB = xTaskToResume; UBaseType_t uxSavedInterruptStatus; configASSERT( xTaskToResume ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are keep permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { if( prvTaskIsTaskSuspended( pxTCB ) != pdFALSE ) { traceTASK_RESUME_FROM_ISR( pxTCB ); /* Check the ready lists can be accessed. */ if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { /* Ready lists can be accessed so move the task from the suspended list to the ready list directly. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) { xYieldRequired = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); } else { /* The delayed or ready lists cannot be accessed so the task is held in the pending ready list until the scheduler is unsuspended. */ vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); } } else { mtCOVERAGE_TEST_MARKER(); } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xYieldRequired; } #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */ /*-----------------------------------------------------------*/ void vTaskStartScheduler( void ) { BaseType_t xReturn; /* Add the idle task at the lowest priority. */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { StaticTask_t *pxIdleTaskTCBBuffer = NULL; StackType_t *pxIdleTaskStackBuffer = NULL; uint32_t ulIdleTaskStackSize; /* The Idle task is created using user provided RAM - obtain the address of the RAM then create the idle task. */ vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize ); xIdleTaskHandle = xTaskCreateStatic( prvIdleTask, configIDLE_TASK_NAME, ulIdleTaskStackSize, ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */ portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */ pxIdleTaskStackBuffer, pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */ if( xIdleTaskHandle != NULL ) { xReturn = pdPASS; } else { xReturn = pdFAIL; } } #else { /* The Idle task is being created using dynamically allocated RAM. */ xReturn = xTaskCreate( prvIdleTask, configIDLE_TASK_NAME, configMINIMAL_STACK_SIZE, ( void * ) NULL, portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */ &xIdleTaskHandle ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */ } #endif /* configSUPPORT_STATIC_ALLOCATION */ #if ( configUSE_TIMERS == 1 ) { if( xReturn == pdPASS ) { xReturn = xTimerCreateTimerTask(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_TIMERS */ if( xReturn == pdPASS ) { /* freertos_tasks_c_additions_init() should only be called if the user definable macro FREERTOS_TASKS_C_ADDITIONS_INIT() is defined, as that is the only macro called by the function. */ #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT { freertos_tasks_c_additions_init(); } #endif /* Interrupts are turned off here, to ensure a tick does not occur before or during the call to xPortStartScheduler(). The stacks of the created tasks contain a status word with interrupts switched on so interrupts will automatically get re-enabled when the first task starts to run. */ portDISABLE_INTERRUPTS(); #if ( configUSE_NEWLIB_REENTRANT == 1 ) { /* Switch Newlib's _impure_ptr variable to point to the _reent structure specific to the task that will run first. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html for additional information. */ _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); } #endif /* configUSE_NEWLIB_REENTRANT */ xNextTaskUnblockTime = portMAX_DELAY; xSchedulerRunning = pdTRUE; xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; /* If configGENERATE_RUN_TIME_STATS is defined then the following macro must be defined to configure the timer/counter used to generate the run time counter time base. NOTE: If configGENERATE_RUN_TIME_STATS is set to 0 and the following line fails to build then ensure you do not have portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() defined in your FreeRTOSConfig.h file. */ portCONFIGURE_TIMER_FOR_RUN_TIME_STATS(); traceTASK_SWITCHED_IN(); /* Setting up the timer tick is hardware specific and thus in the portable interface. */ if( xPortStartScheduler() != pdFALSE ) { /* Should not reach here as if the scheduler is running the function will not return. */ } else { /* Should only reach here if a task calls xTaskEndScheduler(). */ } } else { /* This line will only be reached if the kernel could not be started, because there was not enough FreeRTOS heap to create the idle task or the timer task. */ configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ); } /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0, meaning xIdleTaskHandle is not used anywhere else. */ ( void ) xIdleTaskHandle; } /*-----------------------------------------------------------*/ void vTaskEndScheduler( void ) { /* Stop the scheduler interrupts and call the portable scheduler end routine so the original ISRs can be restored if necessary. The port layer must ensure interrupts enable bit is left in the correct state. */ portDISABLE_INTERRUPTS(); xSchedulerRunning = pdFALSE; vPortEndScheduler(); } /*----------------------------------------------------------*/ void vTaskSuspendAll( void ) { /* A critical section is not required as the variable is of type BaseType_t. Please read Richard Barry's reply in the following link to a post in the FreeRTOS support forum before reporting this as a bug! - http://goo.gl/wu4acr */ /* portSOFRWARE_BARRIER() is only implemented for emulated/simulated ports that do not otherwise exhibit real time behaviour. */ portSOFTWARE_BARRIER(); /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment is used to allow calls to vTaskSuspendAll() to nest. */ ++uxSchedulerSuspended; /* Enforces ordering for ports and optimised compilers that may otherwise place the above increment elsewhere. */ portMEMORY_BARRIER(); } /*----------------------------------------------------------*/ #if ( configUSE_TICKLESS_IDLE != 0 ) static TickType_t prvGetExpectedIdleTime( void ) { TickType_t xReturn; UBaseType_t uxHigherPriorityReadyTasks = pdFALSE; /* uxHigherPriorityReadyTasks takes care of the case where configUSE_PREEMPTION is 0, so there may be tasks above the idle priority task that are in the Ready state, even though the idle task is running. */ #if( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) { if( uxTopReadyPriority > tskIDLE_PRIORITY ) { uxHigherPriorityReadyTasks = pdTRUE; } } #else { const UBaseType_t uxLeastSignificantBit = ( UBaseType_t ) 0x01; /* When port optimised task selection is used the uxTopReadyPriority variable is used as a bit map. If bits other than the least significant bit are set then there are tasks that have a priority above the idle priority that are in the Ready state. This takes care of the case where the co-operative scheduler is in use. */ if( uxTopReadyPriority > uxLeastSignificantBit ) { uxHigherPriorityReadyTasks = pdTRUE; } } #endif if( pxCurrentTCB->uxPriority > tskIDLE_PRIORITY ) { xReturn = 0; } else if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > 1 ) { /* There are other idle priority tasks in the ready state. If time slicing is used then the very next tick interrupt must be processed. */ xReturn = 0; } else if( uxHigherPriorityReadyTasks != pdFALSE ) { /* There are tasks in the Ready state that have a priority above the idle priority. This path can only be reached if configUSE_PREEMPTION is 0. */ xReturn = 0; } else { xReturn = xNextTaskUnblockTime - xTickCount; } return xReturn; } #endif /* configUSE_TICKLESS_IDLE */ /*----------------------------------------------------------*/ BaseType_t xTaskResumeAll( void ) { TCB_t *pxTCB = NULL; BaseType_t xAlreadyYielded = pdFALSE; /* If uxSchedulerSuspended is zero then this function does not match a previous call to vTaskSuspendAll(). */ configASSERT( uxSchedulerSuspended ); /* It is possible that an ISR caused a task to be removed from an event list while the scheduler was suspended. If this was the case then the removed task will have been added to the xPendingReadyList. Once the scheduler has been resumed it is safe to move all the pending ready tasks from this list into their appropriate ready list. */ taskENTER_CRITICAL(); { --uxSchedulerSuspended; if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U ) { /* Move any readied tasks from the pending list into the appropriate ready list. */ while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) { pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); /* If the moved task has a priority higher than the current task then a yield must be performed. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) { xYieldPending = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } if( pxTCB != NULL ) { /* A task was unblocked while the scheduler was suspended, which may have prevented the next unblock time from being re-calculated, in which case re-calculate it now. Mainly important for low power tickless implementations, where this can prevent an unnecessary exit from low power state. */ prvResetNextTaskUnblockTime(); } /* If any ticks occurred while the scheduler was suspended then they should be processed now. This ensures the tick count does not slip, and that any delayed tasks are resumed at the correct time. */ { TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */ if( xPendedCounts > ( TickType_t ) 0U ) { do { if( xTaskIncrementTick() != pdFALSE ) { xYieldPending = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } --xPendedCounts; } while( xPendedCounts > ( TickType_t ) 0U ); xPendedTicks = 0; } else { mtCOVERAGE_TEST_MARKER(); } } if( xYieldPending != pdFALSE ) { #if( configUSE_PREEMPTION != 0 ) { xAlreadyYielded = pdTRUE; } #endif taskYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); return xAlreadyYielded; } /*-----------------------------------------------------------*/ TickType_t xTaskGetTickCount( void ) { TickType_t xTicks; /* Critical section required if running on a 16 bit processor. */ portTICK_TYPE_ENTER_CRITICAL(); { xTicks = xTickCount; } portTICK_TYPE_EXIT_CRITICAL(); return xTicks; } /*-----------------------------------------------------------*/ TickType_t xTaskGetTickCountFromISR( void ) { TickType_t xReturn; UBaseType_t uxSavedInterruptStatus; /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are kept permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR(); { xReturn = xTickCount; } portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } /*-----------------------------------------------------------*/ UBaseType_t uxTaskGetNumberOfTasks( void ) { /* A critical section is not required because the variables are of type BaseType_t. */ return uxCurrentNumberOfTasks; } /*-----------------------------------------------------------*/ char *pcTaskGetName( TaskHandle_t xTaskToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { TCB_t *pxTCB; /* If null is passed in here then the name of the calling task is being queried. */ pxTCB = prvGetTCBFromHandle( xTaskToQuery ); configASSERT( pxTCB ); return &( pxTCB->pcTaskName[ 0 ] ); } /*-----------------------------------------------------------*/ #if ( INCLUDE_xTaskGetHandle == 1 ) static TCB_t *prvSearchForNameWithinSingleList( List_t *pxList, const char pcNameToQuery[] ) { TCB_t *pxNextTCB, *pxFirstTCB, *pxReturn = NULL; UBaseType_t x; char cNextChar; BaseType_t xBreakLoop; /* This function is called with the scheduler suspended. */ if( listCURRENT_LIST_LENGTH( pxList ) > ( UBaseType_t ) 0 ) { listGET_OWNER_OF_NEXT_ENTRY( pxFirstTCB, pxList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ do { listGET_OWNER_OF_NEXT_ENTRY( pxNextTCB, pxList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ /* Check each character in the name looking for a match or mismatch. */ xBreakLoop = pdFALSE; for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) { cNextChar = pxNextTCB->pcTaskName[ x ]; if( cNextChar != pcNameToQuery[ x ] ) { /* Characters didn't match. */ xBreakLoop = pdTRUE; } else if( cNextChar == ( char ) 0x00 ) { /* Both strings terminated, a match must have been found. */ pxReturn = pxNextTCB; xBreakLoop = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } if( xBreakLoop != pdFALSE ) { break; } } if( pxReturn != NULL ) { /* The handle has been found. */ break; } } while( pxNextTCB != pxFirstTCB ); } else { mtCOVERAGE_TEST_MARKER(); } return pxReturn; } #endif /* INCLUDE_xTaskGetHandle */ /*-----------------------------------------------------------*/ #if ( INCLUDE_xTaskGetHandle == 1 ) TaskHandle_t xTaskGetHandle( const char *pcNameToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t uxQueue = configMAX_PRIORITIES; TCB_t* pxTCB; /* Task names will be truncated to configMAX_TASK_NAME_LEN - 1 bytes. */ configASSERT( strlen( pcNameToQuery ) < configMAX_TASK_NAME_LEN ); vTaskSuspendAll(); { /* Search the ready lists. */ do { uxQueue--; pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) &( pxReadyTasksLists[ uxQueue ] ), pcNameToQuery ); if( pxTCB != NULL ) { /* Found the handle. */ break; } } while( uxQueue > ( UBaseType_t ) tskIDLE_PRIORITY ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ /* Search the delayed lists. */ if( pxTCB == NULL ) { pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) pxDelayedTaskList, pcNameToQuery ); } if( pxTCB == NULL ) { pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) pxOverflowDelayedTaskList, pcNameToQuery ); } #if ( INCLUDE_vTaskSuspend == 1 ) { if( pxTCB == NULL ) { /* Search the suspended list. */ pxTCB = prvSearchForNameWithinSingleList( &xSuspendedTaskList, pcNameToQuery ); } } #endif #if( INCLUDE_vTaskDelete == 1 ) { if( pxTCB == NULL ) { /* Search the deleted list. */ pxTCB = prvSearchForNameWithinSingleList( &xTasksWaitingTermination, pcNameToQuery ); } } #endif } ( void ) xTaskResumeAll(); return pxTCB; } #endif /* INCLUDE_xTaskGetHandle */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) { UBaseType_t uxTask = 0, uxQueue = configMAX_PRIORITIES; vTaskSuspendAll(); { /* Is there a space in the array for each task in the system? */ if( uxArraySize >= uxCurrentNumberOfTasks ) { /* Fill in an TaskStatus_t structure with information on each task in the Ready state. */ do { uxQueue--; uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &( pxReadyTasksLists[ uxQueue ] ), eReady ); } while( uxQueue > ( UBaseType_t ) tskIDLE_PRIORITY ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ /* Fill in an TaskStatus_t structure with information on each task in the Blocked state. */ uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), ( List_t * ) pxDelayedTaskList, eBlocked ); uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), ( List_t * ) pxOverflowDelayedTaskList, eBlocked ); #if( INCLUDE_vTaskDelete == 1 ) { /* Fill in an TaskStatus_t structure with information on each task that has been deleted but not yet cleaned up. */ uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xTasksWaitingTermination, eDeleted ); } #endif #if ( INCLUDE_vTaskSuspend == 1 ) { /* Fill in an TaskStatus_t structure with information on each task in the Suspended state. */ uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xSuspendedTaskList, eSuspended ); } #endif #if ( configGENERATE_RUN_TIME_STATS == 1) { if( pulTotalRunTime != NULL ) { #ifdef portALT_GET_RUN_TIME_COUNTER_VALUE portALT_GET_RUN_TIME_COUNTER_VALUE( ( *pulTotalRunTime ) ); #else *pulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE(); #endif } } #else { if( pulTotalRunTime != NULL ) { *pulTotalRunTime = 0; } } #endif } else { mtCOVERAGE_TEST_MARKER(); } } ( void ) xTaskResumeAll(); return uxTask; } #endif /* configUSE_TRACE_FACILITY */ /*----------------------------------------------------------*/ #if ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) TaskHandle_t xTaskGetIdleTaskHandle( void ) { /* If xTaskGetIdleTaskHandle() is called before the scheduler has been started, then xIdleTaskHandle will be NULL. */ configASSERT( ( xIdleTaskHandle != NULL ) ); return xIdleTaskHandle; } #endif /* INCLUDE_xTaskGetIdleTaskHandle */ /*----------------------------------------------------------*/ /* This conditional compilation should use inequality to 0, not equality to 1. This is to ensure vTaskStepTick() is available when user defined low power mode implementations require configUSE_TICKLESS_IDLE to be set to a value other than 1. */ #if ( configUSE_TICKLESS_IDLE != 0 ) void vTaskStepTick( const TickType_t xTicksToJump ) { /* Correct the tick count value after a period during which the tick was suppressed. Note this does *not* call the tick hook function for each stepped tick. */ configASSERT( ( xTickCount + xTicksToJump ) <= xNextTaskUnblockTime ); xTickCount += xTicksToJump; traceINCREASE_TICK_COUNT( xTicksToJump ); } #endif /* configUSE_TICKLESS_IDLE */ /*----------------------------------------------------------*/ BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) { BaseType_t xYieldRequired = pdFALSE; /* Must not be called with the scheduler suspended as the implementation relies on xPendedTicks being wound down to 0 in xTaskResumeAll(). */ configASSERT( uxSchedulerSuspended == 0 ); /* Use xPendedTicks to mimic xTicksToCatchUp number of ticks occurring when the scheduler is suspended so the ticks are executed in xTaskResumeAll(). */ vTaskSuspendAll(); xPendedTicks += xTicksToCatchUp; xYieldRequired = xTaskResumeAll(); return xYieldRequired; } /*----------------------------------------------------------*/ #if ( INCLUDE_xTaskAbortDelay == 1 ) BaseType_t xTaskAbortDelay( TaskHandle_t xTask ) { TCB_t *pxTCB = xTask; BaseType_t xReturn; configASSERT( pxTCB ); vTaskSuspendAll(); { /* A task can only be prematurely removed from the Blocked state if it is actually in the Blocked state. */ if( eTaskGetState( xTask ) == eBlocked ) { xReturn = pdPASS; /* Remove the reference to the task from the blocked list. An interrupt won't touch the xStateListItem because the scheduler is suspended. */ ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); /* Is the task waiting on an event also? If so remove it from the event list too. Interrupts can touch the event list item, even though the scheduler is suspended, so a critical section is used. */ taskENTER_CRITICAL(); { if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) { ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); /* This lets the task know it was forcibly removed from the blocked state so it should not re-evaluate its block time and then block again. */ pxTCB->ucDelayAborted = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); /* Place the unblocked task into the appropriate ready list. */ prvAddTaskToReadyList( pxTCB ); /* A task being unblocked cannot cause an immediate context switch if preemption is turned off. */ #if ( configUSE_PREEMPTION == 1 ) { /* Preemption is on, but a context switch should only be performed if the unblocked task has a priority that is equal to or higher than the currently executing task. */ if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* Pend the yield to be performed when the scheduler is unsuspended. */ xYieldPending = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_PREEMPTION */ } else { xReturn = pdFAIL; } } ( void ) xTaskResumeAll(); return xReturn; } #endif /* INCLUDE_xTaskAbortDelay */ /*----------------------------------------------------------*/ BaseType_t xTaskIncrementTick( void ) { TCB_t * pxTCB; TickType_t xItemValue; BaseType_t xSwitchRequired = pdFALSE; /* Called by the portable layer each time a tick interrupt occurs. Increments the tick then checks to see if the new tick value will cause any tasks to be unblocked. */ traceTASK_INCREMENT_TICK( xTickCount ); if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1; /* Increment the RTOS tick, switching the delayed and overflowed delayed lists if it wraps to 0. */ xTickCount = xConstTickCount; if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */ { taskSWITCH_DELAYED_LISTS(); } else { mtCOVERAGE_TEST_MARKER(); } /* See if this tick has made a timeout expire. Tasks are stored in the queue in the order of their wake time - meaning once one task has been found whose block time has not expired there is no need to look any further down the list. */ if( xConstTickCount >= xNextTaskUnblockTime ) { for( ;; ) { if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) { /* The delayed list is empty. Set xNextTaskUnblockTime to the maximum possible value so it is extremely unlikely that the if( xTickCount >= xNextTaskUnblockTime ) test will pass next time through. */ xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ break; } else { /* The delayed list is not empty, get the value of the item at the head of the delayed list. This is the time at which the task at the head of the delayed list must be removed from the Blocked state. */ pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) ); if( xConstTickCount < xItemValue ) { /* It is not time to unblock this item yet, but the item value is the time at which the task at the head of the blocked list must be removed from the Blocked state - so record the item value in xNextTaskUnblockTime. */ xNextTaskUnblockTime = xItemValue; break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */ } else { mtCOVERAGE_TEST_MARKER(); } /* It is time to remove the item from the Blocked state. */ ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); /* Is the task waiting on an event also? If so remove it from the event list. */ if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) { ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); } else { mtCOVERAGE_TEST_MARKER(); } /* Place the unblocked task into the appropriate ready list. */ prvAddTaskToReadyList( pxTCB ); /* A task being unblocked cannot cause an immediate context switch if preemption is turned off. */ #if ( configUSE_PREEMPTION == 1 ) { /* Preemption is on, but a context switch should only be performed if the unblocked task has a priority that is equal to or higher than the currently executing task. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) { xSwitchRequired = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_PREEMPTION */ } } } /* Tasks of equal priority to the currently running task will share processing time (time slice) if preemption is on, and the application writer has not explicitly turned time slicing off. */ #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) ) { if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 ) { xSwitchRequired = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) ) */ #if ( configUSE_TICK_HOOK == 1 ) { /* Guard against the tick hook being called when the pended tick count is being unwound (when the scheduler is being unlocked). */ if( xPendedTicks == ( TickType_t ) 0 ) { vApplicationTickHook(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_TICK_HOOK */ #if ( configUSE_PREEMPTION == 1 ) { if( xYieldPending != pdFALSE ) { xSwitchRequired = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_PREEMPTION */ } else { ++xPendedTicks; /* The tick hook gets called at regular intervals, even if the scheduler is locked. */ #if ( configUSE_TICK_HOOK == 1 ) { vApplicationTickHook(); } #endif } return xSwitchRequired; } /*-----------------------------------------------------------*/ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) { TCB_t *xTCB; /* If xTask is NULL then it is the task hook of the calling task that is getting set. */ if( xTask == NULL ) { xTCB = ( TCB_t * ) pxCurrentTCB; } else { xTCB = xTask; } /* Save the hook function in the TCB. A critical section is required as the value can be accessed from an interrupt. */ taskENTER_CRITICAL(); { xTCB->pxTaskTag = pxHookFunction; } taskEXIT_CRITICAL(); } #endif /* configUSE_APPLICATION_TASK_TAG */ /*-----------------------------------------------------------*/ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) TaskHookFunction_t xTaskGetApplicationTaskTag( TaskHandle_t xTask ) { TCB_t *pxTCB; TaskHookFunction_t xReturn; /* If xTask is NULL then set the calling task's hook. */ pxTCB = prvGetTCBFromHandle( xTask ); /* Save the hook function in the TCB. A critical section is required as the value can be accessed from an interrupt. */ taskENTER_CRITICAL(); { xReturn = pxTCB->pxTaskTag; } taskEXIT_CRITICAL(); return xReturn; } #endif /* configUSE_APPLICATION_TASK_TAG */ /*-----------------------------------------------------------*/ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) TaskHookFunction_t xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask ) { TCB_t *pxTCB; TaskHookFunction_t xReturn; UBaseType_t uxSavedInterruptStatus; /* If xTask is NULL then set the calling task's hook. */ pxTCB = prvGetTCBFromHandle( xTask ); /* Save the hook function in the TCB. A critical section is required as the value can be accessed from an interrupt. */ uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { xReturn = pxTCB->pxTaskTag; } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } #endif /* configUSE_APPLICATION_TASK_TAG */ /*-----------------------------------------------------------*/ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) { TCB_t *xTCB; BaseType_t xReturn; /* If xTask is NULL then we are calling our own task hook. */ if( xTask == NULL ) { xTCB = pxCurrentTCB; } else { xTCB = xTask; } if( xTCB->pxTaskTag != NULL ) { xReturn = xTCB->pxTaskTag( pvParameter ); } else { xReturn = pdFAIL; } return xReturn; } #endif /* configUSE_APPLICATION_TASK_TAG */ /*-----------------------------------------------------------*/ void vTaskSwitchContext( void ) { if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE ) { /* The scheduler is currently suspended - do not allow a context switch. */ xYieldPending = pdTRUE; } else { xYieldPending = pdFALSE; traceTASK_SWITCHED_OUT(); #if ( configGENERATE_RUN_TIME_STATS == 1 ) { #ifdef portALT_GET_RUN_TIME_COUNTER_VALUE portALT_GET_RUN_TIME_COUNTER_VALUE( ulTotalRunTime ); #else ulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE(); #endif /* Add the amount of time the task has been running to the accumulated time so far. The time the task started running was stored in ulTaskSwitchedInTime. Note that there is no overflow protection here so count values are only valid until the timer overflows. The guard against negative values is to protect against suspect run time stat counter implementations - which are provided by the application, not the kernel. */ if( ulTotalRunTime > ulTaskSwitchedInTime ) { pxCurrentTCB->ulRunTimeCounter += ( ulTotalRunTime - ulTaskSwitchedInTime ); } else { mtCOVERAGE_TEST_MARKER(); } ulTaskSwitchedInTime = ulTotalRunTime; } #endif /* configGENERATE_RUN_TIME_STATS */ /* Check for stack overflow, if configured. */ taskCHECK_FOR_STACK_OVERFLOW(); /* Before the currently running task is switched out, save its errno. */ #if( configUSE_POSIX_ERRNO == 1 ) { pxCurrentTCB->iTaskErrno = FreeRTOS_errno; } #endif /* Select a new task to run using either the generic C or port optimised asm code. */ taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ traceTASK_SWITCHED_IN(); /* After the new task is switched in, update the global errno. */ #if( configUSE_POSIX_ERRNO == 1 ) { FreeRTOS_errno = pxCurrentTCB->iTaskErrno; } #endif #if ( configUSE_NEWLIB_REENTRANT == 1 ) { /* Switch Newlib's _impure_ptr variable to point to the _reent structure specific to this task. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html for additional information. */ _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); } #endif /* configUSE_NEWLIB_REENTRANT */ } } /*-----------------------------------------------------------*/ void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) { configASSERT( pxEventList ); /* THIS FUNCTION MUST BE CALLED WITH EITHER INTERRUPTS DISABLED OR THE SCHEDULER SUSPENDED AND THE QUEUE BEING ACCESSED LOCKED. */ /* Place the event list item of the TCB in the appropriate event list. This is placed in the list in priority order so the highest priority task is the first to be woken by the event. The queue that contains the event list is locked, preventing simultaneous access from interrupts. */ vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) ); prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); } /*-----------------------------------------------------------*/ void vTaskPlaceOnUnorderedEventList( List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait ) { configASSERT( pxEventList ); /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by the event groups implementation. */ configASSERT( uxSchedulerSuspended != 0 ); /* Store the item value in the event list item. It is safe to access the event list item here as interrupts won't access the event list item of a task that is not in the Blocked state. */ listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE ); /* Place the event list item of the TCB at the end of the appropriate event list. It is safe to access the event list here because it is part of an event group implementation - and interrupts don't access event groups directly (instead they access them indirectly by pending function calls to the task level). */ vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) ); prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); } /*-----------------------------------------------------------*/ #if( configUSE_TIMERS == 1 ) void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) { configASSERT( pxEventList ); /* This function should not be called by application code hence the 'Restricted' in its name. It is not part of the public API. It is designed for use by kernel code, and has special calling requirements - it should be called with the scheduler suspended. */ /* Place the event list item of the TCB in the appropriate event list. In this case it is assume that this is the only task that is going to be waiting on this event list, so the faster vListInsertEnd() function can be used in place of vListInsert. */ vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) ); /* If the task should block indefinitely then set the block time to a value that will be recognised as an indefinite delay inside the prvAddCurrentTaskToDelayedList() function. */ if( xWaitIndefinitely != pdFALSE ) { xTicksToWait = portMAX_DELAY; } traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) ); prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely ); } #endif /* configUSE_TIMERS */ /*-----------------------------------------------------------*/ BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) { TCB_t *pxUnblockedTCB; BaseType_t xReturn; /* THIS FUNCTION MUST BE CALLED FROM A CRITICAL SECTION. It can also be called from a critical section within an ISR. */ /* The event list is sorted in priority order, so the first in the list can be removed as it is known to be the highest priority. Remove the TCB from the delayed list, and add it to the ready list. If an event is for a queue that is locked then this function will never get called - the lock count on the queue will get modified instead. This means exclusive access to the event list is guaranteed here. This function assumes that a check has already been made to ensure that pxEventList is not empty. */ pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ configASSERT( pxUnblockedTCB ); ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) ); if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); prvAddTaskToReadyList( pxUnblockedTCB ); #if( configUSE_TICKLESS_IDLE != 0 ) { /* If a task is blocked on a kernel object then xNextTaskUnblockTime might be set to the blocked task's time out time. If the task is unblocked for a reason other than a timeout xNextTaskUnblockTime is normally left unchanged, because it is automatically reset to a new value when the tick count equals xNextTaskUnblockTime. However if tickless idling is used it might be more important to enter sleep mode at the earliest possible time - so reset xNextTaskUnblockTime here to ensure it is updated at the earliest possible time. */ prvResetNextTaskUnblockTime(); } #endif } else { /* The delayed and ready lists cannot be accessed, so hold this task pending until the scheduler is resumed. */ vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) ); } if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* Return true if the task removed from the event list has a higher priority than the calling task. This allows the calling task to know if it should force a context switch now. */ xReturn = pdTRUE; /* Mark that a yield is pending in case the user is not using the "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */ xYieldPending = pdTRUE; } else { xReturn = pdFALSE; } return xReturn; } /*-----------------------------------------------------------*/ void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem, const TickType_t xItemValue ) { TCB_t *pxUnblockedTCB; /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by the event flags implementation. */ configASSERT( uxSchedulerSuspended != pdFALSE ); /* Store the new item value in the event list. */ listSET_LIST_ITEM_VALUE( pxEventListItem, xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE ); /* Remove the event list form the event flag. Interrupts do not access event flags. */ pxUnblockedTCB = listGET_LIST_ITEM_OWNER( pxEventListItem ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ configASSERT( pxUnblockedTCB ); ( void ) uxListRemove( pxEventListItem ); #if( configUSE_TICKLESS_IDLE != 0 ) { /* If a task is blocked on a kernel object then xNextTaskUnblockTime might be set to the blocked task's time out time. If the task is unblocked for a reason other than a timeout xNextTaskUnblockTime is normally left unchanged, because it is automatically reset to a new value when the tick count equals xNextTaskUnblockTime. However if tickless idling is used it might be more important to enter sleep mode at the earliest possible time - so reset xNextTaskUnblockTime here to ensure it is updated at the earliest possible time. */ prvResetNextTaskUnblockTime(); } #endif /* Remove the task from the delayed list and add it to the ready list. The scheduler is suspended so interrupts will not be accessing the ready lists. */ ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); prvAddTaskToReadyList( pxUnblockedTCB ); if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* The unblocked task has a priority above that of the calling task, so a context switch is required. This function is called with the scheduler suspended so xYieldPending is set so the context switch occurs immediately that the scheduler is resumed (unsuspended). */ xYieldPending = pdTRUE; } } /*-----------------------------------------------------------*/ void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) { configASSERT( pxTimeOut ); taskENTER_CRITICAL(); { pxTimeOut->xOverflowCount = xNumOfOverflows; pxTimeOut->xTimeOnEntering = xTickCount; } taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) { /* For internal use only as it does not use a critical section. */ pxTimeOut->xOverflowCount = xNumOfOverflows; pxTimeOut->xTimeOnEntering = xTickCount; } /*-----------------------------------------------------------*/ BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) { BaseType_t xReturn; configASSERT( pxTimeOut ); configASSERT( pxTicksToWait ); taskENTER_CRITICAL(); { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount; const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering; #if( INCLUDE_xTaskAbortDelay == 1 ) if( pxCurrentTCB->ucDelayAborted != ( uint8_t ) pdFALSE ) { /* The delay was aborted, which is not the same as a time out, but has the same result. */ pxCurrentTCB->ucDelayAborted = pdFALSE; xReturn = pdTRUE; } else #endif #if ( INCLUDE_vTaskSuspend == 1 ) if( *pxTicksToWait == portMAX_DELAY ) { /* If INCLUDE_vTaskSuspend is set to 1 and the block time specified is the maximum block time then the task should block indefinitely, and therefore never time out. */ xReturn = pdFALSE; } else #endif if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */ { /* The tick count is greater than the time at which vTaskSetTimeout() was called, but has also overflowed since vTaskSetTimeOut() was called. It must have wrapped all the way around and gone past again. This passed since vTaskSetTimeout() was called. */ xReturn = pdTRUE; } else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */ { /* Not a genuine timeout. Adjust parameters for time remaining. */ *pxTicksToWait -= xElapsedTime; vTaskInternalSetTimeOutState( pxTimeOut ); xReturn = pdFALSE; } else { *pxTicksToWait = 0; xReturn = pdTRUE; } } taskEXIT_CRITICAL(); return xReturn; } /*-----------------------------------------------------------*/ void vTaskMissedYield( void ) { xYieldPending = pdTRUE; } /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) { UBaseType_t uxReturn; TCB_t const *pxTCB; if( xTask != NULL ) { pxTCB = xTask; uxReturn = pxTCB->uxTaskNumber; } else { uxReturn = 0U; } return uxReturn; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) void vTaskSetTaskNumber( TaskHandle_t xTask, const UBaseType_t uxHandle ) { TCB_t * pxTCB; if( xTask != NULL ) { pxTCB = xTask; pxTCB->uxTaskNumber = uxHandle; } } #endif /* configUSE_TRACE_FACILITY */ /* * ----------------------------------------------------------- * The Idle task. * ---------------------------------------------------------- * * The portTASK_FUNCTION() macro is used to allow port/compiler specific * language extensions. The equivalent prototype for this function is: * * void prvIdleTask( void *pvParameters ); * */ static portTASK_FUNCTION( prvIdleTask, pvParameters ) { /* Stop warnings. */ ( void ) pvParameters; /** THIS IS THE RTOS IDLE TASK - WHICH IS CREATED AUTOMATICALLY WHEN THE SCHEDULER IS STARTED. **/ /* In case a task that has a secure context deletes itself, in which case the idle task is responsible for deleting the task's secure context, if any. */ portALLOCATE_SECURE_CONTEXT( configMINIMAL_SECURE_STACK_SIZE ); for( ;; ) { /* See if any tasks have deleted themselves - if so then the idle task is responsible for freeing the deleted task's TCB and stack. */ prvCheckTasksWaitingTermination(); #if ( configUSE_PREEMPTION == 0 ) { /* If we are not using preemption we keep forcing a task switch to see if any other task has become available. If we are using preemption we don't need to do this as any task becoming available will automatically get the processor anyway. */ taskYIELD(); } #endif /* configUSE_PREEMPTION */ #if ( ( configUSE_PREEMPTION == 1 ) && ( configIDLE_SHOULD_YIELD == 1 ) ) { /* When using preemption tasks of equal priority will be timesliced. If a task that is sharing the idle priority is ready to run then the idle task should yield before the end of the timeslice. A critical region is not required here as we are just reading from the list, and an occasional incorrect value will not matter. If the ready list at the idle priority contains more than one task then a task other than the idle task is ready to execute. */ if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 ) { taskYIELD(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* ( ( configUSE_PREEMPTION == 1 ) && ( configIDLE_SHOULD_YIELD == 1 ) ) */ #if ( configUSE_IDLE_HOOK == 1 ) { extern void vApplicationIdleHook( void ); /* Call the user defined function from within the idle task. This allows the application designer to add background functionality without the overhead of a separate task. NOTE: vApplicationIdleHook() MUST NOT, UNDER ANY CIRCUMSTANCES, CALL A FUNCTION THAT MIGHT BLOCK. */ vApplicationIdleHook(); } #endif /* configUSE_IDLE_HOOK */ /* This conditional compilation should use inequality to 0, not equality to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when user defined low power mode implementations require configUSE_TICKLESS_IDLE to be set to a value other than 1. */ #if ( configUSE_TICKLESS_IDLE != 0 ) { TickType_t xExpectedIdleTime; /* It is not desirable to suspend then resume the scheduler on each iteration of the idle task. Therefore, a preliminary test of the expected idle time is performed without the scheduler suspended. The result here is not necessarily valid. */ xExpectedIdleTime = prvGetExpectedIdleTime(); if( xExpectedIdleTime >= configEXPECTED_IDLE_TIME_BEFORE_SLEEP ) { vTaskSuspendAll(); { /* Now the scheduler is suspended, the expected idle time can be sampled again, and this time its value can be used. */ configASSERT( xNextTaskUnblockTime >= xTickCount ); xExpectedIdleTime = prvGetExpectedIdleTime(); /* Define the following macro to set xExpectedIdleTime to 0 if the application does not want portSUPPRESS_TICKS_AND_SLEEP() to be called. */ configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( xExpectedIdleTime ); if( xExpectedIdleTime >= configEXPECTED_IDLE_TIME_BEFORE_SLEEP ) { traceLOW_POWER_IDLE_BEGIN(); portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ); traceLOW_POWER_IDLE_END(); } else { mtCOVERAGE_TEST_MARKER(); } } ( void ) xTaskResumeAll(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_TICKLESS_IDLE */ } } /*-----------------------------------------------------------*/ #if( configUSE_TICKLESS_IDLE != 0 ) eSleepModeStatus eTaskConfirmSleepModeStatus( void ) { /* The idle task exists in addition to the application tasks. */ const UBaseType_t uxNonApplicationTasks = 1; eSleepModeStatus eReturn = eStandardSleep; /* This function must be called from a critical section. */ if( listCURRENT_LIST_LENGTH( &xPendingReadyList ) != 0 ) { /* A task was made ready while the scheduler was suspended. */ eReturn = eAbortSleep; } else if( xYieldPending != pdFALSE ) { /* A yield was pended while the scheduler was suspended. */ eReturn = eAbortSleep; } else { /* If all the tasks are in the suspended list (which might mean they have an infinite block time rather than actually being suspended) then it is safe to turn all clocks off and just wait for external interrupts. */ if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == ( uxCurrentNumberOfTasks - uxNonApplicationTasks ) ) { eReturn = eNoTasksWaitingTimeout; } else { mtCOVERAGE_TEST_MARKER(); } } return eReturn; } #endif /* configUSE_TICKLESS_IDLE */ /*-----------------------------------------------------------*/ #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) void vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) { TCB_t *pxTCB; if( xIndex < configNUM_THREAD_LOCAL_STORAGE_POINTERS ) { pxTCB = prvGetTCBFromHandle( xTaskToSet ); configASSERT( pxTCB != NULL ); pxTCB->pvThreadLocalStoragePointers[ xIndex ] = pvValue; } } #endif /* configNUM_THREAD_LOCAL_STORAGE_POINTERS */ /*-----------------------------------------------------------*/ #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) void *pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) { void *pvReturn = NULL; TCB_t *pxTCB; if( xIndex < configNUM_THREAD_LOCAL_STORAGE_POINTERS ) { pxTCB = prvGetTCBFromHandle( xTaskToQuery ); pvReturn = pxTCB->pvThreadLocalStoragePointers[ xIndex ]; } else { pvReturn = NULL; } return pvReturn; } #endif /* configNUM_THREAD_LOCAL_STORAGE_POINTERS */ /*-----------------------------------------------------------*/ #if ( portUSING_MPU_WRAPPERS == 1 ) void vTaskAllocateMPURegions( TaskHandle_t xTaskToModify, const MemoryRegion_t * const xRegions ) { TCB_t *pxTCB; /* If null is passed in here then we are modifying the MPU settings of the calling task. */ pxTCB = prvGetTCBFromHandle( xTaskToModify ); vPortStoreTaskMPUSettings( &( pxTCB->xMPUSettings ), xRegions, NULL, 0 ); } #endif /* portUSING_MPU_WRAPPERS */ /*-----------------------------------------------------------*/ static void prvInitialiseTaskLists( void ) { UBaseType_t uxPriority; for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) { vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) ); } vListInitialise( &xDelayedTaskList1 ); vListInitialise( &xDelayedTaskList2 ); vListInitialise( &xPendingReadyList ); #if ( INCLUDE_vTaskDelete == 1 ) { vListInitialise( &xTasksWaitingTermination ); } #endif /* INCLUDE_vTaskDelete */ #if ( INCLUDE_vTaskSuspend == 1 ) { vListInitialise( &xSuspendedTaskList ); } #endif /* INCLUDE_vTaskSuspend */ /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList using list2. */ pxDelayedTaskList = &xDelayedTaskList1; pxOverflowDelayedTaskList = &xDelayedTaskList2; } /*-----------------------------------------------------------*/ static void prvCheckTasksWaitingTermination( void ) { /** THIS FUNCTION IS CALLED FROM THE RTOS IDLE TASK **/ #if ( INCLUDE_vTaskDelete == 1 ) { TCB_t *pxTCB; /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL() being called too often in the idle task. */ while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U ) { taskENTER_CRITICAL(); { pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); --uxCurrentNumberOfTasks; --uxDeletedTasksWaitingCleanUp; } taskEXIT_CRITICAL(); prvDeleteTCB( pxTCB ); } } #endif /* INCLUDE_vTaskDelete */ } /*-----------------------------------------------------------*/ #if( configUSE_TRACE_FACILITY == 1 ) void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) { TCB_t *pxTCB; /* xTask is NULL then get the state of the calling task. */ pxTCB = prvGetTCBFromHandle( xTask ); pxTaskStatus->xHandle = ( TaskHandle_t ) pxTCB; pxTaskStatus->pcTaskName = ( const char * ) &( pxTCB->pcTaskName [ 0 ] ); pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority; pxTaskStatus->pxStackBase = pxTCB->pxStack; pxTaskStatus->xTaskNumber = pxTCB->uxTCBNumber; #if ( configUSE_MUTEXES == 1 ) { pxTaskStatus->uxBasePriority = pxTCB->uxBasePriority; } #else { pxTaskStatus->uxBasePriority = 0; } #endif #if ( configGENERATE_RUN_TIME_STATS == 1 ) { pxTaskStatus->ulRunTimeCounter = pxTCB->ulRunTimeCounter; } #else { pxTaskStatus->ulRunTimeCounter = 0; } #endif /* Obtaining the task state is a little fiddly, so is only done if the value of eState passed into this function is eInvalid - otherwise the state is just set to whatever is passed in. */ if( eState != eInvalid ) { if( pxTCB == pxCurrentTCB ) { pxTaskStatus->eCurrentState = eRunning; } else { pxTaskStatus->eCurrentState = eState; #if ( INCLUDE_vTaskSuspend == 1 ) { /* If the task is in the suspended list then there is a chance it is actually just blocked indefinitely - so really it should be reported as being in the Blocked state. */ if( eState == eSuspended ) { vTaskSuspendAll(); { if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) { pxTaskStatus->eCurrentState = eBlocked; } } ( void ) xTaskResumeAll(); } } #endif /* INCLUDE_vTaskSuspend */ } } else { pxTaskStatus->eCurrentState = eTaskGetState( pxTCB ); } /* Obtaining the stack space takes some time, so the xGetFreeStackSpace parameter is provided to allow it to be skipped. */ if( xGetFreeStackSpace != pdFALSE ) { #if ( portSTACK_GROWTH > 0 ) { pxTaskStatus->usStackHighWaterMark = prvTaskCheckFreeStackSpace( ( uint8_t * ) pxTCB->pxEndOfStack ); } #else { pxTaskStatus->usStackHighWaterMark = prvTaskCheckFreeStackSpace( ( uint8_t * ) pxTCB->pxStack ); } #endif } else { pxTaskStatus->usStackHighWaterMark = 0; } } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) { configLIST_VOLATILE TCB_t *pxNextTCB, *pxFirstTCB; UBaseType_t uxTask = 0; if( listCURRENT_LIST_LENGTH( pxList ) > ( UBaseType_t ) 0 ) { listGET_OWNER_OF_NEXT_ENTRY( pxFirstTCB, pxList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ /* Populate an TaskStatus_t structure within the pxTaskStatusArray array for each task that is referenced from pxList. See the definition of TaskStatus_t in task.h for the meaning of each TaskStatus_t structure member. */ do { listGET_OWNER_OF_NEXT_ENTRY( pxNextTCB, pxList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ vTaskGetInfo( ( TaskHandle_t ) pxNextTCB, &( pxTaskStatusArray[ uxTask ] ), pdTRUE, eState ); uxTask++; } while( pxNextTCB != pxFirstTCB ); } else { mtCOVERAGE_TEST_MARKER(); } return uxTask; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace( const uint8_t * pucStackByte ) { uint32_t ulCount = 0U; while( *pucStackByte == ( uint8_t ) tskSTACK_FILL_BYTE ) { pucStackByte -= portSTACK_GROWTH; ulCount++; } ulCount /= ( uint32_t ) sizeof( StackType_t ); /*lint !e961 Casting is not redundant on smaller architectures. */ return ( configSTACK_DEPTH_TYPE ) ulCount; } #endif /* ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) */ /*-----------------------------------------------------------*/ #if ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) /* uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the same except for their return type. Using configSTACK_DEPTH_TYPE allows the user to determine the return type. It gets around the problem of the value overflowing on 8-bit types without breaking backward compatibility for applications that expect an 8-bit return type. */ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) { TCB_t *pxTCB; uint8_t *pucEndOfStack; configSTACK_DEPTH_TYPE uxReturn; /* uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the same except for their return type. Using configSTACK_DEPTH_TYPE allows the user to determine the return type. It gets around the problem of the value overflowing on 8-bit types without breaking backward compatibility for applications that expect an 8-bit return type. */ pxTCB = prvGetTCBFromHandle( xTask ); #if portSTACK_GROWTH < 0 { pucEndOfStack = ( uint8_t * ) pxTCB->pxStack; } #else { pucEndOfStack = ( uint8_t * ) pxTCB->pxEndOfStack; } #endif uxReturn = prvTaskCheckFreeStackSpace( pucEndOfStack ); return uxReturn; } #endif /* INCLUDE_uxTaskGetStackHighWaterMark2 */ /*-----------------------------------------------------------*/ #if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) { TCB_t *pxTCB; uint8_t *pucEndOfStack; UBaseType_t uxReturn; pxTCB = prvGetTCBFromHandle( xTask ); #if portSTACK_GROWTH < 0 { pucEndOfStack = ( uint8_t * ) pxTCB->pxStack; } #else { pucEndOfStack = ( uint8_t * ) pxTCB->pxEndOfStack; } #endif uxReturn = ( UBaseType_t ) prvTaskCheckFreeStackSpace( pucEndOfStack ); return uxReturn; } #endif /* INCLUDE_uxTaskGetStackHighWaterMark */ /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelete == 1 ) static void prvDeleteTCB( TCB_t *pxTCB ) { /* This call is required specifically for the TriCore port. It must be above the vPortFree() calls. The call is also used by ports/demos that want to allocate and clean RAM statically. */ portCLEAN_UP_TCB( pxTCB ); /* Free up the memory allocated by the scheduler for the task. It is up to the task to free any memory allocated at the application level. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html for additional information. */ #if ( configUSE_NEWLIB_REENTRANT == 1 ) { _reclaim_reent( &( pxTCB->xNewLib_reent ) ); } #endif /* configUSE_NEWLIB_REENTRANT */ #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( portUSING_MPU_WRAPPERS == 0 ) ) { /* The task can only have been allocated dynamically - free both the stack and TCB. */ vPortFree( pxTCB->pxStack ); vPortFree( pxTCB ); } #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ { /* The task could have been allocated statically or dynamically, so check what was statically allocated before trying to free the memory. */ if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB ) { /* Both the stack and TCB were allocated dynamically, so both must be freed. */ vPortFree( pxTCB->pxStack ); vPortFree( pxTCB ); } else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY ) { /* Only the stack was statically allocated, so the TCB is the only memory that must be freed. */ vPortFree( pxTCB ); } else { /* Neither the stack nor the TCB were allocated dynamically, so nothing needs to be freed. */ configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); mtCOVERAGE_TEST_MARKER(); } } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ } #endif /* INCLUDE_vTaskDelete */ /*-----------------------------------------------------------*/ static void prvResetNextTaskUnblockTime( void ) { TCB_t *pxTCB; if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) { /* The new current delayed list is empty. Set xNextTaskUnblockTime to the maximum possible value so it is extremely unlikely that the if( xTickCount >= xNextTaskUnblockTime ) test will pass until there is an item in the delayed list. */ xNextTaskUnblockTime = portMAX_DELAY; } else { /* The new current delayed list is not empty, get the value of the item at the head of the delayed list. This is the time at which the task at the head of the delayed list should be removed from the Blocked state. */ ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) ); } } /*-----------------------------------------------------------*/ #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) TaskHandle_t xTaskGetCurrentTaskHandle( void ) { TaskHandle_t xReturn; /* A critical section is not required as this is not called from an interrupt and the current TCB will always be the same for any individual execution thread. */ xReturn = pxCurrentTCB; return xReturn; } #endif /* ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) */ /*-----------------------------------------------------------*/ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) BaseType_t xTaskGetSchedulerState( void ) { BaseType_t xReturn; if( xSchedulerRunning == pdFALSE ) { xReturn = taskSCHEDULER_NOT_STARTED; } else { if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { xReturn = taskSCHEDULER_RUNNING; } else { xReturn = taskSCHEDULER_SUSPENDED; } } return xReturn; } #endif /* ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) */ /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) { TCB_t * const pxMutexHolderTCB = pxMutexHolder; BaseType_t xReturn = pdFALSE; /* If the mutex was given back by an interrupt while the queue was locked then the mutex holder might now be NULL. _RB_ Is this still needed as interrupts can no longer use mutexes? */ if( pxMutexHolder != NULL ) { /* If the holder of the mutex has a priority below the priority of the task attempting to obtain the mutex then it will temporarily inherit the priority of the task attempting to obtain the mutex. */ if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority ) { /* Adjust the mutex holder state to account for its new priority. Only reset the event list item value if the value is not being used for anything else. */ if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL ) { listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ } else { mtCOVERAGE_TEST_MARKER(); } /* If the task being modified is in the ready state it will need to be moved into a new list. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE ) { if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { /* It is known that the task is in its ready list so there is no need to check again and the port level reset macro can be called directly. */ portRESET_READY_PRIORITY( pxMutexHolderTCB->uxPriority, uxTopReadyPriority ); } else { mtCOVERAGE_TEST_MARKER(); } /* Inherit the priority before being moved into the new list. */ pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; prvAddTaskToReadyList( pxMutexHolderTCB ); } else { /* Just inherit the priority. */ pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; } traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority ); /* Inheritance occurred. */ xReturn = pdTRUE; } else { if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority ) { /* The base priority of the mutex holder is lower than the priority of the task attempting to take the mutex, but the current priority of the mutex holder is not lower than the priority of the task attempting to take the mutex. Therefore the mutex holder must have already inherited a priority, but inheritance would have occurred if that had not been the case. */ xReturn = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } } else { mtCOVERAGE_TEST_MARKER(); } return xReturn; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) { TCB_t * const pxTCB = pxMutexHolder; BaseType_t xReturn = pdFALSE; if( pxMutexHolder != NULL ) { /* A task can only have an inherited priority if it holds the mutex. If the mutex is held by a task then it cannot be given from an interrupt, and if a mutex is given by the holding task then it must be the running state task. */ configASSERT( pxTCB == pxCurrentTCB ); configASSERT( pxTCB->uxMutexesHeld ); ( pxTCB->uxMutexesHeld )--; /* Has the holder of the mutex inherited the priority of another task? */ if( pxTCB->uxPriority != pxTCB->uxBasePriority ) { /* Only disinherit if no other mutexes are held. */ if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 ) { /* A task can only have an inherited priority if it holds the mutex. If the mutex is held by a task then it cannot be given from an interrupt, and if a mutex is given by the holding task then it must be the running state task. Remove the holding task from the ready/delayed list. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { taskRESET_READY_PRIORITY( pxTCB->uxPriority ); } else { mtCOVERAGE_TEST_MARKER(); } /* Disinherit the priority before adding the task into the new ready list. */ traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); pxTCB->uxPriority = pxTCB->uxBasePriority; /* Reset the event list item value. It cannot be in use for any other purpose if this task is running, and it must be running to give back the mutex. */ listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ prvAddTaskToReadyList( pxTCB ); /* Return true to indicate that a context switch is required. This is only actually required in the corner case whereby multiple mutexes were held and the mutexes were given back in an order different to that in which they were taken. If a context switch did not occur when the first mutex was returned, even if a task was waiting on it, then a context switch should occur when the last mutex is returned whether a task is waiting on it or not. */ xReturn = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } return xReturn; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) { TCB_t * const pxTCB = pxMutexHolder; UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse; const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1; if( pxMutexHolder != NULL ) { /* If pxMutexHolder is not NULL then the holder must hold at least one mutex. */ configASSERT( pxTCB->uxMutexesHeld ); /* Determine the priority to which the priority of the task that holds the mutex should be set. This will be the greater of the holding task's base priority and the priority of the highest priority task that is waiting to obtain the mutex. */ if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask ) { uxPriorityToUse = uxHighestPriorityWaitingTask; } else { uxPriorityToUse = pxTCB->uxBasePriority; } /* Does the priority need to change? */ if( pxTCB->uxPriority != uxPriorityToUse ) { /* Only disinherit if no other mutexes are held. This is a simplification in the priority inheritance implementation. If the task that holds the mutex is also holding other mutexes then the other mutexes may have caused the priority inheritance. */ if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld ) { /* If a task has timed out because it already holds the mutex it was trying to obtain then it cannot of inherited its own priority. */ configASSERT( pxTCB != pxCurrentTCB ); /* Disinherit the priority, remembering the previous priority to facilitate determining the subject task's state. */ traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); uxPriorityUsedOnEntry = pxTCB->uxPriority; pxTCB->uxPriority = uxPriorityToUse; /* Only reset the event list item value if the value is not being used for anything else. */ if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL ) { listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ } else { mtCOVERAGE_TEST_MARKER(); } /* If the running task is not the task that holds the mutex then the task that holds the mutex could be in either the Ready, Blocked or Suspended states. Only remove the task from its current state list if it is in the Ready state as the task's priority is going to change and there is one Ready list per priority. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE ) { if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { /* It is known that the task is in its ready list so there is no need to check again and the port level reset macro can be called directly. */ portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority ); } else { mtCOVERAGE_TEST_MARKER(); } prvAddTaskToReadyList( pxTCB ); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if ( portCRITICAL_NESTING_IN_TCB == 1 ) void vTaskEnterCritical( void ) { portDISABLE_INTERRUPTS(); if( xSchedulerRunning != pdFALSE ) { ( pxCurrentTCB->uxCriticalNesting )++; /* This is not the interrupt safe version of the enter critical function so assert() if it is being called from an interrupt context. Only API functions that end in "FromISR" can be used in an interrupt. Only assert if the critical nesting count is 1 to protect against recursive calls if the assert function also uses a critical section. */ if( pxCurrentTCB->uxCriticalNesting == 1 ) { portASSERT_IF_IN_ISR(); } } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* portCRITICAL_NESTING_IN_TCB */ /*-----------------------------------------------------------*/ #if ( portCRITICAL_NESTING_IN_TCB == 1 ) void vTaskExitCritical( void ) { if( xSchedulerRunning != pdFALSE ) { if( pxCurrentTCB->uxCriticalNesting > 0U ) { ( pxCurrentTCB->uxCriticalNesting )--; if( pxCurrentTCB->uxCriticalNesting == 0U ) { portENABLE_INTERRUPTS(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* portCRITICAL_NESTING_IN_TCB */ /*-----------------------------------------------------------*/ #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) ) static char *prvWriteNameToBuffer( char *pcBuffer, const char *pcTaskName ) { size_t x; /* Start by copying the entire string. */ strcpy( pcBuffer, pcTaskName ); /* Pad the end of the string with spaces to ensure columns line up when printed out. */ for( x = strlen( pcBuffer ); x < ( size_t ) ( configMAX_TASK_NAME_LEN - 1 ); x++ ) { pcBuffer[ x ] = ' '; } /* Terminate. */ pcBuffer[ x ] = ( char ) 0x00; /* Return the new end of string. */ return &( pcBuffer[ x ] ); } #endif /* ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) */ /*-----------------------------------------------------------*/ #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) void vTaskList( char * pcWriteBuffer ) { TaskStatus_t *pxTaskStatusArray; UBaseType_t uxArraySize, x; char cStatus; /* * PLEASE NOTE: * * This function is provided for convenience only, and is used by many * of the demo applications. Do not consider it to be part of the * scheduler. * * vTaskList() calls uxTaskGetSystemState(), then formats part of the * uxTaskGetSystemState() output into a human readable table that * displays task names, states and stack usage. * * vTaskList() has a dependency on the sprintf() C library function that * might bloat the code size, use a lot of stack, and provide different * results on different platforms. An alternative, tiny, third party, * and limited functionality implementation of sprintf() is provided in * many of the FreeRTOS/Demo sub-directories in a file called * printf-stdarg.c (note printf-stdarg.c does not provide a full * snprintf() implementation!). * * It is recommended that production systems call uxTaskGetSystemState() * directly to get access to raw stats data, rather than indirectly * through a call to vTaskList(). */ /* Make sure the write buffer does not contain a string. */ *pcWriteBuffer = ( char ) 0x00; /* Take a snapshot of the number of tasks in case it changes while this function is executing. */ uxArraySize = uxCurrentNumberOfTasks; /* Allocate an array index for each task. NOTE! if configSUPPORT_DYNAMIC_ALLOCATION is set to 0 then pvPortMalloc() will equate to NULL. */ pxTaskStatusArray = pvPortMalloc( uxCurrentNumberOfTasks * sizeof( TaskStatus_t ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation allocates a struct that has the alignment requirements of a pointer. */ if( pxTaskStatusArray != NULL ) { /* Generate the (binary) data. */ uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, NULL ); /* Create a human readable table from the binary data. */ for( x = 0; x < uxArraySize; x++ ) { switch( pxTaskStatusArray[ x ].eCurrentState ) { case eRunning: cStatus = tskRUNNING_CHAR; break; case eReady: cStatus = tskREADY_CHAR; break; case eBlocked: cStatus = tskBLOCKED_CHAR; break; case eSuspended: cStatus = tskSUSPENDED_CHAR; break; case eDeleted: cStatus = tskDELETED_CHAR; break; case eInvalid: /* Fall through. */ default: /* Should not get here, but it is included to prevent static checking errors. */ cStatus = ( char ) 0x00; break; } /* Write the task name to the string, padding with spaces so it can be printed in tabular form more easily. */ pcWriteBuffer = prvWriteNameToBuffer( pcWriteBuffer, pxTaskStatusArray[ x ].pcTaskName ); /* Write the rest of the string. */ sprintf( pcWriteBuffer, "\t%c\t%u\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ pcWriteBuffer += strlen( pcWriteBuffer ); /*lint !e9016 Pointer arithmetic ok on char pointers especially as in this case where it best denotes the intent of the code. */ } /* Free the array again. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION is 0 then vPortFree() will be #defined to nothing. */ vPortFree( pxTaskStatusArray ); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ /*----------------------------------------------------------*/ #if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) void vTaskGetRunTimeStats( char *pcWriteBuffer ) { TaskStatus_t *pxTaskStatusArray; UBaseType_t uxArraySize, x; uint32_t ulTotalTime, ulStatsAsPercentage; #if( configUSE_TRACE_FACILITY != 1 ) { #error configUSE_TRACE_FACILITY must also be set to 1 in FreeRTOSConfig.h to use vTaskGetRunTimeStats(). } #endif /* * PLEASE NOTE: * * This function is provided for convenience only, and is used by many * of the demo applications. Do not consider it to be part of the * scheduler. * * vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats part * of the uxTaskGetSystemState() output into a human readable table that * displays the amount of time each task has spent in the Running state * in both absolute and percentage terms. * * vTaskGetRunTimeStats() has a dependency on the sprintf() C library * function that might bloat the code size, use a lot of stack, and * provide different results on different platforms. An alternative, * tiny, third party, and limited functionality implementation of * sprintf() is provided in many of the FreeRTOS/Demo sub-directories in * a file called printf-stdarg.c (note printf-stdarg.c does not provide * a full snprintf() implementation!). * * It is recommended that production systems call uxTaskGetSystemState() * directly to get access to raw stats data, rather than indirectly * through a call to vTaskGetRunTimeStats(). */ /* Make sure the write buffer does not contain a string. */ *pcWriteBuffer = ( char ) 0x00; /* Take a snapshot of the number of tasks in case it changes while this function is executing. */ uxArraySize = uxCurrentNumberOfTasks; /* Allocate an array index for each task. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION is set to 0 then pvPortMalloc() will equate to NULL. */ pxTaskStatusArray = pvPortMalloc( uxCurrentNumberOfTasks * sizeof( TaskStatus_t ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation allocates a struct that has the alignment requirements of a pointer. */ if( pxTaskStatusArray != NULL ) { /* Generate the (binary) data. */ uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalTime ); /* For percentage calculations. */ ulTotalTime /= 100UL; /* Avoid divide by zero errors. */ if( ulTotalTime > 0UL ) { /* Create a human readable table from the binary data. */ for( x = 0; x < uxArraySize; x++ ) { /* What percentage of the total run time has the task used? This will always be rounded down to the nearest integer. ulTotalRunTimeDiv100 has already been divided by 100. */ ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalTime; /* Write the task name to the string, padding with spaces so it can be printed in tabular form more easily. */ pcWriteBuffer = prvWriteNameToBuffer( pcWriteBuffer, pxTaskStatusArray[ x ].pcTaskName ); if( ulStatsAsPercentage > 0UL ) { #ifdef portLU_PRINTF_SPECIFIER_REQUIRED { sprintf( pcWriteBuffer, "\t%lu\t\t%lu%%\r\n", pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage ); } #else { /* sizeof( int ) == sizeof( long ) so a smaller printf() library can be used. */ sprintf( pcWriteBuffer, "\t%u\t\t%u%%\r\n", ( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter, ( unsigned int ) ulStatsAsPercentage ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ } #endif } else { /* If the percentage is zero here then the task has consumed less than 1% of the total run time. */ #ifdef portLU_PRINTF_SPECIFIER_REQUIRED { sprintf( pcWriteBuffer, "\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].ulRunTimeCounter ); } #else { /* sizeof( int ) == sizeof( long ) so a smaller printf() library can be used. */ sprintf( pcWriteBuffer, "\t%u\t\t<1%%\r\n", ( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ } #endif } pcWriteBuffer += strlen( pcWriteBuffer ); /*lint !e9016 Pointer arithmetic ok on char pointers especially as in this case where it best denotes the intent of the code. */ } } else { mtCOVERAGE_TEST_MARKER(); } /* Free the array again. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION is 0 then vPortFree() will be #defined to nothing. */ vPortFree( pxTaskStatusArray ); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) */ /*-----------------------------------------------------------*/ TickType_t uxTaskResetEventItemValue( void ) { TickType_t uxReturn; uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ) ); /* Reset the event list item to its normal value - so it can be used with queues and semaphores. */ listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ return uxReturn; } /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) TaskHandle_t pvTaskIncrementMutexHeldCount( void ) { /* If xSemaphoreCreateMutex() is called before any tasks have been created then pxCurrentTCB will be NULL. */ if( pxCurrentTCB != NULL ) { ( pxCurrentTCB->uxMutexesHeld )++; } return pxCurrentTCB; } #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) { uint32_t ulReturn; taskENTER_CRITICAL(); { /* Only block if the notification count is not already non-zero. */ if( pxCurrentTCB->ulNotifiedValue == 0UL ) { /* Mark this task as waiting for a notification. */ pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION; if( xTicksToWait > ( TickType_t ) 0 ) { prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); traceTASK_NOTIFY_TAKE_BLOCK(); /* All ports are written to allow a yield in a critical section (some will yield immediately, others wait until the critical section exits) - but it is not something that application code should ever do. */ portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); taskENTER_CRITICAL(); { traceTASK_NOTIFY_TAKE(); ulReturn = pxCurrentTCB->ulNotifiedValue; if( ulReturn != 0UL ) { if( xClearCountOnExit != pdFALSE ) { pxCurrentTCB->ulNotifiedValue = 0UL; } else { pxCurrentTCB->ulNotifiedValue = ulReturn - ( uint32_t ) 1; } } else { mtCOVERAGE_TEST_MARKER(); } pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; } taskEXIT_CRITICAL(); return ulReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) { BaseType_t xReturn; taskENTER_CRITICAL(); { /* Only block if a notification is not already pending. */ if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED ) { /* Clear bits in the task's notification value as bits may get set by the notifying task or interrupt. This can be used to clear the value to zero. */ pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry; /* Mark this task as waiting for a notification. */ pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION; if( xTicksToWait > ( TickType_t ) 0 ) { prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); traceTASK_NOTIFY_WAIT_BLOCK(); /* All ports are written to allow a yield in a critical section (some will yield immediately, others wait until the critical section exits) - but it is not something that application code should ever do. */ portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); taskENTER_CRITICAL(); { traceTASK_NOTIFY_WAIT(); if( pulNotificationValue != NULL ) { /* Output the current notification value, which may or may not have changed. */ *pulNotificationValue = pxCurrentTCB->ulNotifiedValue; } /* If ucNotifyValue is set then either the task never entered the blocked state (because a notification was already pending) or the task unblocked because of a notification. Otherwise the task unblocked because of a timeout. */ if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED ) { /* A notification was not received. */ xReturn = pdFALSE; } else { /* A notification was already pending or a notification was received while the task was waiting. */ pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit; xReturn = pdTRUE; } pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; } taskEXIT_CRITICAL(); return xReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) { TCB_t * pxTCB; BaseType_t xReturn = pdPASS; uint8_t ucOriginalNotifyState; configASSERT( xTaskToNotify ); pxTCB = xTaskToNotify; taskENTER_CRITICAL(); { if( pulPreviousNotificationValue != NULL ) { *pulPreviousNotificationValue = pxTCB->ulNotifiedValue; } ucOriginalNotifyState = pxTCB->ucNotifyState; pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; switch( eAction ) { case eSetBits : pxTCB->ulNotifiedValue |= ulValue; break; case eIncrement : ( pxTCB->ulNotifiedValue )++; break; case eSetValueWithOverwrite : pxTCB->ulNotifiedValue = ulValue; break; case eSetValueWithoutOverwrite : if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED ) { pxTCB->ulNotifiedValue = ulValue; } else { /* The value could not be written to the task. */ xReturn = pdFAIL; } break; case eNoAction: /* The task is being notified without its notify value being updated. */ break; default: /* Should not get here if all enums are handled. Artificially force an assert by testing a value the compiler can't assume is const. */ configASSERT( pxTCB->ulNotifiedValue == ~0UL ); break; } traceTASK_NOTIFY(); /* If the task is in the blocked state specifically to wait for a notification then unblock it now. */ if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) { ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); /* The task should not have been on an event list. */ configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); #if( configUSE_TICKLESS_IDLE != 0 ) { /* If a task is blocked waiting for a notification then xNextTaskUnblockTime might be set to the blocked task's time out time. If the task is unblocked for a reason other than a timeout xNextTaskUnblockTime is normally left unchanged, because it will automatically get reset to a new value when the tick count equals xNextTaskUnblockTime. However if tickless idling is used it might be more important to enter sleep mode at the earliest possible time - so reset xNextTaskUnblockTime here to ensure it is updated at the earliest possible time. */ prvResetNextTaskUnblockTime(); } #endif if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* The notified task has a priority above the currently executing task so a yield is required. */ taskYIELD_IF_USING_PREEMPTION(); } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); return xReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken ) { TCB_t * pxTCB; uint8_t ucOriginalNotifyState; BaseType_t xReturn = pdPASS; UBaseType_t uxSavedInterruptStatus; configASSERT( xTaskToNotify ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are keep permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); pxTCB = xTaskToNotify; uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { if( pulPreviousNotificationValue != NULL ) { *pulPreviousNotificationValue = pxTCB->ulNotifiedValue; } ucOriginalNotifyState = pxTCB->ucNotifyState; pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; switch( eAction ) { case eSetBits : pxTCB->ulNotifiedValue |= ulValue; break; case eIncrement : ( pxTCB->ulNotifiedValue )++; break; case eSetValueWithOverwrite : pxTCB->ulNotifiedValue = ulValue; break; case eSetValueWithoutOverwrite : if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED ) { pxTCB->ulNotifiedValue = ulValue; } else { /* The value could not be written to the task. */ xReturn = pdFAIL; } break; case eNoAction : /* The task is being notified without its notify value being updated. */ break; default: /* Should not get here if all enums are handled. Artificially force an assert by testing a value the compiler can't assume is const. */ configASSERT( pxTCB->ulNotifiedValue == ~0UL ); break; } traceTASK_NOTIFY_FROM_ISR(); /* If the task is in the blocked state specifically to wait for a notification then unblock it now. */ if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) { /* The task should not have been on an event list. */ configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); } else { /* The delayed and ready lists cannot be accessed, so hold this task pending until the scheduler is resumed. */ vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); } if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* The notified task has a priority above the currently executing task so a yield is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } /* Mark that a yield is pending in case the user is not using the "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */ xYieldPending = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) void vTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken ) { TCB_t * pxTCB; uint8_t ucOriginalNotifyState; UBaseType_t uxSavedInterruptStatus; configASSERT( xTaskToNotify ); /* RTOS ports that support interrupt nesting have the concept of a maximum system call (or maximum API call) interrupt priority. Interrupts that are above the maximum system call priority are keep permanently enabled, even when the RTOS kernel is in a critical section, but cannot make any calls to FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion failure if a FreeRTOS API function is called from an interrupt that has been assigned a priority above the configured maximum system call priority. Only FreeRTOS functions that end in FromISR can be called from interrupts that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); pxTCB = xTaskToNotify; uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); { ucOriginalNotifyState = pxTCB->ucNotifyState; pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; /* 'Giving' is equivalent to incrementing a count in a counting semaphore. */ ( pxTCB->ulNotifiedValue )++; traceTASK_NOTIFY_GIVE_FROM_ISR(); /* If the task is in the blocked state specifically to wait for a notification then unblock it now. */ if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) { /* The task should not have been on an event list. */ configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) { ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); prvAddTaskToReadyList( pxTCB ); } else { /* The delayed and ready lists cannot be accessed, so hold this task pending until the scheduler is resumed. */ vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); } if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) { /* The notified task has a priority above the currently executing task so a yield is required. */ if( pxHigherPriorityTaskWoken != NULL ) { *pxHigherPriorityTaskWoken = pdTRUE; } /* Mark that a yield is pending in case the user is not using the "xHigherPriorityTaskWoken" parameter in an ISR safe FreeRTOS function. */ xYieldPending = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask ) { TCB_t *pxTCB; BaseType_t xReturn; /* If null is passed in here then it is the calling task that is having its notification state cleared. */ pxTCB = prvGetTCBFromHandle( xTask ); taskENTER_CRITICAL(); { if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED ) { pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; xReturn = pdPASS; } else { xReturn = pdFAIL; } } taskEXIT_CRITICAL(); return xReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( configUSE_TASK_NOTIFICATIONS == 1 ) uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) { TCB_t *pxTCB; uint32_t ulReturn; /* If null is passed in here then it is the calling task that is having its notification state cleared. */ pxTCB = prvGetTCBFromHandle( xTask ); taskENTER_CRITICAL(); { /* Return the notification as it was before the bits were cleared, then clear the bit mask. */ ulReturn = pxCurrentTCB->ulNotifiedValue; pxTCB->ulNotifiedValue &= ~ulBitsToClear; } taskEXIT_CRITICAL(); return ulReturn; } #endif /* configUSE_TASK_NOTIFICATIONS */ /*-----------------------------------------------------------*/ #if( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) ) uint32_t ulTaskGetIdleRunTimeCounter( void ) { return xIdleTaskHandle->ulRunTimeCounter; } #endif /*-----------------------------------------------------------*/ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) { TickType_t xTimeToWake; const TickType_t xConstTickCount = xTickCount; #if( INCLUDE_xTaskAbortDelay == 1 ) { /* About to enter a delayed list, so ensure the ucDelayAborted flag is reset to pdFALSE so it can be detected as having been set to pdTRUE when the task leaves the Blocked state. */ pxCurrentTCB->ucDelayAborted = pdFALSE; } #endif /* Remove the task from the ready list before adding it to the blocked list as the same list item is used for both lists. */ if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { /* The current task must be in a ready list, so there is no need to check, and the port reset macro can be called directly. */ portRESET_READY_PRIORITY( pxCurrentTCB->uxPriority, uxTopReadyPriority ); /*lint !e931 pxCurrentTCB cannot change as it is the calling task. pxCurrentTCB->uxPriority and uxTopReadyPriority cannot change as called with scheduler suspended or in a critical section. */ } else { mtCOVERAGE_TEST_MARKER(); } #if ( INCLUDE_vTaskSuspend == 1 ) { if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) ) { /* Add the task to the suspended task list instead of a delayed task list to ensure it is not woken by a timing event. It will block indefinitely. */ vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) ); } else { /* Calculate the time at which the task should be woken if the event does not occur. This may overflow but this doesn't matter, the kernel will manage it correctly. */ xTimeToWake = xConstTickCount + xTicksToWait; /* The list item will be inserted in wake time order. */ listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); if( xTimeToWake < xConstTickCount ) { /* Wake time has overflowed. Place this item in the overflow list. */ vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); } else { /* The wake time has not overflowed, so the current block list is used. */ vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); /* If the task entering the blocked state was placed at the head of the list of blocked tasks then xNextTaskUnblockTime needs to be updated too. */ if( xTimeToWake < xNextTaskUnblockTime ) { xNextTaskUnblockTime = xTimeToWake; } else { mtCOVERAGE_TEST_MARKER(); } } } } #else /* INCLUDE_vTaskSuspend */ { /* Calculate the time at which the task should be woken if the event does not occur. This may overflow but this doesn't matter, the kernel will manage it correctly. */ xTimeToWake = xConstTickCount + xTicksToWait; /* The list item will be inserted in wake time order. */ listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); if( xTimeToWake < xConstTickCount ) { /* Wake time has overflowed. Place this item in the overflow list. */ vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); } else { /* The wake time has not overflowed, so the current block list is used. */ vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); /* If the task entering the blocked state was placed at the head of the list of blocked tasks then xNextTaskUnblockTime needs to be updated too. */ if( xTimeToWake < xNextTaskUnblockTime ) { xNextTaskUnblockTime = xTimeToWake; } else { mtCOVERAGE_TEST_MARKER(); } } /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */ ( void ) xCanBlockIndefinitely; } #endif /* INCLUDE_vTaskSuspend */ } /* Code below here allows additional code to be inserted into this source file, especially where access to file scope functions and data is needed (for example when performing module tests). */ #ifdef FREERTOS_MODULE_TEST #include "tasks_test_access_functions.h" #endif #if( configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H == 1 ) #include "freertos_tasks_c_additions.h" #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT static void freertos_tasks_c_additions_init( void ) { FREERTOS_TASKS_C_ADDITIONS_INIT(); } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Middlewares/Third_Party/FreeRTOS/Source/timers.c ================================================ /* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* Standard includes. */ #include /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining all the API functions to use the MPU wrappers. That should only be done when task.h is included from an application file. */ #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE #include "FreeRTOS.h" #include "task.h" #include "queue.h" #include "timers.h" #if ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 0 ) #error configUSE_TIMERS must be set to 1 to make the xTimerPendFunctionCall() function available. #endif /* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the header files above, but not in this file, in order to generate the correct privileged Vs unprivileged linkage and placement. */ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e9021 !e961 !e750. */ /* This entire source file will be skipped if the application is not configured to include software timer functionality. This #if is closed at the very bottom of this file. If you want to include software timer functionality then ensure configUSE_TIMERS is set to 1 in FreeRTOSConfig.h. */ #if ( configUSE_TIMERS == 1 ) /* Misc definitions. */ #define tmrNO_DELAY ( TickType_t ) 0U /* The name assigned to the timer service task. This can be overridden by defining trmTIMER_SERVICE_TASK_NAME in FreeRTOSConfig.h. */ #ifndef configTIMER_SERVICE_TASK_NAME #define configTIMER_SERVICE_TASK_NAME "Tmr Svc" #endif /* Bit definitions used in the ucStatus member of a timer structure. */ #define tmrSTATUS_IS_ACTIVE ( ( uint8_t ) 0x01 ) #define tmrSTATUS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 0x02 ) #define tmrSTATUS_IS_AUTORELOAD ( ( uint8_t ) 0x04 ) /* The definition of the timers themselves. */ typedef struct tmrTimerControl /* The old naming convention is used to prevent breaking kernel aware debuggers. */ { const char *pcTimerName; /*<< Text name. This is not used by the kernel, it is included simply to make debugging easier. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ ListItem_t xTimerListItem; /*<< Standard linked list item as used by all kernel features for event management. */ TickType_t xTimerPeriodInTicks;/*<< How quickly and often the timer expires. */ void *pvTimerID; /*<< An ID to identify the timer. This allows the timer to be identified when the same callback is used for multiple timers. */ TimerCallbackFunction_t pxCallbackFunction; /*<< The function that will be called when the timer expires. */ #if( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxTimerNumber; /*<< An ID assigned by trace tools such as FreeRTOS+Trace */ #endif uint8_t ucStatus; /*<< Holds bits to say if the timer was statically allocated or not, and if it is active or not. */ } xTIMER; /* The old xTIMER name is maintained above then typedefed to the new Timer_t name below to enable the use of older kernel aware debuggers. */ typedef xTIMER Timer_t; /* The definition of messages that can be sent and received on the timer queue. Two types of message can be queued - messages that manipulate a software timer, and messages that request the execution of a non-timer related callback. The two message types are defined in two separate structures, xTimerParametersType and xCallbackParametersType respectively. */ typedef struct tmrTimerParameters { TickType_t xMessageValue; /*<< An optional value used by a subset of commands, for example, when changing the period of a timer. */ Timer_t * pxTimer; /*<< The timer to which the command will be applied. */ } TimerParameter_t; typedef struct tmrCallbackParameters { PendedFunction_t pxCallbackFunction; /* << The callback function to execute. */ void *pvParameter1; /* << The value that will be used as the callback functions first parameter. */ uint32_t ulParameter2; /* << The value that will be used as the callback functions second parameter. */ } CallbackParameters_t; /* The structure that contains the two message types, along with an identifier that is used to determine which message type is valid. */ typedef struct tmrTimerQueueMessage { BaseType_t xMessageID; /*<< The command being sent to the timer service task. */ union { TimerParameter_t xTimerParameters; /* Don't include xCallbackParameters if it is not going to be used as it makes the structure (and therefore the timer queue) larger. */ #if ( INCLUDE_xTimerPendFunctionCall == 1 ) CallbackParameters_t xCallbackParameters; #endif /* INCLUDE_xTimerPendFunctionCall */ } u; } DaemonTaskMessage_t; /*lint -save -e956 A manual analysis and inspection has been used to determine which static variables must be declared volatile. */ /* The list in which active timers are stored. Timers are referenced in expire time order, with the nearest expiry time at the front of the list. Only the timer service task is allowed to access these lists. xActiveTimerList1 and xActiveTimerList2 could be at function scope but that breaks some kernel aware debuggers, and debuggers that reply on removing the static qualifier. */ PRIVILEGED_DATA static List_t xActiveTimerList1; PRIVILEGED_DATA static List_t xActiveTimerList2; PRIVILEGED_DATA static List_t *pxCurrentTimerList; PRIVILEGED_DATA static List_t *pxOverflowTimerList; /* A queue that is used to send commands to the timer service task. */ PRIVILEGED_DATA static QueueHandle_t xTimerQueue = NULL; PRIVILEGED_DATA static TaskHandle_t xTimerTaskHandle = NULL; /*lint -restore */ /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) /* If static allocation is supported then the application must provide the following callback function - which enables the application to optionally provide the memory that will be used by the timer task as the task's stack and TCB. */ extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ); #endif /* * Initialise the infrastructure used by the timer service task if it has not * been initialised already. */ static void prvCheckForValidListAndQueue( void ) PRIVILEGED_FUNCTION; /* * The timer service task (daemon). Timer functionality is controlled by this * task. Other tasks communicate with the timer service task using the * xTimerQueue queue. */ static portTASK_FUNCTION_PROTO( prvTimerTask, pvParameters ) PRIVILEGED_FUNCTION; /* * Called by the timer service task to interpret and process a command it * received on the timer queue. */ static void prvProcessReceivedCommands( void ) PRIVILEGED_FUNCTION; /* * Insert the timer into either xActiveTimerList1, or xActiveTimerList2, * depending on if the expire time causes a timer counter overflow. */ static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime ) PRIVILEGED_FUNCTION; /* * An active timer has reached its expire time. Reload the timer if it is an * auto-reload timer, then call its callback. */ static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow ) PRIVILEGED_FUNCTION; /* * The tick count has overflowed. Switch the timer lists after ensuring the * current timer list does not still reference some timers. */ static void prvSwitchTimerLists( void ) PRIVILEGED_FUNCTION; /* * Obtain the current tick count, setting *pxTimerListsWereSwitched to pdTRUE * if a tick count overflow occurred since prvSampleTimeNow() was last called. */ static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched ) PRIVILEGED_FUNCTION; /* * If the timer list contains any active timers then return the expire time of * the timer that will expire first and set *pxListWasEmpty to false. If the * timer list does not contain any timers then return 0 and set *pxListWasEmpty * to pdTRUE. */ static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty ) PRIVILEGED_FUNCTION; /* * If a timer has expired, process it. Otherwise, block the timer service task * until either a timer does expire or a command is received. */ static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty ) PRIVILEGED_FUNCTION; /* * Called after a Timer_t structure has been allocated either statically or * dynamically to fill in the structure's members. */ static void prvInitialiseNewTimer( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION; /*-----------------------------------------------------------*/ BaseType_t xTimerCreateTimerTask( void ) { BaseType_t xReturn = pdFAIL; /* This function is called when the scheduler is started if configUSE_TIMERS is set to 1. Check that the infrastructure used by the timer service task has been created/initialised. If timers have already been created then the initialisation will already have been performed. */ prvCheckForValidListAndQueue(); if( xTimerQueue != NULL ) { #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { StaticTask_t *pxTimerTaskTCBBuffer = NULL; StackType_t *pxTimerTaskStackBuffer = NULL; uint32_t ulTimerTaskStackSize; vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize ); xTimerTaskHandle = xTaskCreateStatic( prvTimerTask, configTIMER_SERVICE_TASK_NAME, ulTimerTaskStackSize, NULL, ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, pxTimerTaskStackBuffer, pxTimerTaskTCBBuffer ); if( xTimerTaskHandle != NULL ) { xReturn = pdPASS; } } #else { xReturn = xTaskCreate( prvTimerTask, configTIMER_SERVICE_TASK_NAME, configTIMER_TASK_STACK_DEPTH, NULL, ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, &xTimerTaskHandle ); } #endif /* configSUPPORT_STATIC_ALLOCATION */ } else { mtCOVERAGE_TEST_MARKER(); } configASSERT( xReturn ); return xReturn; } /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction ) { Timer_t *pxNewTimer; pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of Timer_t is always a pointer to the timer's mame. */ if( pxNewTimer != NULL ) { /* Status is thus far zero as the timer is not created statically and has not been started. The auto-reload bit may get set in prvInitialiseNewTimer. */ pxNewTimer->ucStatus = 0x00; prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer ); } return pxNewTimer; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) TimerHandle_t xTimerCreateStatic( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer ) { Timer_t *pxNewTimer; #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticTimer_t equals the size of the real timer structure. */ volatile size_t xSize = sizeof( StaticTimer_t ); configASSERT( xSize == sizeof( Timer_t ) ); ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ } #endif /* configASSERT_DEFINED */ /* A pointer to a StaticTimer_t structure MUST be provided, use it. */ configASSERT( pxTimerBuffer ); pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */ if( pxNewTimer != NULL ) { /* Timers can be created statically or dynamically so note this timer was created statically in case it is later deleted. The auto-reload bit may get set in prvInitialiseNewTimer(). */ pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED; prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer ); } return pxNewTimer; } #endif /* configSUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ static void prvInitialiseNewTimer( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, Timer_t *pxNewTimer ) { /* 0 is not a valid value for xTimerPeriodInTicks. */ configASSERT( ( xTimerPeriodInTicks > 0 ) ); if( pxNewTimer != NULL ) { /* Ensure the infrastructure used by the timer service task has been created/initialised. */ prvCheckForValidListAndQueue(); /* Initialise the timer structure members using the function parameters. */ pxNewTimer->pcTimerName = pcTimerName; pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks; pxNewTimer->pvTimerID = pvTimerID; pxNewTimer->pxCallbackFunction = pxCallbackFunction; vListInitialiseItem( &( pxNewTimer->xTimerListItem ) ); if( uxAutoReload != pdFALSE ) { pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD; } traceTIMER_CREATE( pxNewTimer ); } } /*-----------------------------------------------------------*/ BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) { BaseType_t xReturn = pdFAIL; DaemonTaskMessage_t xMessage; configASSERT( xTimer ); /* Send a message to the timer service task to perform a particular action on a particular timer definition. */ if( xTimerQueue != NULL ) { /* Send a command to the timer service task to start the xTimer timer. */ xMessage.xMessageID = xCommandID; xMessage.u.xTimerParameters.xMessageValue = xOptionalValue; xMessage.u.xTimerParameters.pxTimer = xTimer; if( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) { if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING ) { xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait ); } else { xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY ); } } else { xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken ); } traceTIMER_COMMAND_SEND( xTimer, xCommandID, xOptionalValue, xReturn ); } else { mtCOVERAGE_TEST_MARKER(); } return xReturn; } /*-----------------------------------------------------------*/ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) { /* If xTimerGetTimerDaemonTaskHandle() is called before the scheduler has been started, then xTimerTaskHandle will be NULL. */ configASSERT( ( xTimerTaskHandle != NULL ) ); return xTimerTaskHandle; } /*-----------------------------------------------------------*/ TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) { Timer_t *pxTimer = xTimer; configASSERT( xTimer ); return pxTimer->xTimerPeriodInTicks; } /*-----------------------------------------------------------*/ void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) { Timer_t * pxTimer = xTimer; configASSERT( xTimer ); taskENTER_CRITICAL(); { if( uxAutoReload != pdFALSE ) { pxTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD; } else { pxTimer->ucStatus &= ~tmrSTATUS_IS_AUTORELOAD; } } taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) { Timer_t * pxTimer = xTimer; UBaseType_t uxReturn; configASSERT( xTimer ); taskENTER_CRITICAL(); { if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0 ) { /* Not an auto-reload timer. */ uxReturn = ( UBaseType_t ) pdFALSE; } else { /* Is an auto-reload timer. */ uxReturn = ( UBaseType_t ) pdTRUE; } } taskEXIT_CRITICAL(); return uxReturn; } /*-----------------------------------------------------------*/ TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) { Timer_t * pxTimer = xTimer; TickType_t xReturn; configASSERT( xTimer ); xReturn = listGET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ) ); return xReturn; } /*-----------------------------------------------------------*/ const char * pcTimerGetName( TimerHandle_t xTimer ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { Timer_t *pxTimer = xTimer; configASSERT( xTimer ); return pxTimer->pcTimerName; } /*-----------------------------------------------------------*/ static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow ) { BaseType_t xResult; Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ /* Remove the timer from the list of active timers. A check has already been performed to ensure the list is not empty. */ ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); traceTIMER_EXPIRED( pxTimer ); /* If the timer is an auto-reload timer then calculate the next expiry time and re-insert the timer in the list of active timers. */ if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) { /* The timer is inserted into a list using a time relative to anything other than the current time. It will therefore be inserted into the correct list relative to the time this task thinks it is now. */ if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE ) { /* The timer expired before it was added to the active timer list. Reload it now. */ xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); configASSERT( xResult ); ( void ) xResult; } else { mtCOVERAGE_TEST_MARKER(); } } else { pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; mtCOVERAGE_TEST_MARKER(); } /* Call the timer callback. */ pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); } /*-----------------------------------------------------------*/ static portTASK_FUNCTION( prvTimerTask, pvParameters ) { TickType_t xNextExpireTime; BaseType_t xListWasEmpty; /* Just to avoid compiler warnings. */ ( void ) pvParameters; #if( configUSE_DAEMON_TASK_STARTUP_HOOK == 1 ) { extern void vApplicationDaemonTaskStartupHook( void ); /* Allow the application writer to execute some code in the context of this task at the point the task starts executing. This is useful if the application includes initialisation code that would benefit from executing after the scheduler has been started. */ vApplicationDaemonTaskStartupHook(); } #endif /* configUSE_DAEMON_TASK_STARTUP_HOOK */ for( ;; ) { /* Query the timers list to see if it contains any timers, and if so, obtain the time at which the next timer will expire. */ xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty ); /* If a timer has expired, process it. Otherwise, block this task until either a timer does expire, or a command is received. */ prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty ); /* Empty the command queue. */ prvProcessReceivedCommands(); } } /*-----------------------------------------------------------*/ static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty ) { TickType_t xTimeNow; BaseType_t xTimerListsWereSwitched; vTaskSuspendAll(); { /* Obtain the time now to make an assessment as to whether the timer has expired or not. If obtaining the time causes the lists to switch then don't process this timer as any timers that remained in the list when the lists were switched will have been processed within the prvSampleTimeNow() function. */ xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); if( xTimerListsWereSwitched == pdFALSE ) { /* The tick count has not overflowed, has the timer expired? */ if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) ) { ( void ) xTaskResumeAll(); prvProcessExpiredTimer( xNextExpireTime, xTimeNow ); } else { /* The tick count has not overflowed, and the next expire time has not been reached yet. This task should therefore block to wait for the next expire time or a command to be received - whichever comes first. The following line cannot be reached unless xNextExpireTime > xTimeNow, except in the case when the current timer list is empty. */ if( xListWasEmpty != pdFALSE ) { /* The current timer list is empty - is the overflow list also empty? */ xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList ); } vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty ); if( xTaskResumeAll() == pdFALSE ) { /* Yield to wait for either a command to arrive, or the block time to expire. If a command arrived between the critical section being exited and this yield then the yield will not cause the task to block. */ portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } } } else { ( void ) xTaskResumeAll(); } } } /*-----------------------------------------------------------*/ static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty ) { TickType_t xNextExpireTime; /* Timers are listed in expiry time order, with the head of the list referencing the task that will expire first. Obtain the time at which the timer with the nearest expiry time will expire. If there are no active timers then just set the next expire time to 0. That will cause this task to unblock when the tick count overflows, at which point the timer lists will be switched and the next expiry time can be re-assessed. */ *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList ); if( *pxListWasEmpty == pdFALSE ) { xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); } else { /* Ensure the task unblocks when the tick count rolls over. */ xNextExpireTime = ( TickType_t ) 0U; } return xNextExpireTime; } /*-----------------------------------------------------------*/ static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched ) { TickType_t xTimeNow; PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */ xTimeNow = xTaskGetTickCount(); if( xTimeNow < xLastTime ) { prvSwitchTimerLists(); *pxTimerListsWereSwitched = pdTRUE; } else { *pxTimerListsWereSwitched = pdFALSE; } xLastTime = xTimeNow; return xTimeNow; } /*-----------------------------------------------------------*/ static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime ) { BaseType_t xProcessTimerNow = pdFALSE; listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime ); listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); if( xNextExpiryTime <= xTimeNow ) { /* Has the expiry time elapsed between the command to start/reset a timer was issued, and the time the command was processed? */ if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ { /* The time between a command being issued and the command being processed actually exceeds the timers period. */ xProcessTimerNow = pdTRUE; } else { vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) ); } } else { if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) ) { /* If, since the command was issued, the tick count has overflowed but the expiry time has not, then the timer must have already passed its expiry time and should be processed immediately. */ xProcessTimerNow = pdTRUE; } else { vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); } } return xProcessTimerNow; } /*-----------------------------------------------------------*/ static void prvProcessReceivedCommands( void ) { DaemonTaskMessage_t xMessage; Timer_t *pxTimer; BaseType_t xTimerListsWereSwitched, xResult; TickType_t xTimeNow; while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */ { #if ( INCLUDE_xTimerPendFunctionCall == 1 ) { /* Negative commands are pended function calls rather than timer commands. */ if( xMessage.xMessageID < ( BaseType_t ) 0 ) { const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters ); /* The timer uses the xCallbackParameters member to request a callback be executed. Check the callback is not NULL. */ configASSERT( pxCallback ); /* Call the function. */ pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 ); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* INCLUDE_xTimerPendFunctionCall */ /* Commands that are positive are timer commands rather than pended function calls. */ if( xMessage.xMessageID >= ( BaseType_t ) 0 ) { /* The messages uses the xTimerParameters member to work on a software timer. */ pxTimer = xMessage.u.xTimerParameters.pxTimer; if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */ { /* The timer is in a list, remove it. */ ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); } else { mtCOVERAGE_TEST_MARKER(); } traceTIMER_COMMAND_RECEIVED( pxTimer, xMessage.xMessageID, xMessage.u.xTimerParameters.xMessageValue ); /* In this case the xTimerListsWereSwitched parameter is not used, but it must be present in the function call. prvSampleTimeNow() must be called after the message is received from xTimerQueue so there is no possibility of a higher priority task adding a message to the message queue with a time that is ahead of the timer daemon task (because it pre-empted the timer daemon task after the xTimeNow value was set). */ xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); switch( xMessage.xMessageID ) { case tmrCOMMAND_START : case tmrCOMMAND_START_FROM_ISR : case tmrCOMMAND_RESET : case tmrCOMMAND_RESET_FROM_ISR : case tmrCOMMAND_START_DONT_TRACE : /* Start or restart a timer. */ pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE ) { /* The timer expired before it was added to the active timer list. Process it now. */ pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); traceTIMER_EXPIRED( pxTimer ); if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) { xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY ); configASSERT( xResult ); ( void ) xResult; } else { mtCOVERAGE_TEST_MARKER(); } } else { mtCOVERAGE_TEST_MARKER(); } break; case tmrCOMMAND_STOP : case tmrCOMMAND_STOP_FROM_ISR : /* The timer has already been removed from the active list. */ pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; break; case tmrCOMMAND_CHANGE_PERIOD : case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR : pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue; configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) ); /* The new period does not really have a reference, and can be longer or shorter than the old one. The command time is therefore set to the current time, and as the period cannot be zero the next expiry time can only be in the future, meaning (unlike for the xTimerStart() case above) there is no fail case that needs to be handled here. */ ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow ); break; case tmrCOMMAND_DELETE : #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) { /* The timer has already been removed from the active list, just free up the memory if the memory was dynamically allocated. */ if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 ) { vPortFree( pxTimer ); } else { pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; } } #else { /* If dynamic allocation is not enabled, the memory could not have been dynamically allocated. So there is no need to free the memory - just mark the timer as "not active". */ pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ break; default : /* Don't expect to get here. */ break; } } } } /*-----------------------------------------------------------*/ static void prvSwitchTimerLists( void ) { TickType_t xNextExpireTime, xReloadTime; List_t *pxTemp; Timer_t *pxTimer; BaseType_t xResult; /* The tick count has overflowed. The timer lists must be switched. If there are any timers still referenced from the current timer list then they must have expired and should be processed before the lists are switched. */ while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE ) { xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); /* Remove the timer from the list. */ pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); traceTIMER_EXPIRED( pxTimer ); /* Execute its callback, then send a command to restart the timer if it is an auto-reload timer. It cannot be restarted here as the lists have not yet been switched. */ pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) { /* Calculate the reload value, and if the reload value results in the timer going into the same timer list then it has already expired and the timer should be re-inserted into the current list so it is processed again within this loop. Otherwise a command should be sent to restart the timer to ensure it is only inserted into a list after the lists have been swapped. */ xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ); if( xReloadTime > xNextExpireTime ) { listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime ); listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); } else { xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); configASSERT( xResult ); ( void ) xResult; } } else { mtCOVERAGE_TEST_MARKER(); } } pxTemp = pxCurrentTimerList; pxCurrentTimerList = pxOverflowTimerList; pxOverflowTimerList = pxTemp; } /*-----------------------------------------------------------*/ static void prvCheckForValidListAndQueue( void ) { /* Check that the list from which active timers are referenced, and the queue used to communicate with the timer service, have been initialised. */ taskENTER_CRITICAL(); { if( xTimerQueue == NULL ) { vListInitialise( &xActiveTimerList1 ); vListInitialise( &xActiveTimerList2 ); pxCurrentTimerList = &xActiveTimerList1; pxOverflowTimerList = &xActiveTimerList2; #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { /* The timer queue is allocated statically in case configSUPPORT_DYNAMIC_ALLOCATION is 0. */ static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue ); } #else { xTimerQueue = xQueueCreate( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, sizeof( DaemonTaskMessage_t ) ); } #endif #if ( configQUEUE_REGISTRY_SIZE > 0 ) { if( xTimerQueue != NULL ) { vQueueAddToRegistry( xTimerQueue, "TmrQ" ); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* configQUEUE_REGISTRY_SIZE */ } else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) { BaseType_t xReturn; Timer_t *pxTimer = xTimer; configASSERT( xTimer ); /* Is the timer in the list of active timers? */ taskENTER_CRITICAL(); { if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 ) { xReturn = pdFALSE; } else { xReturn = pdTRUE; } } taskEXIT_CRITICAL(); return xReturn; } /*lint !e818 Can't be pointer to const due to the typedef. */ /*-----------------------------------------------------------*/ void *pvTimerGetTimerID( const TimerHandle_t xTimer ) { Timer_t * const pxTimer = xTimer; void *pvReturn; configASSERT( xTimer ); taskENTER_CRITICAL(); { pvReturn = pxTimer->pvTimerID; } taskEXIT_CRITICAL(); return pvReturn; } /*-----------------------------------------------------------*/ void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) { Timer_t * const pxTimer = xTimer; configASSERT( xTimer ); taskENTER_CRITICAL(); { pxTimer->pvTimerID = pvNewID; } taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ #if( INCLUDE_xTimerPendFunctionCall == 1 ) BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken ) { DaemonTaskMessage_t xMessage; BaseType_t xReturn; /* Complete the message with the function parameters and post it to the daemon task. */ xMessage.xMessageID = tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR; xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend; xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1; xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2; xReturn = xQueueSendFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken ); tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, xReturn ); return xReturn; } #endif /* INCLUDE_xTimerPendFunctionCall */ /*-----------------------------------------------------------*/ #if( INCLUDE_xTimerPendFunctionCall == 1 ) BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) { DaemonTaskMessage_t xMessage; BaseType_t xReturn; /* This function can only be called after a timer has been created or after the scheduler has been started because, until then, the timer queue does not exist. */ configASSERT( xTimerQueue ); /* Complete the message with the function parameters and post it to the daemon task. */ xMessage.xMessageID = tmrCOMMAND_EXECUTE_CALLBACK; xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend; xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1; xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2; xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait ); tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, xReturn ); return xReturn; } #endif /* INCLUDE_xTimerPendFunctionCall */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) { return ( ( Timer_t * ) xTimer )->uxTimerNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ #if ( configUSE_TRACE_FACILITY == 1 ) void vTimerSetTimerNumber( TimerHandle_t xTimer, UBaseType_t uxTimerNumber ) { ( ( Timer_t * ) xTimer )->uxTimerNumber = uxTimerNumber; } #endif /* configUSE_TRACE_FACILITY */ /*-----------------------------------------------------------*/ /* This entire source file will be skipped if the application is not configured to include software timer functionality. If you want to include software timer functionality then ensure configUSE_TIMERS is set to 1 in FreeRTOSConfig.h. */ #endif /* configUSE_TIMERS == 1 */ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/REF-STM32F4-fw.ioc ================================================ #MicroXplorer Configuration settings - do not modify ADC1.Channel-3\#ChannelRegularConversion=ADC_CHANNEL_12 ADC1.Channel-4\#ChannelRegularConversion=ADC_CHANNEL_13 ADC1.Channel-5\#ChannelRegularConversion=ADC_CHANNEL_14 ADC1.Channel-6\#ChannelRegularConversion=ADC_CHANNEL_15 ADC1.Channel-7\#ChannelRegularConversion=ADC_CHANNEL_TEMPSENSOR ADC1.Channel-9\#ChannelRegularConversion=ADC_CHANNEL_VREFINT ADC1.ContinuousConvMode=ENABLE ADC1.DMAContinuousRequests=ENABLE ADC1.IPParameters=Rank-3\#ChannelRegularConversion,master,Channel-3\#ChannelRegularConversion,SamplingTime-3\#ChannelRegularConversion,NbrOfConversionFlag,ScanConvMode,ContinuousConvMode,DMAContinuousRequests,InjNumberOfConversion,Rank-4\#ChannelRegularConversion,Channel-4\#ChannelRegularConversion,SamplingTime-4\#ChannelRegularConversion,Rank-5\#ChannelRegularConversion,Channel-5\#ChannelRegularConversion,SamplingTime-5\#ChannelRegularConversion,Rank-6\#ChannelRegularConversion,Channel-6\#ChannelRegularConversion,SamplingTime-6\#ChannelRegularConversion,NbrOfConversion,Rank-7\#ChannelRegularConversion,Channel-7\#ChannelRegularConversion,SamplingTime-7\#ChannelRegularConversion,Rank-9\#ChannelRegularConversion,Channel-9\#ChannelRegularConversion,SamplingTime-9\#ChannelRegularConversion ADC1.InjNumberOfConversion=0 ADC1.NbrOfConversion=6 ADC1.NbrOfConversionFlag=1 ADC1.Rank-3\#ChannelRegularConversion=1 ADC1.Rank-4\#ChannelRegularConversion=2 ADC1.Rank-5\#ChannelRegularConversion=3 ADC1.Rank-6\#ChannelRegularConversion=4 ADC1.Rank-7\#ChannelRegularConversion=5 ADC1.Rank-9\#ChannelRegularConversion=6 ADC1.SamplingTime-3\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.SamplingTime-4\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.SamplingTime-5\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.SamplingTime-6\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.SamplingTime-7\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.SamplingTime-9\#ChannelRegularConversion=ADC_SAMPLETIME_28CYCLES ADC1.ScanConvMode=ENABLE ADC1.master=1 CAN1.AWUM=ENABLE CAN1.BS1=CAN_BS1_3TQ CAN1.BS2=CAN_BS2_2TQ CAN1.CalculateBaudRate=1000000 CAN1.CalculateTimeBit=999.99 CAN1.CalculateTimeQuantum=166.66666666666669 CAN1.IPParameters=CalculateTimeQuantum,CalculateTimeBit,CalculateBaudRate,BS1,Prescaler,BS2,AWUM,TXFP CAN1.Prescaler=7 CAN1.TXFP=ENABLE CAN2.AWUM=ENABLE CAN2.BS1=CAN_BS1_3TQ CAN2.BS2=CAN_BS2_2TQ CAN2.CalculateBaudRate=1000000 CAN2.CalculateTimeBit=999.99 CAN2.CalculateTimeQuantum=166.66666666666669 CAN2.IPParameters=CalculateTimeQuantum,CalculateTimeBit,CalculateBaudRate,BS1,Prescaler,BS2,AWUM CAN2.Prescaler=7 Dma.ADC1.2.Direction=DMA_PERIPH_TO_MEMORY Dma.ADC1.2.FIFOMode=DMA_FIFOMODE_DISABLE Dma.ADC1.2.Instance=DMA2_Stream0 Dma.ADC1.2.MemDataAlignment=DMA_MDATAALIGN_HALFWORD Dma.ADC1.2.MemInc=DMA_MINC_ENABLE Dma.ADC1.2.Mode=DMA_CIRCULAR Dma.ADC1.2.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD Dma.ADC1.2.PeriphInc=DMA_PINC_DISABLE Dma.ADC1.2.Priority=DMA_PRIORITY_LOW Dma.ADC1.2.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode Dma.Request0=UART4_RX Dma.Request1=UART4_TX Dma.Request2=ADC1 Dma.Request3=UART5_RX Dma.Request4=UART5_TX Dma.RequestsNb=5 Dma.UART4_RX.0.Direction=DMA_PERIPH_TO_MEMORY Dma.UART4_RX.0.FIFOMode=DMA_FIFOMODE_DISABLE Dma.UART4_RX.0.Instance=DMA1_Stream2 Dma.UART4_RX.0.MemDataAlignment=DMA_MDATAALIGN_BYTE Dma.UART4_RX.0.MemInc=DMA_MINC_ENABLE Dma.UART4_RX.0.Mode=DMA_CIRCULAR Dma.UART4_RX.0.PeriphDataAlignment=DMA_PDATAALIGN_BYTE Dma.UART4_RX.0.PeriphInc=DMA_PINC_DISABLE Dma.UART4_RX.0.Priority=DMA_PRIORITY_LOW Dma.UART4_RX.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode Dma.UART4_TX.1.Direction=DMA_MEMORY_TO_PERIPH Dma.UART4_TX.1.FIFOMode=DMA_FIFOMODE_DISABLE Dma.UART4_TX.1.Instance=DMA1_Stream4 Dma.UART4_TX.1.MemDataAlignment=DMA_MDATAALIGN_BYTE Dma.UART4_TX.1.MemInc=DMA_MINC_ENABLE Dma.UART4_TX.1.Mode=DMA_NORMAL Dma.UART4_TX.1.PeriphDataAlignment=DMA_PDATAALIGN_BYTE Dma.UART4_TX.1.PeriphInc=DMA_PINC_DISABLE Dma.UART4_TX.1.Priority=DMA_PRIORITY_LOW Dma.UART4_TX.1.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode Dma.UART5_RX.3.Direction=DMA_PERIPH_TO_MEMORY Dma.UART5_RX.3.FIFOMode=DMA_FIFOMODE_DISABLE Dma.UART5_RX.3.Instance=DMA1_Stream0 Dma.UART5_RX.3.MemDataAlignment=DMA_MDATAALIGN_BYTE Dma.UART5_RX.3.MemInc=DMA_MINC_ENABLE Dma.UART5_RX.3.Mode=DMA_CIRCULAR Dma.UART5_RX.3.PeriphDataAlignment=DMA_PDATAALIGN_BYTE Dma.UART5_RX.3.PeriphInc=DMA_PINC_DISABLE Dma.UART5_RX.3.Priority=DMA_PRIORITY_LOW Dma.UART5_RX.3.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode Dma.UART5_TX.4.Direction=DMA_MEMORY_TO_PERIPH Dma.UART5_TX.4.FIFOMode=DMA_FIFOMODE_DISABLE Dma.UART5_TX.4.Instance=DMA1_Stream7 Dma.UART5_TX.4.MemDataAlignment=DMA_MDATAALIGN_BYTE Dma.UART5_TX.4.MemInc=DMA_MINC_ENABLE Dma.UART5_TX.4.Mode=DMA_NORMAL Dma.UART5_TX.4.PeriphDataAlignment=DMA_PDATAALIGN_BYTE Dma.UART5_TX.4.PeriphInc=DMA_PINC_DISABLE Dma.UART5_TX.4.Priority=DMA_PRIORITY_LOW Dma.UART5_TX.4.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode FREERTOS.FootprintOK=true FREERTOS.IPParameters=Tasks01,configENABLE_FPU,FootprintOK,configUSE_PREEMPTION,configTOTAL_HEAP_SIZE,configUSE_TRACE_FACILITY,configUSE_APPLICATION_TASK_TAG FREERTOS.Tasks01=defaultTask,24,500,StartDefaultTask,Default,NULL,Dynamic,NULL,NULL FREERTOS.configENABLE_FPU=1 FREERTOS.configTOTAL_HEAP_SIZE=65536 FREERTOS.configUSE_APPLICATION_TASK_TAG=0 FREERTOS.configUSE_PREEMPTION=1 FREERTOS.configUSE_TRACE_FACILITY=1 File.Version=6 GPIO.groupedBy=Group By Peripherals I2C1.I2C_Mode=I2C_Fast I2C1.IPParameters=I2C_Mode I2C2.I2C_Mode=I2C_Fast I2C2.IPParameters=I2C_Mode I2C3.I2C_Mode=I2C_Fast I2C3.IPParameters=I2C_Mode KeepUserPlacement=false Mcu.Family=STM32F4 Mcu.IP0=ADC1 Mcu.IP1=CAN1 Mcu.IP10=SPI1 Mcu.IP11=SPI3 Mcu.IP12=SYS Mcu.IP13=TIM2 Mcu.IP14=TIM3 Mcu.IP15=TIM7 Mcu.IP16=TIM9 Mcu.IP17=TIM10 Mcu.IP18=TIM11 Mcu.IP19=TIM12 Mcu.IP2=CAN2 Mcu.IP20=TIM13 Mcu.IP21=TIM14 Mcu.IP22=UART4 Mcu.IP23=UART5 Mcu.IP24=USART1 Mcu.IP25=USB_DEVICE Mcu.IP26=USB_OTG_FS Mcu.IP3=DMA Mcu.IP4=FREERTOS Mcu.IP5=I2C1 Mcu.IP6=I2C2 Mcu.IP7=I2C3 Mcu.IP8=NVIC Mcu.IP9=RCC Mcu.IPNb=27 Mcu.Name=STM32F405RGTx Mcu.Package=LQFP64 Mcu.Pin0=PC13-ANTI_TAMP Mcu.Pin1=PH0-OSC_IN Mcu.Pin10=PA7 Mcu.Pin11=PC4 Mcu.Pin12=PC5 Mcu.Pin13=PB10 Mcu.Pin14=PB11 Mcu.Pin15=PB12 Mcu.Pin16=PB13 Mcu.Pin17=PB14 Mcu.Pin18=PB15 Mcu.Pin19=PC6 Mcu.Pin2=PH1-OSC_OUT Mcu.Pin20=PC7 Mcu.Pin21=PC8 Mcu.Pin22=PC9 Mcu.Pin23=PA8 Mcu.Pin24=PA9 Mcu.Pin25=PA10 Mcu.Pin26=PA11 Mcu.Pin27=PA12 Mcu.Pin28=PA13 Mcu.Pin29=PA14 Mcu.Pin3=PC2 Mcu.Pin30=PA15 Mcu.Pin31=PC10 Mcu.Pin32=PC11 Mcu.Pin33=PC12 Mcu.Pin34=PD2 Mcu.Pin35=PB3 Mcu.Pin36=PB4 Mcu.Pin37=PB5 Mcu.Pin38=PB6 Mcu.Pin39=PB7 Mcu.Pin4=PC3 Mcu.Pin40=PB8 Mcu.Pin41=PB9 Mcu.Pin42=VP_ADC1_TempSens_Input Mcu.Pin43=VP_ADC1_Vref_Input Mcu.Pin44=VP_FREERTOS_VS_CMSIS_V2 Mcu.Pin45=VP_SYS_VS_tim6 Mcu.Pin46=VP_TIM7_VS_ClockSourceINT Mcu.Pin47=VP_TIM10_VS_ClockSourceINT Mcu.Pin48=VP_TIM11_VS_ClockSourceINT Mcu.Pin49=VP_TIM13_VS_ClockSourceINT Mcu.Pin5=PA0-WKUP Mcu.Pin50=VP_TIM14_VS_ClockSourceINT Mcu.Pin51=VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS Mcu.Pin6=PA1 Mcu.Pin7=PA2 Mcu.Pin8=PA3 Mcu.Pin9=PA5 Mcu.PinsNb=52 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F405RGTx MxCube.Version=6.2.1 MxDb.Version=DB.6.0.21 NVIC.ADC_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.CAN1_RX0_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN1_RX1_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN1_SCE_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN1_TX_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN2_RX0_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN2_RX1_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN2_SCE_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.CAN2_TX_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.DMA1_Stream0_IRQn=true\:6\:0\:true\:false\:true\:true\:false\:true NVIC.DMA1_Stream2_IRQn=true\:6\:0\:true\:false\:true\:true\:false\:true NVIC.DMA1_Stream4_IRQn=true\:6\:0\:true\:false\:true\:true\:false\:true NVIC.DMA1_Stream7_IRQn=true\:6\:0\:true\:false\:true\:true\:false\:true NVIC.DMA2_Stream0_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.ForceEnableDMAVector=true NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.OTG_FS_IRQn=true\:6\:0\:true\:false\:true\:true\:false\:true NVIC.PendSV_IRQn=true\:15\:0\:false\:false\:false\:true\:false\:false NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4 NVIC.SPI3_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:false\:false\:false\:false NVIC.SavedPendsvIrqHandlerGenerated=true NVIC.SavedSvcallIrqHandlerGenerated=true NVIC.SavedSystickIrqHandlerGenerated=true NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:false\:true\:false\:true NVIC.TIM1_TRG_COM_TIM11_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.TIM1_UP_TIM10_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.TIM2_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.TIM3_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true NVIC.TIM6_DAC_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:true NVIC.TIM7_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.TIM8_TRG_COM_TIM14_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.TIM8_UP_TIM13_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true NVIC.TimeBase=TIM6_DAC_IRQn NVIC.TimeBaseIP=TIM6 NVIC.UART4_IRQn=true\:6\:0\:true\:false\:true\:true\:true\:true NVIC.UART5_IRQn=true\:6\:0\:true\:false\:true\:true\:true\:true NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false PA0-WKUP.Locked=true PA0-WKUP.Mode=Asynchronous PA0-WKUP.Signal=UART4_TX PA1.Locked=true PA1.Mode=Asynchronous PA1.Signal=UART4_RX PA10.Mode=Asynchronous PA10.Signal=USART1_RX PA11.Mode=Device_Only PA11.Signal=USB_OTG_FS_DM PA12.Mode=Device_Only PA12.Signal=USB_OTG_FS_DP PA13.Mode=Serial_Wire PA13.Signal=SYS_JTMS-SWDIO PA14.Mode=Serial_Wire PA14.Signal=SYS_JTCK-SWCLK PA15.Signal=S_TIM2_CH1_ETR PA2.Signal=S_TIM9_CH1 PA3.Signal=S_TIM9_CH2 PA5.Mode=Full_Duplex_Master PA5.Signal=SPI1_SCK PA7.Mode=Full_Duplex_Master PA7.Signal=SPI1_MOSI PA8.Mode=I2C PA8.Signal=I2C3_SCL PA9.Mode=Asynchronous PA9.Signal=USART1_TX PB10.GPIOParameters=GPIO_Label PB10.GPIO_Label=OLED_I2C2_SCL PB10.Mode=I2C PB10.Signal=I2C2_SCL PB11.GPIOParameters=GPIO_Label PB11.GPIO_Label=OLED_I2C2_SDA PB11.Mode=I2C PB11.Signal=I2C2_SDA PB12.GPIOParameters=GPIO_PuPd PB12.GPIO_PuPd=GPIO_PULLUP PB12.Mode=CAN_Activate PB12.Signal=CAN2_RX PB13.Mode=CAN_Activate PB13.Signal=CAN2_TX PB14.Signal=S_TIM12_CH1 PB15.Signal=S_TIM12_CH2 PB3.Signal=S_TIM2_CH2 PB4.Mode=Full_Duplex_Master PB4.Signal=SPI1_MISO PB5.Mode=Full_Duplex_Master PB5.Signal=SPI3_MOSI PB6.GPIOParameters=GPIO_Label PB6.GPIO_Label=IMU_I2C1_SCL PB6.Mode=I2C PB6.Signal=I2C1_SCL PB7.GPIOParameters=GPIO_Label PB7.GPIO_Label=IMU_I2C1_SDA PB7.Mode=I2C PB7.Signal=I2C1_SDA PB8.GPIOParameters=GPIO_PuPd PB8.GPIO_PuPd=GPIO_PULLUP PB8.Mode=CAN_Activate PB8.Signal=CAN1_RX PB9.Mode=CAN_Activate PB9.Signal=CAN1_TX PC10.Mode=Full_Duplex_Master PC10.Signal=SPI3_SCK PC11.Mode=Full_Duplex_Master PC11.Signal=SPI3_MISO PC12.Mode=Asynchronous PC12.Signal=UART5_TX PC13-ANTI_TAMP.GPIOParameters=GPIO_PuPd,GPIO_Label PC13-ANTI_TAMP.GPIO_Label=KEY PC13-ANTI_TAMP.GPIO_PuPd=GPIO_PULLUP PC13-ANTI_TAMP.Locked=true PC13-ANTI_TAMP.Signal=GPIO_Input PC2.Signal=ADCx_IN12 PC3.Signal=ADCx_IN13 PC4.Signal=ADCx_IN14 PC5.Signal=ADCx_IN15 PC6.Signal=S_TIM3_CH1 PC7.Signal=S_TIM3_CH2 PC8.GPIOParameters=GPIO_Speed,PinState,GPIO_PuPd,GPIO_Label PC8.GPIO_Label=LED PC8.GPIO_PuPd=GPIO_NOPULL PC8.GPIO_Speed=GPIO_SPEED_FREQ_HIGH PC8.Locked=true PC8.PinState=GPIO_PIN_SET PC8.Signal=GPIO_Output PC9.Mode=I2C PC9.Signal=I2C3_SDA PD2.Mode=Asynchronous PD2.Signal=UART5_RX PH0-OSC_IN.Mode=HSE-External-Oscillator PH0-OSC_IN.Signal=RCC_OSC_IN PH1-OSC_OUT.Mode=HSE-External-Oscillator PH1-OSC_OUT.Signal=RCC_OSC_OUT PinOutPanel.RotationAngle=0 ProjectManager.AskForMigrate=true ProjectManager.BackupPrevious=false ProjectManager.CompilerOptimize=6 ProjectManager.ComputerToolchain=false ProjectManager.CoupleFile=true ProjectManager.CustomerFirmwarePackage= ProjectManager.DefaultFWLocation=true ProjectManager.DeletePrevious=true ProjectManager.DeviceId=STM32F405RGTx ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.26.1 ProjectManager.FreePins=false ProjectManager.HalAssertFull=false ProjectManager.HeapSize=0x3C00 ProjectManager.KeepUserCode=true ProjectManager.LastFirmware=false ProjectManager.LibraryCopy=1 ProjectManager.MainLocation=Core/Src ProjectManager.NoMain=false ProjectManager.PreviousToolchain=SW4STM32 ProjectManager.ProjectBuild=false ProjectManager.ProjectFileName=REF-STM32F4-fw.ioc ProjectManager.ProjectName=REF-STM32F4-fw ProjectManager.RegisterCallBack= ProjectManager.StackSize=0x800 ProjectManager.TargetToolchain=SW4STM32 ProjectManager.ToolChainLocation= ProjectManager.UnderRoot=true ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-false,2-MX_DMA_Init-DMA-false-HAL-true,3-SystemClock_Config-RCC-false-HAL-false,4-MX_I2C1_Init-I2C1-false-HAL-true,5-MX_I2C2_Init-I2C2-false-HAL-true,6-MX_CAN1_Init-CAN1-false-HAL-true,7-MX_CAN2_Init-CAN2-false-HAL-true,8-MX_USART1_UART_Init-USART1-false-HAL-true,9-MX_I2C3_Init-I2C3-false-HAL-true,10-MX_USB_DEVICE_Init-USB_DEVICE-false-HAL-false,11-MX_SPI1_Init-SPI1-false-HAL-true,12-MX_SPI3_Init-SPI3-false-HAL-true,13-MX_UART4_Init-UART4-false-HAL-true,14-MX_ADC1_Init-ADC1-false-HAL-true,15-MX_UART5_Init-UART5-false-HAL-true,16-MX_TIM2_Init-TIM2-false-HAL-true,17-MX_TIM3_Init-TIM3-false-HAL-true,18-MX_TIM12_Init-TIM12-true-HAL-true,19-MX_TIM9_Init-TIM9-true-HAL-true,20-MX_TIM7_Init-TIM7-true-HAL-true,21-MX_TIM10_Init-TIM10-true-HAL-true,22-MX_TIM11_Init-TIM11-true-HAL-true,23-MX_TIM13_Init-TIM13-true-HAL-true,24-MX_TIM14_Init-TIM14-true-HAL-true RCC.48MHZClocksFreq_Value=48000000 RCC.AHBFreq_Value=168000000 RCC.APB1CLKDivider=RCC_HCLK_DIV4 RCC.APB1Freq_Value=42000000 RCC.APB1TimFreq_Value=84000000 RCC.APB2CLKDivider=RCC_HCLK_DIV2 RCC.APB2Freq_Value=84000000 RCC.APB2TimFreq_Value=168000000 RCC.CortexFreq_Value=168000000 RCC.EthernetFreq_Value=168000000 RCC.FCLKCortexFreq_Value=168000000 RCC.FamilyName=M RCC.HCLKFreq_Value=168000000 RCC.HSE_VALUE=8000000 RCC.HSI_VALUE=16000000 RCC.I2SClocksFreq_Value=192000000 RCC.IPParameters=48MHZClocksFreq_Value,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2CLKDivider,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,EthernetFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2SClocksFreq_Value,LSE_VALUE,LSI_VALUE,MCO2PinFreq_Value,PLLCLKFreq_Value,PLLM,PLLN,PLLQ,PLLQCLKFreq_Value,RTCFreq_Value,RTCHSEDivFreq_Value,SYSCLKFreq_VALUE,SYSCLKSource,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOOutputFreq_Value,VcooutputI2S RCC.LSE_VALUE=32768 RCC.LSI_VALUE=32000 RCC.MCO2PinFreq_Value=168000000 RCC.PLLCLKFreq_Value=168000000 RCC.PLLM=4 RCC.PLLN=168 RCC.PLLQ=7 RCC.PLLQCLKFreq_Value=48000000 RCC.RTCFreq_Value=32000 RCC.RTCHSEDivFreq_Value=4000000 RCC.SYSCLKFreq_VALUE=168000000 RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK RCC.VCOI2SOutputFreq_Value=384000000 RCC.VCOInputFreq_Value=2000000 RCC.VCOOutputFreq_Value=336000000 RCC.VcooutputI2S=192000000 SH.ADCx_IN12.0=ADC1_IN12,IN12 SH.ADCx_IN12.ConfNb=1 SH.ADCx_IN13.0=ADC1_IN13,IN13 SH.ADCx_IN13.ConfNb=1 SH.ADCx_IN14.0=ADC1_IN14,IN14 SH.ADCx_IN14.ConfNb=1 SH.ADCx_IN15.0=ADC1_IN15,IN15 SH.ADCx_IN15.ConfNb=1 SH.S_TIM12_CH1.0=TIM12_CH1,PWM Generation1 CH1 SH.S_TIM12_CH1.ConfNb=1 SH.S_TIM12_CH2.0=TIM12_CH2,PWM Generation2 CH2 SH.S_TIM12_CH2.ConfNb=1 SH.S_TIM2_CH1_ETR.0=TIM2_CH1,Encoder_Interface SH.S_TIM2_CH1_ETR.ConfNb=1 SH.S_TIM2_CH2.0=TIM2_CH2,Encoder_Interface SH.S_TIM2_CH2.ConfNb=1 SH.S_TIM3_CH1.0=TIM3_CH1,Encoder_Interface SH.S_TIM3_CH1.ConfNb=1 SH.S_TIM3_CH2.0=TIM3_CH2,Encoder_Interface SH.S_TIM3_CH2.ConfNb=1 SH.S_TIM9_CH1.0=TIM9_CH1,PWM Generation1 CH1 SH.S_TIM9_CH1.ConfNb=1 SH.S_TIM9_CH2.0=TIM9_CH2,PWM Generation2 CH2 SH.S_TIM9_CH2.ConfNb=1 SPI1.CalculateBaudRate=42.0 MBits/s SPI1.Direction=SPI_DIRECTION_2LINES SPI1.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate SPI1.Mode=SPI_MODE_MASTER SPI1.VirtualType=VM_MASTER SPI3.CalculateBaudRate=21.0 MBits/s SPI3.Direction=SPI_DIRECTION_2LINES SPI3.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate SPI3.Mode=SPI_MODE_MASTER SPI3.VirtualType=VM_MASTER TIM10.AutoReloadPreload=TIM_AUTORELOAD_PRELOAD_ENABLE TIM10.ClockDivision=TIM_CLOCKDIVISION_DIV1 TIM10.IPParameters=Prescaler,Period,AutoReloadPreload,ClockDivision TIM10.Period=9999 TIM10.Prescaler=167 TIM11.IPParameters=Prescaler,Period TIM11.Period=9999 TIM11.Prescaler=167 TIM12.Channel-PWM\ Generation1\ CH1=TIM_CHANNEL_1 TIM12.Channel-PWM\ Generation2\ CH2=TIM_CHANNEL_2 TIM12.IPParameters=Channel-PWM Generation1 CH1,Channel-PWM Generation2 CH2,Prescaler,Period TIM12.Period=999 TIM12.Prescaler=3 TIM13.IPParameters=Prescaler,Period TIM13.Period=9999 TIM13.Prescaler=83 TIM14.IPParameters=Prescaler,Period TIM14.Period=9999 TIM14.Prescaler=83 TIM2.CounterMode=TIM_COUNTERMODE_UP TIM2.EncoderMode=TIM_ENCODERMODE_TI12 TIM2.IC1Filter=4 TIM2.IC2Filter=4 TIM2.IPParameters=EncoderMode,Period,IC1Filter,IC2Filter,CounterMode TIM2.Period=65535 TIM3.AutoReloadPreload=TIM_AUTORELOAD_PRELOAD_DISABLE TIM3.EncoderMode=TIM_ENCODERMODE_TI12 TIM3.IC1Filter=4 TIM3.IC2Filter=4 TIM3.IPParameters=EncoderMode,IC1Filter,IC2Filter,AutoReloadPreload TIM7.AutoReloadPreload=TIM_AUTORELOAD_PRELOAD_ENABLE TIM7.IPParameters=AutoReloadPreload,Prescaler,Period TIM7.Period=9999 TIM7.Prescaler=83 TIM9.Channel-PWM\ Generation1\ CH1=TIM_CHANNEL_1 TIM9.Channel-PWM\ Generation2\ CH2=TIM_CHANNEL_2 TIM9.IPParameters=Channel-PWM Generation1 CH1,Channel-PWM Generation2 CH2,Prescaler,Period TIM9.Period=999 TIM9.Prescaler=7 UART4.IPParameters=VirtualMode UART4.VirtualMode=Asynchronous UART5.IPParameters=VirtualMode UART5.VirtualMode=Asynchronous USART1.IPParameters=VirtualMode USART1.VirtualMode=VM_ASYNC USB_DEVICE.CLASS_NAME_FS=CDC USB_DEVICE.IPParameters=VirtualMode-CDC_FS,VirtualModeFS,CLASS_NAME_FS USB_DEVICE.VirtualMode-CDC_FS=Cdc USB_DEVICE.VirtualModeFS=Cdc_FS USB_OTG_FS.IPParameters=VirtualMode USB_OTG_FS.VirtualMode=Device_Only VP_ADC1_TempSens_Input.Mode=IN-TempSens VP_ADC1_TempSens_Input.Signal=ADC1_TempSens_Input VP_ADC1_Vref_Input.Mode=IN-Vrefint VP_ADC1_Vref_Input.Signal=ADC1_Vref_Input VP_FREERTOS_VS_CMSIS_V2.Mode=CMSIS_V2 VP_FREERTOS_VS_CMSIS_V2.Signal=FREERTOS_VS_CMSIS_V2 VP_SYS_VS_tim6.Mode=TIM6 VP_SYS_VS_tim6.Signal=SYS_VS_tim6 VP_TIM10_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM10_VS_ClockSourceINT.Signal=TIM10_VS_ClockSourceINT VP_TIM11_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM11_VS_ClockSourceINT.Signal=TIM11_VS_ClockSourceINT VP_TIM13_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM13_VS_ClockSourceINT.Signal=TIM13_VS_ClockSourceINT VP_TIM14_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM14_VS_ClockSourceINT.Signal=TIM14_VS_ClockSourceINT VP_TIM7_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM7_VS_ClockSourceINT.Signal=TIM7_VS_ClockSourceINT VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS.Mode=CDC_FS VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS.Signal=USB_DEVICE_VS_USB_DEVICE_CDC_FS board=custom ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/ctrl_step/ctrl_step.cpp ================================================ #include "ctrl_step.hpp" #include "communication.hpp" CtrlStepMotor::CtrlStepMotor(CAN_HandleTypeDef* _hcan, uint8_t _id, bool _inverse, uint8_t _reduction, float _angleLimitMin, float _angleLimitMax) : nodeID(_id), hcan(_hcan), inverseDirection(_inverse), reduction(_reduction), angleLimitMin(_angleLimitMin), angleLimitMax(_angleLimitMax) { txHeader = { .StdId = 0, .ExtId = 0, .IDE = CAN_ID_STD, .RTR = CAN_RTR_DATA, .DLC = 8, .TransmitGlobalTime = DISABLE }; } void CtrlStepMotor::SetEnable(bool _enable) { state = _enable ? FINISH : STOP; uint8_t mode = 0x01; txHeader.StdId = nodeID << 7 | mode; // Int to Bytes uint32_t val = _enable ? 1 : 0; auto* b = (unsigned char*) &val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::DoCalibration() { uint8_t mode = 0x02; txHeader.StdId = nodeID << 7 | mode; CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetCurrentSetPoint(float _val) { state = RUNNING; uint8_t mode = 0x03; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetVelocitySetPoint(float _val) { state = RUNNING; uint8_t mode = 0x04; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetPositionSetPoint(float _val) { uint8_t mode = 0x05; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need ACK CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetPositionWithVelocityLimit(float _pos, float _vel) { uint8_t mode = 0x07; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_pos; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); b = (unsigned char*) &_vel; for (int i = 4; i < 8; i++) canBuf[i] = *(b + i - 4); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetNodeID(uint32_t _id) { uint8_t mode = 0x11; txHeader.StdId = nodeID << 7 | mode; // Int to Bytes auto* b = (unsigned char*) &_id; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetCurrentLimit(float _val) { uint8_t mode = 0x12; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetVelocityLimit(float _val) { uint8_t mode = 0x13; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetAcceleration(float _val) { uint8_t mode = 0x14; txHeader.StdId = nodeID << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 0; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::ApplyPositionAsHome() { uint8_t mode = 0x15; txHeader.StdId = nodeID << 7 | mode; CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetEnableOnBoot(bool _enable) { uint8_t mode = 0x16; txHeader.StdId = nodeID << 7 | mode; // Int to Bytes uint32_t val = _enable ? 1 : 0; auto* b = (unsigned char*) &val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetEnableStallProtect(bool _enable) { uint8_t mode = 0x1B; txHeader.StdId = nodeID << 7 | mode; uint32_t val = _enable ? 1 : 0; auto* b = (unsigned char*) &val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::Reboot() { uint8_t mode = 0x7f; txHeader.StdId = nodeID << 7 | mode; CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::EraseConfigs() { uint8_t mode = 0x7e; txHeader.StdId = nodeID << 7 | mode; CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetAngle(float _angle) { _angle = inverseDirection ? -_angle : _angle; float stepMotorCnt = _angle / 360.0f * (float) reduction; SetPositionSetPoint(stepMotorCnt); } void CtrlStepMotor::SetAngleWithVelocityLimit(float _angle, float _vel) { _angle = inverseDirection ? -_angle : _angle; float stepMotorCnt = _angle / 360.0f * (float) reduction; SetPositionWithVelocityLimit(stepMotorCnt, _vel); } void CtrlStepMotor::UpdateAngle() { uint8_t mode = 0x23; txHeader.StdId = nodeID << 7 | mode; CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::UpdateAngleCallback(float _pos, bool _isFinished) { state = _isFinished ? FINISH : RUNNING; float tmp = _pos / (float) reduction * 360; angle = inverseDirection ? -tmp : tmp; } void CtrlStepMotor::SetDceKp(int32_t _val) { uint8_t mode = 0x17; txHeader.StdId = nodeID << 7 | mode; auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetDceKv(int32_t _val) { uint8_t mode = 0x18; txHeader.StdId = nodeID << 7 | mode; auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetDceKi(int32_t _val) { uint8_t mode = 0x19; txHeader.StdId = nodeID << 7 | mode; auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void CtrlStepMotor::SetDceKd(int32_t _val) { uint8_t mode = 0x1A; txHeader.StdId = nodeID << 7 | mode; auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); canBuf[4] = 1; // Need save to EEPROM or not CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/ctrl_step/ctrl_step.hpp ================================================ #ifndef DUMMY_CORE_FW_CTRL_STEP_HPP #define DUMMY_CORE_FW_CTRL_STEP_HPP #include "fibre/protocol.hpp" #include "can.h" class CtrlStepMotor { public: enum State { RUNNING, FINISH, STOP }; const uint32_t CTRL_CIRCLE_COUNT = 200 * 256; CtrlStepMotor(CAN_HandleTypeDef* _hcan, uint8_t _id, bool _inverse = false, uint8_t _reduction = 1, float _angleLimitMin = -180, float _angleLimitMax = 180); uint8_t nodeID; float angle = 0; float angleLimitMax; float angleLimitMin; bool inverseDirection; uint8_t reduction; State state = STOP; void SetAngle(float _angle); void SetAngleWithVelocityLimit(float _angle, float _vel); // CAN Command void SetEnable(bool _enable); void DoCalibration(); void SetCurrentSetPoint(float _val); void SetVelocitySetPoint(float _val); void SetPositionSetPoint(float _val); void SetPositionWithVelocityLimit(float _pos, float _vel); void SetNodeID(uint32_t _id); void SetCurrentLimit(float _val); void SetVelocityLimit(float _val); void SetAcceleration(float _val); void SetDceKp(int32_t _val); void SetDceKv(int32_t _val); void SetDceKi(int32_t _val); void SetDceKd(int32_t _val); void ApplyPositionAsHome(); void SetEnableOnBoot(bool _enable); void SetEnableStallProtect(bool _enable); void Reboot(); void EraseConfigs(); void UpdateAngle(); void UpdateAngleCallback(float _pos, bool _isFinished); // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_ro_property("angle", &angle), make_protocol_function("reboot", *this, &CtrlStepMotor::Reboot), make_protocol_function("erase_configs", *this, &CtrlStepMotor::EraseConfigs), make_protocol_function("set_enable", *this, &CtrlStepMotor::SetEnable, "enable"), make_protocol_function("set_position_with_time", *this, &CtrlStepMotor::SetPositionWithVelocityLimit, "pos", "time"), make_protocol_function("set_position", *this, &CtrlStepMotor::SetPositionSetPoint, "pos"), make_protocol_function("set_velocity", *this, &CtrlStepMotor::SetVelocitySetPoint, "vel"), make_protocol_function("set_velocity_limit", *this, &CtrlStepMotor::SetVelocityLimit, "vel"), make_protocol_function("set_current", *this, &CtrlStepMotor::SetCurrentSetPoint, "current"), make_protocol_function("set_current_limit", *this, &CtrlStepMotor::SetCurrentLimit, "current"), make_protocol_function("set_node_id", *this, &CtrlStepMotor::SetNodeID, "id"), make_protocol_function("set_acceleration", *this, &CtrlStepMotor::SetAcceleration, "acc"), make_protocol_function("apply_home_offset", *this, &CtrlStepMotor::ApplyPositionAsHome), make_protocol_function("do_calibration", *this, &CtrlStepMotor::DoCalibration), make_protocol_function("set_enable_on_boot", *this, &CtrlStepMotor::SetEnableOnBoot, "enable"), make_protocol_function("set_dce_kp", *this, &CtrlStepMotor::SetDceKp, "vel"), make_protocol_function("set_dce_kv", *this, &CtrlStepMotor::SetDceKv, "vel"), make_protocol_function("set_dce_ki", *this, &CtrlStepMotor::SetDceKi, "vel"), make_protocol_function("set_dce_kd", *this, &CtrlStepMotor::SetDceKd, "vel"), make_protocol_function("set_enable_stall_protect", *this, &CtrlStepMotor::SetEnableStallProtect, "enable"), make_protocol_function("update_angle", *this, &CtrlStepMotor::UpdateAngle) ); } private: CAN_HandleTypeDef* hcan; uint8_t canBuf[8] = {}; CAN_TxHeaderTypeDef txHeader = {}; }; #endif //DUMMY_CORE_FW_CTRL_STEP_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca.cpp ================================================ #include "sca.hpp" /*----- NEED TO MODIFY THESE FUNCTIONS TO ADAPT DIFFERENT PLATFORMS -----*/ // As well should modify Defines in sca_api.h uint8_t SCA::Can1SendMsg(uint8_t _id, uint8_t *_msg, uint8_t _len) { SCA::txHeader[0].StdId = _id; SCA::txHeader[0].ExtId = _id; SCA::txHeader[0].IDE = 0; SCA::txHeader[0].RTR = 0; SCA::txHeader[0].DLC = _len; for (int i = 0; i < _len; i++) SCA::data[0][i] = _msg[i]; HAL_StatusTypeDef re; int i = 0xFFF; do re = HAL_CAN_AddTxMessage(&hcan1, &SCA::txHeader[0], SCA::data[0], nullptr); while (re == HAL_ERROR && (i--)); return 0; } uint8_t SCA::Can2SendMsg(uint8_t _id, uint8_t *_msg, uint8_t _len) { SCA::txHeader[1].StdId = _id; SCA::txHeader[1].ExtId = _id; SCA::txHeader[1].IDE = 0; SCA::txHeader[1].RTR = 0; SCA::txHeader[1].DLC = _len; for (int i = 0; i < _len; i++) SCA::data[1][i] = _msg[i]; HAL_StatusTypeDef re; int i = 0xFFF; do re = HAL_CAN_AddTxMessage(&hcan2, &SCA::txHeader[1], SCA::data[1], nullptr); while (re == HAL_ERROR && (i--)); return 0; } void SCA::OnCanReceiveMsg(CAN_RxHeaderTypeDef *_rxHeader, uint8_t *_data) { SCA::RxMsg.DLC = _rxHeader->DLC; SCA::RxMsg.StdId = _rxHeader->StdId; SCA::RxMsg.ExtId = _rxHeader->ExtId; SCA::RxMsg.FMI = _rxHeader->FilterMatchIndex; SCA::RxMsg.IDE = _rxHeader->IDE; SCA::RxMsg.RTR = _rxHeader->RTR; for (int i = 0; i < 8; i++) SCA::RxMsg.Data[i] = _data[i]; // Should be invoked when got CAN responds. canDispatch(&SCA::RxMsg); } /*------------------------------------------------------------------------------*/ // Static class fields. uint8_t SCA::data[2][8]; CAN_TxHeaderTypeDef SCA::txHeader[2]; CanRxMsg SCA::RxMsg; SCA::SCA(CAN_HandleTypeDef *_hcan, uint8_t _id, float _reductionRatio) : hcan(_hcan), id(_id), reductionRatio(_reductionRatio) { hcan1.Instance = CAN1; hcan2.Instance = CAN2; if (hcan->Instance == CAN1) { canHandler.CanPort = 1; canHandler.Send = SCA::Can1SendMsg; } else if (hcan->Instance == CAN2) { canHandler.CanPort = 2; canHandler.Send = SCA::Can2SendMsg; } canHandler.Retry = 2; } bool SCA::Init(bool _enableActuator) { SetupActuators(); scaHandler = getInstance(id); if (_enableActuator) return EnableActuator() == SCA_NoError; else return true; } void SCA::Homing() { if (scaHandler->Power_State == Actr_Disable) return; SetMode(SCA_Profile_Position_Mode); SetPosition(0); do { GetPosition(); HAL_Delay(100); } while ((scaHandler->Position_Real > 0.1f) || (scaHandler->Position_Real < -0.1f)); } void SCA::LookupActuators() { lookupActuators(&canHandler); } void SCA::SetupActuators() { setupActuators(id, &canHandler); } void SCA::ResetController() { resetController(id); } void SCA::RegainAttributes() { regainAttrbute(id, Block); } bool SCA::IsOnline() { isOnline(id, runCmdBlock); return scaHandler->Online_State == Actr_Enable; } bool SCA::IsEnable() { isEnable(id, runCmdBlock); return scaHandler->Power_State == Actr_Enable; } bool SCA::IsUpdate() { return isUpdate(id); } bool SCA::EnableActuator() { return enableActuator(id) == SCA_NoError; } bool SCA::DisableActuator() { return disableActuator(id) == SCA_NoError; } bool SCA::SetMode(uint8_t _actuatorMode) { return activateActuatorMode(id, _actuatorMode, Block) == SCA_NoError; } uint8_t SCA::GetMode() { getActuatorMode(id, runCmdBlock); return scaHandler->Mode; } uint16_t SCA::GetErrorCode() { getErrorCode(id, Block); return scaHandler->SCA_Warn.Error_Code; } bool SCA::ClearError() { return clearError(id, runCmdBlock) == SCA_NoError; } bool SCA::SaveAllParams() { return saveAllParams(id, Block) == SCA_NoError; } void SCA::SetPosition(float _pos) { setPositionFast(scaHandler, _pos * reductionRatio); } float SCA::GetPosition() { getPositionFast(scaHandler, Block); return scaHandler->Position_Real / reductionRatio; } void SCA::SetPositionKp(float _kp) { setPositionKp(id, _kp, runCmdBlock); } float SCA::GetPositionKp() { getPositionKp(id, Block); return scaHandler->Position_Filter_P; } void SCA::SetPositionKi(float _ki) { setPositionKi(id, _ki, runCmdBlock); } float SCA::GetPositionKi() { getPositionKi(id, Block); return scaHandler->Position_Filter_I; } void SCA::SetPositionUmax(float _max) { setPositionUmax(id, _max, runCmdBlock); } float SCA::GetPositionUmax() { getPositionUmax(id, Block); return scaHandler->Position_Filter_Limit_H; } void SCA::SetPositionUmin(float _min) { setPositionUmax(id, _min, runCmdBlock); } float SCA::GetPositionUmin() { getPositionUmin(id, Block); return scaHandler->Position_Filter_Limit_L; } void SCA::SetPositionOffSet(float _offSet) { setPositionOffset(id, _offSet, runCmdBlock); } float SCA::GetPositionOffSet() { getPositionOffset(id, Block); return scaHandler->Position_Offset; } void SCA::SetMaximumPosition(float _maxPos) { setMaximumPosition(id, _maxPos, runCmdBlock); } float SCA::GetMaximumPosition() { getMaximumPosition(id, Block); return scaHandler->Position_Limit_H; } void SCA::SetMinimumPosition(float _minPos) { setMinimumPosition(id, _minPos, runCmdBlock); } float SCA::GetMinimumPosition() { getMinimumPosition(id, Block); return scaHandler->Position_Limit_L; } uint8_t SCA::EnablePositionLimit(uint8_t _enable) { return enablePositionLimit(id, _enable, runCmdBlock); } uint8_t SCA::IsPositionLimitEnable() { return isPositionLimitEnable(id, runCmdBlock); } uint8_t SCA::SetHomingPosition(float _homingPos) { return setHomingPosition(id, _homingPos, runCmdBlock); } uint8_t SCA::EnablePositionFilter(uint8_t _enable) { return enablePositionFilter(id, _enable, runCmdBlock); } uint8_t SCA::IsPositionFilterEnable() { return isPositionFilterEnable(id, runCmdBlock); } void SCA::SetPositionCutoffFrequency(float _frequency) { setPositionCutoffFrequency(id, _frequency, runCmdBlock); } float SCA::GetPositionCutoffFrequency() { getPositionCutoffFrequency(id, Block); return scaHandler->Position_Filter_Value; } uint8_t SCA::ClearHomingInfo() { return clearHomingInfo(id, runCmdBlock); } uint8_t SCA::SetProfilePositionAcceleration(float _acceleration) { return setProfilePositionAcceleration(id, _acceleration, runCmdBlock); } float SCA::GetProfilePositionAcceleration() { getProfilePositionAcceleration(id, Block); return scaHandler->PP_Max_Acceleration; } uint8_t SCA::SetProfilePositionDeceleration(float _deceleration) { return setProfilePositionDeceleration(id, _deceleration, runCmdBlock); } float SCA::GetProfilePositionDeceleration() { getProfilePositionDeceleration(id, Block); return scaHandler->PP_Max_Deceleration; } uint8_t SCA::SetProfilePositionMaxVelocity(float _maxVelocity) { return setProfilePositionMaxVelocity(id, _maxVelocity, runCmdBlock); } float SCA::GetProfilePositionMaxVelocity() { getProfilePositionMaxVelocity(id, Block); return scaHandler->PP_Max_Velocity; } void SCA::SetVelocity(float _vel) { setVelocityFast(scaHandler, _vel * reductionRatio); } float SCA::GetVelocity() { getVelocityFast(scaHandler, Block); return scaHandler->Velocity_Real / reductionRatio; } uint8_t SCA::GetVelocityKp() { return getVelocityKp(id, Block); } uint8_t SCA::SetVelocityKp(float _kp) { return setVelocityKp(id, _kp, runCmdBlock); } uint8_t SCA::GetVelocityKi() { return getVelocityKi(id, Block); } uint8_t SCA::SetVelocityKi(float _ki) { return setVelocityKi(id, _ki, runCmdBlock); } uint8_t SCA::GetVelocityUmax() { return getVelocityUmax(id, Block); } uint8_t SCA::SetVelocityUmax(float _max) { return setVelocityUmax(id, _max, runCmdBlock); } uint8_t SCA::GetVelocityUmin() { return getVelocityUmin(id, Block); } uint8_t SCA::SetVelocityUmin(float _min) { return setVelocityUmin(id, _min, runCmdBlock); } uint8_t SCA::EnableVelocityFilter(uint8_t _enable) { return enableVelocityFilter(id, _enable, runCmdBlock); } uint8_t SCA::IsVelocityFilterEnable() { return isVelocityFilterEnable(id, runCmdBlock); } uint8_t SCA::GetVelocityCutoffFrequency() { return getVelocityCutoffFrequency(id, Block); } uint8_t SCA::SetVelocityCutoffFrequency(float _frequency) { return setVelocityCutoffFrequency(id, _frequency, runCmdBlock); } uint8_t SCA::SetVelocityLimit(float _limit) { return setVelocityLimit(id, _limit, runCmdBlock); } uint8_t SCA::GetVelocityLimit() { return getVelocityLimit(id, Block); } uint8_t SCA::SetProfileVelocityAcceleration(float _acceleration) { return setProfileVelocityAcceleration(id, _acceleration, runCmdBlock); } uint8_t SCA::GetProfileVelocityAcceleration() { return getProfileVelocityAcceleration(id, Block); } uint8_t SCA::SetProfileVelocityDeceleration(float _deceleration) { return setProfileVelocityDeceleration(id, _deceleration, runCmdBlock); } uint8_t SCA::GetProfileVelocityDeceleration() { return getProfileVelocityDeceleration(id, Block); } uint8_t SCA::SetProfileVelocityMaxVelocity(float _maxVelocity) { return setProfileVelocityMaxVelocity(id, _maxVelocity, runCmdBlock); } uint8_t SCA::GetProfileVelocityMaxVelocity() { return getProfileVelocityMaxVelocity(id, Block); } float SCA::GetVelocityRange() { return getVelocityRange(id); } uint8_t SCA::SetCurrent(float _current) { return setCurrentFast(scaHandler, _current); } uint8_t SCA::GetCurrent() { return getCurrentFast(scaHandler, Block); } uint8_t SCA::GetCurrentKp() { return getCurrentKp(id, Block); } uint8_t SCA::GetCurrentKi() { return getCurrentKi(id, Block); } uint8_t SCA::GetCurrentRange() { return getCurrentRange(id, Block); } uint8_t SCA::EnableCurrentFilter(uint8_t _enable) { return enableCurrentFilter(id, _enable, runCmdBlock); } uint8_t SCA::IsCurrentFilterEnable() { return isCurrentFilterEnable(id, runCmdBlock); } uint8_t SCA::GetCurrentCutoffFrequency() { return getCurrentCutoffFrequency(id, Block); } uint8_t SCA::SetCurrentCutoffFrequency(float _frequency) { return setCurrentCutoffFrequency(id, _frequency, runCmdBlock); } uint8_t SCA::SetCurrentLimit(float _limit) { return setCurrentLimit(id, _limit, runCmdBlock); } uint8_t SCA::GetCurrentLimit() { return getCurrentLimit(id, Block); } uint8_t SCA::GetVoltage() { return getVoltage(id, Block); } uint8_t SCA::GetLockEnergy() { return getLockEnergy(id, Block); } uint8_t SCA::SetLockEnergy(float _energy) { return setLockEnergy(id, _energy, runCmdBlock); } uint8_t SCA::GetActuatorSerialNumber() { return getActuatorSerialNumber(id, Block); } uint8_t SCA::GetMotorTemperature() { return getMotorTemperature(id, Block); } uint8_t SCA::GetInverterTemperature() { return getInverterTemperature(id, Block); } uint8_t SCA::GetMotorProtectedTemperature() { return getMotorProtectedTemperature(id, Block); } uint8_t SCA::SetMotorProtectedTemperature(float _temp) { return setMotorProtectedTemperature(id, _temp, runCmdBlock); } uint8_t SCA::GetMotorRecoveryTemperature() { return getMotorRecoveryTemperature(id, Block); } uint8_t SCA::SetMotorRecoveryTemperature(float _temp) { return setMotorRecoveryTemperature(id, _temp, runCmdBlock); } uint8_t SCA::GetInverterProtectedTemperature() { return getInverterProtectedTemperature(id, Block); } uint8_t SCA::SetInverterProtectedTemperature(float _temp) { return setInverterProtectedTemperature(id, _temp, runCmdBlock); } uint8_t SCA::GetInverterRecoveryTemperature() { return getInverterRecoveryTemperature(id, Block); } uint8_t SCA::SetInverterRecoveryTemperature(float _temp) { return setInverterRecoveryTemperature(id, _temp, runCmdBlock); } uint8_t SCA::SetActuatorID(uint8_t currentID, uint8_t _newId) { return setActuatorID(id, _newId, runCmdBlock); } uint8_t SCA::GetActuatorLastState() { return getActuatorLastState(id, Block); } uint8_t SCA::RequestCVPValue() { return requestCVPValueFast(scaHandler, runCmdBlock); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca.hpp ================================================ #ifndef REF_STM32F4_SCA_HPP #define REF_STM32F4_SCA_HPP #include "sca_api.h" #include "fibre/protocol.hpp" #include class SCA { private: uint8_t id; float reductionRatio; CAN_Handler_t canHandler; bool runCmdBlock = false; CAN_HandleTypeDef *hcan; public: static uint8_t data[2][8]; static CAN_TxHeaderTypeDef txHeader[2]; static uint8_t Can1SendMsg(uint8_t _id, uint8_t *_msg, uint8_t _len); static uint8_t Can2SendMsg(uint8_t _id, uint8_t *_msg, uint8_t _len); static CanRxMsg RxMsg; static void OnCanReceiveMsg(CAN_RxHeaderTypeDef *_rxHeader, uint8_t *_data); SCA(CAN_HandleTypeDef *_hcan, uint8_t _id, float _reductionRatio = 36); SCA_Handler_t *scaHandler; bool Init(bool _enableActuator = true); void LookupActuators(); void SetupActuators(); /*********************************/ void Homing(); void ResetController(); void RegainAttributes(); bool IsOnline(); bool IsEnable(); bool IsUpdate(); bool EnableActuator(); bool DisableActuator(); bool SetMode(uint8_t _actuatorMode); uint8_t GetMode(); uint16_t GetErrorCode(); bool ClearError(); bool SaveAllParams(); /***************λ******************/ void SetPosition(float _pos); float GetPosition(); void SetPositionKp(float _kp); float GetPositionKp(); void SetPositionKi(float _ki); float GetPositionKi(); void SetPositionUmax(float _max); float GetPositionUmax(); void SetPositionUmin(float _min); float GetPositionUmin(); void SetPositionOffSet(float _offSet); float GetPositionOffSet(); void SetMaximumPosition(float _maxPos); float GetMaximumPosition(); void SetMinimumPosition(float _minPos); float GetMinimumPosition(); uint8_t EnablePositionLimit(uint8_t _enable); uint8_t IsPositionLimitEnable(); uint8_t SetHomingPosition(float _homingPos); uint8_t EnablePositionFilter(uint8_t _enable); uint8_t IsPositionFilterEnable(); void SetPositionCutoffFrequency(float _frequency); float GetPositionCutoffFrequency(); uint8_t ClearHomingInfo(); uint8_t SetProfilePositionAcceleration(float _acceleration); float GetProfilePositionAcceleration(); uint8_t SetProfilePositionDeceleration(float _deceleration); float GetProfilePositionDeceleration(); uint8_t SetProfilePositionMaxVelocity(float _maxVelocity); float GetProfilePositionMaxVelocity(); /***************ٶ******************/ void SetVelocity(float _vel); float GetVelocity(); uint8_t GetVelocityKp(); uint8_t SetVelocityKp(float _kp); uint8_t GetVelocityKi(); uint8_t SetVelocityKi(float _ki); uint8_t GetVelocityUmax(); uint8_t SetVelocityUmax(float _max); uint8_t GetVelocityUmin(); uint8_t SetVelocityUmin(float _min); uint8_t EnableVelocityFilter(uint8_t _enable); uint8_t IsVelocityFilterEnable(); uint8_t GetVelocityCutoffFrequency(); uint8_t SetVelocityCutoffFrequency(float _frequency); uint8_t SetVelocityLimit(float _limit); uint8_t GetVelocityLimit(); uint8_t SetProfileVelocityAcceleration(float _acceleration); uint8_t GetProfileVelocityAcceleration(); uint8_t SetProfileVelocityDeceleration(float _deceleration); uint8_t GetProfileVelocityDeceleration(); uint8_t SetProfileVelocityMaxVelocity(float _maxVelocity); uint8_t GetProfileVelocityMaxVelocity(); float GetVelocityRange(); /*********************************/ uint8_t SetCurrent(float _current); uint8_t GetCurrent(); uint8_t GetCurrentKp(); uint8_t GetCurrentKi(); uint8_t GetCurrentRange(); uint8_t EnableCurrentFilter(uint8_t _enable); uint8_t IsCurrentFilterEnable(); uint8_t GetCurrentCutoffFrequency(); uint8_t SetCurrentCutoffFrequency(float _frequency); uint8_t SetCurrentLimit(float _limit); uint8_t GetCurrentLimit(); /*********************************/ uint8_t GetVoltage(); uint8_t GetLockEnergy(); uint8_t SetLockEnergy(float _energy); uint8_t GetActuatorSerialNumber(); uint8_t GetMotorTemperature(); uint8_t GetInverterTemperature(); uint8_t GetMotorProtectedTemperature(); uint8_t SetMotorProtectedTemperature(float _temp); uint8_t GetMotorRecoveryTemperature(); uint8_t SetMotorRecoveryTemperature(float _temp); uint8_t GetInverterProtectedTemperature(); uint8_t SetInverterProtectedTemperature(float _temp); uint8_t GetInverterRecoveryTemperature(); uint8_t SetInverterRecoveryTemperature(float _temp); uint8_t SetActuatorID(uint8_t currEntID, uint8_t _newId); uint8_t GetActuatorLastState(); uint8_t RequestCVPValue(); // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_function("enable", *this, &SCA::EnableActuator), make_protocol_function("disable", *this, &SCA::DisableActuator), make_protocol_function("homing", *this, &SCA::Homing), make_protocol_function("get_error_code", *this, &SCA::GetErrorCode), make_protocol_function("clear_error", *this, &SCA::ClearError), make_protocol_function("is_online", *this, &SCA::IsOnline), make_protocol_function("is_enable", *this, &SCA::IsEnable), make_protocol_function("set_mode", *this, &SCA::SetMode, "mode"), make_protocol_function("get_mode", *this, &SCA::GetMode), make_protocol_function("set_position", *this, &SCA::SetPosition, "pos"), make_protocol_function("get_position", *this, &SCA::GetPosition), make_protocol_function("set_velocity", *this, &SCA::SetVelocity, "vel"), make_protocol_function("get_velocity", *this, &SCA::GetVelocity), make_protocol_function("set_current", *this, &SCA::SetCurrent, "current"), make_protocol_function("get_current", *this, &SCA::GetCurrent) ); } }; #endif //REF_STM32F4_SCA_HPP ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca_api.c ================================================ /** ****************************************************************************** * @ SCA_API.c * @ INNFOS Software Team * @ V1.5.3 * @ 2019.09.10 * @ժ Ҫ SCA ƽӿڲ ******************************************************************************/ /* Update log --------------------------------------------------------------------*/ //V1.1.0 2019.08.05 APIýӿڸΪIDPC SDKһ£вĶдAPI //V1.5.0 2019.08.16 ݽշʽжϽգͨŹܣӦݷ // ȡϴιػ״̬APIŻ̡ //V1.5.1 2019.09.10 ѯ //V1.5.3 2019.11.15 Żػ /* Includes ----------------------------------------------------------------------*/ #include "sca_api.h" /* Variable defines --------------------------------------------------------------*/ /* ÿSCAҪһӦϢʵʹж SCA_NUM_USE */ SCA_Handler_t SCA_Handler_List[SCA_NUM_USE]; /* Funcation declaration ---------------------------------------------------------*/ extern void warnBitAnaly(SCA_Handler_t* pSCA); /* Funcation defines -------------------------------------------------------------*/ /***********************************************************/ /** * @ CANϲҴڵSCAӡҵID * @ canPortҪѯ * @ * @ע ÿִ̨ԼIDʹò֪ * ӦIDô˺ */ void lookupActuators(CAN_Handler_t* canPort) { uint16_t ID; uint8_t Found = 0; SCA_Handler_t temp; /* бԭʼ */ temp = SCA_Handler_List[0]; /* ʹһбвѯ */ SCA_Handler_List[0].Can = canPort; for(ID = 1; ID <= 0xFF; ID++) { /* װµID */ SCA_Handler_List[0].ID = ID; /* յIDID */ if(isOnline(ID,Block) == SCA_NoError) { /* ¼ҵĸӡҵID */ Found++; SCA_Debug("Found ID %d in canPort %d\r\n",ID,canPort->CanPort); } } /* ָĵ */ SCA_Handler_List[0] = temp; /* ʾϢ */ SCA_Debug("canPort %d polling done ! Found %d Actuators altogether!\r\n\r\n",canPort->CanPort,Found); } /** * @ ʼIDCAN˿Ϣ * @ idʼִID * pCanʹõCAN˿ڵַ * @ * @ע ҪSCA_NUM_USE */ void setupActuators(uint8_t id, CAN_Handler_t* pCan) { static uint32_t i = 0; /* ʹ */ if(i >= SCA_NUM_USE) return; /* Ϣ */ SCA_Handler_List[i].ID = id; SCA_Handler_List[i].Can = pCan; /* б */ i++; } /** * @ λSCAµ * @ id0ʾȫλΪ0ʱλָIDĿ * @ * @ע ֺƻ״̬SCAȽ * SCAϵ磬ָƵ״̬Ȼִд˺ * ,ִп */ void resetController(uint8_t id) { uint8_t i,id_temp; CAN_Handler_t* pCan_temp = NULL; if(id == 0) { /* Ϣ */ for(i = 0; i < SCA_NUM_USE; i++) { /* IDCAN˿ڵַ */ id_temp = SCA_Handler_List[i].ID; pCan_temp = SCA_Handler_List[i].Can; /* ṹ */ memset(&SCA_Handler_List[i], 0, sizeof(SCA_Handler_List[i])); /* ָIDCAN˿ڵַ */ SCA_Handler_List[i].ID = id_temp; SCA_Handler_List[i].Can = pCan_temp; } }else { /* ȡIDϢ */ SCA_Handler_t* pSCA = getInstance(id); if(pSCA == NULL) return; /* CAN˿ڵַ */ pCan_temp = pSCA->Can; /* ṹ */ memset(pSCA, 0, sizeof(SCA_Handler_List[0])); /* ָIDCAN˿ڵַ */ pSCA->ID = id; pSCA->Can = pCan_temp; } } /** * @ ȡָIDSCAϢ * @ id ҪȡϢִID * @ NULLδҵIDϢ * ҵϢ */ SCA_Handler_t* getInstance(uint8_t id) { uint8_t i; for(i = 0; i < SCA_NUM_USE; i++) if(SCA_Handler_List[i].ID == id) return &SCA_Handler_List[i]; return NULL; } /** * @ ִߣ״̬ * @ id Ҫִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorִ * SCA_OverTimeִ * ͨŴμ SCA_Error б */ uint8_t isOnline(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬ */ pSCA->Online_State = Actr_Disable; /* öȡSCAͨţӦSCA */ Error = SCA_Read(pSCA, R1_Heartbeat); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ʽͨ */ while((pSCA->Online_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִʹ״̬ * @ id Ҫִid * isBlockBlockΪʽUnblockΪʽ * @ Actr_Enableִʹ * Actr_Disableִδʹ * */ uint8_t isEnable(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* նȡ־λ */ pSCA->paraCache.R_Power_State = Actr_Disable; /* öȡSCAͨţӦSCA */ Error = SCA_Read(pSCA, R1_PowerState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ʽͨ */ while((pSCA->paraCache.R_Power_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִIJ״̬ * @ id Ҫִid * @ Actr_Enableв * Actr_Disableûв */ uint8_t isUpdate(uint8_t id) { uint8_t State; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ State = pSCA->Update_State; pSCA->Update_State = Actr_Disable; return State; } /** * @ ʹִʽ * @ * @ */ void enableAllActuators() { uint8_t i; for(i = 0; i < SCA_NUM_USE; i++) enableActuator(SCA_Handler_List[i].ID); } /** * @ ʧִʽ * @ * @ */ void disableAllActuators() { uint8_t i; for(i = 0; i < SCA_NUM_USE; i++) disableActuator(SCA_Handler_List[i].ID); } /** * @ ִʹ,ʽ * @ idҪʹִܵID * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t enableActuator(uint8_t id) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ѯһεǰʹ״̬ */ Error = isEnable(id, Block); if(Error) return Error; /* ǰѾĿ״ֱ̬ӷسɹ */ if(pSCA->Power_State == Actr_Enable) goto PowerOn; /* Ŀд뻺 */ pSCA->paraCache.Power_State = Actr_Enable; /* ִп */ Error = SCA_Write_1(pSCA, W1_PowerState, Actr_Enable); if(Error) return Error; /* ȴɹ¾Ϣ */ while((pSCA->Power_State != Actr_Enable) && (waitime++ < CanPowertime)); if(waitime >= CanPowertime) return SCA_OperationFailed; PowerOn: /* ״̬ */ pSCA->Online_State = Actr_Enable; /* 豸кţID */ getActuatorSerialNumber(id,Block); /* һϴιػ쳣״̬ */ getActuatorLastState(id,Block); if(pSCA->Last_State == 0) //ʾϴιػ״̬쳣 SCA_Debug("ID:%d Last_State Error\r\n",pSCA->ID); /* ̵ִֵڶдʱʹã ͬͺŵSCAֵͬҲֶµϢ òֵDZȡġ*/ getCurrentRange(id,Block); if(pSCA->Current_Max == 0) //δȡֵ޷дֵ SCA_Debug("ID:%d Current_Max Error\r\n",pSCA->ID); /* һвУΪ̿ʱ÷ */ regainAttrbute(id,Unblock); return Error; } /** * @ ִʧ, * @ idҪʧִܵID * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t disableActuator(uint8_t id) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ѯһεǰʹ״̬ */ Error = isEnable(id, Block); if(Error) return Error; /* ǰѾĿ״ֱ̬ӷسɹ */ if(pSCA->Power_State == Actr_Disable) return SCA_NoError; /* Ŀд뻺 */ pSCA->paraCache.Power_State = Actr_Disable; /* ִйػ */ Error = SCA_Write_1(pSCA, W1_PowerState, Actr_Disable); if(Error) return Error; /* ȴػɹ */ while((pSCA->Power_State != Actr_Disable) && (waitime++ < CanPowertime)); if(waitime >= CanPowertime) return SCA_OperationFailed; return Error; } /** * @ ִлģʽ * @ idҪִid * modeģʽ SCA_Protocol.h * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t activateActuatorMode(uint8_t id, uint8_t ActuatorMode, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ǰѾĿ״ֱ̬ӷسɹ */ if(pSCA->Mode == ActuatorMode) return SCA_NoError; /* Ŀд뻺 */ pSCA->paraCache.Mode = ActuatorMode; /* ִģʽл */ Error = SCA_Write_1(pSCA, W1_Mode, ActuatorMode); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Mode != ActuatorMode) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִȡǰģʽ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getActuatorMode(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* նȡȴ־λ */ pSCA->paraCache.R_Mode = Actr_Disable; /* װȡֱֵӱ浽 */ Error = SCA_Read(pSCA, R1_Mode); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Mode != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִȡϢ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getErrorCode(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* նȡȴ־λ */ pSCA->paraCache.R_Error_Code = Actr_Disable; /* ִжȡϢ */ Error = SCA_Read(pSCA, R2_Error); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Error_Code != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִϢ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t clearError(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ǰ޴[ */ if(pSCA->SCA_Warn.Error_Code == 0) return SCA_NoError; /* ִМ[ */ Error = SCA_Write_4(pSCA, W4_ClearError); /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->SCA_Warn.Error_Code != 0) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִȡǰв * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ */ void regainAttrbute(uint8_t id,uint8_t isBlock) { getErrorCode(id,isBlock); requestCVPValue(id,isBlock); getActuatorMode(id,isBlock); getPositionKp(id,isBlock); getPositionKi(id,isBlock); getPositionUmax(id,isBlock); getPositionUmin(id,isBlock); getPositionOffset(id,isBlock); getMaximumPosition(id,isBlock); getMinimumPosition(id,isBlock); isPositionLimitEnable(id,isBlock); isPositionFilterEnable(id,isBlock); getPositionCutoffFrequency(id,isBlock); getProfilePositionAcceleration(id,isBlock); getProfilePositionDeceleration(id,isBlock); getProfilePositionMaxVelocity(id,isBlock); getVelocityKp(id,isBlock); getVelocityKi(id,isBlock); getVelocityUmax(id,isBlock); getVelocityUmin(id,isBlock); isVelocityFilterEnable(id,isBlock); getVelocityCutoffFrequency(id,isBlock); getVelocityLimit(id,isBlock); getProfileVelocityAcceleration(id,isBlock); getProfileVelocityDeceleration(id,isBlock); getProfileVelocityMaxVelocity(id,isBlock); getCurrentKp(id,isBlock); getCurrentKi(id,isBlock); isCurrentFilterEnable(id,isBlock); getCurrentCutoffFrequency(id,isBlock); getCurrentLimit(id,isBlock); getVoltage(id,isBlock); getLockEnergy(id,isBlock); getMotorTemperature(id,isBlock); getInverterTemperature(id,isBlock); getMotorProtectedTemperature(id,isBlock); getMotorRecoveryTemperature(id,isBlock); getInverterProtectedTemperature(id,isBlock); getInverterRecoveryTemperature(id,isBlock); } /** * @ ִ浱ǰв * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t saveAllParams(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* մ洢״̬λ */ pSCA->Save_State = Actr_Disable; Error = SCA_Write_4(pSCA, W4_Save); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִгɹ */ while((pSCA->Save_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanPowertime) return SCA_OperationFailed; return Error; } /****************************λ*******************************/ /** * @ ִõǰλֵ * @ idҪִid * posĿλֵʵֵΧ -127.0R ~ +127.0R * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPosition(uint8_t id, float pos) { SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; return SCA_Write_3(pSCA, W3_Position, pos); } /** * @ ִõǰλֵ * @ pSCAҪִַָ * posĿλֵʵֵΧ -127.0R ~ +127.0R * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionFast(SCA_Handler_t* pSCA, float pos) { return SCA_Write_3(pSCA, W3_Position, pos); } /** * @ ִȡǰλֵ, * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPosition(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Position); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִгɹ */ while((pSCA->paraCache.R_Position_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanPowertime) return SCA_OperationFailed; return Error; } /** * @ ִȡǰλֵ,У * @ pSCAҪִַָ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionFast(SCA_Handler_t* pSCA, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; /* ״̬λ */ pSCA->paraCache.R_Position_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Position); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִгɹ */ while((pSCA->paraCache.R_Position_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanPowertime) return SCA_OperationFailed; return Error; } /** * @ ִλû Kpֵ * @ idҪִid * KpĿλû Kpֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionKp(uint8_t id,float Kp, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_P = Kp; Error = SCA_Write_3(pSCA, W3_PositionFilterP, Kp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_P != Kp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλû Kpֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionKp(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_P = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionFilterP); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_P != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλû Kiֵ * @ idҪִid * KiĿλû Kiֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionKi(uint8_t id,float Ki, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_I = Ki; Error = SCA_Write_3(pSCA, W3_PositionFilterI, Ki); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_I != Ki) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλû Kiֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionKi(uint8_t id, uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_I = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionFilterI); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_I != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλûֵ * @ idҪִid * maxĿλûֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionUmax(uint8_t id,float max,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_Limit_H = max; Error = SCA_Write_3(pSCA, W3_PositionFilterLimitH, max); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_Limit_H != max) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλûֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionUmax(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_Limit_H = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionFilterLimitH); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_Limit_H != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλûֵ * @ idҪִid * minĿλûֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionUmin(uint8_t id,float min,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_Limit_L = min; Error = SCA_Write_3(pSCA, W3_PositionFilterLimitL, min); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_Limit_L != min) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλûֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionUmin(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_Limit_L = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionFilterLimitL); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_Limit_L != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλƫֵ * @ idҪִid * offsetĿλƫֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionOffset(uint8_t id, float offset,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Offset = offset; Error = SCA_Write_3(pSCA, W3_PositionOffset, offset); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Offset != offset) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλƫֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionOffset(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Offset = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionOffset); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Offset != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλֵ * @ idҪִid * maxPosĿλֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setMaximumPosition(uint8_t id,float maxPos,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Limit_H = maxPos; Error = SCA_Write_3(pSCA, W3_PositionLimitH, maxPos); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Limit_H != maxPos) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getMaximumPosition(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Limit_H = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionLimitH); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Limit_H != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλСֵ * @ idҪִid * minPosĿλСֵʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setMinimumPosition(uint8_t id,float minPos,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Limit_L = minPos; Error = SCA_Write_3(pSCA, W3_PositionLimitL, minPos); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Limit_L != minPos) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλСֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getMinimumPosition(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Limit_L = Actr_Disable; Error = SCA_Read(pSCA, R3_PositionLimitL); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Limit_L != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ʹܻʧִλλ * @ idҪִid * enableʹ״̬Actr_EnableʹܣActr_Disableʧ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t enablePositionLimit(uint8_t id, uint8_t enable,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Limit_State = enable; Error = SCA_Write_1(pSCA, W1_PositionLimitState, enable); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Limit_State != enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλλʹ״̬ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t isPositionLimitEnable(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Limit_State = Actr_Disable; Error = SCA_Read(pSCA, R1_PositionLimitState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Limit_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλã¼λ * @ idҪִid * homingPosλãʵֵλ R * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setHomingPosition(uint8_t id,float homingPos,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Homing_Value = homingPos; Error = SCA_Write_3(pSCA, W3_HomingValue, homingPos); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Homing_Value != homingPos) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ʹִλû˲ * @ idҪִid * enableʹ״̬Actr_EnableʹܣActr_Disableʧ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t enablePositionFilter(uint8_t id,uint8_t enable,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_State = enable; Error = SCA_Write_1(pSCA, W1_PositionFilterState, enable); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_State != enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλû˲ʹ״̬ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t isPositionFilterEnable(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_State = Actr_Disable; Error = SCA_Read(pSCA, R1_PositionFilterState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλû˲ * @ idҪִid * frequency˲ʵֵλ hz * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setPositionCutoffFrequency(uint8_t id, float frequency,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Position_Filter_Value = frequency; Error = SCA_Write_2(pSCA, W2_PositionFilterValue, frequency); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Position_Filter_Value != frequency) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλû˲ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getPositionCutoffFrequency(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Position_Filter_Value = Actr_Disable; Error = SCA_Read(pSCA, R2_PositionFilterValue); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Position_Filter_Value != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ homingϢҼ޺0λ * @ idִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t clearHomingInfo(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.W_ClearHome = Actr_Disable; Error = SCA_Write_4(pSCA, W4_ClearHome); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.W_ClearHome != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλûٶ * @ idҪִid * accelerationٶȣʵֵλ RPM/S^2 * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfilePositionAcceleration(uint8_t id, float acceleration,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PP_Max_Acceleration = acceleration; /* μٶȴֵʵֵIQ20дӿ IQ24ʽģҪIQ4ı⣬ֵ λRPM轫ֵ60RPMλ ֵ = 2^4 * 60 = 960 */ acceleration /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PPMaxAcceleration, acceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PP_Max_Acceleration != acceleration) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλûٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfilePositionAcceleration(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PP_Max_Acceleration = Actr_Disable; Error = SCA_Read(pSCA, R3_PPMaxAcceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PP_Max_Acceleration != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλûٶ * @ idҪִid * decelerationٶȣʵֵλ RPM/S^2 * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfilePositionDeceleration(uint8_t id, float deceleration,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PP_Max_Deceleration = deceleration; deceleration /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PPMaxDeceleration, deceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PP_Max_Deceleration != deceleration) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλûٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfilePositionDeceleration(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PP_Max_Deceleration = Actr_Disable; Error = SCA_Read(pSCA, R3_PPMaxDeceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PP_Max_Deceleration != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִλûٶ * @ idҪִid * maxVelocityٶȣʵֵλ RPM * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfilePositionMaxVelocity(uint8_t id, float maxVelocity,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PP_Max_Velocity = maxVelocity; maxVelocity /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PPMaxVelocity, maxVelocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PP_Max_Velocity != maxVelocity) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִλûٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfilePositionMaxVelocity(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PP_Max_Velocity = Actr_Disable; Error = SCA_Read(pSCA, R3_PPMaxVelocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PP_Max_Velocity != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /****************************ٶ*******************************/ /** * @ ִǰٶֵ * @ idҪִid * velĿٶȣʵֵλ RPM * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocity(uint8_t id,float vel) { SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; return SCA_Write_3(pSCA, W3_Velocity, vel); } /** * @ ִǰٶֵ, * @ pSCAҪִַָ * velĿٶȣʵֵλ RPM * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityFast(SCA_Handler_t* pSCA,float vel) { return SCA_Write_3(pSCA, W3_Velocity, vel); } /** * @ ȡִǰٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocity(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Velocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִǰٶȣ, * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityFast(SCA_Handler_t* pSCA,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; /* ״̬λ */ pSCA->paraCache.R_Velocity_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Velocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityKp(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_P = Actr_Disable; Error = SCA_Read(pSCA, R3_VelocityFilterP); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_P != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻ * @ idҪִid * KpٶȻʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityKp(uint8_t id,float Kp,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_P = Kp; Error = SCA_Write_3(pSCA, W3_VelocityFilterP, Kp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_P != Kp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ֣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityKi(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_I = Actr_Disable; Error = SCA_Read(pSCA, R3_VelocityFilterI); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_I != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻ * @ idҪִid * KiٶȻ֣ʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityKi(uint8_t id, float Ki,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_I = Ki; Error = SCA_Write_3(pSCA, W3_VelocityFilterI, Ki); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_I != Ki) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ޷ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityUmax(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_Limit_H = Actr_Disable; Error = SCA_Read(pSCA, R3_VelocityFilterLimitH); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_Limit_H != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻ޷ * @ idҪִid * max޷ʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityUmax(uint8_t id, float max,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_Limit_H = max; Error = SCA_Write_3(pSCA, W3_VelocityFilterLimitH, max); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_Limit_H != max) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻС޷ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityUmin(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_Limit_L = Actr_Disable; Error = SCA_Read(pSCA, R3_VelocityFilterLimitL); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_Limit_L != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻС޷ * @ idҪִid * minС޷ʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityUmin(uint8_t id, float min,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_Limit_L = min; Error = SCA_Write_3(pSCA, W3_VelocityFilterLimitL, min); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_Limit_L != min) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻٶ * @ idҪִid * @ ٶȻٶ̣ʵֵ */ float getVelocityRange(uint8_t id) { return Velocity_Max; } /** * @ ʹִٶȻ˲ * @ idҪִid * enableʹ״̬Actr_EnableʹܣActr_Disableʧ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t enableVelocityFilter(uint8_t id,uint8_t enable,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_State = enable; Error = SCA_Write_1(pSCA, W1_VelocityFilterState, enable); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_State != enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ˲ʹ״̬ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t isVelocityFilterEnable(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_State = Actr_Disable; Error = SCA_Read(pSCA, R1_VelocityFilterState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ˲ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityCutoffFrequency(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Filter_Value = Actr_Disable; Error = SCA_Read(pSCA, R2_VelocityFilterValue); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Filter_Value != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻ˲ * @ idҪִid * frequency˲ʵֵλ hz * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityCutoffFrequency(uint8_t id, float frequency,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Filter_Value = frequency; Error = SCA_Write_2(pSCA, W2_VelocityFilterValue, frequency); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Filter_Value != frequency) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻ޷ * @ idҪִid * limit޷ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setVelocityLimit(uint8_t id,float limit,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Velocity_Limit = limit; Error = SCA_Write_3(pSCA, W3_VelocityLimit, limit); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Velocity_Limit != limit) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻ޷ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVelocityLimit(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Velocity_Limit = Actr_Disable; Error = SCA_Read(pSCA, R3_VelocityLimit); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Velocity_Limit != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻٶ * @ idҪִid * accelerationٶȣʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfileVelocityAcceleration(uint8_t id,float acceleration,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PV_Max_Acceleration = acceleration; acceleration /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PVMaxAcceleration, acceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PV_Max_Acceleration != acceleration) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfileVelocityAcceleration(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PV_Max_Acceleration = Actr_Disable; Error = SCA_Read(pSCA, R3_PVMaxAcceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PV_Max_Acceleration != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻٶ * @ idҪִid * decelerationٶȣʵֵ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfileVelocityDeceleration(uint8_t id,float deceleration,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PV_Max_Deceleration = deceleration; deceleration /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PVMaxDeceleration, deceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PV_Max_Deceleration != deceleration) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfileVelocityDeceleration(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PV_Max_Deceleration = Actr_Disable; Error = SCA_Read(pSCA, R3_PVMaxDeceleration); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PV_Max_Deceleration != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִٶȻٶ * @ idҪִid * maxVelocityٶȣʵֵλ RPM * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setProfileVelocityMaxVelocity(uint8_t id, float maxVelocity,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.PV_Max_Velocity = maxVelocity; maxVelocity /= Profile_Scal; Error = SCA_Write_3(pSCA, W3_PVMaxVelocity, maxVelocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->PV_Max_Velocity != maxVelocity) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִٶȻٶȣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getProfileVelocityMaxVelocity(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_PV_Max_Velocity = Actr_Disable; Error = SCA_Read(pSCA, R3_PVMaxVelocity); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_PV_Max_Velocity != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /***********************************************************/ /** * @ ִǰֵ * @ idҪִid * currentǰֵʵֵλ A * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setCurrent(uint8_t id,float current) { SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; return SCA_Write_3(pSCA, W3_Current, current); } /** * @ ִǰֵ * @ pSCAҪִַָ * currentǰֵʵֵλ A * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setCurrentFast(SCA_Handler_t* pSCA,float current) { return SCA_Write_3(pSCA, W3_Current, current); } /** * @ ȡִǰֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrent(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Current); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִǰֵ, * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentFast(SCA_Handler_t* pSCA,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; /* ״̬λ */ pSCA->paraCache.R_Current_Real = Actr_Disable; Error = SCA_Read(pSCA, R3_Current); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Real != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentKp(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ״̬λ */ pSCA->paraCache.R_Current_Filter_P = Actr_Disable; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; Error = SCA_Read(pSCA, R3_CurrentFilterP); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Filter_P != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ֣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentKi(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Filter_I = Actr_Disable; Error = SCA_Read(pSCA, R3_CurrentFilterI); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Filter_I != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ̣ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentRange(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Max = Actr_Disable; Error = SCA_Read(pSCA, R2_Current_Max); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Max != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ʹִ˲ * @ idҪִid * enableʹ״̬Actr_EnableʹܣActr_Disableʧ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t enableCurrentFilter(uint8_t id,uint8_t enable,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Current_Filter_State = enable; Error = SCA_Write_1(pSCA, W1_CurrentFilterState, enable); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Current_Filter_State != enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ˲ʹ״̬ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t isCurrentFilterEnable(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Filter_State = Actr_Disable; Error = SCA_Read(pSCA, R1_CurrentFilterState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Filter_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ˲ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentCutoffFrequency(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Filter_Value = Actr_Disable; Error = SCA_Read(pSCA, R2_CurrentFilterValue); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Filter_Value != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִ˲ * @ idҪִid * frequencyĿֹƵʣλ hz * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setCurrentCutoffFrequency(uint8_t id, float frequency,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Current_Filter_Value = frequency; Error = SCA_Write_2(pSCA, W2_CurrentFilterValue, frequency); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Current_Filter_Value != frequency) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִ޷ * @ idҪִid * limit޷ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setCurrentLimit(uint8_t id,float limit,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Current_Limit = limit; Error = SCA_Write_3(pSCA, W3_CurrentLimit, limit); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Current_Limit != limit) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ޷ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getCurrentLimit(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Current_Limit = Actr_Disable; Error = SCA_Read(pSCA, R3_CurrentLimit); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Current_Limit != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /***********************************************************/ /** * @ ȡִѹ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getVoltage(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Voltage = Actr_Disable; Error = SCA_Read(pSCA, R2_Voltage); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Voltage != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִת * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getLockEnergy(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Blocked_Energy = Actr_Disable; Error = SCA_Read(pSCA, R3_BlockEngy); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Blocked_Energy != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִתֵ * @ idҪִid * energyתֵʵֵλ J * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setLockEnergy(uint8_t id,float energy,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Blocked_Energy = energy; Error = SCA_Write_3(pSCA, W3_BlockEngy, energy); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Blocked_Energy != energy) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getMotorTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Motor_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_MotorTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Motor_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getInverterTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Inverter_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_InverterTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Inverter_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getMotorProtectedTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Inverter_Protect_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_MotorProtectTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Inverter_Protect_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִ¶ֵ * @ idҪִid * temp¶ֵʵֵλ ϶ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setMotorProtectedTemperature(uint8_t id,float temp,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Motor_Protect_Temp = temp; Error = SCA_Write_2(pSCA, W2_MotorProtectTemp, temp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Motor_Protect_Temp != temp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִָ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getMotorRecoveryTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Motor_Recover_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_MotorRecoverTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Motor_Recover_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִָ¶ֵ * @ idҪִid * tempָ¶ֵʵֵλ ϶ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setMotorRecoveryTemperature(uint8_t id,float temp,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Motor_Recover_Temp = temp; Error = SCA_Write_2(pSCA, W2_MotorRecoverTemp, temp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Motor_Recover_Temp != temp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getInverterProtectedTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Inverter_Protect_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_InverterProtectTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Inverter_Protect_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִ¶ֵ * @ idҪִid * temp¶ֵʵֵλ ϶ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setInverterProtectedTemperature(uint8_t id,float temp,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Inverter_Protect_Temp = temp; Error = SCA_Write_2(pSCA, W2_InverterProtectTemp, temp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Inverter_Protect_Temp != temp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִָ¶ֵ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getInverterRecoveryTemperature(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Inverter_Recover_Temp = Actr_Disable; Error = SCA_Read(pSCA, R2_InverterRecoverTemp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Inverter_Recover_Temp != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִָ¶ֵ * @ idҪִid * tempָ¶ֵʵֵλ ϶ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setInverterRecoveryTemperature(uint8_t id,float temp,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.Inverter_Recover_Temp = temp; Error = SCA_Write_2(pSCA, W2_InverterRecoverTemp, temp); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->Inverter_Recover_Temp != temp) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ִid * @ newIDid * currentIDǰid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t setActuatorID(uint8_t currentID, uint8_t newID,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ĿIDǷѴ */ pSCA = getInstance(newID); if(pSCA != NULL) return SCA_OperationFailed; /* ȡIDϢ */ pSCA = getInstance(currentID); if(pSCA == NULL) return SCA_UnknownID; /* Ŀд뻺棬ȴ */ pSCA->paraCache.ID = newID; Error = SCA_Write_5(pSCA, W5_ChangeID, newID); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->ID != newID) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִкţ浽 * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getActuatorSerialNumber(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Serial_Num = Actr_Disable; Error = SCA_Read(pSCA, R5_ShakeHands); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Serial_Num != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡִϴεĹػ״̬浽 * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t getActuatorLastState(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_Last_State = Actr_Disable; Error = SCA_Read(pSCA, R1_LastState); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_Last_State != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡٶλõֵУЧʸ * @ idҪִid * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t requestCVPValue(uint8_t id,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; SCA_Handler_t* pSCA = NULL; /* ȡIDϢ */ pSCA = getInstance(id); if(pSCA == NULL) return SCA_UnknownID; /* ״̬λ */ pSCA->paraCache.R_CVP = Actr_Disable; Error = SCA_Read(pSCA, R4_CVP); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_CVP != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } /** * @ ȡٶλõֵУЧʸߣ * @ pSCAҪִַָ * isBlockBlockΪʽUnblockΪʽ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t requestCVPValueFast(SCA_Handler_t* pSCA,uint8_t isBlock) { uint8_t Error; uint32_t waitime = 0; /* ״̬λ */ pSCA->paraCache.R_CVP = Actr_Disable; Error = SCA_Read(pSCA, R4_CVP); if(Error) return Error; /* */ if(isBlock == Unblock) { /* ͺʱֹ߹ */ SCA_Delay(SendInterval); return Error; } /* ȴִн */ while((pSCA->paraCache.R_CVP != Actr_Enable) && (waitime++ < CanOvertime)); if(waitime >= CanOvertime) return SCA_OperationFailed; return Error; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca_api.h ================================================ /** ****************************************************************************** * @ SCA_API.h * @ INNFOS Software Team * @ V1.5.3 * @ 2019.09.10 * @ժ Ҫ SCA ƽӿڲ ******************************************************************************/ #ifndef __SCA_API_H #define __SCA_API_H #ifdef __cplusplus extern "C" { #endif #include "sca_protocol.h" #include #include #include #include "time_utils.h" /* */ #define SCA_NUM_USE 2 //ǰʹSCA,1-255 #define SCA_DEBUGER 0 //ʹܵԽӿ #define CanOvertime 0xFFFF //ʱ180MHZ #define CanPowertime 0xFFFFFF //ػʱ180MHZ #define SendInterval 200 //ʱָͼ #define SCA_Delay(x) delayMicroseconds(x) //ʱӿڣʱʱ #if SCA_DEBUGER #define SCA_Debug printf #else #define SCA_Debug(s,...) #endif /* º궨Ϣ޸ģ */ //SCA״̬ #define Actr_Enable 0x01 #define Actr_Disable 0x00 //ͨŷʽ #define Block 0x01 #define Unblock 0x00 //SCAģʽ #define SCA_Current_Mode 0x01 #define SCA_Velocity_Mode 0x02 #define SCA_Position_Mode 0x03 #define SCA_Profile_Position_Mode 0X06 #define SCA_Profile_Velocity_Mode 0X07 #define SCA_Homing_Mode 0X08 /* FASTຯʹ˵ IDAPIʱڲIDӦϢֱ۵SCAʹ ϶ʱִЧʵֱ͡ӶָָӦĽṹ壬ʡ ȥҾḶָֹ́ʹʱԾڲݵ޸ġ ָڴFast͵APIʹõSCA϶Ƶдʱ ߺִЧʡ͵ĺҲɰմַʽ޸ġ Example: //ִID 0x03ԸIDпдλ SCA_Handler_t* pSCA_ID3 = NULL; pSCA_ID3 = getInstance(0x03); if(pSCA_ID3 == NULL) return;//δҵIDϢ //öõֱָӴFastдλú setPositionFast(pSCA_ID3,100); ʽʹ˵ вisBlockĺ֧ʽִзʽɸʵ ʹѡȴʱڲпɸCPUʸĸ ƿȺΪʽͨţȴִнأݴҡ ⣬ʹ߹أSCAڷ ִʱڲбʱͨøʱʱ䡣 */ /*********************************/ void lookupActuators(CAN_Handler_t *canPort); void setupActuators(uint8_t id, CAN_Handler_t *can); void resetController(uint8_t id); void enableAllActuators(void); void disableAllActuators(void); void regainAttrbute(uint8_t id, uint8_t isBlock); uint8_t isOnline(uint8_t id, uint8_t isBlock); uint8_t isEnable(uint8_t id, uint8_t isBlock); uint8_t isUpdate(uint8_t id); uint8_t enableActuator(uint8_t id); uint8_t disableActuator(uint8_t id); uint8_t activateActuatorMode(uint8_t id, uint8_t ActuatorMode, uint8_t isBlock); uint8_t getActuatorMode(uint8_t id, uint8_t isBlock); uint8_t getErrorCode(uint8_t id, uint8_t isBlock); uint8_t clearError(uint8_t id, uint8_t isBlock); uint8_t saveAllParams(uint8_t id, uint8_t isBlock); SCA_Handler_t *getInstance(uint8_t id); /***************λ******************/ uint8_t setPosition(uint8_t id, float pos); uint8_t setPositionFast(SCA_Handler_t *pSCA, float pos); uint8_t getPosition(uint8_t id, uint8_t isBlock); uint8_t getPositionFast(SCA_Handler_t *pSCA, uint8_t isBlock); uint8_t setPositionKp(uint8_t id, float Kp, uint8_t isBlock); uint8_t getPositionKp(uint8_t id, uint8_t isBlock); uint8_t setPositionKi(uint8_t id, float Ki, uint8_t isBlock); uint8_t getPositionKi(uint8_t id, uint8_t isBlock); uint8_t setPositionUmax(uint8_t id, float max, uint8_t isBlock); uint8_t getPositionUmax(uint8_t id, uint8_t isBlock); uint8_t setPositionUmin(uint8_t id, float min, uint8_t isBlock); uint8_t getPositionUmin(uint8_t id, uint8_t isBlock); uint8_t setPositionOffset(uint8_t id, float offset, uint8_t isBlock); uint8_t getPositionOffset(uint8_t id, uint8_t isBlock); uint8_t setMaximumPosition(uint8_t id, float maxPos, uint8_t isBlock); uint8_t getMaximumPosition(uint8_t id, uint8_t isBlock); uint8_t setMinimumPosition(uint8_t id, float minPos, uint8_t isBlock); uint8_t getMinimumPosition(uint8_t id, uint8_t isBlock); uint8_t enablePositionLimit(uint8_t id, uint8_t enable, uint8_t isBlock); uint8_t isPositionLimitEnable(uint8_t id, uint8_t isBlock); uint8_t setHomingPosition(uint8_t id, float homingPos, uint8_t isBlock); uint8_t enablePositionFilter(uint8_t id, uint8_t enable, uint8_t isBlock); uint8_t isPositionFilterEnable(uint8_t id, uint8_t isBlock); uint8_t setPositionCutoffFrequency(uint8_t id, float frequency, uint8_t isBlock); uint8_t getPositionCutoffFrequency(uint8_t id, uint8_t isBlock); uint8_t clearHomingInfo(uint8_t id, uint8_t isBlock); uint8_t setProfilePositionAcceleration(uint8_t id, float acceleration, uint8_t isBlock); uint8_t getProfilePositionAcceleration(uint8_t id, uint8_t isBlock); uint8_t setProfilePositionDeceleration(uint8_t id, float deceleration, uint8_t isBlock); uint8_t getProfilePositionDeceleration(uint8_t id, uint8_t isBlock); uint8_t setProfilePositionMaxVelocity(uint8_t id, float maxVelocity, uint8_t isBlock); uint8_t getProfilePositionMaxVelocity(uint8_t id, uint8_t isBlock); /***************ٶ******************/ uint8_t setVelocity(uint8_t id, float vel); uint8_t setVelocityFast(SCA_Handler_t *pSCA, float vel); uint8_t getVelocity(uint8_t id, uint8_t isBlock); uint8_t getVelocityFast(SCA_Handler_t *pSCA, uint8_t isBlock); uint8_t getVelocityKp(uint8_t id, uint8_t isBlock); uint8_t setVelocityKp(uint8_t id, float Kp, uint8_t isBlock); uint8_t getVelocityKi(uint8_t id, uint8_t isBlock); uint8_t setVelocityKi(uint8_t id, float Ki, uint8_t isBlock); uint8_t getVelocityUmax(uint8_t id, uint8_t isBlock); uint8_t setVelocityUmax(uint8_t id, float max, uint8_t isBlock); uint8_t getVelocityUmin(uint8_t id, uint8_t isBlock); uint8_t setVelocityUmin(uint8_t id, float min, uint8_t isBlock); uint8_t enableVelocityFilter(uint8_t id, uint8_t enable, uint8_t isBlock); uint8_t isVelocityFilterEnable(uint8_t id, uint8_t isBlock); uint8_t getVelocityCutoffFrequency(uint8_t id, uint8_t isBlock); uint8_t setVelocityCutoffFrequency(uint8_t id, float frequency, uint8_t isBlock); uint8_t setVelocityLimit(uint8_t id, float limit, uint8_t isBlock); uint8_t getVelocityLimit(uint8_t id, uint8_t isBlock); uint8_t setProfileVelocityAcceleration(uint8_t id, float acceleration, uint8_t isBlock); uint8_t getProfileVelocityAcceleration(uint8_t id, uint8_t isBlock); uint8_t setProfileVelocityDeceleration(uint8_t id, float deceleration, uint8_t isBlock); uint8_t getProfileVelocityDeceleration(uint8_t id, uint8_t isBlock); uint8_t setProfileVelocityMaxVelocity(uint8_t id, float maxVelocity, uint8_t isBlock); uint8_t getProfileVelocityMaxVelocity(uint8_t id, uint8_t isBlock); float getVelocityRange(uint8_t id); /*********************************/ uint8_t setCurrent(uint8_t id, float current); uint8_t setCurrentFast(SCA_Handler_t *pSCA, float current); uint8_t getCurrent(uint8_t id, uint8_t isBlock); uint8_t getCurrentFast(SCA_Handler_t *pSCA, uint8_t isBlock); uint8_t getCurrentKp(uint8_t id, uint8_t isBlock); uint8_t getCurrentKi(uint8_t id, uint8_t isBlock); uint8_t getCurrentRange(uint8_t id, uint8_t isBlock); uint8_t enableCurrentFilter(uint8_t id, uint8_t enable, uint8_t isBlock); uint8_t isCurrentFilterEnable(uint8_t id, uint8_t isBlock); uint8_t getCurrentCutoffFrequency(uint8_t id, uint8_t isBlock); uint8_t setCurrentCutoffFrequency(uint8_t id, float frequency, uint8_t isBlock); uint8_t setCurrentLimit(uint8_t id, float limit, uint8_t isBlock); uint8_t getCurrentLimit(uint8_t id, uint8_t isBlock); /*********************************/ uint8_t getVoltage(uint8_t id, uint8_t isBlock); uint8_t getLockEnergy(uint8_t id, uint8_t isBlock); uint8_t setLockEnergy(uint8_t id, float energy, uint8_t isBlock); uint8_t getActuatorSerialNumber(uint8_t id, uint8_t isBlock); uint8_t getMotorTemperature(uint8_t id, uint8_t isBlock); uint8_t getInverterTemperature(uint8_t id, uint8_t isBlock); uint8_t getMotorProtectedTemperature(uint8_t id, uint8_t isBlock); uint8_t setMotorProtectedTemperature(uint8_t id, float temp, uint8_t isBlock); uint8_t getMotorRecoveryTemperature(uint8_t id, uint8_t isBlock); uint8_t setMotorRecoveryTemperature(uint8_t id, float temp, uint8_t isBlock); uint8_t getInverterProtectedTemperature(uint8_t id, uint8_t isBlock); uint8_t setInverterProtectedTemperature(uint8_t id, float temp, uint8_t isBlock); uint8_t getInverterRecoveryTemperature(uint8_t id, uint8_t isBlock); uint8_t setInverterRecoveryTemperature(uint8_t id, float temp, uint8_t isBlock); uint8_t setActuatorID(uint8_t currentID, uint8_t newID, uint8_t isBlock); uint8_t getActuatorLastState(uint8_t id, uint8_t isBlock); uint8_t requestCVPValue(uint8_t id, uint8_t isBlock); uint8_t requestCVPValueFast(SCA_Handler_t *pSCA, uint8_t isBlock); #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca_protocol.c ================================================ /** ****************************************************************************** * @ SCA_Protocol.c * @ INNFOS Software Team * @ V1.5.2 * @ 2019.06.24 * @ժ Ҫ INNFOS CAN ͨЭ ******************************************************************************/ /* Update log --------------------------------------------------------------------*/ //V1.1.0 2019.08.05 дӿ,CANߵݵȴʱ //V1.5.0 2019.08.16 ݽսӿڣͳһӿڡݷӿڣ //V1.5.2 2019.11.04 ޸Ծɰļԡ /* Includes ----------------------------------------------------------------------*/ #include "sca_api.h" /* Forward Declaration -----------------------------------------------------------*/ static uint8_t canTransmit(SCA_Handler_t *pSCA, uint8_t *TxBuf, uint8_t TxLen); static void R1dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg); static void R2dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg); static void R3dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg); static void R4dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg); static void WriteDataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg); void warnBitAnaly(SCA_Handler_t *pSCA); /* Funcation defines -------------------------------------------------------------*/ /** * @ 1д2byte2byte * @ pSCAҪִַָ * cmdָ * TxDataҪ͵ݣ * 1.ִģʽѡ 2.ʹܣ0x01ʧܣ0x00 * @ SCA_NoErrorͳɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Write_1(SCA_Handler_t *pSCA, uint8_t cmd, uint8_t TxData) { uint8_t TxBuf[2]; /* ݴʽ TxBuf[0]- TxBuf[1]-ݣλ TxBuf[7]-ݣλ */ TxBuf[0] = cmd; TxBuf[1] = TxData; /* õײͨźݣͨŴ򷵻شֵ */ return canTransmit(pSCA, TxBuf, 2); } /** * @ 2д3byte2byte * @ pSCAҪִַָ * cmdָ * TxDataҪ͵ݣʵֵ * @ SCA_NoErrorͳɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Write_2(SCA_Handler_t *pSCA, uint8_t cmd, float TxData) { uint8_t TxBuf[3]; int16_t temp; /* ڶдIQ8ʽд */ temp = TxData * IQ8; /* ݴ */ TxBuf[0] = cmd; TxBuf[1] = (uint8_t) (temp >> 8); TxBuf[2] = (uint8_t) (temp >> 0); return canTransmit(pSCA, TxBuf, 3); } /** * @ 3д5byte2byte * @ pSCAҪִַָ * cmdָ * TxData͵ݣʵֵ * @ SCA_NoErrorͳɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Write_3(SCA_Handler_t *pSCA, uint8_t cmd, float TxData) { uint8_t TxBuf[5]; int32_t temp; /* ٶ趨ʱҪñֵ 趨ֵԸòֵתΪIQ24ʽ */ if ((cmd == W3_Velocity) || (cmd == W3_VelocityLimit)) temp = TxData / Velocity_Max * IQ24; else if ((cmd == W3_Current) || (cmd == W3_CurrentLimit)) temp = TxData / pSCA->Current_Max * IQ24; else if (cmd == W3_BlockEngy) temp = TxData * BlkEngy_Scal; //תΪʵֵ75.225 else temp = TxData * IQ24; TxBuf[0] = cmd; TxBuf[1] = (uint8_t) (temp >> 24); TxBuf[2] = (uint8_t) (temp >> 16); TxBuf[3] = (uint8_t) (temp >> 8); TxBuf[4] = (uint8_t) (temp >> 0); return canTransmit(pSCA, TxBuf, 5); } /** * @ 4д1byte2byte * @ pSCAҪִַָ * cmdָ * @ SCA_NoErrorͳɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Write_4(SCA_Handler_t *pSCA, uint8_t cmd) { uint8_t TxBuf[1]; TxBuf[0] = cmd; return canTransmit(pSCA, TxBuf, 1); } /** * @ 5д6byte2byte * @ pSCAҪִַָ * cmdָ * TxData * @ SCA_NoErrorͳɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Write_5(SCA_Handler_t *pSCA, uint8_t cmd, uint8_t TxData) { uint8_t TxBuf[6]; /* дݸʽ 1ֽ+4ֽڵַSCAкţ+1ֽڲĿݣ */ TxBuf[0] = cmd; TxBuf[1] = pSCA->Serial_Num[0]; TxBuf[2] = pSCA->Serial_Num[1]; TxBuf[3] = pSCA->Serial_Num[2]; TxBuf[4] = pSCA->Serial_Num[3]; TxBuf[5] = TxData; return canTransmit(pSCA, TxBuf, 6); } /** * @ ȡӿڣ1byte * @ pSCAҪִַָ * cmdָ * @ SCA_NoErrorɹ * ͨŴμ SCA_Error б */ uint8_t SCA_Read(SCA_Handler_t *pSCA, uint8_t cmd) { uint8_t TxBuf[1]; TxBuf[0] = cmd; return canTransmit(pSCA, TxBuf, 1); } /** * @ CANײͨź * @ IDҪִID * TxBufҪ͵ݵַ * TxLenҪ͵ݳ * @ SCA_NoErrorɹ * SCA_SendErrorʧ */ static uint8_t canTransmit(SCA_Handler_t *pSCA, uint8_t *TxBuf, uint8_t TxLen) { uint32_t waitime = 0; /* CAN1ָݣʧططRetry */ while (pSCA->Can->Send(pSCA->ID, TxBuf, TxLen) && (waitime < pSCA->Can->Retry)) waitime++; /* ʹ趨ֵطʧ */ if (waitime >= pSCA->Can->Retry) return SCA_SendError; /* ݷͳɹûд */ return SCA_NoError; } /** * @ 1ȡݽ1byte2byte * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void R1dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { /* ȡװصյַ */ switch (RxMsg->Data[0]) { case R1_Heartbeat: pSCA->Online_State = RxMsg->Data[1]; break; case R1_Mode: pSCA->Mode = RxMsg->Data[1]; pSCA->paraCache.R_Mode = Actr_Enable; break; case R1_LastState: pSCA->Last_State = RxMsg->Data[1]; pSCA->paraCache.R_Last_State = Actr_Enable; break; case R1_CurrentFilterState: pSCA->Current_Filter_State = RxMsg->Data[1]; pSCA->paraCache.R_Current_Filter_State = Actr_Enable; break; case R1_VelocityFilterState: pSCA->Velocity_Filter_State = RxMsg->Data[1]; pSCA->paraCache.R_Velocity_Filter_State = Actr_Enable; break; case R1_PositionFilterState: pSCA->Position_Filter_State = RxMsg->Data[1]; pSCA->paraCache.R_Position_Filter_State = Actr_Enable; break; case R1_PositionLimitState: pSCA->Position_Limit_State = RxMsg->Data[1]; pSCA->paraCache.R_Position_Limit_State = Actr_Enable; break; case R1_PowerState: pSCA->Power_State = RxMsg->Data[1]; pSCA->paraCache.R_Power_State = Actr_Enable; break; default: break; } } /** * @ 2ȡݽ1byte3byte * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void R2dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { int16_t temp; float RxData; /* ڶдΪIQ8ʽ */ temp = ((int16_t) RxMsg->Data[1]) << 8; temp |= ((int16_t) RxMsg->Data[2]) << 0; /* ڵڶдУѹΪIQ10ʽ */ if (RxMsg->Data[0] == R2_Voltage) RxData = (float) temp / IQ10; else RxData = (float) temp / IQ8; switch (RxMsg->Data[0]) { case R2_Voltage: pSCA->Voltage = RxData; pSCA->paraCache.R_Voltage = Actr_Enable; break; case R2_Current_Max: pSCA->Current_Max = RxData; pSCA->paraCache.R_Current_Max = Actr_Enable; break; case R2_CurrentFilterValue: pSCA->Current_Filter_Value = RxData; pSCA->paraCache.R_Current_Filter_Value = Actr_Enable; break; case R2_VelocityFilterValue: pSCA->Velocity_Filter_Value = RxData; pSCA->paraCache.R_Velocity_Filter_Value = Actr_Enable; break; case R2_PositionFilterValue: pSCA->Position_Filter_Value = RxData; pSCA->paraCache.R_Position_Filter_Value = Actr_Enable; break; case R2_MotorTemp: pSCA->Motor_Temp = RxData; pSCA->paraCache.R_Motor_Temp = Actr_Enable; break; case R2_InverterTemp: pSCA->Inverter_Temp = RxData; pSCA->paraCache.R_Inverter_Temp = Actr_Enable; break; case R2_InverterProtectTemp: pSCA->Inverter_Protect_Temp = RxData; pSCA->paraCache.R_Inverter_Protect_Temp = Actr_Enable; break; case R2_InverterRecoverTemp: pSCA->Inverter_Recover_Temp = RxData; pSCA->paraCache.R_Inverter_Recover_Temp = Actr_Enable; break; case R2_MotorProtectTemp: pSCA->Motor_Protect_Temp = RxData; pSCA->paraCache.R_Motor_Protect_Temp = Actr_Enable; break; case R2_MotorRecoverTemp: pSCA->Motor_Recover_Temp = RxData; pSCA->paraCache.R_Motor_Recover_Temp = Actr_Enable; break; case R2_Error: pSCA->SCA_Warn.Error_Code = temp; warnBitAnaly(pSCA); pSCA->paraCache.R_Error_Code = Actr_Enable; break; default: break; } } /** * @ 3ȡݽ1byte5byte * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void R3dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { int32_t temp; float RxData; /* дIQ24ʽ */ temp = ((int32_t) RxMsg->Data[1]) << 24; temp |= ((int32_t) RxMsg->Data[2]) << 16; temp |= ((int32_t) RxMsg->Data[3]) << 8; temp |= ((int32_t) RxMsg->Data[4]) << 0; /* ٶȺ͵ʹñֵҪתֵԸòֵõʵֵ */ if ((RxMsg->Data[0] == R3_Velocity) || (RxMsg->Data[0] == R3_VelocityLimit)) RxData = (float) temp / IQ24 * Velocity_Max; else if ((RxMsg->Data[0] == R3_Current) || (RxMsg->Data[0] == R3_CurrentLimit)) RxData = (float) temp / IQ24 * pSCA->Current_Max; else if (RxMsg->Data[0] == R3_BlockEngy) RxData = (float) temp / BlkEngy_Scal; //תΪʵ75.225 else RxData = (float) temp / IQ24; switch (RxMsg->Data[0]) { case R3_Current: pSCA->Current_Real = RxData; pSCA->paraCache.R_Current_Real = Actr_Enable; break; case R3_Velocity: pSCA->Velocity_Real = RxData; pSCA->paraCache.R_Velocity_Real = Actr_Enable; break; case R3_Position: pSCA->Position_Real = RxData; pSCA->paraCache.R_Position_Real = Actr_Enable; break; case R3_CurrentFilterP: pSCA->Current_Filter_P = RxData; pSCA->paraCache.R_Current_Filter_P = Actr_Enable; break; case R3_CurrentFilterI: pSCA->Current_Filter_I = RxData; pSCA->paraCache.R_Current_Filter_I = Actr_Enable; break; case R3_VelocityFilterP: pSCA->Velocity_Filter_P = RxData; pSCA->paraCache.R_Velocity_Filter_P = Actr_Enable; break; case R3_VelocityFilterI: pSCA->Velocity_Filter_I = RxData; pSCA->paraCache.R_Velocity_Filter_I = Actr_Enable; break; case R3_PositionFilterP: pSCA->Position_Filter_P = RxData; pSCA->paraCache.R_Position_Filter_P = Actr_Enable; break; case R3_PositionFilterI: pSCA->Position_Filter_I = RxData; pSCA->paraCache.R_Position_Filter_I = Actr_Enable; break; case R3_PositionFilterD: break; case R3_PPMaxVelocity: pSCA->PP_Max_Velocity = RxData * Profile_Scal; pSCA->paraCache.R_PP_Max_Velocity = Actr_Enable; break; case R3_PPMaxAcceleration: pSCA->PP_Max_Acceleration = RxData * Profile_Scal; pSCA->paraCache.R_PP_Max_Acceleration = Actr_Enable; break; case R3_PPMaxDeceleration: pSCA->PP_Max_Deceleration = RxData * Profile_Scal; pSCA->paraCache.R_PP_Max_Deceleration = Actr_Enable; break; case R3_PVMaxVelocity: pSCA->PV_Max_Velocity = RxData * Profile_Scal; pSCA->paraCache.R_PV_Max_Velocity = Actr_Enable; break; case R3_PVMaxAcceleration: pSCA->PV_Max_Acceleration = RxData * Profile_Scal; pSCA->paraCache.R_PV_Max_Acceleration = Actr_Enable; break; case R3_PVMaxDeceleration: pSCA->PV_Max_Deceleration = RxData * Profile_Scal; pSCA->paraCache.R_PV_Max_Deceleration = Actr_Enable; break; case R3_CurrentFilterLimitL: break; case R3_CurrentFilterLimitH: break; case R3_VelocityFilterLimitL: pSCA->Velocity_Filter_Limit_L = RxData; pSCA->paraCache.R_Velocity_Filter_Limit_L = Actr_Enable; break; case R3_VelocityFilterLimitH: pSCA->Velocity_Filter_Limit_H = RxData; pSCA->paraCache.R_Velocity_Filter_Limit_H = Actr_Enable; break; case R3_PositionFilterLimitL: pSCA->Position_Filter_Limit_L = RxData; pSCA->paraCache.R_Position_Filter_Limit_L = Actr_Enable; break; case R3_PositionFilterLimitH: pSCA->Position_Filter_Limit_H = RxData; pSCA->paraCache.R_Position_Filter_Limit_H = Actr_Enable; break; case R3_CurrentLimit: pSCA->Current_Limit = RxData; pSCA->paraCache.R_Current_Limit = Actr_Enable; break; case R3_VelocityLimit: pSCA->Velocity_Limit = RxData; pSCA->paraCache.R_Velocity_Limit = Actr_Enable; break; case R3_Inertia: break; case R3_PositionLimitH: pSCA->Position_Limit_H = RxData; pSCA->paraCache.R_Position_Limit_H = Actr_Enable; break; case R3_PositionLimitL: pSCA->Position_Limit_L = RxData; pSCA->paraCache.R_Position_Limit_L = Actr_Enable; break; case R3_PositionOffset: pSCA->Position_Offset = RxData; pSCA->paraCache.R_Position_Offset = Actr_Enable; break; case R3_HomingCurrentLimitL: pSCA->Homing_Current_Limit_L = RxData; pSCA->paraCache.R_Homing_Current_Limit_L = Actr_Enable; break; case R3_HomingCurrentLimitH: pSCA->Homing_Current_Limit_H = RxData; pSCA->paraCache.R_Homing_Current_Limit_H = Actr_Enable; break; case R3_BlockEngy: pSCA->Blocked_Energy = RxData; pSCA->paraCache.R_Blocked_Energy = Actr_Enable; break; default: break; } } /** * @ 4ȡݽ1byte8byte * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void R4dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { int32_t temp; /* ȡЭУΪʹٶȡλͬһ֡бʾ ٶֵIQ14ʽ䣬λֵIQ16ʽ䡣Ϊ˷ λļ㣬λֵ8λλתIQ24õʵֵ ͬٶֵ16λλתIQ30õʵֵ */ temp = ((int32_t) RxMsg->Data[1]) << 24; temp |= ((int32_t) RxMsg->Data[2]) << 16; temp |= ((int32_t) RxMsg->Data[3]) << 8; pSCA->Position_Real = (float) temp / IQ24; temp = ((int32_t) RxMsg->Data[4]) << 24; temp |= ((int32_t) RxMsg->Data[5]) << 16; pSCA->Velocity_Real = (float) temp / IQ30 * Velocity_Max; temp = ((int32_t) RxMsg->Data[6]) << 24; temp |= ((int32_t) RxMsg->Data[7]) << 16; pSCA->Current_Real = (float) temp / IQ30 * pSCA->Current_Max; /* յ */ pSCA->paraCache.R_CVP = Actr_Enable; } /** * @ 5ȡݽ1byte5byte * ڲѯִָк * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void R5dataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { /* װк */ pSCA->Serial_Num[0] = RxMsg->Data[1]; pSCA->Serial_Num[1] = RxMsg->Data[2]; pSCA->Serial_Num[2] = RxMsg->Data[3]; pSCA->Serial_Num[3] = RxMsg->Data[4]; /* յ */ pSCA->paraCache.R_Serial_Num = Actr_Enable; } /** * @ дݽед * ڲѯִָк * @ pSCAĿִַָ * RxMsgյݰ * @ */ static void WriteDataProcess(SCA_Handler_t *pSCA, CanRxMsg *RxMsg) { /* дɹеIJµ */ if (RxMsg->Data[1] == Actr_Enable) { /* дɹλ洢־λ */ pSCA->Save_State = Actr_Disable; switch (RxMsg->Data[0]) { case W1_Mode: pSCA->Mode = pSCA->paraCache.Mode; break; case W1_CurrentFilterState: pSCA->Current_Filter_State = pSCA->paraCache.Current_Filter_State; break; case W1_VelocityFilterState: pSCA->Velocity_Filter_State = pSCA->paraCache.Velocity_Filter_State; break; case W1_PositionFilterState: pSCA->Position_Filter_State = pSCA->paraCache.Position_Filter_State; break; case W1_PositionLimitState: pSCA->Position_Limit_State = pSCA->paraCache.Position_Limit_State; break; case W1_PowerState: pSCA->Power_State = pSCA->paraCache.Power_State; break; case W2_CurrentFilterValue: pSCA->Current_Filter_Value = pSCA->paraCache.Current_Filter_Value; break; case W2_VelocityFilterValue: pSCA->Velocity_Filter_Value = pSCA->paraCache.Velocity_Filter_Value; break; case W2_PositionFilterValue: pSCA->Position_Filter_Value = pSCA->paraCache.Position_Filter_Value; break; case W2_InverterProtectTemp: pSCA->Inverter_Protect_Temp = pSCA->paraCache.Inverter_Protect_Temp; break; case W2_InverterRecoverTemp: pSCA->Inverter_Recover_Temp = pSCA->paraCache.Inverter_Recover_Temp; break; case W2_MotorProtectTemp: pSCA->Motor_Protect_Temp = pSCA->paraCache.Motor_Protect_Temp; break; case W2_MotorRecoverTemp: pSCA->Motor_Recover_Temp = pSCA->paraCache.Motor_Recover_Temp; break; case W3_Current: pSCA->Current_Real = pSCA->paraCache.Current_Real; break; case W3_Velocity: pSCA->Velocity_Real = pSCA->paraCache.Velocity_Real; break; case W3_Position: pSCA->Position_Real = pSCA->paraCache.Position_Real; break; case W3_CurrentFilterP: pSCA->Current_Filter_P = pSCA->paraCache.Current_Filter_P; break; case W3_CurrentFilterI: pSCA->Current_Filter_I = pSCA->paraCache.Current_Filter_I; break; case W3_VelocityFilterP: pSCA->Velocity_Filter_P = pSCA->paraCache.Velocity_Filter_P; break; case W3_VelocityFilterI: pSCA->Velocity_Filter_I = pSCA->paraCache.Velocity_Filter_I; break; case W3_PositionFilterP: pSCA->Position_Filter_P = pSCA->paraCache.Position_Filter_P; break; case W3_PositionFilterI: pSCA->Position_Filter_I = pSCA->paraCache.Position_Filter_I; break; case W3_PositionFilterD: break; case W3_PPMaxVelocity: pSCA->PP_Max_Velocity = pSCA->paraCache.PP_Max_Velocity; break; case W3_PPMaxAcceleration: pSCA->PP_Max_Acceleration = pSCA->paraCache.PP_Max_Acceleration; break; case W3_PPMaxDeceleration: pSCA->PP_Max_Deceleration = pSCA->paraCache.PP_Max_Deceleration; break; case W3_PVMaxVelocity: pSCA->PV_Max_Velocity = pSCA->paraCache.PV_Max_Velocity; break; case W3_PVMaxAcceleration: pSCA->PV_Max_Acceleration = pSCA->paraCache.PV_Max_Acceleration; break; case W3_PVMaxDeceleration: pSCA->PV_Max_Deceleration = pSCA->paraCache.PV_Max_Deceleration; break; case W3_CurrentFilterLimitL: break; case W3_CurrentFilterLimitH: break; case W3_VelocityFilterLimitL: pSCA->Velocity_Filter_Limit_L = pSCA->paraCache.Velocity_Filter_Limit_L; break; case W3_VelocityFilterLimitH: pSCA->Velocity_Filter_Limit_H = pSCA->paraCache.Velocity_Filter_Limit_H; break; case W3_PositionFilterLimitL: pSCA->Position_Filter_Limit_L = pSCA->paraCache.Position_Filter_Limit_L; break; case W3_PositionFilterLimitH: pSCA->Position_Filter_Limit_H = pSCA->paraCache.Position_Filter_Limit_H; break; case W3_CurrentLimit: pSCA->Current_Limit = pSCA->paraCache.Current_Limit; break; case W3_VelocityLimit: pSCA->Velocity_Limit = pSCA->paraCache.Velocity_Limit; break; case W3_PositionLimitH: pSCA->Position_Limit_H = pSCA->paraCache.Position_Limit_H; break; case W3_PositionLimitL: pSCA->Position_Limit_L = pSCA->paraCache.Position_Limit_L; break; case W3_HomingValue: pSCA->Homing_Value = pSCA->paraCache.Homing_Value; break; case W3_PositionOffset: pSCA->Position_Offset = pSCA->paraCache.Position_Offset; break; case W3_HomingCurrentLimitL: pSCA->Homing_Current_Limit_L = pSCA->paraCache.Homing_Current_Limit_L; break; case W3_HomingCurrentLimitH: pSCA->Homing_Current_Limit_H = pSCA->paraCache.Homing_Current_Limit_H; break; case W3_BlockEngy: pSCA->Blocked_Energy = pSCA->paraCache.Blocked_Energy; break; case W4_ClearError: pSCA->SCA_Warn.Error_Code = 0; warnBitAnaly(pSCA); break; case W4_ClearHome: pSCA->Position_Real = 0; pSCA->Position_Limit_H = 127.0f; pSCA->Position_Limit_L = -127.0f; pSCA->paraCache.W_ClearHome = Actr_Enable; break; case W4_Save: pSCA->Save_State = Actr_Enable; break; case W5_ChangeID: pSCA->ID = pSCA->paraCache.ID; default: break; } } } /** * @ CANݽ * @ RxMessageյݰ * @ */ void canDispatch(CanRxMsg *RxMsg) { SCA_Handler_t *pSCA = getInstance((uint8_t) RxMsg->StdId); /* ڸIDϢ */ if (pSCA == NULL) return; /* ݸ */ pSCA->Update_State = Actr_Enable; /* */ switch (RxMsg->Data[0]) { case R1_Heartbeat: case R1_Mode: case R1_LastState: case R1_CurrentFilterState: case R1_VelocityFilterState: case R1_PositionFilterState: case R1_PositionLimitState: case R1_PowerState: R1dataProcess(pSCA, RxMsg); break; case R2_Voltage: case R2_Current_Max: case R2_CurrentFilterValue: case R2_VelocityFilterValue: case R2_PositionFilterValue: case R2_MotorTemp: case R2_InverterTemp: case R2_InverterProtectTemp: case R2_InverterRecoverTemp: case R2_MotorProtectTemp: case R2_MotorRecoverTemp: case R2_Error: R2dataProcess(pSCA, RxMsg); break; case R3_Current: case R3_Velocity: case R3_Position: case R3_CurrentFilterP: case R3_CurrentFilterI: case R3_VelocityFilterP: case R3_VelocityFilterI: case R3_PositionFilterP: case R3_PositionFilterI: case R3_PositionFilterD: case R3_PPMaxVelocity: case R3_PPMaxAcceleration: case R3_PPMaxDeceleration: case R3_PVMaxVelocity: case R3_PVMaxAcceleration: case R3_PVMaxDeceleration: case R3_CurrentFilterLimitL: case R3_CurrentFilterLimitH: case R3_VelocityFilterLimitL: case R3_VelocityFilterLimitH: case R3_PositionFilterLimitL: case R3_PositionFilterLimitH: case R3_CurrentLimit: case R3_VelocityLimit: case R3_Inertia: case R3_PositionLimitH: case R3_PositionLimitL: case R3_PositionOffset: case R3_HomingCurrentLimitL: case R3_HomingCurrentLimitH: case R3_BlockEngy: R3dataProcess(pSCA, RxMsg); break; case R4_CVP: R4dataProcess(pSCA, RxMsg); break; case R5_ShakeHands: R5dataProcess(pSCA, RxMsg); break; /* ΪдָждǷɹ¾ */ default: WriteDataProcess(pSCA, RxMsg); break; } } /** * @ ʶеľϢ * @ pSCAҪִַָ * @ */ void warnBitAnaly(SCA_Handler_t *pSCA) { if (pSCA->SCA_Warn.Error_Code & 0x0001) pSCA->SCA_Warn.WARN_OVER_VOLT = Actr_Enable; else pSCA->SCA_Warn.WARN_OVER_VOLT = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0002) pSCA->SCA_Warn.WARN_UNDER_VOLT = Actr_Enable; else pSCA->SCA_Warn.WARN_UNDER_VOLT = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0004) pSCA->SCA_Warn.WARN_LOCK_ROTOR = Actr_Enable; else pSCA->SCA_Warn.WARN_LOCK_ROTOR = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0008) pSCA->SCA_Warn.WARN_OVER_TEMP = Actr_Enable; else pSCA->SCA_Warn.WARN_OVER_TEMP = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0010) pSCA->SCA_Warn.WARN_RW_PARA = Actr_Enable; else pSCA->SCA_Warn.WARN_RW_PARA = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0020) pSCA->SCA_Warn.WARN_MUL_CIRCLE = Actr_Enable; else pSCA->SCA_Warn.WARN_MUL_CIRCLE = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0040) pSCA->SCA_Warn.WARN_TEMP_SENSOR_INV = Actr_Enable; else pSCA->SCA_Warn.WARN_TEMP_SENSOR_INV = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0080) pSCA->SCA_Warn.WARN_CAN_BUS = Actr_Enable; else pSCA->SCA_Warn.WARN_CAN_BUS = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0100) pSCA->SCA_Warn.WARN_TEMP_SENSOR_MTR = Actr_Enable; else pSCA->SCA_Warn.WARN_TEMP_SENSOR_MTR = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0200) pSCA->SCA_Warn.WARN_OVER_STEP = Actr_Enable; else pSCA->SCA_Warn.WARN_OVER_STEP = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0x0400) pSCA->SCA_Warn.WARN_DRV_PROTEC = Actr_Enable; else pSCA->SCA_Warn.WARN_DRV_PROTEC = Actr_Disable; if (pSCA->SCA_Warn.Error_Code & 0xF800) pSCA->SCA_Warn.WARN_DVICE = Actr_Enable; else pSCA->SCA_Warn.WARN_DVICE = Actr_Disable; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/actuators/mintasca/sca_protocol.h ================================================ /** ****************************************************************************** * @ SCA_Protocol.h * @ INNFOS Software Team * @ V1.5.2 * @ 2019.08.20 * @ժ Ҫ INNFOS CAN ͨЭ ******************************************************************************/ #ifndef __SCA_PROTOCOL_H #define __SCA_PROTOCOL_H #ifdef __cplusplus extern "C" { #endif #include "main.h" /* º궨Ϣ޸ģ */ //INNFOS CAN ͨЭָ //һȡָ #define R1_Heartbeat 0x00 #define R1_Mode 0x55 #define R1_LastState 0xB0 #define R1_CurrentFilterState 0X71 #define R1_VelocityFilterState 0x75 #define R1_PositionFilterState 0x79 #define R1_PositionLimitState 0x8B #define R1_PowerState 0x2B //ڶȡָ #define R2_Voltage 0x45 #define R2_Current_Max 0x53 #define R2_CurrentFilterValue 0x73 #define R2_VelocityFilterValue 0x77 #define R2_PositionFilterValue 0x7B #define R2_MotorTemp 0x5F #define R2_InverterTemp 0x60 #define R2_InverterProtectTemp 0x62 #define R2_InverterRecoverTemp 0x64 #define R2_MotorProtectTemp 0x6C #define R2_MotorRecoverTemp 0x6E #define R2_Error 0xFF //ȡָ #define R3_Current 0x04 #define R3_Velocity 0x05 #define R3_Position 0x06 #define R3_CurrentFilterP 0x15 #define R3_CurrentFilterI 0x16 #define R3_VelocityFilterP 0x17 #define R3_VelocityFilterI 0x18 #define R3_PositionFilterP 0x19 #define R3_PositionFilterI 0x1A #define R3_PositionFilterD 0X1B #define R3_PPMaxVelocity 0x1C #define R3_PPMaxAcceleration 0x1D #define R3_PPMaxDeceleration 0x1E #define R3_PVMaxVelocity 0x22 #define R3_PVMaxAcceleration 0x23 #define R3_PVMaxDeceleration 0x24 #define R3_CurrentFilterLimitL 0x34 #define R3_CurrentFilterLimitH 0x35 #define R3_VelocityFilterLimitL 0x36 #define R3_VelocityFilterLimitH 0x37 #define R3_PositionFilterLimitL 0x38 #define R3_PositionFilterLimitH 0x39 #define R3_CurrentLimit 0x59 #define R3_VelocityLimit 0x5B #define R3_Inertia 0x7D #define R3_PositionLimitH 0x85 #define R3_PositionLimitL 0x86 #define R3_PositionOffset 0x8A #define R3_HomingCurrentLimitL 0x92 #define R3_HomingCurrentLimitH 0x93 #define R3_BlockEngy 0x7F //ȡָ #define R4_CVP 0x94 //ȡָ #define R5_ShakeHands 0x02 //һд #define W1_Mode 0x07 #define W1_CurrentFilterState 0X70 #define W1_VelocityFilterState 0x74 #define W1_PositionFilterState 0x78 #define W1_PositionLimitState 0x8C #define W1_PowerState 0x2A //ڶд #define W2_CurrentFilterValue 0x72 #define W2_VelocityFilterValue 0x76 #define W2_PositionFilterValue 0x7A #define W2_InverterProtectTemp 0x61 #define W2_InverterRecoverTemp 0x63 #define W2_MotorProtectTemp 0x6B #define W2_MotorRecoverTemp 0x6D //д #define W3_Current 0x08 #define W3_Velocity 0x09 #define W3_Position 0x0A #define W3_CurrentFilterP 0x0E #define W3_CurrentFilterI 0x0F #define W3_VelocityFilterP 0x10 #define W3_VelocityFilterI 0x11 #define W3_PositionFilterP 0x12 #define W3_PositionFilterI 0x13 #define W3_PositionFilterD 0X14 #define W3_PPMaxVelocity 0x1F #define W3_PPMaxAcceleration 0x20 #define W3_PPMaxDeceleration 0x21 #define W3_PVMaxVelocity 0x25 #define W3_PVMaxAcceleration 0x26 #define W3_PVMaxDeceleration 0x27 #define W3_CurrentFilterLimitL 0x2E #define W3_CurrentFilterLimitH 0x2F #define W3_VelocityFilterLimitL 0x30 #define W3_VelocityFilterLimitH 0x31 #define W3_PositionFilterLimitL 0x32 #define W3_PositionFilterLimitH 0x33 #define W3_CurrentLimit 0x58 #define W3_VelocityLimit 0x5A #define W3_PositionLimitH 0x83 #define W3_PositionLimitL 0x84 #define W3_HomingValue 0x87 #define W3_PositionOffset 0x89 #define W3_HomingCurrentLimitL 0x90 #define W3_HomingCurrentLimitH 0x91 #define W3_BlockEngy 0x7E //д #define W4_ClearError 0xFE #define W4_ClearHome 0x88 #define W4_Save 0x0D //д #define W5_ChangeID 0x3D //ֵ #define Velocity_Max 6000.0f //ٶ̶ֵΪ6000RPMΪã #define BlkEngy_Scal 75.225f //תֵ #define Profile_Scal 960.0f //βֵ #define IQ8 256.0f //2^8 #define IQ10 1024.0f //2^10 #define IQ24 16777216.0f //2^24 #define IQ30 1073741824.0f //2^30 /* IDΪCAN֡IDmsgΪҪ͵ݣַ lenΪݵijȣ0ɹʧ */ typedef uint8_t (*Send_t)(uint8_t ID, uint8_t *msg, uint8_t len); typedef struct //CAN˿ھ { //SCA ״̬Ϣ uint8_t CanPort; //ʹõCAN˿ں uint8_t Retry; //ʧʱط Send_t Send; //ͺʽμSend_t } CAN_Handler_t; typedef struct //SCAϢ { uint16_t Error_Code; // /* 屨Ϣ01 */ uint8_t WARN_OVER_VOLT; //ѹ쳣 uint8_t WARN_UNDER_VOLT; //Ƿѹ쳣 uint8_t WARN_LOCK_ROTOR; //ת쳣 uint8_t WARN_OVER_TEMP; //쳣 uint8_t WARN_RW_PARA; //д쳣 uint8_t WARN_MUL_CIRCLE; //Ȧ쳣 uint8_t WARN_TEMP_SENSOR_INV; //¶ȴ쳣 uint8_t WARN_CAN_BUS; //CANͨѶ쳣 uint8_t WARN_TEMP_SENSOR_MTR; //¶ȴ쳣 uint8_t WARN_OVER_STEP; //λģʽԾ1 uint8_t WARN_DRV_PROTEC; //DRV uint8_t WARN_DVICE; //豸쳣 } SCA_Warn_t; /* SCA棬дʱĿɹд ȡ־λʱʹãݿɸĿҪвü */ typedef struct { /* Ϣ */ uint8_t ID; //SCA ID /* һݱ */ uint8_t Mode; //ǰģʽ uint8_t Current_Filter_State; //˲״̬ uint8_t Velocity_Filter_State; //ٶȻ˲״̬ uint8_t Position_Filter_State; //ٶȻ˲״̬ uint8_t Position_Limit_State; //λλ״̬ uint8_t Power_State; //ػ״̬ /* ȡ־λ */ uint8_t R_Mode; //ȡݷر־λ 1Ϊݷ uint8_t R_Last_State; uint8_t R_Current_Filter_State; uint8_t R_Velocity_Filter_State; uint8_t R_Position_Filter_State; uint8_t R_Position_Limit_State; uint8_t R_Power_State; /* ڶݱ */ float Current_Filter_Value; //˲ float Velocity_Filter_Value; //ٶȻ˲ float Position_Filter_Value; //λû˲ float Inverter_Protect_Temp; //¶ float Inverter_Recover_Temp; //ָ¶ float Motor_Protect_Temp; //¶ float Motor_Recover_Temp; //ָ¶ /* ȡ־λ */ uint8_t R_Current_Filter_Value; uint8_t R_Velocity_Filter_Value; uint8_t R_Position_Filter_Value; uint8_t R_Inverter_Protect_Temp; uint8_t R_Inverter_Recover_Temp; uint8_t R_Motor_Protect_Temp; uint8_t R_Motor_Recover_Temp; uint8_t R_Voltage; uint8_t R_Current_Max; uint8_t R_Motor_Temp; uint8_t R_Inverter_Temp; uint8_t R_Error_Code; /* ݱ */ float Current_Real; //ǰλA float Velocity_Real; //ǰٶȣλRPM float Position_Real; //ǰλãʵֵλR float Current_Filter_P; //Pֵ float Current_Filter_I; //Iֵ float Velocity_Filter_P; //ٶȻPֵ float Velocity_Filter_I; //ٶȻIֵ float Position_Filter_P; //λûPֵ float Position_Filter_I; //λûIֵ //float Position_Filter_D; //λûDֵ float PP_Max_Velocity; //λٶֵ float PP_Max_Acceleration; //λμٶֵ float PP_Max_Deceleration; //λμٶֵ float PV_Max_Velocity; //ٶٶֵ float PV_Max_Acceleration; //ٶμٶֵ float PV_Max_Deceleration; //ٶμٶֵ //float Current_Filter_Limit_L; // //float Current_Filter_Limit_H; // float Velocity_Filter_Limit_L; //ٶȻ float Velocity_Filter_Limit_H; //ٶȻ float Position_Filter_Limit_L; //λû float Position_Filter_Limit_H; //λû float Position_Limit_H; //ִλ float Position_Limit_L; //ִλ float Current_Limit; //޷ float Velocity_Limit; //ٶ޷ float Homing_Value; //ִHomingֵ float Position_Offset; //ִλƫ float Homing_Current_Limit_L; //Զ float Homing_Current_Limit_H; //Զ float Blocked_Energy; //ת /* ȡ־λ */ uint8_t R_Current_Real; uint8_t R_Velocity_Real; uint8_t R_Position_Real; uint8_t R_Current_Filter_P; uint8_t R_Current_Filter_I; uint8_t R_Velocity_Filter_P; uint8_t R_Velocity_Filter_I; uint8_t R_Position_Filter_P; uint8_t R_Position_Filter_I; //uint8_t R_Position_Filter_D; uint8_t R_PP_Max_Velocity; uint8_t R_PP_Max_Acceleration; uint8_t R_PP_Max_Deceleration; uint8_t R_PV_Max_Velocity; uint8_t R_PV_Max_Acceleration; uint8_t R_PV_Max_Deceleration; //uint8_t R_Current_Filter_Limit_L; //uint8_t R_Current_Filter_Limit_H; uint8_t R_Velocity_Filter_Limit_L; uint8_t R_Velocity_Filter_Limit_H; uint8_t R_Position_Filter_Limit_L; uint8_t R_Position_Filter_Limit_H; uint8_t R_Position_Limit_H; uint8_t R_Position_Limit_L; uint8_t R_Current_Limit; uint8_t R_Velocity_Limit; uint8_t R_Homing_Value; uint8_t R_Position_Offset; uint8_t R_Homing_Current_Limit_L; uint8_t R_Homing_Current_Limit_H; uint8_t R_Blocked_Energy; uint8_t R_CVP; uint8_t R_Serial_Num; uint8_t W_ClearHome; } Para_Cache_t; /* SCAϢֵ ݿɸĿҪвü */ typedef struct { /* Эݱ */ uint8_t ID; //SCAID uint8_t Serial_Num[4]; //к uint8_t Save_State; //״̬1Ϊѱ uint8_t Online_State; //ǰ״̬1Ϊ uint8_t Update_State; //Ƿвˢ£1Ϊвˢ CAN_Handler_t *Can; //ʹõCAN˿ Para_Cache_t paraCache; // /* ûݱ */ /* һݱ */ uint8_t Mode; //ǰģʽ uint8_t Last_State; //ϴιػ쳣״̬1Ϊ uint8_t Current_Filter_State; //˲״̬ uint8_t Velocity_Filter_State; //ٶȻ˲״̬ uint8_t Position_Filter_State; //ٶȻ˲״̬ uint8_t Position_Limit_State; //λλ״̬ uint8_t Power_State; //ػ״̬ /* ڶݱ */ float Voltage; //ǰѹλV float Current_Max; // float Current_Filter_Value; //˲ float Velocity_Filter_Value; //ٶȻ˲ float Position_Filter_Value; //λû˲ float Motor_Temp; //¶ float Inverter_Temp; //¶ float Inverter_Protect_Temp; //¶ float Inverter_Recover_Temp; //ָ¶ float Motor_Protect_Temp; //¶ float Motor_Recover_Temp; //ָ¶ SCA_Warn_t SCA_Warn; //Ϣ /* ݱ */ float Current_Real; //ǰλA float Velocity_Real; //ǰٶȣλRPM float Position_Real; //ǰλãʵֵλR float Current_Filter_P; //Pֵ float Current_Filter_I; //Iֵ float Velocity_Filter_P; //ٶȻPֵ float Velocity_Filter_I; //ٶȻIֵ float Position_Filter_P; //λûPֵ float Position_Filter_I; //λûIֵ //float Position_Filter_D; //λûDֵ float PP_Max_Velocity; //λٶֵ float PP_Max_Acceleration; //λμٶֵ float PP_Max_Deceleration; //λμٶֵ float PV_Max_Velocity; //ٶٶֵ float PV_Max_Acceleration; //ٶμٶֵ float PV_Max_Deceleration; //ٶμٶֵ //float Current_Filter_Limit_L; // //float Current_Filter_Limit_H; // float Velocity_Filter_Limit_L; //ٶȻ float Velocity_Filter_Limit_H; //ٶȻ float Position_Filter_Limit_L; //λû float Position_Filter_Limit_H; //λû float Position_Limit_H; //ִλ float Position_Limit_L; //ִλ float Current_Limit; //޷ float Velocity_Limit; //ٶ޷ float Homing_Value; //ִHomingֵ float Position_Offset; //ִλƫ float Homing_Current_Limit_L; //Զ float Homing_Current_Limit_H; //Զ float Blocked_Energy; //ת } SCA_Handler_t; enum SCA_Error //SCAͨŴö { SCA_NoError = 0, //޴ SCA_OverTime, //ͨŵȴʱ SCA_SendError, //ݷʧ SCA_OperationFailed, //ʧ SCA_UnknownID, //δҵIDִ }; /* ݽսӿڣµCANݰʱ CanRxMsg ΪCANݰĽͽṹֲʱ ƽ̨CanRxMsgṹͣ˴ĬʹSTM32 ׼⺯еĽսṹ */ typedef struct { uint32_t StdId; /*!< Specifies the standard identifier. This parameter can be a value between 0 to 0x7FF. */ uint32_t ExtId; /*!< Specifies the extended identifier. This parameter can be a value between 0 to 0x1FFFFFFF. */ uint8_t IDE; /*!< Specifies the type of identifier for the message that will be received. This parameter can be a value of @ref CAN_identifier_type */ uint8_t RTR; /*!< Specifies the type of frame for the received message. This parameter can be a value of @ref CAN_remote_transmission_request */ uint8_t DLC; /*!< Specifies the length of the frame that will be received. This parameter can be a value between 0 to 8 */ uint8_t Data[8]; /*!< Contains the data to be received. It ranges from 0 to 0xFF. */ uint8_t FMI; /*!< Specifies the index of the filter the message stored in the mailbox passes through. This parameter can be a value between 0 to 0xFF */ } CanRxMsg; void canDispatch(CanRxMsg *RxMsg); /* ºΪAPI */ /* ȡӿ */ uint8_t SCA_Read(SCA_Handler_t *pSCA, uint8_t cmd); /* д */ uint8_t SCA_Write_1(SCA_Handler_t *pSCA, uint8_t cmd, uint8_t TxData); uint8_t SCA_Write_2(SCA_Handler_t *pSCA, uint8_t cmd, float TxData); uint8_t SCA_Write_3(SCA_Handler_t *pSCA, uint8_t cmd, float TxData); uint8_t SCA_Write_4(SCA_Handler_t *pSCA, uint8_t cmd); uint8_t SCA_Write_5(SCA_Handler_t *pSCA, uint8_t cmd, uint8_t TxData); #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/algorithms/kinematic/6dof_kinematic.cpp ================================================ #include "6dof_kinematic.h" inline float cosf(float x) { return arm_cos_f32(x); } inline float sinf(float x) { return arm_sin_f32(x); } static void MatMultiply(const float* _matrix1, const float* _matrix2, float* _matrixOut, const int _m, const int _l, const int _n) { float tmp; int i, j, k; for (i = 0; i < _m; i++) { for (j = 0; j < _n; j++) { tmp = 0.0f; for (k = 0; k < _l; k++) { tmp += _matrix1[_l * i + k] * _matrix2[_n * k + j]; } _matrixOut[_n * i + j] = tmp; } } } static void RotMatToEulerAngle(const float* _rotationM, float* _eulerAngles) { float A, B, C, cb; if (fabs(_rotationM[6]) >= 1.0 - 0.0001) { if (_rotationM[6] < 0) { A = 0.0f; B = (float) M_PI_2; C = atan2f(_rotationM[1], _rotationM[4]); } else { A = 0.0f; B = -(float) M_PI_2; C = -atan2f(_rotationM[1], _rotationM[4]); } } else { B = atan2f(-_rotationM[6], sqrtf(_rotationM[0] * _rotationM[0] + _rotationM[3] * _rotationM[3])); cb = cosf(B); A = atan2f(_rotationM[3] / cb, _rotationM[0] / cb); C = atan2f(_rotationM[7] / cb, _rotationM[8] / cb); } _eulerAngles[0] = C; _eulerAngles[1] = B; _eulerAngles[2] = A; } static void EulerAngleToRotMat(const float* _eulerAngles, float* _rotationM) { float ca, cb, cc, sa, sb, sc; cc = cosf(_eulerAngles[0]); cb = cosf(_eulerAngles[1]); ca = cosf(_eulerAngles[2]); sc = sinf(_eulerAngles[0]); sb = sinf(_eulerAngles[1]); sa = sinf(_eulerAngles[2]); _rotationM[0] = ca * cb; _rotationM[1] = ca * sb * sc - sa * cc; _rotationM[2] = ca * sb * cc + sa * sc; _rotationM[3] = sa * cb; _rotationM[4] = sa * sb * sc + ca * cc; _rotationM[5] = sa * sb * cc - ca * sc; _rotationM[6] = -sb; _rotationM[7] = cb * sc; _rotationM[8] = cb * cc; } DOF6Kinematic::DOF6Kinematic(float L_BS, float D_BS, float L_AM, float L_FA, float D_EW, float L_WT) : armConfig(ArmConfig_t{L_BS, D_BS, L_AM, L_FA, D_EW, L_WT}) { float tmp_DH_matrix[6][4] = { {0.0f, armConfig.L_BASE, armConfig.D_BASE, -(float) M_PI_2}, {-(float) M_PI_2, 0.0f, armConfig.L_ARM, 0.0f}, {(float) M_PI_2, armConfig.D_ELBOW, 0.0f, (float) M_PI_2}, {0.0f, armConfig.L_FOREARM, 0.0f, -(float) M_PI_2}, {0.0f, 0.0f, 0.0f, (float) M_PI_2}, {0.0f, armConfig.L_WRIST, 0.0f, 0.0f} }; memcpy(DH_matrix, tmp_DH_matrix, sizeof(tmp_DH_matrix)); float tmp_L1_bs[3] = {armConfig.D_BASE, -armConfig.L_BASE, 0.0f}; memcpy(L1_base, tmp_L1_bs, sizeof(tmp_L1_bs)); float tmp_L2_se[3] = {armConfig.L_ARM, 0.0f, 0.0f}; memcpy(L2_arm, tmp_L2_se, sizeof(tmp_L2_se)); float tmp_L3_ew[3] = {-armConfig.D_ELBOW, 0.0f, armConfig.L_FOREARM}; memcpy(L3_elbow, tmp_L3_ew, sizeof(tmp_L3_ew)); float tmp_L6_wt[3] = {0.0f, 0.0f, armConfig.L_WRIST}; memcpy(L6_wrist, tmp_L6_wt, sizeof(tmp_L6_wt)); l_se_2 = armConfig.L_ARM * armConfig.L_ARM; l_se = armConfig.L_ARM; l_ew_2 = armConfig.L_FOREARM * armConfig.L_FOREARM + armConfig.D_ELBOW * armConfig.D_ELBOW; l_ew = 0; atan_e = 0; } bool DOF6Kinematic::SolveFK(const DOF6Kinematic::Joint6D_t &_inputJoint6D, DOF6Kinematic::Pose6D_t &_outputPose6D) { float q_in[6]; float q[6]; float cosq, sinq; float cosa, sina; float P06[6]; float R06[9]; float R[6][9]; float R02[9]; float R03[9]; float R04[9]; float R05[9]; float L0_bs[3]; float L0_se[3]; float L0_ew[3]; float L0_wt[3]; for (int i = 0; i < 6; i++) q_in[i] = _inputJoint6D.a[i] / RAD_TO_DEG; for (int i = 0; i < 6; i++) { q[i] = q_in[i] + DH_matrix[i][0]; cosq = cosf(q[i]); sinq = sinf(q[i]); cosa = cosf(DH_matrix[i][3]); sina = sinf(DH_matrix[i][3]); R[i][0] = cosq; R[i][1] = -cosa * sinq; R[i][2] = sina * sinq; R[i][3] = sinq; R[i][4] = cosa * cosq; R[i][5] = -sina * cosq; R[i][6] = 0.0f; R[i][7] = sina; R[i][8] = cosa; } MatMultiply(R[0], R[1], R02, 3, 3, 3); MatMultiply(R02, R[2], R03, 3, 3, 3); MatMultiply(R03, R[3], R04, 3, 3, 3); MatMultiply(R04, R[4], R05, 3, 3, 3); MatMultiply(R05, R[5], R06, 3, 3, 3); MatMultiply(R[0], L1_base, L0_bs, 3, 3, 1); MatMultiply(R02, L2_arm, L0_se, 3, 3, 1); MatMultiply(R03, L3_elbow, L0_ew, 3, 3, 1); MatMultiply(R06, L6_wrist, L0_wt, 3, 3, 1); for (int i = 0; i < 3; i++) P06[i] = L0_bs[i] + L0_se[i] + L0_ew[i] + L0_wt[i]; RotMatToEulerAngle(R06, &(P06[3])); _outputPose6D.X = P06[0]; _outputPose6D.Y = P06[1]; _outputPose6D.Z = P06[2]; _outputPose6D.A = P06[3] * RAD_TO_DEG; _outputPose6D.B = P06[4] * RAD_TO_DEG; _outputPose6D.C = P06[5] * RAD_TO_DEG; memcpy(_outputPose6D.R, R06, 9 * sizeof(float)); return true; } bool DOF6Kinematic::SolveIK(const DOF6Kinematic::Pose6D_t &_inputPose6D, const Joint6D_t &_lastJoint6D, DOF6Kinematic::IKSolves_t &_outputSolves) { float qs[2]; float qa[2][2]; float qw[2][3]; float cosqs, sinqs; float cosqa[2], sinqa[2]; float cosqw, sinqw; float P06[6]; float R06[9]; float P0_w[3]; float P1_w[3]; float L0_wt[3]; float L1_sw[3]; float R10[9]; float R31[9]; float R30[9]; float R36[9]; float l_sw_2, l_sw, atan_a, acos_a, acos_e; int ind_arm, ind_elbow, ind_wrist; int i; if (0 == l_ew) { l_ew = sqrtf(l_ew_2); atan_e = atanf(armConfig.D_ELBOW / armConfig.L_FOREARM); } P06[0] = _inputPose6D.X / 1000.0f; P06[1] = _inputPose6D.Y / 1000.0f; P06[2] = _inputPose6D.Z / 1000.0f; if (!_inputPose6D.hasR) { P06[3] = _inputPose6D.A / RAD_TO_DEG; P06[4] = _inputPose6D.B / RAD_TO_DEG; P06[5] = _inputPose6D.C / RAD_TO_DEG; EulerAngleToRotMat(&(P06[3]), R06); } else { memcpy(R06, _inputPose6D.R, 9 * sizeof(float)); } for (i = 0; i < 2; i++) { qs[i] = _lastJoint6D.a[0]; qa[i][0] = _lastJoint6D.a[1]; qa[i][1] = _lastJoint6D.a[2]; qw[i][0] = _lastJoint6D.a[3]; qw[i][1] = _lastJoint6D.a[4]; qw[i][2] = _lastJoint6D.a[5]; } MatMultiply(R06, L6_wrist, L0_wt, 3, 3, 1); for (i = 0; i < 3; i++) { P0_w[i] = P06[i] - L0_wt[i]; } if (sqrt(P0_w[0] * P0_w[0] + P0_w[1] * P0_w[1]) <= 0.000001) { qs[0] = _lastJoint6D.a[0]; qs[1] = _lastJoint6D.a[0]; for (i = 0; i < 4; i++) { _outputSolves.solFlag[0 + i][0] = -1; _outputSolves.solFlag[4 + i][0] = -1; } } else { qs[0] = atan2f(P0_w[1], P0_w[0]); qs[1] = atan2f(-P0_w[1], -P0_w[0]); for (i = 0; i < 4; i++) { _outputSolves.solFlag[0 + i][0] = 1; _outputSolves.solFlag[4 + i][0] = 1; } } for (ind_arm = 0; ind_arm < 2; ind_arm++) { cosqs = cosf(qs[ind_arm] + DH_matrix[0][0]); sinqs = sinf(qs[ind_arm] + DH_matrix[0][0]); R10[0] = cosqs; R10[1] = sinqs; R10[2] = 0.0f; R10[3] = 0.0f; R10[4] = 0.0f; R10[5] = -1.0f; R10[6] = -sinqs; R10[7] = cosqs; R10[8] = 0.0f; MatMultiply(R10, P0_w, P1_w, 3, 3, 1); for (i = 0; i < 3; i++) { L1_sw[i] = P1_w[i] - L1_base[i]; } l_sw_2 = L1_sw[0] * L1_sw[0] + L1_sw[1] * L1_sw[1]; l_sw = sqrtf(l_sw_2); if (fabs(l_se + l_ew - l_sw) <= 0.000001) { qa[0][0] = atan2f(L1_sw[1], L1_sw[0]); qa[1][0] = qa[0][0]; qa[0][1] = 0.0f; qa[1][1] = 0.0f; if (l_sw > l_se + l_ew) { for (i = 0; i < 2; i++) { _outputSolves.solFlag[4 * ind_arm + 0 + i][1] = 0; _outputSolves.solFlag[4 * ind_arm + 2 + i][1] = 0; } } else { for (i = 0; i < 2; i++) { _outputSolves.solFlag[4 * ind_arm + 0 + i][1] = 1; _outputSolves.solFlag[4 * ind_arm + 2 + i][1] = 1; } } } else if (fabs(l_sw - fabs(l_se - l_ew)) <= 0.000001) { qa[0][0] = atan2f(L1_sw[1], L1_sw[0]); qa[1][0] = qa[0][0]; if (0 == ind_arm) { qa[0][1] = (float) M_PI; qa[1][1] = -(float) M_PI; } else { qa[0][1] = -(float) M_PI; qa[1][1] = (float) M_PI; } if (l_sw < fabs(l_se - l_ew)) { for (i = 0; i < 2; i++) { _outputSolves.solFlag[4 * ind_arm + 0 + i][1] = 0; _outputSolves.solFlag[4 * ind_arm + 2 + i][1] = 0; } } else { for (i = 0; i < 2; i++) { _outputSolves.solFlag[4 * ind_arm + 0 + i][1] = 1; _outputSolves.solFlag[4 * ind_arm + 2 + i][1] = 1; } } } else { atan_a = atan2f(L1_sw[1], L1_sw[0]); acos_a = 0.5f * (l_se_2 + l_sw_2 - l_ew_2) / (l_se * l_sw); if (acos_a >= 1.0f) acos_a = 0.0f; else if (acos_a <= -1.0f) acos_a = (float) M_PI; else acos_a = acosf(acos_a); acos_e = 0.5f * (l_se_2 + l_ew_2 - l_sw_2) / (l_se * l_ew); if (acos_e >= 1.0f) acos_e = 0.0f; else if (acos_e <= -1.0f) acos_e = (float) M_PI; else acos_e = acosf(acos_e); if (0 == ind_arm) { qa[0][0] = atan_a - acos_a + (float) M_PI_2; qa[0][1] = atan_e - acos_e + (float) M_PI; qa[1][0] = atan_a + acos_a + (float) M_PI_2; qa[1][1] = atan_e + acos_e - (float) M_PI; } else { qa[0][0] = atan_a + acos_a + (float) M_PI_2; qa[0][1] = atan_e + acos_e - (float) M_PI; qa[1][0] = atan_a - acos_a + (float) M_PI_2; qa[1][1] = atan_e - acos_e + (float) M_PI; } for (i = 0; i < 2; i++) { _outputSolves.solFlag[4 * ind_arm + 0 + i][1] = 1; _outputSolves.solFlag[4 * ind_arm + 2 + i][1] = 1; } } for (ind_elbow = 0; ind_elbow < 2; ind_elbow++) { cosqa[0] = cosf(qa[ind_elbow][0] + DH_matrix[1][0]); sinqa[0] = sinf(qa[ind_elbow][0] + DH_matrix[1][0]); cosqa[1] = cosf(qa[ind_elbow][1] + DH_matrix[2][0]); sinqa[1] = sinf(qa[ind_elbow][1] + DH_matrix[2][0]); R31[0] = cosqa[0] * cosqa[1] - sinqa[0] * sinqa[1]; R31[1] = cosqa[0] * sinqa[1] + sinqa[0] * cosqa[1]; R31[2] = 0.0f; R31[3] = 0.0f; R31[4] = 0.0f; R31[5] = 1.0f; R31[6] = cosqa[0] * sinqa[1] + sinqa[0] * cosqa[1]; R31[7] = -cosqa[0] * cosqa[1] + sinqa[0] * sinqa[1]; R31[8] = 0.0f; MatMultiply(R31, R10, R30, 3, 3, 3); MatMultiply(R30, R06, R36, 3, 3, 3); if (R36[8] >= 1.0 - 0.000001) { cosqw = 1.0f; qw[0][1] = 0.0f; qw[1][1] = 0.0f; } else if (R36[8] <= -1.0 + 0.000001) { cosqw = -1.0f; if (0 == ind_arm) { qw[0][1] = (float) M_PI; qw[1][1] = -(float) M_PI; } else { qw[0][1] = -(float) M_PI; qw[1][1] = (float) M_PI; } } else { cosqw = R36[8]; if (0 == ind_arm) { qw[0][1] = acosf(cosqw); qw[1][1] = -acosf(cosqw); } else { qw[0][1] = -acosf(cosqw); qw[1][1] = acosf(cosqw); } } if (1.0f == cosqw || -1.0f == cosqw) { if (0 == ind_arm) { qw[0][0] = _lastJoint6D.a[3]; cosqw = cosf(_lastJoint6D.a[3] + DH_matrix[3][0]); sinqw = sinf(_lastJoint6D.a[3] + DH_matrix[3][0]); qw[0][2] = atan2f(cosqw * R36[3] - sinqw * R36[0], cosqw * R36[0] + sinqw * R36[3]); qw[1][2] = _lastJoint6D.a[5]; cosqw = cosf(_lastJoint6D.a[5] + DH_matrix[5][0]); sinqw = sinf(_lastJoint6D.a[5] + DH_matrix[5][0]); qw[1][0] = atan2f(cosqw * R36[3] - sinqw * R36[0], cosqw * R36[0] + sinqw * R36[3]); } else { qw[0][2] = _lastJoint6D.a[5]; cosqw = cosf(_lastJoint6D.a[5] + DH_matrix[5][0]); sinqw = sinf(_lastJoint6D.a[5] + DH_matrix[5][0]); qw[0][0] = atan2f(cosqw * R36[3] - sinqw * R36[0], cosqw * R36[0] + sinqw * R36[3]); qw[1][0] = _lastJoint6D.a[3]; cosqw = cosf(_lastJoint6D.a[3] + DH_matrix[3][0]); sinqw = sinf(_lastJoint6D.a[3] + DH_matrix[3][0]); qw[1][2] = atan2f(cosqw * R36[3] - sinqw * R36[0], cosqw * R36[0] + sinqw * R36[3]); } _outputSolves.solFlag[4 * ind_arm + 2 * ind_elbow + 0][2] = -1; _outputSolves.solFlag[4 * ind_arm + 2 * ind_elbow + 1][2] = -1; } else { if (0 == ind_arm) { qw[0][0] = atan2f(R36[5], R36[2]); qw[1][0] = atan2f(-R36[5], -R36[2]); qw[0][2] = atan2f(R36[7], -R36[6]); qw[1][2] = atan2f(-R36[7], R36[6]); } else { qw[0][0] = atan2f(-R36[5], -R36[2]); qw[1][0] = atan2f(R36[5], R36[2]); qw[0][2] = atan2f(-R36[7], R36[6]); qw[1][2] = atan2f(R36[7], -R36[6]); } _outputSolves.solFlag[4 * ind_arm + 2 * ind_elbow + 0][2] = 1; _outputSolves.solFlag[4 * ind_arm + 2 * ind_elbow + 1][2] = 1; } for (ind_wrist = 0; ind_wrist < 2; ind_wrist++) { if (qs[ind_arm] > (float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[0] = qs[ind_arm] - (float) M_PI; else if (qs[ind_arm] < -(float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[0] = qs[ind_arm] + (float) M_PI; else _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[0] = qs[ind_arm]; for (i = 0; i < 2; i++) { if (qa[ind_elbow][i] > (float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[1 + i] = qa[ind_elbow][i] - (float) M_PI; else if (qa[ind_elbow][i] < -(float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[1 + i] = qa[ind_elbow][i] + (float) M_PI; else _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[1 + i] = qa[ind_elbow][i]; } for (i = 0; i < 3; i++) { if (qw[ind_wrist][i] > (float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[3 + i] = qw[ind_wrist][i] - (float) M_PI; else if (qw[ind_wrist][i] < -(float) M_PI) _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[3 + i] = qw[ind_wrist][i] + (float) M_PI; else _outputSolves.config[4 * ind_arm + 2 * ind_elbow + ind_wrist].a[3 + i] = qw[ind_wrist][i]; } } } } for (i = 0; i < 8; i++) for (float &j: _outputSolves.config[i].a) j *= RAD_TO_DEG; return true; } DOF6Kinematic::Joint6D_t operator-(const DOF6Kinematic::Joint6D_t &_joints1, const DOF6Kinematic::Joint6D_t &_joints2) { DOF6Kinematic::Joint6D_t tmp{}; for (int i = 0; i < 6; i++) tmp.a[i] = _joints1.a[i] - _joints2.a[i]; return tmp; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/algorithms/kinematic/6dof_kinematic.h ================================================ #ifndef DOF6_KINEMATIC_SOLVER_H #define DOF6_KINEMATIC_SOLVER_H #include "stm32f405xx.h" #include "arm_math.h" #include "memory.h" class DOF6Kinematic { private: const float RAD_TO_DEG = 57.295777754771045f; // DH parameters struct ArmConfig_t { float L_BASE; float D_BASE; float L_ARM; float L_FOREARM; float D_ELBOW; float L_WRIST; }; ArmConfig_t armConfig; float DH_matrix[6][4] = {0}; // home,d,a,alpha float L1_base[3] = {0}; float L2_arm[3] = {0}; float L3_elbow[3] = {0}; float L6_wrist[3] = {0}; float l_se_2; float l_se; float l_ew_2; float l_ew; float atan_e; public: struct Joint6D_t { Joint6D_t() = default; Joint6D_t(float a1, float a2, float a3, float a4, float a5, float a6) : a{a1, a2, a3, a4, a5, a6} {} float a[6]; friend Joint6D_t operator-(const Joint6D_t &_joints1, const Joint6D_t &_joints2); }; struct Pose6D_t { Pose6D_t() = default; Pose6D_t(float x, float y, float z, float a, float b, float c) : X(x), Y(y), Z(z), A(a), B(b), C(c), hasR(false) {} float X{}, Y{}, Z{}; float A{}, B{}, C{}; float R[9]{}; // if Pose was calculated by FK then it's true automatically (so that no need to do extra calc), // otherwise if manually set params then it should be set to false. bool hasR{}; }; struct IKSolves_t { Joint6D_t config[8]; char solFlag[8][3]; }; DOF6Kinematic(float L_BS, float D_BS, float L_AM, float L_FA, float D_EW, float L_WT); bool SolveFK(const Joint6D_t &_inputJoint6D, Pose6D_t &_outputPose6D); bool SolveIK(const Pose6D_t &_inputPose6D, const Joint6D_t &_lastJoint6D, IKSolves_t &_outputSolves); }; #endif //DOF6_KINEMATIC_SOLVER_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/instances/dummy_robot.cpp ================================================ #include "communication.hpp" #include "dummy_robot.h" inline float AbsMaxOf6(DOF6Kinematic::Joint6D_t _joints, uint8_t &_index) { float max = -1; for (uint8_t i = 0; i < 6; i++) { if (abs(_joints.a[i]) > max) { max = abs(_joints.a[i]); _index = i; } } return max; } DummyRobot::DummyRobot(CAN_HandleTypeDef* _hcan) : hcan(_hcan) { motorJ[ALL] = new CtrlStepMotor(_hcan, 0, false, 1, -180, 180); motorJ[1] = new CtrlStepMotor(_hcan, 1, true, 50, -170, 170); motorJ[2] = new CtrlStepMotor(_hcan, 2, false, 30, -73, 90); motorJ[3] = new CtrlStepMotor(_hcan, 3, true, 30, 35, 180); motorJ[4] = new CtrlStepMotor(_hcan, 4, false, 24, -180, 180); motorJ[5] = new CtrlStepMotor(_hcan, 5, true, 30, -120, 120); motorJ[6] = new CtrlStepMotor(_hcan, 6, true, 50, -720, 720); hand = new DummyHand(_hcan, 7); dof6Solver = new DOF6Kinematic(0.109f, 0.035f, 0.146f, 0.115f, 0.052f, 0.072f); } DummyRobot::~DummyRobot() { for (int j = 0; j <= 6; j++) delete motorJ[j]; delete hand; delete dof6Solver; } void DummyRobot::Init() { SetCommandMode(DEFAULT_COMMAND_MODE); SetJointSpeed(DEFAULT_JOINT_SPEED); } void DummyRobot::Reboot() { motorJ[ALL]->Reboot(); osDelay(500); // waiting for all joints done HAL_NVIC_SystemReset(); } void DummyRobot::MoveJoints(DOF6Kinematic::Joint6D_t _joints) { for (int j = 1; j <= 6; j++) { motorJ[j]->SetAngleWithVelocityLimit(_joints.a[j - 1] - initPose.a[j - 1], dynamicJointSpeeds.a[j - 1]); } } bool DummyRobot::MoveJ(float _j1, float _j2, float _j3, float _j4, float _j5, float _j6) { DOF6Kinematic::Joint6D_t targetJointsTmp(_j1, _j2, _j3, _j4, _j5, _j6); bool valid = true; for (int j = 1; j <= 6; j++) { if (targetJointsTmp.a[j - 1] > motorJ[j]->angleLimitMax || targetJointsTmp.a[j - 1] < motorJ[j]->angleLimitMin) valid = false; } if (valid) { DOF6Kinematic::Joint6D_t deltaJoints = targetJointsTmp - currentJoints; uint8_t index; float maxAngle = AbsMaxOf6(deltaJoints, index); float time = maxAngle * (float) (motorJ[index + 1]->reduction) / jointSpeed; for (int j = 1; j <= 6; j++) { dynamicJointSpeeds.a[j - 1] = abs(deltaJoints.a[j - 1] * (float) (motorJ[j]->reduction) / time * 0.1f); //0~10r/s } jointsStateFlag = 0; targetJoints = targetJointsTmp; return true; } return false; } bool DummyRobot::MoveL(float _x, float _y, float _z, float _a, float _b, float _c) { DOF6Kinematic::Pose6D_t pose6D(_x, _y, _z, _a, _b, _c); DOF6Kinematic::IKSolves_t ikSolves{}; DOF6Kinematic::Joint6D_t lastJoint6D{}; dof6Solver->SolveIK(pose6D, lastJoint6D, ikSolves); bool valid[8]; int validCnt = 0; for (int i = 0; i < 8; i++) { valid[i] = true; for (int j = 1; j <= 6; j++) { if (ikSolves.config[i].a[j - 1] > motorJ[j]->angleLimitMax || ikSolves.config[i].a[j - 1] < motorJ[j]->angleLimitMin) { valid[i] = false; continue; } } if (valid[i]) validCnt++; } if (validCnt) { float min = 1000; uint8_t indexConfig = 0, indexJoint = 0; for (int i = 0; i < 8; i++) { if (valid[i]) { for (int j = 0; j < 6; j++) lastJoint6D.a[j] = ikSolves.config[i].a[j]; DOF6Kinematic::Joint6D_t tmp = currentJoints - lastJoint6D; float maxAngle = AbsMaxOf6(tmp, indexJoint); if (maxAngle < min) { min = maxAngle; indexConfig = i; } } } return MoveJ(ikSolves.config[indexConfig].a[0], ikSolves.config[indexConfig].a[1], ikSolves.config[indexConfig].a[2], ikSolves.config[indexConfig].a[3], ikSolves.config[indexConfig].a[4], ikSolves.config[indexConfig].a[5]); } return false; } void DummyRobot::UpdateJointAngles() { motorJ[ALL]->UpdateAngle(); } void DummyRobot::UpdateJointAnglesCallback() { for (int i = 1; i <= 6; i++) { currentJoints.a[i - 1] = motorJ[i]->angle + initPose.a[i - 1]; if (motorJ[i]->state == CtrlStepMotor::FINISH) jointsStateFlag |= (1 << i); else jointsStateFlag &= ~(1 << i); } } void DummyRobot::SetJointSpeed(float _speed) { if (_speed < 0)_speed = 0; else if (_speed > 100) _speed = 100; jointSpeed = _speed * jointSpeedRatio; } void DummyRobot::SetJointAcceleration(float _acc) { if (_acc < 0)_acc = 0; else if (_acc > 100) _acc = 100; for (int i = 1; i <= 6; i++) motorJ[i]->SetAcceleration(_acc / 100 * DEFAULT_JOINT_ACCELERATION_BASES.a[i - 1]); } void DummyRobot::CalibrateHomeOffset() { // Disable FixUpdate, but not disable motors isEnabled = false; motorJ[ALL]->SetEnable(true); // 1.Manually move joints to L-Pose [precisely] // ... motorJ[2]->SetCurrentLimit(0.5); motorJ[3]->SetCurrentLimit(0.5); osDelay(500); // 2.Apply Home-Offset the first time motorJ[ALL]->ApplyPositionAsHome(); osDelay(500); // 3.Go to Resting-Pose initPose = DOF6Kinematic::Joint6D_t(0, 0, 90, 0, 0, 0); currentJoints = DOF6Kinematic::Joint6D_t(0, 0, 90, 0, 0, 0); Resting(); osDelay(500); // 4.Apply Home-Offset the second time motorJ[ALL]->ApplyPositionAsHome(); osDelay(500); motorJ[2]->SetCurrentLimit(1); motorJ[3]->SetCurrentLimit(1); osDelay(500); Reboot(); } void DummyRobot::Homing() { float lastSpeed = jointSpeed; SetJointSpeed(10); MoveJ(0, 0, 90, 0, 0, 0); MoveJoints(targetJoints); while (IsMoving()) osDelay(10); SetJointSpeed(lastSpeed); } void DummyRobot::Resting() { float lastSpeed = jointSpeed; SetJointSpeed(10); MoveJ(REST_POSE.a[0], REST_POSE.a[1], REST_POSE.a[2], REST_POSE.a[3], REST_POSE.a[4], REST_POSE.a[5]); MoveJoints(targetJoints); while (IsMoving()) osDelay(10); SetJointSpeed(lastSpeed); } void DummyRobot::SetEnable(bool _enable) { motorJ[ALL]->SetEnable(_enable); isEnabled = _enable; } void DummyRobot::UpdateJointPose6D() { dof6Solver->SolveFK(currentJoints, currentPose6D); currentPose6D.X *= 1000; // m -> mm currentPose6D.Y *= 1000; // m -> mm currentPose6D.Z *= 1000; // m -> mm } bool DummyRobot::IsMoving() { return jointsStateFlag != 0b1111110; } bool DummyRobot::IsEnabled() { return isEnabled; } void DummyRobot::SetCommandMode(uint32_t _mode) { if (_mode < COMMAND_TARGET_POINT_SEQUENTIAL || _mode > COMMAND_MOTOR_TUNING) return; commandMode = static_cast(_mode); switch (commandMode) { case COMMAND_TARGET_POINT_SEQUENTIAL: case COMMAND_TARGET_POINT_INTERRUPTABLE: jointSpeedRatio = 1; SetJointAcceleration(DEFAULT_JOINT_ACCELERATION_LOW); break; case COMMAND_CONTINUES_TRAJECTORY: SetJointAcceleration(DEFAULT_JOINT_ACCELERATION_HIGH); jointSpeedRatio = 0.3; break; case COMMAND_MOTOR_TUNING: break; } } DummyHand::DummyHand(CAN_HandleTypeDef* _hcan, uint8_t _id) : nodeID(_id), hcan(_hcan) { txHeader = { .StdId = 0, .ExtId = 0, .IDE = CAN_ID_STD, .RTR = CAN_RTR_DATA, .DLC = 8, .TransmitGlobalTime = DISABLE }; } void DummyHand::SetAngle(float _angle) { if (_angle > 30)_angle = 30; if (_angle < 0)_angle = 0; uint8_t mode = 0x02; txHeader.StdId = 7 << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_angle; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void DummyHand::SetMaxCurrent(float _val) { if (_val > 1)_val = 1; if (_val < 0)_val = 0; uint8_t mode = 0x01; txHeader.StdId = 7 << 7 | mode; // Float to Bytes auto* b = (unsigned char*) &_val; for (int i = 0; i < 4; i++) canBuf[i] = *(b + i); CanSendMessage(get_can_ctx(hcan), canBuf, &txHeader); } void DummyHand::SetEnable(bool _enable) { if (_enable) SetMaxCurrent(maxCurrent); else SetMaxCurrent(0); } uint32_t DummyRobot::CommandHandler::Push(const std::string &_cmd) { osStatus_t status = osMessageQueuePut(commandFifo, _cmd.c_str(), 0U, 0U); if (status == osOK) return osMessageQueueGetSpace(commandFifo); return 0xFF; // failed } void DummyRobot::CommandHandler::EmergencyStop() { context->MoveJ(context->currentJoints.a[0], context->currentJoints.a[1], context->currentJoints.a[2], context->currentJoints.a[3], context->currentJoints.a[4], context->currentJoints.a[5]); context->MoveJoints(context->targetJoints); context->isEnabled = false; ClearFifo(); } std::string DummyRobot::CommandHandler::Pop(uint32_t timeout) { osStatus_t status = osMessageQueueGet(commandFifo, strBuffer, nullptr, timeout); return std::string{strBuffer}; } uint32_t DummyRobot::CommandHandler::GetSpace() { return osMessageQueueGetSpace(commandFifo); } uint32_t DummyRobot::CommandHandler::ParseCommand(const std::string &_cmd) { uint8_t argNum; switch (context->commandMode) { case COMMAND_TARGET_POINT_SEQUENTIAL: case COMMAND_CONTINUES_TRAJECTORY: if (_cmd[0] == '>') { float joints[6]; float speed; argNum = sscanf(_cmd.c_str(), ">%f,%f,%f,%f,%f,%f,%f", joints, joints + 1, joints + 2, joints + 3, joints + 4, joints + 5, &speed); if (argNum == 6) { context->MoveJ(joints[0], joints[1], joints[2], joints[3], joints[4], joints[5]); } else if (argNum == 7) { context->SetJointSpeed(speed); context->MoveJ(joints[0], joints[1], joints[2], joints[3], joints[4], joints[5]); } // Trigger a transmission immediately, in case IsMoving() returns false context->MoveJoints(context->targetJoints); while (context->IsMoving() && context->IsEnabled()) osDelay(5); Respond(*usbStreamOutputPtr, "ok"); Respond(*uart4StreamOutputPtr, "ok"); } else if (_cmd[0] == '@') { float pose[6]; float speed; argNum = sscanf(_cmd.c_str(), "@%f,%f,%f,%f,%f,%f,%f", pose, pose + 1, pose + 2, pose + 3, pose + 4, pose + 5, &speed); if (argNum == 6) { context->MoveL(pose[0], pose[1], pose[2], pose[3], pose[4], pose[5]); } else if (argNum == 7) { context->SetJointSpeed(speed); context->MoveL(pose[0], pose[1], pose[2], pose[3], pose[4], pose[5]); } // Trigger a transmission immediately, in case IsMoving() returns false context->MoveJoints(context->targetJoints); while (context->IsMoving()) osDelay(5); Respond(*usbStreamOutputPtr, "ok"); Respond(*uart4StreamOutputPtr, "ok"); } break; case COMMAND_TARGET_POINT_INTERRUPTABLE: if (_cmd[0] == '>') { float joints[6]; float speed; argNum = sscanf(_cmd.c_str(), ">%f,%f,%f,%f,%f,%f,%f", joints, joints + 1, joints + 2, joints + 3, joints + 4, joints + 5, &speed); if (argNum == 6) { context->MoveJ(joints[0], joints[1], joints[2], joints[3], joints[4], joints[5]); } else if (argNum == 7) { context->SetJointSpeed(speed); context->MoveJ(joints[0], joints[1], joints[2], joints[3], joints[4], joints[5]); } Respond(*usbStreamOutputPtr, "ok"); Respond(*uart4StreamOutputPtr, "ok"); } else if (_cmd[0] == '@') { float pose[6]; float speed; argNum = sscanf(_cmd.c_str(), "@%f,%f,%f,%f,%f,%f,%f", pose, pose + 1, pose + 2, pose + 3, pose + 4, pose + 5, &speed); if (argNum == 6) { context->MoveL(pose[0], pose[1], pose[2], pose[3], pose[4], pose[5]); } else if (argNum == 7) { context->SetJointSpeed(speed); context->MoveL(pose[0], pose[1], pose[2], pose[3], pose[4], pose[5]); } Respond(*usbStreamOutputPtr, "ok"); Respond(*uart4StreamOutputPtr, "ok"); } break; case COMMAND_MOTOR_TUNING: break; } return osMessageQueueGetSpace(commandFifo); } void DummyRobot::CommandHandler::ClearFifo() { osMessageQueueReset(commandFifo); } void DummyRobot::TuningHelper::SetTuningFlag(uint8_t _flag) { tuningFlag = _flag; } void DummyRobot::TuningHelper::Tick(uint32_t _timeMillis) { time += PI * 2 * frequency * (float) _timeMillis / 1000.0f; float delta = amplitude * sinf(time); for (int i = 1; i <= 6; i++) if (tuningFlag & (1 << (i - 1))) context->motorJ[i]->SetAngle(delta); } void DummyRobot::TuningHelper::SetFreqAndAmp(float _freq, float _amp) { if (_freq > 5)_freq = 5; else if (_freq < 0.1) _freq = 0.1; if (_amp > 50)_amp = 50; else if (_amp < 1) _amp = 1; frequency = _freq; amplitude = _amp; } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/Robot/instances/dummy_robot.h ================================================ #ifndef REF_STM32F4_FW_DUMMY_ROBOT_H #define REF_STM32F4_FW_DUMMY_ROBOT_H #include "algorithms/kinematic/6dof_kinematic.h" #include "actuators/ctrl_step/ctrl_step.hpp" #define ALL 0 /* | PARAMS | `current_limit` | `acceleration` | `dce_kp` | `dce_kv` | `dce_ki` | `dce_kd` | | ---------- | --------------- | -------------- | -------- | -------- | -------- | -------- | | **Joint1** | 2 | 30 | 1000 | 80 | 200 | 250 | | **Joint2** | 2 | 30 | 1000 | 80 | 200 | 200 | | **Joint3** | 2 | 30 | 1500 | 80 | 200 | 250 | | **Joint4** | 2 | 30 | 1000 | 80 | 200 | 250 | | **Joint5** | 2 | 30 | 1000 | 80 | 200 | 250 | | **Joint6** | 2 | 30 | 1000 | 80 | 200 | 250 | */ class DummyHand { public: uint8_t nodeID = 7; float maxCurrent = 0.7; DummyHand(CAN_HandleTypeDef* _hcan, uint8_t _id); void SetAngle(float _angle); void SetMaxCurrent(float _val); void SetEnable(bool _enable); // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_function("set_angle", *this, &DummyHand::SetAngle, "angle"), make_protocol_function("set_enable", *this, &DummyHand::SetEnable, "enable"), make_protocol_function("set_current_limit", *this, &DummyHand::SetMaxCurrent, "current") ); } private: CAN_HandleTypeDef* hcan; uint8_t canBuf[8]; CAN_TxHeaderTypeDef txHeader; float minAngle = 0; float maxAngle = 45; }; class DummyRobot { public: explicit DummyRobot(CAN_HandleTypeDef* _hcan); ~DummyRobot(); enum CommandMode { COMMAND_TARGET_POINT_SEQUENTIAL = 1, COMMAND_TARGET_POINT_INTERRUPTABLE, COMMAND_CONTINUES_TRAJECTORY, COMMAND_MOTOR_TUNING }; class TuningHelper { public: explicit TuningHelper(DummyRobot* _context) : context(_context) { } void SetTuningFlag(uint8_t _flag); void Tick(uint32_t _timeMillis); void SetFreqAndAmp(float _freq, float _amp); // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_function("set_tuning_freq_amp", *this, &TuningHelper::SetFreqAndAmp, "freq", "amp"), make_protocol_function("set_tuning_flag", *this, &TuningHelper::SetTuningFlag, "flag") ); } private: DummyRobot* context; float time = 0; uint8_t tuningFlag = 0; float frequency = 1; float amplitude = 1; }; TuningHelper tuningHelper = TuningHelper(this); // This is the pose when power on. const DOF6Kinematic::Joint6D_t REST_POSE = {0, -73, 180, 0, 0, 0}; const float DEFAULT_JOINT_SPEED = 30; // degree/s const DOF6Kinematic::Joint6D_t DEFAULT_JOINT_ACCELERATION_BASES = {150, 100, 200, 200, 200, 200}; const float DEFAULT_JOINT_ACCELERATION_LOW = 30; // 0~100 const float DEFAULT_JOINT_ACCELERATION_HIGH = 100; // 0~100 const CommandMode DEFAULT_COMMAND_MODE = COMMAND_TARGET_POINT_INTERRUPTABLE; DOF6Kinematic::Joint6D_t currentJoints = REST_POSE; DOF6Kinematic::Joint6D_t targetJoints = REST_POSE; DOF6Kinematic::Joint6D_t initPose = REST_POSE; DOF6Kinematic::Pose6D_t currentPose6D = {}; volatile uint8_t jointsStateFlag = 0b00000000; CommandMode commandMode = DEFAULT_COMMAND_MODE; CtrlStepMotor* motorJ[7] = {nullptr}; DummyHand* hand = {nullptr}; void Init(); bool MoveJ(float _j1, float _j2, float _j3, float _j4, float _j5, float _j6); bool MoveL(float _x, float _y, float _z, float _a, float _b, float _c); void MoveJoints(DOF6Kinematic::Joint6D_t _joints); void SetJointSpeed(float _speed); void SetJointAcceleration(float _acc); void UpdateJointAngles(); void UpdateJointAnglesCallback(); void UpdateJointPose6D(); void Reboot(); void SetEnable(bool _enable); void CalibrateHomeOffset(); void Homing(); void Resting(); bool IsMoving(); bool IsEnabled(); void SetCommandMode(uint32_t _mode); // Communication protocol definitions auto MakeProtocolDefinitions() { return make_protocol_member_list( make_protocol_function("calibrate_home_offset", *this, &DummyRobot::CalibrateHomeOffset), make_protocol_function("homing", *this, &DummyRobot::Homing), make_protocol_function("resting", *this, &DummyRobot::Resting), make_protocol_object("joint_1", motorJ[1]->MakeProtocolDefinitions()), make_protocol_object("joint_2", motorJ[2]->MakeProtocolDefinitions()), make_protocol_object("joint_3", motorJ[3]->MakeProtocolDefinitions()), make_protocol_object("joint_4", motorJ[4]->MakeProtocolDefinitions()), make_protocol_object("joint_5", motorJ[5]->MakeProtocolDefinitions()), make_protocol_object("joint_6", motorJ[6]->MakeProtocolDefinitions()), make_protocol_object("joint_all", motorJ[ALL]->MakeProtocolDefinitions()), make_protocol_object("hand", hand->MakeProtocolDefinitions()), make_protocol_function("reboot", *this, &DummyRobot::Reboot), make_protocol_function("set_enable", *this, &DummyRobot::SetEnable, "enable"), make_protocol_function("move_j", *this, &DummyRobot::MoveJ, "j1", "j2", "j3", "j4", "j5", "j6"), make_protocol_function("move_l", *this, &DummyRobot::MoveL, "x", "y", "z", "a", "b", "c"), make_protocol_function("set_joint_speed", *this, &DummyRobot::SetJointSpeed, "speed"), make_protocol_function("set_joint_acc", *this, &DummyRobot::SetJointAcceleration, "acc"), make_protocol_function("set_command_mode", *this, &DummyRobot::SetCommandMode, "mode"), make_protocol_object("tuning", tuningHelper.MakeProtocolDefinitions()) ); } class CommandHandler { public: explicit CommandHandler(DummyRobot* _context) : context(_context) { commandFifo = osMessageQueueNew(16, 64, nullptr); } uint32_t Push(const std::string &_cmd); std::string Pop(uint32_t timeout); uint32_t ParseCommand(const std::string &_cmd); uint32_t GetSpace(); void ClearFifo(); void EmergencyStop(); private: DummyRobot* context; osMessageQueueId_t commandFifo; char strBuffer[64]{}; }; CommandHandler commandHandler = CommandHandler(this); private: CAN_HandleTypeDef* hcan; float jointSpeed = DEFAULT_JOINT_SPEED; float jointSpeedRatio = 1; DOF6Kinematic::Joint6D_t dynamicJointSpeeds = {1, 1, 1, 1, 1, 1}; DOF6Kinematic* dof6Solver; bool isEnabled = false; }; #endif //REF_STM32F4_FW_DUMMY_ROBOT_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/STM32F405RGTx_FLASH.ld ================================================ /* ****************************************************************************** ** ** File : LinkerScript.ld ** ** Author : Auto-generated by System Workbench for STM32 ** ** Abstract : Linker script for STM32F405RGTx series ** 1024Kbytes FLASH and 192Kbytes RAM ** ** Set heap size, stack size and stack location according ** to application requirements. ** ** Set memory bank area and size if external memory is used. ** ** Target : STMicroelectronics STM32 ** ** Distribution: The file is distributed “as is,” without any warranty ** of any kind. ** ***************************************************************************** ** @attention ** **

© COPYRIGHT(c) 2019 STMicroelectronics

** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following conditions are met: ** 1. Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** 2. Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** 3. Neither the name of STMicroelectronics nor the names of its contributors ** may be used to endorse or promote products derived from this software ** without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ***************************************************************************** */ /* Entry Point */ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ _estack = 0x20020000; /* end of RAM */ /* Generate a link error if heap and stack don't fit into RAM */ _Min_Heap_Size = 0x3C00; /* required amount of heap */ _Min_Stack_Size = 0x800; /* required amount of stack */ /* Specify the memory areas */ MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K } /* Define output sections */ SECTIONS { /* The startup code goes first into FLASH */ .isr_vector : { . = ALIGN(4); KEEP(*(.isr_vector)) /* Startup code */ . = ALIGN(4); } >FLASH /* The program code and other data goes into FLASH */ .text : { . = ALIGN(4); *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.glue_7) /* glue arm to thumb code */ *(.glue_7t) /* glue thumb to arm code */ *(.eh_frame) KEEP (*(.init)) KEEP (*(.fini)) . = ALIGN(4); _etext = .; /* define a global symbols at end of code */ } >FLASH /* Constant data goes into FLASH */ .rodata : { . = ALIGN(4); *(.rodata) /* .rodata sections (constants, strings, etc.) */ *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ . = ALIGN(4); } >FLASH .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH .ARM : { __exidx_start = .; *(.ARM.exidx*) __exidx_end = .; } >FLASH .preinit_array : { PROVIDE_HIDDEN (__preinit_array_start = .); KEEP (*(.preinit_array*)) PROVIDE_HIDDEN (__preinit_array_end = .); } >FLASH .init_array : { PROVIDE_HIDDEN (__init_array_start = .); KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array*)) PROVIDE_HIDDEN (__init_array_end = .); } >FLASH .fini_array : { PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(SORT(.fini_array.*))) KEEP (*(.fini_array*)) PROVIDE_HIDDEN (__fini_array_end = .); } >FLASH /* used by the startup to initialize data */ _sidata = LOADADDR(.data); /* Initialized data sections goes into RAM, load LMA copy after code */ .data : { . = ALIGN(4); _sdata = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ . = ALIGN(4); _edata = .; /* define a global symbol at data end */ } >RAM AT> FLASH _siccmram = LOADADDR(.ccmram); /* CCM-RAM section * * IMPORTANT NOTE! * If initialized variables will be placed in this section, * the startup code needs to be modified to copy the init-values. */ .ccmram : { . = ALIGN(4); _sccmram = .; /* create a global symbol at ccmram start */ *(.ccmram) *(.ccmram*) . = ALIGN(4); _eccmram = .; /* create a global symbol at ccmram end */ } >CCMRAM AT> FLASH /* Uninitialized data section */ . = ALIGN(4); .bss : { /* This is used by the startup in order to initialize the .bss secion */ _sbss = .; /* define a global symbol at bss start */ __bss_start__ = _sbss; *(.bss) *(.bss*) *(COMMON) . = ALIGN(4); _ebss = .; /* define a global symbol at bss end */ __bss_end__ = _ebss; } >RAM /* User_heap_stack section, used to check that there is enough RAM left */ ._user_heap_stack : { . = ALIGN(8); PROVIDE ( end = . ); PROVIDE ( _end = . ); . = . + _Min_Heap_Size; . = . + _Min_Stack_Size; . = ALIGN(8); } >RAM /* Remove information from the standard libraries */ /DISCARD/ : { libc.a ( * ) libm.a ( * ) libgcc.a ( * ) } .ARM.attributes 0 : { *(.ARM.attributes) } } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usb_device.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usb_device.c * @version : v1.0_Cube * @brief : This file implements the USB Device ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "usb_device.h" #include "usbd_core.h" #include "usbd_desc.h" #include "usbd_cdc.h" #include "usbd_cdc_if.h" /* USER CODE BEGIN Includes */ #include /* USER CODE END Includes */ /* USER CODE BEGIN PV */ /* Private variables ---------------------------------------------------------*/ /* USER CODE END PV */ /* USER CODE BEGIN PFP */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE END PFP */ /* USB Device Core handle declaration. */ USBD_HandleTypeDef hUsbDeviceFS; /* * -- Insert your variables declaration here -- */ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /* * -- Insert your external function declaration here -- */ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /** * Init USB device Library, add supported class and start the library * @retval None */ void MX_USB_DEVICE_Init(void) { /* USER CODE BEGIN USB_DEVICE_Init_PreTreatment */ /* USER CODE END USB_DEVICE_Init_PreTreatment */ /* Init Device Library, add supported class and start the library. */ if (USBD_Init(&hUsbDeviceFS, &FS_Desc, DEVICE_FS) != USBD_OK) { Error_Handler(); } if (USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC) != USBD_OK) { Error_Handler(); } if (USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS) != USBD_OK) { Error_Handler(); } if (USBD_Start(&hUsbDeviceFS) != USBD_OK) { Error_Handler(); } /* USER CODE BEGIN USB_DEVICE_Init_PostTreatment */ /* USER CODE END USB_DEVICE_Init_PostTreatment */ } /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usb_device.h ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usb_device.h * @version : v1.0_Cube * @brief : Header for usb_device.c file. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USB_DEVICE__H__ #define __USB_DEVICE__H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "stm32f4xx_hal.h" #include "usbd_def.h" /* USER CODE BEGIN INCLUDE */ /* USER CODE END INCLUDE */ /** @addtogroup USBD_OTG_DRIVER * @{ */ /** @defgroup USBD_DEVICE USBD_DEVICE * @brief Device file for Usb otg low level driver. * @{ */ /** @defgroup USBD_DEVICE_Exported_Variables USBD_DEVICE_Exported_Variables * @brief Public variables. * @{ */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ extern USBD_HandleTypeDef hUsbDeviceFS; /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* * -- Insert your variables declaration here -- */ /* USER CODE BEGIN VARIABLES */ /* USER CODE END VARIABLES */ /** * @} */ /** @defgroup USBD_DEVICE_Exported_FunctionsPrototype USBD_DEVICE_Exported_FunctionsPrototype * @brief Declaration of public functions for Usb device. * @{ */ /** USB Device initialization function. */ void MX_USB_DEVICE_Init(void); /* * -- Insert functions declaration here -- */ /* USER CODE BEGIN FD */ /* USER CODE END FD */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __USB_DEVICE__H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_cdc_if.c ================================================ /** ****************************************************************************** * @file : usbd_cdc_if.c * @version : v1.0_Cube * @brief : Usb device for Virtual Com Port. ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_cdc_if.h" /* USER CODE BEGIN INCLUDE */ #include "cmsis_os.h" #include #include "interface_usb.hpp" /* USER CODE END INCLUDE */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* Private variables ---------------------------------------------------------*/ /* USER CODE END PV */ /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY * @brief Usb device library. * @{ */ /** @addtogroup USBD_CDC_IF * @{ */ /** @defgroup USBD_CDC_IF_Private_TypesDefinitions USBD_CDC_IF_Private_TypesDefinitions * @brief Private types. * @{ */ /* USER CODE BEGIN PRIVATE_TYPES */ /* USER CODE END PRIVATE_TYPES */ /** * @} */ /** @defgroup USBD_CDC_IF_Private_Defines USBD_CDC_IF_Private_Defines * @brief Private defines. * @{ */ /* USER CODE BEGIN PRIVATE_DEFINES */ /* USER CODE END PRIVATE_DEFINES */ /** * @} */ /** @defgroup USBD_CDC_IF_Private_Macros USBD_CDC_IF_Private_Macros * @brief Private macros. * @{ */ /* USER CODE BEGIN PRIVATE_MACRO */ /* USER CODE END PRIVATE_MACRO */ /** * @} */ /** @defgroup USBD_CDC_IF_Private_Variables USBD_CDC_IF_Private_Variables * @brief Private variables. * @{ */ /* Create buffer for reception and transmission */ /* It's up to user to redefine and/or remove those define */ /** Received data over USB are stored in this buffer */ uint8_t CDCRxBufferFS[APP_RX_DATA_SIZE]; uint8_t REFRxBufferFS[APP_RX_DATA_SIZE]; /** Data to send over USB CDC are stored in this buffer */ uint8_t CDCTxBufferFS[APP_TX_DATA_SIZE]; uint8_t REFTxBufferFS[APP_TX_DATA_SIZE]; /* USER CODE BEGIN PRIVATE_VARIABLES */ /* USER CODE END PRIVATE_VARIABLES */ /** * @} */ /** @defgroup USBD_CDC_IF_Exported_Variables USBD_CDC_IF_Exported_Variables * @brief Public variables. * @{ */ extern USBD_HandleTypeDef hUsbDeviceFS; /* USER CODE BEGIN EXPORTED_VARIABLES */ /* USER CODE END EXPORTED_VARIABLES */ /** * @} */ /** @defgroup USBD_CDC_IF_Private_FunctionPrototypes USBD_CDC_IF_Private_FunctionPrototypes * @brief Private functions declaration. * @{ */ static int8_t CDC_Init_FS(void); static int8_t CDC_DeInit_FS(void); static int8_t CDC_Control_FS(uint8_t cmd, uint8_t* pbuf, uint16_t length); static int8_t CDC_Receive_FS(uint8_t* pbuf, uint32_t *Len, uint8_t endpoint_pair); /* USER CODE BEGIN PRIVATE_FUNCTIONS_DECLARATION */ /* USER CODE END PRIVATE_FUNCTIONS_DECLARATION */ /** * @} */ USBD_CDC_ItfTypeDef USBD_Interface_fops_FS = { CDC_Init_FS, CDC_DeInit_FS, CDC_Control_FS, CDC_Receive_FS }; /* Private functions ---------------------------------------------------------*/ /** * @brief Initializes the CDC media low layer over the FS USB IP * @retval USBD_OK if all operations are OK else USBD_FAIL */ static int8_t CDC_Init_FS(void) { /* USER CODE BEGIN 3 */ /* Set Application Buffers */ USBD_CDC_SetTxBuffer(&hUsbDeviceFS, CDCTxBufferFS, 0, CDC_OUT_EP); USBD_CDC_SetRxBuffer(&hUsbDeviceFS, CDCRxBufferFS, CDC_OUT_EP); USBD_CDC_SetTxBuffer(&hUsbDeviceFS, REFTxBufferFS, 0, ODRIVE_OUT_EP); USBD_CDC_SetRxBuffer(&hUsbDeviceFS, REFRxBufferFS, ODRIVE_OUT_EP); return (USBD_OK); /* USER CODE END 3 */ } /** * @brief DeInitializes the CDC media low layer * @retval USBD_OK if all operations are OK else USBD_FAIL */ static int8_t CDC_DeInit_FS(void) { /* USER CODE BEGIN 4 */ return (USBD_OK); /* USER CODE END 4 */ } /** * @brief Manage the CDC class requests * @param cmd: Command code * @param pbuf: Buffer containing command data (request parameters) * @param length: Number of data to be sent (in bytes) * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL */ static int8_t CDC_Control_FS(uint8_t cmd, uint8_t* pbuf, uint16_t length) { /* USER CODE BEGIN 5 */ switch (cmd) { case CDC_SEND_ENCAPSULATED_COMMAND: break; case CDC_GET_ENCAPSULATED_RESPONSE: break; case CDC_SET_COMM_FEATURE: break; case CDC_GET_COMM_FEATURE: break; case CDC_CLEAR_COMM_FEATURE: break; /*******************************************************************************/ /* Line Coding Structure */ /*-----------------------------------------------------------------------------*/ /* Offset | Field | Size | Value | Description */ /* 0 | dwDTERate | 4 | Number |Data terminal rate, in bits per second*/ /* 4 | bCharFormat | 1 | Number | Stop bits */ /* 0 - 1 Stop bit */ /* 1 - 1.5 Stop bits */ /* 2 - 2 Stop bits */ /* 5 | bParityType | 1 | Number | Parity */ /* 0 - None */ /* 1 - Odd */ /* 2 - Even */ /* 3 - Mark */ /* 4 - Space */ /* 6 | bDataBits | 1 | Number Data bits (5, 6, 7, 8 or 16). */ /*******************************************************************************/ case CDC_SET_LINE_CODING: break; case CDC_GET_LINE_CODING: pbuf[0] = (uint8_t)(115200); pbuf[1] = (uint8_t)(115200 >> 8); pbuf[2] = (uint8_t)(115200 >> 16); pbuf[3] = (uint8_t)(115200 >> 24); pbuf[4] = 0; // stop bits (1) pbuf[5] = 0; // parity (none) pbuf[6] = 8; // number of bits (8) break; case CDC_SET_CONTROL_LINE_STATE: break; case CDC_SEND_BREAK: break; default: break; } return (USBD_OK); /* USER CODE END 5 */ } /** * @brief Data received over USB OUT endpoint are sent over CDC interface * through this function. * * @note * This function will block any OUT packet reception on USB endpoint * untill exiting this function. If you exit this function before transfer * is complete on CDC interface (ie. using DMA controller) it will result * in receiving more data while previous ones are still not sent. * * @param Buf: Buffer of data to be received * @param Len: Number of data received (in bytes) * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL */ static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len, uint8_t endpoint_pair) { /* USER CODE BEGIN 6 */ usb_rx_process_packet(Buf, *Len, endpoint_pair); return (USBD_OK); /* USER CODE END 6 */ } /** * @brief CDC_Transmit_FS * Data to send over USB IN endpoint are sent over CDC interface * through this function. * @note * * * @param Buf: Buffer of data to be sent * @param Len: Number of data to be sent (in bytes) * @retval USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY */ uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len, uint8_t endpoint_pair) { uint8_t result = USBD_OK; /* USER CODE BEGIN 7 */ //Check length if (Len > USB_TX_DATA_SIZE) return USBD_FAIL; USBD_CDC_HandleTypeDef* hcdc = (USBD_CDC_HandleTypeDef*) hUsbDeviceFS.pClassData; // Select EP USBD_CDC_EP_HandleTypeDef* hEP_Tx; uint8_t* TxBuff; if (endpoint_pair == CDC_OUT_EP) { hEP_Tx = &hcdc->CDC_Tx; TxBuff = CDCTxBufferFS; } else if (endpoint_pair == ODRIVE_OUT_EP) { hEP_Tx = &hcdc->REF_Tx; TxBuff = REFTxBufferFS; } else { return USBD_FAIL; } // Check for ongoing transmission if (hEP_Tx->State != 0) return USBD_BUSY; // memcpy Buf into UserTxBufferFS memcpy(TxBuff, Buf, Len); // Update Len USBD_CDC_SetTxBuffer(&hUsbDeviceFS, TxBuff, Len, endpoint_pair); result = USBD_CDC_TransmitPacket(&hUsbDeviceFS, endpoint_pair); /* USER CODE END 7 */ return result; } /* USER CODE BEGIN PRIVATE_FUNCTIONS_IMPLEMENTATION */ /* USER CODE END PRIVATE_FUNCTIONS_IMPLEMENTATION */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_cdc_if.h ================================================ /** ****************************************************************************** * @file : usbd_cdc_if.h * @version : v1.0_Cube * @brief : Header for usbd_cdc_if.c file. ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_CDC_IF_H__ #define __USBD_CDC_IF_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_cdc.h" /* USER CODE BEGIN INCLUDE */ /* USER CODE END INCLUDE */ /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY * @brief For Usb device. * @{ */ /** @defgroup USBD_CDC_IF USBD_CDC_IF * @brief Usb VCP device module * @{ */ /** @defgroup USBD_CDC_IF_Exported_Defines USBD_CDC_IF_Exported_Defines * @brief Defines. * @{ */ /* USER CODE BEGIN EXPORTED_DEFINES */ /* Define size for the receive and transmit buffer over CDC */ /* It's up to user to redefine and/or remove those define */ #define USB_RX_DATA_SIZE 64 #define USB_TX_DATA_SIZE 64 #define APP_RX_DATA_SIZE USB_RX_DATA_SIZE #define APP_TX_DATA_SIZE USB_TX_DATA_SIZE /* USER CODE END EXPORTED_DEFINES */ /** * @} */ /** @defgroup USBD_CDC_IF_Exported_Types USBD_CDC_IF_Exported_Types * @brief Types. * @{ */ /* USER CODE BEGIN EXPORTED_TYPES */ /* USER CODE END EXPORTED_TYPES */ /** * @} */ /** @defgroup USBD_CDC_IF_Exported_Macros USBD_CDC_IF_Exported_Macros * @brief Aliases. * @{ */ /* USER CODE BEGIN EXPORTED_MACRO */ /* USER CODE END EXPORTED_MACRO */ /** * @} */ /** @defgroup USBD_CDC_IF_Exported_Variables USBD_CDC_IF_Exported_Variables * @brief Public variables. * @{ */ /** CDC Interface callback. */ extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS; /* USER CODE BEGIN EXPORTED_VARIABLES */ /* USER CODE END EXPORTED_VARIABLES */ /** * @} */ /** @defgroup USBD_CDC_IF_Exported_FunctionsPrototype USBD_CDC_IF_Exported_FunctionsPrototype * @brief Public functions declaration. * @{ */ uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len, uint8_t endpoint_pair); /* USER CODE BEGIN EXPORTED_FUNCTIONS */ /* USER CODE END EXPORTED_FUNCTIONS */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_CDC_IF_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_desc.c ================================================ /** ****************************************************************************** * @file : usbd_desc.c * @version : v1.0_Cube * @brief : This file implements the USB device descriptors. ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usbd_core.h" #include "usbd_desc.h" #include "usbd_conf.h" /* USER CODE BEGIN INCLUDE */ #include "common_inc.h" /* USER CODE END INCLUDE */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* Private variables ---------------------------------------------------------*/ /* USER CODE END PV */ /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY * @{ */ /** @addtogroup USBD_DESC * @{ */ /** @defgroup USBD_DESC_Private_TypesDefinitions USBD_DESC_Private_TypesDefinitions * @brief Private types. * @{ */ /* USER CODE BEGIN PRIVATE_TYPES */ /* USER CODE END PRIVATE_TYPES */ /** * @} */ /** @defgroup USBD_DESC_Private_Defines USBD_DESC_Private_Defines * @brief Private defines. * @{ */ #define USBD_VID 0x1209 #define USBD_LANGID_STRING 1033 #define USBD_MANUFACTURER_STRING "Robot Embedded Framework" #define USBD_PID_FS 0x0D32 #define USBD_PRODUCT_XSTR(s) USBD_PRODUCT_STR(s) #define USBD_PRODUCT_STR(s) #s #define USBD_PRODUCT_STRING_FS REF CONFIG_FW_VERSION CDC Interface #define NATIVE_STRING REF CONFIG_FW_VERSION Native Interface #define USBD_SERIALNUMBER_STRING_FS "000000000001" #define USBD_CONFIGURATION_STRING_FS "CDC Config" #define USBD_INTERFACE_STRING_FS "CDC Interface" #define USB_SIZ_BOS_DESC 0x0C /* USER CODE BEGIN PRIVATE_DEFINES */ /* USER CODE END PRIVATE_DEFINES */ /** * @} */ /* USER CODE BEGIN 0 */ // MS OS String descriptor to tell Windows that it may query for other descriptors // It's a standard string descriptor. // Windows will only query for OS descriptors once! // Delete the information about already queried devices in registry by deleting: // HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\VVVVPPPPRRRR __ALIGN_BEGIN uint8_t USBD_MS_OS_StringDescriptor[] __ALIGN_END = { 0x12, // bLength 1 0x12 Length of the descriptor 0x03, // bDescriptorType 1 0x03 Descriptor type // qwSignature 14 ‘MSFT100’ Signature field 0x4D, 0x00, // 'M' 0x53, 0x00, // 'S' 0x46, 0x00, // 'F' 0x54, 0x00, // 'T' 0x31, 0x00, // '1' 0x30, 0x00, // '0' 0x30, 0x00, // '0' MS_VendorCode, // bMS_VendorCode 1 Vendor-specific Vendor code 0x00 // bPad 1 0x00 Pad field }; // redefined further down __ALIGN_BEGIN uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END; /** * @brief UsrStrDescriptor * return non standard string descriptor * @param pdev: device instance * @param index : descriptor index (0xEE for MS OS String Descriptor) * @param length : pointer data length * @retval pointer to descriptor buffer */ uint8_t *USBD_UsrStrDescriptor(struct _USBD_HandleTypeDef *pdev, uint8_t index, uint16_t *length) { *length = 0; if (USBD_IDX_MICROSOFT_DESC_STR == index) { *length = sizeof(USBD_MS_OS_StringDescriptor); return USBD_MS_OS_StringDescriptor; } else if (USBD_IDX_REF_INTF_STR == index) { USBD_GetString((uint8_t *) USBD_PRODUCT_XSTR(NATIVE_STRING), USBD_StrDesc, length); return USBD_StrDesc; } return NULL; } /* USER CODE END 0 */ /** @defgroup USBD_DESC_Private_Macros USBD_DESC_Private_Macros * @brief Private macros. * @{ */ /* USER CODE BEGIN PRIVATE_MACRO */ /* USER CODE END PRIVATE_MACRO */ /** * @} */ /** @defgroup USBD_DESC_Private_FunctionPrototypes USBD_DESC_Private_FunctionPrototypes * @brief Private functions declaration. * @{ */ uint8_t *USBD_FS_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_LangIDStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_SerialStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); uint8_t *USBD_FS_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); #ifdef USB_SUPPORT_USER_STRING_DESC uint8_t * USBD_FS_USRStringDesc(USBD_SpeedTypeDef speed, uint8_t idx, uint16_t *length); #endif /* USB_SUPPORT_USER_STRING_DESC */ #if (USBD_LPM_ENABLED == 1) uint8_t * USBD_FS_USR_BOSDescriptor(USBD_SpeedTypeDef speed, uint16_t *length); #endif /* (USBD_LPM_ENABLED == 1) */ /** * @} */ /** @defgroup USBD_DESC_Private_Variables USBD_DESC_Private_Variables * @brief Private variables. * @{ */ USBD_DescriptorsTypeDef FS_Desc = { USBD_FS_DeviceDescriptor, USBD_FS_LangIDStrDescriptor, USBD_FS_ManufacturerStrDescriptor, USBD_FS_ProductStrDescriptor, USBD_FS_SerialStrDescriptor, USBD_FS_ConfigStrDescriptor, USBD_FS_InterfaceStrDescriptor #if (USBD_LPM_ENABLED == 1) , USBD_FS_USR_BOSDescriptor #endif /* (USBD_LPM_ENABLED == 1) */ }; #if defined ( __ICCARM__ ) /* IAR Compiler */ #pragma data_alignment=4 #endif /* defined ( __ICCARM__ ) */ /** USB standard device descriptor. */ __ALIGN_BEGIN uint8_t USBD_FS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END = { 0x12, /*bLength */ USB_DESC_TYPE_DEVICE, /*bDescriptorType*/ #if (USBD_LPM_ENABLED == 1) 0x01, /*bcdUSB */ /* changed to USB version 2.01 in order to support LPM L1 suspend resume test of USBCV3.0*/ #else 0x00, /*bcdUSB */ #endif /* (USBD_LPM_ENABLED == 1) */ 0x02, // Notify OS that this is a composite device 0xEF, /*bDeviceClass*/ 0x02, /*bDeviceSubClass*/ 0x01, /*bDeviceProtocol*/ USB_MAX_EP0_SIZE, /*bMaxPacketSize*/ LOBYTE(USBD_VID), /*idVendor*/ HIBYTE(USBD_VID), /*idVendor*/ LOBYTE(USBD_PID_FS), /*idProduct*/ HIBYTE(USBD_PID_FS), /*idProduct*/ 0x00, /*bcdDevice rel. 2.00*/ 0x03, /* bNumInterfaces */ USBD_IDX_MFC_STR, /*Index of manufacturer string*/ USBD_IDX_PRODUCT_STR, /*Index of product string*/ USBD_IDX_SERIAL_STR, /*Index of serial number string*/ USBD_MAX_NUM_CONFIGURATION /*bNumConfigurations*/ }; /* USB_DeviceDescriptor */ /** BOS descriptor. */ #if (USBD_LPM_ENABLED == 1) #if defined ( __ICCARM__ ) /* IAR Compiler */ #pragma data_alignment=4 #endif /* defined ( __ICCARM__ ) */ __ALIGN_BEGIN uint8_t USBD_FS_BOSDesc[USB_SIZ_BOS_DESC] __ALIGN_END = { 0x5, USB_DESC_TYPE_BOS, 0xC, 0x0, 0x1, /* 1 device capability*/ /* device capability*/ 0x7, USB_DEVICE_CAPABITY_TYPE, 0x2, 0x2, /* LPM capability bit set*/ 0x0, 0x0, 0x0 }; #endif /* (USBD_LPM_ENABLED == 1) */ /** * @} */ /** @defgroup USBD_DESC_Private_Variables USBD_DESC_Private_Variables * @brief Private variables. * @{ */ #if defined ( __ICCARM__ ) /* IAR Compiler */ #pragma data_alignment=4 #endif /* defined ( __ICCARM__ ) */ /** USB lang indentifier descriptor. */ __ALIGN_BEGIN uint8_t USBD_LangIDDesc[USB_LEN_LANGID_STR_DESC] __ALIGN_END = { USB_LEN_LANGID_STR_DESC, USB_DESC_TYPE_STRING, LOBYTE(USBD_LANGID_STRING), HIBYTE(USBD_LANGID_STRING) }; #if defined ( __ICCARM__ ) /* IAR Compiler */ #pragma data_alignment=4 #endif /* defined ( __ICCARM__ ) */ /* Internal string descriptor. */ __ALIGN_BEGIN uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END; /** * @} */ /** @defgroup USBD_DESC_Private_Functions USBD_DESC_Private_Functions * @brief Private functions. * @{ */ /** * @brief Return the device descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { *length = sizeof(USBD_FS_DeviceDesc); return USBD_FS_DeviceDesc; } /** * @brief Return the LangID string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_LangIDStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { *length = sizeof(USBD_LangIDDesc); return USBD_LangIDDesc; } /** * @brief Return the product string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { if (speed == 0) { USBD_GetString((uint8_t *) USBD_PRODUCT_XSTR(USBD_PRODUCT_STRING_FS), USBD_StrDesc, length); } else { USBD_GetString((uint8_t *) USBD_PRODUCT_XSTR(USBD_PRODUCT_STRING_FS), USBD_StrDesc, length); } return USBD_StrDesc; } /** * @brief Return the manufacturer string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { USBD_GetString((uint8_t *) USBD_MANUFACTURER_STRING, USBD_StrDesc, length); return USBD_StrDesc; } /** * @brief Return the serial number string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_SerialStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { USBD_GetString((uint8_t *) (serialNumberStr), USBD_StrDesc, length); return USBD_StrDesc; } /** * @brief Return the configuration string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { if (speed == USBD_SPEED_HIGH) { USBD_GetString((uint8_t *) USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); } else { USBD_GetString((uint8_t *) USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); } return USBD_StrDesc; } /** * @brief Return the interface string descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t *USBD_FS_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { if (speed == 0) { USBD_GetString((uint8_t *) USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); } else { USBD_GetString((uint8_t *) USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); } return USBD_StrDesc; } #if (USBD_LPM_ENABLED == 1) /** * @brief Return the BOS descriptor * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_USR_BOSDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { *length = sizeof(USBD_FS_BOSDesc); return (uint8_t*)USBD_FS_BOSDesc; } #endif /* (USBD_LPM_ENABLED == 1) */ /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/App/usbd_desc.h ================================================ /** ****************************************************************************** * @file : usbd_desc.h * @version : v1.0_Cube * @brief : Header for usbd_desc.c file. ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_DESC__H__ #define __USBD_DESC__H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_def.h" /* USER CODE BEGIN INCLUDE */ /* USER CODE END INCLUDE */ /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY * @{ */ /** @defgroup USBD_DESC USBD_DESC * @brief Usb device descriptors module. * @{ */ /** @defgroup USBD_DESC_Exported_Defines USBD_DESC_Exported_Defines * @brief Defines. * @{ */ /* USER CODE BEGIN EXPORTED_DEFINES */ /* USER CODE END EXPORTED_DEFINES */ /** * @} */ /** @defgroup USBD_DESC_Exported_TypesDefinitions USBD_DESC_Exported_TypesDefinitions * @brief Types. * @{ */ /* USER CODE BEGIN EXPORTED_TYPES */ /* USER CODE END EXPORTED_TYPES */ /** * @} */ /** @defgroup USBD_DESC_Exported_Macros USBD_DESC_Exported_Macros * @brief Aliases. * @{ */ /* USER CODE BEGIN EXPORTED_MACRO */ /* USER CODE END EXPORTED_MACRO */ /** * @} */ /** @defgroup USBD_DESC_Exported_Variables USBD_DESC_Exported_Variables * @brief Public variables. * @{ */ /** Descriptor for the Usb device. */ extern USBD_DescriptorsTypeDef FS_Desc; /* USER CODE BEGIN EXPORTED_VARIABLES */ /* USER CODE END EXPORTED_VARIABLES */ /** * @} */ /** @defgroup USBD_DESC_Exported_FunctionsPrototype USBD_DESC_Exported_FunctionsPrototype * @brief Public functions declaration. * @{ */ /* USER CODE BEGIN EXPORTED_FUNCTIONS */ uint8_t * USBD_UsrStrDescriptor(struct _USBD_HandleTypeDef *pdev, uint8_t index, uint16_t *length); /* USER CODE END EXPORTED_FUNCTIONS */ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_DESC__H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target/usbd_conf.c ================================================ /** ****************************************************************************** * @file : usbd_conf.c * @version : v1.0_Cube * @brief : This file implements the board support package for the USB device library ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "stm32f4xx_hal.h" #include "usbd_def.h" #include "usbd_core.h" /* USER CODE BEGIN Includes */ #include "main.h" /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* Private variables ---------------------------------------------------------*/ /* USER CODE END PV */ PCD_HandleTypeDef hpcd_USB_OTG_FS; /* External functions --------------------------------------------------------*/ void SystemClock_Config(void); /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /* USER CODE BEGIN PFP */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE END PFP */ /* Private functions ---------------------------------------------------------*/ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /******************************************************************************* LL Driver Callbacks (PCD -> USB Device Library) *******************************************************************************/ /* MSP Init */ void HAL_PCD_MspInit(PCD_HandleTypeDef* pcdHandle) { GPIO_InitTypeDef GPIO_InitStruct; if(pcdHandle->Instance==USB_OTG_FS) { /* USER CODE BEGIN USB_OTG_FS_MspInit 0 */ /* USER CODE END USB_OTG_FS_MspInit 0 */ /**USB_OTG_FS GPIO Configuration PA11 ------> USB_OTG_FS_DM PA12 ------> USB_OTG_FS_DP */ GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* Peripheral clock enable */ __HAL_RCC_USB_OTG_FS_CLK_ENABLE(); /* Peripheral interrupt init */ HAL_NVIC_SetPriority(OTG_FS_IRQn, 5, 0); HAL_NVIC_EnableIRQ(OTG_FS_IRQn); /* USER CODE BEGIN USB_OTG_FS_MspInit 1 */ /* USER CODE END USB_OTG_FS_MspInit 1 */ } } void HAL_PCD_MspDeInit(PCD_HandleTypeDef* pcdHandle) { if(pcdHandle->Instance==USB_OTG_FS) { /* USER CODE BEGIN USB_OTG_FS_MspDeInit 0 */ /* USER CODE END USB_OTG_FS_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_USB_OTG_FS_CLK_DISABLE(); /**USB_OTG_FS GPIO Configuration PA11 ------> USB_OTG_FS_DM PA12 ------> USB_OTG_FS_DP */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_11|GPIO_PIN_12); /* Peripheral interrupt Deinit*/ HAL_NVIC_DisableIRQ(OTG_FS_IRQn); /* USER CODE BEGIN USB_OTG_FS_MspDeInit 1 */ /* USER CODE END USB_OTG_FS_MspDeInit 1 */ } } /** * @brief Setup stage callback * @param hpcd: PCD handle * @retval None */ void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) { USBD_StatusTypeDef ret = USBD_OK; USBD_HandleTypeDef *pdev = hpcd->pData; USBD_SetupReqTypedef *req = &pdev->request; USBD_ParseSetupRequest(req, (uint8_t *)hpcd->Setup); if ( ( USB_REQ_TYPE_VENDOR == (req->bmRequest & USB_REQ_TYPE_MASK) ) && ( MS_VendorCode == req->bRequest ) ) { pdev->ep0_state = USBD_EP0_SETUP; pdev->ep0_data_len = pdev->request.wLength; ret = pdev->pClass->Setup(pdev, req); if( (req->wLength == 0) && (ret == USBD_OK) ) { USBD_CtlSendStatus(pdev); } return; } USBD_LL_SetupStage((USBD_HandleTypeDef*)hpcd->pData, (uint8_t *)hpcd->Setup); } /** * @brief Data Out stage callback. * @param hpcd: PCD handle * @param epnum: Endpoint number * @retval None */ void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { USBD_LL_DataOutStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->OUT_ep[epnum].xfer_buff); } /** * @brief Data In stage callback. * @param hpcd: PCD handle * @param epnum: Endpoint number * @retval None */ void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { USBD_LL_DataInStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->IN_ep[epnum].xfer_buff); } /** * @brief SOF callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) { USBD_LL_SOF((USBD_HandleTypeDef*)hpcd->pData); } /** * @brief Reset callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) { USBD_SpeedTypeDef speed = USBD_SPEED_FULL; /* Set USB current speed. */ switch (hpcd->Init.speed) { case PCD_SPEED_HIGH: speed = USBD_SPEED_HIGH; break; case PCD_SPEED_FULL: speed = USBD_SPEED_FULL; break; default: speed = USBD_SPEED_FULL; break; } USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, speed); /* Reset Device. */ USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); } /** * @brief Suspend callback. * When Low power mode is enabled the debug cannot be used (IAR, Keil doesn't support it) * @param hpcd: PCD handle * @retval None */ void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) { /* Inform USB library that core enters in suspend Mode. */ USBD_LL_Suspend((USBD_HandleTypeDef*)hpcd->pData); __HAL_PCD_GATE_PHYCLOCK(hpcd); /* Enter in STOP mode. */ /* USER CODE BEGIN 2 */ if (hpcd->Init.low_power_enable) { /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register */ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); } /* USER CODE END 2 */ } /** * @brief Resume callback. * When Low power mode is enabled the debug cannot be used (IAR, Keil doesn't support it) * @param hpcd: PCD handle * @retval None */ void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) { /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ USBD_LL_Resume((USBD_HandleTypeDef*)hpcd->pData); } /** * @brief ISOOUTIncomplete callback. * @param hpcd: PCD handle * @param epnum: Endpoint number * @retval None */ void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { USBD_LL_IsoOUTIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); } /** * @brief ISOINIncomplete callback. * @param hpcd: PCD handle * @param epnum: Endpoint number * @retval None */ void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) { USBD_LL_IsoINIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); } /** * @brief Connect callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) { USBD_LL_DevConnected((USBD_HandleTypeDef*)hpcd->pData); } /** * @brief Disconnect callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) { USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData); } /******************************************************************************* LL Driver Interface (USB Device Library --> PCD) *******************************************************************************/ /** * @brief Initializes the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev) { /* Init USB Ip. */ if (pdev->id == DEVICE_FS) { /* Link the driver to the stack. */ hpcd_USB_OTG_FS.pData = pdev; pdev->pData = &hpcd_USB_OTG_FS; hpcd_USB_OTG_FS.Instance = USB_OTG_FS; hpcd_USB_OTG_FS.Init.dev_endpoints = 6; hpcd_USB_OTG_FS.Init.speed = PCD_SPEED_FULL; hpcd_USB_OTG_FS.Init.dma_enable = DISABLE; hpcd_USB_OTG_FS.Init.ep0_mps = EP_MPS_64; hpcd_USB_OTG_FS.Init.phy_itface = PCD_PHY_EMBEDDED; hpcd_USB_OTG_FS.Init.Sof_enable = DISABLE; hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE; hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE; hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE; hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE; if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK) { Error_Handler(); } HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_FS, 0x80); HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x40); HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 1, 0x40); // CDC IN endpoint HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 3, 0x40); // REF IN endpoint } return USBD_OK; } /** * @brief De-Initializes the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_DeInit(USBD_HandleTypeDef *pdev) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_DeInit(pdev->pData); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Starts the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_Start(pdev->pData); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Stops the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Stop(USBD_HandleTypeDef *pdev) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_Stop(pdev->pData); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Opens an endpoint of the low level driver. * @param pdev: Device handle * @param ep_addr: Endpoint number * @param ep_type: Endpoint type * @param ep_mps: Endpoint max packet size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_Open(pdev->pData, ep_addr, ep_mps, ep_type); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Closes an endpoint of the low level driver. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_Close(pdev->pData, ep_addr); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Flushes an endpoint of the Low Level Driver. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_FlushEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_Flush(pdev->pData, ep_addr); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Sets a Stall condition on an endpoint of the Low Level Driver. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_SetStall(pdev->pData, ep_addr); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Clears a Stall condition on an endpoint of the Low Level Driver. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_ClrStall(pdev->pData, ep_addr); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Returns Stall condition. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval Stall (1: Yes, 0: No) */ uint8_t USBD_LL_IsStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData; if((ep_addr & 0x80) == 0x80) { return hpcd->IN_ep[ep_addr & 0x7F].is_stall; } else { return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; } } /** * @brief Assigns a USB address to the device. * @param pdev: Device handle * @param dev_addr: Device address * @retval USBD status */ USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_SetAddress(pdev->pData, dev_addr); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Transmits data over an endpoint. * @param pdev: Device handle * @param ep_addr: Endpoint number * @param pbuf: Pointer to data to be sent * @param size: Data size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_Transmit(pdev->pData, ep_addr, pbuf, size); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Prepares an endpoint for reception. * @param pdev: Device handle * @param ep_addr: Endpoint number * @param pbuf: Pointer to data to be received * @param size: Data size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size) { HAL_StatusTypeDef hal_status = HAL_OK; USBD_StatusTypeDef usb_status = USBD_OK; hal_status = HAL_PCD_EP_Receive(pdev->pData, ep_addr, pbuf, size); switch (hal_status) { case HAL_OK : usb_status = USBD_OK; break; case HAL_ERROR : usb_status = USBD_FAIL; break; case HAL_BUSY : usb_status = USBD_BUSY; break; case HAL_TIMEOUT : usb_status = USBD_FAIL; break; default : usb_status = USBD_FAIL; break; } return usb_status; } /** * @brief Returns the last transfered packet size. * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval Recived Data Size */ uint32_t USBD_LL_GetRxDataSize(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { return HAL_PCD_EP_GetRxCount((PCD_HandleTypeDef*) pdev->pData, ep_addr); } #if (USBD_LPM_ENABLED == 1) /** * @brief Send LPM message to user layer * @param hpcd: PCD handle * @param msg: LPM message * @retval None */ void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) { switch (msg) { case PCD_LPM_L0_ACTIVE: if (hpcd->Init.low_power_enable) { SystemClock_Config(); /* Reset SLEEPDEEP bit of Cortex System Control Register. */ SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); } __HAL_PCD_UNGATE_PHYCLOCK(hpcd); USBD_LL_Resume(hpcd->pData); break; case PCD_LPM_L1_ACTIVE: __HAL_PCD_GATE_PHYCLOCK(hpcd); USBD_LL_Suspend(hpcd->pData); /* Enter in STOP mode. */ if (hpcd->Init.low_power_enable) { /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register. */ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); } break; } } #endif /* (USBD_LPM_ENABLED == 1) */ /** * @brief Delays routine for the USB Device Library. * @param Delay: Delay in ms * @retval None */ void USBD_LL_Delay(uint32_t Delay) { HAL_Delay(Delay); } /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/USB_DEVICE/Target/usbd_conf.h ================================================ /** ****************************************************************************** * @file : usbd_conf.h * @version : v1.0_Cube * @brief : Header for usbd_conf.c file. ****************************************************************************** * This notice applies to any and all portions of this file * that are not between comment pairs USER CODE BEGIN and * USER CODE END. Other portions of this file, whether * inserted by the user or by software development tools * are owned by their respective copyright owners. * * Copyright (c) 2018 STMicroelectronics International N.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_CONF__H__ #define __USBD_CONF__H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include #include #include #include "stm32f4xx.h" #include "stm32f4xx_hal.h" /* USER CODE BEGIN INCLUDE */ /* USER CODE END INCLUDE */ /** @addtogroup USBD_OTG_DRIVER * @brief Driver for Usb device. * @{ */ /** @defgroup USBD_CONF USBD_CONF * @brief Configuration file for Usb otg low level driver. * @{ */ /** @defgroup USBD_CONF_Exported_Variables USBD_CONF_Exported_Variables * @brief Public variables. * @{ */ /** * @} */ /** @defgroup USBD_CONF_Exported_Defines USBD_CONF_Exported_Defines * @brief Defines for configuration of the Usb device. * @{ */ #define MS_VendorCode 'P' /*---------- -----------*/ #define USBD_MAX_NUM_INTERFACES 1 /*---------- -----------*/ #define USBD_MAX_NUM_CONFIGURATION 1 /*---------- -----------*/ #define USBD_MAX_STR_DESC_SIZ 512 /*---------- -----------*/ #define USBD_SUPPORT_USER_STRING 1 /*---------- -----------*/ #define USBD_DEBUG_LEVEL 0 /*---------- -----------*/ #define USBD_LPM_ENABLED 0 /*---------- -----------*/ #define USBD_SELF_POWERED 1 /****************************************/ /* #define for FS and HS identification */ #define DEVICE_FS 0 #define DEVICE_HS 1 /** * @} */ /** @defgroup USBD_CONF_Exported_Macros USBD_CONF_Exported_Macros * @brief Aliases. * @{ */ /* Memory management macros */ /** Alias for memory allocation. */ #define USBD_malloc malloc /** Alias for memory release. */ #define USBD_free free /** Alias for memory set. */ #define USBD_memset memset /** Alias for memory copy. */ #define USBD_memcpy memcpy /** Alias for delay. */ #define USBD_Delay HAL_Delay /* DEBUG macros */ #if (USBD_DEBUG_LEVEL > 0) #define USBD_UsrLog(...) printf(__VA_ARGS__);\ printf("\n"); #else #define USBD_UsrLog(...) #endif #if (USBD_DEBUG_LEVEL > 1) #define USBD_ErrLog(...) printf("ERROR: ") ;\ printf(__VA_ARGS__);\ printf("\n"); #else #define USBD_ErrLog(...) #endif #if (USBD_DEBUG_LEVEL > 2) #define USBD_DbgLog(...) printf("DEBUG : ") ;\ printf(__VA_ARGS__);\ printf("\n"); #else #define USBD_DbgLog(...) #endif /** * @} */ /** @defgroup USBD_CONF_Exported_Types USBD_CONF_Exported_Types * @brief Types. * @{ */ /** * @} */ /** @defgroup USBD_CONF_Exported_FunctionsPrototype USBD_CONF_Exported_FunctionsPrototype * @brief Declaration of public functions for Usb device. * @{ */ /* Exported functions -------------------------------------------------------*/ /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif /* __USBD_CONF__H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/common_inc.h ================================================ #ifndef REF_STM32F4_COMMON_INC_H #define REF_STM32F4_COMMON_INC_H #define CONFIG_FW_VERSION 1.0 /*---------------------------- C Scope ---------------------------*/ #ifdef __cplusplus extern "C" { #endif #include "FreeRTOS.h" #include "task.h" #include "main.h" #include "cmsis_os.h" #include "freertos_inc.h" #include "adc.h" #include "tim.h" #include "time_utils.h" void Main(void); extern uint64_t serialNumber; extern char serialNumberStr[13]; #ifdef __cplusplus } /*---------------------------- C++ Scope ---------------------------*/ #include "communication.hpp" #include "eeprom_interface.h" #include "U8g2lib.hpp" #include "MPU6050.hpp" #include "encoder.hpp" #include "analog.hpp" #include "pwm.hpp" #include "timer.hpp" #include "actuators/mintasca/sca.hpp" #include "actuators/ctrl_step/ctrl_step.hpp" #include "instances/dummy_robot.h" #endif #endif //REF_STM32F4_COMMON_INC_H ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/freertos_inc.h ================================================ #ifndef __FREERTOS_H #define __FREERTOS_H #ifdef __cplusplus extern "C" { #endif // List of semaphores extern osSemaphoreId sem_usb_irq; extern osSemaphoreId sem_uart4_dma; extern osSemaphoreId sem_uart5_dma; extern osSemaphoreId sem_usb_rx; extern osSemaphoreId sem_usb_tx; extern osSemaphoreId sem_can1_tx; extern osSemaphoreId sem_can2_tx; // List of Tasks /*--------------------------------- System Tasks -------------------------------------*/ extern osThreadId_t defaultTaskHandle; // Usage: 2000 Bytes stack extern osThreadId_t commTaskHandle; // Usage: 48000 Bytes stack extern osThreadId_t usbIrqTaskHandle; // Usage: 512 Bytes stack extern osThreadId_t usbServerTaskHandle; // Usage: 2048 Bytes stack extern osThreadId_t uartServerTaskHandle; // Usage: 2048 Bytes stack /*---------------------------------- User Tasks --------------------------------------*/ extern osThreadId_t oledTaskHandle; // Usage: 4000 Bytes stack extern osThreadId_t controlLoopFixUpdateHandle; // Usage: 4000 Bytes stack /*---------------- 60K (used) / 64K (for FreeRTOS on ccram) ------------------*/ #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/main.cpp ================================================ #include "common_inc.h" // On-board Screen, can choose from hi2c2 or hi2c0(soft i2c) SSD1306 oled(&hi2c0); // On-board Sensor, used hi2c1 MPU6050 mpu6050(&hi2c1); // 5 User-Timers, can choose from htim7/htim10/htim11/htim13/htim14 Timer timerCtrlLoop(&htim7, 200); // 2x2-channel PWMs, used htim9 & htim12, each has 2-channel outputs PWM pwm(21000, 21000); // Robot instance DummyRobot dummy(&hcan1); /* Thread Definitions -----------------------------------------------------*/ osThreadId_t controlLoopFixUpdateHandle; void ThreadControlLoopFixUpdate(void* argument) { for (;;) { // Suspended here until got Notification. ulTaskNotifyTake(pdTRUE, portMAX_DELAY); if (dummy.IsEnabled()) { // Send control command to Motors & update Joint states switch (dummy.commandMode) { case DummyRobot::COMMAND_TARGET_POINT_SEQUENTIAL: case DummyRobot::COMMAND_TARGET_POINT_INTERRUPTABLE: case DummyRobot::COMMAND_CONTINUES_TRAJECTORY: dummy.MoveJoints(dummy.targetJoints); dummy.UpdateJointPose6D(); break; case DummyRobot::COMMAND_MOTOR_TUNING: dummy.tuningHelper.Tick(10); dummy.UpdateJointPose6D(); break; } } else { // Just update Joint states dummy.UpdateJointAngles(); dummy.UpdateJointPose6D(); } } } osThreadId_t ControlLoopUpdateHandle; void ThreadControlLoopUpdate(void* argument) { for (;;) { dummy.commandHandler.ParseCommand(dummy.commandHandler.Pop(osWaitForever)); } } osThreadId_t oledTaskHandle; void ThreadOledUpdate(void* argument) { uint32_t t = micros(); char buf[16]; char cmdModeNames[4][4] = {"SEQ", "INT", "TRJ", "TUN"}; for (;;) { mpu6050.Update(true); oled.clearBuffer(); oled.setFont(u8g2_font_5x8_tr); oled.setCursor(0, 10); oled.printf("IMU:%.3f/%.3f", mpu6050.data.ax, mpu6050.data.ay); oled.setCursor(85, 10); oled.printf("| FPS:%lu", 1000000 / (micros() - t)); t = micros(); oled.drawBox(0, 15, 128, 3); oled.setCursor(0, 30); oled.printf(">%3d|%3d|%3d|%3d|%3d|%3d", (int) roundf(dummy.currentJoints.a[0]), (int) roundf(dummy.currentJoints.a[1]), (int) roundf(dummy.currentJoints.a[2]), (int) roundf(dummy.currentJoints.a[3]), (int) roundf(dummy.currentJoints.a[4]), (int) roundf(dummy.currentJoints.a[5])); oled.drawBox(40, 35, 128, 24); oled.setFont(u8g2_font_6x12_tr); oled.setDrawColor(0); oled.setCursor(42, 45); oled.printf("%4d|%4d|%4d", (int) roundf(dummy.currentPose6D.X), (int) roundf(dummy.currentPose6D.Y), (int) roundf(dummy.currentPose6D.Z)); oled.setCursor(42, 56); oled.printf("%4d|%4d|%4d", (int) roundf(dummy.currentPose6D.A), (int) roundf(dummy.currentPose6D.B), (int) roundf(dummy.currentPose6D.C)); oled.setDrawColor(1); oled.setCursor(0, 45); oled.printf("[XYZ]:"); oled.setCursor(0, 56); oled.printf("[ABC]:"); oled.setFont(u8g2_font_10x20_tr); oled.setCursor(0, 78); if (dummy.IsEnabled()) { for (int i = 1; i <= 6; i++) buf[i - 1] = (dummy.jointsStateFlag & (1 << i) ? '*' : '_'); buf[6] = 0; oled.printf("[%s] %s", cmdModeNames[dummy.commandMode - 1], buf); } else { oled.printf("[%s] %s", cmdModeNames[dummy.commandMode - 1], "======"); } oled.sendBuffer(); } } /* Timer Callbacks -------------------------------------------------------*/ void OnTimer7Callback() { BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Wake & invoke thread IMMEDIATELY. vTaskNotifyGiveFromISR(TaskHandle_t(controlLoopFixUpdateHandle), &xHigherPriorityTaskWoken); portYIELD_FROM_ISR(xHigherPriorityTaskWoken); } /* Default Entry -------------------------------------------------------*/ void Main(void) { // Init all communication staff, including USB-CDC/VCP/UART/CAN etc. InitCommunication(); // Init Robot. dummy.Init(); // Init IMU. do { mpu6050.Init(); osDelay(100); } while (!mpu6050.testConnection()); mpu6050.InitFilter(200, 100, 50); // Init OLED 128x80. oled.Init(); pwm.Start(); // Init & Run User Threads. const osThreadAttr_t controlLoopTask_attributes = { .name = "ControlLoopFixUpdateTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityRealtime, }; controlLoopFixUpdateHandle = osThreadNew(ThreadControlLoopFixUpdate, nullptr, &controlLoopTask_attributes); const osThreadAttr_t ControlLoopUpdateTask_attributes = { .name = "ControlLoopUpdateTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityNormal, }; ControlLoopUpdateHandle = osThreadNew(ThreadControlLoopUpdate, nullptr, &ControlLoopUpdateTask_attributes); const osThreadAttr_t oledTask_attributes = { .name = "OledTask", .stack_size = 2000, .priority = (osPriority_t) osPriorityNormal, // should >= Normal }; oledTaskHandle = osThreadNew(ThreadOledUpdate, nullptr, &oledTask_attributes); // Start Timer Callbacks. timerCtrlLoop.SetCallback(OnTimer7Callback); timerCtrlLoop.Start(); // System started, light switch-led up. Respond(*uart4StreamOutputPtr, "[sys] Heap remain: %d Bytes\n", xPortGetMinimumEverFreeHeapSize()); pwm.SetDuty(PWM::CH_A1, 0.5); } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/protocols/ascii_protocol.cpp ================================================ #include "common_inc.h" extern DummyRobot dummy; void OnUsbAsciiCmd(const char* _cmd, size_t _len, StreamSink &_responseChannel) { /*---------------------------- ↓ Add Your CMDs Here ↓ -----------------------------*/ if (_cmd[0] == '!' || !dummy.IsEnabled()) { std::string s(_cmd); if (s.find("STOP") != std::string::npos) { dummy.commandHandler.EmergencyStop(); Respond(_responseChannel, "Stopped ok"); } else if (s.find("START") != std::string::npos) { dummy.SetEnable(true); Respond(_responseChannel, "Started ok"); } else if (s.find("DISABLE") != std::string::npos) { dummy.SetEnable(false); Respond(_responseChannel, "Disabled ok"); } } else if (_cmd[0] == '#') { std::string s(_cmd); if (s.find("GETJPOS") != std::string::npos) { Respond(_responseChannel, "ok %.2f %.2f %.2f %.2f %.2f %.2f", dummy.currentJoints.a[0], dummy.currentJoints.a[1], dummy.currentJoints.a[2], dummy.currentJoints.a[3], dummy.currentJoints.a[4], dummy.currentJoints.a[5]); } else if (s.find("GETLPOS") != std::string::npos) { dummy.UpdateJointPose6D(); Respond(_responseChannel, "ok %.2f %.2f %.2f %.2f %.2f %.2f", dummy.currentPose6D.X, dummy.currentPose6D.Y, dummy.currentPose6D.Z, dummy.currentPose6D.A, dummy.currentPose6D.B, dummy.currentPose6D.C); } else if (s.find("CMDMODE") != std::string::npos) { uint32_t mode; sscanf(_cmd, "#CMDMODE %lu", &mode); dummy.SetCommandMode(mode); Respond(_responseChannel, "Set command mode to [%lu]", mode); } else Respond(_responseChannel, "ok"); } else if (_cmd[0] == '>' || _cmd[0] == '@') { uint32_t freeSize = dummy.commandHandler.Push(_cmd); Respond(_responseChannel, "%d", freeSize); } /*---------------------------- ↑ Add Your CMDs Here ↑ -----------------------------*/ } void OnUart4AsciiCmd(const char* _cmd, size_t _len, StreamSink &_responseChannel) { /*---------------------------- ↓ Add Your CMDs Here ↓ -----------------------------*/ if (_cmd[0] == '!' || !dummy.IsEnabled()) { std::string s(_cmd); if (s.find("STOP") != std::string::npos) { dummy.commandHandler.EmergencyStop(); Respond(_responseChannel, "Stopped ok"); } else if (s.find("START") != std::string::npos) { dummy.SetEnable(true); Respond(_responseChannel, "Started ok"); } else if (s.find("DISABLE") != std::string::npos) { dummy.SetEnable(false); Respond(_responseChannel, "Disabled ok"); } } else if (_cmd[0] == '#') { std::string s(_cmd); if (s.find("GETJPOS") != std::string::npos) { Respond(_responseChannel, "ok %.2f %.2f %.2f %.2f %.2f %.2f", dummy.currentJoints.a[0], dummy.currentJoints.a[1], dummy.currentJoints.a[2], dummy.currentJoints.a[3], dummy.currentJoints.a[4], dummy.currentJoints.a[5]); } else if (s.find("GETLPOS") != std::string::npos) { dummy.UpdateJointPose6D(); Respond(_responseChannel, "ok %.2f %.2f %.2f %.2f %.2f %.2f", dummy.currentPose6D.X, dummy.currentPose6D.Y, dummy.currentPose6D.Z, dummy.currentPose6D.A, dummy.currentPose6D.B, dummy.currentPose6D.C); } else if (s.find("CMDMODE") != std::string::npos) { uint32_t mode; sscanf(_cmd, "#CMDMODE %lu", &mode); dummy.SetCommandMode(mode); Respond(_responseChannel, "Set command mode to [%lu]", mode); } else Respond(_responseChannel, "ok"); } else if (_cmd[0] == '>' || _cmd[0] == '@') { uint32_t freeSize = dummy.commandHandler.Push(_cmd); Respond(_responseChannel, "%d", freeSize); } /*---------------------------- ↑ Add Your CMDs Here ↑ -----------------------------*/ } void OnUart5AsciiCmd(const char* _cmd, size_t _len, StreamSink &_responseChannel) { /*---------------------------- ↓ Add Your CMDs Here ↓ -----------------------------*/ /*---------------------------- ↑ Add Your CMDs Here ↑ -----------------------------*/ } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/protocols/can_protocol.cpp ================================================ #include "common_inc.h" // Used for response CAN message. static CAN_TxHeaderTypeDef txHeader = { .StdId = 0, .ExtId = 0, .IDE = CAN_ID_STD, .RTR = CAN_RTR_DATA, .DLC = 8, .TransmitGlobalTime = DISABLE }; extern DummyRobot dummy; void OnCanMessage(CAN_context* canCtx, CAN_RxHeaderTypeDef* rxHeader, uint8_t* data) { // Common CAN message callback, uses ID 32~0x7FF. if (canCtx->handle->Instance == CAN1) { uint8_t id = rxHeader->StdId >> 7; // 4Bits ID & 7Bits Msg uint8_t cmd = rxHeader->StdId & 0x7F; // 4Bits ID & 7Bits Msg /*----------------------- ↓ Add Your CAN1 Packet Protocol Here ↓ ------------------------*/ switch (cmd) { case 0x23: dummy.motorJ[id]->UpdateAngleCallback(*(float*) (data), data[4]); break; default: break; } dummy.UpdateJointAnglesCallback(); } else if (canCtx->handle->Instance == CAN2) { /*----------------------- ↓ Add Your CAN2 Packet Protocol Here ↓ ------------------------*/ } /*----------------------- ↑ Add Your Packet Protocol Here ↑ ------------------------*/ } ================================================ FILE: 2.Firmware/Core-STM32F4-fw/UserApp/protocols/cmd_protocol.cpp ================================================ #include "common_inc.h" /*----------------- 1.Add Your Extern Variables Here (Optional) ------------------*/ extern DummyRobot dummy; class HelperFunctions { public: /*--------------- 2.Add Your Helper Functions Helper Here (optional) ----------------*/ float GetTemperatureHelper() { return AdcGetChipTemperature(); } } staticFunctions; // Define options that intractable with "reftool". static inline auto MakeObjTree() { /*--------------- 3.Add Your Protocol Variables & Functions Here ----------------*/ return make_protocol_member_list( // Add Read-Only Variables make_protocol_ro_property("serial_number", &serialNumber), make_protocol_function("get_temperature", staticFunctions, &HelperFunctions::GetTemperatureHelper), make_protocol_object("robot", dummy.MakeProtocolDefinitions()) ); } COMMIT_PROTOCOL ================================================ FILE: 2.Firmware/Core-STM32F4-fw/startup/startup_stm32f405xx.s ================================================ /** ****************************************************************************** * @file startup_stm32f405xx.s * @author MCD Application Team * @brief STM32F405xx Devices vector table for GCC based toolchains. * This module performs: * - Set the initial SP * - Set the initial PC == Reset_Handler, * - Set the vector table entries with the exceptions ISR address * - Branches to main in the C library (which eventually * calls main()). * After Reset the Cortex-M4 processor is in Thread mode, * priority is Privileged, and the Stack is set to Main. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ .syntax unified .cpu cortex-m4 .fpu softvfp .thumb .global g_pfnVectors .global Default_Handler /* start address for the initialization values of the .data section. defined in linker script */ .word _sidata /* start address for the .data section. defined in linker script */ .word _sdata /* end address for the .data section. defined in linker script */ .word _edata /* start address for the .bss section. defined in linker script */ .word _sbss /* end address for the .bss section. defined in linker script */ .word _ebss /* stack used for SystemInit_ExtMemCtl; always internal RAM used */ /** * @brief This is the code that gets called when the processor first * starts execution following a reset event. Only the absolutely * necessary set is performed, after which the application * supplied main() routine is called. * @param None * @retval : None */ .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr sp, =_estack /* set stack pointer */ /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata ldr r1, =_edata ldr r2, =_sidata movs r3, #0 b LoopCopyDataInit CopyDataInit: ldr r4, [r2, r3] str r4, [r0, r3] adds r3, r3, #4 LoopCopyDataInit: adds r4, r0, r3 cmp r4, r1 bcc CopyDataInit /* Zero fill the bss segment. */ ldr r2, =_sbss ldr r4, =_ebss movs r3, #0 b LoopFillZerobss FillZerobss: str r3, [r2] adds r2, r2, #4 LoopFillZerobss: cmp r2, r4 bcc FillZerobss /* Call the clock system intitialization function.*/ bl SystemInit /* Call static constructors */ bl __libc_init_array /* Call the application's entry point.*/ bl main bx lr .size Reset_Handler, .-Reset_Handler /** * @brief This is the code that gets called when the processor receives an * unexpected interrupt. This simply enters an infinite loop, preserving * the system state for examination by a debugger. * @param None * @retval None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop .size Default_Handler, .-Default_Handler /****************************************************************************** * * The minimal vector table for a Cortex M3. Note that the proper constructs * must be placed on this to ensure that it ends up at physical address * 0x0000.0000. * *******************************************************************************/ .section .isr_vector,"a",%progbits .type g_pfnVectors, %object .size g_pfnVectors, .-g_pfnVectors g_pfnVectors: .word _estack .word Reset_Handler .word NMI_Handler .word HardFault_Handler .word MemManage_Handler .word BusFault_Handler .word UsageFault_Handler .word 0 .word 0 .word 0 .word 0 .word SVC_Handler .word DebugMon_Handler .word 0 .word PendSV_Handler .word SysTick_Handler /* External Interrupts */ .word WWDG_IRQHandler /* Window WatchDog */ .word PVD_IRQHandler /* PVD through EXTI Line detection */ .word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */ .word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */ .word FLASH_IRQHandler /* FLASH */ .word RCC_IRQHandler /* RCC */ .word EXTI0_IRQHandler /* EXTI Line0 */ .word EXTI1_IRQHandler /* EXTI Line1 */ .word EXTI2_IRQHandler /* EXTI Line2 */ .word EXTI3_IRQHandler /* EXTI Line3 */ .word EXTI4_IRQHandler /* EXTI Line4 */ .word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */ .word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */ .word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */ .word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */ .word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */ .word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */ .word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */ .word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */ .word CAN1_TX_IRQHandler /* CAN1 TX */ .word CAN1_RX0_IRQHandler /* CAN1 RX0 */ .word CAN1_RX1_IRQHandler /* CAN1 RX1 */ .word CAN1_SCE_IRQHandler /* CAN1 SCE */ .word EXTI9_5_IRQHandler /* External Line[9:5]s */ .word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */ .word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */ .word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */ .word TIM1_CC_IRQHandler /* TIM1 Capture Compare */ .word TIM2_IRQHandler /* TIM2 */ .word TIM3_IRQHandler /* TIM3 */ .word TIM4_IRQHandler /* TIM4 */ .word I2C1_EV_IRQHandler /* I2C1 Event */ .word I2C1_ER_IRQHandler /* I2C1 Error */ .word I2C2_EV_IRQHandler /* I2C2 Event */ .word I2C2_ER_IRQHandler /* I2C2 Error */ .word SPI1_IRQHandler /* SPI1 */ .word SPI2_IRQHandler /* SPI2 */ .word USART1_IRQHandler /* USART1 */ .word USART2_IRQHandler /* USART2 */ .word USART3_IRQHandler /* USART3 */ .word EXTI15_10_IRQHandler /* External Line[15:10]s */ .word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */ .word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */ .word TIM8_BRK_TIM12_IRQHandler /* TIM8 Break and TIM12 */ .word TIM8_UP_TIM13_IRQHandler /* TIM8 Update and TIM13 */ .word TIM8_TRG_COM_TIM14_IRQHandler /* TIM8 Trigger and Commutation and TIM14 */ .word TIM8_CC_IRQHandler /* TIM8 Capture Compare */ .word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */ .word FSMC_IRQHandler /* FSMC */ .word SDIO_IRQHandler /* SDIO */ .word TIM5_IRQHandler /* TIM5 */ .word SPI3_IRQHandler /* SPI3 */ .word UART4_IRQHandler /* UART4 */ .word UART5_IRQHandler /* UART5 */ .word TIM6_DAC_IRQHandler /* TIM6 and DAC1&2 underrun errors */ .word TIM7_IRQHandler /* TIM7 */ .word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */ .word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */ .word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */ .word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */ .word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */ .word 0 /* Reserved */ .word 0 /* Reserved */ .word CAN2_TX_IRQHandler /* CAN2 TX */ .word CAN2_RX0_IRQHandler /* CAN2 RX0 */ .word CAN2_RX1_IRQHandler /* CAN2 RX1 */ .word CAN2_SCE_IRQHandler /* CAN2 SCE */ .word OTG_FS_IRQHandler /* USB OTG FS */ .word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */ .word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */ .word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */ .word USART6_IRQHandler /* USART6 */ .word I2C3_EV_IRQHandler /* I2C3 event */ .word I2C3_ER_IRQHandler /* I2C3 error */ .word OTG_HS_EP1_OUT_IRQHandler /* USB OTG HS End Point 1 Out */ .word OTG_HS_EP1_IN_IRQHandler /* USB OTG HS End Point 1 In */ .word OTG_HS_WKUP_IRQHandler /* USB OTG HS Wakeup through EXTI */ .word OTG_HS_IRQHandler /* USB OTG HS */ .word 0 /* Reserved */ .word 0 /* Reserved */ .word HASH_RNG_IRQHandler /* Hash and Rng */ .word FPU_IRQHandler /* FPU */ /******************************************************************************* * * Provide weak aliases for each Exception handler to the Default_Handler. * As they are weak aliases, any function with the same name will override * this definition. * *******************************************************************************/ .weak NMI_Handler .thumb_set NMI_Handler,Default_Handler .weak HardFault_Handler .thumb_set HardFault_Handler,Default_Handler .weak MemManage_Handler .thumb_set MemManage_Handler,Default_Handler .weak BusFault_Handler .thumb_set BusFault_Handler,Default_Handler .weak UsageFault_Handler .thumb_set UsageFault_Handler,Default_Handler .weak SVC_Handler .thumb_set SVC_Handler,Default_Handler .weak DebugMon_Handler .thumb_set DebugMon_Handler,Default_Handler .weak PendSV_Handler .thumb_set PendSV_Handler,Default_Handler .weak SysTick_Handler .thumb_set SysTick_Handler,Default_Handler .weak WWDG_IRQHandler .thumb_set WWDG_IRQHandler,Default_Handler .weak PVD_IRQHandler .thumb_set PVD_IRQHandler,Default_Handler .weak TAMP_STAMP_IRQHandler .thumb_set TAMP_STAMP_IRQHandler,Default_Handler .weak RTC_WKUP_IRQHandler .thumb_set RTC_WKUP_IRQHandler,Default_Handler .weak FLASH_IRQHandler .thumb_set FLASH_IRQHandler,Default_Handler .weak RCC_IRQHandler .thumb_set RCC_IRQHandler,Default_Handler .weak EXTI0_IRQHandler .thumb_set EXTI0_IRQHandler,Default_Handler .weak EXTI1_IRQHandler .thumb_set EXTI1_IRQHandler,Default_Handler .weak EXTI2_IRQHandler .thumb_set EXTI2_IRQHandler,Default_Handler .weak EXTI3_IRQHandler .thumb_set EXTI3_IRQHandler,Default_Handler .weak EXTI4_IRQHandler .thumb_set EXTI4_IRQHandler,Default_Handler .weak DMA1_Stream0_IRQHandler .thumb_set DMA1_Stream0_IRQHandler,Default_Handler .weak DMA1_Stream1_IRQHandler .thumb_set DMA1_Stream1_IRQHandler,Default_Handler .weak DMA1_Stream2_IRQHandler .thumb_set DMA1_Stream2_IRQHandler,Default_Handler .weak DMA1_Stream3_IRQHandler .thumb_set DMA1_Stream3_IRQHandler,Default_Handler .weak DMA1_Stream4_IRQHandler .thumb_set DMA1_Stream4_IRQHandler,Default_Handler .weak DMA1_Stream5_IRQHandler .thumb_set DMA1_Stream5_IRQHandler,Default_Handler .weak DMA1_Stream6_IRQHandler .thumb_set DMA1_Stream6_IRQHandler,Default_Handler .weak ADC_IRQHandler .thumb_set ADC_IRQHandler,Default_Handler .weak CAN1_TX_IRQHandler .thumb_set CAN1_TX_IRQHandler,Default_Handler .weak CAN1_RX0_IRQHandler .thumb_set CAN1_RX0_IRQHandler,Default_Handler .weak CAN1_RX1_IRQHandler .thumb_set CAN1_RX1_IRQHandler,Default_Handler .weak CAN1_SCE_IRQHandler .thumb_set CAN1_SCE_IRQHandler,Default_Handler .weak EXTI9_5_IRQHandler .thumb_set EXTI9_5_IRQHandler,Default_Handler .weak TIM1_BRK_TIM9_IRQHandler .thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler .weak TIM1_UP_TIM10_IRQHandler .thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler .weak TIM1_TRG_COM_TIM11_IRQHandler .thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler .weak TIM1_CC_IRQHandler .thumb_set TIM1_CC_IRQHandler,Default_Handler .weak TIM2_IRQHandler .thumb_set TIM2_IRQHandler,Default_Handler .weak TIM3_IRQHandler .thumb_set TIM3_IRQHandler,Default_Handler .weak TIM4_IRQHandler .thumb_set TIM4_IRQHandler,Default_Handler .weak I2C1_EV_IRQHandler .thumb_set I2C1_EV_IRQHandler,Default_Handler .weak I2C1_ER_IRQHandler .thumb_set I2C1_ER_IRQHandler,Default_Handler .weak I2C2_EV_IRQHandler .thumb_set I2C2_EV_IRQHandler,Default_Handler .weak I2C2_ER_IRQHandler .thumb_set I2C2_ER_IRQHandler,Default_Handler .weak SPI1_IRQHandler .thumb_set SPI1_IRQHandler,Default_Handler .weak SPI2_IRQHandler .thumb_set SPI2_IRQHandler,Default_Handler .weak USART1_IRQHandler .thumb_set USART1_IRQHandler,Default_Handler .weak USART2_IRQHandler .thumb_set USART2_IRQHandler,Default_Handler .weak USART3_IRQHandler .thumb_set USART3_IRQHandler,Default_Handler .weak EXTI15_10_IRQHandler .thumb_set EXTI15_10_IRQHandler,Default_Handler .weak RTC_Alarm_IRQHandler .thumb_set RTC_Alarm_IRQHandler,Default_Handler .weak OTG_FS_WKUP_IRQHandler .thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler .weak TIM8_BRK_TIM12_IRQHandler .thumb_set TIM8_BRK_TIM12_IRQHandler,Default_Handler .weak TIM8_UP_TIM13_IRQHandler .thumb_set TIM8_UP_TIM13_IRQHandler,Default_Handler .weak TIM8_TRG_COM_TIM14_IRQHandler .thumb_set TIM8_TRG_COM_TIM14_IRQHandler,Default_Handler .weak TIM8_CC_IRQHandler .thumb_set TIM8_CC_IRQHandler,Default_Handler .weak DMA1_Stream7_IRQHandler .thumb_set DMA1_Stream7_IRQHandler,Default_Handler .weak FSMC_IRQHandler .thumb_set FSMC_IRQHandler,Default_Handler .weak SDIO_IRQHandler .thumb_set SDIO_IRQHandler,Default_Handler .weak TIM5_IRQHandler .thumb_set TIM5_IRQHandler,Default_Handler .weak SPI3_IRQHandler .thumb_set SPI3_IRQHandler,Default_Handler .weak UART4_IRQHandler .thumb_set UART4_IRQHandler,Default_Handler .weak UART5_IRQHandler .thumb_set UART5_IRQHandler,Default_Handler .weak TIM6_DAC_IRQHandler .thumb_set TIM6_DAC_IRQHandler,Default_Handler .weak TIM7_IRQHandler .thumb_set TIM7_IRQHandler,Default_Handler .weak DMA2_Stream0_IRQHandler .thumb_set DMA2_Stream0_IRQHandler,Default_Handler .weak DMA2_Stream1_IRQHandler .thumb_set DMA2_Stream1_IRQHandler,Default_Handler .weak DMA2_Stream2_IRQHandler .thumb_set DMA2_Stream2_IRQHandler,Default_Handler .weak DMA2_Stream3_IRQHandler .thumb_set DMA2_Stream3_IRQHandler,Default_Handler .weak DMA2_Stream4_IRQHandler .thumb_set DMA2_Stream4_IRQHandler,Default_Handler .weak CAN2_TX_IRQHandler .thumb_set CAN2_TX_IRQHandler,Default_Handler .weak CAN2_RX0_IRQHandler .thumb_set CAN2_RX0_IRQHandler,Default_Handler .weak CAN2_RX1_IRQHandler .thumb_set CAN2_RX1_IRQHandler,Default_Handler .weak CAN2_SCE_IRQHandler .thumb_set CAN2_SCE_IRQHandler,Default_Handler .weak OTG_FS_IRQHandler .thumb_set OTG_FS_IRQHandler,Default_Handler .weak DMA2_Stream5_IRQHandler .thumb_set DMA2_Stream5_IRQHandler,Default_Handler .weak DMA2_Stream6_IRQHandler .thumb_set DMA2_Stream6_IRQHandler,Default_Handler .weak DMA2_Stream7_IRQHandler .thumb_set DMA2_Stream7_IRQHandler,Default_Handler .weak USART6_IRQHandler .thumb_set USART6_IRQHandler,Default_Handler .weak I2C3_EV_IRQHandler .thumb_set I2C3_EV_IRQHandler,Default_Handler .weak I2C3_ER_IRQHandler .thumb_set I2C3_ER_IRQHandler,Default_Handler .weak OTG_HS_EP1_OUT_IRQHandler .thumb_set OTG_HS_EP1_OUT_IRQHandler,Default_Handler .weak OTG_HS_EP1_IN_IRQHandler .thumb_set OTG_HS_EP1_IN_IRQHandler,Default_Handler .weak OTG_HS_WKUP_IRQHandler .thumb_set OTG_HS_WKUP_IRQHandler,Default_Handler .weak OTG_HS_IRQHandler .thumb_set OTG_HS_IRQHandler,Default_Handler .weak HASH_RNG_IRQHandler .thumb_set HASH_RNG_IRQHandler,Default_Handler .weak FPU_IRQHandler .thumb_set FPU_IRQHandler,Default_Handler /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Core-STM32F4-fw/stlink.cfg ================================================ # choose st-link/j-link/dap-link etc. #adapter driver cmsis-dap #transport select swd source [find interface/stlink.cfg] transport select hla_swd # 0x10000 = 64K Flash Size # set FLASH_SIZE 0x100000 source [find target/stm32f4x.cfg] # download speed = 1MHz adapter speed 10000 ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.cproject ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.gitignore ================================================ cmake-build-*/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/.gitignore ================================================ # Default ignored files /shelf/ /workspace.xml # Editor-based HTTP Client requests /httpRequests/ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/.name ================================================ Ctrl-Step-STM32-fw ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/Ctrl-Step-fw.iml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/codeStyles/codeStyleConfig.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/copyright/ctrl_step.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/copyright/profiles_settings.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/deployment.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/encodings.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/inspectionProfiles/Project_Default.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/misc.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/modules.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/serialmonitor_settings.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.idea/vcs.xml ================================================ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.mxproject ================================================ [PreviousLibFiles] LibFiles=Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h; [PreviousUsedSW4STM32Files] SourceFiles=..\Core\Src\main.c;..\Core\Src\gpio.c;..\Core\Src\adc.c;..\Core\Src\can.c;..\Core\Src\dma.c;..\Core\Src\spi.c;..\Core\Src\tim.c;..\Core\Src\usart.c;..\Core\Src\stm32f1xx_it.c;..\Core\Src\stm32f1xx_hal_msp.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c;..\Core\Src/system_stm32f1xx.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;..\Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c;..\Core\Src/system_stm32f1xx.c;..\Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;; HeaderPath=..\Drivers\STM32F1xx_HAL_Driver\Inc;..\Drivers\STM32F1xx_HAL_Driver\Inc\Legacy;..\Drivers\CMSIS\Device\ST\STM32F1xx\Include;..\Drivers\CMSIS\Include;..\Core\Inc; CDefines=USE_HAL_DRIVER;STM32F103xB;USE_HAL_DRIVER;USE_HAL_DRIVER; [PreviousGenFiles] AdvancedFolderStructure=true HeaderFileListSize=10 HeaderFiles#0=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/gpio.h HeaderFiles#1=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/adc.h HeaderFiles#2=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/can.h HeaderFiles#3=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/dma.h HeaderFiles#4=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/spi.h HeaderFiles#5=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/tim.h HeaderFiles#6=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/usart.h HeaderFiles#7=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/stm32f1xx_it.h HeaderFiles#8=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/stm32f1xx_hal_conf.h HeaderFiles#9=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc/main.h HeaderFolderListSize=1 HeaderPath#0=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Inc HeaderFiles=; SourceFileListSize=10 SourceFiles#0=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/gpio.c SourceFiles#1=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/adc.c SourceFiles#2=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/can.c SourceFiles#3=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/dma.c SourceFiles#4=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/spi.c SourceFiles#5=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/tim.c SourceFiles#6=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/usart.c SourceFiles#7=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/stm32f1xx_it.c SourceFiles#8=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/stm32f1xx_hal_msp.c SourceFiles#9=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src/main.c SourceFolderListSize=1 SourcePath#0=I:/onWorking/_Private/Ctrl-Step-Drive/2.Firmware/Ctrl-Step-STM32-fw/Core/Src SourceFiles=; ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/.project ================================================ Ctrl-Step-fw org.eclipse.cdt.managedbuilder.core.genmakebuilder clean,full,incremental, org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder full,incremental, org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature fr.ac6.mcu.ide.core.MCUProjectNature ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/CMakeLists.txt ================================================ #THIS FILE IS AUTO GENERATED FROM THE TEMPLATE! DO NOT CHANGE! set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_VERSION 1) cmake_minimum_required(VERSION 3.20) # specify cross compilers and tools set(CMAKE_C_COMPILER arm-none-eabi-gcc) set(CMAKE_CXX_COMPILER arm-none-eabi-g++) set(CMAKE_ASM_COMPILER arm-none-eabi-gcc) set(CMAKE_AR arm-none-eabi-ar) set(CMAKE_OBJCOPY arm-none-eabi-objcopy) set(CMAKE_OBJDUMP arm-none-eabi-objdump) set(SIZE arm-none-eabi-size) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # project settings project(Ctrl-Step-STM32-fw C CXX ASM) set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_STANDARD 11) #Uncomment for hardware floating point #add_compile_definitions(ARM_MATH_CM4;ARM_MATH_MATRIX_CHECK;ARM_MATH_ROUNDING) #add_compile_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #add_link_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #Uncomment for software floating point #add_compile_options(-mfloat-abi=soft) add_compile_options(-mcpu=cortex-m3 -mthumb -mthumb-interwork) add_compile_options(-ffunction-sections -fdata-sections -fno-common -fmessage-length=0) # uncomment to mitigate c++17 absolute addresses warnings #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-register") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") message(STATUS "Maximum optimization for speed") add_compile_options(-Ofast) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") message(STATUS "Maximum optimization for speed, debug info included") add_compile_options(-Ofast -g) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel") message(STATUS "Maximum optimization for size") add_compile_options(-Os) else () message(STATUS "Minimal optimization, debug info included") add_compile_options(-Og -g) endif () include_directories( Core/Inc Drivers/STM32F1xx_HAL_Driver/Inc Drivers/STM32F1xx_HAL_Driver/Inc/Legacy Drivers/CMSIS/Device/ST/STM32F1xx/Include Drivers/CMSIS/Include Ctrl Ctrl/Sensor Ctrl/Signal Ctrl/LowLevel Ctrl/MotorControl UserApp Port ) add_definitions(-DUSE_HAL_DRIVER -D__MICROLIB -DSTM32F1 -DSTM32F1xx -DSTM32F103xB) file(GLOB_RECURSE SOURCES "startup/*.*" "Drivers/*.*" "Core/*.*" "Ctrl/*.*" "UserApp/*.*" "Port/*.*" ) set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F103CBTx_FLASH.ld) add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map) add_link_options(-mcpu=cortex-m3 -mthumb -mthumb-interwork) add_link_options(-T ${LINKER_SCRIPT}) add_executable(${PROJECT_NAME}.elf ${SOURCES} ${LINKER_SCRIPT}) set(HEX_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.hex) set(BIN_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.bin) add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex $ ${HEX_FILE} COMMAND ${CMAKE_OBJCOPY} -Obinary $ ${BIN_FILE} COMMENT "Building ${HEX_FILE} Building ${BIN_FILE}") ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/CMakeLists_template.txt ================================================ #THIS FILE IS AUTO GENERATED FROM THE TEMPLATE! DO NOT CHANGE! set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_VERSION 1) cmake_minimum_required(VERSION 3.20) # specify cross compilers and tools set(CMAKE_C_COMPILER arm-none-eabi-gcc) set(CMAKE_CXX_COMPILER arm-none-eabi-g++) set(CMAKE_ASM_COMPILER arm-none-eabi-gcc) set(CMAKE_AR arm-none-eabi-ar) set(CMAKE_OBJCOPY arm-none-eabi-objcopy) set(CMAKE_OBJDUMP arm-none-eabi-objdump) set(SIZE arm-none-eabi-size) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # project settings project(Ctrl-Step-STM32-fw C CXX ASM) set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_STANDARD 11) #Uncomment for hardware floating point #add_compile_definitions(ARM_MATH_CM4;ARM_MATH_MATRIX_CHECK;ARM_MATH_ROUNDING) #add_compile_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #add_link_options(-mfloat-abi=hard -mfpu=fpv4-sp-d16) #Uncomment for software floating point #add_compile_options(-mfloat-abi=soft) add_compile_options(-mcpu=cortex-m3 -mthumb -mthumb-interwork) add_compile_options(-ffunction-sections -fdata-sections -fno-common -fmessage-length=0) # uncomment to mitigate c++17 absolute addresses warnings #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-register") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") message(STATUS "Maximum optimization for speed") add_compile_options(-Ofast) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") message(STATUS "Maximum optimization for speed, debug info included") add_compile_options(-Ofast -g) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel") message(STATUS "Maximum optimization for size") add_compile_options(-Os) else () message(STATUS "Minimal optimization, debug info included") add_compile_options(-Og -g) endif () include_directories( Core/Inc Drivers/STM32F1xx_HAL_Driver/Inc Drivers/STM32F1xx_HAL_Driver/Inc/Legacy Drivers/CMSIS/Device/ST/STM32F1xx/Include Drivers/CMSIS/Include Ctrl Ctrl/Sensor Ctrl/Signal Ctrl/LowLevel Ctrl/MotorControl UserApp Port ) add_definitions(-DUSE_HAL_DRIVER -D__MICROLIB -DSTM32F1 -DSTM32F1xx -DSTM32F103xB) file(GLOB_RECURSE SOURCES "startup/*.*" "Drivers/*.*" "Core/*.*" "Ctrl/*.*" "UserApp/*.*" "Port/*.*" ) set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F103CBTx_FLASH.ld) add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map) add_link_options(-mcpu=cortex-m3 -mthumb -mthumb-interwork) add_link_options(-T ${LINKER_SCRIPT}) add_executable(${PROJECT_NAME}.elf ${SOURCES} ${LINKER_SCRIPT}) set(HEX_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.hex) set(BIN_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.bin) add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex $ ${HEX_FILE} COMMAND ${CMAKE_OBJCOPY} -Obinary $ ${BIN_FILE} COMMENT "Building ${HEX_FILE} Building ${BIN_FILE}") ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/adc.h ================================================ /** ****************************************************************************** * @file adc.h * @brief This file contains all the function prototypes for * the adc.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __ADC_H__ #define __ADC_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern ADC_HandleTypeDef hadc1; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_ADC1_Init(void); /* USER CODE BEGIN Prototypes */ extern uint16_t whole_adc_data[2][12]; /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __ADC_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/can.h ================================================ /** ****************************************************************************** * @file can.h * @brief This file contains all the function prototypes for * the can.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __CAN_H__ #define __CAN_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ extern CAN_HandleTypeDef hcan; extern CAN_TxHeaderTypeDef TxHeader; extern CAN_RxHeaderTypeDef RxHeader; extern uint8_t TxData[8]; extern uint8_t RxData[8]; extern uint32_t TxMailbox; /* USER CODE END Includes */ extern CAN_HandleTypeDef hcan; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_CAN_Init(void); /* USER CODE BEGIN Prototypes */ void CAN_Send(CAN_TxHeaderTypeDef* pHeader, uint8_t* data); /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __CAN_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/dma.h ================================================ /** ****************************************************************************** * @file dma.h * @brief This file contains all the function prototypes for * the dma.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __DMA_H__ #define __DMA_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* DMA memory to memory transfer handles -------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_DMA_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __DMA_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/gpio.h ================================================ /** ****************************************************************************** * @file gpio.h * @brief This file contains all the function prototypes for * the gpio.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __GPIO_H__ #define __GPIO_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_GPIO_Init(void); /* USER CODE BEGIN Prototypes */ /********** Button **********/ /********** Button **********/ /********** Button **********/ void REIN_GPIO_Button_Init(void); //GPIO初始??(Button) /********** HwElec **********/ /********** HwElec **********/ /********** HwElec **********/ void REIN_GPIO_HwElec_Init(void); //GPIO初始??(HwElec) /********** MT6816Base **********/ /********** MT6816Base **********/ /********** MT6816Base **********/ void REIN_GPIO_MT6816_ABZ_Init(void); //GPIO初始??(MT6816_ABZ) void REIN_GPIO_MT6816_SPI_Init(void); //GPIO初始??(MT6916_SPI) /********** Modbus **********/ /********** Modbus **********/ /********** Modbus **********/ void REIN_GPIO_Modbus_Init(void); //GPIO初始??(Modbus) /********** OLED **********/ /********** OLED **********/ /********** OLED **********/ void REIN_GPIO_OLED_Init(void); //GPIO初始??(OLED) /********** SIGNAL **********/ /********** SIGNAL **********/ /********** SIGNAL **********/ void REIN_GPIO_SIGNAL_COUNT_Init(void); //GPIO初始??(SIGNAL_COUNT) void REIN_GPIO_SIGNAL_COUNT_DeInit(void); //GPIO清理(SIGNAL_COUNT) void REIN_GPIO_SIGNAL_PWM_Init(void); //GPIO初始??(SIGNAL_PWM) void REIN_GPIO_SIGNAL_PWM_DeInit(void); //GPIO清理(SIGNAL_PWM) /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /*__ GPIO_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/main.h ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f1xx_hal.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void Error_Handler(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ #define LED1_Pin GPIO_PIN_13 #define LED1_GPIO_Port GPIOC #define LED2_Pin GPIO_PIN_14 #define LED2_GPIO_Port GPIOC #define POWER_U_Pin GPIO_PIN_0 #define POWER_U_GPIO_Port GPIOA #define DRV_TEMP_Pin GPIO_PIN_1 #define DRV_TEMP_GPIO_Port GPIOA #define HW_ELEC_BM_Pin GPIO_PIN_2 #define HW_ELEC_BM_GPIO_Port GPIOA #define HW_ELEC_BP_Pin GPIO_PIN_3 #define HW_ELEC_BP_GPIO_Port GPIOA #define HW_ELEC_AM_Pin GPIO_PIN_4 #define HW_ELEC_AM_GPIO_Port GPIOA #define HW_ELEC_AP_Pin GPIO_PIN_5 #define HW_ELEC_AP_GPIO_Port GPIOA #define SIGNAL_COUNT_DIR_Pin GPIO_PIN_7 #define SIGNAL_COUNT_DIR_GPIO_Port GPIOA #define SIGNAL_COUNT_DIR_EXTI_IRQn EXTI9_5_IRQn #define SIGNAL_COUNT_EN_Pin GPIO_PIN_0 #define SIGNAL_COUNT_EN_GPIO_Port GPIOB #define SIGNAL_ALERT_Pin GPIO_PIN_1 #define SIGNAL_ALERT_GPIO_Port GPIOB #define BUTTON2_Pin GPIO_PIN_2 #define BUTTON2_GPIO_Port GPIOB #define HW_ELEC_BPWM_Pin GPIO_PIN_10 #define HW_ELEC_BPWM_GPIO_Port GPIOB #define HW_ELEC_APWM_Pin GPIO_PIN_11 #define HW_ELEC_APWM_GPIO_Port GPIOB #define BUTTON1_Pin GPIO_PIN_12 #define BUTTON1_GPIO_Port GPIOB #define SPI1_CS_Pin GPIO_PIN_15 #define SPI1_CS_GPIO_Port GPIOA /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/spi.h ================================================ /** ****************************************************************************** * @file spi.h * @brief This file contains all the function prototypes for * the spi.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __SPI_H__ #define __SPI_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern SPI_HandleTypeDef hspi1; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_SPI1_Init(void); /* USER CODE BEGIN Prototypes */ /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __SPI_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/stm32f1xx_hal_conf.h ================================================ /** ****************************************************************************** * @file stm32f1xx_hal_conf.h * @brief HAL configuration file. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F1xx_HAL_CONF_H #define __STM32F1xx_HAL_CONF_H #ifdef __cplusplus extern "C" { #endif /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* ########################## Module Selection ############################## */ /** * @brief This is the list of modules to be used in the HAL driver */ #define HAL_MODULE_ENABLED #define HAL_ADC_MODULE_ENABLED /*#define HAL_CRYP_MODULE_ENABLED */ #define HAL_CAN_MODULE_ENABLED /*#define HAL_CAN_LEGACY_MODULE_ENABLED */ /*#define HAL_CEC_MODULE_ENABLED */ /*#define HAL_CORTEX_MODULE_ENABLED */ /*#define HAL_CRC_MODULE_ENABLED */ /*#define HAL_DAC_MODULE_ENABLED */ #define HAL_DMA_MODULE_ENABLED /*#define HAL_ETH_MODULE_ENABLED */ /*#define HAL_FLASH_MODULE_ENABLED */ #define HAL_GPIO_MODULE_ENABLED /*#define HAL_I2C_MODULE_ENABLED */ /*#define HAL_I2S_MODULE_ENABLED */ /*#define HAL_IRDA_MODULE_ENABLED */ /*#define HAL_IWDG_MODULE_ENABLED */ /*#define HAL_NOR_MODULE_ENABLED */ /*#define HAL_NAND_MODULE_ENABLED */ /*#define HAL_PCCARD_MODULE_ENABLED */ /*#define HAL_PCD_MODULE_ENABLED */ /*#define HAL_HCD_MODULE_ENABLED */ /*#define HAL_PWR_MODULE_ENABLED */ /*#define HAL_RCC_MODULE_ENABLED */ /*#define HAL_RTC_MODULE_ENABLED */ /*#define HAL_SD_MODULE_ENABLED */ /*#define HAL_MMC_MODULE_ENABLED */ /*#define HAL_SDRAM_MODULE_ENABLED */ /*#define HAL_SMARTCARD_MODULE_ENABLED */ #define HAL_SPI_MODULE_ENABLED /*#define HAL_SRAM_MODULE_ENABLED */ #define HAL_TIM_MODULE_ENABLED #define HAL_UART_MODULE_ENABLED /*#define HAL_USART_MODULE_ENABLED */ /*#define HAL_WWDG_MODULE_ENABLED */ #define HAL_CORTEX_MODULE_ENABLED #define HAL_DMA_MODULE_ENABLED #define HAL_FLASH_MODULE_ENABLED #define HAL_EXTI_MODULE_ENABLED #define HAL_GPIO_MODULE_ENABLED #define HAL_PWR_MODULE_ENABLED #define HAL_RCC_MODULE_ENABLED /* ########################## Oscillator Values adaptation ####################*/ /** * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. * This value is used by the RCC HAL module to compute the system frequency * (when HSE is used as system clock source, directly or through the PLL). */ #if !defined (HSE_VALUE) #define HSE_VALUE 12000000U /*!< Value of the External oscillator in Hz */ #endif /* HSE_VALUE */ #if !defined (HSE_STARTUP_TIMEOUT) #define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */ #endif /* HSE_STARTUP_TIMEOUT */ /** * @brief Internal High Speed oscillator (HSI) value. * This value is used by the RCC HAL module to compute the system frequency * (when HSI is used as system clock source, directly or through the PLL). */ #if !defined (HSI_VALUE) #define HSI_VALUE 8000000U /*!< Value of the Internal oscillator in Hz*/ #endif /* HSI_VALUE */ /** * @brief Internal Low Speed oscillator (LSI) value. */ #if !defined (LSI_VALUE) #define LSI_VALUE 40000U /*!< LSI Typical Value in Hz */ #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz The real value may vary depending on the variations in voltage and temperature. */ /** * @brief External Low Speed oscillator (LSE) value. * This value is used by the UART, RTC HAL module to compute the system frequency */ #if !defined (LSE_VALUE) #define LSE_VALUE 32768U /*!< Value of the External oscillator in Hz*/ #endif /* LSE_VALUE */ #if !defined (LSE_STARTUP_TIMEOUT) #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */ #endif /* LSE_STARTUP_TIMEOUT */ /* Tip: To avoid modifying this file each time you need to use different HSE, === you can define the HSE value in your toolchain compiler preprocessor. */ /* ########################### System Configuration ######################### */ /** * @brief This is the HAL system configuration section */ #define VDD_VALUE 3300U /*!< Value of VDD in mv */ #define TICK_INT_PRIORITY 3U /*!< tick interrupt priority (lowest by default) */ #define USE_RTOS 0U #define PREFETCH_ENABLE 1U #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */ #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */ #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */ #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */ #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */ #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */ #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */ #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */ #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */ #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */ #define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */ #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */ #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */ #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */ #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */ #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */ #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */ #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */ #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */ #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */ #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */ #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */ /* ########################## Assert Selection ############################## */ /** * @brief Uncomment the line below to expanse the "assert_param" macro in the * HAL drivers code */ /* #define USE_FULL_ASSERT 1U */ /* ################## Ethernet peripheral configuration ##################### */ /* Section 1 : Ethernet peripheral configuration */ /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */ #define MAC_ADDR0 2U #define MAC_ADDR1 0U #define MAC_ADDR2 0U #define MAC_ADDR3 0U #define MAC_ADDR4 0U #define MAC_ADDR5 0U /* Definition of the Ethernet driver buffers size and count */ #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ #define ETH_RXBUFNB 8U /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ #define ETH_TXBUFNB 4U /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ /* Section 2: PHY configuration section */ /* DP83848_PHY_ADDRESS Address*/ #define DP83848_PHY_ADDRESS 0x01U /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ #define PHY_RESET_DELAY 0x000000FFU /* PHY Configuration delay */ #define PHY_CONFIG_DELAY 0x00000FFFU #define PHY_READ_TO 0x0000FFFFU #define PHY_WRITE_TO 0x0000FFFFU /* Section 3: Common PHY Registers */ #define PHY_BCR ((uint16_t)0x00) /*!< Transceiver Basic Control Register */ #define PHY_BSR ((uint16_t)0x01) /*!< Transceiver Basic Status Register */ #define PHY_RESET ((uint16_t)0x8000) /*!< PHY Reset */ #define PHY_LOOPBACK ((uint16_t)0x4000) /*!< Select loop-back mode */ #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100) /*!< Set the full-duplex mode at 100 Mb/s */ #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000) /*!< Set the half-duplex mode at 100 Mb/s */ #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100) /*!< Set the full-duplex mode at 10 Mb/s */ #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000) /*!< Set the half-duplex mode at 10 Mb/s */ #define PHY_AUTONEGOTIATION ((uint16_t)0x1000) /*!< Enable auto-negotiation function */ #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200) /*!< Restart auto-negotiation function */ #define PHY_POWERDOWN ((uint16_t)0x0800) /*!< Select the power down mode */ #define PHY_ISOLATE ((uint16_t)0x0400) /*!< Isolate PHY from MII */ #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020) /*!< Auto-Negotiation process completed */ #define PHY_LINKED_STATUS ((uint16_t)0x0004) /*!< Valid link established */ #define PHY_JABBER_DETECTION ((uint16_t)0x0002) /*!< Jabber condition detected */ /* Section 4: Extended PHY Registers */ #define PHY_SR ((uint16_t)0x10U) /*!< PHY status register Offset */ #define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */ #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */ /* ################## SPI peripheral configuration ########################## */ /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver * Activated: CRC code is present inside driver * Deactivated: CRC code cleaned from driver */ #define USE_SPI_CRC 0U /* Includes ------------------------------------------------------------------*/ /** * @brief Include module's header file */ #ifdef HAL_RCC_MODULE_ENABLED #include "stm32f1xx_hal_rcc.h" #endif /* HAL_RCC_MODULE_ENABLED */ #ifdef HAL_GPIO_MODULE_ENABLED #include "stm32f1xx_hal_gpio.h" #endif /* HAL_GPIO_MODULE_ENABLED */ #ifdef HAL_EXTI_MODULE_ENABLED #include "stm32f1xx_hal_exti.h" #endif /* HAL_EXTI_MODULE_ENABLED */ #ifdef HAL_DMA_MODULE_ENABLED #include "stm32f1xx_hal_dma.h" #endif /* HAL_DMA_MODULE_ENABLED */ #ifdef HAL_ETH_MODULE_ENABLED #include "stm32f1xx_hal_eth.h" #endif /* HAL_ETH_MODULE_ENABLED */ #ifdef HAL_CAN_MODULE_ENABLED #include "stm32f1xx_hal_can.h" #endif /* HAL_CAN_MODULE_ENABLED */ #ifdef HAL_CAN_LEGACY_MODULE_ENABLED #include "Legacy/stm32f1xx_hal_can_legacy.h" #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */ #ifdef HAL_CEC_MODULE_ENABLED #include "stm32f1xx_hal_cec.h" #endif /* HAL_CEC_MODULE_ENABLED */ #ifdef HAL_CORTEX_MODULE_ENABLED #include "stm32f1xx_hal_cortex.h" #endif /* HAL_CORTEX_MODULE_ENABLED */ #ifdef HAL_ADC_MODULE_ENABLED #include "stm32f1xx_hal_adc.h" #endif /* HAL_ADC_MODULE_ENABLED */ #ifdef HAL_CRC_MODULE_ENABLED #include "stm32f1xx_hal_crc.h" #endif /* HAL_CRC_MODULE_ENABLED */ #ifdef HAL_DAC_MODULE_ENABLED #include "stm32f1xx_hal_dac.h" #endif /* HAL_DAC_MODULE_ENABLED */ #ifdef HAL_FLASH_MODULE_ENABLED #include "stm32f1xx_hal_flash.h" #endif /* HAL_FLASH_MODULE_ENABLED */ #ifdef HAL_SRAM_MODULE_ENABLED #include "stm32f1xx_hal_sram.h" #endif /* HAL_SRAM_MODULE_ENABLED */ #ifdef HAL_NOR_MODULE_ENABLED #include "stm32f1xx_hal_nor.h" #endif /* HAL_NOR_MODULE_ENABLED */ #ifdef HAL_I2C_MODULE_ENABLED #include "stm32f1xx_hal_i2c.h" #endif /* HAL_I2C_MODULE_ENABLED */ #ifdef HAL_I2S_MODULE_ENABLED #include "stm32f1xx_hal_i2s.h" #endif /* HAL_I2S_MODULE_ENABLED */ #ifdef HAL_IWDG_MODULE_ENABLED #include "stm32f1xx_hal_iwdg.h" #endif /* HAL_IWDG_MODULE_ENABLED */ #ifdef HAL_PWR_MODULE_ENABLED #include "stm32f1xx_hal_pwr.h" #endif /* HAL_PWR_MODULE_ENABLED */ #ifdef HAL_RTC_MODULE_ENABLED #include "stm32f1xx_hal_rtc.h" #endif /* HAL_RTC_MODULE_ENABLED */ #ifdef HAL_PCCARD_MODULE_ENABLED #include "stm32f1xx_hal_pccard.h" #endif /* HAL_PCCARD_MODULE_ENABLED */ #ifdef HAL_SD_MODULE_ENABLED #include "stm32f1xx_hal_sd.h" #endif /* HAL_SD_MODULE_ENABLED */ #ifdef HAL_NAND_MODULE_ENABLED #include "stm32f1xx_hal_nand.h" #endif /* HAL_NAND_MODULE_ENABLED */ #ifdef HAL_SPI_MODULE_ENABLED #include "stm32f1xx_hal_spi.h" #endif /* HAL_SPI_MODULE_ENABLED */ #ifdef HAL_TIM_MODULE_ENABLED #include "stm32f1xx_hal_tim.h" #endif /* HAL_TIM_MODULE_ENABLED */ #ifdef HAL_UART_MODULE_ENABLED #include "stm32f1xx_hal_uart.h" #endif /* HAL_UART_MODULE_ENABLED */ #ifdef HAL_USART_MODULE_ENABLED #include "stm32f1xx_hal_usart.h" #endif /* HAL_USART_MODULE_ENABLED */ #ifdef HAL_IRDA_MODULE_ENABLED #include "stm32f1xx_hal_irda.h" #endif /* HAL_IRDA_MODULE_ENABLED */ #ifdef HAL_SMARTCARD_MODULE_ENABLED #include "stm32f1xx_hal_smartcard.h" #endif /* HAL_SMARTCARD_MODULE_ENABLED */ #ifdef HAL_WWDG_MODULE_ENABLED #include "stm32f1xx_hal_wwdg.h" #endif /* HAL_WWDG_MODULE_ENABLED */ #ifdef HAL_PCD_MODULE_ENABLED #include "stm32f1xx_hal_pcd.h" #endif /* HAL_PCD_MODULE_ENABLED */ #ifdef HAL_HCD_MODULE_ENABLED #include "stm32f1xx_hal_hcd.h" #endif /* HAL_HCD_MODULE_ENABLED */ #ifdef HAL_MMC_MODULE_ENABLED #include "stm32f1xx_hal_mmc.h" #endif /* HAL_MMC_MODULE_ENABLED */ /* Exported macro ------------------------------------------------------------*/ #ifdef USE_FULL_ASSERT /** * @brief The assert_param macro is used for function's parameters check. * @param expr If expr is false, it calls assert_failed function * which reports the name of the source file and the source * line number of the call that failed. * If expr is true, it returns no value. * @retval None */ #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) /* Exported functions ------------------------------------------------------- */ void assert_failed(uint8_t* file, uint32_t line); #else #define assert_param(expr) ((void)0U) #endif /* USE_FULL_ASSERT */ #ifdef __cplusplus } #endif #endif /* __STM32F1xx_HAL_CONF_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/stm32f1xx_it.h ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f1xx_it.h * @brief This file contains the headers of the interrupt handlers. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F1xx_IT_H #define __STM32F1xx_IT_H #ifdef __cplusplus extern "C" { #endif /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void NMI_Handler(void); void HardFault_Handler(void); void MemManage_Handler(void); void BusFault_Handler(void); void UsageFault_Handler(void); void SVC_Handler(void); void DebugMon_Handler(void); void PendSV_Handler(void); void SysTick_Handler(void); void DMA1_Channel1_IRQHandler(void); void DMA1_Channel4_IRQHandler(void); void DMA1_Channel5_IRQHandler(void); void USB_HP_CAN1_TX_IRQHandler(void); void USB_LP_CAN1_RX0_IRQHandler(void); void CAN1_RX1_IRQHandler(void); void CAN1_SCE_IRQHandler(void); void EXTI9_5_IRQHandler(void); void TIM1_UP_IRQHandler(void); void TIM3_IRQHandler(void); void TIM4_IRQHandler(void); void USART1_IRQHandler(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ #ifdef __cplusplus } #endif #endif /* __STM32F1xx_IT_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/tim.h ================================================ /** ****************************************************************************** * @file tim.h * @brief This file contains all the function prototypes for * the tim.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __TIM_H__ #define __TIM_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern TIM_HandleTypeDef htim1; extern TIM_HandleTypeDef htim2; extern TIM_HandleTypeDef htim3; extern TIM_HandleTypeDef htim4; /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ void MX_TIM1_Init(void); void MX_TIM2_Init(void); void MX_TIM3_Init(void); void MX_TIM4_Init(void); void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); /* USER CODE BEGIN Prototypes */ /********** HwElec **********/ /********** HwElec **********/ /********** HwElec **********/ void REIN_TIM_HwElec_Init(void); //TIM初始??(HwElec) /********** MT6816Base **********/ /********** MT6816Base **********/ /********** MT6816Base **********/ void REIN_TIM_MT6816_ABZ_Init(void); //TIM初始??(MT6816_ABZ) void REIN_TIM_MT6816_PWM_Init(void); //TIM初始??(MT6816_PWM) /********** SIGNAL **********/ /********** SIGNAL **********/ /********** SIGNAL **********/ void REIN_TIM_SIGNAL_COUNT_Init(void); //TIM初始??(SIGNAL_COUNT) void REIN_TIM_SIGNAL_COUNT_DeInit(void); //TIM清理(SIGNAL_COUNT) void REIN_TIM_SIGNAL_PWM_Init(void); //TIM初始??(SIGNAL_PWM) void REIN_TIM_SIGNAL_PWM_DeInit(void); //TIM清理(SIGNAL_PWM) /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __TIM_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Inc/usart.h ================================================ /** ****************************************************************************** * @file usart.h * @brief This file contains all the function prototypes for * the usart.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USART_H__ #define __USART_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern UART_HandleTypeDef huart1; /* USER CODE BEGIN Private defines */ #define BUFFER_SIZE 128 extern DMA_HandleTypeDef hdma_usart1_rx; extern DMA_HandleTypeDef hdma_usart1_tx; extern volatile uint8_t rxLen; extern volatile uint8_t recv_end_flag; extern uint8_t rx_buffer[BUFFER_SIZE]; /* USER CODE END Private defines */ void MX_USART1_UART_Init(void); /* USER CODE BEGIN Prototypes */ extern void (*OnRecvEnd)(uint8_t *data, uint16_t len); void Uart_SetRxCpltCallBack(void(*xerc)(uint8_t *, uint16_t)); /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __USART_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/adc.c ================================================ /** ****************************************************************************** * @file adc.c * @brief This file provides code for the configuration * of the ADC instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "adc.h" /* USER CODE BEGIN 0 */ uint16_t whole_adc_data[2][12]; /* USER CODE END 0 */ ADC_HandleTypeDef hadc1; DMA_HandleTypeDef hdma_adc1; /* ADC1 init function */ void MX_ADC1_Init(void) { /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC1_Init 1 */ /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; hadc1.Init.ContinuousConvMode = ENABLE; hadc1.Init.DiscontinuousConvMode = DISABLE; hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.NbrOfConversion = 2; if (HAL_ADC_Init(&hadc1) != HAL_OK) { Error_Handler(); } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_0; sConfig.Rank = ADC_REGULAR_RANK_1; sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_1; sConfig.Rank = ADC_REGULAR_RANK_2; if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN ADC1_Init 2 */ HAL_ADCEx_Calibration_Start(&hadc1); HAL_ADC_Start_DMA(&hadc1, (uint32_t*)&whole_adc_data[0][0], 2); /* USER CODE END ADC1_Init 2 */ } void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(adcHandle->Instance==ADC1) { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); /**ADC1 GPIO Configuration PA0-WKUP ------> ADC1_IN0 PA1 ------> ADC1_IN1 */ GPIO_InitStruct.Pin = POWER_U_Pin|DRV_TEMP_Pin; GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* ADC1 DMA Init */ /* ADC1 Init */ hdma_adc1.Instance = DMA1_Channel1; hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY; hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE; hdma_adc1.Init.MemInc = DMA_MINC_ENABLE; hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; hdma_adc1.Init.Mode = DMA_CIRCULAR; hdma_adc1.Init.Priority = DMA_PRIORITY_VERY_HIGH; if (HAL_DMA_Init(&hdma_adc1) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(adcHandle,DMA_Handle,hdma_adc1); /* USER CODE BEGIN ADC1_MspInit 1 */ /* USER CODE END ADC1_MspInit 1 */ } } void HAL_ADC_MspDeInit(ADC_HandleTypeDef* adcHandle) { if(adcHandle->Instance==ADC1) { /* USER CODE BEGIN ADC1_MspDeInit 0 */ /* USER CODE END ADC1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_ADC1_CLK_DISABLE(); /**ADC1 GPIO Configuration PA0-WKUP ------> ADC1_IN0 PA1 ------> ADC1_IN1 */ HAL_GPIO_DeInit(GPIOA, POWER_U_Pin|DRV_TEMP_Pin); /* ADC1 DMA DeInit */ HAL_DMA_DeInit(adcHandle->DMA_Handle); /* USER CODE BEGIN ADC1_MspDeInit 1 */ /* USER CODE END ADC1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/can.c ================================================ /** ****************************************************************************** * @file can.c * @brief This file provides code for the configuration * of the CAN instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "can.h" /* USER CODE BEGIN 0 */ #include "common_inc.h" #include "configurations.h" CAN_TxHeaderTypeDef TxHeader; CAN_RxHeaderTypeDef RxHeader; uint8_t TxData[8]; uint8_t RxData[8]; uint32_t TxMailbox; /* USER CODE END 0 */ CAN_HandleTypeDef hcan; /* CAN init function */ void MX_CAN_Init(void) { /* USER CODE BEGIN CAN_Init 0 */ /* USER CODE END CAN_Init 0 */ /* USER CODE BEGIN CAN_Init 1 */ /* USER CODE END CAN_Init 1 */ hcan.Instance = CAN1; hcan.Init.Prescaler = 4; hcan.Init.Mode = CAN_MODE_NORMAL; hcan.Init.SyncJumpWidth = CAN_SJW_1TQ; hcan.Init.TimeSeg1 = CAN_BS1_5TQ; hcan.Init.TimeSeg2 = CAN_BS2_3TQ; hcan.Init.TimeTriggeredMode = DISABLE; hcan.Init.AutoBusOff = DISABLE; hcan.Init.AutoWakeUp = ENABLE; hcan.Init.AutoRetransmission = DISABLE; hcan.Init.ReceiveFifoLocked = DISABLE; hcan.Init.TransmitFifoPriority = DISABLE; if (HAL_CAN_Init(&hcan) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN CAN_Init 2 */ CAN_FilterTypeDef sFilterConfig; //filter one (stack light blink) sFilterConfig.FilterBank = 0; sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; sFilterConfig.FilterIdHigh = 0x0000; sFilterConfig.FilterIdLow = 0x0000; sFilterConfig.FilterMaskIdHigh = 0x0000; sFilterConfig.FilterMaskIdLow = 0x0000; sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; sFilterConfig.FilterActivation = ENABLE; sFilterConfig.SlaveStartFilterBank = 14; if (HAL_CAN_ConfigFilter(&hcan, &sFilterConfig) != HAL_OK) { /* Filter configuration Error */ Error_Handler(); } HAL_CAN_Start(&hcan); //start CAN HAL_CAN_ActivateNotification(&hcan, CAN_IT_TX_MAILBOX_EMPTY | CAN_IT_RX_FIFO0_MSG_PENDING | CAN_IT_RX_FIFO1_MSG_PENDING | /* we probably only want this */ CAN_IT_RX_FIFO0_FULL | CAN_IT_RX_FIFO1_FULL | CAN_IT_RX_FIFO0_OVERRUN | CAN_IT_RX_FIFO1_OVERRUN | CAN_IT_WAKEUP | CAN_IT_SLEEP_ACK | CAN_IT_ERROR_WARNING | CAN_IT_ERROR_PASSIVE | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE | CAN_IT_ERROR); /* Configure Transmission process */ TxHeader.StdId = boardConfig.canNodeId; TxHeader.ExtId = 0x00; TxHeader.RTR = CAN_RTR_DATA; TxHeader.IDE = CAN_ID_STD; TxHeader.DLC = 8; TxHeader.TransmitGlobalTime = DISABLE; /* USER CODE END CAN_Init 2 */ } void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(canHandle->Instance==CAN1) { /* USER CODE BEGIN CAN1_MspInit 0 */ /* USER CODE END CAN1_MspInit 0 */ /* CAN1 clock enable */ __HAL_RCC_CAN1_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**CAN GPIO Configuration PB8 ------> CAN_RX PB9 ------> CAN_TX */ GPIO_InitStruct.Pin = GPIO_PIN_8; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_9; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); __HAL_AFIO_REMAP_CAN1_2(); /* CAN1 interrupt Init */ HAL_NVIC_SetPriority(USB_HP_CAN1_TX_IRQn, 3, 0); HAL_NVIC_EnableIRQ(USB_HP_CAN1_TX_IRQn); HAL_NVIC_SetPriority(USB_LP_CAN1_RX0_IRQn, 3, 0); HAL_NVIC_EnableIRQ(USB_LP_CAN1_RX0_IRQn); HAL_NVIC_SetPriority(CAN1_RX1_IRQn, 3, 0); HAL_NVIC_EnableIRQ(CAN1_RX1_IRQn); HAL_NVIC_SetPriority(CAN1_SCE_IRQn, 3, 0); HAL_NVIC_EnableIRQ(CAN1_SCE_IRQn); /* USER CODE BEGIN CAN1_MspInit 1 */ /* USER CODE END CAN1_MspInit 1 */ } } void HAL_CAN_MspDeInit(CAN_HandleTypeDef* canHandle) { if(canHandle->Instance==CAN1) { /* USER CODE BEGIN CAN1_MspDeInit 0 */ /* USER CODE END CAN1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_CAN1_CLK_DISABLE(); /**CAN GPIO Configuration PB8 ------> CAN_RX PB9 ------> CAN_TX */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8|GPIO_PIN_9); /* CAN1 interrupt Deinit */ HAL_NVIC_DisableIRQ(USB_HP_CAN1_TX_IRQn); HAL_NVIC_DisableIRQ(USB_LP_CAN1_RX0_IRQn); HAL_NVIC_DisableIRQ(CAN1_RX1_IRQn); HAL_NVIC_DisableIRQ(CAN1_SCE_IRQn); /* USER CODE BEGIN CAN1_MspDeInit 1 */ /* USER CODE END CAN1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ void CAN_Send(CAN_TxHeaderTypeDef* pHeader, uint8_t* data) { if (HAL_CAN_AddTxMessage(&hcan, pHeader, data, &TxMailbox) != HAL_OK) { Error_Handler(); } } void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef* CanHandle) { /* Get RX message */ if (HAL_CAN_GetRxMessage(CanHandle, CAN_RX_FIFO0, &RxHeader, RxData) != HAL_OK) { /* Reception Error */ Error_Handler(); } uint8_t id = (RxHeader.StdId >> 7); // 4Bits ID & 7Bits Msg uint8_t cmd = RxHeader.StdId & 0x7F; // 4Bits ID & 7Bits Msg if (id == 0 || id == boardConfig.canNodeId) { OnCanCmd(cmd, RxData, RxHeader.DLC); } } /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/dma.c ================================================ /** ****************************************************************************** * @file dma.c * @brief This file provides code for the configuration * of all the requested memory to memory DMA transfers. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "dma.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /*----------------------------------------------------------------------------*/ /* Configure DMA */ /*----------------------------------------------------------------------------*/ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /** * Enable DMA controller clock */ void MX_DMA_Init(void) { /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE(); /* DMA interrupt init */ /* DMA1_Channel1_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0); HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn); /* DMA1_Channel4_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 3, 0); HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn); /* DMA1_Channel5_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 3, 0); HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn); } /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/gpio.c ================================================ /** ****************************************************************************** * @file gpio.c * @brief This file provides code for the configuration * of all used GPIO pins. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "gpio.h" /* USER CODE BEGIN 0 */ #include "common_inc.h" /* USER CODE END 0 */ /*----------------------------------------------------------------------------*/ /* Configure GPIO */ /*----------------------------------------------------------------------------*/ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /** Configure pins as * Analog * Input * Output * EVENT_OUT * EXTI */ void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, LED1_Pin|LED2_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, HW_ELEC_BM_Pin|HW_ELEC_BP_Pin|HW_ELEC_AM_Pin|HW_ELEC_AP_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(SIGNAL_ALERT_GPIO_Port, SIGNAL_ALERT_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(SPI1_CS_GPIO_Port, SPI1_CS_Pin, GPIO_PIN_SET); /*Configure GPIO pins : PCPin PCPin */ GPIO_InitStruct.Pin = LED1_Pin|LED2_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); /*Configure GPIO pins : PAPin PAPin PAPin PAPin */ GPIO_InitStruct.Pin = HW_ELEC_BM_Pin|HW_ELEC_BP_Pin|HW_ELEC_AM_Pin|HW_ELEC_AP_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = SIGNAL_COUNT_DIR_Pin; GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(SIGNAL_COUNT_DIR_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = SIGNAL_COUNT_EN_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(SIGNAL_COUNT_EN_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = SIGNAL_ALERT_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(SIGNAL_ALERT_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pins : PBPin PBPin */ GPIO_InitStruct.Pin = BUTTON2_Pin|BUTTON1_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = SPI1_CS_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(SPI1_CS_GPIO_Port, &GPIO_InitStruct); /* EXTI interrupt init*/ HAL_NVIC_SetPriority(EXTI9_5_IRQn, 0, 0); HAL_NVIC_EnableIRQ(EXTI9_5_IRQn); } /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/main.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "adc.h" #include "can.h" #include "dma.h" #include "spi.h" #include "tim.h" #include "usart.h" #include "gpio.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "common_inc.h" /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /** * @brief The application entry point. * @retval int */ int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_ADC1_Init(); MX_USART1_UART_Init(); MX_CAN_Init(); MX_SPI1_Init(); MX_TIM2_Init(); MX_TIM3_Init(); MX_TIM4_Init(); MX_TIM1_Init(); /* USER CODE BEGIN 2 */ Main(); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV1; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { Error_Handler(); } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC; PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6; if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) { Error_Handler(); } } /* USER CODE BEGIN 4 */ /* USER CODE END 4 */ /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) { } /* USER CODE END Error_Handler_Debug */ } #ifdef USE_FULL_ASSERT /** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */ void assert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ /* User can add his own implementation to report the file name and line number, ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/spi.c ================================================ /** ****************************************************************************** * @file spi.c * @brief This file provides code for the configuration * of the SPI instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "spi.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ SPI_HandleTypeDef hspi1; /* SPI1 init function */ void MX_SPI1_Init(void) { /* USER CODE BEGIN SPI1_Init 0 */ /* USER CODE END SPI1_Init 0 */ /* USER CODE BEGIN SPI1_Init 1 */ /* USER CODE END SPI1_Init 1 */ hspi1.Instance = SPI1; hspi1.Init.Mode = SPI_MODE_MASTER; hspi1.Init.Direction = SPI_DIRECTION_2LINES; hspi1.Init.DataSize = SPI_DATASIZE_16BIT; hspi1.Init.CLKPolarity = SPI_POLARITY_HIGH; hspi1.Init.CLKPhase = SPI_PHASE_2EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_8; hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi1.Init.CRCPolynomial = 10; if (HAL_SPI_Init(&hspi1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI1_Init 2 */ /* USER CODE END SPI1_Init 2 */ } void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(spiHandle->Instance==SPI1) { /* USER CODE BEGIN SPI1_MspInit 0 */ /* USER CODE END SPI1_MspInit 0 */ /* SPI1 clock enable */ __HAL_RCC_SPI1_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**SPI1 GPIO Configuration PB3 ------> SPI1_SCK PB4 ------> SPI1_MISO PB5 ------> SPI1_MOSI */ GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_4; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); __HAL_AFIO_REMAP_SPI1_ENABLE(); /* USER CODE BEGIN SPI1_MspInit 1 */ /* USER CODE END SPI1_MspInit 1 */ } } void HAL_SPI_MspDeInit(SPI_HandleTypeDef* spiHandle) { if(spiHandle->Instance==SPI1) { /* USER CODE BEGIN SPI1_MspDeInit 0 */ /* USER CODE END SPI1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_SPI1_CLK_DISABLE(); /**SPI1 GPIO Configuration PB3 ------> SPI1_SCK PB4 ------> SPI1_MISO PB5 ------> SPI1_MOSI */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5); /* USER CODE BEGIN SPI1_MspDeInit 1 */ /* USER CODE END SPI1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/stm32f1xx_hal_msp.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f1xx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN TD */ /* USER CODE END TD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN Define */ /* USER CODE END Define */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN Macro */ /* USER CODE END Macro */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* External functions --------------------------------------------------------*/ /* USER CODE BEGIN ExternalFunctions */ /* USER CODE END ExternalFunctions */ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); __HAL_RCC_PWR_CLK_ENABLE(); /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/stm32f1xx_it.c ================================================ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f1xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32f1xx_it.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include #include "common_inc.h" #include "usart.h" /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN TD */ /* USER CODE END TD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ extern void GpioPin7InterruptCallback(); extern void Tim1Callback100Hz(); extern void Tim3CaptureCallback(); extern void Tim4Callback20kHz(); /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /* External variables --------------------------------------------------------*/ extern DMA_HandleTypeDef hdma_adc1; extern CAN_HandleTypeDef hcan; extern TIM_HandleTypeDef htim1; extern TIM_HandleTypeDef htim3; extern TIM_HandleTypeDef htim4; extern DMA_HandleTypeDef hdma_usart1_rx; extern DMA_HandleTypeDef hdma_usart1_tx; extern UART_HandleTypeDef huart1; /* USER CODE BEGIN EV */ /* USER CODE END EV */ /******************************************************************************/ /* Cortex-M3 Processor Interruption and Exception Handlers */ /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) { } /* USER CODE END NonMaskableInt_IRQn 1 */ } /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_HardFault_IRQn 0 */ /* USER CODE END W1_HardFault_IRQn 0 */ } } /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */ /* USER CODE END W1_MemoryManagement_IRQn 0 */ } } /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_BusFault_IRQn 0 */ /* USER CODE END W1_BusFault_IRQn 0 */ } } /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) { /* USER CODE BEGIN W1_UsageFault_IRQn 0 */ /* USER CODE END W1_UsageFault_IRQn 0 */ } } /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { /* USER CODE BEGIN SVCall_IRQn 0 */ /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { /* USER CODE BEGIN DebugMonitor_IRQn 0 */ /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { /* USER CODE BEGIN PendSV_IRQn 0 */ /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } /******************************************************************************/ /* STM32F1xx Peripheral Interrupt Handlers */ /* Add here the Interrupt Handlers for the used peripherals. */ /* For the available peripheral interrupt handler names, */ /* please refer to the startup file (startup_stm32f1xx.s). */ /******************************************************************************/ /** * @brief This function handles DMA1 channel1 global interrupt. */ void DMA1_Channel1_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ /* USER CODE END DMA1_Channel1_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_adc1); /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */ /* USER CODE END DMA1_Channel1_IRQn 1 */ } /** * @brief This function handles DMA1 channel4 global interrupt. */ void DMA1_Channel4_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel4_IRQn 0 */ /* USER CODE END DMA1_Channel4_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart1_tx); /* USER CODE BEGIN DMA1_Channel4_IRQn 1 */ /* USER CODE END DMA1_Channel4_IRQn 1 */ } /** * @brief This function handles DMA1 channel5 global interrupt. */ void DMA1_Channel5_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel5_IRQn 0 */ /* USER CODE END DMA1_Channel5_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart1_rx); /* USER CODE BEGIN DMA1_Channel5_IRQn 1 */ /* USER CODE END DMA1_Channel5_IRQn 1 */ } /** * @brief This function handles USB high priority or CAN TX interrupts. */ void USB_HP_CAN1_TX_IRQHandler(void) { /* USER CODE BEGIN USB_HP_CAN1_TX_IRQn 0 */ /* USER CODE END USB_HP_CAN1_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan); /* USER CODE BEGIN USB_HP_CAN1_TX_IRQn 1 */ /* USER CODE END USB_HP_CAN1_TX_IRQn 1 */ } /** * @brief This function handles USB low priority or CAN RX0 interrupts. */ void USB_LP_CAN1_RX0_IRQHandler(void) { /* USER CODE BEGIN USB_LP_CAN1_RX0_IRQn 0 */ /* USER CODE END USB_LP_CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan); /* USER CODE BEGIN USB_LP_CAN1_RX0_IRQn 1 */ /* USER CODE END USB_LP_CAN1_RX0_IRQn 1 */ } /** * @brief This function handles CAN RX1 interrupt. */ void CAN1_RX1_IRQHandler(void) { /* USER CODE BEGIN CAN1_RX1_IRQn 0 */ /* USER CODE END CAN1_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan); /* USER CODE BEGIN CAN1_RX1_IRQn 1 */ /* USER CODE END CAN1_RX1_IRQn 1 */ } /** * @brief This function handles CAN SCE interrupt. */ void CAN1_SCE_IRQHandler(void) { /* USER CODE BEGIN CAN1_SCE_IRQn 0 */ /* USER CODE END CAN1_SCE_IRQn 0 */ HAL_CAN_IRQHandler(&hcan); /* USER CODE BEGIN CAN1_SCE_IRQn 1 */ /* USER CODE END CAN1_SCE_IRQn 1 */ } /** * @brief This function handles EXTI line[9:5] interrupts. */ void EXTI9_5_IRQHandler(void) { /* USER CODE BEGIN EXTI9_5_IRQn 0 */ return; /* USER CODE END EXTI9_5_IRQn 0 */ HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_7); /* USER CODE BEGIN EXTI9_5_IRQn 1 */ /* USER CODE END EXTI9_5_IRQn 1 */ } /** * @brief This function handles TIM1 update interrupt. */ void TIM1_UP_IRQHandler(void) { /* USER CODE BEGIN TIM1_UP_IRQn 0 */ Tim1Callback100Hz(); return; /* USER CODE END TIM1_UP_IRQn 0 */ HAL_TIM_IRQHandler(&htim1); /* USER CODE BEGIN TIM1_UP_IRQn 1 */ /* USER CODE END TIM1_UP_IRQn 1 */ } /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { /* USER CODE BEGIN TIM3_IRQn 0 */ return; /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); /* USER CODE BEGIN TIM3_IRQn 1 */ /* USER CODE END TIM3_IRQn 1 */ } /** * @brief This function handles TIM4 global interrupt. */ void TIM4_IRQHandler(void) { /* USER CODE BEGIN TIM4_IRQn 0 */ Tim4Callback20kHz(); return; /* USER CODE END TIM4_IRQn 0 */ HAL_TIM_IRQHandler(&htim4); /* USER CODE BEGIN TIM4_IRQn 1 */ /* USER CODE END TIM4_IRQn 1 */ } /** * @brief This function handles USART1 global interrupt. */ void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ if ((__HAL_UART_GET_FLAG(&huart1, UART_FLAG_IDLE) != RESET)) { __HAL_UART_CLEAR_IDLEFLAG(&huart1); HAL_UART_DMAStop(&huart1); uint32_t temp = __HAL_DMA_GET_COUNTER(&hdma_usart1_rx); rxLen = BUFFER_SIZE - temp; OnRecvEnd(rx_buffer, rxLen); memset(rx_buffer, 0, rxLen); rxLen = 0; HAL_UART_Receive_DMA(&huart1, rx_buffer, BUFFER_SIZE); } /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); /* USER CODE BEGIN USART1_IRQn 1 */ /* USER CODE END USART1_IRQn 1 */ } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/syscalls.c ================================================ /** ***************************************************************************** ** ** File : syscalls.c ** ** Author : Auto-generated by System workbench for STM32 ** ** Abstract : System Workbench Minimal System calls file ** ** For more information about which c-functions ** need which of these lowlevel functions ** please consult the Newlib libc-manual ** ** Target : STMicroelectronics STM32 ** ** Distribution: The file is distributed ??as is,?? without any warranty ** of any kind. ** ***************************************************************************** ** @attention ** **

© COPYRIGHT(c) 2019 STMicroelectronics

** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following conditions are met: ** 1. Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** 2. Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** 3. Neither the name of STMicroelectronics nor the names of its contributors ** may be used to endorse or promote products derived from this software ** without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ***************************************************************************** */ /* Includes */ #include #include #include #include #include #include #include #include /* Variables */ //#undef errno extern int errno; extern int __io_putchar(int ch) __attribute__((weak)); extern int __io_getchar(void) __attribute__((weak)); register char * stack_ptr asm("sp"); char *__env[1] = { 0 }; char **environ = __env; /* Functions */ void initialise_monitor_handles() { } int _getpid(void) { return 1; } int _kill(int pid, int sig) { errno = EINVAL; return -1; } void _exit (int status) { _kill(status, -1); while (1) {} /* Make sure we hang here */ } __attribute__((weak)) int _read(int file, char *ptr, int len) { int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) { *ptr++ = __io_getchar(); } return len; } __attribute__((weak)) int _write(int file, char *ptr, int len) { int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) { __io_putchar(*ptr++); } return len; } caddr_t _sbrk(int incr) { extern char end asm("end"); static char *heap_end; char *prev_heap_end; if (heap_end == 0) heap_end = &end; prev_heap_end = heap_end; if (heap_end + incr > stack_ptr) { // write(1, "Heap and stack collision\n", 25); // abort(); errno = ENOMEM; return (caddr_t) -1; } heap_end += incr; return (caddr_t) prev_heap_end; } int _open(char *path, int flags, ...) { /* Pretend like we always fail */ return -1; } int _wait(int *status) { errno = ECHILD; return -1; } int _unlink(char *name) { errno = ENOENT; return -1; } int _times(struct tms *buf) { return -1; } int _stat(char *file, struct stat *st) { st->st_mode = S_IFCHR; return 0; } int _link(char *old, char *new) { errno = EMLINK; return -1; } int _fork(void) { errno = EAGAIN; return -1; } int _execve(char *name, char **argv, char **env) { errno = ENOMEM; return -1; } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/system_stm32f1xx.c ================================================ /** ****************************************************************************** * @file system_stm32f1xx.c * @author MCD Application Team * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. * * 1. This file provides two functions and one global variable to be called from * user application: * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier * factors, AHB/APBx prescalers and Flash settings). * This function is called at startup just after reset and * before branch to main program. This call is made inside * the "startup_stm32f1xx_xx.s" file. * * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used * by the user application to setup the SysTick * timer or configure other parameters. * * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed * during program execution. * * 2. After each device reset the HSI (8 MHz) is used as system clock source. * Then SystemInit() function is called, in "startup_stm32f1xx_xx.s" file, to * configure the system clock before to branch to main program. * * 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz, depending on * the product used), refer to "HSE_VALUE". * When HSE is used as system clock source, directly or through PLL, and you * are using different crystal you have to adapt the HSE value to your own * configuration. * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f1xx_system * @{ */ /** @addtogroup STM32F1xx_System_Private_Includes * @{ */ #include "stm32f1xx.h" /** * @} */ /** @addtogroup STM32F1xx_System_Private_TypesDefinitions * @{ */ /** * @} */ /** @addtogroup STM32F1xx_System_Private_Defines * @{ */ #if !defined (HSE_VALUE) #define HSE_VALUE 8000000U /*!< Default value of the External oscillator in Hz. This value can be provided and adapted by the user application. */ #endif /* HSE_VALUE */ #if !defined (HSI_VALUE) #define HSI_VALUE 8000000U /*!< Default value of the Internal oscillator in Hz. This value can be provided and adapted by the user application. */ #endif /* HSI_VALUE */ /*!< Uncomment the following line if you need to use external SRAM */ #if defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG) /* #define DATA_IN_ExtSRAM */ #endif /* STM32F100xE || STM32F101xE || STM32F101xG || STM32F103xE || STM32F103xG */ /* Note: Following vector table addresses must be defined in line with linker configuration. */ /*!< Uncomment the following line if you need to relocate the vector table anywhere in Flash or Sram, else the vector table is kept at the automatic remap of boot address selected */ /* #define USER_VECT_TAB_ADDRESS */ #if defined(USER_VECT_TAB_ADDRESS) /*!< Uncomment the following line if you need to relocate your vector Table in Sram else user remap will be done in Flash. */ /* #define VECT_TAB_SRAM */ #if defined(VECT_TAB_SRAM) #define VECT_TAB_BASE_ADDRESS SRAM_BASE /*!< Vector Table base address field. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #else #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #endif /* VECT_TAB_SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ /******************************************************************************/ /** * @} */ /** @addtogroup STM32F1xx_System_Private_Macros * @{ */ /** * @} */ /** @addtogroup STM32F1xx_System_Private_Variables * @{ */ /* This variable is updated in three ways: 1) by calling CMSIS function SystemCoreClockUpdate() 2) by calling HAL API function HAL_RCC_GetHCLKFreq() 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency Note: If you use this function to configure the system clock; then there is no need to call the 2 first functions listed above, since SystemCoreClock variable is updated automatically. */ uint32_t SystemCoreClock = 16000000; const uint8_t AHBPrescTable[16U] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; const uint8_t APBPrescTable[8U] = {0, 0, 0, 0, 1, 2, 3, 4}; /** * @} */ /** @addtogroup STM32F1xx_System_Private_FunctionPrototypes * @{ */ #if defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG) #ifdef DATA_IN_ExtSRAM static void SystemInit_ExtMemCtl(void); #endif /* DATA_IN_ExtSRAM */ #endif /* STM32F100xE || STM32F101xE || STM32F101xG || STM32F103xE || STM32F103xG */ /** * @} */ /** @addtogroup STM32F1xx_System_Private_Functions * @{ */ /** * @brief Setup the microcontroller system * Initialize the Embedded Flash Interface, the PLL and update the * SystemCoreClock variable. * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { #if defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG) #ifdef DATA_IN_ExtSRAM SystemInit_ExtMemCtl(); #endif /* DATA_IN_ExtSRAM */ #endif /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */ #endif /* USER_VECT_TAB_ADDRESS */ } /** * @brief Update SystemCoreClock variable according to Clock Register Values. * The SystemCoreClock variable contains the core clock (HCLK), it can * be used by the user application to setup the SysTick timer or configure * other parameters. * * @note Each time the core clock (HCLK) changes, this function must be called * to update SystemCoreClock variable value. Otherwise, any configuration * based on this variable will be incorrect. * * @note - The system frequency computed by this function is not the real * frequency in the chip. It is calculated based on the predefined * constant and the selected clock source: * * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) * * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) * * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) * or HSI_VALUE(*) multiplied by the PLL factors. * * (*) HSI_VALUE is a constant defined in stm32f1xx.h file (default value * 8 MHz) but the real value may vary depending on the variations * in voltage and temperature. * * (**) HSE_VALUE is a constant defined in stm32f1xx.h file (default value * 8 MHz or 25 MHz, depending on the product used), user has to ensure * that HSE_VALUE is same as the real frequency of the crystal used. * Otherwise, this function may have wrong result. * * - The result of this function could be not correct when using fractional * value for HSE crystal. * @param None * @retval None */ void SystemCoreClockUpdate (void) { uint32_t tmp = 0U, pllmull = 0U, pllsource = 0U; #if defined(STM32F105xC) || defined(STM32F107xC) uint32_t prediv1source = 0U, prediv1factor = 0U, prediv2factor = 0U, pll2mull = 0U; #endif /* STM32F105xC */ #if defined(STM32F100xB) || defined(STM32F100xE) uint32_t prediv1factor = 0U; #endif /* STM32F100xB or STM32F100xE */ /* Get SYSCLK source -------------------------------------------------------*/ tmp = RCC->CFGR & RCC_CFGR_SWS; switch (tmp) { case 0x00U: /* HSI used as system clock */ SystemCoreClock = HSI_VALUE; break; case 0x04U: /* HSE used as system clock */ SystemCoreClock = HSE_VALUE; break; case 0x08U: /* PLL used as system clock */ /* Get PLL clock source and multiplication factor ----------------------*/ pllmull = RCC->CFGR & RCC_CFGR_PLLMULL; pllsource = RCC->CFGR & RCC_CFGR_PLLSRC; #if !defined(STM32F105xC) && !defined(STM32F107xC) pllmull = ( pllmull >> 18U) + 2U; if (pllsource == 0x00U) { /* HSI oscillator clock divided by 2 selected as PLL clock entry */ SystemCoreClock = (HSI_VALUE >> 1U) * pllmull; } else { #if defined(STM32F100xB) || defined(STM32F100xE) prediv1factor = (RCC->CFGR2 & RCC_CFGR2_PREDIV1) + 1U; /* HSE oscillator clock selected as PREDIV1 clock entry */ SystemCoreClock = (HSE_VALUE / prediv1factor) * pllmull; #else /* HSE selected as PLL clock entry */ if ((RCC->CFGR & RCC_CFGR_PLLXTPRE) != (uint32_t)RESET) {/* HSE oscillator clock divided by 2 */ SystemCoreClock = (HSE_VALUE >> 1U) * pllmull; } else { SystemCoreClock = HSE_VALUE * pllmull; } #endif } #else pllmull = pllmull >> 18U; if (pllmull != 0x0DU) { pllmull += 2U; } else { /* PLL multiplication factor = PLL input clock * 6.5 */ pllmull = 13U / 2U; } if (pllsource == 0x00U) { /* HSI oscillator clock divided by 2 selected as PLL clock entry */ SystemCoreClock = (HSI_VALUE >> 1U) * pllmull; } else {/* PREDIV1 selected as PLL clock entry */ /* Get PREDIV1 clock source and division factor */ prediv1source = RCC->CFGR2 & RCC_CFGR2_PREDIV1SRC; prediv1factor = (RCC->CFGR2 & RCC_CFGR2_PREDIV1) + 1U; if (prediv1source == 0U) { /* HSE oscillator clock selected as PREDIV1 clock entry */ SystemCoreClock = (HSE_VALUE / prediv1factor) * pllmull; } else {/* PLL2 clock selected as PREDIV1 clock entry */ /* Get PREDIV2 division factor and PLL2 multiplication factor */ prediv2factor = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> 4U) + 1U; pll2mull = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> 8U) + 2U; SystemCoreClock = (((HSE_VALUE / prediv2factor) * pll2mull) / prediv1factor) * pllmull; } } #endif /* STM32F105xC */ break; default: SystemCoreClock = HSI_VALUE; break; } /* Compute HCLK clock frequency ----------------*/ /* Get HCLK prescaler */ tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4U)]; /* HCLK clock frequency */ SystemCoreClock >>= tmp; } #if defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG) /** * @brief Setup the external memory controller. Called in startup_stm32f1xx.s * before jump to __main * @param None * @retval None */ #ifdef DATA_IN_ExtSRAM /** * @brief Setup the external memory controller. * Called in startup_stm32f1xx_xx.s/.c before jump to main. * This function configures the external SRAM mounted on STM3210E-EVAL * board (STM32 High density devices). This SRAM will be used as program * data memory (including heap and stack). * @param None * @retval None */ void SystemInit_ExtMemCtl(void) { __IO uint32_t tmpreg; /*!< FSMC Bank1 NOR/SRAM3 is used for the STM3210E-EVAL, if another Bank is required, then adjust the Register Addresses */ /* Enable FSMC clock */ RCC->AHBENR = 0x00000114U; /* Delay after an RCC peripheral clock enabling */ tmpreg = READ_BIT(RCC->AHBENR, RCC_AHBENR_FSMCEN); /* Enable GPIOD, GPIOE, GPIOF and GPIOG clocks */ RCC->APB2ENR = 0x000001E0U; /* Delay after an RCC peripheral clock enabling */ tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_IOPDEN); (void)(tmpreg); /* --------------- SRAM Data lines, NOE and NWE configuration ---------------*/ /*---------------- SRAM Address lines configuration -------------------------*/ /*---------------- NOE and NWE configuration --------------------------------*/ /*---------------- NE3 configuration ----------------------------------------*/ /*---------------- NBL0, NBL1 configuration ---------------------------------*/ GPIOD->CRL = 0x44BB44BBU; GPIOD->CRH = 0xBBBBBBBBU; GPIOE->CRL = 0xB44444BBU; GPIOE->CRH = 0xBBBBBBBBU; GPIOF->CRL = 0x44BBBBBBU; GPIOF->CRH = 0xBBBB4444U; GPIOG->CRL = 0x44BBBBBBU; GPIOG->CRH = 0x444B4B44U; /*---------------- FSMC Configuration ---------------------------------------*/ /*---------------- Enable FSMC Bank1_SRAM Bank ------------------------------*/ FSMC_Bank1->BTCR[4U] = 0x00001091U; FSMC_Bank1->BTCR[5U] = 0x00110212U; } #endif /* DATA_IN_ExtSRAM */ #endif /* STM32F100xE || STM32F101xE || STM32F101xG || STM32F103xE || STM32F103xG */ /** * @} */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/tim.c ================================================ /** ****************************************************************************** * @file tim.c * @brief This file provides code for the configuration * of the TIM instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "tim.h" /* USER CODE BEGIN 0 */ #include "common_inc.h" /* USER CODE END 0 */ TIM_HandleTypeDef htim1; TIM_HandleTypeDef htim2; TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim4; /* TIM1 init function */ void MX_TIM1_Init(void) { /* USER CODE BEGIN TIM1_Init 0 */ /* USER CODE END TIM1_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM1_Init 1 */ /* USER CODE END TIM1_Init 1 */ htim1.Instance = TIM1; htim1.Init.Prescaler = 71; htim1.Init.CounterMode = TIM_COUNTERMODE_UP; htim1.Init.Period = 9999; htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim1.Init.RepetitionCounter = 0; htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(&htim1) != HAL_OK) { Error_Handler(); } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM1_Init 2 */ /* USER CODE END TIM1_Init 2 */ } /* TIM2 init function */ void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = 0; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = 1023; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_PWM_Init(&htim2) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK) { Error_Handler(); } sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 0; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM2_Init 2 */ HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_3); HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4); /* USER CODE END TIM2_Init 2 */ HAL_TIM_MspPostInit(&htim2); } /* TIM3 init function */ void MX_TIM3_Init(void) { /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_SlaveConfigTypeDef sSlaveConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_IC_InitTypeDef sConfigIC = {0}; /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; htim3.Init.Prescaler = 71; htim3.Init.CounterMode = TIM_COUNTERMODE_UP; htim3.Init.Period = 65535; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim3) != HAL_OK) { Error_Handler(); } if (HAL_TIM_IC_Init(&htim3) != HAL_OK) { Error_Handler(); } sSlaveConfig.SlaveMode = TIM_SLAVEMODE_RESET; sSlaveConfig.InputTrigger = TIM_TS_TI1FP1; sSlaveConfig.TriggerPolarity = TIM_INPUTCHANNELPOLARITY_RISING; sSlaveConfig.TriggerFilter = 0; if (HAL_TIM_SlaveConfigSynchro(&htim3, &sSlaveConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) { Error_Handler(); } sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING; sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI; sConfigIC.ICPrescaler = TIM_ICPSC_DIV1; sConfigIC.ICFilter = 0; if (HAL_TIM_IC_ConfigChannel(&htim3, &sConfigIC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ } /* TIM4 init function */ void MX_TIM4_Init(void) { /* USER CODE BEGIN TIM4_Init 0 */ /* USER CODE END TIM4_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM4_Init 1 */ /* USER CODE END TIM4_Init 1 */ htim4.Instance = TIM4; htim4.Init.Prescaler = 71; htim4.Init.CounterMode = TIM_COUNTERMODE_UP; htim4.Init.Period = 49; htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(&htim4) != HAL_OK) { Error_Handler(); } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM4_Init 2 */ /* USER CODE END TIM4_Init 2 */ } void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(tim_baseHandle->Instance==TIM1) { /* USER CODE BEGIN TIM1_MspInit 0 */ /* USER CODE END TIM1_MspInit 0 */ /* TIM1 clock enable */ __HAL_RCC_TIM1_CLK_ENABLE(); /* TIM1 interrupt Init */ HAL_NVIC_SetPriority(TIM1_UP_IRQn, 5, 0); HAL_NVIC_EnableIRQ(TIM1_UP_IRQn); /* USER CODE BEGIN TIM1_MspInit 1 */ /* USER CODE END TIM1_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM3) { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); /**TIM3 GPIO Configuration PA6 ------> TIM3_CH1 */ GPIO_InitStruct.Pin = GPIO_PIN_6; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* TIM3 interrupt Init */ HAL_NVIC_SetPriority(TIM3_IRQn, 0, 0); HAL_NVIC_EnableIRQ(TIM3_IRQn); /* USER CODE BEGIN TIM3_MspInit 1 */ /* USER CODE END TIM3_MspInit 1 */ } else if(tim_baseHandle->Instance==TIM4) { /* USER CODE BEGIN TIM4_MspInit 0 */ /* USER CODE END TIM4_MspInit 0 */ /* TIM4 clock enable */ __HAL_RCC_TIM4_CLK_ENABLE(); /* TIM4 interrupt Init */ HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0); HAL_NVIC_EnableIRQ(TIM4_IRQn); /* USER CODE BEGIN TIM4_MspInit 1 */ /* USER CODE END TIM4_MspInit 1 */ } } void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* tim_pwmHandle) { if(tim_pwmHandle->Instance==TIM2) { /* USER CODE BEGIN TIM2_MspInit 0 */ /* USER CODE END TIM2_MspInit 0 */ /* TIM2 clock enable */ __HAL_RCC_TIM2_CLK_ENABLE(); /* USER CODE BEGIN TIM2_MspInit 1 */ /* USER CODE END TIM2_MspInit 1 */ } } void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(timHandle->Instance==TIM2) { /* USER CODE BEGIN TIM2_MspPostInit 0 */ /* USER CODE END TIM2_MspPostInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); /**TIM2 GPIO Configuration PB10 ------> TIM2_CH3 PB11 ------> TIM2_CH4 */ GPIO_InitStruct.Pin = HW_ELEC_BPWM_Pin|HW_ELEC_APWM_Pin; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); __HAL_AFIO_REMAP_TIM2_PARTIAL_2(); /* USER CODE BEGIN TIM2_MspPostInit 1 */ /* USER CODE END TIM2_MspPostInit 1 */ } } void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* tim_baseHandle) { if(tim_baseHandle->Instance==TIM1) { /* USER CODE BEGIN TIM1_MspDeInit 0 */ /* USER CODE END TIM1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM1_CLK_DISABLE(); /* TIM1 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM1_UP_IRQn); /* USER CODE BEGIN TIM1_MspDeInit 1 */ /* USER CODE END TIM1_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM3) { /* USER CODE BEGIN TIM3_MspDeInit 0 */ /* USER CODE END TIM3_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM3_CLK_DISABLE(); /**TIM3 GPIO Configuration PA6 ------> TIM3_CH1 */ HAL_GPIO_DeInit(GPIOA, GPIO_PIN_6); /* TIM3 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM3_IRQn); /* USER CODE BEGIN TIM3_MspDeInit 1 */ /* USER CODE END TIM3_MspDeInit 1 */ } else if(tim_baseHandle->Instance==TIM4) { /* USER CODE BEGIN TIM4_MspDeInit 0 */ /* USER CODE END TIM4_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM4_CLK_DISABLE(); /* TIM4 interrupt Deinit */ HAL_NVIC_DisableIRQ(TIM4_IRQn); /* USER CODE BEGIN TIM4_MspDeInit 1 */ /* USER CODE END TIM4_MspDeInit 1 */ } } void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef* tim_pwmHandle) { if(tim_pwmHandle->Instance==TIM2) { /* USER CODE BEGIN TIM2_MspDeInit 0 */ /* USER CODE END TIM2_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM2_CLK_DISABLE(); /* USER CODE BEGIN TIM2_MspDeInit 1 */ /* USER CODE END TIM2_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Core/Src/usart.c ================================================ /** ****************************************************************************** * @file usart.c * @brief This file provides code for the configuration * of the USART instances. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "usart.h" /* USER CODE BEGIN 0 */ #include "common_inc.h" #include "Platform/retarget.h" volatile uint8_t rxLen = 0; uint8_t rx_buffer[BUFFER_SIZE] = {0}; void (* OnRecvEnd)(uint8_t* data, uint16_t len); /* USER CODE END 0 */ UART_HandleTypeDef huart1; DMA_HandleTypeDef hdma_usart1_rx; DMA_HandleTypeDef hdma_usart1_tx; /* USART1 init function */ void MX_USART1_UART_Init(void) { /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; huart1.Init.BaudRate = 115200; huart1.Init.WordLength = UART_WORDLENGTH_8B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_NONE; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART_OVERSAMPLING_16; if (HAL_UART_Init(&huart1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN USART1_Init 2 */ __HAL_UART_ENABLE_IT(&huart1, UART_IT_IDLE); RetargetInit(&huart1); Uart_SetRxCpltCallBack(OnUartCmd); HAL_UART_Receive_DMA(&huart1, rx_buffer, BUFFER_SIZE); /* USER CODE END USART1_Init 2 */ } void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(uartHandle->Instance==USART1) { /* USER CODE BEGIN USART1_MspInit 0 */ /* USER CODE END USART1_MspInit 0 */ /* USART1 clock enable */ __HAL_RCC_USART1_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**USART1 GPIO Configuration PB6 ------> USART1_TX PB7 ------> USART1_RX */ GPIO_InitStruct.Pin = GPIO_PIN_6; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); __HAL_AFIO_REMAP_USART1_ENABLE(); /* USART1 DMA Init */ /* USART1_RX Init */ hdma_usart1_rx.Instance = DMA1_Channel5; hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE; hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_usart1_rx.Init.Mode = DMA_NORMAL; hdma_usart1_rx.Init.Priority = DMA_PRIORITY_MEDIUM; if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart1_rx); /* USART1_TX Init */ hdma_usart1_tx.Instance = DMA1_Channel4; hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE; hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE; hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; hdma_usart1_tx.Init.Mode = DMA_NORMAL; hdma_usart1_tx.Init.Priority = DMA_PRIORITY_MEDIUM; if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) { Error_Handler(); } __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); /* USART1 interrupt Init */ HAL_NVIC_SetPriority(USART1_IRQn, 3, 0); HAL_NVIC_EnableIRQ(USART1_IRQn); /* USER CODE BEGIN USART1_MspInit 1 */ /* USER CODE END USART1_MspInit 1 */ } } void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle) { if(uartHandle->Instance==USART1) { /* USER CODE BEGIN USART1_MspDeInit 0 */ /* USER CODE END USART1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_USART1_CLK_DISABLE(); /**USART1 GPIO Configuration PB6 ------> USART1_TX PB7 ------> USART1_RX */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_7); /* USART1 DMA DeInit */ HAL_DMA_DeInit(uartHandle->hdmarx); HAL_DMA_DeInit(uartHandle->hdmatx); /* USART1 interrupt Deinit */ HAL_NVIC_DisableIRQ(USART1_IRQn); /* USER CODE BEGIN USART1_MspDeInit 1 */ /* USER CODE END USART1_MspDeInit 1 */ } } /* USER CODE BEGIN 1 */ void Uart_SetRxCpltCallBack(void(* xerc)(uint8_t*, uint16_t)) { OnRecvEnd = xerc; } /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Driver/driver_base.h ================================================ #ifndef CTRL_STEP_FW_DRIVER_BASE_H #define CTRL_STEP_FW_DRIVER_BASE_H #include class DriverBase { public: virtual void Init() = 0; /* * FOC current vector direction is described as counts, that means * we divide a 360° circle into N counts, and _directionInCount is * between (0 ~ N-1), and after calculation the current range is (0 ~ 3300mA) */ virtual void SetFocCurrentVector(uint32_t _directionInCount, int32_t _current_mA) = 0; virtual void Sleep() = 0; virtual void Brake() = 0; protected: // Used to composite the FOC current vector virtual void SetTwoCoilsCurrent(uint16_t _currentA_mA, uint16_t _currentB_mA) = 0; typedef struct { uint16_t sinMapPtr; int16_t sinMapData; uint16_t dacValue12Bits; } FastSinToDac_t; FastSinToDac_t phaseB{}; FastSinToDac_t phaseA{}; }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Driver/sin_map.h ================================================ #ifndef SIN_FORM_H #define SIN_FORM_H #ifdef __cplusplus extern "C" { #endif #include #include #define sin_pi_m2_dpix 1024 #define sin_pi_m2_dpiybit 12 const int16_t sin_pi_m2[sin_pi_m2_dpix + 1] = { 0, 25, 50, 75, 101, 126, 151, 176, 201, 226, 251, 276, 301, 326, 351, 376, 401, 426, 451, 476, 501, 526, 551, 576, 601, 626, 651, 675, 700, 725, 750, 774, 799, 824, 848, 873, 897, 922, 946, 971, 995, 1020, 1044, 1068, 1092, 1117, 1141, 1165, 1189, 1213, 1237, 1261, 1285, 1309, 1332, 1356, 1380, 1404, 1427, 1451, 1474, 1498, 1521, 1544, 1567, 1591, 1614, 1637, 1660, 1683, 1706, 1729, 1751, 1774, 1797, 1819, 1842, 1864, 1886, 1909, 1931, 1953, 1975, 1997, 2019, 2041, 2062, 2084, 2106, 2127, 2149, 2170, 2191, 2213, 2234, 2255, 2276, 2296, 2317, 2338, 2359, 2379, 2399, 2420, 2440, 2460, 2480, 2500, 2520, 2540, 2559, 2579, 2598, 2618, 2637, 2656, 2675, 2694, 2713, 2732, 2751, 2769, 2788, 2806, 2824, 2843, 2861, 2878, 2896, 2914, 2932, 2949, 2967, 2984, 3001, 3018, 3035, 3052, 3068, 3085, 3102, 3118, 3134, 3150, 3166, 3182, 3198, 3214, 3229, 3244, 3260, 3275, 3290, 3305, 3320, 3334, 3349, 3363, 3378, 3392, 3406, 3420, 3433, 3447, 3461, 3474, 3487, 3500, 3513, 3526, 3539, 3551, 3564, 3576, 3588, 3600, 3612, 3624, 3636, 3647, 3659, 3670, 3681, 3692, 3703, 3713, 3724, 3734, 3745, 3755, 3765, 3775, 3784, 3794, 3803, 3812, 3822, 3831, 3839, 3848, 3857, 3865, 3873, 3881, 3889, 3897, 3905, 3912, 3920, 3927, 3934, 3941, 3948, 3954, 3961, 3967, 3973, 3979, 3985, 3991, 3996, 4002, 4007, 4012, 4017, 4022, 4027, 4031, 4036, 4040, 4044, 4048, 4052, 4055, 4059, 4062, 4065, 4068, 4071, 4074, 4076, 4079, 4081, 4083, 4085, 4087, 4088, 4090, 4091, 4092, 4093, 4094, 4095, 4095, 4096, 4096, 4096, 4096, 4096, 4095, 4095, 4094, 4093, 4092, 4091, 4090, 4088, 4087, 4085, 4083, 4081, 4079, 4076, 4074, 4071, 4068, 4065, 4062, 4059, 4055, 4052, 4048, 4044, 4040, 4036, 4031, 4027, 4022, 4017, 4012, 4007, 4002, 3996, 3991, 3985, 3979, 3973, 3967, 3961, 3954, 3948, 3941, 3934, 3927, 3920, 3912, 3905, 3897, 3889, 3881, 3873, 3865, 3857, 3848, 3839, 3831, 3822, 3812, 3803, 3794, 3784, 3775, 3765, 3755, 3745, 3734, 3724, 3713, 3703, 3692, 3681, 3670, 3659, 3647, 3636, 3624, 3612, 3600, 3588, 3576, 3564, 3551, 3539, 3526, 3513, 3500, 3487, 3474, 3461, 3447, 3433, 3420, 3406, 3392, 3378, 3363, 3349, 3334, 3320, 3305, 3290, 3275, 3260, 3244, 3229, 3214, 3198, 3182, 3166, 3150, 3134, 3118, 3102, 3085, 3068, 3052, 3035, 3018, 3001, 2984, 2967, 2949, 2932, 2914, 2896, 2878, 2861, 2843, 2824, 2806, 2788, 2769, 2751, 2732, 2713, 2694, 2675, 2656, 2637, 2618, 2598, 2579, 2559, 2540, 2520, 2500, 2480, 2460, 2440, 2420, 2399, 2379, 2359, 2338, 2317, 2296, 2276, 2255, 2234, 2213, 2191, 2170, 2149, 2127, 2106, 2084, 2062, 2041, 2019, 1997, 1975, 1953, 1931, 1909, 1886, 1864, 1842, 1819, 1797, 1774, 1751, 1729, 1706, 1683, 1660, 1637, 1614, 1591, 1567, 1544, 1521, 1498, 1474, 1451, 1427, 1404, 1380, 1356, 1332, 1309, 1285, 1261, 1237, 1213, 1189, 1165, 1141, 1117, 1092, 1068, 1044, 1020, 995, 971, 946, 922, 897, 873, 848, 824, 799, 774, 750, 725, 700, 675, 651, 626, 601, 576, 551, 526, 501, 476, 451, 426, 401, 376, 351, 326, 301, 276, 251, 226, 201, 176, 151, 126, 101, 75, 50, 25, 0, -25, -50, -75, -101, -126, -151, -176, -201, -226, -251, -276, -301, -326, -351, -376, -401, -426, -451, -476, -501, -526, -551, -576, -601, -626, -651, -675, -700, -725, -750, -774, -799, -824, -848, -873, -897, -922, -946, -971, -995, -1020, -1044, -1068, -1092, -1117, -1141, -1165, -1189, -1213, -1237, -1261, -1285, -1309, -1332, -1356, -1380, -1404, -1427, -1451, -1474, -1498, -1521, -1544, -1567, -1591, -1614, -1637, -1660, -1683, -1706, -1729, -1751, -1774, -1797, -1819, -1842, -1864, -1886, -1909, -1931, -1953, -1975, -1997, -2019, -2041, -2062, -2084, -2106, -2127, -2149, -2170, -2191, -2213, -2234, -2255, -2276, -2296, -2317, -2338, -2359, -2379, -2399, -2420, -2440, -2460, -2480, -2500, -2520, -2540, -2559, -2579, -2598, -2618, -2637, -2656, -2675, -2694, -2713, -2732, -2751, -2769, -2788, -2806, -2824, -2843, -2861, -2878, -2896, -2914, -2932, -2949, -2967, -2984, -3001, -3018, -3035, -3052, -3068, -3085, -3102, -3118, -3134, -3150, -3166, -3182, -3198, -3214, -3229, -3244, -3260, -3275, -3290, -3305, -3320, -3334, -3349, -3363, -3378, -3392, -3406, -3420, -3433, -3447, -3461, -3474, -3487, -3500, -3513, -3526, -3539, -3551, -3564, -3576, -3588, -3600, -3612, -3624, -3636, -3647, -3659, -3670, -3681, -3692, -3703, -3713, -3724, -3734, -3745, -3755, -3765, -3775, -3784, -3794, -3803, -3812, -3822, -3831, -3839, -3848, -3857, -3865, -3873, -3881, -3889, -3897, -3905, -3912, -3920, -3927, -3934, -3941, -3948, -3954, -3961, -3967, -3973, -3979, -3985, -3991, -3996, -4002, -4007, -4012, -4017, -4022, -4027, -4031, -4036, -4040, -4044, -4048, -4052, -4055, -4059, -4062, -4065, -4068, -4071, -4074, -4076, -4079, -4081, -4083, -4085, -4087, -4088, -4090, -4091, -4092, -4093, -4094, -4095, -4095, -4096, -4096, -4096, -4096, -4096, -4095, -4095, -4094, -4093, -4092, -4091, -4090, -4088, -4087, -4085, -4083, -4081, -4079, -4076, -4074, -4071, -4068, -4065, -4062, -4059, -4055, -4052, -4048, -4044, -4040, -4036, -4031, -4027, -4022, -4017, -4012, -4007, -4002, -3996, -3991, -3985, -3979, -3973, -3967, -3961, -3954, -3948, -3941, -3934, -3927, -3920, -3912, -3905, -3897, -3889, -3881, -3873, -3865, -3857, -3848, -3839, -3831, -3822, -3812, -3803, -3794, -3784, -3775, -3765, -3755, -3745, -3734, -3724, -3713, -3703, -3692, -3681, -3670, -3659, -3647, -3636, -3624, -3612, -3600, -3588, -3576, -3564, -3551, -3539, -3526, -3513, -3500, -3487, -3474, -3461, -3447, -3433, -3420, -3406, -3392, -3378, -3363, -3349, -3334, -3320, -3305, -3290, -3275, -3260, -3244, -3229, -3214, -3198, -3182, -3166, -3150, -3134, -3118, -3102, -3085, -3068, -3052, -3035, -3018, -3001, -2984, -2967, -2949, -2932, -2914, -2896, -2878, -2861, -2843, -2824, -2806, -2788, -2769, -2751, -2732, -2713, -2694, -2675, -2656, -2637, -2618, -2598, -2579, -2559, -2540, -2520, -2500, -2480, -2460, -2440, -2420, -2399, -2379, -2359, -2338, -2317, -2296, -2276, -2255, -2234, -2213, -2191, -2170, -2149, -2127, -2106, -2084, -2062, -2041, -2019, -1997, -1975, -1953, -1931, -1909, -1886, -1864, -1842, -1819, -1797, -1774, -1751, -1729, -1706, -1683, -1660, -1637, -1614, -1591, -1567, -1544, -1521, -1498, -1474, -1451, -1427, -1404, -1380, -1356, -1332, -1309, -1285, -1261, -1237, -1213, -1189, -1165, -1141, -1117, -1092, -1068, -1044, -1020, -995, -971, -946, -922, -897, -873, -848, -824, -799, -774, -750, -725, -700, -675, -651, -626, -601, -576, -551, -526, -501, -476, -451, -426, -401, -376, -351, -326, -301, -276, -251, -226, -201, -176, -151, -126, -101, -75, -50, -25, 0, }; #ifdef __cplusplus } #endif #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Driver/tb67h450_base.cpp ================================================ #include "tb67h450_base.h" #include "sin_map.h" void TB67H450Base::Init() { InitGpio(); InitPwm(); } void TB67H450Base::SetFocCurrentVector(uint32_t _directionInCount, int32_t _current_mA) { phaseB.sinMapPtr = (_directionInCount) & (0x000003FF); phaseA.sinMapPtr = (phaseB.sinMapPtr + (256)) & (0x000003FF); phaseA.sinMapData = sin_pi_m2[phaseA.sinMapPtr]; phaseB.sinMapData = sin_pi_m2[phaseB.sinMapPtr]; uint32_t dac_reg = abs(_current_mA); dac_reg = (uint32_t) (dac_reg * 5083) >> 12; dac_reg = dac_reg & (0x00000FFF); phaseA.dacValue12Bits = (uint32_t) (dac_reg * abs(phaseA.sinMapData)) >> sin_pi_m2_dpiybit; phaseB.dacValue12Bits = (uint32_t) (dac_reg * abs(phaseB.sinMapData)) >> sin_pi_m2_dpiybit; SetTwoCoilsCurrent(phaseA.dacValue12Bits, phaseB.dacValue12Bits); if (phaseA.sinMapData > 0) SetInputA(true, false); else if (phaseA.sinMapData < 0) SetInputA(false, true); else SetInputA(true, true); if (phaseB.sinMapData > 0) SetInputB(true, false); else if (phaseB.sinMapData < 0) SetInputB(false, true); else SetInputB(true, true); } void TB67H450Base::SetTwoCoilsCurrent(uint16_t _currentA_3300mAIn12Bits, uint16_t _currentB_3300mAIn12Bits) { /* * After SetFocCurrentVector calculation a 12bits value was mapped to 0~3300mA. * And due to used 0.1Ohm shank resistor, 0~3300mV V-ref means 0~3300mA CurrentSetPoint, * For more details, see TB67H450 Datasheet page.10 . */ DacOutputVoltage(_currentA_3300mAIn12Bits, _currentB_3300mAIn12Bits); } void TB67H450Base::Sleep() { phaseA.dacValue12Bits = 0; phaseB.dacValue12Bits = 0; SetTwoCoilsCurrent(phaseA.dacValue12Bits, phaseB.dacValue12Bits); SetInputA(false, false); SetInputB(false, false); } void TB67H450Base::Brake() { phaseA.dacValue12Bits = 0; phaseB.dacValue12Bits = 0; SetTwoCoilsCurrent(phaseA.dacValue12Bits, phaseB.dacValue12Bits); SetInputA(true, true); SetInputB(true, true); } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Driver/tb67h450_base.h ================================================ #ifndef CTRL_STEP_FW_TB67H450_BASE_H #define CTRL_STEP_FW_TB67H450_BASE_H #include "driver_base.h" class TB67H450Base : public DriverBase { public: explicit TB67H450Base() = default; void Init() override; void SetFocCurrentVector(uint32_t _directionInCount, int32_t _current_mA) override; void Sleep() override; void Brake() override; protected: void SetTwoCoilsCurrent(uint16_t _currentA_3300mAIn12Bits, uint16_t _currentB_3300mAIn12Bits) override; /***** Port Specified Implements *****/ virtual void InitGpio(); virtual void InitPwm(); virtual void DacOutputVoltage(uint16_t _voltageA_3300mVIn12bits, uint16_t _voltageB_3300mVIn12bits); virtual void SetInputA(bool _statusAp, bool _statusAm); virtual void SetInputB(bool _statusBp, bool _statusBm); }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Motor/motion_planner.cpp ================================================ #include "motion_planner.h" #include "math.h" void MotionPlanner::CurrentTracker::Init() { SetCurrentAcc(context->config->ratedCurrentAcc); } void MotionPlanner::CurrentTracker::NewTask(int32_t _realCurrent) { currentIntegral = 0; trackCurrent = _realCurrent; } void MotionPlanner::CurrentTracker::CalcSoftGoal(int32_t _goalCurrent) { int32_t deltaCurrent = _goalCurrent - trackCurrent; if (deltaCurrent == 0) { trackCurrent = _goalCurrent; } else if (deltaCurrent > 0) { if (trackCurrent >= 0) { CalcCurrentIntegral(currentAcc); if (trackCurrent >= _goalCurrent) { currentIntegral = 0; trackCurrent = _goalCurrent; } } else { CalcCurrentIntegral(currentAcc); if ((int32_t) trackCurrent >= 0) { currentIntegral = 0; trackCurrent = 0; } } } else if (deltaCurrent < 0) { if (trackCurrent <= 0) { CalcCurrentIntegral(-currentAcc); if ((int32_t) trackCurrent <= (int32_t) _goalCurrent) { currentIntegral = 0; trackCurrent = _goalCurrent; } } else { CalcCurrentIntegral(-currentAcc); if ((int32_t) trackCurrent <= 0) { currentIntegral = 0; trackCurrent = 0; } } } goCurrent = (int32_t) trackCurrent; } void MotionPlanner::CurrentTracker::CalcCurrentIntegral(int32_t _current) { currentIntegral += _current; trackCurrent += currentIntegral / context->CONTROL_FREQUENCY; currentIntegral = currentIntegral % context->CONTROL_FREQUENCY; } void MotionPlanner::CurrentTracker::SetCurrentAcc(int32_t _currentAcc) { currentAcc = _currentAcc; } void MotionPlanner::VelocityTracker::Init() { SetVelocityAcc(context->config->ratedVelocityAcc); } void MotionPlanner::VelocityTracker::SetVelocityAcc(int32_t _velocityAcc) { velocityAcc = _velocityAcc; } void MotionPlanner::VelocityTracker::NewTask(int32_t _realVelocity) { velocityIntegral = 0; trackVelocity = _realVelocity; } void MotionPlanner::VelocityTracker::CalcSoftGoal(int32_t _goalVelocity) { int32_t deltaVelocity = _goalVelocity - trackVelocity; if (deltaVelocity == 0) { trackVelocity = _goalVelocity; } else if (deltaVelocity > 0) { if (trackVelocity >= 0) { CalcVelocityIntegral(velocityAcc); if (trackVelocity >= _goalVelocity) { velocityIntegral = 0; trackVelocity = _goalVelocity; } } else { CalcVelocityIntegral(velocityAcc); if (trackVelocity >= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else if (deltaVelocity < 0) { if (trackVelocity <= 0) { CalcVelocityIntegral(-velocityAcc); if (trackVelocity <= _goalVelocity) { velocityIntegral = 0; trackVelocity = _goalVelocity; } } else { CalcVelocityIntegral(-velocityAcc); if (trackVelocity <= 0) { velocityIntegral = 0; trackVelocity = 0; } } } goVelocity = (int32_t) trackVelocity; } void MotionPlanner::VelocityTracker::CalcVelocityIntegral(int32_t _velocity) { velocityIntegral += _velocity; trackVelocity += velocityIntegral / context->CONTROL_FREQUENCY; velocityIntegral = velocityIntegral % context->CONTROL_FREQUENCY; } void MotionPlanner::PositionTracker::Init() { SetVelocityAcc(context->config->ratedVelocityAcc); /* * Allow to locking-brake when velocity is lower than (speedLockingBrake). * The best value should be (ratedMoveAcc/1000) */ speedLockingBrake = context->config->ratedVelocityAcc / 1000; } void MotionPlanner::PositionTracker::SetVelocityAcc(int32_t value) { velocityUpAcc = value; velocityDownAcc = value; quickVelocityDownAcc = 0.5f / (float) velocityDownAcc; } void MotionPlanner::PositionTracker::NewTask(int32_t real_location, int32_t real_speed) { velocityIntegral = 0; trackVelocity = real_speed; positionIntegral = 0; trackPosition = real_location; } void MotionPlanner::PositionTracker::CalcSoftGoal(int32_t _goalPosition) { int32_t deltaPosition = _goalPosition - trackPosition; if (deltaPosition == 0) { if ((trackVelocity >= -speedLockingBrake) && (trackVelocity <= speedLockingBrake)) { velocityIntegral = 0; trackVelocity = 0; positionIntegral = 0; } else if (trackVelocity > 0) { CalcVelocityIntegral(-velocityDownAcc); if (trackVelocity <= 0) { velocityIntegral = 0; trackVelocity = 0; } } else if (trackVelocity < 0) { CalcVelocityIntegral(velocityDownAcc); if (trackVelocity >= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else { if (trackVelocity == 0) { if (deltaPosition > 0) { CalcVelocityIntegral(velocityUpAcc); } else { CalcVelocityIntegral(-velocityUpAcc); } } else if ((deltaPosition > 0) && (trackVelocity > 0)) { if (trackVelocity <= context->config->ratedVelocity) { auto need_down_location = (int32_t) ((float) trackVelocity * (float) trackVelocity * (float) quickVelocityDownAcc); if (abs(deltaPosition) > need_down_location) { if (trackVelocity < context->config->ratedVelocity) { CalcVelocityIntegral(velocityUpAcc); if (trackVelocity >= context->config->ratedVelocity) { velocityIntegral = 0; trackVelocity = context->config->ratedVelocity; } } else if (trackVelocity > context->config->ratedVelocity) { CalcVelocityIntegral(-velocityDownAcc); } } else { CalcVelocityIntegral(-velocityDownAcc); if (trackVelocity <= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else { CalcVelocityIntegral(-velocityDownAcc); if (trackVelocity <= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else if ((deltaPosition < 0) && (trackVelocity < 0)) { if (trackVelocity >= -context->config->ratedVelocity) { auto need_down_location = (int32_t) ((float) trackVelocity * (float) trackVelocity * (float) quickVelocityDownAcc); if (abs(deltaPosition) > need_down_location) { if (trackVelocity > -context->config->ratedVelocity) { CalcVelocityIntegral(-velocityUpAcc); if (trackVelocity <= -context->config->ratedVelocity) { velocityIntegral = 0; trackVelocity = -context->config->ratedVelocity; } } else if (trackVelocity < -context->config->ratedVelocity) { CalcVelocityIntegral(velocityDownAcc); } } else { CalcVelocityIntegral(velocityDownAcc); if (trackVelocity >= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else { CalcVelocityIntegral(velocityDownAcc); if (trackVelocity >= 0) { velocityIntegral = 0; trackVelocity = 0; } } } else if ((deltaPosition < 0) && (trackVelocity > 0)) { CalcVelocityIntegral(-velocityDownAcc); if (trackVelocity <= 0) { velocityIntegral = 0; trackVelocity = 0; } } else if (((deltaPosition > 0) && (trackVelocity < 0))) { CalcVelocityIntegral(velocityDownAcc); if (trackVelocity >= 0) { velocityIntegral = 0; trackVelocity = 0; } } } CalcPositionIntegral(trackVelocity); go_location = (int32_t) trackPosition; go_velocity = (int32_t) trackVelocity; } void MotionPlanner::PositionTracker::CalcPositionIntegral(int32_t value) { positionIntegral += value; trackPosition += positionIntegral / context->CONTROL_FREQUENCY; positionIntegral = positionIntegral % context->CONTROL_FREQUENCY; } void MotionPlanner::PositionTracker::CalcVelocityIntegral(int32_t value) { velocityIntegral += value; trackVelocity += velocityIntegral / context->CONTROL_FREQUENCY; velocityIntegral = velocityIntegral % context->CONTROL_FREQUENCY; } void MotionPlanner::PositionInterpolator::Init() { } void MotionPlanner::PositionInterpolator::NewTask(int32_t _realPosition, int32_t _realVelocity) { recordPosition = _realPosition; recordPositionLast = _realPosition; estPosition = _realPosition; estVelocity = _realVelocity; } void MotionPlanner::PositionInterpolator::CalcSoftGoal(int32_t _goalPosition) { recordPositionLast = recordPosition; recordPosition = _goalPosition; estPositionIntegral += (((recordPosition - recordPositionLast) * context->CONTROL_FREQUENCY) + ((estVelocity << 6) - estVelocity)); estVelocity = estPositionIntegral >> 6; estPositionIntegral -= (estVelocity << 6); estPosition = recordPosition; goPosition = estPosition; goVelocity = estVelocity; } void MotionPlanner::TrajectoryTracker::SetSlowDownVelocityAcc(int32_t value) { velocityDownAcc = value; } void MotionPlanner::TrajectoryTracker::NewTask(int32_t real_location, int32_t real_speed) { updateTime = 0; overtimeFlag = false; dynamicVelocityAccRemainder = 0; velocityNow = real_speed; velovityNowRemainder = 0; positionNow = real_location; } void MotionPlanner::TrajectoryTracker::CalcSoftGoal(int32_t _goalPosition, int32_t _goalVelocity) { if (_goalVelocity != recordVelocity || _goalPosition != recordPosition) { updateTime = 0; recordVelocity = _goalVelocity; recordPosition = _goalPosition; dynamicVelocityAcc = (int32_t) ((float) (_goalVelocity + velocityNow) * (float) (_goalVelocity - velocityNow) / (float) (2 * (_goalPosition - positionNow))); overtimeFlag = false; } else { if (updateTime >= (updateTimeout * 1000)) overtimeFlag = true; else updateTime += context->CONTROL_PERIOD; } if (overtimeFlag) { if (velocityNow == 0) { dynamicVelocityAccRemainder = 0; } else if (velocityNow > 0) { CalcVelocityIntegral(-velocityDownAcc); if (velocityNow <= 0) { dynamicVelocityAccRemainder = 0; velocityNow = 0; } } else { CalcVelocityIntegral(velocityDownAcc); if (velocityNow >= 0) { dynamicVelocityAccRemainder = 0; velocityNow = 0; } } } else { CalcVelocityIntegral(dynamicVelocityAcc); } CalcPositionIntegral(velocityNow); goPosition = positionNow; goVelocity = velocityNow; } void MotionPlanner::TrajectoryTracker::CalcVelocityIntegral(int32_t value) { dynamicVelocityAccRemainder += value; // sum up last remainder velocityNow += dynamicVelocityAccRemainder / context->CONTROL_FREQUENCY; dynamicVelocityAccRemainder = dynamicVelocityAccRemainder % context->CONTROL_FREQUENCY; // calc remainder } void MotionPlanner::TrajectoryTracker::CalcPositionIntegral(int32_t value) { velovityNowRemainder += value; positionNow += velovityNowRemainder / context->CONTROL_FREQUENCY; velovityNowRemainder = velovityNowRemainder % context->CONTROL_FREQUENCY; } void MotionPlanner::TrajectoryTracker::Init(int32_t _updateTimeout) { //SetSlowDownVelocityAcc(context->config->ratedVelocityAcc / 10); SetSlowDownVelocityAcc(context->config->ratedVelocityAcc); updateTimeout = _updateTimeout; } void MotionPlanner::AttachConfig(MotionPlanner::Config_t* _config) { config = _config; currentTracker.Init(); velocityTracker.Init(); positionTracker.Init(); positionInterpolator.Init(); trajectoryTracker.Init(200); } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Motor/motion_planner.h ================================================ #ifndef CTRL_STEP_FW_MOTION_PLANNER_H #define CTRL_STEP_FW_MOTION_PLANNER_H #include class MotionPlanner { public: MotionPlanner() = default; const int32_t CONTROL_FREQUENCY = 20000; // Hz const int32_t CONTROL_PERIOD = 1000000 / CONTROL_FREQUENCY; // uS struct Config_t { int32_t encoderHomeOffset; int32_t caliCurrent; int32_t ratedCurrent; int32_t ratedVelocity; int32_t ratedVelocityAcc; int32_t ratedCurrentAcc; }; class CurrentTracker { public: explicit CurrentTracker(MotionPlanner* _context) : context(_context) { } int32_t goCurrent = 0; void Init(); void SetCurrentAcc(int32_t _currentAcc); void NewTask(int32_t _realCurrent); void CalcSoftGoal(int32_t _goalCurrent); private: MotionPlanner* context; int32_t currentAcc = 0; int32_t currentIntegral = 0; int32_t trackCurrent = 0; void CalcCurrentIntegral(int32_t _current); }; CurrentTracker currentTracker = CurrentTracker(this); class VelocityTracker { public: explicit VelocityTracker(MotionPlanner* _context) : context(_context) { } int32_t goVelocity = 0; void Init(); void SetVelocityAcc(int32_t _velocityAcc); void NewTask(int32_t _realVelocity); void CalcSoftGoal(int32_t _goalVelocity); private: MotionPlanner* context; int32_t velocityAcc = 0; int32_t velocityIntegral = 0; int32_t trackVelocity = 0; void CalcVelocityIntegral(int32_t _velocity); }; VelocityTracker velocityTracker = VelocityTracker(this); class PositionTracker { public: explicit PositionTracker(MotionPlanner* _context) : context(_context) { } int32_t go_location = 0; int32_t go_velocity = 0; void Init(); void SetVelocityAcc(int32_t value); void NewTask(int32_t real_location, int32_t real_speed); void CalcSoftGoal(int32_t _goalPosition); private: MotionPlanner* context; int32_t velocityUpAcc = 0; int32_t velocityDownAcc = 0; float quickVelocityDownAcc = 0; int32_t speedLockingBrake = 0; int32_t velocityIntegral = 0; int32_t trackVelocity = 0; int32_t positionIntegral = 0; int32_t trackPosition = 0; void CalcVelocityIntegral(int32_t value); void CalcPositionIntegral(int32_t value); }; PositionTracker positionTracker = PositionTracker(this); class PositionInterpolator { public: explicit PositionInterpolator(MotionPlanner* _context) : context(_context) { } int32_t goPosition = 0; int32_t goVelocity = 0; void Init(); void NewTask(int32_t _realPosition, int32_t _realVelocity); void CalcSoftGoal(int32_t _goalPosition); private: MotionPlanner* context; int32_t recordPosition = 0; int32_t recordPositionLast = 0; int32_t estPosition = 0; int32_t estPositionIntegral = 0; int32_t estVelocity = 0; }; PositionInterpolator positionInterpolator = PositionInterpolator(this); class TrajectoryTracker { public: explicit TrajectoryTracker(MotionPlanner* _context) : context(_context) { } int32_t goPosition = 0; int32_t goVelocity = 0; void Init(int32_t _updateTimeout); void SetSlowDownVelocityAcc(int32_t value); void NewTask(int32_t real_location, int32_t real_speed); void CalcSoftGoal(int32_t _goalPosition, int32_t _goalVelocity); private: MotionPlanner* context; int32_t velocityDownAcc = 0; int32_t dynamicVelocityAcc = 0; int32_t updateTime = 0; int32_t updateTimeout = 200; // (ms) motion set-points cmd max interval bool overtimeFlag = false; int32_t recordVelocity = 0; int32_t recordPosition = 0; int32_t dynamicVelocityAccRemainder = 0; int32_t velocityNow = 0; int32_t velovityNowRemainder = 0; int32_t positionNow = 0; void CalcVelocityIntegral(int32_t value); void CalcPositionIntegral(int32_t value); }; TrajectoryTracker trajectoryTracker = TrajectoryTracker(this); void AttachConfig(Config_t* _config); private: Config_t* config = nullptr; }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Motor/motor.cpp ================================================ #include "configurations.h" #include "motor.h" #include void Motor::Tick20kHz() { // 1.Encoder data Update encoder->UpdateAngle(); // 2.Motor Control Update CloseLoopControlTick(); } void Motor::AttachEncoder(EncoderBase* _encoder) { encoder = _encoder; } void Motor::AttachDriver(DriverBase* _driver) { driver = _driver; } void Motor::CloseLoopControlTick() { /************************************ First Called ************************************/ static bool isFirstCalled = true; if (isFirstCalled) { int32_t angle; if (config.motionParams.encoderHomeOffset < MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS / 2) { angle = encoder->angleData.rectifiedAngle > config.motionParams.encoderHomeOffset + MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS / 2 ? encoder->angleData.rectifiedAngle - MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS : encoder->angleData.rectifiedAngle; } else { angle = encoder->angleData.rectifiedAngle < config.motionParams.encoderHomeOffset - MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS / 2 ? encoder->angleData.rectifiedAngle + MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS : encoder->angleData.rectifiedAngle; } controller->realLapPosition = angle; controller->realLapPositionLast = angle; controller->realPosition = angle; controller->realPositionLast = angle; isFirstCalled = false; return; } /********************************* Update Data *********************************/ int32_t deltaLapPosition; // Read Encoder data controller->realLapPositionLast = controller->realLapPosition; controller->realLapPosition = encoder->angleData.rectifiedAngle; // Lap-Position calculate deltaLapPosition = controller->realLapPosition - controller->realLapPositionLast; if (deltaLapPosition > MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS >> 1) deltaLapPosition -= MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; else if (deltaLapPosition < -MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS >> 1) deltaLapPosition += MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; // Naive-Position calculate controller->realPositionLast = controller->realPosition; controller->realPosition += deltaLapPosition; /********************************* Estimate Data *********************************/ // Estimate Velocity controller->estVelocityIntegral += ( (controller->realPosition - controller->realPositionLast) * motionPlanner.CONTROL_FREQUENCY + ((controller->estVelocity << 5) - controller->estVelocity) ); controller->estVelocity = controller->estVelocityIntegral >> 5; controller->estVelocityIntegral -= (controller->estVelocity << 5); // Estimate Position controller->estLeadPosition = Controller::CompensateAdvancedAngle(controller->estVelocity); controller->estPosition = controller->realPosition + controller->estLeadPosition; // Estimate Error controller->estError = controller->softPosition - controller->estPosition; /************************************ Ctrl Loop ************************************/ if (controller->isStalled || controller->softDisable || !encoder->IsCalibrated()) { controller->ClearIntegral(); // clear integrals controller->focPosition = 0; // clear outputs controller->focCurrent = 0; driver->Sleep(); } else if (controller->softBrake) { controller->ClearIntegral(); controller->focPosition = 0; controller->focCurrent = 0; driver->Brake(); } else { switch (controller->modeRunning) { case MODE_STEP_DIR: controller->CalcDceToOutput(controller->softPosition, controller->softVelocity); break; case MODE_STOP: driver->Sleep(); break; case MODE_COMMAND_Trajectory: controller->CalcDceToOutput(controller->softPosition, controller->softVelocity); break; case MODE_COMMAND_CURRENT: controller->CalcCurrentToOutput(controller->softCurrent); break; case MODE_COMMAND_VELOCITY: controller->CalcPidToOutput(controller->softVelocity); break; case MODE_COMMAND_POSITION: controller->CalcDceToOutput(controller->softPosition, controller->softVelocity); break; case MODE_PWM_CURRENT: controller->CalcCurrentToOutput(controller->softCurrent); break; case MODE_PWM_VELOCITY: controller->CalcPidToOutput(controller->softVelocity); break; case MODE_PWM_POSITION: controller->CalcDceToOutput(controller->softPosition, controller->softVelocity); break; default: break; } } /******************************* Mode Change Handle *******************************/ if (controller->modeRunning != controller->requestMode) { controller->modeRunning = controller->requestMode; controller->softNewCurve = true; } /******************************* Update Hard-Goal *******************************/ if (controller->goalVelocity > config.motionParams.ratedVelocity) controller->goalVelocity = config.motionParams.ratedVelocity; else if (controller->goalVelocity < -config.motionParams.ratedVelocity) controller->goalVelocity = -config.motionParams.ratedVelocity; if (controller->goalCurrent > config.motionParams.ratedCurrent) controller->goalCurrent = config.motionParams.ratedCurrent; else if (controller->goalCurrent < -config.motionParams.ratedCurrent) controller->goalCurrent = -config.motionParams.ratedCurrent; /******************************** Motion Plan *********************************/ if ((controller->softDisable && !controller->goalDisable) || (controller->softBrake && !controller->goalBrake)) { controller->softNewCurve = true; } if (controller->softNewCurve) { controller->softNewCurve = false; controller->ClearIntegral(); controller->ClearStallFlag(); switch (controller->modeRunning) { case MODE_STOP: break; case MODE_COMMAND_POSITION: motionPlanner.positionTracker.NewTask(controller->estPosition, controller->estVelocity); break; case MODE_COMMAND_VELOCITY: motionPlanner.velocityTracker.NewTask(controller->estVelocity); break; case MODE_COMMAND_CURRENT: motionPlanner.currentTracker.NewTask(controller->focCurrent); break; case MODE_COMMAND_Trajectory: motionPlanner.trajectoryTracker.NewTask(controller->estPosition, controller->estVelocity); break; case MODE_PWM_POSITION: motionPlanner.positionTracker.NewTask(controller->estPosition, controller->estVelocity); break; case MODE_PWM_VELOCITY: motionPlanner.velocityTracker.NewTask(controller->estVelocity); break; case MODE_PWM_CURRENT: motionPlanner.currentTracker.NewTask(controller->focCurrent); break; case MODE_STEP_DIR: motionPlanner.positionInterpolator.NewTask(controller->estPosition, controller->estVelocity); // step/dir mode uses delta-position, so stay where we are controller->goalPosition = controller->estPosition; break; default: break; } } /******************************* Update Soft Goal *******************************/ switch (controller->modeRunning) { case MODE_STOP: break; case MODE_COMMAND_POSITION: motionPlanner.positionTracker.CalcSoftGoal(controller->goalPosition); controller->softPosition = motionPlanner.positionTracker.go_location; controller->softVelocity = motionPlanner.positionTracker.go_velocity; break; case MODE_COMMAND_VELOCITY: motionPlanner.velocityTracker.CalcSoftGoal(controller->goalVelocity); controller->softVelocity = motionPlanner.velocityTracker.goVelocity; break; case MODE_COMMAND_CURRENT: motionPlanner.currentTracker.CalcSoftGoal(controller->goalCurrent); controller->softCurrent = motionPlanner.currentTracker.goCurrent; break; case MODE_COMMAND_Trajectory: motionPlanner.trajectoryTracker.CalcSoftGoal(controller->goalPosition, controller->goalVelocity); controller->softPosition = motionPlanner.trajectoryTracker.goPosition; controller->softVelocity = motionPlanner.trajectoryTracker.goVelocity; break; case MODE_PWM_POSITION: motionPlanner.positionTracker.CalcSoftGoal(controller->goalPosition); controller->softPosition = motionPlanner.positionTracker.go_location; controller->softVelocity = motionPlanner.positionTracker.go_velocity; break; case MODE_PWM_VELOCITY: motionPlanner.velocityTracker.CalcSoftGoal(controller->goalVelocity); controller->softVelocity = motionPlanner.velocityTracker.goVelocity; break; case MODE_PWM_CURRENT: motionPlanner.currentTracker.CalcSoftGoal(controller->goalCurrent); controller->softCurrent = motionPlanner.currentTracker.goCurrent; break; case MODE_STEP_DIR: motionPlanner.positionInterpolator.CalcSoftGoal(controller->goalPosition); controller->softPosition = motionPlanner.positionInterpolator.goPosition; controller->softVelocity = motionPlanner.positionInterpolator.goVelocity; break; default: break; } controller->softDisable = controller->goalDisable; controller->softBrake = controller->goalBrake; /******************************** State Check ********************************/ int32_t current = abs(controller->focCurrent); // Stall detect if (controller->config->stallProtectSwitch) { if (// Current Mode ((controller->modeRunning == MODE_COMMAND_CURRENT || controller->modeRunning == MODE_PWM_CURRENT) && (current != 0)) || // Other Mode current == config.motionParams.ratedCurrent) { if (abs(controller->estVelocity) < MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS / 5) { if (controller->stalledTime >= 1000 * 1000) controller->isStalled = true; else controller->stalledTime += motionPlanner.CONTROL_PERIOD; } } else // can ONLY clear stall flag MANUALLY { controller->stalledTime = 0; } } // Overload detect if ((controller->modeRunning != MODE_COMMAND_CURRENT) && (controller->modeRunning != MODE_PWM_CURRENT) && (current == config.motionParams.ratedCurrent)) { if (controller->overloadTime >= 1000 * 1000) controller->overloadFlag = true; else controller->overloadTime += motionPlanner.CONTROL_PERIOD; } else // auto clear overload flag when released { controller->overloadTime = 0; controller->overloadFlag = false; } /******************************** Update State ********************************/ if (!encoder->IsCalibrated()) controller->state = STATE_NO_CALIB; else if (controller->modeRunning == MODE_STOP) controller->state = STATE_STOP; else if (controller->isStalled) controller->state = STATE_STALL; else if (controller->overloadFlag) controller->state = STATE_OVERLOAD; else { if (controller->modeRunning == MODE_COMMAND_POSITION) { if ((controller->softPosition == controller->goalPosition) && (controller->softVelocity == 0)) controller->state = STATE_FINISH; else controller->state = STATE_RUNNING; } else if (controller->modeRunning == MODE_COMMAND_VELOCITY) { if (controller->softVelocity == controller->goalVelocity) controller->state = STATE_FINISH; else controller->state = STATE_RUNNING; } else if (controller->modeRunning == MODE_COMMAND_CURRENT) { if (controller->softCurrent == controller->goalCurrent) controller->state = STATE_FINISH; else controller->state = STATE_RUNNING; } else { controller->state = STATE_FINISH; } } } void Motor::Controller::CalcCurrentToOutput(int32_t current) { focCurrent = current; if (focCurrent > 0) focPosition = estPosition + context->SOFT_DIVIDE_NUM; // ahead phase of 90° else if (focCurrent < 0) focPosition = estPosition - context->SOFT_DIVIDE_NUM; // behind phase of 90° else focPosition = estPosition; context->driver->SetFocCurrentVector(focPosition, focCurrent); } void Motor::Controller::CalcPidToOutput(int32_t _speed) { config->pid.vErrorLast = config->pid.vError; config->pid.vError = _speed - estVelocity; if (config->pid.vError > (1024 * 1024)) config->pid.vError = (1024 * 1024); if (config->pid.vError < (-1024 * 1024)) config->pid.vError = (-1024 * 1024); config->pid.outputKp = ((config->pid.kp) * (config->pid.vError)); config->pid.integralRound += (config->pid.ki * config->pid.vError); config->pid.integralRemainder = config->pid.integralRound >> 10; config->pid.integralRound -= (config->pid.integralRemainder << 10); config->pid.outputKi += config->pid.integralRemainder; // integralRound limitation is ratedCurrent*1024 if (config->pid.outputKi > context->config.motionParams.ratedCurrent << 10) config->pid.outputKi = context->config.motionParams.ratedCurrent << 10; else if (config->pid.outputKi < -(context->config.motionParams.ratedCurrent << 10)) config->pid.outputKi = -(context->config.motionParams.ratedCurrent << 10); config->pid.outputKd = config->pid.kd * (config->pid.vError - config->pid.vErrorLast); config->pid.output = (config->pid.outputKp + config->pid.outputKi + config->pid.outputKd) >> 10; if (config->pid.output > context->config.motionParams.ratedCurrent) config->pid.output = context->config.motionParams.ratedCurrent; else if (config->pid.output < -context->config.motionParams.ratedCurrent) config->pid.output = -context->config.motionParams.ratedCurrent; CalcCurrentToOutput(config->pid.output); } void Motor::Controller::CalcDceToOutput(int32_t _location, int32_t _speed) { config->dce.pError = _location - estPosition; if (config->dce.pError > (3200)) config->dce.pError = (3200); // limited pError to 1/16r (51200/16) if (config->dce.pError < (-3200)) config->dce.pError = (-3200); config->dce.vError = (_speed - estVelocity) >> 7; if (config->dce.vError > (4000)) config->dce.vError = (4000); // limited vError if (config->dce.vError < (-4000)) config->dce.vError = (-4000); config->dce.outputKp = config->dce.kp * config->dce.pError; config->dce.integralRound += (config->dce.ki * config->dce.pError + config->dce.kv * config->dce.vError); config->dce.integralRemainder = config->dce.integralRound >> 7; config->dce.integralRound -= (config->dce.integralRemainder << 7); config->dce.outputKi += config->dce.integralRemainder; // limited to ratedCurrent * 1024, should be TUNED when use different scene if (config->dce.outputKi > context->config.motionParams.ratedCurrent << 10) config->dce.outputKi = context->config.motionParams.ratedCurrent << 10; else if (config->dce.outputKi < -(context->config.motionParams.ratedCurrent << 10)) config->dce.outputKi = -(context->config.motionParams.ratedCurrent << 10); config->dce.outputKd = ((config->dce.kd) * (config->dce.vError)); config->dce.output = (config->dce.outputKp + config->dce.outputKi + config->dce.outputKd) >> 10; if (config->dce.output > context->config.motionParams.ratedCurrent) config->dce.output = context->config.motionParams.ratedCurrent; else if (config->dce.output < -context->config.motionParams.ratedCurrent) config->dce.output = -context->config.motionParams.ratedCurrent; CalcCurrentToOutput(config->dce.output); } void Motor::Controller::SetCtrlMode(Motor::Mode_t _mode) { requestMode = _mode; } void Motor::Controller::AddTrajectorySetPoint(int32_t _pos, int32_t _vel) { SetPositionSetPoint(_pos); SetVelocitySetPoint(_vel); } void Motor::Controller::SetPositionSetPoint(int32_t _pos) { goalPosition = _pos + context->config.motionParams.encoderHomeOffset; } bool Motor::Controller::SetPositionSetPointWithTime(int32_t _pos, float _time) { int32_t deltaPos = abs(_pos - realPosition + context->config.motionParams.encoderHomeOffset); float pMax = (float) context->config.motionParams.ratedVelocityAcc * _time * _time / 4; if ((float) deltaPos > pMax) { context->config.motionParams.ratedVelocity = boardConfig.velocityLimit; SetPositionSetPoint(_pos); return false; } else { float vMax = _time * (float) context->config.motionParams.ratedVelocityAcc; vMax -= (float) context->config.motionParams.ratedVelocityAcc * (sqrtf(_time * _time - 4 * (float) deltaPos / (float) context->config.motionParams.ratedVelocityAcc)); vMax /= 2; context->config.motionParams.ratedVelocity = (int32_t) vMax; SetPositionSetPoint(_pos); return true; } } void Motor::Controller::SetVelocitySetPoint(int32_t _vel) { if ((_vel >= -context->config.motionParams.ratedVelocity) && (_vel <= context->config.motionParams.ratedVelocity)) { goalVelocity = _vel; } } float Motor::Controller::GetPosition(bool _isLap) { return _isLap ? (float) (realLapPosition - context->config.motionParams.encoderHomeOffset) / (float) (context->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS) : (float) (realPosition - context->config.motionParams.encoderHomeOffset) / (float) (context->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); } float Motor::Controller::GetVelocity() { return (float) estVelocity / (float) context->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; } float Motor::Controller::GetFocCurrent() { return (float) focCurrent / 1000.f; } void Motor::Controller::SetCurrentSetPoint(int32_t _cur) { if (_cur > context->config.motionParams.ratedCurrent) goalCurrent = context->config.motionParams.ratedCurrent; else if (_cur < -context->config.motionParams.ratedCurrent) goalCurrent = -context->config.motionParams.ratedCurrent; else goalCurrent = _cur; } void Motor::Controller::SetDisable(bool _disable) { goalDisable = _disable; } void Motor::Controller::SetBrake(bool _brake) { goalBrake = _brake; } void Motor::Controller::ClearStallFlag() { stalledTime = 0; isStalled = false; } int32_t Motor::Controller::CompensateAdvancedAngle(int32_t _vel) { /* * The code is for DPS series sensors, need to measured and renew for TLE5012/MT6816. */ int32_t compensate; if (_vel < 0) { if (_vel > -100000) compensate = 0; else if (_vel > -1300000) compensate = (((_vel + 100000) * 262) >> 20) - 0; else if (_vel > -2200000) compensate = (((_vel + 1300000) * 105) >> 20) - 300; else compensate = (((_vel + 2200000) * 52) >> 20) - 390; if (compensate < -430) compensate = -430; } else { if (_vel < 100000) compensate = 0; else if (_vel < 1300000) compensate = (((_vel - 100000) * 262) >> 20) + 0; else if (_vel < 2200000) compensate = (((_vel - 1300000) * 105) >> 20) + 300; else compensate = (((_vel - 2200000) * 52) >> 20) + 390; if (compensate > 430) compensate = 430; } return compensate; } void Motor::Controller::Init() { requestMode = boardConfig.enableMotorOnBoot ? static_cast(boardConfig.defaultMode) : MODE_STOP; modeRunning = MODE_STOP; state = STATE_STOP; realLapPosition = 0; realLapPositionLast = 0; realPosition = 0; realPositionLast = 0; estVelocityIntegral = 0; estVelocity = 0; estLeadPosition = 0; estPosition = 0; estError = 0; goalPosition = context->config.motionParams.encoderHomeOffset; goalVelocity = 0; goalCurrent = 0; goalDisable = false; goalBrake = false; softPosition = 0; softVelocity = 0; softCurrent = 0; softDisable = false; softBrake = false; softNewCurve = false; focPosition = 0; focCurrent = 0; stalledTime = 0; isStalled = false; overloadTime = 0; overloadFlag = false; config->pid.vError = 0; config->pid.vErrorLast = 0; config->pid.outputKp = 0; config->pid.outputKi = 0; config->pid.outputKd = 0; config->pid.integralRound = 0; config->pid.integralRemainder = 0; config->pid.output = 0; config->dce.pError = 0; config->dce.vError = 0; config->dce.outputKp = 0; config->dce.outputKi = 0; config->dce.outputKd = 0; config->dce.integralRound = 0; config->dce.integralRemainder = 0; config->dce.output = 0; } void Motor::Controller::ApplyPosAsHomeOffset() { context->config.motionParams.encoderHomeOffset = realPosition % context->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; } void Motor::Controller::AttachConfig(Motor::Controller::Config_t* _config) { config = _config; } void Motor::Controller::ClearIntegral() const { config->pid.integralRound = 0; config->pid.integralRemainder = 0; config->pid.outputKi = 0; config->dce.integralRound = 0; config->dce.integralRemainder = 0; config->dce.outputKi = 0; } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Motor/motor.h ================================================ #ifndef CTRL_STEP_FW_MOTOR_H #define CTRL_STEP_FW_MOTOR_H #include "Motor/motion_planner.h" #include "Sensor/Encoder/encoder_base.h" #include "Driver/driver_base.h" class Motor { public: Motor() : controller(&controllerInstance) { /****************** Default Configs *******************/ config.motionParams.encoderHomeOffset = 0; config.motionParams.caliCurrent = 2000; // (mA) config.motionParams.ratedCurrent = 1000; // (mA) config.motionParams.ratedCurrentAcc = 2 * 1000; // (mA/s) config.motionParams.ratedVelocity = 30 * MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; config.motionParams.ratedVelocityAcc = 1000 * MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; config.ctrlParams.stallProtectSwitch = false; config.ctrlParams.pid = Controller::PID_t{ .kp = 5, .ki = 30, .kd = 0 }; config.ctrlParams.dce = Controller::DCE_t{ .kp = 200, .kv = 80, .ki = 300, .kd = 250 }; /*****************************************************/ motionPlanner.AttachConfig(&config.motionParams); controller->AttachConfig(&config.ctrlParams); } const int32_t MOTOR_ONE_CIRCLE_HARD_STEPS = 200; // for 1.8° step-motors const int32_t SOFT_DIVIDE_NUM = 256; const int32_t MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS = MOTOR_ONE_CIRCLE_HARD_STEPS * SOFT_DIVIDE_NUM; typedef enum { MODE_STOP, MODE_COMMAND_POSITION, MODE_COMMAND_VELOCITY, MODE_COMMAND_CURRENT, MODE_COMMAND_Trajectory, MODE_PWM_POSITION, MODE_PWM_VELOCITY, MODE_PWM_CURRENT, MODE_STEP_DIR, } Mode_t; typedef enum { STATE_STOP, STATE_FINISH, STATE_RUNNING, STATE_OVERLOAD, STATE_STALL, STATE_NO_CALIB } State_t; class Controller { public: friend Motor; typedef struct { bool kpValid, kiValid, kdValid; int32_t kp, ki, kd; int32_t vError, vErrorLast; int32_t outputKp, outputKi, outputKd; int32_t integralRound; int32_t integralRemainder; int32_t output; } PID_t; typedef struct { int32_t kp, kv, ki, kd; int32_t pError, vError; int32_t outputKp, outputKi, outputKd; int32_t integralRound; int32_t integralRemainder; int32_t output; } DCE_t; typedef struct { PID_t pid; DCE_t dce; bool stallProtectSwitch; } Config_t; explicit Controller(Motor* _context) { context = _context; requestMode = MODE_STOP; modeRunning = MODE_STOP; } Config_t* config = nullptr; Mode_t requestMode; Mode_t modeRunning; State_t state = STATE_STOP; bool isStalled = false; void Init(); void SetCtrlMode(Mode_t _mode); void SetCurrentSetPoint(int32_t _cur); void SetVelocitySetPoint(int32_t _vel); void SetPositionSetPoint(int32_t _pos); bool SetPositionSetPointWithTime(int32_t _pos, float _time); float GetPosition(bool _isLap = false); float GetVelocity(); float GetFocCurrent(); void AddTrajectorySetPoint(int32_t _pos, int32_t _vel); void SetDisable(bool _disable); void SetBrake(bool _brake); void ApplyPosAsHomeOffset(); void ClearStallFlag(); private: Motor* context; int32_t realLapPosition{}; int32_t realLapPositionLast{}; int32_t realPosition{}; int32_t realPositionLast{}; int32_t estVelocity{}; int32_t estVelocityIntegral{}; int32_t estLeadPosition{}; int32_t estPosition{}; int32_t estError{}; int32_t focCurrent{}; int32_t goalPosition{}; int32_t goalVelocity{}; int32_t goalCurrent{}; bool goalDisable{}; bool goalBrake{}; int32_t softPosition{}; int32_t softVelocity{}; int32_t softCurrent{}; bool softDisable{}; bool softBrake{}; bool softNewCurve{}; int32_t focPosition{}; uint32_t stalledTime{}; uint32_t overloadTime{}; bool overloadFlag{}; void AttachConfig(Config_t* _config); void CalcCurrentToOutput(int32_t current); void CalcPidToOutput(int32_t _speed); void CalcDceToOutput(int32_t _location, int32_t _speed); void ClearIntegral() const; static int32_t CompensateAdvancedAngle(int32_t _vel); }; struct Config_t { MotionPlanner::Config_t motionParams{}; Controller::Config_t ctrlParams{}; }; Config_t config; MotionPlanner motionPlanner; Controller* controller = nullptr; EncoderBase* encoder = nullptr; DriverBase* driver = nullptr; void Tick20kHz(); void AttachEncoder(EncoderBase* _encoder); void AttachDriver(DriverBase* _driver); private: Controller controllerInstance = Controller(this); void CloseLoopControlTick(); }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Sensor/Encoder/encoder_base.h ================================================ #ifndef CTRL_STEP_FW_ENCODER_H #define CTRL_STEP_FW_ENCODER_H #include class EncoderBase { public: typedef struct { uint16_t rawAngle; // raw data uint16_t rectifiedAngle; // calibrated rawAngle data bool rectifyValid; } AngleData_t; AngleData_t angleData{0}; /* * Resolution is (2^14 = 16384), each state will use an uint16 data * as map, thus total need 32K-flash for calibration. */ const int32_t RESOLUTION = ((int32_t) ((0x00000001U) << 14)); virtual bool Init() = 0; // Get current rawAngle virtual uint16_t UpdateAngle() = 0; virtual bool IsCalibrated() = 0; private: }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Sensor/Encoder/encoder_calibrator_base.cpp ================================================ #include #include #include "encoder_calibrator_base.h" int32_t EncoderCalibratorBase::CycleDataAverage(const uint16_t* _data, uint16_t _length, int32_t _cyc) { int32_t sumData = 0; int32_t subData; int32_t diffData; sumData += (int32_t) _data[0]; for (uint16_t i = 1; i < _length; i++) { diffData = (int32_t) _data[i]; subData = (int32_t) _data[i] - (int32_t) _data[0]; if (subData > (_cyc >> 1)) diffData = (int32_t) _data[i] - _cyc; if (subData < (-_cyc >> 1)) diffData = (int32_t) _data[i] + _cyc; sumData += diffData; } sumData = sumData / _length; if (sumData < 0) sumData += _cyc; if (sumData > _cyc) sumData -= _cyc; return sumData; } void EncoderCalibratorBase::CalibrationDataCheck() { uint32_t count; int32_t subData; int32_t calibSampleResolution = motor->encoder->RESOLUTION / MOTOR_ONE_CIRCLE_HARD_STEPS; for (count = 0; count < MOTOR_ONE_CIRCLE_HARD_STEPS + 1; count++) { sampleDataAverageForward[count] = (uint16_t) CycleAverage((int32_t) sampleDataAverageForward[count], (int32_t) sampleDataAverageBackward[count], motor->encoder->RESOLUTION); } subData = CycleSubtract((int32_t) sampleDataAverageForward[0], (int32_t) sampleDataAverageForward[MOTOR_ONE_CIRCLE_HARD_STEPS - 1], motor->encoder->RESOLUTION); if (subData == 0) { errorCode = CALI_ERROR_AVERAGE_DIR; return; } else { goDirection = subData > 0; } for (count = 1; count < MOTOR_ONE_CIRCLE_HARD_STEPS; count++) { subData = CycleSubtract((int32_t) sampleDataAverageForward[count], (int32_t) sampleDataAverageForward[count - 1], motor->encoder->RESOLUTION); if (abs(subData) > (calibSampleResolution * 3 / 2)) // delta-data too large { errorCode = CALI_ERROR_AVERAGE_CONTINUTY; return; } if (abs(subData) < (calibSampleResolution * 1 / 2)) // delta-data too small { errorCode = CALI_ERROR_AVERAGE_CONTINUTY; return; } if (subData == 0) { errorCode = CALI_ERROR_AVERAGE_DIR; return; } if ((subData > 0) && (!goDirection)) { errorCode = CALI_ERROR_AVERAGE_DIR; return; } if ((subData < 0) && (goDirection)) { errorCode = CALI_ERROR_AVERAGE_DIR; return; } } uint32_t step_num = 0; if (goDirection) { for (count = 0; count < MOTOR_ONE_CIRCLE_HARD_STEPS; count++) { subData = (int32_t) sampleDataAverageForward[CycleMod(count + 1, MOTOR_ONE_CIRCLE_HARD_STEPS)] - (int32_t) sampleDataAverageForward[CycleMod(count, MOTOR_ONE_CIRCLE_HARD_STEPS)]; if (subData < 0) { step_num++; rcdX = (int32_t) count; rcdY = (motor->encoder->RESOLUTION - 1) - sampleDataAverageForward[CycleMod(rcdX, MOTOR_ONE_CIRCLE_HARD_STEPS)]; } } if (step_num != 1) { errorCode = CALI_ERROR_PHASE_STEP; return; } } else { for (count = 0; count < MOTOR_ONE_CIRCLE_HARD_STEPS; count++) { subData = (int32_t) sampleDataAverageForward[CycleMod(count + 1, MOTOR_ONE_CIRCLE_HARD_STEPS)] - (int32_t) sampleDataAverageForward[CycleMod(count, MOTOR_ONE_CIRCLE_HARD_STEPS)]; if (subData > 0) { step_num++; rcdX = (int32_t) count; rcdY = (motor->encoder->RESOLUTION - 1) - sampleDataAverageForward[CycleMod(rcdX + 1, MOTOR_ONE_CIRCLE_HARD_STEPS)]; } } if (step_num != 1) { errorCode = CALI_ERROR_PHASE_STEP; return; } } errorCode = CALI_NO_ERROR; } void EncoderCalibratorBase::Tick20kHz() { motor->encoder->UpdateAngle(); switch (state) { case CALI_DISABLE: if (isTriggered) { motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); goPosition = motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; sampleCount = 0; state = CALI_FORWARD_PREPARE; errorCode = CALI_NO_ERROR; } break; case CALI_FORWARD_PREPARE: goPosition += AUTO_CALIB_SPEED; motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); if (goPosition == 2 * motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS) { goPosition = motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS; state = CALI_FORWARD_MEASURE; } break; case CALI_FORWARD_MEASURE: if ((goPosition % motor->SOFT_DIVIDE_NUM) == 0) { sampleDataRaw[sampleCount++] = motor->encoder->angleData.rawAngle; if (sampleCount == EncoderCalibratorBase::SAMPLE_COUNTS_PER_STEP) { sampleDataAverageForward[(goPosition - motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS) / motor->SOFT_DIVIDE_NUM] = CycleDataAverage(sampleDataRaw, EncoderCalibratorBase::SAMPLE_COUNTS_PER_STEP, motor->encoder->RESOLUTION); sampleCount = 0; goPosition += FINE_TUNE_CALIB_SPEED; } } else { goPosition += FINE_TUNE_CALIB_SPEED; } motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); if (goPosition > (2 * motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS)) { state = CALI_BACKWARD_RETURN; } break; case CALI_BACKWARD_RETURN: goPosition += FINE_TUNE_CALIB_SPEED; motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); if (goPosition == (2 * motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS + motor->SOFT_DIVIDE_NUM * 20)) { state = CALI_BACKWARD_GAP_DISMISS; } break; case CALI_BACKWARD_GAP_DISMISS: goPosition -= FINE_TUNE_CALIB_SPEED; motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); if (goPosition == (2 * motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS)) { state = CALI_BACKWARD_MEASURE; } break; case CALI_BACKWARD_MEASURE: if ((goPosition % motor->SOFT_DIVIDE_NUM) == 0) { sampleDataRaw[sampleCount++] = motor->encoder->angleData.rawAngle; if (sampleCount == EncoderCalibratorBase::SAMPLE_COUNTS_PER_STEP) { sampleDataAverageBackward[(goPosition - motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS) / motor->SOFT_DIVIDE_NUM] = CycleDataAverage(sampleDataRaw, EncoderCalibratorBase::SAMPLE_COUNTS_PER_STEP, motor->encoder->RESOLUTION); sampleCount = 0; goPosition -= FINE_TUNE_CALIB_SPEED; } } else { goPosition -= FINE_TUNE_CALIB_SPEED; } motor->driver->SetFocCurrentVector(goPosition, motor->config.motionParams.caliCurrent); if (goPosition < motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS) { state = CALI_CALCULATING; } break; case CALI_CALCULATING: motor->driver->SetFocCurrentVector(0, 0); break; default: break; } } void EncoderCalibratorBase::TickMainLoop() { int32_t dataI32; uint16_t dataU16; if (state != CALI_CALCULATING) return; motor->driver->Sleep(); CalibrationDataCheck(); if (errorCode == CALI_NO_ERROR) { int32_t stepX, stepY; resultNum = 0; ClearFlash(); BeginWriteFlash(); if (goDirection) { for (stepX = rcdX; stepX < rcdX + motor->MOTOR_ONE_CIRCLE_HARD_STEPS + 1; stepX++) { dataI32 = CycleSubtract( sampleDataAverageForward[CycleMod(stepX + 1, motor->MOTOR_ONE_CIRCLE_HARD_STEPS)], sampleDataAverageForward[CycleMod(stepX, motor->MOTOR_ONE_CIRCLE_HARD_STEPS)], motor->encoder->RESOLUTION); if (stepX == rcdX) { for (stepY = rcdY; stepY < dataI32; stepY++) { dataU16 = CycleMod(motor->SOFT_DIVIDE_NUM * stepX + motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } else if (stepX == rcdX + motor->MOTOR_ONE_CIRCLE_HARD_STEPS) { for (stepY = 0; stepY < rcdY; stepY++) { dataU16 = CycleMod(motor->SOFT_DIVIDE_NUM * stepX + motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } else { for (stepY = 0; stepY < dataI32; stepY++) { dataU16 = CycleMod(motor->SOFT_DIVIDE_NUM * stepX + motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } } } else { for (stepX = rcdX + motor->MOTOR_ONE_CIRCLE_HARD_STEPS; stepX > rcdX - 1; stepX--) { dataI32 = CycleSubtract( sampleDataAverageForward[CycleMod(stepX, motor->MOTOR_ONE_CIRCLE_HARD_STEPS)], sampleDataAverageForward[CycleMod(stepX + 1, motor->MOTOR_ONE_CIRCLE_HARD_STEPS)], motor->encoder->RESOLUTION); if (stepX == rcdX + motor->MOTOR_ONE_CIRCLE_HARD_STEPS) { for (stepY = rcdY; stepY < dataI32; stepY++) { dataU16 = CycleMod( motor->SOFT_DIVIDE_NUM * (stepX + 1) - motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } else if (stepX == rcdX) { for (stepY = 0; stepY < rcdY; stepY++) { dataU16 = CycleMod( motor->SOFT_DIVIDE_NUM * (stepX + 1) - motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } else { for (stepY = 0; stepY < dataI32; stepY++) { dataU16 = CycleMod( motor->SOFT_DIVIDE_NUM * (stepX + 1) - motor->SOFT_DIVIDE_NUM * stepY / dataI32, motor->MOTOR_ONE_CIRCLE_SUBDIVIDE_STEPS); WriteFlash16bitsAppend(dataU16); resultNum++; } } } } EndWriteFlash(); if (resultNum != motor->encoder->RESOLUTION) errorCode = CALI_ERROR_ANALYSIS_QUANTITY; } if (errorCode == CALI_NO_ERROR) { motor->encoder->angleData.rectifyValid = true; } else { motor->encoder->angleData.rectifyValid = false; ClearFlash(); } motor->controller->isStalled = true; state = CALI_DISABLE; isTriggered = false; if (errorCode == CALI_NO_ERROR) HAL_NVIC_SystemReset(); } uint32_t EncoderCalibratorBase::CycleMod(uint32_t _a, uint32_t _b) { return (_a + _b) % _b; } int32_t EncoderCalibratorBase::CycleSubtract(int32_t _a, int32_t _b, int32_t _cyc) { int32_t sub_data; sub_data = _a - _b; if (sub_data > (_cyc >> 1)) sub_data -= _cyc; if (sub_data < (-_cyc >> 1)) sub_data += _cyc; return sub_data; } int32_t EncoderCalibratorBase::CycleAverage(int32_t _a, int32_t _b, int32_t _cyc) { int32_t sub_data; int32_t ave_data; sub_data = _a - _b; ave_data = (_a + _b) >> 1; if (abs(sub_data) > (_cyc >> 1)) { if (ave_data >= (_cyc >> 1)) ave_data -= (_cyc >> 1); else ave_data += (_cyc >> 1); } return ave_data; } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Sensor/Encoder/encoder_calibrator_base.h ================================================ #ifndef CTRL_STEP_FW_ENCODER_CALIBRATOR_BASE_H #define CTRL_STEP_FW_ENCODER_CALIBRATOR_BASE_H #include "Motor/motor.h" class EncoderCalibratorBase { public: static const int32_t MOTOR_ONE_CIRCLE_HARD_STEPS = 200; // for 1.8° step-motors static const uint8_t SAMPLE_COUNTS_PER_STEP = 16; static const uint8_t AUTO_CALIB_SPEED = 2; static const uint8_t FINE_TUNE_CALIB_SPEED = 1; typedef enum { CALI_NO_ERROR = 0x00, CALI_ERROR_AVERAGE_DIR, CALI_ERROR_AVERAGE_CONTINUTY, CALI_ERROR_PHASE_STEP, CALI_ERROR_ANALYSIS_QUANTITY, } Error_t; typedef enum { CALI_DISABLE = 0x00, CALI_FORWARD_PREPARE, CALI_FORWARD_MEASURE, CALI_BACKWARD_RETURN, CALI_BACKWARD_GAP_DISMISS, CALI_BACKWARD_MEASURE, CALI_CALCULATING, } State_t; explicit EncoderCalibratorBase(Motor* _motor) { motor = _motor; isTriggered = false; errorCode = CALI_NO_ERROR; state = CALI_DISABLE; goPosition = 0; rcdX = 0; rcdY = 0; resultNum = 0; } bool isTriggered; void Tick20kHz(); void TickMainLoop(); private: Motor* motor; Error_t errorCode; State_t state; uint32_t goPosition; bool goDirection; uint16_t sampleCount = 0; uint16_t sampleDataRaw[SAMPLE_COUNTS_PER_STEP]{}; uint16_t sampleDataAverageForward[MOTOR_ONE_CIRCLE_HARD_STEPS + 1]{}; uint16_t sampleDataAverageBackward[MOTOR_ONE_CIRCLE_HARD_STEPS + 1]{}; int32_t rcdX, rcdY; uint32_t resultNum; void CalibrationDataCheck(); static uint32_t CycleMod(uint32_t _a, uint32_t _b); static int32_t CycleSubtract(int32_t _a, int32_t _b, int32_t _cyc); static int32_t CycleAverage(int32_t _a, int32_t _b, int32_t _cyc); static int32_t CycleDataAverage(const uint16_t* _data, uint16_t _length, int32_t _cyc); /***** Port Specified Implements *****/ virtual void BeginWriteFlash() = 0; virtual void EndWriteFlash() = 0; virtual void ClearFlash() = 0; virtual void WriteFlash16bitsAppend(uint16_t _data) = 0; }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Sensor/Encoder/mt6816_base.cpp ================================================ #include "mt6816_base.h" bool MT6816Base::Init() { SpiInit(); UpdateAngle(); // Check if the stored calibration data are valid angleData.rectifyValid = true; for (uint32_t i = 0; i < RESOLUTION; i++) { if (quickCaliDataPtr[i] == 0xFFFF) angleData.rectifyValid = false; } return angleData.rectifyValid; } uint16_t MT6816Base::UpdateAngle() { dataTx[0] = (0x80 | 0x03) << 8; dataTx[1] = (0x80 | 0x04) << 8; for (uint8_t i = 0; i < 3; i++) { dataRx[0] = SpiTransmitAndRead16Bits(dataTx[0]); dataRx[1] = SpiTransmitAndRead16Bits(dataTx[1]); spiRawData.rawData = ((dataRx[0] & 0x00FF) << 8) | (dataRx[1] & 0x00FF); //奇偶校验 hCount = 0; for (uint8_t j = 0; j < 16; j++) { if (spiRawData.rawData & (0x0001 << j)) hCount++; } if (hCount & 0x01) { spiRawData.checksumFlag = false; } else { spiRawData.checksumFlag = true; break; } } if (spiRawData.checksumFlag) { spiRawData.rawAngle = spiRawData.rawData >> 2; spiRawData.noMagFlag = (bool) (spiRawData.rawData & (0x0001 << 1)); } angleData.rawAngle = spiRawData.rawAngle; angleData.rectifiedAngle = quickCaliDataPtr[angleData.rawAngle]; return angleData.rectifiedAngle; } bool MT6816Base::IsCalibrated() { return angleData.rectifyValid; } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Sensor/Encoder/mt6816_base.h ================================================ #ifndef CTRL_STEP_FW_MT6816_H #define CTRL_STEP_FW_MT6816_H #include "encoder_base.h" #include class MT6816Base : public EncoderBase { public: explicit MT6816Base(uint16_t* _quickCaliDataPtr) : quickCaliDataPtr(_quickCaliDataPtr), spiRawData(SpiRawData_t{0}) { } bool Init() override; uint16_t UpdateAngle() override; // Get current rawAngle (rad) bool IsCalibrated() override; private: typedef struct { uint16_t rawData; // SPI raw 16bits data uint16_t rawAngle; // 14bits rawAngle in rawData bool noMagFlag; bool checksumFlag; } SpiRawData_t; SpiRawData_t spiRawData; uint16_t* quickCaliDataPtr; uint16_t dataTx[2]; uint16_t dataRx[2]; uint8_t hCount; /***** Port Specified Implements *****/ virtual void SpiInit(); virtual uint16_t SpiTransmitAndRead16Bits(uint16_t _dataTx); }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Signal/button_base.cpp ================================================ [File too large to display: 655 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Signal/button_base.h ================================================ #ifndef CTRL_STEP_FW_BUTTON_BASE_H #define CTRL_STEP_FW_BUTTON_BASE_H #include class ButtonBase { public: enum Event { UP, DOWN, LONG_PRESS, CLICK }; explicit ButtonBase(uint8_t _id) : id(_id) {} ButtonBase(uint8_t _id, uint32_t _longPressTime) : id(_id), longPressTime(_longPressTime) {} void Tick(uint32_t _timeElapseMillis); void SetOnEventListener(void (* _callback)(Event)); protected: uint8_t id; bool lastPinIO{}; uint32_t timer=0; uint32_t pressTime{}; uint32_t longPressTime = 2000; void (* OnEventFunc)(Event){}; virtual bool ReadButtonPinIO(uint8_t _id) = 0; }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Signal/led_base.cpp ================================================ #include "led_base.h" void LedBase::Tick(uint32_t _timeElapseMillis, Motor::State_t _state) { timer += _timeElapseMillis; switch (_state) { case Motor::STATE_NO_CALIB: motorEnable = false; heartBeatEnable = false; targetBlinkNum = 1; break; case Motor::STATE_RUNNING: motorEnable = true; heartBeatEnable = true; targetBlinkNum = 0; break; case Motor::STATE_FINISH: motorEnable = true; heartBeatEnable = false; targetBlinkNum = 0; break; case Motor::STATE_STOP: motorEnable = false; heartBeatEnable = false; targetBlinkNum = 0; break; case Motor::STATE_OVERLOAD: motorEnable = true; heartBeatEnable = false; targetBlinkNum = 3; break; case Motor::STATE_STALL: motorEnable = false; heartBeatEnable = false; targetBlinkNum = 2; break; } if (motorEnable) if (heartBeatEnable) { switch (heartBeatPhase) { case 1: if (timer - timerHeartBeat > 100) { SetLedState(0, false); timerHeartBeat = timer; heartBeatPhase = 2; } break; case 2: if (timer - timerHeartBeat > 100) { SetLedState(0, true); timerHeartBeat = timer; heartBeatPhase = 3; } break; case 3: if (timer - timerHeartBeat > 100) { SetLedState(0, false); timerHeartBeat = timer; heartBeatPhase = 4; } break; case 4: if (timer - timerHeartBeat > 700) { SetLedState(0, true); timerHeartBeat = timer; heartBeatPhase = 1; } break; } } else { SetLedState(0, true); heartBeatPhase = 1; } else SetLedState(0, false); switch (blinkPhase) { case 1: if (timer - timerBlink > 100) { SetLedState(1, false); timerBlink = timer; blinkPhase = 2; } break; case 2: if (timer - timerBlink > 100) { blinkNum++; if (targetBlinkNum > blinkNum) { SetLedState(1, true); blinkPhase = 1; timerBlink = timer; } else { SetLedState(1, false); blinkPhase = 3; timerBlink = timer; } } break; case 3: if (timer - timerBlink > 1000) { blinkNum = 0; SetLedState(1, targetBlinkNum > 0); timerBlink = timer; blinkPhase = 1; } break; } } ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl/Signal/led_base.h ================================================ #ifndef CTRL_STEP_FW_LED_BASE_H #define CTRL_STEP_FW_LED_BASE_H #include #include "Motor/motor.h" class LedBase { public: LedBase() = default; void Tick(uint32_t _timeElapseMillis, Motor::State_t _state); private: uint32_t timer = 0; uint32_t timerHeartBeat = 0; bool motorEnable = false; bool heartBeatEnable = false; uint8_t heartBeatPhase = 1; uint8_t blinkNum = 0; uint8_t targetBlinkNum = 0; uint32_t timerBlink = 0; uint8_t blinkPhase = 1; virtual void SetLedState(uint8_t _id, bool _state) = 0; }; #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Ctrl-Step-fw.xml ================================================ Ctrl-Step-fw STM32F103CBTx SWD ST-LinkV2-1 ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h ================================================ /** ****************************************************************************** * @file stm32f103xb.h * @author MCD Application Team * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File. * This file contains all the peripheral register's definitions, bits * definitions and memory mapping for STM32F1xx devices. * * This file contains: * - Data structures and the address mapping for all peripherals * - Peripheral's registers declarations and bits definition * - Macros to access peripherals registers hardware * ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f103xb * @{ */ #ifndef __STM32F103xB_H #define __STM32F103xB_H #ifdef __cplusplus extern "C" { #endif /** @addtogroup Configuration_section_for_CMSIS * @{ */ /** * @brief Configuration of the Cortex-M3 Processor and Core Peripherals */ #define __CM3_REV 0x0200U /*!< Core Revision r2p0 */ #define __MPU_PRESENT 0U /*!< Other STM32 devices does not provide an MPU */ #define __NVIC_PRIO_BITS 4U /*!< STM32 uses 4 Bits for the Priority Levels */ #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */ /** * @} */ /** @addtogroup Peripheral_interrupt_number_definition * @{ */ /** * @brief STM32F10x Interrupt Number Definition, according to the selected device * in @ref Library_configuration_section */ /*!< Interrupt Number Definition */ typedef enum { /****** Cortex-M3 Processor Exceptions Numbers ***************************************************/ NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ HardFault_IRQn = -13, /*!< 3 Cortex-M3 Hard Fault Interrupt */ MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ /****** STM32 specific Interrupt Numbers *********************************************************/ WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ TAMPER_IRQn = 2, /*!< Tamper Interrupt */ RTC_IRQn = 3, /*!< RTC global Interrupt */ FLASH_IRQn = 4, /*!< FLASH global Interrupt */ RCC_IRQn = 5, /*!< RCC global Interrupt */ EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */ USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */ CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ TIM1_BRK_IRQn = 24, /*!< TIM1 Break Interrupt */ TIM1_UP_IRQn = 25, /*!< TIM1 Update Interrupt */ TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */ TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ TIM4_IRQn = 30, /*!< TIM4 global Interrupt */ I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ USART1_IRQn = 37, /*!< USART1 global Interrupt */ USART2_IRQn = 38, /*!< USART2 global Interrupt */ USART3_IRQn = 39, /*!< USART3 global Interrupt */ EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ RTC_Alarm_IRQn = 41, /*!< RTC Alarm through EXTI Line Interrupt */ USBWakeUp_IRQn = 42, /*!< USB Device WakeUp from suspend through EXTI Line Interrupt */ } IRQn_Type; /** * @} */ #include "core_cm3.h" #include "system_stm32f1xx.h" #include /** @addtogroup Peripheral_registers_structures * @{ */ /** * @brief Analog to Digital Converter */ typedef struct { __IO uint32_t SR; __IO uint32_t CR1; __IO uint32_t CR2; __IO uint32_t SMPR1; __IO uint32_t SMPR2; __IO uint32_t JOFR1; __IO uint32_t JOFR2; __IO uint32_t JOFR3; __IO uint32_t JOFR4; __IO uint32_t HTR; __IO uint32_t LTR; __IO uint32_t SQR1; __IO uint32_t SQR2; __IO uint32_t SQR3; __IO uint32_t JSQR; __IO uint32_t JDR1; __IO uint32_t JDR2; __IO uint32_t JDR3; __IO uint32_t JDR4; __IO uint32_t DR; } ADC_TypeDef; typedef struct { __IO uint32_t SR; /*!< ADC status register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address */ __IO uint32_t CR1; /*!< ADC control register 1, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x04 */ __IO uint32_t CR2; /*!< ADC control register 2, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x08 */ uint32_t RESERVED[16]; __IO uint32_t DR; /*!< ADC data register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x4C */ } ADC_Common_TypeDef; /** * @brief Backup Registers */ typedef struct { uint32_t RESERVED0; __IO uint32_t DR1; __IO uint32_t DR2; __IO uint32_t DR3; __IO uint32_t DR4; __IO uint32_t DR5; __IO uint32_t DR6; __IO uint32_t DR7; __IO uint32_t DR8; __IO uint32_t DR9; __IO uint32_t DR10; __IO uint32_t RTCCR; __IO uint32_t CR; __IO uint32_t CSR; } BKP_TypeDef; /** * @brief Controller Area Network TxMailBox */ typedef struct { __IO uint32_t TIR; __IO uint32_t TDTR; __IO uint32_t TDLR; __IO uint32_t TDHR; } CAN_TxMailBox_TypeDef; /** * @brief Controller Area Network FIFOMailBox */ typedef struct { __IO uint32_t RIR; __IO uint32_t RDTR; __IO uint32_t RDLR; __IO uint32_t RDHR; } CAN_FIFOMailBox_TypeDef; /** * @brief Controller Area Network FilterRegister */ typedef struct { __IO uint32_t FR1; __IO uint32_t FR2; } CAN_FilterRegister_TypeDef; /** * @brief Controller Area Network */ typedef struct { __IO uint32_t MCR; __IO uint32_t MSR; __IO uint32_t TSR; __IO uint32_t RF0R; __IO uint32_t RF1R; __IO uint32_t IER; __IO uint32_t ESR; __IO uint32_t BTR; uint32_t RESERVED0[88]; CAN_TxMailBox_TypeDef sTxMailBox[3]; CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; uint32_t RESERVED1[12]; __IO uint32_t FMR; __IO uint32_t FM1R; uint32_t RESERVED2; __IO uint32_t FS1R; uint32_t RESERVED3; __IO uint32_t FFA1R; uint32_t RESERVED4; __IO uint32_t FA1R; uint32_t RESERVED5[8]; CAN_FilterRegister_TypeDef sFilterRegister[14]; } CAN_TypeDef; /** * @brief CRC calculation unit */ typedef struct { __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ uint8_t RESERVED0; /*!< Reserved, Address offset: 0x05 */ uint16_t RESERVED1; /*!< Reserved, Address offset: 0x06 */ __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ } CRC_TypeDef; /** * @brief Debug MCU */ typedef struct { __IO uint32_t IDCODE; __IO uint32_t CR; }DBGMCU_TypeDef; /** * @brief DMA Controller */ typedef struct { __IO uint32_t CCR; __IO uint32_t CNDTR; __IO uint32_t CPAR; __IO uint32_t CMAR; } DMA_Channel_TypeDef; typedef struct { __IO uint32_t ISR; __IO uint32_t IFCR; } DMA_TypeDef; /** * @brief External Interrupt/Event Controller */ typedef struct { __IO uint32_t IMR; __IO uint32_t EMR; __IO uint32_t RTSR; __IO uint32_t FTSR; __IO uint32_t SWIER; __IO uint32_t PR; } EXTI_TypeDef; /** * @brief FLASH Registers */ typedef struct { __IO uint32_t ACR; __IO uint32_t KEYR; __IO uint32_t OPTKEYR; __IO uint32_t SR; __IO uint32_t CR; __IO uint32_t AR; __IO uint32_t RESERVED; __IO uint32_t OBR; __IO uint32_t WRPR; } FLASH_TypeDef; /** * @brief Option Bytes Registers */ typedef struct { __IO uint16_t RDP; __IO uint16_t USER; __IO uint16_t Data0; __IO uint16_t Data1; __IO uint16_t WRP0; __IO uint16_t WRP1; __IO uint16_t WRP2; __IO uint16_t WRP3; } OB_TypeDef; /** * @brief General Purpose I/O */ typedef struct { __IO uint32_t CRL; __IO uint32_t CRH; __IO uint32_t IDR; __IO uint32_t ODR; __IO uint32_t BSRR; __IO uint32_t BRR; __IO uint32_t LCKR; } GPIO_TypeDef; /** * @brief Alternate Function I/O */ typedef struct { __IO uint32_t EVCR; __IO uint32_t MAPR; __IO uint32_t EXTICR[4]; uint32_t RESERVED0; __IO uint32_t MAPR2; } AFIO_TypeDef; /** * @brief Inter Integrated Circuit Interface */ typedef struct { __IO uint32_t CR1; __IO uint32_t CR2; __IO uint32_t OAR1; __IO uint32_t OAR2; __IO uint32_t DR; __IO uint32_t SR1; __IO uint32_t SR2; __IO uint32_t CCR; __IO uint32_t TRISE; } I2C_TypeDef; /** * @brief Independent WATCHDOG */ typedef struct { __IO uint32_t KR; /*!< Key register, Address offset: 0x00 */ __IO uint32_t PR; /*!< Prescaler register, Address offset: 0x04 */ __IO uint32_t RLR; /*!< Reload register, Address offset: 0x08 */ __IO uint32_t SR; /*!< Status register, Address offset: 0x0C */ } IWDG_TypeDef; /** * @brief Power Control */ typedef struct { __IO uint32_t CR; __IO uint32_t CSR; } PWR_TypeDef; /** * @brief Reset and Clock Control */ typedef struct { __IO uint32_t CR; __IO uint32_t CFGR; __IO uint32_t CIR; __IO uint32_t APB2RSTR; __IO uint32_t APB1RSTR; __IO uint32_t AHBENR; __IO uint32_t APB2ENR; __IO uint32_t APB1ENR; __IO uint32_t BDCR; __IO uint32_t CSR; } RCC_TypeDef; /** * @brief Real-Time Clock */ typedef struct { __IO uint32_t CRH; __IO uint32_t CRL; __IO uint32_t PRLH; __IO uint32_t PRLL; __IO uint32_t DIVH; __IO uint32_t DIVL; __IO uint32_t CNTH; __IO uint32_t CNTL; __IO uint32_t ALRH; __IO uint32_t ALRL; } RTC_TypeDef; /** * @brief Serial Peripheral Interface */ typedef struct { __IO uint32_t CR1; __IO uint32_t CR2; __IO uint32_t SR; __IO uint32_t DR; __IO uint32_t CRCPR; __IO uint32_t RXCRCR; __IO uint32_t TXCRCR; __IO uint32_t I2SCFGR; } SPI_TypeDef; /** * @brief TIM Timers */ typedef struct { __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ __IO uint32_t SMCR; /*!< TIM slave Mode Control register, Address offset: 0x08 */ __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */ __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */ __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ __IO uint32_t DMAR; /*!< TIM DMA address for full transfer register, Address offset: 0x4C */ __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */ }TIM_TypeDef; /** * @brief Universal Synchronous Asynchronous Receiver Transmitter */ typedef struct { __IO uint32_t SR; /*!< USART Status register, Address offset: 0x00 */ __IO uint32_t DR; /*!< USART Data register, Address offset: 0x04 */ __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x08 */ __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x0C */ __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x10 */ __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x14 */ __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x18 */ } USART_TypeDef; /** * @brief Universal Serial Bus Full Speed Device */ typedef struct { __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */ __IO uint16_t RESERVED0; /*!< Reserved */ __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */ __IO uint16_t RESERVED1; /*!< Reserved */ __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */ __IO uint16_t RESERVED2; /*!< Reserved */ __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */ __IO uint16_t RESERVED3; /*!< Reserved */ __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */ __IO uint16_t RESERVED4; /*!< Reserved */ __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */ __IO uint16_t RESERVED5; /*!< Reserved */ __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */ __IO uint16_t RESERVED6; /*!< Reserved */ __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */ __IO uint16_t RESERVED7[17]; /*!< Reserved */ __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */ __IO uint16_t RESERVED8; /*!< Reserved */ __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */ __IO uint16_t RESERVED9; /*!< Reserved */ __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */ __IO uint16_t RESERVEDA; /*!< Reserved */ __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */ __IO uint16_t RESERVEDB; /*!< Reserved */ __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */ __IO uint16_t RESERVEDC; /*!< Reserved */ } USB_TypeDef; /** * @brief Window WATCHDOG */ typedef struct { __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ } WWDG_TypeDef; /** * @} */ /** @addtogroup Peripheral_memory_map * @{ */ #define FLASH_BASE 0x08000000UL /*!< FLASH base address in the alias region */ #define FLASH_BANK1_END 0x0801FFFFUL /*!< FLASH END address of bank1 */ #define SRAM_BASE 0x20000000UL /*!< SRAM base address in the alias region */ #define PERIPH_BASE 0x40000000UL /*!< Peripheral base address in the alias region */ #define SRAM_BB_BASE 0x22000000UL /*!< SRAM base address in the bit-band region */ #define PERIPH_BB_BASE 0x42000000UL /*!< Peripheral base address in the bit-band region */ /*!< Peripheral memory map */ #define APB1PERIPH_BASE PERIPH_BASE #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000UL) #define TIM2_BASE (APB1PERIPH_BASE + 0x00000000UL) #define TIM3_BASE (APB1PERIPH_BASE + 0x00000400UL) #define TIM4_BASE (APB1PERIPH_BASE + 0x00000800UL) #define RTC_BASE (APB1PERIPH_BASE + 0x00002800UL) #define WWDG_BASE (APB1PERIPH_BASE + 0x00002C00UL) #define IWDG_BASE (APB1PERIPH_BASE + 0x00003000UL) #define SPI2_BASE (APB1PERIPH_BASE + 0x00003800UL) #define USART2_BASE (APB1PERIPH_BASE + 0x00004400UL) #define USART3_BASE (APB1PERIPH_BASE + 0x00004800UL) #define I2C1_BASE (APB1PERIPH_BASE + 0x00005400UL) #define I2C2_BASE (APB1PERIPH_BASE + 0x00005800UL) #define CAN1_BASE (APB1PERIPH_BASE + 0x00006400UL) #define BKP_BASE (APB1PERIPH_BASE + 0x00006C00UL) #define PWR_BASE (APB1PERIPH_BASE + 0x00007000UL) #define AFIO_BASE (APB2PERIPH_BASE + 0x00000000UL) #define EXTI_BASE (APB2PERIPH_BASE + 0x00000400UL) #define GPIOA_BASE (APB2PERIPH_BASE + 0x00000800UL) #define GPIOB_BASE (APB2PERIPH_BASE + 0x00000C00UL) #define GPIOC_BASE (APB2PERIPH_BASE + 0x00001000UL) #define GPIOD_BASE (APB2PERIPH_BASE + 0x00001400UL) #define GPIOE_BASE (APB2PERIPH_BASE + 0x00001800UL) #define ADC1_BASE (APB2PERIPH_BASE + 0x00002400UL) #define ADC2_BASE (APB2PERIPH_BASE + 0x00002800UL) #define TIM1_BASE (APB2PERIPH_BASE + 0x00002C00UL) #define SPI1_BASE (APB2PERIPH_BASE + 0x00003000UL) #define USART1_BASE (APB2PERIPH_BASE + 0x00003800UL) #define DMA1_BASE (AHBPERIPH_BASE + 0x00000000UL) #define DMA1_Channel1_BASE (AHBPERIPH_BASE + 0x00000008UL) #define DMA1_Channel2_BASE (AHBPERIPH_BASE + 0x0000001CUL) #define DMA1_Channel3_BASE (AHBPERIPH_BASE + 0x00000030UL) #define DMA1_Channel4_BASE (AHBPERIPH_BASE + 0x00000044UL) #define DMA1_Channel5_BASE (AHBPERIPH_BASE + 0x00000058UL) #define DMA1_Channel6_BASE (AHBPERIPH_BASE + 0x0000006CUL) #define DMA1_Channel7_BASE (AHBPERIPH_BASE + 0x00000080UL) #define RCC_BASE (AHBPERIPH_BASE + 0x00001000UL) #define CRC_BASE (AHBPERIPH_BASE + 0x00003000UL) #define FLASH_R_BASE (AHBPERIPH_BASE + 0x00002000UL) /*!< Flash registers base address */ #define FLASHSIZE_BASE 0x1FFFF7E0UL /*!< FLASH Size register base address */ #define UID_BASE 0x1FFFF7E8UL /*!< Unique device ID register base address */ #define OB_BASE 0x1FFFF800UL /*!< Flash Option Bytes base address */ #define DBGMCU_BASE 0xE0042000UL /*!< Debug MCU registers base address */ /* USB device FS */ #define USB_BASE (APB1PERIPH_BASE + 0x00005C00UL) /*!< USB_IP Peripheral Registers base address */ #define USB_PMAADDR (APB1PERIPH_BASE + 0x00006000UL) /*!< USB_IP Packet Memory Area base address */ /** * @} */ /** @addtogroup Peripheral_declaration * @{ */ #define TIM2 ((TIM_TypeDef *)TIM2_BASE) #define TIM3 ((TIM_TypeDef *)TIM3_BASE) #define TIM4 ((TIM_TypeDef *)TIM4_BASE) #define RTC ((RTC_TypeDef *)RTC_BASE) #define WWDG ((WWDG_TypeDef *)WWDG_BASE) #define IWDG ((IWDG_TypeDef *)IWDG_BASE) #define SPI2 ((SPI_TypeDef *)SPI2_BASE) #define USART2 ((USART_TypeDef *)USART2_BASE) #define USART3 ((USART_TypeDef *)USART3_BASE) #define I2C1 ((I2C_TypeDef *)I2C1_BASE) #define I2C2 ((I2C_TypeDef *)I2C2_BASE) #define USB ((USB_TypeDef *)USB_BASE) #define CAN1 ((CAN_TypeDef *)CAN1_BASE) #define BKP ((BKP_TypeDef *)BKP_BASE) #define PWR ((PWR_TypeDef *)PWR_BASE) #define AFIO ((AFIO_TypeDef *)AFIO_BASE) #define EXTI ((EXTI_TypeDef *)EXTI_BASE) #define GPIOA ((GPIO_TypeDef *)GPIOA_BASE) #define GPIOB ((GPIO_TypeDef *)GPIOB_BASE) #define GPIOC ((GPIO_TypeDef *)GPIOC_BASE) #define GPIOD ((GPIO_TypeDef *)GPIOD_BASE) #define GPIOE ((GPIO_TypeDef *)GPIOE_BASE) #define ADC1 ((ADC_TypeDef *)ADC1_BASE) #define ADC2 ((ADC_TypeDef *)ADC2_BASE) #define ADC12_COMMON ((ADC_Common_TypeDef *)ADC1_BASE) #define TIM1 ((TIM_TypeDef *)TIM1_BASE) #define SPI1 ((SPI_TypeDef *)SPI1_BASE) #define USART1 ((USART_TypeDef *)USART1_BASE) #define DMA1 ((DMA_TypeDef *)DMA1_BASE) #define DMA1_Channel1 ((DMA_Channel_TypeDef *)DMA1_Channel1_BASE) #define DMA1_Channel2 ((DMA_Channel_TypeDef *)DMA1_Channel2_BASE) #define DMA1_Channel3 ((DMA_Channel_TypeDef *)DMA1_Channel3_BASE) #define DMA1_Channel4 ((DMA_Channel_TypeDef *)DMA1_Channel4_BASE) #define DMA1_Channel5 ((DMA_Channel_TypeDef *)DMA1_Channel5_BASE) #define DMA1_Channel6 ((DMA_Channel_TypeDef *)DMA1_Channel6_BASE) #define DMA1_Channel7 ((DMA_Channel_TypeDef *)DMA1_Channel7_BASE) #define RCC ((RCC_TypeDef *)RCC_BASE) #define CRC ((CRC_TypeDef *)CRC_BASE) #define FLASH ((FLASH_TypeDef *)FLASH_R_BASE) #define OB ((OB_TypeDef *)OB_BASE) #define DBGMCU ((DBGMCU_TypeDef *)DBGMCU_BASE) /** * @} */ /** @addtogroup Exported_constants * @{ */ /** @addtogroup Hardware_Constant_Definition * @{ */ #define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */ /** * @} */ /** @addtogroup Peripheral_Registers_Bits_Definition * @{ */ /******************************************************************************/ /* Peripheral Registers_Bits_Definition */ /******************************************************************************/ /******************************************************************************/ /* */ /* CRC calculation unit (CRC) */ /* */ /******************************************************************************/ /******************* Bit definition for CRC_DR register *********************/ #define CRC_DR_DR_Pos (0U) #define CRC_DR_DR_Msk (0xFFFFFFFFUL << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */ #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */ /******************* Bit definition for CRC_IDR register ********************/ #define CRC_IDR_IDR_Pos (0U) #define CRC_IDR_IDR_Msk (0xFFUL << CRC_IDR_IDR_Pos) /*!< 0x000000FF */ #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 8-bit data register bits */ /******************** Bit definition for CRC_CR register ********************/ #define CRC_CR_RESET_Pos (0U) #define CRC_CR_RESET_Msk (0x1UL << CRC_CR_RESET_Pos) /*!< 0x00000001 */ #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET bit */ /******************************************************************************/ /* */ /* Power Control */ /* */ /******************************************************************************/ /******************** Bit definition for PWR_CR register ********************/ #define PWR_CR_LPDS_Pos (0U) #define PWR_CR_LPDS_Msk (0x1UL << PWR_CR_LPDS_Pos) /*!< 0x00000001 */ #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-Power Deepsleep */ #define PWR_CR_PDDS_Pos (1U) #define PWR_CR_PDDS_Msk (0x1UL << PWR_CR_PDDS_Pos) /*!< 0x00000002 */ #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */ #define PWR_CR_CWUF_Pos (2U) #define PWR_CR_CWUF_Msk (0x1UL << PWR_CR_CWUF_Pos) /*!< 0x00000004 */ #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */ #define PWR_CR_CSBF_Pos (3U) #define PWR_CR_CSBF_Msk (0x1UL << PWR_CR_CSBF_Pos) /*!< 0x00000008 */ #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */ #define PWR_CR_PVDE_Pos (4U) #define PWR_CR_PVDE_Msk (0x1UL << PWR_CR_PVDE_Pos) /*!< 0x00000010 */ #define PWR_CR_PVDE PWR_CR_PVDE_Msk /*!< Power Voltage Detector Enable */ #define PWR_CR_PLS_Pos (5U) #define PWR_CR_PLS_Msk (0x7UL << PWR_CR_PLS_Pos) /*!< 0x000000E0 */ #define PWR_CR_PLS PWR_CR_PLS_Msk /*!< PLS[2:0] bits (PVD Level Selection) */ #define PWR_CR_PLS_0 (0x1UL << PWR_CR_PLS_Pos) /*!< 0x00000020 */ #define PWR_CR_PLS_1 (0x2UL << PWR_CR_PLS_Pos) /*!< 0x00000040 */ #define PWR_CR_PLS_2 (0x4UL << PWR_CR_PLS_Pos) /*!< 0x00000080 */ /*!< PVD level configuration */ #define PWR_CR_PLS_LEV0 0x00000000U /*!< PVD level 2.2V */ #define PWR_CR_PLS_LEV1 0x00000020U /*!< PVD level 2.3V */ #define PWR_CR_PLS_LEV2 0x00000040U /*!< PVD level 2.4V */ #define PWR_CR_PLS_LEV3 0x00000060U /*!< PVD level 2.5V */ #define PWR_CR_PLS_LEV4 0x00000080U /*!< PVD level 2.6V */ #define PWR_CR_PLS_LEV5 0x000000A0U /*!< PVD level 2.7V */ #define PWR_CR_PLS_LEV6 0x000000C0U /*!< PVD level 2.8V */ #define PWR_CR_PLS_LEV7 0x000000E0U /*!< PVD level 2.9V */ /* Legacy defines */ #define PWR_CR_PLS_2V2 PWR_CR_PLS_LEV0 #define PWR_CR_PLS_2V3 PWR_CR_PLS_LEV1 #define PWR_CR_PLS_2V4 PWR_CR_PLS_LEV2 #define PWR_CR_PLS_2V5 PWR_CR_PLS_LEV3 #define PWR_CR_PLS_2V6 PWR_CR_PLS_LEV4 #define PWR_CR_PLS_2V7 PWR_CR_PLS_LEV5 #define PWR_CR_PLS_2V8 PWR_CR_PLS_LEV6 #define PWR_CR_PLS_2V9 PWR_CR_PLS_LEV7 #define PWR_CR_DBP_Pos (8U) #define PWR_CR_DBP_Msk (0x1UL << PWR_CR_DBP_Pos) /*!< 0x00000100 */ #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */ /******************* Bit definition for PWR_CSR register ********************/ #define PWR_CSR_WUF_Pos (0U) #define PWR_CSR_WUF_Msk (0x1UL << PWR_CSR_WUF_Pos) /*!< 0x00000001 */ #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */ #define PWR_CSR_SBF_Pos (1U) #define PWR_CSR_SBF_Msk (0x1UL << PWR_CSR_SBF_Pos) /*!< 0x00000002 */ #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */ #define PWR_CSR_PVDO_Pos (2U) #define PWR_CSR_PVDO_Msk (0x1UL << PWR_CSR_PVDO_Pos) /*!< 0x00000004 */ #define PWR_CSR_PVDO PWR_CSR_PVDO_Msk /*!< PVD Output */ #define PWR_CSR_EWUP_Pos (8U) #define PWR_CSR_EWUP_Msk (0x1UL << PWR_CSR_EWUP_Pos) /*!< 0x00000100 */ #define PWR_CSR_EWUP PWR_CSR_EWUP_Msk /*!< Enable WKUP pin */ /******************************************************************************/ /* */ /* Backup registers */ /* */ /******************************************************************************/ /******************* Bit definition for BKP_DR1 register ********************/ #define BKP_DR1_D_Pos (0U) #define BKP_DR1_D_Msk (0xFFFFUL << BKP_DR1_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR1_D BKP_DR1_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR2 register ********************/ #define BKP_DR2_D_Pos (0U) #define BKP_DR2_D_Msk (0xFFFFUL << BKP_DR2_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR2_D BKP_DR2_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR3 register ********************/ #define BKP_DR3_D_Pos (0U) #define BKP_DR3_D_Msk (0xFFFFUL << BKP_DR3_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR3_D BKP_DR3_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR4 register ********************/ #define BKP_DR4_D_Pos (0U) #define BKP_DR4_D_Msk (0xFFFFUL << BKP_DR4_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR4_D BKP_DR4_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR5 register ********************/ #define BKP_DR5_D_Pos (0U) #define BKP_DR5_D_Msk (0xFFFFUL << BKP_DR5_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR5_D BKP_DR5_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR6 register ********************/ #define BKP_DR6_D_Pos (0U) #define BKP_DR6_D_Msk (0xFFFFUL << BKP_DR6_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR6_D BKP_DR6_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR7 register ********************/ #define BKP_DR7_D_Pos (0U) #define BKP_DR7_D_Msk (0xFFFFUL << BKP_DR7_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR7_D BKP_DR7_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR8 register ********************/ #define BKP_DR8_D_Pos (0U) #define BKP_DR8_D_Msk (0xFFFFUL << BKP_DR8_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR8_D BKP_DR8_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR9 register ********************/ #define BKP_DR9_D_Pos (0U) #define BKP_DR9_D_Msk (0xFFFFUL << BKP_DR9_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR9_D BKP_DR9_D_Msk /*!< Backup data */ /******************* Bit definition for BKP_DR10 register *******************/ #define BKP_DR10_D_Pos (0U) #define BKP_DR10_D_Msk (0xFFFFUL << BKP_DR10_D_Pos) /*!< 0x0000FFFF */ #define BKP_DR10_D BKP_DR10_D_Msk /*!< Backup data */ #define RTC_BKP_NUMBER 10 /****************** Bit definition for BKP_RTCCR register *******************/ #define BKP_RTCCR_CAL_Pos (0U) #define BKP_RTCCR_CAL_Msk (0x7FUL << BKP_RTCCR_CAL_Pos) /*!< 0x0000007F */ #define BKP_RTCCR_CAL BKP_RTCCR_CAL_Msk /*!< Calibration value */ #define BKP_RTCCR_CCO_Pos (7U) #define BKP_RTCCR_CCO_Msk (0x1UL << BKP_RTCCR_CCO_Pos) /*!< 0x00000080 */ #define BKP_RTCCR_CCO BKP_RTCCR_CCO_Msk /*!< Calibration Clock Output */ #define BKP_RTCCR_ASOE_Pos (8U) #define BKP_RTCCR_ASOE_Msk (0x1UL << BKP_RTCCR_ASOE_Pos) /*!< 0x00000100 */ #define BKP_RTCCR_ASOE BKP_RTCCR_ASOE_Msk /*!< Alarm or Second Output Enable */ #define BKP_RTCCR_ASOS_Pos (9U) #define BKP_RTCCR_ASOS_Msk (0x1UL << BKP_RTCCR_ASOS_Pos) /*!< 0x00000200 */ #define BKP_RTCCR_ASOS BKP_RTCCR_ASOS_Msk /*!< Alarm or Second Output Selection */ /******************** Bit definition for BKP_CR register ********************/ #define BKP_CR_TPE_Pos (0U) #define BKP_CR_TPE_Msk (0x1UL << BKP_CR_TPE_Pos) /*!< 0x00000001 */ #define BKP_CR_TPE BKP_CR_TPE_Msk /*!< TAMPER pin enable */ #define BKP_CR_TPAL_Pos (1U) #define BKP_CR_TPAL_Msk (0x1UL << BKP_CR_TPAL_Pos) /*!< 0x00000002 */ #define BKP_CR_TPAL BKP_CR_TPAL_Msk /*!< TAMPER pin active level */ /******************* Bit definition for BKP_CSR register ********************/ #define BKP_CSR_CTE_Pos (0U) #define BKP_CSR_CTE_Msk (0x1UL << BKP_CSR_CTE_Pos) /*!< 0x00000001 */ #define BKP_CSR_CTE BKP_CSR_CTE_Msk /*!< Clear Tamper event */ #define BKP_CSR_CTI_Pos (1U) #define BKP_CSR_CTI_Msk (0x1UL << BKP_CSR_CTI_Pos) /*!< 0x00000002 */ #define BKP_CSR_CTI BKP_CSR_CTI_Msk /*!< Clear Tamper Interrupt */ #define BKP_CSR_TPIE_Pos (2U) #define BKP_CSR_TPIE_Msk (0x1UL << BKP_CSR_TPIE_Pos) /*!< 0x00000004 */ #define BKP_CSR_TPIE BKP_CSR_TPIE_Msk /*!< TAMPER Pin interrupt enable */ #define BKP_CSR_TEF_Pos (8U) #define BKP_CSR_TEF_Msk (0x1UL << BKP_CSR_TEF_Pos) /*!< 0x00000100 */ #define BKP_CSR_TEF BKP_CSR_TEF_Msk /*!< Tamper Event Flag */ #define BKP_CSR_TIF_Pos (9U) #define BKP_CSR_TIF_Msk (0x1UL << BKP_CSR_TIF_Pos) /*!< 0x00000200 */ #define BKP_CSR_TIF BKP_CSR_TIF_Msk /*!< Tamper Interrupt Flag */ /******************************************************************************/ /* */ /* Reset and Clock Control */ /* */ /******************************************************************************/ /******************** Bit definition for RCC_CR register ********************/ #define RCC_CR_HSION_Pos (0U) #define RCC_CR_HSION_Msk (0x1UL << RCC_CR_HSION_Pos) /*!< 0x00000001 */ #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */ #define RCC_CR_HSIRDY_Pos (1U) #define RCC_CR_HSIRDY_Msk (0x1UL << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */ #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */ #define RCC_CR_HSITRIM_Pos (3U) #define RCC_CR_HSITRIM_Msk (0x1FUL << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */ #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk /*!< Internal High Speed clock trimming */ #define RCC_CR_HSICAL_Pos (8U) #define RCC_CR_HSICAL_Msk (0xFFUL << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */ #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk /*!< Internal High Speed clock Calibration */ #define RCC_CR_HSEON_Pos (16U) #define RCC_CR_HSEON_Msk (0x1UL << RCC_CR_HSEON_Pos) /*!< 0x00010000 */ #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */ #define RCC_CR_HSERDY_Pos (17U) #define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */ #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready flag */ #define RCC_CR_HSEBYP_Pos (18U) #define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */ #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */ #define RCC_CR_CSSON_Pos (19U) #define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */ #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< Clock Security System enable */ #define RCC_CR_PLLON_Pos (24U) #define RCC_CR_PLLON_Msk (0x1UL << RCC_CR_PLLON_Pos) /*!< 0x01000000 */ #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< PLL enable */ #define RCC_CR_PLLRDY_Pos (25U) #define RCC_CR_PLLRDY_Msk (0x1UL << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */ #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< PLL clock ready flag */ /******************* Bit definition for RCC_CFGR register *******************/ /*!< SW configuration */ #define RCC_CFGR_SW_Pos (0U) #define RCC_CFGR_SW_Msk (0x3UL << RCC_CFGR_SW_Pos) /*!< 0x00000003 */ #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */ #define RCC_CFGR_SW_0 (0x1UL << RCC_CFGR_SW_Pos) /*!< 0x00000001 */ #define RCC_CFGR_SW_1 (0x2UL << RCC_CFGR_SW_Pos) /*!< 0x00000002 */ #define RCC_CFGR_SW_HSI 0x00000000U /*!< HSI selected as system clock */ #define RCC_CFGR_SW_HSE 0x00000001U /*!< HSE selected as system clock */ #define RCC_CFGR_SW_PLL 0x00000002U /*!< PLL selected as system clock */ /*!< SWS configuration */ #define RCC_CFGR_SWS_Pos (2U) #define RCC_CFGR_SWS_Msk (0x3UL << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */ #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */ #define RCC_CFGR_SWS_0 (0x1UL << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */ #define RCC_CFGR_SWS_1 (0x2UL << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */ #define RCC_CFGR_SWS_HSI 0x00000000U /*!< HSI oscillator used as system clock */ #define RCC_CFGR_SWS_HSE 0x00000004U /*!< HSE oscillator used as system clock */ #define RCC_CFGR_SWS_PLL 0x00000008U /*!< PLL used as system clock */ /*!< HPRE configuration */ #define RCC_CFGR_HPRE_Pos (4U) #define RCC_CFGR_HPRE_Msk (0xFUL << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */ #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */ #define RCC_CFGR_HPRE_0 (0x1UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */ #define RCC_CFGR_HPRE_1 (0x2UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */ #define RCC_CFGR_HPRE_2 (0x4UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */ #define RCC_CFGR_HPRE_3 (0x8UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */ #define RCC_CFGR_HPRE_DIV1 0x00000000U /*!< SYSCLK not divided */ #define RCC_CFGR_HPRE_DIV2 0x00000080U /*!< SYSCLK divided by 2 */ #define RCC_CFGR_HPRE_DIV4 0x00000090U /*!< SYSCLK divided by 4 */ #define RCC_CFGR_HPRE_DIV8 0x000000A0U /*!< SYSCLK divided by 8 */ #define RCC_CFGR_HPRE_DIV16 0x000000B0U /*!< SYSCLK divided by 16 */ #define RCC_CFGR_HPRE_DIV64 0x000000C0U /*!< SYSCLK divided by 64 */ #define RCC_CFGR_HPRE_DIV128 0x000000D0U /*!< SYSCLK divided by 128 */ #define RCC_CFGR_HPRE_DIV256 0x000000E0U /*!< SYSCLK divided by 256 */ #define RCC_CFGR_HPRE_DIV512 0x000000F0U /*!< SYSCLK divided by 512 */ /*!< PPRE1 configuration */ #define RCC_CFGR_PPRE1_Pos (8U) #define RCC_CFGR_PPRE1_Msk (0x7UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */ #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB1 prescaler) */ #define RCC_CFGR_PPRE1_0 (0x1UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */ #define RCC_CFGR_PPRE1_1 (0x2UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */ #define RCC_CFGR_PPRE1_2 (0x4UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */ #define RCC_CFGR_PPRE1_DIV1 0x00000000U /*!< HCLK not divided */ #define RCC_CFGR_PPRE1_DIV2 0x00000400U /*!< HCLK divided by 2 */ #define RCC_CFGR_PPRE1_DIV4 0x00000500U /*!< HCLK divided by 4 */ #define RCC_CFGR_PPRE1_DIV8 0x00000600U /*!< HCLK divided by 8 */ #define RCC_CFGR_PPRE1_DIV16 0x00000700U /*!< HCLK divided by 16 */ /*!< PPRE2 configuration */ #define RCC_CFGR_PPRE2_Pos (11U) #define RCC_CFGR_PPRE2_Msk (0x7UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */ #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */ #define RCC_CFGR_PPRE2_0 (0x1UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */ #define RCC_CFGR_PPRE2_1 (0x2UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */ #define RCC_CFGR_PPRE2_2 (0x4UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */ #define RCC_CFGR_PPRE2_DIV1 0x00000000U /*!< HCLK not divided */ #define RCC_CFGR_PPRE2_DIV2 0x00002000U /*!< HCLK divided by 2 */ #define RCC_CFGR_PPRE2_DIV4 0x00002800U /*!< HCLK divided by 4 */ #define RCC_CFGR_PPRE2_DIV8 0x00003000U /*!< HCLK divided by 8 */ #define RCC_CFGR_PPRE2_DIV16 0x00003800U /*!< HCLK divided by 16 */ /*!< ADCPPRE configuration */ #define RCC_CFGR_ADCPRE_Pos (14U) #define RCC_CFGR_ADCPRE_Msk (0x3UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x0000C000 */ #define RCC_CFGR_ADCPRE RCC_CFGR_ADCPRE_Msk /*!< ADCPRE[1:0] bits (ADC prescaler) */ #define RCC_CFGR_ADCPRE_0 (0x1UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x00004000 */ #define RCC_CFGR_ADCPRE_1 (0x2UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x00008000 */ #define RCC_CFGR_ADCPRE_DIV2 0x00000000U /*!< PCLK2 divided by 2 */ #define RCC_CFGR_ADCPRE_DIV4 0x00004000U /*!< PCLK2 divided by 4 */ #define RCC_CFGR_ADCPRE_DIV6 0x00008000U /*!< PCLK2 divided by 6 */ #define RCC_CFGR_ADCPRE_DIV8 0x0000C000U /*!< PCLK2 divided by 8 */ #define RCC_CFGR_PLLSRC_Pos (16U) #define RCC_CFGR_PLLSRC_Msk (0x1UL << RCC_CFGR_PLLSRC_Pos) /*!< 0x00010000 */ #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */ #define RCC_CFGR_PLLXTPRE_Pos (17U) #define RCC_CFGR_PLLXTPRE_Msk (0x1UL << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */ #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */ /*!< PLLMUL configuration */ #define RCC_CFGR_PLLMULL_Pos (18U) #define RCC_CFGR_PLLMULL_Msk (0xFUL << RCC_CFGR_PLLMULL_Pos) /*!< 0x003C0000 */ #define RCC_CFGR_PLLMULL RCC_CFGR_PLLMULL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */ #define RCC_CFGR_PLLMULL_0 (0x1UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00040000 */ #define RCC_CFGR_PLLMULL_1 (0x2UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00080000 */ #define RCC_CFGR_PLLMULL_2 (0x4UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00100000 */ #define RCC_CFGR_PLLMULL_3 (0x8UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00200000 */ #define RCC_CFGR_PLLXTPRE_HSE 0x00000000U /*!< HSE clock not divided for PLL entry */ #define RCC_CFGR_PLLXTPRE_HSE_DIV2 0x00020000U /*!< HSE clock divided by 2 for PLL entry */ #define RCC_CFGR_PLLMULL2 0x00000000U /*!< PLL input clock*2 */ #define RCC_CFGR_PLLMULL3_Pos (18U) #define RCC_CFGR_PLLMULL3_Msk (0x1UL << RCC_CFGR_PLLMULL3_Pos) /*!< 0x00040000 */ #define RCC_CFGR_PLLMULL3 RCC_CFGR_PLLMULL3_Msk /*!< PLL input clock*3 */ #define RCC_CFGR_PLLMULL4_Pos (19U) #define RCC_CFGR_PLLMULL4_Msk (0x1UL << RCC_CFGR_PLLMULL4_Pos) /*!< 0x00080000 */ #define RCC_CFGR_PLLMULL4 RCC_CFGR_PLLMULL4_Msk /*!< PLL input clock*4 */ #define RCC_CFGR_PLLMULL5_Pos (18U) #define RCC_CFGR_PLLMULL5_Msk (0x3UL << RCC_CFGR_PLLMULL5_Pos) /*!< 0x000C0000 */ #define RCC_CFGR_PLLMULL5 RCC_CFGR_PLLMULL5_Msk /*!< PLL input clock*5 */ #define RCC_CFGR_PLLMULL6_Pos (20U) #define RCC_CFGR_PLLMULL6_Msk (0x1UL << RCC_CFGR_PLLMULL6_Pos) /*!< 0x00100000 */ #define RCC_CFGR_PLLMULL6 RCC_CFGR_PLLMULL6_Msk /*!< PLL input clock*6 */ #define RCC_CFGR_PLLMULL7_Pos (18U) #define RCC_CFGR_PLLMULL7_Msk (0x5UL << RCC_CFGR_PLLMULL7_Pos) /*!< 0x00140000 */ #define RCC_CFGR_PLLMULL7 RCC_CFGR_PLLMULL7_Msk /*!< PLL input clock*7 */ #define RCC_CFGR_PLLMULL8_Pos (19U) #define RCC_CFGR_PLLMULL8_Msk (0x3UL << RCC_CFGR_PLLMULL8_Pos) /*!< 0x00180000 */ #define RCC_CFGR_PLLMULL8 RCC_CFGR_PLLMULL8_Msk /*!< PLL input clock*8 */ #define RCC_CFGR_PLLMULL9_Pos (18U) #define RCC_CFGR_PLLMULL9_Msk (0x7UL << RCC_CFGR_PLLMULL9_Pos) /*!< 0x001C0000 */ #define RCC_CFGR_PLLMULL9 RCC_CFGR_PLLMULL9_Msk /*!< PLL input clock*9 */ #define RCC_CFGR_PLLMULL10_Pos (21U) #define RCC_CFGR_PLLMULL10_Msk (0x1UL << RCC_CFGR_PLLMULL10_Pos) /*!< 0x00200000 */ #define RCC_CFGR_PLLMULL10 RCC_CFGR_PLLMULL10_Msk /*!< PLL input clock10 */ #define RCC_CFGR_PLLMULL11_Pos (18U) #define RCC_CFGR_PLLMULL11_Msk (0x9UL << RCC_CFGR_PLLMULL11_Pos) /*!< 0x00240000 */ #define RCC_CFGR_PLLMULL11 RCC_CFGR_PLLMULL11_Msk /*!< PLL input clock*11 */ #define RCC_CFGR_PLLMULL12_Pos (19U) #define RCC_CFGR_PLLMULL12_Msk (0x5UL << RCC_CFGR_PLLMULL12_Pos) /*!< 0x00280000 */ #define RCC_CFGR_PLLMULL12 RCC_CFGR_PLLMULL12_Msk /*!< PLL input clock*12 */ #define RCC_CFGR_PLLMULL13_Pos (18U) #define RCC_CFGR_PLLMULL13_Msk (0xBUL << RCC_CFGR_PLLMULL13_Pos) /*!< 0x002C0000 */ #define RCC_CFGR_PLLMULL13 RCC_CFGR_PLLMULL13_Msk /*!< PLL input clock*13 */ #define RCC_CFGR_PLLMULL14_Pos (20U) #define RCC_CFGR_PLLMULL14_Msk (0x3UL << RCC_CFGR_PLLMULL14_Pos) /*!< 0x00300000 */ #define RCC_CFGR_PLLMULL14 RCC_CFGR_PLLMULL14_Msk /*!< PLL input clock*14 */ #define RCC_CFGR_PLLMULL15_Pos (18U) #define RCC_CFGR_PLLMULL15_Msk (0xDUL << RCC_CFGR_PLLMULL15_Pos) /*!< 0x00340000 */ #define RCC_CFGR_PLLMULL15 RCC_CFGR_PLLMULL15_Msk /*!< PLL input clock*15 */ #define RCC_CFGR_PLLMULL16_Pos (19U) #define RCC_CFGR_PLLMULL16_Msk (0x7UL << RCC_CFGR_PLLMULL16_Pos) /*!< 0x00380000 */ #define RCC_CFGR_PLLMULL16 RCC_CFGR_PLLMULL16_Msk /*!< PLL input clock*16 */ #define RCC_CFGR_USBPRE_Pos (22U) #define RCC_CFGR_USBPRE_Msk (0x1UL << RCC_CFGR_USBPRE_Pos) /*!< 0x00400000 */ #define RCC_CFGR_USBPRE RCC_CFGR_USBPRE_Msk /*!< USB Device prescaler */ /*!< MCO configuration */ #define RCC_CFGR_MCO_Pos (24U) #define RCC_CFGR_MCO_Msk (0x7UL << RCC_CFGR_MCO_Pos) /*!< 0x07000000 */ #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[2:0] bits (Microcontroller Clock Output) */ #define RCC_CFGR_MCO_0 (0x1UL << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */ #define RCC_CFGR_MCO_1 (0x2UL << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */ #define RCC_CFGR_MCO_2 (0x4UL << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */ #define RCC_CFGR_MCO_NOCLOCK 0x00000000U /*!< No clock */ #define RCC_CFGR_MCO_SYSCLK 0x04000000U /*!< System clock selected as MCO source */ #define RCC_CFGR_MCO_HSI 0x05000000U /*!< HSI clock selected as MCO source */ #define RCC_CFGR_MCO_HSE 0x06000000U /*!< HSE clock selected as MCO source */ #define RCC_CFGR_MCO_PLLCLK_DIV2 0x07000000U /*!< PLL clock divided by 2 selected as MCO source */ /* Reference defines */ #define RCC_CFGR_MCOSEL RCC_CFGR_MCO #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0 #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1 #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2 #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLLCLK_DIV2 /*!<****************** Bit definition for RCC_CIR register ********************/ #define RCC_CIR_LSIRDYF_Pos (0U) #define RCC_CIR_LSIRDYF_Msk (0x1UL << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */ #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */ #define RCC_CIR_LSERDYF_Pos (1U) #define RCC_CIR_LSERDYF_Msk (0x1UL << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */ #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */ #define RCC_CIR_HSIRDYF_Pos (2U) #define RCC_CIR_HSIRDYF_Msk (0x1UL << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */ #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */ #define RCC_CIR_HSERDYF_Pos (3U) #define RCC_CIR_HSERDYF_Msk (0x1UL << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */ #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */ #define RCC_CIR_PLLRDYF_Pos (4U) #define RCC_CIR_PLLRDYF_Msk (0x1UL << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */ #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */ #define RCC_CIR_CSSF_Pos (7U) #define RCC_CIR_CSSF_Msk (0x1UL << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */ #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */ #define RCC_CIR_LSIRDYIE_Pos (8U) #define RCC_CIR_LSIRDYIE_Msk (0x1UL << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */ #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */ #define RCC_CIR_LSERDYIE_Pos (9U) #define RCC_CIR_LSERDYIE_Msk (0x1UL << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */ #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */ #define RCC_CIR_HSIRDYIE_Pos (10U) #define RCC_CIR_HSIRDYIE_Msk (0x1UL << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */ #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */ #define RCC_CIR_HSERDYIE_Pos (11U) #define RCC_CIR_HSERDYIE_Msk (0x1UL << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */ #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */ #define RCC_CIR_PLLRDYIE_Pos (12U) #define RCC_CIR_PLLRDYIE_Msk (0x1UL << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */ #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */ #define RCC_CIR_LSIRDYC_Pos (16U) #define RCC_CIR_LSIRDYC_Msk (0x1UL << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */ #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */ #define RCC_CIR_LSERDYC_Pos (17U) #define RCC_CIR_LSERDYC_Msk (0x1UL << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */ #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */ #define RCC_CIR_HSIRDYC_Pos (18U) #define RCC_CIR_HSIRDYC_Msk (0x1UL << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */ #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */ #define RCC_CIR_HSERDYC_Pos (19U) #define RCC_CIR_HSERDYC_Msk (0x1UL << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */ #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */ #define RCC_CIR_PLLRDYC_Pos (20U) #define RCC_CIR_PLLRDYC_Msk (0x1UL << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */ #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */ #define RCC_CIR_CSSC_Pos (23U) #define RCC_CIR_CSSC_Msk (0x1UL << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */ #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */ /***************** Bit definition for RCC_APB2RSTR register *****************/ #define RCC_APB2RSTR_AFIORST_Pos (0U) #define RCC_APB2RSTR_AFIORST_Msk (0x1UL << RCC_APB2RSTR_AFIORST_Pos) /*!< 0x00000001 */ #define RCC_APB2RSTR_AFIORST RCC_APB2RSTR_AFIORST_Msk /*!< Alternate Function I/O reset */ #define RCC_APB2RSTR_IOPARST_Pos (2U) #define RCC_APB2RSTR_IOPARST_Msk (0x1UL << RCC_APB2RSTR_IOPARST_Pos) /*!< 0x00000004 */ #define RCC_APB2RSTR_IOPARST RCC_APB2RSTR_IOPARST_Msk /*!< I/O port A reset */ #define RCC_APB2RSTR_IOPBRST_Pos (3U) #define RCC_APB2RSTR_IOPBRST_Msk (0x1UL << RCC_APB2RSTR_IOPBRST_Pos) /*!< 0x00000008 */ #define RCC_APB2RSTR_IOPBRST RCC_APB2RSTR_IOPBRST_Msk /*!< I/O port B reset */ #define RCC_APB2RSTR_IOPCRST_Pos (4U) #define RCC_APB2RSTR_IOPCRST_Msk (0x1UL << RCC_APB2RSTR_IOPCRST_Pos) /*!< 0x00000010 */ #define RCC_APB2RSTR_IOPCRST RCC_APB2RSTR_IOPCRST_Msk /*!< I/O port C reset */ #define RCC_APB2RSTR_IOPDRST_Pos (5U) #define RCC_APB2RSTR_IOPDRST_Msk (0x1UL << RCC_APB2RSTR_IOPDRST_Pos) /*!< 0x00000020 */ #define RCC_APB2RSTR_IOPDRST RCC_APB2RSTR_IOPDRST_Msk /*!< I/O port D reset */ #define RCC_APB2RSTR_ADC1RST_Pos (9U) #define RCC_APB2RSTR_ADC1RST_Msk (0x1UL << RCC_APB2RSTR_ADC1RST_Pos) /*!< 0x00000200 */ #define RCC_APB2RSTR_ADC1RST RCC_APB2RSTR_ADC1RST_Msk /*!< ADC 1 interface reset */ #define RCC_APB2RSTR_ADC2RST_Pos (10U) #define RCC_APB2RSTR_ADC2RST_Msk (0x1UL << RCC_APB2RSTR_ADC2RST_Pos) /*!< 0x00000400 */ #define RCC_APB2RSTR_ADC2RST RCC_APB2RSTR_ADC2RST_Msk /*!< ADC 2 interface reset */ #define RCC_APB2RSTR_TIM1RST_Pos (11U) #define RCC_APB2RSTR_TIM1RST_Msk (0x1UL << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */ #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk /*!< TIM1 Timer reset */ #define RCC_APB2RSTR_SPI1RST_Pos (12U) #define RCC_APB2RSTR_SPI1RST_Msk (0x1UL << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */ #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI 1 reset */ #define RCC_APB2RSTR_USART1RST_Pos (14U) #define RCC_APB2RSTR_USART1RST_Msk (0x1UL << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */ #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 reset */ #define RCC_APB2RSTR_IOPERST_Pos (6U) #define RCC_APB2RSTR_IOPERST_Msk (0x1UL << RCC_APB2RSTR_IOPERST_Pos) /*!< 0x00000040 */ #define RCC_APB2RSTR_IOPERST RCC_APB2RSTR_IOPERST_Msk /*!< I/O port E reset */ /***************** Bit definition for RCC_APB1RSTR register *****************/ #define RCC_APB1RSTR_TIM2RST_Pos (0U) #define RCC_APB1RSTR_TIM2RST_Msk (0x1UL << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */ #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 reset */ #define RCC_APB1RSTR_TIM3RST_Pos (1U) #define RCC_APB1RSTR_TIM3RST_Msk (0x1UL << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */ #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 reset */ #define RCC_APB1RSTR_WWDGRST_Pos (11U) #define RCC_APB1RSTR_WWDGRST_Msk (0x1UL << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */ #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog reset */ #define RCC_APB1RSTR_USART2RST_Pos (17U) #define RCC_APB1RSTR_USART2RST_Msk (0x1UL << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */ #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 reset */ #define RCC_APB1RSTR_I2C1RST_Pos (21U) #define RCC_APB1RSTR_I2C1RST_Msk (0x1UL << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */ #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 reset */ #define RCC_APB1RSTR_CAN1RST_Pos (25U) #define RCC_APB1RSTR_CAN1RST_Msk (0x1UL << RCC_APB1RSTR_CAN1RST_Pos) /*!< 0x02000000 */ #define RCC_APB1RSTR_CAN1RST RCC_APB1RSTR_CAN1RST_Msk /*!< CAN1 reset */ #define RCC_APB1RSTR_BKPRST_Pos (27U) #define RCC_APB1RSTR_BKPRST_Msk (0x1UL << RCC_APB1RSTR_BKPRST_Pos) /*!< 0x08000000 */ #define RCC_APB1RSTR_BKPRST RCC_APB1RSTR_BKPRST_Msk /*!< Backup interface reset */ #define RCC_APB1RSTR_PWRRST_Pos (28U) #define RCC_APB1RSTR_PWRRST_Msk (0x1UL << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */ #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< Power interface reset */ #define RCC_APB1RSTR_TIM4RST_Pos (2U) #define RCC_APB1RSTR_TIM4RST_Msk (0x1UL << RCC_APB1RSTR_TIM4RST_Pos) /*!< 0x00000004 */ #define RCC_APB1RSTR_TIM4RST RCC_APB1RSTR_TIM4RST_Msk /*!< Timer 4 reset */ #define RCC_APB1RSTR_SPI2RST_Pos (14U) #define RCC_APB1RSTR_SPI2RST_Msk (0x1UL << RCC_APB1RSTR_SPI2RST_Pos) /*!< 0x00004000 */ #define RCC_APB1RSTR_SPI2RST RCC_APB1RSTR_SPI2RST_Msk /*!< SPI 2 reset */ #define RCC_APB1RSTR_USART3RST_Pos (18U) #define RCC_APB1RSTR_USART3RST_Msk (0x1UL << RCC_APB1RSTR_USART3RST_Pos) /*!< 0x00040000 */ #define RCC_APB1RSTR_USART3RST RCC_APB1RSTR_USART3RST_Msk /*!< USART 3 reset */ #define RCC_APB1RSTR_I2C2RST_Pos (22U) #define RCC_APB1RSTR_I2C2RST_Msk (0x1UL << RCC_APB1RSTR_I2C2RST_Pos) /*!< 0x00400000 */ #define RCC_APB1RSTR_I2C2RST RCC_APB1RSTR_I2C2RST_Msk /*!< I2C 2 reset */ #define RCC_APB1RSTR_USBRST_Pos (23U) #define RCC_APB1RSTR_USBRST_Msk (0x1UL << RCC_APB1RSTR_USBRST_Pos) /*!< 0x00800000 */ #define RCC_APB1RSTR_USBRST RCC_APB1RSTR_USBRST_Msk /*!< USB Device reset */ /****************** Bit definition for RCC_AHBENR register ******************/ #define RCC_AHBENR_DMA1EN_Pos (0U) #define RCC_AHBENR_DMA1EN_Msk (0x1UL << RCC_AHBENR_DMA1EN_Pos) /*!< 0x00000001 */ #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMA1EN_Msk /*!< DMA1 clock enable */ #define RCC_AHBENR_SRAMEN_Pos (2U) #define RCC_AHBENR_SRAMEN_Msk (0x1UL << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */ #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */ #define RCC_AHBENR_FLITFEN_Pos (4U) #define RCC_AHBENR_FLITFEN_Msk (0x1UL << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */ #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */ #define RCC_AHBENR_CRCEN_Pos (6U) #define RCC_AHBENR_CRCEN_Msk (0x1UL << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */ #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */ /****************** Bit definition for RCC_APB2ENR register *****************/ #define RCC_APB2ENR_AFIOEN_Pos (0U) #define RCC_APB2ENR_AFIOEN_Msk (0x1UL << RCC_APB2ENR_AFIOEN_Pos) /*!< 0x00000001 */ #define RCC_APB2ENR_AFIOEN RCC_APB2ENR_AFIOEN_Msk /*!< Alternate Function I/O clock enable */ #define RCC_APB2ENR_IOPAEN_Pos (2U) #define RCC_APB2ENR_IOPAEN_Msk (0x1UL << RCC_APB2ENR_IOPAEN_Pos) /*!< 0x00000004 */ #define RCC_APB2ENR_IOPAEN RCC_APB2ENR_IOPAEN_Msk /*!< I/O port A clock enable */ #define RCC_APB2ENR_IOPBEN_Pos (3U) #define RCC_APB2ENR_IOPBEN_Msk (0x1UL << RCC_APB2ENR_IOPBEN_Pos) /*!< 0x00000008 */ #define RCC_APB2ENR_IOPBEN RCC_APB2ENR_IOPBEN_Msk /*!< I/O port B clock enable */ #define RCC_APB2ENR_IOPCEN_Pos (4U) #define RCC_APB2ENR_IOPCEN_Msk (0x1UL << RCC_APB2ENR_IOPCEN_Pos) /*!< 0x00000010 */ #define RCC_APB2ENR_IOPCEN RCC_APB2ENR_IOPCEN_Msk /*!< I/O port C clock enable */ #define RCC_APB2ENR_IOPDEN_Pos (5U) #define RCC_APB2ENR_IOPDEN_Msk (0x1UL << RCC_APB2ENR_IOPDEN_Pos) /*!< 0x00000020 */ #define RCC_APB2ENR_IOPDEN RCC_APB2ENR_IOPDEN_Msk /*!< I/O port D clock enable */ #define RCC_APB2ENR_ADC1EN_Pos (9U) #define RCC_APB2ENR_ADC1EN_Msk (0x1UL << RCC_APB2ENR_ADC1EN_Pos) /*!< 0x00000200 */ #define RCC_APB2ENR_ADC1EN RCC_APB2ENR_ADC1EN_Msk /*!< ADC 1 interface clock enable */ #define RCC_APB2ENR_ADC2EN_Pos (10U) #define RCC_APB2ENR_ADC2EN_Msk (0x1UL << RCC_APB2ENR_ADC2EN_Pos) /*!< 0x00000400 */ #define RCC_APB2ENR_ADC2EN RCC_APB2ENR_ADC2EN_Msk /*!< ADC 2 interface clock enable */ #define RCC_APB2ENR_TIM1EN_Pos (11U) #define RCC_APB2ENR_TIM1EN_Msk (0x1UL << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */ #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk /*!< TIM1 Timer clock enable */ #define RCC_APB2ENR_SPI1EN_Pos (12U) #define RCC_APB2ENR_SPI1EN_Msk (0x1UL << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */ #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI 1 clock enable */ #define RCC_APB2ENR_USART1EN_Pos (14U) #define RCC_APB2ENR_USART1EN_Msk (0x1UL << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */ #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */ #define RCC_APB2ENR_IOPEEN_Pos (6U) #define RCC_APB2ENR_IOPEEN_Msk (0x1UL << RCC_APB2ENR_IOPEEN_Pos) /*!< 0x00000040 */ #define RCC_APB2ENR_IOPEEN RCC_APB2ENR_IOPEEN_Msk /*!< I/O port E clock enable */ /***************** Bit definition for RCC_APB1ENR register ******************/ #define RCC_APB1ENR_TIM2EN_Pos (0U) #define RCC_APB1ENR_TIM2EN_Msk (0x1UL << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */ #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enabled*/ #define RCC_APB1ENR_TIM3EN_Pos (1U) #define RCC_APB1ENR_TIM3EN_Msk (0x1UL << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */ #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */ #define RCC_APB1ENR_WWDGEN_Pos (11U) #define RCC_APB1ENR_WWDGEN_Msk (0x1UL << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */ #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */ #define RCC_APB1ENR_USART2EN_Pos (17U) #define RCC_APB1ENR_USART2EN_Msk (0x1UL << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */ #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART 2 clock enable */ #define RCC_APB1ENR_I2C1EN_Pos (21U) #define RCC_APB1ENR_I2C1EN_Msk (0x1UL << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */ #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C 1 clock enable */ #define RCC_APB1ENR_CAN1EN_Pos (25U) #define RCC_APB1ENR_CAN1EN_Msk (0x1UL << RCC_APB1ENR_CAN1EN_Pos) /*!< 0x02000000 */ #define RCC_APB1ENR_CAN1EN RCC_APB1ENR_CAN1EN_Msk /*!< CAN1 clock enable */ #define RCC_APB1ENR_BKPEN_Pos (27U) #define RCC_APB1ENR_BKPEN_Msk (0x1UL << RCC_APB1ENR_BKPEN_Pos) /*!< 0x08000000 */ #define RCC_APB1ENR_BKPEN RCC_APB1ENR_BKPEN_Msk /*!< Backup interface clock enable */ #define RCC_APB1ENR_PWREN_Pos (28U) #define RCC_APB1ENR_PWREN_Msk (0x1UL << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */ #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< Power interface clock enable */ #define RCC_APB1ENR_TIM4EN_Pos (2U) #define RCC_APB1ENR_TIM4EN_Msk (0x1UL << RCC_APB1ENR_TIM4EN_Pos) /*!< 0x00000004 */ #define RCC_APB1ENR_TIM4EN RCC_APB1ENR_TIM4EN_Msk /*!< Timer 4 clock enable */ #define RCC_APB1ENR_SPI2EN_Pos (14U) #define RCC_APB1ENR_SPI2EN_Msk (0x1UL << RCC_APB1ENR_SPI2EN_Pos) /*!< 0x00004000 */ #define RCC_APB1ENR_SPI2EN RCC_APB1ENR_SPI2EN_Msk /*!< SPI 2 clock enable */ #define RCC_APB1ENR_USART3EN_Pos (18U) #define RCC_APB1ENR_USART3EN_Msk (0x1UL << RCC_APB1ENR_USART3EN_Pos) /*!< 0x00040000 */ #define RCC_APB1ENR_USART3EN RCC_APB1ENR_USART3EN_Msk /*!< USART 3 clock enable */ #define RCC_APB1ENR_I2C2EN_Pos (22U) #define RCC_APB1ENR_I2C2EN_Msk (0x1UL << RCC_APB1ENR_I2C2EN_Pos) /*!< 0x00400000 */ #define RCC_APB1ENR_I2C2EN RCC_APB1ENR_I2C2EN_Msk /*!< I2C 2 clock enable */ #define RCC_APB1ENR_USBEN_Pos (23U) #define RCC_APB1ENR_USBEN_Msk (0x1UL << RCC_APB1ENR_USBEN_Pos) /*!< 0x00800000 */ #define RCC_APB1ENR_USBEN RCC_APB1ENR_USBEN_Msk /*!< USB Device clock enable */ /******************* Bit definition for RCC_BDCR register *******************/ #define RCC_BDCR_LSEON_Pos (0U) #define RCC_BDCR_LSEON_Msk (0x1UL << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */ #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */ #define RCC_BDCR_LSERDY_Pos (1U) #define RCC_BDCR_LSERDY_Msk (0x1UL << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */ #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */ #define RCC_BDCR_LSEBYP_Pos (2U) #define RCC_BDCR_LSEBYP_Msk (0x1UL << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */ #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */ #define RCC_BDCR_RTCSEL_Pos (8U) #define RCC_BDCR_RTCSEL_Msk (0x3UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */ #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */ #define RCC_BDCR_RTCSEL_0 (0x1UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */ #define RCC_BDCR_RTCSEL_1 (0x2UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */ /*!< RTC congiguration */ #define RCC_BDCR_RTCSEL_NOCLOCK 0x00000000U /*!< No clock */ #define RCC_BDCR_RTCSEL_LSE 0x00000100U /*!< LSE oscillator clock used as RTC clock */ #define RCC_BDCR_RTCSEL_LSI 0x00000200U /*!< LSI oscillator clock used as RTC clock */ #define RCC_BDCR_RTCSEL_HSE 0x00000300U /*!< HSE oscillator clock divided by 128 used as RTC clock */ #define RCC_BDCR_RTCEN_Pos (15U) #define RCC_BDCR_RTCEN_Msk (0x1UL << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */ #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */ #define RCC_BDCR_BDRST_Pos (16U) #define RCC_BDCR_BDRST_Msk (0x1UL << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */ #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */ /******************* Bit definition for RCC_CSR register ********************/ #define RCC_CSR_LSION_Pos (0U) #define RCC_CSR_LSION_Msk (0x1UL << RCC_CSR_LSION_Pos) /*!< 0x00000001 */ #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */ #define RCC_CSR_LSIRDY_Pos (1U) #define RCC_CSR_LSIRDY_Msk (0x1UL << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */ #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */ #define RCC_CSR_RMVF_Pos (24U) #define RCC_CSR_RMVF_Msk (0x1UL << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */ #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */ #define RCC_CSR_PINRSTF_Pos (26U) #define RCC_CSR_PINRSTF_Msk (0x1UL << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */ #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */ #define RCC_CSR_PORRSTF_Pos (27U) #define RCC_CSR_PORRSTF_Msk (0x1UL << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */ #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */ #define RCC_CSR_SFTRSTF_Pos (28U) #define RCC_CSR_SFTRSTF_Msk (0x1UL << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */ #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */ #define RCC_CSR_IWDGRSTF_Pos (29U) #define RCC_CSR_IWDGRSTF_Msk (0x1UL << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */ #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */ #define RCC_CSR_WWDGRSTF_Pos (30U) #define RCC_CSR_WWDGRSTF_Msk (0x1UL << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */ #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */ #define RCC_CSR_LPWRRSTF_Pos (31U) #define RCC_CSR_LPWRRSTF_Msk (0x1UL << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */ #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */ /******************************************************************************/ /* */ /* General Purpose and Alternate Function I/O */ /* */ /******************************************************************************/ /******************* Bit definition for GPIO_CRL register *******************/ #define GPIO_CRL_MODE_Pos (0U) #define GPIO_CRL_MODE_Msk (0x33333333UL << GPIO_CRL_MODE_Pos) /*!< 0x33333333 */ #define GPIO_CRL_MODE GPIO_CRL_MODE_Msk /*!< Port x mode bits */ #define GPIO_CRL_MODE0_Pos (0U) #define GPIO_CRL_MODE0_Msk (0x3UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000003 */ #define GPIO_CRL_MODE0 GPIO_CRL_MODE0_Msk /*!< MODE0[1:0] bits (Port x mode bits, pin 0) */ #define GPIO_CRL_MODE0_0 (0x1UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000001 */ #define GPIO_CRL_MODE0_1 (0x2UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000002 */ #define GPIO_CRL_MODE1_Pos (4U) #define GPIO_CRL_MODE1_Msk (0x3UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000030 */ #define GPIO_CRL_MODE1 GPIO_CRL_MODE1_Msk /*!< MODE1[1:0] bits (Port x mode bits, pin 1) */ #define GPIO_CRL_MODE1_0 (0x1UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000010 */ #define GPIO_CRL_MODE1_1 (0x2UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000020 */ #define GPIO_CRL_MODE2_Pos (8U) #define GPIO_CRL_MODE2_Msk (0x3UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000300 */ #define GPIO_CRL_MODE2 GPIO_CRL_MODE2_Msk /*!< MODE2[1:0] bits (Port x mode bits, pin 2) */ #define GPIO_CRL_MODE2_0 (0x1UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000100 */ #define GPIO_CRL_MODE2_1 (0x2UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000200 */ #define GPIO_CRL_MODE3_Pos (12U) #define GPIO_CRL_MODE3_Msk (0x3UL << GPIO_CRL_MODE3_Pos) /*!< 0x00003000 */ #define GPIO_CRL_MODE3 GPIO_CRL_MODE3_Msk /*!< MODE3[1:0] bits (Port x mode bits, pin 3) */ #define GPIO_CRL_MODE3_0 (0x1UL << GPIO_CRL_MODE3_Pos) /*!< 0x00001000 */ #define GPIO_CRL_MODE3_1 (0x2UL << GPIO_CRL_MODE3_Pos) /*!< 0x00002000 */ #define GPIO_CRL_MODE4_Pos (16U) #define GPIO_CRL_MODE4_Msk (0x3UL << GPIO_CRL_MODE4_Pos) /*!< 0x00030000 */ #define GPIO_CRL_MODE4 GPIO_CRL_MODE4_Msk /*!< MODE4[1:0] bits (Port x mode bits, pin 4) */ #define GPIO_CRL_MODE4_0 (0x1UL << GPIO_CRL_MODE4_Pos) /*!< 0x00010000 */ #define GPIO_CRL_MODE4_1 (0x2UL << GPIO_CRL_MODE4_Pos) /*!< 0x00020000 */ #define GPIO_CRL_MODE5_Pos (20U) #define GPIO_CRL_MODE5_Msk (0x3UL << GPIO_CRL_MODE5_Pos) /*!< 0x00300000 */ #define GPIO_CRL_MODE5 GPIO_CRL_MODE5_Msk /*!< MODE5[1:0] bits (Port x mode bits, pin 5) */ #define GPIO_CRL_MODE5_0 (0x1UL << GPIO_CRL_MODE5_Pos) /*!< 0x00100000 */ #define GPIO_CRL_MODE5_1 (0x2UL << GPIO_CRL_MODE5_Pos) /*!< 0x00200000 */ #define GPIO_CRL_MODE6_Pos (24U) #define GPIO_CRL_MODE6_Msk (0x3UL << GPIO_CRL_MODE6_Pos) /*!< 0x03000000 */ #define GPIO_CRL_MODE6 GPIO_CRL_MODE6_Msk /*!< MODE6[1:0] bits (Port x mode bits, pin 6) */ #define GPIO_CRL_MODE6_0 (0x1UL << GPIO_CRL_MODE6_Pos) /*!< 0x01000000 */ #define GPIO_CRL_MODE6_1 (0x2UL << GPIO_CRL_MODE6_Pos) /*!< 0x02000000 */ #define GPIO_CRL_MODE7_Pos (28U) #define GPIO_CRL_MODE7_Msk (0x3UL << GPIO_CRL_MODE7_Pos) /*!< 0x30000000 */ #define GPIO_CRL_MODE7 GPIO_CRL_MODE7_Msk /*!< MODE7[1:0] bits (Port x mode bits, pin 7) */ #define GPIO_CRL_MODE7_0 (0x1UL << GPIO_CRL_MODE7_Pos) /*!< 0x10000000 */ #define GPIO_CRL_MODE7_1 (0x2UL << GPIO_CRL_MODE7_Pos) /*!< 0x20000000 */ #define GPIO_CRL_CNF_Pos (2U) #define GPIO_CRL_CNF_Msk (0x33333333UL << GPIO_CRL_CNF_Pos) /*!< 0xCCCCCCCC */ #define GPIO_CRL_CNF GPIO_CRL_CNF_Msk /*!< Port x configuration bits */ #define GPIO_CRL_CNF0_Pos (2U) #define GPIO_CRL_CNF0_Msk (0x3UL << GPIO_CRL_CNF0_Pos) /*!< 0x0000000C */ #define GPIO_CRL_CNF0 GPIO_CRL_CNF0_Msk /*!< CNF0[1:0] bits (Port x configuration bits, pin 0) */ #define GPIO_CRL_CNF0_0 (0x1UL << GPIO_CRL_CNF0_Pos) /*!< 0x00000004 */ #define GPIO_CRL_CNF0_1 (0x2UL << GPIO_CRL_CNF0_Pos) /*!< 0x00000008 */ #define GPIO_CRL_CNF1_Pos (6U) #define GPIO_CRL_CNF1_Msk (0x3UL << GPIO_CRL_CNF1_Pos) /*!< 0x000000C0 */ #define GPIO_CRL_CNF1 GPIO_CRL_CNF1_Msk /*!< CNF1[1:0] bits (Port x configuration bits, pin 1) */ #define GPIO_CRL_CNF1_0 (0x1UL << GPIO_CRL_CNF1_Pos) /*!< 0x00000040 */ #define GPIO_CRL_CNF1_1 (0x2UL << GPIO_CRL_CNF1_Pos) /*!< 0x00000080 */ #define GPIO_CRL_CNF2_Pos (10U) #define GPIO_CRL_CNF2_Msk (0x3UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000C00 */ #define GPIO_CRL_CNF2 GPIO_CRL_CNF2_Msk /*!< CNF2[1:0] bits (Port x configuration bits, pin 2) */ #define GPIO_CRL_CNF2_0 (0x1UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000400 */ #define GPIO_CRL_CNF2_1 (0x2UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000800 */ #define GPIO_CRL_CNF3_Pos (14U) #define GPIO_CRL_CNF3_Msk (0x3UL << GPIO_CRL_CNF3_Pos) /*!< 0x0000C000 */ #define GPIO_CRL_CNF3 GPIO_CRL_CNF3_Msk /*!< CNF3[1:0] bits (Port x configuration bits, pin 3) */ #define GPIO_CRL_CNF3_0 (0x1UL << GPIO_CRL_CNF3_Pos) /*!< 0x00004000 */ #define GPIO_CRL_CNF3_1 (0x2UL << GPIO_CRL_CNF3_Pos) /*!< 0x00008000 */ #define GPIO_CRL_CNF4_Pos (18U) #define GPIO_CRL_CNF4_Msk (0x3UL << GPIO_CRL_CNF4_Pos) /*!< 0x000C0000 */ #define GPIO_CRL_CNF4 GPIO_CRL_CNF4_Msk /*!< CNF4[1:0] bits (Port x configuration bits, pin 4) */ #define GPIO_CRL_CNF4_0 (0x1UL << GPIO_CRL_CNF4_Pos) /*!< 0x00040000 */ #define GPIO_CRL_CNF4_1 (0x2UL << GPIO_CRL_CNF4_Pos) /*!< 0x00080000 */ #define GPIO_CRL_CNF5_Pos (22U) #define GPIO_CRL_CNF5_Msk (0x3UL << GPIO_CRL_CNF5_Pos) /*!< 0x00C00000 */ #define GPIO_CRL_CNF5 GPIO_CRL_CNF5_Msk /*!< CNF5[1:0] bits (Port x configuration bits, pin 5) */ #define GPIO_CRL_CNF5_0 (0x1UL << GPIO_CRL_CNF5_Pos) /*!< 0x00400000 */ #define GPIO_CRL_CNF5_1 (0x2UL << GPIO_CRL_CNF5_Pos) /*!< 0x00800000 */ #define GPIO_CRL_CNF6_Pos (26U) #define GPIO_CRL_CNF6_Msk (0x3UL << GPIO_CRL_CNF6_Pos) /*!< 0x0C000000 */ #define GPIO_CRL_CNF6 GPIO_CRL_CNF6_Msk /*!< CNF6[1:0] bits (Port x configuration bits, pin 6) */ #define GPIO_CRL_CNF6_0 (0x1UL << GPIO_CRL_CNF6_Pos) /*!< 0x04000000 */ #define GPIO_CRL_CNF6_1 (0x2UL << GPIO_CRL_CNF6_Pos) /*!< 0x08000000 */ #define GPIO_CRL_CNF7_Pos (30U) #define GPIO_CRL_CNF7_Msk (0x3UL << GPIO_CRL_CNF7_Pos) /*!< 0xC0000000 */ #define GPIO_CRL_CNF7 GPIO_CRL_CNF7_Msk /*!< CNF7[1:0] bits (Port x configuration bits, pin 7) */ #define GPIO_CRL_CNF7_0 (0x1UL << GPIO_CRL_CNF7_Pos) /*!< 0x40000000 */ #define GPIO_CRL_CNF7_1 (0x2UL << GPIO_CRL_CNF7_Pos) /*!< 0x80000000 */ /******************* Bit definition for GPIO_CRH register *******************/ #define GPIO_CRH_MODE_Pos (0U) #define GPIO_CRH_MODE_Msk (0x33333333UL << GPIO_CRH_MODE_Pos) /*!< 0x33333333 */ #define GPIO_CRH_MODE GPIO_CRH_MODE_Msk /*!< Port x mode bits */ #define GPIO_CRH_MODE8_Pos (0U) #define GPIO_CRH_MODE8_Msk (0x3UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000003 */ #define GPIO_CRH_MODE8 GPIO_CRH_MODE8_Msk /*!< MODE8[1:0] bits (Port x mode bits, pin 8) */ #define GPIO_CRH_MODE8_0 (0x1UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000001 */ #define GPIO_CRH_MODE8_1 (0x2UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000002 */ #define GPIO_CRH_MODE9_Pos (4U) #define GPIO_CRH_MODE9_Msk (0x3UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000030 */ #define GPIO_CRH_MODE9 GPIO_CRH_MODE9_Msk /*!< MODE9[1:0] bits (Port x mode bits, pin 9) */ #define GPIO_CRH_MODE9_0 (0x1UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000010 */ #define GPIO_CRH_MODE9_1 (0x2UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000020 */ #define GPIO_CRH_MODE10_Pos (8U) #define GPIO_CRH_MODE10_Msk (0x3UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000300 */ #define GPIO_CRH_MODE10 GPIO_CRH_MODE10_Msk /*!< MODE10[1:0] bits (Port x mode bits, pin 10) */ #define GPIO_CRH_MODE10_0 (0x1UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000100 */ #define GPIO_CRH_MODE10_1 (0x2UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000200 */ #define GPIO_CRH_MODE11_Pos (12U) #define GPIO_CRH_MODE11_Msk (0x3UL << GPIO_CRH_MODE11_Pos) /*!< 0x00003000 */ #define GPIO_CRH_MODE11 GPIO_CRH_MODE11_Msk /*!< MODE11[1:0] bits (Port x mode bits, pin 11) */ #define GPIO_CRH_MODE11_0 (0x1UL << GPIO_CRH_MODE11_Pos) /*!< 0x00001000 */ #define GPIO_CRH_MODE11_1 (0x2UL << GPIO_CRH_MODE11_Pos) /*!< 0x00002000 */ #define GPIO_CRH_MODE12_Pos (16U) #define GPIO_CRH_MODE12_Msk (0x3UL << GPIO_CRH_MODE12_Pos) /*!< 0x00030000 */ #define GPIO_CRH_MODE12 GPIO_CRH_MODE12_Msk /*!< MODE12[1:0] bits (Port x mode bits, pin 12) */ #define GPIO_CRH_MODE12_0 (0x1UL << GPIO_CRH_MODE12_Pos) /*!< 0x00010000 */ #define GPIO_CRH_MODE12_1 (0x2UL << GPIO_CRH_MODE12_Pos) /*!< 0x00020000 */ #define GPIO_CRH_MODE13_Pos (20U) #define GPIO_CRH_MODE13_Msk (0x3UL << GPIO_CRH_MODE13_Pos) /*!< 0x00300000 */ #define GPIO_CRH_MODE13 GPIO_CRH_MODE13_Msk /*!< MODE13[1:0] bits (Port x mode bits, pin 13) */ #define GPIO_CRH_MODE13_0 (0x1UL << GPIO_CRH_MODE13_Pos) /*!< 0x00100000 */ #define GPIO_CRH_MODE13_1 (0x2UL << GPIO_CRH_MODE13_Pos) /*!< 0x00200000 */ #define GPIO_CRH_MODE14_Pos (24U) #define GPIO_CRH_MODE14_Msk (0x3UL << GPIO_CRH_MODE14_Pos) /*!< 0x03000000 */ #define GPIO_CRH_MODE14 GPIO_CRH_MODE14_Msk /*!< MODE14[1:0] bits (Port x mode bits, pin 14) */ #define GPIO_CRH_MODE14_0 (0x1UL << GPIO_CRH_MODE14_Pos) /*!< 0x01000000 */ #define GPIO_CRH_MODE14_1 (0x2UL << GPIO_CRH_MODE14_Pos) /*!< 0x02000000 */ #define GPIO_CRH_MODE15_Pos (28U) #define GPIO_CRH_MODE15_Msk (0x3UL << GPIO_CRH_MODE15_Pos) /*!< 0x30000000 */ #define GPIO_CRH_MODE15 GPIO_CRH_MODE15_Msk /*!< MODE15[1:0] bits (Port x mode bits, pin 15) */ #define GPIO_CRH_MODE15_0 (0x1UL << GPIO_CRH_MODE15_Pos) /*!< 0x10000000 */ #define GPIO_CRH_MODE15_1 (0x2UL << GPIO_CRH_MODE15_Pos) /*!< 0x20000000 */ #define GPIO_CRH_CNF_Pos (2U) #define GPIO_CRH_CNF_Msk (0x33333333UL << GPIO_CRH_CNF_Pos) /*!< 0xCCCCCCCC */ #define GPIO_CRH_CNF GPIO_CRH_CNF_Msk /*!< Port x configuration bits */ #define GPIO_CRH_CNF8_Pos (2U) #define GPIO_CRH_CNF8_Msk (0x3UL << GPIO_CRH_CNF8_Pos) /*!< 0x0000000C */ #define GPIO_CRH_CNF8 GPIO_CRH_CNF8_Msk /*!< CNF8[1:0] bits (Port x configuration bits, pin 8) */ #define GPIO_CRH_CNF8_0 (0x1UL << GPIO_CRH_CNF8_Pos) /*!< 0x00000004 */ #define GPIO_CRH_CNF8_1 (0x2UL << GPIO_CRH_CNF8_Pos) /*!< 0x00000008 */ #define GPIO_CRH_CNF9_Pos (6U) #define GPIO_CRH_CNF9_Msk (0x3UL << GPIO_CRH_CNF9_Pos) /*!< 0x000000C0 */ #define GPIO_CRH_CNF9 GPIO_CRH_CNF9_Msk /*!< CNF9[1:0] bits (Port x configuration bits, pin 9) */ #define GPIO_CRH_CNF9_0 (0x1UL << GPIO_CRH_CNF9_Pos) /*!< 0x00000040 */ #define GPIO_CRH_CNF9_1 (0x2UL << GPIO_CRH_CNF9_Pos) /*!< 0x00000080 */ #define GPIO_CRH_CNF10_Pos (10U) #define GPIO_CRH_CNF10_Msk (0x3UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000C00 */ #define GPIO_CRH_CNF10 GPIO_CRH_CNF10_Msk /*!< CNF10[1:0] bits (Port x configuration bits, pin 10) */ #define GPIO_CRH_CNF10_0 (0x1UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000400 */ #define GPIO_CRH_CNF10_1 (0x2UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000800 */ #define GPIO_CRH_CNF11_Pos (14U) #define GPIO_CRH_CNF11_Msk (0x3UL << GPIO_CRH_CNF11_Pos) /*!< 0x0000C000 */ #define GPIO_CRH_CNF11 GPIO_CRH_CNF11_Msk /*!< CNF11[1:0] bits (Port x configuration bits, pin 11) */ #define GPIO_CRH_CNF11_0 (0x1UL << GPIO_CRH_CNF11_Pos) /*!< 0x00004000 */ #define GPIO_CRH_CNF11_1 (0x2UL << GPIO_CRH_CNF11_Pos) /*!< 0x00008000 */ #define GPIO_CRH_CNF12_Pos (18U) #define GPIO_CRH_CNF12_Msk (0x3UL << GPIO_CRH_CNF12_Pos) /*!< 0x000C0000 */ #define GPIO_CRH_CNF12 GPIO_CRH_CNF12_Msk /*!< CNF12[1:0] bits (Port x configuration bits, pin 12) */ #define GPIO_CRH_CNF12_0 (0x1UL << GPIO_CRH_CNF12_Pos) /*!< 0x00040000 */ #define GPIO_CRH_CNF12_1 (0x2UL << GPIO_CRH_CNF12_Pos) /*!< 0x00080000 */ #define GPIO_CRH_CNF13_Pos (22U) #define GPIO_CRH_CNF13_Msk (0x3UL << GPIO_CRH_CNF13_Pos) /*!< 0x00C00000 */ #define GPIO_CRH_CNF13 GPIO_CRH_CNF13_Msk /*!< CNF13[1:0] bits (Port x configuration bits, pin 13) */ #define GPIO_CRH_CNF13_0 (0x1UL << GPIO_CRH_CNF13_Pos) /*!< 0x00400000 */ #define GPIO_CRH_CNF13_1 (0x2UL << GPIO_CRH_CNF13_Pos) /*!< 0x00800000 */ #define GPIO_CRH_CNF14_Pos (26U) #define GPIO_CRH_CNF14_Msk (0x3UL << GPIO_CRH_CNF14_Pos) /*!< 0x0C000000 */ #define GPIO_CRH_CNF14 GPIO_CRH_CNF14_Msk /*!< CNF14[1:0] bits (Port x configuration bits, pin 14) */ #define GPIO_CRH_CNF14_0 (0x1UL << GPIO_CRH_CNF14_Pos) /*!< 0x04000000 */ #define GPIO_CRH_CNF14_1 (0x2UL << GPIO_CRH_CNF14_Pos) /*!< 0x08000000 */ #define GPIO_CRH_CNF15_Pos (30U) #define GPIO_CRH_CNF15_Msk (0x3UL << GPIO_CRH_CNF15_Pos) /*!< 0xC0000000 */ #define GPIO_CRH_CNF15 GPIO_CRH_CNF15_Msk /*!< CNF15[1:0] bits (Port x configuration bits, pin 15) */ #define GPIO_CRH_CNF15_0 (0x1UL << GPIO_CRH_CNF15_Pos) /*!< 0x40000000 */ #define GPIO_CRH_CNF15_1 (0x2UL << GPIO_CRH_CNF15_Pos) /*!< 0x80000000 */ /*!<****************** Bit definition for GPIO_IDR register *******************/ #define GPIO_IDR_IDR0_Pos (0U) #define GPIO_IDR_IDR0_Msk (0x1UL << GPIO_IDR_IDR0_Pos) /*!< 0x00000001 */ #define GPIO_IDR_IDR0 GPIO_IDR_IDR0_Msk /*!< Port input data, bit 0 */ #define GPIO_IDR_IDR1_Pos (1U) #define GPIO_IDR_IDR1_Msk (0x1UL << GPIO_IDR_IDR1_Pos) /*!< 0x00000002 */ #define GPIO_IDR_IDR1 GPIO_IDR_IDR1_Msk /*!< Port input data, bit 1 */ #define GPIO_IDR_IDR2_Pos (2U) #define GPIO_IDR_IDR2_Msk (0x1UL << GPIO_IDR_IDR2_Pos) /*!< 0x00000004 */ #define GPIO_IDR_IDR2 GPIO_IDR_IDR2_Msk /*!< Port input data, bit 2 */ #define GPIO_IDR_IDR3_Pos (3U) #define GPIO_IDR_IDR3_Msk (0x1UL << GPIO_IDR_IDR3_Pos) /*!< 0x00000008 */ #define GPIO_IDR_IDR3 GPIO_IDR_IDR3_Msk /*!< Port input data, bit 3 */ #define GPIO_IDR_IDR4_Pos (4U) #define GPIO_IDR_IDR4_Msk (0x1UL << GPIO_IDR_IDR4_Pos) /*!< 0x00000010 */ #define GPIO_IDR_IDR4 GPIO_IDR_IDR4_Msk /*!< Port input data, bit 4 */ #define GPIO_IDR_IDR5_Pos (5U) #define GPIO_IDR_IDR5_Msk (0x1UL << GPIO_IDR_IDR5_Pos) /*!< 0x00000020 */ #define GPIO_IDR_IDR5 GPIO_IDR_IDR5_Msk /*!< Port input data, bit 5 */ #define GPIO_IDR_IDR6_Pos (6U) #define GPIO_IDR_IDR6_Msk (0x1UL << GPIO_IDR_IDR6_Pos) /*!< 0x00000040 */ #define GPIO_IDR_IDR6 GPIO_IDR_IDR6_Msk /*!< Port input data, bit 6 */ #define GPIO_IDR_IDR7_Pos (7U) #define GPIO_IDR_IDR7_Msk (0x1UL << GPIO_IDR_IDR7_Pos) /*!< 0x00000080 */ #define GPIO_IDR_IDR7 GPIO_IDR_IDR7_Msk /*!< Port input data, bit 7 */ #define GPIO_IDR_IDR8_Pos (8U) #define GPIO_IDR_IDR8_Msk (0x1UL << GPIO_IDR_IDR8_Pos) /*!< 0x00000100 */ #define GPIO_IDR_IDR8 GPIO_IDR_IDR8_Msk /*!< Port input data, bit 8 */ #define GPIO_IDR_IDR9_Pos (9U) #define GPIO_IDR_IDR9_Msk (0x1UL << GPIO_IDR_IDR9_Pos) /*!< 0x00000200 */ #define GPIO_IDR_IDR9 GPIO_IDR_IDR9_Msk /*!< Port input data, bit 9 */ #define GPIO_IDR_IDR10_Pos (10U) #define GPIO_IDR_IDR10_Msk (0x1UL << GPIO_IDR_IDR10_Pos) /*!< 0x00000400 */ #define GPIO_IDR_IDR10 GPIO_IDR_IDR10_Msk /*!< Port input data, bit 10 */ #define GPIO_IDR_IDR11_Pos (11U) #define GPIO_IDR_IDR11_Msk (0x1UL << GPIO_IDR_IDR11_Pos) /*!< 0x00000800 */ #define GPIO_IDR_IDR11 GPIO_IDR_IDR11_Msk /*!< Port input data, bit 11 */ #define GPIO_IDR_IDR12_Pos (12U) #define GPIO_IDR_IDR12_Msk (0x1UL << GPIO_IDR_IDR12_Pos) /*!< 0x00001000 */ #define GPIO_IDR_IDR12 GPIO_IDR_IDR12_Msk /*!< Port input data, bit 12 */ #define GPIO_IDR_IDR13_Pos (13U) #define GPIO_IDR_IDR13_Msk (0x1UL << GPIO_IDR_IDR13_Pos) /*!< 0x00002000 */ #define GPIO_IDR_IDR13 GPIO_IDR_IDR13_Msk /*!< Port input data, bit 13 */ #define GPIO_IDR_IDR14_Pos (14U) #define GPIO_IDR_IDR14_Msk (0x1UL << GPIO_IDR_IDR14_Pos) /*!< 0x00004000 */ #define GPIO_IDR_IDR14 GPIO_IDR_IDR14_Msk /*!< Port input data, bit 14 */ #define GPIO_IDR_IDR15_Pos (15U) #define GPIO_IDR_IDR15_Msk (0x1UL << GPIO_IDR_IDR15_Pos) /*!< 0x00008000 */ #define GPIO_IDR_IDR15 GPIO_IDR_IDR15_Msk /*!< Port input data, bit 15 */ /******************* Bit definition for GPIO_ODR register *******************/ #define GPIO_ODR_ODR0_Pos (0U) #define GPIO_ODR_ODR0_Msk (0x1UL << GPIO_ODR_ODR0_Pos) /*!< 0x00000001 */ #define GPIO_ODR_ODR0 GPIO_ODR_ODR0_Msk /*!< Port output data, bit 0 */ #define GPIO_ODR_ODR1_Pos (1U) #define GPIO_ODR_ODR1_Msk (0x1UL << GPIO_ODR_ODR1_Pos) /*!< 0x00000002 */ #define GPIO_ODR_ODR1 GPIO_ODR_ODR1_Msk /*!< Port output data, bit 1 */ #define GPIO_ODR_ODR2_Pos (2U) #define GPIO_ODR_ODR2_Msk (0x1UL << GPIO_ODR_ODR2_Pos) /*!< 0x00000004 */ #define GPIO_ODR_ODR2 GPIO_ODR_ODR2_Msk /*!< Port output data, bit 2 */ #define GPIO_ODR_ODR3_Pos (3U) #define GPIO_ODR_ODR3_Msk (0x1UL << GPIO_ODR_ODR3_Pos) /*!< 0x00000008 */ #define GPIO_ODR_ODR3 GPIO_ODR_ODR3_Msk /*!< Port output data, bit 3 */ #define GPIO_ODR_ODR4_Pos (4U) #define GPIO_ODR_ODR4_Msk (0x1UL << GPIO_ODR_ODR4_Pos) /*!< 0x00000010 */ #define GPIO_ODR_ODR4 GPIO_ODR_ODR4_Msk /*!< Port output data, bit 4 */ #define GPIO_ODR_ODR5_Pos (5U) #define GPIO_ODR_ODR5_Msk (0x1UL << GPIO_ODR_ODR5_Pos) /*!< 0x00000020 */ #define GPIO_ODR_ODR5 GPIO_ODR_ODR5_Msk /*!< Port output data, bit 5 */ #define GPIO_ODR_ODR6_Pos (6U) #define GPIO_ODR_ODR6_Msk (0x1UL << GPIO_ODR_ODR6_Pos) /*!< 0x00000040 */ #define GPIO_ODR_ODR6 GPIO_ODR_ODR6_Msk /*!< Port output data, bit 6 */ #define GPIO_ODR_ODR7_Pos (7U) #define GPIO_ODR_ODR7_Msk (0x1UL << GPIO_ODR_ODR7_Pos) /*!< 0x00000080 */ #define GPIO_ODR_ODR7 GPIO_ODR_ODR7_Msk /*!< Port output data, bit 7 */ #define GPIO_ODR_ODR8_Pos (8U) #define GPIO_ODR_ODR8_Msk (0x1UL << GPIO_ODR_ODR8_Pos) /*!< 0x00000100 */ #define GPIO_ODR_ODR8 GPIO_ODR_ODR8_Msk /*!< Port output data, bit 8 */ #define GPIO_ODR_ODR9_Pos (9U) #define GPIO_ODR_ODR9_Msk (0x1UL << GPIO_ODR_ODR9_Pos) /*!< 0x00000200 */ #define GPIO_ODR_ODR9 GPIO_ODR_ODR9_Msk /*!< Port output data, bit 9 */ #define GPIO_ODR_ODR10_Pos (10U) #define GPIO_ODR_ODR10_Msk (0x1UL << GPIO_ODR_ODR10_Pos) /*!< 0x00000400 */ #define GPIO_ODR_ODR10 GPIO_ODR_ODR10_Msk /*!< Port output data, bit 10 */ #define GPIO_ODR_ODR11_Pos (11U) #define GPIO_ODR_ODR11_Msk (0x1UL << GPIO_ODR_ODR11_Pos) /*!< 0x00000800 */ #define GPIO_ODR_ODR11 GPIO_ODR_ODR11_Msk /*!< Port output data, bit 11 */ #define GPIO_ODR_ODR12_Pos (12U) #define GPIO_ODR_ODR12_Msk (0x1UL << GPIO_ODR_ODR12_Pos) /*!< 0x00001000 */ #define GPIO_ODR_ODR12 GPIO_ODR_ODR12_Msk /*!< Port output data, bit 12 */ #define GPIO_ODR_ODR13_Pos (13U) #define GPIO_ODR_ODR13_Msk (0x1UL << GPIO_ODR_ODR13_Pos) /*!< 0x00002000 */ #define GPIO_ODR_ODR13 GPIO_ODR_ODR13_Msk /*!< Port output data, bit 13 */ #define GPIO_ODR_ODR14_Pos (14U) #define GPIO_ODR_ODR14_Msk (0x1UL << GPIO_ODR_ODR14_Pos) /*!< 0x00004000 */ #define GPIO_ODR_ODR14 GPIO_ODR_ODR14_Msk /*!< Port output data, bit 14 */ #define GPIO_ODR_ODR15_Pos (15U) #define GPIO_ODR_ODR15_Msk (0x1UL << GPIO_ODR_ODR15_Pos) /*!< 0x00008000 */ #define GPIO_ODR_ODR15 GPIO_ODR_ODR15_Msk /*!< Port output data, bit 15 */ /****************** Bit definition for GPIO_BSRR register *******************/ #define GPIO_BSRR_BS0_Pos (0U) #define GPIO_BSRR_BS0_Msk (0x1UL << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */ #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk /*!< Port x Set bit 0 */ #define GPIO_BSRR_BS1_Pos (1U) #define GPIO_BSRR_BS1_Msk (0x1UL << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */ #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk /*!< Port x Set bit 1 */ #define GPIO_BSRR_BS2_Pos (2U) #define GPIO_BSRR_BS2_Msk (0x1UL << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */ #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk /*!< Port x Set bit 2 */ #define GPIO_BSRR_BS3_Pos (3U) #define GPIO_BSRR_BS3_Msk (0x1UL << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */ #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk /*!< Port x Set bit 3 */ #define GPIO_BSRR_BS4_Pos (4U) #define GPIO_BSRR_BS4_Msk (0x1UL << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */ #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk /*!< Port x Set bit 4 */ #define GPIO_BSRR_BS5_Pos (5U) #define GPIO_BSRR_BS5_Msk (0x1UL << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */ #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk /*!< Port x Set bit 5 */ #define GPIO_BSRR_BS6_Pos (6U) #define GPIO_BSRR_BS6_Msk (0x1UL << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */ #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk /*!< Port x Set bit 6 */ #define GPIO_BSRR_BS7_Pos (7U) #define GPIO_BSRR_BS7_Msk (0x1UL << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */ #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk /*!< Port x Set bit 7 */ #define GPIO_BSRR_BS8_Pos (8U) #define GPIO_BSRR_BS8_Msk (0x1UL << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */ #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk /*!< Port x Set bit 8 */ #define GPIO_BSRR_BS9_Pos (9U) #define GPIO_BSRR_BS9_Msk (0x1UL << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */ #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk /*!< Port x Set bit 9 */ #define GPIO_BSRR_BS10_Pos (10U) #define GPIO_BSRR_BS10_Msk (0x1UL << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */ #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk /*!< Port x Set bit 10 */ #define GPIO_BSRR_BS11_Pos (11U) #define GPIO_BSRR_BS11_Msk (0x1UL << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */ #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk /*!< Port x Set bit 11 */ #define GPIO_BSRR_BS12_Pos (12U) #define GPIO_BSRR_BS12_Msk (0x1UL << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */ #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk /*!< Port x Set bit 12 */ #define GPIO_BSRR_BS13_Pos (13U) #define GPIO_BSRR_BS13_Msk (0x1UL << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */ #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk /*!< Port x Set bit 13 */ #define GPIO_BSRR_BS14_Pos (14U) #define GPIO_BSRR_BS14_Msk (0x1UL << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */ #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk /*!< Port x Set bit 14 */ #define GPIO_BSRR_BS15_Pos (15U) #define GPIO_BSRR_BS15_Msk (0x1UL << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */ #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk /*!< Port x Set bit 15 */ #define GPIO_BSRR_BR0_Pos (16U) #define GPIO_BSRR_BR0_Msk (0x1UL << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */ #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk /*!< Port x Reset bit 0 */ #define GPIO_BSRR_BR1_Pos (17U) #define GPIO_BSRR_BR1_Msk (0x1UL << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */ #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk /*!< Port x Reset bit 1 */ #define GPIO_BSRR_BR2_Pos (18U) #define GPIO_BSRR_BR2_Msk (0x1UL << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */ #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk /*!< Port x Reset bit 2 */ #define GPIO_BSRR_BR3_Pos (19U) #define GPIO_BSRR_BR3_Msk (0x1UL << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */ #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk /*!< Port x Reset bit 3 */ #define GPIO_BSRR_BR4_Pos (20U) #define GPIO_BSRR_BR4_Msk (0x1UL << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */ #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk /*!< Port x Reset bit 4 */ #define GPIO_BSRR_BR5_Pos (21U) #define GPIO_BSRR_BR5_Msk (0x1UL << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */ #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk /*!< Port x Reset bit 5 */ #define GPIO_BSRR_BR6_Pos (22U) #define GPIO_BSRR_BR6_Msk (0x1UL << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */ #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk /*!< Port x Reset bit 6 */ #define GPIO_BSRR_BR7_Pos (23U) #define GPIO_BSRR_BR7_Msk (0x1UL << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */ #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk /*!< Port x Reset bit 7 */ #define GPIO_BSRR_BR8_Pos (24U) #define GPIO_BSRR_BR8_Msk (0x1UL << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */ #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk /*!< Port x Reset bit 8 */ #define GPIO_BSRR_BR9_Pos (25U) #define GPIO_BSRR_BR9_Msk (0x1UL << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */ #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk /*!< Port x Reset bit 9 */ #define GPIO_BSRR_BR10_Pos (26U) #define GPIO_BSRR_BR10_Msk (0x1UL << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */ #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk /*!< Port x Reset bit 10 */ #define GPIO_BSRR_BR11_Pos (27U) #define GPIO_BSRR_BR11_Msk (0x1UL << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */ #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk /*!< Port x Reset bit 11 */ #define GPIO_BSRR_BR12_Pos (28U) #define GPIO_BSRR_BR12_Msk (0x1UL << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */ #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk /*!< Port x Reset bit 12 */ #define GPIO_BSRR_BR13_Pos (29U) #define GPIO_BSRR_BR13_Msk (0x1UL << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */ #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk /*!< Port x Reset bit 13 */ #define GPIO_BSRR_BR14_Pos (30U) #define GPIO_BSRR_BR14_Msk (0x1UL << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */ #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk /*!< Port x Reset bit 14 */ #define GPIO_BSRR_BR15_Pos (31U) #define GPIO_BSRR_BR15_Msk (0x1UL << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */ #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk /*!< Port x Reset bit 15 */ /******************* Bit definition for GPIO_BRR register *******************/ #define GPIO_BRR_BR0_Pos (0U) #define GPIO_BRR_BR0_Msk (0x1UL << GPIO_BRR_BR0_Pos) /*!< 0x00000001 */ #define GPIO_BRR_BR0 GPIO_BRR_BR0_Msk /*!< Port x Reset bit 0 */ #define GPIO_BRR_BR1_Pos (1U) #define GPIO_BRR_BR1_Msk (0x1UL << GPIO_BRR_BR1_Pos) /*!< 0x00000002 */ #define GPIO_BRR_BR1 GPIO_BRR_BR1_Msk /*!< Port x Reset bit 1 */ #define GPIO_BRR_BR2_Pos (2U) #define GPIO_BRR_BR2_Msk (0x1UL << GPIO_BRR_BR2_Pos) /*!< 0x00000004 */ #define GPIO_BRR_BR2 GPIO_BRR_BR2_Msk /*!< Port x Reset bit 2 */ #define GPIO_BRR_BR3_Pos (3U) #define GPIO_BRR_BR3_Msk (0x1UL << GPIO_BRR_BR3_Pos) /*!< 0x00000008 */ #define GPIO_BRR_BR3 GPIO_BRR_BR3_Msk /*!< Port x Reset bit 3 */ #define GPIO_BRR_BR4_Pos (4U) #define GPIO_BRR_BR4_Msk (0x1UL << GPIO_BRR_BR4_Pos) /*!< 0x00000010 */ #define GPIO_BRR_BR4 GPIO_BRR_BR4_Msk /*!< Port x Reset bit 4 */ #define GPIO_BRR_BR5_Pos (5U) #define GPIO_BRR_BR5_Msk (0x1UL << GPIO_BRR_BR5_Pos) /*!< 0x00000020 */ #define GPIO_BRR_BR5 GPIO_BRR_BR5_Msk /*!< Port x Reset bit 5 */ #define GPIO_BRR_BR6_Pos (6U) #define GPIO_BRR_BR6_Msk (0x1UL << GPIO_BRR_BR6_Pos) /*!< 0x00000040 */ #define GPIO_BRR_BR6 GPIO_BRR_BR6_Msk /*!< Port x Reset bit 6 */ #define GPIO_BRR_BR7_Pos (7U) #define GPIO_BRR_BR7_Msk (0x1UL << GPIO_BRR_BR7_Pos) /*!< 0x00000080 */ #define GPIO_BRR_BR7 GPIO_BRR_BR7_Msk /*!< Port x Reset bit 7 */ #define GPIO_BRR_BR8_Pos (8U) #define GPIO_BRR_BR8_Msk (0x1UL << GPIO_BRR_BR8_Pos) /*!< 0x00000100 */ #define GPIO_BRR_BR8 GPIO_BRR_BR8_Msk /*!< Port x Reset bit 8 */ #define GPIO_BRR_BR9_Pos (9U) #define GPIO_BRR_BR9_Msk (0x1UL << GPIO_BRR_BR9_Pos) /*!< 0x00000200 */ #define GPIO_BRR_BR9 GPIO_BRR_BR9_Msk /*!< Port x Reset bit 9 */ #define GPIO_BRR_BR10_Pos (10U) #define GPIO_BRR_BR10_Msk (0x1UL << GPIO_BRR_BR10_Pos) /*!< 0x00000400 */ #define GPIO_BRR_BR10 GPIO_BRR_BR10_Msk /*!< Port x Reset bit 10 */ #define GPIO_BRR_BR11_Pos (11U) #define GPIO_BRR_BR11_Msk (0x1UL << GPIO_BRR_BR11_Pos) /*!< 0x00000800 */ #define GPIO_BRR_BR11 GPIO_BRR_BR11_Msk /*!< Port x Reset bit 11 */ #define GPIO_BRR_BR12_Pos (12U) #define GPIO_BRR_BR12_Msk (0x1UL << GPIO_BRR_BR12_Pos) /*!< 0x00001000 */ #define GPIO_BRR_BR12 GPIO_BRR_BR12_Msk /*!< Port x Reset bit 12 */ #define GPIO_BRR_BR13_Pos (13U) #define GPIO_BRR_BR13_Msk (0x1UL << GPIO_BRR_BR13_Pos) /*!< 0x00002000 */ #define GPIO_BRR_BR13 GPIO_BRR_BR13_Msk /*!< Port x Reset bit 13 */ #define GPIO_BRR_BR14_Pos (14U) #define GPIO_BRR_BR14_Msk (0x1UL << GPIO_BRR_BR14_Pos) /*!< 0x00004000 */ #define GPIO_BRR_BR14 GPIO_BRR_BR14_Msk /*!< Port x Reset bit 14 */ #define GPIO_BRR_BR15_Pos (15U) #define GPIO_BRR_BR15_Msk (0x1UL << GPIO_BRR_BR15_Pos) /*!< 0x00008000 */ #define GPIO_BRR_BR15 GPIO_BRR_BR15_Msk /*!< Port x Reset bit 15 */ /****************** Bit definition for GPIO_LCKR register *******************/ #define GPIO_LCKR_LCK0_Pos (0U) #define GPIO_LCKR_LCK0_Msk (0x1UL << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */ #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk /*!< Port x Lock bit 0 */ #define GPIO_LCKR_LCK1_Pos (1U) #define GPIO_LCKR_LCK1_Msk (0x1UL << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */ #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk /*!< Port x Lock bit 1 */ #define GPIO_LCKR_LCK2_Pos (2U) #define GPIO_LCKR_LCK2_Msk (0x1UL << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */ #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk /*!< Port x Lock bit 2 */ #define GPIO_LCKR_LCK3_Pos (3U) #define GPIO_LCKR_LCK3_Msk (0x1UL << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */ #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk /*!< Port x Lock bit 3 */ #define GPIO_LCKR_LCK4_Pos (4U) #define GPIO_LCKR_LCK4_Msk (0x1UL << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */ #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk /*!< Port x Lock bit 4 */ #define GPIO_LCKR_LCK5_Pos (5U) #define GPIO_LCKR_LCK5_Msk (0x1UL << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */ #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk /*!< Port x Lock bit 5 */ #define GPIO_LCKR_LCK6_Pos (6U) #define GPIO_LCKR_LCK6_Msk (0x1UL << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */ #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk /*!< Port x Lock bit 6 */ #define GPIO_LCKR_LCK7_Pos (7U) #define GPIO_LCKR_LCK7_Msk (0x1UL << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */ #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk /*!< Port x Lock bit 7 */ #define GPIO_LCKR_LCK8_Pos (8U) #define GPIO_LCKR_LCK8_Msk (0x1UL << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */ #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk /*!< Port x Lock bit 8 */ #define GPIO_LCKR_LCK9_Pos (9U) #define GPIO_LCKR_LCK9_Msk (0x1UL << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */ #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk /*!< Port x Lock bit 9 */ #define GPIO_LCKR_LCK10_Pos (10U) #define GPIO_LCKR_LCK10_Msk (0x1UL << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */ #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk /*!< Port x Lock bit 10 */ #define GPIO_LCKR_LCK11_Pos (11U) #define GPIO_LCKR_LCK11_Msk (0x1UL << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */ #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk /*!< Port x Lock bit 11 */ #define GPIO_LCKR_LCK12_Pos (12U) #define GPIO_LCKR_LCK12_Msk (0x1UL << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */ #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk /*!< Port x Lock bit 12 */ #define GPIO_LCKR_LCK13_Pos (13U) #define GPIO_LCKR_LCK13_Msk (0x1UL << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */ #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk /*!< Port x Lock bit 13 */ #define GPIO_LCKR_LCK14_Pos (14U) #define GPIO_LCKR_LCK14_Msk (0x1UL << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */ #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk /*!< Port x Lock bit 14 */ #define GPIO_LCKR_LCK15_Pos (15U) #define GPIO_LCKR_LCK15_Msk (0x1UL << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */ #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk /*!< Port x Lock bit 15 */ #define GPIO_LCKR_LCKK_Pos (16U) #define GPIO_LCKR_LCKK_Msk (0x1UL << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */ #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk /*!< Lock key */ /*----------------------------------------------------------------------------*/ /****************** Bit definition for AFIO_EVCR register *******************/ #define AFIO_EVCR_PIN_Pos (0U) #define AFIO_EVCR_PIN_Msk (0xFUL << AFIO_EVCR_PIN_Pos) /*!< 0x0000000F */ #define AFIO_EVCR_PIN AFIO_EVCR_PIN_Msk /*!< PIN[3:0] bits (Pin selection) */ #define AFIO_EVCR_PIN_0 (0x1UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000001 */ #define AFIO_EVCR_PIN_1 (0x2UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000002 */ #define AFIO_EVCR_PIN_2 (0x4UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000004 */ #define AFIO_EVCR_PIN_3 (0x8UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000008 */ /*!< PIN configuration */ #define AFIO_EVCR_PIN_PX0 0x00000000U /*!< Pin 0 selected */ #define AFIO_EVCR_PIN_PX1_Pos (0U) #define AFIO_EVCR_PIN_PX1_Msk (0x1UL << AFIO_EVCR_PIN_PX1_Pos) /*!< 0x00000001 */ #define AFIO_EVCR_PIN_PX1 AFIO_EVCR_PIN_PX1_Msk /*!< Pin 1 selected */ #define AFIO_EVCR_PIN_PX2_Pos (1U) #define AFIO_EVCR_PIN_PX2_Msk (0x1UL << AFIO_EVCR_PIN_PX2_Pos) /*!< 0x00000002 */ #define AFIO_EVCR_PIN_PX2 AFIO_EVCR_PIN_PX2_Msk /*!< Pin 2 selected */ #define AFIO_EVCR_PIN_PX3_Pos (0U) #define AFIO_EVCR_PIN_PX3_Msk (0x3UL << AFIO_EVCR_PIN_PX3_Pos) /*!< 0x00000003 */ #define AFIO_EVCR_PIN_PX3 AFIO_EVCR_PIN_PX3_Msk /*!< Pin 3 selected */ #define AFIO_EVCR_PIN_PX4_Pos (2U) #define AFIO_EVCR_PIN_PX4_Msk (0x1UL << AFIO_EVCR_PIN_PX4_Pos) /*!< 0x00000004 */ #define AFIO_EVCR_PIN_PX4 AFIO_EVCR_PIN_PX4_Msk /*!< Pin 4 selected */ #define AFIO_EVCR_PIN_PX5_Pos (0U) #define AFIO_EVCR_PIN_PX5_Msk (0x5UL << AFIO_EVCR_PIN_PX5_Pos) /*!< 0x00000005 */ #define AFIO_EVCR_PIN_PX5 AFIO_EVCR_PIN_PX5_Msk /*!< Pin 5 selected */ #define AFIO_EVCR_PIN_PX6_Pos (1U) #define AFIO_EVCR_PIN_PX6_Msk (0x3UL << AFIO_EVCR_PIN_PX6_Pos) /*!< 0x00000006 */ #define AFIO_EVCR_PIN_PX6 AFIO_EVCR_PIN_PX6_Msk /*!< Pin 6 selected */ #define AFIO_EVCR_PIN_PX7_Pos (0U) #define AFIO_EVCR_PIN_PX7_Msk (0x7UL << AFIO_EVCR_PIN_PX7_Pos) /*!< 0x00000007 */ #define AFIO_EVCR_PIN_PX7 AFIO_EVCR_PIN_PX7_Msk /*!< Pin 7 selected */ #define AFIO_EVCR_PIN_PX8_Pos (3U) #define AFIO_EVCR_PIN_PX8_Msk (0x1UL << AFIO_EVCR_PIN_PX8_Pos) /*!< 0x00000008 */ #define AFIO_EVCR_PIN_PX8 AFIO_EVCR_PIN_PX8_Msk /*!< Pin 8 selected */ #define AFIO_EVCR_PIN_PX9_Pos (0U) #define AFIO_EVCR_PIN_PX9_Msk (0x9UL << AFIO_EVCR_PIN_PX9_Pos) /*!< 0x00000009 */ #define AFIO_EVCR_PIN_PX9 AFIO_EVCR_PIN_PX9_Msk /*!< Pin 9 selected */ #define AFIO_EVCR_PIN_PX10_Pos (1U) #define AFIO_EVCR_PIN_PX10_Msk (0x5UL << AFIO_EVCR_PIN_PX10_Pos) /*!< 0x0000000A */ #define AFIO_EVCR_PIN_PX10 AFIO_EVCR_PIN_PX10_Msk /*!< Pin 10 selected */ #define AFIO_EVCR_PIN_PX11_Pos (0U) #define AFIO_EVCR_PIN_PX11_Msk (0xBUL << AFIO_EVCR_PIN_PX11_Pos) /*!< 0x0000000B */ #define AFIO_EVCR_PIN_PX11 AFIO_EVCR_PIN_PX11_Msk /*!< Pin 11 selected */ #define AFIO_EVCR_PIN_PX12_Pos (2U) #define AFIO_EVCR_PIN_PX12_Msk (0x3UL << AFIO_EVCR_PIN_PX12_Pos) /*!< 0x0000000C */ #define AFIO_EVCR_PIN_PX12 AFIO_EVCR_PIN_PX12_Msk /*!< Pin 12 selected */ #define AFIO_EVCR_PIN_PX13_Pos (0U) #define AFIO_EVCR_PIN_PX13_Msk (0xDUL << AFIO_EVCR_PIN_PX13_Pos) /*!< 0x0000000D */ #define AFIO_EVCR_PIN_PX13 AFIO_EVCR_PIN_PX13_Msk /*!< Pin 13 selected */ #define AFIO_EVCR_PIN_PX14_Pos (1U) #define AFIO_EVCR_PIN_PX14_Msk (0x7UL << AFIO_EVCR_PIN_PX14_Pos) /*!< 0x0000000E */ #define AFIO_EVCR_PIN_PX14 AFIO_EVCR_PIN_PX14_Msk /*!< Pin 14 selected */ #define AFIO_EVCR_PIN_PX15_Pos (0U) #define AFIO_EVCR_PIN_PX15_Msk (0xFUL << AFIO_EVCR_PIN_PX15_Pos) /*!< 0x0000000F */ #define AFIO_EVCR_PIN_PX15 AFIO_EVCR_PIN_PX15_Msk /*!< Pin 15 selected */ #define AFIO_EVCR_PORT_Pos (4U) #define AFIO_EVCR_PORT_Msk (0x7UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000070 */ #define AFIO_EVCR_PORT AFIO_EVCR_PORT_Msk /*!< PORT[2:0] bits (Port selection) */ #define AFIO_EVCR_PORT_0 (0x1UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000010 */ #define AFIO_EVCR_PORT_1 (0x2UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000020 */ #define AFIO_EVCR_PORT_2 (0x4UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000040 */ /*!< PORT configuration */ #define AFIO_EVCR_PORT_PA 0x00000000 /*!< Port A selected */ #define AFIO_EVCR_PORT_PB_Pos (4U) #define AFIO_EVCR_PORT_PB_Msk (0x1UL << AFIO_EVCR_PORT_PB_Pos) /*!< 0x00000010 */ #define AFIO_EVCR_PORT_PB AFIO_EVCR_PORT_PB_Msk /*!< Port B selected */ #define AFIO_EVCR_PORT_PC_Pos (5U) #define AFIO_EVCR_PORT_PC_Msk (0x1UL << AFIO_EVCR_PORT_PC_Pos) /*!< 0x00000020 */ #define AFIO_EVCR_PORT_PC AFIO_EVCR_PORT_PC_Msk /*!< Port C selected */ #define AFIO_EVCR_PORT_PD_Pos (4U) #define AFIO_EVCR_PORT_PD_Msk (0x3UL << AFIO_EVCR_PORT_PD_Pos) /*!< 0x00000030 */ #define AFIO_EVCR_PORT_PD AFIO_EVCR_PORT_PD_Msk /*!< Port D selected */ #define AFIO_EVCR_PORT_PE_Pos (6U) #define AFIO_EVCR_PORT_PE_Msk (0x1UL << AFIO_EVCR_PORT_PE_Pos) /*!< 0x00000040 */ #define AFIO_EVCR_PORT_PE AFIO_EVCR_PORT_PE_Msk /*!< Port E selected */ #define AFIO_EVCR_EVOE_Pos (7U) #define AFIO_EVCR_EVOE_Msk (0x1UL << AFIO_EVCR_EVOE_Pos) /*!< 0x00000080 */ #define AFIO_EVCR_EVOE AFIO_EVCR_EVOE_Msk /*!< Event Output Enable */ /****************** Bit definition for AFIO_MAPR register *******************/ #define AFIO_MAPR_SPI1_REMAP_Pos (0U) #define AFIO_MAPR_SPI1_REMAP_Msk (0x1UL << AFIO_MAPR_SPI1_REMAP_Pos) /*!< 0x00000001 */ #define AFIO_MAPR_SPI1_REMAP AFIO_MAPR_SPI1_REMAP_Msk /*!< SPI1 remapping */ #define AFIO_MAPR_I2C1_REMAP_Pos (1U) #define AFIO_MAPR_I2C1_REMAP_Msk (0x1UL << AFIO_MAPR_I2C1_REMAP_Pos) /*!< 0x00000002 */ #define AFIO_MAPR_I2C1_REMAP AFIO_MAPR_I2C1_REMAP_Msk /*!< I2C1 remapping */ #define AFIO_MAPR_USART1_REMAP_Pos (2U) #define AFIO_MAPR_USART1_REMAP_Msk (0x1UL << AFIO_MAPR_USART1_REMAP_Pos) /*!< 0x00000004 */ #define AFIO_MAPR_USART1_REMAP AFIO_MAPR_USART1_REMAP_Msk /*!< USART1 remapping */ #define AFIO_MAPR_USART2_REMAP_Pos (3U) #define AFIO_MAPR_USART2_REMAP_Msk (0x1UL << AFIO_MAPR_USART2_REMAP_Pos) /*!< 0x00000008 */ #define AFIO_MAPR_USART2_REMAP AFIO_MAPR_USART2_REMAP_Msk /*!< USART2 remapping */ #define AFIO_MAPR_USART3_REMAP_Pos (4U) #define AFIO_MAPR_USART3_REMAP_Msk (0x3UL << AFIO_MAPR_USART3_REMAP_Pos) /*!< 0x00000030 */ #define AFIO_MAPR_USART3_REMAP AFIO_MAPR_USART3_REMAP_Msk /*!< USART3_REMAP[1:0] bits (USART3 remapping) */ #define AFIO_MAPR_USART3_REMAP_0 (0x1UL << AFIO_MAPR_USART3_REMAP_Pos) /*!< 0x00000010 */ #define AFIO_MAPR_USART3_REMAP_1 (0x2UL << AFIO_MAPR_USART3_REMAP_Pos) /*!< 0x00000020 */ /* USART3_REMAP configuration */ #define AFIO_MAPR_USART3_REMAP_NOREMAP 0x00000000U /*!< No remap (TX/PB10, RX/PB11, CK/PB12, CTS/PB13, RTS/PB14) */ #define AFIO_MAPR_USART3_REMAP_PARTIALREMAP_Pos (4U) #define AFIO_MAPR_USART3_REMAP_PARTIALREMAP_Msk (0x1UL << AFIO_MAPR_USART3_REMAP_PARTIALREMAP_Pos) /*!< 0x00000010 */ #define AFIO_MAPR_USART3_REMAP_PARTIALREMAP AFIO_MAPR_USART3_REMAP_PARTIALREMAP_Msk /*!< Partial remap (TX/PC10, RX/PC11, CK/PC12, CTS/PB13, RTS/PB14) */ #define AFIO_MAPR_USART3_REMAP_FULLREMAP_Pos (4U) #define AFIO_MAPR_USART3_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_USART3_REMAP_FULLREMAP_Pos) /*!< 0x00000030 */ #define AFIO_MAPR_USART3_REMAP_FULLREMAP AFIO_MAPR_USART3_REMAP_FULLREMAP_Msk /*!< Full remap (TX/PD8, RX/PD9, CK/PD10, CTS/PD11, RTS/PD12) */ #define AFIO_MAPR_TIM1_REMAP_Pos (6U) #define AFIO_MAPR_TIM1_REMAP_Msk (0x3UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x000000C0 */ #define AFIO_MAPR_TIM1_REMAP AFIO_MAPR_TIM1_REMAP_Msk /*!< TIM1_REMAP[1:0] bits (TIM1 remapping) */ #define AFIO_MAPR_TIM1_REMAP_0 (0x1UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x00000040 */ #define AFIO_MAPR_TIM1_REMAP_1 (0x2UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x00000080 */ /*!< TIM1_REMAP configuration */ #define AFIO_MAPR_TIM1_REMAP_NOREMAP 0x00000000U /*!< No remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PB12, CH1N/PB13, CH2N/PB14, CH3N/PB15) */ #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Pos (6U) #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Msk (0x1UL << AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Pos) /*!< 0x00000040 */ #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Msk /*!< Partial remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PA6, CH1N/PA7, CH2N/PB0, CH3N/PB1) */ #define AFIO_MAPR_TIM1_REMAP_FULLREMAP_Pos (6U) #define AFIO_MAPR_TIM1_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM1_REMAP_FULLREMAP_Pos) /*!< 0x000000C0 */ #define AFIO_MAPR_TIM1_REMAP_FULLREMAP AFIO_MAPR_TIM1_REMAP_FULLREMAP_Msk /*!< Full remap (ETR/PE7, CH1/PE9, CH2/PE11, CH3/PE13, CH4/PE14, BKIN/PE15, CH1N/PE8, CH2N/PE10, CH3N/PE12) */ #define AFIO_MAPR_TIM2_REMAP_Pos (8U) #define AFIO_MAPR_TIM2_REMAP_Msk (0x3UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000300 */ #define AFIO_MAPR_TIM2_REMAP AFIO_MAPR_TIM2_REMAP_Msk /*!< TIM2_REMAP[1:0] bits (TIM2 remapping) */ #define AFIO_MAPR_TIM2_REMAP_0 (0x1UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000100 */ #define AFIO_MAPR_TIM2_REMAP_1 (0x2UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000200 */ /*!< TIM2_REMAP configuration */ #define AFIO_MAPR_TIM2_REMAP_NOREMAP 0x00000000U /*!< No remap (CH1/ETR/PA0, CH2/PA1, CH3/PA2, CH4/PA3) */ #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Pos (8U) #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Msk (0x1UL << AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Pos) /*!< 0x00000100 */ #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1 AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Msk /*!< Partial remap (CH1/ETR/PA15, CH2/PB3, CH3/PA2, CH4/PA3) */ #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Pos (9U) #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Msk (0x1UL << AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Pos) /*!< 0x00000200 */ #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2 AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Msk /*!< Partial remap (CH1/ETR/PA0, CH2/PA1, CH3/PB10, CH4/PB11) */ #define AFIO_MAPR_TIM2_REMAP_FULLREMAP_Pos (8U) #define AFIO_MAPR_TIM2_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM2_REMAP_FULLREMAP_Pos) /*!< 0x00000300 */ #define AFIO_MAPR_TIM2_REMAP_FULLREMAP AFIO_MAPR_TIM2_REMAP_FULLREMAP_Msk /*!< Full remap (CH1/ETR/PA15, CH2/PB3, CH3/PB10, CH4/PB11) */ #define AFIO_MAPR_TIM3_REMAP_Pos (10U) #define AFIO_MAPR_TIM3_REMAP_Msk (0x3UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000C00 */ #define AFIO_MAPR_TIM3_REMAP AFIO_MAPR_TIM3_REMAP_Msk /*!< TIM3_REMAP[1:0] bits (TIM3 remapping) */ #define AFIO_MAPR_TIM3_REMAP_0 (0x1UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000400 */ #define AFIO_MAPR_TIM3_REMAP_1 (0x2UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000800 */ /*!< TIM3_REMAP configuration */ #define AFIO_MAPR_TIM3_REMAP_NOREMAP 0x00000000U /*!< No remap (CH1/PA6, CH2/PA7, CH3/PB0, CH4/PB1) */ #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Pos (11U) #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Msk (0x1UL << AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Pos) /*!< 0x00000800 */ #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Msk /*!< Partial remap (CH1/PB4, CH2/PB5, CH3/PB0, CH4/PB1) */ #define AFIO_MAPR_TIM3_REMAP_FULLREMAP_Pos (10U) #define AFIO_MAPR_TIM3_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM3_REMAP_FULLREMAP_Pos) /*!< 0x00000C00 */ #define AFIO_MAPR_TIM3_REMAP_FULLREMAP AFIO_MAPR_TIM3_REMAP_FULLREMAP_Msk /*!< Full remap (CH1/PC6, CH2/PC7, CH3/PC8, CH4/PC9) */ #define AFIO_MAPR_TIM4_REMAP_Pos (12U) #define AFIO_MAPR_TIM4_REMAP_Msk (0x1UL << AFIO_MAPR_TIM4_REMAP_Pos) /*!< 0x00001000 */ #define AFIO_MAPR_TIM4_REMAP AFIO_MAPR_TIM4_REMAP_Msk /*!< TIM4_REMAP bit (TIM4 remapping) */ #define AFIO_MAPR_CAN_REMAP_Pos (13U) #define AFIO_MAPR_CAN_REMAP_Msk (0x3UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00006000 */ #define AFIO_MAPR_CAN_REMAP AFIO_MAPR_CAN_REMAP_Msk /*!< CAN_REMAP[1:0] bits (CAN Alternate function remapping) */ #define AFIO_MAPR_CAN_REMAP_0 (0x1UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00002000 */ #define AFIO_MAPR_CAN_REMAP_1 (0x2UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00004000 */ /*!< CAN_REMAP configuration */ #define AFIO_MAPR_CAN_REMAP_REMAP1 0x00000000U /*!< CANRX mapped to PA11, CANTX mapped to PA12 */ #define AFIO_MAPR_CAN_REMAP_REMAP2_Pos (14U) #define AFIO_MAPR_CAN_REMAP_REMAP2_Msk (0x1UL << AFIO_MAPR_CAN_REMAP_REMAP2_Pos) /*!< 0x00004000 */ #define AFIO_MAPR_CAN_REMAP_REMAP2 AFIO_MAPR_CAN_REMAP_REMAP2_Msk /*!< CANRX mapped to PB8, CANTX mapped to PB9 */ #define AFIO_MAPR_CAN_REMAP_REMAP3_Pos (13U) #define AFIO_MAPR_CAN_REMAP_REMAP3_Msk (0x3UL << AFIO_MAPR_CAN_REMAP_REMAP3_Pos) /*!< 0x00006000 */ #define AFIO_MAPR_CAN_REMAP_REMAP3 AFIO_MAPR_CAN_REMAP_REMAP3_Msk /*!< CANRX mapped to PD0, CANTX mapped to PD1 */ #define AFIO_MAPR_PD01_REMAP_Pos (15U) #define AFIO_MAPR_PD01_REMAP_Msk (0x1UL << AFIO_MAPR_PD01_REMAP_Pos) /*!< 0x00008000 */ #define AFIO_MAPR_PD01_REMAP AFIO_MAPR_PD01_REMAP_Msk /*!< Port D0/Port D1 mapping on OSC_IN/OSC_OUT */ /*!< SWJ_CFG configuration */ #define AFIO_MAPR_SWJ_CFG_Pos (24U) #define AFIO_MAPR_SWJ_CFG_Msk (0x7UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x07000000 */ #define AFIO_MAPR_SWJ_CFG AFIO_MAPR_SWJ_CFG_Msk /*!< SWJ_CFG[2:0] bits (Serial Wire JTAG configuration) */ #define AFIO_MAPR_SWJ_CFG_0 (0x1UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x01000000 */ #define AFIO_MAPR_SWJ_CFG_1 (0x2UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x02000000 */ #define AFIO_MAPR_SWJ_CFG_2 (0x4UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x04000000 */ #define AFIO_MAPR_SWJ_CFG_RESET 0x00000000U /*!< Full SWJ (JTAG-DP + SW-DP) : Reset State */ #define AFIO_MAPR_SWJ_CFG_NOJNTRST_Pos (24U) #define AFIO_MAPR_SWJ_CFG_NOJNTRST_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_NOJNTRST_Pos) /*!< 0x01000000 */ #define AFIO_MAPR_SWJ_CFG_NOJNTRST AFIO_MAPR_SWJ_CFG_NOJNTRST_Msk /*!< Full SWJ (JTAG-DP + SW-DP) but without JNTRST */ #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Pos (25U) #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Pos) /*!< 0x02000000 */ #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Msk /*!< JTAG-DP Disabled and SW-DP Enabled */ #define AFIO_MAPR_SWJ_CFG_DISABLE_Pos (26U) #define AFIO_MAPR_SWJ_CFG_DISABLE_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_DISABLE_Pos) /*!< 0x04000000 */ #define AFIO_MAPR_SWJ_CFG_DISABLE AFIO_MAPR_SWJ_CFG_DISABLE_Msk /*!< JTAG-DP Disabled and SW-DP Disabled */ /***************** Bit definition for AFIO_EXTICR1 register *****************/ #define AFIO_EXTICR1_EXTI0_Pos (0U) #define AFIO_EXTICR1_EXTI0_Msk (0xFUL << AFIO_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */ #define AFIO_EXTICR1_EXTI0 AFIO_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */ #define AFIO_EXTICR1_EXTI1_Pos (4U) #define AFIO_EXTICR1_EXTI1_Msk (0xFUL << AFIO_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */ #define AFIO_EXTICR1_EXTI1 AFIO_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */ #define AFIO_EXTICR1_EXTI2_Pos (8U) #define AFIO_EXTICR1_EXTI2_Msk (0xFUL << AFIO_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */ #define AFIO_EXTICR1_EXTI2 AFIO_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */ #define AFIO_EXTICR1_EXTI3_Pos (12U) #define AFIO_EXTICR1_EXTI3_Msk (0xFUL << AFIO_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */ #define AFIO_EXTICR1_EXTI3 AFIO_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */ /*!< EXTI0 configuration */ #define AFIO_EXTICR1_EXTI0_PA 0x00000000U /*!< PA[0] pin */ #define AFIO_EXTICR1_EXTI0_PB_Pos (0U) #define AFIO_EXTICR1_EXTI0_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PB_Pos) /*!< 0x00000001 */ #define AFIO_EXTICR1_EXTI0_PB AFIO_EXTICR1_EXTI0_PB_Msk /*!< PB[0] pin */ #define AFIO_EXTICR1_EXTI0_PC_Pos (1U) #define AFIO_EXTICR1_EXTI0_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PC_Pos) /*!< 0x00000002 */ #define AFIO_EXTICR1_EXTI0_PC AFIO_EXTICR1_EXTI0_PC_Msk /*!< PC[0] pin */ #define AFIO_EXTICR1_EXTI0_PD_Pos (0U) #define AFIO_EXTICR1_EXTI0_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI0_PD_Pos) /*!< 0x00000003 */ #define AFIO_EXTICR1_EXTI0_PD AFIO_EXTICR1_EXTI0_PD_Msk /*!< PD[0] pin */ #define AFIO_EXTICR1_EXTI0_PE_Pos (2U) #define AFIO_EXTICR1_EXTI0_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PE_Pos) /*!< 0x00000004 */ #define AFIO_EXTICR1_EXTI0_PE AFIO_EXTICR1_EXTI0_PE_Msk /*!< PE[0] pin */ #define AFIO_EXTICR1_EXTI0_PF_Pos (0U) #define AFIO_EXTICR1_EXTI0_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI0_PF_Pos) /*!< 0x00000005 */ #define AFIO_EXTICR1_EXTI0_PF AFIO_EXTICR1_EXTI0_PF_Msk /*!< PF[0] pin */ #define AFIO_EXTICR1_EXTI0_PG_Pos (1U) #define AFIO_EXTICR1_EXTI0_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI0_PG_Pos) /*!< 0x00000006 */ #define AFIO_EXTICR1_EXTI0_PG AFIO_EXTICR1_EXTI0_PG_Msk /*!< PG[0] pin */ /*!< EXTI1 configuration */ #define AFIO_EXTICR1_EXTI1_PA 0x00000000U /*!< PA[1] pin */ #define AFIO_EXTICR1_EXTI1_PB_Pos (4U) #define AFIO_EXTICR1_EXTI1_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PB_Pos) /*!< 0x00000010 */ #define AFIO_EXTICR1_EXTI1_PB AFIO_EXTICR1_EXTI1_PB_Msk /*!< PB[1] pin */ #define AFIO_EXTICR1_EXTI1_PC_Pos (5U) #define AFIO_EXTICR1_EXTI1_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PC_Pos) /*!< 0x00000020 */ #define AFIO_EXTICR1_EXTI1_PC AFIO_EXTICR1_EXTI1_PC_Msk /*!< PC[1] pin */ #define AFIO_EXTICR1_EXTI1_PD_Pos (4U) #define AFIO_EXTICR1_EXTI1_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI1_PD_Pos) /*!< 0x00000030 */ #define AFIO_EXTICR1_EXTI1_PD AFIO_EXTICR1_EXTI1_PD_Msk /*!< PD[1] pin */ #define AFIO_EXTICR1_EXTI1_PE_Pos (6U) #define AFIO_EXTICR1_EXTI1_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PE_Pos) /*!< 0x00000040 */ #define AFIO_EXTICR1_EXTI1_PE AFIO_EXTICR1_EXTI1_PE_Msk /*!< PE[1] pin */ #define AFIO_EXTICR1_EXTI1_PF_Pos (4U) #define AFIO_EXTICR1_EXTI1_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI1_PF_Pos) /*!< 0x00000050 */ #define AFIO_EXTICR1_EXTI1_PF AFIO_EXTICR1_EXTI1_PF_Msk /*!< PF[1] pin */ #define AFIO_EXTICR1_EXTI1_PG_Pos (5U) #define AFIO_EXTICR1_EXTI1_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI1_PG_Pos) /*!< 0x00000060 */ #define AFIO_EXTICR1_EXTI1_PG AFIO_EXTICR1_EXTI1_PG_Msk /*!< PG[1] pin */ /*!< EXTI2 configuration */ #define AFIO_EXTICR1_EXTI2_PA 0x00000000U /*!< PA[2] pin */ #define AFIO_EXTICR1_EXTI2_PB_Pos (8U) #define AFIO_EXTICR1_EXTI2_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PB_Pos) /*!< 0x00000100 */ #define AFIO_EXTICR1_EXTI2_PB AFIO_EXTICR1_EXTI2_PB_Msk /*!< PB[2] pin */ #define AFIO_EXTICR1_EXTI2_PC_Pos (9U) #define AFIO_EXTICR1_EXTI2_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PC_Pos) /*!< 0x00000200 */ #define AFIO_EXTICR1_EXTI2_PC AFIO_EXTICR1_EXTI2_PC_Msk /*!< PC[2] pin */ #define AFIO_EXTICR1_EXTI2_PD_Pos (8U) #define AFIO_EXTICR1_EXTI2_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI2_PD_Pos) /*!< 0x00000300 */ #define AFIO_EXTICR1_EXTI2_PD AFIO_EXTICR1_EXTI2_PD_Msk /*!< PD[2] pin */ #define AFIO_EXTICR1_EXTI2_PE_Pos (10U) #define AFIO_EXTICR1_EXTI2_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PE_Pos) /*!< 0x00000400 */ #define AFIO_EXTICR1_EXTI2_PE AFIO_EXTICR1_EXTI2_PE_Msk /*!< PE[2] pin */ #define AFIO_EXTICR1_EXTI2_PF_Pos (8U) #define AFIO_EXTICR1_EXTI2_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI2_PF_Pos) /*!< 0x00000500 */ #define AFIO_EXTICR1_EXTI2_PF AFIO_EXTICR1_EXTI2_PF_Msk /*!< PF[2] pin */ #define AFIO_EXTICR1_EXTI2_PG_Pos (9U) #define AFIO_EXTICR1_EXTI2_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI2_PG_Pos) /*!< 0x00000600 */ #define AFIO_EXTICR1_EXTI2_PG AFIO_EXTICR1_EXTI2_PG_Msk /*!< PG[2] pin */ /*!< EXTI3 configuration */ #define AFIO_EXTICR1_EXTI3_PA 0x00000000U /*!< PA[3] pin */ #define AFIO_EXTICR1_EXTI3_PB_Pos (12U) #define AFIO_EXTICR1_EXTI3_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PB_Pos) /*!< 0x00001000 */ #define AFIO_EXTICR1_EXTI3_PB AFIO_EXTICR1_EXTI3_PB_Msk /*!< PB[3] pin */ #define AFIO_EXTICR1_EXTI3_PC_Pos (13U) #define AFIO_EXTICR1_EXTI3_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PC_Pos) /*!< 0x00002000 */ #define AFIO_EXTICR1_EXTI3_PC AFIO_EXTICR1_EXTI3_PC_Msk /*!< PC[3] pin */ #define AFIO_EXTICR1_EXTI3_PD_Pos (12U) #define AFIO_EXTICR1_EXTI3_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI3_PD_Pos) /*!< 0x00003000 */ #define AFIO_EXTICR1_EXTI3_PD AFIO_EXTICR1_EXTI3_PD_Msk /*!< PD[3] pin */ #define AFIO_EXTICR1_EXTI3_PE_Pos (14U) #define AFIO_EXTICR1_EXTI3_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PE_Pos) /*!< 0x00004000 */ #define AFIO_EXTICR1_EXTI3_PE AFIO_EXTICR1_EXTI3_PE_Msk /*!< PE[3] pin */ #define AFIO_EXTICR1_EXTI3_PF_Pos (12U) #define AFIO_EXTICR1_EXTI3_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI3_PF_Pos) /*!< 0x00005000 */ #define AFIO_EXTICR1_EXTI3_PF AFIO_EXTICR1_EXTI3_PF_Msk /*!< PF[3] pin */ #define AFIO_EXTICR1_EXTI3_PG_Pos (13U) #define AFIO_EXTICR1_EXTI3_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI3_PG_Pos) /*!< 0x00006000 */ #define AFIO_EXTICR1_EXTI3_PG AFIO_EXTICR1_EXTI3_PG_Msk /*!< PG[3] pin */ /***************** Bit definition for AFIO_EXTICR2 register *****************/ #define AFIO_EXTICR2_EXTI4_Pos (0U) #define AFIO_EXTICR2_EXTI4_Msk (0xFUL << AFIO_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */ #define AFIO_EXTICR2_EXTI4 AFIO_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */ #define AFIO_EXTICR2_EXTI5_Pos (4U) #define AFIO_EXTICR2_EXTI5_Msk (0xFUL << AFIO_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */ #define AFIO_EXTICR2_EXTI5 AFIO_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */ #define AFIO_EXTICR2_EXTI6_Pos (8U) #define AFIO_EXTICR2_EXTI6_Msk (0xFUL << AFIO_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */ #define AFIO_EXTICR2_EXTI6 AFIO_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */ #define AFIO_EXTICR2_EXTI7_Pos (12U) #define AFIO_EXTICR2_EXTI7_Msk (0xFUL << AFIO_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */ #define AFIO_EXTICR2_EXTI7 AFIO_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */ /*!< EXTI4 configuration */ #define AFIO_EXTICR2_EXTI4_PA 0x00000000U /*!< PA[4] pin */ #define AFIO_EXTICR2_EXTI4_PB_Pos (0U) #define AFIO_EXTICR2_EXTI4_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PB_Pos) /*!< 0x00000001 */ #define AFIO_EXTICR2_EXTI4_PB AFIO_EXTICR2_EXTI4_PB_Msk /*!< PB[4] pin */ #define AFIO_EXTICR2_EXTI4_PC_Pos (1U) #define AFIO_EXTICR2_EXTI4_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PC_Pos) /*!< 0x00000002 */ #define AFIO_EXTICR2_EXTI4_PC AFIO_EXTICR2_EXTI4_PC_Msk /*!< PC[4] pin */ #define AFIO_EXTICR2_EXTI4_PD_Pos (0U) #define AFIO_EXTICR2_EXTI4_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI4_PD_Pos) /*!< 0x00000003 */ #define AFIO_EXTICR2_EXTI4_PD AFIO_EXTICR2_EXTI4_PD_Msk /*!< PD[4] pin */ #define AFIO_EXTICR2_EXTI4_PE_Pos (2U) #define AFIO_EXTICR2_EXTI4_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PE_Pos) /*!< 0x00000004 */ #define AFIO_EXTICR2_EXTI4_PE AFIO_EXTICR2_EXTI4_PE_Msk /*!< PE[4] pin */ #define AFIO_EXTICR2_EXTI4_PF_Pos (0U) #define AFIO_EXTICR2_EXTI4_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI4_PF_Pos) /*!< 0x00000005 */ #define AFIO_EXTICR2_EXTI4_PF AFIO_EXTICR2_EXTI4_PF_Msk /*!< PF[4] pin */ #define AFIO_EXTICR2_EXTI4_PG_Pos (1U) #define AFIO_EXTICR2_EXTI4_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI4_PG_Pos) /*!< 0x00000006 */ #define AFIO_EXTICR2_EXTI4_PG AFIO_EXTICR2_EXTI4_PG_Msk /*!< PG[4] pin */ /* EXTI5 configuration */ #define AFIO_EXTICR2_EXTI5_PA 0x00000000U /*!< PA[5] pin */ #define AFIO_EXTICR2_EXTI5_PB_Pos (4U) #define AFIO_EXTICR2_EXTI5_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PB_Pos) /*!< 0x00000010 */ #define AFIO_EXTICR2_EXTI5_PB AFIO_EXTICR2_EXTI5_PB_Msk /*!< PB[5] pin */ #define AFIO_EXTICR2_EXTI5_PC_Pos (5U) #define AFIO_EXTICR2_EXTI5_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PC_Pos) /*!< 0x00000020 */ #define AFIO_EXTICR2_EXTI5_PC AFIO_EXTICR2_EXTI5_PC_Msk /*!< PC[5] pin */ #define AFIO_EXTICR2_EXTI5_PD_Pos (4U) #define AFIO_EXTICR2_EXTI5_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI5_PD_Pos) /*!< 0x00000030 */ #define AFIO_EXTICR2_EXTI5_PD AFIO_EXTICR2_EXTI5_PD_Msk /*!< PD[5] pin */ #define AFIO_EXTICR2_EXTI5_PE_Pos (6U) #define AFIO_EXTICR2_EXTI5_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PE_Pos) /*!< 0x00000040 */ #define AFIO_EXTICR2_EXTI5_PE AFIO_EXTICR2_EXTI5_PE_Msk /*!< PE[5] pin */ #define AFIO_EXTICR2_EXTI5_PF_Pos (4U) #define AFIO_EXTICR2_EXTI5_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI5_PF_Pos) /*!< 0x00000050 */ #define AFIO_EXTICR2_EXTI5_PF AFIO_EXTICR2_EXTI5_PF_Msk /*!< PF[5] pin */ #define AFIO_EXTICR2_EXTI5_PG_Pos (5U) #define AFIO_EXTICR2_EXTI5_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI5_PG_Pos) /*!< 0x00000060 */ #define AFIO_EXTICR2_EXTI5_PG AFIO_EXTICR2_EXTI5_PG_Msk /*!< PG[5] pin */ /*!< EXTI6 configuration */ #define AFIO_EXTICR2_EXTI6_PA 0x00000000U /*!< PA[6] pin */ #define AFIO_EXTICR2_EXTI6_PB_Pos (8U) #define AFIO_EXTICR2_EXTI6_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PB_Pos) /*!< 0x00000100 */ #define AFIO_EXTICR2_EXTI6_PB AFIO_EXTICR2_EXTI6_PB_Msk /*!< PB[6] pin */ #define AFIO_EXTICR2_EXTI6_PC_Pos (9U) #define AFIO_EXTICR2_EXTI6_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PC_Pos) /*!< 0x00000200 */ #define AFIO_EXTICR2_EXTI6_PC AFIO_EXTICR2_EXTI6_PC_Msk /*!< PC[6] pin */ #define AFIO_EXTICR2_EXTI6_PD_Pos (8U) #define AFIO_EXTICR2_EXTI6_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI6_PD_Pos) /*!< 0x00000300 */ #define AFIO_EXTICR2_EXTI6_PD AFIO_EXTICR2_EXTI6_PD_Msk /*!< PD[6] pin */ #define AFIO_EXTICR2_EXTI6_PE_Pos (10U) #define AFIO_EXTICR2_EXTI6_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PE_Pos) /*!< 0x00000400 */ #define AFIO_EXTICR2_EXTI6_PE AFIO_EXTICR2_EXTI6_PE_Msk /*!< PE[6] pin */ #define AFIO_EXTICR2_EXTI6_PF_Pos (8U) #define AFIO_EXTICR2_EXTI6_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI6_PF_Pos) /*!< 0x00000500 */ #define AFIO_EXTICR2_EXTI6_PF AFIO_EXTICR2_EXTI6_PF_Msk /*!< PF[6] pin */ #define AFIO_EXTICR2_EXTI6_PG_Pos (9U) #define AFIO_EXTICR2_EXTI6_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI6_PG_Pos) /*!< 0x00000600 */ #define AFIO_EXTICR2_EXTI6_PG AFIO_EXTICR2_EXTI6_PG_Msk /*!< PG[6] pin */ /*!< EXTI7 configuration */ #define AFIO_EXTICR2_EXTI7_PA 0x00000000U /*!< PA[7] pin */ #define AFIO_EXTICR2_EXTI7_PB_Pos (12U) #define AFIO_EXTICR2_EXTI7_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PB_Pos) /*!< 0x00001000 */ #define AFIO_EXTICR2_EXTI7_PB AFIO_EXTICR2_EXTI7_PB_Msk /*!< PB[7] pin */ #define AFIO_EXTICR2_EXTI7_PC_Pos (13U) #define AFIO_EXTICR2_EXTI7_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PC_Pos) /*!< 0x00002000 */ #define AFIO_EXTICR2_EXTI7_PC AFIO_EXTICR2_EXTI7_PC_Msk /*!< PC[7] pin */ #define AFIO_EXTICR2_EXTI7_PD_Pos (12U) #define AFIO_EXTICR2_EXTI7_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI7_PD_Pos) /*!< 0x00003000 */ #define AFIO_EXTICR2_EXTI7_PD AFIO_EXTICR2_EXTI7_PD_Msk /*!< PD[7] pin */ #define AFIO_EXTICR2_EXTI7_PE_Pos (14U) #define AFIO_EXTICR2_EXTI7_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PE_Pos) /*!< 0x00004000 */ #define AFIO_EXTICR2_EXTI7_PE AFIO_EXTICR2_EXTI7_PE_Msk /*!< PE[7] pin */ #define AFIO_EXTICR2_EXTI7_PF_Pos (12U) #define AFIO_EXTICR2_EXTI7_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI7_PF_Pos) /*!< 0x00005000 */ #define AFIO_EXTICR2_EXTI7_PF AFIO_EXTICR2_EXTI7_PF_Msk /*!< PF[7] pin */ #define AFIO_EXTICR2_EXTI7_PG_Pos (13U) #define AFIO_EXTICR2_EXTI7_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI7_PG_Pos) /*!< 0x00006000 */ #define AFIO_EXTICR2_EXTI7_PG AFIO_EXTICR2_EXTI7_PG_Msk /*!< PG[7] pin */ /***************** Bit definition for AFIO_EXTICR3 register *****************/ #define AFIO_EXTICR3_EXTI8_Pos (0U) #define AFIO_EXTICR3_EXTI8_Msk (0xFUL << AFIO_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */ #define AFIO_EXTICR3_EXTI8 AFIO_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */ #define AFIO_EXTICR3_EXTI9_Pos (4U) #define AFIO_EXTICR3_EXTI9_Msk (0xFUL << AFIO_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */ #define AFIO_EXTICR3_EXTI9 AFIO_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */ #define AFIO_EXTICR3_EXTI10_Pos (8U) #define AFIO_EXTICR3_EXTI10_Msk (0xFUL << AFIO_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */ #define AFIO_EXTICR3_EXTI10 AFIO_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */ #define AFIO_EXTICR3_EXTI11_Pos (12U) #define AFIO_EXTICR3_EXTI11_Msk (0xFUL << AFIO_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */ #define AFIO_EXTICR3_EXTI11 AFIO_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */ /*!< EXTI8 configuration */ #define AFIO_EXTICR3_EXTI8_PA 0x00000000U /*!< PA[8] pin */ #define AFIO_EXTICR3_EXTI8_PB_Pos (0U) #define AFIO_EXTICR3_EXTI8_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PB_Pos) /*!< 0x00000001 */ #define AFIO_EXTICR3_EXTI8_PB AFIO_EXTICR3_EXTI8_PB_Msk /*!< PB[8] pin */ #define AFIO_EXTICR3_EXTI8_PC_Pos (1U) #define AFIO_EXTICR3_EXTI8_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PC_Pos) /*!< 0x00000002 */ #define AFIO_EXTICR3_EXTI8_PC AFIO_EXTICR3_EXTI8_PC_Msk /*!< PC[8] pin */ #define AFIO_EXTICR3_EXTI8_PD_Pos (0U) #define AFIO_EXTICR3_EXTI8_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI8_PD_Pos) /*!< 0x00000003 */ #define AFIO_EXTICR3_EXTI8_PD AFIO_EXTICR3_EXTI8_PD_Msk /*!< PD[8] pin */ #define AFIO_EXTICR3_EXTI8_PE_Pos (2U) #define AFIO_EXTICR3_EXTI8_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PE_Pos) /*!< 0x00000004 */ #define AFIO_EXTICR3_EXTI8_PE AFIO_EXTICR3_EXTI8_PE_Msk /*!< PE[8] pin */ #define AFIO_EXTICR3_EXTI8_PF_Pos (0U) #define AFIO_EXTICR3_EXTI8_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI8_PF_Pos) /*!< 0x00000005 */ #define AFIO_EXTICR3_EXTI8_PF AFIO_EXTICR3_EXTI8_PF_Msk /*!< PF[8] pin */ #define AFIO_EXTICR3_EXTI8_PG_Pos (1U) #define AFIO_EXTICR3_EXTI8_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI8_PG_Pos) /*!< 0x00000006 */ #define AFIO_EXTICR3_EXTI8_PG AFIO_EXTICR3_EXTI8_PG_Msk /*!< PG[8] pin */ /*!< EXTI9 configuration */ #define AFIO_EXTICR3_EXTI9_PA 0x00000000U /*!< PA[9] pin */ #define AFIO_EXTICR3_EXTI9_PB_Pos (4U) #define AFIO_EXTICR3_EXTI9_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PB_Pos) /*!< 0x00000010 */ #define AFIO_EXTICR3_EXTI9_PB AFIO_EXTICR3_EXTI9_PB_Msk /*!< PB[9] pin */ #define AFIO_EXTICR3_EXTI9_PC_Pos (5U) #define AFIO_EXTICR3_EXTI9_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PC_Pos) /*!< 0x00000020 */ #define AFIO_EXTICR3_EXTI9_PC AFIO_EXTICR3_EXTI9_PC_Msk /*!< PC[9] pin */ #define AFIO_EXTICR3_EXTI9_PD_Pos (4U) #define AFIO_EXTICR3_EXTI9_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI9_PD_Pos) /*!< 0x00000030 */ #define AFIO_EXTICR3_EXTI9_PD AFIO_EXTICR3_EXTI9_PD_Msk /*!< PD[9] pin */ #define AFIO_EXTICR3_EXTI9_PE_Pos (6U) #define AFIO_EXTICR3_EXTI9_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PE_Pos) /*!< 0x00000040 */ #define AFIO_EXTICR3_EXTI9_PE AFIO_EXTICR3_EXTI9_PE_Msk /*!< PE[9] pin */ #define AFIO_EXTICR3_EXTI9_PF_Pos (4U) #define AFIO_EXTICR3_EXTI9_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI9_PF_Pos) /*!< 0x00000050 */ #define AFIO_EXTICR3_EXTI9_PF AFIO_EXTICR3_EXTI9_PF_Msk /*!< PF[9] pin */ #define AFIO_EXTICR3_EXTI9_PG_Pos (5U) #define AFIO_EXTICR3_EXTI9_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI9_PG_Pos) /*!< 0x00000060 */ #define AFIO_EXTICR3_EXTI9_PG AFIO_EXTICR3_EXTI9_PG_Msk /*!< PG[9] pin */ /*!< EXTI10 configuration */ #define AFIO_EXTICR3_EXTI10_PA 0x00000000U /*!< PA[10] pin */ #define AFIO_EXTICR3_EXTI10_PB_Pos (8U) #define AFIO_EXTICR3_EXTI10_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PB_Pos) /*!< 0x00000100 */ #define AFIO_EXTICR3_EXTI10_PB AFIO_EXTICR3_EXTI10_PB_Msk /*!< PB[10] pin */ #define AFIO_EXTICR3_EXTI10_PC_Pos (9U) #define AFIO_EXTICR3_EXTI10_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PC_Pos) /*!< 0x00000200 */ #define AFIO_EXTICR3_EXTI10_PC AFIO_EXTICR3_EXTI10_PC_Msk /*!< PC[10] pin */ #define AFIO_EXTICR3_EXTI10_PD_Pos (8U) #define AFIO_EXTICR3_EXTI10_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI10_PD_Pos) /*!< 0x00000300 */ #define AFIO_EXTICR3_EXTI10_PD AFIO_EXTICR3_EXTI10_PD_Msk /*!< PD[10] pin */ #define AFIO_EXTICR3_EXTI10_PE_Pos (10U) #define AFIO_EXTICR3_EXTI10_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PE_Pos) /*!< 0x00000400 */ #define AFIO_EXTICR3_EXTI10_PE AFIO_EXTICR3_EXTI10_PE_Msk /*!< PE[10] pin */ #define AFIO_EXTICR3_EXTI10_PF_Pos (8U) #define AFIO_EXTICR3_EXTI10_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI10_PF_Pos) /*!< 0x00000500 */ #define AFIO_EXTICR3_EXTI10_PF AFIO_EXTICR3_EXTI10_PF_Msk /*!< PF[10] pin */ #define AFIO_EXTICR3_EXTI10_PG_Pos (9U) #define AFIO_EXTICR3_EXTI10_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI10_PG_Pos) /*!< 0x00000600 */ #define AFIO_EXTICR3_EXTI10_PG AFIO_EXTICR3_EXTI10_PG_Msk /*!< PG[10] pin */ /*!< EXTI11 configuration */ #define AFIO_EXTICR3_EXTI11_PA 0x00000000U /*!< PA[11] pin */ #define AFIO_EXTICR3_EXTI11_PB_Pos (12U) #define AFIO_EXTICR3_EXTI11_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PB_Pos) /*!< 0x00001000 */ #define AFIO_EXTICR3_EXTI11_PB AFIO_EXTICR3_EXTI11_PB_Msk /*!< PB[11] pin */ #define AFIO_EXTICR3_EXTI11_PC_Pos (13U) #define AFIO_EXTICR3_EXTI11_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PC_Pos) /*!< 0x00002000 */ #define AFIO_EXTICR3_EXTI11_PC AFIO_EXTICR3_EXTI11_PC_Msk /*!< PC[11] pin */ #define AFIO_EXTICR3_EXTI11_PD_Pos (12U) #define AFIO_EXTICR3_EXTI11_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI11_PD_Pos) /*!< 0x00003000 */ #define AFIO_EXTICR3_EXTI11_PD AFIO_EXTICR3_EXTI11_PD_Msk /*!< PD[11] pin */ #define AFIO_EXTICR3_EXTI11_PE_Pos (14U) #define AFIO_EXTICR3_EXTI11_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PE_Pos) /*!< 0x00004000 */ #define AFIO_EXTICR3_EXTI11_PE AFIO_EXTICR3_EXTI11_PE_Msk /*!< PE[11] pin */ #define AFIO_EXTICR3_EXTI11_PF_Pos (12U) #define AFIO_EXTICR3_EXTI11_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI11_PF_Pos) /*!< 0x00005000 */ #define AFIO_EXTICR3_EXTI11_PF AFIO_EXTICR3_EXTI11_PF_Msk /*!< PF[11] pin */ #define AFIO_EXTICR3_EXTI11_PG_Pos (13U) #define AFIO_EXTICR3_EXTI11_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI11_PG_Pos) /*!< 0x00006000 */ #define AFIO_EXTICR3_EXTI11_PG AFIO_EXTICR3_EXTI11_PG_Msk /*!< PG[11] pin */ /***************** Bit definition for AFIO_EXTICR4 register *****************/ #define AFIO_EXTICR4_EXTI12_Pos (0U) #define AFIO_EXTICR4_EXTI12_Msk (0xFUL << AFIO_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */ #define AFIO_EXTICR4_EXTI12 AFIO_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */ #define AFIO_EXTICR4_EXTI13_Pos (4U) #define AFIO_EXTICR4_EXTI13_Msk (0xFUL << AFIO_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */ #define AFIO_EXTICR4_EXTI13 AFIO_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */ #define AFIO_EXTICR4_EXTI14_Pos (8U) #define AFIO_EXTICR4_EXTI14_Msk (0xFUL << AFIO_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */ #define AFIO_EXTICR4_EXTI14 AFIO_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */ #define AFIO_EXTICR4_EXTI15_Pos (12U) #define AFIO_EXTICR4_EXTI15_Msk (0xFUL << AFIO_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */ #define AFIO_EXTICR4_EXTI15 AFIO_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */ /* EXTI12 configuration */ #define AFIO_EXTICR4_EXTI12_PA 0x00000000U /*!< PA[12] pin */ #define AFIO_EXTICR4_EXTI12_PB_Pos (0U) #define AFIO_EXTICR4_EXTI12_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PB_Pos) /*!< 0x00000001 */ #define AFIO_EXTICR4_EXTI12_PB AFIO_EXTICR4_EXTI12_PB_Msk /*!< PB[12] pin */ #define AFIO_EXTICR4_EXTI12_PC_Pos (1U) #define AFIO_EXTICR4_EXTI12_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PC_Pos) /*!< 0x00000002 */ #define AFIO_EXTICR4_EXTI12_PC AFIO_EXTICR4_EXTI12_PC_Msk /*!< PC[12] pin */ #define AFIO_EXTICR4_EXTI12_PD_Pos (0U) #define AFIO_EXTICR4_EXTI12_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI12_PD_Pos) /*!< 0x00000003 */ #define AFIO_EXTICR4_EXTI12_PD AFIO_EXTICR4_EXTI12_PD_Msk /*!< PD[12] pin */ #define AFIO_EXTICR4_EXTI12_PE_Pos (2U) #define AFIO_EXTICR4_EXTI12_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PE_Pos) /*!< 0x00000004 */ #define AFIO_EXTICR4_EXTI12_PE AFIO_EXTICR4_EXTI12_PE_Msk /*!< PE[12] pin */ #define AFIO_EXTICR4_EXTI12_PF_Pos (0U) #define AFIO_EXTICR4_EXTI12_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI12_PF_Pos) /*!< 0x00000005 */ #define AFIO_EXTICR4_EXTI12_PF AFIO_EXTICR4_EXTI12_PF_Msk /*!< PF[12] pin */ #define AFIO_EXTICR4_EXTI12_PG_Pos (1U) #define AFIO_EXTICR4_EXTI12_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI12_PG_Pos) /*!< 0x00000006 */ #define AFIO_EXTICR4_EXTI12_PG AFIO_EXTICR4_EXTI12_PG_Msk /*!< PG[12] pin */ /* EXTI13 configuration */ #define AFIO_EXTICR4_EXTI13_PA 0x00000000U /*!< PA[13] pin */ #define AFIO_EXTICR4_EXTI13_PB_Pos (4U) #define AFIO_EXTICR4_EXTI13_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PB_Pos) /*!< 0x00000010 */ #define AFIO_EXTICR4_EXTI13_PB AFIO_EXTICR4_EXTI13_PB_Msk /*!< PB[13] pin */ #define AFIO_EXTICR4_EXTI13_PC_Pos (5U) #define AFIO_EXTICR4_EXTI13_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PC_Pos) /*!< 0x00000020 */ #define AFIO_EXTICR4_EXTI13_PC AFIO_EXTICR4_EXTI13_PC_Msk /*!< PC[13] pin */ #define AFIO_EXTICR4_EXTI13_PD_Pos (4U) #define AFIO_EXTICR4_EXTI13_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI13_PD_Pos) /*!< 0x00000030 */ #define AFIO_EXTICR4_EXTI13_PD AFIO_EXTICR4_EXTI13_PD_Msk /*!< PD[13] pin */ #define AFIO_EXTICR4_EXTI13_PE_Pos (6U) #define AFIO_EXTICR4_EXTI13_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PE_Pos) /*!< 0x00000040 */ #define AFIO_EXTICR4_EXTI13_PE AFIO_EXTICR4_EXTI13_PE_Msk /*!< PE[13] pin */ #define AFIO_EXTICR4_EXTI13_PF_Pos (4U) #define AFIO_EXTICR4_EXTI13_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI13_PF_Pos) /*!< 0x00000050 */ #define AFIO_EXTICR4_EXTI13_PF AFIO_EXTICR4_EXTI13_PF_Msk /*!< PF[13] pin */ #define AFIO_EXTICR4_EXTI13_PG_Pos (5U) #define AFIO_EXTICR4_EXTI13_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI13_PG_Pos) /*!< 0x00000060 */ #define AFIO_EXTICR4_EXTI13_PG AFIO_EXTICR4_EXTI13_PG_Msk /*!< PG[13] pin */ /*!< EXTI14 configuration */ #define AFIO_EXTICR4_EXTI14_PA 0x00000000U /*!< PA[14] pin */ #define AFIO_EXTICR4_EXTI14_PB_Pos (8U) #define AFIO_EXTICR4_EXTI14_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PB_Pos) /*!< 0x00000100 */ #define AFIO_EXTICR4_EXTI14_PB AFIO_EXTICR4_EXTI14_PB_Msk /*!< PB[14] pin */ #define AFIO_EXTICR4_EXTI14_PC_Pos (9U) #define AFIO_EXTICR4_EXTI14_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PC_Pos) /*!< 0x00000200 */ #define AFIO_EXTICR4_EXTI14_PC AFIO_EXTICR4_EXTI14_PC_Msk /*!< PC[14] pin */ #define AFIO_EXTICR4_EXTI14_PD_Pos (8U) #define AFIO_EXTICR4_EXTI14_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI14_PD_Pos) /*!< 0x00000300 */ #define AFIO_EXTICR4_EXTI14_PD AFIO_EXTICR4_EXTI14_PD_Msk /*!< PD[14] pin */ #define AFIO_EXTICR4_EXTI14_PE_Pos (10U) #define AFIO_EXTICR4_EXTI14_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PE_Pos) /*!< 0x00000400 */ #define AFIO_EXTICR4_EXTI14_PE AFIO_EXTICR4_EXTI14_PE_Msk /*!< PE[14] pin */ #define AFIO_EXTICR4_EXTI14_PF_Pos (8U) #define AFIO_EXTICR4_EXTI14_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI14_PF_Pos) /*!< 0x00000500 */ #define AFIO_EXTICR4_EXTI14_PF AFIO_EXTICR4_EXTI14_PF_Msk /*!< PF[14] pin */ #define AFIO_EXTICR4_EXTI14_PG_Pos (9U) #define AFIO_EXTICR4_EXTI14_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI14_PG_Pos) /*!< 0x00000600 */ #define AFIO_EXTICR4_EXTI14_PG AFIO_EXTICR4_EXTI14_PG_Msk /*!< PG[14] pin */ /*!< EXTI15 configuration */ #define AFIO_EXTICR4_EXTI15_PA 0x00000000U /*!< PA[15] pin */ #define AFIO_EXTICR4_EXTI15_PB_Pos (12U) #define AFIO_EXTICR4_EXTI15_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PB_Pos) /*!< 0x00001000 */ #define AFIO_EXTICR4_EXTI15_PB AFIO_EXTICR4_EXTI15_PB_Msk /*!< PB[15] pin */ #define AFIO_EXTICR4_EXTI15_PC_Pos (13U) #define AFIO_EXTICR4_EXTI15_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PC_Pos) /*!< 0x00002000 */ #define AFIO_EXTICR4_EXTI15_PC AFIO_EXTICR4_EXTI15_PC_Msk /*!< PC[15] pin */ #define AFIO_EXTICR4_EXTI15_PD_Pos (12U) #define AFIO_EXTICR4_EXTI15_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI15_PD_Pos) /*!< 0x00003000 */ #define AFIO_EXTICR4_EXTI15_PD AFIO_EXTICR4_EXTI15_PD_Msk /*!< PD[15] pin */ #define AFIO_EXTICR4_EXTI15_PE_Pos (14U) #define AFIO_EXTICR4_EXTI15_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PE_Pos) /*!< 0x00004000 */ #define AFIO_EXTICR4_EXTI15_PE AFIO_EXTICR4_EXTI15_PE_Msk /*!< PE[15] pin */ #define AFIO_EXTICR4_EXTI15_PF_Pos (12U) #define AFIO_EXTICR4_EXTI15_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI15_PF_Pos) /*!< 0x00005000 */ #define AFIO_EXTICR4_EXTI15_PF AFIO_EXTICR4_EXTI15_PF_Msk /*!< PF[15] pin */ #define AFIO_EXTICR4_EXTI15_PG_Pos (13U) #define AFIO_EXTICR4_EXTI15_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI15_PG_Pos) /*!< 0x00006000 */ #define AFIO_EXTICR4_EXTI15_PG AFIO_EXTICR4_EXTI15_PG_Msk /*!< PG[15] pin */ /****************** Bit definition for AFIO_MAPR2 register ******************/ /******************************************************************************/ /* */ /* External Interrupt/Event Controller */ /* */ /******************************************************************************/ /******************* Bit definition for EXTI_IMR register *******************/ #define EXTI_IMR_MR0_Pos (0U) #define EXTI_IMR_MR0_Msk (0x1UL << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */ #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */ #define EXTI_IMR_MR1_Pos (1U) #define EXTI_IMR_MR1_Msk (0x1UL << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */ #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */ #define EXTI_IMR_MR2_Pos (2U) #define EXTI_IMR_MR2_Msk (0x1UL << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */ #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */ #define EXTI_IMR_MR3_Pos (3U) #define EXTI_IMR_MR3_Msk (0x1UL << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */ #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */ #define EXTI_IMR_MR4_Pos (4U) #define EXTI_IMR_MR4_Msk (0x1UL << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */ #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */ #define EXTI_IMR_MR5_Pos (5U) #define EXTI_IMR_MR5_Msk (0x1UL << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */ #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */ #define EXTI_IMR_MR6_Pos (6U) #define EXTI_IMR_MR6_Msk (0x1UL << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */ #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */ #define EXTI_IMR_MR7_Pos (7U) #define EXTI_IMR_MR7_Msk (0x1UL << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */ #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */ #define EXTI_IMR_MR8_Pos (8U) #define EXTI_IMR_MR8_Msk (0x1UL << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */ #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */ #define EXTI_IMR_MR9_Pos (9U) #define EXTI_IMR_MR9_Msk (0x1UL << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */ #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */ #define EXTI_IMR_MR10_Pos (10U) #define EXTI_IMR_MR10_Msk (0x1UL << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */ #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */ #define EXTI_IMR_MR11_Pos (11U) #define EXTI_IMR_MR11_Msk (0x1UL << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */ #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */ #define EXTI_IMR_MR12_Pos (12U) #define EXTI_IMR_MR12_Msk (0x1UL << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */ #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */ #define EXTI_IMR_MR13_Pos (13U) #define EXTI_IMR_MR13_Msk (0x1UL << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */ #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */ #define EXTI_IMR_MR14_Pos (14U) #define EXTI_IMR_MR14_Msk (0x1UL << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */ #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */ #define EXTI_IMR_MR15_Pos (15U) #define EXTI_IMR_MR15_Msk (0x1UL << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */ #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */ #define EXTI_IMR_MR16_Pos (16U) #define EXTI_IMR_MR16_Msk (0x1UL << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */ #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */ #define EXTI_IMR_MR17_Pos (17U) #define EXTI_IMR_MR17_Msk (0x1UL << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */ #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */ #define EXTI_IMR_MR18_Pos (18U) #define EXTI_IMR_MR18_Msk (0x1UL << EXTI_IMR_MR18_Pos) /*!< 0x00040000 */ #define EXTI_IMR_MR18 EXTI_IMR_MR18_Msk /*!< Interrupt Mask on line 18 */ /* References Defines */ #define EXTI_IMR_IM0 EXTI_IMR_MR0 #define EXTI_IMR_IM1 EXTI_IMR_MR1 #define EXTI_IMR_IM2 EXTI_IMR_MR2 #define EXTI_IMR_IM3 EXTI_IMR_MR3 #define EXTI_IMR_IM4 EXTI_IMR_MR4 #define EXTI_IMR_IM5 EXTI_IMR_MR5 #define EXTI_IMR_IM6 EXTI_IMR_MR6 #define EXTI_IMR_IM7 EXTI_IMR_MR7 #define EXTI_IMR_IM8 EXTI_IMR_MR8 #define EXTI_IMR_IM9 EXTI_IMR_MR9 #define EXTI_IMR_IM10 EXTI_IMR_MR10 #define EXTI_IMR_IM11 EXTI_IMR_MR11 #define EXTI_IMR_IM12 EXTI_IMR_MR12 #define EXTI_IMR_IM13 EXTI_IMR_MR13 #define EXTI_IMR_IM14 EXTI_IMR_MR14 #define EXTI_IMR_IM15 EXTI_IMR_MR15 #define EXTI_IMR_IM16 EXTI_IMR_MR16 #define EXTI_IMR_IM17 EXTI_IMR_MR17 #define EXTI_IMR_IM18 EXTI_IMR_MR18 #define EXTI_IMR_IM 0x0007FFFFU /*!< Interrupt Mask All */ /******************* Bit definition for EXTI_EMR register *******************/ #define EXTI_EMR_MR0_Pos (0U) #define EXTI_EMR_MR0_Msk (0x1UL << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */ #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */ #define EXTI_EMR_MR1_Pos (1U) #define EXTI_EMR_MR1_Msk (0x1UL << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */ #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */ #define EXTI_EMR_MR2_Pos (2U) #define EXTI_EMR_MR2_Msk (0x1UL << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */ #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */ #define EXTI_EMR_MR3_Pos (3U) #define EXTI_EMR_MR3_Msk (0x1UL << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */ #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */ #define EXTI_EMR_MR4_Pos (4U) #define EXTI_EMR_MR4_Msk (0x1UL << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */ #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */ #define EXTI_EMR_MR5_Pos (5U) #define EXTI_EMR_MR5_Msk (0x1UL << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */ #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */ #define EXTI_EMR_MR6_Pos (6U) #define EXTI_EMR_MR6_Msk (0x1UL << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */ #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */ #define EXTI_EMR_MR7_Pos (7U) #define EXTI_EMR_MR7_Msk (0x1UL << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */ #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */ #define EXTI_EMR_MR8_Pos (8U) #define EXTI_EMR_MR8_Msk (0x1UL << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */ #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */ #define EXTI_EMR_MR9_Pos (9U) #define EXTI_EMR_MR9_Msk (0x1UL << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */ #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */ #define EXTI_EMR_MR10_Pos (10U) #define EXTI_EMR_MR10_Msk (0x1UL << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */ #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */ #define EXTI_EMR_MR11_Pos (11U) #define EXTI_EMR_MR11_Msk (0x1UL << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */ #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */ #define EXTI_EMR_MR12_Pos (12U) #define EXTI_EMR_MR12_Msk (0x1UL << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */ #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */ #define EXTI_EMR_MR13_Pos (13U) #define EXTI_EMR_MR13_Msk (0x1UL << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */ #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */ #define EXTI_EMR_MR14_Pos (14U) #define EXTI_EMR_MR14_Msk (0x1UL << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */ #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */ #define EXTI_EMR_MR15_Pos (15U) #define EXTI_EMR_MR15_Msk (0x1UL << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */ #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */ #define EXTI_EMR_MR16_Pos (16U) #define EXTI_EMR_MR16_Msk (0x1UL << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */ #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */ #define EXTI_EMR_MR17_Pos (17U) #define EXTI_EMR_MR17_Msk (0x1UL << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */ #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */ #define EXTI_EMR_MR18_Pos (18U) #define EXTI_EMR_MR18_Msk (0x1UL << EXTI_EMR_MR18_Pos) /*!< 0x00040000 */ #define EXTI_EMR_MR18 EXTI_EMR_MR18_Msk /*!< Event Mask on line 18 */ /* References Defines */ #define EXTI_EMR_EM0 EXTI_EMR_MR0 #define EXTI_EMR_EM1 EXTI_EMR_MR1 #define EXTI_EMR_EM2 EXTI_EMR_MR2 #define EXTI_EMR_EM3 EXTI_EMR_MR3 #define EXTI_EMR_EM4 EXTI_EMR_MR4 #define EXTI_EMR_EM5 EXTI_EMR_MR5 #define EXTI_EMR_EM6 EXTI_EMR_MR6 #define EXTI_EMR_EM7 EXTI_EMR_MR7 #define EXTI_EMR_EM8 EXTI_EMR_MR8 #define EXTI_EMR_EM9 EXTI_EMR_MR9 #define EXTI_EMR_EM10 EXTI_EMR_MR10 #define EXTI_EMR_EM11 EXTI_EMR_MR11 #define EXTI_EMR_EM12 EXTI_EMR_MR12 #define EXTI_EMR_EM13 EXTI_EMR_MR13 #define EXTI_EMR_EM14 EXTI_EMR_MR14 #define EXTI_EMR_EM15 EXTI_EMR_MR15 #define EXTI_EMR_EM16 EXTI_EMR_MR16 #define EXTI_EMR_EM17 EXTI_EMR_MR17 #define EXTI_EMR_EM18 EXTI_EMR_MR18 /****************** Bit definition for EXTI_RTSR register *******************/ #define EXTI_RTSR_TR0_Pos (0U) #define EXTI_RTSR_TR0_Msk (0x1UL << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */ #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */ #define EXTI_RTSR_TR1_Pos (1U) #define EXTI_RTSR_TR1_Msk (0x1UL << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */ #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */ #define EXTI_RTSR_TR2_Pos (2U) #define EXTI_RTSR_TR2_Msk (0x1UL << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */ #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */ #define EXTI_RTSR_TR3_Pos (3U) #define EXTI_RTSR_TR3_Msk (0x1UL << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */ #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */ #define EXTI_RTSR_TR4_Pos (4U) #define EXTI_RTSR_TR4_Msk (0x1UL << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */ #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */ #define EXTI_RTSR_TR5_Pos (5U) #define EXTI_RTSR_TR5_Msk (0x1UL << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */ #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */ #define EXTI_RTSR_TR6_Pos (6U) #define EXTI_RTSR_TR6_Msk (0x1UL << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */ #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */ #define EXTI_RTSR_TR7_Pos (7U) #define EXTI_RTSR_TR7_Msk (0x1UL << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */ #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */ #define EXTI_RTSR_TR8_Pos (8U) #define EXTI_RTSR_TR8_Msk (0x1UL << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */ #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */ #define EXTI_RTSR_TR9_Pos (9U) #define EXTI_RTSR_TR9_Msk (0x1UL << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */ #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */ #define EXTI_RTSR_TR10_Pos (10U) #define EXTI_RTSR_TR10_Msk (0x1UL << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */ #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */ #define EXTI_RTSR_TR11_Pos (11U) #define EXTI_RTSR_TR11_Msk (0x1UL << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */ #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */ #define EXTI_RTSR_TR12_Pos (12U) #define EXTI_RTSR_TR12_Msk (0x1UL << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */ #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */ #define EXTI_RTSR_TR13_Pos (13U) #define EXTI_RTSR_TR13_Msk (0x1UL << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */ #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */ #define EXTI_RTSR_TR14_Pos (14U) #define EXTI_RTSR_TR14_Msk (0x1UL << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */ #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */ #define EXTI_RTSR_TR15_Pos (15U) #define EXTI_RTSR_TR15_Msk (0x1UL << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */ #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */ #define EXTI_RTSR_TR16_Pos (16U) #define EXTI_RTSR_TR16_Msk (0x1UL << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */ #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */ #define EXTI_RTSR_TR17_Pos (17U) #define EXTI_RTSR_TR17_Msk (0x1UL << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */ #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */ #define EXTI_RTSR_TR18_Pos (18U) #define EXTI_RTSR_TR18_Msk (0x1UL << EXTI_RTSR_TR18_Pos) /*!< 0x00040000 */ #define EXTI_RTSR_TR18 EXTI_RTSR_TR18_Msk /*!< Rising trigger event configuration bit of line 18 */ /* References Defines */ #define EXTI_RTSR_RT0 EXTI_RTSR_TR0 #define EXTI_RTSR_RT1 EXTI_RTSR_TR1 #define EXTI_RTSR_RT2 EXTI_RTSR_TR2 #define EXTI_RTSR_RT3 EXTI_RTSR_TR3 #define EXTI_RTSR_RT4 EXTI_RTSR_TR4 #define EXTI_RTSR_RT5 EXTI_RTSR_TR5 #define EXTI_RTSR_RT6 EXTI_RTSR_TR6 #define EXTI_RTSR_RT7 EXTI_RTSR_TR7 #define EXTI_RTSR_RT8 EXTI_RTSR_TR8 #define EXTI_RTSR_RT9 EXTI_RTSR_TR9 #define EXTI_RTSR_RT10 EXTI_RTSR_TR10 #define EXTI_RTSR_RT11 EXTI_RTSR_TR11 #define EXTI_RTSR_RT12 EXTI_RTSR_TR12 #define EXTI_RTSR_RT13 EXTI_RTSR_TR13 #define EXTI_RTSR_RT14 EXTI_RTSR_TR14 #define EXTI_RTSR_RT15 EXTI_RTSR_TR15 #define EXTI_RTSR_RT16 EXTI_RTSR_TR16 #define EXTI_RTSR_RT17 EXTI_RTSR_TR17 #define EXTI_RTSR_RT18 EXTI_RTSR_TR18 /****************** Bit definition for EXTI_FTSR register *******************/ #define EXTI_FTSR_TR0_Pos (0U) #define EXTI_FTSR_TR0_Msk (0x1UL << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */ #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */ #define EXTI_FTSR_TR1_Pos (1U) #define EXTI_FTSR_TR1_Msk (0x1UL << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */ #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */ #define EXTI_FTSR_TR2_Pos (2U) #define EXTI_FTSR_TR2_Msk (0x1UL << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */ #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */ #define EXTI_FTSR_TR3_Pos (3U) #define EXTI_FTSR_TR3_Msk (0x1UL << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */ #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */ #define EXTI_FTSR_TR4_Pos (4U) #define EXTI_FTSR_TR4_Msk (0x1UL << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */ #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */ #define EXTI_FTSR_TR5_Pos (5U) #define EXTI_FTSR_TR5_Msk (0x1UL << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */ #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */ #define EXTI_FTSR_TR6_Pos (6U) #define EXTI_FTSR_TR6_Msk (0x1UL << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */ #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */ #define EXTI_FTSR_TR7_Pos (7U) #define EXTI_FTSR_TR7_Msk (0x1UL << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */ #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */ #define EXTI_FTSR_TR8_Pos (8U) #define EXTI_FTSR_TR8_Msk (0x1UL << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */ #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */ #define EXTI_FTSR_TR9_Pos (9U) #define EXTI_FTSR_TR9_Msk (0x1UL << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */ #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */ #define EXTI_FTSR_TR10_Pos (10U) #define EXTI_FTSR_TR10_Msk (0x1UL << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */ #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */ #define EXTI_FTSR_TR11_Pos (11U) #define EXTI_FTSR_TR11_Msk (0x1UL << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */ #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */ #define EXTI_FTSR_TR12_Pos (12U) #define EXTI_FTSR_TR12_Msk (0x1UL << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */ #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */ #define EXTI_FTSR_TR13_Pos (13U) #define EXTI_FTSR_TR13_Msk (0x1UL << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */ #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */ #define EXTI_FTSR_TR14_Pos (14U) #define EXTI_FTSR_TR14_Msk (0x1UL << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */ #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */ #define EXTI_FTSR_TR15_Pos (15U) #define EXTI_FTSR_TR15_Msk (0x1UL << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */ #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */ #define EXTI_FTSR_TR16_Pos (16U) #define EXTI_FTSR_TR16_Msk (0x1UL << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */ #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */ #define EXTI_FTSR_TR17_Pos (17U) #define EXTI_FTSR_TR17_Msk (0x1UL << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */ #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */ #define EXTI_FTSR_TR18_Pos (18U) #define EXTI_FTSR_TR18_Msk (0x1UL << EXTI_FTSR_TR18_Pos) /*!< 0x00040000 */ #define EXTI_FTSR_TR18 EXTI_FTSR_TR18_Msk /*!< Falling trigger event configuration bit of line 18 */ /* References Defines */ #define EXTI_FTSR_FT0 EXTI_FTSR_TR0 #define EXTI_FTSR_FT1 EXTI_FTSR_TR1 #define EXTI_FTSR_FT2 EXTI_FTSR_TR2 #define EXTI_FTSR_FT3 EXTI_FTSR_TR3 #define EXTI_FTSR_FT4 EXTI_FTSR_TR4 #define EXTI_FTSR_FT5 EXTI_FTSR_TR5 #define EXTI_FTSR_FT6 EXTI_FTSR_TR6 #define EXTI_FTSR_FT7 EXTI_FTSR_TR7 #define EXTI_FTSR_FT8 EXTI_FTSR_TR8 #define EXTI_FTSR_FT9 EXTI_FTSR_TR9 #define EXTI_FTSR_FT10 EXTI_FTSR_TR10 #define EXTI_FTSR_FT11 EXTI_FTSR_TR11 #define EXTI_FTSR_FT12 EXTI_FTSR_TR12 #define EXTI_FTSR_FT13 EXTI_FTSR_TR13 #define EXTI_FTSR_FT14 EXTI_FTSR_TR14 #define EXTI_FTSR_FT15 EXTI_FTSR_TR15 #define EXTI_FTSR_FT16 EXTI_FTSR_TR16 #define EXTI_FTSR_FT17 EXTI_FTSR_TR17 #define EXTI_FTSR_FT18 EXTI_FTSR_TR18 /****************** Bit definition for EXTI_SWIER register ******************/ #define EXTI_SWIER_SWIER0_Pos (0U) #define EXTI_SWIER_SWIER0_Msk (0x1UL << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */ #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */ #define EXTI_SWIER_SWIER1_Pos (1U) #define EXTI_SWIER_SWIER1_Msk (0x1UL << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */ #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */ #define EXTI_SWIER_SWIER2_Pos (2U) #define EXTI_SWIER_SWIER2_Msk (0x1UL << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */ #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */ #define EXTI_SWIER_SWIER3_Pos (3U) #define EXTI_SWIER_SWIER3_Msk (0x1UL << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */ #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */ #define EXTI_SWIER_SWIER4_Pos (4U) #define EXTI_SWIER_SWIER4_Msk (0x1UL << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */ #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */ #define EXTI_SWIER_SWIER5_Pos (5U) #define EXTI_SWIER_SWIER5_Msk (0x1UL << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */ #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */ #define EXTI_SWIER_SWIER6_Pos (6U) #define EXTI_SWIER_SWIER6_Msk (0x1UL << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */ #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */ #define EXTI_SWIER_SWIER7_Pos (7U) #define EXTI_SWIER_SWIER7_Msk (0x1UL << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */ #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */ #define EXTI_SWIER_SWIER8_Pos (8U) #define EXTI_SWIER_SWIER8_Msk (0x1UL << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */ #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */ #define EXTI_SWIER_SWIER9_Pos (9U) #define EXTI_SWIER_SWIER9_Msk (0x1UL << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */ #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */ #define EXTI_SWIER_SWIER10_Pos (10U) #define EXTI_SWIER_SWIER10_Msk (0x1UL << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */ #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */ #define EXTI_SWIER_SWIER11_Pos (11U) #define EXTI_SWIER_SWIER11_Msk (0x1UL << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */ #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */ #define EXTI_SWIER_SWIER12_Pos (12U) #define EXTI_SWIER_SWIER12_Msk (0x1UL << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */ #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */ #define EXTI_SWIER_SWIER13_Pos (13U) #define EXTI_SWIER_SWIER13_Msk (0x1UL << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */ #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */ #define EXTI_SWIER_SWIER14_Pos (14U) #define EXTI_SWIER_SWIER14_Msk (0x1UL << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */ #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */ #define EXTI_SWIER_SWIER15_Pos (15U) #define EXTI_SWIER_SWIER15_Msk (0x1UL << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */ #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */ #define EXTI_SWIER_SWIER16_Pos (16U) #define EXTI_SWIER_SWIER16_Msk (0x1UL << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */ #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */ #define EXTI_SWIER_SWIER17_Pos (17U) #define EXTI_SWIER_SWIER17_Msk (0x1UL << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */ #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */ #define EXTI_SWIER_SWIER18_Pos (18U) #define EXTI_SWIER_SWIER18_Msk (0x1UL << EXTI_SWIER_SWIER18_Pos) /*!< 0x00040000 */ #define EXTI_SWIER_SWIER18 EXTI_SWIER_SWIER18_Msk /*!< Software Interrupt on line 18 */ /* References Defines */ #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0 #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1 #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2 #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3 #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4 #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5 #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6 #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7 #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8 #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9 #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10 #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11 #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12 #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13 #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14 #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15 #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16 #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17 #define EXTI_SWIER_SWI18 EXTI_SWIER_SWIER18 /******************* Bit definition for EXTI_PR register ********************/ #define EXTI_PR_PR0_Pos (0U) #define EXTI_PR_PR0_Msk (0x1UL << EXTI_PR_PR0_Pos) /*!< 0x00000001 */ #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit for line 0 */ #define EXTI_PR_PR1_Pos (1U) #define EXTI_PR_PR1_Msk (0x1UL << EXTI_PR_PR1_Pos) /*!< 0x00000002 */ #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit for line 1 */ #define EXTI_PR_PR2_Pos (2U) #define EXTI_PR_PR2_Msk (0x1UL << EXTI_PR_PR2_Pos) /*!< 0x00000004 */ #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit for line 2 */ #define EXTI_PR_PR3_Pos (3U) #define EXTI_PR_PR3_Msk (0x1UL << EXTI_PR_PR3_Pos) /*!< 0x00000008 */ #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit for line 3 */ #define EXTI_PR_PR4_Pos (4U) #define EXTI_PR_PR4_Msk (0x1UL << EXTI_PR_PR4_Pos) /*!< 0x00000010 */ #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit for line 4 */ #define EXTI_PR_PR5_Pos (5U) #define EXTI_PR_PR5_Msk (0x1UL << EXTI_PR_PR5_Pos) /*!< 0x00000020 */ #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit for line 5 */ #define EXTI_PR_PR6_Pos (6U) #define EXTI_PR_PR6_Msk (0x1UL << EXTI_PR_PR6_Pos) /*!< 0x00000040 */ #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit for line 6 */ #define EXTI_PR_PR7_Pos (7U) #define EXTI_PR_PR7_Msk (0x1UL << EXTI_PR_PR7_Pos) /*!< 0x00000080 */ #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit for line 7 */ #define EXTI_PR_PR8_Pos (8U) #define EXTI_PR_PR8_Msk (0x1UL << EXTI_PR_PR8_Pos) /*!< 0x00000100 */ #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit for line 8 */ #define EXTI_PR_PR9_Pos (9U) #define EXTI_PR_PR9_Msk (0x1UL << EXTI_PR_PR9_Pos) /*!< 0x00000200 */ #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit for line 9 */ #define EXTI_PR_PR10_Pos (10U) #define EXTI_PR_PR10_Msk (0x1UL << EXTI_PR_PR10_Pos) /*!< 0x00000400 */ #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit for line 10 */ #define EXTI_PR_PR11_Pos (11U) #define EXTI_PR_PR11_Msk (0x1UL << EXTI_PR_PR11_Pos) /*!< 0x00000800 */ #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit for line 11 */ #define EXTI_PR_PR12_Pos (12U) #define EXTI_PR_PR12_Msk (0x1UL << EXTI_PR_PR12_Pos) /*!< 0x00001000 */ #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit for line 12 */ #define EXTI_PR_PR13_Pos (13U) #define EXTI_PR_PR13_Msk (0x1UL << EXTI_PR_PR13_Pos) /*!< 0x00002000 */ #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit for line 13 */ #define EXTI_PR_PR14_Pos (14U) #define EXTI_PR_PR14_Msk (0x1UL << EXTI_PR_PR14_Pos) /*!< 0x00004000 */ #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit for line 14 */ #define EXTI_PR_PR15_Pos (15U) #define EXTI_PR_PR15_Msk (0x1UL << EXTI_PR_PR15_Pos) /*!< 0x00008000 */ #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit for line 15 */ #define EXTI_PR_PR16_Pos (16U) #define EXTI_PR_PR16_Msk (0x1UL << EXTI_PR_PR16_Pos) /*!< 0x00010000 */ #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit for line 16 */ #define EXTI_PR_PR17_Pos (17U) #define EXTI_PR_PR17_Msk (0x1UL << EXTI_PR_PR17_Pos) /*!< 0x00020000 */ #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit for line 17 */ #define EXTI_PR_PR18_Pos (18U) #define EXTI_PR_PR18_Msk (0x1UL << EXTI_PR_PR18_Pos) /*!< 0x00040000 */ #define EXTI_PR_PR18 EXTI_PR_PR18_Msk /*!< Pending bit for line 18 */ /* References Defines */ #define EXTI_PR_PIF0 EXTI_PR_PR0 #define EXTI_PR_PIF1 EXTI_PR_PR1 #define EXTI_PR_PIF2 EXTI_PR_PR2 #define EXTI_PR_PIF3 EXTI_PR_PR3 #define EXTI_PR_PIF4 EXTI_PR_PR4 #define EXTI_PR_PIF5 EXTI_PR_PR5 #define EXTI_PR_PIF6 EXTI_PR_PR6 #define EXTI_PR_PIF7 EXTI_PR_PR7 #define EXTI_PR_PIF8 EXTI_PR_PR8 #define EXTI_PR_PIF9 EXTI_PR_PR9 #define EXTI_PR_PIF10 EXTI_PR_PR10 #define EXTI_PR_PIF11 EXTI_PR_PR11 #define EXTI_PR_PIF12 EXTI_PR_PR12 #define EXTI_PR_PIF13 EXTI_PR_PR13 #define EXTI_PR_PIF14 EXTI_PR_PR14 #define EXTI_PR_PIF15 EXTI_PR_PR15 #define EXTI_PR_PIF16 EXTI_PR_PR16 #define EXTI_PR_PIF17 EXTI_PR_PR17 #define EXTI_PR_PIF18 EXTI_PR_PR18 /******************************************************************************/ /* */ /* DMA Controller */ /* */ /******************************************************************************/ /******************* Bit definition for DMA_ISR register ********************/ #define DMA_ISR_GIF1_Pos (0U) #define DMA_ISR_GIF1_Msk (0x1UL << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */ #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */ #define DMA_ISR_TCIF1_Pos (1U) #define DMA_ISR_TCIF1_Msk (0x1UL << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */ #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */ #define DMA_ISR_HTIF1_Pos (2U) #define DMA_ISR_HTIF1_Msk (0x1UL << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */ #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */ #define DMA_ISR_TEIF1_Pos (3U) #define DMA_ISR_TEIF1_Msk (0x1UL << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */ #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */ #define DMA_ISR_GIF2_Pos (4U) #define DMA_ISR_GIF2_Msk (0x1UL << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */ #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */ #define DMA_ISR_TCIF2_Pos (5U) #define DMA_ISR_TCIF2_Msk (0x1UL << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */ #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */ #define DMA_ISR_HTIF2_Pos (6U) #define DMA_ISR_HTIF2_Msk (0x1UL << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */ #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */ #define DMA_ISR_TEIF2_Pos (7U) #define DMA_ISR_TEIF2_Msk (0x1UL << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */ #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */ #define DMA_ISR_GIF3_Pos (8U) #define DMA_ISR_GIF3_Msk (0x1UL << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */ #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */ #define DMA_ISR_TCIF3_Pos (9U) #define DMA_ISR_TCIF3_Msk (0x1UL << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */ #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */ #define DMA_ISR_HTIF3_Pos (10U) #define DMA_ISR_HTIF3_Msk (0x1UL << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */ #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */ #define DMA_ISR_TEIF3_Pos (11U) #define DMA_ISR_TEIF3_Msk (0x1UL << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */ #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */ #define DMA_ISR_GIF4_Pos (12U) #define DMA_ISR_GIF4_Msk (0x1UL << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */ #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */ #define DMA_ISR_TCIF4_Pos (13U) #define DMA_ISR_TCIF4_Msk (0x1UL << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */ #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */ #define DMA_ISR_HTIF4_Pos (14U) #define DMA_ISR_HTIF4_Msk (0x1UL << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */ #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */ #define DMA_ISR_TEIF4_Pos (15U) #define DMA_ISR_TEIF4_Msk (0x1UL << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */ #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */ #define DMA_ISR_GIF5_Pos (16U) #define DMA_ISR_GIF5_Msk (0x1UL << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */ #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */ #define DMA_ISR_TCIF5_Pos (17U) #define DMA_ISR_TCIF5_Msk (0x1UL << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */ #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */ #define DMA_ISR_HTIF5_Pos (18U) #define DMA_ISR_HTIF5_Msk (0x1UL << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */ #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */ #define DMA_ISR_TEIF5_Pos (19U) #define DMA_ISR_TEIF5_Msk (0x1UL << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */ #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */ #define DMA_ISR_GIF6_Pos (20U) #define DMA_ISR_GIF6_Msk (0x1UL << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */ #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */ #define DMA_ISR_TCIF6_Pos (21U) #define DMA_ISR_TCIF6_Msk (0x1UL << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */ #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */ #define DMA_ISR_HTIF6_Pos (22U) #define DMA_ISR_HTIF6_Msk (0x1UL << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */ #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */ #define DMA_ISR_TEIF6_Pos (23U) #define DMA_ISR_TEIF6_Msk (0x1UL << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */ #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */ #define DMA_ISR_GIF7_Pos (24U) #define DMA_ISR_GIF7_Msk (0x1UL << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */ #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */ #define DMA_ISR_TCIF7_Pos (25U) #define DMA_ISR_TCIF7_Msk (0x1UL << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */ #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */ #define DMA_ISR_HTIF7_Pos (26U) #define DMA_ISR_HTIF7_Msk (0x1UL << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */ #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */ #define DMA_ISR_TEIF7_Pos (27U) #define DMA_ISR_TEIF7_Msk (0x1UL << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */ #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */ /******************* Bit definition for DMA_IFCR register *******************/ #define DMA_IFCR_CGIF1_Pos (0U) #define DMA_IFCR_CGIF1_Msk (0x1UL << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */ #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */ #define DMA_IFCR_CTCIF1_Pos (1U) #define DMA_IFCR_CTCIF1_Msk (0x1UL << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */ #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */ #define DMA_IFCR_CHTIF1_Pos (2U) #define DMA_IFCR_CHTIF1_Msk (0x1UL << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */ #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */ #define DMA_IFCR_CTEIF1_Pos (3U) #define DMA_IFCR_CTEIF1_Msk (0x1UL << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */ #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */ #define DMA_IFCR_CGIF2_Pos (4U) #define DMA_IFCR_CGIF2_Msk (0x1UL << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */ #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */ #define DMA_IFCR_CTCIF2_Pos (5U) #define DMA_IFCR_CTCIF2_Msk (0x1UL << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */ #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */ #define DMA_IFCR_CHTIF2_Pos (6U) #define DMA_IFCR_CHTIF2_Msk (0x1UL << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */ #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */ #define DMA_IFCR_CTEIF2_Pos (7U) #define DMA_IFCR_CTEIF2_Msk (0x1UL << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */ #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */ #define DMA_IFCR_CGIF3_Pos (8U) #define DMA_IFCR_CGIF3_Msk (0x1UL << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */ #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */ #define DMA_IFCR_CTCIF3_Pos (9U) #define DMA_IFCR_CTCIF3_Msk (0x1UL << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */ #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */ #define DMA_IFCR_CHTIF3_Pos (10U) #define DMA_IFCR_CHTIF3_Msk (0x1UL << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */ #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */ #define DMA_IFCR_CTEIF3_Pos (11U) #define DMA_IFCR_CTEIF3_Msk (0x1UL << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */ #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */ #define DMA_IFCR_CGIF4_Pos (12U) #define DMA_IFCR_CGIF4_Msk (0x1UL << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */ #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */ #define DMA_IFCR_CTCIF4_Pos (13U) #define DMA_IFCR_CTCIF4_Msk (0x1UL << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */ #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */ #define DMA_IFCR_CHTIF4_Pos (14U) #define DMA_IFCR_CHTIF4_Msk (0x1UL << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */ #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */ #define DMA_IFCR_CTEIF4_Pos (15U) #define DMA_IFCR_CTEIF4_Msk (0x1UL << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */ #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */ #define DMA_IFCR_CGIF5_Pos (16U) #define DMA_IFCR_CGIF5_Msk (0x1UL << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */ #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */ #define DMA_IFCR_CTCIF5_Pos (17U) #define DMA_IFCR_CTCIF5_Msk (0x1UL << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */ #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */ #define DMA_IFCR_CHTIF5_Pos (18U) #define DMA_IFCR_CHTIF5_Msk (0x1UL << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */ #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */ #define DMA_IFCR_CTEIF5_Pos (19U) #define DMA_IFCR_CTEIF5_Msk (0x1UL << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */ #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */ #define DMA_IFCR_CGIF6_Pos (20U) #define DMA_IFCR_CGIF6_Msk (0x1UL << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */ #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */ #define DMA_IFCR_CTCIF6_Pos (21U) #define DMA_IFCR_CTCIF6_Msk (0x1UL << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */ #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */ #define DMA_IFCR_CHTIF6_Pos (22U) #define DMA_IFCR_CHTIF6_Msk (0x1UL << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */ #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */ #define DMA_IFCR_CTEIF6_Pos (23U) #define DMA_IFCR_CTEIF6_Msk (0x1UL << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */ #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */ #define DMA_IFCR_CGIF7_Pos (24U) #define DMA_IFCR_CGIF7_Msk (0x1UL << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */ #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */ #define DMA_IFCR_CTCIF7_Pos (25U) #define DMA_IFCR_CTCIF7_Msk (0x1UL << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */ #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */ #define DMA_IFCR_CHTIF7_Pos (26U) #define DMA_IFCR_CHTIF7_Msk (0x1UL << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */ #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */ #define DMA_IFCR_CTEIF7_Pos (27U) #define DMA_IFCR_CTEIF7_Msk (0x1UL << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */ #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */ /******************* Bit definition for DMA_CCR register *******************/ #define DMA_CCR_EN_Pos (0U) #define DMA_CCR_EN_Msk (0x1UL << DMA_CCR_EN_Pos) /*!< 0x00000001 */ #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */ #define DMA_CCR_TCIE_Pos (1U) #define DMA_CCR_TCIE_Msk (0x1UL << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */ #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */ #define DMA_CCR_HTIE_Pos (2U) #define DMA_CCR_HTIE_Msk (0x1UL << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */ #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */ #define DMA_CCR_TEIE_Pos (3U) #define DMA_CCR_TEIE_Msk (0x1UL << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */ #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */ #define DMA_CCR_DIR_Pos (4U) #define DMA_CCR_DIR_Msk (0x1UL << DMA_CCR_DIR_Pos) /*!< 0x00000010 */ #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */ #define DMA_CCR_CIRC_Pos (5U) #define DMA_CCR_CIRC_Msk (0x1UL << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */ #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */ #define DMA_CCR_PINC_Pos (6U) #define DMA_CCR_PINC_Msk (0x1UL << DMA_CCR_PINC_Pos) /*!< 0x00000040 */ #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */ #define DMA_CCR_MINC_Pos (7U) #define DMA_CCR_MINC_Msk (0x1UL << DMA_CCR_MINC_Pos) /*!< 0x00000080 */ #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */ #define DMA_CCR_PSIZE_Pos (8U) #define DMA_CCR_PSIZE_Msk (0x3UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */ #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */ #define DMA_CCR_PSIZE_0 (0x1UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */ #define DMA_CCR_PSIZE_1 (0x2UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */ #define DMA_CCR_MSIZE_Pos (10U) #define DMA_CCR_MSIZE_Msk (0x3UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */ #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */ #define DMA_CCR_MSIZE_0 (0x1UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */ #define DMA_CCR_MSIZE_1 (0x2UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */ #define DMA_CCR_PL_Pos (12U) #define DMA_CCR_PL_Msk (0x3UL << DMA_CCR_PL_Pos) /*!< 0x00003000 */ #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level) */ #define DMA_CCR_PL_0 (0x1UL << DMA_CCR_PL_Pos) /*!< 0x00001000 */ #define DMA_CCR_PL_1 (0x2UL << DMA_CCR_PL_Pos) /*!< 0x00002000 */ #define DMA_CCR_MEM2MEM_Pos (14U) #define DMA_CCR_MEM2MEM_Msk (0x1UL << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */ #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */ /****************** Bit definition for DMA_CNDTR register ******************/ #define DMA_CNDTR_NDT_Pos (0U) #define DMA_CNDTR_NDT_Msk (0xFFFFUL << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */ #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */ /****************** Bit definition for DMA_CPAR register *******************/ #define DMA_CPAR_PA_Pos (0U) #define DMA_CPAR_PA_Msk (0xFFFFFFFFUL << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */ #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */ /****************** Bit definition for DMA_CMAR register *******************/ #define DMA_CMAR_MA_Pos (0U) #define DMA_CMAR_MA_Msk (0xFFFFFFFFUL << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */ #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */ /******************************************************************************/ /* */ /* Analog to Digital Converter (ADC) */ /* */ /******************************************************************************/ /* * @brief Specific device feature definitions (not present on all devices in the STM32F1 family) */ #define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */ /******************** Bit definition for ADC_SR register ********************/ #define ADC_SR_AWD_Pos (0U) #define ADC_SR_AWD_Msk (0x1UL << ADC_SR_AWD_Pos) /*!< 0x00000001 */ #define ADC_SR_AWD ADC_SR_AWD_Msk /*!< ADC analog watchdog 1 flag */ #define ADC_SR_EOS_Pos (1U) #define ADC_SR_EOS_Msk (0x1UL << ADC_SR_EOS_Pos) /*!< 0x00000002 */ #define ADC_SR_EOS ADC_SR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */ #define ADC_SR_JEOS_Pos (2U) #define ADC_SR_JEOS_Msk (0x1UL << ADC_SR_JEOS_Pos) /*!< 0x00000004 */ #define ADC_SR_JEOS ADC_SR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */ #define ADC_SR_JSTRT_Pos (3U) #define ADC_SR_JSTRT_Msk (0x1UL << ADC_SR_JSTRT_Pos) /*!< 0x00000008 */ #define ADC_SR_JSTRT ADC_SR_JSTRT_Msk /*!< ADC group injected conversion start flag */ #define ADC_SR_STRT_Pos (4U) #define ADC_SR_STRT_Msk (0x1UL << ADC_SR_STRT_Pos) /*!< 0x00000010 */ #define ADC_SR_STRT ADC_SR_STRT_Msk /*!< ADC group regular conversion start flag */ /* Legacy defines */ #define ADC_SR_EOC (ADC_SR_EOS) #define ADC_SR_JEOC (ADC_SR_JEOS) /******************* Bit definition for ADC_CR1 register ********************/ #define ADC_CR1_AWDCH_Pos (0U) #define ADC_CR1_AWDCH_Msk (0x1FUL << ADC_CR1_AWDCH_Pos) /*!< 0x0000001F */ #define ADC_CR1_AWDCH ADC_CR1_AWDCH_Msk /*!< ADC analog watchdog 1 monitored channel selection */ #define ADC_CR1_AWDCH_0 (0x01UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000001 */ #define ADC_CR1_AWDCH_1 (0x02UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000002 */ #define ADC_CR1_AWDCH_2 (0x04UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000004 */ #define ADC_CR1_AWDCH_3 (0x08UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000008 */ #define ADC_CR1_AWDCH_4 (0x10UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000010 */ #define ADC_CR1_EOSIE_Pos (5U) #define ADC_CR1_EOSIE_Msk (0x1UL << ADC_CR1_EOSIE_Pos) /*!< 0x00000020 */ #define ADC_CR1_EOSIE ADC_CR1_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */ #define ADC_CR1_AWDIE_Pos (6U) #define ADC_CR1_AWDIE_Msk (0x1UL << ADC_CR1_AWDIE_Pos) /*!< 0x00000040 */ #define ADC_CR1_AWDIE ADC_CR1_AWDIE_Msk /*!< ADC analog watchdog 1 interrupt */ #define ADC_CR1_JEOSIE_Pos (7U) #define ADC_CR1_JEOSIE_Msk (0x1UL << ADC_CR1_JEOSIE_Pos) /*!< 0x00000080 */ #define ADC_CR1_JEOSIE ADC_CR1_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */ #define ADC_CR1_SCAN_Pos (8U) #define ADC_CR1_SCAN_Msk (0x1UL << ADC_CR1_SCAN_Pos) /*!< 0x00000100 */ #define ADC_CR1_SCAN ADC_CR1_SCAN_Msk /*!< ADC scan mode */ #define ADC_CR1_AWDSGL_Pos (9U) #define ADC_CR1_AWDSGL_Msk (0x1UL << ADC_CR1_AWDSGL_Pos) /*!< 0x00000200 */ #define ADC_CR1_AWDSGL ADC_CR1_AWDSGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */ #define ADC_CR1_JAUTO_Pos (10U) #define ADC_CR1_JAUTO_Msk (0x1UL << ADC_CR1_JAUTO_Pos) /*!< 0x00000400 */ #define ADC_CR1_JAUTO ADC_CR1_JAUTO_Msk /*!< ADC group injected automatic trigger mode */ #define ADC_CR1_DISCEN_Pos (11U) #define ADC_CR1_DISCEN_Msk (0x1UL << ADC_CR1_DISCEN_Pos) /*!< 0x00000800 */ #define ADC_CR1_DISCEN ADC_CR1_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */ #define ADC_CR1_JDISCEN_Pos (12U) #define ADC_CR1_JDISCEN_Msk (0x1UL << ADC_CR1_JDISCEN_Pos) /*!< 0x00001000 */ #define ADC_CR1_JDISCEN ADC_CR1_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */ #define ADC_CR1_DISCNUM_Pos (13U) #define ADC_CR1_DISCNUM_Msk (0x7UL << ADC_CR1_DISCNUM_Pos) /*!< 0x0000E000 */ #define ADC_CR1_DISCNUM ADC_CR1_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */ #define ADC_CR1_DISCNUM_0 (0x1UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00002000 */ #define ADC_CR1_DISCNUM_1 (0x2UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00004000 */ #define ADC_CR1_DISCNUM_2 (0x4UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00008000 */ #define ADC_CR1_DUALMOD_Pos (16U) #define ADC_CR1_DUALMOD_Msk (0xFUL << ADC_CR1_DUALMOD_Pos) /*!< 0x000F0000 */ #define ADC_CR1_DUALMOD ADC_CR1_DUALMOD_Msk /*!< ADC multimode mode selection */ #define ADC_CR1_DUALMOD_0 (0x1UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00010000 */ #define ADC_CR1_DUALMOD_1 (0x2UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00020000 */ #define ADC_CR1_DUALMOD_2 (0x4UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00040000 */ #define ADC_CR1_DUALMOD_3 (0x8UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00080000 */ #define ADC_CR1_JAWDEN_Pos (22U) #define ADC_CR1_JAWDEN_Msk (0x1UL << ADC_CR1_JAWDEN_Pos) /*!< 0x00400000 */ #define ADC_CR1_JAWDEN ADC_CR1_JAWDEN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */ #define ADC_CR1_AWDEN_Pos (23U) #define ADC_CR1_AWDEN_Msk (0x1UL << ADC_CR1_AWDEN_Pos) /*!< 0x00800000 */ #define ADC_CR1_AWDEN ADC_CR1_AWDEN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */ /* Legacy defines */ #define ADC_CR1_EOCIE (ADC_CR1_EOSIE) #define ADC_CR1_JEOCIE (ADC_CR1_JEOSIE) /******************* Bit definition for ADC_CR2 register ********************/ #define ADC_CR2_ADON_Pos (0U) #define ADC_CR2_ADON_Msk (0x1UL << ADC_CR2_ADON_Pos) /*!< 0x00000001 */ #define ADC_CR2_ADON ADC_CR2_ADON_Msk /*!< ADC enable */ #define ADC_CR2_CONT_Pos (1U) #define ADC_CR2_CONT_Msk (0x1UL << ADC_CR2_CONT_Pos) /*!< 0x00000002 */ #define ADC_CR2_CONT ADC_CR2_CONT_Msk /*!< ADC group regular continuous conversion mode */ #define ADC_CR2_CAL_Pos (2U) #define ADC_CR2_CAL_Msk (0x1UL << ADC_CR2_CAL_Pos) /*!< 0x00000004 */ #define ADC_CR2_CAL ADC_CR2_CAL_Msk /*!< ADC calibration start */ #define ADC_CR2_RSTCAL_Pos (3U) #define ADC_CR2_RSTCAL_Msk (0x1UL << ADC_CR2_RSTCAL_Pos) /*!< 0x00000008 */ #define ADC_CR2_RSTCAL ADC_CR2_RSTCAL_Msk /*!< ADC calibration reset */ #define ADC_CR2_DMA_Pos (8U) #define ADC_CR2_DMA_Msk (0x1UL << ADC_CR2_DMA_Pos) /*!< 0x00000100 */ #define ADC_CR2_DMA ADC_CR2_DMA_Msk /*!< ADC DMA transfer enable */ #define ADC_CR2_ALIGN_Pos (11U) #define ADC_CR2_ALIGN_Msk (0x1UL << ADC_CR2_ALIGN_Pos) /*!< 0x00000800 */ #define ADC_CR2_ALIGN ADC_CR2_ALIGN_Msk /*!< ADC data alignement */ #define ADC_CR2_JEXTSEL_Pos (12U) #define ADC_CR2_JEXTSEL_Msk (0x7UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00007000 */ #define ADC_CR2_JEXTSEL ADC_CR2_JEXTSEL_Msk /*!< ADC group injected external trigger source */ #define ADC_CR2_JEXTSEL_0 (0x1UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00001000 */ #define ADC_CR2_JEXTSEL_1 (0x2UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00002000 */ #define ADC_CR2_JEXTSEL_2 (0x4UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00004000 */ #define ADC_CR2_JEXTTRIG_Pos (15U) #define ADC_CR2_JEXTTRIG_Msk (0x1UL << ADC_CR2_JEXTTRIG_Pos) /*!< 0x00008000 */ #define ADC_CR2_JEXTTRIG ADC_CR2_JEXTTRIG_Msk /*!< ADC group injected external trigger enable */ #define ADC_CR2_EXTSEL_Pos (17U) #define ADC_CR2_EXTSEL_Msk (0x7UL << ADC_CR2_EXTSEL_Pos) /*!< 0x000E0000 */ #define ADC_CR2_EXTSEL ADC_CR2_EXTSEL_Msk /*!< ADC group regular external trigger source */ #define ADC_CR2_EXTSEL_0 (0x1UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00020000 */ #define ADC_CR2_EXTSEL_1 (0x2UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00040000 */ #define ADC_CR2_EXTSEL_2 (0x4UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00080000 */ #define ADC_CR2_EXTTRIG_Pos (20U) #define ADC_CR2_EXTTRIG_Msk (0x1UL << ADC_CR2_EXTTRIG_Pos) /*!< 0x00100000 */ #define ADC_CR2_EXTTRIG ADC_CR2_EXTTRIG_Msk /*!< ADC group regular external trigger enable */ #define ADC_CR2_JSWSTART_Pos (21U) #define ADC_CR2_JSWSTART_Msk (0x1UL << ADC_CR2_JSWSTART_Pos) /*!< 0x00200000 */ #define ADC_CR2_JSWSTART ADC_CR2_JSWSTART_Msk /*!< ADC group injected conversion start */ #define ADC_CR2_SWSTART_Pos (22U) #define ADC_CR2_SWSTART_Msk (0x1UL << ADC_CR2_SWSTART_Pos) /*!< 0x00400000 */ #define ADC_CR2_SWSTART ADC_CR2_SWSTART_Msk /*!< ADC group regular conversion start */ #define ADC_CR2_TSVREFE_Pos (23U) #define ADC_CR2_TSVREFE_Msk (0x1UL << ADC_CR2_TSVREFE_Pos) /*!< 0x00800000 */ #define ADC_CR2_TSVREFE ADC_CR2_TSVREFE_Msk /*!< ADC internal path to VrefInt and temperature sensor enable */ /****************** Bit definition for ADC_SMPR1 register *******************/ #define ADC_SMPR1_SMP10_Pos (0U) #define ADC_SMPR1_SMP10_Msk (0x7UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000007 */ #define ADC_SMPR1_SMP10 ADC_SMPR1_SMP10_Msk /*!< ADC channel 10 sampling time selection */ #define ADC_SMPR1_SMP10_0 (0x1UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000001 */ #define ADC_SMPR1_SMP10_1 (0x2UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000002 */ #define ADC_SMPR1_SMP10_2 (0x4UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000004 */ #define ADC_SMPR1_SMP11_Pos (3U) #define ADC_SMPR1_SMP11_Msk (0x7UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000038 */ #define ADC_SMPR1_SMP11 ADC_SMPR1_SMP11_Msk /*!< ADC channel 11 sampling time selection */ #define ADC_SMPR1_SMP11_0 (0x1UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000008 */ #define ADC_SMPR1_SMP11_1 (0x2UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000010 */ #define ADC_SMPR1_SMP11_2 (0x4UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000020 */ #define ADC_SMPR1_SMP12_Pos (6U) #define ADC_SMPR1_SMP12_Msk (0x7UL << ADC_SMPR1_SMP12_Pos) /*!< 0x000001C0 */ #define ADC_SMPR1_SMP12 ADC_SMPR1_SMP12_Msk /*!< ADC channel 12 sampling time selection */ #define ADC_SMPR1_SMP12_0 (0x1UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000040 */ #define ADC_SMPR1_SMP12_1 (0x2UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000080 */ #define ADC_SMPR1_SMP12_2 (0x4UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000100 */ #define ADC_SMPR1_SMP13_Pos (9U) #define ADC_SMPR1_SMP13_Msk (0x7UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000E00 */ #define ADC_SMPR1_SMP13 ADC_SMPR1_SMP13_Msk /*!< ADC channel 13 sampling time selection */ #define ADC_SMPR1_SMP13_0 (0x1UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000200 */ #define ADC_SMPR1_SMP13_1 (0x2UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000400 */ #define ADC_SMPR1_SMP13_2 (0x4UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000800 */ #define ADC_SMPR1_SMP14_Pos (12U) #define ADC_SMPR1_SMP14_Msk (0x7UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00007000 */ #define ADC_SMPR1_SMP14 ADC_SMPR1_SMP14_Msk /*!< ADC channel 14 sampling time selection */ #define ADC_SMPR1_SMP14_0 (0x1UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00001000 */ #define ADC_SMPR1_SMP14_1 (0x2UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00002000 */ #define ADC_SMPR1_SMP14_2 (0x4UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00004000 */ #define ADC_SMPR1_SMP15_Pos (15U) #define ADC_SMPR1_SMP15_Msk (0x7UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00038000 */ #define ADC_SMPR1_SMP15 ADC_SMPR1_SMP15_Msk /*!< ADC channel 15 sampling time selection */ #define ADC_SMPR1_SMP15_0 (0x1UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00008000 */ #define ADC_SMPR1_SMP15_1 (0x2UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00010000 */ #define ADC_SMPR1_SMP15_2 (0x4UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00020000 */ #define ADC_SMPR1_SMP16_Pos (18U) #define ADC_SMPR1_SMP16_Msk (0x7UL << ADC_SMPR1_SMP16_Pos) /*!< 0x001C0000 */ #define ADC_SMPR1_SMP16 ADC_SMPR1_SMP16_Msk /*!< ADC channel 16 sampling time selection */ #define ADC_SMPR1_SMP16_0 (0x1UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00040000 */ #define ADC_SMPR1_SMP16_1 (0x2UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00080000 */ #define ADC_SMPR1_SMP16_2 (0x4UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00100000 */ #define ADC_SMPR1_SMP17_Pos (21U) #define ADC_SMPR1_SMP17_Msk (0x7UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00E00000 */ #define ADC_SMPR1_SMP17 ADC_SMPR1_SMP17_Msk /*!< ADC channel 17 sampling time selection */ #define ADC_SMPR1_SMP17_0 (0x1UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00200000 */ #define ADC_SMPR1_SMP17_1 (0x2UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00400000 */ #define ADC_SMPR1_SMP17_2 (0x4UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00800000 */ /****************** Bit definition for ADC_SMPR2 register *******************/ #define ADC_SMPR2_SMP0_Pos (0U) #define ADC_SMPR2_SMP0_Msk (0x7UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000007 */ #define ADC_SMPR2_SMP0 ADC_SMPR2_SMP0_Msk /*!< ADC channel 0 sampling time selection */ #define ADC_SMPR2_SMP0_0 (0x1UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000001 */ #define ADC_SMPR2_SMP0_1 (0x2UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000002 */ #define ADC_SMPR2_SMP0_2 (0x4UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000004 */ #define ADC_SMPR2_SMP1_Pos (3U) #define ADC_SMPR2_SMP1_Msk (0x7UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000038 */ #define ADC_SMPR2_SMP1 ADC_SMPR2_SMP1_Msk /*!< ADC channel 1 sampling time selection */ #define ADC_SMPR2_SMP1_0 (0x1UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000008 */ #define ADC_SMPR2_SMP1_1 (0x2UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000010 */ #define ADC_SMPR2_SMP1_2 (0x4UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000020 */ #define ADC_SMPR2_SMP2_Pos (6U) #define ADC_SMPR2_SMP2_Msk (0x7UL << ADC_SMPR2_SMP2_Pos) /*!< 0x000001C0 */ #define ADC_SMPR2_SMP2 ADC_SMPR2_SMP2_Msk /*!< ADC channel 2 sampling time selection */ #define ADC_SMPR2_SMP2_0 (0x1UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000040 */ #define ADC_SMPR2_SMP2_1 (0x2UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000080 */ #define ADC_SMPR2_SMP2_2 (0x4UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000100 */ #define ADC_SMPR2_SMP3_Pos (9U) #define ADC_SMPR2_SMP3_Msk (0x7UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000E00 */ #define ADC_SMPR2_SMP3 ADC_SMPR2_SMP3_Msk /*!< ADC channel 3 sampling time selection */ #define ADC_SMPR2_SMP3_0 (0x1UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000200 */ #define ADC_SMPR2_SMP3_1 (0x2UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000400 */ #define ADC_SMPR2_SMP3_2 (0x4UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000800 */ #define ADC_SMPR2_SMP4_Pos (12U) #define ADC_SMPR2_SMP4_Msk (0x7UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00007000 */ #define ADC_SMPR2_SMP4 ADC_SMPR2_SMP4_Msk /*!< ADC channel 4 sampling time selection */ #define ADC_SMPR2_SMP4_0 (0x1UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00001000 */ #define ADC_SMPR2_SMP4_1 (0x2UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00002000 */ #define ADC_SMPR2_SMP4_2 (0x4UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00004000 */ #define ADC_SMPR2_SMP5_Pos (15U) #define ADC_SMPR2_SMP5_Msk (0x7UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00038000 */ #define ADC_SMPR2_SMP5 ADC_SMPR2_SMP5_Msk /*!< ADC channel 5 sampling time selection */ #define ADC_SMPR2_SMP5_0 (0x1UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00008000 */ #define ADC_SMPR2_SMP5_1 (0x2UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00010000 */ #define ADC_SMPR2_SMP5_2 (0x4UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00020000 */ #define ADC_SMPR2_SMP6_Pos (18U) #define ADC_SMPR2_SMP6_Msk (0x7UL << ADC_SMPR2_SMP6_Pos) /*!< 0x001C0000 */ #define ADC_SMPR2_SMP6 ADC_SMPR2_SMP6_Msk /*!< ADC channel 6 sampling time selection */ #define ADC_SMPR2_SMP6_0 (0x1UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00040000 */ #define ADC_SMPR2_SMP6_1 (0x2UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00080000 */ #define ADC_SMPR2_SMP6_2 (0x4UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00100000 */ #define ADC_SMPR2_SMP7_Pos (21U) #define ADC_SMPR2_SMP7_Msk (0x7UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00E00000 */ #define ADC_SMPR2_SMP7 ADC_SMPR2_SMP7_Msk /*!< ADC channel 7 sampling time selection */ #define ADC_SMPR2_SMP7_0 (0x1UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00200000 */ #define ADC_SMPR2_SMP7_1 (0x2UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00400000 */ #define ADC_SMPR2_SMP7_2 (0x4UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00800000 */ #define ADC_SMPR2_SMP8_Pos (24U) #define ADC_SMPR2_SMP8_Msk (0x7UL << ADC_SMPR2_SMP8_Pos) /*!< 0x07000000 */ #define ADC_SMPR2_SMP8 ADC_SMPR2_SMP8_Msk /*!< ADC channel 8 sampling time selection */ #define ADC_SMPR2_SMP8_0 (0x1UL << ADC_SMPR2_SMP8_Pos) /*!< 0x01000000 */ #define ADC_SMPR2_SMP8_1 (0x2UL << ADC_SMPR2_SMP8_Pos) /*!< 0x02000000 */ #define ADC_SMPR2_SMP8_2 (0x4UL << ADC_SMPR2_SMP8_Pos) /*!< 0x04000000 */ #define ADC_SMPR2_SMP9_Pos (27U) #define ADC_SMPR2_SMP9_Msk (0x7UL << ADC_SMPR2_SMP9_Pos) /*!< 0x38000000 */ #define ADC_SMPR2_SMP9 ADC_SMPR2_SMP9_Msk /*!< ADC channel 9 sampling time selection */ #define ADC_SMPR2_SMP9_0 (0x1UL << ADC_SMPR2_SMP9_Pos) /*!< 0x08000000 */ #define ADC_SMPR2_SMP9_1 (0x2UL << ADC_SMPR2_SMP9_Pos) /*!< 0x10000000 */ #define ADC_SMPR2_SMP9_2 (0x4UL << ADC_SMPR2_SMP9_Pos) /*!< 0x20000000 */ /****************** Bit definition for ADC_JOFR1 register *******************/ #define ADC_JOFR1_JOFFSET1_Pos (0U) #define ADC_JOFR1_JOFFSET1_Msk (0xFFFUL << ADC_JOFR1_JOFFSET1_Pos) /*!< 0x00000FFF */ #define ADC_JOFR1_JOFFSET1 ADC_JOFR1_JOFFSET1_Msk /*!< ADC group injected sequencer rank 1 offset value */ /****************** Bit definition for ADC_JOFR2 register *******************/ #define ADC_JOFR2_JOFFSET2_Pos (0U) #define ADC_JOFR2_JOFFSET2_Msk (0xFFFUL << ADC_JOFR2_JOFFSET2_Pos) /*!< 0x00000FFF */ #define ADC_JOFR2_JOFFSET2 ADC_JOFR2_JOFFSET2_Msk /*!< ADC group injected sequencer rank 2 offset value */ /****************** Bit definition for ADC_JOFR3 register *******************/ #define ADC_JOFR3_JOFFSET3_Pos (0U) #define ADC_JOFR3_JOFFSET3_Msk (0xFFFUL << ADC_JOFR3_JOFFSET3_Pos) /*!< 0x00000FFF */ #define ADC_JOFR3_JOFFSET3 ADC_JOFR3_JOFFSET3_Msk /*!< ADC group injected sequencer rank 3 offset value */ /****************** Bit definition for ADC_JOFR4 register *******************/ #define ADC_JOFR4_JOFFSET4_Pos (0U) #define ADC_JOFR4_JOFFSET4_Msk (0xFFFUL << ADC_JOFR4_JOFFSET4_Pos) /*!< 0x00000FFF */ #define ADC_JOFR4_JOFFSET4 ADC_JOFR4_JOFFSET4_Msk /*!< ADC group injected sequencer rank 4 offset value */ /******************* Bit definition for ADC_HTR register ********************/ #define ADC_HTR_HT_Pos (0U) #define ADC_HTR_HT_Msk (0xFFFUL << ADC_HTR_HT_Pos) /*!< 0x00000FFF */ #define ADC_HTR_HT ADC_HTR_HT_Msk /*!< ADC analog watchdog 1 threshold high */ /******************* Bit definition for ADC_LTR register ********************/ #define ADC_LTR_LT_Pos (0U) #define ADC_LTR_LT_Msk (0xFFFUL << ADC_LTR_LT_Pos) /*!< 0x00000FFF */ #define ADC_LTR_LT ADC_LTR_LT_Msk /*!< ADC analog watchdog 1 threshold low */ /******************* Bit definition for ADC_SQR1 register *******************/ #define ADC_SQR1_SQ13_Pos (0U) #define ADC_SQR1_SQ13_Msk (0x1FUL << ADC_SQR1_SQ13_Pos) /*!< 0x0000001F */ #define ADC_SQR1_SQ13 ADC_SQR1_SQ13_Msk /*!< ADC group regular sequencer rank 13 */ #define ADC_SQR1_SQ13_0 (0x01UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000001 */ #define ADC_SQR1_SQ13_1 (0x02UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000002 */ #define ADC_SQR1_SQ13_2 (0x04UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000004 */ #define ADC_SQR1_SQ13_3 (0x08UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000008 */ #define ADC_SQR1_SQ13_4 (0x10UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000010 */ #define ADC_SQR1_SQ14_Pos (5U) #define ADC_SQR1_SQ14_Msk (0x1FUL << ADC_SQR1_SQ14_Pos) /*!< 0x000003E0 */ #define ADC_SQR1_SQ14 ADC_SQR1_SQ14_Msk /*!< ADC group regular sequencer rank 14 */ #define ADC_SQR1_SQ14_0 (0x01UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000020 */ #define ADC_SQR1_SQ14_1 (0x02UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000040 */ #define ADC_SQR1_SQ14_2 (0x04UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000080 */ #define ADC_SQR1_SQ14_3 (0x08UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000100 */ #define ADC_SQR1_SQ14_4 (0x10UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000200 */ #define ADC_SQR1_SQ15_Pos (10U) #define ADC_SQR1_SQ15_Msk (0x1FUL << ADC_SQR1_SQ15_Pos) /*!< 0x00007C00 */ #define ADC_SQR1_SQ15 ADC_SQR1_SQ15_Msk /*!< ADC group regular sequencer rank 15 */ #define ADC_SQR1_SQ15_0 (0x01UL << ADC_SQR1_SQ15_Pos) /*!< 0x00000400 */ #define ADC_SQR1_SQ15_1 (0x02UL << ADC_SQR1_SQ15_Pos) /*!< 0x00000800 */ #define ADC_SQR1_SQ15_2 (0x04UL << ADC_SQR1_SQ15_Pos) /*!< 0x00001000 */ #define ADC_SQR1_SQ15_3 (0x08UL << ADC_SQR1_SQ15_Pos) /*!< 0x00002000 */ #define ADC_SQR1_SQ15_4 (0x10UL << ADC_SQR1_SQ15_Pos) /*!< 0x00004000 */ #define ADC_SQR1_SQ16_Pos (15U) #define ADC_SQR1_SQ16_Msk (0x1FUL << ADC_SQR1_SQ16_Pos) /*!< 0x000F8000 */ #define ADC_SQR1_SQ16 ADC_SQR1_SQ16_Msk /*!< ADC group regular sequencer rank 16 */ #define ADC_SQR1_SQ16_0 (0x01UL << ADC_SQR1_SQ16_Pos) /*!< 0x00008000 */ #define ADC_SQR1_SQ16_1 (0x02UL << ADC_SQR1_SQ16_Pos) /*!< 0x00010000 */ #define ADC_SQR1_SQ16_2 (0x04UL << ADC_SQR1_SQ16_Pos) /*!< 0x00020000 */ #define ADC_SQR1_SQ16_3 (0x08UL << ADC_SQR1_SQ16_Pos) /*!< 0x00040000 */ #define ADC_SQR1_SQ16_4 (0x10UL << ADC_SQR1_SQ16_Pos) /*!< 0x00080000 */ #define ADC_SQR1_L_Pos (20U) #define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x00F00000 */ #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */ #define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00100000 */ #define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00200000 */ #define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00400000 */ #define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00800000 */ /******************* Bit definition for ADC_SQR2 register *******************/ #define ADC_SQR2_SQ7_Pos (0U) #define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0000001F */ #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */ #define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000001 */ #define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000002 */ #define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000004 */ #define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000008 */ #define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000010 */ #define ADC_SQR2_SQ8_Pos (5U) #define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x000003E0 */ #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */ #define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000020 */ #define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000040 */ #define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000080 */ #define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000100 */ #define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000200 */ #define ADC_SQR2_SQ9_Pos (10U) #define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x00007C00 */ #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */ #define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x00000400 */ #define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x00000800 */ #define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x00001000 */ #define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x00002000 */ #define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x00004000 */ #define ADC_SQR2_SQ10_Pos (15U) #define ADC_SQR2_SQ10_Msk (0x1FUL << ADC_SQR2_SQ10_Pos) /*!< 0x000F8000 */ #define ADC_SQR2_SQ10 ADC_SQR2_SQ10_Msk /*!< ADC group regular sequencer rank 10 */ #define ADC_SQR2_SQ10_0 (0x01UL << ADC_SQR2_SQ10_Pos) /*!< 0x00008000 */ #define ADC_SQR2_SQ10_1 (0x02UL << ADC_SQR2_SQ10_Pos) /*!< 0x00010000 */ #define ADC_SQR2_SQ10_2 (0x04UL << ADC_SQR2_SQ10_Pos) /*!< 0x00020000 */ #define ADC_SQR2_SQ10_3 (0x08UL << ADC_SQR2_SQ10_Pos) /*!< 0x00040000 */ #define ADC_SQR2_SQ10_4 (0x10UL << ADC_SQR2_SQ10_Pos) /*!< 0x00080000 */ #define ADC_SQR2_SQ11_Pos (20U) #define ADC_SQR2_SQ11_Msk (0x1FUL << ADC_SQR2_SQ11_Pos) /*!< 0x01F00000 */ #define ADC_SQR2_SQ11 ADC_SQR2_SQ11_Msk /*!< ADC group regular sequencer rank 1 */ #define ADC_SQR2_SQ11_0 (0x01UL << ADC_SQR2_SQ11_Pos) /*!< 0x00100000 */ #define ADC_SQR2_SQ11_1 (0x02UL << ADC_SQR2_SQ11_Pos) /*!< 0x00200000 */ #define ADC_SQR2_SQ11_2 (0x04UL << ADC_SQR2_SQ11_Pos) /*!< 0x00400000 */ #define ADC_SQR2_SQ11_3 (0x08UL << ADC_SQR2_SQ11_Pos) /*!< 0x00800000 */ #define ADC_SQR2_SQ11_4 (0x10UL << ADC_SQR2_SQ11_Pos) /*!< 0x01000000 */ #define ADC_SQR2_SQ12_Pos (25U) #define ADC_SQR2_SQ12_Msk (0x1FUL << ADC_SQR2_SQ12_Pos) /*!< 0x3E000000 */ #define ADC_SQR2_SQ12 ADC_SQR2_SQ12_Msk /*!< ADC group regular sequencer rank 12 */ #define ADC_SQR2_SQ12_0 (0x01UL << ADC_SQR2_SQ12_Pos) /*!< 0x02000000 */ #define ADC_SQR2_SQ12_1 (0x02UL << ADC_SQR2_SQ12_Pos) /*!< 0x04000000 */ #define ADC_SQR2_SQ12_2 (0x04UL << ADC_SQR2_SQ12_Pos) /*!< 0x08000000 */ #define ADC_SQR2_SQ12_3 (0x08UL << ADC_SQR2_SQ12_Pos) /*!< 0x10000000 */ #define ADC_SQR2_SQ12_4 (0x10UL << ADC_SQR2_SQ12_Pos) /*!< 0x20000000 */ /******************* Bit definition for ADC_SQR3 register *******************/ #define ADC_SQR3_SQ1_Pos (0U) #define ADC_SQR3_SQ1_Msk (0x1FUL << ADC_SQR3_SQ1_Pos) /*!< 0x0000001F */ #define ADC_SQR3_SQ1 ADC_SQR3_SQ1_Msk /*!< ADC group regular sequencer rank 1 */ #define ADC_SQR3_SQ1_0 (0x01UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000001 */ #define ADC_SQR3_SQ1_1 (0x02UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000002 */ #define ADC_SQR3_SQ1_2 (0x04UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000004 */ #define ADC_SQR3_SQ1_3 (0x08UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000008 */ #define ADC_SQR3_SQ1_4 (0x10UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000010 */ #define ADC_SQR3_SQ2_Pos (5U) #define ADC_SQR3_SQ2_Msk (0x1FUL << ADC_SQR3_SQ2_Pos) /*!< 0x000003E0 */ #define ADC_SQR3_SQ2 ADC_SQR3_SQ2_Msk /*!< ADC group regular sequencer rank 2 */ #define ADC_SQR3_SQ2_0 (0x01UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000020 */ #define ADC_SQR3_SQ2_1 (0x02UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000040 */ #define ADC_SQR3_SQ2_2 (0x04UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000080 */ #define ADC_SQR3_SQ2_3 (0x08UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000100 */ #define ADC_SQR3_SQ2_4 (0x10UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000200 */ #define ADC_SQR3_SQ3_Pos (10U) #define ADC_SQR3_SQ3_Msk (0x1FUL << ADC_SQR3_SQ3_Pos) /*!< 0x00007C00 */ #define ADC_SQR3_SQ3 ADC_SQR3_SQ3_Msk /*!< ADC group regular sequencer rank 3 */ #define ADC_SQR3_SQ3_0 (0x01UL << ADC_SQR3_SQ3_Pos) /*!< 0x00000400 */ #define ADC_SQR3_SQ3_1 (0x02UL << ADC_SQR3_SQ3_Pos) /*!< 0x00000800 */ #define ADC_SQR3_SQ3_2 (0x04UL << ADC_SQR3_SQ3_Pos) /*!< 0x00001000 */ #define ADC_SQR3_SQ3_3 (0x08UL << ADC_SQR3_SQ3_Pos) /*!< 0x00002000 */ #define ADC_SQR3_SQ3_4 (0x10UL << ADC_SQR3_SQ3_Pos) /*!< 0x00004000 */ #define ADC_SQR3_SQ4_Pos (15U) #define ADC_SQR3_SQ4_Msk (0x1FUL << ADC_SQR3_SQ4_Pos) /*!< 0x000F8000 */ #define ADC_SQR3_SQ4 ADC_SQR3_SQ4_Msk /*!< ADC group regular sequencer rank 4 */ #define ADC_SQR3_SQ4_0 (0x01UL << ADC_SQR3_SQ4_Pos) /*!< 0x00008000 */ #define ADC_SQR3_SQ4_1 (0x02UL << ADC_SQR3_SQ4_Pos) /*!< 0x00010000 */ #define ADC_SQR3_SQ4_2 (0x04UL << ADC_SQR3_SQ4_Pos) /*!< 0x00020000 */ #define ADC_SQR3_SQ4_3 (0x08UL << ADC_SQR3_SQ4_Pos) /*!< 0x00040000 */ #define ADC_SQR3_SQ4_4 (0x10UL << ADC_SQR3_SQ4_Pos) /*!< 0x00080000 */ #define ADC_SQR3_SQ5_Pos (20U) #define ADC_SQR3_SQ5_Msk (0x1FUL << ADC_SQR3_SQ5_Pos) /*!< 0x01F00000 */ #define ADC_SQR3_SQ5 ADC_SQR3_SQ5_Msk /*!< ADC group regular sequencer rank 5 */ #define ADC_SQR3_SQ5_0 (0x01UL << ADC_SQR3_SQ5_Pos) /*!< 0x00100000 */ #define ADC_SQR3_SQ5_1 (0x02UL << ADC_SQR3_SQ5_Pos) /*!< 0x00200000 */ #define ADC_SQR3_SQ5_2 (0x04UL << ADC_SQR3_SQ5_Pos) /*!< 0x00400000 */ #define ADC_SQR3_SQ5_3 (0x08UL << ADC_SQR3_SQ5_Pos) /*!< 0x00800000 */ #define ADC_SQR3_SQ5_4 (0x10UL << ADC_SQR3_SQ5_Pos) /*!< 0x01000000 */ #define ADC_SQR3_SQ6_Pos (25U) #define ADC_SQR3_SQ6_Msk (0x1FUL << ADC_SQR3_SQ6_Pos) /*!< 0x3E000000 */ #define ADC_SQR3_SQ6 ADC_SQR3_SQ6_Msk /*!< ADC group regular sequencer rank 6 */ #define ADC_SQR3_SQ6_0 (0x01UL << ADC_SQR3_SQ6_Pos) /*!< 0x02000000 */ #define ADC_SQR3_SQ6_1 (0x02UL << ADC_SQR3_SQ6_Pos) /*!< 0x04000000 */ #define ADC_SQR3_SQ6_2 (0x04UL << ADC_SQR3_SQ6_Pos) /*!< 0x08000000 */ #define ADC_SQR3_SQ6_3 (0x08UL << ADC_SQR3_SQ6_Pos) /*!< 0x10000000 */ #define ADC_SQR3_SQ6_4 (0x10UL << ADC_SQR3_SQ6_Pos) /*!< 0x20000000 */ /******************* Bit definition for ADC_JSQR register *******************/ #define ADC_JSQR_JSQ1_Pos (0U) #define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x0000001F */ #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */ #define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000001 */ #define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000002 */ #define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000004 */ #define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000008 */ #define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000010 */ #define ADC_JSQR_JSQ2_Pos (5U) #define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x000003E0 */ #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */ #define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000020 */ #define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000040 */ #define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000080 */ #define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000100 */ #define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000200 */ #define ADC_JSQR_JSQ3_Pos (10U) #define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x00007C00 */ #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */ #define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00000400 */ #define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00000800 */ #define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00001000 */ #define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00002000 */ #define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00004000 */ #define ADC_JSQR_JSQ4_Pos (15U) #define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0x000F8000 */ #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */ #define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00008000 */ #define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00010000 */ #define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00020000 */ #define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00040000 */ #define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00080000 */ #define ADC_JSQR_JL_Pos (20U) #define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00300000 */ #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */ #define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00100000 */ #define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00200000 */ /******************* Bit definition for ADC_JDR1 register *******************/ #define ADC_JDR1_JDATA_Pos (0U) #define ADC_JDR1_JDATA_Msk (0xFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */ #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */ /******************* Bit definition for ADC_JDR2 register *******************/ #define ADC_JDR2_JDATA_Pos (0U) #define ADC_JDR2_JDATA_Msk (0xFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */ #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */ /******************* Bit definition for ADC_JDR3 register *******************/ #define ADC_JDR3_JDATA_Pos (0U) #define ADC_JDR3_JDATA_Msk (0xFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */ #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */ /******************* Bit definition for ADC_JDR4 register *******************/ #define ADC_JDR4_JDATA_Pos (0U) #define ADC_JDR4_JDATA_Msk (0xFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */ #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */ /******************** Bit definition for ADC_DR register ********************/ #define ADC_DR_DATA_Pos (0U) #define ADC_DR_DATA_Msk (0xFFFFUL << ADC_DR_DATA_Pos) /*!< 0x0000FFFF */ #define ADC_DR_DATA ADC_DR_DATA_Msk /*!< ADC group regular conversion data */ #define ADC_DR_ADC2DATA_Pos (16U) #define ADC_DR_ADC2DATA_Msk (0xFFFFUL << ADC_DR_ADC2DATA_Pos) /*!< 0xFFFF0000 */ #define ADC_DR_ADC2DATA ADC_DR_ADC2DATA_Msk /*!< ADC group regular conversion data for ADC slave, in multimode */ /*****************************************************************************/ /* */ /* Timers (TIM) */ /* */ /*****************************************************************************/ /******************* Bit definition for TIM_CR1 register *******************/ #define TIM_CR1_CEN_Pos (0U) #define TIM_CR1_CEN_Msk (0x1UL << TIM_CR1_CEN_Pos) /*!< 0x00000001 */ #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!
© Copyright (c) 2017 STMicroelectronics. * All rights reserved.
* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f1xx * @{ */ #ifndef __STM32F1XX_H #define __STM32F1XX_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** @addtogroup Library_configuration_section * @{ */ /** * @brief STM32 Family */ #if !defined (STM32F1) #define STM32F1 #endif /* STM32F1 */ /* Uncomment the line below according to the target STM32L device used in your application */ #if !defined (STM32F100xB) && !defined (STM32F100xE) && !defined (STM32F101x6) && \ !defined (STM32F101xB) && !defined (STM32F101xE) && !defined (STM32F101xG) && !defined (STM32F102x6) && !defined (STM32F102xB) && !defined (STM32F103x6) && \ !defined (STM32F103xB) && !defined (STM32F103xE) && !defined (STM32F103xG) && !defined (STM32F105xC) && !defined (STM32F107xC) /* #define STM32F100xB */ /*!< STM32F100C4, STM32F100R4, STM32F100C6, STM32F100R6, STM32F100C8, STM32F100R8, STM32F100V8, STM32F100CB, STM32F100RB and STM32F100VB */ /* #define STM32F100xE */ /*!< STM32F100RC, STM32F100VC, STM32F100ZC, STM32F100RD, STM32F100VD, STM32F100ZD, STM32F100RE, STM32F100VE and STM32F100ZE */ /* #define STM32F101x6 */ /*!< STM32F101C4, STM32F101R4, STM32F101T4, STM32F101C6, STM32F101R6 and STM32F101T6 Devices */ /* #define STM32F101xB */ /*!< STM32F101C8, STM32F101R8, STM32F101T8, STM32F101V8, STM32F101CB, STM32F101RB, STM32F101TB and STM32F101VB */ /* #define STM32F101xE */ /*!< STM32F101RC, STM32F101VC, STM32F101ZC, STM32F101RD, STM32F101VD, STM32F101ZD, STM32F101RE, STM32F101VE and STM32F101ZE */ /* #define STM32F101xG */ /*!< STM32F101RF, STM32F101VF, STM32F101ZF, STM32F101RG, STM32F101VG and STM32F101ZG */ /* #define STM32F102x6 */ /*!< STM32F102C4, STM32F102R4, STM32F102C6 and STM32F102R6 */ /* #define STM32F102xB */ /*!< STM32F102C8, STM32F102R8, STM32F102CB and STM32F102RB */ /* #define STM32F103x6 */ /*!< STM32F103C4, STM32F103R4, STM32F103T4, STM32F103C6, STM32F103R6 and STM32F103T6 */ /* #define STM32F103xB */ /*!< STM32F103C8, STM32F103R8, STM32F103T8, STM32F103V8, STM32F103CB, STM32F103RB, STM32F103TB and STM32F103VB */ /* #define STM32F103xE */ /*!< STM32F103RC, STM32F103VC, STM32F103ZC, STM32F103RD, STM32F103VD, STM32F103ZD, STM32F103RE, STM32F103VE and STM32F103ZE */ /* #define STM32F103xG */ /*!< STM32F103RF, STM32F103VF, STM32F103ZF, STM32F103RG, STM32F103VG and STM32F103ZG */ /* #define STM32F105xC */ /*!< STM32F105R8, STM32F105V8, STM32F105RB, STM32F105VB, STM32F105RC and STM32F105VC */ /* #define STM32F107xC */ /*!< STM32F107RB, STM32F107VB, STM32F107RC and STM32F107VC */ #endif /* Tip: To avoid modifying this file each time you need to switch between these devices, you can define the device in your toolchain compiler preprocessor. */ #if !defined (USE_HAL_DRIVER) /** * @brief Comment the line below if you will not use the peripherals drivers. In this case, these drivers will not be included and the application code will be based on direct access to peripherals registers */ /*#define USE_HAL_DRIVER */ #endif /* USE_HAL_DRIVER */ /** * @brief CMSIS Device version number V4.3.3 */ #define __STM32F1_CMSIS_VERSION_MAIN (0x04) /*!< [31:24] main version */ #define __STM32F1_CMSIS_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */ #define __STM32F1_CMSIS_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */ #define __STM32F1_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */ #define __STM32F1_CMSIS_VERSION ((__STM32F1_CMSIS_VERSION_MAIN << 24)\ |(__STM32F1_CMSIS_VERSION_SUB1 << 16)\ |(__STM32F1_CMSIS_VERSION_SUB2 << 8 )\ |(__STM32F1_CMSIS_VERSION_RC)) /** * @} */ /** @addtogroup Device_Included * @{ */ #if defined(STM32F100xB) #include "stm32f100xb.h" #elif defined(STM32F100xE) #include "stm32f100xe.h" #elif defined(STM32F101x6) #include "stm32f101x6.h" #elif defined(STM32F101xB) #include "stm32f101xb.h" #elif defined(STM32F101xE) #include "stm32f101xe.h" #elif defined(STM32F101xG) #include "stm32f101xg.h" #elif defined(STM32F102x6) #include "stm32f102x6.h" #elif defined(STM32F102xB) #include "stm32f102xb.h" #elif defined(STM32F103x6) #include "stm32f103x6.h" #elif defined(STM32F103xB) #include "stm32f103xb.h" #elif defined(STM32F103xE) #include "stm32f103xe.h" #elif defined(STM32F103xG) #include "stm32f103xg.h" #elif defined(STM32F105xC) #include "stm32f105xc.h" #elif defined(STM32F107xC) #include "stm32f107xc.h" #else #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)" #endif /** * @} */ /** @addtogroup Exported_types * @{ */ typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus; typedef enum { DISABLE = 0, ENABLE = !DISABLE } FunctionalState; #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) typedef enum { SUCCESS = 0U, ERROR = !SUCCESS } ErrorStatus; /** * @} */ /** @addtogroup Exported_macros * @{ */ #define SET_BIT(REG, BIT) ((REG) |= (BIT)) #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) #define READ_BIT(REG, BIT) ((REG) & (BIT)) #define CLEAR_REG(REG) ((REG) = (0x0)) #define WRITE_REG(REG, VAL) ((REG) = (VAL)) #define READ_REG(REG) ((REG)) #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) /* Use of CMSIS compiler intrinsics for register exclusive access */ /* Atomic 32-bit register access macro to set one or several bits */ #define ATOMIC_SET_BIT(REG, BIT) \ do { \ uint32_t val; \ do { \ val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \ } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \ } while(0) /* Atomic 32-bit register access macro to clear one or several bits */ #define ATOMIC_CLEAR_BIT(REG, BIT) \ do { \ uint32_t val; \ do { \ val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \ } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \ } while(0) /* Atomic 32-bit register access macro to clear and set one or several bits */ #define ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) \ do { \ uint32_t val; \ do { \ val = (__LDREXW((__IO uint32_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \ } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \ } while(0) /* Atomic 16-bit register access macro to set one or several bits */ #define ATOMIC_SETH_BIT(REG, BIT) \ do { \ uint16_t val; \ do { \ val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \ } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \ } while(0) /* Atomic 16-bit register access macro to clear one or several bits */ #define ATOMIC_CLEARH_BIT(REG, BIT) \ do { \ uint16_t val; \ do { \ val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \ } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \ } while(0) /* Atomic 16-bit register access macro to clear and set one or several bits */ #define ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) \ do { \ uint16_t val; \ do { \ val = (__LDREXH((__IO uint16_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \ } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \ } while(0) /** * @} */ #if defined (USE_HAL_DRIVER) #include "stm32f1xx_hal.h" #endif /* USE_HAL_DRIVER */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __STM32F1xx_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h ================================================ /** ****************************************************************************** * @file system_stm32f10x.h * @author MCD Application Team * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File. ****************************************************************************** * @attention * *

© Copyright (c) 2017 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f10x_system * @{ */ /** * @brief Define to prevent recursive inclusion */ #ifndef __SYSTEM_STM32F10X_H #define __SYSTEM_STM32F10X_H #ifdef __cplusplus extern "C" { #endif /** @addtogroup STM32F10x_System_Includes * @{ */ /** * @} */ /** @addtogroup STM32F10x_System_Exported_types * @{ */ extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ extern const uint8_t AHBPrescTable[16U]; /*!< AHB prescalers table values */ extern const uint8_t APBPrescTable[8U]; /*!< APB prescalers table values */ /** * @} */ /** @addtogroup STM32F10x_System_Exported_Constants * @{ */ /** * @} */ /** @addtogroup STM32F10x_System_Exported_Macros * @{ */ /** * @} */ /** @addtogroup STM32F10x_System_Exported_Functions * @{ */ extern void SystemInit(void); extern void SystemCoreClockUpdate(void); /** * @} */ #ifdef __cplusplus } #endif #endif /*__SYSTEM_STM32F10X_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_armcc.h ================================================ [File too large to display: 26.7 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_armclang.h ================================================ /**************************************************************************//** * @file cmsis_armclang.h * @brief CMSIS compiler armclang (Arm Compiler 6) header file * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*lint -esym(9058, IRQn)*/ /* disable MISRA 2012 Rule 2.4 for IRQn */ #ifndef __CMSIS_ARMCLANG_H #define __CMSIS_ARMCLANG_H #pragma clang system_header /* treat file as system include file */ #ifndef __ARM_COMPAT_H #include /* Compatibility header for Arm Compiler 5 intrinsics */ #endif /* CMSIS compiler specific defines */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE __inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static __inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((__noreturn__)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed, aligned(1))) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32 */ struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT16_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_WRITE */ __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT16_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_READ */ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_WRITE */ __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" /*lint -esym(9058, T_UINT32_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_READ */ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #pragma clang diagnostic pop #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions @{ */ /** \brief Enable IRQ Interrupts \details Enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __enable_irq(); see arm_compat.h */ /** \brief Disable IRQ Interrupts \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ /* intrinsic void __disable_irq(); see arm_compat.h */ /** \brief Get Control Register \details Returns the content of the Control Register. \return Control Register value */ __STATIC_FORCEINLINE uint32_t __get_CONTROL(void) { uint32_t result; __ASM volatile ("MRS %0, control" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Control Register (non-secure) \details Returns the content of the non-secure Control Register when in secure mode. \return non-secure Control Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) { uint32_t result; __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Control Register \details Writes the given value to the Control Register. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) { __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Control Register (non-secure) \details Writes the given value to the non-secure Control Register when in secure state. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) { __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); } #endif /** \brief Get IPSR Register \details Returns the content of the IPSR Register. \return IPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_IPSR(void) { uint32_t result; __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); return(result); } /** \brief Get APSR Register \details Returns the content of the APSR Register. \return APSR Register value */ __STATIC_FORCEINLINE uint32_t __get_APSR(void) { uint32_t result; __ASM volatile ("MRS %0, apsr" : "=r" (result) ); return(result); } /** \brief Get xPSR Register \details Returns the content of the xPSR Register. \return xPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_xPSR(void) { uint32_t result; __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); return(result); } /** \brief Get Process Stack Pointer \details Returns the current value of the Process Stack Pointer (PSP). \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __get_PSP(void) { uint32_t result; __ASM volatile ("MRS %0, psp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer (non-secure) \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Process Stack Pointer \details Assigns the given value to the Process Stack Pointer (PSP). \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) { __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) { __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); } #endif /** \brief Get Main Stack Pointer \details Returns the current value of the Main Stack Pointer (MSP). \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __get_MSP(void) { uint32_t result; __ASM volatile ("MRS %0, msp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer (non-secure) \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Main Stack Pointer \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) { __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer (non-secure) \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) { __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); } #endif #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Stack Pointer (non-secure) \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. \return SP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); return(result); } /** \brief Set Stack Pointer (non-secure) \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. \param [in] topOfStack Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) { __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); } #endif /** \brief Get Priority Mask \details Returns the current state of the priority mask bit from the Priority Mask Register. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) { uint32_t result; __ASM volatile ("MRS %0, primask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Priority Mask (non-secure) \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, primask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Priority Mask \details Assigns the given value to the Priority Mask Register. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) { __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Priority Mask (non-secure) \details Assigns the given value to the non-secure Priority Mask Register when in secure state. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) { __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); } #endif #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Enable FIQ \details Enables FIQ interrupts by clearing the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __enable_fault_irq __enable_fiq /* see arm_compat.h */ /** \brief Disable FIQ \details Disables FIQ interrupts by setting the F-bit in the CPSR. Can only be executed in Privileged modes. */ #define __disable_fault_irq __disable_fiq /* see arm_compat.h */ /** \brief Get Base Priority \details Returns the current value of the Base Priority register. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) { uint32_t result; __ASM volatile ("MRS %0, basepri" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Base Priority (non-secure) \details Returns the current value of the non-secure Base Priority register when in secure state. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) { uint32_t result; __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Base Priority \details Assigns the given value to the Base Priority register. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) { __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Base Priority (non-secure) \details Assigns the given value to the non-secure Base Priority register when in secure state. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) { __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); } #endif /** \brief Set Base Priority with condition \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) { __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); } /** \brief Get Fault Mask \details Returns the current value of the Fault Mask register. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Fault Mask (non-secure) \details Returns the current value of the non-secure Fault Mask register when in secure state. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Fault Mask \details Assigns the given value to the Fault Mask register. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) { __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Fault Mask (non-secure) \details Assigns the given value to the non-secure Fault Mask register when in secure state. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) { __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); } #endif #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Get Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); #endif } #endif /** \brief Get Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. \param [in] MainStackPtrLimit Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); #endif } #endif #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /** \brief Get FPSCR \details Returns the current value of the Floating Point Status/Control register. \return Floating Point Status/Control register value */ #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #define __get_FPSCR (uint32_t)__builtin_arm_get_fpscr #else #define __get_FPSCR() ((uint32_t)0U) #endif /** \brief Set FPSCR \details Assigns the given value to the Floating Point Status/Control register. \param [in] fpscr Floating Point Status/Control value to set */ #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #define __set_FPSCR __builtin_arm_set_fpscr #else #define __set_FPSCR(x) ((void)(x)) #endif /*@} end of CMSIS_Core_RegAccFunctions */ /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface Access to dedicated instructions @{ */ /* Define macros for porting to both thumb1 and thumb2. * For thumb1, use low register (r0-r7), specified by constraint "l" * Otherwise, use general registers, specified by constraint "r" */ #if defined (__thumb__) && !defined (__thumb2__) #define __CMSIS_GCC_OUT_REG(r) "=l" (r) #define __CMSIS_GCC_USE_REG(r) "l" (r) #else #define __CMSIS_GCC_OUT_REG(r) "=r" (r) #define __CMSIS_GCC_USE_REG(r) "r" (r) #endif /** \brief No Operation \details No Operation does nothing. This instruction can be used for code alignment purposes. */ #define __NOP __builtin_arm_nop /** \brief Wait For Interrupt \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. */ #define __WFI __builtin_arm_wfi /** \brief Wait For Event \details Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs. */ #define __WFE __builtin_arm_wfe /** \brief Send Event \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. */ #define __SEV __builtin_arm_sev /** \brief Instruction Synchronization Barrier \details Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. */ #define __ISB() __builtin_arm_isb(0xF); /** \brief Data Synchronization Barrier \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ #define __DSB() __builtin_arm_dsb(0xF); /** \brief Data Memory Barrier \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ #define __DMB() __builtin_arm_dmb(0xF); /** \brief Reverse byte order (32 bit) \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. \param [in] value Value to reverse \return Reversed value */ #define __REV(value) __builtin_bswap32(value) /** \brief Reverse byte order (16 bit) \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. \param [in] value Value to reverse \return Reversed value */ #define __REV16(value) __ROR(__REV(value), 16) /** \brief Reverse byte order (16 bit) \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. \param [in] value Value to reverse \return Reversed value */ #define __REVSH(value) (int16_t)__builtin_bswap16(value) /** \brief Rotate Right in unsigned value (32 bit) \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. \param [in] op1 Value to rotate \param [in] op2 Number of Bits to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) { op2 %= 32U; if (op2 == 0U) { return op1; } return (op1 >> op2) | (op1 << (32U - op2)); } /** \brief Breakpoint \details Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached. \param [in] value is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint. */ #define __BKPT(value) __ASM volatile ("bkpt "#value) /** \brief Reverse bit order of value \details Reverses the bit order of the given value. \param [in] value Value to reverse \return Reversed value */ #define __RBIT __builtin_arm_rbit /** \brief Count leading zeros \details Counts the number of leading zeros of a data value. \param [in] value Value to count the leading zeros \return number of leading zeros in value */ #define __CLZ (uint8_t)__builtin_clz #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief LDR Exclusive (8 bit) \details Executes a exclusive LDR instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #define __LDREXB (uint8_t)__builtin_arm_ldrex /** \brief LDR Exclusive (16 bit) \details Executes a exclusive LDR instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #define __LDREXH (uint16_t)__builtin_arm_ldrex /** \brief LDR Exclusive (32 bit) \details Executes a exclusive LDR instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #define __LDREXW (uint32_t)__builtin_arm_ldrex /** \brief STR Exclusive (8 bit) \details Executes a exclusive STR instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXB (uint32_t)__builtin_arm_strex /** \brief STR Exclusive (16 bit) \details Executes a exclusive STR instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXH (uint32_t)__builtin_arm_strex /** \brief STR Exclusive (32 bit) \details Executes a exclusive STR instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STREXW (uint32_t)__builtin_arm_strex /** \brief Remove the exclusive lock \details Removes the exclusive lock which is created by LDREX. */ #define __CLREX __builtin_arm_clrex #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ #define __SSAT __builtin_arm_ssat /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ #define __USAT __builtin_arm_usat /** \brief Rotate Right with Extend (32 bit) \details Moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring. \param [in] value Value to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) { uint32_t result; __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return(result); } /** \brief LDRT Unprivileged (8 bit) \details Executes a Unprivileged LDRT instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (16 bit) \details Executes a Unprivileged LDRT instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (32 bit) \details Executes a Unprivileged LDRT instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief STRT Unprivileged (8 bit) \details Executes a Unprivileged STRT instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (16 bit) \details Executes a Unprivileged STRT instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (32 bit) \details Executes a Unprivileged STRT instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); } #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Load-Acquire (8 bit) \details Executes a LDAB instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire (16 bit) \details Executes a LDAH instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire (32 bit) \details Executes a LDA instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release (8 bit) \details Executes a STLB instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (16 bit) \details Executes a STLH instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (32 bit) \details Executes a STL instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Load-Acquire Exclusive (8 bit) \details Executes a LDAB exclusive instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ #define __LDAEXB (uint8_t)__builtin_arm_ldaex /** \brief Load-Acquire Exclusive (16 bit) \details Executes a LDAH exclusive instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ #define __LDAEXH (uint16_t)__builtin_arm_ldaex /** \brief Load-Acquire Exclusive (32 bit) \details Executes a LDA exclusive instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ #define __LDAEX (uint32_t)__builtin_arm_ldaex /** \brief Store-Release Exclusive (8 bit) \details Executes a STLB exclusive instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEXB (uint32_t)__builtin_arm_stlex /** \brief Store-Release Exclusive (16 bit) \details Executes a STLH exclusive instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEXH (uint32_t)__builtin_arm_stlex /** \brief Store-Release Exclusive (32 bit) \details Executes a STL exclusive instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ #define __STLEX (uint32_t)__builtin_arm_stlex #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /* ################### Compiler specific Intrinsics ########################### */ /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics Access to dedicated SIMD instructions @{ */ #if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) __STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } #define __SSAT16(ARG1,ARG2) \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) #define __USAT16(ARG1,ARG2) \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) __STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } #if 0 #define __PKHBT(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #define __PKHTB(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ if (ARG3 == 0) \ __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ else \ __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #endif #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) { int32_t result; __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); return(result); } #endif /* (__ARM_FEATURE_DSP == 1) */ /*@} end of group CMSIS_SIMD_intrinsics */ #endif /* __CMSIS_ARMCLANG_H */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_compiler.h ================================================ /**************************************************************************//** * @file cmsis_compiler.h * @brief CMSIS compiler generic header file * @version V5.0.4 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __CMSIS_COMPILER_H #define __CMSIS_COMPILER_H #include /* * Arm Compiler 4/5 */ #if defined ( __CC_ARM ) #include "cmsis_armcc.h" /* * Arm Compiler 6 (armclang) */ #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #include "cmsis_armclang.h" /* * GNU Compiler */ #elif defined ( __GNUC__ ) #include "cmsis_gcc.h" /* * IAR Compiler */ #elif defined ( __ICCARM__ ) #include /* * TI Arm Compiler */ #elif defined ( __TI_ARM__ ) #include #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((noreturn)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed)) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed)) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed)) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif /* * TASKING Compiler */ #elif defined ( __TASKING__ ) /* * The CMSIS functions have been implemented as intrinsics in the compiler. * Please use "carm -?i" to get an up to date list of all intrinsics, * Including the CMSIS ones. */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((noreturn)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __packed__ #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __packed__ #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __packed__ #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ struct __packed__ T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __align(x) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif /* * COSMIC Compiler */ #elif defined ( __CSMC__ ) #include #ifndef __ASM #define __ASM _asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __STATIC_INLINE #endif #ifndef __NO_RETURN // NO RETURN is automatically detected hence no warning here #define __NO_RETURN #endif #ifndef __USED #warning No compiler specific solution for __USED. __USED is ignored. #define __USED #endif #ifndef __WEAK #define __WEAK __weak #endif #ifndef __PACKED #define __PACKED @packed #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT @packed struct #endif #ifndef __PACKED_UNION #define __PACKED_UNION @packed union #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ @packed struct T_UINT32 { uint32_t v; }; #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored. #define __ALIGNED(x) #endif #ifndef __RESTRICT #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. #define __RESTRICT #endif #else #error Unknown compiler. #endif #endif /* __CMSIS_COMPILER_H */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_gcc.h ================================================ /**************************************************************************//** * @file cmsis_gcc.h * @brief CMSIS compiler GCC header file * @version V5.0.4 * @date 09. April 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __CMSIS_GCC_H #define __CMSIS_GCC_H /* ignore some GCC warnings */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsign-conversion" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wunused-parameter" /* Fallback for __has_builtin */ #ifndef __has_builtin #define __has_builtin(x) (0) #endif /* CMSIS compiler specific defines */ #ifndef __ASM #define __ASM __asm #endif #ifndef __INLINE #define __INLINE inline #endif #ifndef __STATIC_INLINE #define __STATIC_INLINE static inline #endif #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline #endif #ifndef __NO_RETURN #define __NO_RETURN __attribute__((__noreturn__)) #endif #ifndef __USED #define __USED __attribute__((used)) #endif #ifndef __WEAK #define __WEAK __attribute__((weak)) #endif #ifndef __PACKED #define __PACKED __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_STRUCT #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) #endif #ifndef __PACKED_UNION #define __PACKED_UNION union __attribute__((packed, aligned(1))) #endif #ifndef __UNALIGNED_UINT32 /* deprecated */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" struct __attribute__((packed)) T_UINT32 { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) #endif #ifndef __UNALIGNED_UINT16_WRITE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT16_READ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) #endif #ifndef __UNALIGNED_UINT32_WRITE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) #endif #ifndef __UNALIGNED_UINT32_READ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wattributes" __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; #pragma GCC diagnostic pop #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) #endif #ifndef __ALIGNED #define __ALIGNED(x) __attribute__((aligned(x))) #endif #ifndef __RESTRICT #define __RESTRICT __restrict #endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions @{ */ /** \brief Enable IRQ Interrupts \details Enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __enable_irq(void) { __ASM volatile ("cpsie i" : : : "memory"); } /** \brief Disable IRQ Interrupts \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); } /** \brief Get Control Register \details Returns the content of the Control Register. \return Control Register value */ __STATIC_FORCEINLINE uint32_t __get_CONTROL(void) { uint32_t result; __ASM volatile ("MRS %0, control" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Control Register (non-secure) \details Returns the content of the non-secure Control Register when in secure mode. \return non-secure Control Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) { uint32_t result; __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Control Register \details Writes the given value to the Control Register. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) { __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Control Register (non-secure) \details Writes the given value to the non-secure Control Register when in secure state. \param [in] control Control Register value to set */ __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) { __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); } #endif /** \brief Get IPSR Register \details Returns the content of the IPSR Register. \return IPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_IPSR(void) { uint32_t result; __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); return(result); } /** \brief Get APSR Register \details Returns the content of the APSR Register. \return APSR Register value */ __STATIC_FORCEINLINE uint32_t __get_APSR(void) { uint32_t result; __ASM volatile ("MRS %0, apsr" : "=r" (result) ); return(result); } /** \brief Get xPSR Register \details Returns the content of the xPSR Register. \return xPSR Register value */ __STATIC_FORCEINLINE uint32_t __get_xPSR(void) { uint32_t result; __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); return(result); } /** \brief Get Process Stack Pointer \details Returns the current value of the Process Stack Pointer (PSP). \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __get_PSP(void) { uint32_t result; __ASM volatile ("MRS %0, psp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer (non-secure) \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. \return PSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Process Stack Pointer \details Assigns the given value to the Process Stack Pointer (PSP). \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) { __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. \param [in] topOfProcStack Process Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) { __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); } #endif /** \brief Get Main Stack Pointer \details Returns the current value of the Main Stack Pointer (MSP). \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __get_MSP(void) { uint32_t result; __ASM volatile ("MRS %0, msp" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer (non-secure) \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. \return MSP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Main Stack Pointer \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) { __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer (non-secure) \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) { __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); } #endif #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Stack Pointer (non-secure) \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. \return SP Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) { uint32_t result; __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); return(result); } /** \brief Set Stack Pointer (non-secure) \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. \param [in] topOfStack Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) { __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); } #endif /** \brief Get Priority Mask \details Returns the current state of the priority mask bit from the Priority Mask Register. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) { uint32_t result; __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory"); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Priority Mask (non-secure) \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. \return Priority Mask value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory"); return(result); } #endif /** \brief Set Priority Mask \details Assigns the given value to the Priority Mask Register. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) { __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Priority Mask (non-secure) \details Assigns the given value to the non-secure Priority Mask Register when in secure state. \param [in] priMask Priority Mask */ __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) { __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); } #endif #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Enable FIQ \details Enables FIQ interrupts by clearing the F-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __enable_fault_irq(void) { __ASM volatile ("cpsie f" : : : "memory"); } /** \brief Disable FIQ \details Disables FIQ interrupts by setting the F-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_fault_irq(void) { __ASM volatile ("cpsid f" : : : "memory"); } /** \brief Get Base Priority \details Returns the current value of the Base Priority register. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) { uint32_t result; __ASM volatile ("MRS %0, basepri" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Base Priority (non-secure) \details Returns the current value of the non-secure Base Priority register when in secure state. \return Base Priority register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) { uint32_t result; __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Base Priority \details Assigns the given value to the Base Priority register. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) { __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Base Priority (non-secure) \details Assigns the given value to the non-secure Base Priority register when in secure state. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) { __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); } #endif /** \brief Set Base Priority with condition \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. \param [in] basePri Base Priority value to set */ __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) { __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); } /** \brief Get Fault Mask \details Returns the current value of the Fault Mask register. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); return(result); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Fault Mask (non-secure) \details Returns the current value of the non-secure Fault Mask register when in secure state. \return Fault Mask register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) { uint32_t result; __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); return(result); } #endif /** \brief Set Fault Mask \details Assigns the given value to the Fault Mask register. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) { __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Fault Mask (non-secure) \details Assigns the given value to the non-secure Fault Mask register when in secure state. \param [in] faultMask Fault Mask value to set */ __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) { __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); } #endif #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Get Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Process Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \return PSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Process Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Process Stack Pointer (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure PSPLIM is RAZ/WI (void)ProcStackPtrLimit; #else __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); #endif } #endif /** \brief Get Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim" : "=r" (result) ); return result; #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Get Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. \return MSPLIM Register value */ __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI return 0U; #else uint32_t result; __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); return result; #endif } #endif /** \brief Set Main Stack Pointer Limit Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set */ __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); #endif } #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) /** \brief Set Main Stack Pointer Limit (non-secure) Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored. \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. \param [in] MainStackPtrLimit Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) { #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) // without main extensions, the non-secure MSPLIM is RAZ/WI (void)MainStackPtrLimit; #else __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); #endif } #endif #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /** \brief Get FPSCR \details Returns the current value of the Floating Point Status/Control register. \return Floating Point Status/Control register value */ __STATIC_FORCEINLINE uint32_t __get_FPSCR(void) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #if __has_builtin(__builtin_arm_get_fpscr) // Re-enable using built-in when GCC has been fixed // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ return __builtin_arm_get_fpscr(); #else uint32_t result; __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); return(result); #endif #else return(0U); #endif } /** \brief Set FPSCR \details Assigns the given value to the Floating Point Status/Control register. \param [in] fpscr Floating Point Status/Control value to set */ __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr) { #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) #if __has_builtin(__builtin_arm_set_fpscr) // Re-enable using built-in when GCC has been fixed // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ __builtin_arm_set_fpscr(fpscr); #else __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory"); #endif #else (void)fpscr; #endif } /*@} end of CMSIS_Core_RegAccFunctions */ /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface Access to dedicated instructions @{ */ /* Define macros for porting to both thumb1 and thumb2. * For thumb1, use low register (r0-r7), specified by constraint "l" * Otherwise, use general registers, specified by constraint "r" */ #if defined (__thumb__) && !defined (__thumb2__) #define __CMSIS_GCC_OUT_REG(r) "=l" (r) #define __CMSIS_GCC_RW_REG(r) "+l" (r) #define __CMSIS_GCC_USE_REG(r) "l" (r) #else #define __CMSIS_GCC_OUT_REG(r) "=r" (r) #define __CMSIS_GCC_RW_REG(r) "+r" (r) #define __CMSIS_GCC_USE_REG(r) "r" (r) #endif /** \brief No Operation \details No Operation does nothing. This instruction can be used for code alignment purposes. */ #define __NOP() __ASM volatile ("nop") /** \brief Wait For Interrupt \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. */ #define __WFI() __ASM volatile ("wfi") /** \brief Wait For Event \details Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs. */ #define __WFE() __ASM volatile ("wfe") /** \brief Send Event \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. */ #define __SEV() __ASM volatile ("sev") /** \brief Instruction Synchronization Barrier \details Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. */ __STATIC_FORCEINLINE void __ISB(void) { __ASM volatile ("isb 0xF":::"memory"); } /** \brief Data Synchronization Barrier \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ __STATIC_FORCEINLINE void __DSB(void) { __ASM volatile ("dsb 0xF":::"memory"); } /** \brief Data Memory Barrier \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ __STATIC_FORCEINLINE void __DMB(void) { __ASM volatile ("dmb 0xF":::"memory"); } /** \brief Reverse byte order (32 bit) \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __REV(uint32_t value) { #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) return __builtin_bswap32(value); #else uint32_t result; __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; #endif } /** \brief Reverse byte order (16 bit) \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value) { uint32_t result; __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; } /** \brief Reverse byte order (16 bit) \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE int16_t __REVSH(int16_t value) { #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) return (int16_t)__builtin_bswap16(value); #else int16_t result; __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return result; #endif } /** \brief Rotate Right in unsigned value (32 bit) \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. \param [in] op1 Value to rotate \param [in] op2 Number of Bits to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) { op2 %= 32U; if (op2 == 0U) { return op1; } return (op1 >> op2) | (op1 << (32U - op2)); } /** \brief Breakpoint \details Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached. \param [in] value is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint. */ #define __BKPT(value) __ASM volatile ("bkpt "#value) /** \brief Reverse bit order of value \details Reverses the bit order of the given value. \param [in] value Value to reverse \return Reversed value */ __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value) { uint32_t result; #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); #else uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */ result = value; /* r will be reversed bits of v; first get LSB of v */ for (value >>= 1U; value != 0U; value >>= 1U) { result <<= 1U; result |= value & 1U; s--; } result <<= s; /* shift when v's highest bits are zero */ #endif return result; } /** \brief Count leading zeros \details Counts the number of leading zeros of a data value. \param [in] value Value to count the leading zeros \return number of leading zeros in value */ #define __CLZ (uint8_t)__builtin_clz #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief LDR Exclusive (8 bit) \details Executes a exclusive LDR instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); #endif return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDR Exclusive (16 bit) \details Executes a exclusive LDR instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); #endif return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDR Exclusive (32 bit) \details Executes a exclusive LDR instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) { uint32_t result; __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); return(result); } /** \brief STR Exclusive (8 bit) \details Executes a exclusive STR instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) { uint32_t result; __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); return(result); } /** \brief STR Exclusive (16 bit) \details Executes a exclusive STR instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) { uint32_t result; __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); return(result); } /** \brief STR Exclusive (32 bit) \details Executes a exclusive STR instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) { uint32_t result; __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); return(result); } /** \brief Remove the exclusive lock \details Removes the exclusive lock which is created by LDREX. */ __STATIC_FORCEINLINE void __CLREX(void) { __ASM volatile ("clrex" ::: "memory"); } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) /** \brief Signed Saturate \details Saturates a signed value. \param [in] ARG1 Value to be saturated \param [in] ARG2 Bit position to saturate to (1..32) \return Saturated value */ #define __SSAT(ARG1,ARG2) \ __extension__ \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] ARG1 Value to be saturated \param [in] ARG2 Bit position to saturate to (0..31) \return Saturated value */ #define __USAT(ARG1,ARG2) \ __extension__ \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) /** \brief Rotate Right with Extend (32 bit) \details Moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring. \param [in] value Value to rotate \return Rotated value */ __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) { uint32_t result; __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); return(result); } /** \brief LDRT Unprivileged (8 bit) \details Executes a Unprivileged LDRT instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrbt %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); #endif return ((uint8_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (16 bit) \details Executes a Unprivileged LDRT instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) { uint32_t result; #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); #else /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not accepted by assembler. So has to use following less efficient pattern. */ __ASM volatile ("ldrht %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); #endif return ((uint16_t) result); /* Add explicit type cast here */ } /** \brief LDRT Unprivileged (32 bit) \details Executes a Unprivileged LDRT instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief STRT Unprivileged (8 bit) \details Executes a Unprivileged STRT instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (16 bit) \details Executes a Unprivileged STRT instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief STRT Unprivileged (32 bit) \details Executes a Unprivileged STRT instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); } #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ /** \brief Signed Saturate \details Saturates a signed value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (1..32) \return Saturated value */ __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) { if ((sat >= 1U) && (sat <= 32U)) { const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); const int32_t min = -1 - max ; if (val > max) { return max; } else if (val < min) { return min; } } return val; } /** \brief Unsigned Saturate \details Saturates an unsigned value. \param [in] value Value to be saturated \param [in] sat Bit position to saturate to (0..31) \return Saturated value */ __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) { if (sat <= 31U) { const uint32_t max = ((1U << sat) - 1U); if (val > (int32_t)max) { return max; } else if (val < 0) { return 0U; } } return (uint32_t)val; } #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) /** \brief Load-Acquire (8 bit) \details Executes a LDAB instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire (16 bit) \details Executes a LDAH instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire (32 bit) \details Executes a LDA instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release (8 bit) \details Executes a STLB instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) { __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (16 bit) \details Executes a STLH instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) { __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Store-Release (32 bit) \details Executes a STL instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location */ __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) { __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); } /** \brief Load-Acquire Exclusive (8 bit) \details Executes a LDAB exclusive instruction for 8 bit value. \param [in] ptr Pointer to data \return value of type uint8_t at (*ptr) */ __STATIC_FORCEINLINE uint8_t __LDAEXB(volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("ldaexb %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint8_t) result); } /** \brief Load-Acquire Exclusive (16 bit) \details Executes a LDAH exclusive instruction for 16 bit values. \param [in] ptr Pointer to data \return value of type uint16_t at (*ptr) */ __STATIC_FORCEINLINE uint16_t __LDAEXH(volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("ldaexh %0, %1" : "=r" (result) : "Q" (*ptr) ); return ((uint16_t) result); } /** \brief Load-Acquire Exclusive (32 bit) \details Executes a LDA exclusive instruction for 32 bit values. \param [in] ptr Pointer to data \return value of type uint32_t at (*ptr) */ __STATIC_FORCEINLINE uint32_t __LDAEX(volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("ldaex %0, %1" : "=r" (result) : "Q" (*ptr) ); return(result); } /** \brief Store-Release Exclusive (8 bit) \details Executes a STLB exclusive instruction for 8 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) { uint32_t result; __ASM volatile ("stlexb %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } /** \brief Store-Release Exclusive (16 bit) \details Executes a STLH exclusive instruction for 16 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) { uint32_t result; __ASM volatile ("stlexh %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } /** \brief Store-Release Exclusive (32 bit) \details Executes a STL exclusive instruction for 32 bit values. \param [in] value Value to store \param [in] ptr Pointer to location \return 0 Function succeeded \return 1 Function failed */ __STATIC_FORCEINLINE uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) { uint32_t result; __ASM volatile ("stlex %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); return(result); } #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /* ################### Compiler specific Intrinsics ########################### */ /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics Access to dedicated SIMD instructions @{ */ #if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) __STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } #define __SSAT16(ARG1,ARG2) \ ({ \ int32_t __RES, __ARG1 = (ARG1); \ __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) #define __USAT16(ARG1,ARG2) \ ({ \ uint32_t __RES, __ARG1 = (ARG1); \ __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ __RES; \ }) __STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) { uint32_t result; __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); return(result); } __STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) { uint32_t result; __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); return(result); } __STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) { union llreg_u{ uint32_t w32[2]; uint64_t w64; } llr; llr.w64 = acc; #ifndef __ARMEB__ /* Little endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); #else /* Big endian */ __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); #endif return(llr.w64); } __STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) { uint32_t result; __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } __STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) { int32_t result; __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); return(result); } #if 0 #define __PKHBT(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #define __PKHTB(ARG1,ARG2,ARG3) \ ({ \ uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ if (ARG3 == 0) \ __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ else \ __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ __RES; \ }) #endif #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) { int32_t result; __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); return(result); } #endif /* (__ARM_FEATURE_DSP == 1) */ /*@} end of group CMSIS_SIMD_intrinsics */ #pragma GCC diagnostic pop #endif /* __CMSIS_GCC_H */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_iccarm.h ================================================ [File too large to display: 26.8 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/cmsis_version.h ================================================ /**************************************************************************//** * @file cmsis_version.h * @brief CMSIS Core(M) Version definitions * @version V5.0.2 * @date 19. April 2017 ******************************************************************************/ /* * Copyright (c) 2009-2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CMSIS_VERSION_H #define __CMSIS_VERSION_H /* CMSIS Version definitions */ #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */ #define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */ #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \ __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */ #endif ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_armv8mbl.h ================================================ [File too large to display: 93.8 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_armv8mml.h ================================================ [File too large to display: 162.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm0.h ================================================ /**************************************************************************//** * @file core_cm0.h * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File * @version V5.0.5 * @date 28. May 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM0_H_GENERIC #define __CORE_CM0_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M0 @{ */ #include "cmsis_version.h" /* CMSIS CM0 definitions */ #define __CM0_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM0_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16U) | \ __CM0_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (0U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM0_H_DEPENDANT #define __CORE_CM0_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM0_REV #define __CM0_REV 0x0000U #warning "__CM0_REV not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M0 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t _reserved0:1; /*!< bit: 0 Reserved */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ uint32_t RESERVED0; __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M0 header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0 */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. Address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)0x0U; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)0x0U; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm0plus.h ================================================ /**************************************************************************//** * @file core_cm0plus.h * @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File * @version V5.0.6 * @date 28. May 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM0PLUS_H_GENERIC #define __CORE_CM0PLUS_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex-M0+ @{ */ #include "cmsis_version.h" /* CMSIS CM0+ definitions */ #define __CM0PLUS_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM0PLUS_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM0PLUS_CMSIS_VERSION ((__CM0PLUS_CMSIS_VERSION_MAIN << 16U) | \ __CM0PLUS_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (0U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0PLUS_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM0PLUS_H_DEPENDANT #define __CORE_CM0PLUS_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM0PLUS_REV #define __CM0PLUS_REV 0x0000U #warning "__CM0PLUS_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT 0U #warning "__VTOR_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex-M0+ */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ #else uint32_t RESERVED0; #endif __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) /* SCB Interrupt Control State Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 8U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0xFFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 1U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 8U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M0+ Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M0+ header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0+ */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM0PLUS_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm1.h ================================================ /**************************************************************************//** * @file core_cm1.h * @brief CMSIS Cortex-M1 Core Peripheral Access Layer Header File * @version V1.0.0 * @date 23. July 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM1_H_GENERIC #define __CORE_CM1_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M1 @{ */ #include "cmsis_version.h" /* CMSIS CM1 definitions */ #define __CM1_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM1_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM1_CMSIS_VERSION ((__CM1_CMSIS_VERSION_MAIN << 16U) | \ __CM1_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (1U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM1_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM1_H_DEPENDANT #define __CORE_CM1_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM1_REV #define __CM1_REV 0x0100U #warning "__CM1_REV not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M1 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t _reserved0:1; /*!< bit: 0 Reserved */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[31U]; __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[31U]; __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[31U]; __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[31U]; uint32_t RESERVED4[64U]; __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ uint32_t RESERVED0; __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[2U]; __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ } SCnSCB_Type; /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_ITCMUAEN_Pos 4U /*!< ACTLR: Instruction TCM Upper Alias Enable Position */ #define SCnSCB_ACTLR_ITCMUAEN_Msk (1UL << SCnSCB_ACTLR_ITCMUAEN_Pos) /*!< ACTLR: Instruction TCM Upper Alias Enable Mask */ #define SCnSCB_ACTLR_ITCMLAEN_Pos 3U /*!< ACTLR: Instruction TCM Lower Alias Enable Position */ #define SCnSCB_ACTLR_ITCMLAEN_Msk (1UL << SCnSCB_ACTLR_ITCMLAEN_Pos) /*!< ACTLR: Instruction TCM Lower Alias Enable Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Cortex-M1 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. Therefore they are not covered by the Cortex-M1 header file. @{ */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ /*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M1 */ #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. Address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)0x0U; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)0x0U; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM1_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm23.h ================================================ /**************************************************************************//** * @file core_cm23.h * @brief CMSIS Cortex-M23 Core Peripheral Access Layer Header File * @version V5.0.7 * @date 22. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM23_H_GENERIC #define __CORE_CM23_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M23 @{ */ #include "cmsis_version.h" /* CMSIS definitions */ #define __CM23_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM23_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM23_CMSIS_VERSION ((__CM23_CMSIS_VERSION_MAIN << 16U) | \ __CM23_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (23U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM23_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM23_H_DEPENDANT #define __CORE_CM23_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM23_REV #define __CM23_REV 0x0000U #warning "__CM23_REV not defined in device header file; using default!" #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT 0U #warning "__FPU_PRESENT not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT 0U #warning "__SAUREGION_PRESENT not defined in device header file; using default!" #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT 0U #warning "__VTOR_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 2U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #ifndef __ETM_PRESENT #define __ETM_PRESENT 0U #warning "__ETM_PRESENT not defined in device header file; using default!" #endif #ifndef __MTB_PRESENT #define __MTB_PRESENT 0U #warning "__MTB_PRESENT not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M23 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register - Core SAU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[16U]; __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[16U]; __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[16U]; __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[16U]; __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[16U]; __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ uint32_t RESERVED5[16U]; __IOM uint32_t IPR[124U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ } NVIC_Type; /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ #else uint32_t RESERVED0; #endif __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ uint32_t RESERVED1; __IOM uint32_t SHPR[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ #define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ #define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ #define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ #define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ #define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ #define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) /* SCB Vector Table Offset Register Definitions */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ #define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ #define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ #define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ #define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ #define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ #define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ #define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ #define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ #define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ #define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ #define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ #define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ #define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ #define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ #define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ #define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ #define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ uint32_t RESERVED0[6U]; __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ uint32_t RESERVED1[1U]; __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ uint32_t RESERVED3[1U]; __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED4[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ uint32_t RESERVED5[1U]; __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED6[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ uint32_t RESERVED7[1U]; __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ uint32_t RESERVED8[1U]; __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ uint32_t RESERVED9[1U]; __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ uint32_t RESERVED10[1U]; __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ uint32_t RESERVED11[1U]; __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ uint32_t RESERVED12[1U]; __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ uint32_t RESERVED13[1U]; __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ uint32_t RESERVED14[1U]; __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ uint32_t RESERVED15[1U]; __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ uint32_t RESERVED16[1U]; __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ uint32_t RESERVED17[1U]; __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ uint32_t RESERVED18[1U]; __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ uint32_t RESERVED19[1U]; __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ uint32_t RESERVED20[1U]; __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ uint32_t RESERVED21[1U]; __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ uint32_t RESERVED22[1U]; __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ uint32_t RESERVED23[1U]; __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ uint32_t RESERVED24[1U]; __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ uint32_t RESERVED25[1U]; __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ uint32_t RESERVED26[1U]; __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ uint32_t RESERVED27[1U]; __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ uint32_t RESERVED28[1U]; __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ uint32_t RESERVED29[1U]; __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ uint32_t RESERVED30[1U]; __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ uint32_t RESERVED31[1U]; __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ #define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ #define DWT_FUNCTION_ACTION_Msk (0x3UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ #define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ #define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ #define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration Test FIFO Test Data 0 Register Definitions */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ #define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ #define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ #define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ #define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ #define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ #define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ #define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ #define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ /* TPI Integration Test ATB Control Register 2 Register Definitions */ #define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ #define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ #define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ #define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ #define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ #define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ #define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ #define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ /* TPI Integration Test FIFO Test Data 1 Register Definitions */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ #define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ #define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ #define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ #define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ #define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ #define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ #define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ #define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ #define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ /* TPI Integration Test ATB Control Register 0 Definitions */ #define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ #define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ #define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ #define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ #define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ #define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ #define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ #define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ #define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ uint32_t RESERVED0[7U]; union { __IOM uint32_t MAIR[2]; struct { __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ }; }; } MPU_Type; #define MPU_TYPE_RALIASES 1U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ #define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ #define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ #define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ #define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ #define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ #define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ #define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ /* MPU Region Limit Address Register Definitions */ #define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ #define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ #define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ #define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ #define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: EN Position */ #define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: EN Mask */ /* MPU Memory Attribute Indirection Register 0 Definitions */ #define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ #define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ #define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ #define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ #define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ #define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ #define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ #define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ /* MPU Memory Attribute Indirection Register 1 Definitions */ #define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ #define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ #define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ #define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ #define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ #define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ #define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ #define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ /*@} end of group CMSIS_MPU */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \ingroup CMSIS_core_register \defgroup CMSIS_SAU Security Attribution Unit (SAU) \brief Type definitions for the Security Attribution Unit (SAU) @{ */ /** \brief Structure type to access the Security Attribution Unit (SAU). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ #endif } SAU_Type; /* SAU Control Register Definitions */ #define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ #define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ #define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ #define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ /* SAU Type Register Definitions */ #define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ #define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) /* SAU Region Number Register Definitions */ #define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ #define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ /* SAU Region Base Address Register Definitions */ #define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ #define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ /* SAU Region Limit Address Register Definitions */ #define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ #define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ #define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ #define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ #define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ #define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ /*@} end of group CMSIS_SAU */ #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ uint32_t RESERVED4[1U]; __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ #define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register */ #define CoreDebug_DEMCR_DWTENA_Pos 24U /*!< CoreDebug DEMCR: DWTENA Position */ #define CoreDebug_DEMCR_DWTENA_Msk (1UL << CoreDebug_DEMCR_DWTENA_Pos) /*!< CoreDebug DEMCR: DWTENA Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /* Debug Authentication Control Register Definitions */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ #define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ #define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ #define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ /* Debug Security Control and Status Register Definitions */ #define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ #define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ #define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ #define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ #define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ #define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ #endif #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ #endif #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else /*#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping not available for Cortex-M23 */ /*#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping not available for Cortex-M23 */ #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* Special LR values for Secure/Non-Secure call handling and exception handling */ /* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ #define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ /* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ #define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ #define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ #define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ #define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ #define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ #define EXC_RETURN_SPSEL (0x00000002UL) /* bit [1] stack pointer used to restore context: 0=MSP 1=PSP */ #define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ /* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ #define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ #else #define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ #endif /* Interrupt Priorities are WORD accessible only under Armv6-M */ /* The following MACROS handle generation of the register offset and byte masks */ #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) #define __NVIC_SetPriorityGrouping(X) (void)(X) #define __NVIC_GetPriorityGrouping() (0U) /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Get Interrupt Target State \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure \return 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Target State \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Clear Interrupt Target State \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 if interrupt is assigned to Secure 1 if interrupt is assigned to Non Secure \note IRQn must not be negative. */ __STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk); __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable Interrupt (non-secure) \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status (non-secure) \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt (non-secure) \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Pending Interrupt (non-secure) \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt (non-secure) \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt (non-secure) \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt (non-secure) \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority (non-secure) \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every non-secure processor exception. */ __STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC_NS->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC_NS->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } else { SCB_NS->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB_NS->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } /** \brief Get Interrupt Priority (non-secure) \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC_NS->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } else { return((uint32_t)(((SCB_NS->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); } } #endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv8.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ########################## SAU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SAUFunctions SAU Functions \brief Functions that configure the SAU. @{ */ #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief Enable SAU \details Enables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Enable(void) { SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); } /** \brief Disable SAU \details Disables the Security Attribution Unit (SAU). */ __STATIC_INLINE void TZ_SAU_Disable(void) { SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ /*@} end of CMSIS_Core_SAUFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) /** \brief System Tick Configuration (non-secure) \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function TZ_SysTick_Config_NS is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ #endif /*@} end of CMSIS_Core_SysTickFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM23_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm3.h ================================================ /**************************************************************************//** * @file core_cm3.h * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File * @version V5.0.8 * @date 04. June 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if defined ( __ICCARM__ ) #pragma system_include /* treat file as system include file for MISRA check */ #elif defined (__clang__) #pragma clang system_header /* treat file as system include file */ #endif #ifndef __CORE_CM3_H_GENERIC #define __CORE_CM3_H_GENERIC #include #ifdef __cplusplus extern "C" { #endif /** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions CMSIS violates the following MISRA-C:2004 rules: \li Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'. \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers. \li Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code. */ /******************************************************************************* * CMSIS definitions ******************************************************************************/ /** \ingroup Cortex_M3 @{ */ #include "cmsis_version.h" /* CMSIS CM3 definitions */ #define __CM3_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ #define __CM3_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ #define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16U) | \ __CM3_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ #define __CORTEX_M (3U) /*!< Cortex-M Core */ /** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all */ #define __FPU_USED 0U #if defined ( __CC_ARM ) #if defined __TARGET_FPU_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #if defined __ARM_PCS_VFP #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __GNUC__ ) #if defined (__VFP_FP__) && !defined(__SOFTFP__) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __ICCARM__ ) #if defined __ARMVFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TI_ARM__ ) #if defined __TI_VFP_SUPPORT__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __TASKING__ ) #if defined __FPU_VFP__ #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #elif defined ( __CSMC__ ) #if ( __CSMC__ & 0x400U) #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #endif #endif #include "cmsis_compiler.h" /* CMSIS compiler specific defines */ #ifdef __cplusplus } #endif #endif /* __CORE_CM3_H_GENERIC */ #ifndef __CMSIS_GENERIC #ifndef __CORE_CM3_H_DEPENDANT #define __CORE_CM3_H_DEPENDANT #ifdef __cplusplus extern "C" { #endif /* check device defines and use defaults */ #if defined __CHECK_DEVICE_DEFINES #ifndef __CM3_REV #define __CM3_REV 0x0200U #warning "__CM3_REV not defined in device header file; using default!" #endif #ifndef __MPU_PRESENT #define __MPU_PRESENT 0U #warning "__MPU_PRESENT not defined in device header file; using default!" #endif #ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif #ifndef __Vendor_SysTickConfig #define __Vendor_SysTickConfig 0U #warning "__Vendor_SysTickConfig not defined in device header file; using default!" #endif #endif /* IO definitions (access restrictions to peripheral registers) */ /** \defgroup CMSIS_glob_defs CMSIS Global Defines IO Type Qualifiers are used \li to specify the access to peripheral variables. \li for automatic generation of peripheral register debug information. */ #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile /*!< Defines 'write only' permissions */ #define __IO volatile /*!< Defines 'read / write' permissions */ /* following defines should be used for structure members */ #define __IM volatile const /*! Defines 'read only' structure member permissions */ #define __OM volatile /*! Defines 'write only' structure member permissions */ #define __IOM volatile /*! Defines 'read / write' structure member permissions */ /*@} end of group Cortex_M3 */ /******************************************************************************* * Register Abstraction Core Register contain: - Core Register - Core NVIC Register - Core SCB Register - Core SysTick Register - Core Debug Register - Core MPU Register ******************************************************************************/ /** \defgroup CMSIS_core_register Defines and Type Definitions \brief Type definitions and defines for Cortex-M processor based devices. */ /** \ingroup CMSIS_core_register \defgroup CMSIS_CORE Status and Control Registers \brief Core Register type definitions. @{ */ /** \brief Union type to access the Application Program Status Register (APSR). */ typedef union { struct { uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } APSR_Type; /* APSR Register Definitions */ #define APSR_N_Pos 31U /*!< APSR: N Position */ #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ #define APSR_Z_Pos 30U /*!< APSR: Z Position */ #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ #define APSR_C_Pos 29U /*!< APSR: C Position */ #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ #define APSR_V_Pos 28U /*!< APSR: V Position */ #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ #define APSR_Q_Pos 27U /*!< APSR: Q Position */ #define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ /** \brief Union type to access the Interrupt Program Status Register (IPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } IPSR_Type; /* IPSR Register Definitions */ #define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ /** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). */ typedef union { struct { uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ uint32_t _reserved0:1; /*!< bit: 9 Reserved */ uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ uint32_t _reserved1:8; /*!< bit: 16..23 Reserved */ uint32_t T:1; /*!< bit: 24 Thumb bit */ uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ uint32_t C:1; /*!< bit: 29 Carry condition code flag */ uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ uint32_t N:1; /*!< bit: 31 Negative condition code flag */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } xPSR_Type; /* xPSR Register Definitions */ #define xPSR_N_Pos 31U /*!< xPSR: N Position */ #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ #define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ #define xPSR_C_Pos 29U /*!< xPSR: C Position */ #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ #define xPSR_V_Pos 28U /*!< xPSR: V Position */ #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ #define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ #define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ #define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ #define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ #define xPSR_T_Pos 24U /*!< xPSR: T Position */ #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ #define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ #define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ #define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ /** \brief Union type to access the Control Registers (CONTROL). */ typedef union { struct { uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ } b; /*!< Structure used for bit access */ uint32_t w; /*!< Type used for word access */ } CONTROL_Type; /* CONTROL Register Definitions */ #define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ #define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ /*@} end of group CMSIS_CORE */ /** \ingroup CMSIS_core_register \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) \brief Type definitions for the NVIC Registers @{ */ /** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). */ typedef struct { __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ uint32_t RESERVED0[24U]; __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ uint32_t RSERVED1[24U]; __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ uint32_t RESERVED2[24U]; __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ uint32_t RESERVED3[24U]; __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ uint32_t RESERVED4[56U]; __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ uint32_t RESERVED5[644U]; __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ } NVIC_Type; /* Software Triggered Interrupt Register Definitions */ #define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ #define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ /*@} end of group CMSIS_NVIC */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCB System Control Block (SCB) \brief Type definitions for the System Control Block Registers @{ */ /** \brief Structure type to access the System Control Block (SCB). */ typedef struct { __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ uint32_t RESERVED0[5U]; __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ } SCB_Type; /* SCB CPUID Register Definitions */ #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ #define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ /* SCB Interrupt Control State Register Definitions */ #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ #define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ #define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ /* SCB Vector Table Offset Register Definitions */ #if defined (__CM3_REV) && (__CM3_REV < 0x0201U) /* core r2p1 */ #define SCB_VTOR_TBLBASE_Pos 29U /*!< SCB VTOR: TBLBASE Position */ #define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #else #define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ #endif /* SCB Application Interrupt and Reset Control Register Definitions */ #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ #define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ #define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ #define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ #define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ /* SCB System Control Register Definitions */ #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ /* SCB Configuration Control Register Definitions */ #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ #define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ #define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ #define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ #define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ #define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ #define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ #define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ #define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ /* SCB System Handler Control and State Register Definitions */ #define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ #define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ #define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ #define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ #define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ #define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ #define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ #define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ #define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ #define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ #define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ #define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ #define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ #define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ #define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ #define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ #define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ #define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ #define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ #define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ #define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ #define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ #define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ #define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ #define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ #define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ /* SCB Configurable Fault Status Register Definitions */ #define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ #define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ #define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ #define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ #define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ #define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ /* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ #define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ #define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ #define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ #define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ #define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ #define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ #define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ #define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ #define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ /* BusFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ #define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ #define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ #define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ #define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ #define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ #define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ #define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ #define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ #define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ #define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ #define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ /* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ #define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ #define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ #define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ #define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ #define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ #define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ #define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ #define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ #define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ #define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ #define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ #define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ /* SCB Hard Fault Status Register Definitions */ #define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ #define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ #define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ #define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ #define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ #define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ /* SCB Debug Fault Status Register Definitions */ #define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ #define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ #define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ #define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ #define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ #define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ #define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ #define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ #define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ #define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ /*@} end of group CMSIS_SCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) \brief Type definitions for the System Control and ID Register not in the SCB @{ */ /** \brief Structure type to access the System Control and ID Register not in the SCB. */ typedef struct { uint32_t RESERVED0[1U]; __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ #if defined (__CM3_REV) && (__CM3_REV >= 0x200U) __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ #else uint32_t RESERVED1[1U]; #endif } SCnSCB_Type; /* Interrupt Controller Type Register Definitions */ #define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ #define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ /* Auxiliary Control Register Definitions */ #define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ #define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ #define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ #define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ #define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ #define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ /*@} end of group CMSIS_SCnotSCB */ /** \ingroup CMSIS_core_register \defgroup CMSIS_SysTick System Tick Timer (SysTick) \brief Type definitions for the System Timer Registers. @{ */ /** \brief Structure type to access the System Timer (SysTick). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ } SysTick_Type; /* SysTick Control / Status Register Definitions */ #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ /* SysTick Reload Register Definitions */ #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ /* SysTick Current Register Definitions */ #define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ /* SysTick Calibration Register Definitions */ #define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ #define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ #define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ /*@} end of group CMSIS_SysTick */ /** \ingroup CMSIS_core_register \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) \brief Type definitions for the Instrumentation Trace Macrocell (ITM) @{ */ /** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). */ typedef struct { __OM union { __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ uint32_t RESERVED0[864U]; __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ uint32_t RESERVED1[15U]; __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ uint32_t RESERVED2[15U]; __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ uint32_t RESERVED3[29U]; __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ uint32_t RESERVED4[43U]; __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ uint32_t RESERVED5[6U]; __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ } ITM_Type; /* ITM Trace Privilege Register Definitions */ #define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ #define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ /* ITM Trace Control Register Definitions */ #define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ #define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ #define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ #define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ #define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ #define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ #define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ #define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ #define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ #define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ #define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ #define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ #define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ #define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ #define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ #define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ #define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ #define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ /* ITM Integration Write Register Definitions */ #define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ #define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ /* ITM Integration Read Register Definitions */ #define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ #define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ /* ITM Integration Mode Control Register Definitions */ #define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ #define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ /* ITM Lock Status Register Definitions */ #define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ #define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ #define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ #define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ #define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ #define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ /*@}*/ /* end of group CMSIS_ITM */ /** \ingroup CMSIS_core_register \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) \brief Type definitions for the Data Watchpoint and Trace (DWT) @{ */ /** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). */ typedef struct { __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ uint32_t RESERVED0[1U]; __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ uint32_t RESERVED1[1U]; __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ uint32_t RESERVED2[1U]; __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ } DWT_Type; /* DWT Control Register Definitions */ #define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ #define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ #define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ #define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ #define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ #define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ #define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ #define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ #define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ #define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ #define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ #define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ #define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ #define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ #define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ #define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ #define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ #define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ #define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ #define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ #define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ #define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ #define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ #define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ #define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ #define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ #define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ #define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ #define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ #define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ #define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ #define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ #define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ #define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ #define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ #define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ /* DWT CPI Count Register Definitions */ #define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ #define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ /* DWT Exception Overhead Count Register Definitions */ #define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ #define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ /* DWT Sleep Count Register Definitions */ #define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ #define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ /* DWT LSU Count Register Definitions */ #define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ #define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ /* DWT Folded-instruction Count Register Definitions */ #define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ #define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ /* DWT Comparator Mask Register Definitions */ #define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ #define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ /* DWT Comparator Function Register Definitions */ #define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ #define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ #define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ #define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ #define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ #define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ #define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ #define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ #define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ #define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ #define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ #define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ #define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ #define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ #define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ #define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ #define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ #define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ /*@}*/ /* end of group CMSIS_DWT */ /** \ingroup CMSIS_core_register \defgroup CMSIS_TPI Trace Port Interface (TPI) \brief Type definitions for the Trace Port Interface (TPI) @{ */ /** \brief Structure type to access the Trace Port Interface Register (TPI). */ typedef struct { __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ uint32_t RESERVED0[2U]; __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ uint32_t RESERVED1[55U]; __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ uint32_t RESERVED2[131U]; __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ uint32_t RESERVED3[759U]; __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ uint32_t RESERVED4[1U]; __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ uint32_t RESERVED5[39U]; __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ uint32_t RESERVED7[8U]; __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ } TPI_Type; /* TPI Asynchronous Clock Prescaler Register Definitions */ #define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ #define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ /* TPI Selected Pin Protocol Register Definitions */ #define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ #define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ /* TPI Formatter and Flush Status Register Definitions */ #define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ #define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ #define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ #define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ #define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ #define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ #define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ #define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ /* TPI Formatter and Flush Control Register Definitions */ #define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ #define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ #define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ #define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ /* TPI TRIGGER Register Definitions */ #define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ #define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ /* TPI Integration ETM Data Register Definitions (FIFO0) */ #define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ #define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ #define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ #define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ #define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ #define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ #define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ #define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ #define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ #define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ #define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ #define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ #define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ #define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ /* TPI ITATBCTR2 Register Definitions */ #define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ #define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ #define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ #define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ /* TPI Integration ITM Data Register Definitions (FIFO1) */ #define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ #define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ #define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ #define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ #define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ #define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ #define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ #define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ #define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ #define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ #define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ #define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ #define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ #define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ /* TPI ITATBCTR0 Register Definitions */ #define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ #define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ #define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ #define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ /* TPI Integration Mode Control Register Definitions */ #define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ #define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ /* TPI DEVID Register Definitions */ #define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ #define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ #define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ #define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ #define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ #define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ #define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ #define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ #define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ #define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ #define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ #define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ /* TPI DEVTYPE Register Definitions */ #define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ #define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ #define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ #define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ /*@}*/ /* end of group CMSIS_TPI */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) /** \ingroup CMSIS_core_register \defgroup CMSIS_MPU Memory Protection Unit (MPU) \brief Type definitions for the Memory Protection Unit (MPU) @{ */ /** \brief Structure type to access the Memory Protection Unit (MPU). */ typedef struct { __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ } MPU_Type; #define MPU_TYPE_RALIASES 4U /* MPU Type Register Definitions */ #define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ #define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ #define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ #define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ #define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ #define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ /* MPU Control Register Definitions */ #define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ #define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ #define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ #define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ #define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ #define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ /* MPU Region Number Register Definitions */ #define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ #define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ /* MPU Region Base Address Register Definitions */ #define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ #define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ #define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ #define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ #define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ #define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ /* MPU Region Attribute and Size Register Definitions */ #define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ #define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ #define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ #define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ #define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ #define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ #define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ #define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ #define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ #define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ #define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ #define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ #define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ #define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ #define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ #define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ #define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ #define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ #define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ #define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ /*@} end of group CMSIS_MPU */ #endif /** \ingroup CMSIS_core_register \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) \brief Type definitions for the Core Debug Registers @{ */ /** \brief Structure type to access the Core Debug Register (CoreDebug). */ typedef struct { __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ } CoreDebug_Type; /* Debug Halting Control and Status Register Definitions */ #define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ #define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ #define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ #define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ #define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ #define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ #define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ #define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ #define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ #define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ #define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ #define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ #define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ #define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ #define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ #define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ #define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ #define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ #define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ #define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ #define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ #define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ #define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ #define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ /* Debug Core Register Selector Register Definitions */ #define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ #define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ #define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ #define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ /* Debug Exception and Monitor Control Register Definitions */ #define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ #define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ #define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ #define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ #define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ #define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ #define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ #define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ #define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ #define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ #define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ #define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ #define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ #define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ #define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ #define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ #define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ #define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ #define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ #define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ #define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ #define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ #define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ #define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ #define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ #define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ /*@} end of group CMSIS_CoreDebug */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_bitfield Core register bit field macros \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). @{ */ /** \brief Mask and shift a bit field value for use in a register bit range. \param[in] field Name of the register bit field. \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. \return Masked and shifted value. */ #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) /** \brief Mask and shift a register value to extract a bit filed value. \param[in] field Name of the register bit field. \param[in] value Value of register. This parameter is interpreted as an uint32_t type. \return Masked and shifted bit field value. */ #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) /*@} end of group CMSIS_core_bitfield */ /** \ingroup CMSIS_core_register \defgroup CMSIS_core_base Core Definitions \brief Definitions for base addresses, unions, and structures. @{ */ /* Memory mapping of Core Hardware */ #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ #endif /*@} */ /******************************************************************************* * Hardware Abstraction Layer Core Function Interface contains: - Core NVIC Functions - Core SysTick Functions - Core Debug Functions - Core Register Access Functions ******************************************************************************/ /** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference */ /* ########################## NVIC functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_NVICFunctions NVIC Functions \brief Functions that manage interrupts and exceptions via the NVIC. @{ */ #ifdef CMSIS_NVIC_VIRTUAL #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" #endif #include CMSIS_NVIC_VIRTUAL_HEADER_FILE #else #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping #define NVIC_EnableIRQ __NVIC_EnableIRQ #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ #define NVIC_DisableIRQ __NVIC_DisableIRQ #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ #define NVIC_GetActive __NVIC_GetActive #define NVIC_SetPriority __NVIC_SetPriority #define NVIC_GetPriority __NVIC_GetPriority #define NVIC_SystemReset __NVIC_SystemReset #endif /* CMSIS_NVIC_VIRTUAL */ #ifdef CMSIS_VECTAB_VIRTUAL #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" #endif #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE #else #define NVIC_SetVector __NVIC_SetVector #define NVIC_GetVector __NVIC_GetVector #endif /* (CMSIS_VECTAB_VIRTUAL) */ #define NVIC_USER_IRQ_OFFSET 16 /* The following EXC_RETURN values are saved the LR on exception entry */ #define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ #define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ #define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ /** \brief Set Priority Grouping \details Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ reg_value = SCB->AIRCR; /* read old register configuration */ reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ SCB->AIRCR = reg_value; } /** \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); } /** \brief Enable Interrupt \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Interrupt Enable status \details Returns a device specific interrupt enable status from the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt is not enabled. \return 1 Interrupt is enabled. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Disable Interrupt \details Disables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); __DSB(); __ISB(); } } /** \brief Get Pending Interrupt \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not pending. \return 1 Interrupt status is pending. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Pending Interrupt \details Sets the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Clear Pending Interrupt \details Clears the pending bit of a device specific interrupt in the NVIC pending register. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); } } /** \brief Get Active Interrupt \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. \param [in] IRQn Device specific interrupt number. \return 0 Interrupt status is not active. \return 1 Interrupt status is active. \note IRQn must not be negative. */ __STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); } else { return(0U); } } /** \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { if ((int32_t)(IRQn) >= 0) { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } /** \brief Get Interrupt Priority \details Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. */ __STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) { if ((int32_t)(IRQn) >= 0) { return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); } else { return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); } } /** \brief Encode Priority \details Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Used priority group. \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) ); } /** \brief Decode Priority \details Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). \param [in] PriorityGroup Used priority group. \param [out] pPreemptPriority Preemptive priority value (starting from 0). \param [out] pSubPriority Subpriority value (starting from 0). */ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) { uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); } /** \brief Set Interrupt Vector \details Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. \param [in] IRQn Interrupt number \param [in] vector Address of interrupt handler function */ __STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { uint32_t *vectors = (uint32_t *)SCB->VTOR; vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; } /** \brief Get Interrupt Vector \details Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \return Address of interrupt handler function */ __STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) { uint32_t *vectors = (uint32_t *)SCB->VTOR; return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; } /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); } } /*@} end of CMSIS_Core_NVICFunctions */ /* ########################## MPU functions #################################### */ #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) #include "mpu_armv7.h" #endif /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_FpuFunctions FPU Functions \brief Function that provides FPU type. @{ */ /** \brief get FPU type \details returns the FPU type \returns - \b 0: No FPU - \b 1: Single precision FPU - \b 2: Double + Single precision FPU */ __STATIC_INLINE uint32_t SCB_GetFPUType(void) { return 0U; /* No FPU */ } /*@} end of CMSIS_Core_FpuFunctions */ /* ################################## SysTick function ############################################ */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_Core_SysTickFunctions SysTick Functions \brief Functions that configure the System. @{ */ #if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) /** \brief System Tick Configuration \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts. \param [in] ticks Number of ticks between two interrupts. \return 0 Function succeeded. \return 1 Function failed. \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) { return (1UL); /* Reload value impossible */ } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ } #endif /*@} end of CMSIS_Core_SysTickFunctions */ /* ##################################### Debug In/Output function ########################################### */ /** \ingroup CMSIS_Core_FunctionInterface \defgroup CMSIS_core_DebugFunctions ITM Functions \brief Functions that access the ITM debug interface. @{ */ extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ #define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ /** \brief ITM Send Character \details Transmits a character via the ITM channel 0, and \li Just returns when no debugger is connected that has booked the output. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch); } /** \brief ITM Receive Character \details Inputs a character via the external variable \ref ITM_RxBuffer. \return Received character. \return -1 No character pending. */ __STATIC_INLINE int32_t ITM_ReceiveChar (void) { int32_t ch = -1; /* no character available */ if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { ch = ITM_RxBuffer; ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ } return (ch); } /** \brief ITM Check Character \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. \return 0 No character available. \return 1 Character available. */ __STATIC_INLINE int32_t ITM_CheckChar (void) { if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { return (0); /* no character available */ } else { return (1); /* character available */ } } /*@} end of CMSIS_core_DebugFunctions */ #ifdef __cplusplus } #endif #endif /* __CORE_CM3_H_DEPENDANT */ #endif /* __CMSIS_GENERIC */ ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm33.h ================================================ [File too large to display: 168.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm4.h ================================================ [File too large to display: 118.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_cm7.h ================================================ [File too large to display: 142.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_sc000.h ================================================ [File too large to display: 45.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/core_sc300.h ================================================ [File too large to display: 106.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/mpu_armv7.h ================================================ [File too large to display: 11.2 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/mpu_armv8.h ================================================ [File too large to display: 10.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/CMSIS/Include/tz_context.h ================================================ [File too large to display: 2.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h ================================================ [File too large to display: 205.2 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h ================================================ [File too large to display: 11.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h ================================================ [File too large to display: 51.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h ================================================ [File too large to display: 46.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h ================================================ [File too large to display: 42.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h ================================================ [File too large to display: 16.7 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h ================================================ [File too large to display: 7.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h ================================================ [File too large to display: 17.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h ================================================ [File too large to display: 12.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h ================================================ [File too large to display: 11.7 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h ================================================ [File too large to display: 8.8 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h ================================================ [File too large to display: 35.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h ================================================ [File too large to display: 11.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h ================================================ [File too large to display: 34.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h ================================================ [File too large to display: 11.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h ================================================ [File too large to display: 65.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h ================================================ [File too large to display: 97.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h ================================================ [File too large to display: 31.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h ================================================ [File too large to display: 117.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h ================================================ [File too large to display: 9.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h ================================================ [File too large to display: 43.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c ================================================ [File too large to display: 19.8 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c ================================================ [File too large to display: 90.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c ================================================ [File too large to display: 51.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c ================================================ [File too large to display: 78.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c ================================================ [File too large to display: 18.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c ================================================ [File too large to display: 26.9 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ================================================ [File too large to display: 14.9 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ================================================ [File too large to display: 28.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c ================================================ [File too large to display: 35.2 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c ================================================ [File too large to display: 20.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c ================================================ [File too large to display: 4.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c ================================================ [File too large to display: 20.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c ================================================ [File too large to display: 47.7 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c ================================================ [File too large to display: 29.3 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c ================================================ [File too large to display: 124.5 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c ================================================ [File too large to display: 235.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c ================================================ [File too large to display: 77.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c ================================================ [File too large to display: 128.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/eeprom_interface.h ================================================ [File too large to display: 4.2 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/emulated_eeprom.cpp ================================================ [File too large to display: 9.0 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/emulated_eeprom.h ================================================ [File too large to display: 3.2 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/stockpile_config.h ================================================ [File too large to display: 4.8 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/stockpile_f103cb.c ================================================ [File too large to display: 5.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Memory/stockpile_f103cb.h ================================================ [File too large to display: 2.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Utils/st_hardware.c ================================================ [File too large to display: 622 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/Utils/st_hardware.h ================================================ [File too large to display: 202 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/retarget.c ================================================ [File too large to display: 1.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/Platform/retarget.h ================================================ [File too large to display: 392 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/button_stm32.cpp ================================================ [File too large to display: 402 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/button_stm32.h ================================================ [File too large to display: 383 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/encoder_calibrator_stm32.cpp ================================================ [File too large to display: 525 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/encoder_calibrator_stm32.h ================================================ [File too large to display: 472 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/led_stm32.cpp ================================================ [File too large to display: 424 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/led_stm32.h ================================================ [File too large to display: 198 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/mt6816_stm32.cpp ================================================ [File too large to display: 370 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/mt6816_stm32.h ================================================ [File too large to display: 591 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/tb67h450_stm32.cpp ================================================ [File too large to display: 1.4 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/Port/tb67h450_stm32.h ================================================ [File too large to display: 519 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/README.md ================================================ [File too large to display: 81 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/STM32F103CBTx_FLASH.ld ================================================ [File too large to display: 5.6 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/UserApp/common_inc.h ================================================ [File too large to display: 576 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/UserApp/configurations.h ================================================ [File too large to display: 933 B] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/UserApp/main.cpp ================================================ [File too large to display: 6.1 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/UserApp/protocols/interface_can.cpp ================================================ [File too large to display: 9.9 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/UserApp/protocols/interface_uart.cpp ================================================ [File too large to display: 1.9 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/startup/startup_stm32f103xb.s ================================================ [File too large to display: 9.7 KB] ================================================ FILE: 2.Firmware/Ctrl-Step-Driver-STM32F1-fw/stlink.cfg ================================================ [File too large to display: 224 B] ================================================ FILE: 2.Firmware/_Released HEX/Ctrl-Step-Driver-STM32F1-fw.hex ================================================ [File too large to display: 325.1 KB] ================================================ FILE: 3.Software/CLI-Tool/.gitignore ================================================ [File too large to display: 467 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/.gitignore ================================================ [File too large to display: 264 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/cmd_tool.iml ================================================ [File too large to display: 696 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/deployment.xml ================================================ [File too large to display: 424 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/encodings.xml ================================================ [File too large to display: 138 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/inspectionProfiles/Project_Default.xml ================================================ [File too large to display: 1.0 KB] ================================================ FILE: 3.Software/CLI-Tool/.idea/inspectionProfiles/profiles_settings.xml ================================================ [File too large to display: 179 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/libraries/ROS.xml ================================================ [File too large to display: 134 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/libraries/workspace.xml ================================================ [File too large to display: 140 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/misc.xml ================================================ [File too large to display: 188 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/modules.xml ================================================ [File too large to display: 275 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/ros.xml ================================================ [File too large to display: 671 B] ================================================ FILE: 3.Software/CLI-Tool/.idea/vcs.xml ================================================ [File too large to display: 191 B] ================================================ FILE: 3.Software/CLI-Tool/_addition/ref_demo.py ================================================ [File too large to display: 345 B] ================================================ FILE: 3.Software/CLI-Tool/fibre/__init__.py ================================================ [File too large to display: 197 B] ================================================ FILE: 3.Software/CLI-Tool/fibre/discovery.py ================================================ [File too large to display: 4.8 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/protocol.py ================================================ [File too large to display: 13.4 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/remote_object.py ================================================ [File too large to display: 10.0 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/serial_transport.py ================================================ [File too large to display: 3.8 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/shell.py ================================================ [File too large to display: 4.7 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/tcp_transport.py ================================================ [File too large to display: 3.3 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/udp_transport.py ================================================ [File too large to display: 2.5 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/usbbulk_transport.py ================================================ [File too large to display: 8.3 KB] ================================================ FILE: 3.Software/CLI-Tool/fibre/utils.py ================================================ [File too large to display: 7.9 KB] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/__init__.py ================================================ [File too large to display: 523 B] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/code_generator.py ================================================ [File too large to display: 2.6 KB] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/configuration.py ================================================ [File too large to display: 2.8 KB] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/shell.py ================================================ [File too large to display: 2.9 KB] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/utils.py ================================================ [File too large to display: 5.1 KB] ================================================ FILE: 3.Software/CLI-Tool/ref_tool/version.py ================================================ [File too large to display: 3.6 KB] ================================================ FILE: 3.Software/CLI-Tool/run.bat ================================================ [File too large to display: 126 B] ================================================ FILE: 3.Software/CLI-Tool/run_shell.py ================================================ [File too large to display: 7.0 KB] ================================================ FILE: 3.Software/DummyStudio/DummyStudio_Data/StreamingAssets/serial_config.txt ================================================ [File too large to display: 30 B] ================================================ FILE: 3.Software/DummyStudio/DummyStudio_Data/app.info ================================================ [File too large to display: 22 B] ================================================ FILE: 3.Software/DummyStudio/DummyStudio_Data/boot.config ================================================ [File too large to display: 133 B] ================================================ FILE: 3.Software/DummyStudio/DummyStudio_Data/sharedassets0.assets.resS ================================================ [File too large to display: 23.8 MB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/2.0/Browsers/Compat.browser ================================================ [File too large to display: 1.5 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/2.0/DefaultWsdlHelpGenerator.aspx ================================================ [File too large to display: 59.2 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/2.0/machine.config ================================================ [File too large to display: 28.4 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/2.0/web.config ================================================ [File too large to display: 11.4 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.0/Browsers/Compat.browser ================================================ [File too large to display: 1.5 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.0/DefaultWsdlHelpGenerator.aspx ================================================ [File too large to display: 59.2 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.0/machine.config ================================================ [File too large to display: 32.9 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.0/web.config ================================================ [File too large to display: 18.4 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.5/Browsers/Compat.browser ================================================ [File too large to display: 1.5 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.5/DefaultWsdlHelpGenerator.aspx ================================================ [File too large to display: 59.2 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.5/machine.config ================================================ [File too large to display: 33.3 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/4.5/web.config ================================================ [File too large to display: 18.4 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/browscap.ini ================================================ [File too large to display: 304.7 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/config ================================================ [File too large to display: 3.2 KB] ================================================ FILE: 3.Software/DummyStudio/MonoBleedingEdge/etc/mono/mconfig/config.xml ================================================ [File too large to display: 25.2 KB] ================================================ FILE: 4.Model/Case v17.step ================================================ [File too large to display: 7.7 MB] ================================================ FILE: 4.Model/Dummy v164.step ================================================ [File too large to display: 32.2 MB] ================================================ FILE: 4.Model/Motor42-上盖.step ================================================ [File too large to display: 117.8 KB] ================================================ FILE: 4.Model/Motor42-下盖.step ================================================ [File too large to display: 108.6 KB] ================================================ FILE: README.md ================================================ [File too large to display: 12.6 KB]